@adstage/web-sdk 3.0.10 → 3.0.11
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 +4 -2
- package/dist/index.esm.js +1 -1
- package/dist/index.standalone.js +2 -2
- package/dist/index.umd.js +2 -2
- package/package.json +1 -1
- package/src/core/adstage.ts +83 -18
- package/src/modules/events/events-module.ts +15 -4
- package/src/modules/tracking/tracking-params.ts +19 -18
package/dist/index.umd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).AdStage={})}(this,function(t){"use strict";function e(t,n){var r=f();return(e=function(t,e){return r[t-=118]})(t,n)}var n,r,s,o,i,a,c,l,d,u,p,h;function f(){var t=["POPUP","3PZRATw","NATIVE","10QLAjez","16PLIxVh","TEXT","2624116vjtVCf","884009dCpvOX","1557413EDrrEX","CLICK","84rGKnjs","INTERSTITIAL","209650SnLvDC","MOBILE","66MolTZA","TABLET","BANNER","WEB","10645839qsaUKI","VIDEO","3308277ZIfthB","652764GyEBLf","VIEWABLE","DESKTOP"];return(f=function(){return t})()}function g(){const t=["removeEventListener","querySelector","safeSetTextContent","safeAddEventListener","waitForDOM","documentElement","title","52920mwMxYd","safeAddClass","readyState","31127265APESWd","DOMContentLoaded","style","isBrowser","loading","error","safeQuerySelector","safeGetComputedStyle","location",'❌ 컨테이너를 찾을 수 없습니다: "',"canUseDOM","696760LVUFIF","getWindowProperty","1421402HGLCVX","getComputedStyle","setProperty","innerWidth","ms (","9984BnOFiS","pageXOffset","createElement","devicePixelRatio","open","getDocumentProperty","innerHTML","getElementById","isDOMReady","9KaXfVK","safeCreateElement","safeRemoveChild","referrer","map","getScrollInfo","entries","⏳ 컨테이너 대기 시작: ","querySelectorAll","safeRemoveClass","safeQuerySelectorAll","pageYOffset"," (최대 ","add","from","4102pnyaxW","classList",'"\n \n다음을 확인해보세요:\n1. HTML에 id="',"all","log","번째 시도, ","waitForElement","isSSR","1159192OVbREK","waitForElements","getViewportInfo","ms)","✅ 컨테이너 발견: ","safeGetElementById","DOM을 사용할 수 없는 환경입니다.","pow","477645gYMnMX","safeSetInnerHTML","safeRemoveEventListener"];return(g=function(){return t})()}!function(t){for(var n=e,r=t();;)try{if(651758===parseInt(n(139))/1+parseInt(n(129))/2+parseInt(n(133))/3*(parseInt(n(138))/4)+-parseInt(n(120))/5*(parseInt(n(122))/6)+-parseInt(n(128))/7*(parseInt(n(136))/8)+parseInt(n(126))/9*(parseInt(n(135))/10)+parseInt(n(140))/11*(-parseInt(n(118))/12))break;r.push(r.shift())}catch(t){r.push(r.shift())}}(f),(r=n||(n={}))[(s=e)(124)]=s(124),r[s(132)]=s(132),r[s(119)]="INTERSTITIAL",r[s(134)]=s(134),r[s(127)]=s(127),r[s(137)]=s(137),i=o||(o={}),a=e,i.WEB=a(125),i[a(121)]=a(121),(l=c||(c={}))[(d=e)(130)]=d(130),l[d(141)]=d(141),(p=u||(u={}))[(h=e)(131)]="DESKTOP",p[h(121)]=h(121),p.TABLET=h(123);const m=y;function y(t,e){const n=g();return(y=function(t,e){return n[t-=219]})(t,e)}!function(t){const e=y,n=t();for(;;)try{if(661712===-parseInt(e(255))/1+-parseInt(e(289))/2+parseInt(e(232))/3*(parseInt(e(273))/4)+parseInt(e(263))/5+-parseInt(e(223))/6*(parseInt(e(247))/7)+-parseInt(e(287))/8+parseInt(e(276))/9)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(g);class v{static[m(279)](){return"undefined"!=typeof window&&"undefined"!=typeof document}static[m(254)](){return!this[m(279)]()}static[m(286)](){const t=m;return this.isBrowser()&&void 0!==document[t(275)]}static[m(260)](t){return this[m(286)]()?document.getElementById(t):null}static[m(282)](t){const e=m;return this[e(286)]()?document[e(267)](t):null}static[m(242)](t){const e=m;return this[e(286)]()?Array[e(246)](document[e(240)](t)):[]}static[m(233)](t){const e=m;return this.canUseDOM()?document[e(225)](t):null}static[m(269)](t,e,n,r){this[m(286)]()&&t&&t.addEventListener(e,n,r)}static[m(265)](t,e,n,r){const s=m;this[s(286)]()&&t&&t[s(266)](e,n,r)}static[m(288)](t,e){return this[m(279)]()?window[t]??e:e}static[m(228)](t,e){return this[m(286)]()?document[t]??e:e}static safeWindowOpen(t,e,n){const r=m;return this.isBrowser()?window[r(227)](t,e,n):null}static[m(283)](t){const e=m;return this[e(279)]()&&t?window[e(219)](t):null}static[m(231)](){const t=m;return!!this[t(286)]()&&document[t(275)]!==t(280)}static[m(270)](){return new Promise(t=>{const e=y;this[e(286)]()?this.isDOMReady()?t():this[e(269)](document,e(277),()=>t()):t()})}static safeApplyStyles(t,e){const n=m;this.canUseDOM()&&t&&Object[n(238)](e).forEach(([e,r])=>{const s=n;t[s(278)][s(220)](e,r)})}static[m(274)](t,e){const n=m;this[n(286)]()&&t&&t.classList[n(245)](e)}static[m(241)](t,e){const n=m;this[n(286)]()&&t&&t[n(248)].remove(e)}static[m(268)](t,e){this.canUseDOM()&&t&&(t.textContent=e)}static[m(264)](t,e){const n=m;this[n(286)]()&&t&&(t[n(229)]=e)}static safeAppendChild(t,e){this.canUseDOM()&&t&&e&&t.appendChild(e)}static[m(234)](t,e){this[m(286)]()&&t&&e&&t.removeChild(e)}static getPageInfo(){const t=m;return{url:this.getWindowProperty(t(284),{href:""}).href,title:this[t(228)](t(272),""),referrer:this[t(228)](t(235),"")}}static[m(257)](){const t=m;return{width:this.getWindowProperty(t(221),0),height:this[t(288)]("innerHeight",0),pixelRatio:this[t(288)](t(226),1)}}static[m(237)](){const t=m;return{scrollTop:this.canUseDOM()?window[t(243)]||document[t(271)].scrollTop:0,scrollLeft:this[t(288)](t(224),0)}}static async waitForElement(t,e={}){const n=m,{timeout:r=3e3,retryInterval:s=100,debug:o=!1}=e;if(!this[n(286)]())throw new Error(n(261));const i=document[n(230)](t);return i?(o&&console[n(251)]("✅ 컨테이너 즉시 발견: "+t),i):(o&&console[n(251)](n(239)+t+n(244)+r+n(258)),new Promise((e,n)=>{let i=0;const a=Math.ceil(r/s),c=()=>{const l=y;i++;const d=document[l(230)](t);if(d)return o&&console.log(l(259)+t+" ("+i+l(252)+i*s+"ms 경과)"),void e(d);if(i>=a){const e=l(285)+t+l(249)+t+'" 요소가 있는지 확인\n2. React 등에서 컴포넌트가 렌더링된 후 SDK 호출\n3. 철자가 정확한지 확인\n4. 중복된 ID가 없는지 확인\n\n대기 시간: '+r+l(222)+i+"번 시도)";return o&&console[l(281)](e),void n(new Error(e))}o&&i%10==0&&console.log("⏳ 컨테이너 대기 중: "+t+" ("+i+"/"+a+")");const u=Math.min(s*Math[l(262)](1.2,i),500);setTimeout(c,u)};setTimeout(c,s)}))}static async[m(256)](t,e={}){const n=m,r=t[n(236)](t=>this[n(253)](t,e));return Promise[n(250)](r)}}function I(){const t=["8420690EOTjTX","75752evUYHk","877475gatoya","792ocSFGl","657xDIdSz","597396zHrdBI","18HhnuWV","15271872OObDBP","2452tFfDtd","15RMJaQL"," AdStageSDK/","1385713CxjPAU"];return(I=function(){return t})()}!function(t){const e=b,n=t();for(;;)try{if(594891===parseInt(e(187))/1*(-parseInt(e(180))/2)+parseInt(e(181))/3*(parseInt(e(189))/4)+parseInt(e(186))/5+-parseInt(e(178))/6*(parseInt(e(183))/7)+parseInt(e(185))/8*(parseInt(e(188))/9)+-parseInt(e(184))/10+parseInt(e(179))/11)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(I);function b(t,e){const n=I();return(b=function(t,e){return n[t-=178]})(t,e)}const w=k;function k(t,e){const n=E();return(k=function(t,e){return n[t-=500]})(t,e)}function E(){const t=["setItem",'[data-adstage-slot-id="',"2541RxgStq","safeGetElementById","getPlatform","getScrollInfo","12380qnAHpR","12167623YVtPti","isMobile","random","getViewportInfo","5932934FwJtkR"," .adstage-slider-wrapper","android","now","toString","adstage_device_id","round","200453gsamEY","desktop","top","isBrowser","6TaPWTR","language","generateSessionId","1161Facdya","platform","toLowerCase","left","ios","test","712tgTFEk","getBoundingClientRect","110628PzdnQV","height","24DmZPIb","ssr_session_","adstage_session_id","connection","device_","width",",y:","1.0.0","substr","DateTimeFormat","collectDeviceInfo","55uaOgSm","resolvedOptions","12364aEcGDD","ssr_device_","unknown","session_","generateDeviceId","pixelRatio","effectiveType","getSlotPosition","9618BahYCd","userAgent","getItem","SSR","timeZone"];return(E=function(){return t})()}!function(t){const e=k,n=t();for(;;)try{if(624403===parseInt(e(534))/1*(-parseInt(e(538))/2)+-parseInt(e(541))/3*(parseInt(e(503))/4)+parseInt(e(501))/5*(parseInt(e(511))/6)+-parseInt(e(527))/7+parseInt(e(547))/8*(parseInt(e(549))/9)+-parseInt(e(522))/10*(-parseInt(e(518))/11)+-parseInt(e(551))/12*(-parseInt(e(523))/13))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(E);class x{static[w(507)](){const t=w;if(!v[t(537)]())return t(504)+Date[t(530)]();const e=localStorage[t(513)]("adstage_device_id");if(e)return e;const n=t(555)+Math.random()[t(531)](36).substr(2,9)+"_"+Date[t(530)]();return localStorage[t(516)](t(532),n),n}static generateSessionId(){const t=w;if(!v[t(537)]())return t(552)+Date[t(530)]();const e=sessionStorage[t(513)](t(553));if(e)return e;const n=t(506)+Math[t(525)]()[t(531)](36)[t(559)](2,9)+"_"+Date[t(530)]();return sessionStorage[t(516)](t(553),n),n}static[w(524)](){const t=w;return!!v.isBrowser()&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i[t(546)](navigator[t(512)])}static[w(520)](){const t=w;if(!v[t(537)]())return"web";const e=navigator[t(512)][t(543)]();return/iphone|ipad|ipod/.test(e)?t(545):/android/[t(546)](e)?t(529):x.isMobile()?"web":t(535)}static[w(500)](){const t=w,e=v[t(526)]();return{deviceId:x.generateDeviceId(),sessionId:x[t(540)](),osVersion:v.isBrowser()?navigator[t(542)]:"SSR",deviceModel:v[t(537)]()?navigator[t(542)]:t(514),appVersion:t(558),sdkVersion:"3.0.10",language:v[t(537)]()&&navigator[t(539)]||"ko",country:"KR",ipAddress:"",userAgent:v[t(537)]()?navigator[t(512)]:t(514),timezone:v[t(537)]()?Intl[t(560)]()[t(502)]()[t(515)]:"UTC",viewportWidth:e[t(556)],viewportHeight:e[t(550)],screenWidth:v.isBrowser()?screen[t(556)]:0,screenHeight:v.isBrowser()?screen[t(550)]:0,colorDepth:v[t(537)]()?screen.colorDepth:24,pixelRatio:e[t(508)],connectionType:v[t(537)]()&&navigator[t(554)]?.[t(509)]||"unknown",platform:x.getPlatform()}}static[w(510)](t){const e=w;let n=v[e(519)](t);if(!n){const r=v.safeQuerySelector("#"+t+e(528));r&&(n=r)}if(!n&&(n=v.safeQuerySelector(e(517)+t+'"]')),!n)return e(505);const r=n[e(548)](),s=v[e(521)]();return"x:"+Math[e(533)](r[e(544)])+e(557)+Math[e(533)](r[e(536)]+s.scrollTop)}}const S=C;function A(){const t=["API key is required","927txbcuU","createForEvents","application/json","12850083qskofY","5485275OVteDP","undefined","283128iUOYaK","User-Agent","56NBzKiM","20932ugMKjk","userAgent","11dkkeVq","contentType","8735168ANgeqK","281YnxcWA","13658170WjRJRF","10388qJISKw"];return(A=function(){return t})()}function C(t,e){const n=A();return(C=function(t,e){return n[t-=283]})(t,e)}!function(t){const e=C,n=t();for(;;)try{if(824674===parseInt(e(286))/1*(parseInt(e(288))/2)+parseInt(e(290))/3*(-parseInt(e(299))/4)+-parseInt(e(294))/5+-parseInt(e(296))/6*(-parseInt(e(298))/7)+-parseInt(e(285))/8+parseInt(e(293))/9+-parseInt(e(287))/10*(-parseInt(e(283))/11))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(A);class T{static create(t,e){const n=C;if(!t)throw new Error(n(289));const r={"x-api-key":t,"Content-Type":e?.[n(284)]||n(292)};return typeof navigator!==n(295)&&(r[n(297)]=e?.[n(300)]||navigator[n(300)]),r}static[S(291)](t,e){const n=S,r=T.create(t);return e?.[n(300)]&&(r[n(297)]=e[n(300)]),r}}const _=P;function R(){const t=["✅ Successfully tracked advertisement event: ","529950MGoMep","VIEWABLE","slots",'[data-adstage-slot-id="',"224NtffGM","status","📡 API Response Status: ","number","12ZgxciH","NOT_SET","string","2XOqxLb","🔍 Debug info:"," - ","parseNumericValue","collectDeviceInfo","795716greKJU","/advertisements/events/"," for ad ","getPageInfo","stringify","baseUrl","3101nTrZMs","🚀 AdvertisementEventTracker: Processing ","createForEvents"," (containerId: ","POST","height",". Skipping event tracking to prevent incorrect adType.","getElementById","log","getSlotPosition","replace"," in slot ","debug","get","referrer","containerId","substring","warn","length","platform","sessionId","url","9FLYFOO","1423476DqCois","⚠️ Slot not found for slotId: ","width","4885056VOiRFg","error","4GhggMQ","statusText","11591305VJpnSV","text","apiKey","querySelector","title","adType"," event for ad ","...","). Skipping event tracking.","🚀 Sending advertisement event: ","426290iypHil","API request failed: "];return(R=function(){return t})()}function P(t,e){const n=R();return(P=function(t,e){return n[t-=323]})(t,e)}!function(t){const e=P,n=t();for(;;)try{if(536550===parseInt(e(353))/1*(-parseInt(e(358))/2)+parseInt(e(387))/3*(parseInt(e(327))/4)+-parseInt(e(339))/5*(-parseInt(e(350))/6)+parseInt(e(364))/7*(-parseInt(e(346))/8)+parseInt(e(386))/9*(parseInt(e(342))/10)+parseInt(e(329))/11+-parseInt(e(325))/12)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(R);class D{constructor(t,e,n,r){const s=P;this[s(363)]=t,this[s(331)]=e,this[s(376)]=n,this.slots=r}async trackAdvertisementEvent(t,e,n){const r=P;try{this.debug&&console[r(372)](r(365)+n+r(335)+t+r(375)+e);const s=this[r(344)][r(377)](e);if(!s)return void(this[r(376)]&&console[r(381)](r(323)+e+r(370)));if(!(document[r(371)](s.containerId)||document[r(332)](r(345)+e+'"]')))return void(this[r(376)]&&console[r(381)]("⚠️ DOM element not found for slotId: "+e+r(367)+s[r(379)]+r(337)));const o=x[r(357)](),i={adType:s[r(334)],platform:o[r(383)],deviceId:o.deviceId,deviceInfo:o,pageUrl:v[r(361)]()[r(385)],pageTitle:v[r(361)]()[r(333)],referrer:v.getPageInfo()[r(378)],slotId:e,slotPosition:x[r(373)](s[r(379)]),slotWidth:D[r(356)](s[r(324)]),slotHeight:D[r(356)](s[r(369)]),sessionId:o[r(384)],pageLoadTime:performance.now(),metadata:{eventType:n,sdkVersion:"3.0.10",timestamp:Date.now()},...n===c[r(343)]&&{isViewable:!0,iabCompliant:!0}},a=this.baseUrl+r(359)+t+"/"+n,l=T[r(366)](this[r(331)],i);this[r(376)]&&(console[r(372)](r(338)+n+r(360)+t,{url:a,headers:l,eventData:i}),console.log("🌐 Full API call details:",{method:r(368),url:a,hasApiKey:!!this[r(331)],bodySize:JSON.stringify(i)[r(382)]}));const d=await fetch(a,{method:r(368),headers:l,body:JSON[r(362)](i)});if(this[r(376)]&&console[r(372)](r(348)+d[r(347)]+" "+d[r(328)],{url:a,ok:d.ok}),!d.ok){const t=await d[r(330)]();throw new Error(r(340)+d[r(347)]+" "+d[r(328)]+r(355)+t)}this[r(376)]&&console.log(r(341)+n+r(360)+t)}catch(s){console[r(326)]("❌ Failed to track advertisement event:",s),console[r(326)](r(354),{baseUrl:this[r(363)],apiKey:this[r(331)]?this[r(331)][r(380)](0,8)+r(336):r(351),url:this[r(363)]+r(359)+t+"/"+n,eventType:n,adId:t,slotId:e})}}static[_(356)](t){const e=_;if(typeof t===e(349))return t;if(typeof t===e(352)){const n=parseFloat(t[e(374)](/px$/,""));return isNaN(n)?0:n}return 0}}var L=O;function O(t,e){var n=M();return(O=function(t,e){return n[t-=448]})(t,e)}function M(){var t=["IntersectionObserver not supported, viewability tracking disabled","initIntersectionObserver","isViewableTriggered","forEach","destroy","1423264uDlppQ","warn","12805128qcoAqF","1657038kfJHkC","15660fSDxCM","0px","observer","disconnect","2740wRvPGV","onViewableCallback","4132737IfFLQC","8RfwQWO","visibilityState","11048990LYFhyR","hidden","handleIntersection","observe","element","8sNJCOi","374314uHwFEG"];return(M=function(){return t})()}!function(t){for(var e=O,n=t();;)try{if(950412===-parseInt(e(463))/1*(parseInt(e(462))/2)+parseInt(e(472))/3*(parseInt(e(455))/4)+-parseInt(e(452))/5*(-parseInt(e(448))/6)+-parseInt(e(471))/7+parseInt(e(469))/8+parseInt(e(454))/9+parseInt(e(457))/10)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(M);class B{constructor(t,e){var n=O;this[n(450)]=null,this[n(466)]=!1,this[n(461)]=t,this[n(453)]=e,this[n(465)]()}[L(465)](){var t=L;"IntersectionObserver"in window?(this[t(450)]=new IntersectionObserver(t=>this.handleIntersection(t),{threshold:.5,rootMargin:t(449)}),this.observer[t(460)](this[t(461)])):console[t(470)](t(464))}[L(459)](t){var e=L;t[e(467)](t=>{var n=e;t.intersectionRatio>=.5&&this.isDocumentVisible()&&!this[n(466)]&&(this[n(466)]=!0,this.onViewableCallback&&this.onViewableCallback())})}isDocumentVisible(){var t=L;return!document[t(458)]&&"visible"===document[t(456)]}[L(468)](){var t=L;this[t(450)]&&(this[t(450)][t(451)](),this[t(450)]=null)}}const U=N;function F(){const t=["getBaseUrl","5WqZvrY","/events/register/attribution","/events/track","events","3511521nptmeg","registerAttribution","2056878guSggV","4240841OdflMQ","https://beta-api.adstage.app","track","135672MmbQbQ","list","1fZPSBD","12YXEEFg","advertisements","production","https://api.adstage.app","/advertisements","/advertisements/list","25582tCAyqj","3151260ygtwFA","1716RBSmKN","baseUrl","28nXbQsK","detail","2028zKAFGz","custom"];return(F=function(){return t})()}!function(t){const e=N,n=t();for(;;)try{if(241702===parseInt(e(227))/1*(-parseInt(e(234))/2)+-parseInt(e(212))/3*(-parseInt(e(236))/4)+parseInt(e(215))/5*(parseInt(e(221))/6)+parseInt(e(238))/7*(-parseInt(e(225))/8)+parseInt(e(219))/9+-parseInt(e(235))/10+-parseInt(e(222))/11*(parseInt(e(228))/12))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(F);const z={production:U(231),beta:U(223)};U(230);const V={advertisements:{list:U(233),detail:U(232),events:"/advertisements/events"},events:{track:U(217),registerAttribution:U(216)}};function N(t,e){const n=F();return(N=function(t,e){return n[t-=211]})(t,e)}class j{constructor(t){const e=U;this[e(229)]={list:()=>""+this[e(237)]+V[e(229)][e(226)],detail:t=>""+this.baseUrl+V[e(229)][e(211)]+"/"+t,events:(t,n)=>""+this[e(237)]+V.advertisements.events+"/"+t+"/"+n},this[e(218)]={track:()=>""+this[e(237)]+V[e(218)][e(224)],registerAttribution:()=>""+this.baseUrl+V[e(218)][e(220)]},this[e(237)]=t||z[e(230)]}setBaseUrl(t){this[U(237)]=t}[U(214)](){return this[U(237)]}[U(213)](t){return""+this[U(237)]+(t.startsWith("/")?t:"/"+t)}}const K=new j;function H(){var t=["1689684MjsTDA","2130wrOXXi","🎯 Triggering VIEWABLE event for slide change: ad ","171688jCRplp","VIEWABLE","1390152gxggeT","24ipVxOc","5jWWvUc","4724588PikYEt","trackInitialSlideViewable","14KlhTAd","8861yKDuJj","trackSlideViewable","🎯 Triggering initial VIEWABLE event: ad ","10872xTSPyt","10771046aYuEpr","24UBjJps","104xbwWfy","_id"];return(H=function(){return t})()}var Y=q;function q(t,e){var n=H();return(q=function(t,e){return n[t-=159]})(t,e)}!function(t){for(var e=q,n=t();;)try{if(683706===-parseInt(e(172))/1*(parseInt(e(159))/2)+parseInt(e(177))/3*(parseInt(e(164))/4)+parseInt(e(168))/5*(-parseInt(e(161))/6)+parseInt(e(171))/7*(-parseInt(e(166))/8)+-parseInt(e(175))/9*(parseInt(e(162))/10)+parseInt(e(169))/11*(parseInt(e(167))/12)+parseInt(e(176))/13)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(H);class W{static[Y(173)](t,e,n,r,s=!1){var o=Y;s&&console.log(o(163)+t._id+" (index: "+n+") in slot: "+e.id),r(t[o(160)],e.id,c[o(165)])}static[Y(170)](t,e,n,r=!1){var s=Y;r&&console.log(s(174)+t[s(160)]+" (index: 0) in slot: "+e.id),n(t._id,e.id,c.VIEWABLE)}}function X(t,e){const n=Q();return(X=function(t,e){return n[t-=164]})(t,e)}const G=X;function Q(){const t=["linkUrl","addEventListener","adType","open","90qurUMw"," -> ","cursor","306222sKZSqY","style","toLowerCase","🔗 ","stopPropagation","click","preventDefault","_id","2526100avCfTo","addClickEvent"," ad clicked: ","log","_blank","9882496qceakW","18NxjKAI","addClickEventForSlider","CLICK","5053296AdUePu","143943UNThYo","590244wQzLct","143181oawSkj","isClickable","pointer","1980rECZKZ","addClickEventsBatch"];return(Q=function(){return t})()}!function(t){const e=X,n=t();for(;;)try{if(790683===-parseInt(e(194))/1+-parseInt(e(189))/2*(parseInt(e(193))/3)+-parseInt(e(192))/4+parseInt(e(183))/5+parseInt(e(172))/6*(parseInt(e(175))/7)+-parseInt(e(188))/8+-parseInt(e(195))/9*(-parseInt(e(166))/10))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(Q);class J{static[G(184)](t,e,n,r,s=!1,o){const i=G;e.linkUrl&&(t.style[i(174)]=i(165),t[i(169)](i(180),t=>{const a=i;if(t[a(181)](),t[a(179)](),r&&r(e[a(182)],n.id,c[a(191)]),window[a(171)](e[a(168)],a(187)),s){const t=o||String(n.adType)[a(177)]();console[a(186)](a(178)+t+" ad clicked: "+e[a(182)]+" -> "+e.linkUrl)}}))}static addClickEventForRenderer(t,e,n,r,s=!1,o){const i=G;e[i(168)]&&(t[i(176)][i(174)]=i(165),t[i(169)]("click",t=>{const a=i;t[a(181)](),t.stopPropagation();if(r()(e._id,n.id,c[a(191)]),window[a(171)](e[a(168)],a(187)),s){const t=o||String(n[a(170)])[a(177)]();console[a(186)](a(178)+t+a(185)+e._id+a(173)+e[a(168)])}}))}static[G(190)](t,e,n,r,s=!1,o){this.addClickEvent(t,e,n,r,s,o)}static[G(164)](t){return Boolean(t[G(168)])}static[G(167)](t,e,n,r,s=!1,o){t.forEach((t,i)=>{const a=X,c=e[i];c&&this[a(184)](t,c,n,r,s,o)})}}function Z(t,e){const n=tt();return(Z=function(t,e){return n[t-=411]})(t,e)}const $=Z;function tt(){const t=["564663DcMXYI","appendChild","#999999","\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 ","textContent","adstage-slide-container","videoUrl","100%","200px","length","515654JBFtsf","toLowerCase","remove","data-adstage-ad-id","add","data-adstage-slot-id","children","adstage-dot","2787087NDnFFb","img","forEach","active","white","relative","151302PCbafP","getBoundingClientRect","display","mouseenter","\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 ","borderColor","button","div","contains","trackSlideViewable","inline-block","cover","addClickEventForSlider","string","querySelectorAll","clientX","adstage-slider-wrapper","setProperty","setAttribute","style","objectFit","entries","435895zcMnEW","normal","changedTouches","14738643BRqGrs","className","addEventListener","none","border","width","7lZturN","imageUrl","addTouchSupport","_id","adstage-dots","56uhMcwp","createElement","classList","overflow","every","Banner Ad","8px","touchstart","VIDEO","autoSlideInterval","transition","transform 0.4s ease-out","0.7","14px","createSliderContainer","#666666","Text Ad","#cccccc","block","50px","height","createSimpleAdElement","translateX(-","includes"," Ad","touchmove","background","center","#f0f0f0","mouseleave","auto","TEXT","createMinimalDotIndicator","removeChild","transform","adstage-slide","Video Ad","hidden","padding","100px","adType","video","opacity","abs","touchend","fontSize",".adstage-dot","flex","cssText","BANNER","3597064PjGgAJ","preventDefault","body","transparent","backgroundColor","src","adstage-ad adstage-"];return(tt=function(){return t})()}!function(t){const e=Z,n=t();for(;;)try{if(631764===-parseInt(e(423))/1+-parseInt(e(433))/2+-parseInt(e(441))/3+-parseInt(e(483))/4*(-parseInt(e(469))/5)+-parseInt(e(447))/6+-parseInt(e(478))/7*(parseInt(e(416))/8)+parseInt(e(472))/9)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(tt);class et{static[$(504)](t,e){const r=$,s=document[r(484)]("div");switch(s.className=r(422)+String(t[r(523)])[r(434)](),s.setAttribute(r(436),e[r(481)]),s[r(465)](r(438),t.id),s.style[r(449)]=r(501),s[r(466)][r(477)]=r(430),s.style.height=r(513),t[r(523)]){case n[r(415)]:if(e[r(479)]){const t=document[r(484)](r(442));t[r(421)]=e[r(479)],t[r(466)][r(477)]=r(430),t.style[r(503)]="auto",t[r(466)][r(467)]=r(458),s.appendChild(t)}else s[r(466)][r(503)]="100px",s.style[r(420)]=r(511),s[r(466)].border="1px dashed #ccc",s[r(427)]=r(488);break;case n[r(491)]:if(e[r(429)]){const t=document[r(484)](r(524));t[r(421)]=e.videoUrl,t[r(466)][r(477)]="100%",t[r(466)][r(503)]=r(513),s.appendChild(t)}else s[r(466)][r(503)]=r(431),s.style.backgroundColor="#000",s.style[r(476)]="1px solid #666",s[r(427)]=r(519),s[r(466)].color=r(445);break;case n[r(514)]:if(e[r(427)]){const t=document.createElement(r(454));t[r(427)]=e[r(427)]||"",t[r(466)][r(521)]=r(489),t[r(466)][r(411)]=r(496),s[r(424)](t)}else s.style[r(503)]=r(502),s[r(466)].padding=r(489),s[r(427)]=r(499);break;default:s.style.height=r(522),s[r(466)].border="1px dashed #ccc",s[r(466)][r(420)]="#f9f9f9",s.textContent=t[r(523)]+r(507)}return s}static[$(497)](t,e,r,s,o=!1){const i=$,a=document[i(484)]("div");a.className=i(463);const c={position:i(446),overflow:i(520)};if(t[i(477)]&&0!==t.width){let e;e="string"==typeof t[i(477)]&&(t[i(477)][i(506)]("px")||t[i(477)].includes("%"))?t[i(477)]:t[i(477)]+"px",c[i(477)]=e,c[i(449)]=i(457)}else c[i(449)]=i(457);if(t[i(503)]&&0!==t.height){const e=typeof t.height===i(460)?t[i(503)]:t[i(503)]+"px";c[i(503)]=e}Object[i(468)](c)[i(443)](([t,e])=>{const n=i;a[n(466)][n(464)](t,e)});const l=!t.width||0===t.width,d=!t[i(503)]||0===t.height;if(l||d){const n=document[i(484)]("div");if(n[i(466)][i(414)]="\n position: absolute;\n visibility: hidden;\n white-space: nowrap;\n top: -9999px;\n left: -9999px;\n ",!l&&t.width){let e;e=typeof t[i(477)]===i(460)&&(t[i(477)].includes("px")||t[i(477)][i(506)]("%"))?t[i(477)]:t[i(477)]+"px",n.style[i(477)]=e,n[i(466)].whiteSpace=i(470)}document.body[i(424)](n);let r=0,s=0;e[i(443)](e=>{const o=i,a=this[o(504)](t,e);n[o(424)](a);const c=a[o(448)]();c[o(477)]>r&&(r=c[o(477)]),c.height>s&&(s=c[o(503)]),n[o(516)](a)}),l&&r>0&&(a[i(466)].width=r+"px",c[i(477)]=r+"px"),d&&s>0&&(a[i(466)][i(503)]=s+"px",c[i(503)]=s+"px"),document[i(418)][i(516)](n)}const u=[...e,e[0]],p=document.createElement(i(454));p[i(473)]=i(428);const h={display:i(413),transition:"transform 0.4s ease-out",width:100*u[i(432)]+"%"};t[i(503)]&&0!==t[i(503)]&&(h[i(503)]=i(430)),Object.entries(h).forEach(([t,e])=>{p[i(466)].setProperty(t,e)}),u[i(443)]((e,n)=>{const r=i,a=document[r(484)](r(454));a[r(473)]=r(518);const c={width:100/u.length+"%","flex-shrink":"0",display:r(413),"align-items":r(510),"justify-content":r(510)};t[r(503)]&&0!==t.height&&(c[r(503)]=r(430)),Object.entries(c)[r(443)](([t,e])=>{const n=r;a[n(466)][n(464)](t,e)});const l=this[r(504)](t,e);J[r(459)](l,e,t,s,o,String(t.adType).toLowerCase()),a.appendChild(l),p.appendChild(a)});const f=e[i(487)](t=>t[i(523)]===n[i(514)])?null:this.createMinimalDotIndicator(e[i(432)]);let g=0;const m=e[i(432)],y=1e3*(r?.[i(492)]||3),v=(n,r=!1)=>{const a=i;g=n,r?p.style[a(493)]=a(475):p[a(466)][a(493)]=a(494),p[a(466)][a(517)]=a(505)+100/u.length*g+"%)";const c=g===m?0:g;if(f){f.querySelectorAll(a(412))[a(443)]((t,e)=>{const n=a,r=t;e===c?(r[n(485)][n(437)](n(444)),r[n(466)][n(509)]=n(498),r[n(466)][n(452)]=n(498),r[n(466)][n(525)]="1"):(r.classList[n(435)](n(444)),r.style[n(509)]=n(419),r[n(466)][n(452)]=n(500),r[n(466)][n(525)]=n(495))})}W[a(456)](e[c],t,c,s,o)},I=()=>{g===m&&setTimeout(()=>{v(0,!0)},400)};if(f){f[i(461)](".adstage-dot")[i(443)]((t,e)=>{t[i(474)]("click",()=>v(e))})}let b=setInterval(()=>{v(g+1),I()},y);return a.addEventListener("mouseenter",()=>{clearInterval(b)}),a[i(474)](i(512),()=>{b=setInterval(()=>{v(g+1),I()},y)}),this.addTouchSupport(p,v,()=>g,m,I),a[i(424)](p),f&&a[i(424)](f),v(0),(!t.width||0===t[i(477)])&&setTimeout(()=>{const e=i,n=p.children[0];if(n){const r=n[e(439)][0];if(r){const n=r[e(448)]();a[e(466)][e(477)]=n[e(477)]+"px",(!t.height||0===t.height)&&(a[e(466)][e(503)]=n[e(503)]+"px"),a[e(466)][e(486)]=e(520)}}},10),a}static[$(515)](t){const e=$,n=document[e(484)](e(454));n[e(473)]=e(482),n[e(466)][e(414)]=e(451);for(let r=0;r<t;r++){const t=document[e(484)](e(453));t.className=e(440),t[e(466)][e(414)]=e(426),t[e(474)](e(450),()=>{const n=e;!t.classList[n(455)](n(444))&&(t[n(466)].borderColor=n(425),t.style[n(525)]="0.9")}),t[e(474)]("mouseleave",()=>{const n=e;!t.classList[n(455)](n(444))&&(t.style[n(452)]=n(500),t.style[n(525)]=n(495))}),n[e(424)](t)}return n}static[$(480)](t,e,n,r,s){const o=$;let i=0,a=!1;t[o(474)](o(490),t=>{const e=o;i=t.touches[0][e(462)],a=!0}),t[o(474)](o(508),t=>{a&&t[o(417)]()}),t[o(474)](o(527),t=>{const c=o;if(!a)return;a=!1;const l=t[c(471)][0][c(462)],d=i-l;if(Math[c(526)](d)>50){const t=n();if(d>0){e(t+1),s&&s()}else{e(t>0?t-1:r-1)}}})}}const nt=rt;function rt(t,e){const n=ot();return(rt=function(t,e){return n[t-=234]})(t,e)}!function(t){const e=rt,n=t();for(;;)try{if(762702===-parseInt(e(235))/1+-parseInt(e(248))/2+parseInt(e(251))/3+-parseInt(e(249))/4*(parseInt(e(246))/5)+parseInt(e(238))/6+parseInt(e(242))/7+parseInt(e(237))/8)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(ot);class st{static[nt(234)](t,e,n=!1){const r=nt,s=t+"_"+e;return st.viewableTracker[r(250)](s)?(n&&console[r(239)](r(243)+t+r(247)+e),!0):(st[r(240)][r(245)](s),n&&console[r(239)]("✅ New viewable recorded for ad "+t+r(247)+e),!1)}static clear(){const t=nt;st[t(240)][t(244)]()}static[nt(236)](t,e){const n=nt,r=t+"_"+e;st.viewableTracker[n(241)](r)}}function ot(){const t=["1644336TxYvQB","isDuplicateViewable","1209530pmIMsj","clearAdViewable","3235712aXFtcX","7270728NXkhCR","log","viewableTracker","delete","6522838LfPlos","Duplicate viewable blocked for ad ","clear","add","5kLWdCv"," in slot ","56248JMyGnA","4383368gSIePm","has"];return(ot=function(){return t})()}st.viewableTracker=new Set;const it=at;function at(t,e){const n=lt();return(at=function(t,e){return n[t-=265]})(t,e)}!function(t){const e=at,n=t();for(;;)try{if(415528===parseInt(e(331))/1*(parseInt(e(361))/2)+parseInt(e(328))/3+parseInt(e(302))/4*(parseInt(e(373))/5)+-parseInt(e(267))/6*(parseInt(e(274))/7)+-parseInt(e(288))/8+-parseInt(e(381))/9*(parseInt(e(265))/10)+parseInt(e(278))/11)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(lt);class ct{constructor(t,e=!1,n){const r=at;this[r(277)]=t,this[r(351)]=e,this[r(342)]=n||null}[it(356)](t,e,n,r){const s=it,o=document[s(365)](s(273));o.id=e,o.className=s(299)+String(this[s(277)]).toLowerCase(),o.setAttribute(s(344),s(382)),o.setAttribute(s(310),String(this[s(277)])),o[s(304)](s(341),e);const{width:i,height:a}=this[s(347)](t,n,r)||{width:"100%",height:this[s(332)]()};o.style[s(275)]=i,o[s(353)][s(319)]=a;const c=r?.[s(336)]||n[s(336)]||s(338);this[s(355)](o,c),t.appendChild(o),this[s(351)]&&console.log(s(375)+this.adType+s(358)+e+" ("+i+s(279)+a+s(360)+c)}applyPlaceholderStyle(t,e){const n=it;switch(e){case n(338):t.style.backgroundColor=n(364),t.style[n(339)]="none",t.style[n(287)]="0",t[n(300)]="";break;case n(364):t.style[n(370)]=n(364),t[n(353)][n(339)]=n(284),t[n(353)].display=n(380),t[n(300)]="";break;case"subtle":t[n(353)][n(370)]=n(330),t[n(353)][n(339)]=n(284),t[n(353)][n(322)]="4px",t[n(353)][n(293)]=n(333),t.style[n(374)]=n(343),t[n(353)][n(282)]=n(343),t[n(300)]=n(377);break;case n(371):t.style[n(370)]=n(317),t[n(353)][n(339)]=n(378),t.style[n(322)]=n(369),t[n(353)][n(293)]=n(333),t[n(353)][n(374)]="center",t[n(353)][n(282)]="center",t[n(300)]='<span style="color: rgba(0, 0, 0, 0.4); font-size: 12px; font-family: -apple-system, sans-serif;">•••</span>';break;case"debug":t.style[n(339)]=n(335),t[n(353)][n(293)]="flex",t[n(353)][n(374)]=n(343),t[n(353)][n(282)]=n(343),t.style[n(370)]=n(367),t.style[n(292)]=n(334),t[n(353)][n(294)]=n(340),t.style[n(296)]=n(350),t[n(300)]=n(348)+this.adType+n(337);break;default:t[n(353)][n(339)]="1px dashed #ccc",t[n(353)][n(293)]=n(333),t[n(353)][n(374)]=n(343),t.style.justifyContent=n(343),t[n(353)][n(370)]=n(281),t[n(353)][n(292)]="#666",t[n(300)]=n(348)+this[n(277)]+n(337)}}[it(347)](t,e,n){const r=it,s=e[r(275)],o=e[r(319)];let i,a;if(i=typeof s===r(376)?s+"px":typeof s===r(318)?s:r(359),typeof o===r(376))a=o+"px";else if("string"==typeof o&&o!==r(359)&&o!==r(285))a=o;else{const e=this[r(306)](t);e>0?(a=r(359),(n?.[r(351)]||this.debug)&&console[r(321)]("📏 Using 100% height (container: "+e+"px)")):(a=this[r(332)](),(n?.[r(351)]||this[r(351)])&&console[r(321)](r(372)+a+r(290)+this[r(277)]))}return{width:i,height:a}}getContainerHeight(t){const e=it,n=window.getComputedStyle(t),r=parseFloat(n[e(319)]);if(!r||0===r){const r=parseFloat(n[e(298)]);if(r>0)return r;if(t.style[e(319)]&&t[e(353)][e(319)]!==e(285)){const n=parseFloat(t[e(353)].height);if(n>0)return n}const s=t[e(327)](e(319));if(s){const t=parseFloat(s);if(t>0)return t}}return r||0}[it(308)](){return async(t,e,n)=>{const r=at;if(n===c[r(368)]){if(st.isDuplicateViewable(t,e,this[r(351)]))return void(this.debug&&console[r(321)]("🚫 Duplicate viewable blocked for ad "+t+r(346)+e));this[r(351)]&&console.log(r(276)+t+r(346)+e)}if(this[r(342)])try{this[r(351)]&&console[r(321)](r(307)+n+r(325)+t+r(346)+e),await this[r(342)][r(345)](t,e,n),this[r(351)]&&console[r(321)](r(349)+n+" for ad "+t+r(346)+e)}catch(e){this.debug&&console[r(320)](r(271)+n+r(352)+t+":",e)}else this[r(351)]&&console.warn(r(366)+n+r(323))}}[it(379)](t){const e=it,n=document[e(357)](t.id);if(n){const r=[...[n[e(303)](e(362)),n[e(313)]('[data-adstage-container="true"]'),n].filter(t=>t&&t.hasAttribute("data-adstage-container")),...[n[e(313)](e(272)),n[e(313)](e(289)+String(this.adType)[e(297)]()),n[e(313)](e(324)),n[e(313)](e(266)),n.closest('[class*="container"]'),n[e(313)](e(301)),n[e(313)](e(329)),n.parentElement][e(383)](Boolean)][0];if(r){let n="unknown";n=r[e(280)](e(344))?e(269):r.classList[e(270)](e(315))?"adstage-class":e(309),r[e(353)].cssText+="\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(300)]="",r[e(304)]("data-adstage-empty","true"),this[e(351)]&&console.warn("⚠️ "+this[e(277)]+" container collapsed ("+n+e(305)+t.id,r)}else this[e(314)](t)}t[e(291)]=void 0,t[e(286)]=!0}[it(314)](t){const e=it,n=document[e(357)](t.containerId);if(n){n.innerHTML="";const r=document.createElement(e(273));r.id=t.id,r[e(363)]=e(354)+String(this[e(277)]).toLowerCase(),r[e(304)](e(344),e(382)),r[e(304)](e(316),e(382)),r[e(304)]("data-adstage-slot",t.id),r.style[e(312)]=e(326),n[e(295)](r),this.debug&&console[e(283)](e(268)+this[e(277)]+e(311)+t.id)}}log(t,...e){const n=it;this.debug&&console[n(321)]("["+this[n(277)]+"] "+t,...e)}}function lt(){const t=["477380wPOJAb",'[class*="banner"]',"11292YsEIYG","⚠️ Created empty ","adstage-official","contains","❌ Failed to track ",".adstage-slot","div","616kSyjEx","width","✅ New viewable recorded for ad ","adType","9972699JfGGAO"," x ","hasAttribute","#f9f9f9","justifyContent","warn","none","auto","isEmpty","opacity","2632088PUsXoQ",".adstage-"," for ","advertisement","color","display","fontFamily","appendChild","fontSize","toLowerCase","minHeight","adstage-slot adstage-","innerHTML",'div[style*="height"]',"55660nXctYD","querySelector","setAttribute","): ","getContainerHeight","🔄 Starting advertisement event tracking: ","createEventTrackingCallback","generic","data-adstage-type"," container: ","cssText","closest","createEmptyContainer","adstage-slot","data-adstage-empty","rgba(248, 249, 250, 0.5)","string","height","error","log","borderRadius"," event",'[class*="ad"]'," 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 ","getAttribute","223644eZxEEf",'div[style*="min-height"]',"rgba(0, 0, 0, 0.02)","177BdTNRh","getDefaultHeight","flex","#e74c3c","2px dashed #e74c3c","placeholderMode"," ad...</span>","invisible","border","monospace","data-adstage-slot","advertisementEventTracker","center","data-adstage-container","trackAdvertisementEvent"," in slot ","calculateAdSize","<span>Loading ","📊 Advertisement event tracked: ","11px","debug"," event for ad ","style","adstage-slot adstage-empty adstage-","applyPlaceholderStyle","createPlaceholder","getElementById"," slot: ","100%",") - Mode: ","8BHyjKQ",'[data-adstage-container="true"]',"className","transparent","createElement","⚠️ AdvertisementEventTracker not available for ","rgba(231, 76, 60, 0.1)","VIEWABLE","6px","backgroundColor","minimal","📏 Using default height ","60xJIEYm","alignItems","📦 Placeholder created for ","number",'<span style="color: rgba(0, 0, 0, 0.3); font-size: 11px; font-family: sans-serif;">•••</span>',"1px solid rgba(0, 0, 0, 0.08)","renderFallback","block","45EwVvub","true","filter"];return(lt=function(){return t})()}const dt=ut;function ut(t,e){const n=pt();return(ut=function(t,e){return n[t-=215]})(t,e)}function pt(){const t=["createEventTrackingCallback","_id","12KQskET","optimizeContainerForBannerAds","map","contain","Container not found: ","createElement","src","objectFit"," with ","📐 Optimal banner container calculated: ","renderAdElement","value"," ads (optimized: ","naturalWidth","getElementById","✅ Optimized banner image rendered for ad: ","log","708814cVdhNq","round","slideInterval","📸 Banner image dimensions: ","count","5118864kvbxca","debug","getDefaultHeight","values","calculateOptimalContainerSize","onerror","filter","block","appendChild","div","1860115ZJMEpk","set","applyOptimizedImageStyle"," (strategy: ","🎨 Banner image style applied: objectFit=","loadImageDimensions","get","16:9","parentElement","warn","backgroundColor","imageUrl","createSliderContainer","toFixed","toString","height","img","getBoundingClientRect","3:2","📦 Banner container dimensions: ","aspectRatio","containerId","className","renderOptimizedBannerImage","🎠 Banner carousel created for slot: ","13691808rEObOb","8px","ratio","calculateAdSize","renderMultipleAds","4:3","allSettled","forEach","some","width","Banner","fulfilled","common","202832LdIulW","1:1","❌ Failed to load optimized banner image:","objectPosition","</div>","100%","error","config","abs","length","addClickEventForRenderer","title","optimizedHeight","415022rMKQIZ","calculateOptimalHeight","2705754ZuTTSF","reduce","alt","style","Image URL is not provided","cover","innerHTML","Banner Advertisement","naturalHeight","dominant","name","default","center","selectOptimalSizeStrategy","Banner Ad","#f0f0f0","Failed to load image: "];return(pt=function(){return t})()}!function(t){const e=ut,n=t();for(;;)try{if(683925===-parseInt(e(240))/1+parseInt(e(306))/2+parseInt(e(308))/3+parseInt(e(245))/4+-parseInt(e(255))/5*(-parseInt(e(223))/6)+-parseInt(e(293))/7+-parseInt(e(280))/8)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(pt);class ht extends ct{constructor(t=!1,e){super(n.BANNER,t,e)}[dt(247)](){return"250px"}async[dt(233)](t,e){const n=dt,r=document[n(237)](t[n(276)]);if(!r)return;const s=document[n(228)](n(254));s[n(277)]="adstage-ad adstage-banner-ad";const o=t[n(305)],i=r[n(263)]||r;if(o)s[n(311)][n(289)]=n(298),s.style[n(270)]=String(o);else{const e=t.config,r={width:e?.[n(289)],height:e?.height},{width:o,height:a}=this[n(283)](i,r,{debug:this[n(246)]});s[n(311)].width=o,s[n(311)].height=a}e[n(266)]?await this[n(278)](s,e,t):s[n(314)]="<div>"+(e.title||n(218))+n(297),J.addClickEventForRenderer(s,e,t,()=>this[n(221)](),this[n(246)],n(290)),r[n(314)]="",r[n(253)](s)}async[dt(284)](t,e){const n=dt,r=document[n(237)](t[n(276)]);if(!r)throw new Error(n(227)+t.containerId);await this[n(224)](t,e);const s=this.createEventTrackingCallback(),o={autoSlideInterval:(t[n(300)]?.[n(242)]||5e3)/1e3,...t[n(300)],optimizedHeight:t[n(305)],aspectRatio:t.aspectRatio},i=et[n(267)](t,e,o,s,this[n(246)]);i&&(r[n(314)]="",r.appendChild(i),this[n(246)]&&console[n(239)](n(279)+t.id+n(231)+e.length+n(235)+(t[n(305)]||n(215))+")"))}async[dt(249)](t,e){const n=dt;if(!t[n(302)])return{width:n(298),height:this[n(247)](),aspectRatio:16/9};try{const r=(await Promise[n(286)](t.filter(t=>t[n(266)])[n(225)](t=>this[n(260)](t[n(266)]))))[n(251)](t=>t.status===n(291))[n(225)](t=>t[n(234)]);if(0===r[n(302)])return{width:n(298),height:this.getDefaultHeight(),aspectRatio:16/9};const s=this[n(217)](r),o=this[n(307)](r,e,s);return this[n(246)]&&console[n(239)](n(232)+e+"x"+o+n(258)+s+")"),{width:n(298),height:o+"px",aspectRatio:e/o}}catch(t){return console[n(264)]("Failed to calculate optimal banner size, using defaults:",t),{width:n(298),height:this[n(247)](),aspectRatio:16/9}}}async[dt(224)](t,e){const n=dt;try{const r=document[n(237)](t[n(276)]),s=document[n(237)](t.id);if(!r||!s)return;const o=r[n(272)]().width||300,i=await this[n(249)](e,o);s[n(311)][n(270)]=i.height,t[n(305)]=i.height,t.aspectRatio=i[n(275)],this[n(246)]&&console.log("🔧 Banner container optimized for "+e[n(302)]+" ads: "+i[n(270)])}catch(t){console[n(264)]("Banner container optimization failed, using default size:",t)}}[dt(217)](t){const e=dt,n=t[e(225)](t=>t[e(289)]/t.height),r=new Map;n[e(287)](t=>{const n=e,s=(Math[n(241)](10*t)/10)[n(269)]();r[n(256)](s,(r[n(261)](s)||0)+1)});const s=Math.max(...r[e(248)]()),o=t.length;if(s/o>=.7)return e(317);const i=[16/9,4/3,1,1.5];return n[e(251)](t=>i[e(288)](e=>Math.abs(t-e)<.1))[e(302)]/o>=.5?e(292):"average"}calculateOptimalHeight(t,e,n){const r=dt,s=t.map(t=>t.width/t[r(270)]);switch(n){case r(317):{const t=new Map;s[r(287)](e=>{const n=r,s=Math[n(241)](10*e)/10,o=s[n(269)](),i=t[n(261)](o);i?i[n(244)]++:t[n(256)](o,{ratio:s,count:1})});const n=Array.from(t.values()).reduce((t,e)=>e[r(244)]>t.count?e:t);return Math[r(241)](e/n[r(282)])}case r(292):{const t=[{ratio:16/9,name:r(262)},{ratio:4/3,name:r(285)},{ratio:1,name:r(294)},{ratio:1.5,name:r(273)}],n=s[r(309)]((t,e)=>t+e,0)/s.length,o=t[r(309)]((t,e)=>Math[r(301)](e.ratio-n)<Math.abs(t[r(282)]-n)?e:t);return this.debug&&console.log("📊 Using standard ratio: "+o[r(318)]+" (avg: "+n[r(268)](2)+")"),Math.round(e/o.ratio)}default:{const t=s[r(309)]((t,e)=>t+e,0)/s[r(302)];return Math[r(241)](e/t)}}}[dt(260)](t){return new Promise((e,n)=>{const r=ut,s=new Image;s.onload=()=>{const t=ut;e({width:s[t(236)],height:s[t(316)]})},s[r(250)]=()=>{n(new Error(r(220)+t))},s[r(229)]=t})}[dt(257)](t,e,n){const r=dt,s=e/n;Math[r(301)](s-1)<.1?(t[r(311)][r(230)]=r(313),t.style[r(296)]=r(216)):s>1.3?(t[r(311)][r(230)]=r(226),t[r(311)].objectPosition=r(216),t[r(311)][r(265)]=r(219)):s<.7?(t.style.objectFit=r(313),t.style.objectPosition=r(216)):(t.style[r(230)]=r(313),t.style[r(296)]="center"),this[r(246)]&&console[r(239)](r(259)+t.style[r(230)]+", ratio="+s[r(268)](2))}async[dt(278)](t,e,n){const r=dt,s=document[r(228)](r(271));s.style[r(289)]=r(298),s.style[r(270)]=r(298),s[r(311)].display=r(252),s[r(311)].borderRadius=r(281),s[r(310)]=e[r(304)]||r(315),t[r(314)]='<div style="display: flex; align-items: center; justify-content: center; height: 100%; color: #999;">Loading...</div>';try{if(!e[r(266)])throw new Error(r(312));const o=await this[r(260)](e[r(266)]),i=t[r(272)](),a=i[r(289)],c=i[r(270)];this[r(246)]&&(console[r(239)](r(243)+o.width+"x"+o[r(270)]),console.log(r(274)+a+"x"+c));const l=o[r(289)]/o.height,d=a/c;return this[r(257)](s,l,d),s[r(229)]=e[r(266)],t.innerHTML="",t[r(253)](s),J.addClickEventForRenderer(s,e,n,()=>this[r(221)](),this[r(246)],r(290)),this[r(246)]&&console[r(239)](r(238)+e[r(222)]),s}catch(o){return console[r(299)](r(295),o),e[r(266)]&&(s.src=e[r(266)],s[r(311)][r(230)]=r(313),s[r(311)].objectPosition="center",t[r(314)]="",t.appendChild(s),J[r(303)](s,e,n,()=>this[r(221)](),this.debug,r(290))),s}}}function ft(){const t=["createTextAdStyles","1135372PKwEMQ","6UIZrXP","3504120IqZnTz","247505RhOTOj","\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 ","title","6606747FkETGb","textContent","2wJuSdz","5148984IwKYBE","setTextAdContent","546264DWxYdt","12160197PxAoxN"];return(ft=function(){return t})()}function gt(t,e){const n=ft();return(gt=function(t,e){return n[t-=115]})(t,e)}const mt=gt;!function(t){const e=gt,n=t();for(;;)try{if(726638===parseInt(e(117))/1+-parseInt(e(125))/2*(-parseInt(e(119))/3)+-parseInt(e(126))/4+parseInt(e(120))/5+parseInt(e(118))/6*(parseInt(e(123))/7)+parseInt(e(128))/8+-parseInt(e(115))/9)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(ft);class yt{static[mt(116)](t=!1){return mt(121)}static[mt(127)](t,e){const n=mt,r=e[n(124)]||e[n(122)]||"";t[n(124)]=r}}const vt=bt;function It(){const t=["\n position: relative;\n width: 100%;\n ","20px","length","opacity","includes","data-adstage-slot-id","block","translateY(0)","\n display: flex;\n align-items: center;\n justify-content: flex-start;\n opacity: ","505746JATQZk","top","mouseenter","touchstart","zIndex","absolute","adstage-fade-slider-wrapper","19294UKbneR","data-adstage-ad-id","addClickEventForSlider","1884bJDGYY","addEventListener","body","adstage-fade-slide-container","setProperty","height: 100%;","trackSlideViewable","removeChild","createSimpleAdElement","addTouchSupport","position",";\n ","push","appendChild","adstage-ad adstage-","1WHIYDz","whiteSpace","setAttribute","cssText","_id","hidden","clientX",";\n top: ","height: auto;","autoSlideInterval","normal","touches","2456SSggeP","setTextAdContent","108OHMyYf","\n ","transform","Text","changedTouches","style","36tnHsRQ","1907235spseBC","mouseleave","createTextAdStyles","fit-content",");\n transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);\n z-index: ","abs","2168415bZqDdn","height","forEach","className","div","1059740IAMZhM","entries",";\n transform: translateY(","string","\n position: ","left","clientY","relative","minHeight","toLowerCase","8ECuQQw","auto","adType","createElement","width","289821MrQIFF"];return(It=function(){return t})()}function bt(t,e){const n=It();return(bt=function(t,e){return n[t-=465]})(t,e)}!function(t){const e=bt,n=t();for(;;)try{if(223191===parseInt(e(520))/1*(parseInt(e(495))/2)+-parseInt(e(534))/3*(parseInt(e(532))/4)+-parseInt(e(541))/5+parseInt(e(540))/6*(-parseInt(e(485))/7)+parseInt(e(480))/8*(parseInt(e(465))/9)+parseInt(e(470))/10+parseInt(e(502))/11*(parseInt(e(505))/12))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(It);class wt{static[vt(513)](t,e){const n=vt,r=document[n(483)](n(469));return r.className=n(519)+String(t[n(482)])[n(479)](),r.setAttribute(n(503),e[n(524)]),r[n(522)](n(491),t.id),r.style.cssText=yt[n(543)](!0),yt[n(533)](r,e),r}static createTextTransitionContainer(t,e,n,r,s=!1){const o=vt,i=t.height&&0!==t[o(466)]&&t[o(466)]!==o(481),a=document[o(483)](o(469));a[o(468)]=o(501);const c={position:o(477),overflow:o(525),display:o(492)};if(!i&&(c[o(466)]="auto",c[o(478)]=o(544)),t[o(484)]&&0!==t[o(484)]){let e;e="string"==typeof t[o(484)]?t[o(484)][o(490)]("px")||t[o(484)][o(490)]("%")?t[o(484)]:t[o(484)]+"px":t.width+"px",c[o(484)]=e}if(t.height&&0!==t[o(466)]&&t[o(466)]!==o(481)&&i){let e;e=typeof t[o(466)]===o(473)&&(t[o(466)][o(490)]("px")||t[o(466)][o(490)]("%"))?t[o(466)]:t[o(466)]+"px",c[o(466)]=e}Object[o(471)](c).forEach(([t,e])=>{const n=o;a[n(539)][n(509)](t,e)});const l=document.createElement(o(469));l[o(468)]=o(508),l[o(539)][o(523)]=o(486)+(i?o(510):"height: auto; min-height: fit-content;")+o(535);let d=null;const u=!t.width||0===t[o(484)],p=!t.height||0===t[o(466)]||void 0===t[o(466)]||t[o(466)]===o(481);if(u||p&&i){if(d=document.createElement(o(469)),d[o(539)].cssText="\n position: absolute;\n visibility: hidden;\n white-space: nowrap;\n top: -9999px;\n left: -9999px;\n ",!u&&t.width){let e;e=typeof t[o(484)]===o(473)&&(t[o(484)][o(490)]("px")||t[o(484)][o(490)]("%"))?t[o(484)]:t[o(484)]+"px",d[o(539)][o(484)]=e,d[o(539)][o(521)]=o(530)}document[o(507)].appendChild(d);let n=0,r=0;e[o(467)](e=>{const s=o,i=this.createSimpleAdElement(t,e);d[s(518)](i);const a=i.getBoundingClientRect();a.width>n&&(n=a[s(484)]),a[s(466)]>r&&(r=a[s(466)]),d[s(512)](i)}),u&&n>0&&(a[o(539)].width=n+"px"),p&&r>0&&i&&(a[o(539)][o(466)]=r+"px"),document[o(507)][o(512)](d)}const h=[];e[o(467)]((e,n)=>{const a=o,c=document[a(483)](a(469));c.className="adstage-fade-slide";const d=a(i?500:0===n?477:500);c.style[a(523)]=a(474)+d+a(527)+(d===a(500)?"0":"auto")+";\n left: "+(d===a(500)?"0":"auto")+";\n width: 100%;\n "+(i?"height: 100%;":a(528))+a(494)+(0===n?"1":"0")+a(472)+(0===n?"0":a(487))+a(545)+(0===n?"2":"1")+a(516);const u=this[a(513)](t,e);J[a(504)](u,e,t,r,s,a(537)),c[a(518)](u),l[a(518)](c),h[a(517)](c)});let f=0;const g=e[o(488)],m=1e3*(n?.[o(529)]||4),y=n=>{const a=o;n>=g?n=0:n<0&&(n=g-1);const c=h[f],l=h[n];!i&&("relative"===c[a(539)][a(515)]&&(c.style[a(515)]=a(500),c[a(539)][a(496)]="0",c[a(539)][a(475)]="0"),l[a(539)][a(515)]=a(477),l.style.top="auto",l[a(539)][a(475)]="auto"),c[a(539)][a(489)]="0",c[a(539)][a(536)]="translateY(-20px)",c[a(539)][a(499)]="1",l[a(539)].opacity="1",l[a(539)][a(536)]=a(493),l.style[a(499)]="2",h.forEach((t,e)=>{const r=a;e!==n&&e!==f&&(t[r(539)][r(489)]="0",t[r(539)].transform="translateY(20px)",t[r(539)][r(499)]="1",!i&&t[r(539)].position===r(477)&&(t[r(539)][r(515)]=r(500),t[r(539)][r(496)]="0",t[r(539)][r(475)]="0"))}),f=n,W[a(511)](e[f],t,f,r,s)};let v=setInterval(()=>{y(f+1)},m);return a[o(506)](o(497),()=>{clearInterval(v)}),a[o(506)](o(542),()=>{v=setInterval(()=>{y(f+1)},m)}),wt[o(514)](a,y,()=>f,g),a[o(518)](l),a}static addTouchSupport(t,e,n,r){const s=vt;let o=0,i=0,a=!1;t[s(506)](s(498),t=>{o=t[s(531)][0].clientX,i=t.touches[0].clientY,a=!0}),t.addEventListener("touchmove",t=>{a&&t.preventDefault()}),t[s(506)]("touchend",t=>{const r=s;if(!a)return;a=!1;const c=t[r(538)][0][r(526)],l=t[r(538)][0][r(476)],d=o-c,u=i-l;if(Math[r(546)](d)>Math[r(546)](u)&&Math[r(546)](d)>50){const t=n();e(d>0?t+1:t-1)}})}}const kt=Et;function Et(t,e){const n=xt();return(Et=function(t,e){return n[t-=462]})(t,e)}function xt(){const t=["overflow","createEventTrackingCallback","createTextTransitionContainer","className","calculateAdSize","maxLines","5382MqxsDC","hidden","webkitBoxOrient","renderAdElement","innerHTML","getDefaultHeight","7BkvCuu"," ads","getElementById","adstage-text-content","appendChild","100%","10LTZQWF","60px","TEXT","Container not found: ","width","slideInterval","height","705020VNgiQj","2271ktfdaW","debug","setTextAdContent","adstage-ad adstage-text-ad","693837kipfBb","style","createElement","✨ Single text ad rendered: ","div","containerId","_id","vertical","3927693dxfFlN","-webkit-box","2009240XFXOii","cssText","optimizedHeight","log","config","2437266GnKzyn","length","34TIPzHc","3910hzakCw","renderMultipleAds"," with ","number","✨ Text transition created for slot: "];return(xt=function(){return t})()}!function(t){const e=Et,n=t();for(;;)try{if(226323===-parseInt(e(498))/1*(-parseInt(e(466))/2)+-parseInt(e(502))/3+-parseInt(e(497))/4*(-parseInt(e(490))/5)+parseInt(e(464))/6+parseInt(e(484))/7*(parseInt(e(512))/8)+-parseInt(e(478))/9*(parseInt(e(467))/10)+-parseInt(e(510))/11)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(xt);class St extends ct{constructor(t=!1,e){super(n[Et(492)],t,e)}[kt(483)](){return kt(491)}async[kt(481)](t,e){const n=kt,r=document[n(486)](t[n(507)]);if(!r)return;const s=document[n(504)]("div");s[n(475)]=n(501);const o=t[n(514)],i=r.parentElement||r;if(o)s.style[n(494)]=n(489),s.style[n(496)]=String(o);else{const e=t[n(463)],r={width:e?.[n(494)],height:e?.height},{width:o,height:a}=this[n(476)](i,r,{debug:this[n(499)]});s[n(503)][n(494)]=o,s[n(503)][n(496)]=a}const a=document.createElement(n(506));a[n(475)]=n(487),a[n(503)][n(513)]=yt.createTextAdStyles(!1),yt[n(500)](a,e);const c=t[n(463)]?.[n(477)];c&&typeof c===n(470)&&(a[n(503)].display=n(511),a[n(503)].webkitLineClamp=String(c),a.style[n(480)]=n(509),a[n(503)][n(472)]=n(479)),s[n(488)](a),J.addClickEventForRenderer(s,e,t,()=>this[n(473)](),this.debug,"Text"),r[n(482)]="",r[n(488)](s),this[n(499)]&&console[n(462)](n(505)+e[n(508)])}async[kt(468)](t,e){const n=kt,r=document[n(486)](t[n(507)]);if(!r)throw new Error(n(493)+t.containerId);const s=this[n(473)](),o={autoSlideInterval:(t[n(463)]?.[n(495)]||5e3)/1e3,...t[n(463)],optimizedHeight:t[n(514)],aspectRatio:t.aspectRatio},i=wt[n(474)](t,e,o,s,this[n(499)]);i&&(r[n(482)]="",r.appendChild(i),this.debug&&console.log(n(471)+t.id+n(469)+e[n(465)]+n(485)))}}const At=Tt;function Ct(){const t=["createEventTrackingCallback","className","scale(1.1)","renderVideoElementDirect","img","autoplay","play","renderMultipleAds","563718ilDnwz","src",", loop: ","🎬 Video controls setting:","loadeddata","\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 ","956940GTOQJS","textContent","length","🎬 Video can play, attempting autoplay...","🎬 Single video rendered for VIDEO slot: "," !important;\n }\n video::-webkit-media-controls-current-time-display {\n display: ","width","click","transform","contain","log","createElement","hideFullscreenButton","playsinline","VIDEO","controls","stopPropagation","paused","loadedmetadata","Click to mute"," (autoplay: ","metadata","objectFit","customControls","button","warn","307530BXqCio","hidePlayButton","unmuted","100%","rgba(0, 0, 0, 0.9)","cssText","Video","🎬 User explicitly enabled controls, overriding default","167967sBXOQJ","debug","\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 ","addEventListener","🎬 Initial autoplay attempt after timeout...","hideMuteButton","setAttribute","video","_id","innerHTML","relative","block","mouseleave","head","position","hideProgressBar","hideControls","27844FxAfQq","🎬 Video config received:","style","adstage-video-container","height","catch","1715805ZWVsGx","containerId","imageUrl","mouseenter"," !important;\n }\n video::-webkit-media-controls-timeline {\n display: ","getElementById","title","5OBOxJi","videoUrl","\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 ","adstage-video-default-controls","appendChild","error","addClickEventForRenderer","Click to unmute","4807464yZBQxa","config"," !important;\n }\n video::-webkit-media-controls-mute-button {\n display: ","display","🎬 Video data loaded, attempting autoplay...","background","🎬 Video metadata loaded, attempting autoplay...","🎬 Trying muted autoplay fallback...","🎬 Autoplay completely failed:","scale(1)"," !important;\n }\n video::-webkit-media-controls-fullscreen-button {\n display: ","canplay"," !important;\n }\n ","\n video::-webkit-media-controls-play-button {\n display: ","enabled","alt","muted",'\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 ',"hideRemainingTime","loop","disabled (default)","🎬 Single video ad rendered: ","none","Video load failed:"];return(Ct=function(){return t})()}function Tt(t,e){const n=Ct();return(Tt=function(t,e){return n[t-=213]})(t,e)}!function(t){const e=Tt,n=t();for(;;)try{if(144027===parseInt(e(279))/1+parseInt(e(239))/2+-parseInt(e(271))/3+-parseInt(e(296))/4*(parseInt(e(309))/5)+parseInt(e(245))/6+parseInt(e(302))/7+-parseInt(e(317))/8)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(Ct);class _t extends ct{constructor(t=!1,e){super(n[Tt(259)],t,e)}getDefaultHeight(){return"360px"}async renderAdElement(t,e){const n=Tt,r=document[n(307)](t.containerId);if(!r)return;const s=document[n(256)]("div");s[n(232)]=n(299),s[n(298)].cssText=n(244),this[n(234)](s,e,t),r[n(288)]="",r[n(313)](s),this[n(280)]&&console[n(255)](n(228)+e._id)}async[At(238)](t,e){const n=At,r=document[n(307)](t[n(303)]);if(!r)throw new Error("Container not found: "+t[n(303)]);if(e[n(247)]>0){const s=e[0],o=document[n(256)]("div");o[n(232)]=n(299),o[n(298)].cssText=n(281),this[n(234)](o,s,t),r[n(288)]="",r[n(313)](o);const i=this[n(231)]();setTimeout(()=>{i(s[n(287)],t.id,c.VIEWABLE)},100),this[n(280)]&&console[n(255)](n(249)+t.id+" ("+s[n(287)]+")")}else this[n(280)]&&console[n(270)]("⚠️ No video advertisements available for slot: "+t.id)}[At(234)](t,e,n){const r=At;t.style[r(293)]=r(289);const s=document[r(256)](r(286));s[r(298)][r(251)]="100%",s[r(298)][r(300)]="100%",s[r(298)][r(267)]=r(254),s.preload=r(266);const o=n[r(318)];if(this[r(280)]&&console[r(255)](r(297),o),s[r(260)]=!1,s[r(236)]=!1!==o?.[r(236)],s[r(223)]=!0,s[r(226)]=!1!==o?.loop,this.debug&&console[r(255)]("🎬 Final video settings:",{autoplay:s[r(236)],muted:s[r(223)],loop:s.loop,controls:s[r(260)]}),!1!==o?.[r(258)]&&s[r(285)]("playsinline",""),!0===o?.[r(260)]&&(s[r(260)]=!0,this[r(280)]&&console.log(r(278))),o?.[r(295)])s.controls=!1,s[r(298)].cssText+="\n pointer-events: none;\n ";else if(o?.customControls){if(s[r(260)]){const t=document.createElement(r(298));t.textContent=r(220)+(o.customControls[r(272)]?r(229):"block")+r(306)+(o[r(268)][r(294)]?"none":r(290))+r(250)+(o[r(268)].hideCurrentTime?r(229):"block")+" !important;\n }\n video::-webkit-media-controls-time-remaining-display {\n display: "+(o[r(268)][r(225)]?r(229):r(290))+" !important;\n }\n video::-webkit-media-controls-volume-slider {\n display: "+(o.customControls.hideVolumeSlider?"none":"block")+r(319)+(o[r(268)][r(284)]?r(229):r(290))+r(217)+(o[r(268)][r(257)]?r(229):"block")+r(219),document.head.appendChild(t)}}else if(s[r(260)]){const t=document[r(256)](r(298));t.id=r(312),t[r(246)]="\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 ",!document[r(307)](r(312))&&document[r(292)][r(313)](t)}this[r(280)]&&console[r(255)](r(242),s[r(260)]?r(221):r(227));const i=document[r(256)](r(269));i[r(232)]="adstage-video-mute-button",i[r(298)][r(276)]=r(311),o?.[r(295)]&&(i[r(298)][r(320)]="none");const a=()=>{const t=r,e=t(224);i[t(288)]=s[t(223)]?'\n <svg width="20" height="20" viewBox="0 0 24 24" fill="white">\n <path d="M16.5 12c0-1.77-1.02-3.29-2.5-4.03v2.21l2.45 2.45c.03-.2.05-.41.05-.63zm2.5 0c0 .94-.2 1.82-.54 2.64l1.51 1.51C20.63 14.91 21 13.5 21 12c0-4.28-2.99-7.86-7-8.77v2.06c2.89.86 5 3.54 5 6.71zM4.27 3L3 4.27 7.73 9H3v6h4l5 5v-6.73l4.25 4.25c-.67.52-1.42.93-2.25 1.18v2.06c1.38-.31 2.63-.95 3.69-1.81L19.73 21 21 19.73l-9-9L4.27 3zM12 4L9.91 6.09 12 8.18V4z"/>\n </svg>\n ':e,i[t(308)]=s[t(223)]?t(316):t(264)};if(a(),i[r(282)](r(252),t=>{const e=r;t[e(261)](),s[e(223)]=!s[e(223)],a(),this[e(280)]&&console[e(255)]("🔊 Video mute toggled: "+(s[e(223)]?e(223):e(273)))}),i[r(282)](r(305),()=>{const t=r;i[t(298)][t(322)]=t(275),i[t(298)][t(253)]=t(233)}),i.addEventListener(r(291),()=>{const t=r;i.style[t(322)]="rgba(0, 0, 0, 0.7)",i.style.transform=t(216)}),e[r(310)]){s.src=e[r(310)];const t=()=>{const t=r;s[t(236)]&&s[t(223)]&&s[t(262)]&&s[t(237)]().catch(e=>{const n=t;this[n(280)]&&(console[n(270)]("🎬 Auto-play was prevented:",e),console[n(270)](n(214))),s[n(223)]=!0,s[n(237)]()[n(301)](t=>{const e=n;this[e(280)]&&console[e(314)](e(215),t)})})};s[r(282)](r(263),()=>{const e=r;this[e(280)]&&console[e(255)](e(213)),t()}),s[r(282)](r(218),()=>{const e=r;this[e(280)]&&console[e(255)](e(248)),t()}),s[r(282)](r(243),()=>{const e=r;this[e(280)]&&console[e(255)](e(321)),t()}),setTimeout(()=>{const e=r;this[e(280)]&&console.log(e(283)),t()},100)}else if(e[r(304)]){const n=document[r(256)](r(235));return n[r(240)]=e.imageUrl,n[r(298)][r(251)]=r(274),n[r(298)].height=r(274),n[r(298)][r(267)]="contain",n[r(222)]=e[r(308)]||"Video thumbnail",void t[r(313)](n)}J.addClickEventForRenderer(s,e,n,()=>this[r(231)](),this[r(280)],r(277)),s[r(282)]("error",s=>{const o=r;if(console.error(o(230),s),e[o(304)]){const r=document[o(256)]("img");r[o(240)]=e.imageUrl,r[o(298)][o(251)]=o(274),r[o(298)][o(300)]=o(274),r[o(298)].objectFit="contain",r[o(222)]=e[o(308)]||"Video thumbnail",J[o(315)](r,e,n,()=>this.createEventTrackingCallback(),this[o(280)],"Video fallback"),t[o(288)]="",t.appendChild(r)}}),t[r(313)](s),t.appendChild(i),this[r(280)]&&console.log("🎬 Video element created for ad: "+e[r(287)]+r(265)+s[r(236)]+", muted: "+s[r(223)]+r(241)+s[r(226)]+")")}}function Rt(){const t=["appendChild","div","containerId","13272077MvpAmx","adstage-ad adstage-native-ad","warn","innerHTML","length","8HwbtRB","addEventListener","Native Advertisement","NATIVE","#2563eb","textContent","#3b82f6","mouseleave","button","Native click tracked for ad: ","14575509gmyaqa","renderMultipleAds","\n margin: 0 0 12px 0;\n font-size: 14px;\n color: #6b7280;\n line-height: 1.4;\n flex: 1;\n ","Learn More","cssText","\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 ","6388266IajWhy","🏠 Native ad rendered (first of ","_id","log","5UgwMRW","advertisementEventTracker","linkUrl","212522Yfucfj","img","open","title","): ","debug","click","getElementById","1730408mDMjnq","\n width: 100%;\n height: 100%;\n object-fit: cover;\n ","62495470dsiOHV","imageUrl","3307448NhFFvc","alt","style","\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 ","⚠️ No native advertisements available for slot: ","_blank","backgroundColor","getDefaultHeight","3iFxrlG","createElement","src"];return(Rt=function(){return t})()}const Pt=Dt;function Dt(t,e){const n=Rt();return(Dt=function(t,e){return n[t-=478]})(t,e)}!function(t){const e=Dt,n=t();for(;;)try{if(994207===parseInt(e(487))/1+parseInt(e(479))/2+parseInt(e(499))/3*(parseInt(e(491))/4)+parseInt(e(530))/5*(parseInt(e(526))/6)+parseInt(e(505))/7+-parseInt(e(510))/8*(-parseInt(e(520))/9)+-parseInt(e(489))/10)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(Rt);class Lt extends ct{constructor(t=!1,e){super(n[Dt(513)],t,e)}[Pt(498)](){return"200px"}async renderAdElement(t,e){const n=Pt,r=document[n(486)](t[n(504)]);if(!r)return;const s=document[n(500)](n(503));if(s.className=n(506),s[n(493)][n(524)]=n(494),e[n(482)]){const t=document[n(500)]("h3");t[n(515)]=e[n(482)],t.style[n(524)]="\n margin: 0 0 8px 0;\n font-size: 16px;\n font-weight: 600;\n color: #111827;\n line-height: 1.3;\n ",s[n(502)](t)}if(e.textContent){const t=document.createElement("p");t[n(515)]=e.textContent,t.style[n(524)]=n(522),s[n(502)](t)}if(e[n(490)]){const t=document.createElement("div");t[n(493)].cssText="\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(500)](n(480));r[n(501)]=e[n(490)],r[n(492)]=e[n(482)]||n(512),r[n(493)].cssText=n(488),t[n(502)](r),s[n(502)](t)}if(e[n(478)]){const t=document[n(500)](n(518));t[n(515)]=n(523),t[n(493)][n(524)]=n(525),t[n(511)](n(485),()=>{const t=n;this[t(531)]&&console[t(529)](t(519)+e[t(528)]),window[t(481)](e.linkUrl,t(496))}),t[n(511)]("mouseenter",()=>{const e=n;t[e(493)][e(497)]=e(514)}),t[n(511)](n(517),()=>{const e=n;t[e(493)][e(497)]=e(516)}),s[n(502)](t)}r[n(508)]="",r.appendChild(s),this[n(484)]&&console[n(529)]("🏠 Single native ad rendered: "+e._id)}async[Pt(521)](t,e){const n=Pt;e.length>0?(await this.renderAdElement(t,e[0]),this[n(484)]&&console.log(n(527)+e[n(509)]+n(483)+t.id)):this[n(484)]&&console[n(507)](n(495)+t.id)}}const Ot=Mt;function Mt(t,e){const n=Bt();return(Mt=function(t,e){return n[t-=286]})(t,e)}function Bt(){const t=["backgroundColor","🖼️ Interstitial ad closed","mouseenter","style","\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 ","\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 ","div","_id","adstage-interstitial-overlay","\n margin: 0 0 20px 0;\n font-size: 16px;\n color: #6b7280;\n line-height: 1.5;\n ","\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 ","400px","6464353ZkWtbi","textContent","addEventListener","153PfFlIq","linkUrl","innerHTML","renderAdElement","🖼️ Interstitial ad rendered (first of ","fadeOut 0.3s ease-out forwards","6965340QWYrJq","8DpJNrU","click","Escape","Interstitial click tracked for ad: ","img","adstage-interstitial-styles","): ","title","alt","button","\n width: 100%;\n max-height: 300px;\n object-fit: cover;\n border-radius: 8px;\n margin-bottom: 16px;\n ","821046qmrqKq","5gHzTVl","open","1654026OpHtZe","parentNode","length","419yTaWUv","body","src","Get Started","warn","#3b82f6","#374151","getDefaultHeight","#2563eb","cssText","keydown","imageUrl","debug","⚠️ No interstitial advertisements available for slot: ","key","className","10qMlBah","getElementById","\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 ","head","appendChild","#f3f4f6","log","1906239tmLGEl","mouseleave","5930hxNXjv","472664zmPsSi","animation","closeInterstitial","INTERSTITIAL","adstage-interstitial-content","createElement","#6b7280"];return(Bt=function(){return t})()}!function(t){const e=Mt,n=t();for(;;)try{if(703393===-parseInt(e(350))/1*(parseInt(e(303))/2)+-parseInt(e(301))/3*(-parseInt(e(333))/4)+-parseInt(e(345))/5*(parseInt(e(344))/6)+-parseInt(e(323))/7+-parseInt(e(304))/8*(-parseInt(e(326))/9)+parseInt(e(294))/10*(parseInt(e(347))/11)+parseInt(e(332))/12)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(Bt);class Ut extends ct{constructor(t=!1,e){super(n[Mt(307)],t,e)}[Ot(357)](){return Ot(322)}async[Ot(329)](t,e){const n=Ot;if(!document[n(295)](t.containerId))return;const r=document[n(309)](n(317));r[n(293)]=n(319),r[n(314)].cssText=n(316);const s=document.createElement(n(317));s[n(293)]=n(308),s[n(314)][n(287)]="\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 ";const o=document.createElement("button");if(o[n(328)]="×",o[n(314)].cssText=n(315),o[n(325)](n(334),()=>{this[n(306)](r)}),o[n(325)](n(313),()=>{const t=n;o[t(314)][t(311)]="#e5e7eb",o[t(314)].color=t(356)}),o[n(325)](n(302),()=>{const t=n;o[t(314)][t(311)]=t(299),o[t(314)].color=t(310)}),e[n(289)]){const t=document[n(309)](n(337));t[n(352)]=e[n(289)],t[n(341)]=e[n(340)]||"Interstitial Advertisement",t[n(314)][n(287)]=n(343),s[n(298)](t)}if(e.title){const t=document[n(309)]("h2");t[n(324)]=e[n(340)],t[n(314)][n(287)]="\n margin: 0 0 12px 0;\n font-size: 24px;\n font-weight: 700;\n color: #111827;\n line-height: 1.3;\n ",s[n(298)](t)}if(e[n(324)]){const t=document[n(309)]("p");t[n(324)]=e[n(324)],t.style.cssText=n(320),s[n(298)](t)}if(e[n(327)]){const t=document[n(309)](n(342));t[n(324)]=n(353),t[n(314)][n(287)]=n(296),t[n(325)](n(334),()=>{const t=n;this.advertisementEventTracker&&console[t(300)](t(336)+e[t(318)]),window[t(346)](e[t(327)],"_blank"),this[t(306)](r)}),t[n(325)]("mouseenter",()=>{const e=n;t.style[e(311)]=e(286)}),t[n(325)](n(302),()=>{const e=n;t[e(314)][e(311)]=e(355)}),s.appendChild(t)}const i=t=>{const e=n;t[e(292)]===e(335)&&(this[e(306)](r),document.removeEventListener(e(288),i))};if(document[n(325)](n(288),i),r[n(325)](n(334),t=>{t.target===r&&this.closeInterstitial(r)}),!document[n(295)](n(338))){const t=document[n(309)]("style");t.id="adstage-interstitial-styles",t.textContent=n(321),document[n(297)].appendChild(t)}s[n(298)](o),r[n(298)](s),document[n(351)].appendChild(r),this[n(290)]&&console[n(300)]("🖼️ Interstitial ad rendered: "+e[n(318)])}async renderMultipleAds(t,e){const n=Ot;e[n(349)]>0?(await this.renderAdElement(t,e[0]),this[n(290)]&&console[n(300)](n(330)+e[n(349)]+n(339)+t.id)):this[n(290)]&&console[n(354)](n(291)+t.id)}[Ot(306)](t){const e=Ot;t.style[e(305)]=e(331),setTimeout(()=>{t[e(348)]&&t.parentNode.removeChild(t)},300),this[e(290)]&&console.log(e(312))}}const Ft=zt;function zt(t,e){const n=Nt();return(zt=function(t,e){return n[t-=227]})(t,e)}!function(t){const e=zt,n=t();for(;;)try{if(362354===parseInt(e(279))/1*(parseInt(e(233))/2)+-parseInt(e(275))/3*(parseInt(e(234))/4)+parseInt(e(237))/5+parseInt(e(262))/6+-parseInt(e(264))/7*(-parseInt(e(265))/8)+-parseInt(e(252))/9*(-parseInt(e(255))/10)+-parseInt(e(281))/11)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(Nt);class Vt{constructor(t=!1,e){const n=zt;this.renderers=new Map,this[n(241)]=t,this.advertisementEventTracker=e||null,this[n(259)]()}[Ft(259)](){const t=Ft;this[t(266)][t(269)](n.BANNER,new ht(this[t(241)],this.advertisementEventTracker)),this[t(266)][t(269)](n[t(245)],new St(this.debug,this[t(283)])),this.renderers[t(269)](n[t(280)],new _t(this[t(241)],this.advertisementEventTracker)),this[t(266)].set(n[t(231)],new Lt(this[t(241)],this.advertisementEventTracker)),this.renderers.set(n.INTERSTITIAL,new Ut(this[t(241)],this[t(283)])),this[t(241)]&&console[t(232)]("🏭 AdRenderer factory initialized with "+this[t(266)][t(256)]+" renderers")}createAdElement(t,e){const r=Ft,s=this[r(242)](t[r(236)]),o=document.createElement(r(260));o[r(254)]=r(278)+String(t[r(236)]).toLowerCase(),o[r(227)](r(238),e[r(273)]),o[r(227)](r(288),t.id);const{width:i,height:a}=s[r(270)](o,t[r(290)]||{},e);switch(o[r(253)][r(285)]=i,o[r(253)][r(228)]=a,o.style[r(289)]="block",t[r(236)]){case n[r(282)]:if(e.imageUrl){const t=document[r(267)](r(240));t.src=e[r(274)],t[r(253)].width=r(296),t[r(253)].height=r(296),t[r(253)][r(293)]=r(249),o[r(244)](t)}break;case n.VIDEO:if(e[r(272)]){const t=document[r(267)](r(277));t[r(243)]=e[r(272)],t[r(253)][r(285)]=r(296),t[r(253)].height=r(296),o[r(244)](t)}break;case n.TEXT:if(e[r(258)]){const t=document.createElement("div");t[r(258)]=e.textContent||"",t[r(253)][r(250)]="8px",o.appendChild(t)}break;default:o[r(253)][r(251)]=r(246),o[r(253)][r(268)]="#f9f9f9",o[r(258)]=t[r(236)]+" Ad"}return o}[Ft(242)](t){const e=Ft,n=this[e(266)][e(276)](t);if(!n)throw new Error(e(247)+t);return n}[Ft(295)](t,e,n,r,s){this[Ft(242)](n).createPlaceholder(t,e,r,s)}async[Ft(235)](t,e){const r=Ft;if(t[r(236)]!==n[r(282)])return void(this[r(241)]&&console.warn("⚠️ Container optimization is only supported for BANNER ads, got: "+t.adType));const s=this[r(242)](n[r(282)]);await s.optimizeContainerForBannerAds(t,e)}async renderAdSlider(t,e){const n=Ft,r=this[n(242)](t[n(236)]);await r.renderMultipleAds(t,e)}async[Ft(294)](t){const e=Ft;if(!t[e(230)])throw new Error(e(263));const n=this.getRenderer(t[e(236)]);await n[e(271)](t,t[e(230)]),t.isLoaded=!0}async[Ft(271)](t,e){const n=Ft,r=this[n(242)](t[n(236)]);await r[n(271)](t,e)}[Ft(261)](t){const e=Ft;this[e(242)](t[e(236)])[e(261)](t)}[Ft(291)](t){const e=Ft;return this.getRenderer(t)[e(248)]()}[Ft(270)](t,e,n,r){const s=Ft;return this[s(242)](e)[s(270)](t,n,r)}loadImageDimensions(t){return new Promise((e,n)=>{const r=zt,s=new Image;s[r(297)]=()=>{const t=r;e({width:s[t(239)],height:s[t(287)]})},s[r(286)]=()=>{n(new Error(r(257)+t))},s.src=t})}async[Ft(229)](t,e,r){const s=Ft;if(r.adType!==n[s(282)])throw new Error(s(292));const o=this.getRenderer(n[s(282)]);return await o.renderOptimizedBannerImage(t,e,r)}async[Ft(284)](t,e,r){const s=Ft;if(r!==n.BANNER){const t=this[s(242)](r);return{width:s(296),height:t[s(248)](),aspectRatio:16/9}}const o=this[s(242)](n[s(282)]);return await o.calculateOptimalContainerSize(t,e)}log(t,...e){const n=Ft;this[n(241)]&&console[n(232)]("[AdRenderer] "+t,...e)}}function Nt(){const t=["optimizeContainerForBannerAds","adType","2203050KRrsAp","data-adstage-ad-id","naturalWidth","img","debug","getRenderer","src","appendChild","TEXT","1px dashed #ccc","No renderer found for ad type: ","getDefaultHeight","cover","padding","border","989937oPokGO","style","className","20EqVaVg","size","Failed to load image: ","textContent","initializeRenderers","div","renderFallback","173082XEjGNb","No advertisement to render","7KdUUeO","2323048zvNqsd","renderers","createElement","backgroundColor","set","calculateAdSize","renderAdElement","videoUrl","_id","imageUrl","18gcjlsM","get","video","adstage-ad adstage-","1gKOzuw","VIDEO","1566730LVMSnj","BANNER","advertisementEventTracker","calculateOptimalContainerSize","width","onerror","naturalHeight","data-adstage-slot-id","display","config","getDefaultHeightForAdType","renderOptimizedBannerImage is only supported for BANNER ads","objectFit","renderAd","createPlaceholder","100%","onload","setAttribute","height","renderOptimizedBannerImage","advertisement","NATIVE","log","440636MHfjNr","463572gbaYeY"];return(Nt=function(){return t})()}const jt=Ht;function Kt(){const t=["📊 Advertisement event tracking enabled for slot: ","Ads module not initialized. Call AdStage.init() first.","✅ Simple viewable impression tracked for ad ","append","ensureReady","loadAdContentInBackground","from","createPlaceholder","fetchAdData","314672dXrEPK","log","GET","list","detail","VIEWABLE","error","_id","🗑️ Ad slot destroyed: ","startSimpleViewabilityTracking","renderAdElement","handleRemovedElement","hideControls","playsinline","❌ Failed to track viewable impression:",", filters:","getElementById","config","status","renderFallback","createAd","INTERSTITIAL","substr","131995IlpUix","refresh","slideInterval","now","querySelectorAll","adType","getAttribute","values","3958647YBXocV","getSlotById","auto-","native","forEach","loop","🔍 Ad slot already cleaned up: ","advertisementEventTracker","Container not found after ","5165AHaqLA","100%","nodeType","apiKey","1294456JYAuJE","Ad slot not found: ","text","toString","VIDEO","trackAdvertisementEvent","controls","height","34djpqHE"," ads)","🎯 Ads module initialized (sync mode) with auto-cleanup","renderAd","width","getAllSlots","150lVwhCG","data-adstage-slot-id","style","slots","146400HhRKxI","ELEMENT_NODE","autoDestroy","18njuwDN","optimizeContainerForBannerAds","Auto-cleanup failed for slot ","length","delete","interstitial","random","_isReady","3RFOQrU","autoplay","NATIVE","Failed to refresh ad slot: ","auto","refreshAdSlot","_config","create","BANNER","destroy","video","warn","🎯 Simple viewability tracking started for slot: ","get","json","Failed to fetch ad data: ","광고 생성 중 오류 발생:","maxLines","string","1345531LRxVwL","New advertisement viewable tracked for slot:","mutationObserver","language","debug","containerId","innerHTML","advertisements","🔍 Auto-cleanup MutationObserver enabled","🎠 Slider will handle VIEWABLE events for ","adId","banner","setupAutoCleanup","TEXT","observe","init","adRenderer","❌ Failed to load ad for slot: ","then","getBaseUrl","country","customControls","removedNodes","createAdWithRetry","deviceType","undefined"," (attempt ","403VEqpYM","20HjCrXP"," attempts: ","📊 Fetched specific ad with ID: ","clear","ms... (attempt ","advertisement","🔄 Retrying viewability tracking for slot: ",". Retrying in ","handleViewableEvent","API key not configured"," (element found)","default","onClick","viewabilityTracker","autoSlide"];return(Kt=function(){return t})()}function Ht(t,e){const n=Kt();return(Ht=function(t,e){return n[t-=149]})(t,e)}!function(t){const e=Ht,n=t();for(;;)try{if(353581===parseInt(e(239))/1*(-parseInt(e(251))/2)+-parseInt(e(272))/3*(-parseInt(e(243))/4)+parseInt(e(222))/5*(-parseInt(e(257))/6)+parseInt(e(230))/7+parseInt(e(199))/8*(parseInt(e(264))/9)+-parseInt(e(175))/10*(parseInt(e(291))/11)+parseInt(e(261))/12*(parseInt(e(174))/13))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(Kt);class Yt{constructor(){const t=Ht;this[t(271)]=!1,this[t(278)]=null,this[t(260)]=new Map,this[t(237)]=null,this[t(163)]=null,this[t(149)]=null}[jt(162)](t){const e=jt;this._config=t,this[e(237)]=new D(K[e(166)](),t[e(242)],t[e(151)]||!1,this[e(260)]),this[e(163)]=new Vt(t[e(151)]||!1,this[e(237)]),this[e(159)](),this[e(271)]=!0,t[e(151)]&&console[e(200)](e(253))}isReady(){return this[jt(271)]}getConfig(){return this._config}[jt(158)](t,e){const r=jt;this[r(194)]();const s={width:e?.[r(255)]||"100%",height:e?.[r(250)]||r(276),autoSlide:e?.autoSlide||!1,slideInterval:e?.[r(224)]||5e3,onClick:e?.onClick,adId:e?.[r(157)],language:e?.language,deviceType:e?.[r(171)],country:e?.country};return this[r(219)](t,n[r(280)],s)}[jt(245)](t,e){const r=jt;this[r(194)]();const s={maxLines:e?.[r(289)]||3,style:e?.[r(259)]||r(186),onClick:e?.[r(187)],adId:e?.adId,language:e?.[r(150)],deviceType:e?.[r(171)],country:e?.[r(167)]};return this[r(219)](t,n[r(160)],s)}[jt(282)](t,e){const r=jt;this.ensureReady();const s={width:e?.[r(255)]||640,height:e?.[r(250)]||360,autoplay:void 0===e?.[r(273)]||e[r(273)],muted:void 0===e?.muted||e.muted,loop:void 0===e?.loop||e[r(235)],playsinline:!1!==e?.[r(212)],controls:void 0!==e?.[r(249)]&&e.controls,hideControls:e?.[r(211)]||!1,customControls:e?.[r(168)],autoSlide:!1,maxAds:1,onClick:e?.[r(187)],...e?.[r(157)]&&{adId:e[r(157)]}};return this.createAd(t,n[r(247)],s)}[jt(233)](t,e){const r=jt;return this[r(194)](),this[r(219)](t,n[r(274)],e||{})}[jt(269)](t,e){const r=jt;return this[r(194)](),this[r(219)](t,n[r(220)],e||{})}[jt(223)](t){const e=jt;this[e(194)]();const n=this[e(260)][e(285)](t);if(!n)throw new Error(e(244)+t);this[e(277)](n),this[e(278)]?.[e(151)]&&console[e(200)]("🔄 Ad slot refreshed: "+t)}destroy(t){const e=jt;this[e(194)]();const n=this.slots.get(t);if(!n)return void(this[e(278)]?.[e(151)]&&console[e(200)](e(236)+t));n[e(188)]&&n[e(188)][e(281)]();const r=document.getElementById(n[e(152)]);r&&(r[e(153)]=""),this[e(260)][e(268)](t),this[e(278)]?.debug&&console.log(e(207)+t)}[jt(256)](){const t=jt;return this.ensureReady(),Array[t(196)](this.slots[t(229)]())}[jt(231)](t){const e=jt;return this.ensureReady(),this.slots[e(285)](t)||null}createAd(t,e,n){const r=jt;if(!this[r(278)]?.apiKey)throw new Error(r(184));const s="adstage-"+e+"-"+Date[r(225)]()+"-"+Math[r(270)]().toString(36)[r(221)](2,9);return this[r(170)](t,e,n,s,0),s}async createAdWithRetry(t,e,n,r,s){const o=jt,i=[0,50,100,200,500];let a,c=null;if(typeof t===o(290)){if(a=t,c=document[o(215)](t),!c)return s<4?(this[o(278)]?.[o(151)]&&console[o(283)]("Container not found: "+t+o(182)+i[s+1]+o(179)+(s+1)+"/5)"),void setTimeout(()=>{this[o(170)](t,e,n,r,s+1)},i[s+1])):void console[o(205)](o(238)+5+o(176)+t)}else c=t,a=c.id||o(232)+r,!c.id&&(c.id=a);try{this.createAdInternal(a,e,n,r,c)}catch(t){console[o(205)](o(288),t)}}createAdInternal(t,e,r,s,o){const i=jt;o.setAttribute(i(258),s),this[i(163)]?.[i(197)](o,s,e,r,this[i(278)]);const a={id:s,containerId:t,adType:e,width:r[i(255)]||i(240),height:r.height||(e===n[i(160)]?"auto":250),isLoaded:!1,isVisible:!1,refreshRate:0,lazyLoad:!1,targeting:{},advertisement:void 0,config:{type:e,...r},load:async()=>this[i(198)](e,r)[i(165)](t=>t[0]||null),render:t=>this[i(163)]?.[i(209)](a,t),refresh:async()=>this.refreshAdSlot(a),destroy:()=>this[i(281)](s)};this[i(260)].set(s,a),this[i(195)](a),this[i(237)]&&this[i(278)]?.[i(151)]&&console[i(200)](i(190)+s)}async[jt(195)](t){const e=jt;try{const r=await this[e(198)](t[e(227)],t[e(216)]);if(!r||0===r[e(267)])return void this.adRenderer?.[e(218)](t);t.adType===n[e(280)]&&r[e(267)]>0&&await(this[e(163)]?.[e(265)](t,r)),r.length>1||t[e(216)]?.[e(189)]?(await(this[e(163)]?.renderAdSlider(t,r)),this._config?.[e(151)]&&console.log(e(156)+r[e(267)]+" ads automatically")):(t.advertisement=r[0],await(this[e(163)]?.renderAdElement(t,r[0])),this[e(208)](t,r[0])),t.isLoaded=!0,this[e(278)]?.[e(151)]&&console.log("✅ Ad loaded for slot: "+t.id+" ("+r.length+e(252))}catch(n){console.error(e(164)+t.id,n),this.adRenderer?.[e(218)](t)}}[jt(208)](t,e){const n=(r=0)=>{const s=Ht,o=document[s(215)](t.id);if(!o)return void(r<5?(setTimeout(()=>n(r+1),300),this[s(278)]?.[s(151)]&&console[s(200)](s(181)+t.id+s(173)+(r+1)+")")):console.warn("❌ Failed to find element for viewability tracking: "+t.id));const i=new B(o,async()=>{const n=s;await this[n(183)](e,t)});t.viewabilityTracker=i,this[s(278)]?.[s(151)]&&console[s(200)](s(284)+t.id+s(185))};n()}async[jt(183)](t,e){const n=jt;try{this.advertisementEventTracker&&(await this[n(237)][n(248)](t[n(206)],e.id,c[n(204)]),this[n(278)]?.debug&&console[n(200)](n(192)+t[n(206)]))}catch(t){console.error(n(213),t)}}async[jt(198)](t,e){const n=jt;if(!this._config?.[n(242)])throw new Error(n(184));if(e.adId){const t=""+K[n(154)][n(203)](e[n(157)]),r=await fetch(t,{method:"GET",headers:T[n(279)](this[n(278)][n(242)])});if(!r.ok){if(404===r[n(217)])return console[n(283)]("🚫 Advertisement not found with ID: "+e[n(157)]),[];throw new Error(n(287)+r[n(217)])}const s=await r[n(286)]();return this[n(278)]?.[n(151)]&&console[n(200)](n(177)+e[n(157)],s),[s]}const r=new URLSearchParams;r[n(193)](n(227),t),e[n(150)]&&r[n(193)](n(150),e[n(150)]),e[n(171)]&&r[n(193)](n(171),e[n(171)]),e[n(167)]&&r.append("country",e[n(167)]);const s=K[n(154)][n(202)]()+"?"+r[n(246)](),o=await fetch(s,{method:n(201),headers:T.create(this._config.apiKey)});if(!o.ok)throw new Error(n(287)+o.status);const i=(await o[n(286)]())[n(154)]||[];return this[n(278)]?.debug&&console[n(200)]("📊 Fetched "+i[n(267)]+" ads for type: "+t+n(214),{language:e[n(150)],deviceType:e[n(171)],country:e[n(167)]}),i}async[jt(277)](t){const e=jt;try{const n=await this[e(198)](t[e(227)],t.config||{});n&&n[e(267)]>0&&(t[e(180)]=n[0],await(this[e(163)]?.[e(254)](t)),this.advertisementEventTracker&&console[e(200)](e(292),t.id))}catch(n){console[e(205)](e(275)+t.id,n)}}[jt(194)](){const t=jt;if(!this[t(271)])throw new Error(t(191))}[jt(159)](){const t=jt;typeof window!==t(172)&&typeof document!==t(172)&&(this.mutationObserver&&this[t(149)].disconnect(),this[t(149)]=new MutationObserver(t=>{t.forEach(t=>{const e=Ht;t[e(169)][e(234)](t=>{const n=e;t[n(241)]===Node[n(262)]&&this[n(210)](t)})})}),this[t(149)][t(161)](document.body,{childList:!0,subtree:!0}),this[t(278)]?.[t(151)]&&console.log(t(155)))}[jt(210)](t){const e=jt,n=t[e(228)](e(258));if(n)return void this[e(263)](n);t[e(226)]("[data-adstage-slot-id]")[e(234)](t=>{const n=e,r=t[n(228)](n(258));r&&this[n(263)](r)})}[jt(263)](t){const e=jt,n=this[e(260)][e(285)](t);if(n)try{n[e(188)]&&n[e(188)].destroy(),this[e(260)].delete(t),this._config?.[e(151)]&&console.log("🧹 Auto-cleanup: slot "+t+" removed")}catch(n){this._config?.[e(151)]&&console[e(283)](e(266)+t+":",n)}}destroyModule(){const t=jt,e=this[t(278)]?.[t(151)];this.mutationObserver&&(this[t(149)].disconnect(),this[t(149)]=null),this[t(260)][t(178)](),this[t(237)]=null,this[t(163)]=null,this[t(271)]=!1,this._config=null,e&&console[t(200)]("🗑️ Ads module destroyed")}}var qt=Wt;function Wt(t,e){var n=Gt();return(Wt=function(t,e){return n[t-=258]})(t,e)}!function(t){for(var e=Wt,n=t();;)try{if(116101===-parseInt(e(284))/1+parseInt(e(288))/2*(parseInt(e(280))/3)+-parseInt(e(287))/4*(-parseInt(e(264))/5)+parseInt(e(271))/6*(-parseInt(e(265))/7)+-parseInt(e(266))/8+-parseInt(e(281))/9+parseInt(e(262))/10)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(Gt);class Xt{constructor(){var t=Wt;this[t(282)]=!1,this[t(259)]=null,this[t(269)]=null}init(t){var e=Wt;this[e(259)]={timeout:3e4,debug:!1,modules:[e(293),e(274),e(267)],...t},t[e(263)]&&K.setBaseUrl(t[e(263)]),this[e(282)]=!0,t[e(286)]&&console[e(258)]("✅ Config module initialized (sync mode)",{modules:this[e(259)][e(276)],endpoint:K[e(291)](),mode:e(277)})}isReady(){return this._isReady}[qt(285)](){return this[qt(259)]}[qt(283)](){return this[qt(269)]}[qt(290)](){return K.getBaseUrl()}isDebugMode(){var t=qt;return this[t(259)]?.[t(286)]||!1}getEnabledModules(){var t=qt;return this._config?.[t(276)]||[]}[qt(278)](t){var e=qt;return this[e(261)]()[e(275)](t)}[qt(272)](t){var e=qt;if(!this._config)throw new Error(e(270));this[e(259)]={...this._config,...t},this[e(273)]()&&console[e(258)](e(260),t)}[qt(268)](){var t=qt;if(!this[t(259)]?.[t(292)])throw new Error(t(279));return T[t(289)](this[t(259)][t(292)])}}function Gt(){var t=["events","includes","modules","development","isModuleEnabled","API key not available","18BCfhlu","1062729XvXzSI","_isReady","getOrganizationInfo","113386XioYZp","getConfig","debug","4FAYuna","9084XthEIr","create","getApiEndpoint","getBaseUrl","apiKey","ads","log","_config","🔄 Config updated","getEnabledModules","5270900BeusEA","baseUrl","286015RUUOVf","204701OeBREj","708152aajMZO","config","getApiHeaders","_organizationInfo","Config module not initialized","36MzdtFY","updateConfig","isDebugMode"];return(Gt=function(){return t})()}const Qt=$t;function Jt(){const t=["SSR","ko-KR","Mobile Web","641544AYrixN","238071xiijsx","getDeviceInfo","getAutoDetectedDeviceInfo","585816ISgHnh","tablet","Unknown","android","ios","clearDeviceInfo","5084513tNAvHu","height","6xHHZmq","4790DTxaOm","toLowerCase","getDetailedInfo","6OhIlTU","desktop","platform","Android","12331kJGwRY","setDeviceProperty","mobile","onLine","setDeviceInfo","isMobile","81Clkpvl","_userProvidedDeviceInfo","getPlatform","test","0x0","userAgent","986799denVCj","isBrowser","other","5055740YpQVmL","Desktop Web","mapPlatformForEvents","getUserDeviceInfo","width"];return(Jt=function(){return t})()}!function(t){const e=$t,n=t();for(;;)try{if(656037===parseInt(e(399))/1*(-parseInt(e(410))/2)+-parseInt(e(387))/3+parseInt(e(402))/4+parseInt(e(390))/5+parseInt(e(414))/6*(parseInt(e(408))/7)+parseInt(e(398))/8*(-parseInt(e(424))/9)+-parseInt(e(411))/10*(-parseInt(e(418))/11))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(Jt);class Zt{static[Qt(400)](){const t=Qt;return{...Zt[t(401)](),...Zt[t(425)]}}static[Qt(401)](){const t=Qt;if(!v[t(388)]())return{category:t(389),platform:t(395),model:t(395),osVersion:t(395)};const e=navigator.userAgent[t(412)]();let n=t(415);/tablet|ipad/[t(384)](e)?n=t(403):x[t(423)]()&&(n=t(420));const r=x[t(426)]();return{category:n,platform:Zt[t(392)](r),model:navigator[t(416)],osVersion:navigator[t(416)]}}static[Qt(422)](t){const e=Qt;Zt[e(425)]={...Zt[e(425)],...t}}static[Qt(419)](t,e){Zt._userProvidedDeviceInfo[t]=e}static[Qt(407)](){Zt[Qt(425)]={}}static[Qt(393)](){return{...Zt[Qt(425)]}}static mapPlatformForEvents(t){const e=Qt;switch(t){case e(406):return"iOS";case e(405):return e(417);case"web":return e(397);case e(415):return e(391);default:return e(404)}}static[Qt(413)](){const t=Qt;if(!v.isBrowser())return{userAgent:t(395),language:t(396),platform:t(395),cookieEnabled:!1,onLine:!0,screenResolution:t(385),viewportSize:t(385)};const e=v.getViewportInfo();return{userAgent:navigator[t(386)],language:navigator.language||t(396),platform:navigator[t(416)],cookieEnabled:navigator.cookieEnabled,onLine:navigator[t(421)],screenResolution:screen[t(394)]+"x"+screen.height,viewportSize:e[t(394)]+"x"+e[t(409)]}}}function $t(t,e){const n=Jt();return($t=function(t,e){return n[t-=384]})(t,e)}Zt[Qt(425)]={};const te=ee;function ee(t,e){const n=ne();return(ee=function(t,e){return n[t-=243]})(t,e)}function ne(){const t=["getCurrentUserProperties","DateTimeFormat","26253276cXSTNL","language","202HimWpx","22ALnrQs","10053gkUHav","15reGdLv","678216eerMAU","_userProperties","2429540CAkqRV","UTC","resolvedOptions","split","isBrowser","6NTpIfw","extractCountryFromLanguage","834356fdmStg","getUserInfo","estimateLocation","10123zaimyS","ko-KR","96DOsLdI","setUserProperty","461590QTecjx"];return(ne=function(){return t})()}!function(t){const e=ee,n=t();for(;;)try{if(566113===parseInt(e(257))/1*(parseInt(e(266))/2)+parseInt(e(244))/3*(parseInt(e(254))/4)+-parseInt(e(261))/5*(-parseInt(e(252))/6)+parseInt(e(245))/7+-parseInt(e(259))/8*(-parseInt(e(243))/9)+parseInt(e(247))/10*(parseInt(e(267))/11)+-parseInt(e(264))/12)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(ne);class re{static[te(255)](){return{...re.getBaseUserInfo(),...re._userProperties}}static getBaseUserInfo(){const t=te;if(!v[t(251)]())return{language:t(258),country:"KR"};const e=navigator[t(265)]||t(258);return{language:e,country:re[t(253)](e)}}static[te(253)](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[te(250)]("-")[0]]||"KR"}static setUserProperties(t){re[te(246)]={...re._userProperties,...t}}static[te(260)](t,e){re[te(246)][t]=e}static clearUserProperties(){re[te(246)]={}}static[te(262)](){return{...re._userProperties}}static[te(256)](){const t=te;if(!v.isBrowser())return{timezone:t(248),estimatedCountry:"KR"};const e=Intl[t(263)]()[t(249)]().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 se(){const t=["Failed to parse adstage_referrer:","STORAGE_KEY","utm_medium","177976HwQute","warn","adstage","ALL_KEYS","utm_campaign","search","12CXFsYu","1rKbsYM","12zlnWbP","fbclid","utm_content","campaign_id","twitter.ads","ad_group_id","adGroup","undefined","msclkid","linkedin.ads","ad_creative","twclid","182bEGYCj","adGroupId","14305AAbZvq","stringify","setItem","removeItem","sessionStorage","adstage_click_event_sent","55446VFqZZH","getItem","nclid","captureFromUrl","hasParams","adstage_tracking_params","get","campaign","4916967XWMdLl","ttclid","markClickEventSent","location","some","length","creative_id","Failed to clear tracking params:","toAttributionObject","gclid","naver.searchad","867200cQGytX","CAMPAIGN_KEYS","keys","adstage_last_click_id","tiktok.ads","109910TTnjVR","clear","UTM_KEYS","campaignId","utm_source","ad_group","adCreative","utm_term","shouldSendClickEvent","store","liclid","isClickEventSent","CLICK_ID_KEYS","channel","true","222273lFEsbL","term","18kNlbqD"];return(se=function(){return t})()}function oe(t,e){const n=se();return(oe=function(t,e){return n[t-=356]})(t,e)}re[te(246)]={};const ie=oe;!function(t){const e=oe,n=t();for(;;)try{if(126585===parseInt(e(401))/1*(parseInt(e(373))/2)+parseInt(e(388))/3+parseInt(e(400))/4*(parseInt(e(416))/5)+-parseInt(e(422))/6*(-parseInt(e(414))/7)+parseInt(e(394))/8+-parseInt(e(390))/9*(-parseInt(e(368))/10)+-parseInt(e(357))/11*(parseInt(e(402))/12))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(se);class ae{static[ie(425)](){const t=ie;if(typeof window===t(409))return null;const e=new URLSearchParams(window[t(360)][t(399)]),n={};let r=!1;const s=e[t(428)]("adstage_referrer");if(s)try{const e=decodeURIComponent(s),o=new URLSearchParams(e);for(const e of ae.ALL_KEYS){const s=o[t(428)](e);s&&(n[e]=s,r=!0)}o[t(428)](t(396))===t(387)&&(r=!0)}catch(e){console.warn(t(391),e)}for(const t of ae.ALL_KEYS){if(n[t])continue;const s=e.get(t);s&&(n[t]=s,r=!0)}return r?(n[t(386)]||(n[t(366)]?n[t(386)]="google.ads":n.fbclid?n[t(386)]="meta.ads":n[t(358)]?n[t(386)]=t(372):n[t(424)]?n[t(386)]=t(367):n[t(383)]?n[t(386)]=t(411):n[t(410)]?n.channel="microsoft.ads":n[t(413)]&&(n[t(386)]=t(406))),ae[t(382)](n),n):null}static[ie(382)](t){const e=ie;if("undefined"!=typeof window&&window[e(420)])try{const n={...ae[e(428)](),...t};sessionStorage.setItem(ae[e(392)],JSON[e(417)](n))}catch(t){console[e(395)]("Failed to store tracking params:",t)}}static get(){const t=ie;if(typeof window===t(409)||!window.sessionStorage)return null;try{const e=sessionStorage[t(423)](ae[t(392)]);if(e)return JSON.parse(e)}catch(e){console[t(395)]("Failed to retrieve tracking params:",e)}return null}static[ie(374)](){const t=ie;if(typeof window!==t(409)&&window[t(420)])try{sessionStorage[t(419)](ae[t(392)])}catch(e){console.warn(t(364),e)}}static[ie(426)](){const t=ie,e=ae[t(428)]();return null!==e&&Object[t(370)](e)[t(362)]>0}static hasClickId(){const t=ie,e=ae[t(428)]();return!!e&&ae[t(385)][t(361)](t=>e[t])}static[ie(381)](){const t=ie;if("undefined"==typeof window)return!1;const e=ae[t(428)]();if(!e||!ae.hasClickId())return!1;const n=e.gclid||e.fbclid||e.ttclid||e[t(424)]||e.liclid||e.msclkid||e[t(413)];if(!n)return!1;return n!==sessionStorage[t(423)](t(371))&&(sessionStorage[t(418)]("adstage_last_click_id",n),!0)}static[ie(359)](){const t=ie;typeof window!==t(409)&&sessionStorage[t(418)]("adstage_click_event_sent",t(387))}static[ie(384)](){const t=ie;return typeof window!==t(409)&&"true"===sessionStorage[t(423)](t(421))}static[ie(365)](){const t=ie,e=ae[t(428)]();if(!e)return null;const n={};return e[t(366)]&&(n[t(366)]=e[t(366)]),e[t(403)]&&(n.fbclid=e[t(403)]),e[t(358)]&&(n[t(358)]=e[t(358)]),e[t(424)]&&(n[t(424)]=e[t(424)]),e[t(386)]&&(n.channel=e[t(386)]),e[t(356)]&&(n.campaign=e.campaign),e[t(405)]&&(n[t(376)]=e[t(405)]),e[t(378)]&&(n[t(408)]=e[t(378)]),e[t(407)]&&(n[t(415)]=e[t(407)]),e[t(412)]&&(n[t(379)]=e.ad_creative),e.creative_id&&(n.creativeId=e[t(363)]),e[t(389)]&&(n[t(389)]=e[t(389)]),e[t(377)]&&(n[t(377)]=e[t(377)]),e.utm_medium&&(n[t(393)]=e[t(393)]),e.utm_campaign&&(n[t(398)]=e.utm_campaign),e.utm_content&&(n[t(404)]=e[t(404)]),e.utm_term&&(n[t(380)]=e[t(380)]),Object.keys(n)[t(362)]>0?n:null}}ae[ie(392)]=ie(427),ae[ie(385)]=[ie(366),ie(403),ie(358),ie(424),ie(383),ie(410),ie(413)],ae[ie(369)]=[ie(356),"campaign_id",ie(378),"ad_group_id","ad_creative",ie(363),ie(389)],ae[ie(375)]=[ie(377),"utm_medium",ie(398),ie(404),ie(380)],ae[ie(397)]=[...ae[ie(385)],...ae[ie(369)],...ae[ie(375)]];const ce=de;function le(){const t=["setUserProperties","getAttributionId","attributionId","status","getUserDeviceInfo","statusText","_config","text","📊 Attribution included:","getUserInfo","adstage_attribution_id","sendAttributionToServer","getUserProperties","clearDeviceInfo","apiKey","track","3780dLwKmA","API key not configured for event tracking.","233092ZAmVny","create","getDeviceInfo","setItem","getCurrentUserProperties","toAttributionObject","API key not configured for attribution registration.","4471496SRMZpi","📊 Events module initialized","getItem","registerAttribution","👤 User properties set:","9dbSdhh","📱 User provided device info cleared","setDeviceInfo","❌ API Error Response:","✅ Event tracked:","500367quVLns","📡 Request URL:","📱 Device property set:","📦 Attribution request body:","sendEventToServer","✅ Event tracked with attribution ID:","log","_isReady","getConfig","length","events","1711234bYJypb","stringify","📡 Attribution request URL:","debug","warn","error","POST","27710390HHkuWu","24gkRGZH","init","🔑 Request headers:","get","45GlILGF","application/json","❌ Failed to register attribution:","✅ Attribution registered:","isReady","Events module not initialized. Call AdStage.init() first.","Event data:","2427745lqGkBZ","📱 Device info set:","sessionStorage"];return(le=function(){return t})()}function de(t,e){const n=le();return(de=function(t,e){return n[t-=406]})(t,e)}!function(t){const e=de,n=t();for(;;)try{if(490227===-parseInt(e(430))/1+-parseInt(e(411))/2+-parseInt(e(453))/3*(parseInt(e(413))/4)+-parseInt(e(460))/5+-parseInt(e(449))/6*(parseInt(e(441))/7)+parseInt(e(420))/8+-parseInt(e(425))/9*(-parseInt(e(448))/10))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(le);class ue{constructor(){this[de(437)]=!1,this._config=null}[ce(450)](t){const e=ce;this._config=t,this[e(437)]=!0,t[e(444)]&&console[e(436)](e(421))}[ce(457)](){return this[ce(437)]}[ce(438)](){return this[ce(469)]}[ce(463)](t){const e=ce;re.setUserProperties(t),this._config?.[e(444)]&&console[e(436)](e(424),t)}[ce(407)](){return re[ce(417)]()}setDeviceInfo(t){const e=ce;Zt[e(427)](t),this[e(469)]?.[e(444)]&&console.log(e(461),t)}setDeviceProperty(t,e){const n=ce;Zt.setDeviceProperty(t,e),this[n(469)]?.[n(444)]&&console[n(436)](n(432),t,e)}[ce(408)](){const t=ce;Zt[t(408)](),this._config?.debug&&console[t(436)](t(426))}[ce(467)](){return Zt[ce(467)]()}[ce(415)](){return Zt[ce(415)]()}[ce(472)](){return re[ce(472)]()}[ce(417)](){return re[ce(417)]()}async track(t,e){const n=ce;if(this[n(437)])if(this[n(469)]?.[n(409)])try{const r=this[n(464)]();if(r){const s={eventName:t,sdkVersion:"3.0.10",device:Zt[n(415)](),user:re[n(472)](),attributionId:r,params:e||{}};return await this[n(434)](s),void(this._config[n(444)]&&console[n(436)](n(435),t,r))}const s=ae[n(418)](),o={eventName:t,sdkVersion:"3.0.10",device:Zt[n(415)](),user:re[n(472)](),...s&&{attribution:s},params:e||{}};await this[n(434)](o),this[n(469)][n(444)]&&(console[n(436)](n(429),t,e),s&&console[n(436)](n(471),s))}catch(r){console[n(446)]("❌ Failed to track event:",r),this[n(469)][n(444)]&&console.error(n(459),{eventName:t,properties:e})}else console[n(445)](n(412));else console[n(445)](n(458))}async[ce(423)](t){const e=ce;if(!this[e(437)])return console.warn("Events module not initialized. Call AdStage.init() first."),null;if(!this[e(469)]?.apiKey)return console[e(445)](e(419)),null;try{const n=ae[e(452)]();if(!n||0===Object.keys(n)[e(439)])return this[e(469)].debug&&console[e(436)]("⏭️ No tracking parameters found, skipping attribution registration"),null;const r=await this.sendAttributionToServer({deviceId:t,referrerParams:n});return this[e(469)][e(444)]&&console[e(436)](e(456),r),r[e(465)]&&sessionStorage[e(416)](e(473),r[e(465)]),r}catch(t){return console[e(446)](e(455),t),null}}[ce(464)](){const t=ce;return"undefined"!=typeof window&&window[t(462)]?sessionStorage[t(422)](t(473)):null}async trackWithAttributionId(t,e){return this[ce(410)](t,e)}async[ce(434)](t){const e=ce,n={...T.create(this[e(469)].apiKey),"Content-Type":e(454)};this[e(469)]?.[e(444)]&&(console[e(436)](e(451),n),console.log(e(431),K[e(440)][e(410)]()),console.log("📦 Request body:",t));const r=await fetch(K.events[e(410)](),{method:e(447),headers:n,body:JSON[e(442)](t)});if(!r.ok){const t=await r[e(470)]();throw console[e(446)](e(428),t),new Error("Event tracking failed: "+r[e(466)]+" "+r[e(468)])}}async[ce(406)](t){const e=ce,n={...T[e(414)](this._config[e(409)]),"Content-Type":e(454)};this[e(469)]?.[e(444)]&&(console[e(436)]("🔑 Attribution request headers:",n),console.log(e(443),K[e(440)][e(423)]()),console.log(e(433),t));const r=await fetch(K.events[e(423)](),{method:e(447),headers:n,body:JSON[e(442)](t)});if(!r.ok){const t=await r[e(470)]();throw console[e(446)](e(428),t),new Error("Attribution registration failed: "+r[e(466)]+" "+r[e(468)])}return r.json()}}function pe(){const t=["now","❌ Failed to auto-track click event:",")의 viewable 추적 초기화됨","server-","events","setBaseUrl","init","_config","12JxZAOP","✅ AdStage Debug: 모든 viewable 추적 데이터 초기화됨","_isInitialized","hardwareConcurrency","reset","989755ETekXw","log","8MvoiMY","warn","AdStage not initialized. Call AdStage.init() first.","ads","🔍 Should send click event:","modules","abs","size","2445876GbNFwN","30TrFqXW","clearAdViewable","web-","web","getConfig","✅ Auto-tracked click event with tracking params:","get","shouldSendClickEvent","substring","markClickEventSent","language","catch","getInstance","709121weXtBP","2641529LOtvYx","tracking_params","⏭️ Skipping click event (duplicate or no click ID)","toAttributionObject","apiKey","error","hasClickId","height","function","generateDeviceId","clear","undefined","from","length","✅ AdStage Debug: 광고 ","channel","adstage_device_id","10348767UFdxAX","toString","❌ Error in click event auto-tracking:","userAgent","🌐 API endpoint configured:","32MhqWlj","random","width","click","10XLEfjG","captureFromUrl","2831139eHkrgJ","toISOString","debug","expiresAt","✅ Attribution registered:","instance","viewableTracker","📊 Tracking parameters captured:","46514DVIMtW","track","baseUrl","AdStage.ads accessed before initialization","config","❌ Failed to register attribution:","isReady"];return(pe=function(){return t})()}const he=fe;function fe(t,e){const n=pe();return(fe=function(t,e){return n[t-=114]})(t,e)}!function(t){const e=fe,n=t();for(;;)try{if(589096===parseInt(e(141))/1*(parseInt(e(155))/2)+parseInt(e(147))/3+-parseInt(e(170))/4*(-parseInt(e(175))/5)+-parseInt(e(186))/6*(parseInt(e(118))/7)+parseInt(e(177))/8*(-parseInt(e(136))/9)+-parseInt(e(145))/10*(parseInt(e(119))/11)+parseInt(e(185))/12)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(pe);class ge{constructor(){const t=fe;this[t(172)]=!1,this[t(169)]=null,this[t(159)]=new Xt,this[t(180)]=new Yt,this[t(166)]=new ue}static init(t){const e=fe;!ge.instance&&(ge[e(152)]=new ge);const n=ge[e(152)];if(!t[e(123)])throw new Error("API key is required for AdStage initialization");n[e(169)]={timeout:3e4,debug:!1,modules:[e(180),e(166),e(159)],...t},n[e(169)][e(157)]&&(K[e(167)](n[e(169)][e(157)]),t[e(149)]&&console[e(176)](e(140),n[e(169)][e(157)]));const r=n[e(169)][e(182)]||[e(180),e(166),e(159)];for(const t of r){const r=n[t];r&&typeof r[e(168)]===e(127)&&r[e(168)](n[e(169)])}if(n._isInitialized=!0,"undefined"!=typeof window){const r=ae[e(146)]();r&&t[e(149)]&&console.log(e(154),r),r&&ae[e(125)]()&&setTimeout(async()=>{const r=e;try{const e=n[r(128)](),s=await n[r(166)].registerAttribution(e);s&&t[r(149)]&&console[r(176)](r(151),{attributionId:s.attributionId,channel:s[r(134)],campaign:s.campaign,expiresAt:s[r(150)]})}catch(t){console[r(124)](r(160),t)}},100);const s=ae[e(193)]();t[e(149)]&&(console[e(176)](e(181),s),!s&&console[e(176)](e(121))),s&&setTimeout(()=>{const r=e;try{const e=ae[r(192)](),s=ae[r(122)]();n.events[r(156)](r(144),{_autoGenerated:!0,_source:r(120),_timestamp:(new Date)[r(148)](),_platform:r(189)}).then(()=>{const n=r;ae[n(114)](),t.debug&&console[n(176)](n(191),{attribution:s,trackingParams:e})})[r(116)](t=>{const e=r;console[e(124)](e(163),t)})}catch(t){console.error(r(138),t)}},200)}t.debug&&console[e(176)]("🚀 AdStage SDK initialized (sync mode)",{version:"2.0.0",modules:r,apiKey:t[e(123)][e(194)](0,8)+"...",mode:"development"})}static[he(161)](){const t=he;return ge[t(152)]?.[t(172)]||!1}static[he(190)](){const t=he;return ge[t(152)]?.[t(169)]||null}static[he(117)](){const t=he;if(!ge[t(152)])throw new Error(t(179));return ge[t(152)]}static get[he(180)](){const t=he;try{return ge[t(117)]().ads}catch(e){throw console[t(178)](t(158)),e}}static get[he(166)](){const t=he;try{return ge[t(117)]()[t(166)]}catch(e){throw console[t(178)]("AdStage.events accessed before initialization"),e}}static get[he(159)](){const t=he;try{return ge.getInstance().config}catch(e){throw console[t(178)]("AdStage.config accessed before initialization"),e}}static[he(174)](){const t=he;ge[t(152)]&&(ge[t(152)]._isInitialized=!1,ge.instance._config=null)}[he(128)](){const t=he;if(typeof window===t(130))return t(165)+Math[t(142)]()[t(137)](36).substring(2,15);const e=localStorage.getItem(t(135));if(e)return e;const n=[navigator[t(139)],navigator[t(115)],screen[t(143)]+"x"+screen[t(126)],(new Date).getTimezoneOffset(),navigator[t(173)]||0].join("|");let r=0;for(let e=0;e<n[t(132)];e++){r=(r<<5)-r+n.charCodeAt(e),r&=r}const s=t(188)+Math[t(183)](r)[t(137)](36)+"-"+Date[t(162)]()[t(137)](36);return localStorage.setItem("adstage_device_id",s),s}}function me(){var t=["432976txXDAQ","1177krkfsA","171830rvKhlW","track","2192760cvEnLi","events","8pUiSAM","7677693UDuMxG","isReady","72516UrjShE","96DBdtmb","2MTtkZx","resolve","3EVonXg","2025968bFqxSO","getUserProperties","AdStage not initialized. Call AdStage.init() first.","680213mjIgAw","warn"];return(me=function(){return t})()}function ye(t,e){var n=me();return(ye=function(t,e){return n[t-=222]})(t,e)}ge[he(149)]={clearAllViewable:()=>{const t=he;st[t(129)](),console[t(176)](t(171))},clearAdViewable:(t,e)=>{const n=he;st[n(187)](t,e),console[n(176)](n(133)+t+"("+e+n(164))},getViewableStatus:()=>{const t=he;console.log("📊 AdStage Debug: 현재 viewable 추적 상태",{trackedCount:st[t(153)][t(184)],trackedItems:Array[t(131)](st.viewableTracker)})}},function(t){for(var e=ye,n=t();;)try{if(448001===-parseInt(e(240))/1*(parseInt(e(234))/2)+-parseInt(e(236))/3*(-parseInt(e(223))/4)+-parseInt(e(225))/5*(parseInt(e(233))/6)+parseInt(e(237))/7+parseInt(e(229))/8*(parseInt(e(230))/9)+-parseInt(e(227))/10+parseInt(e(224))/11*(parseInt(e(232))/12))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(me);var ve,Ie={exports:{}},be={},we={exports:{}},ke={};we.exports=function(){if(ve)return ke;ve=1;var t=Symbol.for("react.element"),e=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),i=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),l=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),u=Symbol.iterator,p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},h=Object.assign,f={};function g(t,e,n){this.props=t,this.context=e,this.refs=f,this.updater=n||p}function m(){}function y(t,e,n){this.props=t,this.context=e,this.refs=f,this.updater=n||p}g.prototype.isReactComponent={},g.prototype.setState=function(t,e){if("object"!=typeof t&&"function"!=typeof t&&null!=t)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")},g.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")},m.prototype=g.prototype;var v=y.prototype=new m;v.constructor=y,h(v,g.prototype),v.isPureReactComponent=!0;var I=Array.isArray,b=Object.prototype.hasOwnProperty,w={current:null},k={key:!0,ref:!0,__self:!0,__source:!0};function E(e,n,r){var s,o={},i=null,a=null;if(null!=n)for(s in void 0!==n.ref&&(a=n.ref),void 0!==n.key&&(i=""+n.key),n)b.call(n,s)&&!k.hasOwnProperty(s)&&(o[s]=n[s]);var c=arguments.length-2;if(1===c)o.children=r;else if(1<c){for(var l=Array(c),d=0;d<c;d++)l[d]=arguments[d+2];o.children=l}if(e&&e.defaultProps)for(s in c=e.defaultProps)void 0===o[s]&&(o[s]=c[s]);return{$$typeof:t,type:e,key:i,ref:a,props:o,_owner:w.current}}function x(e){return"object"==typeof e&&null!==e&&e.$$typeof===t}var S=/\/+/g;function A(t,e){return"object"==typeof t&&null!==t&&null!=t.key?function(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(t){return e[t]})}(""+t.key):e.toString(36)}function C(n,r,s,o,i){var a=typeof n;"undefined"!==a&&"boolean"!==a||(n=null);var c=!1;if(null===n)c=!0;else switch(a){case"string":case"number":c=!0;break;case"object":switch(n.$$typeof){case t:case e:c=!0}}if(c)return i=i(c=n),n=""===o?"."+A(c,0):o,I(i)?(s="",null!=n&&(s=n.replace(S,"$&/")+"/"),C(i,r,s,"",function(t){return t})):null!=i&&(x(i)&&(i=function(e,n){return{$$typeof:t,type:e.type,key:n,ref:e.ref,props:e.props,_owner:e._owner}}(i,s+(!i.key||c&&c.key===i.key?"":(""+i.key).replace(S,"$&/")+"/")+n)),r.push(i)),1;if(c=0,o=""===o?".":o+":",I(n))for(var l=0;l<n.length;l++){var d=o+A(a=n[l],l);c+=C(a,r,s,d,i)}else if(d=function(t){return null===t||"object"!=typeof t?null:"function"==typeof(t=u&&t[u]||t["@@iterator"])?t:null}(n),"function"==typeof d)for(n=d.call(n),l=0;!(a=n.next()).done;)c+=C(a=a.value,r,s,d=o+A(a,l++),i);else if("object"===a)throw r=String(n),Error("Objects are not valid as a React child (found: "+("[object Object]"===r?"object with keys {"+Object.keys(n).join(", ")+"}":r)+"). If you meant to render a collection of children, use an array instead.");return c}function T(t,e,n){if(null==t)return t;var r=[],s=0;return C(t,r,"","",function(t){return e.call(n,t,s++)}),r}function _(t){if(-1===t._status){var e=t._result;(e=e()).then(function(e){0!==t._status&&-1!==t._status||(t._status=1,t._result=e)},function(e){0!==t._status&&-1!==t._status||(t._status=2,t._result=e)}),-1===t._status&&(t._status=0,t._result=e)}if(1===t._status)return t._result.default;throw t._result}var R={current:null},P={transition:null},D={ReactCurrentDispatcher:R,ReactCurrentBatchConfig:P,ReactCurrentOwner:w};function L(){throw Error("act(...) is not supported in production builds of React.")}return ke.Children={map:T,forEach:function(t,e,n){T(t,function(){e.apply(this,arguments)},n)},count:function(t){var e=0;return T(t,function(){e++}),e},toArray:function(t){return T(t,function(t){return t})||[]},only:function(t){if(!x(t))throw Error("React.Children.only expected to receive a single React element child.");return t}},ke.Component=g,ke.Fragment=n,ke.Profiler=s,ke.PureComponent=y,ke.StrictMode=r,ke.Suspense=c,ke.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=D,ke.act=L,ke.cloneElement=function(e,n,r){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var s=h({},e.props),o=e.key,i=e.ref,a=e._owner;if(null!=n){if(void 0!==n.ref&&(i=n.ref,a=w.current),void 0!==n.key&&(o=""+n.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(l in n)b.call(n,l)&&!k.hasOwnProperty(l)&&(s[l]=void 0===n[l]&&void 0!==c?c[l]:n[l])}var l=arguments.length-2;if(1===l)s.children=r;else if(1<l){c=Array(l);for(var d=0;d<l;d++)c[d]=arguments[d+2];s.children=c}return{$$typeof:t,type:e.type,key:o,ref:i,props:s,_owner:a}},ke.createContext=function(t){return(t={$$typeof:i,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:o,_context:t},t.Consumer=t},ke.createElement=E,ke.createFactory=function(t){var e=E.bind(null,t);return e.type=t,e},ke.createRef=function(){return{current:null}},ke.forwardRef=function(t){return{$$typeof:a,render:t}},ke.isValidElement=x,ke.lazy=function(t){return{$$typeof:d,_payload:{_status:-1,_result:t},_init:_}},ke.memo=function(t,e){return{$$typeof:l,type:t,compare:void 0===e?null:e}},ke.startTransition=function(t){var e=P.transition;P.transition={};try{t()}finally{P.transition=e}},ke.unstable_act=L,ke.useCallback=function(t,e){return R.current.useCallback(t,e)},ke.useContext=function(t){return R.current.useContext(t)},ke.useDebugValue=function(){},ke.useDeferredValue=function(t){return R.current.useDeferredValue(t)},ke.useEffect=function(t,e){return R.current.useEffect(t,e)},ke.useId=function(){return R.current.useId()},ke.useImperativeHandle=function(t,e,n){return R.current.useImperativeHandle(t,e,n)},ke.useInsertionEffect=function(t,e){return R.current.useInsertionEffect(t,e)},ke.useLayoutEffect=function(t,e){return R.current.useLayoutEffect(t,e)},ke.useMemo=function(t,e){return R.current.useMemo(t,e)},ke.useReducer=function(t,e,n){return R.current.useReducer(t,e,n)},ke.useRef=function(t){return R.current.useRef(t)},ke.useState=function(t){return R.current.useState(t)},ke.useSyncExternalStore=function(t,e,n){return R.current.useSyncExternalStore(t,e,n)},ke.useTransition=function(){return R.current.useTransition()},ke.version="18.3.1",ke}();var Ee,xe=we.exports;
|
|
1
|
+
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).AdStage={})}(this,function(t){"use strict";var e,n,r,o,s,i,a,c,l,d,u,p;function h(t,e){var n=f();return(h=function(t,e){return n[t-=130]})(t,e)}function f(){var t=["NATIVE","CLICK","3046089ZdUfuh","5753532rvGsqM","TEXT","DESKTOP","129663ZPFxUr","INTERSTITIAL","POPUP","BANNER","WEB","1010805MHkzck","7dxhPAj","VIEWABLE","TABLET","9364368HrTjOh","283074svngZc","MOBILE","2yEWFZo","12552488VoGyUb","2260jwtByn"];return(f=function(){return t})()}function g(t,e){const n=y();return(g=function(t,e){return n[t-=454]})(t,e)}!function(t){for(var e=h,n=t();;)try{if(891482===parseInt(e(137))/1+-parseInt(e(139))/2*(parseInt(e(144))/3)+-parseInt(e(145))/4+-parseInt(e(132))/5+-parseInt(e(136))/6+-parseInt(e(133))/7*(-parseInt(e(140))/8)+-parseInt(e(148))/9*(-parseInt(e(141))/10))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(f),(n=e||(e={}))[(r=h)(130)]="BANNER",n[r(150)]="POPUP",n.INTERSTITIAL=r(149),n[r(142)]=r(142),n.VIDEO="VIDEO",n.TEXT=r(146),(s=o||(o={}))[(i=h)(131)]="WEB",s[i(138)]=i(138),(c=a||(a={}))[(l=h)(134)]=l(134),c.CLICK=l(143),(u=d||(d={}))[(p=h)(147)]=p(147),u[p(138)]=p(138),u[p(135)]=p(135);const m=g;function y(){const t=["ms (","168201hPjokJ","2140opkydi","ceil","ms)","getScrollInfo","location","8FoltkT","all","safeApplyStyles","open","map","textContent","scrollTop","title","safeQuerySelector","⏳ 컨테이너 대기 중: ","isSSR","번째 시도, ","safeSetInnerHTML","setProperty","safeCreateElement","canUseDOM","✅ 컨테이너 발견: ","log","add","safeGetComputedStyle","innerHTML","115MRvnXR","remove","forEach","innerHeight","safeRemoveEventListener","846355NrNdFe","style","undefined","innerWidth","waitForDOM","referrer","번 시도)","querySelectorAll","getWindowProperty","loading","querySelector","pageYOffset","290712lDrkUD","safeAddEventListener","appendChild","isDOMReady"," (최대 ","getViewportInfo","removeEventListener","3695757kTRSfS","devicePixelRatio","createElement","readyState",'"\n \n다음을 확인해보세요:\n1. HTML에 id="',"getElementById","pow","405718dXDDcc","waitForElements","7461034tiOykO","isBrowser","classList","safeRemoveChild","772624OvIDHg","⏳ 컨테이너 대기 시작: ","getDocumentProperty","safeSetTextContent","documentElement","waitForElement","DOM을 사용할 수 없는 환경입니다."];return(y=function(){return t})()}!function(t){const e=g,n=t();for(;;)try{if(655101===parseInt(e(483))/1+parseInt(e(509))/2+parseInt(e(502))/3+parseInt(e(515))/4+parseInt(e(478))/5*(parseInt(e(495))/6)+parseInt(e(511))/7*(parseInt(e(457))/8)+-parseInt(e(523))/9*(parseInt(e(524))/10))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(y);class I{static[m(512)](){const t=m;return typeof window!==t(485)&&typeof document!==t(485)}static[m(467)](){return!this[m(512)]()}static[m(472)](){const t=m;return this[t(512)]()&&void 0!==document[t(505)]}static safeGetElementById(t){const e=m;return this[e(472)]()?document[e(507)](t):null}static[m(465)](t){const e=m;return this[e(472)]()?document[e(493)](t):null}static safeQuerySelectorAll(t){const e=m;return this[e(472)]()?Array.from(document[e(490)](t)):[]}static[m(471)](t){const e=m;return this[e(472)]()?document[e(504)](t):null}static[m(496)](t,e,n,r){this.canUseDOM()&&t&&t.addEventListener(e,n,r)}static[m(482)](t,e,n,r){const o=m;this[o(472)]()&&t&&t[o(501)](e,n,r)}static getWindowProperty(t,e){return this[m(512)]()?window[t]??e:e}static[m(517)](t,e){return this[m(472)]()?document[t]??e:e}static safeWindowOpen(t,e,n){const r=m;return this[r(512)]()?window[r(460)](t,e,n):null}static[m(476)](t){return this[m(512)]()&&t?window.getComputedStyle(t):null}static[m(498)](){const t=m;return!!this[t(472)]()&&document.readyState!==t(492)}static[m(487)](){return new Promise(t=>{this.canUseDOM()?this.isDOMReady()?t():this.safeAddEventListener(document,"DOMContentLoaded",()=>t()):t()})}static[m(459)](t,e){const n=m;this[n(472)]()&&t&&Object.entries(e)[n(480)](([e,r])=>{const o=n;t[o(484)][o(470)](e,r)})}static safeAddClass(t,e){const n=m;this[n(472)]()&&t&&t.classList[n(475)](e)}static safeRemoveClass(t,e){const n=m;this[n(472)]()&&t&&t[n(513)][n(479)](e)}static[m(518)](t,e){const n=m;this[n(472)]()&&t&&(t[n(462)]=e)}static[m(469)](t,e){const n=m;this.canUseDOM()&&t&&(t[n(477)]=e)}static safeAppendChild(t,e){const n=m;this[n(472)]()&&t&&e&&t[n(497)](e)}static[m(514)](t,e){this.canUseDOM()&&t&&e&&t.removeChild(e)}static getPageInfo(){const t=m;return{url:this[t(491)](t(456),{href:""}).href,title:this[t(517)](t(464),""),referrer:this[t(517)](t(488),"")}}static[m(500)](){const t=m;return{width:this[t(491)](t(486),0),height:this[t(491)](t(481),0),pixelRatio:this[t(491)](t(503),1)}}static[m(455)](){const t=m;return{scrollTop:this[t(472)]()?window[t(494)]||document[t(519)][t(463)]:0,scrollLeft:this[t(491)]("pageXOffset",0)}}static async[m(520)](t,e={}){const n=m,{timeout:r=3e3,retryInterval:o=100,debug:s=!1}=e;if(!this[n(472)]())throw new Error(n(521));const i=document.getElementById(t);return i?(s&&console.log("✅ 컨테이너 즉시 발견: "+t),i):(s&&console[n(474)](n(516)+t+n(499)+r+n(454)),new Promise((e,i)=>{const a=n;let c=0;const l=Math[a(525)](r/o),d=()=>{const n=a;c++;const u=document.getElementById(t);if(u)return s&&console[n(474)](n(473)+t+" ("+c+n(468)+c*o+"ms 경과)"),void e(u);if(c>=l){const e='❌ 컨테이너를 찾을 수 없습니다: "'+t+n(506)+t+'" 요소가 있는지 확인\n2. React 등에서 컴포넌트가 렌더링된 후 SDK 호출\n3. 철자가 정확한지 확인\n4. 중복된 ID가 없는지 확인\n\n대기 시간: '+r+n(522)+c+n(489);return s&&console.error(e),void i(new Error(e))}s&&c%10==0&&console[n(474)](n(466)+t+" ("+c+"/"+l+")");const p=Math.min(o*Math[n(508)](1.2,c),500);setTimeout(d,p)};setTimeout(d,o)}))}static async[m(510)](t,e={}){const n=m,r=t[n(461)](t=>this[n(520)](t,e));return Promise[n(458)](r)}}const v=E;!function(t){const e=E,n=t();for(;;)try{if(608951===parseInt(e(405))/1*(-parseInt(e(399))/2)+parseInt(e(400))/3*(parseInt(e(393))/4)+parseInt(e(406))/5*(parseInt(e(394))/6)+-parseInt(e(404))/7+-parseInt(e(403))/8+parseInt(e(397))/9+-parseInt(e(395))/10*(-parseInt(e(392))/11))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(k);const b=v(401);function w(){return b}function k(){const t=["25OSgnDu"," AdStageSDK/","1357554Vehttq","428UerjDx","836904zdpjwz","140llAakA","userAgent","8747280gpvuJz","AdStageSDK/","2HrEgYd","2526xQIuDf","3.0.11","undefined","8646472TelKLK","4124617LIBpTx","1208239QpwxAC"];return(k=function(){return t})()}function E(t,e){const n=k();return(E=function(t,e){return n[t-=392]})(t,e)}const S=x;function x(t,e){const n=C();return(x=function(t,e){return n[t-=399]})(t,e)}!function(t){const e=x,n=t();for(;;)try{if(645537===-parseInt(e(402))/1+-parseInt(e(437))/2*(parseInt(e(430))/3)+-parseInt(e(420))/4*(parseInt(e(447))/5)+parseInt(e(416))/6+-parseInt(e(427))/7*(parseInt(e(419))/8)+parseInt(e(423))/9*(-parseInt(e(425))/10)+parseInt(e(450))/11)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(C);class A{static[S(412)](){const t=S;if(!I[t(422)]())return t(421)+Date.now();const e=localStorage.getItem("adstage_device_id");if(e)return e;const n=t(424)+Math[t(431)]()[t(426)](36)[t(443)](2,9)+"_"+Date[t(442)]();return localStorage[t(435)](t(436),n),n}static generateSessionId(){const t=S;if(!I[t(422)]())return t(434)+Date[t(442)]();const e=sessionStorage[t(415)](t(444));if(e)return e;const n=t(445)+Math[t(431)]()[t(426)](36)[t(443)](2,9)+"_"+Date[t(442)]();return sessionStorage[t(435)](t(444),n),n}static[S(449)](){const t=S;return!!I[t(422)]()&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i[t(428)](navigator[t(429)])}static getPlatform(){const t=S;if(!I[t(422)]())return t(403);const e=navigator[t(429)][t(432)]();return/iphone|ipad|ipod/[t(428)](e)?"ios":/android/.test(e)?"android":A[t(449)]()?t(403):t(438)}static[S(439)](){const t=S,e=I[t(411)]();return{deviceId:A[t(412)](),sessionId:A.generateSessionId(),osVersion:I[t(422)]()?navigator[t(407)]:t(441),deviceModel:I[t(422)]()?navigator[t(407)]:"SSR",appVersion:t(408),sdkVersion:w(),language:I[t(422)]()&&navigator[t(433)]||"ko",country:"KR",ipAddress:"",userAgent:I[t(422)]()?navigator[t(429)]:t(441),timezone:I.isBrowser()?Intl[t(400)]().resolvedOptions()[t(401)]:t(417),viewportWidth:e[t(413)],viewportHeight:e[t(406)],screenWidth:I[t(422)]()?screen[t(413)]:0,screenHeight:I.isBrowser()?screen[t(406)]:0,colorDepth:I[t(422)]()?screen[t(446)]:24,pixelRatio:e[t(414)],connectionType:I.isBrowser()&&navigator.connection?.[t(409)]||"unknown",platform:A[t(405)]()}}static getSlotPosition(t){const e=S;let n=I.safeGetElementById(t);if(!n){const r=I[e(399)]("#"+t+e(440));r&&(n=r)}if(!n&&(n=I[e(399)]('[data-adstage-slot-id="'+t+'"]')),!n)return e(418);const r=n.getBoundingClientRect(),o=I[e(448)]();return"x:"+Math.round(r.left)+",y:"+Math[e(404)](r.top+o[e(410)])}}function C(){const t=["adstage_device_id","104FKYxiK","desktop","collectDeviceInfo"," .adstage-slider-wrapper","SSR","now","substr","adstage_session_id","session_","colorDepth","470oKYRoN","getScrollInfo","isMobile","15980371KFpkJz","safeQuerySelector","DateTimeFormat","timeZone","647865gdXGYo","web","round","getPlatform","height","platform","1.0.0","effectiveType","scrollTop","getViewportInfo","generateDeviceId","width","pixelRatio","getItem","5552748aqtTJm","UTC","unknown","1824GCHwab","2764TFxGaM","ssr_device_","isBrowser","9NpKLEO","device_","366230RQvbfr","toString","2702tZQVfJ","test","userAgent","51648pHTykk","random","toLowerCase","language","ssr_session_","setItem"];return(C=function(){return t})()}const T=R;function _(){const t=["33578072iJTlDm","2134635oFLJYL","11716XBwPhQ","contentType","API key is required","10ieGPQe","15pIstQj","5100156IwhgcZ","2092452zEEBBK","User-Agent","userAgent","1892702jzURUM","158SYIzZW","create","2911448LZfuLI","undefined","40AEewHF"];return(_=function(){return t})()}function R(t,e){const n=_();return(R=function(t,e){return n[t-=449]})(t,e)}!function(t){const e=R,n=t();for(;;)try{if(707237===-parseInt(e(461))/1*(-parseInt(e(454))/2)+-parseInt(e(460))/3+-parseInt(e(456))/4+-parseInt(e(465))/5*(parseInt(e(450))/6)+parseInt(e(453))/7*(-parseInt(e(458))/8)+parseInt(e(449))/9*(parseInt(e(464))/10)+parseInt(e(459))/11)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(_);class D{static[T(455)](t,e){const n=T;if(!t)throw new Error(n(463));const r={"x-api-key":t,"Content-Type":e?.[n(462)]||"application/json"};return typeof navigator!==n(457)&&(r[n(451)]=e?.[n(452)]||navigator[n(452)]),r}static createForEvents(t,e){const n=T,r=D[n(455)](t);return e?.[n(452)]&&(r[n(451)]=e.userAgent),r}}const P=U;function L(){const t=["52040ilYuvD","createForEvents","deviceId","debug","parseNumericValue","🚀 Sending advertisement event: ","❌ Failed to track advertisement event:","platform","title","9634752dLzVDl","apiKey","baseUrl","stringify","2qSvvWa","number","log","2503257yXBDTs","get","status","/advertisements/events/","✅ Successfully tracked advertisement event: ","querySelector"," event for ad ","string","7733UdGfdS","API request failed: ","replace","30890bOjPfn","POST","statusText","11296576eukQSl","containerId","⚠️ DOM element not found for slotId: ","📡 API Response Status: ","315JWtfkF"," (containerId: ","getPageInfo",". Skipping event tracking to prevent incorrect adType.","width","NOT_SET","🌐 Full API call details:"," for ad ","adType","24378cPCtXm","getElementById","substring","referrer","332047piIPmR","🚀 AdvertisementEventTracker: Processing ","warn","). Skipping event tracking.","height","308ONMWDs","trackAdvertisementEvent","error","url","🔍 Debug info:"];return(L=function(){return t})()}function U(t,e){const n=L();return(U=function(t,e){return n[t-=282]})(t,e)}!function(t){const e=U,n=t();for(;;)try{if(832197===-parseInt(e(311))/1+-parseInt(e(334))/2*(-parseInt(e(337))/3)+parseInt(e(321))/4*(parseInt(e(298))/5)+parseInt(e(307))/6*(-parseInt(e(316))/7)+-parseInt(e(294))/8+-parseInt(e(330))/9+parseInt(e(291))/10*(parseInt(e(288))/11))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(L);class O{constructor(t,e,n,r){const o=U;this[o(332)]=t,this[o(331)]=e,this[o(324)]=n,this.slots=r}async[P(317)](t,e,n){const r=P;try{this.debug&&console[r(336)](r(312)+n+r(286)+t+" in slot "+e);const o=this.slots[r(338)](e);if(!o)return void(this[r(324)]&&console[r(313)]("⚠️ Slot not found for slotId: "+e+r(301)));if(!(document[r(308)](o[r(295)])||document[r(285)]('[data-adstage-slot-id="'+e+'"]')))return void(this[r(324)]&&console[r(313)](r(296)+e+r(299)+o[r(295)]+r(314)));const s=A.collectDeviceInfo(),i={adType:o[r(306)],platform:s[r(328)],deviceId:s[r(323)],deviceInfo:s,pageUrl:I.getPageInfo()[r(319)],pageTitle:I[r(300)]()[r(329)],referrer:I.getPageInfo()[r(310)],slotId:e,slotPosition:A.getSlotPosition(o[r(295)]),slotWidth:O[r(325)](o[r(302)]),slotHeight:O[r(325)](o[r(315)]),sessionId:s.sessionId,pageLoadTime:performance.now(),metadata:{eventType:n,sdkVersion:w(),timestamp:Date.now()},...n===a.VIEWABLE&&{isViewable:!0,iabCompliant:!0}},c=this[r(332)]+r(283)+t+"/"+n,l=D[r(322)](this[r(331)],i);this.debug&&(console[r(336)](r(326)+n+r(305)+t,{url:c,headers:l,eventData:i}),console[r(336)](r(304),{method:r(292),url:c,hasApiKey:!!this[r(331)],bodySize:JSON[r(333)](i).length}));const d=await fetch(c,{method:r(292),headers:l,body:JSON.stringify(i)});if(this[r(324)]&&console[r(336)](r(297)+d[r(282)]+" "+d[r(293)],{url:c,ok:d.ok}),!d.ok){const t=await d.text();throw new Error(r(289)+d[r(282)]+" "+d.statusText+" - "+t)}this[r(324)]&&console.log(r(284)+n+r(305)+t)}catch(o){console[r(318)](r(327),o),console[r(318)](r(320),{baseUrl:this[r(332)],apiKey:this[r(331)]?this.apiKey[r(309)](0,8)+"...":r(303),url:this[r(332)]+r(283)+t+"/"+n,eventType:n,adId:t,slotId:e})}}static[P(325)](t){const e=P;if(typeof t===e(335))return t;if(typeof t===e(287)){const n=parseFloat(t[e(290)](/px$/,""));return isNaN(n)?0:n}return 0}}function z(){var t=["24594dFTNDt","3763170EBosBw","818984wQjCWH","intersectionRatio","3259416yogTZa","isViewableTriggered","605952PissTb","handleIntersection","hidden","element","initIntersectionObserver","930vRYCJu","IntersectionObserver not supported, viewability tracking disabled","warn","onViewableCallback","IntersectionObserver","8460151EpPFIK","4JzqkkR","observe","observer","isDocumentVisible","visibilityState","144AHTXdd","1604942zrdPld","visible"];return(z=function(){return t})()}var B=F;function F(t,e){var n=z();return(F=function(t,e){return n[t-=363]})(t,e)}!function(t){for(var e=F,n=t();;)try{if(990902===-parseInt(e(382))/1+-parseInt(e(365))/2+parseInt(e(363))/3*(-parseInt(e(376))/4)+-parseInt(e(370))/5*(-parseInt(e(384))/6)+parseInt(e(375))/7+-parseInt(e(386))/8*(-parseInt(e(381))/9)+parseInt(e(385))/10)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(z);class M{constructor(t,e){var n=F;this[n(378)]=null,this.isViewableTriggered=!1,this.element=t,this[n(373)]=e,this[n(369)]()}[B(369)](){var t=B;t(374)in window?(this[t(378)]=new IntersectionObserver(e=>this[t(366)](e),{threshold:.5,rootMargin:"0px"}),this.observer[t(377)](this[t(368)])):console[t(372)](t(371))}handleIntersection(t){t.forEach(t=>{var e=F;t[e(387)]>=.5&&this[e(379)]()&&!this.isViewableTriggered&&(this[e(364)]=!0,this[e(373)]&&this[e(373)]())})}isDocumentVisible(){var t=B;return!document[t(367)]&&document[t(380)]===t(383)}destroy(){var t=B;this[t(378)]&&(this[t(378)].disconnect(),this[t(378)]=null)}}const N=j;!function(t){const e=j,n=t();for(;;)try{if(155925===-parseInt(e(267))/1+parseInt(e(272))/2+parseInt(e(258))/3+-parseInt(e(274))/4*(parseInt(e(263))/5)+parseInt(e(253))/6*(-parseInt(e(266))/7)+parseInt(e(265))/8+parseInt(e(257))/9*(-parseInt(e(252))/10))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(W);const V={production:N(254),beta:N(269)};function j(t,e){const n=W();return(j=function(t,e){return n[t-=252]})(t,e)}const K={advertisements:{list:"/advertisements/list",detail:"/advertisements",events:"/advertisements/events"},events:{track:N(273),registerAttribution:N(256)}};class H{constructor(t){const e=N;this[e(264)]={list:()=>""+this[e(260)]+K[e(264)].list,detail:t=>""+this[e(260)]+K[e(264)][e(268)]+"/"+t,events:(t,n)=>""+this[e(260)]+K[e(264)][e(259)]+"/"+t+"/"+n},this[e(259)]={track:()=>""+this[e(260)]+K.events[e(261)],registerAttribution:()=>""+this[e(260)]+K[e(259)][e(271)]},this[e(260)]=t||V[e(255)]}setBaseUrl(t){this[N(260)]=t}getBaseUrl(){return this[N(260)]}[N(262)](t){const e=N;return""+this[e(260)]+(t[e(270)]("/")?t:"/"+t)}}const q=new H;function W(){const t=["65MxiTEU","advertisements","2145816lJDKON","11508ltIeNy","74493PwyEbX","detail","https://beta-api.adstage.app","startsWith","registerAttribution","237402UeQPwC","/events/track","63544hqyXsA","3130FKjjkH","102tGrIwn","https://api.adstage.app","production","/events/register/attribution","6633tJIyMA","925911zhDCpt","events","baseUrl","track","custom"];return(W=function(){return t})()}function J(){var t=["log"," (index: 0) in slot: ","18061490XWobIX",") in slot: ","VIEWABLE","4836740KwOYry","2658222EdfZeC","🎯 Triggering initial VIEWABLE event: ad ","1svKhzv","6891012VVmVKn","437564EVUHiQ","1644290oZhHnG","8qiqiMb","9546057SjqtyI"," (index: ","12HhhkmD","_id"];return(J=function(){return t})()}function Y(t,e){var n=J();return(Y=function(t,e){return n[t-=316]})(t,e)}!function(t){for(var e=Y,n=t();;)try{if(606047===parseInt(e(321))/1*(-parseInt(e(324))/2)+parseInt(e(328))/3*(parseInt(e(323))/4)+parseInt(e(318))/5+parseInt(e(322))/6+-parseInt(e(319))/7+-parseInt(e(325))/8*(-parseInt(e(326))/9)+-parseInt(e(332))/10)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(J);class X{static trackSlideViewable(t,e,n,r,o=!1){var s=Y;o&&console.log("🎯 Triggering VIEWABLE event for slide change: ad "+t[s(329)]+s(327)+n+s(316)+e.id),r(t._id,e.id,a[s(317)])}static trackInitialSlideViewable(t,e,n,r=!1){var o=Y;r&&console[o(330)](o(320)+t._id+o(331)+e.id),n(t[o(329)],e.id,a[o(317)])}}function G(){const t=["click","cursor","4886380zWInlM","open","pointer","preventDefault","_blank","4628iqcKXR","stopPropagation","adType","2313871lVzurO","2hWMiIc","style","linkUrl","2740xyylDD","CLICK","🔗 ","323847vhnQiz","forEach","519367qxjpoT","addClickEventForRenderer","9FunItA"," ad clicked: ","addClickEventForSlider","addEventListener","addClickEvent","16hIhZqL","log","_id","193122JXqScR"," -> ","19231410yfJtla","addClickEventsBatch"];return(G=function(){return t})()}const Z=Q;function Q(t,e){const n=G();return(Q=function(t,e){return n[t-=371]})(t,e)}!function(t){const e=Q,n=t();for(;;)try{if(630599===parseInt(e(400))/1+-parseInt(e(392))/2*(-parseInt(e(398))/3)+parseInt(e(388))/4*(parseInt(e(395))/5)+-parseInt(e(377))/6+-parseInt(e(391))/7*(-parseInt(e(374))/8)+-parseInt(e(402))/9*(-parseInt(e(383))/10)+-parseInt(e(379))/11)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(G);class ${static[Z(373)](t,e,n,r,o=!1,s){const i=Z;e[i(394)]&&(t.style[i(382)]=i(385),t[i(372)](i(381),t=>{const c=i;if(t[c(386)](),t.stopPropagation(),r&&r(e[c(376)],n.id,a[c(396)]),window[c(384)](e.linkUrl,c(387)),o){const t=s||String(n[c(390)]).toLowerCase();console[c(375)](c(397)+t+c(403)+e[c(376)]+c(378)+e[c(394)])}}))}static[Z(401)](t,e,n,r,o=!1,s){const i=Z;e[i(394)]&&(t[i(393)][i(382)]=i(385),t[i(372)]("click",t=>{const c=i;t[c(386)](),t[c(389)]();if(r()(e._id,n.id,a.CLICK),window[c(384)](e[c(394)],"_blank"),o){const t=s||String(n[c(390)]).toLowerCase();console[c(375)]("🔗 "+t+" ad clicked: "+e[c(376)]+" -> "+e[c(394)])}}))}static[Z(371)](t,e,n,r,o=!1,s){this.addClickEvent(t,e,n,r,o,s)}static isClickable(t){return Boolean(t[Z(394)])}static[Z(380)](t,e,n,r,o=!1,s){const i=Z;t[i(399)]((t,a)=>{const c=i,l=e[a];l&&this[c(373)](t,l,n,r,o,s)})}}function tt(t,e){const n=rt();return(tt=function(t,e){return n[t-=172]})(t,e)}const et=tt;!function(t){const e=tt,n=t();for(;;)try{if(135532===parseInt(e(280))/1*(parseInt(e(257))/2)+parseInt(e(261))/3*(-parseInt(e(229))/4)+-parseInt(e(173))/5*(-parseInt(e(227))/6)+-parseInt(e(188))/7*(parseInt(e(183))/8)+parseInt(e(230))/9*(parseInt(e(246))/10)+-parseInt(e(252))/11*(parseInt(e(238))/12)+-parseInt(e(174))/13*(-parseInt(e(224))/14))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(rt);class nt{static createSimpleAdElement(t,n){const r=tt,o=document.createElement("div");switch(o[r(279)]=r(218)+String(t[r(211)])[r(206)](),o[r(217)]("data-adstage-ad-id",n[r(205)]),o[r(217)](r(172),t.id),o.style[r(178)]=r(286),o[r(262)][r(243)]="100%",o[r(262)][r(215)]="auto",t[r(211)]){case e[r(232)]:if(n[r(235)]){const t=document.createElement("img");t[r(284)]=n[r(235)],t[r(262)][r(243)]=r(199),t[r(262)].height=r(255),t[r(262)][r(213)]=r(212),o[r(272)](t)}else o[r(262)].height=r(237),o[r(262)][r(260)]=r(259),o[r(262)][r(244)]=r(242),o.textContent=r(204);break;case e[r(226)]:if(n[r(181)]){const t=document[r(270)](r(216));t[r(284)]=n[r(181)],t[r(262)].width=r(199),t[r(262)][r(215)]="auto",o[r(272)](t)}else o[r(262)].height=r(271),o[r(262)][r(260)]=r(192),o[r(262)][r(244)]=r(184),o.textContent=r(277),o[r(262)][r(198)]=r(214);break;case e[r(288)]:if(n[r(249)]){const t=document[r(270)](r(191));t[r(249)]=n[r(249)]||"",t[r(262)][r(268)]=r(269),t[r(262)][r(194)]=r(285),o[r(272)](t)}else o[r(262)][r(215)]=r(187),o[r(262)][r(268)]=r(269),o[r(249)]=r(266);break;default:o.style[r(215)]=r(237),o.style.border=r(242),o[r(262)][r(260)]=r(175),o[r(249)]=t.adType+" Ad"}return o}static[et(225)](t,n,r,o,s=!1){const i=et,a=document[i(270)](i(191));a[i(279)]=i(283);const c={position:i(221),overflow:i(247)};if(t[i(243)]&&0!==t.width){let e;e=typeof t.width===i(197)&&(t[i(243)][i(220)]("px")||t[i(243)][i(220)]("%"))?t.width:t[i(243)]+"px",c[i(243)]=e,c[i(178)]=i(231)}else c.display=i(231);if(t[i(215)]&&0!==t[i(215)]){const e=typeof t[i(215)]===i(197)?t[i(215)]:t[i(215)]+"px";c[i(215)]=e}Object[i(275)](c)[i(250)](([t,e])=>{const n=i;a[n(262)][n(264)](t,e)});const l=!t[i(243)]||0===t[i(243)],d=!t[i(215)]||0===t[i(215)];if(l||d){const e=document[i(270)]("div");if(e[i(262)][i(251)]=i(282),!l&&t[i(243)]){let n;n=typeof t[i(243)]===i(197)&&(t.width.includes("px")||t[i(243)].includes("%"))?t.width:t[i(243)]+"px",e[i(262)][i(243)]=n,e.style[i(258)]="normal"}document[i(180)][i(272)](e);let r=0,o=0;n[i(250)](n=>{const s=i,a=this.createSimpleAdElement(t,n);e[s(272)](a);const c=a[s(265)]();c[s(243)]>r&&(r=c.width),c.height>o&&(o=c[s(215)]),e[s(245)](a)}),l&&r>0&&(a[i(262)][i(243)]=r+"px",c[i(243)]=r+"px"),d&&o>0&&(a[i(262)][i(215)]=o+"px",c[i(215)]=o+"px"),document[i(180)][i(245)](e)}const u=[...n,n[0]],p=document.createElement("div");p[i(279)]=i(185);const h={display:"flex",transition:i(254),width:100*u[i(233)]+"%"};t[i(215)]&&0!==t[i(215)]&&(h[i(215)]="100%"),Object[i(275)](h)[i(250)](([t,e])=>{p[i(262)].setProperty(t,e)}),u[i(250)]((e,n)=>{const r=i,a=document[r(270)](r(191));a.className=r(177);const c={width:100/u[r(233)]+"%","flex-shrink":"0",display:r(195),"align-items":r(239),"justify-content":r(239)};t[r(215)]&&0!==t[r(215)]&&(c.height=r(199)),Object.entries(c)[r(250)](([t,e])=>{const n=r;a[n(262)][n(264)](t,e)});const l=this[r(253)](t,e);$[r(228)](l,e,t,o,s,String(t[r(211)])[r(206)]()),a[r(272)](l),p[r(272)](a)});const f=n.every(t=>t.adType===e[i(288)])?null:this[i(236)](n[i(233)]);let g=0;const m=n[i(233)],y=1e3*(r?.autoSlideInterval||3),I=(e,r=!1)=>{const a=i;g=e,r?p[a(262)][a(201)]="none":p.style[a(201)]=a(254),p.style.transform=a(278)+100/u[a(233)]*g+"%)";const c=g===m?0:g;if(f){f[a(189)](".adstage-dot")[a(250)]((t,e)=>{const n=a,r=t;e===c?(r[n(241)].add(n(234)),r[n(262)][n(208)]="#666666",r[n(262)][n(273)]=n(190),r.style[n(222)]="1"):(r.classList.remove(n(234)),r[n(262)][n(208)]=n(219),r[n(262)][n(273)]=n(223),r[n(262)][n(222)]=n(179))})}X[a(209)](n[c],t,c,o,s)},v=()=>{g===m&&setTimeout(()=>{I(0,!0)},400)};if(f){f.querySelectorAll(".adstage-dot")[i(250)]((t,e)=>{const n=i;t.addEventListener(n(256),()=>I(e))})}let b=setInterval(()=>{I(g+1),v()},y);return a.addEventListener(i(207),()=>{clearInterval(b)}),a[i(267)](i(200),()=>{b=setInterval(()=>{I(g+1),v()},y)}),this[i(240)](p,I,()=>g,m,v),a[i(272)](p),f&&a.appendChild(f),I(0),(!t.width||0===t.width)&&setTimeout(()=>{const e=i,n=p[e(287)][0];if(n){const r=n[e(287)][0];if(r){const n=r[e(265)]();a.style[e(243)]=n[e(243)]+"px",(!t[e(215)]||0===t.height)&&(a[e(262)].height=n[e(215)]+"px"),a.style[e(196)]=e(247)}}},10),a}static[et(236)](t){const e=et,n=document.createElement(e(191));n[e(279)]=e(186),n[e(262)][e(251)]=e(193);for(let r=0;r<t;r++){const t=document[e(270)](e(182));t[e(279)]=e(248),t[e(262)][e(251)]="\n width: 8px;\n height: 8px;\n border-radius: 50%;\n border: 1px solid #cccccc;\n background: transparent;\n cursor: pointer;\n transition: all 0.3s ease;\n outline: none;\n opacity: 0.7;\n padding: 0;\n margin: 0;\n flex-shrink: 0;\n ",t[e(267)](e(207),()=>{const n=e;!t[n(241)][n(202)](n(234))&&(t[n(262)][n(273)]=n(203),t[n(262)][n(222)]="0.9")}),t[e(267)]("mouseleave",()=>{const n=e;!t[n(241)][n(202)](n(234))&&(t.style.borderColor=n(223),t[n(262)][n(222)]="0.7")}),n[e(272)](t)}return n}static[et(240)](t,e,n,r,o){const s=et;let i=0,a=!1;t[s(267)]("touchstart",t=>{const e=s;i=t[e(176)][0][e(274)],a=!0}),t[s(267)](s(263),t=>{a&&t[s(210)]()}),t[s(267)](s(281),t=>{const c=s;if(!a)return;a=!1;const l=t[c(276)][0][c(274)],d=i-l;if(Math.abs(d)>50){const t=n();if(d>0){e(t+1),o&&o()}else{e(t>0?t-1:r-1)}}})}}function rt(){const t=["backgroundColor","409935RJoPpV","style","touchmove","setProperty","getBoundingClientRect","Text Ad","addEventListener","padding","8px","createElement","200px","appendChild","borderColor","clientX","entries","changedTouches","Video Ad","translateX(-","className","10brXSEM","touchend","\n position: absolute;\n visibility: hidden;\n white-space: nowrap;\n top: -9999px;\n left: -9999px;\n ","adstage-slider-wrapper","src","14px","block","children","TEXT","data-adstage-slot-id","12100BQDDQs","52nYmQAK","#f9f9f9","touches","adstage-slide","display","0.7","body","videoUrl","button","8ZUFEAA","1px solid #666","adstage-slide-container","adstage-dots","50px","117929dcLgqC","querySelectorAll","#666666","div","#000","\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 ","fontSize","flex","overflow","string","color","100%","mouseleave","transition","contains","#999999","Banner Ad","_id","toLowerCase","mouseenter","background","trackSlideViewable","preventDefault","adType","cover","objectFit","white","height","video","setAttribute","adstage-ad adstage-","transparent","includes","relative","opacity","#cccccc","669214EuafOV","createSliderContainer","VIDEO","648blNYKU","addClickEventForSlider","4NOZbxF","288aiUjus","inline-block","BANNER","length","active","imageUrl","createMinimalDotIndicator","100px","12VWIcJQ","center","addTouchSupport","classList","1px dashed #ccc","width","border","removeChild","3730VhScgC","hidden","adstage-dot","textContent","forEach","cssText","2739286DWpfYE","createSimpleAdElement","transform 0.4s ease-out","auto","click","14710UaBepF","whiteSpace","#f0f0f0"];return(rt=function(){return t})()}const ot=st;function st(t,e){const n=at();return(st=function(t,e){return n[t-=348]})(t,e)}!function(t){const e=st,n=t();for(;;)try{if(917448===-parseInt(e(362))/1*(-parseInt(e(365))/2)+-parseInt(e(350))/3*(-parseInt(e(356))/4)+parseInt(e(348))/5*(-parseInt(e(357))/6)+parseInt(e(366))/7*(parseInt(e(349))/8)+parseInt(e(352))/9*(-parseInt(e(363))/10)+parseInt(e(369))/11+parseInt(e(360))/12*(-parseInt(e(354))/13))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(at);class it{static[ot(351)](t,e,n=!1){const r=ot,o=t+"_"+e;return it[r(364)][r(353)](o)?(n&&console.log("Duplicate viewable blocked for ad "+t+r(367)+e),!0):(it[r(364)][r(361)](o),n&&console[r(358)](r(368)+t+r(367)+e),!1)}static[ot(359)](){it.viewableTracker.clear()}static[ot(355)](t,e){const n=t+"_"+e;it[ot(364)].delete(n)}}function at(){const t=["clearAdViewable","7132312HrQoPJ","141774uoAgmo","log","clear","1548qyxzQk","add","182241bBxjsE","49070FfCLfC","viewableTracker","4dhRTuC","7rPNXTX"," in slot ","✅ New viewable recorded for ad ","16555341kHmEan","15aeaMKI","4839416huSqRb","3LDhDuF","isDuplicateViewable","117ehBTxT","has","323024soNdkr"];return(at=function(){return t})()}it[ot(364)]=new Set;const ct=lt;function lt(t,e){const n=ut();return(lt=function(t,e){return n[t-=410]})(t,e)}!function(t){const e=lt,n=t();for(;;)try{if(282020===-parseInt(e(500))/1*(parseInt(e(478))/2)+-parseInt(e(451))/3*(parseInt(e(466))/4)+parseInt(e(523))/5+-parseInt(e(515))/6+-parseInt(e(421))/7*(-parseInt(e(472))/8)+parseInt(e(457))/9*(-parseInt(e(481))/10)+parseInt(e(488))/11*(parseInt(e(427))/12))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(ut);class dt{constructor(t,e=!1,n){const r=lt;this[r(496)]=t,this[r(417)]=e,this[r(525)]=n||null}createPlaceholder(t,e,n,r){const o=lt,s=document[o(492)]("div");s.id=e,s[o(475)]=o(411)+String(this[o(496)]).toLowerCase(),s[o(444)](o(470),"true"),s.setAttribute(o(432),String(this[o(496)])),s[o(444)](o(437),e);const{width:i,height:a}=this[o(482)](t,n,r)||{width:o(519),height:this.getDefaultHeight()};s.style[o(479)]=i,s.style[o(443)]=a;const c=r?.[o(415)]||n[o(415)]||o(504);this[o(460)](s,c),t[o(446)](s),this[o(417)]&&console[o(473)]("📦 Placeholder created for "+this[o(496)]+o(447)+e+" ("+i+o(469)+a+o(465)+c)}[ct(460)](t,e){const n=ct;switch(e){case n(504):t[n(508)][n(468)]=n(506),t[n(508)][n(424)]=n(497),t[n(508)][n(489)]="0",t[n(414)]="";break;case n(506):t[n(508)][n(468)]=n(506),t[n(508)].border=n(497),t[n(508)].display=n(495),t.innerHTML="";break;case n(526):t[n(508)][n(468)]=n(493),t.style[n(424)]="none",t.style.borderRadius=n(502),t[n(508)][n(514)]=n(521),t.style.alignItems=n(448),t[n(508)][n(429)]=n(448),t[n(414)]=n(498);break;case"minimal":t[n(508)].backgroundColor=n(454),t[n(508)][n(424)]=n(459),t[n(508)].borderRadius="6px",t.style[n(514)]="flex",t[n(508)][n(490)]=n(448),t[n(508)][n(429)]=n(448),t[n(414)]=n(425);break;case"debug":t[n(508)].border="2px dashed #e74c3c",t[n(508)][n(514)]=n(521),t[n(508)].alignItems=n(448),t[n(508)][n(429)]=n(448),t[n(508)][n(468)]=n(520),t[n(508)].color=n(441),t.style[n(416)]="monospace",t.style.fontSize=n(412),t[n(414)]=n(431)+this[n(496)]+n(499);break;default:t.style.border=n(439),t.style[n(514)]=n(521),t[n(508)][n(490)]=n(448),t[n(508)][n(429)]="center",t.style.backgroundColor=n(435),t.style[n(418)]=n(491),t[n(414)]="<span>Loading "+this[n(496)]+n(499)}}calculateAdSize(t,e,n){const r=ct,o=e[r(479)],s=e[r(443)];let i,a;if(i=typeof o===r(480)?o+"px":"string"==typeof o?o:r(519),"number"==typeof s)a=s+"px";else if("string"==typeof s&&s!==r(519)&&s!==r(452))a=s;else{const e=this[r(440)](t);e>0?(a=r(519),(n?.debug||this.debug)&&console.log(r(510)+e+r(463))):(a=this[r(442)](),(n?.[r(417)]||this[r(417)])&&console[r(473)](r(436)+a+" for "+this.adType))}return{width:i,height:a}}[ct(440)](t){const e=ct,n=window[e(419)](t),r=parseFloat(n[e(443)]);if(!r||0===r){const r=parseFloat(n[e(455)]);if(r>0)return r;if(t[e(508)][e(443)]&&t[e(508)].height!==e(452)){const n=parseFloat(t[e(508)][e(443)]);if(n>0)return n}const o=t[e(456)]("height");if(o){const t=parseFloat(o);if(t>0)return t}}return r||0}[ct(467)](){return async(t,e,n)=>{const r=lt;if(n===a.VIEWABLE){if(it[r(494)](t,e,this[r(417)]))return void(this.debug&&console[r(473)](r(516)+t+" in slot "+e));this[r(417)]&&console[r(473)](r(434)+t+r(464)+e)}if(this[r(525)])try{this[r(417)]&&console.log(r(422)+n+r(461)+t+r(464)+e),await this.advertisementEventTracker.trackAdvertisementEvent(t,e,n),this.debug&&console.log(r(420)+n+" for ad "+t+r(464)+e)}catch(e){this[r(417)]&&console[r(487)](r(430)+n+r(458)+t+":",e)}else this[r(417)]&&console[r(507)](r(512)+n+r(501))}}renderFallback(t){const e=ct,n=document[e(413)](t.id);if(n){const r=[...[n[e(471)](e(505)),n[e(433)](e(505)),n].filter(t=>t&&t[e(509)](e(470))),...[n[e(433)](e(450)),n[e(433)](e(428)+String(this[e(496)])[e(518)]()),n[e(433)](e(476)),n[e(433)]('[class*="banner"]'),n[e(433)](e(486)),n[e(433)]('div[style*="height"]'),n[e(433)]('div[style*="min-height"]'),n[e(438)]][e(503)](Boolean)][0];if(r){let n=e(483);n=r.hasAttribute("data-adstage-container")?e(449):r[e(522)].contains(e(511))?e(524):e(423),r.style[e(410)]+="\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(414)]="",r[e(444)](e(485),e(474)),this[e(417)]&&console.warn(e(527)+this[e(496)]+e(453)+n+"): "+t.id,r)}else this.createEmptyContainer(t)}t.advertisement=void 0,t[e(484)]=!0}[ct(426)](t){const e=ct,n=document[e(413)](t[e(462)]);if(n){n.innerHTML="";const r=document[e(492)](e(445));r.id=t.id,r[e(475)]=e(513)+String(this[e(496)])[e(518)](),r[e(444)](e(470),"true"),r[e(444)](e(485),e(474)),r.setAttribute(e(437),t.id),r[e(508)].cssText=e(517),n[e(446)](r),this[e(417)]&&console[e(507)]("⚠️ Created empty "+this[e(496)]+e(477)+t.id)}}[ct(473)](t,...e){const n=ct;this[n(417)]&&console[n(473)]("["+this[n(496)]+"] "+t,...e)}}function ut(){const t=["10OXjZGm","calculateAdSize","unknown","isEmpty","data-adstage-empty",'[class*="container"]',"error","10235654HzskRF","opacity","alignItems","#666","createElement","rgba(0, 0, 0, 0.02)","isDuplicateViewable","block","adType","none",'<span style="color: rgba(0, 0, 0, 0.3); font-size: 11px; font-family: sans-serif;">•••</span>'," ad...</span>","351191jCQbnG"," event","4px","filter","invisible",'[data-adstage-container="true"]',"transparent","warn","style","hasAttribute","📏 Using 100% height (container: ","adstage-slot","⚠️ AdvertisementEventTracker not available for ","adstage-slot adstage-empty adstage-","display","3109974pzbFRe","🚫 Duplicate viewable blocked 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 ","toLowerCase","100%","rgba(231, 76, 60, 0.1)","flex","classList","2333145IwaEze","adstage-class","advertisementEventTracker","subtle","⚠️ ","cssText","adstage-slot adstage-","11px","getElementById","innerHTML","placeholderMode","fontFamily","debug","color","getComputedStyle","📊 Advertisement event tracked: ","28HJfegj","🔄 Starting advertisement event tracking: ","generic","border",'<span style="color: rgba(0, 0, 0, 0.4); font-size: 12px; font-family: -apple-system, sans-serif;">•••</span>',"createEmptyContainer","12brygOg",".adstage-","justifyContent","❌ Failed to track ","<span>Loading ","data-adstage-type","closest","✅ New viewable recorded for ad ","#f9f9f9","📏 Using default height ","data-adstage-slot","parentElement","1px dashed #ccc","getContainerHeight","#e74c3c","getDefaultHeight","height","setAttribute","div","appendChild"," slot: ","center","adstage-official",".adstage-slot","111rtvOnA","auto"," container collapsed (","rgba(248, 249, 250, 0.5)","minHeight","getAttribute","2269548SGoMnb"," event for ad ","1px solid rgba(0, 0, 0, 0.08)","applyPlaceholderStyle"," for ad ","containerId","px)"," in slot ",") - Mode: ","4060nMlLyI","createEventTrackingCallback","backgroundColor"," x ","data-adstage-container","querySelector","88248kdYqqN","log","true","className",'[class*="ad"]'," container: ","2cNYErf","width","number"];return(ut=function(){return t})()}const pt=ft;function ht(){const t=["loadImageDimensions","img","Banner Advertisement","slideInterval","calculateOptimalHeight",'<div style="display: flex; align-items: center; justify-content: center; height: 100%; color: #999;">Loading...</div>',"8pRobqi","default","createSliderContainer","7vwCLam","src","4:3","Banner","block","max","</div>","renderMultipleAds","forEach","getDefaultHeight","535335LtiWpu","addClickEventForRenderer","onerror","length","appendChild","3871038RVJLIE","contain","error","onload",", ratio=","🔧 Banner container optimized for ","values","getElementById","adstage-ad adstage-banner-ad","title","width","optimizeContainerForBannerAds","100%","3648670msdYWu","imageUrl","toFixed","borderRadius","applyOptimizedImageStyle","createElement","innerHTML","1:1","<div>","427090OuLSyX","Failed to calculate optimal banner size, using defaults:","debug","naturalWidth","Banner container optimization failed, using default size:","538965xFpxJT","dominant","abs","getBoundingClientRect","toString","optimizedHeight","createEventTrackingCallback","count","renderAdElement","containerId","objectFit","value","backgroundColor"," ads: ","round","aspectRatio","8px","calculateAdSize","24923525zVOTsW","display","className","🎨 Banner image style applied: objectFit="," (avg: ","alt","renderOptimizedBannerImage","104zpmwwf","cover","naturalHeight","get","🎠 Banner carousel created for slot: ","height","warn","div","selectOptimalSizeStrategy","set","center","objectPosition","BANNER","log","88797YfEdPt","reduce","calculateOptimalContainerSize","filter","name","parentElement","config","ratio","some","32QAafOn","style","_id"];return(ht=function(){return t})()}function ft(t,e){const n=ht();return(ft=function(t,e){return n[t-=232]})(t,e)}!function(t){const e=ft,n=t();for(;;)try{if(623053===parseInt(e(278))/1+parseInt(e(265))/2*(-parseInt(e(247))/3)+-parseInt(e(256))/4*(-parseInt(e(305))/5)+parseInt(e(283))/6*(parseInt(e(268))/7)+parseInt(e(233))/8*(parseInt(e(310))/9)+parseInt(e(296))/10+-parseInt(e(328))/11)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(ht);class gt extends dt{constructor(t=!1,n){super(e[ft(245)],t,n)}getDefaultHeight(){return"250px"}async[pt(318)](t,e){const n=pt,r=document[n(290)](t[n(319)]);if(!r)return;const o=document[n(301)](n(240));o[n(330)]=n(291);const s=t[n(315)],i=r[n(252)]||r;if(s)o[n(257)][n(293)]=n(295),o.style[n(238)]=String(s);else{const e=t.config,r={width:e?.[n(293)],height:e?.[n(238)]},{width:s,height:a}=this[n(327)](i,r,{debug:this[n(307)]});o.style.width=s,o[n(257)][n(238)]=a}e[n(297)]?await this[n(232)](o,e,t):o[n(302)]=n(304)+(e[n(292)]||"Banner Ad")+n(274),$[n(279)](o,e,t,()=>this[n(316)](),this[n(307)],n(271)),r[n(302)]="",r[n(282)](o)}async[pt(275)](t,e){const n=pt,r=document.getElementById(t[n(319)]);if(!r)throw new Error("Container not found: "+t[n(319)]);await this[n(294)](t,e);const o=this[n(316)](),s={autoSlideInterval:(t[n(253)]?.[n(262)]||5e3)/1e3,...t.config,optimizedHeight:t[n(315)],aspectRatio:t[n(325)]},i=nt[n(267)](t,e,s,o,this.debug);i&&(r[n(302)]="",r[n(282)](i),this.debug&&console[n(246)](n(237)+t.id+" with "+e[n(281)]+" ads (optimized: "+(t.optimizedHeight||n(266))+")"))}async[pt(249)](t,e){const n=pt;if(!t[n(281)])return{width:n(295),height:this[n(277)](),aspectRatio:16/9};try{const r=(await Promise.allSettled(t[n(250)](t=>t.imageUrl).map(t=>this[n(259)](t.imageUrl)))).filter(t=>"fulfilled"===t.status).map(t=>t[n(321)]);if(0===r[n(281)])return{width:"100%",height:this[n(277)](),aspectRatio:16/9};const o=this[n(241)](r),s=this[n(263)](r,e,o);return this[n(307)]&&console.log("📐 Optimal banner container calculated: "+e+"x"+s+" (strategy: "+o+")"),{width:n(295),height:s+"px",aspectRatio:e/s}}catch(t){return console[n(239)](n(306),t),{width:n(295),height:this[n(277)](),aspectRatio:16/9}}}async optimizeContainerForBannerAds(t,e){const n=pt;try{const r=document[n(290)](t[n(319)]),o=document[n(290)](t.id);if(!r||!o)return;const s=r[n(313)]()[n(293)]||300,i=await this[n(249)](e,s);o[n(257)][n(238)]=i[n(238)],t[n(315)]=i[n(238)],t[n(325)]=i.aspectRatio,this[n(307)]&&console[n(246)](n(288)+e.length+n(323)+i[n(238)])}catch(t){console[n(239)](n(309),t)}}[pt(241)](t){const e=pt,n=t.map(t=>t[e(293)]/t[e(238)]),r=new Map;n[e(276)](t=>{const n=e,o=(Math[n(324)](10*t)/10)[n(314)]();r[n(242)](o,(r[n(236)](o)||0)+1)});const o=Math[e(273)](...r[e(289)]()),s=t[e(281)];if(o/s>=.7)return e(311);const i=[16/9,4/3,1,1.5];return n[e(250)](t=>i[e(255)](e=>Math.abs(t-e)<.1))[e(281)]/s>=.5?"common":"average"}[pt(263)](t,e,n){const r=pt,o=t.map(t=>t[r(293)]/t.height);switch(n){case r(311):{const t=new Map;o.forEach(e=>{const n=r,o=Math[n(324)](10*e)/10,s=o[n(314)](),i=t[n(236)](s);i?i.count++:t[n(242)](s,{ratio:o,count:1})});const n=Array.from(t[r(289)]())[r(248)]((t,e)=>e[r(317)]>t[r(317)]?e:t);return Math.round(e/n[r(254)])}case"common":{const t=[{ratio:16/9,name:"16:9"},{ratio:4/3,name:r(270)},{ratio:1,name:r(303)},{ratio:1.5,name:"3:2"}],n=o[r(248)]((t,e)=>t+e,0)/o[r(281)],s=t[r(248)]((t,e)=>Math[r(312)](e[r(254)]-n)<Math[r(312)](t[r(254)]-n)?e:t);return this[r(307)]&&console[r(246)]("📊 Using standard ratio: "+s[r(251)]+r(332)+n[r(298)](2)+")"),Math[r(324)](e/s[r(254)])}default:{const t=o[r(248)]((t,e)=>t+e,0)/o[r(281)];return Math[r(324)](e/t)}}}loadImageDimensions(t){return new Promise((e,n)=>{const r=ft,o=new Image;o[r(286)]=()=>{const t=r;e({width:o[t(308)],height:o[t(235)]})},o[r(280)]=()=>{n(new Error("Failed to load image: "+t))},o[r(269)]=t})}[pt(300)](t,e,n){const r=pt,o=e/n;Math[r(312)](o-1)<.1?(t[r(257)].objectFit="cover",t[r(257)][r(244)]=r(243)):o>1.3?(t.style[r(320)]=r(284),t[r(257)].objectPosition=r(243),t.style[r(322)]="#f0f0f0"):(t.style[r(320)]=r(234),t[r(257)][r(244)]=r(243)),this[r(307)]&&console[r(246)](r(331)+t[r(257)][r(320)]+r(287)+o[r(298)](2))}async[pt(232)](t,e,n){const r=pt,o=document[r(301)](r(260));o.style[r(293)]=r(295),o.style[r(238)]=r(295),o[r(257)][r(329)]=r(272),o[r(257)][r(299)]=r(326),o[r(333)]=e.title||r(261),t[r(302)]=r(264);try{if(!e[r(297)])throw new Error("Image URL is not provided");const s=await this[r(259)](e[r(297)]),i=t[r(313)](),a=i[r(293)],c=i.height;this[r(307)]&&(console[r(246)]("📸 Banner image dimensions: "+s[r(293)]+"x"+s[r(238)]),console[r(246)]("📦 Banner container dimensions: "+a+"x"+c));const l=s[r(293)]/s[r(238)],d=a/c;return this[r(300)](o,l,d),o[r(269)]=e[r(297)],t.innerHTML="",t[r(282)](o),$[r(279)](o,e,n,()=>this[r(316)](),this[r(307)],r(271)),this.debug&&console[r(246)]("✅ Optimized banner image rendered for ad: "+e[r(258)]),o}catch(s){return console[r(285)]("❌ Failed to load optimized banner image:",s),e[r(297)]&&(o.src=e[r(297)],o.style.objectFit=r(234),o[r(257)][r(244)]=r(243),t[r(302)]="",t[r(282)](o),$.addClickEventForRenderer(o,e,n,()=>this[r(316)](),this[r(307)],r(271))),o}}}const mt=yt;function yt(t,e){const n=vt();return(yt=function(t,e){return n[t-=332]})(t,e)}!function(t){const e=yt,n=t();for(;;)try{if(206930===parseInt(e(333))/1*(parseInt(e(340))/2)+-parseInt(e(335))/3+parseInt(e(342))/4+-parseInt(e(334))/5*(-parseInt(e(341))/6)+-parseInt(e(343))/7+-parseInt(e(336))/8+parseInt(e(339))/9)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(vt);class It{static[mt(332)](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[mt(338)](t,e){const n=mt,r=e[n(337)]||e[n(344)]||"";t[n(337)]=r}}function vt(){const t=["2010092PYNxbu","title","createTextAdStyles","7808SIJXhd","95bHeFVR","1179132EkxBZy","1179024lBRlst","textContent","setTextAdContent","4418577WoLIdz","2Ucmzqn","85620nzIXBA","1058468XtWhAD"];return(vt=function(){return t})()}const bt=wt;function wt(t,e){const n=kt();return(wt=function(t,e){return n[t-=368]})(t,e)}function kt(){const t=["adstage-fade-slider-wrapper","touches","forEach","className","length","19334326KmnHfb","preventDefault","body","height: auto;","absolute","touchmove","adType",";\n transform: translateY(","removeChild","\n position: absolute;\n visibility: hidden;\n white-space: nowrap;\n top: -9999px;\n left: -9999px;\n ","height: 100%;",";\n left: ","style","includes","\n ","changedTouches","setProperty","35yDdTeQ","toLowerCase","width","140CnSQXs","33yDPbKz","addEventListener","string","entries","1291646QKsVdW",";\n ","translateY(0)","zIndex",";\n top: ","cssText","20px","495ikmztq","_id","push",";\n width: 100%;\n ","position",");\n transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);\n z-index: ","setTextAdContent","\n position: ","appendChild","createSimpleAdElement","auto","166760EJMvEi","createTextAdStyles","181222zFBPCt","abs","162212JJLtfi","createElement","translateY(-20px)","createTextTransitionContainer","div","mouseenter","touchstart","transform","left","hidden","clientY","data-adstage-slot-id","height","getBoundingClientRect","top","2821160jVRkeu","setAttribute","fit-content","mouseleave","Text","adstage-ad adstage-","autoSlideInterval","opacity","height: auto; min-height: fit-content;","relative","1130142yPSSyu","data-adstage-ad-id"];return(kt=function(){return t})()}!function(t){const e=wt,n=t();for(;;)try{if(704191===-parseInt(e(420))/1+-parseInt(e(440))/2*(parseInt(e(416))/3)+-parseInt(e(442))/4*(parseInt(e(415))/5)+-parseInt(e(388))/6*(-parseInt(e(412))/7)+parseInt(e(438))/8*(parseInt(e(427))/9)+parseInt(e(378))/10+parseInt(e(395))/11)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(kt);class Et{static[bt(436)](t,e){const n=bt,r=document.createElement(n(446));return r[n(393)]=n(383)+String(t[n(401)])[n(413)](),r[n(379)](n(389),e[n(428)]),r[n(379)](n(374),t.id),r[n(407)][n(425)]=It[n(439)](!0),It[n(433)](r,e),r}static[bt(445)](t,e,n,r,o=!1){const s=bt,i=t.height&&0!==t[s(375)]&&t[s(375)]!==s(437),a=document[s(443)](s(446));a[s(393)]=s(390);const c={position:s(387),overflow:s(372),display:"block"};if(!i&&(c[s(375)]=s(437),c.minHeight=s(380)),t[s(414)]&&0!==t[s(414)]){let e;e=typeof t[s(414)]===s(418)&&(t.width.includes("px")||t.width.includes("%"))?t[s(414)]:t[s(414)]+"px",c.width=e}if(t[s(375)]&&0!==t.height&&t.height!==s(437)&&i){let e;e="string"==typeof t[s(375)]&&(t.height[s(408)]("px")||t[s(375)][s(408)]("%"))?t[s(375)]:t[s(375)]+"px",c[s(375)]=e}Object[s(419)](c)[s(392)](([t,e])=>{const n=s;a[n(407)][n(411)](t,e)});const l=document.createElement(s(446));l[s(393)]="adstage-fade-slide-container",l[s(407)][s(425)]="\n position: relative;\n width: 100%;\n "+(i?"height: 100%;":s(386))+s(409);let d=null;const u=!t[s(414)]||0===t[s(414)],p=!t[s(375)]||0===t[s(375)]||void 0===t[s(375)]||t.height===s(437);if(u||p&&i){if(d=document[s(443)](s(446)),d.style[s(425)]=s(404),!u&&t[s(414)]){let e;e="string"==typeof t[s(414)]?t[s(414)][s(408)]("px")||t[s(414)][s(408)]("%")?t[s(414)]:t[s(414)]+"px":t.width+"px",d[s(407)][s(414)]=e,d.style.whiteSpace="normal"}document[s(397)].appendChild(d);let n=0,r=0;e[s(392)](e=>{const o=s,i=this[o(436)](t,e);d.appendChild(i);const a=i[o(376)]();a[o(414)]>n&&(n=a.width),a[o(375)]>r&&(r=a.height),d[o(403)](i)}),u&&n>0&&(a[s(407)][s(414)]=n+"px"),p&&r>0&&i&&(a[s(407)].height=r+"px"),document.body[s(403)](d)}const h=[];e[s(392)]((e,n)=>{const a=s,c=document[a(443)](a(446));c[a(393)]="adstage-fade-slide";const d=a(i?399:0===n?387:399);c[a(407)][a(425)]=a(434)+d+a(424)+(d===a(399)?"0":a(437))+a(406)+(d===a(399)?"0":a(437))+a(430)+a(i?405:398)+"\n display: flex;\n align-items: center;\n justify-content: flex-start;\n opacity: "+(0===n?"1":"0")+a(402)+(0===n?"0":a(426))+a(432)+(0===n?"2":"1")+a(421);const u=this[a(436)](t,e);$.addClickEventForSlider(u,e,t,r,o,a(382)),c[a(435)](u),l[a(435)](c),h[a(429)](c)});let f=0;const g=e[s(394)],m=1e3*(n?.[s(384)]||4),y=n=>{const a=s;n>=g?n=0:n<0&&(n=g-1);const c=h[f],l=h[n];!i&&("relative"===c.style[a(431)]&&(c[a(407)][a(431)]=a(399),c[a(407)][a(377)]="0",c.style.left="0"),l[a(407)][a(431)]=a(387),l.style[a(377)]="auto",l[a(407)][a(371)]=a(437)),c[a(407)][a(385)]="0",c.style[a(370)]=a(444),c[a(407)][a(423)]="1",l[a(407)][a(385)]="1",l[a(407)][a(370)]=a(422),l[a(407)][a(423)]="2",h.forEach((t,e)=>{const r=a;e!==n&&e!==f&&(t[r(407)][r(385)]="0",t.style[r(370)]="translateY(20px)",t[r(407)].zIndex="1",!i&&t.style.position===r(387)&&(t[r(407)].position=r(399),t.style[r(377)]="0",t[r(407)][r(371)]="0"))}),f=n,X.trackSlideViewable(e[f],t,f,r,o)};let I=setInterval(()=>{y(f+1)},m);return a.addEventListener(s(368),()=>{clearInterval(I)}),a[s(417)](s(381),()=>{I=setInterval(()=>{y(f+1)},m)}),Et.addTouchSupport(a,y,()=>f,g),a[s(435)](l),a}static addTouchSupport(t,e,n,r){const o=bt;let s=0,i=0,a=!1;t[o(417)](o(369),t=>{const e=o;s=t[e(391)][0].clientX,i=t.touches[0][e(373)],a=!0}),t[o(417)](o(400),t=>{a&&t[o(396)]()}),t.addEventListener("touchend",t=>{const r=o;if(!a)return;a=!1;const c=t[r(410)][0].clientX,l=t.changedTouches[0][r(373)],d=s-c,u=i-l;if(Math[r(441)](d)>Math.abs(u)&&Math[r(441)](d)>50){const t=n();e(d>0?t+1:t-1)}})}}const St=At;function xt(){const t=["100%","width","debug","1395528axcNBH","number","optimizedHeight","div","315296oqljiC","7305jPfeTl","config","11584InVOYm","height","parentElement","_id","1284273qFFofB","getElementById","appendChild","adstage-ad adstage-text-ad","className","innerHTML","✨ Single text ad rendered: ","length","TEXT","log","overflow","6TzCJMK","182rZSVeY","11hRzguL","178024uUDlxl","getDefaultHeight","slideInterval","style","containerId","adstage-text-content","renderMultipleAds","10caFsGb","102sqzKdt","maxLines","createElement","✨ Text transition created for slot: ","-webkit-box","413924vMBusH","addClickEventForRenderer","vertical","createEventTrackingCallback","display","hidden"," with "];return(xt=function(){return t})()}function At(t,e){const n=xt();return(At=function(t,e){return n[t-=328]})(t,e)}!function(t){const e=At,n=t();for(;;)try{if(143092===-parseInt(e(374))/1+-parseInt(e(353))/2+-parseInt(e(371))/3*(-parseInt(e(339))/4)+-parseInt(e(354))/5*(parseInt(e(334))/6)+parseInt(e(372))/7*(parseInt(e(356))/8)+parseInt(e(360))/9*(parseInt(e(333))/10)+parseInt(e(373))/11*(parseInt(e(349))/12))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(xt);class Ct extends dt{constructor(t=!1,n){super(e[At(368)],t,n)}[St(375)](){return"60px"}async renderAdElement(t,e){const n=St,r=document.getElementById(t[n(330)]);if(!r)return;const o=document[n(336)](n(352));o[n(364)]=n(363);const s=t[n(351)],i=r[n(358)]||r;if(s)o[n(329)][n(347)]=n(346),o[n(329)].height=String(s);else{const e=t[n(355)],r={width:e?.[n(347)],height:e?.[n(357)]},{width:s,height:a}=this.calculateAdSize(i,r,{debug:this[n(348)]});o.style[n(347)]=s,o[n(329)][n(357)]=a}const a=document[n(336)](n(352));a[n(364)]=n(331),a[n(329)].cssText=It.createTextAdStyles(!1),It.setTextAdContent(a,e);const c=t.config?.[n(335)];c&&typeof c===n(350)&&(a[n(329)][n(343)]=n(338),a[n(329)].webkitLineClamp=String(c),a[n(329)].webkitBoxOrient=n(341),a[n(329)][n(370)]=n(344)),o[n(362)](a),$[n(340)](o,e,t,()=>this[n(342)](),this[n(348)],"Text"),r[n(365)]="",r[n(362)](o),this[n(348)]&&console[n(369)](n(366)+e[n(359)])}async[St(332)](t,e){const n=St,r=document[n(361)](t[n(330)]);if(!r)throw new Error("Container not found: "+t.containerId);const o=this[n(342)](),s={autoSlideInterval:(t[n(355)]?.[n(328)]||5e3)/1e3,...t.config,optimizedHeight:t[n(351)],aspectRatio:t.aspectRatio},i=Et.createTextTransitionContainer(t,e,s,o,this.debug);i&&(r[n(365)]="",r[n(362)](i),this[n(348)]&&console[n(369)](n(337)+t.id+n(345)+e[n(367)]+" ads"))}}const Tt=Rt;function _t(){const t=["warn","position",'\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 ',"🎬 Final video settings:","imageUrl","VIDEO","mouseenter","renderVideoElementDirect","adstage-video-container","textContent","🎬 Autoplay completely failed:","rgba(0, 0, 0, 0.7)","setAttribute","error","block","749056bnDvfk","customControls","1436544nUEthk","height","🎬 Video can play, attempting autoplay...","debug","72uEFVxx"," !important;\n }\n video::-webkit-media-controls-timeline {\n display: ","Video","length","scale(1)","title",", loop: ","rgba(0, 0, 0, 0.9)","cssText","innerHTML","Video thumbnail","_id","3709594pWqTng","\n pointer-events: none;\n ","\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 ","adstage-video-mute-button","\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 ","adstage-video-default-controls","autoplay","Video fallback","config","🎬 Initial autoplay attempt after timeout...","🎬 Auto-play was prevented:","style","addClickEventForRenderer","getElementById",'\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 ',"🎬 Video metadata loaded, attempting autoplay...","loop","\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 ","width","controls","createEventTrackingCallback","relative","854147hRkPbv","className","appendChild","27335376DAhssD","🎬 Trying muted autoplay fallback...","src","disabled (default)","background","🎬 Video element created for ad: ","play","transform"," !important;\n }\n video::-webkit-media-controls-time-remaining-display {\n display: ","1876740PKdHNv","renderMultipleAds","hideVolumeSlider","objectFit","button","video","🔊 Video mute toggled: ","muted","canplay","4150653tOfERq","alt","div","none","head","addEventListener","display","catch","hideMuteButton","stopPropagation","enabled","🎬 Video config received:","🎬 Single video ad rendered: ","renderAdElement","containerId","log","playsinline"," (autoplay: "," !important;\n }\n video::-webkit-media-controls-volume-slider {\n display: ","🎬 User explicitly enabled controls, overriding default","img","videoUrl","🎬 Video data loaded, attempting autoplay...","hideCurrentTime"," !important;\n }\n ","🎬 Single video rendered for VIDEO slot: ","unmuted","hideRemainingTime","loadeddata","\n video::-webkit-media-controls-play-button {\n display: ","Video load failed:"," !important;\n }\n video::-webkit-media-controls-mute-button {\n display: ","preload","100%","contain","createElement","getDefaultHeight","⚠️ No video advertisements available for slot: ","paused"];return(_t=function(){return t})()}function Rt(t,e){const n=_t();return(Rt=function(t,e){return n[t-=364]})(t,e)}!function(t){const e=Rt,n=t();for(;;)try{if(940376===-parseInt(e(475))/1+parseInt(e(378))/2+-parseInt(e(421))/3+-parseInt(e(477))/4+-parseInt(e(412))/5+parseInt(e(366))/6*(-parseInt(e(400))/7)+parseInt(e(403))/8)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(_t);class Dt extends dt{constructor(t=!1,n){super(e[Rt(465)],t,n)}[Tt(457)](){return"360px"}async[Tt(434)](t,e){const n=Tt,r=document[n(391)](t[n(435)]);if(!r)return;const o=document[n(456)](n(423));o[n(401)]=n(468),o[n(389)][n(374)]=n(382),this[n(467)](o,e,t),r[n(375)]="",r.appendChild(o),this[n(365)]&&console[n(436)](n(433)+e[n(377)])}async[Tt(413)](t,e){const n=Tt,r=document.getElementById(t[n(435)]);if(!r)throw new Error("Container not found: "+t.containerId);if(e[n(369)]>0){const o=e[0],s=document[n(456)](n(423));s[n(401)]="adstage-video-container",s[n(389)].cssText="\n width: 100%;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n background: #000;\n border-radius: 8px;\n overflow: hidden;\n ",this[n(467)](s,o,t),r[n(375)]="",r[n(402)](s);const i=this[n(398)]();setTimeout(()=>{i(o[n(377)],t.id,a.VIEWABLE)},100),this[n(365)]&&console[n(436)](n(446)+t.id+" ("+o[n(377)]+")")}else this[n(365)]&&console.warn(n(458)+t.id)}renderVideoElementDirect(t,e,n){const r=Tt;t[r(389)][r(461)]=r(399);const o=document[r(456)](r(417));o.style[r(396)]=r(454),o[r(389)][r(478)]=r(454),o[r(389)][r(415)]=r(455),o[r(453)]="metadata";const s=n[r(386)];if(this.debug&&console[r(436)](r(432),s),o.controls=!1,o.autoplay=!1!==s?.[r(384)],o.muted=!0,o[r(394)]=!1!==s?.[r(394)],this[r(365)]&&console.log(r(463),{autoplay:o.autoplay,muted:o[r(419)],loop:o[r(394)],controls:o[r(397)]}),!1!==s?.playsinline&&o[r(472)](r(437),""),!0===s?.[r(397)]&&(o[r(397)]=!0,this[r(365)]&&console.log(r(440))),s?.hideControls)o[r(397)]=!1,o[r(389)].cssText+=r(379);else if(s?.[r(476)]){if(o[r(397)]){const t=document[r(456)]("style");t.textContent=r(450)+(s[r(476)].hidePlayButton?"none":r(474))+r(367)+(s.customControls.hideProgressBar?"none":r(474))+" !important;\n }\n video::-webkit-media-controls-current-time-display {\n display: "+(s[r(476)][r(444)]?r(424):r(474))+r(411)+(s[r(476)][r(448)]?r(424):r(474))+r(439)+(s.customControls[r(414)]?r(424):r(474))+r(452)+(s[r(476)][r(429)]?r(424):r(474))+" !important;\n }\n video::-webkit-media-controls-fullscreen-button {\n display: "+(s.customControls.hideFullscreenButton?r(424):"block")+r(445),document[r(425)].appendChild(t)}}else if(o[r(397)]){const t=document[r(456)](r(389));t.id=r(383),t[r(469)]=r(380),!document[r(391)](r(383))&&document[r(425)][r(402)](t)}this.debug&&console.log("🎬 Video controls setting:",o.controls?r(431):r(406));const i=document.createElement(r(416));i.className=r(381),i[r(389)][r(374)]=r(395),s?.hideControls&&(i[r(389)][r(427)]="none");const a=()=>{const t=r,e=t(462),n=t(392);i.innerHTML=o[t(419)]?e:n,i.title=o[t(419)]?"Click to unmute":"Click to mute"};if(a(),i[r(426)]("click",t=>{const e=r;t[e(430)](),o[e(419)]=!o[e(419)],a(),this.debug&&console[e(436)](e(418)+(o[e(419)]?e(419):e(447)))}),i[r(426)](r(466),()=>{const t=r;i[t(389)][t(407)]=t(373),i.style.transform="scale(1.1)"}),i[r(426)]("mouseleave",()=>{const t=r;i.style[t(407)]=t(471),i[t(389)][t(410)]=t(370)}),e.videoUrl){o[r(405)]=e[r(442)];const t=()=>{const t=r;o[t(384)]&&o.muted&&o[t(459)]&&o.play()[t(428)](e=>{const n=t;this.debug&&(console.warn(n(388),e),console[n(460)](n(404))),o[n(419)]=!0,o[n(409)]()[n(428)](t=>{const e=n;this.debug&&console[e(473)](e(470),t)})})};o[r(426)]("loadedmetadata",()=>{const e=r;this.debug&&console[e(436)](e(393)),t()}),o[r(426)](r(420),()=>{const e=r;this[e(365)]&&console[e(436)](e(364)),t()}),o[r(426)](r(449),()=>{const e=r;this[e(365)]&&console.log(e(443)),t()}),setTimeout(()=>{const e=r;this[e(365)]&&console[e(436)](e(387)),t()},100)}else if(e[r(464)]){const n=document.createElement(r(441));return n[r(405)]=e.imageUrl,n.style[r(396)]=r(454),n[r(389)][r(478)]=r(454),n.style.objectFit="contain",n[r(422)]=e[r(371)]||r(376),void t[r(402)](n)}$.addClickEventForRenderer(o,e,n,()=>this[r(398)](),this.debug,r(368)),o[r(426)](r(473),o=>{const s=r;if(console[s(473)](s(451),o),e[s(464)]){const r=document[s(456)](s(441));r[s(405)]=e.imageUrl,r[s(389)][s(396)]=s(454),r[s(389)][s(478)]=s(454),r[s(389)][s(415)]=s(455),r[s(422)]=e[s(371)]||s(376),$[s(390)](r,e,n,()=>this[s(398)](),this[s(365)],s(385)),t[s(375)]="",t.appendChild(r)}}),t.appendChild(o),t[r(402)](i),this.debug&&console[r(436)](r(408)+e[r(377)]+r(438)+o.autoplay+", muted: "+o[r(419)]+r(372)+o.loop+")")}}const Pt=Ut;function Lt(){const t=["style","222150yWwaps","advertisementEventTracker","renderAdElement","className","click","\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 ","appendChild","div","title","textContent","#2563eb","renderMultipleAds","\n width: 100%;\n height: 120px;\n margin-bottom: 12px;\n border-radius: 6px;\n overflow: hidden;\n background: #f3f4f6;\n ","alt","_blank","createElement","addEventListener","open","length","Learn More","18AWRgYf","): ","backgroundColor","img","🏠 Single native ad rendered: ","Native Advertisement","40124ayeJKK","\n margin: 0 0 8px 0;\n font-size: 16px;\n font-weight: 600;\n color: #111827;\n line-height: 1.3;\n ","4ycwtfz","debug","1553360OzinEE","log","imageUrl","warn","\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 ","linkUrl","942505RGhwiq","src","2902326DGgTqE","\n margin: 0 0 12px 0;\n font-size: 14px;\n color: #6b7280;\n line-height: 1.4;\n flex: 1;\n ","146259rOjMZK","976EHwyiw","innerHTML","cssText","adstage-ad adstage-native-ad","7616qoODYq","\n width: 100%;\n height: 100%;\n object-fit: cover;\n "];return(Lt=function(){return t})()}function Ut(t,e){const n=Lt();return(Ut=function(t,e){return n[t-=422]})(t,e)}!function(t){const e=Ut,n=t();for(;;)try{if(310465===parseInt(e(422))/1*(parseInt(e(464))/2)+-parseInt(e(444))/3+parseInt(e(424))/4*(-parseInt(e(432))/5)+parseInt(e(434))/6+-parseInt(e(441))/7*(parseInt(e(437))/8)+parseInt(e(436))/9+-parseInt(e(426))/10)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(Lt);class Ot extends dt{constructor(t=!1,n){super(e.NATIVE,t,n)}getDefaultHeight(){return"200px"}async[Pt(446)](t,e){const n=Pt,r=document.getElementById(t.containerId);if(!r)return;const o=document[n(459)]("div");if(o[n(447)]=n(440),o[n(443)][n(439)]=n(430),e.title){const t=document.createElement("h3");t[n(453)]=e.title,t[n(443)][n(439)]=n(423),o.appendChild(t)}if(e[n(453)]){const t=document.createElement("p");t[n(453)]=e.textContent,t[n(443)].cssText=n(435),o[n(450)](t)}if(e[n(428)]){const t=document.createElement(n(451));t[n(443)].cssText=n(456);const r=document[n(459)](n(467));r[n(433)]=e[n(428)],r[n(457)]=e[n(452)]||n(469),r[n(443)][n(439)]=n(442),t[n(450)](r),o[n(450)](t)}if(e[n(431)]){const t=document[n(459)]("button");t[n(453)]=n(463),t[n(443)].cssText=n(449),t[n(460)](n(448),()=>{const t=n;this[t(445)]&&console[t(427)]("Native click tracked for ad: "+e._id),window[t(461)](e[t(431)],t(458))}),t[n(460)]("mouseenter",()=>{const e=n;t[e(443)][e(466)]=e(454)}),t[n(460)]("mouseleave",()=>{const e=n;t[e(443)][e(466)]="#3b82f6"}),o.appendChild(t)}r[n(438)]="",r.appendChild(o),this[n(425)]&&console[n(427)](n(468)+e._id)}async[Pt(455)](t,e){const n=Pt;e[n(462)]>0?(await this[n(446)](t,e[0]),this.debug&&console[n(427)]("🏠 Native ad rendered (first of "+e[n(462)]+n(465)+t.id)):this[n(425)]&&console[n(429)]("⚠️ No native advertisements available for slot: "+t.id)}}const zt=Bt;function Bt(t,e){const n=Ft();return(Bt=function(t,e){return n[t-=199]})(t,e)}function Ft(){const t=["802330PaqqmD","style","\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 ","alt","\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 ","innerHTML","containerId","log","1076957TOQUhA","keydown","_blank","renderMultipleAds","mouseleave","parentNode","\n margin: 0 0 20px 0;\n font-size: 16px;\n color: #6b7280;\n line-height: 1.5;\n ","adstage-interstitial-content","className","400px","#3b82f6","addEventListener","1049358kFCkOm","\n margin: 0 0 12px 0;\n font-size: 24px;\n font-weight: 700;\n color: #111827;\n line-height: 1.3;\n ","title","🖼️ Interstitial ad rendered (first of ","🖼️ Interstitial ad closed","#6b7280","183RUPakE","fadeOut 0.3s ease-out forwards","30vCLCNB","textContent","backgroundColor","renderAdElement","adstage-interstitial-styles","closeInterstitial","209sZrQxr","312226lcpWZH","removeEventListener","mouseenter","div","_id","linkUrl","#374151","1455112EKrBgX","132074sGMVaI","#e5e7eb","target","img","removeChild","key","38644UeUCxy","getDefaultHeight","appendChild","🖼️ Interstitial ad rendered: ","src","imageUrl","INTERSTITIAL","color","\n width: 100%;\n max-height: 300px;\n object-fit: cover;\n border-radius: 8px;\n margin-bottom: 16px;\n ","createElement","warn","36bTUMqn","\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 ","Interstitial Advertisement","head","debug","): ","#f3f4f6","length","\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 ","cssText","getElementById","\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 ","click","button","animation"];return(Ft=function(){return t})()}!function(t){const e=Bt,n=t();for(;;)try{if(707472===-parseInt(e(204))/1+-parseInt(e(271))/2+parseInt(e(262))/3*(parseInt(e(210))/4)+-parseInt(e(264))/5*(-parseInt(e(256))/6)+parseInt(e(244))/7+-parseInt(e(203))/8*(-parseInt(e(221))/9)+parseInt(e(236))/10*(-parseInt(e(270))/11))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(Ft);class Mt extends dt{constructor(t=!1,n){super(e[Bt(216)],t,n)}[zt(211)](){return zt(253)}async[zt(267)](t,e){const n=zt;if(!document[n(231)](t[n(242)]))return;const r=document.createElement(n(199));r[n(252)]="adstage-interstitial-overlay",r.style.cssText=n(222);const o=document[n(219)](n(199));o[n(252)]=n(251),o[n(237)][n(230)]=n(229);const s=document[n(219)]("button");if(s[n(241)]="×",s[n(237)][n(230)]=n(238),s.addEventListener(n(233),()=>{this[n(269)](r)}),s[n(255)](n(273),()=>{const t=n;s[t(237)][t(266)]=t(205),s.style.color=t(202)}),s[n(255)](n(248),()=>{const t=n;s[t(237)][t(266)]=t(227),s.style[t(217)]=t(261)}),e[n(215)]){const t=document[n(219)](n(207));t[n(214)]=e[n(215)],t[n(239)]=e[n(258)]||n(223),t[n(237)][n(230)]=n(218),o[n(212)](t)}if(e.title){const t=document[n(219)]("h2");t[n(265)]=e[n(258)],t.style.cssText=n(257),o[n(212)](t)}if(e[n(265)]){const t=document[n(219)]("p");t.textContent=e[n(265)],t.style[n(230)]=n(250),o.appendChild(t)}if(e[n(201)]){const t=document[n(219)](n(234));t[n(265)]="Get Started",t.style[n(230)]=n(232),t[n(255)](n(233),()=>{const t=n;this.advertisementEventTracker&&console[t(243)]("Interstitial click tracked for ad: "+e._id),window.open(e[t(201)],t(246)),this[t(269)](r)}),t[n(255)](n(273),()=>{t[n(237)].backgroundColor="#2563eb"}),t.addEventListener(n(248),()=>{const e=n;t[e(237)][e(266)]=e(254)}),o[n(212)](t)}const i=t=>{const e=n;"Escape"===t[e(209)]&&(this[e(269)](r),document[e(272)]("keydown",i))};if(document[n(255)](n(245),i),r.addEventListener(n(233),t=>{const e=n;t[e(206)]===r&&this[e(269)](r)}),!document[n(231)](n(268))){const t=document[n(219)]("style");t.id="adstage-interstitial-styles",t.textContent=n(240),document[n(224)].appendChild(t)}o[n(212)](s),r[n(212)](o),document.body[n(212)](r),this.debug&&console[n(243)](n(213)+e[n(200)])}async[zt(247)](t,e){const n=zt;e[n(228)]>0?(await this[n(267)](t,e[0]),this.debug&&console.log(n(259)+e[n(228)]+n(226)+t.id)):this[n(225)]&&console[n(220)]("⚠️ No interstitial advertisements available for slot: "+t.id)}[zt(269)](t){const e=zt;t[e(237)][e(235)]=e(263),setTimeout(()=>{const n=e;t.parentNode&&t[n(249)][n(208)](t)},300),this.debug&&console[e(243)](e(260))}}const Nt=Vt;function Vt(t,e){const n=jt();return(Vt=function(t,e){return n[t-=214]})(t,e)}function jt(){const t=["createElement","toLowerCase","renderAdSlider","renderOptimizedBannerImage","12843824tCeaqs","6EbdTwb","get","11080fPBmhr","naturalHeight","initializeRenderers","objectFit","2880HgBJvZ","imageUrl","data-adstage-ad-id","⚠️ Container optimization is only supported for BANNER ads, got: ","log","8px","width","INTERSTITIAL","calculateOptimalContainerSize","div","renderAd","[AdRenderer] ","#f9f9f9","videoUrl","set"," renderers","height","style","100%","onerror","createPlaceholder","renderAdElement","renderers","9488024CViFJK","advertisementEventTracker","onload","getDefaultHeight","Failed to load image: ","cover","appendChild","createAdElement","config","TEXT","getRenderer","adType","img","getDefaultHeightForAdType","src","textContent","2287732ocytok","renderOptimizedBannerImage is only supported for BANNER ads","No advertisement to render","30523716wcOKlW","block","display","1px dashed #ccc","naturalWidth","calculateAdSize","debug","border","No renderer found for ad type: ","advertisement","optimizeContainerForBannerAds","1538443xOiFWv","video","padding","size","setAttribute","382251roCgNa","renderMultipleAds","className","warn","VIDEO","renderFallback","BANNER"];return(jt=function(){return t})()}!function(t){const e=Vt,n=t();for(;;)try{if(897746===-parseInt(e(238))/1+parseInt(e(224))/2+parseInt(e(243))/3+parseInt(e(257))/4*(parseInt(e(261))/5)+parseInt(e(255))/6*(parseInt(e(284))/7)+parseInt(e(254))/8+-parseInt(e(227))/9)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(jt);class Kt{constructor(t=!1,e){const n=Vt;this.renderers=new Map,this.debug=t,this[n(285)]=e||null,this[n(259)]()}[Nt(259)](){const t=Nt;this[t(283)][t(275)](e[t(249)],new gt(this[t(233)],this[t(285)])),this.renderers.set(e[t(217)],new Ct(this.debug,this[t(285)])),this[t(283)][t(275)](e[t(247)],new Dt(this[t(233)],this[t(285)])),this.renderers[t(275)](e.NATIVE,new Ot(this[t(233)],this.advertisementEventTracker)),this[t(283)].set(e[t(268)],new Mt(this[t(233)],this[t(285)])),this[t(233)]&&console[t(265)]("🏭 AdRenderer factory initialized with "+this[t(283)][t(241)]+t(276))}[Nt(215)](t,n){const r=Nt,o=this[r(218)](t[r(219)]),s=document[r(250)](r(270));s[r(245)]="adstage-ad adstage-"+String(t.adType)[r(251)](),s[r(242)](r(263),n._id),s[r(242)]("data-adstage-slot-id",t.id);const{width:i,height:a}=o[r(232)](s,t[r(216)]||{},n);switch(s[r(278)].width=i,s[r(278)][r(277)]=a,s[r(278)][r(229)]=r(228),t[r(219)]){case e[r(249)]:if(n[r(262)]){const t=document[r(250)](r(220));t.src=n.imageUrl,t[r(278)][r(267)]=r(279),t[r(278)][r(277)]=r(279),t[r(278)][r(260)]=r(289),s[r(214)](t)}break;case e.VIDEO:if(n[r(274)]){const t=document[r(250)](r(239));t[r(222)]=n.videoUrl,t.style[r(267)]=r(279),t[r(278)][r(277)]="100%",s[r(214)](t)}break;case e[r(217)]:if(n[r(223)]){const t=document.createElement("div");t[r(223)]=n.textContent||"",t[r(278)][r(240)]=r(266),s[r(214)](t)}break;default:s.style[r(234)]=r(230),s[r(278)].backgroundColor=r(273),s[r(223)]=t.adType+" Ad"}return s}[Nt(218)](t){const e=Nt,n=this[e(283)][e(256)](t);if(!n)throw new Error(e(235)+t);return n}createPlaceholder(t,e,n,r,o){const s=Nt;this[s(218)](n)[s(281)](t,e,r,o)}async[Nt(237)](t,n){const r=Nt;if(t.adType!==e[r(249)])return void(this[r(233)]&&console[r(246)](r(264)+t[r(219)]));const o=this.getRenderer(e[r(249)]);await o[r(237)](t,n)}async[Nt(252)](t,e){const n=Nt,r=this[n(218)](t[n(219)]);await r[n(244)](t,e)}async[Nt(271)](t){const e=Nt;if(!t[e(236)])throw new Error(e(226));const n=this[e(218)](t.adType);await n[e(282)](t,t[e(236)]),t.isLoaded=!0}async[Nt(282)](t,e){const n=Nt,r=this[n(218)](t.adType);await r[n(282)](t,e)}[Nt(248)](t){const e=Nt;this[e(218)](t[e(219)])[e(248)](t)}[Nt(221)](t){return this[Nt(218)](t).getDefaultHeight()}[Nt(232)](t,e,n,r){const o=Nt;return this[o(218)](e)[o(232)](t,n,r)}loadImageDimensions(t){return new Promise((e,n)=>{const r=Vt,o=new Image;o[r(286)]=()=>{const t=r;e({width:o[t(231)],height:o[t(258)]})},o[r(280)]=()=>{n(new Error(r(288)+t))},o.src=t})}async renderOptimizedBannerImage(t,n,r){const o=Nt;if(r.adType!==e[o(249)])throw new Error(o(225));const s=this[o(218)](e[o(249)]);return await s[o(253)](t,n,r)}async calculateOptimalContainerSize(t,n,r){const o=Nt;if(r!==e[o(249)]){return{width:"100%",height:this.getRenderer(r)[o(287)](),aspectRatio:16/9}}const s=this[o(218)](e[o(249)]);return await s[o(269)](t,n)}[Nt(265)](t,...e){const n=Nt;this[n(233)]&&console[n(265)](n(272)+t,...e)}}const Ht=Wt;function qt(){const t=["viewabilityTracker","then","length","data-adstage-slot-id","disconnect","🗑️ Ad slot destroyed: ","renderAd","log","auto-","🔍 Ad slot already cleaned up: ","apiKey","adRenderer"," ads for type: ","removedNodes","2502IDlUbI","ensureReady","height"," ads)","mutationObserver","banner","setupAutoCleanup","2959KtjTxs","error","API key not configured","loop","createAd","renderAdSlider","GET","✅ Simple viewable impression tracked for ad ","set","adType","_id","BANNER","getAttribute","json","from","Ad slot not found: ","INTERSTITIAL","trackAdvertisementEvent","video","getConfig","[data-adstage-slot-id]","setAttribute","default","2590292ZTuxBU","deviceType","createPlaceholder","✅ Ad loaded for slot: ","destroyModule","observe","Container not found: ","get","fetchAdData","undefined","debug","detail","📊 Fetched ","ms... (attempt ","_config","querySelectorAll","maxLines",". Retrying in ","739688uQrcpw","getSlotById","광고 생성 중 오류 발생:","playsinline","onClick","📊 Advertisement event tracking enabled for slot: ","renderAdElement","TEXT","advertisement","append","width","47180jWNLBN","1231330IMADJo","getAllSlots","advertisements","NATIVE","optimizeContainerForBannerAds","🔄 Retrying viewability tracking for slot: ","🚫 Advertisement not found with ID: ","delete","autoSlide"," (attempt ","🧹 Auto-cleanup: slot ","toString","adstage-","list","innerHTML","1298946MfOrqP","style","create","autoplay","adId","native","autoDestroy","createAdWithRetry","string","values","body","79944LdJKqa","🔍 Auto-cleanup MutationObserver enabled","containerId","Failed to refresh ad slot: ","5VDwFyF","_isReady","3AugqSu","auto","status","getElementById","interstitial","advertisementEventTracker","country","warn","handleViewableEvent","🎯 Ads module initialized (sync mode) with auto-cleanup","2303428wKswlk"," removed","startSimpleViewabilityTracking","Failed to fetch ad data: ","handleRemovedElement","Ads module not initialized. Call AdStage.init() first.",", filters:","config","100%","destroy","🔄 Ad slot refreshed: ","renderFallback","❌ Failed to track viewable impression:","now","49UjJcXq","slots","forEach","controls","init","🗑️ Ads module destroyed","muted","slideInterval","customControls","ELEMENT_NODE","language","refreshAdSlot","VIEWABLE","New advertisement viewable tracked for slot:","❌ Failed to load ad for slot: "];return(qt=function(){return t})()}function Wt(t,e){const n=qt();return(Wt=function(t,e){return n[t-=212]})(t,e)}!function(t){const e=Wt,n=t();for(;;)try{if(722327===-parseInt(e(350))/1+-parseInt(e(320))/2+-parseInt(e(237))/3*(-parseInt(e(247))/4)+-parseInt(e(235))/5*(-parseInt(e(220))/6)+parseInt(e(261))/7*(-parseInt(e(338))/8)+-parseInt(e(290))/9*(-parseInt(e(349))/10)+-parseInt(e(297))/11*(-parseInt(e(231))/12))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(qt);class Jt{constructor(){const t=Wt;this[t(236)]=!1,this[t(334)]=null,this[t(262)]=new Map,this.advertisementEventTracker=null,this[t(287)]=null,this[t(294)]=null}[Ht(265)](t){const e=Ht;this[e(334)]=t,this[e(242)]=new O(q.getBaseUrl(),t[e(286)],t[e(330)]||!1,this.slots),this[e(287)]=new Kt(t[e(330)]||!1,this[e(242)]),this[e(296)](),this._isReady=!0,t[e(330)]&&console.log(e(246))}isReady(){return this._isReady}[Ht(316)](){return this[Ht(334)]}[Ht(295)](t,n){const r=Ht;this[r(291)]();const o={width:n?.width||"100%",height:n?.[r(292)]||r(238),autoSlide:n?.autoSlide||!1,slideInterval:n?.[r(268)]||5e3,onClick:n?.[r(342)],adId:n?.[r(224)],language:n?.[r(271)],deviceType:n?.[r(321)],country:n?.country};return this[r(301)](t,e[r(308)],o)}text(t,n){const r=Ht;this[r(291)]();const o={maxLines:n?.[r(336)]||3,style:n?.[r(221)]||r(319),onClick:n?.onClick,adId:n?.[r(224)],language:n?.[r(271)],deviceType:n?.deviceType,country:n?.[r(243)]};return this[r(301)](t,e[r(345)],o)}[Ht(315)](t,n){const r=Ht;this[r(291)]();const o={width:n?.[r(348)]||640,height:n?.[r(292)]||360,autoplay:void 0===n?.autoplay||n[r(223)],muted:void 0===n?.[r(267)]||n[r(267)],loop:void 0===n?.[r(300)]||n[r(300)],playsinline:!1!==n?.[r(341)],controls:void 0!==n?.[r(264)]&&n[r(264)],hideControls:n?.hideControls||!1,customControls:n?.[r(269)],autoSlide:!1,maxAds:1,onClick:n?.[r(342)],...n?.[r(224)]&&{adId:n.adId}};return this[r(301)](t,e.VIDEO,o)}[Ht(225)](t,n){const r=Ht;return this[r(291)](),this.createAd(t,e[r(353)],n||{})}[Ht(241)](t,n){const r=Ht;return this[r(291)](),this[r(301)](t,e[r(313)],n||{})}refresh(t){const e=Ht;this[e(291)]();const n=this[e(262)][e(327)](t);if(!n)throw new Error(e(312)+t);this.refreshAdSlot(n),this[e(334)]?.[e(330)]&&console[e(283)](e(257)+t)}[Ht(256)](t){const e=Ht;this[e(291)]();const n=this[e(262)].get(t);if(!n)return void(this[e(334)]?.debug&&console[e(283)](e(285)+t));n[e(276)]&&n[e(276)][e(256)]();const r=document[e(240)](n[e(233)]);r&&(r[e(219)]=""),this[e(262)][e(212)](t),this[e(334)]?.debug&&console[e(283)](e(281)+t)}[Ht(351)](){const t=Ht;return this[t(291)](),Array[t(311)](this[t(262)][t(229)]())}[Ht(339)](t){const e=Ht;return this.ensureReady(),this.slots[e(327)](t)||null}[Ht(301)](t,e,n){const r=Ht;if(!this[r(334)]?.apiKey)throw new Error("API key not configured");const o=r(217)+e+"-"+Date[r(260)]()+"-"+Math.random().toString(36).substr(2,9);return this[r(227)](t,e,n,o,0),o}async[Ht(227)](t,e,n,r,o){const s=Ht,i=[0,50,100,200,500];let a,c=null;if(typeof t===s(228)){if(a=t,c=document[s(240)](t),!c)return o<4?(this._config?.debug&&console[s(244)](s(326)+t+s(337)+i[o+1]+s(333)+(o+1)+"/5)"),void setTimeout(()=>{this[s(227)](t,e,n,r,o+1)},i[o+1])):void console[s(298)]("Container not found after 5 attempts: "+t)}else c=t,a=c.id||s(284)+r,!c.id&&(c.id=a);try{this.createAdInternal(a,e,n,r,c)}catch(t){console[s(298)](s(340),t)}}createAdInternal(t,n,r,o,s){const i=Ht;s[i(318)](i(279),o),this[i(287)]?.[i(322)](s,o,n,r,this._config);const a={id:o,containerId:t,adType:n,width:r[i(348)]||i(255),height:r[i(292)]||(n===e[i(345)]?"auto":250),isLoaded:!1,isVisible:!1,refreshRate:0,lazyLoad:!1,targeting:{},advertisement:void 0,config:{type:n,...r},load:async()=>this[i(328)](n,r)[i(277)](t=>t[0]||null),render:t=>this.adRenderer?.[i(344)](a,t),refresh:async()=>this.refreshAdSlot(a),destroy:()=>this[i(256)](o)};this[i(262)][i(305)](o,a),this.loadAdContentInBackground(a),this[i(242)]&&this[i(334)]?.debug&&console[i(283)](i(343)+o)}async loadAdContentInBackground(t){const n=Ht;try{const r=await this[n(328)](t[n(306)],t.config);if(!r||0===r[n(278)])return void this[n(287)]?.renderFallback(t);t.adType===e.BANNER&&r[n(278)]>0&&await(this[n(287)]?.[n(354)](t,r)),r[n(278)]>1||t[n(254)]?.[n(213)]?(await(this[n(287)]?.[n(302)](t,r)),this[n(334)]?.[n(330)]&&console.log("🎠 Slider will handle VIEWABLE events for "+r[n(278)]+" ads automatically")):(t[n(346)]=r[0],await(this[n(287)]?.renderAdElement(t,r[0])),this[n(249)](t,r[0])),t.isLoaded=!0,this._config?.debug&&console[n(283)](n(323)+t.id+" ("+r.length+n(293))}catch(e){console[n(298)](n(275)+t.id,e),this[n(287)]?.[n(258)](t)}}[Ht(249)](t,e){const n=(r=0)=>{const o=Wt,s=document.getElementById(t.id);if(!s)return void(r<5?(setTimeout(()=>n(r+1),300),this[o(334)]?.[o(330)]&&console.log(o(355)+t.id+o(214)+(r+1)+")")):console[o(244)]("❌ Failed to find element for viewability tracking: "+t.id));const i=new M(s,async()=>{const n=o;await this[n(245)](e,t)});t[o(276)]=i,this[o(334)]?.[o(330)]&&console[o(283)]("🎯 Simple viewability tracking started for slot: "+t.id+" (element found)")};n()}async handleViewableEvent(t,e){const n=Ht;try{this[n(242)]&&(await this.advertisementEventTracker[n(314)](t[n(307)],e.id,a[n(273)]),this[n(334)]?.[n(330)]&&console[n(283)](n(304)+t._id))}catch(t){console[n(298)](n(259),t)}}async fetchAdData(t,e){const n=Ht;if(!this[n(334)]?.apiKey)throw new Error(n(299));if(e[n(224)]){const t=""+q.advertisements[n(331)](e[n(224)]),r=await fetch(t,{method:n(303),headers:D[n(222)](this._config.apiKey)});if(!r.ok){if(404===r[n(239)])return console[n(244)](n(356)+e[n(224)]),[];throw new Error(n(250)+r.status)}const o=await r[n(310)]();return this[n(334)]?.debug&&console[n(283)]("📊 Fetched specific ad with ID: "+e.adId,o),[o]}const r=new URLSearchParams;r[n(347)](n(306),t),e.language&&r.append(n(271),e[n(271)]),e[n(321)]&&r[n(347)](n(321),e[n(321)]),e[n(243)]&&r[n(347)](n(243),e[n(243)]);const o=q[n(352)][n(218)]()+"?"+r[n(216)](),s=await fetch(o,{method:n(303),headers:D[n(222)](this[n(334)][n(286)])});if(!s.ok)throw new Error(n(250)+s[n(239)]);const i=(await s[n(310)]())[n(352)]||[];return this[n(334)]?.debug&&console[n(283)](n(332)+i.length+n(288)+t+n(253),{language:e.language,deviceType:e[n(321)],country:e.country}),i}async[Ht(272)](t){const e=Ht;try{const n=await this[e(328)](t[e(306)],t[e(254)]||{});n&&n[e(278)]>0&&(t[e(346)]=n[0],await(this[e(287)]?.[e(282)](t)),this[e(242)]&&console[e(283)](e(274),t.id))}catch(n){console[e(298)](e(234)+t.id,n)}}[Ht(291)](){const t=Ht;if(!this[t(236)])throw new Error(t(252))}[Ht(296)](){const t=Ht;"undefined"!=typeof window&&typeof document!==t(329)&&(this.mutationObserver&&this[t(294)][t(280)](),this.mutationObserver=new MutationObserver(e=>{const n=t;e[n(263)](t=>{const e=n;t[e(289)][e(263)](t=>{const n=e;t.nodeType===Node[n(270)]&&this[n(251)](t)})})}),this[t(294)][t(325)](document[t(230)],{childList:!0,subtree:!0}),this._config?.[t(330)]&&console.log(t(232)))}[Ht(251)](t){const e=Ht,n=t[e(309)](e(279));if(n)return void this[e(226)](n);t[e(335)](e(317))[e(263)](t=>{const n=e,r=t.getAttribute(n(279));r&&this[n(226)](r)})}[Ht(226)](t){const e=Ht,n=this[e(262)][e(327)](t);if(n)try{n[e(276)]&&n[e(276)][e(256)](),this[e(262)][e(212)](t),this[e(334)]?.debug&&console[e(283)](e(215)+t+e(248))}catch(n){this[e(334)]?.[e(330)]&&console[e(244)]("Auto-cleanup failed for slot "+t+":",n)}}[Ht(324)](){const t=Ht,e=this._config?.[t(330)];this[t(294)]&&(this[t(294)][t(280)](),this[t(294)]=null),this[t(262)].clear(),this[t(242)]=null,this[t(287)]=null,this._isReady=!1,this._config=null,e&&console.log(t(266))}}var Yt=Xt;function Xt(t,e){var n=Gt();return(Xt=function(t,e){return n[t-=255]})(t,e)}function Gt(){var t=["modules","2wwefMa","10755kAjvsG","getApiEndpoint","🔄 Config updated","log","1546766yplQfG","_organizationInfo","debug","includes","isModuleEnabled","getOrganizationInfo","ads","development","getBaseUrl","493520ElTINH","baseUrl","3884277zFHJzk","create","_config","5710910EKiGbu","isDebugMode","3918vZXRlh","Config module not initialized","events","328MyWXuF","2301560iVtaWf","getApiHeaders","getEnabledModules","322CGgdKd","init","_isReady","✅ Config module initialized (sync mode)"];return(Gt=function(){return t})()}!function(t){for(var e=Xt,n=t();;)try{if(921733===-parseInt(e(283))/1+parseInt(e(278))/2*(parseInt(e(261))/3)+parseInt(e(259))/4+parseInt(e(270))/5+-parseInt(e(266))/6*(parseInt(e(273))/7)+parseInt(e(269))/8*(parseInt(e(279))/9)+parseInt(e(264))/10)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(Gt);class Zt{constructor(){var t=Xt;this[t(275)]=!1,this[t(263)]=null,this[t(284)]=null}[Yt(274)](t){var e=Yt;this[e(263)]={timeout:3e4,debug:!1,modules:[e(256),e(268),"config"],...t},t.baseUrl&&q.setBaseUrl(t[e(260)]),this[e(275)]=!0,t[e(285)]&&console[e(282)](e(276),{modules:this[e(263)][e(277)],endpoint:q.getBaseUrl(),mode:e(257)})}isReady(){return this[Yt(275)]}getConfig(){return this[Yt(263)]}[Yt(255)](){return this[Yt(284)]}[Yt(280)](){return q[Yt(258)]()}[Yt(265)](){var t=Yt;return this[t(263)]?.[t(285)]||!1}[Yt(272)](){var t=Yt;return this[t(263)]?.[t(277)]||[]}[Yt(287)](t){var e=Yt;return this[e(272)]()[e(286)](t)}updateConfig(t){var e=Yt;if(!this[e(263)])throw new Error(e(267));this[e(263)]={...this._config,...t},this[e(265)]()&&console[e(282)](e(281),t)}[Yt(271)](){var t=Yt;if(!this[t(263)]?.apiKey)throw new Error("API key not available");return D[t(262)](this[t(263)].apiKey)}}const Qt=te;function $t(){const t=["Android","662562IYJHNO","isMobile","other","0x0","3HZUGLy","mobile","1555345bSzybU","Mobile Web","ko-KR","isBrowser","getDeviceInfo","android","69026uCKopr","mapPlatformForEvents","height","1119342IBLhZC","SSR","onLine","5bsldfU","getViewportInfo","32344WkwpyP","40dbYJDb","Desktop Web","clearDeviceInfo","getUserDeviceInfo","toLowerCase","desktop","getAutoDetectedDeviceInfo","getDetailedInfo","platform","width","tablet","251320FXkRXk","27ZMAcYg","200652GLnvbi","iOS","userAgent","test","_userProvidedDeviceInfo","ios","getPlatform"];return($t=function(){return t})()}function te(t,e){const n=$t();return(te=function(t,e){return n[t-=110]})(t,e)}!function(t){const e=te,n=t();for(;;)try{if(153008===-parseInt(e(110))/1+parseInt(e(144))/2+parseInt(e(136))/3*(-parseInt(e(124))/4)+-parseInt(e(150))/5*(parseInt(e(132))/6)+-parseInt(e(147))/7+parseInt(e(122))/8*(-parseInt(e(123))/9)+parseInt(e(111))/10*(parseInt(e(138))/11))break;n.push(n.shift())}catch(t){n.push(n.shift())}}($t);class ee{static[Qt(142)](){const t=Qt;return{...ee[t(117)](),...ee[t(128)]}}static[Qt(117)](){const t=Qt;if(!I.isBrowser())return{category:t(134),platform:"SSR",model:"SSR",osVersion:t(148)};const e=navigator[t(126)][t(115)]();let n=t(116);/tablet|ipad/[t(127)](e)?n=t(121):A[t(133)]()&&(n=t(137));const r=A[t(130)]();return{category:n,platform:ee[t(145)](r),model:navigator[t(119)],osVersion:navigator.platform}}static setDeviceInfo(t){const e=Qt;ee[e(128)]={...ee[e(128)],...t}}static setDeviceProperty(t,e){ee[Qt(128)][t]=e}static[Qt(113)](){ee._userProvidedDeviceInfo={}}static[Qt(114)](){return{...ee[Qt(128)]}}static mapPlatformForEvents(t){const e=Qt;switch(t){case e(129):return e(125);case e(143):return e(131);case"web":return e(139);case e(116):return e(112);default:return"Unknown"}}static[Qt(118)](){const t=Qt;if(!I[t(141)]())return{userAgent:t(148),language:t(140),platform:t(148),cookieEnabled:!1,onLine:!0,screenResolution:t(135),viewportSize:t(135)};const e=I[t(151)]();return{userAgent:navigator.userAgent,language:navigator.language||"ko-KR",platform:navigator.platform,cookieEnabled:navigator.cookieEnabled,onLine:navigator[t(149)],screenResolution:screen[t(120)]+"x"+screen.height,viewportSize:e[t(120)]+"x"+e[t(146)]}}}ee[Qt(128)]={};const ne=re;function re(t,e){const n=oe();return(re=function(t,e){return n[t-=349]})(t,e)}function oe(){const t=["16AEMKTp","127071mikJFU","46692WDaGFe","getUserInfo","estimateLocation","split","1030byQQxV","3mAyvts","22963743RlpqRq","1760154YuKJFU","4418ILUsoU","setUserProperties","ko-KR","DateTimeFormat","337EMRZAd","timeZone","2001052YFNFJh","getBaseUserInfo","setUserProperty","isBrowser","_userProperties","getCurrentUserProperties","language","clearUserProperties","2213995viwkbC","extractCountryFromLanguage"];return(oe=function(){return t})()}!function(t){const e=re,n=t();for(;;)try{if(391299===-parseInt(e(351))/1*(-parseInt(e(373))/2)+parseInt(e(370))/3*(parseInt(e(353))/4)+parseInt(e(361))/5+parseInt(e(372))/6+parseInt(e(364))/7*(-parseInt(e(363))/8)+-parseInt(e(365))/9*(-parseInt(e(369))/10)+-parseInt(e(371))/11)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(oe);class se{static[ne(366)](){const t=ne;return{...se[t(354)](),...se[t(357)]}}static[ne(354)](){const t=ne;if(!I[t(356)]())return{language:t(349),country:"KR"};const e=navigator[t(359)]||"ko-KR";return{language:e,country:se[t(362)](e)}}static[ne(362)](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[ne(368)]("-")[0]]||"KR"}static[ne(374)](t){const e=ne;se._userProperties={...se[e(357)],...t}}static[ne(355)](t,e){se[ne(357)][t]=e}static[ne(360)](){se[ne(357)]={}}static[ne(358)](){return{...se[ne(357)]}}static[ne(367)](){const t=ne;if(!I[t(356)]())return{timezone:"UTC",estimatedCountry:"KR"};const e=Intl[t(350)]().resolvedOptions()[t(352)];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"}}}se._userProperties={};const ie=ce;function ae(){const t=["tiktok.ads","hasParams","warn","keys","length","twclid","1033828wTKMeh","adGroup","campaign","utm_source","stringify","nclid","adstage_last_click_id","some","ALL_KEYS","hasClickId","adCreative","parse","clear","adstage_click_event_sent","get","campaign_id","creativeId","ad_creative","google.ads","utm_term","microsoft.ads","6oExjXr","CLICK_ID_KEYS","search","adstage_referrer","ttclid","shouldSendClickEvent","UTM_KEYS","markClickEventSent","ad_group","gclid","12353571NUZBeU","twitter.ads","fbclid","adstage_tracking_params","utm_medium","location","campaignId","setItem","43820733YlFDPq","store","toAttributionObject","getItem","ad_group_id","linkedin.ads","utm_campaign","8WWWHFc","utm_content","9145160fsYzBr","STORAGE_KEY","channel","adstage","CAMPAIGN_KEYS","1076552UAXlZT","Failed to store tracking params:","captureFromUrl","isClickEventSent","3401665xhjmuo","liclid","2XwVBuC","203daLnWC","true","term","msclkid","42426iifnbt","creative_id","undefined"];return(ae=function(){return t})()}function ce(t,e){const n=ae();return(ce=function(t,e){return n[t-=316]})(t,e)}!function(t){const e=ce,n=t();for(;;)try{if(725742===-parseInt(e(329))/1*(parseInt(e(343))/2)+parseInt(e(364))/3*(parseInt(e(323))/4)+-parseInt(e(327))/5+-parseInt(e(334))/6*(-parseInt(e(330))/7)+-parseInt(e(316))/8*(parseInt(e(374))/9)+-parseInt(e(318))/10+parseInt(e(382))/11)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(ae);class le{static[ie(325)](){const t=ie;if("undefined"==typeof window)return null;const e=new URLSearchParams(window[t(379)][t(366)]),n={};let r=!1;const o=e[t(357)](t(367));if(o)try{const e=decodeURIComponent(o),s=new URLSearchParams(e);for(const e of le[t(351)]){const t=s.get(e);t&&(n[e]=t,r=!0)}s[t(357)](t(321))===t(331)&&(r=!0)}catch(e){console[t(339)]("Failed to parse adstage_referrer:",e)}for(const o of le[t(351)]){if(n[o])continue;const s=e[t(357)](o);s&&(n[o]=s,r=!0)}return r?(n.channel||(n[t(373)]?n[t(320)]=t(361):n[t(376)]?n[t(320)]="meta.ads":n[t(368)]?n[t(320)]=t(337):n[t(348)]?n[t(320)]="naver.searchad":n[t(328)]?n.channel=t(387):n[t(333)]?n[t(320)]=t(363):n[t(342)]&&(n[t(320)]=t(375))),le[t(383)](n),n):null}static store(t){const e=ie;if(typeof window!==e(336))try{const n={...le[e(357)](),...t},r=JSON[e(347)](n);try{sessionStorage[e(381)](le.STORAGE_KEY,r)}catch(t){}try{localStorage[e(381)](le[e(319)],r)}catch(t){}}catch(t){console.warn(e(324),t)}}static[ie(357)](){const t=ie;if("undefined"==typeof window)return null;try{const e=sessionStorage?.[t(385)](le[t(319)]);if(e)return JSON.parse(e)}catch(t){}try{const e=localStorage?.[t(385)](le[t(319)]);if(e)return JSON[t(354)](e)}catch(t){}return null}static[ie(355)](){const t=ie;if(typeof window!==t(336)){try{sessionStorage?.removeItem(le[t(319)])}catch(t){}try{localStorage?.removeItem(le[t(319)])}catch(t){}}}static[ie(338)](){const t=ie,e=le[t(357)]();return null!==e&&Object.keys(e)[t(341)]>0}static[ie(352)](){const t=ie,e=le[t(357)]();return!!e&&le[t(365)][t(350)](t=>e[t])}static[ie(369)](){const t=ie;if(typeof window===t(336))return!1;const e=le[t(357)]();if(!e||!le.hasClickId())return!1;const n=e[t(373)]||e.fbclid||e[t(368)]||e.nclid||e.liclid||e[t(333)]||e[t(342)];if(!n)return!1;return n!==sessionStorage.getItem("adstage_last_click_id")&&(sessionStorage[t(381)](t(349),n),!0)}static[ie(371)](){const t=ie;typeof window!==t(336)&&sessionStorage[t(381)](t(356),t(331))}static[ie(326)](){const t=ie;return"undefined"!=typeof window&&sessionStorage[t(385)]("adstage_click_event_sent")===t(331)}static[ie(384)](){const t=ie,e=le[t(357)]();if(!e)return null;const n={};return e[t(373)]&&(n[t(373)]=e[t(373)]),e[t(376)]&&(n[t(376)]=e.fbclid),e[t(368)]&&(n.ttclid=e.ttclid),e.nclid&&(n.nclid=e.nclid),e[t(320)]&&(n.channel=e[t(320)]),e[t(345)]&&(n[t(345)]=e[t(345)]),e[t(358)]&&(n[t(380)]=e[t(358)]),e[t(372)]&&(n[t(344)]=e[t(372)]),e[t(386)]&&(n.adGroupId=e[t(386)]),e[t(360)]&&(n[t(353)]=e[t(360)]),e.creative_id&&(n[t(359)]=e[t(335)]),e[t(332)]&&(n[t(332)]=e.term),e[t(346)]&&(n[t(346)]=e[t(346)]),e[t(378)]&&(n[t(378)]=e[t(378)]),e[t(388)]&&(n[t(388)]=e[t(388)]),e[t(317)]&&(n[t(317)]=e[t(317)]),e.utm_term&&(n[t(362)]=e.utm_term),Object[t(340)](n)[t(341)]>0?n:null}}le[ie(319)]=ie(377),le.CLICK_ID_KEYS=["gclid",ie(376),ie(368),ie(348),ie(328),ie(333),ie(342)],le[ie(322)]=[ie(345),ie(358),ie(372),ie(386),ie(360),ie(335),ie(332)],le[ie(370)]=[ie(346),"utm_medium","utm_campaign",ie(317),"utm_term"],le[ie(351)]=[...le[ie(365)],...le[ie(322)],...le.UTM_KEYS];const de=ue;function ue(t,e){const n=he();return(ue=function(t,e){return n[t-=324]})(t,e)}!function(t){const e=ue,n=t();for(;;)try{if(342616===-parseInt(e(344))/1*(-parseInt(e(369))/2)+-parseInt(e(359))/3+parseInt(e(358))/4+parseInt(e(337))/5+-parseInt(e(380))/6+parseInt(e(390))/7*(parseInt(e(356))/8)+-parseInt(e(396))/9)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(he);class pe{constructor(){this._isReady=!1,this._config=null}[de(349)](t){const e=de;this[e(334)]=t,this._isReady=!0,t[e(363)]&&console[e(335)](e(377))}[de(391)](){return this[de(355)]}[de(376)](){return this[de(334)]}setUserProperties(t){const e=de;se.setUserProperties(t),this[e(334)]?.[e(363)]&&console[e(335)](e(342),t)}getUserProperties(){return se.getCurrentUserProperties()}setDeviceInfo(t){const e=de;ee[e(329)](t),this[e(334)]?.[e(363)]&&console[e(335)](e(332),t)}[de(345)](t,e){const n=de;ee[n(345)](t,e),this[n(334)]?.[n(363)]&&console[n(335)](n(372),t,e)}[de(340)](){const t=de;ee[t(340)](),this[t(334)]?.debug&&console[t(335)](t(333))}[de(388)](){return ee.getUserDeviceInfo()}[de(378)](){return ee[de(378)]()}[de(362)](){return se.getUserInfo()}[de(394)](){return se.getCurrentUserProperties()}async track(t,e){const n=de;if(this[n(355)])if(this._config?.[n(354)])try{const r=this[n(370)]();if(r){const o={eventName:t,sdkVersion:w(),device:ee[n(378)](),user:se[n(362)](),attributionId:r,params:e||{}};return await this[n(326)](o),void(this[n(334)].debug&&console.log(n(387),t,r))}const o=le[n(368)](),s={eventName:t,sdkVersion:w(),device:ee[n(378)](),user:se.getUserInfo(),...o&&{attribution:o},params:e||{}};await this[n(326)](s),this[n(334)].debug&&(console[n(335)](n(347),t,e),o&&console[n(335)](n(366),o))}catch(r){console[n(350)](n(379),r),this[n(334)][n(363)]&&console[n(350)](n(383),{eventName:t,properties:e})}else console.warn(n(330));else console[n(371)]("Events module not initialized. Call AdStage.init() first.")}async registerAttribution(t){const e=de;if(!this[e(355)])return console.warn(e(381)),null;if(!this[e(334)]?.[e(354)])return console.warn("API key not configured for attribution registration."),null;try{const n=le[e(392)]();if(!n||0===Object[e(339)](n)[e(373)])return this[e(334)].debug&&console[e(335)](e(352)),null;const r=await this[e(375)]({deviceId:t,referrerParams:n});if(this._config[e(363)]&&console[e(335)](e(343),r),r[e(328)]){try{localStorage[e(360)](e(357),r[e(328)])}catch(t){}try{sessionStorage[e(360)](e(357),r[e(328)])}catch(t){}}return r}catch(t){return console[e(350)](e(353),t),null}}getAttributionId(){const t=de;if(typeof window===t(365))return null;try{const e=sessionStorage[t(331)](t(357));if(e)return e}catch(t){}try{return localStorage.getItem("adstage_attribution_id")}catch(t){}return null}async[de(367)](t,e){return this[de(348)](t,e)}async[de(326)](t){const e=de,n={...D[e(341)](this[e(334)][e(354)]),"Content-Type":e(384)};this[e(334)]?.debug&&(console[e(335)](e(385),n),console[e(335)](e(346),q[e(386)][e(348)]()),console[e(335)](e(336),t));const r=await fetch(q[e(386)][e(348)](),{method:e(325),headers:n,body:JSON.stringify(t)});if(!r.ok){const t=await r.text();throw console[e(350)](e(364),t),new Error(e(324)+r[e(351)]+" "+r[e(338)])}}async[de(375)](t){const e=de,n={...D[e(341)](this._config[e(354)]),"Content-Type":"application/json"};this[e(334)]?.[e(363)]&&(console[e(335)]("🔑 Attribution request headers:",n),console[e(335)](e(382),q[e(386)][e(389)]()),console[e(335)](e(395),t));const r=await fetch(q[e(386)][e(389)](),{method:e(325),headers:n,body:JSON[e(374)](t)});if(!r.ok){const t=await r[e(393)]();throw console[e(350)](e(364),t),new Error(e(361)+r[e(351)]+" "+r[e(338)])}return r[e(327)]()}}function he(){const t=["track","init","error","status","⏭️ No tracking parameters found, skipping attribution registration","❌ Failed to register attribution:","apiKey","_isReady","85024bqLjCJ","adstage_attribution_id","2632992YYeuBP","76881Kobzgx","setItem","Attribution registration failed: ","getUserInfo","debug","❌ API Error Response:","undefined","📊 Attribution included:","trackWithAttributionId","toAttributionObject","323716bDTDxw","getAttributionId","warn","📱 Device property set:","length","stringify","sendAttributionToServer","getConfig","📊 Events module initialized","getDeviceInfo","❌ Failed to track event:","3454896NnWqhq","Events module not initialized. Call AdStage.init() first.","📡 Attribution request URL:","Event data:","application/json","🔑 Request headers:","events","✅ Event tracked with attribution ID:","getUserDeviceInfo","registerAttribution","427OucEgu","isReady","get","text","getCurrentUserProperties","📦 Attribution request body:","9287802KetDzk","Event tracking failed: ","POST","sendEventToServer","json","attributionId","setDeviceInfo","API key not configured for event tracking.","getItem","📱 Device info set:","📱 User provided device info cleared","_config","log","📦 Request body:","919535nnGfos","statusText","keys","clearDeviceInfo","create","👤 User properties set:","✅ Attribution registered:","3iPJPnu","setDeviceProperty","📡 Request URL:","✅ Event tracked:"];return(he=function(){return t})()}const fe=me;function ge(){const t=["log","from","313762TjZbll","clearAdViewable","generateDeviceId","AdStage not initialized. Call AdStage.init() first.","search","events","debug","reset","4onKOBw","264531VGtcID","toString","setItem","_config","captureFromUrl","substring","❌ Failed to register attribution:","API key is required for AdStage initialization","1588468ojeuXX","setBaseUrl","now","web-","✅ AdStage Debug: 광고 ","then","❌ Failed to auto-track click event:","❌ Error in click event auto-tracking:","abs","userAgent",")의 viewable 추적 초기화됨","ads","_isInitialized","2935675uQjjuY","function","getInstance","replace","track","toISOString","getTimezoneOffset","adstage_device_id","hash","config","viewableTracker","web","4349752YXgKTc","channel","hasClickId","⏭️ Skipping click event (duplicate or no click ID)","tracking_params","catch","18sRNuhB","shouldSendClickEvent","✅ Auto-tracked click event with tracking params:","markClickEventSent","warn","hardwareConcurrency","registerAttribution","clear","adstage_attribution_id","init","apiKey","AdStage.events accessed before initialization","click","width","🚀 AdStage SDK initialized (sync mode)","attributionId","✅ Attribution registered:","instance","join","🔍 Should send click event:","16646710qslZnJ","...","668871jYBBgV","baseUrl","toAttributionObject","undefined","error","get","AdStage.config accessed before initialization","📊 Tracking parameters captured:","height","10nRBcto"];return(ge=function(){return t})()}function me(t,e){const n=ge();return(me=function(t,e){return n[t-=295]})(t,e)}!function(t){const e=me,n=t();for(;;)try{if(533373===parseInt(e(341))/1+-parseInt(e(338))/2*(-parseInt(e(350))/3)+parseInt(e(349))/4*(-parseInt(e(371))/5)+parseInt(e(307))/6*(-parseInt(e(358))/7)+-parseInt(e(301))/8+-parseInt(e(329))/9+parseInt(e(327))/10)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(ge);class ye{constructor(){const t=me;this[t(370)]=!1,this[t(353)]=null,this[t(298)]=new Zt,this[t(369)]=new Jt,this[t(346)]=new pe}static[fe(316)](t){const e=fe;!ye[e(324)]&&(ye[e(324)]=new ye);const n=ye.instance;if(!t[e(317)])throw new Error(e(357));n[e(353)]={timeout:3e4,debug:!1,modules:["ads",e(346),e(298)],...t},n[e(353)][e(330)]&&(q[e(359)](n[e(353)][e(330)]),t[e(347)]&&console[e(339)]("🌐 API endpoint configured:",n[e(353)][e(330)]));const r=n[e(353)].modules||[e(369),e(346),e(298)];for(const t of r){const r=n[t];r&&typeof r[e(316)]===e(372)&&r[e(316)](n[e(353)])}if(n[e(370)]=!0,typeof window!==e(332)){const r=le[e(354)]();r&&t[e(347)]&&console[e(339)](e(336),r);const o=(()=>{const t=e;try{const e=new URLSearchParams(window.location[t(345)]),n=new URLSearchParams((window.location[t(297)]||"")[t(374)](/^#/,""));return e[t(334)]("attribution_id")||n[t(334)]("attribution_id")}catch{return null}})();if(o)try{localStorage[e(352)](e(315),o),t[e(347)]&&console[e(339)]("🔗 Using attributionId from URL (attribution_id):",o)}catch(t){}const s=le[e(308)]();if(t[e(347)]&&(console[e(339)](e(326),s),!s&&console[e(339)](e(304))),!o&&r&&le[e(303)]()){const r=(async()=>{const r=e;try{const e=n.generateDeviceId(),o=await n[r(346)][r(313)](e);return o&&t[r(347)]&&console.log(r(323),{attributionId:o[r(322)],channel:o[r(302)],campaign:o.campaign,expiresAt:o.expiresAt}),o}catch(t){return console[r(333)](r(356),t),null}})();s&&r[e(363)](r=>{const o=e;try{const e=le.get(),s=le[o(331)]();t[o(347)]&&console[o(339)]("🎯 Sending click event after attribution registration",{attributionId:r?.[o(322)],hasAttribution:!!r}),n[o(346)][o(375)](o(319),{_autoGenerated:!0,_source:o(305),_timestamp:(new Date).toISOString(),_platform:o(300)})[o(363)](()=>{const n=o;le[n(310)](),t[n(347)]&&console[n(339)](n(309),{attribution:s,trackingParams:e})})[o(306)](t=>{const e=o;console[e(333)](e(364),t)})}catch(t){console[o(333)]("❌ Error in click event auto-tracking:",t)}})}else s&&setTimeout(()=>{const r=e;try{const e=le[r(334)](),o=le[r(331)]();n[r(346)][r(375)]("click",{_autoGenerated:!0,_source:r(305),_timestamp:(new Date)[r(376)](),_platform:"web"})[r(363)](()=>{const n=r;le[n(310)](),t[n(347)]&&console[n(339)](n(309),{attribution:o,trackingParams:e})}).catch(t=>{console[r(333)]("❌ Failed to auto-track click event:",t)})}catch(t){console[r(333)](r(365),t)}},100)}t[e(347)]&&console[e(339)](e(321),{version:"2.0.0",modules:r,apiKey:t[e(317)].substring(0,8)+e(328),mode:"development"})}static isReady(){const t=fe;return ye[t(324)]?.[t(370)]||!1}static getConfig(){const t=fe;return ye[t(324)]?.[t(353)]||null}static getInstance(){const t=fe;if(!ye[t(324)])throw new Error(t(344));return ye.instance}static get[fe(369)](){const t=fe;try{return ye[t(373)]()[t(369)]}catch(e){throw console[t(311)]("AdStage.ads accessed before initialization"),e}}static get events(){const t=fe;try{return ye[t(373)]()[t(346)]}catch(e){throw console[t(311)](t(318)),e}}static get[fe(298)](){const t=fe;try{return ye[t(373)]()[t(298)]}catch(e){throw console[t(311)](t(335)),e}}static[fe(348)](){const t=fe;ye[t(324)]&&(ye.instance[t(370)]=!1,ye[t(324)][t(353)]=null)}[fe(343)](){const t=fe;if(typeof window===t(332))return"server-"+Math.random()[t(351)](36)[t(355)](2,15);const e=localStorage.getItem(t(296));if(e)return e;const n=[navigator[t(367)],navigator.language,screen[t(320)]+"x"+screen[t(337)],(new Date)[t(295)](),navigator[t(312)]||0][t(325)]("|");let r=0;for(let t=0;t<n.length;t++){r=(r<<5)-r+n.charCodeAt(t),r&=r}const o=t(361)+Math[t(366)](r)[t(351)](36)+"-"+Date[t(360)]()[t(351)](36);return localStorage[t(352)](t(296),o),o}}function Ie(t,e){var n=ve();return(Ie=function(t,e){return n[t-=429]})(t,e)}function ve(){var t=["warn","2371428KtNwUo","63CNnuRL","79105lfJuyx","isReady","1227672gFQOro","12yCsduA","AdStage not initialized. Call AdStage.init() first.","2144177cNAsJl","events","147480dPFtsH","2681710yvlEEc","258ZxXMNX","setUserProperties","track","resolve","7130272TIuulG"];return(ve=function(){return t})()}ye[fe(347)]={clearAllViewable:()=>{const t=fe;it[t(314)](),console[t(339)]("✅ AdStage Debug: 모든 viewable 추적 데이터 초기화됨")},clearAdViewable:(t,e)=>{const n=fe;it[n(342)](t,e),console[n(339)](n(362)+t+"("+e+n(368))},getViewableStatus:()=>{const t=fe;console[t(339)]("📊 AdStage Debug: 현재 viewable 추적 상태",{trackedCount:it.viewableTracker.size,trackedItems:Array[t(340)](it[t(299)])})}},function(t){for(var e=Ie,n=t();;)try{if(456592===parseInt(e(437))/1*(parseInt(e(433))/2)+-parseInt(e(432))/3+parseInt(e(445))/4+parseInt(e(430))/5*(parseInt(e(439))/6)+-parseInt(e(435))/7+parseInt(e(443))/8+parseInt(e(429))/9*(-parseInt(e(438))/10))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(ve);var be,we={exports:{}},ke={},Ee={exports:{}},Se={};Ee.exports=function(){if(be)return Se;be=1;var t=Symbol.for("react.element"),e=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),i=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),l=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),u=Symbol.iterator,p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},h=Object.assign,f={};function g(t,e,n){this.props=t,this.context=e,this.refs=f,this.updater=n||p}function m(){}function y(t,e,n){this.props=t,this.context=e,this.refs=f,this.updater=n||p}g.prototype.isReactComponent={},g.prototype.setState=function(t,e){if("object"!=typeof t&&"function"!=typeof t&&null!=t)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")},g.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")},m.prototype=g.prototype;var I=y.prototype=new m;I.constructor=y,h(I,g.prototype),I.isPureReactComponent=!0;var v=Array.isArray,b=Object.prototype.hasOwnProperty,w={current:null},k={key:!0,ref:!0,__self:!0,__source:!0};function E(e,n,r){var o,s={},i=null,a=null;if(null!=n)for(o in void 0!==n.ref&&(a=n.ref),void 0!==n.key&&(i=""+n.key),n)b.call(n,o)&&!k.hasOwnProperty(o)&&(s[o]=n[o]);var c=arguments.length-2;if(1===c)s.children=r;else if(1<c){for(var l=Array(c),d=0;d<c;d++)l[d]=arguments[d+2];s.children=l}if(e&&e.defaultProps)for(o in c=e.defaultProps)void 0===s[o]&&(s[o]=c[o]);return{$$typeof:t,type:e,key:i,ref:a,props:s,_owner:w.current}}function S(e){return"object"==typeof e&&null!==e&&e.$$typeof===t}var x=/\/+/g;function A(t,e){return"object"==typeof t&&null!==t&&null!=t.key?function(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(t){return e[t]})}(""+t.key):e.toString(36)}function C(n,r,o,s,i){var a=typeof n;"undefined"!==a&&"boolean"!==a||(n=null);var c=!1;if(null===n)c=!0;else switch(a){case"string":case"number":c=!0;break;case"object":switch(n.$$typeof){case t:case e:c=!0}}if(c)return i=i(c=n),n=""===s?"."+A(c,0):s,v(i)?(o="",null!=n&&(o=n.replace(x,"$&/")+"/"),C(i,r,o,"",function(t){return t})):null!=i&&(S(i)&&(i=function(e,n){return{$$typeof:t,type:e.type,key:n,ref:e.ref,props:e.props,_owner:e._owner}}(i,o+(!i.key||c&&c.key===i.key?"":(""+i.key).replace(x,"$&/")+"/")+n)),r.push(i)),1;if(c=0,s=""===s?".":s+":",v(n))for(var l=0;l<n.length;l++){var d=s+A(a=n[l],l);c+=C(a,r,o,d,i)}else if(d=function(t){return null===t||"object"!=typeof t?null:"function"==typeof(t=u&&t[u]||t["@@iterator"])?t:null}(n),"function"==typeof d)for(n=d.call(n),l=0;!(a=n.next()).done;)c+=C(a=a.value,r,o,d=s+A(a,l++),i);else if("object"===a)throw r=String(n),Error("Objects are not valid as a React child (found: "+("[object Object]"===r?"object with keys {"+Object.keys(n).join(", ")+"}":r)+"). If you meant to render a collection of children, use an array instead.");return c}function T(t,e,n){if(null==t)return t;var r=[],o=0;return C(t,r,"","",function(t){return e.call(n,t,o++)}),r}function _(t){if(-1===t._status){var e=t._result;(e=e()).then(function(e){0!==t._status&&-1!==t._status||(t._status=1,t._result=e)},function(e){0!==t._status&&-1!==t._status||(t._status=2,t._result=e)}),-1===t._status&&(t._status=0,t._result=e)}if(1===t._status)return t._result.default;throw t._result}var R={current:null},D={transition:null},P={ReactCurrentDispatcher:R,ReactCurrentBatchConfig:D,ReactCurrentOwner:w};function L(){throw Error("act(...) is not supported in production builds of React.")}return Se.Children={map:T,forEach:function(t,e,n){T(t,function(){e.apply(this,arguments)},n)},count:function(t){var e=0;return T(t,function(){e++}),e},toArray:function(t){return T(t,function(t){return t})||[]},only:function(t){if(!S(t))throw Error("React.Children.only expected to receive a single React element child.");return t}},Se.Component=g,Se.Fragment=n,Se.Profiler=o,Se.PureComponent=y,Se.StrictMode=r,Se.Suspense=c,Se.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=P,Se.act=L,Se.cloneElement=function(e,n,r){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=h({},e.props),s=e.key,i=e.ref,a=e._owner;if(null!=n){if(void 0!==n.ref&&(i=n.ref,a=w.current),void 0!==n.key&&(s=""+n.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(l in n)b.call(n,l)&&!k.hasOwnProperty(l)&&(o[l]=void 0===n[l]&&void 0!==c?c[l]:n[l])}var l=arguments.length-2;if(1===l)o.children=r;else if(1<l){c=Array(l);for(var d=0;d<l;d++)c[d]=arguments[d+2];o.children=c}return{$$typeof:t,type:e.type,key:s,ref:i,props:o,_owner:a}},Se.createContext=function(t){return(t={$$typeof:i,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:s,_context:t},t.Consumer=t},Se.createElement=E,Se.createFactory=function(t){var e=E.bind(null,t);return e.type=t,e},Se.createRef=function(){return{current:null}},Se.forwardRef=function(t){return{$$typeof:a,render:t}},Se.isValidElement=S,Se.lazy=function(t){return{$$typeof:d,_payload:{_status:-1,_result:t},_init:_}},Se.memo=function(t,e){return{$$typeof:l,type:t,compare:void 0===e?null:e}},Se.startTransition=function(t){var e=D.transition;D.transition={};try{t()}finally{D.transition=e}},Se.unstable_act=L,Se.useCallback=function(t,e){return R.current.useCallback(t,e)},Se.useContext=function(t){return R.current.useContext(t)},Se.useDebugValue=function(){},Se.useDeferredValue=function(t){return R.current.useDeferredValue(t)},Se.useEffect=function(t,e){return R.current.useEffect(t,e)},Se.useId=function(){return R.current.useId()},Se.useImperativeHandle=function(t,e,n){return R.current.useImperativeHandle(t,e,n)},Se.useInsertionEffect=function(t,e){return R.current.useInsertionEffect(t,e)},Se.useLayoutEffect=function(t,e){return R.current.useLayoutEffect(t,e)},Se.useMemo=function(t,e){return R.current.useMemo(t,e)},Se.useReducer=function(t,e,n){return R.current.useReducer(t,e,n)},Se.useRef=function(t){return R.current.useRef(t)},Se.useState=function(t){return R.current.useState(t)},Se.useSyncExternalStore=function(t,e,n){return R.current.useSyncExternalStore(t,e,n)},Se.useTransition=function(){return R.current.useTransition()},Se.version="18.3.1",Se}();var xe,Ae=Ee.exports;
|
|
2
2
|
/**
|
|
3
3
|
* @license React
|
|
4
4
|
* react-jsx-runtime.production.min.js
|
|
@@ -7,4 +7,4 @@
|
|
|
7
7
|
*
|
|
8
8
|
* This source code is licensed under the MIT license found in the
|
|
9
9
|
* LICENSE file in the root directory of this source tree.
|
|
10
|
-
*/
|
|
10
|
+
*/we.exports=function(){if(xe)return ke;xe=1;var t=Ae,e=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function i(t,n,i){var a,c={},l=null,d=null;for(a in void 0!==i&&(l=""+i),void 0!==n.key&&(l=""+n.key),void 0!==n.ref&&(d=n.ref),n)r.call(n,a)&&!s.hasOwnProperty(a)&&(c[a]=n[a]);if(t&&t.defaultProps)for(a in n=t.defaultProps)void 0===c[a]&&(c[a]=n[a]);return{$$typeof:e,type:t,key:l,ref:d,props:c,_owner:o.current}}return ke.Fragment=n,ke.jsx=i,ke.jsxs=i,ke}();var Ce=we.exports;const Te=Ae.createContext(null);function _e(){const t=Ae.useContext(Te);if(!t)throw new Error("useAdStageContext must be used within an AdStageProvider");return t}function Re(t,e){var n=De();return(Re=function(t,e){return n[t-=244]})(t,e)}function De(){var t=["1190205SrPqcb","4577256ZpJzLE","524330jihulP","9478139aiohst","895699YUDXiW","6ogtwPS","20voVAYS","30809XzxGIm","20dBTeUf","1580616zUOIBw","22tAWZmw"];return(De=function(){return t})()}function Pe(){const t=["392QGRbbE","AdStage","793520FOLPZE","644AXqnux","4576240WZoISK","56592uHdBvo","357327wRAVnC","2.0.0","9003fsjlIg","4sQWOIP","2632476wGigud","ads","config","10xipocp","undefined","204676PVOCMb","events"];return(Pe=function(){return t})()}!function(t){for(var e=Re,n=t();;)try{if(307014===parseInt(e(247))/1*(parseInt(e(250))/2)+-parseInt(e(251))/3+parseInt(e(246))/4*(-parseInt(e(253))/5)+-parseInt(e(245))/6*(parseInt(e(244))/7)+-parseInt(e(249))/8+-parseInt(e(252))/9+parseInt(e(248))/10*(parseInt(e(254))/11))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(De);const Le=Ue;function Ue(t,e){const n=Pe();return(Ue=function(t,e){return n[t-=422]})(t,e)}!function(t){const e=Ue,n=t();for(;;)try{if(605880===parseInt(e(436))/1*(parseInt(e(430))/2)+-parseInt(e(429))/3*(-parseInt(e(424))/4)+-parseInt(e(425))/5+-parseInt(e(426))/6*(-parseInt(e(438))/7)+-parseInt(e(423))/8+-parseInt(e(427))/9*(parseInt(e(434))/10)+parseInt(e(431))/11)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(Pe);const Oe=Le(428),ze=[Le(432),Le(437),Le(433)];typeof window!==Le(435)&&(window[Le(422)]=ye),t.AdStage=ye,t.AdStageProvider=function({children:t,config:e}){const[n,r]=Ae.useState(!1),[o,s]=Ae.useState(null),[i,a]=Ae.useState(null),c=t=>{try{a(null),n&&ye.reset(),ye.init(t),s(t),r(!0),t.debug&&console.log("✅ AdStage SDK initialized successfully via React Provider")}catch(t){const e=t instanceof Error?t.message:"Unknown error";a(e),console.error("❌ AdStage SDK initialization failed:",t),r(!1),s(null)}};Ae.useEffect(()=>{e&&!n&&c(e)},[e,n]);const l={isInitialized:n,config:o,initialize:c,reset:()=>{try{ye.reset(),r(!1),s(null),a(null)}catch(t){console.error("❌ AdStage SDK reset failed:",t)}},error:i};return Ce.jsx(Te.Provider,{value:l,children:t})},t.SDK_VERSION=Oe,t.SUPPORTED_MODULES=ze,t.TrackingParamsModule=le,t.getUserProperties=function(){var t=Ie;if(ye[t(431)]())return ye[t(436)].getUserProperties();console[t(444)](t(434))},t.setUserProperties=function(t){var e=Ie;ye[e(431)]()?ye[e(436)][e(440)](t):console.warn(e(434))},t.track=function(t,e){var n=Ie;return ye[n(431)]()?ye[n(436)][n(441)](t,e):(console.warn(n(434)),Promise[n(442)]())},t.useAdStageContext=_e,t.useAdStageInstance=function(){const{isInitialized:t}=_e();return t?ye:(console.warn("AdStage SDK is not initialized. Please call initialize() first or provide config to AdStageProvider."),null)}});
|