@schibsted/advertory 3.1.0 → 3.1.2
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-BvY6NMzY.js +1 -0
- package/aftenposten/es/{events-yliYqfOC.js → events-Djfqvmhv.js} +1 -1
- package/aftenposten/es/{index-DCZfnOad.js → index-BEjmAztd.js} +1 -1
- package/aftenposten/es/{index-CP4ZWjzx.js → index-BYFTKDzx.js} +1 -1
- package/{aftonbladet/es/index-B6TdXecq.js → aftenposten/es/index-CBpU2KIc.js} +1 -1
- package/aftenposten/es/{index-Dk_A6WRk.js → index-CeWsNDaB.js} +1 -1
- package/aftenposten/es/{index-C50gd16G.js → index-CgKKFhy_.js} +1 -1
- package/aftenposten/es/{index-D6mtOCx3.js → index-PcXZJF3P.js} +1 -1
- package/aftenposten/es/{index-9vv_VnGX.js → index-_4wK0wyK.js} +1 -1
- package/aftenposten/es/{index-BhmEb-RG.js → index-nMvOsVPJ.js} +1 -1
- package/aftenposten/es/index.js +1 -1
- package/aftenposten/es/{styles-B7FKpRCo.js → styles-BLJeUwVp.js} +1 -1
- package/aftenposten/es/{styles-CcvBCbS2.js → styles-BOm0-pac.js} +1 -1
- package/aftenposten/es/{styles-BTTzyRjj.js → styles-Bpctvf2X.js} +1 -1
- package/aftenposten/es/{styles-D_fo9tuC.js → styles-Bt2UC0GP.js} +1 -1
- package/aftenposten/es/{styles-DzGaydAj.js → styles-C6tcHY54.js} +1 -1
- package/aftenposten/es/{styles-CeAB51fT.js → styles-CQPBQsiN.js} +1 -1
- package/aftenposten/es/{styles-A-ZzYAHZ.js → styles-CjsPf5Mm.js} +1 -1
- package/aftenposten/es/{styles-Cy2GD_pK.js → styles-DGYj8Sg1.js} +1 -1
- package/aftenposten/es/{styles-Xk5jBHXL.js → styles-EPnQvn0h.js} +1 -1
- package/aftenposten/es/{styles-DvdWc3Dw.js → styles-lK6QfW3y.js} +1 -1
- package/aftenpostenv2/es/_auto-entry_aftenpostenv2-CcWCkVln.js +1 -0
- package/aftenpostenv2/es/{events-CK6Yh2e2.js → events-CndpkhSn.js} +1 -1
- package/aftenpostenv2/es/{index-DqFATPzr.js → index-B_YRSCxb.js} +1 -1
- package/{aftonbladetv2/es/index-pNY5Ztpl.js → aftenpostenv2/es/index-B_oEucht.js} +1 -1
- package/aftenpostenv2/es/{index-D7GVbDzA.js → index-CWLSVMOe.js} +1 -1
- package/aftenpostenv2/es/{index-CgQV3xEU.js → index-CYFeiwMS.js} +1 -1
- package/aftenpostenv2/es/{index-BfYRcutn.js → index-DubyXeHc.js} +1 -1
- package/aftenpostenv2/es/{index-IAvOT3ej.js → index-JAZb5FrS.js} +1 -1
- package/aftenpostenv2/es/{index-OPuFOQir.js → index-Rtj84XW5.js} +1 -1
- package/aftenpostenv2/es/{index-QQ97vmoD.js → index-_j6GaOP_.js} +1 -1
- package/aftenpostenv2/es/index.js +1 -1
- package/aftenpostenv2/es/{styles-CAk0EqNU.js → styles-1jFCjqut.js} +1 -1
- package/aftenpostenv2/es/{styles-BCbJ8Yvi.js → styles-3FeDMacn.js} +1 -1
- package/aftenpostenv2/es/{styles-R2Kmc0to.js → styles-B3sh40Mg.js} +1 -1
- package/aftenpostenv2/es/{styles-6cyOk9cg.js → styles-CTM6Bmhq.js} +1 -1
- package/aftenpostenv2/es/{styles-Djka1Tw3.js → styles-CcRxjZv8.js} +1 -1
- package/aftenpostenv2/es/{styles-BGcigVfW.js → styles-DVmlwU9r.js} +1 -1
- package/aftenpostenv2/es/{styles-FlHd4TuD.js → styles-iVONP82z.js} +1 -1
- package/aftenpostenv2/es/{styles-BPFqk2pl.js → styles-jW7kpPuM.js} +1 -1
- package/aftenpostenv2/es/{styles-D4cyPHdr.js → styles-kN89OYoQ.js} +1 -1
- package/aftenpostenv2/es/{styles-nbMQaIj0.js → styles-yDLhwGY2.js} +1 -1
- package/aftonbladet/cjs/index.js +1 -1
- package/aftonbladet/es/_auto-entry_aftonbladet-CXFDMyh3.js +1 -0
- package/aftonbladet/es/{events-DhNCgbCo.js → events-FfqW4onK.js} +1 -1
- package/aftonbladet/es/{index-Bqt_XE8I.js → index-4WX1LTEE.js} +1 -1
- package/{aftenposten/es/index-8Gs0ZUnH.js → aftonbladet/es/index-BNwdb5kX.js} +1 -1
- package/aftonbladet/es/{index-DxLbReWK.js → index-Bbx3cUtD.js} +1 -1
- package/aftonbladet/es/{index-C8Ow8hFh.js → index-BxM5dlcJ.js} +1 -1
- package/aftonbladet/es/{index-C_OfDbzP.js → index-Cs0726uq.js} +1 -1
- package/aftonbladet/es/{index-Cy-tOdmU.js → index-CtjlVj8c.js} +1 -1
- package/aftonbladet/es/{index-D2wR6pNy.js → index-DJOCCLbR.js} +1 -1
- package/aftonbladet/es/{index-CA4IyV6K.js → index-DWLq3UtD.js} +1 -1
- package/aftonbladet/es/index.js +1 -1
- package/aftonbladet/es/{styles-Dc8EI6a-.js → styles-BRj5Pm1h.js} +1 -1
- package/aftonbladet/es/{styles-uxk5IoAL.js → styles-CKHwolqP.js} +1 -1
- package/aftonbladet/es/{styles-CqhPPOLK.js → styles-Cc_VBiUa.js} +1 -1
- package/aftonbladet/es/{styles-BUfTIzrZ.js → styles-DOcJFO_g.js} +1 -1
- package/aftonbladet/es/{styles-CBnmzVKB.js → styles-DuW_-Qiu.js} +1 -1
- package/aftonbladetv2/es/_auto-entry_aftonbladetv2-CdZIRMex.js +1 -0
- package/aftonbladetv2/es/{events-DZl4_J08.js → events-BGNPwius.js} +1 -1
- package/aftonbladetv2/es/{index-BND4LAC5.js → index-7JdG7yFN.js} +1 -1
- package/aftonbladetv2/es/{index-EOWyxc8F.js → index-BMaA1Spt.js} +1 -1
- package/aftonbladetv2/es/{index-CeWfH63g.js → index-C-f5W8w-.js} +1 -1
- package/aftonbladetv2/es/{index-B2QwXUEO.js → index-CiAInXOA.js} +1 -1
- package/{aftenpostenv2/es/index-oFLC6DTt.js → aftonbladetv2/es/index-CtT25tc8.js} +1 -1
- package/aftonbladetv2/es/{index-J64G5n0c.js → index-DGrkYg33.js} +1 -1
- package/aftonbladetv2/es/{index-NADXTKGj.js → index-DclYS9iH.js} +1 -1
- package/aftonbladetv2/es/{index-FgrirXff.js → index-DsXHlqiw.js} +1 -1
- package/aftonbladetv2/es/index.js +1 -1
- package/aftonbladetv2/es/{styles-D3nZpOF4.js → styles-CIeejDSp.js} +1 -1
- package/aftonbladetv2/es/{styles-BCceqX-0.js → styles-D-FXcaqa.js} +1 -1
- package/aftonbladetv2/es/{styles-ChxOOLGD.js → styles-DXa8dXuS.js} +1 -1
- package/aftonbladetv2/es/{styles-Bzb2K0pX.js → styles-PC2UmnHJ.js} +1 -1
- package/aftonbladetv2/es/{styles-CGOTU6QN.js → styles-ztp40LNv.js} +1 -1
- package/bt/cjs/index.js +1 -1
- package/bt/es/_auto-entry_bt-BT8bdkOH.js +1 -0
- package/bt/es/{events-CWPev8pl.js → events-CA3YRpvp.js} +1 -1
- package/bt/es/{index-CeWtEIeu.js → index-B6lsxBQR.js} +1 -1
- package/{sa/es/index-DzbWhtj4.js → bt/es/index-Bf8N98sz.js} +1 -1
- package/bt/es/{index-BpgWIc0r.js → index-C9DASDNY.js} +1 -1
- package/bt/es/{index-jKF_36rL.js → index-CfKBejm1.js} +1 -1
- package/bt/es/{index-DaJfwK3H.js → index-D_vlG00c.js} +1 -1
- package/{sa/es/index-D_O9gVLd.js → bt/es/index-Ds4bW_9u.js} +1 -1
- package/{sa/es/index-bZRj-NcA.js → bt/es/index-Y0bNHpHd.js} +1 -1
- package/bt/es/{index-BHt0q6G3.js → index-mi7RH9av.js} +1 -1
- package/bt/es/index.js +1 -1
- package/{sa/es/styles-z-Vz9oES.js → bt/es/styles-B_xNBSOu.js} +1 -1
- package/{sa/es/styles-CxnXppQ5.js → bt/es/styles-BikhjQDd.js} +1 -1
- package/{vg/es/styles-BA0XTH86.js → bt/es/styles-Btg_p1x7.js} +1 -1
- package/bt/es/{styles-CY65idgd.js → styles-Crc0_1WT.js} +1 -1
- package/{vg/es/styles-CUJIjjqJ.js → bt/es/styles-CuCBLxM3.js} +1 -1
- package/bt/es/{styles-zcW9Sx28.js → styles-D5a6lNis.js} +1 -1
- package/{sa/es/styles-AmHsD-RA.js → bt/es/styles-D9d8Cdnp.js} +1 -1
- package/bt/es/{styles-B8zz6C0U.js → styles-DBbJ5wGK.js} +1 -1
- package/bt/es/{styles-Cy1sn0oB.js → styles-DaRuPKss.js} +1 -1
- package/btv2/es/_auto-entry_btv2-D7E0GRM1.js +1 -0
- package/btv2/es/{events-BBMBGzjF.js → events-nvcCEZqq.js} +1 -1
- package/btv2/es/{index-CjL1gzv8.js → index-Bb_ltY--.js} +1 -1
- package/btv2/es/{index-DPUe0Za4.js → index-CH4mbydt.js} +1 -1
- package/btv2/es/{index-DIX3iT0Q.js → index-CO9bqR3D.js} +1 -1
- package/btv2/es/{index-BJtCyaPU.js → index-DBTavN3i.js} +1 -1
- package/btv2/es/{index-BFfh_nXv.js → index-DCQjdWE2.js} +1 -1
- package/btv2/es/{index-DF2v5i01.js → index-Dc1WxnvN.js} +1 -1
- package/btv2/es/{index-D9UoiKdN.js → index-DtC7HUrt.js} +1 -1
- package/btv2/es/{index-D2nJrq0W.js → index-YoJh-uAw.js} +1 -1
- package/btv2/es/index.js +1 -1
- package/btv2/es/{styles-CikOGq7W.js → styles-7tdU6_5z.js} +1 -1
- package/{vgv2/es/styles-jazeZfsa.js → btv2/es/styles-B4tRP_n_.js} +1 -1
- package/btv2/es/{styles-DHN2GM4N.js → styles-CHNp59OO.js} +1 -1
- package/{sav2/es/styles-D8zham8y.js → btv2/es/styles-C_2P0tPt.js} +1 -1
- package/{sav2/es/styles-DsRA_Ls1.js → btv2/es/styles-Dj__4uxu.js} +1 -1
- package/{sav2/es/styles-CGs4MkqV.js → btv2/es/styles-Il_rUi-I.js} +1 -1
- package/{vgv2/es/styles-BgE0G1OQ.js → btv2/es/styles-gYEcWwyP.js} +1 -1
- package/btv2/es/{styles-CDgXxsLm.js → styles-gccX6iHh.js} +1 -1
- package/btv2/styles.css +1 -1
- package/e24/es/_auto-entry_e24-lmXr-cWc.js +1 -0
- package/e24/es/{events-B-i5FsRn.js → events-em44BUfv.js} +1 -1
- package/e24/es/{index-yuIg4ct4.js → index-B24bkIcI.js} +1 -1
- package/e24/es/{index-DglthAm2.js → index-BSpizElz.js} +1 -1
- package/e24/es/{index-CGoZW0ZV.js → index-BkgL8ip0.js} +1 -1
- package/e24/es/{index-CoQdTLiP.js → index-BowvVP4w.js} +1 -1
- package/e24/es/{index-B5g6P2Ui.js → index-C9G2urqf.js} +1 -1
- package/e24/es/{index-CM0ugFDY.js → index-D_sYdHQP.js} +1 -1
- package/e24/es/{index-D1zuXhAC.js → index-Dh9HbOwe.js} +1 -1
- package/e24/es/{index-DsZw8SDP.js → index-IbhHnJx4.js} +1 -1
- package/e24/es/index.js +1 -1
- package/e24/es/{styles-DpiEj4_v.js → styles-CKqmN_4y.js} +1 -1
- package/e24/es/{styles-B9FQK353.js → styles-CMZPVch5.js} +1 -1
- package/e24/es/{styles-CPDVmy9-.js → styles-Cg88eyjZ.js} +1 -1
- package/e24/es/{styles-D9ZAT7m8.js → styles-CodlP39y.js} +1 -1
- package/e24/es/{styles-CSzy2tpL.js → styles-CophI7fE.js} +1 -1
- package/e24/es/{styles-DyVSfwhf.js → styles-D5paQVK2.js} +1 -1
- package/e24/es/{styles-nCtCGtUu.js → styles-DWz69iBs.js} +1 -1
- package/e24/es/{styles-CX7Qq_93.js → styles-DZuy0mfh.js} +1 -1
- package/{tv4/es/styles-EphLf12N.js → e24/es/styles-DxYzwa7J.js} +1 -1
- package/e24/es/{styles-DkOJ5VCx.js → styles-JhEc7HC2.js} +1 -1
- package/e24/es/{styles-CSStxtSn.js → styles-cRKv7sg0.js} +1 -1
- package/fotbollskanalen/cjs/index.js +1 -1
- package/fotbollskanalen/es/_auto-entry_fotbollskanalen-CUUcS1-A.js +1 -0
- package/fotbollskanalen/es/{events-B9G7KvfD.js → events-PLuiQnF7.js} +1 -1
- package/fotbollskanalen/es/{index-DnbATiuq.js → index-BwA9wqyq.js} +1 -1
- package/fotbollskanalen/es/{index-D6Pb6iJK.js → index-Bxj-o644.js} +1 -1
- package/fotbollskanalen/es/{index-CcUVSwT0.js → index-Cb1SwEs8.js} +1 -1
- package/fotbollskanalen/es/{index-Dc-AGLo4.js → index-ChypEeNl.js} +1 -1
- package/fotbollskanalen/es/{index-D-pDLDeE.js → index-Dp1HC5I1.js} +1 -1
- package/fotbollskanalen/es/{index-BIbkcKYq.js → index-DyH5dIHK.js} +1 -1
- package/fotbollskanalen/es/{index-DF7RNI1t.js → index-Ehw2Kpl3.js} +1 -1
- package/fotbollskanalen/es/{index-DfGpbEJM.js → index-PSmgZEW6.js} +1 -1
- package/fotbollskanalen/es/index.js +1 -1
- package/fotbollskanalen/es/{styles-CfNIIBKK.js → styles-C3R9fizq.js} +1 -1
- package/godare/cjs/index.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-EbhH8wUC.js +1 -0
- package/koket/es/{events-BcZTaLeW.js → events-CzsjR_MV.js} +1 -1
- package/koket/es/{index-D6KcKOHv.js → index-BDCnUC2s.js} +1 -1
- package/koket/es/{index-bFrGnnxi.js → index-BRZQdk8p.js} +1 -1
- package/{svdv2/es/index-Zc_uFqie.js → koket/es/index-CO57-9Au.js} +1 -1
- package/koket/es/{index-Cyy2WUwq.js → index-CZmk3t6g.js} +1 -1
- package/koket/es/{index-Wi7e-yT9.js → index-CiQAYWNj.js} +1 -1
- package/koket/es/{index-CukU7Jn6.js → index-Dj18FjMk.js} +1 -1
- package/koket/es/{index-CiYfJOQD.js → index-GRCdBgCV.js} +1 -1
- package/koket/es/{index-CoXLaLEm.js → index-P--7EjDD.js} +1 -1
- package/koket/es/index.js +1 -1
- package/{svdv2/es/styles-D5-jbYLA.js → koket/es/styles--7f0Nr3w.js} +1 -1
- package/minmote/cjs/index.js +1 -1
- package/package.json +97 -73
- package/pent/cjs/index.js +1 -1
- package/sa/cjs/index.js +1 -1
- package/sa/es/_auto-entry_sa-CAUxeTAQ.js +1 -0
- package/sa/es/{events-CyNtol2-.js → events-WBCBTZjF.js} +1 -1
- package/{bt/es/index-B610pT5_.js → sa/es/index-BoSR75BB.js} +1 -1
- package/{bt/es/index-FskBAApb.js → sa/es/index-CFP8H4af.js} +1 -1
- package/sa/es/{index-BmPQkUrk.js → index-CXWVT_nG.js} +1 -1
- package/sa/es/{index-BNzKL6bS.js → index-CizwqGwp.js} +1 -1
- package/sa/es/{index-D7pWhos7.js → index-CrY6ka1r.js} +1 -1
- package/sa/es/{index-DOITUJPV.js → index-DJ1FaFc_.js} +1 -1
- package/{bt/es/index-Bo0RQAjz.js → sa/es/index-DLfELXlD.js} +1 -1
- package/sa/es/{index-DgG4w3r6.js → index-DzEpOvYS.js} +1 -1
- package/sa/es/index.js +1 -1
- package/{bt/es/styles-DQYk37_q.js → sa/es/styles-BfHw4SN0.js} +1 -1
- package/{vg/es/styles-CsjIdsAA.js → sa/es/styles-ByPIiUBY.js} +1 -1
- package/{bt/es/styles-8IjXJFPe.js → sa/es/styles-CJLAi4zU.js} +1 -1
- package/{vg/es/styles-B4lkkgsZ.js → sa/es/styles-DXXIe2QG.js} +1 -1
- package/sa/es/{styles-Ds3mgS9x.js → styles-DfK0973d.js} +1 -1
- package/sa/es/{styles-BwnQ7OKM.js → styles-MSfXGQPh.js} +1 -1
- package/{bt/es/styles-BoMCpdBx.js → sa/es/styles-MssR3kMl.js} +1 -1
- package/sa/es/{styles-jQf0W6Eg.js → styles-ZuIe8hPt.js} +1 -1
- package/sa/es/{styles-fKNPZATB.js → styles-cY3tb9kS.js} +1 -1
- package/sav2/es/_auto-entry_sav2-DT28TY88.js +1 -0
- package/sav2/es/{events-DI8q_Qnz.js → events-BNNYKSl_.js} +1 -1
- package/sav2/es/{index-DSduSE7R.js → index-AkCXsWbF.js} +1 -1
- package/sav2/es/{index-BhSNVI7o.js → index-B1fhSS-l.js} +1 -1
- package/sav2/es/{index-Cqg7B7yx.js → index-Ba5T08yN.js} +1 -1
- package/sav2/es/{index-o2_jlSkg.js → index-BqPfD7Ip.js} +1 -1
- package/sav2/es/{index-CTSqdux6.js → index-C7L5OOos.js} +1 -1
- package/sav2/es/{index-CfRPxcGD.js → index-CAn6DhEJ.js} +1 -1
- package/sav2/es/{index-ClbvLzX2.js → index-DHuWz9k2.js} +1 -1
- package/sav2/es/{index-Di7jU0jr.js → index-Wl29K0Nx.js} +1 -1
- package/sav2/es/index.js +1 -1
- package/sav2/es/{styles-wSOxK2H_.js → styles-BSdCPpIT.js} +1 -1
- package/{vgv2/es/styles-f57eMM_e.js → sav2/es/styles-BWDDPnmK.js} +1 -1
- package/sav2/es/{styles-DzjukE7A.js → styles-BcgDoMe9.js} +1 -1
- package/{vgv2/es/styles-bkHY3zJl.js → sav2/es/styles-BhvrH8C6.js} +1 -1
- package/sav2/es/{styles-BRPdAx8Y.js → styles-C6t6X01E.js} +1 -1
- package/{btv2/es/styles-OfbWciWE.js → sav2/es/styles-CnyuqiNE.js} +1 -1
- package/{btv2/es/styles-DCfCybm7.js → sav2/es/styles-DEhkap7F.js} +1 -1
- package/sav2/es/{styles-C5u773TN.js → styles-DkG4K21y.js} +1 -1
- package/svd/cjs/index.js +1 -1
- package/svd/es/_auto-entry_svd-gTLzQisZ.js +1 -0
- package/svd/es/{events-B9fy8MvP.js → events-Dc74p5db.js} +1 -1
- package/svd/es/{index-DEczVjHq.js → index-CCSmUghY.js} +1 -1
- package/svd/es/{index-b71iTJh6.js → index-CYvPoDH_.js} +1 -1
- package/svd/es/{index-BKmYhjp4.js → index-CaIQZBO-.js} +1 -1
- package/{tv4/es/index-Fm09Gw9I.js → svd/es/index-D7A5kDQO.js} +1 -1
- package/svd/es/{index-WeoENtv0.js → index-NmbRNRUw.js} +1 -1
- package/svd/es/{index-DTJ5fyP4.js → index-h6Bzcdoy.js} +1 -1
- package/svd/es/{index-q4kRFTm_.js → index-jEszNFTZ.js} +1 -1
- package/svd/es/{index-BsIKH9v6.js → index-xY6BCab4.js} +1 -1
- package/svd/es/index.js +1 -1
- package/svd/es/{styles-BkRMHTAw.js → styles-BYbxmJ40.js} +1 -1
- package/svd/es/{styles-DjX0P_lu.js → styles-C-Cr12Op.js} +1 -1
- package/svd/es/{styles-C8BiJfH_.js → styles-C4Xo9Bvf.js} +1 -1
- package/svd/es/{styles-CvEYQ-Nm.js → styles-CWVyawaj.js} +1 -1
- package/svd/es/{styles-BRczJBV7.js → styles-Ds1RXJqP.js} +1 -1
- package/svd/es/{styles-C0cr8pEH.js → styles-YIV9nwKM.js} +1 -1
- package/svdv2/es/_auto-entry_svdv2-D8BNicMx.js +1 -0
- package/svdv2/es/{events-B81mMIaP.js → events-Dt_m5TPf.js} +1 -1
- package/{koket/es/index-Bz2OsIEg.js → svdv2/es/index-B9f-toqF.js} +1 -1
- package/svdv2/es/{index-iguCimhM.js → index-BSZZi5GI.js} +1 -1
- package/svdv2/es/{index-tYoirwmq.js → index-BYngheL6.js} +1 -1
- package/svdv2/es/{index-D0IoTa1B.js → index-BaDP-cad.js} +1 -1
- package/svdv2/es/{index-DT3zdHOo.js → index-CBfxDGKY.js} +1 -1
- package/svdv2/es/{index-lC41Qy7v.js → index-DYD6E_tC.js} +1 -1
- package/svdv2/es/{index-DKT0OPU4.js → index-DmG1v1CA.js} +1 -1
- package/svdv2/es/{index-yAxz9Lfh.js → index-J4az83QG.js} +1 -1
- package/svdv2/es/index.js +1 -1
- package/{koket/es/styles-DZ8lBM1O.js → svdv2/es/styles-BRf_hpwP.js} +1 -1
- package/svdv2/es/{styles-GtQDj6P7.js → styles-BoGBiTj0.js} +1 -1
- package/svdv2/es/{styles-BPaJIxiZ.js → styles-C-b4aFA7.js} +1 -1
- package/svdv2/es/{styles-BsO5oiS_.js → styles-CXO8wiFt.js} +1 -1
- package/svdv2/es/{styles-78-Iyys8.js → styles-DF2PxzZE.js} +1 -1
- package/svdv2/es/{styles-D4bR4OJH.js → styles-LXalyj75.js} +1 -1
- package/svdv2/styles.css +1 -1
- package/tek/cjs/index.js +1 -1
- package/tv4/cjs/index.js +1 -1
- package/tv4/es/_auto-entry_tv4-D6j8Evpj.js +1 -0
- package/tv4/es/{events-8qqQt5gX.js → events-TfOtE8Rp.js} +1 -1
- package/tv4/es/{index-AtB7D187.js → index-BLXhEkKV.js} +1 -1
- package/tv4/es/{index-7kV2geAZ.js → index-C54e5MHM.js} +1 -1
- package/tv4/es/{index-YGNGA0TO.js → index-C8Quh3hJ.js} +1 -1
- package/tv4/es/{index-CaN0iPss.js → index-DAafrO3d.js} +1 -1
- package/tv4/es/{index-TDy_flx_.js → index-DYZfYgBL.js} +1 -1
- package/tv4/es/{index-CGo2whl-.js → index-DyrFopn0.js} +1 -1
- package/tv4/es/{index-CBL76Cff.js → index-Hoeb7sme.js} +1 -1
- package/{svd/es/index-DqdGxmQU.js → tv4/es/index-cnPU_J5b.js} +1 -1
- package/tv4/es/index.js +1 -1
- package/{e24/es/styles-DyzUs7Uv.js → tv4/es/styles-Cp2FvVtO.js} +1 -1
- package/tvnu/cjs/index.js +1 -1
- package/vg/cjs/index.js +1 -1
- package/vg/es/_auto-entry_vg-WcOa48Sl.js +1 -0
- package/vg/es/{events-Dd_s97Rf.js → events-F13GBwE8.js} +1 -1
- package/vg/es/{index-wn6KJuPX.js → index-5caaawmi.js} +1 -1
- package/vg/es/{index-BeGtvXXs.js → index-7sH2E5Xo.js} +1 -1
- package/vg/es/{index-D995T3Mt.js → index-DQrqTh0o.js} +1 -1
- package/vg/es/{index-BBsGqir9.js → index-DgQz3V-C.js} +1 -1
- package/vg/es/{index-BTxG0IzG.js → index-UVH95gU3.js} +1 -1
- package/vg/es/{index-BZ-o2dvD.js → index-Zr0SPBQa.js} +1 -1
- package/vg/es/{index-C3himFxZ.js → index-ihC9WhpI.js} +1 -1
- package/vg/es/{index-Ga00wLLk.js → index-xninFcUR.js} +1 -1
- package/vg/es/index.js +1 -1
- package/vg/es/{styles-D6PCpY3e.js → styles-BPV3MlKX.js} +1 -1
- package/{bt/es/styles-qK6-eK6B.js → vg/es/styles-BuXFVgDs.js} +1 -1
- package/vg/es/{styles-BPcjN2qg.js → styles-C-bZuhKG.js} +1 -1
- package/vg/es/{styles-CuF_EWEp.js → styles-CScQqFvz.js} +1 -1
- package/vg/es/{styles-Cw--TGd3.js → styles-CWOGI1-4.js} +1 -1
- package/{bt/es/styles-DNU08wYz.js → vg/es/styles-CYLKYYNm.js} +1 -1
- package/vg/es/{styles-BItE1P8e.js → styles-CZ3whug1.js} +1 -1
- package/vg/es/{styles-DGZuqDRs.js → styles-D1zCat6A.js} +1 -1
- package/vg/es/{styles-zttgsXIc.js → styles-DO8BSKYD.js} +1 -1
- package/{sa/es/styles-DminGM8h.js → vg/es/styles-DPa3-Ig9.js} +1 -1
- package/vg/es/{styles-DJrIJKV4.js → styles-DcseWAUm.js} +1 -1
- package/vg/es/{styles-DFF1ID35.js → styles-DwZ_BSYx.js} +1 -1
- package/vg/es/{styles-CKumPz1z.js → styles-Dxkqfzn2.js} +1 -1
- package/{sa/es/styles-DQgvHtrv.js → vg/es/styles-HcRDb4-y.js} +1 -1
- package/vg/es/{styles-e3AK702S.js → styles-amhUmZbz.js} +1 -1
- package/vgv2/es/_auto-entry_vgv2-CBelsbx4.js +1 -0
- package/vgv2/es/{events-4oJPhpxW.js → events-CIoOLi7R.js} +1 -1
- package/vgv2/es/{index-B0omUW-g.js → index-Brau04J6.js} +1 -1
- package/vgv2/es/{index-Bk_IVtWY.js → index-C7VCZ5Iq.js} +1 -1
- package/vgv2/es/{index-D4FA0xLg.js → index-C7op-1gX.js} +1 -1
- package/vgv2/es/{index-Cfdcx7YY.js → index-CeJH3igu.js} +1 -1
- package/vgv2/es/{index-DVekNehC.js → index-D1KDSGPz.js} +1 -1
- package/vgv2/es/{index-CGaW8UZb.js → index-H2B1KCL5.js} +1 -1
- package/vgv2/es/{index-CerFd6rk.js → index-nl3TFAkV.js} +1 -1
- package/vgv2/es/{index-BiuPB7qH.js → index-pliPd0-E.js} +1 -1
- package/vgv2/es/index.js +1 -1
- package/{btv2/es/styles-CVEHPOCl.js → vgv2/es/styles--cDFm4qw.js} +1 -1
- package/vgv2/es/{styles-CQXgtQoL.js → styles-4MxgYTrg.js} +1 -1
- package/vgv2/es/{styles-DuT5Faai.js → styles-BXHi2XrG.js} +1 -1
- package/{sav2/es/styles-CpIFysfC.js → vgv2/es/styles-C8vJ3VCb.js} +1 -1
- package/vgv2/es/{styles-D6myjf8r.js → styles-CM-phSer.js} +1 -1
- package/vgv2/es/{styles-BqOCGnZk.js → styles-D09S7b49.js} +1 -1
- package/vgv2/es/{styles-BqL9fuym.js → styles-D0rTm569.js} +1 -1
- package/vgv2/es/{styles-HbpAFnkf.js → styles-DFhQAIF7.js} +1 -1
- package/vgv2/es/{styles-BDrWsuu6.js → styles-DIrGP10x.js} +1 -1
- package/vgv2/es/{styles-4jNEHLBc.js → styles-DxZWJTW9.js} +1 -1
- package/vgv2/es/{styles-DeGP-f1M.js → styles-PUgHkvUt.js} +1 -1
- package/vgv2/es/{styles-ANUyhLzk.js → styles-ZXMUMbLV.js} +1 -1
- package/{btv2/es/styles-aZAhDzyA.js → vgv2/es/styles-eK9B_gwr.js} +1 -1
- package/vgv2/es/{styles-D0GxW-vO.js → styles-gPqzB0Zu.js} +1 -1
- package/{btv2/es/styles-BW19vldz.js → vgv2/es/styles-laGMxCg-.js} +1 -1
- package/vgv2/styles.css +1 -1
- package/aftenposten/es/_auto-entry_aftenposten-DU8V5uq3.js +0 -1
- package/aftenpostenv2/es/_auto-entry_aftenpostenv2-oK4Rb57W.js +0 -1
- package/aftonbladet/es/_auto-entry_aftonbladet-DQsJCc_j.js +0 -1
- package/aftonbladetv2/es/_auto-entry_aftonbladetv2-Djgcfxl-.js +0 -1
- package/bt/es/_auto-entry_bt-Dly6sBnc.js +0 -1
- package/btv2/es/_auto-entry_btv2-BMBxtlku.js +0 -1
- package/e24/es/_auto-entry_e24-CP_X5jGM.js +0 -1
- package/fotbollskanalen/es/_auto-entry_fotbollskanalen-CQROX3n3.js +0 -1
- package/koket/es/_auto-entry_koket-C0iyqM-S.js +0 -1
- package/sa/es/_auto-entry_sa-CW6Oi0dd.js +0 -1
- package/sav2/es/_auto-entry_sav2-BuJquBtj.js +0 -1
- package/svd/es/_auto-entry_svd-DfWuipHk.js +0 -1
- package/svdv2/es/_auto-entry_svdv2-rS_Q5zyR.js +0 -1
- package/tv4/es/_auto-entry_tv4-BrhMiCYY.js +0 -1
- package/vg/es/_auto-entry_vg-C8ePd2cs.js +0 -1
- package/vgv2/es/_auto-entry_vgv2-DIIyQQCs.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";const r={ABSOLUTE_FULLSCREEN:"ABSOLUTE_FULLSCREEN",ANY_FULLSCREEN:"ANY_FULLSCREEN",NINESIXTEEN:"NINESIXTEEN",FULLWIDTH:"FULLWIDTH",FULLSQUARE:"FULLSQUARE",TAKEOVER:"TAKEOVER",VELVET_TAKEOVER:"VELVET_TAKEOVER",WALLPAPER:"WALLPAPER",COLLAPSE:"COLLAPSE"},i={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}]},o={wallpaper:1600,"l-format":1600},a=e=>{const{banner:t,targetId:n}=e;return!(!t||(null==n?void 0:n.includes("takeover")))&&E(e,r.ANY_FULLSCREEN)},d=e=>{const{native:t}=e;return!!t},s=e=>E(e,r.FULLWIDTH),l=e=>{const{targetId:t}=e;return t.includes("takeover")||E(e,r.TAKEOVER)},c=e=>E(e,r.TAKEOVER),p=e=>E(e,r.WALLPAPER),u=e=>E(e,r.COLLAPSE),v=e=>e.targetId.includes("sponsorstripe"),g=e=>{const t=document.querySelector(`#${e}`);return!!t&&"true"===t.dataset.isFinnBlinkPlacement},h=e=>e.targetId.startsWith("panorama")||e.targetId.startsWith("modul"),m=e=>e.targetId.startsWith("midboard"),f=e=>e.targetId.includes("widescreen"),y=e=>"https://acdn.adnxs.com/video/outstream/ANOutstreamVideo.js"===e.renderer_url,w=e=>e.width>=1260&&e.width<=1280,b=e=>e.width>=1600&&e.width<=1620,x=e=>{var t,n;return"string"==typeof(null===(t=e.native)||void 0===t?void 0:t.desc2)&&(null===(n=e.native)||void 0===n?void 0:n.desc2.endsWith("_alcohol"))},E=(e,t)=>{const n=i[t];if(!n)return!1;return!!n.find(t=>{var n,r;const i=(null===(n=e.banner)||void 0===n?void 0:n.width)||e.width,o=(null===(r=e.banner)||void 0===r?void 0:r.height)||e.height,a=t.width===i,d=!t.height||t.height===o;return a&&d})};function C(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var I,A;var S=C(function(){if(A)return I;A=1;var e=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var n=Object.prototype.toString.call(e);return"[object RegExp]"===n||"[object Date]"===n||function(e){return e.$$typeof===t}(e)}(e)},t="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function n(e,t){return!1!==t.clone&&t.isMergeableObject(e)?d((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function r(e,t,r){return e.concat(t).map(function(e){return n(e,r)})}function i(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}(e))}function o(e,t){try{return t in e}catch(e){return!1}}function a(e,t,r){var a={};return r.isMergeableObject(e)&&i(e).forEach(function(t){a[t]=n(e[t],r)}),i(t).forEach(function(i){(function(e,t){return o(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,i)||(o(e,i)&&r.isMergeableObject(t[i])?a[i]=function(e,t){if(!t.customMerge)return d;var n=t.customMerge(e);return"function"==typeof n?n:d}(i,r)(e[i],t[i],r):a[i]=n(t[i],r))}),a}function d(t,i,o){(o=o||{}).arrayMerge=o.arrayMerge||r,o.isMergeableObject=o.isMergeableObject||e,o.cloneUnlessOtherwiseSpecified=n;var d=Array.isArray(i);return d===Array.isArray(t)?d?o.arrayMerge(t,i,o):a(t,i,o):n(i,o)}return d.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,n){return d(e,n,t)},{})},I=d}());const T=["placements","takeover","refreshConfig","editableConfiguration"],k={adRequested:()=>{},adAvailable:e=>{},adLoaded:e=>{},adNoBid:e=>{},adError:(e,t)=>{},adCollapse:()=>{},adRequestFailure:e=>{},adBadRequest:e=>{},adLoadedMediated:e=>{},adNoBidMediated:e=>{}},O=(e,t)=>{const n="[Advertory LOG]: ";location.search.includes("ast_debug=true")&&(t?console.log(n,e,t):console.log(n,e))},P=(e,t)=>{console.warn("[Advertory WARN]: ",e)},_=e=>{(e=>{const{pageContext:t,pageOptions:n,placements:r,appearanceConfig:i}=null!=e?e:{};(null==t?void 0:t.publisher)||P("pageContext.publisher is required."),(null==t?void 0:t.countryCode)||P("pageContext.countryCode is required."),(null==t?void 0:t.pageType)||P("pageContext.pageType is required."),(null==t?void 0:t.deviceType)||P("pageContext.deviceType is required."),n||P("pageOptions is required."),r||P("placements is required."),(null==i?void 0:i.defaultThreshold)||P("appearanceConfig.defaultThreshold is required.")})(e),(e=>{var t,n,r,i;const o=e.pageSectionsSelectors,a=[{flag:!!(null===(t=e.takeover)||void 0===t?void 0:t.enabled),property:"header",featureName:"takeover"},{flag:!!(null===(n=e.sponsorstripe)||void 0===n?void 0:n.enabled),property:"header",featureName:"sponsorstripe"},{flag:!!(null===(r=e.fullscreenScroll)||void 0===r?void 0:r.enabled),property:"main",featureName:"fullscreenScroll"},{flag:!!(null===(i=e.widescreenSwitching)||void 0===i?void 0:i.enabled),property:"right",featureName:"widescreenSwitching"}];for(const{flag:e,property:t,featureName:n}of a)e&&!(null==o?void 0:o[t])&&P(`pageSectionsSelectors.${t} is required when ${n} is enabled.`)})(e)},L=6;class j{set(e){_(e),this.config=e}modifyConfigProperties(e){if(!this.config)throw new Error("Config was accessed before it had been initialized.");const t={};for(const n of T){const r=e[n];void 0!==r&&(t[n]=r)}Object.assign(this.config,t),Object.prototype.hasOwnProperty.call(e,"pageContext")&&void 0!==e.pageContext&&(this.config.pageContext=Object.assign(Object.assign({},this.config.pageContext),e.pageContext)),Object.prototype.hasOwnProperty.call(e,"pageOptions")&&void 0!==e.pageOptions&&(this.config.pageOptions=Object.assign(Object.assign({},this.config.pageOptions),e.pageOptions)),Object.prototype.hasOwnProperty.call(e,"tcf")&&void 0!==e.tcf&&(this.config.tcf=Object.assign(Object.assign({},this.config.tcf),e.tcf))}get(){if(!this.config)throw new Error("Config was accessed before it had been initialized.");return this.config}getHandlers(){if(!this.siteHandlers)throw new Error("Handlers were accessed before it had been initialized.");return this.siteHandlers}setHandlers(e){this.siteHandlers=S(j.DEFAULT_SITE_HANDLERS,e)}}j.DEFAULT_SITE_HANDLERS={siteEvents:k,initNativeAd:function(){}};const N=new j,$=N.modifyConfigProperties.bind(N),D={MOBILE:"mobile",TABLET:"tablet",DESKTOP:"desktop"},R="web_desktop",M="web_phone",q="wde",F="wph",B=()=>{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"},U=e=>e===D.DESKTOP,V=e=>e===D.MOBILE,H=853,z=767,W=e=>{var t,n;const{pageSectionsSelectors:{right:r}={}}=N.get();if(!r)return;const i=null===(t=Array.from(document.querySelectorAll(r)))||void 0===t?void 0:t[0];if(i){const t=40,r=(null===(n=e.banner)||void 0===n?void 0:n.height)?e.banner.height+t:0;i.style.marginTop=`${r}px`}},K={adRequested:()=>{},adAvailable:e=>{(b(e)||w(e))&&(e=>{var t;const n=null===(t=document.getElementById(`${e.targetId}`))||void 0===t?void 0:t.parentElement;n&&(e.width>=1260&&e.width<=1280&&(n.classList.add("advertory-aftonbladet-l-format"),W(e)),e.width>=1600&&e.width<=1620&&(n.classList.add("advertory-aftonbladet-h-format"),W(e)))})(e)},adLoaded:e=>{const t=document.getElementById(e.targetId);s(e)&&(null==t?void 0:t.parentElement)&&(t.classList.add("advertory-aftonbladet-panorama__full-width-ad"),t.parentElement.classList.add("advertory-aftonbladet-panorama-wrapper__full-width-ad")),y(e)&&(null==t||t.classList.add("outstream")),h(e)&&(e=>{const{deviceType:t}=N.get().pageContext,n=e.height<345;if(!V(t)||!n)return;const r=document.querySelector(`#${e.targetId}`),i=null==r?void 0:r.parentElement;r&&i&&(r.style.minHeight="unset",i.style.minHeight="unset")})(e)},adNoBid:e=>{},adError:(e,t)=>{},adCollapse:()=>{},adRequestFailure:e=>{},adBadRequest:e=>{},adLoadedMediated:e=>{},adNoBidMediated:e=>{}},G={SVD:"svd",VG:"vg",GODARE:"godare",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"},J={publisherClassName:G.AFTONBLADET,fullWidthFormatClassName:"panorama",classesToRemoveOnRefresh:["advertory-aftonbladet-h-format","advertory-aftonbladet-l-format"],dynamicOutstreamFormats:["panorama","outstream"]};function Y(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function Q(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{s(r.next(e))}catch(e){o(e)}}function d(e){try{s(r.throw(e))}catch(e){o(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((r=r.apply(e,t||[])).next())})}"function"==typeof SuppressedError&&SuppressedError;class X{initialize(){this.DATA=Object.assign({},X.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)}}X.INITIAL_DATA={wallpaper:{isAvailable:!1},horseshoe:{isAvailable:!1},initialClassNames:{},alertoryConfigKeywords:{}};const Z=new X,ee=864e5,te=(()=>{const e=e=>{const t=window.localStorage.getItem(e);if(!t)return null;try{return JSON.parse(t)}catch(e){return O("Error with parsing localStorage data"),null}},t=(e,t)=>{window.localStorage.setItem(e,JSON.stringify(t))};return{get:e,set:t,setWithTimestamp:(e,n,r=ee)=>{const i={data:n,expirationTime:(new Date).getTime()+r};t(e,JSON.stringify(i))},getByTimestamp:(t,n=ee)=>{const r=e(t);if(!r)return null;if(!n)return r;try{const{expirationTime:e,data:t}=JSON.parse(r);return(new Date).getTime()<=e?t:null}catch(e){return O("Error with parsing localStorage data"),null}}}})(),ne="glimrTags",re=["glwe_","glwet_"],ie={geofenceTags:[],geoTags:[],weatherTags:[]},oe=e=>new URLSearchParams(window.location.search).get(e),ae="finncode",de="takeover",se="native_override_desc2",le=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 O("Advertising permission value obtained synchronously: ",e),Boolean(t)})();if(null!==n)return void t(n);let r=!1;const i=e=>{r||(O("Resolving advertising permission value obtained"),r=!0,t(e))},o=setTimeout(()=>{O("Advertising permission timed out, resolving with false"),i(!1)},3e3);window._tcf_.onTcfReady(()=>{O("On Tcf Ready called, waiting for permission"),clearTimeout(o)}),window._tcf_.getPermission("CMP:advertising",e=>{clearTimeout(o);const t=Number(e);O("Advertising permission value obtained asynchronously: ",e),i(Boolean(t))})}),ce={NO:"no",SE:"se"},pe="cmp:loaded";let ue="undefined"!=typeof window?window._tcf_:void 0,ve=!1;const ge=(e,t,n)=>{const r=!!(null==e?void 0:e.enabled),i=(null==e?void 0:e.timeout)||3e3,o=oe("bypass_tcf"),a=()=>{if(!(null==e?void 0:e.enabled))return!0;if(((e,t)=>e?!!t&&(O("TCF bypass param detected, returning consent: true"),!0):(O("TCF is not enabled, returning consent: true"),!0))(r,o))return!0;if(ve)return null;if(!ue)throw new Error("[Advertory]: getConsentSync method was called before the tcfManager was available.");const t=ue.getConsentedToAllSync();return O(`TCF consented to all is: ${t}`),ue.getConsentedToAllSync()};return{initConsentManager:()=>(null==e?void 0:e.enabled)?new Promise((e,t)=>{if(O("Getting TCF consent manager..."),window._tcf_)return O("TCF consent manager is already available"),ue=window._tcf_,void e(ue);O("TCF consent manager is not available");const n=()=>{O("CMP loaded, resolving consent manager..."),r&&clearTimeout(r),window._tcf_?(ue=window._tcf_,e(ue)):t(new Error("CMP loaded but window._tcf_ is not defined"))},r=setTimeout(()=>{document.removeEventListener(pe,n),ve=!0,t(new Error("Timeout waiting for CMP to load"))},i);O("Listening for CMP loaded event..."),document.addEventListener(pe,n,{once:!0})}):Promise.resolve(null),getConsentSync:a,getConsentAsync:()=>Q(void 0,void 0,void 0,function*(){if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return O(`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===ce.SE,r=(null==e?void 0:e.advertisingCMPSignalEnabled)&&n===ce.NO;if(t||r)return O("Schibsted Ad Choices is enabled, getting advertising permissions..."),yield le(e);if(!(null==e?void 0:e.enabled))return!0;const o=a();return null!==o?o:yield new Promise((e,t)=>{try{if(!ue)throw new Error("[Advertory]: getConsentAsync method was called before the tcfManager was available.");let t=!1;const n=n=>{t||(t=!0,e(n))},r=setTimeout(()=>{O("TCF isConsentedToAll timed out, resolving with false"),n(!1)},i);ue.onTcfReady(()=>{O("On Tcf Ready called, waiting for consent"),clearTimeout(r)}),ue.isConsentedToAll(t=>{clearTimeout(r),e(t)})}catch(e){t(e)}})})}},he=(e,t,n,...r)=>Q(void 0,[e,t,n,...r],void 0,function*(e,t,n,r="NOT SPECIFIED FEATURE"){if(!(null==e?void 0:e.schibstedConsentToPayEnabled))return O(`Schibsted Consent to Pay is not enabled, returning true for ${r}`),!0;if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return O(`Schibsted Ad Choices override value is set, returning override value: ${null==e?void 0:e.schibstedAdChoicesOverrideValue} for ${r}`),Boolean(Number(null==e?void 0:e.schibstedAdChoicesOverrideValue));const{getConsentAsync:i}=ge(e,0,n);return(yield i())?(O(`Schibsted Ad Choices consent given according to TCF consent manager for ${r}`),!0):(O(`Schibsted Ad Choices consent not given according to TCF consent manager for ${r}`),!1)}),me=(...e)=>Q(void 0,[...e],void 0,function*(e=N.get()){const{tcf:t,pageContext:{isMobileApp:n,countryCode:r}={}}=e;if(null==t?void 0:t.schibstedConsentToPayEnabled){return yield he(t,n,r,"glimr")}const{getConsentAsync:i}=ge(t,0,r);return yield i()}),fe=()=>Q(void 0,void 0,void 0,function*(){const{glimr:e}=N.get();if(!(yield me())||!(null==e?void 0:e.enabled))return void O("No consent for glimr data fetching.");const t=yield(n=500,Q(void 0,void 0,void 0,function*(){return yield Promise.race([Q(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)=>{te.setWithTimestamp(ne,{tags:e,tagMappings:t}),n(!0)})})}catch(e){O(`Error during getting glimr data: ${e}`)}else O("Timeout (500ms) while loading glimr package. Skipping glimr data fetching.",{glimr:t})}),ye={svd:"svd",vg:"vg",godare:"godare",aftenposten:"no-aftenposten",sa:"no-stavangeraftenblad",bt:"no-bergenstidende",aftonbladet:"aftonbladet",e24:"e24",minmote:"minmote",pent:"pent",godt:"godt",tek:"no-tek"},we=e=>re.some(t=>e.startsWith(t)),be=e=>e.startsWith("glgc_"),xe=e=>!we(e)&&!be(e),Ee=e=>e===ce.NO?"no-sno":"se-generic",Ce=(e,t)=>Q(void 0,void 0,void 0,function*(){const{addPublisherToGeo:n}=t||{},{glimr:r,pageContext:{countryCode:i}={}}=e,o=yield me(e);if(!(null==r?void 0:r.enabled)||!o)return O("No consent for getting glimr tags."),{};const a=Ee(i),d=Ie(e,Boolean(n));return{[`${a}-geo`]:d.geoTags,[`${a}-weather`]:d.weatherTags,[`${a}-geofence`]:d.geofenceTags}}),Ie=(e,t)=>{const n=Ae();if(!n)return ie;const r=((e=[])=>e.filter(we))(n),i=((e=[])=>e.filter(be))(n),o=((e=[],t,n)=>{var r;const i=e.filter(xe);if(n&&t){const{publisher:e}=null!==(r=t.pageContext)&&void 0!==r?r:{},n=ye[e]||e;i.push(n)}return i})(n,e,t);return{geoTags:o,geofenceTags:i,weatherTags:r}},Ae=()=>{const e=te.getByTimestamp(ne);return e&&"string"!=typeof e?null==e?void 0:e.tags:null},Se=()=>(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),Te=()=>(window.relevantDigital||(window.relevantDigital={cmd:[]}),window.relevantDigital),ke=(e={},t)=>{const{prebid:{externalUidInAuctionEnabled:n,forwardGlimrTags:r=!1}={},pageContext:{countryCode:i}}=N.get(),o=[`${Ee(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",...r?o:[]],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)}},Oe={get:(e,t)=>Q(void 0,void 0,void 0,function*(){const n=yield fetch(e,t);if(!n.ok)throw new Error(n.statusText);return yield n.json()}),post:(e,t,n)=>Q(void 0,void 0,void 0,function*(){const r=JSON.stringify(n),i=yield fetch(e,{method:"POST",headers:t,body:r});if(!i.ok)throw new Error(i.statusText);return yield i.json()})},Pe="advertory:ppids-cache",_e={[ce.SE]:`SCH${ce.SE.toUpperCase()}-EnvHash`,[ce.NO]:`SCH${ce.NO.toUpperCase()}-EnvHash`},Le={[ce.SE]:`SCH${ce.SE.toUpperCase()}-UserHash`,[ce.NO]:`SCH${ce.NO.toUpperCase()}-UserHash`},je={[ce.SE]:`sch${ce.SE}-envhash-v3`,[ce.NO]:`sch${ce.NO}-envhash-v3`},Ne={[ce.SE]:`sch${ce.SE}-userhash-v3`,[ce.NO]:`sch${ce.NO}-userhash-v3`},$e={[ce.SE]:`'sch${ce.SE}-iosid-v3'`,[ce.NO]:`'sch${ce.NO}-iosid-v3'`},De={[ce.SE]:`sch${ce.SE}-androidid-v3`,[ce.NO]:`sch${ce.NO}-androidid-v3`},Re={[ce.SE]:"sdrn:schibsted.com:user",[ce.NO]:"sdrn:spid.no:user"};class Me{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:r})=>{t.append(e,`${r}-${n}`)}),t}}const qe=new class{constructor(){this.ppid1=null,this.ppid2=null}processPPIDs(e){return Q(this,arguments,void 0,function*(e,t=1e4){var n,r;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===(r=i.xandr)||void 0===r?void 0:r.ppId2)})}getPPIDs(){var e,t;return null!==this.ppid1&&null!==this.ppid2||O("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:""}},Fe=new class{constructor(){this.ppid1=null,this.ppid2=null,this.idfv=null,this.anId=null}processPPIDs(e,t){return Q(this,void 0,void 0,function*(){var n,r,i,o,a,d,s,l,c,p,u;const v=te.get(Pe),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===(r=g.idfv)||void 0===r?void 0:r.plain,null===(i=g.anId)||void 0===i?void 0:i.plain),void this.setPPIDs(null!==(o=c.userId)&&void 0!==o?o:"",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===(p=null==g?void 0:g.idfv)||void 0===p?void 0:p.plain,null===(u=null==g?void 0:g.anId)||void 0===u?void 0:u.plain)})}getPPIDs(){var e,t;return null!==this.ppid1&&null!==this.ppid2||O("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,r){this.ppid1=null!=e?e:"",this.ppid2=null!=t?t:"",this.idfv=null!=n?n:null,this.anId=null!=r?r:null}shouldHash(e,t){var n,r;if(!e)return!0;for(const i in e){if((null===(n=e[i])||void 0===n?void 0:n.plain)!==(null===(r=t[i])||void 0===r?void 0:r.plain))return!0}return!1}cachePPIDs(e,t,n,r){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}}:{}),r?{anId:{plain:r}}:{});te.set(Pe,i)}hashPPIDs(e,t){return Q(this,void 0,void 0,function*(){try{const n=new Headers({"Content-Type":"application/json"});return yield Oe.post(t,n,e)}catch(e){return O("Error with hashing PPIDs",e),null}})}getNewPPIDs(e,t){return Q(this,arguments,void 0,function*({clientId:e,instance:t},n){const r=yield((e,t)=>Q(void 0,void 0,void 0,function*(){const n=yield e.getUserId();return n?`${Re[t]}:${n}`:null}))(t,n),i=yield(e=>Q(void 0,void 0,void 0,function*(){const t=yield e.getEnvironmentId();return t?`sdrn:schibsted:environment:${t}`:null}))(t),o=window.advertory_idfv,a=window.advertory_anId;return Object.assign(Object.assign({clientId:{plain:e},userId:{plain:r},environmentId:{plain:i},trackerType:{plain:"Advertory"},trackerVersion:{plain:"1.0.0"}},o?{idfv:{plain:o}}:{}),a?{anId:{plain:a}}:{})})}createHasherPayload({clientId:e,trackerType:t,trackerVersion:n,userId:r,environmentId:i}){return{clientId:e.plain,trackerType:t.plain,trackerVersion:n.plain,userId:r.plain,environmentId:i.plain}}},Be=e=>Q(void 0,void 0,void 0,function*(){const{tracker:t,tcf:n,pageContext:{countryCode:r,isMobileApp:i}}=e;if(!(yield he(n,i,r,"setXandrPPIDs")))return;if(!t)return;(yield Promise.allSettled([qe.processPPIDs(t,null==n?void 0:n.timeout),Fe.processPPIDs(t,r)])).forEach((e,t)=>{if("rejected"===e.status){O(`Cannot fetch PPIDs v${t+2}`,e.reason)}})}),Ue=e=>{const{ppid1:t,ppid2:n}=qe.getPPIDs(),{ppid1:r,ppid2:i,idfv:o,anId:a}=Fe.getPPIDs();return{userIds:[{type:"extendedIDs",eids:(new Me).add(n,_e[e]).add(t,Le[e]).add(i,je[e]).add(r,Ne[e]).add(o,$e[e]).add(a,De[e]).buildEids()}]}},Ve=()=>{const{ppid1:e,ppid2:t}=qe.getPPIDs();return{"aa-sch-schuserhash":e?"1":"0","aa-sch-schenvhash":t?"1":"0"}},He=e=>{const{ppid1:t,ppid2:n}=qe.getPPIDs(),{ppid1:r,ppid2:i,idfv:o,anId:a}=Fe.getPPIDs();if(!n)return{};return{userSync:{userIds:[{name:"pubProvidedId",params:{eids:(new Me).add(n,_e[e]).add(t,Le[e]).add(i,je[e]).add(r,Ne[e]).add(o,$e[e]).add(a,De[e]).buildRyEids()}}]}}},ze=e=>{const{ppid1:t,ppid2:n}=qe.getPPIDs(),{ppid1:r,ppid2:i}=Fe.getPPIDs(),o=(new Me).add(n,_e[e]).add(t,Le[e]).add(i,je[e]).add(r,Ne[e]);return`${o.buildNorstatPath()}?${o.buildNorstatQuery("alias").toString()}`},We=e=>{const{ppid1:t,ppid2:n}=qe.getPPIDs(),{ppid1:r,ppid2:i}=Fe.getPPIDs();return(new Me).add(n,_e[e]).add(t,Le[e]).add(i,je[e]).add(r,Ne[e]).buildRyEids()},Ke=e=>Q(void 0,void 0,void 0,function*(){const{ppid1:t,ppid2:n}=qe.getPPIDs(),{ppid1:r,ppid2:i}=Fe.getPPIDs(),o=(new Me).add(n,_e[e]).add(t,Le[e]).add(i,je[e]).add(r,Ne[e]);return yield new Promise(e=>{e(o.buildVideoEids())})}),Ge=()=>Q(void 0,void 0,void 0,function*(){const{ppid1:e}=Fe.getPPIDs();return e}),Je=(e,...t)=>Q(void 0,[e,...t],void 0,function*(e,{timeout:t}={timeout:1e3}){document.querySelector(`script[src="${e}"]:not([type="module"])`)||(yield new Promise((n,r)=>{const i=document.createElement("script");i.async=!0,i.src=e;const o=()=>{d(),n()},a=()=>{d(),r(new Error(`Failed to load ${e}`))},d=()=>{i.removeEventListener("load",o),i.removeEventListener("error",a),clearTimeout(s)};i.addEventListener("load",o),i.addEventListener("error",a);const s=setTimeout(()=>{d(),r(new Error(`Loading script timed out: ${e}`))},t);document.head.appendChild(i)}).catch(e=>{console.error(e)}))}),Ye="advertory-fullscreen-scroll",Qe="advertory-fullscreen-scroll-wrapper",Xe="fullscreen-scroll-in-screen",Ze="in-screen",et=e=>e.includes("snoap.no"),tt=e=>{var t,n,r,i,o;return!!(null===(o=null===(i=null===(r=null===(n=null===(t=window.apntag)||void 0===t?void 0:t.requests)||void 0===n?void 0:n.tags[e])||void 0===r?void 0:r.adResponse)||void 0===i?void 0:i.ads[1])||void 0===o?void 0:o.rtb)},nt=(e,t=(...e)=>{})=>{const n=t.toString();if(0===e.length)return n;const r=n.substring(0,n.indexOf("=>")).replace("(","").replace(")","").split(",").map(e=>e.trim()),i=n.substring(n.indexOf("{")+1,n.lastIndexOf("}")),o=r.map((t,n)=>`${t} = "${e[n]}"`);return new Function(...o,i).toString()},rt=nt([],()=>{const e=({width:e,height:t})=>{var n;const r=null===(n=document.querySelector("#sf_align"))||void 0===n?void 0:n.querySelector("div");if(!r)return;const{clientWidth:i,clientHeight:o}=r,a=e/i,d=t/o;r.style.transform=`scale(${a},${d})`,r.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}),it=e=>{const t=nt([],()=>{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 r=n.contentDocument.createElement("style");r.textContent="\n #image {\n background-size: cover !important;\n }\n ",new MutationObserver((e,t)=>{n.contentDocument&&(n.contentDocument.head.appendChild(r),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},ot=[],at={},dt=(e,t)=>{var n;const r=(null===(n=null==t?void 0:t.options)||void 0===n?void 0:n.fadingHeaderEnabled)||!1,i=new IntersectionObserver(e=>st(e,r),{}),o=ct(e);i.observe(e),r&&(at[o]=vt(e,null==t?void 0:t.options))},st=(e,t)=>{e.forEach(({target:e,isIntersecting:n})=>{const r=ct(e);n?(lt(r,n),pt(e,r,t)):(lt(r,n),ut(e,r,t))})},lt=(e,t)=>{var n,r;const i=null===(n=document.getElementById(e))||void 0===n?void 0:n.querySelector("iframe");if(!i)return;const o=t?"showFullscreen":"hideFullscreen";null===(r=i.contentWindow)||void 0===r||r.postMessage(`advertory:${o}-${e}`,"*")},ct=e=>{var t;return null===(t=e.children[0])||void 0===t?void 0:t.id},pt=(e,t,n)=>{e.classList.add(Ze),document.body.classList.add(Xe),window.dispatchEvent(new CustomEvent("advertory:fullscreenScrollInView")),ot.includes(t)||ot.push(t),n&&window.addEventListener("scroll",at[t],{passive:!0})},ut=(e,t,n)=>{ot.includes(t)&&(n&&window.removeEventListener("scroll",at[t]),document.body.classList.remove(Xe),e.classList.remove(Ze),window.dispatchEvent(new CustomEvent("advertory:fullscreenScrollNotInView")))},vt=(e,t={fadingHeaderEnabled:!1,headerSelectors:[".js-masthead"],skyscraperSelectors:[".skyscraper_r"],headerZIndex:3})=>{const{headerSelectors:n=[".js-masthead"],skyscraperSelectors:r=[".skyscraper_r"],headerZIndex:i=3}=t,o=[],a=[];return n.forEach(e=>{var t;const n=null!==(t=document.querySelector(e))&&void 0!==t?t:document.querySelector("header");n&&o.push(n)}),r.forEach(e=>{const t=document.querySelector(e);t&&a.push(t)}),()=>{o.length&>(e,o,i,0),a.length&>(e,a,i,40)}},gt=(e,t,n,r)=>{const i=e.offsetHeight,o=window.scrollY,a=e.getBoundingClientRect().top+o;t.forEach(e=>{const t=e.offsetHeight;let d;d=a>o?(a-o)/t-r:(o+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 ht(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}ht('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)}.advertory-fullscreen-scroll-wrapper>div{position:fixed;top:0;left:0;height:var(--advertory-fullscreen-scroll-vh, 100vh) !important;width:100vw !important;overflow:hidden}html[data-app-platform=iOS] .advertory-fullscreen-scroll-wrapper>div{height:calc(var(--advertory-fullscreen-scroll-vh, 100vh) - env(safe-area-inset-top) + var(--advertory-ios-safe-area-top-fix, 0px) - env(safe-area-inset-bottom)) !important;top:unset !important;bottom:env(safe-area-inset-bottom) !important}.advertory-fullscreen-scroll-wrapper>div>iframe{height:inherit !important;width:inherit !important;display:none !important}.advertory-fullscreen-scroll-wrapper.in-screen{visibility:visible;overflow:visible;width:100vw !important}.advertory-fullscreen-scroll-wrapper.in-screen>div>iframe{display:block !important}.advertory-fullscreen-scroll-wrapper.in-screen:before{content:"";width:100vw;height:150dvh;position:relative !important;display:block;transform:translateX(-50%);overflow:visible;z-index:1;left:50%;top:-150dvh;padding:0 !important}.advertory-fullscreen-scroll-wrapper.in-screen:after{content:"";width:100vw;height:150dvh;position:relative !important;display:block;transform:translateX(-50%);overflow:visible;z-index:1;left:50%;top:-50dvh}.advertory-fullscreen-scroll{position:fixed;top:var(--advertory-fullscreen-scroll-top, 0px);left:var(--advertory-fullscreen-scroll-left, 0px);width:var(--advertory-fullscreen-scroll-vw, 100vw);height:var(--advertory-fullscreen-scroll-vh, 100vh);overflow:hidden}.advertory-fullscreen-scroll::before{content:attr(data-ad-label);box-sizing:border-box;position:fixed;top:0}html[data-app-platform=iOS] .advertory-fullscreen-scroll::before{top:calc(env(safe-area-inset-top) - var(--advertory-ios-safe-area-top-fix, 0px)) !important}.advertory-fullscreen-scroll::before{left:calc(50vw - 628px);width:calc(100% - 36px);max-width:1250px;text-align:left;background-color:hsla(0,0%,100%,.6);color:#212121;font-family:Ester Blenda,Arial,sans-serif;font-size:11px;font-weight:400;font-style:normal;text-transform:lowercase;line-height:1;margin:16px 2px;padding:10px;z-index:1;visibility:inherit !important}@media screen and (max-width: 1290px){.advertory-fullscreen-scroll::before{left:16px}}.advertory-fullscreen-scroll[data-move-cogwheel-to-the-left=true]>div[role=button]{left:calc(50vw - 623px);right:unset}@media screen and (max-width: 1290px){.advertory-fullscreen-scroll[data-move-cogwheel-to-the-left=true]>div[role=button]{left:22px;right:unset}}.advertory-fullscreen-scroll[data-move-cogwheel-to-the-left=true]::before{padding-left:32px}.advertory-fullscreen-scroll>div[id*=utif]{display:block;width:var(--advertory-fullscreen-scroll-vw, 100vw) !important;height:var(--advertory-fullscreen-scroll-vh, 100vh) !important}html[data-app-platform=iOS] .advertory-fullscreen-scroll>div[id*=utif]{height:calc(var(--advertory-fullscreen-scroll-vh, 100vh) - env(safe-area-inset-top) + var(--advertory-ios-safe-area-top-fix, 0px) - env(safe-area-inset-bottom)) !important}.advertory-fullscreen-scroll>div[id*=utif]{overflow:hidden}.advertory-fullscreen-scroll>div[id*=utif]>iframe{display:block;height:inherit !important;width:inherit !important}.advertory-fullscreen-scroll>div[role=button]{z-index:2;opacity:1;background:rgba(0,0,0,0) !important;left:unset;position:fixed !important;right:calc(50vw - 623px);top:19px !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) !important}@media screen and (max-width: 1290px){.advertory-fullscreen-scroll>div[role=button]{right:22px}}');const mt="left",ft={no:{adText:"ANNONSE",adFrom:"ANNONSE FRA",adContent:"ANNONSØRINNHOLD",adContentFrom:"ANNONSØRINNHOLD FRA"},se:{adText:"ANNONS",adFrom:"ANNONS FRÅN",adContent:"EXTERN LÄNK",adContentFrom:"EXTERN LÄNK FRÅN"}};let yt=null;const wt=(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=`(${rt})()`,e+t.outerHTML})(n),n=(e=>{if((e=>e.includes("google"))(e))return e;const t=document.createElement("div");t.innerHTML=e;const n=t.querySelector("img");return n?(n.style.width="100%",n.style.height="100%",n.style.objectFit="cover",n.style.position="fixed",t.innerHTML):e})(n),n=(e=>{if(et(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=it(n)),(e=>e.includes("de17a"))(n)&&(n=(e=>et(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)),et(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)),tt(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},bt=()=>{yt=null;const e=window.visualViewport,t=e?e.height:window.innerHeight,n=e?e.width:window.innerWidth,r=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",`${r}px`)},xt=()=>{yt||(yt=window.requestAnimationFrame(bt))},Et=(e,t)=>{var n,i,o,a;const{pageContext:{countryCode:d,deviceType:s}}=N.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:r=1302,backgroundColor:i="#fff",foregroundColor:o="#fff",margin:a,beforeContentValue:d=""}=e,s=null!==(n=null==a?void 0:a[t])&&void 0!==n?n:"16px 0",l=r/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 ${o} calc(50% - ${l}px),\n ${o} 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!==(i=null==c?void 0:c.overlayStyles)&&void 0!==i?i:{},s);const p=document.getElementById(l),u=null==p?void 0:p.parentElement;if(!p||!u)return;dt(u,t),p.className=Ye,dt(u,t),p.className="advertory-fullscreen-scroll";const v=E(e,r.ABSOLUTE_FULLSCREEN)?"absolute":"fixed";p.style.position=v,u.className=Qe,u.dataset.showTagSubscribeId=l,p.setAttribute("data-ad-label",ft[d].adText),(null==c?void 0:c.cogwheelPosition)===mt&&(p.dataset.moveCogwheelToTheLeft="true"),xt(),window.addEventListener("resize",xt),null===(o=window.visualViewport)||void 0===o||o.addEventListener("resize",xt),null===(a=window.visualViewport)||void 0===a||a.addEventListener("scroll",xt)},Ct=e=>{if(!(null==e?void 0:e.classList.contains(Ye)))return;e.classList.remove(Ye),e.removeAttribute("style"),e.removeAttribute("data-ad-label");const t=e.parentElement;(null==t?void 0:t.classList.contains(Qe))&&(t.classList.remove(Qe),t.classList.remove(Ze))};var It=Object.freeze({__proto__:null,createFullscreenScrollAd:Et,modifyFullscreenScrollAd:({targetId:e})=>{const t=(e=>{var t;const{requests:n}=window.apntag,r=tt(e)?1:0;return null===(t=null==n?void 0:n.tags[e].adResponse.ads[r].rtb)||void 0===t?void 0:t.banner.content})(e);if(!t)return;((e,t)=>{const{requests:n}=window.apntag,r=tt(e)?1:0,i=null==n?void 0:n.tags[e].adResponse.ads[r].rtb;i&&(i.banner.content=t)})(e,wt(t,e))},undoFullscreenScrollContainer:Ct});const At=e=>{var t;!document.querySelector(`#gdprAdTransparencyCogWheelButton-${e}`)&&(null===(t=window.gdpr)||void 0===t?void 0:t.setupButton)&&window.gdpr.setupButton(e)},St=(e,t,n)=>{var r,i,o,a;const d=document.createElement("div");d.id=`${e}-button`,t.appendChild(d);(null===(i=null===(r=window.apntag.requests)||void 0===r?void 0:r.tags[e])||void 0===i?void 0:i.adResponse)||(null!==(o=(a=window.apntag).requests)&&void 0!==o||(a.requests={tags:{}}),window.apntag.requests.tags[e]=Object.assign(Object.assign({},window.apntag.requests.tags[e]),{adResponse:{ads:[{creative_id:n}]}})),At(e);const s=d.firstElementChild;s&&t.insertBefore(s,d),d.remove()},Tt="ad-loaded",kt="disable-cogwheel",Ot=()=>null!==oe("disable_prebid"),Pt=()=>Q(void 0,void 0,void 0,function*(){const{prebid:e,tcf:t,pageContext:{countryCode:n,isMobileApp:r},fullscreenScroll:i}=N.get();if(!(null==e?void 0:e.enabled))return;const{initNativeAd:o}=N.getHandlers(),{getConsentAsync:d}=ge(t,0,n),s=yield d(),l=(()=>{let e=!1,t=[];const n={relevantCb:{timeout:1e3},auctionCb:{timeout:2e3}};return{getCancel:()=>e,setCancel:t=>{e=t},events:n,failsafeOnTimeout:r=>{const i=Se(),{prebid:{relevantCallbackTimeout:o}={}}=N.get(),a="relevantCb"===r&&o?o:n[r].timeout,d=setTimeout(()=>{!n[r].done&&!e&&(console.warn(`Doing failsafe loadTags() call after waiting too long for '${r}'`),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}}})(),c=Se(),p=(()=>{const{requests:{user:e={userIds:[]},keywords:t={}}={}}=Se();return{user:e,keywords:t}})();l.failsafeOnTimeout("relevantCb");const{user:{externalUid:u=""}={},keywords:v}=p;(()=>{const e=Te();return e.cmd||(e.cmd=[]),e.cmd})().push(()=>{if(l.getCancel()||!c.loadTags)return O("core loadTags() call was cancelled",{cancel:l.getCancel(),apnTagLoadTags:!c.loadTags,condition:"or"}),void l.cleanup();const t=Te();l.events.relevantCb.done=!0,l.failsafeOnTimeout("auctionCb");const r=s?{gdpr:{cmpApi:"iab",timeout:8e3}}:{cmpApi:"none"};O("prebid consentManagement",r),t.addPrebidConfig(Object.assign(Object.assign({consentManagement:r,enableSendAllBids:!1},He(n)),ke(v,u))),O("core add prebid config",Object.assign(Object.assign({consentManagement:r,enableSendAllBids:!1},He(n)),ke(v,u))),t.loadPrebid({configId:e.configId,manageAdserver:!1,collapseEmptyDivs:!1,collapseBeforeAdFetch:!1,noGpt:!0,noSlotReload:!0,loadUnknownSlots:!0,apntagCalls:{showTag:()=>{},loadTags:e=>{l.getCancel()||(l.events.auctionCb.done=!0,c.loadTags(e)),l.cleanup()}},customNativeRender:e=>{_t(e,o)},directRenderFn:e=>{var t;const{settings:n,renderFn:r}=e,{bid:o,adDiv:d}=n||{};if(!d)return;const s=r(n),l=Object.assign(Object.assign({},o),{targetId:d.id,banner:!0}),c=d.id,p=document.getElementById(c);p&&(a(l)?(Et(l,i),(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 r=new MutationObserver(()=>{n()&&r.disconnect()});r.observe(t.body,{childList:!0,subtree:!0})};e.addEventListener("load",t),t()})(s)):(Ct(p),null===(t=null==p?void 0:p.parentElement)||void 0===t||t.classList.add("advertory-direct-render")),p.classList.add(Tt),(null==o?void 0:o.creativeId)&&St(c,p,Number(null==o?void 0:o.creativeId)))}}),O("core load prebid",{configId:e.configId,manageAdserver:!1,collapseEmptyDivs:!1,collapseBeforeAdFetch:!1,noGpt:!0,noSlotReload:!0,loadUnknownSlots:!0,apntagCalls:{showTag:()=>{},loadTags:e=>{l.getCancel()||(l.events.auctionCb.done=!0,c.loadTags(e))}},customNativeRender:e=>{_t(e,o)},directRenderFn:()=>{}})})}),_t=(e,t)=>{var n;const{divId:r,native:i,bid:o}=e,a=document.querySelectorAll(`[id^=${r}]`)[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},N.get()),null==s||s.postMessage(JSON.stringify({message:"Prebid Response",ad:"\x3c!-- nothing --\x3e",adId:o.adId}),"*")},Lt="0123456789abcdefghijklmnopqrstuvwxyz",jt=(e=6)=>{if(e<=0)return"";let t="";for(let n=0;n<e;n++){t+=Lt[Math.floor(36*Math.random())]}return t},Nt=(e,t)=>{let n=null;return(...r)=>{null===n&&(e(...r),n=setTimeout(()=>{n=null},t))}},$t=e=>{window.apntag.anq.push(e)},Dt=new Promise(e=>{"undefined"!=typeof document&&document.prerendering?document.addEventListener("prerenderingchange",()=>e()):e()}),Rt=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})});let Mt="";const qt=new Map,Ft=e=>{const{pageSetup:{tag:t}={}}=N.get();return(null==t?void 0:t.includeCountingKeywordInTags)?(Mt!==window.location.pathname&&(qt.clear(),Mt=window.location.pathname),e.map(e=>{var t;const n=e.invCode.replace(/_\d+$/,""),r=null!==(t=qt.get(n))&&void 0!==t?t:0;return e.keywords=Object.assign({},e.keywords),e.keywords[`${(()=>{const{pageContext:{countryCode:e,publisher:t}}=N.get();return`${e}-${t}`})()}-count`]=r,qt.set(n,r+1),e})):e},Bt=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},Ut="advertory-wallpaper-background",Vt="advertory-with-horseshoe",Ht=()=>{const e=document.querySelector(`.${Ut}`);e&&e.remove()},zt=e=>{const t=e.getBoundingClientRect().top;requestAnimationFrame(()=>(e=>{if(!document.body)return;const t=document.querySelector(`.${Ut}`);t&&t.style.setProperty("top",`${e}px`)})(t+15))},Wt=/^wallpaper:url:(http[s]?:\/\/)?[^\s(["<,>]*\.[^\s[",><]*/,Kt=e=>Wt.test(e),Gt=e=>e.startsWith("wallpaper:color:"),Jt=e=>{const t=document.querySelector(`.${Ut}`);t&&(t.style.backgroundImage=`url(${e})`)},Yt=e=>{const t=document.querySelector(`.${Ut}`);t&&(t.style.backgroundColor=e)};var Qt=Object.freeze({__proto__:null,adjustAdToHorseshoe:e=>{var t;const n=document.querySelector(`#${e}`);n&&(null===(t=n.parentElement)||void 0===t||t.classList.add(Vt),n.classList.add(Vt))},initWallpaperAd:(e,t)=>{if(!t)return;const{options:{wallpaperAnchorSelector:n}={}}=t;(()=>{Ht();const e=document.createElement("div");e.classList.add(Ut),document.body.appendChild(e),e.style.setProperty("position","fixed"),e.style.setProperty("width","100%"),e.style.setProperty("height","calc(100% - var(--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&&(zt(n),window.addEventListener("scroll",()=>zt(n)))})(n),e()},isShortWallpaperColorMessage:Gt,isShortWallpaperUrlMessage:Kt,removeWallpaperBackground:Ht,setWallpaperBackgroundColor:Yt,setWallpaperBackgroundImage:Jt});const Xt=e=>{if("0"===oe("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")&&Ht())},Zt=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"))},en=e=>{var t;const n=null===(t=document.querySelector(`#${e}`))||void 0===t?void 0:t.parentElement,r=(null==n?void 0:n.offsetHeight)||0;n&&(n.style.minHeight=`${r}px`)},tn=e=>{const t=e.parentElement;if(!e||!t)return;const{container:n,wrapper:r}=(e=>{const t=Z.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=r},nn=()=>{Ht();document.querySelectorAll('[data-advertory-ad-rendered="true"]').forEach(e=>{Xt(e.id),tn(e),(e=>{const t=document.querySelector(`#${e}`),n=null==t?void 0:t.getAttribute("data-probable-height"),r=null==t?void 0:t.getAttribute("data-probable-width");n&&r&&(null==t||t.style.setProperty("min-height",n+"px"),null==t||t.style.setProperty("min-probable-width",r+"px"))})(e.id),e.innerHTML="",e.id=Bt(e.id)}),$t(()=>window.apntag.clearRequest())},rn="noGroupedPlacements",on=e=>{const t=e.replace(/[0-9]/g,"");return"_"===t.slice(-1)?t.substring(0,t.length-1):t},an=e=>{if(!(null==e?void 0:e.minViewWidth))return!0;return window.innerWidth>=e.minViewWidth},dn=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:r,pageContext:{deviceType:i}}=N.get(),o=n[i].filter(an)||[],a=e?document.querySelector(e):document;if(!a)return[];const d=o.reduce((e,t)=>{const n=on(t.targetId);return!n||e.includes(n)||e.push(n),e},[]).flatMap(e=>{const t=new RegExp(`^${e}(_(\\d+))?$`),n=o.filter(({targetId:e})=>e.match(t)),d=(null==r?void 0:r.queryByDataDeviceAttribute)?`div[id^="${e}"][data-device=${i}], div[id^="${e}"][data-device=all]`:`div[id^="${e}"]:not([data-disabled="true"])`,s=a.querySelectorAll(d),l=Array.from(s).filter(({id:e})=>e.match(t)).map((e,t)=>{var r;const i=sn(e,t,n),o=i.finnBlink&&!i.finnBlink.renderOnlyWithAdBlock,a=o&&(null===(r=i.finnBlink)||void 0===r?void 0:r.loadOnlyFinnBlink),d=`${e.id}-${jt(6)}`;return e.id=d,e.setAttribute("data-advertory-ad-rendered","true"),o&&e.setAttribute("data-is-finn-blink-placement","true"),a&&e.setAttribute("data-is-finn-blink-only-placement","true"),(e=>{var t;const n=e.id;n&&Z.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})});return Ft(l)});return(e=>{const t=Array.from(document.querySelectorAll('div[class^="advertory"]'));return e.sort((e,n)=>t.findIndex(t=>t.id===e.targetId)-t.findIndex(e=>e.id===n.targetId))})(d)},sn=(e,t,n)=>{const r=n[t],i=n[n.length-1],o=n.filter(({targetId:t})=>t===e.id)[0];return(null==e?void 0:e.id)===(null==r?void 0:r.targetId)?r:(null==e?void 0:e.id)===(null==i?void 0:i.targetId)?i:o||i},ln=e=>{const{queryConfig:{placementBatches:t}={},pageContext:{deviceType:n}}=N.get(),r=(null==t?void 0:t[n])||{},i=Object.values(r).flat(),o=(e=>{const t={};return e.forEach(e=>{const n=Bt(e.targetId);e.isBackfill&&(t[n]=[e])}),t})(e),a=((e,t)=>{const n={};for(const[r,i]of Object.entries(t))n[r]=e.filter(e=>i.includes(Bt(e.targetId)));return n})(e,r),d=Object.keys(o),s=((e,t)=>e.filter(e=>!t.has(Bt(e.targetId))))(e,new Set([...d,...i]));return Object.assign(Object.assign(Object.assign({},a),o),{[rn]:s})},cn=(e,t,n)=>{const r=document.getElementById(`div_utif_${e}`);if(!r)return;const{apntag:i}=window,[o,a]=t;if(!r.dataset.lockedsize&&a&&o)r.style.width=`${o}px`,r.style.height=`${a}px`,n&&(i.resizeAd(r.id,[o,a]),r.dataset.lockedsize="true",r.dataset.lockedwidth=o.toString(),r.dataset.lockedheight=a.toString());else if(null==r?void 0:r.dataset.lockedsize){const{lockedwidth:e,lockedheight:t}=r.dataset;e&&t&&i.resizeAd(r.id,[e,t])}},pn=["netboard","board"];class un{constructor(e,t){this.identityFacade=e,this.tracker=t}buildUrl(e,t){var n,r;const{editionName:i}=e,o=(()=>{const e=window.location.href;return new URL(e).searchParams.get("dre_override_inv_code")||""})(),a=JSON.stringify(null!==(r=null===(n=window.advertory)||void 0===n?void 0:n.renderedDrEditionAds)&&void 0!==r?r:[]),d=new URL("https://dr-edition-teaser-server.inventory.schibsted.io/editions"),{envId:s,spid:l}=t;return d.searchParams.append("editionName",i),o&&d.searchParams.append("urlData",o),a&&d.searchParams.append("excludedItems",a),l&&d.searchParams.append("spid",l),s&&d.searchParams.append("envid",s),d.toString()}fetchData(e){return Q(this,void 0,void 0,function*(){var t,n,r;const i=yield this.identityFacade.getIdentityUser(),o=null!==(r=yield null===(n=null===(t=this.tracker)||void 0===t?void 0:t.getEnvironmentId)||void 0===n?void 0:n.call(t))&&void 0!==r?r:"",a=(null==i?void 0:i.userId)?String(i.userId):"",d=this.buildUrl(e,{envId:o,spid:a});try{O("Starting fetching DrEdition ad from URL:",d);const e={method:"GET"},t=yield Oe.get(d,e);return O("Fetch operation completed successfully."),t}catch(e){O("Error during fetch operation:",e)}return null})}}class vn{getDrEditionUTMParams(e,t){var n;const{title:r="",clientName:i,creativeId:o}=null!==(n=null==e?void 0:e.pulseData)&&void 0!==n?n:{},{editionName:a}=t,d=r.replace(/<[^>]*>/g,"");return Object.assign({utm_source:"vgfront",utm_content:a,utm_campaign:i,utm_medium:d},o&&{utm_id:`df-${o}`})}getUrlSearchParams(e,t,n){if(!e)return"";const r=this.getDrEditionUTMParams(t,n),i=new URLSearchParams(decodeURIComponent(e.search)),o=new URLSearchParams(e.search);return Object.entries(r).forEach(([e,t])=>{i.has(e)||o.set(e,null!=t?t:"")}),o.toString().replace(/\+/g,"%20")}getUrlWithParams(e,t){var n;const r=null===(n=null==e?void 0:e.pulseData)||void 0===n?void 0:n.url;if(!r)return"";const i=this.getDrEditionUTMParams(e,t),o=new URL(r);return Object.entries(i).forEach(([e,t])=>{o.searchParams.has(e)||o.searchParams.set(e,null!=t?t:"")}),o.toString()}handleVideo(e,t){return Q(this,void 0,void 0,function*(){const{id:n,autoplay:r,mute:i,videoLoop:o,vendor:a}=t.videoConfiguration;e.classList.add("vgtv-video-container"),Object.assign(e.dataset,{vgtvVideoId:n,vgtvVendor:a,vgtvAutoplay:r,vgtvMuted:i,vgtvLoop:!!o,vgtvNa:!0,vgtvRecommended:!1,vgtvPulseProvider:"vg",vgtvPulseProductTag:"partnerstudio"})})}getPulseObjectId(){return"sdrn:vg:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:vg:frontpage:front"}getTags(e){var t;let n;if(n=e instanceof HTMLAnchorElement?e.href:null===(t=null==e?void 0:e.querySelector("a"))||void 0===t?void 0:t.href,!n)return[];const{host:r,pathname:i}=new URL(n);if(!r.includes("www.vg.no")&&!i.includes("annonsorinnhold"))return[n];const o=i.split("/");return o.length?[...o.filter(Boolean).slice(1).map(e=>e),n]:[n]}}const gn=e=>{const t=e.parentElement;t?t.classList.remove("dr-edition-lock-height"):O("Dr. Edition container does not have a parent element, cannot remove height lock.")};class hn{constructor(e,t,n,r){this.drEditionService=e,this.rendererManager=t,this.videoManager=n,this.pulseManager=r,this.drEditionAds=[]}fetchAndRenderAd(e,t){return Q(this,void 0,void 0,function*(){var n,r;const{drEditionConfig:{options:{containerSelector:i}},renderAsBackfill:o=!1}=t,a=e.querySelector(i);if(!a)return void O(`Container with selector "${i}" not found.`);const d=yield this.drEditionService.fetchData(t);return(null==d?void 0:d.itemId)||o?!(null==d?void 0:d.itemId)&&o?(O("No Dr. Edition ads available to render. Collapsing whole placement."),Xt(e.id),void gn(a)):((null==d?void 0:d.itemId)&&o&&(O("Dr. Edition ad available to render as a Xandr backfill."),Zt(e.id)),void(d?(d.css&&((e,t)=>{const n=document.createElement("link");n.rel="preload",n.href=e,n.as=t,document.head.appendChild(n)})(d.css,"style"),yield this.rendererManager.render(a,d,t),yield null===(n=this.videoManager)||void 0===n?void 0:n.handle(d,t),gn(a),this.drEditionAds.push(d),window.advertory=window.advertory||{},window.advertory.renderedDrEditionAds=window.advertory.renderedDrEditionAds||[],window.advertory.renderedDrEditionAds.push(d.itemId),this.observeAdView(e,d,t),null===(r=e.querySelector("a"))||void 0===r||r.addEventListener("pointerup",()=>null)):gn(a))):(O("No Dr. Edition ads available to render. Hiding Dr. Edition and rendering Xandr backfill."),this.hideDrEdition(a),this.showBackfill(e),void gn(a))})}observeAdView(e,t,n){this.observeCarousel(e,t,n)||((e,t,n={threshold:.5})=>{new IntersectionObserver(([e],n)=>{e.isIntersecting&&(t(),n.disconnect())},n).observe(e)})(e,()=>this.pulseManager.trackContentView(e,t,n),{threshold:.5})}showBackfill(e){var t;const n=e.querySelector(".fallback");if(!n)return;n.style.display="block";const r=null!==(t=n.dataset.fallbackTargetId)&&void 0!==t?t:"";Zt(r)}hideDrEdition(e){e.style.display="none"}observeCarousel(e,t,n){const r=e.querySelector(".dr-edition-slider");if(!r)return!1;let i=null;const o=new IntersectionObserver(e=>{e.forEach(e=>{e.isIntersecting&&e.intersectionRatio>=.9&&(i&&clearTimeout(i),i=setTimeout(()=>{e.target.onclick=()=>this.pulseManager.trackContentClick(e.target,t,n),this.pulseManager.trackContentView(e.target,t,n)},500)),[...r.children].forEach(e=>{o.observe(e)})})},{threshold:[.9]});return[...r.children].forEach(e=>{o.observe(e)}),!0}}class mn{constructor(e,t){this.newsroomStrategy=e,this.pulseManager=t}render(e,t,n){return Q(this,void 0,void 0,function*(){if(!(null==t?void 0:t.itemId))return;const{getConsentAsync:r}=ge(n.tcf,n.isMobileApp,n.country),i=yield r(),o=V(n.device)?t.mobileHTML:t.desktopHTML,a=i?o:o.replace(/<img [^>]*class="tracking-pixel"[^>]*>/g,"");e.innerHTML=a,e.querySelectorAll("a").forEach(e=>{var r,i,o;e.search=null!==(o=null===(i=(r=this.newsroomStrategy).getUrlSearchParams)||void 0===i?void 0:i.call(r,e,t,n))&&void 0!==o?o:"",e.onclick=()=>this.pulseManager.trackContentClick(e,t,n)})})}}class fn{constructor(e){this.strategy=e}handle(e,t){return Q(this,void 0,void 0,function*(){const{videoConfiguration:{id:n,preview:r}={}}=e;(n||r)&&(yield this.importScript(t),yield this.createVideoElement(e,t))})}importScript(e){return Q(this,void 0,void 0,function*(){const t=e.drEditionConfig.options.videoScriptUrl,n=document.querySelector(`script[src="${t}"]`);if(t&&!window.autoplayQueue&&!n)try{yield Je(t)}catch(e){O("Error! Failed to prepare SVP player script for Dr. Edition!",e)}})}createVideoElement(e,t){return Q(this,void 0,void 0,function*(){const n=document.createElement("div"),{node:r}=e.videoConfiguration,i=[...document.querySelectorAll(`#${r}`)||[]].find(e=>0===e.children.length);if(this.handlePreviewVideo(e,t))return;this.strategy.handleVideo(n,e),null==i||i.appendChild(n),window.autoplayQueue=window.autoplayQueue||[],window.autoplayQueue.push(e=>{e.parse()});const o=null==i?void 0:i.parentNode;if(!o)return;const a=o.closest("a");o.addEventListener("click",e=>{const t=e.target.closest("a");a!==t&&t||(e.stopPropagation(),e.preventDefault())})})}handlePreviewVideo(e,t){var n,r,i;const{preview:{url:o,thumbnail:a}}=null!==(n=e.videoConfiguration)&&void 0!==n?n:{};if(!o)return!1;const d=document.querySelector(".dr-edition-preview .preview-video");return!!d&&(d.setAttribute("src",o),d.setAttribute("playsinline",""),!(!d||!a)&&(null===(i=(r=t.drEditionConfig.options).addPreviewVideo)||void 0===i||i.call(r,d),!0))}}class yn{constructor(e,t){this.pulse=e,this.newsroomStrategy=t}getEventInput(e,t,n,r){return{}}mapPageType(e){return{front:"Frontpage",article:"Article",section:"Article",collection:"Article",other:"Article"}[e||"front"]||"Frontpage"}getArticleId(){return location.pathname.split("/").slice(-2,-1).pop()||""}getTeaserElementText(e,t){if(!e)return"";const n=e.querySelector({title:".dr-edition-title",subtitle:".dr-edition-subtitle",image:"img.teaser-main-image"}[t]);if(!n)return"";if("image"===t)return n.src||"";const r=null==n?void 0:n.textContent;return r?r.trim():""}getEventTarget(e,t){const{itemId:n,pulseData:{url:r}={}}=t,i=this.getTeaserElementText(e,"title");return{id:n,name:this.normalizePlacementTitle(null!=i?i:""),type:"Page",url:r}}normalizePlacementTitle(e){return e.replace(/<[^>]+>/gi,"").replace(/[^a-z0-9æøå\s_-]/gi,"")}trackContentView(e,t,n){return Q(this,void 0,void 0,function*(){var r,i,o,a,d,s,l,c;const p=new CustomEvent("advertory:partnerstudioAdImpression",{detail:{ad:n.editionName}});if(window.dispatchEvent(p),!this.pulse)return;const u=this.getEventInput(e,t,n,"view");(null===(r=this.pulse)||void 0===r?void 0:r.trackLegacyViewUIElement)?null===(o=null===(i=this.pulse)||void 0===i?void 0:i.trackLegacyViewUIElement)||void 0===o||o.call(i,u):(null===(a=this.pulse)||void 0===a?void 0:a.trackViewUIElement)?null===(s=null===(d=this.pulse)||void 0===d?void 0:d.trackViewUIElement)||void 0===s||s.call(d,u):null===(c=null===(l=this.pulse)||void 0===l?void 0:l.trackElementView)||void 0===c||c.call(l,u)})}trackContentClick(e,t,n){return Q(this,void 0,void 0,function*(){var r,i,o,a,d,s;if(!this.pulse)return;const l=this.getEventInput(e,t,n,"click");this.pulse.trackLegacyClickUIElement?null===(i=(r=this.pulse).trackLegacyClickUIElement)||void 0===i||i.call(r,l):this.pulse.trackClickUIElement?null===(a=(o=this.pulse).trackClickUIElement)||void 0===a||a.call(o,l):null===(s=(d=this.pulse).trackElementClick)||void 0===s||s.call(d,l)})}}class wn extends yn{constructor(e,t,n){super(e,t),this.pulse=e,this.newsroomStrategy=t,this.pageType=n}getEventBaseData(e,t,n){var r,i,o;const{pulseData:{title:a,clientName:d="",creativeId:s,url:l=""}={}}=t,{columnName:c,primaryPosition:p}=n,{publicUrl:u,urlPath:v}=null!==(o=null===(i=null===(r=this.newsroomStrategy)||void 0===r?void 0:r.transformUrl)||void 0===i?void 0:i.call(r,l))&&void 0!==o?o:{publicUrl:l,urlPath:l?new URL(l).pathname:""};return{"@type":"UIElement",elementType:"Teaser",layout:{elementSize:"large",imageUrl:"",name:"large"},name:a,placement:{columnName:c,primaryPosition:p},tags:[d,a,u,v].filter(Boolean),"spt:custom":{is_sponsored:!0,sponsor:d,"spt:creativeId":s,pageTitle:a,publicUrl:u,urlPath:v},url:location.origin}}getEventInput(e,t,n){return{object:this.getEventBaseData(e,t,n),target:this.getEventTarget(e,t)}}}class bn extends yn{constructor(e,t,n){super(e,t),this.pulse=e,this.newsroomStrategy=t,this.pageType=n}getEventBaseData(e,t,n){var r,i,o,a,d,s;const{itemId:l,pulseData:{clientName:c,creativeId:p}={}}=t,u=n.editionName,v=this.mapPageType(this.pageType),g=null===(r=this.newsroomStrategy)||void 0===r?void 0:r.getPulsePageId(this.pageType||"front",this.getArticleId());return{"@id":null!==(a=null===(o=null===(i=this.newsroomStrategy)||void 0===i?void 0:i.getPulseObjectId)||void 0===o?void 0:o.call(i))&&void 0!==a?a:u,"@type":"UIElement",position:u,elementType:"Article",custom:{customer:c,creativeId:null!=p?p:l},page:{"@id":null!=g?g:u,"@type":v,url:location.origin},tags:null===(s=null===(d=this.newsroomStrategy)||void 0===d?void 0:d.getTags)||void 0===s?void 0:s.call(d,e)}}getEventInput(e,t,n,r){return{object:this.getEventBaseData(e,t,n),partnerstudio:this.getEventPartnerstudioData(e,t,n,r),target:this.getEventTarget(e,t),provider:this.getProviderData()}}getEventPartnerstudioData(e,t,n,r){var i,o,a,d;const{pulseData:{algorithm:s="sov",clientName:l,creativeId:c,editionId:p,itemId:u,url:v,probability:g}={}}=t,h=Math.floor(Date.now()/1e3),m=this.getTeaserElementText(e,"title"),f=this.getTeaserElementText(e,"subtitle"),y=this.getTeaserElementText(e,"image"),w=null!==(d=null!==(a=null===(o=null===(i=this.newsroomStrategy)||void 0===i?void 0:i.getUrlWithParams)||void 0===o?void 0:o.call(i,t,n))&&void 0!==a?a:v)&&void 0!==d?d:"";return{algorithm:s,clientName:l,probability:g,creativeId:c,device:n.device,editionId:p,itemId:u,link:w,placement:n.editionName,subtitle:f,time:h,title:m,type:r,imageUrl:y,frontId:86,tracking_type:"ad",xandrAdLoaded:!1}}getProviderData(){return{productTag:"partnerstudio"}}}const xn={FRONT:"front",ARTICLE:"article"},En=(e,t)=>{null==t||t.forEach(t=>{const n=window.SVP.Player.Plugins.get(t);e.addPlugin(new n)})},Cn=e=>Q(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 r=document.createElement("script");r.id=e,r.src="https://cdn.stream.schibsted.media/player/3.78.1/player.min.js",r.async=!0;try{r.src=r.src.replace("player.min","player.next.min")}catch(e){console.error("Failed to set player.next.min source:",e)}document.head.insertBefore(r,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)))}))}),In={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 Q(this,void 0,void 0,function*(){yield import("./styles-PC2UmnHJ.js")})}})}},An=(e,t)=>{null==e||e.forEach(e=>{In[e](t)})};class Sn{handleVideo(e,t){return Q(this,arguments,void 0,function*(e,{videoConfiguration:{id:t,node:n,autoplay:r,mute:i,vendor:o}}){yield Q(void 0,void 0,void 0,function*(){return yield new Promise(e=>{var t;Boolean(null===(t=window.SVP)||void 0===t?void 0:t.Player)?e(!0):window.addEventListener("onSvpPlayerReady",()=>e(!0))})});const a=["ContentMutePlugin"],d=this.createPlayerOverlay(e);An(a,d);const s={id:t,node:n,autoplay:r,mute:i,vendor:o,autopause:"viewable",maxBitrate:600,pulse:{provider:"e24"},recommended:{autoplay:!1,next:{countdown:10}},skin:{name:"e24-default",url:""}},l=yield Cn(s);l.once("assetReady",()=>{En(l,a)}),l.once("ready",()=>{const t=e;new MutationObserver(e=>{e.forEach(({type:e,attributeName:n})=>{"attributes"===e&&"class"===n&&(t.classList.contains("jw-state-playing")?d.classList.add("is-playing"):d.classList.remove("is-playing"),t.classList.contains("jw-flag-user-inactive")?d.classList.add("is-inactive"):d.classList.remove("is-inactive"))})}).observe(t,{attributes:!0,attributeFilter:["class"]})}),l.once("PulseStats:ready",()=>Q(this,void 0,void 0,function*(){const e=yield l.getPlugin("PulseStats").getTracker();null==e||e.update({provider:{id:"e24",productTag:"partnerstudio"}})}))})}getPulseObjectId(){return"sdrn:e24:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(e,t){return e===xn.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:r}=new URL(n),i=r.split("/").filter(Boolean);return i.length?[...i.slice(1),n]:[n]}createPlayerOverlay(e){const t=document.createElement("div");t.classList.add("cm-custom-video-overlay"),e.parentElement&&(t.innerHTML=e.parentElement.innerHTML,e.parentElement.replaceChild(t,e));return t.addEventListener("click",e=>{e.stopPropagation(),e.preventDefault(),t.classList.add("has-interacted")}),t}}const Tn="https://www.aftonbladet.se/video-player-extras/latest/";class kn{handleVideo(e,t){return Q(this,arguments,void 0,function*(e,{videoConfiguration:{id:t,node:n,autoplay:r,mute:i,vendor:o}}){const a={id:t,node:n,autoplay:r,mute:i,vendor:o,autopause:"viewable",maxBitrate:600,pulse:{provider:"aftonbladet"},recommended:{autoplay:!1,next:{countdown:10}},skin:{name:"",url:""},plugins:{[`${Tn}cta-button.js`]:{name:"CtaButton",options:{type:"unmute"}},[`${Tn}external-link.js`]:{name:"ExternalLink"}}};yield Cn(a),this.addEditionVideoClass(e)})}addEditionVideoClass(e){var t;(null===(t=null==e?void 0:e.parentElement)||void 0===t?void 0:t.parentElement)&&e.parentElement.parentElement.classList.add("dr-edition-video-player")}transformUrl(e){const{hostname:t,pathname:n}=new URL(e);return"brand-studio.aftonbladet.se"===t?{publicUrl:`https://aftonbladet.se/brand-studio${n}`,urlPath:`/brand-studio${n}`}:{publicUrl:e,urlPath:n}}getPulseObjectId(){return""}getPulsePageId(){return""}}const On=e=>null!==e&&"object"==typeof e&&!Array.isArray(e);class Pn{handleVideo(e,t){return Q(this,arguments,void 0,function*(e,{videoConfiguration:{id:t,node:n,autoplay:r,mute:i,vendor:o}}){const a={id:t,node:n,autoplay:r,mute:i,vendor:o,locale:"se",autopause:"viewable",maxBitrate:600,sharing:!1,recommended:!1,pulse:{provider:"svdse",decorator:(e,t)=>Object.assign(Object.assign({},On(e)?e:{}),{provider:Object.assign(Object.assign({},On(null==e?void 0:e.provider)?e.provider:{}),{productTag:"partnerstudio"})})},skin:{name:"svd-player",url:""},settings:{pulse:{host:"se-aftonbladet.videoplaza.tv",contentMetadata:{category:"SvD",tags:["standard-linears","pause",`video-${t}`]},requestSettings:{}}}},d=yield Cn(a);d.once("PulseStats:ready",()=>Q(this,void 0,void 0,function*(){const e=yield d.getPlugin("PulseStats").getTracker();null==e||e.update({provider:{id:"svdse",productTag:"partnerstudio"}})}))})}transformUrl(e){const{hostname:t,pathname:n}=new URL(e);return"brand-studio.svd.se"===t?{publicUrl:`https://svd.se/brand-studio${n}`,urlPath:`/brand-studio${n}`}:{publicUrl:e,urlPath:n}}getPulseObjectId(){return"sdrn:svdse:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(e,t){return e===xn.FRONT?"sdrn:svdse:frontpage:front":`sdrn:svdse:article:${t}`}}class _n{handleVideo(e,t){}getPulseObjectId(){return""}getPulsePageId(e,t){return""}}const Ln=(e,t,n)=>{var r;const{publisher:i,pageType:o,country:a}=e,d={[G.VG]:new vn,[G.E24]:new Sn,[G.AFTONBLADET]:new kn,[G.SVD]:new Pn}[i]||new _n,s=new(a===ce.SE?wn:bn)(n,d,o),l=new un(t,null!==(r=null==n?void 0:n.pulseTracker)&&void 0!==r?r:n),c=new mn(d,s),p=new fn(d);return new hn(l,c,p,s)},jn=()=>Q(void 0,void 0,void 0,function*(){return yield new Promise(e=>{if("undefined"!=typeof window)if(window.Identity)e(window.Identity);else{const t=()=>{e(window.Identity)};window.addEventListener("identity-initialized",t,{once:!0})}else e(void 0)})});class Nn{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 Q(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 O("[Privacy Broker] User is not logged in."),null}})}isUserLoggedIn(){return Q(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 $n=(e,t,n)=>{const{wrapperSelector:r}=null==e?void 0:e.drEditionConfig.options,i=document.querySelectorAll(r),o=new IntersectionObserver((r,i)=>((e,t,n,r,i)=>{const o=Ln(n,r,i);e.forEach(e=>{var r,i,a;if(!e.isIntersecting)return;const d=e.target,s=null!==(r=d.dataset.editionName)&&void 0!==r?r:"",l=null!==(i=d.dataset.pulseColumnname)&&void 0!==i?i:"",c=null!==(a=d.dataset.pulsePrimaryposition)&&void 0!==a?a:"";o.fetchAndRenderAd(d,Object.assign(Object.assign({},n),{editionName:s,columnName:l,primaryPosition:c})),t.unobserve(d)})})(r,i,e,t,n),{rootMargin:"400% 0px"});i.forEach(e=>o.observe(e))},Dn=()=>Q(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)}}),Rn=()=>{const e=document.getElementById("ads-advertory-anchor");return!(e&&"none"!==getComputedStyle(e).display&&window.advertoryFluepapir)},Mn=[],qn=(e,t)=>Q(void 0,void 0,void 0,function*(){var n;const{pulse:r,tcf:i,drEdition:o,pageContext:{deviceType:a,publisher:d,pageType:s,countryCode:l,isMobileApp:c}}=e;if(!(yield he(i,c,l,"handleDrEditionBackfill")))return;const p=((e,t)=>{var n,r;const{pageContext:{deviceType:i},placements:o,drEdition:a}=e,d=null===(n=null==a?void 0:a.options)||void 0===n?void 0:n.fallbackGlobalEditionName,s=o[i]||o.desktop,l=Bt(t.targetId),c=s.find(e=>e.targetId===l),p=pn.some(e=>l.startsWith(e)),u=Mn.includes(l),v=(null===(r=null==c?void 0:c.drEdition)||void 0===r?void 0:r.editionName)||d;return c&&p&&!u&&v?(Mn.push(l),Object.assign(Object.assign({},c),{drEdition:Object.assign(Object.assign({},c.drEdition),{editionName:v})})):null})(e,t);if(!p)return;if(!(null==r?void 0:r.instance))return void O("Pulse has not been passed as a prop, aborting");const u=yield jn(),v=new Nn(u),g=Ln({publisher:d,pageType:s,country:l},v,null==r?void 0:r.instance),h=document.getElementById(t.targetId);if(!h||!o)return;h.classList.value="";const m=document.createElement("div");m.className=o.options.containerSelector.replace(/^[.#:[\]]+/,""),h.innerHTML=m.outerHTML;const f={editionName:(null===(n=null==p?void 0:p.drEdition)||void 0===n?void 0:n.editionName)||"",drEditionConfig:o,device:a,tcf:i,isMobileApp:c,country:l,renderAsBackfill:!0};yield g.fetchAndRenderAd(h,f)}),Fn=e=>Q(void 0,void 0,void 0,function*(){var t;if(!e.drEdition)return;if(!(yield he(e.tcf,e.pageContext.isMobileApp,e.pageContext.countryCode,"handleDrEdition")))return;const n=yield jn(),r=new Nn(n);$n({publisher:e.pageContext.publisher,drEditionConfig:e.drEdition,device:e.pageContext.deviceType,pageType:e.pageContext.pageType,country:e.pageContext.countryCode},r,null===(t=e.pulse)||void 0===t?void 0:t.instance)}),Bn=(e,t)=>{var n,r,i;if(!Rn())return void O("Ad block not enabled, Dr. Edition backfills will not be rendered");O("Ad block is enabled, Dr. Edition backfills will be rendered");const{pageContext:{deviceType:o},finnBlink:a}=e,d=null===(r=null===(n=null==a?void 0:a.replacementConfig)||void 0===n?void 0:n.adsToReplace)||void 0===r?void 0:r[o],s=null!==(i=null==d?void 0:d.map(([e])=>e))&&void 0!==i?i:[],l=new IntersectionObserver((t,n)=>Q(void 0,void 0,void 0,function*(){for(const r of t){if(!r.isIntersecting)continue;const t=r.target;n.unobserve(t),yield qn(e,{targetId:t.id})}}),{rootMargin:"400% 0px"});t.filter(e=>!s.some(t=>e.targetId.startsWith(t))).forEach(e=>{const t=document.getElementById(e.targetId);t&&l.observe(t)})},Un="collapseAd",Vn="hideAd",Hn="resizeAd",zn="renderDrEditionFallback",Wn="wallpaperImageUrl",Kn="wallpaperColor",Gn="velvet",Jn=[Hn,Wn,Kn,Un,Vn,zn,Gn];let Yn;const Qn=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(Kt(e)){const t=e.replace(/^wallpaper:url:/,"");return{name:Wn,wallpaperImageUrl:t}}if(Gt(e)){const t=e.replace(/^wallpaper:color:/,"");return{name:Kn,wallpaperColor:t}}if(e.startsWith(zn)){const t=e.split(":")[1];return{name:zn,targetId:t}}if(e.startsWith(Un)||e.startsWith(Vn)){const t=e.split(":")[1];return{name:Un,targetId:t}}if(e.includes("name")&&Jn.some(t=>e.includes(t)))try{return JSON.parse(e)}catch(e){}})(t);if(!n)return;if(!n.name||!Jn.some(e=>n.name===e))return;const{name:r,targetId:i,wallpaperImageUrl:o,wallpaperColor:a,cmd:d,size:s}=n;r===Gn&&d&&(d.includes("noScroll")&&(Yn=(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==Yn||Yn(),dispatchEvent(new CustomEvent("advertory:closeTakeover",{})))),r!==Un&&r!==Vn||!i||Xt(i),r===Hn&&i&&d&&cn(i,d),r===zn&&i&&(Xt(i),qn(N.get(),{targetId:i})),"resizeMediationAd"===r&&i&&s&&cn(i,s,!0),r===Wn&&o&&Jt(o),r===Kn&&a&&Yt(a)},Xn=e=>({rootMargin:`${e}px 0px ${e}px 0px`}),Zn=()=>{const{pageContext:{publisher:e,countryCode:t},finnBlink:n}=N.get(),r=window.apntag,i={publisher:e,countryCode:t,finnBlink:n},o=e=>{Zt(e),$t(()=>r.showTag(e))};return{withXandrAd:o,withFinnBlinkAd:e=>Q(void 0,void 0,void 0,function*(){if(!(null==n?void 0:n.enabled))return;const{loadFinnBlinkAd:t}=yield import("./index-CtT25tc8.js");yield t(e,i,null)}),withFullAdsChain:e=>Q(void 0,void 0,void 0,function*(){if(!(null==n?void 0:n.enabled))return void o(e);const{loadFinnBlinkAd:t}=yield import("./index-CtT25tc8.js");yield t(e,i,o,()=>Q(void 0,void 0,void 0,function*(){if(!Z.getData("horseshoe").isAvailable)return;const{adjustAdToHorseshoe:t}=yield Promise.resolve().then(function(){return Qt});t(e)}))})}},er=(e,t,n)=>{const r="true"===n.dataset.isFinnBlinkOnlyPlacement;return g(t)&&r?(O(`loading finn blink ad for blink only placement for ${t}`),void Zn().withFinnBlinkAd(t)):g(t)?(O(`loading finn blink ad with full ads chain for ${t}`),void Zn().withFullAdsChain(t)):void $t(()=>(O("core showTag",{id:t}),e.showTag(t)))},tr=(e,t)=>Q(void 0,void 0,void 0,function*(){yield Dt,yield Rt;const n=new IntersectionObserver((t,n)=>((e,t,n,r)=>{e.filter(({isIntersecting:e,target:{id:t}})=>e&&!t.includes("wallpaper")).forEach(e=>{const{target:i}=e,o=(e=>{const t=e.dataset.showTagSubscribeId;return!e.id.length&&t?t:e.id})(i),a=document.getElementById(o);O("core log from intersection observer handler",{targetId:o,element:a}),n(window.apntag,o,r),a&&(t.unobserve(a),t.disconnect())})})(t,n,er,e),Xn(t));n.observe(e)}),nr=new Map,rr=["no-stavangeraftenblad","sa","no-aftenposten","aftenposten","no-bergenstidende","bt"],ir=".brandstudio-premium-content-widget",or=({adWrapper:e,placementContainer:t})=>t.offsetHeight+(({adWrapper:e})=>{const{paddingTop:t,paddingBottom:n}=getComputedStyle(e);return parseFloat(t)+parseFloat(n)})({adWrapper:e}),ar=({adWrapper:e,placementContainer:t})=>{const n=or({adWrapper:e,placementContainer:t});var r;null==e||e.style.setProperty("height",`${n}px`),tn(r=t),r.innerHTML=""},dr=e=>{e&&e.style.getPropertyValue("height")&&e.style.removeProperty("height")},sr=({adWrapper:e,placementContainer:t})=>{const{pageContext:{publisher:n}}=N.get(),r=rr.includes(n)&&Boolean(t.closest(ir));const i=r?t.closest(ir):null,o=new MutationObserver(t=>{t.forEach(({addedNodes:t})=>{t.forEach(t=>{const n=t instanceof HTMLElement,a=n&&t.matches("iframe, article")&&e;if(!n||!r&&!a||r&&!i)return;if(a)return dr(e),void o.disconnect();const d=t.closest('[style*="height"]'),s=i;d&&s.contains(d)?dr(d):s.hasAttribute("style")&&dr(s),o.disconnect()})})});try{o.observe(t,{childList:!0,subtree:!0})}catch(e){o.disconnect()}},lr=(e,t,n,r,i,o)=>{var a;const d=performance.now(),s=null!==(a=nr.get(t))&&void 0!==a?a:0,l=((e,t)=>!!t&&e+t<(new Date).getTime())(r,i)&&n<0;d-s>=i&&l&&(nr.set(t,d),((e,t,n)=>{const{pageContext:{countryCode:r}}=N.get(),i=null==n?void 0:n.parentElement;i&&n&&ar({adWrapper:i,placementContainer:n}),$t(()=>{e.setKeywords([t],{[`${Ee(r)}-adreload`]:"1"},{overrideKeyValue:!0}),e.refresh([t])})})(e,t,o))},cr=(e,t,n)=>{const r=new IntersectionObserver((e,r)=>((e,t,n,r)=>{e.filter(({isIntersecting:e})=>e).forEach(e=>{const{target:i,boundingClientRect:o}=e;t(window.apntag,i.id,o.y,n,r,i)})})(e,lr,t,n),Xn(300));r.observe(e)},pr=(e,t=6)=>{const n=[];for(let r=0;r<e.length;r+=t){const i=e.slice(r,r+t);n.push(i)}return n},ur=()=>navigator&&navigator.userAgent.match(/chrome/i)?null:navigator&&navigator.userAgent.match(/apple/i),vr=(e,t=0)=>{const n=e.getBoundingClientRect(),r=window.innerHeight;return n.bottom>-t&&n.top<r+t},gr=e=>{const{refreshConfig:{visibilityStateRefreshEnabled:t=!1}={}}=N.get();if(!t)return;const n=()=>{"visible"===document.visibilityState&&document.removeEventListener("visibilitychange",n),wr(e)};"visible"!==document.visibilityState&&document.addEventListener("visibilitychange",n)},hr=(e,t,n)=>{const r=document.querySelectorAll('[data-bf-cache-refresh="true"]');for(const i of r){const r=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)}),o=null==r?void 0:r.requestThreshold;vr(i,o)&&r&&(en(r.targetId),n.length&&i.classList.remove(...n),wr([r],t))}},mr=e=>{const{refreshConfig:{backForwardNavigationRefreshEnabled:t=!1}={},siteSpecificConfig:{classesToRemoveOnRefresh:n=[]}={},pageContext:{isMobileApp:r}}=N.get();t&&(e.forEach(({targetId:e})=>{const t=fr(e);t&&(t.dataset.bfCacheRefresh="true")}),r?((e,t)=>{document.addEventListener("visibilitychange",()=>{"visible"===document.visibilityState&&hr(e,!0,t)})})(e,n):((e,t)=>{window.addEventListener("pageshow",n=>{const r=()=>{window.scrollY>0&&(window.removeEventListener("scroll",r),hr(e,!1,t))};n.persisted&&(ur()?window.addEventListener("scroll",r,{passive:!0}):hr(e,!1,t))})})(e,n))},fr=e=>{var t,n;return null!==(n=null===(t=document.querySelector(`#${e}`))||void 0===t?void 0:t.parentElement)&&void 0!==n?n:null},yr=e=>{const{targetId:t,allowedFormats:n}=e,r=(e=>{if(!e)return[];try{return JSON.parse(e.dataset.adSizes||"[]")}catch(e){return[]}})(fr(t)),i=(e=>1===e[0]&&1===e[1])(r),o={sizes:[r],allowedFormats:i?n:n.filter(e=>"native"!==e),allowSmallerSizes:!1};return i||(o.native=void 0),o},wr=(e,t=!1)=>{const{queryConfig:{batchSize:n=L}={}}=N.get(),r=e.map(({targetId:e})=>e),i=pr(r,n);if(t)for(const t of e){const e=yr(t);window.apntag.modifyTag(t.targetId,e)}for(const e of i)$t(()=>window.apntag.refresh(e))},br=(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,xr=e=>{const t=encodeURIComponent(e).replace(/[-.+*]/g,"\\$&"),n=new RegExp(`(?:(?:^|.*;)\\s*${t}\\s*\\=\\s*([^;]*).*$)|^.*$`);return decodeURIComponent(document.cookie.replace(n,"$1"))||null},Er=e=>Q(void 0,void 0,void 0,function*(){const{tcf:t,pageContext:{isMobileApp:n,countryCode:r}={}}=e,{getConsentAsync:i}=ge(t,0,r);if(!(yield i()))return;const o=xr("_pulse2data");return o?o.split(",")[9]:void 0}),Cr=()=>{const e=xr("_pulse2data");return e?e.split(",")[2]:void 0},Ir={SPLASH:"splash",WELCOME_PAGE:"welcomePage",TOPSCROLLER:"topscroller",VELVET:"velvet"},Ar="takeover-displayed",Sr="takeover-visit-count",Tr=14400,kr=()=>{const e=xr(Sr);return e?parseInt(e):0},Or=()=>{const e=kr(),{takeover:{options:{cookieCapTime:t=Tr}={}}={}}=N.get(),n=document.location.hostname;window.document.cookie=`${Sr}=${e+1}; max-age=${t}; domain=${n}; path=/; SameSite=Lax`},Pr=()=>{const{takeover:{enabled:e=!1,options:{secondVisitEnabled:t=!1}={}}={}}=N.get();return"0"!==oe(de)&&("1"===oe(de)||!(!e||(()=>{var e,t;const n=(null===(t=null===(e=N.get().takeover)||void 0===e?void 0:e.options)||void 0===t?void 0:t.cookieCapName)||Ar;return"true"===xr(n)})())&&(!t||_r()))},_r=()=>{const e=kr();return 0===e?(Or(),!1):1===e},Lr=(e,t)=>[[1,1],[1920,1080]].some(([n,r])=>n===e&&r===t),jr=()=>{const{takeover:e}=N.get();return Boolean(null==e?void 0:e.topscroller)},Nr=e=>{const{width:t,height:n}=e;return Lr(t,n)?Ir.SPLASH:E(e,r.VELVET_TAKEOVER)?Ir.VELVET:jr()?Ir.TOPSCROLLER:Ir.WELCOME_PAGE},$r=()=>Q(void 0,void 0,void 0,function*(){const e=document.location.hostname,{takeover:{options:{cookieCapName:t=Ar,cookieCapTime:n=Tr}={}}={},pageContext:{isMobileApp:r,countryCode:i},tcf:o}=N.get(),a=yield he(o,r,i,"ad-takeover-cookiecap");n&&a&&(window.document.cookie=`${t}=true; max-age=${n}; domain=${e}; path=/`)}),Dr=e=>{var t,n;const r=!!(null===(n=null===(t=N.get().takeover)||void 0===t?void 0:t.options)||void 0===n?void 0:n.setCookieCapForNotShownAd);return l(e)&&r},Rr=(e,t)=>{var n;if(t===Ir.TOPSCROLLER){const{topscroller:t}=e;return null!=t?t:{}}if(t===Ir.SPLASH){const{splash:t}=e;return null!=t?t:{}}return null!==(n=e.welcomePage)&&void 0!==n?n:{}},Mr=(e,t)=>{t!==Ir.SPLASH?(e=>{var t,n;const r=null===(t=N.get().pageSectionsSelectors)||void 0===t?void 0:t.header,i=null===(n=N.get().takeover)||void 0===n?void 0:n.topscroller;if(!r||i)return;const o=document.querySelector(r),a=document.querySelector(".welcome-page-wrapper"),d=document.querySelector(`#${e.targetId}`),s=document.querySelector(".advertory-welcome-page-scroll");if(!(o&&a&&s&&d))return;const l=null==o?void 0:o.offsetHeight,p=c(e)?"60svh":`calc(100svh - ${l}px)`,u=c(e)?"calc(40svh + 30px)":`calc(${l}px + 30px)`;a.style.setProperty("height",p,"important"),d.style.setProperty("height",p,"important"),s.style.setProperty("bottom",u,"important")})(e):(e=>{var t;if(!(null===(t=N.get().takeover)||void 0===t?void 0:t.splash))return;const n=document.querySelector(".advertory-splash-navbar-wrapper"),r=document.querySelector(`#${e.targetId}`);if(!n||!r)return;const i=`calc(100svh - ${n.offsetHeight}px)`;r.style.setProperty("height",i,"important")})(e)},qr=nt([],()=>{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 Fr=Object.freeze({__proto__:null,addTakeoverCookie:$r,adjustTakeoverHeight:Mr,canDisplayTakeover:Pr,getProperWelcomePageConfig:Rr,getTakeoverVariant:Nr,handleTakeoverCookieOnAdNotShown:e=>Q(void 0,void 0,void 0,function*(){Dr(e)&&(yield $r())}),incrementArticleVisitCount:Or,isSplashVariant:Lr,isTopscroller:jr,scaleAd:qr,shouldAddTakeoverCookieForNotShownAd:Dr});const Br=e=>`externalImpId:'${e}'`,Ur=e=>{var t;const{pageSetup:{tag:{forwardExternalImpId:n=!1}={}}={},tracker:r}=N.get(),{targetId:i,sizes:o,keywords:a,allowedFormats:d,invCode:s,ssaNativeAdEnabled:l=!1,nativeCustomProperties:c,safeframeConfig:p,dynamicSizeWidthCheck:u=!1}=(e=>{var t;if(!e.takeoverCookieCapForSharedPlacement||Pr())return e;const n=null===(t=e.keywords)||void 0===t?void 0:t["no-sno-adformat"],r=Array.isArray(n)?n.filter(e=>e!==Ir.TOPSCROLLER):n,i=Object.assign(Object.assign({},e.keywords),n&&{"no-sno-adformat":r}),o=e.sizes.filter(([e,t])=>4!==e||4!==t);return Object.assign(Object.assign({},e),{sizes:o,keywords:i})})(e),v=Object.assign({invCode:s,sizes:o,targetId:i,keywords:br(a,l),allowedFormats:d,dynamicSizeWidthCheck:u},p&&{safeframeConfig:p}),g=(e=>{var t,n,r,i,o,a,d;return e?(null===(t=null==e?void 0:e.instance)||void 0===t?void 0:t.state)?(null===(r=null===(n=null==e?void 0:e.instance)||void 0===n?void 0:n.state)||void 0===r?void 0:r.pageViewId)?(O("Tracker state pageViewId is:",null===(o=null===(i=null==e?void 0:e.instance)||void 0===i?void 0:i.state)||void 0===o?void 0:o.pageViewId),null===(d=null===(a=null==e?void 0:e.instance)||void 0===a?void 0:a.state)||void 0===d?void 0:d.pageViewId):(O("Tracker state does not contain field pageViewId or it is empty"),""):(O("Tracker state is empty"),""):(O("Tracker is not configured in initAdvertory function"),"")})(r);n&&g&&(O("External Impression ID assigned to defineTag:",Br(g)),v.externalImpId=Br(g));const h=(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}}).reduce((t,[n,r])=>((null==e?void 0:e.includes(n))&&(t[n]=r),t),{customTitle1:{required:!1},customTitle2:{required:!1},customTitle3:{required:!1},customTitle4:{required:!1},title:{required:!1},body:{required:!1},image:{required:!1},icon:{required:!1},sponsoredBy:{required:!1},cta:{required:!1},clickUrl:{required:!1},desc2:{required:!1},displayUrl:{required:!1},description:{required:!1}}))(c);return(null===(t=e.allowedFormats)||void 0===t?void 0:t.includes("native"))&&(v.native=h),v},Vr=e=>!e.includes("takeover")||Pr(),Hr=e=>{const{source:t}=e;return"csm"===t},zr={nativeAd:e=>d(e)&&!v(e),buyrecipe:e=>e.targetId.startsWith("buyrecipe"),fullwidthAd:s,fullscreenScroll:a,topscroller:e=>l(e)&&jr(),splash:e=>l(e)&&Lr(e.width,e.height),welcomePage:l,wallpaper:p,skyscraper:e=>e.targetId.includes("skyscraper")&&!!e.banner,lFormat:w,hFormat:b,toppanorama:e=>e.targetId.startsWith("toppanorama")&&!b(e)&&!w(e),topboard:e=>e.targetId.startsWith("topboard")&&!l(e),widescreen:f,insider:e=>e.targetId.startsWith("insider"),sponsorstripe:v,brandboard:e=>(e=>(980===e.width||1920===e.width&&e.targetId.includes("brandboard"))&&!e.targetId.includes("topboard")&&!e.targetId.includes("companion")&&!h(e))(e)&&!(e=>e.targetId.includes("backfill"))(e)&&!m(e),outstream:y,netboard:e=>(e=>e.targetId.startsWith("netboard"))(e)||(e=>e.targetId.startsWith("board"))(e),panorama:h,midboard:m},Wr=({adObj:e,preferredTestIdData:t})=>{var n,r;const i=null!==(n=null==t?void 0:t.targetId)&&void 0!==n?n:null==e?void 0:e.targetId;if(!i)return;const o=null===(r=document.querySelector(`#${i}`))||void 0===r?void 0:r.parentElement;if(!o)return;if(((e,t)=>{var n,r,i,o;const a=null===(o=null===(i=null===(r=null===(n=window.apntag)||void 0===n?void 0:n.requests)||void 0===r?void 0:r.tags)||void 0===i?void 0:i[e])||void 0===o?void 0:o.invCode;a&&(t.dataset.invCode=a)})(i,o),null==t?void 0:t.testId)return void(o.dataset.testid=t.testId);const a="DIV"===(null==o?void 0:o.tagName);e&&a&&((e,t)=>{var n,r;for(const[i,o]of Object.entries(zr))if(o(e)){if("nativeAd"===i){const o="default";t.dataset.testid=`${i}-${null!==(r=null===(n=null==e?void 0:e.native)||void 0===n?void 0:n.desc2)&&void 0!==r?r:o}`;break}t.dataset.testid=i;break}})(e,o)},Kr=e=>{var t;return(null===(t=Object.entries(zr).find(([,t])=>t(e)))||void 0===t?void 0:t[0])||""},Gr=e=>{if(!e)return e;const{pageContext:{countryCode:t}}=N.get(),n=Ee(t),r=e[`${n}-targetid`],i=r?Bt(r[0]):"";return Object.assign(Object.assign({},e),r&&{[`${n}-targetid`]:[i]})},Jr=e=>{const{pageContext:{countryCode:t}}=N.get(),n=Ee(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"]})},Yr=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 r=n.split(",")[0].split(":")[0],i=e.find(e=>e.invCode===r),o=document.querySelector(`[id^=${null==i?void 0:i.targetId}]`);o&&o.scrollIntoView({behavior:"smooth",block:"start"})})(e),(()=>{var e;const t=new URLSearchParams(window.location.search).get("scrollToDrEditionPlacement");if(!t)return;const n=null!==(e=document.querySelector(`[id*="${t}}"]`))&&void 0!==e?e:document.querySelector(`a[aria-label*="${t}"]`);n&&n.scrollIntoView({behavior:"smooth",block:"start"})})()},Qr=(e,t)=>Q(void 0,void 0,void 0,function*(){return yield new Promise(t=>{e().then(e=>{t(null!=e?e:null)}).catch(e=>{t(null)})})});ht(".advertory-brandmetrics-survey{width:100%}");const Xr="advertory-brandmetrics-survey",Zr="https://dr-edition-teaser-server.inventory.schibsted.io/xandr",ei=()=>Q(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,r)=>{var i;r||t(""),"tcloaded"!==n.eventStatus&&"useractioncomplete"!==n.eventStatus||(t(null!==(i=n.tcString)&&void 0!==i?i:""),e("removeEventListener",2,()=>{},n.listenerId))})}))}:{};var e}),ti={pageContext:{publisher:"aftonbladet",countryCode:ce.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"}},ni={nyheter:"nyheter",sport:"sportbladet",noje:"nojesbladet",family:"family",matdryck:"matdryck",wellness:"wellness",minekonomi:"minekonomi",resa:"resa",harligthemma:"harligthemma"},ri=e=>(null==e?void 0:e.parent)?[...ri(e.parent),e.shortPath||"unknown"]:[],ii=(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]=ri(e);return ni[n]||"ovrigaavdelningar"})(e)}_{position}`,oi={aftonbladet:ti},ai={aftonbladet:(e,t)=>{if(!e)return null;return{invCode:ii(e,t),videoOverlayInvCode:"se-aftonbladet-{deviceType}-other-{position}",sections:ri(e).join(":")}}},di=e=>{switch(e){case"auto":return 1;case"silent":return 2;default:return 3}},si=new Map([[1,"autoplay"],[2,"muted-autoplay"],[3,"click-to-play"]]),li="se-generic",ci="aa-sch",pi="kv_",ui="pause",vi="{deviceType}",gi="{position}",hi="afp_",mi=new Set(Object.values({PREROLL:"preroll",BUMPER:"bumper",MIDROLL:"midroll"})),fi="1-1",yi="16-9",wi="3-4",bi="9-16",xi="responsive",Ei={[fi]:1,[yi]:1.78,[bi]:.56,[xi]:1},Ci={[fi]:1,[yi]:1.78,[wi]:1.33,[bi]:.56},Ii=(e,t,n,r)=>{const{invCode:i="",videoOverlayInvCode:o}=null!=e?e:{},a=D.DESKTOP===n?q:F,d=i.replace(vi,a);return(e,n)=>{if(e===ui)return(e=>e.replace("tv-","").replace("-afp_","-afp-").replace(gi,ui).replace(/-([a-z]+)_/,"-article-"))(d);if(n&&mi.has(e)){return(r&&o?o:t.frontpageInvCodeTemplate).replace(vi,a).replace(gi,e)}return d.replace(gi,e)}},Ai=(e,t)=>{const n=Object.entries(e);return n.reduce((n,[r,i])=>{const o=Math.abs(e[n]-t);return Math.abs(i-t)<o?r:n},n[0][0])},Si=()=>{var e,t;const n=jwplayer().getContainer(),r=null!==(t=null===(e=document.getElementById(n.id))||void 0===e?void 0:e.parentElement)&&void 0!==t?t:null;return r&&"number"==typeof r.offsetWidth&&"number"==typeof r.offsetHeight&&0!==r.offsetHeight?r.offsetWidth/r.offsetHeight:1},Ti=()=>{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},ki=()=>{const e=null!==(t=Ti()[9])&&void 0!==t?t:null;var t;const n=(()=>{var e;return null!==(e=Ti()[2])&&void 0!==e?e:null})();return e?Number(Boolean(e))+Number(Boolean(n)):0},Oi=()=>Object.fromEntries(new URLSearchParams(window.location.search)),Pi=(e,t)=>Q(void 0,void 0,void 0,function*(){const{tcf:n,pageContext:{publisher:r,countryCode:i}}=t,{width:o,height:a}={width:window.innerWidth,height:window.innerHeight},d={isMobileApp:e.isApp,countryCode:i,publisher:r,pageType:"front",deviceType:e.deviceType},s=(yield he(n,e.isApp,i,"video"))?"1":"0",l=yield ei(),c=yield Ke(i),p=yield Er({tcf:n,pageContext:d}),u=null!==(v=window.location.pathname.split("/").slice(-2,-1).pop())&&void 0!==v?v:"";var v;const g=((e=1)=>Ai(Ci,Number(e.toFixed(2))))(e.instreamAspectRatio),h=(m=e.playerAspectRatio)?Ai(Ei,Number(m.toFixed(2))):xi;var m,f;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${ci}-country_code`]:i,[`${ci}-publisher`]:r,[`${ci}-supply_type`]:(f=e.deviceType,f===D.DESKTOP?R:M),[`kw_${ci}-page_type`]:"collection",[`${ci}-page_type`]:"collection",[`${li}-appmode`]:e.isAndroidApp?"hybrid":"notinapp",[`kw_${li}-page`]:"index",[`${li}-page`]:"index",[`${li}-screenheight`]:String(window.screen.height),[`${li}-screenwidth`]:String(window.screen.width),[`${li}-viewportheight`]:String(a),[`${li}-viewportwidth`]:String(o),[`${li}-loggedin`]:e.isUserLoggedIn?"yes":"no",[`${li}-mobile-os`]:B(),[`${li}-audience`]:void 0,[`${li}-externalid_src`]:ki(),[`${li}-tags`]:e.tags,[`${li}-articleid`]:u,"article-id":u},yield Ce(Object.assign(Object.assign({},t),{pageContext:d}))),p&&{external_uid:p}),e.isUserPresentOnFrontPage&&e.isInitialVideo&&{[`${li}-tvtags`]:"vinjett"}),e.pageAdsKeywords),Object.keys(Oi()).some(e=>e.includes(pi))&&(()=>{const e=Oi(),t=Object.fromEntries(Object.entries(e).filter(([e])=>e.startsWith(pi)).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"],Li=["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"],ji=["external_uid","gdpr","gdpr_consent","eids","article-id"],Ni=(e,t)=>{const n=[..._i,...t.additionalFilterKeys];return Object.fromEntries(Object.entries(e).filter(([e])=>!n.includes(e)).map(([e,t])=>[e.includes("kw")||ji.includes(e)?e:`kw_${e}`,t]))},$i=e=>Object.fromEntries(Object.entries(e).filter(([e])=>Li.includes(e))),Di=(e,t)=>Q(void 0,void 0,void 0,function*(){var n,r,i,o;const a=(e=>{var t;oi[e]||P(`[video] No config found for publisher "${e}"`);return null!==(t=oi[e])&&void 0!==t?t:ti})(e.publisher),d=(e=>{var t;return null!==(t=ai[e])&&void 0!==t?t:ai.aftonbladet})(e.publisher)(e.assetSection,e.isLiveStudio),s="/"===window.location.pathname,l=null===(r=null===(n=t.attributes)||void 0===n?void 0:n.id)||void 0===r?void 0:r.toString(),c=e.assetId===l,p=null!==(i=Number(e.aspectRatio))&&void 0!==i?i:1,u=c?"preroll":"bumper";var v;return{siteConfig:a,siteVideoParams:d,isUserPresentOnFrontPage:s,adsKeywords:yield Pi({pageAdsKeywords:e.pageAdsKeywords,tags:(v=e.tags,v?v.filter(e=>e.slug).map(({slug:e})=>e).join(","):""),sections:null!==(o=null==d?void 0:d.sections)&&void 0!==o?o:"",isUserLoggedIn:e.isUserLoggedIn,isUserPresentOnFrontPage:s,isInitialVideo:c,instreamAspectRatio:p,playerAspectRatio:Si(),isApp:e.isApp,deviceType:e.deviceType,isAndroidApp:e.isAndroidApp},a),prerollPlacementFormat:u,playbackMethod:di(e.startMode)}}),Ri=(e,t)=>{const{siteConfig:n,siteVideoParams:r,isUserPresentOnFrontPage:i,adsKeywords:o,prerollPlacementFormat:a,playbackMethod:d}=e,{invCode:s}=r||{},l=Ii(r,n,t.deviceType,t.isUsedInOverlayVideoPlayer),c=((e="")=>t=>e.includes(hi)?`${hi}${t}`:t)(s),p=window.location.href;return{member:n.memberId,options:{autoplayMuted:!0,vpaidcontrols:!0},adSlots:{schedule:{preroll:{inv_code:l(a,i),"se-generic-playback-method":si.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({},Ni(o,n)),$i(o)),{vskippable:"0",referrer:p,vplaybackmethod:d})},adPlacements:{schedule:{pause:{invCode:l("pause"),sizes:[[825,424],[1280,720],[2,1]]}},params:{keywords:Object.assign(Object.assign({},o),{"se-generic-adformat":c("pause")})}}}},Mi=e=>t=>Q(void 0,void 0,void 0,function*(){const n=yield Di(e,t);return Ri(n,e)}),qi={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]}]},Fi={no:"NOK",se:"SEK"},Bi={no:"no",se:"sv"};class Ui{buildFetchObject(e,t,n,r){return Q(this,void 0,void 0,function*(){const{pageContext:{countryCode:i},pageOptions:o}=r,{invCode:a,xandrPlacementId:d}=e,s=yield ei(),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 p=new URL(window.location.href),u=(e=>{const{allowedFormats:t}=e;if(!t||t.includes("native"))return{request:JSON.stringify(qi),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:jt(36),imp:[Object.assign(Object.assign(Object.assign({id:a},u&&{native:u}),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:p.hostname,page:p.href,publisher:{id:String(o.publisherId),domain:p.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||Bi[i]||"no").split("-")[0]},regs:{ext:{gdpr:s.gdpr||0}},user:{id:yield Er(r),ext:{consent:s.gdpr_consent||"",eids:We(i)}},at:1,cur:[Fi[i]],source:{tid:jt(36)},ext:{prebid:{bidder:{appnexus:{member:o.member}}}}}})}fetchData(e,t,n,r){return Q(this,void 0,void 0,function*(){try{O("Starting fetching Studio ad from Xandr:",Zr);const i=new Headers({"Content-Type":"application/json"}),o=new URLSearchParams(window.location.search),a=new URLSearchParams(["openRTBDebugMemberOverride","openRTBNewsroomOverride","openRTBForceNativeDesc2Override"].flatMap(e=>{const t=o.get(e);return t?[[e,t]]:[]})),d=a.size>0?`${Zr}?${a.toString()}`:Zr,s=yield this.buildFetchObject(e,t,n,r),l=yield Oe.post(d,i,s);return O("Fetch operation completed successfully.",l),l}catch(e){O("Error during fetch operation:",e)}return null})}}const Vi=0,Hi=3,zi=(e,t,n,r)=>{const i=t.parentElement;if(!i)return;const o=e?`-${e}`:"",a=r?`__${r}`:"",d=`advertory${o}-${n}${a}`,s=`advertory${o}-${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},Wi={FINN_BLINK:"finn-blink",NATIVE_AD:"native-ad"},Ki=(e,t)=>{Gi(e,t),Yi(e,t)},Gi=(e,t)=>{var n,r;const i=document.querySelector(`#${e.targetId}`);if(!i||!(null===(n=e.native)||void 0===n?void 0:n.clickTrackers))return;const o=null!==(r=null==t?void 0:t.clickLinkSelector)&&void 0!==r?r:"a.ad-link";(null==i?void 0:i.querySelectorAll(o)).forEach(t=>{"true"!==t.dataset.tracked&&(t.addEventListener("click",()=>{var t,n;for(const r of null!==(n=null===(t=e.native)||void 0===t?void 0:t.clickTrackers)&&void 0!==n?n:[])Xi(r)}),t.dataset.tracked="true")})},Ji=e=>{var t;const{native:{impressionTrackers:n}={}}=e,r=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;r||!i?null==n||n.forEach(Qi):window.apntag.fireImpressionTrackers(e);const o=new CustomEvent("advertory:nativeImpression",{detail:{ad:e}});window.dispatchEvent(o)},Yi=(e,t)=>{var n;let r=!1;const i=document.querySelector(`#${e.targetId}`);if(!i||!e.native)return;const{deviceType:o,appearanceConfig:a,nativeTrackingConfig:{fireImpressionsBasedOnAppearanceThreshold:d=!1}={}}=t,s=d?{rootMargin:`${l=null!==(n=null==a?void 0:a.defaultThreshold[null!=o?o:D.DESKTOP])&&void 0!==n?n:0}px 0px ${l}px 0px`}:{};var l;const c=new IntersectionObserver(t=>{if(!r)for(const n of t)if(n.isIntersecting){r=!0,Ji(e),c.disconnect();break}},s);c.observe(i)},Qi=e=>{const t=e.includes("googleads");"function"!=typeof window.navigator.sendBeacon||t?Xi(e):window.navigator.sendBeacon(e)},Xi=e=>{fetch(e,{method:"GET",mode:"no-cors"}).catch(t=>console.warn(`Tracker ${e} failed. Error: ${t||"Unknown"}`))},Zi=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:[]}),eo=(e,t)=>Q(void 0,void 0,void 0,function*(){var n,r;const{pageContext:{deviceType:i},appearanceConfig:o}=t,a=null==o?void 0:o.defaultThreshold[i],d=null!==(n=e.requestThreshold)&&void 0!==n?n:a,s=document.getElementById(e.targetId);if(!s)return void O(`Server-side ad container not found: ${e.targetId}`);yield new Promise(e=>{new IntersectionObserver((t,n)=>{t.some(e=>e.isIntersecting)&&(n.disconnect(),e())},Xn(d)).observe(s)});const{prepareTag:l}=N.getHandlers(),c=Z.getData("alertoryConfigKeywords"),p=null!==(r=l(Ur(e)).keywords)&&void 0!==r?r:{},u=new Ui,v=yield u.fetchData(e,c,p,t);v&&(((e,t,n)=>{const r=n===D.MOBILE?t.mobileHTML:t.desktopHTML;if(r){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>${r}`,e.appendChild(n)}else e.innerHTML=r;e.classList.add("ad-loaded")}})(s,v,i),v.adType===Hi&&(zi(t.pageContext.publisher,s,Wi.NATIVE_AD,t.pageContext.pageType),Ki({targetId:e.targetId,native:{clickTrackers:v.clickTrackers,impressionTrackers:v.impTrackers}},{deviceType:i,appearanceConfig:o,nativeTrackingConfig:t.nativeTrackingConfig,clickLinkSelector:"a"})),((e,t,n,r)=>{var i,o,a;let d;(null===(i=window.apntag.requests)||void 0===i?void 0:i.tags[e])||(null!==(o=(a=window.apntag).requests)&&void 0!==o||(a.requests={tags:{}}),window.apntag.requests.tags[e]={invCode:t,adResponse:{ads:[{creative_id:Number(null==r?void 0:r.adid)}]}}),!!n.querySelector("iframe")||(d=document.createElement("iframe"),n.appendChild(d)),St(e,n,Number(null==r?void 0:r.adid)),null==d||d.remove()})(e.targetId,e.invCode,s,v.bid))}),to=(e,t)=>{e.forEach(e=>eo(e,t).catch(e=>{O("Failed to handle server-side ad:",e)}))},no={arrayMerge:(e,t)=>t,isMergeableObject:e=>"object"==typeof e&&null!==e&&e.constructor===Object},ro=e=>Q(void 0,void 0,void 0,function*(){if(!(e=>{const{editableConfiguration:{useS3Config:t=!1,pageTypeToFetch:n}={},siteSpecificConfig:r}=e;return Boolean(t&&n&&(null==r?void 0:r.publisherClassName))})(e))return e;try{const t=yield(e=>Q(void 0,void 0,void 0,function*(){const t=(e=>{const{siteSpecificConfig:t,editableConfiguration:{pageTypeToFetch:n}={}}=e;return(null==t?void 0:t.publisherClassName)&&n?`https://alertory-cdn.staging.inventory.schibsted.io/editable-configurations/${t.publisherClassName}/${n.toUpperCase()}.json`:null})(e);if(!t)return null;const n=new AbortController,r=setTimeout(()=>n.abort(),5e3);try{return yield Oe.get(t,{method:"GET",signal:n.signal})}catch(e){throw O("Failed to fetch S3 config",{error:e,url:t}),e}finally{clearTimeout(r)}}))(e);return t?((e,t)=>S(t,e,no))(e,t):e}catch(t){return O("Error fetching S3 config, using site config",{error:t}),e}}),io=(e,t)=>{const{pageContext:{isMobileApp:n}}=N.get();return n?((e,t)=>e.replace(/wtb|wde|wph/g,e=>"wph"===e?"aph":t?"atb":e))(e,t):e};let oo,ao=[];const so=["takeover","wallpaper"],lo=e=>{const t=(e=>{var t;const n=Z.getData("alertoryConfigKeywords"),{queryConfig:r,placements:i,tcf:o,glimr:a,appearanceConfig:d,pageContext:{publisher:s,countryCode:l,pageType:c,deviceType:p,isMobileApp:u=!1},pageOptions:{member:v},pageSetup:g,takeover:h,fullscreenScroll:m,fullWidth:f}=e,y=null!==(t=null==r?void 0:r.batchSize)&&void 0!==t?t:L;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:p,isMobileApp:u},pageSetup:g,placements:i,tcf:o,queryConfig:Object.assign(Object.assign({},r),{batchSize:y})},a&&{glimr:a}),d&&{appearanceConfig:d}),h&&{takeover:h}),m&&{fullscreenScroll:m}),f&&{fullWidth:f})}})(e);window.advertory={initialized:!0,version:"3.1.2",siteConfig:e,alertoryConfig:t}},co=()=>Q(void 0,void 0,void 0,function*(){const{pageOptions:e}=N.get(),{preparePageOptions:t}=N.getHandlers(),n=(()=>{var e,t;const{pageSetup:{pageOptions:n}={}}=N.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"]}})(),r=yield Q(void 0,void 0,void 0,function*(){const{tcf:e,pageContext:{isMobileApp:t,countryCode:n}}=N.get();return(yield he(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)}),r));(e=>{const t=Z.getData("alertoryConfigKeywords");if(Object.keys(t).length)return;const n=Jr(e);Z.setData("alertoryConfigKeywords",n)})(i.keywords),$t(()=>oo.setPageOpts(i))}),po=e=>Q(void 0,void 0,void 0,function*(){const{prebid:t,tcf:n,pageContext:{isMobileApp:r,countryCode:i}}=N.get(),o=yield he(n,r,i,"loadPlacements"),a=((e,t)=>t?e:(e.filter(e=>!e.supportsNonRTB).forEach(e=>Xt(e.targetId)),e.filter(e=>e.supportsNonRTB).map(e=>{return Object.assign(Object.assign({},e),{invCode:(t=e.invCode,`${t}_non_rtb`)});var t})))(e,o);uo(a);(null==t?void 0:t.enabled)&&o&&!Ot()?(O("core loadPlacements prebid enabled"),yield Pt()):(O("core load tags invoked without prebid enabled"),vo(a))}),uo=e=>{const{prepareTag:t}=N.getHandlers(),n=[];(e=>{const t=["skyscraperright_1","topboard","wallpaper","skyscraperleft_1"];return e.sort((e,n)=>{const r=t.findIndex(t=>e.targetId.includes(t)),i=t.findIndex(e=>n.targetId.includes(e));return-1!==r&&-1===i?-1:-1===r&&-1!==i?1:r-i})})(e).forEach(e=>{O("core defineTags",{placement:e});const r=Ur(e);if(Vr(e.targetId)){const i=t(r),o=(e=>{const{allowedFormats:t,invCode:n,keywords:r,sizes:i}=e;return{adTypes:t,invCode:n,keywords:Gr(r),sizes:i}})(i);n.push(o),$t(()=>(O("core defineTag - add to the queue",{placement:e,preparedTag:i}),oo.defineTag(i)))}}),(e=>{var t,n,r;(null===(r=null===(n=null===(t=window.advertory)||void 0===t?void 0:t.alertoryConfig)||void 0===n?void 0:n.xandr)||void 0===r?void 0:r.tags)&&e.length&&window.advertory.alertoryConfig.xandr.tags.push(e)})(n)},vo=e=>{const t=e.filter(({targetId:e})=>Vr(e)).map(({targetId:e})=>e);t.length&&$t(()=>(O("core loadTags",{placementsIdsToLoad:t}),oo.loadTags([...t])))},go=(e,t)=>Q(void 0,void 0,void 0,function*(){const{appearanceConfig:n,pageContext:{deviceType:r}}=N.get(),{requestThreshold:i,refresh:o}=e,a=(e=>{const t=document.querySelector(`[data-show-tag-subscribe-id=${e.targetId}]`),n=document.querySelector(`#${e.targetId}`);return t||n})(t),d=null==n?void 0:n.defaultThreshold[r];a&&(O("core showAd - subscribe for show tag with thresholds",{placement:e,adObj:t,requestThreshold:i,deviceDefaultThreshold:d}),yield tr(a,null!=i?i:d)),a&&(null==o?void 0:o.scroll)&&(O("core showAd - setup refreshing",{placement:e,adObj:t}),a.dataset.refresh=o.scroll.toString())}),ho=e=>e.some(({targetId:e})=>so.some(t=>e.includes(t))),mo=e=>Q(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,r]=(e=>e.reduce(([e,t],n)=>{var r;return(null===(r=null==n?void 0:n.finnBlink)||void 0===r?void 0:r.loadOnlyFinnBlink)?[[...e,n],t]:[e,[...t,n]]},[[],[]]))(e),i=(e=>{const{queryConfig:{placementBatches:t,batchSize:n=L}={},pageContext:{deviceType:r}}=N.get(),i=ln(e),o=Object.keys((null==t?void 0:t[r])||{}).map(e=>i[e]||[]).filter(e=>e.length>0),a=new Set(o.flat().map(({targetId:e})=>e)),d=e.filter(({targetId:e})=>!a.has(e));return[...o,...pr(d,n)]})(r);for(const e of i)ho(e)?(O("core loadAds without lazy loading",{placementsToLoad:e}),yield po(e)):e.length&&(O("core loadAds with lazy loading",{placementsToLoad:e}),yield fo(e));const{finnBlink:o}=N.get();if((null==o?void 0:o.enabled)&&n.length>0){const{handleFinnBlinkOnlyPlacements:e}=yield import("./index-CtT25tc8.js");yield e(n)}}),fo=e=>Q(void 0,void 0,void 0,function*(){const{queryConfig:{lazyLoadingV3:{enabled:t=!1,rootMargin:n="200% 0px"}={}}={}}=N.get(),r=[];if(!t)return O("lazy load is not enabled",{placements:e}),void(yield po(e));const i=new IntersectionObserver((t,n)=>{t.filter(({isIntersecting:e,target:{id:t}})=>e&&!t.includes("wallpaper")).forEach(t=>{O("lazy load is enabled - handler start",{loadedTargetIds:r,placements:e});const i=e.every(e=>r.includes(e.targetId)),o=e.map(e=>e.targetId);!i&&r.push(...o),!i&&po(e),O("lazy load is enabled - handler stop",{loadedTargetIds:r,placements:e,arePlacementsLoaded:i,targetIds:o}),n.disconnect()})},{rootMargin:n});e.forEach(e=>{const t=document.getElementById(e.targetId);t&&(O("lazy loading - observe element",{targetId:e.targetId,element:t}),i.observe(t))})}),yo=()=>Q(void 0,void 0,void 0,function*(){const{siteEvents:e,initNativeAd:t}=N.getHandlers(),{wallpaper:n,fullscreenScroll:i}=N.get(),o=[];$t(()=>{oo.onEvent("adRequested",()=>{e.adRequested()}),oo.onEvent("adAvailable",r=>Q(void 0,void 0,void 0,function*(){var o,s,c,v,h,m;O("core adAvailable start",{placementsAvailable:ao,adObj:r,isFullscreenScrollAd:a(r),isFinnBlink:g(r.targetId),isNativeAd:d(r),isMediation:Hr(r),isTakeoverAd:l(r),isCollapseAd:u(r),isWallpaperAd:p(r)});const y=null===(c=null===(s=null===(o=null===window||void 0===window?void 0:window.apntag)||void 0===o?void 0:o.requests)||void 0===s?void 0:s.tags[r.targetId])||void 0===c?void 0:c.adResponse.ads;if(Hr(r)&&y&&(null===(v=y[1])||void 0===v?void 0:v.rtb)&&(r.banner=null===(m=null===(h=y[1])||void 0===h?void 0:h.rtb)||void 0===m?void 0:m.banner),a(r)){const{modifyFullscreenScrollAd:e}=yield Promise.resolve().then(function(){return It});e(r)}const{widescreenSwitching:w}=N.get();if(f(r)&&(null==w?void 0:w.enabled)){const{initWidescreenSwitching:e}=yield import("./index-DsXHlqiw.js");e()}if(a(r)&&!g(r.targetId)){const{createFullscreenScrollAd:e}=yield Promise.resolve().then(function(){return It});e(r,i)}if(!d(r)||Hr(r)||g(r.targetId)||null==t||t(r,N.get()),l(r)&&!u(r)){const{modifyTakeoverAdContent:e,createTakeoverAd:t}=yield import("./index-DGrkYg33.js");e(r.targetId),yield t(r)}if(p(r)&&(null==n?void 0:n.enabled)){const{initWallpaperAd:e}=yield Promise.resolve().then(function(){return Qt});e(()=>$t(()=>window.apntag.showTag(r.targetId)),n),Z.setData("wallpaper",{isAvailable:!0})}(e=>e.targetId.includes("skyscraperleft")&&!!e.banner)(r)&&Z.setData("horseshoe",{isAvailable:!0}),Wr({adObj:r}),(e=>{var t;const n=null==e?void 0:e.targetId;if(!n)return;const r=null===(t=document.querySelector(`#${n}`))||void 0===t?void 0:t.parentElement;r&&((e,t)=>{const{height:n,width:r,native:i}=e;i?t.dataset.adSizes="[1,1]":n&&r&&(t.dataset.adSizes=`[${r},${n}]`)})(e,r)})(r),e.adAvailable(r);const b=ao.find(({targetId:e})=>e===r.targetId);b&&(yield go(b,r),ao=ao.filter(e=>e.targetId!==b.targetId)),O("core adAvailable stop",{placementsAvailable:ao,adObj:r,isFullscreenScrollAd:a(r),isFinnBlink:g(r.targetId),isNativeAd:d(r),isMediation:Hr(r),isTakeoverAd:l(r),isCollapseAd:u(r),isWallpaperAd:p(r)})})),oo.onEvent("adLoaded",n=>Q(void 0,void 0,void 0,function*(){const{refreshConfig:i,appearanceConfig:a,wallpaper:c,adScaleConfig:p}=N.get(),v=document.getElementById(n.targetId);if(g(n.targetId)){const{displaySpecialFormatsForFinnFallback:e}=yield import("./events-BGNPwius.js");e(n)}if(o.includes(n.targetId)&&d(n)&&(null==t||t(n,N.get()),Wr({adObj:n})),!o.includes(n.targetId)&&Hr(n)&&o.push(n.targetId),u(n)&&Xt(n.targetId),l(n)){const{modifyTakeoverIframe:e}=yield import("./index-DGrkYg33.js");e(oo,n.targetId)}if(s(n)){const{prepareContainerForFullWidthFormat:e}=yield import("./index-CiAInXOA.js");e(n)}if((e=>E(e,r.NINESIXTEEN))(n)){const{applyNinesixteenFormat:e}=yield import("./index-CiAInXOA.js");e(n)}if((e=>E(e,r.FULLSQUARE))(n)){const{applyFullsquareFormat:e}=yield import("./index-CiAInXOA.js");e(n)}((e,t)=>{if(!(null==t?void 0:t.scrollRefreshEnabled))return;const{targetId:n}=e,r=document.querySelector(`#${n}`),i=null==r?void 0:r.parentElement;if(!i||!r)return;sr({adWrapper:i,placementContainer:r});const{delayTimeToNextRefresh:o=1e3}=t,a=(new Date).getTime();r&&"true"!==r.dataset.subscribedForRefresh&&(r.dataset.subscribedForRefresh="true",r.dataset.refresh&&cr(r,a,o))})(n,i),(null==a?void 0:a.clearProbableDimensionsEnabled)&&(e=>{const t=document.querySelector(`#${e}`);t&&(t.style.minWidth="",t.style.minHeight="")})(n.targetId);if(Z.getData("horseshoe").isAvailable&&(null==c?void 0:c.enabled)){const{adjustAdToHorseshoe:e}=yield Promise.resolve().then(function(){return Qt});e(n.targetId)}if(null==p?void 0:p.enabled){const{scaleAds:e,scaleAdIpadAirPortrait:t}=yield import("./index-C-f5W8w-.js");e(n),t(n)}e.adLoaded(n),At(n.targetId),v&&(v.classList.add(Tt),(e=>{var t,n;const{pageSectionsSelectors:r}=N.get(),i=null==r?void 0:r.mainFirstColumn,o=i?null===(t=document.querySelector(i))||void 0===t?void 0:t.clientWidth:void 0;o&&e.clientWidth>o&&(null===(n=e.parentElement)||void 0===n||n.setAttribute("data-two-column-ad-layout","true"))})(v)),window.dispatchEvent(new CustomEvent("advertory:adLoaded",{detail:{targetId:n.targetId,adFormat:Kr(n)}}))})),oo.onEvent("adNoBid",t=>Q(void 0,void 0,void 0,function*(){var n;if(Xt(t.targetId),null===(n=N.get().drEdition)||void 0===n?void 0:n.enabled){const{handleDrEditionBackfill:e}=yield import("./index-DclYS9iH.js");yield e(N.get(),t)}if(l(t)){const{handleTakeoverCookieOnAdNotShown:e}=yield Promise.resolve().then(function(){return Fr});yield e(t)}e.adNoBid(t)})),oo.onEvent("adError",(t,n)=>Q(void 0,void 0,void 0,function*(){if(l(n)){const{handleTakeoverCookieOnAdNotShown:e}=yield Promise.resolve().then(function(){return Fr});yield e(n)}e.adError(t,n)})),oo.onEvent("adCollapse",()=>{e.adCollapse()}),oo.onEvent("adRequestFailure",t=>Q(void 0,void 0,void 0,function*(){Xt(t.targetId),yield qn(N.get(),t),e.adRequestFailure(t)})),oo.onEvent("adBadRequest",t=>Q(void 0,void 0,void 0,function*(){Xt(t.targetId),yield qn(N.get(),t),e.adBadRequest(t)})),oo.onEvent("adLoadedMediated",t=>e.adLoadedMediated(t)),oo.onEvent("adNoBidMediated",t=>Q(void 0,void 0,void 0,function*(){yield qn(N.get(),t),e.adNoBidMediated(t)}))})}),wo=(e,t)=>Q(void 0,void 0,void 0,function*(){var n;if(!(null===(n=null===window||void 0===window?void 0:window.advertory)||void 0===n?void 0:n.initialized))return[];const{clearAds:r,reloadExistingAds:i,renderFinnBlinkPlacements:o,contextSelector:a}=null!=t?t:{};if(r)return nn(),[];i&&(nn(),document.querySelectorAll('[data-advertory-ad-rendered="true"]').forEach(e=>{Zt(e.id)})),$(null!=e?e:{}),yield co();const{clientSidePlacements:d,serverSidePlacements:s}=Zi(dn(a));let l=d;return o&&(l=l.filter(e=>g(e.targetId))),to(s,N.get()),l.length>0&&(ao=[...ao,...l.map(e=>Object.assign({},e))],gr(l),mr(l),yield mo(l)),ao}),bo=(e,t)=>Q(void 0,void 0,void 0,function*(){var n;N.set(e),N.setHandlers(Object.assign(Object.assign({},t),e.customHandlers));const{norstat:r,kilkaya:i,rightColumnSplit:o,drEdition:a,finnBlink:d}=e;if(Z.initialize(),window.addEventListener("message",Qn,!1),oo=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=oo,O("Apn tag is set up on window"),yield Promise.allSettled([Q(void 0,void 0,void 0,function*(){const{tcf:e,pageContext:{isMobileApp:t,countryCode:n}}=N.get();(yield he(e,t,n,"xandr-endpoint"))||oo.setEndpoint("ib.adnxs-simple.com",!0)}),Q(void 0,void 0,void 0,function*(){if(Ot())return;const{prebid:e,tcf:t,pageContext:{isMobileApp:n,countryCode:r}}=N.get(),i=yield he(t,n,r,"prebid");(null==e?void 0:e.enabled)&&i&&(yield Je(null==e?void 0:e.prebidUrl))}),Be(e),Q(void 0,void 0,void 0,function*(){const{developerOptions:{astUrl:e}={}}=N.get();yield Je(null!=e?e:"https://adsdk.microsoft.com/ast/ast.js")}),Q(void 0,void 0,void 0,function*(){const{developerOptions:{gptUrl:e}={},tcf:t,pageContext:{isMobileApp:n,countryCode:r}}=N.get();(yield he(t,n,r,"gpt-endpoint"))&&(yield Je(null!=e?e:"https://securepubads.g.doubleclick.net/tag/js/gpt.js"))}),Q(void 0,void 0,void 0,function*(){const{brandmetrics:{enabled:e,brandmetricsUrl:t}={},tcf:n,pageContext:{isMobileApp:r,countryCode:i}}=N.get(),{getConsentAsync:o}=ge(n,0,i),a=yield o();if(e&&t&&a){if(yield Je(t),document.querySelector(`.${Xr}`))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(Xr)})&&(t.disconnect(),window._brandmetrics=window._brandmetrics||[],window._brandmetrics.push({cmd:"_loadsurvey"}))}}).observe(document,{childList:!0,subtree:!0,attributes:!0})}}),fe(),Q(void 0,void 0,void 0,function*(){const{gdpr:{gdprUrl:e,allowHidingAds:t=!0}={}}=N.get();t&&(window.gdpr=window.gdpr||{},window.gdpr.allowHidingAds=!0),yield Je(null!=e?e:"https://cogwheel.inventory.schibsted.io/prod/latest/gdpr-bundle.js")})]),null==r?void 0:r.enabled){const{loadNorstat:e}=yield import("./index-BMaA1Spt.js");yield e()}O("Libraries have been loaded and trackers have been set"),yield yo(),yield co(),O("Page options have been set"),lo(e),O("Advertory is setup on window");const{clientSidePlacements:s,serverSidePlacements:l}=Zi(dn());if(ao=s,to(l,e),gr(ao),mr(ao),yield mo(ao),O("Ads has been loaded",ao),Bn(e,ao),Yr(ao),null==d?void 0:d.enabled){const{replaceAdsWithFinnBlink:t}=yield import("./index-CtT25tc8.js");yield t(null===(n=null==e?void 0:e.pageContext)||void 0===n?void 0:n.deviceType,e.finnBlink)}if(null==a?void 0:a.enabled){const{handleDrEdition:t}=yield import("./index-DclYS9iH.js");yield t(e)}if(null==o?void 0:o.enabled){const{initRightColumnSplit:t}=yield import("./index-DQlbgZ8n.js");t(e.rightColumnSplit)}if(null==i?void 0:i.enabled){const{runKilkaya:t}=yield import("./index-7JdG7yFN.js");yield t(e)}}),xo=(e,t)=>Q(void 0,void 0,void 0,function*(){yield((e,t)=>Q(void 0,void 0,void 0,function*(){var n,r;const{initConsentManager:i,getConsentAsync:o}=ge(e.tcf,null===(n=e.pageContext)||void 0===n||n.isMobileApp,null===(r=e.pageContext)||void 0===r?void 0:r.countryCode),a=yield ro(e);yield Dn(),yield Qr(i),yield Qr(o),O("TCF resolved successfully"),yield bo(a,t),O("Run function resolved successfully")}))(e,t)}),Eo=(e,t,n,r)=>{var i;const{image:o,icon:a,sponsoredBy:d,title:s,clickUrl:l,cta:c,body:p,desc2:u,video:v,description:g,customTitle1:h,customTitle2:m,customTitle3:f,customTitle4:y,customIcon1:w,customIcon2:b,customDisplayUrl1:x}=e,E=(e,t="")=>{var n;return e?null!==(n=e.url)&&void 0!==n?n:e:t};return Object.assign({containerId:n,img:E(o),imgWidth:null==o?void 0:o.width,imgHeight:null==o?void 0:o.height,imgAltText:null!=s?s:"",logo:(()=>{var e;const t=(null==u?void 0:u.includes("sponsor"))&&"dark"===(null===(e=r.appearanceConfig)||void 0===e?void 0:e.theme)&&w;return E(t?w:a)})(),sponsoredBy:null!=d?d:"",title:null!=s?s:"",url:null!=l?l:"",cta:null!=c?c:"",description:null!==(i=null!=p?p:g)&&void 0!==i?i:"",desc2:null!=u?u:"",video:v,customTitle1:null!=h?h:"",customTitle2:null!=m?m:"",customTitle3:null!=f?f:"",customTitle4:null!=y?y:"",logo2:E(b),previewVideoSrc:null!=x?x:""},t)},Co=(e,t)=>{const n=(r=se,window.location.href.includes(r));var r;const i=new URLSearchParams(window.location.search).get(se),o=t.includes("native_recirc");return n&&i?i:(null==e?void 0:e.includes("recirc"))?o?"native_recirc":"recirc":(null==e?void 0:e.includes("sponsor"))?"sponsorstripe":null},Io=(e,t,n,r)=>{const i=document.querySelector(`#${e}`);i&&t&&(i.innerHTML=t,((e,t)=>{const n=e.parentElement,{publisher:r,pageType:i}=t,o=r&&Object.values(G).includes(r);n&&o&&zi(r,e,Wi.NATIVE_AD,i)})(i,n),r())},Ao=(e,t,n)=>{const r=((e,t,n)=>{var r;const{displayTemplates:i,videoTemplates:o}=n,a="default";if(!e.native)return null;const{native:d,targetId:s}=e,{desc2:l=a}=e.native,c=l.toLowerCase(),p=null!==(r=Co(e.targetId,l))&&void 0!==r?r:c,u=ft[t.language||ce.NO],v=Eo(d,u,s,t);return(d.video?o[p]:i[p]||i.default)(v,t)})(e,t,n);Io(e.targetId,r,t,()=>{const{nativeTrackingConfig:{enabled:n=!0}={}}=t;n&&Ki(e,t)})},So=e=>(t,n)=>{var r;const{targetId:i}=t,o=document.querySelector(`#${i}`);if(!o)return;const a=e.getOptions(null!=n?n:{});Ao(t,a,e.templates),null===(r=e.postProcess)||void 0===r||r.call(e,t,o)},To=e=>{const{pageContext:{countryCode:t}}=N.get(),{keywords:n,dynamicSizeWidthCheck:r}=e,i=`${Ee(t)}-adformat`,a=n?n[i]:[];if(!a)return{};const d=(Array.isArray(a)?a:[a]).filter(e=>!(e in o)||window.innerWidth>=o[e]);return{[i]:r?d:a}},ko=e=>{const{pageContext:{countryCode:t}}=N.get(),n=`${Ee(t)}-targetid`;return e?{[n]:[e]}:{}},Oo=()=>{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},Po=e=>{const{siteSpecificConfig:t}=N.get(),n=(null==t?void 0:t.dynamicOutstreamFormats)||[];return 0!==n.length&&n.some(t=>e.includes(t))},_o=(e,t)=>Po(e)?Object.assign(Object.assign({},t),{playerSkin:{videoBackgroundColor:"#e6e7e8"}}):{},Lo=e=>Po(e)?{"aa-sch-dynamic-outstream":["true"]}:{};class jo{constructor(){this.keywords={}}add(e){return Object.assign(this.keywords,e),this}addAsync(e){return Q(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 Q(this,void 0,void 0,function*(){return e&&Object.assign(this.keywords,yield t()),this})}build(){return this.keywords}}const No=9826;class $o{constructor(){this.getSupplyTypeKeywords=()=>{const{pageContext:{deviceType:e=D.DESKTOP,isMobileApp:t}}=N.get();if(t){return{"aa-sch-supply_type":`app_${e===D.MOBILE?"phone":D.TABLET}`}}return{"aa-sch-supply_type":`web_${this.getPageOptionsFormatDevice(e)}`}}}prepare(e){return Q(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 Q(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 Cr()}getExternalUid(){return Q(this,void 0,void 0,function*(){return yield Er(N.get())})}isTrackingForbidden(){return Q(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=No}={}}=N.get();return"true"===oe("inventory_test")?t:e}getCMPValue(e){return localStorage.getItem(`CMP:${e}`)?"0"===localStorage.getItem(`CMP:${e}`)?"0":"1":"0"}getPublisherKeywords(){const{pageContext:{publisher:e}}=N.get();return{"aa-sch-publisher":`${e}`}}getAnalyticsConsentKeywords(){return{"aa-sch-cmp_analytics":this.getCMPValue("analytics")}}getAdvertisingConsentKeywords(){return Q(this,void 0,void 0,function*(){const{tcf:e,pageContext:{isMobileApp:t,countryCode:n}}=N.get(),{getConsentAsync:r}=ge(e,0,n);return{"aa-sch-cmp_advertising":(yield r())?"1":"0"}})}getPageTypeKeywords(){const{pageContext:{pageType:e}}=N.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 Do=new $o,Ro=Do.prepare.bind(Do);function Mo(e=!1){var t,n;const r=null===(n=null===(t=window.navigator)||void 0===t?void 0:t.userAgent)||void 0===n?void 0:n.toLocaleLowerCase(),i=B();return{OS:i,mobileOS:["ios","android"].includes(i)?i:"unknown",isHybridApp:r.includes("hermes"),appMode:e?"hybrid":"notinapp"}}const qo=["aLOLE","xBqQj","1KaqJ","1nzXzK","opm8zV","4qKXKR","Ad9QgE"];function Fo(e){return t=window.location.pathname.split("/").slice(-2,-1).pop()||"",qo.includes(t)?{"no-sno-news-section":`${e}_doedsfall`}:{};var t}class Bo extends $o{constructor(){super(...arguments),this.getDeviceKeywords=()=>{const{pageContext:{deviceType:e=D.DESKTOP}}=N.get();return{"no-sno-device":this.getPageOptionsFormatDevice(e)}}}getAppTypeKeywords(){const{pageContext:{deviceType:e,isMobileApp:t}}=N.get(),{OS:n,isHybridApp:r}=Mo(t);return{"no-sno-apptype":n&&e&&r?`${n}_${this.getPageOptionsFormatDevice()}_hybrid`:"none"}}getObituariesKeywords(e){return Fo(e)}getSectionPageTypeKeywords(){var e,t;const{pageOptions:n,pageContext:{pageType:r}}=N.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"===r?"article":"front"}`}}}const Uo=new class extends Bo{prepare(e){return Q(this,void 0,void 0,function*(){var t,n,r,i,o,a,d;const s=N.get(),l=null!==(r=null===(n=null===(t=s.pageSetup)||void 0===t?void 0:t.pageOptions)||void 0===n?void 0:n.options)&&void 0!==r?r:{},c=null!==(a=null===(o=null===(i=s.pageSetup)||void 0===i?void 0:i.pageOptions)||void 0===o?void 0:o.keywords)&&void 0!==a?a:{},p=null===(d=s.siteSpecificConfig)||void 0===d?void 0:d.publisherClassName,u=new jo;yield u.addAsync(this.getAdvertisingConsentKeywords()),yield u.addAsync(Ce(N.get(),l.addPublisherToGeo?{addPublisherToGeo:!0}:void 0)),yield u.addIfAsync(c.externalIdSrc,()=>this.getFormattedExternalIdKeywords()),u.add(this.getSupplyTypeKeywords()).add(Ve()).addIf(c.appType,this.getAppTypeKeywords()).addIf(c.device,this.getDeviceKeywords()).addIf(c.analyticsConsent,this.getAnalyticsConsentKeywords()).addIf(c.sectionPageType,this.getSectionPageTypeKeywords()).addIf(c.obituaries&&void 0!==p,void 0!==p?this.getObituariesKeywords(p):{}).addIf(c.hasContext,this.getHasContextKeywords(e.keywords)).add(e.keywords);const v=u.build(),g=!1!==l.includeExternalUid;return Object.assign(Object.assign({},e),{keywords:v,user:Object.assign(Object.assign({},Ue(ce.NO)),g?{externalUid:yield this.getExternalUid()}:{}),member:this.getMember()})})}},Vo=Uo.prepare.bind(Uo);class Ho extends $o{constructor(){super(...arguments),this.getDeviceKeywords=()=>{const{pageContext:{deviceType:e=D.DESKTOP}}=N.get();return{"se-generic-sitemode":this.getPageOptionsFormatDevice(e)}}}getScreenKeywords(){const e=function(){const e=window.innerWidth,t=window.innerHeight,n=document.documentElement.clientWidth,r=document.documentElement.clientHeight;return{width:e||n||0,height:t||r||0}}(),t={width:null!==(r=null===(n=window.screen)||void 0===n?void 0:n.width)&&void 0!==r?r:0,height:null!==(o=null===(i=window.screen)||void 0===i?void 0:i.height)&&void 0!==o?o:0};var n,r,i,o;return{"se-generic-viewportheight":e.height,"se-generic-viewportwidth":e.width,"se-generic-screenheight":t.height,"se-generic-screenwidth":t.width}}getExternalIdSrc(){return Q(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}}=N.get(),{appMode:t,mobileOS:n}=Mo(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:r}}=N.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"===r?"article":"front"}`}}}const zo=new class extends Ho{prepare(e){return Q(this,void 0,void 0,function*(){var t,n,r,i,o,a;const d=N.get(),s=null!==(r=null===(n=null===(t=d.pageSetup)||void 0===t?void 0:t.pageOptions)||void 0===n?void 0:n.options)&&void 0!==r?r:{},l=null!==(a=null===(o=null===(i=d.pageSetup)||void 0===i?void 0:i.pageOptions)||void 0===o?void 0:o.keywords)&&void 0!==a?a:{},c=new jo;yield c.addAsync(this.getAdvertisingConsentKeywords()),yield c.addAsync(Ce(N.get(),s.addPublisherToGeo?{addPublisherToGeo:!0}:void 0)),yield c.addIfAsync(l.externalIdSrc,()=>this.getExternalIdSrc()),yield c.addIfAsync(l.sdkVersion,()=>Q(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(Ve()).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"===xr("X-AB-Site-Version")?"yes":"no"}).add(e.keywords);const p=c.build(),u=!1!==s.includeExternalUid;return Object.assign(Object.assign({},e),{keywords:p,user:Object.assign(Object.assign({},Ue(ce.SE)),u?{externalUid:yield this.getExternalUid()}:{}),member:this.getMember()})})}},Wo=zo.prepare.bind(zo),Ko=({containerId:e,url:t,adText:n,sponsoredBy:r,title:i,img:o,description:a,desc2:d},s)=>{import("./styles-DXa8dXuS.js");const l=x({native:{desc2:d}}),c=l?"advertory-aftonbladet-ad-native-classic-alcohol":"",p=l?'<div class="alcohol-warning-wrapper">\n <div class="alcohol-warning">Alkohol kan skada din hälsa</div>\n </div>':"",{deviceType:u}=s;return`<article class="advertory-aftonbladet-ad-native-classic ${c}">\n <div class="ad-info" id="${e}-button"></div>\n <a class="ad-link" href="${t}"${U(u)?"":' target="_blank" rel="noopener"'}>\n <div class="ad-content">\n <div class="ad-header">\n <span class="ad-annonse">${n}</span>\n </div>\n <div class="ad-image-container">\n <img alt="${i}" class="ad-image" src="${o}" />\n </div>\n <div class="ad-data-content">\n <div class="ad-title">${i}</div>\n <div class="ad-subtitle">\n <span class="ad-sponsored">${r}</span> ${a}\n </div>\n </div>\n ${p}\n </div>\n </a>\n </article>`},Go="viewable",Jo="adClick";const Yo=(e,t)=>{const n=(new DOMParser).parseFromString(e,"text/xml"),r=n.querySelector("ClickThrough"),i=n.querySelector("VideoClicks");if(r){for(;r.firstChild;)r.removeChild(r.firstChild);r.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"}))},Qo=({id:e,nodeId:t,poster:n,tagURL:r,publisher:i="",productTag:o="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:r}}},pulse:{provider:i.toLowerCase(),decorator:e=>Object.assign(Object.assign({},On(e)?e:{}),{provider:Object.assign(Object.assign({},On(null==e?void 0:e.provider)?e.provider:{}),{productTag:o})})}}),Xo=e=>Q(void 0,void 0,void 0,function*(){const{playerConfig:t,pluginsNames:n,clickUrl:r}=e,{repeat:i}=t,o=yield Cn(t);An(n),o.once("assetReady",()=>{En(o,n)}),o.on(Go,e=>{const{viewable:t}=e;t?o.play():o.pause()}),o.on(Jo,()=>{window.open(r,"_blank")}),i&&o.on("pause",()=>{o.play()})}),Zo=({containerId:e,url:t,adText:n,description:r,title:i,sponsoredBy:o},a,d)=>{import("./styles-CIeejDSp.js");const{deviceType:s}=a;return`<article class="advertory-aftonbladet-ad-native-classic-video">\n <div class="ad-info" id="${e}-button"></div>\n <div class="ad-content">\n <div class="ad-header">\n <span class="ad-annonse">${n}</span>\n </div>\n <div class="ad-image-container">\n <div class="ad-player-wrapper">\n <div id="${null!=d?d:0}"></div>\n </div>\n </div>\n <a class="ad-link" href="${t}"${U(s)?"":' target="_blank" rel="noopener"'}>\n <div class="ad-data-content">\n <div class="ad-title">${i}</div>\n <div class="ad-subtitle">\n <span class="ad-sponsored">${o}</span> ${r}\n </div>\n </div>\n </a>\n </div>\n </div>\n </article>`};ht(".advertory-aftonbladet-ad-native-sponsorstripe{position:fixed;top:0;left:0;width:100vw;padding:0;margin:0;border:none;background-color:rgba(0,0,0,0);text-align:left}.advertory-aftonbladet-ad-native-sponsorstripe *{box-sizing:content-box}.advertory-aftonbladet-ad-native-sponsorstripe .ad-wrapper{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;max-height:30px;padding:5px 10px;margin:auto;background:linear-gradient(to bottom, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0) 100%);font-family:Roboto,sans-serif}.advertory-aftonbladet-ad-native-sponsorstripe .ad-logo{flex:0;max-width:35%;max-height:22px;padding:9px 16px 8px}.advertory-aftonbladet-ad-native-sponsorstripe .ad-title{margin-right:10px;font-weight:bold;font-size:14px;color:#fff}@media screen and (min-width: 768px){.advertory-aftonbladet-ad-native-sponsorstripe .ad-wrapper{max-height:50px}.advertory-aftonbladet-ad-native-sponsorstripe .ad-title{font-size:15px}.advertory-aftonbladet-ad-native-sponsorstripe .advertory-aftonbladet-ad-native-sponsorstripe{width:100%}}");const ea={CONTENT_DISPLAY:(e,{pageType:t})=>(import("./styles-D-FXcaqa.js"),t===xn.ARTICLE&&"gambling"===e.desc2?(({containerId:e,url:t,adContentFrom:n,adText:r,sponsoredBy:i,title:o,img:a,description:d,desc2:s})=>(import("./styles-D-FXcaqa.js"),`<article class="advertory-aftonbladet-ad-native-content article">\n <div class="ad-info" id="${e}-button"></div>\n <a class="ad-link" href="${t}" target="_blank">\n <div class="ad-content">\n <div class="ad-data-content">\n <div class="ad-annonse">${r}</div>\n <div class="ad-title">${o}</div>\n ${d&&`<div class="ad-subtitle">${d}</div>`}\n <div class="ad-sponsored">${n} ${i}</div> \n </div>\n <div class="ad-image-container">\n <img alt="${o}" class="ad-image" src="${a}" />\n </div>\n </div>\n ${"gambling"===s?'<div class="ad-gambling">\n <div class="ad-gambling-text">Åldersgräns för spel är 18 år.</div>\n <div class="ad-gambling-link">www.stodlinjen.se</div>\n </div>':""}\n </a>\n </article>`))(e):(({containerId:e,url:t,adContentFrom:n,adText:r,sponsoredBy:i,title:o,img:a,description:d,desc2:s})=>(import("./styles-D-FXcaqa.js"),`<article class="advertory-aftonbladet-ad-native-content">\n <div class="ad-info" id="${e}-button"></div>\n <a class="ad-link" href="${t}" target="_blank">\n <div class="ad-header">\n <span class="ad-annonse">${r}</span>\n </div>\n <div class="ad-content">\n <div class="ad-data-content">\n <div class="ad-title">${o}</div>\n ${d&&`<div class="ad-subtitle">${d}</div>`}\n <div class="ad-sponsored">${n} ${i}</div> \n </div>\n <div class="ad-image-container">\n <img alt="${o}" class="ad-image" src="${a}" />\n </div>\n </div>\n ${"gambling"===s?'<div class="ad-gambling">\n <div class="ad-gambling-text">Åldersgräns för spel är 18 år.</div>\n <div class="ad-gambling-link">www.stodlinjen.se</div>\n </div>':""}\n </a>\n </article>`))(e)),CLASSIC:Ko,CLASSIC_VIDEO:(e,t)=>{import("./styles-CIeejDSp.js");const{video:n}=e;return(null==n?void 0:n.content)?(r=Zo,(e,t,n)=>{const{video:i,img:o,url:a}=e,{publisher:d,productTag:s}=t,{pluginsNames:l,videoLoop:c}=n||{};if(!(null==i?void 0:i.content))return null;const p=Math.ceil(1e5*Math.random()),u=o||"https://custom.inventory.schibsted.io/1x1-00000000.png",v=`ad-player-${p}`,g=Yo(i.content,a),h=Qo({id:p,nodeId:v,poster:u,tagURL:g,publisher:d,productTag:s,videoLoop:c});return Xo({playerConfig:h,clickUrl:a,pluginsNames:l}),`${r(e,t,v)}`})(e,t):Ko(e,t);var r},CHAT_INTEGRATION:({containerId:e,url:t,sponsoredBy:n,title:r,logo:i,img:o,description:a,customTitle2:d})=>{import("./styles-ztp40LNv.js");const s=d?((e,t)=>{const n=new RegExp(`(\\b[a-zäöå]+\\.${t}\\b)`,"g");return e.replace(n,e=>`<u>${e}</u>`)})(d,ce.SE):void 0;return`<article class="advertory-aftonbladet-ad-native-chat-integration">\n <div class="ad-info" id="${e}-button"></div>\n <a class="ad-link" href="${t}" target="_blank">\n <div class="ad-content">\n <span class="ad-annonse">ANNONS FRÅN ${n}</span>\n <img alt="${n}" class="ad-logo" src="${i}" />\n <div class="ad-data-content">\n <span class="ad-subtitle">\n ${a}\n </span>\n <span class="ad-title">${r}</span>\n <div class="ad-button">Se alla nyheter</div>\n <div class="ad-image-container">\n <img alt="${r}" class="ad-image" src="${o}" />\n </div>\n </div>\n </div>\n </a>\n ${s?`<div class="ad-chat-warning">${s}</div>`:""} \n </article>`},SPONSORSTRIPE:({title:e,sponsoredBy:t,logo:n,url:r})=>`<article class="advertory-aftonbladet-ad-native-sponsorstripe" ${/iPhone|iPad|iPod/i.test(navigator.platform)&&"ios"===B()?'style="top: env(safe-area-inset-top)"':""}>\n <a class="ad-link" href="${r}" target="_blank">\n <div class="ad-wrapper">\n <span class="ad-title">${e}</span>\n <img alt="${t}" class="ad-logo" src="${n}" />\n </div>\n </a>\n </article>`},ta={displayTemplates:{brandstudio_native_ad:ea.CLASSIC,brandstudio_native_ad_alcohol:ea.CLASSIC,default:ea.CONTENT_DISPLAY,gambling:ea.CONTENT_DISPLAY,ab_chat:ea.CHAT_INTEGRATION,sponsor:ea.SPONSORSTRIPE,sponsortop:ea.SPONSORSTRIPE,sponsorstripe:ea.SPONSORSTRIPE},videoTemplates:{brandstudio_native_ad:ea.CLASSIC_VIDEO}},na=(e,t)=>{e.style.position="fixed",e.style.transform=`translateY(${t}px)`},ra=(e,t)=>{const n=document.querySelector(t),r=document.querySelector(`#${e}`);if(!r||!n)return;const i=r.parentElement,o=new IntersectionObserver(([e])=>((e,t,n)=>{const r=e?t.offsetHeight:0;na(n,r)})(e.isIntersecting,n,i)),a=new ResizeObserver(()=>((e,t)=>{na(t,e.offsetHeight)})(n,i));o.observe(n),a.observe(n)},ia=e=>["scrolling-up","menuScrollingUp"].some(t=>e.classList.contains(t)||document.body.classList.contains(t))||0===window.scrollY,oa=e=>e.reduce((e,t)=>{var n;return e+(null!==(n=null==t?void 0:t.getBoundingClientRect().height)&&void 0!==n?n:0)},0),aa=(e,t)=>t.map(t=>e.querySelector(t)),da=(e,t)=>{e.style.transform=`translateY(${t}px)`,e.style.transition="transform 0.3s ease-out"},sa=(e,t)=>{const{headerSelector:n,staticElementsSelectors:r,dynamicElementsSelectors:i}=t;if(!n||!r||!i)return;const o=document.querySelector(n),a=document.querySelector(`#${e}`);if(!o||!a)return;const d=a.parentElement,s=()=>((e,t,n)=>{const r=aa(e,t),i=aa(e,n),o=oa(r);return{minimizedTop:o,expandedTop:o+oa(i)}})(o,r,i),{minimizedTop:l,expandedTop:c}=s();da(d,ia(o)?c:l);const p=((e,t,n)=>{let r=!ia(e);return()=>{const i=!ia(e);if(i===r)return;r=i;const{minimizedTop:o,expandedTop:a}=n();da(t,i?o:a)}})(o,d,s);((e,t)=>{const n=new MutationObserver(t);e.forEach(e=>{n.observe(e,{attributes:!0,attributeFilter:["class"],attributeOldValue:!1})})})([o,document.body],p)},la=e=>document.querySelector(e)||document.querySelector(`[class*="${e}"]`),ca=(e,t,n=D.DESKTOP)=>{var r;if(!t||!v(e))return;const{enabled:i,options:o}=t,{containersSelectors:a,staticElementsSelectors:d,dynamicElementsSelectors:s,hideOnScroll:l,stickBelowHeader:c}=null!=o?o:{},{targetId:p}=e;if(!i)return;const u=null===(r=N.get().pageSectionsSelectors)||void 0===r?void 0:r.header,g=null==s?void 0:s.length,h=document.querySelector(".advertory-takeover-wrapper"),m={headerSelector:u,staticElementsSelectors:d,dynamicElementsSelectors:s},f=[()=>c&&u&&!g&&ra(p,u),()=>g&&sa(p,m),()=>a&&((e,t)=>{const n=document.querySelector(`#${e}`);if(!n)return;const[r,i]=t;if(!r)return;const o=()=>{const e=la(r),t=i?la(i):null,o=n.querySelector("article");if(!o||!e)return;const a=e.getBoundingClientRect().left,d=((e,t)=>{const n=e.getBoundingClientRect(),r=null==t?void 0:t.getBoundingClientRect();return r?r.right-n.left:n.width})(e,t);o.style.left=`${a}px`,o.style.width=`${d}px`};o(),new ResizeObserver(o).observe(document.body)})(p,a),()=>h&&((e,t)=>{const n=document.querySelector(`#${e}`);if(!n||!t)return;new IntersectionObserver(([e])=>{n.style.visibility=e.isIntersecting?"hidden":"visible"}).observe(t)})(p,h),()=>l&&((e,t,n)=>{var r;if(!v(e)||!V(n))return;const{hideOnScroll:i}=null!==(r=t.options)&&void 0!==r?r:{};if(!i)return;const o=document.querySelector(`#${e.targetId}`),a=null==o?void 0:o.parentElement;if(!a)return;const d=1.5*window.innerHeight;window.addEventListener("scroll",()=>{window.scrollY>=d?a.classList.add("advertory-sponsorstripe-onscroll-hidden"):a.classList.remove("advertory-sponsorstripe-onscroll-hidden")},{passive:!0})})(e,t,n)];f.forEach(e=>e())};ht(".advertory-aftonbladet-native-ad-wrapper__front{align-items:center;clear:both;display:flex;justify-content:center;margin-bottom:8px;overflow:hidden;width:100%}@media screen and (min-width: 590px){.advertory-aftonbladet-native-ad-wrapper__front{margin-bottom:16px}}.advertory-aftonbladet-native-ad-wrapper__front .advertory-aftonbladet-native-ad__front{position:relative;width:100%;min-height:120px;z-index:10}.advertory-aftonbladet-native-ad-wrapper__section{align-items:center;clear:both;display:flex;justify-content:center;margin-bottom:8px;overflow:hidden;width:100%}@media screen and (min-width: 590px){.advertory-aftonbladet-native-ad-wrapper__section{margin-bottom:16px}}.advertory-aftonbladet-native-ad-wrapper__section .advertory-aftonbladet-native-ad__section{position:relative;width:100%;min-height:120px;z-index:10}.advertory-aftonbladet-native-ad-wrapper__article{align-items:center;clear:both;display:flex;justify-content:center;margin-bottom:8px;overflow:hidden;width:100%}@media screen and (min-width: 590px){.advertory-aftonbladet-native-ad-wrapper__article{margin-bottom:16px}}.advertory-aftonbladet-native-ad-wrapper__article{padding:0 16px;margin:24px 0;max-width:var(--component-width-max, 580px)}@media screen and (min-width: 590px){.advertory-aftonbladet-native-ad-wrapper__article{margin:12px 0 24px;padding:0}}.advertory-aftonbladet-native-ad-wrapper__article .advertory-aftonbladet-native-ad__article{position:relative;width:100%;min-height:120px;z-index:10}");ht('.advertory-aftonbladet-panorama-wrapper{display:flex;justify-content:center;align-items:center;clear:both;margin-bottom:8px;width:100%;overflow:hidden}@media screen and (min-width: 590px){.advertory-aftonbladet-panorama-wrapper{margin-bottom:16px}}.advertory-aftonbladet-panorama{position:relative;min-height:345px;width:min-content;max-width:100%}@media screen and (min-width: 590px){.advertory-aftonbladet-panorama{min-height:320px}}.advertory-aftonbladet-panorama::before{display:block;content:"ANNONS";color:#585858;font-size:10px;font-family:Arial,Helvetica,Verdana,Geneva,sans-serif;font-weight:bold;letter-spacing:.4px;line-height:25px;visibility:hidden}.advertory-aftonbladet-panorama>div[role=button]{background-color:unset !important;left:unset !important;right:0;z-index:9 !important}.advertory-aftonbladet-panorama>div[role=button] svg path{fill:#585858}.advertory-aftonbladet-panorama.outstream{width:100vw;min-height:unset !important;display:grid;justify-items:center}.advertory-aftonbladet-panorama-wrapper__toppanorama{display:flex;justify-content:center;align-items:center;clear:both;margin-bottom:8px;width:100%;overflow:hidden}@media screen and (min-width: 590px){.advertory-aftonbladet-panorama-wrapper__toppanorama{margin-bottom:16px}}.advertory-aftonbladet-panorama-wrapper__toppanorama{grid-area:topboard;margin-left:0}@media screen and (min-width: 590px){.advertory-aftonbladet-panorama-wrapper__toppanorama{margin-bottom:0}}.advertory-aftonbladet-panorama-wrapper__toppanorama>.advertory-aftonbladet-panorama{min-height:345px;min-width:320px}@media screen and (min-width: 590px){.advertory-aftonbladet-panorama-wrapper__toppanorama>.advertory-aftonbladet-panorama{min-height:275px}}.advertory-aftonbladet-panorama-wrapper__article{display:flex;justify-content:center;align-items:center;clear:both;margin-bottom:8px;width:100%;overflow:hidden}@media screen and (min-width: 590px){.advertory-aftonbladet-panorama-wrapper__article{margin-bottom:16px}}.advertory-aftonbladet-panorama-wrapper__article{background-color:rgba(0,0,0,0);margin:12px 0 24px}.advertory-aftonbladet-panorama-wrapper__sportbladet{margin:24px -16px;padding:16px 0 36px 0;background-color:#feebee;display:flex;justify-content:center;align-items:center;clear:both;margin-bottom:8px;width:100%;overflow:hidden}@media screen and (min-width: 590px){.advertory-aftonbladet-panorama-wrapper__sportbladet{margin-bottom:16px}}html[data-theme=dark] .advertory-aftonbladet-panorama-wrapper__sportbladet{background-color:#230107}@media screen and (min-width: 590px){.advertory-aftonbladet-panorama-wrapper__sportbladet{margin:24px 0}}.advertory-aftonbladet-panorama-wrapper__full-width-ad{display:block !important}@media screen and (max-width: 590px){.advertory-aftonbladet-panorama-wrapper__full-width-ad{width:100vw;position:relative;margin-left:-50vw !important;left:50%}}.advertory-aftonbladet-panorama-wrapper__full-width-ad .advertory-aftonbladet-panorama__full-width-ad{min-height:150px !important}@media screen and (max-width: 590px){.advertory-aftonbladet-panorama-wrapper__full-width-ad .advertory-aftonbladet-panorama__full-width-ad{width:100vw;position:relative;margin-left:-50vw;left:50%;padding-left:0;max-width:unset !important}}.advertory-aftonbladet-panorama-wrapper__full-width-ad .advertory-aftonbladet-panorama__full-width-ad div[id^=div_utif],.advertory-aftonbladet-panorama-wrapper__full-width-ad .advertory-aftonbladet-panorama__full-width-ad iframe{width:100vw !important}@media screen and (min-width: 590px){.advertory-aftonbladet-panorama-wrapper__full-width-ad .advertory-aftonbladet-panorama__full-width-ad div[id^=div_utif],.advertory-aftonbladet-panorama-wrapper__full-width-ad .advertory-aftonbladet-panorama__full-width-ad iframe{width:100% !important}}.advertory-aftonbladet-panorama-wrapper__live>.advertory-aftonbladet-panorama:has(>div[role=button]){max-width:320px}@media screen and (min-width: 590px){.advertory-aftonbladet-panorama-wrapper__live>.advertory-aftonbladet-panorama:has(>div[role=button]){max-width:unset}}.advertory-aftonbladet-panorama-wrapper__live .advertory-aftonbladet-panorama__full-width-ad{margin-left:calc(-50vw - 10px)}.advertory-aftonbladet-l-format{position:relative;height:273px;overflow:visible;display:block}.advertory-aftonbladet-l-format>.advertory-aftonbladet-panorama{position:absolute}.advertory-aftonbladet-h-format{position:relative;height:275px;overflow:visible;display:block}.advertory-aftonbladet-h-format>.advertory-aftonbladet-panorama{position:absolute;width:1600px;transform:translate(-186px)}.advertory-native-ad .advertory-aftonbladet-panorama{min-height:120px !important}.advertory-native-ad::before{display:none !important}');const pa=({targetId:t,adTheme:n,probableHeight:r})=>e("div",{style:{minHeight:null!=r?r:void 0},className:`advertory-aftonbladet-panorama-wrapper${n&&"default"!==n?`__${n}`:""}`,children:e("div",{id:t,className:"advertory-aftonbladet-panorama"})});ht('.advertory-aftonbladet-widescreen-wrapper{justify-content:start;display:flex;justify-content:center;align-items:center;clear:both;margin-bottom:8px;width:100%;overflow:hidden}@media screen and (min-width: 590px){.advertory-aftonbladet-widescreen-wrapper{margin-bottom:16px}}.advertory-aftonbladet-widescreen{position:relative;min-height:600px;position:absolute;top:0;transition:opacity 450ms linear}.advertory-aftonbladet-widescreen::before{display:block;content:"ANNONS";color:#585858;font-size:10px;font-family:Arial,Helvetica,Verdana,Geneva,sans-serif;font-weight:bold;letter-spacing:.4px;line-height:25px;visibility:hidden}.advertory-aftonbladet-widescreen>div[role=button]{background-color:unset !important;left:unset !important;right:0;z-index:9 !important}.advertory-aftonbladet-widescreen>div[role=button] svg path{fill:#585858}');const ua=({targetId:t,probableHeight:n})=>e("div",{style:{minHeight:null!=n?n:void 0},className:"advertory-aftonbladet-widescreen-wrapper",children:e("div",{id:t,className:"advertory-aftonbladet-widescreen"})});ht('.advertory-aftonbladet-insider-wrapper{display:flex;justify-content:center;align-items:center;clear:both;margin-bottom:8px;width:100%;overflow:hidden}@media screen and (min-width: 590px){.advertory-aftonbladet-insider-wrapper{margin-bottom:16px}}.advertory-aftonbladet-insider{position:relative;min-height:250px;width:100%;max-width:300px}.advertory-aftonbladet-insider::before{display:block;content:"ANNONS";color:#585858;font-size:10px;font-family:Arial,Helvetica,Verdana,Geneva,sans-serif;font-weight:bold;letter-spacing:.4px;line-height:25px;visibility:hidden}.advertory-aftonbladet-insider>div[role=button]{background-color:unset !important;left:unset !important;right:0;z-index:9 !important}.advertory-aftonbladet-insider>div[role=button] svg path{fill:#585858}');const va=({targetId:t,probableHeight:n})=>e("div",{style:{minHeight:null!=n?n:void 0},className:"advertory-aftonbladet-insider-wrapper",children:e("div",{id:t,className:"advertory-aftonbladet-insider"})});ht('.advertory-aftonbladet-integration-wrapper{display:flex;justify-content:center;align-items:center;clear:both;margin-bottom:8px;width:100%;overflow:hidden}@media screen and (min-width: 590px){.advertory-aftonbladet-integration-wrapper{margin-bottom:16px}}.advertory-aftonbladet-integration{position:relative;min-height:320px;width:min-content;max-width:100%}.advertory-aftonbladet-integration::before{display:block;content:"ANNONS";color:#585858;font-size:10px;font-family:Arial,Helvetica,Verdana,Geneva,sans-serif;font-weight:bold;letter-spacing:.4px;line-height:25px;visibility:hidden}.advertory-aftonbladet-integration>div[role=button]{background-color:unset !important;left:unset !important;right:0;z-index:9 !important}.advertory-aftonbladet-integration>div[role=button] svg path{fill:#585858}.advertory-aftonbladet-panorama-wrapper__full-width-ad{display:block !important}@media screen and (max-width: 590px){.advertory-aftonbladet-panorama-wrapper__full-width-ad{width:100vw;position:relative;margin-left:-50vw !important;left:50%}}.advertory-aftonbladet-panorama-wrapper__full-width-ad .advertory-aftonbladet-panorama__full-width-ad{min-height:150px !important}@media screen and (max-width: 590px){.advertory-aftonbladet-panorama-wrapper__full-width-ad .advertory-aftonbladet-panorama__full-width-ad{width:100vw;position:relative;margin-left:-50vw;left:50%;padding-left:0;max-width:unset !important}}.advertory-aftonbladet-panorama-wrapper__full-width-ad .advertory-aftonbladet-panorama__full-width-ad div[id^=div_utif],.advertory-aftonbladet-panorama-wrapper__full-width-ad .advertory-aftonbladet-panorama__full-width-ad iframe{width:100vw !important}@media screen and (min-width: 590px){.advertory-aftonbladet-panorama-wrapper__full-width-ad .advertory-aftonbladet-panorama__full-width-ad div[id^=div_utif],.advertory-aftonbladet-panorama-wrapper__full-width-ad .advertory-aftonbladet-panorama__full-width-ad iframe{width:100% !important}}');const ga=({targetId:t,probableHeight:n})=>e("div",{style:{minHeight:null!=n?n:void 0},className:"advertory-aftonbladet-integration-wrapper",children:e("div",{id:t,className:"advertory-aftonbladet-integration"})});ht(".advertory-aftonbladet-sponsorstripe-wrapper{z-index:50;position:sticky;top:var(--fixed-header-height-mobile, 0);height:auto;margin-bottom:0;clear:both;text-align:left;background-color:rgba(0,0,0,0);height:0 !important;width:0 !important}.advertory-aftonbladet-sponsorstripe-wrapper .advertory-aftonbladet-sponsorstripe{position:absolute;top:0;left:0;width:100%;margin:0;border:medium;padding:0;background-color:rgba(0,0,0,0);text-align:left}.advertory-aftonbladet-native-ad-wrapper__article:has(div[id^=sponsorstripe]){overflow:visible;z-index:100;position:fixed;height:0;margin:0;padding:0;top:0}.advertory-aftonbladet-native-ad-wrapper__article:has(div[id^=sponsorstripe]) .advertory-aftonbladet-native-ad__article{min-height:0}");const ha=({targetId:t})=>e("div",{className:"advertory-aftonbladet-sponsorstripe-wrapper",children:e("div",{id:t,className:"advertory-aftonbladet-sponsorstripe"})});ht(".advertory-splash-navbar-wrapper{width:100%;border-bottom-right-radius:0 !important;border-bottom-left-radius:0 !important}.advertory-splash-navbar-wrapper .advertory-splash-navbar{display:flex;justify-content:space-between;align-items:center;width:100%;margin:0 auto;padding:14px;cursor:default}@media screen and (min-width: 600px){.advertory-splash-navbar-wrapper .advertory-splash-navbar{padding:24px 30px}}@keyframes elementsAnimation{0%{opacity:0;pointer-events:none;cursor:default}95%{opacity:0;pointer-events:none;cursor:default}100%{opacity:1;pointer-events:all;cursor:pointer}}.advertory-splash-navbar-wrapper .advertory-splash-navbar .advertory-splash-logo{display:block;height:18px;width:fit-content}@media screen and (min-width: 600px){.advertory-splash-navbar-wrapper .advertory-splash-navbar .advertory-splash-logo{height:26px}}.advertory-splash-navbar-wrapper .advertory-splash-navbar .advertory-splash-close{display:flex;align-items:center;gap:8px;font-family:Arial,Helvetica,Verdana,Geneva,sans-serif;font-size:14px;line-height:20px;animation:elementsAnimation 1.5s linear;cursor:pointer}.advertory-splash-navbar-wrapper .advertory-splash-navbar .advertory-splash-close:hover{text-decoration:underline}");const ma=()=>e("div",{role:"button",tabIndex:1,"data-testid":"advertory-splash-navbar-wrapper",className:"advertory-splash-navbar-wrapper",style:{display:"none"},children:t("div",{className:"advertory-splash-navbar",children:[e("img",{id:"advertory-splash-logotype",className:"advertory-splash-logo",width:"250",height:"30"}),e("div",{className:"advertory-splash-close","data-testid":"advertory-splash-close",children:e("span",{id:"advertory-splash-close-label"})})]})});var fa="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEIAAABCCAYAAADjVADoAAAAAXNSR0IArs4c6QAAAtZJREFUeAHd3EFuwjAQBVDUbZeIM7DqUWANZ0PiDiy4D0JVu4BlpapVK/p/qpEgEGJjezJjS6NAoI3n4Uwg4IxGaKfTaYJYI/aIA2KDmPKxmhpyekFsEUfEDrFCjJsccYMI74h2+8SKeS0QyGWJ+GonifuviDFHA0dCV/vGA+4xkMMC8dOVJNavCMHd4V5zjYHE+hCY+44QrAl9zSUGkgpBYO5HQrAwhjRXGEiINeHe7nCe85YQUwQLY0hzgYFEQkcCc2YBfZEjxxx3mGRIM42BBGIQOGIWF0dGrIjBoKK5o0kygoh4xsiG4BkjO4JHjGIInjCKI7Qwbr0/Rx+ummoBxdbTjg6SZOgSG+TRxBSGOoJgWcIYDMESxuAIFjCAsESEfna4fscoSeRaojPqNcMcgmBqYphF0MQwj6CB4QahJIY7hBIYDyAspR8mlkgg+WjiHkFeiRSMahBSMKpDeBCD50Bj3jHaqgmSdNcycjfB03sbsXwhCA46HlNA70n4RciI4R8hA0Y9CC2M0C+RuJuoIjxJRxWWz9hGzPZ+8fwPhX7pbQKvbsxJlfOiyXOlM72eFtxSAoKA+MfIgOAfIyOCX4xIBB4dOPxDmp/dBNksEUwupDWHSDxxhqgHA8lEI0idrgYjBaEajBwI7jFyIrjFKIHgDqMkghsMDYQEDJ1f+2kimMUYAsEcxpAIZjAsIAyOYQnhDCPm7Dg/w6QVUIsI6hiWEdQwPCAUx/CEUAwDCLE/6zXzXST6nqeAekbINjJqQEjGAAKnCYeeL1T9Gk6Si10in5jdhBP7ppzlx7nSIY0IlxPBYnuo+Hz0NQZjQwhOGO9rLkZC2xlJhWIcCLHrUXA1Eh7E2BOClw7oaq4RBAXJ9Y2MNSHGCF46oN1YQN3UBEm6a4lciHFrxvMb1k+av8MNYnBkcDdhzWAB/Z8m3PWfHa5HTpz+zbnwvDAAr5LAS0Y0CH9NGDAEswYjMgAAAABJRU5ErkJggg==",ya="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGwAAABsCAYAAACPZlfNAAAAAXNSR0IArs4c6QAACT5JREFUeAHtnc1vFlUUximICbLAmoAuSCw7IlsghEQpJWGhEaksJbZdskDSP4Ck6T9AQPcE1I2JEjS6UosbEvzYKbpSWAku+EgEo4nB3wNv67zT+Z5zP97pnOTJOzP33nOec8503pnz3rldt66XtRWBR48ebQcnwLNry/Pq3io2gxhtrz7KQU9I7Aa/A8l1MOHAzEirJCY7wM9AoljtDuIQho+AP0FSbrGzJwihCI0Si73gdjJAbCtmR7zSxeBJ8C/IkgccPOqVUITGFAPwMCtAHFPsTjqnjZH14AwoExE65ZxQpAbkO8g7oZOxUyzXO3EDxZvApaS1Ctvn6OOGkBMv2ymVr0A+1xHFdFM7y6nRKNwGrtVhkeh7me1nUio7tysfgXxtIortNpOgoGgn+LUJi8SY79h+wYRQhErkG5CPbUQx3tnKPRRMgjttWCTG3mD7pVaEIhwsn4B8sxDFerKRmww8Dv62YJHQcZftqUaEIhwkX8C9hH8Wm4r58VruMuC0heUcHf9wfKYWoQg7ywcgX1zJ6VK3sbwRnHfFIKV3oZRQpB3wYyHli6vd8yjemBkGGraAL4FPuYixpzMJRXhQXIE4+xTlZMtQODiwFfzok0XC1hLb0ReO4TgOxDWEKDfPKWnLD7Uvs71rKIv+diYxdRVCE/5M1rM04HaVUZP1Rpr1Vm4OrmiD0FPA9586JockysIxDLMKuEPEPewoN6u/yzi46MF4kQkVjt9YOZMCb8BFBVxxCimLhWGA2Qxwebta5nwUhWNIngJVCrhl/jRtVw6qPf7QcQpYPxDWJX6WAcvfsYUnmWWjbIK6Bdy6vpX1V+ynavnFAMuSSxnBvHavhWNItCng5vlQ93jzEh6WLIqadQmn+6uo+nyts61B54h8bVckx5HRPusqJA8fu3U1waEYrusqHP//LFIhEVW6oFPf19IdUtz80ItH8yD0ndPbVRJRpQ++zIDQd8TzVbg27oODMTybLDR2YDAQP3wVcDGVKf4mK2E+hqf/C/BY/fRfkknGhCjgpjOmqW97S6jaNmMwOUEyTcjX/tcYqlw4Vl+wBEKKJpXusM1GRW0YDlnBXg76dTYmyiirD1DfkLKE8fEyrk7bIaBLzPsgpBQWjiG2B6hPSFGM4vntDzKLIaOB7czCMcdjuEkqLuA6/ZMqUE5wZkHo2+SVGcdwiaGAO1sQstpNY7VHlAwgSIfo8jEY/lm7ZJxx87mBvneM9dZRd5/Ox8bGxr6qM6isr3nCZJCk6RfSz8GL2l+DchOfXyNZP1n77uTniwHRfZD9wZrwCOiTz/tcJEu+O0mYFEP4Fh8HwGfaXyMiXw8MfHfisrOEiS3EH/Chd8Xe037HRT4eHfg8+q7yvRa6cAwFJ6JiuNsCbiL9Tm46EvqHNnFsmgMfAtv3oYaseN35C2tv8Vd1yZdVrwmTUyRNRU9d623eh5LSMPIHZl8nWd/6NO89YXKOpO3g4wvQ7n0oKQsjv2D2VZL1m2/zTm868pwZOLqf9m/y+kR8XJz3h0iWYhIkYTKMw3f5OAw+0P6IiLgeHnAfEcoOaHKJDF04hkKpLDpwfXRVEq7QheO8jKmYPTu6kXXInMAcApr1GouIi4rZveRFgADtAjcjyJg4hHoFKy887Y/j1HZwAlSeW1FmFV2acfw9CCWy3W4GbsJJdGkuiWLU3dXccG4z+BT4FtncnIh3q010JScrdXs1N5zdAN4FvkS2NrTKUGIwurKmA3Z/NTccd104Ni/gwllzSR6CLJG9bq/mhoPTIC8AWUGpekw6VZQ2E/RVnUtyhr5uihco3gQugTpiOskfw1mXmDp80n1NZ+CivMlLI4qp7a8XKNwGroEmcplBZqu5oSv5Jd6Ez/IY0xm48hHI1yai2Nr8eoGi6FZzg9M4uAKaisaOW10D0WXx4mO3V3MjSE1nHJvOwIWH5cuA3V/NjYDVKRybFnCxPQWsS2ndX82NoM2BohnHapuzugRKD/pmSmzS3Eq6vZobockrHJsXcLG10CoV1Qefp2v2O3A0bAEjvZob/NOFY9MCLvpDvAw4tJrb2ODPeyufSyBEdfoKdqf5Ffcen62FoGqJiGNAJaaP0Hu7tVIUoFd3lZ+ASeBbNOX7FXy589gwZN4EIeU6xid8R6GqPXEDy/+OI1ScdBI+ERj0q7ktByP1SWysqytNEn6RQau/yzhY5xa5ieGyMZkv5aVi6G0XsirgilNIKX4UgdkMKLpFdk1eleyVl/K8ZSdlSByAuIQS5WAmRSt7l44uHgjrOn6WAW4q2dluPz4qm0BF65CiR5GpApqrmxhgWXJp6rxp4Xi1l8NHINmmgNvUx/S4Gxxo9g8ZGGhR1EwTqrvfr+Y2fF4V7xHd0T7rit173IqP3bqa4FAM1/W78DhYIf61uqBT39fSHVJMf+hdCQAezYPQd079am4rGamwQcJieDZZqEC1sAt++CrgYipT9Hyn14ndC4ZiePq/AI/VT/8l7jMmRAEXs0NiOpekxOUnzZi3mlsx5EnNnX41t0rZGnQiuJpbsVQzyNbdKxWOMaoCrvqGlCWMm80lqZOrlb4QaDq3wjJw/WpuKxmpuEH0Fy0z0EBXZuEYPTHcJBUXcCvG2LwbwZkF0RSO4RJDAXfWMtCPf3G2VEiQ+tXcngT0Ph/9am6WJ5dDXTfR3a/m5jDAlqr71dwso+lYV7+am+MAW6rvV3PjBmYURMXwecvMF+kyv0ssMoZj07T3q7kVBamkzWvCxIWk9au5lSSlqNl7wgZJ28Fnv5pbUWZy2rzPShIPphxr2bp+NbecpBQdDpIwESJp/WpuRZmJuY3vtdCFYyiUSpwF3FCJJVyhC8d5GVMxezZUXKK2S2DyXsrLC6br45qB26/mVnTWEKD0S3muk5Kn3/RlwCKfR76NCHZqNbeRT0gVB0haJ1Zzq+JrZ/qQtJFeza0ziajrCIlzPePYawG3rv8j2Z+kTYOHwFqkU0XpXqwjQGD3As2atRL/M3CtgxK7PjJlNePYdDW32OMWlB9J04zjKy3+zDR2PKgTa804AW8649h0Nbe1FvfW/pK4OoXjvoDbOuIGCkjaHCiacay2OQNTvQqrCJCQvMJxX8C1CrK1HpKWLhx3roAbZE6HdaKS+kiak9Xckjb67T4ClSPwH3Dy/EjlG8AUAAAAAElFTkSuQmCC";ht(".advertory-welcome-page-close{padding:0;background:none;border:none;z-index:1;position:fixed;top:42px;left:16px;color:#fff;cursor:pointer;filter:drop-shadow(rgba(0, 0, 0, 0.2) -1px -1px 1px) drop-shadow(rgba(0, 0, 0, 0.2) 1px 1px 1px)}.advertory-welcome-page-close .advertory-welcome-page-close-image{width:22px;height:22px}@media screen and (min-width: 736px){.advertory-welcome-page-close .advertory-welcome-page-close-image{width:28px;height:28px}}.advertory-welcome-page-scroll{display:flex;flex-direction:column;align-items:center;color:#fff;font-size:18px;text-shadow:0 2px 5px rgba(0,0,0,.2);text-align:center;position:absolute;max-width:100%;z-index:1000;left:50%;transform:translate(-50%);cursor:pointer;filter:drop-shadow(rgba(0, 0, 0, 0.2) -1px -1px 1px) drop-shadow(rgba(0, 0, 0, 0.2) 1px 1px 1px)}.advertory-welcome-page-scroll .advertory-welcome-page-scroll-image{width:26px;height:26px;margin-top:19px}@media screen and (min-width: 736px){.advertory-welcome-page-scroll{font-size:calc(24px + 2*(100vw - 736px)/514)}.advertory-welcome-page-scroll .advertory-welcome-page-scroll-image{width:54px;height:54px;margin-top:22px}}");const wa=()=>t(n,{children:[e(()=>e("div",{style:{display:"none"},className:"advertory-welcome-page-elements advertory-welcome-page-close smooth-close-takeover","data-testid":"welcome-page-close-button",children:e("img",{className:"advertory-welcome-page-close-image",src:fa,alt:"Stäng annonsen",width:"28",height:"28"})}),{}),e(()=>t("div",{style:{display:"none"},className:"advertory-welcome-page-elements advertory-welcome-page-scroll smooth-close-takeover","data-testid":"welcome-page-arrow-icon",children:[e("span",{id:"advertory-welcome-page-scroll-label"}),e("img",{className:"advertory-welcome-page-scroll-image",id:"advertory-welcome-page-scroll-image",src:ya,width:"54",height:"54"})]}),{})]});ht(".advertory-topscroller-close{padding:0;background:none;border:none;z-index:1;position:fixed;top:42px;left:16px;color:#fff;cursor:pointer;filter:drop-shadow(rgba(0, 0, 0, 0.2) -1px -1px 1px) drop-shadow(rgba(0, 0, 0, 0.2) 1px 1px 1px)}.advertory-topscroller-close img{width:22px;height:22px}@media screen and (min-width: 736px){.advertory-topscroller-close img{width:28px;height:28px}}.advertory-topscroller-scroll{display:flex;flex-direction:column;align-items:center;color:#fff;font-size:18px;text-shadow:0 2px 5px rgba(0,0,0,.2);position:absolute;max-width:100%;text-align:center;z-index:1000;left:50%;transform:translate(-50%);cursor:pointer;top:50vh;filter:drop-shadow(rgba(0, 0, 0, 0.2) -1px -1px 1px) drop-shadow(rgba(0, 0, 0, 0.2) 1px 1px 1px)}.advertory-topscroller-scroll img{width:26px;height:26px;margin-top:19px}@media screen and (min-width: 736px){.advertory-topscroller-scroll{font-size:calc(24px + 2*(100vw - 736px)/514);top:55vh}.advertory-topscroller-scroll img{width:54px;height:54px;margin-top:22px}}@media screen and (min-height: 836px){.advertory-topscroller-scroll{top:50vh !important}}");const ba=()=>t(n,{children:[e(()=>e("div",{style:{display:"none"},className:"advertory-topscroller-elements advertory-topscroller-close smooth-close-takeover","data-testid":"topscroller-close-button",children:e("img",{src:fa,alt:"Stäng annonsen",width:"28",height:"28"})}),{}),e(()=>t("div",{style:{display:"none"},className:"advertory-topscroller-elements advertory-topscroller-scroll smooth-close-takeover","data-testid":"topscroller-arrow-icon",children:[e("span",{id:"advertory-topscroller-scroll-label"}),e("img",{id:"advertory-topscroller-scroll-image",src:ya,width:"54",height:"54"})]}),{})]});ht(".advertory-splash-navbar-wrapper{width:100%;border-bottom-right-radius:0 !important;border-bottom-left-radius:0 !important}.advertory-splash-navbar-wrapper .advertory-splash-navbar{display:flex;justify-content:space-between;align-items:center;width:100%;margin:0 auto;padding:14px;cursor:default}@media screen and (min-width: 600px){.advertory-splash-navbar-wrapper .advertory-splash-navbar{padding:24px 30px}}@keyframes elementsAnimation{0%{opacity:0;pointer-events:none;cursor:default}95%{opacity:0;pointer-events:none;cursor:default}100%{opacity:1;pointer-events:all;cursor:pointer}}.advertory-splash-navbar-wrapper .advertory-splash-navbar .advertory-splash-logo{display:block;height:18px;width:fit-content}@media screen and (min-width: 600px){.advertory-splash-navbar-wrapper .advertory-splash-navbar .advertory-splash-logo{height:26px}}.advertory-splash-navbar-wrapper .advertory-splash-navbar .advertory-splash-close{display:flex;align-items:center;gap:8px;font-family:Arial,Helvetica,Verdana,Geneva,sans-serif;font-size:14px;line-height:20px;animation:elementsAnimation 1.5s linear;cursor:pointer}.advertory-splash-navbar-wrapper .advertory-splash-navbar .advertory-splash-close:hover{text-decoration:underline}.advertory-welcome-page-close{padding:0;background:none;border:none;z-index:1;position:fixed;top:42px;left:16px;color:#fff;cursor:pointer;filter:drop-shadow(rgba(0, 0, 0, 0.2) -1px -1px 1px) drop-shadow(rgba(0, 0, 0, 0.2) 1px 1px 1px)}.advertory-welcome-page-close .advertory-welcome-page-close-image{width:22px;height:22px}@media screen and (min-width: 736px){.advertory-welcome-page-close .advertory-welcome-page-close-image{width:28px;height:28px}}.advertory-welcome-page-scroll{display:flex;flex-direction:column;align-items:center;color:#fff;font-size:18px;text-shadow:0 2px 5px rgba(0,0,0,.2);text-align:center;position:absolute;max-width:100%;z-index:1000;left:50%;transform:translate(-50%);cursor:pointer;filter:drop-shadow(rgba(0, 0, 0, 0.2) -1px -1px 1px) drop-shadow(rgba(0, 0, 0, 0.2) 1px 1px 1px)}.advertory-welcome-page-scroll .advertory-welcome-page-scroll-image{width:26px;height:26px;margin-top:19px}@media screen and (min-width: 736px){.advertory-welcome-page-scroll{font-size:calc(24px + 2*(100vw - 736px)/514)}.advertory-welcome-page-scroll .advertory-welcome-page-scroll-image{width:54px;height:54px;margin-top:22px}}.advertory-topscroller-close{padding:0;background:none;border:none;z-index:1;position:fixed;top:42px;left:16px;color:#fff;cursor:pointer;filter:drop-shadow(rgba(0, 0, 0, 0.2) -1px -1px 1px) drop-shadow(rgba(0, 0, 0, 0.2) 1px 1px 1px)}.advertory-topscroller-close img{width:22px;height:22px}@media screen and (min-width: 736px){.advertory-topscroller-close img{width:28px;height:28px}}.advertory-topscroller-scroll{display:flex;flex-direction:column;align-items:center;color:#fff;font-size:18px;text-shadow:0 2px 5px rgba(0,0,0,.2);position:absolute;max-width:100%;text-align:center;z-index:1000;left:50%;transform:translate(-50%);cursor:pointer;top:50vh;filter:drop-shadow(rgba(0, 0, 0, 0.2) -1px -1px 1px) drop-shadow(rgba(0, 0, 0, 0.2) 1px 1px 1px)}.advertory-topscroller-scroll img{width:26px;height:26px;margin-top:19px}@media screen and (min-width: 736px){.advertory-topscroller-scroll{font-size:calc(24px + 2*(100vw - 736px)/514);top:55vh}.advertory-topscroller-scroll img{width:54px;height:54px;margin-top:22px}}@media screen and (min-height: 836px){.advertory-topscroller-scroll{top:50vh !important}}.advertory-takeover-wrapper{display:none;font-family:Arial,Helvetica,Verdana,Geneva,sans-serif;width:100%}.advertory-takeover-wrapper.advertory-impact-wrapper{z-index:10001}.advertory-takeover-wrapper.welcome-page-wrapper{clip-path:inset(0)}.advertory-takeover-wrapper.advertory-splash-wrapper{position:fixed;height:100vh;background-color:#fff;font-weight:700;z-index:10001}.advertory-takeover-wrapper.topscroller-wrapper div[role=button]{border-bottom-left-radius:0;border-bottom-right-radius:13px !important;right:unset}.advertory-takeover-wrapper.topscroller-wrapper iframe[id^=utif_]{width:100%;height:68vh}.advertory-takeover-wrapper.topscroller-wrapper .takeover-topscroller-label{right:0 !important;left:unset !important}.advertory-takeover-wrapper div[role=button]{background-color:hsla(0,0%,100%,.75) !important;border-bottom-left-radius:13px;border-bottom-right-radius:0 !important;left:unset !important;right:0}.advertory-takeover-wrapper .advertory-takeover{position:fixed;height:100vh;width:100%}.advertory-takeover-wrapper .advertory-takeover .advertory-takeover-label{position:absolute;top:0;left:0;font-size:10px;font-weight:700;background-color:hsla(0,0%,100%,.75);color:#585858;padding:7px;letter-spacing:.4px}.takeover-ad-hidden{display:none;visibility:hidden;height:0 !important}body.page-locked{position:fixed;top:0;left:0;right:0;width:100%;overflow:hidden}");const xa=n=>t("div",{className:"advertory-takeover-wrapper",children:[e(ma,{}),e(wa,{}),e(ba,{}),t("div",{id:n.targetId,className:"advertory-takeover","data-device":"all",children:[e("div",{className:"div-for-xandr",style:{display:"none"}}),e("div",{className:"advertory-takeover-label",style:{display:"none"}}),e("div",{id:`${n.targetId}-button`})]})]}),Ea={prepareTag:e=>{var t;const{keywords:n,targetId:r,invCode:i,dynamicSizeWidthCheck:o}=e,{pageSetup:a,pageContext:{countryCode:d}}=N.get();if(!a)return(e=>{const{keywords:t,targetId:n,invCode:r}=e,{pageSetup:{tag:{useAppTabletInvCode:i=!0}={}}={}}=N.get(),o=io(r,i),a=To(e),d=ko(n),s=Oo(),l=Lo(r),c=_o(r);return Object.assign(Object.assign({},e),{invCode:o,keywords:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},t),a),d),l),s),rendererOptions:c})})(e);const{tag:{useAppTabletInvCode:s=!0}={}}=a,l=io(i,s),c=To(e),p=ko(r),u=(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}})(l),v=Oo(),g=Lo(i),h=_o(i,{safeFrameAutoInitialSize:!0}),m=o&&e.sizes.length>0?e.sizes.filter(([e])=>e<=window.innerWidth):e.sizes,f=(new jo).add(null!=n?n:{}).add(c).add(p).add(null!=u?u:{}).add(g).add(v).addIf(null===(t=null==a?void 0:a.tag)||void 0===t?void 0:t.reloadKeywords,{[`${Ee(d)}-adreload`]:"0"}).build();return Object.assign(Object.assign({},e),{sizes:m,invCode:l,keywords:f,rendererOptions:h})},preparePageOptions:e=>Q(void 0,void 0,void 0,function*(){const{pageContext:{countryCode:t},pageSetup:n}=N.get();return n?yield t===ce.SE?Wo(e):Vo(e):yield Ro(e)}),siteEvents:K,initNativeAd:(e,t)=>{var n;const{targetId:r}=e,i=document.querySelector(`#${r}`);if(!i)return;const{pageType:o=xn.FRONT,deviceType:a}=null!==(n=null==t?void 0:t.pageContext)&&void 0!==n?n:{},{nativeTrackingConfig:d,appearanceConfig:s}=null!=t?t:{},l={language:ce.SE,publisher:G.AFTONBLADET,deviceType:a,pageType:o,nativeTrackingConfig:d,appearanceConfig:s};Ao(e,l,ta),ca(e,null==t?void 0:t.sponsorstripe),x(e)&&(e=>{const t=e.querySelector(".advertory-aftonbladet-ad-native-classic-alcohol");if(!t)return;const n=t.querySelector(".ad-content"),r=t.querySelector(".alcohol-warning");if(!r||!n)return;new ResizeObserver(([e])=>{const t=e.contentRect.height;t>0&&(r.style.height=`${Math.floor(.2*t)}px`)}).observe(n)})(i)}},Ca=((e,t)=>({init:n=>xo(Object.assign(Object.assign({},n),{siteSpecificConfig:t}),e),update:wo,getVideoPPIDs:Ke,createInitNativeAd:So,getVideoAdsConfig:Mi}))(Ea,J);export{xa as $,Wi as A,Et as B,d as C,ft as D,H as E,ae as F,Kr as G,E as H,z as I,on as J,Ln as K,Fn as L,qn as M,Bn as N,ze as O,ce as P,Zt as Q,Je as R,r as S,Ir as T,G as U,Ca as V,pa as W,ua as X,va as Y,ga as Z,Q as _,Ge as a,ha as a0,Xt as b,N as c,Cr as d,oe as e,Y as f,Bt as g,Oe as h,ht as i,he as j,Rn as k,O as l,zi as m,vr as n,Rr as o,qr as p,Nr as q,$r as r,tr as s,Nt as t,Zn as u,Mr as v,tt as w,kt as x,Wr as y,a as z};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as e,x as t,m as r,A as s,y as a,z as n,B as i,C as o}from"./_auto-entry_aftonbladetv2-
|
|
1
|
+
import{c as e,x as t,m as r,A as s,y as a,z as n,B as i,C as o}from"./_auto-entry_aftonbladetv2-CdZIRMex.js";import"react/jsx-runtime";const l=(n,i)=>{const{siteSpecificConfig:{publisherClassName:o}={},pageContext:{pageType:l}}=e.get(),c=document.querySelector(`#${n}`);if(!c)return;if(c.classList.add(t),!o)return;r(o,c,s.FINN_BLINK,null!=i?i:l);a({preferredTestIdData:{targetId:n,testId:"finn"}})},c=t=>{const{fullscreenScroll:r}=e.get(),{initNativeAd:s}=e.getHandlers();n(t)&&i(t,r),o(t)&&(null==s||s(t,e.get()))},u=t=>{const{pageContext:{publisher:r=""}}=e.get(),s=document.querySelector(`#${t}`);if(!s)return;const a=`-${r}`;s.classList.remove(`advertory${a}-finn-blink`),s.classList.remove(`advertory${a}-finn-blink-wrapper`)};export{c as displaySpecialFormatsForFinnFallback,l as finnBlinkLoaded,u as xandrAdLoaded};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as t,l as e,Q as a,R as n,j as i,U as l}from"./_auto-entry_aftonbladetv2-
|
|
1
|
+
import{_ as t,l as e,Q as a,R as n,j as i,U as l}from"./_auto-entry_aftonbladetv2-CdZIRMex.js";import{jsxs as r,jsx as s}from"react/jsx-runtime";class o{getPulseObjectId(){return"sdrn:vg:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:vg:frontpage:front"}getTags(t){var e;let a;if(a=t instanceof HTMLAnchorElement?t.href:null===(e=null==t?void 0:t.querySelector("a"))||void 0===e?void 0:e.href,!a)return[];const{host:n,pathname:i}=new URL(a);if(!n.includes("www.vg.no")&&!i.includes("annonsorinnhold"))return[a];const l=i.split("/");return l.length?[...l.filter(Boolean).slice(1).map(t=>t),a]:[a]}}class c{getPulseObjectId(){return""}getPulsePageId(t,e){return""}}class d{constructor(t,e){this.pulse=t,this.newsroomStrategy=e}getEventInput(t,e){return{}}parseKilkayaData(t){const e=t.querySelector("article");if(!e)return{};const a=e.dataset.k5aTeaserAnalytics;try{return a?JSON.parse(a):{}}catch(t){return{}}}mapPageType(t){return{front:"Frontpage",article:"Article",section:"Article",collection:"Article",other:"Article"}[t||"front"]||"Frontpage"}getArticleId(){return location.pathname.split("/").slice(-2,-1).pop()||""}getEventTarget(t){const{url:e,title:a,itemId:n}=this.parseKilkayaData(t);return{id:n,name:this.normalizePlacementTitle(null!=a?a:""),type:"Page",url:e}}normalizePlacementTitle(t){return t.replace(/<[^>]+>/gi,"").replace(/[^a-z0-9æøå\s_-]/gi,"")}trackContentView(e){return t(this,void 0,void 0,function*(){var t,a,n,i,l,r,s,o,c;const d=new CustomEvent("advertory:partnerstudioAdImpression",{detail:{ad:null===(t=this.parseKilkayaData(e))||void 0===t?void 0:t.placement}});if(window.dispatchEvent(d),!this.pulse)return;const u=this.getEventInput(e,"view");(null===(a=this.pulse)||void 0===a?void 0:a.trackLegacyViewUIElement)?null===(i=null===(n=this.pulse)||void 0===n?void 0:n.trackLegacyViewUIElement)||void 0===i||i.call(n,u):(null===(l=this.pulse)||void 0===l?void 0:l.trackViewUIElement)?null===(s=null===(r=this.pulse)||void 0===r?void 0:r.trackViewUIElement)||void 0===s||s.call(r,u):null===(c=null===(o=this.pulse)||void 0===o?void 0:o.trackElementView)||void 0===c||c.call(o,u)})}trackContentClick(e){return t(this,void 0,void 0,function*(){var t,a,n,i,l,r;if(!this.pulse)return;const s=this.getEventInput(e,"click");this.pulse.trackLegacyClickUIElement?null===(a=(t=this.pulse).trackLegacyClickUIElement)||void 0===a||a.call(t,s):this.pulse.trackClickUIElement?null===(i=(n=this.pulse).trackClickUIElement)||void 0===i||i.call(n,s):null===(r=(l=this.pulse).trackElementClick)||void 0===r||r.call(l,s)})}}class u extends d{constructor(t,e,a){super(t,e),this.pulse=t,this.newsroomStrategy=e,this.pageType=a}getEventBaseData(t){var e,a,n,i,l,r;const{clientName:s,creativeId:o,itemId:c,placement:d}=this.parseKilkayaData(t),u=this.mapPageType(this.pageType),v=null===(e=this.newsroomStrategy)||void 0===e?void 0:e.getPulsePageId(this.pageType||"front",this.getArticleId());return{"@id":null!==(i=null===(n=null===(a=this.newsroomStrategy)||void 0===a?void 0:a.getPulseObjectId)||void 0===n?void 0:n.call(a))&&void 0!==i?i:d,"@type":"UIElement",position:d,elementType:"Article",custom:{customer:s,creativeId:null!=o?o:c},page:{"@id":null!=v?v:d,"@type":u,url:location.origin},tags:null===(r=null===(l=this.newsroomStrategy)||void 0===l?void 0:l.getTags)||void 0===r?void 0:r.call(l,t)}}getEventTarget(t){const{link:e,itemId:a,title:n}=this.parseKilkayaData(t);return{id:a,name:this.normalizePlacementTitle(null!=n?n:""),type:"Page",url:e}}getEventInput(t,e){return{object:this.getEventBaseData(t),partnerstudio:this.getEventPartnerstudioData(t,e),target:this.getEventTarget(t),provider:this.getProviderData()}}getEventPartnerstudioData(t,e){const a=this.parseKilkayaData(t);return Object.assign(Object.assign({},a),{type:e,tracking_type:"ad",xandrAdLoaded:!1})}getProviderData(){return{productTag:"partnerstudio"}}}const v="[data-k5a-teaser-analytics]",p=(t,e,a)=>{const n=document.querySelectorAll("k5a-stream");if(!n.length)return;const i=new u(t,e,a),l=new WeakMap,r=t=>{const e=l.get(t);e&&(e.disconnect(),l.delete(t))},s=new IntersectionObserver((t,e)=>{t.forEach(t=>{if(!t.isIntersecting)return;const a=t.target,n=a.querySelector(v);Boolean(null==n?void 0:n.dataset.k5aTeaserAnalytics)?(i.trackContentView(a),e.unobserve(t.target),r(a)):((t,e)=>{if(l.has(t))return;const a=new MutationObserver(()=>{const a=t.querySelector(v);Boolean(null==a?void 0:a.dataset.k5aTeaserAnalytics)&&(i.trackContentView(t),e.unobserve(t),r(t))});a.observe(t,{attributes:!0,childList:!0,subtree:!0,attributeFilter:["data-k5a-teaser-analytics"]}),l.set(t,a)})(a,e)})},{threshold:.5});n.forEach(t=>{s.observe(t),t.addEventListener("click",()=>i.trackContentClick(t))})};class g{handleKilkayaStreamTracking({pulse:t,pageContext:{pageType:e,publisher:a}}){if(!(null==t?void 0:t.instance))return;const n={[l.VG]:new o}[a]||new c;p(t.instance,n,e)}injectKilkayaMeta(t){const e=document.createElement("script");e.textContent=`var k5aMeta = { consent: ${t} };`,document.head.appendChild(e)}observeForKilkayaBackfills(){document.addEventListener("K5A:EmptyStreamSlot",t=>{var a;const n=null===(a=null==t?void 0:t.detail)||void 0===a?void 0:a.streamSlot;if(!n)return;const i=n.parentElement;i&&(e(`Kilkaya placement ${n.getAttribute("name")} has not been loaded, loading Xandr backfill`),this.showBackfill(i))})}showBackfill(t){var e;const n=t.querySelector(".fallback");if(!n)return;n.style.display="block";const i=null!==(e=n.dataset.fallbackTargetId)&&void 0!==e?e:"";a(i)}loadKilkayaScript(e){return t(this,void 0,void 0,function*(){yield n(e)})}run(e){return t(this,void 0,void 0,function*(){var t,a;const{tcf:n,pageContext:{isMobileApp:l,countryCode:r},kilkaya:s}=e;if(!(null==s?void 0:s.enabled))return;const o=yield i(n,l,r,"kilkaya");o&&(this.observeForKilkayaBackfills(),this.injectKilkayaMeta(o),yield this.loadKilkayaScript(null!==(a=null===(t=s.options)||void 0===t?void 0:t.kilkayaUrl)&&void 0!==a?a:""),this.handleKilkayaStreamTracking(e))})}}const h=({placementName:t,slotTag:e,fallbackTargetId:a,children:n,pulseData:i,htmlAttributes:l})=>{const o=(t,e)=>{const a={};if(!t)return a;for(const[n,i]of Object.entries(t)){a[e?`${e}-${n}`:n]=String(i)}return a},c=o(i,"data-pulse"),d=o(l,"data");return r("div",Object.assign({className:"kilkaya-wrapper kilkaya-lock-height",style:{width:"100%"}},c,d,{children:[s("div",{className:"inscreen-target"}),s("k5a-stream",{name:t,"slot-tag":e}),s("div",{className:"container"}),s("div",{className:"fallback","data-fallback-target-id":a,style:{display:"none"},children:n})]}))},k=e=>t(void 0,void 0,void 0,function*(){const t=new g;yield t.run(e)});export{h as Kilkaya,k as runKilkaya};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as t,c as e,j as o,O as n,P as s}from"./_auto-entry_aftonbladetv2-
|
|
1
|
+
import{_ as t,c as e,j as o,O as n,P as s}from"./_auto-entry_aftonbladetv2-CdZIRMex.js";import"react/jsx-runtime";const i=t=>t===s.NO?"schibsted":"schibstedse",a=()=>t(void 0,void 0,void 0,function*(){const{norstat:{enabled:s}={},pageContext:{countryCode:a,isMobileApp:d},tcf:c}=e.get(),r=yield o(c,d,a,"norstat");if(!s||d||!r)return;const m=n(a);((e,o,...n)=>{t(void 0,[e,o,...n],void 0,function*(t,e,o=!0){if(document.getElementById(e))return;const n=document.createElement("img");n.src=t,n.id=null!=e?e:"",o&&(n.style.display="none"),document.body.appendChild(n)})})(`https://sch-map.norstatsurveys.com/api/nids/${i(a)}/map/${m}`,"norstat")});export{i as getCampaign,a as loadNorstat};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{I as e,E as t,G as n,c as r,H as o,S as i,J as d}from"./_auto-entry_aftonbladetv2-
|
|
1
|
+
import{I as e,E as t,G as n,c as r,H as o,S as i,J as d}from"./_auto-entry_aftonbladetv2-CdZIRMex.js";import"react/jsx-runtime";const s=(e,t)=>{const n=e.width,r=(null!=t?t:window.screen.width)/n;return r<1?r:1},l=(e,t=window.screen.width,n,r)=>{const o=s(e,t);if(n&&n(e,o),r)return void r(e);const i=document.querySelector(`iframe[id^="utif_${e.targetId}"]`);i&&(i.style.transform=`scale(${o})`,i.style.transformOrigin="left top")},a=(e,t)=>{if(e&&t)return t/e},c=new Map;c.set("insider",{scale:.82,transformOrigin:"left center",cogwheelAdjust:!0}),c.set("panorama",{scale:.79,transformOrigin:"center center"}),c.set("outstream",{scale:.79,transformOrigin:"center center"}),c.set("integration",{scale:.79,transformOrigin:"center center"}),c.set("toppanorama",{scale:.8,transformOrigin:"left center"});const u=r=>{if(!((null===(o=null===document||void 0===document?void 0:document.body)||void 0===o?void 0:o.clientWidth)>e&&(null===(i=null===document||void 0===document?void 0:document.body)||void 0===i?void 0:i.clientWidth)<=t))return;var o,i;const d=n(r),s=c.get(d),l=document.querySelector(`#${r.targetId}`);if(!l||!s)return;if(l.style.transformOrigin=s.transformOrigin,l.style.transform=`scale(${s.scale})`,!(null==s?void 0:s.cogwheelAdjust))return;const a=document.querySelector(`div[class*="gdpr-cogwheel-button"][id$="${r.targetId}"]`),u=null==l?void 0:l.offsetWidth;a&&"number"==typeof u&&!isNaN(u)&&a.style.setProperty("right",String(-1*u*.2)+"px")},f=e=>{var t,n,s,a,c,u;const{adScaleConfig:f,pageContext:{deviceType:m}}=r.get();if(!(null==f?void 0:f.enabled))return;if(o(e,i.ANY_FULLSCREEN))return;const v=null!==(t=f.adsToBeScaled[m])&&void 0!==t?t:[],g=d(e.targetId.split("-")[0]);if(!v.includes(g))return;const w=null!==(s=null===(n=f.offset)||void 0===n?void 0:n[g])&&void 0!==s?s:0,p=document.getElementById(e.targetId),y=null!==(a=null==p?void 0:p.offsetWidth)&&void 0!==a?a:window.screen.width,h=null!==(u=null===(c=null==p?void 0:p.parentElement)||void 0===c?void 0:c.offsetWidth)&&void 0!==u?u:window.screen.width;l(e,(y<h?y:h)-w)};export{s as calculateScaleFactor,a as getAspectRatio,l as scaleAd,u as scaleAdIpadAirPortrait,f as scaleAds};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as t}from"./_auto-entry_aftonbladetv2-
|
|
1
|
+
import{c as t}from"./_auto-entry_aftonbladetv2-CdZIRMex.js";import"react/jsx-runtime";const e=(t,e)=>{e.left&&(t.style.left=e.left),e.marginLeft&&(t.style.marginLeft=e.marginLeft)},l=e=>{const l=document.querySelector(`#${e.targetId}`),{siteSpecificConfig:{publisherClassName:r,fullWidthFormatClassName:a}={}}=t.get();if(!l||!r||!a)return;const i=l.parentElement;i&&(l.classList.add(`advertory-${r}-${a}__full-width-ad`),i.classList.add(`advertory-${r}-${a}-wrapper__full-width-ad`))},r=(l,r,a,i)=>{var s,n;const o=document.querySelector(`#${l.targetId}`),{siteSpecificConfig:{publisherClassName:d,fullWidthFormatClassName:f}={},fullWidth:u,pageContext:{deviceType:c}}=t.get();if(!o)return;const p=o.parentElement,m=o.querySelector("iframe"),y=null==m?void 0:m.parentElement;if(!m||!y)return;if(o.style.width="100vw",o.style.position="relative",p&&(p.style.width="100vw",p.style.position="relative"),!d||!f)return;const v=`advertory-${d}-${f}`;o.classList.add(`${v}__${i}`),null==p||p.classList.add(`${v}-wrapper__${i}`);const h=null===(n=null===(s=null==u?void 0:u.options)||void 0===s?void 0:s.styles)||void 0===n?void 0:n[c],$=(null==u?void 0:u.enabled)&&h;!$&&p&&(p.style.left="50%",p.style.marginLeft="-50vw"),$&&h.adContainer&&e(o,h.adContainer),$&&h.adContainerWrapper&&p&&e(p,h.adContainerWrapper);const g=o.offsetWidth,w=g/l.width;y.style.transform=`scale(${w})`,y.style.transformOrigin="left top";const C=Math.round(g/r*a);o.style.height=`${C}px`,o.style.overflow="hidden"},a=t=>{r(t,1080,1920,"ninesixteen-ad")},i=t=>{r(t,1080,1080,"fullsquare-ad")};export{i as applyFullsquareFormat,a as applyNinesixteenFormat,l as prepareContainerForFullWidthFormat};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as e,l as n,_ as i,c as t,g as o,a as r,b as d,d as l,e as s,F as a,h as c,f as u,j as f,k as v,u as m,m as g,A as h,s as p}from"./_auto-
|
|
1
|
+
import{i as e,l as n,_ as i,c as t,g as o,a as r,b as d,d as l,e as s,F as a,h as c,f as u,j as f,k as v,u as m,m as g,A as h,s as p}from"./_auto-entry_aftonbladetv2-CdZIRMex.js";import{xandrAdLoaded as y,finnBlinkLoaded as b}from"./events-BGNPwius.js";import"react/jsx-runtime";e('.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 k={Blink:"Blink"},w=new Map,$=e=>{var n;if(!w.has(e)){const n=import(/* webpackIgnore: true */e).then(e=>(e=>{for(const[n,i]of Object.entries(k)){const t=e[n];null!=t&&(window[i]=t)}})(e)).catch(n=>{throw w.delete(e),n});w.set(e,n)}return null!==(n=w.get(e))&&void 0!==n?n:Promise.resolve()},I="https://assets.finn.no/pkg/distribution-fixed/v1/FINNExternalDistribution.modern.js",C="https://www.finn.no/distribution-front/external/carousel",S={get:e=>{try{const n=sessionStorage.getItem(e);return n?JSON.parse(n):null}catch(e){return n(`sessionStorageClient.get: Error during getting data from sessionStorage: ${e}`),null}},set:(e,i)=>{try{sessionStorage.setItem(e,JSON.stringify(i))}catch(e){n(`sessionStorageClient.set: Error during saving data to sessionStorage: ${e}`)}},remove:e=>{try{sessionStorage.removeItem(e)}catch(e){n(`sessionStorageClient.remove: Error during remove data from sessionStorage: ${e}`)}}},j="finn_blink_id",x=e=>i(void 0,void 0,void 0,function*(){const{userId:n,id:i,hashed_email:t,theme:o}=e,r=u(e,["userId","id","hashed_email","theme"]),d=window[k.Blink];if(!d)return;const l=new d({remote:C,id:i,hashed_email:t,theme:o});yield l.inject(Object.assign({},r))}),B=e=>i(void 0,void 0,void 0,function*(){const{userId:n,theme:i}=e,t=u(e,["userId","theme"]),o=window[k.Blink];if(!o)return;const r=new o({remote:C,userId:n,theme:i});yield r.inject(Object.assign({},t))}),_=e=>{var n,i;const t=document.querySelector(`[id^="${e}"]`);return null!==(i=null===(n=null==t?void 0:t.dataset)||void 0===n?void 0:n.finnBlinkId)&&void 0!==i?i:e},E=(e,n)=>{const{finnBlink:{enabled:i}={}}=t.get(),o=(null==n?void 0:n.enabled)||(e=>{var n;const i=document.querySelector(`[id^="${e}"]`);return!!(null===(n=null==i?void 0:i.dataset)||void 0===n?void 0:n.noBidAd)})(e);if(!o||!i)return null;const{limit:r,height:d,requireImage:l,theme:s,rec:a,distributionTypes:c,position:u,offset:f}=(null==n?void 0:n.sdkPayload)||{};return{selector:`#${_(e)}`,enabled:o,position:null!=u?u:e,distributionTypes:null!=c?c:[],limit:null!=r?r:100,height:null!=d?d:100,offset:null!=f?f:200,requireImage:l,rec:a,theme:"dark"===s?"dark":"light",advertoryTheme:null==n?void 0:n.advertoryTheme}},F=(e,u,f)=>i(void 0,void 0,void 0,function*(){var v;const{placements:m,pageContext:{deviceType:g}}=t.get();n(`rendering finn blink ad for ${e}`);const h=o(e),p=m[g].find(e=>e.targetId===h),k=E(e,null==p?void 0:p.finnBlink);if(!(null==k?void 0:k.enabled))return n(`Finn blink is not enabled on placement: ${e}`),f&&f(e),void y(e);if((e=>{var n;const i=_(e),t=document.querySelector(`[id^="${i}"]`);return!!(null===(n=null==t?void 0:t.classList)||void 0===n?void 0:n.contains("finn"))})(e))return void n(`Finn blink already loaded ${e}`);const{publisher:w,countryCode:$,finnBlink:I}=u,{sdkPayload:{userId:C,uuid:F,channel:N,theme:T}={}}=null!=I?I:{},A=null!=N?N:`${w}.${$}`,q=(e=>{if(!e){const e=l();return null!=e?e:""}return e})(C),O="dark"===T?"dark":"light";try{const e=yield i(void 0,void 0,void 0,function*(){const{finnBlink:{identifierUrl:e}={}}=t.get(),n=S.get(j),i=s(a);if(!e||i)return"";if(!n){const n=yield c.get(e,{credentials:"include"}),{finn_blink_id:i}=n;if(!i)throw new Error("getFinnBlinkIdentifier: No finn_blink_id found");return S.set(j,i),i}return n}),n=yield r(),o=(null===(v=null==p?void 0:p.finnBlink)||void 0===v?void 0:v.useNewConstructor)?B:x;yield o(Object.assign(Object.assign({},k),{channel:A,id:q,userId:n,hashed_email:e,theme:O,uuid:F})).then(()=>{b(k.selector.replace("#",""),k.advertoryTheme)})}catch(i){n(`Finn blink error ${i}`),f&&f(e),!f&&d(e),y(e)}}),N=()=>i(void 0,void 0,void 0,function*(){const{tcf:e,pageContext:{isMobileApp:i,countryCode:o}}=t.get();return!!(yield f(e,i,o,"finn-blink"))||(n("Skip loading finn blink ad due to missing TCF consent."),!1)}),T=(e,o,r,l)=>i(void 0,void 0,void 0,function*(){const{pageContext:{isMobileApp:i}}=t.get();if(n(`loadFinnBlinkAd: loading finn blink ad for ${e}`),!(yield N())||i)return r&&r(e),y(e),void(!r&&d(e));try{yield $(I)}catch(e){console.error(e)}yield F(e,o,r),l&&l()}),A=(e,i)=>{var t;(n(`Appending ${i.id} after ${e.id}`),e.parentElement&&(t=e.parentElement,!Array.from(t.children).some(e=>e.classList.contains("advertory-finn-blink-wrapper"))))?(e.parentElement.style.display="none",e.parentElement.insertAdjacentElement("afterend",i)):n(`Cannot perform afterend on: ${e.id}`)},q=(e,o)=>i(void 0,void 0,void 0,function*(){var i,r;if(!o)return;const{replacementConfig:d}=o,l=null===(i=null==d?void 0:d.adsToReplace)||void 0===i?void 0:i[e],s=null===(r=null==d?void 0:d.sizes)||void 0===r?void 0:r[e];v()&&l&&s&&o.enabled?(yield N())&&(yield $(I),l.forEach(([e,i])=>{const o=document.querySelector(`[id^="${e}"]`);if(!o)return;const r=(e=>{const{siteSpecificConfig:{publisherClassName:i}={}}=t.get(),o=document.createElement("div"),r=document.createElement("div");return r.id=e,o.appendChild(r),g(i,r,h.FINN_BLINK),n(`Creating blink container for: ${e}`),o})(i);(e=>{n(`Hiding old ad container: ${e.id}`),e.style.setProperty("display","none","important")})(o),A(o,r),o.dataset.finnBlinkId=i,m().withFullAdsChain(e)})):n(`Finn blink configuration is incorrect: ${JSON.stringify(d)}`)}),O=e=>document.querySelector(`#${e}`),P=e=>i(void 0,void 0,void 0,function*(){if(!e.length)return;const{appearanceConfig:n,pageContext:{deviceType:i}}=t.get(),o=null==n?void 0:n.defaultThreshold[i];for(const n of e){const{requestThreshold:e,targetId:i}=n,t=O(i);t&&(yield p(t,null!=e?e:o))}});export{P as handleFinnBlinkOnlyPlacements,T as loadFinnBlinkAd,q as replaceAdsWithFinnBlink};
|