Perfect Party Makeup and Hair: 4 Easy Tricks

[]
{ const userStr = localStorage.getItem( “cognito_1mhoelgmeuuf3koc56l6m6gvc4_user” ); if ( null != userStr ) { var userArr = JSON.parse(userStr); if (userArr.hash_email_sha256) { resolve({ SHA1:userArr.hash_email_sha1, SHA256:userArr.hash_email_sha256, MD5:userArr.hash_email_md5, email:userArr.email, subscription:userArr[“custom:subscription”] }); return; } } window._sso_uid_reject = reject; window._sso_uid_resolve = resolve; }); window._sso_async_ready=new Promise((resolve, reject) => { if (window.inline && window.inline.state && window.inline.state.cognito) { resolve(); return; } window._sso_async_ready_resolve = resolve; }); function cognito_broadcast_login(user) { var event = new CustomEvent(“current_user_login”, { detail: { user: user } }); document.dispatchEvent(event); } function cognito_broadcast_logout(user) { var event = new CustomEvent(“current_user_logout”, { detail: { user: user } }); document.dispatchEvent(event); } function handleCurrentUserLogin(event) { var userData = event.detail.user; console.log(“AA EVENT User logged in:”, userData); localStorage.removeItem(window._cognito.clientId + “_recentSignOut”); } document.addEventListener(“current_user_login”, handleCurrentUserLogin); window._sso_uid.then(user=>{ cognito_broadcast_login(user); }).catch( function(e) { //fallthru } ); ]]> {“use strict”;r.d(t,{a:()=>i});var n=r(944);function i(e,t){try{if(!e||”object”!=typeof e)return(0,n.R)(3);if(!t||”object”!=typeof t)return(0,n.R)(4);const r=Object.create(Object.getPrototypeOf(t),Object.getOwnPropertyDescriptors(t)),o=0===Object.keys(r).length?e:r;for(let a in o)if(void 0!==e[a])try{if(null===e[a]){r[a]=null;continue}Array.isArray(e[a])&&Array.isArray(t[a])?r[a]=Array.from(new Set([…e[a],…t[a]])):”object”==typeof e[a]&&”object”==typeof t[a]?r[a]=i(e[a],t[a]):r[a]=e[a]}catch(e){(0,n.R)(1,e)}return r}catch(e){(0,n.R)(2,e)}}},2555:(e,t,r)=>{“use strict”;r.d(t,{Vp:()=>c,fn:()=>s,x1:()=>u});var n=r(384),i=r(8122);const o={beacon:n.NT.beacon,errorBeacon:n.NT.errorBeacon,licenseKey:void 0,applicationID:void 0,sa:void 0,queueTime:void 0,applicationTime:void 0,ttGuid:void 0,user:void 0,account:void 0,product:void 0,extra:void 0,jsAttributes:{},userAttributes:void 0,atts:void 0,transactionName:void 0,tNamePlain:void 0},a={};function s(e){try{const t=c(e);return!!t.licenseKey&&!!t.errorBeacon&&!!t.applicationID}catch(e){return!1}}function c(e){if(!e)throw new Error(“All info objects require an agent identifier!”);if(!a[e])throw new Error(“Info for “.concat(e,” was never set”));return a[e]}function u(e,t){if(!e)throw new Error(“All info objects require an agent identifier!”);a[e]=(0,i.a)(t,o);const r=(0,n.nY)(e);r&&(r.info=a[e])}},5217:(e,t,r)=>{“use strict”;r.d(t,{D0:()=>m,gD:()=>b,xN:()=>v});r(860).K7.genericEvents;const n=”experimental.marks”,i=”experimental.measures”,o=”experimental.resources”;var a=r(993);const s=e=>{if(!e||”string”!=typeof e)return!1;try{document.createDocumentFragment().querySelector(e)}catch{return!1}return!0};var c=r(2614),u=r(944),l=r(384),d=r(8122);const f=”[data-nr-mask]”,g=()=>{const e={feature_flags:[],experimental:{marks:!1,measures:!1,resources:!1},mask_selector:”*”,block_selector:”[data-nr-block]”,mask_input_options:{color:!1,date:!1,”datetime-local”:!1,email:!1,month:!1,number:!1,range:!1,search:!1,tel:!1,text:!1,time:!1,url:!1,week:!1,textarea:!1,select:!1,password:!0}};return{ajax:{deny_list:void 0,block_internal:!0,enabled:!0,harvestTimeSeconds:10,autoStart:!0},distributed_tracing:{enabled:void 0,exclude_newrelic_header:void 0,cors_use_newrelic_header:void 0,cors_use_tracecontext_headers:void 0,allowed_origins:void 0},get feature_flags(){return e.feature_flags},set feature_flags(t){e.feature_flags=t},generic_events:{enabled:!0,harvestTimeSeconds:30,autoStart:!0},harvest:{tooManyRequestsDelay:60},jserrors:{enabled:!0,harvestTimeSeconds:10,autoStart:!0},logging:{enabled:!0,harvestTimeSeconds:10,autoStart:!0,level:a.p_.INFO},metrics:{enabled:!0,autoStart:!0},obfuscate:void 0,page_action:{enabled:!0},page_view_event:{enabled:!0,autoStart:!0},page_view_timing:{enabled:!0,harvestTimeSeconds:30,autoStart:!0},performance:{get capture_marks(){return e.feature_flags.includes(n)||e.experimental.marks},set capture_marks(t){e.experimental.marks=t},get capture_measures(){return e.feature_flags.includes(i)||e.experimental.measures},set capture_measures(t){e.experimental.measures=t},resources:{get enabled(){return e.feature_flags.includes(o)||e.experimental.resources},set enabled(t){e.experimental.resources=t},asset_types:[],first_party_domains:[],ignore_newrelic:!0}},privacy:{cookies_enabled:!0},proxy:{assets:void 0,beacon:void 0},session:{expiresMs:c.wk,inactiveMs:c.BB},session_replay:{autoStart:!0,enabled:!1,harvestTimeSeconds:60,preload:!1,sampling_rate:10,error_sampling_rate:100,collect_fonts:!1,inline_images:!1,fix_stylesheets:!0,mask_all_inputs:!0,get mask_text_selector(){return e.mask_selector},set mask_text_selector(t){s(t)?e.mask_selector=””.concat(t,”,”).concat(f):””===t||null===t?e.mask_selector=f:(0,u.R)(5,t)},get block_class(){return”nr-block”},get ignore_class(){return”nr-ignore”},get mask_text_class(){return”nr-mask”},get block_selector(){return e.block_selector},set block_selector(t){s(t)?e.block_selector+=”,”.concat(t):””!==t&&(0,u.R)(6,t)},get mask_input_options(){return e.mask_input_options},set mask_input_options(t){t&&”object”==typeof t?e.mask_input_options={…t,password:!0}:(0,u.R)(7,t)}},session_trace:{enabled:!0,harvestTimeSeconds:10,autoStart:!0},soft_navigations:{enabled:!0,harvestTimeSeconds:10,autoStart:!0},spa:{enabled:!0,harvestTimeSeconds:10,autoStart:!0},ssl:void 0,user_actions:{enabled:!0}}},p={},h=”All configuration objects require an agent identifier!”;function m(e){if(!e)throw new Error(h);if(!p[e])throw new Error(“Configuration for “.concat(e,” was never set”));return p[e]}function v(e,t){if(!e)throw new Error(h);p[e]=(0,d.a)(t,g());const r=(0,l.nY)(e);r&&(r.init=p[e])}function b(e,t){if(!e)throw new Error(h);var r=m(e);if(r){for(var n=t.split(“.”),i=0;i{“use strict”;r.d(t,{V:()=>f,f:()=>d});var n=r(8122),i=r(384),o=r(6154),a=r(9324);let s=0;const c={buildEnv:a.F3,distMethod:a.Xs,version:a.xv,originTime:o.WN},u={customTransaction:void 0,disabled:!1,isolatedBacklog:!1,loaderType:void 0,maxBytes:3e4,onerror:void 0,ptid:void 0,releaseIds:{},appMetadata:{},session:void 0,denyList:void 0,timeKeeper:void 0,obfuscator:void 0},l={};function d(e){if(!e)throw new Error(“All runtime objects require an agent identifier!”);if(!l[e])throw new Error(“Runtime for “.concat(e,” was never set”));return l[e]}function f(e,t){if(!e)throw new Error(“All runtime objects require an agent identifier!”);l[e]={…(0,n.a)(t,u),…c},Object.hasOwnProperty.call(l[e],”harvestCount”)||Object.defineProperty(l[e],”harvestCount”,{get:()=>++s});const r=(0,i.nY)(e);r&&(r.runtime=l[e])}},9324:(e,t,r)=>{“use strict”;r.d(t,{F3:()=>i,Xs:()=>o,xv:()=>n});const n=”1.277.0″,i=”PROD”,o=”CDN”},6154:(e,t,r)=>{“use strict”;r.d(t,{OF:()=>c,RI:()=>i,WN:()=>l,bv:()=>o,gm:()=>a,mw:()=>s,sb:()=>u});var n=r(1863);const i=”undefined”!=typeof window&&!!window.document,o=”undefined”!=typeof WorkerGlobalScope&&(“undefined”!=typeof self&&self instanceof WorkerGlobalScope&&self.navigator instanceof WorkerNavigator||”undefined”!=typeof globalThis&&globalThis instanceof WorkerGlobalScope&&globalThis.navigator instanceof WorkerNavigator),a=i?window:”undefined”!=typeof WorkerGlobalScope&&(“undefined”!=typeof self&&self instanceof WorkerGlobalScope&&self||”undefined”!=typeof globalThis&&globalThis instanceof WorkerGlobalScope&&globalThis),s=Boolean(“hidden”===a?.document?.visibilityState),c=/iPad|iPhone|iPod/.test(a.navigator?.userAgent),u=c&&”undefined”==typeof SharedWorker,l=((()=>{const e=a.navigator?.userAgent?.match(/Firefox[/s](d+.d+)/);Array.isArray(e)&&e.length>=2&&e[1]})(),Date.now()-(0,n.t)())},1687:(e,t,r)=>{“use strict”;r.d(t,{Ak:()=>c,Ze:()=>d,x3:()=>u});var n=r(7836),i=r(3606),o=r(860),a=r(2646);const s={};function c(e,t){const r={staged:!1,priority:o.P3[t]||0};l(e),s[e].get(t)||s[e].set(t,r)}function u(e,t){e&&s[e]&&(s[e].get(t)&&s[e].delete(t),g(e,t,!1),s[e].size&&f(e))}function l(e){if(!e)throw new Error(“agentIdentifier required”);s[e]||(s[e]=new Map)}function d(e=””,t=”feature”,r=!1){if(l(e),!e||!s[e].get(t)||r)return g(e,t);s[e].get(t).staged=!0,f(e)}function f(e){const t=Array.from(s[e]);t.every((([e,t])=>t.staged))&&(t.sort(((e,t)=>e[1].priority-t[1].priority)),t.forEach((([t])=>{s[e].delete(t),g(e,t)})))}function g(e,t,r=!0){const o=e?n.ee.get(e):n.ee,s=i.i.handlers;if(!o.aborted&&o.backlog&&s){if(r){const e=o.backlog[t],r=s[t];if(r){for(let t=0;e&&t{Object.values(t||{}).forEach((t=>{t[0]?.on&&t[0]?.context()instanceof a.y&&t[0].on(e,t[1])}))}))}}o.isolatedBacklog||delete s[t],o.backlog[t]=null,o.emit(“drain-“+t,[])}}function p(e,t){var r=e[1];Object.values(t[r]||{}).forEach((t=>{var r=e[0];if(t[0]===r){var n=t[1],i=e[3],o=e[2];n.apply(i,o)}}))}},7836:(e,t,r)=>{“use strict”;r.d(t,{P:()=>c,ee:()=>u});var n=r(384),i=r(8990),o=r(3371),a=r(2646),s=r(5607);const c=”nr@context:”.concat(s.W),u=function e(t,r){var n={},s={},l={},d=!1;try{d=16===r.length&&(0,o.f)(r).isolatedBacklog}catch(e){}var f={on:p,addEventListener:p,removeEventListener:function(e,t){var r=n[e];if(!r)return;for(var i=0;i{delete f.backlog[e]}))},isBuffering:function(e){return!!v()[s[e]]},debugId:r,backlog:d?{}:t&&”object”==typeof t.backlog?t.backlog:{},isolatedBacklog:d};return Object.defineProperty(f,”aborted”,{get:()=>{let e=f._aborted||!1;return e||(t&&(e=t.aborted),e)}}),f;function g(e){return e&&e instanceof a.y?e:e?(0,i.I)(e,c,(()=>new a.y(c))):new a.y(c)}function p(e,t){n[e]=h(e).concat(t)}function h(e){return n[e]||[]}function m(t){return l[t]=l[t]||e(f,t)}function v(){return f.backlog}}(void 0,”globalEE”),l=(0,n.Zm)();l.ee||(l.ee=u)},2646:(e,t,r)=>{“use strict”;r.d(t,{y:()=>n});class n{constructor(e){this.contextId=e}}},9908:(e,t,r)=>{“use strict”;r.d(t,{d:()=>n,p:()=>i});var n=r(7836).ee.get(“handle”);function i(e,t,r,i,o){o?(o.buffer([e],i),o.emit(e,t,r)):(n.buffer([e],i),n.emit(e,t,r))}},3606:(e,t,r)=>{“use strict”;r.d(t,{i:()=>o});var n=r(9908);o.on=a;var i=o.handlers={};function o(e,t,r,o){a(o||n.d,i,e,t,r)}function a(e,t,r,i,o){o||(o=”feature”),e||(e=n.d);var a=t[o]=t[o]||{};(a[r]=a[r]||[]).push([e,i])}},3878:(e,t,r)=>{“use strict”;function n(e,t){return{capture:e,passive:!1,signal:t}}function i(e,t,r=!1,i){window.addEventListener(e,t,n(r,i))}function o(e,t,r=!1,i){document.addEventListener(e,t,n(r,i))}r.d(t,{DD:()=>o,jT:()=>n,sp:()=>i})},5607:(e,t,r)=>{“use strict”;r.d(t,{W:()=>n});const n=(0,r(9566).bz)()},9566:(e,t,r)=>{“use strict”;r.d(t,{LA:()=>s,bz:()=>a});var n=r(6154);const i=”xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx”;function o(e,t){return e?15&e[t]:16*Math.random()|0}function a(){const e=n.gm?.crypto||n.gm?.msCrypto;let t,r=0;return e&&e.getRandomValues&&(t=e.getRandomValues(new Uint8Array(30))),i.split(“”).map((e=>”x”===e?o(t,r++).toString(16):”y”===e?(3&o()|8).toString(16):e)).join(“”)}function s(e){const t=n.gm?.crypto||n.gm?.msCrypto;let r,i=0;t&&t.getRandomValues&&(r=t.getRandomValues(new Uint8Array(e)));const a=[];for(var s=0;s{“use strict”;r.d(t,{BB:()=>a,H3:()=>n,g:()=>u,iL:()=>c,tS:()=>s,uh:()=>i,wk:()=>o});const n=”NRBA”,i=”SESSION”,o=144e5,a=18e5,s={STARTED:”session-started”,PAUSE:”session-pause”,RESET:”session-reset”,RESUME:”session-resume”,UPDATE:”session-update”},c={SAME_TAB:”same-tab”,CROSS_TAB:”cross-tab”},u={OFF:0,FULL:1,ERROR:2}},1863:(e,t,r)=>{“use strict”;function n(){return Math.floor(performance.now())}r.d(t,{t:()=>n})},944:(e,t,r)=>{“use strict”;function n(e,t){“function”==typeof console.debug&&console.debug(“New Relic Warning: https://github.com/newrelic/newrelic-browser-agent/blob/main/docs/warning-codes.md#”.concat(e),t)}r.d(t,{R:()=>n})},5284:(e,t,r)=>{“use strict”;r.d(t,{t:()=>c,B:()=>s});var n=r(7836),i=r(6154);const o=”newrelic”;const a=new Set,s={};function c(e,t){const r=n.ee.get(t);s[t]??={},e&&”object”==typeof e&&(a.has(t)||(r.emit(“rumresp”,[e]),s[t]=e,a.add(t),function(e={}){try{i.gm.dispatchEvent(new CustomEvent(o,{detail:e}))}catch(e){}}({loaded:!0})))}},8990:(e,t,r)=>{“use strict”;r.d(t,{I:()=>i});var n=Object.prototype.hasOwnProperty;function i(e,t,r){if(n.call(e,t))return e[t];var i=r();if(Object.defineProperty&&Object.keys)try{return Object.defineProperty(e,t,{value:i,writable:!0,enumerable:!1}),i}catch(e){}return e[t]=i,i}},6389:(e,t,r)=>{“use strict”;function n(e,t=500,r={}){const n=r?.leading||!1;let i;return(…r)=>{n&&void 0===i&&(e.apply(this,r),i=setTimeout((()=>{i=clearTimeout(i)}),t)),n||(clearTimeout(i),i=setTimeout((()=>{e.apply(this,r)}),t))}}function i(e){let t=!1;return(…r)=>{t||(t=!0,e.apply(this,r))}}r.d(t,{J:()=>i,s:()=>n})},5289:(e,t,r)=>{“use strict”;r.d(t,{GG:()=>o,sB:()=>a});var n=r(3878);function i(){return”undefined”==typeof document||”complete”===document.readyState}function o(e,t){if(i())return e();(0,n.sp)(“load”,e,t)}function a(e){if(i())return e();(0,n.DD)(“DOMContentLoaded”,e)}},384:(e,t,r)=>{“use strict”;r.d(t,{NT:()=>o,US:()=>l,Zm:()=>a,bQ:()=>c,dV:()=>s,nY:()=>u,pV:()=>d});var n=r(6154),i=r(1863);const o={beacon:”bam.nr-data.net”,errorBeacon:”bam.nr-data.net”};function a(){return n.gm.NREUM||(n.gm.NREUM={}),void 0===n.gm.newrelic&&(n.gm.newrelic=n.gm.NREUM),n.gm.NREUM}function s(){let e=a();return e.o||(e.o={ST:n.gm.setTimeout,SI:n.gm.setImmediate,CT:n.gm.clearTimeout,XHR:n.gm.XMLHttpRequest,REQ:n.gm.Request,EV:n.gm.Event,PR:n.gm.Promise,MO:n.gm.MutationObserver,FETCH:n.gm.fetch,WS:n.gm.WebSocket}),e}function c(e,t){let r=a();r.initializedAgents??={},t.initializedAt={ms:(0,i.t)(),date:new Date},r.initializedAgents[e]=t}function u(e){let t=a();return t.initializedAgents?.[e]}function l(e,t){a()[e]=t}function d(){return function(){let e=a();const t=e.info||{};e.info={beacon:o.beacon,errorBeacon:o.errorBeacon,…t}}(),function(){let e=a();const t=e.init||{};e.init={…t}}(),s(),function(){let e=a();const t=e.loader_config||{};e.loader_config={…t}}(),a()}},2843:(e,t,r)=>{“use strict”;r.d(t,{u:()=>i});var n=r(3878);function i(e,t=!1,r,i){(0,n.DD)(“visibilitychange”,(function(){if(t)return void(“hidden”===document.visibilityState&&e());e(document.visibilityState)}),r,i)}},3434:(e,t,r)=>{“use strict”;r.d(t,{Jt:()=>o,YM:()=>c});var n=r(7836),i=r(5607);const o=”nr@original:”.concat(i.W);var a=Object.prototype.hasOwnProperty,s=!1;function c(e,t){return e||(e=n.ee),r.inPlace=function(e,t,n,i,o){n||(n=””);const a=”-“===n.charAt(0);for(let s=0;s{“use strict”;r.d(t,{ET:()=>o,p_:()=>i});var n=r(860);const i={ERROR:”ERROR”,WARN:”WARN”,INFO:”INFO”,DEBUG:”DEBUG”,TRACE:”TRACE”},o=”log”;n.K7.logging},3969:(e,t,r)=>{“use strict”;r.d(t,{TZ:()=>n,XG:()=>s,rs:()=>i,xV:()=>a,z_:()=>o});const n=r(860).K7.metrics,i=”sm”,o=”cm”,a=”storeSupportabilityMetrics”,s=”storeEventMetrics”},6630:(e,t,r)=>{“use strict”;r.d(t,{T:()=>n});const n=r(860).K7.pageViewEvent},782:(e,t,r)=>{“use strict”;r.d(t,{T:()=>n});const n=r(860).K7.pageViewTiming},6344:(e,t,r)=>{“use strict”;r.d(t,{G4:()=>i});var n=r(2614);r(860).K7.sessionReplay;const i={RECORD:”recordReplay”,PAUSE:”pauseReplay”,REPLAY_RUNNING:”replayRunning”,ERROR_DURING_REPLAY:”errorDuringReplay”};n.g.ERROR,n.g.FULL,n.g.OFF},4234:(e,t,r)=>{“use strict”;r.d(t,{W:()=>o});var n=r(7836),i=r(1687);class o{constructor(e,t){this.agentIdentifier=e,this.ee=n.ee.get(e),this.featureName=t,this.blocked=!1}deregisterDrain(){(0,i.x3)(this.agentIdentifier,this.featureName)}}},7603:(e,t,r)=>{“use strict”;r.d(t,{j:()=>K});var n=r(860),i=r(2555),o=r(3371),a=r(9908),s=r(7836),c=r(1687),u=r(5289),l=r(6154),d=r(944),f=r(3969),g=r(384),p=r(6344);const h=[“setErrorHandler”,”finished”,”addToTrace”,”addRelease”,”recordCustomEvent”,”addPageAction”,”setCurrentRouteName”,”setPageViewName”,”setCustomAttribute”,”interaction”,”noticeError”,”setUserId”,”setApplicationVersion”,”start”,p.G4.RECORD,p.G4.PAUSE,”log”,”wrapLogger”],m=[“setErrorHandler”,”finished”,”addToTrace”,”addRelease”];var v=r(1863),b=r(2614),y=r(993);var w=r(2646),A=r(3434);const R=new Map;function _(e,t,r,n){if(“object”!=typeof t||!t||”string”!=typeof r||!r||”function”!=typeof t[r])return(0,d.R)(29);const i=function(e){return(e||s.ee).get(“logger”)}(e),o=(0,A.YM)(i),a=new w.y(s.P);a.level=n.level,a.customAttributes=n.customAttributes;const c=t[r]?.[A.Jt]||t[r];return R.set(c,a),o.inPlace(t,[r],”wrap-logger-“,(()=>R.get(c))),i}function E(){const e=(0,g.pV)();h.forEach((t=>{e[t]=(…r)=>function(t,…r){let n=[];return Object.values(e.initializedAgents).forEach((e=>{e&&e.api?e.exposed&&e.api[t]&&n.push(e.api[t](…r)):(0,d.R)(38,t)})),n.length>1?n:n[0]}(t,…r)}))}const x={};function N(e,t,g=!1){t||(0,c.Ak)(e,”api”);const h={};var w=s.ee.get(e),A=w.get(“tracer”);x[e]=b.g.OFF,w.on(p.G4.REPLAY_RUNNING,(t=>{x[e]=t}));var R=”api-“,E=R+”ixn-“;function N(t,r,n,o){const a=(0,i.Vp)(e);return null===r?delete a.jsAttributes[t]:(0,i.x1)(e,{…a,jsAttributes:{…a.jsAttributes,[t]:r}}),S(R,n,!0,o||null===r?”session”:void 0)(t,r)}function T(){}h.log=function(e,{customAttributes:t={},level:r=y.p_.INFO}={}){(0,a.p)(f.xV,[“API/log/called”],void 0,n.K7.metrics,w),function(e,t,r={},i=y.p_.INFO){(0,a.p)(f.xV,[“API/logging/”.concat(i.toLowerCase(),”/called”)],void 0,n.K7.metrics,e),(0,a.p)(y.ET,[(0,v.t)(),t,r,i],void 0,n.K7.logging,e)}(w,e,t,r)},h.wrapLogger=(e,t,{customAttributes:r={},level:i=y.p_.INFO}={})=>{(0,a.p)(f.xV,[“API/wrapLogger/called”],void 0,n.K7.metrics,w),_(w,e,t,{customAttributes:r,level:i})},m.forEach((e=>{h[e]=S(R,e,!0,”api”)})),h.addPageAction=S(R,”addPageAction”,!0,n.K7.genericEvents),h.recordCustomEvent=S(R,”recordCustomEvent”,!0,n.K7.genericEvents),h.setPageViewName=function(t,r){if(“string”==typeof t)return”/”!==t.charAt(0)&&(t=”/”+t),(0,o.f)(e).customTransaction=(r||”http://custom.transaction”)+t,S(R,”setPageViewName”,!0)()},h.setCustomAttribute=function(e,t,r=!1){if(“string”==typeof e){if([“string”,”number”,”boolean”].includes(typeof t)||null===t)return N(e,t,”setCustomAttribute”,r);(0,d.R)(40,typeof t)}else(0,d.R)(39,typeof e)},h.setUserId=function(e){if(“string”==typeof e||null===e)return N(“enduser.id”,e,”setUserId”,!0);(0,d.R)(41,typeof e)},h.setApplicationVersion=function(e){if(“string”==typeof e||null===e)return N(“application.version”,e,”setApplicationVersion”,!1);(0,d.R)(42,typeof e)},h.start=()=>{try{(0,a.p)(f.xV,[“API/start/called”],void 0,n.K7.metrics,w),w.emit(“manual-start-all”)}catch(e){(0,d.R)(23,e)}},h[p.G4.RECORD]=function(){(0,a.p)(f.xV,[“API/recordReplay/called”],void 0,n.K7.metrics,w),(0,a.p)(p.G4.RECORD,[],void 0,n.K7.sessionReplay,w)},h[p.G4.PAUSE]=function(){(0,a.p)(f.xV,[“API/pauseReplay/called”],void 0,n.K7.metrics,w),(0,a.p)(p.G4.PAUSE,[],void 0,n.K7.sessionReplay,w)},h.interaction=function(e){return(new T).get(“object”==typeof e?e:{})};const k=T.prototype={createTracer:function(e,t){var r={},i=this,o=”function”==typeof t;return(0,a.p)(f.xV,[“API/createTracer/called”],void 0,n.K7.metrics,w),g||(0,a.p)(E+”tracer”,[(0,v.t)(),e,r],i,n.K7.spa,w),function(){if(A.emit((o?””:”no-“)+”fn-start”,[(0,v.t)(),i,o],r),o)try{return t.apply(this,arguments)}catch(e){const t=”string”==typeof e?new Error(e):e;throw A.emit(“fn-err”,[arguments,this,t],r),t}finally{A.emit(“fn-end”,[(0,v.t)()],r)}}}};function S(e,t,r,i){return function(){return(0,a.p)(f.xV,[“API/”+t+”/called”],void 0,n.K7.metrics,w),i&&(0,a.p)(e+t,[r?(0,v.t)():performance.now(),…arguments],r?null:this,i,w),r?void 0:this}}function j(){r.e(296).then(r.bind(r,8778)).then((({setAPI:t})=>{t(e),(0,c.Ze)(e,”api”)})).catch((e=>{(0,d.R)(27,e),w.abort()}))}return[“actionText”,”setName”,”setAttribute”,”save”,”ignore”,”onEnd”,”getContext”,”end”,”get”].forEach((e=>{k[e]=S(E,e,void 0,g?n.K7.softNav:n.K7.spa)})),h.setCurrentRouteName=g?S(E,”routeName”,void 0,n.K7.softNav):S(R,”routeName”,!0,n.K7.spa),h.noticeError=function(t,r){“string”==typeof t&&(t=new Error(t)),(0,a.p)(f.xV,[“API/noticeError/called”],void 0,n.K7.metrics,w),(0,a.p)(“err”,[t,(0,v.t)(),!1,r,!!x[e]],void 0,n.K7.jserrors,w)},l.RI?(0,u.GG)((()=>j()),!0):j(),h}var T=r(5217),k=r(8122);const S={accountID:void 0,trustKey:void 0,agentID:void 0,licenseKey:void 0,applicationID:void 0,xpid:void 0},j={};var I=r(5284);const O=e=>{const t=e.startsWith(“http”);e+=”/”,r.p=t?e:”https://”+e};let P=!1;function K(e,t={},r,n){let{init:a,info:c,loader_config:u,runtime:d={},exposed:f=!0}=t;d.loaderType=r;const p=(0,g.pV)();c||(a=p.init,c=p.info,u=p.loader_config),(0,T.xN)(e.agentIdentifier,a||{}),function(e,t){if(!e)throw new Error(“All loader-config objects require an agent identifier!”);j[e]=(0,k.a)(t,S);const r=(0,g.nY)(e);r&&(r.loader_config=j[e])}(e.agentIdentifier,u||{}),c.jsAttributes??={},l.bv&&(c.jsAttributes.isWorker=!0),(0,i.x1)(e.agentIdentifier,c);const h=(0,T.D0)(e.agentIdentifier),m=[c.beacon,c.errorBeacon];P||(h.proxy.assets&&(O(h.proxy.assets),m.push(h.proxy.assets)),h.proxy.beacon&&m.push(h.proxy.beacon),E(),(0,g.US)(“activatedFeatures”,I.B),e.runSoftNavOverSpa&&=!0===h.soft_navigations.enabled&&h.feature_flags.includes(“soft_nav”)),d.denyList=[…h.ajax.deny_list||[],…h.ajax.block_internal?m:[]],d.ptid=e.agentIdentifier,(0,o.V)(e.agentIdentifier,d),e.ee=s.ee.get(e.agentIdentifier),void 0===e.api&&(e.api=N(e.agentIdentifier,n,e.runSoftNavOverSpa)),void 0===e.exposed&&(e.exposed=f),P=!0}},8374:(e,t,r)=>{r.nc=(()=>{try{return document?.currentScript?.nonce}catch(e){}return””})()},860:(e,t,r)=>{“use strict”;r.d(t,{$J:()=>o,K7:()=>n,P3:()=>i});const n={ajax:”ajax”,genericEvents:”generic_events”,jserrors:”jserrors”,logging:”logging”,metrics:”metrics”,pageAction:”page_action”,pageViewEvent:”page_view_event”,pageViewTiming:”page_view_timing”,sessionReplay:”session_replay”,sessionTrace:”session_trace”,softNav:”soft_navigations”,spa:”spa”},i={[n.pageViewEvent]:1,[n.pageViewTiming]:2,[n.metrics]:3,[n.jserrors]:4,[n.spa]:5,[n.ajax]:6,[n.sessionTrace]:7,[n.softNav]:8,[n.sessionReplay]:9,[n.logging]:10,[n.genericEvents]:11},o={[n.pageViewTiming]:”events”,[n.ajax]:”events”,[n.spa]:”events”,[n.softNav]:”events”,[n.metrics]:”jserrors”,[n.jserrors]:”jserrors”,[n.sessionTrace]:”browser/blobs”,[n.sessionReplay]:”browser/blobs”,[n.logging]:”browser/logs”,[n.genericEvents]:”ins”}}},n={};function i(e){var t=n[e];if(void 0!==t)return t.exports;var o=n[e]={exports:{}};return r[e](o,o.exports,i),o.exports}i.m=r,i.d=(e,t)=>{for(var r in t)i.o(t,r)&&!i.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},i.f={},i.e=e=>Promise.all(Object.keys(i.f).reduce(((t,r)=>(i.f[r](e,t),t)),[])),i.u=e=>”nr-rum-1.277.0.min.js”,i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e={},t=”NRBA-1.277.0.PROD:”,i.l=(r,n,o,a)=>{if(e[r])e[r].push(n);else{var s,c;if(void 0!==o)for(var u=document.getElementsByTagName(“script”),l=0;l{s.onerror=s.onload=null,clearTimeout(p);var i=e[r];if(delete e[r],s.parentNode&&s.parentNode.removeChild(s),i&&i.forEach((e=>e(n))),t)return t(n)},p=setTimeout(g.bind(null,void 0,{type:”timeout”,target:s}),12e4);s.onerror=g.bind(null,s.onerror),s.onload=g.bind(null,s.onload),c&&document.head.appendChild(s)}},i.r=e=>{“undefined”!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:”Module”}),Object.defineProperty(e,”__esModule”,{value:!0})},i.p=”https://js-agent.newrelic.com/”,(()=>{var e={840:0,374:0};i.f.j=(t,r)=>{var n=i.o(e,t)?e[t]:void 0;if(0!==n)if(n)r.push(n[2]);else{var o=new Promise(((r,i)=>n=e[t]=[r,i]));r.push(n[2]=o);var a=i.p+i.u(t),s=new Error;i.l(a,(r=>{if(i.o(e,t)&&(0!==(n=e[t])&&(e[t]=void 0),n)){var o=r&&(“load”===r.type?”missing”:r.type),a=r&&r.target&&r.target.src;s.message=”Loading chunk “+t+” failed.n(“+o+”: “+a+”)”,s.name=”ChunkLoadError”,s.type=o,s.request=a,n[1](s)}}),”chunk-“+t,t)}};var t=(t,r)=>{var n,o,[a,s,c]=r,u=0;if(a.some((t=>0!==e[t]))){for(n in s)i.o(s,n)&&(i.m[n]=s[n]);if(c)c(i)}for(t&&t(r);u{“use strict”;i(8374);var e=i(944),t=i(6344),r=i(9566);class n{agentIdentifier;constructor(e=(0,r.LA)(16)){this.agentIdentifier=e}#e(t,…r){if(“function”==typeof this.api?.[t])return this.api[t](…r);(0,e.R)(35,t)}addPageAction(e,t){return this.#e(“addPageAction”,e,t)}recordCustomEvent(e,t){return this.#e(“recordCustomEvent”,e,t)}setPageViewName(e,t){return this.#e(“setPageViewName”,e,t)}setCustomAttribute(e,t,r){return this.#e(“setCustomAttribute”,e,t,r)}noticeError(e,t){return this.#e(“noticeError”,e,t)}setUserId(e){return this.#e(“setUserId”,e)}setApplicationVersion(e){return this.#e(“setApplicationVersion”,e)}setErrorHandler(e){return this.#e(“setErrorHandler”,e)}addRelease(e,t){return this.#e(“addRelease”,e,t)}log(e,t){return this.#e(“log”,e,t)}}class o extends n{#e(t,…r){if(“function”==typeof this.api?.[t])return this.api[t](…r);(0,e.R)(35,t)}start(){return this.#e(“start”)}finished(e){return this.#e(“finished”,e)}recordReplay(){return this.#e(t.G4.RECORD)}pauseReplay(){return this.#e(t.G4.PAUSE)}addToTrace(e){return this.#e(“addToTrace”,e)}setCurrentRouteName(e){return this.#e(“setCurrentRouteName”,e)}interaction(){return this.#e(“interaction”)}wrapLogger(e,t,r){return this.#e(“wrapLogger”,e,t,r)}}var a=i(860),s=i(5217);const c=Object.values(a.K7);function u(e){const t={};return c.forEach((r=>{t[r]=function(e,t){return!0===(0,s.gD)(t,””.concat(e,”.enabled”))}(r,e)})),t}var l=i(7603);var d=i(1687),f=i(4234),g=i(5289),p=i(6154),h=i(384);const m=e=>p.RI&&!0===(0,s.gD)(e,”privacy.cookies_enabled”);function v(e){return!!(0,h.dV)().o.MO&&m(e)&&!0===(0,s.gD)(e,”session_trace.enabled”)}var b=i(6389);class y extends f.W{constructor(e,t,r=!0){super(e.agentIdentifier,t),this.auto=r,this.abortHandler=void 0,this.featAggregate=void 0,this.onAggregateImported=void 0,!1===e.init[this.featureName].autoStart&&(this.auto=!1),this.auto?(0,d.Ak)(e.agentIdentifier,t):this.ee.on(“manual-start-all”,(0,b.J)((()=>{(0,d.Ak)(e.agentIdentifier,this.featureName),this.auto=!0,this.importAggregator(e)})))}importAggregator(t,r={}){if(this.featAggregate||!this.auto)return;let n;this.onAggregateImported=new Promise((e=>{n=e}));const o=async()=>{let o;try{if(m(this.agentIdentifier)){const{setupAgentSession:e}=await i.e(296).then(i.bind(i,3861));o=e(t)}}catch(t){(0,e.R)(20,t),this.ee.emit(“internal-error”,[t]),this.featureName===a.K7.sessionReplay&&this.abortHandler?.()}try{if(t.sharedAggregator)await t.sharedAggregator;else{t.sharedAggregator=i.e(296).then(i.bind(i,9337));const{EventAggregator:e}=await t.sharedAggregator;t.sharedAggregator=new e}if(!this.#t(this.featureName,o))return(0,d.Ze)(this.agentIdentifier,this.featureName),void n(!1);const{lazyFeatureLoader:e}=await i.e(296).then(i.bind(i,6103)),{Aggregate:a}=await e(this.featureName,”aggregate”);this.featAggregate=new a(t,r),n(!0)}catch(t){(0,e.R)(34,t),this.abortHandler?.(),(0,d.Ze)(this.agentIdentifier,this.featureName,!0),n(!1),this.ee&&this.ee.abort()}};p.RI?(0,g.GG)((()=>o()),!0):o()}#t(e,t){switch(e){case a.K7.sessionReplay:return v(this.agentIdentifier)&&!!t;case a.K7.sessionTrace:return!!t;default:return!0}}}var w=i(6630);class A extends y{static featureName=w.T;constructor(e,t=!0){super(e,w.T,t),this.importAggregator(e)}}var R=i(9908),_=i(2843),E=i(3878),x=i(782),N=i(1863);class T extends y{static featureName=x.T;constructor(e,t=!0){super(e,x.T,t),p.RI&&((0,_.u)((()=>(0,R.p)(“docHidden”,[(0,N.t)()],void 0,x.T,this.ee)),!0),(0,E.sp)(“pagehide”,(()=>(0,R.p)(“winPagehide”,[(0,N.t)()],void 0,x.T,this.ee))),this.importAggregator(e))}}var k=i(3969);class S extends y{static featureName=k.TZ;constructor(e,t=!0){super(e,k.TZ,t),this.importAggregator(e)}}new class extends o{constructor(t,r){super(r),p.gm?(this.features={},(0,h.bQ)(this.agentIdentifier,this),this.desiredFeatures=new Set(t.features||[]),this.desiredFeatures.add(A),this.runSoftNavOverSpa=[…this.desiredFeatures].some((e=>e.featureName===a.K7.softNav)),(0,l.j)(this,t,t.loaderType||”agent”),this.run()):(0,e.R)(21)}get config(){return{info:this.info,init:this.init,loader_config:this.loader_config,runtime:this.runtime}}run(){try{const t=u(this.agentIdentifier),r=[…this.desiredFeatures];r.sort(((e,t)=>a.P3[e.featureName]-a.P3[t.featureName])),r.forEach((r=>{if(!t[r.featureName]&&r.featureName!==a.K7.pageViewEvent)return;if(this.runSoftNavOverSpa&&r.featureName===a.K7.spa)return;if(!this.runSoftNavOverSpa&&r.featureName===a.K7.softNav)return;const n=function(e){switch(e){case a.K7.ajax:return[a.K7.jserrors];case a.K7.sessionTrace:return[a.K7.ajax,a.K7.pageViewEvent];case a.K7.sessionReplay:return[a.K7.sessionTrace];case a.K7.pageViewTiming:return[a.K7.pageViewEvent];default:return[]}}(r.featureName).filter((e=>!(e in this.features)));n.length>0&&(0,e.R)(36,{targetFeature:r.featureName,missingDependencies:n}),this.features[r.featureName]=new r(this)}))}catch(t){(0,e.R)(22,t);for(const e in this.features)this.features[e].abortHandler?.();const r=(0,h.Zm)();delete r.initializedAgents[this.agentIdentifier]?.api,delete r.initializedAgents[this.agentIdentifier]?.features,delete this.sharedAggregator;return r.ee.get(this.agentIdentifier).abort(),!1}}}({features:[A,T,S],loaderType:”lite”})})()})();]]> 1 ? b[1] : null; var par = b.length > 2 ? b[2] : null; if (cmd === ‘ping’) { return { gppVersion: ‘1.1’, // must be “Version.Subversion”, current: “1.1” cmpStatus: ‘stub’, // possible values: stub, loading, loaded, error cmpDisplayStatus: ‘hidden’, // possible values: hidden, visible, disabled supportedAPIs: [‘6:uspv1’, ‘7:usnat’], // list of supported APIs cmpId: 0, // IAB assigned CMP ID, may be 0 during stub/loading sectionList: [], applicableSections: [-1], // or 0 or ID set by publisher signalStatus: ‘not ready’, gppString: ” }; } else if (cmd === ‘addEventListener’) { __gpp.events = __gpp.events || []; if (!(‘lastId’ in __gpp)) { __gpp.lastId = 0; } __gpp.lastId++; var lnr = __gpp.lastId; __gpp.events.push({ id: lnr, callback: clb, parameter: par }); return { eventName: ‘listenerRegistered’, listenerId: lnr, // Registered ID of the listener data: true, // positive signal pingData: { gppVersion: ‘1.1’, cmpStatus: ‘stub’, cmpDisplayStatus: ‘hidden’, supportedAPIs: [‘6:uspv1’, ‘7:usnat’], cmpId: 0, sectionList: [], applicableSections: [-1], // or 0 or ID set by publisher signalStatus: ‘not ready’, gppString: ” } }; } else if (cmd === ‘removeEventListener’) { var success = false; __gpp.events = __gpp.events || []; for (var i = 0; i < __gpp.events.length; i++) { if (__gpp.events[i].id == par) { __gpp.events.splice(i, 1); success = true; break; } } return { eventName: 'listenerRemoved', listenerId: par, // Registered ID of the listener data: success, // status info pingData: { gppVersion: '1.1', cmpStatus: 'stub', cmpDisplayStatus: 'hidden', supportedAPIs: ['6:uspv1', '7:usnat'], cmpId: 0, sectionList: [], applicableSections: [-1], // or 0 or ID set by publisher signalStatus: 'not ready', gppString: '' } }; } else if (cmd === 'hasSection' || cmd === 'getSection' || cmd === 'getField') { return null; } else { __gpp.queue.push([].slice.apply(b)); } }; window.__gpp_msghandler = function (event) { var msgIsString = typeof event.data === 'string'; try { var json = msgIsString ? JSON.parse(event.data) : event.data; } catch (e) { var json = null; } if (typeof json === 'object' && json !== null && '__gppCall' in json) { var i = json.__gppCall; window.__gpp(i.command, function (retValue, success) { var returnMsg = { __gppReturn: { returnValue: retValue, success: success, callId: i.callId } }; event.source.postMessage(msgIsString ? JSON.stringify(returnMsg) : returnMsg, '*'); }, 'parameter' in i ? i.parameter : null, 'version' in i ? i.version : '1.1'); } }; if (!('__gpp' in window) || (typeof window.__gpp !== 'function')) { window.__gpp = window.__gpp_stub; window.addEventListener('message', window.__gpp_msghandler, false); window.__gpp_addFrame('__gppLocator'); } function a360_fire_cmpEvent(usprivacy) { let consents = [1]; if (usprivacy && usprivacy === '1YNY') { // user has consented to targeting cookies for (let i = 2; i Party Makeup and Hair Ideas: 4 DIY Tricks | Woman’s World { amzn_check(resolve, 100, 50 ); setTimeout(resolve, 5000); }); function amzn_check(resolve, interval, retriesLeft) { if ( typeof window.apstag == ‘object’ && window.apstag ) { console.log( ‘AMI jwp – Amazon loaded’ ); return resolve(); } if ( –retriesLeft > 0 ) { if ( typeof window.apstag != ‘object’ && !window.apstag ) { setTimeout( function(){ amzn_check( resolve, interval, retriesLeft ); }, interval ); console.log( ‘AMI jwp Amazon not loaded ‘ ); } } else { console.log( ‘AMI jwp No Retries left – Amazon not loaded’ ); return resolve(); } } window.jwVastTag = {}; window.prerollTag = {}; window.jwpDef = {}; window.jwpBids = {}; ]]>

Sign In

Sign InUp with your social account

We won’t post to any of your accounts

Sign Up

Create a free account to access exclusive content, play games, solve puzzles, test your pop-culture knowledge and receive special offers. Already have an account? Login

Sign InUp with your social account

We won’t post to any of your accounts

var inline;(()=>{var e={323:e=>{e.exports=XMLHttpRequest}},o={};function t(n){var s=o[n];if(void 0!==s)return s.exports;var i=o[n]={exports:{}};return e[n](i,i.exports,t),i.exports}t.d=(e,o)=>{for(var n in o)t.o(o,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:o[n]})},t.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),t.r=e=>{“undefined”!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:”Module”}),Object.defineProperty(e,”__esModule”,{value:!0})};var n={};(()=>{“use strict”;t.r(n),t.d(n,{browser:()=>e,greeter:()=>r,prompt:()=>o,ssoBroker:()=>i,state:()=>c,utility:()=>a});const e={is3rdPartyCookieSet:()=>!!localStorage.getItem(a.getPrefix()+”3rd_party_cookie”),set3rdPartyCookie(e){this.setLocalStorageItem(a.getPrefix()+”3rd_party_cookie”,e,31536e3)},get3rdPartyCookie(){return this.getLocalStorageItem(a.getPrefix()+”3rd_party_cookie”)},socialNetworkAuth(e){console.log(“AA1 socialNetworkAuth”,e);let o=window._cognito.ssoServer+”/?back_to=”+window.location.protocol+”//”+window.location.host+”/”;window._cognito.is_shopify||this.get3rdPartyCookie()||(o+=”?sso_login”);const t=encodeURIComponent(o),n=window._cognito.poolUrl+”/oauth2/authorize?identity_provider=”+e+”&redirect_uri=”+t+”&response_type=CODE&client_id=”+window._cognito.clientId+”&scope=aws.cognito.signin.user.admin email openid profile”;if(“/”!==location.pathname){const e=location.protocol+”//”+location.host+location.pathname;console.log(“AA2 socialNetworkAuth setting back url to “,e),localStorage.setItem(a.getPrefix()+”ipa”,e),window.location.href=n}else console.log(“AA3 socialNetworkAuth”,n),window.location.href=n;return!0},getTokenFromLocalStorage(){const e=window.localStorage.getItem(a.getPrefix()+”accessToken”),o=window.localStorage.getItem(a.getPrefix()+”refreshToken”);return”null”==e||null==e||”null”==o||null==o?{accessToken:null,refreshToken:null,idToken:null}:{accessToken:e,refreshToken:o,idToken:window.localStorage.getItem(a.getPrefix()+”idToken”)}},setLocalStorageItem(e,o,t){if(-1==e.indexOf(“3rd_party_cookie”)&&-1==e.indexOf(“consent”)&&-1==e.indexOf(“a360-non_commerce-variant”)&&-1==e.indexOf(“a360-spanish-variant”)&&-1==e.indexOf(“a360-commerce-variant”)&&-1==e.indexOf(“a360-recipe-variant”)&&!this.isConsent())return void console.log(“AA refusing to store “+e+” because there is no consent”);const n={value:o,expiry:t?Date.now()+1e3*t:null};localStorage.setItem(e,JSON.stringify(n))},getLocalStorageItem(e){let o=localStorage.getItem(e);return o?(o=JSON.parse(o),o.expiry&&Date.now()>o.expiry?(localStorage.removeItem(e),null):o.value):null},removeLocalStorageItem(e){localStorage.removeItem(e)},setUserInLocalStorage(e){this.isConsent()?window.localStorage.setItem(a.getPrefix()+”user”,JSON.stringify(e)):console.log(“AA refusing to store user in ls because there is no consent”,window.OnetrustActiveGroups)},getUserFromLocalStorage(){const e=window.localStorage.getItem(a.getPrefix()+”user”);return e?JSON.parse(e):null},setTokenInLocalStorage(e,o,t){if(!this.isConsent())return void console.log(“AA refusing to store tokens in ls because there is no consent”,window.OnetrustActiveGroups);const n=”cognito_”+window._cognito.clientId+”_”;if(window.localStorage.setItem(n+”accessToken”,e),window.localStorage.setItem(n+”refreshToken”,o),window.localStorage.setItem(n+”idToken”,t),t&&”undefined”!==t){console.log(“AA viafoura broadcasting ‘id_token_defined’ event”);const e=new CustomEvent(“id_token_defined”,{detail:{idToken:t}});document.dispatchEvent(e)}},hasSSO:()=>!!localStorage.getItem(“cognito_”+window._cognito.clientId+”_last”),setLastInLocalStorage(e){const o=”cognito_”+window._cognito.clientId+”_last”;if(!e)return console.log(“AA removing ‘last’ from local storage”),void window.localStorage.removeItem(o);this.isConsent()?window.localStorage.setItem(o,e):console.log(“AA refusing to store ‘last’ in ls because there is no consent”,window.OnetrustActiveGroups)},removeTokens(){const e=a.getPrefix();[“accessToken”,”refreshToken”,”idToken”,”user”,”synced”,”subscriptions”,”3rd_party_cookie”,”celebs”,”shows”].forEach((o=>localStorage.removeItem(e+o)))},isLoggedIn(){return null!==this.getTokenFromLocalStorage().accessToken},getCookieByName(e){const o=document.cookie.split(“;”);for(const t of o){const o=t.trim();if(o.startsWith(e+”=”))return o.substring(e.length+1)}return null},isCM:()=>[“womansworld”,”firstforwomen”,”soapoperadigest”,”soapsindept”].some((e=>window.location.hostname.includes(e))),isConsent(){return!!window._cognito.is_shopify||!(!window.location.href.includes(“/digital-editions/”)&&!window.location.href.includes(“/library/si-swim/”))||(this.isCM()?this.havePurposeStorageConsent():!!window.OnetrustActiveGroups&&window.OnetrustActiveGroups.includes(“,C0003,”))},havePurposeStorageConsent_v2(){const e=window.cmpConsentPurposes;return void 0!==e&&”string”==typeof e&&e.includes(“,1,”)},hasTargetingConsent_v2(){if(!window.cmpConsentPurposes)return!1;for(let e=2;e<=11;e++)if(!window.cmpConsentPurposes.includes(","+e+","))return!1;return!0},havePurposeStorageConsent(){let e=this.getLocalStorageItem(a.getPrefix()+"consent");return!(!e||e.length<2)&&e[0]},hasTargetingConsent(){let e=this.getLocalStorageItem(a.getPrefix()+"consent");return!(!e||e.length<2)&&e[1]},saveTCFConsent(){const e=(window.cmpConsentPurposes||"").split(",").filter(Boolean).map(Number),o=e.includes(1);let t=!0;for(let o=2;o<=11;o++)if(!e.includes(o)){t=!1;break}const n=[o,t];console.log("AA TCF saveTCFConsent",n),this.setLocalStorageItem(`${a.getPrefix()}consent`,n,31536e3)},saveTCFConsent_v1(e){const o=e?.purpose?.consents||{},t=o[1]||!1;let n=!0;for(let e=2;e{if(console.log("AA usNow 000"),!e.isLoggedIn())return console.log("AA usNow 1"),void window.open("https://"+window._cognito.shopifyStore);this.popTitle().textContent="You are leaving "+window.location.hostname+" for UsNow",this.subTitle().textContent="Do you want to be automatically logged in there?",this.cancelBtn().textContent="No, thanks",this.confirmBtn().textContent="Yes, please",this.popUp().classList.add("active"),s()}));let t=e=>{const o=window._cognito.ssoServer+”?checkout=”+encodeURIComponent(“https://”+window._cognito.shopifyStore);e.preventDefault(),console.log(“AA1.0 window.open with “+o),window.open(o,”_blank”),this.popUp().classList.remove(“active”)},n=e=>{e.preventDefault(),window.open(“https://”+window._cognito.shopifyStore,”_blank”),this.popUp().classList.remove(“active”)},s=()=>{this.confirmBtn().addEventListener(“click”,t),this.cancelBtn().addEventListener(“click”,n)};this.closePopUpBtn().addEventListener(“click”,(()=>{this.popUp().classList.remove(“active”),this.cancelBtn().removeEventListener(“click”,n),this.confirmBtn().removeEventListener(“click”,t)}))},customConfirm(e,o,t=”OK”,n=”Cancel”,s=!0){this.popTitle().textContent=e,this.subTitle().textContent=o,this.confirmBtn().textContent=t,this.cancelBtn().textContent=n,s&&this.closePopup();let i=this;return new Promise((e=>{function o(t){t.preventDefault(),i.popUp().classList.remove(“active”),i.cancelBtn().removeEventListener(“click”,o),i.closePopUpBtn().removeEventListener(“click”,o),e(!1)}i.popUp().classList.add(“active”),i.confirmBtn().addEventListener(“click”,(function t(n){n.preventDefault(),i.popUp().classList.remove(“active”),i.confirmBtn().removeEventListener(“click”,t),i.closePopUpBtn().removeEventListener(“click”,o),e(!0)})),i.cancelBtn().addEventListener(“click”,o),i.closePopUpBtn().addEventListener(“click”,o)}))},customMessage(e=””,o){this.popUp().classList.add(“active”),this.cancelBtn().style.display=”none”,this.popTitle().textContent=e,this.subTitle().textContent=o;let t=this;return new Promise((e=>{function o(n){n.preventDefault(),t.cancelBtn().style.display=”block”,t.popUp().classList.remove(“active”),t.confirmBtn().removeEventListener(“click”,o),t.closePopUpBtn().removeEventListener(“click”,o),e(!0)}t.confirmBtn().addEventListener(“click”,o),t.closePopUpBtn().addEventListener(“click”,o)}))},closePopup(){document.getElementById(“login-body”).style.display=”none”,document.body.style.overflow=””}},s=(e,o={})=>new Promise(((n,s)=>{const i=t(323),r=new i;r.onreadystatechange=function(){r.readyState===i.DONE&&(200===this.status?(console.log(`AA XHR [${e}] HTTP[200]`),n(this.responseText)):(console.log(`AA XHR [${e}] HTTP[non-200] [${this.status}] [${this.statusText}]`),s(`Call to [${e}] failed with [${this.status}] [${this.statusText}]`)))},r.open(“POST”,window._cognito.ssoServer+”/”),r.withCredentials=!0,r.setRequestHeader(“Content-Type”,”application/json”);let a=””;if(window.inline&&window.inline.browser){const e=window.inline.browser.getTokenFromLocalStorage();a=e?e.accessToken:””}const c={action:e,token:a,…o};r.send(JSON.stringify(c))})),i={probe(){let o=this;console.log(“AAP start SETTING probe cookie”),o.setProbe().then((function(t){console.log(“AAP1 end SETTING probe cookie, success”,t),console.log(“AAP2 start GETTING probe cookie”),o.getProbe().then((function(o){console.log(“AAP3 end GETTING probe cookie, success”,o),e.set3rdPartyCookie(o.probe)})).catch((function(o){console.log(“AAP3 end GETTING probe cookie, error”,o),e.set3rdPartyCookie(!1)}))})).catch((e=>console.log(“AAP3 end SETTING probe cookie, error”,e)))},pullTokensFromCache:e=>(console.log(“AA SSOBroker.pullTokensFromCache by code: “+e),s(“pullTokensFromCache”,{code:e})),setTokensViaRedirect(o=””,t=””,n=””,i=””,r=!1){t&&!r&&e.setLastInLocalStorage(Math.floor(Date.now()/1e3));let a=[];window.location.href.includes(“/library/si-swim/”)?(console.log(“AA PWA SI: no 3rd party, setting cookie via redirect. setting ‘redirecing’ flag”),inline.state.redirecting_pwa=!0):o&&o&&a.push(“sso_msg=”+o),i||(i=window.location.href),(i=i.split(“?”)[0]).endsWith(“viafoura-comments”)&&(console.log(“AA setTokensViaRedirect: dropping viafoura-comments from the end of the back_to”,i),i=i.slice(0,-17)),i=i.replace(/#/g,””),a.length&&(i+=encodeURIComponent(“?”+a.join(“&”)));let c=window._cognito.ssoServer+”?sso=set”;c=c+”&back_to=”+i,r&&(c+=”&last=remove”),console.log(“AA setting tokens via redirect”,c),s(“pushTokensToCache”,{accessToken:t,refreshToken:n}).then((e=>{console.log(“AA SSBroker.setTokensViaRedirect pushed tokens to remote memcache, got code back “+e+”, redirecting to”,c+”&auth_code=”+e),window.location.href=c+”&auth_code=”+e})).catch((e=>{console.log(“AA setting tokens via redirect on remote memcache”,e)}))},getTokensViaRedirect(){let e=window.location.href.split(“?”)[0];e.endsWith(“viafoura-comments”)&&(console.log(“AA getTokensViaRedirect: dropping viafoura-comments from the end of the back_to”,e),e=e.slice(0,-17)),e=e.replace(/#/g,””);let o=window._cognito.ssoServer+”?sso=get&back_to=”+e;console.log(“AA getting tokens via redirect”,o),window.location.href=o},setProbe:async()=>new Promise((function(e,o){var n=new(t(323));n.open(“POST”,window._cognito.ssoServer+”/”),n.onload=function(){200==n.status?e(n.response):o({status:n.status,statusText:n.statusText})},n.onerror=function(){o({status:n.status,statusText:n.statusText})},n.withCredentials=!0,n.setRequestHeader(“Content-Type”,”application/json”),n.send(JSON.stringify({action:”setProbe”}))})),getProbe:async()=>new Promise((function(e,o){var n=new(t(323));n.open(“POST”,window._cognito.ssoServer+”/”),n.onload=function(){if(200==n.status){if(!n.responseText)return console.log(“AA2.0 SSBroker get no probe found, browser does not support 3rd party cookies”),void o({status:0,statusText:”Probe Not Found”});var t=JSON.parse(n.responseText);return””===t.probe?(console.log(“AA2.1 SSBroker get no probe found, browser does not support 3rd party cookies”),void o({status:0,statusText:”Probe Not Found”})):(console.log(“AA3 SSBroker get probe found (browser supports 3rd part cookie):”+t.probe),void e({probe:t.probe}))}console.log(“AA4 SSBroker probe returned non-200 code: “+n.status+” “+n.statusText),o({status:n.status,statusText:n.statusText})},n.onerror=function(){console.log(“AA5 SSBroker probe returned non-200 code: “+n.status+” “+n.statusText),o({status:n.status,statusText:n.statusText})},console.log(“AAP0 sending get probe request”),n.open(“POST”,window._cognito.ssoServer+”/”),n.withCredentials=!0,n.setRequestHeader(“Content-Type”,”application/json”),n.send(JSON.stringify({action:”getProbe”}))})),async setTokenOnSSO(o=null,n=null,s=!1){if(e.isConsent())return!s&&o&&e.setLastInLocalStorage(Math.floor(Date.now()/1e3)),new Promise((function(e,i){var r=new(t(323));r.open(“POST”,window._cognito.ssoServer+”/”),r.onload=function(){200==r.status?e(r.response):i({status:r.status,statusText:r.statusText})},r.onerror=function(){i({status:r.status,statusText:r.statusText})},r.withCredentials=!0,r.setRequestHeader(“Content-Type”,”application/json”);const a={action:”set”,accessToken:o,refreshToken:n};s&&(a.deleteEverLastingCookie=!0),r.send(JSON.stringify(a))}));console.log(“AA refusing to store tokens on SSO server because there is no consent”)},getTokenFromSSO:async()=>new Promise((function(e,o){var n=new(t(323));n.open(“POST”,window._cognito.ssoServer+”/”),n.onload=function(){if(200==n.status){if(!n.responseText)return console.log(“AA1 SSBroker get No Tokens Found”),void o({status:0,statusText:”Tokens Not Found”});var t=JSON.parse(n.responseText);return””!==t.accessToken&&t.accessToken?(console.log(“AA3 SSBroker get Tokens Found!!!”),void e({accessToken:t.accessToken,refreshToken:t.refreshToken,last:t.last})):(console.log(“AA2.1 SSBroker get No Tokens Found”),void o({status:0,statusText:”Tokens Not Found”}))}console.log(“AA4 SSBroker returned non-200 code: “+n.status+” “+n.statusText),o({status:n.status,statusText:n.statusText})},n.onerror=function(){console.log(“AA5 SSBroker returned non-200 code: “+n.status+” “+n.statusText),o({status:n.status,statusText:n.statusText})},n.open(“POST”,window._cognito.ssoServer+”/”),n.withCredentials=!0,n.setRequestHeader(“Content-Type”,”application/json”),n.send(JSON.stringify({action:”get”}))}))},r={populateFromBlueConicEmail(o){const t=document.getElementsByClassName(“bcMedium textInput”);if(t&&t.length>0){const n=t[0].value;n&&document.getElementById(“emailInputRegister”)&&(document.getElementById(o).value=n,e.setLocalStorageItem(“BCDialogueCandidate”,!0,300))}},showSignIn(e=!0){document.getElementById(“login”).style.display=”flex”,document.getElementById(“profile”).style.display=”none”,document.getElementById(“login-body”).style.display=”flex”,document.getElementById(“register”).style.display=”none”,document.getElementById(“forgot”).style.display=”none”,document.getElementById(“profile”).style.display=”none”,document.querySelector(“.login-forgot__step-2”).classList.remove(“active”),document.querySelector(“.login-forgot__step-3”).classList.remove(“active”),document.querySelector(“.login-forgot__step-1”).classList.add(“active”),void 0!==this.populateFromBlueConicEmail?this.populateFromBlueConicEmail(“inputUsername”):window.inline&&window.inline.greeter.populateFromBlueConicEmail(“inputUsername”),e&&a.feedback(),a.showOverlay()},show(){if(e.isConsent())”showSignIn”!=window.cognito_popupOpener.name||e.get3rdPartyCookie()?window.cognito_popupOpener():i.getTokensViaRedirect();else{const t=’This website uses cookies in order to make the “Preference Center” section work. Please click the shield badge at the bottom left and consent to “Functional Cookies” to access your preferences and then reload this page.’,n=’This website uses cookies in order to make the “Preference Center” section work. Please click on the “Update Privacy Preferences” link at the bottom of the home page and consent to “Store and/or access information on a device” purpose to access your preferences.’,s=e.isCM()?n:t;o.customMessage(void 0,s).then((()=>{}))}},setLoginLink(e,o){window.cognito_isLoginLinkSet=!0,window._cognito.timeout&&clearTimeout(window._cognito.timeout),window.cognito_popupOpener=o,e&&document.body.classList.add(“sso-logged-in”),document.querySelectorAll(“.js-cognito-login”).forEach((o=>{e?(o.classList.remove(“user-logged-out”),o.classList.add(“user-logged-in”)):(o.classList.remove(“user-logged-in”),o.classList.add(“user-logged-out”))})),e&&window.cognito_user&&window.cognito_user.picture&&this.setAvatar(window.cognito_user.picture)},setAvatar(e){let o=e.replace(“s96-c”,”s300-c”),t=document.getElementById(“sso-logo-wrapper”);t.classList.add(“sso-user-avatar”),t.innerHTML=”“},closeProfilePopup(){document.getElementById(“login-body”).style.display=”none”,document.body.style.overflow=””,a.hideOverlay(),window._cognito.is_shopify&&”function”==typeof go_back_to_checkout&&go_back_to_checkout()},showForgotPassword(){document.getElementById(“login”).style.display=”none”,document.getElementById(“register”).style.display=”none”,document.getElementById(“forgot”).style.display=”flex”,a.feedback()},showSignUp(){console.log(“AA85 running inline.greeter.showSignUp()”),document.getElementById(“profile”).style.display=”none”,document.getElementById(“login-body”).style.display=”flex”,document.getElementById(“login”).style.display=”none”,document.getElementById(“register”).style.display=”flex”,a.feedback(),void 0!==this.populateFromBlueConicEmail?this.populateFromBlueConicEmail(“emailInputRegister”):window.inline&&window.inline.greeter.populateFromBlueConicEmail(“emailInputRegister”),a.showOverlay()},showRestorePassword(e){document.getElementById(“login”).style.display=”none”,document.getElementById(“register”).style.display=”none”,document.querySelector(“.login-forgot__step-1”).classList.remove(“active”),document.querySelector(“.login-forgot__step-2”).classList.add(“active”),document.querySelectorAll(“.recovery-code__input”).forEach((e=>e.value=””)),document.getElementById(“passwordReset”).value=””,document.getElementById(“confirmPasswordReset”).value=””,document.getElementById(“restoreEmail”).innerHTML=e,a.feedback()}},a={showPassword(e){let o;switch(e){case”signin”:o=document.querySelector(“#inputPassword”);break;case”signup”:o=document.querySelector(“#passwordInputRegister”);break;case”reset”:o=document.querySelector(“#passwordReset”)}let t=o.closest(“.login-form”),n=t.querySelector(“.view-password-button”);if(“password”===o.getAttribute(“type”)){let e=t.querySelectorAll(“.js-password”);for(let o of e)o.setAttribute(“type”,”text”);n.setAttribute(“aria-pressed”,”true”),n.style.setProperty(“–eye”,”none”),n.style.setProperty(“–eye-crossed”,”block”)}else{let e=t.querySelectorAll(“.js-password”);for(let o of e)o.setAttribute(“type”,”password”);n.setAttribute(“aria-pressed”,”false”),n.style.setProperty(“–eye”,”block”),n.style.setProperty(“–eye-crossed”,”none”)}},doze(e){var o=1e3*e,t=new Date,n=null;console.log((new Date).toLocaleTimeString()+” AA starting to doze for “+e);do{n=new Date}while(n-t(e.match(/(.*){/)||[e])[1],extractKey:e=>(e.match(/{(.*)}/)||[e])[1],setInputValue(e,o){const t=document.getElementById(e);if(t)if(“INPUT”===t.tagName)”checkbox”===t.getAttribute(“type”)?t.checked=!(“Y”!==o&&”on”!==o):t.value=o;else if(“SELECT”===t.tagName)for(let e=0;e”cognito_”+window._cognito.clientId+”_”,feedback(e=null,o=!1){const t=document.getElementById(“feedback-wrapper”);if(null==e)return void(t.innerHTML=””);let n={‘”Incorrect username or password.”‘:”Incorrect email or password.”,'”Attributes updated.”‘:”Your changes were saved”,'”New password is set successfully”‘:”Your password was reset”,”Account Deleted”:”Your account has been deleted”,”Enter a valid phone number”:”Your changes were saved. Please note that we were unable to propagate phone number to Shopify account because of its restrictive phone number policies.”,”country – is required”:”This service is available only in the U.S.”,”province is not valid”:”This service is available only in the U.S.”,”province – is not valid”:”This service is available only in the U.S.”,”signature – has already been taken”:”Sorry, something went wrong”,”base – Customer address cannot be blank.”:”Customer address cannot be blank”,”address blank”:”Customer address cannot be blank”,”address removed”:”Address has been removed”,”address remove failed”:”Address has not been removed due to error”,”unsubscribed all”:”You have been unsubscribed from all subscriptions”,”Maximal address number”:”The maximal address number is 5″,InvalidParameterException:”One or more fields have an error. Please check and try again.”,InvalidCreditCard:”Please fill in a correct payment card details”,SubscriptionFailed79:”Something went wrong. Please contact Subscription Customer Service at firstforwomen@emailcustomerservice.com.nPlease be sure to include your full name, complete mailing address, and description of your inquiry/problem that you’re experiencing so that customer service is able to look up your subscription account file and assist you properly.”,SubscriptionFailed80:”Something went wrong. Please contact Subscription Customer Service at womansworld@emailcustomerservice.com.nPlease be sure to include your full name, complete mailing address, and description of your inquiry/problem that you’re experiencing so that customer service is able to look up your subscription account file and assist you properly.”},s=e;if(“object”==typeof e&&(s=e.message||JSON.stringify(e)),s in n&&(s=n[s]),s.indexOf(“TypeError”)>-1)return void console.log(“AA random TypeError message, ignoring”,(new Error).stack);let a=document.createElement(“span”);if(a.classList.add(“active”,”feedback-message”),a.innerHTML=s,o?a.classList.add(“feedback-success”):a.classList.add(“feedback-error”),setInterval((()=>{a.classList.remove(“active”),setInterval((()=>{a.remove()}),1500)}),7e3),s.indexOf(“Refresh Token has expired”)>-1||s.indexOf(“User does not exist”)>-1||s.indexOf(“Error Removing Account”)>-1||window.location.href.indexOf(“a360-force-logout”)>-1)return window.location.href.indexOf(“a360-force-logout”)>-1?console.log(“AAE Forcing logout because url is “+window.location.href):console.log(“AAE Fatal error message, logging user out”,s),inline.browser.get3rdPartyCookie()?(inline.browser.removeTokens(),i.setTokenOnSSO(null,null).then((e=>{console.log(“AA tokens on sso server were forcefully removed “+e)})),r.setLoginLink(!1,r.showSignIn),void inline.greeter.showSignIn()):(inline.browser.removeTokens(),void i.setTokensViaRedirect());t.append(a)},validatePassword(e){const o=e.querySelector(“.js-validate-password”),t=e.querySelector(“.js-submit-form”);let n;if(!o)return;const s=e=>e.length>=8,i=e=>/[a-z]/.test(e),r=e=>/[A-Z]/.test(e),a=e=>/[0-9]/.test(e);o.addEventListener(“keyup”,(()=>{const c=o.value,l=e.querySelector(“.pswd-length”),d=e.querySelector(“.pswd-lowercase”),u=e.querySelector(“.pswd-uppercase”),g=e.querySelector(“.pswd-number”);s(c)?l.classList.add(“validation-success”):l.classList.remove(“validation-success”),i(c)?d.classList.add(“validation-success”):d.classList.remove(“validation-success”),r(c)?u.classList.add(“validation-success”):u.classList.remove(“validation-success”),a(c)?g.classList.add(“validation-success”):g.classList.remove(“validation-success”),n=s(c)&&i(c)&&r(c)&&a(c),n?(o.classList.remove(“input-error”),t.removeAttribute(“disabled”)):t.setAttribute(“disabled”,”disabled”)})),o.addEventListener(“focusout”,(()=>{n?(t.removeAttribute(“disabled”),o.classList.remove(“input-error”)):(t.setAttribute(“disabled”,”disabled”),o.classList.add(“input-error”))}))},validateEmail(e){const o=e.querySelector(“.js-validate-email”),t=e.querySelector(“.js-submit-form”);let n;if(!o)return;const s=e=>/^w+([.-]?w+)*@w+([.-]?w+)*(.w{2,3})+$/.test(e.value);o.addEventListener(“keyup”,(()=>{n=s(o),n?(t.removeAttribute(“disabled”),o.classList.remove(“input-error”)):t.setAttribute(“disabled”,”disabled”)})),o.addEventListener(“focusout”,(()=>{n=s(o),n?(t.removeAttribute(“disabled”),o.classList.remove(“input-error”)):(t.setAttribute(“disabled”,”disabled”),o.classList.add(“input-error”))}))},validateNameField(e){const o=e.querySelector(“.js-validate-name”),t=e.querySelector(“.js-submit-form”);let n;o&&(o.addEventListener(“keyup”,(()=>{n=(e=>/^[a-zA-Z]+([-s]?[a-zA-Z]+)*$/.test(e.value))(o),n?(t.removeAttribute(“disabled”),o.classList.remove(“input-error”)):t.setAttribute(“disabled”,”disabled”)})),o.addEventListener(“focusout”,(()=>{n?(t.removeAttribute(“disabled”),o.classList.remove(“input-error”)):(t.setAttribute(“disabled”,”disabled”),o.classList.add(“input-error”))})))},showOverlay(){document.getElementById(“profile-popup-overlay”).classList.add(“active”),document.body.classList.add(“overlay-active”)},hideOverlay(){document.getElementById(“profile-popup-overlay”).classList.remove(“active”),document.body.classList.remove(“overlay-active”)},subsGoToStep1(){document.querySelector(“.subscriptions-wrapper”).classList.remove(“active-step-2”)},subsGoToStep2(){document.querySelector(“.subscriptions-wrapper”).classList.add(“active-step-2”)},goToTab(e){document.querySelectorAll(“.account-menu__item”).forEach((e=>{e.classList.remove(“active”)})),document.querySelectorAll(“.account-info__tab”).forEach((e=>{e.classList.remove(“active”)})),document.querySelector(`[data-target-tab=”${e}”]`).classList.add(“active”),document.querySelector(`[data-tab=”${e}”]`).classList.add(“active”)},openSubscriptionPlans(e,o=”digital”,t=”US”){const n=document.getElementById(“subscription-plans__list”),s=n.querySelectorAll(“.subscription-plan”),i=n.querySelectorAll(`.subscription-plan[data-subscription-target=”${e}-${o}-${t}”]`);s.forEach((e=>{e.classList.remove(“visible”),e.querySelector(“input”).removeAttribute(“checked”)})),i.forEach(((e,o)=>{e.classList.add(“visible”),0===o&&e.querySelector(“input”).setAttribute(“checked”,”checked”)})),inline.utility.subsGoToStep2()},openDigitalSubscriptionOptions(e=33){try{console.log(“AA PWA openDigitalSubscriptionOptions 33”),this.showOverlay(),this.goToTab(“subscription”),this.openSubscriptionPlans(e),document.getElementById(“login-body”).style.display=”flex”}catch(e){console.log(“AA PWA Trying to call openDigitalSubscription, something went wrong:”,e)}}};var c={return_url:!1,subsCurrentProductId:79,currentIssueRegion:”US”,subsCurrentIssueBundleId:””,subsShippingAddress:””,subsBillingAddress:””,subsAddressesChanged:!1,onConsentChanged(e){setTargettingCookie(e.detail.includes(“C0004”))}};if(“#ipa”===window.location.hash||”#ipa_with_popup”===window.location.hash){if(history.pushState(“”,document.title,window.location.pathname+window.location.search),localStorage.getItem(a.getPrefix()+”ipa”)){let e=localStorage.getItem(a.getPrefix()+”ipa”);localStorage.removeItem(a.getPrefix()+”ipa”),console.log(“AA4 socialNetworkAuth got back URL”,e),”#ipa_with_popup”===window.location.hash&&(e+=”#ipa_with_popup”),window.location.href=e}}else localStorage.removeItem(a.getPrefix()+”ipa”);if(window._cognito.is_shopify=-1!==window.location.host.indexOf(“.myshopify.com”)||-1!==window.location.host.indexOf(“usnow.com”)||”magazineshop.us”==window.location.host||-1!==window.location.search.indexOf(“is_shopify”),window.cognito_isLoginLinkSet=!1,window.location.search&&window.location.search.indexOf(“sso_show_signin”)>-1){console.log(“AA LAST about to set”),window.location.search.indexOf(“last”)>-1&&(console.log(“AA LAST setting to local storage”),e.setLastInLocalStorage(Math.floor(Date.now()/1e3)));let o=window.location.href.split(“?”)[0];history.pushState(null,null,o),document.body.classList.contains(“single-games”)||document.body.classList.contains(“premium-template-post”)?r.showSignUp():e.getLocalStorageItem(a.getPrefix()+”subsForceProductId”)||r.showSignIn()}if(window.location.href.indexOf(“sso_msg=”)>-1){console.log(“AA1 sso_msg”,window.location.href);let e=new URLSearchParams(window.location.search).get(“sso_msg”),o=window.location.href.split(“?”)[0];history.pushState(null,null,o),console.log(“AA2 sso_msg”,e),e&&(a.feedback(decodeURIComponent(e),!0),console.log(“AA3 sso_msg”),”Account Created”==e&&r.setLoginLink(!0,r.showSignIn))}var l=window.localStorage.getItem(“cognito_”+window._cognito.clientId+”_accessToken”);if(“null”==l&&(l=null),null===l)if(console.log(“AAU0 js user logged in? “+(null!==l),(new Date).toLocaleTimeString()),window.location.search.indexOf(“auth_code”)>-1){const e=new URLSearchParams(window.location.search).get(“auth_code”);i.pullTokensFromCache(e).then((o=>{let t=JSON.parse(o);if(console.log(`AA [head embedded code] exchanged code ${e} with tokens`,t),t.accessToken&&t.refreshToken){let o=t.accessToken,n=t.refreshToken;console.log(`AA2 [head embedded code] got tokens from remote cache by code ${e}`),window.localStorage.setItem(“cognito_”+window._cognito.clientId+”_accessToken”,o),window.localStorage.setItem(“cognito_”+window._cognito.clientId+”_refreshToken”,n),window.cognito_pop_account=!0}else console.log(`AA [head embedded code] error exchanging code with tokens ${e}`,t),d()})).catch((o=>{console.log(`AA3 [head embedded code] error exchanging code with tokens ${e}`,o),d()}));let o=window.location.href.split(“?”)[0];”#ipa”===window.location.hash&&(o+=”#ipa_with_popup”),history.pushState(null,null,o)}else d();function d(){console.log(“AAU01 js creating ssoBroker.getTokenFromSSO() promise and starting to wait on it”,(new Date).toLocaleTimeString()),window.cognito_token_promise=i.getTokenFromSSO(),window.cognito_token_promise.then((o=>{o.last&&e.setLastInLocalStorage(o.last),localStorage.getItem(a.getPrefix()+”3rd_party_cookie”)||i.getProbe().then((o=>{console.log(“AAP3 end GETTING probe cookie, success”,o),e.set3rdPartyCookie(o.probe)})).catch((o=>{console.log(“AAP3 end GETTING probe cookie, error”,o),e.set3rdPartyCookie(!1)}));let t=o.accessToken,n=o.refreshToken;if(!t)return console.log(“AAU01 js wait for window.cognito_token_promise is over. Token NOT found”,(new Date).toLocaleTimeString()),e.removeTokens(),void(window._sso_uid_reject&&window._sso_uid_reject({“reason:”:”AAU07 wait is over”}));console.log(“AAU02 inline.js token found”,(new Date).toLocaleTimeString()),e.setTokenInLocalStorage(t,n)})).catch((o=>{console.log(“AAU03 js token NOT found”,(new Date).toLocaleTimeString(),o),localStorage.getItem(a.getPrefix()+”3rd_party_cookie”)||i.getProbe().then((o=>{console.log(“AAP03 end GETTING probe cookie, success”,o),e.set3rdPartyCookie(o.probe)})).catch((o=>{console.log(“AAP03 end GETTING probe cookie, error”,o),e.set3rdPartyCookie(!1)})),e.removeTokens(),r.setLoginLink(!1,r.showSignIn),window._sso_uid_reject({“reason:”:”AAU03 wait is over”})}))}document.addEventListener(“DOMContentLoaded”,(function(e){window._cognito.timeout=setTimeout((function(){window.cognito_isLoginLinkSet||r.setLoginLink(!1,r.showSignIn)}),1e3),window.cognito_popupOpener=r.showSignIn}))})(),inline=n})(); document.addEventListener(‘DOMContentLoaded’, () => { setTimeout(() => { //console.log(“AA SSO init delayed for 0.5 second.”); var dashboard = document.createElement(‘script’); let dashboard_path = window.location.hostname.includes(‘starmagazine’) || window.location.hostname.includes(‘soapoperadigest’) ?’/sso-dashboard’ :’/sso-dashboard.js’; dashboard.src = dashboard_path+”?v3ae9a4c02a140469733d65b5474f2f9bcq”; document.head.appendChild(dashboard); }, 500); }, false); ]]> Skip to content

Use left and right arrow keys to navigate between menu items. Use escape to exit the menu.

{console.log(“OptanonWrapper called”),this.populatePosts(),e()}}else OptanonWrapper=()=>{this.populatePosts()}}populatePosts(){var e={ga4ClientId:this.getGA4ClientId()||”0″,attributionToken:this.getAttributionToken(),referrer:window.location.href,appName:this.appName};try{fetch(this.endpoint,{method:”POST”,headers:{“Content-Type”:”application/json”},body:JSON.stringify(e)}).then(e=>e.json()).then(e=>this.handleAIPostsResponse(e)).catch(()=>this.showFallbackPosts())}catch(e){this.showFallbackPosts()}}handleAIPostsResponse(e){var t;e&&e.data&&Array.isArray(e.data)&&0!==e.data.length&&(t=this.pickFreshPosts(e.data,5),console.log(“AA AI Selected Posts: “,t),0!s.includes(e.id));return o=(o.length.5-Math.random()):o).slice(0,t),s=[…s,…o.map(e=>e.id)],localStorage.setItem(this.storageKey,JSON.stringify(s)),o}renderPosts(e,t){var s=document.querySelector(“.recommended-posts-container”);s&&(s.innerHTML=e.map(e=>` ${e.title} ${e.title} `).join(“”),s.style.display=”flex”)}showFallbackPosts(){var e=document.querySelector(“.recommended-posts-fallback”);e&&(e.style.display=”flex”,this.attachClickEventListener(“TOP GA”,this.postType),this.isAIVariant=!1)}attachClickEventListener(s,o){document.querySelectorAll(“.recommended-post-link”).forEach(t=>{t.setAttribute(“data-variant”,s),t.setAttribute(“data-content-type”,o),t.addEventListener(“click”,e=>{e.preventDefault(),console.log(“AA AI User clicked on post”,e);e=t.href;localStorage.setItem(this.postType+”-last-clicked-variant”,s),localStorage.setItem(this.postType+”-last-clicked-content-type”,o),window.location.href=e})})}handleGTMVariantEvent(){var e=localStorage.getItem(this.postType+”-last-clicked-variant”),t=localStorage.getItem(this.postType+”-last-clicked-content-type”);e&&(console.log(“AA AI GTM Event Variant:”,e),localStorage.removeItem(this.postType+”-last-clicked-variant”),localStorage.removeItem(this.postType+”-last-clicked-content-type”),window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:this.trackingEvent,variant:e,postType:t}))}handleGTMPostView(){var e=this.isAIVariant?”AI”:”TOP GA”;this.postType&&e&&(console.log(“AA AI GTM Event Variant:”,e),window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:”recommended_top_5_widget_viewed”,variant:e,postType:this.postType}))}getGA4ClientId(){if(window.origin.includes(“womansworld”)||window.origin.includes(“firstforwomen”)){if(!this.checkAllowedPurposes())return console.log(“No targeting consent”),!1}else if(!window.OnetrustActiveGroups.includes(“,C0004,”))return console.log(“No targeting consent”),!1;var e=document.cookie.split(“; “).find(e=>e.startsWith(“_ga=”));return!!e&&e.split(“.”).slice(-2).join(“.”)}getAttributionToken(){var e=window.location.hash;return e&&e.startsWith(“#attrib-“)?(e=decodeURIComponent(e.substring(“#attrib-“.length)),console.log(“AA AI Token found in URL: “+e),e):(console.log(“AA AI No valid token found in URL.”),””)}getLinkUrl(e,t){var s=new URL(e);return s.hostname!==window.location.host&&(s.hostname=window.location.host),(e=s.toString())+”#attrib-“+t}getImageSrc(e){return(e?.split(“?”)[0]||”/wp-content/themes/us-weekly/assets/img/placeholders/default-usweekly.svg”)+”?w=600&h=600&quality=86&strip=all”}getImageSrcset(e){e=e?.split(“?”)[0]||”/wp-content/themes/us-weekly/assets/img/placeholders/default-usweekly.svg”;return e+`?w=200&h=200&quality=86&strip=all 200w, ${e}?w=300&h=300&quality=86&strip=all 300w, ${e}?w=400&h=400&quality=86&strip=all 400w, ${e}?w=600&h=600&quality=86&strip=all 600w, ${e}?w=800&h=800&quality=86&strip=all 800w, ${e}?w=900&h=900&quality=86&strip=all 900w, ${e}?w=1000&h=1000&quality=86&strip=all 1000w, ${e}?w=1200&h=1200&quality=86&strip=all 1200w`}}window.initRecommendedPosts=function(t={}){var s=document.getElementById(“recommended-posts-config”);if(s)try{var o={…JSON.parse(s.dataset.config),…t};let e=new RecommendedPosts(o);return(window.origin.includes(“womansworld”)||window.origin.includes(“firstforwomen”))&&(window.runRecommendedPostsCallback=()=>{e.runConsentCallback()}),e}catch(e){console.error(“Error initializing recommended posts:”,e)}else console.error(“Recommended posts config element not found”)},document.addEventListener(“DOMContentLoaded”,()=>{window.origin.includes(“womansworld”)||window.origin.includes(“firstforwomen”)||window.initRecommendedPosts()}); ]]> {{ data.text }}  – Learn More

{ const cachedId = localStorage.getItem( ‘perClientId’ ); if ( null === cachedId || “” === cachedId ) { const clientId = Date.now() + Math.random(); if ( window.location.hostname.indexOf( ‘usmagazine’ ) !== -1 && !!window.Worker ) { //console.log(“WWW creating worker for permutive button “); var worker = new Worker( ‘/wp-content/themes/ajax-onload.js’ ); worker.onmessage = function( ev ) { const newClientId = ev.data; console.log( ‘%c Got via Worker: ‘ + newClientId, ‘background: #27ae60; color: #000; padding: 2px 10px 2px 5px’ ); if ( newClientId ) { localStorage.setItem( ‘perClientId’, newClientId ); let identities = [{ “id”: newClientId, “tag”: “publisherUserId”, “priority”: 0 } ]; try { if ( undefined !== window.cognito_user ) { identities.push( { “id”: window.cognito_user.hash_email, “tag”: “email_sha256”, “priority”: 1 } ); } else { let cognito_user = localStorage.getItem( ‘cognito_’+window._cognito.clientId+’_user’ ); if ( null != cognito_user ) { let cognito_user_json = JSON.parse(cognito_user); identities.push( { “id”: cognito_user_json.hash_email, “tag”: “email_sha256”, “priority”: 1 } ); } } if ( undefined !== window.cognito_user ) { identities.push({ “id”: window.cognito_user.id, “tag”: “mylo_username”, “priority”: 2 }); } else { let cognito_user = localStorage.getItem( ‘cognito_’+window._cognito.clientId+’_user’ ); if ( null != cognito_user ) { let cognito_user_json = JSON.parse(cognito_user); identities.push( { “id”: cognito_user_json.id, “tag”: “mylo_username”, “priority”: 1 } ); } } } catch ( e ) { console.log( ‘permutive identity: ‘, e ); } window.permutive.identify( identities ); console.log( ‘identity’, identities ); } }; worker.postMessage( [‘permutive’, clientId] ); } else { $.ajax( { url: ‘/wp-admin/admin-ajax.php?action=get_client_id&clientId=’ + clientId } ).done( ( ajaxResponse ) => { const parsedResponse = JSON.parse( ajaxResponse ); console.log( ‘%c Got: ‘ + parsedResponse.clientId, ‘background: #27ae60; color: #000; padding: 2px 10px 2px 5px’ ); if ( parsedResponse.hasOwnProperty( ‘clientId’ ) ) { localStorage.setItem( ‘perClientId’, parsedResponse.clientId ); let identities = [{ “id”: parsedResponse.clientId, “tag”: “publisherUserId”, “priority”: 0 } ]; try { if ( undefined !== window.cognito_user ) { identities.push( { “id”: window.cognito_user.hash_email, “tag”: “email_sha256”, “priority”: 1 } ); } else { let cognito_user = localStorage.getItem( ‘cognito_’+window._cognito.clientId+’_user’ ); if ( null != cognito_user ) { let cognito_user_json = JSON.parse(cognito_user); identities.push( { “id”: cognito_user_json.hash_email, “tag”: “email_sha256”, “priority”: 1 } ); } } if ( undefined !== window.cognito_user ) { identities.push({ “id”: window.cognito_user.id, “tag”: “mylo_username”, “priority”: 2 }); } else { let cognito_user = localStorage.getItem( ‘cognito_’+window._cognito.clientId+’_user’ ); if ( null != cognito_user ) { let cognito_user_json = JSON.parse(cognito_user); identities.push( { “id”: cognito_user_json.id, “tag”: “mylo_username”, “priority”: 1 } ); } } } catch ( e ) { console.log( ‘permutive identity: ‘, e ); } window.permutive.identify( identities ); console.log( ‘identity’, identities ); } } ); } } else { let identities = [{ “id”: cachedId, “tag”: “publisherUserId”, “priority”: 0 } ]; try { if ( undefined !== window.cognito_user ) { identities.push( { “id”: window.cognito_user.hash_email, “tag”: “email_sha256”, “priority”: 1 } ); } else { let cognito_user = localStorage.getItem( ‘cognito_’+window._cognito.clientId+’_user’ ); if ( null != cognito_user ) { let cognito_user_json = JSON.parse(cognito_user); identities.push( { “id”: cognito_user_json.hash_email, “tag”: “email_sha256”, “priority”: 1 } ); } } if ( undefined !== window.cognito_user ) { identities.push({ “id”: window.cognito_user.id, “tag”: “mylo_username”, “priority”: 2 }); } else { let cognito_user = localStorage.getItem( ‘cognito_’+window._cognito.clientId+’_user’ ); if ( null != cognito_user ) { let cognito_user_json = JSON.parse(cognito_user); identities.push( { “id”: cognito_user_json.id, “tag”: “mylo_username”, “priority”: 1 } ); } } } catch ( e ) { console.log( ‘permutive identity: ‘, e ); } window.permutive.identify( identities ); console.log( ‘identity’, identities ); } } ); } )( jQuery ); ]]> { const cachedId = localStorage.getItem(‘perClientId’); if (cachedId === null || cachedId === “”) { const clientId = Date.now() + Math.random(); $.ajax({ url: ‘/wp-admin/admin-ajax.php?action=get_client_id&clientId=’ + clientId }).done((ajaxResponse) => { const parsedResponse = JSON.parse(ajaxResponse); console.log(‘%c Got: ‘ + parsedResponse.clientId, ‘background: #27ae60; color: #000; padding: 2px 10px 2px 5px’); if (parsedResponse.hasOwnProperty(‘clientId’)) { localStorage.setItem(‘perClientId’, parsedResponse.clientId); let identities = [{ “id”: parsedResponse.clientId, “tag”: “publisherUserId”, “priority”: 0 }]; let arcIdentities = { ‘ids’: { “ext_id”: parsedResponse.clientId } } // { ‘ids’: {’email_sha256′:”, ‘ext_id’: ”}, ‘primary’:’email_sha256′}) try { if (window.cognito_user !== undefined) { identities.push({ “id”: window.cognito_user.hash_email, “tag”: “email_sha256”, “priority”: 1 }); arcIdentities[‘ids’][’email_sha256′]=window.cognito_user.hash_email; arcIdentities[‘primary’]=window.cognito_user.hash_email; } else { let cognito_user = localStorage.getItem(‘cognito_’ + window._cognito.clientId + ‘_user’); if (cognito_user !== null) { let cognito_user_json = JSON.parse(cognito_user); identities.push({ “id”: cognito_user_json.hash_email, “tag”: “email_sha256”, “priority”: 1 }); } } if (window.cognito_user !== undefined) { identities.push({ “id”: window.cognito_user.id, “tag”: “mylo_username”, “priority”: 2 }); } else { let cognito_user = localStorage.getItem(‘cognito_’ + window._cognito.clientId + ‘_user’); if (cognito_user !== null) { let cognito_user_json = JSON.parse(cognito_user); identities.push({ “id”: cognito_user_json.id, “tag”: “mylo_username”, “priority”: 1 }); } } } catch (e) { console.log(‘arcspan identity: ‘, e); } //window.permutive.identify(identities); console.log(‘ARC1 identity’, identities); console.log(‘ARC1 arcIdentity’, arcIdentities); } }); } else { let identities = [{ “id”: cachedId, “tag”: “publisherUserId”, “priority”: 0 }]; let arcIdentities = { ‘ids’: { “ext_id”: cachedId } } try { if (window.cognito_user !== undefined) { identities.push({ “id”: window.cognito_user.hash_email, “tag”: “email_sha256”, “priority”: 1 }); arcIdentities[‘ids’][’email_sha256′]=window.cognito_user.hash_email; arcIdentities[‘primary’]=window.cognito_user.hash_email; } else { let cognito_user = localStorage.getItem(‘cognito_’ + window._cognito.clientId + ‘_user’); if (cognito_user !== null) { let cognito_user_json = JSON.parse(cognito_user); identities.push({ “id”: cognito_user_json.hash_email, “tag”: “email_sha256”, “priority”: 1 }); arcIdentities[’email_sha256′]=cognito_user_json.hash_email; } } if (window.cognito_user !== undefined) { identities.push({ “id”: window.cognito_user.id, “tag”: “mylo_username”, “priority”: 2 }); } else { let cognito_user = localStorage.getItem(‘cognito_’ + window._cognito.clientId + ‘_user’); if (cognito_user !== null) { let cognito_user_json = JSON.parse(cognito_user); identities.push({ “id”: cognito_user_json.id, “tag”: “mylo_username”, “priority”: 1 }); } } } catch (e) { console.log(‘arcspan identity: ‘, e); } if (typeof arcspan !== “undefined” && arcspan) { aspan.setCustomerId(arcIdentities); } else { console.log(“AA TCF: not arcspan, probably because user has revoked the consent”); } } }); })(jQuery); ]]>

You May Also Like

답글 남기기

이메일 주소는 공개되지 않습니다. 필수 필드는 *로 표시됩니다