From 9824061e4745e7576f35103777e9a70712546b9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20MARQUET?= Date: Thu, 6 Mar 2025 09:05:55 +0100 Subject: [PATCH] feat: add exercises and calculations for statistical analysis in R --- Fonction type/Cardinalité.R | 29 ++++ Fonction type/Intégrale.R | 71 ++++++++++ .../MathJax.js.téléchargement | 19 +++ .../ajouteexo.js.téléchargement | 47 ++++++ .../bibmathnet.js.téléchargement | 4 + .../fonctions.js.téléchargement | 134 ++++++++++++++++++ .../oXHR.js.téléchargement | 22 +++ .../scrolling.js.téléchargement | 59 ++++++++ .../MathJax.js.téléchargement | 19 +++ .../ajouteexo.js.téléchargement | 47 ++++++ .../bibmathnet.js.téléchargement | 4 + .../fonctions.js.téléchargement | 134 ++++++++++++++++++ .../oXHR.js.téléchargement | 22 +++ .../scrolling.js.téléchargement | 59 ++++++++ TD/.Rhistory | 92 ++++++++++++ .../F9ECB55E/sources/per/t/B62E70DA | 12 +- .../F9ECB55E/sources/per/t/B62E70DA-contents | 27 +++- TD/.Rproj.user/F9ECB55E/sources/prop/1489AED4 | 4 +- 18 files changed, 796 insertions(+), 9 deletions(-) create mode 100644 Fonction type/Cardinalité.R create mode 100644 Fonction type/Intégrale.R create mode 100644 Ma feuille d'exercice - Bibm@th.net_files/MathJax.js.téléchargement create mode 100644 Ma feuille d'exercice - Bibm@th.net_files/ajouteexo.js.téléchargement create mode 100644 Ma feuille d'exercice - Bibm@th.net_files/bibmathnet.js.téléchargement create mode 100644 Ma feuille d'exercice - Bibm@th.net_files/fonctions.js.téléchargement create mode 100644 Ma feuille d'exercice - Bibm@th.net_files/oXHR.js.téléchargement create mode 100644 Ma feuille d'exercice - Bibm@th.net_files/scrolling.js.téléchargement create mode 100644 Ma feuille d'exercice2 - Bibm@th.net_files/MathJax.js.téléchargement create mode 100644 Ma feuille d'exercice2 - Bibm@th.net_files/ajouteexo.js.téléchargement create mode 100644 Ma feuille d'exercice2 - Bibm@th.net_files/bibmathnet.js.téléchargement create mode 100644 Ma feuille d'exercice2 - Bibm@th.net_files/fonctions.js.téléchargement create mode 100644 Ma feuille d'exercice2 - Bibm@th.net_files/oXHR.js.téléchargement create mode 100644 Ma feuille d'exercice2 - Bibm@th.net_files/scrolling.js.téléchargement diff --git a/Fonction type/Cardinalité.R b/Fonction type/Cardinalité.R new file mode 100644 index 0000000..9bee38e --- /dev/null +++ b/Fonction type/Cardinalité.R @@ -0,0 +1,29 @@ +# Exemple 1 +# Définir l'ensemble +ensemble <- c(1, 2, 3, 4, 5) + +# Calculer la cardinalité de l'ensemble +cardinalite <- length(ensemble) + +# Afficher le résultat +print(paste("La cardinalité de l'ensemble est:", cardinalite)) + +# Exemple 2 +# Définir l'ensemble avec des éléments répétés +ensemble <- c(1, 2, 2, 3, 4, 4, 5) + +# Calculer la cardinalité de l'ensemble avec des éléments uniques +cardinalite_unique <- length(unique(ensemble)) + +# Afficher le résultat +print(paste("La cardinalité de l'ensemble avec des éléments uniques est:", cardinalite_unique)) + +# Exemple 3 +# Définir un ensemble vide +ensemble_vide <- c() + +# Calculer la cardinalité de l'ensemble vide +cardinalite_vide <- length(ensemble_vide) + +# Afficher le résultat +print(paste("La cardinalité de l'ensemble vide est:", cardinalite_vide)) \ No newline at end of file diff --git a/Fonction type/Intégrale.R b/Fonction type/Intégrale.R new file mode 100644 index 0000000..70be6c0 --- /dev/null +++ b/Fonction type/Intégrale.R @@ -0,0 +1,71 @@ +# Exemple 1 +# Définir la fonction à intégrer +f <- function(x) { + return(x^2) +} + +# Définir les bornes de l'intégration +a <- 0 +b <- 1 + +# Définir le nombre de rectangles +n <- 1000 + +# Calculer la largeur de chaque rectangle +dx <- (b - a) / n + +# Calculer les abscisses des points intermédiaires +x_vals <- seq(a, b, length.out = n+1) + +# Calculer les ordonnées des points intermédiaires +y_vals <- f(x_vals) + +# Calculer l'intégrale en utilisant la méthode des rectangles +integrale_rect <- sum(y_vals[-(n+1)] * dx) + +# Afficher le résultat +print(paste("L'intégrale de x^2 sur [0, 1] est environ:", integrale_rect)) + +# Exemple 2 +# Définir la fonction à intégrer +f <- function(x) { + return(exp(x)) +} + +# Définir les bornes de l'intégration +a <- 0 +b <- 1 + +# Définir le nombre de subdivisions (doit être pair) +n <- 1000 + +# Calculer la largeur de chaque subdivision +h <- (b - a) / n + +# Calculer les abscisses des points intermédiaires +x_vals <- seq(a, b, length.out = n+1) + +# Calculer les ordonnées des points intermédiaires +y_vals <- f(x_vals) + +# Calculer l'intégrale en utilisant la méthode de Simpson +integrale_simpson <- (h/3) * (y_vals[1] + y_vals[n+1] + 4 * sum(y_vals[seq(2, n, by=2)]) + 2 * sum(y_vals[seq(3, n-1, by=2)])) + +# Afficher le résultat +print(paste("L'intégrale de e^x sur [0, 1] est environ:", integrale_simpson)) + +# Exemple 3 +# Définir la fonction à intégrer +f <- function(x) { + return(sin(x)) +} + +# Définir les bornes de l'intégration +a <- 0 +b <- pi + +# Calculer l'intégrale en utilisant la fonction integrate +result <- integrate(f, a, b) + +# Afficher le résultat +print(paste("L'intégrale de sin(x) sur [0, pi] est environ:", result$value)) \ No newline at end of file diff --git a/Ma feuille d'exercice - Bibm@th.net_files/MathJax.js.téléchargement b/Ma feuille d'exercice - Bibm@th.net_files/MathJax.js.téléchargement new file mode 100644 index 0000000..b77df92 --- /dev/null +++ b/Ma feuille d'exercice - Bibm@th.net_files/MathJax.js.téléchargement @@ -0,0 +1,19 @@ +/* + * /MathJax.js + * + * Copyright (c) 2009-2017 The MathJax Consortium + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +if(document.getElementById&&document.childNodes&&document.createElement){if(!(window.MathJax&&MathJax.Hub)){if(window.MathJax){window.MathJax={AuthorConfig:window.MathJax}}else{window.MathJax={}}MathJax.isPacked=true;MathJax.version="2.7.1";MathJax.fileversion="2.7.1";MathJax.cdnVersion="2.7.1";MathJax.cdnFileVersions={};(function(d){var b=window[d];if(!b){b=window[d]={}}var e=[];var c=function(f){var g=f.constructor;if(!g){g=function(){}}for(var h in f){if(h!=="constructor"&&f.hasOwnProperty(h)){g[h]=f[h]}}return g};var a=function(){return function(){return arguments.callee.Init.call(this,arguments)}};b.Object=c({constructor:a(),Subclass:function(f,h){var g=a();g.SUPER=this;g.Init=this.Init;g.Subclass=this.Subclass;g.Augment=this.Augment;g.protoFunction=this.protoFunction;g.can=this.can;g.has=this.has;g.isa=this.isa;g.prototype=new this(e);g.prototype.constructor=g;g.Augment(f,h);return g},Init:function(f){var g=this;if(f.length===1&&f[0]===e){return g}if(!(g instanceof f.callee)){g=new f.callee(e)}return g.Init.apply(g,f)||g},Augment:function(f,g){var h;if(f!=null){for(h in f){if(f.hasOwnProperty(h)){this.protoFunction(h,f[h])}}if(f.toString!==this.prototype.toString&&f.toString!=={}.toString){this.protoFunction("toString",f.toString)}}if(g!=null){for(h in g){if(g.hasOwnProperty(h)){this[h]=g[h]}}}return this},protoFunction:function(g,f){this.prototype[g]=f;if(typeof f==="function"){f.SUPER=this.SUPER.prototype}},prototype:{Init:function(){},SUPER:function(f){return f.callee.SUPER},can:function(f){return typeof(this[f])==="function"},has:function(f){return typeof(this[f])!=="undefined"},isa:function(f){return(f instanceof Object)&&(this instanceof f)}},can:function(f){return this.prototype.can.call(this,f)},has:function(f){return this.prototype.has.call(this,f)},isa:function(g){var f=this;while(f){if(f===g){return true}else{f=f.SUPER}}return false},SimpleSUPER:c({constructor:function(f){return this.SimpleSUPER.define(f)},define:function(f){var h={};if(f!=null){for(var g in f){if(f.hasOwnProperty(g)){h[g]=this.wrap(g,f[g])}}if(f.toString!==this.prototype.toString&&f.toString!=={}.toString){h.toString=this.wrap("toString",f.toString)}}return h},wrap:function(i,h){if(typeof(h)!=="function"||!h.toString().match(/\.\s*SUPER\s*\(/)){return h}var g=function(){this.SUPER=g.SUPER[i];try{var f=h.apply(this,arguments)}catch(j){delete this.SUPER;throw j}delete this.SUPER;return f};g.toString=function(){return h.toString.apply(h,arguments)};return g}})});b.Object.isArray=Array.isArray||function(f){return Object.prototype.toString.call(f)==="[object Array]"};b.Object.Array=Array})("MathJax");(function(BASENAME){var BASE=window[BASENAME];if(!BASE){BASE=window[BASENAME]={}}var isArray=BASE.Object.isArray;var CALLBACK=function(data){var cb=function(){return arguments.callee.execute.apply(arguments.callee,arguments)};for(var id in CALLBACK.prototype){if(CALLBACK.prototype.hasOwnProperty(id)){if(typeof(data[id])!=="undefined"){cb[id]=data[id]}else{cb[id]=CALLBACK.prototype[id]}}}cb.toString=CALLBACK.prototype.toString;return cb};CALLBACK.prototype={isCallback:true,hook:function(){},data:[],object:window,execute:function(){if(!this.called||this.autoReset){this.called=!this.autoReset;return this.hook.apply(this.object,this.data.concat([].slice.call(arguments,0)))}},reset:function(){delete this.called},toString:function(){return this.hook.toString.apply(this.hook,arguments)}};var ISCALLBACK=function(f){return(typeof(f)==="function"&&f.isCallback)};var EVAL=function(code){return eval.call(window,code)};var TESTEVAL=function(){EVAL("var __TeSt_VaR__ = 1");if(window.__TeSt_VaR__){try{delete window.__TeSt_VaR__}catch(error){window.__TeSt_VaR__=null}}else{if(window.execScript){EVAL=function(code){BASE.__code=code;code="try {"+BASENAME+".__result = eval("+BASENAME+".__code)} catch(err) {"+BASENAME+".__result = err}";window.execScript(code);var result=BASE.__result;delete BASE.__result;delete BASE.__code;if(result instanceof Error){throw result}return result}}else{EVAL=function(code){BASE.__code=code;code="try {"+BASENAME+".__result = eval("+BASENAME+".__code)} catch(err) {"+BASENAME+".__result = err}";var head=(document.getElementsByTagName("head"))[0];if(!head){head=document.body}var script=document.createElement("script");script.appendChild(document.createTextNode(code));head.appendChild(script);head.removeChild(script);var result=BASE.__result;delete BASE.__result;delete BASE.__code;if(result instanceof Error){throw result}return result}}}TESTEVAL=null};var USING=function(args,i){if(arguments.length>1){if(arguments.length===2&&!(typeof arguments[0]==="function")&&arguments[0] instanceof Object&&typeof arguments[1]==="number"){args=[].slice.call(args,i)}else{args=[].slice.call(arguments,0)}}if(isArray(args)&&args.length===1){args=args[0]}if(typeof args==="function"){if(args.execute===CALLBACK.prototype.execute){return args}return CALLBACK({hook:args})}else{if(isArray(args)){if(typeof(args[0])==="string"&&args[1] instanceof Object&&typeof args[1][args[0]]==="function"){return CALLBACK({hook:args[1][args[0]],object:args[1],data:args.slice(2)})}else{if(typeof args[0]==="function"){return CALLBACK({hook:args[0],data:args.slice(1)})}else{if(typeof args[1]==="function"){return CALLBACK({hook:args[1],object:args[0],data:args.slice(2)})}}}}else{if(typeof(args)==="string"){if(TESTEVAL){TESTEVAL()}return CALLBACK({hook:EVAL,data:[args]})}else{if(args instanceof Object){return CALLBACK(args)}else{if(typeof(args)==="undefined"){return CALLBACK({})}}}}}throw Error("Can't make callback from given data")};var DELAY=function(time,callback){callback=USING(callback);callback.timeout=setTimeout(callback,time);return callback};var WAITFOR=function(callback,signal){callback=USING(callback);if(!callback.called){WAITSIGNAL(callback,signal);signal.pending++}};var WAITEXECUTE=function(){var signals=this.signal;delete this.signal;this.execute=this.oldExecute;delete this.oldExecute;var result=this.execute.apply(this,arguments);if(ISCALLBACK(result)&&!result.called){WAITSIGNAL(result,signals)}else{for(var i=0,m=signals.length;i0&&priority=0;i--){this.hooks.splice(i,1)}this.remove=[]}});var EXECUTEHOOKS=function(hooks,data,reset){if(!hooks){return null}if(!isArray(hooks)){hooks=[hooks]}if(!isArray(data)){data=(data==null?[]:[data])}var handler=HOOKS(reset);for(var i=0,m=hooks.length;ig){g=document.styleSheets.length}if(!i){i=document.head||((document.getElementsByTagName("head"))[0]);if(!i){i=document.body}}return i};var f=[];var c=function(){for(var k=0,j=f.length;k=this.timeout){i(this.STATUS.ERROR);return 1}return 0},file:function(j,i){if(i<0){a.Ajax.loadTimeout(j)}else{a.Ajax.loadComplete(j)}},execute:function(){this.hook.call(this.object,this,this.data[0],this.data[1])},checkSafari2:function(i,j,k){if(i.time(k)){return}if(document.styleSheets.length>j&&document.styleSheets[j].cssRules&&document.styleSheets[j].cssRules.length){k(i.STATUS.OK)}else{setTimeout(i,i.delay)}},checkLength:function(i,l,n){if(i.time(n)){return}var m=0;var j=(l.sheet||l.styleSheet);try{if((j.cssRules||j.rules||[]).length>0){m=1}}catch(k){if(k.message.match(/protected variable|restricted URI/)){m=1}else{if(k.message.match(/Security error/)){m=1}}}if(m){setTimeout(a.Callback([n,i.STATUS.OK]),0)}else{setTimeout(i,i.delay)}}},loadComplete:function(i){i=this.fileURL(i);var j=this.loading[i];if(j&&!j.preloaded){a.Message.Clear(j.message);clearTimeout(j.timeout);if(j.script){if(f.length===0){setTimeout(c,0)}f.push(j.script)}this.loaded[i]=j.status;delete this.loading[i];this.addHook(i,j.callback)}else{if(j){delete this.loading[i]}this.loaded[i]=this.STATUS.OK;j={status:this.STATUS.OK}}if(!this.loadHooks[i]){return null}return this.loadHooks[i].Execute(j.status)},loadTimeout:function(i){if(this.loading[i].timeout){clearTimeout(this.loading[i].timeout)}this.loading[i].status=this.STATUS.ERROR;this.loadError(i);this.loadComplete(i)},loadError:function(i){a.Message.Set(["LoadFailed","File failed to load: %1",i],null,2000);a.Hub.signal.Post(["file load error",i])},Styles:function(k,l){var i=this.StyleString(k);if(i===""){l=a.Callback(l);l()}else{var j=document.createElement("style");j.type="text/css";this.head=h(this.head);this.head.appendChild(j);if(j.styleSheet&&typeof(j.styleSheet.cssText)!=="undefined"){j.styleSheet.cssText=i}else{j.appendChild(document.createTextNode(i))}l=this.timer.create.call(this,l,j)}return l},StyleString:function(n){if(typeof(n)==="string"){return n}var k="",o,m;for(o in n){if(n.hasOwnProperty(o)){if(typeof n[o]==="string"){k+=o+" {"+n[o]+"}\n"}else{if(a.Object.isArray(n[o])){for(var l=0;l="0"&&q<="9"){f[j]=p[f[j]-1];if(typeof f[j]==="number"){f[j]=this.number(f[j])}}else{if(q==="{"){q=f[j].substr(1);if(q>="0"&&q<="9"){f[j]=p[f[j].substr(1,f[j].length-2)-1];if(typeof f[j]==="number"){f[j]=this.number(f[j])}}else{var k=f[j].match(/^\{([a-z]+):%(\d+)\|(.*)\}$/);if(k){if(k[1]==="plural"){var d=p[k[2]-1];if(typeof d==="undefined"){f[j]="???"}else{d=this.plural(d)-1;var h=k[3].replace(/(^|[^%])(%%)*%\|/g,"$1$2%\uEFEF").split(/\|/);if(d>=0&&d=3){c.push([f[0],f[1],this.processSnippet(g,f[2])])}else{c.push(e[d])}}}}else{c.push(e[d])}}return c},markdownPattern:/(%.)|(\*{1,3})((?:%.|.)+?)\2|(`+)((?:%.|.)+?)\4|\[((?:%.|.)+?)\]\(([^\s\)]+)\)/,processMarkdown:function(b,h,d){var j=[],e;var c=b.split(this.markdownPattern);var g=c[0];for(var f=1,a=c.length;f1?d[1]:""));f=null}if(e&&(!b.preJax||d)){c.nodeValue=c.nodeValue.replace(b.postJax,(e.length>1?e[1]:""))}if(f&&!f.nodeValue.match(/\S/)){f=f.previousSibling}}if(b.preRemoveClass&&f&&f.className===b.preRemoveClass){a.MathJax.preview=f}a.MathJax.checked=1},processInput:function(a){var b,i=MathJax.ElementJax.STATE;var h,e,d=a.scripts.length;try{while(a.ithis.processUpdateTime&&a.i1){d.jax[a.outputJax].push(b)}b.MathJax.state=c.OUTPUT},prepareOutput:function(c,f){while(c.jthis.processUpdateTime&&h.i=0;q--){if((b[q].src||"").match(f)){s.script=b[q].innerHTML;if(RegExp.$2){var t=RegExp.$2.substr(1).split(/\&/);for(var p=0,l=t.length;p=parseInt(y[z])}}return true},Select:function(j){var i=j[d.Browser];if(i){return i(d.Browser)}return null}};var e=k.replace(/^Mozilla\/(\d+\.)+\d+ /,"").replace(/[a-z][-a-z0-9._: ]+\/\d+[^ ]*-[^ ]*\.([a-z][a-z])?\d+ /i,"").replace(/Gentoo |Ubuntu\/(\d+\.)*\d+ (\([^)]*\) )?/,"");d.Browser=d.Insert(d.Insert(new String("Unknown"),{version:"0.0"}),a);for(var v in a){if(a.hasOwnProperty(v)){if(a[v]&&v.substr(0,2)==="is"){v=v.slice(2);if(v==="Mac"||v==="PC"){continue}d.Browser=d.Insert(new String(v),a);var r=new RegExp(".*(Version/| Trident/.*; rv:)((?:\\d+\\.)+\\d+)|.*("+v+")"+(v=="MSIE"?" ":"/")+"((?:\\d+\\.)*\\d+)|(?:^|\\(| )([a-z][-a-z0-9._: ]+|(?:Apple)?WebKit)/((?:\\d+\\.)+\\d+)");var u=r.exec(e)||["","","","unknown","0.0"];d.Browser.name=(u[1]!=""?v:(u[3]||u[5]));d.Browser.version=u[2]||u[4]||u[6];break}}}try{d.Browser.Select({Safari:function(j){var i=parseInt((String(j.version).split("."))[0]);if(i>85){j.webkit=j.version}if(i>=538){j.version="8.0"}else{if(i>=537){j.version="7.0"}else{if(i>=536){j.version="6.0"}else{if(i>=534){j.version="5.1"}else{if(i>=533){j.version="5.0"}else{if(i>=526){j.version="4.0"}else{if(i>=525){j.version="3.1"}else{if(i>500){j.version="3.0"}else{if(i>400){j.version="2.0"}else{if(i>85){j.version="1.0"}}}}}}}}}}j.webkit=(navigator.appVersion.match(/WebKit\/(\d+)\./))[1];j.isMobile=(navigator.appVersion.match(/Mobile/i)!=null);j.noContextMenu=j.isMobile},Firefox:function(j){if((j.version==="0.0"||k.match(/Firefox/)==null)&&navigator.product==="Gecko"){var m=k.match(/[\/ ]rv:(\d+\.\d.*?)[\) ]/);if(m){j.version=m[1]}else{var i=(navigator.buildID||navigator.productSub||"0").substr(0,8);if(i>="20111220"){j.version="9.0"}else{if(i>="20111120"){j.version="8.0"}else{if(i>="20110927"){j.version="7.0"}else{if(i>="20110816"){j.version="6.0"}else{if(i>="20110621"){j.version="5.0"}else{if(i>="20110320"){j.version="4.0"}else{if(i>="20100121"){j.version="3.6"}else{if(i>="20090630"){j.version="3.5"}else{if(i>="20080617"){j.version="3.0"}else{if(i>="20061024"){j.version="2.0"}}}}}}}}}}}}j.isMobile=(navigator.appVersion.match(/Android/i)!=null||k.match(/ Fennec\//)!=null||k.match(/Mobile/)!=null)},Chrome:function(i){i.noContextMenu=i.isMobile=!!navigator.userAgent.match(/ Mobile[ \/]/)},Opera:function(i){i.version=opera.version()},Edge:function(i){i.isMobile=!!navigator.userAgent.match(/ Phone/)},MSIE:function(j){j.isMobile=!!navigator.userAgent.match(/ Phone/);j.isIE9=!!(document.documentMode&&(window.performance||window.msPerformance));MathJax.HTML.setScriptBug=!j.isIE9||document.documentMode<9;MathJax.Hub.msieHTMLCollectionBug=(document.documentMode<9);if(document.documentMode<10&&!s.params.NoMathPlayer){try{new ActiveXObject("MathPlayer.Factory.1");j.hasMathPlayer=true}catch(m){}try{if(j.hasMathPlayer){var i=document.createElement("object");i.id="mathplayer";i.classid="clsid:32F66A20-7614-11D4-BD11-00104BD3F987";g.appendChild(i);document.namespaces.add("m","http://www.w3.org/1998/Math/MathML");j.mpNamespace=true;if(document.readyState&&(document.readyState==="loading"||document.readyState==="interactive")){document.write('');j.mpImported=true}}else{document.namespaces.add("mjx_IE_fix","http://www.w3.org/1999/xlink")}}catch(m){}}}})}catch(c){console.error(c.message)}d.Browser.Select(MathJax.Message.browsers);if(h.AuthorConfig&&typeof h.AuthorConfig.AuthorInit==="function"){h.AuthorConfig.AuthorInit()}d.queue=h.Callback.Queue();d.queue.Push(["Post",s.signal,"Begin"],["Config",s],["Cookie",s],["Styles",s],["Message",s],function(){var i=h.Callback.Queue(s.Jax(),s.Extensions());return i.Push({})},["Menu",s],s.onLoad(),function(){MathJax.isReady=true},["Typeset",s],["Hash",s],["MenuZoom",s],["Post",s.signal,"End"])})("MathJax")}}; diff --git a/Ma feuille d'exercice - Bibm@th.net_files/ajouteexo.js.téléchargement b/Ma feuille d'exercice - Bibm@th.net_files/ajouteexo.js.téléchargement new file mode 100644 index 0000000..863d68d --- /dev/null +++ b/Ma feuille d'exercice - Bibm@th.net_files/ajouteexo.js.téléchargement @@ -0,0 +1,47 @@ +/* Contient toutes les fonctions nécessaires pour ajouter un exo dans la feuille courante de la base de données */ + + var xhr = null; // Variable globale qui contient la requête. Globale pour éviter deux requêtes simultanées, pour ne pas surcharger le serveur... + + function ajouteexo(id,numerocadre,punid,punisguest) + { + if (xhr && xhr.readyState != 0) { + // On doit attendre que la requête ait aboutie avant d'en envoyer une deuxième.... + return; + } + + xhr=getXMLHttpRequest(); // On crée la requête + + xhr.open("GET", "lib/ajouteexofeuille.php?id=" +id+"&punid="+punid+"&punisguest="+punisguest, true); // Requête asynchrone... + + // On modifie le texte affiché... + + document.getElementById("exo"+numerocadre).disable="true"; + document.getElementById("exo"+numerocadre).innerHTML=" [Ajout en cours...] "; + + // On prépare la réponse quand la requête est terminée : affichage intermittent de Ajout Effectué... + + xhr.onreadystatechange = function() + { + if (xhr.readyState == 4 && (xhr.status == 200 || xhr.status == 0)) + { + document.getElementById("exo"+numerocadre).innerHTML = " [Ajout effectué] "; + xhr.abort(); // On peut mettre fin à la requête. + setTimeout (function( ) + { + document.getElementById("exo"+numerocadre).innerHTML= " [Ajouter à ma feuille d'exos] "; + document.getElementById("exo"+numerocadre).disable="false"; + }, 4000); + } + else if (xhr.readyState == 4) + { + document.getElementById("exo"+numerocadre).disable="false"; + document.getElementById("exo"+numerocadre).innerHTML=" [Ajouter à ma feuille d'exos] "; + xhr.abort(); + } + }; + + // On lance la requête. + + xhr.send(null); + + } \ No newline at end of file diff --git a/Ma feuille d'exercice - Bibm@th.net_files/bibmathnet.js.téléchargement b/Ma feuille d'exercice - Bibm@th.net_files/bibmathnet.js.téléchargement new file mode 100644 index 0000000..cc1f6a3 --- /dev/null +++ b/Ma feuille d'exercice - Bibm@th.net_files/bibmathnet.js.téléchargement @@ -0,0 +1,4 @@ +// Refresh : 2024-11-22 09:25:56 +var r89Data = {"scripts":{"pbjs":"https:\/\/tags.refinery89.com\/prebid\/prebid8.52.2.js","pubx":"https:\/\/cdn.pbxai.com\/95910a44-4e78-40ea-82d9-1d1c8f0b9575.js","new_pbjs":"https:\/\/tags.refinery89.com\/prebid\/prebid8.52.2.js"},"integrations":{"gpt":true,"pbjs":true,"aps":true},"init_on":"ContentLoaded","website_id":1721,"website_key_value":"bibmath.net","website_country_code":"FR","website_base_url":"bibmath.net","publisher_id":"600","desktop_width":992,"contextual":0,"seller":{"id":"00600","name":"Bayart"},"script_timeout":0,"script_timeout_options":[0],"adunit_wrapper_sticky_top":"0px","track_functions":0,"prioritize_custom_ad_units":0,"contextual_filters":["\/tag\/","\/category\/","\/categorie\/","\/search\/","\/zoeken","\/profiel\/","\/profile\/","\/threads\/","\/author\/"],"preload":["https:\/\/cdn.consentmanager.net\/delivery\/js\/cmp_en.min.js","https:\/\/securepubads.g.doubleclick.net\/tag\/js\/gpt.js","https:\/\/tags.refinery89.com\/prebid\/prebid8.52.2.js","https:\/\/c.amazon-adsystem.com\/aax2\/apstag.js","https:\/\/imasdk.googleapis.com\/js\/sdkloader\/ima3.js","https:\/\/tags.refinery89.com\/video\/js\/video1.min.js","https:\/\/tags.refinery89.com\/video\/js\/video2.min.js","https:\/\/tags.refinery89.com\/video\/js\/video3.js","https:\/\/tags.refinery89.com\/video\/css\/video2-outstream.min.css","https:\/\/tags.refinery89.com\/video\/css\/video3-outstream.css"],"preconnect":["https:\/\/a.delivery.consentmanager.net","https:\/\/cdn.consentmanager.net","https:\/\/ib.adnxs.com","https:\/\/fastlane.rubiconproject.com","https:\/\/a.teads.tv","https:\/\/prg.smartadserver.com","https:\/\/bidder.criteo.com","https:\/\/hbopenbid.pubmatic.com","https:\/\/btlr.sharethrough.com","https:\/\/adx.adform.net","https:\/\/tlx.3lift.com","https:\/\/shb.richaudience.com","https:\/\/onetag-sys.com","https:\/\/aax-dtb-cf.amazon-adsystem.com","https:\/\/secure.cdn.fastclick.net","https:\/\/tags.crwdcntrl.net","https:\/\/cdn.hadronid.net","https:\/\/cdn.id5-sync.com"],"bidder_ids":{"appnexus":1,"rubicon":2,"criteo":3,"weborama":4,"justpremium":5,"smartadserver":6,"openx":7,"improvedigital":8,"pubmatic":9,"adhese":10,"richaudience":11,"teads":12,"nextdaymedia":14,"tl_appnexus":15,"tl_rubicon":16,"tl_adform":17,"dad2u_smartadserver":19,"ix":20,"sovrn":21,"unruly":23,"showheroes-bs":24,"rhythmone":25,"tl_richaudience":27,"adyoulike":28,"inskin":29,"tl_pubmatic":32,"adform":33,"invibes":34,"adagio":35,"seedtag":36,"triplelift":37,"onemobile":38,"outbrain":40,"gps_appnexus":41,"operaads":42,"medianet":43,"freewheel-ssp":47,"sharethrough":49,"ogury":50,"adpone":51,"onetag":52,"taboola":53,"weborama_appnexus":54,"connectad":62,"gumgum":65,"eplanning":66,"smilewanted":67,"rise":68,"nextmillennium":69,"oms":71,"amx":72,"nexx360":75,"brave":76},"track_bids":0,"track_creative_code":0,"google_adblock_recovery":0,"ad_label_text":"\u0026#x25BC; Ad by Refinery89","infinite_scroll":0,"exchange_rate":{"eur":"0.950780"},"skin":{"active":0,"backgroundTopOffset":0,"sidelinksMargin":0},"gam_ad_unit":"Bibmathnet","locale":"fr","adunits":[{"div_id":"desktop-billboard-low","selector":"body","selector_all":0,"has_amazon":1,"has_sticky_sidebar":0,"gam_ad_unit":"Bibmathnet-Desktop-Pushup","position_id":1,"ad_slot_id":3,"bidders_collection_id":25615,"is_desktop":1,"min_screen_width":992,"max_screen_width":null,"is_sticky_footer":1,"is_sticky_header":0,"refresh":1,"lazy_load":0,"lazy_load_distance":500,"lazy_load_ab_testing":0,"is_fallback":0,"wrapper_sticky":0,"show_label":0,"infinite_scroll":1,"slot_name":"\/15748617,22713243947\/Bibmathnet\/Bibmathnet-Desktop-Pushup","sizes":["728x90","980x90","970x90"],"gpt_sizes":[[728,90],[980,90],[970,90]],"aps_sizes":[[728,90],[980,90],[970,90]],"pbjs_sizes":[[728,90],[980,90],[970,90]],"has_native":0,"bidder":"Desktop-Pushup-728x90","batch":"sticky","wrapper_style_parsed":{"margin":"0 auto","position":"fixed","bottom":"0","left":"0","right":"0","maxWidth":"100%","zIndex":"9999","padding":"10px 0 0 0","boxSizing":"content-box","textAlign":"center","borderTop":"1px solid #ccc"},"adunit_id":18565,"ad_slot":{"id":3,"name":"Desktop-Billboard-Low"},"position":{"id":1,"name":"appendChild"}},{"div_id":"desktop-hpa-atf","selector":".r89-desktop-hpa-atf","selector_all":1,"has_amazon":1,"has_sticky_sidebar":0,"gam_ad_unit":"Bibmathnet-Desktop-HPA-ATF","position_id":1,"ad_slot_id":4,"bidders_collection_id":25609,"is_desktop":1,"min_screen_width":992,"max_screen_width":null,"is_sticky_footer":0,"is_sticky_header":0,"refresh":1,"lazy_load":0,"lazy_load_distance":500,"lazy_load_ab_testing":0,"is_fallback":0,"wrapper_sticky":0,"show_label":0,"infinite_scroll":1,"slot_name":"\/15748617,22713243947\/Bibmathnet\/Bibmathnet-Desktop-HPA-ATF","sizes":["300x250","300x100","300x50"],"gpt_sizes":[[300,250],[300,100],[300,50]],"aps_sizes":[[300,250],[300,100],[300,50]],"pbjs_sizes":[[300,250],[300,100],[300,50]],"has_native":0,"bidder":"Desktop-300x250-ATF","batch":"atf","wrapper_style_parsed":{"textAlign":"center","marginBottom":"25px"},"adunit_id":18566,"ad_slot":{"id":4,"name":"Desktop-HPA-ATF"},"position":{"id":1,"name":"appendChild"}},{"div_id":"desktop-leaderboard-atf","selector":".r89-desktop-leaderboard-atf","selector_all":0,"has_amazon":1,"has_sticky_sidebar":0,"gam_ad_unit":"Bibmathnet-Desktop-Leaderboard-ATF","position_id":1,"ad_slot_id":1,"bidders_collection_id":25611,"is_desktop":1,"min_screen_width":992,"max_screen_width":null,"is_sticky_footer":0,"is_sticky_header":0,"refresh":1,"lazy_load":0,"lazy_load_distance":500,"lazy_load_ab_testing":0,"is_fallback":0,"wrapper_sticky":0,"show_label":0,"infinite_scroll":1,"slot_name":"\/15748617,22713243947\/Bibmathnet\/Bibmathnet-Desktop-Leaderboard-ATF","sizes":["728x90"],"gpt_sizes":[[728,90]],"aps_sizes":[[728,90]],"pbjs_sizes":[[728,90]],"has_native":0,"bidder":"Desktop-728x90-ATF","batch":"atf","wrapper_style_parsed":{"textAlign":"center","backgroundColor":"transparent","margin":"10 0 10 0"},"adunit_id":18569,"ad_slot":{"id":1,"name":"Desktop-Billboard-ATF"},"position":{"id":1,"name":"appendChild"}},{"div_id":"mobile-billboard-top","selector":".r89-mobile-billboard-top","selector_all":0,"has_amazon":1,"has_sticky_sidebar":0,"gam_ad_unit":"Bibmathnet-Mobile-Billboard-Top","position_id":1,"ad_slot_id":8,"bidders_collection_id":25625,"is_desktop":0,"min_screen_width":null,"max_screen_width":991,"is_sticky_footer":0,"is_sticky_header":0,"refresh":1,"lazy_load":0,"lazy_load_distance":500,"lazy_load_ab_testing":0,"is_fallback":0,"wrapper_sticky":0,"show_label":0,"infinite_scroll":1,"slot_name":"\/15748617,22713243947\/Bibmathnet\/Bibmathnet-Mobile-Billboard-Top","sizes":["300x250","320x240","320x100","336x280","300x100","320x50","300x50","fluid"],"gpt_sizes":[[300,250],[320,240],[320,100],[336,280],[300,100],[320,50],[300,50],"fluid"],"aps_sizes":[[300,250],[320,240],[320,100],[336,280],[300,100],[320,50],[300,50]],"pbjs_sizes":[[300,250],[320,240],[320,100],[336,280],[300,100],[320,50],[300,50]],"has_native":0,"bidder":"Mobile-300x250-Top","batch":"atf","wrapper_style_parsed":{"minHeight":"250px","marginTop":"55px","textAlign":"center"},"adunit_id":18574,"ad_slot":{"id":8,"name":"Mobile-Billboard-Top"},"position":{"id":1,"name":"appendChild"}},{"div_id":"mobile-sticky-footer","selector":"body","selector_all":0,"has_amazon":1,"has_sticky_sidebar":0,"gam_ad_unit":"Bibmathnet-Mobile-pushup","position_id":1,"ad_slot_id":14,"bidders_collection_id":25621,"is_desktop":0,"min_screen_width":null,"max_screen_width":991,"is_sticky_footer":1,"is_sticky_header":0,"refresh":1,"lazy_load":0,"lazy_load_distance":500,"lazy_load_ab_testing":0,"is_fallback":0,"wrapper_sticky":0,"show_label":0,"infinite_scroll":1,"slot_name":"\/15748617,22713243947\/Bibmathnet\/Bibmathnet-Mobile-pushup","sizes":["1x1","320x100","320x180","300x100","320x50","300x50","2x2"],"gpt_sizes":[[1,1],[320,100],[320,180],[300,100],[320,50],[300,50],[2,2]],"aps_sizes":[[1,1],[320,100],[320,180],[300,100],[320,50],[300,50],[2,2]],"pbjs_sizes":[[1,1],[320,100],[320,180],[300,100],[320,50],[300,50],[2,2]],"has_native":0,"bidder":"Mobile-Sticky-320x100","batch":"sticky","wrapper_style_parsed":{"position":"fixed","bottom":"0","left":"0","right":"0","maxWidth":"100%","zIndex":"9999","padding":"10px 0 0 0","boxSizing":"content-box","borderTop":"1px solid #ccc"},"adunit_id":18579,"ad_slot":{"id":14,"name":"Mobile-Footer-Sticky"},"position":{"id":1,"name":"appendChild"}}],"timeouts":{"default":1000,"atf":750,"incontent":1000,"btf":2000,"low":3000,"refresh":1000,"lazy":750,"outstream":1000,"sticky":1500},"site_iab_categories":["680"],"key_value_price_rules":1,"gpt_options":{"set_centering":1,"disable_initial_load":1,"collapse_empty_divs":1,"enable_single_request":1},"gam_network_id":"15748617,22713243947","batches":["atf","outstream","inContent","sticky","btf","low","lazy","fallback"],"sticky":{"footer":{"slotIds":["desktop-billboard-low","mobile-sticky-footer"],"orderIdsFilter":[2565064030,2565063550,2823227725,2758760599,2758307477,3009150654,3008364172,3244316152,3244316143]},"header":{"slotIds":[]}},"adunits_infinite_scroll":[{"div_id":"desktop-billboard-low","selector":"body","selector_all":0,"has_amazon":1,"has_sticky_sidebar":0,"gam_ad_unit":"Bibmathnet-Desktop-Pushup","position_id":1,"ad_slot_id":3,"bidders_collection_id":25615,"is_desktop":1,"min_screen_width":992,"max_screen_width":null,"is_sticky_footer":1,"is_sticky_header":0,"refresh":1,"lazy_load":0,"lazy_load_distance":500,"lazy_load_ab_testing":0,"is_fallback":0,"wrapper_sticky":0,"show_label":0,"infinite_scroll":1,"slot_name":"\/15748617,22713243947\/Bibmathnet\/Bibmathnet-Desktop-Pushup","sizes":["728x90","980x90","970x90"],"gpt_sizes":[[728,90],[980,90],[970,90]],"aps_sizes":[[728,90],[980,90],[970,90]],"pbjs_sizes":[[728,90],[980,90],[970,90]],"has_native":0,"bidder":"Desktop-Pushup-728x90","batch":"sticky","wrapper_style_parsed":{"margin":"0 auto","position":"fixed","bottom":"0","left":"0","right":"0","maxWidth":"100%","zIndex":"9999","padding":"10px 0 0 0","boxSizing":"content-box","textAlign":"center","borderTop":"1px solid #ccc"},"adunit_id":18565,"ad_slot":{"id":3,"name":"Desktop-Billboard-Low"},"position":{"id":1,"name":"appendChild"}},{"div_id":"desktop-hpa-atf","selector":".r89-desktop-hpa-atf","selector_all":1,"has_amazon":1,"has_sticky_sidebar":0,"gam_ad_unit":"Bibmathnet-Desktop-HPA-ATF","position_id":1,"ad_slot_id":4,"bidders_collection_id":25609,"is_desktop":1,"min_screen_width":992,"max_screen_width":null,"is_sticky_footer":0,"is_sticky_header":0,"refresh":1,"lazy_load":0,"lazy_load_distance":500,"lazy_load_ab_testing":0,"is_fallback":0,"wrapper_sticky":0,"show_label":0,"infinite_scroll":1,"slot_name":"\/15748617,22713243947\/Bibmathnet\/Bibmathnet-Desktop-HPA-ATF","sizes":["300x250","300x100","300x50"],"gpt_sizes":[[300,250],[300,100],[300,50]],"aps_sizes":[[300,250],[300,100],[300,50]],"pbjs_sizes":[[300,250],[300,100],[300,50]],"has_native":0,"bidder":"Desktop-300x250-ATF","batch":"atf","wrapper_style_parsed":{"textAlign":"center","marginBottom":"25px"},"adunit_id":18566,"ad_slot":{"id":4,"name":"Desktop-HPA-ATF"},"position":{"id":1,"name":"appendChild"}},{"div_id":"desktop-leaderboard-atf","selector":".r89-desktop-leaderboard-atf","selector_all":0,"has_amazon":1,"has_sticky_sidebar":0,"gam_ad_unit":"Bibmathnet-Desktop-Leaderboard-ATF","position_id":1,"ad_slot_id":1,"bidders_collection_id":25611,"is_desktop":1,"min_screen_width":992,"max_screen_width":null,"is_sticky_footer":0,"is_sticky_header":0,"refresh":1,"lazy_load":0,"lazy_load_distance":500,"lazy_load_ab_testing":0,"is_fallback":0,"wrapper_sticky":0,"show_label":0,"infinite_scroll":1,"slot_name":"\/15748617,22713243947\/Bibmathnet\/Bibmathnet-Desktop-Leaderboard-ATF","sizes":["728x90"],"gpt_sizes":[[728,90]],"aps_sizes":[[728,90]],"pbjs_sizes":[[728,90]],"has_native":0,"bidder":"Desktop-728x90-ATF","batch":"atf","wrapper_style_parsed":{"textAlign":"center","backgroundColor":"transparent","margin":"10 0 10 0"},"adunit_id":18569,"ad_slot":{"id":1,"name":"Desktop-Billboard-ATF"},"position":{"id":1,"name":"appendChild"}},{"div_id":"mobile-billboard-top","selector":".r89-mobile-billboard-top","selector_all":0,"has_amazon":1,"has_sticky_sidebar":0,"gam_ad_unit":"Bibmathnet-Mobile-Billboard-Top","position_id":1,"ad_slot_id":8,"bidders_collection_id":25625,"is_desktop":0,"min_screen_width":null,"max_screen_width":991,"is_sticky_footer":0,"is_sticky_header":0,"refresh":1,"lazy_load":0,"lazy_load_distance":500,"lazy_load_ab_testing":0,"is_fallback":0,"wrapper_sticky":0,"show_label":0,"infinite_scroll":1,"slot_name":"\/15748617,22713243947\/Bibmathnet\/Bibmathnet-Mobile-Billboard-Top","sizes":["300x250","320x240","320x100","336x280","300x100","320x50","300x50","fluid"],"gpt_sizes":[[300,250],[320,240],[320,100],[336,280],[300,100],[320,50],[300,50],"fluid"],"aps_sizes":[[300,250],[320,240],[320,100],[336,280],[300,100],[320,50],[300,50]],"pbjs_sizes":[[300,250],[320,240],[320,100],[336,280],[300,100],[320,50],[300,50]],"has_native":0,"bidder":"Mobile-300x250-Top","batch":"atf","wrapper_style_parsed":{"minHeight":"250px","marginTop":"55px","textAlign":"center"},"adunit_id":18574,"ad_slot":{"id":8,"name":"Mobile-Billboard-Top"},"position":{"id":1,"name":"appendChild"}},{"div_id":"mobile-sticky-footer","selector":"body","selector_all":0,"has_amazon":1,"has_sticky_sidebar":0,"gam_ad_unit":"Bibmathnet-Mobile-pushup","position_id":1,"ad_slot_id":14,"bidders_collection_id":25621,"is_desktop":0,"min_screen_width":null,"max_screen_width":991,"is_sticky_footer":1,"is_sticky_header":0,"refresh":1,"lazy_load":0,"lazy_load_distance":500,"lazy_load_ab_testing":0,"is_fallback":0,"wrapper_sticky":0,"show_label":0,"infinite_scroll":1,"slot_name":"\/15748617,22713243947\/Bibmathnet\/Bibmathnet-Mobile-pushup","sizes":["1x1","320x100","320x180","300x100","320x50","300x50","2x2"],"gpt_sizes":[[1,1],[320,100],[320,180],[300,100],[320,50],[300,50],[2,2]],"aps_sizes":[[1,1],[320,100],[320,180],[300,100],[320,50],[300,50],[2,2]],"pbjs_sizes":[[1,1],[320,100],[320,180],[300,100],[320,50],[300,50],[2,2]],"has_native":0,"bidder":"Mobile-Sticky-320x100","batch":"sticky","wrapper_style_parsed":{"position":"fixed","bottom":"0","left":"0","right":"0","maxWidth":"100%","zIndex":"9999","padding":"10px 0 0 0","boxSizing":"content-box","borderTop":"1px solid #ccc"},"adunit_id":18579,"ad_slot":{"id":14,"name":"Mobile-Footer-Sticky"},"position":{"id":1,"name":"appendChild"}}],"fallbacks":[],"bidders":{"Desktop-300x600-ATF":[{"bidder":"appnexus","params":{"placementId":28776747}},{"bidder":"smartadserver","params":{"formatId":73025,"domain":"https:\/\/prg.smartadserver.com","siteId":570800,"pageId":1732266}},{"bidder":"criteo","params":{"networkId":8579,"publisherSubId":"Bibmath.net"}},{"bidder":"adagio","params":{"organizationId":1117,"site":"bibmath-net","useAdUnitCodeAsAdUnitElementId":true,"placement":"Bibmath.net-Desktop-300x600-ATF","environment":"desktop"}},{"bidder":"seedtag","params":{"publisherId":"7113-5278-01","adUnitId":"29508412","placement":"inBanner"}},{"bidder":"outbrain","params":{"publisher":{"id":"000e1603e3e8ae430228ecc6109d5017d7","name":"Refinery89","domain":"refinery89.com"},"tagid":"Bibmath.net-Desktop-300x600-ATF"}},{"bidder":"gumgum","params":{"zone":"wezk7q0j","slot":1046808}}],"Desktop-300x600-BTF":[{"bidder":"appnexus","params":{"placementId":28776748,"keywords":{"ad_slot":"Desktop-HPA-BTF"}}},{"bidder":"smartadserver","params":{"formatId":73026,"domain":"https:\/\/prg.smartadserver.com","siteId":570800,"pageId":1732266}},{"bidder":"criteo","params":{"networkId":8579,"publisherSubId":"Bibmath.net"}},{"bidder":"pubmatic","params":{"publisherId":"158018","adSlot":"4966497"}},{"bidder":"adagio","params":{"organizationId":1117,"site":"bibmath-net","useAdUnitCodeAsAdUnitElementId":true,"placement":"Bibmath.net-Desktop-300x600-BTF","environment":"desktop"}},{"bidder":"seedtag","params":{"publisherId":"7113-5278-01","adUnitId":"29508412","placement":"inBanner"}},{"bidder":"outbrain","params":{"publisher":{"id":"000e1603e3e8ae430228ecc6109d5017d7","name":"Refinery89","domain":"refinery89.com"},"tagid":"Bibmath.net-Desktop-300x600-BTF"}},{"bidder":"gumgum","params":{"zone":"wezk7q0j","slot":1046808}}],"Desktop-300x250-ATF":[{"bidder":"appnexus","params":{"placementId":28776750,"keywords":{"ad_slot":"Desktop-HPA-ATF"}}},{"bidder":"rubicon","params":{"accountId":14940,"siteId":493984,"zoneId":2925092,"position":"atf"}},{"bidder":"smartadserver","params":{"formatId":73028,"domain":"https:\/\/prg.smartadserver.com","siteId":570800,"pageId":1732266}},{"bidder":"criteo","params":{"networkId":8579,"publisherSubId":"Bibmath.net"}},{"bidder":"pubmatic","params":{"publisherId":"158018","adSlot":"4966490"}},{"bidder":"adagio","params":{"organizationId":1117,"site":"bibmath-net","useAdUnitCodeAsAdUnitElementId":true,"placement":"Bibmath.net-Desktop-300x250-ATF","environment":"desktop"}},{"bidder":"seedtag","params":{"publisherId":"7113-5278-01","adUnitId":"28911183","placement":"inArticle"}},{"bidder":"outbrain","params":{"publisher":{"id":"000e1603e3e8ae430228ecc6109d5017d7","name":"Refinery89","domain":"refinery89.com"},"tagid":"Bibmath.net-Desktop-300x250-ATF"}},{"bidder":"gumgum","params":{"zone":"wezk7q0j","slot":1046808}}],"Desktop-300x250-BTF":[{"bidder":"appnexus","params":{"placementId":28776752,"keywords":{"ad_slot":"Desktop-HPA-BTF"}}},{"bidder":"smartadserver","params":{"formatId":73029,"domain":"https:\/\/prg.smartadserver.com","siteId":570800,"pageId":1732266}},{"bidder":"criteo","params":{"networkId":8579,"publisherSubId":"Bibmath.net"}},{"bidder":"adagio","params":{"organizationId":1117,"site":"bibmath-net","useAdUnitCodeAsAdUnitElementId":true,"placement":"Bibmath.net-Desktop-300x250-BTF","environment":"desktop"}},{"bidder":"seedtag","params":{"publisherId":"7113-5278-01","adUnitId":"28911183","placement":"inArticle"}},{"bidder":"outbrain","params":{"publisher":{"id":"000e1603e3e8ae430228ecc6109d5017d7","name":"Refinery89","domain":"refinery89.com"},"tagid":"Bibmath.net-Desktop-300x250-BTF"}},{"bidder":"gumgum","params":{"zone":"wezk7q0j","slot":1046808}}],"Desktop-728x90-ATF":[{"bidder":"appnexus","params":{"placementId":28776753,"keywords":{"ad_slot":"Desktop-Billboard-ATF"}}},{"bidder":"rubicon","params":{"accountId":14940,"siteId":493984,"zoneId":2925094,"position":"atf"}},{"bidder":"smartadserver","params":{"formatId":73942,"domain":"https:\/\/prg.smartadserver.com","siteId":570800,"pageId":1732266}},{"bidder":"criteo","params":{"networkId":8579,"publisherSubId":"Bibmath.net"}},{"bidder":"pubmatic","params":{"publisherId":"158018","adSlot":"4966492"}},{"bidder":"adagio","params":{"organizationId":1117,"site":"bibmath-net","useAdUnitCodeAsAdUnitElementId":true,"placement":"Bibmath.net-Desktop-728x90-ATF","environment":"desktop"}},{"bidder":"seedtag","params":{"publisherId":"7113-5278-01","adUnitId":"29508412","placement":"inBanner"}},{"bidder":"outbrain","params":{"publisher":{"id":"000e1603e3e8ae430228ecc6109d5017d7","name":"Refinery89","domain":"refinery89.com"},"tagid":"Bibmath.net-Desktop-728x90-ATF"}},{"bidder":"gumgum","params":{"zone":"wezk7q0j","slot":1046808}}],"Desktop-728x90-BTF":[{"bidder":"appnexus","params":{"placementId":28776755,"keywords":{"ad_slot":"Desktop-Billboard-BTF"}}},{"bidder":"smartadserver","params":{"formatId":73941,"domain":"https:\/\/prg.smartadserver.com","siteId":570800,"pageId":1732266}},{"bidder":"criteo","params":{"networkId":8579,"publisherSubId":"Bibmath.net"}},{"bidder":"adagio","params":{"organizationId":1117,"site":"bibmath-net","useAdUnitCodeAsAdUnitElementId":true,"placement":"Bibmath.net-Desktop-728x90-BTF","environment":"desktop"}},{"bidder":"seedtag","params":{"publisherId":"7113-5278-01","adUnitId":"28911183","placement":"inArticle"}},{"bidder":"outbrain","params":{"publisher":{"id":"000e1603e3e8ae430228ecc6109d5017d7","name":"Refinery89","domain":"refinery89.com"},"tagid":"Bibmath.net-Desktop-728x90-BTF"}},{"bidder":"gumgum","params":{"zone":"wezk7q0j","slot":1046808}}],"Desktop-970x250-ATF":[{"bidder":"appnexus","params":{"placementId":28776756,"keywords":{"ad_slot":"Desktop-Billboard-ATF"}}},{"bidder":"smartadserver","params":{"formatId":73940,"domain":"https:\/\/prg.smartadserver.com","siteId":570800,"pageId":1732266}},{"bidder":"criteo","params":{"networkId":8579,"publisherSubId":"Bibmath.net"}},{"bidder":"adagio","params":{"organizationId":1117,"site":"bibmath-net","useAdUnitCodeAsAdUnitElementId":true,"placement":"Bibmath.net-Desktop-970x250-ATF","environment":"desktop"}},{"bidder":"seedtag","params":{"publisherId":"7113-5278-01","adUnitId":"29508412","placement":"inBanner"}},{"bidder":"outbrain","params":{"publisher":{"id":"000e1603e3e8ae430228ecc6109d5017d7","name":"Refinery89","domain":"refinery89.com"},"tagid":"Bibmath.net-Desktop-970x250-ATF"}},{"bidder":"gumgum","params":{"zone":"wezk7q0j","slot":1046808}}],"Desktop-970x250-BTF":[{"bidder":"appnexus","params":{"placementId":28776758,"keywords":{"ad_slot":"Desktop-Billboard-BTF"}}},{"bidder":"smartadserver","params":{"formatId":73027,"domain":"https:\/\/prg.smartadserver.com","siteId":570800,"pageId":1732266}},{"bidder":"criteo","params":{"networkId":8579,"publisherSubId":"Bibmath.net"}},{"bidder":"adagio","params":{"organizationId":1117,"site":"bibmath-net","useAdUnitCodeAsAdUnitElementId":true,"placement":"Bibmath.net-Desktop-970x250-BTF","environment":"desktop"}},{"bidder":"seedtag","params":{"publisherId":"7113-5278-01","adUnitId":"29508412","placement":"inBanner"}},{"bidder":"outbrain","params":{"publisher":{"id":"000e1603e3e8ae430228ecc6109d5017d7","name":"Refinery89","domain":"refinery89.com"},"tagid":"Bibmath.net-Desktop-970x250-BTF"}},{"bidder":"gumgum","params":{"zone":"wezk7q0j","slot":1046808}}],"Desktop-Pushup-728x90":[{"bidder":"appnexus","params":{"placementId":28776760,"keywords":{"ad_slot":"Desktop-Billboard-Low"}}},{"bidder":"rubicon","params":{"accountId":14940,"siteId":493984,"zoneId":2925090,"position":"atf"}},{"bidder":"smartadserver","params":{"formatId":73942,"domain":"https:\/\/prg.smartadserver.com","siteId":570800,"pageId":1732266}},{"bidder":"criteo","params":{"networkId":8579,"publisherSubId":"Bibmath.net"}},{"bidder":"pubmatic","params":{"publisherId":"158018","adSlot":"4966489"}},{"bidder":"adagio","params":{"organizationId":1117,"site":"bibmath-net","useAdUnitCodeAsAdUnitElementId":true,"placement":"Bibmath.net-Desktop-Pushup-728x90","environment":"desktop"}},{"bidder":"seedtag","params":{"publisherId":"7113-5278-01","adUnitId":"28911182","placement":"inScreen"}},{"bidder":"outbrain","params":{"publisher":{"id":"000e1603e3e8ae430228ecc6109d5017d7","name":"Refinery89","domain":"refinery89.com"},"tagid":"Bibmath.net-Desktop-Pushup-728x90"}},{"bidder":"gumgum","params":{"zone":"wezk7q0j"}}],"Desktop-Takeover":[{"bidder":"appnexus","params":{"placementId":28776762,"keywords":{"ad_slot":"Desktop-Takeover"}}},{"bidder":"smartadserver","params":{"formatId":73024,"domain":"https:\/\/prg.smartadserver.com","siteId":570800,"pageId":1732266}},{"bidder":"criteo","params":{"networkId":8579,"publisherSubId":"Bibmath.net"}},{"bidder":"adagio","params":{"organizationId":1117,"site":"bibmath-net","useAdUnitCodeAsAdUnitElementId":true,"placement":"Bibmath.net-Desktop-Takeover","environment":"desktop"}},{"bidder":"outbrain","params":{"publisher":{"id":"000e1603e3e8ae430228ecc6109d5017d7","name":"Refinery89","domain":"refinery89.com"},"tagid":"Bibmath.net-Desktop-Takeover"}},{"bidder":"gumgum","params":{"zone":"wezk7q0j","product":"skins"}}],"Mobile-300x250-Low":[{"bidder":"appnexus","params":{"placementId":28776763,"keywords":{"ad_slot":"Mobile-Rectangle-Low"}}},{"bidder":"smartadserver","params":{"formatId":73031,"domain":"https:\/\/prg.smartadserver.com","siteId":570800,"pageId":1732266}},{"bidder":"criteo","params":{"networkId":8579,"publisherSubId":"Bibmath.net"}},{"bidder":"adagio","params":{"organizationId":1117,"site":"bibmath-net","useAdUnitCodeAsAdUnitElementId":true,"placement":"Bibmath.net-Mobile-300x250-Low","environment":"mobile"}},{"bidder":"seedtag","params":{"publisherId":"7113-5278-01","adUnitId":"29508412","placement":"inBanner"}},{"bidder":"outbrain","params":{"publisher":{"id":"000e1603e3e8ae430228ecc6109d5017d7","name":"Refinery89","domain":"refinery89.com"},"tagid":"Bibmath.net-Mobile-300x250-Low"}},{"bidder":"gumgum","params":{"zone":"wezk7q0j","slot":1046808}}],"Mobile-300x250-Mid":[{"bidder":"appnexus","params":{"placementId":28776764,"keywords":{"ad_slot":"Mobile-Rectangle-Mid"}}},{"bidder":"smartadserver","params":{"formatId":73029,"domain":"https:\/\/prg.smartadserver.com","siteId":570800,"pageId":1732266}},{"bidder":"criteo","params":{"networkId":8579,"publisherSubId":"Bibmath.net"}},{"bidder":"pubmatic","params":{"publisherId":"158018","adSlot":"4966495"}},{"bidder":"adagio","params":{"organizationId":1117,"site":"bibmath-net","useAdUnitCodeAsAdUnitElementId":true,"placement":"Bibmath.net-Mobile-300x250-Mid","environment":"mobile"}},{"bidder":"seedtag","params":{"publisherId":"7113-5278-01","adUnitId":"28911183","placement":"inArticle"}},{"bidder":"outbrain","params":{"publisher":{"id":"000e1603e3e8ae430228ecc6109d5017d7","name":"Refinery89","domain":"refinery89.com"},"tagid":"Bibmath.net-Mobile-300x250-Mid"}},{"bidder":"gumgum","params":{"zone":"wezk7q0j","slot":1046808}}],"Mobile-300x600-Mid":[{"bidder":"appnexus","params":{"placementId":28776766,"keywords":{"ad_slot":"Mobile-Rectangle-Mid"}}},{"bidder":"smartadserver","params":{"formatId":73029,"domain":"https:\/\/prg.smartadserver.com","siteId":570800,"pageId":1732266}},{"bidder":"criteo","params":{"networkId":8579,"publisherSubId":"Bibmath.net"}},{"bidder":"adagio","params":{"organizationId":1117,"site":"bibmath-net","useAdUnitCodeAsAdUnitElementId":true,"placement":"Bibmath.net-Mobile-300x600-Mid","environment":"mobile"}},{"bidder":"seedtag","params":{"publisherId":"7113-5278-01","adUnitId":"28911183","placement":"inArticle"}},{"bidder":"outbrain","params":{"publisher":{"id":"000e1603e3e8ae430228ecc6109d5017d7","name":"Refinery89","domain":"refinery89.com"},"tagid":"Bibmath.net-Mobile-300x600-Mid"}},{"bidder":"gumgum","params":{"zone":"wezk7q0j","slot":1046808}}],"Mobile-320x100-Top":[{"bidder":"appnexus","params":{"placementId":28776767}},{"bidder":"smartadserver","params":{"formatId":73028,"domain":"https:\/\/prg.smartadserver.com","siteId":570800,"pageId":1732266}},{"bidder":"criteo","params":{"networkId":8579,"publisherSubId":"Bibmath.net"}},{"bidder":"adagio","params":{"organizationId":1117,"site":"bibmath-net","useAdUnitCodeAsAdUnitElementId":true,"placement":"Bibmath.net-Mobile-320x100-Top","environment":"mobile"}},{"bidder":"seedtag","params":{"publisherId":"7113-5278-01","adUnitId":"29508412","placement":"inBanner"}},{"bidder":"outbrain","params":{"publisher":{"id":"000e1603e3e8ae430228ecc6109d5017d7","name":"Refinery89","domain":"refinery89.com"},"tagid":"Bibmath.net-Mobile-320x100-Top"}},{"bidder":"gumgum","params":{"zone":"wezk7q0j","slot":1046808}}],"Mobile-Sticky-320x100":[{"bidder":"appnexus","params":{"placementId":28776769,"keywords":{"ad_slot":"Mobile-Footer-Sticky"}}},{"bidder":"rubicon","params":{"accountId":14940,"siteId":493984,"zoneId":2925098,"position":"atf"}},{"bidder":"smartadserver","params":{"formatId":73028,"domain":"https:\/\/prg.smartadserver.com","siteId":570800,"pageId":1732266}},{"bidder":"criteo","params":{"networkId":8579,"publisherSubId":"Bibmath.net"}},{"bidder":"pubmatic","params":{"publisherId":"158018","adSlot":"4966496"}},{"bidder":"adagio","params":{"organizationId":1117,"site":"bibmath-net","useAdUnitCodeAsAdUnitElementId":true,"placement":"Bibmath.net-Mobile-Sticky-320x100","environment":"mobile"}},{"bidder":"seedtag","params":{"publisherId":"7113-5278-01","adUnitId":"28911182","placement":"inScreen"}},{"bidder":"outbrain","params":{"publisher":{"id":"000e1603e3e8ae430228ecc6109d5017d7","name":"Refinery89","domain":"refinery89.com"},"tagid":"Bibmath.net-Mobile-Sticky-320x100"}},{"bidder":"ogury","params":{"assetKey":"OGY-4A69C93D16CA","adUnitId":"wm-hb-foot-bibmat-refin-eztabqu8ikvw"}},{"bidder":"gumgum","params":{"zone":"wezk7q0j"}}],"Native":[{"bidder":"appnexus","params":{"placementId":28776770}},{"bidder":"adagio","params":{"organizationId":1117,"site":"bibmath-net","useAdUnitCodeAsAdUnitElementId":true,"placement":"Bibmath.net-Native","environment":"mobile"}},{"bidder":"outbrain","params":{"publisher":{"id":"000e1603e3e8ae430228ecc6109d5017d7","name":"Refinery89","domain":"refinery89.com"},"tagid":"Bibmath.net-Native"}}],"Video-Outstream":[{"bidder":"adagio","params":{"organizationId":1117,"site":"Bibmath-net","useAdUnitCodeAsAdUnitElementId":"TRUE","placement":"Outstream"}},{"bidder":"richaudience","params":{"pid":"hgOOxdQhMV","supplyType":"site"}},{"bidder":"appnexus","params":{"placementId":28980050,"video":"{\u0022skippable\u0022:true\u0022,\u0022playback_methods\u0022:[\u0022auto_play_sound_off\u0022]}"}},{"bidder":"smartadserver","params":{"domain":"https:\/\/prg.smartadserver.com","formatId":92584,"pageId":1732266,"siteId":570800,"video":{"protocol":8,"startDelay":1}}},{"bidder":"pubmatic","params":{"adSlot":"5267730","publisherId":"158018","video":{"mimes":["video\/mp4","video\/x-flv","video\/webm","application\/javascript"],"skippable":true,"linearity":1,"placement":2,"minduration":5,"maxduration":60,"api":[1,2],"playbackmethod":2,"protocols":[2,3,5,6]},"outstreamAU":"refinery89_outstream"}},{"bidder":"rubicon","params":{"accountId":14940,"siteId":493984,"zoneId":3576714,"video":{"size_id":203}}}],"Video-Instream":[],"Mobile-300x250-Top":[{"bidder":"appnexus","params":{"placementId":28776772,"keywords":{"ad_slot":"Mobile-Billboard-Top"}}},{"bidder":"rubicon","params":{"accountId":14940,"siteId":493984,"zoneId":2925096,"position":"atf"}},{"bidder":"smartadserver","params":{"formatId":73028,"domain":"https:\/\/prg.smartadserver.com","siteId":570800,"pageId":1732266}},{"bidder":"criteo","params":{"networkId":8579,"publisherSubId":"Bibmath.net"}},{"bidder":"pubmatic","params":{"publisherId":"158018","adSlot":"4966493"}},{"bidder":"adagio","params":{"organizationId":1117,"site":"bibmath-net","useAdUnitCodeAsAdUnitElementId":true,"placement":"Bibmath.net-Mobile-300x250-Top","environment":"mobile"}},{"bidder":"seedtag","params":{"publisherId":"7113-5278-01","adUnitId":"29508412","placement":"inBanner"}},{"bidder":"outbrain","params":{"publisher":{"id":"000e1603e3e8ae430228ecc6109d5017d7","name":"Refinery89","domain":"refinery89.com"},"tagid":"Bibmath.net-Mobile-300x250-Top"}},{"bidder":"gumgum","params":{"zone":"wezk7q0j","slot":1040706}}],"Desktop-160x600-ATF":[{"bidder":"appnexus","params":{"placementId":28776773,"keywords":{"ad_slot":"Desktop-HPA-BTF"}}},{"bidder":"smartadserver","params":{"formatId":73025,"domain":"https:\/\/prg.smartadserver.com","siteId":570800,"pageId":1732266}},{"bidder":"criteo","params":{"networkId":8579,"publisherSubId":"Bibmath.net"}},{"bidder":"adagio","params":{"organizationId":1117,"site":"bibmath-net","useAdUnitCodeAsAdUnitElementId":true,"placement":"Bibmath.net-Desktop-160x600-ATF","environment":"desktop"}},{"bidder":"seedtag","params":{"publisherId":"7113-5278-01","adUnitId":"29508412","placement":"inBanner"}},{"bidder":"outbrain","params":{"publisher":{"id":"000e1603e3e8ae430228ecc6109d5017d7","name":"Refinery89","domain":"refinery89.com"},"tagid":"Bibmath.net-Desktop-160x600-ATF"}},{"bidder":"gumgum","params":{"zone":"wezk7q0j","slot":1046808}}],"Desktop-160x600-BTF":[{"bidder":"appnexus","params":{"placementId":28776775}},{"bidder":"smartadserver","params":{"formatId":73025,"domain":"https:\/\/prg.smartadserver.com","siteId":570800,"pageId":1732266}},{"bidder":"criteo","params":{"networkId":8579,"publisherSubId":"Bibmath.net"}},{"bidder":"adagio","params":{"organizationId":1117,"site":"bibmath-net","useAdUnitCodeAsAdUnitElementId":true,"placement":"Bibmath.net-Desktop-160x600-BTF","environment":"desktop"}},{"bidder":"seedtag","params":{"publisherId":"7113-5278-01","adUnitId":"29508412","placement":"inBanner"}},{"bidder":"outbrain","params":{"publisher":{"id":"000e1603e3e8ae430228ecc6109d5017d7","name":"Refinery89","domain":"refinery89.com"},"tagid":"Bibmath.net-Desktop-160x600-BTF"}},{"bidder":"gumgum","params":{"zone":"wezk7q0j","slot":1046808}}],"Mobile-300x250-Infinite":[{"bidder":"appnexus","params":{"placementId":28776776,"keywords":{"ad_slot":"Mobile-Rectangle-Infinite"}}},{"bidder":"smartadserver","params":{"formatId":73030,"domain":"https:\/\/prg.smartadserver.com","siteId":570800,"pageId":1732266}},{"bidder":"criteo","params":{"networkId":8579,"publisherSubId":"Bibmath.net"}},{"bidder":"pubmatic","params":{"publisherId":"158018","adSlot":"4966494"}},{"bidder":"adagio","params":{"organizationId":1117,"site":"bibmath-net","useAdUnitCodeAsAdUnitElementId":true,"placement":"Bibmath.net-Mobile-300x250-Infinite","environment":"mobile"}},{"bidder":"seedtag","params":{"publisherId":"7113-5278-01","adUnitId":"28911183","placement":"inArticle"}},{"bidder":"outbrain","params":{"publisher":{"id":"000e1603e3e8ae430228ecc6109d5017d7","name":"Refinery89","domain":"refinery89.com"},"tagid":"Bibmath.net-Mobile-300x250-Infinite"}},{"bidder":"gumgum","params":{"zone":"wezk7q0j","slot":1046808}}],"Mobile-320x100-Infinite":[{"bidder":"appnexus","params":{"placementId":28776778}},{"bidder":"adagio","params":{"organizationId":1117,"site":"bibmath-net","useAdUnitCodeAsAdUnitElementId":true,"placement":"Bibmath.net-Mobile-320x100-Infinite","environment":"mobile"}},{"bidder":"seedtag","params":{"publisherId":"7113-5278-01","adUnitId":"28911183","placement":"inArticle"}},{"bidder":"outbrain","params":{"publisher":{"id":"000e1603e3e8ae430228ecc6109d5017d7","name":"Refinery89","domain":"refinery89.com"},"tagid":"Bibmath.net-Mobile-320x100-Infinite"}},{"bidder":"gumgum","params":{"zone":"wezk7q0j","slot":1046808}}],"Mobile-320x100-Low":[{"bidder":"appnexus","params":{"placementId":28776780}},{"bidder":"adagio","params":{"organizationId":1117,"site":"bibmath-net","useAdUnitCodeAsAdUnitElementId":true,"placement":"Bibmath.net-Mobile-320x100-Low","environment":"mobile"}},{"bidder":"seedtag","params":{"publisherId":"7113-5278-01","adUnitId":"29508412","placement":"inBanner"}},{"bidder":"outbrain","params":{"publisher":{"id":"000e1603e3e8ae430228ecc6109d5017d7","name":"Refinery89","domain":"refinery89.com"},"tagid":"Bibmath.net-Mobile-320x100-Low"}},{"bidder":"gumgum","params":{"zone":"wezk7q0j","slot":1046808}}],"Desktop-inarticle":[{"bidder":"appnexus","params":{"placementId":28776782,"keywords":{"ad_slot":"Desktop-Hybrid"}}},{"bidder":"smartadserver","params":{"formatId":112232,"domain":"https:\/\/prg.smartadserver.com","siteId":570800,"pageId":1732266}},{"bidder":"criteo","params":{"networkId":8579,"publisherSubId":"Bibmath.net"}},{"bidder":"pubmatic","params":{"publisherId":"158018","adSlot":"4966491"}},{"bidder":"adagio","params":{"organizationId":1117,"site":"bibmath-net","useAdUnitCodeAsAdUnitElementId":true,"placement":"Bibmath.net-Desktop-inarticle","environment":"desktop"}},{"bidder":"seedtag","params":{"publisherId":"7113-5278-01","adUnitId":"28911183","placement":"inArticle"}},{"bidder":"outbrain","params":{"publisher":{"id":"000e1603e3e8ae430228ecc6109d5017d7","name":"Refinery89","domain":"refinery89.com"},"tagid":"Bibmath.net-Desktop-inarticle"}},{"bidder":"gumgum","params":{"zone":"wezk7q0j","slot":1046808}}],"Outstream-VideoJS":[{"bidder":"appnexus","params":{"placementId":28980050,"video":"{\u0022skippable\u0022:true\u0022,\u0022playback_methods\u0022:[\u0022auto_play_sound_off\u0022]}"}},{"bidder":"smartadserver","params":{"domain":"https:\/\/prg.smartadserver.com","formatId":92584,"pageId":1732266,"siteId":570800,"video":{"protocol":8,"startDelay":1}}},{"bidder":"pubmatic","params":{"adSlot":"5267730","publisherId":"158018","video":{"mimes":["video\/mp4","video\/x-flv","video\/webm","application\/javascript"],"skippable":true,"linearity":1,"placement":2,"minduration":5,"maxduration":60,"api":[1,2],"playbackmethod":2,"protocols":[2,3,5,6]},"outstreamAU":"refinery89_outstream"}}]},"inimage_bidders":[],"yield_partners":["2","3","5","1","4","6","8","9","10","11"],"refresh":{"active":1,"start":30000,"viewable":5000,"seconds":30000,"expand":0,"interval":3000},"outstream":{"active":true,"adunit":{"selector":".r89-outstream-video","selector_mobile":".r89-outstream-video","max_width":640,"is_mobile":1,"is_desktop":1,"gam_ad_unit":"Bibmathnet-Video-Outstream","has_amazon":1,"corner_scroll":0,"mobile_corner_scroll":0,"desktop_scrolling_position":"bottom","mobile_scrolling_position":"bottom","refresh":0,"show_close_button":0,"show_label":1,"slot_name":"\/15748617,22713243947\/Bibmathnet\/Bibmathnet-Video-Outstream","div_id":"video-outstream","mobile_sizes":["1x1","300x250","320x100","320x180","300x100","320x50","300x50"],"mobile_gpt_sizes":[[1,1],[300,250],[320,100],[320,180],[300,100],[320,50],[300,50]],"mobile_aps_sizes":[[1,1],[300,250],[320,100],[320,180],[300,100],[320,50],[300,50]],"mobile_pbjs_sizes":[[1,1],[300,250],[320,100],[320,180],[300,100],[320,50],[300,50]],"desktop_sizes":["1x1","300x250","336x280","300x300","320x240","320x180","500x90","320x100","300x100","468x60","320x50"],"desktop_gpt_sizes":[[1,1],[300,250],[336,280],[300,300],[320,240],[320,180],[500,90],[320,100],[300,100],[468,60],[320,50]],"desktop_aps_sizes":[[1,1],[300,250],[336,280],[300,300],[320,240],[320,180],[500,90],[320,100],[300,100],[468,60],[320,50]],"desktop_pbjs_sizes":[[1,1],[300,250],[336,280],[300,300],[320,240],[320,180],[500,90],[320,100],[300,100],[468,60],[320,50]],"mobile_bidder":"Video-Outstream","desktop_bidder":"Video-Outstream","position":{"id":1,"name":"appendChild"}},"deal_id_exception":[1761401,1706283,1634396,1634405,1634407,1657104,1796289,1550557],"line_item_exception":[27192242,27389235,570148930,575454080],"ad_slot_id":23},"video_overlay":{"active":0,"mid-roll":{"active":0},"post-roll":{"active":0}},"custom_adunits":[],"sticky_sidebar":{"active":false},"interstitial":{"active":false,"adunit":[],"ad_slot_id":22},"elastic_native":false,"outbrain":{"active":false,"widgets":[],"lazy_load":false},"inimage_adunits":{"active":0,"ad_units":[]},"in_image":false,"cmp":{"active":true,"hosted":true,"type":"consentmanagernet","id":"b65883afb1e6b","betting":false},"url_filters":{"exact":[],"partial":["\/forums\/login.php"],"exact_restricted":["\/forums\/login.php"],"partial_restricted":[]},"site_price_rules":{"T2":{"1":["0.25","h"],"4":["0.25","t"],"8":["0.35","h"],"14":["0.04","h"]}},"config":{"is_desktop":0,"is_facebook_app":0,"is_mobile":1,"prefix":"r89-","preview":0,"restrictedAds":0,"screenWidthKey":"0-320","currentUrl":{"path":null,"titleTags":[]},"labelStyle":{"color":"#999999","textAlign":"center","fontSize":"12px","lineHeight":"16px","margin":"0px","padding":"4px 0 3px 5px","fontFamily":"Arial"},"positionNames":["insertBefore","insertAfter","appendChild"],"demandTier":"ROW","priceRules":[],"integrations":{"gpt":true,"pbjs":true,"aps":true},"website_id":1721,"website_key_value":"bibmath.net","website_country_code":"FR","website_base_url":"bibmath.net","publisher_id":"600","desktop_width":992,"adunit_wrapper_sticky_top":"0px","bidder_ids":{"appnexus":1,"rubicon":2,"criteo":3,"weborama":4,"justpremium":5,"smartadserver":6,"openx":7,"improvedigital":8,"pubmatic":9,"adhese":10,"richaudience":11,"teads":12,"nextdaymedia":14,"tl_appnexus":15,"tl_rubicon":16,"tl_adform":17,"dad2u_smartadserver":19,"ix":20,"sovrn":21,"unruly":23,"showheroes-bs":24,"rhythmone":25,"tl_richaudience":27,"adyoulike":28,"inskin":29,"tl_pubmatic":32,"adform":33,"invibes":34,"adagio":35,"seedtag":36,"triplelift":37,"onemobile":38,"outbrain":40,"gps_appnexus":41,"operaads":42,"medianet":43,"freewheel-ssp":47,"sharethrough":49,"ogury":50,"adpone":51,"onetag":52,"taboola":53,"weborama_appnexus":54,"connectad":62,"gumgum":65,"eplanning":66,"smilewanted":67,"rise":68,"nextmillennium":69,"oms":71,"amx":72,"nexx360":75,"brave":76},"ad_label_text":"\u0026#x25BC; Ad by Refinery89","infinite_scroll":0,"skin":{"active":0,"backgroundTopOffset":0,"sidelinksMargin":0},"gam_ad_unit":"Bibmathnet","timeouts":{"default":1000,"atf":750,"incontent":1000,"btf":2000,"low":3000,"refresh":1000,"lazy":750,"outstream":1000,"sticky":1500},"key_value_price_rules":1,"gpt_options":{"set_centering":1,"disable_initial_load":1,"collapse_empty_divs":1,"enable_single_request":1},"gam_network_id":"15748617,22713243947","sticky":{"footer":{"slotIds":["desktop-billboard-low","mobile-sticky-footer"],"orderIdsFilter":[2565064030,2565063550,2823227725,2758760599,2758307477,3009150654,3008364172,3244316152,3244316143]},"header":{"slotIds":[]}},"refresh":{"active":1,"start":30000,"viewable":5000,"seconds":30000,"expand":0,"interval":3000},"in_image":false,"cmp":{"active":true,"hosted":true,"type":"consentmanagernet","id":"b65883afb1e6b","betting":false},"site_price_rules":{"T2":{"1":["0.25","h"],"4":["0.25","t"],"8":["0.35","h"],"14":["0.04","h"]}},"scriptTimeout":{"active":0,"options":[0],"timeout":0},"contextual":{"siteIabCategories":["680"],"active":0,"pageIabCategories":[],"pageTopics":[],"brandSafe":null,"filters":["\/tag\/","\/category\/","\/categorie\/","\/search\/","\/zoeken","\/profiel\/","\/profile\/","\/threads\/","\/author\/"]},"outstream":1,"video_overlay":0,"stickySidebar":0,"interstitial":0,"outbrain":{"active":0,"lazy_load":false},"yieldPartners":["2","3","5","1","4","6","8","9","10","11"],"urlFilters":{"exact":[],"partial":["\/forums\/login.php"],"exact_restricted":["\/forums\/login.php"],"partial_restricted":[]},"track_functions":0,"prioritize_custom_ad_units":0,"track_bids":0,"track_creative_code":0}}; + +function setStickyCloseButton(adpPosition,closeButtonPosition,slot,slotElement,slotElementParent,size,campaignId){const needCloseBtn="footer"!==adpPosition||!r89Data.config.sticky[adpPosition].orderIdsFilter.includes(campaignId),closeButtonExist=null!==slotElementParent.querySelector(`.r89-sticky-${closeButtonPosition}-close-button`),is1x1=1===size[0]&&1===size[1];let hasPrebidSize=slot.getTargeting("hb_size");if(needCloseBtn){if(function addTransitionForBillboard(slotElement){try{const winningBidders=r89_pbjs.getAllPrebidWinningBids();for(let i2=0;i2{slotElement.style.maxHeight="250px",slotElement.style.transition="max-height 0.3s ease-in-out"})),slotElement.addEventListener("mouseleave",(()=>{slotElement.style.maxHeight="100px",slotElement.style.transition="max-height 0.3s ease-in-out"}));break}}catch(err){console.log("Something went wrong attaching the mouse hover effect for 970x250")}}(slotElement),slotElement.style.maxHeight=180===size[1]?"180px":"100px",slotElement.style.overflow="hidden",!closeButtonExist){if(is1x1&&hasPrebidSize.length>0)var[stickyWidth,stickyHeight]=hasPrebidSize[0].split("x");"2"===stickyWidth&&"2"===stickyHeight?slotElementParent.style.display="none":r89.helpers.createStickyCloseButton(slotElementParent,closeButtonPosition)}}else slotElementParent.style.display="none"}const gptEventListeners={slotRequested:({slot:slot})=>{const slotId=slot.getSlotElementId();if(r89.session.track.adsLoad(),r89.log(`GPT: slotRequested for ${slotId}`),null===document.getElementById(slotId)&&r89.log(`Slot ID ${slotId} not found in the DOM`),r89Data.config.outstream&&slotId===r89.outstream.adunit.id)r89.outstream.done();else try{const adunit=r89.adunits.searchBatches(slotId),adunitExceptionsList=adunit.refreshed||adunit.lazy_load||adunit.is_fallback,adunitBatch=adunit.batch,adunitsBatchAds=r89.adunits.placedItems[adunitBatch];adunit.rendered=!0;const renderStatus=adunitsBatchAds.map((el=>el.rendered));adunitExceptionsList||renderStatus.includes(!1)?r89.log(`GPT: End of batch ${adunitBatch} placement ${adunitsBatchAds.length}/${adunitsBatchAds.length}`):(r89.adunits.updateCurrentBatch(),r89.adunits.placeBatch())}catch(e){r89.log(`GPT: Error in slotRequested for ${slotId}`)}},impressionViewable:({slot:slot})=>{const slotId=slot.getSlotElementId(),adunit=r89.adunits.searchBatches(slotId);adunit&&(adunit.viewable=!0)},slotVisibilityChanged:({slot:slot,inViewPercentage:inViewPercentage})=>{const slotId=slot.getSlotElementId(),adunit=r89.adunits.searchBatches(slotId);adunit&&(adunit.visible=inViewPercentage>50)},slotRenderEnded:({slot:slot,isEmpty:isEmpty,size:size,campaignId:campaignId})=>{const slotId=slot.getSlotElementId(),adunit=r89.adunits.searchBatches(slotId),slotIdRaw=slotId.slice(r89Data.config.prefix.length,slotId.lastIndexOf("-")),slotElement=document.getElementById(slotId),isStickyFooter=r89Data.config.sticky.footer.slotIds.includes(slotIdRaw),isStickyHeader=r89Data.config.sticky.header.slotIds.includes(slotIdRaw),isOutstream=r89Data.config.outstream&&slotId===r89.outstream.adunit.id;r89.log(`GPT: SlotRenderEnded for ${slotId}`),isEmpty?((isStickyFooter||isStickyHeader)&&(slotElement.parentNode.style.display="none"),adunit.failedCount++):(isStickyFooter&&setStickyCloseButton("footer","top",slot,slotElement,slotElement.parentNode,size,campaignId),isStickyHeader&&setStickyCloseButton("header","bottom",slot,slotElement,slotElement.parentNode,size,campaignId),isOutstream&&(slotElement.parentNode.style.margin="20px auto"),adunit.isEmpty=!1)}};function initGPT(){r89.log("Init: GPT"),googletag.cmd.push((function(){!function setPublisherTargeting(){const{website_key_value:website_key_value,publisher_id:publisher_id,website_country_code:website_country_code,screenWidthKey:screenWidthKey,scriptTimeout:scriptTimeout,is_facebook_app:is_facebook_app,currentUrl:currentUrl,preview:preview,yieldPartners:yieldPartners,contextual:contextual2,restrictedAds:restrictedAds,cmp:cmp2,website_id:website_id}=r89Data.config,contextualStatus="done"===r89.contextual.status,targetingr89Data={website_id:website_id.toString(),site:website_key_value,publisher:publisher_id,website_cc:website_country_code,it:"2",screen_width:screenWidthKey,scrpt_to:scriptTimeout.timeout.toString(),is_facebook_app:is_facebook_app.toString(),title_tags:currentUrl.titleTags.length>0?currentUrl.titleTags:null,preview:preview?"yes":null,yield_partners:yieldPartners.length>0?yieldPartners:null,iab_content_taxonomy:contextual2.siteIabCategories.length>0?contextual2.siteIabCategories:null,restricted:restrictedAds?"1":null,page_iab_taxonomy:contextualStatus&&contextual2.pageIabCategories.length>0?contextual2.pageIabCategories:null,page_topics:contextualStatus&&contextual2.pageTopics.length>0?contextual2.pageTopics:null,page_bs:contextualStatus&&contextual2.brandSafe?contextual2.brandSafe:null,btng_aprvd:cmp2.betting&&r89.cmp.checkCustomPurpose(50)?"1":"0"};if(Object.keys(targetingr89Data).forEach((key=>{const value=targetingr89Data[key];null!=value&&googletag.pubads().setTargeting(key,value)})),cmp2.active?r89.cmp.checkGDPRApplies()?r89.cmp.checkFullConsent()?googletag.pubads().setTargeting("adConsent","2"):r89.cmp.checkLimitedAds()?googletag.pubads().setTargeting("adConsent","1"):googletag.pubads().setTargeting("adConsent","0"):googletag.pubads().setTargeting("adConsent","3"):googletag.pubads().setTargeting("adConsent","4"),void 0!==r89.pageConfig&&"object"==typeof r89.pageConfig.targetingKeys)for(const targetingKey in r89.pageConfig.targetingKeys)googletag.pubads().setTargeting(targetingKey,r89.pageConfig.targetingKeys[targetingKey])}(),googletag.pubads().disableInitialLoad(),googletag.pubads().setCentering(!0),googletag.pubads().collapseEmptyDivs(Boolean(r89Data.gpt_options.collapse_empty_divs)),googletag.pubads().enableSingleRequest(),googletag.enableServices(),Object.keys(gptEventListeners).forEach((listener=>{googletag.pubads().addEventListener(listener,gptEventListeners[listener])}))}))}const bidderSettings={standard:{storageAllowed:!0},criteo:{fastBidVersion:"latest"}};function initPBJS(seller,cmp2,exchange_rate){r89_pbjs.que.push((function(){r89_pbjs.bidderSettings=bidderSettings,r89_pbjs.setConfig(function setPrebidConfig(seller,cmp2,exchange_rate){const{pageIabCategories:pageIabCategories,pageTopics:pageTopics}=r89Data.config.contextual,hasContextual="done"===r89.contextual.status,keyValues=r89.helpers.removeNulls({site:r89Data.config.website_key_value,publisher:r89Data.config.publisher_id,page_iab_taxonomy:hasContextual&&pageIabCategories.length>0?r89Data.config.contextual.pageIabCategories:null,page_topics:hasContextual&&pageTopics.length>0?r89Data.config.contextual.pageTopics:null});let prebidConfig={schain:{validation:"strict",config:{ver:"1.0",complete:1,nodes:[{asi:"refinery89.com",sid:seller.id,hp:1}]}},cpmRoundingFunction:Math.round,bidderSequence:"fixed",currency:{adServerCurrency:"EUR",granularityMultiplier:1,rates:{USD:{USD:1,EUR:exchange_rate.eur}}},enableTIDs:!0,floors:{},priceGranularity:{buckets:[{precision:2,max:3,increment:.01},{max:8,increment:.05},{max:20,increment:.1},{max:25,increment:.25}]},allowActivities:{accessDevice:{rules:[{allow:!0}]}},userSync:{syncEnabled:!0,filterSettings:{iframe:{bidders:["appnexus","justpremium","rubicon","criteo","teads","sharethrough","adform","seedtag","smartadserver","ogury","triplelift","pubmatic","connectad"],filter:"include"},image:{bidders:"*",filter:"include"}},syncsPerBidder:5,auctionDelay:100,enableOverride:!1,aliasSyncEnabled:!0,userIds:[{name:"unifiedId",params:{url:"//match.adsrvr.org/track/rid?ttd_pid=6aarzke&fmt=json"},storage:{type:"cookie",name:"pbjs-unifiedid",expires:60}},{name:"sharedId",storage:{name:"_sharedID",type:"cookie",expires:30}},{name:"id5Id",params:{partner:985,externalModuleUrl:"https://cdn.id5-sync.com/api/1.0/id5PrebidModule.js"},storage:{type:"html5",name:"id5id",expires:90,refreshInSeconds:7200}}]},appnexusAuctionKeywords:keyValues,improvedigital:{usePrebidSizes:!0,singleRequest:!0},outbrain:{bidderUrl:"https://b1h.zemanta.com/api/bidder/prebid/bid/",usersyncUrl:"https://b1h.zemanta.com/usersync/prebid"},rubicon:{rendererConfig:{align:"center",position:"append",closeButton:!1,label:"Advertisement",collapse:!0}},targetingControls:{allowTargetingKeys:["BIDDER","AD_ID","PRICE_BUCKET","SIZE","DEAL","FORMAT","UUID","CACHE_ID","CACHE_HOST","title","body","body2","sponsoredBy","image","icon","clickUrl","displayUrl","cta"]},realTimeData:{dataProviders:[{name:"timeout",params:{rules:{includesVideo:{true:200,false:50},deviceType:{2:50,4:100,5:200},connectionSpeed:{slow:400,medium:200,fast:100,unknown:50}}}}]},bidderTimeout:2e3};return cmp2.active&&(prebidConfig.consentManagement={gdpr:{cmpApi:"iab",timeout:1e4,defaultGdprScope:!1}}),prebidConfig}(seller,cmp2,exchange_rate)),r89_pbjs.aliasBidder("improvedigital","weborama"),r89_pbjs.aliasBidder("appnexus","nextdaymedia"),r89_pbjs.aliasBidder("appnexus","gps_appnexus"),r89_pbjs.aliasBidder("appnexus","weborama_appnexus"),r89_pbjs.aliasBidder("appnexus","tl_appnexus"),r89_pbjs.aliasBidder("rubicon","tl_rubicon"),r89_pbjs.aliasBidder("adform","tl_adform"),r89_pbjs.aliasBidder("teads","tl_teads"),r89_pbjs.aliasBidder("pubmatic","tl_pubmatic"),r89_pbjs.aliasBidder("richaudience","tl_richaudience"),r89_pbjs.setBidderConfig(function setBidderCustomConfig(seller){return{bidders:["weborama_appnexus"],config:{schain:{validation:"strict",config:{ver:"1.0",complete:1,nodes:[{asi:"refinery89.com",sid:seller.id,hp:1},{asi:"weborama.nl",sid:"10699",hp:1}]}}}}}(seller)),function setXandrConfig(){const{siteIabCategories:siteIabCategories,pageIabCategories:pageIabCategories,pageTopics:pageTopics,brandSafe:brandSafe}=r89Data.config.contextual,hasContextual="done"===r89.contextual.status,xandrKeys=r89.helpers.removeNulls({iab_content_taxonomy:siteIabCategories.length>0?siteIabCategories:null,page_iab_taxonomy:hasContextual&&pageIabCategories.length>0?pageIabCategories:null,page_topics:hasContextual&&pageTopics.length>0?pageTopics:null,page_bs:hasContextual&&null!==brandSafe?brandSafe:null,btng_aprvd:r89Data.config.cmp.betting&&r89.cmp.checkCustomPurpose(50)?"1":null});r89Data.config.xandrKeys=xandrKeys,Object.keys(xandrKeys).length>0&&r89_pbjs.setConfig({appnexusAuctionKeywords:xandrKeys})}()}))}function initAPS(seller){apstag.init({pubID:"d02f0482-a50f-427c-ac01-9856371f1f6b",adServer:"googletag",schain:{complete:1,ver:"1.0",nodes:[{asi:"refinery89.com",sid:seller.id,hp:1,name:seller.name}]}})}var commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function getDefaultExportFromCjs(x){return x&&x.__esModule&&Object.prototype.hasOwnProperty.call(x,"default")?x.default:x}function getAugmentedNamespace(n){if(n.__esModule)return n;var f=n.default;if("function"==typeof f){var a=function a2(){return this instanceof a2?Reflect.construct(f,arguments,this.constructor):f.apply(this,arguments)};a.prototype=f.prototype}else a={};return Object.defineProperty(a,"__esModule",{value:!0}),Object.keys(n).forEach((function(k){var d=Object.getOwnPropertyDescriptor(n,k);Object.defineProperty(a,k,d.get?d:{enumerable:!0,get:function(){return n[k]}})})),a}var sha256={exports:{}};var core={exports:{}};const require$$0=getAugmentedNamespace(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var hasRequiredCore,CryptoJS;function requireCore(){return hasRequiredCore||(hasRequiredCore=1,core.exports=(CryptoJS=CryptoJS||function(Math2,undefined$1){var crypto2;if("undefined"!=typeof window&&window.crypto&&(crypto2=window.crypto),"undefined"!=typeof self&&self.crypto&&(crypto2=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(crypto2=globalThis.crypto),!crypto2&&"undefined"!=typeof window&&window.msCrypto&&(crypto2=window.msCrypto),!crypto2&&void 0!==commonjsGlobal&&commonjsGlobal.crypto&&(crypto2=commonjsGlobal.crypto),!crypto2)try{crypto2=require$$0}catch(err){}var cryptoSecureRandomInt=function(){if(crypto2){if("function"==typeof crypto2.getRandomValues)try{return crypto2.getRandomValues(new Uint32Array(1))[0]}catch(err){}if("function"==typeof crypto2.randomBytes)try{return crypto2.randomBytes(4).readInt32LE()}catch(err){}}throw new Error("Native crypto module could not be used to get secure random number.")},create=Object.create||function(){function F(){}return function(obj){var subtype;return F.prototype=obj,subtype=new F,F.prototype=null,subtype}}(),C={},C_lib=C.lib={},Base=C_lib.Base=function(){return{extend:function(overrides){var subtype=create(this);return overrides&&subtype.mixIn(overrides),subtype.hasOwnProperty("init")&&this.init!==subtype.init||(subtype.init=function(){subtype.$super.init.apply(this,arguments)}),subtype.init.prototype=subtype,subtype.$super=this,subtype},create:function(){var instance=this.extend();return instance.init.apply(instance,arguments),instance},init:function(){},mixIn:function(properties){for(var propertyName in properties)properties.hasOwnProperty(propertyName)&&(this[propertyName]=properties[propertyName]);properties.hasOwnProperty("toString")&&(this.toString=properties.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),WordArray=C_lib.WordArray=Base.extend({init:function(words,sigBytes){words=this.words=words||[],this.sigBytes=sigBytes!=undefined$1?sigBytes:4*words.length},toString:function(encoder){return(encoder||Hex).stringify(this)},concat:function(wordArray){var thisWords=this.words,thatWords=wordArray.words,thisSigBytes=this.sigBytes,thatSigBytes=wordArray.sigBytes;if(this.clamp(),thisSigBytes%4)for(var i2=0;i2>>2]>>>24-i2%4*8&255;thisWords[thisSigBytes+i2>>>2]|=thatByte<<24-(thisSigBytes+i2)%4*8}else for(var j=0;j>>2]=thatWords[j>>>2];return this.sigBytes+=thatSigBytes,this},clamp:function(){var words=this.words,sigBytes=this.sigBytes;words[sigBytes>>>2]&=4294967295<<32-sigBytes%4*8,words.length=Math2.ceil(sigBytes/4)},clone:function(){var clone=Base.clone.call(this);return clone.words=this.words.slice(0),clone},random:function(nBytes){for(var words=[],i2=0;i2>>2]>>>24-i2%4*8&255;hexChars.push((bite>>>4).toString(16)),hexChars.push((15&bite).toString(16))}return hexChars.join("")},parse:function(hexStr){for(var hexStrLength=hexStr.length,words=[],i2=0;i2>>3]|=parseInt(hexStr.substr(i2,2),16)<<24-i2%8*4;return new WordArray.init(words,hexStrLength/2)}},Latin1=C_enc.Latin1={stringify:function(wordArray){for(var words=wordArray.words,sigBytes=wordArray.sigBytes,latin1Chars=[],i2=0;i2>>2]>>>24-i2%4*8&255;latin1Chars.push(String.fromCharCode(bite))}return latin1Chars.join("")},parse:function(latin1Str){for(var latin1StrLength=latin1Str.length,words=[],i2=0;i2>>2]|=(255&latin1Str.charCodeAt(i2))<<24-i2%4*8;return new WordArray.init(words,latin1StrLength)}},Utf8=C_enc.Utf8={stringify:function(wordArray){try{return decodeURIComponent(escape(Latin1.stringify(wordArray)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(utf8Str){return Latin1.parse(unescape(encodeURIComponent(utf8Str)))}},BufferedBlockAlgorithm=C_lib.BufferedBlockAlgorithm=Base.extend({reset:function(){this._data=new WordArray.init,this._nDataBytes=0},_append:function(data){"string"==typeof data&&(data=Utf8.parse(data)),this._data.concat(data),this._nDataBytes+=data.sigBytes},_process:function(doFlush){var processedWords,data=this._data,dataWords=data.words,dataSigBytes=data.sigBytes,blockSize=this.blockSize,nBlocksReady=dataSigBytes/(4*blockSize),nWordsReady=(nBlocksReady=doFlush?Math2.ceil(nBlocksReady):Math2.max((0|nBlocksReady)-this._minBufferSize,0))*blockSize,nBytesReady=Math2.min(4*nWordsReady,dataSigBytes);if(nWordsReady){for(var offset=0;offset>>7)^(gamma0x<<14|gamma0x>>>18)^gamma0x>>>3,gamma1x=W[i2-2],gamma1=(gamma1x<<15|gamma1x>>>17)^(gamma1x<<13|gamma1x>>>19)^gamma1x>>>10;W[i2]=gamma0+W[i2-7]+gamma1+W[i2-16]}var maj=a&b^a&c^b&c,sigma0=(a<<30|a>>>2)^(a<<19|a>>>13)^(a<<10|a>>>22),t1=h+((e<<26|e>>>6)^(e<<21|e>>>11)^(e<<7|e>>>25))+(e&f^~e&g)+K[i2]+W[i2];h=g,g=f,f=e,e=d+t1|0,d=c,c=b,b=a,a=t1+(sigma0+maj)|0}H2[0]=H2[0]+a|0,H2[1]=H2[1]+b|0,H2[2]=H2[2]+c|0,H2[3]=H2[3]+d|0,H2[4]=H2[4]+e|0,H2[5]=H2[5]+f|0,H2[6]=H2[6]+g|0,H2[7]=H2[7]+h|0},_doFinalize:function(){var data=this._data,dataWords=data.words,nBitsTotal=8*this._nDataBytes,nBitsLeft=8*data.sigBytes;return dataWords[nBitsLeft>>>5]|=128<<24-nBitsLeft%32,dataWords[14+(nBitsLeft+64>>>9<<4)]=Math2.floor(nBitsTotal/4294967296),dataWords[15+(nBitsLeft+64>>>9<<4)]=nBitsTotal,data.sigBytes=4*dataWords.length,this._process(),this._hash},clone:function(){var clone=Hasher.clone.call(this);return clone._hash=this._hash.clone(),clone}});C.SHA256=Hasher._createHelper(SHA2562),C.HmacSHA256=Hasher._createHmacHelper(SHA2562)}(Math),CryptoJS.SHA256));var encHex$1={exports:{}};encHex$1.exports=function(CryptoJS){return CryptoJS.enc.Hex}(requireCore());const encHex=getDefaultExportFromCjs(encHex$1.exports);window.r89=window.r89||{},window.googletag=window.googletag||{},googletag.cmd=googletag.cmd||[],window.r89_pbjs=window.r89_pbjs||{},r89_pbjs.que=r89_pbjs.que||[],r89Data.config.viewport={width:Math.max(document.documentElement.clientWidth||0,window.innerWidth||0),height:Math.max(document.documentElement.clientHeight||0,window.innerHeight||0)},r89Data.config.preview=window.location.search.includes("preview=1")?1:0,Object.assign(window.r89,{logStorage:[],log:function log(str){r89.logStorage.push(str),r89Data.config.preview&&console.log("R89 New | "+str)},helpers:function helpers(){return{filterUndefined:function(el){return void 0!==el},randomInt:function(min,max){return Math.floor(Math.random()*(max-min+1)+min)},uuid:function(){return"10000000-1000-4000-8000-100000000000".replace(/[018]/g,(c=>(c^crypto.getRandomValues(new Uint8Array(1))[0]&15>>c/4).toString(16)))},createStickyCloseButton:function(slotParent,topOrBottom){const closeButton=document.createElement("span");closeButton.className="r89-sticky-"+topOrBottom+"-close-button",closeButton.innerHTML='',closeButton.style.cssText=["position: absolute;",topOrBottom+": -30px;","right: 0;","z-index: 9999;","background: "+slotParent.style.backgroundColor+";","border-"+topOrBottom+"-left-radius: 10px;","border-"+topOrBottom+": 1px solid #ccc;","border-left: 1px solid #ccc;","width: 34px;","height: 30px;","color: #ccc;","cursor: pointer;","line-height: 30px;","font-size: 20px;","font-family: helvetica;","text-align: center;","display: none;","box-sizing: content-box"].join("\n"),slotParent.appendChild(closeButton),setTimeout((function(){closeButton.style.display="block"}),1e3),closeButton.addEventListener("click",(function(){slotParent.style.display="none"}))},getMediaTypeId:function(mediaType){switch(mediaType){case"banner":return 1;case"native":return 2;case"video":return 3;default:return 0}},getBidderId:function(r89Data2,bidderCode){return bidderCode in r89Data2.config.bidder_ids?r89Data2.config.bidder_ids[bidderCode]:null},checkScreenSize:function(r89Data2,el){return null===el.min_screen_width&&null!==el.max_screen_width&&el.max_screen_width>=r89Data2.config.viewport.width||(null===el.max_screen_width&&null!==el.min_screen_width&&el.min_screen_width<=r89Data2.config.viewport.width||null!==el.min_screen_width&&null!==el.max_screen_width&&el.min_screen_width<=r89Data2.config.viewport.width&&el.max_screen_width>=r89Data2.config.viewport.width)},removeNulls:function(obj){return Object.fromEntries(Object.entries(obj).filter((key=>!key.includes(null))))},removeFloorWithoutConsent:function(){return!!r89Data.config.cmp.active&&(!!r89.cmp.checkGDPRApplies()&&!r89.cmp.checkFullConsent())},getFloor:function(adSlotId){return r89Data.config.site_price_rules.hasOwnProperty(r89Data.config.demandTier)&&r89Data.config.site_price_rules[r89Data.config.demandTier].hasOwnProperty(adSlotId)?r89Data.config.site_price_rules[r89Data.config.demandTier][adSlotId]:!(!r89Data.config.priceRules.hasOwnProperty(r89Data.config.demandTier)||!r89Data.config.priceRules[r89Data.config.demandTier].hasOwnProperty(adSlotId))&&r89Data.config.priceRules[r89Data.config.demandTier][adSlotId]},getGAMFloor:function(adSlotId){if(r89.helpers.removeFloorWithoutConsent())return!1;if(!r89Data.config.key_value_price_rules)return!1;let floor=r89.helpers.getFloor(adSlotId);return!!floor&&("string"==typeof floor?floor:"go"==floor[1]?"go":"t"==floor[1]?"t"+floor[0]:floor[0])},getPrebidFloor:function(adSlotId){if(r89.helpers.removeFloorWithoutConsent())return!1;let floor=r89.helpers.getFloor(adSlotId);if(!floor)return!1;let intFloor=parseFloat(floor[0]);return"t"==floor[1]&&(intFloor/=2),{currency:"EUR",schema:{fields:["mediaType"]},values:{banner:intFloor,video:intFloor,native:intFloor}}}}}(),events:function events(){return{status:"uncalled",waiting:[],submitted:[],push:function(name,value){r89.log("Event: Push | "+name+": "+JSON.stringify(value)),this.waiting.push({timeNow:Math.round(performance.now()),eventName:name,value:value})},submit:function(){r89.events.waiting.length>0&&(r89.log("Event: Submit"),navigator.sendBeacon("https://d1hyarjnwqrenh.cloudfront.net/",JSON.stringify({pageId:r89.session.pageId,sessionId:r89.session.sessionId,websiteId:r89Data.config.website_id,pageURL:r89.session.pageURL,events:r89.events.waiting})),r89.log(JSON.stringify(r89.events.waiting)),r89.events.submitted.push(...r89.events.waiting),r89.events.waiting.length=0)},initialize:function(){this.status="called",r89.log("Event: Initialize"),setInterval((()=>r89.events.submit()),5e3),document.addEventListener("visibilitychange",(()=>{"hidden"===document.visibilityState&&r89.events.submit()}))},trackFunction:function(value){r89Data.config.track_functions&&r89.events.push("trackFunctions",value)},trackEvent:function(name,value){r89.events.push("trackFunctions",name+";"+value)}}}(),session:function session(){return{pageId:null,pageURL:null,sessionId:null,cookieName:"r89_sid",sessionTime:1800,sessionAllowed:!1,referrer:null,setPageId:function(){r89.session.pageId=r89.helpers.uuid();const sessionCookieValue=r89.session.getCookie();!1!==sessionCookieValue&&(r89.session.sessionId=sessionCookieValue),r89.session.pageURL=window.location.protocol+"//"+window.location.hostname+window.location.pathname},getCookie:function(){var _a;const sessionCookieValue=null==(_a=document.cookie.split("; ").find((row=>row.startsWith(r89.session.cookieName+"="))))?void 0:_a.split("=")[1];return void 0!==sessionCookieValue&&sessionCookieValue},setCookie:function(){if(r89.session.sessionAllowed){const sessionCookieValue=r89.session.getCookie();r89.session.sessionId=sessionCookieValue||r89.helpers.uuid(),document.cookie=r89.session.cookieName+"="+r89.session.sessionId+"; max-age="+r89.session.sessionTime+"; path=/",function sessionTracker(){try{const savedCookie="session_id",pageViewCookie="pv",defaultPageViewCookieValue=0,cookieParts=document.cookie.split(";").map((c=>c.trim())),existingSessionId=cookieParts.find((c=>c.startsWith(savedCookie+"="))),existingPageViewCookieValue=cookieParts.find((c=>c.startsWith(pageViewCookie+"=")));r89.sessionId="",r89.pageViewCookie="";const now=new Date;if(now.setTime(now.getTime()+9e5),existingSessionId)if(r89.sessionId=existingSessionId.split("=")[1],existingPageViewCookieValue){const updatedPageView=parseInt(existingPageViewCookieValue.split("=")[1],10)+1;document.cookie=`${pageViewCookie}=${updatedPageView};expires=${now.toUTCString()};path=/`,r89.pageViewCookie=updatedPageView}else document.cookie=`${pageViewCookie}=${defaultPageViewCookieValue};expires=${now.toUTCString()};path=/`,r89.pageViewCookie=defaultPageViewCookieValue;else{const minLength=12,maxLength=30,randomLength=Math.floor(Math.random()*(maxLength-minLength+1))+minLength,chars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";let newSessionId="";for(let i2=0;i20&&(navigator.userAgent.match(/FBAN|FBAV/i)?r89.session.referrer="https://www.facebook.com/":document.referrer.match("quicksearchbox")?r89.session.referrer="https://discover.google.com/":r89.session.referrer=document.referrer),r89.session.track.tagLoadFired=!1,r89.session.track.adsLoadFired=!1,r89.session.setPageId(),r89.session.track.tagLoad()}}}(),loadScripts:function loadScripts({scripts:scripts}){return{status:"uncalled",setStatus:function(status){this.status=status},getStatus:function(){return this.status},main:function(){r89.log("LoadScripts: Main"),"uncalled"==this.status&&(r89.events.trackFunction("loadScriptsMain"),r89.loadScripts.setStatus("loading"),r89.loadScripts.gpt())},done:function(){r89.log("LoadScripts: Done"),r89.events.trackFunction("loadScriptsDone"),setTimeout((()=>{r89.log("Timeout: "+r89Data.config.scriptTimeout.timeout),r89.loadScripts.setStatus("done"),r89.init.main()}),r89Data.config.scriptTimeout.timeout)},gpt:function(){r89.log("LoadScripts: GPT"),r89.events.trackFunction("loadScriptsGPT");const script=document.createElement("script");script.src="https://securepubads.g.doubleclick.net/tag/js/gpt.js",script.type="text/javascript",script.async=!0,document.head.appendChild(script),googletag.cmd.push((function(){r89.events.trackFunction("loadScriptsGPTPushed"),r89.loadScripts.pbjs()}))},pbjs:function(){if(r89.events.trackFunction("loadScriptsPBJS"),r89Data.config.integrations.pbjs){r89.log("LoadScripts: PBJS");const script=document.createElement("script");script.src=scripts.pbjs,script.type="text/javascript",script.async=!0,document.head.appendChild(script),r89_pbjs.que.push((function(){r89.loadScripts.aps()}))}else r89.log("LoadScripts: No PBJS"),r89.loadScripts.aps()},aps:function(){r89.events.trackFunction("loadScriptsAPS"),r89Data.config.integrations.aps?(r89.log("LoadScripts: APS"),function(a9,a,p,s,t,A,g){function q(c,r){a[a9]._Q.push([c,r])}a[a9]||(a[a9]={init:function(){q("i",arguments)},fetchBids:function(){q("f",arguments)},setDisplayBids:function(){},targetingKeys:function(){return[]},_Q:[]},(A=p.createElement(s)).async=!0,A.src="//c.amazon-adsystem.com/aax2/apstag.js",(g=p.getElementsByTagName(s)[0]).parentNode.insertBefore(A,g))}("apstag",window,document,"script"),r89.loadScripts.done()):(r89.log("LoadScripts: No APS"),r89.loadScripts.done())}}}(r89Data),init:function init({seller:seller,cmp:cmp2,exchange_rate:exchange_rate}){return{status:"uncalled",setStatus:function(status){this.status=status},getStatus:function(){return this.status},main:function(){if(r89.log("Init: Main"),r89.log("Init: LoadScripts Status - "+r89.loadScripts.getStatus()),r89.log("Init: CMP Status - "+r89.cmp.getStatus()),"done"===r89.loadScripts.getStatus()&&"done"===r89.cmp.getStatus()){r89Data.config.prioritize_custom_ad_units&&r89.customAdunits.insert(),r89.events.trackFunction("initMain"),r89.log("Init: Loading"),r89.init.setStatus("loading");const integrations={gpt:r89Data.config.integrations.gpt?initGPT():r89.log("Init: No GPT"),pbjs:r89Data.config.integrations.pbjs?initPBJS(seller,cmp2,exchange_rate):r89.log("Init: No PBJS"),aps:r89Data.config.integrations.aps?initAPS(seller):r89.log("Init: No APS")};Object.keys(integrations).forEach((key=>{r89.log(`Init: ${key}`)})),r89.init.done()}},done:function(){r89.log("Init: Done"),this.setStatus("done"),r89.adunits.placeAds()}}}(r89Data),demandTier:function demandTier(){return{main:function(){try{var country;fetch("https://d294j4en0095q1.cloudfront.net/demandTiersFloors.json",{mode:"cors",method:"GET"}).then((response=>{if(response.ok)return response;throw new Error("Network response was not ok")})).then((function(data){return country=data.headers.get("Cloudfront-Viewer-Country"),data.json()})).then((function(demandData){Object.keys(demandData.countryTiers).includes(country)&&(r89Data.config.demandTier=demandData.countryTiers[country]),r89Data.config.key_value_price_rules?void 0!==demandData.priceRules&&(r89Data.config.priceRules=demandData.priceRules):googletag.cmd.push((function(){googletag.pubads().setTargeting("tier",r89Data.config.demandTier)}))})).catch((error=>{r89.log("Error:",error),googletag.cmd.push((function(){googletag.pubads().setTargeting("tier","ROW")}))}))}catch{r89.log("CAN_NOT_MAKE_DEMAND_TIER_REQUEST")}}}}(),cmp:function cmp({cmp:cmpConfig}){return{status:"uncalled",setStatus:function(status){this.status=status},getStatus:function(){return this.status},tcData:{},checkConsent:function(purposeId){return"object"==typeof r89.cmp.tcData&&("object"==typeof r89.cmp.tcData.purpose&&("object"==typeof r89.cmp.tcData.purpose.consents&&("boolean"==typeof r89.cmp.tcData.purpose.consents[purposeId]&&r89.cmp.tcData.purpose.consents[purposeId])))},checkLegitimateInterest:function(legitimateInterestId){return"object"==typeof r89.cmp.tcData&&("object"==typeof r89.cmp.tcData.purpose&&("object"==typeof r89.cmp.tcData.purpose.legitimateInterests&&("boolean"==typeof r89.cmp.tcData.purpose.legitimateInterests[legitimateInterestId]&&r89.cmp.tcData.purpose.legitimateInterests[legitimateInterestId])))},checkFullConsent:function(){let consent=!0;return[1,2,3,4].forEach((id=>{r89.cmp.checkConsent(id)||(consent=!1)})),consent},checkLimitedAds:function(){let limitedAds=!0;return[2,7,9,10].forEach((id=>{r89.cmp.checkLegitimateInterest(id)||(limitedAds=!1)})),limitedAds},checkCustomPurpose:function(purposeId){return"object"==typeof r89.cmp.tcData&&("object"==typeof r89.cmp.tcData.customPurposeConsents&&("boolean"==typeof r89.cmp.tcData.customPurposeConsents[purposeId]&&r89.cmp.tcData.customPurposeConsents[purposeId]))},checkCustomVendor:function(vendorId){return"object"==typeof r89.cmp.tcData&&("object"==typeof r89.cmp.tcData.customVendorConsents&&("boolean"==typeof r89.cmp.tcData.customVendorConsents[vendorId]&&r89.cmp.tcData.customVendorConsents[vendorId]))},checkGDPRApplies:function(){return"object"==typeof r89.cmp.tcData&&("boolean"==typeof r89.cmp.tcData.gdprApplies&&r89.cmp.tcData.gdprApplies)},load:function(){if(r89.events.trackFunction("cmpLoad"),cmpConfig.active)if(cmpConfig.hosted&&"quantcast"==cmpConfig.type){let makeStub2=function(){const queue=[];let cmpFrame,win=window;for(;win;){try{if(win.frames.__tcfapiLocator){cmpFrame=win;break}}catch(ignore){}if(win===window.top)break;win=win.parent}cmpFrame||(!function addFrame(){const doc=win.document,otherCMP=!!win.frames.__tcfapiLocator;if(!otherCMP)if(doc.body){const iframe=doc.createElement("iframe");iframe.style.cssText="display:none",iframe.name="__tcfapiLocator",doc.body.appendChild(iframe)}else setTimeout(addFrame,5);return!otherCMP}(),win.__tcfapi=function tcfAPIHandler(){let gdprApplies;const args=arguments;if(!args.length)return queue;if("setGdprApplies"===args[0])args.length>3&&2===args[2]&&"boolean"==typeof args[3]&&(gdprApplies=args[3],"function"==typeof args[2]&&args[2]("set",!0));else if("ping"===args[0]){const retr={gdprApplies:gdprApplies,cmpLoaded:!1,cmpStatus:"stub"};"function"==typeof args[2]&&args[2](retr)}else"init"===args[0]&&"object"==typeof args[3]&&(args[3]=Object.assign(args[3],{tag_version:"V2"})),queue.push(args)},win.addEventListener("message",(function postMessageEventHandler(event){const msgIsString="string"==typeof event.data;let json={};try{json=msgIsString?JSON.parse(event.data):event.data}catch(ignore){}const payload=json.__tcfapiCall;payload&&window.__tcfapi(payload.command,payload.version,(function(retValue,success){let returnMsg={__tcfapiReturn:{returnValue:retValue,success:success,callId:payload.callId}};msgIsString&&(returnMsg=JSON.stringify(returnMsg)),event&&event.source&&event.source.postMessage&&event.source.postMessage(returnMsg,"*")}),payload.parameter)}),!1))};if(r89.log("CMP: Hosted Quantcast"),r89.cmp.setStatus("loading"),r89.events.push("cmp",{hosted:r89Data.config.cmp.hosted,type:r89Data.config.cmp.type,status:"calling"}),r89Data.config.cmp.consent_base_url){r89.log("CMP: Base url");var host=window.location.hostname.split(".")[window.location.hostname.split(".").length-2]+"."+window.location.hostname.split(".")[window.location.hostname.split(".").length-1]}else{r89.log("CMP: No base url");host=window.location.hostname}const element=document.createElement("script"),firstScript=document.getElementsByTagName("script")[0],url="https://cmp.quantcast.com".concat("/choice/",r89Data.config.cmp.id,"/",host,"/choice.js?tag_version=V2");let uspTries=0;const uspTriesLimit=3;element.async=!0,element.type="text/javascript",element.src=url,firstScript.parentNode.insertBefore(element,firstScript),makeStub2();const uspStubFunction=function(){const arg=arguments;typeof window.__uspapi!==uspStubFunction&&setTimeout((function(){void 0!==window.__uspapi&&window.__uspapi.apply(window.__uspapi,arg)}),500)},checkIfUspIsReady=function(){uspTries++,window.__uspapi===uspStubFunction&&uspTries0)for(var d=0;d0?"id="+h.cmp_id:"")+("cmp_cdid"in h?"&cdid="+h.cmp_cdid:"")+"&h="+encodeURIComponent(g)+(""!=c?"&cmpdesign="+encodeURIComponent(c):"")+(""!=f?"&cmpregulationkey="+encodeURIComponent(f):"")+(""!=r?"&cmpgppkey="+encodeURIComponent(r):"")+(""!=n?"&cmpatt="+encodeURIComponent(n):"")+("cmp_params"in h?"&"+h.cmp_params:"")+(u.cookie.length>0?"&__cmpfcc=1":"")+"&l="+o.toLowerCase()+"&o="+(new Date).getTime(),j.type="text/javascript",j.async=!0,u.currentScript&&u.currentScript.parentElement)?u.currentScript.parentElement.appendChild(j):u.body?u.body.appendChild(j):(0==(t=v("body")).length&&(t=v("div")),0==t.length&&(t=v("span")),0==t.length&&(t=v("ins")),0==t.length&&(t=v("script")),0==t.length&&(t=v("head")),t.length>0&&t[0].appendChild(j));let m="js",p=x("cmpdebugunminimized","cmpdebugunminimized"in h?h.cmpdebugunminimized:0)>0?"":".min";var j,t;("1"==x("cmpdebugcoverage","cmp_debugcoverage"in h?h.cmp_debugcoverage:"")&&(m="instrumented",p=""),(j=u.createElement("script")).onload=r89.events.trackFunction("cmpStub2"),j.src=k+"//"+h.cmp_cdn+"/delivery/"+m+"/cmp"+b+p+".js",j.type="text/javascript",j.setAttribute("data-cmp-ab","1"),j.async=!0,u.currentScript&&u.currentScript.parentElement)?u.currentScript.parentElement.appendChild(j):u.body?u.body.appendChild(j):(0==(t=v("body")).length&&(t=v("div")),0==t.length&&(t=v("span")),0==t.length&&(t=v("ins")),0==t.length&&(t=v("script")),0==t.length&&(t=v("head")),t.length>0&&t[0].appendChild(j))}(),window.cmp_addFrame=function(b){if(!window.frames[b])if(document.body){const a=document.createElement("iframe");a.style.cssText="display:none","cmp_cdn"in window&&"cmp_ultrablocking"in window&&window.cmp_ultrablocking>0&&(a.src="//"+window.cmp_cdn+"/delivery/empty.html"),a.name=b,a.setAttribute("title","Intentionally hidden, please ignore"),a.setAttribute("role","none"),a.setAttribute("tabindex","-1"),document.body.appendChild(a)}else window.setTimeout(window.cmp_addFrame,10,b)},window.cmp_rc=function(h){let b=document.cookie,f="",d=0;for(;""!=b&&d<100;){for(d++;" "==b.substr(0,1);)b=b.substr(1,b.length);const g=b.substring(0,b.indexOf("="));if(-1!=b.indexOf(";"))var c=b.substring(b.indexOf("=")+1,b.indexOf(";"));else c=b.substr(b.indexOf("=")+1,b.length);h==g&&(f=c);let e=b.indexOf(";")+1;0==e&&(e=b.length),b=b.substring(e,b.length)}return f},window.cmp_stub=function(){const a=arguments;if(__cmp.a=__cmp.a||[],!a.length)return __cmp.a;"ping"===a[0]?2===a[1]?a[2]({gdprApplies:gdprAppliesGlobally,cmpLoaded:!1,cmpStatus:"stub",displayStatus:"hidden",apiVersion:"2.0",cmpId:31},!0):a[2](!1,!0):"getUSPData"===a[0]?a[2]({version:1,uspString:window.cmp_rc("")},!0):"getTCData"===a[0]||"addEventListener"===a[0]||"removeEventListener"===a[0]?__cmp.a.push([].slice.apply(a)):4==a.length&&!1===a[3]?a[2]({},!1):__cmp.a.push([].slice.apply(a))},window.cmp_gpp_ping=function(){return{gppVersion:"1.0",cmpStatus:"stub",cmpDisplayStatus:"hidden",supportedAPIs:["tcfca","usnat","usca","usva","usco","usut","usct"],cmpId:31}},window.cmp_gppstub=function(){const a=arguments;if(__gpp.q=__gpp.q||[],!a.length)return __gpp.q;const g=a[0],f=a.length>1?a[1]:null,e=a.length>2?a[2]:null;if("ping"===g)return window.cmp_gpp_ping();if("addEventListener"===g){__gpp.e=__gpp.e||[],"lastId"in __gpp||(__gpp.lastId=0),__gpp.lastId++;const c=__gpp.lastId;return __gpp.e.push({id:c,callback:f}),{eventName:"listenerRegistered",listenerId:c,data:!0,pingData:window.cmp_gpp_ping()}}if("removeEventListener"===g){let h=!1;__gpp.e=__gpp.e||[];for(let d=0;d<__gpp.e.length;d++)if(__gpp.e[d].id==e){__gpp.e[d].splice(d,1),h=!0;break}return{eventName:"listenerRemoved",listenerId:e,data:h,pingData:window.cmp_gpp_ping()}}return"getGPPData"===g?{sectionId:3,gppVersion:1,sectionList:[],applicableSections:[0],gppString:"",pingData:window.cmp_gpp_ping()}:"hasSection"===g||"getSection"===g||"getField"===g?null:void __gpp.q.push([].slice.apply(a))},window.cmp_msghandler=function(d){const a="string"==typeof d.data;try{var c=a?JSON.parse(d.data):d.data}catch(f){c=null}if("object"==typeof c&&null!==c&&"__cmpCall"in c){var b=c.__cmpCall;window.__cmp(b.command,b.parameter,(function(h,g){const e={__cmpReturn:{returnValue:h,success:g,callId:b.callId}};d.source.postMessage(a?JSON.stringify(e):e,"*")}))}if("object"==typeof c&&null!==c&&"__uspapiCall"in c){b=c.__uspapiCall;window.__uspapi(b.command,b.version,(function(h,g){const e={__uspapiReturn:{returnValue:h,success:g,callId:b.callId}};d.source.postMessage(a?JSON.stringify(e):e,"*")}))}if("object"==typeof c&&null!==c&&"__tcfapiCall"in c){b=c.__tcfapiCall;window.__tcfapi(b.command,b.version,(function(h,g){const e={__tcfapiReturn:{returnValue:h,success:g,callId:b.callId}};d.source.postMessage(a?JSON.stringify(e):e,"*")}),b.parameter)}if("object"==typeof c&&null!==c&&"__gppCall"in c){b=c.__gppCall;window.__gpp(b.command,(function(h,g){const e={__gppReturn:{returnValue:h,success:g,callId:b.callId}};d.source.postMessage(a?JSON.stringify(e):e,"*")}),"parameter"in b?b.parameter:null,"version"in b?b.version:1)}},window.cmp_setStub=function(a){a in window&&("function"==typeof window[a]||"object"==typeof window[a]||void 0!==window[a]&&null===window[a])||(window[a]=window.cmp_stub,window[a].msgHandler=window.cmp_msghandler,window.addEventListener("message",window.cmp_msghandler,!1))},window.cmp_setGppStub=function(a){a in window&&("function"==typeof window[a]||"object"==typeof window[a]||void 0!==window[a]&&null===window[a])||(window[a]=window.cmp_gppstub,window[a].msgHandler=window.cmp_msghandler,window.addEventListener("message",window.cmp_msghandler,!1))},window.cmp_addFrame("__cmpLocator"),"cmp_disableusp"in window&&window.cmp_disableusp||window.cmp_addFrame("__uspapiLocator"),"cmp_disabletcf"in window&&window.cmp_disabletcf||window.cmp_addFrame("__tcfapiLocator"),"cmp_disablegpp"in window&&window.cmp_disablegpp||window.cmp_addFrame("__gppLocator"),window.cmp_setStub("__cmp"),"cmp_disabletcf"in window&&window.cmp_disabletcf||window.cmp_setStub("__tcfapi"),"cmp_disableusp"in window&&window.cmp_disableusp||window.cmp_setStub("__uspapi"),"cmp_disablegpp"in window&&window.cmp_disablegpp||window.cmp_setGppStub("__gpp"),__tcfapi("ping",2,(pingReturn=>{r89.events.trackFunction("cmpPing")})),__cmp("addEventListener",["init",function(){r89.events.trackFunction("cmpInit")},!1],null),__cmp("addEventListener",["settings",function(){r89.events.trackFunction("cmpSettings")},!1],null),__tcfapi("addEventListener",2,r89.cmp.callback)):cmpConfig.hosted||"tcf2"!=cmpConfig.type||(r89.log("CMP: External TCF2"),r89.cmp.setStatus("loading"),r89.events.push("cmp",{hosted:r89Data.config.cmp.hosted,type:r89Data.config.cmp.type,status:"calling"}),this.checkApiStatus());else r89.log("CMP: Not needed"),r89.cmp.setStatus("done"),r89.session.sessionAllowed=!0,r89.cmp.done()},checkApiStatusCount:0,checkApiStatusMaxCount:15,checkApiStatus:function(){"undefined"==typeof __tcfapi?(++r89.cmp.checkApiStatusCount,r89.cmp.checkApiStatusCount<=r89.cmp.checkApiStatusMaxCount?(r89.log("CMP: Waiting for TCF API "+r89.cmp.checkApiStatusCount+"/"+r89.cmp.checkApiStatusMaxCount),setTimeout(r89.cmp.checkApiStatus,500)):r89.log("CMP: TCF API not available")):__tcfapi("addEventListener",2,r89.cmp.callback)},callbackTracked:!1,callback:function(tcData,success){if(r89.log("CMP: Callback"),r89.cmp.callbackTracked||(r89.cmp.callbackTracked=!0,r89.events.trackFunction("cmpCallbackTracked")),r89.cmp.tcData=tcData,"loaded"==tcData.cmpStatus&&"loading"==r89.cmp.getStatus()&&(r89.events.push("cmp",{hosted:r89Data.config.cmp.hosted,type:r89Data.config.cmp.type,status:"loaded"}),r89.events.trackFunction("cmpCallbackLoaded"),r89.cmp.setStatus("loaded")),r89Data.config.preview&&console.log(tcData),r89.cmp.done(),tcData.gdprApplies){if(success&&("tcloaded"===tcData.eventStatus||"useractioncomplete"===tcData.eventStatus)){if(r89.cmp.setStatus("done"),r89.cmp.checkConsent(1)&&(r89.session.sessionAllowed=!0,r89.session.setCookie()),r89.events.push("cmp",{hosted:r89Data.config.cmp.hosted,type:r89Data.config.cmp.type,status:r89.cmp.checkConsent(1)?"passed":"rejected"}),r89.events.trackFunction("cmpCallbackPassed"),r89Data.config.cmp.betting&&"useractioncomplete"==tcData.eventStatus&&r89.cmp.checkConsent(1)&&!r89.cmp.checkCustomPurpose(50)){const adhesePixel=document.createElement("script");adhesePixel.src="https://pool-igmn.adhese.com/tag/audience_sync.js",adhesePixel.type="text/javascript",adhesePixel.async=!0,adhesePixel.setAttribute("r89Data-igmn-opt","out"),document.getElementsByTagName("head")[0].appendChild(adhesePixel)}r89.init.main()}}else r89.cmp.setStatus("done"),r89.events.push("cmp",{hosted:r89Data.config.cmp.hosted,type:r89Data.config.cmp.type,status:"noGDPRApplies"}),r89.events.trackFunction("cmpCallbackPassed"),r89.init.main()},done:function(){r89.loadScripts.main()}}}(r89Data),bids:function bids(){return{request:function(batch){r89.log("Bids: Request "+batch);let timeout=r89Data.config.timeouts.default;batch in r89Data.config.timeouts&&(timeout=r89Data.config.timeouts[batch]);const refreshItems=r89.adunits.placedItems[batch].map((el=>el.slot)),slotIds=r89.adunits.placedItems[batch].map((el=>el.id)),slotsAPS=r89.adunits.placedItems[batch].map((el=>el.bidAPS)).filter(r89.helpers.filterUndefined),slotsPBJS=r89.adunits.placedItems[batch].map((el=>el.bidPBJS)).filter(r89.helpers.filterUndefined);slotsPBJS.forEach((slot=>{if(void 0!==slot.adSlotId&&void 0===slot.floors){let floors=r89.helpers.getPrebidFloor(slot.adSlotId);floors&&(slot.floors=floors),delete slot.adSlotId}}));const bidders=[];r89Data.config.integrations.aps&&slotsAPS.length>0&&bidders.push("aps"),r89Data.config.integrations.pbjs&&slotsPBJS.length>0&&bidders.push("pbjs");const requestManager={adserverRequestSent:!1};function headerBidderBack(bidder){!0!==requestManager.adserverRequestSent&&("aps"===bidder?requestManager.aps=!0:"pbjs"===bidder&&(requestManager.pbjs=!0),function allBiddersBack(){return bidders.map((function(bidder){return requestManager[bidder]})).filter(Boolean).length===bidders.length}()&&sendAdserverRequest())}function sendAdserverRequest(){!0!==requestManager.adserverRequestSent&&(requestManager.adserverRequestSent=!0,googletag.cmd.push((function(){googletag.pubads().refresh(refreshItems)})))}bidders.forEach((function(bidder){requestManager[bidder]=!1})),bidders.includes("aps")&&slotsAPS.length>0&&apstag.fetchBids({slots:slotsAPS,timeout:timeout},(function(){googletag.cmd.push((function(){apstag.setDisplayBids(),headerBidderBack("aps")}))})),bidders.includes("pbjs")&&slotsPBJS.length>0&&r89_pbjs.que.push((function(){r89_pbjs.requestBids({timeout:timeout,adUnits:slotsPBJS,bidsBackHandler:function(){googletag.cmd.push((function(){r89_pbjs.setTargetingForGPTAsync(slotIds),headerBidderBack("pbjs")}))}})})),0===bidders.length?sendAdserverRequest():window.setTimeout((function(){sendAdserverRequest()}),1.5*timeout)},trackViewableTime:function(){r89.log("Bids: TrackViewableTime"),this.trackViewableTimeInterval=window.setInterval((function(){if(!document.hidden)for(let batch in r89.adunits.placedItems)r89.adunits.placedItems[batch].forEach((function(el){el.visible&&el.refresh&&(el.viewableTime+=r89Data.config.refresh.interval,el.viewable&&el.viewableTime>=r89Data.config.refresh.viewable&&(el.doRefresh=!0))}))}),r89Data.config.refresh.interval)},trackRefresh:function(){r89.log("Bids: TrackRefresh"),this.trackRefreshInterval=window.setInterval((function(){if(!document.hidden)for(let batch in r89.adunits.placedItems)r89.adunits.placedItems[batch].forEach((function(el){el.isIntersectingAt50&&el.isEmpty&&el.failedCount<=2&&(el.doRefresh=!0),el.doRefresh&&el.refresh&&(el.visible||el.isIntersectingAt50&&el.isEmpty)&&(el.viewable=!1,el.viewableTime=0,el.doRefresh=!1,el.isIntersectingAt50=!1,el.isEmpty=!0,"video-outstream"===el.div_id&&r89.outstream.adunit.refreshCount++,r89.bids.refresh(el))}))}),r89Data.config.refresh.seconds)},lazy:function(el){r89.log("Bids: Lazy "+el.id);const timeout=r89Data.config.timeouts.lazy,bidders=[];r89Data.config.integrations.aps&&"bidAPS"in el&&bidders.push("aps"),r89Data.config.integrations.pbjs&&"bidPBJS"in el&&bidders.push("pbjs");const requestManager={adserverRequestSent:!1};function headerBidderBack(bidder){!0!==requestManager.adserverRequestSent&&("aps"===bidder?requestManager.aps=!0:"pbjs"===bidder&&(requestManager.pbjs=!0),function allBiddersBack(){return bidders.map((function(bidder){return requestManager[bidder]})).filter(Boolean).length===bidders.length}()&&sendAdserverRequest())}function sendAdserverRequest(){!0!==requestManager.adserverRequestSent&&(requestManager.adserverRequestSent=!0,googletag.cmd.push((function(){googletag.pubads().refresh([el.slot])})))}bidders.forEach((function(bidder){requestManager[bidder]=!1})),bidders.includes("aps")&&apstag.fetchBids({slots:[el.bidAPS],timeout:timeout},(function(){googletag.cmd.push((function(){apstag.setDisplayBids(),headerBidderBack("aps")}))})),bidders.includes("pbjs")&&r89_pbjs.que.push((function(){r89_pbjs.requestBids({timeout:timeout,adUnits:[el.bidPBJS],bidsBackHandler:function(){googletag.cmd.push((function(){r89_pbjs.setTargetingForGPTAsync([el.id]),headerBidderBack("pbjs")}))}})})),0===bidders.length?sendAdserverRequest():window.setTimeout((function(){sendAdserverRequest()}),1.5*timeout)},fallback:function(el){r89.log("Bids: Fallback "+el.id);const timeout=r89Data.config.timeouts.lazy,bidders=[];r89Data.config.integrations.aps&&"bidAPS"in el&&bidders.push("aps"),r89Data.config.integrations.pbjs&&"bidPBJS"in el&&bidders.push("pbjs");const requestManager={adserverRequestSent:!1};function headerBidderBack(bidder){!0!==requestManager.adserverRequestSent&&("aps"===bidder?requestManager.aps=!0:"pbjs"===bidder&&(requestManager.pbjs=!0),function allBiddersBack(){return bidders.map((function(bidder){return requestManager[bidder]})).filter(Boolean).length===bidders.length}()&&sendAdserverRequest())}function sendAdserverRequest(){!0!==requestManager.adserverRequestSent&&(requestManager.adserverRequestSent=!0,googletag.cmd.push((function(){googletag.pubads().refresh([el.slot])})))}bidders.forEach((function(bidder){requestManager[bidder]=!1})),bidders.includes("aps")&&apstag.fetchBids({slots:[el.bidAPS],timeout:timeout},(function(){googletag.cmd.push((function(){apstag.setDisplayBids(),headerBidderBack("aps")}))})),bidders.includes("pbjs")&&r89_pbjs.que.push((function(){r89_pbjs.requestBids({timeout:timeout,adUnits:[el.bidPBJS],bidsBackHandler:function(){googletag.cmd.push((function(){r89_pbjs.setTargetingForGPTAsync([el.id]),headerBidderBack("pbjs")}))}})})),0===bidders.length?sendAdserverRequest():window.setTimeout((function(){sendAdserverRequest()}),1.5*timeout)},refresh:function(el){r89.log("Bids: Refresh "+el.id),el.refreshed=!0,el.isIntersectingAt50=!0;const timeout=r89Data.config.timeouts.refresh,bidders=[];r89Data.config.integrations.aps&&"bidAPS"in el&&bidders.push("aps"),r89Data.config.integrations.pbjs&&"bidPBJS"in el&&bidders.push("pbjs");const requestManager={adserverRequestSent:!1};function headerBidderBack(bidder){!0!==requestManager.adserverRequestSent&&("aps"===bidder?requestManager.aps=!0:"pbjs"===bidder&&(requestManager.pbjs=!0),function allBiddersBack(){return bidders.map((function(bidder){return requestManager[bidder]})).filter(Boolean).length===bidders.length}()&&sendAdserverRequest())}function sendAdserverRequest(){!0!==requestManager.adserverRequestSent&&(requestManager.adserverRequestSent=!0,googletag.cmd.push((function(){el.slot.setTargeting("rfr",1),googletag.pubads().refresh([el.slot])})))}bidders.forEach((function(bidder){requestManager[bidder]=!1})),bidders.includes("aps")&&apstag.fetchBids({slots:[el.bidAPS],timeout:timeout},(function(){googletag.cmd.push((function(){apstag.setDisplayBids(),headerBidderBack("aps")}))})),bidders.includes("pbjs")&&r89_pbjs.que.push((function(){r89_pbjs.requestBids({timeout:timeout,adUnits:[el.bidPBJS],bidsBackHandler:function(){googletag.cmd.push((function(){r89_pbjs.setTargetingForGPTAsync([el.id]),headerBidderBack("pbjs")}))}})})),0===bidders.length?sendAdserverRequest():window.setTimeout((function(){sendAdserverRequest()}),1.5*timeout)},outstream:function(el){r89.log("Bids: Outstream "+el.id);const timeout=r89Data.config.timeouts.outstream,bidders=[];r89Data.config.integrations.aps&&"bidAPS"in el&&el.has_amazon&&bidders.push("aps"),r89Data.config.integrations.pbjs&&"bidPBJS"in el&&bidders.push("pbjs");const requestManager={adserverRequestSent:!1};function headerBidderBack(bidder){!0!==requestManager.adserverRequestSent&&("aps"===bidder?requestManager.aps=!0:"pbjs"===bidder&&(requestManager.pbjs=!0),function allBiddersBack(){return bidders.map((function(bidder){return requestManager[bidder]})).filter(Boolean).length===bidders.length}()&&sendAdserverRequest())}function sendAdserverRequest(){!0!==requestManager.adserverRequestSent&&(requestManager.adserverRequestSent=!0,googletag.cmd.push((function(){googletag.pubads().refresh([el.slot])})))}bidders.forEach((function(bidder){requestManager[bidder]=!1})),bidders.includes("aps")&&apstag.fetchBids({slots:[el.bidAPS],timeout:timeout},(function(){googletag.cmd.push((function(){apstag.setDisplayBids(),headerBidderBack("aps")}))})),bidders.includes("pbjs")&&(el.bidPBJS.forEach((slot=>{if(void 0!==slot.adSlotId&&void 0===slot.floors){let floors=r89.helpers.getPrebidFloor(slot.adSlotId);floors&&(slot.floors=floors),delete slot.adSlotId}})),r89_pbjs.que.push((function(){r89_pbjs.requestBids({timeout:timeout,adUnits:el.bidPBJS,bidsBackHandler:function(){googletag.cmd.push((function(){r89_pbjs.setTargetingForGPTAsync([el.id]),headerBidderBack("pbjs")}));try{const amazonVideoPlayer=document.querySelector('[id^="apsVideoDiv"]'),childAmazonIframe=amazonVideoPlayer.getElementsByTagName("iframe")[0];childAmazonIframe.id.includes("apstag")&&(amazonVideoPlayer.style.maxWidth="100%",childAmazonIframe.style.maxWidth="100%")}catch(err){r89.log("AMAZON_DID_NOT_WON")}}})}))),0===bidders.length?sendAdserverRequest():window.setTimeout((function(){sendAdserverRequest()}),1.5*timeout)},infiniteScroll:function(){r89.log("Bids: Request Infinite Scroll");const timeout=r89Data.config.timeouts.default,refreshItems=r89.infiniteScroll.placedItems.map((el=>el.slot)),slotIds=r89.infiniteScroll.placedItems.map((el=>el.id)),slotsAPS=r89.infiniteScroll.placedItems.map((el=>el.bidAPS)).filter(r89.helpers.filterUndefined),slotsPBJS=r89.infiniteScroll.placedItems.map((el=>el.bidPBJS)).filter(r89.helpers.filterUndefined),bidders=[];r89Data.config.integrations.aps&&slotsAPS.length>0&&bidders.push("aps"),r89Data.config.integrations.pbjs&&slotsPBJS.length>0&&bidders.push("pbjs");const requestManager={adserverRequestSent:!1};function headerBidderBack(bidder){!0!==requestManager.adserverRequestSent&&("aps"===bidder?requestManager.aps=!0:"pbjs"===bidder&&(requestManager.pbjs=!0),function allBiddersBack(){return bidders.map((function(bidder){return requestManager[bidder]})).filter(Boolean).length===bidders.length}()&&sendAdserverRequest())}function sendAdserverRequest(){!0!==requestManager.adserverRequestSent&&(requestManager.adserverRequestSent=!0,googletag.cmd.push((function(){googletag.pubads().refresh(refreshItems)})))}bidders.forEach((function(bidder){requestManager[bidder]=!1})),bidders.includes("aps")&&slotsAPS.length>0&&apstag.fetchBids({slots:slotsAPS,timeout:timeout},(function(){googletag.cmd.push((function(){apstag.setDisplayBids(),headerBidderBack("aps")}))})),bidders.includes("pbjs")&&slotsPBJS.length>0&&r89_pbjs.que.push((function(){r89_pbjs.requestBids({timeout:timeout,adUnits:slotsPBJS,bidsBackHandler:function(){googletag.cmd.push((function(){r89_pbjs.setTargetingForGPTAsync(slotIds),headerBidderBack("pbjs")}))}})})),0===bidders.length?sendAdserverRequest():window.setTimeout((function(){sendAdserverRequest()}),1.5*timeout)}}}(),load:function load({preload:preload,cmp:cmpConfig,preconnect:preconnect}){return{scrollLoaded:!1,scroll:function(){r89.load.scrollLoaded||(r89.load.scrollLoaded=!0,window.removeEventListener("scroll",r89.load.scroll),r89.load.contentLoaded())},contentLoadedState:!1,contentLoaded:function(){r89.load.preload(),r89.log("Load: ContentLoaded - "+document.readyState),"complete"===document.readyState||"interactive"===document.readyState?(r89.log("Load: ContentLoaded - Complete"),r89.load.contentLoadedState=!0,r89.load.main()):(r89.log("Load: ContentLoaded - Event Listener"),document.addEventListener("readystatechange",(event=>{r89.log("Load: Onreadystatechange - "+document.readyState),"interactive"!==document.readyState&&"complete"!==document.readyState||r89.load.contentLoadedState||(r89.load.contentLoadedState=!0,r89.load.main())})))},main:function(){if(r89.log("Load: Main"),r89.events.trackFunction("loadMain"),r89.load.setEnvironment(),r89.load.setCurrentUrl(),!r89.load.checkUrlFilters())return r89.log("Load: Canceled with URL filter"),!1;r89Data.config.is_mobile&&r89Data.config.scriptTimeout.active&&(r89Data.config.scriptTimeout.timeout=r89Data.config.scriptTimeout.options[r89.helpers.randomInt(0,r89Data.config.scriptTimeout.options.length-1)]),r89.adunits.main()},setEnvironment:function(){r89Data.config.viewport.width=Math.max(document.documentElement.clientWidth||0,window.innerWidth||0),r89Data.config.viewport.height=Math.max(document.documentElement.clientHeight||0,window.innerHeight||0),r89Data.config.viewport.width>=r89Data.config.desktop_width?(r89Data.config.is_mobile=0,r89Data.config.is_desktop=1):(r89Data.config.is_mobile=1,r89Data.config.is_desktop=0);let ranges=[[0,320],[320,360],[360,375],[375,414],[414,768],[768,992],[992,1024],[1024,1152],[1152,1280],[1280,1440],[1440,1680],[1680,1920]];r89Data.config.viewport.width>1920?r89Data.config.screenWidthKey="1920-plus":ranges.every((v=>!(r89Data.config.viewport.width2&&-1==r89Data.config.currentUrl.titleTags.indexOf(kv_tags[i2])&&r89Data.config.currentUrl.titleTags.push(kv_tags[i2])},checkUrlFilters:function(){if(void 0!==r89.pageConfig&&void 0!==r89.pageConfig.noAds&&1==r89.pageConfig.noAds)return!1;if(-1!==r89Data.config.urlFilters.exact.indexOf(r89Data.config.currentUrl.path))return!1;for(var i2=0;i2el.wrapper)).forEach((function(wrapper2){wrapper2.remove()}))}r89Data.config.outstream&&r89.outstream.adunit.wrapper&&r89.outstream.adunit.wrapper.remove(),this.resetKeys()},resetKeys:function(){r89.adunits.batches=[],r89.adunits.currentBatch=0,r89.adunits.placedItems={},clearInterval(r89.bids.trackViewableTimeInterval),clearInterval(r89.bids.trackRefreshInterval),this.resetSession()},resetSession:function(){r89.session.newPageview(),this.done()},done:function(){r89.load.main()},customTargetingKeys:function(){googletag.cmd.push((function(){if(void 0!==r89.pageConfig&&"object"==typeof r89.pageConfig.targetingKeys)for(var targetingKey in r89.pageConfig.targetingKeys)googletag.pubads().setTargeting(targetingKey,r89.pageConfig.targetingKeys[targetingKey])}))}}}(),adunits:function adunits({adunits:adunitsConfig,batches:batches,inimage_adunits:inImageAdsConfig,inimage_bidders:inImageBiddersConfig,video_overlay:videoOverlayConfig}){return{status:"uncalled",setStatus:function(status){this.status=status},getStatus:function(){return this.status},items:adunitsConfig,performance:{},batchNames:batches,batches:[],currentBatch:0,allBatchesPlaced:0,placedItems:{},lazyLoadDistances:[0,250,500,500,500,750,1e3,1250,1500,1750,2e3],main:function(){r89.log("Adnits: Main"),r89.events.trackFunction("adunitsMain"),r89Data.config.stickySidebar&&r89.stickySidebar.main(),this.prepareBatches(),this.placeWrappers()},pickLazyLoadDistance:function(){return this.lazyLoadDistances[Math.floor(Math.random()*this.lazyLoadDistances.length)]},prepareBatches:function(){this.batchNames.forEach((function(item){"video_overlay"!==item&&(this.placedItems[item]=[],this.batches.push(item))}),this)},placeWrappers:function(){r89.log("Adunits: PlaceWrappers"),this.setStatus("placeWrappers"),this.items.forEach(this.placeWrapper,this),this.attachObserversOnWrappers(),this.placeWrappersDone()},attachObserversOnWrappers:function(){const observer=new IntersectionObserver((function(entries,observer2){entries.forEach((entry=>{let targetId=entry.target.id.replace("-wrapper",""),el=r89.adunits.searchBatches(targetId);el&&(el.isIntersectingAt50=entry.isIntersecting)}))}),{root:null,threshold:.5});document.querySelectorAll('[id^=r89-][id$="-wrapper"]').forEach((element=>{try{"undefined"!==element.id&&observer.observe(document.getElementById(element.id))}catch(err){r89.log("FAILED",element)}}))},placeWrapper:function(el,index){if(!r89.helpers.checkScreenSize(r89Data,el))return!1;r89.log("Adunits: Attempt to place "+el.div_id);let selector_divs=[];if(el.selector_all)selector_divs=document.querySelectorAll(el.selector);else{let selector_div=null;const selector_split=el.selector.split(",");for(let i2=0;i20?selector_divs.forEach((function(selector_div){const id=r89Data.config.prefix+el.div_id+"-"+count;++count;const adunit=document.createElement("div");adunit.id=id;const wrapper2=document.createElement("div");if(wrapper2.id=id+"-wrapper",el.wrapper_style_parsed&&Object.keys(el.wrapper_style_parsed).forEach((key=>{wrapper2.style[key]=el.wrapper_style_parsed[key]})),el.show_label){const ad_unit_label=document.createElement("div");ad_unit_label.className="r89-ad-label",ad_unit_label.innerHTML=r89Data.config.ad_label_text,r89Data.config.labelStyle&&Object.keys(r89Data.config.labelStyle).forEach((key=>{ad_unit_label.style[key]=r89Data.config.labelStyle[key]})),ad_unit_label.style.display="none";const ad_unit_label_wrapper=document.createElement("div");el.wrapper_sticky&&(ad_unit_label_wrapper.style.position="sticky",ad_unit_label_wrapper.style.top=r89Data.config.adunit_wrapper_sticky_top),ad_unit_label_wrapper.appendChild(ad_unit_label),wrapper2.appendChild(ad_unit_label_wrapper)}if(el.wrapper_sticky){const stickyWrapper=document.createElement("div");stickyWrapper.style.position="sticky",stickyWrapper.style.top=r89Data.config.adunit_wrapper_sticky_top,wrapper2.appendChild(stickyWrapper),stickyWrapper.appendChild(adunit)}else wrapper2.appendChild(adunit);if(r89Data.config.positionNames.includes(el.position.name)){if("insertBefore"===el.position.name?selector_div.parentNode.insertBefore(wrapper2,selector_div):"insertAfter"===el.position.name?null===selector_div.nextElementSibling?selector_div.parentNode.appendChild(wrapper2):selector_div.parentNode.insertBefore(wrapper2,selector_div.nextElementSibling):"appendChild"===el.position.name&&selector_div.appendChild(wrapper2),el.id=id,el.wrapper=wrapper2,el.rendered=!1,el.viewable=!1,el.viewableTime=0,el.visible=!1,el.doRefresh=!1,el.refreshed=!1,el.isEmpty=!0,el.isIntersectingAt50=!1,el.failedCount=0,el.has_amazon&&(el.bidAPS={slotID:id,sizes:el.aps_sizes,slotName:el.slot_name}),el.bidder&&el.bidder in r89Data.bidders){const mediaTypes={};el.pbjs_sizes.length>0&&(mediaTypes.banner={sizes:el.pbjs_sizes}),el.has_native&&(mediaTypes.native={type:"image"}),el.bidPBJS={code:id,mediaTypes:mediaTypes,bids:r89Data.bidders[el.bidder],adSlotId:el.ad_slot_id}}el.lazy_load_ab_testing&&(el.lazy_load_distance=this.pickLazyLoadDistance()),this.placedItems[el.batch].push({...el})}}),this):r89.log("Adunits: Selector not found "+el.div_id)},placeWrappersDone:function(){this.setStatus("placeWrappersDone"),"uncalled"!==r89.reset.getStatus()?(r89.log("Adunits: PlaceWrappersDone - Reset"),r89.adunits.placeAds()):(r89.log("Adunits: PlaceWrappersDone"),r89.cmp.load(),0===Object.values(r89.adunits.placedItems).flat().length&&r89.events.push("pageview",{type:"noWrappers"}))},placeAds:function(){r89.log("Adunits: PlaceAds"),this.setStatus("placeAds"),r89.events.trackFunction("adunitsPlaceAds"),this.batches=this.batches.filter((function(batch){return"outstream"===batch&&r89Data.config.outstream?1:this.placedItems[batch].length}),this),1===inImageAdsConfig.active&&inImageBiddersConfig["InImage-R89"].length>0&&r89.inImageR89.main(),videoOverlayConfig.active&&r89.video_overlay.main(),this.placeBatch()},placeBatch:function(){if(r89.log("Adunits: PlaceBatch"),this.setStatus("placeBatch"),this.batches.length>this.currentBatch){const batch=this.batches[this.currentBatch];r89.log("Adunits: PlaceBatch "+batch),this.placedItems[batch].forEach(this.placeAd,this),"lazy"===batch?this.lazyLoadObservers(batch):"outstream"===batch?r89.outstream.main():r89.bids.request(batch)}else this.placeBatchesDone()},placeBatchesDone:function(){r89.log("Adunits: PlaceBatchesDone"),this.setStatus("placeBatchesDone"),this.allBatchesPlaced?r89.log("Adunits: PlaceBatchesDone command ran twice. Stopping further script."):(this.allBatchesPlaced=1,r89Data.config.refresh.active&&(r89.bids.trackViewableTime(),r89.bids.trackRefresh()),r89.inImage.main())},placeAd:function(el){googletag.cmd.push((function(){r89.log("Adunits: PlaceAd "+el.id);const slot=googletag.defineSlot(el.slot_name,el.gpt_sizes,el.id);slot.setTargeting("ad_slot",el.ad_slot.name);let floor=r89.helpers.getGAMFloor(el.ad_slot_id);floor&&slot.setTargeting("flr",floor),"object"==typeof r89.adunits.performance[el.gam_ad_unit]&&(slot.setTargeting("au_vb",r89.adunits.performance[el.gam_ad_unit].au_vb),slot.setTargeting("au_cb",r89.adunits.performance[el.gam_ad_unit].au_cb)),el.lazy_load&&slot.setTargeting("lazy_load_dist",el.lazy_load_distance.toString()),slot.addService(googletag.pubads()),googletag.display(el.id),el.slot=slot}))},updateCurrentBatch:function(){++this.currentBatch},searchBatches:function(id){for(let key in r89.adunits.placedItems){let items=r89.adunits.placedItems[key].filter((function(item){return item.id===id}));if(1===items.length)return items[0]}return!1},lazyLoadObservers:function(batch){r89.log("Adunits: LazyLoadObservers"),this.placedItems[batch].forEach(this.lazyLoadObserver,this),this.updateCurrentBatch(),this.placeBatch()},lazyLoadObserver:function(el){el.lazy_load_ab_testing&&r89.events.trackEvent("lazyLoadDistance",el.gam_ad_unit+";"+el.lazy_load_distance);const options={rootMargin:"0px 0px "+el.lazy_load_distance+"px 0px",threshold:0};new IntersectionObserver((function(entries,observer2){entries.forEach((entry=>{entry.isIntersecting&&(r89.log("Adunit: Observed "+el.id),"requestIdleCallback"in window?requestIdleCallback((function(){r89.bids.lazy(el)}),{timeout:250}):r89.bids.lazy(el),observer2.unobserve(entry.target))}))}),options).observe(el.wrapper)}}}(r89Data),initialize:function initialize(){r89.log("Init: PublisherCall Initialize"),"done"===r89.init.getStatus()?r89.reset.main():r89.load.contentLoaded()},stickySidebar:function stickySidebar({sticky_sidebar:stickySidebarConfig}){return{status:"uncalled",setStatus:function(status){this.status=status},getStatus:function(){return this.status},sidebar:stickySidebarConfig,main:function(){if(this.sidebar.active&&r89Data.config.viewport.width>=this.sidebar.screen_width&&(wrapper=document.body.querySelector(this.sidebar.selector),null!==wrapper)){let wrapper_height=wrapper.clientHeight-this.sidebar.decrease_height;this.sidebar.minimum_elements>1&&wrapper_height0){let widgets_inserted=!1;if(widgets.forEach((function(widget){let selector_div=null;const selector_split=widget.selector.split(",");for(let i2=0;i2{entry.isIntersecting&&(r89.log("Outbrain: Lazy load insert."),"requestIdleCallback"in window?requestIdleCallback((function(){document.head.appendChild(scriptElm)}),{timeout:250}):document.head.appendChild(scriptElm),observer2.unobserve(entry.target))}))}),options).observe(r89.outbrain.wrapper)}else document.head.appendChild(scriptElm)}}}this.done()},done:function(){r89.customAdunits.main()}}}(r89Data),outstream:function outstream({outstream:outstreamConfig}){return{status:"uncalled",setStatus:function(status){this.status=status},getStatus:function(){return this.status},adunit:outstreamConfig.adunit,deal_id_exception:outstreamConfig.deal_id_exception,line_item_exception:outstreamConfig.line_item_exception,ad_slot_id:outstreamConfig.ad_slot_id,main:function(){r89.log("Outstream: Main"),r89Data.config.outstream?this.adunit.is_desktop&&r89Data.config.is_desktop?(this.adunit.bidder=this.adunit.desktop_bidder,this.adunit.sizes=this.adunit.desktop_sizes,this.adunit.gpt_sizes=this.adunit.desktop_gpt_sizes,this.adunit.aps_sizes=this.adunit.desktop_aps_sizes,this.adunit.pbjs_sizes=this.adunit.desktop_pbjs_sizes,this.placeWrapper(this.adunit)):this.adunit.is_mobile&&r89Data.config.is_mobile?(this.adunit.selector=this.adunit.selector_mobile,this.adunit.bidder=this.adunit.mobile_bidder,this.adunit.sizes=this.adunit.mobile_sizes,this.adunit.gpt_sizes=this.adunit.mobile_gpt_sizes,this.adunit.aps_sizes=this.adunit.mobile_aps_sizes,this.adunit.pbjs_sizes=this.adunit.mobile_pbjs_sizes,this.placeWrapper(this.adunit)):this.done():this.done()},placeWrapper:function(el){let selector_div=null,selector_split=el.selector.split(",");for(let i2=0;i20&&el.bidPBJS.push({code:id,mediaTypes:{banner:{sizes:el.pbjs_sizes}},bids:banner_bidders,adSlotId:r89.outstream.ad_slot_id}),el.bidPBJS.push({code:id,mediaTypes:{video:{context:"outstream",playerSize:[640,360],mimes:["video/mp4"],protocols:[1,2,3,4,5,6,7,8],playbackmethod:[2],skip:0,minduration:3,maxduration:120,linearity:1,api:[1,2],plcmt:4,renderer:{url:"https://tags.refinery89.com/video/js/renderV2.js",render:function(bidz){bidz.renderer.push((()=>{bidz.adLabel=1==r89.outstream.adunit.show_label?r89Data.config.ad_label_text:"",bidz.show_close_button=r89.outstream.adunit.show_close_button,bidz.scroll_position_mobile=r89.outstream.adunit.mobile_scrolling_position,bidz.scroll_position_desktop=r89.outstream.adunit.desktop_scrolling_position,bidz.is_scrollable=r89.outstream.adunit.corner_scroll,bidz.is_refresh=!1,bidz.deal_id_exceptions=outstreamConfig.deal_id_exception,bidz.line_item_exceptions=outstreamConfig.line_item_exception,r89VideoJS.renderAds(bidz)}))}}}},bids:video_bidders,adSlotId:r89.outstream.ad_slot_id})}googletag.cmd.push((function(){var slot=googletag.defineSlot(el.slot_name,el.gpt_sizes,el.id);slot.setTargeting("ad_slot","Outstream-Video");let floor=r89.helpers.getGAMFloor(r89.outstream.ad_slot_id);floor&&slot.setTargeting("flr",floor),slot.addService(googletag.pubads()),googletag.display(el.id),el.slot=slot})),r89.bids.outstream(el)}}else this.done()},done:function(){r89.adunits.updateCurrentBatch(),r89.adunits.placeBatch()}}}(r89Data),inImage:function inImage(){return{status:"uncalled",setStatus:function(status){this.status=status},getStatus:function(){return this.status},checkDevice:function(){return 1==r89Data.config.in_image.is_mobile&&1==r89Data.config.is_mobile||1==r89Data.config.in_image.is_desktop&&1==r89Data.config.is_desktop},checkSelector:function(){if(r89Data.config.in_image.selector){return null!==window.document.querySelector(r89Data.config.in_image.selector)}return!0},main:function(){if(r89.log("InImage: Main"),"uncalled"==r89.reset.getStatus()&&r89Data.config.in_image.active&&this.checkDevice()&&this.checkSelector()){r89.log("InImage: Insert");const script=document.createElement("script");script.src=r89Data.config.in_image.script,script.type="text/javascript",script.async=!0,window.document.head.appendChild(script),this.setStatus("loaded")}this.done()},done:function(){r89.log("InImage: Done"),this.setStatus("done"),r89.elasticNative.main()}}}(),elasticNative:function elasticNative({elastic_native:elasticNativeConfig}){return{status:"uncalled",setStatus:function(status){this.status=status},getStatus:function(){return this.status},adunit:elasticNativeConfig,viewTime:0,inView:!1,measureCalled:!1,intervalTime:2500,measuredTime:0,label:{text:"▼ Gesponsord",style:{color:"#999999",textAlign:"center",fontSize:"12px",lineHeight:"16px",margin:"0px 0px 15px 0px",padding:"4px 0 6px 5px",fontFamily:"Arial",borderBottom:"1px solid #ccc"}},main:function(){if(this.setStatus="called",this.adunit){r89.log("Elastic Native: Insert");let selector_div=null;const selector_split=this.adunit.selector.split(",");for(let i2=0;i2{entry.isIntersecting?r89.elasticNative.inView=!0:r89.elasticNative.inView=!1}))}),{rootMargin:"0px 0px 0px 0px",threshold:0}).observe(r89.elasticNative.adunit.wrapper);var inViewInterval=setInterval((function(){r89.elasticNative.inView&&(r89.elasticNative.measuredTime+=r89.elasticNative.intervalTime),!1===r89.elasticNative.measureCalled&&r89.elasticNative.measuredTime>=r89.elasticNative.viewTime&&(r89.elasticNative.callMeasure(),clearInterval(inViewInterval))}),r89.elasticNative.intervalTime)},callMeasure:function(){r89.log("Elastic: Refresh Tracking Slot"),googletag.cmd.push((function(){googletag.pubads().refresh([r89.elasticNative.gamMeasureSlot])})),r89.elasticNative.measureCalled=!0}}}(r89Data),customAdunits:function customAdunits({custom_adunits:customAdunitsConfig}){return{status:"uncalled",setStatus:function(status){this.status=status},getStatus:function(){return this.status},adunits:customAdunitsConfig,main:function(){r89.log("CustomAdunits: Main"),r89.events.trackFunction("customAdunitsCalled"),"uncalled"==r89.reset.getStatus()&&"uncalled"==this.getStatus()&&this.adunits.length>0&&r89.customAdunits.insert(),this.done()},insert:function(){if(r89.customAdunits.adunits.length>0){const adunits2=r89.customAdunits.adunits.filter((function(adunit){return!(!adunit.is_desktop||!r89Data.config.is_desktop)||!(!adunit.is_mobile||!r89Data.config.is_mobile)}));if(adunits2.length>0){adunits2.map((el=>el.code)).forEach((function(code){const script=document.createElement("script");script.innerHTML=code,document.head.appendChild(script)})),r89.events.trackFunction("customAdunitsLoaded")}}r89.customAdunits.setStatus("done")},done:function(){r89.log("CustomAdunits: Done"),this.setStatus("done"),r89.fallbackAdunits.main()}}}(r89Data),fallbackAdunits:function fallbackAdunits({fallbacks:fallbackAdUnitsConfig}){return{status:"uncalled",setStatus:function(status){this.status=status},getStatus:function(){return this.status},items:fallbackAdUnitsConfig,insertCount:0,main:function(){if(r89.log("Fallback: Main"),this.items.length>0){const configVars=[["minScreenWidth","min_screen_width"],["maxScreenWidth","max_screen_width"],["minScreenHeight","min_screen_height"],["maxScreenHeight","max_screen_height"],["lazyLoad","lazy_load_distance"],["sizes","sizes"]];r89.pushAd=function(divId,adunit,config){r89.log("Fallback: Insert "+adunit+" in #"+divId);const source=r89.fallbackAdunits.items.find((element=>element.div_id==adunit));if(!source)return void r89.log("Fallback: Ad unit not found.");r89.log("Fallback: Ad unit found.");const el=Object.assign({},source);el.selector=divId.replace("#",""),"object"==typeof config&&configVars.forEach((configVar=>{configVar[0]in config&&(el[configVar[1]]=config[configVar[0]],"lazy_load_distance"==configVar[1]&&config[configVar[0]]&&(el.lazy_load=1),"sizes"==configVar[1]&&(el.gpt_sizes=el.sizes,el.aps_sizes=el.sizes,el.pbjs_sizes=el.sizes))})),r89.fallbackAdunits.placeWrapper(el)},"object"==typeof r89.callAds&&r89.callAds.forEach((item=>{r89.pushAd(item[0],item[1],item[2])}))}this.done()},placeWrapper:function(el){let place=!1;if(null===el.min_screen_width&&null!==el.max_screen_width&&el.max_screen_width>=r89Data.config.viewport.width&&(place=!0),null===el.max_screen_width&&null!==el.min_screen_width&&el.min_screen_width<=r89Data.config.viewport.width&&(place=!0),null!==el.min_screen_width&&null!==el.max_screen_width&&el.min_screen_width<=r89Data.config.viewport.width&&el.max_screen_width>=r89Data.config.viewport.width&&(place=!0),!place)return r89.log("Fallback: Screen resolution requirements not met."),!1;r89.log("Fallback: Attempt to place "+el.div_id);const selector_div=document.getElementById(el.selector);if(!selector_div)return r89.log("Fallback: Selector div not found."),!1;r89.fallbackAdunits.insertCount++;const id=r89Data.config.prefix+el.div_id+"-"+r89.fallbackAdunits.insertCount,adunit=document.createElement("div");adunit.id=id;const wrapper2=document.createElement("div");if(wrapper2.id=id+"-wrapper","wrapper_style_parsed"in el&&Object.keys(el.wrapper_style_parsed).forEach((key=>{wrapper2.style[key]=el.wrapper_style_parsed[key]})),wrapper2.appendChild(adunit),selector_div.appendChild(wrapper2),el.id=id,el.wrapper=wrapper2,el.rendered=!1,el.viewable=!1,el.viewableTime=0,el.visible=!1,el.doRefresh=!1,el.refreshed=!1,el.isEmpty=!0,el.failedCount=0,el.has_amazon&&(el.bidAPS={slotID:id,sizes:el.aps_sizes,slotName:el.slot_name}),el.bidder&&el.bidder in r89Data.bidders){const mediaTypes={};el.pbjs_sizes.length>0&&(mediaTypes.banner={sizes:el.pbjs_sizes}),el.has_native&&(mediaTypes.native={type:"image"}),el.bidPBJS={code:id,mediaTypes:mediaTypes,bids:r89Data.bidders[el.bidder]}}googletag.cmd.push((function(){r89.log("Fallback: Place ad "+el.id);const slot=googletag.defineSlot(el.slot_name,el.gpt_sizes,el.id);slot.setTargeting("ad_slot",el.ad_slot.name),slot.addService(googletag.pubads()),googletag.display(el.id),el.slot=slot,r89.adunits.placedItems.fallback.push({...el}),el.lazy_load?r89.fallbackAdunits.lazyLoad(el):r89.fallbackAdunits.request(el)}))},request:function(el){"requestIdleCallback"in window?requestIdleCallback((function(){r89.bids.fallback(el)}),{timeout:250}):r89.bids.fallback(el)},lazyLoad:function(el){const options={rootMargin:"0px 0px "+el.lazy_load_distance+"px 0px",threshold:0};new IntersectionObserver((function(entries,observer2){entries.forEach((entry=>{entry.isIntersecting&&(r89.log("Fallback: Observed "+el.id),r89.fallbackAdunits.request(el),observer2.unobserve(entry.target))}))}),options).observe(el.wrapper)},done:function(){r89.log("Fallback: Done"),this.setStatus("done")}}}(r89Data),infiniteScroll:function infiniteScroll({adunits_infinite_scroll:infiniteScrollConfig,inimage_adunits:inImageConfig,inimage_bidders:inImageBiddersConfig}){return{status:"uncalled",setStatus:function(status){this.status=status},getStatus:function(){return this.status},selector:null,items:infiniteScrollConfig,placedItems:[],count:0,main:function(){r89.log("Infinite Scroll: Main"),this.load()},load:function(selector){if(r89.log("Infinite Scroll: Load"),++this.count,void 0===selector&&r89Data.config.infinite_scroll)this.selector=document.querySelector(r89Data.config.infinite_scroll.selector);else if("string"==typeof selector)this.selector=document.querySelector(selector);else{if("object"!=typeof selector)return void r89.log("Infinite Scroll: Selector not defined");this.selector=selector}null!=this.selector?(this.placedItems=[],this.items.forEach(this.placeWrapper,this),this.placedItems.forEach(this.placeAd,this),1===inImageConfig.active&&inImageBiddersConfig["InImage-R89"].length>0&&r89.inImageR89.main(!0),r89.bids.infiniteScroll()):r89.log("Infinite Scroll: Selector not found")},placeWrapper:function(el,index){if(!r89.helpers.checkScreenSize(r89Data,el))return!1;r89.log("Adunits: Attempt to place "+el.div_id);let selector_divs=[];if(el.selector_all)selector_divs=this.selector.querySelectorAll(el.selector);else{let selector_div=null;const selector_split=el.selector.split(",");for(let i2=0;i20?selector_divs.forEach((function(selector_div){const id=r89Data.config.prefix+el.div_id+"-infinite-"+this.count+"-"+count;++count;const adunit=document.createElement("div");adunit.id=id;const wrapper2=document.createElement("div");if(wrapper2.id=id+"-wrapper",el.wrapper_style_parsed&&Object.keys(el.wrapper_style_parsed).forEach((key=>{wrapper2.style[key]=el.wrapper_style_parsed[key]})),el.show_label){const ad_unit_label=document.createElement("div");ad_unit_label.className="r89-ad-label",ad_unit_label.innerHTML=r89Data.config.ad_label_text,r89Data.config.labelStyle&&Object.keys(r89Data.config.labelStyle).forEach((key=>{ad_unit_label.style[key]=r89Data.config.labelStyle[key]}));const ad_unit_label_wrapper=document.createElement("div");el.wrapper_sticky&&(ad_unit_label_wrapper.style.position="sticky",ad_unit_label_wrapper.style.top=r89Data.config.adunit_wrapper_sticky_top),ad_unit_label_wrapper.appendChild(ad_unit_label),wrapper2.appendChild(ad_unit_label_wrapper)}if(el.wrapper_sticky){const stickyWrapper=document.createElement("div");stickyWrapper.style.position="sticky",stickyWrapper.style.top=r89Data.config.adunit_wrapper_sticky_top,wrapper2.appendChild(stickyWrapper),stickyWrapper.appendChild(adunit)}else wrapper2.appendChild(adunit);if(r89Data.config.positionNames.includes(el.position.name)){if("insertBefore"==el.position.name?selector_div.parentNode.insertBefore(wrapper2,selector_div):"insertAfter"==el.position.name?null===selector_div.nextElementSibling?selector_div.parentNode.appendChild(wrapper2):selector_div.parentNode.insertBefore(wrapper2,selector_div.nextElementSibling):"appendChild"==el.position.name&&selector_div.appendChild(wrapper2),el.id=id,el.wrapper=wrapper2,el.rendered=!1,el.viewable=!1,el.viewableTime=0,el.visible=!1,el.doRefresh=!1,el.isIntersectingAt50=!1,el.failedCount=0,el.refreshed=!1,el.isEmpty=!0,el.has_amazon&&(el.bidAPS={slotID:id,sizes:el.aps_sizes,slotName:el.slot_name}),el.bidder&&el.bidder in r89Data.bidders){const mediaTypes={};el.pbjs_sizes.length>0&&(mediaTypes.banner={sizes:el.pbjs_sizes}),el.has_native&&(mediaTypes.native={type:"image"}),el.bidPBJS={code:id,mediaTypes:mediaTypes,bids:r89Data.bidders[el.bidder]}}this.placedItems.push({...el})}}),this):r89.log("Infinite Scroll: Selector not found "+el.div_id)},placeAd:function(el){googletag.cmd.push((function(){r89.log("Adunits: PlaceAd "+el.id);const slot=googletag.defineSlot(el.slot_name,el.gpt_sizes,el.id);slot.setTargeting("ad_slot",el.ad_slot.name),"object"==typeof r89.adunits.performance[el.gam_ad_unit]&&(slot.setTargeting("au_vb",r89.adunits.performance[el.gam_ad_unit].au_vb),slot.setTargeting("au_cb",r89.adunits.performance[el.gam_ad_unit].au_cb)),slot.addService(googletag.pubads()),googletag.display(el.id),el.slot=slot}))}}}(r89Data),inImageR89:function inImageR89({inimage_adunits:inImageAdsConfig,inimage_bidders:inImageBiddersConfig,seller:seller,gam_ad_unit:gamAdunit,gam_network_id:gamNetworkId}){return{main:function(infiniteScroll2=!1){try{if(r89.inimageR89={},!1===infiniteScroll2){r89.inImageR89.ads=[];let css_scripts=["https://tags.refinery89.com/static/css/inimage.css"];for(let i2=0;i20){let imageOrientation2=function(width,height){let category="horizontal";return category=width/height>1?["horizontal",horizontal_image_class]:["vertical",vertical_image_class],category};var adImages=[],inimageDivs=[];r89.inimageR89.FAILSAFE_TIMEOUT=2e3,r89.inimageR89.inimageAdunits=[],r89.inimageR89.targetingDivs="",r89.inimageR89.inimageAdunits=[],infiniteScroll2?r89.inimageR89.counter++:r89.inimageR89.counter=images.length;var horizontal_image_class=inImageAdsConfig.ad_units[0].horizontal_class_name,vertical_image_class=inImageAdsConfig.ad_units[0].vertical_class_name;vertical_image_class||(vertical_image_class="middle"),horizontal_image_class||(horizontal_image_class="bottom-right");for(let i2=0;i2=468?horizontalSizes:verticalSizes;let adSizes=[];for(let i2=0;i2\n\t\t\t\t\t\t \n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t \n\t\t\t\t\t\t \n\t\t\t\t\t ';return inImageAdsConfig.ad_units[0].show_label||(htmlLabel='\n\t\t\t\t\t\t
\n\t\t \n\t\t\t\t\t\t \n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t \n\t\t\t\t\t\t \n\t\t\t\t\t\t
'),htmlLabel},attachCloseButtonListeners:function(){document.querySelectorAll("[id^=remove-inimage-close-overlay-]").forEach((function(el){el.addEventListener("click",(function(){let identifier=el.id.slice(-1);document.getElementById("overlay-inimage-ad-"+identifier).remove(),el.closest(".r89-ad-label").remove()}))}))},destroyAdSlots:function(inimageSlot){googletag.destroySlots(inimageSlot)},attachLazyLoadObserver:function(el,infiniteScroll2){let options={};options=infiniteScroll2?{rootMargin:"0px 0px 20px 0px",threshold:0}:{rootMargin:"0px 0px 100px 0px",threshold:0};new IntersectionObserver((function(entries,observer2){entries.forEach((entry=>{if(entry.isIntersecting){const img=entry.target.getElementsByTagName("img");if(img.length){const min_img_height=inImageAdsConfig.ad_units[0].min_image_height,min_img_width=inImageAdsConfig.ad_units[0].min_image_width,imageSelected=img[0],identifier=entry.target.id.split("-")[2],imageHeight=imageSelected.offsetHeight,imageWidth=imageSelected.offsetWidth;if(imageWidth>min_img_width||imageHeight>min_img_height){let adSizes=r89.inImageR89.generateAdSizes(imageWidth,imageHeight);if(adSizes.length){if(0==inImageAdsConfig.ad_units[0].max_ads||r89.inImageR89.adsPlaced{try{let number=entry.target.id.split("-")[2];entry.isIntersecting?r89.inImageR89.ads["overlay-inimage-ad-"+number].intersecting=!0:r89.inImageR89.ads["overlay-inimage-ad-"+number].intersecting=!1,r89.log("PREPARED_SLOTS",r89.inImageR89.ads)}catch(err){r89.log(err)}}))}),{rootMargin:"0px",threshold:.5}).observe(document.querySelector("#r89-inimage-"+i2))},refreshInImageR89:function(){setInterval((function(){let keys=Object.keys(r89.inImageR89.ads);for(let i2=0;i2{event.slot.getSlotElementId().includes(slotId)&&event.isEmpty&&(r89.inImageR89.ads[event.slot.getSlotElementId()].viewable=!0)})),googletag.pubads().addEventListener("impressionViewable",(function(event){event.slot.getSlotElementId().includes(slotId)&&(r89.inImageR89.ads[event.slot.getSlotElementId()].viewable=!0)}))}}}(r89Data),video_overlay:function videoOverlay({video_overlay:videoOverlayConfig,gam_ad_unit:gamAdunit,gam_network_id:gamNetworkId}){return{main:function(){let player2,youtube_element=document.querySelectorAll('iframe[src*="youtube"][src*="/embed/"]');if(youtube_element.length>0){let bidForInstreamAndDisplayInstream2=function(auto_play,ad_type,ev=!1,i3){r89_pbjs.que.push((function(){r89_pbjs.addAdUnits(instreamAdUnitBids[0]),r89_pbjs.setConfig({userSync:{syncEnabled:!1},deviceAccess:!0,debug:!1,cache:{url:"https://prebid.adnxs.com/pbc/v1/cache"},instreamTracking:{enabled:!0},disableAjaxTimeout:!0,bidderTimeout:3e4,consentManagement:{gdpr:{cmpApi:"iab",timeout:1e4,allowAuctionWithoutConsent:!0}}}),r89_pbjs.requestBids({bidsBackHandler:function(){r89_pbjs.getHighestCpmBids(gamAdunit+"-Video-Overlay-Preroll-"+i3);const randNum=Math.floor(9999999*Math.random()).toString(),currentUrl=window.location.href,video_param={iu:"/"+gamNetworkId+"/"+gamAdunit+"/"+gamAdunit+"-Video-Overlay-Preroll",output:"vast",correlator:randNum,vpos:"preroll",wta:1,vpmute:0,vpa:"click",description_url:currentUrl,gdfp_req:1,env:"vp",sz:"640x480|640x360",cust_params:{tier:r89Data.config.demandTier,ad_slot:"Overlay-Video",website_id:r89Data.config.website_id.toString()}},videoUrl=r89_pbjs.adServers.dfp.buildVideoUrl({adUnit:instreamAdUnitBids[0],params:video_param});""!==videoUrl&&("mid-roll"===ad_type&&ev.target.pauseVideo(),initVideo(i3,videoUrl,auto_play,ad_type))}})}))},checkScript2=function(){if(void 0!==this.window.loaded||"undefined"==typeof videojs)setTimeout((function(){checkScript2()}),100);else for(let i3=0;i3{try{entry.isIntersecting?(r89_overlay_skipped_finished.includes(gamAdunit+"-Video-Overlay-Preroll-"+i3)&&(r89.log("STOP_OBSERVING",gamAdunit+"-Video-Overlay-Preroll-"+i3),observer2.unobserve(document.querySelector("#"+gamAdunit+"-Video-Overlay-Preroll-"+i3))),r89_overlay_played.includes(gamAdunit+"-Video-Overlay-Preroll-"+i3)?r89.log("ALREADY_ADDED",r89_overlay_played):(r89_overlay_played.push(gamAdunit+"-Video-Overlay-Preroll-"+i3),bidForInstreamAndDisplayInstream2(!1,"pre-roll",!1,i3))):r89.log("NOT_IN_VIEW")}catch(err){r89.log(err)}}))}),{rootMargin:"0px",threshold:1}).observe(document.querySelector("#"+gamAdunit+"-Video-Overlay-Preroll-"+i3))},assignExistingClasses2=function(element,classList){return element.className+=classList},setVideoAdUnit2=function(i3,ad_unit_name){if(instreamAdUnitCode.push(ad_unit_name+"-"+i3),r89.log("YT_ELEMENT",youtube_element[i3]),youtube_element[i3].previousElementSibling||youtube_element[i3].nextElementSibling){const grand_pa=youtube_element[i3].parentNode;var youtube_parent=document.createElement("div");youtube_element[i3].nextElementSibling?(grand_pa.insertBefore(youtube_parent,youtube_element[i3].nextElementSibling),youtube_parent.append(youtube_element[i3])):youtube_element[i3].previousElementSibling&&(grand_pa.insertBefore(youtube_parent,youtube_element[i3]),youtube_parent.append(youtube_element[i3]))}else youtube_parent=youtube_element[i3].parentNode;if(youtube_parent.id=instreamAdUnitCode[i3],0==youtube_parent.classList.length){const iframeWidth=youtube_element[i3].offsetWidth,iframeHeight=youtube_element[i3].offsetHeight;youtube_parent.style.width=iframeWidth+"px",youtube_parent.style.height=iframeHeight+"px"}youtube_parent.className+=" containerz-instream ";const video_div=document.createElement("div");video_div.id="video-instream"+i3,youtube_parent.appendChild(video_div);const match=youtube_element[i3].src.match(/.*(?:youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=)([^#\&\?]*).*/);match&&11==match[1].length&&match[1],prepareVideoBidders2(instreamAdUnitCode[i3])},prepareVideoBidders2=function(code){instreamAdUnitBids.push({code:code,divId:code,mediaTypes:{video:{context:"instream",playerSize:[640,360],mimes:["video/mp4","application/javascript"],protocols:[1,2,3,4,5,6,7],playbackmethod:[1,2,3],skip:1,linearity:1,api:[1,2,7,8,9],maxduration:30,minduration:0,startdelay:0,plcmt:1,placement:1,w:640,h:480}},bids:videoOverlayConfig.bidders})};const js_scripts=["https://imasdk.googleapis.com/js/sdkloader/ima3.js","https://tags.refinery89.com/video/js/video1.min.js","https://tags.refinery89.com/video/js/video2.min.js","https://tags.refinery89.com/video/js/video3.js","https://www.youtube.com/iframe_api"],css_scripts=["https://tags.refinery89.com/video/css/video2.min.css","https://tags.refinery89.com/video/css/video3.css"];for(var i2=0;i2\n \n \n `;document.getElementById(instreamAdUnitCode[i3]).insertAdjacentHTML("afterbegin",playerHTML);const real_height=document.getElementById("removeable-instream-div-"+i3).offsetHeight,real_width=youtube_element[i3].offsetWidth;real_width>0&&(document.getElementById("removeable-instream-div-"+i3).style.width=real_width+"px"),document.getElementById("removeable-instream-div-"+i3).style.height=real_height>0?real_height+"px":"100%";try{let onPlayerStateChange2=function(event2){if(Math.floor(player2.getDuration())>30){if(videoOverlayConfig["mid-roll"].active&&1===event2.r89Data){const total_length=Math.floor(player2.getDuration()),mid_point=Math.floor(total_length/2);var interval=setInterval((function(){Math.floor(player2.getCurrentTime())===mid_point?(clearInterval(interval),bidForInstreamAndDisplayInstream2(!0,"mid-roll",event2)):r89.log("WAITING")}),1e3)}videoOverlayConfig["post-roll"].active&&0===event2.r89Data&&bidForInstreamAndDisplayInstream2(!0,"post-roll")}else r89.log("VIDEO_NOT_LONG_ENOUGH_FOR_MID_ROLL_AND_POST_ROLL")},onPlayerReady2=function(event2){null===event2.r89Data&&0==videoOverlayConfig.autoplay&&(r89.log("PLAYING"),event2.target.playVideo())};const player=videojs("content_instream_video_"+i3);player.ima({id:"content_instream_video_"+i3,adTagUrl:vastXML,debug:!1}),player.playsinline(!0);let startEvent="click";(navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPad/i)||navigator.userAgent.match(/Android/i))&&(startEvent="touchend"),document.getElementsByClassName("placeholder-instream-"+i3)[0].addEventListener("click",(function(){const wrapperDiv=document.getElementById("content_instream_video_"+i3);wrapperDiv.addEventListener(startEvent,initAdDisplayContainer(wrapperDiv))}));var initAdDisplayContainer=function(wrapperDiv=!1){player.ima.initializeAdDisplayContainer(),wrapperDiv.removeEventListener(startEvent,initAdDisplayContainer)};player.src("https://tags.refinery89.com/video/video/ads.mp4"),(auto_play||videoOverlayConfig.autoplay&&"pre-roll"==ad_type)&&player.on("adsready",(function(){"pre-roll"===ad_type&&player.muted(!0);const promise=player.play();void 0!==promise&&promise.then((_=>{})).catch((error=>{r89.log("AUTO_PLAY_ERROR",error)}))}));const contentPlayer=document.getElementById("content_instream_video_"+i3+"_html5_api");(navigator.userAgent.match(/iPad/i)||navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/Android/i))&&contentPlayer.hasAttribute("controls")&&contentPlayer.removeAttribute("controls"),player.on("adserror",(function(response){r89_overlay_skipped_finished.push(gamAdunit+"-Video-Overlay-Preroll-"+i3),document.getElementById("removeable-instream-div-"+i3).remove(),"pre-roll"===ad_type&&(player2=new YT.Player("video-instream"+i3,{height:youtube_element[0].height,width:youtube_element[0].width,videoId:video_id,playerVars:{autoplay:0,origin:window.location.origin},events:{onStateChange:onPlayerStateChange2}})),youtube_element[i3].className.length>0&&assignExistingClasses2(document.getElementById("video-instream"+i3),youtube_element[i3].className),youtube_element[i3].remove(),!1===player.isDisposed()&&player.dispose()})),player.on("ads-manager",(function(response){const adsManager=response.adsManager;adsManager.addEventListener(google.ima.AdEvent.Type.COMPLETE,(function(){adsManager.destroy(),r89_overlay_skipped_finished.push(gamAdunit+"-Video-Overlay-Preroll-"+i3),document.getElementById("removeable-instream-div-"+i3).remove(),"pre-roll"===ad_type&&(player2=new YT.Player("video-instream"+i3,{height:youtube_element[0].height,width:youtube_element[0].width,videoId:video_id,playerVars:{autoplay:0,origin:window.location.origin},events:{onStateChange:onPlayerStateChange2,onReady:onPlayerReady2}})),youtube_element[i3].className.length>0&&assignExistingClasses2(document.getElementById("video-instream"+i3),youtube_element[i3].className),youtube_element[i3].remove(),0==player.isDisposed()&&player.dispose()})),adsManager.addEventListener(google.ima.AdEvent.Type.SKIPPED,(function(){adsManager.destroy(),r89_overlay_skipped_finished.push(gamAdunit+"-Video-Overlay-Preroll-"+i3),document.getElementById("removeable-instream-div-"+i3).remove(),"pre-roll"===ad_type&&(player2=new YT.Player("video-instream"+i3,{height:youtube_element[0].height,width:youtube_element[0].width,videoId:video_id,playerVars:{autoplay:0,origin:window.location.origin},events:{onStateChange:onPlayerStateChange2,onReady:onPlayerReady2}})),youtube_element[i3].className.length>0&&assignExistingClasses2(document.getElementById("video-instream"+i3),youtube_element[i3].className),youtube_element[i3].remove(),0==player.isDisposed()&&player.dispose()}))}))}catch(err){r89.log(err)}})}checkScript2(),document.addEventListener("DOMContentLoaded",(function(event){document.getElementsByClassName("containerz-instream")[0].getElementsByClassName.display="block"}))}else r89.log("NO_YOUTUBE_TAGS_FOUND")}}}(r89Data),reload:function reload(){r89.reset.main()},skin:function skin(){return{addBackground:function(backgroundImage,backgroundColor,backgroundAttachment){if(!r89Data.config.skin.active)return!1;void 0===backgroundColor&&(backgroundColor="#000000"),void 0===backgroundAttachment&&(backgroundAttachment="scroll"),document.body.style.backgroundColor=backgroundColor,document.body.style.backgroundImage="url("+backgroundImage+")",document.body.style.backgroundPosition="center "+r89Data.config.skin.backgroundTopOffset+"px",document.body.style.backgroundRepeat="no-repeat",document.body.style.backgroundSize="auto",document.body.style.setProperty("background-attachment",backgroundAttachment,"important")},addSidelinks:function(link){if(!r89Data.config.skin.active||!r89Data.config.skin.sidelinksMargin)return!1;let left=document.createElement("a");left.href=link,left.target="_blank",left.style.width="720px",left.style.position="fixed",left.style.top=r89Data.config.skin.backgroundTopOffset+"px",left.style.bottom=0,left.style.right="50%",left.style.marginRight=r89Data.config.skin.sidelinksMargin+"px",left.style.pointer="cursor",left.style.zIndex="9",document.body.appendChild(left);let right=document.createElement("a");right.href=link,right.target="_blank",right.style.width="720px",right.style.position="fixed",right.style.top=r89Data.config.skin.backgroundTopOffset+"px",right.style.bottom=0,right.style.left="50%",right.style.marginLeft=r89Data.config.skin.sidelinksMargin+"px",right.style.pointer="cursor",right.style.zIndex="9",document.body.appendChild(right)}}}(),addSkin:(backgroundImage,backgroundColor,backgroundAttachment)=>r89.skin.addBackground(backgroundImage,backgroundColor,backgroundAttachment),addSkinLinks:link=>r89.skin.addSidelinks(link),contextual:function contextual(){return{status:"uncalled",setStatus:function(status){r89.log("Contextual: setStatus "+status),this.status=status},getStatus:function(){return this.status},checkDomain:function(){let host=window.location.hostname.split(".");return!(host.length<=1)&&("www"===host[0]&&host.shift(),host=host.join("."),host===r89Data.config.website_base_url)},createHash:function(pageUrl){const normalizedUrl=pageUrl.replace(/[^a-zA-Z0-9\/:_\-\.]/g,"");return r89.log("Contextual: Page URL - "+normalizedUrl),SHA256(normalizedUrl).toString(encHex)},main:function(){if(!this.checkDomain())return r89.log("Contextual: Domain does not match."),!1;this.setStatus("called");let pageUrl=window.location.protocol+"//"+window.location.hostname+window.location.pathname;fetch("https://contextual.refinery89.com/"+r89Data.config.website_id+"/"+this.createHash(pageUrl)+".json",{redirect:"follow"}).then((response=>{if(!response.ok)throw Error(response.statusText);return response})).then((response=>response.json())).then((result=>{r89.log("Contextual: Received response."),result.hasOwnProperty("categories")&&(r89Data.config.contextual.pageIabCategories=Object.keys(result.categories)),result.hasOwnProperty("topics")&&(r89Data.config.contextual.pageTopics=result.topics.slice(0,10)),result.hasOwnProperty("brand_safety")&&(null==result.brand_safety?r89Data.config.contextual.brandSafe=null:r89Data.config.contextual.brandSafe=result.brand_safety.toString()),this.setStatus("done")})).catch((error=>console.log("error",error)))}}}()}),function adBlockRecovery({google_adblock_recovery:googleAdblockRecovery}){if(googleAdblockRecovery){let fcm=document.createElement("script");fcm.src="https://fundingchoicesmessages.google.com/i/pub-0679975395820445?ers=1",fcm.async=!0,fcm.setAttribute("nonce","r3r4czhX6LDvt0VkL0qcMg"),document.head.appendChild(fcm);let script=document.createElement("script");script.setAttribute("nonce","r3r4czhX6LDvt0VkL0qcMg"),script.innerHTML="(function() {function signalGooglefcPresent() {if (!window.frames['googlefcPresent']) {if (document.body) {const iframe = document.createElement('iframe'); iframe.style = 'width: 0; height: 0; border: none; z-index: -1000; left: -1000px; top: -1000px;'; iframe.style.display = 'none'; iframe.name = 'googlefcPresent'; document.body.appendChild(iframe);} else {setTimeout(signalGooglefcPresent, 0);}}}signalGooglefcPresent();})();",document.head.appendChild(script);let script2=document.createElement("script");script2.innerHTML='(function(){\'use strict\';function aa(a){var b=0;return function(){return b>11&1023;return 0===a?536870912:a};var M={};function N(a){return null!==a&&"object"===typeof a&&!Array.isArray(a)&&a.constructor===Object}var O,ya=[];I(ya,39);O=Object.freeze(ya);var P;function Q(a,b){P=b;a=new a(b);P=void 0;return a}\n function R(a,b,c){null==a&&(a=P);P=void 0;if(null==a){var d=96;c?(a=[c],d|=512):a=[];b&&(d=d&-2095105|(b&1023)<<11)}else{if(!Array.isArray(a))throw Error();d=H(a);if(d&64)return a;d|=64;if(c&&(d|=512,c!==a[0]))throw Error();a:{c=a;var e=c.length;if(e){var f=e-1,g=c[f];if(N(g)){d|=256;b=(d>>9&1)-1;e=f-b;1024<=e&&(za(c,b,g),e=1023);d=d&-2095105|(e&1023)<<11;break a}}b&&(g=(d>>9&1)-1,b=Math.max(b,e-g),1024e;e++){var f=c.concat(d[e].split(""));sa[e]=f;for(var g=0;g>2];k=b[(k&3)<<4|w>>4];w=b[(w&15)<<2|h>>6];h=b[h&63];c[e++]=g+k+w+h}g=0;h=d;switch(a.length-f){case 2:g=a[f+1],h=b[(g&15)<<2]||d;case 1:a=a[f],c[e]=b[a>>2]+b[(a&3)<<4|g>>4]+h+d}a=c.join("")}return a}}return a};function Ba(a,b,c){a=Array.prototype.slice.call(a);var d=a.length,e=b&256?a[d-1]:void 0;d+=e?-1:0;for(b=b&512?1:0;b=L(b)){if(b&256)return a[a.length-1][c]}else{var e=a.length;if(d&&b&256&&(d=a[e-1][c],null!=d))return d;b=c+((b>>9&1)-1);if(b=f||e){e=b;if(b&256)f=a[a.length-1];else{if(null==d)return;f=a[f+((b>>9&1)-1)]={};e|=256}f[c]=d;e&=-1025;e!==b&&I(a,e)}else a[c+((b>>9&1)-1)]=d,b&256&&(d=a[a.length-1],c in d&&delete d[c]),b&1024&&I(a,b&-1025)}\n function La(a,b){var c=Ma;var d=void 0===d?!1:d;var e=a.h;var f=J(e),g=Ja(e,f,b,d);var h=!1;if(null==g||"object"!==typeof g||(h=Array.isArray(g))||g.s!==M)if(h){var k=h=H(g);0===k&&(k|=f&32);k|=f&2;k!==h&&I(g,k);c=new c(g)}else c=void 0;else c=g;c!==g&&null!=c&&Ka(e,f,b,c,d);e=c;if(null==e)return e;a=a.h;f=J(a);f&2||(g=e,c=g.h,h=J(c),g=h&2?Q(g.constructor,Ha(c,h,!1)):g,g!==e&&(e=g,Ka(a,f,b,e,d)));return e}function Na(a,b){a=Ia(a,b);return null==a||"string"===typeof a?a:void 0}\n function Oa(a,b){a=Ia(a,b);return null!=a?a:0}function S(a,b){a=Na(a,b);return null!=a?a:""};function T(a,b,c){this.h=R(a,b,c)}T.prototype.toJSON=function(){var a=Ea(this.h,Fa,void 0,void 0,!1,!1);return Pa(this,a,!0)};T.prototype.s=M;T.prototype.toString=function(){return Pa(this,this.h,!1).toString()};\n function Pa(a,b,c){var d=a.constructor.v,e=L(J(c?a.h:b)),f=!1;if(d){if(!c){b=Array.prototype.slice.call(b);var g;if(b.length&&N(g=b[b.length-1]))for(f=0;f=e){Object.assign(b[b.length-1]={},g);break}f=!0}e=b;c=!c;g=J(a.h);a=L(g);g=(g>>9&1)-1;for(var h,k,w=0;w=b||null!=a.g&&0!=a.g.offsetHeight&&0!=a.g.offsetWidth||(ib(a),fb(a),p.setTimeout(function(){return gb(a,b-1)},50))}\n function ib(a){var b=a.j;var c="undefined"!=typeof Symbol&&Symbol.iterator&&b[Symbol.iterator];if(c)b=c.call(b);else if("number"==typeof b.length)b={next:aa(b)};else throw Error(String(b)+" is not an iterable or ArrayLike");for(c=b.next();!c.done;c=b.next())(c=c.value)&&c.parentNode&&c.parentNode.removeChild(c);a.j=[];(b=a.g)&&b.parentNode&&b.parentNode.removeChild(b);a.g=null};function jb(a,b,c,d,e){function f(k){document.body?g(document.body):0r89.load.contentLoaded(),Scroll:()=>window.addEventListener("scroll",r89.load.scroll),Delayed3Seconds:()=>setTimeout(r89.load.contentLoaded,3e3),PublisherCall:()=>{!0===r89.pubInit&&(r89.log("Init: PubInit = true"),r89.initialize())}};initModes[r89Data.init_on]?initModes[r89Data.init_on]():initModes.ContentLoaded();let aup_script=document.createElement("script");aup_script.src=`https://tags.refinery89.com/performance/${r89Data.config.website_id}.js`,aup_script.type="text/javascript",aup_script.async=!0,window.document.head.appendChild(aup_script),r89Data.config.contextual.active&&r89.contextual.main(),r89.pushAdsCount=1,r89.pushAds=function pushAds(){const attributes=["minScreenWidth","maxScreenWidth","minScreenHeight","maxScreenHeight","lazyLoad","sizes"];let adunits2=document.querySelectorAll(".r89-ad");for(let i2=0;i2=position) + { + afixer.className = "fixed"; + adecaler.className = "decale"; + } + else + { + afixer.className=""; + adecaler.className=""; + } + + // Ne fixer la pub que si la taille de l'écran est suffisante.... + console.log(windowHeight); + + if ( (currentScroll>=positionpub-100) && (windowHeight>=800) ) + { + afixerpub.className="fixedpub"; + } + else + { + afixerpub.className=""; + } +} + +addEventListener("scroll", scrolled, false); +/* +*/ diff --git a/Ma feuille d'exercice2 - Bibm@th.net_files/MathJax.js.téléchargement b/Ma feuille d'exercice2 - Bibm@th.net_files/MathJax.js.téléchargement new file mode 100644 index 0000000..b77df92 --- /dev/null +++ b/Ma feuille d'exercice2 - Bibm@th.net_files/MathJax.js.téléchargement @@ -0,0 +1,19 @@ +/* + * /MathJax.js + * + * Copyright (c) 2009-2017 The MathJax Consortium + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +if(document.getElementById&&document.childNodes&&document.createElement){if(!(window.MathJax&&MathJax.Hub)){if(window.MathJax){window.MathJax={AuthorConfig:window.MathJax}}else{window.MathJax={}}MathJax.isPacked=true;MathJax.version="2.7.1";MathJax.fileversion="2.7.1";MathJax.cdnVersion="2.7.1";MathJax.cdnFileVersions={};(function(d){var b=window[d];if(!b){b=window[d]={}}var e=[];var c=function(f){var g=f.constructor;if(!g){g=function(){}}for(var h in f){if(h!=="constructor"&&f.hasOwnProperty(h)){g[h]=f[h]}}return g};var a=function(){return function(){return arguments.callee.Init.call(this,arguments)}};b.Object=c({constructor:a(),Subclass:function(f,h){var g=a();g.SUPER=this;g.Init=this.Init;g.Subclass=this.Subclass;g.Augment=this.Augment;g.protoFunction=this.protoFunction;g.can=this.can;g.has=this.has;g.isa=this.isa;g.prototype=new this(e);g.prototype.constructor=g;g.Augment(f,h);return g},Init:function(f){var g=this;if(f.length===1&&f[0]===e){return g}if(!(g instanceof f.callee)){g=new f.callee(e)}return g.Init.apply(g,f)||g},Augment:function(f,g){var h;if(f!=null){for(h in f){if(f.hasOwnProperty(h)){this.protoFunction(h,f[h])}}if(f.toString!==this.prototype.toString&&f.toString!=={}.toString){this.protoFunction("toString",f.toString)}}if(g!=null){for(h in g){if(g.hasOwnProperty(h)){this[h]=g[h]}}}return this},protoFunction:function(g,f){this.prototype[g]=f;if(typeof f==="function"){f.SUPER=this.SUPER.prototype}},prototype:{Init:function(){},SUPER:function(f){return f.callee.SUPER},can:function(f){return typeof(this[f])==="function"},has:function(f){return typeof(this[f])!=="undefined"},isa:function(f){return(f instanceof Object)&&(this instanceof f)}},can:function(f){return this.prototype.can.call(this,f)},has:function(f){return this.prototype.has.call(this,f)},isa:function(g){var f=this;while(f){if(f===g){return true}else{f=f.SUPER}}return false},SimpleSUPER:c({constructor:function(f){return this.SimpleSUPER.define(f)},define:function(f){var h={};if(f!=null){for(var g in f){if(f.hasOwnProperty(g)){h[g]=this.wrap(g,f[g])}}if(f.toString!==this.prototype.toString&&f.toString!=={}.toString){h.toString=this.wrap("toString",f.toString)}}return h},wrap:function(i,h){if(typeof(h)!=="function"||!h.toString().match(/\.\s*SUPER\s*\(/)){return h}var g=function(){this.SUPER=g.SUPER[i];try{var f=h.apply(this,arguments)}catch(j){delete this.SUPER;throw j}delete this.SUPER;return f};g.toString=function(){return h.toString.apply(h,arguments)};return g}})});b.Object.isArray=Array.isArray||function(f){return Object.prototype.toString.call(f)==="[object Array]"};b.Object.Array=Array})("MathJax");(function(BASENAME){var BASE=window[BASENAME];if(!BASE){BASE=window[BASENAME]={}}var isArray=BASE.Object.isArray;var CALLBACK=function(data){var cb=function(){return arguments.callee.execute.apply(arguments.callee,arguments)};for(var id in CALLBACK.prototype){if(CALLBACK.prototype.hasOwnProperty(id)){if(typeof(data[id])!=="undefined"){cb[id]=data[id]}else{cb[id]=CALLBACK.prototype[id]}}}cb.toString=CALLBACK.prototype.toString;return cb};CALLBACK.prototype={isCallback:true,hook:function(){},data:[],object:window,execute:function(){if(!this.called||this.autoReset){this.called=!this.autoReset;return this.hook.apply(this.object,this.data.concat([].slice.call(arguments,0)))}},reset:function(){delete this.called},toString:function(){return this.hook.toString.apply(this.hook,arguments)}};var ISCALLBACK=function(f){return(typeof(f)==="function"&&f.isCallback)};var EVAL=function(code){return eval.call(window,code)};var TESTEVAL=function(){EVAL("var __TeSt_VaR__ = 1");if(window.__TeSt_VaR__){try{delete window.__TeSt_VaR__}catch(error){window.__TeSt_VaR__=null}}else{if(window.execScript){EVAL=function(code){BASE.__code=code;code="try {"+BASENAME+".__result = eval("+BASENAME+".__code)} catch(err) {"+BASENAME+".__result = err}";window.execScript(code);var result=BASE.__result;delete BASE.__result;delete BASE.__code;if(result instanceof Error){throw result}return result}}else{EVAL=function(code){BASE.__code=code;code="try {"+BASENAME+".__result = eval("+BASENAME+".__code)} catch(err) {"+BASENAME+".__result = err}";var head=(document.getElementsByTagName("head"))[0];if(!head){head=document.body}var script=document.createElement("script");script.appendChild(document.createTextNode(code));head.appendChild(script);head.removeChild(script);var result=BASE.__result;delete BASE.__result;delete BASE.__code;if(result instanceof Error){throw result}return result}}}TESTEVAL=null};var USING=function(args,i){if(arguments.length>1){if(arguments.length===2&&!(typeof arguments[0]==="function")&&arguments[0] instanceof Object&&typeof arguments[1]==="number"){args=[].slice.call(args,i)}else{args=[].slice.call(arguments,0)}}if(isArray(args)&&args.length===1){args=args[0]}if(typeof args==="function"){if(args.execute===CALLBACK.prototype.execute){return args}return CALLBACK({hook:args})}else{if(isArray(args)){if(typeof(args[0])==="string"&&args[1] instanceof Object&&typeof args[1][args[0]]==="function"){return CALLBACK({hook:args[1][args[0]],object:args[1],data:args.slice(2)})}else{if(typeof args[0]==="function"){return CALLBACK({hook:args[0],data:args.slice(1)})}else{if(typeof args[1]==="function"){return CALLBACK({hook:args[1],object:args[0],data:args.slice(2)})}}}}else{if(typeof(args)==="string"){if(TESTEVAL){TESTEVAL()}return CALLBACK({hook:EVAL,data:[args]})}else{if(args instanceof Object){return CALLBACK(args)}else{if(typeof(args)==="undefined"){return CALLBACK({})}}}}}throw Error("Can't make callback from given data")};var DELAY=function(time,callback){callback=USING(callback);callback.timeout=setTimeout(callback,time);return callback};var WAITFOR=function(callback,signal){callback=USING(callback);if(!callback.called){WAITSIGNAL(callback,signal);signal.pending++}};var WAITEXECUTE=function(){var signals=this.signal;delete this.signal;this.execute=this.oldExecute;delete this.oldExecute;var result=this.execute.apply(this,arguments);if(ISCALLBACK(result)&&!result.called){WAITSIGNAL(result,signals)}else{for(var i=0,m=signals.length;i0&&priority=0;i--){this.hooks.splice(i,1)}this.remove=[]}});var EXECUTEHOOKS=function(hooks,data,reset){if(!hooks){return null}if(!isArray(hooks)){hooks=[hooks]}if(!isArray(data)){data=(data==null?[]:[data])}var handler=HOOKS(reset);for(var i=0,m=hooks.length;ig){g=document.styleSheets.length}if(!i){i=document.head||((document.getElementsByTagName("head"))[0]);if(!i){i=document.body}}return i};var f=[];var c=function(){for(var k=0,j=f.length;k=this.timeout){i(this.STATUS.ERROR);return 1}return 0},file:function(j,i){if(i<0){a.Ajax.loadTimeout(j)}else{a.Ajax.loadComplete(j)}},execute:function(){this.hook.call(this.object,this,this.data[0],this.data[1])},checkSafari2:function(i,j,k){if(i.time(k)){return}if(document.styleSheets.length>j&&document.styleSheets[j].cssRules&&document.styleSheets[j].cssRules.length){k(i.STATUS.OK)}else{setTimeout(i,i.delay)}},checkLength:function(i,l,n){if(i.time(n)){return}var m=0;var j=(l.sheet||l.styleSheet);try{if((j.cssRules||j.rules||[]).length>0){m=1}}catch(k){if(k.message.match(/protected variable|restricted URI/)){m=1}else{if(k.message.match(/Security error/)){m=1}}}if(m){setTimeout(a.Callback([n,i.STATUS.OK]),0)}else{setTimeout(i,i.delay)}}},loadComplete:function(i){i=this.fileURL(i);var j=this.loading[i];if(j&&!j.preloaded){a.Message.Clear(j.message);clearTimeout(j.timeout);if(j.script){if(f.length===0){setTimeout(c,0)}f.push(j.script)}this.loaded[i]=j.status;delete this.loading[i];this.addHook(i,j.callback)}else{if(j){delete this.loading[i]}this.loaded[i]=this.STATUS.OK;j={status:this.STATUS.OK}}if(!this.loadHooks[i]){return null}return this.loadHooks[i].Execute(j.status)},loadTimeout:function(i){if(this.loading[i].timeout){clearTimeout(this.loading[i].timeout)}this.loading[i].status=this.STATUS.ERROR;this.loadError(i);this.loadComplete(i)},loadError:function(i){a.Message.Set(["LoadFailed","File failed to load: %1",i],null,2000);a.Hub.signal.Post(["file load error",i])},Styles:function(k,l){var i=this.StyleString(k);if(i===""){l=a.Callback(l);l()}else{var j=document.createElement("style");j.type="text/css";this.head=h(this.head);this.head.appendChild(j);if(j.styleSheet&&typeof(j.styleSheet.cssText)!=="undefined"){j.styleSheet.cssText=i}else{j.appendChild(document.createTextNode(i))}l=this.timer.create.call(this,l,j)}return l},StyleString:function(n){if(typeof(n)==="string"){return n}var k="",o,m;for(o in n){if(n.hasOwnProperty(o)){if(typeof n[o]==="string"){k+=o+" {"+n[o]+"}\n"}else{if(a.Object.isArray(n[o])){for(var l=0;l="0"&&q<="9"){f[j]=p[f[j]-1];if(typeof f[j]==="number"){f[j]=this.number(f[j])}}else{if(q==="{"){q=f[j].substr(1);if(q>="0"&&q<="9"){f[j]=p[f[j].substr(1,f[j].length-2)-1];if(typeof f[j]==="number"){f[j]=this.number(f[j])}}else{var k=f[j].match(/^\{([a-z]+):%(\d+)\|(.*)\}$/);if(k){if(k[1]==="plural"){var d=p[k[2]-1];if(typeof d==="undefined"){f[j]="???"}else{d=this.plural(d)-1;var h=k[3].replace(/(^|[^%])(%%)*%\|/g,"$1$2%\uEFEF").split(/\|/);if(d>=0&&d=3){c.push([f[0],f[1],this.processSnippet(g,f[2])])}else{c.push(e[d])}}}}else{c.push(e[d])}}return c},markdownPattern:/(%.)|(\*{1,3})((?:%.|.)+?)\2|(`+)((?:%.|.)+?)\4|\[((?:%.|.)+?)\]\(([^\s\)]+)\)/,processMarkdown:function(b,h,d){var j=[],e;var c=b.split(this.markdownPattern);var g=c[0];for(var f=1,a=c.length;f1?d[1]:""));f=null}if(e&&(!b.preJax||d)){c.nodeValue=c.nodeValue.replace(b.postJax,(e.length>1?e[1]:""))}if(f&&!f.nodeValue.match(/\S/)){f=f.previousSibling}}if(b.preRemoveClass&&f&&f.className===b.preRemoveClass){a.MathJax.preview=f}a.MathJax.checked=1},processInput:function(a){var b,i=MathJax.ElementJax.STATE;var h,e,d=a.scripts.length;try{while(a.ithis.processUpdateTime&&a.i1){d.jax[a.outputJax].push(b)}b.MathJax.state=c.OUTPUT},prepareOutput:function(c,f){while(c.jthis.processUpdateTime&&h.i=0;q--){if((b[q].src||"").match(f)){s.script=b[q].innerHTML;if(RegExp.$2){var t=RegExp.$2.substr(1).split(/\&/);for(var p=0,l=t.length;p=parseInt(y[z])}}return true},Select:function(j){var i=j[d.Browser];if(i){return i(d.Browser)}return null}};var e=k.replace(/^Mozilla\/(\d+\.)+\d+ /,"").replace(/[a-z][-a-z0-9._: ]+\/\d+[^ ]*-[^ ]*\.([a-z][a-z])?\d+ /i,"").replace(/Gentoo |Ubuntu\/(\d+\.)*\d+ (\([^)]*\) )?/,"");d.Browser=d.Insert(d.Insert(new String("Unknown"),{version:"0.0"}),a);for(var v in a){if(a.hasOwnProperty(v)){if(a[v]&&v.substr(0,2)==="is"){v=v.slice(2);if(v==="Mac"||v==="PC"){continue}d.Browser=d.Insert(new String(v),a);var r=new RegExp(".*(Version/| Trident/.*; rv:)((?:\\d+\\.)+\\d+)|.*("+v+")"+(v=="MSIE"?" ":"/")+"((?:\\d+\\.)*\\d+)|(?:^|\\(| )([a-z][-a-z0-9._: ]+|(?:Apple)?WebKit)/((?:\\d+\\.)+\\d+)");var u=r.exec(e)||["","","","unknown","0.0"];d.Browser.name=(u[1]!=""?v:(u[3]||u[5]));d.Browser.version=u[2]||u[4]||u[6];break}}}try{d.Browser.Select({Safari:function(j){var i=parseInt((String(j.version).split("."))[0]);if(i>85){j.webkit=j.version}if(i>=538){j.version="8.0"}else{if(i>=537){j.version="7.0"}else{if(i>=536){j.version="6.0"}else{if(i>=534){j.version="5.1"}else{if(i>=533){j.version="5.0"}else{if(i>=526){j.version="4.0"}else{if(i>=525){j.version="3.1"}else{if(i>500){j.version="3.0"}else{if(i>400){j.version="2.0"}else{if(i>85){j.version="1.0"}}}}}}}}}}j.webkit=(navigator.appVersion.match(/WebKit\/(\d+)\./))[1];j.isMobile=(navigator.appVersion.match(/Mobile/i)!=null);j.noContextMenu=j.isMobile},Firefox:function(j){if((j.version==="0.0"||k.match(/Firefox/)==null)&&navigator.product==="Gecko"){var m=k.match(/[\/ ]rv:(\d+\.\d.*?)[\) ]/);if(m){j.version=m[1]}else{var i=(navigator.buildID||navigator.productSub||"0").substr(0,8);if(i>="20111220"){j.version="9.0"}else{if(i>="20111120"){j.version="8.0"}else{if(i>="20110927"){j.version="7.0"}else{if(i>="20110816"){j.version="6.0"}else{if(i>="20110621"){j.version="5.0"}else{if(i>="20110320"){j.version="4.0"}else{if(i>="20100121"){j.version="3.6"}else{if(i>="20090630"){j.version="3.5"}else{if(i>="20080617"){j.version="3.0"}else{if(i>="20061024"){j.version="2.0"}}}}}}}}}}}}j.isMobile=(navigator.appVersion.match(/Android/i)!=null||k.match(/ Fennec\//)!=null||k.match(/Mobile/)!=null)},Chrome:function(i){i.noContextMenu=i.isMobile=!!navigator.userAgent.match(/ Mobile[ \/]/)},Opera:function(i){i.version=opera.version()},Edge:function(i){i.isMobile=!!navigator.userAgent.match(/ Phone/)},MSIE:function(j){j.isMobile=!!navigator.userAgent.match(/ Phone/);j.isIE9=!!(document.documentMode&&(window.performance||window.msPerformance));MathJax.HTML.setScriptBug=!j.isIE9||document.documentMode<9;MathJax.Hub.msieHTMLCollectionBug=(document.documentMode<9);if(document.documentMode<10&&!s.params.NoMathPlayer){try{new ActiveXObject("MathPlayer.Factory.1");j.hasMathPlayer=true}catch(m){}try{if(j.hasMathPlayer){var i=document.createElement("object");i.id="mathplayer";i.classid="clsid:32F66A20-7614-11D4-BD11-00104BD3F987";g.appendChild(i);document.namespaces.add("m","http://www.w3.org/1998/Math/MathML");j.mpNamespace=true;if(document.readyState&&(document.readyState==="loading"||document.readyState==="interactive")){document.write('');j.mpImported=true}}else{document.namespaces.add("mjx_IE_fix","http://www.w3.org/1999/xlink")}}catch(m){}}}})}catch(c){console.error(c.message)}d.Browser.Select(MathJax.Message.browsers);if(h.AuthorConfig&&typeof h.AuthorConfig.AuthorInit==="function"){h.AuthorConfig.AuthorInit()}d.queue=h.Callback.Queue();d.queue.Push(["Post",s.signal,"Begin"],["Config",s],["Cookie",s],["Styles",s],["Message",s],function(){var i=h.Callback.Queue(s.Jax(),s.Extensions());return i.Push({})},["Menu",s],s.onLoad(),function(){MathJax.isReady=true},["Typeset",s],["Hash",s],["MenuZoom",s],["Post",s.signal,"End"])})("MathJax")}}; diff --git a/Ma feuille d'exercice2 - Bibm@th.net_files/ajouteexo.js.téléchargement b/Ma feuille d'exercice2 - Bibm@th.net_files/ajouteexo.js.téléchargement new file mode 100644 index 0000000..863d68d --- /dev/null +++ b/Ma feuille d'exercice2 - Bibm@th.net_files/ajouteexo.js.téléchargement @@ -0,0 +1,47 @@ +/* Contient toutes les fonctions nécessaires pour ajouter un exo dans la feuille courante de la base de données */ + + var xhr = null; // Variable globale qui contient la requête. Globale pour éviter deux requêtes simultanées, pour ne pas surcharger le serveur... + + function ajouteexo(id,numerocadre,punid,punisguest) + { + if (xhr && xhr.readyState != 0) { + // On doit attendre que la requête ait aboutie avant d'en envoyer une deuxième.... + return; + } + + xhr=getXMLHttpRequest(); // On crée la requête + + xhr.open("GET", "lib/ajouteexofeuille.php?id=" +id+"&punid="+punid+"&punisguest="+punisguest, true); // Requête asynchrone... + + // On modifie le texte affiché... + + document.getElementById("exo"+numerocadre).disable="true"; + document.getElementById("exo"+numerocadre).innerHTML=" [Ajout en cours...] "; + + // On prépare la réponse quand la requête est terminée : affichage intermittent de Ajout Effectué... + + xhr.onreadystatechange = function() + { + if (xhr.readyState == 4 && (xhr.status == 200 || xhr.status == 0)) + { + document.getElementById("exo"+numerocadre).innerHTML = " [Ajout effectué] "; + xhr.abort(); // On peut mettre fin à la requête. + setTimeout (function( ) + { + document.getElementById("exo"+numerocadre).innerHTML= " [Ajouter à ma feuille d'exos] "; + document.getElementById("exo"+numerocadre).disable="false"; + }, 4000); + } + else if (xhr.readyState == 4) + { + document.getElementById("exo"+numerocadre).disable="false"; + document.getElementById("exo"+numerocadre).innerHTML=" [Ajouter à ma feuille d'exos] "; + xhr.abort(); + } + }; + + // On lance la requête. + + xhr.send(null); + + } \ No newline at end of file diff --git a/Ma feuille d'exercice2 - Bibm@th.net_files/bibmathnet.js.téléchargement b/Ma feuille d'exercice2 - Bibm@th.net_files/bibmathnet.js.téléchargement new file mode 100644 index 0000000..cc1f6a3 --- /dev/null +++ b/Ma feuille d'exercice2 - Bibm@th.net_files/bibmathnet.js.téléchargement @@ -0,0 +1,4 @@ +// Refresh : 2024-11-22 09:25:56 +var r89Data = {"scripts":{"pbjs":"https:\/\/tags.refinery89.com\/prebid\/prebid8.52.2.js","pubx":"https:\/\/cdn.pbxai.com\/95910a44-4e78-40ea-82d9-1d1c8f0b9575.js","new_pbjs":"https:\/\/tags.refinery89.com\/prebid\/prebid8.52.2.js"},"integrations":{"gpt":true,"pbjs":true,"aps":true},"init_on":"ContentLoaded","website_id":1721,"website_key_value":"bibmath.net","website_country_code":"FR","website_base_url":"bibmath.net","publisher_id":"600","desktop_width":992,"contextual":0,"seller":{"id":"00600","name":"Bayart"},"script_timeout":0,"script_timeout_options":[0],"adunit_wrapper_sticky_top":"0px","track_functions":0,"prioritize_custom_ad_units":0,"contextual_filters":["\/tag\/","\/category\/","\/categorie\/","\/search\/","\/zoeken","\/profiel\/","\/profile\/","\/threads\/","\/author\/"],"preload":["https:\/\/cdn.consentmanager.net\/delivery\/js\/cmp_en.min.js","https:\/\/securepubads.g.doubleclick.net\/tag\/js\/gpt.js","https:\/\/tags.refinery89.com\/prebid\/prebid8.52.2.js","https:\/\/c.amazon-adsystem.com\/aax2\/apstag.js","https:\/\/imasdk.googleapis.com\/js\/sdkloader\/ima3.js","https:\/\/tags.refinery89.com\/video\/js\/video1.min.js","https:\/\/tags.refinery89.com\/video\/js\/video2.min.js","https:\/\/tags.refinery89.com\/video\/js\/video3.js","https:\/\/tags.refinery89.com\/video\/css\/video2-outstream.min.css","https:\/\/tags.refinery89.com\/video\/css\/video3-outstream.css"],"preconnect":["https:\/\/a.delivery.consentmanager.net","https:\/\/cdn.consentmanager.net","https:\/\/ib.adnxs.com","https:\/\/fastlane.rubiconproject.com","https:\/\/a.teads.tv","https:\/\/prg.smartadserver.com","https:\/\/bidder.criteo.com","https:\/\/hbopenbid.pubmatic.com","https:\/\/btlr.sharethrough.com","https:\/\/adx.adform.net","https:\/\/tlx.3lift.com","https:\/\/shb.richaudience.com","https:\/\/onetag-sys.com","https:\/\/aax-dtb-cf.amazon-adsystem.com","https:\/\/secure.cdn.fastclick.net","https:\/\/tags.crwdcntrl.net","https:\/\/cdn.hadronid.net","https:\/\/cdn.id5-sync.com"],"bidder_ids":{"appnexus":1,"rubicon":2,"criteo":3,"weborama":4,"justpremium":5,"smartadserver":6,"openx":7,"improvedigital":8,"pubmatic":9,"adhese":10,"richaudience":11,"teads":12,"nextdaymedia":14,"tl_appnexus":15,"tl_rubicon":16,"tl_adform":17,"dad2u_smartadserver":19,"ix":20,"sovrn":21,"unruly":23,"showheroes-bs":24,"rhythmone":25,"tl_richaudience":27,"adyoulike":28,"inskin":29,"tl_pubmatic":32,"adform":33,"invibes":34,"adagio":35,"seedtag":36,"triplelift":37,"onemobile":38,"outbrain":40,"gps_appnexus":41,"operaads":42,"medianet":43,"freewheel-ssp":47,"sharethrough":49,"ogury":50,"adpone":51,"onetag":52,"taboola":53,"weborama_appnexus":54,"connectad":62,"gumgum":65,"eplanning":66,"smilewanted":67,"rise":68,"nextmillennium":69,"oms":71,"amx":72,"nexx360":75,"brave":76},"track_bids":0,"track_creative_code":0,"google_adblock_recovery":0,"ad_label_text":"\u0026#x25BC; Ad by Refinery89","infinite_scroll":0,"exchange_rate":{"eur":"0.950780"},"skin":{"active":0,"backgroundTopOffset":0,"sidelinksMargin":0},"gam_ad_unit":"Bibmathnet","locale":"fr","adunits":[{"div_id":"desktop-billboard-low","selector":"body","selector_all":0,"has_amazon":1,"has_sticky_sidebar":0,"gam_ad_unit":"Bibmathnet-Desktop-Pushup","position_id":1,"ad_slot_id":3,"bidders_collection_id":25615,"is_desktop":1,"min_screen_width":992,"max_screen_width":null,"is_sticky_footer":1,"is_sticky_header":0,"refresh":1,"lazy_load":0,"lazy_load_distance":500,"lazy_load_ab_testing":0,"is_fallback":0,"wrapper_sticky":0,"show_label":0,"infinite_scroll":1,"slot_name":"\/15748617,22713243947\/Bibmathnet\/Bibmathnet-Desktop-Pushup","sizes":["728x90","980x90","970x90"],"gpt_sizes":[[728,90],[980,90],[970,90]],"aps_sizes":[[728,90],[980,90],[970,90]],"pbjs_sizes":[[728,90],[980,90],[970,90]],"has_native":0,"bidder":"Desktop-Pushup-728x90","batch":"sticky","wrapper_style_parsed":{"margin":"0 auto","position":"fixed","bottom":"0","left":"0","right":"0","maxWidth":"100%","zIndex":"9999","padding":"10px 0 0 0","boxSizing":"content-box","textAlign":"center","borderTop":"1px solid #ccc"},"adunit_id":18565,"ad_slot":{"id":3,"name":"Desktop-Billboard-Low"},"position":{"id":1,"name":"appendChild"}},{"div_id":"desktop-hpa-atf","selector":".r89-desktop-hpa-atf","selector_all":1,"has_amazon":1,"has_sticky_sidebar":0,"gam_ad_unit":"Bibmathnet-Desktop-HPA-ATF","position_id":1,"ad_slot_id":4,"bidders_collection_id":25609,"is_desktop":1,"min_screen_width":992,"max_screen_width":null,"is_sticky_footer":0,"is_sticky_header":0,"refresh":1,"lazy_load":0,"lazy_load_distance":500,"lazy_load_ab_testing":0,"is_fallback":0,"wrapper_sticky":0,"show_label":0,"infinite_scroll":1,"slot_name":"\/15748617,22713243947\/Bibmathnet\/Bibmathnet-Desktop-HPA-ATF","sizes":["300x250","300x100","300x50"],"gpt_sizes":[[300,250],[300,100],[300,50]],"aps_sizes":[[300,250],[300,100],[300,50]],"pbjs_sizes":[[300,250],[300,100],[300,50]],"has_native":0,"bidder":"Desktop-300x250-ATF","batch":"atf","wrapper_style_parsed":{"textAlign":"center","marginBottom":"25px"},"adunit_id":18566,"ad_slot":{"id":4,"name":"Desktop-HPA-ATF"},"position":{"id":1,"name":"appendChild"}},{"div_id":"desktop-leaderboard-atf","selector":".r89-desktop-leaderboard-atf","selector_all":0,"has_amazon":1,"has_sticky_sidebar":0,"gam_ad_unit":"Bibmathnet-Desktop-Leaderboard-ATF","position_id":1,"ad_slot_id":1,"bidders_collection_id":25611,"is_desktop":1,"min_screen_width":992,"max_screen_width":null,"is_sticky_footer":0,"is_sticky_header":0,"refresh":1,"lazy_load":0,"lazy_load_distance":500,"lazy_load_ab_testing":0,"is_fallback":0,"wrapper_sticky":0,"show_label":0,"infinite_scroll":1,"slot_name":"\/15748617,22713243947\/Bibmathnet\/Bibmathnet-Desktop-Leaderboard-ATF","sizes":["728x90"],"gpt_sizes":[[728,90]],"aps_sizes":[[728,90]],"pbjs_sizes":[[728,90]],"has_native":0,"bidder":"Desktop-728x90-ATF","batch":"atf","wrapper_style_parsed":{"textAlign":"center","backgroundColor":"transparent","margin":"10 0 10 0"},"adunit_id":18569,"ad_slot":{"id":1,"name":"Desktop-Billboard-ATF"},"position":{"id":1,"name":"appendChild"}},{"div_id":"mobile-billboard-top","selector":".r89-mobile-billboard-top","selector_all":0,"has_amazon":1,"has_sticky_sidebar":0,"gam_ad_unit":"Bibmathnet-Mobile-Billboard-Top","position_id":1,"ad_slot_id":8,"bidders_collection_id":25625,"is_desktop":0,"min_screen_width":null,"max_screen_width":991,"is_sticky_footer":0,"is_sticky_header":0,"refresh":1,"lazy_load":0,"lazy_load_distance":500,"lazy_load_ab_testing":0,"is_fallback":0,"wrapper_sticky":0,"show_label":0,"infinite_scroll":1,"slot_name":"\/15748617,22713243947\/Bibmathnet\/Bibmathnet-Mobile-Billboard-Top","sizes":["300x250","320x240","320x100","336x280","300x100","320x50","300x50","fluid"],"gpt_sizes":[[300,250],[320,240],[320,100],[336,280],[300,100],[320,50],[300,50],"fluid"],"aps_sizes":[[300,250],[320,240],[320,100],[336,280],[300,100],[320,50],[300,50]],"pbjs_sizes":[[300,250],[320,240],[320,100],[336,280],[300,100],[320,50],[300,50]],"has_native":0,"bidder":"Mobile-300x250-Top","batch":"atf","wrapper_style_parsed":{"minHeight":"250px","marginTop":"55px","textAlign":"center"},"adunit_id":18574,"ad_slot":{"id":8,"name":"Mobile-Billboard-Top"},"position":{"id":1,"name":"appendChild"}},{"div_id":"mobile-sticky-footer","selector":"body","selector_all":0,"has_amazon":1,"has_sticky_sidebar":0,"gam_ad_unit":"Bibmathnet-Mobile-pushup","position_id":1,"ad_slot_id":14,"bidders_collection_id":25621,"is_desktop":0,"min_screen_width":null,"max_screen_width":991,"is_sticky_footer":1,"is_sticky_header":0,"refresh":1,"lazy_load":0,"lazy_load_distance":500,"lazy_load_ab_testing":0,"is_fallback":0,"wrapper_sticky":0,"show_label":0,"infinite_scroll":1,"slot_name":"\/15748617,22713243947\/Bibmathnet\/Bibmathnet-Mobile-pushup","sizes":["1x1","320x100","320x180","300x100","320x50","300x50","2x2"],"gpt_sizes":[[1,1],[320,100],[320,180],[300,100],[320,50],[300,50],[2,2]],"aps_sizes":[[1,1],[320,100],[320,180],[300,100],[320,50],[300,50],[2,2]],"pbjs_sizes":[[1,1],[320,100],[320,180],[300,100],[320,50],[300,50],[2,2]],"has_native":0,"bidder":"Mobile-Sticky-320x100","batch":"sticky","wrapper_style_parsed":{"position":"fixed","bottom":"0","left":"0","right":"0","maxWidth":"100%","zIndex":"9999","padding":"10px 0 0 0","boxSizing":"content-box","borderTop":"1px solid #ccc"},"adunit_id":18579,"ad_slot":{"id":14,"name":"Mobile-Footer-Sticky"},"position":{"id":1,"name":"appendChild"}}],"timeouts":{"default":1000,"atf":750,"incontent":1000,"btf":2000,"low":3000,"refresh":1000,"lazy":750,"outstream":1000,"sticky":1500},"site_iab_categories":["680"],"key_value_price_rules":1,"gpt_options":{"set_centering":1,"disable_initial_load":1,"collapse_empty_divs":1,"enable_single_request":1},"gam_network_id":"15748617,22713243947","batches":["atf","outstream","inContent","sticky","btf","low","lazy","fallback"],"sticky":{"footer":{"slotIds":["desktop-billboard-low","mobile-sticky-footer"],"orderIdsFilter":[2565064030,2565063550,2823227725,2758760599,2758307477,3009150654,3008364172,3244316152,3244316143]},"header":{"slotIds":[]}},"adunits_infinite_scroll":[{"div_id":"desktop-billboard-low","selector":"body","selector_all":0,"has_amazon":1,"has_sticky_sidebar":0,"gam_ad_unit":"Bibmathnet-Desktop-Pushup","position_id":1,"ad_slot_id":3,"bidders_collection_id":25615,"is_desktop":1,"min_screen_width":992,"max_screen_width":null,"is_sticky_footer":1,"is_sticky_header":0,"refresh":1,"lazy_load":0,"lazy_load_distance":500,"lazy_load_ab_testing":0,"is_fallback":0,"wrapper_sticky":0,"show_label":0,"infinite_scroll":1,"slot_name":"\/15748617,22713243947\/Bibmathnet\/Bibmathnet-Desktop-Pushup","sizes":["728x90","980x90","970x90"],"gpt_sizes":[[728,90],[980,90],[970,90]],"aps_sizes":[[728,90],[980,90],[970,90]],"pbjs_sizes":[[728,90],[980,90],[970,90]],"has_native":0,"bidder":"Desktop-Pushup-728x90","batch":"sticky","wrapper_style_parsed":{"margin":"0 auto","position":"fixed","bottom":"0","left":"0","right":"0","maxWidth":"100%","zIndex":"9999","padding":"10px 0 0 0","boxSizing":"content-box","textAlign":"center","borderTop":"1px solid #ccc"},"adunit_id":18565,"ad_slot":{"id":3,"name":"Desktop-Billboard-Low"},"position":{"id":1,"name":"appendChild"}},{"div_id":"desktop-hpa-atf","selector":".r89-desktop-hpa-atf","selector_all":1,"has_amazon":1,"has_sticky_sidebar":0,"gam_ad_unit":"Bibmathnet-Desktop-HPA-ATF","position_id":1,"ad_slot_id":4,"bidders_collection_id":25609,"is_desktop":1,"min_screen_width":992,"max_screen_width":null,"is_sticky_footer":0,"is_sticky_header":0,"refresh":1,"lazy_load":0,"lazy_load_distance":500,"lazy_load_ab_testing":0,"is_fallback":0,"wrapper_sticky":0,"show_label":0,"infinite_scroll":1,"slot_name":"\/15748617,22713243947\/Bibmathnet\/Bibmathnet-Desktop-HPA-ATF","sizes":["300x250","300x100","300x50"],"gpt_sizes":[[300,250],[300,100],[300,50]],"aps_sizes":[[300,250],[300,100],[300,50]],"pbjs_sizes":[[300,250],[300,100],[300,50]],"has_native":0,"bidder":"Desktop-300x250-ATF","batch":"atf","wrapper_style_parsed":{"textAlign":"center","marginBottom":"25px"},"adunit_id":18566,"ad_slot":{"id":4,"name":"Desktop-HPA-ATF"},"position":{"id":1,"name":"appendChild"}},{"div_id":"desktop-leaderboard-atf","selector":".r89-desktop-leaderboard-atf","selector_all":0,"has_amazon":1,"has_sticky_sidebar":0,"gam_ad_unit":"Bibmathnet-Desktop-Leaderboard-ATF","position_id":1,"ad_slot_id":1,"bidders_collection_id":25611,"is_desktop":1,"min_screen_width":992,"max_screen_width":null,"is_sticky_footer":0,"is_sticky_header":0,"refresh":1,"lazy_load":0,"lazy_load_distance":500,"lazy_load_ab_testing":0,"is_fallback":0,"wrapper_sticky":0,"show_label":0,"infinite_scroll":1,"slot_name":"\/15748617,22713243947\/Bibmathnet\/Bibmathnet-Desktop-Leaderboard-ATF","sizes":["728x90"],"gpt_sizes":[[728,90]],"aps_sizes":[[728,90]],"pbjs_sizes":[[728,90]],"has_native":0,"bidder":"Desktop-728x90-ATF","batch":"atf","wrapper_style_parsed":{"textAlign":"center","backgroundColor":"transparent","margin":"10 0 10 0"},"adunit_id":18569,"ad_slot":{"id":1,"name":"Desktop-Billboard-ATF"},"position":{"id":1,"name":"appendChild"}},{"div_id":"mobile-billboard-top","selector":".r89-mobile-billboard-top","selector_all":0,"has_amazon":1,"has_sticky_sidebar":0,"gam_ad_unit":"Bibmathnet-Mobile-Billboard-Top","position_id":1,"ad_slot_id":8,"bidders_collection_id":25625,"is_desktop":0,"min_screen_width":null,"max_screen_width":991,"is_sticky_footer":0,"is_sticky_header":0,"refresh":1,"lazy_load":0,"lazy_load_distance":500,"lazy_load_ab_testing":0,"is_fallback":0,"wrapper_sticky":0,"show_label":0,"infinite_scroll":1,"slot_name":"\/15748617,22713243947\/Bibmathnet\/Bibmathnet-Mobile-Billboard-Top","sizes":["300x250","320x240","320x100","336x280","300x100","320x50","300x50","fluid"],"gpt_sizes":[[300,250],[320,240],[320,100],[336,280],[300,100],[320,50],[300,50],"fluid"],"aps_sizes":[[300,250],[320,240],[320,100],[336,280],[300,100],[320,50],[300,50]],"pbjs_sizes":[[300,250],[320,240],[320,100],[336,280],[300,100],[320,50],[300,50]],"has_native":0,"bidder":"Mobile-300x250-Top","batch":"atf","wrapper_style_parsed":{"minHeight":"250px","marginTop":"55px","textAlign":"center"},"adunit_id":18574,"ad_slot":{"id":8,"name":"Mobile-Billboard-Top"},"position":{"id":1,"name":"appendChild"}},{"div_id":"mobile-sticky-footer","selector":"body","selector_all":0,"has_amazon":1,"has_sticky_sidebar":0,"gam_ad_unit":"Bibmathnet-Mobile-pushup","position_id":1,"ad_slot_id":14,"bidders_collection_id":25621,"is_desktop":0,"min_screen_width":null,"max_screen_width":991,"is_sticky_footer":1,"is_sticky_header":0,"refresh":1,"lazy_load":0,"lazy_load_distance":500,"lazy_load_ab_testing":0,"is_fallback":0,"wrapper_sticky":0,"show_label":0,"infinite_scroll":1,"slot_name":"\/15748617,22713243947\/Bibmathnet\/Bibmathnet-Mobile-pushup","sizes":["1x1","320x100","320x180","300x100","320x50","300x50","2x2"],"gpt_sizes":[[1,1],[320,100],[320,180],[300,100],[320,50],[300,50],[2,2]],"aps_sizes":[[1,1],[320,100],[320,180],[300,100],[320,50],[300,50],[2,2]],"pbjs_sizes":[[1,1],[320,100],[320,180],[300,100],[320,50],[300,50],[2,2]],"has_native":0,"bidder":"Mobile-Sticky-320x100","batch":"sticky","wrapper_style_parsed":{"position":"fixed","bottom":"0","left":"0","right":"0","maxWidth":"100%","zIndex":"9999","padding":"10px 0 0 0","boxSizing":"content-box","borderTop":"1px solid #ccc"},"adunit_id":18579,"ad_slot":{"id":14,"name":"Mobile-Footer-Sticky"},"position":{"id":1,"name":"appendChild"}}],"fallbacks":[],"bidders":{"Desktop-300x600-ATF":[{"bidder":"appnexus","params":{"placementId":28776747}},{"bidder":"smartadserver","params":{"formatId":73025,"domain":"https:\/\/prg.smartadserver.com","siteId":570800,"pageId":1732266}},{"bidder":"criteo","params":{"networkId":8579,"publisherSubId":"Bibmath.net"}},{"bidder":"adagio","params":{"organizationId":1117,"site":"bibmath-net","useAdUnitCodeAsAdUnitElementId":true,"placement":"Bibmath.net-Desktop-300x600-ATF","environment":"desktop"}},{"bidder":"seedtag","params":{"publisherId":"7113-5278-01","adUnitId":"29508412","placement":"inBanner"}},{"bidder":"outbrain","params":{"publisher":{"id":"000e1603e3e8ae430228ecc6109d5017d7","name":"Refinery89","domain":"refinery89.com"},"tagid":"Bibmath.net-Desktop-300x600-ATF"}},{"bidder":"gumgum","params":{"zone":"wezk7q0j","slot":1046808}}],"Desktop-300x600-BTF":[{"bidder":"appnexus","params":{"placementId":28776748,"keywords":{"ad_slot":"Desktop-HPA-BTF"}}},{"bidder":"smartadserver","params":{"formatId":73026,"domain":"https:\/\/prg.smartadserver.com","siteId":570800,"pageId":1732266}},{"bidder":"criteo","params":{"networkId":8579,"publisherSubId":"Bibmath.net"}},{"bidder":"pubmatic","params":{"publisherId":"158018","adSlot":"4966497"}},{"bidder":"adagio","params":{"organizationId":1117,"site":"bibmath-net","useAdUnitCodeAsAdUnitElementId":true,"placement":"Bibmath.net-Desktop-300x600-BTF","environment":"desktop"}},{"bidder":"seedtag","params":{"publisherId":"7113-5278-01","adUnitId":"29508412","placement":"inBanner"}},{"bidder":"outbrain","params":{"publisher":{"id":"000e1603e3e8ae430228ecc6109d5017d7","name":"Refinery89","domain":"refinery89.com"},"tagid":"Bibmath.net-Desktop-300x600-BTF"}},{"bidder":"gumgum","params":{"zone":"wezk7q0j","slot":1046808}}],"Desktop-300x250-ATF":[{"bidder":"appnexus","params":{"placementId":28776750,"keywords":{"ad_slot":"Desktop-HPA-ATF"}}},{"bidder":"rubicon","params":{"accountId":14940,"siteId":493984,"zoneId":2925092,"position":"atf"}},{"bidder":"smartadserver","params":{"formatId":73028,"domain":"https:\/\/prg.smartadserver.com","siteId":570800,"pageId":1732266}},{"bidder":"criteo","params":{"networkId":8579,"publisherSubId":"Bibmath.net"}},{"bidder":"pubmatic","params":{"publisherId":"158018","adSlot":"4966490"}},{"bidder":"adagio","params":{"organizationId":1117,"site":"bibmath-net","useAdUnitCodeAsAdUnitElementId":true,"placement":"Bibmath.net-Desktop-300x250-ATF","environment":"desktop"}},{"bidder":"seedtag","params":{"publisherId":"7113-5278-01","adUnitId":"28911183","placement":"inArticle"}},{"bidder":"outbrain","params":{"publisher":{"id":"000e1603e3e8ae430228ecc6109d5017d7","name":"Refinery89","domain":"refinery89.com"},"tagid":"Bibmath.net-Desktop-300x250-ATF"}},{"bidder":"gumgum","params":{"zone":"wezk7q0j","slot":1046808}}],"Desktop-300x250-BTF":[{"bidder":"appnexus","params":{"placementId":28776752,"keywords":{"ad_slot":"Desktop-HPA-BTF"}}},{"bidder":"smartadserver","params":{"formatId":73029,"domain":"https:\/\/prg.smartadserver.com","siteId":570800,"pageId":1732266}},{"bidder":"criteo","params":{"networkId":8579,"publisherSubId":"Bibmath.net"}},{"bidder":"adagio","params":{"organizationId":1117,"site":"bibmath-net","useAdUnitCodeAsAdUnitElementId":true,"placement":"Bibmath.net-Desktop-300x250-BTF","environment":"desktop"}},{"bidder":"seedtag","params":{"publisherId":"7113-5278-01","adUnitId":"28911183","placement":"inArticle"}},{"bidder":"outbrain","params":{"publisher":{"id":"000e1603e3e8ae430228ecc6109d5017d7","name":"Refinery89","domain":"refinery89.com"},"tagid":"Bibmath.net-Desktop-300x250-BTF"}},{"bidder":"gumgum","params":{"zone":"wezk7q0j","slot":1046808}}],"Desktop-728x90-ATF":[{"bidder":"appnexus","params":{"placementId":28776753,"keywords":{"ad_slot":"Desktop-Billboard-ATF"}}},{"bidder":"rubicon","params":{"accountId":14940,"siteId":493984,"zoneId":2925094,"position":"atf"}},{"bidder":"smartadserver","params":{"formatId":73942,"domain":"https:\/\/prg.smartadserver.com","siteId":570800,"pageId":1732266}},{"bidder":"criteo","params":{"networkId":8579,"publisherSubId":"Bibmath.net"}},{"bidder":"pubmatic","params":{"publisherId":"158018","adSlot":"4966492"}},{"bidder":"adagio","params":{"organizationId":1117,"site":"bibmath-net","useAdUnitCodeAsAdUnitElementId":true,"placement":"Bibmath.net-Desktop-728x90-ATF","environment":"desktop"}},{"bidder":"seedtag","params":{"publisherId":"7113-5278-01","adUnitId":"29508412","placement":"inBanner"}},{"bidder":"outbrain","params":{"publisher":{"id":"000e1603e3e8ae430228ecc6109d5017d7","name":"Refinery89","domain":"refinery89.com"},"tagid":"Bibmath.net-Desktop-728x90-ATF"}},{"bidder":"gumgum","params":{"zone":"wezk7q0j","slot":1046808}}],"Desktop-728x90-BTF":[{"bidder":"appnexus","params":{"placementId":28776755,"keywords":{"ad_slot":"Desktop-Billboard-BTF"}}},{"bidder":"smartadserver","params":{"formatId":73941,"domain":"https:\/\/prg.smartadserver.com","siteId":570800,"pageId":1732266}},{"bidder":"criteo","params":{"networkId":8579,"publisherSubId":"Bibmath.net"}},{"bidder":"adagio","params":{"organizationId":1117,"site":"bibmath-net","useAdUnitCodeAsAdUnitElementId":true,"placement":"Bibmath.net-Desktop-728x90-BTF","environment":"desktop"}},{"bidder":"seedtag","params":{"publisherId":"7113-5278-01","adUnitId":"28911183","placement":"inArticle"}},{"bidder":"outbrain","params":{"publisher":{"id":"000e1603e3e8ae430228ecc6109d5017d7","name":"Refinery89","domain":"refinery89.com"},"tagid":"Bibmath.net-Desktop-728x90-BTF"}},{"bidder":"gumgum","params":{"zone":"wezk7q0j","slot":1046808}}],"Desktop-970x250-ATF":[{"bidder":"appnexus","params":{"placementId":28776756,"keywords":{"ad_slot":"Desktop-Billboard-ATF"}}},{"bidder":"smartadserver","params":{"formatId":73940,"domain":"https:\/\/prg.smartadserver.com","siteId":570800,"pageId":1732266}},{"bidder":"criteo","params":{"networkId":8579,"publisherSubId":"Bibmath.net"}},{"bidder":"adagio","params":{"organizationId":1117,"site":"bibmath-net","useAdUnitCodeAsAdUnitElementId":true,"placement":"Bibmath.net-Desktop-970x250-ATF","environment":"desktop"}},{"bidder":"seedtag","params":{"publisherId":"7113-5278-01","adUnitId":"29508412","placement":"inBanner"}},{"bidder":"outbrain","params":{"publisher":{"id":"000e1603e3e8ae430228ecc6109d5017d7","name":"Refinery89","domain":"refinery89.com"},"tagid":"Bibmath.net-Desktop-970x250-ATF"}},{"bidder":"gumgum","params":{"zone":"wezk7q0j","slot":1046808}}],"Desktop-970x250-BTF":[{"bidder":"appnexus","params":{"placementId":28776758,"keywords":{"ad_slot":"Desktop-Billboard-BTF"}}},{"bidder":"smartadserver","params":{"formatId":73027,"domain":"https:\/\/prg.smartadserver.com","siteId":570800,"pageId":1732266}},{"bidder":"criteo","params":{"networkId":8579,"publisherSubId":"Bibmath.net"}},{"bidder":"adagio","params":{"organizationId":1117,"site":"bibmath-net","useAdUnitCodeAsAdUnitElementId":true,"placement":"Bibmath.net-Desktop-970x250-BTF","environment":"desktop"}},{"bidder":"seedtag","params":{"publisherId":"7113-5278-01","adUnitId":"29508412","placement":"inBanner"}},{"bidder":"outbrain","params":{"publisher":{"id":"000e1603e3e8ae430228ecc6109d5017d7","name":"Refinery89","domain":"refinery89.com"},"tagid":"Bibmath.net-Desktop-970x250-BTF"}},{"bidder":"gumgum","params":{"zone":"wezk7q0j","slot":1046808}}],"Desktop-Pushup-728x90":[{"bidder":"appnexus","params":{"placementId":28776760,"keywords":{"ad_slot":"Desktop-Billboard-Low"}}},{"bidder":"rubicon","params":{"accountId":14940,"siteId":493984,"zoneId":2925090,"position":"atf"}},{"bidder":"smartadserver","params":{"formatId":73942,"domain":"https:\/\/prg.smartadserver.com","siteId":570800,"pageId":1732266}},{"bidder":"criteo","params":{"networkId":8579,"publisherSubId":"Bibmath.net"}},{"bidder":"pubmatic","params":{"publisherId":"158018","adSlot":"4966489"}},{"bidder":"adagio","params":{"organizationId":1117,"site":"bibmath-net","useAdUnitCodeAsAdUnitElementId":true,"placement":"Bibmath.net-Desktop-Pushup-728x90","environment":"desktop"}},{"bidder":"seedtag","params":{"publisherId":"7113-5278-01","adUnitId":"28911182","placement":"inScreen"}},{"bidder":"outbrain","params":{"publisher":{"id":"000e1603e3e8ae430228ecc6109d5017d7","name":"Refinery89","domain":"refinery89.com"},"tagid":"Bibmath.net-Desktop-Pushup-728x90"}},{"bidder":"gumgum","params":{"zone":"wezk7q0j"}}],"Desktop-Takeover":[{"bidder":"appnexus","params":{"placementId":28776762,"keywords":{"ad_slot":"Desktop-Takeover"}}},{"bidder":"smartadserver","params":{"formatId":73024,"domain":"https:\/\/prg.smartadserver.com","siteId":570800,"pageId":1732266}},{"bidder":"criteo","params":{"networkId":8579,"publisherSubId":"Bibmath.net"}},{"bidder":"adagio","params":{"organizationId":1117,"site":"bibmath-net","useAdUnitCodeAsAdUnitElementId":true,"placement":"Bibmath.net-Desktop-Takeover","environment":"desktop"}},{"bidder":"outbrain","params":{"publisher":{"id":"000e1603e3e8ae430228ecc6109d5017d7","name":"Refinery89","domain":"refinery89.com"},"tagid":"Bibmath.net-Desktop-Takeover"}},{"bidder":"gumgum","params":{"zone":"wezk7q0j","product":"skins"}}],"Mobile-300x250-Low":[{"bidder":"appnexus","params":{"placementId":28776763,"keywords":{"ad_slot":"Mobile-Rectangle-Low"}}},{"bidder":"smartadserver","params":{"formatId":73031,"domain":"https:\/\/prg.smartadserver.com","siteId":570800,"pageId":1732266}},{"bidder":"criteo","params":{"networkId":8579,"publisherSubId":"Bibmath.net"}},{"bidder":"adagio","params":{"organizationId":1117,"site":"bibmath-net","useAdUnitCodeAsAdUnitElementId":true,"placement":"Bibmath.net-Mobile-300x250-Low","environment":"mobile"}},{"bidder":"seedtag","params":{"publisherId":"7113-5278-01","adUnitId":"29508412","placement":"inBanner"}},{"bidder":"outbrain","params":{"publisher":{"id":"000e1603e3e8ae430228ecc6109d5017d7","name":"Refinery89","domain":"refinery89.com"},"tagid":"Bibmath.net-Mobile-300x250-Low"}},{"bidder":"gumgum","params":{"zone":"wezk7q0j","slot":1046808}}],"Mobile-300x250-Mid":[{"bidder":"appnexus","params":{"placementId":28776764,"keywords":{"ad_slot":"Mobile-Rectangle-Mid"}}},{"bidder":"smartadserver","params":{"formatId":73029,"domain":"https:\/\/prg.smartadserver.com","siteId":570800,"pageId":1732266}},{"bidder":"criteo","params":{"networkId":8579,"publisherSubId":"Bibmath.net"}},{"bidder":"pubmatic","params":{"publisherId":"158018","adSlot":"4966495"}},{"bidder":"adagio","params":{"organizationId":1117,"site":"bibmath-net","useAdUnitCodeAsAdUnitElementId":true,"placement":"Bibmath.net-Mobile-300x250-Mid","environment":"mobile"}},{"bidder":"seedtag","params":{"publisherId":"7113-5278-01","adUnitId":"28911183","placement":"inArticle"}},{"bidder":"outbrain","params":{"publisher":{"id":"000e1603e3e8ae430228ecc6109d5017d7","name":"Refinery89","domain":"refinery89.com"},"tagid":"Bibmath.net-Mobile-300x250-Mid"}},{"bidder":"gumgum","params":{"zone":"wezk7q0j","slot":1046808}}],"Mobile-300x600-Mid":[{"bidder":"appnexus","params":{"placementId":28776766,"keywords":{"ad_slot":"Mobile-Rectangle-Mid"}}},{"bidder":"smartadserver","params":{"formatId":73029,"domain":"https:\/\/prg.smartadserver.com","siteId":570800,"pageId":1732266}},{"bidder":"criteo","params":{"networkId":8579,"publisherSubId":"Bibmath.net"}},{"bidder":"adagio","params":{"organizationId":1117,"site":"bibmath-net","useAdUnitCodeAsAdUnitElementId":true,"placement":"Bibmath.net-Mobile-300x600-Mid","environment":"mobile"}},{"bidder":"seedtag","params":{"publisherId":"7113-5278-01","adUnitId":"28911183","placement":"inArticle"}},{"bidder":"outbrain","params":{"publisher":{"id":"000e1603e3e8ae430228ecc6109d5017d7","name":"Refinery89","domain":"refinery89.com"},"tagid":"Bibmath.net-Mobile-300x600-Mid"}},{"bidder":"gumgum","params":{"zone":"wezk7q0j","slot":1046808}}],"Mobile-320x100-Top":[{"bidder":"appnexus","params":{"placementId":28776767}},{"bidder":"smartadserver","params":{"formatId":73028,"domain":"https:\/\/prg.smartadserver.com","siteId":570800,"pageId":1732266}},{"bidder":"criteo","params":{"networkId":8579,"publisherSubId":"Bibmath.net"}},{"bidder":"adagio","params":{"organizationId":1117,"site":"bibmath-net","useAdUnitCodeAsAdUnitElementId":true,"placement":"Bibmath.net-Mobile-320x100-Top","environment":"mobile"}},{"bidder":"seedtag","params":{"publisherId":"7113-5278-01","adUnitId":"29508412","placement":"inBanner"}},{"bidder":"outbrain","params":{"publisher":{"id":"000e1603e3e8ae430228ecc6109d5017d7","name":"Refinery89","domain":"refinery89.com"},"tagid":"Bibmath.net-Mobile-320x100-Top"}},{"bidder":"gumgum","params":{"zone":"wezk7q0j","slot":1046808}}],"Mobile-Sticky-320x100":[{"bidder":"appnexus","params":{"placementId":28776769,"keywords":{"ad_slot":"Mobile-Footer-Sticky"}}},{"bidder":"rubicon","params":{"accountId":14940,"siteId":493984,"zoneId":2925098,"position":"atf"}},{"bidder":"smartadserver","params":{"formatId":73028,"domain":"https:\/\/prg.smartadserver.com","siteId":570800,"pageId":1732266}},{"bidder":"criteo","params":{"networkId":8579,"publisherSubId":"Bibmath.net"}},{"bidder":"pubmatic","params":{"publisherId":"158018","adSlot":"4966496"}},{"bidder":"adagio","params":{"organizationId":1117,"site":"bibmath-net","useAdUnitCodeAsAdUnitElementId":true,"placement":"Bibmath.net-Mobile-Sticky-320x100","environment":"mobile"}},{"bidder":"seedtag","params":{"publisherId":"7113-5278-01","adUnitId":"28911182","placement":"inScreen"}},{"bidder":"outbrain","params":{"publisher":{"id":"000e1603e3e8ae430228ecc6109d5017d7","name":"Refinery89","domain":"refinery89.com"},"tagid":"Bibmath.net-Mobile-Sticky-320x100"}},{"bidder":"ogury","params":{"assetKey":"OGY-4A69C93D16CA","adUnitId":"wm-hb-foot-bibmat-refin-eztabqu8ikvw"}},{"bidder":"gumgum","params":{"zone":"wezk7q0j"}}],"Native":[{"bidder":"appnexus","params":{"placementId":28776770}},{"bidder":"adagio","params":{"organizationId":1117,"site":"bibmath-net","useAdUnitCodeAsAdUnitElementId":true,"placement":"Bibmath.net-Native","environment":"mobile"}},{"bidder":"outbrain","params":{"publisher":{"id":"000e1603e3e8ae430228ecc6109d5017d7","name":"Refinery89","domain":"refinery89.com"},"tagid":"Bibmath.net-Native"}}],"Video-Outstream":[{"bidder":"adagio","params":{"organizationId":1117,"site":"Bibmath-net","useAdUnitCodeAsAdUnitElementId":"TRUE","placement":"Outstream"}},{"bidder":"richaudience","params":{"pid":"hgOOxdQhMV","supplyType":"site"}},{"bidder":"appnexus","params":{"placementId":28980050,"video":"{\u0022skippable\u0022:true\u0022,\u0022playback_methods\u0022:[\u0022auto_play_sound_off\u0022]}"}},{"bidder":"smartadserver","params":{"domain":"https:\/\/prg.smartadserver.com","formatId":92584,"pageId":1732266,"siteId":570800,"video":{"protocol":8,"startDelay":1}}},{"bidder":"pubmatic","params":{"adSlot":"5267730","publisherId":"158018","video":{"mimes":["video\/mp4","video\/x-flv","video\/webm","application\/javascript"],"skippable":true,"linearity":1,"placement":2,"minduration":5,"maxduration":60,"api":[1,2],"playbackmethod":2,"protocols":[2,3,5,6]},"outstreamAU":"refinery89_outstream"}},{"bidder":"rubicon","params":{"accountId":14940,"siteId":493984,"zoneId":3576714,"video":{"size_id":203}}}],"Video-Instream":[],"Mobile-300x250-Top":[{"bidder":"appnexus","params":{"placementId":28776772,"keywords":{"ad_slot":"Mobile-Billboard-Top"}}},{"bidder":"rubicon","params":{"accountId":14940,"siteId":493984,"zoneId":2925096,"position":"atf"}},{"bidder":"smartadserver","params":{"formatId":73028,"domain":"https:\/\/prg.smartadserver.com","siteId":570800,"pageId":1732266}},{"bidder":"criteo","params":{"networkId":8579,"publisherSubId":"Bibmath.net"}},{"bidder":"pubmatic","params":{"publisherId":"158018","adSlot":"4966493"}},{"bidder":"adagio","params":{"organizationId":1117,"site":"bibmath-net","useAdUnitCodeAsAdUnitElementId":true,"placement":"Bibmath.net-Mobile-300x250-Top","environment":"mobile"}},{"bidder":"seedtag","params":{"publisherId":"7113-5278-01","adUnitId":"29508412","placement":"inBanner"}},{"bidder":"outbrain","params":{"publisher":{"id":"000e1603e3e8ae430228ecc6109d5017d7","name":"Refinery89","domain":"refinery89.com"},"tagid":"Bibmath.net-Mobile-300x250-Top"}},{"bidder":"gumgum","params":{"zone":"wezk7q0j","slot":1040706}}],"Desktop-160x600-ATF":[{"bidder":"appnexus","params":{"placementId":28776773,"keywords":{"ad_slot":"Desktop-HPA-BTF"}}},{"bidder":"smartadserver","params":{"formatId":73025,"domain":"https:\/\/prg.smartadserver.com","siteId":570800,"pageId":1732266}},{"bidder":"criteo","params":{"networkId":8579,"publisherSubId":"Bibmath.net"}},{"bidder":"adagio","params":{"organizationId":1117,"site":"bibmath-net","useAdUnitCodeAsAdUnitElementId":true,"placement":"Bibmath.net-Desktop-160x600-ATF","environment":"desktop"}},{"bidder":"seedtag","params":{"publisherId":"7113-5278-01","adUnitId":"29508412","placement":"inBanner"}},{"bidder":"outbrain","params":{"publisher":{"id":"000e1603e3e8ae430228ecc6109d5017d7","name":"Refinery89","domain":"refinery89.com"},"tagid":"Bibmath.net-Desktop-160x600-ATF"}},{"bidder":"gumgum","params":{"zone":"wezk7q0j","slot":1046808}}],"Desktop-160x600-BTF":[{"bidder":"appnexus","params":{"placementId":28776775}},{"bidder":"smartadserver","params":{"formatId":73025,"domain":"https:\/\/prg.smartadserver.com","siteId":570800,"pageId":1732266}},{"bidder":"criteo","params":{"networkId":8579,"publisherSubId":"Bibmath.net"}},{"bidder":"adagio","params":{"organizationId":1117,"site":"bibmath-net","useAdUnitCodeAsAdUnitElementId":true,"placement":"Bibmath.net-Desktop-160x600-BTF","environment":"desktop"}},{"bidder":"seedtag","params":{"publisherId":"7113-5278-01","adUnitId":"29508412","placement":"inBanner"}},{"bidder":"outbrain","params":{"publisher":{"id":"000e1603e3e8ae430228ecc6109d5017d7","name":"Refinery89","domain":"refinery89.com"},"tagid":"Bibmath.net-Desktop-160x600-BTF"}},{"bidder":"gumgum","params":{"zone":"wezk7q0j","slot":1046808}}],"Mobile-300x250-Infinite":[{"bidder":"appnexus","params":{"placementId":28776776,"keywords":{"ad_slot":"Mobile-Rectangle-Infinite"}}},{"bidder":"smartadserver","params":{"formatId":73030,"domain":"https:\/\/prg.smartadserver.com","siteId":570800,"pageId":1732266}},{"bidder":"criteo","params":{"networkId":8579,"publisherSubId":"Bibmath.net"}},{"bidder":"pubmatic","params":{"publisherId":"158018","adSlot":"4966494"}},{"bidder":"adagio","params":{"organizationId":1117,"site":"bibmath-net","useAdUnitCodeAsAdUnitElementId":true,"placement":"Bibmath.net-Mobile-300x250-Infinite","environment":"mobile"}},{"bidder":"seedtag","params":{"publisherId":"7113-5278-01","adUnitId":"28911183","placement":"inArticle"}},{"bidder":"outbrain","params":{"publisher":{"id":"000e1603e3e8ae430228ecc6109d5017d7","name":"Refinery89","domain":"refinery89.com"},"tagid":"Bibmath.net-Mobile-300x250-Infinite"}},{"bidder":"gumgum","params":{"zone":"wezk7q0j","slot":1046808}}],"Mobile-320x100-Infinite":[{"bidder":"appnexus","params":{"placementId":28776778}},{"bidder":"adagio","params":{"organizationId":1117,"site":"bibmath-net","useAdUnitCodeAsAdUnitElementId":true,"placement":"Bibmath.net-Mobile-320x100-Infinite","environment":"mobile"}},{"bidder":"seedtag","params":{"publisherId":"7113-5278-01","adUnitId":"28911183","placement":"inArticle"}},{"bidder":"outbrain","params":{"publisher":{"id":"000e1603e3e8ae430228ecc6109d5017d7","name":"Refinery89","domain":"refinery89.com"},"tagid":"Bibmath.net-Mobile-320x100-Infinite"}},{"bidder":"gumgum","params":{"zone":"wezk7q0j","slot":1046808}}],"Mobile-320x100-Low":[{"bidder":"appnexus","params":{"placementId":28776780}},{"bidder":"adagio","params":{"organizationId":1117,"site":"bibmath-net","useAdUnitCodeAsAdUnitElementId":true,"placement":"Bibmath.net-Mobile-320x100-Low","environment":"mobile"}},{"bidder":"seedtag","params":{"publisherId":"7113-5278-01","adUnitId":"29508412","placement":"inBanner"}},{"bidder":"outbrain","params":{"publisher":{"id":"000e1603e3e8ae430228ecc6109d5017d7","name":"Refinery89","domain":"refinery89.com"},"tagid":"Bibmath.net-Mobile-320x100-Low"}},{"bidder":"gumgum","params":{"zone":"wezk7q0j","slot":1046808}}],"Desktop-inarticle":[{"bidder":"appnexus","params":{"placementId":28776782,"keywords":{"ad_slot":"Desktop-Hybrid"}}},{"bidder":"smartadserver","params":{"formatId":112232,"domain":"https:\/\/prg.smartadserver.com","siteId":570800,"pageId":1732266}},{"bidder":"criteo","params":{"networkId":8579,"publisherSubId":"Bibmath.net"}},{"bidder":"pubmatic","params":{"publisherId":"158018","adSlot":"4966491"}},{"bidder":"adagio","params":{"organizationId":1117,"site":"bibmath-net","useAdUnitCodeAsAdUnitElementId":true,"placement":"Bibmath.net-Desktop-inarticle","environment":"desktop"}},{"bidder":"seedtag","params":{"publisherId":"7113-5278-01","adUnitId":"28911183","placement":"inArticle"}},{"bidder":"outbrain","params":{"publisher":{"id":"000e1603e3e8ae430228ecc6109d5017d7","name":"Refinery89","domain":"refinery89.com"},"tagid":"Bibmath.net-Desktop-inarticle"}},{"bidder":"gumgum","params":{"zone":"wezk7q0j","slot":1046808}}],"Outstream-VideoJS":[{"bidder":"appnexus","params":{"placementId":28980050,"video":"{\u0022skippable\u0022:true\u0022,\u0022playback_methods\u0022:[\u0022auto_play_sound_off\u0022]}"}},{"bidder":"smartadserver","params":{"domain":"https:\/\/prg.smartadserver.com","formatId":92584,"pageId":1732266,"siteId":570800,"video":{"protocol":8,"startDelay":1}}},{"bidder":"pubmatic","params":{"adSlot":"5267730","publisherId":"158018","video":{"mimes":["video\/mp4","video\/x-flv","video\/webm","application\/javascript"],"skippable":true,"linearity":1,"placement":2,"minduration":5,"maxduration":60,"api":[1,2],"playbackmethod":2,"protocols":[2,3,5,6]},"outstreamAU":"refinery89_outstream"}}]},"inimage_bidders":[],"yield_partners":["2","3","5","1","4","6","8","9","10","11"],"refresh":{"active":1,"start":30000,"viewable":5000,"seconds":30000,"expand":0,"interval":3000},"outstream":{"active":true,"adunit":{"selector":".r89-outstream-video","selector_mobile":".r89-outstream-video","max_width":640,"is_mobile":1,"is_desktop":1,"gam_ad_unit":"Bibmathnet-Video-Outstream","has_amazon":1,"corner_scroll":0,"mobile_corner_scroll":0,"desktop_scrolling_position":"bottom","mobile_scrolling_position":"bottom","refresh":0,"show_close_button":0,"show_label":1,"slot_name":"\/15748617,22713243947\/Bibmathnet\/Bibmathnet-Video-Outstream","div_id":"video-outstream","mobile_sizes":["1x1","300x250","320x100","320x180","300x100","320x50","300x50"],"mobile_gpt_sizes":[[1,1],[300,250],[320,100],[320,180],[300,100],[320,50],[300,50]],"mobile_aps_sizes":[[1,1],[300,250],[320,100],[320,180],[300,100],[320,50],[300,50]],"mobile_pbjs_sizes":[[1,1],[300,250],[320,100],[320,180],[300,100],[320,50],[300,50]],"desktop_sizes":["1x1","300x250","336x280","300x300","320x240","320x180","500x90","320x100","300x100","468x60","320x50"],"desktop_gpt_sizes":[[1,1],[300,250],[336,280],[300,300],[320,240],[320,180],[500,90],[320,100],[300,100],[468,60],[320,50]],"desktop_aps_sizes":[[1,1],[300,250],[336,280],[300,300],[320,240],[320,180],[500,90],[320,100],[300,100],[468,60],[320,50]],"desktop_pbjs_sizes":[[1,1],[300,250],[336,280],[300,300],[320,240],[320,180],[500,90],[320,100],[300,100],[468,60],[320,50]],"mobile_bidder":"Video-Outstream","desktop_bidder":"Video-Outstream","position":{"id":1,"name":"appendChild"}},"deal_id_exception":[1761401,1706283,1634396,1634405,1634407,1657104,1796289,1550557],"line_item_exception":[27192242,27389235,570148930,575454080],"ad_slot_id":23},"video_overlay":{"active":0,"mid-roll":{"active":0},"post-roll":{"active":0}},"custom_adunits":[],"sticky_sidebar":{"active":false},"interstitial":{"active":false,"adunit":[],"ad_slot_id":22},"elastic_native":false,"outbrain":{"active":false,"widgets":[],"lazy_load":false},"inimage_adunits":{"active":0,"ad_units":[]},"in_image":false,"cmp":{"active":true,"hosted":true,"type":"consentmanagernet","id":"b65883afb1e6b","betting":false},"url_filters":{"exact":[],"partial":["\/forums\/login.php"],"exact_restricted":["\/forums\/login.php"],"partial_restricted":[]},"site_price_rules":{"T2":{"1":["0.25","h"],"4":["0.25","t"],"8":["0.35","h"],"14":["0.04","h"]}},"config":{"is_desktop":0,"is_facebook_app":0,"is_mobile":1,"prefix":"r89-","preview":0,"restrictedAds":0,"screenWidthKey":"0-320","currentUrl":{"path":null,"titleTags":[]},"labelStyle":{"color":"#999999","textAlign":"center","fontSize":"12px","lineHeight":"16px","margin":"0px","padding":"4px 0 3px 5px","fontFamily":"Arial"},"positionNames":["insertBefore","insertAfter","appendChild"],"demandTier":"ROW","priceRules":[],"integrations":{"gpt":true,"pbjs":true,"aps":true},"website_id":1721,"website_key_value":"bibmath.net","website_country_code":"FR","website_base_url":"bibmath.net","publisher_id":"600","desktop_width":992,"adunit_wrapper_sticky_top":"0px","bidder_ids":{"appnexus":1,"rubicon":2,"criteo":3,"weborama":4,"justpremium":5,"smartadserver":6,"openx":7,"improvedigital":8,"pubmatic":9,"adhese":10,"richaudience":11,"teads":12,"nextdaymedia":14,"tl_appnexus":15,"tl_rubicon":16,"tl_adform":17,"dad2u_smartadserver":19,"ix":20,"sovrn":21,"unruly":23,"showheroes-bs":24,"rhythmone":25,"tl_richaudience":27,"adyoulike":28,"inskin":29,"tl_pubmatic":32,"adform":33,"invibes":34,"adagio":35,"seedtag":36,"triplelift":37,"onemobile":38,"outbrain":40,"gps_appnexus":41,"operaads":42,"medianet":43,"freewheel-ssp":47,"sharethrough":49,"ogury":50,"adpone":51,"onetag":52,"taboola":53,"weborama_appnexus":54,"connectad":62,"gumgum":65,"eplanning":66,"smilewanted":67,"rise":68,"nextmillennium":69,"oms":71,"amx":72,"nexx360":75,"brave":76},"ad_label_text":"\u0026#x25BC; Ad by Refinery89","infinite_scroll":0,"skin":{"active":0,"backgroundTopOffset":0,"sidelinksMargin":0},"gam_ad_unit":"Bibmathnet","timeouts":{"default":1000,"atf":750,"incontent":1000,"btf":2000,"low":3000,"refresh":1000,"lazy":750,"outstream":1000,"sticky":1500},"key_value_price_rules":1,"gpt_options":{"set_centering":1,"disable_initial_load":1,"collapse_empty_divs":1,"enable_single_request":1},"gam_network_id":"15748617,22713243947","sticky":{"footer":{"slotIds":["desktop-billboard-low","mobile-sticky-footer"],"orderIdsFilter":[2565064030,2565063550,2823227725,2758760599,2758307477,3009150654,3008364172,3244316152,3244316143]},"header":{"slotIds":[]}},"refresh":{"active":1,"start":30000,"viewable":5000,"seconds":30000,"expand":0,"interval":3000},"in_image":false,"cmp":{"active":true,"hosted":true,"type":"consentmanagernet","id":"b65883afb1e6b","betting":false},"site_price_rules":{"T2":{"1":["0.25","h"],"4":["0.25","t"],"8":["0.35","h"],"14":["0.04","h"]}},"scriptTimeout":{"active":0,"options":[0],"timeout":0},"contextual":{"siteIabCategories":["680"],"active":0,"pageIabCategories":[],"pageTopics":[],"brandSafe":null,"filters":["\/tag\/","\/category\/","\/categorie\/","\/search\/","\/zoeken","\/profiel\/","\/profile\/","\/threads\/","\/author\/"]},"outstream":1,"video_overlay":0,"stickySidebar":0,"interstitial":0,"outbrain":{"active":0,"lazy_load":false},"yieldPartners":["2","3","5","1","4","6","8","9","10","11"],"urlFilters":{"exact":[],"partial":["\/forums\/login.php"],"exact_restricted":["\/forums\/login.php"],"partial_restricted":[]},"track_functions":0,"prioritize_custom_ad_units":0,"track_bids":0,"track_creative_code":0}}; + +function setStickyCloseButton(adpPosition,closeButtonPosition,slot,slotElement,slotElementParent,size,campaignId){const needCloseBtn="footer"!==adpPosition||!r89Data.config.sticky[adpPosition].orderIdsFilter.includes(campaignId),closeButtonExist=null!==slotElementParent.querySelector(`.r89-sticky-${closeButtonPosition}-close-button`),is1x1=1===size[0]&&1===size[1];let hasPrebidSize=slot.getTargeting("hb_size");if(needCloseBtn){if(function addTransitionForBillboard(slotElement){try{const winningBidders=r89_pbjs.getAllPrebidWinningBids();for(let i2=0;i2{slotElement.style.maxHeight="250px",slotElement.style.transition="max-height 0.3s ease-in-out"})),slotElement.addEventListener("mouseleave",(()=>{slotElement.style.maxHeight="100px",slotElement.style.transition="max-height 0.3s ease-in-out"}));break}}catch(err){console.log("Something went wrong attaching the mouse hover effect for 970x250")}}(slotElement),slotElement.style.maxHeight=180===size[1]?"180px":"100px",slotElement.style.overflow="hidden",!closeButtonExist){if(is1x1&&hasPrebidSize.length>0)var[stickyWidth,stickyHeight]=hasPrebidSize[0].split("x");"2"===stickyWidth&&"2"===stickyHeight?slotElementParent.style.display="none":r89.helpers.createStickyCloseButton(slotElementParent,closeButtonPosition)}}else slotElementParent.style.display="none"}const gptEventListeners={slotRequested:({slot:slot})=>{const slotId=slot.getSlotElementId();if(r89.session.track.adsLoad(),r89.log(`GPT: slotRequested for ${slotId}`),null===document.getElementById(slotId)&&r89.log(`Slot ID ${slotId} not found in the DOM`),r89Data.config.outstream&&slotId===r89.outstream.adunit.id)r89.outstream.done();else try{const adunit=r89.adunits.searchBatches(slotId),adunitExceptionsList=adunit.refreshed||adunit.lazy_load||adunit.is_fallback,adunitBatch=adunit.batch,adunitsBatchAds=r89.adunits.placedItems[adunitBatch];adunit.rendered=!0;const renderStatus=adunitsBatchAds.map((el=>el.rendered));adunitExceptionsList||renderStatus.includes(!1)?r89.log(`GPT: End of batch ${adunitBatch} placement ${adunitsBatchAds.length}/${adunitsBatchAds.length}`):(r89.adunits.updateCurrentBatch(),r89.adunits.placeBatch())}catch(e){r89.log(`GPT: Error in slotRequested for ${slotId}`)}},impressionViewable:({slot:slot})=>{const slotId=slot.getSlotElementId(),adunit=r89.adunits.searchBatches(slotId);adunit&&(adunit.viewable=!0)},slotVisibilityChanged:({slot:slot,inViewPercentage:inViewPercentage})=>{const slotId=slot.getSlotElementId(),adunit=r89.adunits.searchBatches(slotId);adunit&&(adunit.visible=inViewPercentage>50)},slotRenderEnded:({slot:slot,isEmpty:isEmpty,size:size,campaignId:campaignId})=>{const slotId=slot.getSlotElementId(),adunit=r89.adunits.searchBatches(slotId),slotIdRaw=slotId.slice(r89Data.config.prefix.length,slotId.lastIndexOf("-")),slotElement=document.getElementById(slotId),isStickyFooter=r89Data.config.sticky.footer.slotIds.includes(slotIdRaw),isStickyHeader=r89Data.config.sticky.header.slotIds.includes(slotIdRaw),isOutstream=r89Data.config.outstream&&slotId===r89.outstream.adunit.id;r89.log(`GPT: SlotRenderEnded for ${slotId}`),isEmpty?((isStickyFooter||isStickyHeader)&&(slotElement.parentNode.style.display="none"),adunit.failedCount++):(isStickyFooter&&setStickyCloseButton("footer","top",slot,slotElement,slotElement.parentNode,size,campaignId),isStickyHeader&&setStickyCloseButton("header","bottom",slot,slotElement,slotElement.parentNode,size,campaignId),isOutstream&&(slotElement.parentNode.style.margin="20px auto"),adunit.isEmpty=!1)}};function initGPT(){r89.log("Init: GPT"),googletag.cmd.push((function(){!function setPublisherTargeting(){const{website_key_value:website_key_value,publisher_id:publisher_id,website_country_code:website_country_code,screenWidthKey:screenWidthKey,scriptTimeout:scriptTimeout,is_facebook_app:is_facebook_app,currentUrl:currentUrl,preview:preview,yieldPartners:yieldPartners,contextual:contextual2,restrictedAds:restrictedAds,cmp:cmp2,website_id:website_id}=r89Data.config,contextualStatus="done"===r89.contextual.status,targetingr89Data={website_id:website_id.toString(),site:website_key_value,publisher:publisher_id,website_cc:website_country_code,it:"2",screen_width:screenWidthKey,scrpt_to:scriptTimeout.timeout.toString(),is_facebook_app:is_facebook_app.toString(),title_tags:currentUrl.titleTags.length>0?currentUrl.titleTags:null,preview:preview?"yes":null,yield_partners:yieldPartners.length>0?yieldPartners:null,iab_content_taxonomy:contextual2.siteIabCategories.length>0?contextual2.siteIabCategories:null,restricted:restrictedAds?"1":null,page_iab_taxonomy:contextualStatus&&contextual2.pageIabCategories.length>0?contextual2.pageIabCategories:null,page_topics:contextualStatus&&contextual2.pageTopics.length>0?contextual2.pageTopics:null,page_bs:contextualStatus&&contextual2.brandSafe?contextual2.brandSafe:null,btng_aprvd:cmp2.betting&&r89.cmp.checkCustomPurpose(50)?"1":"0"};if(Object.keys(targetingr89Data).forEach((key=>{const value=targetingr89Data[key];null!=value&&googletag.pubads().setTargeting(key,value)})),cmp2.active?r89.cmp.checkGDPRApplies()?r89.cmp.checkFullConsent()?googletag.pubads().setTargeting("adConsent","2"):r89.cmp.checkLimitedAds()?googletag.pubads().setTargeting("adConsent","1"):googletag.pubads().setTargeting("adConsent","0"):googletag.pubads().setTargeting("adConsent","3"):googletag.pubads().setTargeting("adConsent","4"),void 0!==r89.pageConfig&&"object"==typeof r89.pageConfig.targetingKeys)for(const targetingKey in r89.pageConfig.targetingKeys)googletag.pubads().setTargeting(targetingKey,r89.pageConfig.targetingKeys[targetingKey])}(),googletag.pubads().disableInitialLoad(),googletag.pubads().setCentering(!0),googletag.pubads().collapseEmptyDivs(Boolean(r89Data.gpt_options.collapse_empty_divs)),googletag.pubads().enableSingleRequest(),googletag.enableServices(),Object.keys(gptEventListeners).forEach((listener=>{googletag.pubads().addEventListener(listener,gptEventListeners[listener])}))}))}const bidderSettings={standard:{storageAllowed:!0},criteo:{fastBidVersion:"latest"}};function initPBJS(seller,cmp2,exchange_rate){r89_pbjs.que.push((function(){r89_pbjs.bidderSettings=bidderSettings,r89_pbjs.setConfig(function setPrebidConfig(seller,cmp2,exchange_rate){const{pageIabCategories:pageIabCategories,pageTopics:pageTopics}=r89Data.config.contextual,hasContextual="done"===r89.contextual.status,keyValues=r89.helpers.removeNulls({site:r89Data.config.website_key_value,publisher:r89Data.config.publisher_id,page_iab_taxonomy:hasContextual&&pageIabCategories.length>0?r89Data.config.contextual.pageIabCategories:null,page_topics:hasContextual&&pageTopics.length>0?r89Data.config.contextual.pageTopics:null});let prebidConfig={schain:{validation:"strict",config:{ver:"1.0",complete:1,nodes:[{asi:"refinery89.com",sid:seller.id,hp:1}]}},cpmRoundingFunction:Math.round,bidderSequence:"fixed",currency:{adServerCurrency:"EUR",granularityMultiplier:1,rates:{USD:{USD:1,EUR:exchange_rate.eur}}},enableTIDs:!0,floors:{},priceGranularity:{buckets:[{precision:2,max:3,increment:.01},{max:8,increment:.05},{max:20,increment:.1},{max:25,increment:.25}]},allowActivities:{accessDevice:{rules:[{allow:!0}]}},userSync:{syncEnabled:!0,filterSettings:{iframe:{bidders:["appnexus","justpremium","rubicon","criteo","teads","sharethrough","adform","seedtag","smartadserver","ogury","triplelift","pubmatic","connectad"],filter:"include"},image:{bidders:"*",filter:"include"}},syncsPerBidder:5,auctionDelay:100,enableOverride:!1,aliasSyncEnabled:!0,userIds:[{name:"unifiedId",params:{url:"//match.adsrvr.org/track/rid?ttd_pid=6aarzke&fmt=json"},storage:{type:"cookie",name:"pbjs-unifiedid",expires:60}},{name:"sharedId",storage:{name:"_sharedID",type:"cookie",expires:30}},{name:"id5Id",params:{partner:985,externalModuleUrl:"https://cdn.id5-sync.com/api/1.0/id5PrebidModule.js"},storage:{type:"html5",name:"id5id",expires:90,refreshInSeconds:7200}}]},appnexusAuctionKeywords:keyValues,improvedigital:{usePrebidSizes:!0,singleRequest:!0},outbrain:{bidderUrl:"https://b1h.zemanta.com/api/bidder/prebid/bid/",usersyncUrl:"https://b1h.zemanta.com/usersync/prebid"},rubicon:{rendererConfig:{align:"center",position:"append",closeButton:!1,label:"Advertisement",collapse:!0}},targetingControls:{allowTargetingKeys:["BIDDER","AD_ID","PRICE_BUCKET","SIZE","DEAL","FORMAT","UUID","CACHE_ID","CACHE_HOST","title","body","body2","sponsoredBy","image","icon","clickUrl","displayUrl","cta"]},realTimeData:{dataProviders:[{name:"timeout",params:{rules:{includesVideo:{true:200,false:50},deviceType:{2:50,4:100,5:200},connectionSpeed:{slow:400,medium:200,fast:100,unknown:50}}}}]},bidderTimeout:2e3};return cmp2.active&&(prebidConfig.consentManagement={gdpr:{cmpApi:"iab",timeout:1e4,defaultGdprScope:!1}}),prebidConfig}(seller,cmp2,exchange_rate)),r89_pbjs.aliasBidder("improvedigital","weborama"),r89_pbjs.aliasBidder("appnexus","nextdaymedia"),r89_pbjs.aliasBidder("appnexus","gps_appnexus"),r89_pbjs.aliasBidder("appnexus","weborama_appnexus"),r89_pbjs.aliasBidder("appnexus","tl_appnexus"),r89_pbjs.aliasBidder("rubicon","tl_rubicon"),r89_pbjs.aliasBidder("adform","tl_adform"),r89_pbjs.aliasBidder("teads","tl_teads"),r89_pbjs.aliasBidder("pubmatic","tl_pubmatic"),r89_pbjs.aliasBidder("richaudience","tl_richaudience"),r89_pbjs.setBidderConfig(function setBidderCustomConfig(seller){return{bidders:["weborama_appnexus"],config:{schain:{validation:"strict",config:{ver:"1.0",complete:1,nodes:[{asi:"refinery89.com",sid:seller.id,hp:1},{asi:"weborama.nl",sid:"10699",hp:1}]}}}}}(seller)),function setXandrConfig(){const{siteIabCategories:siteIabCategories,pageIabCategories:pageIabCategories,pageTopics:pageTopics,brandSafe:brandSafe}=r89Data.config.contextual,hasContextual="done"===r89.contextual.status,xandrKeys=r89.helpers.removeNulls({iab_content_taxonomy:siteIabCategories.length>0?siteIabCategories:null,page_iab_taxonomy:hasContextual&&pageIabCategories.length>0?pageIabCategories:null,page_topics:hasContextual&&pageTopics.length>0?pageTopics:null,page_bs:hasContextual&&null!==brandSafe?brandSafe:null,btng_aprvd:r89Data.config.cmp.betting&&r89.cmp.checkCustomPurpose(50)?"1":null});r89Data.config.xandrKeys=xandrKeys,Object.keys(xandrKeys).length>0&&r89_pbjs.setConfig({appnexusAuctionKeywords:xandrKeys})}()}))}function initAPS(seller){apstag.init({pubID:"d02f0482-a50f-427c-ac01-9856371f1f6b",adServer:"googletag",schain:{complete:1,ver:"1.0",nodes:[{asi:"refinery89.com",sid:seller.id,hp:1,name:seller.name}]}})}var commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function getDefaultExportFromCjs(x){return x&&x.__esModule&&Object.prototype.hasOwnProperty.call(x,"default")?x.default:x}function getAugmentedNamespace(n){if(n.__esModule)return n;var f=n.default;if("function"==typeof f){var a=function a2(){return this instanceof a2?Reflect.construct(f,arguments,this.constructor):f.apply(this,arguments)};a.prototype=f.prototype}else a={};return Object.defineProperty(a,"__esModule",{value:!0}),Object.keys(n).forEach((function(k){var d=Object.getOwnPropertyDescriptor(n,k);Object.defineProperty(a,k,d.get?d:{enumerable:!0,get:function(){return n[k]}})})),a}var sha256={exports:{}};var core={exports:{}};const require$$0=getAugmentedNamespace(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var hasRequiredCore,CryptoJS;function requireCore(){return hasRequiredCore||(hasRequiredCore=1,core.exports=(CryptoJS=CryptoJS||function(Math2,undefined$1){var crypto2;if("undefined"!=typeof window&&window.crypto&&(crypto2=window.crypto),"undefined"!=typeof self&&self.crypto&&(crypto2=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(crypto2=globalThis.crypto),!crypto2&&"undefined"!=typeof window&&window.msCrypto&&(crypto2=window.msCrypto),!crypto2&&void 0!==commonjsGlobal&&commonjsGlobal.crypto&&(crypto2=commonjsGlobal.crypto),!crypto2)try{crypto2=require$$0}catch(err){}var cryptoSecureRandomInt=function(){if(crypto2){if("function"==typeof crypto2.getRandomValues)try{return crypto2.getRandomValues(new Uint32Array(1))[0]}catch(err){}if("function"==typeof crypto2.randomBytes)try{return crypto2.randomBytes(4).readInt32LE()}catch(err){}}throw new Error("Native crypto module could not be used to get secure random number.")},create=Object.create||function(){function F(){}return function(obj){var subtype;return F.prototype=obj,subtype=new F,F.prototype=null,subtype}}(),C={},C_lib=C.lib={},Base=C_lib.Base=function(){return{extend:function(overrides){var subtype=create(this);return overrides&&subtype.mixIn(overrides),subtype.hasOwnProperty("init")&&this.init!==subtype.init||(subtype.init=function(){subtype.$super.init.apply(this,arguments)}),subtype.init.prototype=subtype,subtype.$super=this,subtype},create:function(){var instance=this.extend();return instance.init.apply(instance,arguments),instance},init:function(){},mixIn:function(properties){for(var propertyName in properties)properties.hasOwnProperty(propertyName)&&(this[propertyName]=properties[propertyName]);properties.hasOwnProperty("toString")&&(this.toString=properties.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),WordArray=C_lib.WordArray=Base.extend({init:function(words,sigBytes){words=this.words=words||[],this.sigBytes=sigBytes!=undefined$1?sigBytes:4*words.length},toString:function(encoder){return(encoder||Hex).stringify(this)},concat:function(wordArray){var thisWords=this.words,thatWords=wordArray.words,thisSigBytes=this.sigBytes,thatSigBytes=wordArray.sigBytes;if(this.clamp(),thisSigBytes%4)for(var i2=0;i2>>2]>>>24-i2%4*8&255;thisWords[thisSigBytes+i2>>>2]|=thatByte<<24-(thisSigBytes+i2)%4*8}else for(var j=0;j>>2]=thatWords[j>>>2];return this.sigBytes+=thatSigBytes,this},clamp:function(){var words=this.words,sigBytes=this.sigBytes;words[sigBytes>>>2]&=4294967295<<32-sigBytes%4*8,words.length=Math2.ceil(sigBytes/4)},clone:function(){var clone=Base.clone.call(this);return clone.words=this.words.slice(0),clone},random:function(nBytes){for(var words=[],i2=0;i2>>2]>>>24-i2%4*8&255;hexChars.push((bite>>>4).toString(16)),hexChars.push((15&bite).toString(16))}return hexChars.join("")},parse:function(hexStr){for(var hexStrLength=hexStr.length,words=[],i2=0;i2>>3]|=parseInt(hexStr.substr(i2,2),16)<<24-i2%8*4;return new WordArray.init(words,hexStrLength/2)}},Latin1=C_enc.Latin1={stringify:function(wordArray){for(var words=wordArray.words,sigBytes=wordArray.sigBytes,latin1Chars=[],i2=0;i2>>2]>>>24-i2%4*8&255;latin1Chars.push(String.fromCharCode(bite))}return latin1Chars.join("")},parse:function(latin1Str){for(var latin1StrLength=latin1Str.length,words=[],i2=0;i2>>2]|=(255&latin1Str.charCodeAt(i2))<<24-i2%4*8;return new WordArray.init(words,latin1StrLength)}},Utf8=C_enc.Utf8={stringify:function(wordArray){try{return decodeURIComponent(escape(Latin1.stringify(wordArray)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(utf8Str){return Latin1.parse(unescape(encodeURIComponent(utf8Str)))}},BufferedBlockAlgorithm=C_lib.BufferedBlockAlgorithm=Base.extend({reset:function(){this._data=new WordArray.init,this._nDataBytes=0},_append:function(data){"string"==typeof data&&(data=Utf8.parse(data)),this._data.concat(data),this._nDataBytes+=data.sigBytes},_process:function(doFlush){var processedWords,data=this._data,dataWords=data.words,dataSigBytes=data.sigBytes,blockSize=this.blockSize,nBlocksReady=dataSigBytes/(4*blockSize),nWordsReady=(nBlocksReady=doFlush?Math2.ceil(nBlocksReady):Math2.max((0|nBlocksReady)-this._minBufferSize,0))*blockSize,nBytesReady=Math2.min(4*nWordsReady,dataSigBytes);if(nWordsReady){for(var offset=0;offset>>7)^(gamma0x<<14|gamma0x>>>18)^gamma0x>>>3,gamma1x=W[i2-2],gamma1=(gamma1x<<15|gamma1x>>>17)^(gamma1x<<13|gamma1x>>>19)^gamma1x>>>10;W[i2]=gamma0+W[i2-7]+gamma1+W[i2-16]}var maj=a&b^a&c^b&c,sigma0=(a<<30|a>>>2)^(a<<19|a>>>13)^(a<<10|a>>>22),t1=h+((e<<26|e>>>6)^(e<<21|e>>>11)^(e<<7|e>>>25))+(e&f^~e&g)+K[i2]+W[i2];h=g,g=f,f=e,e=d+t1|0,d=c,c=b,b=a,a=t1+(sigma0+maj)|0}H2[0]=H2[0]+a|0,H2[1]=H2[1]+b|0,H2[2]=H2[2]+c|0,H2[3]=H2[3]+d|0,H2[4]=H2[4]+e|0,H2[5]=H2[5]+f|0,H2[6]=H2[6]+g|0,H2[7]=H2[7]+h|0},_doFinalize:function(){var data=this._data,dataWords=data.words,nBitsTotal=8*this._nDataBytes,nBitsLeft=8*data.sigBytes;return dataWords[nBitsLeft>>>5]|=128<<24-nBitsLeft%32,dataWords[14+(nBitsLeft+64>>>9<<4)]=Math2.floor(nBitsTotal/4294967296),dataWords[15+(nBitsLeft+64>>>9<<4)]=nBitsTotal,data.sigBytes=4*dataWords.length,this._process(),this._hash},clone:function(){var clone=Hasher.clone.call(this);return clone._hash=this._hash.clone(),clone}});C.SHA256=Hasher._createHelper(SHA2562),C.HmacSHA256=Hasher._createHmacHelper(SHA2562)}(Math),CryptoJS.SHA256));var encHex$1={exports:{}};encHex$1.exports=function(CryptoJS){return CryptoJS.enc.Hex}(requireCore());const encHex=getDefaultExportFromCjs(encHex$1.exports);window.r89=window.r89||{},window.googletag=window.googletag||{},googletag.cmd=googletag.cmd||[],window.r89_pbjs=window.r89_pbjs||{},r89_pbjs.que=r89_pbjs.que||[],r89Data.config.viewport={width:Math.max(document.documentElement.clientWidth||0,window.innerWidth||0),height:Math.max(document.documentElement.clientHeight||0,window.innerHeight||0)},r89Data.config.preview=window.location.search.includes("preview=1")?1:0,Object.assign(window.r89,{logStorage:[],log:function log(str){r89.logStorage.push(str),r89Data.config.preview&&console.log("R89 New | "+str)},helpers:function helpers(){return{filterUndefined:function(el){return void 0!==el},randomInt:function(min,max){return Math.floor(Math.random()*(max-min+1)+min)},uuid:function(){return"10000000-1000-4000-8000-100000000000".replace(/[018]/g,(c=>(c^crypto.getRandomValues(new Uint8Array(1))[0]&15>>c/4).toString(16)))},createStickyCloseButton:function(slotParent,topOrBottom){const closeButton=document.createElement("span");closeButton.className="r89-sticky-"+topOrBottom+"-close-button",closeButton.innerHTML='',closeButton.style.cssText=["position: absolute;",topOrBottom+": -30px;","right: 0;","z-index: 9999;","background: "+slotParent.style.backgroundColor+";","border-"+topOrBottom+"-left-radius: 10px;","border-"+topOrBottom+": 1px solid #ccc;","border-left: 1px solid #ccc;","width: 34px;","height: 30px;","color: #ccc;","cursor: pointer;","line-height: 30px;","font-size: 20px;","font-family: helvetica;","text-align: center;","display: none;","box-sizing: content-box"].join("\n"),slotParent.appendChild(closeButton),setTimeout((function(){closeButton.style.display="block"}),1e3),closeButton.addEventListener("click",(function(){slotParent.style.display="none"}))},getMediaTypeId:function(mediaType){switch(mediaType){case"banner":return 1;case"native":return 2;case"video":return 3;default:return 0}},getBidderId:function(r89Data2,bidderCode){return bidderCode in r89Data2.config.bidder_ids?r89Data2.config.bidder_ids[bidderCode]:null},checkScreenSize:function(r89Data2,el){return null===el.min_screen_width&&null!==el.max_screen_width&&el.max_screen_width>=r89Data2.config.viewport.width||(null===el.max_screen_width&&null!==el.min_screen_width&&el.min_screen_width<=r89Data2.config.viewport.width||null!==el.min_screen_width&&null!==el.max_screen_width&&el.min_screen_width<=r89Data2.config.viewport.width&&el.max_screen_width>=r89Data2.config.viewport.width)},removeNulls:function(obj){return Object.fromEntries(Object.entries(obj).filter((key=>!key.includes(null))))},removeFloorWithoutConsent:function(){return!!r89Data.config.cmp.active&&(!!r89.cmp.checkGDPRApplies()&&!r89.cmp.checkFullConsent())},getFloor:function(adSlotId){return r89Data.config.site_price_rules.hasOwnProperty(r89Data.config.demandTier)&&r89Data.config.site_price_rules[r89Data.config.demandTier].hasOwnProperty(adSlotId)?r89Data.config.site_price_rules[r89Data.config.demandTier][adSlotId]:!(!r89Data.config.priceRules.hasOwnProperty(r89Data.config.demandTier)||!r89Data.config.priceRules[r89Data.config.demandTier].hasOwnProperty(adSlotId))&&r89Data.config.priceRules[r89Data.config.demandTier][adSlotId]},getGAMFloor:function(adSlotId){if(r89.helpers.removeFloorWithoutConsent())return!1;if(!r89Data.config.key_value_price_rules)return!1;let floor=r89.helpers.getFloor(adSlotId);return!!floor&&("string"==typeof floor?floor:"go"==floor[1]?"go":"t"==floor[1]?"t"+floor[0]:floor[0])},getPrebidFloor:function(adSlotId){if(r89.helpers.removeFloorWithoutConsent())return!1;let floor=r89.helpers.getFloor(adSlotId);if(!floor)return!1;let intFloor=parseFloat(floor[0]);return"t"==floor[1]&&(intFloor/=2),{currency:"EUR",schema:{fields:["mediaType"]},values:{banner:intFloor,video:intFloor,native:intFloor}}}}}(),events:function events(){return{status:"uncalled",waiting:[],submitted:[],push:function(name,value){r89.log("Event: Push | "+name+": "+JSON.stringify(value)),this.waiting.push({timeNow:Math.round(performance.now()),eventName:name,value:value})},submit:function(){r89.events.waiting.length>0&&(r89.log("Event: Submit"),navigator.sendBeacon("https://d1hyarjnwqrenh.cloudfront.net/",JSON.stringify({pageId:r89.session.pageId,sessionId:r89.session.sessionId,websiteId:r89Data.config.website_id,pageURL:r89.session.pageURL,events:r89.events.waiting})),r89.log(JSON.stringify(r89.events.waiting)),r89.events.submitted.push(...r89.events.waiting),r89.events.waiting.length=0)},initialize:function(){this.status="called",r89.log("Event: Initialize"),setInterval((()=>r89.events.submit()),5e3),document.addEventListener("visibilitychange",(()=>{"hidden"===document.visibilityState&&r89.events.submit()}))},trackFunction:function(value){r89Data.config.track_functions&&r89.events.push("trackFunctions",value)},trackEvent:function(name,value){r89.events.push("trackFunctions",name+";"+value)}}}(),session:function session(){return{pageId:null,pageURL:null,sessionId:null,cookieName:"r89_sid",sessionTime:1800,sessionAllowed:!1,referrer:null,setPageId:function(){r89.session.pageId=r89.helpers.uuid();const sessionCookieValue=r89.session.getCookie();!1!==sessionCookieValue&&(r89.session.sessionId=sessionCookieValue),r89.session.pageURL=window.location.protocol+"//"+window.location.hostname+window.location.pathname},getCookie:function(){var _a;const sessionCookieValue=null==(_a=document.cookie.split("; ").find((row=>row.startsWith(r89.session.cookieName+"="))))?void 0:_a.split("=")[1];return void 0!==sessionCookieValue&&sessionCookieValue},setCookie:function(){if(r89.session.sessionAllowed){const sessionCookieValue=r89.session.getCookie();r89.session.sessionId=sessionCookieValue||r89.helpers.uuid(),document.cookie=r89.session.cookieName+"="+r89.session.sessionId+"; max-age="+r89.session.sessionTime+"; path=/",function sessionTracker(){try{const savedCookie="session_id",pageViewCookie="pv",defaultPageViewCookieValue=0,cookieParts=document.cookie.split(";").map((c=>c.trim())),existingSessionId=cookieParts.find((c=>c.startsWith(savedCookie+"="))),existingPageViewCookieValue=cookieParts.find((c=>c.startsWith(pageViewCookie+"=")));r89.sessionId="",r89.pageViewCookie="";const now=new Date;if(now.setTime(now.getTime()+9e5),existingSessionId)if(r89.sessionId=existingSessionId.split("=")[1],existingPageViewCookieValue){const updatedPageView=parseInt(existingPageViewCookieValue.split("=")[1],10)+1;document.cookie=`${pageViewCookie}=${updatedPageView};expires=${now.toUTCString()};path=/`,r89.pageViewCookie=updatedPageView}else document.cookie=`${pageViewCookie}=${defaultPageViewCookieValue};expires=${now.toUTCString()};path=/`,r89.pageViewCookie=defaultPageViewCookieValue;else{const minLength=12,maxLength=30,randomLength=Math.floor(Math.random()*(maxLength-minLength+1))+minLength,chars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";let newSessionId="";for(let i2=0;i20&&(navigator.userAgent.match(/FBAN|FBAV/i)?r89.session.referrer="https://www.facebook.com/":document.referrer.match("quicksearchbox")?r89.session.referrer="https://discover.google.com/":r89.session.referrer=document.referrer),r89.session.track.tagLoadFired=!1,r89.session.track.adsLoadFired=!1,r89.session.setPageId(),r89.session.track.tagLoad()}}}(),loadScripts:function loadScripts({scripts:scripts}){return{status:"uncalled",setStatus:function(status){this.status=status},getStatus:function(){return this.status},main:function(){r89.log("LoadScripts: Main"),"uncalled"==this.status&&(r89.events.trackFunction("loadScriptsMain"),r89.loadScripts.setStatus("loading"),r89.loadScripts.gpt())},done:function(){r89.log("LoadScripts: Done"),r89.events.trackFunction("loadScriptsDone"),setTimeout((()=>{r89.log("Timeout: "+r89Data.config.scriptTimeout.timeout),r89.loadScripts.setStatus("done"),r89.init.main()}),r89Data.config.scriptTimeout.timeout)},gpt:function(){r89.log("LoadScripts: GPT"),r89.events.trackFunction("loadScriptsGPT");const script=document.createElement("script");script.src="https://securepubads.g.doubleclick.net/tag/js/gpt.js",script.type="text/javascript",script.async=!0,document.head.appendChild(script),googletag.cmd.push((function(){r89.events.trackFunction("loadScriptsGPTPushed"),r89.loadScripts.pbjs()}))},pbjs:function(){if(r89.events.trackFunction("loadScriptsPBJS"),r89Data.config.integrations.pbjs){r89.log("LoadScripts: PBJS");const script=document.createElement("script");script.src=scripts.pbjs,script.type="text/javascript",script.async=!0,document.head.appendChild(script),r89_pbjs.que.push((function(){r89.loadScripts.aps()}))}else r89.log("LoadScripts: No PBJS"),r89.loadScripts.aps()},aps:function(){r89.events.trackFunction("loadScriptsAPS"),r89Data.config.integrations.aps?(r89.log("LoadScripts: APS"),function(a9,a,p,s,t,A,g){function q(c,r){a[a9]._Q.push([c,r])}a[a9]||(a[a9]={init:function(){q("i",arguments)},fetchBids:function(){q("f",arguments)},setDisplayBids:function(){},targetingKeys:function(){return[]},_Q:[]},(A=p.createElement(s)).async=!0,A.src="//c.amazon-adsystem.com/aax2/apstag.js",(g=p.getElementsByTagName(s)[0]).parentNode.insertBefore(A,g))}("apstag",window,document,"script"),r89.loadScripts.done()):(r89.log("LoadScripts: No APS"),r89.loadScripts.done())}}}(r89Data),init:function init({seller:seller,cmp:cmp2,exchange_rate:exchange_rate}){return{status:"uncalled",setStatus:function(status){this.status=status},getStatus:function(){return this.status},main:function(){if(r89.log("Init: Main"),r89.log("Init: LoadScripts Status - "+r89.loadScripts.getStatus()),r89.log("Init: CMP Status - "+r89.cmp.getStatus()),"done"===r89.loadScripts.getStatus()&&"done"===r89.cmp.getStatus()){r89Data.config.prioritize_custom_ad_units&&r89.customAdunits.insert(),r89.events.trackFunction("initMain"),r89.log("Init: Loading"),r89.init.setStatus("loading");const integrations={gpt:r89Data.config.integrations.gpt?initGPT():r89.log("Init: No GPT"),pbjs:r89Data.config.integrations.pbjs?initPBJS(seller,cmp2,exchange_rate):r89.log("Init: No PBJS"),aps:r89Data.config.integrations.aps?initAPS(seller):r89.log("Init: No APS")};Object.keys(integrations).forEach((key=>{r89.log(`Init: ${key}`)})),r89.init.done()}},done:function(){r89.log("Init: Done"),this.setStatus("done"),r89.adunits.placeAds()}}}(r89Data),demandTier:function demandTier(){return{main:function(){try{var country;fetch("https://d294j4en0095q1.cloudfront.net/demandTiersFloors.json",{mode:"cors",method:"GET"}).then((response=>{if(response.ok)return response;throw new Error("Network response was not ok")})).then((function(data){return country=data.headers.get("Cloudfront-Viewer-Country"),data.json()})).then((function(demandData){Object.keys(demandData.countryTiers).includes(country)&&(r89Data.config.demandTier=demandData.countryTiers[country]),r89Data.config.key_value_price_rules?void 0!==demandData.priceRules&&(r89Data.config.priceRules=demandData.priceRules):googletag.cmd.push((function(){googletag.pubads().setTargeting("tier",r89Data.config.demandTier)}))})).catch((error=>{r89.log("Error:",error),googletag.cmd.push((function(){googletag.pubads().setTargeting("tier","ROW")}))}))}catch{r89.log("CAN_NOT_MAKE_DEMAND_TIER_REQUEST")}}}}(),cmp:function cmp({cmp:cmpConfig}){return{status:"uncalled",setStatus:function(status){this.status=status},getStatus:function(){return this.status},tcData:{},checkConsent:function(purposeId){return"object"==typeof r89.cmp.tcData&&("object"==typeof r89.cmp.tcData.purpose&&("object"==typeof r89.cmp.tcData.purpose.consents&&("boolean"==typeof r89.cmp.tcData.purpose.consents[purposeId]&&r89.cmp.tcData.purpose.consents[purposeId])))},checkLegitimateInterest:function(legitimateInterestId){return"object"==typeof r89.cmp.tcData&&("object"==typeof r89.cmp.tcData.purpose&&("object"==typeof r89.cmp.tcData.purpose.legitimateInterests&&("boolean"==typeof r89.cmp.tcData.purpose.legitimateInterests[legitimateInterestId]&&r89.cmp.tcData.purpose.legitimateInterests[legitimateInterestId])))},checkFullConsent:function(){let consent=!0;return[1,2,3,4].forEach((id=>{r89.cmp.checkConsent(id)||(consent=!1)})),consent},checkLimitedAds:function(){let limitedAds=!0;return[2,7,9,10].forEach((id=>{r89.cmp.checkLegitimateInterest(id)||(limitedAds=!1)})),limitedAds},checkCustomPurpose:function(purposeId){return"object"==typeof r89.cmp.tcData&&("object"==typeof r89.cmp.tcData.customPurposeConsents&&("boolean"==typeof r89.cmp.tcData.customPurposeConsents[purposeId]&&r89.cmp.tcData.customPurposeConsents[purposeId]))},checkCustomVendor:function(vendorId){return"object"==typeof r89.cmp.tcData&&("object"==typeof r89.cmp.tcData.customVendorConsents&&("boolean"==typeof r89.cmp.tcData.customVendorConsents[vendorId]&&r89.cmp.tcData.customVendorConsents[vendorId]))},checkGDPRApplies:function(){return"object"==typeof r89.cmp.tcData&&("boolean"==typeof r89.cmp.tcData.gdprApplies&&r89.cmp.tcData.gdprApplies)},load:function(){if(r89.events.trackFunction("cmpLoad"),cmpConfig.active)if(cmpConfig.hosted&&"quantcast"==cmpConfig.type){let makeStub2=function(){const queue=[];let cmpFrame,win=window;for(;win;){try{if(win.frames.__tcfapiLocator){cmpFrame=win;break}}catch(ignore){}if(win===window.top)break;win=win.parent}cmpFrame||(!function addFrame(){const doc=win.document,otherCMP=!!win.frames.__tcfapiLocator;if(!otherCMP)if(doc.body){const iframe=doc.createElement("iframe");iframe.style.cssText="display:none",iframe.name="__tcfapiLocator",doc.body.appendChild(iframe)}else setTimeout(addFrame,5);return!otherCMP}(),win.__tcfapi=function tcfAPIHandler(){let gdprApplies;const args=arguments;if(!args.length)return queue;if("setGdprApplies"===args[0])args.length>3&&2===args[2]&&"boolean"==typeof args[3]&&(gdprApplies=args[3],"function"==typeof args[2]&&args[2]("set",!0));else if("ping"===args[0]){const retr={gdprApplies:gdprApplies,cmpLoaded:!1,cmpStatus:"stub"};"function"==typeof args[2]&&args[2](retr)}else"init"===args[0]&&"object"==typeof args[3]&&(args[3]=Object.assign(args[3],{tag_version:"V2"})),queue.push(args)},win.addEventListener("message",(function postMessageEventHandler(event){const msgIsString="string"==typeof event.data;let json={};try{json=msgIsString?JSON.parse(event.data):event.data}catch(ignore){}const payload=json.__tcfapiCall;payload&&window.__tcfapi(payload.command,payload.version,(function(retValue,success){let returnMsg={__tcfapiReturn:{returnValue:retValue,success:success,callId:payload.callId}};msgIsString&&(returnMsg=JSON.stringify(returnMsg)),event&&event.source&&event.source.postMessage&&event.source.postMessage(returnMsg,"*")}),payload.parameter)}),!1))};if(r89.log("CMP: Hosted Quantcast"),r89.cmp.setStatus("loading"),r89.events.push("cmp",{hosted:r89Data.config.cmp.hosted,type:r89Data.config.cmp.type,status:"calling"}),r89Data.config.cmp.consent_base_url){r89.log("CMP: Base url");var host=window.location.hostname.split(".")[window.location.hostname.split(".").length-2]+"."+window.location.hostname.split(".")[window.location.hostname.split(".").length-1]}else{r89.log("CMP: No base url");host=window.location.hostname}const element=document.createElement("script"),firstScript=document.getElementsByTagName("script")[0],url="https://cmp.quantcast.com".concat("/choice/",r89Data.config.cmp.id,"/",host,"/choice.js?tag_version=V2");let uspTries=0;const uspTriesLimit=3;element.async=!0,element.type="text/javascript",element.src=url,firstScript.parentNode.insertBefore(element,firstScript),makeStub2();const uspStubFunction=function(){const arg=arguments;typeof window.__uspapi!==uspStubFunction&&setTimeout((function(){void 0!==window.__uspapi&&window.__uspapi.apply(window.__uspapi,arg)}),500)},checkIfUspIsReady=function(){uspTries++,window.__uspapi===uspStubFunction&&uspTries0)for(var d=0;d0?"id="+h.cmp_id:"")+("cmp_cdid"in h?"&cdid="+h.cmp_cdid:"")+"&h="+encodeURIComponent(g)+(""!=c?"&cmpdesign="+encodeURIComponent(c):"")+(""!=f?"&cmpregulationkey="+encodeURIComponent(f):"")+(""!=r?"&cmpgppkey="+encodeURIComponent(r):"")+(""!=n?"&cmpatt="+encodeURIComponent(n):"")+("cmp_params"in h?"&"+h.cmp_params:"")+(u.cookie.length>0?"&__cmpfcc=1":"")+"&l="+o.toLowerCase()+"&o="+(new Date).getTime(),j.type="text/javascript",j.async=!0,u.currentScript&&u.currentScript.parentElement)?u.currentScript.parentElement.appendChild(j):u.body?u.body.appendChild(j):(0==(t=v("body")).length&&(t=v("div")),0==t.length&&(t=v("span")),0==t.length&&(t=v("ins")),0==t.length&&(t=v("script")),0==t.length&&(t=v("head")),t.length>0&&t[0].appendChild(j));let m="js",p=x("cmpdebugunminimized","cmpdebugunminimized"in h?h.cmpdebugunminimized:0)>0?"":".min";var j,t;("1"==x("cmpdebugcoverage","cmp_debugcoverage"in h?h.cmp_debugcoverage:"")&&(m="instrumented",p=""),(j=u.createElement("script")).onload=r89.events.trackFunction("cmpStub2"),j.src=k+"//"+h.cmp_cdn+"/delivery/"+m+"/cmp"+b+p+".js",j.type="text/javascript",j.setAttribute("data-cmp-ab","1"),j.async=!0,u.currentScript&&u.currentScript.parentElement)?u.currentScript.parentElement.appendChild(j):u.body?u.body.appendChild(j):(0==(t=v("body")).length&&(t=v("div")),0==t.length&&(t=v("span")),0==t.length&&(t=v("ins")),0==t.length&&(t=v("script")),0==t.length&&(t=v("head")),t.length>0&&t[0].appendChild(j))}(),window.cmp_addFrame=function(b){if(!window.frames[b])if(document.body){const a=document.createElement("iframe");a.style.cssText="display:none","cmp_cdn"in window&&"cmp_ultrablocking"in window&&window.cmp_ultrablocking>0&&(a.src="//"+window.cmp_cdn+"/delivery/empty.html"),a.name=b,a.setAttribute("title","Intentionally hidden, please ignore"),a.setAttribute("role","none"),a.setAttribute("tabindex","-1"),document.body.appendChild(a)}else window.setTimeout(window.cmp_addFrame,10,b)},window.cmp_rc=function(h){let b=document.cookie,f="",d=0;for(;""!=b&&d<100;){for(d++;" "==b.substr(0,1);)b=b.substr(1,b.length);const g=b.substring(0,b.indexOf("="));if(-1!=b.indexOf(";"))var c=b.substring(b.indexOf("=")+1,b.indexOf(";"));else c=b.substr(b.indexOf("=")+1,b.length);h==g&&(f=c);let e=b.indexOf(";")+1;0==e&&(e=b.length),b=b.substring(e,b.length)}return f},window.cmp_stub=function(){const a=arguments;if(__cmp.a=__cmp.a||[],!a.length)return __cmp.a;"ping"===a[0]?2===a[1]?a[2]({gdprApplies:gdprAppliesGlobally,cmpLoaded:!1,cmpStatus:"stub",displayStatus:"hidden",apiVersion:"2.0",cmpId:31},!0):a[2](!1,!0):"getUSPData"===a[0]?a[2]({version:1,uspString:window.cmp_rc("")},!0):"getTCData"===a[0]||"addEventListener"===a[0]||"removeEventListener"===a[0]?__cmp.a.push([].slice.apply(a)):4==a.length&&!1===a[3]?a[2]({},!1):__cmp.a.push([].slice.apply(a))},window.cmp_gpp_ping=function(){return{gppVersion:"1.0",cmpStatus:"stub",cmpDisplayStatus:"hidden",supportedAPIs:["tcfca","usnat","usca","usva","usco","usut","usct"],cmpId:31}},window.cmp_gppstub=function(){const a=arguments;if(__gpp.q=__gpp.q||[],!a.length)return __gpp.q;const g=a[0],f=a.length>1?a[1]:null,e=a.length>2?a[2]:null;if("ping"===g)return window.cmp_gpp_ping();if("addEventListener"===g){__gpp.e=__gpp.e||[],"lastId"in __gpp||(__gpp.lastId=0),__gpp.lastId++;const c=__gpp.lastId;return __gpp.e.push({id:c,callback:f}),{eventName:"listenerRegistered",listenerId:c,data:!0,pingData:window.cmp_gpp_ping()}}if("removeEventListener"===g){let h=!1;__gpp.e=__gpp.e||[];for(let d=0;d<__gpp.e.length;d++)if(__gpp.e[d].id==e){__gpp.e[d].splice(d,1),h=!0;break}return{eventName:"listenerRemoved",listenerId:e,data:h,pingData:window.cmp_gpp_ping()}}return"getGPPData"===g?{sectionId:3,gppVersion:1,sectionList:[],applicableSections:[0],gppString:"",pingData:window.cmp_gpp_ping()}:"hasSection"===g||"getSection"===g||"getField"===g?null:void __gpp.q.push([].slice.apply(a))},window.cmp_msghandler=function(d){const a="string"==typeof d.data;try{var c=a?JSON.parse(d.data):d.data}catch(f){c=null}if("object"==typeof c&&null!==c&&"__cmpCall"in c){var b=c.__cmpCall;window.__cmp(b.command,b.parameter,(function(h,g){const e={__cmpReturn:{returnValue:h,success:g,callId:b.callId}};d.source.postMessage(a?JSON.stringify(e):e,"*")}))}if("object"==typeof c&&null!==c&&"__uspapiCall"in c){b=c.__uspapiCall;window.__uspapi(b.command,b.version,(function(h,g){const e={__uspapiReturn:{returnValue:h,success:g,callId:b.callId}};d.source.postMessage(a?JSON.stringify(e):e,"*")}))}if("object"==typeof c&&null!==c&&"__tcfapiCall"in c){b=c.__tcfapiCall;window.__tcfapi(b.command,b.version,(function(h,g){const e={__tcfapiReturn:{returnValue:h,success:g,callId:b.callId}};d.source.postMessage(a?JSON.stringify(e):e,"*")}),b.parameter)}if("object"==typeof c&&null!==c&&"__gppCall"in c){b=c.__gppCall;window.__gpp(b.command,(function(h,g){const e={__gppReturn:{returnValue:h,success:g,callId:b.callId}};d.source.postMessage(a?JSON.stringify(e):e,"*")}),"parameter"in b?b.parameter:null,"version"in b?b.version:1)}},window.cmp_setStub=function(a){a in window&&("function"==typeof window[a]||"object"==typeof window[a]||void 0!==window[a]&&null===window[a])||(window[a]=window.cmp_stub,window[a].msgHandler=window.cmp_msghandler,window.addEventListener("message",window.cmp_msghandler,!1))},window.cmp_setGppStub=function(a){a in window&&("function"==typeof window[a]||"object"==typeof window[a]||void 0!==window[a]&&null===window[a])||(window[a]=window.cmp_gppstub,window[a].msgHandler=window.cmp_msghandler,window.addEventListener("message",window.cmp_msghandler,!1))},window.cmp_addFrame("__cmpLocator"),"cmp_disableusp"in window&&window.cmp_disableusp||window.cmp_addFrame("__uspapiLocator"),"cmp_disabletcf"in window&&window.cmp_disabletcf||window.cmp_addFrame("__tcfapiLocator"),"cmp_disablegpp"in window&&window.cmp_disablegpp||window.cmp_addFrame("__gppLocator"),window.cmp_setStub("__cmp"),"cmp_disabletcf"in window&&window.cmp_disabletcf||window.cmp_setStub("__tcfapi"),"cmp_disableusp"in window&&window.cmp_disableusp||window.cmp_setStub("__uspapi"),"cmp_disablegpp"in window&&window.cmp_disablegpp||window.cmp_setGppStub("__gpp"),__tcfapi("ping",2,(pingReturn=>{r89.events.trackFunction("cmpPing")})),__cmp("addEventListener",["init",function(){r89.events.trackFunction("cmpInit")},!1],null),__cmp("addEventListener",["settings",function(){r89.events.trackFunction("cmpSettings")},!1],null),__tcfapi("addEventListener",2,r89.cmp.callback)):cmpConfig.hosted||"tcf2"!=cmpConfig.type||(r89.log("CMP: External TCF2"),r89.cmp.setStatus("loading"),r89.events.push("cmp",{hosted:r89Data.config.cmp.hosted,type:r89Data.config.cmp.type,status:"calling"}),this.checkApiStatus());else r89.log("CMP: Not needed"),r89.cmp.setStatus("done"),r89.session.sessionAllowed=!0,r89.cmp.done()},checkApiStatusCount:0,checkApiStatusMaxCount:15,checkApiStatus:function(){"undefined"==typeof __tcfapi?(++r89.cmp.checkApiStatusCount,r89.cmp.checkApiStatusCount<=r89.cmp.checkApiStatusMaxCount?(r89.log("CMP: Waiting for TCF API "+r89.cmp.checkApiStatusCount+"/"+r89.cmp.checkApiStatusMaxCount),setTimeout(r89.cmp.checkApiStatus,500)):r89.log("CMP: TCF API not available")):__tcfapi("addEventListener",2,r89.cmp.callback)},callbackTracked:!1,callback:function(tcData,success){if(r89.log("CMP: Callback"),r89.cmp.callbackTracked||(r89.cmp.callbackTracked=!0,r89.events.trackFunction("cmpCallbackTracked")),r89.cmp.tcData=tcData,"loaded"==tcData.cmpStatus&&"loading"==r89.cmp.getStatus()&&(r89.events.push("cmp",{hosted:r89Data.config.cmp.hosted,type:r89Data.config.cmp.type,status:"loaded"}),r89.events.trackFunction("cmpCallbackLoaded"),r89.cmp.setStatus("loaded")),r89Data.config.preview&&console.log(tcData),r89.cmp.done(),tcData.gdprApplies){if(success&&("tcloaded"===tcData.eventStatus||"useractioncomplete"===tcData.eventStatus)){if(r89.cmp.setStatus("done"),r89.cmp.checkConsent(1)&&(r89.session.sessionAllowed=!0,r89.session.setCookie()),r89.events.push("cmp",{hosted:r89Data.config.cmp.hosted,type:r89Data.config.cmp.type,status:r89.cmp.checkConsent(1)?"passed":"rejected"}),r89.events.trackFunction("cmpCallbackPassed"),r89Data.config.cmp.betting&&"useractioncomplete"==tcData.eventStatus&&r89.cmp.checkConsent(1)&&!r89.cmp.checkCustomPurpose(50)){const adhesePixel=document.createElement("script");adhesePixel.src="https://pool-igmn.adhese.com/tag/audience_sync.js",adhesePixel.type="text/javascript",adhesePixel.async=!0,adhesePixel.setAttribute("r89Data-igmn-opt","out"),document.getElementsByTagName("head")[0].appendChild(adhesePixel)}r89.init.main()}}else r89.cmp.setStatus("done"),r89.events.push("cmp",{hosted:r89Data.config.cmp.hosted,type:r89Data.config.cmp.type,status:"noGDPRApplies"}),r89.events.trackFunction("cmpCallbackPassed"),r89.init.main()},done:function(){r89.loadScripts.main()}}}(r89Data),bids:function bids(){return{request:function(batch){r89.log("Bids: Request "+batch);let timeout=r89Data.config.timeouts.default;batch in r89Data.config.timeouts&&(timeout=r89Data.config.timeouts[batch]);const refreshItems=r89.adunits.placedItems[batch].map((el=>el.slot)),slotIds=r89.adunits.placedItems[batch].map((el=>el.id)),slotsAPS=r89.adunits.placedItems[batch].map((el=>el.bidAPS)).filter(r89.helpers.filterUndefined),slotsPBJS=r89.adunits.placedItems[batch].map((el=>el.bidPBJS)).filter(r89.helpers.filterUndefined);slotsPBJS.forEach((slot=>{if(void 0!==slot.adSlotId&&void 0===slot.floors){let floors=r89.helpers.getPrebidFloor(slot.adSlotId);floors&&(slot.floors=floors),delete slot.adSlotId}}));const bidders=[];r89Data.config.integrations.aps&&slotsAPS.length>0&&bidders.push("aps"),r89Data.config.integrations.pbjs&&slotsPBJS.length>0&&bidders.push("pbjs");const requestManager={adserverRequestSent:!1};function headerBidderBack(bidder){!0!==requestManager.adserverRequestSent&&("aps"===bidder?requestManager.aps=!0:"pbjs"===bidder&&(requestManager.pbjs=!0),function allBiddersBack(){return bidders.map((function(bidder){return requestManager[bidder]})).filter(Boolean).length===bidders.length}()&&sendAdserverRequest())}function sendAdserverRequest(){!0!==requestManager.adserverRequestSent&&(requestManager.adserverRequestSent=!0,googletag.cmd.push((function(){googletag.pubads().refresh(refreshItems)})))}bidders.forEach((function(bidder){requestManager[bidder]=!1})),bidders.includes("aps")&&slotsAPS.length>0&&apstag.fetchBids({slots:slotsAPS,timeout:timeout},(function(){googletag.cmd.push((function(){apstag.setDisplayBids(),headerBidderBack("aps")}))})),bidders.includes("pbjs")&&slotsPBJS.length>0&&r89_pbjs.que.push((function(){r89_pbjs.requestBids({timeout:timeout,adUnits:slotsPBJS,bidsBackHandler:function(){googletag.cmd.push((function(){r89_pbjs.setTargetingForGPTAsync(slotIds),headerBidderBack("pbjs")}))}})})),0===bidders.length?sendAdserverRequest():window.setTimeout((function(){sendAdserverRequest()}),1.5*timeout)},trackViewableTime:function(){r89.log("Bids: TrackViewableTime"),this.trackViewableTimeInterval=window.setInterval((function(){if(!document.hidden)for(let batch in r89.adunits.placedItems)r89.adunits.placedItems[batch].forEach((function(el){el.visible&&el.refresh&&(el.viewableTime+=r89Data.config.refresh.interval,el.viewable&&el.viewableTime>=r89Data.config.refresh.viewable&&(el.doRefresh=!0))}))}),r89Data.config.refresh.interval)},trackRefresh:function(){r89.log("Bids: TrackRefresh"),this.trackRefreshInterval=window.setInterval((function(){if(!document.hidden)for(let batch in r89.adunits.placedItems)r89.adunits.placedItems[batch].forEach((function(el){el.isIntersectingAt50&&el.isEmpty&&el.failedCount<=2&&(el.doRefresh=!0),el.doRefresh&&el.refresh&&(el.visible||el.isIntersectingAt50&&el.isEmpty)&&(el.viewable=!1,el.viewableTime=0,el.doRefresh=!1,el.isIntersectingAt50=!1,el.isEmpty=!0,"video-outstream"===el.div_id&&r89.outstream.adunit.refreshCount++,r89.bids.refresh(el))}))}),r89Data.config.refresh.seconds)},lazy:function(el){r89.log("Bids: Lazy "+el.id);const timeout=r89Data.config.timeouts.lazy,bidders=[];r89Data.config.integrations.aps&&"bidAPS"in el&&bidders.push("aps"),r89Data.config.integrations.pbjs&&"bidPBJS"in el&&bidders.push("pbjs");const requestManager={adserverRequestSent:!1};function headerBidderBack(bidder){!0!==requestManager.adserverRequestSent&&("aps"===bidder?requestManager.aps=!0:"pbjs"===bidder&&(requestManager.pbjs=!0),function allBiddersBack(){return bidders.map((function(bidder){return requestManager[bidder]})).filter(Boolean).length===bidders.length}()&&sendAdserverRequest())}function sendAdserverRequest(){!0!==requestManager.adserverRequestSent&&(requestManager.adserverRequestSent=!0,googletag.cmd.push((function(){googletag.pubads().refresh([el.slot])})))}bidders.forEach((function(bidder){requestManager[bidder]=!1})),bidders.includes("aps")&&apstag.fetchBids({slots:[el.bidAPS],timeout:timeout},(function(){googletag.cmd.push((function(){apstag.setDisplayBids(),headerBidderBack("aps")}))})),bidders.includes("pbjs")&&r89_pbjs.que.push((function(){r89_pbjs.requestBids({timeout:timeout,adUnits:[el.bidPBJS],bidsBackHandler:function(){googletag.cmd.push((function(){r89_pbjs.setTargetingForGPTAsync([el.id]),headerBidderBack("pbjs")}))}})})),0===bidders.length?sendAdserverRequest():window.setTimeout((function(){sendAdserverRequest()}),1.5*timeout)},fallback:function(el){r89.log("Bids: Fallback "+el.id);const timeout=r89Data.config.timeouts.lazy,bidders=[];r89Data.config.integrations.aps&&"bidAPS"in el&&bidders.push("aps"),r89Data.config.integrations.pbjs&&"bidPBJS"in el&&bidders.push("pbjs");const requestManager={adserverRequestSent:!1};function headerBidderBack(bidder){!0!==requestManager.adserverRequestSent&&("aps"===bidder?requestManager.aps=!0:"pbjs"===bidder&&(requestManager.pbjs=!0),function allBiddersBack(){return bidders.map((function(bidder){return requestManager[bidder]})).filter(Boolean).length===bidders.length}()&&sendAdserverRequest())}function sendAdserverRequest(){!0!==requestManager.adserverRequestSent&&(requestManager.adserverRequestSent=!0,googletag.cmd.push((function(){googletag.pubads().refresh([el.slot])})))}bidders.forEach((function(bidder){requestManager[bidder]=!1})),bidders.includes("aps")&&apstag.fetchBids({slots:[el.bidAPS],timeout:timeout},(function(){googletag.cmd.push((function(){apstag.setDisplayBids(),headerBidderBack("aps")}))})),bidders.includes("pbjs")&&r89_pbjs.que.push((function(){r89_pbjs.requestBids({timeout:timeout,adUnits:[el.bidPBJS],bidsBackHandler:function(){googletag.cmd.push((function(){r89_pbjs.setTargetingForGPTAsync([el.id]),headerBidderBack("pbjs")}))}})})),0===bidders.length?sendAdserverRequest():window.setTimeout((function(){sendAdserverRequest()}),1.5*timeout)},refresh:function(el){r89.log("Bids: Refresh "+el.id),el.refreshed=!0,el.isIntersectingAt50=!0;const timeout=r89Data.config.timeouts.refresh,bidders=[];r89Data.config.integrations.aps&&"bidAPS"in el&&bidders.push("aps"),r89Data.config.integrations.pbjs&&"bidPBJS"in el&&bidders.push("pbjs");const requestManager={adserverRequestSent:!1};function headerBidderBack(bidder){!0!==requestManager.adserverRequestSent&&("aps"===bidder?requestManager.aps=!0:"pbjs"===bidder&&(requestManager.pbjs=!0),function allBiddersBack(){return bidders.map((function(bidder){return requestManager[bidder]})).filter(Boolean).length===bidders.length}()&&sendAdserverRequest())}function sendAdserverRequest(){!0!==requestManager.adserverRequestSent&&(requestManager.adserverRequestSent=!0,googletag.cmd.push((function(){el.slot.setTargeting("rfr",1),googletag.pubads().refresh([el.slot])})))}bidders.forEach((function(bidder){requestManager[bidder]=!1})),bidders.includes("aps")&&apstag.fetchBids({slots:[el.bidAPS],timeout:timeout},(function(){googletag.cmd.push((function(){apstag.setDisplayBids(),headerBidderBack("aps")}))})),bidders.includes("pbjs")&&r89_pbjs.que.push((function(){r89_pbjs.requestBids({timeout:timeout,adUnits:[el.bidPBJS],bidsBackHandler:function(){googletag.cmd.push((function(){r89_pbjs.setTargetingForGPTAsync([el.id]),headerBidderBack("pbjs")}))}})})),0===bidders.length?sendAdserverRequest():window.setTimeout((function(){sendAdserverRequest()}),1.5*timeout)},outstream:function(el){r89.log("Bids: Outstream "+el.id);const timeout=r89Data.config.timeouts.outstream,bidders=[];r89Data.config.integrations.aps&&"bidAPS"in el&&el.has_amazon&&bidders.push("aps"),r89Data.config.integrations.pbjs&&"bidPBJS"in el&&bidders.push("pbjs");const requestManager={adserverRequestSent:!1};function headerBidderBack(bidder){!0!==requestManager.adserverRequestSent&&("aps"===bidder?requestManager.aps=!0:"pbjs"===bidder&&(requestManager.pbjs=!0),function allBiddersBack(){return bidders.map((function(bidder){return requestManager[bidder]})).filter(Boolean).length===bidders.length}()&&sendAdserverRequest())}function sendAdserverRequest(){!0!==requestManager.adserverRequestSent&&(requestManager.adserverRequestSent=!0,googletag.cmd.push((function(){googletag.pubads().refresh([el.slot])})))}bidders.forEach((function(bidder){requestManager[bidder]=!1})),bidders.includes("aps")&&apstag.fetchBids({slots:[el.bidAPS],timeout:timeout},(function(){googletag.cmd.push((function(){apstag.setDisplayBids(),headerBidderBack("aps")}))})),bidders.includes("pbjs")&&(el.bidPBJS.forEach((slot=>{if(void 0!==slot.adSlotId&&void 0===slot.floors){let floors=r89.helpers.getPrebidFloor(slot.adSlotId);floors&&(slot.floors=floors),delete slot.adSlotId}})),r89_pbjs.que.push((function(){r89_pbjs.requestBids({timeout:timeout,adUnits:el.bidPBJS,bidsBackHandler:function(){googletag.cmd.push((function(){r89_pbjs.setTargetingForGPTAsync([el.id]),headerBidderBack("pbjs")}));try{const amazonVideoPlayer=document.querySelector('[id^="apsVideoDiv"]'),childAmazonIframe=amazonVideoPlayer.getElementsByTagName("iframe")[0];childAmazonIframe.id.includes("apstag")&&(amazonVideoPlayer.style.maxWidth="100%",childAmazonIframe.style.maxWidth="100%")}catch(err){r89.log("AMAZON_DID_NOT_WON")}}})}))),0===bidders.length?sendAdserverRequest():window.setTimeout((function(){sendAdserverRequest()}),1.5*timeout)},infiniteScroll:function(){r89.log("Bids: Request Infinite Scroll");const timeout=r89Data.config.timeouts.default,refreshItems=r89.infiniteScroll.placedItems.map((el=>el.slot)),slotIds=r89.infiniteScroll.placedItems.map((el=>el.id)),slotsAPS=r89.infiniteScroll.placedItems.map((el=>el.bidAPS)).filter(r89.helpers.filterUndefined),slotsPBJS=r89.infiniteScroll.placedItems.map((el=>el.bidPBJS)).filter(r89.helpers.filterUndefined),bidders=[];r89Data.config.integrations.aps&&slotsAPS.length>0&&bidders.push("aps"),r89Data.config.integrations.pbjs&&slotsPBJS.length>0&&bidders.push("pbjs");const requestManager={adserverRequestSent:!1};function headerBidderBack(bidder){!0!==requestManager.adserverRequestSent&&("aps"===bidder?requestManager.aps=!0:"pbjs"===bidder&&(requestManager.pbjs=!0),function allBiddersBack(){return bidders.map((function(bidder){return requestManager[bidder]})).filter(Boolean).length===bidders.length}()&&sendAdserverRequest())}function sendAdserverRequest(){!0!==requestManager.adserverRequestSent&&(requestManager.adserverRequestSent=!0,googletag.cmd.push((function(){googletag.pubads().refresh(refreshItems)})))}bidders.forEach((function(bidder){requestManager[bidder]=!1})),bidders.includes("aps")&&slotsAPS.length>0&&apstag.fetchBids({slots:slotsAPS,timeout:timeout},(function(){googletag.cmd.push((function(){apstag.setDisplayBids(),headerBidderBack("aps")}))})),bidders.includes("pbjs")&&slotsPBJS.length>0&&r89_pbjs.que.push((function(){r89_pbjs.requestBids({timeout:timeout,adUnits:slotsPBJS,bidsBackHandler:function(){googletag.cmd.push((function(){r89_pbjs.setTargetingForGPTAsync(slotIds),headerBidderBack("pbjs")}))}})})),0===bidders.length?sendAdserverRequest():window.setTimeout((function(){sendAdserverRequest()}),1.5*timeout)}}}(),load:function load({preload:preload,cmp:cmpConfig,preconnect:preconnect}){return{scrollLoaded:!1,scroll:function(){r89.load.scrollLoaded||(r89.load.scrollLoaded=!0,window.removeEventListener("scroll",r89.load.scroll),r89.load.contentLoaded())},contentLoadedState:!1,contentLoaded:function(){r89.load.preload(),r89.log("Load: ContentLoaded - "+document.readyState),"complete"===document.readyState||"interactive"===document.readyState?(r89.log("Load: ContentLoaded - Complete"),r89.load.contentLoadedState=!0,r89.load.main()):(r89.log("Load: ContentLoaded - Event Listener"),document.addEventListener("readystatechange",(event=>{r89.log("Load: Onreadystatechange - "+document.readyState),"interactive"!==document.readyState&&"complete"!==document.readyState||r89.load.contentLoadedState||(r89.load.contentLoadedState=!0,r89.load.main())})))},main:function(){if(r89.log("Load: Main"),r89.events.trackFunction("loadMain"),r89.load.setEnvironment(),r89.load.setCurrentUrl(),!r89.load.checkUrlFilters())return r89.log("Load: Canceled with URL filter"),!1;r89Data.config.is_mobile&&r89Data.config.scriptTimeout.active&&(r89Data.config.scriptTimeout.timeout=r89Data.config.scriptTimeout.options[r89.helpers.randomInt(0,r89Data.config.scriptTimeout.options.length-1)]),r89.adunits.main()},setEnvironment:function(){r89Data.config.viewport.width=Math.max(document.documentElement.clientWidth||0,window.innerWidth||0),r89Data.config.viewport.height=Math.max(document.documentElement.clientHeight||0,window.innerHeight||0),r89Data.config.viewport.width>=r89Data.config.desktop_width?(r89Data.config.is_mobile=0,r89Data.config.is_desktop=1):(r89Data.config.is_mobile=1,r89Data.config.is_desktop=0);let ranges=[[0,320],[320,360],[360,375],[375,414],[414,768],[768,992],[992,1024],[1024,1152],[1152,1280],[1280,1440],[1440,1680],[1680,1920]];r89Data.config.viewport.width>1920?r89Data.config.screenWidthKey="1920-plus":ranges.every((v=>!(r89Data.config.viewport.width2&&-1==r89Data.config.currentUrl.titleTags.indexOf(kv_tags[i2])&&r89Data.config.currentUrl.titleTags.push(kv_tags[i2])},checkUrlFilters:function(){if(void 0!==r89.pageConfig&&void 0!==r89.pageConfig.noAds&&1==r89.pageConfig.noAds)return!1;if(-1!==r89Data.config.urlFilters.exact.indexOf(r89Data.config.currentUrl.path))return!1;for(var i2=0;i2el.wrapper)).forEach((function(wrapper2){wrapper2.remove()}))}r89Data.config.outstream&&r89.outstream.adunit.wrapper&&r89.outstream.adunit.wrapper.remove(),this.resetKeys()},resetKeys:function(){r89.adunits.batches=[],r89.adunits.currentBatch=0,r89.adunits.placedItems={},clearInterval(r89.bids.trackViewableTimeInterval),clearInterval(r89.bids.trackRefreshInterval),this.resetSession()},resetSession:function(){r89.session.newPageview(),this.done()},done:function(){r89.load.main()},customTargetingKeys:function(){googletag.cmd.push((function(){if(void 0!==r89.pageConfig&&"object"==typeof r89.pageConfig.targetingKeys)for(var targetingKey in r89.pageConfig.targetingKeys)googletag.pubads().setTargeting(targetingKey,r89.pageConfig.targetingKeys[targetingKey])}))}}}(),adunits:function adunits({adunits:adunitsConfig,batches:batches,inimage_adunits:inImageAdsConfig,inimage_bidders:inImageBiddersConfig,video_overlay:videoOverlayConfig}){return{status:"uncalled",setStatus:function(status){this.status=status},getStatus:function(){return this.status},items:adunitsConfig,performance:{},batchNames:batches,batches:[],currentBatch:0,allBatchesPlaced:0,placedItems:{},lazyLoadDistances:[0,250,500,500,500,750,1e3,1250,1500,1750,2e3],main:function(){r89.log("Adnits: Main"),r89.events.trackFunction("adunitsMain"),r89Data.config.stickySidebar&&r89.stickySidebar.main(),this.prepareBatches(),this.placeWrappers()},pickLazyLoadDistance:function(){return this.lazyLoadDistances[Math.floor(Math.random()*this.lazyLoadDistances.length)]},prepareBatches:function(){this.batchNames.forEach((function(item){"video_overlay"!==item&&(this.placedItems[item]=[],this.batches.push(item))}),this)},placeWrappers:function(){r89.log("Adunits: PlaceWrappers"),this.setStatus("placeWrappers"),this.items.forEach(this.placeWrapper,this),this.attachObserversOnWrappers(),this.placeWrappersDone()},attachObserversOnWrappers:function(){const observer=new IntersectionObserver((function(entries,observer2){entries.forEach((entry=>{let targetId=entry.target.id.replace("-wrapper",""),el=r89.adunits.searchBatches(targetId);el&&(el.isIntersectingAt50=entry.isIntersecting)}))}),{root:null,threshold:.5});document.querySelectorAll('[id^=r89-][id$="-wrapper"]').forEach((element=>{try{"undefined"!==element.id&&observer.observe(document.getElementById(element.id))}catch(err){r89.log("FAILED",element)}}))},placeWrapper:function(el,index){if(!r89.helpers.checkScreenSize(r89Data,el))return!1;r89.log("Adunits: Attempt to place "+el.div_id);let selector_divs=[];if(el.selector_all)selector_divs=document.querySelectorAll(el.selector);else{let selector_div=null;const selector_split=el.selector.split(",");for(let i2=0;i20?selector_divs.forEach((function(selector_div){const id=r89Data.config.prefix+el.div_id+"-"+count;++count;const adunit=document.createElement("div");adunit.id=id;const wrapper2=document.createElement("div");if(wrapper2.id=id+"-wrapper",el.wrapper_style_parsed&&Object.keys(el.wrapper_style_parsed).forEach((key=>{wrapper2.style[key]=el.wrapper_style_parsed[key]})),el.show_label){const ad_unit_label=document.createElement("div");ad_unit_label.className="r89-ad-label",ad_unit_label.innerHTML=r89Data.config.ad_label_text,r89Data.config.labelStyle&&Object.keys(r89Data.config.labelStyle).forEach((key=>{ad_unit_label.style[key]=r89Data.config.labelStyle[key]})),ad_unit_label.style.display="none";const ad_unit_label_wrapper=document.createElement("div");el.wrapper_sticky&&(ad_unit_label_wrapper.style.position="sticky",ad_unit_label_wrapper.style.top=r89Data.config.adunit_wrapper_sticky_top),ad_unit_label_wrapper.appendChild(ad_unit_label),wrapper2.appendChild(ad_unit_label_wrapper)}if(el.wrapper_sticky){const stickyWrapper=document.createElement("div");stickyWrapper.style.position="sticky",stickyWrapper.style.top=r89Data.config.adunit_wrapper_sticky_top,wrapper2.appendChild(stickyWrapper),stickyWrapper.appendChild(adunit)}else wrapper2.appendChild(adunit);if(r89Data.config.positionNames.includes(el.position.name)){if("insertBefore"===el.position.name?selector_div.parentNode.insertBefore(wrapper2,selector_div):"insertAfter"===el.position.name?null===selector_div.nextElementSibling?selector_div.parentNode.appendChild(wrapper2):selector_div.parentNode.insertBefore(wrapper2,selector_div.nextElementSibling):"appendChild"===el.position.name&&selector_div.appendChild(wrapper2),el.id=id,el.wrapper=wrapper2,el.rendered=!1,el.viewable=!1,el.viewableTime=0,el.visible=!1,el.doRefresh=!1,el.refreshed=!1,el.isEmpty=!0,el.isIntersectingAt50=!1,el.failedCount=0,el.has_amazon&&(el.bidAPS={slotID:id,sizes:el.aps_sizes,slotName:el.slot_name}),el.bidder&&el.bidder in r89Data.bidders){const mediaTypes={};el.pbjs_sizes.length>0&&(mediaTypes.banner={sizes:el.pbjs_sizes}),el.has_native&&(mediaTypes.native={type:"image"}),el.bidPBJS={code:id,mediaTypes:mediaTypes,bids:r89Data.bidders[el.bidder],adSlotId:el.ad_slot_id}}el.lazy_load_ab_testing&&(el.lazy_load_distance=this.pickLazyLoadDistance()),this.placedItems[el.batch].push({...el})}}),this):r89.log("Adunits: Selector not found "+el.div_id)},placeWrappersDone:function(){this.setStatus("placeWrappersDone"),"uncalled"!==r89.reset.getStatus()?(r89.log("Adunits: PlaceWrappersDone - Reset"),r89.adunits.placeAds()):(r89.log("Adunits: PlaceWrappersDone"),r89.cmp.load(),0===Object.values(r89.adunits.placedItems).flat().length&&r89.events.push("pageview",{type:"noWrappers"}))},placeAds:function(){r89.log("Adunits: PlaceAds"),this.setStatus("placeAds"),r89.events.trackFunction("adunitsPlaceAds"),this.batches=this.batches.filter((function(batch){return"outstream"===batch&&r89Data.config.outstream?1:this.placedItems[batch].length}),this),1===inImageAdsConfig.active&&inImageBiddersConfig["InImage-R89"].length>0&&r89.inImageR89.main(),videoOverlayConfig.active&&r89.video_overlay.main(),this.placeBatch()},placeBatch:function(){if(r89.log("Adunits: PlaceBatch"),this.setStatus("placeBatch"),this.batches.length>this.currentBatch){const batch=this.batches[this.currentBatch];r89.log("Adunits: PlaceBatch "+batch),this.placedItems[batch].forEach(this.placeAd,this),"lazy"===batch?this.lazyLoadObservers(batch):"outstream"===batch?r89.outstream.main():r89.bids.request(batch)}else this.placeBatchesDone()},placeBatchesDone:function(){r89.log("Adunits: PlaceBatchesDone"),this.setStatus("placeBatchesDone"),this.allBatchesPlaced?r89.log("Adunits: PlaceBatchesDone command ran twice. Stopping further script."):(this.allBatchesPlaced=1,r89Data.config.refresh.active&&(r89.bids.trackViewableTime(),r89.bids.trackRefresh()),r89.inImage.main())},placeAd:function(el){googletag.cmd.push((function(){r89.log("Adunits: PlaceAd "+el.id);const slot=googletag.defineSlot(el.slot_name,el.gpt_sizes,el.id);slot.setTargeting("ad_slot",el.ad_slot.name);let floor=r89.helpers.getGAMFloor(el.ad_slot_id);floor&&slot.setTargeting("flr",floor),"object"==typeof r89.adunits.performance[el.gam_ad_unit]&&(slot.setTargeting("au_vb",r89.adunits.performance[el.gam_ad_unit].au_vb),slot.setTargeting("au_cb",r89.adunits.performance[el.gam_ad_unit].au_cb)),el.lazy_load&&slot.setTargeting("lazy_load_dist",el.lazy_load_distance.toString()),slot.addService(googletag.pubads()),googletag.display(el.id),el.slot=slot}))},updateCurrentBatch:function(){++this.currentBatch},searchBatches:function(id){for(let key in r89.adunits.placedItems){let items=r89.adunits.placedItems[key].filter((function(item){return item.id===id}));if(1===items.length)return items[0]}return!1},lazyLoadObservers:function(batch){r89.log("Adunits: LazyLoadObservers"),this.placedItems[batch].forEach(this.lazyLoadObserver,this),this.updateCurrentBatch(),this.placeBatch()},lazyLoadObserver:function(el){el.lazy_load_ab_testing&&r89.events.trackEvent("lazyLoadDistance",el.gam_ad_unit+";"+el.lazy_load_distance);const options={rootMargin:"0px 0px "+el.lazy_load_distance+"px 0px",threshold:0};new IntersectionObserver((function(entries,observer2){entries.forEach((entry=>{entry.isIntersecting&&(r89.log("Adunit: Observed "+el.id),"requestIdleCallback"in window?requestIdleCallback((function(){r89.bids.lazy(el)}),{timeout:250}):r89.bids.lazy(el),observer2.unobserve(entry.target))}))}),options).observe(el.wrapper)}}}(r89Data),initialize:function initialize(){r89.log("Init: PublisherCall Initialize"),"done"===r89.init.getStatus()?r89.reset.main():r89.load.contentLoaded()},stickySidebar:function stickySidebar({sticky_sidebar:stickySidebarConfig}){return{status:"uncalled",setStatus:function(status){this.status=status},getStatus:function(){return this.status},sidebar:stickySidebarConfig,main:function(){if(this.sidebar.active&&r89Data.config.viewport.width>=this.sidebar.screen_width&&(wrapper=document.body.querySelector(this.sidebar.selector),null!==wrapper)){let wrapper_height=wrapper.clientHeight-this.sidebar.decrease_height;this.sidebar.minimum_elements>1&&wrapper_height0){let widgets_inserted=!1;if(widgets.forEach((function(widget){let selector_div=null;const selector_split=widget.selector.split(",");for(let i2=0;i2{entry.isIntersecting&&(r89.log("Outbrain: Lazy load insert."),"requestIdleCallback"in window?requestIdleCallback((function(){document.head.appendChild(scriptElm)}),{timeout:250}):document.head.appendChild(scriptElm),observer2.unobserve(entry.target))}))}),options).observe(r89.outbrain.wrapper)}else document.head.appendChild(scriptElm)}}}this.done()},done:function(){r89.customAdunits.main()}}}(r89Data),outstream:function outstream({outstream:outstreamConfig}){return{status:"uncalled",setStatus:function(status){this.status=status},getStatus:function(){return this.status},adunit:outstreamConfig.adunit,deal_id_exception:outstreamConfig.deal_id_exception,line_item_exception:outstreamConfig.line_item_exception,ad_slot_id:outstreamConfig.ad_slot_id,main:function(){r89.log("Outstream: Main"),r89Data.config.outstream?this.adunit.is_desktop&&r89Data.config.is_desktop?(this.adunit.bidder=this.adunit.desktop_bidder,this.adunit.sizes=this.adunit.desktop_sizes,this.adunit.gpt_sizes=this.adunit.desktop_gpt_sizes,this.adunit.aps_sizes=this.adunit.desktop_aps_sizes,this.adunit.pbjs_sizes=this.adunit.desktop_pbjs_sizes,this.placeWrapper(this.adunit)):this.adunit.is_mobile&&r89Data.config.is_mobile?(this.adunit.selector=this.adunit.selector_mobile,this.adunit.bidder=this.adunit.mobile_bidder,this.adunit.sizes=this.adunit.mobile_sizes,this.adunit.gpt_sizes=this.adunit.mobile_gpt_sizes,this.adunit.aps_sizes=this.adunit.mobile_aps_sizes,this.adunit.pbjs_sizes=this.adunit.mobile_pbjs_sizes,this.placeWrapper(this.adunit)):this.done():this.done()},placeWrapper:function(el){let selector_div=null,selector_split=el.selector.split(",");for(let i2=0;i20&&el.bidPBJS.push({code:id,mediaTypes:{banner:{sizes:el.pbjs_sizes}},bids:banner_bidders,adSlotId:r89.outstream.ad_slot_id}),el.bidPBJS.push({code:id,mediaTypes:{video:{context:"outstream",playerSize:[640,360],mimes:["video/mp4"],protocols:[1,2,3,4,5,6,7,8],playbackmethod:[2],skip:0,minduration:3,maxduration:120,linearity:1,api:[1,2],plcmt:4,renderer:{url:"https://tags.refinery89.com/video/js/renderV2.js",render:function(bidz){bidz.renderer.push((()=>{bidz.adLabel=1==r89.outstream.adunit.show_label?r89Data.config.ad_label_text:"",bidz.show_close_button=r89.outstream.adunit.show_close_button,bidz.scroll_position_mobile=r89.outstream.adunit.mobile_scrolling_position,bidz.scroll_position_desktop=r89.outstream.adunit.desktop_scrolling_position,bidz.is_scrollable=r89.outstream.adunit.corner_scroll,bidz.is_refresh=!1,bidz.deal_id_exceptions=outstreamConfig.deal_id_exception,bidz.line_item_exceptions=outstreamConfig.line_item_exception,r89VideoJS.renderAds(bidz)}))}}}},bids:video_bidders,adSlotId:r89.outstream.ad_slot_id})}googletag.cmd.push((function(){var slot=googletag.defineSlot(el.slot_name,el.gpt_sizes,el.id);slot.setTargeting("ad_slot","Outstream-Video");let floor=r89.helpers.getGAMFloor(r89.outstream.ad_slot_id);floor&&slot.setTargeting("flr",floor),slot.addService(googletag.pubads()),googletag.display(el.id),el.slot=slot})),r89.bids.outstream(el)}}else this.done()},done:function(){r89.adunits.updateCurrentBatch(),r89.adunits.placeBatch()}}}(r89Data),inImage:function inImage(){return{status:"uncalled",setStatus:function(status){this.status=status},getStatus:function(){return this.status},checkDevice:function(){return 1==r89Data.config.in_image.is_mobile&&1==r89Data.config.is_mobile||1==r89Data.config.in_image.is_desktop&&1==r89Data.config.is_desktop},checkSelector:function(){if(r89Data.config.in_image.selector){return null!==window.document.querySelector(r89Data.config.in_image.selector)}return!0},main:function(){if(r89.log("InImage: Main"),"uncalled"==r89.reset.getStatus()&&r89Data.config.in_image.active&&this.checkDevice()&&this.checkSelector()){r89.log("InImage: Insert");const script=document.createElement("script");script.src=r89Data.config.in_image.script,script.type="text/javascript",script.async=!0,window.document.head.appendChild(script),this.setStatus("loaded")}this.done()},done:function(){r89.log("InImage: Done"),this.setStatus("done"),r89.elasticNative.main()}}}(),elasticNative:function elasticNative({elastic_native:elasticNativeConfig}){return{status:"uncalled",setStatus:function(status){this.status=status},getStatus:function(){return this.status},adunit:elasticNativeConfig,viewTime:0,inView:!1,measureCalled:!1,intervalTime:2500,measuredTime:0,label:{text:"▼ Gesponsord",style:{color:"#999999",textAlign:"center",fontSize:"12px",lineHeight:"16px",margin:"0px 0px 15px 0px",padding:"4px 0 6px 5px",fontFamily:"Arial",borderBottom:"1px solid #ccc"}},main:function(){if(this.setStatus="called",this.adunit){r89.log("Elastic Native: Insert");let selector_div=null;const selector_split=this.adunit.selector.split(",");for(let i2=0;i2{entry.isIntersecting?r89.elasticNative.inView=!0:r89.elasticNative.inView=!1}))}),{rootMargin:"0px 0px 0px 0px",threshold:0}).observe(r89.elasticNative.adunit.wrapper);var inViewInterval=setInterval((function(){r89.elasticNative.inView&&(r89.elasticNative.measuredTime+=r89.elasticNative.intervalTime),!1===r89.elasticNative.measureCalled&&r89.elasticNative.measuredTime>=r89.elasticNative.viewTime&&(r89.elasticNative.callMeasure(),clearInterval(inViewInterval))}),r89.elasticNative.intervalTime)},callMeasure:function(){r89.log("Elastic: Refresh Tracking Slot"),googletag.cmd.push((function(){googletag.pubads().refresh([r89.elasticNative.gamMeasureSlot])})),r89.elasticNative.measureCalled=!0}}}(r89Data),customAdunits:function customAdunits({custom_adunits:customAdunitsConfig}){return{status:"uncalled",setStatus:function(status){this.status=status},getStatus:function(){return this.status},adunits:customAdunitsConfig,main:function(){r89.log("CustomAdunits: Main"),r89.events.trackFunction("customAdunitsCalled"),"uncalled"==r89.reset.getStatus()&&"uncalled"==this.getStatus()&&this.adunits.length>0&&r89.customAdunits.insert(),this.done()},insert:function(){if(r89.customAdunits.adunits.length>0){const adunits2=r89.customAdunits.adunits.filter((function(adunit){return!(!adunit.is_desktop||!r89Data.config.is_desktop)||!(!adunit.is_mobile||!r89Data.config.is_mobile)}));if(adunits2.length>0){adunits2.map((el=>el.code)).forEach((function(code){const script=document.createElement("script");script.innerHTML=code,document.head.appendChild(script)})),r89.events.trackFunction("customAdunitsLoaded")}}r89.customAdunits.setStatus("done")},done:function(){r89.log("CustomAdunits: Done"),this.setStatus("done"),r89.fallbackAdunits.main()}}}(r89Data),fallbackAdunits:function fallbackAdunits({fallbacks:fallbackAdUnitsConfig}){return{status:"uncalled",setStatus:function(status){this.status=status},getStatus:function(){return this.status},items:fallbackAdUnitsConfig,insertCount:0,main:function(){if(r89.log("Fallback: Main"),this.items.length>0){const configVars=[["minScreenWidth","min_screen_width"],["maxScreenWidth","max_screen_width"],["minScreenHeight","min_screen_height"],["maxScreenHeight","max_screen_height"],["lazyLoad","lazy_load_distance"],["sizes","sizes"]];r89.pushAd=function(divId,adunit,config){r89.log("Fallback: Insert "+adunit+" in #"+divId);const source=r89.fallbackAdunits.items.find((element=>element.div_id==adunit));if(!source)return void r89.log("Fallback: Ad unit not found.");r89.log("Fallback: Ad unit found.");const el=Object.assign({},source);el.selector=divId.replace("#",""),"object"==typeof config&&configVars.forEach((configVar=>{configVar[0]in config&&(el[configVar[1]]=config[configVar[0]],"lazy_load_distance"==configVar[1]&&config[configVar[0]]&&(el.lazy_load=1),"sizes"==configVar[1]&&(el.gpt_sizes=el.sizes,el.aps_sizes=el.sizes,el.pbjs_sizes=el.sizes))})),r89.fallbackAdunits.placeWrapper(el)},"object"==typeof r89.callAds&&r89.callAds.forEach((item=>{r89.pushAd(item[0],item[1],item[2])}))}this.done()},placeWrapper:function(el){let place=!1;if(null===el.min_screen_width&&null!==el.max_screen_width&&el.max_screen_width>=r89Data.config.viewport.width&&(place=!0),null===el.max_screen_width&&null!==el.min_screen_width&&el.min_screen_width<=r89Data.config.viewport.width&&(place=!0),null!==el.min_screen_width&&null!==el.max_screen_width&&el.min_screen_width<=r89Data.config.viewport.width&&el.max_screen_width>=r89Data.config.viewport.width&&(place=!0),!place)return r89.log("Fallback: Screen resolution requirements not met."),!1;r89.log("Fallback: Attempt to place "+el.div_id);const selector_div=document.getElementById(el.selector);if(!selector_div)return r89.log("Fallback: Selector div not found."),!1;r89.fallbackAdunits.insertCount++;const id=r89Data.config.prefix+el.div_id+"-"+r89.fallbackAdunits.insertCount,adunit=document.createElement("div");adunit.id=id;const wrapper2=document.createElement("div");if(wrapper2.id=id+"-wrapper","wrapper_style_parsed"in el&&Object.keys(el.wrapper_style_parsed).forEach((key=>{wrapper2.style[key]=el.wrapper_style_parsed[key]})),wrapper2.appendChild(adunit),selector_div.appendChild(wrapper2),el.id=id,el.wrapper=wrapper2,el.rendered=!1,el.viewable=!1,el.viewableTime=0,el.visible=!1,el.doRefresh=!1,el.refreshed=!1,el.isEmpty=!0,el.failedCount=0,el.has_amazon&&(el.bidAPS={slotID:id,sizes:el.aps_sizes,slotName:el.slot_name}),el.bidder&&el.bidder in r89Data.bidders){const mediaTypes={};el.pbjs_sizes.length>0&&(mediaTypes.banner={sizes:el.pbjs_sizes}),el.has_native&&(mediaTypes.native={type:"image"}),el.bidPBJS={code:id,mediaTypes:mediaTypes,bids:r89Data.bidders[el.bidder]}}googletag.cmd.push((function(){r89.log("Fallback: Place ad "+el.id);const slot=googletag.defineSlot(el.slot_name,el.gpt_sizes,el.id);slot.setTargeting("ad_slot",el.ad_slot.name),slot.addService(googletag.pubads()),googletag.display(el.id),el.slot=slot,r89.adunits.placedItems.fallback.push({...el}),el.lazy_load?r89.fallbackAdunits.lazyLoad(el):r89.fallbackAdunits.request(el)}))},request:function(el){"requestIdleCallback"in window?requestIdleCallback((function(){r89.bids.fallback(el)}),{timeout:250}):r89.bids.fallback(el)},lazyLoad:function(el){const options={rootMargin:"0px 0px "+el.lazy_load_distance+"px 0px",threshold:0};new IntersectionObserver((function(entries,observer2){entries.forEach((entry=>{entry.isIntersecting&&(r89.log("Fallback: Observed "+el.id),r89.fallbackAdunits.request(el),observer2.unobserve(entry.target))}))}),options).observe(el.wrapper)},done:function(){r89.log("Fallback: Done"),this.setStatus("done")}}}(r89Data),infiniteScroll:function infiniteScroll({adunits_infinite_scroll:infiniteScrollConfig,inimage_adunits:inImageConfig,inimage_bidders:inImageBiddersConfig}){return{status:"uncalled",setStatus:function(status){this.status=status},getStatus:function(){return this.status},selector:null,items:infiniteScrollConfig,placedItems:[],count:0,main:function(){r89.log("Infinite Scroll: Main"),this.load()},load:function(selector){if(r89.log("Infinite Scroll: Load"),++this.count,void 0===selector&&r89Data.config.infinite_scroll)this.selector=document.querySelector(r89Data.config.infinite_scroll.selector);else if("string"==typeof selector)this.selector=document.querySelector(selector);else{if("object"!=typeof selector)return void r89.log("Infinite Scroll: Selector not defined");this.selector=selector}null!=this.selector?(this.placedItems=[],this.items.forEach(this.placeWrapper,this),this.placedItems.forEach(this.placeAd,this),1===inImageConfig.active&&inImageBiddersConfig["InImage-R89"].length>0&&r89.inImageR89.main(!0),r89.bids.infiniteScroll()):r89.log("Infinite Scroll: Selector not found")},placeWrapper:function(el,index){if(!r89.helpers.checkScreenSize(r89Data,el))return!1;r89.log("Adunits: Attempt to place "+el.div_id);let selector_divs=[];if(el.selector_all)selector_divs=this.selector.querySelectorAll(el.selector);else{let selector_div=null;const selector_split=el.selector.split(",");for(let i2=0;i20?selector_divs.forEach((function(selector_div){const id=r89Data.config.prefix+el.div_id+"-infinite-"+this.count+"-"+count;++count;const adunit=document.createElement("div");adunit.id=id;const wrapper2=document.createElement("div");if(wrapper2.id=id+"-wrapper",el.wrapper_style_parsed&&Object.keys(el.wrapper_style_parsed).forEach((key=>{wrapper2.style[key]=el.wrapper_style_parsed[key]})),el.show_label){const ad_unit_label=document.createElement("div");ad_unit_label.className="r89-ad-label",ad_unit_label.innerHTML=r89Data.config.ad_label_text,r89Data.config.labelStyle&&Object.keys(r89Data.config.labelStyle).forEach((key=>{ad_unit_label.style[key]=r89Data.config.labelStyle[key]}));const ad_unit_label_wrapper=document.createElement("div");el.wrapper_sticky&&(ad_unit_label_wrapper.style.position="sticky",ad_unit_label_wrapper.style.top=r89Data.config.adunit_wrapper_sticky_top),ad_unit_label_wrapper.appendChild(ad_unit_label),wrapper2.appendChild(ad_unit_label_wrapper)}if(el.wrapper_sticky){const stickyWrapper=document.createElement("div");stickyWrapper.style.position="sticky",stickyWrapper.style.top=r89Data.config.adunit_wrapper_sticky_top,wrapper2.appendChild(stickyWrapper),stickyWrapper.appendChild(adunit)}else wrapper2.appendChild(adunit);if(r89Data.config.positionNames.includes(el.position.name)){if("insertBefore"==el.position.name?selector_div.parentNode.insertBefore(wrapper2,selector_div):"insertAfter"==el.position.name?null===selector_div.nextElementSibling?selector_div.parentNode.appendChild(wrapper2):selector_div.parentNode.insertBefore(wrapper2,selector_div.nextElementSibling):"appendChild"==el.position.name&&selector_div.appendChild(wrapper2),el.id=id,el.wrapper=wrapper2,el.rendered=!1,el.viewable=!1,el.viewableTime=0,el.visible=!1,el.doRefresh=!1,el.isIntersectingAt50=!1,el.failedCount=0,el.refreshed=!1,el.isEmpty=!0,el.has_amazon&&(el.bidAPS={slotID:id,sizes:el.aps_sizes,slotName:el.slot_name}),el.bidder&&el.bidder in r89Data.bidders){const mediaTypes={};el.pbjs_sizes.length>0&&(mediaTypes.banner={sizes:el.pbjs_sizes}),el.has_native&&(mediaTypes.native={type:"image"}),el.bidPBJS={code:id,mediaTypes:mediaTypes,bids:r89Data.bidders[el.bidder]}}this.placedItems.push({...el})}}),this):r89.log("Infinite Scroll: Selector not found "+el.div_id)},placeAd:function(el){googletag.cmd.push((function(){r89.log("Adunits: PlaceAd "+el.id);const slot=googletag.defineSlot(el.slot_name,el.gpt_sizes,el.id);slot.setTargeting("ad_slot",el.ad_slot.name),"object"==typeof r89.adunits.performance[el.gam_ad_unit]&&(slot.setTargeting("au_vb",r89.adunits.performance[el.gam_ad_unit].au_vb),slot.setTargeting("au_cb",r89.adunits.performance[el.gam_ad_unit].au_cb)),slot.addService(googletag.pubads()),googletag.display(el.id),el.slot=slot}))}}}(r89Data),inImageR89:function inImageR89({inimage_adunits:inImageAdsConfig,inimage_bidders:inImageBiddersConfig,seller:seller,gam_ad_unit:gamAdunit,gam_network_id:gamNetworkId}){return{main:function(infiniteScroll2=!1){try{if(r89.inimageR89={},!1===infiniteScroll2){r89.inImageR89.ads=[];let css_scripts=["https://tags.refinery89.com/static/css/inimage.css"];for(let i2=0;i20){let imageOrientation2=function(width,height){let category="horizontal";return category=width/height>1?["horizontal",horizontal_image_class]:["vertical",vertical_image_class],category};var adImages=[],inimageDivs=[];r89.inimageR89.FAILSAFE_TIMEOUT=2e3,r89.inimageR89.inimageAdunits=[],r89.inimageR89.targetingDivs="",r89.inimageR89.inimageAdunits=[],infiniteScroll2?r89.inimageR89.counter++:r89.inimageR89.counter=images.length;var horizontal_image_class=inImageAdsConfig.ad_units[0].horizontal_class_name,vertical_image_class=inImageAdsConfig.ad_units[0].vertical_class_name;vertical_image_class||(vertical_image_class="middle"),horizontal_image_class||(horizontal_image_class="bottom-right");for(let i2=0;i2=468?horizontalSizes:verticalSizes;let adSizes=[];for(let i2=0;i2\n\t\t\t\t\t\t \n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t \n\t\t\t\t\t\t \n\t\t\t\t\t ';return inImageAdsConfig.ad_units[0].show_label||(htmlLabel='\n\t\t\t\t\t\t
\n\t\t \n\t\t\t\t\t\t \n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t \n\t\t\t\t\t\t \n\t\t\t\t\t\t
'),htmlLabel},attachCloseButtonListeners:function(){document.querySelectorAll("[id^=remove-inimage-close-overlay-]").forEach((function(el){el.addEventListener("click",(function(){let identifier=el.id.slice(-1);document.getElementById("overlay-inimage-ad-"+identifier).remove(),el.closest(".r89-ad-label").remove()}))}))},destroyAdSlots:function(inimageSlot){googletag.destroySlots(inimageSlot)},attachLazyLoadObserver:function(el,infiniteScroll2){let options={};options=infiniteScroll2?{rootMargin:"0px 0px 20px 0px",threshold:0}:{rootMargin:"0px 0px 100px 0px",threshold:0};new IntersectionObserver((function(entries,observer2){entries.forEach((entry=>{if(entry.isIntersecting){const img=entry.target.getElementsByTagName("img");if(img.length){const min_img_height=inImageAdsConfig.ad_units[0].min_image_height,min_img_width=inImageAdsConfig.ad_units[0].min_image_width,imageSelected=img[0],identifier=entry.target.id.split("-")[2],imageHeight=imageSelected.offsetHeight,imageWidth=imageSelected.offsetWidth;if(imageWidth>min_img_width||imageHeight>min_img_height){let adSizes=r89.inImageR89.generateAdSizes(imageWidth,imageHeight);if(adSizes.length){if(0==inImageAdsConfig.ad_units[0].max_ads||r89.inImageR89.adsPlaced{try{let number=entry.target.id.split("-")[2];entry.isIntersecting?r89.inImageR89.ads["overlay-inimage-ad-"+number].intersecting=!0:r89.inImageR89.ads["overlay-inimage-ad-"+number].intersecting=!1,r89.log("PREPARED_SLOTS",r89.inImageR89.ads)}catch(err){r89.log(err)}}))}),{rootMargin:"0px",threshold:.5}).observe(document.querySelector("#r89-inimage-"+i2))},refreshInImageR89:function(){setInterval((function(){let keys=Object.keys(r89.inImageR89.ads);for(let i2=0;i2{event.slot.getSlotElementId().includes(slotId)&&event.isEmpty&&(r89.inImageR89.ads[event.slot.getSlotElementId()].viewable=!0)})),googletag.pubads().addEventListener("impressionViewable",(function(event){event.slot.getSlotElementId().includes(slotId)&&(r89.inImageR89.ads[event.slot.getSlotElementId()].viewable=!0)}))}}}(r89Data),video_overlay:function videoOverlay({video_overlay:videoOverlayConfig,gam_ad_unit:gamAdunit,gam_network_id:gamNetworkId}){return{main:function(){let player2,youtube_element=document.querySelectorAll('iframe[src*="youtube"][src*="/embed/"]');if(youtube_element.length>0){let bidForInstreamAndDisplayInstream2=function(auto_play,ad_type,ev=!1,i3){r89_pbjs.que.push((function(){r89_pbjs.addAdUnits(instreamAdUnitBids[0]),r89_pbjs.setConfig({userSync:{syncEnabled:!1},deviceAccess:!0,debug:!1,cache:{url:"https://prebid.adnxs.com/pbc/v1/cache"},instreamTracking:{enabled:!0},disableAjaxTimeout:!0,bidderTimeout:3e4,consentManagement:{gdpr:{cmpApi:"iab",timeout:1e4,allowAuctionWithoutConsent:!0}}}),r89_pbjs.requestBids({bidsBackHandler:function(){r89_pbjs.getHighestCpmBids(gamAdunit+"-Video-Overlay-Preroll-"+i3);const randNum=Math.floor(9999999*Math.random()).toString(),currentUrl=window.location.href,video_param={iu:"/"+gamNetworkId+"/"+gamAdunit+"/"+gamAdunit+"-Video-Overlay-Preroll",output:"vast",correlator:randNum,vpos:"preroll",wta:1,vpmute:0,vpa:"click",description_url:currentUrl,gdfp_req:1,env:"vp",sz:"640x480|640x360",cust_params:{tier:r89Data.config.demandTier,ad_slot:"Overlay-Video",website_id:r89Data.config.website_id.toString()}},videoUrl=r89_pbjs.adServers.dfp.buildVideoUrl({adUnit:instreamAdUnitBids[0],params:video_param});""!==videoUrl&&("mid-roll"===ad_type&&ev.target.pauseVideo(),initVideo(i3,videoUrl,auto_play,ad_type))}})}))},checkScript2=function(){if(void 0!==this.window.loaded||"undefined"==typeof videojs)setTimeout((function(){checkScript2()}),100);else for(let i3=0;i3{try{entry.isIntersecting?(r89_overlay_skipped_finished.includes(gamAdunit+"-Video-Overlay-Preroll-"+i3)&&(r89.log("STOP_OBSERVING",gamAdunit+"-Video-Overlay-Preroll-"+i3),observer2.unobserve(document.querySelector("#"+gamAdunit+"-Video-Overlay-Preroll-"+i3))),r89_overlay_played.includes(gamAdunit+"-Video-Overlay-Preroll-"+i3)?r89.log("ALREADY_ADDED",r89_overlay_played):(r89_overlay_played.push(gamAdunit+"-Video-Overlay-Preroll-"+i3),bidForInstreamAndDisplayInstream2(!1,"pre-roll",!1,i3))):r89.log("NOT_IN_VIEW")}catch(err){r89.log(err)}}))}),{rootMargin:"0px",threshold:1}).observe(document.querySelector("#"+gamAdunit+"-Video-Overlay-Preroll-"+i3))},assignExistingClasses2=function(element,classList){return element.className+=classList},setVideoAdUnit2=function(i3,ad_unit_name){if(instreamAdUnitCode.push(ad_unit_name+"-"+i3),r89.log("YT_ELEMENT",youtube_element[i3]),youtube_element[i3].previousElementSibling||youtube_element[i3].nextElementSibling){const grand_pa=youtube_element[i3].parentNode;var youtube_parent=document.createElement("div");youtube_element[i3].nextElementSibling?(grand_pa.insertBefore(youtube_parent,youtube_element[i3].nextElementSibling),youtube_parent.append(youtube_element[i3])):youtube_element[i3].previousElementSibling&&(grand_pa.insertBefore(youtube_parent,youtube_element[i3]),youtube_parent.append(youtube_element[i3]))}else youtube_parent=youtube_element[i3].parentNode;if(youtube_parent.id=instreamAdUnitCode[i3],0==youtube_parent.classList.length){const iframeWidth=youtube_element[i3].offsetWidth,iframeHeight=youtube_element[i3].offsetHeight;youtube_parent.style.width=iframeWidth+"px",youtube_parent.style.height=iframeHeight+"px"}youtube_parent.className+=" containerz-instream ";const video_div=document.createElement("div");video_div.id="video-instream"+i3,youtube_parent.appendChild(video_div);const match=youtube_element[i3].src.match(/.*(?:youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=)([^#\&\?]*).*/);match&&11==match[1].length&&match[1],prepareVideoBidders2(instreamAdUnitCode[i3])},prepareVideoBidders2=function(code){instreamAdUnitBids.push({code:code,divId:code,mediaTypes:{video:{context:"instream",playerSize:[640,360],mimes:["video/mp4","application/javascript"],protocols:[1,2,3,4,5,6,7],playbackmethod:[1,2,3],skip:1,linearity:1,api:[1,2,7,8,9],maxduration:30,minduration:0,startdelay:0,plcmt:1,placement:1,w:640,h:480}},bids:videoOverlayConfig.bidders})};const js_scripts=["https://imasdk.googleapis.com/js/sdkloader/ima3.js","https://tags.refinery89.com/video/js/video1.min.js","https://tags.refinery89.com/video/js/video2.min.js","https://tags.refinery89.com/video/js/video3.js","https://www.youtube.com/iframe_api"],css_scripts=["https://tags.refinery89.com/video/css/video2.min.css","https://tags.refinery89.com/video/css/video3.css"];for(var i2=0;i2\n \n \n `;document.getElementById(instreamAdUnitCode[i3]).insertAdjacentHTML("afterbegin",playerHTML);const real_height=document.getElementById("removeable-instream-div-"+i3).offsetHeight,real_width=youtube_element[i3].offsetWidth;real_width>0&&(document.getElementById("removeable-instream-div-"+i3).style.width=real_width+"px"),document.getElementById("removeable-instream-div-"+i3).style.height=real_height>0?real_height+"px":"100%";try{let onPlayerStateChange2=function(event2){if(Math.floor(player2.getDuration())>30){if(videoOverlayConfig["mid-roll"].active&&1===event2.r89Data){const total_length=Math.floor(player2.getDuration()),mid_point=Math.floor(total_length/2);var interval=setInterval((function(){Math.floor(player2.getCurrentTime())===mid_point?(clearInterval(interval),bidForInstreamAndDisplayInstream2(!0,"mid-roll",event2)):r89.log("WAITING")}),1e3)}videoOverlayConfig["post-roll"].active&&0===event2.r89Data&&bidForInstreamAndDisplayInstream2(!0,"post-roll")}else r89.log("VIDEO_NOT_LONG_ENOUGH_FOR_MID_ROLL_AND_POST_ROLL")},onPlayerReady2=function(event2){null===event2.r89Data&&0==videoOverlayConfig.autoplay&&(r89.log("PLAYING"),event2.target.playVideo())};const player=videojs("content_instream_video_"+i3);player.ima({id:"content_instream_video_"+i3,adTagUrl:vastXML,debug:!1}),player.playsinline(!0);let startEvent="click";(navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPad/i)||navigator.userAgent.match(/Android/i))&&(startEvent="touchend"),document.getElementsByClassName("placeholder-instream-"+i3)[0].addEventListener("click",(function(){const wrapperDiv=document.getElementById("content_instream_video_"+i3);wrapperDiv.addEventListener(startEvent,initAdDisplayContainer(wrapperDiv))}));var initAdDisplayContainer=function(wrapperDiv=!1){player.ima.initializeAdDisplayContainer(),wrapperDiv.removeEventListener(startEvent,initAdDisplayContainer)};player.src("https://tags.refinery89.com/video/video/ads.mp4"),(auto_play||videoOverlayConfig.autoplay&&"pre-roll"==ad_type)&&player.on("adsready",(function(){"pre-roll"===ad_type&&player.muted(!0);const promise=player.play();void 0!==promise&&promise.then((_=>{})).catch((error=>{r89.log("AUTO_PLAY_ERROR",error)}))}));const contentPlayer=document.getElementById("content_instream_video_"+i3+"_html5_api");(navigator.userAgent.match(/iPad/i)||navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/Android/i))&&contentPlayer.hasAttribute("controls")&&contentPlayer.removeAttribute("controls"),player.on("adserror",(function(response){r89_overlay_skipped_finished.push(gamAdunit+"-Video-Overlay-Preroll-"+i3),document.getElementById("removeable-instream-div-"+i3).remove(),"pre-roll"===ad_type&&(player2=new YT.Player("video-instream"+i3,{height:youtube_element[0].height,width:youtube_element[0].width,videoId:video_id,playerVars:{autoplay:0,origin:window.location.origin},events:{onStateChange:onPlayerStateChange2}})),youtube_element[i3].className.length>0&&assignExistingClasses2(document.getElementById("video-instream"+i3),youtube_element[i3].className),youtube_element[i3].remove(),!1===player.isDisposed()&&player.dispose()})),player.on("ads-manager",(function(response){const adsManager=response.adsManager;adsManager.addEventListener(google.ima.AdEvent.Type.COMPLETE,(function(){adsManager.destroy(),r89_overlay_skipped_finished.push(gamAdunit+"-Video-Overlay-Preroll-"+i3),document.getElementById("removeable-instream-div-"+i3).remove(),"pre-roll"===ad_type&&(player2=new YT.Player("video-instream"+i3,{height:youtube_element[0].height,width:youtube_element[0].width,videoId:video_id,playerVars:{autoplay:0,origin:window.location.origin},events:{onStateChange:onPlayerStateChange2,onReady:onPlayerReady2}})),youtube_element[i3].className.length>0&&assignExistingClasses2(document.getElementById("video-instream"+i3),youtube_element[i3].className),youtube_element[i3].remove(),0==player.isDisposed()&&player.dispose()})),adsManager.addEventListener(google.ima.AdEvent.Type.SKIPPED,(function(){adsManager.destroy(),r89_overlay_skipped_finished.push(gamAdunit+"-Video-Overlay-Preroll-"+i3),document.getElementById("removeable-instream-div-"+i3).remove(),"pre-roll"===ad_type&&(player2=new YT.Player("video-instream"+i3,{height:youtube_element[0].height,width:youtube_element[0].width,videoId:video_id,playerVars:{autoplay:0,origin:window.location.origin},events:{onStateChange:onPlayerStateChange2,onReady:onPlayerReady2}})),youtube_element[i3].className.length>0&&assignExistingClasses2(document.getElementById("video-instream"+i3),youtube_element[i3].className),youtube_element[i3].remove(),0==player.isDisposed()&&player.dispose()}))}))}catch(err){r89.log(err)}})}checkScript2(),document.addEventListener("DOMContentLoaded",(function(event){document.getElementsByClassName("containerz-instream")[0].getElementsByClassName.display="block"}))}else r89.log("NO_YOUTUBE_TAGS_FOUND")}}}(r89Data),reload:function reload(){r89.reset.main()},skin:function skin(){return{addBackground:function(backgroundImage,backgroundColor,backgroundAttachment){if(!r89Data.config.skin.active)return!1;void 0===backgroundColor&&(backgroundColor="#000000"),void 0===backgroundAttachment&&(backgroundAttachment="scroll"),document.body.style.backgroundColor=backgroundColor,document.body.style.backgroundImage="url("+backgroundImage+")",document.body.style.backgroundPosition="center "+r89Data.config.skin.backgroundTopOffset+"px",document.body.style.backgroundRepeat="no-repeat",document.body.style.backgroundSize="auto",document.body.style.setProperty("background-attachment",backgroundAttachment,"important")},addSidelinks:function(link){if(!r89Data.config.skin.active||!r89Data.config.skin.sidelinksMargin)return!1;let left=document.createElement("a");left.href=link,left.target="_blank",left.style.width="720px",left.style.position="fixed",left.style.top=r89Data.config.skin.backgroundTopOffset+"px",left.style.bottom=0,left.style.right="50%",left.style.marginRight=r89Data.config.skin.sidelinksMargin+"px",left.style.pointer="cursor",left.style.zIndex="9",document.body.appendChild(left);let right=document.createElement("a");right.href=link,right.target="_blank",right.style.width="720px",right.style.position="fixed",right.style.top=r89Data.config.skin.backgroundTopOffset+"px",right.style.bottom=0,right.style.left="50%",right.style.marginLeft=r89Data.config.skin.sidelinksMargin+"px",right.style.pointer="cursor",right.style.zIndex="9",document.body.appendChild(right)}}}(),addSkin:(backgroundImage,backgroundColor,backgroundAttachment)=>r89.skin.addBackground(backgroundImage,backgroundColor,backgroundAttachment),addSkinLinks:link=>r89.skin.addSidelinks(link),contextual:function contextual(){return{status:"uncalled",setStatus:function(status){r89.log("Contextual: setStatus "+status),this.status=status},getStatus:function(){return this.status},checkDomain:function(){let host=window.location.hostname.split(".");return!(host.length<=1)&&("www"===host[0]&&host.shift(),host=host.join("."),host===r89Data.config.website_base_url)},createHash:function(pageUrl){const normalizedUrl=pageUrl.replace(/[^a-zA-Z0-9\/:_\-\.]/g,"");return r89.log("Contextual: Page URL - "+normalizedUrl),SHA256(normalizedUrl).toString(encHex)},main:function(){if(!this.checkDomain())return r89.log("Contextual: Domain does not match."),!1;this.setStatus("called");let pageUrl=window.location.protocol+"//"+window.location.hostname+window.location.pathname;fetch("https://contextual.refinery89.com/"+r89Data.config.website_id+"/"+this.createHash(pageUrl)+".json",{redirect:"follow"}).then((response=>{if(!response.ok)throw Error(response.statusText);return response})).then((response=>response.json())).then((result=>{r89.log("Contextual: Received response."),result.hasOwnProperty("categories")&&(r89Data.config.contextual.pageIabCategories=Object.keys(result.categories)),result.hasOwnProperty("topics")&&(r89Data.config.contextual.pageTopics=result.topics.slice(0,10)),result.hasOwnProperty("brand_safety")&&(null==result.brand_safety?r89Data.config.contextual.brandSafe=null:r89Data.config.contextual.brandSafe=result.brand_safety.toString()),this.setStatus("done")})).catch((error=>console.log("error",error)))}}}()}),function adBlockRecovery({google_adblock_recovery:googleAdblockRecovery}){if(googleAdblockRecovery){let fcm=document.createElement("script");fcm.src="https://fundingchoicesmessages.google.com/i/pub-0679975395820445?ers=1",fcm.async=!0,fcm.setAttribute("nonce","r3r4czhX6LDvt0VkL0qcMg"),document.head.appendChild(fcm);let script=document.createElement("script");script.setAttribute("nonce","r3r4czhX6LDvt0VkL0qcMg"),script.innerHTML="(function() {function signalGooglefcPresent() {if (!window.frames['googlefcPresent']) {if (document.body) {const iframe = document.createElement('iframe'); iframe.style = 'width: 0; height: 0; border: none; z-index: -1000; left: -1000px; top: -1000px;'; iframe.style.display = 'none'; iframe.name = 'googlefcPresent'; document.body.appendChild(iframe);} else {setTimeout(signalGooglefcPresent, 0);}}}signalGooglefcPresent();})();",document.head.appendChild(script);let script2=document.createElement("script");script2.innerHTML='(function(){\'use strict\';function aa(a){var b=0;return function(){return b>11&1023;return 0===a?536870912:a};var M={};function N(a){return null!==a&&"object"===typeof a&&!Array.isArray(a)&&a.constructor===Object}var O,ya=[];I(ya,39);O=Object.freeze(ya);var P;function Q(a,b){P=b;a=new a(b);P=void 0;return a}\n function R(a,b,c){null==a&&(a=P);P=void 0;if(null==a){var d=96;c?(a=[c],d|=512):a=[];b&&(d=d&-2095105|(b&1023)<<11)}else{if(!Array.isArray(a))throw Error();d=H(a);if(d&64)return a;d|=64;if(c&&(d|=512,c!==a[0]))throw Error();a:{c=a;var e=c.length;if(e){var f=e-1,g=c[f];if(N(g)){d|=256;b=(d>>9&1)-1;e=f-b;1024<=e&&(za(c,b,g),e=1023);d=d&-2095105|(e&1023)<<11;break a}}b&&(g=(d>>9&1)-1,b=Math.max(b,e-g),1024e;e++){var f=c.concat(d[e].split(""));sa[e]=f;for(var g=0;g>2];k=b[(k&3)<<4|w>>4];w=b[(w&15)<<2|h>>6];h=b[h&63];c[e++]=g+k+w+h}g=0;h=d;switch(a.length-f){case 2:g=a[f+1],h=b[(g&15)<<2]||d;case 1:a=a[f],c[e]=b[a>>2]+b[(a&3)<<4|g>>4]+h+d}a=c.join("")}return a}}return a};function Ba(a,b,c){a=Array.prototype.slice.call(a);var d=a.length,e=b&256?a[d-1]:void 0;d+=e?-1:0;for(b=b&512?1:0;b=L(b)){if(b&256)return a[a.length-1][c]}else{var e=a.length;if(d&&b&256&&(d=a[e-1][c],null!=d))return d;b=c+((b>>9&1)-1);if(b=f||e){e=b;if(b&256)f=a[a.length-1];else{if(null==d)return;f=a[f+((b>>9&1)-1)]={};e|=256}f[c]=d;e&=-1025;e!==b&&I(a,e)}else a[c+((b>>9&1)-1)]=d,b&256&&(d=a[a.length-1],c in d&&delete d[c]),b&1024&&I(a,b&-1025)}\n function La(a,b){var c=Ma;var d=void 0===d?!1:d;var e=a.h;var f=J(e),g=Ja(e,f,b,d);var h=!1;if(null==g||"object"!==typeof g||(h=Array.isArray(g))||g.s!==M)if(h){var k=h=H(g);0===k&&(k|=f&32);k|=f&2;k!==h&&I(g,k);c=new c(g)}else c=void 0;else c=g;c!==g&&null!=c&&Ka(e,f,b,c,d);e=c;if(null==e)return e;a=a.h;f=J(a);f&2||(g=e,c=g.h,h=J(c),g=h&2?Q(g.constructor,Ha(c,h,!1)):g,g!==e&&(e=g,Ka(a,f,b,e,d)));return e}function Na(a,b){a=Ia(a,b);return null==a||"string"===typeof a?a:void 0}\n function Oa(a,b){a=Ia(a,b);return null!=a?a:0}function S(a,b){a=Na(a,b);return null!=a?a:""};function T(a,b,c){this.h=R(a,b,c)}T.prototype.toJSON=function(){var a=Ea(this.h,Fa,void 0,void 0,!1,!1);return Pa(this,a,!0)};T.prototype.s=M;T.prototype.toString=function(){return Pa(this,this.h,!1).toString()};\n function Pa(a,b,c){var d=a.constructor.v,e=L(J(c?a.h:b)),f=!1;if(d){if(!c){b=Array.prototype.slice.call(b);var g;if(b.length&&N(g=b[b.length-1]))for(f=0;f=e){Object.assign(b[b.length-1]={},g);break}f=!0}e=b;c=!c;g=J(a.h);a=L(g);g=(g>>9&1)-1;for(var h,k,w=0;w=b||null!=a.g&&0!=a.g.offsetHeight&&0!=a.g.offsetWidth||(ib(a),fb(a),p.setTimeout(function(){return gb(a,b-1)},50))}\n function ib(a){var b=a.j;var c="undefined"!=typeof Symbol&&Symbol.iterator&&b[Symbol.iterator];if(c)b=c.call(b);else if("number"==typeof b.length)b={next:aa(b)};else throw Error(String(b)+" is not an iterable or ArrayLike");for(c=b.next();!c.done;c=b.next())(c=c.value)&&c.parentNode&&c.parentNode.removeChild(c);a.j=[];(b=a.g)&&b.parentNode&&b.parentNode.removeChild(b);a.g=null};function jb(a,b,c,d,e){function f(k){document.body?g(document.body):0r89.load.contentLoaded(),Scroll:()=>window.addEventListener("scroll",r89.load.scroll),Delayed3Seconds:()=>setTimeout(r89.load.contentLoaded,3e3),PublisherCall:()=>{!0===r89.pubInit&&(r89.log("Init: PubInit = true"),r89.initialize())}};initModes[r89Data.init_on]?initModes[r89Data.init_on]():initModes.ContentLoaded();let aup_script=document.createElement("script");aup_script.src=`https://tags.refinery89.com/performance/${r89Data.config.website_id}.js`,aup_script.type="text/javascript",aup_script.async=!0,window.document.head.appendChild(aup_script),r89Data.config.contextual.active&&r89.contextual.main(),r89.pushAdsCount=1,r89.pushAds=function pushAds(){const attributes=["minScreenWidth","maxScreenWidth","minScreenHeight","maxScreenHeight","lazyLoad","sizes"];let adunits2=document.querySelectorAll(".r89-ad");for(let i2=0;i2=position) + { + afixer.className = "fixed"; + adecaler.className = "decale"; + } + else + { + afixer.className=""; + adecaler.className=""; + } + + // Ne fixer la pub que si la taille de l'écran est suffisante.... + console.log(windowHeight); + + if ( (currentScroll>=positionpub-100) && (windowHeight>=800) ) + { + afixerpub.className="fixedpub"; + } + else + { + afixerpub.className=""; + } +} + +addEventListener("scroll", scrolled, false); +/* +*/ diff --git a/TD/.Rhistory b/TD/.Rhistory index 115b06b..4fbb7e2 100644 --- a/TD/.Rhistory +++ b/TD/.Rhistory @@ -43,3 +43,95 @@ rep(z, 3) vector1 <- c(1, 2, 3) vector2 <- c(4, 5, 6) vector3 <- c(vector1[1:2], vector2, vector1[3:length(vector1)]) +print("DS Félix MARQUET début (DS_Felix_MARQUET.R)") +# Exercice 1 +print("Début exercice 1") +# 5/ +print("Question 5:") +sum(dbinom(x=0,size=3600,prob=0.166)) # Ici je fais la loi binomial pour X=0, 3600 lancé et une probabilité de 1/6 +# 6/ +print("Question 6:") +i <- 0 # On défini i à 0 pour avoir une probabilité null au début +x <- 480 # On défini j à 480 car on veux x superieur a 480 sinon ça n'a pas de sense +while (i < 0.96) { # On boucle tant que la probabilité est inferieur a 96% +i <- sum(dbinom(x=480:x, size=3600, prob=0.166)) # On calcule la probabilité +x <- x + 1 # On augmente x de 1 +} +print(x - 1) +print("Fin exercice 1") +# Exercice 2 +print("Début exercice 2") +# Définition des fonction f(t), g(t) et h(t) dans [0 ; 2] (impossible de mettre dans if dans une function(t) +f <- function(t) { +(3 / 4 * t) * (2 - t) # On défini la fonction f +} +g <- function(t) { +1 / (sqrt(2 * 3.14 * (1 / 2)^2)) * exp(-(t - 1)^2 / 2 * (1 / 2)^2) # On défini la fonction g +} +h <- function(t) { +(1/2) + (t*0) # Ici t*0 car sinon le compilateur faire un erreur car une fonction en fonction t ne possède pas de t +} +# 3/ +print("Question 3:") +maxXf <- 0 +maxXf_t <- 0 +maxXg <- 0 +maxXg_t <- 0 +maxXh <- 0 +maxXh_t <- 0 +t <- 0 +while (t < 2) { # Tant que t < 2 on continue la boucle +Xf_t <- (3 / 4 * t) * (2 - t) # On calcul Xf(t) +Xg_t <- 1 / (sqrt(2 * 3.14 * (1 / 2)^2)) * exp(-(t - 1)^2 / 2 * (1 / 2)^2) # On calcul Xg(t) +Xh_t <- 1/2 # On calcul Xh(t) +if (Xf_t > maxXf) { # Si Xf(t) est superieur au Xf maximum trouvé jusqu'a présent on le remplace par Xf(t) +maxXf <- Xf_t +maxXf_t <- t +} +if (Xg_t > maxXg) { # Si Xg(t) est superieur au Xg maximum trouvé jusqu'a présent on le remplace par Xg(t) +maxXg <- Xg_t +maxXg_t <- t +} +if (Xh_t > maxXh) { # Si Xh(t) est superieur au Xh maximum trouvé jusqu'a présent on le remplace par Xh(t) +maxXh <- Xh_t +maxXh_t <- t +} +t <- t + 0.01 # On augmente t de 0.01 pour avoir des mesures précises +} +# On affiche les résultats obtenu +print("maxXf :") +print(maxXf) +print("maxXf_t :") +print(maxXf_t) +print("maxXg :") +print(maxXg) +print("maxXg_t :") +print(maxXg_t) +print("maxXh :") +print(maxXh) +print("maxXh_t :") +print(maxXh_t) +# 4/ +print("Question 4:") +result_q4 <- integrate(f, lower = 0, upper = 2) # Calcul de l'intégrale de f entre 0 et 2 +print(result_q4) +# 5/ +print("Question 5:") +he <- function(t) { +t * (1/2) # On défini t*h(t) pour pouvoir calculer l'espérence de h(t) +} +result_q5 <- integrate(he, lower = 0, upper = 2) # On se place entre 0 et 2 car le reste vaut 0 +print(result_q5) +# 6/ +print("Question 6:") +f_entre_0.5_0.75 <- integrate(f, lower = 0.5, upper = 0.75) # Calcul de l'intégrale de f entre 0.5 (00h30) et 0.75 (00h45) +g_entre_0.5_0.75 <- integrate(g, lower = 0.5, upper = 0.75) +h_entre_0.5_0.75 <- integrate(h, lower = 0.5, upper = 0.75) +print("f entre 0.5 et 0.75 :") +print(f_entre_0.5_0.75) +print("g entre 0.5 et 0.75 :") +print(g_entre_0.5_0.75) +print("h entre 0.5 et 0.75 :") +print(h_entre_0.5_0.75) +print("Fin exercice 2") +print("DS Félix MARQUET fin (DS_Felix_MARQUET.R)") diff --git a/TD/.Rproj.user/F9ECB55E/sources/per/t/B62E70DA b/TD/.Rproj.user/F9ECB55E/sources/per/t/B62E70DA index eef4266..70e49c7 100644 --- a/TD/.Rproj.user/F9ECB55E/sources/per/t/B62E70DA +++ b/TD/.Rproj.user/F9ECB55E/sources/per/t/B62E70DA @@ -3,24 +3,24 @@ "path": "C:/Users/BreizhHardware/Nextcloud/Programation/R/TD/Exo3.R", "project_path": "Exo3.R", "type": "r_source", - "hash": "340809373", + "hash": "1696507348", "contents": "", - "dirty": false, + "dirty": true, "created": 1733479137294.0, "source_on_save": false, "relative_order": 3, "properties": { "source_window_id": "", "Source": "Source", - "cursorPosition": "0,0", - "scrollLine": "0" + "cursorPosition": "38,8", + "scrollLine": "9" }, "folds": "", - "lastKnownWriteTime": 1733479598, + "lastKnownWriteTime": 1733482451, "encoding": "UTF-8", "collab_server": "", "source_window": "", - "last_content_update": 1733479598, + "last_content_update": 1734687486296, "read_only": false, "read_only_alternatives": [] } \ No newline at end of file diff --git a/TD/.Rproj.user/F9ECB55E/sources/per/t/B62E70DA-contents b/TD/.Rproj.user/F9ECB55E/sources/per/t/B62E70DA-contents index 392f752..533e249 100644 --- a/TD/.Rproj.user/F9ECB55E/sources/per/t/B62E70DA-contents +++ b/TD/.Rproj.user/F9ECB55E/sources/per/t/B62E70DA-contents @@ -10,5 +10,30 @@ y3 <- runif(20, 0, 10) # Extraire de y3 # le troisième élément -y33 <- y3[2] +y33 <- y3[3] # tous les éléments sauf le troisième +y34 <- y3[-3] + +# Comparer les commandes suivantes +matrix(y3, nrow = 2) +matrix(y3, byrow = TRUE) + +# Construire une matrice A comportant quatre lignes et trois colonnes remplies par lignes +# successives avec les éléments du vecteur 1:12 +A <- matrix(1:12, nrow = 4, byrow = TRUE) + +# Construire une matrice B comportant quatre lignes et trois colonnes remplies par +# colonnes successives avec les éléments du vecteur 1:12 +B <- matrix(1:12, nrow = 4, byrow = FALSE) + +# Extraire l’élément situé en deuxième ligne et troisième colonne de A +A[2, 3] + +# Extraire la première colonne de A, puis la deuxième ligne de A. +A[, 1] +A[2, ] + +# Construire une matrice C constituée des lignes 1 et 4 de A. +C <- A[c(1, 4), ] +print(A) +print(C) \ No newline at end of file diff --git a/TD/.Rproj.user/F9ECB55E/sources/prop/1489AED4 b/TD/.Rproj.user/F9ECB55E/sources/prop/1489AED4 index 421141e..33c0fa3 100644 --- a/TD/.Rproj.user/F9ECB55E/sources/prop/1489AED4 +++ b/TD/.Rproj.user/F9ECB55E/sources/prop/1489AED4 @@ -1,6 +1,6 @@ { "source_window_id": "", "Source": "Source", - "cursorPosition": "0,0", - "scrollLine": "0" + "cursorPosition": "38,8", + "scrollLine": "9" } \ No newline at end of file