(function () {
  //Inject code v3.0.1

  var highcharts = document.createElement('script');

  var cdn = 'https://code.highcharts.com/';
  var loaded = 0;  
  var encodedUrl = encodeURI('https://https://app.everviz.com//show/P-AZnjNMs');
  var chartCreated = false;
  var scripts = [
    "highcharts.js",
    "modules/stock.js",
    "highcharts-more.js",
    "highcharts-3d.js",
    "modules/data.js",
    "modules/exporting.js",
    "modules/funnel.js",
    "modules/solid-gauge.js",
    "modules/export-data.js",
    "modules/accessibility.js"
    /* "modules/series-label.js" */
  ];

  var externalCSS = [
      ];

  var extraScripts = [
  "https://code.highcharts.com/modules/annotations.js"
  ,"https://code.highcharts.com/modules/annotations-advanced.js"
  ];

  var options = {"title":{"text":"Reduction in cumulative infections thanks to a 30-day policy intervention","align":"left","x":10,"style":{"fontFamily":"'Fort', sans-serif","fontSize":17,"lineHeight":21,"fontWeight":"700","color":"#222222"}},"subtitle":{"text":"","align":"left","x":10,"style":{"fontFamily":"'Fort', sans-serif","fontSize":15,"fontStyle":"italic","lineHeight":20,"fontWeight":"400","color":"#222222"}},"colors":["#56c5d0","#DD495E","#2A2383","#F2C60E","#24CBE5","#64E572","#FF9655","#FFF263","#6AF9C4"],"legend":{"align":"left","verticalAlign":"top","itemMarginBottom":10,"x":0,"symbolRadius":2,"enabled":false,"itemStyle":{"fontSize":14,"fontWeight":"700"}},"plotOptions":{"series":{"marker":{"enabled":false},"lineWidth":3,"allowPointSelect":true,"states":{"select":{"color":"#EFFFEF","borderColor":"black","dashStyle":"dot"}},"events":{},"dataLabels":{"style":{"fontSize":14}}},"line":{"lineWidth":4}},"chart":{"type":"line","backgroundColor":"#f7f6f7","style":{"fontFamily":"'Fort', sans-serif","fontWeight":"500"}},"exporting":{"buttons":{"contextButton":{"theme":{"fill":"#f7f6f7"}}}},"credits":{"text":"everviz.com","href":"https://everviz.com","enabled":false,"style":{"fontSize":12,"fontWeight":"500","color":"#222222"}},"series":[{"data":[],"turboThreshold":0,"type":"line","name":"Rate"}],"caption":{"text":"Figure 2"},"tooltip":{"valueSuffix":"% fewer infections","headerFormat":"<span style=\"font-size: 10px\">DAY {point.key}</span><br/>","pointFormat":"<span style=\"color:{point.color}\">●</span> <b>{point.y}</b><br/>","valueDecimals":3,"style":{"fontFamily":"'Fort', sans-serif","fontSize":14,"fontWeight":"500","color":"#222222"}},"xAxis":{"title":{"text":"Days elapsed during pandemic","style":{"fontFamily":"'Fort', sans-serif","fontSize":15,"fontWeight":"700","color":"#222222"}},"tickColor":"#222222","lineColor":"#222222","labels":{"style":{"fontSize":14,"fontWeight":"700","color":"#222222"}},"min":1},"yAxis":{"title":{"text":"","style":{"fontFamily":"'Fort', sans-serif","fontSize":15,"fontWeight":"700","color":"#222222"}},"labels":{"format":"{value}%","style":{"fontSize":14,"fontWeight":"700","color":"#222222"}},"endOnTick":false},"stockTools":{"gui":{"enabled":false}},"navigation":{"events":{},"bindingsClassName":"tools-container"},"labels":{"items":[]},"pane":{"background":[]},"responsive":{"rules":[]},"annotations":[],"data":{"csv":"Day ;Rate\n1;0.001675506\n2;0.001843021\n3;0.00202728\n4;0.002229955\n5;0.002452887\n6;0.002698098\n7;0.002967814\n8;0.003264481\n9;0.003590791\n10;0.003949702\n11;0.004344469\n12;0.00477867\n13;0.005256239\n14;0.005781501\n15;0.006359213\n16;0.006994604\n17;0.007693422\n18;0.008461986\n19;0.009307242\n20;0.010236826\n21;0.011259128\n22;0.01238337\n23;0.013619685\n24;0.014979205\n25;0.016474164\n26;0.018117996\n27;0.019925459\n28;0.021912757\n29;0.024097686\n30;0.026499776\n31;0.029140467\n32;0.032043281\n33;0.035234026\n34;0.038741004\n35;0.042595246\n36;0.046830762\n37;0.051484817\n38;0.056598224\n39;0.062215658\n40;0.068386007\n41;0.075162733\n42;0.082604269\n43;0.090774439\n44;0.099742907\n45;0.10958565\n46;0.12038546\n47;0.132232468\n48;0.145224694\n49;0.159468608\n50;0.175079719\n51;0.192183157\n52;0.210914271\n53;0.231419203\n54;0.253855455\n55;0.278392407\n56;0.305211794\n57;0.334508095\n58;0.366488833\n59;0.401374736\n60;0.439399742\n61;0.480810804\n62;0.525867446\n63;0.574841042\n64;0.628013753\n65;0.68567708\n66;0.748129978\n67;0.815676487\n68;0.888622823\n69;0.967273902\n70;1.051929259\n71;1.14287835\n72;1.240395247\n73;1.344732743\n74;1.456115938\n75;1.57473537\n76;1.700739844\n77;1.834229077\n78;1.975246374\n79;2.12377154\n80;2.279714268\n81;2.442908245\n82;2.613106246\n83;2.789976433\n84;2.973100077\n85;3.161970861\n86;3.355995889\n87;3.554498416\n88;3.75672231\n89;3.961838116\n90;4.168950589\n91;4.377107471\n92;4.585309268\n93;4.792519746\n94;4.997676886\n95;5.199704028\n96;5.397520972\n97;5.590054847\n98;5.776250594\n99;5.955080977\n100;6.125556041\n101;6.286732022\n102;6.43771969\n103;6.577692171\n104;6.705892241\n105;6.821639138\n106;6.924334849\n107;7.013469873\n108;7.088628364\n109;7.149492577\n110;7.195846472\n111;7.227578346\n112;7.244682324\n113;7.247258551\n114;7.235511969\n115;7.209749555\n116;7.170375995\n117;7.117887773\n118;7.052865773\n119;6.975966517\n120;6.887912246\n121;6.789480102\n122;6.681490688\n123;6.56479634\n124;6.440269415\n125;6.308790896\n126;6.171239608\n127;6.028482253\n128;5.881364469\n129;5.730703033\n130;5.57727928\n131;5.421833784\n132;5.265062245\n133;5.107612572\n134;4.950083027\n135;4.793021364\n136;4.636924819\n137;4.482240832\n138;4.329368383\n139;4.178659809\n140;4.030423003\n141;3.884923888\n142;3.742389072\n143;3.603008613\n144;3.46693883\n145;3.334305099\n146;3.205204596\n147;3.079708956\n148;2.95786681\n149;2.839706201\n150;2.725236851\n151;2.614452281\n152;2.507331777\n153;2.403842204\n154;2.303939668\n155;2.207571042\n156;2.114675346\n157;2.025184994\n158;1.93902693\n159;1.856123634\n160;1.776394034\n161;1.69975431\n162;1.626118612\n163;1.555399697\n164;1.487509481\n165;1.422359534\n166;1.359861503\n167;1.299927485\n168;1.242470345\n169;1.18740399\n170;1.1346436\n171;1.084105829\n172;1.035708963\n173;0.989373056\n174;0.945020041\n175;0.902573813\n176;0.861960294\n177;0.823107483\n178;0.785945487\n179;0.75040654\n180;0.716425009\n181;0.683937391\n182;0.6528823\n183;0.623200448\n184;0.594834619\n185;0.567729636\n186;0.541832323\n187;0.517091468\n188;0.493457779\n189;0.470883834\n190;0.449324039\n191;0.428734574\n192;0.409073347\n193;0.390299938\n194;0.372375552\n195;0.355262964\n196;0.33892647\n197;0.323331835\n198;0.308446243\n199;0.294238247\n200;0.28067772\n201;0.267735805\n202;0.255384873\n203;0.24359847\n204;0.232351279\n205;0.221619071\n206;0.211378664\n207;0.201607885\n208;0.192285523\n209;0.183391298\n210;0.174905818\n211;0.166810542\n212;0.159087751\n213;0.151720507\n214;0.144692624\n215;0.137988638\n216;0.131593772\n217;0.125493909\n218;0.119675565\n219;0.114125861\n220;0.108832496\n221;0.103783724\n222;0.098968326\n223;0.094375592\n224;0.089995296\n225;0.085817676\n226;0.081833411\n227;0.078033604\n228;0.074409763\n229;0.070953782\n230;0.067657925\n231;0.06451481\n232;0.061517389\n233;0.058658938\n234;0.055933042\n235;0.053333577\n236;0.050854702\n237;0.048490842\n238;0.04623668\n239;0.04408714\n240;0.042037383\n241;0.04008279\n242;0.038218955\n243;0.036441675\n244;0.034746941\n245;0.033130928\n246;0.031589989\n247;0.030120643\n248;0.028719571\n249;0.027383607\n250;0.026109731\n251;0.024895063\n252;0.023736856\n253;0.02263249\n254;0.021579465\n255;0.020575399\n256;0.019618019\n257;0.018705156\n258;0.017834743\n259;0.01700481\n260;0.016213475\n261;0.015458945\n262;0.014739511\n263;0.014053541\n264;0.013399481\n265;0.012775847\n266;0.012181226\n267;0.011614269\n268;0.01107369\n269;0.010558262\n270;0.010066816\n271;0.009598238\n272;0.009151463\n273;0.008725478\n274;0.008319316\n275;0.007932056\n276;0.007562817\n277;0.007210762\n278;0.006875091\n279;0.006555043\n280;0.006249891\n281;0.005958941\n282;0.005681532\n283;0.005417036\n284;0.005164851\n285;0.004924403\n286;0.004695148\n287;0.004476564\n288;0.004268155\n289;0.004069447\n290;0.003879989\n291;0.00369935\n292;0.00352712\n293;0.003362908\n294;0.00320634\n295;0.00305706\n296;0.00291473\n297;0.002779026\n298;0.00264964\n299;0.002526276\n300;0.002408656\n301;0.002296512\n302;0.002189589\n303;0.002087643\n304;0.001990444\n305;0.00189777\n306;0.001809411\n307;0.001725165\n308;0.001644841\n309;0.001568257\n310;0.001495239\n311;0.00142562\n312;0.001359243\n313;0.001295956\n314;0.001235615\n315;0.001178084\n316;0.001123232\n317;0.001070933\n318;0.00102107\n319;0.000973528\n320;0.000928199\n321;0.000884981\n322;0.000843775\n323;0.000804488\n324;0.00076703\n325;0.000731316\n326;0.000697265\n327;0.000664799\n328;0.000633845\n329;0.000604332\n330;0.000576193\n331;0.000549365\n332;0.000523786\n333;0.000499397\n334;0.000476144\n335;0.000453974\n336;0.000432836\n337;0.000412683\n338;0.000393467\n339;0.000375147\n340;0.000357679\n341;0.000341025\n342;0.000325146\n343;0.000310006\n344;0.000295572\n345;0.000281809\n346;0.000268688\n347;0.000256177\n348;0.000244249\n349;0.000232876\n350;0.000222033\n351;0.000211695\n352;0.000201838\n353;0.00019244\n354;0.000183479\n355;0.000174936\n356;0.000166791\n357;0.000159024\n358;0.00015162\n359;0.00014456\n360;0.000137829\n361;0.000131411\n362;0.000125292\n363;0.000119459\n364;0.000113896\n365;0.000108593","seriesMapping":[{"x":0,"y":1}]}};
  
  var templateDataSettings = {};

  var pluginCode = {};;

  options.data.complete = function(options) {
    const keys = Object.keys(templateDataSettings || {});
    keys.forEach(function(key) {
      const serie = options.series[key];
      (serie.data || []).forEach(function(d, i) {
        if (templateDataSettings[key].data && templateDataSettings[key].data[i]) {
          merge(d, templateDataSettings[key].data[i]);
        }
      })
    })  
    return options;
  }

  merge(options, pluginCode);

  function isNull(what){return(typeof what==='undefined'||what===null)}
  function isStr(what){return(typeof what==='string'||what instanceof String)}
  function isNum(what){return!isNaN(parseFloat(what))&&isFinite(what)}
  function isFn(what){return(what&&(typeof what==='function')||(what instanceof Function))}
  function isArr(what){return(!isNull(what)&&what.constructor.toString().indexOf('Array')>-1)}
  function isBool(what){return(what===!0||what===!1)}
  function isBasic(what){return!isArr(what)&&(isStr(what)||isNum(what)||isBool(what)||isFn(what))}
  function isObj(what){return what&&what.constructor.toString().indexOf('Object')>-1}
  function isEmptyObjectArray(arr){return isObj(arr[0])&&arr.some(function(b){return Object.keys(b).length===0})}
  function merge(a,b){if(!a||!b)return a||b;Object.keys(b).forEach(function(bk){if(isNull(b[bk])||isBasic(b[bk])){a[bk]=b[bk]}else if(isArr(b[bk])){if(isEmptyObjectArray(b[bk]))return;a[bk]=[];b[bk].forEach(function(i){if(isNull(i)||isBasic(i)){a[bk].push(i)}else{a[bk].push(merge(isArr(i)?[]:{},i))}})}else{a[bk]=a[bk]||{};merge(a[bk],b[bk])}});return a}

  function isScriptAlreadyIncluded(src){
    var scripts = document.getElementsByTagName("script");
    for (var i = 0; i < scripts.length; i++) {
      if (scripts[i].hasAttribute('src')) {
        const scriptTag = scripts[i].getAttribute('src') || '';
        if ((scriptTag.indexOf(src) >= 0) || 
            (scriptTag.indexOf('highcharts.src.js') > -1 && src === 'highcharts.js') ||
            ((scriptTag.indexOf('stock/highstock.js') > -1) && src === 'modules/highstock.js')) {
          return true;
        }
      }
    }
    return false;
  }

  function loadCSS() {
    var cssLength = externalCSS.length;
    for(var i=0; i < cssLength; i++) {
      var css = document.createElement('link');
      css.rel  = 'stylesheet';
      css.type = "text/css";
      css.href = externalCSS[i];
      document.body.appendChild(css);
    }
  }

  function createChart() {
    if(chartCreated) return;

    if (typeof window['Highcharts'] !== 'undefined') {
      

    if (options.yAxis && options.yAxis.length === 1) options.yAxis = options.yAxis[0];
    if (options.xAxis && options.xAxis.length === 1) options.xAxis = options.xAxis[0];
    if (options.zAxis && options.zAxis.length === 1) options.zAxis = options.zAxis[0];

    Highcharts.merge(true, options, {
    chart: {style: {fontFamily: "'Fort', sans-serif", fontWeight: "500",}},
    credits: {style: {fontSize: 12, fontWeight: "500", color: "#222222",}},
    legend: {itemStyle: {fontSize: 14, fontWeight: "700",}},
    plotOptions: {series: {dataLabels: {style: {fontSize: 14,}}}},
    subtitle: {style: {fontFamily: "'Fort', sans-serif", fontSize: 15, fontStyle: "italic", lineHeight: 20, fontWeight: "400", color: "#222222",}},
    title: {style: {fontFamily: "'Fort', sans-serif", fontSize: 17, lineHeight: 21, fontWeight: "700", color: "#222222",}},
    tooltip: {style: {fontFamily: "'Fort', sans-serif", fontSize: 14, fontWeight: "500", color: "#222222",}},
    xAxis: {labels: {style: {fontSize: 14, fontWeight: "700", color: "#222222",}}, title: {style: {fontFamily: "'Fort', sans-serif", fontSize: 15, fontWeight: "700", color: "#222222",}}},
    yAxis: {labels: {style: {fontSize: 14, fontWeight: "700", color: "#222222",}}, title: {style: {fontFamily: "'Fort', sans-serif", fontSize: 15, fontWeight: "700", color: "#222222",}}},
});


      if (options && (options.lang || options.global)) {
        Highcharts.setOptions({
          global: options.global || {},
          lang: options.lang || {}
        });
      }

      if (Highcharts.Annotation) {
        Highcharts.Annotation.ControlPoint.prototype.redraw = function (animation) {
          this.graphic[animation ? 'animate' : 'attr'](
              this.options.positioner ? this.options.positioner.call(this, this.target) : null
          );
        };
      }
      
      chartCreated = true;
      window.HighchartsCloud.hasLoaded = true;
      new Highcharts.Chart('highcharts-P-AZnjNMs', options);
    }
  }

  function check(scripts, cb) {
    if (loaded === scripts.length) {
      if (cb) {
        cb();
      } else {
        for (var i = 0; i < window.HighchartsCloud.ondone.length; i++) {
          try {
            window.HighchartsCloud.ondone[i]();
          } catch(e) {
            console.error(e);
          }
        }
      }
    }
  }

  function loadScript(s, scripts, cb) {
    if (!s) next();
    
    function next() {
      ++loaded;
      if (loaded < scripts.length) {
        loadScript(scripts[loaded], scripts, cb);
      }
      check(scripts, cb);
    }

    if (isScriptAlreadyIncluded(s)) {
      return next();
    }

    var n = document.createElement('script');

    n.onload = function () {
      next();
    };

    if (s.indexOf('https') >= 0) {
      n.src = s;
    } else {
      n.src = cdn + s;
    }
    document.body.appendChild(n);
  }

  function loadExtraScripts(){
    if (extraScripts.length > 0) {
      loaded = 0;
      loadScript(extraScripts[0], extraScripts);
    } else {
      check(scripts);
    }
  }

  function loadExtraScriptsAndMakeChart(){
    loaded = 0;
    if (extraScripts.length > 0) {
      loadScript(extraScripts[0], extraScripts, createChart);
    } else {
      check(extraScripts);
    }
  }

  if (typeof window['HighchartsCloud'] === 'undefined') {
    window.HighchartsCloud = {
      ondone: [createChart],
      hasWrapped: false,
      hasLoaded: false
    };

    loadScript(scripts[0], scripts, loadExtraScripts);
    loadCSS();

  } else {
    if (!window.HighchartsCloud.hasLoaded) window.HighchartsCloud.ondone.push(loadExtraScriptsAndMakeChart);
    else loadExtraScriptsAndMakeChart();
  }

}());
