powered-ad-config 0.1.96 → 0.1.97

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.
@@ -213,7 +213,7 @@ var e = (e, t, n) => {
213
213
  }, N = () => {
214
214
  let e = k();
215
215
  if (!e) return;
216
- c(e, "0.1.96");
216
+ c(e, "0.1.97");
217
217
  let t = e.style;
218
218
  e.className &&= "", t.minHeight = "250px", t.marginTop = L.adNodeMarginTop + "px", t.marginBottom = L.adNodeMarginBottom + "px", t.position = "static", t.display = "block", L.zIndex && L.zIndex();
219
219
  }, P = () => {
@@ -528,21 +528,21 @@ var e = (e, t, n) => {
528
528
  border: o.style.border,
529
529
  position: o.style.position,
530
530
  pointerEvents: o.style.pointerEvents
531
- }, re = [], U = parseFloat(z) || m, ie = parseFloat(I) || 0, ae = parseFloat(L) || 0, W = () => {
531
+ }, re = [], U = parseFloat(z) || m, ie = parseFloat(I) || 0, W = parseFloat(L) || 0, G = () => {
532
532
  let e = H.parentElement;
533
533
  for (; e && e !== c.body;) re.push({
534
534
  element: e,
535
535
  overflow: e.style.overflow
536
536
  }), d(e, "overflow", "visible"), e = e.parentElement;
537
- }, oe = () => {
537
+ }, ae = () => {
538
538
  d(H, "width", R), d(H, "maxWidth", R), d(H, "minWidth", R), d(H, "height", z), d(H, "minHeight", z), d(H, "display", "block"), d(H, "overflow", "hidden"), d(H, "pointerEvents", "none"), d(H, "zIndex", "1080"), H.setAttribute(E, u), d(o, "width", R), d(o, "height", z), d(o, "display", "block"), d(o, "border", "0"), d(o, "position", "relative"), d(o, "pointerEvents", "auto");
539
- }, se = {
539
+ }, oe = {
540
540
  element: null,
541
541
  position: ""
542
- }, G = () => {
542
+ }, K = () => {
543
543
  let e = H.parentElement;
544
- e && s.getComputedStyle(e).position === "static" && (se.element = e, se.position = e.style.position, d(e, "position", "relative")), d(H, "position", "absolute"), d(H, "top", `${ie}px`), d(H, "left", `${ae}px`), d(H, "right", "auto"), d(H, "marginTop", "0px"), d(H, "marginBottom", `${h}px`), d(H, "marginLeft", "0px"), d(H, "marginRight", "0px"), d(H, "transform", "");
545
- }, ce = (e) => {
544
+ e && s.getComputedStyle(e).position === "static" && (oe.element = e, oe.position = e.style.position, d(e, "position", "relative")), d(H, "position", "absolute"), d(H, "top", `${ie}px`), d(H, "left", `${W}px`), d(H, "right", "auto"), d(H, "marginTop", "0px"), d(H, "marginBottom", `${h}px`), d(H, "marginLeft", "0px"), d(H, "marginRight", "0px"), d(H, "transform", "");
545
+ }, se = (e) => {
546
546
  let t = null;
547
547
  try {
548
548
  let e = o.contentDocument;
@@ -564,33 +564,33 @@ var e = (e, t, n) => {
564
564
  } catch {
565
565
  return o.removeAttribute(D), !1;
566
566
  }
567
- W(), oe(), G();
567
+ G(), ae(), K();
568
568
  try {
569
569
  o.srcdoc = t;
570
570
  } catch {
571
571
  return !1;
572
572
  }
573
573
  return !0;
574
- }, le = () => {
574
+ }, ce = () => {
575
575
  d(H, "position", "fixed"), d(H, "marginTop", "0px"), d(H, "marginBottom", "0px"), d(H, "marginLeft", "0px"), d(H, "marginRight", "0px"), d(H, "transform", "");
576
- }, ue = () => {
576
+ }, le = () => {
577
577
  d(H, "display", "none");
578
- }, de = () => {
578
+ }, ue = () => {
579
579
  d(H, "display", "block"), d(H, "overflow", "hidden");
580
- }, K = null, q = () => {
581
- if ((!K || !K.isConnected) && (K = N(V.headingText)), !K) return;
582
- let e = K.getBoundingClientRect(), t = e.top - U - h + ie, n = e.left + ae;
580
+ }, q = null, J = () => {
581
+ if ((!q || !q.isConnected) && (q = N(V.headingText)), !q) return;
582
+ let e = q.getBoundingClientRect(), t = e.top - U - h + ie, n = e.left + W;
583
583
  d(H, "top", `${t}px`), d(H, "left", `${n}px`), d(H, "right", "auto");
584
- }, J = null, Y = null, X = !1, fe = (e = 12) => {
585
- if (K = N(V.headingText), !K) {
586
- e > 1 && (F = s.setTimeout(() => fe(e - 1), 250));
584
+ }, Y = null, X = null, Z = !1, de = (e = 12) => {
585
+ if (q = N(V.headingText), !q) {
586
+ e > 1 && (F = s.setTimeout(() => de(e - 1), 250));
587
587
  return;
588
588
  }
589
- ce(K) || (X = !0, W(), oe(), le(), q(), J = () => q(), Y = () => q(), s.addEventListener("scroll", J, { passive: !0 }), s.addEventListener("resize", Y));
589
+ se(q) || (Z = !0, G(), ae(), ce(), J(), Y = () => J(), X = () => J(), s.addEventListener("scroll", Y, { passive: !0 }), s.addEventListener("resize", X));
590
590
  };
591
- fe();
592
- let Z = () => {
593
- F &&= (s.clearTimeout(F), null), P &&= (s.clearTimeout(P), null), J &&= (s.removeEventListener("scroll", J), null), Y &&= (s.removeEventListener("resize", Y), null), H.getAttribute(E) === u && H.removeAttribute(E), X && (Object.entries(te).forEach(([e, t]) => {
591
+ de();
592
+ let Q = () => {
593
+ F &&= (s.clearTimeout(F), null), P &&= (s.clearTimeout(P), null), Y &&= (s.removeEventListener("scroll", Y), null), X &&= (s.removeEventListener("resize", X), null), H.getAttribute(E) === u && H.removeAttribute(E), Z && (Object.entries(te).forEach(([e, t]) => {
594
594
  H.style[e] = t;
595
595
  }), Object.entries(ne).forEach(([e, t]) => {
596
596
  o.style[e] = t;
@@ -601,10 +601,10 @@ var e = (e, t, n) => {
601
601
  return s[T] = {
602
602
  instanceId: u,
603
603
  iframe: o,
604
- cleanup: Z,
605
- show: de,
606
- hide: ue
607
- }, Z;
604
+ cleanup: Q,
605
+ show: ue,
606
+ hide: le
607
+ }, Q;
608
608
  }, M = (e, t, n) => {
609
609
  let r = window.frameElement ? window.frameElement : null;
610
610
  if (!r) return () => {};
@@ -921,7 +921,7 @@ var e = (e, t, n) => {
921
921
  };
922
922
  (() => {
923
923
  let e = a.style;
924
- e.height = t.adScrollHeight, e.maxHeight = t.adScrollHeight, e.position = "relative", a.setAttribute("poweredAC", "0.1.96"), e.clipPath = `inset(-${t.bandHeight - 1}px 0 0 0)`, e.overflow = "visible", e.width = "100vw", e.maxWidth = "100vw", e.marginLeft = "calc(50% - 50vw)", e.marginRight = "0", e.marginTop = "0", e.marginBottom = "0", e.padding = "0";
924
+ e.height = t.adScrollHeight, e.maxHeight = t.adScrollHeight, e.position = "relative", a.setAttribute("poweredAC", "0.1.97"), e.clipPath = `inset(-${t.bandHeight - 1}px 0 0 0)`, e.overflow = "visible", e.width = "100vw", e.maxWidth = "100vw", e.marginLeft = "calc(50% - 50vw)", e.marginRight = "0", e.marginTop = "0", e.marginBottom = "0", e.padding = "0";
925
925
  let o = a.parentElement;
926
926
  for (let e = 0; e < 6 && o && o !== i.body; e++) {
927
927
  let t = r.getComputedStyle(o), n = !1;
@@ -1059,7 +1059,7 @@ var e = (e, t, n) => {
1059
1059
  let o = a.getAttribute("style"), s = n.getAttribute("style"), c = n.parentElement === a ? null : n.parentElement, l = c ? c.getAttribute("style") : null, u = a.parentElement, d = u ? r.getComputedStyle(u).paddingTop : null, f = null, p = parseInt(n.getAttribute("width"), 10) || 320, m = parseInt(n.getAttribute("height"), 10) || 50;
1060
1060
  return (() => {
1061
1061
  let e = a.style;
1062
- if (e.position = "relative", e.overflow = "visible", e.boxSizing = "border-box", a.setAttribute("poweredAC", "0.1.96"), c) {
1062
+ if (e.position = "relative", e.overflow = "visible", e.boxSizing = "border-box", a.setAttribute("poweredAC", "0.1.97"), c) {
1063
1063
  let e = c.style;
1064
1064
  e.width = "100%", e.height = "100%", e.margin = "0", e.textAlign = "left";
1065
1065
  }
@@ -1252,24 +1252,24 @@ var e = (e, t, n) => {
1252
1252
  })(), p = f === u.smh || f === u.theage, m = n.getAttribute("style"), h = n.hasAttribute("data-mf-wallpaper-iframe"), g = a.getAttribute("style"), _ = n.parentElement === a ? null : n.parentElement, v = _ ? _.getAttribute("style") : null, y = a.parentElement, b = a.closest("[data-ad-target=\"header-ad-mobile\"]"), x = !!(y && b && y === b), S = x ? r.getComputedStyle(y).marginTop : "", C = y ? y.getAttribute("style") : null, w = s ? s.getAttribute("style") : null, T = o ? o.getAttribute("style") : null, E = o ? o.querySelector("header") : null, D = E ? E.getAttribute("style") : null, O = E ? E.querySelector(".sc-5cbbddda-1") : null, k = O ? O.getAttribute("style") : null, A = i.querySelector("footer"), j = A ? A.getAttribute("style") : null, M = o ? Array.from(o.children).map((e) => ({
1253
1253
  el: e,
1254
1254
  orig: e.getAttribute("style")
1255
- })) : [], N = null, P = null, F = null, I = null, L = null, R = null, z = null, B = null, V = [], H = null, ee = null, te = null, ne = null, re = null, U = null, ie = null, ae = [], W = Number.isFinite(t.stickyDurationMs) && t.stickyDurationMs > 0, oe = Number.isFinite(t.stickyScrollDistance) && t.stickyScrollDistance > 0, se = !!(t.sticky && (W || oe)), G = "pending", ce = 0, le = 0, ue = null, de = null, K = null, q = null, J = null, Y = null, X = [], fe = Number.isFinite(t.stickyHeaderFallbackHeight) ? Math.max(0, t.stickyHeaderFallbackHeight) : null, Z = f === u.afr || x, pe = Z, Q = null, me = null, he = (e) => {
1255
+ })) : [], N = null, P = null, F = null, I = null, L = null, R = null, z = null, B = null, V = [], H = null, ee = null, te = null, ne = null, re = null, U = null, ie = null, W = [], G = Number.isFinite(t.stickyDurationMs) && t.stickyDurationMs > 0, ae = Number.isFinite(t.stickyScrollDistance) && t.stickyScrollDistance > 0, oe = !!(t.sticky && (G || ae)), K = "pending", se = 0, ce = 0, le = null, ue = null, q = null, J = null, Y = null, X = null, Z = [], de = Number.isFinite(t.stickyHeaderFallbackHeight) ? Math.max(0, t.stickyHeaderFallbackHeight) : null, Q = f === u.afr || x, fe = (e) => {
1256
1256
  if (!e || e === te || e === y || e === a) return !1;
1257
1257
  let t = e.firstElementChild;
1258
1258
  if (!t || t !== e.lastElementChild || !t.classList.contains("container") || t.children.length > 0 || t.textContent && t.textContent.trim() || e.querySelector("[id^=\"adspot-mobile-mbanner-\"], iframe, [data-mf-slot], .adWrapper")) return !1;
1259
1259
  let n = r.getComputedStyle(e);
1260
1260
  return n.position === "fixed" || n.position === "sticky";
1261
- }, ge = (e) => {
1262
- !e?.parentElement || ae.some((t) => t.shell === e) || (ae.push({
1261
+ }, pe = (e) => {
1262
+ !e?.parentElement || W.some((t) => t.shell === e) || (W.push({
1263
1263
  shell: e,
1264
1264
  parent: e.parentElement,
1265
1265
  nextSibling: e.nextSibling
1266
1266
  }), e.remove());
1267
- }, _e = () => {
1267
+ }, me = () => {
1268
1268
  for (let e of i.querySelectorAll(".container")) {
1269
1269
  let t = e.parentElement;
1270
- he(t) && ge(t);
1270
+ fe(t) && pe(t);
1271
1271
  }
1272
- }, ve = (e) => {
1272
+ }, he = (e) => {
1273
1273
  let t = e?.parentElement;
1274
1274
  for (; t && t !== i.body && t !== i.documentElement;) {
1275
1275
  let e = r.getComputedStyle(t);
@@ -1278,10 +1278,10 @@ var e = (e, t, n) => {
1278
1278
  orig: t.getAttribute("style")
1279
1279
  }), t.style.transform = "none", t.style.willChange = "auto", t.style.contain = "none", t.style.filter = "none", t.style.perspective = "none"), t = t.parentElement;
1280
1280
  }
1281
- }, ye = () => {
1281
+ }, ge = () => {
1282
1282
  let e = i.createElement("div");
1283
1283
  return e.setAttribute("data-mf-billboard-mount", ""), e.style.height = `${t.billboardHeight}px`, e.style.minHeight = `${t.billboardHeight}px`, e.style.maxHeight = `${t.billboardHeight}px`, e.style.background = "transparent", e.style.overflow = "visible", e.style.position = "relative", e.style.width = "100%", e.style.padding = "0", e.style.margin = "0", e;
1284
- }, be = () => {
1284
+ }, _e = () => {
1285
1285
  if (!s || f !== u.wwos) return null;
1286
1286
  let e = a.getBoundingClientRect().bottom, t = Array.from(s.querySelectorAll("div")).map((e) => {
1287
1287
  let t = e.getBoundingClientRect(), n = r.getComputedStyle(e), i = e.querySelector("ul");
@@ -1294,7 +1294,7 @@ var e = (e, t, n) => {
1294
1294
  };
1295
1295
  }).filter(({ rect: t, styles: n, list: r, listStyles: i }) => !r || !i || t.top < e - 4 || t.top > e + 120 || n.overflow !== "hidden" || parseFloat(n.borderTopLeftRadius) < 4 ? !1 : i.overflow === "auto" || i.overflowX === "auto");
1296
1296
  return t.length ? (t.sort((t, n) => Math.abs(t.rect.top - e) - Math.abs(n.rect.top - e)), t[0]) : null;
1297
- }, $ = () => B || a, xe = () => !t.stickyRespectHeader || !t.stickyHeaderSelector ? [] : Array.from(i.querySelectorAll(t.stickyHeaderSelector)).map((e) => {
1297
+ }, $ = () => B || a, ve = () => !t.stickyRespectHeader || !t.stickyHeaderSelector ? [] : Array.from(i.querySelectorAll(t.stickyHeaderSelector)).map((e) => {
1298
1298
  let t = e.getBoundingClientRect(), n = r.getComputedStyle(e), i = Number.parseInt(n.zIndex, 10);
1299
1299
  return {
1300
1300
  el: e,
@@ -1302,29 +1302,29 @@ var e = (e, t, n) => {
1302
1302
  styles: n,
1303
1303
  zIndex: Number.isFinite(i) ? i : null
1304
1304
  };
1305
- }).filter(({ rect: e, styles: t }) => e.width <= r.innerWidth * .5 || e.height <= 0 ? !1 : t.display !== "none" && t.visibility !== "hidden"), Se = () => {
1306
- let e = xe().filter(({ rect: e, styles: n }) => n.position !== "fixed" && n.position !== "sticky" ? !1 : e.top <= t.stickyTop + 1 && e.bottom > t.stickyTop + 1);
1305
+ }).filter(({ rect: e, styles: t }) => e.width <= r.innerWidth * .5 || e.height <= 0 ? !1 : t.display !== "none" && t.visibility !== "hidden"), ye = () => {
1306
+ let e = ve().filter(({ rect: e, styles: n }) => n.position !== "fixed" && n.position !== "sticky" ? !1 : e.top <= t.stickyTop + 1 && e.bottom > t.stickyTop + 1);
1307
1307
  return e.length ? (e.sort((e, t) => t.rect.bottom - e.rect.bottom), e[0]) : null;
1308
- }, Ce = () => {
1309
- let e = Se();
1310
- return e ? Math.max(t.stickyTop, Math.round(e.rect.bottom)) : Math.max(t.stickyTop, fe || t.stickyTop);
1311
- }, we = () => {
1312
- let e = Se();
1308
+ }, be = () => {
1309
+ let e = ye();
1310
+ return e ? Math.max(t.stickyTop, Math.round(e.rect.bottom)) : Math.max(t.stickyTop, de || t.stickyTop);
1311
+ }, xe = () => {
1312
+ let e = ye();
1313
1313
  return e?.zIndex && e.zIndex > 2 ? Math.max(1, Math.min(t.stickyZIndex, e.zIndex - 1)) : t.stickyZIndex;
1314
- }, Te = ({ active: e, progress: t = 0, remainingMs: n = 0 }) => {
1314
+ }, Se = ({ active: e, progress: t = 0, remainingMs: n = 0 }) => {
1315
1315
  R?.contentWindow && R.contentWindow.postMessage({
1316
1316
  type: "mobilefireplace:sticky",
1317
1317
  active: e,
1318
1318
  progress: Math.max(0, Math.min(1, t)),
1319
1319
  remainingMs: Math.max(0, Math.round(n))
1320
1320
  }, "*");
1321
- }, Ee = (e) => {
1322
- !e || X.some((t) => t.el === e) || X.push({
1321
+ }, Ce = (e) => {
1322
+ !e || Z.some((t) => t.el === e) || Z.push({
1323
1323
  el: e,
1324
1324
  value: e.style.getPropertyValue("z-index"),
1325
1325
  priority: e.style.getPropertyPriority("z-index")
1326
1326
  });
1327
- }, De = (e) => {
1327
+ }, we = (e) => {
1328
1328
  let t = new Set([$()].filter(Boolean));
1329
1329
  if (f === u.afr || U || p) {
1330
1330
  [
@@ -1335,114 +1335,99 @@ var e = (e, t, n) => {
1335
1335
  let e = $()?.parentElement;
1336
1336
  for (; e && e !== i.body && e !== i.documentElement && (t.add(e), e.id !== "stickyLeaderboard");) e = e.parentElement;
1337
1337
  }
1338
- for (let n of t) Ee(n), n.style.setProperty("z-index", String(e), "important");
1339
- }, Oe = () => Z && (a.closest("#stickyLeaderboard") || i.querySelector("#stickyLeaderboard")) || $(), ke = () => {
1340
- if (!Z || !R) return;
1338
+ for (let n of t) Ce(n), n.style.setProperty("z-index", String(e), "important");
1339
+ }, Te = () => Q && (a.closest("#stickyLeaderboard") || i.querySelector("#stickyLeaderboard")) || $(), Ee = () => {
1340
+ if (!Q || !R) return;
1341
1341
  let e = R.style;
1342
1342
  e.left = "0px", e.width = "100vw";
1343
- }, Ae = () => {
1344
- if (!Z || !R || G === "active") return;
1345
- let e = Oe();
1343
+ }, De = () => {
1344
+ if (!Q || !R || K === "active") return;
1345
+ let e = Te();
1346
1346
  if (!e) return;
1347
1347
  let t = e.getBoundingClientRect(), n = R.style;
1348
- n.position = "absolute", n.top = `${Math.round(r.scrollY + t.top)}px`, ke(), n.setProperty("z-index", "6", "important"), R.removeAttribute("data-mf-sticky-active");
1349
- }, je = () => {
1350
- Z && (Ae(), K && r.cancelAnimationFrame(K), K = r.requestAnimationFrame(() => {
1351
- K = null, Ae();
1352
- }), q && r.clearTimeout(q), q = r.setTimeout(() => {
1353
- q = null, Ae();
1348
+ n.position = "absolute", n.top = `${Math.round(r.scrollY + t.top)}px`, Ee(), n.setProperty("z-index", "6", "important"), R.removeAttribute("data-mf-sticky-active");
1349
+ }, Oe = () => {
1350
+ Q && (De(), q && r.cancelAnimationFrame(q), q = r.requestAnimationFrame(() => {
1351
+ q = null, De();
1352
+ }), J && r.clearTimeout(J), J = r.setTimeout(() => {
1353
+ J = null, De();
1354
1354
  }, 350));
1355
- }, Me = () => {
1356
- !pe || !R || R.parentElement === i.body || (Q = R.parentElement, me = R.nextSibling, i.body.appendChild(R));
1357
- }, Ne = () => {
1358
- if (!Q || !R) {
1359
- Q = null, me = null;
1360
- return;
1361
- }
1362
- me && me.parentNode === Q ? Q.insertBefore(R, me) : Q.appendChild(R), Q = null, me = null;
1363
- }, Pe = () => {
1364
- for (let e = X.length - 1; e >= 0; --e) {
1365
- let { el: t, value: n, priority: r } = X[e];
1355
+ }, ke = () => {
1356
+ for (let e = Z.length - 1; e >= 0; --e) {
1357
+ let { el: t, value: n, priority: r } = Z[e];
1366
1358
  n ? t.style.setProperty("z-index", n, r) : t.style.removeProperty("z-index");
1367
1359
  }
1368
- X.length = 0;
1369
- }, Fe = () => {
1360
+ Z.length = 0;
1361
+ }, Ae = () => {
1370
1362
  if (!R) return;
1371
- ve($());
1372
- let e = $().getBoundingClientRect(), t = we();
1373
- if (De(t), Me(), x && B && !pe) {
1374
- let e = B.style;
1375
- e.setProperty("position", "fixed", "important"), e.setProperty("top", `${Ce()}px`, "important"), e.setProperty("left", "0px", "important"), e.setProperty("width", "100vw", "important"), e.setProperty("max-width", "100vw", "important"), e.setProperty("z-index", String(t), "important");
1376
- }
1363
+ he($());
1364
+ let e = $().getBoundingClientRect(), t = xe();
1365
+ we(t);
1377
1366
  let n = R.style;
1378
- x && !pe ? (n.position = "relative", n.top = "0px", n.left = "0px", n.width = "100vw", n.setProperty("max-width", "100vw", "important")) : (n.position = "fixed", n.top = `${Ce()}px`), Z ? ke() : x ? (n.left = "0px", n.width = "100vw", n.setProperty("max-width", "100vw", "important")) : (n.left = `${Math.round(e.left)}px`, n.width = `${Math.round(e.width)}px`), n.setProperty("z-index", String(t), "important"), R.setAttribute("data-mf-sticky-active", "");
1379
- }, Ie = () => {
1367
+ n.position = "fixed", n.top = `${be()}px`, Q ? Ee() : (n.left = `${Math.round(e.left)}px`, n.width = `${Math.round(e.width)}px`), n.setProperty("z-index", String(t), "important"), R.setAttribute("data-mf-sticky-active", "");
1368
+ }, je = () => {
1380
1369
  if (!R) return;
1381
- if (Ne(), Z) {
1382
- je(), Pe();
1370
+ if (Q) {
1371
+ Oe(), ke();
1383
1372
  return;
1384
1373
  }
1385
1374
  let e = R.style;
1386
- if (e.position = "relative", e.top = "", e.left = "", e.width = "100%", e.setProperty("z-index", "1"), x && B && !pe) {
1387
- let e = B.style;
1388
- e.setProperty("position", "relative"), e.removeProperty("top"), e.removeProperty("left"), e.setProperty("width", "100%"), e.removeProperty("max-width");
1389
- }
1390
- Pe(), R.removeAttribute("data-mf-sticky-active");
1391
- }, Le = () => {
1392
- de &&= (r.cancelAnimationFrame(de), null);
1393
- }, Re = () => {
1394
- if (ue === null) {
1375
+ e.position = "relative", e.top = "", e.left = "", e.width = "100%", e.setProperty("z-index", "1"), ke(), R.removeAttribute("data-mf-sticky-active");
1376
+ }, Me = () => {
1377
+ ue &&= (r.cancelAnimationFrame(ue), null);
1378
+ }, Ne = () => {
1379
+ if (le === null) {
1395
1380
  let e = $().getBoundingClientRect();
1396
- ue = Math.max(0, r.scrollY + e.top - Ce());
1381
+ le = Math.max(0, r.scrollY + e.top - be());
1397
1382
  }
1398
- return ue;
1399
- }, ze = () => le + (G === "active" ? Math.max(0, r.performance.now() - ce) : 0), Be = () => Math.max(0, r.scrollY - Re()), Ve = () => {
1400
- let e = W ? ze() / t.stickyDurationMs : 0, n = oe ? Be() / t.stickyScrollDistance : 0;
1383
+ return le;
1384
+ }, Pe = () => ce + (K === "active" ? Math.max(0, r.performance.now() - se) : 0), Fe = () => Math.max(0, r.scrollY - Ne()), Ie = () => {
1385
+ let e = G ? Pe() / t.stickyDurationMs : 0, n = ae ? Fe() / t.stickyScrollDistance : 0;
1401
1386
  return Math.max(e, n);
1402
- }, He = () => W ? t.stickyDurationMs - ze() : 0, Ue = () => r.scrollY < Re() - 1, We = () => {
1403
- G === "active" && (le = ze(), G = "paused", Le(), Ie(), Te({
1387
+ }, Le = () => G ? t.stickyDurationMs - Pe() : 0, Re = () => r.scrollY < Ne() - 1, ze = () => {
1388
+ K === "active" && (ce = Pe(), K = "paused", Me(), je(), Se({
1404
1389
  active: !1,
1405
- progress: Ve(),
1406
- remainingMs: He()
1390
+ progress: Ie(),
1391
+ remainingMs: Le()
1407
1392
  }));
1408
- }, Ge = () => {
1409
- G !== "paused" || Ue() || (G = "active", ce = r.performance.now(), Fe(), qe());
1410
- }, Ke = () => {
1411
- G !== "active" && G !== "paused" || (G === "active" && (le = ze()), G = "released", Le(), Ie(), Te({
1393
+ }, Be = () => {
1394
+ K !== "paused" || Re() || (K = "active", se = r.performance.now(), Ae(), He());
1395
+ }, Ve = () => {
1396
+ K !== "active" && K !== "paused" || (K === "active" && (ce = Pe()), K = "released", Me(), je(), Se({
1412
1397
  active: !1,
1413
1398
  progress: 1,
1414
1399
  remainingMs: 0
1415
1400
  }));
1416
- }, qe = () => {
1417
- if (G !== "active") return;
1418
- if (Ue()) {
1419
- We();
1401
+ }, He = () => {
1402
+ if (K !== "active") return;
1403
+ if (Re()) {
1404
+ ze();
1420
1405
  return;
1421
1406
  }
1422
- let e = ze(), n = Be(), i = W ? e / t.stickyDurationMs : 0, a = oe ? n / t.stickyScrollDistance : 0, o = Math.max(i, a), s = W ? t.stickyDurationMs - e : 0;
1423
- if (Fe(), Te({
1407
+ let e = Pe(), n = Fe(), i = G ? e / t.stickyDurationMs : 0, a = ae ? n / t.stickyScrollDistance : 0, o = Math.max(i, a), s = G ? t.stickyDurationMs - e : 0;
1408
+ if (Ae(), Se({
1424
1409
  active: !0,
1425
1410
  progress: o,
1426
1411
  remainingMs: s
1427
1412
  }), i >= 1 || a >= 1) {
1428
- Ke();
1413
+ Ve();
1429
1414
  return;
1430
1415
  }
1431
- de = r.requestAnimationFrame(qe);
1432
- }, Je = () => {
1433
- if (!se || G !== "pending" || !R) return;
1416
+ ue = r.requestAnimationFrame(He);
1417
+ }, Ue = () => {
1418
+ if (!oe || K !== "pending" || !R) return;
1434
1419
  let e = $().getBoundingClientRect();
1435
- ue = Math.max(0, r.scrollY + e.top - Ce()), le = 0, G = "active", ce = r.performance.now(), Fe(), qe();
1436
- }, Ye = () => {
1437
- !se || G !== "pending" || !R || r.scrollY <= 0 || $().getBoundingClientRect().top <= Ce() && Je();
1438
- }, Xe = () => {
1439
- G === "pending" ? Ye() : G === "active" && Ue() ? We() : G === "paused" && Ge(), G !== "active" && je();
1440
- }, Ze = () => {
1441
- Xe(), Y && r.cancelAnimationFrame(Y), Y = r.requestAnimationFrame(() => {
1442
- Y = null, Xe();
1420
+ le = Math.max(0, r.scrollY + e.top - be()), ce = 0, K = "active", se = r.performance.now(), Ae(), He();
1421
+ }, We = () => {
1422
+ !oe || K !== "pending" || !R || r.scrollY <= 0 || $().getBoundingClientRect().top <= be() && Ue();
1423
+ }, Ge = () => {
1424
+ K === "pending" ? We() : K === "active" && Re() ? ze() : K === "paused" && Be(), K !== "active" && Oe();
1425
+ }, Ke = () => {
1426
+ Ge(), X && r.cancelAnimationFrame(X), X = r.requestAnimationFrame(() => {
1427
+ X = null, Ge();
1443
1428
  });
1444
- }, Qe = () => {
1445
- _e();
1429
+ }, qe = () => {
1430
+ me();
1446
1431
  let e = n.parentElement;
1447
1432
  for (; e && e !== i.body && e !== i.documentElement;) {
1448
1433
  let t = r.getComputedStyle(e);
@@ -1472,7 +1457,7 @@ var e = (e, t, n) => {
1472
1457
  } catch (e) {
1473
1458
  console.warn("[mobilefireplace] Could not create AFR wallpaper iframe:", e);
1474
1459
  }
1475
- if (a.setAttribute("poweredAC", "0.1.96"), _) {
1460
+ if (a.setAttribute("poweredAC", "0.1.97"), _) {
1476
1461
  let e = _.style;
1477
1462
  e.width = "100%", e.height = "0", e.overflow = "visible", e.position = "static", e.margin = "0";
1478
1463
  }
@@ -1733,7 +1718,7 @@ var e = (e, t, n) => {
1733
1718
  padding: 0 !important;
1734
1719
  }
1735
1720
  `, i.head.appendChild(L), f.setup && f.setup(i, a), f === u.wwos) {
1736
- let e = be();
1721
+ let e = _e();
1737
1722
  e && (N = e.el, P = N.getAttribute("style"), F = e.list, I = F ? F.getAttribute("style") : null, N.style.marginLeft = "10px", N.style.marginRight = "10px", N.style.width = "calc(100% - 20px)", F && (F.style.width = "100%"));
1738
1723
  }
1739
1724
  if (o && f !== u.afr && (U || p)) {
@@ -1743,24 +1728,24 @@ var e = (e, t, n) => {
1743
1728
  let n = z.style;
1744
1729
  n.position = "fixed", n.top = "0", n.left = "0", n.width = "100vw", n.height = "100dvh", n.border = "none", n.margin = "0", n.padding = "0", n.display = "block", n.background = "transparent", n.zIndex = String(t.zIndex), n.pointerEvents = "none", i.body.insertBefore(z, i.body.firstChild);
1745
1730
  }
1746
- n.style.position = "absolute", n.style.top = "0", n.style.left = "0", n.style.width = "0", n.style.height = "0", n.style.opacity = "0", n.style.pointerEvents = "none", n.style.zIndex = "-1", B = ye(), o.parentElement.insertBefore(B, o), U ? (U.style.position = "static", U.style.inset = "auto", U.style.height = "0", U.style.minHeight = "0", U.style.maxHeight = "0", U.style.overflow = "hidden", U.style.backgroundColor = "transparent", U.style.boxShadow = "none", U.style.border = "0", U.style.outline = "0", U.style.pointerEvents = "none") : y && (y.style.height = "0", y.style.minHeight = "0", y.style.maxHeight = "0", y.style.overflow = "hidden", y.style.backgroundColor = "transparent", y.style.border = "0", y.style.outline = "0"), h.height = "0", h.minHeight = "0", h.width = "0", h.overflow = "hidden", s && (s.style.backgroundColor = "transparent", s.style.backgroundImage = "none", s.style.position = "relative", s.style.zIndex = "1"), o.style.marginLeft = "14px", o.style.marginRight = "14px", o.style.backgroundColor = "#ffffff", o.style.position = "relative", o.style.zIndex = "2", o.style.overflowX = "clip", o.style.isolation = "isolate";
1731
+ n.style.position = "absolute", n.style.top = "0", n.style.left = "0", n.style.width = "0", n.style.height = "0", n.style.opacity = "0", n.style.pointerEvents = "none", n.style.zIndex = "-1", B = ge(), o.parentElement.insertBefore(B, o), U ? (U.style.position = "static", U.style.inset = "auto", U.style.height = "0", U.style.minHeight = "0", U.style.maxHeight = "0", U.style.overflow = "hidden", U.style.backgroundColor = "transparent", U.style.boxShadow = "none", U.style.border = "0", U.style.outline = "0", U.style.pointerEvents = "none") : y && (y.style.height = "0", y.style.minHeight = "0", y.style.maxHeight = "0", y.style.overflow = "hidden", y.style.backgroundColor = "transparent", y.style.border = "0", y.style.outline = "0"), h.height = "0", h.minHeight = "0", h.width = "0", h.overflow = "hidden", s && (s.style.backgroundColor = "transparent", s.style.backgroundImage = "none", s.style.position = "relative", s.style.zIndex = "1"), o.style.marginLeft = "14px", o.style.marginRight = "14px", o.style.backgroundColor = "#ffffff", o.style.position = "relative", o.style.zIndex = "2", o.style.overflowX = "clip", o.style.isolation = "isolate";
1747
1732
  for (let { el: e } of M) e.style.backgroundColor = "transparent", e.style.boxShadow = "none", e.style.paddingLeft = "10px", e.style.paddingRight = "10px";
1748
- E && (E.style.borderTop = "0", E.style.outline = "0", E.style.boxShadow = "none"), O && (O.style.borderBottom = "0"), A && (A.style.marginLeft = "14px", A.style.marginRight = "14px", A.style.position = "relative", A.style.zIndex = "2"), _e();
1733
+ E && (E.style.borderTop = "0", E.style.outline = "0", E.style.boxShadow = "none"), O && (O.style.borderBottom = "0"), A && (A.style.marginLeft = "14px", A.style.marginRight = "14px", A.style.position = "relative", A.style.zIndex = "2"), me();
1749
1734
  }
1750
- B || (B = ye(), a.appendChild(B));
1751
- }, $e = null, et = null, tt = !1, nt = () => {
1735
+ B || (B = ge(), a.appendChild(B));
1736
+ }, Je = null, Ye = null, Xe = !1, Ze = () => {
1752
1737
  let e = r.innerWidth, n = r.innerHeight;
1753
1738
  if (e > n) {
1754
1739
  let r = n / e, i = Math.round(t.billboardHeight * r);
1755
1740
  a.style.height = i + "px", a.style.minHeight = i + "px", B && (B.style.height = i + "px", B.style.minHeight = i + "px", B.style.maxHeight = i + "px"), R && (R.style.height = i + "px");
1756
1741
  } else a.style.height = t.billboardHeight + "px", a.style.minHeight = t.billboardHeight + "px", B && (B.style.height = t.billboardHeight + "px", B.style.minHeight = t.billboardHeight + "px", B.style.maxHeight = t.billboardHeight + "px"), R && (R.style.height = t.billboardHeight + "px");
1757
- G === "active" ? Fe() : je();
1742
+ K === "active" ? Ae() : Oe();
1758
1743
  };
1759
- if (Qe(), l && l !== "about:blank") try {
1744
+ if (qe(), l && l !== "about:blank") try {
1760
1745
  let e = new URL(l);
1761
1746
  e.searchParams.set("mfRole", "billboard"), R = i.createElement("iframe"), R.src = e.href, R.setAttribute("data-mf-billboard-iframe", ""), R.setAttribute("scrolling", "no"), R.setAttribute("frameborder", "0");
1762
1747
  let n = R.style;
1763
- n.position = Z ? "absolute" : "relative", n.width = "100%", n.height = t.billboardHeight + "px", n.border = "none", n.margin = "0", n.padding = "0", n.display = "block", n.overflow = "hidden", n.background = "transparent", n.zIndex = Z ? "6" : "1", Z ? (R.setAttribute("data-mf-body-billboard", ""), i.body.appendChild(R), Ae()) : (B || a).appendChild(R), se && (J = Ze, r.addEventListener("scroll", J, { passive: !0 }), i.addEventListener("scroll", J, { passive: !0 }), i.scrollingElement?.addEventListener("scroll", J, { passive: !0 }));
1748
+ n.position = Q ? "absolute" : "relative", n.width = "100%", n.height = t.billboardHeight + "px", n.border = "none", n.margin = "0", n.padding = "0", n.display = "block", n.overflow = "hidden", n.background = "transparent", n.zIndex = Q ? "6" : "1", Q ? (R.setAttribute("data-mf-body-billboard", ""), i.body.appendChild(R), De()) : (B || a).appendChild(R), oe && (Y = Ke, r.addEventListener("scroll", Y, { passive: !0 }), i.addEventListener("scroll", Y, { passive: !0 }), i.scrollingElement?.addEventListener("scroll", Y, { passive: !0 }));
1764
1749
  } catch (e) {
1765
1750
  console.warn("[mobilefireplace] Could not create billboard iframe:", e);
1766
1751
  }
@@ -1777,39 +1762,39 @@ var e = (e, t, n) => {
1777
1762
  try {
1778
1763
  r.__mfBridge.billboardWindow = R.contentWindow;
1779
1764
  } catch {}
1780
- }), $e = nt, r.addEventListener("resize", $e), nt(), et = () => {
1781
- rt();
1782
- }, window.addEventListener("pagehide", et), window.addEventListener("beforeunload", et), t.onAdapt && r.requestAnimationFrame(() => {
1765
+ }), Je = Ze, r.addEventListener("resize", Je), Ze(), Ye = () => {
1766
+ Qe();
1767
+ }, window.addEventListener("pagehide", Ye), window.addEventListener("beforeunload", Ye), t.onAdapt && r.requestAnimationFrame(() => {
1783
1768
  r.__mfBridge.adapted = !0, t.onAdapt();
1784
1769
  });
1785
- let rt = () => {
1786
- if (!tt) {
1787
- tt = !0, et &&= (window.removeEventListener("pagehide", et), window.removeEventListener("beforeunload", et), null), $e &&= (r.removeEventListener("resize", $e), null), J &&= (r.removeEventListener("scroll", J), i.removeEventListener("scroll", J), i.scrollingElement?.removeEventListener("scroll", J), null), Y &&= (r.cancelAnimationFrame(Y), null), Le(), K &&= (r.cancelAnimationFrame(K), null), q &&= (r.clearTimeout(q), null), Te({
1770
+ let Qe = () => {
1771
+ if (!Xe) {
1772
+ Xe = !0, Ye &&= (window.removeEventListener("pagehide", Ye), window.removeEventListener("beforeunload", Ye), null), Je &&= (r.removeEventListener("resize", Je), null), Y &&= (r.removeEventListener("scroll", Y), i.removeEventListener("scroll", Y), i.scrollingElement?.removeEventListener("scroll", Y), null), X &&= (r.cancelAnimationFrame(X), null), Me(), q &&= (r.cancelAnimationFrame(q), null), J &&= (r.clearTimeout(J), null), Se({
1788
1773
  active: !1,
1789
1774
  progress: 1,
1790
1775
  remainingMs: 0
1791
- }), L && L.parentNode && (L.parentNode.removeChild(L), L = null), R && R.parentNode && (R.parentNode.removeChild(R), R = null), Q = null, me = null, B && B.parentNode && (B.parentNode.removeChild(B), B = null), z && z.parentNode && (z.parentNode.removeChild(z), z = null);
1776
+ }), L && L.parentNode && (L.parentNode.removeChild(L), L = null), R && R.parentNode && (R.parentNode.removeChild(R), R = null), B && B.parentNode && (B.parentNode.removeChild(B), B = null), z && z.parentNode && (z.parentNode.removeChild(z), z = null);
1792
1777
  try {
1793
1778
  delete r.__mfBridge;
1794
1779
  } catch {}
1795
- for (let e = ae.length - 1; e >= 0; --e) {
1796
- let { shell: t, parent: n, nextSibling: r } = ae[e];
1780
+ for (let e = W.length - 1; e >= 0; --e) {
1781
+ let { shell: t, parent: n, nextSibling: r } = W[e];
1797
1782
  !t || !n || (r && r.parentNode === n ? n.insertBefore(t, r) : n.appendChild(t));
1798
1783
  }
1799
- ae.length = 0, H && (ee && ee.parentNode === H ? H.insertBefore(n, ee) : H.appendChild(n), H = null, ee = null), m ? n.setAttribute("style", m) : n.removeAttribute("style"), h || n.removeAttribute("data-mf-wallpaper-iframe");
1784
+ W.length = 0, H && (ee && ee.parentNode === H ? H.insertBefore(n, ee) : H.appendChild(n), H = null, ee = null), m ? n.setAttribute("style", m) : n.removeAttribute("style"), h || n.removeAttribute("data-mf-wallpaper-iframe");
1800
1785
  for (let { el: e, orig: t } of V) t ? e.setAttribute("style", t) : e.removeAttribute("style");
1801
1786
  V.length = 0, g ? a.setAttribute("style", g) : a.removeAttribute("style"), _ && (v ? _.setAttribute("style", v) : _.removeAttribute("style")), te &&= (ne && (re && re.parentNode === ne ? ne.insertBefore(te, re) : ne.appendChild(te), ne = null, re = null), null), y && (y.removeAttribute("data-mf-slot"), C ? y.setAttribute("style", C) : y.removeAttribute("style")), U && (ie ? U.setAttribute("style", ie) : U.removeAttribute("style"), U = null, ie = null);
1802
1787
  for (let { el: e, orig: t } of M) t ? e.setAttribute("style", t) : e.removeAttribute("style");
1803
1788
  F && (I ? F.setAttribute("style", I) : F.removeAttribute("style"), F = null, I = null), N && (P ? N.setAttribute("style", P) : N.removeAttribute("style"), N = null, P = null), o && (T ? o.setAttribute("style", T) : o.removeAttribute("style")), E && (D ? E.setAttribute("style", D) : E.removeAttribute("style")), O && (k ? O.setAttribute("style", k) : O.removeAttribute("style")), A && (j ? A.setAttribute("style", j) : A.removeAttribute("style")), s && (w ? s.setAttribute("style", w) : s.removeAttribute("style"));
1804
1789
  }
1805
1790
  };
1806
- return rt;
1791
+ return Qe;
1807
1792
  }, L = () => {};
1808
1793
  function R({ adFormat: e = "", stickyOffset: t = 0, logoPosX: n = 0, logoHeight: r = 0, logoSmallHeight: i = 0, ...a } = {}) {
1809
1794
  typeof L == "function" && L();
1810
1795
  let o = () => {};
1811
1796
  return e === "fireplace" ? o = d(t) : e === "fireplace-collant" ? o = f(t) : e === "logomorph" ? o = M(n, r, i) : e === "dynamicheading" ? o = j(a) : e === "interscroller" ? o = P(a) : e === "liquidframe" ? o = F(a) : e === "mobilefireplace" ? o = I(a) : console.warn("[powered-ad-config] Unknown ad format:", e), L = typeof o == "function" ? o : () => {}, L;
1812
1797
  }
1813
- R.version = "0.1.96";
1798
+ R.version = "0.1.97";
1814
1799
  //#endregion
1815
1800
  export { R as default };
@@ -69,7 +69,7 @@
69
69
  #app [data-ad-target="header-nav"] [role="menuitem"][aria-haspopup="menu"] {
70
70
  position: static;
71
71
  }
72
- `),a(Array.from(r.querySelectorAll(`main, aside, article, footer, [id*="adspot-desktop-banner-"]`)),[[`position`,`relative`],[`zIndex`,`1072`]]),a(y(`sidebar-sticky`,c||r),[[`zIndex`,`1072`]]);let l=s(r.querySelector(`footer`),`div`);l&&i(l,`position`,`relative`)}},D=[{site:`https://www.nine.com.au/sport`,config:E},{site:`https://www.nine.com.au/entertainment`,config:T},{site:`https://staging.nine.com.au/sport`,config:E},{site:`https://staging.nine.com.au/entertainment`,config:T},{site:`https://www.nine.com.au`,config:T},{site:`https://www.nine`,config:T},{site:`https://staging.nine`,config:T},{site:`https://www.yourtv`,config:_},{site:`https://staging.yourtv`,config:_}],O=()=>{let e=window.document.getElementById(`nineContent`);if(e&&(e.style.backgroundColor=L.siteBackgroundColor),N(),M(),j(),p.addEventListener(`scroll`,I),R=setTimeout(I,50),L===T||L===E){let e=L===T||L===E?x():null,t=e?.appRoot||S()||m.body,n=e?.desktopHeaderAds||m.querySelector(`#desktop-header-ads`);t&&p.MutationObserver&&(g=new p.MutationObserver(()=>{F()}),g.observe(t,{childList:!0,subtree:!0}),n&&n!==t&&g.observe(n,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[`class`]})),p.addEventListener(`resize`,F),F()}},k=()=>{let e=null;return e=m.querySelector(`div[id*="billboard"][id*="above"]`),e},A=()=>{let e=p.location.href;for(let t=0;t<D.length;t+=1)if(e.indexOf(D[t].site)>=0)return D[t].config;try{let t=new URL(e),n=t.hostname.toLowerCase(),r=t.pathname.toLowerCase();if(n.includes(`yourtv`))return _;if(r.startsWith(`/sport`))return E}catch{return T}return T},j=()=>{if(!window.parent)return;let e=m.querySelector(`div[id*="halfpage"][id*="above"]`);if(!e)return;let t=e;for(let e=0;e<6;e++)if(t=t.parentNode,t&&p.getComputedStyle(t).position===`sticky`){t.style.top=`${L.stickyMargin.offset}px`;break}},M=()=>{if(!f)return;let e=f.style;e.width=L.iframeWidth||`100%`,e.height=L.iframeHeight||l,e.backgroundColor=L.iframeBackgroundColor||u,e.position=`fixed`,L.iframeTop==null?e.removeProperty(`top`):e.top=L.iframeTop,e.left=`50%`,e.transform=`translate(-50%, 0)`;let t=f.parentElement;for(;t&&t!==m.body&&t!==m.documentElement;){let e=p.getComputedStyle(t);e.transform&&e.transform!==`none`&&(t.style.transform=`none`),e.willChange&&e.willChange!==`auto`&&(t.style.willChange=`auto`),e.contain&&e.contain!==`none`&&(t.style.contain=`none`),e.filter&&e.filter!==`none`&&(t.style.filter=`none`),e.perspective&&e.perspective!==`none`&&(t.style.perspective=`none`),e.overflow!==`visible`&&(t.style.overflow=`visible`),t=t.parentElement}},N=()=>{let e=k();if(!e)return;c(e,`0.1.96`);let t=e.style;e.className&&=``,t.minHeight=`250px`,t.marginTop=L.adNodeMarginTop+`px`,t.marginBottom=L.adNodeMarginBottom+`px`,t.position=`static`,t.display=`block`,L.zIndex&&L.zIndex()},P=()=>{let e=p.scrollY,t=f.style,n=document.getElementById(`siteContent`)?document.getElementById(`siteContent`).style:{};e>=0&&e<=z?(t.transform=`translate(-50%, ${-e}px)`,n.transform=`translateY(0)`):e>z&&e<=B?(t.transform=`translate(-50%, ${-z}px)`,n.transform=`translateY(${z-e}px)`):e>B&&(t.transform=`translate(-50%, ${-z}px)`,n.transform=`translateY(-250px)`)},F=()=>{L!==T&&L!==E||h||(h=p.requestAnimationFrame(()=>{h=null,M(),N(),j(),P()}))},I=()=>{P()};k();let L=A();if(!L)return()=>{};let R=null,z=d,B=z+250;return O(),()=>{p.removeEventListener(`scroll`,I),p.removeEventListener(`resize`,F),g&&=(g.disconnect(),null),h&&=(p.cancelAnimationFrame(h),null),R&&=(clearTimeout(R),null)}},f=o=>{let c=window.frameElement?window.frameElement:null;if(!c)return()=>{};let l=window.parent;if(!l||l===window)return()=>{};let u=null;try{u=l.document,l.location.href}catch{return()=>{}}let d=document.getElementById(`nineMasthead`),f=d?d.style:{},p,m=e=>{if(!e.querySelector(`div[id*="tablet"][id*="takeover"]`))return;let t=e.getElementById(`powered-ac-tablet-takeover-static-fix`);t||(t=e.createElement(`style`),t.id=`powered-ac-tablet-takeover-static-fix`,e.head.appendChild(t)),t.textContent=`
72
+ `),a(Array.from(r.querySelectorAll(`main, aside, article, footer, [id*="adspot-desktop-banner-"]`)),[[`position`,`relative`],[`zIndex`,`1072`]]),a(y(`sidebar-sticky`,c||r),[[`zIndex`,`1072`]]);let l=s(r.querySelector(`footer`),`div`);l&&i(l,`position`,`relative`)}},D=[{site:`https://www.nine.com.au/sport`,config:E},{site:`https://www.nine.com.au/entertainment`,config:T},{site:`https://staging.nine.com.au/sport`,config:E},{site:`https://staging.nine.com.au/entertainment`,config:T},{site:`https://www.nine.com.au`,config:T},{site:`https://www.nine`,config:T},{site:`https://staging.nine`,config:T},{site:`https://www.yourtv`,config:_},{site:`https://staging.yourtv`,config:_}],O=()=>{let e=window.document.getElementById(`nineContent`);if(e&&(e.style.backgroundColor=L.siteBackgroundColor),N(),M(),j(),p.addEventListener(`scroll`,I),R=setTimeout(I,50),L===T||L===E){let e=L===T||L===E?x():null,t=e?.appRoot||S()||m.body,n=e?.desktopHeaderAds||m.querySelector(`#desktop-header-ads`);t&&p.MutationObserver&&(g=new p.MutationObserver(()=>{F()}),g.observe(t,{childList:!0,subtree:!0}),n&&n!==t&&g.observe(n,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[`class`]})),p.addEventListener(`resize`,F),F()}},k=()=>{let e=null;return e=m.querySelector(`div[id*="billboard"][id*="above"]`),e},A=()=>{let e=p.location.href;for(let t=0;t<D.length;t+=1)if(e.indexOf(D[t].site)>=0)return D[t].config;try{let t=new URL(e),n=t.hostname.toLowerCase(),r=t.pathname.toLowerCase();if(n.includes(`yourtv`))return _;if(r.startsWith(`/sport`))return E}catch{return T}return T},j=()=>{if(!window.parent)return;let e=m.querySelector(`div[id*="halfpage"][id*="above"]`);if(!e)return;let t=e;for(let e=0;e<6;e++)if(t=t.parentNode,t&&p.getComputedStyle(t).position===`sticky`){t.style.top=`${L.stickyMargin.offset}px`;break}},M=()=>{if(!f)return;let e=f.style;e.width=L.iframeWidth||`100%`,e.height=L.iframeHeight||l,e.backgroundColor=L.iframeBackgroundColor||u,e.position=`fixed`,L.iframeTop==null?e.removeProperty(`top`):e.top=L.iframeTop,e.left=`50%`,e.transform=`translate(-50%, 0)`;let t=f.parentElement;for(;t&&t!==m.body&&t!==m.documentElement;){let e=p.getComputedStyle(t);e.transform&&e.transform!==`none`&&(t.style.transform=`none`),e.willChange&&e.willChange!==`auto`&&(t.style.willChange=`auto`),e.contain&&e.contain!==`none`&&(t.style.contain=`none`),e.filter&&e.filter!==`none`&&(t.style.filter=`none`),e.perspective&&e.perspective!==`none`&&(t.style.perspective=`none`),e.overflow!==`visible`&&(t.style.overflow=`visible`),t=t.parentElement}},N=()=>{let e=k();if(!e)return;c(e,`0.1.97`);let t=e.style;e.className&&=``,t.minHeight=`250px`,t.marginTop=L.adNodeMarginTop+`px`,t.marginBottom=L.adNodeMarginBottom+`px`,t.position=`static`,t.display=`block`,L.zIndex&&L.zIndex()},P=()=>{let e=p.scrollY,t=f.style,n=document.getElementById(`siteContent`)?document.getElementById(`siteContent`).style:{};e>=0&&e<=z?(t.transform=`translate(-50%, ${-e}px)`,n.transform=`translateY(0)`):e>z&&e<=B?(t.transform=`translate(-50%, ${-z}px)`,n.transform=`translateY(${z-e}px)`):e>B&&(t.transform=`translate(-50%, ${-z}px)`,n.transform=`translateY(-250px)`)},F=()=>{L!==T&&L!==E||h||(h=p.requestAnimationFrame(()=>{h=null,M(),N(),j(),P()}))},I=()=>{P()};k();let L=A();if(!L)return()=>{};let R=null,z=d,B=z+250;return O(),()=>{p.removeEventListener(`scroll`,I),p.removeEventListener(`resize`,F),g&&=(g.disconnect(),null),h&&=(p.cancelAnimationFrame(h),null),R&&=(clearTimeout(R),null)}},f=o=>{let c=window.frameElement?window.frameElement:null;if(!c)return()=>{};let l=window.parent;if(!l||l===window)return()=>{};let u=null;try{u=l.document,l.location.href}catch{return()=>{}}let d=document.getElementById(`nineMasthead`),f=d?d.style:{},p,m=e=>{if(!e.querySelector(`div[id*="tablet"][id*="takeover"]`))return;let t=e.getElementById(`powered-ac-tablet-takeover-static-fix`);t||(t=e.createElement(`style`),t.id=`powered-ac-tablet-takeover-static-fix`,e.head.appendChild(t)),t.textContent=`
73
73
  div:has(#adspot-tablet-takeover-2-above) {
74
74
  position: static;
75
75
  }
@@ -132,9 +132,9 @@
132
132
  transform: translateX(-50%) !important;
133
133
  z-index: 1089 !important;
134
134
  }
135
- `)},y={siteBackgroundColor:`#ffffff`,fireplaceLeftMargin:0,adNodeMarginTop:-24,adNodeMarginBottom:24,responsiveScroll:-124,xPosHalfpage:722,yPosHalfpage:72,stickyMargin:{offset:160,isSticky:!0},maskOffset:298,zIndex:function(){let e=window.parent.document,t=(e,t)=>e.forEach(e=>t.forEach(([t,n])=>e.style[t]=n));e.querySelector(`.nk-demographics`)?.setAttribute(`style`,`max-width:1190px;left:50%;transform:translate(-50%,0);`),e.querySelector(`.nk-footer`)?.setAttribute(`style`,`position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);`),e.querySelector(`article`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#article`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#VideoIndex`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#Index`)?.setAttribute(`style`,`position:relative`),e.querySelector(`.show`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#adspot-desktop-banner-7-below`)?.setAttribute(`style`,`position:relative`),t(e.querySelectorAll(`.column`),[[`position`,`relative`]]),t(e.querySelectorAll(`.advert`),[[`position`,`relative`]]),t(e.querySelectorAll(`blockquote`),[[`zIndex`,`1`]]),e.querySelector(`div[type="BANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[type="MBANNER"]`)?.setAttribute(`style`,`display:none`)}},b={siteBackgroundColor:`#ffffff`,fireplaceLeftMargin:0,adNodeMarginTop:-24,adNodeMarginBottom:-13,responsiveScroll:-120,xPosHalfpage:722,yPosHalfpage:32,stickyMargin:{offset:166,isSticky:!0},maskOffset:304,zIndex:function(){let e=window.parent.document;e.querySelector(`section[data-section="marketing-banner"]`)?.setAttribute(`style`,`position:relative`),e.querySelector(`div[data-testid="live-tv"]`)?.parentNode?.setAttribute(`style`,`position:relative`),e.querySelector(`div[data-contentunit-id="stan"]`)?.parentNode?.setAttribute(`style`,`position:relative`),e.querySelector(`small`)?.setAttribute(`style`,`position:inherit`),m(e),v()}},x={siteBackgroundColor:`#ffffff`,fireplaceLeftMargin:0,adNodeMarginTop:-24,adNodeMarginBottom:0,responsiveScroll:-124,xPosHalfpage:720,yPosHalfpage:32,stickyMargin:{offset:160,isSticky:!0},maskOffset:312,zIndex:function(){let e=window.parent.document,t=s(e.querySelector(`footer`),`div`);t&&(t.style.position=`relative`),m(e),v()}},S=[{site:`https://www.nine.com.au/sport`,config:x},{site:`https://www.nine.com.au/entertainment`,config:b},{site:`https://staging.nine.com.au/sport`,config:x},{site:`https://staging.nine.com.au/entertainment`,config:b},{site:`https://www.nine.com.au`,config:b},{site:`https://www.nine`,config:b},{site:`https://staging.nine`,config:b},{site:`https://www.yourtv`,config:y},{site:`https://staging.yourtv`,config:y}],C=()=>{let e=window.document.getElementById(`nineContent`);e&&(e.style.backgroundColor=F.siteBackgroundColor),d&&(f.setProperty(`--masthead-height`,`250px`),f.height=`var(--masthead-height)`),k(),O(),E(),A(),l.addEventListener(`scroll`,N,{passive:!0}),I=setTimeout(N,50)},w=()=>{let e=null;return e=u.querySelector(`div[id*="billboard"][id*="above"]`),e},T=()=>{let e=u.querySelector(`nav`);if(h(`header-ad-desktop`)||!e)return 0;let t=l.getComputedStyle(e);if(t.position!==`fixed`)return 0;let n=parseFloat(t.top||`0`);return Number.isFinite(n)&&Math.abs(n)>1?0:Math.round(e.getBoundingClientRect().height)||0},E=()=>{let e=null;if(!window.parent)return e;if(e=u.querySelector(`div[id*="halfpage"][id*="above"]`),!e)return;let t=e;for(let e=0;e<6;e++)if(t=t.parentNode,t&&l.getComputedStyle(t).position===`sticky`){t.style.top=`${F.stickyMargin.offset}px`;break}},D=()=>{let e=l.location.href;for(let t=0;t<S.length;t+=1)if(e.indexOf(S[t].site)>=0)return S[t].config},O=()=>{if(!c)return;let e=c.style;e.width=`100%`,e.height=`1000px`,e.position=`fixed`,e.left=`50%`,e.setProperty(`--transform-y`,`0px`),e.transform=`translate3d(-50%, var(--transform-y), 0)`},k=()=>{if(!P)return;let e=P.style;P.className=``,e.minHeight=`250px`,e.marginTop=F.adNodeMarginTop+`px`,e.marginBottom=F.adNodeMarginBottom+`px`,e.position=`static`,e.display=`block`,F.zIndex&&F.zIndex()},A=()=>{p=u.querySelector(`div[data-contentunit-id="stan"]`)?.parentNode||u.querySelector(`div[data-ui-testid="header-score-strip"]`)?.parentNode||h(`main`)||h(`container`)||h(`page-container`)||u.querySelector(`div[class*="__MyContainer"]`)||u.querySelector(`div[class*="__ArticleContainer"]`)||u.querySelector(`div[class*="__VideoIndexComponent"]`)||u.querySelector(`div.container.layout`)||u.querySelector(`main.container.layout`),p&&(p.style.willChange=`clip-path`,p.style.transition=`none`,p.style.webkitBackfaceVisibility=`hidden`,p.style.backfaceVisibility=`hidden`,p.style.transform=`translate3d(0,0,0)`,p.style.backgroundColor=F.siteBackgroundColor,p.style.setProperty(`--mask-inset`,`0px`),p.style.clipPath=`inset(var(--mask-inset, 0px) 0 0 0)`)},j=0,M=0,N=()=>{let e=l.scrollY,t=e>j,n=e>R?e-F.maskOffset:0,r=Math.abs(n-M);if(p)if(t&&n>M)if(r>100){let e=Math.max(0,n-100);p.style.transition=`none`,p.style.setProperty(`--mask-inset`,`${e}px`),p.offsetHeight,p.style.transition=`clip-path 0.3s ease-out`,p.style.setProperty(`--mask-inset`,`${n}px`)}else p.style.transition=`clip-path 0.3s ease-out`,p.style.setProperty(`--mask-inset`,`${n}px`);else p.style.transition=`none`,p.style.setProperty(`--mask-inset`,`${n}px`);j=e,M=n,e>R?(c.style.setProperty(`--transform-y`,`${-L}px`),f.setProperty(`--masthead-height`,`100px`),window.CollantOn||window.goCollant()):e>L&&e<=R?(c.style.setProperty(`--transform-y`,`${-L}px`),f.setProperty(`--masthead-height`,`${250+L-e}px`),window.CollantOn&&window.goBillboard()):e>=0&&e<=L&&(c.style.setProperty(`--transform-y`,`${-e}px`),f.setProperty(`--masthead-height`,`250px`),window.CollantOn&&window.goBillboard())},P=w(),F=D();if(!F)return()=>{};let I=null,L=-F.responsiveScroll+o+T(),R=L+150;return C(),()=>{l.removeEventListener(`scroll`,N),I&&=(clearTimeout(I),null)}},p=866,m=68,h=16,g=`:scope > header h1, :scope > header h2, :scope > header h3`,_=`h1, h2, h3`,v=`#app main header h1, #app main header h2, #app main header h3, #app h1, #app h2, #app h3`,y=`adspot-desktop-takeover-2-above`,b=-24,x=-24,S=[`www.nine.com.au`,`staging.nine.com.au`,`preview.nine.com.au`,`render-web-nine-staging-v1.ffxblue.com.au`,`render-web-nine-production-v1.ffxblue.com.au`],C=[{hostnames:S,path:`/sport`,headingText:`Sport`,slotId:y}],w=new Set([`localhost`,`127.0.0.1`]),T=`__poweredAdConfigDynamicHeadingActive`,E=`data-pac-dynamicheading-owner`,D=`data-pac-reparented`,O=(e,t)=>{if(typeof e==`number`&&Number.isFinite(e))return`${e}px`;if(typeof e==`string`){let n=e.trim();return n?/^-?\d+(\.\d+)?$/.test(n)?`${n}px`:n:`${t}px`}return`${t}px`},k=e=>{if(!e||typeof e!=`object`)return null;let t=typeof e.headingText==`string`?e.headingText.trim():``,n=typeof e.path==`string`?e.path.trim().toLowerCase():``,r=typeof e.pathPrefix==`string`?e.pathPrefix.trim().toLowerCase():``,i=Array.isArray(e.hostnames)?e.hostnames.map(e=>String(e).trim().toLowerCase()).filter(Boolean):[];return!t||!n&&!r?null:{headingText:t,path:n||null,pathPrefix:r||null,slotId:typeof e.slotId==`string`&&e.slotId.trim()?e.slotId.trim():y,hostnames:i.length?i:S}},A=e=>{if(!Array.isArray(e)||e.length===0)return C;let t=e.map(k).filter(Boolean);return t.length?t:C},j=({offsetTop:e=b,offsetLeft:t=x,width:n=p,height:i=m,pageTargets:a=C}={})=>{let o=window.frameElement||null;if(!o)return()=>{};let s=window.parent;if(!s||s===window)return()=>{};let c=null;try{c=s.document,s.location.href}catch{return()=>{}}let l=s[T];if(l?.iframe===o&&typeof l.cleanup==`function`)return l.cleanup;if(l?.iframe?.isConnected&&typeof l?.cleanup==`function`)return()=>{};typeof l?.cleanup==`function`&&l.cleanup();let u=`dynamicheading-${Date.now()}-${Math.random().toString(36).slice(2,8)}`,d=(e,t,n)=>{e&&e.style[t]!==n&&(e.style[t]=n)},f=()=>{try{let e=window.location.hostname.toLowerCase();return w.has(e)?!0:new URLSearchParams(window.location.search).get(`keepDynamicHeadingVisible`)===`1`}catch{return!1}},y=(e=o.parentElement)=>{let t=e;for(;t&&t!==c.body;){let e=t.id||``,n=t.getAttribute?.(`data-testid`)||``,r=t.getAttribute?.(`type`)||``;if(e.includes(`adspot`)||n.toLowerCase().includes(`ad`)||r)return t;t=t.parentElement}return o.parentElement},S=()=>{try{let e=new URL(s.location.href),t=e.hostname.toLowerCase(),n=e.pathname.toLowerCase();return B.find(e=>{let r=e.hostnames.includes(t),i=e.path?n===e.path:n.startsWith(e.pathPrefix);return r&&i})||null}catch{return null}return null},k=()=>{let e=r(c,`app`)||c.getElementById(`app`)||c,t=r(e,`page-container`)||e;return r(r(t,`container`)||t,`main`)||r(e,`main`)||c.querySelector(`#app main`)||null},j=e=>{if(!e||!e.isConnected)return!1;let t=e.getBoundingClientRect();if(t.width<=0||t.height<=0)return!1;let n=s.getComputedStyle(e);return n.display!==`none`&&n.visibility!==`hidden`},M=()=>{let e=k(),t=e?[...e.querySelectorAll(g),...e.querySelectorAll(_)]:[],n=t.length?[]:Array.from(c.querySelectorAll(v));return Array.from(new Set([...t,...n])).filter(j)},N=e=>{let t=M();if(!t.length)return null;let n=typeof e==`string`?e.trim().toLowerCase():``;if(n){let e=t.find(e=>e.textContent?.trim().toLowerCase()===n);if(e)return e}return t.find(e=>e.tagName===`H1`)||t[0]||null},P=null,F=null;f();let I=O(e,b),L=O(t,x),R=O(n,p),z=O(i,m),B=A(a),V=S();if(!V)return()=>{};let H=y((V.slotId?c.getElementById(V.slotId):null)||o.parentElement);if(!H)return()=>{};let ee=H.getAttribute(E);if(ee&&ee!==u)return()=>{};let te={width:H.style.width,maxWidth:H.style.maxWidth,minWidth:H.style.minWidth,height:H.style.height,minHeight:H.style.minHeight,marginTop:H.style.marginTop,marginBottom:H.style.marginBottom,marginLeft:H.style.marginLeft,marginRight:H.style.marginRight,position:H.style.position,top:H.style.top,left:H.style.left,right:H.style.right,transform:H.style.transform,display:H.style.display,opacity:H.style.opacity,transition:H.style.transition,pointerEvents:H.style.pointerEvents,zIndex:H.style.zIndex,overflow:H.style.overflow},ne={width:o.style.width,height:o.style.height,display:o.style.display,border:o.style.border,position:o.style.position,pointerEvents:o.style.pointerEvents},re=[],U=parseFloat(z)||m,ie=parseFloat(I)||0,ae=parseFloat(L)||0,W=()=>{let e=H.parentElement;for(;e&&e!==c.body;)re.push({element:e,overflow:e.style.overflow}),d(e,`overflow`,`visible`),e=e.parentElement},oe=()=>{d(H,`width`,R),d(H,`maxWidth`,R),d(H,`minWidth`,R),d(H,`height`,z),d(H,`minHeight`,z),d(H,`display`,`block`),d(H,`overflow`,`hidden`),d(H,`pointerEvents`,`none`),d(H,`zIndex`,`1080`),H.setAttribute(E,u),d(o,`width`,R),d(o,`height`,z),d(o,`display`,`block`),d(o,`border`,`0`),d(o,`position`,`relative`),d(o,`pointerEvents`,`auto`)},se={element:null,position:``},G=()=>{let e=H.parentElement;e&&s.getComputedStyle(e).position===`static`&&(se.element=e,se.position=e.style.position,d(e,`position`,`relative`)),d(H,`position`,`absolute`),d(H,`top`,`${ie}px`),d(H,`left`,`${ae}px`),d(H,`right`,`auto`),d(H,`marginTop`,`0px`),d(H,`marginBottom`,`${h}px`),d(H,`marginLeft`,`0px`),d(H,`marginRight`,`0px`),d(H,`transform`,``)},ce=e=>{let t=null;try{let e=o.contentDocument;if(!e)return!1;let n=e.getElementById(`unitContainer`);if(!n)return!1;let r=Array.from(e.querySelectorAll(`link[rel="stylesheet"]`)).map(e=>e.outerHTML).join(`
135
+ `)},y={siteBackgroundColor:`#ffffff`,fireplaceLeftMargin:0,adNodeMarginTop:-24,adNodeMarginBottom:24,responsiveScroll:-124,xPosHalfpage:722,yPosHalfpage:72,stickyMargin:{offset:160,isSticky:!0},maskOffset:298,zIndex:function(){let e=window.parent.document,t=(e,t)=>e.forEach(e=>t.forEach(([t,n])=>e.style[t]=n));e.querySelector(`.nk-demographics`)?.setAttribute(`style`,`max-width:1190px;left:50%;transform:translate(-50%,0);`),e.querySelector(`.nk-footer`)?.setAttribute(`style`,`position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);`),e.querySelector(`article`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#article`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#VideoIndex`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#Index`)?.setAttribute(`style`,`position:relative`),e.querySelector(`.show`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#adspot-desktop-banner-7-below`)?.setAttribute(`style`,`position:relative`),t(e.querySelectorAll(`.column`),[[`position`,`relative`]]),t(e.querySelectorAll(`.advert`),[[`position`,`relative`]]),t(e.querySelectorAll(`blockquote`),[[`zIndex`,`1`]]),e.querySelector(`div[type="BANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[type="MBANNER"]`)?.setAttribute(`style`,`display:none`)}},b={siteBackgroundColor:`#ffffff`,fireplaceLeftMargin:0,adNodeMarginTop:-24,adNodeMarginBottom:-13,responsiveScroll:-120,xPosHalfpage:722,yPosHalfpage:32,stickyMargin:{offset:166,isSticky:!0},maskOffset:304,zIndex:function(){let e=window.parent.document;e.querySelector(`section[data-section="marketing-banner"]`)?.setAttribute(`style`,`position:relative`),e.querySelector(`div[data-testid="live-tv"]`)?.parentNode?.setAttribute(`style`,`position:relative`),e.querySelector(`div[data-contentunit-id="stan"]`)?.parentNode?.setAttribute(`style`,`position:relative`),e.querySelector(`small`)?.setAttribute(`style`,`position:inherit`),m(e),v()}},x={siteBackgroundColor:`#ffffff`,fireplaceLeftMargin:0,adNodeMarginTop:-24,adNodeMarginBottom:0,responsiveScroll:-124,xPosHalfpage:720,yPosHalfpage:32,stickyMargin:{offset:160,isSticky:!0},maskOffset:312,zIndex:function(){let e=window.parent.document,t=s(e.querySelector(`footer`),`div`);t&&(t.style.position=`relative`),m(e),v()}},S=[{site:`https://www.nine.com.au/sport`,config:x},{site:`https://www.nine.com.au/entertainment`,config:b},{site:`https://staging.nine.com.au/sport`,config:x},{site:`https://staging.nine.com.au/entertainment`,config:b},{site:`https://www.nine.com.au`,config:b},{site:`https://www.nine`,config:b},{site:`https://staging.nine`,config:b},{site:`https://www.yourtv`,config:y},{site:`https://staging.yourtv`,config:y}],C=()=>{let e=window.document.getElementById(`nineContent`);e&&(e.style.backgroundColor=F.siteBackgroundColor),d&&(f.setProperty(`--masthead-height`,`250px`),f.height=`var(--masthead-height)`),k(),O(),E(),A(),l.addEventListener(`scroll`,N,{passive:!0}),I=setTimeout(N,50)},w=()=>{let e=null;return e=u.querySelector(`div[id*="billboard"][id*="above"]`),e},T=()=>{let e=u.querySelector(`nav`);if(h(`header-ad-desktop`)||!e)return 0;let t=l.getComputedStyle(e);if(t.position!==`fixed`)return 0;let n=parseFloat(t.top||`0`);return Number.isFinite(n)&&Math.abs(n)>1?0:Math.round(e.getBoundingClientRect().height)||0},E=()=>{let e=null;if(!window.parent)return e;if(e=u.querySelector(`div[id*="halfpage"][id*="above"]`),!e)return;let t=e;for(let e=0;e<6;e++)if(t=t.parentNode,t&&l.getComputedStyle(t).position===`sticky`){t.style.top=`${F.stickyMargin.offset}px`;break}},D=()=>{let e=l.location.href;for(let t=0;t<S.length;t+=1)if(e.indexOf(S[t].site)>=0)return S[t].config},O=()=>{if(!c)return;let e=c.style;e.width=`100%`,e.height=`1000px`,e.position=`fixed`,e.left=`50%`,e.setProperty(`--transform-y`,`0px`),e.transform=`translate3d(-50%, var(--transform-y), 0)`},k=()=>{if(!P)return;let e=P.style;P.className=``,e.minHeight=`250px`,e.marginTop=F.adNodeMarginTop+`px`,e.marginBottom=F.adNodeMarginBottom+`px`,e.position=`static`,e.display=`block`,F.zIndex&&F.zIndex()},A=()=>{p=u.querySelector(`div[data-contentunit-id="stan"]`)?.parentNode||u.querySelector(`div[data-ui-testid="header-score-strip"]`)?.parentNode||h(`main`)||h(`container`)||h(`page-container`)||u.querySelector(`div[class*="__MyContainer"]`)||u.querySelector(`div[class*="__ArticleContainer"]`)||u.querySelector(`div[class*="__VideoIndexComponent"]`)||u.querySelector(`div.container.layout`)||u.querySelector(`main.container.layout`),p&&(p.style.willChange=`clip-path`,p.style.transition=`none`,p.style.webkitBackfaceVisibility=`hidden`,p.style.backfaceVisibility=`hidden`,p.style.transform=`translate3d(0,0,0)`,p.style.backgroundColor=F.siteBackgroundColor,p.style.setProperty(`--mask-inset`,`0px`),p.style.clipPath=`inset(var(--mask-inset, 0px) 0 0 0)`)},j=0,M=0,N=()=>{let e=l.scrollY,t=e>j,n=e>R?e-F.maskOffset:0,r=Math.abs(n-M);if(p)if(t&&n>M)if(r>100){let e=Math.max(0,n-100);p.style.transition=`none`,p.style.setProperty(`--mask-inset`,`${e}px`),p.offsetHeight,p.style.transition=`clip-path 0.3s ease-out`,p.style.setProperty(`--mask-inset`,`${n}px`)}else p.style.transition=`clip-path 0.3s ease-out`,p.style.setProperty(`--mask-inset`,`${n}px`);else p.style.transition=`none`,p.style.setProperty(`--mask-inset`,`${n}px`);j=e,M=n,e>R?(c.style.setProperty(`--transform-y`,`${-L}px`),f.setProperty(`--masthead-height`,`100px`),window.CollantOn||window.goCollant()):e>L&&e<=R?(c.style.setProperty(`--transform-y`,`${-L}px`),f.setProperty(`--masthead-height`,`${250+L-e}px`),window.CollantOn&&window.goBillboard()):e>=0&&e<=L&&(c.style.setProperty(`--transform-y`,`${-e}px`),f.setProperty(`--masthead-height`,`250px`),window.CollantOn&&window.goBillboard())},P=w(),F=D();if(!F)return()=>{};let I=null,L=-F.responsiveScroll+o+T(),R=L+150;return C(),()=>{l.removeEventListener(`scroll`,N),I&&=(clearTimeout(I),null)}},p=866,m=68,h=16,g=`:scope > header h1, :scope > header h2, :scope > header h3`,_=`h1, h2, h3`,v=`#app main header h1, #app main header h2, #app main header h3, #app h1, #app h2, #app h3`,y=`adspot-desktop-takeover-2-above`,b=-24,x=-24,S=[`www.nine.com.au`,`staging.nine.com.au`,`preview.nine.com.au`,`render-web-nine-staging-v1.ffxblue.com.au`,`render-web-nine-production-v1.ffxblue.com.au`],C=[{hostnames:S,path:`/sport`,headingText:`Sport`,slotId:y}],w=new Set([`localhost`,`127.0.0.1`]),T=`__poweredAdConfigDynamicHeadingActive`,E=`data-pac-dynamicheading-owner`,D=`data-pac-reparented`,O=(e,t)=>{if(typeof e==`number`&&Number.isFinite(e))return`${e}px`;if(typeof e==`string`){let n=e.trim();return n?/^-?\d+(\.\d+)?$/.test(n)?`${n}px`:n:`${t}px`}return`${t}px`},k=e=>{if(!e||typeof e!=`object`)return null;let t=typeof e.headingText==`string`?e.headingText.trim():``,n=typeof e.path==`string`?e.path.trim().toLowerCase():``,r=typeof e.pathPrefix==`string`?e.pathPrefix.trim().toLowerCase():``,i=Array.isArray(e.hostnames)?e.hostnames.map(e=>String(e).trim().toLowerCase()).filter(Boolean):[];return!t||!n&&!r?null:{headingText:t,path:n||null,pathPrefix:r||null,slotId:typeof e.slotId==`string`&&e.slotId.trim()?e.slotId.trim():y,hostnames:i.length?i:S}},A=e=>{if(!Array.isArray(e)||e.length===0)return C;let t=e.map(k).filter(Boolean);return t.length?t:C},j=({offsetTop:e=b,offsetLeft:t=x,width:n=p,height:i=m,pageTargets:a=C}={})=>{let o=window.frameElement||null;if(!o)return()=>{};let s=window.parent;if(!s||s===window)return()=>{};let c=null;try{c=s.document,s.location.href}catch{return()=>{}}let l=s[T];if(l?.iframe===o&&typeof l.cleanup==`function`)return l.cleanup;if(l?.iframe?.isConnected&&typeof l?.cleanup==`function`)return()=>{};typeof l?.cleanup==`function`&&l.cleanup();let u=`dynamicheading-${Date.now()}-${Math.random().toString(36).slice(2,8)}`,d=(e,t,n)=>{e&&e.style[t]!==n&&(e.style[t]=n)},f=()=>{try{let e=window.location.hostname.toLowerCase();return w.has(e)?!0:new URLSearchParams(window.location.search).get(`keepDynamicHeadingVisible`)===`1`}catch{return!1}},y=(e=o.parentElement)=>{let t=e;for(;t&&t!==c.body;){let e=t.id||``,n=t.getAttribute?.(`data-testid`)||``,r=t.getAttribute?.(`type`)||``;if(e.includes(`adspot`)||n.toLowerCase().includes(`ad`)||r)return t;t=t.parentElement}return o.parentElement},S=()=>{try{let e=new URL(s.location.href),t=e.hostname.toLowerCase(),n=e.pathname.toLowerCase();return B.find(e=>{let r=e.hostnames.includes(t),i=e.path?n===e.path:n.startsWith(e.pathPrefix);return r&&i})||null}catch{return null}return null},k=()=>{let e=r(c,`app`)||c.getElementById(`app`)||c,t=r(e,`page-container`)||e;return r(r(t,`container`)||t,`main`)||r(e,`main`)||c.querySelector(`#app main`)||null},j=e=>{if(!e||!e.isConnected)return!1;let t=e.getBoundingClientRect();if(t.width<=0||t.height<=0)return!1;let n=s.getComputedStyle(e);return n.display!==`none`&&n.visibility!==`hidden`},M=()=>{let e=k(),t=e?[...e.querySelectorAll(g),...e.querySelectorAll(_)]:[],n=t.length?[]:Array.from(c.querySelectorAll(v));return Array.from(new Set([...t,...n])).filter(j)},N=e=>{let t=M();if(!t.length)return null;let n=typeof e==`string`?e.trim().toLowerCase():``;if(n){let e=t.find(e=>e.textContent?.trim().toLowerCase()===n);if(e)return e}return t.find(e=>e.tagName===`H1`)||t[0]||null},P=null,F=null;f();let I=O(e,b),L=O(t,x),R=O(n,p),z=O(i,m),B=A(a),V=S();if(!V)return()=>{};let H=y((V.slotId?c.getElementById(V.slotId):null)||o.parentElement);if(!H)return()=>{};let ee=H.getAttribute(E);if(ee&&ee!==u)return()=>{};let te={width:H.style.width,maxWidth:H.style.maxWidth,minWidth:H.style.minWidth,height:H.style.height,minHeight:H.style.minHeight,marginTop:H.style.marginTop,marginBottom:H.style.marginBottom,marginLeft:H.style.marginLeft,marginRight:H.style.marginRight,position:H.style.position,top:H.style.top,left:H.style.left,right:H.style.right,transform:H.style.transform,display:H.style.display,opacity:H.style.opacity,transition:H.style.transition,pointerEvents:H.style.pointerEvents,zIndex:H.style.zIndex,overflow:H.style.overflow},ne={width:o.style.width,height:o.style.height,display:o.style.display,border:o.style.border,position:o.style.position,pointerEvents:o.style.pointerEvents},re=[],U=parseFloat(z)||m,ie=parseFloat(I)||0,W=parseFloat(L)||0,G=()=>{let e=H.parentElement;for(;e&&e!==c.body;)re.push({element:e,overflow:e.style.overflow}),d(e,`overflow`,`visible`),e=e.parentElement},ae=()=>{d(H,`width`,R),d(H,`maxWidth`,R),d(H,`minWidth`,R),d(H,`height`,z),d(H,`minHeight`,z),d(H,`display`,`block`),d(H,`overflow`,`hidden`),d(H,`pointerEvents`,`none`),d(H,`zIndex`,`1080`),H.setAttribute(E,u),d(o,`width`,R),d(o,`height`,z),d(o,`display`,`block`),d(o,`border`,`0`),d(o,`position`,`relative`),d(o,`pointerEvents`,`auto`)},oe={element:null,position:``},K=()=>{let e=H.parentElement;e&&s.getComputedStyle(e).position===`static`&&(oe.element=e,oe.position=e.style.position,d(e,`position`,`relative`)),d(H,`position`,`absolute`),d(H,`top`,`${ie}px`),d(H,`left`,`${W}px`),d(H,`right`,`auto`),d(H,`marginTop`,`0px`),d(H,`marginBottom`,`${h}px`),d(H,`marginLeft`,`0px`),d(H,`marginRight`,`0px`),d(H,`transform`,``)},se=e=>{let t=null;try{let e=o.contentDocument;if(!e)return!1;let n=e.getElementById(`unitContainer`);if(!n)return!1;let r=Array.from(e.querySelectorAll(`link[rel="stylesheet"]`)).map(e=>e.outerHTML).join(`
136
136
  `),i=Array.from(e.querySelectorAll(`script[src]`)).filter(e=>{let t=e.getAttribute(`src`)||``;return/(s0\.2mdn\.net|cdn\.jsdelivr\.net|players\.brightcove\.net)/.test(t)}).map(e=>e.outerHTML).join(`
137
- `);t=`<!doctype html><html><head><meta charset="utf-8">${r}<style>html,body{margin:0;padding:0;background:transparent;}</style></head><body>${n.outerHTML}${i}</body></html>`}catch{return!1}if(!t)return!1;o.setAttribute(D,`1`);try{e.parentNode?.insertBefore(H,e)}catch{return o.removeAttribute(D),!1}W(),oe(),G();try{o.srcdoc=t}catch{return!1}return!0},le=()=>{d(H,`position`,`fixed`),d(H,`marginTop`,`0px`),d(H,`marginBottom`,`0px`),d(H,`marginLeft`,`0px`),d(H,`marginRight`,`0px`),d(H,`transform`,``)},ue=()=>{d(H,`display`,`none`)},de=()=>{d(H,`display`,`block`),d(H,`overflow`,`hidden`)},K=null,q=()=>{if((!K||!K.isConnected)&&(K=N(V.headingText)),!K)return;let e=K.getBoundingClientRect(),t=e.top-U-h+ie,n=e.left+ae;d(H,`top`,`${t}px`),d(H,`left`,`${n}px`),d(H,`right`,`auto`)},J=null,Y=null,X=!1,fe=(e=12)=>{if(K=N(V.headingText),!K){e>1&&(F=s.setTimeout(()=>fe(e-1),250));return}ce(K)||(X=!0,W(),oe(),le(),q(),J=()=>q(),Y=()=>q(),s.addEventListener(`scroll`,J,{passive:!0}),s.addEventListener(`resize`,Y))};fe();let Z=()=>{F&&=(s.clearTimeout(F),null),P&&=(s.clearTimeout(P),null),J&&=(s.removeEventListener(`scroll`,J),null),Y&&=(s.removeEventListener(`resize`,Y),null),H.getAttribute(E)===u&&H.removeAttribute(E),X&&(Object.entries(te).forEach(([e,t])=>{H.style[e]=t}),Object.entries(ne).forEach(([e,t])=>{o.style[e]=t}),re.forEach(({element:e,overflow:t})=>{e.style.overflow=t})),s[T]?.instanceId===u&&delete s[T]};return s[T]={instanceId:u,iframe:o,cleanup:Z,show:de,hide:ue},Z},M=(e,t,n)=>{let r=window.frameElement?window.frameElement:null;if(!r)return()=>{};let i=window.parent;if(!i||i===window)return()=>{};let a=null;try{a=i.document,i.location.href}catch{return()=>{}}let o={siteBackgroundColor:`#ffffff`,logoTop:`44px`,logoLeft:`50%`,logoTransform:`translateX(-50%)`,logoSmallLeft:`250px`,logoSmallTransform:`translateX(0px)`,logoSmallFilter:`none`,zIndex:function(){let e=window.parent.document;e.querySelector(`.container--padded`)?.setAttribute(`style`,`position:relative`),((e,t)=>e.forEach(e=>t.forEach(([t,n])=>e.style[t]=n)))(e.querySelectorAll(`.advert`),[[`position`,`relative`]]),e.querySelector(`.footer-netkit`)?.setAttribute(`style`,`position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);`),e.querySelector(`div[type="BANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[type="MBANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[id*="sidepanel"][id*="above"]`)?.setAttribute(`style`,`display:none`)}},s={siteBackgroundColor:`#ffffff`,logoTop:`44px`,logoLeft:`50%`,logoTransform:`translateX(-50%)`,logoSmallLeft:`50%`,logoSmallTransform:`translateX(-50%)`,logoSmallFilter:`none`,zIndex:function(){let e=window.parent.document,t=(e,t)=>e.forEach(e=>t.forEach(([t,n])=>e.style[t]=n));e.querySelector(`.nk-demographics`)?.setAttribute(`style`,`max-width:1190px;left:50%;transform:translate(-50%,0);`),e.querySelector(`.nk-footer`)?.setAttribute(`style`,`position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);`),e.querySelector(`article`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#article`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#VideoIndex`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#Index`)?.setAttribute(`style`,`position:relative`),e.querySelector(`.show`)?.setAttribute(`style`,`position:relative`),t(e.querySelectorAll(`.column`),[[`position`,`relative`]]),t(e.querySelectorAll(`.advert`),[[`position`,`relative`]]),t(e.querySelectorAll(`blockquote`),[[`zIndex`,`1`]]),e.querySelector(`div[class*="article__MyContainer"]`)?.setAttribute(`style`,`max-width:1190px;margin-top:-24px`),e.querySelector(`div[type="BANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[type="MBANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[id*="sidepanel"][id*="above"]`)?.setAttribute(`style`,`display:none`)}},c={siteBackgroundColor:`#ffffff`,logoTop:`44px`,logoLeft:`50%`,logoTransform:`translateX(-50%)`,logoSmallLeft:`50%`,logoSmallTransform:`translateX(-50%)`,logoSmallFilter:`none`,zIndex:function(){let e=window.parent.document,t=(e,t)=>e.forEach(e=>t.forEach(([t,n])=>e.style[t]=n));e.querySelector(`.nk-demographics`)?.setAttribute(`style`,`max-width:1190px;left:50%;transform:translate(-50%,0);`),e.querySelector(`.nk-footer`)?.setAttribute(`style`,`position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);`),e.querySelector(`article`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#article`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#VideoIndex`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#Index`)?.setAttribute(`style`,`position:relative`),e.querySelector(`.show`)?.setAttribute(`style`,`position:relative`),t(e.querySelectorAll(`.column`),[[`position`,`relative`]]),t(e.querySelectorAll(`.advert`),[[`position`,`relative`]]),t(e.querySelectorAll(`blockquote`),[[`zIndex`,`1`]]),e.querySelector(`div[class^="component__StrapContainer"]`)?.setAttribute(`style`,`position:relative`),e.querySelector(`section[class^="WatchNow__Container"]`)?.setAttribute(`style`,`margin-left:calc(50% - 49vw);margin-right:calc(50% - 49vw + 10px);`),e.querySelector(`div[class*="ArticleContainer"]`)?.setAttribute(`style`,`max-width:1190px;margin-top:0px`),e.querySelector(`div[type="BANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[type="MBANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[id*="sidepanel"][id*="above"]`)?.setAttribute(`style`,`display:none`)}},l={siteBackgroundColor:`#ffffff`,logoTop:`44px`,logoLeft:`50%`,logoTransform:`translateX(-50%)`,logoSmallLeft:`50%`,logoSmallTransform:`translateX(-50%)`,logoSmallFilter:`none`,zIndex:function(){let e=window.parent.document,t=(e,t)=>e.forEach(e=>t.forEach(([t,n])=>e.style[t]=n));e.querySelector(`section[data-section="marketing-banner"]`)?.setAttribute(`style`,`position:relative`),e.querySelector(`.container--ads`)?.setAttribute(`style`,`min-height:0`),e.getElementById(`mastheadAnchorToggle`)?.setAttribute(`style`,`display:none`),t(e.querySelectorAll(`.advert`),[[`position`,`relative`]]),t(e.querySelectorAll(`iframe`),[[`position`,`relative`]]),e.querySelector(`div[data-testid="live-tv"]`)?.parentNode?.setAttribute(`style`,`position:relative`),e.querySelector(`div[data-contentunit-id="stan"]`)?.parentNode?.setAttribute(`style`,`position:relative`),t(e.querySelectorAll(`small`),[[`position`,`relative`]]),e.querySelector(`small`)?.setAttribute(`style`,`position:inherit`),e.querySelector(`div[type="BANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[type="MBANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[id*="sidepanel"][id*="above"]`)?.setAttribute(`style`,`display:none`)}},u={siteBackgroundColor:`#ffffff`,logoTop:`-148px`,logoLeft:`50%`,logoTransform:`translateX(-50%)`,logoSmallLeft:`50%`,logoSmallTransform:`translateX(-50%)`,logoSmallFilter:`none`,zIndex:function(){let e=window.parent.document;e.querySelector(`.container--padded`)?.setAttribute(`style`,`position:relative`),((e,t)=>e.forEach(e=>t.forEach(([t,n])=>e.style[t]=n)))(e.querySelectorAll(`.advert`),[[`position`,`relative`]]),e.querySelector(`.footer-netkit`)?.setAttribute(`style`,`position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);`),e.querySelector(`div[type="BANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[type="MBANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[id*="sidepanel"][id*="above"]`)?.setAttribute(`style`,`display:none`)}},d={siteBackgroundColor:`#ffffff`,logoTop:`44px`,logoLeft:`50%`,logoTransform:`translateX(-50%)`,logoSmallLeft:`50%`,logoSmallTransform:`translateX(-50%)`,logoSmallFilter:`invert(1)`,zIndex:function(){let e=window.parent.document;e.querySelector(`.header-wrapper`)?.setAttribute(`style`,`height:124px`),e.querySelector(`.weather-widget-wrapper`)?.setAttribute(`style`,`bottom:0px`),e.querySelector(`.content`)?.setAttribute(`style`,`padding-top:32px`),e.querySelector(`.layout`)?.setAttribute(`style`,`position:relative;background-color:transparent;`),e.querySelector(`.footer-ad`)?.setAttribute(`style`,`position:relative`),e.querySelector(`.footer-netkit`)?.setAttribute(`style`,`position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);`),e.querySelector(`div[type="BANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[type="MBANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[id*="sidepanel"][id*="above"]`)?.setAttribute(`style`,`display:none`)}},f=[{site:`https://www.nine.com.au/sport`,config:o},{site:`https://www.nine.com.au/product-reviews`,config:c},{site:`https://www.nine.com.au/property`,config:c},{site:`https://www.nine.com.au/entertainment`,config:c},{site:`https://staging.nine.com.au/sport`,config:o},{site:`https://staging.nine.com.au/product-reviews`,config:c},{site:`https://staging.nine.com.au/property`,config:c},{site:`https://staging.nine.com.au/entertainment`,config:c},{site:`https://render-web-nine-staging-v1.ffxblue.com.au`,config:l},{site:`https://render-web-nine-production-v1.ffxblue.com.au`,config:l},{site:`https://preview.nine.com.au/`,config:l},{site:`https://www.nine.com.au`,config:l},{site:`https://www.nine`,config:l},{site:`https://staging.nine`,config:l},{site:`https://entertainment`,config:s},{site:`https://celebrity`,config:s},{site:`https://homes`,config:s},{site:`https://travel`,config:s},{site:`https://honey`,config:s},{site:`https://style`,config:s},{site:`https://coach`,config:s},{site:`https://kitchen`,config:s},{site:`https://finance`,config:s},{site:`https://wwos`,config:u},{site:`https://staging.wwos`,config:u},{site:`https://www.9news`,config:d},{site:`https://staging.9news`,config:d},{site:`https://www.yourtv`,config:s},{site:`https://staging.yourtv`,config:s},{site:`https://9now`,config:c},{site:`https://creative-preview-an.com`,config:s}],p=()=>{let e=window.document.getElementById(`logo-small`);e&&(e.style.left=C.logoSmallLeft,e.style.transform=C.logoSmallTransform,e.style.filter=C.logoSmallFilter),_(),g(),i.addEventListener(`scroll`,y),w=setTimeout(y,50)},m=()=>{let e=null;return e=a.querySelector(`div[id*="desktop"][id*="takeover"][id*="above"]`),e},h=()=>{let e=i.location.href;for(let t=0;t<f.length;t+=1)if(e.indexOf(f[t].site)>=0)return f[t].config},g=()=>{if(!r)return;let e=r.style;e.width=`100%`,e.height=`${t}px`,e.position=`relative`},_=()=>{if(!S)return;let e=S.style;e.maxHeight=`${t}px`,e.minHeight=`${t}px`,e.marginTop=`0px`,e.marginBottom=`0px`,e.position=`absolute`,e.width=`1900px`,e.top=C.logoTop,e.left=C.logoLeft,e.transform=C.logoTransform,e.zIndex=`10000`,e.pointerEvents=`none`,C.zIndex&&C.zIndex()},v=e=>{if(!S)return;let r=S.style;e===`big`&&!window.bigActive?(r.maxHeight=`${t}px`,r.minHeight=`${t}px`,r.position=`absolute`,r.top=C.logoTop,r.zIndex=`10000`,typeof window.loadBig==`function`&&window.loadBig()):e===`small`&&!window.smallActive&&(r.maxHeight=`${n}px`,r.minHeight=`${n}px`,r.position=`fixed`,r.top=`0px`,r.zIndex=`100000`,typeof window.loadSmall==`function`&&window.loadSmall())},y=()=>{let e=i.scrollY;r.style,e>=0&&e<=T?v(`big`):e>T&&(v(e>E?`small`:`big`),E=e<=0?0:e)},b=(e=4)=>{x()||e>1&&setTimeout(()=>{b(e-1)},20)},x=()=>{let e=a.querySelector(`header`);return e?window.getComputedStyle(e).top===`0px`?(v(`big`),!0):(v(`small`),!1):(v(`big`),!0)},S=m(),C=h();if(!C)return()=>{};let w=null,T=e,E=0;return p(),()=>{i.removeEventListener(`scroll`,y),w&&=(clearTimeout(w),null)}},N=((e,t=50)=>`linear(${Array.from({length:t+1},(n,r)=>e(r/t)).map(e=>+e.toFixed(4)).join(`, `)})`)(e=>{if(e===0||e===1)return e;let t=2*Math.PI/3;return 2**(-10*e)*Math.sin((e*10-.75)*t)+1}),P=(e={})=>{let t={adScrollHeight:`300vh`,bandHeight:24,bandBg:`#222`,bandColor:`#fff`,bandFontSize:`10px`,bandFontFamily:`Arial, Helvetica, sans-serif`,bandLetterSpacing:`1px`,labelTop:`Advertisement`,labelBottomResume:`Scroll to continue`,labelBottomMid:`Keep scrolling`,labelBottomLate:`Almost there`,labelBottomNow:`Content now ↓`,progressBarColor:`rgba(255,255,255,0.35)`,zIndexTop:9,zIndexBottom:8,bottomBandShowAt:400,bottomBandHideAt:300,snapPx:50,snapOverlap:2,stretchOverlap:20,snapDuration:.9,snapEase:N,onEnter:null,onExit:null,onProgress:null,thresholds:[],...e},n=window.frameElement?window.frameElement:null;if(!n)return()=>{};let r=window.parent;if(!r||r===window)return()=>{};let i=null;try{i=r.document,r.location.href}catch{return()=>{}}let a=(()=>{let e=i.querySelector(`#adspot-mobile-mobile-3-above`);if(e)return e;let t=n.parentElement;for(;t&&t!==i.body;){if(t.id&&t.id.includes(`adspot`))return t;t=t.parentElement}return n.parentElement})();if(!a)return()=>{};let o=a.getAttribute(`style`),s=n.getAttribute(`style`),c=[],l={width:`100vw`,marginLeft:`calc(50% - 50vw)`,height:t.bandHeight+`px`,backgroundColor:t.bandBg,color:t.bandColor,fontSize:t.bandFontSize,fontFamily:t.bandFontFamily,textTransform:`uppercase`,letterSpacing:t.bandLetterSpacing,display:`flex`,alignItems:`center`,justifyContent:`center`,pointerEvents:`none`};(()=>{let e=a.style;e.height=t.adScrollHeight,e.maxHeight=t.adScrollHeight,e.position=`relative`,a.setAttribute(`poweredAC`,`0.1.96`),e.clipPath=`inset(-${t.bandHeight-1}px 0 0 0)`,e.overflow=`visible`,e.width=`100vw`,e.maxWidth=`100vw`,e.marginLeft=`calc(50% - 50vw)`,e.marginRight=`0`,e.marginTop=`0`,e.marginBottom=`0`,e.padding=`0`;let o=a.parentElement;for(let e=0;e<6&&o&&o!==i.body;e++){let t=r.getComputedStyle(o),n=!1;(t.overflow===`hidden`||t.overflowY===`hidden`)&&(c.push({el:o,prop:`overflow`,val:o.style.overflow}),c.push({el:o,prop:`overflowY`,val:o.style.overflowY}),o.style.overflow=`visible`,o.style.overflowY=`visible`,n=!0);let i=parseFloat(t.height);t.height!==`auto`&&!isNaN(i)&&i<600&&(c.push({el:o,prop:`height`,val:o.style.height}),o.style.height=`auto`,n=!0);let a=t.maxHeight;if(a&&a!==`none`&&(c.push({el:o,prop:`maxHeight`,val:o.style.maxHeight}),o.style.maxHeight=`none`,n=!0),!n&&e>1)break;o=o.parentElement}let s=n.style;s.position=`fixed`,s.top=`0`,s.left=`0`,s.width=`100vw`,s.height=`100vh`,s.maxWidth=`100vw`,s.margin=`0`,s.padding=`0`,s.border=`none`,s.zIndex=`1`;let u=i.createElement(`div`);u.id=`interscroller-top-band-wrapper`,Object.assign(u.style,{position:`sticky`,bottom:`0`,width:`100vw`,marginLeft:`calc(50% - 50vw)`,zIndex:t.zIndexTop,pointerEvents:`none`});let d=i.createElement(`div`);d.id=`interscroller-top-band`,d.textContent=t.labelTop,Object.assign(d.style,l,{position:`relative`,width:`100%`,marginLeft:`0`,transformOrigin:`top center`}),u.appendChild(d),a.insertAdjacentElement(`beforebegin`,u);let f=i.createElement(`div`);f.id=`interscroller-bottom-band`,Object.assign(f.style,l,{position:`fixed`,bottom:`0`,left:`0`,zIndex:t.zIndexBottom,display:`flex`,overflow:`hidden`,transform:`translateY(100%)`,transition:`none`});let p=i.createElement(`span`);if(p.id=`interscroller-bottom-label`,p.textContent=t.labelBottomResume,p.style.cssText=`position:relative;z-index:1;pointer-events:none;`,f.appendChild(p),t.progressBarColor){let e=i.createElement(`span`);e.id=`interscroller-bottom-progress`,e.style.cssText=[`position:absolute`,`inset:0`,`width:0%`,`background:${t.progressBarColor}`,`transition:none`,`z-index:0`,`pointer-events:none`].join(`;`),f.appendChild(e)}a.after(f)})();let u=i.querySelector(`#interscroller-top-band`),d=i.querySelector(`#interscroller-top-band-wrapper`),f=i.querySelector(`#interscroller-bottom-band`),p=i.querySelector(`#interscroller-bottom-label`),m=i.querySelector(`#interscroller-bottom-progress`),h=t.bandHeight,g=t.snapPx,_=!1,v=!1,y=!1,b=!1,x=(t.thresholds||[]).map(()=>!1),S=()=>{if(!f)return;let e=a.getBoundingClientRect(),n=r.innerHeight;if(e.bottom<=0||e.top>=n){f.style.display=`none`;return}f.style.display=`flex`;let i=e.top<=n,o=e.bottom<=n-h,s=b?e.top<=n-t.bottomBandHideAt:e.top<=n-t.bottomBandShowAt,c=a.offsetHeight,l=Math.min(1,Math.max(0,(n-e.top)/(c+n))),d=Math.min(1,Math.max(0,(n-e.top)/(c+h))),S=Math.min(1,Math.max(0,(n-e.top)/c)),C=Math.min(e.bottom,n)-Math.max(e.top-h,0),w=Math.min(1,Math.max(0,C/n)),T=Math.max(0,Math.round(e.bottom-n));!v&&i&&t.onEnter&&t.onEnter(),!y&&o&&t.onExit&&t.onExit(),v=i,y=o,b=s,t.onProgress&&t.onProgress({scrollProgress:l,adExposure:S,viewportCoverage:w,pxRemaining:T}),(t.thresholds||[]).forEach((e,t)=>{let n=x[t],r=l>=e.at;!n&&r?(x[t]=!0,e.onEnter&&e.onEnter(l)):n&&!r&&(x[t]=!1,e.onLeave&&e.onLeave(l))});let E=n;if(u&&e.top<=E+t.stretchOverlap&&!o){let n=E-e.top;if(!_&&n<=g-t.snapOverlap){let e=1+Math.max(0,n+t.stretchOverlap)/h;u.style.transition=`none`,u.style.transform=`scaleY(${e})`}else !_&&n>g-t.snapOverlap&&(_=!0,u.style.transition=`transform ${t.snapDuration}s ${t.snapEase}`,u.style.transform=`scaleY(1)`)}else u&&e.top>E+t.stretchOverlap&&(_=!1,u.style.transition=`none`,u.style.transform=`scaleY(1)`);let D=r.visualViewport?Math.round(r.innerHeight-(r.visualViewport.offsetTop+r.visualViewport.height)):0;o?(f.style.transition=`none`,f.style.transform=`none`,f.style.position=`sticky`,f.style.top=`0`,f.style.bottom=``,f.style.left=``,f.style.marginLeft=`calc(50% - 50vw)`,f.style.width=`100vw`,p&&(p.textContent=t.labelBottomNow),m&&(m.style.width=`100%`)):s?(p&&(p.textContent=T>0?d<.2?t.labelBottomResume:d<.75?t.labelBottomMid:t.labelBottomLate:t.labelBottomNow),m&&(m.style.width=`${Math.round(d*100)}%`),f.style.transition=`transform 0.3s ease`,f.style.transform=`translateY(0)`,f.style.position=`fixed`,f.style.bottom=`${D}px`,f.style.top=``,f.style.left=`0`,f.style.marginLeft=`0`,f.style.width=`100vw`):(f.style.transition=`transform 0.3s ease`,f.style.transform=`translateY(100%)`,f.style.position=`fixed`,f.style.bottom=`${D}px`,f.style.left=`0`,f.style.marginLeft=`0`,f.style.width=`100vw`)};return S(),r.addEventListener(`scroll`,S,{passive:!0}),r.visualViewport?.addEventListener(`resize`,S,{passive:!0}),()=>{r.removeEventListener(`scroll`,S),r.visualViewport?.removeEventListener(`resize`,S),d?d.remove():u&&u.remove(),f&&f.remove(),o?a.setAttribute(`style`,o):a.removeAttribute(`style`),s?n.setAttribute(`style`,s):n.removeAttribute(`style`),c.forEach(({el:e,prop:t,val:n})=>{e.style[t]=n||``})}},F=(e={})=>{let t={adaptToWidth:`100%`,maxWidth:`400px`,maintainAspectRatio:!0,adaptToHeight:!1,zIndex:7,onAdapt:null,...e},n=window.frameElement??null;if(!n)return()=>{};let r=window.parent;if(!r||r===window)return()=>{};let i=null;try{i=r.document,r.location.href}catch{return()=>{}}let a=(()=>{let e=i.querySelector(`#adspot-mobile-mbanner-2-above`);if(e)return e;let t=n.parentElement;for(;t&&t!==i.body;){if(t.id&&t.id.includes(`adspot`))return t;t=t.parentElement}return n.parentElement})();if(!a)return()=>{};let o=a.getAttribute(`style`),s=n.getAttribute(`style`),c=n.parentElement===a?null:n.parentElement,l=c?c.getAttribute(`style`):null,u=a.parentElement,d=u?r.getComputedStyle(u).paddingTop:null,f=null,p=parseInt(n.getAttribute(`width`),10)||320,m=parseInt(n.getAttribute(`height`),10)||50;return(()=>{let e=a.style;if(e.position=`relative`,e.overflow=`visible`,e.boxSizing=`border-box`,a.setAttribute(`poweredAC`,`0.1.96`),c){let e=c.style;e.width=`100%`,e.height=`100%`,e.margin=`0`,e.textAlign=`left`}let t=n.style;t.display=`block`,t.width=`100%`,t.height=`100%`,t.border=`none`,t.margin=`0`,t.padding=`0`})(),(()=>{let e=a.style;e.zIndex=String(t.zIndex),t.adaptToWidth&&(e.width=t.adaptToWidth,e.maxWidth=t.maxWidth||t.adaptToWidth,t.maxWidth&&t.adaptToWidth!==`100vw`&&!t.adaptToWidth.endsWith(`vw`)?(e.marginLeft=`auto`,e.marginRight=`auto`):(t.adaptToWidth===`100vw`||t.adaptToWidth.endsWith(`vw`))&&(e.marginLeft=`calc(50% - 50vw)`,e.marginRight=`0`)),u&&d&&d!==`0px`&&(u.style.paddingTop=`0`),t.maintainAspectRatio?r.requestAnimationFrame(()=>{let e=a.offsetWidth||p,r=Math.round((m||50)/p*e);a.style.height=r+`px`,c&&(c.style.height=r+`px`),n.style.height=r+`px`,t.onAdapt&&t.onAdapt()}):(t.adaptToHeight&&(e.height=t.adaptToHeight),t.onAdapt&&t.onAdapt())})(),()=>{f&&=(f.disconnect(),null),o?a.setAttribute(`style`,o):a.removeAttribute(`style`),s?n.setAttribute(`style`,s):n.removeAttribute(`style`),c&&(l?c.setAttribute(`style`,l):c.removeAttribute(`style`)),u&&d&&d!==`0px`&&(u.style.paddingTop=d)}},I=(e={})=>{let t={billboardHeight:150,sideStripWidth:10,zIndex:0,creativeUrl:null,sticky:!1,stickyDurationMs:8e3,stickyScrollDistance:600,stickyTop:0,stickyZIndex:1e4,stickyRespectHeader:!0,stickyHeaderSelector:`#app > [data-ad-target="header"], [data-ad-target="header"] [data-ad-target="header-nav"], body > header, body > * > header, [role="banner"]`,stickyHeaderFallbackHeight:null,onAdapt:null,...e},n=window.frameElement??null;if(!n)return()=>{};let r=window.parent;if(!r||r===window)return()=>{};let i=null;try{i=r.document,r.location.href}catch{return()=>{}}let a=(()=>{let e=i.querySelector(`#adspot-mobile-mbanner-1-above, #adspot-mobile-mbanner-2-above`);if(e)return e;let t=n.parentElement;for(;t&&t!==i.body;){if(t.id&&t.id.includes(`adspot`))return t;t=t.parentElement}return n.parentElement})();if(!a)return()=>{};let o=i.querySelector(`main#content`)||i.querySelector(`main`),s=i.querySelector(`#app`),c=a.closest(`.adWrapper`)||a.parentElement,l=t.creativeUrl||``,u={nine:{siteBackgroundColor:`#ffffff`,setup(e,t){e.querySelector(`main`)?.style.setProperty(`position`,`relative`);let n=t?.parentElement?.nextElementSibling;n&&n.tagName!==`HEADER`&&(n.style.paddingTop=`0px`)}},wwos:{siteBackgroundColor:`#ffffff`,setup(e,t){e.querySelector(`main`)?.style.setProperty(`position`,`relative`);let n=t?.parentElement?.nextElementSibling;n&&n.tagName!==`HEADER`&&(n.style.paddingTop=`0px`)}},nineNews:{siteBackgroundColor:`#ffffff`,setup(e){let t=e.querySelector(`.layout`);t&&(t.style.backgroundColor=`transparent`),e.querySelector(`.content`)?.style.setProperty(`position`,`relative`)}},lifestyle:{siteBackgroundColor:`#ffffff`,setup(e){e.querySelector(`main`)?.style.setProperty(`position`,`relative`)}},smh:{siteBackgroundColor:`#ffffff`,setup(e){e.querySelector(`main`)?.style.setProperty(`position`,`relative`)}},theage:{siteBackgroundColor:`#ffffff`,setup(e){e.querySelector(`main`)?.style.setProperty(`position`,`relative`)}},afr:{siteBackgroundColor:`transparent`,setup(e){let n=e.querySelector(`#root`);n&&(n.style.setProperty(`background-color`,`transparent`,`important`),n.style.setProperty(`position`,`relative`,`important`),n.style.setProperty(`z-index`,`1`,`important`)),e.querySelectorAll(`#root > *, #root [class*="-content"]`).forEach(e=>{e.style.setProperty(`background-color`,`transparent`,`important`),e.style.setProperty(`background-image`,`none`,`important`),e.style.setProperty(`position`,`relative`,`important`),e.style.setProperty(`z-index`,`1`,`important`)});let r=e.querySelector(`main#content`)||e.querySelector(`main`);r&&(r.style.setProperty(`background-color`,`#ffffff`,`important`),r.style.setProperty(`box-sizing`,`border-box`,`important`),r.style.setProperty(`margin-top`,`0`,`important`),r.style.setProperty(`margin-left`,`-16px`,`important`),r.style.setProperty(`margin-right`,`-16px`,`important`),r.style.setProperty(`width`,`calc(100% + 32px)`,`important`),r.style.setProperty(`max-width`,`none`,`important`),r.style.setProperty(`padding`,`10px`,`important`),r.style.setProperty(`position`,`relative`),r.style.setProperty(`z-index`,`5`,`important`),r.style.setProperty(`isolation`,`isolate`));let i=[`#root [class*="topHeader"]`,`#root [class*="headerWrapper"]`,`#root #subscribe-button-piano-id`,`#root #subscribe-strip-piano-id`,`#root iframe[id^="offer_"]`].join(`, `);e.querySelectorAll(i).forEach(e=>{e.style.setProperty(`background-color`,`#ffffff`,`important`),e.style.setProperty(`background-image`,`none`,`important`),e.style.setProperty(`box-sizing`,`border-box`,`important`),e.style.setProperty(`position`,`relative`,`important`),e.style.setProperty(`z-index`,`5`,`important`)}),e.querySelectorAll(`#root [class*="topHeader"], #root [class*="headerWrapper"], #root #subscribe-strip-piano-id, #root #subscribe-strip-piano-id iframe[id^="offer_"]`).forEach(e=>{e.style.setProperty(`width`,`100vw`,`important`),e.style.setProperty(`max-width`,`100vw`,`important`),e.style.setProperty(`margin-left`,`calc(50% - 50vw)`,`important`),e.style.setProperty(`margin-right`,`0`,`important`)}),e.querySelectorAll(`#root #subscribe-button-piano-id, #root #subscribe-button-piano-id iframe[id^="offer_"]`).forEach(e=>{e.style.setProperty(`width`,`100%`,`important`),e.style.setProperty(`min-width`,`0`,`important`),e.style.setProperty(`max-width`,`100%`,`important`)}),e.querySelectorAll(`#subscribe-strip-piano-id iframe[id^="offer_"]`).forEach(e=>{e.style.setProperty(`width`,`100vw`,`important`),e.style.setProperty(`min-width`,`0`,`important`),e.style.setProperty(`max-width`,`100vw`,`important`)});let a=e.querySelector(`#stickyLeaderboard`);a&&(a.style.setProperty(`background-color`,`transparent`,`important`),a.style.setProperty(`background-image`,`none`,`important`),a.style.setProperty(`box-sizing`,`border-box`,`important`),a.style.setProperty(`position`,`relative`,`important`),a.style.setProperty(`z-index`,`5`,`important`),a.style.setProperty(`height`,`${t.billboardHeight}px`,`important`),a.style.setProperty(`min-height`,`${t.billboardHeight}px`,`important`),a.style.setProperty(`max-height`,`${t.billboardHeight}px`,`important`),a.style.setProperty(`margin-left`,`-16px`,`important`),a.style.setProperty(`margin-right`,`-16px`,`important`),a.style.setProperty(`width`,`calc(100% + 32px)`,`important`),a.style.setProperty(`max-width`,`none`,`important`),a.style.setProperty(`overflow`,`visible`,`important`));let o=[`#stickyLeaderboard > *`,`#stickyLeaderboard .adWrapper`,`#stickyLeaderboard [class*="styledAd"]`].join(`, `);e.querySelectorAll(o).forEach(e=>{e.style.setProperty(`background-color`,`transparent`,`important`),e.style.setProperty(`background-image`,`none`,`important`),e.style.setProperty(`box-sizing`,`border-box`,`important`),e.style.setProperty(`margin-left`,`0`,`important`),e.style.setProperty(`margin-right`,`0`,`important`),e.style.setProperty(`height`,`${t.billboardHeight}px`,`important`),e.style.setProperty(`min-height`,`${t.billboardHeight}px`,`important`),e.style.setProperty(`max-height`,`${t.billboardHeight}px`,`important`),e.style.setProperty(`width`,`100%`,`important`),e.style.setProperty(`max-width`,`100%`,`important`),e.style.setProperty(`overflow`,`visible`,`important`)}),e.querySelectorAll(`#stickyLeaderboard small[class*="-text"]`).forEach(e=>{e.style.setProperty(`background-color`,`transparent`,`important`),e.style.setProperty(`background-image`,`none`,`important`),e.style.setProperty(`box-sizing`,`border-box`,`important`),e.style.setProperty(`display`,`block`,`important`),e.style.setProperty(`position`,`absolute`,`important`),e.style.setProperty(`height`,`0`,`important`),e.style.setProperty(`min-height`,`0`,`important`),e.style.setProperty(`max-height`,`0`,`important`),e.style.setProperty(`line-height`,`0`,`important`),e.style.setProperty(`padding`,`0`,`important`),e.style.setProperty(`margin`,`0`,`important`),e.style.setProperty(`overflow`,`hidden`,`important`),e.style.setProperty(`left`,`0`,`important`),e.style.setProperty(`width`,`100%`,`important`),e.style.setProperty(`max-width`,`100%`,`important`),e.style.setProperty(`color`,`transparent`,`important`),e.style.setProperty(`font-size`,`0`,`important`),e.setAttribute(`aria-hidden`,`true`)})}}},d=[{site:`https://www.nine.com.au/sport`,config:u.wwos},{site:`https://staging.nine.com.au/sport`,config:u.wwos},{site:`https://www.nine.com.au`,config:u.nine},{site:`https://staging.nine.com.au`,config:u.nine},{site:`https://preview.nine.com.au`,config:u.nine},{site:`https://www.9news`,config:u.nineNews},{site:`https://staging.9news`,config:u.nineNews},{site:`https://honey`,config:u.lifestyle},{site:`https://www.smh`,config:u.smh},{site:`https://www.theage`,config:u.theage},{site:`https://www.afr.com.au`,config:u.afr},{site:`https://www.afr.com`,config:u.afr},{site:`https://creative-preview-an.com`,config:u.nine}],f=(()=>{let e=r.location.href;for(let t of d)if(e.indexOf(t.site)>=0)return t.config;return u.nine})(),p=f===u.smh||f===u.theage,m=n.getAttribute(`style`),h=n.hasAttribute(`data-mf-wallpaper-iframe`),g=a.getAttribute(`style`),_=n.parentElement===a?null:n.parentElement,v=_?_.getAttribute(`style`):null,y=a.parentElement,b=a.closest(`[data-ad-target="header-ad-mobile"]`),x=!!(y&&b&&y===b),S=x?r.getComputedStyle(y).marginTop:``,C=y?y.getAttribute(`style`):null,w=s?s.getAttribute(`style`):null,T=o?o.getAttribute(`style`):null,E=o?o.querySelector(`header`):null,D=E?E.getAttribute(`style`):null,O=E?E.querySelector(`.sc-5cbbddda-1`):null,k=O?O.getAttribute(`style`):null,A=i.querySelector(`footer`),j=A?A.getAttribute(`style`):null,M=o?Array.from(o.children).map(e=>({el:e,orig:e.getAttribute(`style`)})):[],N=null,P=null,F=null,I=null,L=null,R=null,z=null,B=null,V=[],H=null,ee=null,te=null,ne=null,re=null,U=null,ie=null,ae=[],W=Number.isFinite(t.stickyDurationMs)&&t.stickyDurationMs>0,oe=Number.isFinite(t.stickyScrollDistance)&&t.stickyScrollDistance>0,se=!!(t.sticky&&(W||oe)),G=`pending`,ce=0,le=0,ue=null,de=null,K=null,q=null,J=null,Y=null,X=[],fe=Number.isFinite(t.stickyHeaderFallbackHeight)?Math.max(0,t.stickyHeaderFallbackHeight):null,Z=f===u.afr||x,pe=Z,Q=null,me=null,he=e=>{if(!e||e===te||e===y||e===a)return!1;let t=e.firstElementChild;if(!t||t!==e.lastElementChild||!t.classList.contains(`container`)||t.children.length>0||t.textContent&&t.textContent.trim()||e.querySelector(`[id^="adspot-mobile-mbanner-"], iframe, [data-mf-slot], .adWrapper`))return!1;let n=r.getComputedStyle(e);return n.position===`fixed`||n.position===`sticky`},ge=e=>{!e?.parentElement||ae.some(t=>t.shell===e)||(ae.push({shell:e,parent:e.parentElement,nextSibling:e.nextSibling}),e.remove())},_e=()=>{for(let e of i.querySelectorAll(`.container`)){let t=e.parentElement;he(t)&&ge(t)}},ve=e=>{let t=e?.parentElement;for(;t&&t!==i.body&&t!==i.documentElement;){let e=r.getComputedStyle(t);(e.transform&&e.transform!==`none`||e.willChange&&e.willChange!==`auto`||e.contain&&e.contain!==`none`||e.filter&&e.filter!==`none`||e.perspective&&e.perspective!==`none`)&&(V.find(e=>e.el===t)||V.push({el:t,orig:t.getAttribute(`style`)}),t.style.transform=`none`,t.style.willChange=`auto`,t.style.contain=`none`,t.style.filter=`none`,t.style.perspective=`none`),t=t.parentElement}},ye=()=>{let e=i.createElement(`div`);return e.setAttribute(`data-mf-billboard-mount`,``),e.style.height=`${t.billboardHeight}px`,e.style.minHeight=`${t.billboardHeight}px`,e.style.maxHeight=`${t.billboardHeight}px`,e.style.background=`transparent`,e.style.overflow=`visible`,e.style.position=`relative`,e.style.width=`100%`,e.style.padding=`0`,e.style.margin=`0`,e},be=()=>{if(!s||f!==u.wwos)return null;let e=a.getBoundingClientRect().bottom,t=Array.from(s.querySelectorAll(`div`)).map(e=>{let t=e.getBoundingClientRect(),n=r.getComputedStyle(e),i=e.querySelector(`ul`);return{el:e,list:i,rect:t,styles:n,listStyles:i?r.getComputedStyle(i):null}}).filter(({rect:t,styles:n,list:r,listStyles:i})=>!r||!i||t.top<e-4||t.top>e+120||n.overflow!==`hidden`||parseFloat(n.borderTopLeftRadius)<4?!1:i.overflow===`auto`||i.overflowX===`auto`);return t.length?(t.sort((t,n)=>Math.abs(t.rect.top-e)-Math.abs(n.rect.top-e)),t[0]):null},$=()=>B||a,xe=()=>!t.stickyRespectHeader||!t.stickyHeaderSelector?[]:Array.from(i.querySelectorAll(t.stickyHeaderSelector)).map(e=>{let t=e.getBoundingClientRect(),n=r.getComputedStyle(e),i=Number.parseInt(n.zIndex,10);return{el:e,rect:t,styles:n,zIndex:Number.isFinite(i)?i:null}}).filter(({rect:e,styles:t})=>e.width<=r.innerWidth*.5||e.height<=0?!1:t.display!==`none`&&t.visibility!==`hidden`),Se=()=>{let e=xe().filter(({rect:e,styles:n})=>n.position!==`fixed`&&n.position!==`sticky`?!1:e.top<=t.stickyTop+1&&e.bottom>t.stickyTop+1);return e.length?(e.sort((e,t)=>t.rect.bottom-e.rect.bottom),e[0]):null},Ce=()=>{let e=Se();return e?Math.max(t.stickyTop,Math.round(e.rect.bottom)):Math.max(t.stickyTop,fe||t.stickyTop)},we=()=>{let e=Se();return e?.zIndex&&e.zIndex>2?Math.max(1,Math.min(t.stickyZIndex,e.zIndex-1)):t.stickyZIndex},Te=({active:e,progress:t=0,remainingMs:n=0})=>{R?.contentWindow&&R.contentWindow.postMessage({type:`mobilefireplace:sticky`,active:e,progress:Math.max(0,Math.min(1,t)),remainingMs:Math.max(0,Math.round(n))},`*`)},Ee=e=>{!e||X.some(t=>t.el===e)||X.push({el:e,value:e.style.getPropertyValue(`z-index`),priority:e.style.getPropertyPriority(`z-index`)})},De=e=>{let t=new Set([$()].filter(Boolean));if(f===u.afr||U||p){[a,y,c].filter(Boolean).forEach(e=>t.add(e));let e=$()?.parentElement;for(;e&&e!==i.body&&e!==i.documentElement&&(t.add(e),e.id!==`stickyLeaderboard`);)e=e.parentElement}for(let n of t)Ee(n),n.style.setProperty(`z-index`,String(e),`important`)},Oe=()=>Z&&(a.closest(`#stickyLeaderboard`)||i.querySelector(`#stickyLeaderboard`))||$(),ke=()=>{if(!Z||!R)return;let e=R.style;e.left=`0px`,e.width=`100vw`},Ae=()=>{if(!Z||!R||G===`active`)return;let e=Oe();if(!e)return;let t=e.getBoundingClientRect(),n=R.style;n.position=`absolute`,n.top=`${Math.round(r.scrollY+t.top)}px`,ke(),n.setProperty(`z-index`,`6`,`important`),R.removeAttribute(`data-mf-sticky-active`)},je=()=>{Z&&(Ae(),K&&r.cancelAnimationFrame(K),K=r.requestAnimationFrame(()=>{K=null,Ae()}),q&&r.clearTimeout(q),q=r.setTimeout(()=>{q=null,Ae()},350))},Me=()=>{!pe||!R||R.parentElement===i.body||(Q=R.parentElement,me=R.nextSibling,i.body.appendChild(R))},Ne=()=>{if(!Q||!R){Q=null,me=null;return}me&&me.parentNode===Q?Q.insertBefore(R,me):Q.appendChild(R),Q=null,me=null},Pe=()=>{for(let e=X.length-1;e>=0;--e){let{el:t,value:n,priority:r}=X[e];n?t.style.setProperty(`z-index`,n,r):t.style.removeProperty(`z-index`)}X.length=0},Fe=()=>{if(!R)return;ve($());let e=$().getBoundingClientRect(),t=we();if(De(t),Me(),x&&B&&!pe){let e=B.style;e.setProperty(`position`,`fixed`,`important`),e.setProperty(`top`,`${Ce()}px`,`important`),e.setProperty(`left`,`0px`,`important`),e.setProperty(`width`,`100vw`,`important`),e.setProperty(`max-width`,`100vw`,`important`),e.setProperty(`z-index`,String(t),`important`)}let n=R.style;x&&!pe?(n.position=`relative`,n.top=`0px`,n.left=`0px`,n.width=`100vw`,n.setProperty(`max-width`,`100vw`,`important`)):(n.position=`fixed`,n.top=`${Ce()}px`),Z?ke():x?(n.left=`0px`,n.width=`100vw`,n.setProperty(`max-width`,`100vw`,`important`)):(n.left=`${Math.round(e.left)}px`,n.width=`${Math.round(e.width)}px`),n.setProperty(`z-index`,String(t),`important`),R.setAttribute(`data-mf-sticky-active`,``)},Ie=()=>{if(!R)return;if(Ne(),Z){je(),Pe();return}let e=R.style;if(e.position=`relative`,e.top=``,e.left=``,e.width=`100%`,e.setProperty(`z-index`,`1`),x&&B&&!pe){let e=B.style;e.setProperty(`position`,`relative`),e.removeProperty(`top`),e.removeProperty(`left`),e.setProperty(`width`,`100%`),e.removeProperty(`max-width`)}Pe(),R.removeAttribute(`data-mf-sticky-active`)},Le=()=>{de&&=(r.cancelAnimationFrame(de),null)},Re=()=>{if(ue===null){let e=$().getBoundingClientRect();ue=Math.max(0,r.scrollY+e.top-Ce())}return ue},ze=()=>le+(G===`active`?Math.max(0,r.performance.now()-ce):0),Be=()=>Math.max(0,r.scrollY-Re()),Ve=()=>{let e=W?ze()/t.stickyDurationMs:0,n=oe?Be()/t.stickyScrollDistance:0;return Math.max(e,n)},He=()=>W?t.stickyDurationMs-ze():0,Ue=()=>r.scrollY<Re()-1,We=()=>{G===`active`&&(le=ze(),G=`paused`,Le(),Ie(),Te({active:!1,progress:Ve(),remainingMs:He()}))},Ge=()=>{G!==`paused`||Ue()||(G=`active`,ce=r.performance.now(),Fe(),qe())},Ke=()=>{G!==`active`&&G!==`paused`||(G===`active`&&(le=ze()),G=`released`,Le(),Ie(),Te({active:!1,progress:1,remainingMs:0}))},qe=()=>{if(G!==`active`)return;if(Ue()){We();return}let e=ze(),n=Be(),i=W?e/t.stickyDurationMs:0,a=oe?n/t.stickyScrollDistance:0,o=Math.max(i,a),s=W?t.stickyDurationMs-e:0;if(Fe(),Te({active:!0,progress:o,remainingMs:s}),i>=1||a>=1){Ke();return}de=r.requestAnimationFrame(qe)},Je=()=>{if(!se||G!==`pending`||!R)return;let e=$().getBoundingClientRect();ue=Math.max(0,r.scrollY+e.top-Ce()),le=0,G=`active`,ce=r.performance.now(),Fe(),qe()},Ye=()=>{!se||G!==`pending`||!R||r.scrollY<=0||$().getBoundingClientRect().top<=Ce()&&Je()},Xe=()=>{G===`pending`?Ye():G===`active`&&Ue()?We():G===`paused`&&Ge(),G!==`active`&&je()},Ze=()=>{Xe(),Y&&r.cancelAnimationFrame(Y),Y=r.requestAnimationFrame(()=>{Y=null,Xe()})},Qe=()=>{_e();let e=n.parentElement;for(;e&&e!==i.body&&e!==i.documentElement;){let t=r.getComputedStyle(e);if(t.position===`fixed`||t.position===`sticky`){U=e,ie=e.getAttribute(`style`);break}e=e.parentElement}let d=n.parentElement;for(;d&&d!==i.body&&d!==i.documentElement;){let e=r.getComputedStyle(d);(e.transform&&e.transform!==`none`||e.willChange&&e.willChange!==`auto`||e.contain&&e.contain!==`none`||e.filter&&e.filter!==`none`||e.perspective&&e.perspective!==`none`)&&(V.push({el:d,orig:d.getAttribute(`style`)}),d.style.transform=`none`,d.style.willChange=`auto`,d.style.contain=`none`,d.style.filter=`none`,d.style.perspective=`none`),e.overflow!==`visible`&&(V.find(e=>e.el===d)||V.push({el:d,orig:d.getAttribute(`style`)}),d.style.overflow=`visible`),d=d.parentElement}let m=n.style;if(m.setProperty(`position`,f===u.afr?`absolute`:`fixed`,f===u.afr?`important`:``),m.setProperty(`top`,`0`,f===u.afr?`important`:``),m.setProperty(`left`,`0`,f===u.afr?`important`:``),m.setProperty(`width`,f===u.afr?`0`:`100vw`,f===u.afr?`important`:``),m.setProperty(`height`,f===u.afr?`0`:`100dvh`,f===u.afr?`important`:``),m.setProperty(`z-index`,f===u.afr?`0`:String(t.zIndex),f===u.afr?`important`:``),m.setProperty(`border`,`none`,f===u.afr?`important`:``),m.setProperty(`margin`,`0`,f===u.afr?`important`:``),m.setProperty(`padding`,`0`,f===u.afr?`important`:``),m.setProperty(`display`,`block`,f===u.afr?`important`:``),m.setProperty(`opacity`,f===u.afr?`0`:`1`,f===u.afr?`important`:``),m.setProperty(`pointer-events`,`none`,f===u.afr?`important`:``),f===u.afr&&l&&l!==`about:blank`)try{let e=new URL(l);e.searchParams.set(`mfRole`,`wallpaper`),z=i.createElement(`iframe`),z.src=e.href,z.setAttribute(`data-mf-wallpaper-iframe`,``),z.setAttribute(`scrolling`,`no`),z.setAttribute(`frameborder`,`0`);let t=z.style;t.setProperty(`position`,`fixed`,`important`),t.setProperty(`top`,`0`,`important`),t.setProperty(`left`,`0`,`important`),t.setProperty(`width`,`100vw`,`important`),t.setProperty(`height`,`100dvh`,`important`),t.setProperty(`border`,`none`,`important`),t.setProperty(`margin`,`0`,`important`),t.setProperty(`padding`,`0`,`important`),t.setProperty(`display`,`block`,`important`),t.setProperty(`background`,`transparent`,`important`),t.setProperty(`z-index`,`0`,`important`),t.setProperty(`pointer-events`,`none`,`important`),i.body.insertBefore(z,i.body.firstChild)}catch(e){console.warn(`[mobilefireplace] Could not create AFR wallpaper iframe:`,e)}if(a.setAttribute(`poweredAC`,`0.1.96`),_){let e=_.style;e.width=`100%`,e.height=`0`,e.overflow=`visible`,e.position=`static`,e.margin=`0`}let h=a.style;h.height=t.billboardHeight+`px`,h.minHeight=t.billboardHeight+`px`,h.background=`transparent`,h.overflow=`visible`,h.position=`relative`,h.width=`100%`,h.padding=`0`,h.margin=`0`,y&&(y.style.overflow=`visible`,y.style.position=`relative`,y.style.backgroundColor=`transparent`,y.style.height=t.billboardHeight+`px`,y.style.minHeight=t.billboardHeight+`px`,y.style.maxHeight=t.billboardHeight+`px`,y.style.padding=`0`,y.style.margin=`0`,x&&S&&S!==`0px`&&(y.style.marginTop=S),y.setAttribute(`data-mf-slot`,``));let g=`max(${t.sideStripWidth}px, env(safe-area-inset-left))`,v=`max(${t.sideStripWidth}px, env(safe-area-inset-right))`;if(L=i.createElement(`style`),L.id=`mobilefireplace-pac`,L.textContent=`
137
+ `);t=`<!doctype html><html><head><meta charset="utf-8">${r}<style>html,body{margin:0;padding:0;background:transparent;}</style></head><body>${n.outerHTML}${i}</body></html>`}catch{return!1}if(!t)return!1;o.setAttribute(D,`1`);try{e.parentNode?.insertBefore(H,e)}catch{return o.removeAttribute(D),!1}G(),ae(),K();try{o.srcdoc=t}catch{return!1}return!0},ce=()=>{d(H,`position`,`fixed`),d(H,`marginTop`,`0px`),d(H,`marginBottom`,`0px`),d(H,`marginLeft`,`0px`),d(H,`marginRight`,`0px`),d(H,`transform`,``)},le=()=>{d(H,`display`,`none`)},ue=()=>{d(H,`display`,`block`),d(H,`overflow`,`hidden`)},q=null,J=()=>{if((!q||!q.isConnected)&&(q=N(V.headingText)),!q)return;let e=q.getBoundingClientRect(),t=e.top-U-h+ie,n=e.left+W;d(H,`top`,`${t}px`),d(H,`left`,`${n}px`),d(H,`right`,`auto`)},Y=null,X=null,Z=!1,de=(e=12)=>{if(q=N(V.headingText),!q){e>1&&(F=s.setTimeout(()=>de(e-1),250));return}se(q)||(Z=!0,G(),ae(),ce(),J(),Y=()=>J(),X=()=>J(),s.addEventListener(`scroll`,Y,{passive:!0}),s.addEventListener(`resize`,X))};de();let Q=()=>{F&&=(s.clearTimeout(F),null),P&&=(s.clearTimeout(P),null),Y&&=(s.removeEventListener(`scroll`,Y),null),X&&=(s.removeEventListener(`resize`,X),null),H.getAttribute(E)===u&&H.removeAttribute(E),Z&&(Object.entries(te).forEach(([e,t])=>{H.style[e]=t}),Object.entries(ne).forEach(([e,t])=>{o.style[e]=t}),re.forEach(({element:e,overflow:t})=>{e.style.overflow=t})),s[T]?.instanceId===u&&delete s[T]};return s[T]={instanceId:u,iframe:o,cleanup:Q,show:ue,hide:le},Q},M=(e,t,n)=>{let r=window.frameElement?window.frameElement:null;if(!r)return()=>{};let i=window.parent;if(!i||i===window)return()=>{};let a=null;try{a=i.document,i.location.href}catch{return()=>{}}let o={siteBackgroundColor:`#ffffff`,logoTop:`44px`,logoLeft:`50%`,logoTransform:`translateX(-50%)`,logoSmallLeft:`250px`,logoSmallTransform:`translateX(0px)`,logoSmallFilter:`none`,zIndex:function(){let e=window.parent.document;e.querySelector(`.container--padded`)?.setAttribute(`style`,`position:relative`),((e,t)=>e.forEach(e=>t.forEach(([t,n])=>e.style[t]=n)))(e.querySelectorAll(`.advert`),[[`position`,`relative`]]),e.querySelector(`.footer-netkit`)?.setAttribute(`style`,`position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);`),e.querySelector(`div[type="BANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[type="MBANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[id*="sidepanel"][id*="above"]`)?.setAttribute(`style`,`display:none`)}},s={siteBackgroundColor:`#ffffff`,logoTop:`44px`,logoLeft:`50%`,logoTransform:`translateX(-50%)`,logoSmallLeft:`50%`,logoSmallTransform:`translateX(-50%)`,logoSmallFilter:`none`,zIndex:function(){let e=window.parent.document,t=(e,t)=>e.forEach(e=>t.forEach(([t,n])=>e.style[t]=n));e.querySelector(`.nk-demographics`)?.setAttribute(`style`,`max-width:1190px;left:50%;transform:translate(-50%,0);`),e.querySelector(`.nk-footer`)?.setAttribute(`style`,`position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);`),e.querySelector(`article`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#article`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#VideoIndex`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#Index`)?.setAttribute(`style`,`position:relative`),e.querySelector(`.show`)?.setAttribute(`style`,`position:relative`),t(e.querySelectorAll(`.column`),[[`position`,`relative`]]),t(e.querySelectorAll(`.advert`),[[`position`,`relative`]]),t(e.querySelectorAll(`blockquote`),[[`zIndex`,`1`]]),e.querySelector(`div[class*="article__MyContainer"]`)?.setAttribute(`style`,`max-width:1190px;margin-top:-24px`),e.querySelector(`div[type="BANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[type="MBANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[id*="sidepanel"][id*="above"]`)?.setAttribute(`style`,`display:none`)}},c={siteBackgroundColor:`#ffffff`,logoTop:`44px`,logoLeft:`50%`,logoTransform:`translateX(-50%)`,logoSmallLeft:`50%`,logoSmallTransform:`translateX(-50%)`,logoSmallFilter:`none`,zIndex:function(){let e=window.parent.document,t=(e,t)=>e.forEach(e=>t.forEach(([t,n])=>e.style[t]=n));e.querySelector(`.nk-demographics`)?.setAttribute(`style`,`max-width:1190px;left:50%;transform:translate(-50%,0);`),e.querySelector(`.nk-footer`)?.setAttribute(`style`,`position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);`),e.querySelector(`article`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#article`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#VideoIndex`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#Index`)?.setAttribute(`style`,`position:relative`),e.querySelector(`.show`)?.setAttribute(`style`,`position:relative`),t(e.querySelectorAll(`.column`),[[`position`,`relative`]]),t(e.querySelectorAll(`.advert`),[[`position`,`relative`]]),t(e.querySelectorAll(`blockquote`),[[`zIndex`,`1`]]),e.querySelector(`div[class^="component__StrapContainer"]`)?.setAttribute(`style`,`position:relative`),e.querySelector(`section[class^="WatchNow__Container"]`)?.setAttribute(`style`,`margin-left:calc(50% - 49vw);margin-right:calc(50% - 49vw + 10px);`),e.querySelector(`div[class*="ArticleContainer"]`)?.setAttribute(`style`,`max-width:1190px;margin-top:0px`),e.querySelector(`div[type="BANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[type="MBANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[id*="sidepanel"][id*="above"]`)?.setAttribute(`style`,`display:none`)}},l={siteBackgroundColor:`#ffffff`,logoTop:`44px`,logoLeft:`50%`,logoTransform:`translateX(-50%)`,logoSmallLeft:`50%`,logoSmallTransform:`translateX(-50%)`,logoSmallFilter:`none`,zIndex:function(){let e=window.parent.document,t=(e,t)=>e.forEach(e=>t.forEach(([t,n])=>e.style[t]=n));e.querySelector(`section[data-section="marketing-banner"]`)?.setAttribute(`style`,`position:relative`),e.querySelector(`.container--ads`)?.setAttribute(`style`,`min-height:0`),e.getElementById(`mastheadAnchorToggle`)?.setAttribute(`style`,`display:none`),t(e.querySelectorAll(`.advert`),[[`position`,`relative`]]),t(e.querySelectorAll(`iframe`),[[`position`,`relative`]]),e.querySelector(`div[data-testid="live-tv"]`)?.parentNode?.setAttribute(`style`,`position:relative`),e.querySelector(`div[data-contentunit-id="stan"]`)?.parentNode?.setAttribute(`style`,`position:relative`),t(e.querySelectorAll(`small`),[[`position`,`relative`]]),e.querySelector(`small`)?.setAttribute(`style`,`position:inherit`),e.querySelector(`div[type="BANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[type="MBANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[id*="sidepanel"][id*="above"]`)?.setAttribute(`style`,`display:none`)}},u={siteBackgroundColor:`#ffffff`,logoTop:`-148px`,logoLeft:`50%`,logoTransform:`translateX(-50%)`,logoSmallLeft:`50%`,logoSmallTransform:`translateX(-50%)`,logoSmallFilter:`none`,zIndex:function(){let e=window.parent.document;e.querySelector(`.container--padded`)?.setAttribute(`style`,`position:relative`),((e,t)=>e.forEach(e=>t.forEach(([t,n])=>e.style[t]=n)))(e.querySelectorAll(`.advert`),[[`position`,`relative`]]),e.querySelector(`.footer-netkit`)?.setAttribute(`style`,`position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);`),e.querySelector(`div[type="BANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[type="MBANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[id*="sidepanel"][id*="above"]`)?.setAttribute(`style`,`display:none`)}},d={siteBackgroundColor:`#ffffff`,logoTop:`44px`,logoLeft:`50%`,logoTransform:`translateX(-50%)`,logoSmallLeft:`50%`,logoSmallTransform:`translateX(-50%)`,logoSmallFilter:`invert(1)`,zIndex:function(){let e=window.parent.document;e.querySelector(`.header-wrapper`)?.setAttribute(`style`,`height:124px`),e.querySelector(`.weather-widget-wrapper`)?.setAttribute(`style`,`bottom:0px`),e.querySelector(`.content`)?.setAttribute(`style`,`padding-top:32px`),e.querySelector(`.layout`)?.setAttribute(`style`,`position:relative;background-color:transparent;`),e.querySelector(`.footer-ad`)?.setAttribute(`style`,`position:relative`),e.querySelector(`.footer-netkit`)?.setAttribute(`style`,`position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);`),e.querySelector(`div[type="BANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[type="MBANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[id*="sidepanel"][id*="above"]`)?.setAttribute(`style`,`display:none`)}},f=[{site:`https://www.nine.com.au/sport`,config:o},{site:`https://www.nine.com.au/product-reviews`,config:c},{site:`https://www.nine.com.au/property`,config:c},{site:`https://www.nine.com.au/entertainment`,config:c},{site:`https://staging.nine.com.au/sport`,config:o},{site:`https://staging.nine.com.au/product-reviews`,config:c},{site:`https://staging.nine.com.au/property`,config:c},{site:`https://staging.nine.com.au/entertainment`,config:c},{site:`https://render-web-nine-staging-v1.ffxblue.com.au`,config:l},{site:`https://render-web-nine-production-v1.ffxblue.com.au`,config:l},{site:`https://preview.nine.com.au/`,config:l},{site:`https://www.nine.com.au`,config:l},{site:`https://www.nine`,config:l},{site:`https://staging.nine`,config:l},{site:`https://entertainment`,config:s},{site:`https://celebrity`,config:s},{site:`https://homes`,config:s},{site:`https://travel`,config:s},{site:`https://honey`,config:s},{site:`https://style`,config:s},{site:`https://coach`,config:s},{site:`https://kitchen`,config:s},{site:`https://finance`,config:s},{site:`https://wwos`,config:u},{site:`https://staging.wwos`,config:u},{site:`https://www.9news`,config:d},{site:`https://staging.9news`,config:d},{site:`https://www.yourtv`,config:s},{site:`https://staging.yourtv`,config:s},{site:`https://9now`,config:c},{site:`https://creative-preview-an.com`,config:s}],p=()=>{let e=window.document.getElementById(`logo-small`);e&&(e.style.left=C.logoSmallLeft,e.style.transform=C.logoSmallTransform,e.style.filter=C.logoSmallFilter),_(),g(),i.addEventListener(`scroll`,y),w=setTimeout(y,50)},m=()=>{let e=null;return e=a.querySelector(`div[id*="desktop"][id*="takeover"][id*="above"]`),e},h=()=>{let e=i.location.href;for(let t=0;t<f.length;t+=1)if(e.indexOf(f[t].site)>=0)return f[t].config},g=()=>{if(!r)return;let e=r.style;e.width=`100%`,e.height=`${t}px`,e.position=`relative`},_=()=>{if(!S)return;let e=S.style;e.maxHeight=`${t}px`,e.minHeight=`${t}px`,e.marginTop=`0px`,e.marginBottom=`0px`,e.position=`absolute`,e.width=`1900px`,e.top=C.logoTop,e.left=C.logoLeft,e.transform=C.logoTransform,e.zIndex=`10000`,e.pointerEvents=`none`,C.zIndex&&C.zIndex()},v=e=>{if(!S)return;let r=S.style;e===`big`&&!window.bigActive?(r.maxHeight=`${t}px`,r.minHeight=`${t}px`,r.position=`absolute`,r.top=C.logoTop,r.zIndex=`10000`,typeof window.loadBig==`function`&&window.loadBig()):e===`small`&&!window.smallActive&&(r.maxHeight=`${n}px`,r.minHeight=`${n}px`,r.position=`fixed`,r.top=`0px`,r.zIndex=`100000`,typeof window.loadSmall==`function`&&window.loadSmall())},y=()=>{let e=i.scrollY;r.style,e>=0&&e<=T?v(`big`):e>T&&(v(e>E?`small`:`big`),E=e<=0?0:e)},b=(e=4)=>{x()||e>1&&setTimeout(()=>{b(e-1)},20)},x=()=>{let e=a.querySelector(`header`);return e?window.getComputedStyle(e).top===`0px`?(v(`big`),!0):(v(`small`),!1):(v(`big`),!0)},S=m(),C=h();if(!C)return()=>{};let w=null,T=e,E=0;return p(),()=>{i.removeEventListener(`scroll`,y),w&&=(clearTimeout(w),null)}},N=((e,t=50)=>`linear(${Array.from({length:t+1},(n,r)=>e(r/t)).map(e=>+e.toFixed(4)).join(`, `)})`)(e=>{if(e===0||e===1)return e;let t=2*Math.PI/3;return 2**(-10*e)*Math.sin((e*10-.75)*t)+1}),P=(e={})=>{let t={adScrollHeight:`300vh`,bandHeight:24,bandBg:`#222`,bandColor:`#fff`,bandFontSize:`10px`,bandFontFamily:`Arial, Helvetica, sans-serif`,bandLetterSpacing:`1px`,labelTop:`Advertisement`,labelBottomResume:`Scroll to continue`,labelBottomMid:`Keep scrolling`,labelBottomLate:`Almost there`,labelBottomNow:`Content now ↓`,progressBarColor:`rgba(255,255,255,0.35)`,zIndexTop:9,zIndexBottom:8,bottomBandShowAt:400,bottomBandHideAt:300,snapPx:50,snapOverlap:2,stretchOverlap:20,snapDuration:.9,snapEase:N,onEnter:null,onExit:null,onProgress:null,thresholds:[],...e},n=window.frameElement?window.frameElement:null;if(!n)return()=>{};let r=window.parent;if(!r||r===window)return()=>{};let i=null;try{i=r.document,r.location.href}catch{return()=>{}}let a=(()=>{let e=i.querySelector(`#adspot-mobile-mobile-3-above`);if(e)return e;let t=n.parentElement;for(;t&&t!==i.body;){if(t.id&&t.id.includes(`adspot`))return t;t=t.parentElement}return n.parentElement})();if(!a)return()=>{};let o=a.getAttribute(`style`),s=n.getAttribute(`style`),c=[],l={width:`100vw`,marginLeft:`calc(50% - 50vw)`,height:t.bandHeight+`px`,backgroundColor:t.bandBg,color:t.bandColor,fontSize:t.bandFontSize,fontFamily:t.bandFontFamily,textTransform:`uppercase`,letterSpacing:t.bandLetterSpacing,display:`flex`,alignItems:`center`,justifyContent:`center`,pointerEvents:`none`};(()=>{let e=a.style;e.height=t.adScrollHeight,e.maxHeight=t.adScrollHeight,e.position=`relative`,a.setAttribute(`poweredAC`,`0.1.97`),e.clipPath=`inset(-${t.bandHeight-1}px 0 0 0)`,e.overflow=`visible`,e.width=`100vw`,e.maxWidth=`100vw`,e.marginLeft=`calc(50% - 50vw)`,e.marginRight=`0`,e.marginTop=`0`,e.marginBottom=`0`,e.padding=`0`;let o=a.parentElement;for(let e=0;e<6&&o&&o!==i.body;e++){let t=r.getComputedStyle(o),n=!1;(t.overflow===`hidden`||t.overflowY===`hidden`)&&(c.push({el:o,prop:`overflow`,val:o.style.overflow}),c.push({el:o,prop:`overflowY`,val:o.style.overflowY}),o.style.overflow=`visible`,o.style.overflowY=`visible`,n=!0);let i=parseFloat(t.height);t.height!==`auto`&&!isNaN(i)&&i<600&&(c.push({el:o,prop:`height`,val:o.style.height}),o.style.height=`auto`,n=!0);let a=t.maxHeight;if(a&&a!==`none`&&(c.push({el:o,prop:`maxHeight`,val:o.style.maxHeight}),o.style.maxHeight=`none`,n=!0),!n&&e>1)break;o=o.parentElement}let s=n.style;s.position=`fixed`,s.top=`0`,s.left=`0`,s.width=`100vw`,s.height=`100vh`,s.maxWidth=`100vw`,s.margin=`0`,s.padding=`0`,s.border=`none`,s.zIndex=`1`;let u=i.createElement(`div`);u.id=`interscroller-top-band-wrapper`,Object.assign(u.style,{position:`sticky`,bottom:`0`,width:`100vw`,marginLeft:`calc(50% - 50vw)`,zIndex:t.zIndexTop,pointerEvents:`none`});let d=i.createElement(`div`);d.id=`interscroller-top-band`,d.textContent=t.labelTop,Object.assign(d.style,l,{position:`relative`,width:`100%`,marginLeft:`0`,transformOrigin:`top center`}),u.appendChild(d),a.insertAdjacentElement(`beforebegin`,u);let f=i.createElement(`div`);f.id=`interscroller-bottom-band`,Object.assign(f.style,l,{position:`fixed`,bottom:`0`,left:`0`,zIndex:t.zIndexBottom,display:`flex`,overflow:`hidden`,transform:`translateY(100%)`,transition:`none`});let p=i.createElement(`span`);if(p.id=`interscroller-bottom-label`,p.textContent=t.labelBottomResume,p.style.cssText=`position:relative;z-index:1;pointer-events:none;`,f.appendChild(p),t.progressBarColor){let e=i.createElement(`span`);e.id=`interscroller-bottom-progress`,e.style.cssText=[`position:absolute`,`inset:0`,`width:0%`,`background:${t.progressBarColor}`,`transition:none`,`z-index:0`,`pointer-events:none`].join(`;`),f.appendChild(e)}a.after(f)})();let u=i.querySelector(`#interscroller-top-band`),d=i.querySelector(`#interscroller-top-band-wrapper`),f=i.querySelector(`#interscroller-bottom-band`),p=i.querySelector(`#interscroller-bottom-label`),m=i.querySelector(`#interscroller-bottom-progress`),h=t.bandHeight,g=t.snapPx,_=!1,v=!1,y=!1,b=!1,x=(t.thresholds||[]).map(()=>!1),S=()=>{if(!f)return;let e=a.getBoundingClientRect(),n=r.innerHeight;if(e.bottom<=0||e.top>=n){f.style.display=`none`;return}f.style.display=`flex`;let i=e.top<=n,o=e.bottom<=n-h,s=b?e.top<=n-t.bottomBandHideAt:e.top<=n-t.bottomBandShowAt,c=a.offsetHeight,l=Math.min(1,Math.max(0,(n-e.top)/(c+n))),d=Math.min(1,Math.max(0,(n-e.top)/(c+h))),S=Math.min(1,Math.max(0,(n-e.top)/c)),C=Math.min(e.bottom,n)-Math.max(e.top-h,0),w=Math.min(1,Math.max(0,C/n)),T=Math.max(0,Math.round(e.bottom-n));!v&&i&&t.onEnter&&t.onEnter(),!y&&o&&t.onExit&&t.onExit(),v=i,y=o,b=s,t.onProgress&&t.onProgress({scrollProgress:l,adExposure:S,viewportCoverage:w,pxRemaining:T}),(t.thresholds||[]).forEach((e,t)=>{let n=x[t],r=l>=e.at;!n&&r?(x[t]=!0,e.onEnter&&e.onEnter(l)):n&&!r&&(x[t]=!1,e.onLeave&&e.onLeave(l))});let E=n;if(u&&e.top<=E+t.stretchOverlap&&!o){let n=E-e.top;if(!_&&n<=g-t.snapOverlap){let e=1+Math.max(0,n+t.stretchOverlap)/h;u.style.transition=`none`,u.style.transform=`scaleY(${e})`}else !_&&n>g-t.snapOverlap&&(_=!0,u.style.transition=`transform ${t.snapDuration}s ${t.snapEase}`,u.style.transform=`scaleY(1)`)}else u&&e.top>E+t.stretchOverlap&&(_=!1,u.style.transition=`none`,u.style.transform=`scaleY(1)`);let D=r.visualViewport?Math.round(r.innerHeight-(r.visualViewport.offsetTop+r.visualViewport.height)):0;o?(f.style.transition=`none`,f.style.transform=`none`,f.style.position=`sticky`,f.style.top=`0`,f.style.bottom=``,f.style.left=``,f.style.marginLeft=`calc(50% - 50vw)`,f.style.width=`100vw`,p&&(p.textContent=t.labelBottomNow),m&&(m.style.width=`100%`)):s?(p&&(p.textContent=T>0?d<.2?t.labelBottomResume:d<.75?t.labelBottomMid:t.labelBottomLate:t.labelBottomNow),m&&(m.style.width=`${Math.round(d*100)}%`),f.style.transition=`transform 0.3s ease`,f.style.transform=`translateY(0)`,f.style.position=`fixed`,f.style.bottom=`${D}px`,f.style.top=``,f.style.left=`0`,f.style.marginLeft=`0`,f.style.width=`100vw`):(f.style.transition=`transform 0.3s ease`,f.style.transform=`translateY(100%)`,f.style.position=`fixed`,f.style.bottom=`${D}px`,f.style.left=`0`,f.style.marginLeft=`0`,f.style.width=`100vw`)};return S(),r.addEventListener(`scroll`,S,{passive:!0}),r.visualViewport?.addEventListener(`resize`,S,{passive:!0}),()=>{r.removeEventListener(`scroll`,S),r.visualViewport?.removeEventListener(`resize`,S),d?d.remove():u&&u.remove(),f&&f.remove(),o?a.setAttribute(`style`,o):a.removeAttribute(`style`),s?n.setAttribute(`style`,s):n.removeAttribute(`style`),c.forEach(({el:e,prop:t,val:n})=>{e.style[t]=n||``})}},F=(e={})=>{let t={adaptToWidth:`100%`,maxWidth:`400px`,maintainAspectRatio:!0,adaptToHeight:!1,zIndex:7,onAdapt:null,...e},n=window.frameElement??null;if(!n)return()=>{};let r=window.parent;if(!r||r===window)return()=>{};let i=null;try{i=r.document,r.location.href}catch{return()=>{}}let a=(()=>{let e=i.querySelector(`#adspot-mobile-mbanner-2-above`);if(e)return e;let t=n.parentElement;for(;t&&t!==i.body;){if(t.id&&t.id.includes(`adspot`))return t;t=t.parentElement}return n.parentElement})();if(!a)return()=>{};let o=a.getAttribute(`style`),s=n.getAttribute(`style`),c=n.parentElement===a?null:n.parentElement,l=c?c.getAttribute(`style`):null,u=a.parentElement,d=u?r.getComputedStyle(u).paddingTop:null,f=null,p=parseInt(n.getAttribute(`width`),10)||320,m=parseInt(n.getAttribute(`height`),10)||50;return(()=>{let e=a.style;if(e.position=`relative`,e.overflow=`visible`,e.boxSizing=`border-box`,a.setAttribute(`poweredAC`,`0.1.97`),c){let e=c.style;e.width=`100%`,e.height=`100%`,e.margin=`0`,e.textAlign=`left`}let t=n.style;t.display=`block`,t.width=`100%`,t.height=`100%`,t.border=`none`,t.margin=`0`,t.padding=`0`})(),(()=>{let e=a.style;e.zIndex=String(t.zIndex),t.adaptToWidth&&(e.width=t.adaptToWidth,e.maxWidth=t.maxWidth||t.adaptToWidth,t.maxWidth&&t.adaptToWidth!==`100vw`&&!t.adaptToWidth.endsWith(`vw`)?(e.marginLeft=`auto`,e.marginRight=`auto`):(t.adaptToWidth===`100vw`||t.adaptToWidth.endsWith(`vw`))&&(e.marginLeft=`calc(50% - 50vw)`,e.marginRight=`0`)),u&&d&&d!==`0px`&&(u.style.paddingTop=`0`),t.maintainAspectRatio?r.requestAnimationFrame(()=>{let e=a.offsetWidth||p,r=Math.round((m||50)/p*e);a.style.height=r+`px`,c&&(c.style.height=r+`px`),n.style.height=r+`px`,t.onAdapt&&t.onAdapt()}):(t.adaptToHeight&&(e.height=t.adaptToHeight),t.onAdapt&&t.onAdapt())})(),()=>{f&&=(f.disconnect(),null),o?a.setAttribute(`style`,o):a.removeAttribute(`style`),s?n.setAttribute(`style`,s):n.removeAttribute(`style`),c&&(l?c.setAttribute(`style`,l):c.removeAttribute(`style`)),u&&d&&d!==`0px`&&(u.style.paddingTop=d)}},I=(e={})=>{let t={billboardHeight:150,sideStripWidth:10,zIndex:0,creativeUrl:null,sticky:!1,stickyDurationMs:8e3,stickyScrollDistance:600,stickyTop:0,stickyZIndex:1e4,stickyRespectHeader:!0,stickyHeaderSelector:`#app > [data-ad-target="header"], [data-ad-target="header"] [data-ad-target="header-nav"], body > header, body > * > header, [role="banner"]`,stickyHeaderFallbackHeight:null,onAdapt:null,...e},n=window.frameElement??null;if(!n)return()=>{};let r=window.parent;if(!r||r===window)return()=>{};let i=null;try{i=r.document,r.location.href}catch{return()=>{}}let a=(()=>{let e=i.querySelector(`#adspot-mobile-mbanner-1-above, #adspot-mobile-mbanner-2-above`);if(e)return e;let t=n.parentElement;for(;t&&t!==i.body;){if(t.id&&t.id.includes(`adspot`))return t;t=t.parentElement}return n.parentElement})();if(!a)return()=>{};let o=i.querySelector(`main#content`)||i.querySelector(`main`),s=i.querySelector(`#app`),c=a.closest(`.adWrapper`)||a.parentElement,l=t.creativeUrl||``,u={nine:{siteBackgroundColor:`#ffffff`,setup(e,t){e.querySelector(`main`)?.style.setProperty(`position`,`relative`);let n=t?.parentElement?.nextElementSibling;n&&n.tagName!==`HEADER`&&(n.style.paddingTop=`0px`)}},wwos:{siteBackgroundColor:`#ffffff`,setup(e,t){e.querySelector(`main`)?.style.setProperty(`position`,`relative`);let n=t?.parentElement?.nextElementSibling;n&&n.tagName!==`HEADER`&&(n.style.paddingTop=`0px`)}},nineNews:{siteBackgroundColor:`#ffffff`,setup(e){let t=e.querySelector(`.layout`);t&&(t.style.backgroundColor=`transparent`),e.querySelector(`.content`)?.style.setProperty(`position`,`relative`)}},lifestyle:{siteBackgroundColor:`#ffffff`,setup(e){e.querySelector(`main`)?.style.setProperty(`position`,`relative`)}},smh:{siteBackgroundColor:`#ffffff`,setup(e){e.querySelector(`main`)?.style.setProperty(`position`,`relative`)}},theage:{siteBackgroundColor:`#ffffff`,setup(e){e.querySelector(`main`)?.style.setProperty(`position`,`relative`)}},afr:{siteBackgroundColor:`transparent`,setup(e){let n=e.querySelector(`#root`);n&&(n.style.setProperty(`background-color`,`transparent`,`important`),n.style.setProperty(`position`,`relative`,`important`),n.style.setProperty(`z-index`,`1`,`important`)),e.querySelectorAll(`#root > *, #root [class*="-content"]`).forEach(e=>{e.style.setProperty(`background-color`,`transparent`,`important`),e.style.setProperty(`background-image`,`none`,`important`),e.style.setProperty(`position`,`relative`,`important`),e.style.setProperty(`z-index`,`1`,`important`)});let r=e.querySelector(`main#content`)||e.querySelector(`main`);r&&(r.style.setProperty(`background-color`,`#ffffff`,`important`),r.style.setProperty(`box-sizing`,`border-box`,`important`),r.style.setProperty(`margin-top`,`0`,`important`),r.style.setProperty(`margin-left`,`-16px`,`important`),r.style.setProperty(`margin-right`,`-16px`,`important`),r.style.setProperty(`width`,`calc(100% + 32px)`,`important`),r.style.setProperty(`max-width`,`none`,`important`),r.style.setProperty(`padding`,`10px`,`important`),r.style.setProperty(`position`,`relative`),r.style.setProperty(`z-index`,`5`,`important`),r.style.setProperty(`isolation`,`isolate`));let i=[`#root [class*="topHeader"]`,`#root [class*="headerWrapper"]`,`#root #subscribe-button-piano-id`,`#root #subscribe-strip-piano-id`,`#root iframe[id^="offer_"]`].join(`, `);e.querySelectorAll(i).forEach(e=>{e.style.setProperty(`background-color`,`#ffffff`,`important`),e.style.setProperty(`background-image`,`none`,`important`),e.style.setProperty(`box-sizing`,`border-box`,`important`),e.style.setProperty(`position`,`relative`,`important`),e.style.setProperty(`z-index`,`5`,`important`)}),e.querySelectorAll(`#root [class*="topHeader"], #root [class*="headerWrapper"], #root #subscribe-strip-piano-id, #root #subscribe-strip-piano-id iframe[id^="offer_"]`).forEach(e=>{e.style.setProperty(`width`,`100vw`,`important`),e.style.setProperty(`max-width`,`100vw`,`important`),e.style.setProperty(`margin-left`,`calc(50% - 50vw)`,`important`),e.style.setProperty(`margin-right`,`0`,`important`)}),e.querySelectorAll(`#root #subscribe-button-piano-id, #root #subscribe-button-piano-id iframe[id^="offer_"]`).forEach(e=>{e.style.setProperty(`width`,`100%`,`important`),e.style.setProperty(`min-width`,`0`,`important`),e.style.setProperty(`max-width`,`100%`,`important`)}),e.querySelectorAll(`#subscribe-strip-piano-id iframe[id^="offer_"]`).forEach(e=>{e.style.setProperty(`width`,`100vw`,`important`),e.style.setProperty(`min-width`,`0`,`important`),e.style.setProperty(`max-width`,`100vw`,`important`)});let a=e.querySelector(`#stickyLeaderboard`);a&&(a.style.setProperty(`background-color`,`transparent`,`important`),a.style.setProperty(`background-image`,`none`,`important`),a.style.setProperty(`box-sizing`,`border-box`,`important`),a.style.setProperty(`position`,`relative`,`important`),a.style.setProperty(`z-index`,`5`,`important`),a.style.setProperty(`height`,`${t.billboardHeight}px`,`important`),a.style.setProperty(`min-height`,`${t.billboardHeight}px`,`important`),a.style.setProperty(`max-height`,`${t.billboardHeight}px`,`important`),a.style.setProperty(`margin-left`,`-16px`,`important`),a.style.setProperty(`margin-right`,`-16px`,`important`),a.style.setProperty(`width`,`calc(100% + 32px)`,`important`),a.style.setProperty(`max-width`,`none`,`important`),a.style.setProperty(`overflow`,`visible`,`important`));let o=[`#stickyLeaderboard > *`,`#stickyLeaderboard .adWrapper`,`#stickyLeaderboard [class*="styledAd"]`].join(`, `);e.querySelectorAll(o).forEach(e=>{e.style.setProperty(`background-color`,`transparent`,`important`),e.style.setProperty(`background-image`,`none`,`important`),e.style.setProperty(`box-sizing`,`border-box`,`important`),e.style.setProperty(`margin-left`,`0`,`important`),e.style.setProperty(`margin-right`,`0`,`important`),e.style.setProperty(`height`,`${t.billboardHeight}px`,`important`),e.style.setProperty(`min-height`,`${t.billboardHeight}px`,`important`),e.style.setProperty(`max-height`,`${t.billboardHeight}px`,`important`),e.style.setProperty(`width`,`100%`,`important`),e.style.setProperty(`max-width`,`100%`,`important`),e.style.setProperty(`overflow`,`visible`,`important`)}),e.querySelectorAll(`#stickyLeaderboard small[class*="-text"]`).forEach(e=>{e.style.setProperty(`background-color`,`transparent`,`important`),e.style.setProperty(`background-image`,`none`,`important`),e.style.setProperty(`box-sizing`,`border-box`,`important`),e.style.setProperty(`display`,`block`,`important`),e.style.setProperty(`position`,`absolute`,`important`),e.style.setProperty(`height`,`0`,`important`),e.style.setProperty(`min-height`,`0`,`important`),e.style.setProperty(`max-height`,`0`,`important`),e.style.setProperty(`line-height`,`0`,`important`),e.style.setProperty(`padding`,`0`,`important`),e.style.setProperty(`margin`,`0`,`important`),e.style.setProperty(`overflow`,`hidden`,`important`),e.style.setProperty(`left`,`0`,`important`),e.style.setProperty(`width`,`100%`,`important`),e.style.setProperty(`max-width`,`100%`,`important`),e.style.setProperty(`color`,`transparent`,`important`),e.style.setProperty(`font-size`,`0`,`important`),e.setAttribute(`aria-hidden`,`true`)})}}},d=[{site:`https://www.nine.com.au/sport`,config:u.wwos},{site:`https://staging.nine.com.au/sport`,config:u.wwos},{site:`https://www.nine.com.au`,config:u.nine},{site:`https://staging.nine.com.au`,config:u.nine},{site:`https://preview.nine.com.au`,config:u.nine},{site:`https://www.9news`,config:u.nineNews},{site:`https://staging.9news`,config:u.nineNews},{site:`https://honey`,config:u.lifestyle},{site:`https://www.smh`,config:u.smh},{site:`https://www.theage`,config:u.theage},{site:`https://www.afr.com.au`,config:u.afr},{site:`https://www.afr.com`,config:u.afr},{site:`https://creative-preview-an.com`,config:u.nine}],f=(()=>{let e=r.location.href;for(let t of d)if(e.indexOf(t.site)>=0)return t.config;return u.nine})(),p=f===u.smh||f===u.theage,m=n.getAttribute(`style`),h=n.hasAttribute(`data-mf-wallpaper-iframe`),g=a.getAttribute(`style`),_=n.parentElement===a?null:n.parentElement,v=_?_.getAttribute(`style`):null,y=a.parentElement,b=a.closest(`[data-ad-target="header-ad-mobile"]`),x=!!(y&&b&&y===b),S=x?r.getComputedStyle(y).marginTop:``,C=y?y.getAttribute(`style`):null,w=s?s.getAttribute(`style`):null,T=o?o.getAttribute(`style`):null,E=o?o.querySelector(`header`):null,D=E?E.getAttribute(`style`):null,O=E?E.querySelector(`.sc-5cbbddda-1`):null,k=O?O.getAttribute(`style`):null,A=i.querySelector(`footer`),j=A?A.getAttribute(`style`):null,M=o?Array.from(o.children).map(e=>({el:e,orig:e.getAttribute(`style`)})):[],N=null,P=null,F=null,I=null,L=null,R=null,z=null,B=null,V=[],H=null,ee=null,te=null,ne=null,re=null,U=null,ie=null,W=[],G=Number.isFinite(t.stickyDurationMs)&&t.stickyDurationMs>0,ae=Number.isFinite(t.stickyScrollDistance)&&t.stickyScrollDistance>0,oe=!!(t.sticky&&(G||ae)),K=`pending`,se=0,ce=0,le=null,ue=null,q=null,J=null,Y=null,X=null,Z=[],de=Number.isFinite(t.stickyHeaderFallbackHeight)?Math.max(0,t.stickyHeaderFallbackHeight):null,Q=f===u.afr||x,fe=e=>{if(!e||e===te||e===y||e===a)return!1;let t=e.firstElementChild;if(!t||t!==e.lastElementChild||!t.classList.contains(`container`)||t.children.length>0||t.textContent&&t.textContent.trim()||e.querySelector(`[id^="adspot-mobile-mbanner-"], iframe, [data-mf-slot], .adWrapper`))return!1;let n=r.getComputedStyle(e);return n.position===`fixed`||n.position===`sticky`},pe=e=>{!e?.parentElement||W.some(t=>t.shell===e)||(W.push({shell:e,parent:e.parentElement,nextSibling:e.nextSibling}),e.remove())},me=()=>{for(let e of i.querySelectorAll(`.container`)){let t=e.parentElement;fe(t)&&pe(t)}},he=e=>{let t=e?.parentElement;for(;t&&t!==i.body&&t!==i.documentElement;){let e=r.getComputedStyle(t);(e.transform&&e.transform!==`none`||e.willChange&&e.willChange!==`auto`||e.contain&&e.contain!==`none`||e.filter&&e.filter!==`none`||e.perspective&&e.perspective!==`none`)&&(V.find(e=>e.el===t)||V.push({el:t,orig:t.getAttribute(`style`)}),t.style.transform=`none`,t.style.willChange=`auto`,t.style.contain=`none`,t.style.filter=`none`,t.style.perspective=`none`),t=t.parentElement}},ge=()=>{let e=i.createElement(`div`);return e.setAttribute(`data-mf-billboard-mount`,``),e.style.height=`${t.billboardHeight}px`,e.style.minHeight=`${t.billboardHeight}px`,e.style.maxHeight=`${t.billboardHeight}px`,e.style.background=`transparent`,e.style.overflow=`visible`,e.style.position=`relative`,e.style.width=`100%`,e.style.padding=`0`,e.style.margin=`0`,e},_e=()=>{if(!s||f!==u.wwos)return null;let e=a.getBoundingClientRect().bottom,t=Array.from(s.querySelectorAll(`div`)).map(e=>{let t=e.getBoundingClientRect(),n=r.getComputedStyle(e),i=e.querySelector(`ul`);return{el:e,list:i,rect:t,styles:n,listStyles:i?r.getComputedStyle(i):null}}).filter(({rect:t,styles:n,list:r,listStyles:i})=>!r||!i||t.top<e-4||t.top>e+120||n.overflow!==`hidden`||parseFloat(n.borderTopLeftRadius)<4?!1:i.overflow===`auto`||i.overflowX===`auto`);return t.length?(t.sort((t,n)=>Math.abs(t.rect.top-e)-Math.abs(n.rect.top-e)),t[0]):null},$=()=>B||a,ve=()=>!t.stickyRespectHeader||!t.stickyHeaderSelector?[]:Array.from(i.querySelectorAll(t.stickyHeaderSelector)).map(e=>{let t=e.getBoundingClientRect(),n=r.getComputedStyle(e),i=Number.parseInt(n.zIndex,10);return{el:e,rect:t,styles:n,zIndex:Number.isFinite(i)?i:null}}).filter(({rect:e,styles:t})=>e.width<=r.innerWidth*.5||e.height<=0?!1:t.display!==`none`&&t.visibility!==`hidden`),ye=()=>{let e=ve().filter(({rect:e,styles:n})=>n.position!==`fixed`&&n.position!==`sticky`?!1:e.top<=t.stickyTop+1&&e.bottom>t.stickyTop+1);return e.length?(e.sort((e,t)=>t.rect.bottom-e.rect.bottom),e[0]):null},be=()=>{let e=ye();return e?Math.max(t.stickyTop,Math.round(e.rect.bottom)):Math.max(t.stickyTop,de||t.stickyTop)},xe=()=>{let e=ye();return e?.zIndex&&e.zIndex>2?Math.max(1,Math.min(t.stickyZIndex,e.zIndex-1)):t.stickyZIndex},Se=({active:e,progress:t=0,remainingMs:n=0})=>{R?.contentWindow&&R.contentWindow.postMessage({type:`mobilefireplace:sticky`,active:e,progress:Math.max(0,Math.min(1,t)),remainingMs:Math.max(0,Math.round(n))},`*`)},Ce=e=>{!e||Z.some(t=>t.el===e)||Z.push({el:e,value:e.style.getPropertyValue(`z-index`),priority:e.style.getPropertyPriority(`z-index`)})},we=e=>{let t=new Set([$()].filter(Boolean));if(f===u.afr||U||p){[a,y,c].filter(Boolean).forEach(e=>t.add(e));let e=$()?.parentElement;for(;e&&e!==i.body&&e!==i.documentElement&&(t.add(e),e.id!==`stickyLeaderboard`);)e=e.parentElement}for(let n of t)Ce(n),n.style.setProperty(`z-index`,String(e),`important`)},Te=()=>Q&&(a.closest(`#stickyLeaderboard`)||i.querySelector(`#stickyLeaderboard`))||$(),Ee=()=>{if(!Q||!R)return;let e=R.style;e.left=`0px`,e.width=`100vw`},De=()=>{if(!Q||!R||K===`active`)return;let e=Te();if(!e)return;let t=e.getBoundingClientRect(),n=R.style;n.position=`absolute`,n.top=`${Math.round(r.scrollY+t.top)}px`,Ee(),n.setProperty(`z-index`,`6`,`important`),R.removeAttribute(`data-mf-sticky-active`)},Oe=()=>{Q&&(De(),q&&r.cancelAnimationFrame(q),q=r.requestAnimationFrame(()=>{q=null,De()}),J&&r.clearTimeout(J),J=r.setTimeout(()=>{J=null,De()},350))},ke=()=>{for(let e=Z.length-1;e>=0;--e){let{el:t,value:n,priority:r}=Z[e];n?t.style.setProperty(`z-index`,n,r):t.style.removeProperty(`z-index`)}Z.length=0},Ae=()=>{if(!R)return;he($());let e=$().getBoundingClientRect(),t=xe();we(t);let n=R.style;n.position=`fixed`,n.top=`${be()}px`,Q?Ee():(n.left=`${Math.round(e.left)}px`,n.width=`${Math.round(e.width)}px`),n.setProperty(`z-index`,String(t),`important`),R.setAttribute(`data-mf-sticky-active`,``)},je=()=>{if(!R)return;if(Q){Oe(),ke();return}let e=R.style;e.position=`relative`,e.top=``,e.left=``,e.width=`100%`,e.setProperty(`z-index`,`1`),ke(),R.removeAttribute(`data-mf-sticky-active`)},Me=()=>{ue&&=(r.cancelAnimationFrame(ue),null)},Ne=()=>{if(le===null){let e=$().getBoundingClientRect();le=Math.max(0,r.scrollY+e.top-be())}return le},Pe=()=>ce+(K===`active`?Math.max(0,r.performance.now()-se):0),Fe=()=>Math.max(0,r.scrollY-Ne()),Ie=()=>{let e=G?Pe()/t.stickyDurationMs:0,n=ae?Fe()/t.stickyScrollDistance:0;return Math.max(e,n)},Le=()=>G?t.stickyDurationMs-Pe():0,Re=()=>r.scrollY<Ne()-1,ze=()=>{K===`active`&&(ce=Pe(),K=`paused`,Me(),je(),Se({active:!1,progress:Ie(),remainingMs:Le()}))},Be=()=>{K!==`paused`||Re()||(K=`active`,se=r.performance.now(),Ae(),He())},Ve=()=>{K!==`active`&&K!==`paused`||(K===`active`&&(ce=Pe()),K=`released`,Me(),je(),Se({active:!1,progress:1,remainingMs:0}))},He=()=>{if(K!==`active`)return;if(Re()){ze();return}let e=Pe(),n=Fe(),i=G?e/t.stickyDurationMs:0,a=ae?n/t.stickyScrollDistance:0,o=Math.max(i,a),s=G?t.stickyDurationMs-e:0;if(Ae(),Se({active:!0,progress:o,remainingMs:s}),i>=1||a>=1){Ve();return}ue=r.requestAnimationFrame(He)},Ue=()=>{if(!oe||K!==`pending`||!R)return;let e=$().getBoundingClientRect();le=Math.max(0,r.scrollY+e.top-be()),ce=0,K=`active`,se=r.performance.now(),Ae(),He()},We=()=>{!oe||K!==`pending`||!R||r.scrollY<=0||$().getBoundingClientRect().top<=be()&&Ue()},Ge=()=>{K===`pending`?We():K===`active`&&Re()?ze():K===`paused`&&Be(),K!==`active`&&Oe()},Ke=()=>{Ge(),X&&r.cancelAnimationFrame(X),X=r.requestAnimationFrame(()=>{X=null,Ge()})},qe=()=>{me();let e=n.parentElement;for(;e&&e!==i.body&&e!==i.documentElement;){let t=r.getComputedStyle(e);if(t.position===`fixed`||t.position===`sticky`){U=e,ie=e.getAttribute(`style`);break}e=e.parentElement}let d=n.parentElement;for(;d&&d!==i.body&&d!==i.documentElement;){let e=r.getComputedStyle(d);(e.transform&&e.transform!==`none`||e.willChange&&e.willChange!==`auto`||e.contain&&e.contain!==`none`||e.filter&&e.filter!==`none`||e.perspective&&e.perspective!==`none`)&&(V.push({el:d,orig:d.getAttribute(`style`)}),d.style.transform=`none`,d.style.willChange=`auto`,d.style.contain=`none`,d.style.filter=`none`,d.style.perspective=`none`),e.overflow!==`visible`&&(V.find(e=>e.el===d)||V.push({el:d,orig:d.getAttribute(`style`)}),d.style.overflow=`visible`),d=d.parentElement}let m=n.style;if(m.setProperty(`position`,f===u.afr?`absolute`:`fixed`,f===u.afr?`important`:``),m.setProperty(`top`,`0`,f===u.afr?`important`:``),m.setProperty(`left`,`0`,f===u.afr?`important`:``),m.setProperty(`width`,f===u.afr?`0`:`100vw`,f===u.afr?`important`:``),m.setProperty(`height`,f===u.afr?`0`:`100dvh`,f===u.afr?`important`:``),m.setProperty(`z-index`,f===u.afr?`0`:String(t.zIndex),f===u.afr?`important`:``),m.setProperty(`border`,`none`,f===u.afr?`important`:``),m.setProperty(`margin`,`0`,f===u.afr?`important`:``),m.setProperty(`padding`,`0`,f===u.afr?`important`:``),m.setProperty(`display`,`block`,f===u.afr?`important`:``),m.setProperty(`opacity`,f===u.afr?`0`:`1`,f===u.afr?`important`:``),m.setProperty(`pointer-events`,`none`,f===u.afr?`important`:``),f===u.afr&&l&&l!==`about:blank`)try{let e=new URL(l);e.searchParams.set(`mfRole`,`wallpaper`),z=i.createElement(`iframe`),z.src=e.href,z.setAttribute(`data-mf-wallpaper-iframe`,``),z.setAttribute(`scrolling`,`no`),z.setAttribute(`frameborder`,`0`);let t=z.style;t.setProperty(`position`,`fixed`,`important`),t.setProperty(`top`,`0`,`important`),t.setProperty(`left`,`0`,`important`),t.setProperty(`width`,`100vw`,`important`),t.setProperty(`height`,`100dvh`,`important`),t.setProperty(`border`,`none`,`important`),t.setProperty(`margin`,`0`,`important`),t.setProperty(`padding`,`0`,`important`),t.setProperty(`display`,`block`,`important`),t.setProperty(`background`,`transparent`,`important`),t.setProperty(`z-index`,`0`,`important`),t.setProperty(`pointer-events`,`none`,`important`),i.body.insertBefore(z,i.body.firstChild)}catch(e){console.warn(`[mobilefireplace] Could not create AFR wallpaper iframe:`,e)}if(a.setAttribute(`poweredAC`,`0.1.97`),_){let e=_.style;e.width=`100%`,e.height=`0`,e.overflow=`visible`,e.position=`static`,e.margin=`0`}let h=a.style;h.height=t.billboardHeight+`px`,h.minHeight=t.billboardHeight+`px`,h.background=`transparent`,h.overflow=`visible`,h.position=`relative`,h.width=`100%`,h.padding=`0`,h.margin=`0`,y&&(y.style.overflow=`visible`,y.style.position=`relative`,y.style.backgroundColor=`transparent`,y.style.height=t.billboardHeight+`px`,y.style.minHeight=t.billboardHeight+`px`,y.style.maxHeight=t.billboardHeight+`px`,y.style.padding=`0`,y.style.margin=`0`,x&&S&&S!==`0px`&&(y.style.marginTop=S),y.setAttribute(`data-mf-slot`,``));let g=`max(${t.sideStripWidth}px, env(safe-area-inset-left))`,v=`max(${t.sideStripWidth}px, env(safe-area-inset-right))`;if(L=i.createElement(`style`),L.id=`mobilefireplace-pac`,L.textContent=`
138
138
  /* Mobile Fireplace — powered-ad-config */
139
139
  html, body {
140
140
  background-color: transparent !important;
@@ -387,4 +387,4 @@
387
387
  margin: 0 !important;
388
388
  padding: 0 !important;
389
389
  }
390
- `,i.head.appendChild(L),f.setup&&f.setup(i,a),f===u.wwos){let e=be();e&&(N=e.el,P=N.getAttribute(`style`),F=e.list,I=F?F.getAttribute(`style`):null,N.style.marginLeft=`10px`,N.style.marginRight=`10px`,N.style.width=`calc(100% - 20px)`,F&&(F.style.width=`100%`))}if(o&&f!==u.afr&&(U||p)){if(U&&(te=c||y),l&&l!==`about:blank`){let e=new URL(l);e.searchParams.set(`mfRole`,`wallpaper`),z=i.createElement(`iframe`),z.src=e.href,z.setAttribute(`data-mf-wallpaper-iframe`,``),z.setAttribute(`scrolling`,`no`),z.setAttribute(`frameborder`,`0`);let n=z.style;n.position=`fixed`,n.top=`0`,n.left=`0`,n.width=`100vw`,n.height=`100dvh`,n.border=`none`,n.margin=`0`,n.padding=`0`,n.display=`block`,n.background=`transparent`,n.zIndex=String(t.zIndex),n.pointerEvents=`none`,i.body.insertBefore(z,i.body.firstChild)}n.style.position=`absolute`,n.style.top=`0`,n.style.left=`0`,n.style.width=`0`,n.style.height=`0`,n.style.opacity=`0`,n.style.pointerEvents=`none`,n.style.zIndex=`-1`,B=ye(),o.parentElement.insertBefore(B,o),U?(U.style.position=`static`,U.style.inset=`auto`,U.style.height=`0`,U.style.minHeight=`0`,U.style.maxHeight=`0`,U.style.overflow=`hidden`,U.style.backgroundColor=`transparent`,U.style.boxShadow=`none`,U.style.border=`0`,U.style.outline=`0`,U.style.pointerEvents=`none`):y&&(y.style.height=`0`,y.style.minHeight=`0`,y.style.maxHeight=`0`,y.style.overflow=`hidden`,y.style.backgroundColor=`transparent`,y.style.border=`0`,y.style.outline=`0`),h.height=`0`,h.minHeight=`0`,h.width=`0`,h.overflow=`hidden`,s&&(s.style.backgroundColor=`transparent`,s.style.backgroundImage=`none`,s.style.position=`relative`,s.style.zIndex=`1`),o.style.marginLeft=`14px`,o.style.marginRight=`14px`,o.style.backgroundColor=`#ffffff`,o.style.position=`relative`,o.style.zIndex=`2`,o.style.overflowX=`clip`,o.style.isolation=`isolate`;for(let{el:e}of M)e.style.backgroundColor=`transparent`,e.style.boxShadow=`none`,e.style.paddingLeft=`10px`,e.style.paddingRight=`10px`;E&&(E.style.borderTop=`0`,E.style.outline=`0`,E.style.boxShadow=`none`),O&&(O.style.borderBottom=`0`),A&&(A.style.marginLeft=`14px`,A.style.marginRight=`14px`,A.style.position=`relative`,A.style.zIndex=`2`),_e()}B||(B=ye(),a.appendChild(B))},$e=null,et=null,tt=!1,nt=()=>{let e=r.innerWidth,n=r.innerHeight;if(e>n){let r=n/e,i=Math.round(t.billboardHeight*r);a.style.height=i+`px`,a.style.minHeight=i+`px`,B&&(B.style.height=i+`px`,B.style.minHeight=i+`px`,B.style.maxHeight=i+`px`),R&&(R.style.height=i+`px`)}else a.style.height=t.billboardHeight+`px`,a.style.minHeight=t.billboardHeight+`px`,B&&(B.style.height=t.billboardHeight+`px`,B.style.minHeight=t.billboardHeight+`px`,B.style.maxHeight=t.billboardHeight+`px`),R&&(R.style.height=t.billboardHeight+`px`);G===`active`?Fe():je()};if(Qe(),l&&l!==`about:blank`)try{let e=new URL(l);e.searchParams.set(`mfRole`,`billboard`),R=i.createElement(`iframe`),R.src=e.href,R.setAttribute(`data-mf-billboard-iframe`,``),R.setAttribute(`scrolling`,`no`),R.setAttribute(`frameborder`,`0`);let n=R.style;n.position=Z?`absolute`:`relative`,n.width=`100%`,n.height=t.billboardHeight+`px`,n.border=`none`,n.margin=`0`,n.padding=`0`,n.display=`block`,n.overflow=`hidden`,n.background=`transparent`,n.zIndex=Z?`6`:`1`,Z?(R.setAttribute(`data-mf-body-billboard`,``),i.body.appendChild(R),Ae()):(B||a).appendChild(R),se&&(J=Ze,r.addEventListener(`scroll`,J,{passive:!0}),i.addEventListener(`scroll`,J,{passive:!0}),i.scrollingElement?.addEventListener(`scroll`,J,{passive:!0}))}catch(e){console.warn(`[mobilefireplace] Could not create billboard iframe:`,e)}r.__mfBridge={adapted:!1,wallpaperWindow:z?.contentWindow||n.contentWindow,billboardIframe:R,billboardWindow:null},z&&z.addEventListener(`load`,()=>{try{r.__mfBridge&&(r.__mfBridge.wallpaperWindow=z.contentWindow)}catch{}}),R&&R.addEventListener(`load`,()=>{try{r.__mfBridge.billboardWindow=R.contentWindow}catch{}}),$e=nt,r.addEventListener(`resize`,$e),nt(),et=()=>{rt()},window.addEventListener(`pagehide`,et),window.addEventListener(`beforeunload`,et),t.onAdapt&&r.requestAnimationFrame(()=>{r.__mfBridge.adapted=!0,t.onAdapt()});let rt=()=>{if(!tt){tt=!0,et&&=(window.removeEventListener(`pagehide`,et),window.removeEventListener(`beforeunload`,et),null),$e&&=(r.removeEventListener(`resize`,$e),null),J&&=(r.removeEventListener(`scroll`,J),i.removeEventListener(`scroll`,J),i.scrollingElement?.removeEventListener(`scroll`,J),null),Y&&=(r.cancelAnimationFrame(Y),null),Le(),K&&=(r.cancelAnimationFrame(K),null),q&&=(r.clearTimeout(q),null),Te({active:!1,progress:1,remainingMs:0}),L&&L.parentNode&&(L.parentNode.removeChild(L),L=null),R&&R.parentNode&&(R.parentNode.removeChild(R),R=null),Q=null,me=null,B&&B.parentNode&&(B.parentNode.removeChild(B),B=null),z&&z.parentNode&&(z.parentNode.removeChild(z),z=null);try{delete r.__mfBridge}catch{}for(let e=ae.length-1;e>=0;--e){let{shell:t,parent:n,nextSibling:r}=ae[e];!t||!n||(r&&r.parentNode===n?n.insertBefore(t,r):n.appendChild(t))}ae.length=0,H&&(ee&&ee.parentNode===H?H.insertBefore(n,ee):H.appendChild(n),H=null,ee=null),m?n.setAttribute(`style`,m):n.removeAttribute(`style`),h||n.removeAttribute(`data-mf-wallpaper-iframe`);for(let{el:e,orig:t}of V)t?e.setAttribute(`style`,t):e.removeAttribute(`style`);V.length=0,g?a.setAttribute(`style`,g):a.removeAttribute(`style`),_&&(v?_.setAttribute(`style`,v):_.removeAttribute(`style`)),te&&=(ne&&(re&&re.parentNode===ne?ne.insertBefore(te,re):ne.appendChild(te),ne=null,re=null),null),y&&(y.removeAttribute(`data-mf-slot`),C?y.setAttribute(`style`,C):y.removeAttribute(`style`)),U&&(ie?U.setAttribute(`style`,ie):U.removeAttribute(`style`),U=null,ie=null);for(let{el:e,orig:t}of M)t?e.setAttribute(`style`,t):e.removeAttribute(`style`);F&&(I?F.setAttribute(`style`,I):F.removeAttribute(`style`),F=null,I=null),N&&(P?N.setAttribute(`style`,P):N.removeAttribute(`style`),N=null,P=null),o&&(T?o.setAttribute(`style`,T):o.removeAttribute(`style`)),E&&(D?E.setAttribute(`style`,D):E.removeAttribute(`style`)),O&&(k?O.setAttribute(`style`,k):O.removeAttribute(`style`)),A&&(j?A.setAttribute(`style`,j):A.removeAttribute(`style`)),s&&(w?s.setAttribute(`style`,w):s.removeAttribute(`style`))}};return rt},L=()=>{};function R({adFormat:e=``,stickyOffset:t=0,logoPosX:n=0,logoHeight:r=0,logoSmallHeight:i=0,...a}={}){typeof L==`function`&&L();let o=()=>{};return e===`fireplace`?o=d(t):e===`fireplace-collant`?o=f(t):e===`logomorph`?o=M(n,r,i):e===`dynamicheading`?o=j(a):e===`interscroller`?o=P(a):e===`liquidframe`?o=F(a):e===`mobilefireplace`?o=I(a):console.warn(`[powered-ad-config] Unknown ad format:`,e),L=typeof o==`function`?o:()=>{},L}return R.version=`0.1.96`,R});
390
+ `,i.head.appendChild(L),f.setup&&f.setup(i,a),f===u.wwos){let e=_e();e&&(N=e.el,P=N.getAttribute(`style`),F=e.list,I=F?F.getAttribute(`style`):null,N.style.marginLeft=`10px`,N.style.marginRight=`10px`,N.style.width=`calc(100% - 20px)`,F&&(F.style.width=`100%`))}if(o&&f!==u.afr&&(U||p)){if(U&&(te=c||y),l&&l!==`about:blank`){let e=new URL(l);e.searchParams.set(`mfRole`,`wallpaper`),z=i.createElement(`iframe`),z.src=e.href,z.setAttribute(`data-mf-wallpaper-iframe`,``),z.setAttribute(`scrolling`,`no`),z.setAttribute(`frameborder`,`0`);let n=z.style;n.position=`fixed`,n.top=`0`,n.left=`0`,n.width=`100vw`,n.height=`100dvh`,n.border=`none`,n.margin=`0`,n.padding=`0`,n.display=`block`,n.background=`transparent`,n.zIndex=String(t.zIndex),n.pointerEvents=`none`,i.body.insertBefore(z,i.body.firstChild)}n.style.position=`absolute`,n.style.top=`0`,n.style.left=`0`,n.style.width=`0`,n.style.height=`0`,n.style.opacity=`0`,n.style.pointerEvents=`none`,n.style.zIndex=`-1`,B=ge(),o.parentElement.insertBefore(B,o),U?(U.style.position=`static`,U.style.inset=`auto`,U.style.height=`0`,U.style.minHeight=`0`,U.style.maxHeight=`0`,U.style.overflow=`hidden`,U.style.backgroundColor=`transparent`,U.style.boxShadow=`none`,U.style.border=`0`,U.style.outline=`0`,U.style.pointerEvents=`none`):y&&(y.style.height=`0`,y.style.minHeight=`0`,y.style.maxHeight=`0`,y.style.overflow=`hidden`,y.style.backgroundColor=`transparent`,y.style.border=`0`,y.style.outline=`0`),h.height=`0`,h.minHeight=`0`,h.width=`0`,h.overflow=`hidden`,s&&(s.style.backgroundColor=`transparent`,s.style.backgroundImage=`none`,s.style.position=`relative`,s.style.zIndex=`1`),o.style.marginLeft=`14px`,o.style.marginRight=`14px`,o.style.backgroundColor=`#ffffff`,o.style.position=`relative`,o.style.zIndex=`2`,o.style.overflowX=`clip`,o.style.isolation=`isolate`;for(let{el:e}of M)e.style.backgroundColor=`transparent`,e.style.boxShadow=`none`,e.style.paddingLeft=`10px`,e.style.paddingRight=`10px`;E&&(E.style.borderTop=`0`,E.style.outline=`0`,E.style.boxShadow=`none`),O&&(O.style.borderBottom=`0`),A&&(A.style.marginLeft=`14px`,A.style.marginRight=`14px`,A.style.position=`relative`,A.style.zIndex=`2`),me()}B||(B=ge(),a.appendChild(B))},Je=null,Ye=null,Xe=!1,Ze=()=>{let e=r.innerWidth,n=r.innerHeight;if(e>n){let r=n/e,i=Math.round(t.billboardHeight*r);a.style.height=i+`px`,a.style.minHeight=i+`px`,B&&(B.style.height=i+`px`,B.style.minHeight=i+`px`,B.style.maxHeight=i+`px`),R&&(R.style.height=i+`px`)}else a.style.height=t.billboardHeight+`px`,a.style.minHeight=t.billboardHeight+`px`,B&&(B.style.height=t.billboardHeight+`px`,B.style.minHeight=t.billboardHeight+`px`,B.style.maxHeight=t.billboardHeight+`px`),R&&(R.style.height=t.billboardHeight+`px`);K===`active`?Ae():Oe()};if(qe(),l&&l!==`about:blank`)try{let e=new URL(l);e.searchParams.set(`mfRole`,`billboard`),R=i.createElement(`iframe`),R.src=e.href,R.setAttribute(`data-mf-billboard-iframe`,``),R.setAttribute(`scrolling`,`no`),R.setAttribute(`frameborder`,`0`);let n=R.style;n.position=Q?`absolute`:`relative`,n.width=`100%`,n.height=t.billboardHeight+`px`,n.border=`none`,n.margin=`0`,n.padding=`0`,n.display=`block`,n.overflow=`hidden`,n.background=`transparent`,n.zIndex=Q?`6`:`1`,Q?(R.setAttribute(`data-mf-body-billboard`,``),i.body.appendChild(R),De()):(B||a).appendChild(R),oe&&(Y=Ke,r.addEventListener(`scroll`,Y,{passive:!0}),i.addEventListener(`scroll`,Y,{passive:!0}),i.scrollingElement?.addEventListener(`scroll`,Y,{passive:!0}))}catch(e){console.warn(`[mobilefireplace] Could not create billboard iframe:`,e)}r.__mfBridge={adapted:!1,wallpaperWindow:z?.contentWindow||n.contentWindow,billboardIframe:R,billboardWindow:null},z&&z.addEventListener(`load`,()=>{try{r.__mfBridge&&(r.__mfBridge.wallpaperWindow=z.contentWindow)}catch{}}),R&&R.addEventListener(`load`,()=>{try{r.__mfBridge.billboardWindow=R.contentWindow}catch{}}),Je=Ze,r.addEventListener(`resize`,Je),Ze(),Ye=()=>{Qe()},window.addEventListener(`pagehide`,Ye),window.addEventListener(`beforeunload`,Ye),t.onAdapt&&r.requestAnimationFrame(()=>{r.__mfBridge.adapted=!0,t.onAdapt()});let Qe=()=>{if(!Xe){Xe=!0,Ye&&=(window.removeEventListener(`pagehide`,Ye),window.removeEventListener(`beforeunload`,Ye),null),Je&&=(r.removeEventListener(`resize`,Je),null),Y&&=(r.removeEventListener(`scroll`,Y),i.removeEventListener(`scroll`,Y),i.scrollingElement?.removeEventListener(`scroll`,Y),null),X&&=(r.cancelAnimationFrame(X),null),Me(),q&&=(r.cancelAnimationFrame(q),null),J&&=(r.clearTimeout(J),null),Se({active:!1,progress:1,remainingMs:0}),L&&L.parentNode&&(L.parentNode.removeChild(L),L=null),R&&R.parentNode&&(R.parentNode.removeChild(R),R=null),B&&B.parentNode&&(B.parentNode.removeChild(B),B=null),z&&z.parentNode&&(z.parentNode.removeChild(z),z=null);try{delete r.__mfBridge}catch{}for(let e=W.length-1;e>=0;--e){let{shell:t,parent:n,nextSibling:r}=W[e];!t||!n||(r&&r.parentNode===n?n.insertBefore(t,r):n.appendChild(t))}W.length=0,H&&(ee&&ee.parentNode===H?H.insertBefore(n,ee):H.appendChild(n),H=null,ee=null),m?n.setAttribute(`style`,m):n.removeAttribute(`style`),h||n.removeAttribute(`data-mf-wallpaper-iframe`);for(let{el:e,orig:t}of V)t?e.setAttribute(`style`,t):e.removeAttribute(`style`);V.length=0,g?a.setAttribute(`style`,g):a.removeAttribute(`style`),_&&(v?_.setAttribute(`style`,v):_.removeAttribute(`style`)),te&&=(ne&&(re&&re.parentNode===ne?ne.insertBefore(te,re):ne.appendChild(te),ne=null,re=null),null),y&&(y.removeAttribute(`data-mf-slot`),C?y.setAttribute(`style`,C):y.removeAttribute(`style`)),U&&(ie?U.setAttribute(`style`,ie):U.removeAttribute(`style`),U=null,ie=null);for(let{el:e,orig:t}of M)t?e.setAttribute(`style`,t):e.removeAttribute(`style`);F&&(I?F.setAttribute(`style`,I):F.removeAttribute(`style`),F=null,I=null),N&&(P?N.setAttribute(`style`,P):N.removeAttribute(`style`),N=null,P=null),o&&(T?o.setAttribute(`style`,T):o.removeAttribute(`style`)),E&&(D?E.setAttribute(`style`,D):E.removeAttribute(`style`)),O&&(k?O.setAttribute(`style`,k):O.removeAttribute(`style`)),A&&(j?A.setAttribute(`style`,j):A.removeAttribute(`style`)),s&&(w?s.setAttribute(`style`,w):s.removeAttribute(`style`))}};return Qe},L=()=>{};function R({adFormat:e=``,stickyOffset:t=0,logoPosX:n=0,logoHeight:r=0,logoSmallHeight:i=0,...a}={}){typeof L==`function`&&L();let o=()=>{};return e===`fireplace`?o=d(t):e===`fireplace-collant`?o=f(t):e===`logomorph`?o=M(n,r,i):e===`dynamicheading`?o=j(a):e===`interscroller`?o=P(a):e===`liquidframe`?o=F(a):e===`mobilefireplace`?o=I(a):console.warn(`[powered-ad-config] Unknown ad format:`,e),L=typeof o==`function`?o:()=>{},L}return R.version=`0.1.97`,R});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "powered-ad-config",
3
- "version": "0.1.96",
3
+ "version": "0.1.97",
4
4
  "description": "Configure Ads to load smoothly and at the right position on All Nine's websites",
5
5
  "main": "dist/powered-ad-config.umd.js",
6
6
  "module": "dist/powered-ad-config.es.js",