@schibsted/advertory 3.17.3 → 3.18.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (460) hide show
  1. package/ad-native/cjs/index.d.ts +6 -1
  2. package/ad-native/cjs/index.js +1 -1
  3. package/ad-native/es/index.d.ts +6 -1
  4. package/ad-native/es/index.js +1 -1
  5. package/aftenposten/cjs/index.d.ts +25 -4
  6. package/aftenposten/cjs/index.js +1 -1
  7. package/aftenposten/es/_auto-entry_aftenposten-DNQJWDRJ.js +1 -0
  8. package/aftenposten/es/{events-BakZyPiF.js → events-CrUg0OPQ.js} +1 -1
  9. package/aftenposten/es/{index-DP0BbbWJ.js → index-B88se93R.js} +1 -1
  10. package/aftenposten/es/{index-B0weyrUI.js → index-B8H4adn8.js} +1 -1
  11. package/aftenposten/es/{index-DmAryKai.js → index-Baw9qoIS.js} +1 -1
  12. package/aftenposten/es/{index-DE2eFbE4.js → index-CRmEgEA-.js} +1 -1
  13. package/aftenposten/es/{index-Y61-K0-j.js → index-CukHpBrP.js} +1 -1
  14. package/aftenposten/es/{index-Ci5Fq3pY.js → index-D32eGxZe.js} +1 -1
  15. package/aftenposten/es/{index-PdNwftJA.js → index-DkODCj7Y.js} +1 -1
  16. package/aftenposten/es/{index-BqtiIE9j.js → index-oxCgGc0x.js} +1 -1
  17. package/aftenposten/es/index.d.ts +25 -4
  18. package/aftenposten/es/index.js +1 -1
  19. package/aftenposten/es/{styles-DXaafc97.js → styles-B4tTww6V.js} +1 -1
  20. package/aftenposten/es/{styles-DbkR_81Z.js → styles-C2cUV2b9.js} +1 -1
  21. package/aftenposten/es/{styles-BP8RnxXT.js → styles-CnQw6LZA.js} +1 -1
  22. package/aftenposten/es/{styles-DCGX00AR.js → styles-D5ApGFNI.js} +1 -1
  23. package/aftenposten/es/{styles-BMgTMPVA.js → styles-DHu1uaqZ.js} +1 -1
  24. package/aftenposten/es/{styles-Dc-23vIm.js → styles-DOKeZ3h-.js} +1 -1
  25. package/aftenposten/es/{styles-fSCaFYq3.js → styles-DU53ed9M.js} +1 -1
  26. package/aftenposten/es/{styles-Cnb69FPt.js → styles-D_6_RmQo.js} +1 -1
  27. package/aftenposten/es/{styles-B3DQSVEX.js → styles-De8j1a-R.js} +1 -1
  28. package/aftenposten/es/{styles-w7N9sIkQ.js → styles-oO_QUZ2K.js} +1 -1
  29. package/aftenposten/es/{styles-pDM1TuiG.js → styles-te1Pc83x.js} +1 -1
  30. package/aftenpostenv2/es/_auto-entry_aftenpostenv2-BtdjJBRi.js +1 -0
  31. package/aftenpostenv2/es/{events-vFxFcBFY.js → events-BrKUU6S-.js} +1 -1
  32. package/aftenpostenv2/es/{index-CE3zyO-s.js → index-B3eSx0AF.js} +1 -1
  33. package/aftenpostenv2/es/{index-BNsm3sza.js → index-Bva5GG_A.js} +1 -1
  34. package/aftenpostenv2/es/{index-bu82MskF.js → index-DLyPNdxl.js} +1 -1
  35. package/{aftonbladetv2/es/index-BVirA6E3.js → aftenpostenv2/es/index-DSAe15TH.js} +1 -1
  36. package/aftenpostenv2/es/{index-BzIPIQlR.js → index-DYl7sSG_.js} +1 -1
  37. package/aftenpostenv2/es/{index-C6o6H3rD.js → index-Do7nyVpB.js} +1 -1
  38. package/aftenpostenv2/es/{index-DPqkphHW.js → index-dOfoy9xz.js} +1 -1
  39. package/aftenpostenv2/es/{index-BORfNCfl.js → index-ynKvMWyD.js} +1 -1
  40. package/aftenpostenv2/es/index.d.ts +25 -4
  41. package/aftenpostenv2/es/index.js +1 -1
  42. package/aftenpostenv2/es/{styles-CrKxUXak.js → styles-44Ytvc9u.js} +1 -1
  43. package/aftenpostenv2/es/{styles-CfDUxRlT.js → styles-BJBUx_yM.js} +1 -1
  44. package/aftenpostenv2/es/{styles-D9mUlhzN.js → styles-Bdvoy-5V.js} +1 -1
  45. package/aftenpostenv2/es/{styles-DGYGS77o.js → styles-BukZbfMI.js} +1 -1
  46. package/aftenpostenv2/es/{styles-Dod5Pact.js → styles-CArxNqcE.js} +1 -1
  47. package/aftenpostenv2/es/{styles-CpTRDnEr.js → styles-CkIPdN9M.js} +1 -1
  48. package/aftenpostenv2/es/{styles-C3tA1qVG.js → styles-Cp2Dp8Rx.js} +1 -1
  49. package/aftenpostenv2/es/{styles-DSZABaqe.js → styles-DsNPVIp7.js} +1 -1
  50. package/aftenpostenv2/es/{styles-C9KcvIrm.js → styles-DyvLGuPw.js} +1 -1
  51. package/aftenpostenv2/es/{styles-Bo1Osfh2.js → styles-ZLshTJTG.js} +1 -1
  52. package/aftenpostenv2/es/{styles-Bv3fC79e.js → styles-jtekW9Qf.js} +1 -1
  53. package/aftonbladet/cjs/index.d.ts +25 -4
  54. package/aftonbladet/cjs/index.js +1 -1
  55. package/aftonbladet/es/_auto-entry_aftonbladet-CznwHJ9L.js +1 -0
  56. package/aftonbladet/es/{events-CllJmzBm.js → events-DJJwehoG.js} +1 -1
  57. package/aftonbladet/es/{index-DxCSaps1.js → index-BMlpU8aw.js} +1 -1
  58. package/aftonbladet/es/{index-CQZ4fqal.js → index-BTr2EHBG.js} +1 -1
  59. package/aftonbladet/es/{index-CFu2vZ67.js → index-BfGlK5AK.js} +1 -1
  60. package/aftonbladet/es/{index-BMrgDbpw.js → index-C7WHdqMB.js} +1 -1
  61. package/aftonbladet/es/{index-CNg6LTKO.js → index-CcK3t2zJ.js} +1 -1
  62. package/aftonbladet/es/{index-BtWKibaA.js → index-DHQi_Gb5.js} +1 -1
  63. package/aftonbladet/es/{index-C1IqSowz.js → index-DX1V8TfP.js} +1 -1
  64. package/aftonbladet/es/{index-DSWRH1Jg.js → index-L7Igeo8s.js} +1 -1
  65. package/aftonbladet/es/index.d.ts +25 -4
  66. package/aftonbladet/es/index.js +1 -1
  67. package/aftonbladet/es/{styles-Ds_pdjCT.js → styles-B24gjaYN.js} +1 -1
  68. package/aftonbladet/es/{styles-DajJqIJ6.js → styles-B8-C3HbP.js} +1 -1
  69. package/aftonbladet/es/{styles-D9Tu4mQ5.js → styles-Bs-L9RIM.js} +1 -1
  70. package/aftonbladet/es/{styles-BaT7xTNZ.js → styles-BwQI8Har.js} +1 -1
  71. package/aftonbladet/es/{styles-CYGn0uwQ.js → styles-C2KNA6_Q.js} +1 -1
  72. package/aftonbladet/es/{styles-w-g-y6lI.js → styles-DpD1yUu5.js} +1 -1
  73. package/aftonbladet/es/{styles-DSuXLA-G.js → styles-Du4kYdG3.js} +1 -1
  74. package/aftonbladetv2/es/_auto-entry_aftonbladetv2-Cuo_y3Oe.js +1 -0
  75. package/aftonbladetv2/es/{events-BTQYlE4z.js → events-pCNuOORU.js} +1 -1
  76. package/aftonbladetv2/es/{index-DB2zWF2S.js → index-BG9zfrXp.js} +1 -1
  77. package/{aftenpostenv2/es/index-6k3Y32Fw.js → aftonbladetv2/es/index-CG-_IAXO.js} +1 -1
  78. package/aftonbladetv2/es/{index-DLKbIJ-6.js → index-ChI1Xtav.js} +1 -1
  79. package/aftonbladetv2/es/{index-C5NPR1-m.js → index-DZF6xWvX.js} +1 -1
  80. package/aftonbladetv2/es/{index-BVz8_dGm.js → index-Df0qhN5Y.js} +1 -1
  81. package/aftonbladetv2/es/{index-CI4mHGgl.js → index-DmNGezFs.js} +1 -1
  82. package/aftonbladetv2/es/{index-DKIljxtC.js → index-FxbhCpIm.js} +1 -1
  83. package/aftonbladetv2/es/{index-DGryPq5p.js → index-nAn7C_ww.js} +1 -1
  84. package/aftonbladetv2/es/index.d.ts +25 -4
  85. package/aftonbladetv2/es/index.js +1 -1
  86. package/aftonbladetv2/es/{styles-BhGxCZKJ.js → styles-3aKR0OYZ.js} +1 -1
  87. package/aftonbladetv2/es/{styles-LIJqt1Fs.js → styles-BPm6_Tyf.js} +1 -1
  88. package/aftonbladetv2/es/{styles-DNvKyAG2.js → styles-Duqf6IZA.js} +1 -1
  89. package/aftonbladetv2/es/{styles-BHjBufYm.js → styles-DzMy_ylE.js} +1 -1
  90. package/aftonbladetv2/es/{styles-CtZYGlVa.js → styles-WUl2O9SJ.js} +1 -1
  91. package/aftonbladetv2/es/{styles-Dm48yxHj.js → styles-m7_3GfZS.js} +1 -1
  92. package/aftonbladetv2/es/{styles-BuDgf6Qh.js → styles-xrODYqc8.js} +1 -1
  93. package/brandmetrics/cjs/index.js +1 -1
  94. package/brandmetrics/es/index.js +1 -1
  95. package/bt/cjs/index.d.ts +25 -4
  96. package/bt/cjs/index.js +1 -1
  97. package/bt/es/_auto-entry_bt-CZB9FTXD.js +1 -0
  98. package/bt/es/{events-QdGrCsME.js → events-DE_uZlA1.js} +1 -1
  99. package/bt/es/{index-BNwzTf_4.js → index-B0a_Oa4i.js} +1 -1
  100. package/bt/es/{index-DE5oE3LU.js → index-CODK_zJ9.js} +1 -1
  101. package/bt/es/{index-CbsaLJJs.js → index-CSofW9eD.js} +1 -1
  102. package/bt/es/{index-CWyqinTF.js → index-Cd2KH2u-.js} +1 -1
  103. package/bt/es/{index-BPq3-G1u.js → index-Dr3GcIfK.js} +1 -1
  104. package/{sa/es/index-sAZnIVZD.js → bt/es/index-Du1q8PZU.js} +1 -1
  105. package/bt/es/{index-B4s9DYHb.js → index-PV9x_biL.js} +1 -1
  106. package/{sa/es/index-d0MDNCl0.js → bt/es/index-vemxQymc.js} +1 -1
  107. package/bt/es/index.d.ts +25 -4
  108. package/bt/es/index.js +1 -1
  109. package/bt/es/{styles-DUX9_U_G.js → styles-BM5_s_r7.js} +1 -1
  110. package/bt/es/{styles-C-HKDal6.js → styles-B_fc-kdO.js} +1 -1
  111. package/{vg/es/styles-DO48QaHN.js → bt/es/styles-BmrHJiYo.js} +1 -1
  112. package/bt/es/{styles-CGeziON4.js → styles-BscvjspQ.js} +1 -1
  113. package/bt/es/{styles-DpUy4TjI.js → styles-Bta58nId.js} +1 -1
  114. package/bt/es/{styles-K_Cy-GX8.js → styles-BvkvfBxv.js} +1 -1
  115. package/{sa/es/styles-BGNGJdjv.js → bt/es/styles-C9A3YE-k.js} +1 -1
  116. package/bt/es/{styles-Dz_mjOky.js → styles-CSxhZElM.js} +1 -1
  117. package/bt/es/{styles-B_CfTWpC.js → styles-D4NwmlBA.js} +1 -1
  118. package/bt/es/{styles-D0rpulrE.js → styles-imkAc2uq.js} +1 -1
  119. package/btv2/es/_auto-entry_btv2-jyP99ykN.js +1 -0
  120. package/{sav2/es/events--V9H3X-z.js → btv2/es/events-BqMvV7di.js} +1 -1
  121. package/btv2/es/{index-_1WEzNOh.js → index-B5UitQXo.js} +1 -1
  122. package/btv2/es/{index-DQCYe43A.js → index-C9BTFt3G.js} +1 -1
  123. package/btv2/es/{index-4ysd4A7K.js → index-CBJLiIfz.js} +1 -1
  124. package/btv2/es/{index-wU5-fkkY.js → index-CMZC7H8g.js} +1 -1
  125. package/{sav2/es/index-D4Hxkads.js → btv2/es/index-CNOhmWcU.js} +1 -1
  126. package/btv2/es/{index-p-Wu9qmN.js → index-DV0c6Xrq.js} +1 -1
  127. package/{omni/es/index-C3Q814r2.js → btv2/es/index-DpxleBMV.js} +1 -1
  128. package/btv2/es/{index-CYUq8h41.js → index-DxvAY5Lc.js} +1 -1
  129. package/btv2/es/index.d.ts +25 -4
  130. package/btv2/es/index.js +1 -1
  131. package/btv2/es/{styles-Bc9_7msJ.js → styles-B2feTcg_.js} +1 -1
  132. package/btv2/es/{styles-DAHadlhX.js → styles-BInms_h5.js} +1 -1
  133. package/btv2/es/{styles-B8bkA3_5.js → styles-BSPiAJfQ.js} +1 -1
  134. package/btv2/es/{styles-BwgZ6h4w.js → styles-CVY_OoAs.js} +1 -1
  135. package/{sav2/es/styles-WFP5Fozc.js → btv2/es/styles-CaJ8VnX_.js} +1 -1
  136. package/{sav2/es/styles-jXzGh7gC.js → btv2/es/styles-CkiWn-pK.js} +1 -1
  137. package/{sav2/es/styles-CpXnuTL4.js → btv2/es/styles-DTzc8iL0.js} +1 -1
  138. package/{vgv2/es/styles-DtKJ-J7F.js → btv2/es/styles-UQhKSng8.js} +1 -1
  139. package/btv2/es/{styles-DyFP9zsK.js → styles-x4cDdw2y.js} +1 -1
  140. package/common/cjs/index.js +1 -1
  141. package/common/es/index.js +1 -1
  142. package/e24/es/_auto-entry_e24-o2zJnnp7.js +1 -0
  143. package/e24/es/{events-CtniS6m3.js → events-DF8f8UTH.js} +1 -1
  144. package/e24/es/{index-CfS9YWLe.js → index-BQJbsM6e.js} +1 -1
  145. package/e24/es/{index-Ci-qNYB_.js → index-BeeAlBuD.js} +1 -1
  146. package/e24/es/{index-BM2r1wLq.js → index-BsmbZsXV.js} +1 -1
  147. package/e24/es/{index-DKfGdWTL.js → index-CP6Im7lE.js} +1 -1
  148. package/e24/es/{index-4Zm0Grmh.js → index-CYHnZe0J.js} +1 -1
  149. package/e24/es/{index-BHxQeiJc.js → index-Cmwd1gSI.js} +1 -1
  150. package/e24/es/{index-CIlYOp5N.js → index-Woi0QIyP.js} +1 -1
  151. package/e24/es/{index-C4omnW1M.js → index-v06i8ZMq.js} +1 -1
  152. package/e24/es/index.d.ts +25 -4
  153. package/e24/es/index.js +1 -1
  154. package/{tv4/es/styles-BAxYdJA1.js → e24/es/styles-BQnfcenF.js} +1 -1
  155. package/e24/es/{styles-DcGRyDQP.js → styles-Bfd45Pjf.js} +1 -1
  156. package/e24/es/{styles-DzEznh_S.js → styles-BhEr5ezW.js} +1 -1
  157. package/e24/es/{styles-DmMYkAFs.js → styles-Bz0tFWFB.js} +1 -1
  158. package/e24/es/{styles-D7w8P_5v.js → styles-C4GttOVW.js} +1 -1
  159. package/e24/es/{styles-CezDMrIZ.js → styles-CElrg8qK.js} +1 -1
  160. package/e24/es/{styles-BHKszP6X.js → styles-Cmrihndl.js} +1 -1
  161. package/e24/es/{styles-CzB5N6Nl.js → styles-D3LLw4RS.js} +1 -1
  162. package/e24/es/{styles-DnRAFVxv.js → styles-D3vWLz7X.js} +1 -1
  163. package/e24/es/{styles-SNZbYMgv.js → styles-DjdLwJ-N.js} +1 -1
  164. package/e24/es/{styles-C-oO0oDe.js → styles-SI2Tr_RP.js} +1 -1
  165. package/e24/es/{styles-CYk14rdS.js → styles-jZ8udc-A.js} +1 -1
  166. package/editory/cjs/index.d.ts +6 -1
  167. package/editory/es/index.d.ts +6 -1
  168. package/fotbollskanalen/cjs/index.d.ts +25 -4
  169. package/fotbollskanalen/cjs/index.js +1 -1
  170. package/fotbollskanalen/es/_auto-entry_fotbollskanalen-BoGkrwkH.js +1 -0
  171. package/fotbollskanalen/es/{events-BJ6mPaCc.js → events-XgL2a9Ad.js} +1 -1
  172. package/fotbollskanalen/es/{index-Cg7_oqDR.js → index-B4s9_MRH.js} +1 -1
  173. package/fotbollskanalen/es/{index-YD7CRD4F.js → index-Bb-DsC59.js} +1 -1
  174. package/fotbollskanalen/es/{index-CcCWGFRI.js → index-CABM14sH.js} +1 -1
  175. package/fotbollskanalen/es/{index-BMDVF1u1.js → index-CxQRsQ7s.js} +1 -1
  176. package/fotbollskanalen/es/{index-K_6o99m1.js → index-D3_ErBOr.js} +1 -1
  177. package/fotbollskanalen/es/{index-hYl9FgdN.js → index-D3vJg6of.js} +1 -1
  178. package/fotbollskanalen/es/{index-DCPogE5b.js → index-D5gs6mRS.js} +1 -1
  179. package/fotbollskanalen/es/{index-8KLTEqRi.js → index-uHEsJIAw.js} +1 -1
  180. package/fotbollskanalen/es/index.d.ts +25 -4
  181. package/fotbollskanalen/es/index.js +1 -1
  182. package/fotbollskanalen/es/{styles-D3eqs7xM.js → styles-5gUPsWW9.js} +1 -1
  183. package/fotbollskanalen/es/{styles-Cze8UsvM.js → styles-Be0tghxV.js} +1 -1
  184. package/fotbollskanalen/es/{styles-BDfacPqd.js → styles-Bvv8u7Ja.js} +1 -1
  185. package/fotbollskanalen/es/{styles-BsW1z6U1.js → styles-CoTOpYRX.js} +1 -1
  186. package/fotbollskanalen/es/{styles-2f9vh7tO.js → styles-hLRHR3gJ.js} +1 -1
  187. package/glimr/cjs/index.js +1 -1
  188. package/glimr/es/index.js +1 -1
  189. package/godt/cjs/index.d.ts +25 -4
  190. package/godt/cjs/index.js +1 -1
  191. package/kilkaya/cjs/index.d.ts +6 -1
  192. package/kilkaya/cjs/index.js +1 -1
  193. package/kilkaya/es/index.d.ts +6 -1
  194. package/kilkaya/es/index.js +1 -1
  195. package/klart/cjs/index.d.ts +25 -4
  196. package/klart/cjs/index.js +1 -1
  197. package/koket/cjs/index.d.ts +25 -4
  198. package/koket/cjs/index.js +1 -1
  199. package/koket/es/_auto-entry_koket-BITL2_K1.js +1 -0
  200. package/koket/es/{events-CJgWZC6E.js → events-CJe7o002.js} +1 -1
  201. package/koket/es/{index-CZ7fRUR1.js → index-Bj4wpTgt.js} +1 -1
  202. package/koket/es/{index-FpW7qdqo.js → index-CSA4jvBm.js} +1 -1
  203. package/koket/es/{index-Bc3NO9Mw.js → index-D2ikK49F.js} +1 -1
  204. package/koket/es/{index-DOXR-6vM.js → index-D76GM_Dq.js} +1 -1
  205. package/koket/es/{index-C2olyB1x.js → index-DUMFbWv2.js} +1 -1
  206. package/koket/es/{index-I63ib7qd.js → index-D_t1L0Jw.js} +1 -1
  207. package/koket/es/{index-B4K9iUVT.js → index-DnTZqSNs.js} +1 -1
  208. package/koket/es/{index-BO7-UQcf.js → index-Dxz_IhQv.js} +1 -1
  209. package/koket/es/index.d.ts +25 -4
  210. package/koket/es/index.js +1 -1
  211. package/koket/es/{styles-BwESZmQi.js → styles-B5AKPQcZ.js} +1 -1
  212. package/{svdv2/es/styles-CzsWVNYE.js → koket/es/styles-CvVaiJbk.js} +1 -1
  213. package/koket/es/{styles-BBI31SR8.js → styles-D7VFY5X2.js} +1 -1
  214. package/{svdv2/es/styles-CGWD917e.js → koket/es/styles-If56BndQ.js} +1 -1
  215. package/koket/es/{styles-BRxC9raX.js → styles-_ywNTArC.js} +1 -1
  216. package/minmote/cjs/index.d.ts +25 -4
  217. package/minmote/cjs/index.js +1 -1
  218. package/mtv/es/_auto-entry_mtv-D53dvC1i.js +1 -0
  219. package/mtv/es/{index--OizxMLO.js → index-BZztN2dU.js} +1 -1
  220. package/mtv/es/index-DIuXGid2.js +1 -0
  221. package/mtv/es/index-DT8GWwa8.js +1 -0
  222. package/mtv/es/{index-B3fi7Kjz.js → index-TbvSGRB5.js} +1 -1
  223. package/mtv/es/index.d.ts +27 -6
  224. package/mtv/es/index.js +1 -1
  225. package/{svd/es/styles-Ili64SUo.js → mtv/es/styles-BpMDR0GA.js} +1 -1
  226. package/omni/es/_auto-entry_omni-BVChM78_.js +1 -0
  227. package/omni/es/{events-D8oXnK9A.js → events-Dcpm5emQ.js} +1 -1
  228. package/omni/es/{index-74zEx__y.js → index-B5L9LdZe.js} +1 -1
  229. package/omni/es/{index-oYzDmTix.js → index-ChmcSFS1.js} +1 -1
  230. package/omni/es/{index-wkJKThPL.js → index-D8Du6qKy.js} +1 -1
  231. package/omni/es/{index-CQHXVyOc.js → index-DEd1G3aM.js} +1 -1
  232. package/omni/es/{index-B1CsqT1v.js → index-DS_3fMAL.js} +1 -1
  233. package/omni/es/{index-Do_Anxwk.js → index-DUL7FQvO.js} +1 -1
  234. package/{btv2/es/index-BxQ9QWgL.js → omni/es/index-DoPgNVgH.js} +1 -1
  235. package/omni/es/{index-DoI3bFIC.js → index-fF0V2I_V.js} +1 -1
  236. package/omni/es/index.d.ts +25 -4
  237. package/omni/es/index.js +1 -1
  238. package/omni/es/{styles-Dh_pACB9.js → styles-BdEe5Ynl.js} +1 -1
  239. package/omni/es/{styles-DmYIWMWw.js → styles-CW92yIpD.js} +1 -1
  240. package/omni/es/{styles-QXlcLvKz.js → styles-kHuAMSyr.js} +1 -1
  241. package/package.json +1 -1
  242. package/pent/cjs/index.d.ts +25 -4
  243. package/pent/cjs/index.js +1 -1
  244. package/pulse/cjs/index.d.ts +8 -3
  245. package/pulse/cjs/index.js +1 -1
  246. package/pulse/es/index.d.ts +8 -3
  247. package/pulse/es/index.js +1 -1
  248. package/sa/cjs/index.d.ts +25 -4
  249. package/sa/cjs/index.js +1 -1
  250. package/sa/es/_auto-entry_sa-J8OfTxac.js +1 -0
  251. package/sa/es/{events-DJlxmoyQ.js → events-C3BMo9Uo.js} +1 -1
  252. package/sa/es/{index-BBpzoo6q.js → index-CawIeUqK.js} +1 -1
  253. package/sa/es/{index-BQQH0v-V.js → index-Cto0_xo8.js} +1 -1
  254. package/sa/es/{index-DdxQE4LO.js → index-CuD4xNFU.js} +1 -1
  255. package/sa/es/{index-D-jh7EcB.js → index-Cx1T5nb9.js} +1 -1
  256. package/{bt/es/index-BEn9Oc7O.js → sa/es/index-DFBOTrjK.js} +1 -1
  257. package/sa/es/{index-CrWFSHI0.js → index-Du-rhVYT.js} +1 -1
  258. package/{bt/es/index-5orz6iDE.js → sa/es/index-DxUp0ZXa.js} +1 -1
  259. package/sa/es/{index-CwXblevG.js → index-fKdGZ7GD.js} +1 -1
  260. package/sa/es/index.d.ts +25 -4
  261. package/sa/es/index.js +1 -1
  262. package/sa/es/{styles-BqoJN48z.js → styles-B3bE3oeO.js} +1 -1
  263. package/sa/es/{styles-COBYxap6.js → styles-BMtPMhSP.js} +1 -1
  264. package/sa/es/{styles-BbYBBoEu.js → styles-BvRBg64g.js} +1 -1
  265. package/sa/es/{styles-CsqrQMUa.js → styles-CL6zmM-h.js} +1 -1
  266. package/{vg/es/styles-CA2O0zNt.js → sa/es/styles-CcFDd5SA.js} +1 -1
  267. package/{vg/es/styles-BvJq1DbU.js → sa/es/styles-CiDiUkgA.js} +1 -1
  268. package/sa/es/{styles-dtFf-QzC.js → styles-DjWc-g-U.js} +1 -1
  269. package/sa/es/{styles-CxMgRiB0.js → styles-DnI_syRT.js} +1 -1
  270. package/sa/es/{styles-CZbGc4JN.js → styles-G5IDTsth.js} +1 -1
  271. package/sa/es/{styles-CR2l0VPi.js → styles-KY5KJOnA.js} +1 -1
  272. package/sav2/es/_auto-entry_sav2-nmDgZMyM.js +1 -0
  273. package/{tvnu/es/events-CYIyY_O8.js → sav2/es/events-BM5FbEtd.js} +1 -1
  274. package/sav2/es/{index-DS2guFzB.js → index-BMjVrYV7.js} +1 -1
  275. package/sav2/es/{index-DVdqEzgu.js → index-BgbkIwOq.js} +1 -1
  276. package/{tvnu/es/index-D53Lfqpz.js → sav2/es/index-C5WrRc-b.js} +1 -1
  277. package/sav2/es/{index-BBAAh5bR.js → index-CFCEtWva.js} +1 -1
  278. package/sav2/es/{index-DU69N01e.js → index-CXNd1xW1.js} +1 -1
  279. package/sav2/es/{index-BHVPw0uA.js → index-CqZ5h5be.js} +1 -1
  280. package/sav2/es/{index-Cfn4EpE3.js → index-CwfU7lhW.js} +1 -1
  281. package/{tvnu/es/index-n2OqZE3x.js → sav2/es/index-Heoe_AIr.js} +1 -1
  282. package/sav2/es/index.d.ts +25 -4
  283. package/sav2/es/index.js +1 -1
  284. package/{btv2/es/styles-DucQJHxT.js → sav2/es/styles-9CZX0c_O.js} +1 -1
  285. package/sav2/es/{styles-C4-rOm8X.js → styles-B4ork19U.js} +1 -1
  286. package/sav2/es/{styles-CEF-0mza.js → styles-BKirbOEP.js} +1 -1
  287. package/{vgv2/es/styles-BZNQ1vE8.js → sav2/es/styles-C30jV7ky.js} +1 -1
  288. package/{vgv2/es/styles-BZDzqgQY.js → sav2/es/styles-CK4Np9Dz.js} +1 -1
  289. package/sav2/es/{styles-F7jUJjJn.js → styles-CjU4l-SU.js} +1 -1
  290. package/sav2/es/{styles-CFf2Ku9c.js → styles-DmiRDUDx.js} +1 -1
  291. package/{btv2/es/styles-D8oEO915.js → sav2/es/styles-Jp_tDrzp.js} +1 -1
  292. package/sav2/es/{styles-ZhK4-day.js → styles-eYX3EHRu.js} +1 -1
  293. package/svd/cjs/index.d.ts +25 -4
  294. package/svd/cjs/index.js +1 -1
  295. package/svd/es/_auto-entry_svd-BOBXC1NB.js +1 -0
  296. package/svd/es/{events-CXoatmpv.js → events-C1VnSaGH.js} +1 -1
  297. package/svd/es/{index-BMn-d7Z_.js → index-B0d8xAfM.js} +1 -1
  298. package/svd/es/{index-BXR4R0DG.js → index-B3Ok5Zxi.js} +1 -1
  299. package/svd/es/{index-ntuGyR2_.js → index-C0zYrhS8.js} +1 -1
  300. package/{tv4/es/index-BONgzmFt.js → svd/es/index-CB5fxcjW.js} +1 -1
  301. package/svd/es/{index-EJwoMYuf.js → index-CPMzs4OC.js} +1 -1
  302. package/svd/es/{index-UhMbVarR.js → index-CbwiRx-g.js} +1 -1
  303. package/svd/es/{index-KSUkz5Ec.js → index-DkAKiA6e.js} +1 -1
  304. package/svd/es/{index-DonfcwIE.js → index-t-VmRR6x.js} +1 -1
  305. package/svd/es/index.d.ts +25 -4
  306. package/svd/es/index.js +1 -1
  307. package/svd/es/{styles-BsUvk2WV.js → styles-4soJ7u-x.js} +1 -1
  308. package/{mtv/es/styles-Cfow3icP.js → svd/es/styles-B62zkTco.js} +1 -1
  309. package/svd/es/{styles-2098DKtE.js → styles-B6yIVgo2.js} +1 -1
  310. package/svd/es/{styles-CzzKpKOY.js → styles-C3IWf8aj.js} +1 -1
  311. package/svd/es/{styles-xB_mBaye.js → styles-CYqkTmPz.js} +1 -1
  312. package/svd/es/{styles-B6N0NAK1.js → styles-CtcLRY0n.js} +1 -1
  313. package/svd/es/{styles-BHFhjoVx.js → styles-Dul2qFeg.js} +1 -1
  314. package/svdv2/es/_auto-entry_svdv2-C-1qQWmF.js +1 -0
  315. package/svdv2/es/{events-rieoT5HD.js → events-Dd2yn2PL.js} +1 -1
  316. package/svdv2/es/{index-BSzaY9HS.js → index-B1Msxa1O.js} +1 -1
  317. package/svdv2/es/{index-j0sWy6XQ.js → index-C_Hy2D6G.js} +1 -1
  318. package/svdv2/es/{index-B7VeIIa1.js → index-CgvIVueE.js} +1 -1
  319. package/svdv2/es/{index-DB2h1Swy.js → index-Cm2XNnkR.js} +1 -1
  320. package/svdv2/es/{index-B82Dt7Y9.js → index-D7ABApW9.js} +1 -1
  321. package/svdv2/es/{index-DU1mD5yI.js → index-DjDdQPHz.js} +1 -1
  322. package/svdv2/es/{index-C6jaff-U.js → index-ZVx6osQq.js} +1 -1
  323. package/svdv2/es/{index-SZHJspYo.js → index-vayJTGli.js} +1 -1
  324. package/svdv2/es/index.d.ts +25 -4
  325. package/svdv2/es/index.js +1 -1
  326. package/svdv2/es/{styles-BPhm6VCm.js → styles-B0JQvBQt.js} +1 -1
  327. package/svdv2/es/{styles-CaHsrPmd.js → styles-BGCZCbcv.js} +1 -1
  328. package/svdv2/es/{styles-c1jdK7Es.js → styles-Bz8f24X2.js} +1 -1
  329. package/svdv2/es/{styles-DR0vrRzH.js → styles-CEborJgX.js} +1 -1
  330. package/svdv2/es/{styles-BPY37MKL.js → styles-CqjB4SkE.js} +1 -1
  331. package/{koket/es/styles-CH1-lHKr.js → svdv2/es/styles-DQ_w0XU-.js} +1 -1
  332. package/{koket/es/styles-Dnaf1zGg.js → svdv2/es/styles-XF3Es5pU.js} +1 -1
  333. package/svdv2/es/{styles-CPISTY9o.js → styles-Xcws2oR2.js} +1 -1
  334. package/tek/cjs/index.d.ts +25 -4
  335. package/tek/cjs/index.js +1 -1
  336. package/tv4/cjs/index.d.ts +25 -4
  337. package/tv4/cjs/index.js +1 -1
  338. package/tv4/es/_auto-entry_tv4-DrT58fo2.js +1 -0
  339. package/{mtv/es/events-GqbgSzdx.js → tv4/es/events-CA_qpiiH.js} +1 -1
  340. package/tv4/es/{index-kMw82AyQ.js → index-1faQFOdm.js} +1 -1
  341. package/tv4/es/{index-BPFUDpOI.js → index-B4Kh7kpG.js} +1 -1
  342. package/{svd/es/index-BfA2xLfw.js → tv4/es/index-BM8z6Ixi.js} +1 -1
  343. package/tv4/es/{index-DsO94JLJ.js → index-BsfijWz0.js} +1 -1
  344. package/tv4/es/{index-DP-cpF3Z.js → index-CuR9OppE.js} +1 -1
  345. package/tv4/es/{index-But-X6-M.js → index-DGUaN9RI.js} +1 -1
  346. package/tv4/es/{index-Ba-gl0fE.js → index-DJfxqylY.js} +1 -1
  347. package/tv4/es/{index-CLlZ_nvb.js → index-iFXY2RDG.js} +1 -1
  348. package/tv4/es/index.d.ts +25 -4
  349. package/tv4/es/index.js +1 -1
  350. package/{e24/es/styles-U3ev4vZ7.js → tv4/es/styles-B-tvI5HI.js} +1 -1
  351. package/tv4/es/{styles-BOhTEsfH.js → styles-BjfL5pmp.js} +1 -1
  352. package/tv4/es/{styles-DyGJ5lUA.js → styles-CMOqiTdr.js} +1 -1
  353. package/tv4/es/{styles-CiQyajrm.js → styles-DYdmZGFU.js} +1 -1
  354. package/tv4/es/{styles-ClhVmvvn.js → styles-DwosxoLg.js} +1 -1
  355. package/tvnu/cjs/index.d.ts +25 -4
  356. package/tvnu/cjs/index.js +1 -1
  357. package/tvnu/es/_auto-entry_tvnu-BN6qNwOY.js +1 -0
  358. package/{btv2/es/events-D6P6hD23.js → tvnu/es/events-Dn2KJr0j.js} +1 -1
  359. package/tvnu/es/{index-CgR2vaLd.js → index-BTKg4emk.js} +1 -1
  360. package/tvnu/es/{index-DLpVVZf_.js → index-BjEOq_zN.js} +1 -1
  361. package/tvnu/es/{index-Ca_3Ni0n.js → index-C-17pOoR.js} +1 -1
  362. package/{btv2/es/index-bR4EjUyv.js → tvnu/es/index-C3LNZYqg.js} +1 -1
  363. package/tvnu/es/{index-DPea4ItP.js → index-CCfVOFWB.js} +1 -1
  364. package/tvnu/es/{index-pN42MHkO.js → index-CR8jWo2c.js} +1 -1
  365. package/{sav2/es/index-BgJctlWz.js → tvnu/es/index-DFmrpUUo.js} +1 -1
  366. package/tvnu/es/{index-DjWYwuQw.js → index-vd3IGMiX.js} +1 -1
  367. package/tvnu/es/index.d.ts +25 -4
  368. package/tvnu/es/index.js +1 -1
  369. package/{btv2/es/styles-CtL-yllF.js → tvnu/es/styles-D12Q2zLD.js} +1 -1
  370. package/tvnu/es/{styles-Blkyvqh4.js → styles-D3x4jf-j.js} +1 -1
  371. package/tvnu/es/{styles-BYv3c9cw.js → styles-DQHdlPhl.js} +1 -1
  372. package/tvnu/es/{styles-tV1z1GZ_.js → styles-DWXHDRlP.js} +1 -1
  373. package/types/index.d.ts +6 -1
  374. package/vg/cjs/index.d.ts +25 -4
  375. package/vg/cjs/index.js +1 -1
  376. package/vg/es/_auto-entry_vg-Trd8pvQs.js +1 -0
  377. package/vg/es/{events-BqQucSf6.js → events-BfqUtz1_.js} +1 -1
  378. package/vg/es/{index-DAAjvi1C.js → index-BJB7jY6x.js} +1 -1
  379. package/vg/es/{index-CsWAXOq-.js → index-CDqvLPgT.js} +1 -1
  380. package/vg/es/{index-bCzcmyfy.js → index-CTaICLSw.js} +1 -1
  381. package/vg/es/{index-C2UHtfj_.js → index-C_JV8JF_.js} +1 -1
  382. package/vg/es/{index-BcaL6jsh.js → index-CuWR3e5A.js} +1 -1
  383. package/vg/es/{index-DX5agaGX.js → index-DeQUkpYq.js} +1 -1
  384. package/vg/es/{index-DCWH5HnK.js → index-DkPggcF3.js} +1 -1
  385. package/vg/es/{index-BSPaei4i.js → index-x8PwNet6.js} +1 -1
  386. package/vg/es/index.d.ts +25 -4
  387. package/vg/es/index.js +1 -1
  388. package/vg/es/{styles-B0hflLDs.js → styles--yOXPdjG.js} +1 -1
  389. package/{bt/es/styles-Djjc7UzY.js → vg/es/styles-1n8j2EjV.js} +1 -1
  390. package/{sa/es/styles-CwbbNFdE.js → vg/es/styles-3vc-o84P.js} +1 -1
  391. package/vg/es/{styles-TZp4Js-a.js → styles-B-9EIsrQ.js} +1 -1
  392. package/vg/es/{styles-DFInM_03.js → styles-BmpqqoHg.js} +1 -1
  393. package/vg/es/{styles-CoLiVlSG.js → styles-BsguFks5.js} +1 -1
  394. package/vg/es/{styles-Ce4iBXFA.js → styles-CC05R_3-.js} +1 -1
  395. package/vg/es/{styles-Ddh-HkO8.js → styles-CNRmBQ4c.js} +1 -1
  396. package/vg/es/{styles-CIvA8Doz.js → styles-CVbJvaly.js} +1 -1
  397. package/vg/es/{styles-CdpkwzOZ.js → styles-CgOAOEfA.js} +1 -1
  398. package/{bt/es/styles-B188diER.js → vg/es/styles-CzX1ajop.js} +1 -1
  399. package/vg/es/{styles-CYzyLEV0.js → styles-DK6OtLji.js} +1 -1
  400. package/vg/es/{styles-CSIB_T1c.js → styles-Di-6gMqt.js} +1 -1
  401. package/vg/es/{styles-CciYrbs8.js → styles-L2IpsHbq.js} +1 -1
  402. package/vg/es/{styles-D9qbS1Gw.js → styles-Q9SKc1Hh.js} +1 -1
  403. package/vg/es/{styles-C51lw1yU.js → styles-pTQEVgFw.js} +1 -1
  404. package/vgv2/es/_auto-entry_vgv2-B3OjjjK2.js +1 -0
  405. package/vgv2/es/{events-BMoajPYv.js → events-Bq8LUFIZ.js} +1 -1
  406. package/vgv2/es/{index-Ck1oE8Pa.js → index-BWIZzC2g.js} +1 -1
  407. package/vgv2/es/{index-DQGn1tXh.js → index-BgPYv31C.js} +1 -1
  408. package/vgv2/es/{index-DxSr_M00.js → index-Cqg9XYLx.js} +1 -1
  409. package/vgv2/es/{index-I-HW65_x.js → index-D57YFxL2.js} +1 -1
  410. package/vgv2/es/{index-OzkyZrFL.js → index-DG8kZFha.js} +1 -1
  411. package/vgv2/es/{index-BMvVZ3PU.js → index-DVRyKCSg.js} +1 -1
  412. package/vgv2/es/{index-CVGQqZVE.js → index-DYYNBjmC.js} +1 -1
  413. package/vgv2/es/{index-BAnN0RdP.js → index-MIhy6YLN.js} +1 -1
  414. package/vgv2/es/index.d.ts +25 -4
  415. package/vgv2/es/index.js +1 -1
  416. package/vgv2/es/styles-8OZXx9WD.js +1 -0
  417. package/vgv2/es/{styles-YZ88G27K.js → styles-BdY5gfHd.js} +1 -1
  418. package/vgv2/es/{styles-Cualb3_D.js → styles-BdeVHtB7.js} +1 -1
  419. package/vgv2/es/{styles--uVNPccL.js → styles-Bhz17umu.js} +1 -1
  420. package/vgv2/es/{styles-CtTqdZis.js → styles-C1IfNQfL.js} +1 -1
  421. package/{tvnu/es/styles-DgLNK3GP.js → vgv2/es/styles-CFJwqIst.js} +1 -1
  422. package/vgv2/es/{styles-wF0dHoty.js → styles-CQVrfUUl.js} +1 -1
  423. package/vgv2/es/{styles-DhnA4Y2g.js → styles-CTcizZ-Q.js} +1 -1
  424. package/vgv2/es/{styles-dPSL7ERU.js → styles-D6H8kUXu.js} +1 -1
  425. package/vgv2/es/{styles-V8Y9NY4R.js → styles-DOULAbPJ.js} +1 -1
  426. package/vgv2/es/{styles-DOZIdQKO.js → styles-DPSrcrqr.js} +1 -1
  427. package/vgv2/es/{styles-F0n6XlmZ.js → styles-DikRMMY4.js} +1 -1
  428. package/vgv2/es/{styles-BgSFy8jC.js → styles-Dn0aUcYr.js} +1 -1
  429. package/{btv2/es/styles-BIEV_UDm.js → vgv2/es/styles-NmqmsWTa.js} +1 -1
  430. package/{sav2/es/styles-DMF9Z1dt.js → vgv2/es/styles-ctQS7q-2.js} +1 -1
  431. package/vgv2/es/{styles-CCY1tyd6.js → styles-ridlIX7w.js} +1 -1
  432. package/video/cjs/index.js +1 -1
  433. package/video/es/index.js +1 -1
  434. package/aftenposten/es/_auto-entry_aftenposten-VdgcR_BE.js +0 -1
  435. package/aftenpostenv2/es/_auto-entry_aftenpostenv2-BIMCdj2e.js +0 -1
  436. package/aftonbladet/es/_auto-entry_aftonbladet-D2fIitz4.js +0 -1
  437. package/aftonbladetv2/es/_auto-entry_aftonbladetv2-3dTEWOlI.js +0 -1
  438. package/bt/es/_auto-entry_bt-CvnjeTKS.js +0 -1
  439. package/btv2/es/_auto-entry_btv2-Dvycsb0N.js +0 -1
  440. package/e24/es/_auto-entry_e24-EmoPFNdZ.js +0 -1
  441. package/fotbollskanalen/es/_auto-entry_fotbollskanalen-DntxanXt.js +0 -1
  442. package/koket/es/_auto-entry_koket-a4ea-7Qw.js +0 -1
  443. package/mtv/es/_auto-entry_mtv-DsuRsc1u.js +0 -1
  444. package/mtv/es/index-B83VUyBB.js +0 -1
  445. package/mtv/es/index-BnTnl5EG.js +0 -1
  446. package/mtv/es/index-D2XPbfTm.js +0 -1
  447. package/mtv/es/index-DN3cR0Fw.js +0 -1
  448. package/mtv/es/index-DTrcSpan.js +0 -1
  449. package/mtv/es/index-Dv15bwI7.js +0 -1
  450. package/omni/es/_auto-entry_omni-HSpRNCg1.js +0 -1
  451. package/sa/es/_auto-entry_sa-B3BT1vI-.js +0 -1
  452. package/sav2/es/_auto-entry_sav2-Ms7Jve07.js +0 -1
  453. package/svd/es/_auto-entry_svd-CuD9iF48.js +0 -1
  454. package/svdv2/es/_auto-entry_svdv2-1VQfx2m3.js +0 -1
  455. package/tv4/es/_auto-entry_tv4-CWqxLSel.js +0 -1
  456. package/tv4/es/events-D6xMM-17.js +0 -1
  457. package/tvnu/es/_auto-entry_tvnu-VQhBZ5ti.js +0 -1
  458. package/vg/es/_auto-entry_vg-DfuxvRye.js +0 -1
  459. package/vgv2/es/_auto-entry_vgv2-Bq8_SS3m.js +0 -1
  460. package/vgv2/es/styles-DDsDYtIG.js +0 -1
