@schibsted/advertory 3.17.2 → 3.17.3-no-issue.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/aftenposten/cjs/index.js +1 -1
- package/aftenposten/es/{_auto-entry_aftenposten-oBhKyAoZ.js → _auto-entry_aftenposten-a_qALgNa.js} +1 -1
- package/aftenposten/es/{events-TWNxI4to.js → events-DrFV0dBK.js} +1 -1
- package/aftenposten/es/{index-DDy74zBr.js → index-BBu4Wj-F.js} +1 -1
- package/{aftonbladet/es/index-CmKOZgDC.js → aftenposten/es/index-BkCQ75ZQ.js} +1 -1
- package/aftenposten/es/{index-ClBTEmsK.js → index-BpsIVc6W.js} +1 -1
- package/aftenposten/es/{index-D4KUQKgW.js → index-C9XykMHR.js} +1 -1
- package/aftenposten/es/{index-Bi-KmXsq.js → index-CYwX99fH.js} +1 -1
- package/aftenposten/es/index-DF10WqY9.js +1 -0
- package/aftenposten/es/{index-CW8aWYUM.js → index-DYjuPnFS.js} +1 -1
- package/aftenposten/es/{index-D6_Yj8hd.js → index-DeHiEx3z.js} +1 -1
- package/aftenposten/es/index.js +1 -1
- package/aftenposten/es/{styles-DCkWdvwe.js → styles-9OmJ8_oN.js} +1 -1
- package/aftenposten/es/{styles-D6rFftzW.js → styles-B1AGMY-X.js} +1 -1
- package/aftenposten/es/{styles-DkMBhV77.js → styles-BdVi1b2S.js} +1 -1
- package/aftenposten/es/{styles-Bdk3if2-.js → styles-Bi04XSrV.js} +1 -1
- package/aftenposten/es/{styles-DzvbCWwT.js → styles-C3JnCvtp.js} +1 -1
- package/aftenposten/es/{styles-BdYQxTGg.js → styles-CRv87wHW.js} +1 -1
- package/aftenposten/es/{styles-k_PXsj0Z.js → styles-Cks2zrCg.js} +1 -1
- package/aftenposten/es/{styles-BJGmzwu-.js → styles-CzlcZrYO.js} +1 -1
- package/aftenposten/es/{styles-C1QysWf_.js → styles-DbSgl5PZ.js} +1 -1
- package/aftenposten/es/{styles-9XXpEmtJ.js → styles-_OUQX0b3.js} +1 -1
- package/aftenposten/es/{styles-BiLaOx_6.js → styles-yvcjbK1D.js} +1 -1
- package/aftenpostenv2/es/{_auto-entry_aftenpostenv2-gGBl1MgO.js → _auto-entry_aftenpostenv2-BqP-f1mQ.js} +1 -1
- package/aftenpostenv2/es/{events-D2-X_tTa.js → events-Dgo8DjiG.js} +1 -1
- package/aftenpostenv2/es/{index-BhhwYmyT.js → index-BDcrgq9l.js} +1 -1
- package/{aftonbladetv2/es/index-ozE-SX9U.js → aftenpostenv2/es/index-BMAuUe4u.js} +1 -1
- package/aftenpostenv2/es/{index-DQZt2yTJ.js → index-BoQJmERC.js} +1 -1
- package/aftenpostenv2/es/{index-7kgEBv2Y.js → index-CIrgCgon.js} +1 -1
- package/aftenpostenv2/es/{index-DpgFevAU.js → index-D-1y672n.js} +1 -1
- package/aftenpostenv2/es/index-DyB1vUtZ.js +1 -0
- package/aftenpostenv2/es/{index-BEBGpvIG.js → index-__aEkQFk.js} +1 -1
- package/aftenpostenv2/es/{index-CAMGSuzl.js → index-cNznJHO6.js} +1 -1
- package/aftenpostenv2/es/index.js +1 -1
- package/aftenpostenv2/es/{styles-DS6h0sIy.js → styles-C1-hljRj.js} +1 -1
- package/aftenpostenv2/es/{styles-wEK54cl7.js → styles-CGeRgRt0.js} +1 -1
- package/aftenpostenv2/es/{styles-CoJeTPIw.js → styles-Cjp-f91D.js} +1 -1
- package/aftenpostenv2/es/{styles-pc2s7OL6.js → styles-Cs23-QeP.js} +1 -1
- package/aftenpostenv2/es/{styles-BkXlbu0T.js → styles-DFEdRPun.js} +1 -1
- package/aftenpostenv2/es/{styles-BoI8VgRj.js → styles-DLk5mux5.js} +1 -1
- package/aftenpostenv2/es/{styles-DST549t3.js → styles-DXxzhWJu.js} +1 -1
- package/aftenpostenv2/es/{styles-C6N3zWTD.js → styles-PSOvI0L4.js} +1 -1
- package/aftenpostenv2/es/{styles-Dg240p5Q.js → styles-SQec1A8F.js} +1 -1
- package/aftenpostenv2/es/{styles-w3q_Mv85.js → styles-ZDNIZnXa.js} +1 -1
- package/aftenpostenv2/es/{styles-yw4HnZqd.js → styles-qvIxXbLQ.js} +1 -1
- package/aftonbladet/cjs/index.js +1 -1
- package/aftonbladet/es/{_auto-entry_aftonbladet-CryWprCD.js → _auto-entry_aftonbladet-yLe8FMqX.js} +1 -1
- package/aftonbladet/es/{events-B24rSciV.js → events-rJcXVbHP.js} +1 -1
- package/aftonbladet/es/{index-BSp4bbj2.js → index-BZlnBBc1.js} +1 -1
- package/aftonbladet/es/{index-BVaeigcG.js → index-BmOBHZkC.js} +1 -1
- package/{aftenposten/es/index-413au3tT.js → aftonbladet/es/index-C3DQrbS2.js} +1 -1
- package/aftonbladet/es/{index-BtD2ivGA.js → index-CFnAaVoE.js} +1 -1
- package/aftonbladet/es/{index-Dpm13HRo.js → index-CSSldldx.js} +1 -1
- package/aftonbladet/es/index-CTMBtrux.js +1 -0
- package/aftonbladet/es/{index-BOnZW3Aw.js → index-NBlN9Jrg.js} +1 -1
- package/aftonbladet/es/{index-DqMYzdr0.js → index-Rg-TVf1t.js} +1 -1
- package/aftonbladet/es/index.js +1 -1
- package/aftonbladet/es/{styles-B1iB14ox.js → styles-B9jmcT41.js} +1 -1
- package/aftonbladet/es/{styles-B3QEpA7g.js → styles-CfvlVErl.js} +1 -1
- package/aftonbladet/es/{styles-CUA0e-Nh.js → styles-D3apiLDJ.js} +1 -1
- package/aftonbladet/es/{styles-CpTTQKBP.js → styles-DK1YWvOj.js} +1 -1
- package/aftonbladet/es/{styles-DCS6N5RP.js → styles-DcIeoE8-.js} +1 -1
- package/aftonbladet/es/{styles-BlCQKx_D.js → styles-Dkc8b1El.js} +1 -1
- package/aftonbladet/es/{styles-D5kEIOBk.js → styles-DwDU8W8N.js} +1 -1
- package/aftonbladetv2/es/{_auto-entry_aftonbladetv2-DCZUJPtO.js → _auto-entry_aftonbladetv2-B23Hj9cK.js} +1 -1
- package/aftonbladetv2/es/{events-BcJ-JmOi.js → events-BxYlZ14G.js} +1 -1
- package/aftonbladetv2/es/{index-PSeJonhi.js → index-BSTet1E6.js} +1 -1
- package/aftonbladetv2/es/index-BZeHNgGY.js +1 -0
- package/{aftenpostenv2/es/index-ExTFf_Iq.js → aftonbladetv2/es/index-BhPCsPVo.js} +1 -1
- package/aftonbladetv2/es/{index--Axj_kEb.js → index-CEgE18wQ.js} +1 -1
- package/aftonbladetv2/es/{index-D8lDaMcl.js → index-DYnoler4.js} +1 -1
- package/aftonbladetv2/es/{index-DY7Z77dw.js → index-Dc3P-Vj6.js} +1 -1
- package/aftonbladetv2/es/{index-CVL2dQge.js → index-DstH63Eo.js} +1 -1
- package/aftonbladetv2/es/{index-B7bwFN2A.js → index-PvR1BYh3.js} +1 -1
- package/aftonbladetv2/es/index.js +1 -1
- package/aftonbladetv2/es/{styles-BPL9WBWt.js → styles-01kZc3MH.js} +1 -1
- package/aftonbladetv2/es/{styles-DkLXxApC.js → styles-2IywgKra.js} +1 -1
- package/aftonbladetv2/es/{styles-Z71vuQGT.js → styles-CnZuHMAg.js} +1 -1
- package/aftonbladetv2/es/{styles-CTL3ZpGF.js → styles-Cso2SE0o.js} +1 -1
- package/aftonbladetv2/es/{styles-q_NZgp-i.js → styles-DG6jT6KH.js} +1 -1
- package/aftonbladetv2/es/{styles-DGtyZUEq.js → styles-DoxsWHNx.js} +1 -1
- package/aftonbladetv2/es/{styles-Chid9PzN.js → styles-XCvAMXHH.js} +1 -1
- package/bt/cjs/index.js +1 -1
- package/bt/es/{_auto-entry_bt-BCpuzRtH.js → _auto-entry_bt-BcoJlF5F.js} +1 -1
- package/bt/es/{events-y2UgrLCs.js → events-BTTfxZEn.js} +1 -1
- package/{sa/es/index-OANfC5qG.js → bt/es/index-BZhRaIjL.js} +1 -1
- package/bt/es/{index-B8BGk6yA.js → index-BvNyTMP_.js} +1 -1
- package/bt/es/index-BybloOV3.js +1 -0
- package/{sa/es/index-CUR2EZv0.js → bt/es/index-Cc1irGR3.js} +1 -1
- package/bt/es/{index-HsdnA2Xk.js → index-CmNAWoja.js} +1 -1
- package/bt/es/{index-CY-uJsn1.js → index-DoiSIQUA.js} +1 -1
- package/bt/es/{index-64yqQV_y.js → index-IhdafbF4.js} +1 -1
- package/bt/es/{index-DLMAYp5X.js → index-c5kc-LLT.js} +1 -1
- package/bt/es/index.js +1 -1
- package/bt/es/{styles-iz_7xJ07.js → styles-5J3v6CaG.js} +1 -1
- package/bt/es/{styles-DMiL3cEL.js → styles-B6EU0y_N.js} +1 -1
- package/{vg/es/styles-C6W-uxHU.js → bt/es/styles-BCTNj0AI.js} +1 -1
- package/bt/es/{styles-Dx6UBH7z.js → styles-BmnSvjox.js} +1 -1
- package/bt/es/{styles-CdNNEYaL.js → styles-CLdus-H8.js} +1 -1
- package/bt/es/{styles-DNnNANZp.js → styles-CSsKrNX0.js} +1 -1
- package/bt/es/{styles-BDK8cIRo.js → styles-Cchr2_Ww.js} +1 -1
- package/{sa/es/styles-CA2Kx-8R.js → bt/es/styles-DQVwmpRj.js} +1 -1
- package/bt/es/{styles-DMudUCQt.js → styles-Dge93syQ.js} +1 -1
- package/bt/es/{styles-C1DRXDqr.js → styles-DkXuYx14.js} +1 -1
- package/btv2/es/{_auto-entry_btv2-Cb0hWN2k.js → _auto-entry_btv2-C-dIxU3h.js} +1 -1
- package/{sav2/es/events-DyYIRoxN.js → btv2/es/events-CQz2eBDf.js} +1 -1
- package/btv2/es/index-BGcafCy2.js +1 -0
- package/{sav2/es/index-D68X7wEU.js → btv2/es/index-C4Az6XIC.js} +1 -1
- package/btv2/es/{index-DPqPFbQL.js → index-CPlese99.js} +1 -1
- package/btv2/es/{index-9UIElfbk.js → index-CQF1nZr3.js} +1 -1
- package/btv2/es/{index-D2m0YyxL.js → index-CktvaYLJ.js} +1 -1
- package/btv2/es/{index-CHwjkS6r.js → index-D23w-Btl.js} +1 -1
- package/btv2/es/{index-BQOUfUqI.js → index-DoMSlydf.js} +1 -1
- package/{omni/es/index-BmkNPspV.js → btv2/es/index-i_utaDhT.js} +1 -1
- package/btv2/es/index.js +1 -1
- package/btv2/es/{styles-B2Igxtin.js → styles-B2OJXzrM.js} +1 -1
- package/{sav2/es/styles-DvEpZ-z0.js → btv2/es/styles-BZ9n0Aac.js} +1 -1
- package/btv2/es/{styles-BLC8ggjb.js → styles-C-ZtQhan.js} +1 -1
- package/{sav2/es/styles-DxDpEnDs.js → btv2/es/styles-CCdvxZkw.js} +1 -1
- package/btv2/es/{styles-DZhqkoyQ.js → styles-CbLeNOrs.js} +1 -1
- package/{sav2/es/styles-DdGmWcED.js → btv2/es/styles-DGnJ2ZHN.js} +1 -1
- package/btv2/es/{styles-DW6SEFkC.js → styles-DdRhazKl.js} +1 -1
- package/{sav2/es/styles-BGSeVp8P.js → btv2/es/styles-DuZfN7De.js} +1 -1
- package/btv2/es/{styles-CpFp63If.js → styles-dkNCmliT.js} +1 -1
- package/btv2/styles.css +1 -1
- package/e24/es/{_auto-entry_e24-3H8zlkMp.js → _auto-entry_e24-Ct_p-SFb.js} +1 -1
- package/e24/es/{events-DYuVZK1d.js → events-Cd2dTyNn.js} +1 -1
- package/e24/es/{index-5-riUpJq.js → index--6UTxLKO.js} +1 -1
- package/e24/es/{index-BYwrWPXy.js → index-87AuIS7V.js} +1 -1
- package/e24/es/{index-S0mJGul7.js → index-B4PlQ911.js} +1 -1
- package/e24/es/index-BEIep0Ze.js +1 -0
- package/e24/es/{index-CX2lGGt-.js → index-BF0fnST5.js} +1 -1
- package/e24/es/{index-DlAHU4eb.js → index-ClS6qNV0.js} +1 -1
- package/e24/es/{index-DxFUGs92.js → index-Dzr7VO1y.js} +1 -1
- package/e24/es/{index-C5VIZpYO.js → index-UPwew21d.js} +1 -1
- package/e24/es/index.js +1 -1
- package/e24/es/{styles-DCLVSFrt.js → styles-B2DEW-hT.js} +1 -1
- package/e24/es/{styles-Ckge3z56.js → styles-BUFCHi9e.js} +1 -1
- package/e24/es/{styles-DNB8kFou.js → styles-CcN9IEsB.js} +1 -1
- package/e24/es/{styles-BvWKfJPl.js → styles-CfM-1QHc.js} +1 -1
- package/e24/es/{styles-DF_OO1b7.js → styles-CfP9Vfv0.js} +1 -1
- package/e24/es/{styles-BFM1W3Aw.js → styles-Cu0eUKZo.js} +1 -1
- package/e24/es/{styles-CCw-MaHN.js → styles-DCAAdGVf.js} +1 -1
- package/e24/es/{styles-GT_CDGYR.js → styles-Dc4VhsK-.js} +1 -1
- package/e24/es/{styles-1rPwY1JA.js → styles-DkOQgCFK.js} +1 -1
- package/e24/es/{styles-DyqVm7OX.js → styles-Dvo7zrg1.js} +1 -1
- package/e24/es/{styles-BK4Wtt6t.js → styles-DwUZS-bn.js} +1 -1
- package/{tv4/es/styles-BoJDjtkB.js → e24/es/styles-fUpBcQWW.js} +1 -1
- package/fotbollskanalen/cjs/index.js +1 -1
- package/fotbollskanalen/es/{_auto-entry_fotbollskanalen-D402iYd_.js → _auto-entry_fotbollskanalen-PzBs8tWv.js} +1 -1
- package/fotbollskanalen/es/{events-DBTPm2vd.js → events-DC2A2YOH.js} +1 -1
- package/fotbollskanalen/es/{index-nr7d2jKv.js → index-B-DfI9hC.js} +1 -1
- package/fotbollskanalen/es/{index-BH-c3BJS.js → index-B451kqAc.js} +1 -1
- package/fotbollskanalen/es/{index-1Z407iH2.js → index-B9_Sz-54.js} +1 -1
- package/fotbollskanalen/es/index-BKW4bFIJ.js +1 -0
- package/fotbollskanalen/es/{index-Cs8K1Rqh.js → index-C391nMTK.js} +1 -1
- package/fotbollskanalen/es/{index-BSdqxtEG.js → index-DiLmKZt3.js} +1 -1
- package/fotbollskanalen/es/{index-C5a8CZdr.js → index-DxBBNuC0.js} +1 -1
- package/fotbollskanalen/es/{index-fym6FCW1.js → index-MWfCDJyV.js} +1 -1
- package/fotbollskanalen/es/index.js +1 -1
- package/fotbollskanalen/es/{styles-BsQmpCle.js → styles-BGNGAe2-.js} +1 -1
- package/fotbollskanalen/es/{styles-rZ7wn8e-.js → styles-BTpc2HZt.js} +1 -1
- package/fotbollskanalen/es/{styles-DMP8-ZV6.js → styles-Cl7zoy5_.js} +1 -1
- package/fotbollskanalen/es/{styles-Df6v8rQb.js → styles-DixDvPPA.js} +1 -1
- package/fotbollskanalen/es/{styles-CMSwd-cn.js → styles-GoFDWbbT.js} +1 -1
- package/godt/cjs/index.js +1 -1
- package/klart/cjs/index.js +1 -1
- package/koket/cjs/index.js +1 -1
- package/koket/es/{_auto-entry_koket-C44xH11E.js → _auto-entry_koket-BkBa0yO1.js} +1 -1
- package/koket/es/{events-CGDhgKWT.js → events-ircrdxrW.js} +1 -1
- package/koket/es/{index-BuKzvzt7.js → index-B8k0GOJ7.js} +1 -1
- package/koket/es/index-BUzc35Jj.js +1 -0
- package/koket/es/{index-CGGU-BuS.js → index-Br3mqMs0.js} +1 -1
- package/koket/es/{index-D5UA7fY7.js → index-CvzsGNvf.js} +1 -1
- package/koket/es/{index-CEkpIq5n.js → index-D3v2bGK4.js} +1 -1
- package/koket/es/{index-DqHliJAq.js → index-DM25lZ1I.js} +1 -1
- package/{svdv2/es/index-C2G_GmGb.js → koket/es/index-DeI6vS_G.js} +1 -1
- package/koket/es/{index-DxNyy37z.js → index-huZ-_aLo.js} +1 -1
- package/koket/es/index.js +1 -1
- package/koket/es/{styles-h_G-qm7j.js → styles-BH1ieOjw.js} +1 -1
- package/{svdv2/es/styles-DCXkP6kx.js → koket/es/styles-C7o8yioZ.js} +1 -1
- package/koket/es/{styles-5tZp9yTR.js → styles-CVZ8UsRx.js} +1 -1
- package/{svdv2/es/styles-C3isjnpF.js → koket/es/styles-C_2fBGU2.js} +1 -1
- package/koket/es/{styles-qi6cffR5.js → styles-LduwO43b.js} +1 -1
- package/minmote/cjs/index.js +1 -1
- package/mtv/es/{_auto-entry_mtv-DBXSgxts.js → _auto-entry_mtv-C9V2deVl.js} +1 -1
- package/mtv/es/{events-DrwOr2mO.js → events-DcYmIufJ.js} +1 -1
- package/mtv/es/{index-BEe1lZD-.js → index-3jUVCNHV.js} +1 -1
- package/mtv/es/{index-fCJM11YZ.js → index-BB2_LyL7.js} +1 -1
- package/mtv/es/{index-CED5rLcJ.js → index-BEpx8cSh.js} +1 -1
- package/mtv/es/{index-SkYMOZBq.js → index-BStz0L62.js} +1 -1
- package/mtv/es/{index-B_FeSE0i.js → index-CfPgdHyv.js} +1 -1
- package/mtv/es/index-Cqfo1UGm.js +1 -0
- package/mtv/es/{index-ColYO0Br.js → index-DjGbdn2F.js} +1 -1
- package/mtv/es/{index-DNFwMO0x.js → index-SjIyGcTf.js} +1 -1
- package/mtv/es/index.js +1 -1
- package/mtv/es/{styles-DwgOS0V0.js → styles-DEY0uCs4.js} +1 -1
- package/omni/es/{_auto-entry_omni-z0It26Fq.js → _auto-entry_omni-CVCCcxyM.js} +1 -1
- package/omni/es/{events-Cd84HHgJ.js → events-DMYRUFOA.js} +1 -1
- package/omni/es/{index-CHiNj_3w.js → index-BA8ZSjBF.js} +1 -1
- package/omni/es/{index-Df0qCA3E.js → index-BGXOEIdC.js} +1 -1
- package/omni/es/{index-w2egIre_.js → index-BJMrrHHN.js} +1 -1
- package/{btv2/es/index-DfTW7_Rp.js → omni/es/index-BWULYxlB.js} +1 -1
- package/omni/es/index-CPFSh255.js +1 -0
- package/omni/es/{index-Nylcwumh.js → index-CzNBPlm5.js} +1 -1
- package/omni/es/{index-DC2lG49K.js → index-D_zHL5xR.js} +1 -1
- package/omni/es/{index-CQKaIWe_.js → index-vtGWj6Qt.js} +1 -1
- package/omni/es/index.js +1 -1
- package/omni/es/{styles-D6yW07yS.js → styles-BOdRjJS0.js} +1 -1
- package/omni/es/{styles-BYzexKAk.js → styles-CYSXAMP-.js} +1 -1
- package/omni/es/{styles-C5J6UYw1.js → styles-Dn1cDwX6.js} +1 -1
- package/package.json +1 -1
- package/pent/cjs/index.js +1 -1
- package/sa/cjs/index.js +1 -1
- package/sa/es/{_auto-entry_sa-DG3-9ORc.js → _auto-entry_sa-B8L10P3p.js} +1 -1
- package/sa/es/{events-Dy1zgzdi.js → events-BDTO1uoY.js} +1 -1
- package/sa/es/{index-DtrmucR8.js → index-5tnwuNe_.js} +1 -1
- package/sa/es/{index-bLzKiBuA.js → index-BN2kqP-Z.js} +1 -1
- package/sa/es/{index-DDVxz7K7.js → index-Bj_NrEkj.js} +1 -1
- package/sa/es/{index-DjpAq_M-.js → index-BwkLrqzw.js} +1 -1
- package/sa/es/{index-Blf084NB.js → index-CEdPBwwD.js} +1 -1
- package/{bt/es/index-Y_ycciUS.js → sa/es/index-CSbL3Gqd.js} +1 -1
- package/sa/es/index-Cq5l3VCX.js +1 -0
- package/{bt/es/index-DT1gmmKp.js → sa/es/index-DFD6AldM.js} +1 -1
- package/sa/es/index.js +1 -1
- package/sa/es/{styles-Dg4aBMq3.js → styles-35KFdgRO.js} +1 -1
- package/sa/es/{styles-B5iBDr4D.js → styles-5ZH6mdVq.js} +1 -1
- package/sa/es/{styles-Cyq_QVa6.js → styles-Avlvf_an.js} +1 -1
- package/{vg/es/styles-DdRXpd-l.js → sa/es/styles-B58C90tH.js} +1 -1
- package/{vg/es/styles-C2XKknnc.js → sa/es/styles-CIEP0fIL.js} +1 -1
- package/sa/es/{styles-BFonXJLD.js → styles-CoMPX3Uo.js} +1 -1
- package/sa/es/{styles-CBVGhV_0.js → styles-D7kQN4tJ.js} +1 -1
- package/sa/es/{styles-CXVmmu1_.js → styles-heBXtksC.js} +1 -1
- package/sa/es/{styles-lvoNZzz6.js → styles-mip6kenJ.js} +1 -1
- package/sa/es/{styles-BCA6CCVu.js → styles-t_EqxDnm.js} +1 -1
- package/sav2/es/{_auto-entry_sav2-CbjO8fv8.js → _auto-entry_sav2-BmnUD43b.js} +1 -1
- package/{tvnu/es/events-BEvMEgZn.js → sav2/es/events-Dp9lnfAs.js} +1 -1
- package/sav2/es/{index-CZncTx2C.js → index-3souzBf0.js} +1 -1
- package/sav2/es/{index-Blv4GiEP.js → index-BAIPDd7_.js} +1 -1
- package/sav2/es/index-DEoczlk_.js +1 -0
- package/{tvnu/es/index-u1YueAMx.js → sav2/es/index-DWm-UHqQ.js} +1 -1
- package/sav2/es/{index-f6UbI2UT.js → index-DbQIUZI_.js} +1 -1
- package/sav2/es/{index-vNePTBVO.js → index-Drq7H5-2.js} +1 -1
- package/sav2/es/{index-nS-sZflp.js → index-DsbYeItT.js} +1 -1
- package/{tvnu/es/index-Dw60Sfah.js → sav2/es/index-pvZ-dP5X.js} +1 -1
- package/sav2/es/index.js +1 -1
- package/{vgv2/es/styles-chG7ew5W.js → sav2/es/styles-3EsH1hd8.js} +1 -1
- package/sav2/es/{styles-iY7NOVnb.js → styles-C4mXD_Br.js} +1 -1
- package/{btv2/es/styles-CQ83NXH1.js → sav2/es/styles-CUkEDO5m.js} +1 -1
- package/{vgv2/es/styles-DWK1cSbz.js → sav2/es/styles-Cc4tdxzT.js} +1 -1
- package/sav2/es/{styles-DQyQF-kq.js → styles-Cfond6pZ.js} +1 -1
- package/sav2/es/{styles-2YutrlNN.js → styles-DKlujQs-.js} +1 -1
- package/{vgv2/es/styles-CB79ES-f.js → sav2/es/styles-DUem7O9S.js} +1 -1
- package/sav2/es/{styles-mrycupoK.js → styles-D_EhAHbB.js} +1 -1
- package/{btv2/es/styles-VylNvuVY.js → sav2/es/styles-Dj_GPfsz.js} +1 -1
- package/svd/cjs/index.js +1 -1
- package/svd/es/{_auto-entry_svd-DXD04_P9.js → _auto-entry_svd-B-mz79jP.js} +1 -1
- package/svd/es/{events-CeknbVJz.js → events-8yBFM-g9.js} +1 -1
- package/svd/es/{index-C6Cqh76D.js → index-B2sNqbth.js} +1 -1
- package/svd/es/index-B4JjxZN-.js +1 -0
- package/svd/es/{index-NW8Thjb0.js → index-CzXdBAfA.js} +1 -1
- package/svd/es/{index-BUmxcYHK.js → index-D-s47e3U.js} +1 -1
- package/{tv4/es/index-BFKV0bna.js → svd/es/index-DZm2YXsK.js} +1 -1
- package/svd/es/{index-Caynhz0-.js → index-DhS4Nx4a.js} +1 -1
- package/svd/es/{index-B5hcY3e7.js → index-DtG-UZOo.js} +1 -1
- package/svd/es/{index-BoQu6wIh.js → index-i_xbZf1B.js} +1 -1
- package/svd/es/index.js +1 -1
- package/svd/es/{styles-D7iMK6R-.js → styles-2Lce7uvt.js} +1 -1
- package/svd/es/{styles-ejjuPfQv.js → styles-8PQPeHpF.js} +1 -1
- package/svd/es/{styles-3MZKD1yf.js → styles-B2QvCzKq.js} +1 -1
- package/svd/es/{styles-DN8VgCSE.js → styles-BiWx6ZH4.js} +1 -1
- package/svd/es/{styles-CK_Kqb7j.js → styles-CQM4vLOx.js} +1 -1
- package/svd/es/{styles-Dnnkp2Js.js → styles-D6djW8Eo.js} +1 -1
- package/svd/es/{styles-TnyYcf_K.js → styles-GF_LpFgN.js} +1 -1
- package/svdv2/es/_auto-entry_svdv2-CjnUPNi-.js +1 -0
- package/svdv2/es/{events-BsnvMA_d.js → events-qLqrGAio.js} +1 -1
- package/svdv2/es/{index-kPkkxWgx.js → index-BVSRed75.js} +1 -1
- package/svdv2/es/index-BzGM0CTM.js +1 -0
- package/svdv2/es/{index-DOVc8sPh.js → index-DMVf3KFx.js} +1 -1
- package/svdv2/es/{index-DukZ5KwG.js → index-DdcT82wK.js} +1 -1
- package/svdv2/es/{index-UspxBOzg.js → index-Dds7WtOX.js} +1 -1
- package/svdv2/es/{index-YfOyNnzq.js → index-DqJR991C.js} +1 -1
- package/{koket/es/index-CBAWQ2bO.js → svdv2/es/index-d2-BL9x2.js} +1 -1
- package/svdv2/es/{index-Cmb9cyi_.js → index-w3s6a0BM.js} +1 -1
- package/svdv2/es/index.js +1 -1
- package/svdv2/es/{styles-BBZ0jnjD.js → styles-BpposcNL.js} +1 -1
- package/svdv2/es/{styles-C9fgA72C.js → styles-ByFDL-dP.js} +1 -1
- package/{koket/es/styles-Uc2sAu96.js → svdv2/es/styles-CAQMmBBf.js} +1 -1
- package/svdv2/es/{styles-BKg3D8q6.js → styles-D1HQ_1IA.js} +1 -1
- package/{koket/es/styles-Cb3sG_iL.js → svdv2/es/styles-DfXEVHoZ.js} +1 -1
- package/svdv2/es/{styles-CzNruk16.js → styles-Ie7GbPj3.js} +1 -1
- package/svdv2/es/{styles-CwaGlRPm.js → styles-Uqa5OW98.js} +1 -1
- package/svdv2/es/{styles-Caau42vL.js → styles-bHk0csrV.js} +1 -1
- package/tek/cjs/index.js +1 -1
- package/tv4/cjs/index.js +1 -1
- package/tv4/es/{_auto-entry_tv4-CPjlIs09.js → _auto-entry_tv4-CsO2kOuH.js} +1 -1
- package/tv4/es/{events-M4ewIjOJ.js → events-DPiyDMOB.js} +1 -1
- package/tv4/es/{index-DVK4E_Yk.js → index-BJJnBqOv.js} +1 -1
- package/tv4/es/{index-CdoSm60u.js → index-C3ifCrbG.js} +1 -1
- package/tv4/es/{index-hiFVXdU9.js → index-CQsI9gjC.js} +1 -1
- package/{svd/es/index-53leQeD5.js → tv4/es/index-DZzapVv8.js} +1 -1
- package/tv4/es/index-DrkdtvU4.js +1 -0
- package/tv4/es/{index-CHGqBUmY.js → index-NFbvbjjl.js} +1 -1
- package/tv4/es/{index-D2y2_oOf.js → index-YmGI2bVj.js} +1 -1
- package/tv4/es/{index-BvDpKJ7b.js → index-qDiymVH7.js} +1 -1
- package/tv4/es/index.js +1 -1
- package/{e24/es/styles-B8fnfbb0.js → tv4/es/styles-6LXZ5x_a.js} +1 -1
- package/tv4/es/{styles-UWSm2Yqy.js → styles-CbPUmvE2.js} +1 -1
- package/tv4/es/{styles-JomwBXHX.js → styles-Cu4IjVLi.js} +1 -1
- package/tv4/es/{styles-BCxLuhZQ.js → styles-D4Axupga.js} +1 -1
- package/tv4/es/{styles-DBu4cV0b.js → styles-DYnUm3FY.js} +1 -1
- package/tvnu/cjs/index.js +1 -1
- package/tvnu/es/{_auto-entry_tvnu-CcKddcjH.js → _auto-entry_tvnu-C1Na4FvX.js} +1 -1
- package/{btv2/es/events-2-po856p.js → tvnu/es/events-DG4iAom3.js} +1 -1
- package/tvnu/es/{index-DyyzdbeF.js → index-BISzrl9Y.js} +1 -1
- package/tvnu/es/{index-Dx5kcPSM.js → index-CmKqyiye.js} +1 -1
- package/tvnu/es/{index-C7wPDiH0.js → index-D7pI0_mw.js} +1 -1
- package/tvnu/es/{index-TnVozZ6U.js → index-DYjxij7P.js} +1 -1
- package/tvnu/es/{index-DqQxCI7E.js → index-Dm6rvUix.js} +1 -1
- package/{btv2/es/index-dF-wL2Ue.js → tvnu/es/index-DvrKJZbP.js} +1 -1
- package/{sav2/es/index-DgSOSNcf.js → tvnu/es/index-bgUvqn5_.js} +1 -1
- package/tvnu/es/index-zTrtNvRR.js +1 -0
- package/tvnu/es/index.js +1 -1
- package/tvnu/es/{styles-B-s3rhQq.js → styles-B4tuyk2Y.js} +1 -1
- package/{btv2/es/styles-CA601nDs.js → tvnu/es/styles-B_07-OHk.js} +1 -1
- package/tvnu/es/{styles-Klnb8ver.js → styles-CFcdp1fA.js} +1 -1
- package/tvnu/es/{styles-C8V8x5tX.js → styles-D3ildpSw.js} +1 -1
- package/vg/cjs/index.js +1 -1
- package/vg/es/{_auto-entry_vg-DMv_a-hJ.js → _auto-entry_vg-Btay7qtC.js} +1 -1
- package/vg/es/{events-B7VhBLKl.js → events-CGfaaHdB.js} +1 -1
- package/vg/es/{index-BogJAvQu.js → index-BcnX31VT.js} +1 -1
- package/vg/es/{index-CGv6k5zc.js → index-Bei2WE_E.js} +1 -1
- package/vg/es/{index-KK0qY8aM.js → index-BmasLAXQ.js} +1 -1
- package/vg/es/{index-Dq-A7QzZ.js → index-BucJ-9XL.js} +1 -1
- package/vg/es/{index-COEXL19m.js → index-C6kFY3dZ.js} +1 -1
- package/vg/es/index-COQVHzcU.js +1 -0
- package/vg/es/{index-D3qGO23L.js → index-Cb_nVuUE.js} +1 -1
- package/vg/es/{index-CUWE2oVG.js → index-Cly9tLBa.js} +1 -1
- package/vg/es/index.js +1 -1
- package/vg/es/{styles-BVq-e1HW.js → styles-46BzZ7Zb.js} +1 -1
- package/vg/es/{styles-DFdGCXg7.js → styles-BB3qQZ9l.js} +1 -1
- package/vg/es/{styles-J6N0oR1y.js → styles-BQA1hCbw.js} +1 -1
- package/vg/es/{styles-B0dh4AYy.js → styles-B_A2_8w8.js} +1 -1
- package/vg/es/{styles-GaFSQGoe.js → styles-Byh-69do.js} +1 -1
- package/vg/es/{styles-CtQ00cCl.js → styles-C0KjyzTJ.js} +1 -1
- package/vg/es/{styles-Bd6MA-4r.js → styles-C2dD9HYG.js} +1 -1
- package/vg/es/{styles-CqM4rVxY.js → styles-CMqiReP_.js} +1 -1
- package/vg/es/{styles-T_8VvPzG.js → styles-CSe2imW9.js} +1 -1
- package/vg/es/{styles-Dy97a4gi.js → styles-ChTpS5EJ.js} +1 -1
- package/vg/es/{styles-DCrteQhO.js → styles-D0z9s1YH.js} +1 -1
- package/{bt/es/styles-dbB6RW1W.js → vg/es/styles-DRlgmYS6.js} +1 -1
- package/{bt/es/styles-BdBKS9YD.js → vg/es/styles-DuxXrYea.js} +1 -1
- package/{sa/es/styles-C_wUKb-W.js → vg/es/styles-Z0ltuKsj.js} +1 -1
- package/vg/es/{styles-Bb1y_xsL.js → styles-dmsQx7Im.js} +1 -1
- package/vg/es/{styles-BHzG4OIH.js → styles-w8ZeI_ne.js} +1 -1
- package/vgv2/es/{_auto-entry_vgv2-X452a6gh.js → _auto-entry_vgv2-RFh5kNdr.js} +1 -1
- package/vgv2/es/{events-B__-sgCg.js → events-PFdv4TSw.js} +1 -1
- package/vgv2/es/{index-DTS66kBN.js → index-BIvUYvnr.js} +1 -1
- package/vgv2/es/{index-CtzuuTN4.js → index-BR8j1wSu.js} +1 -1
- package/vgv2/es/{index-BKeHgheu.js → index-BeQdxkGt.js} +1 -1
- package/vgv2/es/{index-CrNSihAa.js → index-Bt0xr2Gw.js} +1 -1
- package/vgv2/es/index-CdS4MYhL.js +1 -0
- package/vgv2/es/{index-1UFai7qP.js → index-CkBRixx8.js} +1 -1
- package/vgv2/es/{index-CD1SInD4.js → index-DzjEt1rM.js} +1 -1
- package/vgv2/es/{index-B-DjwSkV.js → index-RdR3Qa3u.js} +1 -1
- package/vgv2/es/index.js +1 -1
- package/{sav2/es/styles-CQSIER_D.js → vgv2/es/styles-BH2730_N.js} +1 -1
- package/{tvnu/es/styles-YxFXFmN8.js → vgv2/es/styles-BQj7pk_x.js} +1 -1
- package/vgv2/es/{styles-gn_AufCT.js → styles-BZ9dNdDJ.js} +1 -1
- package/vgv2/es/styles-CKJ38HW5.js +1 -0
- package/vgv2/es/{styles-xcBLjlpk.js → styles-CQ4nHwXC.js} +1 -1
- package/vgv2/es/{styles-C4DfODDi.js → styles-CQILkwRZ.js} +1 -1
- package/vgv2/es/{styles-4ncNYQ7c.js → styles-CyZw26mO.js} +1 -1
- package/vgv2/es/{styles-DPsYKiCh.js → styles-D0M_Dye0.js} +1 -1
- package/vgv2/es/{styles-DUdyxcjX.js → styles-DAZFpnqm.js} +1 -1
- package/vgv2/es/{styles-Cv1VkehV.js → styles-Di4urdRu.js} +1 -1
- package/vgv2/es/{styles-DdEFzbvI.js → styles-DpCexWaH.js} +1 -1
- package/vgv2/es/{styles-q13AUrRw.js → styles-_tb1eFvy.js} +1 -1
- package/vgv2/es/{styles-CfW3UCFV.js → styles-fv5mre1M.js} +1 -1
- package/vgv2/es/{styles-DlLLpXDY.js → styles-hJnDM70W.js} +1 -1
- package/vgv2/es/{styles-BlgE8-dH.js → styles-qlt-8mNJ.js} +1 -1
- package/{btv2/es/styles-D5hQw5jD.js → vgv2/es/styles-uw85Axqh.js} +1 -1
- package/aftenposten/es/index-aZPk2dct.js +0 -1
- package/aftenpostenv2/es/index-D_qwr4qT.js +0 -1
- package/aftonbladet/es/index-DD_la3Rw.js +0 -1
- package/aftonbladetv2/es/index-Dc3UTSx5.js +0 -1
- package/bt/es/index-DuI_5JY1.js +0 -1
- package/btv2/es/index-DqXN8D3H.js +0 -1
- package/e24/es/index-CNcwgeAl.js +0 -1
- package/fotbollskanalen/es/index-DfOX8PHl.js +0 -1
- package/koket/es/index-B2-fzJ5-.js +0 -1
- package/mtv/es/index-Kf3qZpof.js +0 -1
- package/omni/es/index-GfFaiR7Y.js +0 -1
- package/sa/es/index-CLn3FAH1.js +0 -1
- package/sav2/es/index-Bo1hec9T.js +0 -1
- package/svd/es/index-CcFfeUyy.js +0 -1
- package/svdv2/es/_auto-entry_svdv2-ghKmaGHa.js +0 -1
- package/svdv2/es/index-05ohyCV4.js +0 -1
- package/tv4/es/index-CBa0Cyg6.js +0 -1
- package/tvnu/es/index-DoAhsJS8.js +0 -1
- package/vg/es/index-DVC1Ri7F.js +0 -1
- package/vgv2/es/index-CRRh5eM9.js +0 -1
- package/vgv2/es/styles-CrSC2t3F.js +0 -1
package/godt/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e,t,n=require("react/jsx-runtime");function o(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var i=o(function(){if(t)return e;t=1;var n=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===o}(e)}(e)},o="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function i(e,t){return!1!==t.clone&&t.isMergeableObject(e)?l((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function r(e,t,n){return e.concat(t).map(function(e){return i(e,n)})}function a(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 d(e,t){try{return t in e}catch(e){return!1}}function s(e,t,n){var o={};return n.isMergeableObject(e)&&a(e).forEach(function(t){o[t]=i(e[t],n)}),a(t).forEach(function(r){(function(e,t){return d(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,r)||(d(e,r)&&n.isMergeableObject(t[r])?o[r]=function(e,t){if(!t.customMerge)return l;var n=t.customMerge(e);return"function"==typeof n?n:l}(r,n)(e[r],t[r],n):o[r]=i(t[r],n))}),o}function l(e,t,o){(o=o||{}).arrayMerge=o.arrayMerge||r,o.isMergeableObject=o.isMergeableObject||n,o.cloneUnlessOtherwiseSpecified=i;var a=Array.isArray(t);return a===Array.isArray(e)?a?o.arrayMerge(e,t,o):s(e,t,o):i(t,o)}return l.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,n){return l(e,n,t)},{})},e=l}());const r={arrayMerge:(e,t)=>t,isMergeableObject:e=>"object"==typeof e&&null!==e&&e.constructor===Object},a=(e,t)=>i(e,t,r),d=(e,t)=>Object.assign(Object.assign({},e),t),s=(e,t)=>{var n;return a(null!==(n=e)&&void 0!==n?n:{},t)},l={adRequested:()=>{},adAvailable:e=>{},adLoaded:e=>{},adNoBid:e=>{},adError:(e,t)=>{},adCollapse:()=>{},adRequestFailure:e=>{},adBadRequest:e=>{},adLoadedMediated:e=>{},adNoBidMediated:e=>{}},c=(e,t)=>{const n="[Advertory LOG]: ";location.search.includes("ast_debug=true")&&(t?console.log(n,e,t):console.log(n,e))},u=(e,t)=>{const n="[Advertory WARN]: ";t?console.warn(n,e,t):console.warn(n,e)},p=e=>{(e=>{const{pageContext:t,pageOptions:n,placements:o,appearanceConfig:i}=null!=e?e:{};(null==t?void 0:t.publisher)||u("pageContext.publisher is required."),(null==t?void 0:t.countryCode)||u("pageContext.countryCode is required."),(null==t?void 0:t.pageType)||u("pageContext.pageType is required."),(null==t?void 0:t.deviceType)||u("pageContext.deviceType is required."),n||u("pageOptions is required."),o||u("placements is required."),(null==i?void 0:i.defaultThreshold)||u("appearanceConfig.defaultThreshold is required.")})(e),(e=>{var t,n,o,i;const r=e.pageSectionsSelectors,a=[{flag:!!(null===(t=e.takeover)||void 0===t?void 0:t.enabled),property:"header",featureName:"takeover"},{flag:!!(null===(n=e.sponsorstripe)||void 0===n?void 0:n.enabled),property:"header",featureName:"sponsorstripe"},{flag:!!(null===(o=e.widescreenSwitching)||void 0===o?void 0:o.enabled),property:"right",featureName:"widescreenSwitching"},{flag:!!(null===(i=e.wallpaper)||void 0===i?void 0:i.enabled),property:"header",featureName:"wallpaper"}];for(const{flag:e,property:t,featureName:n}of a)e&&!(null==r?void 0:r[t])&&u(`pageSectionsSelectors.${t} is required when ${n} is enabled.`)})(e)},v={placements:(e,t)=>t,takeover:s,refreshConfig:d,editory:s,appearanceConfig:s,pageContext:d,pageOptions:d,pageSectionsSelectors:d,tcf:d},g=(e,t)=>{const n=e;for(const e of Object.keys(v)){const o=t[e];void 0!==o&&(n[e]=v[e](n[e],o))}},h=6;class m{set(e){p(e),this.config=e}modifyConfigProperties(e){if(!this.config)throw new Error("Config was accessed before it had been initialized.");g(this.config,e)}get(){if(!this.config)throw new Error("Config was accessed before it had been initialized.");return this.config}getHandlers(){if(!this.siteHandlers)throw new Error("Handlers were accessed before it had been initialized.");return this.siteHandlers}setHandlers(e){this.siteHandlers=a(m.DEFAULT_SITE_HANDLERS,e)}}m.DEFAULT_SITE_HANDLERS={siteEvents:l,initNativeAd:()=>{}};const f=new m,y=f.modifyConfigProperties.bind(f),b={NO:"no",SE:"se"},w=e=>e===b.NO?"no-sno":"se-generic",x=/_\d+$/,k=e=>e.replace(x,"");let C="";const I=new Map,T=e=>{const{pageSetup:{tag:t}={}}=f.get();return(null==t?void 0:t.includeCountingKeywordInTags)?(C!==window.location.pathname&&(I.clear(),C=window.location.pathname),e.map(e=>{var t;const n=k(e.invCode),o=null!==(t=I.get(n))&&void 0!==t?t:0;return e.keywords=Object.assign({},e.keywords),e.keywords[`${(()=>{const{pageContext:{countryCode:e,publisher:t}}=f.get();return`${e}-${t}`})()}-count`]=o,I.set(n,o+1),e})):e},S="advertory-wallpaper-background",E="advertory-with-horseshoe",A=()=>{const e=document.querySelector(`.${S}`);e&&e.remove()},O=e=>{const t=e.getBoundingClientRect().top;requestAnimationFrame(()=>(e=>{if(!document.body)return;const t=document.querySelector(`.${S}`);t&&t.style.setProperty("top",`${e}px`)})(t+15))},P=/^wallpaper:url:(http[s]?:\/\/)?[^\s(["<,>]*\.[^\s[",><]*/,j=e=>P.test(e),$=e=>e.startsWith("wallpaper:color:"),L=e=>{const t=document.querySelector(`.${S}`);t&&(t.style.backgroundImage=`url(${e})`)},_=e=>{const t=document.querySelector(`.${S}`);t&&(t.style.backgroundColor=e)};var N=Object.freeze({__proto__:null,adjustAdToHorseshoe:e=>{var t;const n=document.querySelector(`#${e}`);n&&(null===(t=n.parentElement)||void 0===t||t.classList.add(E),n.classList.add(E))},initWallpaperAd:(e,t)=>{if(!t)return;const{options:{wallpaperAnchorSelector:n}={}}=t;(()=>{A();const e=document.createElement("div");e.classList.add(S),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&&(O(n),window.addEventListener("scroll",()=>O(n)))})(n),e()},isShortWallpaperColorMessage:$,isShortWallpaperUrlMessage:j,removeWallpaperBackground:A,setWallpaperBackgroundColor:_,setWallpaperBackgroundImage:L});const q=e=>new URLSearchParams(window.location.search).get(e),F="takeover",M="native_override_desc2",B=e=>window.location.href.includes(e),R=()=>null!==q("disable_prebid"),D=e=>{if("0"===q("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")&&A())},z=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"))},U=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};function W(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]])}return n}function H(e,t,n,o){return new(n||(n=Promise))(function(i,r){function a(e){try{s(o.next(e))}catch(e){r(e)}}function d(e){try{s(o.throw(e))}catch(e){r(e)}}function s(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,d)}s((o=o.apply(e,t||[])).next())})}"function"==typeof SuppressedError&&SuppressedError;let V=e=>{window.apntag.anq.push(e)};const K=e=>{V(e)};class G{initialize(){this.DATA=Object.assign({},G.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)}}G.INITIAL_DATA={wallpaper:{isAvailable:!1},horseshoe:{isAvailable:!1},initialClassNames:{},alertoryConfigKeywords:{}};const X=new G,J=e=>{const t=document.querySelector(`#${e}`);t&&(t.style.minWidth="",t.style.minHeight="")},Y=e=>{var t;const n=null===(t=document.querySelector(`#${e}`))||void 0===t?void 0:t.parentElement,o=(null==n?void 0:n.offsetHeight)||0;n&&(n.style.minHeight=`${o}px`)},Q="opaque",Z=e=>H(void 0,void 0,void 0,function*(){if(e.type!==Q){if(!e.ok)throw new Error(e.statusText);return yield e.json()}}),ee={get:(e,...t)=>H(void 0,[e,...t],void 0,function*(e,t={}){var{timeout:n}=t,o=W(t,["timeout"]);if(n)return((e,t,n)=>H(void 0,void 0,void 0,function*(){const o=new AbortController,i=setTimeout(()=>o.abort(),n);try{const n=yield fetch(e,Object.assign(Object.assign({},t),{signal:o.signal}));return Z(n)}finally{clearTimeout(i)}}))(e,o,n);const i=yield fetch(e,o);return Z(i)}),post:(e,t,n)=>H(void 0,void 0,void 0,function*(){const o=JSON.stringify(n),i=yield fetch(e,{method:"POST",headers:t,body:o});if(!i.ok)throw new Error(i.statusText);return yield i.json()})},te="https://inv-platform-cdn.inventory.schibsted.io",ne=5e3,oe="editory/native-creator/native-templates",ie=e=>{const{siteSpecificConfig:t,editory:{editoryUrl:n,editableConfiguration:{pageTypeToFetch:o}={}}={}}=e;if(!(null==t?void 0:t.publisherClassName)||!o)return null;return`${n||te}/editory/editable-configurations/${t.publisherClassName}/${o.toLowerCase()}.json`};const re=new class{constructor(){this.requestToken=0,this.cacher=(()=>{const e=new Map;return{get:t=>e.get(t),set:(t,n)=>{e.set(t,n)},delete:t=>{e.delete(t)}}})()}shouldFetchEditableConfig(e){const{editory:{editableConfiguration:{enabled:t=!1,pageTypeToFetch:n}={}}={},siteSpecificConfig:o}=e;return Boolean(t&&n&&(null==o?void 0:o.publisherClassName))}captureLocalSiteConfig(e){return this.localSiteConfig=Object.assign({},e),this.localSiteConfig}fetchEditableConfig(e){return H(this,void 0,void 0,function*(){const t=ie(e);if(!t)return null;let n=this.cacher.get(t);return n||(n=(e=>H(void 0,void 0,void 0,function*(){const t=ie(e);if(!t)return null;try{return yield ee.get(t,{timeout:ne})}catch(e){throw c("Failed to fetch S3 config",{error:e,url:t}),e}}))(e).catch(e=>{throw this.cacher.delete(t),e}),this.cacher.set(t,n)),n})}resolveRemoteConfig(e,t){var n,o,i;const r=((e,t)=>{const{sections:n}=e,o=W(e,["sections"]),i=t?null==n?void 0:n[t]:void 0;return i?a(o,i):o})(t,null!==(i=null===(o=null===(n=e.editory)||void 0===n?void 0:n.editableConfiguration)||void 0===o?void 0:o.section)&&void 0!==i?i:(()=>{const[e]=window.location.pathname.split("/").filter(Boolean);return e})());return((e,t)=>a(t,e))(e,r)}getConfig(e){return H(this,void 0,void 0,function*(){const t=this.captureLocalSiteConfig(e);if(!this.shouldFetchEditableConfig(t))return t;try{const e=yield this.fetchEditableConfig(t);return e?this.resolveRemoteConfig(t,e):t}catch(e){return c("Error fetching S3 config, using site config",{error:e}),t}})}resolveUpdatedConfig(e){return H(this,void 0,void 0,function*(){var t,n,o,i;if(!this.localSiteConfig)return;if(g(this.localSiteConfig,null!=e?e:{}),!this.shouldFetchEditableConfig(this.localSiteConfig))return;const r=null===(n=null===(t=this.localSiteConfig.editory)||void 0===t?void 0:t.editableConfiguration)||void 0===n?void 0:n.pageTypeToFetch,a=++this.requestToken;try{const e=yield this.fetchEditableConfig(this.localSiteConfig);if(a!==this.requestToken||(null===(i=null===(o=this.localSiteConfig.editory)||void 0===o?void 0:o.editableConfiguration)||void 0===i?void 0:i.pageTypeToFetch)!==r)return;if(!e)return;return this.resolveRemoteConfig(this.localSiteConfig,e)}catch(e){return void c("Error fetching updated S3 config, keeping current config",{error:e})}})}},ae=re.getConfig.bind(re),de=re.resolveUpdatedConfig.bind(re),se=e=>{const t=e.parentElement;if(!e||!t)return;const{container:n,wrapper:o}=(e=>{const t=X.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=o},le=()=>{A();const e=document.querySelectorAll('[data-advertory-ad-rendered="true"]'),t=[];return e.forEach(e=>{D(e.id),se(e),(e=>{const t=document.querySelector(`#${e}`),n=null==t?void 0:t.getAttribute("data-probable-height"),o=null==t?void 0:t.getAttribute("data-probable-width");n&&o&&(null==t||t.style.setProperty("min-height",n+"px"),null==t||t.style.setProperty("min-probable-width",o+"px"))})(e.id),e.innerHTML="",e.id=U(e.id),t.push(e.id)}),K(()=>window.apntag.clearRequest()),t},ce=()=>{X.setData("wallpaper",{isAvailable:!1}),X.setData("horseshoe",{isAvailable:!1})},ue=e=>H(void 0,void 0,void 0,function*(){const t=yield de(e);var n;t?(f.set(t),n=t,window.advertory&&(window.advertory.siteConfig=n,window.advertory.alertoryConfig&&(window.advertory.alertoryConfig.advertory.placements=n.placements))):y(null!=e?e:{})}),pe="0123456789abcdefghijklmnopqrstuvwxyz",ve=(e=6)=>{if(e<=0)return"";let t="";for(let n=0;n<e;n++){t+=pe[Math.floor(36*Math.random())]}return t},ge=new Promise(e=>{"undefined"!=typeof document&&document.prerendering?document.addEventListener("prerenderingchange",()=>e()):e()}),he=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})}),me="mobile",fe="tablet",ye="desktop",be="web_desktop",we="web_phone",xe="wde",ke="wph",Ce="noGroupedPlacements",Ie=e=>{const t=e.replace(/[0-9]/g,"");return"_"===t.slice(-1)?t.substring(0,t.length-1):t},Te=e=>{if(!(null==e?void 0:e.minViewWidth))return!0;return window.innerWidth>=e.minViewWidth},Se=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:o,pageContext:{deviceType:i}}=f.get(),r=((e,t)=>{var n;const o=null!==(n=e[t])&&void 0!==n?n:[];return t===fe&&0===o.length?e[ye]:o})(n,i),a=r.filter(Te),d=e?document.querySelector(e):document;if(!d)return[];const s=a.reduce((e,t)=>{const n=Ie(t.targetId);return!n||e.includes(n)||e.push(n),e},[]).flatMap(e=>{const t=new RegExp(`^${e}(_(\\d+))?$`),n=a.filter(({targetId:e})=>e.match(t)),r=(null==o?void 0:o.queryByDataDeviceAttribute)?`div[id^="${e}"][data-device=${i}], div[id^="${e}"][data-device=all]`:`div[id^="${e}"]:not([data-disabled="true"])`,s=d.querySelectorAll(r),l=Array.from(s).filter(({id:e})=>e.match(t)).map((e,t)=>{var o;const i=Ee(e,t,n);if(i.disabled)return c(`Placement ${i.targetId} is disabled - collapsing`),D(i.targetId),null;const r=i.finnBlink&&!i.finnBlink.renderOnlyWithAdBlock,a=r&&(null===(o=i.finnBlink)||void 0===o?void 0:o.loadOnlyFinnBlink),d=`${e.id}-${ve(6)}`;return e.id=d,e.setAttribute("data-advertory-ad-rendered","true"),r&&e.setAttribute("data-is-finn-blink-placement","true"),a&&e.setAttribute("data-is-finn-blink-only-placement","true"),(e=>{var t;const n=e.id;n&&X.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({},i),{targetId:d})}),u=l.filter(e=>null!=e);return T(u)});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))})(s)},Ee=(e,t,n)=>{const o=n[t],i=n[n.length-1],r=n.filter(({targetId:t})=>t===e.id)[0];return(null==e?void 0:e.id)===(null==o?void 0:o.targetId)?o:(null==e?void 0:e.id)===(null==i?void 0:i.targetId)?i:r||i},Ae=e=>{const{queryConfig:{placementBatches:t}={},pageContext:{deviceType:n}}=f.get(),o=(null==t?void 0:t[n])||{},i=Object.values(o).flat(),r=(e=>{const t={};return e.forEach(e=>{const n=U(e.targetId);e.isBackfill&&(t[n]=[e])}),t})(e),a=((e,t)=>{const n={};for(const[o,i]of Object.entries(t))n[o]=e.filter(e=>i.includes(U(e.targetId)));return n})(e,o),d=Object.keys(r),s=((e,t)=>e.filter(e=>!t.has(U(e.targetId))))(e,new Set([...d,...i]));return Object.assign(Object.assign(Object.assign({},a),r),{[Ce]:s})},Oe="ABSOLUTE_FULLSCREEN",Pe="ANY_FULLSCREEN",je="NINESIXTEEN",$e="FULLWIDTH",Le="FULLSQUARE",_e="TAKEOVER",Ne="VELVET_TAKEOVER",qe="WALLPAPER",Fe="COLLAPSE",Me={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}]},Be={wallpaper:1600,"l-format":1600},Re=e=>{const{banner:t,targetId:n}=e;return!(!t||(null==n?void 0:n.includes("takeover")))&&et(e,Pe)},De=e=>{const{native:t}=e;return!!t},ze=e=>et(e,$e),Ue=e=>{const{targetId:t}=e;return t.includes("takeover")||et(e,_e)},We=e=>et(e,_e),He=e=>et(e,qe),Ve=e=>et(e,Fe),Ke=e=>e.targetId.includes("sponsorstripe"),Ge=e=>{const t=document.querySelector(`#${e}`);return!!t&&"true"===t.dataset.isFinnBlinkPlacement},Xe=e=>e.targetId.startsWith("panorama")||e.targetId.startsWith("modul"),Je=e=>e.targetId.startsWith("midboard"),Ye=e=>e.targetId.includes("widescreen"),Qe=e=>e.width>=1260&&e.width<=1280,Ze=e=>e.width>=1600&&e.width<=1620,et=(e,t)=>{const n=Me[t];if(!n)return!1;return!!n.find(t=>{var n,o;const i=(null===(n=e.banner)||void 0===n?void 0:n.width)||e.width,r=(null===(o=e.banner)||void 0===o?void 0:o.height)||e.height,a=t.width===i,d=!t.height||t.height===r;return a&&d})},tt=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 c("Advertising permission value obtained synchronously: ",e),Boolean(t)})();if(null!==n)return void t(n);let o=!1;const i=e=>{o||(c("Resolving advertising permission value obtained"),o=!0,t(e))},r=setTimeout(()=>{c("Advertising permission timed out, resolving with false"),i(!1)},3e3);window._tcf_.onTcfReady(()=>{c("On Tcf Ready called, waiting for permission"),clearTimeout(r)}),window._tcf_.getPermission("CMP:advertising",e=>{clearTimeout(r);const t=Number(e);c("Advertising permission value obtained asynchronously: ",e),i(Boolean(t))})}),nt="cmp:loaded";let ot="undefined"!=typeof window?window._tcf_:void 0,it=!1;const rt=(e,t,n)=>{const o=!!(null==e?void 0:e.enabled),i=(null==e?void 0:e.timeout)||3e3,r=q("bypass_tcf"),a=()=>{if(!(null==e?void 0:e.enabled))return!0;if(((e,t)=>e?!!t&&(c("TCF bypass param detected, returning consent: true"),!0):(c("TCF is not enabled, returning consent: true"),!0))(o,r))return!0;if(it)return null;if(!ot)throw new Error("[Advertory]: getConsentSync method was called before the tcfManager was available.");const t=ot.getConsentedToAllSync();return c(`TCF consented to all is: ${t}`),ot.getConsentedToAllSync()};return{initConsentManager:()=>(null==e?void 0:e.enabled)?new Promise((e,t)=>{if(c("Getting TCF consent manager..."),window._tcf_)return c("TCF consent manager is already available"),ot=window._tcf_,void e(ot);c("TCF consent manager is not available");const n=()=>{c("CMP loaded, resolving consent manager..."),o&&clearTimeout(o),window._tcf_?(ot=window._tcf_,e(ot)):t(new Error("CMP loaded but window._tcf_ is not defined"))},o=setTimeout(()=>{document.removeEventListener(nt,n),it=!0,t(new Error("Timeout waiting for CMP to load"))},i);c("Listening for CMP loaded event..."),document.addEventListener(nt,n,{once:!0})}):Promise.resolve(null),getConsentSync:a,getConsentAsync:()=>H(void 0,void 0,void 0,function*(){if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return c(`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===b.SE,o=(null==e?void 0:e.advertisingCMPSignalEnabled)&&n===b.NO;if(t||o)return c("Schibsted Ad Choices is enabled, getting advertising permissions..."),yield tt(e);if(!(null==e?void 0:e.enabled))return!0;const r=a();return null!==r?r:yield new Promise((e,t)=>{try{if(!ot)throw new Error("[Advertory]: getConsentAsync method was called before the tcfManager was available.");let t=!1;const n=n=>{t||(t=!0,e(n))},o=setTimeout(()=>{c("TCF isConsentedToAll timed out, resolving with false"),n(!1)},i);ot.onTcfReady(()=>{c("On Tcf Ready called, waiting for consent"),clearTimeout(o)}),ot.isConsentedToAll(t=>{clearTimeout(o),e(t)})}catch(e){t(e)}})})}},at=(e,t,n,...o)=>H(void 0,[e,t,n,...o],void 0,function*(e,t,n,o="NOT SPECIFIED FEATURE"){if(!(null==e?void 0:e.schibstedConsentToPayEnabled))return c(`Schibsted Consent to Pay is not enabled, returning true for ${o}`),!0;if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return c(`Schibsted Ad Choices override value is set, returning override value: ${null==e?void 0:e.schibstedAdChoicesOverrideValue} for ${o}`),Boolean(Number(null==e?void 0:e.schibstedAdChoicesOverrideValue));const{getConsentAsync:i}=rt(e,0,n);return(yield i())?(c(`Schibsted Ad Choices consent given according to TCF consent manager for ${o}`),!0):(c(`Schibsted Ad Choices consent not given according to TCF consent manager for ${o}`),!1)}),dt=e=>{const t=encodeURIComponent(e).replace(/[-.+*]/g,"\\$&"),n=new RegExp(`(?:(?:^|.*;)\\s*${t}\\s*\\=\\s*([^;]*).*$)|^.*$`);return decodeURIComponent(document.cookie.replace(n,"$1"))||null},st=e=>H(void 0,void 0,void 0,function*(){const{tcf:t,pageContext:{isMobileApp:n,countryCode:o}={}}=e,{getConsentAsync:i}=rt(t,0,o);if(!(yield i()))return;const r=dt("_pulse2data");return r?r.split(",")[9]:void 0}),lt="splash",ct="welcomePage",ut="topscroller",pt="velvet",vt=(e,t=(...e)=>{})=>{const n=t.toString();if(0===e.length)return n;const o=n.substring(0,n.indexOf("=>")).replace("(","").replace(")","").split(",").map(e=>e.trim()),i=n.substring(n.indexOf("{")+1,n.lastIndexOf("}")),r=o.map((t,n)=>`${t} = "${e[n]}"`);return new Function(...r,i).toString()},gt="takeover-displayed",ht="takeover-visit-count",mt=14400,ft=()=>{const e=dt(ht);return e?parseInt(e):0},yt=()=>{const e=ft(),{takeover:{options:{cookieCapTime:t=mt}={}}={}}=f.get(),n=document.location.hostname;window.document.cookie=`${ht}=${e+1}; max-age=${t}; domain=${n}; path=/; SameSite=Lax`},bt=()=>{const{takeover:{enabled:e=!1,options:{secondVisitEnabled:t=!1}={}}={}}=f.get();return"0"!==q(F)&&("1"===q(F)||!(!e||(()=>{var e,t;const n=(null===(t=null===(e=f.get().takeover)||void 0===e?void 0:e.options)||void 0===t?void 0:t.cookieCapName)||gt;return"true"===dt(n)})())&&(!t||wt()))},wt=()=>{const e=ft();return 0===e?(yt(),!1):1===e},xt=(e,t)=>[[1,1],[1920,1080]].some(([n,o])=>n===e&&o===t),kt=()=>{const{takeover:e}=f.get();return Boolean(null==e?void 0:e.topscroller)},Ct=e=>{const{width:t,height:n}=e;return xt(t,n)?lt:et(e,Ne)?pt:kt()?ut:ct},It=()=>H(void 0,void 0,void 0,function*(){const e=document.location.hostname,{takeover:{options:{cookieCapName:t=gt,cookieCapTime:n=mt}={}}={},pageContext:{isMobileApp:o,countryCode:i},tcf:r}=f.get(),a=yield at(r,o,i,"ad-takeover-cookiecap");n&&a&&(window.document.cookie=`${t}=true; max-age=${n}; domain=${e}; path=/`)}),Tt=e=>{var t,n;const o=!!(null===(n=null===(t=f.get().takeover)||void 0===t?void 0:t.options)||void 0===n?void 0:n.setCookieCapForNotShownAd);return Ue(e)&&o},St=(e,t)=>{var n;if(t===ut){const{topscroller:t}=e;return null!=t?t:{}}if(t===lt){const{splash:t}=e;return null!=t?t:{}}return null!==(n=e.welcomePage)&&void 0!==n?n:{}},Et=(e,t)=>{t!==lt?(e=>{var t,n;const o=null===(t=f.get().pageSectionsSelectors)||void 0===t?void 0:t.header,i=null===(n=f.get().takeover)||void 0===n?void 0:n.topscroller;if(!o||i)return;const r=document.querySelector(o),a=document.querySelector(".welcome-page-wrapper"),d=document.querySelector(`#${e.targetId}`),s=document.querySelector(".advertory-welcome-page-scroll");if(!(r&&a&&s&&d))return;const l=null==r?void 0:r.offsetHeight,c=We(e)?"60svh":`calc(100svh - ${l}px)`,u=We(e)?"calc(40svh + 30px)":`calc(${l}px + 30px)`;a.style.setProperty("height",c,"important"),d.style.setProperty("height",c,"important"),s.style.setProperty("bottom",u,"important")})(e):(e=>{var t;if(!(null===(t=f.get().takeover)||void 0===t?void 0:t.splash))return;const n=document.querySelector(".advertory-splash-navbar-wrapper"),o=document.querySelector(`#${e.targetId}`);if(!n||!o)return;const i=`calc(100svh - ${n.offsetHeight}px)`;o.style.setProperty("height",i,"important")})(e)},At=vt([],()=>{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 Ot=Object.freeze({__proto__:null,addTakeoverCookie:It,adjustTakeoverHeight:Et,canDisplayTakeover:bt,getProperWelcomePageConfig:St,getTakeoverVariant:Ct,handleTakeoverCookieOnAdNotShown:e=>H(void 0,void 0,void 0,function*(){Tt(e)&&(yield It())}),incrementArticleVisitCount:yt,isSplashVariant:xt,isTopscroller:kt,scaleAd:At,shouldAddTakeoverCookieForNotShownAd:Tt});const Pt={nativeAd:e=>De(e)&&!Ke(e),buyrecipe:e=>e.targetId.startsWith("buyrecipe"),fullwidthAd:ze,fullscreenScroll:Re,topscroller:e=>Ue(e)&&kt(),splash:e=>Ue(e)&&xt(e.width,e.height),welcomePage:Ue,wallpaper:He,skyscraper:e=>e.targetId.includes("skyscraper")&&!!e.banner,lFormat:Qe,hFormat:Ze,toppanorama:e=>e.targetId.startsWith("toppanorama")&&!Ze(e)&&!Qe(e),topboard:e=>e.targetId.startsWith("topboard")&&!Ue(e),widescreen:Ye,insider:e=>e.targetId.startsWith("insider"),sponsorstripe:Ke,brandboard:e=>(e=>(980===e.width||1920===e.width&&e.targetId.includes("brandboard"))&&!e.targetId.includes("topboard")&&!e.targetId.includes("companion")&&!Xe(e))(e)&&!(e=>e.targetId.includes("backfill"))(e)&&!Je(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:Xe,midboard:Je},jt=({adObj:e,preferredTestIdData:t})=>{var n,o;const i=null!==(n=null==t?void 0:t.targetId)&&void 0!==n?n:null==e?void 0:e.targetId;if(!i)return;const r=null===(o=document.querySelector(`#${i}`))||void 0===o?void 0:o.parentElement;if(!r)return;if(((e,t)=>{var n,o,i,r;const a=null===(r=null===(i=null===(o=null===(n=window.apntag)||void 0===n?void 0:n.requests)||void 0===o?void 0:o.tags)||void 0===i?void 0:i[e])||void 0===r?void 0:r.invCode;a&&(t.dataset.invCode=a)})(i,r),null==t?void 0:t.testId)return void(r.dataset.testid=t.testId);const a="DIV"===(null==r?void 0:r.tagName);e&&a&&((e,t)=>{var n,o;for(const[i,r]of Object.entries(Pt))if(r(e)){if("nativeAd"===i){const r="default";t.dataset.testid=`${i}-${null!==(o=null===(n=null==e?void 0:e.native)||void 0===n?void 0:n.desc2)&&void 0!==o?o:r}`;break}t.dataset.testid=i;break}})(e,r)},$t=e=>{var t;return(null===(t=Object.entries(Pt).find(([,t])=>t(e)))||void 0===t?void 0:t[0])||""},Lt=()=>{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"},_t=e=>e===me,Nt=(e,t)=>{const n=e.width,o=(null!=t?t:window.screen.width)/n;return o<1?o:1},qt=(e,t=window.screen.width,n,o)=>{const i=Nt(e,t);if(n&&n(e,i),o)return void o(e);const r=document.querySelector(`iframe[id^="utif_${e.targetId}"]`);r&&(r.style.transform=`scale(${i})`,r.style.transformOrigin="left top")},Ft=(e,t)=>{if(e&&t)return t/e},Mt=new Map;Mt.set("insider",{scale:.82,transformOrigin:"left center",cogwheelAdjust:!0}),Mt.set("panorama",{scale:.79,transformOrigin:"center center"}),Mt.set("outstream",{scale:.79,transformOrigin:"center center"}),Mt.set("integration",{scale:.79,transformOrigin:"center center"}),Mt.set("toppanorama",{scale:.8,transformOrigin:"left center"});var Bt=Object.freeze({__proto__:null,calculateScaleFactor:Nt,getAspectRatio:Ft,scaleAd:qt,scaleAdIpadAirPortrait:e=>{if(!((null===(t=null===document||void 0===document?void 0:document.body)||void 0===t?void 0:t.clientWidth)>767&&(null===(n=null===document||void 0===document?void 0:document.body)||void 0===n?void 0:n.clientWidth)<=853))return;var t,n;const o=$t(e),i=Mt.get(o),r=document.querySelector(`#${e.targetId}`);if(!r||!i)return;if(r.style.transformOrigin=i.transformOrigin,r.style.transform=`scale(${i.scale})`,!(null==i?void 0:i.cogwheelAdjust))return;const a=document.querySelector(`div[class*="gdpr-cogwheel-button"][id$="${e.targetId}"]`),d=null==r?void 0:r.offsetWidth;a&&"number"==typeof d&&!isNaN(d)&&a.style.setProperty("right",String(-1*d*.2)+"px")},scaleAds:e=>{var t,n,o,i,r,a;const{adScaleConfig:d,pageContext:{deviceType:s}}=f.get();if(!(null==d?void 0:d.enabled))return;if(et(e,Pe))return;const l=null!==(t=d.adsToBeScaled[s])&&void 0!==t?t:[],c=Ie(e.targetId.split("-")[0]);if(!l.includes(c))return;const u=null!==(o=null===(n=d.offset)||void 0===n?void 0:n[c])&&void 0!==o?o:0,p=document.getElementById(e.targetId),v=null!==(i=null==p?void 0:p.offsetWidth)&&void 0!==i?i:window.screen.width,g=null!==(a=null===(r=null==p?void 0:p.parentElement)||void 0===r?void 0:r.offsetWidth)&&void 0!==a?a:window.screen.width;qt(e,(v<g?v:g)-u)}});const Rt={adRequested:()=>{},adAvailable:e=>{},adLoaded:e=>{const t=window.screen.width||window.innerWidth;980===e.width&&t<980&&"native"!==e.adType&&((e,t)=>{qt(e,t);const n=document.querySelector(`#${e.targetId}`);n&&(n.style.minWidth="100vw")})(e,t)},adNoBid:e=>{},adError:(e,t)=>{},adCollapse:()=>{},adRequestFailure:e=>{},adBadRequest:e=>{},adLoadedMediated:e=>{},adNoBidMediated:e=>{}},Dt={SVD:"svd",VG:"vg",AFTENPOSTEN:"aftenposten",SA:"sa",BT:"bt",AFTONBLADET:"aftonbladet",E24:"e24",MINMOTE:"minmote",PENT:"pent",GODT:"godt",TEK:"tekno",KLART:"klart",TVNU:"tvnu",POLARIS:"polaris",KOKET:"koket",TV4:"tv4",FOTBOLLSKANALEN:"fotbollskanalen",OMNI:"omni",MTV:"mtv"},zt={publisherClassName:Dt.GODT,fullWidthFormatClassName:"netboard"},Ut=864e5,Wt=(()=>{const e=e=>{const t=window.localStorage.getItem(e);if(!t)return null;try{return JSON.parse(t)}catch(e){return c("Error with parsing localStorage data"),null}},t=(e,t)=>{window.localStorage.setItem(e,JSON.stringify(t))};return{get:e,set:t,setWithTimestamp:(e,n,o=Ut)=>{const i={data:n,expirationTime:(new Date).getTime()+o};t(e,JSON.stringify(i))},getByTimestamp:(t,n=Ut)=>{const o=e(t);if(!o)return null;if(!n)return o;try{const{expirationTime:e,data:t}=JSON.parse(o);return(new Date).getTime()<=e?t:null}catch(e){return c("Error with parsing localStorage data"),null}}}})(),Ht="glimrTags",Vt=["glwe_","glwet_"],Kt={geofenceTags:[],geoTags:[],weatherTags:[]},Gt=(...e)=>H(void 0,[...e],void 0,function*(e=f.get()){const{tcf:t,pageContext:{isMobileApp:n,countryCode:o}={}}=e;if(null==t?void 0:t.schibstedConsentToPayEnabled){return yield at(t,n,o,"glimr")}const{getConsentAsync:i}=rt(t,0,o);return yield i()}),Xt=()=>H(void 0,void 0,void 0,function*(){const{glimr:e}=f.get();if(!(yield Gt())||!(null==e?void 0:e.enabled))return void c("No consent for glimr data fetching.");const t=yield(n=500,H(void 0,void 0,void 0,function*(){return yield Promise.race([H(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)=>{Wt.setWithTimestamp(Ht,{tags:e,tagMappings:t}),n(!0)})})}catch(e){c(`Error during getting glimr data: ${e}`)}else c("Timeout (500ms) while loading glimr package. Skipping glimr data fetching.",{glimr:t})}),Jt={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"},Yt=e=>Vt.some(t=>e.startsWith(t)),Qt=e=>e.startsWith("glgc_"),Zt=e=>e.startsWith("glci_"),en=e=>!Yt(e)&&!Qt(e),tn=(e,t)=>H(void 0,void 0,void 0,function*(){const{addPublisherToGeo:n}=t||{},{glimr:o,pageContext:{countryCode:i}={}}=e,r=yield Gt(e);if(!(null==o?void 0:o.enabled)||!r)return c("No consent for getting glimr tags."),{};const a=w(i),d=nn(e,Boolean(n));return{[`${a}-geo`]:d.geoTags,[`${a}-weather`]:d.weatherTags,[`${a}-geofence`]:d.geofenceTags}}),nn=(e,t)=>{const n=on();if(!n)return Kt;const o=((e=[])=>e.filter(Yt))(n),i=((e=[])=>e.filter(Qt))(n),r=((e=[],t,n)=>{var o;const i=e.filter(en);if(n&&t){const{publisher:e}=null!==(o=t.pageContext)&&void 0!==o?o:{},n=Jt[e]||e;i.push(n)}return i})(n,e,t);return{geoTags:r,geofenceTags:i,weatherTags:o}},on=()=>{const e=Wt.getByTimestamp(Ht);return e&&"string"!=typeof e?null==e?void 0:e.tags:null},rn=()=>{var e;return((e=[])=>e.filter(Zt))(null!==(e=on())&&void 0!==e?e:[])},an=()=>(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),dn=()=>(window.relevantDigital||(window.relevantDigital={cmd:[]}),window.relevantDigital),sn=(e={},t)=>{const{prebid:{externalUidInAuctionEnabled:n,forwardGlimrTags:o=!1}={},pageContext:{countryCode:i}}=f.get(),r=[`${w(i)}-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",...o?r:[]],d=Object.fromEntries(Object.entries(e).filter(([e])=>a.includes(e))),s=t&&n?{id:t}:{};return{ortb2:Object.assign({site:{ext:{data:d}}},s)}},ln="advertory:ppids-cache",cn={[b.SE]:`SCH${b.SE.toUpperCase()}-EnvHash`,[b.NO]:`SCH${b.NO.toUpperCase()}-EnvHash`},un={[b.SE]:`SCH${b.SE.toUpperCase()}-UserHash`,[b.NO]:`SCH${b.NO.toUpperCase()}-UserHash`},pn={[b.SE]:`sch${b.SE}-envhash-v3`,[b.NO]:`sch${b.NO}-envhash-v3`},vn={[b.SE]:`sch${b.SE}-userhash-v3`,[b.NO]:`sch${b.NO}-userhash-v3`},gn={[b.SE]:`'sch${b.SE}-iosid-v3'`,[b.NO]:`'sch${b.NO}-iosid-v3'`},hn={[b.SE]:`sch${b.SE}-androidid-v3`,[b.NO]:`sch${b.NO}-androidid-v3`},mn={[b.SE]:"sdrn:schibsted.com:user",[b.NO]:"sdrn:spid.no:user"};class fn{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:o})=>{t.append(e,`${o}-${n}`)}),t}}const yn=new class{constructor(){this.ppid1=null,this.ppid2=null}processPPIDs(e){return H(this,arguments,void 0,function*(e,t=1e4){var n,o;const i=yield Promise.race([new Promise(e=>{setTimeout(()=>e({xandr:{ppId1:"",ppId2:""}}),t)}),e.instance.getAdvertisingIdentifiers()]);this.setPPIDs(null===(n=i.xandr)||void 0===n?void 0:n.ppId1,null===(o=i.xandr)||void 0===o?void 0:o.ppId2)})}getPPIDs(){var e,t;return null!==this.ppid1&&null!==this.ppid2||c("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:""}},bn=new class{constructor(){this.ppid1=null,this.ppid2=null,this.idfv=null,this.anId=null}processPPIDs(e,t){return H(this,void 0,void 0,function*(){var n,o,i,r,a,d,s,l,c,u,p;const v=Wt.get(ln),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===(o=g.idfv)||void 0===o?void 0:o.plain,null===(i=g.anId)||void 0===i?void 0:i.plain),void this.setPPIDs(null!==(r=c.userId)&&void 0!==r?r:"",null!==(a=c.environmentId)&&void 0!==a?a:"",null===(d=g.idfv)||void 0===d?void 0:d.plain,null===(s=g.anId)||void 0===s?void 0:s.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||c("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,o){this.ppid1=null!=e?e:"",this.ppid2=null!=t?t:"",this.idfv=null!=n?n:null,this.anId=null!=o?o:null}shouldHash(e,t){var n,o;if(!e)return!0;for(const i in e){if((null===(n=e[i])||void 0===n?void 0:n.plain)!==(null===(o=t[i])||void 0===o?void 0:o.plain))return!0}return!1}cachePPIDs(e,t,n,o){const i=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}}:{}),o?{anId:{plain:o}}:{});Wt.set(ln,i)}hashPPIDs(e,t){return H(this,void 0,void 0,function*(){try{const n=new Headers({"Content-Type":"application/json"});return yield ee.post(t,n,e)}catch(e){return c("Error with hashing PPIDs",e),null}})}getNewPPIDs(e,t){return H(this,arguments,void 0,function*({clientId:e,instance:t},n){const o=yield((e,t)=>H(void 0,void 0,void 0,function*(){const n=yield e.getUserId();return n?`${mn[t]}:${n}`:null}))(t,n),i=yield(r=t,H(void 0,void 0,void 0,function*(){const e=yield r.getEnvironmentId();return e?`sdrn:schibsted:environment:${e}`:null}));var r;const a=window.advertory_idfv,d=window.advertory_anId;return Object.assign(Object.assign({clientId:{plain:e},userId:{plain:o},environmentId:{plain:i},trackerType:{plain:"Advertory"},trackerVersion:{plain:"1.0.0"}},a?{idfv:{plain:a}}:{}),d?{anId:{plain:d}}:{})})}createHasherPayload({clientId:e,trackerType:t,trackerVersion:n,userId:o,environmentId:i}){return{clientId:e.plain,trackerType:t.plain,trackerVersion:n.plain,userId:o.plain,environmentId:i.plain}}},wn=e=>H(void 0,void 0,void 0,function*(){const{pulse:t,tcf:n,pageContext:{countryCode:o,isMobileApp:i}}=e;if(!(yield at(n,i,o,"setXandrPPIDs")))return;if(!t)return;(yield Promise.allSettled([yn.processPPIDs(t,null==n?void 0:n.timeout),bn.processPPIDs(t,o)])).forEach((e,t)=>{if("rejected"===e.status){c(`Cannot fetch PPIDs v${t+2}`,e.reason)}})}),xn=e=>{const{ppid1:t,ppid2:n}=yn.getPPIDs(),{ppid1:o,ppid2:i,idfv:r,anId:a}=bn.getPPIDs();return{userIds:[{type:"extendedIDs",eids:(new fn).add(n,cn[e]).add(t,un[e]).add(i,pn[e]).add(o,vn[e]).add(r,gn[e]).add(a,hn[e]).buildEids()}]}},kn=()=>{const{ppid1:e,ppid2:t}=yn.getPPIDs();return{"aa-sch-schuserhash":e?"1":"0","aa-sch-schenvhash":t?"1":"0"}},Cn=e=>{const{ppid1:t,ppid2:n}=yn.getPPIDs(),{ppid1:o,ppid2:i,idfv:r,anId:a}=bn.getPPIDs();if(!n)return{};return{userSync:{userIds:[{name:"pubProvidedId",params:{eids:(new fn).add(n,cn[e]).add(t,un[e]).add(i,pn[e]).add(o,vn[e]).add(r,gn[e]).add(a,hn[e]).buildRyEids()}}]}}},In=e=>{const{ppid1:t,ppid2:n}=yn.getPPIDs(),{ppid1:o,ppid2:i}=bn.getPPIDs();return(new fn).add(n,cn[e]).add(t,un[e]).add(i,pn[e]).add(o,vn[e]).buildRyEids()},Tn=e=>H(void 0,void 0,void 0,function*(){const{ppid1:t,ppid2:n}=yn.getPPIDs(),{ppid1:o,ppid2:i}=bn.getPPIDs(),r=(new fn).add(n,cn[e]).add(t,un[e]).add(i,pn[e]).add(o,vn[e]);return yield new Promise(e=>{e(r.buildVideoEids())})}),Sn=(e,...t)=>H(void 0,[e,...t],void 0,function*(e,{timeout:t}={timeout:1e3}){document.querySelector(`script[src="${e}"]:not([type="module"])`)||(yield new Promise((n,o)=>{const i=document.createElement("script");i.async=!0,i.src=e;const r=()=>{d(),n()},a=()=>{d(),o(new Error(`Failed to load ${e}`))},d=()=>{i.removeEventListener("load",r),i.removeEventListener("error",a),clearTimeout(s)};i.addEventListener("load",r),i.addEventListener("error",a);const s=setTimeout(()=>{d(),o(new Error(`Loading script timed out: ${e}`))},t);document.head.appendChild(i)}).catch(e=>{console.error(e)}))}),En="advertory-fullscreen-scroll",An="advertory-fullscreen-scroll-wrapper",On="fullscreen-scroll-in-screen",Pn="in-screen",jn=e=>e.includes("snoap.no"),$n=e=>{var t,n,o,i,r;return!!(null===(r=null===(i=null===(o=null===(n=null===(t=window.apntag)||void 0===t?void 0:t.requests)||void 0===n?void 0:n.tags[e])||void 0===o?void 0:o.adResponse)||void 0===i?void 0:i.ads[1])||void 0===r?void 0:r.rtb)},Ln=vt([],()=>{const e=({width:e,height:t})=>{var n;const o=null===(n=document.querySelector("#sf_align"))||void 0===n?void 0:n.querySelector("div");if(!o)return;const{clientWidth:i,clientHeight:r}=o,a=e/i,d=t/r;o.style.transform=`scale(${a},${d})`,o.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}),_n=e=>{const t=vt([],()=>{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 o=n.contentDocument.createElement("style");o.textContent="\n #image {\n background-size: cover !important;\n }\n ",new MutationObserver((e,t)=>{n.contentDocument&&(n.contentDocument.head.appendChild(o),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},Nn=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},qn=[],Fn={},Mn=(e,t)=>{var n;const o=(null===(n=null==t?void 0:t.options)||void 0===n?void 0:n.fadingHeaderEnabled)||!1,i=new IntersectionObserver(e=>Bn(e,o),{}),r=Dn(e);i.observe(e),o&&(Fn[r]=Wn(e,null==t?void 0:t.options))},Bn=(e,t)=>{e.forEach(({target:e,isIntersecting:n})=>{const o=Dn(e);n?(Rn(o,n),zn(e,o,t)):(Rn(o,n),Un(e,o,t))})},Rn=(e,t)=>{var n,o;const i=null===(n=document.getElementById(e))||void 0===n?void 0:n.querySelector("iframe");if(!i)return;const r=t?"showFullscreen":"hideFullscreen";null===(o=i.contentWindow)||void 0===o||o.postMessage(`advertory:${r}-${e}`,"*")},Dn=e=>{var t;return null===(t=e.children[0])||void 0===t?void 0:t.id},zn=(e,t,n)=>{e.classList.add(Pn),document.body.classList.add(On),window.dispatchEvent(new CustomEvent("advertory:fullscreenScrollInView")),qn.includes(t)||qn.push(t),n&&window.addEventListener("scroll",Fn[t],{passive:!0})},Un=(e,t,n)=>{qn.includes(t)&&(n&&window.removeEventListener("scroll",Fn[t]),document.body.classList.remove(On),e.classList.remove(Pn),window.dispatchEvent(new CustomEvent("advertory:fullscreenScrollNotInView")))},Wn=(e,t={fadingHeaderEnabled:!1,headerSelectors:[".js-masthead"],skyscraperSelectors:[".skyscraper_r"],headerZIndex:3})=>{const{headerSelectors:n=[".js-masthead"],skyscraperSelectors:o=[".skyscraper_r"],headerZIndex:i=3}=t,r=[],a=[];return n.forEach(e=>{var t;const n=null!==(t=document.querySelector(e))&&void 0!==t?t:document.querySelector("header");n&&r.push(n)}),o.forEach(e=>{const t=document.querySelector(e);t&&a.push(t)}),()=>{r.length&&Hn(e,r,i,0),a.length&&Hn(e,a,i,40)}},Hn=(e,t,n,o)=>{const i=e.offsetHeight,r=window.scrollY,a=e.getBoundingClientRect().top+r;t.forEach(e=>{const t=e.offsetHeight;let d;d=a>r?(a-r)/t-o:(r+t-(a+i))/t;const s=d<=0;e.style.visibility=s?"hidden":"",e.style.zIndex=s?"":n.toString(),e.style.pointerEvents=s?"none":"all",e.style.opacity=d.toString()})};function Vn(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}Vn('body.fullscreen-scroll-in-screen{overflow-x:hidden}.advertory-fullscreen-scroll-wrapper{visibility:hidden;overflow:visible;width:100vw !important;height:var(--advertory-fullscreen-scroll-vh, 100vh) !important;position:relative;margin:var(--advertory-fullscreen-scroll-wrapper-margin);z-index:1;display:block !important;min-height:250px;padding:0 !important;clip-path:polygon(0 0, 100vw 0, 100vw 100dvh, 0 100dvh);-webkit-clip-path:polygon(0 0, 100vw 0, 100vw 100dvh, 0 100dvh);flex-shrink:0}.advertory-fullscreen-scroll-wrapper>div{position:fixed;top:0;left:0;height:var(--advertory-fullscreen-scroll-vh, 100vh) !important;width:100vw !important;overflow:hidden}html[data-app-platform=iOS] .advertory-fullscreen-scroll-wrapper>div{height:calc(var(--advertory-fullscreen-scroll-vh, 100vh) - env(safe-area-inset-top) + var(--advertory-ios-safe-area-top-fix, 0px) - env(safe-area-inset-bottom)) !important;top:unset !important;bottom:env(safe-area-inset-bottom) !important}.advertory-fullscreen-scroll-wrapper>div>iframe{height:inherit !important;width:inherit !important;display:none !important}.advertory-fullscreen-scroll-wrapper.in-screen{visibility:visible;overflow:visible;width:100vw !important}.advertory-fullscreen-scroll-wrapper.in-screen>div>iframe{display:block !important}.advertory-fullscreen-scroll-wrapper.in-screen:before{content:"";width:100vw;height:150dvh;position:relative !important;display:block;transform:translateX(-50%);overflow:visible;z-index:1;left:50%;top:-150dvh;padding:0 !important}.advertory-fullscreen-scroll-wrapper.in-screen:after{content:"";width:100vw;height:150dvh;position:relative !important;display:block;transform:translateX(-50%);overflow:visible;z-index:1;left:50%;top:-50dvh}.advertory-fullscreen-scroll{position:fixed;top:var(--advertory-fullscreen-scroll-top, 0px);left:var(--advertory-fullscreen-scroll-left, 0px);width:var(--advertory-fullscreen-scroll-vw, 100vw);height:var(--advertory-fullscreen-scroll-vh, 100vh);overflow:hidden}.advertory-fullscreen-scroll:not([data-ad-label-custom])::before{text-transform:lowercase}.advertory-fullscreen-scroll::before{content:attr(data-ad-label);box-sizing:border-box;position:fixed;top:var(--advertory-political-box-offset, 0px)}html[data-app-platform=iOS] .advertory-fullscreen-scroll::before{top:calc(env(safe-area-inset-top) - var(--advertory-ios-safe-area-top-fix, 0px) + var(--advertory-political-box-offset, 0px)) !important}.advertory-fullscreen-scroll::before{left:calc(50vw - 628px);width:calc(100% - 36px);max-width:1250px;text-align:left;background-color:hsla(0,0%,100%,.6);color:#212121;font-family:Ester Blenda,Arial,sans-serif;font-size:11px;font-weight:400;font-style:normal;line-height:1;margin:16px 2px;padding:10px;z-index:1;visibility:inherit !important}@media screen and (max-width: 1290px){.advertory-fullscreen-scroll::before{left:16px}}.advertory-fullscreen-scroll[data-move-cogwheel-to-the-left=true]>div[role=button]{left:calc(50vw - 623px);right:unset}@media screen and (max-width: 1290px){.advertory-fullscreen-scroll[data-move-cogwheel-to-the-left=true]>div[role=button]{left:22px;right:unset}}.advertory-fullscreen-scroll[data-move-cogwheel-to-the-left=true]::before{padding-left:32px}.advertory-fullscreen-scroll>div[id*=utif]{display:block;width:var(--advertory-fullscreen-scroll-vw, 100vw) !important;height:var(--advertory-fullscreen-scroll-vh, 100vh) !important}html[data-app-platform=iOS] .advertory-fullscreen-scroll>div[id*=utif]{height:calc(var(--advertory-fullscreen-scroll-vh, 100vh) - env(safe-area-inset-top) + var(--advertory-ios-safe-area-top-fix, 0px) - env(safe-area-inset-bottom)) !important}.advertory-fullscreen-scroll>div[id*=utif]{overflow:hidden}.advertory-fullscreen-scroll>div[id*=utif]>iframe{display:block;height:inherit !important;width:inherit !important}.advertory-fullscreen-scroll>div[role=button]{z-index:2;opacity:1;background:rgba(0,0,0,0) !important;left:unset;position:fixed !important;right:calc(50vw - 623px);top:calc(19px + var(--advertory-political-box-offset, 0px)) !important;width:26px !important;height:26px !important}html[data-app-platform=iOS] .advertory-fullscreen-scroll>div[role=button]{top:calc(env(safe-area-inset-top) - var(--advertory-ios-safe-area-top-fix) + 19px + var(--advertory-political-box-offset, 0px)) !important}@media screen and (max-width: 1290px){.advertory-fullscreen-scroll>div[role=button]{right:22px}}');const Kn="left",Gn={no:{adText:"ANNONSE",adFrom:"ANNONSE FRA",adContent:"ANNONSØRINNHOLD",adContentFrom:"ANNONSØRINNHOLD FRA",sponsorstripeInfoOpenButtonLabel:"Sponset innhold - Klikk for detaljer",sponsorstripeInfoCloseButtonLabel:"Lukk",sponsorstripeInfoText:"Annonsøren som presenterer denne saken har betalt for profilering av logoen i artikler som omhandler denne innholdskategorien",readMoreLabel:"Les mer"},se:{adText:"ANNONS",adFrom:"ANNONS FRÅN",adContent:"EXTERN LÄNK",adContentFrom:"EXTERN LÄNK FRÅN",sponsorstripeInfoOpenButtonLabel:"Sponsrat innehåll - Klicka för mer information",sponsorstripeInfoCloseButtonLabel:"Nära",sponsorstripeInfoText:"Annonsören som presenterar den här artikeln har betalat för att få sin logotyp profilerad i artiklar som handlar om den här innehållskategorin",readMoreLabel:"Läs mer"}};let Xn=null;const Jn=(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=`(${Ln})()`,e+t.outerHTML})(n),n=Nn(n),n=(e=>{if(jn(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=_n(n)),(e=>e.includes("de17a"))(n)&&(n=(e=>jn(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)),jn(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)),$n(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},Yn=()=>{Xn=null;const e=window.visualViewport,t=e?e.height:window.innerHeight,n=e?e.width:window.innerWidth,o=e?e.offsetLeft:0,i=document.documentElement;i.style.setProperty("--advertory-fullscreen-scroll-vh",`${t}px`),i.style.setProperty("--advertory-fullscreen-scroll-vw",`${n}px`),i.style.setProperty("--advertory-fullscreen-scroll-left",`${o}px`)},Qn=()=>{Xn||(Xn=window.requestAnimationFrame(Yn))},Zn=(e,t)=>{var n,o,i,r,a;const{pageContext:{countryCode:d,deviceType:s}}=f.get(),{targetId:l}=e,c=null==t?void 0:t.options;document.documentElement.style.setProperty("--advertory-ios-safe-area-top-fix",null!==(n=null==c?void 0:c.iosSafeAreaTopFix)&&void 0!==n?n:"0px"),((e,t)=>{var n;const{articlesContainerWidth:o=1302,backgroundColor:i="#fff",foregroundColor:r="#fff",margin:a,beforeContentValue:d=""}=e,s=null!==(n=null==a?void 0:a[t])&&void 0!==n?n:"16px 0",l=o/2,c=document.createElement("style");c.innerHTML=`\n :root {\n --background: linear-gradient(\n to right,\n ${i} 0px,\n ${i} calc(50% - ${l}px),\n ${r} calc(50% - ${l}px),\n ${r} calc(50% + ${l}px),\n ${i} calc(50% + ${l}px),\n ${i} 100%\n ) !important;\n \n --advertory-fullscreen-scroll-wrapper-margin: ${s};\n }\n \n .advertory-fullscreen-scroll-wrapper {\n ${d&&"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: '${d}' !important;\n }`,c.id="ad-fullscreen-scroll-wrapper-style",document.head.appendChild(c)})(null!==(o=null==c?void 0:c.overlayStyles)&&void 0!==o?o:{},s);const u=document.getElementById(l),p=null==u?void 0:u.parentElement;if(!u||!p)return;Mn(p,t),u.className=En,Mn(p,t),u.className="advertory-fullscreen-scroll";const v=et(e,Oe)?"absolute":"fixed";u.style.position=v,p.className=An,p.dataset.showTagSubscribeId=l,u.setAttribute("data-ad-label",null!==(i=null==c?void 0:c.annonsLabel)&&void 0!==i?i:Gn[d].adText),(null==c?void 0:c.annonsLabel)&&(u.dataset.adLabelCustom="true"),(null==c?void 0:c.cogwheelPosition)===Kn&&(u.dataset.moveCogwheelToTheLeft="true"),Qn(),window.addEventListener("resize",Qn),null===(r=window.visualViewport)||void 0===r||r.addEventListener("resize",Qn),null===(a=window.visualViewport)||void 0===a||a.addEventListener("scroll",Qn)},eo=e=>{if(!(null==e?void 0:e.classList.contains(En)))return;e.classList.remove(En),e.removeAttribute("style"),e.removeAttribute("data-ad-label"),e.removeAttribute("data-ad-label-custom");const t=e.parentElement;(null==t?void 0:t.classList.contains(An))&&(t.classList.remove(An),t.classList.remove(Pn))};var to=Object.freeze({__proto__:null,createFullscreenScrollAd:Zn,modifyFullscreenScrollAd:({targetId:e})=>{const t=(e=>{var t;const{requests:n}=window.apntag,o=$n(e)?1:0;return null===(t=null==n?void 0:n.tags[e].adResponse.ads[o].rtb)||void 0===t?void 0:t.banner.content})(e);if(!t)return;((e,t)=>{const{requests:n}=window.apntag,o=$n(e)?1:0,i=null==n?void 0:n.tags[e].adResponse.ads[o].rtb;i&&(i.banner.content=t)})(e,Jn(t,e))},undoFullscreenScrollContainer:eo});const no=e=>{var t;!document.querySelector(`#gdprAdTransparencyCogWheelButton-${e}`)&&(null===(t=window.gdpr)||void 0===t?void 0:t.setupButton)&&window.gdpr.setupButton(e)},oo=(e,t,n)=>{var o,i,r,a;const d=document.createElement("div");d.id=`${e}-button`,t.appendChild(d);(null===(i=null===(o=window.apntag.requests)||void 0===o?void 0:o.tags[e])||void 0===i?void 0:i.adResponse)||(null!==(r=(a=window.apntag).requests)&&void 0!==r||(a.requests={tags:{}}),window.apntag.requests.tags[e]=Object.assign(Object.assign({},window.apntag.requests.tags[e]),{adResponse:{ads:[{creative_id:n}]}})),no(e);const s=d.firstElementChild;s&&t.insertBefore(s,d),d.remove()},io="ad-loaded",ro=(e,t,n)=>H(void 0,void 0,void 0,function*(){yield ge,yield he;new IntersectionObserver((t,o)=>{t.filter(({isIntersecting:e})=>e).forEach(()=>{n(),o.unobserve(e),o.disconnect()})},{rootMargin:`${t}px 0px ${t}px 0px`}).observe(e)}),ao=()=>H(void 0,void 0,void 0,function*(){const{prebid:e,tcf:t,pageContext:{countryCode:n,isMobileApp:o,deviceType:i},fullscreenScroll:r,appearanceConfig:a,placements:d}=f.get();if(!(null==e?void 0:e.enabled))return;const{initNativeAd:s}=f.getHandlers(),{getConsentAsync:l}=rt(t,0,n),u=yield l(),p=(()=>{let e=!1,t=[];const n={relevantCb:{timeout:1e3},auctionCb:{timeout:2e3}};return{getCancel:()=>e,setCancel:t=>{e=t},events:n,failsafeOnTimeout:o=>{const i=an(),{prebid:{relevantCallbackTimeout:r}={}}=f.get(),a="relevantCb"===o&&r?r:n[o].timeout,d=setTimeout(()=>{!n[o].done&&!e&&(console.warn(`Doing failsafe loadTags() call after waiting too long for '${o}'`),e=!0,i.loadTags&&i.loadTags())},a);t.push(d)},cleanup:()=>{t.forEach(e=>clearTimeout(e)),t=[],e=!1,n.relevantCb.done=!1,n.auctionCb.done=!1}}})(),v=an(),g=(()=>{const{requests:{user:e={userIds:[]},keywords:t={}}={}}=an();return{user:e,keywords:t}})();p.failsafeOnTimeout("relevantCb");const{user:{externalUid:h=""}={},keywords:m}=g;(()=>{const e=dn();return e.cmd||(e.cmd=[]),e.cmd})().push(()=>{c("prebid relevantYieldQueue callback fired - RY took over");if(p.getCancel()||!v.loadTags)return c("core loadTags() call was cancelled",{cancel:p.getCancel(),apnTagLoadTags:!v.loadTags,condition:"or"}),void p.cleanup();const t=dn();p.events.relevantCb.done=!0,p.failsafeOnTimeout("auctionCb");const l=u?{gdpr:{cmpApi:"iab",timeout:8e3}}:{cmpApi:"none"};c("prebid consentManagement",l),t.addPrebidConfig(Object.assign(Object.assign({consentManagement:l,enableSendAllBids:!1},Cn(n)),sn(m,h))),c("core add prebid config",Object.assign(Object.assign({consentManagement:l,enableSendAllBids:!1},Cn(n)),sn(m,h))),t.loadPrebid({configId:e.configId,manageAdserver:!1,collapseEmptyDivs:!1,collapseBeforeAdFetch:!1,noGpt:!0,noSlotReload:!0,loadUnknownSlots:!0,apntagCalls:{showTag:()=>{},loadTags:e=>{c("prebid auctionCb loadTags called by RY - prebid hands off to Xandr",{targetIds:e,cancelled:p.getCancel()}),p.getCancel()||(p.events.auctionCb.done=!0,v.loadTags(e)),p.cleanup()}},customNativeRender:e=>{so(e,s)},directRenderFn:e=>{var t,n,s;const{settings:l,renderFn:u}=e,{bid:p,adDiv:v}=l||{};if(!v)return;const g=v.id,h=document.getElementById(g);if(!h)return;const m=null===(t=null==d?void 0:d[i])||void 0===t?void 0:t.find(e=>e.targetId===g),f=null!==(s=null!==(n=null==m?void 0:m.requestThreshold)&&void 0!==n?n:null==a?void 0:a.defaultThreshold[i])&&void 0!==s?s:0,y=Object.assign(Object.assign({},p),{targetId:g,banner:!0});c("prebid directRenderFn ad info",{targetId:g,width:null==p?void 0:p.width,height:null==p?void 0:p.height,adId:null==p?void 0:p.adId,creativeId:null==p?void 0:p.creativeId}),ro(h,f,()=>{var e;const t=u(l),n=Re(y);if(c("prebid directRenderFn isFullscreenScrollAd",{targetId:g,isFullscreen:n,width:null==p?void 0:p.width,height:null==p?void 0:p.height}),n)c("prebid directRenderFn: creating fullscreen scroll container",{targetId:g}),Zn(y,r),(e=>{const t=()=>{const t=e.contentDocument;if(!(null==t?void 0:t.body))return;const n=()=>{const e=t.querySelector("iframe");if(!e)return!1;const n=()=>{var t;const n=null===(t=e.contentDocument)||void 0===t?void 0:t.querySelector(".adn-ttpa-container");n&&(n.style.setProperty("bottom","10px","important"),n.style.setProperty("top","unset","important"))};return e.addEventListener("load",n),n(),!0};if(n())return;const o=new MutationObserver(()=>{n()&&o.disconnect()});o.observe(t.body,{childList:!0,subtree:!0})};e.addEventListener("load",t),t()})(t),o&&h.style.setProperty("--advertory-political-box-offset","30px");else{c("prebid directRenderFn: NOT fullscreen scroll - undoing container",{targetId:g}),eo(h),null===(e=null==h?void 0:h.parentElement)||void 0===e||e.classList.add("advertory-direct-render");const n=t.getAttribute("width");n&&(h.style.width=`${n}px`)}h.classList.add(io),(null==p?void 0:p.creativeId)&&oo(g,h,Number(null==p?void 0:p.creativeId))})}}),c("core load prebid",{configId:e.configId,manageAdserver:!1,collapseEmptyDivs:!1,collapseBeforeAdFetch:!1,noGpt:!0,noSlotReload:!0,loadUnknownSlots:!0,apntagCalls:{showTag:()=>{},loadTags:e=>{p.getCancel()||(p.events.auctionCb.done=!0,v.loadTags(e))}},customNativeRender:e=>{so(e,s)},directRenderFn:()=>{}})})}),so=(e,t)=>{var n;const{divId:o,native:i,bid:r}=e,a=document.querySelectorAll(`[id^=${o}]`)[0],d=`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,d);const s=null===(n=a.getElementsByTagName("iframe")[0])||void 0===n?void 0:n.contentWindow;null==t||t({native:i,targetId:d},f.get()),null==s||s.postMessage(JSON.stringify({message:"Prebid Response",ad:"\x3c!-- nothing --\x3e",adId:r.adId}),"*")},lo=e=>`externalImpId:'${e}'`,co=(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,uo=e=>{var t;const{pageSetup:{tag:{forwardExternalImpId:n=!1}={}}={},pulse:o}=f.get(),{targetId:i,sizes:r,keywords:a,allowedFormats:d,invCode:s,ssaNativeAdEnabled:l=!1,nativeCustomProperties:u,safeframeConfig:p,dynamicSizeWidthCheck:v=!1,globalPlacementId:g}=(e=>{var t;if(!e.takeoverCookieCapForSharedPlacement||bt())return e;const n=null===(t=e.keywords)||void 0===t?void 0:t["no-sno-adformat"],o=Array.isArray(n)?n.filter(e=>e!==ut):n,i=Object.assign(Object.assign({},e.keywords),n&&{"no-sno-adformat":o}),r=e.sizes.filter(([e,t])=>4!==e||4!==t);return Object.assign(Object.assign({},e),{sizes:r,keywords:i})})(e),h=Object.assign({invCode:s,sizes:r,targetId:i,keywords:co(a,l),allowedFormats:d,dynamicSizeWidthCheck:v,globalPlacementId:g},p&&{safeframeConfig:p}),m=(e=>{var t,n;const o=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 o?(c("Pulse state pageViewId is:",o),o):(c("Pulse state does not contain field pageViewId or it is empty"),"")})(o);n&&m&&(c("External Impression ID assigned to defineTag:",lo(m)),h.externalImpId=lo(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,o])=>((null==e?void 0:e.includes(n))&&(t[n]=o),t),{customTitle1:{required:!1},customTitle2:{required:!1},customTitle3:{required:!1},customTitle4:{required:!1},customDisplayUrl2:{required:!1},title:{required:!1},body:{required:!1},image:{required:!1},icon:{required:!1},sponsoredBy:{required:!1},cta:{required:!1},clickUrl:{required:!1},desc2:{required:!1},displayUrl:{required:!1},description:{required:!1}}))(u);return(null===(t=e.allowedFormats)||void 0===t?void 0:t.includes("native"))&&(h.native=y),h},po=e=>!e.includes("takeover")||bt(),vo=e=>{if(!e)return e;const{pageContext:{countryCode:t}}=f.get(),n=w(t),o=e[`${n}-targetid`],i=o?U(o[0]):"";return Object.assign(Object.assign({},e),o&&{[`${n}-targetid`]:[i]})},go=e=>{const{pageContext:{countryCode:t}}=f.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"]})},ho=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 o=n.split(",")[0].split(":")[0],i=e.find(e=>e.invCode===o),r=document.querySelector(`[id^=${null==i?void 0:i.targetId}]`);r&&r.scrollIntoView({behavior:"smooth",block:"start"})})(e)},mo=e=>{const{source:t}=e;return"csm"===t},fo=e=>({rootMargin:`${e}px 0px ${e}px 0px`}),yo=new Map,bo=["no-stavangeraftenblad","sa","no-aftenposten","aftenposten","no-bergenstidende","bt"],wo=".brandstudio-premium-content-widget",xo=({adWrapper:e,placementContainer:t})=>t.offsetHeight+(({adWrapper:e})=>{const{paddingTop:t,paddingBottom:n}=getComputedStyle(e);return parseFloat(t)+parseFloat(n)})({adWrapper:e}),ko=({adWrapper:e,placementContainer:t})=>{const n=xo({adWrapper:e,placementContainer:t});var o;null==e||e.style.setProperty("height",`${n}px`),se(o=t),o.innerHTML=""},Co=e=>{e&&e.style.getPropertyValue("height")&&e.style.removeProperty("height")},Io=({adWrapper:e,placementContainer:t})=>{const{pageContext:{publisher:n}}=f.get(),o=bo.includes(n)&&Boolean(t.closest(wo));const i=o?t.closest(wo):null,r=new MutationObserver(t=>{t.forEach(({addedNodes:t})=>{t.forEach(t=>{const n=t instanceof HTMLElement,a=n&&t.matches("iframe, article")&&e;if(!n||!o&&!a||o&&!i)return;if(a)return Co(e),void r.disconnect();const d=t.closest('[style*="height"]'),s=i;d&&s.contains(d)?Co(d):s.hasAttribute("style")&&Co(s),r.disconnect()})})});try{r.observe(t,{childList:!0,subtree:!0})}catch(e){r.disconnect()}},To=(e,t,n,o,i,r)=>{var a;const d=performance.now(),s=null!==(a=yo.get(t))&&void 0!==a?a:0,l=((e,t)=>!!t&&e+t<(new Date).getTime())(o,i)&&n<0;d-s>=i&&l&&(yo.set(t,d),((e,t,n)=>{const{pageContext:{countryCode:o}}=f.get(),i=null==n?void 0:n.parentElement;i&&n&&ko({adWrapper:i,placementContainer:n}),K(()=>{e.setKeywords([t],{[`${w(o)}-adreload`]:"1"},{overrideKeyValue:!0}),e.refresh([t])})})(e,t,r))},So=(e,t,n)=>{const o=new IntersectionObserver((e,o)=>((e,t,n,o)=>{e.filter(({isIntersecting:e})=>e).forEach(e=>{const{target:i,boundingClientRect:r}=e;t(window.apntag,i.id,r.y,n,o,i)})})(e,To,t,n),fo(300));o.observe(e)},Eo=(e,t=6)=>{const n=[];for(let o=0;o<e.length;o+=t){const i=e.slice(o,o+t);n.push(i)}return n},Ao=()=>navigator&&navigator.userAgent.match(/chrome/i)?null:navigator&&navigator.userAgent.match(/apple/i),Oo=(e,t=0)=>{const n=e.getBoundingClientRect(),o=window.innerHeight;return n.bottom>-t&&n.top<o+t},Po=e=>{const{refreshConfig:{visibilityStateRefreshEnabled:t=!1}={}}=f.get();if(!t)return;const n=()=>{"visible"===document.visibilityState&&document.removeEventListener("visibilitychange",n),No(e)};"visible"!==document.visibilityState&&document.addEventListener("visibilitychange",n)},jo=(e,t,n)=>{const o=document.querySelectorAll('[data-bf-cache-refresh="true"]');for(const i of o){const o=e.find(e=>{var t,n;return e.targetId===(null===(t=i.firstElementChild)||void 0===t?void 0:t.id)&&(null===(n=e.refresh)||void 0===n?void 0:n.bfCache)}),r=null==o?void 0:o.requestThreshold;Oo(i,r)&&o&&(Y(o.targetId),n.length&&i.classList.remove(...n),No([o],t))}},$o=e=>{const{refreshConfig:{backForwardNavigationRefreshEnabled:t=!1}={},siteSpecificConfig:{classesToRemoveOnRefresh:n=[]}={},pageContext:{isMobileApp:o}}=f.get();t&&(e.forEach(({targetId:e})=>{const t=Lo(e);t&&(t.dataset.bfCacheRefresh="true")}),o?((e,t)=>{document.addEventListener("visibilitychange",()=>{"visible"===document.visibilityState&&jo(e,!0,t)})})(e,n):((e,t)=>{window.addEventListener("pageshow",n=>{const o=()=>{window.scrollY>0&&(window.removeEventListener("scroll",o),jo(e,!1,t))};n.persisted&&(Ao()?window.addEventListener("scroll",o,{passive:!0}):jo(e,!1,t))})})(e,n))},Lo=e=>{var t,n;return null!==(n=null===(t=document.querySelector(`#${e}`))||void 0===t?void 0:t.parentElement)&&void 0!==n?n:null},_o=e=>{const{targetId:t,allowedFormats:n}=e,o=(e=>{if(!e)return[];try{return JSON.parse(e.dataset.adSizes||"[]")}catch(e){return[]}})(Lo(t)),i=(e=>1===e[0]&&1===e[1])(o),r={sizes:[o],allowedFormats:i?n:n.filter(e=>"native"!==e),allowSmallerSizes:!1};return i||(r.native=void 0),r},No=(e,t=!1)=>{const{queryConfig:{batchSize:n=h}={}}=f.get(),o=e.map(({targetId:e})=>e),i=Eo(o,n);if(t)for(const t of e){const e=_o(t);window.apntag.modifyTag(t.targetId,e)}for(const e of i)K(()=>window.apntag.refresh(e))},qo=e=>{const{apntag:t,bus:n}=e,{siteEvents:o,initNativeAd:i}=f.getHandlers(),r=[];return{adRequested:()=>{n.emit("adRequested"),o.adRequested()},adAvailable:e=>H(void 0,void 0,void 0,function*(){var t,r,a,d,s,l;c("core adAvailable start",{adObj:e,isFullscreenScrollAd:Re(e),isFinnBlink:Ge(e.targetId),isNativeAd:De(e),isMediation:mo(e),isTakeoverAd:Ue(e),isCollapseAd:Ve(e),isWallpaperAd:He(e)});const u=null===(a=null===(r=null===(t=null===window||void 0===window?void 0:window.apntag)||void 0===t?void 0:t.requests)||void 0===r?void 0:r.tags[e.targetId])||void 0===a?void 0:a.adResponse.ads;if(mo(e)&&u&&(null===(d=u[1])||void 0===d?void 0:d.rtb)&&(e.banner=null===(l=null===(s=u[1])||void 0===s?void 0:s.rtb)||void 0===l?void 0:l.banner),Re(e)){const{modifyFullscreenScrollAd:t}=yield Promise.resolve().then(function(){return to});t(e)}const{widescreenSwitching:p,wallpaper:v,fullscreenScroll:g}=f.get();if(Ye(e)&&(null==p?void 0:p.enabled)){const{initWidescreenSwitching:e}=yield Promise.resolve().then(function(){return od});e()}if(Re(e)&&!Ge(e.targetId)){c("core adAvailable: creating fullscreen scroll container",{targetId:e.targetId,width:e.width,height:e.height,bannerWidth:e.banner&&"object"==typeof e.banner?e.banner.width:e.banner,bannerHeight:e.banner&&"object"==typeof e.banner?e.banner.height:void 0});const{createFullscreenScrollAd:t}=yield Promise.resolve().then(function(){return to});t(e,g)}if(!De(e)||mo(e)||Ge(e.targetId)||null==i||i(e,f.get()),Ue(e)&&!Ve(e)){const{modifyTakeoverAdContent:t,createTakeoverAd:n}=yield Promise.resolve().then(function(){return Id});t(e.targetId),yield n(e)}if(He(e)&&(null==v?void 0:v.enabled)){const{initWallpaperAd:t}=yield Promise.resolve().then(function(){return N});t(()=>K(()=>window.apntag.showTag(e.targetId)),v),X.setData("wallpaper",{isAvailable:!0})}(e=>e.targetId.includes("skyscraperleft")&&!!e.banner)(e)&&X.setData("horseshoe",{isAvailable:!0}),o.adAvailable(e),yield n.emit("adRendered",{targetId:e.targetId}),c("core adAvailable stop",{adObj:e,isFullscreenScrollAd:Re(e),isFinnBlink:Ge(e.targetId),isNativeAd:De(e),isMediation:mo(e),isTakeoverAd:Ue(e),isCollapseAd:Ve(e),isWallpaperAd:He(e)})}),adLoaded:e=>H(void 0,void 0,void 0,function*(){const{refreshConfig:n,appearanceConfig:a,wallpaper:d,adScaleConfig:s,pulse:l,placements:c,pageContext:{deviceType:u,publisher:p=""}}=f.get(),v=document.getElementById(e.targetId);if(Ge(e.targetId)){const{displaySpecialFormatsForFinnFallback:t}=yield Promise.resolve().then(function(){return Ad});t(e)}if(r.includes(e.targetId)&&De(e)&&(null==i||i(e,f.get()),jt({adObj:e})),!r.includes(e.targetId)&&mo(e)&&r.push(e.targetId),Ve(e)&&D(e.targetId),Ue(e)){const{modifyTakeoverIframe:n}=yield Promise.resolve().then(function(){return Id});n(t,e.targetId)}if((e=>et(e,je))(e)){const{applyNinesixteenFormat:t}=yield Promise.resolve().then(function(){return $d});t(e)}if((e=>et(e,Le))(e)){const{applyFullsquareFormat:t}=yield Promise.resolve().then(function(){return $d});t(e)}if(ze(e)){const{applyFullwidthFormat:t}=yield Promise.resolve().then(function(){return $d});t(e)}((e,t)=>{if(!(null==t?void 0:t.scrollRefreshEnabled))return;const{targetId:n}=e,o=document.querySelector(`#${n}`),i=null==o?void 0:o.parentElement;if(!i||!o)return;Io({adWrapper:i,placementContainer:o});const{delayTimeToNextRefresh:r=1e3}=t,a=(new Date).getTime();o&&"true"!==o.dataset.subscribedForRefresh&&(o.dataset.subscribedForRefresh="true",o.dataset.refresh&&So(o,a,r))})(e,n),(null==a?void 0:a.clearProbableDimensionsEnabled)&&J(e.targetId);if(X.getData("horseshoe").isAvailable&&(null==d?void 0:d.enabled)){const{adjustAdToHorseshoe:t}=yield Promise.resolve().then(function(){return N});t(e.targetId)}if(null==s?void 0:s.enabled){const{scaleAds:t,scaleAdIpadAirPortrait:n}=yield Promise.resolve().then(function(){return Bt});t(e),n(e)}if(o.adLoaded(e),(null==l?void 0:l.instance)&&l.adTrackingEnabled){const{XandrAdTracker:t}=yield Promise.resolve().then(function(){return tr}),n=new t(f.get(),e);n.trackLoad(),n.trackImpression()}no(e.targetId),v&&(v.classList.add(io),(e=>{var t,n;const{pageSectionsSelectors:o}=f.get(),i=null==o?void 0:o.mainFirstColumn,r=i?null===(t=document.querySelector(i))||void 0===t?void 0:t.clientWidth:void 0;r&&e.clientWidth>r&&(null===(n=e.parentElement)||void 0===n||n.setAttribute("data-two-column-ad-layout","true"),window.dispatchEvent(new CustomEvent("advertory:twoColumnAdLayoutApplied",{detail:{targetId:e.id}})))})(v)),jt({adObj:e}),(e=>{var t;const n=null==e?void 0:e.targetId;if(!n)return;const o=null===(t=document.querySelector(`#${n}`))||void 0===t?void 0:t.parentElement;o&&((e,t)=>{const{height:n,width:o,native:i}=e;i?t.dataset.adSizes="[1,1]":n&&o&&(t.dataset.adSizes=`[${o},${n}]`)})(e,o)})(e),window.dispatchEvent(new CustomEvent("advertory:adLoaded",{detail:{targetId:e.targetId,adFormat:$t(e)}}))}),adNoBid:e=>H(void 0,void 0,void 0,function*(){if(D(e.targetId),Ue(e)){const{handleTakeoverCookieOnAdNotShown:t}=yield Promise.resolve().then(function(){return Ot});yield t(e)}o.adNoBid(e)}),adError:(e,t)=>H(void 0,void 0,void 0,function*(){if(Ue(t)){const{handleTakeoverCookieOnAdNotShown:e}=yield Promise.resolve().then(function(){return Ot});yield e(t)}o.adError(e,t)}),adCollapse:()=>{o.adCollapse()},adRequestFailure:e=>H(void 0,void 0,void 0,function*(){D(e.targetId),o.adRequestFailure(e)}),adBadRequest:e=>H(void 0,void 0,void 0,function*(){D(e.targetId),o.adBadRequest(e)}),adLoadedMediated:e=>o.adLoadedMediated(e),adNoBidMediated:e=>{o.adNoBidMediated(e)}}};let Fo;const Mo=()=>{Fo=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=Fo,V=e=>window.apntag.anq.push(e)},Bo=()=>Fo,Ro={name:"xandr",capabilities:{tagDefinition:"explicit",deferredRequest:!0,deferredRender:!0,refresh:!0},setup:()=>H(void 0,void 0,void 0,function*(){Mo(),yield Promise.allSettled([H(void 0,void 0,void 0,function*(){const{tcf:e,pageContext:{isMobileApp:t,countryCode:n}}=f.get();(yield at(e,t,n,"xandr-endpoint"))||Fo.setEndpoint("ib.adnxs-simple.com",!0)}),H(void 0,void 0,void 0,function*(){const{developerOptions:{astUrl:e}={}}=f.get();yield Sn(null!=e?e:"https://adsdk.microsoft.com/ast/ast.js")}),H(void 0,void 0,void 0,function*(){if(R())return;const{prebid:e,tcf:t,pageContext:{isMobileApp:n,countryCode:o}}=f.get(),i=yield at(t,n,o,"prebid");(null==e?void 0:e.enabled)&&i&&(yield Sn(null==e?void 0:e.prebidUrl))})])}),setTargeting:()=>H(void 0,void 0,void 0,function*(){const{pageOptions:e}=f.get(),{preparePageOptions:t}=f.getHandlers(),n=(()=>{var e,t;const{pageSetup:{pageOptions:n}={}}=f.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"]}})(),o=yield H(void 0,void 0,void 0,function*(){const{tcf:e,pageContext:{isMobileApp:t,countryCode:n}}=f.get();return(yield at(e,t,n,"page-options"))?{}:{userSync:{disabled:!0}}}),i=yield t(Object.assign(Object.assign(Object.assign({disablePsa:!0,enableSafeFrame:!0},e),{renderingManagement:Object.assign({},n)}),o));(e=>{const t=X.getData("alertoryConfigKeywords");if(Object.keys(t).length)return;const n=go(e);X.setData("alertoryConfigKeywords",n)})(i.keywords),K(()=>Bo().setPageOpts(i))}),definePlacements:e=>{const{prepareTag:t}=f.getHandlers(),n=[];(e=>{const t=["skyscraperright_1","topboard","wallpaper","skyscraperleft_1"];return e.sort((e,n)=>{const o=t.findIndex(t=>e.targetId.includes(t)),i=t.findIndex(e=>n.targetId.includes(e));return-1!==o&&-1===i?-1:-1===o&&-1!==i?1:o-i})})(e).forEach(e=>{c("xandr definePlacements",{placement:e});const o=uo(e);if(po(e.targetId)){const i=t(o),r=(e=>{const{allowedFormats:t,invCode:n,keywords:o,sizes:i}=e;return{adTypes:t,invCode:n,keywords:vo(o),sizes:i}})(i);n.push(r),K(()=>(c("xandr definePlacements - add to the queue",{placement:e,preparedTag:i}),Bo().defineTag(i)))}}),(e=>{var t,n,o;(null===(o=null===(n=null===(t=window.advertory)||void 0===t?void 0:t.alertoryConfig)||void 0===n?void 0:n.xandr)||void 0===o?void 0:o.tags)&&e.length&&window.advertory.alertoryConfig.xandr.tags.push(e)})(n)},requestPlacements:e=>H(void 0,void 0,void 0,function*(){const t=e.filter(({targetId:e})=>po(e)).map(({targetId:e})=>e);t.length&&K(()=>(c("xandr requestPlacements",{placementsIdsToLoad:t}),Bo().loadTags([...t])))}),bindEvents:e=>H(void 0,void 0,void 0,function*(){var t;yield(t={apntag:Bo(),bus:e},H(void 0,void 0,void 0,function*(){const{apntag:e}=t,n=qo(t);K(()=>{e.onEvent("adRequested",n.adRequested),e.onEvent("adAvailable",n.adAvailable),e.onEvent("adLoaded",n.adLoaded),e.onEvent("adNoBid",n.adNoBid),e.onEvent("adError",n.adError),e.onEvent("adCollapse",n.adCollapse),e.onEvent("adRequestFailure",n.adRequestFailure),e.onEvent("adBadRequest",n.adBadRequest),e.onEvent("adLoadedMediated",n.adLoadedMediated),e.onEvent("adNoBidMediated",n.adNoBidMediated)})}))})},Do=(e,t,n)=>{const o=document.getElementById(`div_utif_${e}`);if(!o)return;const{apntag:i}=window,[r,a]=t;if(!o.dataset.lockedsize&&a&&r)o.style.width=`${r}px`,o.style.height=`${a}px`,n&&(i.resizeAd(o.id,[r,a]),o.dataset.lockedsize="true",o.dataset.lockedwidth=r.toString(),o.dataset.lockedheight=a.toString());else if(null==o?void 0:o.dataset.lockedsize){const{lockedwidth:e,lockedheight:t}=o.dataset;e&&t&&i.resizeAd(o.id,[e,t])}},zo="collapseAd",Uo="hideAd",Wo="resizeAd",Ho="wallpaperImageUrl",Vo="wallpaperColor",Ko="velvet",Go=[Wo,Ho,Vo,zo,Uo,Ko];let Xo;const Jo=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(j(e)){const t=e.replace(/^wallpaper:url:/,"");return{name:Ho,wallpaperImageUrl:t}}if($(e)){const t=e.replace(/^wallpaper:color:/,"");return{name:Vo,wallpaperColor:t}}if(e.startsWith(zo)||e.startsWith(Uo)){const t=e.split(":")[1];return{name:zo,targetId:t}}if(e.includes("name")&&Go.some(t=>e.includes(t)))try{return JSON.parse(e)}catch(e){}})(t);if(!n)return;if(!n.name||!Go.some(e=>n.name===e))return;const{name:o,targetId:i,wallpaperImageUrl:r,wallpaperColor:a,cmd:d,size:s}=n;o===Ko&&d&&(d.includes("noScroll")&&(Xo=(e=>{if(!e)return()=>{};const t=e.style.overflow;return e.style.setProperty("overflow","hidden"),()=>{e.style.setProperty("overflow",t)}})(document.querySelector("body"))),(d.includes("close")||d.includes("ended"))&&(null==Xo||Xo(),dispatchEvent(new CustomEvent("advertory:closeTakeover",{})))),o!==zo&&o!==Uo||!i||D(i),o===Wo&&i&&d&&Do(i,d),"resizeMediationAd"===o&&i&&s&&Do(i,s,!0),o===Ho&&r&&L(r),o===Vo&&a&&_(a)},Yo=()=>{const{pageContext:{publisher:e,countryCode:t},finnBlink:n}=f.get(),o=window.apntag,i={publisher:e,countryCode:t,finnBlink:n},r=e=>{z(e),K(()=>o.showTag(e))};return{withXandrAd:r,withFinnBlinkAd:e=>H(void 0,void 0,void 0,function*(){if(!(null==n?void 0:n.enabled))return;const{loadFinnBlinkAd:t}=yield Promise.resolve().then(function(){return Ud});yield t(e,i,null)}),withFullAdsChain:e=>H(void 0,void 0,void 0,function*(){if(!(null==n?void 0:n.enabled))return void r(e);const{loadFinnBlinkAd:t}=yield Promise.resolve().then(function(){return Ud});yield t(e,i,r,()=>H(void 0,void 0,void 0,function*(){if(!X.getData("horseshoe").isAvailable)return;const{adjustAdToHorseshoe:t}=yield Promise.resolve().then(function(){return N});t(e)}))})}},Qo=(e,t)=>H(void 0,void 0,void 0,function*(){e.id.includes("wallpaper")||(yield ro(e,t,()=>((e,t,n)=>{const o="true"===n.dataset.isFinnBlinkOnlyPlacement;return Ge(t)&&o?(c(`loading finn blink ad for blink only placement for ${t}`),void Yo().withFinnBlinkAd(t)):Ge(t)?(c(`loading finn blink ad with full ads chain for ${t}`),void Yo().withFullAdsChain(t)):void K(()=>(c("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)))}),Zo=(e,t)=>H(void 0,void 0,void 0,function*(){return yield new Promise(t=>{e().then(e=>{t(null!=e?e:null)}).catch(e=>{t(null)})})});Vn(".advertory-brandmetrics-survey{width:100%}");const ei="advertory-brandmetrics-survey",ti=()=>H(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)}}),ni="https://dr-edition-teaser-server.inventory.schibsted.io/xandr",oi=()=>H(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,o)=>{var i;o||t(""),"tcloaded"!==n.eventStatus&&"useractioncomplete"!==n.eventStatus||(t(null!==(i=n.tcString)&&void 0!==i?i:""),e("removeEventListener",2,()=>{},n.listenerId))})}))}:{};var e}),ii={pageContext:{publisher:"aftonbladet",countryCode:b.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"}},ri={nyheter:"nyheter",sport:"sportbladet",noje:"nojesbladet",family:"family",matdryck:"matdryck",wellness:"wellness",minekonomi:"minekonomi",resa:"resa",harligthemma:"harligthemma"},ai=e=>(null==e?void 0:e.parent)?[...ai(e.parent),e.shortPath||"unknown"]:[],di=(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]=ai(e);return ri[n]||"ovrigaavdelningar"})(e)}_{position}`,si={aftonbladet:ii},li={aftonbladet:(e,t)=>{if(!e)return null;return{invCode:di(e,t),videoOverlayInvCode:"se-aftonbladet-{deviceType}-other-{position}",sections:ai(e).join(":")}}},ci=e=>{switch(e){case"auto":return 1;case"silent":return 2;default:return 3}},ui=new Map([[1,"autoplay"],[2,"muted-autoplay"],[3,"click-to-play"]]),pi="se-generic",vi="aa-sch",gi="kv_",hi="pause",mi="{deviceType}",fi="{position}",yi="afp_",bi=new Set(Object.values({PREROLL:"preroll",BUMPER:"bumper",MIDROLL:"midroll"})),wi="1-1",xi="16-9",ki="3-4",Ci="9-16",Ii="responsive",Ti={[wi]:1,[xi]:1.78,[Ci]:.56,[Ii]:1},Si={[wi]:1,[xi]:1.78,[ki]:1.33,[Ci]:.56},Ei=(e,t,n,o)=>{const{invCode:i="",videoOverlayInvCode:r}=null!=e?e:{},a=ye===n?xe:ke,d=i.replace(mi,a);return(e,n)=>{if(e===hi)return(e=>e.replace("tv-","").replace("-afp_","-afp-").replace(fi,hi).replace(/-([a-z]+)_/,"-article-"))(d);if(n&&bi.has(e)){return(o&&r?r:t.frontpageInvCodeTemplate).replace(mi,a).replace(fi,e)}return d.replace(fi,e)}},Ai=(e,t)=>{const n=Object.entries(e);return n.reduce((n,[o,i])=>{const r=Math.abs(e[n]-t);return Math.abs(i-t)<r?o:n},n[0][0])},Oi=()=>{var e,t;const n=jwplayer().getContainer(),o=null!==(t=null===(e=document.getElementById(n.id))||void 0===e?void 0:e.parentElement)&&void 0!==t?t:null;return o&&"number"==typeof o.offsetWidth&&"number"==typeof o.offsetHeight&&0!==o.offsetHeight?o.offsetWidth/o.offsetHeight:1},Pi=()=>{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},ji=()=>{const e=null!==(t=Pi()[9])&&void 0!==t?t:null;var t;const n=(()=>{var e;return null!==(e=Pi()[2])&&void 0!==e?e:null})();return e?Number(Boolean(e))+Number(Boolean(n)):0},$i=()=>Object.fromEntries(new URLSearchParams(window.location.search)),Li=(e,t)=>H(void 0,void 0,void 0,function*(){const{tcf:n,pageContext:{publisher:o,countryCode:i}}=t,{width:r,height:a}={width:window.innerWidth,height:window.innerHeight},d={isMobileApp:e.isApp,countryCode:i,publisher:o,pageType:"front",deviceType:e.deviceType},s=(yield at(n,e.isApp,i,"video"))?"1":"0",l=yield oi(),c=yield Tn(i),u=yield st({tcf:n,pageContext:d}),p=null!==(v=window.location.pathname.split("/").slice(-2,-1).pop())&&void 0!==v?v:"";var v;const g=((e=1)=>Ai(Si,Number(e.toFixed(2))))(e.instreamAspectRatio),h=(m=e.playerAspectRatio)?Ai(Ti,Number(m.toFixed(2))):Ii;var m,f;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${vi}-country_code`]:i,[`${vi}-publisher`]:o,[`${vi}-supply_type`]:(f=e.deviceType,f===ye?be:we),[`kw_${vi}-page_type`]:"collection",[`${vi}-page_type`]:"collection",[`${pi}-appmode`]:e.isAndroidApp?"hybrid":"notinapp",[`kw_${pi}-page`]:"index",[`${pi}-page`]:"index",[`${pi}-screenheight`]:String(window.screen.height),[`${pi}-screenwidth`]:String(window.screen.width),[`${pi}-viewportheight`]:String(a),[`${pi}-viewportwidth`]:String(r),[`${pi}-loggedin`]:e.isUserLoggedIn?"yes":"no",[`${pi}-mobile-os`]:Lt(),[`${pi}-audience`]:void 0,[`${pi}-externalid_src`]:ji(),[`${pi}-tags`]:e.tags,[`${pi}-articleid`]:p,"article-id":p},yield tn(Object.assign(Object.assign({},t),{pageContext:d}))),u&&{external_uid:u}),e.isUserPresentOnFrontPage&&e.isInitialVideo&&{[`${pi}-tvtags`]:"vinjett"}),e.pageAdsKeywords),Object.keys($i()).some(e=>e.includes(gi))&&(()=>{const e=$i(),t=Object.fromEntries(Object.entries(e).filter(([e])=>e.startsWith(gi)).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":s,"kw_aa-sch-cmp_advertising":s,"aa-sch-instream_player_aspectratio":g,"aa-sch-player_aspectratio":h}),l),{eids:c})}),_i=["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"],Ni=["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"],qi=["external_uid","gdpr","gdpr_consent","eids","article-id"],Fi=(e,t)=>{const n=[..._i,...t.additionalFilterKeys];return Object.fromEntries(Object.entries(e).filter(([e])=>!n.includes(e)).map(([e,t])=>[e.includes("kw")||qi.includes(e)?e:`kw_${e}`,t]))},Mi=e=>Object.fromEntries(Object.entries(e).filter(([e])=>Ni.includes(e))),Bi=(e,t)=>H(void 0,void 0,void 0,function*(){var n,o,i,r;const a=(e=>{var t;si[e]||u(`[video] No config found for publisher "${e}"`);return null!==(t=si[e])&&void 0!==t?t:ii})(e.publisher),d=(e=>{var t;return null!==(t=li[e])&&void 0!==t?t:li.aftonbladet})(e.publisher)(e.assetSection,e.isLiveStudio),s="/"===window.location.pathname,l=null===(o=null===(n=t.attributes)||void 0===n?void 0:n.id)||void 0===o?void 0:o.toString(),c=e.assetId===l,p=null!==(i=Number(e.aspectRatio))&&void 0!==i?i:1,v=c?"preroll":"bumper";var g;return{siteConfig:a,siteVideoParams:d,isUserPresentOnFrontPage:s,adsKeywords:yield Li({pageAdsKeywords:e.pageAdsKeywords,tags:(g=e.tags,g?g.filter(e=>e.slug).map(({slug:e})=>e).join(","):""),sections:null!==(r=null==d?void 0:d.sections)&&void 0!==r?r:"",isUserLoggedIn:e.isUserLoggedIn,isUserPresentOnFrontPage:s,isInitialVideo:c,instreamAspectRatio:p,playerAspectRatio:Oi(),isApp:e.isApp,deviceType:e.deviceType,isAndroidApp:e.isAndroidApp},a),prerollPlacementFormat:v,playbackMethod:ci(e.startMode)}}),Ri=(e,t)=>{const{siteConfig:n,siteVideoParams:o,isUserPresentOnFrontPage:i,adsKeywords:r,prerollPlacementFormat:a,playbackMethod:d}=e,{invCode:s}=o||{},l=Ei(o,n,t.deviceType,t.isUsedInOverlayVideoPlayer),c=((e="")=>t=>e.includes(yi)?`${yi}${t}`:t)(s),u=window.location.href;return{member:n.memberId,options:{autoplayMuted:!0,vpaidcontrols:!0},adSlots:{schedule:{preroll:{inv_code:l(a,i),"se-generic-playback-method":ui.get(d),"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({},Fi(r,n)),Mi(r)),{vskippable:"0",referrer:u,vplaybackmethod:d})},adPlacements:{schedule:{pause:{invCode:l("pause"),sizes:[[825,424],[1280,720],[2,1]]}},params:{keywords:Object.assign(Object.assign({},r),{"se-generic-adformat":c("pause")})}}}},Di=e=>t=>H(void 0,void 0,void 0,function*(){const n=yield Bi(e,t);return Ri(n,e)}),zi={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]}]},Ui={no:"NOK",se:"SEK"},Wi={no:"no",se:"sv"};class Hi{buildFetchObject(e,t,n,o){return H(this,void 0,void 0,function*(){const{pageContext:{countryCode:i},pageOptions:r}=o,{invCode:a,xandrPlacementId:d}=e,s=yield oi(),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(zi),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:ve(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({},d&&{placement_id:d}),{code:a,keywords:l,use_pmt_rule:!1})}})],site:{domain:u.hostname,page:u.href,publisher:{id:String(r.publisherId),domain:u.hostname},ext:{amp:0}},device:{dnt:Number((null===navigator||void 0===navigator?void 0:navigator.globalPrivacyControl)||"1"===(null===navigator||void 0===navigator?void 0:navigator.doNotTrack)),ua:window.navigator.userAgent,h:screen.height,w:screen.width,language:(navigator.language||Wi[i]||"no").split("-")[0]},regs:{ext:{gdpr:s.gdpr||0}},user:{id:yield st(o),ext:{consent:s.gdpr_consent||"",eids:In(i)}},at:1,cur:[Ui[i]],source:{tid:ve(36)},ext:{prebid:{bidder:{appnexus:{member:r.member}}}}}})}fetchData(e,t,n,o){return H(this,void 0,void 0,function*(){try{c("Starting fetching Studio ad from Xandr:",ni);const i=new Headers({"Content-Type":"application/json"}),r=new URLSearchParams(window.location.search),a=new URLSearchParams(["openRTBDebugMemberOverride","openRTBNewsroomOverride","openRTBForceNativeDesc2Override"].flatMap(e=>{const t=r.get(e);return t?[[e,t]]:[]})),d=a.size>0?`${ni}?${a.toString()}`:ni,s=yield this.buildFetchObject(e,t,n,o),l=yield ee.post(d,i,s);return c("Fetch operation completed successfully.",l),l}catch(e){c("Error during fetch operation:",e)}return null})}}const Vi=0,Ki=3,Gi=(e,t,n,o)=>{const i=t.parentElement;if(!i)return;const r=e?`-${e}`:"",a=o?`__${o}`:"",d=`advertory${r}-${n}${a}`,s=`advertory${r}-${n}-wrapper${a}`;t.classList.remove(...t.classList),i.classList.remove(...i.classList),t.classList.add(d),i.classList.add(s),t.dataset.adType=n},Xi="finn-blink",Ji="native-ad",Yi=(e,t,n)=>{var o;const i=t.replace(/-[^-]*$/,"");return null===(o=null==n?void 0:n[e].find(e=>e.targetId===i))||void 0===o?void 0:o.invCode},Qi=(e,t)=>{new IntersectionObserver((e,n)=>{for(const o of e)if(o.intersectionRatio>=.5){n.disconnect(),t();break}},{threshold:.5}).observe(e)};class Zi{constructor(e,t){this.pulse=e,this.publisher=t}static extractAdFormat(e){return e.replace(/_\d.*$/,"")}computeInvCode(){}buildPlacement(e){return{placementId:null!=e?e:""}}trackLoad(){var e,t;null===(t=(e=this.pulse).trackLoadAd)||void 0===t||t.call(e,{object:this.buildAdObject(),placement:this.buildPlacement(this.computeInvCode())})}trackImpression(){const e=document.querySelector(`#${this.getTargetId()}`);e&&Qi(e,()=>{var e,t;return null===(t=(e=this.pulse).trackImpressionAd)||void 0===t?void 0:t.call(e,{object:this.buildAdObject(),placement:this.buildPlacement(this.computeInvCode())})})}trackEngagement(e){var t,n;null===(n=(t=this.pulse).trackEngagementAd)||void 0===n||n.call(t,{object:this.buildAdObject(),placement:this.buildPlacement(null!=e?e:this.computeInvCode()),engagement:{action:"Click",elementName:this.getTargetId()}})}}class er extends Zi{constructor(e,t){var n;super(e.pulse.instance,null!==(n=e.pageContext.publisher)&&void 0!==n?n:""),this.xandrParams=e,this.adObj=t}getTargetId(){return this.adObj.targetId}computeInvCode(){const{pageContext:{deviceType:e},placements:t}=this.xandrParams;if(e)return Yi(e,this.adObj.targetId,t)}buildAdObject(){const e=er.extractAdFormat(this.adObj.targetId);return Object.assign(Object.assign({objectId:this.adObj.targetId,objectSdrn:`sdrn:${this.publisher}:ad-slot:${e}`,platform:"microsoft",adFormat:e,creativeType:this.adObj.adType,demandChannel:9700===this.adObj.buyerMemberId?"direct":"programmatic"},null!=this.adObj.creativeId&&{creativeId:String(this.adObj.creativeId)}),{opportunityId:this.adObj.uuid,size:`${this.adObj.width}x${this.adObj.height}`})}}var tr=Object.freeze({__proto__:null,XandrAdTracker:er});const nr=(e,t)=>{or(e,t),rr(e,t)},or=(e,t)=>{var n,o;const i=document.querySelector(`#${e.targetId}`);if(!i||!(null===(n=e.native)||void 0===n?void 0:n.clickTrackers))return;const r=null!==(o=null==t?void 0:t.clickLinkSelector)&&void 0!==o?o:"a.ad-link";(null==i?void 0:i.querySelectorAll(r)).forEach(n=>{"true"!==n.dataset.tracked&&(n.addEventListener("click",()=>{var n,o,i,r,a,d;for(const t of null!==(o=null===(n=e.native)||void 0===n?void 0:n.clickTrackers)&&void 0!==o?o:[])dr(t);if((null===(i=null==t?void 0:t.pulse)||void 0===i?void 0:i.instance)&&(null===(r=null==t?void 0:t.pulse)||void 0===r?void 0:r.adTrackingEnabled)){const n={publisher:null!==(a=t.publisher)&&void 0!==a?a:"",deviceType:null!==(d=t.deviceType)&&void 0!==d?d:ye};new er({pulse:t.pulse,placements:t.placements,pageContext:n},e).trackEngagement()}}),n.dataset.tracked="true")})},ir=e=>{var t;const{native:{impressionTrackers:n}={}}=e,o=null==n?void 0:n.some(e=>e.includes("googleads")),i="function"==typeof(null===(t=window.apntag)||void 0===t?void 0:t.fireImpressionTrackers)&&!!e.tagId;o||!i?null==n||n.forEach(ar):window.apntag.fireImpressionTrackers(e);const r=new CustomEvent("advertory:nativeImpression",{detail:{ad:e}});window.dispatchEvent(r)},rr=(e,t)=>{var n;let o=!1;const i=document.querySelector(`#${e.targetId}`);if(!i||!e.native)return;const{deviceType:r,appearanceConfig:a,nativeTrackingConfig:{fireImpressionsBasedOnAppearanceThreshold:d=!1}={}}=t,s=d?{rootMargin:`${l=null!==(n=null==a?void 0:a.defaultThreshold[null!=r?r:ye])&&void 0!==n?n:0}px 0px ${l}px 0px`}:{};var l;const c=new IntersectionObserver(t=>{if(!o)for(const n of t)if(n.isIntersecting){o=!0,ir(e),c.disconnect();break}},s);c.observe(i)},ar=e=>{const t=e.includes("googleads");"function"!=typeof window.navigator.sendBeacon||t?dr(e):window.navigator.sendBeacon(e)},dr=e=>{ee.get(e,{mode:"no-cors"}).catch(t=>console.warn(`Tracker ${e} failed. Error: ${t||"Unknown"}`))},sr=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:[]}),lr=(e,t)=>H(void 0,void 0,void 0,function*(){var n,o;const{pageContext:{deviceType:i},appearanceConfig:r}=t,a=null==r?void 0:r.defaultThreshold[i],d=null!==(n=e.requestThreshold)&&void 0!==n?n:a,s=document.getElementById(e.targetId);if(!s)return void c(`Server-side ad container not found: ${e.targetId}`);yield new Promise(e=>{new IntersectionObserver((t,n)=>{t.some(e=>e.isIntersecting)&&(n.disconnect(),e())},fo(d)).observe(s)});const{prepareTag:l}=f.getHandlers(),u=X.getData("alertoryConfigKeywords"),p=null!==(o=l(uo(e)).keywords)&&void 0!==o?o:{},v=new Hi,g=yield v.fetchData(e,u,p,t);g&&(((e,t,n)=>{const o=n===me?t.mobileHTML:t.desktopHTML;if(o){if(t.adType===Vi){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>${o}`,e.appendChild(n)}else e.innerHTML=o;e.classList.add("ad-loaded")}})(s,g,i),g.adType===Ki&&(Gi(t.pageContext.publisher,s,Ji,t.pageContext.pageType),nr({targetId:e.targetId,native:{clickTrackers:g.clickTrackers,impressionTrackers:g.impTrackers}},{deviceType:i,appearanceConfig:r,nativeTrackingConfig:t.nativeTrackingConfig,clickLinkSelector:"a"})),((e,t,n,o)=>{var i,r,a;let d;(null===(i=window.apntag.requests)||void 0===i?void 0:i.tags[e])||(null!==(r=(a=window.apntag).requests)&&void 0!==r||(a.requests={tags:{}}),window.apntag.requests.tags[e]={invCode:t,adResponse:{ads:[{creative_id:Number(null==o?void 0:o.adid)}]}}),!!n.querySelector("iframe")||(d=document.createElement("iframe"),n.appendChild(d)),oo(e,n,Number(null==o?void 0:o.adid)),null==d||d.remove()})(e.targetId,e.invCode,s,g.bid))}),cr=(e,t)=>{e.forEach(e=>lr(e,t).catch(e=>{c("Failed to handle server-side ad:",e)}))},ur=(e,t,n,o)=>{const i=document.querySelector(`#${e}`);i&&t&&(i.innerHTML=t,((e,t)=>{const n=e.parentElement,{publisher:o,pageType:i}=t,r=o&&Object.values(Dt).includes(o);n&&r&&Gi(o,e,Ji,i)})(i,n),o())},pr={"no-aftenposten":Dt.AFTENPOSTEN,"no-stavangeraftenblad":Dt.SA,"no-bergenstidende":Dt.BT},vr=(()=>{const e=new Map,t=new Map;return{getTemplate:t=>e.get(t),setTemplate:(t,n)=>{e.set(t,n)},deleteTemplate:t=>{e.delete(t)},getAdjustment:e=>t.get(e),setAdjustment:(e,n)=>{t.set(e,n)},clear:()=>{e.clear(),t.clear()}}})(),gr=(e,t,n)=>{if(!n)return Promise.resolve(null);const o=((e,t,n)=>`${null!=n?n:te}/${oe}/${e}/adjustments/${t}.json`)(e,n,t),i=vr.getAdjustment(o);if(i)return i;const r=ee.get(o,{timeout:ne}).catch(e=>(c("Failed to fetch native template adjustment",{error:e,url:o}),null));return vr.setAdjustment(o,r),r},hr=(e,t,n)=>H(void 0,void 0,void 0,function*(){const o=((e,t)=>`${null!=t?t:te}/${oe}/${e}/default.json`)(e,n);let i=vr.getTemplate(o);i||(i=ee.get(o,{timeout:ne}).catch(e=>{throw c("Failed to fetch native template",{error:e,url:o}),vr.deleteTemplate(o),e}),vr.setTemplate(o,i));const r=gr(e,n,t),[a,d]=yield Promise.all([i,r]);return{schema:a,adjustment:d}}),mr="data-ad-video",fr="viewable",yr="adClick",br=(e,t)=>{const n=(new DOMParser).parseFromString(e,"text/xml"),o=n.querySelector("ClickThrough"),i=n.querySelector("VideoClicks");if(o){for(;o.firstChild;)o.removeChild(o.firstChild);o.appendChild(n.createCDATASection(t))}else if(i){const e=n.createElement("ClickThrough");e.appendChild(n.createCDATASection(t)),i.appendChild(e)}return URL.createObjectURL(new Blob([(new XMLSerializer).serializeToString(n)],{type:"text/xml"}))},wr=e=>null!==e&&"object"==typeof e&&!Array.isArray(e),xr=(e,t)=>{null==t||t.forEach(t=>{const n=window.SVP.Player.Plugins.get(t);e.addPlugin(new n)})},kr=e=>H(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 o=document.createElement("script");o.id=e,o.src="https://cdn.stream.schibsted.media/player/3.78.1/player.min.js",o.async=!0;try{o.src=o.src.replace("player.min","player.next.min")}catch(e){console.error("Failed to set player.next.min source:",e)}document.head.insertBefore(o,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)))}))}),Cr={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 H(this,void 0,void 0,function*(){yield Promise.resolve().then(function(){return Hd})})}})}},Ir=(e,t)=>{null==e||e.forEach(e=>{Cr[e](t)})},Tr={menu:{pluginsNames:["IntegrationMenu"],videoLoop:!0},default:{}},Sr=({container:e,native:t,type:n,publisher:o})=>{const i=e.querySelector(`[${mr}]`),{video:r,image:a,clickUrl:d=""}=t;if(!i||!(null==r?void 0:r.content))return;const{pluginsNames:s,videoLoop:l}=(e=>{var t;return null!==(t=Tr[e.toLowerCase()])&&void 0!==t?t:Tr.default})(n),c=Math.ceil(1e5*Math.random()),u=`ad-player-${c}`;i.id=u;const p=(({id:e,nodeId:t,poster:n,tagURL:o,publisher:i="",productTag:r="xandr",videoLoop:a=!1})=>({id:e,poster:n,vendor:"appnexus",node:t,mute:!0,autoplay:a,repeat:a,skin:{name:"inventory-player",url:"https://ads.inventory.schibsted.io/styles/player.css"},settings:{jw:{stretching:"fill",advertising:{client:"vast",tag:o}}},pulse:{provider:i.toLowerCase(),decorator:e=>Object.assign(Object.assign({},wr(e)?e:{}),{provider:Object.assign(Object.assign({},wr(null==e?void 0:e.provider)?e.provider:{}),{productTag:r})})}}))({id:c,nodeId:u,poster:(null==a?void 0:a.url)||"https://custom.inventory.schibsted.io/1x1-00000000.png",tagURL:br(r.content,d),publisher:o,videoLoop:l});H(void 0,[{playerConfig:p,clickUrl:d,pluginsNames:s}],void 0,function*({playerConfig:e,pluginsNames:t,clickUrl:n}){const o=yield kr(e);Ir(t),o.once("assetReady",()=>{xr(o,t)}),o.on(fr,e=>{const{viewable:t}=e;t?o.play():o.pause()}),n&&o.on(yr,()=>{window.open(n,"_blank")}),e.repeat&&o.on("pause",()=>{o.play()})})},Er=(e,t)=>{const{adjustmentOverrides:n}=e,o=W(e,["adjustmentOverrides"]);return Object.assign(Object.assign({},o),t.overrides&&{adjustmentOverrides:a({},t.overrides)})},Ar="desktop",Or="mobile",Pr="container",jr="text",$r="image",Lr="cogwheel",_r="video",Nr=e=>{if(e)return e===me?Or:Ar},qr=(e,t,n)=>{var o,i,r,a,d,s,l,c,u,p,v,g,h;const m=t?null===(o=e.overrides)||void 0===o?void 0:o[t]:void 0,f=null===(i=null==n?void 0:n.default)||void 0===i?void 0:i[e.id],y=t?null===(r=null==n?void 0:n[t])||void 0===r?void 0:r[e.id]:void 0;if(null!==(s=null!==(d=null!==(a=null==y?void 0:y.hidden)&&void 0!==a?a:null==f?void 0:f.hidden)&&void 0!==d?d:null==m?void 0:m.hidden)&&void 0!==s?s:e.hidden)return null;const b=Object.assign(Object.assign(Object.assign(Object.assign({},e.styles),null==m?void 0:m.styles),null==f?void 0:f.styles),null==y?void 0:y.styles),w=null!==(u=null!==(c=null!==(l=null==y?void 0:y.tag)&&void 0!==l?l:null==f?void 0:f.tag)&&void 0!==c?c:null==m?void 0:m.tag)&&void 0!==u?u:e.tag,x=null!==(g=null!==(v=null!==(p=null==y?void 0:y.text)&&void 0!==p?p:null==f?void 0:f.text)&&void 0!==v?v:null==m?void 0:m.text)&&void 0!==g?g:e.text,k=null===(h=e.children)||void 0===h?void 0:h.map(e=>qr(e,t,n)).filter(e=>null!==e),C={id:e.id,tag:w,type:e.type,name:e.name,styles:b,connections:e.connections};return void 0!==x&&(C.text=x),void 0!==k&&(C.children=k),C},Fr=e=>Object.entries(e).map(([e,t])=>`${(e=>e.replace(/[A-Z]/g,e=>"-"+e.toLowerCase()))(e)}:${(e=>String(e).replace(/"/g,"""))(t)}`).join(";"),Mr=(e,t)=>{const n=e[t];return null==n?"":"object"==typeof n&&"content"in n?n.content:"object"==typeof n&&"url"in n?n.url:String(n)};class Br{constructor(e,t=!1){this.tag=e,this.voidElement=t,this.attributes=new Map,this.content=""}attr(e,t){return t&&this.attributes.set(e,t),this}children(e){return this.content=e,this}build(){const e=[...this.attributes].map(([e,t])=>` ${e}="${t}"`).join("");return this.voidElement?`<${this.tag}${e}>`:`<${this.tag}${e}>${this.content}</${this.tag}>`}}const Rr=(e,t,n="")=>{var o;return(null===(o=e.connections)||void 0===o?void 0:o.length)?((e,t)=>{const n=[];for(const{properties:o}of e)for(const e of o){const o=Mr(t,e);o&&n.push(o)}return n.join(" ")})(e.connections,t):n},Dr=(e,t,n,o)=>{var i;const{tag:r,styles:a}=e,d=(null!==(i=e.children)&&void 0!==i?i:[]).map(e=>Ur(e,t,n,!1)).join(""),s=new Br(r);return o(s),s.attr("href","a"===r?Rr(e,t):"").attr("style",Fr(a)).children(d).build()},zr={[Pr]:(e,t,n,o)=>{var i;const r=null!==(i=n.publisher)&&void 0!==i?i:"shared";return Dr(e,t,n,t=>{o&&t.attr("class",`advertory-${r}-ad-native-${e.name.toLowerCase()}`)})},[Lr]:(e,t,n)=>Dr(e,t,n,e=>{n.containerId&&e.attr("id",`${n.containerId}-button`)}),[jr]:(e,t)=>{var n;return new Br(e.tag).attr("style",Fr(e.styles)).children(Rr(e,t,null!==(n=e.text)&&void 0!==n?n:"")).build()},[$r]:(e,t)=>new Br("img",!0).attr("style",Fr(e.styles)).attr("src",Rr(e,t)).build(),[_r]:(e,t)=>"video"===e.tag&&Rr(e,t)?new Br("div").attr(mr,"true").attr("style",Fr(e.styles)).build():""},Ur=(e,t,n,o=!0)=>{const i=zr[e.type];return i?i(e,t,n,o):""},Wr=e=>(t,{publisher:n,containerId:o,deviceType:i})=>(({config:e,nativeData:t,breakpoint:n,adjustments:o,publisher:i,containerId:r})=>{const a=o?Er(e,o):e,d=qr(a.root,n,a.adjustmentOverrides);return d?Ur(d,t,{breakpoint:n,publisher:i,containerId:r}):null})({config:e,nativeData:t,breakpoint:Nr(i),publisher:n,containerId:o}),Hr="[data-carousel-track]",Vr=({image_link:e,title:t})=>{const n=document.createElement("figure"),o=document.createElement("img");return n.className="carousel-slide",n.setAttribute("data-carousel-slide",""),o.className="slide-image",o.src=e,o.alt=t,o.loading="lazy",o.draggable=!1,n.appendChild(o),n},Kr=e=>Boolean(e.title&&e.link&&e.image_link),Gr=(e,t)=>H(void 0,void 0,void 0,function*(){const n=e.querySelector(Hr);var o;if(n)if(t&&(e=>{try{return"https:"===new URL(e).protocol}catch(e){return!1}})(t))try{const i=yield(e=>H(void 0,void 0,void 0,function*(){try{const t=yield ee.get(e,{timeout:5e3});return t&&Array.isArray(t.items)?t:(u("Carousel feed has an unexpected shape",{url:e}),null)}catch(t){return u("Failed to fetch carousel feed",{url:e,error:t}),null}}))(t);if(!i)return void e.replaceChildren();const r=i.items.filter(Kr);if(!r.length)return void u("Carousel feed has no usable items");yield Promise.resolve().then(function(){return Kd});const a={title:(o=e).querySelector("[data-product-title]"),description:o.querySelector("[data-product-description]"),price:o.querySelector("[data-product-price]"),link:o.querySelector("[data-product-link]")};n.replaceChildren(...r.map(Vr)),(({root:e,onChange:t})=>{var n;const o=e.querySelector("[data-carousel-viewport]"),i=e.querySelector(Hr),r=Array.from(null!==(n=null==i?void 0:i.querySelectorAll("[data-carousel-slide]"))&&void 0!==n?n:[]);if(!o||!i||!r.length)return;const a=r.length,d=[r[a-1].cloneNode(!0),...r,r[0].cloneNode(!0)];let s=1,l=null,c=0,u=!1;const p=e=>{const t=d[0].offsetWidth,n=Number.parseFloat(getComputedStyle(i).columnGap)||0,r=(o.clientWidth-t)/2-s*(t+n);i.style.transition=e?"transform 360ms cubic-bezier(.22, .61, .36, 1)":"none",i.style.transform=`translate3d(${r+c}px, 0, 0)`,i.offsetWidth},v=(e,n=!0)=>{s=e,p(n),d.forEach((e,t)=>e.classList.toggle("is-active",t===s)),null==t||t((s-1+a)%a)},g=()=>{0===s?v(a,!1):s===a+1&&v(1,!1)},h=()=>{if(null===l)return;const e=Math.abs(c)>=.12*o.clientWidth?-Math.sign(c):0;l=null,c=0,v(s+e),window.setTimeout(()=>{u=!1})};i.replaceChildren(...d),i.addEventListener("transitionend",e=>{e.target===i&&g()}),o.addEventListener("pointerdown",e=>{g(),l=e.clientX,o.setPointerCapture(e.pointerId),p(!1)}),o.addEventListener("pointermove",e=>{null!==l&&(c=e.clientX-l,u=u||Math.abs(c)>6,p(!1))}),o.addEventListener("pointerup",h),o.addEventListener("pointercancel",h),o.addEventListener("click",e=>{u&&(e.preventDefault(),e.stopPropagation())},!0),e.addEventListener("dragstart",e=>e.preventDefault()),v(1,!1)})({root:e,onChange:e=>(({title:e,description:t,price:n,link:o},i)=>{e&&(e.textContent=i.title),t&&(t.textContent=i.description),n&&(n.textContent=i.sale_price||i.price),o&&(o.href=i.link)})(a,r[e])}),c("Carousel mounted",{items:r.length})}catch(t){u("Carousel could not be rendered",t),e.replaceChildren()}else u("Carousel feed url is missing or not a valid https url",{url:t})}),Xr="default",Jr=(e,t)=>H(void 0,void 0,void 0,function*(){var n,o,i,r,a,d;const s=document.querySelector(`#${e.targetId}`),{native:l}=e;if(!l||!s)return;const{desc2:u}=l,p=null==u?void 0:u.toLowerCase(),v=((e,t)=>{const n=B(M),o=new URLSearchParams(window.location.search).get(M),i=t.includes("native_recirc");return n&&o?o:(null==e?void 0:e.includes("recirc"))&&!["shopping"].includes(t.toLowerCase())?i?"native_recirc":"recirc":(null==e?void 0:e.includes("sponsor"))?"sponsorstripe":null})(e.targetId,null!=u?u:Xr),g=(null!=v?v:p)||Xr,h=(null===(n=l.video)||void 0===n?void 0:n.content)?`${g}-video`:g,m=(e=>{var t;if(e)return null!==(t=pr[e])&&void 0!==t?t:e})(null===(o=t.pageContext)||void 0===o?void 0:o.publisher);try{const{schema:n,adjustment:o}=yield hr(h,m,null===(i=t.editory)||void 0===i?void 0:i.editoryUrl),c=o?Er(n,o):n,u=Wr(c),p={publisher:m,pageType:null===(r=t.pageContext)||void 0===r?void 0:r.pageType,deviceType:null===(a=t.pageContext)||void 0===a?void 0:a.deviceType,appearanceConfig:t.appearanceConfig,nativeTrackingConfig:t.nativeTrackingConfig,containerId:e.targetId,clickLinkSelector:"a",pulse:t.pulse},v=u(l,p),{enabled:f=!0}=null!==(d=t.nativeTrackingConfig)&&void 0!==d?d:{};ur(e.targetId,v,p,()=>{no(e.targetId),Sr({container:s,native:l,type:g,publisher:m}),f&&nr(e,p)})}catch(e){c("Failed to render native ad from config",{error:e})}}),Yr="_adchoices_non_rtb",Qr=e=>{const{tcf:{nonRtb:{invCodeSuffix:t=Yr}={}}={}}=f.get();return`${k(e)}${t}`},Zr=(e,t)=>t?e:((e=>{e.filter(e=>!e.supportsNonRTB).forEach(e=>D(e.targetId))})(e),(e=>e.filter(e=>e.supportsNonRTB).map(e=>Object.assign(Object.assign({},e),{invCode:Qr(e.invCode)})))(e)),ea=e=>`${Math.max(0,Math.round(e))}px`,ta=e=>{const{marginTop:t,marginBottom:n}=getComputedStyle(e);return e.getBoundingClientRect().height+parseFloat(t||"0")+parseFloat(n||"0")},na=(e,t)=>{const n=document.body;if(n)for(const t of Object.keys(e)){const o=e[t];n.style.setProperty(t,o)}},oa=()=>{const{pageSectionsSelectors:e}=f.get();(null==e?void 0:e.header)&&(e=>{const t=document.querySelector(e);if(!t)return;const n=ta(t);na({"--advertory-header-height":ea(n)})})(e.header)};let ia=Ro,ra=[];const aa=["takeover","wallpaper"],da=(e,t)=>{var n,o;const{initNativeAd:i}=f.getHandlers();null==i||i(e,null!==(o=null!=t?t:null===(n=window.advertory)||void 0===n?void 0:n.siteConfig)&&void 0!==o?o:f.get())},sa=e=>{const t=(e=>{var t;const n=X.getData("alertoryConfigKeywords"),{queryConfig:o,placements:i,tcf:r,glimr:a,appearanceConfig:d,pageContext:{publisher:s,countryCode:l,pageType:c,deviceType:u,isMobileApp:p=!1},pageOptions:{member:v},pageSetup:g,takeover:m,fullscreenScroll:f,fullWidth:y}=e,b=null!==(t=null==o?void 0:o.batchSize)&&void 0!==t?t:h;return{xandr:{member:v,keywords:n,tags:[]},advertory:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({pageContext:{publisher:s,countryCode:l,pageType:c,deviceType:u,isMobileApp:p},pageSetup:g,placements:i,tcf:r,queryConfig:Object.assign(Object.assign({},o),{batchSize:b})},a&&{glimr:a}),d&&{appearanceConfig:d}),m&&{takeover:m}),f&&{fullscreenScroll:f}),y&&{fullWidth:y})}})(e);window.advertory={initialized:!0,version:"3.17.2",siteConfig:e,renderNativeAd:da,alertoryConfig:t}},la=()=>H(void 0,void 0,void 0,function*(){yield ia.setTargeting()}),ca=e=>H(void 0,void 0,void 0,function*(){var t,n;const{prebid:o,tcf:i,pageContext:{isMobileApp:r,countryCode:a}}=f.get(),d=yield at(i,r,a,"loadPlacements"),s=Zr(e,d);null===(t=ia.definePlacements)||void 0===t||t.call(ia,s);(null==o?void 0:o.enabled)&&d&&!R()?(c("core loadPlacements prebid enabled"),yield ao()):(c("core load tags invoked without prebid enabled"),yield null===(n=ia.requestPlacements)||void 0===n?void 0:n.call(ia,s))}),ua=(e,t)=>H(void 0,void 0,void 0,function*(){const{appearanceConfig:n,pageContext:{deviceType:o}}=f.get(),{requestThreshold:i,refresh:r}=e,a=(e=>{const t=document.querySelector(`[data-show-tag-subscribe-id=${e.targetId}]`),n=document.querySelector(`#${e.targetId}`);return t||n})(t),d=null==n?void 0:n.defaultThreshold[o];a&&(c("core showAd - subscribe for show tag with thresholds",{placement:e,ad:t,requestThreshold:i,deviceDefaultThreshold:d}),yield Qo(a,null!=i?i:d)),a&&(null==r?void 0:r.scroll)&&(c("core showAd - setup refreshing",{placement:e,ad:t}),a.dataset.refresh=r.scroll.toString())}),pa=e=>e.some(({targetId:e})=>aa.some(t=>e.includes(t))),va=e=>H(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,o]=(e=>e.reduce(([e,t],n)=>{var o;return(null===(o=null==n?void 0:n.finnBlink)||void 0===o?void 0:o.loadOnlyFinnBlink)?[[...e,n],t]:[e,[...t,n]]},[[],[]]))(e),i=(e=>{const{queryConfig:{placementBatches:t,batchSize:n=h}={},pageContext:{deviceType:o}}=f.get(),i=Ae(e),r=Object.keys((null==t?void 0:t[o])||{}).map(e=>i[e]||[]).filter(e=>e.length>0),a=new Set(r.flat().map(({targetId:e})=>e)),d=e.filter(({targetId:e})=>!a.has(e));return[...r,...Eo(d,n)]})(o);for(const e of i)pa(e)?(c("core loadAds without lazy loading",{placementsToLoad:e}),yield ca(e)):e.length&&(c("core loadAds with lazy loading",{placementsToLoad:e}),yield ga(e));const{finnBlink:r}=f.get();if((null==r?void 0:r.enabled)&&n.length>0){const{handleFinnBlinkOnlyPlacements:e}=yield Promise.resolve().then(function(){return Ud});yield e(n)}}),ga=e=>H(void 0,void 0,void 0,function*(){const{queryConfig:{lazyLoadingV3:{enabled:t=!1,rootMargin:n="200% 0px"}={}}={}}=f.get(),o=[];if(!t)return c("lazy load is not enabled",{placements:e}),void(yield ca(e));const i=new IntersectionObserver((t,n)=>{t.filter(({isIntersecting:e,target:{id:t}})=>e&&!t.includes("wallpaper")).forEach(t=>{c("lazy load is enabled - handler start",{loadedTargetIds:o,placements:e});const i=e.every(e=>o.includes(e.targetId)),r=e.map(e=>e.targetId);!i&&o.push(...r),!i&&ca(e),c("lazy load is enabled - handler stop",{loadedTargetIds:o,placements:e,arePlacementsLoaded:i,targetIds:r}),n.disconnect()})},{rootMargin:n});e.forEach(e=>{const t=document.getElementById(e.targetId);t&&(c("lazy loading - observe element",{targetId:e.targetId,element:t}),i.observe(t))})}),ha=()=>H(void 0,void 0,void 0,function*(){const e=(()=>{const e={adRequested:[],adRendered:[]};return{emit:(t,n)=>H(void 0,void 0,void 0,function*(){yield Promise.all(e[t].map(e=>e(n)))}),on:(t,n)=>{e[t].push(n)}}})();e.on("adRendered",e=>H(void 0,void 0,void 0,function*(){if(!e||!("targetId"in e))return;const t=ra.find(({targetId:t})=>t===e.targetId);t&&(yield ua(t,e),ra=ra.filter(e=>e.targetId!==t.targetId))})),yield ia.bindEvents(e)}),ma=(e,t)=>H(void 0,void 0,void 0,function*(){var n,o;if(c(`Advertory update called with config: ${JSON.stringify(e)}, options: ${JSON.stringify(t)}`),!(null===(n=null===window||void 0===window?void 0:window.advertory)||void 0===n?void 0:n.initialized))return c("Advertory update skipped - Advertory is not initialized"),[];const{clearAds:i,disableAds:r,reloadExistingAds:a,renderFinnBlinkPlacements:d,contextSelector:s}=null!=t?t:{},l=Object.keys(null!=e?e:{}).length>0;let u=[];if(r)return le(),ra=[],ce(),[];if(i&&(u=null!==(o=le())&&void 0!==o?o:[]),i&&!l)return[];i&&l&&(ra=[],ce()),a&&(le(),document.querySelectorAll('[data-advertory-ad-rendered="true"]').forEach(e=>{z(e.id)})),yield ue(e),(null==e?void 0:e.pageSectionsSelectors)&&oa(),yield la();const{clientSidePlacements:p,serverSidePlacements:v}=sr(Se(s)),g=[...p,...v];((e,t)=>{if(0===e.length)return;const n=new Set(t.map(({targetId:e})=>U(e)));e.filter(e=>n.has(e)).forEach(e=>z(e))})(u,g),((e,t)=>{if(0===e.length)return;const n=new Set(t.map(({targetId:e})=>U(e)));e.filter(e=>!n.has(e)).forEach(e=>J(e))})(u,g);let h=p;return d&&(h=h.filter(e=>Ge(e.targetId))),cr(v,f.get()),h.length>0&&(ra=[...ra,...h.map(e=>Object.assign({},e))],Po(h),$o(h),yield va(h)),ra}),fa=(e,t,n)=>H(void 0,void 0,void 0,function*(){var o,i;const{initConsentManager:r,getConsentAsync:a}=rt(e.tcf,null===(o=e.pageContext)||void 0===o||o.isMobileApp,null===(i=e.pageContext)||void 0===i?void 0:i.countryCode),d=yield ae(e);yield ti(),yield Zo(r),yield Zo(a),c("TCF resolved successfully"),yield((e,t,...n)=>H(void 0,[e,t,...n],void 0,function*(e,t,n=Ro){var o,i;ia=n,f.set(e),f.setHandlers(Object.assign(Object.assign({},t),e.customHandlers));const{norstat:r,kilkaya:a,rightColumnSplit:d,finnBlink:s}=e;X.initialize(),window.addEventListener("message",Jo,!1);const[l]=yield Promise.allSettled([ia.setup(),wn(e),H(void 0,void 0,void 0,function*(){const{developerOptions:{gptUrl:e}={},tcf:t,pageContext:{isMobileApp:n,countryCode:o}}=f.get();(yield at(t,n,o,"gpt-endpoint"))&&(yield Sn(null!=e?e:"https://securepubads.g.doubleclick.net/tag/js/gpt.js"))}),H(void 0,void 0,void 0,function*(){const{brandmetrics:{enabled:e,brandmetricsUrl:t}={},tcf:n,pageContext:{isMobileApp:o,countryCode:i}}=f.get(),{getConsentAsync:r}=rt(n,0,i),a=yield r();if(e&&t&&a){if(yield Sn(t),document.querySelector(`.${ei}`))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(ei)})&&(t.disconnect(),window._brandmetrics=window._brandmetrics||[],window._brandmetrics.push({cmd:"_loadsurvey"}))}}).observe(document,{childList:!0,subtree:!0,attributes:!0})}}),Xt(),H(void 0,void 0,void 0,function*(){const{gdpr:{gdprUrl:e,allowHidingAds:t=!0}={}}=f.get();t&&(window.gdpr=window.gdpr||{},window.gdpr.allowHidingAds=!0),yield Sn(null!=e?e:"https://cogwheel.inventory.schibsted.io/prod/latest/gdpr-bundle.js")})]);if("rejected"===l.status)throw l.reason;if(c("Driver has been set up"),null==r?void 0:r.enabled){const{loadNorstat:e}=yield Promise.resolve().then(function(){return Xd});yield e()}if(c("Libraries have been loaded and trackers have been set"),oa(),yield ha(),yield la(),c("Page options have been set"),sa(e),c("Advertory is setup on window"),"dom-discovered"===ia.capabilities.tagDefinition)return yield null===(o=ia.requestPage)||void 0===o?void 0:o.call(ia),void c("Ads requested via dom-discovered driver");const{clientSidePlacements:u,serverSidePlacements:p}=sr(Se());if(ra=u,cr(p,e),Po(ra),$o(ra),yield va(ra),c("Ads has been loaded",ra),ho(ra),null==s?void 0:s.enabled){const{replaceAdsWithFinnBlink:t}=yield Promise.resolve().then(function(){return Ud});yield t(null===(i=null==e?void 0:e.pageContext)||void 0===i?void 0:i.deviceType,e.finnBlink)}if(null==d?void 0:d.enabled){const{initRightColumnSplit:t}=yield Promise.resolve().then(function(){return ns});t(e.rightColumnSplit)}if(null==a?void 0:a.enabled){const{runKilkaya:t}=yield Promise.resolve().then(function(){return Is});yield t(e)}}))(d,t,n),c("Run function resolved successfully")}),ya=["sponsor","seamless"],ba=["shopping"],wa=(e,t,n,o)=>{var i;const{image:r,icon:a,sponsoredBy:d,title:s,clickUrl:l,cta:c,body:u,desc2:p,video:v,description:g,customTitle1:h,customTitle2:m,customTitle3:f,customTitle4:y,customBody1:b,customBody2:w,customBody3:x,customBody4:k,customBody5:C,customIcon1:I,customIcon2:T,customDisplayUrl1:S,customDisplayUrl2:E}=e,A=(e,t="")=>{var n;return e?null!==(n=e.url)&&void 0!==n?n:e:t};return Object.assign({containerId:n,img:A(r),imgWidth:null==r?void 0:r.width,imgHeight:null==r?void 0:r.height,imgAltText:null!=s?s:"",logo:(()=>{var e;const t=ya.some(e=>null==p?void 0:p.includes(e))&&"dark"===(null===(e=o.appearanceConfig)||void 0===e?void 0:e.theme)&&I;return A(t?I:a)})(),sponsoredBy:null!=d?d:"",title:null!=s?s:"",url:null!=l?l:"",cta:null!=c?c:"",description:null!==(i=null!=u?u:g)&&void 0!==i?i:"",desc2:null!=p?p:"",video:v,customTitle1:null!=h?h:"",customTitle2:null!=m?m:"",customTitle3:null!=f?f:"",customTitle4:null!=y?y:"",customBody1:null!=b?b:"",customBody2:null!=w?w:"",customBody3:null!=x?x:"",customBody4:null!=k?k:"",customBody5:null!=C?C:"",logo2:A(T),previewVideoSrc:null!=S?S:"",feedUrl:null!=E?E:""},t)},xa=(e,t)=>{const n=B(M),o=new URLSearchParams(window.location.search).get(M),i=t.includes("native_recirc");return n&&o?o:(null==e?void 0:e.includes("recirc"))&&!ba.includes(t.toLowerCase())?i?"native_recirc":"recirc":(null==e?void 0:e.includes("sponsor"))?"sponsorstripe":null},ka=(e,t,n,o)=>{const i=document.querySelector(`#${e}`);i&&t&&(i.innerHTML=t,((e,t)=>{const n=e.parentElement,{publisher:o,pageType:i}=t,r=o&&Object.values(Dt).includes(o);n&&r&&Gi(o,e,Ji,i)})(i,n),o())},Ca=(e,t,n)=>{var o;const i=((e,t,n)=>{var o;const{displayTemplates:i,videoTemplates:r}=n,a="default";if(!e.native)return null;const{native:d,targetId:s}=e,{desc2:l=a}=e.native,c=l.toLowerCase(),u=null!==(o=xa(e.targetId,l))&&void 0!==o?o:c,p=Gn[t.language||b.NO],v=wa(d,p,s,t);return(d.video?r[u]:i[u]||i.default)(v,t)})(e,t,n);ka(e.targetId,i,t,()=>{const{nativeTrackingConfig:{enabled:n=!0}={}}=t;n&&nr(e,t)});const r=document.querySelector(`#${e.targetId}`);r&&Gr(r,null===(o=e.native)||void 0===o?void 0:o.customDisplayUrl2)},Ia=e=>(t,n)=>{var o;const{targetId:i}=t,r=document.querySelector(`#${i}`);if(!r)return;const a=e.getOptions(null!=n?n:{});Ca(t,a,e.templates),null===(o=e.postProcess)||void 0===o||o.call(e,t,r)},Ta=()=>{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},Sa=e=>{const{siteSpecificConfig:t}=f.get(),n=(null==t?void 0:t.dynamicOutstreamFormats)||[];return 0!==n.length&&n.some(t=>e.includes(t))};class Ea{constructor(){this.keywords={}}add(e){return Object.assign(this.keywords,e),this}addAsync(e){return H(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 H(this,void 0,void 0,function*(){return e&&Object.assign(this.keywords,yield t()),this})}build(){return this.keywords}}const Aa=9826;class Oa{constructor(){this.getSupplyTypeKeywords=()=>{const{pageContext:{deviceType:e,isMobileApp:t}}=f.get();if(t){return{"aa-sch-supply_type":`app_${e===me?"phone":fe}`}}return{"aa-sch-supply_type":`web_${this.getPageOptionsFormatDevice(e)}`}}}prepare(e){return H(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 H(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=dt("_pulse2data");return e?e.split(",")[2]:void 0})()}getExternalUid(){return H(this,void 0,void 0,function*(){return yield st(f.get())})}isTrackingForbidden(){return H(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=Aa}={}}=f.get();return"true"===q("inventory_test")?t:e}getCMPValue(e){return localStorage.getItem(`CMP:${e}`)?"0"===localStorage.getItem(`CMP:${e}`)?"0":"1":"0"}getPublisherKeywords(){const{pageContext:{publisher:e}}=f.get();return{"aa-sch-publisher":`${e}`}}getAnalyticsConsentKeywords(){return{"aa-sch-cmp_analytics":this.getCMPValue("analytics")}}getAdvertisingConsentKeywords(){return H(this,void 0,void 0,function*(){const{tcf:e,pageContext:{isMobileApp:t,countryCode:n}}=f.get(),{getConsentAsync:o}=rt(e,0,n);return{"aa-sch-cmp_advertising":(yield o())?"1":"0"}})}getPageTypeKeywords(){const{pageContext:{pageType:e}}=f.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 Pa=new Oa;function ja(e=!1){var t,n;const o=null===(n=null===(t=window.navigator)||void 0===t?void 0:t.userAgent)||void 0===n?void 0:n.toLocaleLowerCase(),i=Lt();return{OS:i,mobileOS:["ios","android"].includes(i)?i:"unknown",isHybridApp:o.includes("hermes"),appMode:e?"hybrid":"notinapp"}}Pa.prepare.bind(Pa);const $a=["aLOLE","xBqQj","1KaqJ","1nzXzK","opm8zV","4qKXKR","Ad9QgE"];function La(e){return t=window.location.pathname.split("/").slice(-2,-1).pop()||"",$a.includes(t)?{"no-sno-news-section":`${e}_doedsfall`}:{};var t}class _a extends Oa{constructor(){super(...arguments),this.getDeviceKeywords=()=>{const{pageContext:{deviceType:e}}=f.get();return{"no-sno-device":this.getPageOptionsFormatDevice(e)}}}getAppTypeKeywords(){const{pageContext:{deviceType:e,isMobileApp:t}}=f.get(),{OS:n,isHybridApp:o}=ja(t);return{"no-sno-apptype":n&&e&&o?`${n}_${this.getPageOptionsFormatDevice()}_hybrid`:"none"}}getObituariesKeywords(e){return La(e)}getSectionPageTypeKeywords(){var e,t;const{pageOptions:n,pageContext:{pageType:o}}=f.get(),i=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":`${i.split("_").pop()||i}_${"article"===o?"article":"front"}`}}}const Na=new class extends _a{prepare(e){return H(this,void 0,void 0,function*(){var t,n,o,i,r,a,d;const s=f.get(),l=null!==(o=null===(n=null===(t=s.pageSetup)||void 0===t?void 0:t.pageOptions)||void 0===n?void 0:n.options)&&void 0!==o?o:{},c=null!==(a=null===(r=null===(i=s.pageSetup)||void 0===i?void 0:i.pageOptions)||void 0===r?void 0:r.keywords)&&void 0!==a?a:{},u=null===(d=s.siteSpecificConfig)||void 0===d?void 0:d.publisherClassName,p=new Ea;yield p.addAsync(this.getAdvertisingConsentKeywords()),yield p.addAsync(tn(s,l.addPublisherToGeo?{addPublisherToGeo:!0}:void 0)),yield p.addIfAsync(c.externalIdSrc,()=>this.getFormattedExternalIdKeywords()),p.add(this.getSupplyTypeKeywords()).add(kn()).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({},xn(b.NO)),g?{externalUid:yield this.getExternalUid()}:{}),member:this.getMember()})})}},qa=Na.prepare.bind(Na);class Fa extends Oa{constructor(){super(...arguments),this.getDeviceKeywords=()=>{const{pageContext:{deviceType:e}}=f.get();return{"se-generic-sitemode":this.getPageOptionsFormatDevice(e)}}}getScreenKeywords(){const e=function(){const e=window.innerWidth,t=window.innerHeight,n=document.documentElement.clientWidth,o=document.documentElement.clientHeight;return{width:e||n||0,height:t||o||0}}(),t={width:null!==(o=null===(n=window.screen)||void 0===n?void 0:n.width)&&void 0!==o?o:0,height:null!==(r=null===(i=window.screen)||void 0===i?void 0:i.height)&&void 0!==r?r:0};var n,o,i,r;return{"se-generic-viewportheight":e.height,"se-generic-viewportwidth":e.width,"se-generic-screenheight":t.height,"se-generic-screenwidth":t.width}}getExternalIdSrc(){return H(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}}=f.get(),{appMode:t,mobileOS:n}=ja(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:o}}=f.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"===o?"article":"front"}`}}}const Ma=new class extends Fa{prepare(e){return H(this,void 0,void 0,function*(){var t,n,o,i,r,a;const d=f.get(),s=null!==(o=null===(n=null===(t=d.pageSetup)||void 0===t?void 0:t.pageOptions)||void 0===n?void 0:n.options)&&void 0!==o?o:{},l=null!==(a=null===(r=null===(i=d.pageSetup)||void 0===i?void 0:i.pageOptions)||void 0===r?void 0:r.keywords)&&void 0!==a?a:{},c=new Ea;yield c.addAsync(this.getAdvertisingConsentKeywords()),yield c.addAsync(tn(d,s.addPublisherToGeo?{addPublisherToGeo:!0}:void 0)),yield c.addIfAsync(l.externalIdSrc,()=>this.getExternalIdSrc()),yield c.addIfAsync(l.sdkVersion,()=>H(void 0,void 0,void 0,function*(){return{"se-generic-sdk-version":"function"==typeof window.apntag.getAstVersion?window.apntag.getAstVersion():""}})),c.add(this.getSupplyTypeKeywords()).add(kn()).addIf(l.appType,this.getAppTypeKeywords()).addIf(l.device,this.getDeviceKeywords()).addIf(l.screen,this.getScreenKeywords()).addIf(l.analyticsConsent,this.getAnalyticsConsentKeywords()).addIf(l.sectionPageType,this.getSectionPageTypeKeywords()).addIf(l.hasContext,this.getHasContextKeywords(e.keywords)).addIf(l.hasPlusMembership,{"se-generic-has_plus":"plus"===dt("X-AB-Site-Version")?"yes":"no"}).add(e.keywords);const u=c.build(),p=!1!==s.includeExternalUid;return Object.assign(Object.assign({},e),{keywords:u,user:Object.assign(Object.assign({},xn(b.SE)),p?{externalUid:yield this.getExternalUid()}:{}),member:this.getMember()})})}},Ba=Ma.prepare.bind(Ma),Ra="viewable",Da="adClick";var za=e=>(t,n,o)=>{const{video:i,img:r,url:a}=t,{publisher:d,productTag:s}=n,{pluginsNames:l,videoLoop:c}=o||{};if(!(null==i?void 0:i.content))return null;const u=Math.ceil(1e5*Math.random()),p=r||"https://custom.inventory.schibsted.io/1x1-00000000.png",v=`ad-player-${u}`,g=Ua(i.content,a),h=Wa({id:u,nodeId:v,poster:p,tagURL:g,publisher:d,productTag:s,videoLoop:c});return Ha({playerConfig:h,clickUrl:a,pluginsNames:l}),`${e(t,n,v)}`};const Ua=(e,t)=>{const n=(new DOMParser).parseFromString(e,"text/xml"),o=n.querySelector("ClickThrough"),i=n.querySelector("VideoClicks");if(o){for(;o.firstChild;)o.removeChild(o.firstChild);o.appendChild(n.createCDATASection(t))}else if(i){const e=n.createElement("ClickThrough");e.appendChild(n.createCDATASection(t)),i.appendChild(e)}return URL.createObjectURL(new Blob([(new XMLSerializer).serializeToString(n)],{type:"text/xml"}))},Wa=({id:e,nodeId:t,poster:n,tagURL:o,publisher:i="",productTag:r="xandr",videoLoop:a=!1})=>({id:e,poster:n,vendor:"appnexus",node:t,mute:!0,autoplay:a,repeat:a,skin:{name:"inventory-player",url:"https://ads.inventory.schibsted.io/styles/player.css"},settings:{jw:{stretching:"fill",advertising:{client:"vast",tag:o}}},pulse:{provider:i.toLowerCase(),decorator:e=>Object.assign(Object.assign({},wr(e)?e:{}),{provider:Object.assign(Object.assign({},wr(null==e?void 0:e.provider)?e.provider:{}),{productTag:r})})}}),Ha=e=>H(void 0,void 0,void 0,function*(){const{playerConfig:t,pluginsNames:n,clickUrl:o}=e,{repeat:i}=t,r=yield kr(t);Ir(n),r.once("assetReady",()=>{xr(r,n)}),r.on(Ra,e=>{const{viewable:t}=e;t?r.play():r.pause()}),r.on(Da,()=>{window.open(o,"_blank")}),i&&r.on("pause",()=>{r.play()})}),Va=({containerId:e,url:t,body:n,title:o,logo:i,isContentVideoAd:r=!1,imgWidth:a})=>{const d=`\n <div class="ad-header">\n <span>ANNONSØRINNHOLD</span>\n ${i?`<img alt="" aria-hidden="true" class="ad-logo" src="${i}" />`:""}\n </div>\n `,s=`<div class="ad-text">${o}</div>`;return`\n <div id="${e}" class="advertory-godt-ad-content" ${a?`style="max-width: ${a}px"`:""}>\n <div class="ad-info" id="${e}-button"></div>\n ${r?`\n ${d}\n ${n}\n <a class="ad-link" href="${t}" rel="noopener nofollow sponsored">\n ${s}\n </a>\n `:`\n <a class="ad-link" href="${t}" rel="noopener nofollow sponsored">\n ${d}\n ${n}\n ${s}\n </a>\n `}\n </div>\n `},Ka=["IntegrationMenu"],Ga=({containerId:e},t,n)=>` <div id="${e}" class="advertory-godt-ad-weekly-menu">\n <div class="ad-info" id="${e}-button"></div>\n <div class="ad-video-wrapper">\n <div id="${n}"></div>\n </div>\n <span class="ad-label">${Gn.no.adText}</span>\n </div>`;Vn('@import"https://fonts.googleapis.com/css?family=Roboto:400,500&display=swap";.advertory-shared-ad-native-content-display-basic{width:100%;font-family:Roboto,sans-serif;color:#6d747e;text-align:left;background:#fff;position:relative;margin:0 auto;display:flex;flex-direction:column}.advertory-shared-ad-native-content-display-basic *{line-height:normal}.advertory-shared-ad-native-content-display-basic .ad-info{top:0;right:8px;position:absolute}.advertory-shared-ad-native-content-display-basic .ad-info>div{position:initial !important}.advertory-shared-ad-native-content-display-basic .ad-link{text-decoration:none}.advertory-shared-ad-native-content-display-basic .ad-link:hover{text-decoration:none}.advertory-shared-ad-native-content-display-basic .ad-header{padding:5px 16px;background-color:#ffcd00;font-size:12px;text-transform:uppercase;color:#495057;font-weight:600}.advertory-shared-ad-native-content-display-basic .ad-content-wrapper{display:flex;flex-direction:column}.advertory-shared-ad-native-content-display-basic .ad-content-wrapper .ad-large-image-container{position:relative;padding-bottom:40%}@media screen and (min-width: 768px){.advertory-shared-ad-native-content-display-basic .ad-content-wrapper .ad-large-image-container{display:none}}.advertory-shared-ad-native-content-display-basic .ad-content-wrapper .ad-large-image-container .ad-large-image-wrapper{position:absolute;height:100%;width:100%}.advertory-shared-ad-native-content-display-basic .ad-content-wrapper .ad-large-image-container .ad-large-image-wrapper .ad-large-image{object-fit:cover;min-width:100%;height:100%}.advertory-shared-ad-native-content-display-basic .ad-content-wrapper .ad-content{box-sizing:border-box;display:flex;background-color:#fffae6}.advertory-shared-ad-native-content-display-basic .ad-content-wrapper .ad-content .ad-text-container{flex-grow:1;padding:16px}.advertory-shared-ad-native-content-display-basic .ad-content-wrapper .ad-content .ad-text-container .ad-title{font-size:20px;color:#212529;font-weight:600;margin-bottom:16px}@media screen and (min-width: 768px){.advertory-shared-ad-native-content-display-basic .ad-content-wrapper .ad-content .ad-text-container .ad-title{font-size:22px}}.advertory-shared-ad-native-content-display-basic .ad-content-wrapper .ad-content .ad-text-container .ad-sponsor{font-size:11px;color:gray;font-weight:600;text-transform:uppercase}.advertory-shared-ad-native-content-display-basic .ad-content-wrapper .ad-content .ad-small-image-container{display:none;max-width:175px}@media screen and (min-width: 768px){.advertory-shared-ad-native-content-display-basic .ad-content-wrapper .ad-content .ad-small-image-container{display:block}}.advertory-shared-ad-native-content-display-basic .ad-content-wrapper .ad-content .ad-small-image-container .ad-small-image{object-fit:cover;max-width:100%}.advertory-shared-ad-native-content-display-basic.article .ad-info{top:0;right:0;position:absolute;border-bottom-left-radius:50%;background:hsla(0,0%,100%,.6)}.advertory-shared-ad-native-content-display-basic.article .ad-info>div{position:initial !important}.advertory-shared-ad-native-content-display-basic.article .ad-content-wrapper .ad-content .ad-small-image-container{display:block}.advertory-shared-ad-native-content-display-basic.article .ad-content-wrapper .ad-content .ad-text-container{padding:8px 16px;border-left:4px solid #ffcd00}.advertory-shared-ad-native-content-display-basic.article .ad-content-wrapper .ad-content .ad-text-container .ad-header-wrapper{display:flex;margin-bottom:8px}@media screen and (min-width: 768px){.advertory-shared-ad-native-content-display-basic.article .ad-content-wrapper .ad-content .ad-text-container .ad-header-wrapper{margin-bottom:16px}}.advertory-shared-ad-native-content-display-basic.article .ad-content-wrapper .ad-content .ad-text-container .ad-header-wrapper .ad-header{padding:2px 4px;font-size:11px}.advertory-shared-ad-native-content-display-basic.article .ad-content-wrapper .ad-content .ad-text-container .ad-title{font-size:15px;margin-bottom:8px}@media screen and (min-width: 768px){.advertory-shared-ad-native-content-display-basic.article .ad-content-wrapper .ad-content .ad-text-container .ad-title{font-size:18px;margin-bottom:16px}}.advertory-shared-ad-native-content-display-basic.article .ad-content-wrapper .ad-content .ad-small-image-container{padding:16px 8px 16px 0}@media screen and (min-width: 768px){.advertory-shared-ad-native-content-display-basic.article .ad-content-wrapper .ad-content .ad-small-image-container{padding:0}}.advertory-shared-ad-native-content-display-basic.article .ad-content-wrapper .ad-content .ad-small-image-container .ad-small-image{object-fit:contain}@media screen and (min-width: 768px){.advertory-shared-ad-native-content-display-basic.article .ad-content-wrapper .ad-content .ad-small-image-container .ad-small-image{object-fit:cover}}');const Xa={FRONT:"front"};Vn('.advertory-abo-ad-native-sponsorstripe{position:relative;top:0;left:0;width:100%;background:inherit;padding:0;margin:0;border:none;text-align:left}.advertory-abo-ad-native-sponsorstripe .ad-wrapper{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;max-width:980px;height:30px;padding:5px 15px;margin:auto;font-family:"Helvetica Neue",Arial,Roboto,sans-serif}.advertory-abo-ad-native-sponsorstripe .ad-logo{flex:0;height:20px;max-width:35%;max-height:inherit}.advertory-abo-ad-native-sponsorstripe .ad-title{margin-right:10px;padding-left:34px;font-size:13px;color:#fff}.advertory-abo-ad-native-sponsorstripe .info-button-wrapper{display:grid;position:absolute;place-content:center;height:30px;min-width:30px}.advertory-abo-ad-native-sponsorstripe .info-button-wrapper .info-button{display:inline-block;height:20px;width:20px;position:relative;border:solid 1px #fff;border-radius:50%;cursor:pointer}.advertory-abo-ad-native-sponsorstripe .info-button-wrapper .info-button:before{content:"i";color:#fff;position:absolute;left:50%;top:50%;transform:translate(-50%, -50%);font-size:13px}.advertory-abo-ad-native-sponsorstripe .ad-description{font-size:13px;color:#fff;position:absolute;top:0;max-width:980px;min-height:30px;padding:15px 35px 15px 15px;margin-left:-15px;background-color:rgba(0,0,0,.9)}.advertory-abo-ad-native-sponsorstripe .ad-description .close-button-wrapper{position:absolute;top:15px;right:15px;place-content:center;height:16px;min-width:16px}.advertory-abo-ad-native-sponsorstripe .ad-description .close-button-wrapper .close-button{display:inline-block;height:16px;width:16px;position:relative;border:1px solid #fff;border-radius:50%;cursor:pointer}.advertory-abo-ad-native-sponsorstripe .ad-description .close-button-wrapper .close-button:before{content:"✕";color:#fff;position:absolute;left:50%;top:50%;transform:translate(-50%, -50%);font-size:10px;font-weight:bold}.advertory-abo-ad-native-sponsorstripe .ad-description .ad-description-readmore{color:#c7ecff}.advertory-abo-ad-native-sponsorstripe .ad-description.hide{display:none}@media screen and (min-width: 768px){.advertory-abo-ad-native-sponsorstripe .ad-wrapper{height:50px}.advertory-abo-ad-native-sponsorstripe .ad-wrapper .ad-description{min-height:50px}.advertory-abo-ad-native-sponsorstripe .ad-logo{height:40px}.advertory-abo-ad-native-sponsorstripe .ad-title{font-size:20px;padding-left:40px}.advertory-abo-ad-native-sponsorstripe .info-button-wrapper .info-button{height:30px;width:30px;border-width:2px}.advertory-abo-ad-native-sponsorstripe .info-button-wrapper .info-button:before{font-size:20px}}');const Ja={default:{NATIVE_TEMPLATE:({containerId:e,url:t,sponsoredBy:n,title:o,img:i,adText:r})=>(Promise.resolve().then(function(){return Ss}),`<article class="advertory-no-ad-native-default">\n <div class="ad-info" id="${e}-button"></div>\n <a class="ad-link" href="${t}" target="_self">\n <div class="ad-content">\n <div class="ad-image-container">\n <img alt="${o}" class="ad-image" src="${i}" />\n </div>\n <div class="ad-text-container">\n <div class="ad-sponsor">\n <span class="ad-label">${r}</span> ${n}\n </div>\n <div class="ad-title">${o}</div>\n </div>\n </div>\n </a>\n </article>`)}.NATIVE_TEMPLATE,content:({containerId:e,url:t,title:n,img:o,imgWidth:i,imgHeight:r,logo:a,imgAltText:d})=>{const s=Ft(i,r);return Va({containerId:e,url:t,title:n,logo:a,imgWidth:i,body:`\n<div class="ad-image-wrapper" ${s?`style="padding-bottom: ${100*s}%"`:""}>\n <img alt="${d}" class="ad-image" src="${o}" />\n</div>`})},contentVideo:(e,t)=>za(({containerId:e,url:t,title:n,logo:o},i,r)=>Va({containerId:e,url:t,title:n,isContentVideoAd:!0,logo:o,body:`\n<div class="ad-video-wrapper">\n <div id="${r}"></div>\n</div>`}))(e,t),nativeVideo:(e,t)=>za(({containerId:e,url:t,sponsoredBy:n,title:o},i,r)=>(({containerId:e,url:t,sponsoredBy:n,body:o,title:i})=>`\n<div id="${e}" class="advertory-godt-ad-native">\n <div class="ad-info" id="${e}-button"></div>\n <a class="ad-link" href="${t}"rel="noopener nofollow sponsored">\n <div class="ad-header">${Gn.no.adFrom} ${n}</div>\n ${o}\n <div class="ad-text">${i}</div>\n </a>\n</div>`)({containerId:e,url:t,sponsoredBy:n,title:o,body:`\n<div class="ad-video-wrapper">\n <div id="${r}"></div>\n</div>`}))(e,t),weeklyMenuVideo:(e,t)=>za(Ga)(e,t,{videoLoop:true,pluginsNames:Ka}),weeklyMenuStripe:({title:e,logo:t})=>`<div class="advertory-godt-ad-weekly-menu-stripe">\n <span class="ad-text">${e}</span>\n <img alt="" aria-hidden="true" class="ad-logo" src="${t}" />\n <button\n class="button"\n type="button"\n onclick="(function(e){\n try {\n var disclaimer = e.target.closest('button').nextElementSibling;\n\n if (disclaimer.style.display === 'none') {\n disclaimer.style.display = 'block';\n } else {\n disclaimer.style.display = 'none';\n }\n } catch (error) {}\n })(arguments[0]);return false;"\n >\n <svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"><path d="M14.25 16.5h-.75A1.5 1.5 0 0 1 12 15v-3.75a.75.75 0 0 0-.75-.75h-.75M11.625 6.75a.375.375 0 1 0 0 .75.375.375 0 0 0 0-.75v0"/><path clip-rule="evenodd" d="M12 23.25c6.213 0 11.25-5.037 11.25-11.25S18.213.75 12 .75.75 5.787.75 12 5.787 23.25 12 23.25Z" fill-rule="evenodd"/></g></svg>\n </button>\n <div class="disclaimer" style="display: none">\n Annonsøren som presenterer ukemenyen har betalt for profilering av logoen på VG-forsiden og Godt.no, og annonsen mellom oppskriftene.\n <a href="https://www.vg.no/informasjon/redaksjonelle-avgjorelser/232" target="_blank">\n Les mer\n </a>\n </div>\n </div>`,weeklyMenu:({containerId:e,url:t,img:n,imgAltText:o})=>`<div id="${e}" class="advertory-godt-ad-weekly-menu">\n <div class="ad-info" id="${e}-button"></div>\n <a class="ad-link" href="${t}"rel="noopener nofollow sponsored">\n <img alt="${o}" class="ad-image" src="${n}" />\n <span class="ad-label">${Gn.no.adText}</span>\n </a>\n</div>`,sponsorstripe:({title:e,logo:t})=>`\n <div class="advertory-godt-sponsorstripe">\n <div class="ad-container">\n <button\n class="button"\n type="button"\n onclick="(function(e){\n try {\n const root = e.target.closest('.advertory-godt-sponsorstripe');\n root.classList.add('disclaimer-visible');\n } catch (error) {}\n})(arguments[0]);return false;"\n >\n <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="none"><path fill="currentColor" d="M9 9.327a1 1 0 1 1 2 0v6a1 1 0 1 1-2 0zM10 4.399a1 1 0 1 0 0 2 1 1 0 0 0 0-2"/><path fill="currentColor" fill-rule="evenodd" d="M10 .348c-5.523 0-10 4.477-10 10s4.477 10 10 10 10-4.477 10-10-4.477-10-10-10m-8 10a8 8 0 1 0 16 0 8 8 0 0 0-16 0" clip-rule="evenodd"/></svg>\n </button>\n <span class="ad-text">${e}</span>\n <img alt="" aria-hidden="true" class="ad-logo" src="${t}" />\n </div>\n <div class="disclaimer">\n <button\n class="button"\n type="button"\n onclick="(function(e){\n try {\n const root = e.target.closest('.advertory-godt-sponsorstripe');\n root.classList.remove('disclaimer-visible');\n } catch (error) {}\n})(arguments[0]);return false;"\n >\n <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 21 21" fill="none"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M11 20.07a9.375 9.375 0 1 0 0-18.75 9.375 9.375 0 1 0 0 18.75" clip-rule="evenodd"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="m7.25 14.444 7.5-7.5M14.75 14.444l-7.5-7.5"/></svg>\n </button>\n <div>\n Annonsøren som presenterer denne saken har betalt for profilering av fremhevet annonsemateriell i artikler og innhold på Godt.no\n <a href="https://www.vg.no/informasjon/redaksjonelle-avgjorelser/232" target="_blank">\n Les mer\n </a>\n </div>\n </div>\n </div>`},Ya={displayTemplates:{default:Ja.default,content:Ja.content,"ukesmeny-stripe":Ja.weeklyMenuStripe,ukesmeny:Ja.weeklyMenu,sponsorstripe:Ja.sponsorstripe,seamless:{NATIVE_SEAMLESS:({containerId:e,url:t,adText:n,img:o,cta:i,description:r,logo:a,sponsoredBy:d,title:s,feedUrl:l})=>(Promise.resolve().then(function(){return Ts}),`<article class="advertory-shared-ad-native-seamless">\n <div class="ad-info" id="${e}-button"></div>\n <a class="ad-link" href="${t}" target="_blank" data-product-link>\n <div class="ad-content">\n <div class="ad-header">\n ${a&&`<img alt="${d}" class="ad-logo" src="${a}" loading="lazy" />`}\n <div class="ad-annons">${n}</div>\n </div>\n ${(({img:e,title:t,feedUrl:n})=>n?'<div class="ad-carousel">\n <div class="carousel-window" data-carousel-viewport>\n <div class="carousel-track" data-carousel-track></div>\n </div>\n </div>':`<div class="ad-image-container">\n <img alt="${t}" class="ad-image" src="${e}" loading="lazy">\n </div>`)({img:o,title:s,feedUrl:l})}\n <div class="ad-footer">\n <div class="ad-row">\n <div class="ad-text-wrapper">\n <div class="ad-description" data-product-description>${r}</div>\n <h2 class="ad-headline" data-product-title>${s}</h2>\n </div>\n <div class="ad-purchase">\n <span class="ad-price" data-product-price></span>\n <div class="ad-action">${i}</div>\n </div>\n </div>\n </div>\n </div>\n </a>\n </article>`)}.NATIVE_SEAMLESS},videoTemplates:{default:Ja.nativeVideo,content:Ja.contentVideo,menu:Ja.weeklyMenuVideo}},Qa={prepareTag:e=>{var t;const{keywords:n,targetId:o,invCode:i,dynamicSizeWidthCheck:r,globalPlacementId:a}=e,{pageSetup:d,pageContext:{countryCode:s}}=f.get(),{tag:{useAppTabletInvCode:l=!0}={}}=null!=d?d:{},c=((e,t)=>{const{pageContext:{isMobileApp:n}}=f.get();return n?((e,t)=>e.replace(/wtb|wde|wph/g,e=>"wph"===e?"aph":t?"atb":e))(e,t):e})(i,l),u=(e=>{const{pageContext:{countryCode:t}}=f.get(),{keywords:n,dynamicSizeWidthCheck:o}=e,i=`${w(t)}-adformat`,r=n?n[i]:[];if(!r)return{};const a=(Array.isArray(r)?r:[r]).filter(e=>!(e in Be)||window.innerWidth>=Be[e]);return{[i]:o?a:r}})(e),p=(e=>{const{pageContext:{countryCode:t}}=f.get(),n=`${w(t)}-targetid`;return e?{[n]:[e]}:{}})(o),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=Ta(),h=(e=>Sa(e)?{"aa-sch-dynamic-outstream":["true"]}:{})(i),m=((e,t)=>Sa(e)?Object.assign(Object.assign({},t),{playerSkin:{videoBackgroundColor:"#e6e7e8"}}):{})(i,{safeFrameAutoInitialSize:!0}),y=r&&e.sizes.length>0?e.sizes.filter(([e])=>e<=window.innerWidth):e.sizes,b=(new Ea).add(null!=n?n:{}).add(u).add(p).add(null!=v?v:{}).add(h).add(g).addIf(null===(t=null==d?void 0:d.tag)||void 0===t?void 0:t.reloadKeywords,{[`${w(s)}-adreload`]:"0"}).build();return Object.assign(Object.assign({},e),{sizes:y,invCode:c,keywords:b,rendererOptions:m,globalPlacementId:a||c})},preparePageOptions:e=>H(void 0,void 0,void 0,function*(){const{pageContext:{countryCode:t}}=f.get();return yield t===b.SE?Ba(e):qa(e)}),siteEvents:Rt,initNativeAd:(e,t)=>{var n,o,i;if(null===(o=null===(n=null==t?void 0:t.editory)||void 0===n?void 0:n.adNativeBuilder)||void 0===o?void 0:o.enabled)return void Jr(e,t);const{targetId:r}=e;if(!document.querySelector(`#${r}`))return;const{pageType:a=Xa.FRONT,deviceType:d}=null!==(i=null==t?void 0:t.pageContext)&&void 0!==i?i:{},{nativeTrackingConfig:s,appearanceConfig:l}=null!=t?t:{},c={language:b.NO,publisher:Dt.GODT,deviceType:d,pageType:a,nativeTrackingConfig:s,appearanceConfig:l};Ca(e,c,Ya)}},Za=((e,t,n)=>({init:o=>{return i=Object.assign(Object.assign({},o),{siteSpecificConfig:t}),r=e,a=n,H(void 0,void 0,void 0,function*(){c(`Received configuration passed to Advertory: ${JSON.stringify(i)}`),yield fa(i,r,a)});var i,r,a},update:ma,renderNativeAd:da,getVideoPPIDs:Tn,createInitNativeAd:Ia,getVideoAdsConfig:Di}))(Qa,zt,Ro),ed=1e4,td=e=>e.some(e=>e.some(e=>!!e&&Oo(e,0)));let nd;var od=Object.freeze({__proto__:null,initWidescreenSwitching:()=>{const{widescreenSwitching:e}=f.get(),{enabled:t,options:{rotationInterval:n=ed,widescreenIdPrefix:o}={}}=null!=e?e:{};if(!t)return;const i=((e="widescreen")=>{const{pageSectionsSelectors:{right:t}={}}=f.get();return t?Array.from(document.querySelectorAll(t)).map(t=>Array.from(t.querySelectorAll(`div[id^="${e}"]`))):[]})(o);let r=0,a=Date.now(),d=td(i);if(!i.length)return;nd&&window.removeEventListener("scroll",nd);const s=(e,t,n)=>{e.forEach(e=>{e&&e.style.setProperty(t,n)})},l=e=>1===e?0:1;(e=>{e.forEach(e=>{e[0]&&(e[0].style.display="block",e[0].style.opacity="1"),e[1]&&(e[1].style.display="none",e[1].style.opacity="")})})(i);const c=((e,t)=>{let n=null;return(...o)=>{null===n&&(e(...o),n=setTimeout(()=>{n=null},t))}})(()=>{d||(d=td(i)||d,a=Date.now());Date.now()-a>=n&&((()=>{const e=l(r),t=i.map(e=>e[r]),n=i.map(t=>t[e]);s(t,"opacity","0"),setTimeout(()=>{s(t,"display","none"),s(n,"opacity","0"),s(n,"display","block"),setTimeout(()=>{s(n,"opacity","1")},450)},450)})(),r=l(r),a=Date.now())},1e3);nd=c,window.addEventListener("scroll",c)}});const id="#fff",rd="#0098da",ad=e=>"dark"===e,dd=(e,t,n,o)=>{if(!n)return;const i={[ct]:()=>{const{buttonLabel:o}=St(n,t);["#advertory-welcome-page-scroll-label","#advertory-welcome-page-scroll-image"].forEach(t=>{const n=e.querySelector(`${t}`);n&&(n.innerText=null!=o?o:"")})},[lt]:()=>{const{themeColors:i,logotype:r,buttonLabel:a,showArrowIcon:d}=St(n,t),s=((e,t)=>{var n,o,i,r;if(!e)return;const a=ad(t)?e.darkMode:void 0;return{backgroundColor:null!==(o=null!==(n=null==a?void 0:a.backgroundColor)&&void 0!==n?n:e.backgroundColor)&&void 0!==o?o:id,color:null!==(r=null!==(i=null==a?void 0:a.color)&&void 0!==i?i:e.color)&&void 0!==r?r:rd}})(i,o),l=((e,t)=>{var n,o;if(!e)return;const i=ad(t)?e.darkMode:void 0;return{url:null!==(n=null==i?void 0:i.url)&&void 0!==n?n:e.url,alt:null!==(o=null==i?void 0:i.alt)&&void 0!==o?o:e.alt}})(r,o);["#advertory-splash-close-label",".advertory-splash-close","#advertory-splash-logotype",".advertory-splash-navbar-wrapper"].forEach(t=>{const n=e.querySelector(`${t}`);if(n){if("#advertory-splash-close-label"===t&&(n.innerText=null!=a?a:""),".advertory-splash-close"===t&&!d){const e=n.querySelector("#advertory-splash-close-image");null==e||e.style.setProperty("display","none")}".advertory-splash-close"===t&&s&&(n.style.color=s.color),"#advertory-splash-logotype"===t&&l&&(n.setAttribute("src",l.url),n.setAttribute("alt",l.alt)),".advertory-splash-navbar-wrapper"===t&&s&&(n.style.setProperty("background-color",s.backgroundColor,"important"),n.style.color=s.color)}})},[ut]:()=>{const{buttonLabel:o,showArrowIcon:i,showCloseButton:r=!0}=St(n,t);["#advertory-topscroller-scroll-label","#advertory-topscroller-scroll-image",".advertory-topscroller-close"].forEach(t=>{const n=e.querySelector(`${t}`);n&&(".advertory-topscroller-close"!==t||r||(n.style.display="none"),"#advertory-topscroller-scroll-image"!==t||i||(n.style.display="none"),"#advertory-topscroller-scroll-label"===t&&(n.innerText=null!=o?o:""))})},[pt]:()=>{}};i[t]()},sd=(e,t=!0)=>{(e===ct||e===ut)&&(e=>{e?setTimeout(()=>window.scrollTo(0,0),100):window.scrollTo(0,10)})(t)},ld=()=>{const e=parseInt(document.body.dataset.scrollY||"0",10);document.body.style.top="",window.scrollTo(0,e),document.body.classList.remove("page-locked")},cd=new WeakMap,ud=(e,t,n)=>{var o;window.addEventListener(t,n),cd.set(e,[...null!==(o=cd.get(e))&&void 0!==o?o:[],()=>window.removeEventListener(t,n)])},pd=e=>{document.body.style.overflow=e?"initial":"hidden"},vd=e=>{(e=>{var t;null===(t=cd.get(e))||void 0===t||t.forEach(e=>e()),cd.delete(e)})(e),ld(),(e=>{e.classList.toggle("takeover-ad-hidden",!0)})(e),pd(!0),e.style.display="none"},gd=e=>{const t=()=>vd(e);return ud(e,"advertory:closeTakeover",t),ld(),t},hd=e=>{const t=e.querySelector(".advertory-splash-navbar-wrapper");t&&((e=>{const t=t=>{["Enter","Escape"].includes(t.key)&&vd(e)};ld(),ud(e,"keydown",t)})(e),gd(e),ld(),t.addEventListener("click",()=>{vd(e)}),pd(!1))},md=e=>{(e=>{window.addEventListener("scroll",()=>{e.getBoundingClientRect().bottom,(e=>{const t=e.getBoundingClientRect().bottom;e.style.opacity=""+t/e.offsetHeight})(e)},{passive:!0})})(e),gd(e);const t=document.querySelector("header");document.querySelectorAll(".smooth-close-takeover").forEach(e=>e.addEventListener("click",()=>null==t?void 0:t.scrollIntoView({behavior:"smooth"})))},fd=e=>{(e=>{ud(e,"advertory:closeTakeover",()=>vd(e))})(e)},yd=e=>{const{takeover:{splash:{showAnnonsLabel:t=!1}={}}={}}=f.get(),n=e.querySelectorAll(".advertory-splash-navbar-wrapper"),o=document.querySelector(".advertory-takeover-label");Array.from(n).forEach(e=>e.style.display="flex"),t&&o&&(o.style.display="flex",o.innerText=Gn.se.adText),e.classList.toggle("advertory-splash-wrapper",!0)},bd=e=>{const t=document.querySelectorAll(".advertory-topscroller-elements");Array.from(t).forEach(e=>e.style.display="flex");const n=document.querySelector(".advertory-takeover-label");n&&(n.style.display="flex",n.innerText=Gn.no.adText,n.classList.add("takeover-topscroller-label"),e.classList.toggle("topscroller-wrapper",!0))},wd=e=>{const t=document.querySelectorAll(".advertory-welcome-page-elements");Array.from(t).forEach(e=>{e.style.display="flex",e.style.animation="elementsAnimation 1.5s ease-out forwards"});const n=document.querySelector(".advertory-takeover-label");n&&(n.style.display="flex",n.innerText=Gn.se.adText,e.classList.toggle("welcome-page-wrapper",!0))},xd=e=>{const t=document.querySelector(".advertory-takeover-label");t&&(t.style.display="flex",t.innerText=Gn.se.adText,e.classList.toggle("advertory-impact-wrapper",!0))},kd=()=>{const e=document.querySelector(".welcome-page-wrapper, .topscroller-wrapper, .advertory-splash-wrapper");if(!e)return;let t=0;new IntersectionObserver(e=>{e.forEach(e=>{var n;if(e.isIntersecting){window.dispatchEvent(new CustomEvent("advertory:takeoverInView"));(null!==(n=Array.from(e.target.classList))&&void 0!==n?n:[]).includes("advertory-splash-wrapper")&&(()=>{const e=window.scrollY||0;document.body.dataset.scrollY=e.toString(),document.body.style.top="0",document.body.classList.add("page-locked"),document.documentElement.scrollTop=0})(),t++}else t>0&&window.dispatchEvent(new CustomEvent("advertory:takeoverNotInView"))})},{root:null,rootMargin:"0px",threshold:0}).observe(e)},Cd=(e,t)=>{let n=e;return e.includes("529299503")&&(n=(e=>{const t=document.createElement("script");return t.textContent=`(${At})()`,e+t.outerHTML})(e)),n=Nn(n),n};var Id=Object.freeze({__proto__:null,createTakeoverAd:e=>H(void 0,void 0,void 0,function*(){const{takeover:t,appearanceConfig:n}=f.get(),{targetId:o}=e,i=document.querySelector(`#${o}`),r=document.querySelector(".advertory-takeover-wrapper");if(!i||!r||!t)return;const a=Ct(e),d=r.offsetHeight,s=window.scrollY>d;r.style.display="block",!s&&sd(a,!1),((e,t)=>{({[ct]:wd,[lt]:yd,[ut]:bd,[pt]:xd})[t](e)})(r,a),kd(),((e,t)=>{({[ct]:md,[ut]:md,[lt]:hd,[pt]:fd})[t](e)})(r,a),dd(r,a,t,null==n?void 0:n.theme),yield It(),!s&&sd(a,!0),Et(e,a)}),modifyTakeoverAdContent:e=>{const t=(e=>{var t;const{requests:n}=window.apntag,o=$n(e)?1:0;return null===(t=null==n?void 0:n.tags[e].adResponse.ads[o].rtb)||void 0===t?void 0:t.banner.content})(e);if(!t)return;((e,t)=>{const{requests:n}=window.apntag,o=$n(e)?1:0,i=null==n?void 0:n.tags[e].adResponse.ads[o].rtb;i&&(i.banner.content=t)})(e,Cd(t))},modifyTakeoverIframe:(e,t)=>{var n;const o="100%",i="100%";e.resizeAd(t,[o,i]);const r=null===(n=document.querySelector(`#div_utif_${t}`))||void 0===n?void 0:n.querySelector("iframe");if(!r)return;new MutationObserver(e=>{for(const t of e)if("attributes"===t.type&&"style"===t.attributeName){const e=window.getComputedStyle(r),t=e.width,n=e.height;t===o&&n===i||(r.style.width=o,r.style.height=i)}}).observe(r,{attributes:!0,attributeFilter:["style"]})}});class Td extends Zi{constructor(e,t){var n;super(e.pulse.instance,null!==(n=e.pageContext.publisher)&&void 0!==n?n:""),this.blinkParams=e,this.targetId=t}getTargetId(){return this.targetId}computeInvCode(){const{pageContext:{deviceType:e},placements:t}=this.blinkParams;if(e)return Yi(e,this.targetId,t)}buildAdObject(){const e=Td.extractAdFormat(this.targetId);return{objectId:this.targetId,objectSdrn:`sdrn:${this.publisher}:ad-slot:${e}`,platform:"blink",adFormat:e}}}const Sd=(e,t)=>{const{siteSpecificConfig:{publisherClassName:n}={},pageContext:{pageType:o},pulse:i}=f.get(),r=document.querySelector(`#${e}`);if(!r)return;if(r.classList.add("disable-cogwheel"),(null==i?void 0:i.instance)&&i.adTrackingEnabled){const t=new Td(f.get(),e);t.trackLoad(),t.trackImpression(),r.addEventListener("click",()=>t.trackEngagement())}Gi(n,r,Xi,null!=t?t:o);jt({preferredTestIdData:{targetId:e,testId:"finn"}})},Ed=e=>{const{pageContext:{publisher:t=""}}=f.get(),n=document.querySelector(`#${e}`);if(!n)return;const o=`-${t}`;n.classList.remove(`advertory${o}-finn-blink`),n.classList.remove(`advertory${o}-finn-blink-wrapper`)};var Ad=Object.freeze({__proto__:null,displaySpecialFormatsForFinnFallback:e=>{const{fullscreenScroll:t}=f.get(),{initNativeAd:n}=f.getHandlers();Re(e)&&Zn(e,t),De(e)&&(null==n||n(e,f.get()))},finnBlinkLoaded:Sd,xandrAdLoaded:Ed});const Od=(e,t)=>{t.left&&(e.style.left=t.left),t.marginLeft&&(e.style.marginLeft=t.marginLeft)},Pd=(e,t,n)=>{var o,i;const r=document.querySelector(`#${e.targetId}`),{siteSpecificConfig:{publisherClassName:a,fullWidthFormatClassName:d}={},fullWidth:s,pageContext:{deviceType:l}}=f.get();if(!r)return null;const c=r.parentElement,u=_t(l)||n;if(r.style.width=u?"100vw":"100%",r.style.position="relative",c&&(c.style.width=u?"100vw":"100%",c.style.position="relative"),a&&d){const e=`advertory-${a}-${d}`;r.classList.add(`${e}__${t}`),null==c||c.classList.add(`${e}-wrapper__${t}`)}const p=null===(i=null===(o=null==s?void 0:s.options)||void 0===o?void 0:o.styles)||void 0===i?void 0:i[l],v=(null==s?void 0:s.enabled)&&p;return!v&&c&&u&&(c.style.left="50%",c.style.marginLeft="-50vw"),v&&p.adContainer&&Od(r,p.adContainer),v&&p.adContainerWrapper&&c&&Od(c,p.adContainerWrapper),r},jd=(e,t,n,o,i)=>{var r;const a=Pd(e,o,i);if(!a)return void c("[Ad full width] adContainer not found");const d=a.querySelector("iframe"),s=null==d?void 0:d.parentElement;if(!d||!s)return void c("[Ad full width] iframe or iframeWrapper not found");const l=parseFloat(window.getComputedStyle(a,"::before").height)||0,u="undefined"!=typeof CSS&&CSS.supports("transform","scale(calc(100vw / 1080px))")?`calc(100vw / ${t}px)`:String((null===(r=null===document||void 0===document?void 0:document.documentElement)||void 0===r?void 0:r.clientWidth)/t);c(`[Ad full width] ratioWidth ${t}, ratioHeight ${n}, adObjWidth: ${e.width}, scaleFactor ${u}`),s.style.transform=`scale(${u})`,s.style.transformOrigin="left top",a.style.height=`calc(100vw / ${t} * ${n} + ${l}px)`};var $d=Object.freeze({__proto__:null,applyFullsquareFormat:e=>{jd(e,1080,1080,"fullsquare-ad",!0)},applyFullwidthFormat:e=>{const t=Pd(e,"fullwidth-ad",!1);if(!t)return;const n=t.querySelector("iframe");if(!n)return;const{deviceType:o}=f.get().pageContext;n.style.width=_t(o)?"100vw":"100%",(null==n?void 0:n.parentElement)&&(n.parentElement.style.width=_t(o)?"100vw":"100%")},applyNinesixteenFormat:e=>{jd(e,1080,1920,"ninesixteen-ad",!0)}});Vn('.advertory-finn-blink-wrapper{height:100%;display:flex !important;align-items:center;justify-content:center}.advertory-finn-blink-wrapper:not(.brandboard-container){width:100%;margin-inline:auto}.advertory-finn-blink{width:100%;height:500px;max-width:580px;display:flex !important;align-items:center;justify-content:center}.advertory-finn-blink::before{content:"" !important}.advertory-finn-blink iframe{max-width:100%}');const Ld={Blink:"Blink"},_d=new Map,Nd=e=>{var t;if(!_d.has(e)){const t=import(/* webpackIgnore: true */e).then(e=>(e=>{for(const[t,n]of Object.entries(Ld)){const o=e[t];null!=o&&(window[n]=o)}})(e)).catch(t=>{throw _d.delete(e),t});_d.set(e,t)}return null!==(t=_d.get(e))&&void 0!==t?t:Promise.resolve()},qd="https://assets.finn.no/pkg/distribution-fixed/v1/FINNExternalDistribution.modern.js",Fd=e=>{var t,n;const o=document.querySelector(`[id^="${e}"]`);return null!==(n=null===(t=null==o?void 0:o.dataset)||void 0===t?void 0:t.finnBlinkId)&&void 0!==n?n:e},Md=(e,t)=>{const{finnBlink:{enabled:n}={}}=f.get(),o=(null==t?void 0:t.enabled)||(e=>{var t;const n=document.querySelector(`[id^="${e}"]`);return!!(null===(t=null==n?void 0:n.dataset)||void 0===t?void 0:t.noBidAd)})(e);if(!o||!n)return null;const{height:i,requireImage:r,position:a,offset:d}=(null==t?void 0:t.sdkPayload)||{};return{selector:`#${Fd(e)}`,enabled:o,position:null!=a?a:e,height:null!=i?i:100,offset:null!=d?d:200,requireImage:r,advertoryTheme:null==t?void 0:t.advertoryTheme}},Bd=(e,t,n)=>H(void 0,void 0,void 0,function*(){const{placements:o,pageContext:{deviceType:i},appearanceConfig:r}=f.get();c(`rendering finn blink ad for ${e}`);const a=U(e),d=o[i].find(e=>e.targetId===a),s=Md(e,null==d?void 0:d.finnBlink);if(!(null==s?void 0:s.enabled))return c(`Finn blink is not enabled on placement: ${e}`),n&&n(e),void Ed(e);if((e=>{var t;const n=Fd(e),o=document.querySelector(`[id^="${n}"]`);return!!(null===(t=null==o?void 0:o.classList)||void 0===t?void 0:t.contains("finn"))})(e))return void c(`Finn blink already loaded ${e}`);const{publisher:l,countryCode:u,finnBlink:p}=t,{sdkPayload:{channel:v}={}}=null!=p?p:{},g=null!=v?v:`${l}.${u}`,h="dark"===(null==r?void 0:r.theme)?"dark":"light";try{const e=yield H(void 0,void 0,void 0,function*(){const{ppid1:e}=bn.getPPIDs();return e});yield(m=Object.assign(Object.assign({},s),{channel:g,userId:e,theme:h}),H(void 0,void 0,void 0,function*(){const{userId:e,theme:t}=m,n=W(m,["userId","theme"]),o=window[Ld.Blink];if(!o)return;const i=new o({remote:"https://www.finn.no/distribution-front/external/carousel",userId:e,theme:t});yield i.inject(Object.assign({},n))})),Sd(s.selector.replace("#",""),s.advertoryTheme)}catch(t){c(`Finn blink error ${t}`),n&&n(e),!n&&D(e),Ed(e)}var m}),Rd=()=>H(void 0,void 0,void 0,function*(){const{tcf:e,pageContext:{isMobileApp:t,countryCode:n}}=f.get();return!!(yield at(e,t,n,"finn-blink"))||(c("Skip loading finn blink ad due to missing TCF consent."),!1)}),Dd=(e,t)=>{var n;(c(`Appending ${t.id} after ${e.id}`),e.parentElement&&(n=e.parentElement,!Array.from(n.children).some(e=>e.classList.contains("advertory-finn-blink-wrapper"))))?(e.parentElement.style.display="none",e.parentElement.insertAdjacentElement("afterend",t)):c(`Cannot perform afterend on: ${e.id}`)},zd=e=>document.querySelector(`#${e}`);var Ud=Object.freeze({__proto__:null,handleFinnBlinkOnlyPlacements:e=>H(void 0,void 0,void 0,function*(){if(!e.length)return;const{appearanceConfig:t,pageContext:{deviceType:n}}=f.get(),o=null==t?void 0:t.defaultThreshold[n];for(const t of e){const{requestThreshold:e,targetId:n}=t,i=zd(n);i&&(yield Qo(i,null!=e?e:o))}}),loadFinnBlinkAd:(e,t,n,o)=>H(void 0,void 0,void 0,function*(){const{pageContext:{isMobileApp:i}}=f.get();if(c(`loadFinnBlinkAd: loading finn blink ad for ${e}`),!(yield Rd())||i)return n&&n(e),Ed(e),void(!n&&D(e));try{yield Nd(qd)}catch(e){console.error(e)}yield Bd(e,t,n),o&&o()}),replaceAdsWithFinnBlink:(e,t)=>H(void 0,void 0,void 0,function*(){var n,o;if(!t)return;const{replacementConfig:i}=t,r=null===(n=null==i?void 0:i.adsToReplace)||void 0===n?void 0:n[e],a=null===(o=null==i?void 0:i.sizes)||void 0===o?void 0:o[e];(()=>{const e=document.getElementById("ads-advertory-anchor");return!(e&&"none"!==getComputedStyle(e).display&&window.advertoryFluepapir)})()&&r&&a?(yield Rd())&&(yield Nd(qd),r.forEach(([e,t])=>{const n=document.querySelector(`[id^="${e}"]`);if(!n)return;const o=(e=>{const{siteSpecificConfig:{publisherClassName:t}={}}=f.get(),n=document.createElement("div"),o=document.createElement("div");return o.id=e,n.appendChild(o),Gi(t,o,Xi),c(`Creating blink container for: ${e}`),n})(t);(e=>{c(`Hiding old ad container: ${e.id}`),e.style.setProperty("display","none","important")})(n),Dd(n,o),n.dataset.finnBlinkId=t,Yo().withFullAdsChain(e)})):c(`Finn blink configuration is incorrect: ${JSON.stringify(i)}`)})});const Wd=Vn("[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-slider-time,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-slider-time{display:none}[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-button-container{padding:0 6px;height:36px}[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container .jw-icon-fullscreen,[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container .jw-settings-sharing,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-button-container .jw-icon-fullscreen,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-button-container .jw-settings-sharing{display:none}[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container .jw-icon,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-button-container .jw-icon{margin-right:3px;height:unset;width:unset;bottom:0}[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container .jw-icon-volume,[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container .jw-icon-playback,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-button-container .jw-icon-volume,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-button-container .jw-icon-playback{display:flex}");var Hd=Object.freeze({__proto__:null,default:Wd});const Vd=Vn("[data-carousel-viewport]{position:relative;overflow:hidden;padding-bottom:4px;touch-action:pan-y;user-select:none}[data-carousel-track]{display:flex;gap:10px;will-change:transform}[data-carousel-track] [data-carousel-slide]:not(.is-active){opacity:.9;filter:saturate(0.72)}[data-carousel-track] .carousel-slide{flex:0 0 82%;margin:0;overflow:hidden;border:1px solid hsla(0,0%,100%,.68);border-radius:12px;box-shadow:#adadad 1px 1px 1px}[data-carousel-track] .carousel-slide .slide-image{display:block;width:100%;height:auto;aspect-ratio:1/1;object-fit:cover;pointer-events:none}");var Kd=Object.freeze({__proto__:null,default:Vd});const Gd=e=>e===b.NO?"schibsted":"schibstedse";var Xd=Object.freeze({__proto__:null,getCampaign:Gd,loadNorstat:()=>H(void 0,void 0,void 0,function*(){const{norstat:{enabled:e}={},pageContext:{countryCode:t,isMobileApp:n},tcf:o}=f.get(),i=yield at(o,n,t,"norstat");if(!e||n||!i)return;const r=(e=>{const{ppid1:t,ppid2:n}=yn.getPPIDs(),{ppid1:o,ppid2:i}=bn.getPPIDs(),r=(new fn).add(n,cn[e]).add(t,un[e]).add(i,pn[e]).add(o,vn[e]);return`${r.buildNorstatPath()}?${r.buildNorstatQuery("alias").toString()}`})(t);((e,t,...n)=>{H(void 0,[e,t,...n],void 0,function*(e,t,n=!0){if(document.getElementById(t))return;const o=document.createElement("img");o.src=e,o.id=null!=t?t:"",n&&(o.style.display="none"),document.body.appendChild(o)})})(`https://sch-map.norstatsurveys.com/api/nids/${Gd(t)}/map/${r}`,"norstat")})});const Jd=".advertory-right-column-track",Yd="--advertory-right-column-track-height",Qd=e=>e.getBoundingClientRect().top+window.scrollY,Zd=(e,t)=>`${e}-${t}`,es=(e,t,n)=>{var o;const i=Array.from(null!==(o=e.querySelectorAll(t))&&void 0!==o?o:[]),r=(e=>e.map(e=>{var t;return null===(t=document.querySelector(`[id^="${e}"]`))||void 0===t?void 0:t.parentElement}).map((e,t)=>({point:e,originalIndex:t})).filter(e=>Boolean(e.point)))(n);if(0===r.length)return;const a=Qd(e);r.forEach(({point:e,originalIndex:t})=>{((e,t,n)=>{const o=Qd(e),i=Zd(Yd,t),r=o-n,a=Zd("--advertory-right-column-split-point-height",t),d=ta(e);na({[i]:ea(r),[a]:ea(d)})})(e,t+1,a),(e=>{const t=null==e?void 0:e.id;if(!t)return;const n=Zd("--advertory-right-column-ad-height",t),o=ta(e);na({[n]:ea(o)})})(i[t])});((e,t)=>{const n=Qd(e)-t;na({[Yd]:ea(n)})})(r[Math.min(i.length,r.length-1)].point,a)};let ts=!1;var ns=Object.freeze({__proto__:null,initRightColumnSplit:e=>{if(!(null==e?void 0:e.enabled)||ts)return;const{splitPointIDs:t,adSelector:n,trackSelector:o=Jd}=e,i=document.querySelector(o);if(!i)return;ts=!0;const r=()=>{es(i,n,t)};r(),window.addEventListener("resize",r),window.addEventListener("orientationchange",r),window.addEventListener("load",r),window.addEventListener("advertory:adLoaded",()=>{requestAnimationFrame(r)});new ResizeObserver(r).observe(i)}});class os{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:o,pathname:i}=new URL(n);if(!o.includes("www.vg.no")&&!i.includes("annonsorinnhold"))return[n];const r=i.split("/");return r.length?[...r.filter(Boolean).slice(1).map(e=>e),n]:[n]}}class is{getPulseObjectId(){return""}getPulsePageId(e,t){return""}}const rs="[data-k5a-teaser-analytics]";class as extends Zi{constructor(e,t,n,o){super(e,""),this.root=t,this.newsroomStrategy=n,this.pageType=o}getTargetId(){return this.root.id}buildAdObject(){return this.getEventInput("view")}parseKilkayaData(){const e=this.root.querySelector("article");if(!e)return{};const t=e.dataset.k5aTeaserAnalytics;try{return t?JSON.parse(t):{}}catch(e){return{}}}mapPageType(e){var t;return null!==(t={front:"Frontpage",article:"Article",section:"Article",collection:"Article",other:"Article"}[null!=e?e:"front"])&&void 0!==t?t:"Frontpage"}getArticleId(){var e;return null!==(e=location.pathname.split("/").slice(-2,-1).pop())&&void 0!==e?e:""}getPlacementData(){var e,t;const n=this.root.closest(".kilkaya-wrapper");return{columnName:null!==(e=null==n?void 0:n.dataset.pulseColumnname)&&void 0!==e?e:"",primaryPosition:Number(null==n?void 0:n.dataset.pulsePrimaryposition)||0,secondaryPosition:Number(null==n?void 0:n.dataset.pulseSecondaryposition)||0,slot:null!==(t=null==n?void 0:n.dataset.slotTag)&&void 0!==t?t:""}}getEventTarget(){const{link:e,itemId:t,title:n}=this.parseKilkayaData();return{id:t,name:this.normalizePlacementTitle(null!=n?n:""),type:"Page",url:e}}normalizePlacementTitle(e){return e.replace(/<[^>]+>/gi,"").replace(/[^a-z0-9æøå\s_-]/gi,"")}waitForAnalyticsData(e){const t=this.root.querySelector(rs);if(Boolean(null==t?void 0:t.dataset.k5aTeaserAnalytics))return void e();const n=new MutationObserver(()=>{const t=this.root.querySelector(rs);Boolean(null==t?void 0:t.dataset.k5aTeaserAnalytics)&&(n.disconnect(),e())});n.observe(this.root,{attributes:!0,childList:!0,subtree:!0,attributeFilter:["data-k5a-teaser-analytics"]})}trackLoad(){}trackImpression(){Qi(this.root,()=>this.waitForAnalyticsData(()=>{var e,t;const n=new CustomEvent("advertory:partnerstudioAdImpression",{detail:{ad:this.parseKilkayaData().placement}});window.dispatchEvent(n);const o=this.getEventInput("view");this.pulse.trackLegacyViewUIElement?this.pulse.trackLegacyViewUIElement(o):this.pulse.trackViewUIElement?this.pulse.trackViewUIElement(o):null===(t=(e=this.pulse).trackElementView)||void 0===t||t.call(e,o)}))}trackEngagement(e){var t,n;const o=this.getEventInput("click");this.pulse.trackLegacyClickUIElement?this.pulse.trackLegacyClickUIElement(o):this.pulse.trackClickUIElement?this.pulse.trackClickUIElement(o):null===(n=(t=this.pulse).trackElementClick)||void 0===n||n.call(t,o)}}class ds extends as{getEventBaseData(){var e,t,n,o;const{clientName:i,creativeId:r,itemId:a,placement:d}=this.parseKilkayaData(),{primaryPosition:s,secondaryPosition:l,slot:c}=this.getPlacementData(),u=this.mapPageType(this.pageType),p=null===(e=this.newsroomStrategy)||void 0===e?void 0:e.getPulsePageId(null!==(t=this.pageType)&&void 0!==t?t:"front",this.getArticleId());return Object.assign(Object.assign({},a&&{"@id":`sdrn:kilkaya:teaser:${a}`}),{"@type":"UIElement",position:d,elementType:"Article",custom:{customer:i,creativeId:null!=r?r:a},page:{"@id":null!=p?p:d,"@type":u,url:location.origin},placement:{primaryPosition:s,secondaryPosition:l,source:c},tags:null===(o=null===(n=this.newsroomStrategy)||void 0===n?void 0:n.getTags)||void 0===o?void 0:o.call(n,this.root)})}getEventInput(e){return{object:this.getEventBaseData(),partnerstudio:this.getEventPartnerstudioData(e),target:this.getEventTarget(),provider:this.getProviderData()}}getEventPartnerstudioData(e){return Object.assign(Object.assign({},this.parseKilkayaData()),{type:e,tracking_type:"ad",xandrAdLoaded:!1})}getProviderData(){return{productTag:"partnerstudio"}}}class ss extends as{getEventBaseData(){var e,t;const{title:n="",clientName:o="",creativeId:i="",link:r="",itemId:a=""}=this.parseKilkayaData(),{columnName:d,primaryPosition:s,secondaryPosition:l,slot:c}=this.getPlacementData(),u={publicUrl:r,urlPath:r?new URL(r).pathname:""},{publicUrl:p,urlPath:v}=r&&(null===(t=null===(e=this.newsroomStrategy)||void 0===e?void 0:e.transformUrl)||void 0===t?void 0:t.call(e,r))||u;return Object.assign(Object.assign({},a&&{"@id":`sdrn:kilkaya:teaser:${a}`}),{"@type":"UIElement",elementType:"Teaser",layout:{elementSize:"large",imageUrl:"",name:"large"},name:n,placement:{columnName:d,primaryPosition:s,secondaryPosition:l,source:c},tags:[o,n,p,v].filter(Boolean),"spt:custom":{is_sponsored:!0,sponsor:o,"spt:creativeId":i,pageTitle:n,publicUrl:p,urlPath:v},url:location.origin})}getEventInput(e){return{object:this.getEventBaseData(),target:this.getEventTarget()}}}class ls{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 H(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 c("[Privacy Broker] User is not logged in."),null}})}isUserLoggedIn(){return H(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 cs=/^glci_/,us="gender_",ps="geo_",vs="male",gs="female",hs=()=>H(void 0,void 0,void 0,function*(){try{const t=yield(e=500,H(void 0,void 0,void 0,function*(){return Promise.race([H(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)})}),new Promise(t=>setTimeout(()=>t(void 0),e))])})),n=new ls(t),o=yield n.getIdentityUser(),{gender:i}=null!=o?o:{};return i===vs||i===gs?`${us}${i}`:void 0}catch(e){return}var e}),ms=()=>H(void 0,void 0,void 0,function*(){const e=[],t=yield hs(),n=(()=>{const e=rn().map(e=>`${ps}${e.replace(cs,"")}`);return Array.from(new Set(e))})();return t&&e.push(t),n&&e.push(...n),e});class fs{getPulseObjectId(){return"sdrn:e24:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(e,t){return e===Xa.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:o}=new URL(n),i=o.split("/").filter(Boolean);return i.length?[...i.slice(1),n]:[n]}}class ys{getPulseObjectId(){return"sdrn:aftenposten:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:aftenposten:frontpage:Frontpage"}}class bs{getPulseObjectId(){return"sdrn:bt:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:bt:frontpage:Frontpage"}}class ws{getPulseObjectId(){return"sdrn:stavangeraftenblad:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:stavangeraftenblad:frontpage:Frontpage"}}class xs{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===Xa.FRONT?"sdrn:svdse:frontpage:front":`sdrn:svdse:article:${t}`}}class ks{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""}}class Cs{handleKilkayaStreamTracking({pulse:e,pageContext:{pageType:t,publisher:n,countryCode:o}}){if(!(null==e?void 0:e.instance))return;const i={[Dt.VG]:new os,[Dt.E24]:new fs,"no-aftenposten":new ys,[Dt.BT]:new bs,"no-bergenstidende":new bs,[Dt.SA]:new ws,"no-stavangeraftenblad":new ws,[Dt.SVD]:new xs,[Dt.AFTONBLADET]:new ks}[n]||new is;((e,t,n,o)=>{const i=document.querySelectorAll("k5a-stream");i.length&&i.forEach(i=>{const r=o===b.SE?new ss(e,i,t):new ds(e,i,t,n);r.trackImpression(),i.addEventListener("click",()=>r.trackEngagement())})})(e.instance,i,t,o)}injectKilkayaMeta(e){return H(this,void 0,void 0,function*(){const t=document.createElement("script"),n=yield ms();t.textContent=`var k5aMeta = { consent: ${e}, cntTag: ${JSON.stringify(n)} };`,document.head.appendChild(t)})}observeForKilkayaBackfills(){document.addEventListener("K5A:EmptyStreamSlot",e=>{var t;const n=null===(t=null==e?void 0:e.detail)||void 0===t?void 0:t.streamSlot;if(c(`Kilkaya event for slot: ${n}`),!n)return void c("Kilkaya slot empty, Xandr backfill won't be loaded");const o=n.parentElement;o?(c(`Kilkaya placement ${n.getAttribute("name")} has not been loaded, loading Xandr backfill`),this.showBackfill(o)):c("Kilkaya parent slot empty, Xandr backfill won't be loaded")})}showBackfill(e){var t;const n=e.querySelector(".fallback");if(!n)return;n.style.display="flex";const o=null!==(t=n.dataset.fallbackTargetId)&&void 0!==t?t:"";z(o)}loadKilkayaScript(e){return H(this,void 0,void 0,function*(){yield Sn(e)})}run(e){return H(this,void 0,void 0,function*(){var t,n;const{tcf:o,pageContext:{isMobileApp:i,countryCode:r},kilkaya:a}=e;if(!(null==a?void 0:a.enabled))return;const d=yield at(o,i,r,"kilkaya");this.observeForKilkayaBackfills(),yield this.injectKilkayaMeta(d),yield this.loadKilkayaScript(null!==(n=null===(t=a.options)||void 0===t?void 0:t.kilkayaUrl)&&void 0!==n?n:""),this.handleKilkayaStreamTracking(e)})}}var Is=Object.freeze({__proto__:null,Kilkaya:({placementName:e,slotTag:t,fallbackTargetId:o,children:i,pulseData:r,htmlAttributes:a})=>{const d=(e,t)=>{const n={};if(!e)return n;for(const[o,i]of Object.entries(e)){n[t?`${t}-${o}`:o]=String(i)}return n},s=d(r,"data-pulse"),l=d(a,"data");return n.jsxs("div",Object.assign({className:"kilkaya-wrapper kilkaya-lock-height",style:{width:"100%"},"data-slot-tag":t},s,l,{children:[n.jsx("div",{className:"inscreen-target"}),n.jsx("k5a-stream",{name:e,"slot-tag":t}),n.jsx("div",{className:"container"}),n.jsx("div",{className:"fallback","data-fallback-target-id":o,style:{display:"none"},children:i})]}))},runKilkaya:e=>H(void 0,void 0,void 0,function*(){const t=new Cs;yield t.run(e)})});Vn('.advertory-shared-ad-native-seamless{position:relative;overflow:hidden;border-radius:10px}.advertory-shared-ad-native-seamless .ad-info{position:absolute;top:0;right:0;z-index:1}.advertory-shared-ad-native-seamless .ad-info div[role=button]{top:0;right:0;left:auto;transform:none;background-color:hsla(0,0%,100%,.45);border-bottom-left-radius:13px}.advertory-shared-ad-native-seamless .ad-link{text-decoration:none;color:inherit}.advertory-shared-ad-native-seamless .ad-link .ad-content{position:relative;min-width:320px;height:100%;margin:0 auto;padding:8px 8px 0;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;background-color:var(--color-background-secondary, #ffffff);color:var(--color-text-primary, #333)}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-header{padding:0 0 8px 10px;margin-right:18px;display:flex;justify-content:space-between;gap:50px}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-header .ad-logo{max-width:100%;max-height:40px;min-width:0;object-fit:contain;object-position:left center}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-header .ad-annons{flex-shrink:0;margin-left:auto;margin-right:5px;font-size:10px;font-weight:400;color:var(--color-text-primary, #333);white-space:nowrap;line-height:.7;text-transform:lowercase}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-image-container{width:100%;aspect-ratio:1/1;overflow:hidden;display:flex;justify-content:center;align-items:center}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-image-container .ad-image{height:100%;width:auto;max-width:100%;object-fit:cover}@media screen and (min-width: 768px){.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-image-container{aspect-ratio:1.91/1}}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-carousel{display:flex;justify-content:center;align-items:center;width:100%}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-carousel .carousel-window{width:calc(100% + 16px);min-width:calc(100% + 16px);mask-image:linear-gradient(to right, transparent 0%, #000 5%, #000 95%, transparent 100%);-webkit-mask-image:linear-gradient(to right, rgba(0, 0, 0, 0.5) 0%, #000 5%, #000 95%, rgba(0, 0, 0, 0.5) 100%)}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-footer{display:flex;flex-direction:column;justify-content:center;padding:13px 10px}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-footer .ad-row{display:flex;align-items:center;justify-content:space-between}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-footer .ad-row .ad-text-wrapper{display:flex;flex-direction:column;gap:5px;flex-grow:1;min-width:0;padding-right:8px;align-items:start}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-footer .ad-row .ad-text-wrapper .ad-description{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;line-clamp:1;overflow:hidden;min-width:0;font-size:15.5px;font-weight:500;text-align:left;word-spacing:-1px;color:var(--color-text-primary, #111111)}@media screen and (min-width: 768px){.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-footer .ad-row .ad-text-wrapper .ad-description{font-size:18px}}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-footer .ad-row .ad-text-wrapper .ad-headline{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;min-width:0;margin:0;font-size:16px;font-weight:400;line-height:1.2;word-spacing:-1px;text-align:left;color:var(--color-text-secondary, #111111)}@media screen and (min-width: 768px){.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-footer .ad-row .ad-text-wrapper .ad-headline{font-size:18px}}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-footer .ad-row .ad-purchase{display:flex;flex-direction:column;flex-shrink:0;align-items:center;gap:6px}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-footer .ad-row .ad-purchase .ad-price{font-size:13px;font-weight:500;white-space:nowrap}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-footer .ad-row .ad-purchase .ad-price:empty{display:none}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-footer .ad-row .ad-action{flex-shrink:0;padding:10px 14px;font-size:14px;line-height:1;color:var(--color-text-on-accent, #111111);white-space:nowrap;background-color:var(--color-accent, #d9d9d9);border-radius:99px;font-weight:500}');var Ts=Object.freeze({__proto__:null});Vn('.advertory-no-ad-native-default{width:calc(100% - 32px);min-height:250px;margin:auto;color:#dfdfdf;font-family:"Inter",sans-serif;font-weight:600;text-align:left;position:relative;box-sizing:border-box;text-decoration:none;display:table;table-layout:fixed;font-size:14px}@media screen and (min-width: 768px){.advertory-no-ad-native-default{width:580px;height:400px}}.advertory-no-ad-native-default *{box-sizing:border-box;line-height:normal;text-transform:none}.advertory-no-ad-native-default .ad-info{position:absolute;top:0;left:0;height:26px;width:26px;z-index:1000;background-color:#dfdfdf;border-bottom-right-radius:13px;transform:none;transform-origin:center}.advertory-no-ad-native-default .ad-link{display:block;text-decoration:none;color:#000;background-color:rgba(0,0,0,0);border:1px solid #dfdfdf}.advertory-no-ad-native-default .ad-content{display:block}.advertory-no-ad-native-default .ad-image-container{background-color:#dfdfdf;display:flex;position:relative;line-height:0}.advertory-no-ad-native-default .ad-image-container .ad-image{position:static;width:100%;aspect-ratio:1.91;height:auto}.advertory-no-ad-native-default .ad-text-container{background:#f5faff;overflow:auto;padding:8px}@media screen and (min-width: 768px){.advertory-no-ad-native-default .ad-text-container{padding:12px 16px}}.advertory-no-ad-native-default .ad-text-container .ad-sponsor{font-size:12px;margin:0;text-transform:uppercase;display:block}@media screen and (min-width: 768px){.advertory-no-ad-native-default .ad-text-container .ad-sponsor{font-size:14px;margin-right:8px}}.advertory-no-ad-native-default .ad-text-container .ad-sponsor .ad-label{font-weight:600;color:#fff;background-color:#467aae;display:inline-block;padding:4px 6px;border-radius:4px;border:none;margin-right:4px}.advertory-no-ad-native-default .ad-text-container .ad-title{margin:4px 0 0 0;line-height:normal;color:#000;font-size:18px;display:flex;flex-direction:column;justify-content:center}@media screen and (min-width: 768px){.advertory-no-ad-native-default .ad-text-container .ad-title{margin:12px 0 0 0;font-size:28px}}.advertory-vg-native-ad__front .advertory-no-ad-native-default{width:100%;height:auto}.advertory-aftenposten-native-ad-wrapper__front{justify-content:center}.advertory-e24-native-ad-wrapper__article{margin-bottom:calc(-40px + 4rem)}@media screen and (min-width: 768px){.advertory-e24-native-ad-wrapper__article{margin-bottom:calc(12px + .75rem)}}');var Ss=Object.freeze({__proto__:null});module.exports=Za;
|
|
1
|
+
"use strict";var e,t,n=require("react/jsx-runtime");function o(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var i=o(function(){if(t)return e;t=1;var n=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===o}(e)}(e)},o="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function i(e,t){return!1!==t.clone&&t.isMergeableObject(e)?l((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function r(e,t,n){return e.concat(t).map(function(e){return i(e,n)})}function a(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 d(e,t){try{return t in e}catch(e){return!1}}function s(e,t,n){var o={};return n.isMergeableObject(e)&&a(e).forEach(function(t){o[t]=i(e[t],n)}),a(t).forEach(function(r){(function(e,t){return d(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,r)||(d(e,r)&&n.isMergeableObject(t[r])?o[r]=function(e,t){if(!t.customMerge)return l;var n=t.customMerge(e);return"function"==typeof n?n:l}(r,n)(e[r],t[r],n):o[r]=i(t[r],n))}),o}function l(e,t,o){(o=o||{}).arrayMerge=o.arrayMerge||r,o.isMergeableObject=o.isMergeableObject||n,o.cloneUnlessOtherwiseSpecified=i;var a=Array.isArray(t);return a===Array.isArray(e)?a?o.arrayMerge(e,t,o):s(e,t,o):i(t,o)}return l.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,n){return l(e,n,t)},{})},e=l}());const r={arrayMerge:(e,t)=>t,isMergeableObject:e=>"object"==typeof e&&null!==e&&e.constructor===Object},a=(e,t)=>i(e,t,r),d=(e,t)=>Object.assign(Object.assign({},e),t),s=(e,t)=>{var n;return a(null!==(n=e)&&void 0!==n?n:{},t)},l={adRequested:()=>{},adAvailable:e=>{},adLoaded:e=>{},adNoBid:e=>{},adError:(e,t)=>{},adCollapse:()=>{},adRequestFailure:e=>{},adBadRequest:e=>{},adLoadedMediated:e=>{},adNoBidMediated:e=>{}},c=(e,t)=>{const n="[Advertory LOG]: ";location.search.includes("ast_debug=true")&&(t?console.log(n,e,t):console.log(n,e))},u=(e,t)=>{const n="[Advertory WARN]: ";t?console.warn(n,e,t):console.warn(n,e)},p=e=>{(e=>{const{pageContext:t,pageOptions:n,placements:o,appearanceConfig:i}=null!=e?e:{};(null==t?void 0:t.publisher)||u("pageContext.publisher is required."),(null==t?void 0:t.countryCode)||u("pageContext.countryCode is required."),(null==t?void 0:t.pageType)||u("pageContext.pageType is required."),(null==t?void 0:t.deviceType)||u("pageContext.deviceType is required."),n||u("pageOptions is required."),o||u("placements is required."),(null==i?void 0:i.defaultThreshold)||u("appearanceConfig.defaultThreshold is required.")})(e),(e=>{var t,n,o,i;const r=e.pageSectionsSelectors,a=[{flag:!!(null===(t=e.takeover)||void 0===t?void 0:t.enabled),property:"header",featureName:"takeover"},{flag:!!(null===(n=e.sponsorstripe)||void 0===n?void 0:n.enabled),property:"header",featureName:"sponsorstripe"},{flag:!!(null===(o=e.widescreenSwitching)||void 0===o?void 0:o.enabled),property:"right",featureName:"widescreenSwitching"},{flag:!!(null===(i=e.wallpaper)||void 0===i?void 0:i.enabled),property:"header",featureName:"wallpaper"}];for(const{flag:e,property:t,featureName:n}of a)e&&!(null==r?void 0:r[t])&&u(`pageSectionsSelectors.${t} is required when ${n} is enabled.`)})(e)},v={placements:(e,t)=>t,takeover:s,refreshConfig:d,editory:s,appearanceConfig:s,pageContext:d,pageOptions:d,pageSectionsSelectors:d,tcf:d},g=(e,t)=>{const n=e;for(const e of Object.keys(v)){const o=t[e];void 0!==o&&(n[e]=v[e](n[e],o))}},h=6;class m{set(e){p(e),this.config=e}modifyConfigProperties(e){if(!this.config)throw new Error("Config was accessed before it had been initialized.");g(this.config,e)}get(){if(!this.config)throw new Error("Config was accessed before it had been initialized.");return this.config}getHandlers(){if(!this.siteHandlers)throw new Error("Handlers were accessed before it had been initialized.");return this.siteHandlers}setHandlers(e){this.siteHandlers=a(m.DEFAULT_SITE_HANDLERS,e)}}m.DEFAULT_SITE_HANDLERS={siteEvents:l,initNativeAd:()=>{}};const f=new m,y=f.modifyConfigProperties.bind(f),b={NO:"no",SE:"se"},w=e=>e===b.NO?"no-sno":"se-generic",x=/_\d+$/,k=e=>e.replace(x,"");let C="";const I=new Map,T=e=>{const{pageSetup:{tag:t}={}}=f.get();return(null==t?void 0:t.includeCountingKeywordInTags)?(C!==window.location.pathname&&(I.clear(),C=window.location.pathname),e.map(e=>{var t;const n=k(e.invCode),o=null!==(t=I.get(n))&&void 0!==t?t:0;return e.keywords=Object.assign({},e.keywords),e.keywords[`${(()=>{const{pageContext:{countryCode:e,publisher:t}}=f.get();return`${e}-${t}`})()}-count`]=o,I.set(n,o+1),e})):e},S="advertory-wallpaper-background",E="advertory-with-horseshoe",A=()=>{const e=document.querySelector(`.${S}`);e&&e.remove()},O=e=>{const t=e.getBoundingClientRect().top;requestAnimationFrame(()=>(e=>{if(!document.body)return;const t=document.querySelector(`.${S}`);t&&t.style.setProperty("top",`${e}px`)})(t+15))},P=/^wallpaper:url:(http[s]?:\/\/)?[^\s(["<,>]*\.[^\s[",><]*/,j=e=>P.test(e),$=e=>e.startsWith("wallpaper:color:"),L=e=>{const t=document.querySelector(`.${S}`);t&&(t.style.backgroundImage=`url(${e})`)},_=e=>{const t=document.querySelector(`.${S}`);t&&(t.style.backgroundColor=e)};var N=Object.freeze({__proto__:null,adjustAdToHorseshoe:e=>{var t;const n=document.querySelector(`#${e}`);n&&(null===(t=n.parentElement)||void 0===t||t.classList.add(E),n.classList.add(E))},initWallpaperAd:(e,t)=>{if(!t)return;const{options:{wallpaperAnchorSelector:n}={}}=t;(()=>{A();const e=document.createElement("div");e.classList.add(S),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&&(O(n),window.addEventListener("scroll",()=>O(n)))})(n),e()},isShortWallpaperColorMessage:$,isShortWallpaperUrlMessage:j,removeWallpaperBackground:A,setWallpaperBackgroundColor:_,setWallpaperBackgroundImage:L});const q=e=>new URLSearchParams(window.location.search).get(e),F="takeover",M="native_override_desc2",B=e=>window.location.href.includes(e),D=()=>null!==q("disable_prebid"),R=e=>{if("0"===q("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")&&A())},z=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"))},U=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};function W(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]])}return n}function H(e,t,n,o){return new(n||(n=Promise))(function(i,r){function a(e){try{s(o.next(e))}catch(e){r(e)}}function d(e){try{s(o.throw(e))}catch(e){r(e)}}function s(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,d)}s((o=o.apply(e,t||[])).next())})}"function"==typeof SuppressedError&&SuppressedError;let V=e=>{window.apntag.anq.push(e)};const K=e=>{V(e)};class G{initialize(){this.DATA=Object.assign({},G.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)}}G.INITIAL_DATA={wallpaper:{isAvailable:!1},horseshoe:{isAvailable:!1},initialClassNames:{},alertoryConfigKeywords:{}};const X=new G,J=e=>{const t=document.querySelector(`#${e}`);t&&(t.style.minWidth="",t.style.minHeight="")},Y=e=>{var t;const n=null===(t=document.querySelector(`#${e}`))||void 0===t?void 0:t.parentElement,o=(null==n?void 0:n.offsetHeight)||0;n&&(n.style.minHeight=`${o}px`)},Q="opaque",Z=e=>H(void 0,void 0,void 0,function*(){if(e.type!==Q){if(!e.ok)throw new Error(e.statusText);return yield e.json()}}),ee={get:(e,...t)=>H(void 0,[e,...t],void 0,function*(e,t={}){var{timeout:n}=t,o=W(t,["timeout"]);if(n)return((e,t,n)=>H(void 0,void 0,void 0,function*(){const o=new AbortController,i=setTimeout(()=>o.abort(),n);try{const n=yield fetch(e,Object.assign(Object.assign({},t),{signal:o.signal}));return Z(n)}finally{clearTimeout(i)}}))(e,o,n);const i=yield fetch(e,o);return Z(i)}),post:(e,t,n)=>H(void 0,void 0,void 0,function*(){const o=JSON.stringify(n),i=yield fetch(e,{method:"POST",headers:t,body:o});if(!i.ok)throw new Error(i.statusText);return yield i.json()})},te="https://inv-platform-cdn.inventory.schibsted.io",ne=5e3,oe="editory/native-creator/native-templates",ie=e=>{const{siteSpecificConfig:t,editory:{editoryUrl:n,editableConfiguration:{pageTypeToFetch:o}={}}={}}=e;if(!(null==t?void 0:t.publisherClassName)||!o)return null;return`${n||te}/editory/editable-configurations/${t.publisherClassName}/${o.toLowerCase()}.json`};const re=new class{constructor(){this.requestToken=0,this.cacher=(()=>{const e=new Map;return{get:t=>e.get(t),set:(t,n)=>{e.set(t,n)},delete:t=>{e.delete(t)}}})()}shouldFetchEditableConfig(e){const{editory:{editableConfiguration:{enabled:t=!1,pageTypeToFetch:n}={}}={},siteSpecificConfig:o}=e;return Boolean(t&&n&&(null==o?void 0:o.publisherClassName))}captureLocalSiteConfig(e){return this.localSiteConfig=Object.assign({},e),this.localSiteConfig}fetchEditableConfig(e){return H(this,void 0,void 0,function*(){const t=ie(e);if(!t)return null;let n=this.cacher.get(t);return n||(n=(e=>H(void 0,void 0,void 0,function*(){const t=ie(e);if(!t)return null;try{return yield ee.get(t,{timeout:ne})}catch(e){throw c("Failed to fetch S3 config",{error:e,url:t}),e}}))(e).catch(e=>{throw this.cacher.delete(t),e}),this.cacher.set(t,n)),n})}resolveRemoteConfig(e,t){var n,o,i;const r=((e,t)=>{const{sections:n}=e,o=W(e,["sections"]),i=t?null==n?void 0:n[t]:void 0;return i?a(o,i):o})(t,null!==(i=null===(o=null===(n=e.editory)||void 0===n?void 0:n.editableConfiguration)||void 0===o?void 0:o.section)&&void 0!==i?i:(()=>{const[e]=window.location.pathname.split("/").filter(Boolean);return e})());return((e,t)=>a(t,e))(e,r)}getConfig(e){return H(this,void 0,void 0,function*(){const t=this.captureLocalSiteConfig(e);if(!this.shouldFetchEditableConfig(t))return t;try{const e=yield this.fetchEditableConfig(t);return e?this.resolveRemoteConfig(t,e):t}catch(e){return c("Error fetching S3 config, using site config",{error:e}),t}})}resolveUpdatedConfig(e){return H(this,void 0,void 0,function*(){var t,n,o,i;if(!this.localSiteConfig)return;if(g(this.localSiteConfig,null!=e?e:{}),!this.shouldFetchEditableConfig(this.localSiteConfig))return;const r=null===(n=null===(t=this.localSiteConfig.editory)||void 0===t?void 0:t.editableConfiguration)||void 0===n?void 0:n.pageTypeToFetch,a=++this.requestToken;try{const e=yield this.fetchEditableConfig(this.localSiteConfig);if(a!==this.requestToken||(null===(i=null===(o=this.localSiteConfig.editory)||void 0===o?void 0:o.editableConfiguration)||void 0===i?void 0:i.pageTypeToFetch)!==r)return;if(!e)return;return this.resolveRemoteConfig(this.localSiteConfig,e)}catch(e){return void c("Error fetching updated S3 config, keeping current config",{error:e})}})}},ae=re.getConfig.bind(re),de=re.resolveUpdatedConfig.bind(re),se=e=>{const t=e.parentElement;if(!e||!t)return;const{container:n,wrapper:o}=(e=>{const t=X.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=o},le=()=>{A();const e=document.querySelectorAll('[data-advertory-ad-rendered="true"]'),t=[];return e.forEach(e=>{R(e.id),se(e),(e=>{const t=document.querySelector(`#${e}`),n=null==t?void 0:t.getAttribute("data-probable-height"),o=null==t?void 0:t.getAttribute("data-probable-width");n&&o&&(null==t||t.style.setProperty("min-height",n+"px"),null==t||t.style.setProperty("min-probable-width",o+"px"))})(e.id),e.innerHTML="",e.id=U(e.id),t.push(e.id)}),K(()=>window.apntag.clearRequest()),t},ce=()=>{X.setData("wallpaper",{isAvailable:!1}),X.setData("horseshoe",{isAvailable:!1})},ue=e=>H(void 0,void 0,void 0,function*(){const t=yield de(e);var n;t?(f.set(t),n=t,window.advertory&&(window.advertory.siteConfig=n,window.advertory.alertoryConfig&&(window.advertory.alertoryConfig.advertory.placements=n.placements))):y(null!=e?e:{})}),pe="0123456789abcdefghijklmnopqrstuvwxyz",ve=(e=6)=>{if(e<=0)return"";let t="";for(let n=0;n<e;n++){t+=pe[Math.floor(36*Math.random())]}return t},ge=new Promise(e=>{"undefined"!=typeof document&&document.prerendering?document.addEventListener("prerenderingchange",()=>e()):e()}),he=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})}),me="mobile",fe="tablet",ye="desktop",be="web_desktop",we="web_phone",xe="wde",ke="wph",Ce="noGroupedPlacements",Ie=e=>{const t=e.replace(/[0-9]/g,"");return"_"===t.slice(-1)?t.substring(0,t.length-1):t},Te=e=>{if(!(null==e?void 0:e.minViewWidth))return!0;return window.innerWidth>=e.minViewWidth},Se=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:o,pageContext:{deviceType:i}}=f.get(),r=((e,t)=>{var n;const o=null!==(n=e[t])&&void 0!==n?n:[];return t===fe&&0===o.length?e[ye]:o})(n,i),a=r.filter(Te),d=e?document.querySelector(e):document;if(!d)return[];const s=a.reduce((e,t)=>{const n=Ie(t.targetId);return!n||e.includes(n)||e.push(n),e},[]).flatMap(e=>{const t=new RegExp(`^${e}(_(\\d+))?$`),n=a.filter(({targetId:e})=>e.match(t)),r=(null==o?void 0:o.queryByDataDeviceAttribute)?`div[id^="${e}"][data-device=${i}], div[id^="${e}"][data-device=all]`:`div[id^="${e}"]:not([data-disabled="true"])`,s=d.querySelectorAll(r),l=Array.from(s).filter(({id:e})=>e.match(t)).map((e,t)=>{var o;const i=Ee(e,t,n);if(i.disabled)return c(`Placement ${i.targetId} is disabled - collapsing`),R(i.targetId),null;const r=i.finnBlink&&!i.finnBlink.renderOnlyWithAdBlock,a=r&&(null===(o=i.finnBlink)||void 0===o?void 0:o.loadOnlyFinnBlink),d=`${e.id}-${ve(6)}`;return e.id=d,e.setAttribute("data-advertory-ad-rendered","true"),r&&e.setAttribute("data-is-finn-blink-placement","true"),a&&e.setAttribute("data-is-finn-blink-only-placement","true"),(e=>{var t;const n=e.id;n&&X.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({},i),{targetId:d})}),u=l.filter(e=>null!=e);return T(u)});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))})(s)},Ee=(e,t,n)=>{const o=n[t],i=n[n.length-1],r=n.filter(({targetId:t})=>t===e.id)[0];return(null==e?void 0:e.id)===(null==o?void 0:o.targetId)?o:(null==e?void 0:e.id)===(null==i?void 0:i.targetId)?i:r||i},Ae=e=>{const{queryConfig:{placementBatches:t}={},pageContext:{deviceType:n}}=f.get(),o=(null==t?void 0:t[n])||{},i=Object.values(o).flat(),r=(e=>{const t={};return e.forEach(e=>{const n=U(e.targetId);e.isBackfill&&(t[n]=[e])}),t})(e),a=((e,t)=>{const n={};for(const[o,i]of Object.entries(t))n[o]=e.filter(e=>i.includes(U(e.targetId)));return n})(e,o),d=Object.keys(r),s=((e,t)=>e.filter(e=>!t.has(U(e.targetId))))(e,new Set([...d,...i]));return Object.assign(Object.assign(Object.assign({},a),r),{[Ce]:s})},Oe="ABSOLUTE_FULLSCREEN",Pe="ANY_FULLSCREEN",je="NINESIXTEEN",$e="FULLWIDTH",Le="FULLSQUARE",_e="TAKEOVER",Ne="VELVET_TAKEOVER",qe="WALLPAPER",Fe="COLLAPSE",Me={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}]},Be={wallpaper:1600,"l-format":1600},De=e=>{const{banner:t,targetId:n}=e;return!(!t||(null==n?void 0:n.includes("takeover")))&&et(e,Pe)},Re=e=>{const{native:t}=e;return!!t},ze=e=>et(e,$e),Ue=e=>{const{targetId:t}=e;return t.includes("takeover")||et(e,_e)},We=e=>et(e,_e),He=e=>et(e,qe),Ve=e=>et(e,Fe),Ke=e=>e.targetId.includes("sponsorstripe"),Ge=e=>{const t=document.querySelector(`#${e}`);return!!t&&"true"===t.dataset.isFinnBlinkPlacement},Xe=e=>e.targetId.startsWith("panorama")||e.targetId.startsWith("modul"),Je=e=>e.targetId.startsWith("midboard"),Ye=e=>e.targetId.includes("widescreen"),Qe=e=>e.width>=1260&&e.width<=1280,Ze=e=>e.width>=1600&&e.width<=1620,et=(e,t)=>{const n=Me[t];if(!n)return!1;return!!n.find(t=>{var n,o;const i=(null===(n=e.banner)||void 0===n?void 0:n.width)||e.width,r=(null===(o=e.banner)||void 0===o?void 0:o.height)||e.height,a=t.width===i,d=!t.height||t.height===r;return a&&d})},tt=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 c("Advertising permission value obtained synchronously: ",e),Boolean(t)})();if(null!==n)return void t(n);let o=!1;const i=e=>{o||(c("Resolving advertising permission value obtained"),o=!0,t(e))},r=setTimeout(()=>{c("Advertising permission timed out, resolving with false"),i(!1)},3e3);window._tcf_.onTcfReady(()=>{c("On Tcf Ready called, waiting for permission"),clearTimeout(r)}),window._tcf_.getPermission("CMP:advertising",e=>{clearTimeout(r);const t=Number(e);c("Advertising permission value obtained asynchronously: ",e),i(Boolean(t))})}),nt="cmp:loaded";let ot="undefined"!=typeof window?window._tcf_:void 0,it=!1;const rt=(e,t,n)=>{const o=!!(null==e?void 0:e.enabled),i=(null==e?void 0:e.timeout)||3e3,r=q("bypass_tcf"),a=()=>{if(!(null==e?void 0:e.enabled))return!0;if(((e,t)=>e?!!t&&(c("TCF bypass param detected, returning consent: true"),!0):(c("TCF is not enabled, returning consent: true"),!0))(o,r))return!0;if(it)return null;if(!ot)throw new Error("[Advertory]: getConsentSync method was called before the tcfManager was available.");const t=ot.getConsentedToAllSync();return c(`TCF consented to all is: ${t}`),ot.getConsentedToAllSync()};return{initConsentManager:()=>(null==e?void 0:e.enabled)?new Promise((e,t)=>{if(c("Getting TCF consent manager..."),window._tcf_)return c("TCF consent manager is already available"),ot=window._tcf_,void e(ot);c("TCF consent manager is not available");const n=()=>{c("CMP loaded, resolving consent manager..."),o&&clearTimeout(o),window._tcf_?(ot=window._tcf_,e(ot)):t(new Error("CMP loaded but window._tcf_ is not defined"))},o=setTimeout(()=>{document.removeEventListener(nt,n),it=!0,t(new Error("Timeout waiting for CMP to load"))},i);c("Listening for CMP loaded event..."),document.addEventListener(nt,n,{once:!0})}):Promise.resolve(null),getConsentSync:a,getConsentAsync:()=>H(void 0,void 0,void 0,function*(){if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return c(`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===b.SE,o=(null==e?void 0:e.advertisingCMPSignalEnabled)&&n===b.NO;if(t||o)return c("Schibsted Ad Choices is enabled, getting advertising permissions..."),yield tt(e);if(!(null==e?void 0:e.enabled))return!0;const r=a();return null!==r?r:yield new Promise((e,t)=>{try{if(!ot)throw new Error("[Advertory]: getConsentAsync method was called before the tcfManager was available.");let t=!1;const n=n=>{t||(t=!0,e(n))},o=setTimeout(()=>{c("TCF isConsentedToAll timed out, resolving with false"),n(!1)},i);ot.onTcfReady(()=>{c("On Tcf Ready called, waiting for consent"),clearTimeout(o)}),ot.isConsentedToAll(t=>{clearTimeout(o),e(t)})}catch(e){t(e)}})})}},at=(e,t,n,...o)=>H(void 0,[e,t,n,...o],void 0,function*(e,t,n,o="NOT SPECIFIED FEATURE"){if(!(null==e?void 0:e.schibstedConsentToPayEnabled))return c(`Schibsted Consent to Pay is not enabled, returning true for ${o}`),!0;if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return c(`Schibsted Ad Choices override value is set, returning override value: ${null==e?void 0:e.schibstedAdChoicesOverrideValue} for ${o}`),Boolean(Number(null==e?void 0:e.schibstedAdChoicesOverrideValue));const{getConsentAsync:i}=rt(e,0,n);return(yield i())?(c(`Schibsted Ad Choices consent given according to TCF consent manager for ${o}`),!0):(c(`Schibsted Ad Choices consent not given according to TCF consent manager for ${o}`),!1)}),dt=e=>{const t=encodeURIComponent(e).replace(/[-.+*]/g,"\\$&"),n=new RegExp(`(?:(?:^|.*;)\\s*${t}\\s*\\=\\s*([^;]*).*$)|^.*$`);return decodeURIComponent(document.cookie.replace(n,"$1"))||null},st=e=>H(void 0,void 0,void 0,function*(){const{tcf:t,pageContext:{isMobileApp:n,countryCode:o}={}}=e,{getConsentAsync:i}=rt(t,0,o);if(!(yield i()))return;const r=dt("_pulse2data");return r?r.split(",")[9]:void 0}),lt="splash",ct="welcomePage",ut="topscroller",pt="velvet",vt=(e,t=(...e)=>{})=>{const n=t.toString();if(0===e.length)return n;const o=n.substring(0,n.indexOf("=>")).replace("(","").replace(")","").split(",").map(e=>e.trim()),i=n.substring(n.indexOf("{")+1,n.lastIndexOf("}")),r=o.map((t,n)=>`${t} = "${e[n]}"`);return new Function(...r,i).toString()},gt="takeover-displayed",ht="takeover-visit-count",mt=14400,ft=()=>{const e=dt(ht);return e?parseInt(e):0},yt=()=>{const e=ft(),{takeover:{options:{cookieCapTime:t=mt}={}}={}}=f.get(),n=document.location.hostname;window.document.cookie=`${ht}=${e+1}; max-age=${t}; domain=${n}; path=/; SameSite=Lax`},bt=()=>{const{takeover:{enabled:e=!1,options:{secondVisitEnabled:t=!1}={}}={}}=f.get();return"0"!==q(F)&&("1"===q(F)||!(!e||(()=>{var e,t;const n=(null===(t=null===(e=f.get().takeover)||void 0===e?void 0:e.options)||void 0===t?void 0:t.cookieCapName)||gt;return"true"===dt(n)})())&&(!t||wt()))},wt=()=>{const e=ft();return 0===e?(yt(),!1):1===e},xt=(e,t)=>[[1,1],[1920,1080]].some(([n,o])=>n===e&&o===t),kt=()=>{const{takeover:e}=f.get();return Boolean(null==e?void 0:e.topscroller)},Ct=e=>{const{width:t,height:n}=e;return xt(t,n)?lt:et(e,Ne)?pt:kt()?ut:ct},It=()=>H(void 0,void 0,void 0,function*(){const e=document.location.hostname,{takeover:{options:{cookieCapName:t=gt,cookieCapTime:n=mt}={}}={},pageContext:{isMobileApp:o,countryCode:i},tcf:r}=f.get(),a=yield at(r,o,i,"ad-takeover-cookiecap");n&&a&&(window.document.cookie=`${t}=true; max-age=${n}; domain=${e}; path=/`)}),Tt=e=>{var t,n;const o=!!(null===(n=null===(t=f.get().takeover)||void 0===t?void 0:t.options)||void 0===n?void 0:n.setCookieCapForNotShownAd);return Ue(e)&&o},St=(e,t)=>{var n;if(t===ut){const{topscroller:t}=e;return null!=t?t:{}}if(t===lt){const{splash:t}=e;return null!=t?t:{}}return null!==(n=e.welcomePage)&&void 0!==n?n:{}},Et=(e,t)=>{t!==lt?(e=>{var t,n;const o=null===(t=f.get().pageSectionsSelectors)||void 0===t?void 0:t.header,i=null===(n=f.get().takeover)||void 0===n?void 0:n.topscroller;if(!o||i)return;const r=document.querySelector(o),a=document.querySelector(".welcome-page-wrapper"),d=document.querySelector(`#${e.targetId}`),s=document.querySelector(".advertory-welcome-page-scroll");if(!(r&&a&&s&&d))return;const l=null==r?void 0:r.offsetHeight,c=We(e)?"60svh":`calc(100svh - ${l}px)`,u=We(e)?"calc(40svh + 30px)":`calc(${l}px + 30px)`;a.style.setProperty("height",c,"important"),d.style.setProperty("height",c,"important"),s.style.setProperty("bottom",u,"important")})(e):(e=>{var t;if(!(null===(t=f.get().takeover)||void 0===t?void 0:t.splash))return;const n=document.querySelector(".advertory-splash-navbar-wrapper"),o=document.querySelector(`#${e.targetId}`);if(!n||!o)return;const i=`calc(100svh - ${n.offsetHeight}px)`;o.style.setProperty("height",i,"important")})(e)},At=vt([],()=>{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 Ot=Object.freeze({__proto__:null,addTakeoverCookie:It,adjustTakeoverHeight:Et,canDisplayTakeover:bt,getProperWelcomePageConfig:St,getTakeoverVariant:Ct,handleTakeoverCookieOnAdNotShown:e=>H(void 0,void 0,void 0,function*(){Tt(e)&&(yield It())}),incrementArticleVisitCount:yt,isSplashVariant:xt,isTopscroller:kt,scaleAd:At,shouldAddTakeoverCookieForNotShownAd:Tt});const Pt={nativeAd:e=>Re(e)&&!Ke(e),buyrecipe:e=>e.targetId.startsWith("buyrecipe"),fullwidthAd:ze,fullscreenScroll:De,topscroller:e=>Ue(e)&&kt(),splash:e=>Ue(e)&&xt(e.width,e.height),welcomePage:Ue,wallpaper:He,skyscraper:e=>e.targetId.includes("skyscraper")&&!!e.banner,lFormat:Qe,hFormat:Ze,toppanorama:e=>e.targetId.startsWith("toppanorama")&&!Ze(e)&&!Qe(e),topboard:e=>e.targetId.startsWith("topboard")&&!Ue(e),widescreen:Ye,insider:e=>e.targetId.startsWith("insider"),sponsorstripe:Ke,brandboard:e=>(e=>(980===e.width||1920===e.width&&e.targetId.includes("brandboard"))&&!e.targetId.includes("topboard")&&!e.targetId.includes("companion")&&!Xe(e))(e)&&!(e=>e.targetId.includes("backfill"))(e)&&!Je(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:Xe,midboard:Je},jt=({adObj:e,preferredTestIdData:t})=>{var n,o;const i=null!==(n=null==t?void 0:t.targetId)&&void 0!==n?n:null==e?void 0:e.targetId;if(!i)return;const r=null===(o=document.querySelector(`#${i}`))||void 0===o?void 0:o.parentElement;if(!r)return;if(((e,t)=>{var n,o,i,r;const a=null===(r=null===(i=null===(o=null===(n=window.apntag)||void 0===n?void 0:n.requests)||void 0===o?void 0:o.tags)||void 0===i?void 0:i[e])||void 0===r?void 0:r.invCode;a&&(t.dataset.invCode=a)})(i,r),null==t?void 0:t.testId)return void(r.dataset.testid=t.testId);const a="DIV"===(null==r?void 0:r.tagName);e&&a&&((e,t)=>{var n,o;for(const[i,r]of Object.entries(Pt))if(r(e)){if("nativeAd"===i){const r="default";t.dataset.testid=`${i}-${null!==(o=null===(n=null==e?void 0:e.native)||void 0===n?void 0:n.desc2)&&void 0!==o?o:r}`;break}t.dataset.testid=i;break}})(e,r)},$t=e=>{var t;return(null===(t=Object.entries(Pt).find(([,t])=>t(e)))||void 0===t?void 0:t[0])||""},Lt=()=>{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"},_t=e=>e===me,Nt=(e,t)=>{const n=e.width,o=(null!=t?t:window.screen.width)/n;return o<1?o:1},qt=(e,t=window.screen.width,n,o)=>{const i=Nt(e,t);if(n&&n(e,i),o)return void o(e);const r=document.querySelector(`iframe[id^="utif_${e.targetId}"]`);r&&(r.style.transform=`scale(${i})`,r.style.transformOrigin="left top")},Ft=(e,t)=>{if(e&&t)return t/e},Mt=new Map;Mt.set("insider",{scale:.82,transformOrigin:"left center",cogwheelAdjust:!0}),Mt.set("panorama",{scale:.79,transformOrigin:"center center"}),Mt.set("outstream",{scale:.79,transformOrigin:"center center"}),Mt.set("integration",{scale:.79,transformOrigin:"center center"}),Mt.set("toppanorama",{scale:.8,transformOrigin:"left center"});var Bt=Object.freeze({__proto__:null,calculateScaleFactor:Nt,getAspectRatio:Ft,scaleAd:qt,scaleAdIpadAirPortrait:e=>{if(!((null===(t=null===document||void 0===document?void 0:document.body)||void 0===t?void 0:t.clientWidth)>767&&(null===(n=null===document||void 0===document?void 0:document.body)||void 0===n?void 0:n.clientWidth)<=853))return;var t,n;const o=$t(e),i=Mt.get(o),r=document.querySelector(`#${e.targetId}`);if(!r||!i)return;if(r.style.transformOrigin=i.transformOrigin,r.style.transform=`scale(${i.scale})`,!(null==i?void 0:i.cogwheelAdjust))return;const a=document.querySelector(`div[class*="gdpr-cogwheel-button"][id$="${e.targetId}"]`),d=null==r?void 0:r.offsetWidth;a&&"number"==typeof d&&!isNaN(d)&&a.style.setProperty("right",String(-1*d*.2)+"px")},scaleAds:e=>{var t,n,o,i,r,a;const{adScaleConfig:d,pageContext:{deviceType:s}}=f.get();if(!(null==d?void 0:d.enabled))return;if(et(e,Pe))return;const l=null!==(t=d.adsToBeScaled[s])&&void 0!==t?t:[],c=Ie(e.targetId.split("-")[0]);if(!l.includes(c))return;const u=null!==(o=null===(n=d.offset)||void 0===n?void 0:n[c])&&void 0!==o?o:0,p=document.getElementById(e.targetId),v=null!==(i=null==p?void 0:p.offsetWidth)&&void 0!==i?i:window.screen.width,g=null!==(a=null===(r=null==p?void 0:p.parentElement)||void 0===r?void 0:r.offsetWidth)&&void 0!==a?a:window.screen.width;qt(e,(v<g?v:g)-u)}});const Dt={adRequested:()=>{},adAvailable:e=>{},adLoaded:e=>{const t=window.screen.width||window.innerWidth;980===e.width&&t<980&&"native"!==e.adType&&((e,t)=>{qt(e,t);const n=document.querySelector(`#${e.targetId}`);n&&(n.style.minWidth="100vw")})(e,t)},adNoBid:e=>{},adError:(e,t)=>{},adCollapse:()=>{},adRequestFailure:e=>{},adBadRequest:e=>{},adLoadedMediated:e=>{},adNoBidMediated:e=>{}},Rt={SVD:"svd",VG:"vg",AFTENPOSTEN:"aftenposten",SA:"sa",BT:"bt",AFTONBLADET:"aftonbladet",E24:"e24",MINMOTE:"minmote",PENT:"pent",GODT:"godt",TEK:"tekno",KLART:"klart",TVNU:"tvnu",POLARIS:"polaris",KOKET:"koket",TV4:"tv4",FOTBOLLSKANALEN:"fotbollskanalen",OMNI:"omni",MTV:"mtv"},zt={publisherClassName:Rt.GODT,fullWidthFormatClassName:"netboard"},Ut=864e5,Wt=(()=>{const e=e=>{const t=window.localStorage.getItem(e);if(!t)return null;try{return JSON.parse(t)}catch(e){return c("Error with parsing localStorage data"),null}},t=(e,t)=>{window.localStorage.setItem(e,JSON.stringify(t))};return{get:e,set:t,setWithTimestamp:(e,n,o=Ut)=>{const i={data:n,expirationTime:(new Date).getTime()+o};t(e,JSON.stringify(i))},getByTimestamp:(t,n=Ut)=>{const o=e(t);if(!o)return null;if(!n)return o;try{const{expirationTime:e,data:t}=JSON.parse(o);return(new Date).getTime()<=e?t:null}catch(e){return c("Error with parsing localStorage data"),null}}}})(),Ht="glimrTags",Vt=["glwe_","glwet_"],Kt={geofenceTags:[],geoTags:[],weatherTags:[]},Gt=(...e)=>H(void 0,[...e],void 0,function*(e=f.get()){const{tcf:t,pageContext:{isMobileApp:n,countryCode:o}={}}=e;if(null==t?void 0:t.schibstedConsentToPayEnabled){return yield at(t,n,o,"glimr")}const{getConsentAsync:i}=rt(t,0,o);return yield i()}),Xt=()=>H(void 0,void 0,void 0,function*(){const{glimr:e}=f.get();if(!(yield Gt())||!(null==e?void 0:e.enabled))return void c("No consent for glimr data fetching.");const t=yield(n=500,H(void 0,void 0,void 0,function*(){return yield Promise.race([H(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)=>{Wt.setWithTimestamp(Ht,{tags:e,tagMappings:t}),n(!0)})})}catch(e){c(`Error during getting glimr data: ${e}`)}else c("Timeout (500ms) while loading glimr package. Skipping glimr data fetching.",{glimr:t})}),Jt={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"},Yt=e=>Vt.some(t=>e.startsWith(t)),Qt=e=>e.startsWith("glgc_"),Zt=e=>e.startsWith("glci_"),en=e=>!Yt(e)&&!Qt(e),tn=(e,t)=>H(void 0,void 0,void 0,function*(){const{addPublisherToGeo:n}=t||{},{glimr:o,pageContext:{countryCode:i}={}}=e,r=yield Gt(e);if(!(null==o?void 0:o.enabled)||!r)return c("No consent for getting glimr tags."),{};const a=w(i),d=nn(e,Boolean(n));return{[`${a}-geo`]:d.geoTags,[`${a}-weather`]:d.weatherTags,[`${a}-geofence`]:d.geofenceTags}}),nn=(e,t)=>{const n=on();if(!n)return Kt;const o=((e=[])=>e.filter(Yt))(n),i=((e=[])=>e.filter(Qt))(n),r=((e=[],t,n)=>{var o;const i=e.filter(en);if(n&&t){const{publisher:e}=null!==(o=t.pageContext)&&void 0!==o?o:{},n=Jt[e]||e;i.push(n)}return i})(n,e,t);return{geoTags:r,geofenceTags:i,weatherTags:o}},on=()=>{const e=Wt.getByTimestamp(Ht);return e&&"string"!=typeof e?null==e?void 0:e.tags:null},rn=()=>{var e;return((e=[])=>e.filter(Zt))(null!==(e=on())&&void 0!==e?e:[])},an=()=>(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),dn=()=>(window.relevantDigital||(window.relevantDigital={cmd:[]}),window.relevantDigital),sn=(e={},t)=>{const{prebid:{externalUidInAuctionEnabled:n,forwardGlimrTags:o=!1}={},pageContext:{countryCode:i}}=f.get(),r=[`${w(i)}-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",...o?r:[]],d=Object.fromEntries(Object.entries(e).filter(([e])=>a.includes(e))),s=t&&n?{id:t}:{};return{ortb2:Object.assign({site:{ext:{data:d}}},s)}},ln="advertory:ppids-cache",cn={[b.SE]:`SCH${b.SE.toUpperCase()}-EnvHash`,[b.NO]:`SCH${b.NO.toUpperCase()}-EnvHash`},un={[b.SE]:`SCH${b.SE.toUpperCase()}-UserHash`,[b.NO]:`SCH${b.NO.toUpperCase()}-UserHash`},pn={[b.SE]:`sch${b.SE}-envhash-v3`,[b.NO]:`sch${b.NO}-envhash-v3`},vn={[b.SE]:`sch${b.SE}-userhash-v3`,[b.NO]:`sch${b.NO}-userhash-v3`},gn={[b.SE]:`'sch${b.SE}-iosid-v3'`,[b.NO]:`'sch${b.NO}-iosid-v3'`},hn={[b.SE]:`sch${b.SE}-androidid-v3`,[b.NO]:`sch${b.NO}-androidid-v3`},mn={[b.SE]:"sdrn:schibsted.com:user",[b.NO]:"sdrn:spid.no:user"};class fn{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:o})=>{t.append(e,`${o}-${n}`)}),t}}const yn=new class{constructor(){this.ppid1=null,this.ppid2=null}processPPIDs(e){return H(this,arguments,void 0,function*(e,t=1e4){var n,o;const i=yield Promise.race([new Promise(e=>{setTimeout(()=>e({xandr:{ppId1:"",ppId2:""}}),t)}),e.instance.getAdvertisingIdentifiers()]);this.setPPIDs(null===(n=i.xandr)||void 0===n?void 0:n.ppId1,null===(o=i.xandr)||void 0===o?void 0:o.ppId2)})}getPPIDs(){var e,t;return null!==this.ppid1&&null!==this.ppid2||c("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:""}},bn=new class{constructor(){this.ppid1=null,this.ppid2=null,this.idfv=null,this.anId=null}processPPIDs(e,t){return H(this,void 0,void 0,function*(){var n,o,i,r,a,d,s,l,c,u,p;const v=Wt.get(ln),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===(o=g.idfv)||void 0===o?void 0:o.plain,null===(i=g.anId)||void 0===i?void 0:i.plain),void this.setPPIDs(null!==(r=c.userId)&&void 0!==r?r:"",null!==(a=c.environmentId)&&void 0!==a?a:"",null===(d=g.idfv)||void 0===d?void 0:d.plain,null===(s=g.anId)||void 0===s?void 0:s.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||c("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,o){this.ppid1=null!=e?e:"",this.ppid2=null!=t?t:"",this.idfv=null!=n?n:null,this.anId=null!=o?o:null}shouldHash(e,t){var n,o;if(!e)return!0;for(const i in e){if((null===(n=e[i])||void 0===n?void 0:n.plain)!==(null===(o=t[i])||void 0===o?void 0:o.plain))return!0}return!1}cachePPIDs(e,t,n,o){const i=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}}:{}),o?{anId:{plain:o}}:{});Wt.set(ln,i)}hashPPIDs(e,t){return H(this,void 0,void 0,function*(){try{const n=new Headers({"Content-Type":"application/json"});return yield ee.post(t,n,e)}catch(e){return c("Error with hashing PPIDs",e),null}})}getNewPPIDs(e,t){return H(this,arguments,void 0,function*({clientId:e,instance:t},n){const o=yield((e,t)=>H(void 0,void 0,void 0,function*(){const n=yield e.getUserId();return n?`${mn[t]}:${n}`:null}))(t,n),i=yield(r=t,H(void 0,void 0,void 0,function*(){const e=yield r.getEnvironmentId();return e?`sdrn:schibsted:environment:${e}`:null}));var r;const a=window.advertory_idfv,d=window.advertory_anId;return Object.assign(Object.assign({clientId:{plain:e},userId:{plain:o},environmentId:{plain:i},trackerType:{plain:"Advertory"},trackerVersion:{plain:"1.0.0"}},a?{idfv:{plain:a}}:{}),d?{anId:{plain:d}}:{})})}createHasherPayload({clientId:e,trackerType:t,trackerVersion:n,userId:o,environmentId:i}){return{clientId:e.plain,trackerType:t.plain,trackerVersion:n.plain,userId:o.plain,environmentId:i.plain}}},wn=e=>H(void 0,void 0,void 0,function*(){const{pulse:t,tcf:n,pageContext:{countryCode:o,isMobileApp:i}}=e;if(!(yield at(n,i,o,"setXandrPPIDs")))return;if(!t)return;(yield Promise.allSettled([yn.processPPIDs(t,null==n?void 0:n.timeout),bn.processPPIDs(t,o)])).forEach((e,t)=>{if("rejected"===e.status){c(`Cannot fetch PPIDs v${t+2}`,e.reason)}})}),xn=e=>{const{ppid1:t,ppid2:n}=yn.getPPIDs(),{ppid1:o,ppid2:i,idfv:r,anId:a}=bn.getPPIDs();return{userIds:[{type:"extendedIDs",eids:(new fn).add(n,cn[e]).add(t,un[e]).add(i,pn[e]).add(o,vn[e]).add(r,gn[e]).add(a,hn[e]).buildEids()}]}},kn=()=>{const{ppid1:e,ppid2:t}=yn.getPPIDs();return{"aa-sch-schuserhash":e?"1":"0","aa-sch-schenvhash":t?"1":"0"}},Cn=e=>{const{ppid1:t,ppid2:n}=yn.getPPIDs(),{ppid1:o,ppid2:i,idfv:r,anId:a}=bn.getPPIDs();if(!n)return{};return{userSync:{userIds:[{name:"pubProvidedId",params:{eids:(new fn).add(n,cn[e]).add(t,un[e]).add(i,pn[e]).add(o,vn[e]).add(r,gn[e]).add(a,hn[e]).buildRyEids()}}]}}},In=e=>{const{ppid1:t,ppid2:n}=yn.getPPIDs(),{ppid1:o,ppid2:i}=bn.getPPIDs();return(new fn).add(n,cn[e]).add(t,un[e]).add(i,pn[e]).add(o,vn[e]).buildRyEids()},Tn=e=>H(void 0,void 0,void 0,function*(){const{ppid1:t,ppid2:n}=yn.getPPIDs(),{ppid1:o,ppid2:i}=bn.getPPIDs(),r=(new fn).add(n,cn[e]).add(t,un[e]).add(i,pn[e]).add(o,vn[e]);return yield new Promise(e=>{e(r.buildVideoEids())})}),Sn=(e,...t)=>H(void 0,[e,...t],void 0,function*(e,{timeout:t}={timeout:1e3}){document.querySelector(`script[src="${e}"]:not([type="module"])`)||(yield new Promise((n,o)=>{const i=document.createElement("script");i.async=!0,i.src=e;const r=()=>{d(),n()},a=()=>{d(),o(new Error(`Failed to load ${e}`))},d=()=>{i.removeEventListener("load",r),i.removeEventListener("error",a),clearTimeout(s)};i.addEventListener("load",r),i.addEventListener("error",a);const s=setTimeout(()=>{d(),o(new Error(`Loading script timed out: ${e}`))},t);document.head.appendChild(i)}).catch(e=>{console.error(e)}))}),En="advertory-fullscreen-scroll",An="advertory-fullscreen-scroll-wrapper",On="fullscreen-scroll-in-screen",Pn="in-screen",jn=e=>e.includes("snoap.no"),$n=e=>{var t,n,o,i,r;return!!(null===(r=null===(i=null===(o=null===(n=null===(t=window.apntag)||void 0===t?void 0:t.requests)||void 0===n?void 0:n.tags[e])||void 0===o?void 0:o.adResponse)||void 0===i?void 0:i.ads[1])||void 0===r?void 0:r.rtb)},Ln=vt([],()=>{const e=({width:e,height:t})=>{var n;const o=null===(n=document.querySelector("#sf_align"))||void 0===n?void 0:n.querySelector("div");if(!o)return;const{clientWidth:i,clientHeight:r}=o,a=e/i,d=t/r;o.style.transform=`scale(${a},${d})`,o.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}),_n=e=>{const t=vt([],()=>{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 o=n.contentDocument.createElement("style");o.textContent="\n #image {\n background-size: cover !important;\n }\n ",new MutationObserver((e,t)=>{n.contentDocument&&(n.contentDocument.head.appendChild(o),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},Nn=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},qn=[],Fn={},Mn=(e,t)=>{var n;const o=(null===(n=null==t?void 0:t.options)||void 0===n?void 0:n.fadingHeaderEnabled)||!1,i=new IntersectionObserver(e=>Bn(e,o),{}),r=Rn(e);i.observe(e),o&&(Fn[r]=Wn(e,null==t?void 0:t.options))},Bn=(e,t)=>{e.forEach(({target:e,isIntersecting:n})=>{const o=Rn(e);n?(Dn(o,n),zn(e,o,t)):(Dn(o,n),Un(e,o,t))})},Dn=(e,t)=>{var n,o;const i=null===(n=document.getElementById(e))||void 0===n?void 0:n.querySelector("iframe");if(!i)return;const r=t?"showFullscreen":"hideFullscreen";null===(o=i.contentWindow)||void 0===o||o.postMessage(`advertory:${r}-${e}`,"*")},Rn=e=>{var t;return null===(t=e.children[0])||void 0===t?void 0:t.id},zn=(e,t,n)=>{e.classList.add(Pn),document.body.classList.add(On),window.dispatchEvent(new CustomEvent("advertory:fullscreenScrollInView")),qn.includes(t)||qn.push(t),n&&window.addEventListener("scroll",Fn[t],{passive:!0})},Un=(e,t,n)=>{qn.includes(t)&&(n&&window.removeEventListener("scroll",Fn[t]),document.body.classList.remove(On),e.classList.remove(Pn),window.dispatchEvent(new CustomEvent("advertory:fullscreenScrollNotInView")))},Wn=(e,t={fadingHeaderEnabled:!1,headerSelectors:[".js-masthead"],skyscraperSelectors:[".skyscraper_r"],headerZIndex:3})=>{const{headerSelectors:n=[".js-masthead"],skyscraperSelectors:o=[".skyscraper_r"],headerZIndex:i=3}=t,r=[],a=[];return n.forEach(e=>{var t;const n=null!==(t=document.querySelector(e))&&void 0!==t?t:document.querySelector("header");n&&r.push(n)}),o.forEach(e=>{const t=document.querySelector(e);t&&a.push(t)}),()=>{r.length&&Hn(e,r,i,0),a.length&&Hn(e,a,i,40)}},Hn=(e,t,n,o)=>{const i=e.offsetHeight,r=window.scrollY,a=e.getBoundingClientRect().top+r;t.forEach(e=>{const t=e.offsetHeight;let d;d=a>r?(a-r)/t-o:(r+t-(a+i))/t;const s=d<=0;e.style.visibility=s?"hidden":"",e.style.zIndex=s?"":n.toString(),e.style.pointerEvents=s?"none":"all",e.style.opacity=d.toString()})};function Vn(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}Vn('body.fullscreen-scroll-in-screen{overflow-x:hidden}.advertory-fullscreen-scroll-wrapper{visibility:hidden;overflow:visible;width:100vw !important;height:var(--advertory-fullscreen-scroll-vh, 100vh) !important;position:relative;margin:var(--advertory-fullscreen-scroll-wrapper-margin);z-index:1;display:block !important;min-height:250px;padding:0 !important;clip-path:polygon(0 0, 100vw 0, 100vw 100dvh, 0 100dvh);-webkit-clip-path:polygon(0 0, 100vw 0, 100vw 100dvh, 0 100dvh);flex-shrink:0}.advertory-fullscreen-scroll-wrapper>div{position:fixed;top:0;left:0;height:var(--advertory-fullscreen-scroll-vh, 100vh) !important;width:100vw !important;overflow:hidden}html[data-app-platform=iOS] .advertory-fullscreen-scroll-wrapper>div{height:calc(var(--advertory-fullscreen-scroll-vh, 100vh) - env(safe-area-inset-top) + var(--advertory-ios-safe-area-top-fix, 0px) - env(safe-area-inset-bottom)) !important;top:unset !important;bottom:env(safe-area-inset-bottom) !important}.advertory-fullscreen-scroll-wrapper>div>iframe{height:inherit !important;width:inherit !important;display:none !important}.advertory-fullscreen-scroll-wrapper.in-screen{visibility:visible;overflow:visible;width:100vw !important}.advertory-fullscreen-scroll-wrapper.in-screen>div>iframe{display:block !important}.advertory-fullscreen-scroll-wrapper.in-screen:before{content:"";width:100vw;height:150dvh;position:relative !important;display:block;transform:translateX(-50%);overflow:visible;z-index:1;left:50%;top:-150dvh;padding:0 !important}.advertory-fullscreen-scroll-wrapper.in-screen:after{content:"";width:100vw;height:150dvh;position:relative !important;display:block;transform:translateX(-50%);overflow:visible;z-index:1;left:50%;top:-50dvh}.advertory-fullscreen-scroll{position:fixed;top:var(--advertory-fullscreen-scroll-top, 0px);left:var(--advertory-fullscreen-scroll-left, 0px);width:var(--advertory-fullscreen-scroll-vw, 100vw);height:var(--advertory-fullscreen-scroll-vh, 100vh);overflow:hidden}.advertory-fullscreen-scroll:not([data-ad-label-custom])::before{text-transform:lowercase}.advertory-fullscreen-scroll::before{content:attr(data-ad-label);box-sizing:border-box;position:fixed;top:var(--advertory-political-box-offset, 0px)}html[data-app-platform=iOS] .advertory-fullscreen-scroll::before{top:calc(env(safe-area-inset-top) - var(--advertory-ios-safe-area-top-fix, 0px) + var(--advertory-political-box-offset, 0px)) !important}.advertory-fullscreen-scroll::before{left:calc(50vw - 628px);width:calc(100% - 36px);max-width:1250px;text-align:left;background-color:hsla(0,0%,100%,.6);color:#212121;font-family:Ester Blenda,Arial,sans-serif;font-size:11px;font-weight:400;font-style:normal;line-height:1;margin:16px 2px;padding:10px;z-index:1;visibility:inherit !important}@media screen and (max-width: 1290px){.advertory-fullscreen-scroll::before{left:16px}}.advertory-fullscreen-scroll[data-move-cogwheel-to-the-left=true]>div[role=button]{left:calc(50vw - 623px);right:unset}@media screen and (max-width: 1290px){.advertory-fullscreen-scroll[data-move-cogwheel-to-the-left=true]>div[role=button]{left:22px;right:unset}}.advertory-fullscreen-scroll[data-move-cogwheel-to-the-left=true]::before{padding-left:32px}.advertory-fullscreen-scroll>div[id*=utif]{display:block;width:var(--advertory-fullscreen-scroll-vw, 100vw) !important;height:var(--advertory-fullscreen-scroll-vh, 100vh) !important}html[data-app-platform=iOS] .advertory-fullscreen-scroll>div[id*=utif]{height:calc(var(--advertory-fullscreen-scroll-vh, 100vh) - env(safe-area-inset-top) + var(--advertory-ios-safe-area-top-fix, 0px) - env(safe-area-inset-bottom)) !important}.advertory-fullscreen-scroll>div[id*=utif]{overflow:hidden}.advertory-fullscreen-scroll>div[id*=utif]>iframe{display:block;height:inherit !important;width:inherit !important}.advertory-fullscreen-scroll>div[role=button]{z-index:2;opacity:1;background:rgba(0,0,0,0) !important;left:unset;position:fixed !important;right:calc(50vw - 623px);top:calc(19px + var(--advertory-political-box-offset, 0px)) !important;width:26px !important;height:26px !important}html[data-app-platform=iOS] .advertory-fullscreen-scroll>div[role=button]{top:calc(env(safe-area-inset-top) - var(--advertory-ios-safe-area-top-fix) + 19px + var(--advertory-political-box-offset, 0px)) !important}@media screen and (max-width: 1290px){.advertory-fullscreen-scroll>div[role=button]{right:22px}}');const Kn="left",Gn={no:{adText:"ANNONSE",adFrom:"ANNONSE FRA",adContent:"ANNONSØRINNHOLD",adContentFrom:"ANNONSØRINNHOLD FRA",sponsorstripeInfoOpenButtonLabel:"Sponset innhold - Klikk for detaljer",sponsorstripeInfoCloseButtonLabel:"Lukk",sponsorstripeInfoText:"Annonsøren som presenterer denne saken har betalt for profilering av logoen i artikler som omhandler denne innholdskategorien",readMoreLabel:"Les mer"},se:{adText:"ANNONS",adFrom:"ANNONS FRÅN",adContent:"EXTERN LÄNK",adContentFrom:"EXTERN LÄNK FRÅN",sponsorstripeInfoOpenButtonLabel:"Sponsrat innehåll - Klicka för mer information",sponsorstripeInfoCloseButtonLabel:"Nära",sponsorstripeInfoText:"Annonsören som presenterar den här artikeln har betalat för att få sin logotyp profilerad i artiklar som handlar om den här innehållskategorin",readMoreLabel:"Läs mer"}};let Xn=null;const Jn=(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=`(${Ln})()`,e+t.outerHTML})(n),n=Nn(n),n=(e=>{if(jn(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=_n(n)),(e=>e.includes("de17a"))(n)&&(n=(e=>jn(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)),jn(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)),$n(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},Yn=()=>{Xn=null;const e=window.visualViewport,t=e?e.height:window.innerHeight,n=e?e.width:window.innerWidth,o=e?e.offsetLeft:0,i=document.documentElement;i.style.setProperty("--advertory-fullscreen-scroll-vh",`${t}px`),i.style.setProperty("--advertory-fullscreen-scroll-vw",`${n}px`),i.style.setProperty("--advertory-fullscreen-scroll-left",`${o}px`)},Qn=()=>{Xn||(Xn=window.requestAnimationFrame(Yn))},Zn=(e,t)=>{var n,o,i,r,a;const{pageContext:{countryCode:d,deviceType:s}}=f.get(),{targetId:l}=e,c=null==t?void 0:t.options;document.documentElement.style.setProperty("--advertory-ios-safe-area-top-fix",null!==(n=null==c?void 0:c.iosSafeAreaTopFix)&&void 0!==n?n:"0px"),((e,t)=>{var n;const{articlesContainerWidth:o=1302,backgroundColor:i="#fff",foregroundColor:r="#fff",margin:a,beforeContentValue:d=""}=e,s=null!==(n=null==a?void 0:a[t])&&void 0!==n?n:"16px 0",l=o/2,c=document.createElement("style");c.innerHTML=`\n :root {\n --background: linear-gradient(\n to right,\n ${i} 0px,\n ${i} calc(50% - ${l}px),\n ${r} calc(50% - ${l}px),\n ${r} calc(50% + ${l}px),\n ${i} calc(50% + ${l}px),\n ${i} 100%\n ) !important;\n \n --advertory-fullscreen-scroll-wrapper-margin: ${s};\n }\n \n .advertory-fullscreen-scroll-wrapper {\n ${d&&"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: '${d}' !important;\n }`,c.id="ad-fullscreen-scroll-wrapper-style",document.head.appendChild(c)})(null!==(o=null==c?void 0:c.overlayStyles)&&void 0!==o?o:{},s);const u=document.getElementById(l),p=null==u?void 0:u.parentElement;if(!u||!p)return;Mn(p,t),u.className=En,Mn(p,t),u.className="advertory-fullscreen-scroll";const v=et(e,Oe)?"absolute":"fixed";u.style.position=v,p.className=An,p.dataset.showTagSubscribeId=l,u.setAttribute("data-ad-label",null!==(i=null==c?void 0:c.annonsLabel)&&void 0!==i?i:Gn[d].adText),(null==c?void 0:c.annonsLabel)&&(u.dataset.adLabelCustom="true"),(null==c?void 0:c.cogwheelPosition)===Kn&&(u.dataset.moveCogwheelToTheLeft="true"),Qn(),window.addEventListener("resize",Qn),null===(r=window.visualViewport)||void 0===r||r.addEventListener("resize",Qn),null===(a=window.visualViewport)||void 0===a||a.addEventListener("scroll",Qn)},eo=e=>{if(!(null==e?void 0:e.classList.contains(En)))return;e.classList.remove(En),e.removeAttribute("style"),e.removeAttribute("data-ad-label"),e.removeAttribute("data-ad-label-custom");const t=e.parentElement;(null==t?void 0:t.classList.contains(An))&&(t.classList.remove(An),t.classList.remove(Pn))};var to=Object.freeze({__proto__:null,createFullscreenScrollAd:Zn,modifyFullscreenScrollAd:({targetId:e})=>{const t=(e=>{var t;const{requests:n}=window.apntag,o=$n(e)?1:0;return null===(t=null==n?void 0:n.tags[e].adResponse.ads[o].rtb)||void 0===t?void 0:t.banner.content})(e);if(!t)return;((e,t)=>{const{requests:n}=window.apntag,o=$n(e)?1:0,i=null==n?void 0:n.tags[e].adResponse.ads[o].rtb;i&&(i.banner.content=t)})(e,Jn(t,e))},undoFullscreenScrollContainer:eo});const no=e=>{var t;!document.querySelector(`#gdprAdTransparencyCogWheelButton-${e}`)&&(null===(t=window.gdpr)||void 0===t?void 0:t.setupButton)&&window.gdpr.setupButton(e)},oo=(e,t,n)=>{var o,i,r,a;const d=document.createElement("div");d.id=`${e}-button`,t.appendChild(d);(null===(i=null===(o=window.apntag.requests)||void 0===o?void 0:o.tags[e])||void 0===i?void 0:i.adResponse)||(null!==(r=(a=window.apntag).requests)&&void 0!==r||(a.requests={tags:{}}),window.apntag.requests.tags[e]=Object.assign(Object.assign({},window.apntag.requests.tags[e]),{adResponse:{ads:[{creative_id:n}]}})),no(e);const s=d.firstElementChild;s&&t.insertBefore(s,d),d.remove()},io="ad-loaded",ro=(e,t,n)=>H(void 0,void 0,void 0,function*(){yield ge,yield he;new IntersectionObserver((t,o)=>{t.filter(({isIntersecting:e})=>e).forEach(()=>{n(),o.unobserve(e),o.disconnect()})},{rootMargin:`${t}px 0px ${t}px 0px`}).observe(e)}),ao=()=>H(void 0,void 0,void 0,function*(){const{prebid:e,tcf:t,pageContext:{countryCode:n,isMobileApp:o,deviceType:i},fullscreenScroll:r,appearanceConfig:a,placements:d}=f.get();if(!(null==e?void 0:e.enabled))return;const{initNativeAd:s}=f.getHandlers(),{getConsentAsync:l}=rt(t,0,n),u=yield l(),p=(()=>{let e=!1,t=[];const n={relevantCb:{timeout:1e3},auctionCb:{timeout:2e3}};return{getCancel:()=>e,setCancel:t=>{e=t},events:n,failsafeOnTimeout:o=>{const i=an(),{prebid:{relevantCallbackTimeout:r}={}}=f.get(),a="relevantCb"===o&&r?r:n[o].timeout,d=setTimeout(()=>{!n[o].done&&!e&&(console.warn(`Doing failsafe loadTags() call after waiting too long for '${o}'`),e=!0,i.loadTags&&i.loadTags())},a);t.push(d)},cleanup:()=>{t.forEach(e=>clearTimeout(e)),t=[],e=!1,n.relevantCb.done=!1,n.auctionCb.done=!1}}})(),v=an(),g=(()=>{const{requests:{user:e={userIds:[]},keywords:t={}}={}}=an();return{user:e,keywords:t}})();p.failsafeOnTimeout("relevantCb");const{user:{externalUid:h=""}={},keywords:m}=g;(()=>{const e=dn();return e.cmd||(e.cmd=[]),e.cmd})().push(()=>{c("prebid relevantYieldQueue callback fired - RY took over");if(p.getCancel()||!v.loadTags)return c("core loadTags() call was cancelled",{cancel:p.getCancel(),apnTagLoadTags:!v.loadTags,condition:"or"}),void p.cleanup();const t=dn();p.events.relevantCb.done=!0,p.failsafeOnTimeout("auctionCb");const l=u?{gdpr:{cmpApi:"iab",timeout:8e3}}:{cmpApi:"none"};c("prebid consentManagement",l),t.addPrebidConfig(Object.assign(Object.assign({consentManagement:l,enableSendAllBids:!1},Cn(n)),sn(m,h))),c("core add prebid config",Object.assign(Object.assign({consentManagement:l,enableSendAllBids:!1},Cn(n)),sn(m,h))),t.loadPrebid({configId:e.configId,manageAdserver:!1,collapseEmptyDivs:!1,collapseBeforeAdFetch:!1,noGpt:!0,noSlotReload:!0,loadUnknownSlots:!0,apntagCalls:{showTag:()=>{},loadTags:e=>{c("prebid auctionCb loadTags called by RY - prebid hands off to Xandr",{targetIds:e,cancelled:p.getCancel()}),p.getCancel()||(p.events.auctionCb.done=!0,v.loadTags(e)),p.cleanup()}},customNativeRender:e=>{so(e,s)},directRenderFn:e=>{var t,n,s;const{settings:l,renderFn:u}=e,{bid:p,adDiv:v}=l||{};if(!v)return;const g=v.id,h=document.getElementById(g);if(!h)return;const m=null===(t=null==d?void 0:d[i])||void 0===t?void 0:t.find(e=>e.targetId===g),f=null!==(s=null!==(n=null==m?void 0:m.requestThreshold)&&void 0!==n?n:null==a?void 0:a.defaultThreshold[i])&&void 0!==s?s:0,y=Object.assign(Object.assign({},p),{targetId:g,banner:!0});c("prebid directRenderFn ad info",{targetId:g,width:null==p?void 0:p.width,height:null==p?void 0:p.height,adId:null==p?void 0:p.adId,creativeId:null==p?void 0:p.creativeId}),ro(h,f,()=>{var e;const t=u(l),n=De(y);if(c("prebid directRenderFn isFullscreenScrollAd",{targetId:g,isFullscreen:n,width:null==p?void 0:p.width,height:null==p?void 0:p.height}),n)c("prebid directRenderFn: creating fullscreen scroll container",{targetId:g}),Zn(y,r),(e=>{const t=()=>{const t=e.contentDocument;if(!(null==t?void 0:t.body))return;const n=()=>{const e=t.querySelector("iframe");if(!e)return!1;const n=()=>{var t;const n=null===(t=e.contentDocument)||void 0===t?void 0:t.querySelector(".adn-ttpa-container");n&&(n.style.setProperty("bottom","10px","important"),n.style.setProperty("top","unset","important"))};return e.addEventListener("load",n),n(),!0};if(n())return;const o=new MutationObserver(()=>{n()&&o.disconnect()});o.observe(t.body,{childList:!0,subtree:!0})};e.addEventListener("load",t),t()})(t),o&&h.style.setProperty("--advertory-political-box-offset","30px");else{c("prebid directRenderFn: NOT fullscreen scroll - undoing container",{targetId:g}),eo(h),null===(e=null==h?void 0:h.parentElement)||void 0===e||e.classList.add("advertory-direct-render");const n=t.getAttribute("width");n&&(h.style.width=`${n}px`)}h.classList.add(io),(null==p?void 0:p.creativeId)&&oo(g,h,Number(null==p?void 0:p.creativeId))})}}),c("core load prebid",{configId:e.configId,manageAdserver:!1,collapseEmptyDivs:!1,collapseBeforeAdFetch:!1,noGpt:!0,noSlotReload:!0,loadUnknownSlots:!0,apntagCalls:{showTag:()=>{},loadTags:e=>{p.getCancel()||(p.events.auctionCb.done=!0,v.loadTags(e))}},customNativeRender:e=>{so(e,s)},directRenderFn:()=>{}})})}),so=(e,t)=>{var n;const{divId:o,native:i,bid:r}=e,a=document.querySelectorAll(`[id^=${o}]`)[0],d=`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,d);const s=null===(n=a.getElementsByTagName("iframe")[0])||void 0===n?void 0:n.contentWindow;null==t||t({native:i,targetId:d},f.get()),null==s||s.postMessage(JSON.stringify({message:"Prebid Response",ad:"\x3c!-- nothing --\x3e",adId:r.adId}),"*")},lo=e=>`externalImpId:'${e}'`,co=(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,uo=e=>{var t;const{pageSetup:{tag:{forwardExternalImpId:n=!1}={}}={},pulse:o}=f.get(),{targetId:i,sizes:r,keywords:a,allowedFormats:d,invCode:s,ssaNativeAdEnabled:l=!1,nativeCustomProperties:u,safeframeConfig:p,dynamicSizeWidthCheck:v=!1,globalPlacementId:g}=(e=>{var t;if(!e.takeoverCookieCapForSharedPlacement||bt())return e;const n=null===(t=e.keywords)||void 0===t?void 0:t["no-sno-adformat"],o=Array.isArray(n)?n.filter(e=>e!==ut):n,i=Object.assign(Object.assign({},e.keywords),n&&{"no-sno-adformat":o}),r=e.sizes.filter(([e,t])=>4!==e||4!==t);return Object.assign(Object.assign({},e),{sizes:r,keywords:i})})(e),h=Object.assign({invCode:s,sizes:r,targetId:i,keywords:co(a,l),allowedFormats:d,dynamicSizeWidthCheck:v,globalPlacementId:g},p&&{safeframeConfig:p}),m=(e=>{var t,n;const o=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 o?(c("Pulse state pageViewId is:",o),o):(c("Pulse state does not contain field pageViewId or it is empty"),"")})(o);n&&m&&(c("External Impression ID assigned to defineTag:",lo(m)),h.externalImpId=lo(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,o])=>((null==e?void 0:e.includes(n))&&(t[n]=o),t),{customTitle1:{required:!1},customTitle2:{required:!1},customTitle3:{required:!1},customTitle4:{required:!1},customDisplayUrl2:{required:!1},title:{required:!1},body:{required:!1},image:{required:!1},icon:{required:!1},sponsoredBy:{required:!1},cta:{required:!1},clickUrl:{required:!1},desc2:{required:!1},displayUrl:{required:!1},description:{required:!1}}))(u);return(null===(t=e.allowedFormats)||void 0===t?void 0:t.includes("native"))&&(h.native=y),h},po=e=>!e.includes("takeover")||bt(),vo=e=>{if(!e)return e;const{pageContext:{countryCode:t}}=f.get(),n=w(t),o=e[`${n}-targetid`],i=o?U(o[0]):"";return Object.assign(Object.assign({},e),o&&{[`${n}-targetid`]:[i]})},go=e=>{const{pageContext:{countryCode:t}}=f.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"]})},ho=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 o=n.split(",")[0].split(":")[0],i=e.find(e=>e.invCode===o),r=document.querySelector(`[id^=${null==i?void 0:i.targetId}]`);r&&r.scrollIntoView({behavior:"smooth",block:"start"})})(e)},mo=e=>{const{source:t}=e;return"csm"===t},fo=e=>({rootMargin:`${e}px 0px ${e}px 0px`}),yo=new Map,bo=["no-stavangeraftenblad","sa","no-aftenposten","aftenposten","no-bergenstidende","bt"],wo=".brandstudio-premium-content-widget",xo=({adWrapper:e,placementContainer:t})=>t.offsetHeight+(({adWrapper:e})=>{const{paddingTop:t,paddingBottom:n}=getComputedStyle(e);return parseFloat(t)+parseFloat(n)})({adWrapper:e}),ko=({adWrapper:e,placementContainer:t})=>{const n=xo({adWrapper:e,placementContainer:t});var o;null==e||e.style.setProperty("height",`${n}px`),se(o=t),o.innerHTML=""},Co=e=>{e&&e.style.getPropertyValue("height")&&e.style.removeProperty("height")},Io=({adWrapper:e,placementContainer:t})=>{const{pageContext:{publisher:n}}=f.get(),o=bo.includes(n)&&Boolean(t.closest(wo));const i=o?t.closest(wo):null,r=new MutationObserver(t=>{t.forEach(({addedNodes:t})=>{t.forEach(t=>{const n=t instanceof HTMLElement,a=n&&t.matches("iframe, article")&&e;if(!n||!o&&!a||o&&!i)return;if(a)return Co(e),void r.disconnect();const d=t.closest('[style*="height"]'),s=i;d&&s.contains(d)?Co(d):s.hasAttribute("style")&&Co(s),r.disconnect()})})});try{r.observe(t,{childList:!0,subtree:!0})}catch(e){r.disconnect()}},To=(e,t,n,o,i,r)=>{var a;const d=performance.now(),s=null!==(a=yo.get(t))&&void 0!==a?a:0,l=((e,t)=>!!t&&e+t<(new Date).getTime())(o,i)&&n<0;d-s>=i&&l&&(yo.set(t,d),((e,t,n)=>{const{pageContext:{countryCode:o}}=f.get(),i=null==n?void 0:n.parentElement;i&&n&&ko({adWrapper:i,placementContainer:n}),K(()=>{e.setKeywords([t],{[`${w(o)}-adreload`]:"1"},{overrideKeyValue:!0}),e.refresh([t])})})(e,t,r))},So=(e,t,n)=>{const o=new IntersectionObserver((e,o)=>((e,t,n,o)=>{e.filter(({isIntersecting:e})=>e).forEach(e=>{const{target:i,boundingClientRect:r}=e;t(window.apntag,i.id,r.y,n,o,i)})})(e,To,t,n),fo(300));o.observe(e)},Eo=(e,t=6)=>{const n=[];for(let o=0;o<e.length;o+=t){const i=e.slice(o,o+t);n.push(i)}return n},Ao=()=>navigator&&navigator.userAgent.match(/chrome/i)?null:navigator&&navigator.userAgent.match(/apple/i),Oo=(e,t=0)=>{const n=e.getBoundingClientRect(),o=window.innerHeight;return n.bottom>-t&&n.top<o+t},Po=e=>{const{refreshConfig:{visibilityStateRefreshEnabled:t=!1}={}}=f.get();if(!t)return;const n=()=>{"visible"===document.visibilityState&&document.removeEventListener("visibilitychange",n),No(e)};"visible"!==document.visibilityState&&document.addEventListener("visibilitychange",n)},jo=(e,t,n)=>{const o=document.querySelectorAll('[data-bf-cache-refresh="true"]');for(const i of o){const o=e.find(e=>{var t,n;return e.targetId===(null===(t=i.firstElementChild)||void 0===t?void 0:t.id)&&(null===(n=e.refresh)||void 0===n?void 0:n.bfCache)}),r=null==o?void 0:o.requestThreshold;Oo(i,r)&&o&&(Y(o.targetId),n.length&&i.classList.remove(...n),No([o],t))}},$o=e=>{const{refreshConfig:{backForwardNavigationRefreshEnabled:t=!1}={},siteSpecificConfig:{classesToRemoveOnRefresh:n=[]}={},pageContext:{isMobileApp:o}}=f.get();t&&(e.forEach(({targetId:e})=>{const t=Lo(e);t&&(t.dataset.bfCacheRefresh="true")}),o?((e,t)=>{document.addEventListener("visibilitychange",()=>{"visible"===document.visibilityState&&jo(e,!0,t)})})(e,n):((e,t)=>{window.addEventListener("pageshow",n=>{const o=()=>{window.scrollY>0&&(window.removeEventListener("scroll",o),jo(e,!1,t))};n.persisted&&(Ao()?window.addEventListener("scroll",o,{passive:!0}):jo(e,!1,t))})})(e,n))},Lo=e=>{var t,n;return null!==(n=null===(t=document.querySelector(`#${e}`))||void 0===t?void 0:t.parentElement)&&void 0!==n?n:null},_o=e=>{const{targetId:t,allowedFormats:n}=e,o=(e=>{if(!e)return[];try{return JSON.parse(e.dataset.adSizes||"[]")}catch(e){return[]}})(Lo(t)),i=(e=>1===e[0]&&1===e[1])(o),r={sizes:[o],allowedFormats:i?n:n.filter(e=>"native"!==e),allowSmallerSizes:!1};return i||(r.native=void 0),r},No=(e,t=!1)=>{const{queryConfig:{batchSize:n=h}={}}=f.get(),o=e.map(({targetId:e})=>e),i=Eo(o,n);if(t)for(const t of e){const e=_o(t);window.apntag.modifyTag(t.targetId,e)}for(const e of i)K(()=>window.apntag.refresh(e))},qo=e=>{const{apntag:t,bus:n}=e,{siteEvents:o,initNativeAd:i}=f.getHandlers(),r=[];return{adRequested:()=>{n.emit("adRequested"),o.adRequested()},adAvailable:e=>H(void 0,void 0,void 0,function*(){var t,r,a,d,s,l;c("core adAvailable start",{adObj:e,isFullscreenScrollAd:De(e),isFinnBlink:Ge(e.targetId),isNativeAd:Re(e),isMediation:mo(e),isTakeoverAd:Ue(e),isCollapseAd:Ve(e),isWallpaperAd:He(e)});const u=null===(a=null===(r=null===(t=null===window||void 0===window?void 0:window.apntag)||void 0===t?void 0:t.requests)||void 0===r?void 0:r.tags[e.targetId])||void 0===a?void 0:a.adResponse.ads;if(mo(e)&&u&&(null===(d=u[1])||void 0===d?void 0:d.rtb)&&(e.banner=null===(l=null===(s=u[1])||void 0===s?void 0:s.rtb)||void 0===l?void 0:l.banner),De(e)){const{modifyFullscreenScrollAd:t}=yield Promise.resolve().then(function(){return to});t(e)}const{widescreenSwitching:p,wallpaper:v,fullscreenScroll:g}=f.get();if(Ye(e)&&(null==p?void 0:p.enabled)){const{initWidescreenSwitching:e}=yield Promise.resolve().then(function(){return id});e()}if(De(e)&&!Ge(e.targetId)){c("core adAvailable: creating fullscreen scroll container",{targetId:e.targetId,width:e.width,height:e.height,bannerWidth:e.banner&&"object"==typeof e.banner?e.banner.width:e.banner,bannerHeight:e.banner&&"object"==typeof e.banner?e.banner.height:void 0});const{createFullscreenScrollAd:t}=yield Promise.resolve().then(function(){return to});t(e,g)}if(!Re(e)||mo(e)||Ge(e.targetId)||null==i||i(e,f.get()),Ue(e)&&!Ve(e)){const{modifyTakeoverAdContent:t,createTakeoverAd:n}=yield Promise.resolve().then(function(){return Td});t(e.targetId),yield n(e)}if(He(e)&&(null==v?void 0:v.enabled)){const{initWallpaperAd:t}=yield Promise.resolve().then(function(){return N});t(()=>K(()=>window.apntag.showTag(e.targetId)),v),X.setData("wallpaper",{isAvailable:!0})}(e=>e.targetId.includes("skyscraperleft")&&!!e.banner)(e)&&X.setData("horseshoe",{isAvailable:!0}),o.adAvailable(e),yield n.emit("adRendered",{targetId:e.targetId}),c("core adAvailable stop",{adObj:e,isFullscreenScrollAd:De(e),isFinnBlink:Ge(e.targetId),isNativeAd:Re(e),isMediation:mo(e),isTakeoverAd:Ue(e),isCollapseAd:Ve(e),isWallpaperAd:He(e)})}),adLoaded:e=>H(void 0,void 0,void 0,function*(){const{refreshConfig:n,appearanceConfig:a,wallpaper:d,adScaleConfig:s,pulse:l,placements:c,pageContext:{deviceType:u,publisher:p=""}}=f.get(),v=document.getElementById(e.targetId);if(Ge(e.targetId)){const{displaySpecialFormatsForFinnFallback:t}=yield Promise.resolve().then(function(){return Od});t(e)}if(r.includes(e.targetId)&&Re(e)&&(null==i||i(e,f.get()),jt({adObj:e})),!r.includes(e.targetId)&&mo(e)&&r.push(e.targetId),Ve(e)&&R(e.targetId),Ue(e)){const{modifyTakeoverIframe:n}=yield Promise.resolve().then(function(){return Td});n(t,e.targetId)}if((e=>et(e,je))(e)){const{applyNinesixteenFormat:t}=yield Promise.resolve().then(function(){return Ld});t(e)}if((e=>et(e,Le))(e)){const{applyFullsquareFormat:t}=yield Promise.resolve().then(function(){return Ld});t(e)}if(ze(e)){const{applyFullwidthFormat:t}=yield Promise.resolve().then(function(){return Ld});t(e)}((e,t)=>{if(!(null==t?void 0:t.scrollRefreshEnabled))return;const{targetId:n}=e,o=document.querySelector(`#${n}`),i=null==o?void 0:o.parentElement;if(!i||!o)return;Io({adWrapper:i,placementContainer:o});const{delayTimeToNextRefresh:r=1e3}=t,a=(new Date).getTime();o&&"true"!==o.dataset.subscribedForRefresh&&(o.dataset.subscribedForRefresh="true",o.dataset.refresh&&So(o,a,r))})(e,n),(null==a?void 0:a.clearProbableDimensionsEnabled)&&J(e.targetId);if(X.getData("horseshoe").isAvailable&&(null==d?void 0:d.enabled)){const{adjustAdToHorseshoe:t}=yield Promise.resolve().then(function(){return N});t(e.targetId)}if(null==s?void 0:s.enabled){const{scaleAds:t,scaleAdIpadAirPortrait:n}=yield Promise.resolve().then(function(){return Bt});t(e),n(e)}if(o.adLoaded(e),(null==l?void 0:l.instance)&&l.adTrackingEnabled){const{XandrAdTracker:t}=yield Promise.resolve().then(function(){return tr}),n=new t(f.get(),e);n.trackLoad(),n.trackImpression()}no(e.targetId),v&&(v.classList.add(io),(e=>{var t,n;const{pageSectionsSelectors:o}=f.get(),i=null==o?void 0:o.mainFirstColumn,r=i?null===(t=document.querySelector(i))||void 0===t?void 0:t.clientWidth:void 0;r&&e.clientWidth>r&&(null===(n=e.parentElement)||void 0===n||n.setAttribute("data-two-column-ad-layout","true"),window.dispatchEvent(new CustomEvent("advertory:twoColumnAdLayoutApplied",{detail:{targetId:e.id}})))})(v)),jt({adObj:e}),(e=>{var t;const n=null==e?void 0:e.targetId;if(!n)return;const o=null===(t=document.querySelector(`#${n}`))||void 0===t?void 0:t.parentElement;o&&((e,t)=>{const{height:n,width:o,native:i}=e;i?t.dataset.adSizes="[1,1]":n&&o&&(t.dataset.adSizes=`[${o},${n}]`)})(e,o)})(e),window.dispatchEvent(new CustomEvent("advertory:adLoaded",{detail:{targetId:e.targetId,adFormat:$t(e)}}))}),adNoBid:e=>H(void 0,void 0,void 0,function*(){if(R(e.targetId),Ue(e)){const{handleTakeoverCookieOnAdNotShown:t}=yield Promise.resolve().then(function(){return Ot});yield t(e)}o.adNoBid(e)}),adError:(e,t)=>H(void 0,void 0,void 0,function*(){if(Ue(t)){const{handleTakeoverCookieOnAdNotShown:e}=yield Promise.resolve().then(function(){return Ot});yield e(t)}o.adError(e,t)}),adCollapse:()=>{o.adCollapse()},adRequestFailure:e=>H(void 0,void 0,void 0,function*(){R(e.targetId),o.adRequestFailure(e)}),adBadRequest:e=>H(void 0,void 0,void 0,function*(){R(e.targetId),o.adBadRequest(e)}),adLoadedMediated:e=>o.adLoadedMediated(e),adNoBidMediated:e=>{o.adNoBidMediated(e)}}};let Fo;const Mo=()=>{Fo=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=Fo,V=e=>window.apntag.anq.push(e)},Bo=()=>Fo,Do={name:"xandr",capabilities:{tagDefinition:"explicit",deferredRequest:!0,deferredRender:!0,refresh:!0},setup:()=>H(void 0,void 0,void 0,function*(){Mo(),yield Promise.allSettled([H(void 0,void 0,void 0,function*(){const{tcf:e,pageContext:{isMobileApp:t,countryCode:n}}=f.get();(yield at(e,t,n,"xandr-endpoint"))||Fo.setEndpoint("ib.adnxs-simple.com",!0)}),H(void 0,void 0,void 0,function*(){const{developerOptions:{astUrl:e}={}}=f.get();yield Sn(null!=e?e:"https://adsdk.microsoft.com/ast/ast.js")}),H(void 0,void 0,void 0,function*(){if(D())return;const{prebid:e,tcf:t,pageContext:{isMobileApp:n,countryCode:o}}=f.get(),i=yield at(t,n,o,"prebid");(null==e?void 0:e.enabled)&&i&&(yield Sn(null==e?void 0:e.prebidUrl))})])}),setTargeting:()=>H(void 0,void 0,void 0,function*(){const{pageOptions:e}=f.get(),{preparePageOptions:t}=f.getHandlers(),n=(()=>{var e,t;const{pageSetup:{pageOptions:n}={}}=f.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"]}})(),o=yield H(void 0,void 0,void 0,function*(){const{tcf:e,pageContext:{isMobileApp:t,countryCode:n}}=f.get();return(yield at(e,t,n,"page-options"))?{}:{userSync:{disabled:!0}}}),i=yield t(Object.assign(Object.assign(Object.assign({disablePsa:!0,enableSafeFrame:!0},e),{renderingManagement:Object.assign({},n)}),o));(e=>{const t=X.getData("alertoryConfigKeywords");if(Object.keys(t).length)return;const n=go(e);X.setData("alertoryConfigKeywords",n)})(i.keywords),K(()=>Bo().setPageOpts(i))}),definePlacements:e=>{const{prepareTag:t}=f.getHandlers(),n=[];(e=>{const t=["skyscraperright_1","topboard","wallpaper","skyscraperleft_1"];return e.sort((e,n)=>{const o=t.findIndex(t=>e.targetId.includes(t)),i=t.findIndex(e=>n.targetId.includes(e));return-1!==o&&-1===i?-1:-1===o&&-1!==i?1:o-i})})(e).forEach(e=>{c("xandr definePlacements",{placement:e});const o=uo(e);if(po(e.targetId)){const i=t(o),r=(e=>{const{allowedFormats:t,invCode:n,keywords:o,sizes:i}=e;return{adTypes:t,invCode:n,keywords:vo(o),sizes:i}})(i);n.push(r),K(()=>(c("xandr definePlacements - add to the queue",{placement:e,preparedTag:i}),Bo().defineTag(i)))}}),(e=>{var t,n,o;(null===(o=null===(n=null===(t=window.advertory)||void 0===t?void 0:t.alertoryConfig)||void 0===n?void 0:n.xandr)||void 0===o?void 0:o.tags)&&e.length&&window.advertory.alertoryConfig.xandr.tags.push(e)})(n)},requestPlacements:e=>H(void 0,void 0,void 0,function*(){const t=e.filter(({targetId:e})=>po(e)).map(({targetId:e})=>e);t.length&&K(()=>(c("xandr requestPlacements",{placementsIdsToLoad:t}),Bo().loadTags([...t])))}),bindEvents:e=>H(void 0,void 0,void 0,function*(){var t;yield(t={apntag:Bo(),bus:e},H(void 0,void 0,void 0,function*(){const{apntag:e}=t,n=qo(t);K(()=>{e.onEvent("adRequested",n.adRequested),e.onEvent("adAvailable",n.adAvailable),e.onEvent("adLoaded",n.adLoaded),e.onEvent("adNoBid",n.adNoBid),e.onEvent("adError",n.adError),e.onEvent("adCollapse",n.adCollapse),e.onEvent("adRequestFailure",n.adRequestFailure),e.onEvent("adBadRequest",n.adBadRequest),e.onEvent("adLoadedMediated",n.adLoadedMediated),e.onEvent("adNoBidMediated",n.adNoBidMediated)})}))})},Ro=(e,t,n)=>{const o=document.getElementById(`div_utif_${e}`);if(!o)return;const{apntag:i}=window,[r,a]=t;if(!o.dataset.lockedsize&&a&&r)o.style.width=`${r}px`,o.style.height=`${a}px`,n&&(i.resizeAd(o.id,[r,a]),o.dataset.lockedsize="true",o.dataset.lockedwidth=r.toString(),o.dataset.lockedheight=a.toString());else if(null==o?void 0:o.dataset.lockedsize){const{lockedwidth:e,lockedheight:t}=o.dataset;e&&t&&i.resizeAd(o.id,[e,t])}},zo="collapseAd",Uo="hideAd",Wo="resizeAd",Ho="wallpaperImageUrl",Vo="wallpaperColor",Ko="velvet",Go=[Wo,Ho,Vo,zo,Uo,Ko];let Xo;const Jo=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(j(e)){const t=e.replace(/^wallpaper:url:/,"");return{name:Ho,wallpaperImageUrl:t}}if($(e)){const t=e.replace(/^wallpaper:color:/,"");return{name:Vo,wallpaperColor:t}}if(e.startsWith(zo)||e.startsWith(Uo)){const t=e.split(":")[1];return{name:zo,targetId:t}}if(e.includes("name")&&Go.some(t=>e.includes(t)))try{return JSON.parse(e)}catch(e){}})(t);if(!n)return;if(!n.name||!Go.some(e=>n.name===e))return;const{name:o,targetId:i,wallpaperImageUrl:r,wallpaperColor:a,cmd:d,size:s}=n;o===Ko&&d&&(d.includes("noScroll")&&(Xo=(e=>{if(!e)return()=>{};const t=e.style.overflow;return e.style.setProperty("overflow","hidden"),()=>{e.style.setProperty("overflow",t)}})(document.querySelector("body"))),(d.includes("close")||d.includes("ended"))&&(null==Xo||Xo(),dispatchEvent(new CustomEvent("advertory:closeTakeover",{})))),o!==zo&&o!==Uo||!i||R(i),o===Wo&&i&&d&&Ro(i,d),"resizeMediationAd"===o&&i&&s&&Ro(i,s,!0),o===Ho&&r&&L(r),o===Vo&&a&&_(a)},Yo=()=>{const{pageContext:{publisher:e,countryCode:t},finnBlink:n}=f.get(),o=window.apntag,i={publisher:e,countryCode:t,finnBlink:n},r=e=>{z(e),K(()=>o.showTag(e))};return{withXandrAd:r,withFinnBlinkAd:e=>H(void 0,void 0,void 0,function*(){if(!(null==n?void 0:n.enabled))return;const{loadFinnBlinkAd:t}=yield Promise.resolve().then(function(){return Wd});yield t(e,i,null)}),withFullAdsChain:e=>H(void 0,void 0,void 0,function*(){if(!(null==n?void 0:n.enabled))return void r(e);const{loadFinnBlinkAd:t}=yield Promise.resolve().then(function(){return Wd});yield t(e,i,r,()=>H(void 0,void 0,void 0,function*(){if(!X.getData("horseshoe").isAvailable)return;const{adjustAdToHorseshoe:t}=yield Promise.resolve().then(function(){return N});t(e)}))})}},Qo=(e,t)=>H(void 0,void 0,void 0,function*(){e.id.includes("wallpaper")||(yield ro(e,t,()=>((e,t,n)=>{const o="true"===n.dataset.isFinnBlinkOnlyPlacement;return Ge(t)&&o?(c(`loading finn blink ad for blink only placement for ${t}`),void Yo().withFinnBlinkAd(t)):Ge(t)?(c(`loading finn blink ad with full ads chain for ${t}`),void Yo().withFullAdsChain(t)):void K(()=>(c("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)))}),Zo=(e,t)=>H(void 0,void 0,void 0,function*(){return yield new Promise(t=>{e().then(e=>{t(null!=e?e:null)}).catch(e=>{t(null)})})});Vn(".advertory-brandmetrics-survey{width:100%}");const ei="advertory-brandmetrics-survey",ti=()=>H(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)}}),ni="https://dr-edition-teaser-server.inventory.schibsted.io/xandr",oi=()=>H(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,o)=>{var i;o||t(""),"tcloaded"!==n.eventStatus&&"useractioncomplete"!==n.eventStatus||(t(null!==(i=n.tcString)&&void 0!==i?i:""),e("removeEventListener",2,()=>{},n.listenerId))})}))}:{};var e}),ii={pageContext:{publisher:"aftonbladet",countryCode:b.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"}},ri={nyheter:"nyheter",sport:"sportbladet",noje:"nojesbladet",family:"family",matdryck:"matdryck",wellness:"wellness",minekonomi:"minekonomi",resa:"resa",harligthemma:"harligthemma"},ai=e=>(null==e?void 0:e.parent)?[...ai(e.parent),e.shortPath||"unknown"]:[],di=(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]=ai(e);return ri[n]||"ovrigaavdelningar"})(e)}_{position}`,si={aftonbladet:ii},li={aftonbladet:(e,t)=>{if(!e)return null;return{invCode:di(e,t),videoOverlayInvCode:"se-aftonbladet-{deviceType}-other-{position}",sections:ai(e).join(":")}}},ci=e=>{switch(e){case"auto":return 1;case"silent":return 2;default:return 3}},ui=new Map([[1,"autoplay"],[2,"muted-autoplay"],[3,"click-to-play"]]),pi="se-generic",vi="aa-sch",gi="kv_",hi="pause",mi="{deviceType}",fi="{position}",yi="afp_",bi=new Set(Object.values({PREROLL:"preroll",BUMPER:"bumper",MIDROLL:"midroll"})),wi="1-1",xi="16-9",ki="3-4",Ci="9-16",Ii="responsive",Ti={[wi]:1,[xi]:1.78,[Ci]:.56,[Ii]:1},Si={[wi]:1,[xi]:1.78,[ki]:1.33,[Ci]:.56},Ei=(e,t,n,o)=>{const{invCode:i="",videoOverlayInvCode:r}=null!=e?e:{},a=ye===n?xe:ke,d=i.replace(mi,a);return(e,n)=>{if(e===hi)return(e=>e.replace("tv-","").replace("-afp_","-afp-").replace(fi,hi).replace(/-([a-z]+)_/,"-article-"))(d);if(n&&bi.has(e)){return(o&&r?r:t.frontpageInvCodeTemplate).replace(mi,a).replace(fi,e)}return d.replace(fi,e)}},Ai=(e,t)=>{const n=Object.entries(e);return n.reduce((n,[o,i])=>{const r=Math.abs(e[n]-t);return Math.abs(i-t)<r?o:n},n[0][0])},Oi=()=>{var e,t;const n=jwplayer().getContainer(),o=null!==(t=null===(e=document.getElementById(n.id))||void 0===e?void 0:e.parentElement)&&void 0!==t?t:null;return o&&"number"==typeof o.offsetWidth&&"number"==typeof o.offsetHeight&&0!==o.offsetHeight?o.offsetWidth/o.offsetHeight:1},Pi=()=>{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},ji=()=>{const e=null!==(t=Pi()[9])&&void 0!==t?t:null;var t;const n=(()=>{var e;return null!==(e=Pi()[2])&&void 0!==e?e:null})();return e?Number(Boolean(e))+Number(Boolean(n)):0},$i=()=>Object.fromEntries(new URLSearchParams(window.location.search)),Li=(e,t)=>H(void 0,void 0,void 0,function*(){const{tcf:n,pageContext:{publisher:o,countryCode:i}}=t,{width:r,height:a}={width:window.innerWidth,height:window.innerHeight},d={isMobileApp:e.isApp,countryCode:i,publisher:o,pageType:"front",deviceType:e.deviceType},s=(yield at(n,e.isApp,i,"video"))?"1":"0",l=yield oi(),c=yield Tn(i),u=yield st({tcf:n,pageContext:d}),p=null!==(v=window.location.pathname.split("/").slice(-2,-1).pop())&&void 0!==v?v:"";var v;const g=((e=1)=>Ai(Si,Number(e.toFixed(2))))(e.instreamAspectRatio),h=(m=e.playerAspectRatio)?Ai(Ti,Number(m.toFixed(2))):Ii;var m,f;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${vi}-country_code`]:i,[`${vi}-publisher`]:o,[`${vi}-supply_type`]:(f=e.deviceType,f===ye?be:we),[`kw_${vi}-page_type`]:"collection",[`${vi}-page_type`]:"collection",[`${pi}-appmode`]:e.isAndroidApp?"hybrid":"notinapp",[`kw_${pi}-page`]:"index",[`${pi}-page`]:"index",[`${pi}-screenheight`]:String(window.screen.height),[`${pi}-screenwidth`]:String(window.screen.width),[`${pi}-viewportheight`]:String(a),[`${pi}-viewportwidth`]:String(r),[`${pi}-loggedin`]:e.isUserLoggedIn?"yes":"no",[`${pi}-mobile-os`]:Lt(),[`${pi}-audience`]:void 0,[`${pi}-externalid_src`]:ji(),[`${pi}-tags`]:e.tags,[`${pi}-articleid`]:p,"article-id":p},yield tn(Object.assign(Object.assign({},t),{pageContext:d}))),u&&{external_uid:u}),e.isUserPresentOnFrontPage&&e.isInitialVideo&&{[`${pi}-tvtags`]:"vinjett"}),e.pageAdsKeywords),Object.keys($i()).some(e=>e.includes(gi))&&(()=>{const e=$i(),t=Object.fromEntries(Object.entries(e).filter(([e])=>e.startsWith(gi)).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":s,"kw_aa-sch-cmp_advertising":s,"aa-sch-instream_player_aspectratio":g,"aa-sch-player_aspectratio":h}),l),{eids:c})}),_i=["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"],Ni=["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"],qi=["external_uid","gdpr","gdpr_consent","eids","article-id"],Fi=(e,t)=>{const n=[..._i,...t.additionalFilterKeys];return Object.fromEntries(Object.entries(e).filter(([e])=>!n.includes(e)).map(([e,t])=>[e.includes("kw")||qi.includes(e)?e:`kw_${e}`,t]))},Mi=e=>Object.fromEntries(Object.entries(e).filter(([e])=>Ni.includes(e))),Bi=(e,t)=>H(void 0,void 0,void 0,function*(){var n,o,i,r;const a=(e=>{var t;si[e]||u(`[video] No config found for publisher "${e}"`);return null!==(t=si[e])&&void 0!==t?t:ii})(e.publisher),d=(e=>{var t;return null!==(t=li[e])&&void 0!==t?t:li.aftonbladet})(e.publisher)(e.assetSection,e.isLiveStudio),s="/"===window.location.pathname,l=null===(o=null===(n=t.attributes)||void 0===n?void 0:n.id)||void 0===o?void 0:o.toString(),c=e.assetId===l,p=null!==(i=Number(e.aspectRatio))&&void 0!==i?i:1,v=c?"preroll":"bumper";var g;return{siteConfig:a,siteVideoParams:d,isUserPresentOnFrontPage:s,adsKeywords:yield Li({pageAdsKeywords:e.pageAdsKeywords,tags:(g=e.tags,g?g.filter(e=>e.slug).map(({slug:e})=>e).join(","):""),sections:null!==(r=null==d?void 0:d.sections)&&void 0!==r?r:"",isUserLoggedIn:e.isUserLoggedIn,isUserPresentOnFrontPage:s,isInitialVideo:c,instreamAspectRatio:p,playerAspectRatio:Oi(),isApp:e.isApp,deviceType:e.deviceType,isAndroidApp:e.isAndroidApp},a),prerollPlacementFormat:v,playbackMethod:ci(e.startMode)}}),Di=(e,t)=>{const{siteConfig:n,siteVideoParams:o,isUserPresentOnFrontPage:i,adsKeywords:r,prerollPlacementFormat:a,playbackMethod:d}=e,{invCode:s}=o||{},l=Ei(o,n,t.deviceType,t.isUsedInOverlayVideoPlayer),c=((e="")=>t=>e.includes(yi)?`${yi}${t}`:t)(s),u=window.location.href;return{member:n.memberId,options:{autoplayMuted:!0,vpaidcontrols:!0},adSlots:{schedule:{preroll:{inv_code:l(a,i),"se-generic-playback-method":ui.get(d),"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({},Fi(r,n)),Mi(r)),{vskippable:"0",referrer:u,vplaybackmethod:d})},adPlacements:{schedule:{pause:{invCode:l("pause"),sizes:[[825,424],[1280,720],[2,1]]}},params:{keywords:Object.assign(Object.assign({},r),{"se-generic-adformat":c("pause")})}}}},Ri=e=>t=>H(void 0,void 0,void 0,function*(){const n=yield Bi(e,t);return Di(n,e)}),zi={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]}]},Ui={no:"NOK",se:"SEK"},Wi={no:"no",se:"sv"};class Hi{buildFetchObject(e,t,n,o){return H(this,void 0,void 0,function*(){const{pageContext:{countryCode:i},pageOptions:r}=o,{invCode:a,xandrPlacementId:d}=e,s=yield oi(),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(zi),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:ve(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({},d&&{placement_id:d}),{code:a,keywords:l,use_pmt_rule:!1})}})],site:{domain:u.hostname,page:u.href,publisher:{id:String(r.publisherId),domain:u.hostname},ext:{amp:0}},device:{dnt:Number((null===navigator||void 0===navigator?void 0:navigator.globalPrivacyControl)||"1"===(null===navigator||void 0===navigator?void 0:navigator.doNotTrack)),ua:window.navigator.userAgent,h:screen.height,w:screen.width,language:(navigator.language||Wi[i]||"no").split("-")[0]},regs:{ext:{gdpr:s.gdpr||0}},user:{id:yield st(o),ext:{consent:s.gdpr_consent||"",eids:In(i)}},at:1,cur:[Ui[i]],source:{tid:ve(36)},ext:{prebid:{bidder:{appnexus:{member:r.member}}}}}})}fetchData(e,t,n,o){return H(this,void 0,void 0,function*(){try{c("Starting fetching Studio ad from Xandr:",ni);const i=new Headers({"Content-Type":"application/json"}),r=new URLSearchParams(window.location.search),a=new URLSearchParams(["openRTBDebugMemberOverride","openRTBNewsroomOverride","openRTBForceNativeDesc2Override"].flatMap(e=>{const t=r.get(e);return t?[[e,t]]:[]})),d=a.size>0?`${ni}?${a.toString()}`:ni,s=yield this.buildFetchObject(e,t,n,o),l=yield ee.post(d,i,s);return c("Fetch operation completed successfully.",l),l}catch(e){c("Error during fetch operation:",e)}return null})}}const Vi=0,Ki=3,Gi=(e,t,n,o)=>{const i=t.parentElement;if(!i)return;const r=e?`-${e}`:"",a=o?`__${o}`:"",d=`advertory${r}-${n}${a}`,s=`advertory${r}-${n}-wrapper${a}`;t.classList.remove(...t.classList),i.classList.remove(...i.classList),t.classList.add(d),i.classList.add(s),t.dataset.adType=n},Xi="finn-blink",Ji="native-ad",Yi=(e,t,n)=>{var o;const i=t.replace(/-[^-]*$/,"");return null===(o=null==n?void 0:n[e].find(e=>e.targetId===i))||void 0===o?void 0:o.invCode},Qi=(e,t)=>{new IntersectionObserver((e,n)=>{for(const o of e)if(o.intersectionRatio>=.5){n.disconnect(),t();break}},{threshold:.5}).observe(e)};class Zi{constructor(e,t){this.pulse=e,this.publisher=t}static extractAdFormat(e){return e.replace(/_\d.*$/,"")}computeInvCode(){}buildPlacement(e){return{placementId:null!=e?e:""}}trackLoad(){var e,t;null===(t=(e=this.pulse).trackLoadAd)||void 0===t||t.call(e,{object:this.buildAdObject(),placement:this.buildPlacement(this.computeInvCode())})}trackImpression(){const e=document.querySelector(`#${this.getTargetId()}`);e&&Qi(e,()=>{var e,t;return null===(t=(e=this.pulse).trackImpressionAd)||void 0===t?void 0:t.call(e,{object:this.buildAdObject(),placement:this.buildPlacement(this.computeInvCode())})})}trackEngagement(e){var t,n;null===(n=(t=this.pulse).trackEngagementAd)||void 0===n||n.call(t,{object:this.buildAdObject(),placement:this.buildPlacement(null!=e?e:this.computeInvCode()),engagement:{action:"Click",elementName:this.getTargetId()}})}}class er extends Zi{constructor(e,t){var n;super(e.pulse.instance,null!==(n=e.pageContext.publisher)&&void 0!==n?n:""),this.xandrParams=e,this.adObj=t}getTargetId(){return this.adObj.targetId}computeInvCode(){const{pageContext:{deviceType:e},placements:t}=this.xandrParams;if(e)return Yi(e,this.adObj.targetId,t)}buildAdObject(){const e=er.extractAdFormat(this.adObj.targetId);return Object.assign(Object.assign({objectId:this.adObj.targetId,objectSdrn:`sdrn:${this.publisher}:ad-slot:${e}`,platform:"microsoft",adFormat:e,creativeType:this.adObj.adType,demandChannel:9700===this.adObj.buyerMemberId?"direct":"programmatic"},null!=this.adObj.creativeId&&{creativeId:String(this.adObj.creativeId)}),{opportunityId:this.adObj.uuid,size:`${this.adObj.width}x${this.adObj.height}`})}}var tr=Object.freeze({__proto__:null,XandrAdTracker:er});const nr=(e,t)=>{or(e,t),rr(e,t)},or=(e,t)=>{var n,o;const i=document.querySelector(`#${e.targetId}`);if(!i||!(null===(n=e.native)||void 0===n?void 0:n.clickTrackers))return;const r=null!==(o=null==t?void 0:t.clickLinkSelector)&&void 0!==o?o:"a.ad-link";(null==i?void 0:i.querySelectorAll(r)).forEach(n=>{"true"!==n.dataset.tracked&&(n.addEventListener("click",()=>{var n,o,i,r,a,d;for(const t of null!==(o=null===(n=e.native)||void 0===n?void 0:n.clickTrackers)&&void 0!==o?o:[])dr(t);if((null===(i=null==t?void 0:t.pulse)||void 0===i?void 0:i.instance)&&(null===(r=null==t?void 0:t.pulse)||void 0===r?void 0:r.adTrackingEnabled)){const n={publisher:null!==(a=t.publisher)&&void 0!==a?a:"",deviceType:null!==(d=t.deviceType)&&void 0!==d?d:ye};new er({pulse:t.pulse,placements:t.placements,pageContext:n},e).trackEngagement()}}),n.dataset.tracked="true")})},ir=e=>{var t;const{native:{impressionTrackers:n}={}}=e,o=null==n?void 0:n.some(e=>e.includes("googleads")),i="function"==typeof(null===(t=window.apntag)||void 0===t?void 0:t.fireImpressionTrackers)&&!!e.tagId;o||!i?null==n||n.forEach(ar):window.apntag.fireImpressionTrackers(e);const r=new CustomEvent("advertory:nativeImpression",{detail:{ad:e}});window.dispatchEvent(r)},rr=(e,t)=>{var n;let o=!1;const i=document.querySelector(`#${e.targetId}`);if(!i||!e.native)return;const{deviceType:r,appearanceConfig:a,nativeTrackingConfig:{fireImpressionsBasedOnAppearanceThreshold:d=!1}={}}=t,s=d?{rootMargin:`${l=null!==(n=null==a?void 0:a.defaultThreshold[null!=r?r:ye])&&void 0!==n?n:0}px 0px ${l}px 0px`}:{};var l;const c=new IntersectionObserver(t=>{if(!o)for(const n of t)if(n.isIntersecting){o=!0,ir(e),c.disconnect();break}},s);c.observe(i)},ar=e=>{const t=e.includes("googleads");"function"!=typeof window.navigator.sendBeacon||t?dr(e):window.navigator.sendBeacon(e)},dr=e=>{ee.get(e,{mode:"no-cors"}).catch(t=>console.warn(`Tracker ${e} failed. Error: ${t||"Unknown"}`))},sr=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:[]}),lr=(e,t)=>H(void 0,void 0,void 0,function*(){var n,o;const{pageContext:{deviceType:i},appearanceConfig:r}=t,a=null==r?void 0:r.defaultThreshold[i],d=null!==(n=e.requestThreshold)&&void 0!==n?n:a,s=document.getElementById(e.targetId);if(!s)return void c(`Server-side ad container not found: ${e.targetId}`);yield new Promise(e=>{new IntersectionObserver((t,n)=>{t.some(e=>e.isIntersecting)&&(n.disconnect(),e())},fo(d)).observe(s)});const{prepareTag:l}=f.getHandlers(),u=X.getData("alertoryConfigKeywords"),p=null!==(o=l(uo(e)).keywords)&&void 0!==o?o:{},v=new Hi,g=yield v.fetchData(e,u,p,t);g&&(((e,t,n)=>{const o=n===me?t.mobileHTML:t.desktopHTML;if(o){if(t.adType===Vi){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>${o}`,e.appendChild(n)}else e.innerHTML=o;e.classList.add("ad-loaded")}})(s,g,i),g.adType===Ki&&(Gi(t.pageContext.publisher,s,Ji,t.pageContext.pageType),nr({targetId:e.targetId,native:{clickTrackers:g.clickTrackers,impressionTrackers:g.impTrackers}},{deviceType:i,appearanceConfig:r,nativeTrackingConfig:t.nativeTrackingConfig,clickLinkSelector:"a"})),((e,t,n,o)=>{var i,r,a;let d;(null===(i=window.apntag.requests)||void 0===i?void 0:i.tags[e])||(null!==(r=(a=window.apntag).requests)&&void 0!==r||(a.requests={tags:{}}),window.apntag.requests.tags[e]={invCode:t,adResponse:{ads:[{creative_id:Number(null==o?void 0:o.adid)}]}}),!!n.querySelector("iframe")||(d=document.createElement("iframe"),n.appendChild(d)),oo(e,n,Number(null==o?void 0:o.adid)),null==d||d.remove()})(e.targetId,e.invCode,s,g.bid))}),cr=(e,t)=>{e.forEach(e=>lr(e,t).catch(e=>{c("Failed to handle server-side ad:",e)}))},ur=(e,t,n,o)=>{const i=document.querySelector(`#${e}`);i&&t&&(i.innerHTML=t,((e,t)=>{const n=e.parentElement,{publisher:o,pageType:i}=t,r=o&&Object.values(Rt).includes(o);n&&r&&Gi(o,e,Ji,i)})(i,n),o())},pr={"no-aftenposten":Rt.AFTENPOSTEN,"no-stavangeraftenblad":Rt.SA,"no-bergenstidende":Rt.BT},vr=(()=>{const e=new Map,t=new Map;return{getTemplate:t=>e.get(t),setTemplate:(t,n)=>{e.set(t,n)},deleteTemplate:t=>{e.delete(t)},getAdjustment:e=>t.get(e),setAdjustment:(e,n)=>{t.set(e,n)},clear:()=>{e.clear(),t.clear()}}})(),gr=(e,t,n)=>{if(!n)return Promise.resolve(null);const o=((e,t,n)=>`${null!=n?n:te}/${oe}/${e}/adjustments/${t}.json`)(e,n,t),i=vr.getAdjustment(o);if(i)return i;const r=ee.get(o,{timeout:ne}).catch(e=>(c("Failed to fetch native template adjustment",{error:e,url:o}),null));return vr.setAdjustment(o,r),r},hr=(e,t,n)=>H(void 0,void 0,void 0,function*(){const o=((e,t)=>`${null!=t?t:te}/${oe}/${e}/default.json`)(e,n);let i=vr.getTemplate(o);i||(i=ee.get(o,{timeout:ne}).catch(e=>{throw c("Failed to fetch native template",{error:e,url:o}),vr.deleteTemplate(o),e}),vr.setTemplate(o,i));const r=gr(e,n,t),[a,d]=yield Promise.all([i,r]);return{schema:a,adjustment:d}}),mr="data-ad-video",fr="viewable",yr="adClick",br=(e,t)=>{const n=(new DOMParser).parseFromString(e,"text/xml"),o=n.querySelector("ClickThrough"),i=n.querySelector("VideoClicks");if(o){for(;o.firstChild;)o.removeChild(o.firstChild);o.appendChild(n.createCDATASection(t))}else if(i){const e=n.createElement("ClickThrough");e.appendChild(n.createCDATASection(t)),i.appendChild(e)}return URL.createObjectURL(new Blob([(new XMLSerializer).serializeToString(n)],{type:"text/xml"}))},wr=e=>null!==e&&"object"==typeof e&&!Array.isArray(e),xr=(e,t)=>{null==t||t.forEach(t=>{const n=window.SVP.Player.Plugins.get(t);e.addPlugin(new n)})},kr=e=>H(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 o=document.createElement("script");o.id=e,o.src="https://cdn.stream.schibsted.media/player/3.78.1/player.min.js",o.async=!0;try{o.src=o.src.replace("player.min","player.next.min")}catch(e){console.error("Failed to set player.next.min source:",e)}document.head.insertBefore(o,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)))}))}),Cr={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 H(this,void 0,void 0,function*(){yield Promise.resolve().then(function(){return Vd})})}})}},Ir=(e,t)=>{null==e||e.forEach(e=>{Cr[e](t)})},Tr={menu:{pluginsNames:["IntegrationMenu"],videoLoop:!0},default:{}},Sr=({container:e,native:t,type:n,publisher:o})=>{const i=e.querySelector(`[${mr}]`),{video:r,image:a,clickUrl:d=""}=t;if(!i||!(null==r?void 0:r.content))return;const{pluginsNames:s,videoLoop:l}=(e=>{var t;return null!==(t=Tr[e.toLowerCase()])&&void 0!==t?t:Tr.default})(n),c=Math.ceil(1e5*Math.random()),u=`ad-player-${c}`;i.id=u;const p=(({id:e,nodeId:t,poster:n,tagURL:o,publisher:i="",productTag:r="xandr",videoLoop:a=!1})=>({id:e,poster:n,vendor:"appnexus",node:t,mute:!0,autoplay:a,repeat:a,skin:{name:"inventory-player",url:"https://ads.inventory.schibsted.io/styles/player.css"},settings:{jw:{stretching:"fill",advertising:{client:"vast",tag:o}}},pulse:{provider:i.toLowerCase(),decorator:e=>Object.assign(Object.assign({},wr(e)?e:{}),{provider:Object.assign(Object.assign({},wr(null==e?void 0:e.provider)?e.provider:{}),{productTag:r})})}}))({id:c,nodeId:u,poster:(null==a?void 0:a.url)||"https://custom.inventory.schibsted.io/1x1-00000000.png",tagURL:br(r.content,d),publisher:o,videoLoop:l});H(void 0,[{playerConfig:p,clickUrl:d,pluginsNames:s}],void 0,function*({playerConfig:e,pluginsNames:t,clickUrl:n}){const o=yield kr(e);Ir(t),o.once("assetReady",()=>{xr(o,t)}),o.on(fr,e=>{const{viewable:t}=e;t?o.play():o.pause()}),n&&o.on(yr,()=>{window.open(n,"_blank")}),e.repeat&&o.on("pause",()=>{o.play()})})},Er=(e,t)=>{const{adjustmentOverrides:n}=e,o=W(e,["adjustmentOverrides"]);return Object.assign(Object.assign({},o),t.overrides&&{adjustmentOverrides:a({},t.overrides)})},Ar="desktop",Or="mobile",Pr="container",jr="text",$r="image",Lr="cogwheel",_r="video",Nr=e=>{if(e)return e===me?Or:Ar},qr=(e,t,n)=>{var o,i,r,a,d,s,l,c,u,p,v,g,h;const m=t?null===(o=e.overrides)||void 0===o?void 0:o[t]:void 0,f=null===(i=null==n?void 0:n.default)||void 0===i?void 0:i[e.id],y=t?null===(r=null==n?void 0:n[t])||void 0===r?void 0:r[e.id]:void 0;if(null!==(s=null!==(d=null!==(a=null==y?void 0:y.hidden)&&void 0!==a?a:null==f?void 0:f.hidden)&&void 0!==d?d:null==m?void 0:m.hidden)&&void 0!==s?s:e.hidden)return null;const b=Object.assign(Object.assign(Object.assign(Object.assign({},e.styles),null==m?void 0:m.styles),null==f?void 0:f.styles),null==y?void 0:y.styles),w=null!==(u=null!==(c=null!==(l=null==y?void 0:y.tag)&&void 0!==l?l:null==f?void 0:f.tag)&&void 0!==c?c:null==m?void 0:m.tag)&&void 0!==u?u:e.tag,x=null!==(g=null!==(v=null!==(p=null==y?void 0:y.text)&&void 0!==p?p:null==f?void 0:f.text)&&void 0!==v?v:null==m?void 0:m.text)&&void 0!==g?g:e.text,k=null===(h=e.children)||void 0===h?void 0:h.map(e=>qr(e,t,n)).filter(e=>null!==e),C={id:e.id,tag:w,type:e.type,name:e.name,styles:b,connections:e.connections};return void 0!==x&&(C.text=x),void 0!==k&&(C.children=k),C},Fr=e=>Object.entries(e).map(([e,t])=>`${(e=>e.replace(/[A-Z]/g,e=>"-"+e.toLowerCase()))(e)}:${(e=>String(e).replace(/"/g,"""))(t)}`).join(";"),Mr=(e,t)=>{const n=e[t];return null==n?"":"object"==typeof n&&"content"in n?n.content:"object"==typeof n&&"url"in n?n.url:String(n)};class Br{constructor(e,t=!1){this.tag=e,this.voidElement=t,this.attributes=new Map,this.content=""}attr(e,t){return t&&this.attributes.set(e,t),this}children(e){return this.content=e,this}build(){const e=[...this.attributes].map(([e,t])=>` ${e}="${t}"`).join("");return this.voidElement?`<${this.tag}${e}>`:`<${this.tag}${e}>${this.content}</${this.tag}>`}}const Dr=(e,t,n="")=>{var o;return(null===(o=e.connections)||void 0===o?void 0:o.length)?((e,t)=>{const n=[];for(const{properties:o}of e)for(const e of o){const o=Mr(t,e);o&&n.push(o)}return n.join(" ")})(e.connections,t):n},Rr=(e,t,n,o)=>{var i;const{tag:r,styles:a}=e,d=(null!==(i=e.children)&&void 0!==i?i:[]).map(e=>Ur(e,t,n,!1)).join(""),s=new Br(r);return o(s),s.attr("href","a"===r?Dr(e,t):"").attr("style",Fr(a)).children(d).build()},zr={[Pr]:(e,t,n,o)=>{var i;const r=null!==(i=n.publisher)&&void 0!==i?i:"shared";return Rr(e,t,n,t=>{o&&t.attr("class",`advertory-${r}-ad-native-${e.name.toLowerCase()}`)})},[Lr]:(e,t,n)=>Rr(e,t,n,e=>{n.containerId&&e.attr("id",`${n.containerId}-button`)}),[jr]:(e,t)=>{var n;return new Br(e.tag).attr("style",Fr(e.styles)).children(Dr(e,t,null!==(n=e.text)&&void 0!==n?n:"")).build()},[$r]:(e,t)=>new Br("img",!0).attr("style",Fr(e.styles)).attr("src",Dr(e,t)).build(),[_r]:(e,t)=>"video"===e.tag&&Dr(e,t)?new Br("div").attr(mr,"true").attr("style",Fr(e.styles)).build():""},Ur=(e,t,n,o=!0)=>{const i=zr[e.type];return i?i(e,t,n,o):""},Wr=e=>(t,{publisher:n,containerId:o,deviceType:i})=>(({config:e,nativeData:t,breakpoint:n,adjustments:o,publisher:i,containerId:r})=>{const a=o?Er(e,o):e,d=qr(a.root,n,a.adjustmentOverrides);return d?Ur(d,t,{breakpoint:n,publisher:i,containerId:r}):null})({config:e,nativeData:t,breakpoint:Nr(i),publisher:n,containerId:o}),Hr="[data-carousel-track]",Vr=({image_link:e,title:t})=>{const n=document.createElement("figure"),o=document.createElement("img");return n.className="carousel-slide",n.setAttribute("data-carousel-slide",""),o.className="slide-image",o.src=e,o.alt=t,o.loading="lazy",o.draggable=!1,n.appendChild(o),n},Kr=e=>Boolean(e.title&&e.link&&e.image_link),Gr=(e,t)=>H(void 0,void 0,void 0,function*(){const n=e.querySelector(Hr);var o;if(n)if(t&&(e=>{try{return"https:"===new URL(e).protocol}catch(e){return!1}})(t))try{const i=yield(e=>H(void 0,void 0,void 0,function*(){try{const t=yield ee.get(e,{timeout:5e3});return t&&Array.isArray(t.items)?t:(u("Carousel feed has an unexpected shape",{url:e}),null)}catch(t){return u("Failed to fetch carousel feed",{url:e,error:t}),null}}))(t);if(!i)return void e.replaceChildren();const r=i.items.filter(Kr);if(!r.length)return void u("Carousel feed has no usable items");yield Promise.resolve().then(function(){return Gd});const a={title:(o=e).querySelector("[data-product-title]"),description:o.querySelector("[data-product-description]"),price:o.querySelector("[data-product-price]"),link:o.querySelector("[data-product-link]")};n.replaceChildren(...r.map(Vr)),(({root:e,onChange:t})=>{var n;const o=e.querySelector("[data-carousel-viewport]"),i=e.querySelector(Hr),r=Array.from(null!==(n=null==i?void 0:i.querySelectorAll("[data-carousel-slide]"))&&void 0!==n?n:[]);if(!o||!i||!r.length)return;const a=r.length,d=[r[a-1].cloneNode(!0),...r,r[0].cloneNode(!0)];let s=1,l=null,c=0,u=!1;const p=e=>{const t=d[0].offsetWidth,n=Number.parseFloat(getComputedStyle(i).columnGap)||0,r=(o.clientWidth-t)/2-s*(t+n);i.style.transition=e?"transform 360ms cubic-bezier(.22, .61, .36, 1)":"none",i.style.transform=`translate3d(${r+c}px, 0, 0)`,i.offsetWidth},v=(e,n=!0)=>{s=e,p(n),d.forEach((e,t)=>e.classList.toggle("is-active",t===s)),null==t||t((s-1+a)%a)},g=()=>{0===s?v(a,!1):s===a+1&&v(1,!1)},h=()=>{if(null===l)return;const e=Math.abs(c)>=.12*o.clientWidth?-Math.sign(c):0;l=null,c=0,v(s+e),window.setTimeout(()=>{u=!1})};i.replaceChildren(...d),i.addEventListener("transitionend",e=>{e.target===i&&g()}),o.addEventListener("pointerdown",e=>{g(),l=e.clientX,o.setPointerCapture(e.pointerId),p(!1)}),o.addEventListener("pointermove",e=>{null!==l&&(c=e.clientX-l,u=u||Math.abs(c)>6,p(!1))}),o.addEventListener("pointerup",h),o.addEventListener("pointercancel",h),o.addEventListener("click",e=>{u&&(e.preventDefault(),e.stopPropagation())},!0),e.addEventListener("dragstart",e=>e.preventDefault()),v(1,!1)})({root:e,onChange:e=>(({title:e,description:t,price:n,link:o},i)=>{e&&(e.textContent=i.title),t&&(t.textContent=i.description),n&&(n.textContent=i.sale_price||i.price),o&&(o.href=i.link)})(a,r[e])}),c("Carousel mounted",{items:r.length})}catch(t){u("Carousel could not be rendered",t),e.replaceChildren()}else u("Carousel feed url is missing or not a valid https url",{url:t})}),Xr="default",Jr=(e,t)=>H(void 0,void 0,void 0,function*(){var n,o,i,r,a,d;const s=document.querySelector(`#${e.targetId}`),{native:l}=e;if(!l||!s)return;const{desc2:u}=l,p=null==u?void 0:u.toLowerCase(),v=((e,t)=>{const n=B(M),o=new URLSearchParams(window.location.search).get(M),i=t.includes("native_recirc");return n&&o?o:(null==e?void 0:e.includes("recirc"))&&!["shopping"].includes(t.toLowerCase())?i?"native_recirc":"recirc":(null==e?void 0:e.includes("sponsor"))?"sponsorstripe":null})(e.targetId,null!=u?u:Xr),g=(null!=v?v:p)||Xr,h=(null===(n=l.video)||void 0===n?void 0:n.content)?`${g}-video`:g,m=(e=>{var t;if(e)return null!==(t=pr[e])&&void 0!==t?t:e})(null===(o=t.pageContext)||void 0===o?void 0:o.publisher);try{const{schema:n,adjustment:o}=yield hr(h,m,null===(i=t.editory)||void 0===i?void 0:i.editoryUrl),c=o?Er(n,o):n,u=Wr(c),p={publisher:m,pageType:null===(r=t.pageContext)||void 0===r?void 0:r.pageType,deviceType:null===(a=t.pageContext)||void 0===a?void 0:a.deviceType,appearanceConfig:t.appearanceConfig,nativeTrackingConfig:t.nativeTrackingConfig,containerId:e.targetId,clickLinkSelector:"a",pulse:t.pulse},v=u(l,p),{enabled:f=!0}=null!==(d=t.nativeTrackingConfig)&&void 0!==d?d:{};ur(e.targetId,v,p,()=>{no(e.targetId),Sr({container:s,native:l,type:g,publisher:m}),f&&nr(e,p)})}catch(e){c("Failed to render native ad from config",{error:e})}}),Yr="_adchoices_non_rtb",Qr=e=>{const{tcf:{nonRtb:{invCodeSuffix:t=Yr}={}}={}}=f.get();return`${k(e)}${t}`},Zr=(e,t)=>t?e:((e=>{e.filter(e=>!e.supportsNonRTB).forEach(e=>R(e.targetId))})(e),(e=>e.filter(e=>e.supportsNonRTB).map(e=>Object.assign(Object.assign({},e),{invCode:Qr(e.invCode)})))(e)),ea=e=>`${Math.max(0,Math.round(e))}px`,ta=e=>{const{marginTop:t,marginBottom:n}=getComputedStyle(e);return e.getBoundingClientRect().height+parseFloat(t||"0")+parseFloat(n||"0")},na=(e,t)=>{const n=document.body;if(n)for(const t of Object.keys(e)){const o=e[t];n.style.setProperty(t,o)}},oa=()=>{const{pageSectionsSelectors:e}=f.get();(null==e?void 0:e.header)&&(e=>{const t=document.querySelector(e);if(!t)return;const n=ta(t);na({"--advertory-header-height":ea(n)})})(e.header)};let ia=Do,ra=[];const aa=["takeover","wallpaper"],da=(e,t)=>{var n,o;const{initNativeAd:i}=f.getHandlers();null==i||i(e,null!==(o=null!=t?t:null===(n=window.advertory)||void 0===n?void 0:n.siteConfig)&&void 0!==o?o:f.get())},sa=e=>{const t=(e=>{var t;const n=X.getData("alertoryConfigKeywords"),{queryConfig:o,placements:i,tcf:r,glimr:a,appearanceConfig:d,pageContext:{publisher:s,countryCode:l,pageType:c,deviceType:u,isMobileApp:p=!1},pageOptions:{member:v},pageSetup:g,takeover:m,fullscreenScroll:f,fullWidth:y}=e,b=null!==(t=null==o?void 0:o.batchSize)&&void 0!==t?t:h;return{xandr:{member:v,keywords:n,tags:[]},advertory:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({pageContext:{publisher:s,countryCode:l,pageType:c,deviceType:u,isMobileApp:p},pageSetup:g,placements:i,tcf:r,queryConfig:Object.assign(Object.assign({},o),{batchSize:b})},a&&{glimr:a}),d&&{appearanceConfig:d}),m&&{takeover:m}),f&&{fullscreenScroll:f}),y&&{fullWidth:y})}})(e);window.advertory={initialized:!0,version:"3.17.3-no-issue.0",siteConfig:e,renderNativeAd:da,alertoryConfig:t}},la=()=>H(void 0,void 0,void 0,function*(){yield ia.setTargeting()}),ca=e=>H(void 0,void 0,void 0,function*(){var t,n;const{prebid:o,tcf:i,pageContext:{isMobileApp:r,countryCode:a}}=f.get(),d=yield at(i,r,a,"loadPlacements"),s=Zr(e,d);null===(t=ia.definePlacements)||void 0===t||t.call(ia,s);(null==o?void 0:o.enabled)&&d&&!D()?(c("core loadPlacements prebid enabled"),yield ao()):(c("core load tags invoked without prebid enabled"),yield null===(n=ia.requestPlacements)||void 0===n?void 0:n.call(ia,s))}),ua=(e,t)=>H(void 0,void 0,void 0,function*(){const{appearanceConfig:n,pageContext:{deviceType:o}}=f.get(),{requestThreshold:i,refresh:r}=e,a=(e=>{const t=document.querySelector(`[data-show-tag-subscribe-id=${e.targetId}]`),n=document.querySelector(`#${e.targetId}`);return t||n})(t),d=null==n?void 0:n.defaultThreshold[o];a&&(c("core showAd - subscribe for show tag with thresholds",{placement:e,ad:t,requestThreshold:i,deviceDefaultThreshold:d}),yield Qo(a,null!=i?i:d)),a&&(null==r?void 0:r.scroll)&&(c("core showAd - setup refreshing",{placement:e,ad:t}),a.dataset.refresh=r.scroll.toString())}),pa=e=>e.some(({targetId:e})=>aa.some(t=>e.includes(t))),va=e=>H(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,o]=(e=>e.reduce(([e,t],n)=>{var o;return(null===(o=null==n?void 0:n.finnBlink)||void 0===o?void 0:o.loadOnlyFinnBlink)?[[...e,n],t]:[e,[...t,n]]},[[],[]]))(e),i=(e=>{const{queryConfig:{placementBatches:t,batchSize:n=h}={},pageContext:{deviceType:o}}=f.get(),i=Ae(e),r=Object.keys((null==t?void 0:t[o])||{}).map(e=>i[e]||[]).filter(e=>e.length>0),a=new Set(r.flat().map(({targetId:e})=>e)),d=e.filter(({targetId:e})=>!a.has(e));return[...r,...Eo(d,n)]})(o);for(const e of i)pa(e)?(c("core loadAds without lazy loading",{placementsToLoad:e}),yield ca(e)):e.length&&(c("core loadAds with lazy loading",{placementsToLoad:e}),yield ga(e));const{finnBlink:r}=f.get();if((null==r?void 0:r.enabled)&&n.length>0){const{handleFinnBlinkOnlyPlacements:e}=yield Promise.resolve().then(function(){return Wd});yield e(n)}}),ga=e=>H(void 0,void 0,void 0,function*(){const{queryConfig:{lazyLoadingV3:{enabled:t=!1,rootMargin:n="200% 0px"}={}}={}}=f.get(),o=[];if(!t)return c("lazy load is not enabled",{placements:e}),void(yield ca(e));const i=new IntersectionObserver((t,n)=>{t.filter(({isIntersecting:e,target:{id:t}})=>e&&!t.includes("wallpaper")).forEach(t=>{c("lazy load is enabled - handler start",{loadedTargetIds:o,placements:e});const i=e.every(e=>o.includes(e.targetId)),r=e.map(e=>e.targetId);!i&&o.push(...r),!i&&ca(e),c("lazy load is enabled - handler stop",{loadedTargetIds:o,placements:e,arePlacementsLoaded:i,targetIds:r}),n.disconnect()})},{rootMargin:n});e.forEach(e=>{const t=document.getElementById(e.targetId);t&&(c("lazy loading - observe element",{targetId:e.targetId,element:t}),i.observe(t))})}),ha=()=>H(void 0,void 0,void 0,function*(){const e=(()=>{const e={adRequested:[],adRendered:[]};return{emit:(t,n)=>H(void 0,void 0,void 0,function*(){yield Promise.all(e[t].map(e=>e(n)))}),on:(t,n)=>{e[t].push(n)}}})();e.on("adRendered",e=>H(void 0,void 0,void 0,function*(){if(!e||!("targetId"in e))return;const t=ra.find(({targetId:t})=>t===e.targetId);t&&(yield ua(t,e),ra=ra.filter(e=>e.targetId!==t.targetId))})),yield ia.bindEvents(e)}),ma=(e,t)=>H(void 0,void 0,void 0,function*(){var n,o;if(c(`Advertory update called with config: ${JSON.stringify(e)}, options: ${JSON.stringify(t)}`),!(null===(n=null===window||void 0===window?void 0:window.advertory)||void 0===n?void 0:n.initialized))return c("Advertory update skipped - Advertory is not initialized"),[];const{clearAds:i,disableAds:r,reloadExistingAds:a,renderFinnBlinkPlacements:d,contextSelector:s}=null!=t?t:{},l=Object.keys(null!=e?e:{}).length>0;let u=[];if(r)return le(),ra=[],ce(),[];if(i&&(u=null!==(o=le())&&void 0!==o?o:[]),i&&!l)return[];i&&l&&(ra=[],ce()),a&&(le(),document.querySelectorAll('[data-advertory-ad-rendered="true"]').forEach(e=>{z(e.id)})),yield ue(e),(null==e?void 0:e.pageSectionsSelectors)&&oa(),yield la();const{clientSidePlacements:p,serverSidePlacements:v}=sr(Se(s)),g=[...p,...v];((e,t)=>{if(0===e.length)return;const n=new Set(t.map(({targetId:e})=>U(e)));e.filter(e=>n.has(e)).forEach(e=>z(e))})(u,g),((e,t)=>{if(0===e.length)return;const n=new Set(t.map(({targetId:e})=>U(e)));e.filter(e=>!n.has(e)).forEach(e=>J(e))})(u,g);let h=p;return d&&(h=h.filter(e=>Ge(e.targetId))),cr(v,f.get()),h.length>0&&(ra=[...ra,...h.map(e=>Object.assign({},e))],Po(h),$o(h),yield va(h)),ra}),fa=(e,t,n)=>H(void 0,void 0,void 0,function*(){var o,i;const{initConsentManager:r,getConsentAsync:a}=rt(e.tcf,null===(o=e.pageContext)||void 0===o||o.isMobileApp,null===(i=e.pageContext)||void 0===i?void 0:i.countryCode),d=yield ae(e);yield ti(),yield Zo(r),yield Zo(a),c("TCF resolved successfully"),yield((e,t,...n)=>H(void 0,[e,t,...n],void 0,function*(e,t,n=Do){var o,i;ia=n,f.set(e),f.setHandlers(Object.assign(Object.assign({},t),e.customHandlers));const{norstat:r,kilkaya:a,rightColumnSplit:d,finnBlink:s}=e;X.initialize(),window.addEventListener("message",Jo,!1);const[l]=yield Promise.allSettled([ia.setup(),wn(e),H(void 0,void 0,void 0,function*(){const{developerOptions:{gptUrl:e}={},tcf:t,pageContext:{isMobileApp:n,countryCode:o}}=f.get();(yield at(t,n,o,"gpt-endpoint"))&&(yield Sn(null!=e?e:"https://securepubads.g.doubleclick.net/tag/js/gpt.js"))}),H(void 0,void 0,void 0,function*(){const{brandmetrics:{enabled:e,brandmetricsUrl:t}={},tcf:n,pageContext:{isMobileApp:o,countryCode:i}}=f.get(),{getConsentAsync:r}=rt(n,0,i),a=yield r();if(e&&t&&a){if(yield Sn(t),document.querySelector(`.${ei}`))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(ei)})&&(t.disconnect(),window._brandmetrics=window._brandmetrics||[],window._brandmetrics.push({cmd:"_loadsurvey"}))}}).observe(document,{childList:!0,subtree:!0,attributes:!0})}}),Xt(),H(void 0,void 0,void 0,function*(){const{gdpr:{gdprUrl:e,allowHidingAds:t=!0}={}}=f.get();t&&(window.gdpr=window.gdpr||{},window.gdpr.allowHidingAds=!0),yield Sn(null!=e?e:"https://cogwheel.inventory.schibsted.io/prod/latest/gdpr-bundle.js")})]);if("rejected"===l.status)throw l.reason;if(c("Driver has been set up"),null==r?void 0:r.enabled){const{loadNorstat:e}=yield Promise.resolve().then(function(){return Jd});yield e()}if(c("Libraries have been loaded and trackers have been set"),oa(),yield ha(),yield la(),c("Page options have been set"),sa(e),c("Advertory is setup on window"),"dom-discovered"===ia.capabilities.tagDefinition)return yield null===(o=ia.requestPage)||void 0===o?void 0:o.call(ia),void c("Ads requested via dom-discovered driver");const{clientSidePlacements:u,serverSidePlacements:p}=sr(Se());if(ra=u,cr(p,e),Po(ra),$o(ra),yield va(ra),c("Ads has been loaded",ra),ho(ra),null==s?void 0:s.enabled){const{replaceAdsWithFinnBlink:t}=yield Promise.resolve().then(function(){return Wd});yield t(null===(i=null==e?void 0:e.pageContext)||void 0===i?void 0:i.deviceType,e.finnBlink)}if(null==d?void 0:d.enabled){const{initRightColumnSplit:t}=yield Promise.resolve().then(function(){return os});t(e.rightColumnSplit)}if(null==a?void 0:a.enabled){const{runKilkaya:t}=yield Promise.resolve().then(function(){return Ts});yield t(e)}}))(d,t,n),c("Run function resolved successfully")}),ya=["sponsor","seamless"],ba=["shopping"],wa=(e,t,n,o)=>{var i;const{image:r,icon:a,sponsoredBy:d,title:s,clickUrl:l,cta:c,body:u,desc2:p,video:v,description:g,customTitle1:h,customTitle2:m,customTitle3:f,customTitle4:y,customBody1:b,customBody2:w,customBody3:x,customBody4:k,customBody5:C,customIcon1:I,customIcon2:T,customDisplayUrl1:S,customDisplayUrl2:E}=e,A=(e,t="")=>{var n;return e?null!==(n=e.url)&&void 0!==n?n:e:t};return Object.assign({containerId:n,img:A(r),imgWidth:null==r?void 0:r.width,imgHeight:null==r?void 0:r.height,imgAltText:null!=s?s:"",logo:(()=>{var e;const t=ya.some(e=>null==p?void 0:p.includes(e))&&"dark"===(null===(e=o.appearanceConfig)||void 0===e?void 0:e.theme)&&I;return A(t?I:a)})(),sponsoredBy:null!=d?d:"",title:null!=s?s:"",url:null!=l?l:"",cta:null!=c?c:"",description:null!==(i=null!=u?u:g)&&void 0!==i?i:"",desc2:null!=p?p:"",video:v,customTitle1:null!=h?h:"",customTitle2:null!=m?m:"",customTitle3:null!=f?f:"",customTitle4:null!=y?y:"",customBody1:null!=b?b:"",customBody2:null!=w?w:"",customBody3:null!=x?x:"",customBody4:null!=k?k:"",customBody5:null!=C?C:"",logo2:A(T),previewVideoSrc:null!=S?S:"",feedUrl:null!=E?E:""},t)},xa=(e,t)=>{const n=B(M),o=new URLSearchParams(window.location.search).get(M),i=t.includes("native_recirc");return n&&o?o:(null==e?void 0:e.includes("recirc"))&&!ba.includes(t.toLowerCase())?i?"native_recirc":"recirc":(null==e?void 0:e.includes("sponsor"))?"sponsorstripe":null},ka=(e,t,n,o)=>{const i=document.querySelector(`#${e}`);i&&t&&(i.innerHTML=t,((e,t)=>{const n=e.parentElement,{publisher:o,pageType:i}=t,r=o&&Object.values(Rt).includes(o);n&&r&&Gi(o,e,Ji,i)})(i,n),o())},Ca=(e,t,n)=>{var o;const i=((e,t,n)=>{var o;const{displayTemplates:i,videoTemplates:r}=n,a="default";if(!e.native)return null;const{native:d,targetId:s}=e,{desc2:l=a}=e.native,c=l.toLowerCase(),u=null!==(o=xa(e.targetId,l))&&void 0!==o?o:c,p=Gn[t.language||b.NO],v=wa(d,p,s,t);return(d.video?r[u]:i[u]||i.default)(v,t)})(e,t,n);ka(e.targetId,i,t,()=>{const{nativeTrackingConfig:{enabled:n=!0}={}}=t;n&&nr(e,t)});const r=document.querySelector(`#${e.targetId}`);r&&Gr(r,null===(o=e.native)||void 0===o?void 0:o.customDisplayUrl2)},Ia=e=>(t,n)=>{var o;const{targetId:i}=t,r=document.querySelector(`#${i}`);if(!r)return;const a=e.getOptions(null!=n?n:{});Ca(t,a,e.templates),null===(o=e.postProcess)||void 0===o||o.call(e,t,r)},Ta=()=>{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},Sa=e=>{const{siteSpecificConfig:t}=f.get(),n=(null==t?void 0:t.dynamicOutstreamFormats)||[];return 0!==n.length&&n.some(t=>e.includes(t))};class Ea{constructor(){this.keywords={}}add(e){return Object.assign(this.keywords,e),this}addAsync(e){return H(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 H(this,void 0,void 0,function*(){return e&&Object.assign(this.keywords,yield t()),this})}build(){return this.keywords}}const Aa=9826;class Oa{constructor(){this.getSupplyTypeKeywords=()=>{const{pageContext:{deviceType:e,isMobileApp:t}}=f.get();if(t){return{"aa-sch-supply_type":`app_${e===me?"phone":fe}`}}return{"aa-sch-supply_type":`web_${this.getPageOptionsFormatDevice(e)}`}}}prepare(e){return H(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 H(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=dt("_pulse2data");return e?e.split(",")[2]:void 0})()}getExternalUid(){return H(this,void 0,void 0,function*(){return yield st(f.get())})}isTrackingForbidden(){return H(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=Aa}={}}=f.get();return"true"===q("inventory_test")?t:e}getCMPValue(e){return localStorage.getItem(`CMP:${e}`)?"0"===localStorage.getItem(`CMP:${e}`)?"0":"1":"0"}getPublisherKeywords(){const{pageContext:{publisher:e}}=f.get();return{"aa-sch-publisher":`${e}`}}getAnalyticsConsentKeywords(){return{"aa-sch-cmp_analytics":this.getCMPValue("analytics")}}getAdvertisingConsentKeywords(){return H(this,void 0,void 0,function*(){const{tcf:e,pageContext:{isMobileApp:t,countryCode:n}}=f.get(),{getConsentAsync:o}=rt(e,0,n);return{"aa-sch-cmp_advertising":(yield o())?"1":"0"}})}getPageTypeKeywords(){const{pageContext:{pageType:e}}=f.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 Pa=new Oa;function ja(e=!1){var t,n;const o=null===(n=null===(t=window.navigator)||void 0===t?void 0:t.userAgent)||void 0===n?void 0:n.toLocaleLowerCase(),i=Lt();return{OS:i,mobileOS:["ios","android"].includes(i)?i:"unknown",isHybridApp:o.includes("hermes"),appMode:e?"hybrid":"notinapp"}}Pa.prepare.bind(Pa);const $a=["aLOLE","xBqQj","1KaqJ","1nzXzK","opm8zV","4qKXKR","Ad9QgE"];function La(e){return t=window.location.pathname.split("/").slice(-2,-1).pop()||"",$a.includes(t)?{"no-sno-news-section":`${e}_doedsfall`}:{};var t}class _a extends Oa{constructor(){super(...arguments),this.getDeviceKeywords=()=>{const{pageContext:{deviceType:e}}=f.get();return{"no-sno-device":this.getPageOptionsFormatDevice(e)}}}getAppTypeKeywords(){const{pageContext:{deviceType:e,isMobileApp:t}}=f.get(),{OS:n,isHybridApp:o}=ja(t);return{"no-sno-apptype":n&&e&&o?`${n}_${this.getPageOptionsFormatDevice()}_hybrid`:"none"}}getObituariesKeywords(e){return La(e)}getSectionPageTypeKeywords(){var e,t;const{pageOptions:n,pageContext:{pageType:o}}=f.get(),i=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":`${i.split("_").pop()||i}_${"article"===o?"article":"front"}`}}}const Na=new class extends _a{prepare(e){return H(this,void 0,void 0,function*(){var t,n,o,i,r,a,d;const s=f.get(),l=null!==(o=null===(n=null===(t=s.pageSetup)||void 0===t?void 0:t.pageOptions)||void 0===n?void 0:n.options)&&void 0!==o?o:{},c=null!==(a=null===(r=null===(i=s.pageSetup)||void 0===i?void 0:i.pageOptions)||void 0===r?void 0:r.keywords)&&void 0!==a?a:{},u=null===(d=s.siteSpecificConfig)||void 0===d?void 0:d.publisherClassName,p=new Ea;yield p.addAsync(this.getAdvertisingConsentKeywords()),yield p.addAsync(tn(s,l.addPublisherToGeo?{addPublisherToGeo:!0}:void 0)),yield p.addIfAsync(c.externalIdSrc,()=>this.getFormattedExternalIdKeywords()),p.add(this.getSupplyTypeKeywords()).add(kn()).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({},xn(b.NO)),g?{externalUid:yield this.getExternalUid()}:{}),member:this.getMember()})})}},qa=Na.prepare.bind(Na);class Fa extends Oa{constructor(){super(...arguments),this.getDeviceKeywords=()=>{const{pageContext:{deviceType:e}}=f.get();return{"se-generic-sitemode":this.getPageOptionsFormatDevice(e)}}}getScreenKeywords(){const e=function(){const e=window.innerWidth,t=window.innerHeight,n=document.documentElement.clientWidth,o=document.documentElement.clientHeight;return{width:e||n||0,height:t||o||0}}(),t={width:null!==(o=null===(n=window.screen)||void 0===n?void 0:n.width)&&void 0!==o?o:0,height:null!==(r=null===(i=window.screen)||void 0===i?void 0:i.height)&&void 0!==r?r:0};var n,o,i,r;return{"se-generic-viewportheight":e.height,"se-generic-viewportwidth":e.width,"se-generic-screenheight":t.height,"se-generic-screenwidth":t.width}}getExternalIdSrc(){return H(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}}=f.get(),{appMode:t,mobileOS:n}=ja(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:o}}=f.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"===o?"article":"front"}`}}}const Ma=new class extends Fa{prepare(e){return H(this,void 0,void 0,function*(){var t,n,o,i,r,a;const d=f.get(),s=null!==(o=null===(n=null===(t=d.pageSetup)||void 0===t?void 0:t.pageOptions)||void 0===n?void 0:n.options)&&void 0!==o?o:{},l=null!==(a=null===(r=null===(i=d.pageSetup)||void 0===i?void 0:i.pageOptions)||void 0===r?void 0:r.keywords)&&void 0!==a?a:{},c=new Ea;yield c.addAsync(this.getAdvertisingConsentKeywords()),yield c.addAsync(tn(d,s.addPublisherToGeo?{addPublisherToGeo:!0}:void 0)),yield c.addIfAsync(l.externalIdSrc,()=>this.getExternalIdSrc()),yield c.addIfAsync(l.sdkVersion,()=>H(void 0,void 0,void 0,function*(){return{"se-generic-sdk-version":"function"==typeof window.apntag.getAstVersion?window.apntag.getAstVersion():""}})),c.add(this.getSupplyTypeKeywords()).add(kn()).addIf(l.appType,this.getAppTypeKeywords()).addIf(l.device,this.getDeviceKeywords()).addIf(l.screen,this.getScreenKeywords()).addIf(l.analyticsConsent,this.getAnalyticsConsentKeywords()).addIf(l.sectionPageType,this.getSectionPageTypeKeywords()).addIf(l.hasContext,this.getHasContextKeywords(e.keywords)).addIf(l.hasPlusMembership,{"se-generic-has_plus":"plus"===dt("X-AB-Site-Version")?"yes":"no"}).add(e.keywords);const u=c.build(),p=!1!==s.includeExternalUid;return Object.assign(Object.assign({},e),{keywords:u,user:Object.assign(Object.assign({},xn(b.SE)),p?{externalUid:yield this.getExternalUid()}:{}),member:this.getMember()})})}},Ba=Ma.prepare.bind(Ma),Da="viewable",Ra="adClick";var za=e=>(t,n,o)=>{const{video:i,img:r,url:a}=t,{publisher:d,productTag:s}=n,{pluginsNames:l,videoLoop:c}=o||{};if(!(null==i?void 0:i.content))return null;const u=Math.ceil(1e5*Math.random()),p=r||"https://custom.inventory.schibsted.io/1x1-00000000.png",v=`ad-player-${u}`,g=Ua(i.content,a),h=Wa({id:u,nodeId:v,poster:p,tagURL:g,publisher:d,productTag:s,videoLoop:c});return Ha({playerConfig:h,clickUrl:a,pluginsNames:l}),`${e(t,n,v)}`};const Ua=(e,t)=>{const n=(new DOMParser).parseFromString(e,"text/xml"),o=n.querySelector("ClickThrough"),i=n.querySelector("VideoClicks");if(o){for(;o.firstChild;)o.removeChild(o.firstChild);o.appendChild(n.createCDATASection(t))}else if(i){const e=n.createElement("ClickThrough");e.appendChild(n.createCDATASection(t)),i.appendChild(e)}return URL.createObjectURL(new Blob([(new XMLSerializer).serializeToString(n)],{type:"text/xml"}))},Wa=({id:e,nodeId:t,poster:n,tagURL:o,publisher:i="",productTag:r="xandr",videoLoop:a=!1})=>({id:e,poster:n,vendor:"appnexus",node:t,mute:!0,autoplay:a,repeat:a,skin:{name:"inventory-player",url:"https://ads.inventory.schibsted.io/styles/player.css"},settings:{jw:{stretching:"fill",advertising:{client:"vast",tag:o}}},pulse:{provider:i.toLowerCase(),decorator:e=>Object.assign(Object.assign({},wr(e)?e:{}),{provider:Object.assign(Object.assign({},wr(null==e?void 0:e.provider)?e.provider:{}),{productTag:r})})}}),Ha=e=>H(void 0,void 0,void 0,function*(){const{playerConfig:t,pluginsNames:n,clickUrl:o}=e,{repeat:i}=t,r=yield kr(t);Ir(n),r.once("assetReady",()=>{xr(r,n)}),r.on(Da,e=>{const{viewable:t}=e;t?r.play():r.pause()}),r.on(Ra,()=>{window.open(o,"_blank")}),i&&r.on("pause",()=>{r.play()})}),Va=({containerId:e,url:t,body:n,title:o,logo:i,isContentVideoAd:r=!1,imgWidth:a})=>{const d=`\n <div class="ad-header">\n <span>ANNONSØRINNHOLD</span>\n ${i?`<img alt="" aria-hidden="true" class="ad-logo" src="${i}" />`:""}\n </div>\n `,s=`<div class="ad-text">${o}</div>`;return`\n <div id="${e}" class="advertory-godt-ad-content" ${a?`style="max-width: ${a}px"`:""}>\n <div class="ad-info" id="${e}-button"></div>\n ${r?`\n ${d}\n ${n}\n <a class="ad-link" href="${t}" rel="noopener nofollow sponsored">\n ${s}\n </a>\n `:`\n <a class="ad-link" href="${t}" rel="noopener nofollow sponsored">\n ${d}\n ${n}\n ${s}\n </a>\n `}\n </div>\n `},Ka=["IntegrationMenu"],Ga=({containerId:e},t,n)=>` <div id="${e}" class="advertory-godt-ad-weekly-menu">\n <div class="ad-info" id="${e}-button"></div>\n <div class="ad-video-wrapper">\n <div id="${n}"></div>\n </div>\n <span class="ad-label">${Gn.no.adText}</span>\n </div>`;Vn('@import"https://fonts.googleapis.com/css?family=Roboto:400,500&display=swap";.advertory-shared-ad-native-content-display-basic{width:100%;font-family:Roboto,sans-serif;color:#6d747e;text-align:left;background:#fff;position:relative;margin:0 auto;display:flex;flex-direction:column}.advertory-shared-ad-native-content-display-basic *{line-height:normal}.advertory-shared-ad-native-content-display-basic .ad-info{top:0;right:8px;position:absolute}.advertory-shared-ad-native-content-display-basic .ad-info>div{position:initial !important}.advertory-shared-ad-native-content-display-basic .ad-link{text-decoration:none}.advertory-shared-ad-native-content-display-basic .ad-link:hover{text-decoration:none}.advertory-shared-ad-native-content-display-basic .ad-header{padding:5px 16px;background-color:#ffcd00;font-size:12px;text-transform:uppercase;color:#495057;font-weight:600}.advertory-shared-ad-native-content-display-basic .ad-content-wrapper{display:flex;flex-direction:column}.advertory-shared-ad-native-content-display-basic .ad-content-wrapper .ad-large-image-container{position:relative;padding-bottom:40%}@media screen and (min-width: 768px){.advertory-shared-ad-native-content-display-basic .ad-content-wrapper .ad-large-image-container{display:none}}.advertory-shared-ad-native-content-display-basic .ad-content-wrapper .ad-large-image-container .ad-large-image-wrapper{position:absolute;height:100%;width:100%}.advertory-shared-ad-native-content-display-basic .ad-content-wrapper .ad-large-image-container .ad-large-image-wrapper .ad-large-image{object-fit:cover;min-width:100%;height:100%}.advertory-shared-ad-native-content-display-basic .ad-content-wrapper .ad-content{box-sizing:border-box;display:flex;background-color:#fffae6}.advertory-shared-ad-native-content-display-basic .ad-content-wrapper .ad-content .ad-text-container{flex-grow:1;padding:16px}.advertory-shared-ad-native-content-display-basic .ad-content-wrapper .ad-content .ad-text-container .ad-title{font-size:20px;color:#212529;font-weight:600;margin-bottom:16px}@media screen and (min-width: 768px){.advertory-shared-ad-native-content-display-basic .ad-content-wrapper .ad-content .ad-text-container .ad-title{font-size:22px}}.advertory-shared-ad-native-content-display-basic .ad-content-wrapper .ad-content .ad-text-container .ad-sponsor{font-size:11px;color:gray;font-weight:600;text-transform:uppercase}.advertory-shared-ad-native-content-display-basic .ad-content-wrapper .ad-content .ad-small-image-container{display:none;max-width:175px}@media screen and (min-width: 768px){.advertory-shared-ad-native-content-display-basic .ad-content-wrapper .ad-content .ad-small-image-container{display:block}}.advertory-shared-ad-native-content-display-basic .ad-content-wrapper .ad-content .ad-small-image-container .ad-small-image{object-fit:cover;max-width:100%}.advertory-shared-ad-native-content-display-basic.article .ad-info{top:0;right:0;position:absolute;border-bottom-left-radius:50%;background:hsla(0,0%,100%,.6)}.advertory-shared-ad-native-content-display-basic.article .ad-info>div{position:initial !important}.advertory-shared-ad-native-content-display-basic.article .ad-content-wrapper .ad-content .ad-small-image-container{display:block}.advertory-shared-ad-native-content-display-basic.article .ad-content-wrapper .ad-content .ad-text-container{padding:8px 16px;border-left:4px solid #ffcd00}.advertory-shared-ad-native-content-display-basic.article .ad-content-wrapper .ad-content .ad-text-container .ad-header-wrapper{display:flex;margin-bottom:8px}@media screen and (min-width: 768px){.advertory-shared-ad-native-content-display-basic.article .ad-content-wrapper .ad-content .ad-text-container .ad-header-wrapper{margin-bottom:16px}}.advertory-shared-ad-native-content-display-basic.article .ad-content-wrapper .ad-content .ad-text-container .ad-header-wrapper .ad-header{padding:2px 4px;font-size:11px}.advertory-shared-ad-native-content-display-basic.article .ad-content-wrapper .ad-content .ad-text-container .ad-title{font-size:15px;margin-bottom:8px}@media screen and (min-width: 768px){.advertory-shared-ad-native-content-display-basic.article .ad-content-wrapper .ad-content .ad-text-container .ad-title{font-size:18px;margin-bottom:16px}}.advertory-shared-ad-native-content-display-basic.article .ad-content-wrapper .ad-content .ad-small-image-container{padding:16px 8px 16px 0}@media screen and (min-width: 768px){.advertory-shared-ad-native-content-display-basic.article .ad-content-wrapper .ad-content .ad-small-image-container{padding:0}}.advertory-shared-ad-native-content-display-basic.article .ad-content-wrapper .ad-content .ad-small-image-container .ad-small-image{object-fit:contain}@media screen and (min-width: 768px){.advertory-shared-ad-native-content-display-basic.article .ad-content-wrapper .ad-content .ad-small-image-container .ad-small-image{object-fit:cover}}');const Xa={FRONT:"front"};Vn('.advertory-abo-ad-native-sponsorstripe{position:relative;top:0;left:0;width:100%;background:inherit;padding:0;margin:0;border:none;text-align:left}.advertory-abo-ad-native-sponsorstripe .ad-wrapper{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;max-width:980px;height:30px;padding:5px 15px;margin:auto;font-family:"Helvetica Neue",Arial,Roboto,sans-serif}.advertory-abo-ad-native-sponsorstripe .ad-logo{flex:0;height:20px;max-width:35%;max-height:inherit}.advertory-abo-ad-native-sponsorstripe .ad-title{margin-right:10px;padding-left:34px;font-size:13px;color:#fff}.advertory-abo-ad-native-sponsorstripe .info-button-wrapper{display:grid;position:absolute;place-content:center;height:30px;min-width:30px}.advertory-abo-ad-native-sponsorstripe .info-button-wrapper .info-button{display:inline-block;height:20px;width:20px;position:relative;border:solid 1px #fff;border-radius:50%;cursor:pointer}.advertory-abo-ad-native-sponsorstripe .info-button-wrapper .info-button:before{content:"i";color:#fff;position:absolute;left:50%;top:50%;transform:translate(-50%, -50%);font-size:13px}.advertory-abo-ad-native-sponsorstripe .ad-description{font-size:13px;color:#fff;position:absolute;top:0;max-width:980px;min-height:30px;padding:15px 35px 15px 15px;margin-left:-15px;background-color:rgba(0,0,0,.9)}.advertory-abo-ad-native-sponsorstripe .ad-description .close-button-wrapper{position:absolute;top:15px;right:15px;place-content:center;height:16px;min-width:16px}.advertory-abo-ad-native-sponsorstripe .ad-description .close-button-wrapper .close-button{display:inline-block;height:16px;width:16px;position:relative;border:1px solid #fff;border-radius:50%;cursor:pointer}.advertory-abo-ad-native-sponsorstripe .ad-description .close-button-wrapper .close-button:before{content:"✕";color:#fff;position:absolute;left:50%;top:50%;transform:translate(-50%, -50%);font-size:10px;font-weight:bold}.advertory-abo-ad-native-sponsorstripe .ad-description .ad-description-readmore{color:#c7ecff}.advertory-abo-ad-native-sponsorstripe .ad-description.hide{display:none}@media screen and (min-width: 768px){.advertory-abo-ad-native-sponsorstripe .ad-wrapper{height:50px}.advertory-abo-ad-native-sponsorstripe .ad-wrapper .ad-description{min-height:50px}.advertory-abo-ad-native-sponsorstripe .ad-logo{height:40px}.advertory-abo-ad-native-sponsorstripe .ad-title{font-size:20px;padding-left:40px}.advertory-abo-ad-native-sponsorstripe .info-button-wrapper .info-button{height:30px;width:30px;border-width:2px}.advertory-abo-ad-native-sponsorstripe .info-button-wrapper .info-button:before{font-size:20px}}');const Ja={default:{NATIVE_TEMPLATE:({containerId:e,url:t,sponsoredBy:n,title:o,img:i,adText:r})=>(Promise.resolve().then(function(){return Es}),`<article class="advertory-no-ad-native-default">\n <div class="ad-info" id="${e}-button"></div>\n <a class="ad-link" href="${t}" target="_self">\n <div class="ad-content">\n <div class="ad-image-container">\n <img alt="${o}" class="ad-image" src="${i}" />\n </div>\n <div class="ad-text-container">\n <div class="ad-sponsor">\n <span class="ad-label">${r}</span> ${n}\n </div>\n <div class="ad-title">${o}</div>\n </div>\n </div>\n </a>\n </article>`)}.NATIVE_TEMPLATE,content:({containerId:e,url:t,title:n,img:o,imgWidth:i,imgHeight:r,logo:a,imgAltText:d})=>{const s=Ft(i,r);return Va({containerId:e,url:t,title:n,logo:a,imgWidth:i,body:`\n<div class="ad-image-wrapper" ${s?`style="padding-bottom: ${100*s}%"`:""}>\n <img alt="${d}" class="ad-image" src="${o}" />\n</div>`})},contentVideo:(e,t)=>za(({containerId:e,url:t,title:n,logo:o},i,r)=>Va({containerId:e,url:t,title:n,isContentVideoAd:!0,logo:o,body:`\n<div class="ad-video-wrapper">\n <div id="${r}"></div>\n</div>`}))(e,t),nativeVideo:(e,t)=>za(({containerId:e,url:t,sponsoredBy:n,title:o},i,r)=>(({containerId:e,url:t,sponsoredBy:n,body:o,title:i})=>`\n<div id="${e}" class="advertory-godt-ad-native">\n <div class="ad-info" id="${e}-button"></div>\n <a class="ad-link" href="${t}"rel="noopener nofollow sponsored">\n <div class="ad-header">${Gn.no.adFrom} ${n}</div>\n ${o}\n <div class="ad-text">${i}</div>\n </a>\n</div>`)({containerId:e,url:t,sponsoredBy:n,title:o,body:`\n<div class="ad-video-wrapper">\n <div id="${r}"></div>\n</div>`}))(e,t),weeklyMenuVideo:(e,t)=>za(Ga)(e,t,{videoLoop:true,pluginsNames:Ka}),weeklyMenuStripe:({title:e,logo:t})=>`<div class="advertory-godt-ad-weekly-menu-stripe">\n <span class="ad-text">${e}</span>\n <img alt="" aria-hidden="true" class="ad-logo" src="${t}" />\n <button\n class="button"\n type="button"\n onclick="(function(e){\n try {\n var disclaimer = e.target.closest('button').nextElementSibling;\n\n if (disclaimer.style.display === 'none') {\n disclaimer.style.display = 'block';\n } else {\n disclaimer.style.display = 'none';\n }\n } catch (error) {}\n })(arguments[0]);return false;"\n >\n <svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"><path d="M14.25 16.5h-.75A1.5 1.5 0 0 1 12 15v-3.75a.75.75 0 0 0-.75-.75h-.75M11.625 6.75a.375.375 0 1 0 0 .75.375.375 0 0 0 0-.75v0"/><path clip-rule="evenodd" d="M12 23.25c6.213 0 11.25-5.037 11.25-11.25S18.213.75 12 .75.75 5.787.75 12 5.787 23.25 12 23.25Z" fill-rule="evenodd"/></g></svg>\n </button>\n <div class="disclaimer" style="display: none">\n Annonsøren som presenterer ukemenyen har betalt for profilering av logoen på VG-forsiden og Godt.no, og annonsen mellom oppskriftene.\n <a href="https://www.vg.no/informasjon/redaksjonelle-avgjorelser/232" target="_blank">\n Les mer\n </a>\n </div>\n </div>`,weeklyMenu:({containerId:e,url:t,img:n,imgAltText:o})=>`<div id="${e}" class="advertory-godt-ad-weekly-menu">\n <div class="ad-info" id="${e}-button"></div>\n <a class="ad-link" href="${t}"rel="noopener nofollow sponsored">\n <img alt="${o}" class="ad-image" src="${n}" />\n <span class="ad-label">${Gn.no.adText}</span>\n </a>\n</div>`,sponsorstripe:({title:e,logo:t})=>`\n <div class="advertory-godt-sponsorstripe">\n <div class="ad-container">\n <button\n class="button"\n type="button"\n onclick="(function(e){\n try {\n const root = e.target.closest('.advertory-godt-sponsorstripe');\n root.classList.add('disclaimer-visible');\n } catch (error) {}\n})(arguments[0]);return false;"\n >\n <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="none"><path fill="currentColor" d="M9 9.327a1 1 0 1 1 2 0v6a1 1 0 1 1-2 0zM10 4.399a1 1 0 1 0 0 2 1 1 0 0 0 0-2"/><path fill="currentColor" fill-rule="evenodd" d="M10 .348c-5.523 0-10 4.477-10 10s4.477 10 10 10 10-4.477 10-10-4.477-10-10-10m-8 10a8 8 0 1 0 16 0 8 8 0 0 0-16 0" clip-rule="evenodd"/></svg>\n </button>\n <span class="ad-text">${e}</span>\n <img alt="" aria-hidden="true" class="ad-logo" src="${t}" />\n </div>\n <div class="disclaimer">\n <button\n class="button"\n type="button"\n onclick="(function(e){\n try {\n const root = e.target.closest('.advertory-godt-sponsorstripe');\n root.classList.remove('disclaimer-visible');\n } catch (error) {}\n})(arguments[0]);return false;"\n >\n <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 21 21" fill="none"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M11 20.07a9.375 9.375 0 1 0 0-18.75 9.375 9.375 0 1 0 0 18.75" clip-rule="evenodd"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="m7.25 14.444 7.5-7.5M14.75 14.444l-7.5-7.5"/></svg>\n </button>\n <div>\n Annonsøren som presenterer denne saken har betalt for profilering av fremhevet annonsemateriell i artikler og innhold på Godt.no\n <a href="https://www.vg.no/informasjon/redaksjonelle-avgjorelser/232" target="_blank">\n Les mer\n </a>\n </div>\n </div>\n </div>`},Ya={displayTemplates:{default:Ja.default,content:Ja.content,"ukesmeny-stripe":Ja.weeklyMenuStripe,ukesmeny:Ja.weeklyMenu,sponsorstripe:Ja.sponsorstripe,seamless:{NATIVE_SEAMLESS:({containerId:e,url:t,adText:n,img:o,cta:i,description:r,logo:a,sponsoredBy:d,title:s,feedUrl:l})=>(Promise.resolve().then(function(){return Ss}),`<article class="advertory-shared-ad-native-seamless">\n <div class="ad-info" id="${e}-button"></div>\n <a class="ad-link" href="${t}" target="_blank" data-product-link>\n <div class="ad-content">\n <div class="ad-header">\n ${a&&`<img alt="${d}" class="ad-logo" src="${a}" loading="lazy" />`}\n <div class="ad-annons">${n}</div>\n </div>\n ${(({img:e,title:t,feedUrl:n})=>n?'<div class="ad-carousel">\n <div class="carousel-window" data-carousel-viewport>\n <div class="carousel-track" data-carousel-track></div>\n </div>\n </div>':`<div class="ad-image-container">\n <img alt="${t}" class="ad-image" src="${e}" loading="lazy">\n </div>`)({img:o,title:s,feedUrl:l})}\n <div class="ad-footer">\n <div class="ad-row">\n <div class="ad-text-wrapper">\n <div class="ad-description" data-product-description>${r}</div>\n <h2 class="ad-headline" data-product-title>${s}</h2>\n </div>\n <div class="ad-purchase">\n <span class="ad-price" data-product-price></span>\n <div class="ad-action">${i}</div>\n </div>\n </div>\n </div>\n </div>\n </a>\n </article>`)}.NATIVE_SEAMLESS},videoTemplates:{default:Ja.nativeVideo,content:Ja.contentVideo,menu:Ja.weeklyMenuVideo}},Qa={prepareTag:e=>{var t;const{keywords:n,targetId:o,invCode:i,dynamicSizeWidthCheck:r,globalPlacementId:a}=e,{pageSetup:d,pageContext:{countryCode:s}}=f.get(),{tag:{useAppTabletInvCode:l=!0}={}}=null!=d?d:{},c=((e,t)=>{const{pageContext:{isMobileApp:n}}=f.get();return n?((e,t)=>e.replace(/wtb|wde|wph/g,e=>"wph"===e?"aph":t?"atb":e))(e,t):e})(i,l),u=(e=>{const{pageContext:{countryCode:t}}=f.get(),{keywords:n,dynamicSizeWidthCheck:o}=e,i=`${w(t)}-adformat`,r=n?n[i]:[];if(!r)return{};const a=(Array.isArray(r)?r:[r]).filter(e=>!(e in Be)||window.innerWidth>=Be[e]);return{[i]:o?a:r}})(e),p=(e=>{const{pageContext:{countryCode:t}}=f.get(),n=`${w(t)}-targetid`;return e?{[n]:[e]}:{}})(o),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=Ta(),h=(e=>Sa(e)?{"aa-sch-dynamic-outstream":["true"]}:{})(i),m=((e,t)=>Sa(e)?Object.assign(Object.assign({},t),{playerSkin:{videoBackgroundColor:"#e6e7e8"}}):{})(i,{safeFrameAutoInitialSize:!0}),y=r&&e.sizes.length>0?e.sizes.filter(([e])=>e<=window.innerWidth):e.sizes,b=(new Ea).add(null!=n?n:{}).add(u).add(p).add(null!=v?v:{}).add(h).add(g).addIf(null===(t=null==d?void 0:d.tag)||void 0===t?void 0:t.reloadKeywords,{[`${w(s)}-adreload`]:"0"}).build();return Object.assign(Object.assign({},e),{sizes:y,invCode:c,keywords:b,rendererOptions:m,globalPlacementId:a||c})},preparePageOptions:e=>H(void 0,void 0,void 0,function*(){const{pageContext:{countryCode:t}}=f.get();return yield t===b.SE?Ba(e):qa(e)}),siteEvents:Dt,initNativeAd:(e,t)=>{var n,o,i;if(null===(o=null===(n=null==t?void 0:t.editory)||void 0===n?void 0:n.adNativeBuilder)||void 0===o?void 0:o.enabled)return void Jr(e,t);const{targetId:r}=e;if(!document.querySelector(`#${r}`))return;const{pageType:a=Xa.FRONT,deviceType:d}=null!==(i=null==t?void 0:t.pageContext)&&void 0!==i?i:{},{nativeTrackingConfig:s,appearanceConfig:l}=null!=t?t:{},c={language:b.NO,publisher:Rt.GODT,deviceType:d,pageType:a,nativeTrackingConfig:s,appearanceConfig:l};Ca(e,c,Ya)}},Za=((e,t,n)=>({init:o=>{return i=Object.assign(Object.assign({},o),{siteSpecificConfig:t}),r=e,a=n,H(void 0,void 0,void 0,function*(){c(`Received configuration passed to Advertory: ${JSON.stringify(i)}`),yield fa(i,r,a)});var i,r,a},update:ma,renderNativeAd:da,getVideoPPIDs:Tn,createInitNativeAd:Ia,getVideoAdsConfig:Ri}))(Qa,zt,Do),ed=1e4,td=(e="widescreen")=>{const{pageSectionsSelectors:{right:t}={}}=f.get();if(!t)return[];return Array.from(document.querySelectorAll(t)).map(t=>Array.from(t.querySelectorAll(`div[id^="${e}"]`)))},nd=e=>e.some(e=>e.some(e=>!!e&&Oo(e,0)));let od;var id=Object.freeze({__proto__:null,initWidescreenSwitching:()=>{const{widescreenSwitching:e}=f.get(),{enabled:t,options:{rotationInterval:n=ed,widescreenIdPrefix:o}={}}=null!=e?e:{};if(!t)return;let i=td(o),r=0,a=Date.now(),d=nd(i);if(!i.length)return;od&&window.removeEventListener("scroll",od);const s=(e,t,n)=>{e.forEach(e=>{e&&e.style.setProperty(t,n)})},l=e=>1===e?0:1,c=e=>{e.forEach(e=>{e[0]&&(e[0].style.display="block",e[0].style.opacity="1"),e[1]&&(e[1].style.display="none",e[1].style.opacity="")})};c(i);const u=((e,t)=>{let n=null;return(...o)=>{null===n&&(e(...o),n=setTimeout(()=>{n=null},t))}})(()=>{const e=td(o);((e,t)=>{const n=e.flat(),o=t.flat();return n.length===o.length&&n.every((e,t)=>e===o[t])})(e,i)||(i=e,r=0,a=Date.now(),c(i)),d||(d=nd(i)||d,a=Date.now());Date.now()-a>=n&&((()=>{const e=l(r),t=i.map(e=>e[r]),n=i.map(t=>t[e]);s(t,"opacity","0"),setTimeout(()=>{s(t,"display","none"),s(n,"opacity","0"),s(n,"display","block"),setTimeout(()=>{s(n,"opacity","1")},450)},450)})(),r=l(r),a=Date.now())},1e3);od=u,window.addEventListener("scroll",u)}});const rd="#fff",ad="#0098da",dd=e=>"dark"===e,sd=(e,t,n,o)=>{if(!n)return;const i={[ct]:()=>{const{buttonLabel:o}=St(n,t);["#advertory-welcome-page-scroll-label","#advertory-welcome-page-scroll-image"].forEach(t=>{const n=e.querySelector(`${t}`);n&&(n.innerText=null!=o?o:"")})},[lt]:()=>{const{themeColors:i,logotype:r,buttonLabel:a,showArrowIcon:d}=St(n,t),s=((e,t)=>{var n,o,i,r;if(!e)return;const a=dd(t)?e.darkMode:void 0;return{backgroundColor:null!==(o=null!==(n=null==a?void 0:a.backgroundColor)&&void 0!==n?n:e.backgroundColor)&&void 0!==o?o:rd,color:null!==(r=null!==(i=null==a?void 0:a.color)&&void 0!==i?i:e.color)&&void 0!==r?r:ad}})(i,o),l=((e,t)=>{var n,o;if(!e)return;const i=dd(t)?e.darkMode:void 0;return{url:null!==(n=null==i?void 0:i.url)&&void 0!==n?n:e.url,alt:null!==(o=null==i?void 0:i.alt)&&void 0!==o?o:e.alt}})(r,o);["#advertory-splash-close-label",".advertory-splash-close","#advertory-splash-logotype",".advertory-splash-navbar-wrapper"].forEach(t=>{const n=e.querySelector(`${t}`);if(n){if("#advertory-splash-close-label"===t&&(n.innerText=null!=a?a:""),".advertory-splash-close"===t&&!d){const e=n.querySelector("#advertory-splash-close-image");null==e||e.style.setProperty("display","none")}".advertory-splash-close"===t&&s&&(n.style.color=s.color),"#advertory-splash-logotype"===t&&l&&(n.setAttribute("src",l.url),n.setAttribute("alt",l.alt)),".advertory-splash-navbar-wrapper"===t&&s&&(n.style.setProperty("background-color",s.backgroundColor,"important"),n.style.color=s.color)}})},[ut]:()=>{const{buttonLabel:o,showArrowIcon:i,showCloseButton:r=!0}=St(n,t);["#advertory-topscroller-scroll-label","#advertory-topscroller-scroll-image",".advertory-topscroller-close"].forEach(t=>{const n=e.querySelector(`${t}`);n&&(".advertory-topscroller-close"!==t||r||(n.style.display="none"),"#advertory-topscroller-scroll-image"!==t||i||(n.style.display="none"),"#advertory-topscroller-scroll-label"===t&&(n.innerText=null!=o?o:""))})},[pt]:()=>{}};i[t]()},ld=(e,t=!0)=>{(e===ct||e===ut)&&(e=>{e?setTimeout(()=>window.scrollTo(0,0),100):window.scrollTo(0,10)})(t)},cd=()=>{const e=parseInt(document.body.dataset.scrollY||"0",10);document.body.style.top="",window.scrollTo(0,e),document.body.classList.remove("page-locked")},ud=new WeakMap,pd=(e,t,n)=>{var o;window.addEventListener(t,n),ud.set(e,[...null!==(o=ud.get(e))&&void 0!==o?o:[],()=>window.removeEventListener(t,n)])},vd=e=>{document.body.style.overflow=e?"initial":"hidden"},gd=e=>{(e=>{var t;null===(t=ud.get(e))||void 0===t||t.forEach(e=>e()),ud.delete(e)})(e),cd(),(e=>{e.classList.toggle("takeover-ad-hidden",!0)})(e),vd(!0),e.style.display="none"},hd=e=>{const t=()=>gd(e);return pd(e,"advertory:closeTakeover",t),cd(),t},md=e=>{const t=e.querySelector(".advertory-splash-navbar-wrapper");t&&((e=>{const t=t=>{["Enter","Escape"].includes(t.key)&&gd(e)};cd(),pd(e,"keydown",t)})(e),hd(e),cd(),t.addEventListener("click",()=>{gd(e)}),vd(!1))},fd=e=>{(e=>{window.addEventListener("scroll",()=>{e.getBoundingClientRect().bottom,(e=>{const t=e.getBoundingClientRect().bottom;e.style.opacity=""+t/e.offsetHeight})(e)},{passive:!0})})(e),hd(e);const t=document.querySelector("header");document.querySelectorAll(".smooth-close-takeover").forEach(e=>e.addEventListener("click",()=>null==t?void 0:t.scrollIntoView({behavior:"smooth"})))},yd=e=>{(e=>{pd(e,"advertory:closeTakeover",()=>gd(e))})(e)},bd=e=>{const{takeover:{splash:{showAnnonsLabel:t=!1}={}}={}}=f.get(),n=e.querySelectorAll(".advertory-splash-navbar-wrapper"),o=document.querySelector(".advertory-takeover-label");Array.from(n).forEach(e=>e.style.display="flex"),t&&o&&(o.style.display="flex",o.innerText=Gn.se.adText),e.classList.toggle("advertory-splash-wrapper",!0)},wd=e=>{const t=document.querySelectorAll(".advertory-topscroller-elements");Array.from(t).forEach(e=>e.style.display="flex");const n=document.querySelector(".advertory-takeover-label");n&&(n.style.display="flex",n.innerText=Gn.no.adText,n.classList.add("takeover-topscroller-label"),e.classList.toggle("topscroller-wrapper",!0))},xd=e=>{const t=document.querySelectorAll(".advertory-welcome-page-elements");Array.from(t).forEach(e=>{e.style.display="flex",e.style.animation="elementsAnimation 1.5s ease-out forwards"});const n=document.querySelector(".advertory-takeover-label");n&&(n.style.display="flex",n.innerText=Gn.se.adText,e.classList.toggle("welcome-page-wrapper",!0))},kd=e=>{const t=document.querySelector(".advertory-takeover-label");t&&(t.style.display="flex",t.innerText=Gn.se.adText,e.classList.toggle("advertory-impact-wrapper",!0))},Cd=()=>{const e=document.querySelector(".welcome-page-wrapper, .topscroller-wrapper, .advertory-splash-wrapper");if(!e)return;let t=0;new IntersectionObserver(e=>{e.forEach(e=>{var n;if(e.isIntersecting){window.dispatchEvent(new CustomEvent("advertory:takeoverInView"));(null!==(n=Array.from(e.target.classList))&&void 0!==n?n:[]).includes("advertory-splash-wrapper")&&(()=>{const e=window.scrollY||0;document.body.dataset.scrollY=e.toString(),document.body.style.top="0",document.body.classList.add("page-locked"),document.documentElement.scrollTop=0})(),t++}else t>0&&window.dispatchEvent(new CustomEvent("advertory:takeoverNotInView"))})},{root:null,rootMargin:"0px",threshold:0}).observe(e)},Id=(e,t)=>{let n=e;return e.includes("529299503")&&(n=(e=>{const t=document.createElement("script");return t.textContent=`(${At})()`,e+t.outerHTML})(e)),n=Nn(n),n};var Td=Object.freeze({__proto__:null,createTakeoverAd:e=>H(void 0,void 0,void 0,function*(){const{takeover:t,appearanceConfig:n}=f.get(),{targetId:o}=e,i=document.querySelector(`#${o}`),r=document.querySelector(".advertory-takeover-wrapper");if(!i||!r||!t)return;const a=Ct(e),d=r.offsetHeight,s=window.scrollY>d;r.style.display="block",!s&&ld(a,!1),((e,t)=>{({[ct]:xd,[lt]:bd,[ut]:wd,[pt]:kd})[t](e)})(r,a),Cd(),((e,t)=>{({[ct]:fd,[ut]:fd,[lt]:md,[pt]:yd})[t](e)})(r,a),sd(r,a,t,null==n?void 0:n.theme),yield It(),!s&&ld(a,!0),Et(e,a)}),modifyTakeoverAdContent:e=>{const t=(e=>{var t;const{requests:n}=window.apntag,o=$n(e)?1:0;return null===(t=null==n?void 0:n.tags[e].adResponse.ads[o].rtb)||void 0===t?void 0:t.banner.content})(e);if(!t)return;((e,t)=>{const{requests:n}=window.apntag,o=$n(e)?1:0,i=null==n?void 0:n.tags[e].adResponse.ads[o].rtb;i&&(i.banner.content=t)})(e,Id(t))},modifyTakeoverIframe:(e,t)=>{var n;const o="100%",i="100%";e.resizeAd(t,[o,i]);const r=null===(n=document.querySelector(`#div_utif_${t}`))||void 0===n?void 0:n.querySelector("iframe");if(!r)return;new MutationObserver(e=>{for(const t of e)if("attributes"===t.type&&"style"===t.attributeName){const e=window.getComputedStyle(r),t=e.width,n=e.height;t===o&&n===i||(r.style.width=o,r.style.height=i)}}).observe(r,{attributes:!0,attributeFilter:["style"]})}});class Sd extends Zi{constructor(e,t){var n;super(e.pulse.instance,null!==(n=e.pageContext.publisher)&&void 0!==n?n:""),this.blinkParams=e,this.targetId=t}getTargetId(){return this.targetId}computeInvCode(){const{pageContext:{deviceType:e},placements:t}=this.blinkParams;if(e)return Yi(e,this.targetId,t)}buildAdObject(){const e=Sd.extractAdFormat(this.targetId);return{objectId:this.targetId,objectSdrn:`sdrn:${this.publisher}:ad-slot:${e}`,platform:"blink",adFormat:e}}}const Ed=(e,t)=>{const{siteSpecificConfig:{publisherClassName:n}={},pageContext:{pageType:o},pulse:i}=f.get(),r=document.querySelector(`#${e}`);if(!r)return;if(r.classList.add("disable-cogwheel"),(null==i?void 0:i.instance)&&i.adTrackingEnabled){const t=new Sd(f.get(),e);t.trackLoad(),t.trackImpression(),r.addEventListener("click",()=>t.trackEngagement())}Gi(n,r,Xi,null!=t?t:o);jt({preferredTestIdData:{targetId:e,testId:"finn"}})},Ad=e=>{const{pageContext:{publisher:t=""}}=f.get(),n=document.querySelector(`#${e}`);if(!n)return;const o=`-${t}`;n.classList.remove(`advertory${o}-finn-blink`),n.classList.remove(`advertory${o}-finn-blink-wrapper`)};var Od=Object.freeze({__proto__:null,displaySpecialFormatsForFinnFallback:e=>{const{fullscreenScroll:t}=f.get(),{initNativeAd:n}=f.getHandlers();De(e)&&Zn(e,t),Re(e)&&(null==n||n(e,f.get()))},finnBlinkLoaded:Ed,xandrAdLoaded:Ad});const Pd=(e,t)=>{t.left&&(e.style.left=t.left),t.marginLeft&&(e.style.marginLeft=t.marginLeft)},jd=(e,t,n)=>{var o,i;const r=document.querySelector(`#${e.targetId}`),{siteSpecificConfig:{publisherClassName:a,fullWidthFormatClassName:d}={},fullWidth:s,pageContext:{deviceType:l}}=f.get();if(!r)return null;const c=r.parentElement,u=_t(l)||n;if(r.style.width=u?"100vw":"100%",r.style.position="relative",c&&(c.style.width=u?"100vw":"100%",c.style.position="relative"),a&&d){const e=`advertory-${a}-${d}`;r.classList.add(`${e}__${t}`),null==c||c.classList.add(`${e}-wrapper__${t}`)}const p=null===(i=null===(o=null==s?void 0:s.options)||void 0===o?void 0:o.styles)||void 0===i?void 0:i[l],v=(null==s?void 0:s.enabled)&&p;return!v&&c&&u&&(c.style.left="50%",c.style.marginLeft="-50vw"),v&&p.adContainer&&Pd(r,p.adContainer),v&&p.adContainerWrapper&&c&&Pd(c,p.adContainerWrapper),r},$d=(e,t,n,o,i)=>{var r;const a=jd(e,o,i);if(!a)return void c("[Ad full width] adContainer not found");const d=a.querySelector("iframe"),s=null==d?void 0:d.parentElement;if(!d||!s)return void c("[Ad full width] iframe or iframeWrapper not found");const l=parseFloat(window.getComputedStyle(a,"::before").height)||0,u="undefined"!=typeof CSS&&CSS.supports("transform","scale(calc(100vw / 1080px))")?`calc(100vw / ${t}px)`:String((null===(r=null===document||void 0===document?void 0:document.documentElement)||void 0===r?void 0:r.clientWidth)/t);c(`[Ad full width] ratioWidth ${t}, ratioHeight ${n}, adObjWidth: ${e.width}, scaleFactor ${u}`),s.style.transform=`scale(${u})`,s.style.transformOrigin="left top",a.style.height=`calc(100vw / ${t} * ${n} + ${l}px)`};var Ld=Object.freeze({__proto__:null,applyFullsquareFormat:e=>{$d(e,1080,1080,"fullsquare-ad",!0)},applyFullwidthFormat:e=>{const t=jd(e,"fullwidth-ad",!1);if(!t)return;const n=t.querySelector("iframe");if(!n)return;const{deviceType:o}=f.get().pageContext;n.style.width=_t(o)?"100vw":"100%",(null==n?void 0:n.parentElement)&&(n.parentElement.style.width=_t(o)?"100vw":"100%")},applyNinesixteenFormat:e=>{$d(e,1080,1920,"ninesixteen-ad",!0)}});Vn('.advertory-finn-blink-wrapper{height:100%;display:flex !important;align-items:center;justify-content:center}.advertory-finn-blink-wrapper:not(.brandboard-container){width:100%;margin-inline:auto}.advertory-finn-blink{width:100%;height:500px;max-width:580px;display:flex !important;align-items:center;justify-content:center}.advertory-finn-blink::before{content:"" !important}.advertory-finn-blink iframe{max-width:100%}');const _d={Blink:"Blink"},Nd=new Map,qd=e=>{var t;if(!Nd.has(e)){const t=import(/* webpackIgnore: true */e).then(e=>(e=>{for(const[t,n]of Object.entries(_d)){const o=e[t];null!=o&&(window[n]=o)}})(e)).catch(t=>{throw Nd.delete(e),t});Nd.set(e,t)}return null!==(t=Nd.get(e))&&void 0!==t?t:Promise.resolve()},Fd="https://assets.finn.no/pkg/distribution-fixed/v1/FINNExternalDistribution.modern.js",Md=e=>{var t,n;const o=document.querySelector(`[id^="${e}"]`);return null!==(n=null===(t=null==o?void 0:o.dataset)||void 0===t?void 0:t.finnBlinkId)&&void 0!==n?n:e},Bd=(e,t)=>{const{finnBlink:{enabled:n}={}}=f.get(),o=(null==t?void 0:t.enabled)||(e=>{var t;const n=document.querySelector(`[id^="${e}"]`);return!!(null===(t=null==n?void 0:n.dataset)||void 0===t?void 0:t.noBidAd)})(e);if(!o||!n)return null;const{height:i,requireImage:r,position:a,offset:d}=(null==t?void 0:t.sdkPayload)||{};return{selector:`#${Md(e)}`,enabled:o,position:null!=a?a:e,height:null!=i?i:100,offset:null!=d?d:200,requireImage:r,advertoryTheme:null==t?void 0:t.advertoryTheme}},Dd=(e,t,n)=>H(void 0,void 0,void 0,function*(){const{placements:o,pageContext:{deviceType:i},appearanceConfig:r}=f.get();c(`rendering finn blink ad for ${e}`);const a=U(e),d=o[i].find(e=>e.targetId===a),s=Bd(e,null==d?void 0:d.finnBlink);if(!(null==s?void 0:s.enabled))return c(`Finn blink is not enabled on placement: ${e}`),n&&n(e),void Ad(e);if((e=>{var t;const n=Md(e),o=document.querySelector(`[id^="${n}"]`);return!!(null===(t=null==o?void 0:o.classList)||void 0===t?void 0:t.contains("finn"))})(e))return void c(`Finn blink already loaded ${e}`);const{publisher:l,countryCode:u,finnBlink:p}=t,{sdkPayload:{channel:v}={}}=null!=p?p:{},g=null!=v?v:`${l}.${u}`,h="dark"===(null==r?void 0:r.theme)?"dark":"light";try{const e=yield H(void 0,void 0,void 0,function*(){const{ppid1:e}=bn.getPPIDs();return e});yield(m=Object.assign(Object.assign({},s),{channel:g,userId:e,theme:h}),H(void 0,void 0,void 0,function*(){const{userId:e,theme:t}=m,n=W(m,["userId","theme"]),o=window[_d.Blink];if(!o)return;const i=new o({remote:"https://www.finn.no/distribution-front/external/carousel",userId:e,theme:t});yield i.inject(Object.assign({},n))})),Ed(s.selector.replace("#",""),s.advertoryTheme)}catch(t){c(`Finn blink error ${t}`),n&&n(e),!n&&R(e),Ad(e)}var m}),Rd=()=>H(void 0,void 0,void 0,function*(){const{tcf:e,pageContext:{isMobileApp:t,countryCode:n}}=f.get();return!!(yield at(e,t,n,"finn-blink"))||(c("Skip loading finn blink ad due to missing TCF consent."),!1)}),zd=(e,t)=>{var n;(c(`Appending ${t.id} after ${e.id}`),e.parentElement&&(n=e.parentElement,!Array.from(n.children).some(e=>e.classList.contains("advertory-finn-blink-wrapper"))))?(e.parentElement.style.display="none",e.parentElement.insertAdjacentElement("afterend",t)):c(`Cannot perform afterend on: ${e.id}`)},Ud=e=>document.querySelector(`#${e}`);var Wd=Object.freeze({__proto__:null,handleFinnBlinkOnlyPlacements:e=>H(void 0,void 0,void 0,function*(){if(!e.length)return;const{appearanceConfig:t,pageContext:{deviceType:n}}=f.get(),o=null==t?void 0:t.defaultThreshold[n];for(const t of e){const{requestThreshold:e,targetId:n}=t,i=Ud(n);i&&(yield Qo(i,null!=e?e:o))}}),loadFinnBlinkAd:(e,t,n,o)=>H(void 0,void 0,void 0,function*(){const{pageContext:{isMobileApp:i}}=f.get();if(c(`loadFinnBlinkAd: loading finn blink ad for ${e}`),!(yield Rd())||i)return n&&n(e),Ad(e),void(!n&&R(e));try{yield qd(Fd)}catch(e){console.error(e)}yield Dd(e,t,n),o&&o()}),replaceAdsWithFinnBlink:(e,t)=>H(void 0,void 0,void 0,function*(){var n,o;if(!t)return;const{replacementConfig:i}=t,r=null===(n=null==i?void 0:i.adsToReplace)||void 0===n?void 0:n[e],a=null===(o=null==i?void 0:i.sizes)||void 0===o?void 0:o[e];(()=>{const e=document.getElementById("ads-advertory-anchor");return!(e&&"none"!==getComputedStyle(e).display&&window.advertoryFluepapir)})()&&r&&a?(yield Rd())&&(yield qd(Fd),r.forEach(([e,t])=>{const n=document.querySelector(`[id^="${e}"]`);if(!n)return;const o=(e=>{const{siteSpecificConfig:{publisherClassName:t}={}}=f.get(),n=document.createElement("div"),o=document.createElement("div");return o.id=e,n.appendChild(o),Gi(t,o,Xi),c(`Creating blink container for: ${e}`),n})(t);(e=>{c(`Hiding old ad container: ${e.id}`),e.style.setProperty("display","none","important")})(n),zd(n,o),n.dataset.finnBlinkId=t,Yo().withFullAdsChain(e)})):c(`Finn blink configuration is incorrect: ${JSON.stringify(i)}`)})});const Hd=Vn("[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-slider-time,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-slider-time{display:none}[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-button-container{padding:0 6px;height:36px}[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container .jw-icon-fullscreen,[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container .jw-settings-sharing,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-button-container .jw-icon-fullscreen,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-button-container .jw-settings-sharing{display:none}[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container .jw-icon,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-button-container .jw-icon{margin-right:3px;height:unset;width:unset;bottom:0}[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container .jw-icon-volume,[id^=integration_godt-menu]>article .jw-controls>.jw-controlbar .jw-button-container .jw-icon-playback,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-button-container .jw-icon-volume,.advertory-godt-ad-weekly-menu .jw-controls>.jw-controlbar .jw-button-container .jw-icon-playback{display:flex}");var Vd=Object.freeze({__proto__:null,default:Hd});const Kd=Vn("[data-carousel-viewport]{position:relative;overflow:hidden;padding-bottom:4px;touch-action:pan-y;user-select:none}[data-carousel-track]{display:flex;gap:10px;will-change:transform}[data-carousel-track] [data-carousel-slide]:not(.is-active){opacity:.9;filter:saturate(0.72)}[data-carousel-track] .carousel-slide{flex:0 0 82%;margin:0;overflow:hidden;border:1px solid hsla(0,0%,100%,.68);border-radius:12px;box-shadow:#adadad 1px 1px 1px}[data-carousel-track] .carousel-slide .slide-image{display:block;width:100%;height:auto;aspect-ratio:1/1;object-fit:cover;pointer-events:none}");var Gd=Object.freeze({__proto__:null,default:Kd});const Xd=e=>e===b.NO?"schibsted":"schibstedse";var Jd=Object.freeze({__proto__:null,getCampaign:Xd,loadNorstat:()=>H(void 0,void 0,void 0,function*(){const{norstat:{enabled:e}={},pageContext:{countryCode:t,isMobileApp:n},tcf:o}=f.get(),i=yield at(o,n,t,"norstat");if(!e||n||!i)return;const r=(e=>{const{ppid1:t,ppid2:n}=yn.getPPIDs(),{ppid1:o,ppid2:i}=bn.getPPIDs(),r=(new fn).add(n,cn[e]).add(t,un[e]).add(i,pn[e]).add(o,vn[e]);return`${r.buildNorstatPath()}?${r.buildNorstatQuery("alias").toString()}`})(t);((e,t,...n)=>{H(void 0,[e,t,...n],void 0,function*(e,t,n=!0){if(document.getElementById(t))return;const o=document.createElement("img");o.src=e,o.id=null!=t?t:"",n&&(o.style.display="none"),document.body.appendChild(o)})})(`https://sch-map.norstatsurveys.com/api/nids/${Xd(t)}/map/${r}`,"norstat")})});const Yd=".advertory-right-column-track",Qd="--advertory-right-column-track-height",Zd=e=>e.getBoundingClientRect().top+window.scrollY,es=(e,t)=>`${e}-${t}`,ts=(e,t,n)=>{var o;const i=Array.from(null!==(o=e.querySelectorAll(t))&&void 0!==o?o:[]),r=(e=>e.map(e=>{var t;return null===(t=document.querySelector(`[id^="${e}"]`))||void 0===t?void 0:t.parentElement}).map((e,t)=>({point:e,originalIndex:t})).filter(e=>Boolean(e.point)))(n);if(0===r.length)return;const a=Zd(e);r.forEach(({point:e,originalIndex:t})=>{((e,t,n)=>{const o=Zd(e),i=es(Qd,t),r=o-n,a=es("--advertory-right-column-split-point-height",t),d=ta(e);na({[i]:ea(r),[a]:ea(d)})})(e,t+1,a),(e=>{const t=null==e?void 0:e.id;if(!t)return;const n=es("--advertory-right-column-ad-height",t),o=ta(e);na({[n]:ea(o)})})(i[t])});((e,t)=>{const n=Zd(e)-t;na({[Qd]:ea(n)})})(r[Math.min(i.length,r.length-1)].point,a)};let ns=!1;var os=Object.freeze({__proto__:null,initRightColumnSplit:e=>{if(!(null==e?void 0:e.enabled)||ns)return;const{splitPointIDs:t,adSelector:n,trackSelector:o=Yd}=e,i=document.querySelector(o);if(!i)return;ns=!0;const r=()=>{ts(i,n,t)};r(),window.addEventListener("resize",r),window.addEventListener("orientationchange",r),window.addEventListener("load",r),window.addEventListener("advertory:adLoaded",()=>{requestAnimationFrame(r)});new ResizeObserver(r).observe(i)}});class is{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:o,pathname:i}=new URL(n);if(!o.includes("www.vg.no")&&!i.includes("annonsorinnhold"))return[n];const r=i.split("/");return r.length?[...r.filter(Boolean).slice(1).map(e=>e),n]:[n]}}class rs{getPulseObjectId(){return""}getPulsePageId(e,t){return""}}const as="[data-k5a-teaser-analytics]";class ds extends Zi{constructor(e,t,n,o){super(e,""),this.root=t,this.newsroomStrategy=n,this.pageType=o}getTargetId(){return this.root.id}buildAdObject(){return this.getEventInput("view")}parseKilkayaData(){const e=this.root.querySelector("article");if(!e)return{};const t=e.dataset.k5aTeaserAnalytics;try{return t?JSON.parse(t):{}}catch(e){return{}}}mapPageType(e){var t;return null!==(t={front:"Frontpage",article:"Article",section:"Article",collection:"Article",other:"Article"}[null!=e?e:"front"])&&void 0!==t?t:"Frontpage"}getArticleId(){var e;return null!==(e=location.pathname.split("/").slice(-2,-1).pop())&&void 0!==e?e:""}getPlacementData(){var e,t;const n=this.root.closest(".kilkaya-wrapper");return{columnName:null!==(e=null==n?void 0:n.dataset.pulseColumnname)&&void 0!==e?e:"",primaryPosition:Number(null==n?void 0:n.dataset.pulsePrimaryposition)||0,secondaryPosition:Number(null==n?void 0:n.dataset.pulseSecondaryposition)||0,slot:null!==(t=null==n?void 0:n.dataset.slotTag)&&void 0!==t?t:""}}getEventTarget(){const{link:e,itemId:t,title:n}=this.parseKilkayaData();return{id:t,name:this.normalizePlacementTitle(null!=n?n:""),type:"Page",url:e}}normalizePlacementTitle(e){return e.replace(/<[^>]+>/gi,"").replace(/[^a-z0-9æøå\s_-]/gi,"")}waitForAnalyticsData(e){const t=this.root.querySelector(as);if(Boolean(null==t?void 0:t.dataset.k5aTeaserAnalytics))return void e();const n=new MutationObserver(()=>{const t=this.root.querySelector(as);Boolean(null==t?void 0:t.dataset.k5aTeaserAnalytics)&&(n.disconnect(),e())});n.observe(this.root,{attributes:!0,childList:!0,subtree:!0,attributeFilter:["data-k5a-teaser-analytics"]})}trackLoad(){}trackImpression(){Qi(this.root,()=>this.waitForAnalyticsData(()=>{var e,t;const n=new CustomEvent("advertory:partnerstudioAdImpression",{detail:{ad:this.parseKilkayaData().placement}});window.dispatchEvent(n);const o=this.getEventInput("view");this.pulse.trackLegacyViewUIElement?this.pulse.trackLegacyViewUIElement(o):this.pulse.trackViewUIElement?this.pulse.trackViewUIElement(o):null===(t=(e=this.pulse).trackElementView)||void 0===t||t.call(e,o)}))}trackEngagement(e){var t,n;const o=this.getEventInput("click");this.pulse.trackLegacyClickUIElement?this.pulse.trackLegacyClickUIElement(o):this.pulse.trackClickUIElement?this.pulse.trackClickUIElement(o):null===(n=(t=this.pulse).trackElementClick)||void 0===n||n.call(t,o)}}class ss extends ds{getEventBaseData(){var e,t,n,o;const{clientName:i,creativeId:r,itemId:a,placement:d}=this.parseKilkayaData(),{primaryPosition:s,secondaryPosition:l,slot:c}=this.getPlacementData(),u=this.mapPageType(this.pageType),p=null===(e=this.newsroomStrategy)||void 0===e?void 0:e.getPulsePageId(null!==(t=this.pageType)&&void 0!==t?t:"front",this.getArticleId());return Object.assign(Object.assign({},a&&{"@id":`sdrn:kilkaya:teaser:${a}`}),{"@type":"UIElement",position:d,elementType:"Article",custom:{customer:i,creativeId:null!=r?r:a},page:{"@id":null!=p?p:d,"@type":u,url:location.origin},placement:{primaryPosition:s,secondaryPosition:l,source:c},tags:null===(o=null===(n=this.newsroomStrategy)||void 0===n?void 0:n.getTags)||void 0===o?void 0:o.call(n,this.root)})}getEventInput(e){return{object:this.getEventBaseData(),partnerstudio:this.getEventPartnerstudioData(e),target:this.getEventTarget(),provider:this.getProviderData()}}getEventPartnerstudioData(e){return Object.assign(Object.assign({},this.parseKilkayaData()),{type:e,tracking_type:"ad",xandrAdLoaded:!1})}getProviderData(){return{productTag:"partnerstudio"}}}class ls extends ds{getEventBaseData(){var e,t;const{title:n="",clientName:o="",creativeId:i="",link:r="",itemId:a=""}=this.parseKilkayaData(),{columnName:d,primaryPosition:s,secondaryPosition:l,slot:c}=this.getPlacementData(),u={publicUrl:r,urlPath:r?new URL(r).pathname:""},{publicUrl:p,urlPath:v}=r&&(null===(t=null===(e=this.newsroomStrategy)||void 0===e?void 0:e.transformUrl)||void 0===t?void 0:t.call(e,r))||u;return Object.assign(Object.assign({},a&&{"@id":`sdrn:kilkaya:teaser:${a}`}),{"@type":"UIElement",elementType:"Teaser",layout:{elementSize:"large",imageUrl:"",name:"large"},name:n,placement:{columnName:d,primaryPosition:s,secondaryPosition:l,source:c},tags:[o,n,p,v].filter(Boolean),"spt:custom":{is_sponsored:!0,sponsor:o,"spt:creativeId":i,pageTitle:n,publicUrl:p,urlPath:v},url:location.origin})}getEventInput(e){return{object:this.getEventBaseData(),target:this.getEventTarget()}}}class cs{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 H(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 c("[Privacy Broker] User is not logged in."),null}})}isUserLoggedIn(){return H(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 us=/^glci_/,ps="gender_",vs="geo_",gs="male",hs="female",ms=()=>H(void 0,void 0,void 0,function*(){try{const t=yield(e=500,H(void 0,void 0,void 0,function*(){return Promise.race([H(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)})}),new Promise(t=>setTimeout(()=>t(void 0),e))])})),n=new cs(t),o=yield n.getIdentityUser(),{gender:i}=null!=o?o:{};return i===gs||i===hs?`${ps}${i}`:void 0}catch(e){return}var e}),fs=()=>H(void 0,void 0,void 0,function*(){const e=[],t=yield ms(),n=(()=>{const e=rn().map(e=>`${vs}${e.replace(us,"")}`);return Array.from(new Set(e))})();return t&&e.push(t),n&&e.push(...n),e});class ys{getPulseObjectId(){return"sdrn:e24:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(e,t){return e===Xa.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:o}=new URL(n),i=o.split("/").filter(Boolean);return i.length?[...i.slice(1),n]:[n]}}class bs{getPulseObjectId(){return"sdrn:aftenposten:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:aftenposten:frontpage:Frontpage"}}class ws{getPulseObjectId(){return"sdrn:bt:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:bt:frontpage:Frontpage"}}class xs{getPulseObjectId(){return"sdrn:stavangeraftenblad:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:stavangeraftenblad:frontpage:Frontpage"}}class ks{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===Xa.FRONT?"sdrn:svdse:frontpage:front":`sdrn:svdse:article:${t}`}}class Cs{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""}}class Is{handleKilkayaStreamTracking({pulse:e,pageContext:{pageType:t,publisher:n,countryCode:o}}){if(!(null==e?void 0:e.instance))return;const i={[Rt.VG]:new is,[Rt.E24]:new ys,"no-aftenposten":new bs,[Rt.BT]:new ws,"no-bergenstidende":new ws,[Rt.SA]:new xs,"no-stavangeraftenblad":new xs,[Rt.SVD]:new ks,[Rt.AFTONBLADET]:new Cs}[n]||new rs;((e,t,n,o)=>{const i=document.querySelectorAll("k5a-stream");i.length&&i.forEach(i=>{const r=o===b.SE?new ls(e,i,t):new ss(e,i,t,n);r.trackImpression(),i.addEventListener("click",()=>r.trackEngagement())})})(e.instance,i,t,o)}injectKilkayaMeta(e){return H(this,void 0,void 0,function*(){const t=document.createElement("script"),n=yield fs();t.textContent=`var k5aMeta = { consent: ${e}, cntTag: ${JSON.stringify(n)} };`,document.head.appendChild(t)})}observeForKilkayaBackfills(){document.addEventListener("K5A:EmptyStreamSlot",e=>{var t;const n=null===(t=null==e?void 0:e.detail)||void 0===t?void 0:t.streamSlot;if(c(`Kilkaya event for slot: ${n}`),!n)return void c("Kilkaya slot empty, Xandr backfill won't be loaded");const o=n.parentElement;o?(c(`Kilkaya placement ${n.getAttribute("name")} has not been loaded, loading Xandr backfill`),this.showBackfill(o)):c("Kilkaya parent slot empty, Xandr backfill won't be loaded")})}showBackfill(e){var t;const n=e.querySelector(".fallback");if(!n)return;n.style.display="flex";const o=null!==(t=n.dataset.fallbackTargetId)&&void 0!==t?t:"";z(o)}loadKilkayaScript(e){return H(this,void 0,void 0,function*(){yield Sn(e)})}run(e){return H(this,void 0,void 0,function*(){var t,n;const{tcf:o,pageContext:{isMobileApp:i,countryCode:r},kilkaya:a}=e;if(!(null==a?void 0:a.enabled))return;const d=yield at(o,i,r,"kilkaya");this.observeForKilkayaBackfills(),yield this.injectKilkayaMeta(d),yield this.loadKilkayaScript(null!==(n=null===(t=a.options)||void 0===t?void 0:t.kilkayaUrl)&&void 0!==n?n:""),this.handleKilkayaStreamTracking(e)})}}var Ts=Object.freeze({__proto__:null,Kilkaya:({placementName:e,slotTag:t,fallbackTargetId:o,children:i,pulseData:r,htmlAttributes:a})=>{const d=(e,t)=>{const n={};if(!e)return n;for(const[o,i]of Object.entries(e)){n[t?`${t}-${o}`:o]=String(i)}return n},s=d(r,"data-pulse"),l=d(a,"data");return n.jsxs("div",Object.assign({className:"kilkaya-wrapper kilkaya-lock-height",style:{width:"100%"},"data-slot-tag":t},s,l,{children:[n.jsx("div",{className:"inscreen-target"}),n.jsx("k5a-stream",{name:e,"slot-tag":t}),n.jsx("div",{className:"container"}),n.jsx("div",{className:"fallback","data-fallback-target-id":o,style:{display:"none"},children:i})]}))},runKilkaya:e=>H(void 0,void 0,void 0,function*(){const t=new Is;yield t.run(e)})});Vn('.advertory-shared-ad-native-seamless{position:relative;overflow:hidden;border-radius:10px}.advertory-shared-ad-native-seamless .ad-info{position:absolute;top:0;right:0;z-index:1}.advertory-shared-ad-native-seamless .ad-info div[role=button]{top:0;right:0;left:auto;transform:none;background-color:hsla(0,0%,100%,.45);border-bottom-left-radius:13px}.advertory-shared-ad-native-seamless .ad-link{text-decoration:none;color:inherit}.advertory-shared-ad-native-seamless .ad-link .ad-content{position:relative;min-width:320px;height:100%;margin:0 auto;padding:8px 8px 0;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;background-color:var(--color-background-secondary, #ffffff);color:var(--color-text-primary, #333)}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-header{padding:0 0 8px 10px;margin-right:18px;display:flex;justify-content:space-between;gap:50px}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-header .ad-logo{max-width:100%;max-height:40px;min-width:0;object-fit:contain;object-position:left center}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-header .ad-annons{flex-shrink:0;margin-left:auto;margin-right:5px;font-size:10px;font-weight:400;color:var(--color-text-primary, #333);white-space:nowrap;line-height:.7;text-transform:lowercase}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-image-container{width:100%;aspect-ratio:1/1;overflow:hidden;display:flex;justify-content:center;align-items:center}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-image-container .ad-image{height:100%;width:auto;max-width:100%;object-fit:cover}@media screen and (min-width: 768px){.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-image-container{aspect-ratio:1.91/1}}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-carousel{display:flex;justify-content:center;align-items:center;width:100%}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-carousel .carousel-window{width:calc(100% + 16px);min-width:calc(100% + 16px);mask-image:linear-gradient(to right, transparent 0%, #000 5%, #000 95%, transparent 100%);-webkit-mask-image:linear-gradient(to right, rgba(0, 0, 0, 0.5) 0%, #000 5%, #000 95%, rgba(0, 0, 0, 0.5) 100%)}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-footer{display:flex;flex-direction:column;justify-content:center;padding:13px 10px}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-footer .ad-row{display:flex;align-items:center;justify-content:space-between}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-footer .ad-row .ad-text-wrapper{display:flex;flex-direction:column;gap:5px;flex-grow:1;min-width:0;padding-right:8px;align-items:start}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-footer .ad-row .ad-text-wrapper .ad-description{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;line-clamp:1;overflow:hidden;min-width:0;font-size:15.5px;font-weight:500;text-align:left;word-spacing:-1px;color:var(--color-text-primary, #111111)}@media screen and (min-width: 768px){.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-footer .ad-row .ad-text-wrapper .ad-description{font-size:18px}}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-footer .ad-row .ad-text-wrapper .ad-headline{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;min-width:0;margin:0;font-size:16px;font-weight:400;line-height:1.2;word-spacing:-1px;text-align:left;color:var(--color-text-secondary, #111111)}@media screen and (min-width: 768px){.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-footer .ad-row .ad-text-wrapper .ad-headline{font-size:18px}}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-footer .ad-row .ad-purchase{display:flex;flex-direction:column;flex-shrink:0;align-items:center;gap:6px}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-footer .ad-row .ad-purchase .ad-price{font-size:13px;font-weight:500;white-space:nowrap}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-footer .ad-row .ad-purchase .ad-price:empty{display:none}.advertory-shared-ad-native-seamless .ad-link .ad-content .ad-footer .ad-row .ad-action{flex-shrink:0;padding:10px 14px;font-size:14px;line-height:1;color:var(--color-text-on-accent, #111111);white-space:nowrap;background-color:var(--color-accent, #d9d9d9);border-radius:99px;font-weight:500}');var Ss=Object.freeze({__proto__:null});Vn('.advertory-no-ad-native-default{width:calc(100% - 32px);min-height:250px;margin:auto;color:#dfdfdf;font-family:"Inter",sans-serif;font-weight:600;text-align:left;position:relative;box-sizing:border-box;text-decoration:none;display:table;table-layout:fixed;font-size:14px}@media screen and (min-width: 768px){.advertory-no-ad-native-default{width:580px;height:400px}}.advertory-no-ad-native-default *{box-sizing:border-box;line-height:normal;text-transform:none}.advertory-no-ad-native-default .ad-info{position:absolute;top:0;left:0;height:26px;width:26px;z-index:1000;background-color:#dfdfdf;border-bottom-right-radius:13px;transform:none;transform-origin:center}.advertory-no-ad-native-default .ad-link{display:block;text-decoration:none;color:#000;background-color:rgba(0,0,0,0);border:1px solid #dfdfdf}.advertory-no-ad-native-default .ad-content{display:block}.advertory-no-ad-native-default .ad-image-container{background-color:#dfdfdf;display:flex;position:relative;line-height:0}.advertory-no-ad-native-default .ad-image-container .ad-image{position:static;width:100%;aspect-ratio:1.91;height:auto}.advertory-no-ad-native-default .ad-text-container{background:#f5faff;overflow:auto;padding:8px}@media screen and (min-width: 768px){.advertory-no-ad-native-default .ad-text-container{padding:12px 16px}}.advertory-no-ad-native-default .ad-text-container .ad-sponsor{font-size:12px;margin:0;text-transform:uppercase;display:block}@media screen and (min-width: 768px){.advertory-no-ad-native-default .ad-text-container .ad-sponsor{font-size:14px;margin-right:8px}}.advertory-no-ad-native-default .ad-text-container .ad-sponsor .ad-label{font-weight:600;color:#fff;background-color:#467aae;display:inline-block;padding:4px 6px;border-radius:4px;border:none;margin-right:4px}.advertory-no-ad-native-default .ad-text-container .ad-title{margin:4px 0 0 0;line-height:normal;color:#000;font-size:18px;display:flex;flex-direction:column;justify-content:center}@media screen and (min-width: 768px){.advertory-no-ad-native-default .ad-text-container .ad-title{margin:12px 0 0 0;font-size:28px}}.advertory-vg-native-ad__front .advertory-no-ad-native-default{width:100%;height:auto}.advertory-aftenposten-native-ad-wrapper__front{justify-content:center}.advertory-e24-native-ad-wrapper__article{margin-bottom:calc(-40px + 4rem)}@media screen and (min-width: 768px){.advertory-e24-native-ad-wrapper__article{margin-bottom:calc(12px + .75rem)}}');var Es=Object.freeze({__proto__:null});module.exports=Za;
|