@schibsted/advertory 3.17.0 → 3.17.1

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.
Files changed (383) hide show
  1. package/aftenposten/cjs/index.js +1 -1
  2. package/aftenposten/es/{_auto-entry_aftenposten-DeEHeijF.js → _auto-entry_aftenposten-CQzbye3k.js} +1 -1
  3. package/aftenposten/es/{events-Bxv2-lJi.js → events-wzFxMAFP.js} +1 -1
  4. package/aftenposten/es/{index-C0VUsW-8.js → index-0kRfLcYj.js} +1 -1
  5. package/aftenposten/es/{index-Dq_NBswZ.js → index-BmeZVQ0l.js} +1 -1
  6. package/aftenposten/es/{index-D76l_EB9.js → index-CXL8rnIl.js} +1 -1
  7. package/aftenposten/es/{index-CUAvvws0.js → index-Cr3lDYmG.js} +1 -1
  8. package/aftenposten/es/{index-Ds1ErtTb.js → index-DH3bflvx.js} +1 -1
  9. package/aftenposten/es/{index-C1rTtlM8.js → index-DpVNEgVg.js} +1 -1
  10. package/aftenposten/es/{index-Dsdyzi26.js → index-UeBxQJEQ.js} +1 -1
  11. package/aftenposten/es/{index-ARShBeWt.js → index-yIBDd6_a.js} +1 -1
  12. package/aftenposten/es/index.js +1 -1
  13. package/aftenposten/es/{styles-BRYU8SLU.js → styles-6FhX4hN7.js} +1 -1
  14. package/aftenposten/es/{styles-m2fX9LPC.js → styles-Bcd7vQWQ.js} +1 -1
  15. package/aftenposten/es/{styles-MoZa5WqG.js → styles-Bzp_hZ-l.js} +1 -1
  16. package/aftenposten/es/{styles-DQI5_O21.js → styles-CHiH__PG.js} +1 -1
  17. package/aftenposten/es/{styles-ayVZc-Ln.js → styles-CQa9OP2h.js} +1 -1
  18. package/aftenposten/es/{styles-iIXw22I9.js → styles-DGrR5Myv.js} +1 -1
  19. package/aftenposten/es/{styles-BGQJjU9F.js → styles-DV8aCVOL.js} +1 -1
  20. package/aftenposten/es/{styles-Mw1wWiYF.js → styles-Df9VFn3e.js} +1 -1
  21. package/aftenposten/es/{styles-DxPblond.js → styles-DnxoItho.js} +1 -1
  22. package/aftenposten/es/{styles-PFPNyVM6.js → styles-Mu5NcHOo.js} +1 -1
  23. package/aftenposten/es/{styles-B5ltPSCd.js → styles-Z6yKNaQW.js} +1 -1
  24. package/aftenpostenv2/es/{_auto-entry_aftenpostenv2-BYwW77G6.js → _auto-entry_aftenpostenv2-Aw5wuXno.js} +1 -1
  25. package/aftenpostenv2/es/{events-s0KndXbM.js → events-D-IVPmHl.js} +1 -1
  26. package/aftenpostenv2/es/{index-CEtZZCY9.js → index-3DH4w7Kp.js} +1 -1
  27. package/aftenpostenv2/es/{index-qp1DWE-W.js → index-BB1iI6Vl.js} +1 -1
  28. package/aftenpostenv2/es/{index-DkpkomjT.js → index-BdS24ZhN.js} +1 -1
  29. package/{aftonbladetv2/es/index-DWfqDsJT.js → aftenpostenv2/es/index-Bu7767Wo.js} +1 -1
  30. package/aftenpostenv2/es/{index-C9CJOoSj.js → index-DkDcRwK_.js} +1 -1
  31. package/aftenpostenv2/es/{index-BFeK-LWW.js → index-DyNS0mXg.js} +1 -1
  32. package/aftenpostenv2/es/{index-DxDq_Po1.js → index-DzI6iXF1.js} +1 -1
  33. package/aftenpostenv2/es/{index-fHDpymU-.js → index-ipMUCwE0.js} +1 -1
  34. package/aftenpostenv2/es/index.js +1 -1
  35. package/aftenpostenv2/es/{styles-BNyLMe8E.js → styles-BWrn3pun.js} +1 -1
  36. package/aftenpostenv2/es/{styles-CASQXqQF.js → styles-BdrJnjnQ.js} +1 -1
  37. package/aftenpostenv2/es/{styles-CiMnH_dj.js → styles-ByvXm5v5.js} +1 -1
  38. package/aftenpostenv2/es/{styles-BWKsmmOH.js → styles-BzRoae8Z.js} +1 -1
  39. package/aftenpostenv2/es/{styles-BGPmyGPM.js → styles-CkWr6xYa.js} +1 -1
  40. package/aftenpostenv2/es/{styles-BVctDUCm.js → styles-DK8HtLDl.js} +1 -1
  41. package/aftenpostenv2/es/{styles-vsx5sf3R.js → styles-DOhTp6JW.js} +1 -1
  42. package/aftenpostenv2/es/{styles-D_GncrAP.js → styles-DPU_7hgU.js} +1 -1
  43. package/aftenpostenv2/es/{styles-CmhIK7dX.js → styles-De8sTvD7.js} +1 -1
  44. package/aftenpostenv2/es/{styles-BV30yZL6.js → styles-QwQ7F3Mu.js} +1 -1
  45. package/aftenpostenv2/es/{styles-BniIe7BL.js → styles-iZYowlJx.js} +1 -1
  46. package/aftonbladet/cjs/index.js +1 -1
  47. package/aftonbladet/es/{_auto-entry_aftonbladet-DVgMcFE2.js → _auto-entry_aftonbladet-UQG0egxm.js} +1 -1
  48. package/aftonbladet/es/{events-CXtxgpgZ.js → events-CiteaWVv.js} +1 -1
  49. package/aftonbladet/es/{index-Bk_fQFBZ.js → index-CDun52TP.js} +1 -1
  50. package/aftonbladet/es/{index-Bs1pDCKo.js → index-CKfqrs7B.js} +1 -1
  51. package/aftonbladet/es/{index-CHCNCZ9K.js → index-CLhf_NpM.js} +1 -1
  52. package/aftonbladet/es/{index-D5UwsDK_.js → index-CPB2n7c-.js} +1 -1
  53. package/aftonbladet/es/{index-BWenmT-y.js → index-D694QiXY.js} +1 -1
  54. package/aftonbladet/es/{index-3VDyqZtr.js → index-DXuKUdFw.js} +1 -1
  55. package/aftonbladet/es/{index-CZSLakFQ.js → index-qS72xrEu.js} +1 -1
  56. package/aftonbladet/es/{index-BKt6R8I5.js → index-s03w1nsg.js} +1 -1
  57. package/aftonbladet/es/index.js +1 -1
  58. package/aftonbladet/es/{styles-BiUtMr4i.js → styles-BLvuyru8.js} +1 -1
  59. package/aftonbladet/es/{styles-BvjHoiBQ.js → styles-C4Q8-exK.js} +1 -1
  60. package/aftonbladet/es/{styles-DQhBtndR.js → styles-COxjPfTb.js} +1 -1
  61. package/aftonbladet/es/{styles-DBjCHe1k.js → styles-DaHJ7t0C.js} +1 -1
  62. package/aftonbladet/es/{styles-B-UFBebp.js → styles-Dxw5kVr1.js} +1 -1
  63. package/aftonbladet/es/{styles-BXKXVqt9.js → styles-aUjLpcVh.js} +1 -1
  64. package/aftonbladet/es/{styles-BiY81X1b.js → styles-yHMqBgDh.js} +1 -1
  65. package/aftonbladetv2/es/{_auto-entry_aftonbladetv2-BHW11wOD.js → _auto-entry_aftonbladetv2-K8GufdfA.js} +1 -1
  66. package/aftonbladetv2/es/{events-Cbt7fIRG.js → events-DjnBVxCH.js} +1 -1
  67. package/aftonbladetv2/es/{index-Bu4I_y4M.js → index-BMQSuSVi.js} +1 -1
  68. package/aftonbladetv2/es/{index-BXtOYeYP.js → index-CAkVH1cy.js} +1 -1
  69. package/aftonbladetv2/es/{index-D9yXYYbn.js → index-D1gBWEc_.js} +1 -1
  70. package/{aftenpostenv2/es/index--O8yOGIu.js → aftonbladetv2/es/index-DIYLLs_R.js} +1 -1
  71. package/aftonbladetv2/es/{index-CwLQoNTT.js → index-DQTM2CmM.js} +1 -1
  72. package/aftonbladetv2/es/{index-DAL6SHFK.js → index-Dg8PwMci.js} +1 -1
  73. package/aftonbladetv2/es/{index-D3Z17gr_.js → index-Dq7lYSYU.js} +1 -1
  74. package/aftonbladetv2/es/{index-D3Ia-EZk.js → index-bj1PhJMO.js} +1 -1
  75. package/aftonbladetv2/es/index.js +1 -1
  76. package/aftonbladetv2/es/{styles-Bs-Cq1AY.js → styles-8rwgNT8_.js} +1 -1
  77. package/aftonbladetv2/es/{styles-lyuZaRpv.js → styles-BNNyUF0j.js} +1 -1
  78. package/aftonbladetv2/es/{styles-DG43gS2D.js → styles-CWTQ-3h9.js} +1 -1
  79. package/aftonbladetv2/es/{styles-CTPt9Lgs.js → styles-CcMM-P3g.js} +1 -1
  80. package/aftonbladetv2/es/{styles-DZWmX5Rm.js → styles-DP9gVus2.js} +1 -1
  81. package/aftonbladetv2/es/{styles-LMk-cSXD.js → styles-a-e6D11y.js} +1 -1
  82. package/aftonbladetv2/es/{styles-CAyL6mdq.js → styles-oMtK3B2v.js} +1 -1
  83. package/bt/cjs/index.js +1 -1
  84. package/bt/es/{_auto-entry_bt-Cd6ZI3Y6.js → _auto-entry_bt-Bf5Mw4mU.js} +1 -1
  85. package/bt/es/{events-BVx4-U4K.js → events-BjUbkhEy.js} +1 -1
  86. package/bt/es/{index-8Q4fU44W.js → index-BOIa0oXu.js} +1 -1
  87. package/bt/es/{index-C8b5gUJK.js → index-BcmeJWhX.js} +1 -1
  88. package/{sa/es/index-DVT2NnVF.js → bt/es/index-BfTbebzJ.js} +1 -1
  89. package/{sa/es/index-BOHQ5u1E.js → bt/es/index-CsOjKWN4.js} +1 -1
  90. package/bt/es/{index-BKnUo_Ri.js → index-DhATf0Df.js} +1 -1
  91. package/{sa/es/index-DMiiKjDB.js → bt/es/index-DraZV50T.js} +1 -1
  92. package/bt/es/{index-Xvt21gk6.js → index-DvTCAwu1.js} +1 -1
  93. package/bt/es/{index-BCzNukhO.js → index-r66Cd2xZ.js} +1 -1
  94. package/bt/es/index.js +1 -1
  95. package/bt/es/{styles-5t3tPKaG.js → styles-1JWDtwN3.js} +1 -1
  96. package/{vg/es/styles-o63Bc_9O.js → bt/es/styles-9wKvNstR.js} +1 -1
  97. package/bt/es/{styles-B7WDt48u.js → styles-Bx0K6V2M.js} +1 -1
  98. package/bt/es/{styles-DX-lqUeD.js → styles-CVNqYpWx.js} +1 -1
  99. package/bt/es/{styles-W6gDPTHn.js → styles-DbBVP8RM.js} +1 -1
  100. package/bt/es/{styles-C9yeEU4B.js → styles-Df5tBsQK.js} +1 -1
  101. package/{sa/es/styles-Nf_wFxeb.js → bt/es/styles-DsF977Lw.js} +1 -1
  102. package/{vg/es/styles-B_t2SZht.js → bt/es/styles-OaVOhPgb.js} +1 -1
  103. package/bt/es/{styles-CrVD1qCz.js → styles-XCB733xz.js} +1 -1
  104. package/bt/es/{styles-B7bRH-o5.js → styles-sSYx1tU1.js} +1 -1
  105. package/btv2/es/{_auto-entry_btv2-Dr8STkQH.js → _auto-entry_btv2-Bc9X0Y4s.js} +1 -1
  106. package/{sav2/es/events-DAJmyc4h.js → btv2/es/events-oapj2yJD.js} +1 -1
  107. package/btv2/es/{index-Dl2Nf50P.js → index-BMCjCGA7.js} +1 -1
  108. package/btv2/es/{index-DX9lYOEU.js → index-C91g9VKv.js} +1 -1
  109. package/{vgv2/es/index-47v0nNpx.js → btv2/es/index-CDAas9Mp.js} +1 -1
  110. package/btv2/es/{index-4w40g94z.js → index-D1qlqRn6.js} +1 -1
  111. package/btv2/es/{index-TpkuLu67.js → index-DMYukhgR.js} +1 -1
  112. package/btv2/es/{index-C-949J-6.js → index-DWYgEk6A.js} +1 -1
  113. package/{sav2/es/index-sQz-BGiD.js → btv2/es/index-DWsI7Uot.js} +1 -1
  114. package/{omni/es/index-BIeMkeTF.js → btv2/es/index-GKVYBZqo.js} +1 -1
  115. package/btv2/es/index.js +1 -1
  116. package/{sav2/es/styles-CtG2ZcEn.js → btv2/es/styles-B0z9BTDm.js} +1 -1
  117. package/btv2/es/{styles-CiYsInQU.js → styles-BIGBLYzW.js} +1 -1
  118. package/btv2/es/{styles-CKniyrya.js → styles-BaBUQ7Hj.js} +1 -1
  119. package/btv2/es/{styles-DN5m4mgm.js → styles-BmCPT5IC.js} +1 -1
  120. package/btv2/es/{styles-DPf3Hj9N.js → styles-C83E3gfw.js} +1 -1
  121. package/btv2/es/{styles-vlKcL7Qc.js → styles-Ck69XN3a.js} +1 -1
  122. package/{sav2/es/styles-BxsJsqSj.js → btv2/es/styles-D5-nIZXy.js} +1 -1
  123. package/btv2/es/{styles-CY1egQLD.js → styles-DwgFefcu.js} +1 -1
  124. package/{sav2/es/styles-Cfx2vrpe.js → btv2/es/styles-mHC_ha2H.js} +1 -1
  125. package/btv2/styles.css +1 -1
  126. package/e24/es/{_auto-entry_e24-CMuPQ38R.js → _auto-entry_e24-3DlyBhKA.js} +1 -1
  127. package/e24/es/{events-jJcm18p4.js → events-CsOsrC6c.js} +1 -1
  128. package/e24/es/{index-CMCTb_6z.js → index-BlLqHFf8.js} +1 -1
  129. package/e24/es/{index-AEQHRILF.js → index-BpEKotdp.js} +1 -1
  130. package/e24/es/{index-BfMok4R1.js → index-CUcx7iNz.js} +1 -1
  131. package/e24/es/{index-DFq55Kwd.js → index-D7dBsGLK.js} +1 -1
  132. package/e24/es/{index-DsDhFC37.js → index-D8bVQ3yW.js} +1 -1
  133. package/e24/es/{index-DXC-qyte.js → index-J-Z58Cak.js} +1 -1
  134. package/e24/es/{index-CviRGV6d.js → index-nixiOIB7.js} +1 -1
  135. package/e24/es/{index-BRNTHOOz.js → index-uOIzIRd0.js} +1 -1
  136. package/e24/es/index.js +1 -1
  137. package/e24/es/{styles-CRZPpzOz.js → styles-BOHykpQ5.js} +1 -1
  138. package/e24/es/{styles-F9IKnOTo.js → styles-BQUHsL5Q.js} +1 -1
  139. package/e24/es/{styles-92DbtnTF.js → styles-BXv14H48.js} +1 -1
  140. package/e24/es/{styles-CY5RZWFx.js → styles-BbRRFyx-.js} +1 -1
  141. package/{tv4/es/styles-DrPo1mde.js → e24/es/styles-Cd6U5bIi.js} +1 -1
  142. package/e24/es/{styles-CjIbXs6u.js → styles-CvgGilBk.js} +1 -1
  143. package/e24/es/{styles-CaVeDJSk.js → styles-CwSXXIeb.js} +1 -1
  144. package/e24/es/{styles-ZwUMHNel.js → styles-CyisYILq.js} +1 -1
  145. package/e24/es/{styles-CLKB0Gnh.js → styles-DcxwsmsJ.js} +1 -1
  146. package/e24/es/{styles-BdYM4hiY.js → styles-Dkxpb8-D.js} +1 -1
  147. package/e24/es/{styles-DKqcP_WQ.js → styles-DxzLBB0z.js} +1 -1
  148. package/e24/es/{styles-BCiwdDb8.js → styles-w4pBXaCr.js} +1 -1
  149. package/fotbollskanalen/cjs/index.js +1 -1
  150. package/fotbollskanalen/es/{_auto-entry_fotbollskanalen-DBQE9Sqq.js → _auto-entry_fotbollskanalen-DHjzWt3m.js} +1 -1
  151. package/fotbollskanalen/es/{events-DFY5OXo8.js → events-DhPaztsp.js} +1 -1
  152. package/fotbollskanalen/es/{index-CUC_45dO.js → index-BQL-Z1u0.js} +1 -1
  153. package/fotbollskanalen/es/{index-B4WaoWH4.js → index-BsRgwJa4.js} +1 -1
  154. package/fotbollskanalen/es/{index-DqzGpDHE.js → index-D0ptBkNT.js} +1 -1
  155. package/fotbollskanalen/es/{index-BNulCeAW.js → index-DWWjtqjW.js} +1 -1
  156. package/fotbollskanalen/es/{index-DSzMmVMi.js → index-DkPVXiS0.js} +1 -1
  157. package/fotbollskanalen/es/{index-BgXwGgRF.js → index-Ij2nCGGh.js} +1 -1
  158. package/fotbollskanalen/es/{index-Bspibtho.js → index-KC0rcJ7D.js} +1 -1
  159. package/fotbollskanalen/es/{index-_0sIAPUS.js → index-OhJpwiv2.js} +1 -1
  160. package/fotbollskanalen/es/index.js +1 -1
  161. package/fotbollskanalen/es/{styles-CZpIXjyN.js → styles-BgMP0tAx.js} +1 -1
  162. package/fotbollskanalen/es/{styles-BmLteRhg.js → styles-COp_WpR0.js} +1 -1
  163. package/fotbollskanalen/es/{styles-Dysotb08.js → styles-CYoxh3-t.js} +1 -1
  164. package/fotbollskanalen/es/{styles-mFuiPoD5.js → styles-DWklkjVd.js} +1 -1
  165. package/fotbollskanalen/es/{styles-BZqjq4mb.js → styles-M6SwPIOB.js} +1 -1
  166. package/godt/cjs/index.js +1 -1
  167. package/klart/cjs/index.js +1 -1
  168. package/koket/cjs/index.js +1 -1
  169. package/koket/es/{_auto-entry_koket-Dz-qx3Jv.js → _auto-entry_koket-3tgHdstd.js} +1 -1
  170. package/koket/es/{events-D8-Schg1.js → events-B1TMTz87.js} +1 -1
  171. package/koket/es/{index-DpR-4QVt.js → index-B5PBFTA3.js} +1 -1
  172. package/koket/es/{index-BuYkggjm.js → index-CfGWBNLF.js} +1 -1
  173. package/koket/es/{index-kM1fczgb.js → index-DEqbbLwQ.js} +1 -1
  174. package/koket/es/{index-CU8qqX2O.js → index-DQAIFKwb.js} +1 -1
  175. package/koket/es/{index-DDjwtmbb.js → index-DSpgx1_U.js} +1 -1
  176. package/koket/es/{index-B2ge48bj.js → index-DdeJa-5b.js} +1 -1
  177. package/koket/es/{index-Z_VUjgP0.js → index-Dk81CHNt.js} +1 -1
  178. package/koket/es/{index-DOCEkx14.js → index-On3BxtYc.js} +1 -1
  179. package/koket/es/index.js +1 -1
  180. package/koket/es/{styles-LKdNCZIN.js → styles-2N7JCBSK.js} +1 -1
  181. package/{svdv2/es/styles-D8X2M74O.js → koket/es/styles-2iD_yEsD.js} +1 -1
  182. package/{svdv2/es/styles-B4mm7Oep.js → koket/es/styles-BUK-deOK.js} +1 -1
  183. package/koket/es/{styles-BEhM1KWg.js → styles-Bmy7u8FD.js} +1 -1
  184. package/koket/es/{styles-CeL_HW5w.js → styles-CL0biSyD.js} +1 -1
  185. package/minmote/cjs/index.js +1 -1
  186. package/mtv/es/{_auto-entry_mtv-B453H7Ed.js → _auto-entry_mtv-DCEFUvBr.js} +1 -1
  187. package/mtv/es/{events-D1J-nlHl.js → events-DxH68oDH.js} +1 -1
  188. package/mtv/es/{index-DIr0kArr.js → index-B6HjYflQ.js} +1 -1
  189. package/mtv/es/{index-D_HMpAYl.js → index-BAD0F7ZE.js} +1 -1
  190. package/mtv/es/{index-Ft7iLn6n.js → index-BAMoZ2vZ.js} +1 -1
  191. package/mtv/es/{index-DxDekWIX.js → index-C3EI4ICI.js} +1 -1
  192. package/mtv/es/{index-Ck8M4dSC.js → index-CT3lgloM.js} +1 -1
  193. package/mtv/es/{index-B-Hc1BIw.js → index-CYjmLZz7.js} +1 -1
  194. package/mtv/es/{index-Y357TZLq.js → index-Ccj7sOml.js} +1 -1
  195. package/mtv/es/{index-CFA1LPwY.js → index-DV_dfuSB.js} +1 -1
  196. package/mtv/es/index.js +1 -1
  197. package/mtv/es/{styles-Cs6qF9ko.js → styles-Cfoa2vM7.js} +1 -1
  198. package/omni/es/{_auto-entry_omni-DTqrIVcr.js → _auto-entry_omni-DiYOm9sB.js} +1 -1
  199. package/omni/es/{events-DJsjeZi7.js → events-DMgm4BH-.js} +1 -1
  200. package/omni/es/{index-BIchVbRg.js → index-B2-V_KFy.js} +1 -1
  201. package/{btv2/es/index-B3QHgFOn.js → omni/es/index-BHfhuhm8.js} +1 -1
  202. package/omni/es/{index-CmhFrvl7.js → index-BZ0KgPjr.js} +1 -1
  203. package/omni/es/{index-Bxp9oX7P.js → index-DKW-oNyj.js} +1 -1
  204. package/omni/es/{index-krqhkGbq.js → index-DRFR9yJ9.js} +1 -1
  205. package/omni/es/{index-DTnfTq9B.js → index-Qk6STC9Q.js} +1 -1
  206. package/omni/es/{index-Is1qOfec.js → index-YQLzcuUZ.js} +1 -1
  207. package/omni/es/{index-Dwfmx6le.js → index-h0z2F5mn.js} +1 -1
  208. package/omni/es/index.js +1 -1
  209. package/omni/es/{styles-CEeens3C.js → styles-BdBaTDGr.js} +1 -1
  210. package/omni/es/{styles-D6YRGiDZ.js → styles-CqDHTki0.js} +1 -1
  211. package/omni/es/{styles-W7YgB3nI.js → styles-Tkumo0Mc.js} +1 -1
  212. package/package.json +1 -1
  213. package/pent/cjs/index.js +1 -1
  214. package/sa/cjs/index.js +1 -1
  215. package/sa/es/{_auto-entry_sa-xdSYfQW3.js → _auto-entry_sa-ucdzu0GD.js} +1 -1
  216. package/sa/es/{events-Bh-uRJzK.js → events-B9pt8lBv.js} +1 -1
  217. package/sa/es/{index-CbLFl7dG.js → index-BdboEP_G.js} +1 -1
  218. package/{bt/es/index-BB1Uiz1J.js → sa/es/index-BkwWGZpq.js} +1 -1
  219. package/{bt/es/index-TSx_71q5.js → sa/es/index-CC532gi-.js} +1 -1
  220. package/sa/es/{index-BH9i-LMX.js → index-CNR4GGpr.js} +1 -1
  221. package/sa/es/{index-2luBqlxH.js → index-DAKkM1v8.js} +1 -1
  222. package/{bt/es/index-Cwye_iJR.js → sa/es/index-DZyfMmyw.js} +1 -1
  223. package/sa/es/{index-BFsoLtKL.js → index-DecwI9h2.js} +1 -1
  224. package/sa/es/{index-CqZ_ASgU.js → index-DqiiypwX.js} +1 -1
  225. package/sa/es/index.js +1 -1
  226. package/sa/es/{styles-D0XZJZ_u.js → styles-0Vkb_nt3.js} +1 -1
  227. package/sa/es/{styles-ZN8rvN9i.js → styles-BP1Rt8RB.js} +1 -1
  228. package/{vg/es/styles-C3TeyIFu.js → sa/es/styles-BR1IjsMG.js} +1 -1
  229. package/sa/es/{styles-5ijn5rkW.js → styles-BWpMXFQP.js} +1 -1
  230. package/sa/es/{styles-CudS_Jfu.js → styles-BnbwwBGN.js} +1 -1
  231. package/sa/es/{styles-BHnvSwej.js → styles-BpB3LtL5.js} +1 -1
  232. package/sa/es/{styles-_XQZ6Tn3.js → styles-CJRjqtfg.js} +1 -1
  233. package/sa/es/{styles-DWR8dexV.js → styles-CLcGiS9p.js} +1 -1
  234. package/sa/es/{styles-1N-EyzRS.js → styles-D-9DKq5u.js} +1 -1
  235. package/sa/es/{styles-BtHbk3d3.js → styles-oFdSsf5x.js} +1 -1
  236. package/sav2/es/{_auto-entry_sav2-BVr5g7DJ.js → _auto-entry_sav2-DUcwBk3a.js} +1 -1
  237. package/{tvnu/es/events-oee8fOzn.js → sav2/es/events-BtAwqF88.js} +1 -1
  238. package/sav2/es/{index-DSty9oAd.js → index-B783LyIl.js} +1 -1
  239. package/sav2/es/{index-ilVJq0DX.js → index-BnzO4uiy.js} +1 -1
  240. package/{tvnu/es/index-B6N_5RMM.js → sav2/es/index-C1kAF7gq.js} +1 -1
  241. package/sav2/es/{index-B2yiGjA8.js → index-CQ7xhxVA.js} +1 -1
  242. package/sav2/es/{index-FgKAoZ9H.js → index-CgtAXXr5.js} +1 -1
  243. package/sav2/es/{index-C15vv8ea.js → index-DUHSGbdP.js} +1 -1
  244. package/{btv2/es/index-sP1GW5L_.js → sav2/es/index-DtHEM7GF.js} +1 -1
  245. package/sav2/es/{index-B5VFiOMq.js → index-JTSv1BC5.js} +1 -1
  246. package/sav2/es/index.js +1 -1
  247. package/{vgv2/es/styles-D5b2Ytdl.js → sav2/es/styles-B96uy1bA.js} +1 -1
  248. package/{vgv2/es/styles-CWknyZKE.js → sav2/es/styles-BURK3VO1.js} +1 -1
  249. package/sav2/es/{styles-BrbD9PGj.js → styles-BZw_poms.js} +1 -1
  250. package/sav2/es/{styles-BPkm8e2X.js → styles-C2mkNi-v.js} +1 -1
  251. package/{btv2/es/styles-BGMihtNt.js → sav2/es/styles-COcmMEOL.js} +1 -1
  252. package/sav2/es/{styles-DIa-JALL.js → styles-CUiEWYCz.js} +1 -1
  253. package/sav2/es/{styles-CvKXPhnQ.js → styles-DZA0RiXA.js} +1 -1
  254. package/sav2/es/{styles-Do-nYoLf.js → styles-Dxvfo-3H.js} +1 -1
  255. package/{vgv2/es/styles-Cwzu6dls.js → sav2/es/styles-ZVHwQJkg.js} +1 -1
  256. package/svd/cjs/index.js +1 -1
  257. package/svd/es/{_auto-entry_svd-BI_musJH.js → _auto-entry_svd-Ck1VEMVK.js} +1 -1
  258. package/svd/es/{events-AzZqXY1e.js → events-COVpY30V.js} +1 -1
  259. package/svd/es/{index-D3Kb5QDm.js → index-BaKLHK-6.js} +1 -1
  260. package/svd/es/{index-DqQq_CDi.js → index-C-B8mHd9.js} +1 -1
  261. package/svd/es/{index-B5qMTXMv.js → index-C68IVPvH.js} +1 -1
  262. package/{tv4/es/index-j1rVQC5A.js → svd/es/index-CpPzRBQ0.js} +1 -1
  263. package/svd/es/{index-DQB77O8y.js → index-DO7ecV-e.js} +1 -1
  264. package/svd/es/{index-C6AyRPjp.js → index-DcMoKj47.js} +1 -1
  265. package/svd/es/{index-CiQQfKzW.js → index-DrmXKC6p.js} +1 -1
  266. package/svd/es/{index-3tXrBnvR.js → index-jDspcCFP.js} +1 -1
  267. package/svd/es/index.js +1 -1
  268. package/svd/es/{styles-BHDwNZdf.js → styles-BoYyGhrG.js} +1 -1
  269. package/svd/es/{styles-DtDS6S5M.js → styles-CP54RnGo.js} +1 -1
  270. package/svd/es/{styles-DDYRyrMQ.js → styles-CsZrgxNv.js} +1 -1
  271. package/svd/es/{styles-HgxHSPD5.js → styles-DOpYzwLc.js} +1 -1
  272. package/svd/es/{styles-DRe5NfOe.js → styles-DiKAUfvj.js} +1 -1
  273. package/svd/es/{styles-BpTekKgG.js → styles-HuEvzlpF.js} +1 -1
  274. package/svd/es/{styles-AM0IHaSl.js → styles-KCbchyKn.js} +1 -1
  275. package/svdv2/es/{_auto-entry_svdv2-DwTY7gwO.js → _auto-entry_svdv2-B_L1Coag.js} +1 -1
  276. package/svdv2/es/{events-EqTZTo4x.js → events-B2_U7OC1.js} +1 -1
  277. package/svdv2/es/{index-B-j8vFhK.js → index-Bi9yLp3P.js} +1 -1
  278. package/svdv2/es/{index-MtFSLZJj.js → index-CddOb8U1.js} +1 -1
  279. package/svdv2/es/{index-CzlQfFXE.js → index-CrCOVQ0H.js} +1 -1
  280. package/svdv2/es/{index-EH8jUH-U.js → index-CwmboBpq.js} +1 -1
  281. package/svdv2/es/{index-Cisx61f2.js → index-D7B-hGgg.js} +1 -1
  282. package/svdv2/es/{index-BDQkqw2L.js → index-D9B9N0eJ.js} +1 -1
  283. package/svdv2/es/{index-G6M1R7mQ.js → index-DRHViYAD.js} +1 -1
  284. package/svdv2/es/{index-MvS7LwUU.js → index-QVXdfI5S.js} +1 -1
  285. package/svdv2/es/index.js +1 -1
  286. package/svdv2/es/{styles-Xi49B3Hp.js → styles-B_Kve0Qi.js} +1 -1
  287. package/{koket/es/styles-Do1tuzki.js → svdv2/es/styles-BqFJHkS3.js} +1 -1
  288. package/svdv2/es/{styles-DEU4zSc4.js → styles-BrjW0wgx.js} +1 -1
  289. package/svdv2/es/{styles-D2vhLdOF.js → styles-Bv8MNJdE.js} +1 -1
  290. package/{koket/es/styles-ulsUkrWE.js → svdv2/es/styles-CPRKf9nj.js} +1 -1
  291. package/svdv2/es/{styles-BWvnhcRh.js → styles-D-ZuBJFL.js} +1 -1
  292. package/svdv2/es/{styles-giyR-dVh.js → styles-cRhOMQxG.js} +1 -1
  293. package/svdv2/es/{styles-B4A3kcMR.js → styles-zwn7pUid.js} +1 -1
  294. package/tek/cjs/index.js +1 -1
  295. package/tv4/cjs/index.js +1 -1
  296. package/tv4/es/{_auto-entry_tv4-RFlZhi23.js → _auto-entry_tv4-BWewdI2J.js} +1 -1
  297. package/tv4/es/{events-BvpAX5y8.js → events-Dks_W8aT.js} +1 -1
  298. package/tv4/es/{index-CRSOPoHX.js → index-BTSJViQy.js} +1 -1
  299. package/tv4/es/{index-D5SSA8ki.js → index-CDYc1vT1.js} +1 -1
  300. package/{svd/es/index-D2pQJkg7.js → tv4/es/index-CKRaPiHU.js} +1 -1
  301. package/tv4/es/{index-CNz-Jeu8.js → index-D-cgB-Qv.js} +1 -1
  302. package/tv4/es/{index-C-UPg3Sf.js → index-D4un3a4_.js} +1 -1
  303. package/tv4/es/{index-B_gbOYij.js → index-Dm6HZPPJ.js} +1 -1
  304. package/tv4/es/{index-lvr5lsa1.js → index-DncCBxyr.js} +1 -1
  305. package/tv4/es/{index-DfcQFyBF.js → index-QfZ1yDKX.js} +1 -1
  306. package/tv4/es/index.js +1 -1
  307. package/tv4/es/{styles-D0YXoDqA.js → styles-Be20SQxQ.js} +1 -1
  308. package/{e24/es/styles-CaIeNjZd.js → tv4/es/styles-CI-zLM5m.js} +1 -1
  309. package/tv4/es/{styles-BAB9z9HL.js → styles-CQeRAogO.js} +1 -1
  310. package/tv4/es/{styles-Vvkr2oP2.js → styles-CS6EwYj9.js} +1 -1
  311. package/tv4/es/{styles-BeHZulse.js → styles-DA9QaBiB.js} +1 -1
  312. package/tvnu/cjs/index.js +1 -1
  313. package/tvnu/es/{_auto-entry_tvnu-DXVYaAzG.js → _auto-entry_tvnu-qU7WnhRl.js} +1 -1
  314. package/{btv2/es/events-DNGi246N.js → tvnu/es/events-C41LfSUd.js} +1 -1
  315. package/tvnu/es/{index-BlywnArN.js → index-8UcLg3fF.js} +1 -1
  316. package/tvnu/es/{index-7qyef6kD.js → index-BDhDw0n8.js} +1 -1
  317. package/tvnu/es/{index-xrdb1iaR.js → index-C5wK_iuc.js} +1 -1
  318. package/{btv2/es/index-BNV3AQ1d.js → tvnu/es/index-CUYn_8le.js} +1 -1
  319. package/tvnu/es/{index-DpT18tBb.js → index-DGim-Ymn.js} +1 -1
  320. package/tvnu/es/{index-D05ux0EY.js → index-DLOLNdW1.js} +1 -1
  321. package/{sav2/es/index-nGVErSfz.js → tvnu/es/index-DuY8DiPV.js} +1 -1
  322. package/tvnu/es/{index-qSk_hLIs.js → index-cJgbtogX.js} +1 -1
  323. package/tvnu/es/index.js +1 -1
  324. package/tvnu/es/{styles-C6nHIAXx.js → styles-9v98_12Z.js} +1 -1
  325. package/tvnu/es/{styles-FoXQhZqd.js → styles-BZSG1wSv.js} +1 -1
  326. package/tvnu/es/{styles-BfU3CoTt.js → styles-CVpVuXGM.js} +1 -1
  327. package/{btv2/es/styles-GUQHV5pf.js → tvnu/es/styles-vWn7lrpp.js} +1 -1
  328. package/vg/cjs/index.js +1 -1
  329. package/vg/es/{_auto-entry_vg-DQLWY_R2.js → _auto-entry_vg-nT8CYeFA.js} +1 -1
  330. package/vg/es/{events-B7q-NF9U.js → events-Ce-3oCAR.js} +1 -1
  331. package/vg/es/{index-Bbk2lzFF.js → index--qIDvYhQ.js} +1 -1
  332. package/vg/es/{index-BKtVhTvs.js → index-B1wv1t3G.js} +1 -1
  333. package/vg/es/{index-DUIWPX_1.js → index-CZbmC7Ja.js} +1 -1
  334. package/vg/es/{index-DAsq1Ptc.js → index-CjHCSG0t.js} +1 -1
  335. package/vg/es/{index-CyBOJwBu.js → index-DBo7tyHP.js} +1 -1
  336. package/vg/es/{index-DHJNarUV.js → index-DEn_H7Hl.js} +1 -1
  337. package/vg/es/{index-ZZ4ShVz0.js → index-DYVf_ejx.js} +1 -1
  338. package/vg/es/{index-z2xfgR2S.js → index-pO5JZYdy.js} +1 -1
  339. package/vg/es/index.js +1 -1
  340. package/vg/es/{styles-B_xJTnKq.js → styles-4e380VkF.js} +1 -1
  341. package/vg/es/{styles-CMiS8G2G.js → styles-B2xZdw65.js} +1 -1
  342. package/vg/es/{styles-qdbBzoLB.js → styles-BJbgNH0L.js} +1 -1
  343. package/vg/es/{styles-B3WKPeMn.js → styles-BQJhpR4p.js} +1 -1
  344. package/vg/es/{styles-Dalw-rfT.js → styles-BVTSl43k.js} +1 -1
  345. package/{bt/es/styles-BbsXjAr9.js → vg/es/styles-BWXLJkUe.js} +1 -1
  346. package/vg/es/{styles-CE3Cldo6.js → styles-Bcw8IOwy.js} +1 -1
  347. package/vg/es/{styles-CTsUdOeH.js → styles-CJvfJnuD.js} +1 -1
  348. package/vg/es/{styles-BSkyRlcf.js → styles-ChZ3sq55.js} +1 -1
  349. package/vg/es/{styles-Ddwl9FKA.js → styles-CofOhUt1.js} +1 -1
  350. package/vg/es/{styles-BhJlPd_Z.js → styles-DU1TRHOr.js} +1 -1
  351. package/{bt/es/styles-DMYjKKm7.js → vg/es/styles-DbtcxxqK.js} +1 -1
  352. package/vg/es/{styles-JHiG-CVa.js → styles-DsmKO01b.js} +1 -1
  353. package/vg/es/{styles-B6g2m-ot.js → styles-R-LSxDrz.js} +1 -1
  354. package/vg/es/{styles-efoK-usP.js → styles-ZIVjd7Kj.js} +1 -1
  355. package/{bt/es/styles-DyRc3czz.js → vg/es/styles-sUHuRG9Y.js} +1 -1
  356. package/vgv2/es/{_auto-entry_vgv2-C7nbSyxw.js → _auto-entry_vgv2-STK09567.js} +1 -1
  357. package/vgv2/es/{events-Dp1vC5Bd.js → events-CTEuqItr.js} +1 -1
  358. package/vgv2/es/{index-BlGWO9BO.js → index-CKv_J9qN.js} +1 -1
  359. package/vgv2/es/{index-BFxrXWGC.js → index-CaGXaBIE.js} +1 -1
  360. package/vgv2/es/{index-DGAfzfRX.js → index-CnQNMS2u.js} +1 -1
  361. package/{tvnu/es/index-BPqod6Fg.js → vgv2/es/index-CpfXzBbX.js} +1 -1
  362. package/vgv2/es/{index-Cb0l1qxT.js → index-D1vocHKf.js} +1 -1
  363. package/vgv2/es/{index-CuJ--u5F.js → index-DOzk-lYH.js} +1 -1
  364. package/vgv2/es/{index-CGqa79bg.js → index-Dq37qrh_.js} +1 -1
  365. package/vgv2/es/{index-D-Qw-Ctt.js → index-SfU1VkhH.js} +1 -1
  366. package/vgv2/es/index.js +1 -1
  367. package/vgv2/es/{styles-DXAwvzMq.js → styles--V_VVpJ8.js} +1 -1
  368. package/vgv2/es/{styles-BBKEaIU9.js → styles-B3MDBJKG.js} +1 -1
  369. package/vgv2/es/{styles-CeT_UM3Q.js → styles-C24lCY9K.js} +1 -1
  370. package/{sav2/es/styles-D4UiNBaQ.js → vgv2/es/styles-C65hTDSa.js} +1 -1
  371. package/vgv2/es/{styles-Dm2TCMhS.js → styles-CICOgIpG.js} +1 -1
  372. package/vgv2/es/{styles-BnIMZIgM.js → styles-CXo6pHfv.js} +1 -1
  373. package/vgv2/es/{styles-CNv9QjiT.js → styles-CfUB5ZeY.js} +1 -1
  374. package/{btv2/es/styles-CFzk1f5W.js → vgv2/es/styles-CmSgk5EQ.js} +1 -1
  375. package/vgv2/es/{styles-Brmtqrkz.js → styles-CnDSdYK5.js} +1 -1
  376. package/vgv2/es/{styles-BwBie4YA.js → styles-D8AbbwMs.js} +1 -1
  377. package/vgv2/es/{styles-cyu8frWQ.js → styles-DesI8c5n.js} +1 -1
  378. package/vgv2/es/{styles-CeubT2mO.js → styles-DjDLo0Uv.js} +1 -1
  379. package/{tvnu/es/styles-Bhct-6Vu.js → vgv2/es/styles-DqR1rfSj.js} +1 -1
  380. package/vgv2/es/{styles-DSR-holV.js → styles-UT2XT9Ar.js} +1 -1
  381. package/vgv2/es/styles-Uf8_10Aw.js +1 -0
  382. package/vgv2/es/{styles-C00b6ch1.js → styles-ymhcL2FI.js} +1 -1
  383. package/vgv2/es/styles-b420Zw-n.js +0 -1
@@ -1 +1 @@
1
- import"react/jsx-runtime";const e={adRequested:()=>{},adAvailable:e=>{},adLoaded:e=>{},adNoBid:e=>{},adError:(e,t)=>{},adCollapse:()=>{},adRequestFailure:e=>{},adBadRequest:e=>{},adLoadedMediated:e=>{},adNoBidMediated:e=>{}},t={SVD:"svd",VG:"vg",AFTENPOSTEN:"aftenposten",SA:"sa",BT:"bt",AFTONBLADET:"aftonbladet",E24:"e24",MINMOTE:"minmote",PENT:"pent",GODT:"godt",TEK:"tekno",KLART:"klart",TVNU:"tvnu",POLARIS:"polaris",KOKET:"koket",TV4:"tv4",FOTBOLLSKANALEN:"fotbollskanalen",OMNI:"omni",MTV:"mtv"},n={publisherClassName:t.MTV,classesToRemoveOnRefresh:[]};function i(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}return n}function o(e,t,n,i){return new(n||(n=Promise))(function(o,r){function a(e){try{d(i.next(e))}catch(e){r(e)}}function s(e){try{d(i.throw(e))}catch(e){r(e)}}function d(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}d((i=i.apply(e,t||[])).next())})}function r(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var a,s;"function"==typeof SuppressedError&&SuppressedError;var d=r(function(){if(s)return a;s=1;var e=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var n=Object.prototype.toString.call(e);return"[object RegExp]"===n||"[object Date]"===n||function(e){return e.$$typeof===t}(e)}(e)},t="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function n(e,t){return!1!==t.clone&&t.isMergeableObject(e)?l((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function i(e,t,i){return e.concat(t).map(function(e){return n(e,i)})}function o(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}(e))}function r(e,t){try{return t in e}catch(e){return!1}}function d(e,t,i){var a={};return i.isMergeableObject(e)&&o(e).forEach(function(t){a[t]=n(e[t],i)}),o(t).forEach(function(o){(function(e,t){return r(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,o)||(r(e,o)&&i.isMergeableObject(t[o])?a[o]=function(e,t){if(!t.customMerge)return l;var n=t.customMerge(e);return"function"==typeof n?n:l}(o,i)(e[o],t[o],i):a[o]=n(t[o],i))}),a}function l(t,o,r){(r=r||{}).arrayMerge=r.arrayMerge||i,r.isMergeableObject=r.isMergeableObject||e,r.cloneUnlessOtherwiseSpecified=n;var a=Array.isArray(o);return a===Array.isArray(t)?a?r.arrayMerge(t,o,r):d(t,o,r):n(o,r)}return l.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,n){return l(e,n,t)},{})},a=l}());const l={arrayMerge:(e,t)=>t,isMergeableObject:e=>"object"==typeof e&&null!==e&&e.constructor===Object},c=(e,t)=>d(e,t,l),u=(e,t)=>Object.assign(Object.assign({},e),t),p=(e,t)=>{var n;return c(null!==(n=e)&&void 0!==n?n:{},t)},v=(e,t)=>{const n="[Advertory LOG]: ";location.search.includes("ast_debug=true")&&(t?console.log(n,e,t):console.log(n,e))},g=(e,t)=>{const n="[Advertory WARN]: ";t?console.warn(n,e,t):console.warn(n,e)},h=e=>{(e=>{const{pageContext:t,pageOptions:n,placements:i,appearanceConfig:o}=null!=e?e:{};(null==t?void 0:t.publisher)||g("pageContext.publisher is required."),(null==t?void 0:t.countryCode)||g("pageContext.countryCode is required."),(null==t?void 0:t.pageType)||g("pageContext.pageType is required."),(null==t?void 0:t.deviceType)||g("pageContext.deviceType is required."),n||g("pageOptions is required."),i||g("placements is required."),(null==o?void 0:o.defaultThreshold)||g("appearanceConfig.defaultThreshold is required.")})(e),(e=>{var t,n,i,o;const r=e.pageSectionsSelectors,a=[{flag:!!(null===(t=e.takeover)||void 0===t?void 0:t.enabled),property:"header",featureName:"takeover"},{flag:!!(null===(n=e.sponsorstripe)||void 0===n?void 0:n.enabled),property:"header",featureName:"sponsorstripe"},{flag:!!(null===(i=e.widescreenSwitching)||void 0===i?void 0:i.enabled),property:"right",featureName:"widescreenSwitching"},{flag:!!(null===(o=e.wallpaper)||void 0===o?void 0:o.enabled),property:"header",featureName:"wallpaper"}];for(const{flag:e,property:t,featureName:n}of a)e&&!(null==r?void 0:r[t])&&g(`pageSectionsSelectors.${t} is required when ${n} is enabled.`)})(e)},m={placements:(e,t)=>t,takeover:p,refreshConfig:u,editory:p,appearanceConfig:p,pageContext:u,pageOptions:u,pageSectionsSelectors:u,tcf:u},f=(e,t)=>{const n=e;for(const e of Object.keys(m)){const i=t[e];void 0!==i&&(n[e]=m[e](n[e],i))}},y=6;class b{set(e){h(e),this.config=e}modifyConfigProperties(e){if(!this.config)throw new Error("Config was accessed before it had been initialized.");f(this.config,e)}get(){if(!this.config)throw new Error("Config was accessed before it had been initialized.");return this.config}getHandlers(){if(!this.siteHandlers)throw new Error("Handlers were accessed before it had been initialized.");return this.siteHandlers}setHandlers(e){this.siteHandlers=c(b.DEFAULT_SITE_HANDLERS,e)}}b.DEFAULT_SITE_HANDLERS={siteEvents:e,initNativeAd:()=>{}};const w=new b,C=w.modifyConfigProperties.bind(w);class I{initialize(){this.DATA=Object.assign({},I.INITIAL_DATA)}getData(e){if(!this.DATA)throw new Error("Storage was accessed with invalid data.");return this.DATA[e]}setData(e,t){if(!this.DATA)throw new Error("Storage was accessed before it had been initialized.");this.DATA[e]=Object.assign(Object.assign({},this.DATA[e]),t)}}I.INITIAL_DATA={wallpaper:{isAvailable:!1},horseshoe:{isAvailable:!1},initialClassNames:{},alertoryConfigKeywords:{}};const E=new I,T=864e5,S=(()=>{const e=e=>{const t=window.localStorage.getItem(e);if(!t)return null;try{return JSON.parse(t)}catch(e){return v("Error with parsing localStorage data"),null}},t=(e,t)=>{window.localStorage.setItem(e,JSON.stringify(t))};return{get:e,set:t,setWithTimestamp:(e,n,i=T)=>{const o={data:n,expirationTime:(new Date).getTime()+i};t(e,JSON.stringify(o))},getByTimestamp:(t,n=T)=>{const i=e(t);if(!i)return null;if(!n)return i;try{const{expirationTime:e,data:t}=JSON.parse(i);return(new Date).getTime()<=e?t:null}catch(e){return v("Error with parsing localStorage data"),null}}}})(),A="glimrTags",O=["glwe_","glwet_"],x={geofenceTags:[],geoTags:[],weatherTags:[]},k=e=>new URLSearchParams(window.location.search).get(e),P="takeover",L="native_override_desc2",j=e=>new Promise(t=>{if(!window._tcf_||!(null==e?void 0:e.enabled))return void t(!1);const n=(()=>{if(!window._tcf_)return null;const e=window._tcf_.getPermissionSync("CMP:advertising");if(null===e)return null;const t=Number(e);return v("Advertising permission value obtained synchronously: ",e),Boolean(t)})();if(null!==n)return void t(n);let i=!1;const o=e=>{i||(v("Resolving advertising permission value obtained"),i=!0,t(e))},r=setTimeout(()=>{v("Advertising permission timed out, resolving with false"),o(!1)},3e3);window._tcf_.onTcfReady(()=>{v("On Tcf Ready called, waiting for permission"),clearTimeout(r)}),window._tcf_.getPermission("CMP:advertising",e=>{clearTimeout(r);const t=Number(e);v("Advertising permission value obtained asynchronously: ",e),o(Boolean(t))})}),_={NO:"no",SE:"se"},$="cmp:loaded";let N="undefined"!=typeof window?window._tcf_:void 0,q=!1;const F=(e,t,n)=>{const i=!!(null==e?void 0:e.enabled),r=(null==e?void 0:e.timeout)||3e3,a=k("bypass_tcf"),s=()=>{if(!(null==e?void 0:e.enabled))return!0;if(((e,t)=>e?!!t&&(v("TCF bypass param detected, returning consent: true"),!0):(v("TCF is not enabled, returning consent: true"),!0))(i,a))return!0;if(q)return null;if(!N)throw new Error("[Advertory]: getConsentSync method was called before the tcfManager was available.");const t=N.getConsentedToAllSync();return v(`TCF consented to all is: ${t}`),N.getConsentedToAllSync()};return{initConsentManager:()=>(null==e?void 0:e.enabled)?new Promise((e,t)=>{if(v("Getting TCF consent manager..."),window._tcf_)return v("TCF consent manager is already available"),N=window._tcf_,void e(N);v("TCF consent manager is not available");const n=()=>{v("CMP loaded, resolving consent manager..."),i&&clearTimeout(i),window._tcf_?(N=window._tcf_,e(N)):t(new Error("CMP loaded but window._tcf_ is not defined"))},i=setTimeout(()=>{document.removeEventListener($,n),q=!0,t(new Error("Timeout waiting for CMP to load"))},r);v("Listening for CMP loaded event..."),document.addEventListener($,n,{once:!0})}):Promise.resolve(null),getConsentSync:s,getConsentAsync:()=>o(void 0,void 0,void 0,function*(){if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return v(`Schibsted Ad Choices override value is set, returning override value: ${e.schibstedAdChoicesOverrideValue}`),Boolean(Number(e.schibstedAdChoicesOverrideValue));const t=(null==e?void 0:e.advertisingCMPSignalEnabled)&&n===_.SE,i=(null==e?void 0:e.advertisingCMPSignalEnabled)&&n===_.NO;if(t||i)return v("Schibsted Ad Choices is enabled, getting advertising permissions..."),yield j(e);if(!(null==e?void 0:e.enabled))return!0;const o=s();return null!==o?o:yield new Promise((e,t)=>{try{if(!N)throw new Error("[Advertory]: getConsentAsync method was called before the tcfManager was available.");let t=!1;const n=n=>{t||(t=!0,e(n))},i=setTimeout(()=>{v("TCF isConsentedToAll timed out, resolving with false"),n(!1)},r);N.onTcfReady(()=>{v("On Tcf Ready called, waiting for consent"),clearTimeout(i)}),N.isConsentedToAll(t=>{clearTimeout(i),e(t)})}catch(e){t(e)}})})}},R=(e,t,n,...i)=>o(void 0,[e,t,n,...i],void 0,function*(e,t,n,i="NOT SPECIFIED FEATURE"){if(!(null==e?void 0:e.schibstedConsentToPayEnabled))return v(`Schibsted Consent to Pay is not enabled, returning true for ${i}`),!0;if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return v(`Schibsted Ad Choices override value is set, returning override value: ${null==e?void 0:e.schibstedAdChoicesOverrideValue} for ${i}`),Boolean(Number(null==e?void 0:e.schibstedAdChoicesOverrideValue));const{getConsentAsync:o}=F(e,0,n);return(yield o())?(v(`Schibsted Ad Choices consent given according to TCF consent manager for ${i}`),!0):(v(`Schibsted Ad Choices consent not given according to TCF consent manager for ${i}`),!1)}),M=(...e)=>o(void 0,[...e],void 0,function*(e=w.get()){const{tcf:t,pageContext:{isMobileApp:n,countryCode:i}={}}=e;if(null==t?void 0:t.schibstedConsentToPayEnabled){return yield R(t,n,i,"glimr")}const{getConsentAsync:o}=F(t,0,i);return yield o()}),D=()=>o(void 0,void 0,void 0,function*(){const{glimr:e}=w.get();if(!(yield M())||!(null==e?void 0:e.enabled))return void v("No consent for glimr data fetching.");const t=yield(n=500,o(void 0,void 0,void 0,function*(){return yield Promise.race([o(void 0,void 0,void 0,function*(){const e=yield import("glimr-sdk");return e.default||e}),new Promise(e=>setTimeout(()=>e(!1),n))])}));var n;if(t)try{t.setTagCacheTimeInSeconds(300),yield new Promise(n=>{t.getTags(e.clientId,(e,t)=>{S.setWithTimestamp(A,{tags:e,tagMappings:t}),n(!0)})})}catch(e){v(`Error during getting glimr data: ${e}`)}else v("Timeout (500ms) while loading glimr package. Skipping glimr data fetching.",{glimr:t})}),B={svd:"svd",vg:"vg",aftenposten:"no-aftenposten",sa:"no-stavangeraftenblad",bt:"no-bergenstidende",aftonbladet:"aftonbladet",e24:"e24",minmote:"minmote",pent:"pent",godt:"godt",tek:"no-tek"},U=e=>O.some(t=>e.startsWith(t)),H=e=>e.startsWith("glgc_"),W=e=>e.startsWith("glci_"),V=e=>!U(e)&&!H(e),z=e=>e===_.NO?"no-sno":"se-generic",K=(e,t)=>o(void 0,void 0,void 0,function*(){const{addPublisherToGeo:n}=t||{},{glimr:i,pageContext:{countryCode:o}={}}=e,r=yield M(e);if(!(null==i?void 0:i.enabled)||!r)return v("No consent for getting glimr tags."),{};const a=z(o),s=G(e,Boolean(n));return{[`${a}-geo`]:s.geoTags,[`${a}-weather`]:s.weatherTags,[`${a}-geofence`]:s.geofenceTags}}),G=(e,t)=>{const n=X();if(!n)return x;const i=((e=[])=>e.filter(U))(n),o=((e=[])=>e.filter(H))(n),r=((e=[],t,n)=>{var i;const o=e.filter(V);if(n&&t){const{publisher:e}=null!==(i=t.pageContext)&&void 0!==i?i:{},n=B[e]||e;o.push(n)}return o})(n,e,t);return{geoTags:r,geofenceTags:o,weatherTags:i}},X=()=>{const e=S.getByTimestamp(A);return e&&"string"!=typeof e?null==e?void 0:e.tags:null},J=()=>{var e;return((e=[])=>e.filter(W))(null!==(e=X())&&void 0!==e?e:[])},Q=()=>(window.apntag||(window.apntag={anq:[],defineTag:e=>({targetId:""}),showTag:e=>{},onEvent:(e,t,n)=>{},offEvent:(e,t)=>{},refresh:e=>{},modifyTag:(e,t)=>{},loadTags:e=>{},emitEvent:(e,t)=>{},setPageOpts:e=>{},resizeAd:(e,t,n)=>{},getAstVersion:()=>"",setEndpoint:(e,t)=>{},fireImpressionTrackers:e=>{},setKeywords:()=>{},clearRequest:()=>{}}),window.apntag),Y=()=>(window.relevantDigital||(window.relevantDigital={cmd:[]}),window.relevantDigital),Z=()=>{const e=Y();return e.cmd||(e.cmd=[]),e.cmd},ee=(e={},t)=>{const{prebid:{externalUidInAuctionEnabled:n,forwardGlimrTags:i=!1}={},pageContext:{countryCode:o}}=w.get(),r=[`${z(o)}-geo`],a=["aa-sch-context_keyword","aa-sch-publisher","se-aftonbladet-section","se-svd-section","se-generic-section","no-sno-news-section","no-sno-news-subsection","aa-sch-cmp_advertising",...i?r:[]],s=Object.fromEntries(Object.entries(e).filter(([e])=>a.includes(e))),d=t&&n?{id:t}:{};return{ortb2:Object.assign({site:{ext:{data:s}}},d)}},te="opaque",ne=e=>o(void 0,void 0,void 0,function*(){if(e.type!==te){if(!e.ok)throw new Error(e.statusText);return yield e.json()}}),ie={get:(e,...t)=>o(void 0,[e,...t],void 0,function*(e,t={}){var{timeout:n}=t,r=i(t,["timeout"]);if(n)return((e,t,n)=>o(void 0,void 0,void 0,function*(){const i=new AbortController,o=setTimeout(()=>i.abort(),n);try{const n=yield fetch(e,Object.assign(Object.assign({},t),{signal:i.signal}));return ne(n)}finally{clearTimeout(o)}}))(e,r,n);const a=yield fetch(e,r);return ne(a)}),post:(e,t,n)=>o(void 0,void 0,void 0,function*(){const i=JSON.stringify(n),o=yield fetch(e,{method:"POST",headers:t,body:i});if(!o.ok)throw new Error(o.statusText);return yield o.json()})},oe="advertory:ppids-cache",re={[_.SE]:`SCH${_.SE.toUpperCase()}-EnvHash`,[_.NO]:`SCH${_.NO.toUpperCase()}-EnvHash`},ae={[_.SE]:`SCH${_.SE.toUpperCase()}-UserHash`,[_.NO]:`SCH${_.NO.toUpperCase()}-UserHash`},se={[_.SE]:`sch${_.SE}-envhash-v3`,[_.NO]:`sch${_.NO}-envhash-v3`},de={[_.SE]:`sch${_.SE}-userhash-v3`,[_.NO]:`sch${_.NO}-userhash-v3`},le={[_.SE]:`'sch${_.SE}-iosid-v3'`,[_.NO]:`'sch${_.NO}-iosid-v3'`},ce={[_.SE]:`sch${_.SE}-androidid-v3`,[_.NO]:`sch${_.NO}-androidid-v3`},ue={[_.SE]:"sdrn:schibsted.com:user",[_.NO]:"sdrn:spid.no:user"};class pe{constructor(){this.eids=[]}add(e,t){return e&&this.eids.push({id:e,source:t}),this}buildRyEids(){return this.eids.map(({id:e,source:t})=>({source:t,uids:[{id:e,atype:1,ext:{stype:"ppuid"}}]}))}buildEids(){return[...this.eids]}buildVideoEids(){return this.eids.map(({id:e,source:t})=>`${t},${e}`).join("|")}buildNorstatPath(){const e=this.eids[0];return e?`${e.source}-${e.id}`:""}buildNorstatQuery(e){const t=new URLSearchParams;return this.eids.slice(1).forEach(({id:n,source:i})=>{t.append(e,`${i}-${n}`)}),t}}const ve=new class{constructor(){this.ppid1=null,this.ppid2=null}processPPIDs(e){return o(this,arguments,void 0,function*(e,t=1e4){var n,i;const o=yield Promise.race([new Promise(e=>{setTimeout(()=>e({xandr:{ppId1:"",ppId2:""}}),t)}),e.instance.getAdvertisingIdentifiers()]);this.setPPIDs(null===(n=o.xandr)||void 0===n?void 0:n.ppId1,null===(i=o.xandr)||void 0===i?void 0:i.ppId2)})}getPPIDs(){var e,t;return null!==this.ppid1&&null!==this.ppid2||v("PPIDv2s accessed before they have been initialized"),{ppid1:null!==(e=this.ppid1)&&void 0!==e?e:"",ppid2:null!==(t=this.ppid2)&&void 0!==t?t:""}}setPPIDs(e,t){this.ppid1=null!=e?e:"",this.ppid2=null!=t?t:""}},ge=new class{constructor(){this.ppid1=null,this.ppid2=null,this.idfv=null,this.anId=null}processPPIDs(e,t){return o(this,void 0,void 0,function*(){var n,i,o,r,a,s,d,l,c,u,p;const v=S.get(oe),g=yield this.getNewPPIDs(e,t);if(this.shouldHash(v,g)){const t=null!==(n=e.hasherUrl)&&void 0!==n?n:"https://hasher.schibsted.com/api/v1/hash",l=this.createHasherPayload(g),c=yield this.hashPPIDs(l,t);return c?(this.cachePPIDs(l,c,null===(i=g.idfv)||void 0===i?void 0:i.plain,null===(o=g.anId)||void 0===o?void 0:o.plain),void this.setPPIDs(null!==(r=c.userId)&&void 0!==r?r:"",null!==(a=c.environmentId)&&void 0!==a?a:"",null===(s=g.idfv)||void 0===s?void 0:s.plain,null===(d=g.anId)||void 0===d?void 0:d.plain)):void this.setPPIDs("","")}this.setPPIDs(null!==(l=null==v?void 0:v.userId.hashed)&&void 0!==l?l:"",null!==(c=null==v?void 0:v.environmentId.hashed)&&void 0!==c?c:"",null===(u=null==g?void 0:g.idfv)||void 0===u?void 0:u.plain,null===(p=null==g?void 0:g.anId)||void 0===p?void 0:p.plain)})}getPPIDs(){var e,t;return null!==this.ppid1&&null!==this.ppid2||v("PPIDv3s accessed before they have been initialized"),{ppid1:null!==(e=this.ppid1)&&void 0!==e?e:"",ppid2:null!==(t=this.ppid2)&&void 0!==t?t:"",idfv:this.idfv,anId:this.anId}}setPPIDs(e,t,n,i){this.ppid1=null!=e?e:"",this.ppid2=null!=t?t:"",this.idfv=null!=n?n:null,this.anId=null!=i?i:null}shouldHash(e,t){var n,i;if(!e)return!0;for(const o in e){if((null===(n=e[o])||void 0===n?void 0:n.plain)!==(null===(i=t[o])||void 0===i?void 0:i.plain))return!0}return!1}cachePPIDs(e,t,n,i){const o=Object.assign(Object.assign({clientId:{plain:e.clientId},userId:{plain:e.userId,hashed:t.userId},environmentId:{plain:e.environmentId,hashed:t.environmentId},trackerType:{plain:e.trackerType},trackerVersion:{plain:e.trackerVersion}},n?{idfv:{plain:n}}:{}),i?{anId:{plain:i}}:{});S.set(oe,o)}hashPPIDs(e,t){return o(this,void 0,void 0,function*(){try{const n=new Headers({"Content-Type":"application/json"});return yield ie.post(t,n,e)}catch(e){return v("Error with hashing PPIDs",e),null}})}getNewPPIDs(e,t){return o(this,arguments,void 0,function*({clientId:e,instance:t},n){const i=yield((e,t)=>o(void 0,void 0,void 0,function*(){const n=yield e.getUserId();return n?`${ue[t]}:${n}`:null}))(t,n),r=yield(a=t,o(void 0,void 0,void 0,function*(){const e=yield a.getEnvironmentId();return e?`sdrn:schibsted:environment:${e}`:null}));var a;const s=window.advertory_idfv,d=window.advertory_anId;return Object.assign(Object.assign({clientId:{plain:e},userId:{plain:i},environmentId:{plain:r},trackerType:{plain:"Advertory"},trackerVersion:{plain:"1.0.0"}},s?{idfv:{plain:s}}:{}),d?{anId:{plain:d}}:{})})}createHasherPayload({clientId:e,trackerType:t,trackerVersion:n,userId:i,environmentId:o}){return{clientId:e.plain,trackerType:t.plain,trackerVersion:n.plain,userId:i.plain,environmentId:o.plain}}},he=e=>o(void 0,void 0,void 0,function*(){const{pulse:t,tcf:n,pageContext:{countryCode:i,isMobileApp:o}}=e;if(!(yield R(n,o,i,"setXandrPPIDs")))return;if(!t)return;(yield Promise.allSettled([ve.processPPIDs(t,null==n?void 0:n.timeout),ge.processPPIDs(t,i)])).forEach((e,t)=>{if("rejected"===e.status){v(`Cannot fetch PPIDs v${t+2}`,e.reason)}})}),me=e=>{const{ppid1:t,ppid2:n}=ve.getPPIDs(),{ppid1:i,ppid2:o,idfv:r,anId:a}=ge.getPPIDs();return{userIds:[{type:"extendedIDs",eids:(new pe).add(n,re[e]).add(t,ae[e]).add(o,se[e]).add(i,de[e]).add(r,le[e]).add(a,ce[e]).buildEids()}]}},fe=()=>{const{ppid1:e,ppid2:t}=ve.getPPIDs();return{"aa-sch-schuserhash":e?"1":"0","aa-sch-schenvhash":t?"1":"0"}},ye=e=>{const{ppid1:t,ppid2:n}=ve.getPPIDs(),{ppid1:i,ppid2:o,idfv:r,anId:a}=ge.getPPIDs();if(!n)return{};return{userSync:{userIds:[{name:"pubProvidedId",params:{eids:(new pe).add(n,re[e]).add(t,ae[e]).add(o,se[e]).add(i,de[e]).add(r,le[e]).add(a,ce[e]).buildRyEids()}}]}}},be=e=>{const{ppid1:t,ppid2:n}=ve.getPPIDs(),{ppid1:i,ppid2:o}=ge.getPPIDs(),r=(new pe).add(n,re[e]).add(t,ae[e]).add(o,se[e]).add(i,de[e]);return`${r.buildNorstatPath()}?${r.buildNorstatQuery("alias").toString()}`},we=e=>{const{ppid1:t,ppid2:n}=ve.getPPIDs(),{ppid1:i,ppid2:o}=ge.getPPIDs();return(new pe).add(n,re[e]).add(t,ae[e]).add(o,se[e]).add(i,de[e]).buildRyEids()},Ce=e=>o(void 0,void 0,void 0,function*(){const{ppid1:t,ppid2:n}=ve.getPPIDs(),{ppid1:i,ppid2:o}=ge.getPPIDs(),r=(new pe).add(n,re[e]).add(t,ae[e]).add(o,se[e]).add(i,de[e]);return yield new Promise(e=>{e(r.buildVideoEids())})}),Ie=()=>o(void 0,void 0,void 0,function*(){const{ppid1:e}=ge.getPPIDs();return e}),Ee=(e,...t)=>o(void 0,[e,...t],void 0,function*(e,{timeout:t}={timeout:1e3}){document.querySelector(`script[src="${e}"]:not([type="module"])`)||(yield new Promise((n,i)=>{const o=document.createElement("script");o.async=!0,o.src=e;const r=()=>{s(),n()},a=()=>{s(),i(new Error(`Failed to load ${e}`))},s=()=>{o.removeEventListener("load",r),o.removeEventListener("error",a),clearTimeout(d)};o.addEventListener("load",r),o.addEventListener("error",a);const d=setTimeout(()=>{s(),i(new Error(`Loading script timed out: ${e}`))},t);document.head.appendChild(o)}).catch(e=>{console.error(e)}))}),Te={ABSOLUTE_FULLSCREEN:"ABSOLUTE_FULLSCREEN",ANY_FULLSCREEN:"ANY_FULLSCREEN",NINESIXTEEN:"NINESIXTEEN",FULLWIDTH:"FULLWIDTH",FULLSQUARE:"FULLSQUARE",TAKEOVER:"TAKEOVER",VELVET_TAKEOVER:"VELVET_TAKEOVER",WALLPAPER:"WALLPAPER",COLLAPSE:"COLLAPSE"},Se={ANY_FULLSCREEN:[{width:6,height:6},{width:1920,height:1080},{width:3,height:3}],ABSOLUTE_FULLSCREEN:[{width:6,height:6}],NINESIXTEEN:[{width:1080,height:1920}],FIXED_FULLSCREEN:[{width:1920,height:1080},{width:3,height:3}],FULLWIDTH:[{width:5},{width:400,height:400}],FULLSQUARE:[{width:1080,height:1080}],NATIVE_AD:[{width:1,height:1}],TAKEOVER:[{width:4,height:4}],VELVET_TAKEOVER:[{width:7,height:7}],WALLPAPER:[{width:2,height:2}],COLLAPSE:[{width:2,height:1}]},Ae={wallpaper:1600,"l-format":1600},Oe=e=>{const{banner:t,targetId:n}=e;return!(!t||(null==n?void 0:n.includes("takeover")))&&Be(e,Te.ANY_FULLSCREEN)},xe=e=>{const{native:t}=e;return!!t},ke=e=>Be(e,Te.FULLWIDTH),Pe=e=>{const{targetId:t}=e;return t.includes("takeover")||Be(e,Te.TAKEOVER)},Le=e=>Be(e,Te.TAKEOVER),je=e=>Be(e,Te.WALLPAPER),_e=e=>Be(e,Te.COLLAPSE),$e=e=>e.targetId.includes("sponsorstripe"),Ne=e=>{const t=document.querySelector(`#${e}`);return!!t&&"true"===t.dataset.isFinnBlinkPlacement},qe=e=>e.targetId.startsWith("panorama")||e.targetId.startsWith("modul"),Fe=e=>e.targetId.startsWith("midboard"),Re=e=>e.targetId.includes("widescreen"),Me=e=>e.width>=1260&&e.width<=1280,De=e=>e.width>=1600&&e.width<=1620,Be=(e,t)=>{const n=Se[t];if(!n)return!1;return!!n.find(t=>{var n,i;const o=(null===(n=e.banner)||void 0===n?void 0:n.width)||e.width,r=(null===(i=e.banner)||void 0===i?void 0:i.height)||e.height,a=t.width===o,s=!t.height||t.height===r;return a&&s})},Ue="advertory-fullscreen-scroll",He="advertory-fullscreen-scroll-wrapper",We="fullscreen-scroll-in-screen",Ve="in-screen",ze=e=>e.includes("snoap.no"),Ke=e=>{var t,n,i,o,r;return!!(null===(r=null===(o=null===(i=null===(n=null===(t=window.apntag)||void 0===t?void 0:t.requests)||void 0===n?void 0:n.tags[e])||void 0===i?void 0:i.adResponse)||void 0===o?void 0:o.ads[1])||void 0===r?void 0:r.rtb)},Ge=(e,t=(...e)=>{})=>{const n=t.toString();if(0===e.length)return n;const i=n.substring(0,n.indexOf("=>")).replace("(","").replace(")","").split(",").map(e=>e.trim()),o=n.substring(n.indexOf("{")+1,n.lastIndexOf("}")),r=i.map((t,n)=>`${t} = "${e[n]}"`);return new Function(...r,o).toString()},Xe=Ge([],()=>{const e=({width:e,height:t})=>{var n;const i=null===(n=document.querySelector("#sf_align"))||void 0===n?void 0:n.querySelector("div");if(!i)return;const{clientWidth:o,clientHeight:r}=i,a=e/o,s=t/r;i.style.transform=`scale(${a},${s})`,i.style.transformOrigin="left top"},t=()=>{const{innerWidth:t,innerHeight:n}=window;e({width:t,height:n})};window.addEventListener("resize",t=>{if(!t.currentTarget)return;const n={width:innerWidth,height:innerHeight};e(n)});const n=window.frameElement;(null==n?void 0:n.contentWindow)?n.contentWindow.document.body.onload=t:document.body.onload=t}),Je=e=>{const t=Ge([],()=>{new MutationObserver((e,t)=>{document.querySelector("iframe")&&((()=>{const e=document.querySelector("iframe");e&&(e.onload=()=>{if(!e.contentDocument)return;document.body.style.height="100%",document.documentElement.style.height="100%",e.height="100%",e.width="100%";const t=e.contentDocument.createElement("style");t.textContent="\n adfm-ad {\n height: 100% !important;\n width: 100% !important;\n }\n ",e.contentDocument.head.appendChild(t);const n=e.contentDocument.querySelector("iframe");if(!(null==n?void 0:n.contentDocument))return;const i=n.contentDocument.createElement("style");i.textContent="\n #image {\n background-size: cover !important;\n }\n ",new MutationObserver((e,t)=>{n.contentDocument&&(n.contentDocument.head.appendChild(i),t.disconnect())}).observe(e.contentDocument,{childList:!0,subtree:!0})})})(),t.disconnect())}).observe(document.body,{childList:!0,subtree:!0})}),n=document.createElement("script");n.textContent=`(${t})()`;return e+n.outerHTML},Qe=e=>{if((e=>e.includes("google"))(e))return e;const t=document.createElement("div");t.innerHTML=e;const n=t.querySelector("img");if(!n)return e;n.style.width="100%",n.style.height="100%",n.style.objectFit="cover",n.style.position="fixed";return t.innerHTML},Ye=[],Ze={},et=(e,t)=>{var n;const i=(null===(n=null==t?void 0:t.options)||void 0===n?void 0:n.fadingHeaderEnabled)||!1,o=new IntersectionObserver(e=>tt(e,i),{}),r=it(e);o.observe(e),i&&(Ze[r]=at(e,null==t?void 0:t.options))},tt=(e,t)=>{e.forEach(({target:e,isIntersecting:n})=>{const i=it(e);n?(nt(i,n),ot(e,i,t)):(nt(i,n),rt(e,i,t))})},nt=(e,t)=>{var n,i;const o=null===(n=document.getElementById(e))||void 0===n?void 0:n.querySelector("iframe");if(!o)return;const r=t?"showFullscreen":"hideFullscreen";null===(i=o.contentWindow)||void 0===i||i.postMessage(`advertory:${r}-${e}`,"*")},it=e=>{var t;return null===(t=e.children[0])||void 0===t?void 0:t.id},ot=(e,t,n)=>{e.classList.add(Ve),document.body.classList.add(We),window.dispatchEvent(new CustomEvent("advertory:fullscreenScrollInView")),Ye.includes(t)||Ye.push(t),n&&window.addEventListener("scroll",Ze[t],{passive:!0})},rt=(e,t,n)=>{Ye.includes(t)&&(n&&window.removeEventListener("scroll",Ze[t]),document.body.classList.remove(We),e.classList.remove(Ve),window.dispatchEvent(new CustomEvent("advertory:fullscreenScrollNotInView")))},at=(e,t={fadingHeaderEnabled:!1,headerSelectors:[".js-masthead"],skyscraperSelectors:[".skyscraper_r"],headerZIndex:3})=>{const{headerSelectors:n=[".js-masthead"],skyscraperSelectors:i=[".skyscraper_r"],headerZIndex:o=3}=t,r=[],a=[];return n.forEach(e=>{var t;const n=null!==(t=document.querySelector(e))&&void 0!==t?t:document.querySelector("header");n&&r.push(n)}),i.forEach(e=>{const t=document.querySelector(e);t&&a.push(t)}),()=>{r.length&&st(e,r,o,0),a.length&&st(e,a,o,40)}},st=(e,t,n,i)=>{const o=e.offsetHeight,r=window.scrollY,a=e.getBoundingClientRect().top+r;t.forEach(e=>{const t=e.offsetHeight;let s;s=a>r?(a-r)/t-i:(r+t-(a+o))/t;const d=s<=0;e.style.visibility=d?"hidden":"",e.style.zIndex=d?"":n.toString(),e.style.pointerEvents=d?"none":"all",e.style.opacity=s.toString()})};function dt(e){if(!e||"undefined"==typeof window)return;const t=document.createElement("style");return t.setAttribute("type","text/css"),t.innerHTML=e,document.head.appendChild(t),e}dt('body.fullscreen-scroll-in-screen{overflow-x:hidden}.advertory-fullscreen-scroll-wrapper{visibility:hidden;overflow:visible;width:100vw !important;height:var(--advertory-fullscreen-scroll-vh, 100vh) !important;position:relative;margin:var(--advertory-fullscreen-scroll-wrapper-margin);z-index:1;display:block !important;min-height:250px;padding:0 !important;clip-path:polygon(0 0, 100vw 0, 100vw 100dvh, 0 100dvh);-webkit-clip-path:polygon(0 0, 100vw 0, 100vw 100dvh, 0 100dvh);flex-shrink:0}.advertory-fullscreen-scroll-wrapper>div{position:fixed;top:0;left:0;height:var(--advertory-fullscreen-scroll-vh, 100vh) !important;width:100vw !important;overflow:hidden}html[data-app-platform=iOS] .advertory-fullscreen-scroll-wrapper>div{height:calc(var(--advertory-fullscreen-scroll-vh, 100vh) - env(safe-area-inset-top) + var(--advertory-ios-safe-area-top-fix, 0px) - env(safe-area-inset-bottom)) !important;top:unset !important;bottom:env(safe-area-inset-bottom) !important}.advertory-fullscreen-scroll-wrapper>div>iframe{height:inherit !important;width:inherit !important;display:none !important}.advertory-fullscreen-scroll-wrapper.in-screen{visibility:visible;overflow:visible;width:100vw !important}.advertory-fullscreen-scroll-wrapper.in-screen>div>iframe{display:block !important}.advertory-fullscreen-scroll-wrapper.in-screen:before{content:"";width:100vw;height:150dvh;position:relative !important;display:block;transform:translateX(-50%);overflow:visible;z-index:1;left:50%;top:-150dvh;padding:0 !important}.advertory-fullscreen-scroll-wrapper.in-screen:after{content:"";width:100vw;height:150dvh;position:relative !important;display:block;transform:translateX(-50%);overflow:visible;z-index:1;left:50%;top:-50dvh}.advertory-fullscreen-scroll{position:fixed;top:var(--advertory-fullscreen-scroll-top, 0px);left:var(--advertory-fullscreen-scroll-left, 0px);width:var(--advertory-fullscreen-scroll-vw, 100vw);height:var(--advertory-fullscreen-scroll-vh, 100vh);overflow:hidden}.advertory-fullscreen-scroll:not([data-ad-label-custom])::before{text-transform:lowercase}.advertory-fullscreen-scroll::before{content:attr(data-ad-label);box-sizing:border-box;position:fixed;top:var(--advertory-political-box-offset, 0px)}html[data-app-platform=iOS] .advertory-fullscreen-scroll::before{top:calc(env(safe-area-inset-top) - var(--advertory-ios-safe-area-top-fix, 0px) + var(--advertory-political-box-offset, 0px)) !important}.advertory-fullscreen-scroll::before{left:calc(50vw - 628px);width:calc(100% - 36px);max-width:1250px;text-align:left;background-color:hsla(0,0%,100%,.6);color:#212121;font-family:Ester Blenda,Arial,sans-serif;font-size:11px;font-weight:400;font-style:normal;line-height:1;margin:16px 2px;padding:10px;z-index:1;visibility:inherit !important}@media screen and (max-width: 1290px){.advertory-fullscreen-scroll::before{left:16px}}.advertory-fullscreen-scroll[data-move-cogwheel-to-the-left=true]>div[role=button]{left:calc(50vw - 623px);right:unset}@media screen and (max-width: 1290px){.advertory-fullscreen-scroll[data-move-cogwheel-to-the-left=true]>div[role=button]{left:22px;right:unset}}.advertory-fullscreen-scroll[data-move-cogwheel-to-the-left=true]::before{padding-left:32px}.advertory-fullscreen-scroll>div[id*=utif]{display:block;width:var(--advertory-fullscreen-scroll-vw, 100vw) !important;height:var(--advertory-fullscreen-scroll-vh, 100vh) !important}html[data-app-platform=iOS] .advertory-fullscreen-scroll>div[id*=utif]{height:calc(var(--advertory-fullscreen-scroll-vh, 100vh) - env(safe-area-inset-top) + var(--advertory-ios-safe-area-top-fix, 0px) - env(safe-area-inset-bottom)) !important}.advertory-fullscreen-scroll>div[id*=utif]{overflow:hidden}.advertory-fullscreen-scroll>div[id*=utif]>iframe{display:block;height:inherit !important;width:inherit !important}.advertory-fullscreen-scroll>div[role=button]{z-index:2;opacity:1;background:rgba(0,0,0,0) !important;left:unset;position:fixed !important;right:calc(50vw - 623px);top:calc(19px + var(--advertory-political-box-offset, 0px)) !important;width:26px !important;height:26px !important}html[data-app-platform=iOS] .advertory-fullscreen-scroll>div[role=button]{top:calc(env(safe-area-inset-top) - var(--advertory-ios-safe-area-top-fix) + 19px + var(--advertory-political-box-offset, 0px)) !important}@media screen and (max-width: 1290px){.advertory-fullscreen-scroll>div[role=button]{right:22px}}');const lt="left",ct={no:{adText:"ANNONSE",adFrom:"ANNONSE FRA",adContent:"ANNONSØRINNHOLD",adContentFrom:"ANNONSØRINNHOLD FRA",sponsorstripeInfoOpenButtonLabel:"Sponset innhold - Klikk for detaljer",sponsorstripeInfoCloseButtonLabel:"Lukk",sponsorstripeInfoText:"Annonsøren som presenterer denne saken har betalt for profilering av logoen i artikler som omhandler denne innholdskategorien",readMoreLabel:"Les mer"},se:{adText:"ANNONS",adFrom:"ANNONS FRÅN",adContent:"EXTERN LÄNK",adContentFrom:"EXTERN LÄNK FRÅN",sponsorstripeInfoOpenButtonLabel:"Sponsrat innehåll - Klicka för mer information",sponsorstripeInfoCloseButtonLabel:"Nära",sponsorstripeInfoText:"Annonsören som presenterar den här artikeln har betalat för att få sin logotyp profilerad i artiklar som handlar om den här innehållskategorin",readMoreLabel:"Läs mer"}};let ut=null;const pt=(e,t)=>{let n=e;return n=(e=>{const t=document.createElement("script");return t.textContent="\n window.addEventListener('message', function(event) {\n if (event.data === 'advertory:showFullscreen-'+document.body.id) {\n document.body.style.display = \"block\";\n } else if (event.data === 'advertory:hideFullscreen-'+document.body.id) {\n document.body.style.display = \"none\";\n }\n });\n ",e+t.outerHTML})(e),n=(e=>{const t=document.createElement("script");return t.textContent=`(${Xe})()`,e+t.outerHTML})(n),n=Qe(n),n=(e=>{if(ze(e))return e;const t=document.createElement("style");return t.textContent="\n .GoogleActiveViewClass, .GoogleActiveViewElement {\n transform: translate(calc(-50% + 50vw), 0);\n width: 100vw !important;\n height: 100vh !important;\n }\n .GoogleActiveViewClass img, .GoogleActiveViewElement img {\n width: 100vw;\n height: 100vh;\n object-fit: cover;\n }\n .GoogleActiveViewClass iframe {\n width: 100vw !important;\n height: 100vh !important;\n }\n ",e+t.outerHTML})(n),(e=>e.includes("adform"))(n)&&(n=(e=>{const t=document.createElement("script");t.textContent='\n var frame = window.frameElement;\n if (frame) {\n frame.style.removeProperty("width");\n frame.style.removeProperty("height");\n frame.contentWindow.document.body.onload = onLoad;\n } else {\n document.body.onload = onLoad;\n }\n \n function onLoad() {\n var iframe = document.querySelector("adfm-ad iframe");\n if (iframe) {\n var image = iframe.contentWindow.document.getElementById("image");\n if (!image) return;\n image.style.backgroundSize = "cover";\n } else {\n var iframe = document.querySelector(".adform-adbox iframe");\n if (iframe) {\n var style = document.createElement("style");\n style.textContent = "#banner {width: 100% !important; height: 100% !important;} #banner img {object-fit: cover;}";\n iframe.contentDocument.body.append(style);\n iframe.style = "width: 100vw; height: 100vh;";\n } else {\n var observer = new MutationObserver(function(mutations, obs) {\n for (var mutation of mutations) {\n var iframe = mutation.addedNodes[0];\n if (iframe && iframe.nodeName === "IFRAME") {\n iframe.style = "width: 100vw; height: 100vh;";\n iframe.dataset.contents += "<style>#banner {width: 100% !important; height: 100% !important;} #banner img {object-fit: cover;}</style>";\n obs.disconnect();\n }\n }\n });\n observer.observe(document.body, { childList: true, subtree: true });\n }\n }\n }\n ';const n=document.createElement("style");return n.textContent="\n html, body, adfm-ad, #sf_align, .adform-adbox, .adform-adbox img {\n width: 100% !important;\n height: 100% !important;\n object-fit: cover;\n max-width: 100vw;\n }\n ",e+n.outerHTML+t.outerHTML})(n)),(e=>e.includes("529299503"))(n)&&(n=Je(n)),(e=>e.includes("de17a"))(n)&&(n=(e=>ze(e)?e:e.replace("<iframe ","<iframe onload=\"\n var f = document.querySelector('iframe');\n if (!f) return;\n var s = f.style;\n s.transform = 'scale(' + (window.innerHeight / Number(f.height)).toFixed(2) + ')';\n s.right = parseInt((Number(f.width) - window.innerWidth) / 2) + 'px';\n s.bottom = parseInt((Number(f.height) - window.innerHeight) / 2) + 'px';\n s.position = 'relative';\n \" "))(n)),ze(n)&&(n=(e=>{let t=e.replace("<html>",'<html style="height: 100%;">');return t=t.replace("</iframe>","</iframe><style>#sf_align {height: 100%;} #sf_align iframe {height: 100vh;}</style>"),t=t.replace('<body style="','<body style="height: 100%; '),t})(n)),(e=>e.includes("kreateam.io"))(n)&&(n=(e=>{let t=e.replace("<html>",'<html style="height: 100%;">');return t=t.replace("</div>","</div><style>#sf_align {height: 100%;} #sf_align iframe {height: 100vh;}</style>"),t=t.replace('<body style="','<body style="height: 100%; '),t})(n)),Ke(t)&&(n=(e=>{const t=document.createElement("script");t.textContent='var frame = window.frameElement;\n if (frame) {\n frame.style.width = "100vw";\n frame.style.height = "100vh";\n }';const n=document.createElement("div");return n.innerHTML=e,n.appendChild(t),n.innerHTML})(n)),n},vt=()=>{ut=null;const e=window.visualViewport,t=e?e.height:window.innerHeight,n=e?e.width:window.innerWidth,i=e?e.offsetLeft:0,o=document.documentElement;o.style.setProperty("--advertory-fullscreen-scroll-vh",`${t}px`),o.style.setProperty("--advertory-fullscreen-scroll-vw",`${n}px`),o.style.setProperty("--advertory-fullscreen-scroll-left",`${i}px`)},gt=()=>{ut||(ut=window.requestAnimationFrame(vt))},ht=(e,t)=>{var n,i,o,r,a;const{pageContext:{countryCode:s,deviceType:d}}=w.get(),{targetId:l}=e,c=null==t?void 0:t.options;document.documentElement.style.setProperty("--advertory-ios-safe-area-top-fix",null!==(n=null==c?void 0:c.iosSafeAreaTopFix)&&void 0!==n?n:"0px"),((e,t)=>{var n;const{articlesContainerWidth:i=1302,backgroundColor:o="#fff",foregroundColor:r="#fff",margin:a,beforeContentValue:s=""}=e,d=null!==(n=null==a?void 0:a[t])&&void 0!==n?n:"16px 0",l=i/2,c=document.createElement("style");c.innerHTML=`\n :root {\n --background: linear-gradient(\n to right,\n ${o} 0px,\n ${o} calc(50% - ${l}px),\n ${r} calc(50% - ${l}px),\n ${r} calc(50% + ${l}px),\n ${o} calc(50% + ${l}px),\n ${o} 100%\n ) !important;\n \n --advertory-fullscreen-scroll-wrapper-margin: ${d};\n }\n \n .advertory-fullscreen-scroll-wrapper {\n ${s&&"clip-path: polygon(0 -16px, 100vw -16px, 100vw 100dvh, 0 100dvh);\n -webkit-clip-path: polygon(0 -16px, 100vw -16px, 100vw 100dvh, 0 100dvh);"}\n }\n\n .advertory-fullscreen-scroll-wrapper:before, .advertory-fullscreen-scroll-wrapper:after {\n background: var(--background);\n content: '${s}' !important;\n }`,c.id="ad-fullscreen-scroll-wrapper-style",document.head.appendChild(c)})(null!==(i=null==c?void 0:c.overlayStyles)&&void 0!==i?i:{},d);const u=document.getElementById(l),p=null==u?void 0:u.parentElement;if(!u||!p)return;et(p,t),u.className=Ue,et(p,t),u.className="advertory-fullscreen-scroll";const v=Be(e,Te.ABSOLUTE_FULLSCREEN)?"absolute":"fixed";u.style.position=v,p.className=He,p.dataset.showTagSubscribeId=l,u.setAttribute("data-ad-label",null!==(o=null==c?void 0:c.annonsLabel)&&void 0!==o?o:ct[s].adText),(null==c?void 0:c.annonsLabel)&&(u.dataset.adLabelCustom="true"),(null==c?void 0:c.cogwheelPosition)===lt&&(u.dataset.moveCogwheelToTheLeft="true"),gt(),window.addEventListener("resize",gt),null===(r=window.visualViewport)||void 0===r||r.addEventListener("resize",gt),null===(a=window.visualViewport)||void 0===a||a.addEventListener("scroll",gt)},mt=e=>{if(!(null==e?void 0:e.classList.contains(Ue)))return;e.classList.remove(Ue),e.removeAttribute("style"),e.removeAttribute("data-ad-label"),e.removeAttribute("data-ad-label-custom");const t=e.parentElement;(null==t?void 0:t.classList.contains(He))&&(t.classList.remove(He),t.classList.remove(Ve))};var ft=Object.freeze({__proto__:null,createFullscreenScrollAd:ht,modifyFullscreenScrollAd:({targetId:e})=>{const t=(e=>{var t;const{requests:n}=window.apntag,i=Ke(e)?1:0;return null===(t=null==n?void 0:n.tags[e].adResponse.ads[i].rtb)||void 0===t?void 0:t.banner.content})(e);if(!t)return;((e,t)=>{const{requests:n}=window.apntag,i=Ke(e)?1:0,o=null==n?void 0:n.tags[e].adResponse.ads[i].rtb;o&&(o.banner.content=t)})(e,pt(t,e))},undoFullscreenScrollContainer:mt});const yt=e=>{var t;!document.querySelector(`#gdprAdTransparencyCogWheelButton-${e}`)&&(null===(t=window.gdpr)||void 0===t?void 0:t.setupButton)&&window.gdpr.setupButton(e)},bt=(e,t,n)=>{var i,o,r,a;const s=document.createElement("div");s.id=`${e}-button`,t.appendChild(s);(null===(o=null===(i=window.apntag.requests)||void 0===i?void 0:i.tags[e])||void 0===o?void 0:o.adResponse)||(null!==(r=(a=window.apntag).requests)&&void 0!==r||(a.requests={tags:{}}),window.apntag.requests.tags[e]=Object.assign(Object.assign({},window.apntag.requests.tags[e]),{adResponse:{ads:[{creative_id:n}]}})),yt(e);const d=s.firstElementChild;d&&t.insertBefore(d,s),s.remove()},wt="ad-loaded",Ct="disable-cogwheel",It=()=>null!==k("disable_prebid"),Et="0123456789abcdefghijklmnopqrstuvwxyz",Tt=(e=6)=>{if(e<=0)return"";let t="";for(let n=0;n<e;n++){t+=Et[Math.floor(36*Math.random())]}return t},St=(e,t)=>{let n=null;return(...i)=>{null===n&&(e(...i),n=setTimeout(()=>{n=null},t))}},At=new Promise(e=>{"undefined"!=typeof document&&document.prerendering?document.addEventListener("prerenderingchange",()=>e()):e()}),Ot=new Promise(e=>{if("undefined"==typeof document||!document.hidden)return void e();const t=()=>{document.hidden||(document.removeEventListener("visibilitychange",t),e())};document.addEventListener("visibilitychange",t,{once:!0})}),xt=(e,t,n)=>o(void 0,void 0,void 0,function*(){yield At,yield Ot;new IntersectionObserver((t,i)=>{t.filter(({isIntersecting:e})=>e).forEach(()=>{n(),i.unobserve(e),i.disconnect()})},{rootMargin:`${t}px 0px ${t}px 0px`}).observe(e)}),kt=()=>o(void 0,void 0,void 0,function*(){const{prebid:e,tcf:t,pageContext:{countryCode:n,isMobileApp:i,deviceType:o},fullscreenScroll:r,appearanceConfig:a,placements:s}=w.get();if(!(null==e?void 0:e.enabled))return;const{initNativeAd:d}=w.getHandlers(),{getConsentAsync:l}=F(t,0,n),c=yield l(),u=(()=>{let e=!1,t=[];const n={relevantCb:{timeout:1e3},auctionCb:{timeout:2e3}};return{getCancel:()=>e,setCancel:t=>{e=t},events:n,failsafeOnTimeout:i=>{const o=Q(),{prebid:{relevantCallbackTimeout:r}={}}=w.get(),a="relevantCb"===i&&r?r:n[i].timeout,s=setTimeout(()=>{!n[i].done&&!e&&(console.warn(`Doing failsafe loadTags() call after waiting too long for '${i}'`),e=!0,o.loadTags&&o.loadTags())},a);t.push(s)},cleanup:()=>{t.forEach(e=>clearTimeout(e)),t=[],e=!1,n.relevantCb.done=!1,n.auctionCb.done=!1}}})(),p=Q(),g=(()=>{const{requests:{user:e={userIds:[]},keywords:t={}}={}}=Q();return{user:e,keywords:t}})();u.failsafeOnTimeout("relevantCb");const{user:{externalUid:h=""}={},keywords:m}=g;Z().push(()=>{v("prebid relevantYieldQueue callback fired - RY took over");if(u.getCancel()||!p.loadTags)return v("core loadTags() call was cancelled",{cancel:u.getCancel(),apnTagLoadTags:!p.loadTags,condition:"or"}),void u.cleanup();const t=Y();u.events.relevantCb.done=!0,u.failsafeOnTimeout("auctionCb");const l=c?{gdpr:{cmpApi:"iab",timeout:8e3}}:{cmpApi:"none"};v("prebid consentManagement",l),t.addPrebidConfig(Object.assign(Object.assign({consentManagement:l,enableSendAllBids:!1},ye(n)),ee(m,h))),v("core add prebid config",Object.assign(Object.assign({consentManagement:l,enableSendAllBids:!1},ye(n)),ee(m,h))),t.loadPrebid({configId:e.configId,manageAdserver:!1,collapseEmptyDivs:!1,collapseBeforeAdFetch:!1,noGpt:!0,noSlotReload:!0,loadUnknownSlots:!0,apntagCalls:{showTag:()=>{},loadTags:e=>{v("prebid auctionCb loadTags called by RY - prebid hands off to Xandr",{targetIds:e,cancelled:u.getCancel()}),u.getCancel()||(u.events.auctionCb.done=!0,p.loadTags(e)),u.cleanup()}},customNativeRender:e=>{Pt(e,d)},directRenderFn:e=>{var t,n,d;const{settings:l,renderFn:c}=e,{bid:u,adDiv:p}=l||{};if(!p)return;const g=p.id,h=document.getElementById(g);if(!h)return;const m=null===(t=null==s?void 0:s[o])||void 0===t?void 0:t.find(e=>e.targetId===g),f=null!==(d=null!==(n=null==m?void 0:m.requestThreshold)&&void 0!==n?n:null==a?void 0:a.defaultThreshold[o])&&void 0!==d?d:0,y=Object.assign(Object.assign({},u),{targetId:g,banner:!0});v("prebid directRenderFn ad info",{targetId:g,width:null==u?void 0:u.width,height:null==u?void 0:u.height,adId:null==u?void 0:u.adId,creativeId:null==u?void 0:u.creativeId}),xt(h,f,()=>{var e;const t=c(l),n=Oe(y);if(v("prebid directRenderFn isFullscreenScrollAd",{targetId:g,isFullscreen:n,width:null==u?void 0:u.width,height:null==u?void 0:u.height}),n)v("prebid directRenderFn: creating fullscreen scroll container",{targetId:g}),ht(y,r),(e=>{const t=()=>{const t=e.contentDocument;if(!(null==t?void 0:t.body))return;const n=()=>{const e=t.querySelector("iframe");if(!e)return!1;const n=()=>{var t;const n=null===(t=e.contentDocument)||void 0===t?void 0:t.querySelector(".adn-ttpa-container");n&&(n.style.setProperty("bottom","10px","important"),n.style.setProperty("top","unset","important"))};return e.addEventListener("load",n),n(),!0};if(n())return;const i=new MutationObserver(()=>{n()&&i.disconnect()});i.observe(t.body,{childList:!0,subtree:!0})};e.addEventListener("load",t),t()})(t),i&&h.style.setProperty("--advertory-political-box-offset","30px");else{v("prebid directRenderFn: NOT fullscreen scroll - undoing container",{targetId:g}),mt(h),null===(e=null==h?void 0:h.parentElement)||void 0===e||e.classList.add("advertory-direct-render");const n=t.getAttribute("width");n&&(h.style.width=`${n}px`)}h.classList.add(wt),(null==u?void 0:u.creativeId)&&bt(g,h,Number(null==u?void 0:u.creativeId))})}}),v("core load prebid",{configId:e.configId,manageAdserver:!1,collapseEmptyDivs:!1,collapseBeforeAdFetch:!1,noGpt:!0,noSlotReload:!0,loadUnknownSlots:!0,apntagCalls:{showTag:()=>{},loadTags:e=>{u.getCancel()||(u.events.auctionCb.done=!0,p.loadTags(e))}},customNativeRender:e=>{Pt(e,d)},directRenderFn:()=>{}})})}),Pt=(e,t)=>{var n;const{divId:i,native:o,bid:r}=e,a=document.querySelectorAll(`[id^=${i}]`)[0],s=`RY-${a.id}`;((e,t)=>{e.childNodes.forEach(e=>e.style.cssText="position: absolute; z-index: -1;");const n=document.createElement("div");n.setAttribute("id",t),e.appendChild(n)})(a,s);const d=null===(n=a.getElementsByTagName("iframe")[0])||void 0===n?void 0:n.contentWindow;null==t||t({native:o,targetId:s},w.get()),null==d||d.postMessage(JSON.stringify({message:"Prebid Response",ad:"\x3c!-- nothing --\x3e",adId:r.adId}),"*")};let Lt=e=>{window.apntag.anq.push(e)};const jt=e=>{Lt=e},_t=e=>{Lt(e)},$t=e=>{const t=encodeURIComponent(e).replace(/[-.+*]/g,"\\$&"),n=new RegExp(`(?:(?:^|.*;)\\s*${t}\\s*\\=\\s*([^;]*).*$)|^.*$`);return decodeURIComponent(document.cookie.replace(n,"$1"))||null},Nt=e=>o(void 0,void 0,void 0,function*(){const{tcf:t,pageContext:{isMobileApp:n,countryCode:i}={}}=e,{getConsentAsync:o}=F(t,0,i);if(!(yield o()))return;const r=$t("_pulse2data");return r?r.split(",")[9]:void 0}),qt={SPLASH:"splash",WELCOME_PAGE:"welcomePage",TOPSCROLLER:"topscroller",VELVET:"velvet"},Ft="takeover-displayed",Rt="takeover-visit-count",Mt=14400,Dt=()=>{const e=$t(Rt);return e?parseInt(e):0},Bt=()=>{const e=Dt(),{takeover:{options:{cookieCapTime:t=Mt}={}}={}}=w.get(),n=document.location.hostname;window.document.cookie=`${Rt}=${e+1}; max-age=${t}; domain=${n}; path=/; SameSite=Lax`},Ut=()=>{const{takeover:{enabled:e=!1,options:{secondVisitEnabled:t=!1}={}}={}}=w.get();return"0"!==k(P)&&("1"===k(P)||!(!e||(()=>{var e,t;const n=(null===(t=null===(e=w.get().takeover)||void 0===e?void 0:e.options)||void 0===t?void 0:t.cookieCapName)||Ft;return"true"===$t(n)})())&&(!t||Ht()))},Ht=()=>{const e=Dt();return 0===e?(Bt(),!1):1===e},Wt=(e,t)=>[[1,1],[1920,1080]].some(([n,i])=>n===e&&i===t),Vt=()=>{const{takeover:e}=w.get();return Boolean(null==e?void 0:e.topscroller)},zt=e=>{const{width:t,height:n}=e;return Wt(t,n)?qt.SPLASH:Be(e,Te.VELVET_TAKEOVER)?qt.VELVET:Vt()?qt.TOPSCROLLER:qt.WELCOME_PAGE},Kt=()=>o(void 0,void 0,void 0,function*(){const e=document.location.hostname,{takeover:{options:{cookieCapName:t=Ft,cookieCapTime:n=Mt}={}}={},pageContext:{isMobileApp:i,countryCode:o},tcf:r}=w.get(),a=yield R(r,i,o,"ad-takeover-cookiecap");n&&a&&(window.document.cookie=`${t}=true; max-age=${n}; domain=${e}; path=/`)}),Gt=e=>{var t,n;const i=!!(null===(n=null===(t=w.get().takeover)||void 0===t?void 0:t.options)||void 0===n?void 0:n.setCookieCapForNotShownAd);return Pe(e)&&i},Xt=(e,t)=>{var n;if(t===qt.TOPSCROLLER){const{topscroller:t}=e;return null!=t?t:{}}if(t===qt.SPLASH){const{splash:t}=e;return null!=t?t:{}}return null!==(n=e.welcomePage)&&void 0!==n?n:{}},Jt=(e,t)=>{t!==qt.SPLASH?(e=>{var t,n;const i=null===(t=w.get().pageSectionsSelectors)||void 0===t?void 0:t.header,o=null===(n=w.get().takeover)||void 0===n?void 0:n.topscroller;if(!i||o)return;const r=document.querySelector(i),a=document.querySelector(".welcome-page-wrapper"),s=document.querySelector(`#${e.targetId}`),d=document.querySelector(".advertory-welcome-page-scroll");if(!(r&&a&&d&&s))return;const l=null==r?void 0:r.offsetHeight,c=Le(e)?"60svh":`calc(100svh - ${l}px)`,u=Le(e)?"calc(40svh + 30px)":`calc(${l}px + 30px)`;a.style.setProperty("height",c,"important"),s.style.setProperty("height",c,"important"),d.style.setProperty("bottom",u,"important")})(e):(e=>{var t;if(!(null===(t=w.get().takeover)||void 0===t?void 0:t.splash))return;const n=document.querySelector(".advertory-splash-navbar-wrapper"),i=document.querySelector(`#${e.targetId}`);if(!n||!i)return;const o=`calc(100svh - ${n.offsetHeight}px)`;i.style.setProperty("height",o,"important")})(e)},Qt=Ge([],()=>{new MutationObserver((e,t)=>{document.querySelector("iframe")&&((()=>{const e=document.querySelector("iframe");e&&(e.onload=()=>{if(!e.contentDocument)return;document.body.style.height="100%",document.documentElement.style.height="100%",e.height="100%",e.width="100%";const t=e.contentDocument.createElement("style");t.textContent="\n .adform-adbox {\n height: 100% !important;\n width: 100% !important;\n }\n img {\n height: 100% !important;\n width: 100% !important;\n object-fit: cover !important;\n object-position: top !important;\n }\n ",e.contentDocument.head.appendChild(t)})})(),t.disconnect())}).observe(document.body,{childList:!0,subtree:!0})});var Yt=Object.freeze({__proto__:null,addTakeoverCookie:Kt,adjustTakeoverHeight:Jt,canDisplayTakeover:Ut,getProperWelcomePageConfig:Xt,getTakeoverVariant:zt,handleTakeoverCookieOnAdNotShown:e=>o(void 0,void 0,void 0,function*(){Gt(e)&&(yield Kt())}),incrementArticleVisitCount:Bt,isSplashVariant:Wt,isTopscroller:Vt,scaleAd:Qt,shouldAddTakeoverCookieForNotShownAd:Gt});const Zt=e=>`externalImpId:'${e}'`,en=(e,t)=>t?Object.assign(Object.assign({},e),{"aa-sch-ssa-native-ad":"true","aa-sch-ssa-format":"NATIVE_CONTENT","aa-sch-ssa-market":"XNO","aa-sch-ssa-cat":["ssa_1","ssa_2","ssa_3","ssa_4","ssa_5","ssa_6","ssa_7","ssa_8","ssa_9","ssa_10","ssa_11","ssa_12","ssa_13","ssa_14","ssa_15","ssa_16","ssa_17","ssa_18","ssa_19","ssa_20","ssa_21","ssa_22","ssa_23","ssa_24","ssa_25","ssa_26","ssa_27","ssa_28","ssa_29","ssa_30"]}):e,tn=e=>{var t;const{pageSetup:{tag:{forwardExternalImpId:n=!1}={}}={},pulse:i}=w.get(),{targetId:o,sizes:r,keywords:a,allowedFormats:s,invCode:d,ssaNativeAdEnabled:l=!1,nativeCustomProperties:c,safeframeConfig:u,dynamicSizeWidthCheck:p=!1,globalPlacementId:g}=(e=>{var t;if(!e.takeoverCookieCapForSharedPlacement||Ut())return e;const n=null===(t=e.keywords)||void 0===t?void 0:t["no-sno-adformat"],i=Array.isArray(n)?n.filter(e=>e!==qt.TOPSCROLLER):n,o=Object.assign(Object.assign({},e.keywords),n&&{"no-sno-adformat":i}),r=e.sizes.filter(([e,t])=>4!==e||4!==t);return Object.assign(Object.assign({},e),{sizes:r,keywords:o})})(e),h=Object.assign({invCode:d,sizes:r,targetId:o,keywords:en(a,l),allowedFormats:s,dynamicSizeWidthCheck:p,globalPlacementId:g},u&&{safeframeConfig:u}),m=(e=>{var t,n;const i=null===(n=null===(t=null==e?void 0:e.instance)||void 0===t?void 0:t.state)||void 0===n?void 0:n.pageViewId;return i?(v("Pulse state pageViewId is:",i),i):(v("Pulse state does not contain field pageViewId or it is empty"),"")})(i);n&&m&&(v("External Impression ID assigned to defineTag:",Zt(m)),h.externalImpId=Zt(m));const f=(e=>Object.entries({video:{required:!1},address:{required:!1},saleprice:{required:!1},rating:{required:!1},price:{required:!1},phone:{required:!1},likes:{required:!1},downloads:{required:!1},customIcon1:{required:!1},customIcon2:{required:!1},customDisplayUrl1:{required:!1},customBody1:{required:!1},customBody2:{required:!1},customBody3:{required:!1},customBody4:{required:!1},customBody5:{required:!1}}).reduce((t,[n,i])=>((null==e?void 0:e.includes(n))&&(t[n]=i),t),{customTitle1:{required:!1},customTitle2:{required:!1},customTitle3:{required:!1},customTitle4:{required:!1},customDisplayUrl2:{required:!1},title:{required:!1},body:{required:!1},image:{required:!1},icon:{required:!1},sponsoredBy:{required:!1},cta:{required:!1},clickUrl:{required:!1},desc2:{required:!1},displayUrl:{required:!1},description:{required:!1}}))(c);return(null===(t=e.allowedFormats)||void 0===t?void 0:t.includes("native"))&&(h.native=f),h},nn=e=>!e.includes("takeover")||Ut(),on={nativeAd:e=>xe(e)&&!$e(e),buyrecipe:e=>e.targetId.startsWith("buyrecipe"),fullwidthAd:ke,fullscreenScroll:Oe,topscroller:e=>Pe(e)&&Vt(),splash:e=>Pe(e)&&Wt(e.width,e.height),welcomePage:Pe,wallpaper:je,skyscraper:e=>e.targetId.includes("skyscraper")&&!!e.banner,lFormat:Me,hFormat:De,toppanorama:e=>e.targetId.startsWith("toppanorama")&&!De(e)&&!Me(e),topboard:e=>e.targetId.startsWith("topboard")&&!Pe(e),widescreen:Re,insider:e=>e.targetId.startsWith("insider"),sponsorstripe:$e,brandboard:e=>(e=>(980===e.width||1920===e.width&&e.targetId.includes("brandboard"))&&!e.targetId.includes("topboard")&&!e.targetId.includes("companion")&&!qe(e))(e)&&!(e=>e.targetId.includes("backfill"))(e)&&!Fe(e),outstream:e=>"https://acdn.adnxs.com/video/outstream/ANOutstreamVideo.js"===e.renderer_url,netboard:e=>(e=>e.targetId.startsWith("netboard"))(e)||(e=>e.targetId.startsWith("board"))(e),panorama:qe,midboard:Fe},rn=({adObj:e,preferredTestIdData:t})=>{var n,i;const o=null!==(n=null==t?void 0:t.targetId)&&void 0!==n?n:null==e?void 0:e.targetId;if(!o)return;const r=null===(i=document.querySelector(`#${o}`))||void 0===i?void 0:i.parentElement;if(!r)return;if(((e,t)=>{var n,i,o,r;const a=null===(r=null===(o=null===(i=null===(n=window.apntag)||void 0===n?void 0:n.requests)||void 0===i?void 0:i.tags)||void 0===o?void 0:o[e])||void 0===r?void 0:r.invCode;a&&(t.dataset.invCode=a)})(o,r),null==t?void 0:t.testId)return void(r.dataset.testid=t.testId);const a="DIV"===(null==r?void 0:r.tagName);e&&a&&((e,t)=>{var n,i;for(const[o,r]of Object.entries(on))if(r(e)){if("nativeAd"===o){const r="default";t.dataset.testid=`${o}-${null!==(i=null===(n=null==e?void 0:e.native)||void 0===n?void 0:n.desc2)&&void 0!==i?i:r}`;break}t.dataset.testid=o;break}})(e,r)},an=e=>{var t;return(null===(t=Object.entries(on).find(([,t])=>t(e)))||void 0===t?void 0:t[0])||""},sn=e=>{const t=e.split("-"),n=t[t.length-1];return 6===n.length&&n.match(/^[a-zA-Z0-9]+$/)?t.slice(0,-1).join("-"):e},dn=e=>{if(!e)return e;const{pageContext:{countryCode:t}}=w.get(),n=z(t),i=e[`${n}-targetid`],o=i?sn(i[0]):"";return Object.assign(Object.assign({},e),i&&{[`${n}-targetid`]:[o]})},ln=e=>{const{pageContext:{countryCode:t}}=w.get(),n=z(t);return Object.assign(Object.assign(Object.assign(Object.assign({},e),e[`${n}-geo`]&&{[`${n}-geo`]:["geo-test-value"]}),e[`${n}-geofence`]&&{[`${n}-geofence`]:["geofence-test-value"]}),e[`${n}-weather`]&&{[`${n}-weather`]:["weather-test-value"]})},cn=e=>{(e=>{const t=new URLSearchParams(window.location.search);if("true"!==t.get("scrollToFirstInvCode"))return;const n=t.get("ast_override_inv_code");if(!n)return;const i=n.split(",")[0].split(":")[0],o=e.find(e=>e.invCode===i),r=document.querySelector(`[id^=${null==o?void 0:o.targetId}]`);r&&r.scrollIntoView({behavior:"smooth",block:"start"})})(e)},un=e=>{const{source:t}=e;return"csm"===t},pn="advertory-wallpaper-background",vn="advertory-with-horseshoe",gn=()=>{const e=document.querySelector(`.${pn}`);e&&e.remove()},hn=e=>{const t=e.getBoundingClientRect().top;requestAnimationFrame(()=>(e=>{if(!document.body)return;const t=document.querySelector(`.${pn}`);t&&t.style.setProperty("top",`${e}px`)})(t+15))},mn=/^wallpaper:url:(http[s]?:\/\/)?[^\s(["<,>]*\.[^\s[",><]*/,fn=e=>mn.test(e),yn=e=>e.startsWith("wallpaper:color:"),bn=e=>{const t=document.querySelector(`.${pn}`);t&&(t.style.backgroundImage=`url(${e})`)},wn=e=>{const t=document.querySelector(`.${pn}`);t&&(t.style.backgroundColor=e)};var Cn=Object.freeze({__proto__:null,adjustAdToHorseshoe:e=>{var t;const n=document.querySelector(`#${e}`);n&&(null===(t=n.parentElement)||void 0===t||t.classList.add(vn),n.classList.add(vn))},initWallpaperAd:(e,t)=>{if(!t)return;const{options:{wallpaperAnchorSelector:n}={}}=t;(()=>{gn();const e=document.createElement("div");e.classList.add(pn),document.body.appendChild(e),e.style.setProperty("position","fixed"),e.style.setProperty("width","100%"),e.style.setProperty("height","calc(100% - var(--advertory-header-height, 0px) - 15px)"),e.style.setProperty("background-position","center top"),e.style.setProperty("background-repeat","no-repeat")})(),(e=>{const t=e||".advertory-wrapper-common-skyscraperleft_1",n=document.querySelector(t);n&&(hn(n),window.addEventListener("scroll",()=>hn(n)))})(n),e()},isShortWallpaperColorMessage:yn,isShortWallpaperUrlMessage:fn,removeWallpaperBackground:gn,setWallpaperBackgroundColor:wn,setWallpaperBackgroundImage:bn});const In=e=>{if("0"===k("collapse_ad"))return;const t=document.querySelector(`div[id^="${e}"]`);if(!t)return;const n=t.parentElement;n&&(t.style.setProperty("width","0","important"),t.style.setProperty("height","0","important"),t.style.setProperty("display","none","important"),n.style.setProperty("display","none","important"),e.includes("wallpaper")&&gn())},En=e=>{const t=document.querySelector(`div[id^="${e}"]`);if(!t)return;const n=t.parentElement;n&&(t.style.removeProperty("width"),t.style.removeProperty("height"),t.style.removeProperty("display"),n.style.removeProperty("display"))},Tn=e=>{const t=document.querySelector(`#${e}`);t&&(t.style.minWidth="",t.style.minHeight="")},Sn=e=>{var t;const n=null===(t=document.querySelector(`#${e}`))||void 0===t?void 0:t.parentElement,i=(null==n?void 0:n.offsetHeight)||0;n&&(n.style.minHeight=`${i}px`)},An=/_\d+$/,On=e=>e.replace(An,"");let xn="";const kn=new Map,Pn=e=>{const{pageSetup:{tag:t}={}}=w.get();return(null==t?void 0:t.includeCountingKeywordInTags)?(xn!==window.location.pathname&&(kn.clear(),xn=window.location.pathname),e.map(e=>{var t;const n=On(e.invCode),i=null!==(t=kn.get(n))&&void 0!==t?t:0;return e.keywords=Object.assign({},e.keywords),e.keywords[`${(()=>{const{pageContext:{countryCode:e,publisher:t}}=w.get();return`${e}-${t}`})()}-count`]=i,kn.set(n,i+1),e})):e},Ln=e=>{const{siteSpecificConfig:t,editory:{editoryUrl:n,editableConfiguration:{pageTypeToFetch:i}={}}={}}=e;if(!(null==t?void 0:t.publisherClassName)||!i)return null;return`${n||"https://inv-platform-cdn.inventory.schibsted.io"}/editory/editable-configurations/${t.publisherClassName}/${i.toLowerCase()}.json`};const jn=new class{constructor(){this.requestToken=0,this.cacher=(()=>{const e=new Map;return{get:t=>e.get(t),set:(t,n)=>{e.set(t,n)},delete:t=>{e.delete(t)}}})()}shouldFetchEditableConfig(e){const{editory:{editableConfiguration:{enabled:t=!1,pageTypeToFetch:n}={}}={},siteSpecificConfig:i}=e;return Boolean(t&&n&&(null==i?void 0:i.publisherClassName))}captureLocalSiteConfig(e){return this.localSiteConfig=Object.assign({},e),this.localSiteConfig}fetchEditableConfig(e){return o(this,void 0,void 0,function*(){const t=Ln(e);if(!t)return null;let n=this.cacher.get(t);return n||(n=(e=>o(void 0,void 0,void 0,function*(){const t=Ln(e);if(!t)return null;try{return yield ie.get(t,{timeout:5e3})}catch(e){throw v("Failed to fetch S3 config",{error:e,url:t}),e}}))(e).catch(e=>{throw this.cacher.delete(t),e}),this.cacher.set(t,n)),n})}resolveRemoteConfig(e,t){var n,o,r;const a=((e,t)=>{const{sections:n}=e,o=i(e,["sections"]),r=t?null==n?void 0:n[t]:void 0;return r?c(o,r):o})(t,null!==(r=null===(o=null===(n=e.editory)||void 0===n?void 0:n.editableConfiguration)||void 0===o?void 0:o.section)&&void 0!==r?r:(()=>{const[e]=window.location.pathname.split("/").filter(Boolean);return e})());return((e,t)=>c(t,e))(e,a)}getConfig(e){return o(this,void 0,void 0,function*(){const t=this.captureLocalSiteConfig(e);if(!this.shouldFetchEditableConfig(t))return t;try{const e=yield this.fetchEditableConfig(t);return e?this.resolveRemoteConfig(t,e):t}catch(e){return v("Error fetching S3 config, using site config",{error:e}),t}})}resolveUpdatedConfig(e){return o(this,void 0,void 0,function*(){var t,n,i,o;if(!this.localSiteConfig)return;if(f(this.localSiteConfig,null!=e?e:{}),!this.shouldFetchEditableConfig(this.localSiteConfig))return;const r=null===(n=null===(t=this.localSiteConfig.editory)||void 0===t?void 0:t.editableConfiguration)||void 0===n?void 0:n.pageTypeToFetch,a=++this.requestToken;try{const e=yield this.fetchEditableConfig(this.localSiteConfig);if(a!==this.requestToken||(null===(o=null===(i=this.localSiteConfig.editory)||void 0===i?void 0:i.editableConfiguration)||void 0===o?void 0:o.pageTypeToFetch)!==r)return;if(!e)return;return this.resolveRemoteConfig(this.localSiteConfig,e)}catch(e){return void v("Error fetching updated S3 config, keeping current config",{error:e})}})}},_n=jn.getConfig.bind(jn),$n=jn.resolveUpdatedConfig.bind(jn),Nn=e=>{const t=e.parentElement;if(!e||!t)return;const{container:n,wrapper:i}=(e=>{const t=E.getData("initialClassNames")[e.id];return{wrapper:(null==t?void 0:t.wrapper)?t.wrapper.join(" "):"",container:(null==t?void 0:t.container)?t.container.join(" "):""}})(e);e.className=n,t.className=i},qn=()=>{gn();const e=document.querySelectorAll('[data-advertory-ad-rendered="true"]'),t=[];return e.forEach(e=>{In(e.id),Nn(e),(e=>{const t=document.querySelector(`#${e}`),n=null==t?void 0:t.getAttribute("data-probable-height"),i=null==t?void 0:t.getAttribute("data-probable-width");n&&i&&(null==t||t.style.setProperty("min-height",n+"px"),null==t||t.style.setProperty("min-probable-width",i+"px"))})(e.id),e.innerHTML="",e.id=sn(e.id),t.push(e.id)}),_t(()=>window.apntag.clearRequest()),t},Fn=()=>{E.setData("wallpaper",{isAvailable:!1}),E.setData("horseshoe",{isAvailable:!1})},Rn=e=>o(void 0,void 0,void 0,function*(){const t=yield $n(e);var n;t?(w.set(t),n=t,window.advertory&&(window.advertory.siteConfig=n,window.advertory.alertoryConfig&&(window.advertory.alertoryConfig.advertory.placements=n.placements))):C(null!=e?e:{})}),Mn="mobile",Dn="tablet",Bn="desktop",Un="web_desktop",Hn="web_phone",Wn="wde",Vn="wph",zn="noGroupedPlacements",Kn=e=>{const t=e.replace(/[0-9]/g,"");return"_"===t.slice(-1)?t.substring(0,t.length-1):t},Gn=e=>{if(!(null==e?void 0:e.minViewWidth))return!0;return window.innerWidth>=e.minViewWidth},Xn=e=>{var t;if(!(null===(t=null===window||void 0===window?void 0:window.advertory)||void 0===t?void 0:t.initialized))return[];const{placements:n,queryConfig:i,pageContext:{deviceType:o}}=w.get(),r=((e,t)=>{var n;const i=null!==(n=e[t])&&void 0!==n?n:[];return t===Dn&&0===i.length?e[Bn]:i})(n,o),a=r.filter(Gn),s=e?document.querySelector(e):document;if(!s)return[];const d=a.reduce((e,t)=>{const n=Kn(t.targetId);return!n||e.includes(n)||e.push(n),e},[]).flatMap(e=>{const t=new RegExp(`^${e}(_(\\d+))?$`),n=a.filter(({targetId:e})=>e.match(t)),r=(null==i?void 0:i.queryByDataDeviceAttribute)?`div[id^="${e}"][data-device=${o}], div[id^="${e}"][data-device=all]`:`div[id^="${e}"]:not([data-disabled="true"])`,d=s.querySelectorAll(r),l=Array.from(d).filter(({id:e})=>e.match(t)).map((e,t)=>{var i;const o=Jn(e,t,n);if(o.disabled)return v(`Placement ${o.targetId} is disabled - collapsing`),In(o.targetId),null;const r=o.finnBlink&&!o.finnBlink.renderOnlyWithAdBlock,a=r&&(null===(i=o.finnBlink)||void 0===i?void 0:i.loadOnlyFinnBlink),s=`${e.id}-${Tt(6)}`;return e.id=s,e.setAttribute("data-advertory-ad-rendered","true"),r&&e.setAttribute("data-is-finn-blink-placement","true"),a&&e.setAttribute("data-is-finn-blink-only-placement","true"),(e=>{var t;const n=e.id;n&&E.setData("initialClassNames",{[n]:{wrapper:null===(t=e.parentElement)||void 0===t?void 0:t.className.split(" "),container:e.className.split(" ")}})})(e),Object.assign(Object.assign({},o),{targetId:s})}),c=l.filter(e=>null!=e);return Pn(c)});return(e=>{const t=Array.from(document.querySelectorAll('div[class^="advertory"]'));return e.sort((e,n)=>t.findIndex(t=>t.id===e.targetId)-t.findIndex(e=>e.id===n.targetId))})(d)},Jn=(e,t,n)=>{const i=n[t],o=n[n.length-1],r=n.filter(({targetId:t})=>t===e.id)[0];return(null==e?void 0:e.id)===(null==i?void 0:i.targetId)?i:(null==e?void 0:e.id)===(null==o?void 0:o.targetId)?o:r||o},Qn=e=>{const{queryConfig:{placementBatches:t}={},pageContext:{deviceType:n}}=w.get(),i=(null==t?void 0:t[n])||{},o=Object.values(i).flat(),r=(e=>{const t={};return e.forEach(e=>{const n=sn(e.targetId);e.isBackfill&&(t[n]=[e])}),t})(e),a=((e,t)=>{const n={};for(const[i,o]of Object.entries(t))n[i]=e.filter(e=>o.includes(sn(e.targetId)));return n})(e,i),s=Object.keys(r),d=((e,t)=>e.filter(e=>!t.has(sn(e.targetId))))(e,new Set([...s,...o]));return Object.assign(Object.assign(Object.assign({},a),r),{[zn]:d})},Yn=e=>({rootMargin:`${e}px 0px ${e}px 0px`}),Zn=new Map,ei=["no-stavangeraftenblad","sa","no-aftenposten","aftenposten","no-bergenstidende","bt"],ti=".brandstudio-premium-content-widget",ni=({adWrapper:e,placementContainer:t})=>t.offsetHeight+(({adWrapper:e})=>{const{paddingTop:t,paddingBottom:n}=getComputedStyle(e);return parseFloat(t)+parseFloat(n)})({adWrapper:e}),ii=({adWrapper:e,placementContainer:t})=>{const n=ni({adWrapper:e,placementContainer:t});var i;null==e||e.style.setProperty("height",`${n}px`),Nn(i=t),i.innerHTML=""},oi=e=>{e&&e.style.getPropertyValue("height")&&e.style.removeProperty("height")},ri=({adWrapper:e,placementContainer:t})=>{const{pageContext:{publisher:n}}=w.get(),i=ei.includes(n)&&Boolean(t.closest(ti));const o=i?t.closest(ti):null,r=new MutationObserver(t=>{t.forEach(({addedNodes:t})=>{t.forEach(t=>{const n=t instanceof HTMLElement,a=n&&t.matches("iframe, article")&&e;if(!n||!i&&!a||i&&!o)return;if(a)return oi(e),void r.disconnect();const s=t.closest('[style*="height"]'),d=o;s&&d.contains(s)?oi(s):d.hasAttribute("style")&&oi(d),r.disconnect()})})});try{r.observe(t,{childList:!0,subtree:!0})}catch(e){r.disconnect()}},ai=(e,t,n,i,o,r)=>{var a;const s=performance.now(),d=null!==(a=Zn.get(t))&&void 0!==a?a:0,l=((e,t)=>!!t&&e+t<(new Date).getTime())(i,o)&&n<0;s-d>=o&&l&&(Zn.set(t,s),((e,t,n)=>{const{pageContext:{countryCode:i}}=w.get(),o=null==n?void 0:n.parentElement;o&&n&&ii({adWrapper:o,placementContainer:n}),_t(()=>{e.setKeywords([t],{[`${z(i)}-adreload`]:"1"},{overrideKeyValue:!0}),e.refresh([t])})})(e,t,r))},si=(e,t,n)=>{const i=new IntersectionObserver((e,i)=>((e,t,n,i)=>{e.filter(({isIntersecting:e})=>e).forEach(e=>{const{target:o,boundingClientRect:r}=e;t(window.apntag,o.id,r.y,n,i,o)})})(e,ai,t,n),Yn(300));i.observe(e)},di=(e,t=6)=>{const n=[];for(let i=0;i<e.length;i+=t){const o=e.slice(i,i+t);n.push(o)}return n},li=()=>navigator&&navigator.userAgent.match(/chrome/i)?null:navigator&&navigator.userAgent.match(/apple/i),ci=(e,t=0)=>{const n=e.getBoundingClientRect(),i=window.innerHeight;return n.bottom>-t&&n.top<i+t},ui=e=>{const{refreshConfig:{visibilityStateRefreshEnabled:t=!1}={}}=w.get();if(!t)return;const n=()=>{"visible"===document.visibilityState&&document.removeEventListener("visibilitychange",n),mi(e)};"visible"!==document.visibilityState&&document.addEventListener("visibilitychange",n)},pi=(e,t,n)=>{const i=document.querySelectorAll('[data-bf-cache-refresh="true"]');for(const o of i){const i=e.find(e=>{var t,n;return e.targetId===(null===(t=o.firstElementChild)||void 0===t?void 0:t.id)&&(null===(n=e.refresh)||void 0===n?void 0:n.bfCache)}),r=null==i?void 0:i.requestThreshold;ci(o,r)&&i&&(Sn(i.targetId),n.length&&o.classList.remove(...n),mi([i],t))}},vi=e=>{const{refreshConfig:{backForwardNavigationRefreshEnabled:t=!1}={},siteSpecificConfig:{classesToRemoveOnRefresh:n=[]}={},pageContext:{isMobileApp:i}}=w.get();t&&(e.forEach(({targetId:e})=>{const t=gi(e);t&&(t.dataset.bfCacheRefresh="true")}),i?((e,t)=>{document.addEventListener("visibilitychange",()=>{"visible"===document.visibilityState&&pi(e,!0,t)})})(e,n):((e,t)=>{window.addEventListener("pageshow",n=>{const i=()=>{window.scrollY>0&&(window.removeEventListener("scroll",i),pi(e,!1,t))};n.persisted&&(li()?window.addEventListener("scroll",i,{passive:!0}):pi(e,!1,t))})})(e,n))},gi=e=>{var t,n;return null!==(n=null===(t=document.querySelector(`#${e}`))||void 0===t?void 0:t.parentElement)&&void 0!==n?n:null},hi=e=>{const{targetId:t,allowedFormats:n}=e,i=(e=>{if(!e)return[];try{return JSON.parse(e.dataset.adSizes||"[]")}catch(e){return[]}})(gi(t)),o=(e=>1===e[0]&&1===e[1])(i),r={sizes:[i],allowedFormats:o?n:n.filter(e=>"native"!==e),allowSmallerSizes:!1};return o||(r.native=void 0),r},mi=(e,t=!1)=>{const{queryConfig:{batchSize:n=y}={}}=w.get(),i=e.map(({targetId:e})=>e),o=di(i,n);if(t)for(const t of e){const e=hi(t);window.apntag.modifyTag(t.targetId,e)}for(const e of o)_t(()=>window.apntag.refresh(e))},fi=e=>{const{apntag:t,bus:n}=e,{siteEvents:i,initNativeAd:r}=w.getHandlers(),a=[];return{adRequested:()=>{n.emit("adRequested"),i.adRequested()},adAvailable:e=>o(void 0,void 0,void 0,function*(){var t,o,a,s,d,l;v("core adAvailable start",{adObj:e,isFullscreenScrollAd:Oe(e),isFinnBlink:Ne(e.targetId),isNativeAd:xe(e),isMediation:un(e),isTakeoverAd:Pe(e),isCollapseAd:_e(e),isWallpaperAd:je(e)});const c=null===(a=null===(o=null===(t=null===window||void 0===window?void 0:window.apntag)||void 0===t?void 0:t.requests)||void 0===o?void 0:o.tags[e.targetId])||void 0===a?void 0:a.adResponse.ads;if(un(e)&&c&&(null===(s=c[1])||void 0===s?void 0:s.rtb)&&(e.banner=null===(l=null===(d=c[1])||void 0===d?void 0:d.rtb)||void 0===l?void 0:l.banner),Oe(e)){const{modifyFullscreenScrollAd:t}=yield Promise.resolve().then(function(){return ft});t(e)}const{widescreenSwitching:u,wallpaper:p,fullscreenScroll:g}=w.get();if(Re(e)&&(null==u?void 0:u.enabled)){const{initWidescreenSwitching:e}=yield import("./index-CFA1LPwY.js");e()}if(Oe(e)&&!Ne(e.targetId)){v("core adAvailable: creating fullscreen scroll container",{targetId:e.targetId,width:e.width,height:e.height,bannerWidth:e.banner&&"object"==typeof e.banner?e.banner.width:e.banner,bannerHeight:e.banner&&"object"==typeof e.banner?e.banner.height:void 0});const{createFullscreenScrollAd:t}=yield Promise.resolve().then(function(){return ft});t(e,g)}if(!xe(e)||un(e)||Ne(e.targetId)||null==r||r(e,w.get()),Pe(e)&&!_e(e)){const{modifyTakeoverAdContent:t,createTakeoverAd:n}=yield import("./index-B-Hc1BIw.js");t(e.targetId),yield n(e)}if(je(e)&&(null==p?void 0:p.enabled)){const{initWallpaperAd:t}=yield Promise.resolve().then(function(){return Cn});t(()=>_t(()=>window.apntag.showTag(e.targetId)),p),E.setData("wallpaper",{isAvailable:!0})}(e=>e.targetId.includes("skyscraperleft")&&!!e.banner)(e)&&E.setData("horseshoe",{isAvailable:!0}),i.adAvailable(e),yield n.emit("adRendered",{targetId:e.targetId}),v("core adAvailable stop",{adObj:e,isFullscreenScrollAd:Oe(e),isFinnBlink:Ne(e.targetId),isNativeAd:xe(e),isMediation:un(e),isTakeoverAd:Pe(e),isCollapseAd:_e(e),isWallpaperAd:je(e)})}),adLoaded:e=>o(void 0,void 0,void 0,function*(){const{refreshConfig:n,appearanceConfig:o,wallpaper:s,adScaleConfig:d,pulse:l,placements:c,pageContext:{deviceType:u,publisher:p=""}}=w.get(),v=document.getElementById(e.targetId);if(Ne(e.targetId)){const{displaySpecialFormatsForFinnFallback:t}=yield import("./events-D1J-nlHl.js");t(e)}if(a.includes(e.targetId)&&xe(e)&&(null==r||r(e,w.get()),rn({adObj:e})),!a.includes(e.targetId)&&un(e)&&a.push(e.targetId),_e(e)&&In(e.targetId),Pe(e)){const{modifyTakeoverIframe:n}=yield import("./index-B-Hc1BIw.js");n(t,e.targetId)}if((e=>Be(e,Te.NINESIXTEEN))(e)){const{applyNinesixteenFormat:t}=yield import("./index-D_HMpAYl.js");t(e)}if((e=>Be(e,Te.FULLSQUARE))(e)){const{applyFullsquareFormat:t}=yield import("./index-D_HMpAYl.js");t(e)}if(ke(e)){const{applyFullwidthFormat:t}=yield import("./index-D_HMpAYl.js");t(e)}((e,t)=>{if(!(null==t?void 0:t.scrollRefreshEnabled))return;const{targetId:n}=e,i=document.querySelector(`#${n}`),o=null==i?void 0:i.parentElement;if(!o||!i)return;ri({adWrapper:o,placementContainer:i});const{delayTimeToNextRefresh:r=1e3}=t,a=(new Date).getTime();i&&"true"!==i.dataset.subscribedForRefresh&&(i.dataset.subscribedForRefresh="true",i.dataset.refresh&&si(i,a,r))})(e,n),(null==o?void 0:o.clearProbableDimensionsEnabled)&&Tn(e.targetId);if(E.getData("horseshoe").isAvailable&&(null==s?void 0:s.enabled)){const{adjustAdToHorseshoe:t}=yield Promise.resolve().then(function(){return Cn});t(e.targetId)}if(null==d?void 0:d.enabled){const{scaleAds:t,scaleAdIpadAirPortrait:n}=yield import("./index-DxDekWIX.js");t(e),n(e)}if(i.adLoaded(e),(null==l?void 0:l.instance)&&l.adTrackingEnabled){const{XandrAdTracker:t}=yield Promise.resolve().then(function(){return Do}),n=new t(w.get(),e);n.trackLoad(),n.trackImpression()}yt(e.targetId),v&&(v.classList.add(wt),(e=>{var t,n;const{pageSectionsSelectors:i}=w.get(),o=null==i?void 0:i.mainFirstColumn,r=o?null===(t=document.querySelector(o))||void 0===t?void 0:t.clientWidth:void 0;r&&e.clientWidth>r&&(null===(n=e.parentElement)||void 0===n||n.setAttribute("data-two-column-ad-layout","true"),window.dispatchEvent(new CustomEvent("advertory:twoColumnAdLayoutApplied",{detail:{targetId:e.id}})))})(v)),rn({adObj:e}),(e=>{var t;const n=null==e?void 0:e.targetId;if(!n)return;const i=null===(t=document.querySelector(`#${n}`))||void 0===t?void 0:t.parentElement;i&&((e,t)=>{const{height:n,width:i,native:o}=e;o?t.dataset.adSizes="[1,1]":n&&i&&(t.dataset.adSizes=`[${i},${n}]`)})(e,i)})(e),window.dispatchEvent(new CustomEvent("advertory:adLoaded",{detail:{targetId:e.targetId,adFormat:an(e)}}))}),adNoBid:e=>o(void 0,void 0,void 0,function*(){if(In(e.targetId),Pe(e)){const{handleTakeoverCookieOnAdNotShown:t}=yield Promise.resolve().then(function(){return Yt});yield t(e)}i.adNoBid(e)}),adError:(e,t)=>o(void 0,void 0,void 0,function*(){if(Pe(t)){const{handleTakeoverCookieOnAdNotShown:e}=yield Promise.resolve().then(function(){return Yt});yield e(t)}i.adError(e,t)}),adCollapse:()=>{i.adCollapse()},adRequestFailure:e=>o(void 0,void 0,void 0,function*(){In(e.targetId),i.adRequestFailure(e)}),adBadRequest:e=>o(void 0,void 0,void 0,function*(){In(e.targetId),i.adBadRequest(e)}),adLoadedMediated:e=>i.adLoadedMediated(e),adNoBidMediated:e=>{i.adNoBidMediated(e)}}};let yi;const bi=()=>yi,wi={name:"xandr",capabilities:{tagDefinition:"explicit",deferredRequest:!0,deferredRender:!0,refresh:!0},setup:()=>o(void 0,void 0,void 0,function*(){yi=window.apntag||{anq:[],defineTag:e=>({targetId:""}),showTag:e=>{},onEvent:(e,t,n)=>{},offEvent:(e,t)=>{},refresh:e=>{},modifyTag:(e,t)=>{},loadTags:e=>{},emitEvent:(e,t)=>{},setPageOpts:e=>{},resizeAd:(e,t,n)=>{},getAstVersion:()=>"",setEndpoint:(e,t)=>{},fireImpressionTrackers:e=>{},setKeywords:()=>{},clearRequest:()=>{}},window.apntag=yi,jt(e=>window.apntag.anq.push(e)),yield Promise.allSettled([o(void 0,void 0,void 0,function*(){const{tcf:e,pageContext:{isMobileApp:t,countryCode:n}}=w.get();(yield R(e,t,n,"xandr-endpoint"))||yi.setEndpoint("ib.adnxs-simple.com",!0)}),o(void 0,void 0,void 0,function*(){const{developerOptions:{astUrl:e}={}}=w.get();yield Ee(null!=e?e:"https://adsdk.microsoft.com/ast/ast.js")}),o(void 0,void 0,void 0,function*(){if(It())return;const{prebid:e,tcf:t,pageContext:{isMobileApp:n,countryCode:i}}=w.get(),o=yield R(t,n,i,"prebid");(null==e?void 0:e.enabled)&&o&&(yield Ee(null==e?void 0:e.prebidUrl))})])}),setTargeting:()=>o(void 0,void 0,void 0,function*(){const{pageOptions:e}=w.get(),{preparePageOptions:t}=w.getHandlers(),n=(()=>{var e,t;const{pageSetup:{pageOptions:n}={}}=w.get();return{sandboxAdIframe:null===(t=null===(e=null==n?void 0:n.options)||void 0===e?void 0:e.sandboxAdIframeEnabled)||void 0===t||t,sandboxAttributes:["allow-same-origin","allow-scripts","allow-top-navigation-by-user-activation","allow-popups","allow-popups-to-escape-sandbox","allow-forms"]}})(),i=yield o(void 0,void 0,void 0,function*(){const{tcf:e,pageContext:{isMobileApp:t,countryCode:n}}=w.get();return(yield R(e,t,n,"page-options"))?{}:{userSync:{disabled:!0}}}),r=yield t(Object.assign(Object.assign(Object.assign({disablePsa:!0,enableSafeFrame:!0},e),{renderingManagement:Object.assign({},n)}),i));(e=>{const t=E.getData("alertoryConfigKeywords");if(Object.keys(t).length)return;const n=ln(e);E.setData("alertoryConfigKeywords",n)})(r.keywords),_t(()=>bi().setPageOpts(r))}),definePlacements:e=>{const{prepareTag:t}=w.getHandlers(),n=[];(e=>{const t=["skyscraperright_1","topboard","wallpaper","skyscraperleft_1"];return e.sort((e,n)=>{const i=t.findIndex(t=>e.targetId.includes(t)),o=t.findIndex(e=>n.targetId.includes(e));return-1!==i&&-1===o?-1:-1===i&&-1!==o?1:i-o})})(e).forEach(e=>{v("xandr definePlacements",{placement:e});const i=tn(e);if(nn(e.targetId)){const o=t(i),r=(e=>{const{allowedFormats:t,invCode:n,keywords:i,sizes:o}=e;return{adTypes:t,invCode:n,keywords:dn(i),sizes:o}})(o);n.push(r),_t(()=>(v("xandr definePlacements - add to the queue",{placement:e,preparedTag:o}),bi().defineTag(o)))}}),(e=>{var t,n,i;(null===(i=null===(n=null===(t=window.advertory)||void 0===t?void 0:t.alertoryConfig)||void 0===n?void 0:n.xandr)||void 0===i?void 0:i.tags)&&e.length&&window.advertory.alertoryConfig.xandr.tags.push(e)})(n)},requestPlacements:e=>o(void 0,void 0,void 0,function*(){const t=e.filter(({targetId:e})=>nn(e)).map(({targetId:e})=>e);t.length&&_t(()=>(v("xandr requestPlacements",{placementsIdsToLoad:t}),bi().loadTags([...t])))}),bindEvents:e=>o(void 0,void 0,void 0,function*(){var t;yield(t={apntag:bi(),bus:e},o(void 0,void 0,void 0,function*(){const{apntag:e}=t,n=fi(t);_t(()=>{e.onEvent("adRequested",n.adRequested),e.onEvent("adAvailable",n.adAvailable),e.onEvent("adLoaded",n.adLoaded),e.onEvent("adNoBid",n.adNoBid),e.onEvent("adError",n.adError),e.onEvent("adCollapse",n.adCollapse),e.onEvent("adRequestFailure",n.adRequestFailure),e.onEvent("adBadRequest",n.adBadRequest),e.onEvent("adLoadedMediated",n.adLoadedMediated),e.onEvent("adNoBidMediated",n.adNoBidMediated)})}))})},Ci=(e,t,n)=>{const i=document.getElementById(`div_utif_${e}`);if(!i)return;const{apntag:o}=window,[r,a]=t;if(!i.dataset.lockedsize&&a&&r)i.style.width=`${r}px`,i.style.height=`${a}px`,n&&(o.resizeAd(i.id,[r,a]),i.dataset.lockedsize="true",i.dataset.lockedwidth=r.toString(),i.dataset.lockedheight=a.toString());else if(null==i?void 0:i.dataset.lockedsize){const{lockedwidth:e,lockedheight:t}=i.dataset;e&&t&&o.resizeAd(i.id,[e,t])}},Ii="collapseAd",Ei="hideAd",Ti="resizeAd",Si="wallpaperImageUrl",Ai="wallpaperColor",Oi="velvet",xi=[Ti,Si,Ai,Ii,Ei,Oi];let ki;const Pi=e=>{if(!["http://acdn.adnxs-simple.com","https://acdn.adnxs-simple.com","https://crcdn01.adnxs-simple.com","http://crcdn01.adnxs-simple.com","https://acdn.adnxs.com","http://acdn.adnxs.com","https://adsdk.microsoft.com","https://adsdk.bing.net","https://adsdkprod.azureedge.net"].includes(e.origin.trim()))return;const{data:t}=e;if(!t)return;const n=(e=>{if("object"==typeof e)return e;if(fn(e)){const t=e.replace(/^wallpaper:url:/,"");return{name:Si,wallpaperImageUrl:t}}if(yn(e)){const t=e.replace(/^wallpaper:color:/,"");return{name:Ai,wallpaperColor:t}}if(e.startsWith(Ii)||e.startsWith(Ei)){const t=e.split(":")[1];return{name:Ii,targetId:t}}if(e.includes("name")&&xi.some(t=>e.includes(t)))try{return JSON.parse(e)}catch(e){}})(t);if(!n)return;if(!n.name||!xi.some(e=>n.name===e))return;const{name:i,targetId:o,wallpaperImageUrl:r,wallpaperColor:a,cmd:s,size:d}=n;i===Oi&&s&&(s.includes("noScroll")&&(ki=(e=>{if(!e)return()=>{};const t=e.style.overflow;return e.style.setProperty("overflow","hidden"),()=>{e.style.setProperty("overflow",t)}})(document.querySelector("body"))),(s.includes("close")||s.includes("ended"))&&(null==ki||ki(),dispatchEvent(new CustomEvent("advertory:closeTakeover",{})))),i!==Ii&&i!==Ei||!o||In(o),i===Ti&&o&&s&&Ci(o,s),"resizeMediationAd"===i&&o&&d&&Ci(o,d,!0),i===Si&&r&&bn(r),i===Ai&&a&&wn(a)},Li=()=>{const{pageContext:{publisher:e,countryCode:t},finnBlink:n}=w.get(),i=window.apntag,r={publisher:e,countryCode:t,finnBlink:n},a=e=>{En(e),_t(()=>i.showTag(e))};return{withXandrAd:a,withFinnBlinkAd:e=>o(void 0,void 0,void 0,function*(){if(!(null==n?void 0:n.enabled))return;const{loadFinnBlinkAd:t}=yield import("./index-DIr0kArr.js");yield t(e,r,null)}),withFullAdsChain:e=>o(void 0,void 0,void 0,function*(){if(!(null==n?void 0:n.enabled))return void a(e);const{loadFinnBlinkAd:t}=yield import("./index-DIr0kArr.js");yield t(e,r,a,()=>o(void 0,void 0,void 0,function*(){if(!E.getData("horseshoe").isAvailable)return;const{adjustAdToHorseshoe:t}=yield Promise.resolve().then(function(){return Cn});t(e)}))})}},ji=(e,t)=>o(void 0,void 0,void 0,function*(){e.id.includes("wallpaper")||(yield xt(e,t,()=>((e,t,n)=>{const i="true"===n.dataset.isFinnBlinkOnlyPlacement;return Ne(t)&&i?(v(`loading finn blink ad for blink only placement for ${t}`),void Li().withFinnBlinkAd(t)):Ne(t)?(v(`loading finn blink ad with full ads chain for ${t}`),void Li().withFullAdsChain(t)):void _t(()=>(v("core showTag",{id:t}),e.showTag(t)))})(window.apntag,(e=>{const t=e.dataset.showTagSubscribeId;return!e.id.length&&t?t:e.id})(e),e)))}),_i=(e,t)=>o(void 0,void 0,void 0,function*(){return yield new Promise(t=>{e().then(e=>{t(null!=e?e:null)}).catch(e=>{t(null)})})});dt(".advertory-brandmetrics-survey{width:100%}");const $i="advertory-brandmetrics-survey",Ni=()=>o(void 0,void 0,void 0,function*(){try{(()=>{const e=document.createElement("script");e.setAttribute("src","https://ads.inventory.schibsted.io/ad-service/ad-banner-sponsor-advertisement/ad.js"),e.setAttribute("type","text/javascript"),e.setAttribute("async","true"),document.head.appendChild(e)})(),(()=>{const e=document.createElement("div");e.setAttribute("id","ads-advertory-anchor"),e.classList.add("subscribe_box"),e.classList.add("ad-box"),e.classList.add("leftAd"),e.classList.add("netboard"),e.classList.add("advert"),e.classList.add("module"),e.classList.add("banner"),e.classList.add("leaderboard"),e.classList.add("adsbygoogle"),e.classList.add("ad-banner"),e.classList.add("ad-container"),e.classList.add("adsbox"),e.classList.add("sidebar-ads"),e.classList.add("banner-ads"),e.style.opacity="0",e.style.width="1px",e.style.height="1px",e.style.minWidth="0px",e.style.minHeight="0px",e.style.maxWidth="1px",e.style.maxHeight="1px",e.style.position="absolute",e.style.top="0",e.style.boxSizing="border-box",e.style.margin="0",e.style.padding="0",document.body.appendChild(e)})()}catch(e){console.error("Error running adblock scripts:",e)}}),qi=()=>{const e=document.getElementById("ads-advertory-anchor");return!(e&&"none"!==getComputedStyle(e).display&&window.advertoryFluepapir)},Fi="https://dr-edition-teaser-server.inventory.schibsted.io/xandr",Ri=()=>o(void 0,void 0,void 0,function*(){return window.__tcfapi?{gdpr:1,gdpr_consent:yield(e=window.__tcfapi,new Promise((t,n)=>{e("addEventListener",2,(n,i)=>{var o;i||t(""),"tcloaded"!==n.eventStatus&&"useractioncomplete"!==n.eventStatus||(t(null!==(o=n.tcString)&&void 0!==o?o:""),e("removeEventListener",2,()=>{},n.listenerId))})}))}:{};var e}),Mi={pageContext:{publisher:"aftonbladet",countryCode:_.SE},memberId:9943,sectionKeyword:"se-aftonbladet-section",frontpageInvCodeTemplate:"se-aftonbladet-{deviceType}-front-{position}",additionalFilterKeys:["se-aftonbladet-navigation","se-aftonbladet-keyword_generator","se-aftonbladet-sponsor"],tcf:{enabled:!0,advertisingCMPSignalEnabled:!0,schibstedConsentToPayEnabled:!0},glimr:{enabled:!0,clientId:"OYGH3SXYFAQR78LVPNQD"}},Di={nyheter:"nyheter",sport:"sportbladet",noje:"nojesbladet",family:"family",matdryck:"matdryck",wellness:"wellness",minekonomi:"minekonomi",resa:"resa",harligthemma:"harligthemma"},Bi=e=>(null==e?void 0:e.parent)?[...Bi(e.parent),e.shortPath||"unknown"]:[],Ui=(e,t)=>t?"se-aftonbladet-{deviceType}-studio_{position}":`se-aftonbladet-tv-{deviceType}-${(e=>{var t;if(null===(t=null==e?void 0:e.metadata)||void 0===t?void 0:t.afp)return"afp";const[,n]=Bi(e);return Di[n]||"ovrigaavdelningar"})(e)}_{position}`,Hi={aftonbladet:Mi},Wi={aftonbladet:(e,t)=>{if(!e)return null;return{invCode:Ui(e,t),videoOverlayInvCode:"se-aftonbladet-{deviceType}-other-{position}",sections:Bi(e).join(":")}}},Vi=e=>{switch(e){case"auto":return 1;case"silent":return 2;default:return 3}},zi=new Map([[1,"autoplay"],[2,"muted-autoplay"],[3,"click-to-play"]]),Ki="se-generic",Gi="aa-sch",Xi="kv_",Ji="pause",Qi="{deviceType}",Yi="{position}",Zi="afp_",eo=new Set(Object.values({PREROLL:"preroll",BUMPER:"bumper",MIDROLL:"midroll"})),to="1-1",no="16-9",io="3-4",oo="9-16",ro="responsive",ao={[to]:1,[no]:1.78,[oo]:.56,[ro]:1},so={[to]:1,[no]:1.78,[io]:1.33,[oo]:.56},lo=(e,t,n,i)=>{const{invCode:o="",videoOverlayInvCode:r}=null!=e?e:{},a=Bn===n?Wn:Vn,s=o.replace(Qi,a);return(e,n)=>{if(e===Ji)return(e=>e.replace("tv-","").replace("-afp_","-afp-").replace(Yi,Ji).replace(/-([a-z]+)_/,"-article-"))(s);if(n&&eo.has(e)){return(i&&r?r:t.frontpageInvCodeTemplate).replace(Qi,a).replace(Yi,e)}return s.replace(Yi,e)}},co=()=>{const e=window.navigator.userAgent.toLowerCase(),t=[["win","windows"],["macintosh","macos"],["x11","linux"],["android","android"],["ipad","ios"],["iphone","ios"]].find(([t])=>e.includes(t));return t?t[1]:"unknown"},uo=e=>e===Mn,po=853,vo=767,go=(e,t)=>{const n=Object.entries(e);return n.reduce((n,[i,o])=>{const r=Math.abs(e[n]-t);return Math.abs(o-t)<r?i:n},n[0][0])},ho=()=>{var e,t;const n=jwplayer().getContainer(),i=null!==(t=null===(e=document.getElementById(n.id))||void 0===e?void 0:e.parentElement)&&void 0!==t?t:null;return i&&"number"==typeof i.offsetWidth&&"number"==typeof i.offsetHeight&&0!==i.offsetHeight?i.offsetWidth/i.offsetHeight:1},mo=()=>{return(e=>{try{return decodeURIComponent(e)}catch(e){return""}})("undefined"!=typeof document&&null!==(t=null===(e=document.cookie.match("(^|;)\\s*_pulse2data\\s*=\\s*([^;]+)"))||void 0===e?void 0:e.pop())&&void 0!==t?t:"").split(",");var e,t},fo=()=>{const e=null!==(t=mo()[9])&&void 0!==t?t:null;var t;const n=(()=>{var e;return null!==(e=mo()[2])&&void 0!==e?e:null})();return e?Number(Boolean(e))+Number(Boolean(n)):0},yo=()=>Object.fromEntries(new URLSearchParams(window.location.search)),bo=(e,t)=>o(void 0,void 0,void 0,function*(){const{tcf:n,pageContext:{publisher:i,countryCode:o}}=t,{width:r,height:a}={width:window.innerWidth,height:window.innerHeight},s={isMobileApp:e.isApp,countryCode:o,publisher:i,pageType:"front",deviceType:e.deviceType},d=(yield R(n,e.isApp,o,"video"))?"1":"0",l=yield Ri(),c=yield Ce(o),u=yield Nt({tcf:n,pageContext:s}),p=null!==(v=window.location.pathname.split("/").slice(-2,-1).pop())&&void 0!==v?v:"";var v;const g=((e=1)=>go(so,Number(e.toFixed(2))))(e.instreamAspectRatio),h=(m=e.playerAspectRatio)?go(ao,Number(m.toFixed(2))):ro;var m,f;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${Gi}-country_code`]:o,[`${Gi}-publisher`]:i,[`${Gi}-supply_type`]:(f=e.deviceType,f===Bn?Un:Hn),[`kw_${Gi}-page_type`]:"collection",[`${Gi}-page_type`]:"collection",[`${Ki}-appmode`]:e.isAndroidApp?"hybrid":"notinapp",[`kw_${Ki}-page`]:"index",[`${Ki}-page`]:"index",[`${Ki}-screenheight`]:String(window.screen.height),[`${Ki}-screenwidth`]:String(window.screen.width),[`${Ki}-viewportheight`]:String(a),[`${Ki}-viewportwidth`]:String(r),[`${Ki}-loggedin`]:e.isUserLoggedIn?"yes":"no",[`${Ki}-mobile-os`]:co(),[`${Ki}-audience`]:void 0,[`${Ki}-externalid_src`]:fo(),[`${Ki}-tags`]:e.tags,[`${Ki}-articleid`]:p,"article-id":p},yield K(Object.assign(Object.assign({},t),{pageContext:s}))),u&&{external_uid:u}),e.isUserPresentOnFrontPage&&e.isInitialVideo&&{[`${Ki}-tvtags`]:"vinjett"}),e.pageAdsKeywords),Object.keys(yo()).some(e=>e.includes(Xi))&&(()=>{const e=yo(),t=Object.fromEntries(Object.entries(e).filter(([e])=>e.startsWith(Xi)).map(([e,t])=>[e.slice(3),t]));return Object.keys(t).length>0?t:void 0})()),{[t.sectionKeyword]:e.sections.split(":"),"aa-sch-cmp_advertising":d,"kw_aa-sch-cmp_advertising":d,"aa-sch-instream_player_aspectratio":g,"aa-sch-player_aspectratio":h}),l),{eids:c})}),wo=["se-generic-audience","se-generic-appversion","se-generic-sitemode","se-generic-pagegen","se-generic-viewportheight","se-generic-viewportwidth","se-generic-screenheight","se-generic-screenwidth","aa-sch-inventory_type"],Co=["aa-sch-publisher","se-generic-page","aa-sch-supply_type","se-generic-story","se-generic-section","se-generic-adformat","aa-sch-context_keyword","se-generic-tvtags","se-generic-test","aa-sch-cmp_advertising","aa-sch-instream_player_aspectratio","aa-sch-player_aspectratio"],Io=["external_uid","gdpr","gdpr_consent","eids","article-id"],Eo=(e,t)=>{const n=[...wo,...t.additionalFilterKeys];return Object.fromEntries(Object.entries(e).filter(([e])=>!n.includes(e)).map(([e,t])=>[e.includes("kw")||Io.includes(e)?e:`kw_${e}`,t]))},To=e=>Object.fromEntries(Object.entries(e).filter(([e])=>Co.includes(e))),So=(e,t)=>o(void 0,void 0,void 0,function*(){var n,i,o,r;const a=(e=>{var t;Hi[e]||g(`[video] No config found for publisher "${e}"`);return null!==(t=Hi[e])&&void 0!==t?t:Mi})(e.publisher),s=(e=>{var t;return null!==(t=Wi[e])&&void 0!==t?t:Wi.aftonbladet})(e.publisher)(e.assetSection,e.isLiveStudio),d="/"===window.location.pathname,l=null===(i=null===(n=t.attributes)||void 0===n?void 0:n.id)||void 0===i?void 0:i.toString(),c=e.assetId===l,u=null!==(o=Number(e.aspectRatio))&&void 0!==o?o:1,p=c?"preroll":"bumper";var v;return{siteConfig:a,siteVideoParams:s,isUserPresentOnFrontPage:d,adsKeywords:yield bo({pageAdsKeywords:e.pageAdsKeywords,tags:(v=e.tags,v?v.filter(e=>e.slug).map(({slug:e})=>e).join(","):""),sections:null!==(r=null==s?void 0:s.sections)&&void 0!==r?r:"",isUserLoggedIn:e.isUserLoggedIn,isUserPresentOnFrontPage:d,isInitialVideo:c,instreamAspectRatio:u,playerAspectRatio:ho(),isApp:e.isApp,deviceType:e.deviceType,isAndroidApp:e.isAndroidApp},a),prerollPlacementFormat:p,playbackMethod:Vi(e.startMode)}}),Ao=(e,t)=>{const{siteConfig:n,siteVideoParams:i,isUserPresentOnFrontPage:o,adsKeywords:r,prerollPlacementFormat:a,playbackMethod:s}=e,{invCode:d}=i||{},l=lo(i,n,t.deviceType,t.isUsedInOverlayVideoPlayer),c=((e="")=>t=>e.includes(Zi)?`${Zi}${t}`:t)(d),u=window.location.href;return{member:n.memberId,options:{autoplayMuted:!0,vpaidcontrols:!0},adSlots:{schedule:{preroll:{inv_code:l(a,o),"se-generic-playback-method":zi.get(s),"kw_se-generic-adformat":c(a)},midroll:{inv_code:l("midroll"),"kw_se-generic-adformat":c("midroll")},postroll:{inv_code:l("postroll"),"kw_se-generic-adformat":c("postroll")}},params:Object.assign(Object.assign(Object.assign({},Eo(r,n)),To(r)),{vskippable:"0",referrer:u,vplaybackmethod:s})},adPlacements:{schedule:{pause:{invCode:l("pause"),sizes:[[825,424],[1280,720],[2,1]]}},params:{keywords:Object.assign(Object.assign({},r),{"se-generic-adformat":c("pause")})}}}},Oo=e=>t=>o(void 0,void 0,void 0,function*(){const n=yield So(e,t);return Ao(n,e)}),xo={plcmtcnt:1,context:1,contextsubtype:10,plcmttype:1,assets:[{id:1,title:{len:100},required:0},{id:2,img:{type:1,hmin:10,wmin:10},required:0},{id:3,img:{type:3,hmin:10,wmin:10},required:0},{id:4,data:{type:2},required:0},{id:5,data:{type:12},required:0}],ver:"1.2",eventtrackers:[{event:1,methods:[1,2]}]},ko={no:"NOK",se:"SEK"},Po={no:"no",se:"sv"};class Lo{buildFetchObject(e,t,n,i){return o(this,void 0,void 0,function*(){const{pageContext:{countryCode:o},pageOptions:r}=i,{invCode:a,xandrPlacementId:s}=e,d=yield Ri(),l=(c=Object.assign(Object.assign({},t),n),Object.entries(c).flatMap(([e,t])=>void 0===t?[]:Array.isArray(t)?t.map(t=>`${e}=${t}`):[`${e}=${t}`]).join(","));var c;const u=new URL(window.location.href),p=(e=>{const{allowedFormats:t}=e;if(!t||t.includes("native"))return{request:JSON.stringify(xo),ver:"1.1"}})(e),v=(e=>{const{sizes:t,allowedFormats:n}=e;if((null==n?void 0:n.includes("banner"))&&t&&0!==t.length)return{format:t.map(([e,t])=>({w:e,h:t})),w:t[0][0],h:t[0][1]}})(e);return{id:Tt(36),imp:[Object.assign(Object.assign(Object.assign({id:a},p&&{native:p}),v&&{banner:v}),{secure:1,tagid:a,ext:{appnexus:Object.assign(Object.assign({},s&&{placement_id:s}),{code:a,keywords:l,use_pmt_rule:!1})}})],site:{domain:u.hostname,page:u.href,publisher:{id:String(r.publisherId),domain:u.hostname},ext:{amp:0}},device:{dnt:Number((null===navigator||void 0===navigator?void 0:navigator.globalPrivacyControl)||"1"===(null===navigator||void 0===navigator?void 0:navigator.doNotTrack)),ua:window.navigator.userAgent,h:screen.height,w:screen.width,language:(navigator.language||Po[o]||"no").split("-")[0]},regs:{ext:{gdpr:d.gdpr||0}},user:{id:yield Nt(i),ext:{consent:d.gdpr_consent||"",eids:we(o)}},at:1,cur:[ko[o]],source:{tid:Tt(36)},ext:{prebid:{bidder:{appnexus:{member:r.member}}}}}})}fetchData(e,t,n,i){return o(this,void 0,void 0,function*(){try{v("Starting fetching Studio ad from Xandr:",Fi);const o=new Headers({"Content-Type":"application/json"}),r=new URLSearchParams(window.location.search),a=new URLSearchParams(["openRTBDebugMemberOverride","openRTBNewsroomOverride","openRTBForceNativeDesc2Override"].flatMap(e=>{const t=r.get(e);return t?[[e,t]]:[]})),s=a.size>0?`${Fi}?${a.toString()}`:Fi,d=yield this.buildFetchObject(e,t,n,i),l=yield ie.post(s,o,d);return v("Fetch operation completed successfully.",l),l}catch(e){v("Error during fetch operation:",e)}return null})}}const jo=0,_o=3,$o=(e,t,n,i)=>{const o=t.parentElement;if(!o)return;const r=e?`-${e}`:"",a=i?`__${i}`:"",s=`advertory${r}-${n}${a}`,d=`advertory${r}-${n}-wrapper${a}`;t.classList.remove(...t.classList),o.classList.remove(...o.classList),t.classList.add(s),o.classList.add(d),t.dataset.adType=n},No={FINN_BLINK:"finn-blink",NATIVE_AD:"native-ad"},qo=(e,t,n)=>{var i;const o=t.replace(/-[^-]*$/,"");return null===(i=null==n?void 0:n[e].find(e=>e.targetId===o))||void 0===i?void 0:i.invCode},Fo=(e,t)=>{new IntersectionObserver((e,n)=>{for(const i of e)if(i.intersectionRatio>=.5){n.disconnect(),t();break}},{threshold:.5}).observe(e)};class Ro{constructor(e,t){this.pulse=e,this.publisher=t}static extractAdFormat(e){return e.replace(/_\d.*$/,"")}computeInvCode(){}buildPlacement(e){return{placementId:null!=e?e:""}}trackLoad(){var e,t;null===(t=(e=this.pulse).trackLoadAd)||void 0===t||t.call(e,{object:this.buildAdObject(),placement:this.buildPlacement(this.computeInvCode())})}trackImpression(){const e=document.querySelector(`#${this.getTargetId()}`);e&&Fo(e,()=>{var e,t;return null===(t=(e=this.pulse).trackImpressionAd)||void 0===t?void 0:t.call(e,{object:this.buildAdObject(),placement:this.buildPlacement(this.computeInvCode())})})}trackEngagement(e){var t,n;null===(n=(t=this.pulse).trackEngagementAd)||void 0===n||n.call(t,{object:this.buildAdObject(),placement:this.buildPlacement(null!=e?e:this.computeInvCode()),engagement:{action:"Click",elementName:this.getTargetId()}})}}class Mo extends Ro{constructor(e,t){var n;super(e.pulse.instance,null!==(n=e.pageContext.publisher)&&void 0!==n?n:""),this.xandrParams=e,this.adObj=t}getTargetId(){return this.adObj.targetId}computeInvCode(){const{pageContext:{deviceType:e},placements:t}=this.xandrParams;if(e)return qo(e,this.adObj.targetId,t)}buildAdObject(){const e=Mo.extractAdFormat(this.adObj.targetId);return Object.assign(Object.assign({objectId:this.adObj.targetId,objectSdrn:`sdrn:${this.publisher}:ad-slot:${e}`,platform:"microsoft",adFormat:e,creativeType:this.adObj.adType,demandChannel:9700===this.adObj.buyerMemberId?"direct":"programmatic"},null!=this.adObj.creativeId&&{creativeId:String(this.adObj.creativeId)}),{opportunityId:this.adObj.uuid,size:`${this.adObj.width}x${this.adObj.height}`})}}var Do=Object.freeze({__proto__:null,XandrAdTracker:Mo});const Bo=(e,t)=>{Uo(e,t),Wo(e,t)},Uo=(e,t)=>{var n,i;const o=document.querySelector(`#${e.targetId}`);if(!o||!(null===(n=e.native)||void 0===n?void 0:n.clickTrackers))return;const r=null!==(i=null==t?void 0:t.clickLinkSelector)&&void 0!==i?i:"a.ad-link";(null==o?void 0:o.querySelectorAll(r)).forEach(n=>{"true"!==n.dataset.tracked&&(n.addEventListener("click",()=>{var n,i,o,r,a,s;for(const t of null!==(i=null===(n=e.native)||void 0===n?void 0:n.clickTrackers)&&void 0!==i?i:[])zo(t);if((null===(o=null==t?void 0:t.pulse)||void 0===o?void 0:o.instance)&&(null===(r=null==t?void 0:t.pulse)||void 0===r?void 0:r.adTrackingEnabled)){const n={publisher:null!==(a=t.publisher)&&void 0!==a?a:"",deviceType:null!==(s=t.deviceType)&&void 0!==s?s:Bn};new Mo({pulse:t.pulse,placements:t.placements,pageContext:n},e).trackEngagement()}}),n.dataset.tracked="true")})},Ho=e=>{var t;const{native:{impressionTrackers:n}={}}=e,i=null==n?void 0:n.some(e=>e.includes("googleads")),o="function"==typeof(null===(t=window.apntag)||void 0===t?void 0:t.fireImpressionTrackers)&&!!e.tagId;i||!o?null==n||n.forEach(Vo):window.apntag.fireImpressionTrackers(e);const r=new CustomEvent("advertory:nativeImpression",{detail:{ad:e}});window.dispatchEvent(r)},Wo=(e,t)=>{var n;let i=!1;const o=document.querySelector(`#${e.targetId}`);if(!o||!e.native)return;const{deviceType:r,appearanceConfig:a,nativeTrackingConfig:{fireImpressionsBasedOnAppearanceThreshold:s=!1}={}}=t,d=s?{rootMargin:`${l=null!==(n=null==a?void 0:a.defaultThreshold[null!=r?r:Bn])&&void 0!==n?n:0}px 0px ${l}px 0px`}:{};var l;const c=new IntersectionObserver(t=>{if(!i)for(const n of t)if(n.isIntersecting){i=!0,Ho(e),c.disconnect();break}},d);c.observe(o)},Vo=e=>{const t=e.includes("googleads");"function"!=typeof window.navigator.sendBeacon||t?zo(e):window.navigator.sendBeacon(e)},zo=e=>{ie.get(e,{mode:"no-cors"}).catch(t=>console.warn(`Tracker ${e} failed. Error: ${t||"Unknown"}`))},Ko=e=>e.reduce((e,t)=>{if(!t.serverSidePlacement)return e.clientSidePlacements.push(t),e;const n=Math.random()<.5;return t.keywords=Object.assign(Object.assign({},t.keywords),{"aa-sch-prerenderer":n?"true":"false"}),n?e.serverSidePlacements.push(t):e.clientSidePlacements.push(t),e},{clientSidePlacements:[],serverSidePlacements:[]}),Go=(e,t)=>o(void 0,void 0,void 0,function*(){var n,i;const{pageContext:{deviceType:o},appearanceConfig:r}=t,a=null==r?void 0:r.defaultThreshold[o],s=null!==(n=e.requestThreshold)&&void 0!==n?n:a,d=document.getElementById(e.targetId);if(!d)return void v(`Server-side ad container not found: ${e.targetId}`);yield new Promise(e=>{new IntersectionObserver((t,n)=>{t.some(e=>e.isIntersecting)&&(n.disconnect(),e())},Yn(s)).observe(d)});const{prepareTag:l}=w.getHandlers(),c=E.getData("alertoryConfigKeywords"),u=null!==(i=l(tn(e)).keywords)&&void 0!==i?i:{},p=new Lo,g=yield p.fetchData(e,c,u,t);g&&(((e,t,n)=>{const i=n===Mn?t.mobileHTML:t.desktopHTML;if(i){if(t.adType===jo){const n=document.createElement("iframe");n.width=String(t.bid.w),n.height=String(t.bid.h),n.style.overflow="hidden",n.style.border="none",n.srcdoc=`<style>html,body{margin:0;overflow:hidden;}</style>${i}`,e.appendChild(n)}else e.innerHTML=i;e.classList.add("ad-loaded")}})(d,g,o),g.adType===_o&&($o(t.pageContext.publisher,d,No.NATIVE_AD,t.pageContext.pageType),Bo({targetId:e.targetId,native:{clickTrackers:g.clickTrackers,impressionTrackers:g.impTrackers}},{deviceType:o,appearanceConfig:r,nativeTrackingConfig:t.nativeTrackingConfig,clickLinkSelector:"a"})),((e,t,n,i)=>{var o,r,a;let s;(null===(o=window.apntag.requests)||void 0===o?void 0:o.tags[e])||(null!==(r=(a=window.apntag).requests)&&void 0!==r||(a.requests={tags:{}}),window.apntag.requests.tags[e]={invCode:t,adResponse:{ads:[{creative_id:Number(null==i?void 0:i.adid)}]}}),!!n.querySelector("iframe")||(s=document.createElement("iframe"),n.appendChild(s)),bt(e,n,Number(null==i?void 0:i.adid)),null==s||s.remove()})(e.targetId,e.invCode,d,g.bid))}),Xo=(e,t)=>{e.forEach(e=>Go(e,t).catch(e=>{v("Failed to handle server-side ad:",e)}))},Jo="[data-carousel-track]",Qo=({image_link:e,title:t})=>{const n=document.createElement("figure"),i=document.createElement("img");return n.className="carousel-slide",n.setAttribute("data-carousel-slide",""),i.className="slide-image",i.src=e,i.alt=t,i.loading="lazy",i.draggable=!1,n.appendChild(i),n},Yo=e=>Boolean(e.title&&e.link&&e.image_link),Zo=(e,t)=>o(void 0,void 0,void 0,function*(){const n=e.querySelector(Jo);var i;if(n)if(t&&(e=>{try{return"https:"===new URL(e).protocol}catch(e){return!1}})(t))try{const r=yield(e=>o(void 0,void 0,void 0,function*(){try{const t=yield ie.get(e,{timeout:5e3});return t&&Array.isArray(t.items)?t:(g("Carousel feed has an unexpected shape",{url:e}),null)}catch(t){return g("Failed to fetch carousel feed",{url:e,error:t}),null}}))(t);if(!r)return void e.replaceChildren();const a=r.items.filter(Yo);if(!a.length)return void g("Carousel feed has no usable items");yield import("./styles-Cs6qF9ko.js");const s={title:(i=e).querySelector("[data-product-title]"),description:i.querySelector("[data-product-description]"),price:i.querySelector("[data-product-price]"),link:i.querySelector("[data-product-link]")};n.replaceChildren(...a.map(Qo)),(({root:e,onChange:t})=>{var n;const i=e.querySelector("[data-carousel-viewport]"),o=e.querySelector(Jo),r=Array.from(null!==(n=null==o?void 0:o.querySelectorAll("[data-carousel-slide]"))&&void 0!==n?n:[]);if(!i||!o||!r.length)return;const a=r.length,s=[r[a-1].cloneNode(!0),...r,r[0].cloneNode(!0)];let d=1,l=null,c=0,u=!1;const p=e=>{const t=s[0].offsetWidth,n=Number.parseFloat(getComputedStyle(o).columnGap)||0,r=(i.clientWidth-t)/2-d*(t+n);o.style.transition=e?"transform 360ms cubic-bezier(.22, .61, .36, 1)":"none",o.style.transform=`translate3d(${r+c}px, 0, 0)`,o.offsetWidth},v=(e,n=!0)=>{d=e,p(n),s.forEach((e,t)=>e.classList.toggle("is-active",t===d)),null==t||t((d-1+a)%a)},g=()=>{0===d?v(a,!1):d===a+1&&v(1,!1)},h=()=>{if(null===l)return;const e=Math.abs(c)>=.12*i.clientWidth?-Math.sign(c):0;l=null,c=0,v(d+e),window.setTimeout(()=>{u=!1})};o.replaceChildren(...s),o.addEventListener("transitionend",e=>{e.target===o&&g()}),i.addEventListener("pointerdown",e=>{g(),l=e.clientX,i.setPointerCapture(e.pointerId),p(!1)}),i.addEventListener("pointermove",e=>{null!==l&&(c=e.clientX-l,u=u||Math.abs(c)>6,p(!1))}),i.addEventListener("pointerup",h),i.addEventListener("pointercancel",h),i.addEventListener("click",e=>{u&&(e.preventDefault(),e.stopPropagation())},!0),e.addEventListener("dragstart",e=>e.preventDefault()),v(1,!1)})({root:e,onChange:e=>(({title:e,description:t,price:n,link:i},o)=>{e&&(e.textContent=o.title),t&&(t.textContent=o.description),n&&(n.textContent=o.sale_price||o.price),i&&(i.href=o.link)})(s,a[e])}),v("Carousel mounted",{items:a.length})}catch(t){g("Carousel could not be rendered",t),e.replaceChildren()}else g("Carousel feed url is missing or not a valid https url",{url:t})}),er="_adchoices_non_rtb",tr=e=>{const{tcf:{nonRtb:{invCodeSuffix:t=er}={}}={}}=w.get();return`${On(e)}${t}`},nr=(e,t)=>t?e:((e=>{e.filter(e=>!e.supportsNonRTB).forEach(e=>In(e.targetId))})(e),(e=>e.filter(e=>e.supportsNonRTB).map(e=>Object.assign(Object.assign({},e),{invCode:tr(e.invCode)})))(e)),ir=e=>`${Math.max(0,Math.round(e))}px`,or=e=>{const{marginTop:t,marginBottom:n}=getComputedStyle(e);return e.getBoundingClientRect().height+parseFloat(t||"0")+parseFloat(n||"0")},rr=(e,t)=>{const n=document.body;if(n)for(const t of Object.keys(e)){const i=e[t];n.style.setProperty(t,i)}},ar=()=>{const{pageSectionsSelectors:e}=w.get();(null==e?void 0:e.header)&&(e=>{const t=document.querySelector(e);if(!t)return;const n=or(t);rr({"--advertory-header-height":ir(n)})})(e.header)};let sr=wi,dr=[];const lr=["takeover","wallpaper"],cr=(e,t)=>{var n,i;const{initNativeAd:o}=w.getHandlers();null==o||o(e,null!==(i=null!=t?t:null===(n=window.advertory)||void 0===n?void 0:n.siteConfig)&&void 0!==i?i:w.get())},ur=e=>{const t=(e=>{var t;const n=E.getData("alertoryConfigKeywords"),{queryConfig:i,placements:o,tcf:r,glimr:a,appearanceConfig:s,pageContext:{publisher:d,countryCode:l,pageType:c,deviceType:u,isMobileApp:p=!1},pageOptions:{member:v},pageSetup:g,takeover:h,fullscreenScroll:m,fullWidth:f}=e,b=null!==(t=null==i?void 0:i.batchSize)&&void 0!==t?t:y;return{xandr:{member:v,keywords:n,tags:[]},advertory:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({pageContext:{publisher:d,countryCode:l,pageType:c,deviceType:u,isMobileApp:p},pageSetup:g,placements:o,tcf:r,queryConfig:Object.assign(Object.assign({},i),{batchSize:b})},a&&{glimr:a}),s&&{appearanceConfig:s}),h&&{takeover:h}),m&&{fullscreenScroll:m}),f&&{fullWidth:f})}})(e);window.advertory={initialized:!0,version:"3.17.0",siteConfig:e,renderNativeAd:cr,alertoryConfig:t}},pr=()=>o(void 0,void 0,void 0,function*(){yield sr.setTargeting()}),vr=e=>o(void 0,void 0,void 0,function*(){var t,n;const{prebid:i,tcf:o,pageContext:{isMobileApp:r,countryCode:a}}=w.get(),s=yield R(o,r,a,"loadPlacements"),d=nr(e,s);null===(t=sr.definePlacements)||void 0===t||t.call(sr,d);(null==i?void 0:i.enabled)&&s&&!It()?(v("core loadPlacements prebid enabled"),yield kt()):(v("core load tags invoked without prebid enabled"),yield null===(n=sr.requestPlacements)||void 0===n?void 0:n.call(sr,d))}),gr=(e,t)=>o(void 0,void 0,void 0,function*(){const{appearanceConfig:n,pageContext:{deviceType:i}}=w.get(),{requestThreshold:o,refresh:r}=e,a=(e=>{const t=document.querySelector(`[data-show-tag-subscribe-id=${e.targetId}]`),n=document.querySelector(`#${e.targetId}`);return t||n})(t),s=null==n?void 0:n.defaultThreshold[i];a&&(v("core showAd - subscribe for show tag with thresholds",{placement:e,ad:t,requestThreshold:o,deviceDefaultThreshold:s}),yield ji(a,null!=o?o:s)),a&&(null==r?void 0:r.scroll)&&(v("core showAd - setup refreshing",{placement:e,ad:t}),a.dataset.refresh=r.scroll.toString())}),hr=e=>e.some(({targetId:e})=>lr.some(t=>e.includes(t))),mr=e=>o(void 0,void 0,void 0,function*(){var t;if(!(null===(t=null===window||void 0===window?void 0:window.advertory)||void 0===t?void 0:t.initialized))return;const[n,i]=(e=>e.reduce(([e,t],n)=>{var i;return(null===(i=null==n?void 0:n.finnBlink)||void 0===i?void 0:i.loadOnlyFinnBlink)?[[...e,n],t]:[e,[...t,n]]},[[],[]]))(e),o=(e=>{const{queryConfig:{placementBatches:t,batchSize:n=y}={},pageContext:{deviceType:i}}=w.get(),o=Qn(e),r=Object.keys((null==t?void 0:t[i])||{}).map(e=>o[e]||[]).filter(e=>e.length>0),a=new Set(r.flat().map(({targetId:e})=>e)),s=e.filter(({targetId:e})=>!a.has(e));return[...r,...di(s,n)]})(i);for(const e of o)hr(e)?(v("core loadAds without lazy loading",{placementsToLoad:e}),yield vr(e)):e.length&&(v("core loadAds with lazy loading",{placementsToLoad:e}),yield fr(e));const{finnBlink:r}=w.get();if((null==r?void 0:r.enabled)&&n.length>0){const{handleFinnBlinkOnlyPlacements:e}=yield import("./index-DIr0kArr.js");yield e(n)}}),fr=e=>o(void 0,void 0,void 0,function*(){const{queryConfig:{lazyLoadingV3:{enabled:t=!1,rootMargin:n="200% 0px"}={}}={}}=w.get(),i=[];if(!t)return v("lazy load is not enabled",{placements:e}),void(yield vr(e));const o=new IntersectionObserver((t,n)=>{t.filter(({isIntersecting:e,target:{id:t}})=>e&&!t.includes("wallpaper")).forEach(t=>{v("lazy load is enabled - handler start",{loadedTargetIds:i,placements:e});const o=e.every(e=>i.includes(e.targetId)),r=e.map(e=>e.targetId);!o&&i.push(...r),!o&&vr(e),v("lazy load is enabled - handler stop",{loadedTargetIds:i,placements:e,arePlacementsLoaded:o,targetIds:r}),n.disconnect()})},{rootMargin:n});e.forEach(e=>{const t=document.getElementById(e.targetId);t&&(v("lazy loading - observe element",{targetId:e.targetId,element:t}),o.observe(t))})}),yr=()=>o(void 0,void 0,void 0,function*(){const e=(()=>{const e={adRequested:[],adRendered:[]};return{emit:(t,n)=>o(void 0,void 0,void 0,function*(){yield Promise.all(e[t].map(e=>e(n)))}),on:(t,n)=>{e[t].push(n)}}})();e.on("adRendered",e=>o(void 0,void 0,void 0,function*(){if(!e||!("targetId"in e))return;const t=dr.find(({targetId:t})=>t===e.targetId);t&&(yield gr(t,e),dr=dr.filter(e=>e.targetId!==t.targetId))})),yield sr.bindEvents(e)}),br=(e,t)=>o(void 0,void 0,void 0,function*(){var n,i;if(v(`Advertory update called with config: ${JSON.stringify(e)}, options: ${JSON.stringify(t)}`),!(null===(n=null===window||void 0===window?void 0:window.advertory)||void 0===n?void 0:n.initialized))return v("Advertory update skipped - Advertory is not initialized"),[];const{clearAds:o,disableAds:r,reloadExistingAds:a,renderFinnBlinkPlacements:s,contextSelector:d}=null!=t?t:{},l=Object.keys(null!=e?e:{}).length>0;let c=[];if(r)return qn(),dr=[],Fn(),[];if(o&&(c=null!==(i=qn())&&void 0!==i?i:[]),o&&!l)return[];o&&l&&(dr=[],Fn()),a&&(qn(),document.querySelectorAll('[data-advertory-ad-rendered="true"]').forEach(e=>{En(e.id)})),yield Rn(e),(null==e?void 0:e.pageSectionsSelectors)&&ar(),yield pr();const{clientSidePlacements:u,serverSidePlacements:p}=Ko(Xn(d)),g=[...u,...p];((e,t)=>{if(0===e.length)return;const n=new Set(t.map(({targetId:e})=>sn(e)));e.filter(e=>n.has(e)).forEach(e=>En(e))})(c,g),((e,t)=>{if(0===e.length)return;const n=new Set(t.map(({targetId:e})=>sn(e)));e.filter(e=>!n.has(e)).forEach(e=>Tn(e))})(c,g);let h=u;return s&&(h=h.filter(e=>Ne(e.targetId))),Xo(p,w.get()),h.length>0&&(dr=[...dr,...h.map(e=>Object.assign({},e))],ui(h),vi(h),yield mr(h)),dr}),wr=(e,t,n)=>o(void 0,void 0,void 0,function*(){var i,r;const{initConsentManager:a,getConsentAsync:s}=F(e.tcf,null===(i=e.pageContext)||void 0===i||i.isMobileApp,null===(r=e.pageContext)||void 0===r?void 0:r.countryCode),d=yield _n(e);yield Ni(),yield _i(a),yield _i(s),v("TCF resolved successfully"),yield((e,t,...n)=>o(void 0,[e,t,...n],void 0,function*(e,t,n=wi){var i,r;sr=n,w.set(e),w.setHandlers(Object.assign(Object.assign({},t),e.customHandlers));const{norstat:a,kilkaya:s,rightColumnSplit:d,finnBlink:l}=e;E.initialize(),window.addEventListener("message",Pi,!1);const[c]=yield Promise.allSettled([sr.setup(),he(e),o(void 0,void 0,void 0,function*(){const{developerOptions:{gptUrl:e}={},tcf:t,pageContext:{isMobileApp:n,countryCode:i}}=w.get();(yield R(t,n,i,"gpt-endpoint"))&&(yield Ee(null!=e?e:"https://securepubads.g.doubleclick.net/tag/js/gpt.js"))}),o(void 0,void 0,void 0,function*(){const{brandmetrics:{enabled:e,brandmetricsUrl:t}={},tcf:n,pageContext:{isMobileApp:i,countryCode:o}}=w.get(),{getConsentAsync:r}=F(n,0,o),a=yield r();if(e&&t&&a){if(yield Ee(t),document.querySelector(`.${$i}`))return window._brandmetrics=window._brandmetrics||[],void window._brandmetrics.push({cmd:"_loadsurvey"});new MutationObserver((e,t)=>{for(const n of e){if("childList"!==n.type)return;Array.from(n.addedNodes).some(e=>{var t;return null===(t=e.outerHTML)||void 0===t?void 0:t.includes($i)})&&(t.disconnect(),window._brandmetrics=window._brandmetrics||[],window._brandmetrics.push({cmd:"_loadsurvey"}))}}).observe(document,{childList:!0,subtree:!0,attributes:!0})}}),D(),o(void 0,void 0,void 0,function*(){const{gdpr:{gdprUrl:e,allowHidingAds:t=!0}={}}=w.get();t&&(window.gdpr=window.gdpr||{},window.gdpr.allowHidingAds=!0),yield Ee(null!=e?e:"https://cogwheel.inventory.schibsted.io/prod/latest/gdpr-bundle.js")})]);if("rejected"===c.status)throw c.reason;if(v("Driver has been set up"),null==a?void 0:a.enabled){const{loadNorstat:e}=yield import("./index-Ft7iLn6n.js");yield e()}if(v("Libraries have been loaded and trackers have been set"),ar(),yield yr(),yield pr(),v("Page options have been set"),ur(e),v("Advertory is setup on window"),"dom-discovered"===sr.capabilities.tagDefinition)return yield null===(i=sr.requestPage)||void 0===i?void 0:i.call(sr),void v("Ads requested via dom-discovered driver");const{clientSidePlacements:u,serverSidePlacements:p}=Ko(Xn());if(dr=u,Xo(p,e),ui(dr),vi(dr),yield mr(dr),v("Ads has been loaded",dr),cn(dr),null==l?void 0:l.enabled){const{replaceAdsWithFinnBlink:t}=yield import("./index-DIr0kArr.js");yield t(null===(r=null==e?void 0:e.pageContext)||void 0===r?void 0:r.deviceType,e.finnBlink)}if(null==d?void 0:d.enabled){const{initRightColumnSplit:t}=yield import("./index-Y357TZLq.js");t(e.rightColumnSplit)}if(null==s?void 0:s.enabled){const{runKilkaya:t}=yield import("./index-Ck8M4dSC.js");yield t(e)}}))(d,t,n),v("Run function resolved successfully")}),Cr=["sponsor","seamless"],Ir=["shopping"],Er=(e,t,n,i)=>{var o;const{image:r,icon:a,sponsoredBy:s,title:d,clickUrl:l,cta:c,body:u,desc2:p,video:v,description:g,customTitle1:h,customTitle2:m,customTitle3:f,customTitle4:y,customBody1:b,customBody2:w,customBody3:C,customBody4:I,customBody5:E,customIcon1:T,customIcon2:S,customDisplayUrl1:A,customDisplayUrl2:O}=e,x=(e,t="")=>{var n;return e?null!==(n=e.url)&&void 0!==n?n:e:t};return Object.assign({containerId:n,img:x(r),imgWidth:null==r?void 0:r.width,imgHeight:null==r?void 0:r.height,imgAltText:null!=d?d:"",logo:(()=>{var e;const t=Cr.some(e=>null==p?void 0:p.includes(e))&&"dark"===(null===(e=i.appearanceConfig)||void 0===e?void 0:e.theme)&&T;return x(t?T:a)})(),sponsoredBy:null!=s?s:"",title:null!=d?d:"",url:null!=l?l:"",cta:null!=c?c:"",description:null!==(o=null!=u?u:g)&&void 0!==o?o:"",desc2:null!=p?p:"",video:v,customTitle1:null!=h?h:"",customTitle2:null!=m?m:"",customTitle3:null!=f?f:"",customTitle4:null!=y?y:"",customBody1:null!=b?b:"",customBody2:null!=w?w:"",customBody3:null!=C?C:"",customBody4:null!=I?I:"",customBody5:null!=E?E:"",logo2:x(S),previewVideoSrc:null!=A?A:"",feedUrl:null!=O?O:""},t)},Tr=(e,t)=>{const n=(i=L,window.location.href.includes(i));var i;const o=new URLSearchParams(window.location.search).get(L),r=t.includes("native_recirc");return n&&o?o:(null==e?void 0:e.includes("recirc"))&&!Ir.includes(t.toLowerCase())?r?"native_recirc":"recirc":(null==e?void 0:e.includes("sponsor"))?"sponsorstripe":null},Sr=(e,n,i,o)=>{const r=document.querySelector(`#${e}`);r&&n&&(r.innerHTML=n,((e,n)=>{const i=e.parentElement,{publisher:o,pageType:r}=n,a=o&&Object.values(t).includes(o);i&&a&&$o(o,e,No.NATIVE_AD,r)})(r,i),o())},Ar=(e,t,n)=>{var i;const o=((e,t,n)=>{var i;const{displayTemplates:o,videoTemplates:r}=n,a="default";if(!e.native)return null;const{native:s,targetId:d}=e,{desc2:l=a}=e.native,c=l.toLowerCase(),u=null!==(i=Tr(e.targetId,l))&&void 0!==i?i:c,p=ct[t.language||_.NO],v=Er(s,p,d,t);return(s.video?r[u]:o[u]||o.default)(v,t)})(e,t,n);Sr(e.targetId,o,t,()=>{const{nativeTrackingConfig:{enabled:n=!0}={}}=t;n&&Bo(e,t)});const r=document.querySelector(`#${e.targetId}`);r&&Zo(r,null===(i=e.native)||void 0===i?void 0:i.customDisplayUrl2)},Or=e=>(t,n)=>{var i;const{targetId:o}=t,r=document.querySelector(`#${o}`);if(!r)return;const a=e.getOptions(null!=n?n:{});Ar(t,a,e.templates),null===(i=e.postProcess)||void 0===i||i.call(e,t,r)},xr=()=>{if(!window.location.search.includes("kv_"))return{};const e={},t=(()=>{const e=new URLSearchParams(window.location.search);return Object.fromEntries(e)})();return Object.keys(t).forEach(n=>{n.startsWith("kv_")&&(e[n.slice(3)]=t[n])}),e},kr=e=>{const{siteSpecificConfig:t}=w.get(),n=(null==t?void 0:t.dynamicOutstreamFormats)||[];return 0!==n.length&&n.some(t=>e.includes(t))};class Pr{constructor(){this.keywords={}}add(e){return Object.assign(this.keywords,e),this}addAsync(e){return o(this,void 0,void 0,function*(){return Object.assign(this.keywords,yield e),this})}addIf(e,t){return e&&Object.assign(this.keywords,t),this}addIfAsync(e,t){return o(this,void 0,void 0,function*(){return e&&Object.assign(this.keywords,yield t()),this})}build(){return this.keywords}}const Lr=9826;class jr{constructor(){this.getSupplyTypeKeywords=()=>{const{pageContext:{deviceType:e,isMobileApp:t}}=w.get();if(t){return{"aa-sch-supply_type":`app_${e===Mn?"phone":Dn}`}}return{"aa-sch-supply_type":`web_${this.getPageOptionsFormatDevice(e)}`}}}prepare(e){return o(this,void 0,void 0,function*(){return Object.assign(Object.assign({},e),{keywords:Object.assign(Object.assign(Object.assign(Object.assign({},e.keywords),this.getSupplyTypeKeywords()),yield this.getFormattedExternalIdKeywords()),this.getHasContextKeywords(e.keywords)),user:{externalUid:yield this.getExternalUid(),dnt:yield this.isTrackingForbidden()}})})}getFormattedExternalIdKeywords(){return o(this,void 0,void 0,function*(){const e=yield this.getExternalUid(),t=this.getUserId();return{"aa-sch-externalid_src":Number(!!e)+Number(!!t)}})}getUserId(){return(()=>{const e=$t("_pulse2data");return e?e.split(",")[2]:void 0})()}getExternalUid(){return o(this,void 0,void 0,function*(){return yield Nt(w.get())})}isTrackingForbidden(){return o(this,void 0,void 0,function*(){return(null===navigator||void 0===navigator?void 0:navigator.globalPrivacyControl)||"1"===(null===navigator||void 0===navigator?void 0:navigator.doNotTrack)||"DO_NOT_TRACK"===(yield this.getExternalUid())})}getMember(){const{pageOptions:{member:e},developerOptions:{testMember:t=Lr}={}}=w.get();return"true"===k("inventory_test")?t:e}getCMPValue(e){return localStorage.getItem(`CMP:${e}`)?"0"===localStorage.getItem(`CMP:${e}`)?"0":"1":"0"}getPublisherKeywords(){const{pageContext:{publisher:e}}=w.get();return{"aa-sch-publisher":`${e}`}}getAnalyticsConsentKeywords(){return{"aa-sch-cmp_analytics":this.getCMPValue("analytics")}}getAdvertisingConsentKeywords(){return o(this,void 0,void 0,function*(){const{tcf:e,pageContext:{isMobileApp:t,countryCode:n}}=w.get(),{getConsentAsync:i}=F(e,0,n);return{"aa-sch-cmp_advertising":(yield i())?"1":"0"}})}getPageTypeKeywords(){const{pageContext:{pageType:e}}=w.get();return{"aa-sch-page_type":e}}getCountryCodeKeywords(e){return{"aa-sch-country_code":e}}getInventoryTypeKeywords(){return{"aa-sch-inventory_type":"editorial"}}getHasContextKeywords(e){const t=e["aa-sch-context_keyword"];return{"aa-sch-has_context_keyword":Array.isArray(t)&&t.length?1:0}}getPageOptionsFormatDevice(e="desktop"){return"mobile"===e?"phone":e}}const _r=new jr;function $r(e=!1){var t,n;const i=null===(n=null===(t=window.navigator)||void 0===t?void 0:t.userAgent)||void 0===n?void 0:n.toLocaleLowerCase(),o=co();return{OS:o,mobileOS:["ios","android"].includes(o)?o:"unknown",isHybridApp:i.includes("hermes"),appMode:e?"hybrid":"notinapp"}}_r.prepare.bind(_r);const Nr=["aLOLE","xBqQj","1KaqJ","1nzXzK","opm8zV","4qKXKR","Ad9QgE"];function qr(e){return t=window.location.pathname.split("/").slice(-2,-1).pop()||"",Nr.includes(t)?{"no-sno-news-section":`${e}_doedsfall`}:{};var t}class Fr extends jr{constructor(){super(...arguments),this.getDeviceKeywords=()=>{const{pageContext:{deviceType:e}}=w.get();return{"no-sno-device":this.getPageOptionsFormatDevice(e)}}}getAppTypeKeywords(){const{pageContext:{deviceType:e,isMobileApp:t}}=w.get(),{OS:n,isHybridApp:i}=$r(t);return{"no-sno-apptype":n&&e&&i?`${n}_${this.getPageOptionsFormatDevice()}_hybrid`:"none"}}getObituariesKeywords(e){return qr(e)}getSectionPageTypeKeywords(){var e,t;const{pageOptions:n,pageContext:{pageType:i}}=w.get(),o=null!==(t=null===(e=n.keywords["no-sno-news-section"])||void 0===e?void 0:e.toString())&&void 0!==t?t:"ettan";return{"no-sno-section-page_type":`${o.split("_").pop()||o}_${"article"===i?"article":"front"}`}}}const Rr=new class extends Fr{prepare(e){return o(this,void 0,void 0,function*(){var t,n,i,o,r,a,s;const d=w.get(),l=null!==(i=null===(n=null===(t=d.pageSetup)||void 0===t?void 0:t.pageOptions)||void 0===n?void 0:n.options)&&void 0!==i?i:{},c=null!==(a=null===(r=null===(o=d.pageSetup)||void 0===o?void 0:o.pageOptions)||void 0===r?void 0:r.keywords)&&void 0!==a?a:{},u=null===(s=d.siteSpecificConfig)||void 0===s?void 0:s.publisherClassName,p=new Pr;yield p.addAsync(this.getAdvertisingConsentKeywords()),yield p.addAsync(K(d,l.addPublisherToGeo?{addPublisherToGeo:!0}:void 0)),yield p.addIfAsync(c.externalIdSrc,()=>this.getFormattedExternalIdKeywords()),p.add(this.getSupplyTypeKeywords()).add(fe()).addIf(c.appType,this.getAppTypeKeywords()).addIf(c.device,this.getDeviceKeywords()).addIf(c.analyticsConsent,this.getAnalyticsConsentKeywords()).addIf(c.sectionPageType,this.getSectionPageTypeKeywords()).addIf(c.hasContext,this.getHasContextKeywords(e.keywords)).add(e.keywords).addIf(c.obituaries&&void 0!==u,void 0!==u?this.getObituariesKeywords(u):{});const v=p.build(),g=!1!==l.includeExternalUid;return Object.assign(Object.assign({},e),{keywords:v,user:Object.assign(Object.assign({},me(_.NO)),g?{externalUid:yield this.getExternalUid()}:{}),member:this.getMember()})})}},Mr=Rr.prepare.bind(Rr);class Dr extends jr{constructor(){super(...arguments),this.getDeviceKeywords=()=>{const{pageContext:{deviceType:e}}=w.get();return{"se-generic-sitemode":this.getPageOptionsFormatDevice(e)}}}getScreenKeywords(){const e=function(){const e=window.innerWidth,t=window.innerHeight,n=document.documentElement.clientWidth,i=document.documentElement.clientHeight;return{width:e||n||0,height:t||i||0}}(),t={width:null!==(i=null===(n=window.screen)||void 0===n?void 0:n.width)&&void 0!==i?i:0,height:null!==(r=null===(o=window.screen)||void 0===o?void 0:o.height)&&void 0!==r?r:0};var n,i,o,r;return{"se-generic-viewportheight":e.height,"se-generic-viewportwidth":e.width,"se-generic-screenheight":t.height,"se-generic-screenwidth":t.width}}getExternalIdSrc(){return o(this,void 0,void 0,function*(){const e=yield this.getExternalUid(),t=this.getUserId();return e?{"se-generic-externalid_src":Number(!!e)+Number(!!t)}:{"se-generic-externalid_src":0}})}getAppTypeKeywords(){const{pageContext:{isMobileApp:e}}=w.get(),{appMode:t,mobileOS:n}=$r(e);return{"se-generic-appmode":t,"se-generic-mobileos":n}}getPublisherGroup(){return{"se-generic-publishergroup":"schibsted"}}getSectionPageTypeKeywords(){var e,t;const{pageOptions:n,pageContext:{pageType:i}}=w.get();return{"se-generic-section-page_type":`${null!==(t=null===(e=n.keywords["se-generic-section"])||void 0===e?void 0:e.toString())&&void 0!==t?t:"ettan"}_${"article"===i?"article":"front"}`}}}const Br=new class extends Dr{prepare(e){return o(this,void 0,void 0,function*(){var t,n,i,r,a,s;const d=w.get(),l=null!==(i=null===(n=null===(t=d.pageSetup)||void 0===t?void 0:t.pageOptions)||void 0===n?void 0:n.options)&&void 0!==i?i:{},c=null!==(s=null===(a=null===(r=d.pageSetup)||void 0===r?void 0:r.pageOptions)||void 0===a?void 0:a.keywords)&&void 0!==s?s:{},u=new Pr;yield u.addAsync(this.getAdvertisingConsentKeywords()),yield u.addAsync(K(d,l.addPublisherToGeo?{addPublisherToGeo:!0}:void 0)),yield u.addIfAsync(c.externalIdSrc,()=>this.getExternalIdSrc()),yield u.addIfAsync(c.sdkVersion,()=>o(void 0,void 0,void 0,function*(){return{"se-generic-sdk-version":"function"==typeof window.apntag.getAstVersion?window.apntag.getAstVersion():""}})),u.add(this.getSupplyTypeKeywords()).add(fe()).addIf(c.appType,this.getAppTypeKeywords()).addIf(c.device,this.getDeviceKeywords()).addIf(c.screen,this.getScreenKeywords()).addIf(c.analyticsConsent,this.getAnalyticsConsentKeywords()).addIf(c.sectionPageType,this.getSectionPageTypeKeywords()).addIf(c.hasContext,this.getHasContextKeywords(e.keywords)).addIf(c.hasPlusMembership,{"se-generic-has_plus":"plus"===$t("X-AB-Site-Version")?"yes":"no"}).add(e.keywords);const p=u.build(),v=!1!==l.includeExternalUid;return Object.assign(Object.assign({},e),{keywords:p,user:Object.assign(Object.assign({},me(_.SE)),v?{externalUid:yield this.getExternalUid()}:{}),member:this.getMember()})})}},Ur=Br.prepare.bind(Br);let Hr;const Wr=()=>{(()=>{var e;const{placements:t,pageContext:{deviceType:n}}=w.get(),i=null!==(e=t[n])&&void 0!==e?e:[];return"tablet"===n&&0===i.length?t.desktop:i})().forEach(({targetId:e,adUnitId:t})=>{if(!t)return;const n=document.getElementById(e);n?n.dataset.adUnitId=t:v("relevant-managed requestPage - placement container was not found",{targetId:e})})},Vr=()=>{const{prebid:e}=w.get();return Boolean((null==e?void 0:e.enabled)&&e.manageAdserver&&!It())},zr={name:"relevant-managed",capabilities:{tagDefinition:"dom-discovered",deferredRequest:!1,deferredRender:!1,refresh:!1},setup:()=>o(void 0,void 0,void 0,function*(){var e;const{prebid:t}=w.get();Vr()?(null==t?void 0:t.prebidUrl)?(jt(e=>Z().push(e)),yield Ee(null!==(e=null==t?void 0:t.adServerUrl)&&void 0!==e?e:"https://s1.adform.net/banners/scripts/adx.js"),yield Ee(t.prebidUrl)):v("relevant-managed setup - prebidUrl is required, skipping script loading"):v("relevant-managed setup - managed prebid is disabled, skipping script loading")}),setTargeting:()=>o(void 0,void 0,void 0,function*(){if(!Vr())return;const{pageOptions:e}=w.get(),t={site:{keywords:(n=null==e?void 0:e.keywords,Object.values(null!=n?n:{}).flatMap(e=>Array.isArray(e)?e:[e]).filter(e=>void 0!==e).join(","))}};var n;Z().push(()=>{Y().addPrebidConfig({ortb2:t})})}),requestPage:()=>o(void 0,void 0,void 0,function*(){const{prebid:e,tcf:t,pageContext:n}=w.get();if(!Vr())return void v("relevant-managed requestPage - managed prebid is disabled, skipping");if(!(null==e?void 0:e.configId))return void v("relevant-managed requestPage - configId is required, skipping");(yield R(t,null==n?void 0:n.isMobileApp,null==n?void 0:n.countryCode,"relevant-managed-requestPage"))?(Wr(),null==Hr||Hr.emit("adRequested"),Z().push(()=>{v("relevant-managed requestPage - loadPrebid",{configId:e.configId}),Y().loadPrebid({configId:e.configId,noGpt:!0,manageAdserver:!0})})):v("relevant-managed requestPage - consent not granted, skipping")}),bindEvents:e=>o(void 0,void 0,void 0,function*(){Hr=e})},Kr={prepareTag:e=>{var t;const{keywords:n,targetId:i,invCode:o,dynamicSizeWidthCheck:r,globalPlacementId:a}=e,{pageSetup:s,pageContext:{countryCode:d}}=w.get(),{tag:{useAppTabletInvCode:l=!0}={}}=null!=s?s:{},c=((e,t)=>{const{pageContext:{isMobileApp:n}}=w.get();return n?((e,t)=>e.replace(/wtb|wde|wph/g,e=>"wph"===e?"aph":t?"atb":e))(e,t):e})(o,l),u=(e=>{const{pageContext:{countryCode:t}}=w.get(),{keywords:n,dynamicSizeWidthCheck:i}=e,o=`${z(t)}-adformat`,r=n?n[o]:[];if(!r)return{};const a=(Array.isArray(r)?r:[r]).filter(e=>!(e in Ae)||window.innerWidth>=Ae[e]);return{[o]:i?a:r}})(e),p=(e=>{const{pageContext:{countryCode:t}}=w.get(),n=`${z(t)}-targetid`;return e?{[n]:[e]}:{}})(i),v=(e=>{var t;const[,n]=null!==(t=e.match(/-((w|a)(?:ph|de|tb))-/))&&void 0!==t?t:[];switch(n){case"wde":return{"aa-sch-supply_type":"web_desktop"};case"wtb":return{"aa-sch-supply_type":"web_tablet"};case"wph":return{"aa-sch-supply_type":"web_phone"};case"aph":return{"aa-sch-supply_type":"app_phone"};default:return}})(c),g=xr(),h=(e=>kr(e)?{"aa-sch-dynamic-outstream":["true"]}:{})(o),m=((e,t)=>kr(e)?Object.assign(Object.assign({},t),{playerSkin:{videoBackgroundColor:"#e6e7e8"}}):{})(o,{safeFrameAutoInitialSize:!0}),f=r&&e.sizes.length>0?e.sizes.filter(([e])=>e<=window.innerWidth):e.sizes,y=(new Pr).add(null!=n?n:{}).add(u).add(p).add(null!=v?v:{}).add(h).add(g).addIf(null===(t=null==s?void 0:s.tag)||void 0===t?void 0:t.reloadKeywords,{[`${z(d)}-adreload`]:"0"}).build();return Object.assign(Object.assign({},e),{sizes:f,invCode:c,keywords:y,rendererOptions:m,globalPlacementId:a||c})},preparePageOptions:e=>o(void 0,void 0,void 0,function*(){const{pageContext:{countryCode:t}}=w.get();return yield t===_.SE?Ur(e):Mr(e)}),siteEvents:e},Gr=((e,t,n)=>({init:i=>{return r=Object.assign(Object.assign({},i),{siteSpecificConfig:t}),a=e,s=n,o(void 0,void 0,void 0,function*(){v(`Received configuration passed to Advertory: ${JSON.stringify(r)}`),yield wr(r,a,s)});var r,a,s},update:br,renderNativeAd:cr,getVideoPPIDs:Ce,createInitNativeAd:Or,getVideoAdsConfig:Oo}))(Kr,n,zr);export{No as A,Kt as B,_ as C,ct as D,Jt as E,Ke as F,Qe as G,qo as H,Ct as I,rn as J,Oe as K,ht as L,xe as M,t as N,uo as O,vo as P,po as Q,an as R,Be as S,qt as T,Te as U,Kn as V,Gr as W,o as _,Ie as a,In as b,w as c,i as d,qi as e,$o as f,sn as g,R as h,dt as i,be as j,or as k,v as l,rr as m,ir as n,Ro as o,J as p,En as q,Ee as r,ji as s,ci as t,Li as u,St as v,Fo as w,Xt as x,Qt as y,zt as z};
1
+ import"react/jsx-runtime";const e={adRequested:()=>{},adAvailable:e=>{},adLoaded:e=>{},adNoBid:e=>{},adError:(e,t)=>{},adCollapse:()=>{},adRequestFailure:e=>{},adBadRequest:e=>{},adLoadedMediated:e=>{},adNoBidMediated:e=>{}},t={SVD:"svd",VG:"vg",AFTENPOSTEN:"aftenposten",SA:"sa",BT:"bt",AFTONBLADET:"aftonbladet",E24:"e24",MINMOTE:"minmote",PENT:"pent",GODT:"godt",TEK:"tekno",KLART:"klart",TVNU:"tvnu",POLARIS:"polaris",KOKET:"koket",TV4:"tv4",FOTBOLLSKANALEN:"fotbollskanalen",OMNI:"omni",MTV:"mtv"},n={publisherClassName:t.MTV,classesToRemoveOnRefresh:[]};function i(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}return n}function o(e,t,n,i){return new(n||(n=Promise))(function(o,r){function a(e){try{d(i.next(e))}catch(e){r(e)}}function s(e){try{d(i.throw(e))}catch(e){r(e)}}function d(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}d((i=i.apply(e,t||[])).next())})}function r(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var a,s;"function"==typeof SuppressedError&&SuppressedError;var d=r(function(){if(s)return a;s=1;var e=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var n=Object.prototype.toString.call(e);return"[object RegExp]"===n||"[object Date]"===n||function(e){return e.$$typeof===t}(e)}(e)},t="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function n(e,t){return!1!==t.clone&&t.isMergeableObject(e)?l((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function i(e,t,i){return e.concat(t).map(function(e){return n(e,i)})}function o(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}(e))}function r(e,t){try{return t in e}catch(e){return!1}}function d(e,t,i){var a={};return i.isMergeableObject(e)&&o(e).forEach(function(t){a[t]=n(e[t],i)}),o(t).forEach(function(o){(function(e,t){return r(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,o)||(r(e,o)&&i.isMergeableObject(t[o])?a[o]=function(e,t){if(!t.customMerge)return l;var n=t.customMerge(e);return"function"==typeof n?n:l}(o,i)(e[o],t[o],i):a[o]=n(t[o],i))}),a}function l(t,o,r){(r=r||{}).arrayMerge=r.arrayMerge||i,r.isMergeableObject=r.isMergeableObject||e,r.cloneUnlessOtherwiseSpecified=n;var a=Array.isArray(o);return a===Array.isArray(t)?a?r.arrayMerge(t,o,r):d(t,o,r):n(o,r)}return l.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,n){return l(e,n,t)},{})},a=l}());const l={arrayMerge:(e,t)=>t,isMergeableObject:e=>"object"==typeof e&&null!==e&&e.constructor===Object},c=(e,t)=>d(e,t,l),u=(e,t)=>Object.assign(Object.assign({},e),t),p=(e,t)=>{var n;return c(null!==(n=e)&&void 0!==n?n:{},t)},v=(e,t)=>{const n="[Advertory LOG]: ";location.search.includes("ast_debug=true")&&(t?console.log(n,e,t):console.log(n,e))},g=(e,t)=>{const n="[Advertory WARN]: ";t?console.warn(n,e,t):console.warn(n,e)},h=e=>{(e=>{const{pageContext:t,pageOptions:n,placements:i,appearanceConfig:o}=null!=e?e:{};(null==t?void 0:t.publisher)||g("pageContext.publisher is required."),(null==t?void 0:t.countryCode)||g("pageContext.countryCode is required."),(null==t?void 0:t.pageType)||g("pageContext.pageType is required."),(null==t?void 0:t.deviceType)||g("pageContext.deviceType is required."),n||g("pageOptions is required."),i||g("placements is required."),(null==o?void 0:o.defaultThreshold)||g("appearanceConfig.defaultThreshold is required.")})(e),(e=>{var t,n,i,o;const r=e.pageSectionsSelectors,a=[{flag:!!(null===(t=e.takeover)||void 0===t?void 0:t.enabled),property:"header",featureName:"takeover"},{flag:!!(null===(n=e.sponsorstripe)||void 0===n?void 0:n.enabled),property:"header",featureName:"sponsorstripe"},{flag:!!(null===(i=e.widescreenSwitching)||void 0===i?void 0:i.enabled),property:"right",featureName:"widescreenSwitching"},{flag:!!(null===(o=e.wallpaper)||void 0===o?void 0:o.enabled),property:"header",featureName:"wallpaper"}];for(const{flag:e,property:t,featureName:n}of a)e&&!(null==r?void 0:r[t])&&g(`pageSectionsSelectors.${t} is required when ${n} is enabled.`)})(e)},m={placements:(e,t)=>t,takeover:p,refreshConfig:u,editory:p,appearanceConfig:p,pageContext:u,pageOptions:u,pageSectionsSelectors:u,tcf:u},f=(e,t)=>{const n=e;for(const e of Object.keys(m)){const i=t[e];void 0!==i&&(n[e]=m[e](n[e],i))}},y=6;class b{set(e){h(e),this.config=e}modifyConfigProperties(e){if(!this.config)throw new Error("Config was accessed before it had been initialized.");f(this.config,e)}get(){if(!this.config)throw new Error("Config was accessed before it had been initialized.");return this.config}getHandlers(){if(!this.siteHandlers)throw new Error("Handlers were accessed before it had been initialized.");return this.siteHandlers}setHandlers(e){this.siteHandlers=c(b.DEFAULT_SITE_HANDLERS,e)}}b.DEFAULT_SITE_HANDLERS={siteEvents:e,initNativeAd:()=>{}};const w=new b,C=w.modifyConfigProperties.bind(w);class I{initialize(){this.DATA=Object.assign({},I.INITIAL_DATA)}getData(e){if(!this.DATA)throw new Error("Storage was accessed with invalid data.");return this.DATA[e]}setData(e,t){if(!this.DATA)throw new Error("Storage was accessed before it had been initialized.");this.DATA[e]=Object.assign(Object.assign({},this.DATA[e]),t)}}I.INITIAL_DATA={wallpaper:{isAvailable:!1},horseshoe:{isAvailable:!1},initialClassNames:{},alertoryConfigKeywords:{}};const E=new I,T=864e5,S=(()=>{const e=e=>{const t=window.localStorage.getItem(e);if(!t)return null;try{return JSON.parse(t)}catch(e){return v("Error with parsing localStorage data"),null}},t=(e,t)=>{window.localStorage.setItem(e,JSON.stringify(t))};return{get:e,set:t,setWithTimestamp:(e,n,i=T)=>{const o={data:n,expirationTime:(new Date).getTime()+i};t(e,JSON.stringify(o))},getByTimestamp:(t,n=T)=>{const i=e(t);if(!i)return null;if(!n)return i;try{const{expirationTime:e,data:t}=JSON.parse(i);return(new Date).getTime()<=e?t:null}catch(e){return v("Error with parsing localStorage data"),null}}}})(),A="glimrTags",O=["glwe_","glwet_"],x={geofenceTags:[],geoTags:[],weatherTags:[]},k=e=>new URLSearchParams(window.location.search).get(e),P="takeover",L="native_override_desc2",j=e=>new Promise(t=>{if(!window._tcf_||!(null==e?void 0:e.enabled))return void t(!1);const n=(()=>{if(!window._tcf_)return null;const e=window._tcf_.getPermissionSync("CMP:advertising");if(null===e)return null;const t=Number(e);return v("Advertising permission value obtained synchronously: ",e),Boolean(t)})();if(null!==n)return void t(n);let i=!1;const o=e=>{i||(v("Resolving advertising permission value obtained"),i=!0,t(e))},r=setTimeout(()=>{v("Advertising permission timed out, resolving with false"),o(!1)},3e3);window._tcf_.onTcfReady(()=>{v("On Tcf Ready called, waiting for permission"),clearTimeout(r)}),window._tcf_.getPermission("CMP:advertising",e=>{clearTimeout(r);const t=Number(e);v("Advertising permission value obtained asynchronously: ",e),o(Boolean(t))})}),_={NO:"no",SE:"se"},$="cmp:loaded";let N="undefined"!=typeof window?window._tcf_:void 0,q=!1;const F=(e,t,n)=>{const i=!!(null==e?void 0:e.enabled),r=(null==e?void 0:e.timeout)||3e3,a=k("bypass_tcf"),s=()=>{if(!(null==e?void 0:e.enabled))return!0;if(((e,t)=>e?!!t&&(v("TCF bypass param detected, returning consent: true"),!0):(v("TCF is not enabled, returning consent: true"),!0))(i,a))return!0;if(q)return null;if(!N)throw new Error("[Advertory]: getConsentSync method was called before the tcfManager was available.");const t=N.getConsentedToAllSync();return v(`TCF consented to all is: ${t}`),N.getConsentedToAllSync()};return{initConsentManager:()=>(null==e?void 0:e.enabled)?new Promise((e,t)=>{if(v("Getting TCF consent manager..."),window._tcf_)return v("TCF consent manager is already available"),N=window._tcf_,void e(N);v("TCF consent manager is not available");const n=()=>{v("CMP loaded, resolving consent manager..."),i&&clearTimeout(i),window._tcf_?(N=window._tcf_,e(N)):t(new Error("CMP loaded but window._tcf_ is not defined"))},i=setTimeout(()=>{document.removeEventListener($,n),q=!0,t(new Error("Timeout waiting for CMP to load"))},r);v("Listening for CMP loaded event..."),document.addEventListener($,n,{once:!0})}):Promise.resolve(null),getConsentSync:s,getConsentAsync:()=>o(void 0,void 0,void 0,function*(){if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return v(`Schibsted Ad Choices override value is set, returning override value: ${e.schibstedAdChoicesOverrideValue}`),Boolean(Number(e.schibstedAdChoicesOverrideValue));const t=(null==e?void 0:e.advertisingCMPSignalEnabled)&&n===_.SE,i=(null==e?void 0:e.advertisingCMPSignalEnabled)&&n===_.NO;if(t||i)return v("Schibsted Ad Choices is enabled, getting advertising permissions..."),yield j(e);if(!(null==e?void 0:e.enabled))return!0;const o=s();return null!==o?o:yield new Promise((e,t)=>{try{if(!N)throw new Error("[Advertory]: getConsentAsync method was called before the tcfManager was available.");let t=!1;const n=n=>{t||(t=!0,e(n))},i=setTimeout(()=>{v("TCF isConsentedToAll timed out, resolving with false"),n(!1)},r);N.onTcfReady(()=>{v("On Tcf Ready called, waiting for consent"),clearTimeout(i)}),N.isConsentedToAll(t=>{clearTimeout(i),e(t)})}catch(e){t(e)}})})}},R=(e,t,n,...i)=>o(void 0,[e,t,n,...i],void 0,function*(e,t,n,i="NOT SPECIFIED FEATURE"){if(!(null==e?void 0:e.schibstedConsentToPayEnabled))return v(`Schibsted Consent to Pay is not enabled, returning true for ${i}`),!0;if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return v(`Schibsted Ad Choices override value is set, returning override value: ${null==e?void 0:e.schibstedAdChoicesOverrideValue} for ${i}`),Boolean(Number(null==e?void 0:e.schibstedAdChoicesOverrideValue));const{getConsentAsync:o}=F(e,0,n);return(yield o())?(v(`Schibsted Ad Choices consent given according to TCF consent manager for ${i}`),!0):(v(`Schibsted Ad Choices consent not given according to TCF consent manager for ${i}`),!1)}),M=(...e)=>o(void 0,[...e],void 0,function*(e=w.get()){const{tcf:t,pageContext:{isMobileApp:n,countryCode:i}={}}=e;if(null==t?void 0:t.schibstedConsentToPayEnabled){return yield R(t,n,i,"glimr")}const{getConsentAsync:o}=F(t,0,i);return yield o()}),D=()=>o(void 0,void 0,void 0,function*(){const{glimr:e}=w.get();if(!(yield M())||!(null==e?void 0:e.enabled))return void v("No consent for glimr data fetching.");const t=yield(n=500,o(void 0,void 0,void 0,function*(){return yield Promise.race([o(void 0,void 0,void 0,function*(){const e=yield import("glimr-sdk");return e.default||e}),new Promise(e=>setTimeout(()=>e(!1),n))])}));var n;if(t)try{t.setTagCacheTimeInSeconds(300),yield new Promise(n=>{t.getTags(e.clientId,(e,t)=>{S.setWithTimestamp(A,{tags:e,tagMappings:t}),n(!0)})})}catch(e){v(`Error during getting glimr data: ${e}`)}else v("Timeout (500ms) while loading glimr package. Skipping glimr data fetching.",{glimr:t})}),B={svd:"svd",vg:"vg",aftenposten:"no-aftenposten",sa:"no-stavangeraftenblad",bt:"no-bergenstidende",aftonbladet:"aftonbladet",e24:"e24",minmote:"minmote",pent:"pent",godt:"godt",tek:"no-tek"},U=e=>O.some(t=>e.startsWith(t)),H=e=>e.startsWith("glgc_"),W=e=>e.startsWith("glci_"),V=e=>!U(e)&&!H(e),z=e=>e===_.NO?"no-sno":"se-generic",K=(e,t)=>o(void 0,void 0,void 0,function*(){const{addPublisherToGeo:n}=t||{},{glimr:i,pageContext:{countryCode:o}={}}=e,r=yield M(e);if(!(null==i?void 0:i.enabled)||!r)return v("No consent for getting glimr tags."),{};const a=z(o),s=G(e,Boolean(n));return{[`${a}-geo`]:s.geoTags,[`${a}-weather`]:s.weatherTags,[`${a}-geofence`]:s.geofenceTags}}),G=(e,t)=>{const n=X();if(!n)return x;const i=((e=[])=>e.filter(U))(n),o=((e=[])=>e.filter(H))(n),r=((e=[],t,n)=>{var i;const o=e.filter(V);if(n&&t){const{publisher:e}=null!==(i=t.pageContext)&&void 0!==i?i:{},n=B[e]||e;o.push(n)}return o})(n,e,t);return{geoTags:r,geofenceTags:o,weatherTags:i}},X=()=>{const e=S.getByTimestamp(A);return e&&"string"!=typeof e?null==e?void 0:e.tags:null},J=()=>{var e;return((e=[])=>e.filter(W))(null!==(e=X())&&void 0!==e?e:[])},Q=()=>(window.apntag||(window.apntag={anq:[],defineTag:e=>({targetId:""}),showTag:e=>{},onEvent:(e,t,n)=>{},offEvent:(e,t)=>{},refresh:e=>{},modifyTag:(e,t)=>{},loadTags:e=>{},emitEvent:(e,t)=>{},setPageOpts:e=>{},resizeAd:(e,t,n)=>{},getAstVersion:()=>"",setEndpoint:(e,t)=>{},fireImpressionTrackers:e=>{},setKeywords:()=>{},clearRequest:()=>{}}),window.apntag),Y=()=>(window.relevantDigital||(window.relevantDigital={cmd:[]}),window.relevantDigital),Z=()=>{const e=Y();return e.cmd||(e.cmd=[]),e.cmd},ee=(e={},t)=>{const{prebid:{externalUidInAuctionEnabled:n,forwardGlimrTags:i=!1}={},pageContext:{countryCode:o}}=w.get(),r=[`${z(o)}-geo`],a=["aa-sch-context_keyword","aa-sch-publisher","se-aftonbladet-section","se-svd-section","se-generic-section","no-sno-news-section","no-sno-news-subsection","aa-sch-cmp_advertising",...i?r:[]],s=Object.fromEntries(Object.entries(e).filter(([e])=>a.includes(e))),d=t&&n?{id:t}:{};return{ortb2:Object.assign({site:{ext:{data:s}}},d)}},te="opaque",ne=e=>o(void 0,void 0,void 0,function*(){if(e.type!==te){if(!e.ok)throw new Error(e.statusText);return yield e.json()}}),ie={get:(e,...t)=>o(void 0,[e,...t],void 0,function*(e,t={}){var{timeout:n}=t,r=i(t,["timeout"]);if(n)return((e,t,n)=>o(void 0,void 0,void 0,function*(){const i=new AbortController,o=setTimeout(()=>i.abort(),n);try{const n=yield fetch(e,Object.assign(Object.assign({},t),{signal:i.signal}));return ne(n)}finally{clearTimeout(o)}}))(e,r,n);const a=yield fetch(e,r);return ne(a)}),post:(e,t,n)=>o(void 0,void 0,void 0,function*(){const i=JSON.stringify(n),o=yield fetch(e,{method:"POST",headers:t,body:i});if(!o.ok)throw new Error(o.statusText);return yield o.json()})},oe="advertory:ppids-cache",re={[_.SE]:`SCH${_.SE.toUpperCase()}-EnvHash`,[_.NO]:`SCH${_.NO.toUpperCase()}-EnvHash`},ae={[_.SE]:`SCH${_.SE.toUpperCase()}-UserHash`,[_.NO]:`SCH${_.NO.toUpperCase()}-UserHash`},se={[_.SE]:`sch${_.SE}-envhash-v3`,[_.NO]:`sch${_.NO}-envhash-v3`},de={[_.SE]:`sch${_.SE}-userhash-v3`,[_.NO]:`sch${_.NO}-userhash-v3`},le={[_.SE]:`'sch${_.SE}-iosid-v3'`,[_.NO]:`'sch${_.NO}-iosid-v3'`},ce={[_.SE]:`sch${_.SE}-androidid-v3`,[_.NO]:`sch${_.NO}-androidid-v3`},ue={[_.SE]:"sdrn:schibsted.com:user",[_.NO]:"sdrn:spid.no:user"};class pe{constructor(){this.eids=[]}add(e,t){return e&&this.eids.push({id:e,source:t}),this}buildRyEids(){return this.eids.map(({id:e,source:t})=>({source:t,uids:[{id:e,atype:1,ext:{stype:"ppuid"}}]}))}buildEids(){return[...this.eids]}buildVideoEids(){return this.eids.map(({id:e,source:t})=>`${t},${e}`).join("|")}buildNorstatPath(){const e=this.eids[0];return e?`${e.source}-${e.id}`:""}buildNorstatQuery(e){const t=new URLSearchParams;return this.eids.slice(1).forEach(({id:n,source:i})=>{t.append(e,`${i}-${n}`)}),t}}const ve=new class{constructor(){this.ppid1=null,this.ppid2=null}processPPIDs(e){return o(this,arguments,void 0,function*(e,t=1e4){var n,i;const o=yield Promise.race([new Promise(e=>{setTimeout(()=>e({xandr:{ppId1:"",ppId2:""}}),t)}),e.instance.getAdvertisingIdentifiers()]);this.setPPIDs(null===(n=o.xandr)||void 0===n?void 0:n.ppId1,null===(i=o.xandr)||void 0===i?void 0:i.ppId2)})}getPPIDs(){var e,t;return null!==this.ppid1&&null!==this.ppid2||v("PPIDv2s accessed before they have been initialized"),{ppid1:null!==(e=this.ppid1)&&void 0!==e?e:"",ppid2:null!==(t=this.ppid2)&&void 0!==t?t:""}}setPPIDs(e,t){this.ppid1=null!=e?e:"",this.ppid2=null!=t?t:""}},ge=new class{constructor(){this.ppid1=null,this.ppid2=null,this.idfv=null,this.anId=null}processPPIDs(e,t){return o(this,void 0,void 0,function*(){var n,i,o,r,a,s,d,l,c,u,p;const v=S.get(oe),g=yield this.getNewPPIDs(e,t);if(this.shouldHash(v,g)){const t=null!==(n=e.hasherUrl)&&void 0!==n?n:"https://hasher.schibsted.com/api/v1/hash",l=this.createHasherPayload(g),c=yield this.hashPPIDs(l,t);return c?(this.cachePPIDs(l,c,null===(i=g.idfv)||void 0===i?void 0:i.plain,null===(o=g.anId)||void 0===o?void 0:o.plain),void this.setPPIDs(null!==(r=c.userId)&&void 0!==r?r:"",null!==(a=c.environmentId)&&void 0!==a?a:"",null===(s=g.idfv)||void 0===s?void 0:s.plain,null===(d=g.anId)||void 0===d?void 0:d.plain)):void this.setPPIDs("","")}this.setPPIDs(null!==(l=null==v?void 0:v.userId.hashed)&&void 0!==l?l:"",null!==(c=null==v?void 0:v.environmentId.hashed)&&void 0!==c?c:"",null===(u=null==g?void 0:g.idfv)||void 0===u?void 0:u.plain,null===(p=null==g?void 0:g.anId)||void 0===p?void 0:p.plain)})}getPPIDs(){var e,t;return null!==this.ppid1&&null!==this.ppid2||v("PPIDv3s accessed before they have been initialized"),{ppid1:null!==(e=this.ppid1)&&void 0!==e?e:"",ppid2:null!==(t=this.ppid2)&&void 0!==t?t:"",idfv:this.idfv,anId:this.anId}}setPPIDs(e,t,n,i){this.ppid1=null!=e?e:"",this.ppid2=null!=t?t:"",this.idfv=null!=n?n:null,this.anId=null!=i?i:null}shouldHash(e,t){var n,i;if(!e)return!0;for(const o in e){if((null===(n=e[o])||void 0===n?void 0:n.plain)!==(null===(i=t[o])||void 0===i?void 0:i.plain))return!0}return!1}cachePPIDs(e,t,n,i){const o=Object.assign(Object.assign({clientId:{plain:e.clientId},userId:{plain:e.userId,hashed:t.userId},environmentId:{plain:e.environmentId,hashed:t.environmentId},trackerType:{plain:e.trackerType},trackerVersion:{plain:e.trackerVersion}},n?{idfv:{plain:n}}:{}),i?{anId:{plain:i}}:{});S.set(oe,o)}hashPPIDs(e,t){return o(this,void 0,void 0,function*(){try{const n=new Headers({"Content-Type":"application/json"});return yield ie.post(t,n,e)}catch(e){return v("Error with hashing PPIDs",e),null}})}getNewPPIDs(e,t){return o(this,arguments,void 0,function*({clientId:e,instance:t},n){const i=yield((e,t)=>o(void 0,void 0,void 0,function*(){const n=yield e.getUserId();return n?`${ue[t]}:${n}`:null}))(t,n),r=yield(a=t,o(void 0,void 0,void 0,function*(){const e=yield a.getEnvironmentId();return e?`sdrn:schibsted:environment:${e}`:null}));var a;const s=window.advertory_idfv,d=window.advertory_anId;return Object.assign(Object.assign({clientId:{plain:e},userId:{plain:i},environmentId:{plain:r},trackerType:{plain:"Advertory"},trackerVersion:{plain:"1.0.0"}},s?{idfv:{plain:s}}:{}),d?{anId:{plain:d}}:{})})}createHasherPayload({clientId:e,trackerType:t,trackerVersion:n,userId:i,environmentId:o}){return{clientId:e.plain,trackerType:t.plain,trackerVersion:n.plain,userId:i.plain,environmentId:o.plain}}},he=e=>o(void 0,void 0,void 0,function*(){const{pulse:t,tcf:n,pageContext:{countryCode:i,isMobileApp:o}}=e;if(!(yield R(n,o,i,"setXandrPPIDs")))return;if(!t)return;(yield Promise.allSettled([ve.processPPIDs(t,null==n?void 0:n.timeout),ge.processPPIDs(t,i)])).forEach((e,t)=>{if("rejected"===e.status){v(`Cannot fetch PPIDs v${t+2}`,e.reason)}})}),me=e=>{const{ppid1:t,ppid2:n}=ve.getPPIDs(),{ppid1:i,ppid2:o,idfv:r,anId:a}=ge.getPPIDs();return{userIds:[{type:"extendedIDs",eids:(new pe).add(n,re[e]).add(t,ae[e]).add(o,se[e]).add(i,de[e]).add(r,le[e]).add(a,ce[e]).buildEids()}]}},fe=()=>{const{ppid1:e,ppid2:t}=ve.getPPIDs();return{"aa-sch-schuserhash":e?"1":"0","aa-sch-schenvhash":t?"1":"0"}},ye=e=>{const{ppid1:t,ppid2:n}=ve.getPPIDs(),{ppid1:i,ppid2:o,idfv:r,anId:a}=ge.getPPIDs();if(!n)return{};return{userSync:{userIds:[{name:"pubProvidedId",params:{eids:(new pe).add(n,re[e]).add(t,ae[e]).add(o,se[e]).add(i,de[e]).add(r,le[e]).add(a,ce[e]).buildRyEids()}}]}}},be=e=>{const{ppid1:t,ppid2:n}=ve.getPPIDs(),{ppid1:i,ppid2:o}=ge.getPPIDs(),r=(new pe).add(n,re[e]).add(t,ae[e]).add(o,se[e]).add(i,de[e]);return`${r.buildNorstatPath()}?${r.buildNorstatQuery("alias").toString()}`},we=e=>{const{ppid1:t,ppid2:n}=ve.getPPIDs(),{ppid1:i,ppid2:o}=ge.getPPIDs();return(new pe).add(n,re[e]).add(t,ae[e]).add(o,se[e]).add(i,de[e]).buildRyEids()},Ce=e=>o(void 0,void 0,void 0,function*(){const{ppid1:t,ppid2:n}=ve.getPPIDs(),{ppid1:i,ppid2:o}=ge.getPPIDs(),r=(new pe).add(n,re[e]).add(t,ae[e]).add(o,se[e]).add(i,de[e]);return yield new Promise(e=>{e(r.buildVideoEids())})}),Ie=()=>o(void 0,void 0,void 0,function*(){const{ppid1:e}=ge.getPPIDs();return e}),Ee=(e,...t)=>o(void 0,[e,...t],void 0,function*(e,{timeout:t}={timeout:1e3}){document.querySelector(`script[src="${e}"]:not([type="module"])`)||(yield new Promise((n,i)=>{const o=document.createElement("script");o.async=!0,o.src=e;const r=()=>{s(),n()},a=()=>{s(),i(new Error(`Failed to load ${e}`))},s=()=>{o.removeEventListener("load",r),o.removeEventListener("error",a),clearTimeout(d)};o.addEventListener("load",r),o.addEventListener("error",a);const d=setTimeout(()=>{s(),i(new Error(`Loading script timed out: ${e}`))},t);document.head.appendChild(o)}).catch(e=>{console.error(e)}))}),Te={ABSOLUTE_FULLSCREEN:"ABSOLUTE_FULLSCREEN",ANY_FULLSCREEN:"ANY_FULLSCREEN",NINESIXTEEN:"NINESIXTEEN",FULLWIDTH:"FULLWIDTH",FULLSQUARE:"FULLSQUARE",TAKEOVER:"TAKEOVER",VELVET_TAKEOVER:"VELVET_TAKEOVER",WALLPAPER:"WALLPAPER",COLLAPSE:"COLLAPSE"},Se={ANY_FULLSCREEN:[{width:6,height:6},{width:1920,height:1080},{width:3,height:3}],ABSOLUTE_FULLSCREEN:[{width:6,height:6}],NINESIXTEEN:[{width:1080,height:1920}],FIXED_FULLSCREEN:[{width:1920,height:1080},{width:3,height:3}],FULLWIDTH:[{width:5},{width:400,height:400}],FULLSQUARE:[{width:1080,height:1080}],NATIVE_AD:[{width:1,height:1}],TAKEOVER:[{width:4,height:4}],VELVET_TAKEOVER:[{width:7,height:7}],WALLPAPER:[{width:2,height:2}],COLLAPSE:[{width:2,height:1}]},Ae={wallpaper:1600,"l-format":1600},Oe=e=>{const{banner:t,targetId:n}=e;return!(!t||(null==n?void 0:n.includes("takeover")))&&Be(e,Te.ANY_FULLSCREEN)},xe=e=>{const{native:t}=e;return!!t},ke=e=>Be(e,Te.FULLWIDTH),Pe=e=>{const{targetId:t}=e;return t.includes("takeover")||Be(e,Te.TAKEOVER)},Le=e=>Be(e,Te.TAKEOVER),je=e=>Be(e,Te.WALLPAPER),_e=e=>Be(e,Te.COLLAPSE),$e=e=>e.targetId.includes("sponsorstripe"),Ne=e=>{const t=document.querySelector(`#${e}`);return!!t&&"true"===t.dataset.isFinnBlinkPlacement},qe=e=>e.targetId.startsWith("panorama")||e.targetId.startsWith("modul"),Fe=e=>e.targetId.startsWith("midboard"),Re=e=>e.targetId.includes("widescreen"),Me=e=>e.width>=1260&&e.width<=1280,De=e=>e.width>=1600&&e.width<=1620,Be=(e,t)=>{const n=Se[t];if(!n)return!1;return!!n.find(t=>{var n,i;const o=(null===(n=e.banner)||void 0===n?void 0:n.width)||e.width,r=(null===(i=e.banner)||void 0===i?void 0:i.height)||e.height,a=t.width===o,s=!t.height||t.height===r;return a&&s})},Ue="advertory-fullscreen-scroll",He="advertory-fullscreen-scroll-wrapper",We="fullscreen-scroll-in-screen",Ve="in-screen",ze=e=>e.includes("snoap.no"),Ke=e=>{var t,n,i,o,r;return!!(null===(r=null===(o=null===(i=null===(n=null===(t=window.apntag)||void 0===t?void 0:t.requests)||void 0===n?void 0:n.tags[e])||void 0===i?void 0:i.adResponse)||void 0===o?void 0:o.ads[1])||void 0===r?void 0:r.rtb)},Ge=(e,t=(...e)=>{})=>{const n=t.toString();if(0===e.length)return n;const i=n.substring(0,n.indexOf("=>")).replace("(","").replace(")","").split(",").map(e=>e.trim()),o=n.substring(n.indexOf("{")+1,n.lastIndexOf("}")),r=i.map((t,n)=>`${t} = "${e[n]}"`);return new Function(...r,o).toString()},Xe=Ge([],()=>{const e=({width:e,height:t})=>{var n;const i=null===(n=document.querySelector("#sf_align"))||void 0===n?void 0:n.querySelector("div");if(!i)return;const{clientWidth:o,clientHeight:r}=i,a=e/o,s=t/r;i.style.transform=`scale(${a},${s})`,i.style.transformOrigin="left top"},t=()=>{const{innerWidth:t,innerHeight:n}=window;e({width:t,height:n})};window.addEventListener("resize",t=>{if(!t.currentTarget)return;const n={width:innerWidth,height:innerHeight};e(n)});const n=window.frameElement;(null==n?void 0:n.contentWindow)?n.contentWindow.document.body.onload=t:document.body.onload=t}),Je=e=>{const t=Ge([],()=>{new MutationObserver((e,t)=>{document.querySelector("iframe")&&((()=>{const e=document.querySelector("iframe");e&&(e.onload=()=>{if(!e.contentDocument)return;document.body.style.height="100%",document.documentElement.style.height="100%",e.height="100%",e.width="100%";const t=e.contentDocument.createElement("style");t.textContent="\n adfm-ad {\n height: 100% !important;\n width: 100% !important;\n }\n ",e.contentDocument.head.appendChild(t);const n=e.contentDocument.querySelector("iframe");if(!(null==n?void 0:n.contentDocument))return;const i=n.contentDocument.createElement("style");i.textContent="\n #image {\n background-size: cover !important;\n }\n ",new MutationObserver((e,t)=>{n.contentDocument&&(n.contentDocument.head.appendChild(i),t.disconnect())}).observe(e.contentDocument,{childList:!0,subtree:!0})})})(),t.disconnect())}).observe(document.body,{childList:!0,subtree:!0})}),n=document.createElement("script");n.textContent=`(${t})()`;return e+n.outerHTML},Qe=e=>{if((e=>e.includes("google"))(e))return e;const t=document.createElement("div");t.innerHTML=e;const n=t.querySelector("img");if(!n)return e;n.style.width="100%",n.style.height="100%",n.style.objectFit="cover",n.style.position="fixed";return t.innerHTML},Ye=[],Ze={},et=(e,t)=>{var n;const i=(null===(n=null==t?void 0:t.options)||void 0===n?void 0:n.fadingHeaderEnabled)||!1,o=new IntersectionObserver(e=>tt(e,i),{}),r=it(e);o.observe(e),i&&(Ze[r]=at(e,null==t?void 0:t.options))},tt=(e,t)=>{e.forEach(({target:e,isIntersecting:n})=>{const i=it(e);n?(nt(i,n),ot(e,i,t)):(nt(i,n),rt(e,i,t))})},nt=(e,t)=>{var n,i;const o=null===(n=document.getElementById(e))||void 0===n?void 0:n.querySelector("iframe");if(!o)return;const r=t?"showFullscreen":"hideFullscreen";null===(i=o.contentWindow)||void 0===i||i.postMessage(`advertory:${r}-${e}`,"*")},it=e=>{var t;return null===(t=e.children[0])||void 0===t?void 0:t.id},ot=(e,t,n)=>{e.classList.add(Ve),document.body.classList.add(We),window.dispatchEvent(new CustomEvent("advertory:fullscreenScrollInView")),Ye.includes(t)||Ye.push(t),n&&window.addEventListener("scroll",Ze[t],{passive:!0})},rt=(e,t,n)=>{Ye.includes(t)&&(n&&window.removeEventListener("scroll",Ze[t]),document.body.classList.remove(We),e.classList.remove(Ve),window.dispatchEvent(new CustomEvent("advertory:fullscreenScrollNotInView")))},at=(e,t={fadingHeaderEnabled:!1,headerSelectors:[".js-masthead"],skyscraperSelectors:[".skyscraper_r"],headerZIndex:3})=>{const{headerSelectors:n=[".js-masthead"],skyscraperSelectors:i=[".skyscraper_r"],headerZIndex:o=3}=t,r=[],a=[];return n.forEach(e=>{var t;const n=null!==(t=document.querySelector(e))&&void 0!==t?t:document.querySelector("header");n&&r.push(n)}),i.forEach(e=>{const t=document.querySelector(e);t&&a.push(t)}),()=>{r.length&&st(e,r,o,0),a.length&&st(e,a,o,40)}},st=(e,t,n,i)=>{const o=e.offsetHeight,r=window.scrollY,a=e.getBoundingClientRect().top+r;t.forEach(e=>{const t=e.offsetHeight;let s;s=a>r?(a-r)/t-i:(r+t-(a+o))/t;const d=s<=0;e.style.visibility=d?"hidden":"",e.style.zIndex=d?"":n.toString(),e.style.pointerEvents=d?"none":"all",e.style.opacity=s.toString()})};function dt(e){if(!e||"undefined"==typeof window)return;const t=document.createElement("style");return t.setAttribute("type","text/css"),t.innerHTML=e,document.head.appendChild(t),e}dt('body.fullscreen-scroll-in-screen{overflow-x:hidden}.advertory-fullscreen-scroll-wrapper{visibility:hidden;overflow:visible;width:100vw !important;height:var(--advertory-fullscreen-scroll-vh, 100vh) !important;position:relative;margin:var(--advertory-fullscreen-scroll-wrapper-margin);z-index:1;display:block !important;min-height:250px;padding:0 !important;clip-path:polygon(0 0, 100vw 0, 100vw 100dvh, 0 100dvh);-webkit-clip-path:polygon(0 0, 100vw 0, 100vw 100dvh, 0 100dvh);flex-shrink:0}.advertory-fullscreen-scroll-wrapper>div{position:fixed;top:0;left:0;height:var(--advertory-fullscreen-scroll-vh, 100vh) !important;width:100vw !important;overflow:hidden}html[data-app-platform=iOS] .advertory-fullscreen-scroll-wrapper>div{height:calc(var(--advertory-fullscreen-scroll-vh, 100vh) - env(safe-area-inset-top) + var(--advertory-ios-safe-area-top-fix, 0px) - env(safe-area-inset-bottom)) !important;top:unset !important;bottom:env(safe-area-inset-bottom) !important}.advertory-fullscreen-scroll-wrapper>div>iframe{height:inherit !important;width:inherit !important;display:none !important}.advertory-fullscreen-scroll-wrapper.in-screen{visibility:visible;overflow:visible;width:100vw !important}.advertory-fullscreen-scroll-wrapper.in-screen>div>iframe{display:block !important}.advertory-fullscreen-scroll-wrapper.in-screen:before{content:"";width:100vw;height:150dvh;position:relative !important;display:block;transform:translateX(-50%);overflow:visible;z-index:1;left:50%;top:-150dvh;padding:0 !important}.advertory-fullscreen-scroll-wrapper.in-screen:after{content:"";width:100vw;height:150dvh;position:relative !important;display:block;transform:translateX(-50%);overflow:visible;z-index:1;left:50%;top:-50dvh}.advertory-fullscreen-scroll{position:fixed;top:var(--advertory-fullscreen-scroll-top, 0px);left:var(--advertory-fullscreen-scroll-left, 0px);width:var(--advertory-fullscreen-scroll-vw, 100vw);height:var(--advertory-fullscreen-scroll-vh, 100vh);overflow:hidden}.advertory-fullscreen-scroll:not([data-ad-label-custom])::before{text-transform:lowercase}.advertory-fullscreen-scroll::before{content:attr(data-ad-label);box-sizing:border-box;position:fixed;top:var(--advertory-political-box-offset, 0px)}html[data-app-platform=iOS] .advertory-fullscreen-scroll::before{top:calc(env(safe-area-inset-top) - var(--advertory-ios-safe-area-top-fix, 0px) + var(--advertory-political-box-offset, 0px)) !important}.advertory-fullscreen-scroll::before{left:calc(50vw - 628px);width:calc(100% - 36px);max-width:1250px;text-align:left;background-color:hsla(0,0%,100%,.6);color:#212121;font-family:Ester Blenda,Arial,sans-serif;font-size:11px;font-weight:400;font-style:normal;line-height:1;margin:16px 2px;padding:10px;z-index:1;visibility:inherit !important}@media screen and (max-width: 1290px){.advertory-fullscreen-scroll::before{left:16px}}.advertory-fullscreen-scroll[data-move-cogwheel-to-the-left=true]>div[role=button]{left:calc(50vw - 623px);right:unset}@media screen and (max-width: 1290px){.advertory-fullscreen-scroll[data-move-cogwheel-to-the-left=true]>div[role=button]{left:22px;right:unset}}.advertory-fullscreen-scroll[data-move-cogwheel-to-the-left=true]::before{padding-left:32px}.advertory-fullscreen-scroll>div[id*=utif]{display:block;width:var(--advertory-fullscreen-scroll-vw, 100vw) !important;height:var(--advertory-fullscreen-scroll-vh, 100vh) !important}html[data-app-platform=iOS] .advertory-fullscreen-scroll>div[id*=utif]{height:calc(var(--advertory-fullscreen-scroll-vh, 100vh) - env(safe-area-inset-top) + var(--advertory-ios-safe-area-top-fix, 0px) - env(safe-area-inset-bottom)) !important}.advertory-fullscreen-scroll>div[id*=utif]{overflow:hidden}.advertory-fullscreen-scroll>div[id*=utif]>iframe{display:block;height:inherit !important;width:inherit !important}.advertory-fullscreen-scroll>div[role=button]{z-index:2;opacity:1;background:rgba(0,0,0,0) !important;left:unset;position:fixed !important;right:calc(50vw - 623px);top:calc(19px + var(--advertory-political-box-offset, 0px)) !important;width:26px !important;height:26px !important}html[data-app-platform=iOS] .advertory-fullscreen-scroll>div[role=button]{top:calc(env(safe-area-inset-top) - var(--advertory-ios-safe-area-top-fix) + 19px + var(--advertory-political-box-offset, 0px)) !important}@media screen and (max-width: 1290px){.advertory-fullscreen-scroll>div[role=button]{right:22px}}');const lt="left",ct={no:{adText:"ANNONSE",adFrom:"ANNONSE FRA",adContent:"ANNONSØRINNHOLD",adContentFrom:"ANNONSØRINNHOLD FRA",sponsorstripeInfoOpenButtonLabel:"Sponset innhold - Klikk for detaljer",sponsorstripeInfoCloseButtonLabel:"Lukk",sponsorstripeInfoText:"Annonsøren som presenterer denne saken har betalt for profilering av logoen i artikler som omhandler denne innholdskategorien",readMoreLabel:"Les mer"},se:{adText:"ANNONS",adFrom:"ANNONS FRÅN",adContent:"EXTERN LÄNK",adContentFrom:"EXTERN LÄNK FRÅN",sponsorstripeInfoOpenButtonLabel:"Sponsrat innehåll - Klicka för mer information",sponsorstripeInfoCloseButtonLabel:"Nära",sponsorstripeInfoText:"Annonsören som presenterar den här artikeln har betalat för att få sin logotyp profilerad i artiklar som handlar om den här innehållskategorin",readMoreLabel:"Läs mer"}};let ut=null;const pt=(e,t)=>{let n=e;return n=(e=>{const t=document.createElement("script");return t.textContent="\n window.addEventListener('message', function(event) {\n if (event.data === 'advertory:showFullscreen-'+document.body.id) {\n document.body.style.display = \"block\";\n } else if (event.data === 'advertory:hideFullscreen-'+document.body.id) {\n document.body.style.display = \"none\";\n }\n });\n ",e+t.outerHTML})(e),n=(e=>{const t=document.createElement("script");return t.textContent=`(${Xe})()`,e+t.outerHTML})(n),n=Qe(n),n=(e=>{if(ze(e))return e;const t=document.createElement("style");return t.textContent="\n .GoogleActiveViewClass, .GoogleActiveViewElement {\n transform: translate(calc(-50% + 50vw), 0);\n width: 100vw !important;\n height: 100vh !important;\n }\n .GoogleActiveViewClass img, .GoogleActiveViewElement img {\n width: 100vw;\n height: 100vh;\n object-fit: cover;\n }\n .GoogleActiveViewClass iframe {\n width: 100vw !important;\n height: 100vh !important;\n }\n ",e+t.outerHTML})(n),(e=>e.includes("adform"))(n)&&(n=(e=>{const t=document.createElement("script");t.textContent='\n var frame = window.frameElement;\n if (frame) {\n frame.style.removeProperty("width");\n frame.style.removeProperty("height");\n frame.contentWindow.document.body.onload = onLoad;\n } else {\n document.body.onload = onLoad;\n }\n \n function onLoad() {\n var iframe = document.querySelector("adfm-ad iframe");\n if (iframe) {\n var image = iframe.contentWindow.document.getElementById("image");\n if (!image) return;\n image.style.backgroundSize = "cover";\n } else {\n var iframe = document.querySelector(".adform-adbox iframe");\n if (iframe) {\n var style = document.createElement("style");\n style.textContent = "#banner {width: 100% !important; height: 100% !important;} #banner img {object-fit: cover;}";\n iframe.contentDocument.body.append(style);\n iframe.style = "width: 100vw; height: 100vh;";\n } else {\n var observer = new MutationObserver(function(mutations, obs) {\n for (var mutation of mutations) {\n var iframe = mutation.addedNodes[0];\n if (iframe && iframe.nodeName === "IFRAME") {\n iframe.style = "width: 100vw; height: 100vh;";\n iframe.dataset.contents += "<style>#banner {width: 100% !important; height: 100% !important;} #banner img {object-fit: cover;}</style>";\n obs.disconnect();\n }\n }\n });\n observer.observe(document.body, { childList: true, subtree: true });\n }\n }\n }\n ';const n=document.createElement("style");return n.textContent="\n html, body, adfm-ad, #sf_align, .adform-adbox, .adform-adbox img {\n width: 100% !important;\n height: 100% !important;\n object-fit: cover;\n max-width: 100vw;\n }\n ",e+n.outerHTML+t.outerHTML})(n)),(e=>e.includes("529299503"))(n)&&(n=Je(n)),(e=>e.includes("de17a"))(n)&&(n=(e=>ze(e)?e:e.replace("<iframe ","<iframe onload=\"\n var f = document.querySelector('iframe');\n if (!f) return;\n var s = f.style;\n s.transform = 'scale(' + (window.innerHeight / Number(f.height)).toFixed(2) + ')';\n s.right = parseInt((Number(f.width) - window.innerWidth) / 2) + 'px';\n s.bottom = parseInt((Number(f.height) - window.innerHeight) / 2) + 'px';\n s.position = 'relative';\n \" "))(n)),ze(n)&&(n=(e=>{let t=e.replace("<html>",'<html style="height: 100%;">');return t=t.replace("</iframe>","</iframe><style>#sf_align {height: 100%;} #sf_align iframe {height: 100vh;}</style>"),t=t.replace('<body style="','<body style="height: 100%; '),t})(n)),(e=>e.includes("kreateam.io"))(n)&&(n=(e=>{let t=e.replace("<html>",'<html style="height: 100%;">');return t=t.replace("</div>","</div><style>#sf_align {height: 100%;} #sf_align iframe {height: 100vh;}</style>"),t=t.replace('<body style="','<body style="height: 100%; '),t})(n)),Ke(t)&&(n=(e=>{const t=document.createElement("script");t.textContent='var frame = window.frameElement;\n if (frame) {\n frame.style.width = "100vw";\n frame.style.height = "100vh";\n }';const n=document.createElement("div");return n.innerHTML=e,n.appendChild(t),n.innerHTML})(n)),n},vt=()=>{ut=null;const e=window.visualViewport,t=e?e.height:window.innerHeight,n=e?e.width:window.innerWidth,i=e?e.offsetLeft:0,o=document.documentElement;o.style.setProperty("--advertory-fullscreen-scroll-vh",`${t}px`),o.style.setProperty("--advertory-fullscreen-scroll-vw",`${n}px`),o.style.setProperty("--advertory-fullscreen-scroll-left",`${i}px`)},gt=()=>{ut||(ut=window.requestAnimationFrame(vt))},ht=(e,t)=>{var n,i,o,r,a;const{pageContext:{countryCode:s,deviceType:d}}=w.get(),{targetId:l}=e,c=null==t?void 0:t.options;document.documentElement.style.setProperty("--advertory-ios-safe-area-top-fix",null!==(n=null==c?void 0:c.iosSafeAreaTopFix)&&void 0!==n?n:"0px"),((e,t)=>{var n;const{articlesContainerWidth:i=1302,backgroundColor:o="#fff",foregroundColor:r="#fff",margin:a,beforeContentValue:s=""}=e,d=null!==(n=null==a?void 0:a[t])&&void 0!==n?n:"16px 0",l=i/2,c=document.createElement("style");c.innerHTML=`\n :root {\n --background: linear-gradient(\n to right,\n ${o} 0px,\n ${o} calc(50% - ${l}px),\n ${r} calc(50% - ${l}px),\n ${r} calc(50% + ${l}px),\n ${o} calc(50% + ${l}px),\n ${o} 100%\n ) !important;\n \n --advertory-fullscreen-scroll-wrapper-margin: ${d};\n }\n \n .advertory-fullscreen-scroll-wrapper {\n ${s&&"clip-path: polygon(0 -16px, 100vw -16px, 100vw 100dvh, 0 100dvh);\n -webkit-clip-path: polygon(0 -16px, 100vw -16px, 100vw 100dvh, 0 100dvh);"}\n }\n\n .advertory-fullscreen-scroll-wrapper:before, .advertory-fullscreen-scroll-wrapper:after {\n background: var(--background);\n content: '${s}' !important;\n }`,c.id="ad-fullscreen-scroll-wrapper-style",document.head.appendChild(c)})(null!==(i=null==c?void 0:c.overlayStyles)&&void 0!==i?i:{},d);const u=document.getElementById(l),p=null==u?void 0:u.parentElement;if(!u||!p)return;et(p,t),u.className=Ue,et(p,t),u.className="advertory-fullscreen-scroll";const v=Be(e,Te.ABSOLUTE_FULLSCREEN)?"absolute":"fixed";u.style.position=v,p.className=He,p.dataset.showTagSubscribeId=l,u.setAttribute("data-ad-label",null!==(o=null==c?void 0:c.annonsLabel)&&void 0!==o?o:ct[s].adText),(null==c?void 0:c.annonsLabel)&&(u.dataset.adLabelCustom="true"),(null==c?void 0:c.cogwheelPosition)===lt&&(u.dataset.moveCogwheelToTheLeft="true"),gt(),window.addEventListener("resize",gt),null===(r=window.visualViewport)||void 0===r||r.addEventListener("resize",gt),null===(a=window.visualViewport)||void 0===a||a.addEventListener("scroll",gt)},mt=e=>{if(!(null==e?void 0:e.classList.contains(Ue)))return;e.classList.remove(Ue),e.removeAttribute("style"),e.removeAttribute("data-ad-label"),e.removeAttribute("data-ad-label-custom");const t=e.parentElement;(null==t?void 0:t.classList.contains(He))&&(t.classList.remove(He),t.classList.remove(Ve))};var ft=Object.freeze({__proto__:null,createFullscreenScrollAd:ht,modifyFullscreenScrollAd:({targetId:e})=>{const t=(e=>{var t;const{requests:n}=window.apntag,i=Ke(e)?1:0;return null===(t=null==n?void 0:n.tags[e].adResponse.ads[i].rtb)||void 0===t?void 0:t.banner.content})(e);if(!t)return;((e,t)=>{const{requests:n}=window.apntag,i=Ke(e)?1:0,o=null==n?void 0:n.tags[e].adResponse.ads[i].rtb;o&&(o.banner.content=t)})(e,pt(t,e))},undoFullscreenScrollContainer:mt});const yt=e=>{var t;!document.querySelector(`#gdprAdTransparencyCogWheelButton-${e}`)&&(null===(t=window.gdpr)||void 0===t?void 0:t.setupButton)&&window.gdpr.setupButton(e)},bt=(e,t,n)=>{var i,o,r,a;const s=document.createElement("div");s.id=`${e}-button`,t.appendChild(s);(null===(o=null===(i=window.apntag.requests)||void 0===i?void 0:i.tags[e])||void 0===o?void 0:o.adResponse)||(null!==(r=(a=window.apntag).requests)&&void 0!==r||(a.requests={tags:{}}),window.apntag.requests.tags[e]=Object.assign(Object.assign({},window.apntag.requests.tags[e]),{adResponse:{ads:[{creative_id:n}]}})),yt(e);const d=s.firstElementChild;d&&t.insertBefore(d,s),s.remove()},wt="ad-loaded",Ct="disable-cogwheel",It=()=>null!==k("disable_prebid"),Et="0123456789abcdefghijklmnopqrstuvwxyz",Tt=(e=6)=>{if(e<=0)return"";let t="";for(let n=0;n<e;n++){t+=Et[Math.floor(36*Math.random())]}return t},St=(e,t)=>{let n=null;return(...i)=>{null===n&&(e(...i),n=setTimeout(()=>{n=null},t))}},At=new Promise(e=>{"undefined"!=typeof document&&document.prerendering?document.addEventListener("prerenderingchange",()=>e()):e()}),Ot=new Promise(e=>{if("undefined"==typeof document||!document.hidden)return void e();const t=()=>{document.hidden||(document.removeEventListener("visibilitychange",t),e())};document.addEventListener("visibilitychange",t,{once:!0})}),xt=(e,t,n)=>o(void 0,void 0,void 0,function*(){yield At,yield Ot;new IntersectionObserver((t,i)=>{t.filter(({isIntersecting:e})=>e).forEach(()=>{n(),i.unobserve(e),i.disconnect()})},{rootMargin:`${t}px 0px ${t}px 0px`}).observe(e)}),kt=()=>o(void 0,void 0,void 0,function*(){const{prebid:e,tcf:t,pageContext:{countryCode:n,isMobileApp:i,deviceType:o},fullscreenScroll:r,appearanceConfig:a,placements:s}=w.get();if(!(null==e?void 0:e.enabled))return;const{initNativeAd:d}=w.getHandlers(),{getConsentAsync:l}=F(t,0,n),c=yield l(),u=(()=>{let e=!1,t=[];const n={relevantCb:{timeout:1e3},auctionCb:{timeout:2e3}};return{getCancel:()=>e,setCancel:t=>{e=t},events:n,failsafeOnTimeout:i=>{const o=Q(),{prebid:{relevantCallbackTimeout:r}={}}=w.get(),a="relevantCb"===i&&r?r:n[i].timeout,s=setTimeout(()=>{!n[i].done&&!e&&(console.warn(`Doing failsafe loadTags() call after waiting too long for '${i}'`),e=!0,o.loadTags&&o.loadTags())},a);t.push(s)},cleanup:()=>{t.forEach(e=>clearTimeout(e)),t=[],e=!1,n.relevantCb.done=!1,n.auctionCb.done=!1}}})(),p=Q(),g=(()=>{const{requests:{user:e={userIds:[]},keywords:t={}}={}}=Q();return{user:e,keywords:t}})();u.failsafeOnTimeout("relevantCb");const{user:{externalUid:h=""}={},keywords:m}=g;Z().push(()=>{v("prebid relevantYieldQueue callback fired - RY took over");if(u.getCancel()||!p.loadTags)return v("core loadTags() call was cancelled",{cancel:u.getCancel(),apnTagLoadTags:!p.loadTags,condition:"or"}),void u.cleanup();const t=Y();u.events.relevantCb.done=!0,u.failsafeOnTimeout("auctionCb");const l=c?{gdpr:{cmpApi:"iab",timeout:8e3}}:{cmpApi:"none"};v("prebid consentManagement",l),t.addPrebidConfig(Object.assign(Object.assign({consentManagement:l,enableSendAllBids:!1},ye(n)),ee(m,h))),v("core add prebid config",Object.assign(Object.assign({consentManagement:l,enableSendAllBids:!1},ye(n)),ee(m,h))),t.loadPrebid({configId:e.configId,manageAdserver:!1,collapseEmptyDivs:!1,collapseBeforeAdFetch:!1,noGpt:!0,noSlotReload:!0,loadUnknownSlots:!0,apntagCalls:{showTag:()=>{},loadTags:e=>{v("prebid auctionCb loadTags called by RY - prebid hands off to Xandr",{targetIds:e,cancelled:u.getCancel()}),u.getCancel()||(u.events.auctionCb.done=!0,p.loadTags(e)),u.cleanup()}},customNativeRender:e=>{Pt(e,d)},directRenderFn:e=>{var t,n,d;const{settings:l,renderFn:c}=e,{bid:u,adDiv:p}=l||{};if(!p)return;const g=p.id,h=document.getElementById(g);if(!h)return;const m=null===(t=null==s?void 0:s[o])||void 0===t?void 0:t.find(e=>e.targetId===g),f=null!==(d=null!==(n=null==m?void 0:m.requestThreshold)&&void 0!==n?n:null==a?void 0:a.defaultThreshold[o])&&void 0!==d?d:0,y=Object.assign(Object.assign({},u),{targetId:g,banner:!0});v("prebid directRenderFn ad info",{targetId:g,width:null==u?void 0:u.width,height:null==u?void 0:u.height,adId:null==u?void 0:u.adId,creativeId:null==u?void 0:u.creativeId}),xt(h,f,()=>{var e;const t=c(l),n=Oe(y);if(v("prebid directRenderFn isFullscreenScrollAd",{targetId:g,isFullscreen:n,width:null==u?void 0:u.width,height:null==u?void 0:u.height}),n)v("prebid directRenderFn: creating fullscreen scroll container",{targetId:g}),ht(y,r),(e=>{const t=()=>{const t=e.contentDocument;if(!(null==t?void 0:t.body))return;const n=()=>{const e=t.querySelector("iframe");if(!e)return!1;const n=()=>{var t;const n=null===(t=e.contentDocument)||void 0===t?void 0:t.querySelector(".adn-ttpa-container");n&&(n.style.setProperty("bottom","10px","important"),n.style.setProperty("top","unset","important"))};return e.addEventListener("load",n),n(),!0};if(n())return;const i=new MutationObserver(()=>{n()&&i.disconnect()});i.observe(t.body,{childList:!0,subtree:!0})};e.addEventListener("load",t),t()})(t),i&&h.style.setProperty("--advertory-political-box-offset","30px");else{v("prebid directRenderFn: NOT fullscreen scroll - undoing container",{targetId:g}),mt(h),null===(e=null==h?void 0:h.parentElement)||void 0===e||e.classList.add("advertory-direct-render");const n=t.getAttribute("width");n&&(h.style.width=`${n}px`)}h.classList.add(wt),(null==u?void 0:u.creativeId)&&bt(g,h,Number(null==u?void 0:u.creativeId))})}}),v("core load prebid",{configId:e.configId,manageAdserver:!1,collapseEmptyDivs:!1,collapseBeforeAdFetch:!1,noGpt:!0,noSlotReload:!0,loadUnknownSlots:!0,apntagCalls:{showTag:()=>{},loadTags:e=>{u.getCancel()||(u.events.auctionCb.done=!0,p.loadTags(e))}},customNativeRender:e=>{Pt(e,d)},directRenderFn:()=>{}})})}),Pt=(e,t)=>{var n;const{divId:i,native:o,bid:r}=e,a=document.querySelectorAll(`[id^=${i}]`)[0],s=`RY-${a.id}`;((e,t)=>{e.childNodes.forEach(e=>e.style.cssText="position: absolute; z-index: -1;");const n=document.createElement("div");n.setAttribute("id",t),e.appendChild(n)})(a,s);const d=null===(n=a.getElementsByTagName("iframe")[0])||void 0===n?void 0:n.contentWindow;null==t||t({native:o,targetId:s},w.get()),null==d||d.postMessage(JSON.stringify({message:"Prebid Response",ad:"\x3c!-- nothing --\x3e",adId:r.adId}),"*")};let Lt=e=>{window.apntag.anq.push(e)};const jt=e=>{Lt=e},_t=e=>{Lt(e)},$t=e=>{const t=encodeURIComponent(e).replace(/[-.+*]/g,"\\$&"),n=new RegExp(`(?:(?:^|.*;)\\s*${t}\\s*\\=\\s*([^;]*).*$)|^.*$`);return decodeURIComponent(document.cookie.replace(n,"$1"))||null},Nt=e=>o(void 0,void 0,void 0,function*(){const{tcf:t,pageContext:{isMobileApp:n,countryCode:i}={}}=e,{getConsentAsync:o}=F(t,0,i);if(!(yield o()))return;const r=$t("_pulse2data");return r?r.split(",")[9]:void 0}),qt={SPLASH:"splash",WELCOME_PAGE:"welcomePage",TOPSCROLLER:"topscroller",VELVET:"velvet"},Ft="takeover-displayed",Rt="takeover-visit-count",Mt=14400,Dt=()=>{const e=$t(Rt);return e?parseInt(e):0},Bt=()=>{const e=Dt(),{takeover:{options:{cookieCapTime:t=Mt}={}}={}}=w.get(),n=document.location.hostname;window.document.cookie=`${Rt}=${e+1}; max-age=${t}; domain=${n}; path=/; SameSite=Lax`},Ut=()=>{const{takeover:{enabled:e=!1,options:{secondVisitEnabled:t=!1}={}}={}}=w.get();return"0"!==k(P)&&("1"===k(P)||!(!e||(()=>{var e,t;const n=(null===(t=null===(e=w.get().takeover)||void 0===e?void 0:e.options)||void 0===t?void 0:t.cookieCapName)||Ft;return"true"===$t(n)})())&&(!t||Ht()))},Ht=()=>{const e=Dt();return 0===e?(Bt(),!1):1===e},Wt=(e,t)=>[[1,1],[1920,1080]].some(([n,i])=>n===e&&i===t),Vt=()=>{const{takeover:e}=w.get();return Boolean(null==e?void 0:e.topscroller)},zt=e=>{const{width:t,height:n}=e;return Wt(t,n)?qt.SPLASH:Be(e,Te.VELVET_TAKEOVER)?qt.VELVET:Vt()?qt.TOPSCROLLER:qt.WELCOME_PAGE},Kt=()=>o(void 0,void 0,void 0,function*(){const e=document.location.hostname,{takeover:{options:{cookieCapName:t=Ft,cookieCapTime:n=Mt}={}}={},pageContext:{isMobileApp:i,countryCode:o},tcf:r}=w.get(),a=yield R(r,i,o,"ad-takeover-cookiecap");n&&a&&(window.document.cookie=`${t}=true; max-age=${n}; domain=${e}; path=/`)}),Gt=e=>{var t,n;const i=!!(null===(n=null===(t=w.get().takeover)||void 0===t?void 0:t.options)||void 0===n?void 0:n.setCookieCapForNotShownAd);return Pe(e)&&i},Xt=(e,t)=>{var n;if(t===qt.TOPSCROLLER){const{topscroller:t}=e;return null!=t?t:{}}if(t===qt.SPLASH){const{splash:t}=e;return null!=t?t:{}}return null!==(n=e.welcomePage)&&void 0!==n?n:{}},Jt=(e,t)=>{t!==qt.SPLASH?(e=>{var t,n;const i=null===(t=w.get().pageSectionsSelectors)||void 0===t?void 0:t.header,o=null===(n=w.get().takeover)||void 0===n?void 0:n.topscroller;if(!i||o)return;const r=document.querySelector(i),a=document.querySelector(".welcome-page-wrapper"),s=document.querySelector(`#${e.targetId}`),d=document.querySelector(".advertory-welcome-page-scroll");if(!(r&&a&&d&&s))return;const l=null==r?void 0:r.offsetHeight,c=Le(e)?"60svh":`calc(100svh - ${l}px)`,u=Le(e)?"calc(40svh + 30px)":`calc(${l}px + 30px)`;a.style.setProperty("height",c,"important"),s.style.setProperty("height",c,"important"),d.style.setProperty("bottom",u,"important")})(e):(e=>{var t;if(!(null===(t=w.get().takeover)||void 0===t?void 0:t.splash))return;const n=document.querySelector(".advertory-splash-navbar-wrapper"),i=document.querySelector(`#${e.targetId}`);if(!n||!i)return;const o=`calc(100svh - ${n.offsetHeight}px)`;i.style.setProperty("height",o,"important")})(e)},Qt=Ge([],()=>{new MutationObserver((e,t)=>{document.querySelector("iframe")&&((()=>{const e=document.querySelector("iframe");e&&(e.onload=()=>{if(!e.contentDocument)return;document.body.style.height="100%",document.documentElement.style.height="100%",e.height="100%",e.width="100%";const t=e.contentDocument.createElement("style");t.textContent="\n .adform-adbox {\n height: 100% !important;\n width: 100% !important;\n }\n img {\n height: 100% !important;\n width: 100% !important;\n object-fit: cover !important;\n object-position: top !important;\n }\n ",e.contentDocument.head.appendChild(t)})})(),t.disconnect())}).observe(document.body,{childList:!0,subtree:!0})});var Yt=Object.freeze({__proto__:null,addTakeoverCookie:Kt,adjustTakeoverHeight:Jt,canDisplayTakeover:Ut,getProperWelcomePageConfig:Xt,getTakeoverVariant:zt,handleTakeoverCookieOnAdNotShown:e=>o(void 0,void 0,void 0,function*(){Gt(e)&&(yield Kt())}),incrementArticleVisitCount:Bt,isSplashVariant:Wt,isTopscroller:Vt,scaleAd:Qt,shouldAddTakeoverCookieForNotShownAd:Gt});const Zt=e=>`externalImpId:'${e}'`,en=(e,t)=>t?Object.assign(Object.assign({},e),{"aa-sch-ssa-native-ad":"true","aa-sch-ssa-format":"NATIVE_CONTENT","aa-sch-ssa-market":"XNO","aa-sch-ssa-cat":["ssa_1","ssa_2","ssa_3","ssa_4","ssa_5","ssa_6","ssa_7","ssa_8","ssa_9","ssa_10","ssa_11","ssa_12","ssa_13","ssa_14","ssa_15","ssa_16","ssa_17","ssa_18","ssa_19","ssa_20","ssa_21","ssa_22","ssa_23","ssa_24","ssa_25","ssa_26","ssa_27","ssa_28","ssa_29","ssa_30"]}):e,tn=e=>{var t;const{pageSetup:{tag:{forwardExternalImpId:n=!1}={}}={},pulse:i}=w.get(),{targetId:o,sizes:r,keywords:a,allowedFormats:s,invCode:d,ssaNativeAdEnabled:l=!1,nativeCustomProperties:c,safeframeConfig:u,dynamicSizeWidthCheck:p=!1,globalPlacementId:g}=(e=>{var t;if(!e.takeoverCookieCapForSharedPlacement||Ut())return e;const n=null===(t=e.keywords)||void 0===t?void 0:t["no-sno-adformat"],i=Array.isArray(n)?n.filter(e=>e!==qt.TOPSCROLLER):n,o=Object.assign(Object.assign({},e.keywords),n&&{"no-sno-adformat":i}),r=e.sizes.filter(([e,t])=>4!==e||4!==t);return Object.assign(Object.assign({},e),{sizes:r,keywords:o})})(e),h=Object.assign({invCode:d,sizes:r,targetId:o,keywords:en(a,l),allowedFormats:s,dynamicSizeWidthCheck:p,globalPlacementId:g},u&&{safeframeConfig:u}),m=(e=>{var t,n;const i=null===(n=null===(t=null==e?void 0:e.instance)||void 0===t?void 0:t.state)||void 0===n?void 0:n.pageViewId;return i?(v("Pulse state pageViewId is:",i),i):(v("Pulse state does not contain field pageViewId or it is empty"),"")})(i);n&&m&&(v("External Impression ID assigned to defineTag:",Zt(m)),h.externalImpId=Zt(m));const f=(e=>Object.entries({video:{required:!1},address:{required:!1},saleprice:{required:!1},rating:{required:!1},price:{required:!1},phone:{required:!1},likes:{required:!1},downloads:{required:!1},customIcon1:{required:!1},customIcon2:{required:!1},customDisplayUrl1:{required:!1},customBody1:{required:!1},customBody2:{required:!1},customBody3:{required:!1},customBody4:{required:!1},customBody5:{required:!1}}).reduce((t,[n,i])=>((null==e?void 0:e.includes(n))&&(t[n]=i),t),{customTitle1:{required:!1},customTitle2:{required:!1},customTitle3:{required:!1},customTitle4:{required:!1},customDisplayUrl2:{required:!1},title:{required:!1},body:{required:!1},image:{required:!1},icon:{required:!1},sponsoredBy:{required:!1},cta:{required:!1},clickUrl:{required:!1},desc2:{required:!1},displayUrl:{required:!1},description:{required:!1}}))(c);return(null===(t=e.allowedFormats)||void 0===t?void 0:t.includes("native"))&&(h.native=f),h},nn=e=>!e.includes("takeover")||Ut(),on={nativeAd:e=>xe(e)&&!$e(e),buyrecipe:e=>e.targetId.startsWith("buyrecipe"),fullwidthAd:ke,fullscreenScroll:Oe,topscroller:e=>Pe(e)&&Vt(),splash:e=>Pe(e)&&Wt(e.width,e.height),welcomePage:Pe,wallpaper:je,skyscraper:e=>e.targetId.includes("skyscraper")&&!!e.banner,lFormat:Me,hFormat:De,toppanorama:e=>e.targetId.startsWith("toppanorama")&&!De(e)&&!Me(e),topboard:e=>e.targetId.startsWith("topboard")&&!Pe(e),widescreen:Re,insider:e=>e.targetId.startsWith("insider"),sponsorstripe:$e,brandboard:e=>(e=>(980===e.width||1920===e.width&&e.targetId.includes("brandboard"))&&!e.targetId.includes("topboard")&&!e.targetId.includes("companion")&&!qe(e))(e)&&!(e=>e.targetId.includes("backfill"))(e)&&!Fe(e),outstream:e=>"https://acdn.adnxs.com/video/outstream/ANOutstreamVideo.js"===e.renderer_url,netboard:e=>(e=>e.targetId.startsWith("netboard"))(e)||(e=>e.targetId.startsWith("board"))(e),panorama:qe,midboard:Fe},rn=({adObj:e,preferredTestIdData:t})=>{var n,i;const o=null!==(n=null==t?void 0:t.targetId)&&void 0!==n?n:null==e?void 0:e.targetId;if(!o)return;const r=null===(i=document.querySelector(`#${o}`))||void 0===i?void 0:i.parentElement;if(!r)return;if(((e,t)=>{var n,i,o,r;const a=null===(r=null===(o=null===(i=null===(n=window.apntag)||void 0===n?void 0:n.requests)||void 0===i?void 0:i.tags)||void 0===o?void 0:o[e])||void 0===r?void 0:r.invCode;a&&(t.dataset.invCode=a)})(o,r),null==t?void 0:t.testId)return void(r.dataset.testid=t.testId);const a="DIV"===(null==r?void 0:r.tagName);e&&a&&((e,t)=>{var n,i;for(const[o,r]of Object.entries(on))if(r(e)){if("nativeAd"===o){const r="default";t.dataset.testid=`${o}-${null!==(i=null===(n=null==e?void 0:e.native)||void 0===n?void 0:n.desc2)&&void 0!==i?i:r}`;break}t.dataset.testid=o;break}})(e,r)},an=e=>{var t;return(null===(t=Object.entries(on).find(([,t])=>t(e)))||void 0===t?void 0:t[0])||""},sn=e=>{const t=e.split("-"),n=t[t.length-1];return 6===n.length&&n.match(/^[a-zA-Z0-9]+$/)?t.slice(0,-1).join("-"):e},dn=e=>{if(!e)return e;const{pageContext:{countryCode:t}}=w.get(),n=z(t),i=e[`${n}-targetid`],o=i?sn(i[0]):"";return Object.assign(Object.assign({},e),i&&{[`${n}-targetid`]:[o]})},ln=e=>{const{pageContext:{countryCode:t}}=w.get(),n=z(t);return Object.assign(Object.assign(Object.assign(Object.assign({},e),e[`${n}-geo`]&&{[`${n}-geo`]:["geo-test-value"]}),e[`${n}-geofence`]&&{[`${n}-geofence`]:["geofence-test-value"]}),e[`${n}-weather`]&&{[`${n}-weather`]:["weather-test-value"]})},cn=e=>{(e=>{const t=new URLSearchParams(window.location.search);if("true"!==t.get("scrollToFirstInvCode"))return;const n=t.get("ast_override_inv_code");if(!n)return;const i=n.split(",")[0].split(":")[0],o=e.find(e=>e.invCode===i),r=document.querySelector(`[id^=${null==o?void 0:o.targetId}]`);r&&r.scrollIntoView({behavior:"smooth",block:"start"})})(e)},un=e=>{const{source:t}=e;return"csm"===t},pn="advertory-wallpaper-background",vn="advertory-with-horseshoe",gn=()=>{const e=document.querySelector(`.${pn}`);e&&e.remove()},hn=e=>{const t=e.getBoundingClientRect().top;requestAnimationFrame(()=>(e=>{if(!document.body)return;const t=document.querySelector(`.${pn}`);t&&t.style.setProperty("top",`${e}px`)})(t+15))},mn=/^wallpaper:url:(http[s]?:\/\/)?[^\s(["<,>]*\.[^\s[",><]*/,fn=e=>mn.test(e),yn=e=>e.startsWith("wallpaper:color:"),bn=e=>{const t=document.querySelector(`.${pn}`);t&&(t.style.backgroundImage=`url(${e})`)},wn=e=>{const t=document.querySelector(`.${pn}`);t&&(t.style.backgroundColor=e)};var Cn=Object.freeze({__proto__:null,adjustAdToHorseshoe:e=>{var t;const n=document.querySelector(`#${e}`);n&&(null===(t=n.parentElement)||void 0===t||t.classList.add(vn),n.classList.add(vn))},initWallpaperAd:(e,t)=>{if(!t)return;const{options:{wallpaperAnchorSelector:n}={}}=t;(()=>{gn();const e=document.createElement("div");e.classList.add(pn),document.body.appendChild(e),e.style.setProperty("position","fixed"),e.style.setProperty("width","100%"),e.style.setProperty("height","calc(100% - var(--advertory-header-height, 0px) - 15px)"),e.style.setProperty("background-position","center top"),e.style.setProperty("background-repeat","no-repeat")})(),(e=>{const t=e||".advertory-wrapper-common-skyscraperleft_1",n=document.querySelector(t);n&&(hn(n),window.addEventListener("scroll",()=>hn(n)))})(n),e()},isShortWallpaperColorMessage:yn,isShortWallpaperUrlMessage:fn,removeWallpaperBackground:gn,setWallpaperBackgroundColor:wn,setWallpaperBackgroundImage:bn});const In=e=>{if("0"===k("collapse_ad"))return;const t=document.querySelector(`div[id^="${e}"]`);if(!t)return;const n=t.parentElement;n&&(t.style.setProperty("width","0","important"),t.style.setProperty("height","0","important"),t.style.setProperty("display","none","important"),n.style.setProperty("display","none","important"),e.includes("wallpaper")&&gn())},En=e=>{const t=document.querySelector(`div[id^="${e}"]`);if(!t)return;const n=t.parentElement;n&&(t.style.removeProperty("width"),t.style.removeProperty("height"),t.style.removeProperty("display"),n.style.removeProperty("display"))},Tn=e=>{const t=document.querySelector(`#${e}`);t&&(t.style.minWidth="",t.style.minHeight="")},Sn=e=>{var t;const n=null===(t=document.querySelector(`#${e}`))||void 0===t?void 0:t.parentElement,i=(null==n?void 0:n.offsetHeight)||0;n&&(n.style.minHeight=`${i}px`)},An=/_\d+$/,On=e=>e.replace(An,"");let xn="";const kn=new Map,Pn=e=>{const{pageSetup:{tag:t}={}}=w.get();return(null==t?void 0:t.includeCountingKeywordInTags)?(xn!==window.location.pathname&&(kn.clear(),xn=window.location.pathname),e.map(e=>{var t;const n=On(e.invCode),i=null!==(t=kn.get(n))&&void 0!==t?t:0;return e.keywords=Object.assign({},e.keywords),e.keywords[`${(()=>{const{pageContext:{countryCode:e,publisher:t}}=w.get();return`${e}-${t}`})()}-count`]=i,kn.set(n,i+1),e})):e},Ln=e=>{const{siteSpecificConfig:t,editory:{editoryUrl:n,editableConfiguration:{pageTypeToFetch:i}={}}={}}=e;if(!(null==t?void 0:t.publisherClassName)||!i)return null;return`${n||"https://inv-platform-cdn.inventory.schibsted.io"}/editory/editable-configurations/${t.publisherClassName}/${i.toLowerCase()}.json`};const jn=new class{constructor(){this.requestToken=0,this.cacher=(()=>{const e=new Map;return{get:t=>e.get(t),set:(t,n)=>{e.set(t,n)},delete:t=>{e.delete(t)}}})()}shouldFetchEditableConfig(e){const{editory:{editableConfiguration:{enabled:t=!1,pageTypeToFetch:n}={}}={},siteSpecificConfig:i}=e;return Boolean(t&&n&&(null==i?void 0:i.publisherClassName))}captureLocalSiteConfig(e){return this.localSiteConfig=Object.assign({},e),this.localSiteConfig}fetchEditableConfig(e){return o(this,void 0,void 0,function*(){const t=Ln(e);if(!t)return null;let n=this.cacher.get(t);return n||(n=(e=>o(void 0,void 0,void 0,function*(){const t=Ln(e);if(!t)return null;try{return yield ie.get(t,{timeout:5e3})}catch(e){throw v("Failed to fetch S3 config",{error:e,url:t}),e}}))(e).catch(e=>{throw this.cacher.delete(t),e}),this.cacher.set(t,n)),n})}resolveRemoteConfig(e,t){var n,o,r;const a=((e,t)=>{const{sections:n}=e,o=i(e,["sections"]),r=t?null==n?void 0:n[t]:void 0;return r?c(o,r):o})(t,null!==(r=null===(o=null===(n=e.editory)||void 0===n?void 0:n.editableConfiguration)||void 0===o?void 0:o.section)&&void 0!==r?r:(()=>{const[e]=window.location.pathname.split("/").filter(Boolean);return e})());return((e,t)=>c(t,e))(e,a)}getConfig(e){return o(this,void 0,void 0,function*(){const t=this.captureLocalSiteConfig(e);if(!this.shouldFetchEditableConfig(t))return t;try{const e=yield this.fetchEditableConfig(t);return e?this.resolveRemoteConfig(t,e):t}catch(e){return v("Error fetching S3 config, using site config",{error:e}),t}})}resolveUpdatedConfig(e){return o(this,void 0,void 0,function*(){var t,n,i,o;if(!this.localSiteConfig)return;if(f(this.localSiteConfig,null!=e?e:{}),!this.shouldFetchEditableConfig(this.localSiteConfig))return;const r=null===(n=null===(t=this.localSiteConfig.editory)||void 0===t?void 0:t.editableConfiguration)||void 0===n?void 0:n.pageTypeToFetch,a=++this.requestToken;try{const e=yield this.fetchEditableConfig(this.localSiteConfig);if(a!==this.requestToken||(null===(o=null===(i=this.localSiteConfig.editory)||void 0===i?void 0:i.editableConfiguration)||void 0===o?void 0:o.pageTypeToFetch)!==r)return;if(!e)return;return this.resolveRemoteConfig(this.localSiteConfig,e)}catch(e){return void v("Error fetching updated S3 config, keeping current config",{error:e})}})}},_n=jn.getConfig.bind(jn),$n=jn.resolveUpdatedConfig.bind(jn),Nn=e=>{const t=e.parentElement;if(!e||!t)return;const{container:n,wrapper:i}=(e=>{const t=E.getData("initialClassNames")[e.id];return{wrapper:(null==t?void 0:t.wrapper)?t.wrapper.join(" "):"",container:(null==t?void 0:t.container)?t.container.join(" "):""}})(e);e.className=n,t.className=i},qn=()=>{gn();const e=document.querySelectorAll('[data-advertory-ad-rendered="true"]'),t=[];return e.forEach(e=>{In(e.id),Nn(e),(e=>{const t=document.querySelector(`#${e}`),n=null==t?void 0:t.getAttribute("data-probable-height"),i=null==t?void 0:t.getAttribute("data-probable-width");n&&i&&(null==t||t.style.setProperty("min-height",n+"px"),null==t||t.style.setProperty("min-probable-width",i+"px"))})(e.id),e.innerHTML="",e.id=sn(e.id),t.push(e.id)}),_t(()=>window.apntag.clearRequest()),t},Fn=()=>{E.setData("wallpaper",{isAvailable:!1}),E.setData("horseshoe",{isAvailable:!1})},Rn=e=>o(void 0,void 0,void 0,function*(){const t=yield $n(e);var n;t?(w.set(t),n=t,window.advertory&&(window.advertory.siteConfig=n,window.advertory.alertoryConfig&&(window.advertory.alertoryConfig.advertory.placements=n.placements))):C(null!=e?e:{})}),Mn="mobile",Dn="tablet",Bn="desktop",Un="web_desktop",Hn="web_phone",Wn="wde",Vn="wph",zn="noGroupedPlacements",Kn=e=>{const t=e.replace(/[0-9]/g,"");return"_"===t.slice(-1)?t.substring(0,t.length-1):t},Gn=e=>{if(!(null==e?void 0:e.minViewWidth))return!0;return window.innerWidth>=e.minViewWidth},Xn=e=>{var t;if(!(null===(t=null===window||void 0===window?void 0:window.advertory)||void 0===t?void 0:t.initialized))return[];const{placements:n,queryConfig:i,pageContext:{deviceType:o}}=w.get(),r=((e,t)=>{var n;const i=null!==(n=e[t])&&void 0!==n?n:[];return t===Dn&&0===i.length?e[Bn]:i})(n,o),a=r.filter(Gn),s=e?document.querySelector(e):document;if(!s)return[];const d=a.reduce((e,t)=>{const n=Kn(t.targetId);return!n||e.includes(n)||e.push(n),e},[]).flatMap(e=>{const t=new RegExp(`^${e}(_(\\d+))?$`),n=a.filter(({targetId:e})=>e.match(t)),r=(null==i?void 0:i.queryByDataDeviceAttribute)?`div[id^="${e}"][data-device=${o}], div[id^="${e}"][data-device=all]`:`div[id^="${e}"]:not([data-disabled="true"])`,d=s.querySelectorAll(r),l=Array.from(d).filter(({id:e})=>e.match(t)).map((e,t)=>{var i;const o=Jn(e,t,n);if(o.disabled)return v(`Placement ${o.targetId} is disabled - collapsing`),In(o.targetId),null;const r=o.finnBlink&&!o.finnBlink.renderOnlyWithAdBlock,a=r&&(null===(i=o.finnBlink)||void 0===i?void 0:i.loadOnlyFinnBlink),s=`${e.id}-${Tt(6)}`;return e.id=s,e.setAttribute("data-advertory-ad-rendered","true"),r&&e.setAttribute("data-is-finn-blink-placement","true"),a&&e.setAttribute("data-is-finn-blink-only-placement","true"),(e=>{var t;const n=e.id;n&&E.setData("initialClassNames",{[n]:{wrapper:null===(t=e.parentElement)||void 0===t?void 0:t.className.split(" "),container:e.className.split(" ")}})})(e),Object.assign(Object.assign({},o),{targetId:s})}),c=l.filter(e=>null!=e);return Pn(c)});return(e=>{const t=Array.from(document.querySelectorAll('div[class^="advertory"]'));return e.sort((e,n)=>t.findIndex(t=>t.id===e.targetId)-t.findIndex(e=>e.id===n.targetId))})(d)},Jn=(e,t,n)=>{const i=n[t],o=n[n.length-1],r=n.filter(({targetId:t})=>t===e.id)[0];return(null==e?void 0:e.id)===(null==i?void 0:i.targetId)?i:(null==e?void 0:e.id)===(null==o?void 0:o.targetId)?o:r||o},Qn=e=>{const{queryConfig:{placementBatches:t}={},pageContext:{deviceType:n}}=w.get(),i=(null==t?void 0:t[n])||{},o=Object.values(i).flat(),r=(e=>{const t={};return e.forEach(e=>{const n=sn(e.targetId);e.isBackfill&&(t[n]=[e])}),t})(e),a=((e,t)=>{const n={};for(const[i,o]of Object.entries(t))n[i]=e.filter(e=>o.includes(sn(e.targetId)));return n})(e,i),s=Object.keys(r),d=((e,t)=>e.filter(e=>!t.has(sn(e.targetId))))(e,new Set([...s,...o]));return Object.assign(Object.assign(Object.assign({},a),r),{[zn]:d})},Yn=e=>({rootMargin:`${e}px 0px ${e}px 0px`}),Zn=new Map,ei=["no-stavangeraftenblad","sa","no-aftenposten","aftenposten","no-bergenstidende","bt"],ti=".brandstudio-premium-content-widget",ni=({adWrapper:e,placementContainer:t})=>t.offsetHeight+(({adWrapper:e})=>{const{paddingTop:t,paddingBottom:n}=getComputedStyle(e);return parseFloat(t)+parseFloat(n)})({adWrapper:e}),ii=({adWrapper:e,placementContainer:t})=>{const n=ni({adWrapper:e,placementContainer:t});var i;null==e||e.style.setProperty("height",`${n}px`),Nn(i=t),i.innerHTML=""},oi=e=>{e&&e.style.getPropertyValue("height")&&e.style.removeProperty("height")},ri=({adWrapper:e,placementContainer:t})=>{const{pageContext:{publisher:n}}=w.get(),i=ei.includes(n)&&Boolean(t.closest(ti));const o=i?t.closest(ti):null,r=new MutationObserver(t=>{t.forEach(({addedNodes:t})=>{t.forEach(t=>{const n=t instanceof HTMLElement,a=n&&t.matches("iframe, article")&&e;if(!n||!i&&!a||i&&!o)return;if(a)return oi(e),void r.disconnect();const s=t.closest('[style*="height"]'),d=o;s&&d.contains(s)?oi(s):d.hasAttribute("style")&&oi(d),r.disconnect()})})});try{r.observe(t,{childList:!0,subtree:!0})}catch(e){r.disconnect()}},ai=(e,t,n,i,o,r)=>{var a;const s=performance.now(),d=null!==(a=Zn.get(t))&&void 0!==a?a:0,l=((e,t)=>!!t&&e+t<(new Date).getTime())(i,o)&&n<0;s-d>=o&&l&&(Zn.set(t,s),((e,t,n)=>{const{pageContext:{countryCode:i}}=w.get(),o=null==n?void 0:n.parentElement;o&&n&&ii({adWrapper:o,placementContainer:n}),_t(()=>{e.setKeywords([t],{[`${z(i)}-adreload`]:"1"},{overrideKeyValue:!0}),e.refresh([t])})})(e,t,r))},si=(e,t,n)=>{const i=new IntersectionObserver((e,i)=>((e,t,n,i)=>{e.filter(({isIntersecting:e})=>e).forEach(e=>{const{target:o,boundingClientRect:r}=e;t(window.apntag,o.id,r.y,n,i,o)})})(e,ai,t,n),Yn(300));i.observe(e)},di=(e,t=6)=>{const n=[];for(let i=0;i<e.length;i+=t){const o=e.slice(i,i+t);n.push(o)}return n},li=()=>navigator&&navigator.userAgent.match(/chrome/i)?null:navigator&&navigator.userAgent.match(/apple/i),ci=(e,t=0)=>{const n=e.getBoundingClientRect(),i=window.innerHeight;return n.bottom>-t&&n.top<i+t},ui=e=>{const{refreshConfig:{visibilityStateRefreshEnabled:t=!1}={}}=w.get();if(!t)return;const n=()=>{"visible"===document.visibilityState&&document.removeEventListener("visibilitychange",n),mi(e)};"visible"!==document.visibilityState&&document.addEventListener("visibilitychange",n)},pi=(e,t,n)=>{const i=document.querySelectorAll('[data-bf-cache-refresh="true"]');for(const o of i){const i=e.find(e=>{var t,n;return e.targetId===(null===(t=o.firstElementChild)||void 0===t?void 0:t.id)&&(null===(n=e.refresh)||void 0===n?void 0:n.bfCache)}),r=null==i?void 0:i.requestThreshold;ci(o,r)&&i&&(Sn(i.targetId),n.length&&o.classList.remove(...n),mi([i],t))}},vi=e=>{const{refreshConfig:{backForwardNavigationRefreshEnabled:t=!1}={},siteSpecificConfig:{classesToRemoveOnRefresh:n=[]}={},pageContext:{isMobileApp:i}}=w.get();t&&(e.forEach(({targetId:e})=>{const t=gi(e);t&&(t.dataset.bfCacheRefresh="true")}),i?((e,t)=>{document.addEventListener("visibilitychange",()=>{"visible"===document.visibilityState&&pi(e,!0,t)})})(e,n):((e,t)=>{window.addEventListener("pageshow",n=>{const i=()=>{window.scrollY>0&&(window.removeEventListener("scroll",i),pi(e,!1,t))};n.persisted&&(li()?window.addEventListener("scroll",i,{passive:!0}):pi(e,!1,t))})})(e,n))},gi=e=>{var t,n;return null!==(n=null===(t=document.querySelector(`#${e}`))||void 0===t?void 0:t.parentElement)&&void 0!==n?n:null},hi=e=>{const{targetId:t,allowedFormats:n}=e,i=(e=>{if(!e)return[];try{return JSON.parse(e.dataset.adSizes||"[]")}catch(e){return[]}})(gi(t)),o=(e=>1===e[0]&&1===e[1])(i),r={sizes:[i],allowedFormats:o?n:n.filter(e=>"native"!==e),allowSmallerSizes:!1};return o||(r.native=void 0),r},mi=(e,t=!1)=>{const{queryConfig:{batchSize:n=y}={}}=w.get(),i=e.map(({targetId:e})=>e),o=di(i,n);if(t)for(const t of e){const e=hi(t);window.apntag.modifyTag(t.targetId,e)}for(const e of o)_t(()=>window.apntag.refresh(e))},fi=e=>{const{apntag:t,bus:n}=e,{siteEvents:i,initNativeAd:r}=w.getHandlers(),a=[];return{adRequested:()=>{n.emit("adRequested"),i.adRequested()},adAvailable:e=>o(void 0,void 0,void 0,function*(){var t,o,a,s,d,l;v("core adAvailable start",{adObj:e,isFullscreenScrollAd:Oe(e),isFinnBlink:Ne(e.targetId),isNativeAd:xe(e),isMediation:un(e),isTakeoverAd:Pe(e),isCollapseAd:_e(e),isWallpaperAd:je(e)});const c=null===(a=null===(o=null===(t=null===window||void 0===window?void 0:window.apntag)||void 0===t?void 0:t.requests)||void 0===o?void 0:o.tags[e.targetId])||void 0===a?void 0:a.adResponse.ads;if(un(e)&&c&&(null===(s=c[1])||void 0===s?void 0:s.rtb)&&(e.banner=null===(l=null===(d=c[1])||void 0===d?void 0:d.rtb)||void 0===l?void 0:l.banner),Oe(e)){const{modifyFullscreenScrollAd:t}=yield Promise.resolve().then(function(){return ft});t(e)}const{widescreenSwitching:u,wallpaper:p,fullscreenScroll:g}=w.get();if(Re(e)&&(null==u?void 0:u.enabled)){const{initWidescreenSwitching:e}=yield import("./index-DV_dfuSB.js");e()}if(Oe(e)&&!Ne(e.targetId)){v("core adAvailable: creating fullscreen scroll container",{targetId:e.targetId,width:e.width,height:e.height,bannerWidth:e.banner&&"object"==typeof e.banner?e.banner.width:e.banner,bannerHeight:e.banner&&"object"==typeof e.banner?e.banner.height:void 0});const{createFullscreenScrollAd:t}=yield Promise.resolve().then(function(){return ft});t(e,g)}if(!xe(e)||un(e)||Ne(e.targetId)||null==r||r(e,w.get()),Pe(e)&&!_e(e)){const{modifyTakeoverAdContent:t,createTakeoverAd:n}=yield import("./index-CYjmLZz7.js");t(e.targetId),yield n(e)}if(je(e)&&(null==p?void 0:p.enabled)){const{initWallpaperAd:t}=yield Promise.resolve().then(function(){return Cn});t(()=>_t(()=>window.apntag.showTag(e.targetId)),p),E.setData("wallpaper",{isAvailable:!0})}(e=>e.targetId.includes("skyscraperleft")&&!!e.banner)(e)&&E.setData("horseshoe",{isAvailable:!0}),i.adAvailable(e),yield n.emit("adRendered",{targetId:e.targetId}),v("core adAvailable stop",{adObj:e,isFullscreenScrollAd:Oe(e),isFinnBlink:Ne(e.targetId),isNativeAd:xe(e),isMediation:un(e),isTakeoverAd:Pe(e),isCollapseAd:_e(e),isWallpaperAd:je(e)})}),adLoaded:e=>o(void 0,void 0,void 0,function*(){const{refreshConfig:n,appearanceConfig:o,wallpaper:s,adScaleConfig:d,pulse:l,placements:c,pageContext:{deviceType:u,publisher:p=""}}=w.get(),v=document.getElementById(e.targetId);if(Ne(e.targetId)){const{displaySpecialFormatsForFinnFallback:t}=yield import("./events-DxH68oDH.js");t(e)}if(a.includes(e.targetId)&&xe(e)&&(null==r||r(e,w.get()),rn({adObj:e})),!a.includes(e.targetId)&&un(e)&&a.push(e.targetId),_e(e)&&In(e.targetId),Pe(e)){const{modifyTakeoverIframe:n}=yield import("./index-CYjmLZz7.js");n(t,e.targetId)}if((e=>Be(e,Te.NINESIXTEEN))(e)){const{applyNinesixteenFormat:t}=yield import("./index-BAD0F7ZE.js");t(e)}if((e=>Be(e,Te.FULLSQUARE))(e)){const{applyFullsquareFormat:t}=yield import("./index-BAD0F7ZE.js");t(e)}if(ke(e)){const{applyFullwidthFormat:t}=yield import("./index-BAD0F7ZE.js");t(e)}((e,t)=>{if(!(null==t?void 0:t.scrollRefreshEnabled))return;const{targetId:n}=e,i=document.querySelector(`#${n}`),o=null==i?void 0:i.parentElement;if(!o||!i)return;ri({adWrapper:o,placementContainer:i});const{delayTimeToNextRefresh:r=1e3}=t,a=(new Date).getTime();i&&"true"!==i.dataset.subscribedForRefresh&&(i.dataset.subscribedForRefresh="true",i.dataset.refresh&&si(i,a,r))})(e,n),(null==o?void 0:o.clearProbableDimensionsEnabled)&&Tn(e.targetId);if(E.getData("horseshoe").isAvailable&&(null==s?void 0:s.enabled)){const{adjustAdToHorseshoe:t}=yield Promise.resolve().then(function(){return Cn});t(e.targetId)}if(null==d?void 0:d.enabled){const{scaleAds:t,scaleAdIpadAirPortrait:n}=yield import("./index-C3EI4ICI.js");t(e),n(e)}if(i.adLoaded(e),(null==l?void 0:l.instance)&&l.adTrackingEnabled){const{XandrAdTracker:t}=yield Promise.resolve().then(function(){return Do}),n=new t(w.get(),e);n.trackLoad(),n.trackImpression()}yt(e.targetId),v&&(v.classList.add(wt),(e=>{var t,n;const{pageSectionsSelectors:i}=w.get(),o=null==i?void 0:i.mainFirstColumn,r=o?null===(t=document.querySelector(o))||void 0===t?void 0:t.clientWidth:void 0;r&&e.clientWidth>r&&(null===(n=e.parentElement)||void 0===n||n.setAttribute("data-two-column-ad-layout","true"),window.dispatchEvent(new CustomEvent("advertory:twoColumnAdLayoutApplied",{detail:{targetId:e.id}})))})(v)),rn({adObj:e}),(e=>{var t;const n=null==e?void 0:e.targetId;if(!n)return;const i=null===(t=document.querySelector(`#${n}`))||void 0===t?void 0:t.parentElement;i&&((e,t)=>{const{height:n,width:i,native:o}=e;o?t.dataset.adSizes="[1,1]":n&&i&&(t.dataset.adSizes=`[${i},${n}]`)})(e,i)})(e),window.dispatchEvent(new CustomEvent("advertory:adLoaded",{detail:{targetId:e.targetId,adFormat:an(e)}}))}),adNoBid:e=>o(void 0,void 0,void 0,function*(){if(In(e.targetId),Pe(e)){const{handleTakeoverCookieOnAdNotShown:t}=yield Promise.resolve().then(function(){return Yt});yield t(e)}i.adNoBid(e)}),adError:(e,t)=>o(void 0,void 0,void 0,function*(){if(Pe(t)){const{handleTakeoverCookieOnAdNotShown:e}=yield Promise.resolve().then(function(){return Yt});yield e(t)}i.adError(e,t)}),adCollapse:()=>{i.adCollapse()},adRequestFailure:e=>o(void 0,void 0,void 0,function*(){In(e.targetId),i.adRequestFailure(e)}),adBadRequest:e=>o(void 0,void 0,void 0,function*(){In(e.targetId),i.adBadRequest(e)}),adLoadedMediated:e=>i.adLoadedMediated(e),adNoBidMediated:e=>{i.adNoBidMediated(e)}}};let yi;const bi=()=>yi,wi={name:"xandr",capabilities:{tagDefinition:"explicit",deferredRequest:!0,deferredRender:!0,refresh:!0},setup:()=>o(void 0,void 0,void 0,function*(){yi=window.apntag||{anq:[],defineTag:e=>({targetId:""}),showTag:e=>{},onEvent:(e,t,n)=>{},offEvent:(e,t)=>{},refresh:e=>{},modifyTag:(e,t)=>{},loadTags:e=>{},emitEvent:(e,t)=>{},setPageOpts:e=>{},resizeAd:(e,t,n)=>{},getAstVersion:()=>"",setEndpoint:(e,t)=>{},fireImpressionTrackers:e=>{},setKeywords:()=>{},clearRequest:()=>{}},window.apntag=yi,jt(e=>window.apntag.anq.push(e)),yield Promise.allSettled([o(void 0,void 0,void 0,function*(){const{tcf:e,pageContext:{isMobileApp:t,countryCode:n}}=w.get();(yield R(e,t,n,"xandr-endpoint"))||yi.setEndpoint("ib.adnxs-simple.com",!0)}),o(void 0,void 0,void 0,function*(){const{developerOptions:{astUrl:e}={}}=w.get();yield Ee(null!=e?e:"https://adsdk.microsoft.com/ast/ast.js")}),o(void 0,void 0,void 0,function*(){if(It())return;const{prebid:e,tcf:t,pageContext:{isMobileApp:n,countryCode:i}}=w.get(),o=yield R(t,n,i,"prebid");(null==e?void 0:e.enabled)&&o&&(yield Ee(null==e?void 0:e.prebidUrl))})])}),setTargeting:()=>o(void 0,void 0,void 0,function*(){const{pageOptions:e}=w.get(),{preparePageOptions:t}=w.getHandlers(),n=(()=>{var e,t;const{pageSetup:{pageOptions:n}={}}=w.get();return{sandboxAdIframe:null===(t=null===(e=null==n?void 0:n.options)||void 0===e?void 0:e.sandboxAdIframeEnabled)||void 0===t||t,sandboxAttributes:["allow-same-origin","allow-scripts","allow-top-navigation-by-user-activation","allow-popups","allow-popups-to-escape-sandbox","allow-forms"]}})(),i=yield o(void 0,void 0,void 0,function*(){const{tcf:e,pageContext:{isMobileApp:t,countryCode:n}}=w.get();return(yield R(e,t,n,"page-options"))?{}:{userSync:{disabled:!0}}}),r=yield t(Object.assign(Object.assign(Object.assign({disablePsa:!0,enableSafeFrame:!0},e),{renderingManagement:Object.assign({},n)}),i));(e=>{const t=E.getData("alertoryConfigKeywords");if(Object.keys(t).length)return;const n=ln(e);E.setData("alertoryConfigKeywords",n)})(r.keywords),_t(()=>bi().setPageOpts(r))}),definePlacements:e=>{const{prepareTag:t}=w.getHandlers(),n=[];(e=>{const t=["skyscraperright_1","topboard","wallpaper","skyscraperleft_1"];return e.sort((e,n)=>{const i=t.findIndex(t=>e.targetId.includes(t)),o=t.findIndex(e=>n.targetId.includes(e));return-1!==i&&-1===o?-1:-1===i&&-1!==o?1:i-o})})(e).forEach(e=>{v("xandr definePlacements",{placement:e});const i=tn(e);if(nn(e.targetId)){const o=t(i),r=(e=>{const{allowedFormats:t,invCode:n,keywords:i,sizes:o}=e;return{adTypes:t,invCode:n,keywords:dn(i),sizes:o}})(o);n.push(r),_t(()=>(v("xandr definePlacements - add to the queue",{placement:e,preparedTag:o}),bi().defineTag(o)))}}),(e=>{var t,n,i;(null===(i=null===(n=null===(t=window.advertory)||void 0===t?void 0:t.alertoryConfig)||void 0===n?void 0:n.xandr)||void 0===i?void 0:i.tags)&&e.length&&window.advertory.alertoryConfig.xandr.tags.push(e)})(n)},requestPlacements:e=>o(void 0,void 0,void 0,function*(){const t=e.filter(({targetId:e})=>nn(e)).map(({targetId:e})=>e);t.length&&_t(()=>(v("xandr requestPlacements",{placementsIdsToLoad:t}),bi().loadTags([...t])))}),bindEvents:e=>o(void 0,void 0,void 0,function*(){var t;yield(t={apntag:bi(),bus:e},o(void 0,void 0,void 0,function*(){const{apntag:e}=t,n=fi(t);_t(()=>{e.onEvent("adRequested",n.adRequested),e.onEvent("adAvailable",n.adAvailable),e.onEvent("adLoaded",n.adLoaded),e.onEvent("adNoBid",n.adNoBid),e.onEvent("adError",n.adError),e.onEvent("adCollapse",n.adCollapse),e.onEvent("adRequestFailure",n.adRequestFailure),e.onEvent("adBadRequest",n.adBadRequest),e.onEvent("adLoadedMediated",n.adLoadedMediated),e.onEvent("adNoBidMediated",n.adNoBidMediated)})}))})},Ci=(e,t,n)=>{const i=document.getElementById(`div_utif_${e}`);if(!i)return;const{apntag:o}=window,[r,a]=t;if(!i.dataset.lockedsize&&a&&r)i.style.width=`${r}px`,i.style.height=`${a}px`,n&&(o.resizeAd(i.id,[r,a]),i.dataset.lockedsize="true",i.dataset.lockedwidth=r.toString(),i.dataset.lockedheight=a.toString());else if(null==i?void 0:i.dataset.lockedsize){const{lockedwidth:e,lockedheight:t}=i.dataset;e&&t&&o.resizeAd(i.id,[e,t])}},Ii="collapseAd",Ei="hideAd",Ti="resizeAd",Si="wallpaperImageUrl",Ai="wallpaperColor",Oi="velvet",xi=[Ti,Si,Ai,Ii,Ei,Oi];let ki;const Pi=e=>{if(!["http://acdn.adnxs-simple.com","https://acdn.adnxs-simple.com","https://crcdn01.adnxs-simple.com","http://crcdn01.adnxs-simple.com","https://acdn.adnxs.com","http://acdn.adnxs.com","https://adsdk.microsoft.com","https://adsdk.bing.net","https://adsdkprod.azureedge.net"].includes(e.origin.trim()))return;const{data:t}=e;if(!t)return;const n=(e=>{if("object"==typeof e)return e;if(fn(e)){const t=e.replace(/^wallpaper:url:/,"");return{name:Si,wallpaperImageUrl:t}}if(yn(e)){const t=e.replace(/^wallpaper:color:/,"");return{name:Ai,wallpaperColor:t}}if(e.startsWith(Ii)||e.startsWith(Ei)){const t=e.split(":")[1];return{name:Ii,targetId:t}}if(e.includes("name")&&xi.some(t=>e.includes(t)))try{return JSON.parse(e)}catch(e){}})(t);if(!n)return;if(!n.name||!xi.some(e=>n.name===e))return;const{name:i,targetId:o,wallpaperImageUrl:r,wallpaperColor:a,cmd:s,size:d}=n;i===Oi&&s&&(s.includes("noScroll")&&(ki=(e=>{if(!e)return()=>{};const t=e.style.overflow;return e.style.setProperty("overflow","hidden"),()=>{e.style.setProperty("overflow",t)}})(document.querySelector("body"))),(s.includes("close")||s.includes("ended"))&&(null==ki||ki(),dispatchEvent(new CustomEvent("advertory:closeTakeover",{})))),i!==Ii&&i!==Ei||!o||In(o),i===Ti&&o&&s&&Ci(o,s),"resizeMediationAd"===i&&o&&d&&Ci(o,d,!0),i===Si&&r&&bn(r),i===Ai&&a&&wn(a)},Li=()=>{const{pageContext:{publisher:e,countryCode:t},finnBlink:n}=w.get(),i=window.apntag,r={publisher:e,countryCode:t,finnBlink:n},a=e=>{En(e),_t(()=>i.showTag(e))};return{withXandrAd:a,withFinnBlinkAd:e=>o(void 0,void 0,void 0,function*(){if(!(null==n?void 0:n.enabled))return;const{loadFinnBlinkAd:t}=yield import("./index-B6HjYflQ.js");yield t(e,r,null)}),withFullAdsChain:e=>o(void 0,void 0,void 0,function*(){if(!(null==n?void 0:n.enabled))return void a(e);const{loadFinnBlinkAd:t}=yield import("./index-B6HjYflQ.js");yield t(e,r,a,()=>o(void 0,void 0,void 0,function*(){if(!E.getData("horseshoe").isAvailable)return;const{adjustAdToHorseshoe:t}=yield Promise.resolve().then(function(){return Cn});t(e)}))})}},ji=(e,t)=>o(void 0,void 0,void 0,function*(){e.id.includes("wallpaper")||(yield xt(e,t,()=>((e,t,n)=>{const i="true"===n.dataset.isFinnBlinkOnlyPlacement;return Ne(t)&&i?(v(`loading finn blink ad for blink only placement for ${t}`),void Li().withFinnBlinkAd(t)):Ne(t)?(v(`loading finn blink ad with full ads chain for ${t}`),void Li().withFullAdsChain(t)):void _t(()=>(v("core showTag",{id:t}),e.showTag(t)))})(window.apntag,(e=>{const t=e.dataset.showTagSubscribeId;return!e.id.length&&t?t:e.id})(e),e)))}),_i=(e,t)=>o(void 0,void 0,void 0,function*(){return yield new Promise(t=>{e().then(e=>{t(null!=e?e:null)}).catch(e=>{t(null)})})});dt(".advertory-brandmetrics-survey{width:100%}");const $i="advertory-brandmetrics-survey",Ni=()=>o(void 0,void 0,void 0,function*(){try{(()=>{const e=document.createElement("script");e.setAttribute("src","https://ads.inventory.schibsted.io/ad-service/ad-banner-sponsor-advertisement/ad.js"),e.setAttribute("type","text/javascript"),e.setAttribute("async","true"),document.head.appendChild(e)})(),(()=>{const e=document.createElement("div");e.setAttribute("id","ads-advertory-anchor"),e.classList.add("subscribe_box"),e.classList.add("ad-box"),e.classList.add("leftAd"),e.classList.add("netboard"),e.classList.add("advert"),e.classList.add("module"),e.classList.add("banner"),e.classList.add("leaderboard"),e.classList.add("adsbygoogle"),e.classList.add("ad-banner"),e.classList.add("ad-container"),e.classList.add("adsbox"),e.classList.add("sidebar-ads"),e.classList.add("banner-ads"),e.style.opacity="0",e.style.width="1px",e.style.height="1px",e.style.minWidth="0px",e.style.minHeight="0px",e.style.maxWidth="1px",e.style.maxHeight="1px",e.style.position="absolute",e.style.top="0",e.style.boxSizing="border-box",e.style.margin="0",e.style.padding="0",document.body.appendChild(e)})()}catch(e){console.error("Error running adblock scripts:",e)}}),qi=()=>{const e=document.getElementById("ads-advertory-anchor");return!(e&&"none"!==getComputedStyle(e).display&&window.advertoryFluepapir)},Fi="https://dr-edition-teaser-server.inventory.schibsted.io/xandr",Ri=()=>o(void 0,void 0,void 0,function*(){return window.__tcfapi?{gdpr:1,gdpr_consent:yield(e=window.__tcfapi,new Promise((t,n)=>{e("addEventListener",2,(n,i)=>{var o;i||t(""),"tcloaded"!==n.eventStatus&&"useractioncomplete"!==n.eventStatus||(t(null!==(o=n.tcString)&&void 0!==o?o:""),e("removeEventListener",2,()=>{},n.listenerId))})}))}:{};var e}),Mi={pageContext:{publisher:"aftonbladet",countryCode:_.SE},memberId:9943,sectionKeyword:"se-aftonbladet-section",frontpageInvCodeTemplate:"se-aftonbladet-{deviceType}-front-{position}",additionalFilterKeys:["se-aftonbladet-navigation","se-aftonbladet-keyword_generator","se-aftonbladet-sponsor"],tcf:{enabled:!0,advertisingCMPSignalEnabled:!0,schibstedConsentToPayEnabled:!0},glimr:{enabled:!0,clientId:"OYGH3SXYFAQR78LVPNQD"}},Di={nyheter:"nyheter",sport:"sportbladet",noje:"nojesbladet",family:"family",matdryck:"matdryck",wellness:"wellness",minekonomi:"minekonomi",resa:"resa",harligthemma:"harligthemma"},Bi=e=>(null==e?void 0:e.parent)?[...Bi(e.parent),e.shortPath||"unknown"]:[],Ui=(e,t)=>t?"se-aftonbladet-{deviceType}-studio_{position}":`se-aftonbladet-tv-{deviceType}-${(e=>{var t;if(null===(t=null==e?void 0:e.metadata)||void 0===t?void 0:t.afp)return"afp";const[,n]=Bi(e);return Di[n]||"ovrigaavdelningar"})(e)}_{position}`,Hi={aftonbladet:Mi},Wi={aftonbladet:(e,t)=>{if(!e)return null;return{invCode:Ui(e,t),videoOverlayInvCode:"se-aftonbladet-{deviceType}-other-{position}",sections:Bi(e).join(":")}}},Vi=e=>{switch(e){case"auto":return 1;case"silent":return 2;default:return 3}},zi=new Map([[1,"autoplay"],[2,"muted-autoplay"],[3,"click-to-play"]]),Ki="se-generic",Gi="aa-sch",Xi="kv_",Ji="pause",Qi="{deviceType}",Yi="{position}",Zi="afp_",eo=new Set(Object.values({PREROLL:"preroll",BUMPER:"bumper",MIDROLL:"midroll"})),to="1-1",no="16-9",io="3-4",oo="9-16",ro="responsive",ao={[to]:1,[no]:1.78,[oo]:.56,[ro]:1},so={[to]:1,[no]:1.78,[io]:1.33,[oo]:.56},lo=(e,t,n,i)=>{const{invCode:o="",videoOverlayInvCode:r}=null!=e?e:{},a=Bn===n?Wn:Vn,s=o.replace(Qi,a);return(e,n)=>{if(e===Ji)return(e=>e.replace("tv-","").replace("-afp_","-afp-").replace(Yi,Ji).replace(/-([a-z]+)_/,"-article-"))(s);if(n&&eo.has(e)){return(i&&r?r:t.frontpageInvCodeTemplate).replace(Qi,a).replace(Yi,e)}return s.replace(Yi,e)}},co=()=>{const e=window.navigator.userAgent.toLowerCase(),t=[["win","windows"],["macintosh","macos"],["x11","linux"],["android","android"],["ipad","ios"],["iphone","ios"]].find(([t])=>e.includes(t));return t?t[1]:"unknown"},uo=e=>e===Mn,po=853,vo=767,go=(e,t)=>{const n=Object.entries(e);return n.reduce((n,[i,o])=>{const r=Math.abs(e[n]-t);return Math.abs(o-t)<r?i:n},n[0][0])},ho=()=>{var e,t;const n=jwplayer().getContainer(),i=null!==(t=null===(e=document.getElementById(n.id))||void 0===e?void 0:e.parentElement)&&void 0!==t?t:null;return i&&"number"==typeof i.offsetWidth&&"number"==typeof i.offsetHeight&&0!==i.offsetHeight?i.offsetWidth/i.offsetHeight:1},mo=()=>{return(e=>{try{return decodeURIComponent(e)}catch(e){return""}})("undefined"!=typeof document&&null!==(t=null===(e=document.cookie.match("(^|;)\\s*_pulse2data\\s*=\\s*([^;]+)"))||void 0===e?void 0:e.pop())&&void 0!==t?t:"").split(",");var e,t},fo=()=>{const e=null!==(t=mo()[9])&&void 0!==t?t:null;var t;const n=(()=>{var e;return null!==(e=mo()[2])&&void 0!==e?e:null})();return e?Number(Boolean(e))+Number(Boolean(n)):0},yo=()=>Object.fromEntries(new URLSearchParams(window.location.search)),bo=(e,t)=>o(void 0,void 0,void 0,function*(){const{tcf:n,pageContext:{publisher:i,countryCode:o}}=t,{width:r,height:a}={width:window.innerWidth,height:window.innerHeight},s={isMobileApp:e.isApp,countryCode:o,publisher:i,pageType:"front",deviceType:e.deviceType},d=(yield R(n,e.isApp,o,"video"))?"1":"0",l=yield Ri(),c=yield Ce(o),u=yield Nt({tcf:n,pageContext:s}),p=null!==(v=window.location.pathname.split("/").slice(-2,-1).pop())&&void 0!==v?v:"";var v;const g=((e=1)=>go(so,Number(e.toFixed(2))))(e.instreamAspectRatio),h=(m=e.playerAspectRatio)?go(ao,Number(m.toFixed(2))):ro;var m,f;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${Gi}-country_code`]:o,[`${Gi}-publisher`]:i,[`${Gi}-supply_type`]:(f=e.deviceType,f===Bn?Un:Hn),[`kw_${Gi}-page_type`]:"collection",[`${Gi}-page_type`]:"collection",[`${Ki}-appmode`]:e.isAndroidApp?"hybrid":"notinapp",[`kw_${Ki}-page`]:"index",[`${Ki}-page`]:"index",[`${Ki}-screenheight`]:String(window.screen.height),[`${Ki}-screenwidth`]:String(window.screen.width),[`${Ki}-viewportheight`]:String(a),[`${Ki}-viewportwidth`]:String(r),[`${Ki}-loggedin`]:e.isUserLoggedIn?"yes":"no",[`${Ki}-mobile-os`]:co(),[`${Ki}-audience`]:void 0,[`${Ki}-externalid_src`]:fo(),[`${Ki}-tags`]:e.tags,[`${Ki}-articleid`]:p,"article-id":p},yield K(Object.assign(Object.assign({},t),{pageContext:s}))),u&&{external_uid:u}),e.isUserPresentOnFrontPage&&e.isInitialVideo&&{[`${Ki}-tvtags`]:"vinjett"}),e.pageAdsKeywords),Object.keys(yo()).some(e=>e.includes(Xi))&&(()=>{const e=yo(),t=Object.fromEntries(Object.entries(e).filter(([e])=>e.startsWith(Xi)).map(([e,t])=>[e.slice(3),t]));return Object.keys(t).length>0?t:void 0})()),{[t.sectionKeyword]:e.sections.split(":"),"aa-sch-cmp_advertising":d,"kw_aa-sch-cmp_advertising":d,"aa-sch-instream_player_aspectratio":g,"aa-sch-player_aspectratio":h}),l),{eids:c})}),wo=["se-generic-audience","se-generic-appversion","se-generic-sitemode","se-generic-pagegen","se-generic-viewportheight","se-generic-viewportwidth","se-generic-screenheight","se-generic-screenwidth","aa-sch-inventory_type"],Co=["aa-sch-publisher","se-generic-page","aa-sch-supply_type","se-generic-story","se-generic-section","se-generic-adformat","aa-sch-context_keyword","se-generic-tvtags","se-generic-test","aa-sch-cmp_advertising","aa-sch-instream_player_aspectratio","aa-sch-player_aspectratio"],Io=["external_uid","gdpr","gdpr_consent","eids","article-id"],Eo=(e,t)=>{const n=[...wo,...t.additionalFilterKeys];return Object.fromEntries(Object.entries(e).filter(([e])=>!n.includes(e)).map(([e,t])=>[e.includes("kw")||Io.includes(e)?e:`kw_${e}`,t]))},To=e=>Object.fromEntries(Object.entries(e).filter(([e])=>Co.includes(e))),So=(e,t)=>o(void 0,void 0,void 0,function*(){var n,i,o,r;const a=(e=>{var t;Hi[e]||g(`[video] No config found for publisher "${e}"`);return null!==(t=Hi[e])&&void 0!==t?t:Mi})(e.publisher),s=(e=>{var t;return null!==(t=Wi[e])&&void 0!==t?t:Wi.aftonbladet})(e.publisher)(e.assetSection,e.isLiveStudio),d="/"===window.location.pathname,l=null===(i=null===(n=t.attributes)||void 0===n?void 0:n.id)||void 0===i?void 0:i.toString(),c=e.assetId===l,u=null!==(o=Number(e.aspectRatio))&&void 0!==o?o:1,p=c?"preroll":"bumper";var v;return{siteConfig:a,siteVideoParams:s,isUserPresentOnFrontPage:d,adsKeywords:yield bo({pageAdsKeywords:e.pageAdsKeywords,tags:(v=e.tags,v?v.filter(e=>e.slug).map(({slug:e})=>e).join(","):""),sections:null!==(r=null==s?void 0:s.sections)&&void 0!==r?r:"",isUserLoggedIn:e.isUserLoggedIn,isUserPresentOnFrontPage:d,isInitialVideo:c,instreamAspectRatio:u,playerAspectRatio:ho(),isApp:e.isApp,deviceType:e.deviceType,isAndroidApp:e.isAndroidApp},a),prerollPlacementFormat:p,playbackMethod:Vi(e.startMode)}}),Ao=(e,t)=>{const{siteConfig:n,siteVideoParams:i,isUserPresentOnFrontPage:o,adsKeywords:r,prerollPlacementFormat:a,playbackMethod:s}=e,{invCode:d}=i||{},l=lo(i,n,t.deviceType,t.isUsedInOverlayVideoPlayer),c=((e="")=>t=>e.includes(Zi)?`${Zi}${t}`:t)(d),u=window.location.href;return{member:n.memberId,options:{autoplayMuted:!0,vpaidcontrols:!0},adSlots:{schedule:{preroll:{inv_code:l(a,o),"se-generic-playback-method":zi.get(s),"kw_se-generic-adformat":c(a)},midroll:{inv_code:l("midroll"),"kw_se-generic-adformat":c("midroll")},postroll:{inv_code:l("postroll"),"kw_se-generic-adformat":c("postroll")}},params:Object.assign(Object.assign(Object.assign({},Eo(r,n)),To(r)),{vskippable:"0",referrer:u,vplaybackmethod:s})},adPlacements:{schedule:{pause:{invCode:l("pause"),sizes:[[825,424],[1280,720],[2,1]]}},params:{keywords:Object.assign(Object.assign({},r),{"se-generic-adformat":c("pause")})}}}},Oo=e=>t=>o(void 0,void 0,void 0,function*(){const n=yield So(e,t);return Ao(n,e)}),xo={plcmtcnt:1,context:1,contextsubtype:10,plcmttype:1,assets:[{id:1,title:{len:100},required:0},{id:2,img:{type:1,hmin:10,wmin:10},required:0},{id:3,img:{type:3,hmin:10,wmin:10},required:0},{id:4,data:{type:2},required:0},{id:5,data:{type:12},required:0}],ver:"1.2",eventtrackers:[{event:1,methods:[1,2]}]},ko={no:"NOK",se:"SEK"},Po={no:"no",se:"sv"};class Lo{buildFetchObject(e,t,n,i){return o(this,void 0,void 0,function*(){const{pageContext:{countryCode:o},pageOptions:r}=i,{invCode:a,xandrPlacementId:s}=e,d=yield Ri(),l=(c=Object.assign(Object.assign({},t),n),Object.entries(c).flatMap(([e,t])=>void 0===t?[]:Array.isArray(t)?t.map(t=>`${e}=${t}`):[`${e}=${t}`]).join(","));var c;const u=new URL(window.location.href),p=(e=>{const{allowedFormats:t}=e;if(!t||t.includes("native"))return{request:JSON.stringify(xo),ver:"1.1"}})(e),v=(e=>{const{sizes:t,allowedFormats:n}=e;if((null==n?void 0:n.includes("banner"))&&t&&0!==t.length)return{format:t.map(([e,t])=>({w:e,h:t})),w:t[0][0],h:t[0][1]}})(e);return{id:Tt(36),imp:[Object.assign(Object.assign(Object.assign({id:a},p&&{native:p}),v&&{banner:v}),{secure:1,tagid:a,ext:{appnexus:Object.assign(Object.assign({},s&&{placement_id:s}),{code:a,keywords:l,use_pmt_rule:!1})}})],site:{domain:u.hostname,page:u.href,publisher:{id:String(r.publisherId),domain:u.hostname},ext:{amp:0}},device:{dnt:Number((null===navigator||void 0===navigator?void 0:navigator.globalPrivacyControl)||"1"===(null===navigator||void 0===navigator?void 0:navigator.doNotTrack)),ua:window.navigator.userAgent,h:screen.height,w:screen.width,language:(navigator.language||Po[o]||"no").split("-")[0]},regs:{ext:{gdpr:d.gdpr||0}},user:{id:yield Nt(i),ext:{consent:d.gdpr_consent||"",eids:we(o)}},at:1,cur:[ko[o]],source:{tid:Tt(36)},ext:{prebid:{bidder:{appnexus:{member:r.member}}}}}})}fetchData(e,t,n,i){return o(this,void 0,void 0,function*(){try{v("Starting fetching Studio ad from Xandr:",Fi);const o=new Headers({"Content-Type":"application/json"}),r=new URLSearchParams(window.location.search),a=new URLSearchParams(["openRTBDebugMemberOverride","openRTBNewsroomOverride","openRTBForceNativeDesc2Override"].flatMap(e=>{const t=r.get(e);return t?[[e,t]]:[]})),s=a.size>0?`${Fi}?${a.toString()}`:Fi,d=yield this.buildFetchObject(e,t,n,i),l=yield ie.post(s,o,d);return v("Fetch operation completed successfully.",l),l}catch(e){v("Error during fetch operation:",e)}return null})}}const jo=0,_o=3,$o=(e,t,n,i)=>{const o=t.parentElement;if(!o)return;const r=e?`-${e}`:"",a=i?`__${i}`:"",s=`advertory${r}-${n}${a}`,d=`advertory${r}-${n}-wrapper${a}`;t.classList.remove(...t.classList),o.classList.remove(...o.classList),t.classList.add(s),o.classList.add(d),t.dataset.adType=n},No={FINN_BLINK:"finn-blink",NATIVE_AD:"native-ad"},qo=(e,t,n)=>{var i;const o=t.replace(/-[^-]*$/,"");return null===(i=null==n?void 0:n[e].find(e=>e.targetId===o))||void 0===i?void 0:i.invCode},Fo=(e,t)=>{new IntersectionObserver((e,n)=>{for(const i of e)if(i.intersectionRatio>=.5){n.disconnect(),t();break}},{threshold:.5}).observe(e)};class Ro{constructor(e,t){this.pulse=e,this.publisher=t}static extractAdFormat(e){return e.replace(/_\d.*$/,"")}computeInvCode(){}buildPlacement(e){return{placementId:null!=e?e:""}}trackLoad(){var e,t;null===(t=(e=this.pulse).trackLoadAd)||void 0===t||t.call(e,{object:this.buildAdObject(),placement:this.buildPlacement(this.computeInvCode())})}trackImpression(){const e=document.querySelector(`#${this.getTargetId()}`);e&&Fo(e,()=>{var e,t;return null===(t=(e=this.pulse).trackImpressionAd)||void 0===t?void 0:t.call(e,{object:this.buildAdObject(),placement:this.buildPlacement(this.computeInvCode())})})}trackEngagement(e){var t,n;null===(n=(t=this.pulse).trackEngagementAd)||void 0===n||n.call(t,{object:this.buildAdObject(),placement:this.buildPlacement(null!=e?e:this.computeInvCode()),engagement:{action:"Click",elementName:this.getTargetId()}})}}class Mo extends Ro{constructor(e,t){var n;super(e.pulse.instance,null!==(n=e.pageContext.publisher)&&void 0!==n?n:""),this.xandrParams=e,this.adObj=t}getTargetId(){return this.adObj.targetId}computeInvCode(){const{pageContext:{deviceType:e},placements:t}=this.xandrParams;if(e)return qo(e,this.adObj.targetId,t)}buildAdObject(){const e=Mo.extractAdFormat(this.adObj.targetId);return Object.assign(Object.assign({objectId:this.adObj.targetId,objectSdrn:`sdrn:${this.publisher}:ad-slot:${e}`,platform:"microsoft",adFormat:e,creativeType:this.adObj.adType,demandChannel:9700===this.adObj.buyerMemberId?"direct":"programmatic"},null!=this.adObj.creativeId&&{creativeId:String(this.adObj.creativeId)}),{opportunityId:this.adObj.uuid,size:`${this.adObj.width}x${this.adObj.height}`})}}var Do=Object.freeze({__proto__:null,XandrAdTracker:Mo});const Bo=(e,t)=>{Uo(e,t),Wo(e,t)},Uo=(e,t)=>{var n,i;const o=document.querySelector(`#${e.targetId}`);if(!o||!(null===(n=e.native)||void 0===n?void 0:n.clickTrackers))return;const r=null!==(i=null==t?void 0:t.clickLinkSelector)&&void 0!==i?i:"a.ad-link";(null==o?void 0:o.querySelectorAll(r)).forEach(n=>{"true"!==n.dataset.tracked&&(n.addEventListener("click",()=>{var n,i,o,r,a,s;for(const t of null!==(i=null===(n=e.native)||void 0===n?void 0:n.clickTrackers)&&void 0!==i?i:[])zo(t);if((null===(o=null==t?void 0:t.pulse)||void 0===o?void 0:o.instance)&&(null===(r=null==t?void 0:t.pulse)||void 0===r?void 0:r.adTrackingEnabled)){const n={publisher:null!==(a=t.publisher)&&void 0!==a?a:"",deviceType:null!==(s=t.deviceType)&&void 0!==s?s:Bn};new Mo({pulse:t.pulse,placements:t.placements,pageContext:n},e).trackEngagement()}}),n.dataset.tracked="true")})},Ho=e=>{var t;const{native:{impressionTrackers:n}={}}=e,i=null==n?void 0:n.some(e=>e.includes("googleads")),o="function"==typeof(null===(t=window.apntag)||void 0===t?void 0:t.fireImpressionTrackers)&&!!e.tagId;i||!o?null==n||n.forEach(Vo):window.apntag.fireImpressionTrackers(e);const r=new CustomEvent("advertory:nativeImpression",{detail:{ad:e}});window.dispatchEvent(r)},Wo=(e,t)=>{var n;let i=!1;const o=document.querySelector(`#${e.targetId}`);if(!o||!e.native)return;const{deviceType:r,appearanceConfig:a,nativeTrackingConfig:{fireImpressionsBasedOnAppearanceThreshold:s=!1}={}}=t,d=s?{rootMargin:`${l=null!==(n=null==a?void 0:a.defaultThreshold[null!=r?r:Bn])&&void 0!==n?n:0}px 0px ${l}px 0px`}:{};var l;const c=new IntersectionObserver(t=>{if(!i)for(const n of t)if(n.isIntersecting){i=!0,Ho(e),c.disconnect();break}},d);c.observe(o)},Vo=e=>{const t=e.includes("googleads");"function"!=typeof window.navigator.sendBeacon||t?zo(e):window.navigator.sendBeacon(e)},zo=e=>{ie.get(e,{mode:"no-cors"}).catch(t=>console.warn(`Tracker ${e} failed. Error: ${t||"Unknown"}`))},Ko=e=>e.reduce((e,t)=>{if(!t.serverSidePlacement)return e.clientSidePlacements.push(t),e;const n=Math.random()<.5;return t.keywords=Object.assign(Object.assign({},t.keywords),{"aa-sch-prerenderer":n?"true":"false"}),n?e.serverSidePlacements.push(t):e.clientSidePlacements.push(t),e},{clientSidePlacements:[],serverSidePlacements:[]}),Go=(e,t)=>o(void 0,void 0,void 0,function*(){var n,i;const{pageContext:{deviceType:o},appearanceConfig:r}=t,a=null==r?void 0:r.defaultThreshold[o],s=null!==(n=e.requestThreshold)&&void 0!==n?n:a,d=document.getElementById(e.targetId);if(!d)return void v(`Server-side ad container not found: ${e.targetId}`);yield new Promise(e=>{new IntersectionObserver((t,n)=>{t.some(e=>e.isIntersecting)&&(n.disconnect(),e())},Yn(s)).observe(d)});const{prepareTag:l}=w.getHandlers(),c=E.getData("alertoryConfigKeywords"),u=null!==(i=l(tn(e)).keywords)&&void 0!==i?i:{},p=new Lo,g=yield p.fetchData(e,c,u,t);g&&(((e,t,n)=>{const i=n===Mn?t.mobileHTML:t.desktopHTML;if(i){if(t.adType===jo){const n=document.createElement("iframe");n.width=String(t.bid.w),n.height=String(t.bid.h),n.style.overflow="hidden",n.style.border="none",n.srcdoc=`<style>html,body{margin:0;overflow:hidden;}</style>${i}`,e.appendChild(n)}else e.innerHTML=i;e.classList.add("ad-loaded")}})(d,g,o),g.adType===_o&&($o(t.pageContext.publisher,d,No.NATIVE_AD,t.pageContext.pageType),Bo({targetId:e.targetId,native:{clickTrackers:g.clickTrackers,impressionTrackers:g.impTrackers}},{deviceType:o,appearanceConfig:r,nativeTrackingConfig:t.nativeTrackingConfig,clickLinkSelector:"a"})),((e,t,n,i)=>{var o,r,a;let s;(null===(o=window.apntag.requests)||void 0===o?void 0:o.tags[e])||(null!==(r=(a=window.apntag).requests)&&void 0!==r||(a.requests={tags:{}}),window.apntag.requests.tags[e]={invCode:t,adResponse:{ads:[{creative_id:Number(null==i?void 0:i.adid)}]}}),!!n.querySelector("iframe")||(s=document.createElement("iframe"),n.appendChild(s)),bt(e,n,Number(null==i?void 0:i.adid)),null==s||s.remove()})(e.targetId,e.invCode,d,g.bid))}),Xo=(e,t)=>{e.forEach(e=>Go(e,t).catch(e=>{v("Failed to handle server-side ad:",e)}))},Jo="[data-carousel-track]",Qo=({image_link:e,title:t})=>{const n=document.createElement("figure"),i=document.createElement("img");return n.className="carousel-slide",n.setAttribute("data-carousel-slide",""),i.className="slide-image",i.src=e,i.alt=t,i.loading="lazy",i.draggable=!1,n.appendChild(i),n},Yo=e=>Boolean(e.title&&e.link&&e.image_link),Zo=(e,t)=>o(void 0,void 0,void 0,function*(){const n=e.querySelector(Jo);var i;if(n)if(t&&(e=>{try{return"https:"===new URL(e).protocol}catch(e){return!1}})(t))try{const r=yield(e=>o(void 0,void 0,void 0,function*(){try{const t=yield ie.get(e,{timeout:5e3});return t&&Array.isArray(t.items)?t:(g("Carousel feed has an unexpected shape",{url:e}),null)}catch(t){return g("Failed to fetch carousel feed",{url:e,error:t}),null}}))(t);if(!r)return void e.replaceChildren();const a=r.items.filter(Yo);if(!a.length)return void g("Carousel feed has no usable items");yield import("./styles-Cfoa2vM7.js");const s={title:(i=e).querySelector("[data-product-title]"),description:i.querySelector("[data-product-description]"),price:i.querySelector("[data-product-price]"),link:i.querySelector("[data-product-link]")};n.replaceChildren(...a.map(Qo)),(({root:e,onChange:t})=>{var n;const i=e.querySelector("[data-carousel-viewport]"),o=e.querySelector(Jo),r=Array.from(null!==(n=null==o?void 0:o.querySelectorAll("[data-carousel-slide]"))&&void 0!==n?n:[]);if(!i||!o||!r.length)return;const a=r.length,s=[r[a-1].cloneNode(!0),...r,r[0].cloneNode(!0)];let d=1,l=null,c=0,u=!1;const p=e=>{const t=s[0].offsetWidth,n=Number.parseFloat(getComputedStyle(o).columnGap)||0,r=(i.clientWidth-t)/2-d*(t+n);o.style.transition=e?"transform 360ms cubic-bezier(.22, .61, .36, 1)":"none",o.style.transform=`translate3d(${r+c}px, 0, 0)`,o.offsetWidth},v=(e,n=!0)=>{d=e,p(n),s.forEach((e,t)=>e.classList.toggle("is-active",t===d)),null==t||t((d-1+a)%a)},g=()=>{0===d?v(a,!1):d===a+1&&v(1,!1)},h=()=>{if(null===l)return;const e=Math.abs(c)>=.12*i.clientWidth?-Math.sign(c):0;l=null,c=0,v(d+e),window.setTimeout(()=>{u=!1})};o.replaceChildren(...s),o.addEventListener("transitionend",e=>{e.target===o&&g()}),i.addEventListener("pointerdown",e=>{g(),l=e.clientX,i.setPointerCapture(e.pointerId),p(!1)}),i.addEventListener("pointermove",e=>{null!==l&&(c=e.clientX-l,u=u||Math.abs(c)>6,p(!1))}),i.addEventListener("pointerup",h),i.addEventListener("pointercancel",h),i.addEventListener("click",e=>{u&&(e.preventDefault(),e.stopPropagation())},!0),e.addEventListener("dragstart",e=>e.preventDefault()),v(1,!1)})({root:e,onChange:e=>(({title:e,description:t,price:n,link:i},o)=>{e&&(e.textContent=o.title),t&&(t.textContent=o.description),n&&(n.textContent=o.sale_price||o.price),i&&(i.href=o.link)})(s,a[e])}),v("Carousel mounted",{items:a.length})}catch(t){g("Carousel could not be rendered",t),e.replaceChildren()}else g("Carousel feed url is missing or not a valid https url",{url:t})}),er="_adchoices_non_rtb",tr=e=>{const{tcf:{nonRtb:{invCodeSuffix:t=er}={}}={}}=w.get();return`${On(e)}${t}`},nr=(e,t)=>t?e:((e=>{e.filter(e=>!e.supportsNonRTB).forEach(e=>In(e.targetId))})(e),(e=>e.filter(e=>e.supportsNonRTB).map(e=>Object.assign(Object.assign({},e),{invCode:tr(e.invCode)})))(e)),ir=e=>`${Math.max(0,Math.round(e))}px`,or=e=>{const{marginTop:t,marginBottom:n}=getComputedStyle(e);return e.getBoundingClientRect().height+parseFloat(t||"0")+parseFloat(n||"0")},rr=(e,t)=>{const n=document.body;if(n)for(const t of Object.keys(e)){const i=e[t];n.style.setProperty(t,i)}},ar=()=>{const{pageSectionsSelectors:e}=w.get();(null==e?void 0:e.header)&&(e=>{const t=document.querySelector(e);if(!t)return;const n=or(t);rr({"--advertory-header-height":ir(n)})})(e.header)};let sr=wi,dr=[];const lr=["takeover","wallpaper"],cr=(e,t)=>{var n,i;const{initNativeAd:o}=w.getHandlers();null==o||o(e,null!==(i=null!=t?t:null===(n=window.advertory)||void 0===n?void 0:n.siteConfig)&&void 0!==i?i:w.get())},ur=e=>{const t=(e=>{var t;const n=E.getData("alertoryConfigKeywords"),{queryConfig:i,placements:o,tcf:r,glimr:a,appearanceConfig:s,pageContext:{publisher:d,countryCode:l,pageType:c,deviceType:u,isMobileApp:p=!1},pageOptions:{member:v},pageSetup:g,takeover:h,fullscreenScroll:m,fullWidth:f}=e,b=null!==(t=null==i?void 0:i.batchSize)&&void 0!==t?t:y;return{xandr:{member:v,keywords:n,tags:[]},advertory:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({pageContext:{publisher:d,countryCode:l,pageType:c,deviceType:u,isMobileApp:p},pageSetup:g,placements:o,tcf:r,queryConfig:Object.assign(Object.assign({},i),{batchSize:b})},a&&{glimr:a}),s&&{appearanceConfig:s}),h&&{takeover:h}),m&&{fullscreenScroll:m}),f&&{fullWidth:f})}})(e);window.advertory={initialized:!0,version:"3.17.1",siteConfig:e,renderNativeAd:cr,alertoryConfig:t}},pr=()=>o(void 0,void 0,void 0,function*(){yield sr.setTargeting()}),vr=e=>o(void 0,void 0,void 0,function*(){var t,n;const{prebid:i,tcf:o,pageContext:{isMobileApp:r,countryCode:a}}=w.get(),s=yield R(o,r,a,"loadPlacements"),d=nr(e,s);null===(t=sr.definePlacements)||void 0===t||t.call(sr,d);(null==i?void 0:i.enabled)&&s&&!It()?(v("core loadPlacements prebid enabled"),yield kt()):(v("core load tags invoked without prebid enabled"),yield null===(n=sr.requestPlacements)||void 0===n?void 0:n.call(sr,d))}),gr=(e,t)=>o(void 0,void 0,void 0,function*(){const{appearanceConfig:n,pageContext:{deviceType:i}}=w.get(),{requestThreshold:o,refresh:r}=e,a=(e=>{const t=document.querySelector(`[data-show-tag-subscribe-id=${e.targetId}]`),n=document.querySelector(`#${e.targetId}`);return t||n})(t),s=null==n?void 0:n.defaultThreshold[i];a&&(v("core showAd - subscribe for show tag with thresholds",{placement:e,ad:t,requestThreshold:o,deviceDefaultThreshold:s}),yield ji(a,null!=o?o:s)),a&&(null==r?void 0:r.scroll)&&(v("core showAd - setup refreshing",{placement:e,ad:t}),a.dataset.refresh=r.scroll.toString())}),hr=e=>e.some(({targetId:e})=>lr.some(t=>e.includes(t))),mr=e=>o(void 0,void 0,void 0,function*(){var t;if(!(null===(t=null===window||void 0===window?void 0:window.advertory)||void 0===t?void 0:t.initialized))return;const[n,i]=(e=>e.reduce(([e,t],n)=>{var i;return(null===(i=null==n?void 0:n.finnBlink)||void 0===i?void 0:i.loadOnlyFinnBlink)?[[...e,n],t]:[e,[...t,n]]},[[],[]]))(e),o=(e=>{const{queryConfig:{placementBatches:t,batchSize:n=y}={},pageContext:{deviceType:i}}=w.get(),o=Qn(e),r=Object.keys((null==t?void 0:t[i])||{}).map(e=>o[e]||[]).filter(e=>e.length>0),a=new Set(r.flat().map(({targetId:e})=>e)),s=e.filter(({targetId:e})=>!a.has(e));return[...r,...di(s,n)]})(i);for(const e of o)hr(e)?(v("core loadAds without lazy loading",{placementsToLoad:e}),yield vr(e)):e.length&&(v("core loadAds with lazy loading",{placementsToLoad:e}),yield fr(e));const{finnBlink:r}=w.get();if((null==r?void 0:r.enabled)&&n.length>0){const{handleFinnBlinkOnlyPlacements:e}=yield import("./index-B6HjYflQ.js");yield e(n)}}),fr=e=>o(void 0,void 0,void 0,function*(){const{queryConfig:{lazyLoadingV3:{enabled:t=!1,rootMargin:n="200% 0px"}={}}={}}=w.get(),i=[];if(!t)return v("lazy load is not enabled",{placements:e}),void(yield vr(e));const o=new IntersectionObserver((t,n)=>{t.filter(({isIntersecting:e,target:{id:t}})=>e&&!t.includes("wallpaper")).forEach(t=>{v("lazy load is enabled - handler start",{loadedTargetIds:i,placements:e});const o=e.every(e=>i.includes(e.targetId)),r=e.map(e=>e.targetId);!o&&i.push(...r),!o&&vr(e),v("lazy load is enabled - handler stop",{loadedTargetIds:i,placements:e,arePlacementsLoaded:o,targetIds:r}),n.disconnect()})},{rootMargin:n});e.forEach(e=>{const t=document.getElementById(e.targetId);t&&(v("lazy loading - observe element",{targetId:e.targetId,element:t}),o.observe(t))})}),yr=()=>o(void 0,void 0,void 0,function*(){const e=(()=>{const e={adRequested:[],adRendered:[]};return{emit:(t,n)=>o(void 0,void 0,void 0,function*(){yield Promise.all(e[t].map(e=>e(n)))}),on:(t,n)=>{e[t].push(n)}}})();e.on("adRendered",e=>o(void 0,void 0,void 0,function*(){if(!e||!("targetId"in e))return;const t=dr.find(({targetId:t})=>t===e.targetId);t&&(yield gr(t,e),dr=dr.filter(e=>e.targetId!==t.targetId))})),yield sr.bindEvents(e)}),br=(e,t)=>o(void 0,void 0,void 0,function*(){var n,i;if(v(`Advertory update called with config: ${JSON.stringify(e)}, options: ${JSON.stringify(t)}`),!(null===(n=null===window||void 0===window?void 0:window.advertory)||void 0===n?void 0:n.initialized))return v("Advertory update skipped - Advertory is not initialized"),[];const{clearAds:o,disableAds:r,reloadExistingAds:a,renderFinnBlinkPlacements:s,contextSelector:d}=null!=t?t:{},l=Object.keys(null!=e?e:{}).length>0;let c=[];if(r)return qn(),dr=[],Fn(),[];if(o&&(c=null!==(i=qn())&&void 0!==i?i:[]),o&&!l)return[];o&&l&&(dr=[],Fn()),a&&(qn(),document.querySelectorAll('[data-advertory-ad-rendered="true"]').forEach(e=>{En(e.id)})),yield Rn(e),(null==e?void 0:e.pageSectionsSelectors)&&ar(),yield pr();const{clientSidePlacements:u,serverSidePlacements:p}=Ko(Xn(d)),g=[...u,...p];((e,t)=>{if(0===e.length)return;const n=new Set(t.map(({targetId:e})=>sn(e)));e.filter(e=>n.has(e)).forEach(e=>En(e))})(c,g),((e,t)=>{if(0===e.length)return;const n=new Set(t.map(({targetId:e})=>sn(e)));e.filter(e=>!n.has(e)).forEach(e=>Tn(e))})(c,g);let h=u;return s&&(h=h.filter(e=>Ne(e.targetId))),Xo(p,w.get()),h.length>0&&(dr=[...dr,...h.map(e=>Object.assign({},e))],ui(h),vi(h),yield mr(h)),dr}),wr=(e,t,n)=>o(void 0,void 0,void 0,function*(){var i,r;const{initConsentManager:a,getConsentAsync:s}=F(e.tcf,null===(i=e.pageContext)||void 0===i||i.isMobileApp,null===(r=e.pageContext)||void 0===r?void 0:r.countryCode),d=yield _n(e);yield Ni(),yield _i(a),yield _i(s),v("TCF resolved successfully"),yield((e,t,...n)=>o(void 0,[e,t,...n],void 0,function*(e,t,n=wi){var i,r;sr=n,w.set(e),w.setHandlers(Object.assign(Object.assign({},t),e.customHandlers));const{norstat:a,kilkaya:s,rightColumnSplit:d,finnBlink:l}=e;E.initialize(),window.addEventListener("message",Pi,!1);const[c]=yield Promise.allSettled([sr.setup(),he(e),o(void 0,void 0,void 0,function*(){const{developerOptions:{gptUrl:e}={},tcf:t,pageContext:{isMobileApp:n,countryCode:i}}=w.get();(yield R(t,n,i,"gpt-endpoint"))&&(yield Ee(null!=e?e:"https://securepubads.g.doubleclick.net/tag/js/gpt.js"))}),o(void 0,void 0,void 0,function*(){const{brandmetrics:{enabled:e,brandmetricsUrl:t}={},tcf:n,pageContext:{isMobileApp:i,countryCode:o}}=w.get(),{getConsentAsync:r}=F(n,0,o),a=yield r();if(e&&t&&a){if(yield Ee(t),document.querySelector(`.${$i}`))return window._brandmetrics=window._brandmetrics||[],void window._brandmetrics.push({cmd:"_loadsurvey"});new MutationObserver((e,t)=>{for(const n of e){if("childList"!==n.type)return;Array.from(n.addedNodes).some(e=>{var t;return null===(t=e.outerHTML)||void 0===t?void 0:t.includes($i)})&&(t.disconnect(),window._brandmetrics=window._brandmetrics||[],window._brandmetrics.push({cmd:"_loadsurvey"}))}}).observe(document,{childList:!0,subtree:!0,attributes:!0})}}),D(),o(void 0,void 0,void 0,function*(){const{gdpr:{gdprUrl:e,allowHidingAds:t=!0}={}}=w.get();t&&(window.gdpr=window.gdpr||{},window.gdpr.allowHidingAds=!0),yield Ee(null!=e?e:"https://cogwheel.inventory.schibsted.io/prod/latest/gdpr-bundle.js")})]);if("rejected"===c.status)throw c.reason;if(v("Driver has been set up"),null==a?void 0:a.enabled){const{loadNorstat:e}=yield import("./index-BAMoZ2vZ.js");yield e()}if(v("Libraries have been loaded and trackers have been set"),ar(),yield yr(),yield pr(),v("Page options have been set"),ur(e),v("Advertory is setup on window"),"dom-discovered"===sr.capabilities.tagDefinition)return yield null===(i=sr.requestPage)||void 0===i?void 0:i.call(sr),void v("Ads requested via dom-discovered driver");const{clientSidePlacements:u,serverSidePlacements:p}=Ko(Xn());if(dr=u,Xo(p,e),ui(dr),vi(dr),yield mr(dr),v("Ads has been loaded",dr),cn(dr),null==l?void 0:l.enabled){const{replaceAdsWithFinnBlink:t}=yield import("./index-B6HjYflQ.js");yield t(null===(r=null==e?void 0:e.pageContext)||void 0===r?void 0:r.deviceType,e.finnBlink)}if(null==d?void 0:d.enabled){const{initRightColumnSplit:t}=yield import("./index-Ccj7sOml.js");t(e.rightColumnSplit)}if(null==s?void 0:s.enabled){const{runKilkaya:t}=yield import("./index-CT3lgloM.js");yield t(e)}}))(d,t,n),v("Run function resolved successfully")}),Cr=["sponsor","seamless"],Ir=["shopping"],Er=(e,t,n,i)=>{var o;const{image:r,icon:a,sponsoredBy:s,title:d,clickUrl:l,cta:c,body:u,desc2:p,video:v,description:g,customTitle1:h,customTitle2:m,customTitle3:f,customTitle4:y,customBody1:b,customBody2:w,customBody3:C,customBody4:I,customBody5:E,customIcon1:T,customIcon2:S,customDisplayUrl1:A,customDisplayUrl2:O}=e,x=(e,t="")=>{var n;return e?null!==(n=e.url)&&void 0!==n?n:e:t};return Object.assign({containerId:n,img:x(r),imgWidth:null==r?void 0:r.width,imgHeight:null==r?void 0:r.height,imgAltText:null!=d?d:"",logo:(()=>{var e;const t=Cr.some(e=>null==p?void 0:p.includes(e))&&"dark"===(null===(e=i.appearanceConfig)||void 0===e?void 0:e.theme)&&T;return x(t?T:a)})(),sponsoredBy:null!=s?s:"",title:null!=d?d:"",url:null!=l?l:"",cta:null!=c?c:"",description:null!==(o=null!=u?u:g)&&void 0!==o?o:"",desc2:null!=p?p:"",video:v,customTitle1:null!=h?h:"",customTitle2:null!=m?m:"",customTitle3:null!=f?f:"",customTitle4:null!=y?y:"",customBody1:null!=b?b:"",customBody2:null!=w?w:"",customBody3:null!=C?C:"",customBody4:null!=I?I:"",customBody5:null!=E?E:"",logo2:x(S),previewVideoSrc:null!=A?A:"",feedUrl:null!=O?O:""},t)},Tr=(e,t)=>{const n=(i=L,window.location.href.includes(i));var i;const o=new URLSearchParams(window.location.search).get(L),r=t.includes("native_recirc");return n&&o?o:(null==e?void 0:e.includes("recirc"))&&!Ir.includes(t.toLowerCase())?r?"native_recirc":"recirc":(null==e?void 0:e.includes("sponsor"))?"sponsorstripe":null},Sr=(e,n,i,o)=>{const r=document.querySelector(`#${e}`);r&&n&&(r.innerHTML=n,((e,n)=>{const i=e.parentElement,{publisher:o,pageType:r}=n,a=o&&Object.values(t).includes(o);i&&a&&$o(o,e,No.NATIVE_AD,r)})(r,i),o())},Ar=(e,t,n)=>{var i;const o=((e,t,n)=>{var i;const{displayTemplates:o,videoTemplates:r}=n,a="default";if(!e.native)return null;const{native:s,targetId:d}=e,{desc2:l=a}=e.native,c=l.toLowerCase(),u=null!==(i=Tr(e.targetId,l))&&void 0!==i?i:c,p=ct[t.language||_.NO],v=Er(s,p,d,t);return(s.video?r[u]:o[u]||o.default)(v,t)})(e,t,n);Sr(e.targetId,o,t,()=>{const{nativeTrackingConfig:{enabled:n=!0}={}}=t;n&&Bo(e,t)});const r=document.querySelector(`#${e.targetId}`);r&&Zo(r,null===(i=e.native)||void 0===i?void 0:i.customDisplayUrl2)},Or=e=>(t,n)=>{var i;const{targetId:o}=t,r=document.querySelector(`#${o}`);if(!r)return;const a=e.getOptions(null!=n?n:{});Ar(t,a,e.templates),null===(i=e.postProcess)||void 0===i||i.call(e,t,r)},xr=()=>{if(!window.location.search.includes("kv_"))return{};const e={},t=(()=>{const e=new URLSearchParams(window.location.search);return Object.fromEntries(e)})();return Object.keys(t).forEach(n=>{n.startsWith("kv_")&&(e[n.slice(3)]=t[n])}),e},kr=e=>{const{siteSpecificConfig:t}=w.get(),n=(null==t?void 0:t.dynamicOutstreamFormats)||[];return 0!==n.length&&n.some(t=>e.includes(t))};class Pr{constructor(){this.keywords={}}add(e){return Object.assign(this.keywords,e),this}addAsync(e){return o(this,void 0,void 0,function*(){return Object.assign(this.keywords,yield e),this})}addIf(e,t){return e&&Object.assign(this.keywords,t),this}addIfAsync(e,t){return o(this,void 0,void 0,function*(){return e&&Object.assign(this.keywords,yield t()),this})}build(){return this.keywords}}const Lr=9826;class jr{constructor(){this.getSupplyTypeKeywords=()=>{const{pageContext:{deviceType:e,isMobileApp:t}}=w.get();if(t){return{"aa-sch-supply_type":`app_${e===Mn?"phone":Dn}`}}return{"aa-sch-supply_type":`web_${this.getPageOptionsFormatDevice(e)}`}}}prepare(e){return o(this,void 0,void 0,function*(){return Object.assign(Object.assign({},e),{keywords:Object.assign(Object.assign(Object.assign(Object.assign({},e.keywords),this.getSupplyTypeKeywords()),yield this.getFormattedExternalIdKeywords()),this.getHasContextKeywords(e.keywords)),user:{externalUid:yield this.getExternalUid(),dnt:yield this.isTrackingForbidden()}})})}getFormattedExternalIdKeywords(){return o(this,void 0,void 0,function*(){const e=yield this.getExternalUid(),t=this.getUserId();return{"aa-sch-externalid_src":Number(!!e)+Number(!!t)}})}getUserId(){return(()=>{const e=$t("_pulse2data");return e?e.split(",")[2]:void 0})()}getExternalUid(){return o(this,void 0,void 0,function*(){return yield Nt(w.get())})}isTrackingForbidden(){return o(this,void 0,void 0,function*(){return(null===navigator||void 0===navigator?void 0:navigator.globalPrivacyControl)||"1"===(null===navigator||void 0===navigator?void 0:navigator.doNotTrack)||"DO_NOT_TRACK"===(yield this.getExternalUid())})}getMember(){const{pageOptions:{member:e},developerOptions:{testMember:t=Lr}={}}=w.get();return"true"===k("inventory_test")?t:e}getCMPValue(e){return localStorage.getItem(`CMP:${e}`)?"0"===localStorage.getItem(`CMP:${e}`)?"0":"1":"0"}getPublisherKeywords(){const{pageContext:{publisher:e}}=w.get();return{"aa-sch-publisher":`${e}`}}getAnalyticsConsentKeywords(){return{"aa-sch-cmp_analytics":this.getCMPValue("analytics")}}getAdvertisingConsentKeywords(){return o(this,void 0,void 0,function*(){const{tcf:e,pageContext:{isMobileApp:t,countryCode:n}}=w.get(),{getConsentAsync:i}=F(e,0,n);return{"aa-sch-cmp_advertising":(yield i())?"1":"0"}})}getPageTypeKeywords(){const{pageContext:{pageType:e}}=w.get();return{"aa-sch-page_type":e}}getCountryCodeKeywords(e){return{"aa-sch-country_code":e}}getInventoryTypeKeywords(){return{"aa-sch-inventory_type":"editorial"}}getHasContextKeywords(e){const t=e["aa-sch-context_keyword"];return{"aa-sch-has_context_keyword":Array.isArray(t)&&t.length?1:0}}getPageOptionsFormatDevice(e="desktop"){return"mobile"===e?"phone":e}}const _r=new jr;function $r(e=!1){var t,n;const i=null===(n=null===(t=window.navigator)||void 0===t?void 0:t.userAgent)||void 0===n?void 0:n.toLocaleLowerCase(),o=co();return{OS:o,mobileOS:["ios","android"].includes(o)?o:"unknown",isHybridApp:i.includes("hermes"),appMode:e?"hybrid":"notinapp"}}_r.prepare.bind(_r);const Nr=["aLOLE","xBqQj","1KaqJ","1nzXzK","opm8zV","4qKXKR","Ad9QgE"];function qr(e){return t=window.location.pathname.split("/").slice(-2,-1).pop()||"",Nr.includes(t)?{"no-sno-news-section":`${e}_doedsfall`}:{};var t}class Fr extends jr{constructor(){super(...arguments),this.getDeviceKeywords=()=>{const{pageContext:{deviceType:e}}=w.get();return{"no-sno-device":this.getPageOptionsFormatDevice(e)}}}getAppTypeKeywords(){const{pageContext:{deviceType:e,isMobileApp:t}}=w.get(),{OS:n,isHybridApp:i}=$r(t);return{"no-sno-apptype":n&&e&&i?`${n}_${this.getPageOptionsFormatDevice()}_hybrid`:"none"}}getObituariesKeywords(e){return qr(e)}getSectionPageTypeKeywords(){var e,t;const{pageOptions:n,pageContext:{pageType:i}}=w.get(),o=null!==(t=null===(e=n.keywords["no-sno-news-section"])||void 0===e?void 0:e.toString())&&void 0!==t?t:"ettan";return{"no-sno-section-page_type":`${o.split("_").pop()||o}_${"article"===i?"article":"front"}`}}}const Rr=new class extends Fr{prepare(e){return o(this,void 0,void 0,function*(){var t,n,i,o,r,a,s;const d=w.get(),l=null!==(i=null===(n=null===(t=d.pageSetup)||void 0===t?void 0:t.pageOptions)||void 0===n?void 0:n.options)&&void 0!==i?i:{},c=null!==(a=null===(r=null===(o=d.pageSetup)||void 0===o?void 0:o.pageOptions)||void 0===r?void 0:r.keywords)&&void 0!==a?a:{},u=null===(s=d.siteSpecificConfig)||void 0===s?void 0:s.publisherClassName,p=new Pr;yield p.addAsync(this.getAdvertisingConsentKeywords()),yield p.addAsync(K(d,l.addPublisherToGeo?{addPublisherToGeo:!0}:void 0)),yield p.addIfAsync(c.externalIdSrc,()=>this.getFormattedExternalIdKeywords()),p.add(this.getSupplyTypeKeywords()).add(fe()).addIf(c.appType,this.getAppTypeKeywords()).addIf(c.device,this.getDeviceKeywords()).addIf(c.analyticsConsent,this.getAnalyticsConsentKeywords()).addIf(c.sectionPageType,this.getSectionPageTypeKeywords()).addIf(c.hasContext,this.getHasContextKeywords(e.keywords)).add(e.keywords).addIf(c.obituaries&&void 0!==u,void 0!==u?this.getObituariesKeywords(u):{});const v=p.build(),g=!1!==l.includeExternalUid;return Object.assign(Object.assign({},e),{keywords:v,user:Object.assign(Object.assign({},me(_.NO)),g?{externalUid:yield this.getExternalUid()}:{}),member:this.getMember()})})}},Mr=Rr.prepare.bind(Rr);class Dr extends jr{constructor(){super(...arguments),this.getDeviceKeywords=()=>{const{pageContext:{deviceType:e}}=w.get();return{"se-generic-sitemode":this.getPageOptionsFormatDevice(e)}}}getScreenKeywords(){const e=function(){const e=window.innerWidth,t=window.innerHeight,n=document.documentElement.clientWidth,i=document.documentElement.clientHeight;return{width:e||n||0,height:t||i||0}}(),t={width:null!==(i=null===(n=window.screen)||void 0===n?void 0:n.width)&&void 0!==i?i:0,height:null!==(r=null===(o=window.screen)||void 0===o?void 0:o.height)&&void 0!==r?r:0};var n,i,o,r;return{"se-generic-viewportheight":e.height,"se-generic-viewportwidth":e.width,"se-generic-screenheight":t.height,"se-generic-screenwidth":t.width}}getExternalIdSrc(){return o(this,void 0,void 0,function*(){const e=yield this.getExternalUid(),t=this.getUserId();return e?{"se-generic-externalid_src":Number(!!e)+Number(!!t)}:{"se-generic-externalid_src":0}})}getAppTypeKeywords(){const{pageContext:{isMobileApp:e}}=w.get(),{appMode:t,mobileOS:n}=$r(e);return{"se-generic-appmode":t,"se-generic-mobileos":n}}getPublisherGroup(){return{"se-generic-publishergroup":"schibsted"}}getSectionPageTypeKeywords(){var e,t;const{pageOptions:n,pageContext:{pageType:i}}=w.get();return{"se-generic-section-page_type":`${null!==(t=null===(e=n.keywords["se-generic-section"])||void 0===e?void 0:e.toString())&&void 0!==t?t:"ettan"}_${"article"===i?"article":"front"}`}}}const Br=new class extends Dr{prepare(e){return o(this,void 0,void 0,function*(){var t,n,i,r,a,s;const d=w.get(),l=null!==(i=null===(n=null===(t=d.pageSetup)||void 0===t?void 0:t.pageOptions)||void 0===n?void 0:n.options)&&void 0!==i?i:{},c=null!==(s=null===(a=null===(r=d.pageSetup)||void 0===r?void 0:r.pageOptions)||void 0===a?void 0:a.keywords)&&void 0!==s?s:{},u=new Pr;yield u.addAsync(this.getAdvertisingConsentKeywords()),yield u.addAsync(K(d,l.addPublisherToGeo?{addPublisherToGeo:!0}:void 0)),yield u.addIfAsync(c.externalIdSrc,()=>this.getExternalIdSrc()),yield u.addIfAsync(c.sdkVersion,()=>o(void 0,void 0,void 0,function*(){return{"se-generic-sdk-version":"function"==typeof window.apntag.getAstVersion?window.apntag.getAstVersion():""}})),u.add(this.getSupplyTypeKeywords()).add(fe()).addIf(c.appType,this.getAppTypeKeywords()).addIf(c.device,this.getDeviceKeywords()).addIf(c.screen,this.getScreenKeywords()).addIf(c.analyticsConsent,this.getAnalyticsConsentKeywords()).addIf(c.sectionPageType,this.getSectionPageTypeKeywords()).addIf(c.hasContext,this.getHasContextKeywords(e.keywords)).addIf(c.hasPlusMembership,{"se-generic-has_plus":"plus"===$t("X-AB-Site-Version")?"yes":"no"}).add(e.keywords);const p=u.build(),v=!1!==l.includeExternalUid;return Object.assign(Object.assign({},e),{keywords:p,user:Object.assign(Object.assign({},me(_.SE)),v?{externalUid:yield this.getExternalUid()}:{}),member:this.getMember()})})}},Ur=Br.prepare.bind(Br);let Hr;const Wr=()=>{(()=>{var e;const{placements:t,pageContext:{deviceType:n}}=w.get(),i=null!==(e=t[n])&&void 0!==e?e:[];return"tablet"===n&&0===i.length?t.desktop:i})().forEach(({targetId:e,adUnitId:t})=>{if(!t)return;const n=document.getElementById(e);n?n.dataset.adUnitId=t:v("relevant-managed requestPage - placement container was not found",{targetId:e})})},Vr=()=>{const{prebid:e}=w.get();return Boolean((null==e?void 0:e.enabled)&&e.manageAdserver&&!It())},zr={name:"relevant-managed",capabilities:{tagDefinition:"dom-discovered",deferredRequest:!1,deferredRender:!1,refresh:!1},setup:()=>o(void 0,void 0,void 0,function*(){var e;const{prebid:t}=w.get();Vr()?(null==t?void 0:t.prebidUrl)?(jt(e=>Z().push(e)),yield Ee(null!==(e=null==t?void 0:t.adServerUrl)&&void 0!==e?e:"https://s1.adform.net/banners/scripts/adx.js"),yield Ee(t.prebidUrl)):v("relevant-managed setup - prebidUrl is required, skipping script loading"):v("relevant-managed setup - managed prebid is disabled, skipping script loading")}),setTargeting:()=>o(void 0,void 0,void 0,function*(){if(!Vr())return;const{pageOptions:e}=w.get(),t={site:{keywords:(n=null==e?void 0:e.keywords,Object.values(null!=n?n:{}).flatMap(e=>Array.isArray(e)?e:[e]).filter(e=>void 0!==e).join(","))}};var n;Z().push(()=>{Y().addPrebidConfig({ortb2:t})})}),requestPage:()=>o(void 0,void 0,void 0,function*(){const{prebid:e,tcf:t,pageContext:n}=w.get();if(!Vr())return void v("relevant-managed requestPage - managed prebid is disabled, skipping");if(!(null==e?void 0:e.configId))return void v("relevant-managed requestPage - configId is required, skipping");(yield R(t,null==n?void 0:n.isMobileApp,null==n?void 0:n.countryCode,"relevant-managed-requestPage"))?(Wr(),null==Hr||Hr.emit("adRequested"),Z().push(()=>{v("relevant-managed requestPage - loadPrebid",{configId:e.configId}),Y().loadPrebid({configId:e.configId,noGpt:!0,manageAdserver:!0})})):v("relevant-managed requestPage - consent not granted, skipping")}),bindEvents:e=>o(void 0,void 0,void 0,function*(){Hr=e})},Kr={prepareTag:e=>{var t;const{keywords:n,targetId:i,invCode:o,dynamicSizeWidthCheck:r,globalPlacementId:a}=e,{pageSetup:s,pageContext:{countryCode:d}}=w.get(),{tag:{useAppTabletInvCode:l=!0}={}}=null!=s?s:{},c=((e,t)=>{const{pageContext:{isMobileApp:n}}=w.get();return n?((e,t)=>e.replace(/wtb|wde|wph/g,e=>"wph"===e?"aph":t?"atb":e))(e,t):e})(o,l),u=(e=>{const{pageContext:{countryCode:t}}=w.get(),{keywords:n,dynamicSizeWidthCheck:i}=e,o=`${z(t)}-adformat`,r=n?n[o]:[];if(!r)return{};const a=(Array.isArray(r)?r:[r]).filter(e=>!(e in Ae)||window.innerWidth>=Ae[e]);return{[o]:i?a:r}})(e),p=(e=>{const{pageContext:{countryCode:t}}=w.get(),n=`${z(t)}-targetid`;return e?{[n]:[e]}:{}})(i),v=(e=>{var t;const[,n]=null!==(t=e.match(/-((w|a)(?:ph|de|tb))-/))&&void 0!==t?t:[];switch(n){case"wde":return{"aa-sch-supply_type":"web_desktop"};case"wtb":return{"aa-sch-supply_type":"web_tablet"};case"wph":return{"aa-sch-supply_type":"web_phone"};case"aph":return{"aa-sch-supply_type":"app_phone"};default:return}})(c),g=xr(),h=(e=>kr(e)?{"aa-sch-dynamic-outstream":["true"]}:{})(o),m=((e,t)=>kr(e)?Object.assign(Object.assign({},t),{playerSkin:{videoBackgroundColor:"#e6e7e8"}}):{})(o,{safeFrameAutoInitialSize:!0}),f=r&&e.sizes.length>0?e.sizes.filter(([e])=>e<=window.innerWidth):e.sizes,y=(new Pr).add(null!=n?n:{}).add(u).add(p).add(null!=v?v:{}).add(h).add(g).addIf(null===(t=null==s?void 0:s.tag)||void 0===t?void 0:t.reloadKeywords,{[`${z(d)}-adreload`]:"0"}).build();return Object.assign(Object.assign({},e),{sizes:f,invCode:c,keywords:y,rendererOptions:m,globalPlacementId:a||c})},preparePageOptions:e=>o(void 0,void 0,void 0,function*(){const{pageContext:{countryCode:t}}=w.get();return yield t===_.SE?Ur(e):Mr(e)}),siteEvents:e},Gr=((e,t,n)=>({init:i=>{return r=Object.assign(Object.assign({},i),{siteSpecificConfig:t}),a=e,s=n,o(void 0,void 0,void 0,function*(){v(`Received configuration passed to Advertory: ${JSON.stringify(r)}`),yield wr(r,a,s)});var r,a,s},update:br,renderNativeAd:cr,getVideoPPIDs:Ce,createInitNativeAd:Or,getVideoAdsConfig:Oo}))(Kr,n,zr);export{No as A,Kt as B,_ as C,ct as D,Jt as E,Ke as F,Qe as G,qo as H,Ct as I,rn as J,Oe as K,ht as L,xe as M,t as N,uo as O,vo as P,po as Q,an as R,Be as S,qt as T,Te as U,Kn as V,Gr as W,o as _,Ie as a,In as b,w as c,i as d,qi as e,$o as f,sn as g,R as h,dt as i,be as j,or as k,v as l,rr as m,ir as n,Ro as o,J as p,En as q,Ee as r,ji as s,ci as t,Li as u,St as v,Fo as w,Xt as x,Qt as y,zt as z};