@@ -0,0 +1 @@
1
+ import"react/jsx-runtime";const e="0123456789abcdefghijklmnopqrstuvwxyz",t=(t=6)=>{if(t<=0)return"";let n="";for(let i=0;i<t;i++){n+=e[Math.floor(36*Math.random())]}return n},n=()=>{},i=new Promise(e=>{"undefined"!=typeof document&&document.prerendering?document.addEventListener("prerenderingchange",()=>e()):e()}),r=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})}),o={adRequested:n,adAvailable:n,adLoaded:n,adNoBid:n,adError:n,adCollapse:n,adRequestFailure:n,adBadRequest:n,adLoadedMediated:n,adNoBidMediated:n},s={SVD:"svd",VG:"vg",AFTENPOSTEN:"aftenposten",SA:"sa",BT:"bt",AFTONBLADET:"aftonbladet",E24:"e24",MINMOTE:"minmote",PENT:"pent",GODT:"godt",TEK:"tekno",KLART:"klart",TVNU:"tvnu",POLARIS:"polaris",KOKET:"koket",TV4:"tv4",FOTBOLLSKANALEN:"fotbollskanalen",OMNI:"omni",MTV:"mtv"},d={publisherClassName:s.MTV,classesToRemoveOnRefresh:[]};function a(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n}function l(e,t,n,i){return new(n||(n=Promise))(function(r,o){function s(e){try{a(i.next(e))}catch(e){o(e)}}function d(e){try{a(i.throw(e))}catch(e){o(e)}}function a(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,d)}a((i=i.apply(e,t||[])).next())})}function c(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var u,p;"function"==typeof SuppressedError&&SuppressedError;var v=c(function(){if(p)return u;p=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 i(e,t,i){return e.concat(t).map(function(e){return n(e,i)})}function r(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}(e))}function o(e,t){try{return t in e}catch(e){return!1}}function s(e,t,i){var s={};return i.isMergeableObject(e)&&r(e).forEach(function(t){s[t]=n(e[t],i)}),r(t).forEach(function(r){(function(e,t){return o(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,r)||(o(e,r)&&i.isMergeableObject(t[r])?s[r]=function(e,t){if(!t.customMerge)return d;var n=t.customMerge(e);return"function"==typeof n?n:d}(r,i)(e[r],t[r],i):s[r]=n(t[r],i))}),s}function d(t,r,o){(o=o||{}).arrayMerge=o.arrayMerge||i,o.isMergeableObject=o.isMergeableObject||e,o.cloneUnlessOtherwiseSpecified=n;var d=Array.isArray(r);return d===Array.isArray(t)?d?o.arrayMerge(t,r,o):s(t,r,o):n(r,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)},{})},u=d}());const g={arrayMerge:(e,t)=>t,isMergeableObject:e=>"object"==typeof e&&null!==e&&e.constructor===Object},h=(e,t)=>v(e,t,g),y=(e,t)=>Object.assign(Object.assign({},e),t),m=(e,t)=>{var n;return h(null!==(n=e)&&void 0!==n?n:{},t)},f=(e,t)=>{const n="[Advertory LOG]: ";location.search.includes("ast_debug=true")&&(t?console.log(n,e,t):console.log(n,e))},b=(e,t)=>{const n="[Advertory WARN]: ";t?console.warn(n,e,t):console.warn(n,e)},w=e=>{(e=>{const{pageContext:t,pageOptions:n,placements:i,appearanceConfig:r}=null!=e?e:{};(null==t?void 0:t.publisher)||b("pageContext.publisher is required."),(null==t?void 0:t.countryCode)||b("pageContext.countryCode is required."),(null==t?void 0:t.pageType)||b("pageContext.pageType is required."),(null==t?void 0:t.deviceType)||b("pageContext.deviceType is required."),n||b("pageOptions is required."),i||b("placements is required."),(null==r?void 0:r.defaultThreshold)||b("appearanceConfig.defaultThreshold is required.")})(e),(e=>{var t,n,i,r;const o=e.pageSectionsSelectors,s=[{flag:!!(null===(t=e.takeover)||void 0===t?void 0:t.enabled),property:"header",featureName:"takeover"},{flag:!!(null===(n=e.sponsorstripe)||void 0===n?void 0:n.enabled),property:"header",featureName:"sponsorstripe"},{flag:!!(null===(i=e.widescreenSwitching)||void 0===i?void 0:i.enabled),property:"right",featureName:"widescreenSwitching"},{flag:!!(null===(r=e.wallpaper)||void 0===r?void 0:r.enabled),property:"header",featureName:"wallpaper"}];for(const{flag:e,property:t,featureName:n}of s)e&&!(null==o?void 0:o[t])&&b(`pageSectionsSelectors.${t} is required when ${n} is enabled.`)})(e)},C={placements:(e,t)=>t,takeover:m,refreshConfig:y,editory:m,appearanceConfig:m,pageContext:y,pageOptions:y,pageSectionsSelectors:y,tcf:y},I=(e,t)=>{const n=e;for(const e of Object.keys(C)){const i=t[e];void 0!==i&&(n[e]=C[e](n[e],i))}},O=6;class S{set(e){w(e),this.config=e}modifyConfigProperties(e){if(!this.config)throw new Error("Config was accessed before it had been initialized.");I(this.config,e)}get(){if(!this.config)throw new Error("Config was accessed before it had been initialized.");return this.config}getHandlers(){if(!this.siteHandlers)throw new Error("Handlers were accessed before it had been initialized.");return this.siteHandlers}setHandlers(e){this.siteHandlers=h(S.DEFAULT_SITE_HANDLERS,e)}}S.DEFAULT_SITE_HANDLERS={initNativeAd:()=>{}};const T=new S,A=T.modifyConfigProperties.bind(T);class k{initialize(){this.DATA=Object.assign({},k.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)}}k.INITIAL_DATA={wallpaper:{isAvailable:!1},horseshoe:{isAvailable:!1},initialClassNames:{},alertoryConfigKeywords:{}};const P=new k,E=864e5,x=(()=>{const e=e=>{const t=window.localStorage.getItem(e);if(!t)return null;try{return JSON.parse(t)}catch(e){return f("Error with parsing localStorage data"),null}},t=(e,t)=>{window.localStorage.setItem(e,JSON.stringify(t))};return{get:e,set:t,setWithTimestamp:(e,n,i=E)=>{const r={data:n,expirationTime:(new Date).getTime()+i};t(e,JSON.stringify(r))},getByTimestamp:(t,n=E)=>{const i=e(t);if(!i)return null;if(!n)return i;try{const{expirationTime:e,data:t}=JSON.parse(i);return(new Date).getTime()<=e?t:null}catch(e){return f("Error with parsing localStorage data"),null}}}})(),j="glimrTags",_=["glwe_","glwet_"],$={geofenceTags:[],geoTags:[],weatherTags:[]},N=e=>new URLSearchParams(window.location.search).get(e),L="takeover",q="native_override_desc2",D=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 f("Advertising permission value obtained synchronously: ",e),Boolean(t)})();if(null!==n)return void t(n);let i=!1;const r=e=>{i||(f("Resolving advertising permission value obtained"),i=!0,t(e))},o=setTimeout(()=>{f("Advertising permission timed out, resolving with false"),r(!1)},3e3);window._tcf_.onTcfReady(()=>{f("On Tcf Ready called, waiting for permission"),clearTimeout(o)}),window._tcf_.getPermission("CMP:advertising",e=>{clearTimeout(o);const t=Number(e);f("Advertising permission value obtained asynchronously: ",e),r(Boolean(t))})}),M={NO:"no",SE:"se"},F="cmp:loaded";let B="undefined"!=typeof window?window._tcf_:void 0,R=!1;const U=(e,t,n)=>{const i=!!(null==e?void 0:e.enabled),r=(null==e?void 0:e.timeout)||3e3,o=N("bypass_tcf"),s=()=>{if(!(null==e?void 0:e.enabled))return!0;if(((e,t)=>e?!!t&&(f("TCF bypass param detected, returning consent: true"),!0):(f("TCF is not enabled, returning consent: true"),!0))(i,o))return!0;if(R)return null;if(!B)throw new Error("[Advertory]: getConsentSync method was called before the tcfManager was available.");const t=B.getConsentedToAllSync();return f(`TCF consented to all is: ${t}`),B.getConsentedToAllSync()};return{initConsentManager:()=>(null==e?void 0:e.enabled)?new Promise((e,t)=>{if(f("Getting TCF consent manager..."),window._tcf_)return f("TCF consent manager is already available"),B=window._tcf_,void e(B);f("TCF consent manager is not available");const n=()=>{f("CMP loaded, resolving consent manager..."),i&&clearTimeout(i),window._tcf_?(B=window._tcf_,e(B)):t(new Error("CMP loaded but window._tcf_ is not defined"))},i=setTimeout(()=>{document.removeEventListener(F,n),R=!0,t(new Error("Timeout waiting for CMP to load"))},r);f("Listening for CMP loaded event..."),document.addEventListener(F,n,{once:!0})}):Promise.resolve(null),getConsentSync:s,getConsentAsync:()=>l(void 0,void 0,void 0,function*(){if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return f(`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===M.SE,i=(null==e?void 0:e.advertisingCMPSignalEnabled)&&n===M.NO;if(t||i)return f("Schibsted Ad Choices is enabled, getting advertising permissions..."),yield D(e);if(!(null==e?void 0:e.enabled))return!0;const o=s();return null!==o?o:yield new Promise((e,t)=>{try{if(!B)throw new Error("[Advertory]: getConsentAsync method was called before the tcfManager was available.");let t=!1;const n=n=>{t||(t=!0,e(n))},i=setTimeout(()=>{f("TCF isConsentedToAll timed out, resolving with false"),n(!1)},r);B.onTcfReady(()=>{f("On Tcf Ready called, waiting for consent"),clearTimeout(i)}),B.isConsentedToAll(t=>{clearTimeout(i),e(t)})}catch(e){t(e)}})})}},K=(e,t,n,...i)=>l(void 0,[e,t,n,...i],void 0,function*(e,t,n,i="NOT SPECIFIED FEATURE"){if(!(null==e?void 0:e.schibstedConsentToPayEnabled))return f(`Schibsted Consent to Pay is not enabled, returning true for ${i}`),!0;if(null==e?void 0:e.schibstedAdChoicesOverrideValue)return f(`Schibsted Ad Choices override value is set, returning override value: ${null==e?void 0:e.schibstedAdChoicesOverrideValue} for ${i}`),Boolean(Number(null==e?void 0:e.schibstedAdChoicesOverrideValue));const{getConsentAsync:r}=U(e,0,n);return(yield r())?(f(`Schibsted Ad Choices consent given according to TCF consent manager for ${i}`),!0):(f(`Schibsted Ad Choices consent not given according to TCF consent manager for ${i}`),!1)}),H=(...e)=>l(void 0,[...e],void 0,function*(e=T.get()){const{tcf:t,pageContext:{isMobileApp:n,countryCode:i}={}}=e;if(null==t?void 0:t.schibstedConsentToPayEnabled){return yield K(t,n,i,"glimr")}const{getConsentAsync:r}=U(t,0,i);return yield r()}),z=()=>l(void 0,void 0,void 0,function*(){const{glimr:e}=T.get();if(!(yield H())||!(null==e?void 0:e.enabled))return void f("No consent for glimr data fetching.");const t=yield(n=500,l(void 0,void 0,void 0,function*(){return yield Promise.race([l(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)=>{x.setWithTimestamp(j,{tags:e,tagMappings:t}),n(!0)})})}catch(e){f(`Error during getting glimr data: ${e}`)}else f("Timeout (500ms) while loading glimr package. Skipping glimr data fetching.",{glimr:t})}),W={svd:"svd",vg:"vg",aftenposten:"no-aftenposten",sa:"no-stavangeraftenblad",bt:"no-bergenstidende",aftonbladet:"aftonbladet",e24:"e24",minmote:"minmote",pent:"pent",godt:"godt",tek:"no-tek"},V=e=>_.some(t=>e.startsWith(t)),G=e=>e.startsWith("glgc_"),X=e=>e.startsWith("glci_"),J=e=>!V(e)&&!G(e),Q=e=>e===M.NO?"no-sno":"se-generic",Y=(e,t)=>l(void 0,void 0,void 0,function*(){const{addPublisherToGeo:n}=t||{},{glimr:i,pageContext:{countryCode:r}={}}=e,o=yield H(e);if(!(null==i?void 0:i.enabled)||!o)return f("No consent for getting glimr tags."),{};const s=Q(r),d=Z(e,Boolean(n));return{[`${s}-geo`]:d.geoTags,[`${s}-weather`]:d.weatherTags,[`${s}-geofence`]:d.geofenceTags}}),Z=(e,t)=>{const n=ee();if(!n)return $;const i=((e=[])=>e.filter(V))(n),r=((e=[])=>e.filter(G))(n),o=((e=[],t,n)=>{var i;const r=e.filter(J);if(n&&t){const{publisher:e}=null!==(i=t.pageContext)&&void 0!==i?i:{},n=W[e]||e;r.push(n)}return r})(n,e,t);return{geoTags:o,geofenceTags:r,weatherTags:i}},ee=()=>{const e=x.getByTimestamp(j);return e&&"string"!=typeof e?null==e?void 0:e.tags:null},te=()=>{var e;return((e=[])=>e.filter(X))(null!==(e=ee())&&void 0!==e?e:[])},ne="opaque",ie=e=>l(void 0,void 0,void 0,function*(){if(e.type!==ne){if(!e.ok)throw new Error(e.statusText);return yield e.json()}}),re={get:(e,...t)=>l(void 0,[e,...t],void 0,function*(e,t={}){var{timeout:n}=t,i=a(t,["timeout"]);if(n)return((e,t,n)=>l(void 0,void 0,void 0,function*(){const i=new AbortController,r=setTimeout(()=>i.abort(),n);try{const n=yield fetch(e,Object.assign(Object.assign({},t),{signal:i.signal}));return ie(n)}finally{clearTimeout(r)}}))(e,i,n);const r=yield fetch(e,i);return ie(r)}),post:(e,t,n)=>l(void 0,void 0,void 0,function*(){const i=JSON.stringify(n),r=yield fetch(e,{method:"POST",headers:t,body:i});if(!r.ok)throw new Error(r.statusText);return yield r.json()})},oe="advertory:ppids-cache",se={[M.SE]:`SCH${M.SE.toUpperCase()}-EnvHash`,[M.NO]:`SCH${M.NO.toUpperCase()}-EnvHash`},de={[M.SE]:`SCH${M.SE.toUpperCase()}-UserHash`,[M.NO]:`SCH${M.NO.toUpperCase()}-UserHash`},ae={[M.SE]:`sch${M.SE}-envhash-v3`,[M.NO]:`sch${M.NO}-envhash-v3`},le={[M.SE]:`sch${M.SE}-userhash-v3`,[M.NO]:`sch${M.NO}-userhash-v3`},ce={[M.SE]:`'sch${M.SE}-iosid-v3'`,[M.NO]:`'sch${M.NO}-iosid-v3'`},ue={[M.SE]:`sch${M.SE}-androidid-v3`,[M.NO]:`sch${M.NO}-androidid-v3`},pe={[M.SE]:"sdrn:schibsted.com:user",[M.NO]:"sdrn:spid.no:user"};class ve{constructor(){this.eids=[]}add(e,t){return e&&this.eids.push({id:e,source:t}),this}buildRyEids(){return this.eids.map(({id:e,source:t})=>({source:t,uids:[{id:e,atype:1,ext:{stype:"ppuid"}}]}))}buildEids(){return[...this.eids]}buildVideoEids(){return this.eids.map(({id:e,source:t})=>`${t},${e}`).join("|")}buildNorstatPath(){const e=this.eids[0];return e?`${e.source}-${e.id}`:""}buildNorstatQuery(e){const t=new URLSearchParams;return this.eids.slice(1).forEach(({id:n,source:i})=>{t.append(e,`${i}-${n}`)}),t}}const ge=new class{constructor(){this.ppid1=null,this.ppid2=null}processPPIDs(e){return l(this,arguments,void 0,function*(e,t=1e4){var n,i;const r=yield Promise.race([new Promise(e=>{setTimeout(()=>e({xandr:{ppId1:"",ppId2:""}}),t)}),e.instance.getAdvertisingIdentifiers()]);this.setPPIDs(null===(n=r.xandr)||void 0===n?void 0:n.ppId1,null===(i=r.xandr)||void 0===i?void 0:i.ppId2)})}getPPIDs(){var e,t;return null!==this.ppid1&&null!==this.ppid2||f("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:""}},he=new class{constructor(){this.ppid1=null,this.ppid2=null,this.idfv=null,this.anId=null}processPPIDs(e,t){return l(this,void 0,void 0,function*(){var n,i,r,o,s,d,a,l,c,u,p;const v=x.get(oe),g=yield this.getNewPPIDs(e,t);if(this.shouldHash(v,g)){const t=null!==(n=e.hasherUrl)&&void 0!==n?n:"https://hasher.schibsted.com/api/v1/hash",l=this.createHasherPayload(g),c=yield this.hashPPIDs(l,t);return c?(this.cachePPIDs(l,c,null===(i=g.idfv)||void 0===i?void 0:i.plain,null===(r=g.anId)||void 0===r?void 0:r.plain),void this.setPPIDs(null!==(o=c.userId)&&void 0!==o?o:"",null!==(s=c.environmentId)&&void 0!==s?s:"",null===(d=g.idfv)||void 0===d?void 0:d.plain,null===(a=g.anId)||void 0===a?void 0:a.plain)):void this.setPPIDs("","")}this.setPPIDs(null!==(l=null==v?void 0:v.userId.hashed)&&void 0!==l?l:"",null!==(c=null==v?void 0:v.environmentId.hashed)&&void 0!==c?c:"",null===(u=null==g?void 0:g.idfv)||void 0===u?void 0:u.plain,null===(p=null==g?void 0:g.anId)||void 0===p?void 0:p.plain)})}getPPIDs(){var e,t;return null!==this.ppid1&&null!==this.ppid2||f("PPIDv3s accessed before they have been initialized"),{ppid1:null!==(e=this.ppid1)&&void 0!==e?e:"",ppid2:null!==(t=this.ppid2)&&void 0!==t?t:"",idfv:this.idfv,anId:this.anId}}setPPIDs(e,t,n,i){this.ppid1=null!=e?e:"",this.ppid2=null!=t?t:"",this.idfv=null!=n?n:null,this.anId=null!=i?i:null}shouldHash(e,t){var n,i;if(!e)return!0;for(const r in e){if((null===(n=e[r])||void 0===n?void 0:n.plain)!==(null===(i=t[r])||void 0===i?void 0:i.plain))return!0}return!1}cachePPIDs(e,t,n,i){const r=Object.assign(Object.assign({clientId:{plain:e.clientId},userId:{plain:e.userId,hashed:t.userId},environmentId:{plain:e.environmentId,hashed:t.environmentId},trackerType:{plain:e.trackerType},trackerVersion:{plain:e.trackerVersion}},n?{idfv:{plain:n}}:{}),i?{anId:{plain:i}}:{});x.set(oe,r)}hashPPIDs(e,t){return l(this,void 0,void 0,function*(){try{const n=new Headers({"Content-Type":"application/json"});return yield re.post(t,n,e)}catch(e){return f("Error with hashing PPIDs",e),null}})}getNewPPIDs(e,t){return l(this,arguments,void 0,function*({clientId:e,instance:t},n){const i=yield((e,t)=>l(void 0,void 0,void 0,function*(){const n=yield e.getUserId();return n?`${pe[t]}:${n}`:null}))(t,n),r=yield(o=t,l(void 0,void 0,void 0,function*(){const e=yield o.getEnvironmentId();return e?`sdrn:schibsted:environment:${e}`:null}));var o;const s=window.advertory_idfv,d=window.advertory_anId;return Object.assign(Object.assign({clientId:{plain:e},userId:{plain:i},environmentId:{plain:r},trackerType:{plain:"Advertory"},trackerVersion:{plain:"1.0.0"}},s?{idfv:{plain:s}}:{}),d?{anId:{plain:d}}:{})})}createHasherPayload({clientId:e,trackerType:t,trackerVersion:n,userId:i,environmentId:r}){return{clientId:e.plain,trackerType:t.plain,trackerVersion:n.plain,userId:i.plain,environmentId:r.plain}}},ye=e=>l(void 0,void 0,void 0,function*(){const{pulse:t,tcf:n,pageContext:{countryCode:i,isMobileApp:r}}=e;if(!(yield K(n,r,i,"setPPIDs")))return;if(!t)return;(yield Promise.allSettled([ge.processPPIDs(t,null==n?void 0:n.timeout),he.processPPIDs(t,i)])).forEach((e,t)=>{if("rejected"===e.status){f(`Cannot fetch PPIDs v${t+2}`,e.reason)}})}),me=e=>{const{ppid1:t,ppid2:n}=ge.getPPIDs(),{ppid1:i,ppid2:r,idfv:o,anId:s}=he.getPPIDs();return{userIds:[{type:"extendedIDs",eids:(new ve).add(n,se[e]).add(t,de[e]).add(r,ae[e]).add(i,le[e]).add(o,ce[e]).add(s,ue[e]).buildEids()}]}},fe=()=>{const{ppid1:e,ppid2:t}=ge.getPPIDs();return{"aa-sch-schuserhash":e?"1":"0","aa-sch-schenvhash":t?"1":"0"}},be=e=>{const{ppid1:t,ppid2:n}=ge.getPPIDs(),{ppid1:i,ppid2:r}=he.getPPIDs(),o=(new ve).add(n,se[e]).add(t,de[e]).add(r,ae[e]).add(i,le[e]);return`${o.buildNorstatPath()}?${o.buildNorstatQuery("alias").toString()}`},we=e=>{const{ppid1:t,ppid2:n}=ge.getPPIDs(),{ppid1:i,ppid2:r}=he.getPPIDs();return(new ve).add(n,se[e]).add(t,de[e]).add(r,ae[e]).add(i,le[e]).buildRyEids()},Ce=e=>l(void 0,void 0,void 0,function*(){const{ppid1:t,ppid2:n}=ge.getPPIDs(),{ppid1:i,ppid2:r}=he.getPPIDs(),o=(new ve).add(n,se[e]).add(t,de[e]).add(r,ae[e]).add(i,le[e]);return yield new Promise(e=>{e(o.buildVideoEids())})}),Ie=()=>l(void 0,void 0,void 0,function*(){const{ppid1:e}=he.getPPIDs();return e}),Oe=(e,...t)=>l(void 0,[e,...t],void 0,function*(e,{timeout:t}={timeout:1e3}){document.querySelector(`script[src="${e}"]:not([type="module"])`)||(yield new Promise((n,i)=>{const r=document.createElement("script");r.async=!0,r.src=e;const o=()=>{d(),n()},s=()=>{d(),i(new Error(`Failed to load ${e}`))},d=()=>{r.removeEventListener("load",o),r.removeEventListener("error",s),clearTimeout(a)};r.addEventListener("load",o),r.addEventListener("error",s);const a=setTimeout(()=>{d(),i(new Error(`Loading script timed out: ${e}`))},t);document.head.appendChild(r)}).catch(e=>{console.error(e)}))}),Se="ANY_FULLSCREEN",Te="FULLWIDTH",Ae="TAKEOVER",ke="WALLPAPER",Pe={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}]},Ee={wallpaper:1600,"l-format":1600},xe=e=>{const{banner:t,targetId:n}=e;return!(!t||(null==n?void 0:n.includes("takeover")))&&Qe(e,Se)},je=e=>{const{native:t}=e;return!!t},_e=e=>Qe(e,Te),$e=e=>{const{targetId:t}=e;return t.includes("takeover")||Qe(e,Ae)},Ne=e=>Qe(e,ke),Le=e=>e.targetId.includes("skyscraper")&&!!e.banner,qe=e=>e.targetId.includes("sponsorstripe"),De=e=>(980===e.width||1920===e.width&&e.targetId.includes("brandboard"))&&!e.targetId.includes("topboard")&&!e.targetId.includes("companion")&&!Ue(e),Me=e=>{const t=document.querySelector(`#${e}`);return!!t&&"true"===t.dataset.isFinnBlinkPlacement},Fe=e=>e.targetId.startsWith("topboard")&&!$e(e),Be=e=>e.targetId.startsWith("netboard"),Re=e=>e.targetId.startsWith("board"),Ue=e=>e.targetId.startsWith("panorama")||e.targetId.startsWith("modul"),Ke=e=>e.targetId.startsWith("midboard"),He=e=>e.targetId.includes("widescreen"),ze=e=>e.targetId.startsWith("insider"),We=e=>e.width>=1260&&e.width<=1280,Ve=e=>e.width>=1600&&e.width<=1620,Ge=e=>e.targetId.startsWith("toppanorama")&&!Ve(e)&&!We(e),Xe=e=>e.targetId.startsWith("buyrecipe"),Je=e=>e.targetId.includes("backfill"),Qe=(e,t)=>{const n=Pe[t];if(!n)return!1;return!!n.find(t=>{var n,i;const r=(null===(n=e.banner)||void 0===n?void 0:n.width)||e.width,o=(null===(i=e.banner)||void 0===i?void 0:i.height)||e.height,s=t.width===r,d=!t.height||t.height===o;return s&&d})};let Ye;const Ze=()=>Ye,et="advertory-wallpaper-background",tt="advertory-with-horseshoe",nt=()=>{const e=document.querySelector(`.${et}`);e&&e.remove()},it=e=>{const t=e.getBoundingClientRect().top;requestAnimationFrame(()=>(e=>{if(!document.body)return;const t=document.querySelector(`.${et}`);t&&t.style.setProperty("top",`${e}px`)})(t+15))},rt=/^wallpaper:url:(http[s]?:\/\/)?[^\s(["<,>]*\.[^\s[",><]*/,ot=e=>rt.test(e),st=e=>e.startsWith("wallpaper:color:"),dt=e=>{const t=document.querySelector(`.${et}`);t&&(t.style.backgroundImage=`url(${e})`)},at=e=>{const t=document.querySelector(`.${et}`);t&&(t.style.backgroundColor=e)};var lt=Object.freeze({__proto__:null,adjustAdToHorseshoe:e=>{var t;const n=document.querySelector(`#${e}`);n&&(null===(t=n.parentElement)||void 0===t||t.classList.add(tt),n.classList.add(tt))},initWallpaperAd:(e,t)=>{if(!t)return;const{options:{wallpaperAnchorSelector:n}={}}=t;(()=>{nt();const e=document.createElement("div");e.classList.add(et),document.body.appendChild(e),e.style.setProperty("position","fixed"),e.style.setProperty("width","100%"),e.style.setProperty("height","calc(100% - var(--advertory-header-height, 0px) - 15px)"),e.style.setProperty("background-position","center top"),e.style.setProperty("background-repeat","no-repeat")})(),(e=>{const t=e||".advertory-wrapper-common-skyscraperleft_1",n=document.querySelector(t);n&&(it(n),window.addEventListener("scroll",()=>it(n)))})(n),e()},isShortWallpaperColorMessage:st,isShortWallpaperUrlMessage:ot,removeWallpaperBackground:nt,setWallpaperBackgroundColor:at,setWallpaperBackgroundImage:dt});const ct=e=>{if("0"===N("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")&&nt())},ut=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"))},pt=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},vt=e=>{var t;const n=null===(t=document.querySelector(`#${e}`))||void 0===t?void 0:t.parentElement,i=(null==n?void 0:n.offsetHeight)||0;n&&(n.style.minHeight=`${i}px`)},gt=e=>{const{siteSpecificConfig:t,editory:{editoryUrl:n,editableConfiguration:{pageTypeToFetch:i}={}}={}}=e;if(!(null==t?void 0:t.publisherClassName)||!i)return null;return`${n||"https://inv-platform-cdn.inventory.schibsted.io"}/editory/editable-configurations/${t.publisherClassName}/${i.toLowerCase()}.json`};const ht=new class{constructor(){this.requestToken=0,this.cacher=(()=>{const e=new Map;return{get:t=>e.get(t),set:(t,n)=>{e.set(t,n)},delete:t=>{e.delete(t)}}})()}shouldFetchEditableConfig(e){const{editory:{editableConfiguration:{enabled:t=!1,pageTypeToFetch:n}={}}={},siteSpecificConfig:i}=e;return Boolean(t&&n&&(null==i?void 0:i.publisherClassName))}captureLocalSiteConfig(e){return this.localSiteConfig=Object.assign({},e),this.localSiteConfig}fetchEditableConfig(e){return l(this,void 0,void 0,function*(){const t=gt(e);if(!t)return null;let n=this.cacher.get(t);return n||(n=(e=>l(void 0,void 0,void 0,function*(){const t=gt(e);if(!t)return null;try{return yield re.get(t,{timeout:5e3})}catch(e){throw f("Failed to fetch S3 config",{error:e,url:t}),e}}))(e).catch(e=>{throw this.cacher.delete(t),e}),this.cacher.set(t,n)),n})}resolveRemoteConfig(e,t){var n,i,r;const o=((e,t)=>{const{sections:n}=e,i=a(e,["sections"]),r=t?null==n?void 0:n[t]:void 0;return r?h(i,r):i})(t,null!==(r=null===(i=null===(n=e.editory)||void 0===n?void 0:n.editableConfiguration)||void 0===i?void 0:i.section)&&void 0!==r?r:(()=>{const[e]=window.location.pathname.split("/").filter(Boolean);return e})());return((e,t)=>h(t,e))(e,o)}getConfig(e){return l(this,void 0,void 0,function*(){const t=this.captureLocalSiteConfig(e);if(!this.shouldFetchEditableConfig(t))return t;try{const e=yield this.fetchEditableConfig(t);return e?this.resolveRemoteConfig(t,e):t}catch(e){return f("Error fetching S3 config, using site config",{error:e}),t}})}resolveUpdatedConfig(e){return l(this,void 0,void 0,function*(){var t,n,i,r;if(!this.localSiteConfig)return;if(I(this.localSiteConfig,null!=e?e:{}),!this.shouldFetchEditableConfig(this.localSiteConfig))return;const o=null===(n=null===(t=this.localSiteConfig.editory)||void 0===t?void 0:t.editableConfiguration)||void 0===n?void 0:n.pageTypeToFetch,s=++this.requestToken;try{const e=yield this.fetchEditableConfig(this.localSiteConfig);if(s!==this.requestToken||(null===(r=null===(i=this.localSiteConfig.editory)||void 0===i?void 0:i.editableConfiguration)||void 0===r?void 0:r.pageTypeToFetch)!==o)return;if(!e)return;return this.resolveRemoteConfig(this.localSiteConfig,e)}catch(e){return void f("Error fetching updated S3 config, keeping current config",{error:e})}})}},yt=ht.getConfig.bind(ht),mt=ht.resolveUpdatedConfig.bind(ht),ft=e=>{const t=e.parentElement;if(!e||!t)return;const{container:n,wrapper:i}=(e=>{const t=P.getData("initialClassNames")[e.id];return{wrapper:(null==t?void 0:t.wrapper)?t.wrapper.join(" "):"",container:(null==t?void 0:t.container)?t.container.join(" "):""}})(e);e.className=n,t.className=i},bt=()=>{var e,t;nt();const n=document.querySelectorAll('[data-advertory-ad-rendered="true"]'),i=[];return n.forEach(e=>{ct(e.id),ft(e),(e=>{const t=document.querySelector(`#${e}`),n=null==t?void 0:t.getAttribute("data-probable-height"),i=null==t?void 0:t.getAttribute("data-probable-width");n&&i&&(null==t||t.style.setProperty("min-height",n+"px"),null==t||t.style.setProperty("min-probable-width",i+"px"))})(e.id),e.innerHTML="",e.id=pt(e.id),i.push(e.id)}),null===(t=null===(e=Ze())||void 0===e?void 0:e.clear)||void 0===t||t.call(e,i),i},wt=(e,t)=>{if(0===e.length)return;const n=new Set(t.map(({targetId:e})=>pt(e)));e.filter(e=>!n.has(e)).forEach(e=>(e=>{const t=document.querySelector(`#${e}`);t&&(t.style.minWidth="",t.style.minHeight="")})(e))},Ct=()=>{P.setData("wallpaper",{isAvailable:!1}),P.setData("horseshoe",{isAvailable:!1})},It=e=>l(void 0,void 0,void 0,function*(){const t=yield mt(e);var n;t?(T.set(t),n=t,window.advertory&&(window.advertory.siteConfig=n,window.advertory.alertoryConfig&&(window.advertory.alertoryConfig.advertory.placements=n.placements))):A(null!=e?e:{})}),Ot="mobile",St="tablet",Tt="desktop",At="web_desktop",kt="web_phone",Pt="wde",Et="wph",xt="noGroupedPlacements",jt=e=>{if(!(null==e?void 0:e.minViewWidth))return!0;return window.innerWidth>=e.minViewWidth},_t=e=>{var n;if(!(null===(n=null===window||void 0===window?void 0:window.advertory)||void 0===n?void 0:n.initialized))return[];const{placements:i,queryConfig:r,pageContext:{deviceType:o}}=T.get(),s=((e,t)=>{var n;const i=null!==(n=e[t])&&void 0!==n?n:[];return t===St&&0===i.length?e[Tt]:i})(i,o),d=s.filter(jt),a=e?document.querySelector(e):document;if(!a)return[];const l=d.reduce((e,t)=>{const n=(e=>{const t=e.replace(/[0-9]/g,"");return"_"===t.slice(-1)?t.substring(0,t.length-1):t})(t.targetId);return!n||e.includes(n)||e.push(n),e},[]).flatMap(e=>{var n,i,s;const l=new RegExp(`^${e}(_(\\d+))?$`),c=d.filter(({targetId:e})=>e.match(l)),u=(null==r?void 0:r.queryByDataDeviceAttribute)?`div[id^="${e}"][data-device=${o}], div[id^="${e}"][data-device=all]`:`div[id^="${e}"]:not([data-disabled="true"])`,p=a.querySelectorAll(u),v=Array.from(p).filter(({id:e})=>e.match(l)).map((e,n)=>{var i;const r=$t(e,n,c);if(r.disabled)return f(`Placement ${r.targetId} is disabled - collapsing`),ct(r.targetId),null;const o=r.finnBlink&&!r.finnBlink.renderOnlyWithAdBlock,s=o&&(null===(i=r.finnBlink)||void 0===i?void 0:i.loadOnlyFinnBlink),d=`${e.id}-${t(6)}`;return e.id=d,e.setAttribute("data-advertory-ad-rendered","true"),o&&e.setAttribute("data-is-finn-blink-placement","true"),s&&e.setAttribute("data-is-finn-blink-only-placement","true"),(e=>{var t;const n=e.id;n&&P.setData("initialClassNames",{[n]:{wrapper:null===(t=e.parentElement)||void 0===t?void 0:t.className.split(" "),container:e.className.split(" ")}})})(e),Object.assign(Object.assign({},r),{targetId:d})}),g=v.filter(e=>null!=e);return null!==(s=null===(i=null===(n=Ze())||void 0===n?void 0:n.enrichPlacementsAfterDiscovery)||void 0===i?void 0:i.call(n,g))&&void 0!==s?s:g});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))})(l)},$t=(e,t,n)=>{const i=n[t],r=n[n.length-1],o=n.filter(({targetId:t})=>t===e.id)[0];return(null==e?void 0:e.id)===(null==i?void 0:i.targetId)?i:(null==e?void 0:e.id)===(null==r?void 0:r.targetId)?r:o||r},Nt=e=>{const{queryConfig:{placementBatches:t}={},pageContext:{deviceType:n}}=T.get(),i=(null==t?void 0:t[n])||{},r=Object.values(i).flat(),o=(e=>{const t={};return e.forEach(e=>{const n=pt(e.targetId);e.isBackfill&&(t[n]=[e])}),t})(e),s=((e,t)=>{const n={};for(const[i,r]of Object.entries(t))n[i]=e.filter(e=>r.includes(pt(e.targetId)));return n})(e,i),d=Object.keys(o),a=((e,t)=>e.filter(e=>!t.has(pt(e.targetId))))(e,new Set([...d,...r]));return Object.assign(Object.assign(Object.assign({},s),o),{[xt]:a})},Lt="collapseAd",qt="hideAd",Dt="resizeAd",Mt="wallpaperImageUrl",Ft="wallpaperColor",Bt="velvet",Rt=[Dt,Mt,Ft,Lt,qt,Bt];let Ut;const Kt=e=>{var t,n,i;const r=Ze();if(!(null===(t=null==r?void 0:r.messageOrigins)||void 0===t?void 0:t.includes(e.origin.trim())))return;const{data:o}=e;if(!o)return;const s=(e=>{if("object"==typeof e)return e;if(ot(e)){const t=e.replace(/^wallpaper:url:/,"");return{name:Mt,wallpaperImageUrl:t}}if(st(e)){const t=e.replace(/^wallpaper:color:/,"");return{name:Ft,wallpaperColor:t}}if(e.startsWith(Lt)||e.startsWith(qt)){const t=e.split(":")[1];return{name:Lt,targetId:t}}if(e.includes("name")&&Rt.some(t=>e.includes(t)))try{return JSON.parse(e)}catch(e){}})(o);if(!s)return;if(!s.name||!Rt.some(e=>s.name===e))return;const{name:d,targetId:a,wallpaperImageUrl:l,wallpaperColor:c,cmd:u,size:p}=s;d===Bt&&u&&(u.includes("noScroll")&&(Ut=(e=>{if(!e)return()=>{};const t=e.style.overflow;return e.style.setProperty("overflow","hidden"),()=>{e.style.setProperty("overflow",t)}})(document.querySelector("body"))),(u.includes("close")||u.includes("ended"))&&(null==Ut||Ut(),dispatchEvent(new CustomEvent("advertory:closeTakeover",{})))),d!==Lt&&d!==qt||!a||ct(a),d===Dt&&a&&u&&(null===(n=r.resizeCreative)||void 0===n||n.call(r,a,u)),"resizeMediationAd"===d&&a&&p&&(null===(i=r.resizeCreative)||void 0===i||i.call(r,a,p,!0)),d===Mt&&l&&dt(l),d===Ft&&c&&at(c)},Ht=()=>{const{pageContext:{publisher:e,countryCode:t},finnBlink:n}=T.get(),i={publisher:e,countryCode:t,finnBlink:n},r=e=>{var t,n;ut(e),null===(n=null===(t=Ze())||void 0===t?void 0:t.render)||void 0===n||n.call(t,e)};return{withAdServerAd:r,withFinnBlinkAd:e=>l(void 0,void 0,void 0,function*(){if(!(null==n?void 0:n.enabled))return;const{loadFinnBlinkAd:t}=yield import("./index-DT8GWwa8.js");yield t(e,i,null)}),withFullAdsChain:e=>l(void 0,void 0,void 0,function*(){if(!(null==n?void 0:n.enabled))return void r(e);const{loadFinnBlinkAd:t}=yield import("./index-DT8GWwa8.js");yield t(e,i,r,()=>l(void 0,void 0,void 0,function*(){if(!P.getData("horseshoe").isAvailable)return;const{adjustAdToHorseshoe:t}=yield Promise.resolve().then(function(){return lt});t(e)}))})}},zt=(e,t)=>l(void 0,void 0,void 0,function*(){e.id.includes("wallpaper")||(yield((e,t,n)=>l(void 0,void 0,void 0,function*(){yield i,yield r,new IntersectionObserver((t,i)=>{t.filter(({isIntersecting:e})=>e).forEach(()=>{n(),i.unobserve(e),i.disconnect()})},{rootMargin:`${t}px 0px ${t}px 0px`}).observe(e)}))(e,t,()=>((e,t)=>{var n,i;const r="true"===t.dataset.isFinnBlinkOnlyPlacement;return Me(e)&&r?(f(`loading finn blink ad for blink only placement for ${e}`),void Ht().withFinnBlinkAd(e)):Me(e)?(f(`loading finn blink ad with full ads chain for ${e}`),void Ht().withFullAdsChain(e)):void(null===(i=null===(n=Ze())||void 0===n?void 0:n.render)||void 0===i||i.call(n,e))})((e=>{const t=e.dataset.showTagSubscribeId;return!e.id.length&&t?t:e.id})(e),e)))}),Wt=(e,t=6)=>{const n=[];for(let i=0;i<e.length;i+=t){const r=e.slice(i,i+t);n.push(r)}return n},Vt=()=>navigator&&navigator.userAgent.match(/chrome/i)?null:navigator&&navigator.userAgent.match(/apple/i),Gt=(e,t=0)=>{const n=e.getBoundingClientRect(),i=window.innerHeight;return n.bottom>-t&&n.top<i+t},Xt=e=>{const{refreshConfig:{visibilityStateRefreshEnabled:t=!1}={}}=T.get();if(!t)return;const n=()=>{"visible"===document.visibilityState&&document.removeEventListener("visibilitychange",n),Zt(e)};"visible"!==document.visibilityState&&document.addEventListener("visibilitychange",n)},Jt=(e,t,n)=>{const i=document.querySelectorAll('[data-bf-cache-refresh="true"]');for(const r of i){const i=e.find(e=>{var t,n;return e.targetId===(null===(t=r.firstElementChild)||void 0===t?void 0:t.id)&&(null===(n=e.refresh)||void 0===n?void 0:n.bfCache)}),o=null==i?void 0:i.requestThreshold;Gt(r,o)&&i&&(vt(i.targetId),n.length&&r.classList.remove(...n),Zt([i],t))}},Qt=e=>{const{refreshConfig:{backForwardNavigationRefreshEnabled:t=!1}={},siteSpecificConfig:{classesToRemoveOnRefresh:n=[]}={},pageContext:{isMobileApp:i}}=T.get();t&&(e.forEach(({targetId:e})=>{const t=Yt(e);t&&(t.dataset.bfCacheRefresh="true")}),i?((e,t)=>{document.addEventListener("visibilitychange",()=>{"visible"===document.visibilityState&&Jt(e,!0,t)})})(e,n):((e,t)=>{window.addEventListener("pageshow",n=>{const i=()=>{window.scrollY>0&&(window.removeEventListener("scroll",i),Jt(e,!1,t))};n.persisted&&(Vt()?window.addEventListener("scroll",i,{passive:!0}):Jt(e,!1,t))})})(e,n))},Yt=e=>{var t,n;return null!==(n=null===(t=document.querySelector(`#${e}`))||void 0===t?void 0:t.parentElement)&&void 0!==n?n:null},Zt=(e,t=!1)=>{const n=Ze();if(!(null==n?void 0:n.refresh))return;const{queryConfig:{batchSize:i=O}={}}=T.get();for(const r of Wt(e,i))n.refresh(r.map(({targetId:e})=>e),t?{keepPreviousSizes:r}:void 0)},en=e=>{const{siteSpecificConfig:t}=T.get(),n=(null==t?void 0:t.dynamicOutstreamFormats)||[];return 0!==n.length&&n.some(t=>e.includes(t))},tn=e=>"https://acdn.adnxs.com/video/outstream/ANOutstreamVideo.js"===e.renderer_url,nn=e=>{const t=encodeURIComponent(e).replace(/[-.+*]/g,"\\$&"),n=new RegExp(`(?:(?:^|.*;)\\s*${t}\\s*\\=\\s*([^;]*).*$)|^.*$`);return decodeURIComponent(document.cookie.replace(n,"$1"))||null},rn=e=>l(void 0,void 0,void 0,function*(){const{tcf:t,pageContext:{isMobileApp:n,countryCode:i}={}}=e,{getConsentAsync:r}=U(t,0,i);if(!(yield r()))return;const o=nn("_pulse2data");return o?o.split(",")[9]:void 0}),on="topscroller",sn=(e,t=(...e)=>{})=>{const n=t.toString();if(0===e.length)return n;const i=n.substring(0,n.indexOf("=>")).replace("(","").replace(")","").split(",").map(e=>e.trim()),r=n.substring(n.indexOf("{")+1,n.lastIndexOf("}")),o=i.map((t,n)=>`${t} = "${e[n]}"`);return new Function(...o,r).toString()},dn="takeover-visit-count",an=14400,ln=()=>{const e=nn(dn);return e?parseInt(e):0},cn=()=>{const{takeover:{enabled:e=!1,options:{secondVisitEnabled:t=!1}={}}={}}=T.get();return"0"!==N(L)&&("1"===N(L)||!(!e||(()=>{var e,t;const n=(null===(t=null===(e=T.get().takeover)||void 0===e?void 0:e.options)||void 0===t?void 0:t.cookieCapName)||"takeover-displayed";return"true"===nn(n)})())&&(!t||un()))},un=()=>{const e=ln();return 0===e?((()=>{const e=ln(),{takeover:{options:{cookieCapTime:t=an}={}}={}}=T.get(),n=document.location.hostname;window.document.cookie=`${dn}=${e+1}; max-age=${t}; domain=${n}; path=/; SameSite=Lax`})(),!1):1===e},pn=(e,t)=>[[1,1],[1920,1080]].some(([n,i])=>n===e&&i===t),vn=()=>{const{takeover:e}=T.get();return Boolean(null==e?void 0:e.topscroller)};sn([],()=>{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})});const gn=e=>{if("true"!==N("scrollToFirstInvCode"))return;const t=N("ast_override_inv_code");if(!t)return;const n=t.split(",")[0].split(":")[0],i=e.find(e=>e.invCode===n),r=document.querySelector(`[id^=${null==i?void 0:i.targetId}]`);r&&r.scrollIntoView({behavior:"smooth",block:"start"})},hn=(e,t)=>l(void 0,void 0,void 0,function*(){return yield new Promise(t=>{e().then(e=>{t(null!=e?e:null)}).catch(e=>{t(null)})})});function yn(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}yn(".advertory-brandmetrics-survey{width:100%}");const mn="advertory-brandmetrics-survey",fn=()=>l(void 0,void 0,void 0,function*(){try{(()=>{const e=document.createElement("script");e.setAttribute("src","https://ads.inventory.schibsted.io/ad-service/ad-banner-sponsor-advertisement/ad.js"),e.setAttribute("type","text/javascript"),e.setAttribute("async","true"),document.head.appendChild(e)})(),(()=>{const e=document.createElement("div");e.setAttribute("id","ads-advertory-anchor"),e.classList.add("subscribe_box"),e.classList.add("ad-box"),e.classList.add("leftAd"),e.classList.add("netboard"),e.classList.add("advert"),e.classList.add("module"),e.classList.add("banner"),e.classList.add("leaderboard"),e.classList.add("adsbygoogle"),e.classList.add("ad-banner"),e.classList.add("ad-container"),e.classList.add("adsbox"),e.classList.add("sidebar-ads"),e.classList.add("banner-ads"),e.style.opacity="0",e.style.width="1px",e.style.height="1px",e.style.minWidth="0px",e.style.minHeight="0px",e.style.maxWidth="1px",e.style.maxHeight="1px",e.style.position="absolute",e.style.top="0",e.style.boxSizing="border-box",e.style.margin="0",e.style.padding="0",document.body.appendChild(e)})()}catch(e){console.error("Error running adblock scripts:",e)}}),bn=()=>{const e=document.getElementById("ads-advertory-anchor");return!(e&&"none"!==getComputedStyle(e).display&&window.advertoryFluepapir)},wn="https://dr-edition-teaser-server.inventory.schibsted.io/xandr",Cn=()=>l(void 0,void 0,void 0,function*(){return window.__tcfapi?{gdpr:1,gdpr_consent:yield(e=window.__tcfapi,new Promise((t,n)=>{e("addEventListener",2,(n,i)=>{var r;i||t(""),"tcloaded"!==n.eventStatus&&"useractioncomplete"!==n.eventStatus||(t(null!==(r=n.tcString)&&void 0!==r?r:""),e("removeEventListener",2,()=>{},n.listenerId))})}))}:{};var e}),In={pageContext:{publisher:"aftonbladet",countryCode:M.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"}},On={nyheter:"nyheter",sport:"sportbladet",noje:"nojesbladet",family:"family",matdryck:"matdryck",wellness:"wellness",minekonomi:"minekonomi",resa:"resa",harligthemma:"harligthemma"},Sn=e=>(null==e?void 0:e.parent)?[...Sn(e.parent),e.shortPath||"unknown"]:[],Tn=(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]=Sn(e);return On[n]||"ovrigaavdelningar"})(e)}_{position}`,An={aftonbladet:In},kn={aftonbladet:(e,t)=>{if(!e)return null;return{invCode:Tn(e,t),videoOverlayInvCode:"se-aftonbladet-{deviceType}-other-{position}",sections:Sn(e).join(":")}}},Pn=e=>{switch(e){case"auto":return 1;case"silent":return 2;default:return 3}},En=new Map([[1,"autoplay"],[2,"muted-autoplay"],[3,"click-to-play"]]),xn="se-generic",jn="aa-sch",_n="kv_",$n="pause",Nn="{deviceType}",Ln="{position}",qn="afp_",Dn=new Set(Object.values({PREROLL:"preroll",BUMPER:"bumper",MIDROLL:"midroll"})),Mn="1-1",Fn="16-9",Bn="3-4",Rn="9-16",Un="responsive",Kn={[Mn]:1,[Fn]:1.78,[Rn]:.56,[Un]:1},Hn={[Mn]:1,[Fn]:1.78,[Bn]:1.33,[Rn]:.56},zn=(e,t,n,i)=>{const{invCode:r="",videoOverlayInvCode:o}=null!=e?e:{},s=Tt===n?Pt:Et,d=r.replace(Nn,s);return(e,n)=>{if(e===$n)return(e=>e.replace("tv-","").replace("-afp_","-afp-").replace(Ln,$n).replace(/-([a-z]+)_/,"-article-"))(d);if(n&&Dn.has(e)){return(i&&o?o:t.frontpageInvCodeTemplate).replace(Nn,s).replace(Ln,e)}return d.replace(Ln,e)}},Wn=()=>{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"},Vn=(e,t)=>{const n=Object.entries(e);return n.reduce((n,[i,r])=>{const o=Math.abs(e[n]-t);return Math.abs(r-t)<o?i:n},n[0][0])},Gn=()=>{var e,t;const n=jwplayer().getContainer(),i=null!==(t=null===(e=document.getElementById(n.id))||void 0===e?void 0:e.parentElement)&&void 0!==t?t:null;return i&&"number"==typeof i.offsetWidth&&"number"==typeof i.offsetHeight&&0!==i.offsetHeight?i.offsetWidth/i.offsetHeight:1},Xn=()=>{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},Jn=()=>{const e=null!==(t=Xn()[9])&&void 0!==t?t:null;var t;const n=(()=>{var e;return null!==(e=Xn()[2])&&void 0!==e?e:null})();return e?Number(Boolean(e))+Number(Boolean(n)):0},Qn=()=>Object.fromEntries(new URLSearchParams(window.location.search)),Yn=(e,t)=>l(void 0,void 0,void 0,function*(){const{tcf:n,pageContext:{publisher:i,countryCode:r}}=t,{width:o,height:s}={width:window.innerWidth,height:window.innerHeight},d={isMobileApp:e.isApp,countryCode:r,publisher:i,pageType:"front",deviceType:e.deviceType},a=(yield K(n,e.isApp,r,"video"))?"1":"0",l=yield Cn(),c=yield Ce(r),u=yield rn({tcf:n,pageContext:d}),p=null!==(v=window.location.pathname.split("/").slice(-2,-1).pop())&&void 0!==v?v:"";var v;const g=((e=1)=>Vn(Hn,Number(e.toFixed(2))))(e.instreamAspectRatio),h=(y=e.playerAspectRatio)?Vn(Kn,Number(y.toFixed(2))):Un;var y,m;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${jn}-country_code`]:r,[`${jn}-publisher`]:i,[`${jn}-supply_type`]:(m=e.deviceType,m===Tt?At:kt),[`kw_${jn}-page_type`]:"collection",[`${jn}-page_type`]:"collection",[`${xn}-appmode`]:e.isAndroidApp?"hybrid":"notinapp",[`kw_${xn}-page`]:"index",[`${xn}-page`]:"index",[`${xn}-screenheight`]:String(window.screen.height),[`${xn}-screenwidth`]:String(window.screen.width),[`${xn}-viewportheight`]:String(s),[`${xn}-viewportwidth`]:String(o),[`${xn}-loggedin`]:e.isUserLoggedIn?"yes":"no",[`${xn}-mobile-os`]:Wn(),[`${xn}-audience`]:void 0,[`${xn}-externalid_src`]:Jn(),[`${xn}-tags`]:e.tags,[`${xn}-articleid`]:p,"article-id":p},yield Y(Object.assign(Object.assign({},t),{pageContext:d}))),u&&{external_uid:u}),e.isUserPresentOnFrontPage&&e.isInitialVideo&&{[`${xn}-tvtags`]:"vinjett"}),e.pageAdsKeywords),Object.keys(Qn()).some(e=>e.includes(_n))&&(()=>{const e=Qn(),t=Object.fromEntries(Object.entries(e).filter(([e])=>e.startsWith(_n)).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":a,"kw_aa-sch-cmp_advertising":a,"aa-sch-instream_player_aspectratio":g,"aa-sch-player_aspectratio":h}),l),{eids:c})}),Zn=["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"],ei=["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"],ti=["external_uid","gdpr","gdpr_consent","eids","article-id"],ni=(e,t)=>{const n=[...Zn,...t.additionalFilterKeys];return Object.fromEntries(Object.entries(e).filter(([e])=>!n.includes(e)).map(([e,t])=>[e.includes("kw")||ti.includes(e)?e:`kw_${e}`,t]))},ii=e=>Object.fromEntries(Object.entries(e).filter(([e])=>ei.includes(e))),ri=(e,t)=>l(void 0,void 0,void 0,function*(){var n,i,r,o;const s=(e=>{var t;An[e]||b(`[video] No config found for publisher "${e}"`);return null!==(t=An[e])&&void 0!==t?t:In})(e.publisher),d=(e=>{var t;return null!==(t=kn[e])&&void 0!==t?t:kn.aftonbladet})(e.publisher)(e.assetSection,e.isLiveStudio),a="/"===window.location.pathname,l=null===(i=null===(n=t.attributes)||void 0===n?void 0:n.id)||void 0===i?void 0:i.toString(),c=e.assetId===l,u=null!==(r=Number(e.aspectRatio))&&void 0!==r?r:1,p=c?"preroll":"bumper";var v;return{siteConfig:s,siteVideoParams:d,isUserPresentOnFrontPage:a,adsKeywords:yield Yn({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:a,isInitialVideo:c,instreamAspectRatio:u,playerAspectRatio:Gn(),isApp:e.isApp,deviceType:e.deviceType,isAndroidApp:e.isAndroidApp},s),prerollPlacementFormat:p,playbackMethod:Pn(e.startMode)}}),oi=(e,t)=>{const{siteConfig:n,siteVideoParams:i,isUserPresentOnFrontPage:r,adsKeywords:o,prerollPlacementFormat:s,playbackMethod:d}=e,{invCode:a}=i||{},l=zn(i,n,t.deviceType,t.isUsedInOverlayVideoPlayer),c=((e="")=>t=>e.includes(qn)?`${qn}${t}`:t)(a),u=window.location.href;return{member:n.memberId,options:{autoplayMuted:!0,vpaidcontrols:!0},adSlots:{schedule:{preroll:{inv_code:l(s,r),"se-generic-playback-method":En.get(d),"kw_se-generic-adformat":c(s)},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)),ii(o)),{vskippable:"0",referrer:u,vplaybackmethod:d})},adPlacements:{schedule:{pause:{invCode:l("pause"),sizes:[[825,424],[1280,720],[2,1]]}},params:{keywords:Object.assign(Object.assign({},o),{"se-generic-adformat":c("pause")})}}}},si=e=>t=>l(void 0,void 0,void 0,function*(){const n=yield ri(e,t);return oi(n,e)}),di={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]}]},ai={no:"NOK",se:"SEK"},li={no:"no",se:"sv"};class ci{buildFetchObject(e,n,i,r){return l(this,void 0,void 0,function*(){const{pageContext:{countryCode:o},pageOptions:s}=r,{invCode:d,xandrPlacementId:a}=e,l=yield Cn(),c=(u=Object.assign(Object.assign({},n),i),Object.entries(u).flatMap(([e,t])=>void 0===t?[]:Array.isArray(t)?t.map(t=>`${e}=${t}`):[`${e}=${t}`]).join(","));var u;const p=new URL(window.location.href),v=(e=>{const{allowedFormats:t}=e;if(!t||t.includes("native"))return{request:JSON.stringify(di),ver:"1.1"}})(e),g=(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:t(36),imp:[Object.assign(Object.assign(Object.assign({id:d},v&&{native:v}),g&&{banner:g}),{secure:1,tagid:d,ext:{appnexus:Object.assign(Object.assign({},a&&{placement_id:a}),{code:d,keywords:c,use_pmt_rule:!1})}})],site:{domain:p.hostname,page:p.href,publisher:{id:String(s.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||li[o]||"no").split("-")[0]},regs:{ext:{gdpr:l.gdpr||0}},user:{id:yield rn(r),ext:{consent:l.gdpr_consent||"",eids:we(o)}},at:1,cur:[ai[o]],source:{tid:t(36)},ext:{prebid:{bidder:{appnexus:{member:s.member}}}}}})}fetchData(e,t,n,i){return l(this,void 0,void 0,function*(){try{f("Starting fetching Studio ad from Xandr:",wn);const r=new Headers({"Content-Type":"application/json"}),o=new URLSearchParams(window.location.search),s=new URLSearchParams(["openRTBDebugMemberOverride","openRTBNewsroomOverride","openRTBForceNativeDesc2Override"].flatMap(e=>{const t=o.get(e);return t?[[e,t]]:[]})),d=s.size>0?`${wn}?${s.toString()}`:wn,a=yield this.buildFetchObject(e,t,n,i),l=yield re.post(d,r,a);return f("Fetch operation completed successfully.",l),l}catch(e){f("Error during fetch operation:",e)}return null})}}const ui=0,pi=3,vi=e=>`externalImpId:'${e}'`,gi=(e,t)=>t?Object.assign(Object.assign({},e),{"aa-sch-ssa-native-ad":"true","aa-sch-ssa-format":"NATIVE_CONTENT","aa-sch-ssa-market":"XNO","aa-sch-ssa-cat":["ssa_1","ssa_2","ssa_3","ssa_4","ssa_5","ssa_6","ssa_7","ssa_8","ssa_9","ssa_10","ssa_11","ssa_12","ssa_13","ssa_14","ssa_15","ssa_16","ssa_17","ssa_18","ssa_19","ssa_20","ssa_21","ssa_22","ssa_23","ssa_24","ssa_25","ssa_26","ssa_27","ssa_28","ssa_29","ssa_30"]}):e,hi=e=>{var t;const{pageSetup:{tag:{forwardExternalImpId:n=!1}={}}={},pulse:i}=T.get(),{targetId:r,sizes:o,keywords:s,allowedFormats:d,invCode:a,ssaNativeAdEnabled:l=!1,nativeCustomProperties:c,safeframeConfig:u,dynamicSizeWidthCheck:p=!1,globalPlacementId:v}=(e=>{var t;if(!e.takeoverCookieCapForSharedPlacement||cn())return e;const n=null===(t=e.keywords)||void 0===t?void 0:t["no-sno-adformat"],i=Array.isArray(n)?n.filter(e=>e!==on):n,r=Object.assign(Object.assign({},e.keywords),n&&{"no-sno-adformat":i}),o=e.sizes.filter(([e,t])=>4!==e||4!==t);return Object.assign(Object.assign({},e),{sizes:o,keywords:r})})(e),g=Object.assign({invCode:a,sizes:o,targetId:r,keywords:gi(s,l),allowedFormats:d,dynamicSizeWidthCheck:p,globalPlacementId:v},u&&{safeframeConfig:u}),h=(e=>{var t,n;const i=null===(n=null===(t=null==e?void 0:e.instance)||void 0===t?void 0:t.state)||void 0===n?void 0:n.pageViewId;return i?(f("Pulse state pageViewId is:",i),i):(f("Pulse state does not contain field pageViewId or it is empty"),"")})(i);n&&h&&(f("External Impression ID assigned to defineTag:",vi(h)),g.externalImpId=vi(h));const y=(e=>Object.entries({video:{required:!1},address:{required:!1},saleprice:{required:!1},rating:{required:!1},price:{required:!1},phone:{required:!1},likes:{required:!1},downloads:{required:!1},customIcon1:{required:!1},customIcon2:{required:!1},customDisplayUrl1:{required:!1},customBody1:{required:!1},customBody2:{required:!1},customBody3:{required:!1},customBody4:{required:!1},customBody5:{required:!1}}).reduce((t,[n,i])=>((null==e?void 0:e.includes(n))&&(t[n]=i),t),{customTitle1:{required:!1},customTitle2:{required:!1},customTitle3:{required:!1},customTitle4:{required:!1},customDisplayUrl2:{required:!1},title:{required:!1},body:{required:!1},image:{required:!1},icon:{required:!1},sponsoredBy:{required:!1},cta:{required:!1},clickUrl:{required:!1},desc2:{required:!1},displayUrl:{required:!1},description:{required:!1}}))(c);return(null===(t=e.allowedFormats)||void 0===t?void 0:t.includes("native"))&&(g.native=y),g},yi=(e,t,n,i)=>{const r=t.parentElement;if(!r)return;const o=e?`-${e}`:"",s=i?`__${i}`:"",d=`advertory${o}-${n}${s}`,a=`advertory${o}-${n}-wrapper${s}`;t.classList.remove(...t.classList),r.classList.remove(...r.classList),t.classList.add(d),r.classList.add(a),t.dataset.adType=n},mi={FINN_BLINK:"finn-blink",NATIVE_AD:"native-ad"},fi=(e,t,n)=>{var i,r,o,s;const d=document.createElement("div");d.id=`${e}-button`,t.appendChild(d);(null===(r=null===(i=window.apntag.requests)||void 0===i?void 0:i.tags[e])||void 0===r?void 0:r.adResponse)||(null!==(o=(s=window.apntag).requests)&&void 0!==o||(s.requests={tags:{}}),window.apntag.requests.tags[e]=Object.assign(Object.assign({},window.apntag.requests.tags[e]),{adResponse:{ads:[{creative_id:n}]}})),(e=>{var t;!document.querySelector(`#gdprAdTransparencyCogWheelButton-${e}`)&&(null===(t=window.gdpr)||void 0===t?void 0:t.setupButton)&&window.gdpr.setupButton(e)})(e);const a=d.firstElementChild;a&&t.insertBefore(a,d),d.remove()},bi=(e,t,n)=>{var i;const r=t.replace(/-[^-]*$/,"");return null===(i=null==n?void 0:n[e].find(e=>e.targetId===r))||void 0===i?void 0:i.invCode},wi=(e,t)=>{new IntersectionObserver((e,n)=>{for(const i of e)if(i.intersectionRatio>=.5){n.disconnect(),t();break}},{threshold:.5}).observe(e)};class Ci{constructor(e,t){this.pulse=e,this.publisher=t}static extractAdFormat(e){return e.replace(/_\d.*$/,"")}computeInvCode(){}buildPlacement(e){return{placementId:null!=e?e:""}}trackLoad(){var e,t;null===(t=(e=this.pulse).trackLoadAd)||void 0===t||t.call(e,{object:this.buildAdObject(),placement:this.buildPlacement(this.computeInvCode())})}trackImpression(){const e=document.querySelector(`#${this.getTargetId()}`);e&&wi(e,()=>{var e,t;return null===(t=(e=this.pulse).trackImpressionAd)||void 0===t?void 0:t.call(e,{object:this.buildAdObject(),placement:this.buildPlacement(this.computeInvCode())})})}trackEngagement(e){var t,n;null===(n=(t=this.pulse).trackEngagementAd)||void 0===n||n.call(t,{object:this.buildAdObject(),placement:this.buildPlacement(null!=e?e:this.computeInvCode()),engagement:{action:"Click",elementName:this.getTargetId()}})}}class Ii extends Ci{constructor(e,t){var n;super(e.pulse.instance,null!==(n=e.pageContext.publisher)&&void 0!==n?n:""),this.xandrParams=e,this.adObj=t}getTargetId(){return this.adObj.targetId}computeInvCode(){const{pageContext:{deviceType:e},placements:t}=this.xandrParams;if(e)return bi(e,this.adObj.targetId,t)}buildAdObject(){const e=Ii.extractAdFormat(this.adObj.targetId);return Object.assign(Object.assign({objectId:this.adObj.targetId,objectSdrn:`sdrn:${this.publisher}:ad-slot:${e}`,platform:"microsoft",adFormat:e,creativeType:this.adObj.adType,demandChannel:9700===this.adObj.buyerMemberId?"direct":"programmatic"},null!=this.adObj.creativeId&&{creativeId:String(this.adObj.creativeId)}),{opportunityId:this.adObj.uuid,size:`${this.adObj.width}x${this.adObj.height}`})}}const Oi=(e,t)=>{Si(e,t),Ai(e,t)},Si=(e,t)=>{var n,i;const r=document.querySelector(`#${e.targetId}`);if(!r||!(null===(n=e.native)||void 0===n?void 0:n.clickTrackers))return;const o=null!==(i=null==t?void 0:t.clickLinkSelector)&&void 0!==i?i:"a.ad-link";(null==r?void 0:r.querySelectorAll(o)).forEach(n=>{"true"!==n.dataset.tracked&&(n.addEventListener("click",()=>{var n,i,r,o,s,d;for(const t of null!==(i=null===(n=e.native)||void 0===n?void 0:n.clickTrackers)&&void 0!==i?i:[])Pi(t);if((null===(r=null==t?void 0:t.pulse)||void 0===r?void 0:r.instance)&&(null===(o=null==t?void 0:t.pulse)||void 0===o?void 0:o.adTrackingEnabled)){const n={publisher:null!==(s=t.publisher)&&void 0!==s?s:"",deviceType:null!==(d=t.deviceType)&&void 0!==d?d:Tt};new Ii({pulse:t.pulse,placements:t.placements,pageContext:n},e).trackEngagement()}}),n.dataset.tracked="true")})},Ti=e=>{var t;const{native:{impressionTrackers:n}={}}=e,i=null==n?void 0:n.some(e=>e.includes("googleads")),r="function"==typeof(null===(t=window.apntag)||void 0===t?void 0:t.fireImpressionTrackers)&&!!e.tagId;i||!r?null==n||n.forEach(ki):window.apntag.fireImpressionTrackers(e);const o=new CustomEvent("advertory:nativeImpression",{detail:{ad:e}});window.dispatchEvent(o)},Ai=(e,t)=>{var n;let i=!1;const r=document.querySelector(`#${e.targetId}`);if(!r||!e.native)return;const{deviceType:o,appearanceConfig:s,nativeTrackingConfig:{fireImpressionsBasedOnAppearanceThreshold:d=!1}={}}=t,a=d?{rootMargin:`${l=null!==(n=null==s?void 0:s.defaultThreshold[null!=o?o:Tt])&&void 0!==n?n:0}px 0px ${l}px 0px`}:{};var l;const c=new IntersectionObserver(t=>{if(!i)for(const n of t)if(n.isIntersecting){i=!0,Ti(e),c.disconnect();break}},a);c.observe(r)},ki=e=>{const t=e.includes("googleads");"function"!=typeof window.navigator.sendBeacon||t?Pi(e):window.navigator.sendBeacon(e)},Pi=e=>{re.get(e,{mode:"no-cors"}).catch(t=>console.warn(`Tracker ${e} failed. Error: ${t||"Unknown"}`))},Ei=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:[]}),xi=(e,t)=>l(void 0,void 0,void 0,function*(){var n,i;const{pageContext:{deviceType:r},appearanceConfig:o}=t,s=null==o?void 0:o.defaultThreshold[r],d=null!==(n=e.requestThreshold)&&void 0!==n?n:s,a=document.getElementById(e.targetId);if(!a)return void f(`Server-side ad container not found: ${e.targetId}`);yield new Promise(e=>{const t=new IntersectionObserver((t,n)=>{t.some(e=>e.isIntersecting)&&(n.disconnect(),e())},(e=>({rootMargin:`${e}px 0px ${e}px 0px`}))(d));t.observe(a)});const{prepareTag:l}=T.getHandlers(),c=P.getData("alertoryConfigKeywords"),u=null!==(i=l(hi(e)).keywords)&&void 0!==i?i:{},p=new ci,v=yield p.fetchData(e,c,u,t);v&&(((e,t,n)=>{const i=n===Ot?t.mobileHTML:t.desktopHTML;if(i){if(t.adType===ui){const n=document.createElement("iframe");n.width=String(t.bid.w),n.height=String(t.bid.h),n.style.overflow="hidden",n.style.border="none",n.srcdoc=`<style>html,body{margin:0;overflow:hidden;}</style>${i}`,e.appendChild(n)}else e.innerHTML=i;e.classList.add("ad-loaded")}})(a,v,r),v.adType===pi&&(yi(t.pageContext.publisher,a,mi.NATIVE_AD,t.pageContext.pageType),Oi({targetId:e.targetId,native:{clickTrackers:v.clickTrackers,impressionTrackers:v.impTrackers}},{deviceType:r,appearanceConfig:o,nativeTrackingConfig:t.nativeTrackingConfig,clickLinkSelector:"a"})),((e,t,n,i)=>{var r,o,s;let d;(null===(r=window.apntag.requests)||void 0===r?void 0:r.tags[e])||(null!==(o=(s=window.apntag).requests)&&void 0!==o||(s.requests={tags:{}}),window.apntag.requests.tags[e]={invCode:t,adResponse:{ads:[{creative_id:Number(null==i?void 0:i.adid)}]}}),!!n.querySelector("iframe")||(d=document.createElement("iframe"),n.appendChild(d)),fi(e,n,Number(null==i?void 0:i.adid)),null==d||d.remove()})(e.targetId,e.invCode,a,v.bid))}),ji=(e,t)=>{e.forEach(e=>xi(e,t).catch(e=>{f("Failed to handle server-side ad:",e)}))},_i="[data-carousel-track]",$i=({image_link:e,title:t})=>{const n=document.createElement("figure"),i=document.createElement("img");return n.className="carousel-slide",n.setAttribute("data-carousel-slide",""),i.className="slide-image",i.src=e,i.alt=t,i.loading="lazy",i.draggable=!1,n.appendChild(i),n},Ni=e=>Boolean(e.title&&e.link&&e.image_link),Li=(e,t)=>l(void 0,void 0,void 0,function*(){const n=e.querySelector(_i);var i;if(n)if(t&&(e=>{try{return"https:"===new URL(e).protocol}catch(e){return!1}})(t))try{const r=yield(e=>l(void 0,void 0,void 0,function*(){try{const t=yield re.get(e,{timeout:5e3});return t&&Array.isArray(t.items)?t:(b("Carousel feed has an unexpected shape",{url:e}),null)}catch(t){return b("Failed to fetch carousel feed",{url:e,error:t}),null}}))(t);if(!r)return void e.replaceChildren();const o=r.items.filter(Ni);if(!o.length)return void b("Carousel feed has no usable items");yield import("./styles-BpMDR0GA.js");const s={title:(i=e).querySelector("[data-product-title]"),description:i.querySelector("[data-product-description]"),price:i.querySelector("[data-product-price]"),link:i.querySelector("[data-product-link]")};n.replaceChildren(...o.map($i)),(({root:e,onChange:t})=>{var n;const i=e.querySelector("[data-carousel-viewport]"),r=e.querySelector(_i),o=Array.from(null!==(n=null==r?void 0:r.querySelectorAll("[data-carousel-slide]"))&&void 0!==n?n:[]);if(!i||!r||!o.length)return;const s=o.length,d=[o[s-1].cloneNode(!0),...o,o[0].cloneNode(!0)];let a=1,l=null,c=0,u=!1;const p=e=>{const t=d[0].offsetWidth,n=Number.parseFloat(getComputedStyle(r).columnGap)||0,o=(i.clientWidth-t)/2-a*(t+n);r.style.transition=e?"transform 360ms cubic-bezier(.22, .61, .36, 1)":"none",r.style.transform=`translate3d(${o+c}px, 0, 0)`,r.offsetWidth},v=(e,n=!0)=>{a=e,p(n),d.forEach((e,t)=>e.classList.toggle("is-active",t===a)),null==t||t((a-1+s)%s)},g=()=>{0===a?v(s,!1):a===s+1&&v(1,!1)},h=()=>{if(null===l)return;const e=Math.abs(c)>=.12*i.clientWidth?-Math.sign(c):0;l=null,c=0,v(a+e),window.setTimeout(()=>{u=!1})};r.replaceChildren(...d),r.addEventListener("transitionend",e=>{e.target===r&&g()}),i.addEventListener("pointerdown",e=>{g(),l=e.clientX,i.setPointerCapture(e.pointerId),p(!1)}),i.addEventListener("pointermove",e=>{null!==l&&(c=e.clientX-l,u=u||Math.abs(c)>6,p(!1))}),i.addEventListener("pointerup",h),i.addEventListener("pointercancel",h),i.addEventListener("click",e=>{u&&(e.preventDefault(),e.stopPropagation())},!0),e.addEventListener("dragstart",e=>e.preventDefault()),v(1,!1)})({root:e,onChange:e=>(({title:e,description:t,price:n,link:i},r)=>{e&&(e.textContent=r.title),t&&(t.textContent=r.description),n&&(n.textContent=r.sale_price||r.price),i&&(i.href=r.link)})(s,o[e])}),f("Carousel mounted",{items:o.length})}catch(t){b("Carousel could not be rendered",t),e.replaceChildren()}else b("Carousel feed url is missing or not a valid https url",{url:t})}),qi="dom-discovered",Di=e=>`${Math.max(0,Math.round(e))}px`,Mi=e=>{const{marginTop:t,marginBottom:n}=getComputedStyle(e);return e.getBoundingClientRect().height+parseFloat(t||"0")+parseFloat(n||"0")},Fi=(e,t)=>{const n=document.body;if(n)for(const t of Object.keys(e)){const i=e[t];n.style.setProperty(t,i)}},Bi=()=>{const{pageSectionsSelectors:e}=T.get();(null==e?void 0:e.header)&&(e=>{const t=document.querySelector(e);if(!t)return;const n=Mi(t);Fi({"--advertory-header-height":Di(n)})})(e.header)},Ri=()=>{const e=Ze();if(!e)throw new Error("Ad server driver is not set, pass a driver to init()");return e};let Ui=[];const Ki=["takeover","wallpaper"],Hi=(e,t)=>{var n,i;const{initNativeAd:r}=T.getHandlers();null==r||r(e,null!==(i=null!=t?t:null===(n=window.advertory)||void 0===n?void 0:n.siteConfig)&&void 0!==i?i:T.get())},zi=e=>{const t=(e=>{var t;const n=P.getData("alertoryConfigKeywords"),{queryConfig:i,placements:r,tcf:o,glimr:s,appearanceConfig:d,pageContext:{publisher:a,countryCode:l,pageType:c,deviceType:u,isMobileApp:p=!1},pageOptions:{member:v},pageSetup:g,takeover:h,fullscreenScroll:y,fullWidth:m}=e,f=null!==(t=null==i?void 0:i.batchSize)&&void 0!==t?t:O;return{xandr:{member:v,keywords:n,tags:[]},advertory:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({pageContext:{publisher:a,countryCode:l,pageType:c,deviceType:u,isMobileApp:p},pageSetup:g,placements:r,tcf:o,queryConfig:Object.assign(Object.assign({},i),{batchSize:f})},s&&{glimr:s}),d&&{appearanceConfig:d}),h&&{takeover:h}),y&&{fullscreenScroll:y}),m&&{fullWidth:m})}})(e);window.advertory={initialized:!0,version:"3.18.0",siteConfig:e,renderNativeAd:Hi,alertoryConfig:t}},Wi=()=>l(void 0,void 0,void 0,function*(){yield Ri().setTargeting()}),Vi=e=>l(void 0,void 0,void 0,function*(){var t,n,i,r;const o=Ri(),s=null!==(n=yield null===(t=o.adjustPlacementsBeforeRequest)||void 0===t?void 0:t.call(o,e))&&void 0!==n?n:e;null===(i=o.definePlacements)||void 0===i||i.call(o,s),yield null===(r=o.requestPlacements)||void 0===r?void 0:r.call(o,s)}),Gi=(e,t)=>l(void 0,void 0,void 0,function*(){const{appearanceConfig:n,pageContext:{deviceType:i}}=T.get(),{requestThreshold:r,refresh:o}=e,s=(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[i];s&&(f("core showAd - subscribe for show tag with thresholds",{placement:e,ad:t,requestThreshold:r,deviceDefaultThreshold:d}),yield zt(s,null!=r?r:d)),s&&(null==o?void 0:o.scroll)&&(f("core showAd - setup refreshing",{placement:e,ad:t}),s.dataset.refresh=o.scroll.toString())}),Xi=e=>e.some(({targetId:e})=>Ki.some(t=>e.includes(t))),Ji=e=>l(void 0,void 0,void 0,function*(){var t;if(!(null===(t=null===window||void 0===window?void 0:window.advertory)||void 0===t?void 0:t.initialized))return;const[n,i]=(e=>e.reduce(([e,t],n)=>{var i;return(null===(i=null==n?void 0:n.finnBlink)||void 0===i?void 0:i.loadOnlyFinnBlink)?[[...e,n],t]:[e,[...t,n]]},[[],[]]))(e),r=(e=>{const{queryConfig:{placementBatches:t,batchSize:n=O}={},pageContext:{deviceType:i}}=T.get(),r=Nt(e),o=Object.keys((null==t?void 0:t[i])||{}).map(e=>r[e]||[]).filter(e=>e.length>0),s=new Set(o.flat().map(({targetId:e})=>e)),d=e.filter(({targetId:e})=>!s.has(e));return[...o,...Wt(d,n)]})(i);for(const e of r)Xi(e)?(f("core loadAds without lazy loading",{placementsToLoad:e}),yield Vi(e)):e.length&&(f("core loadAds with lazy loading",{placementsToLoad:e}),yield Qi(e));const{finnBlink:o}=T.get();if((null==o?void 0:o.enabled)&&n.length>0){const{handleFinnBlinkOnlyPlacements:e}=yield import("./index-DT8GWwa8.js");yield e(n)}}),Qi=e=>l(void 0,void 0,void 0,function*(){const{queryConfig:{lazyLoadingV3:{enabled:t=!1,rootMargin:n="200% 0px"}={}}={}}=T.get(),i=[];if(!t)return f("lazy load is not enabled",{placements:e}),void(yield Vi(e));const r=new IntersectionObserver((t,n)=>{t.filter(({isIntersecting:e,target:{id:t}})=>e&&!t.includes("wallpaper")).forEach(t=>{f("lazy load is enabled - handler start",{loadedTargetIds:i,placements:e});const r=e.every(e=>i.includes(e.targetId)),o=e.map(e=>e.targetId);!r&&i.push(...o),!r&&Vi(e),f("lazy load is enabled - handler stop",{loadedTargetIds:i,placements:e,arePlacementsLoaded:r,targetIds:o}),n.disconnect()})},{rootMargin:n});e.forEach(e=>{const t=document.getElementById(e.targetId);t&&(f("lazy loading - observe element",{targetId:e.targetId,element:t}),r.observe(t))})}),Yi=()=>l(void 0,void 0,void 0,function*(){const e=(()=>{const e={adRequested:[],adRendered:[]};return{emit:(t,n)=>l(void 0,void 0,void 0,function*(){yield Promise.all(e[t].map(e=>e(n)))}),on:(t,n)=>{e[t].push(n)}}})();e.on("adRendered",e=>l(void 0,void 0,void 0,function*(){if(!e||!("targetId"in e))return;const t=Ui.find(({targetId:t})=>t===e.targetId);t&&(yield Gi(t,e),Ui=Ui.filter(e=>e.targetId!==t.targetId))})),yield Ri().bindEvents(e)}),Zi=(e,t)=>l(void 0,void 0,void 0,function*(){var n,i,r,o;if(f(`Advertory update called with config: ${JSON.stringify(e)}, options: ${JSON.stringify(t)}`),!(null===(n=null===window||void 0===window?void 0:window.advertory)||void 0===n?void 0:n.initialized))return f("Advertory update skipped - Advertory is not initialized"),[];const{clearAds:s,disableAds:d,reloadExistingAds:a,renderFinnBlinkPlacements:l,contextSelector:c}=null!=t?t:{},u=Object.keys(null!=e?e:{}).length>0;let p=[];if(d)return bt(),Ui=[],Ct(),[];if(s&&(p=null!==(i=bt())&&void 0!==i?i:[]),s&&!u)return[];if(s&&u&&(Ui=[],Ct()),a&&(bt(),document.querySelectorAll('[data-advertory-ad-rendered="true"]').forEach(e=>{ut(e.id)})),yield It(e),(null==e?void 0:e.pageSectionsSelectors)&&Bi(),yield Wi(),Ri().capabilities.tagDefinition===qi)return f("Advertory update - dom-discovered driver finds its own placements, requesting the page"),yield null===(o=(r=Ri()).requestPage)||void 0===o?void 0:o.call(r),Ui;const{clientSidePlacements:v,serverSidePlacements:g}=Ei(_t(c)),h=[...v,...g];((e,t)=>{if(0===e.length)return;const n=new Set(t.map(({targetId:e})=>pt(e)));e.filter(e=>n.has(e)).forEach(e=>ut(e))})(p,h),wt(p,h);let y=v;return l&&(y=y.filter(e=>Me(e.targetId))),ji(g,T.get()),y.length>0&&(Ui=[...Ui,...y.map(e=>Object.assign({},e))],Ri().capabilities.refresh&&(Xt(y),Qt(y)),yield Ji(y)),Ui}),er=(e,t,n)=>l(void 0,void 0,void 0,function*(){var i,r;Ye=n,T.set(e),T.setHandlers(Object.assign(Object.assign({},t),e.customHandlers));const{norstat:o,kilkaya:s,rightColumnSplit:d,finnBlink:a}=e;P.initialize(),window.addEventListener("message",Kt,!1);const[c]=yield Promise.allSettled([n.setup(),ye(e),l(void 0,void 0,void 0,function*(){const{developerOptions:{gptUrl:e}={},tcf:t,pageContext:{isMobileApp:n,countryCode:i}}=T.get();(yield K(t,n,i,"gpt-endpoint"))&&(yield Oe(null!=e?e:"https://securepubads.g.doubleclick.net/tag/js/gpt.js"))}),l(void 0,void 0,void 0,function*(){const{brandmetrics:{enabled:e,brandmetricsUrl:t}={},tcf:n,pageContext:{isMobileApp:i,countryCode:r}}=T.get(),{getConsentAsync:o}=U(n,0,r),s=yield o();if(e&&t&&s){if(yield Oe(t),document.querySelector(`.${mn}`))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(mn)})&&(t.disconnect(),window._brandmetrics=window._brandmetrics||[],window._brandmetrics.push({cmd:"_loadsurvey"}))}}).observe(document,{childList:!0,subtree:!0,attributes:!0})}}),z(),l(void 0,void 0,void 0,function*(){const{gdpr:{gdprUrl:e,allowHidingAds:t=!0}={}}=T.get();t&&(window.gdpr=window.gdpr||{},window.gdpr.allowHidingAds=!0),yield Oe(null!=e?e:"https://cogwheel.inventory.schibsted.io/prod/latest/gdpr-bundle.js")})]);if("rejected"===c.status)throw c.reason;if(f("Driver has been set up"),null==o?void 0:o.enabled){const{loadNorstat:e}=yield import("./index-TbvSGRB5.js");yield e()}if(f("Libraries have been loaded and trackers have been set"),Bi(),yield Yi(),yield Wi(),f("Page options have been set"),zi(e),f("Advertory is setup on window"),n.capabilities.tagDefinition===qi)return yield null===(i=n.requestPage)||void 0===i?void 0:i.call(n),void f("Ads requested via dom-discovered driver");const{clientSidePlacements:u,serverSidePlacements:p}=Ei(_t());if(Ui=u,ji(p,e),n.capabilities.refresh&&(Xt(Ui),Qt(Ui)),yield Ji(Ui),f("Ads has been loaded",Ui),gn(Ui),null==a?void 0:a.enabled){const{replaceAdsWithFinnBlink:t}=yield import("./index-DT8GWwa8.js");yield t(null===(r=null==e?void 0:e.pageContext)||void 0===r?void 0:r.deviceType,e.finnBlink)}if(null==d?void 0:d.enabled){const{initRightColumnSplit:t}=yield import("./index-DIuXGid2.js");t(e.rightColumnSplit)}if(null==s?void 0:s.enabled){const{runKilkaya:t}=yield import("./index-BZztN2dU.js");yield t(e)}}),tr=(e,t,n)=>l(void 0,void 0,void 0,function*(){f(`Received configuration passed to Advertory: ${JSON.stringify(e)}`),yield((e,t,n)=>l(void 0,void 0,void 0,function*(){var i,r;const{initConsentManager:o,getConsentAsync:s}=U(e.tcf,null===(i=e.pageContext)||void 0===i||i.isMobileApp,null===(r=e.pageContext)||void 0===r?void 0:r.countryCode),d=yield yt(e);yield fn(),yield hn(o),yield hn(s),f("TCF resolved successfully"),yield er(d,t,n),f("Run function resolved successfully")}))(e,t,n)}),nr={no:{adText:"ANNONSE",adFrom:"ANNONSE FRA",adContent:"ANNONSØRINNHOLD",adContentFrom:"ANNONSØRINNHOLD FRA",sponsorstripeInfoOpenButtonLabel:"Sponset innhold - Klikk for detaljer",sponsorstripeInfoCloseButtonLabel:"Lukk",sponsorstripeInfoText:"Annonsøren som presenterer denne saken har betalt for profilering av logoen i artikler som omhandler denne innholdskategorien",readMoreLabel:"Les mer"},se:{adText:"ANNONS",adFrom:"ANNONS FRÅN",adContent:"EXTERN LÄNK",adContentFrom:"EXTERN LÄNK FRÅN",sponsorstripeInfoOpenButtonLabel:"Sponsrat innehåll - Klicka för mer information",sponsorstripeInfoCloseButtonLabel:"Nära",sponsorstripeInfoText:"Annonsören som presenterar den här artikeln har betalat för att få sin logotyp profilerad i artiklar som handlar om den här innehållskategorin",readMoreLabel:"Läs mer"}},ir=["sponsor","seamless"],rr=["shopping"],or=(e,t,n,i)=>{var r;const{image:o,icon:s,sponsoredBy:d,title:a,clickUrl:l,cta:c,body:u,desc2:p,video:v,description:g,customTitle1:h,customTitle2:y,customTitle3:m,customTitle4:f,customBody1:b,customBody2:w,customBody3:C,customBody4:I,customBody5:O,customIcon1:S,customIcon2:T,customDisplayUrl1:A,customDisplayUrl2:k}=e,P=(e,t="")=>{var n;return e?null!==(n=e.url)&&void 0!==n?n:e:t};return Object.assign({containerId:n,img:P(o),imgWidth:null==o?void 0:o.width,imgHeight:null==o?void 0:o.height,imgAltText:null!=a?a:"",logo:(()=>{var e;const t=ir.some(e=>null==p?void 0:p.includes(e))&&"dark"===(null===(e=i.appearanceConfig)||void 0===e?void 0:e.theme)&&S;return P(t?S:s)})(),sponsoredBy:null!=d?d:"",title:null!=a?a:"",url:null!=l?l:"",cta:null!=c?c:"",description:null!==(r=null!=u?u:g)&&void 0!==r?r:"",desc2:null!=p?p:"",video:v,customTitle1:null!=h?h:"",customTitle2:null!=y?y:"",customTitle3:null!=m?m:"",customTitle4:null!=f?f:"",customBody1:null!=b?b:"",customBody2:null!=w?w:"",customBody3:null!=C?C:"",customBody4:null!=I?I:"",customBody5:null!=O?O:"",logo2:P(T),previewVideoSrc:null!=A?A:"",feedUrl:null!=k?k:""},t)},sr=(e,t)=>{const n=(i=q,window.location.href.includes(i));var i;const r=new URLSearchParams(window.location.search).get(q),o=t.includes("native_recirc");return n&&r?r:(null==e?void 0:e.includes("recirc"))&&!rr.includes(t.toLowerCase())?o?"native_recirc":"recirc":(null==e?void 0:e.includes("sponsor"))?"sponsorstripe":null},dr=(e,t,n,i)=>{const r=document.querySelector(`#${e}`);r&&t&&(r.innerHTML=t,((e,t)=>{const n=e.parentElement,{publisher:i,pageType:r}=t,o=i&&Object.values(s).includes(i);n&&o&&yi(i,e,mi.NATIVE_AD,r)})(r,n),i())},ar=(e,t,n)=>{var i;const r=((e,t,n)=>{var i;const{displayTemplates:r,videoTemplates:o}=n,s="default";if(!e.native)return null;const{native:d,targetId:a}=e,{desc2:l=s}=e.native,c=l.toLowerCase(),u=null!==(i=sr(e.targetId,l))&&void 0!==i?i:c,p=nr[t.language||M.NO],v=or(d,p,a,t);return(d.video?o[u]:r[u]||r.default)(v,t)})(e,t,n);dr(e.targetId,r,t,()=>{const{nativeTrackingConfig:{enabled:n=!0}={}}=t;n&&Oi(e,t)});const o=document.querySelector(`#${e.targetId}`);o&&Li(o,null===(i=e.native)||void 0===i?void 0:i.customDisplayUrl2)},lr=e=>(t,n)=>{var i;const{targetId:r}=t,o=document.querySelector(`#${r}`);if(!o)return;const s=e.getOptions(null!=n?n:{});ar(t,s,e.templates),null===(i=e.postProcess)||void 0===i||i.call(e,t,o)},cr=()=>{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};class ur{constructor(){this.keywords={}}add(e){return Object.assign(this.keywords,e),this}addAsync(e){return l(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 l(this,void 0,void 0,function*(){return e&&Object.assign(this.keywords,yield t()),this})}build(){return this.keywords}}const pr=9826;class vr{constructor(){this.getSupplyTypeKeywords=()=>{const{pageContext:{deviceType:e,isMobileApp:t}}=T.get();if(t){return{"aa-sch-supply_type":`app_${e===Ot?"phone":St}`}}return{"aa-sch-supply_type":`web_${this.getPageOptionsFormatDevice(e)}`}}}prepare(e){return l(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 l(this,void 0,void 0,function*(){const e=yield this.getExternalUid(),t=this.getUserId();return{"aa-sch-externalid_src":Number(!!e)+Number(!!t)}})}getUserId(){return(()=>{const e=nn("_pulse2data");return e?e.split(",")[2]:void 0})()}getExternalUid(){return l(this,void 0,void 0,function*(){return yield rn(T.get())})}isTrackingForbidden(){return l(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=pr}={}}=T.get();return"true"===N("inventory_test")?t:e}getCMPValue(e){return localStorage.getItem(`CMP:${e}`)?"0"===localStorage.getItem(`CMP:${e}`)?"0":"1":"0"}getPublisherKeywords(){const{pageContext:{publisher:e}}=T.get();return{"aa-sch-publisher":`${e}`}}getAnalyticsConsentKeywords(){return{"aa-sch-cmp_analytics":this.getCMPValue("analytics")}}getAdvertisingConsentKeywords(){return l(this,void 0,void 0,function*(){const{tcf:e,pageContext:{isMobileApp:t,countryCode:n}}=T.get(),{getConsentAsync:i}=U(e,0,n);return{"aa-sch-cmp_advertising":(yield i())?"1":"0"}})}getPageTypeKeywords(){const{pageContext:{pageType:e}}=T.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 gr=new vr;function hr(e=!1){var t,n;const i=null===(n=null===(t=window.navigator)||void 0===t?void 0:t.userAgent)||void 0===n?void 0:n.toLocaleLowerCase(),r=Wn();return{OS:r,mobileOS:["ios","android"].includes(r)?r:"unknown",isHybridApp:i.includes("hermes"),appMode:e?"hybrid":"notinapp"}}gr.prepare.bind(gr);const yr=["aLOLE","xBqQj","1KaqJ","1nzXzK","opm8zV","4qKXKR","Ad9QgE"];function mr(e){return t=window.location.pathname.split("/").slice(-2,-1).pop()||"",yr.includes(t)?{"no-sno-news-section":`${e}_doedsfall`}:{};var t}class fr extends vr{constructor(){super(...arguments),this.getDeviceKeywords=()=>{const{pageContext:{deviceType:e}}=T.get();return{"no-sno-device":this.getPageOptionsFormatDevice(e)}}}getAppTypeKeywords(){const{pageContext:{deviceType:e,isMobileApp:t}}=T.get(),{OS:n,isHybridApp:i}=hr(t);return{"no-sno-apptype":n&&e&&i?`${n}_${this.getPageOptionsFormatDevice()}_hybrid`:"none"}}getObituariesKeywords(e){return mr(e)}getSectionPageTypeKeywords(){var e,t;const{pageOptions:n,pageContext:{pageType:i}}=T.get(),r=null!==(t=null===(e=n.keywords["no-sno-news-section"])||void 0===e?void 0:e.toString())&&void 0!==t?t:"ettan";return{"no-sno-section-page_type":`${r.split("_").pop()||r}_${"article"===i?"article":"front"}`}}}const br=new class extends fr{prepare(e){return l(this,void 0,void 0,function*(){var t,n,i,r,o,s,d;const a=T.get(),l=null!==(i=null===(n=null===(t=a.pageSetup)||void 0===t?void 0:t.pageOptions)||void 0===n?void 0:n.options)&&void 0!==i?i:{},c=null!==(s=null===(o=null===(r=a.pageSetup)||void 0===r?void 0:r.pageOptions)||void 0===o?void 0:o.keywords)&&void 0!==s?s:{},u=null===(d=a.siteSpecificConfig)||void 0===d?void 0:d.publisherClassName,p=new ur;yield p.addAsync(this.getAdvertisingConsentKeywords()),yield p.addAsync(Y(a,l.addPublisherToGeo?{addPublisherToGeo:!0}:void 0)),yield p.addIfAsync(c.externalIdSrc,()=>this.getFormattedExternalIdKeywords()),p.add(this.getSupplyTypeKeywords()).add(fe()).addIf(c.appType,this.getAppTypeKeywords()).addIf(c.device,this.getDeviceKeywords()).addIf(c.analyticsConsent,this.getAnalyticsConsentKeywords()).addIf(c.sectionPageType,this.getSectionPageTypeKeywords()).addIf(c.hasContext,this.getHasContextKeywords(e.keywords)).add(e.keywords).addIf(c.obituaries&&void 0!==u,void 0!==u?this.getObituariesKeywords(u):{});const v=p.build(),g=!1!==l.includeExternalUid;return Object.assign(Object.assign({},e),{keywords:v,user:Object.assign(Object.assign({},me(M.NO)),g?{externalUid:yield this.getExternalUid()}:{}),member:this.getMember()})})}},wr=br.prepare.bind(br);class Cr extends vr{constructor(){super(...arguments),this.getDeviceKeywords=()=>{const{pageContext:{deviceType:e}}=T.get();return{"se-generic-sitemode":this.getPageOptionsFormatDevice(e)}}}getScreenKeywords(){const e=function(){const e=window.innerWidth,t=window.innerHeight,n=document.documentElement.clientWidth,i=document.documentElement.clientHeight;return{width:e||n||0,height:t||i||0}}(),t={width:null!==(i=null===(n=window.screen)||void 0===n?void 0:n.width)&&void 0!==i?i:0,height:null!==(o=null===(r=window.screen)||void 0===r?void 0:r.height)&&void 0!==o?o:0};var n,i,r,o;return{"se-generic-viewportheight":e.height,"se-generic-viewportwidth":e.width,"se-generic-screenheight":t.height,"se-generic-screenwidth":t.width}}getExternalIdSrc(){return l(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}}=T.get(),{appMode:t,mobileOS:n}=hr(e);return{"se-generic-appmode":t,"se-generic-mobileos":n}}getPublisherGroup(){return{"se-generic-publishergroup":"schibsted"}}getSectionPageTypeKeywords(){var e,t;const{pageOptions:n,pageContext:{pageType:i}}=T.get();return{"se-generic-section-page_type":`${null!==(t=null===(e=n.keywords["se-generic-section"])||void 0===e?void 0:e.toString())&&void 0!==t?t:"ettan"}_${"article"===i?"article":"front"}`}}}const Ir=new class extends Cr{prepare(e){return l(this,void 0,void 0,function*(){var t,n,i,r,o,s;const d=T.get(),a=null!==(i=null===(n=null===(t=d.pageSetup)||void 0===t?void 0:t.pageOptions)||void 0===n?void 0:n.options)&&void 0!==i?i:{},c=null!==(s=null===(o=null===(r=d.pageSetup)||void 0===r?void 0:r.pageOptions)||void 0===o?void 0:o.keywords)&&void 0!==s?s:{},u=new ur;yield u.addAsync(this.getAdvertisingConsentKeywords()),yield u.addAsync(Y(d,a.addPublisherToGeo?{addPublisherToGeo:!0}:void 0)),yield u.addIfAsync(c.externalIdSrc,()=>this.getExternalIdSrc()),yield u.addIfAsync(c.sdkVersion,()=>l(void 0,void 0,void 0,function*(){return{"se-generic-sdk-version":"function"==typeof window.apntag.getAstVersion?window.apntag.getAstVersion():""}})),u.add(this.getSupplyTypeKeywords()).add(fe()).addIf(c.appType,this.getAppTypeKeywords()).addIf(c.device,this.getDeviceKeywords()).addIf(c.screen,this.getScreenKeywords()).addIf(c.analyticsConsent,this.getAnalyticsConsentKeywords()).addIf(c.sectionPageType,this.getSectionPageTypeKeywords()).addIf(c.hasContext,this.getHasContextKeywords(e.keywords)).addIf(c.hasPlusMembership,{"se-generic-has_plus":"plus"===nn("X-AB-Site-Version")?"yes":"no"}).add(e.keywords);const p=u.build(),v=!1!==a.includeExternalUid;return Object.assign(Object.assign({},e),{keywords:p,user:Object.assign(Object.assign({},me(M.SE)),v?{externalUid:yield this.getExternalUid()}:{}),member:this.getMember()})})}},Or=Ir.prepare.bind(Ir),Sr=[],Tr=()=>(window.relevantDigital||(window.relevantDigital={cmd:[]}),window.relevantDigital),Ar=()=>{const e=Tr();return e.cmd||(e.cmd=[]),e.cmd},kr=()=>{var e;const{prebid:t,pageOptions:n}=T.get(),i=null===(e=null==t?void 0:t.thirdParty)||void 0===e?void 0:e.adformDmpUrl;if(!i)return;const r=new URL(i);var o;r.searchParams.set("sg",(o=null==n?void 0:n.keywords,Object.values(null!=o?o:{}).flatMap(e=>Array.isArray(e)?e:[e]).filter(e=>void 0!==e).join(","))),f("relevant-managed - sending Adform DMP beacon",{url:r.toString()}),navigator.sendBeacon(r.toString())};let Pr;const Er=()=>{(()=>{var e;const{placements:t,pageContext:{deviceType:n}}=T.get(),i=null!==(e=t[n])&&void 0!==e?e:[];return"tablet"===n&&0===i.length?t.desktop:i})().forEach(({targetId:e,invCode:t})=>{if(!t)return;const n=document.getElementById(e);n?n.dataset.adUnitId=t:f("relevant-managed requestPage - placement container was not found",{targetId:e})})},xr=()=>{const{prebid:e}=T.get();return Boolean((null==e?void 0:e.enabled)&&e.manageAdserver&&!(null!==N("disable_prebid")))},jr={name:"relevant-managed",capabilities:{tagDefinition:qi,deferredRequest:!1,deferredRender:!1,refresh:!1},setup:()=>l(void 0,void 0,void 0,function*(){var e;const{prebid:t}=T.get();var n;xr()?(null==t?void 0:t.prebidUrl)?(n=e=>Ar().push(e),Sr.splice(0).forEach(e=>n(e)),yield Oe(null!==(e=null==t?void 0:t.adServerUrl)&&void 0!==e?e:"https://s1.adform.net/banners/scripts/adx.js"),yield Oe(t.prebidUrl)):f("relevant-managed setup - prebidUrl is required, skipping script loading"):f("relevant-managed setup - managed prebid is disabled, skipping script loading")}),setTargeting:()=>l(void 0,void 0,void 0,function*(){if(!xr())return;const{pageOptions:e}=T.get(),t={site:{keywords:(n=null==e?void 0:e.keywords,Object.values(null!=n?n:{}).flatMap(e=>Array.isArray(e)?e:[e]).filter(e=>void 0!==e).join(","))}};var n;Ar().push(()=>{Tr().addPrebidConfig({ortb2:t})})}),requestPage:()=>l(void 0,void 0,void 0,function*(){const{prebid:e,tcf:t,pageContext:n}=T.get();if(!xr())return void f("relevant-managed requestPage - managed prebid is disabled, skipping");if(!(null==e?void 0:e.configId))return void f("relevant-managed requestPage - configId is required, skipping");(yield K(t,null==n?void 0:n.isMobileApp,null==n?void 0:n.countryCode,"relevant-managed-requestPage"))?(l(void 0,void 0,void 0,function*(){var e,t;const{readpeakUrl:n,adnamiUrl:i}=null!==(t=null===(e=T.get().prebid)||void 0===e?void 0:e.thirdParty)&&void 0!==t?t:{},r=[n,i].filter(e=>Boolean(e));yield Promise.allSettled(r.map(e=>Oe(e)))}),kr(),Er(),null==Pr||Pr.emit("adRequested"),Ar().push(()=>{f("relevant-managed requestPage - loadPrebid",{configId:e.configId}),Tr().loadPrebid({configId:e.configId,noGpt:!0,manageAdserver:!0})})):f("relevant-managed requestPage - consent not granted, skipping")}),clear:()=>{xr()&&Ar().push(()=>{var e,t;f("relevant-managed clear - destroySlots"),null===(t=(e=Tr()).destroySlots)||void 0===t||t.call(e)})},bindEvents:e=>l(void 0,void 0,void 0,function*(){Pr=e})},_r={prepareTag:e=>{var t;const{keywords:n,targetId:i,invCode:r,dynamicSizeWidthCheck:o,globalPlacementId:s}=e,{pageSetup:d,pageContext:{countryCode:a}}=T.get(),{tag:{useAppTabletInvCode:l=!0}={}}=null!=d?d:{},c=((e,t)=>{const{pageContext:{isMobileApp:n}}=T.get();return n?((e,t)=>e.replace(/wtb|wde|wph/g,e=>"wph"===e?"aph":t?"atb":e))(e,t):e})(r,l),u=(e=>{const{pageContext:{countryCode:t}}=T.get(),{keywords:n,dynamicSizeWidthCheck:i}=e,r=`${Q(t)}-adformat`,o=n?n[r]:[];if(!o)return{};const s=(Array.isArray(o)?o:[o]).filter(e=>!(e in Ee)||window.innerWidth>=Ee[e]);return{[r]:i?s:o}})(e),p=(e=>{const{pageContext:{countryCode:t}}=T.get(),n=`${Q(t)}-targetid`;return e?{[n]:[e]}:{}})(i),v=(e=>{var t;const[,n]=null!==(t=e.match(/-((w|a)(?:ph|de|tb))-/))&&void 0!==t?t:[];switch(n){case"wde":return{"aa-sch-supply_type":"web_desktop"};case"wtb":return{"aa-sch-supply_type":"web_tablet"};case"wph":return{"aa-sch-supply_type":"web_phone"};case"aph":return{"aa-sch-supply_type":"app_phone"};default:return}})(c),g=cr(),h=(e=>en(e)?{"aa-sch-dynamic-outstream":["true"]}:{})(r),y=((e,t)=>en(e)?Object.assign(Object.assign({},t),{playerSkin:{videoBackgroundColor:"#e6e7e8"}}):{})(r,{safeFrameAutoInitialSize:!0}),m=o&&e.sizes.length>0?e.sizes.filter(([e])=>e<=window.innerWidth):e.sizes,f=(new ur).add(null!=n?n:{}).add(u).add(p).add(null!=v?v:{}).add(h).add(g).addIf(null===(t=null==d?void 0:d.tag)||void 0===t?void 0:t.reloadKeywords,{[`${Q(a)}-adreload`]:"0"}).build();return Object.assign(Object.assign({},e),{sizes:m,invCode:c,keywords:f,rendererOptions:y,globalPlacementId:s||c})},preparePageOptions:e=>l(void 0,void 0,void 0,function*(){const{pageContext:{countryCode:t}}=T.get();return yield t===M.SE?Or(e):wr(e)}),siteEvents:o},$r=((e,t,n)=>({init:i=>tr(Object.assign(Object.assign({},i),{siteSpecificConfig:n}),e,t),update:Zi,renderNativeAd:Hi,getVideoPPIDs:Ce,createInitNativeAd:lr,getVideoAdsConfig:si}))(_r,jr,d);export{Ci as A,T as B,yi as C,mi as D,f as E,pt as F,Ie as G,ct as H,a as I,K as J,bn as K,Ht as L,zt as M,be as N,M as O,Mi as P,Fi as Q,Di as R,wi as S,te as T,ut as U,Oe as V,s as W,$r as X,l as _,Ue as a,Be as b,Re as c,tn as d,De as e,qe as f,ze as g,He as h,Ke as i,Fe as j,Ge as k,Ve as l,We as m,Le as n,Ne as o,$e as p,pn as q,vn as r,xe as s,_e as t,Xe as u,je as v,Je as w,yn as x,sn as y,bi as z};
@@ -1 +1 @@
1
- import{o as t,w as e,C as n,_ as a,l as r,p as i,q as s,r as o,h as l,N as d}from"./_auto-entry_mtv-DsuRsc1u.js";import{jsxs as c,jsx as u}from"react/jsx-runtime";class g{getPulseObjectId(){return"sdrn:vg:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:vg:frontpage:front"}getTags(t){var e;let n;if(n=t instanceof HTMLAnchorElement?t.href:null===(e=null==t?void 0:t.querySelector("a"))||void 0===e?void 0:e.href,!n)return[];const{host:a,pathname:r}=new URL(n);if(!a.includes("www.vg.no")&&!r.includes("annonsorinnhold"))return[n];const i=r.split("/");return i.length?[...i.filter(Boolean).slice(1).map(t=>t),n]:[n]}}class p{getPulseObjectId(){return""}getPulsePageId(t,e){return""}}const v="[data-k5a-teaser-analytics]";class m extends t{constructor(t,e,n,a){super(t,""),this.root=e,this.newsroomStrategy=n,this.pageType=a}getTargetId(){return this.root.id}buildAdObject(){return this.getEventInput("view")}parseKilkayaData(){const t=this.root.querySelector("article");if(!t)return{};const e=t.dataset.k5aTeaserAnalytics;try{return e?JSON.parse(e):{}}catch(t){return{}}}mapPageType(t){var e;return null!==(e={front:"Frontpage",article:"Article",section:"Article",collection:"Article",other:"Article"}[null!=t?t:"front"])&&void 0!==e?e:"Frontpage"}getArticleId(){var t;return null!==(t=location.pathname.split("/").slice(-2,-1).pop())&&void 0!==t?t:""}getPlacementData(){var t,e;const n=this.root.closest(".kilkaya-wrapper");return{columnName:null!==(t=null==n?void 0:n.dataset.pulseColumnname)&&void 0!==t?t:"",primaryPosition:Number(null==n?void 0:n.dataset.pulsePrimaryposition)||0,secondaryPosition:Number(null==n?void 0:n.dataset.pulseSecondaryposition)||0,slot:null!==(e=null==n?void 0:n.dataset.slotTag)&&void 0!==e?e:""}}getEventTarget(){const{link:t,itemId:e,title:n}=this.parseKilkayaData();return{id:e,name:this.normalizePlacementTitle(null!=n?n:""),type:"Page",url:t}}normalizePlacementTitle(t){return t.replace(/<[^>]+>/gi,"").replace(/[^a-z0-9æøå\s_-]/gi,"")}waitForAnalyticsData(t){const e=this.root.querySelector(v);if(Boolean(null==e?void 0:e.dataset.k5aTeaserAnalytics))return void t();const n=new MutationObserver(()=>{const e=this.root.querySelector(v);Boolean(null==e?void 0:e.dataset.k5aTeaserAnalytics)&&(n.disconnect(),t())});n.observe(this.root,{attributes:!0,childList:!0,subtree:!0,attributeFilter:["data-k5a-teaser-analytics"]})}trackLoad(){}trackImpression(){e(this.root,()=>this.waitForAnalyticsData(()=>{var t,e;const n=new CustomEvent("advertory:partnerstudioAdImpression",{detail:{ad:this.parseKilkayaData().placement}});window.dispatchEvent(n);const a=this.getEventInput("view");this.pulse.trackLegacyViewUIElement?this.pulse.trackLegacyViewUIElement(a):this.pulse.trackViewUIElement?this.pulse.trackViewUIElement(a):null===(e=(t=this.pulse).trackElementView)||void 0===e||e.call(t,a)}))}trackEngagement(t){var e,n;const a=this.getEventInput("click");this.pulse.trackLegacyClickUIElement?this.pulse.trackLegacyClickUIElement(a):this.pulse.trackClickUIElement?this.pulse.trackClickUIElement(a):null===(n=(e=this.pulse).trackElementClick)||void 0===n||n.call(e,a)}}class h extends m{getEventBaseData(){var t,e,n,a;const{clientName:r,creativeId:i,itemId:s,placement:o}=this.parseKilkayaData(),{primaryPosition:l,secondaryPosition:d,slot:c}=this.getPlacementData(),u=this.mapPageType(this.pageType),g=null===(t=this.newsroomStrategy)||void 0===t?void 0:t.getPulsePageId(null!==(e=this.pageType)&&void 0!==e?e:"front",this.getArticleId());return Object.assign(Object.assign({},s&&{"@id":`sdrn:kilkaya:teaser:${s}`}),{"@type":"UIElement",position:o,elementType:"Article",custom:{customer:r,creativeId:null!=i?i:s},page:{"@id":null!=g?g:o,"@type":u,url:location.origin},placement:{primaryPosition:l,secondaryPosition:d,source:c},tags:null===(a=null===(n=this.newsroomStrategy)||void 0===n?void 0:n.getTags)||void 0===a?void 0:a.call(n,this.root)})}getEventInput(t){return{object:this.getEventBaseData(),partnerstudio:this.getEventPartnerstudioData(t),target:this.getEventTarget(),provider:this.getProviderData()}}getEventPartnerstudioData(t){return Object.assign(Object.assign({},this.parseKilkayaData()),{type:t,tracking_type:"ad",xandrAdLoaded:!1})}getProviderData(){return{productTag:"partnerstudio"}}}class y extends m{getEventBaseData(){var t,e;const{title:n="",clientName:a="",creativeId:r="",link:i="",itemId:s=""}=this.parseKilkayaData(),{columnName:o,primaryPosition:l,secondaryPosition:d,slot:c}=this.getPlacementData(),u={publicUrl:i,urlPath:i?new URL(i).pathname:""},{publicUrl:g,urlPath:p}=i&&(null===(e=null===(t=this.newsroomStrategy)||void 0===t?void 0:t.transformUrl)||void 0===e?void 0:e.call(t,i))||u;return Object.assign(Object.assign({},s&&{"@id":`sdrn:kilkaya:teaser:${s}`}),{"@type":"UIElement",elementType:"Teaser",layout:{elementSize:"large",imageUrl:"",name:"large"},name:n,placement:{columnName:o,primaryPosition:l,secondaryPosition:d,source:c},tags:[a,n,g,p].filter(Boolean),"spt:custom":{is_sponsored:!0,sponsor:a,"spt:creativeId":r,pageTitle:n,publicUrl:g,urlPath:p},url:location.origin})}getEventInput(t){return{object:this.getEventBaseData(),target:this.getEventTarget()}}}class k{constructor(t){this.identity=t,this.getIdentityUser=this.getIdentityUser.bind(this),this.isUserLoggedIn=this.isUserLoggedIn.bind(this),this.onIdentityLogout=this.onIdentityLogout.bind(this)}getIdentityUser(){return a(this,void 0,void 0,function*(){var t;try{const e=yield null===(t=this.identity)||void 0===t?void 0:t.getUser();return null!=e?e:null}catch(t){return r("[Privacy Broker] User is not logged in."),null}})}isUserLoggedIn(){return a(this,void 0,void 0,function*(){var t,e;return null!==(e=yield null===(t=this.identity)||void 0===t?void 0:t.isLoggedIn())&&void 0!==e&&e})}onIdentityLogout(t){var e;null===(e=this.identity)||void 0===e||e.on("logout",t)}}const f=/^glci_/,b="gender_",I="geo_",w="male",P="female",E=()=>a(void 0,void 0,void 0,function*(){try{const e=yield(t=500,a(void 0,void 0,void 0,function*(){return Promise.race([a(void 0,void 0,void 0,function*(){return yield new Promise(t=>{if("undefined"!=typeof window)if(window.Identity)t(window.Identity);else{const e=()=>{t(window.Identity)};window.addEventListener("identity-initialized",e,{once:!0})}else t(void 0)})}),new Promise(e=>setTimeout(()=>e(void 0),t))])})),n=new k(e),r=yield n.getIdentityUser(),{gender:i}=null!=r?r:{};return i===w||i===P?`${b}${i}`:void 0}catch(t){return}var t}),T=()=>a(void 0,void 0,void 0,function*(){const t=[],e=yield E(),n=(()=>{const t=i().map(t=>`${I}${t.replace(f,"")}`);return Array.from(new Set(t))})();return e&&t.push(e),n&&t.push(...n),t}),U="front";class S{getPulseObjectId(){return"sdrn:e24:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(t,e){return t===U?"sdrn:e24:frontpage:front":`sdrn:e24:article:${e}`}getTags(t){var e;let n;if(n=t instanceof HTMLAnchorElement?t.href:null===(e=null==t?void 0:t.querySelector("a"))||void 0===e?void 0:e.href,!n)return[];if(!n.includes("https://e24.no/annonsorinnhold/"))return[n];const{pathname:a}=new URL(n),r=a.split("/").filter(Boolean);return r.length?[...r.slice(1),n]:[n]}}class A{getPulseObjectId(){return"sdrn:aftenposten:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:aftenposten:frontpage:Frontpage"}}class L{getPulseObjectId(){return"sdrn:bt:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:bt:frontpage:Frontpage"}}class j{getPulseObjectId(){return"sdrn:stavangeraftenblad:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:stavangeraftenblad:frontpage:Frontpage"}}class D{transformUrl(t){const{hostname:e,pathname:n}=new URL(t);return"brand-studio.svd.se"===e?{publicUrl:`https://svd.se/brand-studio${n}`,urlPath:`/brand-studio${n}`}:{publicUrl:t,urlPath:n}}getPulseObjectId(){return"sdrn:svdse:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(t,e){return t===U?"sdrn:svdse:frontpage:front":`sdrn:svdse:article:${e}`}}class O{transformUrl(t){const{hostname:e,pathname:n}=new URL(t);return"brand-studio.aftonbladet.se"===e?{publicUrl:`https://aftonbladet.se/brand-studio${n}`,urlPath:`/brand-studio${n}`}:{publicUrl:t,urlPath:n}}getPulseObjectId(){return""}getPulsePageId(){return""}}class K{handleKilkayaStreamTracking({pulse:t,pageContext:{pageType:e,publisher:a,countryCode:r}}){if(!(null==t?void 0:t.instance))return;const i={[d.VG]:new g,[d.E24]:new S,"no-aftenposten":new A,[d.BT]:new L,"no-bergenstidende":new L,[d.SA]:new j,"no-stavangeraftenblad":new j,[d.SVD]:new D,[d.AFTONBLADET]:new O}[a]||new p;((t,e,a,r)=>{const i=document.querySelectorAll("k5a-stream");i.length&&i.forEach(i=>{const s=r===n.SE?new y(t,i,e):new h(t,i,e,a);s.trackImpression(),i.addEventListener("click",()=>s.trackEngagement())})})(t.instance,i,e,r)}injectKilkayaMeta(t){return a(this,void 0,void 0,function*(){const e=document.createElement("script"),n=yield T();e.textContent=`var k5aMeta = { consent: ${t}, cntTag: ${JSON.stringify(n)} };`,document.head.appendChild(e)})}observeForKilkayaBackfills(){document.addEventListener("K5A:EmptyStreamSlot",t=>{var e;const n=null===(e=null==t?void 0:t.detail)||void 0===e?void 0:e.streamSlot;if(r(`Kilkaya event for slot: ${n}`),!n)return void r("Kilkaya slot empty, Xandr backfill won't be loaded");const a=n.parentElement;a?(r(`Kilkaya placement ${n.getAttribute("name")} has not been loaded, loading Xandr backfill`),this.showBackfill(a)):r("Kilkaya parent slot empty, Xandr backfill won't be loaded")})}showBackfill(t){var e;const n=t.querySelector(".fallback");if(!n)return;n.style.display="flex";const a=null!==(e=n.dataset.fallbackTargetId)&&void 0!==e?e:"";s(a)}loadKilkayaScript(t){return a(this,void 0,void 0,function*(){yield o(t)})}run(t){return a(this,void 0,void 0,function*(){var e,n;const{tcf:a,pageContext:{isMobileApp:r,countryCode:i},kilkaya:s}=t;if(!(null==s?void 0:s.enabled))return;const o=yield l(a,r,i,"kilkaya");this.observeForKilkayaBackfills(),yield this.injectKilkayaMeta(o),yield this.loadKilkayaScript(null!==(n=null===(e=s.options)||void 0===e?void 0:e.kilkayaUrl)&&void 0!==n?n:""),this.handleKilkayaStreamTracking(t)})}}const $=({placementName:t,slotTag:e,fallbackTargetId:n,children:a,pulseData:r,htmlAttributes:i})=>{const s=(t,e)=>{const n={};if(!t)return n;for(const[a,r]of Object.entries(t)){n[e?`${e}-${a}`:a]=String(r)}return n},o=s(r,"data-pulse"),l=s(i,"data");return c("div",Object.assign({className:"kilkaya-wrapper kilkaya-lock-height",style:{width:"100%"},"data-slot-tag":e},o,l,{children:[u("div",{className:"inscreen-target"}),u("k5a-stream",{name:t,"slot-tag":e}),u("div",{className:"container"}),u("div",{className:"fallback","data-fallback-target-id":n,style:{display:"none"},children:a})]}))},B=t=>a(void 0,void 0,void 0,function*(){const e=new K;yield e.run(t)});export{$ as Kilkaya,B as runKilkaya};
1
+ import{A as t,S as e,O as n,_ as a,E as r,T as i,U as s,V as o,J as l,W as d}from"./_auto-entry_mtv-D53dvC1i.js";import{jsxs as c,jsx as u}from"react/jsx-runtime";class g{getPulseObjectId(){return"sdrn:vg:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:vg:frontpage:front"}getTags(t){var e;let n;if(n=t instanceof HTMLAnchorElement?t.href:null===(e=null==t?void 0:t.querySelector("a"))||void 0===e?void 0:e.href,!n)return[];const{host:a,pathname:r}=new URL(n);if(!a.includes("www.vg.no")&&!r.includes("annonsorinnhold"))return[n];const i=r.split("/");return i.length?[...i.filter(Boolean).slice(1).map(t=>t),n]:[n]}}class p{getPulseObjectId(){return""}getPulsePageId(t,e){return""}}const v="[data-k5a-teaser-analytics]";class m extends t{constructor(t,e,n,a){super(t,""),this.root=e,this.newsroomStrategy=n,this.pageType=a}getTargetId(){return this.root.id}buildAdObject(){return this.getEventInput("view")}parseKilkayaData(){const t=this.root.querySelector("article");if(!t)return{};const e=t.dataset.k5aTeaserAnalytics;try{return e?JSON.parse(e):{}}catch(t){return{}}}mapPageType(t){var e;return null!==(e={front:"Frontpage",article:"Article",section:"Article",collection:"Article",other:"Article"}[null!=t?t:"front"])&&void 0!==e?e:"Frontpage"}getArticleId(){var t;return null!==(t=location.pathname.split("/").slice(-2,-1).pop())&&void 0!==t?t:""}getPlacementData(){var t,e;const n=this.root.closest(".kilkaya-wrapper");return{columnName:null!==(t=null==n?void 0:n.dataset.pulseColumnname)&&void 0!==t?t:"",primaryPosition:Number(null==n?void 0:n.dataset.pulsePrimaryposition)||0,secondaryPosition:Number(null==n?void 0:n.dataset.pulseSecondaryposition)||0,slot:null!==(e=null==n?void 0:n.dataset.slotTag)&&void 0!==e?e:""}}getEventTarget(){const{link:t,itemId:e,title:n}=this.parseKilkayaData();return{id:e,name:this.normalizePlacementTitle(null!=n?n:""),type:"Page",url:t}}normalizePlacementTitle(t){return t.replace(/<[^>]+>/gi,"").replace(/[^a-z0-9æøå\s_-]/gi,"")}waitForAnalyticsData(t){const e=this.root.querySelector(v);if(Boolean(null==e?void 0:e.dataset.k5aTeaserAnalytics))return void t();const n=new MutationObserver(()=>{const e=this.root.querySelector(v);Boolean(null==e?void 0:e.dataset.k5aTeaserAnalytics)&&(n.disconnect(),t())});n.observe(this.root,{attributes:!0,childList:!0,subtree:!0,attributeFilter:["data-k5a-teaser-analytics"]})}trackLoad(){}trackImpression(){e(this.root,()=>this.waitForAnalyticsData(()=>{var t,e;const n=new CustomEvent("advertory:partnerstudioAdImpression",{detail:{ad:this.parseKilkayaData().placement}});window.dispatchEvent(n);const a=this.getEventInput("view");this.pulse.trackLegacyViewUIElement?this.pulse.trackLegacyViewUIElement(a):this.pulse.trackViewUIElement?this.pulse.trackViewUIElement(a):null===(e=(t=this.pulse).trackElementView)||void 0===e||e.call(t,a)}))}trackEngagement(t){var e,n;const a=this.getEventInput("click");this.pulse.trackLegacyClickUIElement?this.pulse.trackLegacyClickUIElement(a):this.pulse.trackClickUIElement?this.pulse.trackClickUIElement(a):null===(n=(e=this.pulse).trackElementClick)||void 0===n||n.call(e,a)}}class h extends m{getEventBaseData(){var t,e,n,a;const{clientName:r,creativeId:i,itemId:s,placement:o}=this.parseKilkayaData(),{primaryPosition:l,secondaryPosition:d,slot:c}=this.getPlacementData(),u=this.mapPageType(this.pageType),g=null===(t=this.newsroomStrategy)||void 0===t?void 0:t.getPulsePageId(null!==(e=this.pageType)&&void 0!==e?e:"front",this.getArticleId());return Object.assign(Object.assign({},s&&{"@id":`sdrn:kilkaya:teaser:${s}`}),{"@type":"UIElement",position:o,elementType:"Article",custom:{customer:r,creativeId:null!=i?i:s},page:{"@id":null!=g?g:o,"@type":u,url:location.origin},placement:{primaryPosition:l,secondaryPosition:d,source:c},tags:null===(a=null===(n=this.newsroomStrategy)||void 0===n?void 0:n.getTags)||void 0===a?void 0:a.call(n,this.root)})}getEventInput(t){return{object:this.getEventBaseData(),partnerstudio:this.getEventPartnerstudioData(t),target:this.getEventTarget(),provider:this.getProviderData()}}getEventPartnerstudioData(t){return Object.assign(Object.assign({},this.parseKilkayaData()),{type:t,tracking_type:"ad",xandrAdLoaded:!1})}getProviderData(){return{productTag:"partnerstudio"}}}class y extends m{getEventBaseData(){var t,e;const{title:n="",clientName:a="",creativeId:r="",link:i="",itemId:s=""}=this.parseKilkayaData(),{columnName:o,primaryPosition:l,secondaryPosition:d,slot:c}=this.getPlacementData(),u={publicUrl:i,urlPath:i?new URL(i).pathname:""},{publicUrl:g,urlPath:p}=i&&(null===(e=null===(t=this.newsroomStrategy)||void 0===t?void 0:t.transformUrl)||void 0===e?void 0:e.call(t,i))||u;return Object.assign(Object.assign({},s&&{"@id":`sdrn:kilkaya:teaser:${s}`}),{"@type":"UIElement",elementType:"Teaser",layout:{elementSize:"large",imageUrl:"",name:"large"},name:n,placement:{columnName:o,primaryPosition:l,secondaryPosition:d,source:c},tags:[a,n,g,p].filter(Boolean),"spt:custom":{is_sponsored:!0,sponsor:a,"spt:creativeId":r,pageTitle:n,publicUrl:g,urlPath:p},url:location.origin})}getEventInput(t){return{object:this.getEventBaseData(),target:this.getEventTarget()}}}class k{constructor(t){this.identity=t,this.getIdentityUser=this.getIdentityUser.bind(this),this.isUserLoggedIn=this.isUserLoggedIn.bind(this),this.onIdentityLogout=this.onIdentityLogout.bind(this)}getIdentityUser(){return a(this,void 0,void 0,function*(){var t;try{const e=yield null===(t=this.identity)||void 0===t?void 0:t.getUser();return null!=e?e:null}catch(t){return r("[Privacy Broker] User is not logged in."),null}})}isUserLoggedIn(){return a(this,void 0,void 0,function*(){var t,e;return null!==(e=yield null===(t=this.identity)||void 0===t?void 0:t.isLoggedIn())&&void 0!==e&&e})}onIdentityLogout(t){var e;null===(e=this.identity)||void 0===e||e.on("logout",t)}}const f=/^glci_/,b="gender_",I="geo_",P="male",w="female",E=()=>a(void 0,void 0,void 0,function*(){try{const e=yield(t=500,a(void 0,void 0,void 0,function*(){return Promise.race([a(void 0,void 0,void 0,function*(){return yield new Promise(t=>{if("undefined"!=typeof window)if(window.Identity)t(window.Identity);else{const e=()=>{t(window.Identity)};window.addEventListener("identity-initialized",e,{once:!0})}else t(void 0)})}),new Promise(e=>setTimeout(()=>e(void 0),t))])})),n=new k(e),r=yield n.getIdentityUser(),{gender:i}=null!=r?r:{};return i===P||i===w?`${b}${i}`:void 0}catch(t){return}var t}),T=()=>a(void 0,void 0,void 0,function*(){const t=[],e=yield E(),n=(()=>{const t=i().map(t=>`${I}${t.replace(f,"")}`);return Array.from(new Set(t))})();return e&&t.push(e),n&&t.push(...n),t}),U="front";class S{getPulseObjectId(){return"sdrn:e24:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(t,e){return t===U?"sdrn:e24:frontpage:front":`sdrn:e24:article:${e}`}getTags(t){var e;let n;if(n=t instanceof HTMLAnchorElement?t.href:null===(e=null==t?void 0:t.querySelector("a"))||void 0===e?void 0:e.href,!n)return[];if(!n.includes("https://e24.no/annonsorinnhold/"))return[n];const{pathname:a}=new URL(n),r=a.split("/").filter(Boolean);return r.length?[...r.slice(1),n]:[n]}}class A{getPulseObjectId(){return"sdrn:aftenposten:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:aftenposten:frontpage:Frontpage"}}class L{getPulseObjectId(){return"sdrn:bt:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:bt:frontpage:Frontpage"}}class j{getPulseObjectId(){return"sdrn:stavangeraftenblad:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(){return"sdrn:stavangeraftenblad:frontpage:Frontpage"}}class D{transformUrl(t){const{hostname:e,pathname:n}=new URL(t);return"brand-studio.svd.se"===e?{publicUrl:`https://svd.se/brand-studio${n}`,urlPath:`/brand-studio${n}`}:{publicUrl:t,urlPath:n}}getPulseObjectId(){return"sdrn:svdse:content:partnerstudio:element:partnerstudio:stats"}getPulsePageId(t,e){return t===U?"sdrn:svdse:frontpage:front":`sdrn:svdse:article:${e}`}}class O{transformUrl(t){const{hostname:e,pathname:n}=new URL(t);return"brand-studio.aftonbladet.se"===e?{publicUrl:`https://aftonbladet.se/brand-studio${n}`,urlPath:`/brand-studio${n}`}:{publicUrl:t,urlPath:n}}getPulseObjectId(){return""}getPulsePageId(){return""}}class K{handleKilkayaStreamTracking({pulse:t,pageContext:{pageType:e,publisher:a,countryCode:r}}){if(!(null==t?void 0:t.instance))return;const i={[d.VG]:new g,[d.E24]:new S,"no-aftenposten":new A,[d.BT]:new L,"no-bergenstidende":new L,[d.SA]:new j,"no-stavangeraftenblad":new j,[d.SVD]:new D,[d.AFTONBLADET]:new O}[a]||new p;((t,e,a,r)=>{const i=document.querySelectorAll("k5a-stream");i.length&&i.forEach(i=>{const s=r===n.SE?new y(t,i,e):new h(t,i,e,a);s.trackImpression(),i.addEventListener("click",()=>s.trackEngagement())})})(t.instance,i,e,r)}injectKilkayaMeta(t){return a(this,void 0,void 0,function*(){const e=document.createElement("script"),n=yield T();e.textContent=`var k5aMeta = { consent: ${t}, cntTag: ${JSON.stringify(n)} };`,document.head.appendChild(e)})}observeForKilkayaBackfills(){document.addEventListener("K5A:EmptyStreamSlot",t=>{var e;const n=null===(e=null==t?void 0:t.detail)||void 0===e?void 0:e.streamSlot;if(r(`Kilkaya event for slot: ${n}`),!n)return void r("Kilkaya slot empty, Xandr backfill won't be loaded");const a=n.parentElement;a?(r(`Kilkaya placement ${n.getAttribute("name")} has not been loaded, loading Xandr backfill`),this.showBackfill(a)):r("Kilkaya parent slot empty, Xandr backfill won't be loaded")})}showBackfill(t){var e;const n=t.querySelector(".fallback");if(!n)return;n.style.display="flex";const a=null!==(e=n.dataset.fallbackTargetId)&&void 0!==e?e:"";s(a)}loadKilkayaScript(t){return a(this,void 0,void 0,function*(){yield o(t)})}run(t){return a(this,void 0,void 0,function*(){var e,n;const{tcf:a,pageContext:{isMobileApp:r,countryCode:i},kilkaya:s}=t;if(!(null==s?void 0:s.enabled))return;const o=yield l(a,r,i,"kilkaya");this.observeForKilkayaBackfills(),yield this.injectKilkayaMeta(o),yield this.loadKilkayaScript(null!==(n=null===(e=s.options)||void 0===e?void 0:e.kilkayaUrl)&&void 0!==n?n:""),this.handleKilkayaStreamTracking(t)})}}const $=({placementName:t,slotTag:e,fallbackTargetId:n,children:a,pulseData:r,htmlAttributes:i})=>{const s=(t,e)=>{const n={};if(!t)return n;for(const[a,r]of Object.entries(t)){n[e?`${e}-${a}`:a]=String(r)}return n},o=s(r,"data-pulse"),l=s(i,"data");return c("div",Object.assign({className:"kilkaya-wrapper kilkaya-lock-height",style:{width:"100%"},"data-slot-tag":e},o,l,{children:[u("div",{className:"inscreen-target"}),u("k5a-stream",{name:t,"slot-tag":e}),u("div",{className:"container"}),u("div",{className:"fallback","data-fallback-target-id":n,style:{display:"none"},children:a})]}))},B=t=>a(void 0,void 0,void 0,function*(){const e=new K;yield e.run(t)});export{$ as Kilkaya,B as runKilkaya};
@@ -0,0 +1 @@
1
+ import{P as t,Q as e,R as n}from"./_auto-entry_mtv-D53dvC1i.js";import"react/jsx-runtime";const r=".advertory-right-column-track",o="--advertory-right-column-track-height",i=t=>t.getBoundingClientRect().top+window.scrollY,a=(t,e)=>`${t}-${e}`,d=(r,d,l)=>{var c;const s=Array.from(null!==(c=r.querySelectorAll(d))&&void 0!==c?c:[]),u=(t=>t.map(t=>{var e;return null===(e=document.querySelector(`[id^="${t}"]`))||void 0===e?void 0:e.parentElement}).map((t,e)=>({point:t,originalIndex:e})).filter(t=>Boolean(t.point)))(l);if(0===u.length)return;const v=i(r);u.forEach(({point:r,originalIndex:d})=>{((r,d,l)=>{const c=i(r),s=a(o,d),u=c-l,v=a("--advertory-right-column-split-point-height",d),m=t(r);e({[s]:n(u),[v]:n(m)})})(r,d+1,v),(r=>{const o=null==r?void 0:r.id;if(!o)return;const i=a("--advertory-right-column-ad-height",o),d=t(r);e({[i]:n(d)})})(s[d])});((t,r)=>{const a=i(t)-r;e({[o]:n(a)})})(u[Math.min(s.length,u.length-1)].point,v)};let l=!1;const c=t=>{if(!(null==t?void 0:t.enabled)||l)return;const{splitPointIDs:e,adSelector:n,trackSelector:o=r}=t,i=document.querySelector(o);if(!i)return;l=!0;const a=()=>{d(i,n,e)};a(),window.addEventListener("resize",a),window.addEventListener("orientationchange",a),window.addEventListener("load",a),window.addEventListener("advertory:adLoaded",()=>{requestAnimationFrame(a)});new ResizeObserver(a).observe(i)};export{c as initRightColumnSplit};
@@ -0,0 +1 @@
1
+ import{i as e,a as t,b as r,c as n,d as i,e as o,f as a,g as l,h as d,j as s,k as c,l as v,m as p,n as f,o as u,p as h,q as m,r as y,s as g,t as b,u as w,v as x,w as k,x as I,y as $,A as C,z as S,B as j,C as E,D as T,_ as q,E as A,F,G as B,H as O,I as N,J as L,K as z,L as P,M as _}from"./_auto-entry_mtv-D53dvC1i.js";import"react/jsx-runtime";const D={nativeAd:e=>x(e)&&!a(e),buyrecipe:w,fullwidthAd:b,fullscreenScroll:g,topscroller:e=>h(e)&&y(),splash:e=>h(e)&&m(e.width,e.height),welcomePage:h,wallpaper:u,skyscraper:f,lFormat:p,hFormat:v,toppanorama:c,topboard:s,widescreen:d,insider:l,sponsorstripe:a,brandboard:t=>o(t)&&!k(t)&&!e(t),outstream:i,netboard:e=>r(e)||n(e),panorama:t,midboard:e},H=({adObj:e,preferredTestIdData:t})=>{var r,n;const i=null!==(r=null==t?void 0:t.targetId)&&void 0!==r?r:null==e?void 0:e.targetId;if(!i)return;const o=null===(n=document.querySelector(`#${i}`))||void 0===n?void 0:n.parentElement;if(!o)return;if(((e,t)=>{var r,n,i,o;const a=null===(o=null===(i=null===(n=null===(r=window.apntag)||void 0===r?void 0:r.requests)||void 0===n?void 0:n.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 r,n;for(const[i,o]of Object.entries(D))if(o(e)){if("nativeAd"===i){const o="default";t.dataset.testid=`${i}-${null!==(n=null===(r=null==e?void 0:e.native)||void 0===r?void 0:r.desc2)&&void 0!==n?n:o}`;break}t.dataset.testid=i;break}})(e,o)};I('.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 W={Blink:"Blink"},M=new Map,K=e=>{var t;if(!M.has(e)){const t=import(/* webpackIgnore: true */e).then(e=>(e=>{for(const[t,r]of Object.entries(W)){const n=e[t];null!=n&&(window[r]=n)}})(e)).catch(t=>{throw M.delete(e),t});M.set(e,t)}return null!==(t=M.get(e))&&void 0!==t?t:Promise.resolve()},J="https://assets.finn.no/pkg/distribution-fixed/v1/FINNExternalDistribution.modern.js";$([],()=>{const e=({width:e,height:t})=>{var r;const n=null===(r=document.querySelector("#sf_align"))||void 0===r?void 0:r.querySelector("div");if(!n)return;const{clientWidth:i,clientHeight:o}=n,a=e/i,l=t/o;n.style.transform=`scale(${a},${l})`,n.style.transformOrigin="left top"},t=()=>{const{innerWidth:t,innerHeight:r}=window;e({width:t,height:r})};window.addEventListener("resize",t=>{if(!t.currentTarget)return;const r={width:innerWidth,height:innerHeight};e(r)});const r=window.frameElement;(null==r?void 0:r.contentWindow)?r.contentWindow.document.body.onload=t:document.body.onload=t}),I('body.fullscreen-scroll-in-screen{overflow-x:hidden}.advertory-fullscreen-scroll-wrapper{visibility:hidden;overflow:visible;width:100vw !important;height:var(--advertory-fullscreen-scroll-vh, 100vh) !important;position:relative;margin:var(--advertory-fullscreen-scroll-wrapper-margin);z-index:1;display:block !important;min-height:250px;padding:0 !important;clip-path:polygon(0 0, 100vw 0, 100vw 100dvh, 0 100dvh);-webkit-clip-path:polygon(0 0, 100vw 0, 100vw 100dvh, 0 100dvh);flex-shrink:0}.advertory-fullscreen-scroll-wrapper>div{position:fixed;top:0;left:0;height:var(--advertory-fullscreen-scroll-vh, 100vh) !important;width:100vw !important;overflow:hidden}html[data-app-platform=iOS] .advertory-fullscreen-scroll-wrapper>div{height:calc(var(--advertory-fullscreen-scroll-vh, 100vh) - env(safe-area-inset-top) + var(--advertory-ios-safe-area-top-fix, 0px) - env(safe-area-inset-bottom)) !important;top:unset !important;bottom:env(safe-area-inset-bottom) !important}.advertory-fullscreen-scroll-wrapper>div>iframe{height:inherit !important;width:inherit !important;display:none !important}.advertory-fullscreen-scroll-wrapper.in-screen{visibility:visible;overflow:visible;width:100vw !important}.advertory-fullscreen-scroll-wrapper.in-screen>div>iframe{display:block !important}.advertory-fullscreen-scroll-wrapper.in-screen:before{content:"";width:100vw;height:150dvh;position:relative !important;display:block;transform:translateX(-50%);overflow:visible;z-index:1;left:50%;top:-150dvh;padding:0 !important}.advertory-fullscreen-scroll-wrapper.in-screen:after{content:"";width:100vw;height:150dvh;position:relative !important;display:block;transform:translateX(-50%);overflow:visible;z-index:1;left:50%;top:-50dvh}.advertory-fullscreen-scroll{position:fixed;top:var(--advertory-fullscreen-scroll-top, 0px);left:var(--advertory-fullscreen-scroll-left, 0px);width:var(--advertory-fullscreen-scroll-vw, 100vw);height:var(--advertory-fullscreen-scroll-vh, 100vh);overflow:hidden}.advertory-fullscreen-scroll:not([data-ad-label-custom])::before{text-transform:lowercase}.advertory-fullscreen-scroll::before{content:attr(data-ad-label);box-sizing:border-box;position:fixed;top:var(--advertory-political-box-offset, 0px)}html[data-app-platform=iOS] .advertory-fullscreen-scroll::before{top:calc(env(safe-area-inset-top) - var(--advertory-ios-safe-area-top-fix, 0px) + var(--advertory-political-box-offset, 0px)) !important}.advertory-fullscreen-scroll::before{left:calc(50vw - 628px);width:calc(100% - 36px);max-width:1250px;text-align:left;background-color:hsla(0,0%,100%,.6);color:#212121;font-family:Ester Blenda,Arial,sans-serif;font-size:11px;font-weight:400;font-style:normal;line-height:1;margin:16px 2px;padding:10px;z-index:1;visibility:inherit !important}@media screen and (max-width: 1290px){.advertory-fullscreen-scroll::before{left:16px}}.advertory-fullscreen-scroll[data-move-cogwheel-to-the-left=true]>div[role=button]{left:calc(50vw - 623px);right:unset}@media screen and (max-width: 1290px){.advertory-fullscreen-scroll[data-move-cogwheel-to-the-left=true]>div[role=button]{left:22px;right:unset}}.advertory-fullscreen-scroll[data-move-cogwheel-to-the-left=true]::before{padding-left:32px}.advertory-fullscreen-scroll>div[id*=utif]{display:block;width:var(--advertory-fullscreen-scroll-vw, 100vw) !important;height:var(--advertory-fullscreen-scroll-vh, 100vh) !important}html[data-app-platform=iOS] .advertory-fullscreen-scroll>div[id*=utif]{height:calc(var(--advertory-fullscreen-scroll-vh, 100vh) - env(safe-area-inset-top) + var(--advertory-ios-safe-area-top-fix, 0px) - env(safe-area-inset-bottom)) !important}.advertory-fullscreen-scroll>div[id*=utif]{overflow:hidden}.advertory-fullscreen-scroll>div[id*=utif]>iframe{display:block;height:inherit !important;width:inherit !important}.advertory-fullscreen-scroll>div[role=button]{z-index:2;opacity:1;background:rgba(0,0,0,0) !important;left:unset;position:fixed !important;right:calc(50vw - 623px);top:calc(19px + var(--advertory-political-box-offset, 0px)) !important;width:26px !important;height:26px !important}html[data-app-platform=iOS] .advertory-fullscreen-scroll>div[role=button]{top:calc(env(safe-area-inset-top) - var(--advertory-ios-safe-area-top-fix) + 19px + var(--advertory-political-box-offset, 0px)) !important}@media screen and (max-width: 1290px){.advertory-fullscreen-scroll>div[role=button]{right:22px}}');class X extends C{constructor(e,t){var r;super(e.pulse.instance,null!==(r=e.pageContext.publisher)&&void 0!==r?r:""),this.blinkParams=e,this.targetId=t}getTargetId(){return this.targetId}computeInvCode(){const{pageContext:{deviceType:e},placements:t}=this.blinkParams;if(e)return S(e,this.targetId,t)}buildAdObject(){const e=X.extractAdFormat(this.targetId);return{objectId:this.targetId,objectSdrn:`sdrn:${this.publisher}:ad-slot:${e}`,platform:"blink",adFormat:e}}}const G=e=>{const{pageContext:{publisher:t=""}}=j.get(),r=document.querySelector(`#${e}`);if(!r)return;const n=`-${t}`;r.classList.remove(`advertory${n}-finn-blink`),r.classList.remove(`advertory${n}-finn-blink-wrapper`)},R=e=>{var t,r;const n=document.querySelector(`[id^="${e}"]`);return null!==(r=null===(t=null==n?void 0:n.dataset)||void 0===t?void 0:t.finnBlinkId)&&void 0!==r?r:e},V=(e,t)=>{const{finnBlink:{enabled:r}={}}=j.get(),n=(null==t?void 0:t.enabled)||(e=>{var t;const r=document.querySelector(`[id^="${e}"]`);return!!(null===(t=null==r?void 0:r.dataset)||void 0===t?void 0:t.noBidAd)})(e);if(!n||!r)return null;const{height:i,requireImage:o,position:a,offset:l}=(null==t?void 0:t.sdkPayload)||{};return{selector:`#${R(e)}`,enabled:n,position:null!=a?a:e,height:null!=i?i:100,offset:null!=l?l:200,requireImage:o,advertoryTheme:null==t?void 0:t.advertoryTheme}},Q=(e,t,r)=>q(void 0,void 0,void 0,function*(){const{placements:n,pageContext:{deviceType:i},appearanceConfig:o}=j.get();A(`rendering finn blink ad for ${e}`);const a=F(e),l=n[i].find(e=>e.targetId===a),d=V(e,null==l?void 0:l.finnBlink);if(!(null==d?void 0:d.enabled))return A(`Finn blink is not enabled on placement: ${e}`),r&&r(e),void G(e);if((e=>{var t;const r=R(e),n=document.querySelector(`[id^="${r}"]`);return!!(null===(t=null==n?void 0:n.classList)||void 0===t?void 0:t.contains("finn"))})(e))return void A(`Finn blink already loaded ${e}`);const{publisher:s,countryCode:c,finnBlink:v}=t,{sdkPayload:{channel:p}={}}=null!=v?v:{},f=null!=p?p:`${s}.${c}`,u="dark"===(null==o?void 0:o.theme)?"dark":"light";try{const e=yield B();yield(h=Object.assign(Object.assign({},d),{channel:f,userId:e,theme:u}),q(void 0,void 0,void 0,function*(){const{userId:e,theme:t}=h,r=N(h,["userId","theme"]),n=window[W.Blink];if(!n)return;const i=new n({remote:"https://www.finn.no/distribution-front/external/carousel",userId:e,theme:t});yield i.inject(Object.assign({},r))})),((e,t)=>{const{siteSpecificConfig:{publisherClassName:r}={},pageContext:{pageType:n},pulse:i}=j.get(),o=document.querySelector(`#${e}`);if(!o)return;if(o.classList.add("disable-cogwheel"),(null==i?void 0:i.instance)&&i.adTrackingEnabled){const t=new X(j.get(),e);t.trackLoad(),t.trackImpression(),o.addEventListener("click",()=>t.trackEngagement())}E(r,o,T.FINN_BLINK,null!=t?t:n),H({preferredTestIdData:{targetId:e,testId:"finn"}})})(d.selector.replace("#",""),d.advertoryTheme)}catch(t){A(`Finn blink error ${t}`),r&&r(e),!r&&O(e),G(e)}var h}),U=()=>q(void 0,void 0,void 0,function*(){const{tcf:e,pageContext:{isMobileApp:t,countryCode:r}}=j.get();return!!(yield L(e,t,r,"finn-blink"))||(A("Skip loading finn blink ad due to missing TCF consent."),!1)}),Y=(e,t,r,n)=>q(void 0,void 0,void 0,function*(){const{pageContext:{isMobileApp:i}}=j.get();if(A(`loadFinnBlinkAd: loading finn blink ad for ${e}`),!(yield U())||i)return r&&r(e),G(e),void(!r&&O(e));try{yield K(J)}catch(e){console.error(e)}yield Q(e,t,r),n&&n()}),Z=(e,t)=>{var r;(A(`Appending ${t.id} after ${e.id}`),e.parentElement&&(r=e.parentElement,!Array.from(r.children).some(e=>e.classList.contains("advertory-finn-blink-wrapper"))))?(e.parentElement.style.display="none",e.parentElement.insertAdjacentElement("afterend",t)):A(`Cannot perform afterend on: ${e.id}`)},ee=(e,t)=>q(void 0,void 0,void 0,function*(){var r,n;if(!t)return;const{replacementConfig:i}=t,o=null===(r=null==i?void 0:i.adsToReplace)||void 0===r?void 0:r[e],a=null===(n=null==i?void 0:i.sizes)||void 0===n?void 0:n[e];z()&&o&&a?(yield U())&&(yield K(J),o.forEach(([e,t])=>{const r=document.querySelector(`[id^="${e}"]`);if(!r)return;const n=(e=>{const{siteSpecificConfig:{publisherClassName:t}={}}=j.get(),r=document.createElement("div"),n=document.createElement("div");return n.id=e,r.appendChild(n),E(t,n,T.FINN_BLINK),A(`Creating blink container for: ${e}`),r})(t);(e=>{A(`Hiding old ad container: ${e.id}`),e.style.setProperty("display","none","important")})(r),Z(r,n),r.dataset.finnBlinkId=t,P().withFullAdsChain(e)})):A(`Finn blink configuration is incorrect: ${JSON.stringify(i)}`)}),te=e=>document.querySelector(`#${e}`),re=e=>q(void 0,void 0,void 0,function*(){if(!e.length)return;const{appearanceConfig:t,pageContext:{deviceType:r}}=j.get(),n=null==t?void 0:t.defaultThreshold[r];for(const t of e){const{requestThreshold:e,targetId:r}=t,i=te(r);i&&(yield _(i,null!=e?e:n))}});export{re as handleFinnBlinkOnlyPlacements,Y as loadFinnBlinkAd,ee as replaceAdsWithFinnBlink};
@@ -1 +1 @@
1
- import{_ as t,c as e,h as o,j as n,C as s}from"./_auto-entry_mtv-DsuRsc1u.js";import"react/jsx-runtime";const i=t=>t===s.NO?"schibsted":"schibstedse",d=()=>t(void 0,void 0,void 0,function*(){const{norstat:{enabled:s}={},pageContext:{countryCode:d,isMobileApp:a},tcf:c}=e.get(),r=yield o(c,a,d,"norstat");if(!s||a||!r)return;const m=n(d);((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(d)}/map/${m}`,"norstat")});export{i as getCampaign,d as loadNorstat};
1
+ import{_ as t,B as e,J as o,N as n,O as s}from"./_auto-entry_mtv-D53dvC1i.js";import"react/jsx-runtime";const i=t=>t===s.NO?"schibsted":"schibstedse",d=()=>t(void 0,void 0,void 0,function*(){const{norstat:{enabled:s}={},pageContext:{countryCode:d,isMobileApp:a},tcf:r}=e.get(),c=yield o(r,a,d,"norstat");if(!s||a||!c)return;const m=n(d);((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(d)}/map/${m}`,"norstat")});export{i as getCampaign,d as loadNorstat};
package/mtv/es/index.d.ts CHANGED
@@ -279,7 +279,7 @@ interface AstNativeIcon {
279
279
  prevent_crop?: boolean;
280
280
  }
281
281
 
282
- declare const events: Events;
282
+ declare const siteEvents: Events;
283
283
 
284
284
  declare const DeviceTypes: {
285
285
  readonly MOBILE: "mobile";
@@ -509,7 +509,6 @@ interface PlacementRefreshConfig {
509
509
  }
510
510
  interface Placement {
511
511
  targetId: string;
512
- adUnitId?: string;
513
512
  sizes: Array<Array<number>>;
514
513
  allowedFormats: Array<AstAdType>;
515
514
  invCode: string;
@@ -596,6 +595,11 @@ interface TCFConfig {
596
595
  timeout?: number;
597
596
  nonRtb?: NonRTBConfig;
598
597
  }
598
+ interface ManagedThirdPartyConfig {
599
+ readpeakUrl?: string;
600
+ adnamiUrl?: string;
601
+ adformDmpUrl?: string;
602
+ }
599
603
  interface PrebidConfig {
600
604
  enabled: boolean;
601
605
  prebidUrl: string;
@@ -606,6 +610,7 @@ interface PrebidConfig {
606
610
  forwardGlimrTags?: boolean;
607
611
  manageAdserver?: boolean;
608
612
  adServerUrl?: string;
613
+ thirdParty?: ManagedThirdPartyConfig;
609
614
  }
610
615
  interface NonRTBConfig {
611
616
  invCodeSuffix?: string;
@@ -880,8 +885,13 @@ interface Advertory {
880
885
  getVideoAdsConfig: (params: VideoAdsConfigParams) => (stream: VideoStream) => Promise<Record<string, unknown>>;
881
886
  }
882
887
 
888
+ declare const TagDefinitions: {
889
+ readonly EXPLICIT: "explicit";
890
+ readonly DOM_DISCOVERED: "dom-discovered";
891
+ };
892
+ type TagDefinition = (typeof TagDefinitions)[keyof typeof TagDefinitions];
883
893
  interface AdServerCapabilities {
884
- tagDefinition: 'explicit' | 'dom-discovered';
894
+ tagDefinition: TagDefinition;
885
895
  deferredRequest: boolean;
886
896
  deferredRender: boolean;
887
897
  refresh: boolean;
@@ -899,18 +909,29 @@ interface AdEventBus {
899
909
  on: (event: AdEventName, handler: AdEventHandler) => void;
900
910
  }
901
911
 
912
+ interface RefreshOptions {
913
+ keepPreviousSizes?: Array<Placement>;
914
+ applyReloadKeyword?: boolean;
915
+ }
902
916
  interface AdServerDriver {
903
917
  readonly name: string;
904
918
  readonly capabilities: AdServerCapabilities;
919
+ readonly messageOrigins?: ReadonlyArray<string>;
905
920
  setup(): Promise<void>;
906
921
  setTargeting(): Promise<void>;
922
+ enrichPlacementsAfterDiscovery?(placements: Array<Placement>): Array<Placement>;
923
+ adjustPlacementsBeforeRequest?(placements: Array<Placement>): Promise<Array<Placement>>;
907
924
  definePlacements?(placements: Array<Placement>): void;
908
925
  requestPlacements?(placements: Array<Placement>): Promise<void>;
909
926
  requestPage?(): Promise<void>;
910
927
  bindEvents(bus: AdEventBus): Promise<void>;
928
+ clear?(targetIds: Array<string>): void;
929
+ resizeCreative?(targetId: string, size: Array<number>, isMediation?: boolean): void;
930
+ render?(targetId: string): void;
931
+ refresh?(targetIds: Array<string>, options?: RefreshOptions): void;
911
932
  }
912
933
 
913
- declare const createAdvertory: (handlers: SiteHandlers, siteSpecificConfig?: SiteSpecificConfig, driver?: AdServerDriver) => Advertory;
934
+ declare const createAdvertory: (handlers: SiteHandlers, driver: AdServerDriver, siteSpecificConfig?: SiteSpecificConfig) => Advertory;
914
935
 
915
936
  declare const prepareTag: (tag: AstDefineTagParams) => AstDefineTagParams;
916
937
 
@@ -921,9 +942,9 @@ declare const relevantManagedDriver: AdServerDriver;
921
942
  const HANDLERS = {
922
943
  prepareTag,
923
944
  preparePageOptions,
924
- siteEvents: events,
945
+ siteEvents,
925
946
  };
926
947
 
927
- const advertory = createAdvertory(HANDLERS, siteSpecificConfig, relevantManagedDriver);
948
+ const advertory = createAdvertory(HANDLERS, relevantManagedDriver, siteSpecificConfig);
928
949
 
929
950
  export { advertory as default };
package/mtv/es/index.js CHANGED
@@ -1 +1 @@
1
- export{W as default}from"./_auto-entry_mtv-DsuRsc1u.js";import"react/jsx-runtime";
1
+ export{X as default}from"./_auto-entry_mtv-D53dvC1i.js";import"react/jsx-runtime";
@@ -1 +1 @@
1
- import{i as a}from"./_auto-entry_svd-CuD9iF48.js";import"react/jsx-runtime";const e=a("[data-carousel-viewport]{position:relative;overflow:hidden;padding-bottom:4px;touch-action:pan-y;user-select:none}[data-carousel-track]{display:flex;gap:10px;will-change:transform}[data-carousel-track] [data-carousel-slide]:not(.is-active){opacity:.9;filter:saturate(0.72)}[data-carousel-track] .carousel-slide{flex:0 0 82%;margin:0;overflow:hidden;border:1px solid hsla(0,0%,100%,.68);border-radius:12px;box-shadow:#adadad 1px 1px 1px}[data-carousel-track] .carousel-slide .slide-image{display:block;width:100%;height:auto;aspect-ratio:1/1;object-fit:cover;pointer-events:none}");export{e as default};
1
+ import{x as a}from"./_auto-entry_mtv-D53dvC1i.js";import"react/jsx-runtime";const e=a("[data-carousel-viewport]{position:relative;overflow:hidden;padding-bottom:4px;touch-action:pan-y;user-select:none}[data-carousel-track]{display:flex;gap:10px;will-change:transform}[data-carousel-track] [data-carousel-slide]:not(.is-active){opacity:.9;filter:saturate(0.72)}[data-carousel-track] .carousel-slide{flex:0 0 82%;margin:0;overflow:hidden;border:1px solid hsla(0,0%,100%,.68);border-radius:12px;box-shadow:#adadad 1px 1px 1px}[data-carousel-track] .carousel-slide .slide-image{display:block;width:100%;height:auto;aspect-ratio:1/1;object-fit:cover;pointer-events:none}");export{e as default};