powered-ad-config 0.1.60 → 0.1.61

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.
@@ -370,7 +370,7 @@ var e = (e, t, n) => {
370
370
  }, P = () => {
371
371
  let e = A();
372
372
  if (!e) return;
373
- a(e, "0.1.60");
373
+ a(e, "0.1.61");
374
374
  let t = e.style;
375
375
  e.className &&= "", t.minHeight = "250px", t.marginTop = R.adNodeMarginTop + "px", t.marginBottom = R.adNodeMarginBottom + "px", t.position = "static", t.display = "block", R.zIndex && R.zIndex();
376
376
  }, F = () => {
@@ -810,10 +810,10 @@ var e = (e, t, n) => {
810
810
  }, K = {
811
811
  element: null,
812
812
  position: ""
813
- }, q = () => {
813
+ }, ee = () => {
814
814
  let e = I.parentElement;
815
815
  e && o.getComputedStyle(e).position === "static" && (K.element = e, K.position = e.style.position, S(e, "position", "relative")), S(I, "position", "absolute"), S(I, "top", `${H}px`), S(I, "left", `${U}px`), S(I, "right", "auto"), S(I, "marginTop", "0px"), S(I, "marginBottom", `${u}px`), S(I, "marginLeft", "0px"), S(I, "marginRight", "0px"), S(I, "transform", "");
816
- }, ee = (e) => {
816
+ }, te = (e) => {
817
817
  let t = null;
818
818
  try {
819
819
  let e = a.contentDocument;
@@ -835,33 +835,33 @@ var e = (e, t, n) => {
835
835
  } catch {
836
836
  return a.removeAttribute(b), !1;
837
837
  }
838
- W(), G(), q();
838
+ W(), G(), ee();
839
839
  try {
840
840
  a.srcdoc = t;
841
841
  } catch {
842
842
  return !1;
843
843
  }
844
844
  return !0;
845
- }, te = () => {
846
- S(I, "position", "fixed"), S(I, "marginTop", "0px"), S(I, "marginBottom", "0px"), S(I, "marginLeft", "0px"), S(I, "marginRight", "0px"), S(I, "transform", "");
847
845
  }, ne = () => {
848
- S(I, "display", "none");
846
+ S(I, "position", "fixed"), S(I, "marginTop", "0px"), S(I, "marginBottom", "0px"), S(I, "marginLeft", "0px"), S(I, "marginRight", "0px"), S(I, "transform", "");
849
847
  }, re = () => {
848
+ S(I, "display", "none");
849
+ }, ie = () => {
850
850
  S(I, "display", "block"), S(I, "overflow", "hidden");
851
- }, J = null, Y = () => {
852
- if ((!J || !J.isConnected) && (J = D(F.headingText)), !J) return;
853
- let e = J.getBoundingClientRect(), t = e.top - V - u + H, n = e.left + U;
851
+ }, q = null, J = () => {
852
+ if ((!q || !q.isConnected) && (q = D(F.headingText)), !q) return;
853
+ let e = q.getBoundingClientRect(), t = e.top - V - u + H, n = e.left + U;
854
854
  S(I, "top", `${t}px`), S(I, "left", `${n}px`), S(I, "right", "auto");
855
- }, X = null, Z = null, Q = !1, $ = (e = 12) => {
856
- if (J = D(F.headingText), !J) {
857
- e > 1 && (k = o.setTimeout(() => $(e - 1), 250));
855
+ }, Y = null, X = null, Z = !1, Q = (e = 12) => {
856
+ if (q = D(F.headingText), !q) {
857
+ e > 1 && (k = o.setTimeout(() => Q(e - 1), 250));
858
858
  return;
859
859
  }
860
- ee(J) || (Q = !0, W(), G(), te(), Y(), X = () => Y(), Z = () => Y(), o.addEventListener("scroll", X, { passive: !0 }), o.addEventListener("resize", Z));
860
+ te(q) || (Z = !0, W(), G(), ne(), J(), Y = () => J(), X = () => J(), o.addEventListener("scroll", Y, { passive: !0 }), o.addEventListener("resize", X));
861
861
  };
862
- $();
863
- let ie = () => {
864
- k &&= (o.clearTimeout(k), null), O &&= (o.clearTimeout(O), null), X &&= (o.removeEventListener("scroll", X), null), Z &&= (o.removeEventListener("resize", Z), null), I.getAttribute(y) === h && I.removeAttribute(y), Q && (Object.entries(R).forEach(([e, t]) => {
862
+ Q();
863
+ let $ = () => {
864
+ k &&= (o.clearTimeout(k), null), O &&= (o.clearTimeout(O), null), Y &&= (o.removeEventListener("scroll", Y), null), X &&= (o.removeEventListener("resize", X), null), I.getAttribute(y) === h && I.removeAttribute(y), Z && (Object.entries(R).forEach(([e, t]) => {
865
865
  I.style[e] = t;
866
866
  }), Object.entries(z).forEach(([e, t]) => {
867
867
  a.style[e] = t;
@@ -872,10 +872,10 @@ var e = (e, t, n) => {
872
872
  return o[v] = {
873
873
  instanceId: h,
874
874
  iframe: a,
875
- cleanup: ie,
876
- show: re,
877
- hide: ne
878
- }, ie;
875
+ cleanup: $,
876
+ show: ie,
877
+ hide: re
878
+ }, $;
879
879
  }, T = (e, t, n) => {
880
880
  let r = window.frameElement ? window.frameElement : null;
881
881
  if (!r) return () => {};
@@ -1188,7 +1188,7 @@ var e = (e, t, n) => {
1188
1188
  };
1189
1189
  (() => {
1190
1190
  let e = a.style;
1191
- e.height = t.adScrollHeight, e.maxHeight = t.adScrollHeight, e.position = "relative", a.setAttribute("poweredAC", "0.1.60"), 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";
1191
+ e.height = t.adScrollHeight, e.maxHeight = t.adScrollHeight, e.position = "relative", a.setAttribute("poweredAC", "0.1.61"), 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";
1192
1192
  let o = a.parentElement;
1193
1193
  for (let e = 0; e < 6 && o && o !== i.body; e++) {
1194
1194
  let t = r.getComputedStyle(o), n = !1;
@@ -1326,7 +1326,7 @@ var e = (e, t, n) => {
1326
1326
  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;
1327
1327
  return (() => {
1328
1328
  let e = a.style;
1329
- if (e.position = "relative", e.overflow = "visible", e.boxSizing = "border-box", a.setAttribute("poweredAC", "0.1.60"), c) {
1329
+ if (e.position = "relative", e.overflow = "visible", e.boxSizing = "border-box", a.setAttribute("poweredAC", "0.1.61"), c) {
1330
1330
  let e = c.style;
1331
1331
  e.width = "100%", e.height = "100%", e.margin = "0", e.textAlign = "left";
1332
1332
  }
@@ -1482,18 +1482,6 @@ var e = (e, t, n) => {
1482
1482
  R(t) && z(t);
1483
1483
  }
1484
1484
  }, V = () => {
1485
- if (!o || !p) return !1;
1486
- let e = o.getBoundingClientRect();
1487
- if (!e.width || !e.height) return !1;
1488
- let t = Math.max(1, Math.min(r.innerWidth - 1, Math.round(e.left + 20))), a = Math.max(1, Math.min(r.innerHeight - 1, Math.round(e.top + 40))), s = i.elementFromPoint(t, a);
1489
- if (!s || s === o || o.contains(s)) return !1;
1490
- if (s === n) return !0;
1491
- if (s.tagName === "IFRAME") {
1492
- let e = r.getComputedStyle(s), t = s.getBoundingClientRect();
1493
- return e.position === "fixed" && t.height >= r.innerHeight - 10;
1494
- }
1495
- return !1;
1496
- }, H = () => {
1497
1485
  B();
1498
1486
  let e = n.parentElement;
1499
1487
  for (; e && e !== i.body && e !== i.documentElement;) {
@@ -1516,13 +1504,13 @@ var e = (e, t, n) => {
1516
1504
  }), u.style.overflow = "visible"), u = u.parentElement;
1517
1505
  }
1518
1506
  let d = n.style;
1519
- if (d.position = "fixed", d.top = "0", d.left = "0", d.width = "100vw", d.height = "100dvh", d.zIndex = String(t.zIndex), d.border = "none", d.margin = "0", d.padding = "0", d.display = "block", a.setAttribute("poweredAC", "0.1.60"), g) {
1507
+ if (d.position = "fixed", d.top = "0", d.left = "0", d.width = "100vw", d.height = "100dvh", d.zIndex = String(t.zIndex), d.border = "none", d.margin = "0", d.padding = "0", d.display = "block", a.setAttribute("poweredAC", "0.1.61"), g) {
1520
1508
  let e = g.style;
1521
1509
  e.width = "100%", e.height = "0", e.overflow = "visible", e.position = "static", e.margin = "0";
1522
1510
  }
1523
- let p = a.style;
1524
- p.height = t.billboardHeight + "px", p.minHeight = t.billboardHeight + "px", p.background = "transparent", p.overflow = "visible", p.position = "relative", p.width = "100%", p.padding = "0", p.margin = "0", v && (v.style.overflow = "visible", v.style.position = "relative", v.style.backgroundColor = "transparent", v.style.height = t.billboardHeight + "px", v.style.minHeight = t.billboardHeight + "px", v.style.maxHeight = t.billboardHeight + "px", v.style.padding = "0", v.style.margin = "0", v.setAttribute("data-mf-slot", ""));
1525
- let m = `max(${t.sideStripWidth}px, env(safe-area-inset-left))`, h = `max(${t.sideStripWidth}px, env(safe-area-inset-right))`;
1511
+ let m = a.style;
1512
+ m.height = t.billboardHeight + "px", m.minHeight = t.billboardHeight + "px", m.background = "transparent", m.overflow = "visible", m.position = "relative", m.width = "100%", m.padding = "0", m.margin = "0", v && (v.style.overflow = "visible", v.style.position = "relative", v.style.backgroundColor = "transparent", v.style.height = t.billboardHeight + "px", v.style.minHeight = t.billboardHeight + "px", v.style.maxHeight = t.billboardHeight + "px", v.style.padding = "0", v.style.margin = "0", v.setAttribute("data-mf-slot", ""));
1513
+ let h = `max(${t.sideStripWidth}px, env(safe-area-inset-left))`, _ = `max(${t.sideStripWidth}px, env(safe-area-inset-right))`;
1526
1514
  if (T = i.createElement("style"), T.id = "mobilefireplace-pac", T.textContent = `
1527
1515
  /* Mobile Fireplace — powered-ad-config */
1528
1516
  html, body {
@@ -1542,8 +1530,8 @@ var e = (e, t, n) => {
1542
1530
  position: relative;
1543
1531
  z-index: 1;
1544
1532
  background-color: ${f.siteBackgroundColor};
1545
- margin-left: ${m} !important;
1546
- margin-right: ${h} !important;
1533
+ margin-left: ${h} !important;
1534
+ margin-right: ${_} !important;
1547
1535
  }
1548
1536
  /* Header, nav and network nav stay full-width — no side margin, keep own background */
1549
1537
  body > * > header,
@@ -1577,25 +1565,25 @@ var e = (e, t, n) => {
1577
1565
  margin: 0 !important;
1578
1566
  padding: 0 !important;
1579
1567
  }
1580
- `, i.head.appendChild(T), f.setup && f.setup(i, a), o && (F || V())) {
1568
+ `, i.head.appendChild(T), f.setup && f.setup(i, a), o && (F || p)) {
1581
1569
  if (F && (M = c || v), l && l !== "about:blank") {
1582
1570
  let e = new URL(l);
1583
1571
  e.searchParams.set("mfRole", "wallpaper"), D = i.createElement("iframe"), D.src = e.href, D.setAttribute("data-mf-wallpaper-iframe", ""), D.setAttribute("scrolling", "no"), D.setAttribute("frameborder", "0");
1584
1572
  let n = D.style;
1585
1573
  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(D, i.body.firstChild);
1586
1574
  }
1587
- 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", O = i.createElement("div"), O.setAttribute("data-mf-billboard-mount", ""), O.style.height = `${t.billboardHeight}px`, O.style.minHeight = `${t.billboardHeight}px`, O.style.maxHeight = `${t.billboardHeight}px`, O.style.background = "transparent", O.style.overflow = "visible", O.style.position = "relative", O.style.width = "100%", O.style.padding = "0", O.style.margin = "0", o.parentElement.insertBefore(O, o), F ? (F.style.position = "static", F.style.inset = "auto", F.style.height = "0", F.style.minHeight = "0", F.style.maxHeight = "0", F.style.overflow = "hidden", F.style.backgroundColor = "transparent", F.style.boxShadow = "none", F.style.border = "0", F.style.outline = "0", F.style.pointerEvents = "none") : v && (v.style.height = "0", v.style.minHeight = "0", v.style.maxHeight = "0", v.style.overflow = "hidden", v.style.backgroundColor = "transparent", v.style.border = "0", v.style.outline = "0"), p.height = "0", p.minHeight = "0", p.width = "0", p.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";
1575
+ 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", O = i.createElement("div"), O.setAttribute("data-mf-billboard-mount", ""), O.style.height = `${t.billboardHeight}px`, O.style.minHeight = `${t.billboardHeight}px`, O.style.maxHeight = `${t.billboardHeight}px`, O.style.background = "transparent", O.style.overflow = "visible", O.style.position = "relative", O.style.width = "100%", O.style.padding = "0", O.style.margin = "0", o.parentElement.insertBefore(O, o), F ? (F.style.position = "static", F.style.inset = "auto", F.style.height = "0", F.style.minHeight = "0", F.style.maxHeight = "0", F.style.overflow = "hidden", F.style.backgroundColor = "transparent", F.style.boxShadow = "none", F.style.border = "0", F.style.outline = "0", F.style.pointerEvents = "none") : v && (v.style.height = "0", v.style.minHeight = "0", v.style.maxHeight = "0", v.style.overflow = "hidden", v.style.backgroundColor = "transparent", v.style.border = "0", v.style.outline = "0"), m.height = "0", m.minHeight = "0", m.width = "0", m.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";
1588
1576
  for (let { el: e } of w) e.style.backgroundColor = "transparent", e.style.boxShadow = "none", e.style.paddingLeft = "10px", e.style.paddingRight = "10px";
1589
1577
  S && (S.style.marginLeft = "14px", S.style.marginRight = "14px", S.style.position = "relative", S.style.zIndex = "2"), B();
1590
1578
  }
1591
- }, U = null, W = null, G = !1, K = () => {
1579
+ }, H = null, U = null, W = !1, G = () => {
1592
1580
  let e = r.innerWidth, n = r.innerHeight;
1593
1581
  if (e > n) {
1594
1582
  let r = n / e, i = Math.round(t.billboardHeight * r);
1595
1583
  a.style.height = i + "px", a.style.minHeight = i + "px", E && (E.style.height = i + "px");
1596
1584
  } else a.style.height = t.billboardHeight + "px", a.style.minHeight = t.billboardHeight + "px", E && (E.style.height = t.billboardHeight + "px");
1597
1585
  };
1598
- if (H(), l && l !== "about:blank") try {
1586
+ if (V(), l && l !== "about:blank") try {
1599
1587
  let e = new URL(l);
1600
1588
  e.searchParams.set("mfRole", "billboard"), E = i.createElement("iframe"), E.src = e.href, E.setAttribute("data-mf-billboard-iframe", ""), E.setAttribute("scrolling", "no"), E.setAttribute("frameborder", "0");
1601
1589
  let n = E.style;
@@ -1616,14 +1604,14 @@ var e = (e, t, n) => {
1616
1604
  try {
1617
1605
  r.__mfBridge.billboardWindow = E.contentWindow;
1618
1606
  } catch {}
1619
- }), U = K, r.addEventListener("resize", U), K(), W = () => {
1620
- q();
1621
- }, window.addEventListener("pagehide", W), window.addEventListener("beforeunload", W), t.onAdapt && r.requestAnimationFrame(() => {
1607
+ }), H = G, r.addEventListener("resize", H), G(), U = () => {
1608
+ K();
1609
+ }, window.addEventListener("pagehide", U), window.addEventListener("beforeunload", U), t.onAdapt && r.requestAnimationFrame(() => {
1622
1610
  r.__mfBridge.adapted = !0, t.onAdapt();
1623
1611
  });
1624
- let q = () => {
1625
- if (!G) {
1626
- G = !0, W &&= (window.removeEventListener("pagehide", W), window.removeEventListener("beforeunload", W), null), U &&= (r.removeEventListener("resize", U), null), T && T.parentNode && (T.parentNode.removeChild(T), T = null), E && E.parentNode && (E.parentNode.removeChild(E), E = null), O && O.parentNode && (O.parentNode.removeChild(O), O = null), D && D.parentNode && (D.parentNode.removeChild(D), D = null);
1612
+ let K = () => {
1613
+ if (!W) {
1614
+ W = !0, U &&= (window.removeEventListener("pagehide", U), window.removeEventListener("beforeunload", U), null), H &&= (r.removeEventListener("resize", H), null), T && T.parentNode && (T.parentNode.removeChild(T), T = null), E && E.parentNode && (E.parentNode.removeChild(E), E = null), O && O.parentNode && (O.parentNode.removeChild(O), O = null), D && D.parentNode && (D.parentNode.removeChild(D), D = null);
1627
1615
  try {
1628
1616
  delete r.__mfBridge;
1629
1617
  } catch {}
@@ -1638,13 +1626,13 @@ var e = (e, t, n) => {
1638
1626
  o && (x ? o.setAttribute("style", x) : o.removeAttribute("style")), S && (C ? S.setAttribute("style", C) : S.removeAttribute("style")), s && (b ? s.setAttribute("style", b) : s.removeAttribute("style"));
1639
1627
  }
1640
1628
  };
1641
- return q;
1629
+ return K;
1642
1630
  }, A = () => {};
1643
1631
  function j({ adFormat: e = "", stickyOffset: t = 0, logoPosX: n = 0, logoHeight: r = 0, logoSmallHeight: i = 0, ...a } = {}) {
1644
1632
  typeof A == "function" && A();
1645
1633
  let c = () => {};
1646
1634
  return e === "fireplace" ? c = o(t) : e === "fireplace-collant" ? c = s(t) : e === "logomorph" ? c = T(n, r, i) : e === "headingintegration" ? c = w(a) : e === "interscroller" ? c = D(a) : e === "liquidframe" ? c = O(a) : e === "mobilefireplace" ? c = k(a) : console.warn("[powered-ad-config] Unknown ad format:", e), A = typeof c == "function" ? c : () => {}, A;
1647
1635
  }
1648
- j.version = "0.1.60";
1636
+ j.version = "0.1.61";
1649
1637
  //#endregion
1650
1638
  export { j as default };
@@ -102,13 +102,13 @@
102
102
  position: relative;
103
103
  z-index: 1086;
104
104
  }
105
- `),o(d.filter(e=>e!==u&&e!==f),[[`position`,`relative`],[`zIndex`,`1071`]]),o(Array.from(r.querySelectorAll(`main, aside, article, footer, .sc-kACOFj.bkaoXt, .sc-hpDagB.HUkOB, [id*="adspot-desktop-banner-"]`)),[[`position`,`relative`],[`zIndex`,`1072`]]);let p=i(r.querySelector(`footer`),`div`);p&&(p.style.position=`relative`),y(r)}},E=()=>_()?T:w,D={siteBackgroundColor:`#ffffff`,fireplaceLeftMargin:0,adNodeMarginTop:-32,adNodeMarginBottom:18,responsiveScroll:-124,xPosHalfpage:720,yPosHalfpage:16,stickyMargin:{offset:74,isSticky:!0},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);`)}},O=[{site:`https://www.nine.com.au/sport`,config:E},{site:`https://www.nine.com.au/product-reviews`,config:p},{site:`https://www.nine.com.au/property`,config:p},{site:`https://www.nine.com.au/entertainment`,config:C},{site:`https://staging.nine.com.au/sport`,config:E},{site:`https://staging.nine.com.au/product-reviews`,config:p},{site:`https://staging.nine.com.au/property`,config:p},{site:`https://staging.nine.com.au/entertainment`,config:C},{site:`https://render-web-nine-staging-v1.ffxblue.com.au`,config:C},{site:`https://render-web-nine-production-v1.ffxblue.com.au`,config:C},{site:`https://preview.nine.com.au/`,config:C},{site:`https://www.nine`,config:C},{site:`https://staging.nine`,config:C},{site:`https://entertainment`,config:f},{site:`https://celebrity`,config:f},{site:`https://homes`,config:f},{site:`https://travel`,config:f},{site:`https://honey`,config:f},{site:`https://style`,config:f},{site:`https://coach`,config:f},{site:`https://kitchen`,config:f},{site:`https://finance`,config:f},{site:`https://staging.wwos`,config:E},{site:`https://www.9news`,config:D},{site:`https://staging.9news`,config:D},{site:`https://www.yourtv`,config:f},{site:`https://staging.yourtv`,config:f},{site:`https://9now`,config:p},{site:`https://creative-preview-an.com`,config:f}],k=()=>{let e=window.document.getElementById(`nineContent`);if(e&&(e.style.backgroundColor=R.siteBackgroundColor),P(),N(),M(),c.addEventListener(`scroll`,L),z=setTimeout(L,50),R===S||R===T){let e=R===S?m():null,t=e?.appRoot||h()||l.body,n=e?.desktopHeaderAds||l.querySelector(`#desktop-header-ads`);t&&c.MutationObserver&&(d=new c.MutationObserver(()=>{I()}),d.observe(t,{childList:!0,subtree:!0}),n&&n!==t&&d.observe(n,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[`class`]})),c.addEventListener(`resize`,I),I()}},A=()=>{let e=null;return e=l.querySelector(`div[id*="billboard"][id*="above"]`),e},j=()=>{let e=c.location.href;for(let t=0;t<O.length;t+=1)if(e.indexOf(O[t].site)>=0)return typeof O[t].config==`function`?O[t].config():O[t].config;try{let t=new URL(e),n=t.hostname.toLowerCase(),r=t.pathname.toLowerCase();if(n===`creative-preview-an.com`)return f;if(n.includes(`9news`))return D;if(n.includes(`yourtv`))return f;if(n.includes(`9now`))return p;if(n===`www.nine.com.au`||n===`staging.nine.com.au`||n===`preview.nine.com.au`||n===`render-web-nine-staging-v1.ffxblue.com.au`||n===`render-web-nine-production-v1.ffxblue.com.au`)return r.startsWith(`/sport`)?E():r.startsWith(`/product-reviews`)||r.startsWith(`/property`)?p:C();if([`entertainment`,`celebrity`,`homes`,`travel`,`honey`,`style`,`coach`,`kitchen`,`finance`].some(e=>n.includes(e)))return f}catch{return C()}return C()},M=()=>{if(!window.parent)return;let e=l.querySelector(`div[id*="halfpage"][id*="above"]`);if(!e)return;let t=e;for(let e=0;e<3;e++)if(t=t.parentNode,t&&c.getComputedStyle(t).position===`sticky`){t.setAttribute(`style`,`top: ${R.stickyMargin.offset}px`);break}},N=()=>{if(!s)return;let e=s.style;e.width=R.iframeWidth||`100%`,e.height=R.iframeHeight||`1000px`,e.position=`fixed`,R.iframeTop==null?e.removeProperty(`top`):e.top=R.iframeTop,e.left=`50%`,e.transform=`translate(-50%, 0)`;let t=s.parentElement;for(;t&&t!==l.body&&t!==l.documentElement;){let e=c.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}},P=()=>{let e=A();if(!e)return;a(e,`0.1.60`);let t=e.style;e.className&&=``,t.minHeight=`250px`,t.marginTop=R.adNodeMarginTop+`px`,t.marginBottom=R.adNodeMarginBottom+`px`,t.position=`static`,t.display=`block`,R.zIndex&&R.zIndex()},F=()=>{let e=c.scrollY,t=s.style,n=document.getElementById(`siteContent`)?document.getElementById(`siteContent`).style:{};e>=0&&e<=B?(t.transform=`translate(-50%, ${-e}px)`,n.transform=`translateY(0)`):e>B&&e<=V?(t.transform=`translate(-50%, ${-B}px)`,n.transform=`translateY(${B-e}px)`):e>V&&(t.transform=`translate(-50%, ${-B}px)`,n.transform=`translateY(-250px)`)},I=()=>{R!==S&&R!==T||u||(u=c.requestAnimationFrame(()=>{u=null,N(),P(),M(),F()}))},L=()=>{F()};A();let R=j();if(!R)return()=>{};let z=null,B=-R.responsiveScroll+o+v(),V=B+250;return k(),()=>{c.removeEventListener(`scroll`,L),c.removeEventListener(`resize`,I),d&&=(d.disconnect(),null),u&&=(c.cancelAnimationFrame(u),null),z&&=(clearTimeout(z),null)}},s=e=>{let t=window.frameElement?window.frameElement:null;if(!t)return()=>{};let n=window.parent;if(!n||n===window)return()=>{};let r=null;try{r=n.document,n.location.href}catch{return()=>{}}let a=document.getElementById(`nineMasthead`),o=a?a.style:{},s,c=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=`
105
+ `),o(d.filter(e=>e!==u&&e!==f),[[`position`,`relative`],[`zIndex`,`1071`]]),o(Array.from(r.querySelectorAll(`main, aside, article, footer, .sc-kACOFj.bkaoXt, .sc-hpDagB.HUkOB, [id*="adspot-desktop-banner-"]`)),[[`position`,`relative`],[`zIndex`,`1072`]]);let p=i(r.querySelector(`footer`),`div`);p&&(p.style.position=`relative`),y(r)}},E=()=>_()?T:w,D={siteBackgroundColor:`#ffffff`,fireplaceLeftMargin:0,adNodeMarginTop:-32,adNodeMarginBottom:18,responsiveScroll:-124,xPosHalfpage:720,yPosHalfpage:16,stickyMargin:{offset:74,isSticky:!0},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);`)}},O=[{site:`https://www.nine.com.au/sport`,config:E},{site:`https://www.nine.com.au/product-reviews`,config:p},{site:`https://www.nine.com.au/property`,config:p},{site:`https://www.nine.com.au/entertainment`,config:C},{site:`https://staging.nine.com.au/sport`,config:E},{site:`https://staging.nine.com.au/product-reviews`,config:p},{site:`https://staging.nine.com.au/property`,config:p},{site:`https://staging.nine.com.au/entertainment`,config:C},{site:`https://render-web-nine-staging-v1.ffxblue.com.au`,config:C},{site:`https://render-web-nine-production-v1.ffxblue.com.au`,config:C},{site:`https://preview.nine.com.au/`,config:C},{site:`https://www.nine`,config:C},{site:`https://staging.nine`,config:C},{site:`https://entertainment`,config:f},{site:`https://celebrity`,config:f},{site:`https://homes`,config:f},{site:`https://travel`,config:f},{site:`https://honey`,config:f},{site:`https://style`,config:f},{site:`https://coach`,config:f},{site:`https://kitchen`,config:f},{site:`https://finance`,config:f},{site:`https://staging.wwos`,config:E},{site:`https://www.9news`,config:D},{site:`https://staging.9news`,config:D},{site:`https://www.yourtv`,config:f},{site:`https://staging.yourtv`,config:f},{site:`https://9now`,config:p},{site:`https://creative-preview-an.com`,config:f}],k=()=>{let e=window.document.getElementById(`nineContent`);if(e&&(e.style.backgroundColor=R.siteBackgroundColor),P(),N(),M(),c.addEventListener(`scroll`,L),z=setTimeout(L,50),R===S||R===T){let e=R===S?m():null,t=e?.appRoot||h()||l.body,n=e?.desktopHeaderAds||l.querySelector(`#desktop-header-ads`);t&&c.MutationObserver&&(d=new c.MutationObserver(()=>{I()}),d.observe(t,{childList:!0,subtree:!0}),n&&n!==t&&d.observe(n,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[`class`]})),c.addEventListener(`resize`,I),I()}},A=()=>{let e=null;return e=l.querySelector(`div[id*="billboard"][id*="above"]`),e},j=()=>{let e=c.location.href;for(let t=0;t<O.length;t+=1)if(e.indexOf(O[t].site)>=0)return typeof O[t].config==`function`?O[t].config():O[t].config;try{let t=new URL(e),n=t.hostname.toLowerCase(),r=t.pathname.toLowerCase();if(n===`creative-preview-an.com`)return f;if(n.includes(`9news`))return D;if(n.includes(`yourtv`))return f;if(n.includes(`9now`))return p;if(n===`www.nine.com.au`||n===`staging.nine.com.au`||n===`preview.nine.com.au`||n===`render-web-nine-staging-v1.ffxblue.com.au`||n===`render-web-nine-production-v1.ffxblue.com.au`)return r.startsWith(`/sport`)?E():r.startsWith(`/product-reviews`)||r.startsWith(`/property`)?p:C();if([`entertainment`,`celebrity`,`homes`,`travel`,`honey`,`style`,`coach`,`kitchen`,`finance`].some(e=>n.includes(e)))return f}catch{return C()}return C()},M=()=>{if(!window.parent)return;let e=l.querySelector(`div[id*="halfpage"][id*="above"]`);if(!e)return;let t=e;for(let e=0;e<3;e++)if(t=t.parentNode,t&&c.getComputedStyle(t).position===`sticky`){t.setAttribute(`style`,`top: ${R.stickyMargin.offset}px`);break}},N=()=>{if(!s)return;let e=s.style;e.width=R.iframeWidth||`100%`,e.height=R.iframeHeight||`1000px`,e.position=`fixed`,R.iframeTop==null?e.removeProperty(`top`):e.top=R.iframeTop,e.left=`50%`,e.transform=`translate(-50%, 0)`;let t=s.parentElement;for(;t&&t!==l.body&&t!==l.documentElement;){let e=c.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}},P=()=>{let e=A();if(!e)return;a(e,`0.1.61`);let t=e.style;e.className&&=``,t.minHeight=`250px`,t.marginTop=R.adNodeMarginTop+`px`,t.marginBottom=R.adNodeMarginBottom+`px`,t.position=`static`,t.display=`block`,R.zIndex&&R.zIndex()},F=()=>{let e=c.scrollY,t=s.style,n=document.getElementById(`siteContent`)?document.getElementById(`siteContent`).style:{};e>=0&&e<=B?(t.transform=`translate(-50%, ${-e}px)`,n.transform=`translateY(0)`):e>B&&e<=V?(t.transform=`translate(-50%, ${-B}px)`,n.transform=`translateY(${B-e}px)`):e>V&&(t.transform=`translate(-50%, ${-B}px)`,n.transform=`translateY(-250px)`)},I=()=>{R!==S&&R!==T||u||(u=c.requestAnimationFrame(()=>{u=null,N(),P(),M(),F()}))},L=()=>{F()};A();let R=j();if(!R)return()=>{};let z=null,B=-R.responsiveScroll+o+v(),V=B+250;return k(),()=>{c.removeEventListener(`scroll`,L),c.removeEventListener(`resize`,I),d&&=(d.disconnect(),null),u&&=(c.cancelAnimationFrame(u),null),z&&=(clearTimeout(z),null)}},s=e=>{let t=window.frameElement?window.frameElement:null;if(!t)return()=>{};let n=window.parent;if(!n||n===window)return()=>{};let r=null;try{r=n.document,n.location.href}catch{return()=>{}}let a=document.getElementById(`nineMasthead`),o=a?a.style:{},s,c=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=`
106
106
  div:has(#adspot-tablet-takeover-2-above) {
107
107
  position: static;
108
108
  }
109
- `},l={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`)}},u={siteBackgroundColor:`#ffffff`,fireplaceLeftMargin:0,adNodeMarginTop:-24,adNodeMarginBottom:0,responsiveScroll:-124,xPosHalfpage:695,yPosHalfpage:32,stickyMargin:{offset:160,isSticky:!0},maskOffset:window.parent.document.querySelector(`div[class*="video-index__MyContainer"]`)?248: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`),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(`div[class*="ArticleContainer"]`)?.setAttribute(`style`,`max-width:1190px;margin-top:24px`),e.querySelector(`div[class*="MyContainer"]`)?.setAttribute(`style`,`max-width:1190px;margin-top:24px`)}},d={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`),c(e)}},f={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=i(e.querySelector(`footer`),`div`);t&&(t.style.position=`relative`),c(e)}},p={siteBackgroundColor:`#ffffff`,fireplaceLeftMargin:0,adNodeMarginTop:-25,adNodeMarginBottom:0,responsiveScroll:-124,xPosHalfpage:720,yPosHalfpage:32,stickyMargin:{offset:175,isSticky:!0},maskOffset:274,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`),e.querySelector(`.score-strip`)?.setAttribute(`style`,`display:none`),e.querySelector(`.feed-header__breadcrumbs`)?.setAttribute(`style`,`display:none`),e.querySelector(`.layout.container`)?.setAttribute(`style`,`padding:0`),e.querySelector(`.empty-div`)?.setAttribute(`style`,`display:none`),c(e)}},m={siteBackgroundColor:`#ffffff`,fireplaceLeftMargin:0,adNodeMarginTop:-32,adNodeMarginBottom:8,responsiveScroll:-124,xPosHalfpage:720,yPosHalfpage:16,stickyMargin:{offset:160,isSticky:!0},maskOffset:window.parent.document.querySelector(`div[class*="VideoIndexComponent"]`)?324:292,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);`);let t=e.querySelector(`[class*="VideoIndexComponent"]`);t&&(e.querySelector(`.breadcrumbs`)?.setAttribute(`style`,`display:none`),t.style.maxWidth=`1190px`,t.style.margin=`auto`,t.style.position=`relative`)}},h=[{site:`https://www.nine.com.au/sport`,config:f},{site:`https://www.nine.com.au/product-reviews`,config:u},{site:`https://www.nine.com.au/property`,config:u},{site:`https://www.nine.com.au/entertainment`,config:u},{site:`https://staging.nine.com.au/sport`,config:f},{site:`https://staging.nine.com.au/product-reviews`,config:u},{site:`https://staging.nine.com.au/property`,config:u},{site:`https://staging.nine.com.au/entertainment`,config:u},{site:`https://render-web-nine-staging-v1.ffxblue.com.au`,config:d},{site:`https://render-web-nine-production-v1.ffxblue.com.au`,config:d},{site:`https://preview.nine.com.au/`,config:d},{site:`https://www.nine`,config:d},{site:`https://staging.nine`,config:d},{site:`https://entertainment`,config:l},{site:`https://celebrity`,config:l},{site:`https://homes`,config:l},{site:`https://travel`,config:l},{site:`https://honey`,config:l},{site:`https://style`,config:l},{site:`https://coach`,config:l},{site:`https://kitchen`,config:l},{site:`https://finance`,config:l},{site:`https://wwos`,config:p},{site:`https://staging.wwos`,config:f},{site:`https://www.9news`,config:m},{site:`https://staging.9news`,config:m},{site:`https://www.yourtv`,config:l},{site:`https://staging.yourtv`,config:l},{site:`https://9now`,config:u},{site:`https://creative-preview-an.com`,config:l}],g=()=>{let e=window.document.getElementById(`nineContent`);e&&(e.style.backgroundColor=O.siteBackgroundColor),a&&(o.setProperty(`--masthead-height`,`250px`),o.height=`var(--masthead-height)`),S(),x(),y(),C(),n.addEventListener(`scroll`,E,{passive:!0}),k=setTimeout(E,50)},_=()=>{let e=null;return e=r.querySelector(`div[id*="billboard"][id*="above"]`),e},v=()=>{let e=r.querySelector(`nav`);if(!e)return 0;let t=n.getComputedStyle(e);if(t.position!==`fixed`)return 0;let i=parseFloat(t.top||`0`);return Number.isFinite(i)&&Math.abs(i)>1?0:Math.round(e.getBoundingClientRect().height)||0},y=()=>{let e=null;if(!window.parent)return e;if(e=r.querySelector(`div[id*="halfpage"][id*="above"]`),!e)return;let t=e;for(let e=0;e<3;e++)if(t=t.parentNode,t&&getComputedStyle(t).position===`sticky`){t.setAttribute(`style`,`top: ${O.stickyMargin.offset}px`);break}},b=()=>{let e=n.location.href;for(let t=0;t<h.length;t+=1)if(e.indexOf(h[t].site)>=0)return h[t].config},x=()=>{if(!t)return;let e=t.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)`},S=()=>{if(!D)return;let e=D.style;D.className=``,e.minHeight=`250px`,e.marginTop=O.adNodeMarginTop+`px`,e.marginBottom=O.adNodeMarginBottom+`px`,e.position=`static`,e.display=`block`,O.zIndex&&O.zIndex()},C=()=>{s=r.querySelector(`div[data-contentunit-id="stan"]`)?.parentNode||r.querySelector(`div[data-ui-testid="header-score-strip"]`)?.parentNode||r.querySelector(`div[class*="__MyContainer"]`)||r.querySelector(`div[class*="__ArticleContainer"]`)||r.querySelector(`div[class*="__VideoIndexComponent"]`)||r.querySelector(`div.container.layout`)||r.querySelector(`main.container.layout`),s&&(s.style.willChange=`clip-path`,s.style.transition=`none`,s.style.webkitBackfaceVisibility=`hidden`,s.style.backfaceVisibility=`hidden`,s.style.transform=`translate3d(0,0,0)`,s.style.backgroundColor=O.siteBackgroundColor,s.style.setProperty(`--mask-inset`,`0px`),s.style.clipPath=`inset(var(--mask-inset, 0px) 0 0 0)`)},w=0,T=0,E=()=>{let e=n.scrollY,r=e>w,i=e>j?e-O.maskOffset:0,a=Math.abs(i-T);if(s)if(r&&i>T)if(a>100){let e=Math.max(0,i-100);s.style.transition=`none`,s.style.setProperty(`--mask-inset`,`${e}px`),s.offsetHeight,s.style.transition=`clip-path 0.3s ease-out`,s.style.setProperty(`--mask-inset`,`${i}px`)}else s.style.transition=`clip-path 0.3s ease-out`,s.style.setProperty(`--mask-inset`,`${i}px`);else s.style.transition=`none`,s.style.setProperty(`--mask-inset`,`${i}px`);w=e,T=i,e>j?(t.style.setProperty(`--transform-y`,`${-A}px`),o.setProperty(`--masthead-height`,`100px`),window.CollantOn||window.goCollant()):e>A&&e<=j?(t.style.setProperty(`--transform-y`,`${-A}px`),o.setProperty(`--masthead-height`,`${250+A-e}px`),window.CollantOn&&window.goBillboard()):e>=0&&e<=A&&(t.style.setProperty(`--transform-y`,`${-e}px`),o.setProperty(`--masthead-height`,`250px`),window.CollantOn&&window.goBillboard())},D=_(),O=b();if(!O)return()=>{};let k=null,A=-O.responsiveScroll+e+v(),j=A+150;return g(),()=>{n.removeEventListener(`scroll`,E),k&&=(clearTimeout(k),null)}},c=866,l=68,u=16,d=`#app main header h1, #app main header h2, #app main header h3, #app h1, #app h2, #app h3`,f=`adspot-desktop-takeover-2-above`,p=-24,m=-24,h=[`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`],g=[{hostnames:h,path:`/sport`,headingText:`Sport`,slotId:f}],_=new Set([`localhost`,`127.0.0.1`]),v=`__poweredAdConfigHeadingintegrationActive`,y=`data-pac-headingintegration-owner`,b=`data-pac-reparented`,x=(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`},S=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():f,hostnames:i.length?i:h}},C=e=>{if(!Array.isArray(e)||e.length===0)return g;let t=e.map(S).filter(Boolean);return t.length?t:g},w=({offsetTop:e=p,offsetLeft:t=m,width:n=c,height:r=l,pageTargets:i=g}={})=>{let a=window.frameElement||null;if(!a)return()=>{};let o=window.parent;if(!o||o===window)return()=>{};let s=null;try{s=o.document,o.location.href}catch{return()=>{}}let f=o[v];if(f?.iframe===a&&typeof f.cleanup==`function`)return f.cleanup;if(f?.iframe?.isConnected&&typeof f?.cleanup==`function`)return()=>{};typeof f?.cleanup==`function`&&f.cleanup();let h=`headingintegration-${Date.now()}-${Math.random().toString(36).slice(2,8)}`,S=(e,t,n)=>{e&&e.style[t]!==n&&(e.style[t]=n)},w=()=>{try{let e=window.location.hostname.toLowerCase();return _.has(e)?!0:new URLSearchParams(window.location.search).get(`keepHeadingintegrationVisible`)===`1`}catch{return!1}},T=(e=a.parentElement)=>{let t=e;for(;t&&t!==s.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 a.parentElement},E=()=>{try{let e=new URL(o.location.href),t=e.hostname.toLowerCase(),n=e.pathname.toLowerCase();return P.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},D=e=>{let t=Array.from(s.querySelectorAll(d));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},O=null,k=null;w();let A=x(e,p),j=x(t,m),M=x(n,c),N=x(r,l),P=C(i),F=E();if(!F)return()=>{};let I=T((F.slotId?s.getElementById(F.slotId):null)||a.parentElement);if(!I)return()=>{};let L=I.getAttribute(y);if(L&&L!==h)return()=>{};let R={width:I.style.width,maxWidth:I.style.maxWidth,minWidth:I.style.minWidth,height:I.style.height,minHeight:I.style.minHeight,marginTop:I.style.marginTop,marginBottom:I.style.marginBottom,marginLeft:I.style.marginLeft,marginRight:I.style.marginRight,position:I.style.position,top:I.style.top,left:I.style.left,right:I.style.right,transform:I.style.transform,display:I.style.display,opacity:I.style.opacity,transition:I.style.transition,pointerEvents:I.style.pointerEvents,zIndex:I.style.zIndex,overflow:I.style.overflow},z={width:a.style.width,height:a.style.height,display:a.style.display,border:a.style.border,position:a.style.position,pointerEvents:a.style.pointerEvents},B=[],V=parseFloat(N)||l,H=parseFloat(A)||0,U=parseFloat(j)||0,W=()=>{let e=I.parentElement;for(;e&&e!==s.body;)B.push({element:e,overflow:e.style.overflow}),S(e,`overflow`,`visible`),e=e.parentElement},G=()=>{S(I,`width`,M),S(I,`maxWidth`,M),S(I,`minWidth`,M),S(I,`height`,N),S(I,`minHeight`,N),S(I,`display`,`block`),S(I,`overflow`,`hidden`),S(I,`pointerEvents`,`none`),S(I,`zIndex`,`1080`),I.setAttribute(y,h),S(a,`width`,M),S(a,`height`,N),S(a,`display`,`block`),S(a,`border`,`0`),S(a,`position`,`relative`),S(a,`pointerEvents`,`auto`)},K={element:null,position:``},q=()=>{let e=I.parentElement;e&&o.getComputedStyle(e).position===`static`&&(K.element=e,K.position=e.style.position,S(e,`position`,`relative`)),S(I,`position`,`absolute`),S(I,`top`,`${H}px`),S(I,`left`,`${U}px`),S(I,`right`,`auto`),S(I,`marginTop`,`0px`),S(I,`marginBottom`,`${u}px`),S(I,`marginLeft`,`0px`),S(I,`marginRight`,`0px`),S(I,`transform`,``)},ee=e=>{let t=null;try{let e=a.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(`
109
+ `},l={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`)}},u={siteBackgroundColor:`#ffffff`,fireplaceLeftMargin:0,adNodeMarginTop:-24,adNodeMarginBottom:0,responsiveScroll:-124,xPosHalfpage:695,yPosHalfpage:32,stickyMargin:{offset:160,isSticky:!0},maskOffset:window.parent.document.querySelector(`div[class*="video-index__MyContainer"]`)?248: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`),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(`div[class*="ArticleContainer"]`)?.setAttribute(`style`,`max-width:1190px;margin-top:24px`),e.querySelector(`div[class*="MyContainer"]`)?.setAttribute(`style`,`max-width:1190px;margin-top:24px`)}},d={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`),c(e)}},f={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=i(e.querySelector(`footer`),`div`);t&&(t.style.position=`relative`),c(e)}},p={siteBackgroundColor:`#ffffff`,fireplaceLeftMargin:0,adNodeMarginTop:-25,adNodeMarginBottom:0,responsiveScroll:-124,xPosHalfpage:720,yPosHalfpage:32,stickyMargin:{offset:175,isSticky:!0},maskOffset:274,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`),e.querySelector(`.score-strip`)?.setAttribute(`style`,`display:none`),e.querySelector(`.feed-header__breadcrumbs`)?.setAttribute(`style`,`display:none`),e.querySelector(`.layout.container`)?.setAttribute(`style`,`padding:0`),e.querySelector(`.empty-div`)?.setAttribute(`style`,`display:none`),c(e)}},m={siteBackgroundColor:`#ffffff`,fireplaceLeftMargin:0,adNodeMarginTop:-32,adNodeMarginBottom:8,responsiveScroll:-124,xPosHalfpage:720,yPosHalfpage:16,stickyMargin:{offset:160,isSticky:!0},maskOffset:window.parent.document.querySelector(`div[class*="VideoIndexComponent"]`)?324:292,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);`);let t=e.querySelector(`[class*="VideoIndexComponent"]`);t&&(e.querySelector(`.breadcrumbs`)?.setAttribute(`style`,`display:none`),t.style.maxWidth=`1190px`,t.style.margin=`auto`,t.style.position=`relative`)}},h=[{site:`https://www.nine.com.au/sport`,config:f},{site:`https://www.nine.com.au/product-reviews`,config:u},{site:`https://www.nine.com.au/property`,config:u},{site:`https://www.nine.com.au/entertainment`,config:u},{site:`https://staging.nine.com.au/sport`,config:f},{site:`https://staging.nine.com.au/product-reviews`,config:u},{site:`https://staging.nine.com.au/property`,config:u},{site:`https://staging.nine.com.au/entertainment`,config:u},{site:`https://render-web-nine-staging-v1.ffxblue.com.au`,config:d},{site:`https://render-web-nine-production-v1.ffxblue.com.au`,config:d},{site:`https://preview.nine.com.au/`,config:d},{site:`https://www.nine`,config:d},{site:`https://staging.nine`,config:d},{site:`https://entertainment`,config:l},{site:`https://celebrity`,config:l},{site:`https://homes`,config:l},{site:`https://travel`,config:l},{site:`https://honey`,config:l},{site:`https://style`,config:l},{site:`https://coach`,config:l},{site:`https://kitchen`,config:l},{site:`https://finance`,config:l},{site:`https://wwos`,config:p},{site:`https://staging.wwos`,config:f},{site:`https://www.9news`,config:m},{site:`https://staging.9news`,config:m},{site:`https://www.yourtv`,config:l},{site:`https://staging.yourtv`,config:l},{site:`https://9now`,config:u},{site:`https://creative-preview-an.com`,config:l}],g=()=>{let e=window.document.getElementById(`nineContent`);e&&(e.style.backgroundColor=O.siteBackgroundColor),a&&(o.setProperty(`--masthead-height`,`250px`),o.height=`var(--masthead-height)`),S(),x(),y(),C(),n.addEventListener(`scroll`,E,{passive:!0}),k=setTimeout(E,50)},_=()=>{let e=null;return e=r.querySelector(`div[id*="billboard"][id*="above"]`),e},v=()=>{let e=r.querySelector(`nav`);if(!e)return 0;let t=n.getComputedStyle(e);if(t.position!==`fixed`)return 0;let i=parseFloat(t.top||`0`);return Number.isFinite(i)&&Math.abs(i)>1?0:Math.round(e.getBoundingClientRect().height)||0},y=()=>{let e=null;if(!window.parent)return e;if(e=r.querySelector(`div[id*="halfpage"][id*="above"]`),!e)return;let t=e;for(let e=0;e<3;e++)if(t=t.parentNode,t&&getComputedStyle(t).position===`sticky`){t.setAttribute(`style`,`top: ${O.stickyMargin.offset}px`);break}},b=()=>{let e=n.location.href;for(let t=0;t<h.length;t+=1)if(e.indexOf(h[t].site)>=0)return h[t].config},x=()=>{if(!t)return;let e=t.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)`},S=()=>{if(!D)return;let e=D.style;D.className=``,e.minHeight=`250px`,e.marginTop=O.adNodeMarginTop+`px`,e.marginBottom=O.adNodeMarginBottom+`px`,e.position=`static`,e.display=`block`,O.zIndex&&O.zIndex()},C=()=>{s=r.querySelector(`div[data-contentunit-id="stan"]`)?.parentNode||r.querySelector(`div[data-ui-testid="header-score-strip"]`)?.parentNode||r.querySelector(`div[class*="__MyContainer"]`)||r.querySelector(`div[class*="__ArticleContainer"]`)||r.querySelector(`div[class*="__VideoIndexComponent"]`)||r.querySelector(`div.container.layout`)||r.querySelector(`main.container.layout`),s&&(s.style.willChange=`clip-path`,s.style.transition=`none`,s.style.webkitBackfaceVisibility=`hidden`,s.style.backfaceVisibility=`hidden`,s.style.transform=`translate3d(0,0,0)`,s.style.backgroundColor=O.siteBackgroundColor,s.style.setProperty(`--mask-inset`,`0px`),s.style.clipPath=`inset(var(--mask-inset, 0px) 0 0 0)`)},w=0,T=0,E=()=>{let e=n.scrollY,r=e>w,i=e>j?e-O.maskOffset:0,a=Math.abs(i-T);if(s)if(r&&i>T)if(a>100){let e=Math.max(0,i-100);s.style.transition=`none`,s.style.setProperty(`--mask-inset`,`${e}px`),s.offsetHeight,s.style.transition=`clip-path 0.3s ease-out`,s.style.setProperty(`--mask-inset`,`${i}px`)}else s.style.transition=`clip-path 0.3s ease-out`,s.style.setProperty(`--mask-inset`,`${i}px`);else s.style.transition=`none`,s.style.setProperty(`--mask-inset`,`${i}px`);w=e,T=i,e>j?(t.style.setProperty(`--transform-y`,`${-A}px`),o.setProperty(`--masthead-height`,`100px`),window.CollantOn||window.goCollant()):e>A&&e<=j?(t.style.setProperty(`--transform-y`,`${-A}px`),o.setProperty(`--masthead-height`,`${250+A-e}px`),window.CollantOn&&window.goBillboard()):e>=0&&e<=A&&(t.style.setProperty(`--transform-y`,`${-e}px`),o.setProperty(`--masthead-height`,`250px`),window.CollantOn&&window.goBillboard())},D=_(),O=b();if(!O)return()=>{};let k=null,A=-O.responsiveScroll+e+v(),j=A+150;return g(),()=>{n.removeEventListener(`scroll`,E),k&&=(clearTimeout(k),null)}},c=866,l=68,u=16,d=`#app main header h1, #app main header h2, #app main header h3, #app h1, #app h2, #app h3`,f=`adspot-desktop-takeover-2-above`,p=-24,m=-24,h=[`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`],g=[{hostnames:h,path:`/sport`,headingText:`Sport`,slotId:f}],_=new Set([`localhost`,`127.0.0.1`]),v=`__poweredAdConfigHeadingintegrationActive`,y=`data-pac-headingintegration-owner`,b=`data-pac-reparented`,x=(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`},S=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():f,hostnames:i.length?i:h}},C=e=>{if(!Array.isArray(e)||e.length===0)return g;let t=e.map(S).filter(Boolean);return t.length?t:g},w=({offsetTop:e=p,offsetLeft:t=m,width:n=c,height:r=l,pageTargets:i=g}={})=>{let a=window.frameElement||null;if(!a)return()=>{};let o=window.parent;if(!o||o===window)return()=>{};let s=null;try{s=o.document,o.location.href}catch{return()=>{}}let f=o[v];if(f?.iframe===a&&typeof f.cleanup==`function`)return f.cleanup;if(f?.iframe?.isConnected&&typeof f?.cleanup==`function`)return()=>{};typeof f?.cleanup==`function`&&f.cleanup();let h=`headingintegration-${Date.now()}-${Math.random().toString(36).slice(2,8)}`,S=(e,t,n)=>{e&&e.style[t]!==n&&(e.style[t]=n)},w=()=>{try{let e=window.location.hostname.toLowerCase();return _.has(e)?!0:new URLSearchParams(window.location.search).get(`keepHeadingintegrationVisible`)===`1`}catch{return!1}},T=(e=a.parentElement)=>{let t=e;for(;t&&t!==s.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 a.parentElement},E=()=>{try{let e=new URL(o.location.href),t=e.hostname.toLowerCase(),n=e.pathname.toLowerCase();return P.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},D=e=>{let t=Array.from(s.querySelectorAll(d));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},O=null,k=null;w();let A=x(e,p),j=x(t,m),M=x(n,c),N=x(r,l),P=C(i),F=E();if(!F)return()=>{};let I=T((F.slotId?s.getElementById(F.slotId):null)||a.parentElement);if(!I)return()=>{};let L=I.getAttribute(y);if(L&&L!==h)return()=>{};let R={width:I.style.width,maxWidth:I.style.maxWidth,minWidth:I.style.minWidth,height:I.style.height,minHeight:I.style.minHeight,marginTop:I.style.marginTop,marginBottom:I.style.marginBottom,marginLeft:I.style.marginLeft,marginRight:I.style.marginRight,position:I.style.position,top:I.style.top,left:I.style.left,right:I.style.right,transform:I.style.transform,display:I.style.display,opacity:I.style.opacity,transition:I.style.transition,pointerEvents:I.style.pointerEvents,zIndex:I.style.zIndex,overflow:I.style.overflow},z={width:a.style.width,height:a.style.height,display:a.style.display,border:a.style.border,position:a.style.position,pointerEvents:a.style.pointerEvents},B=[],V=parseFloat(N)||l,H=parseFloat(A)||0,U=parseFloat(j)||0,W=()=>{let e=I.parentElement;for(;e&&e!==s.body;)B.push({element:e,overflow:e.style.overflow}),S(e,`overflow`,`visible`),e=e.parentElement},G=()=>{S(I,`width`,M),S(I,`maxWidth`,M),S(I,`minWidth`,M),S(I,`height`,N),S(I,`minHeight`,N),S(I,`display`,`block`),S(I,`overflow`,`hidden`),S(I,`pointerEvents`,`none`),S(I,`zIndex`,`1080`),I.setAttribute(y,h),S(a,`width`,M),S(a,`height`,N),S(a,`display`,`block`),S(a,`border`,`0`),S(a,`position`,`relative`),S(a,`pointerEvents`,`auto`)},K={element:null,position:``},ee=()=>{let e=I.parentElement;e&&o.getComputedStyle(e).position===`static`&&(K.element=e,K.position=e.style.position,S(e,`position`,`relative`)),S(I,`position`,`absolute`),S(I,`top`,`${H}px`),S(I,`left`,`${U}px`),S(I,`right`,`auto`),S(I,`marginTop`,`0px`),S(I,`marginBottom`,`${u}px`),S(I,`marginLeft`,`0px`),S(I,`marginRight`,`0px`),S(I,`transform`,``)},te=e=>{let t=null;try{let e=a.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(`
110
110
  `),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(`
111
- `);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;a.setAttribute(b,`1`);try{e.parentNode?.insertBefore(I,e)}catch{return a.removeAttribute(b),!1}W(),G(),q();try{a.srcdoc=t}catch{return!1}return!0},te=()=>{S(I,`position`,`fixed`),S(I,`marginTop`,`0px`),S(I,`marginBottom`,`0px`),S(I,`marginLeft`,`0px`),S(I,`marginRight`,`0px`),S(I,`transform`,``)},ne=()=>{S(I,`display`,`none`)},re=()=>{S(I,`display`,`block`),S(I,`overflow`,`hidden`)},J=null,Y=()=>{if((!J||!J.isConnected)&&(J=D(F.headingText)),!J)return;let e=J.getBoundingClientRect(),t=e.top-V-u+H,n=e.left+U;S(I,`top`,`${t}px`),S(I,`left`,`${n}px`),S(I,`right`,`auto`)},X=null,Z=null,Q=!1,$=(e=12)=>{if(J=D(F.headingText),!J){e>1&&(k=o.setTimeout(()=>$(e-1),250));return}ee(J)||(Q=!0,W(),G(),te(),Y(),X=()=>Y(),Z=()=>Y(),o.addEventListener(`scroll`,X,{passive:!0}),o.addEventListener(`resize`,Z))};$();let ie=()=>{k&&=(o.clearTimeout(k),null),O&&=(o.clearTimeout(O),null),X&&=(o.removeEventListener(`scroll`,X),null),Z&&=(o.removeEventListener(`resize`,Z),null),I.getAttribute(y)===h&&I.removeAttribute(y),Q&&(Object.entries(R).forEach(([e,t])=>{I.style[e]=t}),Object.entries(z).forEach(([e,t])=>{a.style[e]=t}),B.forEach(({element:e,overflow:t})=>{e.style.overflow=t})),o[v]?.instanceId===h&&delete o[v]};return o[v]={instanceId:h,iframe:a,cleanup:ie,show:re,hide:ne},ie},T=(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`,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)}},E=((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}),D=(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:E,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.60`),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||``})}},O=(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.60`),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)}},k=(e={})=>{let t={billboardHeight:150,sideStripWidth:10,zIndex:0,creativeUrl: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-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`)}}},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://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=a.getAttribute(`style`),g=n.parentElement===a?null:n.parentElement,_=g?g.getAttribute(`style`):null,v=a.parentElement,y=v?v.getAttribute(`style`):null,b=s?s.getAttribute(`style`):null,x=o?o.getAttribute(`style`):null,S=i.querySelector(`footer`),C=S?S.getAttribute(`style`):null,w=o?Array.from(o.children).map(e=>({el:e,orig:e.getAttribute(`style`)})):[],T=null,E=null,D=null,O=null,k=[],A=null,j=null,M=null,N=null,P=null,F=null,I=null,L=[],R=e=>{if(!e||e===M||e===v||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(`#adspot-mobile-mbanner-2-above, iframe, [data-mf-slot], .adWrapper`))return!1;let n=r.getComputedStyle(e);return n.position===`fixed`||n.position===`sticky`},z=e=>{!e?.parentElement||L.some(t=>t.shell===e)||(L.push({shell:e,parent:e.parentElement,nextSibling:e.nextSibling}),e.remove())},B=()=>{for(let e of i.querySelectorAll(`.container`)){let t=e.parentElement;R(t)&&z(t)}},V=()=>{if(!o||!p)return!1;let e=o.getBoundingClientRect();if(!e.width||!e.height)return!1;let t=Math.max(1,Math.min(r.innerWidth-1,Math.round(e.left+20))),a=Math.max(1,Math.min(r.innerHeight-1,Math.round(e.top+40))),s=i.elementFromPoint(t,a);if(!s||s===o||o.contains(s))return!1;if(s===n)return!0;if(s.tagName===`IFRAME`){let e=r.getComputedStyle(s),t=s.getBoundingClientRect();return e.position===`fixed`&&t.height>=r.innerHeight-10}return!1},H=()=>{B();let e=n.parentElement;for(;e&&e!==i.body&&e!==i.documentElement;){let t=r.getComputedStyle(e);if(t.position===`fixed`||t.position===`sticky`){F=e,I=e.getAttribute(`style`);break}e=e.parentElement}let u=n.parentElement;for(;u&&u!==i.body&&u!==i.documentElement;){let e=r.getComputedStyle(u);(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`)&&(k.push({el:u,orig:u.getAttribute(`style`)}),u.style.transform=`none`,u.style.willChange=`auto`,u.style.contain=`none`,u.style.filter=`none`,u.style.perspective=`none`),e.overflow!==`visible`&&(k.find(e=>e.el===u)||k.push({el:u,orig:u.getAttribute(`style`)}),u.style.overflow=`visible`),u=u.parentElement}let d=n.style;if(d.position=`fixed`,d.top=`0`,d.left=`0`,d.width=`100vw`,d.height=`100dvh`,d.zIndex=String(t.zIndex),d.border=`none`,d.margin=`0`,d.padding=`0`,d.display=`block`,a.setAttribute(`poweredAC`,`0.1.60`),g){let e=g.style;e.width=`100%`,e.height=`0`,e.overflow=`visible`,e.position=`static`,e.margin=`0`}let p=a.style;p.height=t.billboardHeight+`px`,p.minHeight=t.billboardHeight+`px`,p.background=`transparent`,p.overflow=`visible`,p.position=`relative`,p.width=`100%`,p.padding=`0`,p.margin=`0`,v&&(v.style.overflow=`visible`,v.style.position=`relative`,v.style.backgroundColor=`transparent`,v.style.height=t.billboardHeight+`px`,v.style.minHeight=t.billboardHeight+`px`,v.style.maxHeight=t.billboardHeight+`px`,v.style.padding=`0`,v.style.margin=`0`,v.setAttribute(`data-mf-slot`,``));let m=`max(${t.sideStripWidth}px, env(safe-area-inset-left))`,h=`max(${t.sideStripWidth}px, env(safe-area-inset-right))`;if(T=i.createElement(`style`),T.id=`mobilefireplace-pac`,T.textContent=`
111
+ `);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;a.setAttribute(b,`1`);try{e.parentNode?.insertBefore(I,e)}catch{return a.removeAttribute(b),!1}W(),G(),ee();try{a.srcdoc=t}catch{return!1}return!0},ne=()=>{S(I,`position`,`fixed`),S(I,`marginTop`,`0px`),S(I,`marginBottom`,`0px`),S(I,`marginLeft`,`0px`),S(I,`marginRight`,`0px`),S(I,`transform`,``)},re=()=>{S(I,`display`,`none`)},ie=()=>{S(I,`display`,`block`),S(I,`overflow`,`hidden`)},q=null,J=()=>{if((!q||!q.isConnected)&&(q=D(F.headingText)),!q)return;let e=q.getBoundingClientRect(),t=e.top-V-u+H,n=e.left+U;S(I,`top`,`${t}px`),S(I,`left`,`${n}px`),S(I,`right`,`auto`)},Y=null,X=null,Z=!1,Q=(e=12)=>{if(q=D(F.headingText),!q){e>1&&(k=o.setTimeout(()=>Q(e-1),250));return}te(q)||(Z=!0,W(),G(),ne(),J(),Y=()=>J(),X=()=>J(),o.addEventListener(`scroll`,Y,{passive:!0}),o.addEventListener(`resize`,X))};Q();let $=()=>{k&&=(o.clearTimeout(k),null),O&&=(o.clearTimeout(O),null),Y&&=(o.removeEventListener(`scroll`,Y),null),X&&=(o.removeEventListener(`resize`,X),null),I.getAttribute(y)===h&&I.removeAttribute(y),Z&&(Object.entries(R).forEach(([e,t])=>{I.style[e]=t}),Object.entries(z).forEach(([e,t])=>{a.style[e]=t}),B.forEach(({element:e,overflow:t})=>{e.style.overflow=t})),o[v]?.instanceId===h&&delete o[v]};return o[v]={instanceId:h,iframe:a,cleanup:$,show:ie,hide:re},$},T=(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`,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)}},E=((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}),D=(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:E,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.61`),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||``})}},O=(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.61`),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)}},k=(e={})=>{let t={billboardHeight:150,sideStripWidth:10,zIndex:0,creativeUrl: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-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`)}}},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://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=a.getAttribute(`style`),g=n.parentElement===a?null:n.parentElement,_=g?g.getAttribute(`style`):null,v=a.parentElement,y=v?v.getAttribute(`style`):null,b=s?s.getAttribute(`style`):null,x=o?o.getAttribute(`style`):null,S=i.querySelector(`footer`),C=S?S.getAttribute(`style`):null,w=o?Array.from(o.children).map(e=>({el:e,orig:e.getAttribute(`style`)})):[],T=null,E=null,D=null,O=null,k=[],A=null,j=null,M=null,N=null,P=null,F=null,I=null,L=[],R=e=>{if(!e||e===M||e===v||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(`#adspot-mobile-mbanner-2-above, iframe, [data-mf-slot], .adWrapper`))return!1;let n=r.getComputedStyle(e);return n.position===`fixed`||n.position===`sticky`},z=e=>{!e?.parentElement||L.some(t=>t.shell===e)||(L.push({shell:e,parent:e.parentElement,nextSibling:e.nextSibling}),e.remove())},B=()=>{for(let e of i.querySelectorAll(`.container`)){let t=e.parentElement;R(t)&&z(t)}},V=()=>{B();let e=n.parentElement;for(;e&&e!==i.body&&e!==i.documentElement;){let t=r.getComputedStyle(e);if(t.position===`fixed`||t.position===`sticky`){F=e,I=e.getAttribute(`style`);break}e=e.parentElement}let u=n.parentElement;for(;u&&u!==i.body&&u!==i.documentElement;){let e=r.getComputedStyle(u);(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`)&&(k.push({el:u,orig:u.getAttribute(`style`)}),u.style.transform=`none`,u.style.willChange=`auto`,u.style.contain=`none`,u.style.filter=`none`,u.style.perspective=`none`),e.overflow!==`visible`&&(k.find(e=>e.el===u)||k.push({el:u,orig:u.getAttribute(`style`)}),u.style.overflow=`visible`),u=u.parentElement}let d=n.style;if(d.position=`fixed`,d.top=`0`,d.left=`0`,d.width=`100vw`,d.height=`100dvh`,d.zIndex=String(t.zIndex),d.border=`none`,d.margin=`0`,d.padding=`0`,d.display=`block`,a.setAttribute(`poweredAC`,`0.1.61`),g){let e=g.style;e.width=`100%`,e.height=`0`,e.overflow=`visible`,e.position=`static`,e.margin=`0`}let m=a.style;m.height=t.billboardHeight+`px`,m.minHeight=t.billboardHeight+`px`,m.background=`transparent`,m.overflow=`visible`,m.position=`relative`,m.width=`100%`,m.padding=`0`,m.margin=`0`,v&&(v.style.overflow=`visible`,v.style.position=`relative`,v.style.backgroundColor=`transparent`,v.style.height=t.billboardHeight+`px`,v.style.minHeight=t.billboardHeight+`px`,v.style.maxHeight=t.billboardHeight+`px`,v.style.padding=`0`,v.style.margin=`0`,v.setAttribute(`data-mf-slot`,``));let h=`max(${t.sideStripWidth}px, env(safe-area-inset-left))`,_=`max(${t.sideStripWidth}px, env(safe-area-inset-right))`;if(T=i.createElement(`style`),T.id=`mobilefireplace-pac`,T.textContent=`
112
112
  /* Mobile Fireplace — powered-ad-config */
113
113
  html, body {
114
114
  background-color: transparent !important;
@@ -127,8 +127,8 @@
127
127
  position: relative;
128
128
  z-index: 1;
129
129
  background-color: ${f.siteBackgroundColor};
130
- margin-left: ${m} !important;
131
- margin-right: ${h} !important;
130
+ margin-left: ${h} !important;
131
+ margin-right: ${_} !important;
132
132
  }
133
133
  /* Header, nav and network nav stay full-width — no side margin, keep own background */
134
134
  body > * > header,
@@ -162,4 +162,4 @@
162
162
  margin: 0 !important;
163
163
  padding: 0 !important;
164
164
  }
165
- `,i.head.appendChild(T),f.setup&&f.setup(i,a),o&&(F||V())){if(F&&(M=c||v),l&&l!==`about:blank`){let e=new URL(l);e.searchParams.set(`mfRole`,`wallpaper`),D=i.createElement(`iframe`),D.src=e.href,D.setAttribute(`data-mf-wallpaper-iframe`,``),D.setAttribute(`scrolling`,`no`),D.setAttribute(`frameborder`,`0`);let n=D.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(D,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`,O=i.createElement(`div`),O.setAttribute(`data-mf-billboard-mount`,``),O.style.height=`${t.billboardHeight}px`,O.style.minHeight=`${t.billboardHeight}px`,O.style.maxHeight=`${t.billboardHeight}px`,O.style.background=`transparent`,O.style.overflow=`visible`,O.style.position=`relative`,O.style.width=`100%`,O.style.padding=`0`,O.style.margin=`0`,o.parentElement.insertBefore(O,o),F?(F.style.position=`static`,F.style.inset=`auto`,F.style.height=`0`,F.style.minHeight=`0`,F.style.maxHeight=`0`,F.style.overflow=`hidden`,F.style.backgroundColor=`transparent`,F.style.boxShadow=`none`,F.style.border=`0`,F.style.outline=`0`,F.style.pointerEvents=`none`):v&&(v.style.height=`0`,v.style.minHeight=`0`,v.style.maxHeight=`0`,v.style.overflow=`hidden`,v.style.backgroundColor=`transparent`,v.style.border=`0`,v.style.outline=`0`),p.height=`0`,p.minHeight=`0`,p.width=`0`,p.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 w)e.style.backgroundColor=`transparent`,e.style.boxShadow=`none`,e.style.paddingLeft=`10px`,e.style.paddingRight=`10px`;S&&(S.style.marginLeft=`14px`,S.style.marginRight=`14px`,S.style.position=`relative`,S.style.zIndex=`2`),B()}},U=null,W=null,G=!1,K=()=>{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`,E&&(E.style.height=i+`px`)}else a.style.height=t.billboardHeight+`px`,a.style.minHeight=t.billboardHeight+`px`,E&&(E.style.height=t.billboardHeight+`px`)};if(H(),l&&l!==`about:blank`)try{let e=new URL(l);e.searchParams.set(`mfRole`,`billboard`),E=i.createElement(`iframe`),E.src=e.href,E.setAttribute(`data-mf-billboard-iframe`,``),E.setAttribute(`scrolling`,`no`),E.setAttribute(`frameborder`,`0`);let n=E.style;n.position=`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=`1`,(O||a).appendChild(E)}catch(e){console.warn(`[mobilefireplace] Could not create billboard iframe:`,e)}r.__mfBridge={adapted:!1,wallpaperWindow:D?.contentWindow||n.contentWindow,billboardIframe:E,billboardWindow:null},D&&D.addEventListener(`load`,()=>{try{r.__mfBridge&&(r.__mfBridge.wallpaperWindow=D.contentWindow)}catch{}}),E&&E.addEventListener(`load`,()=>{try{r.__mfBridge.billboardWindow=E.contentWindow}catch{}}),U=K,r.addEventListener(`resize`,U),K(),W=()=>{q()},window.addEventListener(`pagehide`,W),window.addEventListener(`beforeunload`,W),t.onAdapt&&r.requestAnimationFrame(()=>{r.__mfBridge.adapted=!0,t.onAdapt()});let q=()=>{if(!G){G=!0,W&&=(window.removeEventListener(`pagehide`,W),window.removeEventListener(`beforeunload`,W),null),U&&=(r.removeEventListener(`resize`,U),null),T&&T.parentNode&&(T.parentNode.removeChild(T),T=null),E&&E.parentNode&&(E.parentNode.removeChild(E),E=null),O&&O.parentNode&&(O.parentNode.removeChild(O),O=null),D&&D.parentNode&&(D.parentNode.removeChild(D),D=null);try{delete r.__mfBridge}catch{}for(let e=L.length-1;e>=0;--e){let{shell:t,parent:n,nextSibling:r}=L[e];!t||!n||(r&&r.parentNode===n?n.insertBefore(t,r):n.appendChild(t))}L.length=0,A&&(j&&j.parentNode===A?A.insertBefore(n,j):A.appendChild(n),A=null,j=null),m?n.setAttribute(`style`,m):n.removeAttribute(`style`);for(let{el:e,orig:t}of k)t?e.setAttribute(`style`,t):e.removeAttribute(`style`);k.length=0,h?a.setAttribute(`style`,h):a.removeAttribute(`style`),g&&(_?g.setAttribute(`style`,_):g.removeAttribute(`style`)),M&&=(N&&(P&&P.parentNode===N?N.insertBefore(M,P):N.appendChild(M),N=null,P=null),null),v&&(v.removeAttribute(`data-mf-slot`),y?v.setAttribute(`style`,y):v.removeAttribute(`style`)),F&&(I?F.setAttribute(`style`,I):F.removeAttribute(`style`),F=null,I=null);for(let{el:e,orig:t}of w)t?e.setAttribute(`style`,t):e.removeAttribute(`style`);o&&(x?o.setAttribute(`style`,x):o.removeAttribute(`style`)),S&&(C?S.setAttribute(`style`,C):S.removeAttribute(`style`)),s&&(b?s.setAttribute(`style`,b):s.removeAttribute(`style`))}};return q},A=()=>{};function j({adFormat:e=``,stickyOffset:t=0,logoPosX:n=0,logoHeight:r=0,logoSmallHeight:i=0,...a}={}){typeof A==`function`&&A();let c=()=>{};return e===`fireplace`?c=o(t):e===`fireplace-collant`?c=s(t):e===`logomorph`?c=T(n,r,i):e===`headingintegration`?c=w(a):e===`interscroller`?c=D(a):e===`liquidframe`?c=O(a):e===`mobilefireplace`?c=k(a):console.warn(`[powered-ad-config] Unknown ad format:`,e),A=typeof c==`function`?c:()=>{},A}return j.version=`0.1.60`,j});
165
+ `,i.head.appendChild(T),f.setup&&f.setup(i,a),o&&(F||p)){if(F&&(M=c||v),l&&l!==`about:blank`){let e=new URL(l);e.searchParams.set(`mfRole`,`wallpaper`),D=i.createElement(`iframe`),D.src=e.href,D.setAttribute(`data-mf-wallpaper-iframe`,``),D.setAttribute(`scrolling`,`no`),D.setAttribute(`frameborder`,`0`);let n=D.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(D,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`,O=i.createElement(`div`),O.setAttribute(`data-mf-billboard-mount`,``),O.style.height=`${t.billboardHeight}px`,O.style.minHeight=`${t.billboardHeight}px`,O.style.maxHeight=`${t.billboardHeight}px`,O.style.background=`transparent`,O.style.overflow=`visible`,O.style.position=`relative`,O.style.width=`100%`,O.style.padding=`0`,O.style.margin=`0`,o.parentElement.insertBefore(O,o),F?(F.style.position=`static`,F.style.inset=`auto`,F.style.height=`0`,F.style.minHeight=`0`,F.style.maxHeight=`0`,F.style.overflow=`hidden`,F.style.backgroundColor=`transparent`,F.style.boxShadow=`none`,F.style.border=`0`,F.style.outline=`0`,F.style.pointerEvents=`none`):v&&(v.style.height=`0`,v.style.minHeight=`0`,v.style.maxHeight=`0`,v.style.overflow=`hidden`,v.style.backgroundColor=`transparent`,v.style.border=`0`,v.style.outline=`0`),m.height=`0`,m.minHeight=`0`,m.width=`0`,m.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 w)e.style.backgroundColor=`transparent`,e.style.boxShadow=`none`,e.style.paddingLeft=`10px`,e.style.paddingRight=`10px`;S&&(S.style.marginLeft=`14px`,S.style.marginRight=`14px`,S.style.position=`relative`,S.style.zIndex=`2`),B()}},H=null,U=null,W=!1,G=()=>{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`,E&&(E.style.height=i+`px`)}else a.style.height=t.billboardHeight+`px`,a.style.minHeight=t.billboardHeight+`px`,E&&(E.style.height=t.billboardHeight+`px`)};if(V(),l&&l!==`about:blank`)try{let e=new URL(l);e.searchParams.set(`mfRole`,`billboard`),E=i.createElement(`iframe`),E.src=e.href,E.setAttribute(`data-mf-billboard-iframe`,``),E.setAttribute(`scrolling`,`no`),E.setAttribute(`frameborder`,`0`);let n=E.style;n.position=`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=`1`,(O||a).appendChild(E)}catch(e){console.warn(`[mobilefireplace] Could not create billboard iframe:`,e)}r.__mfBridge={adapted:!1,wallpaperWindow:D?.contentWindow||n.contentWindow,billboardIframe:E,billboardWindow:null},D&&D.addEventListener(`load`,()=>{try{r.__mfBridge&&(r.__mfBridge.wallpaperWindow=D.contentWindow)}catch{}}),E&&E.addEventListener(`load`,()=>{try{r.__mfBridge.billboardWindow=E.contentWindow}catch{}}),H=G,r.addEventListener(`resize`,H),G(),U=()=>{K()},window.addEventListener(`pagehide`,U),window.addEventListener(`beforeunload`,U),t.onAdapt&&r.requestAnimationFrame(()=>{r.__mfBridge.adapted=!0,t.onAdapt()});let K=()=>{if(!W){W=!0,U&&=(window.removeEventListener(`pagehide`,U),window.removeEventListener(`beforeunload`,U),null),H&&=(r.removeEventListener(`resize`,H),null),T&&T.parentNode&&(T.parentNode.removeChild(T),T=null),E&&E.parentNode&&(E.parentNode.removeChild(E),E=null),O&&O.parentNode&&(O.parentNode.removeChild(O),O=null),D&&D.parentNode&&(D.parentNode.removeChild(D),D=null);try{delete r.__mfBridge}catch{}for(let e=L.length-1;e>=0;--e){let{shell:t,parent:n,nextSibling:r}=L[e];!t||!n||(r&&r.parentNode===n?n.insertBefore(t,r):n.appendChild(t))}L.length=0,A&&(j&&j.parentNode===A?A.insertBefore(n,j):A.appendChild(n),A=null,j=null),m?n.setAttribute(`style`,m):n.removeAttribute(`style`);for(let{el:e,orig:t}of k)t?e.setAttribute(`style`,t):e.removeAttribute(`style`);k.length=0,h?a.setAttribute(`style`,h):a.removeAttribute(`style`),g&&(_?g.setAttribute(`style`,_):g.removeAttribute(`style`)),M&&=(N&&(P&&P.parentNode===N?N.insertBefore(M,P):N.appendChild(M),N=null,P=null),null),v&&(v.removeAttribute(`data-mf-slot`),y?v.setAttribute(`style`,y):v.removeAttribute(`style`)),F&&(I?F.setAttribute(`style`,I):F.removeAttribute(`style`),F=null,I=null);for(let{el:e,orig:t}of w)t?e.setAttribute(`style`,t):e.removeAttribute(`style`);o&&(x?o.setAttribute(`style`,x):o.removeAttribute(`style`)),S&&(C?S.setAttribute(`style`,C):S.removeAttribute(`style`)),s&&(b?s.setAttribute(`style`,b):s.removeAttribute(`style`))}};return K},A=()=>{};function j({adFormat:e=``,stickyOffset:t=0,logoPosX:n=0,logoHeight:r=0,logoSmallHeight:i=0,...a}={}){typeof A==`function`&&A();let c=()=>{};return e===`fireplace`?c=o(t):e===`fireplace-collant`?c=s(t):e===`logomorph`?c=T(n,r,i):e===`headingintegration`?c=w(a):e===`interscroller`?c=D(a):e===`liquidframe`?c=O(a):e===`mobilefireplace`?c=k(a):console.warn(`[powered-ad-config] Unknown ad format:`,e),A=typeof c==`function`?c:()=>{},A}return j.version=`0.1.61`,j});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "powered-ad-config",
3
- "version": "0.1.60",
3
+ "version": "0.1.61",
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",