My Second-Grader’s Friend Is Policing Her Diet – Slate

‘):””},t.getDefinedParams=function(e,t){return t.filter(function(t){return e[t]}).reduce(function(t,n){return i(t,function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},n,e[n]))},{})},t.isValidMediaTypes=function(e){var t=[“banner”,”native”,”video”];return!!Object.keys(e).every(function(e){return J()(t,e)})&&(!e.video||!e.video.context||J()([“instream”,”outstream”,”adpod”],e.video.context))},t.getBidderRequest=function(e,t,n){return H()(e,function(e){return 0n[e]?-1:0}};var L=n(3),F=n(115),G=n.n(F),V=n(12),H=n.n(V),K=n(10),J=n.n(K),$=n(116);n.d(t,”deepAccess”,function(){return $.a});var Y=n(117);n.d(t,”deepSetValue”,function(){return Y.a});var Z,X=n(5),Q=”Array”,ee=”String”,te=”Function”,ne=”Number”,re=”Object”,ie=”Boolean”,oe=Object.prototype.toString,ae=Boolean(window.console),ue=Boolean(ae&&window.console.log),ce=Boolean(ae&&window.console.info),se=Boolean(ae&&window.console.warn),de=Boolean(ae&&window.console.error),fe={checkCookieSupport:M,createTrackPixelIframeHtml:k,getWindowSelf:f,getWindowTop:d,getWindowLocation:l,insertUserSyncIframe:O,insertElement:T,isFn:_,triggerPixel:C,logError:v,logWarn:h,logMessage:p,logInfo:g},le={},pe=function(e,t){return t}.bind(null,1,le)()===le?Function.prototype.bind:function(e){var t=this,n=Array.prototype.slice.call(arguments,1);return function(){return t.apply(e,n.concat(Array.prototype.slice.call(arguments)))}},ge=(Z=0,function(){return++Z}),he=function(){if(Array.prototype.indexOf)return Array.prototype.indexOf}(),ve=N(“timeToRespond”,function(e,t){return t=e.length?(this._t=void 0,i(1)):i(0,”keys”==t?n:”values”==t?e[n]:[n,e[n]])},”values”),o.Arguments=o.Array,r(“keys”),r(“values”),r(“entries”)},101:function(e,t,n){“use strict”;var r=n(102),i=n(72);e.exports=n(104)(“Set”,function(e){return function(t){return e(this,0>>0,o=0;if(t)n=t;else{for(;o=y.syncsPerBidder?s.logWarn(‘Number of user syncs exceeded for “‘.concat(t,'”‘)):g.canBidderRegisterSync(e,t)?(h[e].push([t,n]),(r=b)[i=t]?r[i]+=1:r[i]=1,void(b=r)):s.logWarn(‘Bidder “‘.concat(t,'” not permitted to register their “‘).concat(e,'” userSync pixels.’)):s.logWarn(“Bidder is required for registering sync”):s.logWarn(‘User sync type “‘.concat(e,'” not supported’));var r,i},g.syncUsers=function(){var e=0Object(y.timestamp)()},R=function(e){return e&&(e.status&&!I()([T.BID_STATUS.RENDERED],e.status)||!e.status)},D=(v=A.a,m={},(b={}).setLatestAuctionForAdUnit=function(e,t){m[e]=t},b.resetPresetTargeting=function(e){if(Object(y.isGptPubadsDefined)()){var t=s(e),n=v.getAdUnits().filter(function(e){return I()(t,e.code)});window.googletag.pubads().getSlots().forEach(function(e){C.forEach(function(t){n.forEach(function(n){n.code!==e.getAdUnitPath()&&n.code!==e.getSlotElementId()||e.setTargeting(t,null)})})})}},b.resetPresetTargetingAST=function(e){s(e).forEach(function(e){var t=window.apntag.getTag(e);if(t&&t.keywords){var n=Object.keys(t.keywords),r={};n.forEach(function(e){I()(C,e.toLowerCase())||(r[e]=t.keywords[e])}),window.apntag.modifyTag(e,{keywords:r})}})},b.getAllTargeting=function(e){var t,n,p,v,m,A,w,x,E,j=1e.getTimeout()+b.b.getConfig(“timeoutBuffer”)&&e.executeCallback(!0)}function a(e,t){var n=e.getBidRequests(),r=S()(n,function(e){return e.bidderCode===t.bidderCode});!function(e,t){var n;if(e.bidderCode&&(0n&&(t=!1)),!t}),t&&e.run(),t}function d(e,t){void 0===e[t]?e[t]=1:e[t]++}var l=this;g=C,s=Date.now();var m=I.makeBidRequests(W,s,K,$,L);E.logInfo(“Bids Requested for Auction with id: “.concat(K),m),m.forEach(function(e){var t;t=e,G=G.concat(t)});var y={};if(m.lengtht.max?e:t},{max:0}),b=0,m=u()(t.buckets,function(t){if(e>v.max*n){var i=t.precision;void 0===i&&(i=s),r=(t.max*n).toFixed(i)}else{if(e=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})})},62:function(e,t,n){function r(){}var i=n(28),o=n(94),a=n(63),u=n(50)(“IE_PROTO”),c=”prototype”,s=function(){var e,t=n(55)(“iframe”),r=a.length;for(t.style.display=”none”,n(97).appendChild(t),t.src=”javascript:”,(e=t.contentWindow.document).open(),e.write(“

“));var f=i(j[r.size_id].split(“x”).map(function(e){return Number(e)}),2);d.width=f[0],d.height=f[1]}d.rubiconTargeting=(Array.isArray(r.targeting)?r.targeting:[]).reduce(function(e,t){return e[t.key]=t.values[0],e},{rpfl_elemid:s.adUnitCode}),t.push(d)}else y.logError(“Rubicon: bidRequest undefined at index position:”.concat(o),n,e);return t},[]).sort(function(e,t){return(t.cpm||0)-(e.cpm||0)})},getUserSyncs:function(e,t,n,r){if(!C&&e.iframeEnabled){var i=””;return n&&”string”==typeof n.consentString&&(“boolean”==typeof n.gdprApplies?i+=”?gdpr=”.concat(Number(n.gdprApplies),”&gdpr_consent=”).concat(n.consentString):i+=”?gdpr_consent=”.concat(n.consentString)),r&&(i+=””.concat(i?”&”:”?”,”us_privacy=”).concat(encodeURIComponent(r))),C=!0,{type:”iframe”,url:E+i}}},transformBidParams:function(e){return y.convertTypes({accountId:”number”,siteId:”number”,zoneId:”number”},e)}},C=!1;Object(_.registerBidder)(T)}},[469]),pbjsChunk([55],{535:function(e,t,n){e.exports=n(536)},536:function(e,t,n){“use strict”;function r(e){var t;t=e.value,o.isArray(t)&&0-1}});var instance=window.Layzr({threshold:100});instance.on(“src:before”,function(e){e.addEventListener(“load”,function(t){e.parentElement.classList.add(“loaded”)})}),document.addEventListener(“DOMContentLoaded”,function(e){instance.update().check().handlers(!0)}),DS.service(“teadsBackfill”,[“$window”,function(e){e.teadsNoFill=function(e){var t,n=window.innerWidth>969,r=window.innerWidtht?e:t}function a(){S.forEach(s)}function u(e,t){var n=t.visiblePx,r=t.visiblePercent;n&&r>=e.shownThreshold&&!e.seen?(e.seen=!0,setTimeout(function(){e.trigger(“shown”,new _(“shown”,t))},15)):(!n||r=0&&r.left>=0&&r.bottom1&&(a+=h(o,Math.floor(t/r),n-1,r)),a}function v(e,t){return i(t,o(e.bottom,0))-i(o(e.top,0),t)}function b(e){for(var t=e.offsetLeft,n=e.offsetTop;e=e.offsetParent;)t+=e.offsetLeft,n+=e.offsetTop;return{left:t,top:n}}function m(t,r){var i,o;return t=t.split(“,”),o=n.filter(n.map(t,function(t){return(i=e.querySelector(t))&&new y(i).on(“shown”,function(){n.invokeMap(o,”destroy”),r()})}))}var y,_,S=[];y=function(e,t){t=t||{},this.el=e,this.seen=!1,this.preload=!1,this.preloadThreshhold=t&&t.preloadThreshhold||0,this.shownThreshold=t&&t.shownThreshold||0,this.hiddenThreshold=t&&i(t.shownThreshold,t.hiddenThreshold)||0,S.push(this),s(this)},y.prototype={destroy:function(){S.splice(S.indexOf(this),1)}},r.enable(y.prototype),_=function(e,t){this.type=e,n.assign(this,t)},e.addEventListener(“scroll”,n.throttle(a,200)),this.getPageOffset=b,this.getLinearSpacialHash=h,this.getVerticallyVisiblePixels=v,this.getViewportHeight=d,this.getViewportWidth=f,this.isElementNotHidden=l,this.isElementInViewport=p,this.watchForAny=m,this.Visible=y}]);”use strict”;var _typeof=”function”==typeof Symbol&&”symbol”==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&”function”==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?”symbol”:typeof e};!function(){function e(t,n,o){function r(c,s){if(!n[c]){if(!t[c]){var a=”function”==typeof require&&require;if(!s&&a)return a(c,!0);if(i)return i(c,!0);var u=new Error(“Cannot find module ‘”+c+”‘”);throw u.code=”MODULE_NOT_FOUND”,u}var l=n[c]={exports:{}};t[c][0].call(l.exports,function(e){return r(t[c][1][e]||e)},l,l.exports,e,t,n,o)}return n[c].exports}for(var i=”function”==typeof require&&require,c=0;c1){if(i=e({path:”/”},o.defaults,i),”number”==typeof i.expires){var s=new Date;s.setMilliseconds(s.getMilliseconds()+864e5*i.expires),i.expires=s}i.expires=i.expires?i.expires.toUTCString():””;try{c=JSON.stringify(r),/^[\{\[]/.test(c)&&(r=c)}catch(e){}r=n.write?n.write(r,t):encodeURIComponent(String(r)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=encodeURIComponent(String(t)),t=t.replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent),t=t.replace(/[\(\)]/g,escape);var a=””;for(var u in i)i[u]&&(a+=”; “+u,!0!==i[u]&&(a+=”=”+i[u]));return document.cookie=t+”=”+r+a}t||(c={});for(var l=document.cookie?document.cookie.split(“; “):[],d=/(%[0-9A-Z]{2})+/g,f=0;f-1&&(console.log(“removing serviceworker”),a.unregister())}}catch(e){r=!0,n=e}finally{try{!t&&o.return&&o.return()}finally{if(r)throw n}}});var t=e(“../../services/client/slate-amplitude”);window.addEventListener(“load”,function(){navigator.serviceWorker.register(“/sw.js”).then(function(e){},function(e){console.error(“ServiceWorker registration failed: “,e)})}),window.addEventListener(“beforeinstallprompt”,function(e){e.userChoice.then(function(e){“dismissed”===e.outcome?t.track(“PWA – dismissed install prompt”):t.track(“PWA – Added to Home Screen”)})})}}()},{“../../services/client/slate-amplitude”:2}],2:[function(e,t,r){var n=void 0,i=function(e){return n||(e=e||document.querySelectorAll(“script.js-analytics-js-data”)[0],n=JSON.parse(e.textContent))},o=function(e,t,r){var n=i(),o={};Object.assign(o,n,t),amplitude.getInstance().logEvent(e,o,r)},a=function(e,t){amplitude.getInstance().logEvent(“Loaded a Page”,e,t)};t.exports.getDomEventData=i,t.exports.page=a,t.exports.track=o},{}]},{},[1]);”use strict”;var _typeof=”function”==typeof Symbol&&”symbol”==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&”function”==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?”symbol”:typeof e};!function(){function e(t,n,o){function r(c,s){if(!n[c]){if(!t[c]){var u=”function”==typeof require&&require;if(!s&&u)return u(c,!0);if(i)return i(c,!0);var a=new Error(“Cannot find module ‘”+c+”‘”);throw a.code=”MODULE_NOT_FOUND”,a}var f=n[c]={exports:{}};t[c][0].call(f.exports,function(e){return r(t[c][1][e]||e)},f,f.exports,e,t,n,o)}return n[c].exports}for(var i=”function”==typeof require&&require,c=0;ct&&n-t1){if(i=e({path:”/”},o.defaults,i),”number”==typeof i.expires){var s=new Date;s.setMilliseconds(s.getMilliseconds()+864e5*i.expires),i.expires=s}i.expires=i.expires?i.expires.toUTCString():””;try{c=JSON.stringify(r),/^[\{\[]/.test(c)&&(r=c)}catch(e){}r=n.write?n.write(r,t):encodeURIComponent(String(r)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=encodeURIComponent(String(t)),t=t.replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent),t=t.replace(/[\(\)]/g,escape);var u=””;for(var a in i)i[a]&&(u+=”; “+a,!0!==i[a]&&(u+=”=”+i[a]));return document.cookie=t+”=”+r+u}t||(c={});for(var f=document.cookie?document.cookie.split(“; “):[],l=/(%[0-9A-Z]{2})+/g,p=0;p2592e6&&(n=0),”article”!=e&&”coverstory”!=e&&”plus”!=e||(n+=1),1===n&&(o=i),r.set(U,{pv:n,first:o},{expires:365}),n}function p(e){var t=document.body.querySelector(“.”+e);if(t){var n=t.dataset.uri;if(n&&n.split(“/”)[2]===e)return t}}function v(e,n){var r=x.getDomEventData(n);r.search=window.location.search,r.amplitude_id=e.options?e.options.deviceId:”no options – no deviceId”;var s=u();s&&(r.plan=s),N&&(r.signed_in_uuid=N),r.taboola_loaded=o(i()),r.taboola_eligible=o(a()),window.Scroll&&Scroll.config.detected&&(r.isScrollUser=!0),r.visitstart=o(l());try{r.adBlocker=o(I())}catch(e){console.error(e)}var d=f(n.dataset.pagetype);isNaN(d)||(r.Nth_pageview=d+””),c().length>0&&(r[“Affiliate Link”]=”✅”),p(“product”)&&(r[“Product Component”]=”✅”);var v=p(“newsletter-signup”);r[“Includes Newsletter Signup”]=o(v),v&&(r[“Newsletter Signup Placement”]=”In Content”);var m=p(“slate-plus-button”);if(m){var g=m.querySelector(“.slate-plus-button__basic”);g&&(r[“Slate Plus Button Component”]=g.innerText)}var b=!s&&p(“slate-roadblock”);r[“Includes Slate Plus Roadblock”]=o(b),x.page(r),t.removeFromLocation()}function m(e){var t=u();t&&(e.plan=t)}function g(e){N&&(e.signed_in_uuid=N)}function b(e){var t=window.Scroll&&Scroll.config.detected;t&&(e.scrollUser=t)}function h(e){var t=r.get(“AB”);e.abTest=T(t)?t:”0″}function w(){var e=document.querySelector(“.slate-paragraph–tombstone”);if(e){var t=n.once(function(){x.track(“Completed article”),C.track(“ArticleCompletion”),document.removeEventListener(“scroll”,r)}),r=n.throttle(function(){var n=”scrollY”in window?window.scrollY:window.pageYOffset;e.offsetTop+e.offsetHeight1){if(i=e({path:”/”},r.defaults,i),”number”==typeof i.expires){var c=new Date;c.setMilliseconds(c.getMilliseconds()+864e5*i.expires),i.expires=c}i.expires=i.expires?i.expires.toUTCString():””;try{a=JSON.stringify(o),/^[\{\[]/.test(a)&&(o=a)}catch(e){}o=n.write?n.write(o,t):encodeURIComponent(String(o)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=encodeURIComponent(String(t)),t=t.replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent),t=t.replace(/[\(\)]/g,escape);var s=””;for(var u in i)i[u]&&(s+=”; “+u,!0!==i[u]&&(s+=”=”+i[u]));return document.cookie=t+”=”+o+s}t||(a={});for(var l=document.cookie?document.cookie.split(“; “):[],d=/(%[0-9A-Z]{2})+/g,f=0;f1){if(i=e({path:”/”},r.defaults,i),”number”==typeof i.expires){var u=new Date;u.setMilliseconds(u.getMilliseconds()+864e5*i.expires),i.expires=u}i.expires=i.expires?i.expires.toUTCString():””;try{c=JSON.stringify(o),/^[\{\[]/.test(c)&&(o=c)}catch(e){}o=t.write?t.write(o,n):encodeURIComponent(String(o)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),n=encodeURIComponent(String(n)),n=n.replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent),n=n.replace(/[\(\)]/g,escape);var f=””;for(var s in i)i[s]&&(f+=”; “+s,!0!==i[s]&&(f+=”=”+i[s]));return document.cookie=n+”=”+o+f}n||(c={});for(var a=document.cookie?document.cookie.split(“; “):[],p=/(%[0-9A-Z]{2})+/g,l=0;l1){if(i=e({path:”/”},r.defaults,i),”number”==typeof i.expires){var s=new Date;s.setMilliseconds(s.getMilliseconds()+864e5*i.expires),i.expires=s}i.expires=i.expires?i.expires.toUTCString():””;try{c=JSON.stringify(o),/^[\{\[]/.test(c)&&(o=c)}catch(e){}o=n.write?n.write(o,t):encodeURIComponent(String(o)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=encodeURIComponent(String(t)),t=t.replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent),t=t.replace(/[\(\)]/g,escape);var u=””;for(var a in i)i[a]&&(u+=”; “+a,!0!==i[a]&&(u+=”=”+i[a]));return document.cookie=t+”=”+o+u}t||(c={});for(var d=document.cookie?document.cookie.split(“; “):[],f=/(%[0-9A-Z]{2})+/g,l=0;l

Original »

Comments
Loading...