@schibsted/advertory 3.8.0 → 3.8.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 (365) hide show
  1. package/aftenposten/cjs/index.js +1 -1
  2. package/aftenposten/es/{_auto-entry_aftenposten-pgYrG-jH.js → _auto-entry_aftenposten-CVPgBiLt.js} +1 -1
  3. package/aftenposten/es/{events-DnqG67mp.js → events-DUFQOExk.js} +1 -1
  4. package/aftenposten/es/{index-B_3lhJSJ.js → index-3B_IWkOq.js} +1 -1
  5. package/aftenposten/es/{index-D7_ft3Sj.js → index-BI4cDsE4.js} +1 -1
  6. package/aftenposten/es/{index-DZo0dwP1.js → index-B_VpDgBd.js} +1 -1
  7. package/aftenposten/es/{index-l5xQJQGQ.js → index-Bzo7ltpU.js} +1 -1
  8. package/aftenposten/es/{index-BJ3HhMQ8.js → index-CJ5fOuBy.js} +1 -1
  9. package/aftenposten/es/{index-Cvf_YH9g.js → index-CJwHZ1Ym.js} +1 -1
  10. package/aftenposten/es/{index-Civuoo2p.js → index-CpP4OldH.js} +1 -1
  11. package/aftenposten/es/{index-CLiIEnoL.js → index-D65ttlC2.js} +1 -1
  12. package/aftenposten/es/{index-D6cT0cxY.js → index-oBjYkEfZ.js} +1 -1
  13. package/aftenposten/es/index.js +1 -1
  14. package/aftenposten/es/{styles-DzAeaqp9.js → styles-BIMZVpaF.js} +1 -1
  15. package/aftenposten/es/{styles-KKIij6qN.js → styles-ChiKObJa.js} +1 -1
  16. package/aftenposten/es/{styles-DQQW0Nli.js → styles-Ci_gpJ_Y.js} +1 -1
  17. package/aftenposten/es/{styles-s6usnqfe.js → styles-Cm548N1u.js} +1 -1
  18. package/aftenposten/es/{styles-Dl-KUsVt.js → styles-CmK4tUcy.js} +1 -1
  19. package/aftenposten/es/{styles-BJrVYOF2.js → styles-Cw5IUjB7.js} +1 -1
  20. package/aftenposten/es/{styles-Csja0dfY.js → styles-Dla5BB_C.js} +1 -1
  21. package/aftenposten/es/{styles-H760AohK.js → styles-XoEsB7X2.js} +1 -1
  22. package/aftenposten/es/{styles-BZH4RJh3.js → styles-gusKJeGk.js} +1 -1
  23. package/aftenposten/es/{styles-BgWQKp55.js → styles-vFzTLkJD.js} +1 -1
  24. package/aftenpostenv2/es/{_auto-entry_aftenpostenv2-Ce3OU_SG.js → _auto-entry_aftenpostenv2-G3fC-rUC.js} +1 -1
  25. package/aftenpostenv2/es/{events-B1j9qw6Y.js → events-DTNSp4vG.js} +1 -1
  26. package/aftenpostenv2/es/{index-Cl2lr6op.js → index-BZSiz6tR.js} +1 -1
  27. package/aftenpostenv2/es/{index-BstD9Yep.js → index-CpA7Bicg.js} +1 -1
  28. package/aftenpostenv2/es/{index-DByvq0zX.js → index-DFA95nRK.js} +1 -1
  29. package/aftenpostenv2/es/{index-Bei5gM7C.js → index-DvsL918J.js} +1 -1
  30. package/aftenpostenv2/es/{index-BI2d65pK.js → index-DywiyQYA.js} +1 -1
  31. package/aftenpostenv2/es/{index-Ci-49a81.js → index-E05f5X95.js} +1 -1
  32. package/aftenpostenv2/es/{index-Bb0PnyCW.js → index-YCJJhNNH.js} +1 -1
  33. package/aftenpostenv2/es/{index-Dp64z0of.js → index-ZU1D_yjw.js} +1 -1
  34. package/aftenpostenv2/es/{index-BnQwO7xR.js → index-eTvFglVP.js} +1 -1
  35. package/aftenpostenv2/es/index.js +1 -1
  36. package/aftenpostenv2/es/{styles-N6KnvU-5.js → styles-4aJcgaJk.js} +1 -1
  37. package/aftenpostenv2/es/{styles-BDOjNLA5.js → styles-Bc3-Vk6H.js} +1 -1
  38. package/aftenpostenv2/es/{styles-BP4lBE4m.js → styles-BpLSDWfn.js} +1 -1
  39. package/aftenpostenv2/es/{styles-aBTxqR04.js → styles-CLixWqzh.js} +1 -1
  40. package/aftenpostenv2/es/{styles-B9W8Aa-2.js → styles-CRxcvZXr.js} +1 -1
  41. package/aftenpostenv2/es/{styles-CKxjoebr.js → styles-Ck4jGmxd.js} +1 -1
  42. package/aftenpostenv2/es/{styles-BeYN2sla.js → styles-D4gGwV6y.js} +1 -1
  43. package/aftenpostenv2/es/{styles-pdrxlxiy.js → styles-DDv-klvL.js} +1 -1
  44. package/aftenpostenv2/es/{styles-BF7MfgfD.js → styles-DhCasMip.js} +1 -1
  45. package/aftenpostenv2/es/{styles-D-xwJg1p.js → styles-VjXeVQGt.js} +1 -1
  46. package/aftonbladet/cjs/index.js +1 -1
  47. package/aftonbladet/es/{_auto-entry_aftonbladet-C-kXRbjW.js → _auto-entry_aftonbladet-CP_u-eOl.js} +1 -1
  48. package/aftonbladet/es/{events-GgD3by0B.js → events-B0kxSwz5.js} +1 -1
  49. package/aftonbladet/es/{index-BtlhBOSU.js → index-B4aa6rhR.js} +1 -1
  50. package/aftonbladet/es/{index-DexiUim6.js → index-CtxmEZ3B.js} +1 -1
  51. package/aftonbladet/es/{index-BpxPvsY4.js → index-D3RF3hgB.js} +1 -1
  52. package/aftonbladet/es/{index-Cty7Ljyp.js → index-DAe9XbVM.js} +1 -1
  53. package/aftonbladet/es/{index-Cs_ZYDJA.js → index-DIkGejXx.js} +1 -1
  54. package/aftonbladet/es/{index-BYrekk_7.js → index-D_sivwK8.js} +1 -1
  55. package/aftonbladet/es/{index-Di8ANMps.js → index-Dan_9Xhq.js} +1 -1
  56. package/aftonbladet/es/{index-C7ZFLJHS.js → index-DaqPQSBa.js} +1 -1
  57. package/aftonbladet/es/{index-DVbaeNfQ.js → index-DzrJvqcS.js} +1 -1
  58. package/aftonbladet/es/index.js +1 -1
  59. package/aftonbladet/es/{styles-GEBZ0aq2.js → styles--dQ_UHnn.js} +1 -1
  60. package/aftonbladet/es/{styles-7uYEVCkl.js → styles-BwJ5n3CU.js} +1 -1
  61. package/aftonbladet/es/{styles-C0OMeEPt.js → styles-CH6kRduA.js} +1 -1
  62. package/aftonbladet/es/{styles-CugeMdEc.js → styles-DQ1Cw3Ja.js} +1 -1
  63. package/aftonbladet/es/{styles-B2-R9cgH.js → styles-DUalYJ7J.js} +1 -1
  64. package/aftonbladet/es/{styles-fcMg88eg.js → styles-Dzh43ks3.js} +1 -1
  65. package/aftonbladet/styles.css +1 -1
  66. package/aftonbladetv2/es/{_auto-entry_aftonbladetv2-C9bn-yAV.js → _auto-entry_aftonbladetv2-B-WVqE-D.js} +1 -1
  67. package/aftonbladetv2/es/{events-CuK2pgf5.js → events-loNqkiz9.js} +1 -1
  68. package/aftonbladetv2/es/{index-xfdgLp0k.js → index-B0vUMioE.js} +1 -1
  69. package/aftonbladetv2/es/{index-OhcLPs9Z.js → index-Ba8Bvx2x.js} +1 -1
  70. package/aftonbladetv2/es/{index-BF8XNpl2.js → index-CCJTH2y6.js} +1 -1
  71. package/aftonbladetv2/es/{index-D5YCJlK3.js → index-CIqgR2RK.js} +1 -1
  72. package/aftonbladetv2/es/{index-Ca-0eOtA.js → index-CbZLCXOA.js} +1 -1
  73. package/aftonbladetv2/es/{index-DKAqRuX6.js → index-CpEpn-Bi.js} +1 -1
  74. package/aftonbladetv2/es/{index-en5CmPfI.js → index-Cz20iZOA.js} +1 -1
  75. package/aftonbladetv2/es/{index-XGQGD5EB.js → index-FehU9hKn.js} +1 -1
  76. package/aftonbladetv2/es/{index-CjoZJ8Wt.js → index-X9T0qh_1.js} +1 -1
  77. package/aftonbladetv2/es/index.js +1 -1
  78. package/aftonbladetv2/es/{styles-Bc0nTGQe.js → styles-BKVrArMH.js} +1 -1
  79. package/aftonbladetv2/es/{styles-eD1mtDF6.js → styles-BcfjeGkM.js} +1 -1
  80. package/aftonbladetv2/es/{styles-BkZsbr3X.js → styles-BiS9iV2W.js} +1 -1
  81. package/aftonbladetv2/es/{styles-B79wSTtc.js → styles-C2mw2ICY.js} +1 -1
  82. package/aftonbladetv2/es/{styles-CRI_QZjT.js → styles-C_4Zp2iE.js} +1 -1
  83. package/aftonbladetv2/es/{styles-D6nT7Q3J.js → styles-j8Jx3OIR.js} +1 -1
  84. package/aftonbladetv2/styles.css +1 -1
  85. package/bt/cjs/index.js +1 -1
  86. package/bt/es/{_auto-entry_bt-qirLy4Kr.js → _auto-entry_bt-BsViywN9.js} +1 -1
  87. package/bt/es/{events-DnAi7FIR.js → events-BfcEI_4l.js} +1 -1
  88. package/bt/es/{index-CkARUSlr.js → index-83EifnkY.js} +1 -1
  89. package/{sa/es/index-D8xOyeEv.js → bt/es/index-BCpy8OVP.js} +1 -1
  90. package/bt/es/{index-CiuupMHV.js → index-BE9ZP-J9.js} +1 -1
  91. package/bt/es/{index-D7DCyAnX.js → index-C5YXBcnX.js} +1 -1
  92. package/{sa/es/index-CEX9uZ-6.js → bt/es/index-CWgjh2en.js} +1 -1
  93. package/bt/es/{index-Dc2hLS9e.js → index-DPzc9iXU.js} +1 -1
  94. package/{sa/es/index-C76MuNhC.js → bt/es/index-Dk33tb88.js} +1 -1
  95. package/bt/es/{index-D-UshF5p.js → index-Dxz97euI.js} +1 -1
  96. package/bt/es/{index-Df40Md3_.js → index-wl0BZAdJ.js} +1 -1
  97. package/bt/es/index.js +1 -1
  98. package/{sa/es/styles-C8nd1dqx.js → bt/es/styles-BcDZC_IQ.js} +1 -1
  99. package/bt/es/{styles-ycUaJpv3.js → styles-CNo16azP.js} +1 -1
  100. package/bt/es/{styles-qoPyOK1X.js → styles-CkbXSVDS.js} +1 -1
  101. package/{sa/es/styles-C1lg5ZpV.js → bt/es/styles-DWaAV50T.js} +1 -1
  102. package/bt/es/{styles-FDgctWzr.js → styles-DYwqtvN6.js} +1 -1
  103. package/bt/es/{styles-DcTWaMX3.js → styles-DlIBXbIb.js} +1 -1
  104. package/{sa/es/styles-AlWm3uHY.js → bt/es/styles-K72JH3dL.js} +1 -1
  105. package/bt/es/{styles-PSbRVDmz.js → styles-_e1azGZd.js} +1 -1
  106. package/bt/es/{styles-CEs6pPA-.js → styles-cpmaaON6.js} +1 -1
  107. package/btv2/es/{_auto-entry_btv2-DTkZNbOC.js → _auto-entry_btv2-C9bF8NR7.js} +1 -1
  108. package/{omni/es/events-DqUL3JTZ.js → btv2/es/events-BiMeSg5O.js} +1 -1
  109. package/btv2/es/{index-DCuY052e.js → index-BL_AW8v-.js} +1 -1
  110. package/btv2/es/{index-CVvE7ZdH.js → index-BxPtN8cr.js} +1 -1
  111. package/btv2/es/{index-ZvuTCaUK.js → index-CkU8614f.js} +1 -1
  112. package/{omni/es/index-D2xtywR0.js → btv2/es/index-DdlOjSU9.js} +1 -1
  113. package/btv2/es/{index-CLKDk3Bw.js → index-Dv7_XCNd.js} +1 -1
  114. package/{omni/es/index-Due_WU8F.js → btv2/es/index-FXx3hp61.js} +1 -1
  115. package/{omni/es/index-fkJKK9f8.js → btv2/es/index-fQ_8qFBB.js} +1 -1
  116. package/btv2/es/{index-DjtYm235.js → index-mwA29gfM.js} +1 -1
  117. package/btv2/es/{index-DIojXvHN.js → index-y_1U0KHn.js} +1 -1
  118. package/btv2/es/index.js +1 -1
  119. package/{sav2/es/styles-TS2DPrTF.js → btv2/es/styles-B5fC0eua.js} +1 -1
  120. package/btv2/es/{styles-BbwCP_zS.js → styles-BNnwHzLp.js} +1 -1
  121. package/btv2/es/{styles-C_rZoorZ.js → styles-BRL_cVii.js} +1 -1
  122. package/{sav2/es/styles-CQBoy-TB.js → btv2/es/styles-CF7Pq7qL.js} +1 -1
  123. package/{sav2/es/styles-DJVc13_b.js → btv2/es/styles-CfWUQuLG.js} +1 -1
  124. package/btv2/es/{styles-D-XUXxkm.js → styles-CzYyu1mW.js} +1 -1
  125. package/{sav2/es/styles-MdrpoXCE.js → btv2/es/styles-DO0SHWq1.js} +1 -1
  126. package/{vgv2/es/styles-i50pn6tE.js → btv2/es/styles-DkQiStj8.js} +1 -1
  127. package/e24/es/{_auto-entry_e24-DoZqSwJk.js → _auto-entry_e24-BeB3FdmO.js} +1 -1
  128. package/e24/es/{events-BTmIZQoJ.js → events-Cszew5dM.js} +1 -1
  129. package/{tv4/es/index-DiiuU9bp.js → e24/es/index-4o533MF-.js} +1 -1
  130. package/e24/es/{index-CgEJ4KZ_.js → index-B6On9gPS.js} +1 -1
  131. package/e24/es/{index-B9jOLuyN.js → index-BIROVaEw.js} +1 -1
  132. package/e24/es/{index-CRmwYE-C.js → index-CEfFch1W.js} +1 -1
  133. package/e24/es/{index-BRxK4Jk-.js → index-Cblqmtdb.js} +1 -1
  134. package/e24/es/{index-QENrf8XB.js → index-DEbVWwmC.js} +1 -1
  135. package/e24/es/{index-DNQDfM8w.js → index-DIXuECZn.js} +1 -1
  136. package/e24/es/{index-D9CHIcVR.js → index-WUOfevGU.js} +1 -1
  137. package/e24/es/{index-Doy_TR-4.js → index-pYCKy3V_.js} +1 -1
  138. package/e24/es/index.js +1 -1
  139. package/e24/es/{styles-B-f6yYRp.js → styles-BIAzKtm0.js} +1 -1
  140. package/e24/es/{styles-CF5QsSnQ.js → styles-BdC2g1c8.js} +1 -1
  141. package/e24/es/{styles-BnxKaMS-.js → styles-BnYU5WL8.js} +1 -1
  142. package/e24/es/{styles-Bk2P-q0X.js → styles-BsEAi09R.js} +1 -1
  143. package/e24/es/{styles-BP1zus9h.js → styles-CC33uTMc.js} +1 -1
  144. package/e24/es/{styles-BQ0BZbMz.js → styles-CbbSm3Jv.js} +1 -1
  145. package/{tv4/es/styles-CPUZo5cj.js → e24/es/styles-CnIRz4ER.js} +1 -1
  146. package/e24/es/{styles-BV_-kEln.js → styles-D7cr4rWa.js} +1 -1
  147. package/e24/es/{styles-C3ZfGuYq.js → styles-DKt13DA3.js} +1 -1
  148. package/e24/es/{styles-OJfu85lT.js → styles-Ig8DbKSU.js} +1 -1
  149. package/e24/es/{styles-BL-H79A6.js → styles-tVvtZczA.js} +1 -1
  150. package/fotbollskanalen/cjs/index.js +1 -1
  151. package/fotbollskanalen/es/{_auto-entry_fotbollskanalen-DLDNL8kK.js → _auto-entry_fotbollskanalen-DRZRxAHJ.js} +1 -1
  152. package/fotbollskanalen/es/{events-B5nygMV4.js → events-DE27XaJV.js} +1 -1
  153. package/fotbollskanalen/es/{index-omo9Nehg.js → index-4Z5HybeF.js} +1 -1
  154. package/fotbollskanalen/es/{index-DAKywITg.js → index-B_996BBA.js} +1 -1
  155. package/fotbollskanalen/es/{index-DSespnqM.js → index-CINcEZl3.js} +1 -1
  156. package/fotbollskanalen/es/{index-CjygSWeY.js → index-CqI0hZmf.js} +1 -1
  157. package/fotbollskanalen/es/{index-6e4pEOjp.js → index-DxIqO6IZ.js} +1 -1
  158. package/fotbollskanalen/es/{index-CxGL1PyS.js → index-JQnVKrSn.js} +1 -1
  159. package/fotbollskanalen/es/{index-DO54r0XC.js → index-a4Jo_Hho.js} +1 -1
  160. package/fotbollskanalen/es/{index-Dc3CrdYV.js → index-awjr_E-z.js} +1 -1
  161. package/fotbollskanalen/es/{index-D5HMNxW3.js → index-qVDX8uhQ.js} +1 -1
  162. package/fotbollskanalen/es/index.js +1 -1
  163. package/fotbollskanalen/es/{styles-Dvir8tdN.js → styles-BZLPzJVN.js} +1 -1
  164. package/fotbollskanalen/es/{styles-Dxa2c2Im.js → styles-DRDVXCIL.js} +1 -1
  165. package/fotbollskanalen/es/{styles-BMWI5Ve7.js → styles-yeX3aipi.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-CAThotUX.js → _auto-entry_koket-BlCSFzQg.js} +1 -1
  170. package/koket/es/{events-DEhWZl6C.js → events-Ct3QbeIL.js} +1 -1
  171. package/koket/es/{index-CIPjLeb6.js → index-B1QM_VTn.js} +1 -1
  172. package/koket/es/{index-CZY8PC5L.js → index-BGcxBvEE.js} +1 -1
  173. package/koket/es/{index-B4HgyCoh.js → index-Cw43Axlb.js} +1 -1
  174. package/koket/es/{index-CWdkll44.js → index-D98KY_5B.js} +1 -1
  175. package/{svdv2/es/index-B-iZUIEK.js → koket/es/index-DAgoo9EK.js} +1 -1
  176. package/koket/es/{index-DkUEp3-J.js → index-DL1Qkuwh.js} +1 -1
  177. package/{svdv2/es/index-DzKHGMug.js → koket/es/index-DhJdyRBn.js} +1 -1
  178. package/koket/es/{index-Dzi-FtBA.js → index-DolIvRW9.js} +1 -1
  179. package/koket/es/{index-CABUBL1X.js → index-lQjIIYgh.js} +1 -1
  180. package/koket/es/index.js +1 -1
  181. package/{svdv2/es/styles-CobQ9AH1.js → koket/es/styles-Cy-yAXjZ.js} +1 -1
  182. package/koket/es/{styles-ZsfS0xFy.js → styles-DX1OlJRX.js} +1 -1
  183. package/koket/es/{styles-jnnjRXpl.js → styles-DtIgajTV.js} +1 -1
  184. package/minmote/cjs/index.js +1 -1
  185. package/omni/es/{_auto-entry_omni-BXsEDheE.js → _auto-entry_omni-BjT3HB9t.js} +1 -1
  186. package/{tvnu/es/events-Dpsj55fo.js → omni/es/events-BRMbj_wt.js} +1 -1
  187. package/{sav2/es/index-CtNFyoc2.js → omni/es/index-B2LcZgS8.js} +1 -1
  188. package/omni/es/{index-Ct9m4aF0.js → index-CNeBL5Fg.js} +1 -1
  189. package/{btv2/es/index-CKTn8Aia.js → omni/es/index-D8XWuhGW.js} +1 -1
  190. package/{btv2/es/index-1t_9Iij2.js → omni/es/index-DHPOXwNF.js} +1 -1
  191. package/omni/es/{index-CRr3aWco.js → index-DSgRyr62.js} +1 -1
  192. package/omni/es/{index-BX6LA3vE.js → index-Dhj1D31U.js} +1 -1
  193. package/omni/es/{index-42Yw7tCH.js → index-Gspn87SW.js} +1 -1
  194. package/omni/es/{index-D7UWmud6.js → index-HE8X7FgA.js} +1 -1
  195. package/omni/es/{index-meFvQMeU.js → index-W6ShHO2r.js} +1 -1
  196. package/omni/es/index.js +1 -1
  197. package/omni/es/{styles-DjhNGHWL.js → styles-FpD9p-6W.js} +1 -1
  198. package/package.json +1 -1
  199. package/pent/cjs/index.js +1 -1
  200. package/sa/cjs/index.js +1 -1
  201. package/sa/es/{_auto-entry_sa-CYLZvKdO.js → _auto-entry_sa-BhlsDafE.js} +1 -1
  202. package/sa/es/{events-DJndqpEQ.js → events-BdI6P81o.js} +1 -1
  203. package/sa/es/{index-DErpmra1.js → index-BoA9wdkd.js} +1 -1
  204. package/{vg/es/index-ZsJswPQ6.js → sa/es/index-BttJlnbT.js} +1 -1
  205. package/sa/es/{index-DMZRP4oO.js → index-CF05-FZZ.js} +1 -1
  206. package/sa/es/{index-Blc_mHPs.js → index-Cghp2UmZ.js} +1 -1
  207. package/sa/es/{index-Dgekqelh.js → index-CxyMUD7g.js} +1 -1
  208. package/{bt/es/index-C6rqzNB3.js → sa/es/index-PsyvPhuQ.js} +1 -1
  209. package/{bt/es/index-D8Qt3g_x.js → sa/es/index-jqc0FqSY.js} +1 -1
  210. package/sa/es/{index-DHkXX8ks.js → index-peroOgH6.js} +1 -1
  211. package/{bt/es/index-DhIfPhXs.js → sa/es/index-zqa8D967.js} +1 -1
  212. package/sa/es/index.js +1 -1
  213. package/sa/es/{styles-3qmlLS8K.js → styles-3NZogtpM.js} +1 -1
  214. package/sa/es/{styles-eCo2SLXr.js → styles-BT5EZkDZ.js} +1 -1
  215. package/{bt/es/styles-BZxOGYHV.js → sa/es/styles-BX0fQ7PW.js} +1 -1
  216. package/sa/es/{styles-DM-DEfFs.js → styles-CCEOZhtU.js} +1 -1
  217. package/{vg/es/styles-BV37o7Ne.js → sa/es/styles-CGi1QdI9.js} +1 -1
  218. package/{bt/es/styles-p5MqJxOy.js → sa/es/styles-CQz5TX17.js} +1 -1
  219. package/{vg/es/styles-DkJG20fz.js → sa/es/styles-D5CVS2_o.js} +1 -1
  220. package/sa/es/{styles-dIK73IOU.js → styles-DjAixAWT.js} +1 -1
  221. package/sa/es/{styles-BLLcsjBJ.js → styles-pdvD8xpk.js} +1 -1
  222. package/sav2/es/{_auto-entry_sav2-BJQh6q9I.js → _auto-entry_sav2-DGpqSuP4.js} +1 -1
  223. package/sav2/es/{events-DT9z5cfv.js → events-wJEgSxU8.js} +1 -1
  224. package/sav2/es/{index-DDTKA9G7.js → index-2gsLJaCc.js} +1 -1
  225. package/sav2/es/{index-CANCm_1N.js → index-5pTfYrID.js} +1 -1
  226. package/sav2/es/{index-BrMZuR1i.js → index-BRuwkYUQ.js} +1 -1
  227. package/sav2/es/{index-KjzwMg7_.js → index-BUIiZse3.js} +1 -1
  228. package/{btv2/es/index-iyYqUtOR.js → sav2/es/index-BUXNWb3R.js} +1 -1
  229. package/sav2/es/{index-CA7eSXkG.js → index-BeqG3noz.js} +1 -1
  230. package/sav2/es/{index-PZY_RNrm.js → index-C_HwDocO.js} +1 -1
  231. package/{vgv2/es/index-Dkk9M9Yj.js → sav2/es/index-DTLi3Tgt.js} +1 -1
  232. package/sav2/es/{index-CfRB1v-F.js → index-I7IjEAbu.js} +1 -1
  233. package/sav2/es/index.js +1 -1
  234. package/sav2/es/{styles-CZZaYNhi.js → styles-B3APeTRu.js} +1 -1
  235. package/sav2/es/{styles-rwtWl90z.js → styles-BpoXWuCt.js} +1 -1
  236. package/{btv2/es/styles-CNtGmPKM.js → sav2/es/styles-D5my8lv8.js} +1 -1
  237. package/{vgv2/es/styles--CicEIe-.js → sav2/es/styles-D5nekbft.js} +1 -1
  238. package/{btv2/es/styles-15Bnh0uF.js → sav2/es/styles-DSKIXnRv.js} +1 -1
  239. package/{vgv2/es/styles-B5eEICHC.js → sav2/es/styles-DerBFvaD.js} +1 -1
  240. package/sav2/es/{styles-C3xVht1y.js → styles-ZWSz_pIT.js} +1 -1
  241. package/{vgv2/es/styles-DA4vDrmD.js → sav2/es/styles-zjc6G9Hy.js} +1 -1
  242. package/svd/cjs/index.js +1 -1
  243. package/svd/es/{_auto-entry_svd-NW52kOwH.js → _auto-entry_svd-B2WlMPEf.js} +1 -1
  244. package/svd/es/{events-DDcgHfQ5.js → events-C5NOKVk8.js} +1 -1
  245. package/svd/es/{index-R_pan2GJ.js → index-BIV9lGUJ.js} +1 -1
  246. package/svd/es/{index-fiGWHHh7.js → index-BtY00bo8.js} +1 -1
  247. package/svd/es/{index-C_n8PkvM.js → index-CsPXzyF_.js} +1 -1
  248. package/svd/es/{index-b7nwoU8I.js → index-CyYOrXTd.js} +1 -1
  249. package/svd/es/{index-C4dqb8-f.js → index-DaKkO38N.js} +1 -1
  250. package/svd/es/{index-CvIHLtEA.js → index-Djj-j9rd.js} +1 -1
  251. package/svd/es/{index-BTvD6s_c.js → index-Op4lzcY0.js} +1 -1
  252. package/{e24/es/index-BZjipt8c.js → svd/es/index-TxfGE0Yd.js} +1 -1
  253. package/svd/es/{index-DvC5AYDz.js → index-hJOObPuj.js} +1 -1
  254. package/svd/es/index.js +1 -1
  255. package/{tv4/es/styles-BgdeYy8k.js → svd/es/styles-AoR0bEdE.js} +1 -1
  256. package/svd/es/{styles-DviTZlai.js → styles-BVZAqpmf.js} +1 -1
  257. package/svd/es/{styles-CXFV1aUV.js → styles-BzGt7QBn.js} +1 -1
  258. package/svd/es/{styles-BTCtn1ib.js → styles-CVf4hCto.js} +1 -1
  259. package/svd/es/{styles-DX4QwiDs.js → styles-DTVwY3ZN.js} +1 -1
  260. package/svd/es/{styles-BbpDRLqa.js → styles-DqZ6kEaw.js} +1 -1
  261. package/svdv2/es/{_auto-entry_svdv2-C39fQWCf.js → _auto-entry_svdv2-DnHQXcfN.js} +1 -1
  262. package/svdv2/es/{events-hJwQ2cxJ.js → events-DnbqtLuV.js} +1 -1
  263. package/svdv2/es/{index-C6Lf6LHK.js → index-6lR7vglH.js} +1 -1
  264. package/svdv2/es/{index-BA-SWBI4.js → index-B07fol81.js} +1 -1
  265. package/svdv2/es/{index-t5qE9rr5.js → index-BMEdvSip.js} +1 -1
  266. package/svdv2/es/{index-CtB390rc.js → index-BSVPjAub.js} +1 -1
  267. package/svdv2/es/{index-CRJOn5Wo.js → index-CV_LaMGm.js} +1 -1
  268. package/{koket/es/index-0UtWHICo.js → svdv2/es/index-D0LZFhUG.js} +1 -1
  269. package/{koket/es/index-OsYPEoTi.js → svdv2/es/index-DzE54QrI.js} +1 -1
  270. package/svdv2/es/{index-BZvEI9PE.js → index-OT72E3OM.js} +1 -1
  271. package/svdv2/es/{index-CnIFqTDJ.js → index-Y49sdOJu.js} +1 -1
  272. package/svdv2/es/index.js +1 -1
  273. package/svdv2/es/{styles-DrDk4M2-.js → styles-0GYFK68Y.js} +1 -1
  274. package/svdv2/es/{styles-C2L7kZw8.js → styles-BvqPMrzZ.js} +1 -1
  275. package/svdv2/es/{styles-gjlJDehj.js → styles-CYcWszFE.js} +1 -1
  276. package/svdv2/es/{styles-7YWxYXFK.js → styles-MfXPFqM0.js} +1 -1
  277. package/svdv2/es/{styles-DBe8qHIX.js → styles-YghwtudO.js} +1 -1
  278. package/{koket/es/styles-D90JVazy.js → svdv2/es/styles-u_BHvjAb.js} +1 -1
  279. package/tek/cjs/index.js +1 -1
  280. package/tv4/cjs/index.js +1 -1
  281. package/tv4/es/{_auto-entry_tv4-D-R2fImB.js → _auto-entry_tv4-BSU7IVRc.js} +1 -1
  282. package/tv4/es/{events-BnzyoqTI.js → events-n_MZGvl9.js} +1 -1
  283. package/tv4/es/{index-B68rNiyK.js → index-4MAh-Gqf.js} +1 -1
  284. package/{svd/es/index-xNAuBQlS.js → tv4/es/index-B9M6DBZ_.js} +1 -1
  285. package/tv4/es/{index-ChSQetnL.js → index-BGQ1Ub-i.js} +1 -1
  286. package/tv4/es/{index-By-c2gu1.js → index-BbOYw-CA.js} +1 -1
  287. package/tv4/es/{index-B0oW1Cm0.js → index-BdMAn1yt.js} +1 -1
  288. package/tv4/es/{index-fdmFB6T1.js → index-Bfb2sLF1.js} +1 -1
  289. package/tv4/es/{index-Ddh6EsZF.js → index-CereTX8I.js} +1 -1
  290. package/tv4/es/{index-Belvqbxq.js → index-NPuxOZQ2.js} +1 -1
  291. package/tv4/es/{index-CMUrHqZr.js → index-xxzNC8Io.js} +1 -1
  292. package/tv4/es/index.js +1 -1
  293. package/{svd/es/styles-DksWd3Sm.js → tv4/es/styles-CGLQVYLP.js} +1 -1
  294. package/{e24/es/styles-ZAfY_UjX.js → tv4/es/styles-CX_LtXvE.js} +1 -1
  295. package/tv4/es/{styles-CeE2nDtO.js → styles-vFRGH8kI.js} +1 -1
  296. package/tvnu/cjs/index.js +1 -1
  297. package/tvnu/es/{_auto-entry_tvnu-DJDZ7ySn.js → _auto-entry_tvnu-DCSPAWGJ.js} +1 -1
  298. package/{btv2/es/events-AJTKN2_X.js → tvnu/es/events-mPjNs07Z.js} +1 -1
  299. package/tvnu/es/{index-5BYUGfhf.js → index-Bd2Z60Tg.js} +1 -1
  300. package/tvnu/es/{index-zzlfenCf.js → index-BeKek8HO.js} +1 -1
  301. package/tvnu/es/{index-C0ro9bKX.js → index-BtUYk8gw.js} +1 -1
  302. package/tvnu/es/{index-C3qVACBk.js → index-CBhaSCkA.js} +1 -1
  303. package/{sav2/es/index-CzySTabm.js → tvnu/es/index-CwIZHegE.js} +1 -1
  304. package/tvnu/es/{index-DEzWTMeI.js → index-DmpN2hM4.js} +1 -1
  305. package/tvnu/es/{index-hHujEw8t.js → index-Qc7iWvnh.js} +1 -1
  306. package/tvnu/es/{index-BpERSYIW.js → index-f6lnDnnJ.js} +1 -1
  307. package/tvnu/es/{index-EvJXWPp2.js → index-sXYK0K_w.js} +1 -1
  308. package/tvnu/es/index.js +1 -1
  309. package/{btv2/es/styles-CxztfVR_.js → tvnu/es/styles-BeDYlIyY.js} +1 -1
  310. package/tvnu/es/{styles-IMh1DDvs.js → styles-Cua1BizI.js} +1 -1
  311. package/vg/cjs/index.js +1 -1
  312. package/vg/es/{_auto-entry_vg-Dl-3cpWm.js → _auto-entry_vg-C1iKcEA8.js} +1 -1
  313. package/vg/es/{events-DymIymgJ.js → events-Doxcy8A-.js} +1 -1
  314. package/vg/es/{index-pJogXdaq.js → index-B6wOuDAX.js} +1 -1
  315. package/vg/es/{index-CRVvNc_U.js → index-BeUbX0n3.js} +1 -1
  316. package/{sa/es/index-Db7rqp1_.js → vg/es/index-CEII-Yy6.js} +1 -1
  317. package/vg/es/{index-BdT7GPhd.js → index-CF68Mqkz.js} +1 -1
  318. package/vg/es/{index-CYfJPtoK.js → index-CFcpPXM-.js} +1 -1
  319. package/vg/es/{index-BTzj8k7i.js → index-CYePOWjt.js} +1 -1
  320. package/vg/es/{index-DFM9d514.js → index-D2Qb_0O8.js} +1 -1
  321. package/vg/es/{index-DWPquHUd.js → index-DFm7_-zV.js} +1 -1
  322. package/vg/es/{index-B9CLsJJ_.js → index-DXWkzjzt.js} +1 -1
  323. package/vg/es/index.js +1 -1
  324. package/vg/es/{styles-3tTULZX4.js → styles-B8E9r_nr.js} +1 -1
  325. package/vg/es/{styles-B0vTnHe7.js → styles-Bo59utSM.js} +1 -1
  326. package/vg/es/{styles-DSzUq5dd.js → styles-BySGu4Eh.js} +1 -1
  327. package/vg/es/{styles-e3ZoYHKl.js → styles-C-jK_Rxw.js} +1 -1
  328. package/{sa/es/styles-DC1YnIf1.js → vg/es/styles-CXWoiHaF.js} +1 -1
  329. package/vg/es/{styles-5JcUSpSW.js → styles-CwkXq1H-.js} +1 -1
  330. package/{bt/es/styles-Dg_B9Elv.js → vg/es/styles-DEQObZKO.js} +1 -1
  331. package/vg/es/{styles-C6J1abk_.js → styles-DOruLogc.js} +1 -1
  332. package/vg/es/{styles-C0VWv1Tu.js → styles-DdyC0GJn.js} +1 -1
  333. package/vg/es/{styles-BZWD9gLO.js → styles-DmCCnQOD.js} +1 -1
  334. package/vg/es/{styles-gKXmjx3x.js → styles-DmFl97zP.js} +1 -1
  335. package/vg/es/{styles-DXcqsC4R.js → styles-FzQONnQt.js} +1 -1
  336. package/vg/es/{styles-B993H3kp.js → styles-GMQGjM9w.js} +1 -1
  337. package/vg/es/{styles-BuezXSyN.js → styles-K3iF74au.js} +1 -1
  338. package/vg/es/{styles-D-5U-ym2.js → styles-qpQ2oL4g.js} +1 -1
  339. package/vgv2/es/{_auto-entry_vgv2-CVqfGSZZ.js → _auto-entry_vgv2-HS2Qj-gn.js} +1 -1
  340. package/vgv2/es/{events-BkPVLjBn.js → events-C3_0-jrA.js} +1 -1
  341. package/vgv2/es/{index-DrxtmFRW.js → index--VW-9Rm2.js} +1 -1
  342. package/vgv2/es/{index-McZ2lrYm.js → index-BPjyMDAp.js} +1 -1
  343. package/vgv2/es/{index-PFARxch-.js → index-BovNaw1G.js} +1 -1
  344. package/vgv2/es/{index-mQCJChkD.js → index-CzGPNPCI.js} +1 -1
  345. package/vgv2/es/{index-DkvI3TG_.js → index-DBgFMdUx.js} +1 -1
  346. package/vgv2/es/{index-C0yI35gb.js → index-DVYh4pCZ.js} +1 -1
  347. package/vgv2/es/{index-B-s1lv7z.js → index-DwgOOQwk.js} +1 -1
  348. package/vgv2/es/{index-DxbfzHjy.js → index-r6ZWZ8F_.js} +1 -1
  349. package/{tvnu/es/index-D_3KHs2a.js → vgv2/es/index-v5X72B4o.js} +1 -1
  350. package/vgv2/es/index.js +1 -1
  351. package/vgv2/es/{styles-B7_SfrnJ.js → styles-2nvBG1uv.js} +1 -1
  352. package/vgv2/es/{styles-BKnuNko5.js → styles-BPvQ43Lp.js} +1 -1
  353. package/vgv2/es/{styles-B1h0pg9U.js → styles-BrJYHzk1.js} +1 -1
  354. package/vgv2/es/{styles-CuhdjMef.js → styles-CNCWSavW.js} +1 -1
  355. package/{btv2/es/styles-bcc0aOAp.js → vgv2/es/styles-CZTTJQwj.js} +1 -1
  356. package/vgv2/es/{styles-DLMkPc3k.js → styles-CdfFKrvM.js} +1 -1
  357. package/{sav2/es/styles-D1IQfq_4.js → vgv2/es/styles-DPJXUsSO.js} +1 -1
  358. package/vgv2/es/{styles-CN-Vzwki.js → styles-DaXmbtew.js} +1 -1
  359. package/{btv2/es/styles-O4eOZ00D.js → vgv2/es/styles-Dg9117IR.js} +1 -1
  360. package/vgv2/es/{styles-CP0rv05f.js → styles-DpU022rd.js} +1 -1
  361. package/{tvnu/es/styles-DfnbuVLb.js → vgv2/es/styles-Dsj1gzz4.js} +1 -1
  362. package/vgv2/es/{styles-D_xFz96Y.js → styles-DvdLMNi8.js} +1 -1
  363. package/vgv2/es/{styles-C325V9da.js → styles-S3Q3c0Vv.js} +1 -1
  364. package/vgv2/es/{styles-BdLmjin-.js → styles-hvabC9Tj.js} +1 -1
  365. package/vgv2/es/{styles-CgrEab6M.js → styles-uYrepjX5.js} +1 -1
@@ -1 +1 @@
1
- import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";const i={adRequested:()=>{},adAvailable:e=>{},adLoaded:e=>{},adNoBid:e=>{},adError:(e,t)=>{},adCollapse:()=>{},adRequestFailure:e=>{},adBadRequest:e=>{},adLoadedMediated:e=>{},adNoBidMediated:e=>{}},r={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"},o={publisherClassName:r.OMNI,fullWidthFormatClassName:"panorama",classesToRemoveOnRefresh:[]};function a(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 r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n}function s(e,t,n,i){return new(n||(n=Promise))(function(r,o){function a(e){try{d(i.next(e))}catch(e){o(e)}}function s(e){try{d(i.throw(e))}catch(e){o(e)}}function d(e){var t;e.done?r(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 d(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var l,c;"function"==typeof SuppressedError&&SuppressedError;var u=function(){if(c)return l;c=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)?s((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 r(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 o(e,t){try{return t in e}catch(e){return!1}}function a(e,t,i){var a={};return i.isMergeableObject(e)&&r(e).forEach(function(t){a[t]=n(e[t],i)}),r(t).forEach(function(r){(function(e,t){return o(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,r)||(o(e,r)&&i.isMergeableObject(t[r])?a[r]=function(e,t){if(!t.customMerge)return s;var n=t.customMerge(e);return"function"==typeof n?n:s}(r,i)(e[r],t[r],i):a[r]=n(t[r],i))}),a}function s(t,r,o){(o=o||{}).arrayMerge=o.arrayMerge||i,o.isMergeableObject=o.isMergeableObject||e,o.cloneUnlessOtherwiseSpecified=n;var s=Array.isArray(r);return s===Array.isArray(t)?s?o.arrayMerge(t,r,o):a(t,r,o):n(r,o)}return s.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,n){return s(e,n,t)},{})},l=s}(),p=d(u);const v=["placements","takeover","refreshConfig","editory"],g={adRequested:()=>{},adAvailable:e=>{},adLoaded:e=>{},adNoBid:e=>{},adError:(e,t)=>{},adCollapse:()=>{},adRequestFailure:e=>{},adBadRequest:e=>{},adLoadedMediated:e=>{},adNoBidMediated:e=>{}},h=(e,t)=>{const n="[Advertory LOG]: ";location.search.includes("ast_debug=true")&&(t?console.log(n,e,t):console.log(n,e))},m=(e,t)=>{console.warn("[Advertory WARN]: ",e)},y=e=>{(e=>{const{pageContext:t,pageOptions:n,placements:i,appearanceConfig:r}=null!=e?e:{};(null==t?void 0:t.publisher)||m("pageContext.publisher is required."),(null==t?void 0:t.countryCode)||m("pageContext.countryCode is required."),(null==t?void 0:t.pageType)||m("pageContext.pageType is required."),(null==t?void 0:t.deviceType)||m("pageContext.deviceType is required."),n||m("pageOptions is required."),i||m("placements is required."),(null==r?void 0:r.defaultThreshold)||m("appearanceConfig.defaultThreshold is required.")})(e),(e=>{var t,n,i,r;const o=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===(r=e.wallpaper)||void 0===r?void 0:r.enabled),property:"header",featureName:"wallpaper"}];for(const{flag:e,property:t,featureName:n}of a)e&&!(null==o?void 0:o[t])&&m(`pageSectionsSelectors.${t} is required when ${n} is enabled.`)})(e)},f=6;class w{set(e){y(e),this.config=e}modifyConfigProperties(e){if(!this.config)throw new Error("Config was accessed before it had been initialized.");const t={};for(const n of v){const i=e[n];void 0!==i&&(t[n]=i)}Object.assign(this.config,t),Object.hasOwn(e,"pageContext")&&void 0!==e.pageContext&&(this.config.pageContext=Object.assign(Object.assign({},this.config.pageContext),e.pageContext)),Object.hasOwn(e,"pageOptions")&&void 0!==e.pageOptions&&(this.config.pageOptions=Object.assign(Object.assign({},this.config.pageOptions),e.pageOptions)),Object.hasOwn(e,"tcf")&&void 0!==e.tcf&&(this.config.tcf=Object.assign(Object.assign({},this.config.tcf),e.tcf))}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=p(w.DEFAULT_SITE_HANDLERS,e)}}w.DEFAULT_SITE_HANDLERS={siteEvents:g,initNativeAd:()=>{}};const b=new w,x=b.modifyConfigProperties.bind(b);class E{initialize(){this.DATA=Object.assign({},E.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)}}E.INITIAL_DATA={wallpaper:{isAvailable:!1},horseshoe:{isAvailable:!1},initialClassNames:{},alertoryConfigKeywords:{}};const C=new E,I=864e5,A=(()=>{const e=e=>{const t=window.localStorage.getItem(e);if(!t)return null;try{return JSON.parse(t)}catch(e){return h("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=I)=>{const r={data:n,expirationTime:(new Date).getTime()+i};t(e,JSON.stringify(r))},getByTimestamp:(t,n=I)=>{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 h("Error with parsing localStorage data"),null}}}})(),S="glimrTags",T=["glwe_","glwet_"],k={geofenceTags:[],geoTags:[],weatherTags:[]},O=e=>new URLSearchParams(window.location.search).get(e),P="takeover",j="native_override_desc2",L=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 h("Advertising permission value obtained synchronously: ",e),Boolean(t)})();if(null!==n)return void t(n);let i=!1;const r=e=>{i||(h("Resolving advertising permission value obtained"),i=!0,t(e))},o=setTimeout(()=>{h("Advertising permission timed out, resolving with false"),r(!1)},3e3);window._tcf_.onTcfReady(()=>{h("On Tcf Ready called, waiting for permission"),clearTimeout(o)}),window._tcf_.getPermission("CMP:advertising",e=>{clearTimeout(o);const t=Number(e);h("Advertising permission value obtained asynchronously: ",e),r(Boolean(t))})}),N={NO:"no",SE:"se"},D="cmp:loaded";let M="undefined"!=typeof window?window._tcf_:void 0,_=!1;const R=(e,t,n)=>{const i=!!(null==e?void 0:e.enabled),r=(null==e?void 0:e.timeout)||3e3,o=O("bypass_tcf"),a=()=>{if(!(null==e?void 0:e.enabled))return!0;if(((e,t)=>e?!!t&&(h("TCF bypass param detected, returning consent: true"),!0):(h("TCF is not enabled, returning consent: true"),!0))(i,o))return!0;if(_)return null;if(!M)throw new Error("[Advertory]: getConsentSync method was called before the tcfManager was available.");const t=M.getConsentedToAllSync();return h(`TCF consented to all is: ${t}`),M.getConsentedToAllSync()};return{initConsentManager:()=>(null==e?void 0:e.enabled)?new Promise((e,t)=>{if(h("Getting TCF consent manager..."),window._tcf_)return h("TCF consent manager is already available"),M=window._tcf_,void e(M);h("TCF consent manager is not available");const n=()=>{h("CMP loaded, resolving consent manager..."),i&&clearTimeout(i),window._tcf_?(M=window._tcf_,e(M)):t(new Error("CMP loaded but window._tcf_ is not defined"))},i=setTimeout(()=>{document.removeEventListener(D,n),_=!0,t(new Error("Timeout waiting for CMP to load"))},r);h("Listening for CMP loaded event..."),document.addEventListener(D,n,{once:!0})}):Promise.resolve(null),getConsentSync:a,getConsentAsync:()=>s(void 0,void 0,void 0,function*(){if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return h(`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===N.SE,i=(null==e?void 0:e.advertisingCMPSignalEnabled)&&n===N.NO;if(t||i)return h("Schibsted Ad Choices is enabled, getting advertising permissions..."),yield L(e);if(!(null==e?void 0:e.enabled))return!0;const o=a();return null!==o?o:yield new Promise((e,t)=>{try{if(!M)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(()=>{h("TCF isConsentedToAll timed out, resolving with false"),n(!1)},r);M.onTcfReady(()=>{h("On Tcf Ready called, waiting for consent"),clearTimeout(i)}),M.isConsentedToAll(t=>{clearTimeout(i),e(t)})}catch(e){t(e)}})})}},F=(e,t,n,...i)=>s(void 0,[e,t,n,...i],void 0,function*(e,t,n,i="NOT SPECIFIED FEATURE"){if(!(null==e?void 0:e.schibstedConsentToPayEnabled))return h(`Schibsted Consent to Pay is not enabled, returning true for ${i}`),!0;if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return h(`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:r}=R(e,0,n);return(yield r())?(h(`Schibsted Ad Choices consent given according to TCF consent manager for ${i}`),!0):(h(`Schibsted Ad Choices consent not given according to TCF consent manager for ${i}`),!1)}),q=(...e)=>s(void 0,[...e],void 0,function*(e=b.get()){const{tcf:t,pageContext:{isMobileApp:n,countryCode:i}={}}=e;if(null==t?void 0:t.schibstedConsentToPayEnabled){return yield F(t,n,i,"glimr")}const{getConsentAsync:r}=R(t,0,i);return yield r()}),$=()=>s(void 0,void 0,void 0,function*(){const{glimr:e}=b.get();if(!(yield q())||!(null==e?void 0:e.enabled))return void h("No consent for glimr data fetching.");const t=yield(n=500,s(void 0,void 0,void 0,function*(){return yield Promise.race([s(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)=>{A.setWithTimestamp(S,{tags:e,tagMappings:t}),n(!0)})})}catch(e){h(`Error during getting glimr data: ${e}`)}else h("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=>T.some(t=>e.startsWith(t)),V=e=>e.startsWith("glgc_"),H=e=>e.startsWith("glci_"),z=e=>!U(e)&&!V(e),W=e=>e===N.NO?"no-sno":"se-generic",K=(e,t)=>s(void 0,void 0,void 0,function*(){const{addPublisherToGeo:n}=t||{},{glimr:i,pageContext:{countryCode:r}={}}=e,o=yield q(e);if(!(null==i?void 0:i.enabled)||!o)return h("No consent for getting glimr tags."),{};const a=W(r),s=G(e,Boolean(n));return{[`${a}-geo`]:s.geoTags,[`${a}-weather`]:s.weatherTags,[`${a}-geofence`]:s.geofenceTags}}),G=(e,t)=>{const n=J();if(!n)return k;const i=((e=[])=>e.filter(U))(n),r=((e=[])=>e.filter(V))(n),o=((e=[],t,n)=>{var i;const r=e.filter(z);if(n&&t){const{publisher:e}=null!==(i=t.pageContext)&&void 0!==i?i:{},n=B[e]||e;r.push(n)}return r})(n,e,t);return{geoTags:o,geofenceTags:r,weatherTags:i}},J=()=>{const e=A.getByTimestamp(S);return e&&"string"!=typeof e?null==e?void 0:e.tags:null},Q=()=>{var e;return((e=[])=>e.filter(H))(null!==(e=J())&&void 0!==e?e:[])},Y=()=>(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),X=()=>(window.relevantDigital||(window.relevantDigital={cmd:[]}),window.relevantDigital),Z=(e={},t)=>{const{prebid:{externalUidInAuctionEnabled:n,forwardGlimrTags:i=!1}={},pageContext:{countryCode:r}}=b.get(),o=[`${W(r)}-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?o:[]],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)}},ee="opaque",te=e=>s(void 0,void 0,void 0,function*(){if(e.type!==ee){if(!e.ok)throw new Error(e.statusText);return yield e.json()}}),ne={get:(e,...t)=>s(void 0,[e,...t],void 0,function*(e,t={}){var{timeout:n}=t,i=a(t,["timeout"]);if(n)return((e,t,n)=>s(void 0,void 0,void 0,function*(){const i=new AbortController,r=setTimeout(()=>i.abort(),n);try{const n=yield fetch(e,Object.assign(Object.assign({},t),{signal:i.signal}));return te(n)}finally{clearTimeout(r)}}))(e,i,n);const r=yield fetch(e,i);return te(r)}),post:(e,t,n)=>s(void 0,void 0,void 0,function*(){const i=JSON.stringify(n),r=yield fetch(e,{method:"POST",headers:t,body:i});if(!r.ok)throw new Error(r.statusText);return yield r.json()})},ie="advertory:ppids-cache",re={[N.SE]:`SCH${N.SE.toUpperCase()}-EnvHash`,[N.NO]:`SCH${N.NO.toUpperCase()}-EnvHash`},oe={[N.SE]:`SCH${N.SE.toUpperCase()}-UserHash`,[N.NO]:`SCH${N.NO.toUpperCase()}-UserHash`},ae={[N.SE]:`sch${N.SE}-envhash-v3`,[N.NO]:`sch${N.NO}-envhash-v3`},se={[N.SE]:`sch${N.SE}-userhash-v3`,[N.NO]:`sch${N.NO}-userhash-v3`},de={[N.SE]:`'sch${N.SE}-iosid-v3'`,[N.NO]:`'sch${N.NO}-iosid-v3'`},le={[N.SE]:`sch${N.SE}-androidid-v3`,[N.NO]:`sch${N.NO}-androidid-v3`},ce={[N.SE]:"sdrn:schibsted.com:user",[N.NO]:"sdrn:spid.no:user"};class ue{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 pe=new class{constructor(){this.ppid1=null,this.ppid2=null}processPPIDs(e){return s(this,arguments,void 0,function*(e,t=1e4){var n,i;const r=yield Promise.race([new Promise(e=>{setTimeout(()=>e({xandr:{ppId1:"",ppId2:""}}),t)}),e.instance.getAdvertisingIdentifiers()]);this.setPPIDs(null===(n=r.xandr)||void 0===n?void 0:n.ppId1,null===(i=r.xandr)||void 0===i?void 0:i.ppId2)})}getPPIDs(){var e,t;return null!==this.ppid1&&null!==this.ppid2||h("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:""}},ve=new class{constructor(){this.ppid1=null,this.ppid2=null,this.idfv=null,this.anId=null}processPPIDs(e,t){return s(this,void 0,void 0,function*(){var n,i,r,o,a,s,d,l,c,u,p;const v=A.get(ie),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===(r=g.anId)||void 0===r?void 0:r.plain),void this.setPPIDs(null!==(o=c.userId)&&void 0!==o?o:"",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||h("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 r in e){if((null===(n=e[r])||void 0===n?void 0:n.plain)!==(null===(i=t[r])||void 0===i?void 0:i.plain))return!0}return!1}cachePPIDs(e,t,n,i){const r=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}}:{});A.set(ie,r)}hashPPIDs(e,t){return s(this,void 0,void 0,function*(){try{const n=new Headers({"Content-Type":"application/json"});return yield ne.post(t,n,e)}catch(e){return h("Error with hashing PPIDs",e),null}})}getNewPPIDs(e,t){return s(this,arguments,void 0,function*({clientId:e,instance:t},n){const i=yield((e,t)=>s(void 0,void 0,void 0,function*(){const n=yield e.getUserId();return n?`${ce[t]}:${n}`:null}))(t,n),r=yield(o=t,s(void 0,void 0,void 0,function*(){const e=yield o.getEnvironmentId();return e?`sdrn:schibsted:environment:${e}`:null}));var o;const a=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"}},a?{idfv:{plain:a}}:{}),d?{anId:{plain:d}}:{})})}createHasherPayload({clientId:e,trackerType:t,trackerVersion:n,userId:i,environmentId:r}){return{clientId:e.plain,trackerType:t.plain,trackerVersion:n.plain,userId:i.plain,environmentId:r.plain}}},ge=e=>s(void 0,void 0,void 0,function*(){const{pulse:t,tcf:n,pageContext:{countryCode:i,isMobileApp:r}}=e;if(!(yield F(n,r,i,"setXandrPPIDs")))return;if(!t)return;(yield Promise.allSettled([pe.processPPIDs(t,null==n?void 0:n.timeout),ve.processPPIDs(t,i)])).forEach((e,t)=>{if("rejected"===e.status){h(`Cannot fetch PPIDs v${t+2}`,e.reason)}})}),he=e=>{const{ppid1:t,ppid2:n}=pe.getPPIDs(),{ppid1:i,ppid2:r,idfv:o,anId:a}=ve.getPPIDs();return{userIds:[{type:"extendedIDs",eids:(new ue).add(n,re[e]).add(t,oe[e]).add(r,ae[e]).add(i,se[e]).add(o,de[e]).add(a,le[e]).buildEids()}]}},me=()=>{const{ppid1:e,ppid2:t}=pe.getPPIDs();return{"aa-sch-schuserhash":e?"1":"0","aa-sch-schenvhash":t?"1":"0"}},ye=e=>{const{ppid1:t,ppid2:n}=pe.getPPIDs(),{ppid1:i,ppid2:r,idfv:o,anId:a}=ve.getPPIDs();if(!n)return{};return{userSync:{userIds:[{name:"pubProvidedId",params:{eids:(new ue).add(n,re[e]).add(t,oe[e]).add(r,ae[e]).add(i,se[e]).add(o,de[e]).add(a,le[e]).buildRyEids()}}]}}},fe=e=>{const{ppid1:t,ppid2:n}=pe.getPPIDs(),{ppid1:i,ppid2:r}=ve.getPPIDs(),o=(new ue).add(n,re[e]).add(t,oe[e]).add(r,ae[e]).add(i,se[e]);return`${o.buildNorstatPath()}?${o.buildNorstatQuery("alias").toString()}`},we=e=>{const{ppid1:t,ppid2:n}=pe.getPPIDs(),{ppid1:i,ppid2:r}=ve.getPPIDs();return(new ue).add(n,re[e]).add(t,oe[e]).add(r,ae[e]).add(i,se[e]).buildRyEids()},be=e=>s(void 0,void 0,void 0,function*(){const{ppid1:t,ppid2:n}=pe.getPPIDs(),{ppid1:i,ppid2:r}=ve.getPPIDs(),o=(new ue).add(n,re[e]).add(t,oe[e]).add(r,ae[e]).add(i,se[e]);return yield new Promise(e=>{e(o.buildVideoEids())})}),xe=()=>s(void 0,void 0,void 0,function*(){const{ppid1:e}=ve.getPPIDs();return e}),Ee=(e,...t)=>s(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 r=document.createElement("script");r.async=!0,r.src=e;const o=()=>{s(),n()},a=()=>{s(),i(new Error(`Failed to load ${e}`))},s=()=>{r.removeEventListener("load",o),r.removeEventListener("error",a),clearTimeout(d)};r.addEventListener("load",o),r.addEventListener("error",a);const d=setTimeout(()=>{s(),i(new Error(`Loading script timed out: ${e}`))},t);document.head.appendChild(r)}).catch(e=>{console.error(e)}))}),Ce={ABSOLUTE_FULLSCREEN:"ABSOLUTE_FULLSCREEN",ANY_FULLSCREEN:"ANY_FULLSCREEN",NINESIXTEEN:"NINESIXTEEN",FULLWIDTH:"FULLWIDTH",FULLSQUARE:"FULLSQUARE",TAKEOVER:"TAKEOVER",VELVET_TAKEOVER:"VELVET_TAKEOVER",WALLPAPER:"WALLPAPER",COLLAPSE:"COLLAPSE"},Ie={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},Se=e=>{const{banner:t,targetId:n}=e;return!(!t||(null==n?void 0:n.includes("takeover")))&&$e(e,Ce.ANY_FULLSCREEN)},Te=e=>{const{native:t}=e;return!!t},ke=e=>$e(e,Ce.FULLWIDTH),Oe=e=>{const{targetId:t}=e;return t.includes("takeover")||$e(e,Ce.TAKEOVER)},Pe=e=>$e(e,Ce.TAKEOVER),je=e=>$e(e,Ce.WALLPAPER),Le=e=>$e(e,Ce.COLLAPSE),Ne=e=>e.targetId.includes("sponsorstripe"),De=e=>{const t=document.querySelector(`#${e}`);return!!t&&"true"===t.dataset.isFinnBlinkPlacement},Me=e=>e.targetId.startsWith("panorama")||e.targetId.startsWith("modul"),_e=e=>e.targetId.startsWith("midboard"),Re=e=>e.targetId.includes("widescreen"),Fe=e=>e.width>=1260&&e.width<=1280,qe=e=>e.width>=1600&&e.width<=1620,$e=(e,t)=>{const n=Ie[t];if(!n)return!1;return!!n.find(t=>{var n,i;const r=(null===(n=e.banner)||void 0===n?void 0:n.width)||e.width,o=(null===(i=e.banner)||void 0===i?void 0:i.height)||e.height,a=t.width===r,s=!t.height||t.height===o;return a&&s})},Be="advertory-fullscreen-scroll",Ue="advertory-fullscreen-scroll-wrapper",Ve="fullscreen-scroll-in-screen",He="in-screen",ze=e=>e.includes("snoap.no"),We=e=>{var t,n,i,r,o;return!!(null===(o=null===(r=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===r?void 0:r.ads[1])||void 0===o?void 0:o.rtb)},Ke=(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()),r=n.substring(n.indexOf("{")+1,n.lastIndexOf("}")),o=i.map((t,n)=>`${t} = "${e[n]}"`);return new Function(...o,r).toString()},Ge=Ke([],()=>{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:r,clientHeight:o}=i,a=e/r,s=t/o;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=Ke([],()=>{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=[],Xe={},Ze=(e,t)=>{var n;const i=(null===(n=null==t?void 0:t.options)||void 0===n?void 0:n.fadingHeaderEnabled)||!1,r=new IntersectionObserver(e=>et(e,i),{}),o=nt(e);r.observe(e),i&&(Xe[o]=ot(e,null==t?void 0:t.options))},et=(e,t)=>{e.forEach(({target:e,isIntersecting:n})=>{const i=nt(e);n?(tt(i,n),it(e,i,t)):(tt(i,n),rt(e,i,t))})},tt=(e,t)=>{var n,i;const r=null===(n=document.getElementById(e))||void 0===n?void 0:n.querySelector("iframe");if(!r)return;const o=t?"showFullscreen":"hideFullscreen";null===(i=r.contentWindow)||void 0===i||i.postMessage(`advertory:${o}-${e}`,"*")},nt=e=>{var t;return null===(t=e.children[0])||void 0===t?void 0:t.id},it=(e,t,n)=>{e.classList.add(He),document.body.classList.add(Ve),window.dispatchEvent(new CustomEvent("advertory:fullscreenScrollInView")),Ye.includes(t)||Ye.push(t),n&&window.addEventListener("scroll",Xe[t],{passive:!0})},rt=(e,t,n)=>{Ye.includes(t)&&(n&&window.removeEventListener("scroll",Xe[t]),document.body.classList.remove(Ve),e.classList.remove(He),window.dispatchEvent(new CustomEvent("advertory:fullscreenScrollNotInView")))},ot=(e,t={fadingHeaderEnabled:!1,headerSelectors:[".js-masthead"],skyscraperSelectors:[".skyscraper_r"],headerZIndex:3})=>{const{headerSelectors:n=[".js-masthead"],skyscraperSelectors:i=[".skyscraper_r"],headerZIndex:r=3}=t,o=[],a=[];return n.forEach(e=>{var t;const n=null!==(t=document.querySelector(e))&&void 0!==t?t:document.querySelector("header");n&&o.push(n)}),i.forEach(e=>{const t=document.querySelector(e);t&&a.push(t)}),()=>{o.length&&at(e,o,r,0),a.length&&at(e,a,r,40)}},at=(e,t,n,i)=>{const r=e.offsetHeight,o=window.scrollY,a=e.getBoundingClientRect().top+o;t.forEach(e=>{const t=e.offsetHeight;let s;s=a>o?(a-o)/t-i:(o+t-(a+r))/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 st(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}st('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::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;text-transform:lowercase;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 dt="left",lt={no:{adText:"ANNONSE",adFrom:"ANNONSE FRA",adContent:"ANNONSØRINNHOLD",adContentFrom:"ANNONSØRINNHOLD FRA"},se:{adText:"ANNONS",adFrom:"ANNONS FRÅN",adContent:"EXTERN LÄNK",adContentFrom:"EXTERN LÄNK FRÅN"}};let ct=null;const ut=(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=`(${Ge})()`,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)),We(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},pt=()=>{ct=null;const e=window.visualViewport,t=e?e.height:window.innerHeight,n=e?e.width:window.innerWidth,i=e?e.offsetLeft:0,r=document.documentElement;r.style.setProperty("--advertory-fullscreen-scroll-vh",`${t}px`),r.style.setProperty("--advertory-fullscreen-scroll-vw",`${n}px`),r.style.setProperty("--advertory-fullscreen-scroll-left",`${i}px`)},vt=()=>{ct||(ct=window.requestAnimationFrame(pt))},gt=(e,t)=>{var n,i,r,o;const{pageContext:{countryCode:a,deviceType:s}}=b.get(),{targetId:d}=e,l=null==t?void 0:t.options;document.documentElement.style.setProperty("--advertory-ios-safe-area-top-fix",null!==(n=null==l?void 0:l.iosSafeAreaTopFix)&&void 0!==n?n:"0px"),((e,t)=>{var n;const{articlesContainerWidth:i=1302,backgroundColor:r="#fff",foregroundColor:o="#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 ${r} 0px,\n ${r} calc(50% - ${l}px),\n ${o} calc(50% - ${l}px),\n ${o} calc(50% + ${l}px),\n ${r} calc(50% + ${l}px),\n ${r} 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==l?void 0:l.overlayStyles)&&void 0!==i?i:{},s);const c=document.getElementById(d),u=null==c?void 0:c.parentElement;if(!c||!u)return;Ze(u,t),c.className=Be,Ze(u,t),c.className="advertory-fullscreen-scroll";const p=$e(e,Ce.ABSOLUTE_FULLSCREEN)?"absolute":"fixed";c.style.position=p,u.className=Ue,u.dataset.showTagSubscribeId=d,c.setAttribute("data-ad-label",lt[a].adText),(null==l?void 0:l.cogwheelPosition)===dt&&(c.dataset.moveCogwheelToTheLeft="true"),vt(),window.addEventListener("resize",vt),null===(r=window.visualViewport)||void 0===r||r.addEventListener("resize",vt),null===(o=window.visualViewport)||void 0===o||o.addEventListener("scroll",vt)},ht=e=>{if(!(null==e?void 0:e.classList.contains(Be)))return;e.classList.remove(Be),e.removeAttribute("style"),e.removeAttribute("data-ad-label");const t=e.parentElement;(null==t?void 0:t.classList.contains(Ue))&&(t.classList.remove(Ue),t.classList.remove(He))};var mt=Object.freeze({__proto__:null,createFullscreenScrollAd:gt,modifyFullscreenScrollAd:({targetId:e})=>{const t=(e=>{var t;const{requests:n}=window.apntag,i=We(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=We(e)?1:0,r=null==n?void 0:n.tags[e].adResponse.ads[i].rtb;r&&(r.banner.content=t)})(e,ut(t,e))},undoFullscreenScrollContainer:ht});const yt=e=>{var t;!document.querySelector(`#gdprAdTransparencyCogWheelButton-${e}`)&&(null===(t=window.gdpr)||void 0===t?void 0:t.setupButton)&&window.gdpr.setupButton(e)},ft=(e,t,n)=>{var i,r,o,a;const s=document.createElement("div");s.id=`${e}-button`,t.appendChild(s);(null===(r=null===(i=window.apntag.requests)||void 0===i?void 0:i.tags[e])||void 0===r?void 0:r.adResponse)||(null!==(o=(a=window.apntag).requests)&&void 0!==o||(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",bt="disable-cogwheel",xt=()=>null!==O("disable_prebid"),Et="0123456789abcdefghijklmnopqrstuvwxyz",Ct=(e=6)=>{if(e<=0)return"";let t="";for(let n=0;n<e;n++){t+=Et[Math.floor(36*Math.random())]}return t},It=(e,t)=>{let n=null;return(...i)=>{null===n&&(e(...i),n=setTimeout(()=>{n=null},t))}},At=e=>{window.apntag.anq.push(e)},St=new Promise(e=>{"undefined"!=typeof document&&document.prerendering?document.addEventListener("prerenderingchange",()=>e()):e()}),Tt=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})}),kt=(e,t,n)=>s(void 0,void 0,void 0,function*(){yield St,yield Tt;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)}),Ot=()=>s(void 0,void 0,void 0,function*(){const{prebid:e,tcf:t,pageContext:{countryCode:n,isMobileApp:i,deviceType:r},fullscreenScroll:o,appearanceConfig:a,placements:s}=b.get();if(!(null==e?void 0:e.enabled))return;const{initNativeAd:d}=b.getHandlers(),{getConsentAsync:l}=R(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 r=Y(),{prebid:{relevantCallbackTimeout:o}={}}=b.get(),a="relevantCb"===i&&o?o:n[i].timeout,s=setTimeout(()=>{!n[i].done&&!e&&(console.warn(`Doing failsafe loadTags() call after waiting too long for '${i}'`),e=!0,r.loadTags&&r.loadTags())},a);t.push(s)},cleanup:()=>{t.forEach(e=>clearTimeout(e)),t=[],e=!1,n.relevantCb.done=!1,n.auctionCb.done=!1}}})(),p=Y(),v=(()=>{const{requests:{user:e={userIds:[]},keywords:t={}}={}}=Y();return{user:e,keywords:t}})();u.failsafeOnTimeout("relevantCb");const{user:{externalUid:g=""}={},keywords:m}=v;(()=>{const e=X();return e.cmd||(e.cmd=[]),e.cmd})().push(()=>{h("prebid relevantYieldQueue callback fired - RY took over");if(u.getCancel()||!p.loadTags)return h("core loadTags() call was cancelled",{cancel:u.getCancel(),apnTagLoadTags:!p.loadTags,condition:"or"}),void u.cleanup();const t=X();u.events.relevantCb.done=!0,u.failsafeOnTimeout("auctionCb");const l=c?{gdpr:{cmpApi:"iab",timeout:8e3}}:{cmpApi:"none"};h("prebid consentManagement",l),t.addPrebidConfig(Object.assign(Object.assign({consentManagement:l,enableSendAllBids:!1},ye(n)),Z(m,g))),h("core add prebid config",Object.assign(Object.assign({consentManagement:l,enableSendAllBids:!1},ye(n)),Z(m,g))),t.loadPrebid({configId:e.configId,manageAdserver:!1,collapseEmptyDivs:!1,collapseBeforeAdFetch:!1,noGpt:!0,noSlotReload:!0,loadUnknownSlots:!0,apntagCalls:{showTag:()=>{},loadTags:e=>{h("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 v=p.id,g=document.getElementById(v);if(!g)return;const m=null===(t=null==s?void 0:s[r])||void 0===t?void 0:t.find(e=>e.targetId===v),y=null!==(d=null!==(n=null==m?void 0:m.requestThreshold)&&void 0!==n?n:null==a?void 0:a.defaultThreshold[r])&&void 0!==d?d:0,f=Object.assign(Object.assign({},u),{targetId:v,banner:!0});h("prebid directRenderFn ad info",{targetId:v,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}),kt(g,y,()=>{var e;const t=c(l),n=Se(f);if(h("prebid directRenderFn isFullscreenScrollAd",{targetId:v,isFullscreen:n,width:null==u?void 0:u.width,height:null==u?void 0:u.height}),n)h("prebid directRenderFn: creating fullscreen scroll container",{targetId:v}),gt(f,o),(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&&g.style.setProperty("--advertory-political-box-offset","30px");else{h("prebid directRenderFn: NOT fullscreen scroll - undoing container",{targetId:v}),ht(g),null===(e=null==g?void 0:g.parentElement)||void 0===e||e.classList.add("advertory-direct-render");const n=t.getAttribute("width");n&&(g.style.width=`${n}px`)}g.classList.add(wt),(null==u?void 0:u.creativeId)&&ft(v,g,Number(null==u?void 0:u.creativeId))})}}),h("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:r,bid:o}=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:r,targetId:s},b.get()),null==d||d.postMessage(JSON.stringify({message:"Prebid Response",ad:"\x3c!-- nothing --\x3e",adId:o.adId}),"*")},jt=/_\d+$/,Lt=e=>e.replace(jt,"");let Nt="";const Dt=new Map,Mt=e=>{const{pageSetup:{tag:t}={}}=b.get();return(null==t?void 0:t.includeCountingKeywordInTags)?(Nt!==window.location.pathname&&(Dt.clear(),Nt=window.location.pathname),e.map(e=>{var t;const n=Lt(e.invCode),i=null!==(t=Dt.get(n))&&void 0!==t?t:0;return e.keywords=Object.assign({},e.keywords),e.keywords[`${(()=>{const{pageContext:{countryCode:e,publisher:t}}=b.get();return`${e}-${t}`})()}-count`]=i,Dt.set(n,i+1),e})):e},_t=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},Rt="advertory-wallpaper-background",Ft="advertory-with-horseshoe",qt=()=>{const e=document.querySelector(`.${Rt}`);e&&e.remove()},$t=e=>{const t=e.getBoundingClientRect().top;requestAnimationFrame(()=>(e=>{if(!document.body)return;const t=document.querySelector(`.${Rt}`);t&&t.style.setProperty("top",`${e}px`)})(t+15))},Bt=/^wallpaper:url:(http[s]?:\/\/)?[^\s(["<,>]*\.[^\s[",><]*/,Ut=e=>Bt.test(e),Vt=e=>e.startsWith("wallpaper:color:"),Ht=e=>{const t=document.querySelector(`.${Rt}`);t&&(t.style.backgroundImage=`url(${e})`)},zt=e=>{const t=document.querySelector(`.${Rt}`);t&&(t.style.backgroundColor=e)};var Wt=Object.freeze({__proto__:null,adjustAdToHorseshoe:e=>{var t;const n=document.querySelector(`#${e}`);n&&(null===(t=n.parentElement)||void 0===t||t.classList.add(Ft),n.classList.add(Ft))},initWallpaperAd:(e,t)=>{if(!t)return;const{options:{wallpaperAnchorSelector:n}={}}=t;(()=>{qt();const e=document.createElement("div");e.classList.add(Rt),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&&($t(n),window.addEventListener("scroll",()=>$t(n)))})(n),e()},isShortWallpaperColorMessage:Vt,isShortWallpaperUrlMessage:Ut,removeWallpaperBackground:qt,setWallpaperBackgroundColor:zt,setWallpaperBackgroundImage:Ht});const Kt=e=>{if("0"===O("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")&&qt())},Gt=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"))},Jt=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`)},Qt=e=>{const t=e.parentElement;if(!e||!t)return;const{container:n,wrapper:i}=(e=>{const t=C.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},Yt=()=>{qt();document.querySelectorAll('[data-advertory-ad-rendered="true"]').forEach(e=>{Kt(e.id),Qt(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=_t(e.id)}),At(()=>window.apntag.clearRequest())},Xt="mobile",Zt="tablet",en="desktop",tn="web_desktop",nn="web_phone",rn="wde",on="wph",an="noGroupedPlacements",sn=e=>{const t=e.replace(/[0-9]/g,"");return"_"===t.slice(-1)?t.substring(0,t.length-1):t},dn=e=>{if(!(null==e?void 0:e.minViewWidth))return!0;return window.innerWidth>=e.minViewWidth},ln=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:r}}=b.get(),o=((e,t)=>{var n;const i=null!==(n=e[t])&&void 0!==n?n:[];return t===Zt&&0===i.length?e[en]:i})(n,r),a=o.filter(dn),s=e?document.querySelector(e):document;if(!s)return[];const d=a.reduce((e,t)=>{const n=sn(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)),o=(null==i?void 0:i.queryByDataDeviceAttribute)?`div[id^="${e}"][data-device=${r}], div[id^="${e}"][data-device=all]`:`div[id^="${e}"]:not([data-disabled="true"])`,d=s.querySelectorAll(o),l=Array.from(d).filter(({id:e})=>e.match(t)).map((e,t)=>{var i;const r=cn(e,t,n),o=r.finnBlink&&!r.finnBlink.renderOnlyWithAdBlock,a=o&&(null===(i=r.finnBlink)||void 0===i?void 0:i.loadOnlyFinnBlink),s=`${e.id}-${Ct(6)}`;return e.id=s,e.setAttribute("data-advertory-ad-rendered","true"),o&&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&&C.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({},r),{targetId:s})});return Mt(l)});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)},cn=(e,t,n)=>{const i=n[t],r=n[n.length-1],o=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==r?void 0:r.targetId)?r:o||r},un=e=>{const{queryConfig:{placementBatches:t}={},pageContext:{deviceType:n}}=b.get(),i=(null==t?void 0:t[n])||{},r=Object.values(i).flat(),o=(e=>{const t={};return e.forEach(e=>{const n=_t(e.targetId);e.isBackfill&&(t[n]=[e])}),t})(e),a=((e,t)=>{const n={};for(const[i,r]of Object.entries(t))n[i]=e.filter(e=>r.includes(_t(e.targetId)));return n})(e,i),s=Object.keys(o),d=((e,t)=>e.filter(e=>!t.has(_t(e.targetId))))(e,new Set([...s,...r]));return Object.assign(Object.assign(Object.assign({},a),o),{[an]:d})},pn=(e,t,n)=>{const i=document.getElementById(`div_utif_${e}`);if(!i)return;const{apntag:r}=window,[o,a]=t;if(!i.dataset.lockedsize&&a&&o)i.style.width=`${o}px`,i.style.height=`${a}px`,n&&(r.resizeAd(i.id,[o,a]),i.dataset.lockedsize="true",i.dataset.lockedwidth=o.toString(),i.dataset.lockedheight=a.toString());else if(null==i?void 0:i.dataset.lockedsize){const{lockedwidth:e,lockedheight:t}=i.dataset;e&&t&&r.resizeAd(i.id,[e,t])}},vn=["netboard","board"];class gn{constructor(e,t){this.identityFacade=e,this.tracker=t}buildUrl(e,t){var n,i;const{editionName:r}=e,o=(()=>{const e=window.location.href;return new URL(e).searchParams.get("dre_override_inv_code")||""})(),a=JSON.stringify(null!==(i=null===(n=window.advertory)||void 0===n?void 0:n.renderedDrEditionAds)&&void 0!==i?i:[]),s=new URL("https://dr-edition-teaser-server.inventory.schibsted.io/editions"),{envId:d,spid:l}=t;return s.searchParams.append("editionName",r),o&&s.searchParams.append("urlData",o),a&&s.searchParams.append("excludedItems",a),l&&s.searchParams.append("spid",l),d&&s.searchParams.append("envid",d),s.toString()}fetchData(e){return s(this,void 0,void 0,function*(){var t,n,i;const r=yield this.identityFacade.getIdentityUser(),o=null!==(i=yield null===(n=null===(t=this.tracker)||void 0===t?void 0:t.getEnvironmentId)||void 0===n?void 0:n.call(t))&&void 0!==i?i:"",a=(null==r?void 0:r.userId)?String(r.userId):"",s=this.buildUrl(e,{envId:o,spid:a});try{h("Starting fetching DrEdition ad from URL:",s);const e=yield ne.get(s);return h("Fetch operation completed successfully."),e}catch(e){h("Error during fetch operation:",e)}return null})}}class hn{getDrEditionUTMParams(e,t){var n;const{title:i="",clientName:r,creativeId:o}=null!==(n=null==e?void 0:e.pulseData)&&void 0!==n?n:{},{editionName:a}=t,s=i.replace(/<[^>]*>/g,"");return Object.assign({utm_source:"vgfront",utm_content:a,utm_campaign:r,utm_medium:s},o&&{utm_id:`df-${o}`})}getUrlSearchParams(e,t,n){if(!e)return"";const i=this.getDrEditionUTMParams(t,n),r=new URLSearchParams(decodeURIComponent(e.search)),o=new URLSearchParams(e.search);return Object.entries(i).forEach(([e,t])=>{r.has(e)||o.set(e,null!=t?t:"")}),o.toString().replace(/\+/g,"%20")}getUrlWithParams(e,t){var n;const i=null===(n=null==e?void 0:e.pulseData)||void 0===n?void 0:n.url;if(!i)return"";const r=this.getDrEditionUTMParams(e,t),o=new URL(i);return Object.entries(r).forEach(([e,t])=>{o.searchParams.has(e)||o.searchParams.set(e,null!=t?t:"")}),o.toString()}handleVideo(e,t){return s(this,void 0,void 0,function*(){const{id:n,autoplay:i,mute:r,videoLoop:o,vendor:a}=t.videoConfiguration;e.classList.add("vgtv-video-container"),Object.assign(e.dataset,{vgtvVideoId:n,vgtvVendor:a,vgtvAutoplay:i,vgtvMuted:r,vgtvLoop:!!o,vgtvNa:!0,vgtvRecommended:!1,vgtvPulseProvider:"vg",vgtvPulseProductTag:"partnerstudio"})})}getPulseObjectId(){return"sdrn:vg:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:vg:frontpage:front"}getTags(e){var t;let n;if(n=e instanceof HTMLAnchorElement?e.href:null===(t=null==e?void 0:e.querySelector("a"))||void 0===t?void 0:t.href,!n)return[];const{host:i,pathname:r}=new URL(n);if(!i.includes("www.vg.no")&&!r.includes("annonsorinnhold"))return[n];const o=r.split("/");return o.length?[...o.filter(Boolean).slice(1).map(e=>e),n]:[n]}}const mn=e=>{const t=e.parentElement;t?t.classList.remove("dr-edition-lock-height"):h("Dr. Edition container does not have a parent element, cannot remove height lock.")};class yn{constructor(e,t,n,i){this.drEditionService=e,this.rendererManager=t,this.videoManager=n,this.pulseManager=i,this.drEditionAds=[]}fetchAndRenderAd(e,t){return s(this,void 0,void 0,function*(){var n,i;const{drEditionConfig:{options:{containerSelector:r}},renderAsBackfill:o=!1}=t,a=e.querySelector(r);if(!a)return void h(`Container with selector "${r}" not found.`);const s=yield this.drEditionService.fetchData(t);return(null==s?void 0:s.itemId)||o?!(null==s?void 0:s.itemId)&&o?(h("No Dr. Edition ads available to render. Collapsing whole placement."),Kt(e.id),void mn(a)):((null==s?void 0:s.itemId)&&o&&(h("Dr. Edition ad available to render as a Xandr backfill."),Gt(e.id)),void(s?(s.css&&((e,t)=>{const n=document.createElement("link");n.rel="preload",n.href=e,n.as=t,document.head.appendChild(n)})(s.css,"style"),yield this.rendererManager.render(a,s,t),yield null===(n=this.videoManager)||void 0===n?void 0:n.handle(s,t),mn(a),this.drEditionAds.push(s),window.advertory=window.advertory||{},window.advertory.renderedDrEditionAds=window.advertory.renderedDrEditionAds||[],window.advertory.renderedDrEditionAds.push(s.itemId),this.observeAdView(e,s,t),null===(i=e.querySelector("a"))||void 0===i||i.addEventListener("pointerup",()=>null)):mn(a))):(h("No Dr. Edition ads available to render. Hiding Dr. Edition and rendering Xandr backfill."),this.hideDrEdition(a),this.showBackfill(e),void mn(a))})}observeAdView(e,t,n){this.observeCarousel(e,t,n)||((e,t,n={threshold:.5})=>{new IntersectionObserver(([e],n)=>{e.isIntersecting&&(t(),n.disconnect())},n).observe(e)})(e,()=>this.pulseManager.trackContentView(e,t,n),{threshold:.5})}showBackfill(e){var t;const n=e.querySelector(".fallback");if(!n)return;n.style.display="block";const i=null!==(t=n.dataset.fallbackTargetId)&&void 0!==t?t:"";Gt(i)}hideDrEdition(e){e.style.display="none"}observeCarousel(e,t,n){const i=e.querySelector(".dr-edition-slider");if(!i)return!1;let r=null;const o=new IntersectionObserver(e=>{e.forEach(e=>{e.isIntersecting&&e.intersectionRatio>=.9&&(r&&clearTimeout(r),r=setTimeout(()=>{e.target.onclick=()=>this.pulseManager.trackContentClick(e.target,t,n),this.pulseManager.trackContentView(e.target,t,n)},500)),[...i.children].forEach(e=>{o.observe(e)})})},{threshold:[.9]});return[...i.children].forEach(e=>{o.observe(e)}),!0}}const fn=()=>{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"},wn=e=>e===Xt,bn=853,xn=767;class En{constructor(e,t){this.newsroomStrategy=e,this.pulseManager=t}render(e,t,n){return s(this,void 0,void 0,function*(){if(!(null==t?void 0:t.itemId))return;const{getConsentAsync:i}=R(n.tcf,n.isMobileApp,n.country),r=yield i(),o=wn(n.device)?t.mobileHTML:t.desktopHTML,a=r?o:o.replace(/<img [^>]*class="tracking-pixel"[^>]*>/g,"");e.innerHTML=a,e.querySelectorAll("a").forEach(e=>{var i,r,o;e.search=null!==(o=null===(r=(i=this.newsroomStrategy).getUrlSearchParams)||void 0===r?void 0:r.call(i,e,t,n))&&void 0!==o?o:"",e.onclick=()=>this.pulseManager.trackContentClick(e,t,n)})})}}class Cn{constructor(e){this.strategy=e}handle(e,t){return s(this,void 0,void 0,function*(){const{videoConfiguration:{id:n,preview:i}={}}=e;(n||i)&&(yield this.importScript(t),yield this.createVideoElement(e,t))})}importScript(e){return s(this,void 0,void 0,function*(){const t=e.drEditionConfig.options.videoScriptUrl,n=document.querySelector(`script[src="${t}"]`);if(t&&!window.autoplayQueue&&!n)try{yield Ee(t)}catch(e){h("Error! Failed to prepare SVP player script for Dr. Edition!",e)}})}createVideoElement(e,t){return s(this,void 0,void 0,function*(){const n=document.createElement("div"),{node:i}=e.videoConfiguration,r=[...document.querySelectorAll(`#${i}`)||[]].find(e=>0===e.children.length);if(this.handlePreviewVideo(e,t))return;this.strategy.handleVideo(n,e),null==r||r.appendChild(n),window.autoplayQueue=window.autoplayQueue||[],window.autoplayQueue.push(e=>{e.parse()});const o=null==r?void 0:r.parentNode;if(!o)return;const a=o.closest("a");o.addEventListener("click",e=>{const t=e.target.closest("a");a!==t&&t||(e.stopPropagation(),e.preventDefault())})})}handlePreviewVideo(e,t){var n,i,r;const{preview:{url:o,thumbnail:a}}=null!==(n=e.videoConfiguration)&&void 0!==n?n:{};if(!o)return!1;const s=document.querySelector(".dr-edition-preview .preview-video");return!!s&&(s.setAttribute("src",o),s.setAttribute("playsinline",""),!(!s||!a)&&(null===(r=(i=t.drEditionConfig.options).addPreviewVideo)||void 0===r||r.call(i,s),!0))}}class In{constructor(e,t){this.pulse=e,this.newsroomStrategy=t}getEventInput(e,t,n,i){return{}}mapPageType(e){return{front:"Frontpage",article:"Article",section:"Article",collection:"Article",other:"Article"}[e||"front"]||"Frontpage"}getArticleId(){return location.pathname.split("/").slice(-2,-1).pop()||""}getTeaserElementText(e,t){if(!e)return"";const n=e.querySelector({title:".dr-edition-title",subtitle:".dr-edition-subtitle",image:"img.teaser-main-image"}[t]);if(!n)return"";if("image"===t)return n.src||"";const i=null==n?void 0:n.textContent;return i?i.trim():""}getEventTarget(e,t){const{itemId:n,pulseData:{url:i}={}}=t,r=this.getTeaserElementText(e,"title");return{id:n,name:this.normalizePlacementTitle(null!=r?r:""),type:"Page",url:i}}normalizePlacementTitle(e){return e.replace(/<[^>]+>/gi,"").replace(/[^a-z0-9æøå\s_-]/gi,"")}trackContentView(e,t,n){return s(this,void 0,void 0,function*(){var i,r,o,a,s,d,l,c;const u=new CustomEvent("advertory:partnerstudioAdImpression",{detail:{ad:n.editionName}});if(window.dispatchEvent(u),!this.pulse)return;const p=this.getEventInput(e,t,n,"view");(null===(i=this.pulse)||void 0===i?void 0:i.trackLegacyViewUIElement)?null===(o=null===(r=this.pulse)||void 0===r?void 0:r.trackLegacyViewUIElement)||void 0===o||o.call(r,p):(null===(a=this.pulse)||void 0===a?void 0:a.trackViewUIElement)?null===(d=null===(s=this.pulse)||void 0===s?void 0:s.trackViewUIElement)||void 0===d||d.call(s,p):null===(c=null===(l=this.pulse)||void 0===l?void 0:l.trackElementView)||void 0===c||c.call(l,p)})}trackContentClick(e,t,n){return s(this,void 0,void 0,function*(){var i,r,o,a,s,d;if(!this.pulse)return;const l=this.getEventInput(e,t,n,"click");this.pulse.trackLegacyClickUIElement?null===(r=(i=this.pulse).trackLegacyClickUIElement)||void 0===r||r.call(i,l):this.pulse.trackClickUIElement?null===(a=(o=this.pulse).trackClickUIElement)||void 0===a||a.call(o,l):null===(d=(s=this.pulse).trackElementClick)||void 0===d||d.call(s,l)})}}class An extends In{constructor(e,t,n){super(e,t),this.pulse=e,this.newsroomStrategy=t,this.pageType=n}getEventBaseData(e,t,n){var i,r,o;const{pulseData:{title:a,clientName:s="",creativeId:d,url:l=""}={}}=t,{columnName:c,primaryPosition:u}=n,{publicUrl:p,urlPath:v}=null!==(o=null===(r=null===(i=this.newsroomStrategy)||void 0===i?void 0:i.transformUrl)||void 0===r?void 0:r.call(i,l))&&void 0!==o?o:{publicUrl:l,urlPath:l?new URL(l).pathname:""};return{"@type":"UIElement",elementType:"Teaser",layout:{elementSize:"large",imageUrl:"",name:"large"},name:a,placement:{columnName:c,primaryPosition:u},tags:[s,a,p,v].filter(Boolean),"spt:custom":{is_sponsored:!0,sponsor:s,"spt:creativeId":d,pageTitle:a,publicUrl:p,urlPath:v},url:location.origin}}getEventInput(e,t,n){return{object:this.getEventBaseData(e,t,n),target:this.getEventTarget(e,t)}}}class Sn extends In{constructor(e,t,n){super(e,t),this.pulse=e,this.newsroomStrategy=t,this.pageType=n}getEventBaseData(e,t,n){var i,r,o,a,s,d;const{itemId:l,pulseData:{clientName:c,creativeId:u}={}}=t,p=n.editionName,v=this.mapPageType(this.pageType),g=null===(i=this.newsroomStrategy)||void 0===i?void 0:i.getPulsePageId(this.pageType||"front",this.getArticleId());return{"@id":null!==(a=null===(o=null===(r=this.newsroomStrategy)||void 0===r?void 0:r.getPulseObjectId)||void 0===o?void 0:o.call(r))&&void 0!==a?a:p,"@type":"UIElement",position:p,elementType:"Article",custom:{customer:c,creativeId:null!=u?u:l},page:{"@id":null!=g?g:p,"@type":v,url:location.origin},tags:null===(d=null===(s=this.newsroomStrategy)||void 0===s?void 0:s.getTags)||void 0===d?void 0:d.call(s,e)}}getEventInput(e,t,n,i){return{object:this.getEventBaseData(e,t,n),partnerstudio:this.getEventPartnerstudioData(e,t,n,i),target:this.getEventTarget(e,t),provider:this.getProviderData()}}getEventPartnerstudioData(e,t,n,i){var r,o,a,s;const{pulseData:{algorithm:d="sov",clientName:l,creativeId:c,editionId:u,itemId:p,url:v,probability:g}={}}=t,h=Math.floor(Date.now()/1e3),m=this.getTeaserElementText(e,"title"),y=this.getTeaserElementText(e,"subtitle"),f=this.getTeaserElementText(e,"image"),w=null!==(s=null!==(a=null===(o=null===(r=this.newsroomStrategy)||void 0===r?void 0:r.getUrlWithParams)||void 0===o?void 0:o.call(r,t,n))&&void 0!==a?a:v)&&void 0!==s?s:"";return{algorithm:d,clientName:l,probability:g,creativeId:c,device:n.device,editionId:u,itemId:p,link:w,placement:n.editionName,subtitle:y,time:h,title:m,type:i,imageUrl:f,frontId:86,tracking_type:"ad",xandrAdLoaded:!1}}getProviderData(){return{productTag:"partnerstudio"}}}const Tn={FRONT:"front"},kn=e=>s(void 0,void 0,void 0,function*(){var t,n;return(null===(t=null===window||void 0===window?void 0:window.SVP)||void 0===t?void 0:t.Player)?new window.SVP.Player(e):((()=>{const e="svp-player-sdk",t=document.querySelector(e),n=Array.from(document.querySelectorAll('script[src^="https://cdn.stream.schibsted.media/player"]'));if(t||n.length>0)return;const i=document.createElement("script");i.id=e,i.src="https://cdn.stream.schibsted.media/player/3.78.1/player.min.js",i.async=!0;try{i.src=i.src.replace("player.min","player.next.min")}catch(e){console.error("Failed to set player.next.min source:",e)}document.head.insertBefore(i,document.head.firstChild)})(),(null===(n=window.SVP)||void 0===n?void 0:n.isLoaded)?new window.SVP.Player(e):yield new Promise(t=>{window.addEventListener("onSvpPlayerReady",()=>t(new window.SVP.Player(e)))}))}),On={ContentMutePlugin:e=>{window.SVP.Player.Plugins.register({getName:()=>"ContentMutePlugin",initialize(){},setup(){const t=this.player.config.get("mute");this.container=e||this.player.getContainer(),this.muted=t,t&&this.listenToOnce(this.player,"ready",this.renderButtonElement,this)},getButtonElement(){const e=document.createElement("button");e.className="player-plugin-content-mute";const t=document.createElement("span");return t.className="volume-button-icon",e.appendChild(t),e},renderButtonElement(){this.buttonElement=this.getButtonElement(),this.buttonElement.addEventListener("click",this.onButtonClick.bind(this)),this.container.appendChild(this.buttonElement),this.isVideo()||(this.buttonElement.style.display="none"),this.getJWPlayer()&&this.getJWPlayer().on("mute",this.onMuteChange,this)},onButtonClick(){this.getJWPlayer()&&(this.container.classList.add("has-interacted"),this.muted=!this.muted,this.getJWPlayer().setMute(this.muted))},onMuteChange(e){this.muted=e.mute,this.muted?this.buttonElement.classList.remove("content-video-volume-on"):this.buttonElement.classList.add("content-video-volume-on")},isVideo(){return"video"===this.player.getRawAsset().assetType},getJWPlayer(){return this.player.model.player}})},IntegrationMenu:()=>{window.SVP.Player.Plugins.register({getName:()=>"IntegrationMenu",setup(){return s(this,void 0,void 0,function*(){yield import("./styles-DjhNGHWL.js")})}})}};class Pn{handleVideo(e,t){return s(this,arguments,void 0,function*(e,{videoConfiguration:{id:t,node:n,autoplay:i,mute:r,vendor:o}}){yield s(void 0,void 0,void 0,function*(){return yield new Promise(e=>{var t;Boolean(null===(t=window.SVP)||void 0===t?void 0:t.Player)?e(!0):window.addEventListener("onSvpPlayerReady",()=>e(!0))})});const a=["ContentMutePlugin"],d=this.createPlayerOverlay(e);var l,c;c=d,null==(l=a)||l.forEach(e=>{On[e](c)});const u={id:t,node:n,autoplay:i,mute:r,vendor:o,autopause:"viewable",maxBitrate:600,pulse:{provider:"e24"},recommended:{autoplay:!1,next:{countdown:10}},skin:{name:"e24-default",url:""}},p=yield kn(u);p.once("assetReady",()=>{((e,t)=>{null==t||t.forEach(t=>{const n=window.SVP.Player.Plugins.get(t);e.addPlugin(new n)})})(p,a)}),p.once("ready",()=>{const t=e;new MutationObserver(e=>{e.forEach(({type:e,attributeName:n})=>{"attributes"===e&&"class"===n&&(t.classList.contains("jw-state-playing")?d.classList.add("is-playing"):d.classList.remove("is-playing"),t.classList.contains("jw-flag-user-inactive")?d.classList.add("is-inactive"):d.classList.remove("is-inactive"))})}).observe(t,{attributes:!0,attributeFilter:["class"]})}),p.once("PulseStats:ready",()=>s(this,void 0,void 0,function*(){const e=yield p.getPlugin("PulseStats").getTracker();null==e||e.update({provider:{id:"e24",productTag:"partnerstudio"}})}))})}getPulseObjectId(){return"sdrn:e24:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(e,t){return e===Tn.FRONT?"sdrn:e24:frontpage:front":`sdrn:e24:article:${t}`}getTags(e){var t;let n;if(n=e instanceof HTMLAnchorElement?e.href:null===(t=null==e?void 0:e.querySelector("a"))||void 0===t?void 0:t.href,!n)return[];if(!n.includes("https://e24.no/annonsorinnhold/"))return[n];const{pathname:i}=new URL(n),r=i.split("/").filter(Boolean);return r.length?[...r.slice(1),n]:[n]}createPlayerOverlay(e){const t=document.createElement("div");t.classList.add("cm-custom-video-overlay"),e.parentElement&&(t.innerHTML=e.parentElement.innerHTML,e.parentElement.replaceChild(t,e));return t.addEventListener("click",e=>{e.stopPropagation(),e.preventDefault(),t.classList.add("has-interacted")}),t}}const jn="https://www.aftonbladet.se/video-player-extras/latest/";class Ln{handleVideo(e,t){return s(this,arguments,void 0,function*(e,{videoConfiguration:{id:t,node:n,autoplay:i,mute:r,vendor:o}}){const a={id:t,node:n,autoplay:i,mute:r,vendor:o,autopause:"viewable",maxBitrate:600,pulse:{provider:"aftonbladet"},recommended:{autoplay:!1,next:{countdown:10}},skin:{name:"",url:""},plugins:{[`${jn}cta-button.js`]:{name:"CtaButton",options:{type:"unmute"}},[`${jn}external-link.js`]:{name:"ExternalLink"}}};yield kn(a),this.addEditionVideoClass(e)})}addEditionVideoClass(e){var t;(null===(t=null==e?void 0:e.parentElement)||void 0===t?void 0:t.parentElement)&&e.parentElement.parentElement.classList.add("dr-edition-video-player")}transformUrl(e){const{hostname:t,pathname:n}=new URL(e);return"brand-studio.aftonbladet.se"===t?{publicUrl:`https://aftonbladet.se/brand-studio${n}`,urlPath:`/brand-studio${n}`}:{publicUrl:e,urlPath:n}}getPulseObjectId(){return""}getPulsePageId(){return""}}const Nn=e=>null!==e&&"object"==typeof e&&!Array.isArray(e);class Dn{handleVideo(e,t){return s(this,arguments,void 0,function*(e,{videoConfiguration:{id:t,node:n,autoplay:i,mute:r,vendor:o}}){const a={id:t,node:n,autoplay:i,mute:r,vendor:o,locale:"se",autopause:"viewable",maxBitrate:600,sharing:!1,recommended:!1,pulse:{provider:"svdse",decorator:(e,t)=>Object.assign(Object.assign({},Nn(e)?e:{}),{provider:Object.assign(Object.assign({},Nn(null==e?void 0:e.provider)?e.provider:{}),{productTag:"partnerstudio"})})},skin:{name:"svd-player",url:""},settings:{pulse:{host:"se-aftonbladet.videoplaza.tv",contentMetadata:{category:"SvD",tags:["standard-linears","pause",`video-${t}`]},requestSettings:{}}}},d=yield kn(a);d.once("PulseStats:ready",()=>s(this,void 0,void 0,function*(){const e=yield d.getPlugin("PulseStats").getTracker();null==e||e.update({provider:{id:"svdse",productTag:"partnerstudio"}})}))})}transformUrl(e){const{hostname:t,pathname:n}=new URL(e);return"brand-studio.svd.se"===t?{publicUrl:`https://svd.se/brand-studio${n}`,urlPath:`/brand-studio${n}`}:{publicUrl:e,urlPath:n}}getPulseObjectId(){return"sdrn:svdse:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(e,t){return e===Tn.FRONT?"sdrn:svdse:frontpage:front":`sdrn:svdse:article:${t}`}}class Mn{handleVideo(e,t){}getPulseObjectId(){return""}getPulsePageId(e,t){return""}}const _n=(e,t,n)=>{const{publisher:i,pageType:o,country:a}=e,s={[r.VG]:new hn,[r.E24]:new Pn,[r.AFTONBLADET]:new Ln,[r.SVD]:new Dn}[i]||new Mn,d=new(a===N.SE?An:Sn)(n,s,o),l=new gn(t,n),c=new En(s,d),u=new Cn(s);return new yn(l,c,u,d)},Rn=()=>s(void 0,void 0,void 0,function*(){return yield new Promise(e=>{if("undefined"!=typeof window)if(window.Identity)e(window.Identity);else{const t=()=>{e(window.Identity)};window.addEventListener("identity-initialized",t,{once:!0})}else e(void 0)})});class Fn{constructor(e){this.identity=e,this.getIdentityUser=this.getIdentityUser.bind(this),this.isUserLoggedIn=this.isUserLoggedIn.bind(this),this.onIdentityLogout=this.onIdentityLogout.bind(this)}getIdentityUser(){return s(this,void 0,void 0,function*(){var e;try{const t=yield null===(e=this.identity)||void 0===e?void 0:e.getUser();return null!=t?t:null}catch(e){return h("[Privacy Broker] User is not logged in."),null}})}isUserLoggedIn(){return s(this,void 0,void 0,function*(){var e,t;return null!==(t=yield null===(e=this.identity)||void 0===e?void 0:e.isLoggedIn())&&void 0!==t&&t})}onIdentityLogout(e){var t;null===(t=this.identity)||void 0===t||t.on("logout",e)}}const qn=(e,t,n)=>{const{wrapperSelector:i}=e.drEditionConfig.options,r=document.querySelectorAll(i),o=new IntersectionObserver((i,r)=>((e,t,n,i,r)=>{const o=_n(n,i,r);e.forEach(e=>{var i,r;if(!e.isIntersecting)return;const a=e.target,s=null!==(i=a.dataset.editionName)&&void 0!==i?i:"",d=null!==(r=a.dataset.pulseColumnname)&&void 0!==r?r:"",l=Number(a.dataset.pulsePrimaryposition)||0;o.fetchAndRenderAd(a,Object.assign(Object.assign({},n),{editionName:s,columnName:d,primaryPosition:l})),t.unobserve(a)})})(i,r,e,t,n),{rootMargin:"400% 0px"});r.forEach(e=>o.observe(e))},$n=()=>s(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)}}),Bn=()=>{const e=document.getElementById("ads-advertory-anchor");return!(e&&"none"!==getComputedStyle(e).display&&window.advertoryFluepapir)},Un=[],Vn=(e,t)=>s(void 0,void 0,void 0,function*(){var n;const{pulse:i,tcf:r,drEdition:o,pageContext:{deviceType:a,publisher:s,pageType:d,countryCode:l,isMobileApp:c}}=e;if(!(yield F(r,c,l,"handleDrEditionBackfill")))return;const u=((e,t)=>{var n,i;const{pageContext:{deviceType:r},placements:o,drEdition:a}=e,s=null===(n=null==a?void 0:a.options)||void 0===n?void 0:n.fallbackGlobalEditionName,d=o[r]||o.desktop,l=_t(t.targetId),c=d.find(e=>e.targetId===l),u=vn.some(e=>l.startsWith(e)),p=Un.includes(l),v=(null===(i=null==c?void 0:c.drEdition)||void 0===i?void 0:i.editionName)||s;return c&&u&&!p&&v?(Un.push(l),Object.assign(Object.assign({},c),{drEdition:Object.assign(Object.assign({},c.drEdition),{editionName:v})})):null})(e,t);if(!u)return;if(!(null==i?void 0:i.instance))return void h("Pulse has not been passed as a prop, aborting");const p=yield Rn(),v=new Fn(p),g=_n({publisher:s,pageType:d,country:l},v,null==i?void 0:i.instance),m=document.getElementById(t.targetId);if(!m||!o)return;m.classList.value="";const y=document.createElement("div");y.className=o.options.containerSelector.replace(/^[.#:[\]]+/,""),m.innerHTML=y.outerHTML;const f={editionName:(null===(n=null==u?void 0:u.drEdition)||void 0===n?void 0:n.editionName)||"",drEditionConfig:o,device:a,tcf:r,isMobileApp:c,country:l,renderAsBackfill:!0};yield g.fetchAndRenderAd(m,f)}),Hn=e=>s(void 0,void 0,void 0,function*(){var t;if(!e.drEdition)return;if(!(yield F(e.tcf,e.pageContext.isMobileApp,e.pageContext.countryCode,"handleDrEdition")))return;const n=yield Rn(),i=new Fn(n);qn({publisher:e.pageContext.publisher,drEditionConfig:e.drEdition,device:e.pageContext.deviceType,pageType:e.pageContext.pageType,country:e.pageContext.countryCode},i,null===(t=e.pulse)||void 0===t?void 0:t.instance)}),zn=(e,t)=>{var n,i,r;if(!Bn())return void h("Ad block not enabled, Dr. Edition backfills will not be rendered");h("Ad block is enabled, Dr. Edition backfills will be rendered");const{pageContext:{deviceType:o},finnBlink:a}=e,d=null===(i=null===(n=null==a?void 0:a.replacementConfig)||void 0===n?void 0:n.adsToReplace)||void 0===i?void 0:i[o],l=null!==(r=null==d?void 0:d.map(([e])=>e))&&void 0!==r?r:[],c=new IntersectionObserver((t,n)=>s(void 0,void 0,void 0,function*(){for(const i of t){if(!i.isIntersecting)continue;const t=i.target;n.unobserve(t),yield Vn(e,{targetId:t.id})}}),{rootMargin:"400% 0px"});t.filter(e=>!l.some(t=>e.targetId.startsWith(t))).forEach(e=>{const t=document.getElementById(e.targetId);t&&c.observe(t)})},Wn="collapseAd",Kn="hideAd",Gn="resizeAd",Jn="renderDrEditionFallback",Qn="wallpaperImageUrl",Yn="wallpaperColor",Xn="velvet",Zn=[Gn,Qn,Yn,Wn,Kn,Jn,Xn];let ei;const ti=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(Ut(e)){const t=e.replace(/^wallpaper:url:/,"");return{name:Qn,wallpaperImageUrl:t}}if(Vt(e)){const t=e.replace(/^wallpaper:color:/,"");return{name:Yn,wallpaperColor:t}}if(e.startsWith(Jn)){const t=e.split(":")[1];return{name:Jn,targetId:t}}if(e.startsWith(Wn)||e.startsWith(Kn)){const t=e.split(":")[1];return{name:Wn,targetId:t}}if(e.includes("name")&&Zn.some(t=>e.includes(t)))try{return JSON.parse(e)}catch(e){}})(t);if(!n)return;if(!n.name||!Zn.some(e=>n.name===e))return;const{name:i,targetId:r,wallpaperImageUrl:o,wallpaperColor:a,cmd:s,size:d}=n;i===Xn&&s&&(s.includes("noScroll")&&(ei=(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==ei||ei(),dispatchEvent(new CustomEvent("advertory:closeTakeover",{})))),i!==Wn&&i!==Kn||!r||Kt(r),i===Gn&&r&&s&&pn(r,s),i===Jn&&r&&(Kt(r),Vn(b.get(),{targetId:r})),"resizeMediationAd"===i&&r&&d&&pn(r,d,!0),i===Qn&&o&&Ht(o),i===Yn&&a&&zt(a)},ni=()=>{const{pageContext:{publisher:e,countryCode:t},finnBlink:n}=b.get(),i=window.apntag,r={publisher:e,countryCode:t,finnBlink:n},o=e=>{Gt(e),At(()=>i.showTag(e))};return{withXandrAd:o,withFinnBlinkAd:e=>s(void 0,void 0,void 0,function*(){if(!(null==n?void 0:n.enabled))return;const{loadFinnBlinkAd:t}=yield import("./index-42Yw7tCH.js");yield t(e,r,null)}),withFullAdsChain:e=>s(void 0,void 0,void 0,function*(){if(!(null==n?void 0:n.enabled))return void o(e);const{loadFinnBlinkAd:t}=yield import("./index-42Yw7tCH.js");yield t(e,r,o,()=>s(void 0,void 0,void 0,function*(){if(!C.getData("horseshoe").isAvailable)return;const{adjustAdToHorseshoe:t}=yield Promise.resolve().then(function(){return Wt});t(e)}))})}},ii=(e,t)=>s(void 0,void 0,void 0,function*(){e.id.includes("wallpaper")||(yield kt(e,t,()=>((e,t,n)=>{const i="true"===n.dataset.isFinnBlinkOnlyPlacement;return De(t)&&i?(h(`loading finn blink ad for blink only placement for ${t}`),void ni().withFinnBlinkAd(t)):De(t)?(h(`loading finn blink ad with full ads chain for ${t}`),void ni().withFullAdsChain(t)):void At(()=>(h("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)))}),ri=e=>({rootMargin:`${e}px 0px ${e}px 0px`}),oi=new Map,ai=["no-stavangeraftenblad","sa","no-aftenposten","aftenposten","no-bergenstidende","bt"],si=".brandstudio-premium-content-widget",di=({adWrapper:e,placementContainer:t})=>t.offsetHeight+(({adWrapper:e})=>{const{paddingTop:t,paddingBottom:n}=getComputedStyle(e);return parseFloat(t)+parseFloat(n)})({adWrapper:e}),li=({adWrapper:e,placementContainer:t})=>{const n=di({adWrapper:e,placementContainer:t});var i;null==e||e.style.setProperty("height",`${n}px`),Qt(i=t),i.innerHTML=""},ci=e=>{e&&e.style.getPropertyValue("height")&&e.style.removeProperty("height")},ui=({adWrapper:e,placementContainer:t})=>{const{pageContext:{publisher:n}}=b.get(),i=ai.includes(n)&&Boolean(t.closest(si));const r=i?t.closest(si):null,o=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&&!r)return;if(a)return ci(e),void o.disconnect();const s=t.closest('[style*="height"]'),d=r;s&&d.contains(s)?ci(s):d.hasAttribute("style")&&ci(d),o.disconnect()})})});try{o.observe(t,{childList:!0,subtree:!0})}catch(e){o.disconnect()}},pi=(e,t,n,i,r,o)=>{var a;const s=performance.now(),d=null!==(a=oi.get(t))&&void 0!==a?a:0,l=((e,t)=>!!t&&e+t<(new Date).getTime())(i,r)&&n<0;s-d>=r&&l&&(oi.set(t,s),((e,t,n)=>{const{pageContext:{countryCode:i}}=b.get(),r=null==n?void 0:n.parentElement;r&&n&&li({adWrapper:r,placementContainer:n}),At(()=>{e.setKeywords([t],{[`${W(i)}-adreload`]:"1"},{overrideKeyValue:!0}),e.refresh([t])})})(e,t,o))},vi=(e,t,n)=>{const i=new IntersectionObserver((e,i)=>((e,t,n,i)=>{e.filter(({isIntersecting:e})=>e).forEach(e=>{const{target:r,boundingClientRect:o}=e;t(window.apntag,r.id,o.y,n,i,r)})})(e,pi,t,n),ri(300));i.observe(e)},gi=(e,t=6)=>{const n=[];for(let i=0;i<e.length;i+=t){const r=e.slice(i,i+t);n.push(r)}return n},hi=()=>navigator&&navigator.userAgent.match(/chrome/i)?null:navigator&&navigator.userAgent.match(/apple/i),mi=(e,t=0)=>{const n=e.getBoundingClientRect(),i=window.innerHeight;return n.bottom>-t&&n.top<i+t},yi=e=>{const{refreshConfig:{visibilityStateRefreshEnabled:t=!1}={}}=b.get();if(!t)return;const n=()=>{"visible"===document.visibilityState&&document.removeEventListener("visibilitychange",n),Ei(e)};"visible"!==document.visibilityState&&document.addEventListener("visibilitychange",n)},fi=(e,t,n)=>{const i=document.querySelectorAll('[data-bf-cache-refresh="true"]');for(const r of i){const i=e.find(e=>{var t,n;return e.targetId===(null===(t=r.firstElementChild)||void 0===t?void 0:t.id)&&(null===(n=e.refresh)||void 0===n?void 0:n.bfCache)}),o=null==i?void 0:i.requestThreshold;mi(r,o)&&i&&(Jt(i.targetId),n.length&&r.classList.remove(...n),Ei([i],t))}},wi=e=>{const{refreshConfig:{backForwardNavigationRefreshEnabled:t=!1}={},siteSpecificConfig:{classesToRemoveOnRefresh:n=[]}={},pageContext:{isMobileApp:i}}=b.get();t&&(e.forEach(({targetId:e})=>{const t=bi(e);t&&(t.dataset.bfCacheRefresh="true")}),i?((e,t)=>{document.addEventListener("visibilitychange",()=>{"visible"===document.visibilityState&&fi(e,!0,t)})})(e,n):((e,t)=>{window.addEventListener("pageshow",n=>{const i=()=>{window.scrollY>0&&(window.removeEventListener("scroll",i),fi(e,!1,t))};n.persisted&&(hi()?window.addEventListener("scroll",i,{passive:!0}):fi(e,!1,t))})})(e,n))},bi=e=>{var t,n;return null!==(n=null===(t=document.querySelector(`#${e}`))||void 0===t?void 0:t.parentElement)&&void 0!==n?n:null},xi=e=>{const{targetId:t,allowedFormats:n}=e,i=(e=>{if(!e)return[];try{return JSON.parse(e.dataset.adSizes||"[]")}catch(e){return[]}})(bi(t)),r=(e=>1===e[0]&&1===e[1])(i),o={sizes:[i],allowedFormats:r?n:n.filter(e=>"native"!==e),allowSmallerSizes:!1};return r||(o.native=void 0),o},Ei=(e,t=!1)=>{const{queryConfig:{batchSize:n=f}={}}=b.get(),i=e.map(({targetId:e})=>e),r=gi(i,n);if(t)for(const t of e){const e=xi(t);window.apntag.modifyTag(t.targetId,e)}for(const e of r)At(()=>window.apntag.refresh(e))},Ci=e=>{const t=encodeURIComponent(e).replace(/[-.+*]/g,"\\$&"),n=new RegExp(`(?:(?:^|.*;)\\s*${t}\\s*\\=\\s*([^;]*).*$)|^.*$`);return decodeURIComponent(document.cookie.replace(n,"$1"))||null},Ii=e=>s(void 0,void 0,void 0,function*(){const{tcf:t,pageContext:{isMobileApp:n,countryCode:i}={}}=e,{getConsentAsync:r}=R(t,0,i);if(!(yield r()))return;const o=Ci("_pulse2data");return o?o.split(",")[9]:void 0}),Ai={SPLASH:"splash",WELCOME_PAGE:"welcomePage",TOPSCROLLER:"topscroller",VELVET:"velvet"},Si="takeover-displayed",Ti="takeover-visit-count",ki=14400,Oi=()=>{const e=Ci(Ti);return e?parseInt(e):0},Pi=()=>{const e=Oi(),{takeover:{options:{cookieCapTime:t=ki}={}}={}}=b.get(),n=document.location.hostname;window.document.cookie=`${Ti}=${e+1}; max-age=${t}; domain=${n}; path=/; SameSite=Lax`},ji=()=>{const{takeover:{enabled:e=!1,options:{secondVisitEnabled:t=!1}={}}={}}=b.get();return"0"!==O(P)&&("1"===O(P)||!(!e||(()=>{var e,t;const n=(null===(t=null===(e=b.get().takeover)||void 0===e?void 0:e.options)||void 0===t?void 0:t.cookieCapName)||Si;return"true"===Ci(n)})())&&(!t||Li()))},Li=()=>{const e=Oi();return 0===e?(Pi(),!1):1===e},Ni=(e,t)=>[[1,1],[1920,1080]].some(([n,i])=>n===e&&i===t),Di=()=>{const{takeover:e}=b.get();return Boolean(null==e?void 0:e.topscroller)},Mi=e=>{const{width:t,height:n}=e;return Ni(t,n)?Ai.SPLASH:$e(e,Ce.VELVET_TAKEOVER)?Ai.VELVET:Di()?Ai.TOPSCROLLER:Ai.WELCOME_PAGE},_i=()=>s(void 0,void 0,void 0,function*(){const e=document.location.hostname,{takeover:{options:{cookieCapName:t=Si,cookieCapTime:n=ki}={}}={},pageContext:{isMobileApp:i,countryCode:r},tcf:o}=b.get(),a=yield F(o,i,r,"ad-takeover-cookiecap");n&&a&&(window.document.cookie=`${t}=true; max-age=${n}; domain=${e}; path=/`)}),Ri=e=>{var t,n;const i=!!(null===(n=null===(t=b.get().takeover)||void 0===t?void 0:t.options)||void 0===n?void 0:n.setCookieCapForNotShownAd);return Oe(e)&&i},Fi=(e,t)=>{var n;if(t===Ai.TOPSCROLLER){const{topscroller:t}=e;return null!=t?t:{}}if(t===Ai.SPLASH){const{splash:t}=e;return null!=t?t:{}}return null!==(n=e.welcomePage)&&void 0!==n?n:{}},qi=(e,t)=>{t!==Ai.SPLASH?(e=>{var t,n;const i=null===(t=b.get().pageSectionsSelectors)||void 0===t?void 0:t.header,r=null===(n=b.get().takeover)||void 0===n?void 0:n.topscroller;if(!i||r)return;const o=document.querySelector(i),a=document.querySelector(".welcome-page-wrapper"),s=document.querySelector(`#${e.targetId}`),d=document.querySelector(".advertory-welcome-page-scroll");if(!(o&&a&&d&&s))return;const l=null==o?void 0:o.offsetHeight,c=Pe(e)?"60svh":`calc(100svh - ${l}px)`,u=Pe(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=b.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 r=`calc(100svh - ${n.offsetHeight}px)`;i.style.setProperty("height",r,"important")})(e)},$i=Ke([],()=>{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 Bi=Object.freeze({__proto__:null,addTakeoverCookie:_i,adjustTakeoverHeight:qi,canDisplayTakeover:ji,getProperWelcomePageConfig:Fi,getTakeoverVariant:Mi,handleTakeoverCookieOnAdNotShown:e=>s(void 0,void 0,void 0,function*(){Ri(e)&&(yield _i())}),incrementArticleVisitCount:Pi,isSplashVariant:Ni,isTopscroller:Di,scaleAd:$i,shouldAddTakeoverCookieForNotShownAd:Ri});const Ui=e=>`externalImpId:'${e}'`,Vi=(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,Hi=e=>{var t;const{pageSetup:{tag:{forwardExternalImpId:n=!1}={}}={},pulse:i}=b.get(),{targetId:r,sizes:o,keywords:a,allowedFormats:s,invCode:d,ssaNativeAdEnabled:l=!1,nativeCustomProperties:c,safeframeConfig:u,dynamicSizeWidthCheck:p=!1,globalPlacementId:v}=(e=>{var t;if(!e.takeoverCookieCapForSharedPlacement||ji())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!==Ai.TOPSCROLLER):n,r=Object.assign(Object.assign({},e.keywords),n&&{"no-sno-adformat":i}),o=e.sizes.filter(([e,t])=>4!==e||4!==t);return Object.assign(Object.assign({},e),{sizes:o,keywords:r})})(e),g=Object.assign({invCode:d,sizes:o,targetId:r,keywords:Vi(a,l),allowedFormats:s,dynamicSizeWidthCheck:p,globalPlacementId:v},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?(h("Pulse state pageViewId is:",i),i):(h("Pulse state does not contain field pageViewId or it is empty"),"")})(i);n&&m&&(h("External Impression ID assigned to defineTag:",Ui(m)),g.externalImpId=Ui(m));const y=(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},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"))&&(g.native=y),g},zi=e=>!e.includes("takeover")||ji(),Wi=e=>{const{source:t}=e;return"csm"===t},Ki={nativeAd:e=>Te(e)&&!Ne(e),buyrecipe:e=>e.targetId.startsWith("buyrecipe"),fullwidthAd:ke,fullscreenScroll:Se,topscroller:e=>Oe(e)&&Di(),splash:e=>Oe(e)&&Ni(e.width,e.height),welcomePage:Oe,wallpaper:je,skyscraper:e=>e.targetId.includes("skyscraper")&&!!e.banner,lFormat:Fe,hFormat:qe,toppanorama:e=>e.targetId.startsWith("toppanorama")&&!qe(e)&&!Fe(e),topboard:e=>e.targetId.startsWith("topboard")&&!Oe(e),widescreen:Re,insider:e=>e.targetId.startsWith("insider"),sponsorstripe:Ne,brandboard:e=>(e=>(980===e.width||1920===e.width&&e.targetId.includes("brandboard"))&&!e.targetId.includes("topboard")&&!e.targetId.includes("companion")&&!Me(e))(e)&&!(e=>e.targetId.includes("backfill"))(e)&&!_e(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:Me,midboard:_e},Gi=({adObj:e,preferredTestIdData:t})=>{var n,i;const r=null!==(n=null==t?void 0:t.targetId)&&void 0!==n?n:null==e?void 0:e.targetId;if(!r)return;const o=null===(i=document.querySelector(`#${r}`))||void 0===i?void 0:i.parentElement;if(!o)return;if(((e,t)=>{var n,i,r,o;const a=null===(o=null===(r=null===(i=null===(n=window.apntag)||void 0===n?void 0:n.requests)||void 0===i?void 0:i.tags)||void 0===r?void 0:r[e])||void 0===o?void 0:o.invCode;a&&(t.dataset.invCode=a)})(r,o),null==t?void 0:t.testId)return void(o.dataset.testid=t.testId);const a="DIV"===(null==o?void 0:o.tagName);e&&a&&((e,t)=>{var n,i;for(const[r,o]of Object.entries(Ki))if(o(e)){if("nativeAd"===r){const o="default";t.dataset.testid=`${r}-${null!==(i=null===(n=null==e?void 0:e.native)||void 0===n?void 0:n.desc2)&&void 0!==i?i:o}`;break}t.dataset.testid=r;break}})(e,o)},Ji=e=>{var t;return(null===(t=Object.entries(Ki).find(([,t])=>t(e)))||void 0===t?void 0:t[0])||""},Qi=e=>{if(!e)return e;const{pageContext:{countryCode:t}}=b.get(),n=W(t),i=e[`${n}-targetid`],r=i?_t(i[0]):"";return Object.assign(Object.assign({},e),i&&{[`${n}-targetid`]:[r]})},Yi=e=>{const{pageContext:{countryCode:t}}=b.get(),n=W(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"]})},Xi=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],r=e.find(e=>e.invCode===i),o=document.querySelector(`[id^=${null==r?void 0:r.targetId}]`);o&&o.scrollIntoView({behavior:"smooth",block:"start"})})(e),(()=>{var e;const t=new URLSearchParams(window.location.search).get("scrollToDrEditionPlacement");if(!t)return;const n=null!==(e=document.querySelector(`[id*="${t}}"]`))&&void 0!==e?e:document.querySelector(`a[aria-label*="${t}"]`);n&&n.scrollIntoView({behavior:"smooth",block:"start"})})()},Zi=(e,t)=>s(void 0,void 0,void 0,function*(){return yield new Promise(t=>{e().then(e=>{t(null!=e?e:null)}).catch(e=>{t(null)})})});st(".advertory-brandmetrics-survey{width:100%}");const er="advertory-brandmetrics-survey",tr="https://dr-edition-teaser-server.inventory.schibsted.io/xandr",nr=()=>s(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 r;i||t(""),"tcloaded"!==n.eventStatus&&"useractioncomplete"!==n.eventStatus||(t(null!==(r=n.tcString)&&void 0!==r?r:""),e("removeEventListener",2,()=>{},n.listenerId))})}))}:{};var e}),ir={pageContext:{publisher:"aftonbladet",countryCode:N.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"}},rr={nyheter:"nyheter",sport:"sportbladet",noje:"nojesbladet",family:"family",matdryck:"matdryck",wellness:"wellness",minekonomi:"minekonomi",resa:"resa",harligthemma:"harligthemma"},or=e=>(null==e?void 0:e.parent)?[...or(e.parent),e.shortPath||"unknown"]:[],ar=(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]=or(e);return rr[n]||"ovrigaavdelningar"})(e)}_{position}`,sr={aftonbladet:ir},dr={aftonbladet:(e,t)=>{if(!e)return null;return{invCode:ar(e,t),videoOverlayInvCode:"se-aftonbladet-{deviceType}-other-{position}",sections:or(e).join(":")}}},lr=e=>{switch(e){case"auto":return 1;case"silent":return 2;default:return 3}},cr=new Map([[1,"autoplay"],[2,"muted-autoplay"],[3,"click-to-play"]]),ur="se-generic",pr="aa-sch",vr="kv_",gr="pause",hr="{deviceType}",mr="{position}",yr="afp_",fr=new Set(Object.values({PREROLL:"preroll",BUMPER:"bumper",MIDROLL:"midroll"})),wr="1-1",br="16-9",xr="3-4",Er="9-16",Cr="responsive",Ir={[wr]:1,[br]:1.78,[Er]:.56,[Cr]:1},Ar={[wr]:1,[br]:1.78,[xr]:1.33,[Er]:.56},Sr=(e,t,n,i)=>{const{invCode:r="",videoOverlayInvCode:o}=null!=e?e:{},a=en===n?rn:on,s=r.replace(hr,a);return(e,n)=>{if(e===gr)return(e=>e.replace("tv-","").replace("-afp_","-afp-").replace(mr,gr).replace(/-([a-z]+)_/,"-article-"))(s);if(n&&fr.has(e)){return(i&&o?o:t.frontpageInvCodeTemplate).replace(hr,a).replace(mr,e)}return s.replace(mr,e)}},Tr=(e,t)=>{const n=Object.entries(e);return n.reduce((n,[i,r])=>{const o=Math.abs(e[n]-t);return Math.abs(r-t)<o?i:n},n[0][0])},kr=()=>{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},Or=()=>{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},Pr=()=>{const e=null!==(t=Or()[9])&&void 0!==t?t:null;var t;const n=(()=>{var e;return null!==(e=Or()[2])&&void 0!==e?e:null})();return e?Number(Boolean(e))+Number(Boolean(n)):0},jr=()=>Object.fromEntries(new URLSearchParams(window.location.search)),Lr=(e,t)=>s(void 0,void 0,void 0,function*(){const{tcf:n,pageContext:{publisher:i,countryCode:r}}=t,{width:o,height:a}={width:window.innerWidth,height:window.innerHeight},s={isMobileApp:e.isApp,countryCode:r,publisher:i,pageType:"front",deviceType:e.deviceType},d=(yield F(n,e.isApp,r,"video"))?"1":"0",l=yield nr(),c=yield be(r),u=yield Ii({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)=>Tr(Ar,Number(e.toFixed(2))))(e.instreamAspectRatio),h=(m=e.playerAspectRatio)?Tr(Ir,Number(m.toFixed(2))):Cr;var m,y;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${pr}-country_code`]:r,[`${pr}-publisher`]:i,[`${pr}-supply_type`]:(y=e.deviceType,y===en?tn:nn),[`kw_${pr}-page_type`]:"collection",[`${pr}-page_type`]:"collection",[`${ur}-appmode`]:e.isAndroidApp?"hybrid":"notinapp",[`kw_${ur}-page`]:"index",[`${ur}-page`]:"index",[`${ur}-screenheight`]:String(window.screen.height),[`${ur}-screenwidth`]:String(window.screen.width),[`${ur}-viewportheight`]:String(a),[`${ur}-viewportwidth`]:String(o),[`${ur}-loggedin`]:e.isUserLoggedIn?"yes":"no",[`${ur}-mobile-os`]:fn(),[`${ur}-audience`]:void 0,[`${ur}-externalid_src`]:Pr(),[`${ur}-tags`]:e.tags,[`${ur}-articleid`]:p,"article-id":p},yield K(Object.assign(Object.assign({},t),{pageContext:s}))),u&&{external_uid:u}),e.isUserPresentOnFrontPage&&e.isInitialVideo&&{[`${ur}-tvtags`]:"vinjett"}),e.pageAdsKeywords),Object.keys(jr()).some(e=>e.includes(vr))&&(()=>{const e=jr(),t=Object.fromEntries(Object.entries(e).filter(([e])=>e.startsWith(vr)).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})}),Nr=["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"],Dr=["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"],Mr=["external_uid","gdpr","gdpr_consent","eids","article-id"],_r=(e,t)=>{const n=[...Nr,...t.additionalFilterKeys];return Object.fromEntries(Object.entries(e).filter(([e])=>!n.includes(e)).map(([e,t])=>[e.includes("kw")||Mr.includes(e)?e:`kw_${e}`,t]))},Rr=e=>Object.fromEntries(Object.entries(e).filter(([e])=>Dr.includes(e))),Fr=(e,t)=>s(void 0,void 0,void 0,function*(){var n,i,r,o;const a=(e=>{var t;sr[e]||m(`[video] No config found for publisher "${e}"`);return null!==(t=sr[e])&&void 0!==t?t:ir})(e.publisher),s=(e=>{var t;return null!==(t=dr[e])&&void 0!==t?t:dr.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!==(r=Number(e.aspectRatio))&&void 0!==r?r:1,p=c?"preroll":"bumper";var v;return{siteConfig:a,siteVideoParams:s,isUserPresentOnFrontPage:d,adsKeywords:yield Lr({pageAdsKeywords:e.pageAdsKeywords,tags:(v=e.tags,v?v.filter(e=>e.slug).map(({slug:e})=>e).join(","):""),sections:null!==(o=null==s?void 0:s.sections)&&void 0!==o?o:"",isUserLoggedIn:e.isUserLoggedIn,isUserPresentOnFrontPage:d,isInitialVideo:c,instreamAspectRatio:u,playerAspectRatio:kr(),isApp:e.isApp,deviceType:e.deviceType,isAndroidApp:e.isAndroidApp},a),prerollPlacementFormat:p,playbackMethod:lr(e.startMode)}}),qr=(e,t)=>{const{siteConfig:n,siteVideoParams:i,isUserPresentOnFrontPage:r,adsKeywords:o,prerollPlacementFormat:a,playbackMethod:s}=e,{invCode:d}=i||{},l=Sr(i,n,t.deviceType,t.isUsedInOverlayVideoPlayer),c=((e="")=>t=>e.includes(yr)?`${yr}${t}`:t)(d),u=window.location.href;return{member:n.memberId,options:{autoplayMuted:!0,vpaidcontrols:!0},adSlots:{schedule:{preroll:{inv_code:l(a,r),"se-generic-playback-method":cr.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({},_r(o,n)),Rr(o)),{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({},o),{"se-generic-adformat":c("pause")})}}}},$r=e=>t=>s(void 0,void 0,void 0,function*(){const n=yield Fr(e,t);return qr(n,e)}),Br={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]}]},Ur={no:"NOK",se:"SEK"},Vr={no:"no",se:"sv"};class Hr{buildFetchObject(e,t,n,i){return s(this,void 0,void 0,function*(){const{pageContext:{countryCode:r},pageOptions:o}=i,{invCode:a,xandrPlacementId:s}=e,d=yield nr(),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(Br),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:Ct(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(o.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||Vr[r]||"no").split("-")[0]},regs:{ext:{gdpr:d.gdpr||0}},user:{id:yield Ii(i),ext:{consent:d.gdpr_consent||"",eids:we(r)}},at:1,cur:[Ur[r]],source:{tid:Ct(36)},ext:{prebid:{bidder:{appnexus:{member:o.member}}}}}})}fetchData(e,t,n,i){return s(this,void 0,void 0,function*(){try{h("Starting fetching Studio ad from Xandr:",tr);const r=new Headers({"Content-Type":"application/json"}),o=new URLSearchParams(window.location.search),a=new URLSearchParams(["openRTBDebugMemberOverride","openRTBNewsroomOverride","openRTBForceNativeDesc2Override"].flatMap(e=>{const t=o.get(e);return t?[[e,t]]:[]})),s=a.size>0?`${tr}?${a.toString()}`:tr,d=yield this.buildFetchObject(e,t,n,i),l=yield ne.post(s,r,d);return h("Fetch operation completed successfully.",l),l}catch(e){h("Error during fetch operation:",e)}return null})}}const zr=0,Wr=3,Kr=(e,t,n,i)=>{const r=t.parentElement;if(!r)return;const o=e?`-${e}`:"",a=i?`__${i}`:"",s=`advertory${o}-${n}${a}`,d=`advertory${o}-${n}-wrapper${a}`;t.classList.remove(...t.classList),r.classList.remove(...r.classList),t.classList.add(s),r.classList.add(d),t.dataset.adType=n},Gr={FINN_BLINK:"finn-blink",NATIVE_AD:"native-ad"},Jr=(e,t)=>{Qr(e,t),Xr(e,t)},Qr=(e,t)=>{var n,i;const r=document.querySelector(`#${e.targetId}`);if(!r||!(null===(n=e.native)||void 0===n?void 0:n.clickTrackers))return;const o=null!==(i=null==t?void 0:t.clickLinkSelector)&&void 0!==i?i:"a.ad-link";(null==r?void 0:r.querySelectorAll(o)).forEach(t=>{"true"!==t.dataset.tracked&&(t.addEventListener("click",()=>{var t,n;for(const i of null!==(n=null===(t=e.native)||void 0===t?void 0:t.clickTrackers)&&void 0!==n?n:[])eo(i)}),t.dataset.tracked="true")})},Yr=e=>{var t;const{native:{impressionTrackers:n}={}}=e,i=null==n?void 0:n.some(e=>e.includes("googleads")),r="function"==typeof(null===(t=window.apntag)||void 0===t?void 0:t.fireImpressionTrackers)&&!!e.tagId;i||!r?null==n||n.forEach(Zr):window.apntag.fireImpressionTrackers(e);const o=new CustomEvent("advertory:nativeImpression",{detail:{ad:e}});window.dispatchEvent(o)},Xr=(e,t)=>{var n;let i=!1;const r=document.querySelector(`#${e.targetId}`);if(!r||!e.native)return;const{deviceType:o,appearanceConfig:a,nativeTrackingConfig:{fireImpressionsBasedOnAppearanceThreshold:s=!1}={}}=t,d=s?{rootMargin:`${l=null!==(n=null==a?void 0:a.defaultThreshold[null!=o?o:en])&&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,Yr(e),c.disconnect();break}},d);c.observe(r)},Zr=e=>{const t=e.includes("googleads");"function"!=typeof window.navigator.sendBeacon||t?eo(e):window.navigator.sendBeacon(e)},eo=e=>{fetch(e,{method:"GET",mode:"no-cors"}).catch(t=>console.warn(`Tracker ${e} failed. Error: ${t||"Unknown"}`))},to=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:[]}),no=(e,t)=>s(void 0,void 0,void 0,function*(){var n,i;const{pageContext:{deviceType:r},appearanceConfig:o}=t,a=null==o?void 0:o.defaultThreshold[r],s=null!==(n=e.requestThreshold)&&void 0!==n?n:a,d=document.getElementById(e.targetId);if(!d)return void h(`Server-side ad container not found: ${e.targetId}`);yield new Promise(e=>{new IntersectionObserver((t,n)=>{t.some(e=>e.isIntersecting)&&(n.disconnect(),e())},ri(s)).observe(d)});const{prepareTag:l}=b.getHandlers(),c=C.getData("alertoryConfigKeywords"),u=null!==(i=l(Hi(e)).keywords)&&void 0!==i?i:{},p=new Hr,v=yield p.fetchData(e,c,u,t);v&&(((e,t,n)=>{const i=n===Xt?t.mobileHTML:t.desktopHTML;if(i){if(t.adType===zr){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,v,r),v.adType===Wr&&(Kr(t.pageContext.publisher,d,Gr.NATIVE_AD,t.pageContext.pageType),Jr({targetId:e.targetId,native:{clickTrackers:v.clickTrackers,impressionTrackers:v.impTrackers}},{deviceType:r,appearanceConfig:o,nativeTrackingConfig:t.nativeTrackingConfig,clickLinkSelector:"a"})),((e,t,n,i)=>{var r,o,a;let s;(null===(r=window.apntag.requests)||void 0===r?void 0:r.tags[e])||(null!==(o=(a=window.apntag).requests)&&void 0!==o||(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)),ft(e,n,Number(null==i?void 0:i.adid)),null==s||s.remove()})(e.targetId,e.invCode,d,v.bid))}),io=(e,t)=>{e.forEach(e=>no(e,t).catch(e=>{h("Failed to handle server-side ad:",e)}))},ro={arrayMerge:(e,t)=>t,isMergeableObject:e=>"object"==typeof e&&null!==e&&e.constructor===Object},oo=e=>s(void 0,void 0,void 0,function*(){if(!(e=>{const{editory:{editableConfiguration:{enabled:t=!1,pageTypeToFetch:n}={}}={},siteSpecificConfig:i}=e;return Boolean(t&&n&&(null==i?void 0:i.publisherClassName))})(e))return e;try{const t=yield(e=>s(void 0,void 0,void 0,function*(){const t=(e=>{const{siteSpecificConfig:t,editory:{editoryUrl:n,editableConfiguration:{pageTypeToFetch:i}={}}={}}=e;return(null==t?void 0:t.publisherClassName)&&i?`${n||"https://alertory-cdn.inventory.schibsted.io"}/editable-configurations/${t.publisherClassName}/${i.toLowerCase()}.json`:null})(e);if(!t)return null;try{return yield ne.get(t,{timeout:5e3})}catch(e){throw h("Failed to fetch S3 config",{error:e,url:t}),e}}))(e);return t?((e,t)=>p(t,e,ro))(e,t):e}catch(t){return h("Error fetching S3 config, using site config",{error:t}),e}}),ao="_adchoices_non_rtb",so=e=>{const{tcf:{nonRtb:{invCodeSuffix:t=ao}={}}={}}=b.get();return`${Lt(e)}${t}`},lo=(e,t)=>t?e:((e=>{e.filter(e=>!e.supportsNonRTB).forEach(e=>Kt(e.targetId))})(e),(e=>e.filter(e=>e.supportsNonRTB).map(e=>Object.assign(Object.assign({},e),{invCode:so(e.invCode)})))(e)),co=e=>`${Math.max(0,Math.round(e))}px`,uo=e=>{const{marginTop:t,marginBottom:n}=getComputedStyle(e);return e.getBoundingClientRect().height+parseFloat(t||"0")+parseFloat(n||"0")},po=(e,t)=>{const n=document.body;if(n)for(const t of Object.keys(e)){const i=e[t];n.style.setProperty(t,i)}},vo=()=>{const{pageSectionsSelectors:e}=b.get();(null==e?void 0:e.header)&&(e=>{const t=document.querySelector(e);if(!t)return;const n=uo(t);po({"--advertory-header-height":co(n)})})(e.header)};let go,ho=[];const mo=["takeover","wallpaper"],yo=e=>{const t=(e=>{var t;const n=C.getData("alertoryConfigKeywords"),{queryConfig:i,placements:r,tcf:o,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:y}=e,w=null!==(t=null==i?void 0:i.batchSize)&&void 0!==t?t:f;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:r,tcf:o,queryConfig:Object.assign(Object.assign({},i),{batchSize:w})},a&&{glimr:a}),s&&{appearanceConfig:s}),h&&{takeover:h}),m&&{fullscreenScroll:m}),y&&{fullWidth:y})}})(e);window.advertory={initialized:!0,version:"3.8.0",siteConfig:e,alertoryConfig:t}},fo=()=>s(void 0,void 0,void 0,function*(){const{pageOptions:e}=b.get(),{preparePageOptions:t}=b.getHandlers(),n=(()=>{var e,t;const{pageSetup:{pageOptions:n}={}}=b.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 s(void 0,void 0,void 0,function*(){const{tcf:e,pageContext:{isMobileApp:t,countryCode:n}}=b.get();return(yield F(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=C.getData("alertoryConfigKeywords");if(Object.keys(t).length)return;const n=Yi(e);C.setData("alertoryConfigKeywords",n)})(r.keywords),At(()=>go.setPageOpts(r))}),wo=e=>s(void 0,void 0,void 0,function*(){const{prebid:t,tcf:n,pageContext:{isMobileApp:i,countryCode:r}}=b.get(),o=yield F(n,i,r,"loadPlacements"),a=lo(e,o);bo(a);(null==t?void 0:t.enabled)&&o&&!xt()?(h("core loadPlacements prebid enabled"),yield Ot()):(h("core load tags invoked without prebid enabled"),xo(a))}),bo=e=>{const{prepareTag:t}=b.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)),r=t.findIndex(e=>n.targetId.includes(e));return-1!==i&&-1===r?-1:-1===i&&-1!==r?1:i-r})})(e).forEach(e=>{h("core defineTags",{placement:e});const i=Hi(e);if(zi(e.targetId)){const r=t(i),o=(e=>{const{allowedFormats:t,invCode:n,keywords:i,sizes:r}=e;return{adTypes:t,invCode:n,keywords:Qi(i),sizes:r}})(r);n.push(o),At(()=>(h("core defineTag - add to the queue",{placement:e,preparedTag:r}),go.defineTag(r)))}}),(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)},xo=e=>{const t=e.filter(({targetId:e})=>zi(e)).map(({targetId:e})=>e);t.length&&At(()=>(h("core loadTags",{placementsIdsToLoad:t}),go.loadTags([...t])))},Eo=(e,t)=>s(void 0,void 0,void 0,function*(){const{appearanceConfig:n,pageContext:{deviceType:i}}=b.get(),{requestThreshold:r,refresh:o}=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&&(h("core showAd - subscribe for show tag with thresholds",{placement:e,adObj:t,requestThreshold:r,deviceDefaultThreshold:s}),yield ii(a,null!=r?r:s)),a&&(null==o?void 0:o.scroll)&&(h("core showAd - setup refreshing",{placement:e,adObj:t}),a.dataset.refresh=o.scroll.toString())}),Co=e=>e.some(({targetId:e})=>mo.some(t=>e.includes(t))),Io=e=>s(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),r=(e=>{const{queryConfig:{placementBatches:t,batchSize:n=f}={},pageContext:{deviceType:i}}=b.get(),r=un(e),o=Object.keys((null==t?void 0:t[i])||{}).map(e=>r[e]||[]).filter(e=>e.length>0),a=new Set(o.flat().map(({targetId:e})=>e)),s=e.filter(({targetId:e})=>!a.has(e));return[...o,...gi(s,n)]})(i);for(const e of r)Co(e)?(h("core loadAds without lazy loading",{placementsToLoad:e}),yield wo(e)):e.length&&(h("core loadAds with lazy loading",{placementsToLoad:e}),yield Ao(e));const{finnBlink:o}=b.get();if((null==o?void 0:o.enabled)&&n.length>0){const{handleFinnBlinkOnlyPlacements:e}=yield import("./index-42Yw7tCH.js");yield e(n)}}),Ao=e=>s(void 0,void 0,void 0,function*(){const{queryConfig:{lazyLoadingV3:{enabled:t=!1,rootMargin:n="200% 0px"}={}}={}}=b.get(),i=[];if(!t)return h("lazy load is not enabled",{placements:e}),void(yield wo(e));const r=new IntersectionObserver((t,n)=>{t.filter(({isIntersecting:e,target:{id:t}})=>e&&!t.includes("wallpaper")).forEach(t=>{h("lazy load is enabled - handler start",{loadedTargetIds:i,placements:e});const r=e.every(e=>i.includes(e.targetId)),o=e.map(e=>e.targetId);!r&&i.push(...o),!r&&wo(e),h("lazy load is enabled - handler stop",{loadedTargetIds:i,placements:e,arePlacementsLoaded:r,targetIds:o}),n.disconnect()})},{rootMargin:n});e.forEach(e=>{const t=document.getElementById(e.targetId);t&&(h("lazy loading - observe element",{targetId:e.targetId,element:t}),r.observe(t))})}),So=()=>s(void 0,void 0,void 0,function*(){const{siteEvents:e,initNativeAd:t}=b.getHandlers(),{wallpaper:n,fullscreenScroll:i}=b.get(),r=[];At(()=>{go.onEvent("adRequested",()=>{e.adRequested()}),go.onEvent("adAvailable",r=>s(void 0,void 0,void 0,function*(){var o,a,s,d,l,c;h("core adAvailable start",{placementsAvailable:ho,adObj:r,isFullscreenScrollAd:Se(r),isFinnBlink:De(r.targetId),isNativeAd:Te(r),isMediation:Wi(r),isTakeoverAd:Oe(r),isCollapseAd:Le(r),isWallpaperAd:je(r)});const u=null===(s=null===(a=null===(o=null===window||void 0===window?void 0:window.apntag)||void 0===o?void 0:o.requests)||void 0===a?void 0:a.tags[r.targetId])||void 0===s?void 0:s.adResponse.ads;if(Wi(r)&&u&&(null===(d=u[1])||void 0===d?void 0:d.rtb)&&(r.banner=null===(c=null===(l=u[1])||void 0===l?void 0:l.rtb)||void 0===c?void 0:c.banner),Se(r)){const{modifyFullscreenScrollAd:e}=yield Promise.resolve().then(function(){return mt});e(r)}const{widescreenSwitching:p}=b.get();if(Re(r)&&(null==p?void 0:p.enabled)){const{initWidescreenSwitching:e}=yield import("./index-Ct9m4aF0.js");e()}if(Se(r)&&!De(r.targetId)){h("core adAvailable: creating fullscreen scroll container",{targetId:r.targetId,width:r.width,height:r.height,bannerWidth:r.banner&&"object"==typeof r.banner?r.banner.width:r.banner,bannerHeight:r.banner&&"object"==typeof r.banner?r.banner.height:void 0});const{createFullscreenScrollAd:e}=yield Promise.resolve().then(function(){return mt});e(r,i)}if(!Te(r)||Wi(r)||De(r.targetId)||null==t||t(r,b.get()),Oe(r)&&!Le(r)){const{modifyTakeoverAdContent:e,createTakeoverAd:t}=yield import("./index-D2xtywR0.js");e(r.targetId),yield t(r)}if(je(r)&&(null==n?void 0:n.enabled)){const{initWallpaperAd:e}=yield Promise.resolve().then(function(){return Wt});e(()=>At(()=>window.apntag.showTag(r.targetId)),n),C.setData("wallpaper",{isAvailable:!0})}(e=>e.targetId.includes("skyscraperleft")&&!!e.banner)(r)&&C.setData("horseshoe",{isAvailable:!0}),e.adAvailable(r);const v=ho.find(({targetId:e})=>e===r.targetId);v&&(yield Eo(v,r),ho=ho.filter(e=>e.targetId!==v.targetId)),h("core adAvailable stop",{placementsAvailable:ho,adObj:r,isFullscreenScrollAd:Se(r),isFinnBlink:De(r.targetId),isNativeAd:Te(r),isMediation:Wi(r),isTakeoverAd:Oe(r),isCollapseAd:Le(r),isWallpaperAd:je(r)})})),go.onEvent("adLoaded",n=>s(void 0,void 0,void 0,function*(){const{refreshConfig:i,appearanceConfig:o,wallpaper:a,adScaleConfig:s}=b.get(),d=document.getElementById(n.targetId);if(De(n.targetId)){const{displaySpecialFormatsForFinnFallback:e}=yield import("./events-DqUL3JTZ.js");e(n)}if(r.includes(n.targetId)&&Te(n)&&(null==t||t(n,b.get()),Gi({adObj:n})),!r.includes(n.targetId)&&Wi(n)&&r.push(n.targetId),Le(n)&&Kt(n.targetId),Oe(n)){const{modifyTakeoverIframe:e}=yield import("./index-D2xtywR0.js");e(go,n.targetId)}if((e=>$e(e,Ce.NINESIXTEEN))(n)){const{applyNinesixteenFormat:e}=yield import("./index-CRr3aWco.js");e(n)}if((e=>$e(e,Ce.FULLSQUARE))(n)){const{applyFullsquareFormat:e}=yield import("./index-CRr3aWco.js");e(n)}if(ke(n)){const{applyFullwidthFormat:e}=yield import("./index-CRr3aWco.js");e(n)}((e,t)=>{if(!(null==t?void 0:t.scrollRefreshEnabled))return;const{targetId:n}=e,i=document.querySelector(`#${n}`),r=null==i?void 0:i.parentElement;if(!r||!i)return;ui({adWrapper:r,placementContainer:i});const{delayTimeToNextRefresh:o=1e3}=t,a=(new Date).getTime();i&&"true"!==i.dataset.subscribedForRefresh&&(i.dataset.subscribedForRefresh="true",i.dataset.refresh&&vi(i,a,o))})(n,i),(null==o?void 0:o.clearProbableDimensionsEnabled)&&(e=>{const t=document.querySelector(`#${e}`);t&&(t.style.minWidth="",t.style.minHeight="")})(n.targetId);if(C.getData("horseshoe").isAvailable&&(null==a?void 0:a.enabled)){const{adjustAdToHorseshoe:e}=yield Promise.resolve().then(function(){return Wt});e(n.targetId)}if(null==s?void 0:s.enabled){const{scaleAds:e,scaleAdIpadAirPortrait:t}=yield import("./index-Due_WU8F.js");e(n),t(n)}e.adLoaded(n),yt(n.targetId),d&&(d.classList.add(wt),(e=>{var t,n;const{pageSectionsSelectors:i}=b.get(),r=null==i?void 0:i.mainFirstColumn,o=r?null===(t=document.querySelector(r))||void 0===t?void 0:t.clientWidth:void 0;o&&e.clientWidth>o&&(null===(n=e.parentElement)||void 0===n||n.setAttribute("data-two-column-ad-layout","true"))})(d)),Gi({adObj:n}),(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:r}=e;r?t.dataset.adSizes="[1,1]":n&&i&&(t.dataset.adSizes=`[${i},${n}]`)})(e,i)})(n),window.dispatchEvent(new CustomEvent("advertory:adLoaded",{detail:{targetId:n.targetId,adFormat:Ji(n)}}))})),go.onEvent("adNoBid",t=>s(void 0,void 0,void 0,function*(){var n;if(Kt(t.targetId),null===(n=b.get().drEdition)||void 0===n?void 0:n.enabled){const{handleDrEditionBackfill:e}=yield import("./index-fkJKK9f8.js");yield e(b.get(),t)}if(Oe(t)){const{handleTakeoverCookieOnAdNotShown:e}=yield Promise.resolve().then(function(){return Bi});yield e(t)}e.adNoBid(t)})),go.onEvent("adError",(t,n)=>s(void 0,void 0,void 0,function*(){if(Oe(n)){const{handleTakeoverCookieOnAdNotShown:e}=yield Promise.resolve().then(function(){return Bi});yield e(n)}e.adError(t,n)})),go.onEvent("adCollapse",()=>{e.adCollapse()}),go.onEvent("adRequestFailure",t=>s(void 0,void 0,void 0,function*(){Kt(t.targetId),yield Vn(b.get(),t),e.adRequestFailure(t)})),go.onEvent("adBadRequest",t=>s(void 0,void 0,void 0,function*(){Kt(t.targetId),yield Vn(b.get(),t),e.adBadRequest(t)})),go.onEvent("adLoadedMediated",t=>e.adLoadedMediated(t)),go.onEvent("adNoBidMediated",t=>s(void 0,void 0,void 0,function*(){yield Vn(b.get(),t),e.adNoBidMediated(t)}))})}),To=(e,t)=>s(void 0,void 0,void 0,function*(){var n;if(!(null===(n=null===window||void 0===window?void 0:window.advertory)||void 0===n?void 0:n.initialized))return[];const{clearAds:i,reloadExistingAds:r,renderFinnBlinkPlacements:o,contextSelector:a}=null!=t?t:{};if(i)return Yt(),[];r&&(Yt(),document.querySelectorAll('[data-advertory-ad-rendered="true"]').forEach(e=>{Gt(e.id)})),x(null!=e?e:{}),yield fo();const{clientSidePlacements:s,serverSidePlacements:d}=to(ln(a));let l=s;return o&&(l=l.filter(e=>De(e.targetId))),io(d,b.get()),l.length>0&&(ho=[...ho,...l.map(e=>Object.assign({},e))],yi(l),wi(l),yield Io(l)),ho}),ko=(e,t)=>s(void 0,void 0,void 0,function*(){var n;b.set(e),b.setHandlers(Object.assign(Object.assign({},t),e.customHandlers));const{norstat:i,kilkaya:r,rightColumnSplit:o,drEdition:a,finnBlink:d}=e;if(C.initialize(),window.addEventListener("message",ti,!1),go=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=go,h("Apn tag is set up on window"),yield Promise.allSettled([s(void 0,void 0,void 0,function*(){const{tcf:e,pageContext:{isMobileApp:t,countryCode:n}}=b.get();(yield F(e,t,n,"xandr-endpoint"))||go.setEndpoint("ib.adnxs-simple.com",!0)}),s(void 0,void 0,void 0,function*(){if(xt())return;const{prebid:e,tcf:t,pageContext:{isMobileApp:n,countryCode:i}}=b.get(),r=yield F(t,n,i,"prebid");(null==e?void 0:e.enabled)&&r&&(yield Ee(null==e?void 0:e.prebidUrl))}),ge(e),s(void 0,void 0,void 0,function*(){const{developerOptions:{astUrl:e}={}}=b.get();yield Ee(null!=e?e:"https://adsdk.microsoft.com/ast/ast.js")}),s(void 0,void 0,void 0,function*(){const{developerOptions:{gptUrl:e}={},tcf:t,pageContext:{isMobileApp:n,countryCode:i}}=b.get();(yield F(t,n,i,"gpt-endpoint"))&&(yield Ee(null!=e?e:"https://securepubads.g.doubleclick.net/tag/js/gpt.js"))}),s(void 0,void 0,void 0,function*(){const{brandmetrics:{enabled:e,brandmetricsUrl:t}={},tcf:n,pageContext:{isMobileApp:i,countryCode:r}}=b.get(),{getConsentAsync:o}=R(n,0,r),a=yield o();if(e&&t&&a){if(yield Ee(t),document.querySelector(`.${er}`))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(er)})&&(t.disconnect(),window._brandmetrics=window._brandmetrics||[],window._brandmetrics.push({cmd:"_loadsurvey"}))}}).observe(document,{childList:!0,subtree:!0,attributes:!0})}}),$(),s(void 0,void 0,void 0,function*(){const{gdpr:{gdprUrl:e,allowHidingAds:t=!0}={}}=b.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")})]),null==i?void 0:i.enabled){const{loadNorstat:e}=yield import("./index-meFvQMeU.js");yield e()}h("Libraries have been loaded and trackers have been set"),vo(),yield So(),yield fo(),h("Page options have been set"),yo(e),h("Advertory is setup on window");const{clientSidePlacements:l,serverSidePlacements:c}=to(ln());if(ho=l,io(c,e),yi(ho),wi(ho),yield Io(ho),h("Ads has been loaded",ho),zn(e,ho),Xi(ho),null==d?void 0:d.enabled){const{replaceAdsWithFinnBlink:t}=yield import("./index-42Yw7tCH.js");yield t(null===(n=null==e?void 0:e.pageContext)||void 0===n?void 0:n.deviceType,e.finnBlink)}if(null==a?void 0:a.enabled){const{handleDrEdition:t}=yield import("./index-fkJKK9f8.js");yield t(e)}if(null==o?void 0:o.enabled){const{initRightColumnSplit:t}=yield import("./index-BX6LA3vE.js");t(e.rightColumnSplit)}if(null==r?void 0:r.enabled){const{runKilkaya:t}=yield import("./index-D7UWmud6.js");yield t(e)}}),Oo=(e,t)=>s(void 0,void 0,void 0,function*(){yield((e,t)=>s(void 0,void 0,void 0,function*(){var n,i;const{initConsentManager:r,getConsentAsync:o}=R(e.tcf,null===(n=e.pageContext)||void 0===n||n.isMobileApp,null===(i=e.pageContext)||void 0===i?void 0:i.countryCode),a=yield oo(e);yield $n(),yield Zi(r),yield Zi(o),h("TCF resolved successfully"),yield ko(a,t),h("Run function resolved successfully")}))(e,t)}),Po=(e,t,n,i)=>{var r;const{image:o,icon:a,sponsoredBy:s,title:d,clickUrl:l,cta:c,body:u,desc2:p,video:v,description:g,customTitle1:h,customTitle2:m,customTitle3:y,customTitle4:f,customBody1:w,customBody2:b,customBody3:x,customBody4:E,customBody5:C,customIcon1:I,customIcon2:A,customDisplayUrl1:S}=e,T=(e,t="")=>{var n;return e?null!==(n=e.url)&&void 0!==n?n:e:t};return Object.assign({containerId:n,img:T(o),imgWidth:null==o?void 0:o.width,imgHeight:null==o?void 0:o.height,imgAltText:null!=d?d:"",logo:(()=>{var e;const t=(null==p?void 0:p.includes("sponsor"))&&"dark"===(null===(e=i.appearanceConfig)||void 0===e?void 0:e.theme)&&I;return T(t?I:a)})(),sponsoredBy:null!=s?s:"",title:null!=d?d:"",url:null!=l?l:"",cta:null!=c?c:"",description:null!==(r=null!=u?u:g)&&void 0!==r?r:"",desc2:null!=p?p:"",video:v,customTitle1:null!=h?h:"",customTitle2:null!=m?m:"",customTitle3:null!=y?y:"",customTitle4:null!=f?f:"",customBody1:null!=w?w:"",customBody2:null!=b?b:"",customBody3:null!=x?x:"",customBody4:null!=E?E:"",customBody5:null!=C?C:"",logo2:T(A),previewVideoSrc:null!=S?S:""},t)},jo=(e,t)=>{const n=(i=j,window.location.href.includes(i));var i;const r=new URLSearchParams(window.location.search).get(j),o=t.includes("native_recirc");return n&&r?r:(null==e?void 0:e.includes("recirc"))?o?"native_recirc":"recirc":(null==e?void 0:e.includes("sponsor"))?"sponsorstripe":null},Lo=(e,t,n,i)=>{const o=document.querySelector(`#${e}`);o&&t&&(o.innerHTML=t,((e,t)=>{const n=e.parentElement,{publisher:i,pageType:o}=t,a=i&&Object.values(r).includes(i);n&&a&&Kr(i,e,Gr.NATIVE_AD,o)})(o,n),i())},No=(e,t,n)=>{const i=((e,t,n)=>{var i;const{displayTemplates:r,videoTemplates:o}=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=jo(e.targetId,l))&&void 0!==i?i:c,p=lt[t.language||N.NO],v=Po(s,p,d,t);return(s.video?o[u]:r[u]||r.default)(v,t)})(e,t,n);Lo(e.targetId,i,t,()=>{const{nativeTrackingConfig:{enabled:n=!0}={}}=t;n&&Jr(e,t)})},Do=e=>(t,n)=>{var i;const{targetId:r}=t,o=document.querySelector(`#${r}`);if(!o)return;const a=e.getOptions(null!=n?n:{});No(t,a,e.templates),null===(i=e.postProcess)||void 0===i||i.call(e,t,o)},Mo=()=>{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},_o=e=>{const{siteSpecificConfig:t}=b.get(),n=(null==t?void 0:t.dynamicOutstreamFormats)||[];return 0!==n.length&&n.some(t=>e.includes(t))};class Ro{constructor(){this.keywords={}}add(e){return Object.assign(this.keywords,e),this}addAsync(e){return s(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 s(this,void 0,void 0,function*(){return e&&Object.assign(this.keywords,yield t()),this})}build(){return this.keywords}}const Fo=9826;class qo{constructor(){this.getSupplyTypeKeywords=()=>{const{pageContext:{deviceType:e,isMobileApp:t}}=b.get();if(t){return{"aa-sch-supply_type":`app_${e===Xt?"phone":Zt}`}}return{"aa-sch-supply_type":`web_${this.getPageOptionsFormatDevice(e)}`}}}prepare(e){return s(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 s(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=Ci("_pulse2data");return e?e.split(",")[2]:void 0})()}getExternalUid(){return s(this,void 0,void 0,function*(){return yield Ii(b.get())})}isTrackingForbidden(){return s(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=Fo}={}}=b.get();return"true"===O("inventory_test")?t:e}getCMPValue(e){return localStorage.getItem(`CMP:${e}`)?"0"===localStorage.getItem(`CMP:${e}`)?"0":"1":"0"}getPublisherKeywords(){const{pageContext:{publisher:e}}=b.get();return{"aa-sch-publisher":`${e}`}}getAnalyticsConsentKeywords(){return{"aa-sch-cmp_analytics":this.getCMPValue("analytics")}}getAdvertisingConsentKeywords(){return s(this,void 0,void 0,function*(){const{tcf:e,pageContext:{isMobileApp:t,countryCode:n}}=b.get(),{getConsentAsync:i}=R(e,0,n);return{"aa-sch-cmp_advertising":(yield i())?"1":"0"}})}getPageTypeKeywords(){const{pageContext:{pageType:e}}=b.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 $o=new qo;function Bo(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(),r=fn();return{OS:r,mobileOS:["ios","android"].includes(r)?r:"unknown",isHybridApp:i.includes("hermes"),appMode:e?"hybrid":"notinapp"}}$o.prepare.bind($o);const Uo=["aLOLE","xBqQj","1KaqJ","1nzXzK","opm8zV","4qKXKR","Ad9QgE"];function Vo(e){return t=window.location.pathname.split("/").slice(-2,-1).pop()||"",Uo.includes(t)?{"no-sno-news-section":`${e}_doedsfall`}:{};var t}class Ho extends qo{constructor(){super(...arguments),this.getDeviceKeywords=()=>{const{pageContext:{deviceType:e}}=b.get();return{"no-sno-device":this.getPageOptionsFormatDevice(e)}}}getAppTypeKeywords(){const{pageContext:{deviceType:e,isMobileApp:t}}=b.get(),{OS:n,isHybridApp:i}=Bo(t);return{"no-sno-apptype":n&&e&&i?`${n}_${this.getPageOptionsFormatDevice()}_hybrid`:"none"}}getObituariesKeywords(e){return Vo(e)}getSectionPageTypeKeywords(){var e,t;const{pageOptions:n,pageContext:{pageType:i}}=b.get(),r=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":`${r.split("_").pop()||r}_${"article"===i?"article":"front"}`}}}const zo=new class extends Ho{prepare(e){return s(this,void 0,void 0,function*(){var t,n,i,r,o,a,s;const d=b.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===(o=null===(r=d.pageSetup)||void 0===r?void 0:r.pageOptions)||void 0===o?void 0:o.keywords)&&void 0!==a?a:{},u=null===(s=d.siteSpecificConfig)||void 0===s?void 0:s.publisherClassName,p=new Ro;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(me()).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({},he(N.NO)),g?{externalUid:yield this.getExternalUid()}:{}),member:this.getMember()})})}},Wo=zo.prepare.bind(zo);class Ko extends qo{constructor(){super(...arguments),this.getDeviceKeywords=()=>{const{pageContext:{deviceType:e}}=b.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!==(o=null===(r=window.screen)||void 0===r?void 0:r.height)&&void 0!==o?o:0};var n,i,r,o;return{"se-generic-viewportheight":e.height,"se-generic-viewportwidth":e.width,"se-generic-screenheight":t.height,"se-generic-screenwidth":t.width}}getExternalIdSrc(){return s(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}}=b.get(),{appMode:t,mobileOS:n}=Bo(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}}=b.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 Go=new class extends Ko{prepare(e){return s(this,void 0,void 0,function*(){var t,n,i,r,o,a;const d=b.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===(o=null===(r=d.pageSetup)||void 0===r?void 0:r.pageOptions)||void 0===o?void 0:o.keywords)&&void 0!==a?a:{},u=new Ro;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,()=>s(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(me()).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"===Ci("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({},he(N.SE)),v?{externalUid:yield this.getExternalUid()}:{}),member:this.getMember()})})}},Jo=Go.prepare.bind(Go);st(".advertory-splash-navbar-wrapper{width:100%;border-bottom-right-radius:0 !important;border-bottom-left-radius:0 !important}.advertory-splash-navbar-wrapper .advertory-splash-navbar{display:flex;justify-content:space-between;align-items:center;width:100%;margin:0 auto;padding:14px;cursor:default}@media screen and (min-width: 600px){.advertory-splash-navbar-wrapper .advertory-splash-navbar{padding:24px 30px}}@keyframes elementsAnimation{0%{opacity:0;pointer-events:none;cursor:default}95%{opacity:0;pointer-events:none;cursor:default}100%{opacity:1;pointer-events:all;cursor:pointer}}.advertory-splash-navbar-wrapper .advertory-splash-navbar .advertory-splash-logo{display:block;height:18px;width:fit-content}@media screen and (min-width: 600px){.advertory-splash-navbar-wrapper .advertory-splash-navbar .advertory-splash-logo{height:26px}}.advertory-splash-navbar-wrapper .advertory-splash-navbar .advertory-splash-close{display:flex;align-items:center;gap:8px;font-family:Arial,Helvetica,Verdana,Geneva,sans-serif;font-size:14px;line-height:20px;animation:elementsAnimation 1.5s linear;cursor:pointer}.advertory-splash-navbar-wrapper .advertory-splash-navbar .advertory-splash-close:hover{text-decoration:underline}");const Qo=()=>e("div",{role:"button",tabIndex:1,"data-testid":"advertory-splash-navbar-wrapper",className:"advertory-splash-navbar-wrapper",style:{display:"none"},children:t("div",{className:"advertory-splash-navbar",children:[e("img",{id:"advertory-splash-logotype",className:"advertory-splash-logo",width:"250",height:"30"}),e("div",{className:"advertory-splash-close","data-testid":"advertory-splash-close",children:e("span",{id:"advertory-splash-close-label"})})]})});var Yo="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEIAAABCCAYAAADjVADoAAAAAXNSR0IArs4c6QAAAtZJREFUeAHd3EFuwjAQBVDUbZeIM7DqUWANZ0PiDiy4D0JVu4BlpapVK/p/qpEgEGJjezJjS6NAoI3n4Uwg4IxGaKfTaYJYI/aIA2KDmPKxmhpyekFsEUfEDrFCjJsccYMI74h2+8SKeS0QyGWJ+GonifuviDFHA0dCV/vGA+4xkMMC8dOVJNavCMHd4V5zjYHE+hCY+44QrAl9zSUGkgpBYO5HQrAwhjRXGEiINeHe7nCe85YQUwQLY0hzgYFEQkcCc2YBfZEjxxx3mGRIM42BBGIQOGIWF0dGrIjBoKK5o0kygoh4xsiG4BkjO4JHjGIInjCKI7Qwbr0/Rx+ummoBxdbTjg6SZOgSG+TRxBSGOoJgWcIYDMESxuAIFjCAsESEfna4fscoSeRaojPqNcMcgmBqYphF0MQwj6CB4QahJIY7hBIYDyAspR8mlkgg+WjiHkFeiRSMahBSMKpDeBCD50Bj3jHaqgmSdNcycjfB03sbsXwhCA46HlNA70n4RciI4R8hA0Y9CC2M0C+RuJuoIjxJRxWWz9hGzPZ+8fwPhX7pbQKvbsxJlfOiyXOlM72eFtxSAoKA+MfIgOAfIyOCX4xIBB4dOPxDmp/dBNksEUwupDWHSDxxhqgHA8lEI0idrgYjBaEajBwI7jFyIrjFKIHgDqMkghsMDYQEDJ1f+2kimMUYAsEcxpAIZjAsIAyOYQnhDCPm7Dg/w6QVUIsI6hiWEdQwPCAUx/CEUAwDCLE/6zXzXST6nqeAekbINjJqQEjGAAKnCYeeL1T9Gk6Si10in5jdhBP7ppzlx7nSIY0IlxPBYnuo+Hz0NQZjQwhOGO9rLkZC2xlJhWIcCLHrUXA1Eh7E2BOClw7oaq4RBAXJ9Y2MNSHGCF46oN1YQN3UBEm6a4lciHFrxvMb1k+av8MNYnBkcDdhzWAB/Z8m3PWfHa5HTpz+zbnwvDAAr5LAS0Y0CH9NGDAEswYjMgAAAABJRU5ErkJggg==",Xo="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGwAAABsCAYAAACPZlfNAAAAAXNSR0IArs4c6QAACT5JREFUeAHtnc1vFlUUximICbLAmoAuSCw7IlsghEQpJWGhEaksJbZdskDSP4Ck6T9AQPcE1I2JEjS6UosbEvzYKbpSWAku+EgEo4nB3wNv67zT+Z5zP97pnOTJOzP33nOec8503pnz3rldt66XtRWBR48ebQcnwLNry/Pq3io2gxhtrz7KQU9I7Aa/A8l1MOHAzEirJCY7wM9AoljtDuIQho+AP0FSbrGzJwihCI0Si73gdjJAbCtmR7zSxeBJ8C/IkgccPOqVUITGFAPwMCtAHFPsTjqnjZH14AwoExE65ZxQpAbkO8g7oZOxUyzXO3EDxZvApaS1Ctvn6OOGkBMv2ymVr0A+1xHFdFM7y6nRKNwGrtVhkeh7me1nUio7tysfgXxtIortNpOgoGgn+LUJi8SY79h+wYRQhErkG5CPbUQx3tnKPRRMgjttWCTG3mD7pVaEIhwsn4B8sxDFerKRmww8Dv62YJHQcZftqUaEIhwkX8C9hH8Wm4r58VruMuC0heUcHf9wfKYWoQg7ywcgX1zJ6VK3sbwRnHfFIKV3oZRQpB3wYyHli6vd8yjemBkGGraAL4FPuYixpzMJRXhQXIE4+xTlZMtQODiwFfzok0XC1hLb0ReO4TgOxDWEKDfPKWnLD7Uvs71rKIv+diYxdRVCE/5M1rM04HaVUZP1Rpr1Vm4OrmiD0FPA9586JockysIxDLMKuEPEPewoN6u/yzi46MF4kQkVjt9YOZMCb8BFBVxxCimLhWGA2Qxwebta5nwUhWNIngJVCrhl/jRtVw6qPf7QcQpYPxDWJX6WAcvfsYUnmWWjbIK6Bdy6vpX1V+ynavnFAMuSSxnBvHavhWNItCng5vlQ93jzEh6WLIqadQmn+6uo+nyts61B54h8bVckx5HRPusqJA8fu3U1waEYrusqHP//LFIhEVW6oFPf19IdUtz80ItH8yD0ndPbVRJRpQ++zIDQd8TzVbg27oODMTybLDR2YDAQP3wVcDGVKf4mK2E+hqf/C/BY/fRfkknGhCjgpjOmqW97S6jaNmMwOUEyTcjX/tcYqlw4Vl+wBEKKJpXusM1GRW0YDlnBXg76dTYmyiirD1DfkLKE8fEyrk7bIaBLzPsgpBQWjiG2B6hPSFGM4vntDzKLIaOB7czCMcdjuEkqLuA6/ZMqUE5wZkHo2+SVGcdwiaGAO1sQstpNY7VHlAwgSIfo8jEY/lm7ZJxx87mBvneM9dZRd5/Ox8bGxr6qM6isr3nCZJCk6RfSz8GL2l+DchOfXyNZP1n77uTniwHRfZD9wZrwCOiTz/tcJEu+O0mYFEP4Fh8HwGfaXyMiXw8MfHfisrOEiS3EH/Chd8Xe037HRT4eHfg8+q7yvRa6cAwFJ6JiuNsCbiL9Tm46EvqHNnFsmgMfAtv3oYaseN35C2tv8Vd1yZdVrwmTUyRNRU9d623eh5LSMPIHZl8nWd/6NO89YXKOpO3g4wvQ7n0oKQsjv2D2VZL1m2/zTm868pwZOLqf9m/y+kR8XJz3h0iWYhIkYTKMw3f5OAw+0P6IiLgeHnAfEcoOaHKJDF04hkKpLDpwfXRVEq7QheO8jKmYPTu6kXXInMAcApr1GouIi4rZveRFgADtAjcjyJg4hHoFKy887Y/j1HZwAlSeW1FmFV2acfw9CCWy3W4GbsJJdGkuiWLU3dXccG4z+BT4FtncnIh3q010JScrdXs1N5zdAN4FvkS2NrTKUGIwurKmA3Z/NTccd104Ni/gwllzSR6CLJG9bq/mhoPTIC8AWUGpekw6VZQ2E/RVnUtyhr5uihco3gQugTpiOskfw1mXmDp80n1NZ+CivMlLI4qp7a8XKNwGroEmcplBZqu5oSv5Jd6Ez/IY0xm48hHI1yai2Nr8eoGi6FZzg9M4uAKaisaOW10D0WXx4mO3V3MjSE1nHJvOwIWH5cuA3V/NjYDVKRybFnCxPQWsS2ndX82NoM2BohnHapuzugRKD/pmSmzS3Eq6vZobockrHJsXcLG10CoV1Qefp2v2O3A0bAEjvZob/NOFY9MCLvpDvAw4tJrb2ODPeyufSyBEdfoKdqf5Ffcen62FoGqJiGNAJaaP0Hu7tVIUoFd3lZ+ASeBbNOX7FXy589gwZN4EIeU6xid8R6GqPXEDy/+OI1ScdBI+ERj0q7ktByP1SWysqytNEn6RQau/yzhY5xa5ieGyMZkv5aVi6G0XsirgilNIKX4UgdkMKLpFdk1eleyVl/K8ZSdlSByAuIQS5WAmRSt7l44uHgjrOn6WAW4q2dluPz4qm0BF65CiR5GpApqrmxhgWXJp6rxp4Xi1l8NHINmmgNvUx/S4Gxxo9g8ZGGhR1EwTqrvfr+Y2fF4V7xHd0T7rit173IqP3bqa4FAM1/W78DhYIf61uqBT39fSHVJMf+hdCQAezYPQd079am4rGamwQcJieDZZqEC1sAt++CrgYipT9Hyn14ndC4ZiePq/AI/VT/8l7jMmRAEXs0NiOpekxOUnzZi3mlsx5EnNnX41t0rZGnQiuJpbsVQzyNbdKxWOMaoCrvqGlCWMm80lqZOrlb4QaDq3wjJw/WpuKxmpuEH0Fy0z0EBXZuEYPTHcJBUXcCvG2LwbwZkF0RSO4RJDAXfWMtCPf3G2VEiQ+tXcngT0Ph/9am6WJ5dDXTfR3a/m5jDAlqr71dwso+lYV7+am+MAW6rvV3PjBmYURMXwecvMF+kyv0ssMoZj07T3q7kVBamkzWvCxIWk9au5lSSlqNl7wgZJ28Fnv5pbUWZy2rzPShIPphxr2bp+NbecpBQdDpIwESJp/WpuRZmJuY3vtdCFYyiUSpwF3FCJJVyhC8d5GVMxezZUXKK2S2DyXsrLC6br45qB26/mVnTWEKD0S3muk5Kn3/RlwCKfR76NCHZqNbeRT0gVB0haJ1Zzq+JrZ/qQtJFeza0ziajrCIlzPePYawG3rv8j2Z+kTYOHwFqkU0XpXqwjQGD3As2atRL/M3CtgxK7PjJlNePYdDW32OMWlB9J04zjKy3+zDR2PKgTa804AW8649h0Nbe1FvfW/pK4OoXjvoDbOuIGCkjaHCiacay2OQNTvQqrCJCQvMJxX8C1CrK1HpKWLhx3roAbZE6HdaKS+kiak9Xckjb67T4ClSPwH3Dy/EjlG8AUAAAAAElFTkSuQmCC";st(".advertory-welcome-page-close{padding:0;background:none;border:none;z-index:1;position:fixed;top:42px;left:16px;color:#fff;cursor:pointer;filter:drop-shadow(rgba(0, 0, 0, 0.2) -1px -1px 1px) drop-shadow(rgba(0, 0, 0, 0.2) 1px 1px 1px)}.advertory-welcome-page-close .advertory-welcome-page-close-image{width:22px;height:22px}@media screen and (min-width: 736px){.advertory-welcome-page-close .advertory-welcome-page-close-image{width:28px;height:28px}}.advertory-welcome-page-scroll{display:flex;flex-direction:column;align-items:center;color:#fff;font-size:18px;text-shadow:0 2px 5px rgba(0,0,0,.2);text-align:center;position:absolute;max-width:100%;z-index:1000;left:50%;transform:translate(-50%);cursor:pointer;filter:drop-shadow(rgba(0, 0, 0, 0.2) -1px -1px 1px) drop-shadow(rgba(0, 0, 0, 0.2) 1px 1px 1px)}.advertory-welcome-page-scroll .advertory-welcome-page-scroll-image{width:26px;height:26px;margin-top:19px}@media screen and (min-width: 736px){.advertory-welcome-page-scroll{font-size:calc(24px + 2*(100vw - 736px)/514)}.advertory-welcome-page-scroll .advertory-welcome-page-scroll-image{width:54px;height:54px;margin-top:22px}}");const Zo=()=>t(n,{children:[e(()=>e("div",{style:{display:"none"},className:"advertory-welcome-page-elements advertory-welcome-page-close smooth-close-takeover","data-testid":"welcome-page-close-button",children:e("img",{className:"advertory-welcome-page-close-image",src:Yo,alt:"Stäng annonsen",width:"28",height:"28"})}),{}),e(()=>t("div",{style:{display:"none"},className:"advertory-welcome-page-elements advertory-welcome-page-scroll smooth-close-takeover","data-testid":"welcome-page-arrow-icon",children:[e("span",{id:"advertory-welcome-page-scroll-label"}),e("img",{className:"advertory-welcome-page-scroll-image",id:"advertory-welcome-page-scroll-image",src:Xo,width:"54",height:"54"})]}),{})]});st(".advertory-topscroller-close{padding:0;background:none;border:none;z-index:1;position:fixed;top:42px;left:16px;color:#fff;cursor:pointer;filter:drop-shadow(rgba(0, 0, 0, 0.2) -1px -1px 1px) drop-shadow(rgba(0, 0, 0, 0.2) 1px 1px 1px)}.advertory-topscroller-close img{width:22px;height:22px}@media screen and (min-width: 736px){.advertory-topscroller-close img{width:28px;height:28px}}.advertory-topscroller-scroll{display:flex;flex-direction:column;align-items:center;color:#fff;font-size:18px;text-shadow:0 2px 5px rgba(0,0,0,.2);position:absolute;max-width:100%;text-align:center;z-index:1000;left:50%;transform:translate(-50%);cursor:pointer;top:50vh;filter:drop-shadow(rgba(0, 0, 0, 0.2) -1px -1px 1px) drop-shadow(rgba(0, 0, 0, 0.2) 1px 1px 1px)}.advertory-topscroller-scroll img{width:26px;height:26px;margin-top:19px}@media screen and (min-width: 736px){.advertory-topscroller-scroll{font-size:calc(24px + 2*(100vw - 736px)/514);top:55vh}.advertory-topscroller-scroll img{width:54px;height:54px;margin-top:22px}}@media screen and (min-height: 836px){.advertory-topscroller-scroll{top:50vh !important}}");const ea=()=>t(n,{children:[e(()=>e("div",{style:{display:"none"},className:"advertory-topscroller-elements advertory-topscroller-close smooth-close-takeover","data-testid":"topscroller-close-button",children:e("img",{src:Yo,alt:"Stäng annonsen",width:"28",height:"28"})}),{}),e(()=>t("div",{style:{display:"none"},className:"advertory-topscroller-elements advertory-topscroller-scroll smooth-close-takeover","data-testid":"topscroller-arrow-icon",children:[e("span",{id:"advertory-topscroller-scroll-label"}),e("img",{id:"advertory-topscroller-scroll-image",src:Xo,width:"54",height:"54"})]}),{})]});st(".advertory-splash-navbar-wrapper{width:100%;border-bottom-right-radius:0 !important;border-bottom-left-radius:0 !important}.advertory-splash-navbar-wrapper .advertory-splash-navbar{display:flex;justify-content:space-between;align-items:center;width:100%;margin:0 auto;padding:14px;cursor:default}@media screen and (min-width: 600px){.advertory-splash-navbar-wrapper .advertory-splash-navbar{padding:24px 30px}}@keyframes elementsAnimation{0%{opacity:0;pointer-events:none;cursor:default}95%{opacity:0;pointer-events:none;cursor:default}100%{opacity:1;pointer-events:all;cursor:pointer}}.advertory-splash-navbar-wrapper .advertory-splash-navbar .advertory-splash-logo{display:block;height:18px;width:fit-content}@media screen and (min-width: 600px){.advertory-splash-navbar-wrapper .advertory-splash-navbar .advertory-splash-logo{height:26px}}.advertory-splash-navbar-wrapper .advertory-splash-navbar .advertory-splash-close{display:flex;align-items:center;gap:8px;font-family:Arial,Helvetica,Verdana,Geneva,sans-serif;font-size:14px;line-height:20px;animation:elementsAnimation 1.5s linear;cursor:pointer}.advertory-splash-navbar-wrapper .advertory-splash-navbar .advertory-splash-close:hover{text-decoration:underline}.advertory-welcome-page-close{padding:0;background:none;border:none;z-index:1;position:fixed;top:42px;left:16px;color:#fff;cursor:pointer;filter:drop-shadow(rgba(0, 0, 0, 0.2) -1px -1px 1px) drop-shadow(rgba(0, 0, 0, 0.2) 1px 1px 1px)}.advertory-welcome-page-close .advertory-welcome-page-close-image{width:22px;height:22px}@media screen and (min-width: 736px){.advertory-welcome-page-close .advertory-welcome-page-close-image{width:28px;height:28px}}.advertory-welcome-page-scroll{display:flex;flex-direction:column;align-items:center;color:#fff;font-size:18px;text-shadow:0 2px 5px rgba(0,0,0,.2);text-align:center;position:absolute;max-width:100%;z-index:1000;left:50%;transform:translate(-50%);cursor:pointer;filter:drop-shadow(rgba(0, 0, 0, 0.2) -1px -1px 1px) drop-shadow(rgba(0, 0, 0, 0.2) 1px 1px 1px)}.advertory-welcome-page-scroll .advertory-welcome-page-scroll-image{width:26px;height:26px;margin-top:19px}@media screen and (min-width: 736px){.advertory-welcome-page-scroll{font-size:calc(24px + 2*(100vw - 736px)/514)}.advertory-welcome-page-scroll .advertory-welcome-page-scroll-image{width:54px;height:54px;margin-top:22px}}.advertory-topscroller-close{padding:0;background:none;border:none;z-index:1;position:fixed;top:42px;left:16px;color:#fff;cursor:pointer;filter:drop-shadow(rgba(0, 0, 0, 0.2) -1px -1px 1px) drop-shadow(rgba(0, 0, 0, 0.2) 1px 1px 1px)}.advertory-topscroller-close img{width:22px;height:22px}@media screen and (min-width: 736px){.advertory-topscroller-close img{width:28px;height:28px}}.advertory-topscroller-scroll{display:flex;flex-direction:column;align-items:center;color:#fff;font-size:18px;text-shadow:0 2px 5px rgba(0,0,0,.2);position:absolute;max-width:100%;text-align:center;z-index:1000;left:50%;transform:translate(-50%);cursor:pointer;top:50vh;filter:drop-shadow(rgba(0, 0, 0, 0.2) -1px -1px 1px) drop-shadow(rgba(0, 0, 0, 0.2) 1px 1px 1px)}.advertory-topscroller-scroll img{width:26px;height:26px;margin-top:19px}@media screen and (min-width: 736px){.advertory-topscroller-scroll{font-size:calc(24px + 2*(100vw - 736px)/514);top:55vh}.advertory-topscroller-scroll img{width:54px;height:54px;margin-top:22px}}@media screen and (min-height: 836px){.advertory-topscroller-scroll{top:50vh !important}}.advertory-takeover-wrapper{display:none;font-family:Arial,Helvetica,Verdana,Geneva,sans-serif;width:100%}.advertory-takeover-wrapper.advertory-impact-wrapper{z-index:10001}.advertory-takeover-wrapper.welcome-page-wrapper{clip-path:inset(0)}.advertory-takeover-wrapper.advertory-splash-wrapper{position:fixed;height:100vh;background-color:#fff;font-weight:700;z-index:10001}.advertory-takeover-wrapper.topscroller-wrapper div[role=button]{border-bottom-left-radius:0;border-bottom-right-radius:13px !important;right:unset}.advertory-takeover-wrapper.topscroller-wrapper iframe[id^=utif_]{width:100%;height:68vh}.advertory-takeover-wrapper.topscroller-wrapper .takeover-topscroller-label{right:0 !important;left:unset !important}.advertory-takeover-wrapper div[role=button]{background-color:hsla(0,0%,100%,.75) !important;border-bottom-left-radius:13px;border-bottom-right-radius:0 !important;left:unset !important;right:0}.advertory-takeover-wrapper .advertory-takeover{position:fixed;height:100vh;width:100%}.advertory-takeover-wrapper .advertory-takeover .advertory-takeover-label{position:absolute;top:0;left:0;font-size:10px;font-weight:700;background-color:hsla(0,0%,100%,.75);color:#585858;padding:7px;letter-spacing:.4px}.takeover-ad-hidden{display:none;visibility:hidden;height:0 !important}body.page-locked{position:fixed;top:0;left:0;right:0;width:100%;overflow:hidden}");const ta=n=>t("div",{className:"advertory-takeover-wrapper",children:[e(Qo,{}),e(Zo,{}),e(ea,{}),t("div",{id:n.targetId,className:"advertory-takeover","data-device":"all",children:[e("div",{className:"div-for-xandr",style:{display:"none"}}),e("div",{className:"advertory-takeover-label",style:{display:"none"}}),e("div",{id:`${n.targetId}-button`})]})]}),na={prepareTag:e=>{var t;const{keywords:n,targetId:i,invCode:r,dynamicSizeWidthCheck:o,globalPlacementId:a}=e,{pageSetup:s,pageContext:{countryCode:d}}=b.get(),{tag:{useAppTabletInvCode:l=!0}={}}=null!=s?s:{},c=((e,t)=>{const{pageContext:{isMobileApp:n}}=b.get();return n?((e,t)=>e.replace(/wtb|wde|wph/g,e=>"wph"===e?"aph":t?"atb":e))(e,t):e})(r,l),u=(e=>{const{pageContext:{countryCode:t}}=b.get(),{keywords:n,dynamicSizeWidthCheck:i}=e,r=`${W(t)}-adformat`,o=n?n[r]:[];if(!o)return{};const a=(Array.isArray(o)?o:[o]).filter(e=>!(e in Ae)||window.innerWidth>=Ae[e]);return{[r]:i?a:o}})(e),p=(e=>{const{pageContext:{countryCode:t}}=b.get(),n=`${W(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=Mo(),h=(e=>_o(e)?{"aa-sch-dynamic-outstream":["true"]}:{})(r),m=((e,t)=>_o(e)?Object.assign(Object.assign({},t),{playerSkin:{videoBackgroundColor:"#e6e7e8"}}):{})(r,{safeFrameAutoInitialSize:!0}),y=o&&e.sizes.length>0?e.sizes.filter(([e])=>e<=window.innerWidth):e.sizes,f=(new Ro).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,{[`${W(d)}-adreload`]:"0"}).build();return Object.assign(Object.assign({},e),{sizes:y,invCode:c,keywords:f,rendererOptions:m,globalPlacementId:a||c})},preparePageOptions:e=>s(void 0,void 0,void 0,function*(){const{pageContext:{countryCode:t}}=b.get();return yield t===N.SE?Jo(e):Wo(e)}),siteEvents:i},ia=((e,t)=>({init:n=>Oo(Object.assign(Object.assign({},n),{siteSpecificConfig:t}),e),update:To,getVideoPPIDs:be,createInitNativeAd:Do,getVideoAdsConfig:$r}))(na,o);export{ia as $,Gr as A,wn as B,bn as C,lt as D,Ji as E,$e as F,sn as G,_n as H,xn as I,Hn as J,Vn as K,zn as L,fe as M,N,uo as O,po as P,co as Q,Fn as R,Ce as S,Ai as T,Q as U,Rn as V,Tn as W,Gt as X,Ee as Y,r as Z,s as _,xe as a,ta as a0,Kt as b,b as c,a as d,Bn as e,Kr as f,_t as g,F as h,st as i,mi as j,Fi as k,h as l,$i as m,Mi as n,_i as o,qi as p,We as q,Qe as r,ii as s,It as t,ni as u,bt as v,Gi as w,Se as x,gt as y,Te as z};
1
+ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";const i={adRequested:()=>{},adAvailable:e=>{},adLoaded:e=>{},adNoBid:e=>{},adError:(e,t)=>{},adCollapse:()=>{},adRequestFailure:e=>{},adBadRequest:e=>{},adLoadedMediated:e=>{},adNoBidMediated:e=>{}},r={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"},o={publisherClassName:r.OMNI,fullWidthFormatClassName:"panorama",classesToRemoveOnRefresh:[]};function a(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 r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n}function s(e,t,n,i){return new(n||(n=Promise))(function(r,o){function a(e){try{d(i.next(e))}catch(e){o(e)}}function s(e){try{d(i.throw(e))}catch(e){o(e)}}function d(e){var t;e.done?r(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 d(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var l,c;"function"==typeof SuppressedError&&SuppressedError;var u=function(){if(c)return l;c=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)?s((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 r(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 o(e,t){try{return t in e}catch(e){return!1}}function a(e,t,i){var a={};return i.isMergeableObject(e)&&r(e).forEach(function(t){a[t]=n(e[t],i)}),r(t).forEach(function(r){(function(e,t){return o(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,r)||(o(e,r)&&i.isMergeableObject(t[r])?a[r]=function(e,t){if(!t.customMerge)return s;var n=t.customMerge(e);return"function"==typeof n?n:s}(r,i)(e[r],t[r],i):a[r]=n(t[r],i))}),a}function s(t,r,o){(o=o||{}).arrayMerge=o.arrayMerge||i,o.isMergeableObject=o.isMergeableObject||e,o.cloneUnlessOtherwiseSpecified=n;var s=Array.isArray(r);return s===Array.isArray(t)?s?o.arrayMerge(t,r,o):a(t,r,o):n(r,o)}return s.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,n){return s(e,n,t)},{})},l=s}(),p=d(u);const v=["placements","takeover","refreshConfig","editory"],g={adRequested:()=>{},adAvailable:e=>{},adLoaded:e=>{},adNoBid:e=>{},adError:(e,t)=>{},adCollapse:()=>{},adRequestFailure:e=>{},adBadRequest:e=>{},adLoadedMediated:e=>{},adNoBidMediated:e=>{}},h=(e,t)=>{const n="[Advertory LOG]: ";location.search.includes("ast_debug=true")&&(t?console.log(n,e,t):console.log(n,e))},m=(e,t)=>{console.warn("[Advertory WARN]: ",e)},y=e=>{(e=>{const{pageContext:t,pageOptions:n,placements:i,appearanceConfig:r}=null!=e?e:{};(null==t?void 0:t.publisher)||m("pageContext.publisher is required."),(null==t?void 0:t.countryCode)||m("pageContext.countryCode is required."),(null==t?void 0:t.pageType)||m("pageContext.pageType is required."),(null==t?void 0:t.deviceType)||m("pageContext.deviceType is required."),n||m("pageOptions is required."),i||m("placements is required."),(null==r?void 0:r.defaultThreshold)||m("appearanceConfig.defaultThreshold is required.")})(e),(e=>{var t,n,i,r;const o=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===(r=e.wallpaper)||void 0===r?void 0:r.enabled),property:"header",featureName:"wallpaper"}];for(const{flag:e,property:t,featureName:n}of a)e&&!(null==o?void 0:o[t])&&m(`pageSectionsSelectors.${t} is required when ${n} is enabled.`)})(e)},f=6;class w{set(e){y(e),this.config=e}modifyConfigProperties(e){if(!this.config)throw new Error("Config was accessed before it had been initialized.");const t={};for(const n of v){const i=e[n];void 0!==i&&(t[n]=i)}Object.assign(this.config,t),Object.hasOwn(e,"pageContext")&&void 0!==e.pageContext&&(this.config.pageContext=Object.assign(Object.assign({},this.config.pageContext),e.pageContext)),Object.hasOwn(e,"pageOptions")&&void 0!==e.pageOptions&&(this.config.pageOptions=Object.assign(Object.assign({},this.config.pageOptions),e.pageOptions)),Object.hasOwn(e,"tcf")&&void 0!==e.tcf&&(this.config.tcf=Object.assign(Object.assign({},this.config.tcf),e.tcf))}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=p(w.DEFAULT_SITE_HANDLERS,e)}}w.DEFAULT_SITE_HANDLERS={siteEvents:g,initNativeAd:()=>{}};const b=new w,x=b.modifyConfigProperties.bind(b);class E{initialize(){this.DATA=Object.assign({},E.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)}}E.INITIAL_DATA={wallpaper:{isAvailable:!1},horseshoe:{isAvailable:!1},initialClassNames:{},alertoryConfigKeywords:{}};const C=new E,I=864e5,A=(()=>{const e=e=>{const t=window.localStorage.getItem(e);if(!t)return null;try{return JSON.parse(t)}catch(e){return h("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=I)=>{const r={data:n,expirationTime:(new Date).getTime()+i};t(e,JSON.stringify(r))},getByTimestamp:(t,n=I)=>{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 h("Error with parsing localStorage data"),null}}}})(),S="glimrTags",T=["glwe_","glwet_"],k={geofenceTags:[],geoTags:[],weatherTags:[]},O=e=>new URLSearchParams(window.location.search).get(e),P="takeover",j="native_override_desc2",L=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 h("Advertising permission value obtained synchronously: ",e),Boolean(t)})();if(null!==n)return void t(n);let i=!1;const r=e=>{i||(h("Resolving advertising permission value obtained"),i=!0,t(e))},o=setTimeout(()=>{h("Advertising permission timed out, resolving with false"),r(!1)},3e3);window._tcf_.onTcfReady(()=>{h("On Tcf Ready called, waiting for permission"),clearTimeout(o)}),window._tcf_.getPermission("CMP:advertising",e=>{clearTimeout(o);const t=Number(e);h("Advertising permission value obtained asynchronously: ",e),r(Boolean(t))})}),N={NO:"no",SE:"se"},D="cmp:loaded";let M="undefined"!=typeof window?window._tcf_:void 0,_=!1;const R=(e,t,n)=>{const i=!!(null==e?void 0:e.enabled),r=(null==e?void 0:e.timeout)||3e3,o=O("bypass_tcf"),a=()=>{if(!(null==e?void 0:e.enabled))return!0;if(((e,t)=>e?!!t&&(h("TCF bypass param detected, returning consent: true"),!0):(h("TCF is not enabled, returning consent: true"),!0))(i,o))return!0;if(_)return null;if(!M)throw new Error("[Advertory]: getConsentSync method was called before the tcfManager was available.");const t=M.getConsentedToAllSync();return h(`TCF consented to all is: ${t}`),M.getConsentedToAllSync()};return{initConsentManager:()=>(null==e?void 0:e.enabled)?new Promise((e,t)=>{if(h("Getting TCF consent manager..."),window._tcf_)return h("TCF consent manager is already available"),M=window._tcf_,void e(M);h("TCF consent manager is not available");const n=()=>{h("CMP loaded, resolving consent manager..."),i&&clearTimeout(i),window._tcf_?(M=window._tcf_,e(M)):t(new Error("CMP loaded but window._tcf_ is not defined"))},i=setTimeout(()=>{document.removeEventListener(D,n),_=!0,t(new Error("Timeout waiting for CMP to load"))},r);h("Listening for CMP loaded event..."),document.addEventListener(D,n,{once:!0})}):Promise.resolve(null),getConsentSync:a,getConsentAsync:()=>s(void 0,void 0,void 0,function*(){if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return h(`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===N.SE,i=(null==e?void 0:e.advertisingCMPSignalEnabled)&&n===N.NO;if(t||i)return h("Schibsted Ad Choices is enabled, getting advertising permissions..."),yield L(e);if(!(null==e?void 0:e.enabled))return!0;const o=a();return null!==o?o:yield new Promise((e,t)=>{try{if(!M)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(()=>{h("TCF isConsentedToAll timed out, resolving with false"),n(!1)},r);M.onTcfReady(()=>{h("On Tcf Ready called, waiting for consent"),clearTimeout(i)}),M.isConsentedToAll(t=>{clearTimeout(i),e(t)})}catch(e){t(e)}})})}},F=(e,t,n,...i)=>s(void 0,[e,t,n,...i],void 0,function*(e,t,n,i="NOT SPECIFIED FEATURE"){if(!(null==e?void 0:e.schibstedConsentToPayEnabled))return h(`Schibsted Consent to Pay is not enabled, returning true for ${i}`),!0;if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return h(`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:r}=R(e,0,n);return(yield r())?(h(`Schibsted Ad Choices consent given according to TCF consent manager for ${i}`),!0):(h(`Schibsted Ad Choices consent not given according to TCF consent manager for ${i}`),!1)}),q=(...e)=>s(void 0,[...e],void 0,function*(e=b.get()){const{tcf:t,pageContext:{isMobileApp:n,countryCode:i}={}}=e;if(null==t?void 0:t.schibstedConsentToPayEnabled){return yield F(t,n,i,"glimr")}const{getConsentAsync:r}=R(t,0,i);return yield r()}),$=()=>s(void 0,void 0,void 0,function*(){const{glimr:e}=b.get();if(!(yield q())||!(null==e?void 0:e.enabled))return void h("No consent for glimr data fetching.");const t=yield(n=500,s(void 0,void 0,void 0,function*(){return yield Promise.race([s(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)=>{A.setWithTimestamp(S,{tags:e,tagMappings:t}),n(!0)})})}catch(e){h(`Error during getting glimr data: ${e}`)}else h("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=>T.some(t=>e.startsWith(t)),V=e=>e.startsWith("glgc_"),H=e=>e.startsWith("glci_"),z=e=>!U(e)&&!V(e),W=e=>e===N.NO?"no-sno":"se-generic",K=(e,t)=>s(void 0,void 0,void 0,function*(){const{addPublisherToGeo:n}=t||{},{glimr:i,pageContext:{countryCode:r}={}}=e,o=yield q(e);if(!(null==i?void 0:i.enabled)||!o)return h("No consent for getting glimr tags."),{};const a=W(r),s=G(e,Boolean(n));return{[`${a}-geo`]:s.geoTags,[`${a}-weather`]:s.weatherTags,[`${a}-geofence`]:s.geofenceTags}}),G=(e,t)=>{const n=J();if(!n)return k;const i=((e=[])=>e.filter(U))(n),r=((e=[])=>e.filter(V))(n),o=((e=[],t,n)=>{var i;const r=e.filter(z);if(n&&t){const{publisher:e}=null!==(i=t.pageContext)&&void 0!==i?i:{},n=B[e]||e;r.push(n)}return r})(n,e,t);return{geoTags:o,geofenceTags:r,weatherTags:i}},J=()=>{const e=A.getByTimestamp(S);return e&&"string"!=typeof e?null==e?void 0:e.tags:null},Q=()=>{var e;return((e=[])=>e.filter(H))(null!==(e=J())&&void 0!==e?e:[])},Y=()=>(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),X=()=>(window.relevantDigital||(window.relevantDigital={cmd:[]}),window.relevantDigital),Z=(e={},t)=>{const{prebid:{externalUidInAuctionEnabled:n,forwardGlimrTags:i=!1}={},pageContext:{countryCode:r}}=b.get(),o=[`${W(r)}-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?o:[]],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)}},ee="opaque",te=e=>s(void 0,void 0,void 0,function*(){if(e.type!==ee){if(!e.ok)throw new Error(e.statusText);return yield e.json()}}),ne={get:(e,...t)=>s(void 0,[e,...t],void 0,function*(e,t={}){var{timeout:n}=t,i=a(t,["timeout"]);if(n)return((e,t,n)=>s(void 0,void 0,void 0,function*(){const i=new AbortController,r=setTimeout(()=>i.abort(),n);try{const n=yield fetch(e,Object.assign(Object.assign({},t),{signal:i.signal}));return te(n)}finally{clearTimeout(r)}}))(e,i,n);const r=yield fetch(e,i);return te(r)}),post:(e,t,n)=>s(void 0,void 0,void 0,function*(){const i=JSON.stringify(n),r=yield fetch(e,{method:"POST",headers:t,body:i});if(!r.ok)throw new Error(r.statusText);return yield r.json()})},ie="advertory:ppids-cache",re={[N.SE]:`SCH${N.SE.toUpperCase()}-EnvHash`,[N.NO]:`SCH${N.NO.toUpperCase()}-EnvHash`},oe={[N.SE]:`SCH${N.SE.toUpperCase()}-UserHash`,[N.NO]:`SCH${N.NO.toUpperCase()}-UserHash`},ae={[N.SE]:`sch${N.SE}-envhash-v3`,[N.NO]:`sch${N.NO}-envhash-v3`},se={[N.SE]:`sch${N.SE}-userhash-v3`,[N.NO]:`sch${N.NO}-userhash-v3`},de={[N.SE]:`'sch${N.SE}-iosid-v3'`,[N.NO]:`'sch${N.NO}-iosid-v3'`},le={[N.SE]:`sch${N.SE}-androidid-v3`,[N.NO]:`sch${N.NO}-androidid-v3`},ce={[N.SE]:"sdrn:schibsted.com:user",[N.NO]:"sdrn:spid.no:user"};class ue{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 pe=new class{constructor(){this.ppid1=null,this.ppid2=null}processPPIDs(e){return s(this,arguments,void 0,function*(e,t=1e4){var n,i;const r=yield Promise.race([new Promise(e=>{setTimeout(()=>e({xandr:{ppId1:"",ppId2:""}}),t)}),e.instance.getAdvertisingIdentifiers()]);this.setPPIDs(null===(n=r.xandr)||void 0===n?void 0:n.ppId1,null===(i=r.xandr)||void 0===i?void 0:i.ppId2)})}getPPIDs(){var e,t;return null!==this.ppid1&&null!==this.ppid2||h("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:""}},ve=new class{constructor(){this.ppid1=null,this.ppid2=null,this.idfv=null,this.anId=null}processPPIDs(e,t){return s(this,void 0,void 0,function*(){var n,i,r,o,a,s,d,l,c,u,p;const v=A.get(ie),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===(r=g.anId)||void 0===r?void 0:r.plain),void this.setPPIDs(null!==(o=c.userId)&&void 0!==o?o:"",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||h("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 r in e){if((null===(n=e[r])||void 0===n?void 0:n.plain)!==(null===(i=t[r])||void 0===i?void 0:i.plain))return!0}return!1}cachePPIDs(e,t,n,i){const r=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}}:{});A.set(ie,r)}hashPPIDs(e,t){return s(this,void 0,void 0,function*(){try{const n=new Headers({"Content-Type":"application/json"});return yield ne.post(t,n,e)}catch(e){return h("Error with hashing PPIDs",e),null}})}getNewPPIDs(e,t){return s(this,arguments,void 0,function*({clientId:e,instance:t},n){const i=yield((e,t)=>s(void 0,void 0,void 0,function*(){const n=yield e.getUserId();return n?`${ce[t]}:${n}`:null}))(t,n),r=yield(o=t,s(void 0,void 0,void 0,function*(){const e=yield o.getEnvironmentId();return e?`sdrn:schibsted:environment:${e}`:null}));var o;const a=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"}},a?{idfv:{plain:a}}:{}),d?{anId:{plain:d}}:{})})}createHasherPayload({clientId:e,trackerType:t,trackerVersion:n,userId:i,environmentId:r}){return{clientId:e.plain,trackerType:t.plain,trackerVersion:n.plain,userId:i.plain,environmentId:r.plain}}},ge=e=>s(void 0,void 0,void 0,function*(){const{pulse:t,tcf:n,pageContext:{countryCode:i,isMobileApp:r}}=e;if(!(yield F(n,r,i,"setXandrPPIDs")))return;if(!t)return;(yield Promise.allSettled([pe.processPPIDs(t,null==n?void 0:n.timeout),ve.processPPIDs(t,i)])).forEach((e,t)=>{if("rejected"===e.status){h(`Cannot fetch PPIDs v${t+2}`,e.reason)}})}),he=e=>{const{ppid1:t,ppid2:n}=pe.getPPIDs(),{ppid1:i,ppid2:r,idfv:o,anId:a}=ve.getPPIDs();return{userIds:[{type:"extendedIDs",eids:(new ue).add(n,re[e]).add(t,oe[e]).add(r,ae[e]).add(i,se[e]).add(o,de[e]).add(a,le[e]).buildEids()}]}},me=()=>{const{ppid1:e,ppid2:t}=pe.getPPIDs();return{"aa-sch-schuserhash":e?"1":"0","aa-sch-schenvhash":t?"1":"0"}},ye=e=>{const{ppid1:t,ppid2:n}=pe.getPPIDs(),{ppid1:i,ppid2:r,idfv:o,anId:a}=ve.getPPIDs();if(!n)return{};return{userSync:{userIds:[{name:"pubProvidedId",params:{eids:(new ue).add(n,re[e]).add(t,oe[e]).add(r,ae[e]).add(i,se[e]).add(o,de[e]).add(a,le[e]).buildRyEids()}}]}}},fe=e=>{const{ppid1:t,ppid2:n}=pe.getPPIDs(),{ppid1:i,ppid2:r}=ve.getPPIDs(),o=(new ue).add(n,re[e]).add(t,oe[e]).add(r,ae[e]).add(i,se[e]);return`${o.buildNorstatPath()}?${o.buildNorstatQuery("alias").toString()}`},we=e=>{const{ppid1:t,ppid2:n}=pe.getPPIDs(),{ppid1:i,ppid2:r}=ve.getPPIDs();return(new ue).add(n,re[e]).add(t,oe[e]).add(r,ae[e]).add(i,se[e]).buildRyEids()},be=e=>s(void 0,void 0,void 0,function*(){const{ppid1:t,ppid2:n}=pe.getPPIDs(),{ppid1:i,ppid2:r}=ve.getPPIDs(),o=(new ue).add(n,re[e]).add(t,oe[e]).add(r,ae[e]).add(i,se[e]);return yield new Promise(e=>{e(o.buildVideoEids())})}),xe=()=>s(void 0,void 0,void 0,function*(){const{ppid1:e}=ve.getPPIDs();return e}),Ee=(e,...t)=>s(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 r=document.createElement("script");r.async=!0,r.src=e;const o=()=>{s(),n()},a=()=>{s(),i(new Error(`Failed to load ${e}`))},s=()=>{r.removeEventListener("load",o),r.removeEventListener("error",a),clearTimeout(d)};r.addEventListener("load",o),r.addEventListener("error",a);const d=setTimeout(()=>{s(),i(new Error(`Loading script timed out: ${e}`))},t);document.head.appendChild(r)}).catch(e=>{console.error(e)}))}),Ce={ABSOLUTE_FULLSCREEN:"ABSOLUTE_FULLSCREEN",ANY_FULLSCREEN:"ANY_FULLSCREEN",NINESIXTEEN:"NINESIXTEEN",FULLWIDTH:"FULLWIDTH",FULLSQUARE:"FULLSQUARE",TAKEOVER:"TAKEOVER",VELVET_TAKEOVER:"VELVET_TAKEOVER",WALLPAPER:"WALLPAPER",COLLAPSE:"COLLAPSE"},Ie={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},Se=e=>{const{banner:t,targetId:n}=e;return!(!t||(null==n?void 0:n.includes("takeover")))&&$e(e,Ce.ANY_FULLSCREEN)},Te=e=>{const{native:t}=e;return!!t},ke=e=>$e(e,Ce.FULLWIDTH),Oe=e=>{const{targetId:t}=e;return t.includes("takeover")||$e(e,Ce.TAKEOVER)},Pe=e=>$e(e,Ce.TAKEOVER),je=e=>$e(e,Ce.WALLPAPER),Le=e=>$e(e,Ce.COLLAPSE),Ne=e=>e.targetId.includes("sponsorstripe"),De=e=>{const t=document.querySelector(`#${e}`);return!!t&&"true"===t.dataset.isFinnBlinkPlacement},Me=e=>e.targetId.startsWith("panorama")||e.targetId.startsWith("modul"),_e=e=>e.targetId.startsWith("midboard"),Re=e=>e.targetId.includes("widescreen"),Fe=e=>e.width>=1260&&e.width<=1280,qe=e=>e.width>=1600&&e.width<=1620,$e=(e,t)=>{const n=Ie[t];if(!n)return!1;return!!n.find(t=>{var n,i;const r=(null===(n=e.banner)||void 0===n?void 0:n.width)||e.width,o=(null===(i=e.banner)||void 0===i?void 0:i.height)||e.height,a=t.width===r,s=!t.height||t.height===o;return a&&s})},Be="advertory-fullscreen-scroll",Ue="advertory-fullscreen-scroll-wrapper",Ve="fullscreen-scroll-in-screen",He="in-screen",ze=e=>e.includes("snoap.no"),We=e=>{var t,n,i,r,o;return!!(null===(o=null===(r=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===r?void 0:r.ads[1])||void 0===o?void 0:o.rtb)},Ke=(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()),r=n.substring(n.indexOf("{")+1,n.lastIndexOf("}")),o=i.map((t,n)=>`${t} = "${e[n]}"`);return new Function(...o,r).toString()},Ge=Ke([],()=>{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:r,clientHeight:o}=i,a=e/r,s=t/o;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=Ke([],()=>{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=[],Xe={},Ze=(e,t)=>{var n;const i=(null===(n=null==t?void 0:t.options)||void 0===n?void 0:n.fadingHeaderEnabled)||!1,r=new IntersectionObserver(e=>et(e,i),{}),o=nt(e);r.observe(e),i&&(Xe[o]=ot(e,null==t?void 0:t.options))},et=(e,t)=>{e.forEach(({target:e,isIntersecting:n})=>{const i=nt(e);n?(tt(i,n),it(e,i,t)):(tt(i,n),rt(e,i,t))})},tt=(e,t)=>{var n,i;const r=null===(n=document.getElementById(e))||void 0===n?void 0:n.querySelector("iframe");if(!r)return;const o=t?"showFullscreen":"hideFullscreen";null===(i=r.contentWindow)||void 0===i||i.postMessage(`advertory:${o}-${e}`,"*")},nt=e=>{var t;return null===(t=e.children[0])||void 0===t?void 0:t.id},it=(e,t,n)=>{e.classList.add(He),document.body.classList.add(Ve),window.dispatchEvent(new CustomEvent("advertory:fullscreenScrollInView")),Ye.includes(t)||Ye.push(t),n&&window.addEventListener("scroll",Xe[t],{passive:!0})},rt=(e,t,n)=>{Ye.includes(t)&&(n&&window.removeEventListener("scroll",Xe[t]),document.body.classList.remove(Ve),e.classList.remove(He),window.dispatchEvent(new CustomEvent("advertory:fullscreenScrollNotInView")))},ot=(e,t={fadingHeaderEnabled:!1,headerSelectors:[".js-masthead"],skyscraperSelectors:[".skyscraper_r"],headerZIndex:3})=>{const{headerSelectors:n=[".js-masthead"],skyscraperSelectors:i=[".skyscraper_r"],headerZIndex:r=3}=t,o=[],a=[];return n.forEach(e=>{var t;const n=null!==(t=document.querySelector(e))&&void 0!==t?t:document.querySelector("header");n&&o.push(n)}),i.forEach(e=>{const t=document.querySelector(e);t&&a.push(t)}),()=>{o.length&&at(e,o,r,0),a.length&&at(e,a,r,40)}},at=(e,t,n,i)=>{const r=e.offsetHeight,o=window.scrollY,a=e.getBoundingClientRect().top+o;t.forEach(e=>{const t=e.offsetHeight;let s;s=a>o?(a-o)/t-i:(o+t-(a+r))/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 st(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}st('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::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;text-transform:lowercase;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 dt="left",lt={no:{adText:"ANNONSE",adFrom:"ANNONSE FRA",adContent:"ANNONSØRINNHOLD",adContentFrom:"ANNONSØRINNHOLD FRA"},se:{adText:"ANNONS",adFrom:"ANNONS FRÅN",adContent:"EXTERN LÄNK",adContentFrom:"EXTERN LÄNK FRÅN"}};let ct=null;const ut=(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=`(${Ge})()`,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)),We(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},pt=()=>{ct=null;const e=window.visualViewport,t=e?e.height:window.innerHeight,n=e?e.width:window.innerWidth,i=e?e.offsetLeft:0,r=document.documentElement;r.style.setProperty("--advertory-fullscreen-scroll-vh",`${t}px`),r.style.setProperty("--advertory-fullscreen-scroll-vw",`${n}px`),r.style.setProperty("--advertory-fullscreen-scroll-left",`${i}px`)},vt=()=>{ct||(ct=window.requestAnimationFrame(pt))},gt=(e,t)=>{var n,i,r,o;const{pageContext:{countryCode:a,deviceType:s}}=b.get(),{targetId:d}=e,l=null==t?void 0:t.options;document.documentElement.style.setProperty("--advertory-ios-safe-area-top-fix",null!==(n=null==l?void 0:l.iosSafeAreaTopFix)&&void 0!==n?n:"0px"),((e,t)=>{var n;const{articlesContainerWidth:i=1302,backgroundColor:r="#fff",foregroundColor:o="#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 ${r} 0px,\n ${r} calc(50% - ${l}px),\n ${o} calc(50% - ${l}px),\n ${o} calc(50% + ${l}px),\n ${r} calc(50% + ${l}px),\n ${r} 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==l?void 0:l.overlayStyles)&&void 0!==i?i:{},s);const c=document.getElementById(d),u=null==c?void 0:c.parentElement;if(!c||!u)return;Ze(u,t),c.className=Be,Ze(u,t),c.className="advertory-fullscreen-scroll";const p=$e(e,Ce.ABSOLUTE_FULLSCREEN)?"absolute":"fixed";c.style.position=p,u.className=Ue,u.dataset.showTagSubscribeId=d,c.setAttribute("data-ad-label",lt[a].adText),(null==l?void 0:l.cogwheelPosition)===dt&&(c.dataset.moveCogwheelToTheLeft="true"),vt(),window.addEventListener("resize",vt),null===(r=window.visualViewport)||void 0===r||r.addEventListener("resize",vt),null===(o=window.visualViewport)||void 0===o||o.addEventListener("scroll",vt)},ht=e=>{if(!(null==e?void 0:e.classList.contains(Be)))return;e.classList.remove(Be),e.removeAttribute("style"),e.removeAttribute("data-ad-label");const t=e.parentElement;(null==t?void 0:t.classList.contains(Ue))&&(t.classList.remove(Ue),t.classList.remove(He))};var mt=Object.freeze({__proto__:null,createFullscreenScrollAd:gt,modifyFullscreenScrollAd:({targetId:e})=>{const t=(e=>{var t;const{requests:n}=window.apntag,i=We(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=We(e)?1:0,r=null==n?void 0:n.tags[e].adResponse.ads[i].rtb;r&&(r.banner.content=t)})(e,ut(t,e))},undoFullscreenScrollContainer:ht});const yt=e=>{var t;!document.querySelector(`#gdprAdTransparencyCogWheelButton-${e}`)&&(null===(t=window.gdpr)||void 0===t?void 0:t.setupButton)&&window.gdpr.setupButton(e)},ft=(e,t,n)=>{var i,r,o,a;const s=document.createElement("div");s.id=`${e}-button`,t.appendChild(s);(null===(r=null===(i=window.apntag.requests)||void 0===i?void 0:i.tags[e])||void 0===r?void 0:r.adResponse)||(null!==(o=(a=window.apntag).requests)&&void 0!==o||(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",bt="disable-cogwheel",xt=()=>null!==O("disable_prebid"),Et="0123456789abcdefghijklmnopqrstuvwxyz",Ct=(e=6)=>{if(e<=0)return"";let t="";for(let n=0;n<e;n++){t+=Et[Math.floor(36*Math.random())]}return t},It=(e,t)=>{let n=null;return(...i)=>{null===n&&(e(...i),n=setTimeout(()=>{n=null},t))}},At=e=>{window.apntag.anq.push(e)},St=new Promise(e=>{"undefined"!=typeof document&&document.prerendering?document.addEventListener("prerenderingchange",()=>e()):e()}),Tt=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})}),kt=(e,t,n)=>s(void 0,void 0,void 0,function*(){yield St,yield Tt;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)}),Ot=()=>s(void 0,void 0,void 0,function*(){const{prebid:e,tcf:t,pageContext:{countryCode:n,isMobileApp:i,deviceType:r},fullscreenScroll:o,appearanceConfig:a,placements:s}=b.get();if(!(null==e?void 0:e.enabled))return;const{initNativeAd:d}=b.getHandlers(),{getConsentAsync:l}=R(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 r=Y(),{prebid:{relevantCallbackTimeout:o}={}}=b.get(),a="relevantCb"===i&&o?o:n[i].timeout,s=setTimeout(()=>{!n[i].done&&!e&&(console.warn(`Doing failsafe loadTags() call after waiting too long for '${i}'`),e=!0,r.loadTags&&r.loadTags())},a);t.push(s)},cleanup:()=>{t.forEach(e=>clearTimeout(e)),t=[],e=!1,n.relevantCb.done=!1,n.auctionCb.done=!1}}})(),p=Y(),v=(()=>{const{requests:{user:e={userIds:[]},keywords:t={}}={}}=Y();return{user:e,keywords:t}})();u.failsafeOnTimeout("relevantCb");const{user:{externalUid:g=""}={},keywords:m}=v;(()=>{const e=X();return e.cmd||(e.cmd=[]),e.cmd})().push(()=>{h("prebid relevantYieldQueue callback fired - RY took over");if(u.getCancel()||!p.loadTags)return h("core loadTags() call was cancelled",{cancel:u.getCancel(),apnTagLoadTags:!p.loadTags,condition:"or"}),void u.cleanup();const t=X();u.events.relevantCb.done=!0,u.failsafeOnTimeout("auctionCb");const l=c?{gdpr:{cmpApi:"iab",timeout:8e3}}:{cmpApi:"none"};h("prebid consentManagement",l),t.addPrebidConfig(Object.assign(Object.assign({consentManagement:l,enableSendAllBids:!1},ye(n)),Z(m,g))),h("core add prebid config",Object.assign(Object.assign({consentManagement:l,enableSendAllBids:!1},ye(n)),Z(m,g))),t.loadPrebid({configId:e.configId,manageAdserver:!1,collapseEmptyDivs:!1,collapseBeforeAdFetch:!1,noGpt:!0,noSlotReload:!0,loadUnknownSlots:!0,apntagCalls:{showTag:()=>{},loadTags:e=>{h("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 v=p.id,g=document.getElementById(v);if(!g)return;const m=null===(t=null==s?void 0:s[r])||void 0===t?void 0:t.find(e=>e.targetId===v),y=null!==(d=null!==(n=null==m?void 0:m.requestThreshold)&&void 0!==n?n:null==a?void 0:a.defaultThreshold[r])&&void 0!==d?d:0,f=Object.assign(Object.assign({},u),{targetId:v,banner:!0});h("prebid directRenderFn ad info",{targetId:v,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}),kt(g,y,()=>{var e;const t=c(l),n=Se(f);if(h("prebid directRenderFn isFullscreenScrollAd",{targetId:v,isFullscreen:n,width:null==u?void 0:u.width,height:null==u?void 0:u.height}),n)h("prebid directRenderFn: creating fullscreen scroll container",{targetId:v}),gt(f,o),(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&&g.style.setProperty("--advertory-political-box-offset","30px");else{h("prebid directRenderFn: NOT fullscreen scroll - undoing container",{targetId:v}),ht(g),null===(e=null==g?void 0:g.parentElement)||void 0===e||e.classList.add("advertory-direct-render");const n=t.getAttribute("width");n&&(g.style.width=`${n}px`)}g.classList.add(wt),(null==u?void 0:u.creativeId)&&ft(v,g,Number(null==u?void 0:u.creativeId))})}}),h("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:r,bid:o}=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:r,targetId:s},b.get()),null==d||d.postMessage(JSON.stringify({message:"Prebid Response",ad:"\x3c!-- nothing --\x3e",adId:o.adId}),"*")},jt=/_\d+$/,Lt=e=>e.replace(jt,"");let Nt="";const Dt=new Map,Mt=e=>{const{pageSetup:{tag:t}={}}=b.get();return(null==t?void 0:t.includeCountingKeywordInTags)?(Nt!==window.location.pathname&&(Dt.clear(),Nt=window.location.pathname),e.map(e=>{var t;const n=Lt(e.invCode),i=null!==(t=Dt.get(n))&&void 0!==t?t:0;return e.keywords=Object.assign({},e.keywords),e.keywords[`${(()=>{const{pageContext:{countryCode:e,publisher:t}}=b.get();return`${e}-${t}`})()}-count`]=i,Dt.set(n,i+1),e})):e},_t=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},Rt="advertory-wallpaper-background",Ft="advertory-with-horseshoe",qt=()=>{const e=document.querySelector(`.${Rt}`);e&&e.remove()},$t=e=>{const t=e.getBoundingClientRect().top;requestAnimationFrame(()=>(e=>{if(!document.body)return;const t=document.querySelector(`.${Rt}`);t&&t.style.setProperty("top",`${e}px`)})(t+15))},Bt=/^wallpaper:url:(http[s]?:\/\/)?[^\s(["<,>]*\.[^\s[",><]*/,Ut=e=>Bt.test(e),Vt=e=>e.startsWith("wallpaper:color:"),Ht=e=>{const t=document.querySelector(`.${Rt}`);t&&(t.style.backgroundImage=`url(${e})`)},zt=e=>{const t=document.querySelector(`.${Rt}`);t&&(t.style.backgroundColor=e)};var Wt=Object.freeze({__proto__:null,adjustAdToHorseshoe:e=>{var t;const n=document.querySelector(`#${e}`);n&&(null===(t=n.parentElement)||void 0===t||t.classList.add(Ft),n.classList.add(Ft))},initWallpaperAd:(e,t)=>{if(!t)return;const{options:{wallpaperAnchorSelector:n}={}}=t;(()=>{qt();const e=document.createElement("div");e.classList.add(Rt),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&&($t(n),window.addEventListener("scroll",()=>$t(n)))})(n),e()},isShortWallpaperColorMessage:Vt,isShortWallpaperUrlMessage:Ut,removeWallpaperBackground:qt,setWallpaperBackgroundColor:zt,setWallpaperBackgroundImage:Ht});const Kt=e=>{if("0"===O("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")&&qt())},Gt=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"))},Jt=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`)},Qt=e=>{const t=e.parentElement;if(!e||!t)return;const{container:n,wrapper:i}=(e=>{const t=C.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},Yt=()=>{qt();document.querySelectorAll('[data-advertory-ad-rendered="true"]').forEach(e=>{Kt(e.id),Qt(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=_t(e.id)}),At(()=>window.apntag.clearRequest())},Xt="mobile",Zt="tablet",en="desktop",tn="web_desktop",nn="web_phone",rn="wde",on="wph",an="noGroupedPlacements",sn=e=>{const t=e.replace(/[0-9]/g,"");return"_"===t.slice(-1)?t.substring(0,t.length-1):t},dn=e=>{if(!(null==e?void 0:e.minViewWidth))return!0;return window.innerWidth>=e.minViewWidth},ln=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:r}}=b.get(),o=((e,t)=>{var n;const i=null!==(n=e[t])&&void 0!==n?n:[];return t===Zt&&0===i.length?e[en]:i})(n,r),a=o.filter(dn),s=e?document.querySelector(e):document;if(!s)return[];const d=a.reduce((e,t)=>{const n=sn(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)),o=(null==i?void 0:i.queryByDataDeviceAttribute)?`div[id^="${e}"][data-device=${r}], div[id^="${e}"][data-device=all]`:`div[id^="${e}"]:not([data-disabled="true"])`,d=s.querySelectorAll(o),l=Array.from(d).filter(({id:e})=>e.match(t)).map((e,t)=>{var i;const r=cn(e,t,n),o=r.finnBlink&&!r.finnBlink.renderOnlyWithAdBlock,a=o&&(null===(i=r.finnBlink)||void 0===i?void 0:i.loadOnlyFinnBlink),s=`${e.id}-${Ct(6)}`;return e.id=s,e.setAttribute("data-advertory-ad-rendered","true"),o&&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&&C.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({},r),{targetId:s})});return Mt(l)});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)},cn=(e,t,n)=>{const i=n[t],r=n[n.length-1],o=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==r?void 0:r.targetId)?r:o||r},un=e=>{const{queryConfig:{placementBatches:t}={},pageContext:{deviceType:n}}=b.get(),i=(null==t?void 0:t[n])||{},r=Object.values(i).flat(),o=(e=>{const t={};return e.forEach(e=>{const n=_t(e.targetId);e.isBackfill&&(t[n]=[e])}),t})(e),a=((e,t)=>{const n={};for(const[i,r]of Object.entries(t))n[i]=e.filter(e=>r.includes(_t(e.targetId)));return n})(e,i),s=Object.keys(o),d=((e,t)=>e.filter(e=>!t.has(_t(e.targetId))))(e,new Set([...s,...r]));return Object.assign(Object.assign(Object.assign({},a),o),{[an]:d})},pn=(e,t,n)=>{const i=document.getElementById(`div_utif_${e}`);if(!i)return;const{apntag:r}=window,[o,a]=t;if(!i.dataset.lockedsize&&a&&o)i.style.width=`${o}px`,i.style.height=`${a}px`,n&&(r.resizeAd(i.id,[o,a]),i.dataset.lockedsize="true",i.dataset.lockedwidth=o.toString(),i.dataset.lockedheight=a.toString());else if(null==i?void 0:i.dataset.lockedsize){const{lockedwidth:e,lockedheight:t}=i.dataset;e&&t&&r.resizeAd(i.id,[e,t])}},vn=["netboard","board"];class gn{constructor(e,t){this.identityFacade=e,this.tracker=t}buildUrl(e,t){var n,i;const{editionName:r}=e,o=(()=>{const e=window.location.href;return new URL(e).searchParams.get("dre_override_inv_code")||""})(),a=JSON.stringify(null!==(i=null===(n=window.advertory)||void 0===n?void 0:n.renderedDrEditionAds)&&void 0!==i?i:[]),s=new URL("https://dr-edition-teaser-server.inventory.schibsted.io/editions"),{envId:d,spid:l}=t;return s.searchParams.append("editionName",r),o&&s.searchParams.append("urlData",o),a&&s.searchParams.append("excludedItems",a),l&&s.searchParams.append("spid",l),d&&s.searchParams.append("envid",d),s.toString()}fetchData(e){return s(this,void 0,void 0,function*(){var t,n,i;const r=yield this.identityFacade.getIdentityUser(),o=null!==(i=yield null===(n=null===(t=this.tracker)||void 0===t?void 0:t.getEnvironmentId)||void 0===n?void 0:n.call(t))&&void 0!==i?i:"",a=(null==r?void 0:r.userId)?String(r.userId):"",s=this.buildUrl(e,{envId:o,spid:a});try{h("Starting fetching DrEdition ad from URL:",s);const e=yield ne.get(s);return h("Fetch operation completed successfully."),e}catch(e){h("Error during fetch operation:",e)}return null})}}class hn{getDrEditionUTMParams(e,t){var n;const{title:i="",clientName:r,creativeId:o}=null!==(n=null==e?void 0:e.pulseData)&&void 0!==n?n:{},{editionName:a}=t,s=i.replace(/<[^>]*>/g,"");return Object.assign({utm_source:"vgfront",utm_content:a,utm_campaign:r,utm_medium:s},o&&{utm_id:`df-${o}`})}getUrlSearchParams(e,t,n){if(!e)return"";const i=this.getDrEditionUTMParams(t,n),r=new URLSearchParams(decodeURIComponent(e.search)),o=new URLSearchParams(e.search);return Object.entries(i).forEach(([e,t])=>{r.has(e)||o.set(e,null!=t?t:"")}),o.toString().replace(/\+/g,"%20")}getUrlWithParams(e,t){var n;const i=null===(n=null==e?void 0:e.pulseData)||void 0===n?void 0:n.url;if(!i)return"";const r=this.getDrEditionUTMParams(e,t),o=new URL(i);return Object.entries(r).forEach(([e,t])=>{o.searchParams.has(e)||o.searchParams.set(e,null!=t?t:"")}),o.toString()}handleVideo(e,t){return s(this,void 0,void 0,function*(){const{id:n,autoplay:i,mute:r,videoLoop:o,vendor:a}=t.videoConfiguration;e.classList.add("vgtv-video-container"),Object.assign(e.dataset,{vgtvVideoId:n,vgtvVendor:a,vgtvAutoplay:i,vgtvMuted:r,vgtvLoop:!!o,vgtvNa:!0,vgtvRecommended:!1,vgtvPulseProvider:"vg",vgtvPulseProductTag:"partnerstudio"})})}getPulseObjectId(){return"sdrn:vg:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:vg:frontpage:front"}getTags(e){var t;let n;if(n=e instanceof HTMLAnchorElement?e.href:null===(t=null==e?void 0:e.querySelector("a"))||void 0===t?void 0:t.href,!n)return[];const{host:i,pathname:r}=new URL(n);if(!i.includes("www.vg.no")&&!r.includes("annonsorinnhold"))return[n];const o=r.split("/");return o.length?[...o.filter(Boolean).slice(1).map(e=>e),n]:[n]}}const mn=e=>{const t=e.parentElement;t?t.classList.remove("dr-edition-lock-height"):h("Dr. Edition container does not have a parent element, cannot remove height lock.")};class yn{constructor(e,t,n,i){this.drEditionService=e,this.rendererManager=t,this.videoManager=n,this.pulseManager=i,this.drEditionAds=[]}fetchAndRenderAd(e,t){return s(this,void 0,void 0,function*(){var n,i;const{drEditionConfig:{options:{containerSelector:r}},renderAsBackfill:o=!1}=t,a=e.querySelector(r);if(!a)return void h(`Container with selector "${r}" not found.`);const s=yield this.drEditionService.fetchData(t);return(null==s?void 0:s.itemId)||o?!(null==s?void 0:s.itemId)&&o?(h("No Dr. Edition ads available to render. Collapsing whole placement."),Kt(e.id),void mn(a)):((null==s?void 0:s.itemId)&&o&&(h("Dr. Edition ad available to render as a Xandr backfill."),Gt(e.id)),void(s?(s.css&&((e,t)=>{const n=document.createElement("link");n.rel="preload",n.href=e,n.as=t,document.head.appendChild(n)})(s.css,"style"),yield this.rendererManager.render(a,s,t),yield null===(n=this.videoManager)||void 0===n?void 0:n.handle(s,t),mn(a),this.drEditionAds.push(s),window.advertory=window.advertory||{},window.advertory.renderedDrEditionAds=window.advertory.renderedDrEditionAds||[],window.advertory.renderedDrEditionAds.push(s.itemId),this.observeAdView(e,s,t),null===(i=e.querySelector("a"))||void 0===i||i.addEventListener("pointerup",()=>null)):mn(a))):(h("No Dr. Edition ads available to render. Hiding Dr. Edition and rendering Xandr backfill."),this.hideDrEdition(a),this.showBackfill(e),void mn(a))})}observeAdView(e,t,n){this.observeCarousel(e,t,n)||((e,t,n={threshold:.5})=>{new IntersectionObserver(([e],n)=>{e.isIntersecting&&(t(),n.disconnect())},n).observe(e)})(e,()=>this.pulseManager.trackContentView(e,t,n),{threshold:.5})}showBackfill(e){var t;const n=e.querySelector(".fallback");if(!n)return;n.style.display="block";const i=null!==(t=n.dataset.fallbackTargetId)&&void 0!==t?t:"";Gt(i)}hideDrEdition(e){e.style.display="none"}observeCarousel(e,t,n){const i=e.querySelector(".dr-edition-slider");if(!i)return!1;let r=null;const o=new IntersectionObserver(e=>{e.forEach(e=>{e.isIntersecting&&e.intersectionRatio>=.9&&(r&&clearTimeout(r),r=setTimeout(()=>{e.target.onclick=()=>this.pulseManager.trackContentClick(e.target,t,n),this.pulseManager.trackContentView(e.target,t,n)},500)),[...i.children].forEach(e=>{o.observe(e)})})},{threshold:[.9]});return[...i.children].forEach(e=>{o.observe(e)}),!0}}const fn=()=>{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"},wn=e=>e===Xt,bn=853,xn=767;class En{constructor(e,t){this.newsroomStrategy=e,this.pulseManager=t}render(e,t,n){return s(this,void 0,void 0,function*(){if(!(null==t?void 0:t.itemId))return;const{getConsentAsync:i}=R(n.tcf,n.isMobileApp,n.country),r=yield i(),o=wn(n.device)?t.mobileHTML:t.desktopHTML,a=r?o:o.replace(/<img [^>]*class="tracking-pixel"[^>]*>/g,"");e.innerHTML=a,e.querySelectorAll("a").forEach(e=>{var i,r,o;e.search=null!==(o=null===(r=(i=this.newsroomStrategy).getUrlSearchParams)||void 0===r?void 0:r.call(i,e,t,n))&&void 0!==o?o:"",e.onclick=()=>this.pulseManager.trackContentClick(e,t,n)})})}}class Cn{constructor(e){this.strategy=e}handle(e,t){return s(this,void 0,void 0,function*(){const{videoConfiguration:{id:n,preview:i}={}}=e;(n||i)&&(yield this.importScript(t),yield this.createVideoElement(e,t))})}importScript(e){return s(this,void 0,void 0,function*(){const t=e.drEditionConfig.options.videoScriptUrl,n=document.querySelector(`script[src="${t}"]`);if(t&&!window.autoplayQueue&&!n)try{yield Ee(t)}catch(e){h("Error! Failed to prepare SVP player script for Dr. Edition!",e)}})}createVideoElement(e,t){return s(this,void 0,void 0,function*(){const n=document.createElement("div"),{node:i}=e.videoConfiguration,r=[...document.querySelectorAll(`#${i}`)||[]].find(e=>0===e.children.length);if(this.handlePreviewVideo(e,t))return;this.strategy.handleVideo(n,e),null==r||r.appendChild(n),window.autoplayQueue=window.autoplayQueue||[],window.autoplayQueue.push(e=>{e.parse()});const o=null==r?void 0:r.parentNode;if(!o)return;const a=o.closest("a");o.addEventListener("click",e=>{const t=e.target.closest("a");a!==t&&t||(e.stopPropagation(),e.preventDefault())})})}handlePreviewVideo(e,t){var n,i,r;const{preview:{url:o,thumbnail:a}}=null!==(n=e.videoConfiguration)&&void 0!==n?n:{};if(!o)return!1;const s=document.querySelector(".dr-edition-preview .preview-video");return!!s&&(s.setAttribute("src",o),s.setAttribute("playsinline",""),!(!s||!a)&&(null===(r=(i=t.drEditionConfig.options).addPreviewVideo)||void 0===r||r.call(i,s),!0))}}class In{constructor(e,t){this.pulse=e,this.newsroomStrategy=t}getEventInput(e,t,n,i){return{}}mapPageType(e){return{front:"Frontpage",article:"Article",section:"Article",collection:"Article",other:"Article"}[e||"front"]||"Frontpage"}getArticleId(){return location.pathname.split("/").slice(-2,-1).pop()||""}getTeaserElementText(e,t){if(!e)return"";const n=e.querySelector({title:".dr-edition-title",subtitle:".dr-edition-subtitle",image:"img.teaser-main-image"}[t]);if(!n)return"";if("image"===t)return n.src||"";const i=null==n?void 0:n.textContent;return i?i.trim():""}getEventTarget(e,t){const{itemId:n,pulseData:{url:i}={}}=t,r=this.getTeaserElementText(e,"title");return{id:n,name:this.normalizePlacementTitle(null!=r?r:""),type:"Page",url:i}}normalizePlacementTitle(e){return e.replace(/<[^>]+>/gi,"").replace(/[^a-z0-9æøå\s_-]/gi,"")}trackContentView(e,t,n){return s(this,void 0,void 0,function*(){var i,r,o,a,s,d,l,c;const u=new CustomEvent("advertory:partnerstudioAdImpression",{detail:{ad:n.editionName}});if(window.dispatchEvent(u),!this.pulse)return;const p=this.getEventInput(e,t,n,"view");(null===(i=this.pulse)||void 0===i?void 0:i.trackLegacyViewUIElement)?null===(o=null===(r=this.pulse)||void 0===r?void 0:r.trackLegacyViewUIElement)||void 0===o||o.call(r,p):(null===(a=this.pulse)||void 0===a?void 0:a.trackViewUIElement)?null===(d=null===(s=this.pulse)||void 0===s?void 0:s.trackViewUIElement)||void 0===d||d.call(s,p):null===(c=null===(l=this.pulse)||void 0===l?void 0:l.trackElementView)||void 0===c||c.call(l,p)})}trackContentClick(e,t,n){return s(this,void 0,void 0,function*(){var i,r,o,a,s,d;if(!this.pulse)return;const l=this.getEventInput(e,t,n,"click");this.pulse.trackLegacyClickUIElement?null===(r=(i=this.pulse).trackLegacyClickUIElement)||void 0===r||r.call(i,l):this.pulse.trackClickUIElement?null===(a=(o=this.pulse).trackClickUIElement)||void 0===a||a.call(o,l):null===(d=(s=this.pulse).trackElementClick)||void 0===d||d.call(s,l)})}}class An extends In{constructor(e,t,n){super(e,t),this.pulse=e,this.newsroomStrategy=t,this.pageType=n}getEventBaseData(e,t,n){var i,r,o;const{pulseData:{title:a,clientName:s="",creativeId:d,url:l=""}={}}=t,{columnName:c,primaryPosition:u}=n,{publicUrl:p,urlPath:v}=null!==(o=null===(r=null===(i=this.newsroomStrategy)||void 0===i?void 0:i.transformUrl)||void 0===r?void 0:r.call(i,l))&&void 0!==o?o:{publicUrl:l,urlPath:l?new URL(l).pathname:""};return{"@type":"UIElement",elementType:"Teaser",layout:{elementSize:"large",imageUrl:"",name:"large"},name:a,placement:{columnName:c,primaryPosition:u},tags:[s,a,p,v].filter(Boolean),"spt:custom":{is_sponsored:!0,sponsor:s,"spt:creativeId":d,pageTitle:a,publicUrl:p,urlPath:v},url:location.origin}}getEventInput(e,t,n){return{object:this.getEventBaseData(e,t,n),target:this.getEventTarget(e,t)}}}class Sn extends In{constructor(e,t,n){super(e,t),this.pulse=e,this.newsroomStrategy=t,this.pageType=n}getEventBaseData(e,t,n){var i,r,o,a,s,d;const{itemId:l,pulseData:{clientName:c,creativeId:u}={}}=t,p=n.editionName,v=this.mapPageType(this.pageType),g=null===(i=this.newsroomStrategy)||void 0===i?void 0:i.getPulsePageId(this.pageType||"front",this.getArticleId());return{"@id":null!==(a=null===(o=null===(r=this.newsroomStrategy)||void 0===r?void 0:r.getPulseObjectId)||void 0===o?void 0:o.call(r))&&void 0!==a?a:p,"@type":"UIElement",position:p,elementType:"Article",custom:{customer:c,creativeId:null!=u?u:l},page:{"@id":null!=g?g:p,"@type":v,url:location.origin},tags:null===(d=null===(s=this.newsroomStrategy)||void 0===s?void 0:s.getTags)||void 0===d?void 0:d.call(s,e)}}getEventInput(e,t,n,i){return{object:this.getEventBaseData(e,t,n),partnerstudio:this.getEventPartnerstudioData(e,t,n,i),target:this.getEventTarget(e,t),provider:this.getProviderData()}}getEventPartnerstudioData(e,t,n,i){var r,o,a,s;const{pulseData:{algorithm:d="sov",clientName:l,creativeId:c,editionId:u,itemId:p,url:v,probability:g}={}}=t,h=Math.floor(Date.now()/1e3),m=this.getTeaserElementText(e,"title"),y=this.getTeaserElementText(e,"subtitle"),f=this.getTeaserElementText(e,"image"),w=null!==(s=null!==(a=null===(o=null===(r=this.newsroomStrategy)||void 0===r?void 0:r.getUrlWithParams)||void 0===o?void 0:o.call(r,t,n))&&void 0!==a?a:v)&&void 0!==s?s:"";return{algorithm:d,clientName:l,probability:g,creativeId:c,device:n.device,editionId:u,itemId:p,link:w,placement:n.editionName,subtitle:y,time:h,title:m,type:i,imageUrl:f,frontId:86,tracking_type:"ad",xandrAdLoaded:!1}}getProviderData(){return{productTag:"partnerstudio"}}}const Tn={FRONT:"front"},kn=e=>s(void 0,void 0,void 0,function*(){var t,n;return(null===(t=null===window||void 0===window?void 0:window.SVP)||void 0===t?void 0:t.Player)?new window.SVP.Player(e):((()=>{const e="svp-player-sdk",t=document.querySelector(e),n=Array.from(document.querySelectorAll('script[src^="https://cdn.stream.schibsted.media/player"]'));if(t||n.length>0)return;const i=document.createElement("script");i.id=e,i.src="https://cdn.stream.schibsted.media/player/3.78.1/player.min.js",i.async=!0;try{i.src=i.src.replace("player.min","player.next.min")}catch(e){console.error("Failed to set player.next.min source:",e)}document.head.insertBefore(i,document.head.firstChild)})(),(null===(n=window.SVP)||void 0===n?void 0:n.isLoaded)?new window.SVP.Player(e):yield new Promise(t=>{window.addEventListener("onSvpPlayerReady",()=>t(new window.SVP.Player(e)))}))}),On={ContentMutePlugin:e=>{window.SVP.Player.Plugins.register({getName:()=>"ContentMutePlugin",initialize(){},setup(){const t=this.player.config.get("mute");this.container=e||this.player.getContainer(),this.muted=t,t&&this.listenToOnce(this.player,"ready",this.renderButtonElement,this)},getButtonElement(){const e=document.createElement("button");e.className="player-plugin-content-mute";const t=document.createElement("span");return t.className="volume-button-icon",e.appendChild(t),e},renderButtonElement(){this.buttonElement=this.getButtonElement(),this.buttonElement.addEventListener("click",this.onButtonClick.bind(this)),this.container.appendChild(this.buttonElement),this.isVideo()||(this.buttonElement.style.display="none"),this.getJWPlayer()&&this.getJWPlayer().on("mute",this.onMuteChange,this)},onButtonClick(){this.getJWPlayer()&&(this.container.classList.add("has-interacted"),this.muted=!this.muted,this.getJWPlayer().setMute(this.muted))},onMuteChange(e){this.muted=e.mute,this.muted?this.buttonElement.classList.remove("content-video-volume-on"):this.buttonElement.classList.add("content-video-volume-on")},isVideo(){return"video"===this.player.getRawAsset().assetType},getJWPlayer(){return this.player.model.player}})},IntegrationMenu:()=>{window.SVP.Player.Plugins.register({getName:()=>"IntegrationMenu",setup(){return s(this,void 0,void 0,function*(){yield import("./styles-FpD9p-6W.js")})}})}};class Pn{handleVideo(e,t){return s(this,arguments,void 0,function*(e,{videoConfiguration:{id:t,node:n,autoplay:i,mute:r,vendor:o}}){yield s(void 0,void 0,void 0,function*(){return yield new Promise(e=>{var t;Boolean(null===(t=window.SVP)||void 0===t?void 0:t.Player)?e(!0):window.addEventListener("onSvpPlayerReady",()=>e(!0))})});const a=["ContentMutePlugin"],d=this.createPlayerOverlay(e);var l,c;c=d,null==(l=a)||l.forEach(e=>{On[e](c)});const u={id:t,node:n,autoplay:i,mute:r,vendor:o,autopause:"viewable",maxBitrate:600,pulse:{provider:"e24"},recommended:{autoplay:!1,next:{countdown:10}},skin:{name:"e24-default",url:""}},p=yield kn(u);p.once("assetReady",()=>{((e,t)=>{null==t||t.forEach(t=>{const n=window.SVP.Player.Plugins.get(t);e.addPlugin(new n)})})(p,a)}),p.once("ready",()=>{const t=e;new MutationObserver(e=>{e.forEach(({type:e,attributeName:n})=>{"attributes"===e&&"class"===n&&(t.classList.contains("jw-state-playing")?d.classList.add("is-playing"):d.classList.remove("is-playing"),t.classList.contains("jw-flag-user-inactive")?d.classList.add("is-inactive"):d.classList.remove("is-inactive"))})}).observe(t,{attributes:!0,attributeFilter:["class"]})}),p.once("PulseStats:ready",()=>s(this,void 0,void 0,function*(){const e=yield p.getPlugin("PulseStats").getTracker();null==e||e.update({provider:{id:"e24",productTag:"partnerstudio"}})}))})}getPulseObjectId(){return"sdrn:e24:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(e,t){return e===Tn.FRONT?"sdrn:e24:frontpage:front":`sdrn:e24:article:${t}`}getTags(e){var t;let n;if(n=e instanceof HTMLAnchorElement?e.href:null===(t=null==e?void 0:e.querySelector("a"))||void 0===t?void 0:t.href,!n)return[];if(!n.includes("https://e24.no/annonsorinnhold/"))return[n];const{pathname:i}=new URL(n),r=i.split("/").filter(Boolean);return r.length?[...r.slice(1),n]:[n]}createPlayerOverlay(e){const t=document.createElement("div");t.classList.add("cm-custom-video-overlay"),e.parentElement&&(t.innerHTML=e.parentElement.innerHTML,e.parentElement.replaceChild(t,e));return t.addEventListener("click",e=>{e.stopPropagation(),e.preventDefault(),t.classList.add("has-interacted")}),t}}const jn="https://www.aftonbladet.se/video-player-extras/latest/";class Ln{handleVideo(e,t){return s(this,arguments,void 0,function*(e,{videoConfiguration:{id:t,node:n,autoplay:i,mute:r,vendor:o}}){const a={id:t,node:n,autoplay:i,mute:r,vendor:o,autopause:"viewable",maxBitrate:600,pulse:{provider:"aftonbladet"},recommended:{autoplay:!1,next:{countdown:10}},skin:{name:"",url:""},plugins:{[`${jn}cta-button.js`]:{name:"CtaButton",options:{type:"unmute"}},[`${jn}external-link.js`]:{name:"ExternalLink"}}};yield kn(a),this.addEditionVideoClass(e)})}addEditionVideoClass(e){var t;(null===(t=null==e?void 0:e.parentElement)||void 0===t?void 0:t.parentElement)&&e.parentElement.parentElement.classList.add("dr-edition-video-player")}transformUrl(e){const{hostname:t,pathname:n}=new URL(e);return"brand-studio.aftonbladet.se"===t?{publicUrl:`https://aftonbladet.se/brand-studio${n}`,urlPath:`/brand-studio${n}`}:{publicUrl:e,urlPath:n}}getPulseObjectId(){return""}getPulsePageId(){return""}}const Nn=e=>null!==e&&"object"==typeof e&&!Array.isArray(e);class Dn{handleVideo(e,t){return s(this,arguments,void 0,function*(e,{videoConfiguration:{id:t,node:n,autoplay:i,mute:r,vendor:o}}){const a={id:t,node:n,autoplay:i,mute:r,vendor:o,locale:"se",autopause:"viewable",maxBitrate:600,sharing:!1,recommended:!1,pulse:{provider:"svdse",decorator:(e,t)=>Object.assign(Object.assign({},Nn(e)?e:{}),{provider:Object.assign(Object.assign({},Nn(null==e?void 0:e.provider)?e.provider:{}),{productTag:"partnerstudio"})})},skin:{name:"svd-player",url:""},settings:{pulse:{host:"se-aftonbladet.videoplaza.tv",contentMetadata:{category:"SvD",tags:["standard-linears","pause",`video-${t}`]},requestSettings:{}}}},d=yield kn(a);d.once("PulseStats:ready",()=>s(this,void 0,void 0,function*(){const e=yield d.getPlugin("PulseStats").getTracker();null==e||e.update({provider:{id:"svdse",productTag:"partnerstudio"}})}))})}transformUrl(e){const{hostname:t,pathname:n}=new URL(e);return"brand-studio.svd.se"===t?{publicUrl:`https://svd.se/brand-studio${n}`,urlPath:`/brand-studio${n}`}:{publicUrl:e,urlPath:n}}getPulseObjectId(){return"sdrn:svdse:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(e,t){return e===Tn.FRONT?"sdrn:svdse:frontpage:front":`sdrn:svdse:article:${t}`}}class Mn{handleVideo(e,t){}getPulseObjectId(){return""}getPulsePageId(e,t){return""}}const _n=(e,t,n)=>{const{publisher:i,pageType:o,country:a}=e,s={[r.VG]:new hn,[r.E24]:new Pn,[r.AFTONBLADET]:new Ln,[r.SVD]:new Dn}[i]||new Mn,d=new(a===N.SE?An:Sn)(n,s,o),l=new gn(t,n),c=new En(s,d),u=new Cn(s);return new yn(l,c,u,d)},Rn=()=>s(void 0,void 0,void 0,function*(){return yield new Promise(e=>{if("undefined"!=typeof window)if(window.Identity)e(window.Identity);else{const t=()=>{e(window.Identity)};window.addEventListener("identity-initialized",t,{once:!0})}else e(void 0)})});class Fn{constructor(e){this.identity=e,this.getIdentityUser=this.getIdentityUser.bind(this),this.isUserLoggedIn=this.isUserLoggedIn.bind(this),this.onIdentityLogout=this.onIdentityLogout.bind(this)}getIdentityUser(){return s(this,void 0,void 0,function*(){var e;try{const t=yield null===(e=this.identity)||void 0===e?void 0:e.getUser();return null!=t?t:null}catch(e){return h("[Privacy Broker] User is not logged in."),null}})}isUserLoggedIn(){return s(this,void 0,void 0,function*(){var e,t;return null!==(t=yield null===(e=this.identity)||void 0===e?void 0:e.isLoggedIn())&&void 0!==t&&t})}onIdentityLogout(e){var t;null===(t=this.identity)||void 0===t||t.on("logout",e)}}const qn=(e,t,n)=>{const{wrapperSelector:i}=e.drEditionConfig.options,r=document.querySelectorAll(i),o=new IntersectionObserver((i,r)=>((e,t,n,i,r)=>{const o=_n(n,i,r);e.forEach(e=>{var i,r;if(!e.isIntersecting)return;const a=e.target,s=null!==(i=a.dataset.editionName)&&void 0!==i?i:"",d=null!==(r=a.dataset.pulseColumnname)&&void 0!==r?r:"",l=Number(a.dataset.pulsePrimaryposition)||0;o.fetchAndRenderAd(a,Object.assign(Object.assign({},n),{editionName:s,columnName:d,primaryPosition:l})),t.unobserve(a)})})(i,r,e,t,n),{rootMargin:"400% 0px"});r.forEach(e=>o.observe(e))},$n=()=>s(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)}}),Bn=()=>{const e=document.getElementById("ads-advertory-anchor");return!(e&&"none"!==getComputedStyle(e).display&&window.advertoryFluepapir)},Un=[],Vn=(e,t)=>s(void 0,void 0,void 0,function*(){var n;const{pulse:i,tcf:r,drEdition:o,pageContext:{deviceType:a,publisher:s,pageType:d,countryCode:l,isMobileApp:c}}=e;if(!(yield F(r,c,l,"handleDrEditionBackfill")))return;const u=((e,t)=>{var n,i;const{pageContext:{deviceType:r},placements:o,drEdition:a}=e,s=null===(n=null==a?void 0:a.options)||void 0===n?void 0:n.fallbackGlobalEditionName,d=o[r]||o.desktop,l=_t(t.targetId),c=d.find(e=>e.targetId===l),u=vn.some(e=>l.startsWith(e)),p=Un.includes(l),v=(null===(i=null==c?void 0:c.drEdition)||void 0===i?void 0:i.editionName)||s;return c&&u&&!p&&v?(Un.push(l),Object.assign(Object.assign({},c),{drEdition:Object.assign(Object.assign({},c.drEdition),{editionName:v})})):null})(e,t);if(!u)return;if(!(null==i?void 0:i.instance))return void h("Pulse has not been passed as a prop, aborting");const p=yield Rn(),v=new Fn(p),g=_n({publisher:s,pageType:d,country:l},v,null==i?void 0:i.instance),m=document.getElementById(t.targetId);if(!m||!o)return;m.classList.value="";const y=document.createElement("div");y.className=o.options.containerSelector.replace(/^[.#:[\]]+/,""),m.innerHTML=y.outerHTML;const f={editionName:(null===(n=null==u?void 0:u.drEdition)||void 0===n?void 0:n.editionName)||"",drEditionConfig:o,device:a,tcf:r,isMobileApp:c,country:l,renderAsBackfill:!0};yield g.fetchAndRenderAd(m,f)}),Hn=e=>s(void 0,void 0,void 0,function*(){var t;if(!e.drEdition)return;if(!(yield F(e.tcf,e.pageContext.isMobileApp,e.pageContext.countryCode,"handleDrEdition")))return;const n=yield Rn(),i=new Fn(n);qn({publisher:e.pageContext.publisher,drEditionConfig:e.drEdition,device:e.pageContext.deviceType,pageType:e.pageContext.pageType,country:e.pageContext.countryCode},i,null===(t=e.pulse)||void 0===t?void 0:t.instance)}),zn=(e,t)=>{var n,i,r;if(!Bn())return void h("Ad block not enabled, Dr. Edition backfills will not be rendered");h("Ad block is enabled, Dr. Edition backfills will be rendered");const{pageContext:{deviceType:o},finnBlink:a}=e,d=null===(i=null===(n=null==a?void 0:a.replacementConfig)||void 0===n?void 0:n.adsToReplace)||void 0===i?void 0:i[o],l=null!==(r=null==d?void 0:d.map(([e])=>e))&&void 0!==r?r:[],c=new IntersectionObserver((t,n)=>s(void 0,void 0,void 0,function*(){for(const i of t){if(!i.isIntersecting)continue;const t=i.target;n.unobserve(t),yield Vn(e,{targetId:t.id})}}),{rootMargin:"400% 0px"});t.filter(e=>!l.some(t=>e.targetId.startsWith(t))).forEach(e=>{const t=document.getElementById(e.targetId);t&&c.observe(t)})},Wn="collapseAd",Kn="hideAd",Gn="resizeAd",Jn="renderDrEditionFallback",Qn="wallpaperImageUrl",Yn="wallpaperColor",Xn="velvet",Zn=[Gn,Qn,Yn,Wn,Kn,Jn,Xn];let ei;const ti=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(Ut(e)){const t=e.replace(/^wallpaper:url:/,"");return{name:Qn,wallpaperImageUrl:t}}if(Vt(e)){const t=e.replace(/^wallpaper:color:/,"");return{name:Yn,wallpaperColor:t}}if(e.startsWith(Jn)){const t=e.split(":")[1];return{name:Jn,targetId:t}}if(e.startsWith(Wn)||e.startsWith(Kn)){const t=e.split(":")[1];return{name:Wn,targetId:t}}if(e.includes("name")&&Zn.some(t=>e.includes(t)))try{return JSON.parse(e)}catch(e){}})(t);if(!n)return;if(!n.name||!Zn.some(e=>n.name===e))return;const{name:i,targetId:r,wallpaperImageUrl:o,wallpaperColor:a,cmd:s,size:d}=n;i===Xn&&s&&(s.includes("noScroll")&&(ei=(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==ei||ei(),dispatchEvent(new CustomEvent("advertory:closeTakeover",{})))),i!==Wn&&i!==Kn||!r||Kt(r),i===Gn&&r&&s&&pn(r,s),i===Jn&&r&&(Kt(r),Vn(b.get(),{targetId:r})),"resizeMediationAd"===i&&r&&d&&pn(r,d,!0),i===Qn&&o&&Ht(o),i===Yn&&a&&zt(a)},ni=()=>{const{pageContext:{publisher:e,countryCode:t},finnBlink:n}=b.get(),i=window.apntag,r={publisher:e,countryCode:t,finnBlink:n},o=e=>{Gt(e),At(()=>i.showTag(e))};return{withXandrAd:o,withFinnBlinkAd:e=>s(void 0,void 0,void 0,function*(){if(!(null==n?void 0:n.enabled))return;const{loadFinnBlinkAd:t}=yield import("./index-Gspn87SW.js");yield t(e,r,null)}),withFullAdsChain:e=>s(void 0,void 0,void 0,function*(){if(!(null==n?void 0:n.enabled))return void o(e);const{loadFinnBlinkAd:t}=yield import("./index-Gspn87SW.js");yield t(e,r,o,()=>s(void 0,void 0,void 0,function*(){if(!C.getData("horseshoe").isAvailable)return;const{adjustAdToHorseshoe:t}=yield Promise.resolve().then(function(){return Wt});t(e)}))})}},ii=(e,t)=>s(void 0,void 0,void 0,function*(){e.id.includes("wallpaper")||(yield kt(e,t,()=>((e,t,n)=>{const i="true"===n.dataset.isFinnBlinkOnlyPlacement;return De(t)&&i?(h(`loading finn blink ad for blink only placement for ${t}`),void ni().withFinnBlinkAd(t)):De(t)?(h(`loading finn blink ad with full ads chain for ${t}`),void ni().withFullAdsChain(t)):void At(()=>(h("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)))}),ri=e=>({rootMargin:`${e}px 0px ${e}px 0px`}),oi=new Map,ai=["no-stavangeraftenblad","sa","no-aftenposten","aftenposten","no-bergenstidende","bt"],si=".brandstudio-premium-content-widget",di=({adWrapper:e,placementContainer:t})=>t.offsetHeight+(({adWrapper:e})=>{const{paddingTop:t,paddingBottom:n}=getComputedStyle(e);return parseFloat(t)+parseFloat(n)})({adWrapper:e}),li=({adWrapper:e,placementContainer:t})=>{const n=di({adWrapper:e,placementContainer:t});var i;null==e||e.style.setProperty("height",`${n}px`),Qt(i=t),i.innerHTML=""},ci=e=>{e&&e.style.getPropertyValue("height")&&e.style.removeProperty("height")},ui=({adWrapper:e,placementContainer:t})=>{const{pageContext:{publisher:n}}=b.get(),i=ai.includes(n)&&Boolean(t.closest(si));const r=i?t.closest(si):null,o=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&&!r)return;if(a)return ci(e),void o.disconnect();const s=t.closest('[style*="height"]'),d=r;s&&d.contains(s)?ci(s):d.hasAttribute("style")&&ci(d),o.disconnect()})})});try{o.observe(t,{childList:!0,subtree:!0})}catch(e){o.disconnect()}},pi=(e,t,n,i,r,o)=>{var a;const s=performance.now(),d=null!==(a=oi.get(t))&&void 0!==a?a:0,l=((e,t)=>!!t&&e+t<(new Date).getTime())(i,r)&&n<0;s-d>=r&&l&&(oi.set(t,s),((e,t,n)=>{const{pageContext:{countryCode:i}}=b.get(),r=null==n?void 0:n.parentElement;r&&n&&li({adWrapper:r,placementContainer:n}),At(()=>{e.setKeywords([t],{[`${W(i)}-adreload`]:"1"},{overrideKeyValue:!0}),e.refresh([t])})})(e,t,o))},vi=(e,t,n)=>{const i=new IntersectionObserver((e,i)=>((e,t,n,i)=>{e.filter(({isIntersecting:e})=>e).forEach(e=>{const{target:r,boundingClientRect:o}=e;t(window.apntag,r.id,o.y,n,i,r)})})(e,pi,t,n),ri(300));i.observe(e)},gi=(e,t=6)=>{const n=[];for(let i=0;i<e.length;i+=t){const r=e.slice(i,i+t);n.push(r)}return n},hi=()=>navigator&&navigator.userAgent.match(/chrome/i)?null:navigator&&navigator.userAgent.match(/apple/i),mi=(e,t=0)=>{const n=e.getBoundingClientRect(),i=window.innerHeight;return n.bottom>-t&&n.top<i+t},yi=e=>{const{refreshConfig:{visibilityStateRefreshEnabled:t=!1}={}}=b.get();if(!t)return;const n=()=>{"visible"===document.visibilityState&&document.removeEventListener("visibilitychange",n),Ei(e)};"visible"!==document.visibilityState&&document.addEventListener("visibilitychange",n)},fi=(e,t,n)=>{const i=document.querySelectorAll('[data-bf-cache-refresh="true"]');for(const r of i){const i=e.find(e=>{var t,n;return e.targetId===(null===(t=r.firstElementChild)||void 0===t?void 0:t.id)&&(null===(n=e.refresh)||void 0===n?void 0:n.bfCache)}),o=null==i?void 0:i.requestThreshold;mi(r,o)&&i&&(Jt(i.targetId),n.length&&r.classList.remove(...n),Ei([i],t))}},wi=e=>{const{refreshConfig:{backForwardNavigationRefreshEnabled:t=!1}={},siteSpecificConfig:{classesToRemoveOnRefresh:n=[]}={},pageContext:{isMobileApp:i}}=b.get();t&&(e.forEach(({targetId:e})=>{const t=bi(e);t&&(t.dataset.bfCacheRefresh="true")}),i?((e,t)=>{document.addEventListener("visibilitychange",()=>{"visible"===document.visibilityState&&fi(e,!0,t)})})(e,n):((e,t)=>{window.addEventListener("pageshow",n=>{const i=()=>{window.scrollY>0&&(window.removeEventListener("scroll",i),fi(e,!1,t))};n.persisted&&(hi()?window.addEventListener("scroll",i,{passive:!0}):fi(e,!1,t))})})(e,n))},bi=e=>{var t,n;return null!==(n=null===(t=document.querySelector(`#${e}`))||void 0===t?void 0:t.parentElement)&&void 0!==n?n:null},xi=e=>{const{targetId:t,allowedFormats:n}=e,i=(e=>{if(!e)return[];try{return JSON.parse(e.dataset.adSizes||"[]")}catch(e){return[]}})(bi(t)),r=(e=>1===e[0]&&1===e[1])(i),o={sizes:[i],allowedFormats:r?n:n.filter(e=>"native"!==e),allowSmallerSizes:!1};return r||(o.native=void 0),o},Ei=(e,t=!1)=>{const{queryConfig:{batchSize:n=f}={}}=b.get(),i=e.map(({targetId:e})=>e),r=gi(i,n);if(t)for(const t of e){const e=xi(t);window.apntag.modifyTag(t.targetId,e)}for(const e of r)At(()=>window.apntag.refresh(e))},Ci=e=>{const t=encodeURIComponent(e).replace(/[-.+*]/g,"\\$&"),n=new RegExp(`(?:(?:^|.*;)\\s*${t}\\s*\\=\\s*([^;]*).*$)|^.*$`);return decodeURIComponent(document.cookie.replace(n,"$1"))||null},Ii=e=>s(void 0,void 0,void 0,function*(){const{tcf:t,pageContext:{isMobileApp:n,countryCode:i}={}}=e,{getConsentAsync:r}=R(t,0,i);if(!(yield r()))return;const o=Ci("_pulse2data");return o?o.split(",")[9]:void 0}),Ai={SPLASH:"splash",WELCOME_PAGE:"welcomePage",TOPSCROLLER:"topscroller",VELVET:"velvet"},Si="takeover-displayed",Ti="takeover-visit-count",ki=14400,Oi=()=>{const e=Ci(Ti);return e?parseInt(e):0},Pi=()=>{const e=Oi(),{takeover:{options:{cookieCapTime:t=ki}={}}={}}=b.get(),n=document.location.hostname;window.document.cookie=`${Ti}=${e+1}; max-age=${t}; domain=${n}; path=/; SameSite=Lax`},ji=()=>{const{takeover:{enabled:e=!1,options:{secondVisitEnabled:t=!1}={}}={}}=b.get();return"0"!==O(P)&&("1"===O(P)||!(!e||(()=>{var e,t;const n=(null===(t=null===(e=b.get().takeover)||void 0===e?void 0:e.options)||void 0===t?void 0:t.cookieCapName)||Si;return"true"===Ci(n)})())&&(!t||Li()))},Li=()=>{const e=Oi();return 0===e?(Pi(),!1):1===e},Ni=(e,t)=>[[1,1],[1920,1080]].some(([n,i])=>n===e&&i===t),Di=()=>{const{takeover:e}=b.get();return Boolean(null==e?void 0:e.topscroller)},Mi=e=>{const{width:t,height:n}=e;return Ni(t,n)?Ai.SPLASH:$e(e,Ce.VELVET_TAKEOVER)?Ai.VELVET:Di()?Ai.TOPSCROLLER:Ai.WELCOME_PAGE},_i=()=>s(void 0,void 0,void 0,function*(){const e=document.location.hostname,{takeover:{options:{cookieCapName:t=Si,cookieCapTime:n=ki}={}}={},pageContext:{isMobileApp:i,countryCode:r},tcf:o}=b.get(),a=yield F(o,i,r,"ad-takeover-cookiecap");n&&a&&(window.document.cookie=`${t}=true; max-age=${n}; domain=${e}; path=/`)}),Ri=e=>{var t,n;const i=!!(null===(n=null===(t=b.get().takeover)||void 0===t?void 0:t.options)||void 0===n?void 0:n.setCookieCapForNotShownAd);return Oe(e)&&i},Fi=(e,t)=>{var n;if(t===Ai.TOPSCROLLER){const{topscroller:t}=e;return null!=t?t:{}}if(t===Ai.SPLASH){const{splash:t}=e;return null!=t?t:{}}return null!==(n=e.welcomePage)&&void 0!==n?n:{}},qi=(e,t)=>{t!==Ai.SPLASH?(e=>{var t,n;const i=null===(t=b.get().pageSectionsSelectors)||void 0===t?void 0:t.header,r=null===(n=b.get().takeover)||void 0===n?void 0:n.topscroller;if(!i||r)return;const o=document.querySelector(i),a=document.querySelector(".welcome-page-wrapper"),s=document.querySelector(`#${e.targetId}`),d=document.querySelector(".advertory-welcome-page-scroll");if(!(o&&a&&d&&s))return;const l=null==o?void 0:o.offsetHeight,c=Pe(e)?"60svh":`calc(100svh - ${l}px)`,u=Pe(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=b.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 r=`calc(100svh - ${n.offsetHeight}px)`;i.style.setProperty("height",r,"important")})(e)},$i=Ke([],()=>{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 Bi=Object.freeze({__proto__:null,addTakeoverCookie:_i,adjustTakeoverHeight:qi,canDisplayTakeover:ji,getProperWelcomePageConfig:Fi,getTakeoverVariant:Mi,handleTakeoverCookieOnAdNotShown:e=>s(void 0,void 0,void 0,function*(){Ri(e)&&(yield _i())}),incrementArticleVisitCount:Pi,isSplashVariant:Ni,isTopscroller:Di,scaleAd:$i,shouldAddTakeoverCookieForNotShownAd:Ri});const Ui=e=>`externalImpId:'${e}'`,Vi=(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,Hi=e=>{var t;const{pageSetup:{tag:{forwardExternalImpId:n=!1}={}}={},pulse:i}=b.get(),{targetId:r,sizes:o,keywords:a,allowedFormats:s,invCode:d,ssaNativeAdEnabled:l=!1,nativeCustomProperties:c,safeframeConfig:u,dynamicSizeWidthCheck:p=!1,globalPlacementId:v}=(e=>{var t;if(!e.takeoverCookieCapForSharedPlacement||ji())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!==Ai.TOPSCROLLER):n,r=Object.assign(Object.assign({},e.keywords),n&&{"no-sno-adformat":i}),o=e.sizes.filter(([e,t])=>4!==e||4!==t);return Object.assign(Object.assign({},e),{sizes:o,keywords:r})})(e),g=Object.assign({invCode:d,sizes:o,targetId:r,keywords:Vi(a,l),allowedFormats:s,dynamicSizeWidthCheck:p,globalPlacementId:v},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?(h("Pulse state pageViewId is:",i),i):(h("Pulse state does not contain field pageViewId or it is empty"),"")})(i);n&&m&&(h("External Impression ID assigned to defineTag:",Ui(m)),g.externalImpId=Ui(m));const y=(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},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"))&&(g.native=y),g},zi=e=>!e.includes("takeover")||ji(),Wi=e=>{const{source:t}=e;return"csm"===t},Ki={nativeAd:e=>Te(e)&&!Ne(e),buyrecipe:e=>e.targetId.startsWith("buyrecipe"),fullwidthAd:ke,fullscreenScroll:Se,topscroller:e=>Oe(e)&&Di(),splash:e=>Oe(e)&&Ni(e.width,e.height),welcomePage:Oe,wallpaper:je,skyscraper:e=>e.targetId.includes("skyscraper")&&!!e.banner,lFormat:Fe,hFormat:qe,toppanorama:e=>e.targetId.startsWith("toppanorama")&&!qe(e)&&!Fe(e),topboard:e=>e.targetId.startsWith("topboard")&&!Oe(e),widescreen:Re,insider:e=>e.targetId.startsWith("insider"),sponsorstripe:Ne,brandboard:e=>(e=>(980===e.width||1920===e.width&&e.targetId.includes("brandboard"))&&!e.targetId.includes("topboard")&&!e.targetId.includes("companion")&&!Me(e))(e)&&!(e=>e.targetId.includes("backfill"))(e)&&!_e(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:Me,midboard:_e},Gi=({adObj:e,preferredTestIdData:t})=>{var n,i;const r=null!==(n=null==t?void 0:t.targetId)&&void 0!==n?n:null==e?void 0:e.targetId;if(!r)return;const o=null===(i=document.querySelector(`#${r}`))||void 0===i?void 0:i.parentElement;if(!o)return;if(((e,t)=>{var n,i,r,o;const a=null===(o=null===(r=null===(i=null===(n=window.apntag)||void 0===n?void 0:n.requests)||void 0===i?void 0:i.tags)||void 0===r?void 0:r[e])||void 0===o?void 0:o.invCode;a&&(t.dataset.invCode=a)})(r,o),null==t?void 0:t.testId)return void(o.dataset.testid=t.testId);const a="DIV"===(null==o?void 0:o.tagName);e&&a&&((e,t)=>{var n,i;for(const[r,o]of Object.entries(Ki))if(o(e)){if("nativeAd"===r){const o="default";t.dataset.testid=`${r}-${null!==(i=null===(n=null==e?void 0:e.native)||void 0===n?void 0:n.desc2)&&void 0!==i?i:o}`;break}t.dataset.testid=r;break}})(e,o)},Ji=e=>{var t;return(null===(t=Object.entries(Ki).find(([,t])=>t(e)))||void 0===t?void 0:t[0])||""},Qi=e=>{if(!e)return e;const{pageContext:{countryCode:t}}=b.get(),n=W(t),i=e[`${n}-targetid`],r=i?_t(i[0]):"";return Object.assign(Object.assign({},e),i&&{[`${n}-targetid`]:[r]})},Yi=e=>{const{pageContext:{countryCode:t}}=b.get(),n=W(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"]})},Xi=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],r=e.find(e=>e.invCode===i),o=document.querySelector(`[id^=${null==r?void 0:r.targetId}]`);o&&o.scrollIntoView({behavior:"smooth",block:"start"})})(e),(()=>{var e;const t=new URLSearchParams(window.location.search).get("scrollToDrEditionPlacement");if(!t)return;const n=null!==(e=document.querySelector(`[id*="${t}}"]`))&&void 0!==e?e:document.querySelector(`a[aria-label*="${t}"]`);n&&n.scrollIntoView({behavior:"smooth",block:"start"})})()},Zi=(e,t)=>s(void 0,void 0,void 0,function*(){return yield new Promise(t=>{e().then(e=>{t(null!=e?e:null)}).catch(e=>{t(null)})})});st(".advertory-brandmetrics-survey{width:100%}");const er="advertory-brandmetrics-survey",tr="https://dr-edition-teaser-server.inventory.schibsted.io/xandr",nr=()=>s(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 r;i||t(""),"tcloaded"!==n.eventStatus&&"useractioncomplete"!==n.eventStatus||(t(null!==(r=n.tcString)&&void 0!==r?r:""),e("removeEventListener",2,()=>{},n.listenerId))})}))}:{};var e}),ir={pageContext:{publisher:"aftonbladet",countryCode:N.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"}},rr={nyheter:"nyheter",sport:"sportbladet",noje:"nojesbladet",family:"family",matdryck:"matdryck",wellness:"wellness",minekonomi:"minekonomi",resa:"resa",harligthemma:"harligthemma"},or=e=>(null==e?void 0:e.parent)?[...or(e.parent),e.shortPath||"unknown"]:[],ar=(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]=or(e);return rr[n]||"ovrigaavdelningar"})(e)}_{position}`,sr={aftonbladet:ir},dr={aftonbladet:(e,t)=>{if(!e)return null;return{invCode:ar(e,t),videoOverlayInvCode:"se-aftonbladet-{deviceType}-other-{position}",sections:or(e).join(":")}}},lr=e=>{switch(e){case"auto":return 1;case"silent":return 2;default:return 3}},cr=new Map([[1,"autoplay"],[2,"muted-autoplay"],[3,"click-to-play"]]),ur="se-generic",pr="aa-sch",vr="kv_",gr="pause",hr="{deviceType}",mr="{position}",yr="afp_",fr=new Set(Object.values({PREROLL:"preroll",BUMPER:"bumper",MIDROLL:"midroll"})),wr="1-1",br="16-9",xr="3-4",Er="9-16",Cr="responsive",Ir={[wr]:1,[br]:1.78,[Er]:.56,[Cr]:1},Ar={[wr]:1,[br]:1.78,[xr]:1.33,[Er]:.56},Sr=(e,t,n,i)=>{const{invCode:r="",videoOverlayInvCode:o}=null!=e?e:{},a=en===n?rn:on,s=r.replace(hr,a);return(e,n)=>{if(e===gr)return(e=>e.replace("tv-","").replace("-afp_","-afp-").replace(mr,gr).replace(/-([a-z]+)_/,"-article-"))(s);if(n&&fr.has(e)){return(i&&o?o:t.frontpageInvCodeTemplate).replace(hr,a).replace(mr,e)}return s.replace(mr,e)}},Tr=(e,t)=>{const n=Object.entries(e);return n.reduce((n,[i,r])=>{const o=Math.abs(e[n]-t);return Math.abs(r-t)<o?i:n},n[0][0])},kr=()=>{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},Or=()=>{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},Pr=()=>{const e=null!==(t=Or()[9])&&void 0!==t?t:null;var t;const n=(()=>{var e;return null!==(e=Or()[2])&&void 0!==e?e:null})();return e?Number(Boolean(e))+Number(Boolean(n)):0},jr=()=>Object.fromEntries(new URLSearchParams(window.location.search)),Lr=(e,t)=>s(void 0,void 0,void 0,function*(){const{tcf:n,pageContext:{publisher:i,countryCode:r}}=t,{width:o,height:a}={width:window.innerWidth,height:window.innerHeight},s={isMobileApp:e.isApp,countryCode:r,publisher:i,pageType:"front",deviceType:e.deviceType},d=(yield F(n,e.isApp,r,"video"))?"1":"0",l=yield nr(),c=yield be(r),u=yield Ii({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)=>Tr(Ar,Number(e.toFixed(2))))(e.instreamAspectRatio),h=(m=e.playerAspectRatio)?Tr(Ir,Number(m.toFixed(2))):Cr;var m,y;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${pr}-country_code`]:r,[`${pr}-publisher`]:i,[`${pr}-supply_type`]:(y=e.deviceType,y===en?tn:nn),[`kw_${pr}-page_type`]:"collection",[`${pr}-page_type`]:"collection",[`${ur}-appmode`]:e.isAndroidApp?"hybrid":"notinapp",[`kw_${ur}-page`]:"index",[`${ur}-page`]:"index",[`${ur}-screenheight`]:String(window.screen.height),[`${ur}-screenwidth`]:String(window.screen.width),[`${ur}-viewportheight`]:String(a),[`${ur}-viewportwidth`]:String(o),[`${ur}-loggedin`]:e.isUserLoggedIn?"yes":"no",[`${ur}-mobile-os`]:fn(),[`${ur}-audience`]:void 0,[`${ur}-externalid_src`]:Pr(),[`${ur}-tags`]:e.tags,[`${ur}-articleid`]:p,"article-id":p},yield K(Object.assign(Object.assign({},t),{pageContext:s}))),u&&{external_uid:u}),e.isUserPresentOnFrontPage&&e.isInitialVideo&&{[`${ur}-tvtags`]:"vinjett"}),e.pageAdsKeywords),Object.keys(jr()).some(e=>e.includes(vr))&&(()=>{const e=jr(),t=Object.fromEntries(Object.entries(e).filter(([e])=>e.startsWith(vr)).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})}),Nr=["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"],Dr=["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"],Mr=["external_uid","gdpr","gdpr_consent","eids","article-id"],_r=(e,t)=>{const n=[...Nr,...t.additionalFilterKeys];return Object.fromEntries(Object.entries(e).filter(([e])=>!n.includes(e)).map(([e,t])=>[e.includes("kw")||Mr.includes(e)?e:`kw_${e}`,t]))},Rr=e=>Object.fromEntries(Object.entries(e).filter(([e])=>Dr.includes(e))),Fr=(e,t)=>s(void 0,void 0,void 0,function*(){var n,i,r,o;const a=(e=>{var t;sr[e]||m(`[video] No config found for publisher "${e}"`);return null!==(t=sr[e])&&void 0!==t?t:ir})(e.publisher),s=(e=>{var t;return null!==(t=dr[e])&&void 0!==t?t:dr.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!==(r=Number(e.aspectRatio))&&void 0!==r?r:1,p=c?"preroll":"bumper";var v;return{siteConfig:a,siteVideoParams:s,isUserPresentOnFrontPage:d,adsKeywords:yield Lr({pageAdsKeywords:e.pageAdsKeywords,tags:(v=e.tags,v?v.filter(e=>e.slug).map(({slug:e})=>e).join(","):""),sections:null!==(o=null==s?void 0:s.sections)&&void 0!==o?o:"",isUserLoggedIn:e.isUserLoggedIn,isUserPresentOnFrontPage:d,isInitialVideo:c,instreamAspectRatio:u,playerAspectRatio:kr(),isApp:e.isApp,deviceType:e.deviceType,isAndroidApp:e.isAndroidApp},a),prerollPlacementFormat:p,playbackMethod:lr(e.startMode)}}),qr=(e,t)=>{const{siteConfig:n,siteVideoParams:i,isUserPresentOnFrontPage:r,adsKeywords:o,prerollPlacementFormat:a,playbackMethod:s}=e,{invCode:d}=i||{},l=Sr(i,n,t.deviceType,t.isUsedInOverlayVideoPlayer),c=((e="")=>t=>e.includes(yr)?`${yr}${t}`:t)(d),u=window.location.href;return{member:n.memberId,options:{autoplayMuted:!0,vpaidcontrols:!0},adSlots:{schedule:{preroll:{inv_code:l(a,r),"se-generic-playback-method":cr.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({},_r(o,n)),Rr(o)),{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({},o),{"se-generic-adformat":c("pause")})}}}},$r=e=>t=>s(void 0,void 0,void 0,function*(){const n=yield Fr(e,t);return qr(n,e)}),Br={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]}]},Ur={no:"NOK",se:"SEK"},Vr={no:"no",se:"sv"};class Hr{buildFetchObject(e,t,n,i){return s(this,void 0,void 0,function*(){const{pageContext:{countryCode:r},pageOptions:o}=i,{invCode:a,xandrPlacementId:s}=e,d=yield nr(),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(Br),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:Ct(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(o.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||Vr[r]||"no").split("-")[0]},regs:{ext:{gdpr:d.gdpr||0}},user:{id:yield Ii(i),ext:{consent:d.gdpr_consent||"",eids:we(r)}},at:1,cur:[Ur[r]],source:{tid:Ct(36)},ext:{prebid:{bidder:{appnexus:{member:o.member}}}}}})}fetchData(e,t,n,i){return s(this,void 0,void 0,function*(){try{h("Starting fetching Studio ad from Xandr:",tr);const r=new Headers({"Content-Type":"application/json"}),o=new URLSearchParams(window.location.search),a=new URLSearchParams(["openRTBDebugMemberOverride","openRTBNewsroomOverride","openRTBForceNativeDesc2Override"].flatMap(e=>{const t=o.get(e);return t?[[e,t]]:[]})),s=a.size>0?`${tr}?${a.toString()}`:tr,d=yield this.buildFetchObject(e,t,n,i),l=yield ne.post(s,r,d);return h("Fetch operation completed successfully.",l),l}catch(e){h("Error during fetch operation:",e)}return null})}}const zr=0,Wr=3,Kr=(e,t,n,i)=>{const r=t.parentElement;if(!r)return;const o=e?`-${e}`:"",a=i?`__${i}`:"",s=`advertory${o}-${n}${a}`,d=`advertory${o}-${n}-wrapper${a}`;t.classList.remove(...t.classList),r.classList.remove(...r.classList),t.classList.add(s),r.classList.add(d),t.dataset.adType=n},Gr={FINN_BLINK:"finn-blink",NATIVE_AD:"native-ad"},Jr=(e,t)=>{Qr(e,t),Xr(e,t)},Qr=(e,t)=>{var n,i;const r=document.querySelector(`#${e.targetId}`);if(!r||!(null===(n=e.native)||void 0===n?void 0:n.clickTrackers))return;const o=null!==(i=null==t?void 0:t.clickLinkSelector)&&void 0!==i?i:"a.ad-link";(null==r?void 0:r.querySelectorAll(o)).forEach(t=>{"true"!==t.dataset.tracked&&(t.addEventListener("click",()=>{var t,n;for(const i of null!==(n=null===(t=e.native)||void 0===t?void 0:t.clickTrackers)&&void 0!==n?n:[])eo(i)}),t.dataset.tracked="true")})},Yr=e=>{var t;const{native:{impressionTrackers:n}={}}=e,i=null==n?void 0:n.some(e=>e.includes("googleads")),r="function"==typeof(null===(t=window.apntag)||void 0===t?void 0:t.fireImpressionTrackers)&&!!e.tagId;i||!r?null==n||n.forEach(Zr):window.apntag.fireImpressionTrackers(e);const o=new CustomEvent("advertory:nativeImpression",{detail:{ad:e}});window.dispatchEvent(o)},Xr=(e,t)=>{var n;let i=!1;const r=document.querySelector(`#${e.targetId}`);if(!r||!e.native)return;const{deviceType:o,appearanceConfig:a,nativeTrackingConfig:{fireImpressionsBasedOnAppearanceThreshold:s=!1}={}}=t,d=s?{rootMargin:`${l=null!==(n=null==a?void 0:a.defaultThreshold[null!=o?o:en])&&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,Yr(e),c.disconnect();break}},d);c.observe(r)},Zr=e=>{const t=e.includes("googleads");"function"!=typeof window.navigator.sendBeacon||t?eo(e):window.navigator.sendBeacon(e)},eo=e=>{fetch(e,{method:"GET",mode:"no-cors"}).catch(t=>console.warn(`Tracker ${e} failed. Error: ${t||"Unknown"}`))},to=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:[]}),no=(e,t)=>s(void 0,void 0,void 0,function*(){var n,i;const{pageContext:{deviceType:r},appearanceConfig:o}=t,a=null==o?void 0:o.defaultThreshold[r],s=null!==(n=e.requestThreshold)&&void 0!==n?n:a,d=document.getElementById(e.targetId);if(!d)return void h(`Server-side ad container not found: ${e.targetId}`);yield new Promise(e=>{new IntersectionObserver((t,n)=>{t.some(e=>e.isIntersecting)&&(n.disconnect(),e())},ri(s)).observe(d)});const{prepareTag:l}=b.getHandlers(),c=C.getData("alertoryConfigKeywords"),u=null!==(i=l(Hi(e)).keywords)&&void 0!==i?i:{},p=new Hr,v=yield p.fetchData(e,c,u,t);v&&(((e,t,n)=>{const i=n===Xt?t.mobileHTML:t.desktopHTML;if(i){if(t.adType===zr){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,v,r),v.adType===Wr&&(Kr(t.pageContext.publisher,d,Gr.NATIVE_AD,t.pageContext.pageType),Jr({targetId:e.targetId,native:{clickTrackers:v.clickTrackers,impressionTrackers:v.impTrackers}},{deviceType:r,appearanceConfig:o,nativeTrackingConfig:t.nativeTrackingConfig,clickLinkSelector:"a"})),((e,t,n,i)=>{var r,o,a;let s;(null===(r=window.apntag.requests)||void 0===r?void 0:r.tags[e])||(null!==(o=(a=window.apntag).requests)&&void 0!==o||(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)),ft(e,n,Number(null==i?void 0:i.adid)),null==s||s.remove()})(e.targetId,e.invCode,d,v.bid))}),io=(e,t)=>{e.forEach(e=>no(e,t).catch(e=>{h("Failed to handle server-side ad:",e)}))},ro={arrayMerge:(e,t)=>t,isMergeableObject:e=>"object"==typeof e&&null!==e&&e.constructor===Object},oo=e=>s(void 0,void 0,void 0,function*(){if(!(e=>{const{editory:{editableConfiguration:{enabled:t=!1,pageTypeToFetch:n}={}}={},siteSpecificConfig:i}=e;return Boolean(t&&n&&(null==i?void 0:i.publisherClassName))})(e))return e;try{const t=yield(e=>s(void 0,void 0,void 0,function*(){const t=(e=>{const{siteSpecificConfig:t,editory:{editoryUrl:n,editableConfiguration:{pageTypeToFetch:i}={}}={}}=e;return(null==t?void 0:t.publisherClassName)&&i?`${n||"https://alertory-cdn.inventory.schibsted.io"}/editable-configurations/${t.publisherClassName}/${i.toLowerCase()}.json`:null})(e);if(!t)return null;try{return yield ne.get(t,{timeout:5e3})}catch(e){throw h("Failed to fetch S3 config",{error:e,url:t}),e}}))(e);return t?((e,t)=>p(t,e,ro))(e,t):e}catch(t){return h("Error fetching S3 config, using site config",{error:t}),e}}),ao="_adchoices_non_rtb",so=e=>{const{tcf:{nonRtb:{invCodeSuffix:t=ao}={}}={}}=b.get();return`${Lt(e)}${t}`},lo=(e,t)=>t?e:((e=>{e.filter(e=>!e.supportsNonRTB).forEach(e=>Kt(e.targetId))})(e),(e=>e.filter(e=>e.supportsNonRTB).map(e=>Object.assign(Object.assign({},e),{invCode:so(e.invCode)})))(e)),co=e=>`${Math.max(0,Math.round(e))}px`,uo=e=>{const{marginTop:t,marginBottom:n}=getComputedStyle(e);return e.getBoundingClientRect().height+parseFloat(t||"0")+parseFloat(n||"0")},po=(e,t)=>{const n=document.body;if(n)for(const t of Object.keys(e)){const i=e[t];n.style.setProperty(t,i)}},vo=()=>{const{pageSectionsSelectors:e}=b.get();(null==e?void 0:e.header)&&(e=>{const t=document.querySelector(e);if(!t)return;const n=uo(t);po({"--advertory-header-height":co(n)})})(e.header)};let go,ho=[];const mo=["takeover","wallpaper"],yo=e=>{const t=(e=>{var t;const n=C.getData("alertoryConfigKeywords"),{queryConfig:i,placements:r,tcf:o,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:y}=e,w=null!==(t=null==i?void 0:i.batchSize)&&void 0!==t?t:f;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:r,tcf:o,queryConfig:Object.assign(Object.assign({},i),{batchSize:w})},a&&{glimr:a}),s&&{appearanceConfig:s}),h&&{takeover:h}),m&&{fullscreenScroll:m}),y&&{fullWidth:y})}})(e);window.advertory={initialized:!0,version:"3.8.1",siteConfig:e,alertoryConfig:t}},fo=()=>s(void 0,void 0,void 0,function*(){const{pageOptions:e}=b.get(),{preparePageOptions:t}=b.getHandlers(),n=(()=>{var e,t;const{pageSetup:{pageOptions:n}={}}=b.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 s(void 0,void 0,void 0,function*(){const{tcf:e,pageContext:{isMobileApp:t,countryCode:n}}=b.get();return(yield F(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=C.getData("alertoryConfigKeywords");if(Object.keys(t).length)return;const n=Yi(e);C.setData("alertoryConfigKeywords",n)})(r.keywords),At(()=>go.setPageOpts(r))}),wo=e=>s(void 0,void 0,void 0,function*(){const{prebid:t,tcf:n,pageContext:{isMobileApp:i,countryCode:r}}=b.get(),o=yield F(n,i,r,"loadPlacements"),a=lo(e,o);bo(a);(null==t?void 0:t.enabled)&&o&&!xt()?(h("core loadPlacements prebid enabled"),yield Ot()):(h("core load tags invoked without prebid enabled"),xo(a))}),bo=e=>{const{prepareTag:t}=b.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)),r=t.findIndex(e=>n.targetId.includes(e));return-1!==i&&-1===r?-1:-1===i&&-1!==r?1:i-r})})(e).forEach(e=>{h("core defineTags",{placement:e});const i=Hi(e);if(zi(e.targetId)){const r=t(i),o=(e=>{const{allowedFormats:t,invCode:n,keywords:i,sizes:r}=e;return{adTypes:t,invCode:n,keywords:Qi(i),sizes:r}})(r);n.push(o),At(()=>(h("core defineTag - add to the queue",{placement:e,preparedTag:r}),go.defineTag(r)))}}),(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)},xo=e=>{const t=e.filter(({targetId:e})=>zi(e)).map(({targetId:e})=>e);t.length&&At(()=>(h("core loadTags",{placementsIdsToLoad:t}),go.loadTags([...t])))},Eo=(e,t)=>s(void 0,void 0,void 0,function*(){const{appearanceConfig:n,pageContext:{deviceType:i}}=b.get(),{requestThreshold:r,refresh:o}=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&&(h("core showAd - subscribe for show tag with thresholds",{placement:e,adObj:t,requestThreshold:r,deviceDefaultThreshold:s}),yield ii(a,null!=r?r:s)),a&&(null==o?void 0:o.scroll)&&(h("core showAd - setup refreshing",{placement:e,adObj:t}),a.dataset.refresh=o.scroll.toString())}),Co=e=>e.some(({targetId:e})=>mo.some(t=>e.includes(t))),Io=e=>s(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),r=(e=>{const{queryConfig:{placementBatches:t,batchSize:n=f}={},pageContext:{deviceType:i}}=b.get(),r=un(e),o=Object.keys((null==t?void 0:t[i])||{}).map(e=>r[e]||[]).filter(e=>e.length>0),a=new Set(o.flat().map(({targetId:e})=>e)),s=e.filter(({targetId:e})=>!a.has(e));return[...o,...gi(s,n)]})(i);for(const e of r)Co(e)?(h("core loadAds without lazy loading",{placementsToLoad:e}),yield wo(e)):e.length&&(h("core loadAds with lazy loading",{placementsToLoad:e}),yield Ao(e));const{finnBlink:o}=b.get();if((null==o?void 0:o.enabled)&&n.length>0){const{handleFinnBlinkOnlyPlacements:e}=yield import("./index-Gspn87SW.js");yield e(n)}}),Ao=e=>s(void 0,void 0,void 0,function*(){const{queryConfig:{lazyLoadingV3:{enabled:t=!1,rootMargin:n="200% 0px"}={}}={}}=b.get(),i=[];if(!t)return h("lazy load is not enabled",{placements:e}),void(yield wo(e));const r=new IntersectionObserver((t,n)=>{t.filter(({isIntersecting:e,target:{id:t}})=>e&&!t.includes("wallpaper")).forEach(t=>{h("lazy load is enabled - handler start",{loadedTargetIds:i,placements:e});const r=e.every(e=>i.includes(e.targetId)),o=e.map(e=>e.targetId);!r&&i.push(...o),!r&&wo(e),h("lazy load is enabled - handler stop",{loadedTargetIds:i,placements:e,arePlacementsLoaded:r,targetIds:o}),n.disconnect()})},{rootMargin:n});e.forEach(e=>{const t=document.getElementById(e.targetId);t&&(h("lazy loading - observe element",{targetId:e.targetId,element:t}),r.observe(t))})}),So=()=>s(void 0,void 0,void 0,function*(){const{siteEvents:e,initNativeAd:t}=b.getHandlers(),{wallpaper:n,fullscreenScroll:i}=b.get(),r=[];At(()=>{go.onEvent("adRequested",()=>{e.adRequested()}),go.onEvent("adAvailable",r=>s(void 0,void 0,void 0,function*(){var o,a,s,d,l,c;h("core adAvailable start",{placementsAvailable:ho,adObj:r,isFullscreenScrollAd:Se(r),isFinnBlink:De(r.targetId),isNativeAd:Te(r),isMediation:Wi(r),isTakeoverAd:Oe(r),isCollapseAd:Le(r),isWallpaperAd:je(r)});const u=null===(s=null===(a=null===(o=null===window||void 0===window?void 0:window.apntag)||void 0===o?void 0:o.requests)||void 0===a?void 0:a.tags[r.targetId])||void 0===s?void 0:s.adResponse.ads;if(Wi(r)&&u&&(null===(d=u[1])||void 0===d?void 0:d.rtb)&&(r.banner=null===(c=null===(l=u[1])||void 0===l?void 0:l.rtb)||void 0===c?void 0:c.banner),Se(r)){const{modifyFullscreenScrollAd:e}=yield Promise.resolve().then(function(){return mt});e(r)}const{widescreenSwitching:p}=b.get();if(Re(r)&&(null==p?void 0:p.enabled)){const{initWidescreenSwitching:e}=yield import("./index-CNeBL5Fg.js");e()}if(Se(r)&&!De(r.targetId)){h("core adAvailable: creating fullscreen scroll container",{targetId:r.targetId,width:r.width,height:r.height,bannerWidth:r.banner&&"object"==typeof r.banner?r.banner.width:r.banner,bannerHeight:r.banner&&"object"==typeof r.banner?r.banner.height:void 0});const{createFullscreenScrollAd:e}=yield Promise.resolve().then(function(){return mt});e(r,i)}if(!Te(r)||Wi(r)||De(r.targetId)||null==t||t(r,b.get()),Oe(r)&&!Le(r)){const{modifyTakeoverAdContent:e,createTakeoverAd:t}=yield import("./index-B2LcZgS8.js");e(r.targetId),yield t(r)}if(je(r)&&(null==n?void 0:n.enabled)){const{initWallpaperAd:e}=yield Promise.resolve().then(function(){return Wt});e(()=>At(()=>window.apntag.showTag(r.targetId)),n),C.setData("wallpaper",{isAvailable:!0})}(e=>e.targetId.includes("skyscraperleft")&&!!e.banner)(r)&&C.setData("horseshoe",{isAvailable:!0}),e.adAvailable(r);const v=ho.find(({targetId:e})=>e===r.targetId);v&&(yield Eo(v,r),ho=ho.filter(e=>e.targetId!==v.targetId)),h("core adAvailable stop",{placementsAvailable:ho,adObj:r,isFullscreenScrollAd:Se(r),isFinnBlink:De(r.targetId),isNativeAd:Te(r),isMediation:Wi(r),isTakeoverAd:Oe(r),isCollapseAd:Le(r),isWallpaperAd:je(r)})})),go.onEvent("adLoaded",n=>s(void 0,void 0,void 0,function*(){const{refreshConfig:i,appearanceConfig:o,wallpaper:a,adScaleConfig:s}=b.get(),d=document.getElementById(n.targetId);if(De(n.targetId)){const{displaySpecialFormatsForFinnFallback:e}=yield import("./events-BRMbj_wt.js");e(n)}if(r.includes(n.targetId)&&Te(n)&&(null==t||t(n,b.get()),Gi({adObj:n})),!r.includes(n.targetId)&&Wi(n)&&r.push(n.targetId),Le(n)&&Kt(n.targetId),Oe(n)){const{modifyTakeoverIframe:e}=yield import("./index-B2LcZgS8.js");e(go,n.targetId)}if((e=>$e(e,Ce.NINESIXTEEN))(n)){const{applyNinesixteenFormat:e}=yield import("./index-DSgRyr62.js");e(n)}if((e=>$e(e,Ce.FULLSQUARE))(n)){const{applyFullsquareFormat:e}=yield import("./index-DSgRyr62.js");e(n)}if(ke(n)){const{applyFullwidthFormat:e}=yield import("./index-DSgRyr62.js");e(n)}((e,t)=>{if(!(null==t?void 0:t.scrollRefreshEnabled))return;const{targetId:n}=e,i=document.querySelector(`#${n}`),r=null==i?void 0:i.parentElement;if(!r||!i)return;ui({adWrapper:r,placementContainer:i});const{delayTimeToNextRefresh:o=1e3}=t,a=(new Date).getTime();i&&"true"!==i.dataset.subscribedForRefresh&&(i.dataset.subscribedForRefresh="true",i.dataset.refresh&&vi(i,a,o))})(n,i),(null==o?void 0:o.clearProbableDimensionsEnabled)&&(e=>{const t=document.querySelector(`#${e}`);t&&(t.style.minWidth="",t.style.minHeight="")})(n.targetId);if(C.getData("horseshoe").isAvailable&&(null==a?void 0:a.enabled)){const{adjustAdToHorseshoe:e}=yield Promise.resolve().then(function(){return Wt});e(n.targetId)}if(null==s?void 0:s.enabled){const{scaleAds:e,scaleAdIpadAirPortrait:t}=yield import("./index-D8XWuhGW.js");e(n),t(n)}e.adLoaded(n),yt(n.targetId),d&&(d.classList.add(wt),(e=>{var t,n;const{pageSectionsSelectors:i}=b.get(),r=null==i?void 0:i.mainFirstColumn,o=r?null===(t=document.querySelector(r))||void 0===t?void 0:t.clientWidth:void 0;o&&e.clientWidth>o&&(null===(n=e.parentElement)||void 0===n||n.setAttribute("data-two-column-ad-layout","true"))})(d)),Gi({adObj:n}),(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:r}=e;r?t.dataset.adSizes="[1,1]":n&&i&&(t.dataset.adSizes=`[${i},${n}]`)})(e,i)})(n),window.dispatchEvent(new CustomEvent("advertory:adLoaded",{detail:{targetId:n.targetId,adFormat:Ji(n)}}))})),go.onEvent("adNoBid",t=>s(void 0,void 0,void 0,function*(){var n;if(Kt(t.targetId),null===(n=b.get().drEdition)||void 0===n?void 0:n.enabled){const{handleDrEditionBackfill:e}=yield import("./index-DHPOXwNF.js");yield e(b.get(),t)}if(Oe(t)){const{handleTakeoverCookieOnAdNotShown:e}=yield Promise.resolve().then(function(){return Bi});yield e(t)}e.adNoBid(t)})),go.onEvent("adError",(t,n)=>s(void 0,void 0,void 0,function*(){if(Oe(n)){const{handleTakeoverCookieOnAdNotShown:e}=yield Promise.resolve().then(function(){return Bi});yield e(n)}e.adError(t,n)})),go.onEvent("adCollapse",()=>{e.adCollapse()}),go.onEvent("adRequestFailure",t=>s(void 0,void 0,void 0,function*(){Kt(t.targetId),yield Vn(b.get(),t),e.adRequestFailure(t)})),go.onEvent("adBadRequest",t=>s(void 0,void 0,void 0,function*(){Kt(t.targetId),yield Vn(b.get(),t),e.adBadRequest(t)})),go.onEvent("adLoadedMediated",t=>e.adLoadedMediated(t)),go.onEvent("adNoBidMediated",t=>s(void 0,void 0,void 0,function*(){yield Vn(b.get(),t),e.adNoBidMediated(t)}))})}),To=(e,t)=>s(void 0,void 0,void 0,function*(){var n;if(!(null===(n=null===window||void 0===window?void 0:window.advertory)||void 0===n?void 0:n.initialized))return[];const{clearAds:i,reloadExistingAds:r,renderFinnBlinkPlacements:o,contextSelector:a}=null!=t?t:{};if(i)return Yt(),[];r&&(Yt(),document.querySelectorAll('[data-advertory-ad-rendered="true"]').forEach(e=>{Gt(e.id)})),x(null!=e?e:{}),yield fo();const{clientSidePlacements:s,serverSidePlacements:d}=to(ln(a));let l=s;return o&&(l=l.filter(e=>De(e.targetId))),io(d,b.get()),l.length>0&&(ho=[...ho,...l.map(e=>Object.assign({},e))],yi(l),wi(l),yield Io(l)),ho}),ko=(e,t)=>s(void 0,void 0,void 0,function*(){var n;b.set(e),b.setHandlers(Object.assign(Object.assign({},t),e.customHandlers));const{norstat:i,kilkaya:r,rightColumnSplit:o,drEdition:a,finnBlink:d}=e;if(C.initialize(),window.addEventListener("message",ti,!1),go=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=go,h("Apn tag is set up on window"),yield Promise.allSettled([s(void 0,void 0,void 0,function*(){const{tcf:e,pageContext:{isMobileApp:t,countryCode:n}}=b.get();(yield F(e,t,n,"xandr-endpoint"))||go.setEndpoint("ib.adnxs-simple.com",!0)}),s(void 0,void 0,void 0,function*(){if(xt())return;const{prebid:e,tcf:t,pageContext:{isMobileApp:n,countryCode:i}}=b.get(),r=yield F(t,n,i,"prebid");(null==e?void 0:e.enabled)&&r&&(yield Ee(null==e?void 0:e.prebidUrl))}),ge(e),s(void 0,void 0,void 0,function*(){const{developerOptions:{astUrl:e}={}}=b.get();yield Ee(null!=e?e:"https://adsdk.microsoft.com/ast/ast.js")}),s(void 0,void 0,void 0,function*(){const{developerOptions:{gptUrl:e}={},tcf:t,pageContext:{isMobileApp:n,countryCode:i}}=b.get();(yield F(t,n,i,"gpt-endpoint"))&&(yield Ee(null!=e?e:"https://securepubads.g.doubleclick.net/tag/js/gpt.js"))}),s(void 0,void 0,void 0,function*(){const{brandmetrics:{enabled:e,brandmetricsUrl:t}={},tcf:n,pageContext:{isMobileApp:i,countryCode:r}}=b.get(),{getConsentAsync:o}=R(n,0,r),a=yield o();if(e&&t&&a){if(yield Ee(t),document.querySelector(`.${er}`))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(er)})&&(t.disconnect(),window._brandmetrics=window._brandmetrics||[],window._brandmetrics.push({cmd:"_loadsurvey"}))}}).observe(document,{childList:!0,subtree:!0,attributes:!0})}}),$(),s(void 0,void 0,void 0,function*(){const{gdpr:{gdprUrl:e,allowHidingAds:t=!0}={}}=b.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")})]),null==i?void 0:i.enabled){const{loadNorstat:e}=yield import("./index-W6ShHO2r.js");yield e()}h("Libraries have been loaded and trackers have been set"),vo(),yield So(),yield fo(),h("Page options have been set"),yo(e),h("Advertory is setup on window");const{clientSidePlacements:l,serverSidePlacements:c}=to(ln());if(ho=l,io(c,e),yi(ho),wi(ho),yield Io(ho),h("Ads has been loaded",ho),zn(e,ho),Xi(ho),null==d?void 0:d.enabled){const{replaceAdsWithFinnBlink:t}=yield import("./index-Gspn87SW.js");yield t(null===(n=null==e?void 0:e.pageContext)||void 0===n?void 0:n.deviceType,e.finnBlink)}if(null==a?void 0:a.enabled){const{handleDrEdition:t}=yield import("./index-DHPOXwNF.js");yield t(e)}if(null==o?void 0:o.enabled){const{initRightColumnSplit:t}=yield import("./index-Dhj1D31U.js");t(e.rightColumnSplit)}if(null==r?void 0:r.enabled){const{runKilkaya:t}=yield import("./index-HE8X7FgA.js");yield t(e)}}),Oo=(e,t)=>s(void 0,void 0,void 0,function*(){yield((e,t)=>s(void 0,void 0,void 0,function*(){var n,i;const{initConsentManager:r,getConsentAsync:o}=R(e.tcf,null===(n=e.pageContext)||void 0===n||n.isMobileApp,null===(i=e.pageContext)||void 0===i?void 0:i.countryCode),a=yield oo(e);yield $n(),yield Zi(r),yield Zi(o),h("TCF resolved successfully"),yield ko(a,t),h("Run function resolved successfully")}))(e,t)}),Po=(e,t,n,i)=>{var r;const{image:o,icon:a,sponsoredBy:s,title:d,clickUrl:l,cta:c,body:u,desc2:p,video:v,description:g,customTitle1:h,customTitle2:m,customTitle3:y,customTitle4:f,customBody1:w,customBody2:b,customBody3:x,customBody4:E,customBody5:C,customIcon1:I,customIcon2:A,customDisplayUrl1:S}=e,T=(e,t="")=>{var n;return e?null!==(n=e.url)&&void 0!==n?n:e:t};return Object.assign({containerId:n,img:T(o),imgWidth:null==o?void 0:o.width,imgHeight:null==o?void 0:o.height,imgAltText:null!=d?d:"",logo:(()=>{var e;const t=(null==p?void 0:p.includes("sponsor"))&&"dark"===(null===(e=i.appearanceConfig)||void 0===e?void 0:e.theme)&&I;return T(t?I:a)})(),sponsoredBy:null!=s?s:"",title:null!=d?d:"",url:null!=l?l:"",cta:null!=c?c:"",description:null!==(r=null!=u?u:g)&&void 0!==r?r:"",desc2:null!=p?p:"",video:v,customTitle1:null!=h?h:"",customTitle2:null!=m?m:"",customTitle3:null!=y?y:"",customTitle4:null!=f?f:"",customBody1:null!=w?w:"",customBody2:null!=b?b:"",customBody3:null!=x?x:"",customBody4:null!=E?E:"",customBody5:null!=C?C:"",logo2:T(A),previewVideoSrc:null!=S?S:""},t)},jo=(e,t)=>{const n=(i=j,window.location.href.includes(i));var i;const r=new URLSearchParams(window.location.search).get(j),o=t.includes("native_recirc");return n&&r?r:(null==e?void 0:e.includes("recirc"))?o?"native_recirc":"recirc":(null==e?void 0:e.includes("sponsor"))?"sponsorstripe":null},Lo=(e,t,n,i)=>{const o=document.querySelector(`#${e}`);o&&t&&(o.innerHTML=t,((e,t)=>{const n=e.parentElement,{publisher:i,pageType:o}=t,a=i&&Object.values(r).includes(i);n&&a&&Kr(i,e,Gr.NATIVE_AD,o)})(o,n),i())},No=(e,t,n)=>{const i=((e,t,n)=>{var i;const{displayTemplates:r,videoTemplates:o}=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=jo(e.targetId,l))&&void 0!==i?i:c,p=lt[t.language||N.NO],v=Po(s,p,d,t);return(s.video?o[u]:r[u]||r.default)(v,t)})(e,t,n);Lo(e.targetId,i,t,()=>{const{nativeTrackingConfig:{enabled:n=!0}={}}=t;n&&Jr(e,t)})},Do=e=>(t,n)=>{var i;const{targetId:r}=t,o=document.querySelector(`#${r}`);if(!o)return;const a=e.getOptions(null!=n?n:{});No(t,a,e.templates),null===(i=e.postProcess)||void 0===i||i.call(e,t,o)},Mo=()=>{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},_o=e=>{const{siteSpecificConfig:t}=b.get(),n=(null==t?void 0:t.dynamicOutstreamFormats)||[];return 0!==n.length&&n.some(t=>e.includes(t))};class Ro{constructor(){this.keywords={}}add(e){return Object.assign(this.keywords,e),this}addAsync(e){return s(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 s(this,void 0,void 0,function*(){return e&&Object.assign(this.keywords,yield t()),this})}build(){return this.keywords}}const Fo=9826;class qo{constructor(){this.getSupplyTypeKeywords=()=>{const{pageContext:{deviceType:e,isMobileApp:t}}=b.get();if(t){return{"aa-sch-supply_type":`app_${e===Xt?"phone":Zt}`}}return{"aa-sch-supply_type":`web_${this.getPageOptionsFormatDevice(e)}`}}}prepare(e){return s(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 s(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=Ci("_pulse2data");return e?e.split(",")[2]:void 0})()}getExternalUid(){return s(this,void 0,void 0,function*(){return yield Ii(b.get())})}isTrackingForbidden(){return s(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=Fo}={}}=b.get();return"true"===O("inventory_test")?t:e}getCMPValue(e){return localStorage.getItem(`CMP:${e}`)?"0"===localStorage.getItem(`CMP:${e}`)?"0":"1":"0"}getPublisherKeywords(){const{pageContext:{publisher:e}}=b.get();return{"aa-sch-publisher":`${e}`}}getAnalyticsConsentKeywords(){return{"aa-sch-cmp_analytics":this.getCMPValue("analytics")}}getAdvertisingConsentKeywords(){return s(this,void 0,void 0,function*(){const{tcf:e,pageContext:{isMobileApp:t,countryCode:n}}=b.get(),{getConsentAsync:i}=R(e,0,n);return{"aa-sch-cmp_advertising":(yield i())?"1":"0"}})}getPageTypeKeywords(){const{pageContext:{pageType:e}}=b.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 $o=new qo;function Bo(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(),r=fn();return{OS:r,mobileOS:["ios","android"].includes(r)?r:"unknown",isHybridApp:i.includes("hermes"),appMode:e?"hybrid":"notinapp"}}$o.prepare.bind($o);const Uo=["aLOLE","xBqQj","1KaqJ","1nzXzK","opm8zV","4qKXKR","Ad9QgE"];function Vo(e){return t=window.location.pathname.split("/").slice(-2,-1).pop()||"",Uo.includes(t)?{"no-sno-news-section":`${e}_doedsfall`}:{};var t}class Ho extends qo{constructor(){super(...arguments),this.getDeviceKeywords=()=>{const{pageContext:{deviceType:e}}=b.get();return{"no-sno-device":this.getPageOptionsFormatDevice(e)}}}getAppTypeKeywords(){const{pageContext:{deviceType:e,isMobileApp:t}}=b.get(),{OS:n,isHybridApp:i}=Bo(t);return{"no-sno-apptype":n&&e&&i?`${n}_${this.getPageOptionsFormatDevice()}_hybrid`:"none"}}getObituariesKeywords(e){return Vo(e)}getSectionPageTypeKeywords(){var e,t;const{pageOptions:n,pageContext:{pageType:i}}=b.get(),r=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":`${r.split("_").pop()||r}_${"article"===i?"article":"front"}`}}}const zo=new class extends Ho{prepare(e){return s(this,void 0,void 0,function*(){var t,n,i,r,o,a,s;const d=b.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===(o=null===(r=d.pageSetup)||void 0===r?void 0:r.pageOptions)||void 0===o?void 0:o.keywords)&&void 0!==a?a:{},u=null===(s=d.siteSpecificConfig)||void 0===s?void 0:s.publisherClassName,p=new Ro;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(me()).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({},he(N.NO)),g?{externalUid:yield this.getExternalUid()}:{}),member:this.getMember()})})}},Wo=zo.prepare.bind(zo);class Ko extends qo{constructor(){super(...arguments),this.getDeviceKeywords=()=>{const{pageContext:{deviceType:e}}=b.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!==(o=null===(r=window.screen)||void 0===r?void 0:r.height)&&void 0!==o?o:0};var n,i,r,o;return{"se-generic-viewportheight":e.height,"se-generic-viewportwidth":e.width,"se-generic-screenheight":t.height,"se-generic-screenwidth":t.width}}getExternalIdSrc(){return s(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}}=b.get(),{appMode:t,mobileOS:n}=Bo(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}}=b.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 Go=new class extends Ko{prepare(e){return s(this,void 0,void 0,function*(){var t,n,i,r,o,a;const d=b.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===(o=null===(r=d.pageSetup)||void 0===r?void 0:r.pageOptions)||void 0===o?void 0:o.keywords)&&void 0!==a?a:{},u=new Ro;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,()=>s(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(me()).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"===Ci("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({},he(N.SE)),v?{externalUid:yield this.getExternalUid()}:{}),member:this.getMember()})})}},Jo=Go.prepare.bind(Go);st(".advertory-splash-navbar-wrapper{width:100%;border-bottom-right-radius:0 !important;border-bottom-left-radius:0 !important}.advertory-splash-navbar-wrapper .advertory-splash-navbar{display:flex;justify-content:space-between;align-items:center;width:100%;margin:0 auto;padding:14px;cursor:default}@media screen and (min-width: 600px){.advertory-splash-navbar-wrapper .advertory-splash-navbar{padding:24px 30px}}@keyframes elementsAnimation{0%{opacity:0;pointer-events:none;cursor:default}95%{opacity:0;pointer-events:none;cursor:default}100%{opacity:1;pointer-events:all;cursor:pointer}}.advertory-splash-navbar-wrapper .advertory-splash-navbar .advertory-splash-logo{display:block;height:18px;width:fit-content}@media screen and (min-width: 600px){.advertory-splash-navbar-wrapper .advertory-splash-navbar .advertory-splash-logo{height:26px}}.advertory-splash-navbar-wrapper .advertory-splash-navbar .advertory-splash-close{display:flex;align-items:center;gap:8px;font-family:Arial,Helvetica,Verdana,Geneva,sans-serif;font-size:14px;line-height:20px;animation:elementsAnimation 1.5s linear;cursor:pointer}.advertory-splash-navbar-wrapper .advertory-splash-navbar .advertory-splash-close:hover{text-decoration:underline}");const Qo=()=>e("div",{role:"button",tabIndex:1,"data-testid":"advertory-splash-navbar-wrapper",className:"advertory-splash-navbar-wrapper",style:{display:"none"},children:t("div",{className:"advertory-splash-navbar",children:[e("img",{id:"advertory-splash-logotype",className:"advertory-splash-logo",width:"250",height:"30"}),e("div",{className:"advertory-splash-close","data-testid":"advertory-splash-close",children:e("span",{id:"advertory-splash-close-label"})})]})});var Yo="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEIAAABCCAYAAADjVADoAAAAAXNSR0IArs4c6QAAAtZJREFUeAHd3EFuwjAQBVDUbZeIM7DqUWANZ0PiDiy4D0JVu4BlpapVK/p/qpEgEGJjezJjS6NAoI3n4Uwg4IxGaKfTaYJYI/aIA2KDmPKxmhpyekFsEUfEDrFCjJsccYMI74h2+8SKeS0QyGWJ+GonifuviDFHA0dCV/vGA+4xkMMC8dOVJNavCMHd4V5zjYHE+hCY+44QrAl9zSUGkgpBYO5HQrAwhjRXGEiINeHe7nCe85YQUwQLY0hzgYFEQkcCc2YBfZEjxxx3mGRIM42BBGIQOGIWF0dGrIjBoKK5o0kygoh4xsiG4BkjO4JHjGIInjCKI7Qwbr0/Rx+ummoBxdbTjg6SZOgSG+TRxBSGOoJgWcIYDMESxuAIFjCAsESEfna4fscoSeRaojPqNcMcgmBqYphF0MQwj6CB4QahJIY7hBIYDyAspR8mlkgg+WjiHkFeiRSMahBSMKpDeBCD50Bj3jHaqgmSdNcycjfB03sbsXwhCA46HlNA70n4RciI4R8hA0Y9CC2M0C+RuJuoIjxJRxWWz9hGzPZ+8fwPhX7pbQKvbsxJlfOiyXOlM72eFtxSAoKA+MfIgOAfIyOCX4xIBB4dOPxDmp/dBNksEUwupDWHSDxxhqgHA8lEI0idrgYjBaEajBwI7jFyIrjFKIHgDqMkghsMDYQEDJ1f+2kimMUYAsEcxpAIZjAsIAyOYQnhDCPm7Dg/w6QVUIsI6hiWEdQwPCAUx/CEUAwDCLE/6zXzXST6nqeAekbINjJqQEjGAAKnCYeeL1T9Gk6Si10in5jdhBP7ppzlx7nSIY0IlxPBYnuo+Hz0NQZjQwhOGO9rLkZC2xlJhWIcCLHrUXA1Eh7E2BOClw7oaq4RBAXJ9Y2MNSHGCF46oN1YQN3UBEm6a4lciHFrxvMb1k+av8MNYnBkcDdhzWAB/Z8m3PWfHa5HTpz+zbnwvDAAr5LAS0Y0CH9NGDAEswYjMgAAAABJRU5ErkJggg==",Xo="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGwAAABsCAYAAACPZlfNAAAAAXNSR0IArs4c6QAACT5JREFUeAHtnc1vFlUUximICbLAmoAuSCw7IlsghEQpJWGhEaksJbZdskDSP4Ck6T9AQPcE1I2JEjS6UosbEvzYKbpSWAku+EgEo4nB3wNv67zT+Z5zP97pnOTJOzP33nOec8503pnz3rldt66XtRWBR48ebQcnwLNry/Pq3io2gxhtrz7KQU9I7Aa/A8l1MOHAzEirJCY7wM9AoljtDuIQho+AP0FSbrGzJwihCI0Si73gdjJAbCtmR7zSxeBJ8C/IkgccPOqVUITGFAPwMCtAHFPsTjqnjZH14AwoExE65ZxQpAbkO8g7oZOxUyzXO3EDxZvApaS1Ctvn6OOGkBMv2ymVr0A+1xHFdFM7y6nRKNwGrtVhkeh7me1nUio7tysfgXxtIortNpOgoGgn+LUJi8SY79h+wYRQhErkG5CPbUQx3tnKPRRMgjttWCTG3mD7pVaEIhwsn4B8sxDFerKRmww8Dv62YJHQcZftqUaEIhwkX8C9hH8Wm4r58VruMuC0heUcHf9wfKYWoQg7ywcgX1zJ6VK3sbwRnHfFIKV3oZRQpB3wYyHli6vd8yjemBkGGraAL4FPuYixpzMJRXhQXIE4+xTlZMtQODiwFfzok0XC1hLb0ReO4TgOxDWEKDfPKWnLD7Uvs71rKIv+diYxdRVCE/5M1rM04HaVUZP1Rpr1Vm4OrmiD0FPA9586JockysIxDLMKuEPEPewoN6u/yzi46MF4kQkVjt9YOZMCb8BFBVxxCimLhWGA2Qxwebta5nwUhWNIngJVCrhl/jRtVw6qPf7QcQpYPxDWJX6WAcvfsYUnmWWjbIK6Bdy6vpX1V+ynavnFAMuSSxnBvHavhWNItCng5vlQ93jzEh6WLIqadQmn+6uo+nyts61B54h8bVckx5HRPusqJA8fu3U1waEYrusqHP//LFIhEVW6oFPf19IdUtz80ItH8yD0ndPbVRJRpQ++zIDQd8TzVbg27oODMTybLDR2YDAQP3wVcDGVKf4mK2E+hqf/C/BY/fRfkknGhCjgpjOmqW97S6jaNmMwOUEyTcjX/tcYqlw4Vl+wBEKKJpXusM1GRW0YDlnBXg76dTYmyiirD1DfkLKE8fEyrk7bIaBLzPsgpBQWjiG2B6hPSFGM4vntDzKLIaOB7czCMcdjuEkqLuA6/ZMqUE5wZkHo2+SVGcdwiaGAO1sQstpNY7VHlAwgSIfo8jEY/lm7ZJxx87mBvneM9dZRd5/Ox8bGxr6qM6isr3nCZJCk6RfSz8GL2l+DchOfXyNZP1n77uTniwHRfZD9wZrwCOiTz/tcJEu+O0mYFEP4Fh8HwGfaXyMiXw8MfHfisrOEiS3EH/Chd8Xe037HRT4eHfg8+q7yvRa6cAwFJ6JiuNsCbiL9Tm46EvqHNnFsmgMfAtv3oYaseN35C2tv8Vd1yZdVrwmTUyRNRU9d623eh5LSMPIHZl8nWd/6NO89YXKOpO3g4wvQ7n0oKQsjv2D2VZL1m2/zTm868pwZOLqf9m/y+kR8XJz3h0iWYhIkYTKMw3f5OAw+0P6IiLgeHnAfEcoOaHKJDF04hkKpLDpwfXRVEq7QheO8jKmYPTu6kXXInMAcApr1GouIi4rZveRFgADtAjcjyJg4hHoFKy887Y/j1HZwAlSeW1FmFV2acfw9CCWy3W4GbsJJdGkuiWLU3dXccG4z+BT4FtncnIh3q010JScrdXs1N5zdAN4FvkS2NrTKUGIwurKmA3Z/NTccd104Ni/gwllzSR6CLJG9bq/mhoPTIC8AWUGpekw6VZQ2E/RVnUtyhr5uihco3gQugTpiOskfw1mXmDp80n1NZ+CivMlLI4qp7a8XKNwGroEmcplBZqu5oSv5Jd6Ez/IY0xm48hHI1yai2Nr8eoGi6FZzg9M4uAKaisaOW10D0WXx4mO3V3MjSE1nHJvOwIWH5cuA3V/NjYDVKRybFnCxPQWsS2ndX82NoM2BohnHapuzugRKD/pmSmzS3Eq6vZobockrHJsXcLG10CoV1Qefp2v2O3A0bAEjvZob/NOFY9MCLvpDvAw4tJrb2ODPeyufSyBEdfoKdqf5Ffcen62FoGqJiGNAJaaP0Hu7tVIUoFd3lZ+ASeBbNOX7FXy589gwZN4EIeU6xid8R6GqPXEDy/+OI1ScdBI+ERj0q7ktByP1SWysqytNEn6RQau/yzhY5xa5ieGyMZkv5aVi6G0XsirgilNIKX4UgdkMKLpFdk1eleyVl/K8ZSdlSByAuIQS5WAmRSt7l44uHgjrOn6WAW4q2dluPz4qm0BF65CiR5GpApqrmxhgWXJp6rxp4Xi1l8NHINmmgNvUx/S4Gxxo9g8ZGGhR1EwTqrvfr+Y2fF4V7xHd0T7rit173IqP3bqa4FAM1/W78DhYIf61uqBT39fSHVJMf+hdCQAezYPQd079am4rGamwQcJieDZZqEC1sAt++CrgYipT9Hyn14ndC4ZiePq/AI/VT/8l7jMmRAEXs0NiOpekxOUnzZi3mlsx5EnNnX41t0rZGnQiuJpbsVQzyNbdKxWOMaoCrvqGlCWMm80lqZOrlb4QaDq3wjJw/WpuKxmpuEH0Fy0z0EBXZuEYPTHcJBUXcCvG2LwbwZkF0RSO4RJDAXfWMtCPf3G2VEiQ+tXcngT0Ph/9am6WJ5dDXTfR3a/m5jDAlqr71dwso+lYV7+am+MAW6rvV3PjBmYURMXwecvMF+kyv0ssMoZj07T3q7kVBamkzWvCxIWk9au5lSSlqNl7wgZJ28Fnv5pbUWZy2rzPShIPphxr2bp+NbecpBQdDpIwESJp/WpuRZmJuY3vtdCFYyiUSpwF3FCJJVyhC8d5GVMxezZUXKK2S2DyXsrLC6br45qB26/mVnTWEKD0S3muk5Kn3/RlwCKfR76NCHZqNbeRT0gVB0haJ1Zzq+JrZ/qQtJFeza0ziajrCIlzPePYawG3rv8j2Z+kTYOHwFqkU0XpXqwjQGD3As2atRL/M3CtgxK7PjJlNePYdDW32OMWlB9J04zjKy3+zDR2PKgTa804AW8649h0Nbe1FvfW/pK4OoXjvoDbOuIGCkjaHCiacay2OQNTvQqrCJCQvMJxX8C1CrK1HpKWLhx3roAbZE6HdaKS+kiak9Xckjb67T4ClSPwH3Dy/EjlG8AUAAAAAElFTkSuQmCC";st(".advertory-welcome-page-close{padding:0;background:none;border:none;z-index:1;position:fixed;top:42px;left:16px;color:#fff;cursor:pointer;filter:drop-shadow(rgba(0, 0, 0, 0.2) -1px -1px 1px) drop-shadow(rgba(0, 0, 0, 0.2) 1px 1px 1px)}.advertory-welcome-page-close .advertory-welcome-page-close-image{width:22px;height:22px}@media screen and (min-width: 736px){.advertory-welcome-page-close .advertory-welcome-page-close-image{width:28px;height:28px}}.advertory-welcome-page-scroll{display:flex;flex-direction:column;align-items:center;color:#fff;font-size:18px;text-shadow:0 2px 5px rgba(0,0,0,.2);text-align:center;position:absolute;max-width:100%;z-index:1000;left:50%;transform:translate(-50%);cursor:pointer;filter:drop-shadow(rgba(0, 0, 0, 0.2) -1px -1px 1px) drop-shadow(rgba(0, 0, 0, 0.2) 1px 1px 1px)}.advertory-welcome-page-scroll .advertory-welcome-page-scroll-image{width:26px;height:26px;margin-top:19px}@media screen and (min-width: 736px){.advertory-welcome-page-scroll{font-size:calc(24px + 2*(100vw - 736px)/514)}.advertory-welcome-page-scroll .advertory-welcome-page-scroll-image{width:54px;height:54px;margin-top:22px}}");const Zo=()=>t(n,{children:[e(()=>e("div",{style:{display:"none"},className:"advertory-welcome-page-elements advertory-welcome-page-close smooth-close-takeover","data-testid":"welcome-page-close-button",children:e("img",{className:"advertory-welcome-page-close-image",src:Yo,alt:"Stäng annonsen",width:"28",height:"28"})}),{}),e(()=>t("div",{style:{display:"none"},className:"advertory-welcome-page-elements advertory-welcome-page-scroll smooth-close-takeover","data-testid":"welcome-page-arrow-icon",children:[e("span",{id:"advertory-welcome-page-scroll-label"}),e("img",{className:"advertory-welcome-page-scroll-image",id:"advertory-welcome-page-scroll-image",src:Xo,width:"54",height:"54"})]}),{})]});st(".advertory-topscroller-close{padding:0;background:none;border:none;z-index:1;position:fixed;top:42px;left:16px;color:#fff;cursor:pointer;filter:drop-shadow(rgba(0, 0, 0, 0.2) -1px -1px 1px) drop-shadow(rgba(0, 0, 0, 0.2) 1px 1px 1px)}.advertory-topscroller-close img{width:22px;height:22px}@media screen and (min-width: 736px){.advertory-topscroller-close img{width:28px;height:28px}}.advertory-topscroller-scroll{display:flex;flex-direction:column;align-items:center;color:#fff;font-size:18px;text-shadow:0 2px 5px rgba(0,0,0,.2);position:absolute;max-width:100%;text-align:center;z-index:1000;left:50%;transform:translate(-50%);cursor:pointer;top:50vh;filter:drop-shadow(rgba(0, 0, 0, 0.2) -1px -1px 1px) drop-shadow(rgba(0, 0, 0, 0.2) 1px 1px 1px)}.advertory-topscroller-scroll img{width:26px;height:26px;margin-top:19px}@media screen and (min-width: 736px){.advertory-topscroller-scroll{font-size:calc(24px + 2*(100vw - 736px)/514);top:55vh}.advertory-topscroller-scroll img{width:54px;height:54px;margin-top:22px}}@media screen and (min-height: 836px){.advertory-topscroller-scroll{top:50vh !important}}");const ea=()=>t(n,{children:[e(()=>e("div",{style:{display:"none"},className:"advertory-topscroller-elements advertory-topscroller-close smooth-close-takeover","data-testid":"topscroller-close-button",children:e("img",{src:Yo,alt:"Stäng annonsen",width:"28",height:"28"})}),{}),e(()=>t("div",{style:{display:"none"},className:"advertory-topscroller-elements advertory-topscroller-scroll smooth-close-takeover","data-testid":"topscroller-arrow-icon",children:[e("span",{id:"advertory-topscroller-scroll-label"}),e("img",{id:"advertory-topscroller-scroll-image",src:Xo,width:"54",height:"54"})]}),{})]});st(".advertory-splash-navbar-wrapper{width:100%;border-bottom-right-radius:0 !important;border-bottom-left-radius:0 !important}.advertory-splash-navbar-wrapper .advertory-splash-navbar{display:flex;justify-content:space-between;align-items:center;width:100%;margin:0 auto;padding:14px;cursor:default}@media screen and (min-width: 600px){.advertory-splash-navbar-wrapper .advertory-splash-navbar{padding:24px 30px}}@keyframes elementsAnimation{0%{opacity:0;pointer-events:none;cursor:default}95%{opacity:0;pointer-events:none;cursor:default}100%{opacity:1;pointer-events:all;cursor:pointer}}.advertory-splash-navbar-wrapper .advertory-splash-navbar .advertory-splash-logo{display:block;height:18px;width:fit-content}@media screen and (min-width: 600px){.advertory-splash-navbar-wrapper .advertory-splash-navbar .advertory-splash-logo{height:26px}}.advertory-splash-navbar-wrapper .advertory-splash-navbar .advertory-splash-close{display:flex;align-items:center;gap:8px;font-family:Arial,Helvetica,Verdana,Geneva,sans-serif;font-size:14px;line-height:20px;animation:elementsAnimation 1.5s linear;cursor:pointer}.advertory-splash-navbar-wrapper .advertory-splash-navbar .advertory-splash-close:hover{text-decoration:underline}.advertory-welcome-page-close{padding:0;background:none;border:none;z-index:1;position:fixed;top:42px;left:16px;color:#fff;cursor:pointer;filter:drop-shadow(rgba(0, 0, 0, 0.2) -1px -1px 1px) drop-shadow(rgba(0, 0, 0, 0.2) 1px 1px 1px)}.advertory-welcome-page-close .advertory-welcome-page-close-image{width:22px;height:22px}@media screen and (min-width: 736px){.advertory-welcome-page-close .advertory-welcome-page-close-image{width:28px;height:28px}}.advertory-welcome-page-scroll{display:flex;flex-direction:column;align-items:center;color:#fff;font-size:18px;text-shadow:0 2px 5px rgba(0,0,0,.2);text-align:center;position:absolute;max-width:100%;z-index:1000;left:50%;transform:translate(-50%);cursor:pointer;filter:drop-shadow(rgba(0, 0, 0, 0.2) -1px -1px 1px) drop-shadow(rgba(0, 0, 0, 0.2) 1px 1px 1px)}.advertory-welcome-page-scroll .advertory-welcome-page-scroll-image{width:26px;height:26px;margin-top:19px}@media screen and (min-width: 736px){.advertory-welcome-page-scroll{font-size:calc(24px + 2*(100vw - 736px)/514)}.advertory-welcome-page-scroll .advertory-welcome-page-scroll-image{width:54px;height:54px;margin-top:22px}}.advertory-topscroller-close{padding:0;background:none;border:none;z-index:1;position:fixed;top:42px;left:16px;color:#fff;cursor:pointer;filter:drop-shadow(rgba(0, 0, 0, 0.2) -1px -1px 1px) drop-shadow(rgba(0, 0, 0, 0.2) 1px 1px 1px)}.advertory-topscroller-close img{width:22px;height:22px}@media screen and (min-width: 736px){.advertory-topscroller-close img{width:28px;height:28px}}.advertory-topscroller-scroll{display:flex;flex-direction:column;align-items:center;color:#fff;font-size:18px;text-shadow:0 2px 5px rgba(0,0,0,.2);position:absolute;max-width:100%;text-align:center;z-index:1000;left:50%;transform:translate(-50%);cursor:pointer;top:50vh;filter:drop-shadow(rgba(0, 0, 0, 0.2) -1px -1px 1px) drop-shadow(rgba(0, 0, 0, 0.2) 1px 1px 1px)}.advertory-topscroller-scroll img{width:26px;height:26px;margin-top:19px}@media screen and (min-width: 736px){.advertory-topscroller-scroll{font-size:calc(24px + 2*(100vw - 736px)/514);top:55vh}.advertory-topscroller-scroll img{width:54px;height:54px;margin-top:22px}}@media screen and (min-height: 836px){.advertory-topscroller-scroll{top:50vh !important}}.advertory-takeover-wrapper{display:none;font-family:Arial,Helvetica,Verdana,Geneva,sans-serif;width:100%}.advertory-takeover-wrapper.advertory-impact-wrapper{z-index:10001}.advertory-takeover-wrapper.welcome-page-wrapper{clip-path:inset(0)}.advertory-takeover-wrapper.advertory-splash-wrapper{position:fixed;height:100vh;background-color:#fff;font-weight:700;z-index:10001}.advertory-takeover-wrapper.topscroller-wrapper div[role=button]{border-bottom-left-radius:0;border-bottom-right-radius:13px !important;right:unset}.advertory-takeover-wrapper.topscroller-wrapper iframe[id^=utif_]{width:100%;height:68vh}.advertory-takeover-wrapper.topscroller-wrapper .takeover-topscroller-label{right:0 !important;left:unset !important}.advertory-takeover-wrapper div[role=button]{background-color:hsla(0,0%,100%,.75) !important;border-bottom-left-radius:13px;border-bottom-right-radius:0 !important;left:unset !important;right:0}.advertory-takeover-wrapper .advertory-takeover{position:fixed;height:100vh;width:100%}.advertory-takeover-wrapper .advertory-takeover .advertory-takeover-label{position:absolute;top:0;left:0;font-size:10px;font-weight:700;background-color:hsla(0,0%,100%,.75);color:#585858;padding:7px;letter-spacing:.4px}.takeover-ad-hidden{display:none;visibility:hidden;height:0 !important}body.page-locked{position:fixed;top:0;left:0;right:0;width:100%;overflow:hidden}");const ta=n=>t("div",{className:"advertory-takeover-wrapper",children:[e(Qo,{}),e(Zo,{}),e(ea,{}),t("div",{id:n.targetId,className:"advertory-takeover","data-device":"all",children:[e("div",{className:"div-for-xandr",style:{display:"none"}}),e("div",{className:"advertory-takeover-label",style:{display:"none"}}),e("div",{id:`${n.targetId}-button`})]})]}),na={prepareTag:e=>{var t;const{keywords:n,targetId:i,invCode:r,dynamicSizeWidthCheck:o,globalPlacementId:a}=e,{pageSetup:s,pageContext:{countryCode:d}}=b.get(),{tag:{useAppTabletInvCode:l=!0}={}}=null!=s?s:{},c=((e,t)=>{const{pageContext:{isMobileApp:n}}=b.get();return n?((e,t)=>e.replace(/wtb|wde|wph/g,e=>"wph"===e?"aph":t?"atb":e))(e,t):e})(r,l),u=(e=>{const{pageContext:{countryCode:t}}=b.get(),{keywords:n,dynamicSizeWidthCheck:i}=e,r=`${W(t)}-adformat`,o=n?n[r]:[];if(!o)return{};const a=(Array.isArray(o)?o:[o]).filter(e=>!(e in Ae)||window.innerWidth>=Ae[e]);return{[r]:i?a:o}})(e),p=(e=>{const{pageContext:{countryCode:t}}=b.get(),n=`${W(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=Mo(),h=(e=>_o(e)?{"aa-sch-dynamic-outstream":["true"]}:{})(r),m=((e,t)=>_o(e)?Object.assign(Object.assign({},t),{playerSkin:{videoBackgroundColor:"#e6e7e8"}}):{})(r,{safeFrameAutoInitialSize:!0}),y=o&&e.sizes.length>0?e.sizes.filter(([e])=>e<=window.innerWidth):e.sizes,f=(new Ro).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,{[`${W(d)}-adreload`]:"0"}).build();return Object.assign(Object.assign({},e),{sizes:y,invCode:c,keywords:f,rendererOptions:m,globalPlacementId:a||c})},preparePageOptions:e=>s(void 0,void 0,void 0,function*(){const{pageContext:{countryCode:t}}=b.get();return yield t===N.SE?Jo(e):Wo(e)}),siteEvents:i},ia=((e,t)=>({init:n=>Oo(Object.assign(Object.assign({},n),{siteSpecificConfig:t}),e),update:To,getVideoPPIDs:be,createInitNativeAd:Do,getVideoAdsConfig:$r}))(na,o);export{ia as $,Gr as A,wn as B,bn as C,lt as D,Ji as E,$e as F,sn as G,_n as H,xn as I,Hn as J,Vn as K,zn as L,fe as M,N,uo as O,po as P,co as Q,Fn as R,Ce as S,Ai as T,Q as U,Rn as V,Tn as W,Gt as X,Ee as Y,r as Z,s as _,xe as a,ta as a0,Kt as b,b as c,a as d,Bn as e,Kr as f,_t as g,F as h,st as i,mi as j,Fi as k,h as l,$i as m,Mi as n,_i as o,qi as p,We as q,Qe as r,ii as s,It as t,ni as u,bt as v,Gi as w,Se as x,gt as y,Te as z};