New York Magazine

June 22, 2021


New York Magazine screen.availWidth?[screen.availHeight,screen.availWidth]:[screen.availWidth,screen.availHeight]:[screen.availHeight,screen.availWidth]),”undefined”!=typeof t&&e.push({key:”available_resolution”,value:t}),e},timezoneOffsetKey:function(e){return this.options.excludeTimezoneOffset||e.push({key:”timezone_offset”,value:(new Date).getTimezoneOffset()}),e},sessionStorageKey:function(e){return!this.options.excludeSessionStorage&&this.hasSessionStorage()&&e.push({key:”session_storage”,value:1}),e},localStorageKey:function(e){return!this.options.excludeSessionStorage&&this.hasLocalStorage()&&e.push({key:”local_storage”,value:1}),e},indexedDbKey:function(e){return!this.options.excludeIndexedDB&&this.hasIndexedDB()&&e.push({key:”indexed_db”,value:1}),e},addBehaviorKey:function(e){return document.body&&!this.options.excludeAddBehavior&&document.body.addBehavior&&e.push({key:”add_behavior”,value:1}),e},openDatabaseKey:function(e){return!this.options.excludeOpenDatabase&&window.openDatabase&&e.push({key:”open_database”,value:1}),e},cpuClassKey:function(e){return this.options.excludeCpuClass||e.push({key:”cpu_class”,value:this.getNavigatorCpuClass()}),e},platformKey:function(e){return this.options.excludePlatform||e.push({key:”navigator_platform”,value:this.getNavigatorPlatform()}),e},doNotTrackKey:function(e){return this.options.excludeDoNotTrack||e.push({key:”do_not_track”,value:this.getDoNotTrack()}),e},canvasKey:function(e){return!this.options.excludeCanvas&&this.isCanvasSupported()&&e.push({key:”canvas”,value:this.getCanvasFp()}),e},webglKey:function(e){return this.options.excludeWebGL?e:this.isWebGlSupported()?(e.push({key:”webgl”,value:this.getWebglFp()}),e):e},adBlockKey:function(e){return this.options.excludeAdBlock||e.push({key:”adblock”,value:this.getAdBlock()}),e},hasLiedLanguagesKey:function(e){return this.options.excludeHasLiedLanguages||e.push({key:”has_lied_languages”,value:this.getHasLiedLanguages()}),e},hasLiedResolutionKey:function(e){return this.options.excludeHasLiedResolution||e.push({key:”has_lied_resolution”,value:this.getHasLiedResolution()}),e},hasLiedOsKey:function(e){return this.options.excludeHasLiedOs||e.push({key:”has_lied_os”,value:this.getHasLiedOs()}),e},hasLiedBrowserKey:function(e){return this.options.excludeHasLiedBrowser||e.push({key:”has_lied_browser”,value:this.getHasLiedBrowser()}),e},fontsKey:function(e,t){return this.options.excludeJsFonts?this.flashFontsKey(e,t):this.jsFontsKey(e,t)},flashFontsKey:function(e,t){return this.options.excludeFlashFonts?t(e):this.hasSwfObjectLoaded()&&this.hasMinFlashInstalled()?”undefined”==typeof this.options.swfPath?t(e):void this.loadSwfAndDetectFonts(function(i){e.push({key:”swf_fonts”,value:i.join(“;”)}),t(e)}):t(e)},jsFontsKey:function(e,t){var i=this;return setTimeout(function(){var a=[“monospace”,”sans-serif”,”serif”],r=[“Andale Mono”,”Arial”,”Arial Black”,”Arial Hebrew”,”Arial MT”,”Arial Narrow”,”Arial Rounded MT Bold”,”Arial Unicode MS”,”Bitstream Vera Sans Mono”,”Book Antiqua”,”Bookman Old Style”,”Calibri”,”Cambria”,”Cambria Math”,”Century”,”Century Gothic”,”Century Schoolbook”,”Comic Sans”,”Comic Sans MS”,”Consolas”,”Courier”,”Courier New”,”Garamond”,”Geneva”,”Georgia”,”Helvetica”,”Helvetica Neue”,”Impact”,”Lucida Bright”,”Lucida Calligraphy”,”Lucida Console”,”Lucida Fax”,”LUCIDA GRANDE”,”Lucida Handwriting”,”Lucida Sans”,”Lucida Sans Typewriter”,”Lucida Sans Unicode”,”Microsoft Sans Serif”,”Monaco”,”Monotype Corsiva”,”MS Gothic”,”MS Outlook”,”MS PGothic”,”MS Reference Sans Serif”,”MS Sans Serif”,”MS Serif”,”MYRIAD”,”MYRIAD PRO”,”Palatino”,”Palatino Linotype”,”Segoe Print”,”Segoe Script”,”Segoe UI”,”Segoe UI Light”,”Segoe UI Semibold”,”Segoe UI Symbol”,”Tahoma”,”Times”,”Times New Roman”,”Times New Roman PS”,”Trebuchet MS”,”Verdana”,”Wingdings”,”Wingdings 2″,”Wingdings 3″],n=[“Abadi MT Condensed Light”,”Academy Engraved LET”,”ADOBE CASLON PRO”,”Adobe Garamond”,”ADOBE GARAMOND PRO”,”Agency FB”,”Aharoni”,”Albertus Extra Bold”,”Albertus Medium”,”Algerian”,”Amazone BT”,”American Typewriter”,”American Typewriter Condensed”,”AmerType Md BT”,”Andalus”,”Angsana New”,”AngsanaUPC”,”Antique Olive”,”Aparajita”,”Apple Chancery”,”Apple Color Emoji”,”Apple SD Gothic Neo”,”Arabic Typesetting”,”ARCHER”,”ARNO PRO”,”Arrus BT”,”Aurora Cn BT”,”AvantGarde Bk BT”,”AvantGarde Md BT”,”AVENIR”,”Ayuthaya”,”Bandy”,”Bangla Sangam MN”,”Bank Gothic”,”BankGothic Md BT”,”Baskerville”,”Baskerville Old Face”,”Batang”,”BatangChe”,”Bauer Bodoni”,”Bauhaus 93″,”Bazooka”,”Bell MT”,”Bembo”,”Benguiat Bk BT”,”Berlin Sans FB”,”Berlin Sans FB Demi”,”Bernard MT Condensed”,”BernhardFashion BT”,”BernhardMod BT”,”Big Caslon”,”BinnerD”,”Blackadder ITC”,”BlairMdITC TT”,”Bodoni 72″,”Bodoni 72 Oldstyle”,”Bodoni 72 Smallcaps”,”Bodoni MT”,”Bodoni MT Black”,”Bodoni MT Condensed”,”Bodoni MT Poster Compressed”,”Bookshelf Symbol 7″,”Boulder”,”Bradley Hand”,”Bradley Hand ITC”,”Bremen Bd BT”,”Britannic Bold”,”Broadway”,”Browallia New”,”BrowalliaUPC”,”Brush Script MT”,”Californian FB”,”Calisto MT”,”Calligrapher”,”Candara”,”CaslonOpnface BT”,”Castellar”,”Centaur”,”Cezanne”,”CG Omega”,”CG Times”,”Chalkboard”,”Chalkboard SE”,”Chalkduster”,”Charlesworth”,”Charter Bd BT”,”Charter BT”,”Chaucer”,”ChelthmITC Bk BT”,”Chiller”,”Clarendon”,”Clarendon Condensed”,”CloisterBlack BT”,”Cochin”,”Colonna MT”,”Constantia”,”Cooper Black”,”Copperplate”,”Copperplate Gothic”,”Copperplate Gothic Bold”,”Copperplate Gothic Light”,”CopperplGoth Bd BT”,”Corbel”,”Cordia New”,”CordiaUPC”,”Cornerstone”,”Coronet”,”Cuckoo”,”Curlz MT”,”DaunPenh”,”Dauphin”,”David”,”DB LCD Temp”,”DELICIOUS”,”Denmark”,”DFKai-SB”,”Didot”,”DilleniaUPC”,”DIN”,”DokChampa”,”Dotum”,”DotumChe”,”Ebrima”,”Edwardian Script ITC”,”Elephant”,”English 111 Vivace BT”,”Engravers MT”,”EngraversGothic BT”,”Eras Bold ITC”,”Eras Demi ITC”,”Eras Light ITC”,”Eras Medium ITC”,”EucrosiaUPC”,”Euphemia”,”Euphemia UCAS”,”EUROSTILE”,”Exotc350 Bd BT”,”FangSong”,”Felix Titling”,”Fixedsys”,”FONTIN”,”Footlight MT Light”,”Forte”,”FrankRuehl”,”Fransiscan”,”Freefrm721 Blk BT”,”FreesiaUPC”,”Freestyle Script”,”French Script MT”,”FrnkGothITC Bk BT”,”Fruitger”,”FRUTIGER”,”Futura”,”Futura Bk BT”,”Futura Lt BT”,”Futura Md BT”,”Futura ZBlk BT”,”FuturaBlack BT”,”Gabriola”,”Galliard BT”,”Gautami”,”Geeza Pro”,”Geometr231 BT”,”Geometr231 Hv BT”,”Geometr231 Lt BT”,”GeoSlab 703 Lt BT”,”GeoSlab 703 XBd BT”,”Gigi”,”Gill Sans”,”Gill Sans MT”,”Gill Sans MT Condensed”,”Gill Sans MT Ext Condensed Bold”,”Gill Sans Ultra Bold”,”Gill Sans Ultra Bold Condensed”,”Gisha”,”Gloucester MT Extra Condensed”,”GOTHAM”,”GOTHAM BOLD”,”Goudy Old Style”,”Goudy Stout”,”GoudyHandtooled BT”,”GoudyOLSt BT”,”Gujarati Sangam MN”,”Gulim”,”GulimChe”,”Gungsuh”,”GungsuhChe”,”Gurmukhi MN”,”Haettenschweiler”,”Harlow Solid Italic”,”Harrington”,”Heather”,”Heiti SC”,”Heiti TC”,”HELV”,”Herald”,”High Tower Text”,”Hiragino Kaku Gothic ProN”,”Hiragino Mincho ProN”,”Hoefler Text”,”Humanst 521 Cn BT”,”Humanst521 BT”,”Humanst521 Lt BT”,”Imprint MT Shadow”,”Incised901 Bd BT”,”Incised901 BT”,”Incised901 Lt BT”,”INCONSOLATA”,”Informal Roman”,”Informal011 BT”,”INTERSTATE”,”IrisUPC”,”Iskoola Pota”,”JasmineUPC”,”Jazz LET”,”Jenson”,”Jester”,”Jokerman”,”Juice ITC”,”Kabel Bk BT”,”Kabel Ult BT”,”Kailasa”,”KaiTi”,”Kalinga”,”Kannada Sangam MN”,”Kartika”,”Kaufmann Bd BT”,”Kaufmann BT”,”Khmer UI”,”KodchiangUPC”,”Kokila”,”Korinna BT”,”Kristen ITC”,”Krungthep”,”Kunstler Script”,”Lao UI”,”Latha”,”Leelawadee”,”Letter Gothic”,”Levenim MT”,”LilyUPC”,”Lithograph”,”Lithograph Light”,”Long Island”,”Lydian BT”,”Magneto”,”Maiandra GD”,”Malayalam Sangam MN”,”Malgun Gothic”,”Mangal”,”Marigold”,”Marion”,”Marker Felt”,”Market”,”Marlett”,”Matisse ITC”,”Matura MT Script Capitals”,”Meiryo”,”Meiryo UI”,”Microsoft Himalaya”,”Microsoft JhengHei”,”Microsoft New Tai Lue”,”Microsoft PhagsPa”,”Microsoft Tai Le”,”Microsoft Uighur”,”Microsoft YaHei”,”Microsoft Yi Baiti”,”MingLiU”,”MingLiU_HKSCS”,”MingLiU_HKSCS-ExtB”,”MingLiU-ExtB”,”Minion”,”Minion Pro”,”Miriam”,”Miriam Fixed”,”Mistral”,”Modern”,”Modern No. 20″,”Mona Lisa Solid ITC TT”,”Mongolian Baiti”,”MONO”,”MoolBoran”,”Mrs Eaves”,”MS LineDraw”,”MS Mincho”,”MS PMincho”,”MS Reference Specialty”,”MS UI Gothic”,”MT Extra”,”MUSEO”,”MV Boli”,”Nadeem”,”Narkisim”,”NEVIS”,”News Gothic”,”News GothicMT”,”NewsGoth BT”,”Niagara Engraved”,”Niagara Solid”,”Noteworthy”,”NSimSun”,”Nyala”,”OCR A Extended”,”Old Century”,”Old English Text MT”,”Onyx”,”Onyx BT”,”OPTIMA”,”Oriya Sangam MN”,”OSAKA”,”OzHandicraft BT”,”Palace Script MT”,”Papyrus”,”Parchment”,”Party LET”,”Pegasus”,”Perpetua”,”Perpetua Titling MT”,”PetitaBold”,”Pickwick”,”Plantagenet Cherokee”,”Playbill”,”PMingLiU”,”PMingLiU-ExtB”,”Poor Richard”,”Poster”,”PosterBodoni BT”,”PRINCETOWN LET”,”Pristina”,”PTBarnum BT”,”Pythagoras”,”Raavi”,”Rage Italic”,”Ravie”,”Ribbon131 Bd BT”,”Rockwell”,”Rockwell Condensed”,”Rockwell Extra Bold”,”Rod”,”Roman”,”Sakkal Majalla”,”Santa Fe LET”,”Savoye LET”,”Sceptre”,”Script”,”Script MT Bold”,”SCRIPTINA”,”Serifa”,”Serifa BT”,”Serifa Th BT”,”ShelleyVolante BT”,”Sherwood”,”Shonar Bangla”,”Showcard Gothic”,”Shruti”,”Signboard”,”SILKSCREEN”,”SimHei”,”Simplified Arabic”,”Simplified Arabic Fixed”,”SimSun”,”SimSun-ExtB”,”Sinhala Sangam MN”,”Sketch Rockwell”,”Skia”,”Small Fonts”,”Snap ITC”,”Snell Roundhand”,”Socket”,”Souvenir Lt BT”,”Staccato222 BT”,”Steamer”,”Stencil”,”Storybook”,”Styllo”,”Subway”,”Swis721 BlkEx BT”,”Swiss911 XCm BT”,”Sylfaen”,”Synchro LET”,”System”,”Tamil Sangam MN”,”Technical”,”Teletype”,”Telugu Sangam MN”,”Tempus Sans ITC”,”Terminal”,”Thonburi”,”Traditional Arabic”,”Trajan”,”TRAJAN PRO”,”Tristan”,”Tubular”,”Tunga”,”Tw Cen MT”,”Tw Cen MT Condensed”,”Tw Cen MT Condensed Extra Bold”,”TypoUpright BT”,”Unicorn”,”Univers”,”Univers CE 55 Medium”,”Univers Condensed”,”Utsaah”,”Vagabond”,”Vani”,”Vijaya”,”Viner Hand ITC”,”VisualUI”,”Vivaldi”,”Vladimir Script”,”Vrinda”,”Westminster”,”WHITNEY”,”Wide Latin”,”ZapfEllipt BT”,”ZapfHumnst BT”,”ZapfHumnst Dm BT”,”Zapfino”,”Zurich BlkEx BT”,”Zurich Ex BT”,”ZWAdobeF”];i.options.extendedJsFonts&&(r=r.concat(n)),r=r.concat(i.options.userDefinedFonts);var o=”mmmmmmmmmmlli”,s=”72px”,l=document.getElementsByTagName(“body”)[0],h=document.createElement(“div”),u=document.createElement(“div”),c={},d={},g=function(){var e=document.createElement(“span”);return e.style.position=”absolute”,e.style.left=”-9999px”,e.style.fontSize=s,e.style.lineHeight=”normal”,e.innerHTML=o,e},p=function(e,t){var i=g();return i.style.fontFamily=”‘”+e+”‘,”+t,i},f=function(){for(var e=[],t=0,i=a.length;tt.name?1:e.name=0?”Windows”:t.indexOf(“android”)>=0?”Android”:t.indexOf(“linux”)>=0?”Linux”:t.indexOf(“iphone”)>=0||t.indexOf(“ipad”)>=0?”iOS”:t.indexOf(“mac”)>=0?”Mac”:”Other”;var r;if(r=”ontouchstart”in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0,r&&”Windows Phone”!==e&&”Android”!==e&&”iOS”!==e&&”Other”!==e)return!0;if(“undefined”!=typeof i){if(i=i.toLowerCase(),i.indexOf(“win”)>=0&&”Windows”!==e&&”Windows Phone”!==e)return!0;if(i.indexOf(“linux”)>=0&&”Linux”!==e&&”Android”!==e)return!0;if(i.indexOf(“mac”)>=0&&”Mac”!==e&&”iOS”!==e)return!0;if(0===i.indexOf(“win”)&&0===i.indexOf(“linux”)&&i.indexOf(“mac”)>=0&&”other”!==e)return!0}return a.indexOf(“win”)>=0&&”Windows”!==e&&”Windows Phone”!==e||((a.indexOf(“linux”)>=0||a.indexOf(“android”)>=0||a.indexOf(“pike”)>=0)&&”Linux”!==e&&”Android”!==e||((a.indexOf(“mac”)>=0||a.indexOf(“ipad”)>=0||a.indexOf(“ipod”)>=0||a.indexOf(“iphone”)>=0)&&”Mac”!==e&&”iOS”!==e||(0===a.indexOf(“win”)&&0===a.indexOf(“linux”)&&a.indexOf(“mac”)>=0&&”other”!==e||”undefined”==typeof navigator.plugins&&”Windows”!==e&&”Windows Phone”!==e)))},getHasLiedBrowser:function(){var e,t=navigator.userAgent.toLowerCase(),i=navigator.productSub;if(e=t.indexOf(“firefox”)>=0?”Firefox”:t.indexOf(“opera”)>=0||t.indexOf(“opr”)>=0?”Opera”:t.indexOf(“chrome”)>=0?”Chrome”:t.indexOf(“safari”)>=0?”Safari”:t.indexOf(“trident”)>=0?”Internet Explorer”:”Other”,(“Chrome”===e||”Safari”===e||”Opera”===e)&&”20030107″!==i)return!0;var a=eval.toString().length;if(37===a&&”Safari”!==e&&”Firefox”!==e&&”Other”!==e)return!0;if(39===a&&”Internet Explorer”!==e&&”Other”!==e)return!0;if(33===a&&”Chrome”!==e&&”Opera”!==e&&”Other”!==e)return!0;var r;try{throw”a”}catch(n){try{n.toSource(),r=!0}catch(o){r=!1}}return!(!r||”Firefox”===e||”Other”===e)},isCanvasSupported:function(){var e=document.createElement(“canvas”);return!(!e.getContext||!e.getContext(“2d”))},isWebGlSupported:function(){if(!this.isCanvasSupported())return!1;var e,t=document.createElement(“canvas”);try{e=t.getContext&&(t.getContext(“webgl”)||t.getContext(“experimental-webgl”))}catch(i){e=!1}return!!window.WebGLRenderingContext&&!!e},isIE:function(){return”Microsoft Internet Explorer”===navigator.appName||!(“Netscape”!==navigator.appName||!/Trident/.test(navigator.userAgent))},hasSwfObjectLoaded:function(){return”undefined”!=typeof window.swfobject},hasMinFlashInstalled:function(){return swfobject.hasFlashPlayerVersion(“9.0.0”)},addFlashDivNode:function(){var e=document.createElement(“div”);e.setAttribute(“id”,this.options.swfContainerId),document.body.appendChild(e)},loadSwfAndDetectFonts:function(e){var t=”___fp_swf_loaded”;window[t]=function(t){e(t)};var i=this.options.swfContainerId;this.addFlashDivNode();var a={onReady:t},r={allowScriptAccess:”always”,menu:”false”};swfobject.embedSWF(this.options.swfPath,i,”1″,”1″,”9.0.0″,!1,a,r,{})},getWebglCanvas:function(){var e=document.createElement(“canvas”),t=null;try{t=e.getContext(“webgl”)||e.getContext(“experimental-webgl”)}catch(i){}return t||(t=null),t},each:function(e,t,i){if(null!==e)if(this.nativeForEach&&e.forEach===this.nativeForEach)e.forEach(t,i);else if(e.length===+e.length){for(var a=0,r=e.length;a>>16,65535&e[0],e[1]>>>16,65535&e[1]],t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]];var i=[0,0,0,0];return i[3]+=e[3]+t[3],i[2]+=i[3]>>>16,i[3]&=65535,i[2]+=e[2]+t[2],i[1]+=i[2]>>>16,i[2]&=65535,i[1]+=e[1]+t[1],i[0]+=i[1]>>>16,i[1]&=65535,i[0]+=e[0]+t[0],i[0]&=65535,[i[0]<<16|i[1],i[2]>>16,65535&e[0],e[1]>>>16,65535&e[1]],t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]];var i=[0,0,0,0];return i[3]+=e[3]*t[3],i[2]+=i[3]>>>16,i[3]&=65535,i[2]+=e[2]*t[3],i[1]+=i[2]>>>16,i[2]&=65535,i[2]+=e[3]*t[2],i[1]+=i[2]>>>16,i[2]&=65535,i[1]+=e[1]*t[3],i[0]+=i[1]>>>16,i[1]&=65535,i[1]+=e[2]*t[2],i[0]+=i[1]>>>16,i[1]&=65535,i[1]+=e[3]*t[1],i[0]+=i[1]>>>16,i[1]&=65535,i[0]+=e[0]*t[3]+e[1]*t[2]+e[2]*t[1]+e[3]*t[0],i[0]&=65535,[i[0]<<16|i[1],i[2]<<16|i[3]]},x64Rotl:function(e,t){return t%=64,32===t?[e[1],e[0]]:t<32?[e[0]<>>32-t,e[1]<>>32-t]:(t-=32,[e[1]<>>32-t,e[0]<>>32-t])},x64LeftShift:function(e,t){return t%=64,0===t?e:t<32?[e[0]<>>32-t,e[1]<>1]),e=this.x64Multiply(e,[4283543511,3981806797]),e=this.x64Xor(e,[0,e[0]>>>1]),e=this.x64Multiply(e,[3301882366,444984403]),e=this.x64Xor(e,[0,e[0]>>>1])},x64hash128:function(e,t){e=e||””,t=t||0;for(var i=e.length%16,a=e.length-i,r=[0,t],n=[0,t],o=[0,0],s=[0,0],l=[2277735313,289559509],h=[1291169091,658871167],u=0;u>0).toString(16)).slice(-8)+(“00000000″+(r[1]>>>0).toString(16)).slice(-8)+(“00000000″+(n[0]>>>0).toString(16)).slice(-8)+(“00000000″+(n[1]>>>0).toString(16)).slice(-8)}},e.VERSION=”1.5.1″,e}); function getC(k) { var s = ‘; ‘,c = (s+(document.cookie || ”)).split(s+k); return c.length > 1 ? c[1].split(‘;’)[0] : ”; } var _nymGtmPage = window._nymGtmPage || {}, k = ‘nyma=’, id = getC(k), getMeta = function (name) { var t = document.querySelector(‘meta[name=”‘+name+'”]’); return t && t.content || ”; }; function loadPermutive(userDetails) { var u = {}; try { var appMeta = JSON.parse(localStorage.getItem(‘auth0:profile’))[‘http://nymag.com/app_metadata’]; } catch (e) {} u.subAge = (function() { var oldestDate, now = Date.now(); if (appMeta && appMeta.stripe && appMeta.stripe instanceof Array) { appMeta.stripe.forEach(function(s){ (s.subscriptions || []).forEach(function(sub) { if (sub && sub.current_period_start && (!oldestDate || sub.current_period_start 0 ? parseInt(visitDates[0], 10) : 0; if (Date.now() – mostRecentVisit > 24 * 60 * 60 * 1000) { visitDatesLength++; } if (visitDatesLength <= 1) { return 'new'; } else if (visitDatesLength previousActionTimestamp, // logic for the non-siteShortKey adaptation to be removed after 30 days visitStartTimestamp = getNumberFromLocalStorage(visitStartTimestampKey), visitDurationExpired = currentTimestamp - maxVisitDuration > visitStartTimestamp; return sessionExpired || visitDurationExpired; } function getUserVisitCount() { var shortKey = ‘ny’, // logic for the non-siteShortKey adaptation to be removed after 30 days visitCount = getNumberFromLocalStorage(‘visitServiceCount_’ + shortKey) || 1; if (isNewVisit()) { visitCount++; } return visitCount; } function getUserCount(cb) { var cid = getC(‘nymcid=’), sid = getC(‘sailthru_hid=’), pid = [], h = window.location.hostname, hs = h.split(‘.’), rootDomain = (hs[hs.length – 1] === ‘uk’ ? hs[hs.length – 3] + ‘.’ : ”) + hs[hs.length – 2] + ‘.’ + hs[hs.length – 1], isQa = h.match(/b(dev|localhost|stg)./i), base = isQa ? ‘https://client.dev.’ + rootDomain : ‘https://client.’ + rootDomain, xhr = new XMLHttpRequest(), method = ‘GET’, body, isCountable = !_nymGtmPage.hasProduct && _nymGtmPage.featureTypes && (_nymGtmPage.pageType === ‘Article’ || _nymGtmPage.pageType === ‘Video Page’ || _nymGtmPage.pageType === ‘Video’); if (sid) pid.push({id: sid, tag: ‘sailthruid’}); if (!cid) { if (sid) permutive.identify(pid); cb({}); return; } pid.push({id: cid,tag: ‘nymcid’}); permutive.identify(pid); if (isCountable) { var fts = (_nymGtmPage.featureTypes || ”).split(‘,’).map(function(str){return str.trim();}), tagsData = (_nymGtmPage.tags || ”).split(‘,’).map(function(str){return str.trim();}), articleType = fts.includes(‘new york magazine story’) || tagsData.includes(‘new york magazine’) ? ‘Magazine’ : ‘Article’; method = ‘POST’; body = ‘{“type”:”‘+articleType+'”,”site”:”nymag”,”pageid”:”‘+(_nymGtmPage.pageUri||”).split(‘/_pages/’).pop()+'”}’; } xhr.responseType = ‘json’; xhr.timeout = 3000; xhr.ontimeout = cb.bind(this, {}); xhr.onload = function() { let g = xhr.response && xhr.response.global, c = xhr.response; if (g) { window.nymViewsResponse = xhr.response; cb({ standardArticleCount: g.Article || 0, featureArticleCount: g.Feature || 0, magazineArticleCount: g.Magazine || 0, totalArticleCount: g.total || 0, vultureArticleCount: (typeof c.vulture === ‘undefined’ ? 0 : c.vulture.total), intelArticleCount: (typeof c.intelligencer === ‘undefined’ ? 0 : c.intelligencer.total), cutArticleCount: (typeof c.wwwthecut === ‘undefined’ ? 0 : c.wwwthecut.total), grubstreetArticleCount: (typeof c.grubstreet === ‘undefined’ ? 0 : c.grubstreet.total), curbedArticleCount: (typeof c.curbed === ‘undefined’ ? 0 : c.curbed.total) }); } else { cb({}); } }; xhr.onerror = cb.bind(this, {}); xhr.open(method, base + ‘/views/’ + cid); xhr.setRequestHeader(‘Content-Type’, ‘application/json’); xhr.send(body); } function load(userDetails) { var h = document.querySelector(‘html’); userDetails.newYorkMediaUserID = id; window.dataLayer = window.dataLayer || []; window.dataLayer.unshift({ event: ‘dataLayer-initialized’, userDetails: userDetails, pageDetails: { author: _nymGtmPage.authors || getMeta(‘author’), contentChannel: _nymGtmPage.contentChannel, featureTypes: _nymGtmPage.featureTypes, headline: _nymGtmPage.headline, magazineIssueDate: _nymGtmPage.magazineIssueDate, onSitePromotion: _nymGtmPage.onSitePromotion, originalPublishDate: _nymGtmPage.originalPublishDate, originalPublishDateISO: _nymGtmPage.originalPublishDateISO, pageType: _nymGtmPage.pageType || getMeta(‘type’), pageUri: _nymGtmPage.pageUri || h && h.getAttribute(‘data-uri’), publishDate: _nymGtmPage.publishDate, publishDateISO: _nymGtmPage.publishDateISO, syndicatedFrom: _nymGtmPage.syndicatedFrom, tags: _nymGtmPage.tags, updatedDate: _nymGtmPage.updatedDate, updatedDateISO: _nymGtmPage.updatedDateISO, vertical: _nymGtmPage.vertical || getMeta(‘vertical’), wordCount: _nymGtmPage.wordCount } }); (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({‘gtm.start’: new Date().getTime(),event:’gtm.js’});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!=’dataLayer’?’&l=’+l:”;j.async=true;j.src= ‘https://www.googletagmanager.com/gtm.js?id=’+i+dl;f.parentNode.insertBefore(j,f); })(window,document,’script’,’dataLayer’,’GTM-NL7LR9Z’); } if (id) { getUserCount(function(userDetails) { userDetails.loyaltyLevel = getUserLoyaltyLevel(); userDetails.sessionCount = getUserVisitCount(); loadPermutive(userDetails); load(userDetails); }); } else { getUserCount(function(userDetails) { userDetails.loyaltyLevel = getUserLoyaltyLevel(); userDetails.visitCount = getUserVisitCount(); loadPermutive(userDetails); (new Fingerprint2({excludeJsFonts: true, excludeFlashFonts: true, excludeCanvas: true, excludeWebGL: true})).get(function (fp) { var now = Date.now(); id = fp + ‘.’ + now; document.cookie = k + id + ‘; expires=’ + (new Date(now + 20 * 31536000000)).toGMTString() + ‘; path=/’; load(userDetails); }); }) } }).call(this); ]]]]]]>]]]]>]]> Visit Intelligencer  portfolio

Drag Is Back, Baby!

And with it, a kaleidoscope of feelings about what comes next. By Andrew Nguyen Visit The Cut

SNL’s Opera Man Sings What We’re All Thinking About the End of Game of Thrones

Visit Vulture Visit The Strategist  Visit Curbed  Visit Grub Street  -1?n=n.substring(0,r):n.indexOf(“?”)>-1?n+=”&edit=true”:n+=”?edit=true”,t.assign(n)}Object.defineProperty(n,”__esModule”,{value:!0}),n.default=r},190:function(t,n,e){function r(t){return t?(t=o(t))===u||t===-u?(t<0?-1:1)*i:t===t?t:0:0===t?t:0}var o=e(86),u=1/0,i=1.7976931348623157e308;t.exports=r},211:function(t,n){function e(t){return t!==t}t.exports=e},212:function(t,n){function e(t,n,e){for(var r=e-1,o=t.length;++r-1}var o=e(142),u=e(44),i=e(5),c=e(51),f=e(213),a=Math.max;t.exports=r},740:function(t,n,e){“use strict”;function r(t){return t&&t.__esModule?t:{default:t}}function o(){var t=document.querySelector(“.clay-kiln-logo”);t&&t.classList.add(“show”)}function u(){document.addEventListener(“keydown”,function(t){var n=(0,a.default)(t);(0,c.default)([“c”,”l”,”a”,”y”],n)&&!0===t.shiftKey?p+=n:p=””,”clay”===p?o():p.length>4&&(0,c.default)(p,”clay”)?(0,l.default)():p.length>4&&(p=””)}),document.addEventListener(“keyup”,function(){“clay”===p&&(0,l.default)()})}Object.defineProperty(n,”__esModule”,{value:!0});var i=e(7),c=r(i);n.default=u;var f=e(138),a=r(f),s=e(174),l=r(s),p=””},75:function(t,n){function e(t,n){return function(e){return t(n(e))}}t.exports=e},86:function(t,n,e){function r(t){if(“number”==typeof t)return t;if(u(t))return i;if(o(t)){var n=”function”==typeof t.valueOf?t.valueOf():t;t=o(n)?n+””:n}if(“string”!=typeof t)return 0===t?t:+t;t=t.replace(c,””);var e=a.test(t);return e||s.test(t)?l(t.slice(2),e?2:8):f.test(t)?i:+t}var o=e(4),u=e(62),i=NaN,c=/^s+|s+$/g,f=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,s=/^0o[0-7]+$/i,l=parseInt;t.exports=r},99:function(t,n){function e(t,n,e,r){for(var o=t.length,u=e+(r?1:-1);r?u–:++u]]]]>]]> {window.setTimeout(()=>e(“Timed out in 2000 ms.”),2e3)})]).then(t=>{let e=t.global;return e?{standardArticleCount:e.Article||0,featureArticleCount:e.Feature||0,magazineArticleCount:e.Magazine||0,totalArticleCount:e.total||0}:{}}).catch(t=>(log(“error”,`Error retrieving user visit data: ${t.message}`),{})):Promise.resolve({})}function initialReport(t){publicVisitState=t,initializeEventsFromDom(t),module.exports.reportNow(),document.addEventListener(“mouseleave”,function(t){t.clientY<0&&module.exports.reportNow()},!1)}function initGtm(t,e){const i=!!document.head.querySelector(".head-gtm");initializedOnLoad||(initializedOnLoad=!0,i?visit.onceReady(initialReport):getArticleCounts(e).then(e=>{visit.onceReady(function(i){initializeDataLayer(i,e),initializeGtm(t),initialReport(i)})}))}function reportCustomEvent(t,e){var i=t.category,n=t.action,a=t.label,r={event:”universalCustomEvent”,customEventCategory:i&&i.trim(),customEventAction:n&&n.trim(),customEventLabel:a&&a.trim()};e&&(r=Object.assign(r,e)),reportNow(r)}window.dataLayer=window.dataLayer||[],module.exports.init=initGtm,module.exports.reportNow=reportNow,module.exports.reportSoon=debounceReportNow.call(void 0),module.exports.reportCustomEvent=reportCustomEvent,module.exports.initializeElement=initializeElement; }).call(this)}).call(this,”/services/client/gtm.js”)}, {“4″:4,”5″:5,”8″:8,”64″:64,”66″:66,”69″:69,”102″:102,”121″:121,”158″:158,”160″:160,”238″:238,”322”:322}]; window.modules[“4”] = [function(require,module,exports){“use strict”;var domify=require(354),_each=require(322),_includes=require(67);function uri(){var e=document.location;return e.hostname+e.pathname}function pageUri(){return document.firstElementChild.getAttribute(“data-uri”)}function find(e,t){return t||(t=e,e=document),e.querySelector(t)}function findAll(e,t){return t||(t=e,e=document),e.querySelectorAll(t)}function getFirstChildElement(e){for(var t=e.firstChild;t&&1!==t.nodeType;)t=t.nextSibling;return t}function matches(e,t){var r,n,o;if(e.matches)return e.matches(t);for(n=(r=e.parentElement)?r.querySelectorAll(t):[],o=0;n[o]&&n[o]!==e;)o++;return!!n[o]}function closest(e,t){var r=e;if(!t||”string”!=typeof t)throw new Error(“Please specify a selector to match against!”);for(;r&&!matches(r,t);)r=r.parentNode;return r||null}function prependChild(e,t){e.firstChild?e.insertBefore(t,e.firstChild):e.appendChild(t)}function insertBefore(e,t){e.parentNode&&e.parentNode.insertBefore(t,e)}function insertAfter(e,t){e.parentNode&&e.parentNode.insertBefore(t,e.nextSibling)}function clearChildren(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function removeElement(e){e.parentNode.removeChild(e)}function preventDefault(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function replaceElement(e,t){var r=e.parentNode;r&&r.replaceChild(t,e)}function wrapElements(e,t){var r=document.createElement(t);return e=e instanceof HTMLElement?[e]:Array.prototype.slice.call(e),_each(e,function(e){e.parentNode.removeChild(e),r.appendChild(e)}),r}function unwrapElements(e,t){for(var r=t.childNodes[0];r;)e.appendChild(r),r=t.childNodes[0];e.removeChild(t)}function createRemoveNodeHandler(e,t){return function(r,n){r.forEach(function(r){_includes(r.removedNodes,e)&&(t(),n.disconnect())})}}function onRemove(e,t){new MutationObserver(this.createRemoveNodeHandler(e,t)).observe(e.parentNode,{childList:!0})}function getPos(e){var t=e.getBoundingClientRect(),r=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop;return{top:t.top+r,bottom:t.top+t.height+r,height:t.height}}module.exports.create=domify,module.exports.uri=uri,module.exports.pageUri=pageUri,module.exports.find=find,module.exports.findAll=findAll,module.exports.matches=matches,module.exports.closest=closest,module.exports.getFirstChildElement=getFirstChildElement,module.exports.getPos=getPos,module.exports.prependChild=prependChild,module.exports.insertBefore=insertBefore,module.exports.insertAfter=insertAfter,module.exports.replaceElement=replaceElement,module.exports.removeElement=removeElement,module.exports.clearChildren=clearChildren,module.exports.wrapElements=wrapElements,module.exports.unwrapElements=unwrapElements,module.exports.preventDefault=preventDefault,module.exports.createRemoveNodeHandler=createRemoveNodeHandler,module.exports.onRemove=onRemove; }, {“67″:67,”322″:322,”354”:354}]; window.modules[“5”] = [function(require,module,exports){“use strict”;const $window=window,$document=document,_filter=require(156),_map=require(73),_invokeMap=require(1017),_assign=require(160),_throttle=require(60),Eventify=require(186);var Visible,VisibleEvent,primaryContentEl,list=[];function setPrimaryContent(e){e&&(primaryContentEl=e)}function isBelowPrimaryContent(e){var t=primaryContentEl&&primaryContentEl.getBoundingClientRect(),i=e&&e.getBoundingClientRect();return!!(t&&i&&t.bottom=e.shownThreshold&&!e.seen?(e.seen=!0,setTimeout(function(){e.trigger(“shown”,new VisibleEvent(“shown”,t))},15)):(!i||n=0&&t.left>=0&&t.bottom<=($window.innerHeight||$document.documentElement.clientHeight)&&t.right=n.top&&i.left>=n.left&&i.bottom<=n.bottom&&i.right-1*i&&t.top1&&(r+=getLinearSpacialHash(o,Math.floor(t/n),i-1,n)),r}function getVerticallyVisiblePixels(e,t){return min(t,max(e.bottom,0))-min(max(e.top,0),t)}function getPageOffset(e){for(var t=e.offsetLeft,i=e.offsetTop;e=e.offsetParent;)t+=e.offsetLeft,i+=e.offsetTop;return{left:t,top:i}}function watchForAny(e,t){var i,n;return e=e.split(","),n=_filter(_map(e,function(e){return(i=$document.querySelector(e))&&new Visible(i).on("shown",function(){_invokeMap(n,"destroy"),t()})}))}(Visible=function(e,t){t=t||{},this.el=e,this.seen=!1,this.preload=!1,this.preloadThreshold=t&&t.preloadThreshold||0,this.shownThreshold=t&&t.shownThreshold||0,this.hiddenThreshold=t&&min(t.shownThreshold,t.hiddenThreshold)||0,this.el&&(list.push(this),updateVisibilityForItem(this))}).prototype={destroy:function(){var e=list.indexOf(this);e>-1&&list.splice(e,1)}},Eventify.enable(Visible.prototype),VisibleEvent=function(e,t){this.type=e,_assign(this,t)},$document.addEventListener(“scroll”,_throttle(updateVisibility,200)),module.exports.getPageOffset=getPageOffset,module.exports.getLinearSpacialHash=getLinearSpacialHash,module.exports.getVerticallyVisiblePixels=getVerticallyVisiblePixels,module.exports.getViewportHeight=getViewportHeight,module.exports.getViewportWidth=getViewportWidth,module.exports.isElementNotHidden=isElementNotHidden,module.exports.isElementInViewport=isElementInViewport,module.exports.isElementInsideAnother=isElementInsideAnother,module.exports.watchForAny=watchForAny,module.exports.Visible=Visible,module.exports.setPrimaryContent=setPrimaryContent,module.exports.isBelowPrimaryContent=isBelowPrimaryContent,module.exports.updateVisibility=updateVisibility; }, {“60″:60,”73″:73,”156″:156,”160″:160,”186″:186,”1017”:1017}]; window.modules[“7”] = [function(require,module,exports){“use strict”;const Eventify=require(186),auth0=require(447),store=require(138),isProd=require(9)(),queryString=require(108),sentry=require(80),_get=require(10),AUTH0_CLIENT_ID=isProd?”l6GN9FG2cvg2W2e4a7XoOd8WCeiI84Hk”:”lj0likzfa5GpE06fJxVKcUXxlt3YN76Q”,AUTH0_DOMAIN=isProd?”login.nymag.com”:”login.dev.nymag.com”,AUTH0_AUDIENCE=isProd?”newyorkmedia.auth0.com”:”nymedia.auth0.com”,AUTH0_DB=isProd?”nymag”:”nymag-qa”,AUTH0_REALM=AUTH0_DB,AUTH0_AUTH=”auth0:access_token”,AUTH0_PROFILE=”auth0:profile”,AUTH0_EXPIRATION=”auth0:expiration”,AUTH0_EXPIRATION_VALUE=72e6,USER_LAST_VISIT=”LastLogIn”,cookie=require(64),nymcid=cookie.get(“nymcid”),firstNymcid=cookie.get(“first-nymcid”),enableLog=!isProd||document.location.search.match(“auth0Debug”),webAuth=new auth0.WebAuth({clientID:AUTH0_CLIENT_ID,domain:AUTH0_DOMAIN,redirectUri:document.location.origin+”/login/”,audience:`https://${AUTH0_AUDIENCE}/api/v2/`,scope:”openid profile email read:current_user update:current_user_metadata”,responseType:”token id_token”,nonce:”NONCE”,state:”OPAQUE_VALUE”}),MAX_32_BIT=2147483647;let tokenRenewalTimeout;function authlog(e){enableLog&&console.log(e)}function isAuthenticated(){return!!store.get(AUTH0_AUTH)}function managementApi(){const e=store.get(AUTH0_AUTH);return new auth0.Management({domain:AUTH0_DOMAIN,token:e})}function updateUserAttributes(e){return new Promise((t,o)=>{managementApi().patchUserAttributes(getUserID(),e,(e,r)=>{e&&401===e.statusCode&&”Unauthorized”===e.code&&o({message:”Your session has expired. For your security, please sign in again.”}),r&&t({status:200})})})}function getUserID(){const e=store.get(AUTH0_PROFILE);return e&&e.sub}function getUserName(){const e=store.get(AUTH0_PROFILE);return e&&e.name}function getEmail(){const e=store.get(AUTH0_PROFILE);return e&&e.email}function getUserMetadata(){const e=store.get(AUTH0_PROFILE);return e&&e[“http://nymag.com/user_metadata”]}function getUserLastLogInData(){return store.get(USER_LAST_VISIT)}function getAppMetadata(){const e=store.get(AUTH0_PROFILE);return e&&e[“http://nymag.com/app_metadata”]}function getTalkJwt(){const e=store.get(AUTH0_PROFILE);return e&&e[“http://nymag.com/coral_talk”]}function isSubscriber(){const e=getAppMetadata();return!!e&&e.has_subscription}function showLogin(e=””){webAuth.authorize({redirectUri:`${document.location.origin}/login/?redirectUri=${encodeURIComponent(e)||document.location.href||””}`})}function showLoginSubscription(e){webAuth.authorize({redirectUri:e})}function setSession(e,t,o){store.set(AUTH0_AUTH,e.accessToken,o),store.set(AUTH0_PROFILE,t,o),store.set(AUTH0_EXPIRATION,o,o),scheduleRenewal(o)}function authorizeWithSocial(e){const t=document.location.origin+”/login/?redirectUri=”+encodeURIComponent(document.location.href);webAuth.authorize({connection:String(e),redirectUri:t})}function getLastIdentity(){return getUserInfo().then(e=>{const t=_get(e,”identities”);return!!t&&t.slice(t.length-1)[0]}).catch(e=>console.log(e))}function login(e,t,o){let r,n;if(e)return o?o(e):void 0;r=1e3*t.expiresIn+(new Date).getTime(),setSession(t,n=t.idTokenPayload,r),module.exports.trigger(“login”,n,r),o&&o()}function scheduleRenewal(e){const t=e&&Math.min(e-Date.now(),MAX_32_BIT);e&&t>0&&(tokenRenewalTimeout=setTimeout(()=>webAuth.checkSession({timeout:15e3},login),t))}function clearLocalSession(){authlog(“clearing local store”),clearTimeout(tokenRenewalTimeout),store.remove(AUTH0_AUTH),store.remove(AUTH0_PROFILE),store.remove(AUTH0_EXPIRATION),store.remove(USER_LAST_VISIT)}function logout(){authlog(“auth0 logging out”),clearLocalSession(),window.sessionStorage.removeItem(“resubInfo”),webAuth.logout({clientId:AUTH0_CLIENT_ID,returnTo:document.location.origin+”/logout/?redirectUri=”+document.location.origin+document.location.pathname},function(e){e||module.exports.trigger(“logout”)})}function triggerPasswordReset(e){return new Promise((t,o)=>{webAuth.changePassword({email:e,connection:AUTH0_DB},(e,r)=>{e&&o(e),t(r)})})}function getUserByEmail(e,t){const o=new URLSearchParams({email:e});return fetch(`https://${t.host}/_user/find-by-email?${o}`).then(e=>e.json()).then(e=>e).catch(e=>console.log(e))}function createUser({email:e,password:t}){return new Promise((o,r)=>{webAuth.signup({email:e,password:t,connection:AUTH0_DB},(e,t)=>{e?r(e):o(t)})})}function loginUser({email:e,password:t,redirectUri:o}){const r=queryString.stringify({redirectUri:o||document.location.href});return o=`${document.location.origin}/login/?${r}`,new Promise((r,n)=>{webAuth.login({email:e,password:t,realm:AUTH0_REALM,redirectUri:o},(e,t)=>{e?(console.log(“err is”,e),n(e)):r(t)})})}function refresh(){return new Promise((e,t)=>{webAuth.checkSession({},(o,r)=>{if(o){if(configureSentryScope(),”login_required”==o.error)return getUserInfo(window.location).then(t=>{const o={email:t.email,email_verified:t.email_verified,name:t.name,nickname:t.nickname,picture:t.picture,updated_at:t.updated_at,sub:t.user_id,”http://nymag.com/user_metadata”:t.user_metadata,”http://nymag.com/app_metadata”:t.app_metadata},r=store.get(AUTH0_PROFILE),n=Object.assign({},r,o);return store.set(AUTH0_PROFILE,n),store.set(USER_LAST_VISIT,new Date),e()}).catch(e=>{const o=e instanceof Error?e:new Error(e.code||”Unknown Non-Error Response”),r={tags:{authStage:”getUserInfo”},extra:{auth0_error_payload:e,auth0_error_payload_original_response:_get(e,”original.response”)}};sentry.captureManualError(o,r),t(e)});{const e=o instanceof Error?o:new Error(o.code||”Unknown Non-Error Response”),r={tags:{authStage:”checkSession”},extra:{auth0_error_payload:o,auth0_error_payload_original_response:_get(o,”original.response”)}};sentry.captureManualError(e,r),authlog(“silent auth: unknown error: “+o.error),t(o)}}let{idTokenPayload:n={}}=r||{},i=(r.expiresIn?1e3*r.expiresIn:AUTH0_EXPIRATION_VALUE)+(new Date).getTime();store.set(AUTH0_PROFILE,n),store.set(AUTH0_AUTH,r.accessToken,i),store.set(USER_LAST_VISIT,new Date),module.exports.trigger(“refresh”),e()})})}function load(){isAuthenticated()?setTimeout(()=>{module.exports.trigger(“init”)},0):webAuth.checkSession({},function(e,t){e?(authlog(“checkSession err : “+e.error),”login_required”==e.error?(authlog(“login_required so check hash for creds”),webAuth.parseHash(function(e,t){authlog(“processing parseHash result”),e||!t?(authlog(“Parse hash: no token found: “),module.exports.trigger(“init”)):login(e,t,()=>{module.exports.trigger(“init”)})})):(clearLocalSession(),module.exports.trigger(“init”))):(authlog(“valid session found on checkSession”),store.set(USER_LAST_VISIT,new Date),login(e,t,()=>{module.exports.trigger(“init”)}))})}function isEmailVerified(){const e=store.get(AUTH0_PROFILE);return!!e&&e.email_verified}function updateDisplayName(e,t){const o=e.toLowerCase(),r=queryString.stringify({displayName:o}),n=`https://${t.host}/_user/check-displayname?${r}`;return fetch(n).then(e=>e.text()).then(e=>{if(“ok”!==e)return{message:e};return updateUserAttributes({user_metadata:{displayName:o}})})}function getUserInfo(){return new Promise((e,t)=>{managementApi().getUser(getUserID(),(o,r)=>{o&&t(o),r&&e(r)})})}function configureSentryScope(){sentry.configureScope(e=>{e.clear(),e.setUser({nymcid:nymcid,firstNymcid:firstNymcid,username:`${getUserName()}`}),e.setTag(“auth0AccountID”,`${getUserID()}`)})}Eventify.enable(module.exports),module.exports.isAuthenticated=isAuthenticated,module.exports.getUserID=getUserID,module.exports.getEmail=getEmail,module.exports.getUserByEmail=getUserByEmail,module.exports.getUserMetadata=getUserMetadata,module.exports.getAppMetadata=getAppMetadata,module.exports.getTalkJwt=getTalkJwt,module.exports.isSubscriber=isSubscriber,module.exports.showLogin=showLogin,module.exports.showLoginSubscription=showLoginSubscription,module.exports.logout=logout,module.exports.triggerPasswordReset=triggerPasswordReset,module.exports.createUser=createUser,module.exports.loginUser=loginUser,module.exports.refresh=refresh,module.exports.getUserLastLogInData=getUserLastLogInData,module.exports.isEmailVerified=isEmailVerified,module.exports.updateDisplayName=updateDisplayName,module.exports.getUserInfo=getUserInfo,module.exports.updateUserAttributes=updateUserAttributes,module.exports.authorizeWithSocial=authorizeWithSocial,module.exports.getLastIdentity=getLastIdentity,authlog(“Loading auth0 – initial localStorage state”),load(); }, {“9″:9,”10″:10,”64″:64,”80″:80,”108″:108,”138″:138,”186″:186,”447”:447}]; window.modules[“8”] = [function(require,module,exports){(function (process){(function (){ “use strict”;const clayLog=require(208),_defaults=require(1011);let sitesLogInstance,navigatorReference;function init(e,s){var n={};”undefined”!=typeof window&&void 0===window.process?sitesLogInstance=null:(e&&(n.sitesVersion=e),s&&(n.browserVersion=navigatorReference.userAgent),clayLog.init({name:”sites”,meta:n}),sitesLogInstance=clayLog.getLogger())}function setup(e){return e=_defaults({},e,{file:”File not specified! Please declare a file”}),sitesLogInstance?clayLog.meta(e,sitesLogInstance):console.log}process.versions&&process.versions.node||(navigatorReference=navigator,init(null,!0)),module.exports.init=init,module.exports.setup=setup,module.exports.assignNavigator=function(e){navigatorReference=e},module.exports.assignLogInstance=function(e){sitesLogInstance=e}; }).call(this)}).call(this,require(26))}, {“26″:26,”208″:208,”1011”:1011}]; window.modules[“9”] = [function(require,module,exports){“use strict”;const{isProduction:isProduction}=require(46);module.exports=((o=window.location.hostname)=>isProduction(o)); }, {“46”:46}]; window.modules[“10”] = [function(require,module,exports){var baseGet=require(859);function get(e,t,r){var a=null==e?void 0:baseGet(e,t);return void 0===a?r:a}module.exports=get; }, {“859”:859}]; window.modules[“20”] = [function(require,module,exports){(function (process){(function (){ “use strict”;const getJSONP=require(748),_defaults=require(1011);function authenticate(t){return t.headers.Authorization=”Token “+window.process.env.CLAY_ACCESS_KEY,t.credentials=”same-origin”,t}function addFakeCallback(){return(“&callback=cb”+Math.random()).replace(“.”,””)}function checkStatus(t){if(t.status>=200&&t.status<300)return t;{const e=new Error(t.statusText);throw e.response=t,e}}require(231),module.exports.get=function(t,e){const n=_defaults({method:"GET"},e);return fetch(t,n).then(checkStatus).then(function(t){return t.json()})},module.exports.getJSONP=function(t){return new Promise(function(e,n){getJSONP(t+addFakeCallback(),function(t,o){t?n(t):e(o)})})},module.exports.getHTML=function(t){return fetch(t).then(checkStatus).then(function(t){return t.text()})},module.exports.put=function(t,e,n){const o={method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)};return n&&authenticate(o),fetch(t,o).then(checkStatus).then(function(t){return t.json()})},module.exports.post=function(t,e,n){const o={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)};return n&&authenticate(o),fetch(t,o).then(checkStatus).then(function(t){return t.json()})},module.exports.patch=function(t,e,n){const o={method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)};return n&&authenticate(o),fetch(t,o).then(checkStatus).then(function(t){return t.json()})},module.exports.purge=function(t){return fetch(t,{method:"PURGE",headers:{"Content-Type":"application/json",Method:"PURGE"}}).then(checkStatus).then(function(t){return t.json()})},module.exports.crummashiePurge=function(t){const e={method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:`url=${encodeURIComponent(t)}`};return fetch("http://crummashie.prd.nymetro.com/invalidate/",e).then(checkStatus)},module.exports.checkStatus=checkStatus; }).call(this)}).call(this,require(26))}, {"26":26,"231":231,"748":748,"1011":1011}]; window.modules["26"] = [function(require,module,exports){var cachedSetTimeout,cachedClearTimeout,process=module.exports={};function defaultSetTimout(){throw new Error("setTimeout has not been defined")}function defaultClearTimeout(){throw new Error("clearTimeout has not been defined")}function runTimeout(e){if(cachedSetTimeout===setTimeout)return setTimeout(e,0);if((cachedSetTimeout===defaultSetTimout||!cachedSetTimeout)&&setTimeout)return cachedSetTimeout=setTimeout,setTimeout(e,0);try{return cachedSetTimeout(e,0)}catch(t){try{return cachedSetTimeout.call(null,e,0)}catch(t){return cachedSetTimeout.call(this,e,0)}}}function runClearTimeout(e){if(cachedClearTimeout===clearTimeout)return clearTimeout(e);if((cachedClearTimeout===defaultClearTimeout||!cachedClearTimeout)&&clearTimeout)return cachedClearTimeout=clearTimeout,clearTimeout(e);try{return cachedClearTimeout(e)}catch(t){try{return cachedClearTimeout.call(null,e)}catch(t){return cachedClearTimeout.call(this,e)}}}!function(){try{cachedSetTimeout="function"==typeof setTimeout?setTimeout:defaultSetTimout}catch(e){cachedSetTimeout=defaultSetTimout}try{cachedClearTimeout="function"==typeof clearTimeout?clearTimeout:defaultClearTimeout}catch(e){cachedClearTimeout=defaultClearTimeout}}();var currentQueue,queue=[],draining=!1,queueIndex=-1;function cleanUpNextTick(){draining&&currentQueue&&(draining=!1,currentQueue.length?queue=currentQueue.concat(queue):queueIndex=-1,queue.length&&drainQueue())}function drainQueue(){if(!draining){var e=runTimeout(cleanUpNextTick);draining=!0;for(var t=queue.length;t;){for(currentQueue=queue,queue=[];++queueIndex1)for(var r=1;r1e8?0:e}function getSiteBaseUrl(e){const t=e.site||{},r=t.protocol||”http”,n=t.host,o=(t.port||”80″).toString();var i=””;return”80″!==o&&”443″!==o&&(i=`:${o}`),`${r}://${n}${i}${t.path||””}`}function getSiteRootHost(e){const t=_get(e,”site.host”,”nymag.com”),r=t.split(“.”);return(t.match(/.co.uk$/)?r[r.length-3]+”.”:””)+r[r.length-2]+”.”+r[r.length-1]}function isPublishedVersion(e){return e.indexOf(publishedVersionSuffix)===e.length-10}function ensurePublishedVersion(e){return isPublishedVersion(e)?e:e.split(“@”)[0]+publishedVersionSuffix}function isInstance(e){return e.indexOf(“/instances/”)>-1}function isPage(e){return e.indexOf(“/_pages/”)>-1}function kilnUrlToPageUrl(e){return e.indexOf(kilnUrlParam)>-1?decodeURIComponent(e.split(kilnUrlParam).pop()):e}function urlToCanonicalUrl(e){return kilnUrlToPageUrl(e).split(“?”)[0].split(“#”)[0].replace(“/amp/”,”/”)}function getInstanceId(e){if(!e)return null;if(!isInstance(e))return null;const t=e.split(“/”);return t[t.length-1].replace(publishedVersionSuffix,””)}function prefixElasticIndex(e){const t=window.process.env.ELASTIC_PREFIX;return t?e.split(“,”).map(e=>`${t}_${e}`.trim()).join(“,”):e}function normalizeTags(e=[]){return e.map(({text:e})=>removeNonAlphanumericCharacters(e)).filter(Boolean)}function crosspostedFromSite(e,t){var r;if(e.site!==t&&[“di”,”vulture”,”selectall”,”wwwthecut”,”grubstreet”,”strategist”,”intelligencer”,”curbed”].includes(e.site)&&(r=!0),”nymag”!==t&&”copy”!==e.syndicationStatus||(r=!1),r)return e.site}function isSponsored(e){return e.featureTypes&&e.featureTypes[“Sponsor Story”]}function keyObjectToArray(e){return _reduce(e,(e,t,r)=>(!e[r]&&t&&e.push(r),e),[])}function valuesToOptions(e){return Object.keys(e).map(t=>`${e[t]}`).sort().join(“”)}function not(e){return!e}function isProduction(e){return!/(.aws.|dev.|localhost|stg.)/.test(e)}function isComponentInstance(e,t){return”string”==typeof e&&e.indexOf(`/_components/${t}/instances/`)>-1}function findComponentRef(e,t){let r;return function e(n){“object”==typeof n&&null!==n?isComponentInstance(n._ref,t)?r=n._ref:_each(n,e):isComponentInstance(n,t)&&(r=n)}(e),r}function findComponentData(e,t){let r;return function e(n){“object”==typeof n&&null!==n&&(isComponentInstance(n._ref,t)?delete(r=_cloneDeep(n))._ref:_each(n,e))}(e),r}function isConcertAds(e){return sitesWithConcert.includes(e)}function notIncludes(e,t){return!(!e||!t)&&!e.includes(t)}module.exports.isFieldEmpty=isFieldEmpty,module.exports.has=has,module.exports.replaceVersion=replaceVersion,module.exports.uriToUrl=uriToUrl,module.exports.urlToUri=urlToUri,module.exports.canonicalUrlToUri=canonicalUrlToUri,module.exports.formatStart=formatStart,module.exports.getSiteBaseUrl=getSiteBaseUrl,module.exports.getSiteRootHost=getSiteRootHost,module.exports.isPublishedVersion=isPublishedVersion,module.exports.ensurePublishedVersion=ensurePublishedVersion,module.exports.isInstance=isInstance,module.exports.isPage=isPage,module.exports.urlToCanonicalUrl=urlToCanonicalUrl,module.exports.getInstanceId=getInstanceId,module.exports.prefixElasticIndex=prefixElasticIndex,module.exports.normalizeTags=normalizeTags,module.exports.crosspostedFromSite=crosspostedFromSite,module.exports.isSponsored=isSponsored,module.exports.keyObjectToArray=keyObjectToArray,module.exports.valuesToOptions=valuesToOptions,module.exports.not=not,module.exports.isProduction=isProduction,module.exports.findComponentRef=findComponentRef,module.exports.findComponentData=findComponentData,module.exports.isComponentInstance=isComponentInstance,module.exports.isConcertAds=isConcertAds,module.exports.notIncludes=notIncludes; }).call(this)}).call(this,require(26))}, {“10″:10,”26″:26,”38″:38,”62″:62,”74″:74,”91″:91,”104″:104,”107″:107,”109″:109,”110″:110,”113″:113,”172″:172,”205″:205,”322″:322,”1020″:1020,”1022”:1022}]; window.modules[“52”] = [function(require,module,exports){!function(e,t){“object”==typeof exports&&”undefined”!=typeof module?module.exports=t():”function”==typeof define&&define.amd?define(t):e.moment=t()}(this,function(){“use strict”;var e,t;function n(){return e.apply(null,arguments)}function s(e){return e instanceof Array||”[object Array]”===Object.prototype.toString.call(e)}function i(e){return null!=e&&”[object Object]”===Object.prototype.toString.call(e)}function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function a(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(r(e,t))return!1;return!0}function o(e){return void 0===e}function u(e){return”number”==typeof e||”[object Number]”===Object.prototype.toString.call(e)}function l(e){return e instanceof Date||”[object Date]”===Object.prototype.toString.call(e)}function h(e,t){var n,s=[];for(n=0;n>>0;for(t=0;t0)for(n=0;n=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Ee(e,t,n){var s=7+t-n;return-((7+Ge(e,0,s).getUTCDay()-t)%7)+s-1}function Ae(e,t,n,s,i){var r,a,o=1+7*(t-1)+(7+n-s)%7+Ee(e,s,i);return oLe(e)?(r=e+1,a=o-Le(e)):(r=e,a=o),{year:r,dayOfYear:a}}function je(e,t,n){var s,i,r=Ee(e.year(),t,n),a=Math.floor((e.dayOfYear()-r-1)/7)+1;return a<1?s=a+Ie(i=e.year()-1,t,n):a>Ie(e.year(),t,n)?(s=a-Ie(e.year(),t,n),i=e.year()+1):(i=e.year(),s=a),{week:s,year:i}}function Ie(e,t,n){var s=Ee(e,t,n),i=Ee(e+1,t,n);return(Le(e)-s+i)/7}C(“w”,[“ww”,2],”wo”,”week”),C(“W”,[“WW”,2],”Wo”,”isoWeek”),L(“week”,”w”),L(“isoWeek”,”W”),A(“week”,5),A(“isoWeek”,5),ce(“w”,te),ce(“ww”,te,Q),ce(“W”,te),ce(“WW”,te,Q),ge([“w”,”ww”,”W”,”WW”],function(e,t,n,s){t[s.substr(0,1)]=Z(e)});function Ze(e,t){return e.slice(t,7).concat(e.slice(0,t))}C(“d”,0,”do”,”day”),C(“dd”,0,0,function(e){return this.localeData().weekdaysMin(this,e)}),C(“ddd”,0,0,function(e){return this.localeData().weekdaysShort(this,e)}),C(“dddd”,0,0,function(e){return this.localeData().weekdays(this,e)}),C(“e”,0,0,”weekday”),C(“E”,0,0,”isoWeekday”),L(“day”,”d”),L(“weekday”,”e”),L(“isoWeekday”,”E”),A(“day”,11),A(“weekday”,11),A(“isoWeekday”,11),ce(“d”,te),ce(“e”,te),ce(“E”,te),ce(“dd”,function(e,t){return t.weekdaysMinRegex(e)}),ce(“ddd”,function(e,t){return t.weekdaysShortRegex(e)}),ce(“dddd”,function(e,t){return t.weekdaysRegex(e)}),ge([“dd”,”ddd”,”dddd”],function(e,t,n,s){var i=n._locale.weekdaysParse(e,s,n._strict);null!=i?t.d=i:f(n).invalidWeekday=e}),ge([“d”,”e”,”E”],function(e,t,n,s){t[s]=Z(e)});var ze=”Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday”.split(“_”),$e=”Sun_Mon_Tue_Wed_Thu_Fri_Sat”.split(“_”),qe=”Su_Mo_Tu_We_Th_Fr_Sa”.split(“_”),Be=de,Je=de,Qe=de;function Xe(){function e(e,t){return t.length-e.length}var t,n,s,i,r,a=[],o=[],u=[],l=[];for(t=0;t<7;t++)n=c([2e3,1]).day(t),s=me(this.weekdaysMin(n,"")),i=me(this.weekdaysShort(n,"")),r=me(this.weekdays(n,"")),a.push(s),o.push(i),u.push(r),l.push(s),l.push(i),l.push(r);a.sort(e),o.sort(e),u.sort(e),l.sort(e),this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function Ke(){return this.hours()%12||12}function et(e,t){C(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function tt(e,t){return t._meridiemParse}C("H",["HH",2],0,"hour"),C("h",["hh",2],0,Ke),C("k",["kk",2],0,function(){return this.hours()||24}),C("hmm",0,0,function(){return""+Ke.apply(this)+T(this.minutes(),2)}),C("hmmss",0,0,function(){return""+Ke.apply(this)+T(this.minutes(),2)+T(this.seconds(),2)}),C("Hmm",0,0,function(){return""+this.hours()+T(this.minutes(),2)}),C("Hmmss",0,0,function(){return""+this.hours()+T(this.minutes(),2)+T(this.seconds(),2)}),et("a",!0),et("A",!1),L("hour","h"),A("hour",13),ce("a",tt),ce("A",tt),ce("H",te),ce("h",te),ce("k",te),ce("HH",te,Q),ce("hh",te,Q),ce("kk",te,Q),ce("hmm",ne),ce("hmmss",se),ce("Hmm",ne),ce("Hmmss",se),ye(["H","HH"],De),ye(["k","kk"],function(e,t,n){var s=Z(e);t[De]=24===s?0:s}),ye(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),ye(["h","hh"],function(e,t,n){t[De]=Z(e),f(n).bigHour=!0}),ye("hmm",function(e,t,n){var s=e.length-2;t[De]=Z(e.substr(0,s)),t[Se]=Z(e.substr(s)),f(n).bigHour=!0}),ye("hmmss",function(e,t,n){var s=e.length-4,i=e.length-2;t[De]=Z(e.substr(0,s)),t[Se]=Z(e.substr(s,2)),t[Ye]=Z(e.substr(i)),f(n).bigHour=!0}),ye("Hmm",function(e,t,n){var s=e.length-2;t[De]=Z(e.substr(0,s)),t[Se]=Z(e.substr(s))}),ye("Hmmss",function(e,t,n){var s=e.length-4,i=e.length-2;t[De]=Z(e.substr(0,s)),t[Se]=Z(e.substr(s,2)),t[Ye]=Z(e.substr(i))});var nt=z("Hours",!0);var st,it={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Ne,monthsShort:Pe,week:{dow:0,doy:6},weekdays:ze,weekdaysMin:qe,weekdaysShort:$e,meridiemParse:/[ap].?m?.?/i},rt={},at={};function ot(e,t){var n,s=Math.min(e.length,t.length);for(n=0;n=t&&ot(i,n)>=t-1)break;t–}r++}return st}(e)}function ft(e){var t,n=e._a;return n&&-2===f(e).overflow&&(t=n[ke]<0||n[ke]>11?ke:n[Me]<1||n[Me]>Te(n[ve],n[ke])?Me:n[De]<0||n[De]>24||24===n[De]&&(0!==n[Se]||0!==n[Ye]||0!==n[Oe])?De:n[Se]<0||n[Se]>59?Se:n[Ye]<0||n[Ye]>59?Ye:n[Oe]<0||n[Oe]>999?Oe:-1,f(e)._overflowDayOfYear&&(tMe)&&(t=Me),f(e)._overflowWeeks&&-1===t&&(t=be),f(e)._overflowWeekday&&-1===t&&(t=xe),f(e).overflow=t),e}var mt=/^s*((?:[+-]d{6}|d{4})-(?:dd-dd|Wdd-d|Wdd|ddd|dd))(?:(T| )(dd(?::dd(?::dd(?:[.,]d+)?)?)?)([+-]dd(?::?dd)?|s*Z)?)?$/,_t=/^s*((?:[+-]d{6}|d{4})(?:dddd|Wddd|Wdd|ddd|dd|))(?:(T| )(dd(?:dd(?:dd(?:[.,]d+)?)?)?)([+-]dd(?::?dd)?|s*Z)?)?$/,yt=/Z|[+-]dd(?::?dd)?/,gt=[[“YYYYYY-MM-DD”,/[+-]d{6}-dd-dd/],[“YYYY-MM-DD”,/d{4}-dd-dd/],[“GGGG-[W]WW-E”,/d{4}-Wdd-d/],[“GGGG-[W]WW”,/d{4}-Wdd/,!1],[“YYYY-DDD”,/d{4}-d{3}/],[“YYYY-MM”,/d{4}-dd/,!1],[“YYYYYYMMDD”,/[+-]d{10}/],[“YYYYMMDD”,/d{8}/],[“GGGG[W]WWE”,/d{4}Wd{3}/],[“GGGG[W]WW”,/d{4}Wd{2}/,!1],[“YYYYDDD”,/d{7}/],[“YYYYMM”,/d{6}/,!1],[“YYYY”,/d{4}/,!1]],wt=[[“HH:mm:ss.SSSS”,/dd:dd:dd.d+/],[“HH:mm:ss,SSSS”,/dd:dd:dd,d+/],[“HH:mm:ss”,/dd:dd:dd/],[“HH:mm”,/dd:dd/],[“HHmmss.SSSS”,/dddddd.d+/],[“HHmmss,SSSS”,/dddddd,d+/],[“HHmmss”,/dddddd/],[“HHmm”,/dddd/],[“HH”,/dd/]],pt=/^/?Date((-?d+)/i,vt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?s)?(d{1,2})s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)s(d{2,4})s(dd):(dd)(?::(dd))?s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]d{4}))$/,kt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Mt(e){var t,n,s,i,r,a,o=e._i,u=mt.exec(o)||_t.exec(o);if(u){for(f(e).iso=!0,t=0,n=gt.length;t6)&&(u=!0):null!=t.e?(i=t.e+r,(t.e<0||t.e>6)&&(u=!0)):i=r);s<1||s>Ie(n,r,a)?f(e)._overflowWeeks=!0:null!=u?f(e)._overflowWeekday=!0:(o=Ae(n,s,i,r,a),e._a[ve]=o.year,e._dayOfYear=o.dayOfYear)}(e),null!=e._dayOfYear&&(a=Yt(e._a[ve],i[ve]),(e._dayOfYear>Le(a)||0===e._dayOfYear)&&(f(e)._overflowDayOfYear=!0),s=Ge(a,0,e._dayOfYear),e._a[ke]=s.getUTCMonth(),e._a[Me]=s.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=o[t]=i[t];for(;t<7;t++)e._a[t]=o[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[De]&&0===e._a[Se]&&0===e._a[Ye]&&0===e._a[Oe]&&(e._nextDay=!0,e._a[De]=0),e._d=(e._useUTC?Ge:function(e,t,n,s,i,r,a){var o;return e<100&&e>=0?(o=new Date(e+400,t,n,s,i,r,a),isFinite(o.getFullYear())&&o.setFullYear(e)):o=new Date(e,t,n,s,i,r,a),o}).apply(null,o),r=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[De]=24),e._w&&void 0!==e._w.d&&e._w.d!==r&&(f(e).weekdayMismatch=!0)}}function bt(e){if(e._f!==n.ISO_8601)if(e._f!==n.RFC_2822){e._a=[],f(e).empty=!0;var t,s,i,r,a,o,u=””+e._i,l=u.length,h=0;for(i=H(e._f,e._locale).match(N)||[],t=0;t0&&f(e).unusedInput.push(a),u=u.slice(u.indexOf(s)+s.length),h+=s.length),W[r]?(s?f(e).empty=!1:f(e).unusedTokens.push(r),we(r,s,e)):e._strict&&!s&&f(e).unusedTokens.push(r);f(e).charsLeftOver=l-h,u.length>0&&f(e).unusedInput.push(u),e._a[De]0&&(f(e).bigHour=void 0),f(e).parsedDateParts=e._a.slice(0),f(e).meridiem=e._meridiem,e._a[De]=function(e,t,n){var s;if(null==n)return t;return null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((s=e.isPM(n))&&t<12&&(t+=12),s||12!==t||(t=0),t):t}(e._locale,e._a[De],e._meridiem),null!==(o=f(e).era)&&(e._a[ve]=e._locale.erasConvertYear(o,e._a[ve])),Ot(e),ft(e)}else St(e);else Mt(e)}function xt(e){var t=e._i,r=e._f;return e._locale=e._locale||ct(e._l),null===t||void 0===r&&""===t?_({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),v(t)?new p(ft(t)):(l(t)?e._d=t:s(r)?function(e){var t,n,s,i,r,a,o=!1;if(0===e._f.length)return f(e).invalidFormat=!0,void(e._d=new Date(NaN));for(i=0;i=0?Date.UTC(e+400,t,n)-ln:Date.UTC(e,t,n)}function fn(e,t){return t.erasAbbrRegex(e)}function mn(){var e,t,n=[],s=[],i=[],r=[],a=this.eras();for(e=0,t=a.length;e(r=Ie(e,s,i))&&(t=r),function(e,t,n,s,i){var r=Ae(e,t,n,s,i),a=Ge(r.year,0,r.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}.call(this,e,t,n,s,i))}C(“N”,0,0,”eraAbbr”),C(“NN”,0,0,”eraAbbr”),C(“NNN”,0,0,”eraAbbr”),C(“NNNN”,0,0,”eraName”),C(“NNNNN”,0,0,”eraNarrow”),C(“y”,[“y”,1],”yo”,”eraYear”),C(“y”,[“yy”,2],0,”eraYear”),C(“y”,[“yyy”,3],0,”eraYear”),C(“y”,[“yyyy”,4],0,”eraYear”),ce(“N”,fn),ce(“NN”,fn),ce(“NNN”,fn),ce(“NNNN”,function(e,t){return t.erasNameRegex(e)}),ce(“NNNNN”,function(e,t){return t.erasNarrowRegex(e)}),ye([“N”,”NN”,”NNN”,”NNNN”,”NNNNN”],function(e,t,n,s){var i=n._locale.erasParse(e,s,n._strict);i?f(n).era=i:f(n).invalidEra=e}),ce(“y”,oe),ce(“yy”,oe),ce(“yyy”,oe),ce(“yyyy”,oe),ce(“yo”,function(e,t){return t._eraYearOrdinalRegex||oe}),ye([“y”,”yy”,”yyy”,”yyyy”],ve),ye([“yo”],function(e,t,n,s){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[ve]=n._locale.eraYearOrdinalParse(e,i):t[ve]=parseInt(e,10)}),C(0,[“gg”,2],0,function(){return this.weekYear()%100}),C(0,[“GG”,2],0,function(){return this.isoWeekYear()%100}),_n(“gggg”,”weekYear”),_n(“ggggg”,”weekYear”),_n(“GGGG”,”isoWeekYear”),_n(“GGGGG”,”isoWeekYear”),L(“weekYear”,”gg”),L(“isoWeekYear”,”GG”),A(“weekYear”,1),A(“isoWeekYear”,1),ce(“G”,ue),ce(“g”,ue),ce(“GG”,te,Q),ce(“gg”,te,Q),ce(“GGGG”,re,K),ce(“gggg”,re,K),ce(“GGGGG”,ae,ee),ce(“ggggg”,ae,ee),ge([“gggg”,”ggggg”,”GGGG”,”GGGGG”],function(e,t,n,s){t[s.substr(0,2)]=Z(e)}),ge([“gg”,”GG”],function(e,t,s,i){t[i]=n.parseTwoDigitYear(e)}),C(“Q”,0,”Qo”,”quarter”),L(“quarter”,”Q”),A(“quarter”,7),ce(“Q”,J),ye(“Q”,function(e,t){t[ke]=3*(Z(e)-1)}),C(“D”,[“DD”,2],”Do”,”date”),L(“date”,”D”),A(“date”,9),ce(“D”,te),ce(“DD”,te,Q),ce(“Do”,function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),ye([“D”,”DD”],Me),ye(“Do”,function(e,t){t[Me]=Z(e.match(te)[0])});var gn=z(“Date”,!0);C(“DDD”,[“DDDD”,3],”DDDo”,”dayOfYear”),L(“dayOfYear”,”DDD”),A(“dayOfYear”,4),ce(“DDD”,ie),ce(“DDDD”,X),ye([“DDD”,”DDDD”],function(e,t,n){n._dayOfYear=Z(e)}),C(“m”,[“mm”,2],0,”minute”),L(“minute”,”m”),A(“minute”,14),ce(“m”,te),ce(“mm”,te,Q),ye([“m”,”mm”],Se);var wn=z(“Minutes”,!1);C(“s”,[“ss”,2],0,”second”),L(“second”,”s”),A(“second”,15),ce(“s”,te),ce(“ss”,te,Q),ye([“s”,”ss”],Ye);var pn,vn,kn=z(“Seconds”,!1);for(C(“S”,0,0,function(){return~~(this.millisecond()/100)}),C(0,[“SS”,2],0,function(){return~~(this.millisecond()/10)}),C(0,[“SSS”,3],0,”millisecond”),C(0,[“SSSS”,4],0,function(){return 10*this.millisecond()}),C(0,[“SSSSS”,5],0,function(){return 100*this.millisecond()}),C(0,[“SSSSSS”,6],0,function(){return 1e3*this.millisecond()}),C(0,[“SSSSSSS”,7],0,function(){return 1e4*this.millisecond()}),C(0,[“SSSSSSSS”,8],0,function(){return 1e5*this.millisecond()}),C(0,[“SSSSSSSSS”,9],0,function(){return 1e6*this.millisecond()}),L(“millisecond”,”ms”),A(“millisecond”,16),ce(“S”,ie,J),ce(“SS”,ie,Q),ce(“SSS”,ie,X),pn=”SSSS”;pn.length<=9;pn+="S")ce(pn,oe);function Mn(e,t){t[Oe]=Z(1e3*("0."+e))}for(pn="S";pn.length<=9;pn+="S")ye(pn,Mn);vn=z("Milliseconds",!1),C("z",0,0,"zoneAbbr"),C("zz",0,0,"zoneName");var Dn=p.prototype;function Sn(e){return e}Dn.add=Qt,Dn.calendar=function(e,t){1===arguments.length&&(arguments[0]?en(arguments[0])?(e=arguments[0],t=void 0):function(e){var t,n=i(e)&&!a(e),s=!1,o=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;tn.valueOf():n.valueOf()this.clone().month(5).utcOffset()},Dn.isLocal=function(){return!!this.isValid()&&!this._isUTC},Dn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},Dn.isUtc=jt,Dn.isUTC=jt,Dn.zoneAbbr=function(){return this._isUTC?”UTC”:””},Dn.zoneName=function(){return this._isUTC?”Coordinated Universal Time”:””},Dn.dates=M(“dates accessor is deprecated. Use date instead.”,gn),Dn.months=M(“months accessor is deprecated. Use month instead”,He),Dn.years=M(“years accessor is deprecated. Use year instead”,Ve),Dn.zone=M(“moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/”,function(e,t){return null!=e?(“string”!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}),Dn.isDSTShifted=M(“isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information”,function(){if(!o(this._isDSTShifted))return this._isDSTShifted;var e,t={};return w(t,this),(t=xt(t))._a?(e=t._isUTC?c(t._a):Nt(t._a),this._isDSTShifted=this.isValid()&&function(e,t,n){var s,i=Math.min(e.length,t.length),r=Math.abs(e.length-t.length),a=0;for(s=0;s0):this._isDSTShifted=!1,this._isDSTShifted});var Yn=x.prototype;function On(e,t,n,s){var i=ct(),r=c().set(s,t);return i[n](r,e)}function bn(e,t,n){if(u(e)&&(t=e,e=void 0),e=e||””,null!=t)return On(e,t,n,”month”);var s,i=[];for(s=0;s<12;s++)i[s]=On(e,s,n,"month");return i}function xn(e,t,n,s){"boolean"==typeof e?(u(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,u(t)&&(n=t,t=void 0),t=t||"");var i,r=ct(),a=e?r._week.dow:0,o=[];if(null!=n)return On(t,(n+a)%7,s,"day");for(i=0;i<7;i++)o[i]=On(t,(i+a)%7,s,"day");return o}Yn.calendar=function(e,t,n){var s=this._calendar[e]||this._calendar.sameElse;return O(s)?s.call(t,n):s},Yn.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(N).map(function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e}).join(""),this._longDateFormat[e])},Yn.invalidDate=function(){return this._invalidDate},Yn.ordinal=function(e){return this._ordinal.replace("%d",e)},Yn.preparse=Sn,Yn.postformat=Sn,Yn.relativeTime=function(e,t,n,s){var i=this._relativeTime[n];return O(i)?i(e,t,n,s):i.replace(/%d/i,e)},Yn.pastFuture=function(e,t){var n=this._relativeTime[e>0?”future”:”past”];return O(n)?n(t):n.replace(/%s/i,t)},Yn.set=function(e){var t,n;for(n in e)r(e,n)&&(O(t=e[n])?this[n]=t:this[“_”+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+”|”+/d{1,2}/.source)},Yn.eras=function(e,t){var s,i,r,a=this._eras||ct(“en”)._eras;for(s=0,i=a.length;s=0)return u[s]},Yn.erasConvertYear=function(e,t){var s=e.since11?n?”pm”:”PM”:n?”am”:”AM”},ht(“en”,{eras:[{since:”0001-01-01″,until:1/0,offset:1,name:”Anno Domini”,narrow:”AD”,abbr:”AD”},{since:”0000-12-31″,until:-1/0,offset:1,name:”Before Christ”,narrow:”BC”,abbr:”BC”}],dayOfMonthOrdinalParse:/d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===Z(e%100/10)?”th”:1===t?”st”:2===t?”nd”:3===t?”rd”:”th”)}}),n.lang=M(“moment.lang is deprecated. Use moment.locale instead.”,ht),n.langData=M(“moment.langData is deprecated. Use moment.localeData instead.”,ct);var Tn=Math.abs;function Nn(e,t,n,s){var i=zt(t,n);return e._milliseconds+=s*i._milliseconds,e._days+=s*i._days,e._months+=s*i._months,e._bubble()}function Pn(e){return e<0?Math.floor(e):Math.ceil(e)}function Rn(e){return 4800*e/146097}function Wn(e){return 146097*e/4800}function Cn(e){return function(){return this.as(e)}}var Un=Cn("ms"),Hn=Cn("s"),Fn=Cn("m"),Ln=Cn("h"),Vn=Cn("d"),Gn=Cn("w"),En=Cn("M"),An=Cn("Q"),jn=Cn("y");function In(e){return function(){return this.isValid()?this._data[e]:NaN}}var Zn=In("milliseconds"),zn=In("seconds"),$n=In("minutes"),qn=In("hours"),Bn=In("days"),Jn=In("months"),Qn=In("years");var Xn=Math.round,Kn={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};var es=Math.abs;function ts(e){return(e>0)-(e<0)||+e}function ns(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,s,i,r,a,o,u=es(this._milliseconds)/1e3,l=es(this._days),h=es(this._months),d=this.asSeconds();return d?(e=I(u/60),t=I(e/60),u%=60,e%=60,n=I(h/12),h%=12,s=u?u.toFixed(3).replace(/.?0+$/,""):"",i=d<0?"-":"",r=ts(this._months)!==ts(d)?"-":"",a=ts(this._days)!==ts(d)?"-":"",o=ts(this._milliseconds)!==ts(d)?"-":"",i+"P"+(n?r+n+"Y":"")+(h?r+h+"M":"")+(l?a+l+"D":"")+(t||e||u?"T":"")+(t?o+t+"H":"")+(e?o+e+"M":"")+(u?o+s+"S":"")):"P0D"}var ss=Ut.prototype;return ss.isValid=function(){return this._isValid},ss.abs=function(){var e=this._data;return this._milliseconds=Tn(this._milliseconds),this._days=Tn(this._days),this._months=Tn(this._months),e.milliseconds=Tn(e.milliseconds),e.seconds=Tn(e.seconds),e.minutes=Tn(e.minutes),e.hours=Tn(e.hours),e.months=Tn(e.months),e.years=Tn(e.years),this},ss.add=function(e,t){return Nn(this,e,t,1)},ss.subtract=function(e,t){return Nn(this,e,t,-1)},ss.as=function(e){if(!this.isValid())return NaN;var t,n,s=this._milliseconds;if("month"===(e=V(e))||"quarter"===e||"year"===e)switch(t=this._days+s/864e5,n=this._months+Rn(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Wn(this._months)),e){case"week":return t/7+s/6048e5;case"day":return t+s/864e5;case"hour":return 24*t+s/36e5;case"minute":return 1440*t+s/6e4;case"second":return 86400*t+s/1e3;case"millisecond":return Math.floor(864e5*t)+s;default:throw new Error("Unknown unit "+e)}},ss.asMilliseconds=Un,ss.asSeconds=Hn,ss.asMinutes=Fn,ss.asHours=Ln,ss.asDays=Vn,ss.asWeeks=Gn,ss.asMonths=En,ss.asQuarters=An,ss.asYears=jn,ss.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*Z(this._months/12):NaN},ss._bubble=function(){var e,t,n,s,i,r=this._milliseconds,a=this._days,o=this._months,u=this._data;return r>=0&&a>=0&&o>=0||r<=0&&a<=0&&o<=0||(r+=864e5*Pn(Wn(o)+a),a=0,o=0),u.milliseconds=r%1e3,e=I(r/1e3),u.seconds=e%60,t=I(e/60),u.minutes=t%60,n=I(t/60),u.hours=n%24,a+=I(n/24),o+=i=I(Rn(a)),a-=Pn(Wn(i)),s=I(o/12),o%=12,u.days=a,u.months=o,u.years=s,this},ss.clone=function(){return zt(this)},ss.get=function(e){return e=V(e),this.isValid()?this[e+"s"]():NaN},ss.milliseconds=Zn,ss.seconds=zn,ss.minutes=$n,ss.hours=qn,ss.days=Bn,ss.weeks=function(){return I(this.days()/7)},ss.months=Jn,ss.years=Qn,ss.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,s,i=!1,r=Kn;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(i=e),"object"==typeof t&&(r=Object.assign({},Kn,t),null!=t.s&&null==t.ss&&(r.ss=t.s-1)),s=function(e,t,n,s){var i=zt(e).abs(),r=Xn(i.as("s")),a=Xn(i.as("m")),o=Xn(i.as("h")),u=Xn(i.as("d")),l=Xn(i.as("M")),h=Xn(i.as("w")),d=Xn(i.as("y")),c=r<=n.ss&&["s",r]||r-1}module.exports=includes; }, {“92″:92,”205″:205,”797″:797,”904″:904,”980”:980}]; window.modules[“69”] = [function(require,module,exports){“use strict”;const _reduce=require(113),_get=require(10),_includes=require(67),_assign=require(160),_clone=require(152),_remove=require(81),Fingerprint2=require(321),cookie=require(64),dom=require(4),gtmEl=dom.find(“.gtm”),siteShortKey=gtmEl&&gtmEl.getAttribute(“data-site-short-key”);var localStorage=window.localStorage,uriAttr=”data-uri”,visitCountKey=`’visitServiceCount’_${siteShortKey}`,previousActionTimestampKey=`’visitServicePreviousTimestamp’_${siteShortKey}`,firstVisitTimestampKey=`’visitServiceFirstVisitTimestamp’_${siteShortKey}`,visitStartTimestampKey=`’visitServiceVisitStartTimestamp’_${siteShortKey}`,initialReferrerKey=`’visitServiceInitialRefferer’_${siteShortKey}`,visitDatesKey=`’visitDates’_${siteShortKey}`,clientIdCookieKey=”nyma”,maxVisitDuration=864e5,sessionTTL=18e5,visitDatesLimit=30,publicState={},publicStateIsReady=!1,onceReadyQueue=[],state=Object.create(Object.prototype,{_processQ:{value:function(){var e,t=this._q.slice(0),i=t.length;for(this._q=[],e=0;egetNumberFromLocalStorage(previousActionTimestampKey),i=e-maxVisitDuration>getNumberFromLocalStorage(visitStartTimestampKey);return t||i}function updateNewVisitState(e){state.isNewVisit=isNewVisit(e)}function extendVisit(){var e=Date.now();!isNewVisit(e)&&setPreviousActionTimestamp(e)}function createClientId(e){new Fingerprint2({excludeJsFonts:!0,excludeFlashFonts:!0,excludeCanvas:!0,excludeWebGL:!0,excludePixelRatio:!0}).get(function(t){state.clientId=t+”.”+e})}function ensureClientId(e){state.clientId=cookie.get(clientIdCookieKey),state.clientId||createClientId(e)}function getPageUri(){var e=document.querySelector(“[“+uriAttr+’*=”/_pages/”]’);return e&&e.getAttribute(uriAttr)}function getQueryParamsObject(e){return e=Array.isArray(e)?e:[],_reduce(_get(window,”location.search”,””).substr(1).split(“&”),function(t,i){var r=i.split(“=”),s=r[0],n=r[1];return n&&_includes(e,s)&&(t[s]=decodeURIComponent(n)),t},{})}function getUtmParams(){return getQueryParamsObject([“utm_source”,”utm_medium”,”utm_campaign”,”utm_content”,”utm_term”])}function getBrowserName(e,t,i){return i||_includes(e,” OPR/”)?_includes(e,”Mini”)?”Opera Mini”:”Opera”:/(BlackBerry|PlayBook|BB10)/i.test(e)?”BlackBerry”:_includes(e,”IEMobile”)||_includes(e,”WPDesktop”)?”Internet Explorer Mobile”:_includes(e,”Edge”)?”Microsoft Edge”:_includes(e,”FBIOS”)?”Facebook Mobile”:_includes(e,”Chrome”)?”Chrome”:_includes(e,”CriOS”)?”Chrome iOS”:_includes(e,”FxiOS”)?”Firefox iOS”:_includes(t,”Apple”)?_includes(e,”Mobile”)?”Mobile Safari”:”Safari”:_includes(e,”Android”)?”Android Mobile”:_includes(e,”Konqueror”)?”Konqueror”:_includes(e,”Firefox”)?”Firefox”:_includes(e,”MSIE”)||_includes(e,”Trident/”)?”Internet Explorer”:_includes(e,”Gecko”)?”Mozilla”:””}function browserNameToVersion(e,t){var i={“Internet Explorer Mobile”:/rv:(d+(.d+)?)/,”Microsoft Edge”:/Edge/(d+(.d+)?)/,Chrome:/Chrome/(d+(.d+)?)/,”Chrome iOS”:/CriOS/(d+(.d+)?)/,Safari:/Version/(d+(.d+)?)/,”Mobile Safari”:/Version/(d+(.d+)?)/,Opera:/(Opera|OPR)/(d+(.d+)?)/,Firefox:/Firefox/(d+(.d+)?)/,”Firefox iOS”:/FxiOS/(d+(.d+)?)/,Konqueror:/Konqueror:(d+(.d+)?)/,BlackBerry:/BlackBerry (d+(.d+)?)/,”Android Mobile”:/androids(d+(.d+)?)/,”Internet Explorer”:/(rv:|MSIE )(d+(.d+)?)/,Mozilla:/rv:(d+(.d+)?)/}[e],r=i&&t.match(i);return r?parseFloat(r[r.length-2]):null}function userAgentToOs(e){return/Windows/i.test(e)?/Phone/.test(e)||/WPDesktop/.test(e)?”Windows Phone”:”Windows”:/(iPhone|iPad|iPod)/.test(e)?”iOS”:/Android/.test(e)?”Android”:/(BlackBerry|PlayBook|BB10)/i.test(e)?”BlackBerry”:/Mac/i.test(e)?”Mac OS X”:/Linux/.test(e)?”Linux”:””}function getBrowserInfo(){var e=window.navigator,t=e.userAgent,i=getBrowserName(t,e.vendor,window.opera);return{browser:i,browserVersion:browserNameToVersion(i,t),os:userAgentToOs(t)}}function setPublicState(e,t){publicState=_assign({clientId:e,currentUrl:window.location.href,firstVisitTimestamp:getFirstVisitTimestamp(),initialReferrer:localStorage.getItem(initialReferrerKey),isNewVisit:state.isNewVisit,pageUri:getPageUri(),referrer:document.referrer,screenHeight:window.screen.height,screenWidth:window.screen.width,timestamp:t,visitCount:getVisitCount(),userLoyalty:getUserLoyaltyLevel()},getBrowserInfo(),getUtmParams()),publicStateIsReady=!0}function getPublicStateOnceReady(e){publicStateIsReady?e(_clone(publicState)):onceReadyQueue.push(e)}function executeOnceReadyQueue(){onceReadyQueue.forEach(e=>e(_clone(publicState))),onceReadyQueue=[]}function updateVisitDates(){var e=(localStorage.getItem(visitDatesKey)||””).split(“,”),t=24*visitDatesLimit*60*60*1e3,i=Date.now();_remove(e,function(e){return i-e>t}),(0===e.length||i-e[0]>=864e5)&&e.unshift(i),localStorage.setItem(visitDatesKey,e.join(“,”))}function getUserLoyaltyLevel(){var e=(localStorage.getItem(visitDatesKey)||””).split(“,”);return e.length1024?”D”:”T”}}function getPageZone(e){var t=dom.closest(e,”[“+zoneAttr+”]”);return(t&&t.getAttribute(zoneAttr)||””).substr(0,1)}function shortenHost(e){return”www.”===e.substr(0,4)?e.substr(4):e}function shortenReferrer(e){var t,r,s=e&&e.match(///([^/]+)(/[^/#?]+)?/),i=””;return s&&(t=shortenHost(s[1]||””).toLowerCase(),r=s[2]||””,i=t+(_includes(internalHosts,t)?r:””)),i}function shortenUri(e){return(e||””).split(“/”).pop().replace(“ambrose-“,”a-“).replace(“@published”,””)}function ensureSubtag({url:e,productId:t,visitState:r,anchorEl:s}){const i={siteShortKey:()=>siteShortKey,pageUri:()=>shortenedPageUri,productId:()=>t,deviceAbbreviation:_memoize(({visitState:e})=>guessDeviceAbbreviation(e.os,e.screenWidth)),utmSource:_memoize(({visitState:e})=>(e.utm_source||””).substr(0,3)),utmMedium:_memoize(({visitState:e})=>(e.utm_medium||””).substr(0,2)),utmCampaign:_memoize(({visitState:e})=>(e.utm_campaign||””).substr(0,17)),referrer:_memoize(({visitState:e})=>shortenReferrer(e.referrer)),zone:()=>getPageZone(s),format:()=>”w”,sessionCount:_memoize(({visitState:e})=>e.visitCount||””)},o=createSubtagProcessor(i),a=e.match(/subId[1-2]=/)?”impact”:””;return o({url:e,visitState:r,anchorEl:s,affiliate:a})}module.exports.ensureSubtag=ensureSubtag,module.exports.getAffiliate=getAffiliate; }, {“4″:4,”67″:67,”158″:158,”1001″:1001,”1344”:1344}]; window.modules[“73”] = [function(require,module,exports){var arrayMap=require(805),baseIteratee=require(892),baseMap=require(903),isArray=require(172);function map(a,r){return(isArray(a)?arrayMap:baseMap)(a,baseIteratee(r,3))}module.exports=map; }, {“172″:172,”805″:805,”892″:892,”903”:903}]; window.modules[“74”] = [function(require,module,exports){(function (global){(function (){ “use strict”;var required=require(1208),qs=require(1191),slashes=/^[A-Za-z][A-Za-z0-9+-.]*:[\/]+/,protocolre=/^([a-z][a-z0-9.+-]*:)?([\/]{1,})?([Ss]*)/i,whitespace=”[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]”,left=new RegExp(“^”+whitespace+”+”);function trimLeft(e){return(e||””).toString().replace(left,””)}var rules=[[“#”,”hash”],[“?”,”query”],function(e){return e.replace(“\”,”/”)},[“/”,”pathname”],[“@”,”auth”,1],[NaN,”host”,void 0,1,1],[/:(d+)$/,”port”,void 0,1],[NaN,”hostname”,void 0,1,1]],ignore={hash:1,query:1};function lolcation(e){var t,o=(“undefined”!=typeof window?window:”undefined”!=typeof global?global:”undefined”!=typeof self?self:{}).location||{},r={},s=typeof(e=e||o);if(“blob:”===e.protocol)r=new Url(unescape(e.pathname),{});else if(“string”===s)for(t in r=new Url(e,{}),ignore)delete r[t];else if(“object”===s){for(t in e)t in ignore||(r[t]=e[t]);void 0===r.slashes&&(r.slashes=slashes.test(e.href))}return r}function extractProtocol(e){e=trimLeft(e);var t=protocolre.exec(e);return{protocol:t[1]?t[1].toLowerCase():””,slashes:!!(t[2]&&t[2].length>=2),rest:t[2]&&1===t[2].length?”/”+t[3]:t[3]}}function resolve(e,t){if(“”===e)return t;for(var o=(t||”/”).split(“/”).slice(0,-1).concat(e.split(“/”)),r=o.length,s=o[r-1],a=!1,n=0;r–;)”.”===o[r]?o.splice(r,1):”..”===o[r]?(o.splice(r,1),n++):n&&(0===r&&(a=!0),o.splice(r,1),n–);return a&&o.unshift(“”),”.”!==s&&”..”!==s||o.push(“”),o.join(“/”)}function Url(e,t,o){if(e=trimLeft(e),!(this instanceof Url))return new Url(e,t,o);var r,s,a,n,l,i,h=rules.slice(),c=typeof t,p=this,u=0;for(“object”!==c&&”string”!==c&&(o=t,t=null),o&&”function”!=typeof o&&(o=qs.parse),t=lolcation(t),r=!(s=extractProtocol(e||””)).protocol&&!s.slashes,p.slashes=s.slashes||r&&t.slashes,p.protocol=s.protocol||t.protocol||””,e=s.rest,s.slashes||(h[3]=[/(.*)/,”pathname”]);u“,y());break}if(u==a){p=u=0,h=””;break}if(u==t&&”-“==s[b-1]&&”-“==s[b-2]){p=u=0,h=””;break}g(k);break;case'”‘:case”‘”:u==r&&(p==k?p=!1:p||(p=k)),g(k);break;case”!”:if(u==r&&”<"==s[b-1]){u=a;break}g(k);break;case"-":if(u==a&&"-"==s[b-1]&&"!"==s[b-2]){u=t;break}g(k);break;case"E":case"e":if(u==a&&"doctype"==s.substr(b-6,7).toLowerCase()){u=r;break}g(k);break;default:g(k)}function g(a){u==e?d+=a:n&&u==r&&(h+=a)}function y(){var e,r,a,t="",i=!1;e:for(e=0,r=h.length;e{const e=cookie.get(“nymcid”),t=cookie.get(“first-nymcid”);(e||t)&&sentry.addBreadcrumb({category:”User info”,data:{nymcid:e,firstNymcid:t}})})}function captureManualError(…e){sentry.captureException(…e)}function configureScope(e){sentry.configureScope(e)}sentry.isSetup||sentry.init({dsn:SENTRY_ENDPOINT,environment:isProd?”production”:”development”,attachStacktrace:!0,defaultIntegrations:!1,integrations:[new sentry.Integrations.UserAgent],sampleRate:.05}),module.exports={initializeIDListeners:initializeIDListeners,captureManualError:captureManualError,configureScope:configureScope}; }, {“9″:9,”64″:64,”370”:370}]; window.modules[“81”] = [function(require,module,exports){var baseIteratee=require(892),basePullAt=require(925);function remove(e,r){var t=[];if(!e||!e.length)return t;var a=-1,u=[],l=e.length;for(r=baseIteratee(r,3);++a{throw new Error(e)})}function searchByQueryWithRawResult(e){return log(“trace”,”performing elastic search”,{query:e}),module.exports.post(SITE_ENDPOINT,e,!0).then(function(e){return log(“trace”,`got ${e.hits.hits.length} results`,{results:e}),e})}function updateByQuery(e,r){return SITE_ENDPOINT=`http://${r.site.host}:${r.site.port}${r.site.path}/_update`,module.exports.post(SITE_ENDPOINT,e,!0).then(function(e){return log(“info”,”updated elastic document”),e})}function getCount(e){return log(“trace”,”getting count”,{query:e}),module.exports.post(SITE_ENDPOINT,e,!0).then(function(e){return e.hits.total}).catch(function(e){return log(“warn”,”error retrieving count”,{error:e}),0})}function executeMultipleSearchRequests(e){return log(“trace”,”performing elastic search”,{query:e}),module.exports.post(SITE_ENDPOINT,e,!0).then(function(e){return log(“trace”,`got ${e.hits.hits.length} results`,{results:e}),e})}function onePublishedArticleByUrl(e,r,t){const u=newQueryWithCount(“published-articles”,null,t),o=e?e.replace(“https://”,”http://”):””;return universalQuery.addFilter(u,{term:{canonicalUrl:utils.urlToCanonicalUrl(o)}}),r&&universalQuery.onlyWithTheseFields(u,r),u}function logCatch(e,r){log(“error”,`Error querying Elastic for component ${r}`)}module.exports=newQueryWithLocals,module.exports.newQueryWithCount=newQueryWithCount,module.exports.newCuneiformQuery=newCuneiformQuery,module.exports.searchByQuery=searchByQuery,module.exports.searchByQueryWithRawResult=searchByQueryWithRawResult,module.exports.getCount=getCount,module.exports.executeMultipleSearchRequests=executeMultipleSearchRequests,module.exports.updateByQuery=updateByQuery,module.exports.onePublishedArticleByUrl=onePublishedArticleByUrl,module.exports.logCatch=logCatch,module.exports.addGeo=universalQuery.addGeo,module.exports.addAggregation=universalQuery.addAggregation,module.exports.addShould=universalQuery.addShould,module.exports.addFilter=universalQuery.addFilter,module.exports.addMust=universalQuery.addMust,module.exports.addMustNot=universalQuery.addMustNot,module.exports.addMinimumShould=universalQuery.addMinimumShould,module.exports.addSort=universalQuery.addSort,module.exports.addSize=universalQuery.addSize,module.exports.addFrom=universalQuery.addFrom,module.exports.onlyWithTheseFields=universalQuery.onlyWithTheseFields,module.exports.onlyWithinThisSite=universalQuery.onlyWithinThisSite,module.exports.onlyWithinThisDomain=universalQuery.onlyWithinThisDomain,module.exports.withinThisSiteAndCrossposts=universalQuery.withinThisSiteAndCrossposts,module.exports.formatAggregationResults=universalQuery.formatAggregationResults,module.exports.formatSearchResult=universalQuery.formatSearchResult,module.exports.moreLikeThis=universalQuery.moreLikeThis,module.exports.combineFunctionScoreQueries=universalQuery.combineFunctionScoreQueries,module.exports.post=universalRest.post; }).call(this)}).call(this,”/services/client/query.js”)}, {“8″:8,”20″:20,”46″:46,”1342”:1342}]; window.modules[“91”] = [function(require,module,exports){var baseClone=require(828),CLONE_DEEP_FLAG=1,CLONE_SYMBOLS_FLAG=4;function cloneDeep(e){return baseClone(e,CLONE_DEEP_FLAG|CLONE_SYMBOLS_FLAG)}module.exports=cloneDeep; }, {“828”:828}]; window.modules[“92”] = [function(require,module,exports){var baseValues=require(945),keys=require(171);function values(e){return null==e?[]:baseValues(e,keys(e))}module.exports=values; }, {“171″:171,”945”:945}]; window.modules[“102”] = [function(require,module,exports){“use strict”;const isProduction=require(9)(),{get:get,post:post}=require(20),{getPageId:getPageId}=require(158),_memoize=require(1001),viewsServiceBase=getViewsServiceBase();function getClientHistory(e){return get(`${viewsServiceBase}/views/${e}`)}function updateClientHistory(e=””,t=””,i=””,r=””){return post(`${viewsServiceBase}/views/${e}`,{type:i,site:t,pageid:r})}function updateClientHistoryWithPageData(e=””,t=””){return module.exports.updateClientHistory(e,t,getArticleType(),getPageId())}function getViewsServiceBase(){return isProduction?`https://client.${getSiteDomain()}`:`https://client.dev.${getSiteDomain()}`}function getSiteDomain(){return window.location.hostname.replace(/^(localhost|stg|[^.]+.dev|www)./,””)}function getArticleType(){const e=document.querySelector(“article[data-type]”),t=e?e.dataset.type.split(“,”).map(e=>e.trim()):[],i=e?e.dataset.tags.split(“,”).map(e=>e.trim()):[];return t.includes(“New York Magazine Story”)||i.includes(“new york magazine”)?”Magazine”:”Article”}module.exports={getClientHistory:_memoize(getClientHistory),updateClientHistory:_memoize(updateClientHistory),updateClientHistoryWithPageData:_memoize(updateClientHistoryWithPageData)}; }, {“9″:9,”20″:20,”158″:158,”1001”:1001}]; window.modules[“103″] = [function(require,module,exports){var createCompounder=require(967),kebabCase=createCompounder(function(e,r,o){return e+(o?”-“:””)+r.toLowerCase()});module.exports=kebabCase; }, {“967”:967}]; window.modules[“104”] = [function(require,module,exports){“use strict”;const rest=require(20),utils=require(46);function get(t,e){return rest.get(utils.uriToUrl(t,e))}function put(t,e,r){return rest.put(utils.uriToUrl(t,r),e,!0)}module.exports.get=get,module.exports.put=put; }, {“20″:20,”46”:46}]; window.modules[“107”] = [function(require,module,exports){“use strict”;function encode(e){return”string”!=typeof e?e:window.btoa(e)}function decode(e){return”string”!=typeof e?e:window.atob(e)}module.exports.encode=encode,module.exports.decode=decode; }, {}]; window.modules[“108”] = [function(require,module,exports){“use strict”;const strictUriEncode=require(1187),decodeComponent=require(582),splitOnFirst=require(1188),filterObject=require(664),isNullOrUndefined=e=>null==e;function encoderForArrayFormat(e){switch(e.arrayFormat){case”index”:return r=>(t,o)=>{const n=t.length;return void 0===o||e.skipNull&&null===o||e.skipEmptyString&&””===o?t:null===o?[…t,[encode(r,e),”[“,n,”]”].join(“”)]:[…t,[encode(r,e),”[“,encode(n,e),”]=”,encode(o,e)].join(“”)]};case”bracket”:return r=>(t,o)=>void 0===o||e.skipNull&&null===o||e.skipEmptyString&&””===o?t:null===o?[…t,[encode(r,e),”[]”].join(“”)]:[…t,[encode(r,e),”[]=”,encode(o,e)].join(“”)];case”comma”:case”separator”:return r=>(t,o)=>null==o||0===o.length?t:0===t.length?[[encode(r,e),”=”,encode(o,e)].join(“”)]:[[t,encode(o,e)].join(e.arrayFormatSeparator)];default:return r=>(t,o)=>void 0===o||e.skipNull&&null===o||e.skipEmptyString&&””===o?t:null===o?[…t,encode(r,e)]:[…t,[encode(r,e),”=”,encode(o,e)].join(“”)]}}function parserForArrayFormat(e){let r;switch(e.arrayFormat){case”index”:return(e,t,o)=>{r=/[(d*)]$/.exec(e),e=e.replace(/[d*]$/,””),r?(void 0===o[e]&&(o[e]={}),o[e][r[1]]=t):o[e]=t};case”bracket”:return(e,t,o)=>{r=/([])$/.exec(e),e=e.replace(/[]$/,””),r?void 0!==o[e]?o[e]=[].concat(o[e],t):o[e]=[t]:o[e]=t};case”comma”:case”separator”:return(r,t,o)=>{const n=”string”==typeof t&&t.includes(e.arrayFormatSeparator),a=”string”==typeof t&&!n&&decode(t,e).includes(e.arrayFormatSeparator);t=a?decode(t,e):t;const s=n||a?t.split(e.arrayFormatSeparator).map(r=>decode(r,e)):null===t?t:decode(t,e);o[r]=s};default:return(e,r,t)=>{void 0!==t[e]?t[e]=[].concat(t[e],r):t[e]=r}}}function validateArrayFormatSeparator(e){if(“string”!=typeof e||1!==e.length)throw new TypeError(“arrayFormatSeparator must be single character string”)}function encode(e,r){return r.encode?r.strict?strictUriEncode(e):encodeURIComponent(e):e}function decode(e,r){return r.decode?decodeComponent(e):e}function keysSorter(e){return Array.isArray(e)?e.sort():”object”==typeof e?keysSorter(Object.keys(e)).sort((e,r)=>Number(e)-Number(r)).map(r=>e[r]):e}function removeHash(e){const r=e.indexOf(“#”);return-1!==r&&(e=e.slice(0,r)),e}function getHash(e){let r=””;const t=e.indexOf(“#”);return-1!==t&&(r=e.slice(t)),r}function extract(e){const r=(e=removeHash(e)).indexOf(“?”);return-1===r?””:e.slice(r+1)}function parseValue(e,r){return r.parseNumbers&&!Number.isNaN(Number(e))&&”string”==typeof e&&””!==e.trim()?e=Number(e):!r.parseBooleans||null===e||”true”!==e.toLowerCase()&&”false”!==e.toLowerCase()||(e=”true”===e.toLowerCase()),e}function parse(e,r){validateArrayFormatSeparator((r=Object.assign({decode:!0,sort:!0,arrayFormat:”none”,arrayFormatSeparator:”,”,parseNumbers:!1,parseBooleans:!1},r)).arrayFormatSeparator);const t=parserForArrayFormat(r),o=Object.create(null);if(“string”!=typeof e)return o;if(!(e=e.trim().replace(/^[?#&]/,””)))return o;for(const n of e.split(“&”)){if(“”===n)continue;let[e,a]=splitOnFirst(r.decode?n.replace(/+/g,” “):n,”=”);a=void 0===a?null:[“comma”,”separator”].includes(r.arrayFormat)?a:decode(a,r),t(decode(e,r),a,o)}for(const e of Object.keys(o)){const t=o[e];if(“object”==typeof t&&null!==t)for(const e of Object.keys(t))t[e]=parseValue(t[e],r);else o[e]=parseValue(t,r)}return!1===r.sort?o:(!0===r.sort?Object.keys(o).sort():Object.keys(o).sort(r.sort)).reduce((e,r)=>{const t=o[r];return Boolean(t)&&”object”==typeof t&&!Array.isArray(t)?e[r]=keysSorter(t):e[r]=t,e},Object.create(null))}exports.extract=extract,exports.parse=parse,exports.stringify=((e,r)=>{if(!e)return””;validateArrayFormatSeparator((r=Object.assign({encode:!0,strict:!0,arrayFormat:”none”,arrayFormatSeparator:”,”},r)).arrayFormatSeparator);const t=t=>r.skipNull&&isNullOrUndefined(e[t])||r.skipEmptyString&&””===e[t],o=encoderForArrayFormat(r),n={};for(const r of Object.keys(e))t(r)||(n[r]=e[r]);const a=Object.keys(n);return!1!==r.sort&&a.sort(r.sort),a.map(t=>{const n=e[t];return void 0===n?””:null===n?encode(t,r):Array.isArray(n)?n.reduce(o(t),[]).join(“&”):encode(t,r)+”=”+encode(n,r)}).filter(e=>e.length>0).join(“&”)}),exports.parseUrl=((e,r)=>{r=Object.assign({decode:!0},r);const[t,o]=splitOnFirst(e,”#”);return Object.assign({url:t.split(“?”)[0]||””,query:parse(extract(e),r)},r&&r.parseFragmentIdentifier&&o?{fragmentIdentifier:decode(o,r)}:{})}),exports.stringifyUrl=((e,r)=>{r=Object.assign({encode:!0,strict:!0},r);const t=removeHash(e.url).split(“?”)[0]||””,o=exports.extract(e.url),n=exports.parse(o,{sort:!1}),a=Object.assign(n,e.query);let s=exports.stringify(a,r);s&&(s=`?${s}`);let c=getHash(e.url);return e.fragmentIdentifier&&(c=`#${encode(e.fragmentIdentifier,r)}`),`${t}${s}${c}`}),exports.pick=((e,r,t)=>{t=Object.assign({parseFragmentIdentifier:!0},t);const{url:o,query:n,fragmentIdentifier:a}=exports.parseUrl(e,t);return exports.stringifyUrl({url:o,query:filterObject(n,r),fragmentIdentifier:a},t)}),exports.exclude=((e,r,t)=>{const o=Array.isArray(r)?e=>!r.includes(e):(e,t)=>!r(e,t);return exports.pick(e,o,t)}); }, {“582″:582,”664″:664,”1187″:1187,”1188”:1188}]; window.modules[“109”] = [function(require,module,exports){function isObject(t){var e=typeof t;return null!=t&&(“object”==e||”function”==e)}module.exports=isObject; }, {}]; window.modules[“110″] = [function(require,module,exports){var baseKeys=require(897),getTag=require(830),isArguments=require(801),isArray=require(172),isArrayLike=require(904),isBuffer=require(802),isPrototype=require(898),isTypedArray=require(804),mapTag=”[object Map]”,setTag=”[object Set]”,objectProto=Object.prototype,hasOwnProperty=objectProto.hasOwnProperty;function isEmpty(r){if(null==r)return!0;if(isArrayLike(r)&&(isArray(r)||”string”==typeof r||”function”==typeof r.splice||isBuffer(r)||isTypedArray(r)||isArguments(r)))return!r.length;var e=getTag(r);if(e==mapTag||e==setTag)return!r.size;if(isPrototype(r))return!baseKeys(r).length;for(var t in r)if(hasOwnProperty.call(r,t))return!1;return!0}module.exports=isEmpty; }, {“172″:172,”801″:801,”802″:802,”804″:804,”830″:830,”897″:897,”898″:898,”904”:904}]; window.modules[“113”] = [function(require,module,exports){var arrayReduce=require(807),baseEach=require(843),baseIteratee=require(892),baseReduce=require(929),isArray=require(172);function reduce(e,r,a){var u=isArray(e)?arrayReduce:baseReduce,s=arguments.length<3;return u(e,baseIteratee(r,4),a,s,baseEach)}module.exports=reduce; }, {"172":172,"807":807,"843":843,"892":892,"929":929}]; window.modules["114"] = [function(require,module,exports){var baseUniq=require(942);function uniq(e){return e&&e.length?baseUniq(e):[]}module.exports=uniq; }, {"942":942}]; window.modules["116"] = [function(require,module,exports){(function (__filename){(function (){ "use strict";const urlParse=require(341).parse,queryService=require(85),queryString=require(108),escapeStringRegExp=require(660),rest=require(20),log=require(8).setup({file:__filename}),utils=require(46),agoraService=require(1341),{getAffiliatePriority:getAffiliatePriority}=require(217),_get=require(10),_set=require(130),_uniqBy=require(1033),_sortBy=require(144),{ensureSubtag:ensureSubtag}=require(70),{getAffiliate:getAffiliate}=require(1344),indexName="*-products",queryBody={sort:[{_index:{order:"desc"}},{creationDate:{order:"asc"}}]},productComponentInstancesPath="/_components/product/instances",productComponentNames=["product","product-grid-item","products-package"],moment=require(52);function getProductIdFromUrl(e,r){let t=queryService(indexName,r);return t.body=queryBody,t.body.query={term:{buyUrl:e}},queryService.searchByQueryWithRawResult(t,r,!1).then(e=>_get(e,”hits.hits[0]._source.productId”)).catch(e=>log(“debug”,”product doesn’t exist: hits.hits[0]._source.productId”,{error:e.message}))}function createProduct(e,r){const t={name:e.text,buyUrl:e.url,buyUrlHistory:[e.url],vendor:”Amazon”};return rest.post(utils.getSiteBaseUrl(r)+productComponentInstancesPath,t,!0).then(e=>{const t=utils.uriToUrl(e._ref+”@published”,r);return delete e._ref,rest.put(t,e,!0)}).catch(r=>{throw log(“error”,`error creating product instance from link ${e.url}`,{error:r.message}),r})}function addProductIdToProduct(e,r){var t=e.url;return t?getProductIdFromUrl(t,r).then(t=>t||createProduct(e,r).then(e=>e.productId)).then(r=>(e.productId=r,e)).catch(e=>{throw new Error(`Error occurred while retrieving product entry from elastic: ${e}`)}):e}function mapUrlsToProducts(e,r){return Object.keys(e).map(function(t){const n={url:t,text:e[t],productId:””,amazonSubtag:””},a=agoraService.buildMerchantsByUrlQuery(t,r);return agoraService.searchByQueryWithRawResults(a,r).then(e=>(_set(n,”productId”,_get(e,”hits.hits[0]._source.productId”,””)),n)).catch(()=>n)})}function isAmazonUrl(e){const r=(e.split(“://”)[1]||””).split(“/”)[0].toLowerCase(),t=e.includes(“amazon.co.uk”)?”amazon.co.uk”:”amazon.com”;return 0===r.indexOf(t)||r.indexOf(`.${t}`)>0}function reduceToUniqueAmazonUrls(e){return e.split(‘“),n=r.substr(0,t),a=n.indexOf(‘” ‘),o=a>-1?n.substr(0,a):n.substr(0,n.length-1),i=r.substr(t+1).split(“”)[0];return isAmazonUrl(o)&&(e[o]=i),e},{})}function addAmazonLinkTrackingAttributes(e,r){const t=mapUrlsToProducts(reduceToUniqueAmazonUrls(e.text||””),r);return Promise.all(t).then(t=>(e.text=t.reduce(function(e,t){var n=generateBuyUrlWithSubtag({buyUrl:t.url,productId:t.productId},r),a=new RegExp(`]*`,”g”),o=`e.imageUrl),e=_uniqBy(e,e=>e.name),_uniqBy(e,e=>{var n=_get(e,”buyUrl”,””)||_get(e.merchants[0],”buyUrl”,””),a=_get(n.match(t),”[0]”);return a?a.replace(r,””):n})}function generateSubtags(e,r){e.forEach(e=>{e.buyUrlWithSubtag=generateBuyUrlWithSubtag(e,r)})}function isNarrativClickmateLink(e=””){return e.includes(“https://shop-links.co/link/?”)}function isNarrativSmartlink(e=””){return e.includes(“shop-links.co”)&&!isNarrativClickmateLink(e)}function isSkimlinksLink(e=””){return e.includes(“go.redirectingat.com”)}function sanitizeNarrativUrl(e=””){let r=urlParse(e.replace(“.anf”,””));return r.protocol?(r.protocol=”https:”,r.slashes=!0,r.query=null,encodeURIComponent(r.format())):sanitizeNarrativUrl(`https://${e}`)}function generateNarrativClickmateLink(e,r=”nymagtestaccount”,t,n){const a=_get(n,”url”,””),o=(_get(n,”pageUri”)||a).replace(“@published”,””),{articleName:i,articleUrl:u,lockNarrativLink:s=!0}=t,c=a.match(/_(pages|components)/)?null:a;if(isNarrativClickmateLink(e)){const r=e.split(“?”)?e.split(“?”).pop():””;e=queryString.parse(r).url||e}return”https://shop-links.co/link/?”+`url=${encodeURIComponent(e)}`+`&publisher_slug=${r}`+(i?`&article_name=${encodeURIComponent(i)}`:””)+”&article_url=”+sanitizeNarrativUrl(u||o)+`&exclusive=${s?1:0}`+(c?`&display_url=${encodeURIComponent(c)}`:””)}function handleNarrativeLinks(e,r,t,n){const a=utils.isProduction(t.url),o=utils.isPublishedVersion(e),i=a&&o?”nymag”:”nymagtestaccount”;r.forEach(e=>{const r=isNarrativSmartlink(e.buyUrl);”Narrativ”!==e.affiliate||r||(e.buyUrl=generateNarrativClickmateLink(e.buyUrl,i,n,t))})}function handleRatingsAndReviews(e){e.forEach(e=>{const{ratings:r,reviews:t}=parseRatingsAndReviews(e.ratingsAndReviews);_set(e,”ratings”,r?`${r} stars`:null),_set(e,”reviews”,t?`${t} reviews`:null)})}function parseRatingsAndReviews(e){const r=e||””,t=_get(r.match(/[0-9][.0-9]* star[s]*/i),”[0]”,””),n=_get(r.match(/[0-9,]* reviews/i),”[0]”,””);return{ratings:_get(t.match(/[0-9][.0-9]*/),”[0]”,””),reviews:_get(n.match(/[0-9,]*/),”[0]”,””)}}function processAgoraMerchants(e,r,t,n){return handleNarrativeLinks(e,r,t,n),generateSubtags(r,t),handleRatingsAndReviews(r),r}function handleSalePrice(e){return(e.merchants?e.merchants:[]).forEach(e=>{merchantHasActiveSale(e)||(e.salePrice=null)}),e}function merchantHasActiveSale(e={}){const r=moment();return(!e.saleBeginDateTime||r>=moment(e.saleBeginDateTime))&&!(e.saleEndDateTime&&moment(e.saleEndDateTime){e.affiliateRetailerId&&(e.name=e.retailerName),e.automatedBuyUrl&&(e.buyUrl=e.automatedBuyUrl)}),e}function getProductFromAgora(e,r){return e.agoraId?agoraService.getProduct(e.agoraId,r).then(r=>{if(!_get(r,”productId”))throw new Error(“Product Not Found”);if(!_get(r,”merchants[0].buyUrl”))throw new Error(“Product has no merchants”);return e.agoraId=r.productId,r}).catch(r=>{const t=_get(e,”agora.merchants[0].buyUrl”);if(log(“warn”,`Error pulling data from agora: ${r}`,{productId:e.agoraId||e.productId}),t)return e.agora;throw new Error}).then(handleSalePrice).then(handleLinkAutomation):Promise.reject()}function getSingleProductFromAgora(e,r){return e?agoraService.getProduct(e,r).then(e=>{if(!_get(e,”productId”))throw new Error(“Product Not Found”);if(!_get(e,”merchants[0].buyUrl”))throw new Error(“Product has no merchants”);return e}).then(handleSalePrice).then(handleLinkAutomation):Promise.reject()}function orderMerchantsByAffiliate(e){return _sortBy(e,e=>{const r=_get(e,”affiliate”,””),t=getAffiliatePriority(r);return t>-1?t:-1/0})}function isProductComponentUri(e=””){return!!productComponentNames.find(r=>{const t=new RegExp(r);return!!utils.isComponentInstance(e,r)&&!!r.match(t)})}require(231),module.exports.addAmazonLinkTrackingAttributes=addAmazonLinkTrackingAttributes,module.exports.generateBuyUrlWithSubtag=generateBuyUrlWithSubtag,module.exports.getProductIdFromUrl=getProductIdFromUrl,module.exports.isAmazonUrl=isAmazonUrl,module.exports.addProductIdToProduct=addProductIdToProduct,module.exports.removeDuplicateProducts=removeDuplicateProducts,module.exports.processAgoraMerchants=processAgoraMerchants,module.exports.isNarrativClickmateLink=isNarrativClickmateLink,module.exports.isNarrativSmartlink=isNarrativSmartlink,module.exports.isSkimlinksLink=isSkimlinksLink,module.exports.getProductFromAgora=getProductFromAgora,module.exports.orderMerchantsByAffiliate=orderMerchantsByAffiliate,module.exports.sanitizeNarrativUrl=sanitizeNarrativUrl,module.exports.getSingleProductFromAgora=getSingleProductFromAgora,module.exports.parseRatingsAndReviews=parseRatingsAndReviews,module.exports.handleLinkAutomation=handleLinkAutomation,module.exports.isProductComponentUri=isProductComponentUri,module.exports.merchantHasActiveSale=merchantHasActiveSale,module.exports.ensureSiteTag=ensureSiteTag; }).call(this)}).call(this,”/services/universal/products.js”)}, {“8″:8,”10″:10,”20″:20,”46″:46,”52″:52,”70″:70,”85″:85,”108″:108,”130″:130,”144″:144,”217″:217,”231″:231,”341″:341,”660″:660,”1033″:1033,”1341″:1341,”1344”:1344}]; window.modules[“117”] = [function(require,module,exports){“use strict”;const _debounce=require(121);let body=document.body,scriptTagsAdded={},debounceFns={};function removeProtocol(e){var n=e.split(“//”);return”//”+(n.length>1?n[1]:n[0])}function shouldAppendScript(e){return!scriptTagsAdded[e]}function appendScript(e){var n=document.createElement(“script”);n.type=”text/javascript”,n.src=e,n.async=!0,body.appendChild(n),scriptTagsAdded[e]=!0}function includeScript(e){shouldAppendScript(e=removeProtocol(e))&&appendScript(e)}function debouncedIncludeScript(e,n){const c=n||0;e&&(debounceFns[e]||(debounceFns[e]=_debounce(includeScript.bind(null,e),c)),debounceFns[e]())}module.exports.includeScript=debouncedIncludeScript; }, {“121”:121}]; window.modules[“118”] = [function(require,module,exports){“use strict”;const $window=window,$visibility=require(5);var LazyLoader=function(i,t,s,e=null){this.wrapper=i,this.img=t,this.sources=s,this.visibility=new $visibility.Visible(i,{preloadThreshold:2*$window.innerHeight}),this.callback=e};LazyLoader.prototype={init:function(){this.visibility.preload?this.onPreload():this.visibility.on(“preload”,this.onPreload.bind(this))},onPreload:function(){this.callback?(this.callback(),this.fadeIn(),this.onShown()):(this.setImgSrc(),this.addImgLoadListener())},setImgSrc:function(){this.img.setAttribute(“src”,this.img.getAttribute(“data-src”)),this.sources&&this.sources.forEach(function(i){i.setAttribute(“srcset”,i.getAttribute(“data-srcset”))})},addImgLoadListener:function(){this.img.complete?this.onImageLoad():this.img.addEventListener(“load”,this.onImageLoad.bind(this))},onImageLoad:function(){this.visibility.seen?this.onShown():this.visibility.on(“shown”,this.onShown.bind(this))},onShown:function(){this.fadeIn(),this.visibility.destroy()},fadeIn:function(){var i=this.wrapper;i.classList.remove(“hidden”),i.classList.add(“fade-in-element”),setTimeout(function(){i.classList.remove(“fade-in-element”)},2e3)}},module.exports.LazyLoader=LazyLoader; }, {“5”:5}]; window.modules[“120”] = [function(require,module,exports){var baseFindIndex=require(852),baseIteratee=require(892),toInteger=require(980),nativeMax=Math.max;function findIndex(e,n,r){var t=null==e?0:e.length;if(!t)return-1;var a=null==r?0:toInteger(r);return a<0&&(a=nativeMax(t+a,0)),baseFindIndex(e,baseIteratee(n,3),a)}module.exports=findIndex; }, {"852":852,"892":892,"980":980}]; window.modules["121"] = [function(require,module,exports){var isObject=require(109),now=require(1010),toNumber=require(981),FUNC_ERROR_TEXT="Expected a function",nativeMax=Math.max,nativeMin=Math.min;function debounce(n,i,t){var e,r,o,u,a,c,v=0,f=!1,m=!1,d=!0;if("function"!=typeof n)throw new TypeError(FUNC_ERROR_TEXT);function T(i){var t=e,o=r;return e=r=void 0,v=i,u=n.apply(o,t)}function s(n){var t=n-c;return void 0===c||t>=i||t<0||m&&n-v>=o}function b(){var n=now();if(s(n))return l(n);a=setTimeout(b,function(n){var t=i-(n-c);return m?nativeMin(t,o-(n-v)):t}(n))}function l(n){return a=void 0,d&&e?T(n):(e=r=void 0,u)}function w(){var n=now(),t=s(n);if(e=arguments,r=this,c=n,t){if(void 0===a)return function(n){return v=n,a=setTimeout(b,i),f?T(n):u}(c);if(m)return clearTimeout(a),a=setTimeout(b,i),T(c)}return void 0===a&&(a=setTimeout(b,i)),u}return i=toNumber(i)||0,isObject(t)&&(f=!!t.leading,o=(m=”maxWait”in t)?nativeMax(toNumber(t.maxWait)||0,i):o,d=”trailing”in t?!!t.trailing:d),w.cancel=function(){void 0!==a&&clearTimeout(a),v=0,e=c=r=a=void 0},w.flush=function(){return void 0===a?u:l(now())},w}module.exports=debounce; }, {“109″:109,”981″:981,”1010”:1010}]; window.modules[“122”] = [function(require,module,exports){!function(t,e,i,n){“use strict”;var r,s=[“”,”webkit”,”Moz”,”MS”,”ms”,”o”],o=e.createElement(“div”),a=”function”,h=Math.round,u=Math.abs,c=Date.now;function l(t,e,i){return setTimeout(T(t,i),e)}function p(t,e,i){return!!Array.isArray(t)&&(f(t,i[e],i),!0)}function f(t,e,i){var r;if(t)if(t.forEach)t.forEach(e,i);else if(t.length!==n)for(r=0;ru(p.y)?p.x:p.y,e.scale=a?(f=a.pointers,d=r,it(d[0],d[1],B)/it(f[0],f[1],B)):1,e.rotation=a?function(t,e){return nt(e[1],e[0],B)+nt(t[1],t[0],B)}(a.pointers,r):0,e.maxPointers=i.prevInput?e.pointers.length>i.prevInput.maxPointers?e.pointers.length:i.prevInput.maxPointers:e.pointers.length,function(t,e){var i,r,s,o,a=t.lastInterval||e,h=e.timeStamp-a.timeStamp;if(e.eventType!=W&&(h>N||a.velocity===n)){var c=e.deltaX-a.deltaX,l=e.deltaY-a.deltaY,p=tt(h,c,l);r=p.x,s=p.y,i=u(p.x)>u(p.y)?p.x:p.y,o=et(c,l),t.lastInterval=e}else i=a.velocity,r=a.velocityX,s=a.velocityY,o=a.direction;e.velocity=i,e.velocityX=r,e.velocityY=s,e.direction=o}(i,e);var f,d;var v=t.element;_(e.srcEvent.target,v)&&(v=e.srcEvent.target);e.target=v}(t,i),t.emit(“hammer.input”,i),t.recognize(i),t.session.prevInput=i}function K(t){for(var e=[],i=0;i0},canRecognizeWith:function(t){return!!this.simultaneous[t.id]},emit:function(t){var e=this,i=this.state;function n(i){e.manager.emit(i,t)}i=Xt&&n(e.options.event+qt(i))},tryEmit:function(t){if(this.canEmit())return this.emit(t);this.state=32},canEmit:function(){for(var t=0;te.threshold&&r&e.direction},attrTest:function(t){return Lt.prototype.attrTest.call(this,t)&&(this.state&zt||!(this.state&zt)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=kt(t.direction);e&&(t.additionalEvent=this.options.event+e),this._super.emit.call(this,t)}}),g(Vt,Lt,{defaults:{event:”pinch”,threshold:0,pointers:2},getTouchAction:function(){return[Dt]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||this.state&zt)},emit:function(t){if(1!==t.scale){var e=t.scale<1?"in":"out";t.additionalEvent=this.options.event+e}this._super.emit.call(this,t)}}),g(jt,Wt,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[bt]},process:function(t){var e=this.options,i=t.pointers.length===e.pointers,n=t.distancee.time;if(this._input=t,!n||!i||t.eventType&(F|W)&&!r)this.reset();else if(t.eventType&X)this.reset(),this._timer=l(function(){this.state=Yt,this.tryEmit()},e.time,this);else if(t.eventType&F)return Yt;return 32},reset:function(){clearTimeout(this._timer)},emit:function(t){this.state===Yt&&(t&&t.eventType&F?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=c(),this.manager.emit(this.options.event,this._input)))}}),g(Gt,Lt,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[Dt]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||this.state&zt)}}),g(Zt,Lt,{defaults:{event:”swipe”,threshold:10,velocity:.3,direction:V|j,pointers:1},getTouchAction:function(){return Ut.prototype.getTouchAction.call(this)},attrTest:function(t){var e,i=this.options.direction;return i&(V|j)?e=t.overallVelocity:i&V?e=t.overallVelocityX:i&j&&(e=t.overallVelocityY),this._super.attrTest.call(this,t)&&i&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers==this.options.pointers&&u(e)>this.options.velocity&&t.eventType&F},emit:function(t){var e=kt(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),g(Bt,Wt,{defaults:{event:”tap”,pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[Pt]},process:function(t){var e=this.options,i=t.pointers.length===e.pointers,n=t.distance1&&isIterateeCall(e,r[0],r[1])?r=[]:t>2&&isIterateeCall(r[0],r[1],r[2])&&(r=[r[0]]),baseOrderBy(e,baseFlatten(r,1),[])});module.exports=sortBy; }, {“854″:854,”917″:917,”931″:931,”963”:963}]; window.modules[“152”] = [function(require,module,exports){var baseClone=require(828),CLONE_SYMBOLS_FLAG=4;function clone(e){return baseClone(e,CLONE_SYMBOLS_FLAG)}module.exports=clone; }, {“828”:828}]; window.modules[“156”] = [function(require,module,exports){var arrayFilter=require(795),baseFilter=require(851),baseIteratee=require(892),isArray=require(172);function filter(r,e){return(isArray(r)?arrayFilter:baseFilter)(r,baseIteratee(e,3))}module.exports=filter; }, {“172″:172,”795″:795,”851″:851,”892”:892}]; window.modules[“158”] = [function(require,module,exports){“use strict”;const _get=require(10),_memoize=require(1001);function getPrimaryPageComponent(){return document.querySelector(“.article”)||document.querySelector(“.lede-video”)}function getPrimaryPageComponentChannel(){const e=getPrimaryPageComponent();return e&&e.getAttribute(“data-content-channel”)||”Undefined Channel”}function getPageUri(){return document.documentElement.getAttribute(“data-uri”)}function getPageId(){return getPageUri().split(“/_pages/”)[1]}function getSiteBase(){return(getPageUri()||””).split(“/_pages/”)[0]}function getMetaContent(e){var t=document.querySelector(‘meta[name=”‘+e+'”]’)||document.querySelector(‘meta[property=”‘+e+'”]’);return _get(t,”content”,””)}module.exports.getMeta=_memoize(getMetaContent),module.exports.getVertical=module.exports.getMeta.bind(void 0,”vertical”),module.exports.getPageType=module.exports.getMeta.bind(void 0,”type”),module.exports.getAuthor=module.exports.getMeta.bind(void 0,”author”),module.exports.getSiteName=module.exports.getMeta.bind(void 0,”og:site_name”),module.exports.getSiteBase=_memoize(getSiteBase),module.exports.getPageUri=_memoize(getPageUri),module.exports.getPageId=_memoize(getPageId),module.exports.getChannel=_memoize(getPrimaryPageComponentChannel),module.exports.getPrimaryPageComponent=getPrimaryPageComponent; }, {“10″:10,”1001”:1001}]; window.modules[“160”] = [function(require,module,exports){var assignValue=require(820),copyObject=require(823),createAssigner=require(962),isArrayLike=require(904),isPrototype=require(898),keys=require(171),objectProto=Object.prototype,hasOwnProperty=objectProto.hasOwnProperty,assign=createAssigner(function(e,r){if(isPrototype(r)||isArrayLike(r))copyObject(r,keys(r),e);else for(var s in r)hasOwnProperty.call(r,s)&&assignValue(e,s,r[s])});module.exports=assign; }, {“171″:171,”820″:820,”823″:823,”898″:898,”904″:904,”962”:962}]; window.modules[“161”] = [function(require,module,exports){var arrayMap=require(805),baseIteratee=require(892),basePickBy=require(921),getAllKeysIn=require(829);function pickBy(e,r){if(null==e)return{};var a=arrayMap(getAllKeysIn(e),function(e){return[e]});return r=baseIteratee(r),basePickBy(e,a,function(e,a){return r(e,a[0])})}module.exports=pickBy; }, {“805″:805,”829″:829,”892″:892,”921”:921}]; window.modules[“164”] = [function(require,module,exports){!function(e,t){“object”==typeof exports&&”undefined”!=typeof module?t(exports):”function”==typeof define&&define.amd?define([“exports”],t):t((e=”undefined”!=typeof globalThis?globalThis:e||self).webVitals={})}(this,function(e){“use strict”;var t,n,i,a,r=function(e,t){return{name:e,value:void 0===t?-1:t,delta:0,entries:[],id:”v1-“.concat(Date.now(),”-“).concat(Math.floor(8999999999999*Math.random())+1e12)}},o=function(e,t){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var n=new PerformanceObserver(function(e){return e.getEntries().map(t)});return n.observe({type:e,buffered:!0}),n}}catch(e){}},c=function(e,t){var n=function n(i){“pagehide”!==i.type&&”hidden”!==document.visibilityState||(e(i),t&&(removeEventListener(“visibilitychange”,n,!0),removeEventListener(“pagehide”,n,!0)))};addEventListener(“visibilitychange”,n,!0),addEventListener(“pagehide”,n,!0)},u=function(e){addEventListener(“pageshow”,function(t){t.persisted&&e(t)},!0)},f=”function”==typeof WeakSet?new WeakSet:new Set,s=function(e,t,n){var i;return function(){t.value>=0&&(n||f.has(t)||”hidden”===document.visibilityState)&&(t.delta=t.value-(i||0),(t.delta||void 0===i)&&(i=t.value,e(t)))}},d=-1,p=function(){return”hidden”===document.visibilityState?0:1/0},m=function(){c(function(e){var t=e.timeStamp;d=t},!0)},v=function(){return d<0&&(d=p(),m(),u(function(){setTimeout(function(){d=p(),m()},0)})),{get timeStamp(){return d}}},l={passive:!0,capture:!0},h=new Date,y=function(e,a){t||(t=a,n=e,i=new Date,E(removeEventListener),g())},g=function(){if(n>=0&&n1e12?new Date:performance.now())-e.timeStamp;”pointerdown”==e.type?function(e,t){var n=function(){y(e,t),a()},i=function(){a()},a=function(){removeEventListener(“pointerup”,n,l),removeEventListener(“pointercancel”,i,l)};addEventListener(“pointerup”,n,l),addEventListener(“pointercancel”,i,l)}(t,e):y(t,e)}},E=function(e){[“mousedown”,”keydown”,”touchstart”,”pointerdown”].forEach(function(t){return e(t,S,l)})};e.getCLS=function(e,t){var n,i=r(“CLS”,0),a=function(e){e.hadRecentInput||(i.value+=e.value,i.entries.push(e),n())},f=o(“layout-shift”,a);f&&(n=s(e,i,t),c(function(){f.takeRecords().map(a),n()}),u(function(){i=r(“CLS”,0),n=s(e,i,t)}))},e.getFCP=function(e,t){var n,i=v(),a=r(“FCP”),c=o(“paint”,function(e){“first-contentful-paint”===e.name&&(c&&c.disconnect(),e.startTimee.trim()).filter(e=>!!e).filter(e=>”_”!=e[0]).map(e=>{for(let t=0;t!!e);return 0==t.length?e=>e:1==t.length?t[0]:t.reduce((e,r)=>(…t)=>r(e(…t)))}function meta(e,r){var t=r||logger;if(e&&Object.keys(e).length)return log(t.child(e));throw new Error(“Clay Log: `meta` function requires object argument”)}function log(e){return isNode&&!plugins&&(e=initPlugins()(e)),function(r,t,o){o=o||{},r instanceof Error&&(t=r,r=”error”),r&&t?(o._label=r.toUpperCase(),e[r](o,t)):e.error(new Error(“level or msg arguments required”))}}function setLogger(e){pino=e}function getLogger(){return logger}module.exports.init=init,module.exports.meta=meta,module.exports.getLogger=getLogger,module.exports.log=log,module.exports.setLogger=setLogger,module.exports.resolvePluginPath=resolvePluginPath; }).call(this)}).call(this,require(26))}, {“26″:26,”531″:531,”532”:532}]; window.modules[“212”] = [function(require,module,exports){var baseIsEqual=require(877);function isEqual(a,s){return baseIsEqual(a,s)}module.exports=isEqual; }, {“877”:877}]; window.modules[“215”] = [function(require,module,exports){“use strict”;exports.decode=exports.parse=require(1189),exports.encode=exports.stringify=require(1190); }, {“1189″:1189,”1190”:1190}]; window.modules[“217”] = [function(require,module,exports){“use strict”;const _findIndex=require(120),orderedAffiliates=[{name:”Amazon Associates”,alwaysInclude:!0,defaultToSkimlinks:!1},{name:”Shareasale”,alwaysInclude:!1,defaultToSkimlinks:!1},{name:”Rakuten”,alwaysInclude:!1,defaultToSkimlinks:!1},{name:”CJ”,alwaysInclude:!1,allowCustomRetailer:!1},{name:”Pepperjam”,alwaysInclude:!1,defaultToSkimlinks:!1},{name:”Impact”,alwaysInclude:!1,defaultToSkimlinks:!1},{name:”Partnerize”,alwaysInclude:!1,defaultToSkimlinks:!1},{name:”Avantlink”,alwaysInclude:!1,defaultToSkimlinks:!1},{name:”Awin”,alwaysInclude:!0,defaultToSkimlinks:!1},{name:”Skimlinks”,alwaysInclude:!0,allowCustomRetailer:!0,defaultToSkimlinks:!1},{name:”Narrativ”,alwaysInclude:!0,defaultToSkimlinks:!1},{name:”Non-Network Affiliate Partner”,alwaysInclude:!0,defaultToSkimlinks:!0},{name:”Non-Monetizeable”,alwaysInclude:!0,defaultToSkimlinks:!0}];function affiliateAllowsCustomRetailer(e){const a=getAffiliateMetadata(e);return a&&a.allowCustomRetailer}function affiliateSuppressSkimlinks(e){const a=getAffiliateMetadata(e);return!!a&&!a.defaultToSkimlinks}function getAffiliateMetadata(e=””){return orderedAffiliates.find(a=>{const i=new RegExp(a.name,”i”);return e&&e.match(i)})||{}}function getAffiliatePriority(e=””){return _findIndex(orderedAffiliates,a=>{const i=new RegExp(a.name,”i”);return e&&e.match(i)})}module.exports.getAffiliateMetadata=getAffiliateMetadata,module.exports.getAffiliatePriority=getAffiliatePriority,module.exports.affiliateAllowsCustomRetailer=affiliateAllowsCustomRetailer,module.exports.affiliateSuppressSkimlinks=affiliateSuppressSkimlinks,module.exports.affiliateList=orderedAffiliates.map(e=>e.name); }, {“120”:120}]; window.modules[“226”] = [function(require,module,exports){var baseAssignValue=require(818),baseForOwn=require(844),baseIteratee=require(892);function mapValues(e,a){var s={};return a=baseIteratee(a,3),baseForOwn(e,function(e,r,u){baseAssignValue(s,r,a(e,r,u))}),s}module.exports=mapValues; }, {“818″:818,”844″:844,”892”:892}]; window.modules[“231”] = [function(require,module,exports){require(718),module.exports=self.fetch.bind(self); }, {“718”:718}]; window.modules[“238”] = [function(require,module,exports){“use strict”;const queryString=require(108),parseurl=require(74),{ensureSubtag:ensureSubtag}=require(70),_includes=require(67),thirdParty=require(117),permutive=require(76),{getPageUri:getPageUri}=require(158),narrativDomain=”shop-links.co/”,{isNarrativClickmateLink:isNarrativClickmateLink,isSkimlinksLink:isSkimlinksLink}=require(116),utils=require(46),article=document.querySelector(“article.article”),articleHeadline=article&&article.dataset&&article.dataset.headline||””;function handleBuyClick(i,e){return function(t){window.fbq&&window.fbq(“trackCustom”,e,{domain:i}),permutive.reportProductClick(t.currentTarget)}}function amazonOnetagSrc(){return”https://z-na.associates-amazon.com/onetag/v2?MarketPlace=US&instanceId=74e5d3e9-e5c4-4fa2-85e4-0e43ae3f0f84″}function attachThirdPartyScripts(i,e=!1){(_includes(i,”amazon.com/”)||_includes(i,”amazon.co.uk/”))&&thirdParty.includeScript(amazonOnetagSrc(),2500),(_includes(i,narrativDomain)||e)&&thirdParty.includeScript(“static.bam-x.com/tags/nymag.js”)}function ensureClickmateParams(i={}){const e=getPageUri(),t=utils.isProduction(e),r=utils.isPublishedVersion(e),a=t&&r?”nymag”:”nymagtestaccount”;let n=i.href,s=n.split(“?”)?n.split(“?”).pop():””,c=queryString.parse(s),u=isNarrativClickmateLink(n),l=i.getAttribute(“data-narrativ-title”);if(u){let e=l||articleHeadline;e&&(c.article_name=e),c.publisher_slug=a,i.href=n.split(“?”).shift()+`?${queryString.stringify(c)}`}}function ensureSkimlinksParams(i){const e=i.href,t=parseurl(e);if(isSkimlinksLink(e)){const e=window.location.href,r=t.query?”&”:”?”;t.query+=`${r}sref=${encodeURIComponent(e)}`,i.href=t.toString()}}function initLink(i,e){var t,r=i&&i.href,a=i.classList.contains(“narrativ-link”);r&&(i.addEventListener(“click”,handleBuyClick(r,”Click-Out”)),i.addEventListener(“contextmenu”,handleBuyClick(r,”Click-Out-Right”)),t=i&&i.getAttribute(“data-track-id”),i.href=ensureSubtag({url:r,productId:t,visitState:e,anchorEl:i})||r,ensureClickmateParams(i),ensureSkimlinksParams(i),attachThirdPartyScripts(r,a),permutive.initProductLink(i))}module.exports.initLink=initLink; }, {“46″:46,”67″:67,”70″:70,”74″:74,”76″:76,”108″:108,”116″:116,”117″:117,”158”:158}]; window.modules[“260”] = [function(require,module,exports){“use strict”;Object.defineProperty(exports,”__esModule”,{value:!0});var ReCaptchaLoader_1=require(1206);exports.load=ReCaptchaLoader_1.load,exports.getInstance=ReCaptchaLoader_1.getInstance;var ReCaptchaInstance_1=require(1205);exports.ReCaptchaInstance=ReCaptchaInstance_1.ReCaptchaInstance; }, {“1205″:1205,”1206”:1206}]; window.modules[“308″] = [function(require,module,exports){var deburrLetter=require(984),toString=require(949),reLatin=/[xc0-xd6xd8-xf6xf8-xffu0100-u017f]/g,rsComboMarksRange=”\u0300-\u036f”,reComboHalfMarksRange=”\ufe20-\ufe2f”,rsComboSymbolsRange=”\u20d0-\u20ff”,rsComboRange=rsComboMarksRange+reComboHalfMarksRange+rsComboSymbolsRange,rsCombo=”[“+rsComboRange+”]”,reComboMark=RegExp(rsCombo,”g”);function deburr(r){return(r=toString(r))&&r.replace(reLatin,deburrLetter).replace(reComboMark,””)}module.exports=deburr; }, {“949″:949,”984”:984}]; window.modules[“320”] = [function(require,module,exports){var Module=function(){“use strict”;function t(t,e){var n=new(Function.prototype.bind.apply(t,[null].concat(e)));return t.module.context[t.refName]=n,n}function e(t,e,n){var i=function(t){var e,n;for(e=0;ewindow.screen.availWidth?[window.screen.availHeight,window.screen.availWidth]:[window.screen.availWidth,window.screen.availHeight]:[window.screen.availHeight,window.screen.availWidth]),void 0!==t&&e.addPreprocessedComponent({key:”available_resolution”,value:t}),e},timezoneOffsetKey:function(e){return this.options.excludeTimezoneOffset||e.addPreprocessedComponent({key:”timezone_offset”,value:(new Date).getTimezoneOffset()}),e},sessionStorageKey:function(e){return!this.options.excludeSessionStorage&&this.hasSessionStorage()&&e.addPreprocessedComponent({key:”session_storage”,value:1}),e},localStorageKey:function(e){return!this.options.excludeSessionStorage&&this.hasLocalStorage()&&e.addPreprocessedComponent({key:”local_storage”,value:1}),e},indexedDbKey:function(e){return!this.options.excludeIndexedDB&&this.hasIndexedDB()&&e.addPreprocessedComponent({key:”indexed_db”,value:1}),e},addBehaviorKey:function(e){return!this.options.excludeAddBehavior&&document.body&&document.body.addBehavior&&e.addPreprocessedComponent({key:”add_behavior”,value:1}),e},openDatabaseKey:function(e){return!this.options.excludeOpenDatabase&&window.openDatabase&&e.addPreprocessedComponent({key:”open_database”,value:1}),e},cpuClassKey:function(e){return this.options.excludeCpuClass||e.addPreprocessedComponent({key:”cpu_class”,value:this.getNavigatorCpuClass()}),e},platformKey:function(e){return this.options.excludePlatform||e.addPreprocessedComponent({key:”navigator_platform”,value:this.getNavigatorPlatform()}),e},doNotTrackKey:function(e){return this.options.excludeDoNotTrack||e.addPreprocessedComponent({key:”do_not_track”,value:this.getDoNotTrack()}),e},canvasKey:function(e){return!this.options.excludeCanvas&&this.isCanvasSupported()&&e.addPreprocessedComponent({key:”canvas”,value:this.getCanvasFp()}),e},webglKey:function(e){return!this.options.excludeWebGL&&this.isWebGlSupported()&&e.addPreprocessedComponent({key:”webgl”,value:this.getWebglFp()}),e},webglVendorAndRendererKey:function(e){return!this.options.excludeWebGLVendorAndRenderer&&this.isWebGlSupported()&&e.addPreprocessedComponent({key:”webgl_vendor”,value:this.getWebglVendorAndRenderer()}),e},adBlockKey:function(e){return this.options.excludeAdBlock||e.addPreprocessedComponent({key:”adblock”,value:this.getAdBlock()}),e},hasLiedLanguagesKey:function(e){return this.options.excludeHasLiedLanguages||e.addPreprocessedComponent({key:”has_lied_languages”,value:this.getHasLiedLanguages()}),e},hasLiedResolutionKey:function(e){return this.options.excludeHasLiedResolution||e.addPreprocessedComponent({key:”has_lied_resolution”,value:this.getHasLiedResolution()}),e},hasLiedOsKey:function(e){return this.options.excludeHasLiedOs||e.addPreprocessedComponent({key:”has_lied_os”,value:this.getHasLiedOs()}),e},hasLiedBrowserKey:function(e){return this.options.excludeHasLiedBrowser||e.addPreprocessedComponent({key:”has_lied_browser”,value:this.getHasLiedBrowser()}),e},fontsKey:function(e,t){return this.options.excludeJsFonts?this.flashFontsKey(e,t):this.jsFontsKey(e,t)},flashFontsKey:function(e,t){return this.options.excludeFlashFonts?t(e):this.hasSwfObjectLoaded()&&this.hasMinFlashInstalled()?void 0===this.options.swfPath?t(e):void this.loadSwfAndDetectFonts(function(n){e.addPreprocessedComponent({key:”swf_fonts”,value:n.join(“;”)}),t(e)}):t(e)},jsFontsKey:function(e,t){var n=this;return setTimeout(function(){var i=[“monospace”,”sans-serif”,”serif”],a=[“Andale Mono”,”Arial”,”Arial Black”,”Arial Hebrew”,”Arial MT”,”Arial Narrow”,”Arial Rounded MT Bold”,”Arial Unicode MS”,”Bitstream Vera Sans Mono”,”Book Antiqua”,”Bookman Old Style”,”Calibri”,”Cambria”,”Cambria Math”,”Century”,”Century Gothic”,”Century Schoolbook”,”Comic Sans”,”Comic Sans MS”,”Consolas”,”Courier”,”Courier New”,”Geneva”,”Georgia”,”Helvetica”,”Helvetica Neue”,”Impact”,”Lucida Bright”,”Lucida Calligraphy”,”Lucida Console”,”Lucida Fax”,”LUCIDA GRANDE”,”Lucida Handwriting”,”Lucida Sans”,”Lucida Sans Typewriter”,”Lucida Sans Unicode”,”Microsoft Sans Serif”,”Monaco”,”Monotype Corsiva”,”MS Gothic”,”MS Outlook”,”MS PGothic”,”MS Reference Sans Serif”,”MS Sans Serif”,”MS Serif”,”MYRIAD”,”MYRIAD PRO”,”Palatino”,”Palatino Linotype”,”Segoe Print”,”Segoe Script”,”Segoe UI”,”Segoe UI Light”,”Segoe UI Semibold”,”Segoe UI Symbol”,”Tahoma”,”Times”,”Times New Roman”,”Times New Roman PS”,”Trebuchet MS”,”Verdana”,”Wingdings”,”Wingdings 2″,”Wingdings 3″];n.options.extendedJsFonts&&(a=a.concat([“Abadi MT Condensed Light”,”Academy Engraved LET”,”ADOBE CASLON PRO”,”Adobe Garamond”,”ADOBE GARAMOND PRO”,”Agency FB”,”Aharoni”,”Albertus Extra Bold”,”Albertus Medium”,”Algerian”,”Amazone BT”,”American Typewriter”,”American Typewriter Condensed”,”AmerType Md BT”,”Andalus”,”Angsana New”,”AngsanaUPC”,”Antique Olive”,”Aparajita”,”Apple Chancery”,”Apple Color Emoji”,”Apple SD Gothic Neo”,”Arabic Typesetting”,”ARCHER”,”ARNO PRO”,”Arrus BT”,”Aurora Cn BT”,”AvantGarde Bk BT”,”AvantGarde Md BT”,”AVENIR”,”Ayuthaya”,”Bandy”,”Bangla Sangam MN”,”Bank Gothic”,”BankGothic Md BT”,”Baskerville”,”Baskerville Old Face”,”Batang”,”BatangChe”,”Bauer Bodoni”,”Bauhaus 93″,”Bazooka”,”Bell MT”,”Bembo”,”Benguiat Bk BT”,”Berlin Sans FB”,”Berlin Sans FB Demi”,”Bernard MT Condensed”,”BernhardFashion BT”,”BernhardMod BT”,”Big Caslon”,”BinnerD”,”Blackadder ITC”,”BlairMdITC TT”,”Bodoni 72″,”Bodoni 72 Oldstyle”,”Bodoni 72 Smallcaps”,”Bodoni MT”,”Bodoni MT Black”,”Bodoni MT Condensed”,”Bodoni MT Poster Compressed”,”Bookshelf Symbol 7″,”Boulder”,”Bradley Hand”,”Bradley Hand ITC”,”Bremen Bd BT”,”Britannic Bold”,”Broadway”,”Browallia New”,”BrowalliaUPC”,”Brush Script MT”,”Californian FB”,”Calisto MT”,”Calligrapher”,”Candara”,”CaslonOpnface BT”,”Castellar”,”Centaur”,”Cezanne”,”CG Omega”,”CG Times”,”Chalkboard”,”Chalkboard SE”,”Chalkduster”,”Charlesworth”,”Charter Bd BT”,”Charter BT”,”Chaucer”,”ChelthmITC Bk BT”,”Chiller”,”Clarendon”,”Clarendon Condensed”,”CloisterBlack BT”,”Cochin”,”Colonna MT”,”Constantia”,”Cooper Black”,”Copperplate”,”Copperplate Gothic”,”Copperplate Gothic Bold”,”Copperplate Gothic Light”,”CopperplGoth Bd BT”,”Corbel”,”Cordia New”,”CordiaUPC”,”Cornerstone”,”Coronet”,”Cuckoo”,”Curlz MT”,”DaunPenh”,”Dauphin”,”David”,”DB LCD Temp”,”DELICIOUS”,”Denmark”,”DFKai-SB”,”Didot”,”DilleniaUPC”,”DIN”,”DokChampa”,”Dotum”,”DotumChe”,”Ebrima”,”Edwardian Script ITC”,”Elephant”,”English 111 Vivace BT”,”Engravers MT”,”EngraversGothic BT”,”Eras Bold ITC”,”Eras Demi ITC”,”Eras Light ITC”,”Eras Medium ITC”,”EucrosiaUPC”,”Euphemia”,”Euphemia UCAS”,”EUROSTILE”,”Exotc350 Bd BT”,”FangSong”,”Felix Titling”,”Fixedsys”,”FONTIN”,”Footlight MT Light”,”Forte”,”FrankRuehl”,”Fransiscan”,”Freefrm721 Blk BT”,”FreesiaUPC”,”Freestyle Script”,”French Script MT”,”FrnkGothITC Bk BT”,”Fruitger”,”FRUTIGER”,”Futura”,”Futura Bk BT”,”Futura Lt BT”,”Futura Md BT”,”Futura ZBlk BT”,”FuturaBlack BT”,”Gabriola”,”Galliard BT”,”Gautami”,”Geeza Pro”,”Geometr231 BT”,”Geometr231 Hv BT”,”Geometr231 Lt BT”,”GeoSlab 703 Lt BT”,”GeoSlab 703 XBd BT”,”Gigi”,”Gill Sans”,”Gill Sans MT”,”Gill Sans MT Condensed”,”Gill Sans MT Ext Condensed Bold”,”Gill Sans Ultra Bold”,”Gill Sans Ultra Bold Condensed”,”Gisha”,”Gloucester MT Extra Condensed”,”GOTHAM”,”GOTHAM BOLD”,”Goudy Old Style”,”Goudy Stout”,”GoudyHandtooled BT”,”GoudyOLSt BT”,”Gujarati Sangam MN”,”Gulim”,”GulimChe”,”Gungsuh”,”GungsuhChe”,”Gurmukhi MN”,”Haettenschweiler”,”Harlow Solid Italic”,”Harrington”,”Heather”,”Heiti SC”,”Heiti TC”,”HELV”,”Herald”,”High Tower Text”,”Hiragino Kaku Gothic ProN”,”Hiragino Mincho ProN”,”Hoefler Text”,”Humanst 521 Cn BT”,”Humanst521 BT”,”Humanst521 Lt BT”,”Imprint MT Shadow”,”Incised901 Bd BT”,”Incised901 BT”,”Incised901 Lt BT”,”INCONSOLATA”,”Informal Roman”,”Informal011 BT”,”INTERSTATE”,”IrisUPC”,”Iskoola Pota”,”JasmineUPC”,”Jazz LET”,”Jenson”,”Jester”,”Jokerman”,”Juice ITC”,”Kabel Bk BT”,”Kabel Ult BT”,”Kailasa”,”KaiTi”,”Kalinga”,”Kannada Sangam MN”,”Kartika”,”Kaufmann Bd BT”,”Kaufmann BT”,”Khmer UI”,”KodchiangUPC”,”Kokila”,”Korinna BT”,”Kristen ITC”,”Krungthep”,”Kunstler Script”,”Lao UI”,”Latha”,”Leelawadee”,”Letter Gothic”,”Levenim MT”,”LilyUPC”,”Lithograph”,”Lithograph Light”,”Long Island”,”Lydian BT”,”Magneto”,”Maiandra GD”,”Malayalam Sangam MN”,”Malgun Gothic”,”Mangal”,”Marigold”,”Marion”,”Marker Felt”,”Market”,”Marlett”,”Matisse ITC”,”Matura MT Script Capitals”,”Meiryo”,”Meiryo UI”,”Microsoft Himalaya”,”Microsoft JhengHei”,”Microsoft New Tai Lue”,”Microsoft PhagsPa”,”Microsoft Tai Le”,”Microsoft Uighur”,”Microsoft YaHei”,”Microsoft Yi Baiti”,”MingLiU”,”MingLiU_HKSCS”,”MingLiU_HKSCS-ExtB”,”MingLiU-ExtB”,”Minion”,”Minion Pro”,”Miriam”,”Miriam Fixed”,”Mistral”,”Modern”,”Modern No. 20″,”Mona Lisa Solid ITC TT”,”Mongolian Baiti”,”MONO”,”MoolBoran”,”Mrs Eaves”,”MS LineDraw”,”MS Mincho”,”MS PMincho”,”MS Reference Specialty”,”MS UI Gothic”,”MT Extra”,”MUSEO”,”MV Boli”,”Nadeem”,”Narkisim”,”NEVIS”,”News Gothic”,”News GothicMT”,”NewsGoth BT”,”Niagara Engraved”,”Niagara Solid”,”Noteworthy”,”NSimSun”,”Nyala”,”OCR A Extended”,”Old Century”,”Old English Text MT”,”Onyx”,”Onyx BT”,”OPTIMA”,”Oriya Sangam MN”,”OSAKA”,”OzHandicraft BT”,”Palace Script MT”,”Papyrus”,”Parchment”,”Party LET”,”Pegasus”,”Perpetua”,”Perpetua Titling MT”,”PetitaBold”,”Pickwick”,”Plantagenet Cherokee”,”Playbill”,”PMingLiU”,”PMingLiU-ExtB”,”Poor Richard”,”Poster”,”PosterBodoni BT”,”PRINCETOWN LET”,”Pristina”,”PTBarnum BT”,”Pythagoras”,”Raavi”,”Rage Italic”,”Ravie”,”Ribbon131 Bd BT”,”Rockwell”,”Rockwell Condensed”,”Rockwell Extra Bold”,”Rod”,”Roman”,”Sakkal Majalla”,”Santa Fe LET”,”Savoye LET”,”Sceptre”,”Script”,”Script MT Bold”,”SCRIPTINA”,”Serifa”,”Serifa BT”,”Serifa Th BT”,”ShelleyVolante BT”,”Sherwood”,”Shonar Bangla”,”Showcard Gothic”,”Shruti”,”Signboard”,”SILKSCREEN”,”SimHei”,”Simplified Arabic”,”Simplified Arabic Fixed”,”SimSun”,”SimSun-ExtB”,”Sinhala Sangam MN”,”Sketch Rockwell”,”Skia”,”Small Fonts”,”Snap ITC”,”Snell Roundhand”,”Socket”,”Souvenir Lt BT”,”Staccato222 BT”,”Steamer”,”Stencil”,”Storybook”,”Styllo”,”Subway”,”Swis721 BlkEx BT”,”Swiss911 XCm BT”,”Sylfaen”,”Synchro LET”,”System”,”Tamil Sangam MN”,”Technical”,”Teletype”,”Telugu Sangam MN”,”Tempus Sans ITC”,”Terminal”,”Thonburi”,”Traditional Arabic”,”Trajan”,”TRAJAN PRO”,”Tristan”,”Tubular”,”Tunga”,”Tw Cen MT”,”Tw Cen MT Condensed”,”Tw Cen MT Condensed Extra Bold”,”TypoUpright BT”,”Unicorn”,”Univers”,”Univers CE 55 Medium”,”Univers Condensed”,”Utsaah”,”Vagabond”,”Vani”,”Vijaya”,”Viner Hand ITC”,”VisualUI”,”Vivaldi”,”Vladimir Script”,”Vrinda”,”Westminster”,”WHITNEY”,”Wide Latin”,”ZapfEllipt BT”,”ZapfHumnst BT”,”ZapfHumnst Dm BT”,”Zapfino”,”Zurich BlkEx BT”,”Zurich Ex BT”,”ZWAdobeF”])),a=(a=a.concat(n.options.userDefinedFonts)).filter(function(e,t){return a.indexOf(e)===t});var r=document.getElementsByTagName(“body”)[0],o=document.createElement(“div”),s=document.createElement(“div”),l={},d={},u=function(){var e=document.createElement(“span”);return e.style.position=”absolute”,e.style.left=”-9999px”,e.style.fontSize=”72px”,e.style.fontStyle=”normal”,e.style.fontWeight=”normal”,e.style.letterSpacing=”normal”,e.style.lineBreak=”auto”,e.style.lineHeight=”normal”,e.style.textTransform=”none”,e.style.textAlign=”left”,e.style.textDecoration=”none”,e.style.textShadow=”none”,e.style.whiteSpace=”normal”,e.style.wordBreak=”normal”,e.style.wordSpacing=”normal”,e.innerHTML=”mmmmmmmmmmlli”,e},c=function(e){for(var t=!1,n=0;n>>16,65535&e[0],e[1]>>>16,65535&e[1]],t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]];var n=[0,0,0,0];return n[3]+=e[3]+t[3],n[2]+=n[3]>>>16,n[3]&=65535,n[2]+=e[2]+t[2],n[1]+=n[2]>>>16,n[2]&=65535,n[1]+=e[1]+t[1],n[0]+=n[1]>>>16,n[1]&=65535,n[0]+=e[0]+t[0],n[0]&=65535,[n[0]<<16|n[1],n[2]>>16,65535&e[0],e[1]>>>16,65535&e[1]],t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]];var n=[0,0,0,0];return n[3]+=e[3]*t[3],n[2]+=n[3]>>>16,n[3]&=65535,n[2]+=e[2]*t[3],n[1]+=n[2]>>>16,n[2]&=65535,n[2]+=e[3]*t[2],n[1]+=n[2]>>>16,n[2]&=65535,n[1]+=e[1]*t[3],n[0]+=n[1]>>>16,n[1]&=65535,n[1]+=e[2]*t[2],n[0]+=n[1]>>>16,n[1]&=65535,n[1]+=e[3]*t[1],n[0]+=n[1]>>>16,n[1]&=65535,n[0]+=e[0]*t[3]+e[1]*t[2]+e[2]*t[1]+e[3]*t[0],n[0]&=65535,[n[0]<<16|n[1],n[2]<<16|n[3]]},x64Rotl:function(e,t){return 32==(t%=64)?[e[1],e[0]]:t<32?[e[0]<>>32-t,e[1]<>>32-t]:(t-=32,[e[1]<>>32-t,e[0]<>>32-t])},x64LeftShift:function(e,t){return 0==(t%=64)?e:t<32?[e[0]<>>32-t,e[1]<>1]),e=this.x64Multiply(e,[4283543511,3981806797]),e=this.x64Xor(e,[0,e[0]>>>1]),e=this.x64Multiply(e,[3301882366,444984403]),this.x64Xor(e,[0,e[0]>>>1])},x64hash128:function(e,t){t=t||0;for(var n=(e=e||””).length%16,i=e.length-n,a=[0,t],r=[0,t],o=[0,0],s=[0,0],l=[2277735313,289559509],d=[1291169091,658871167],u=0;u>0).toString(16)).slice(-8)+(“00000000″+(a[1]>>>0).toString(16)).slice(-8)+(“00000000″+(r[0]>>>0).toString(16)).slice(-8)+(“00000000″+(r[1]>>>0).toString(16)).slice(-8)}},e.VERSION=”1.8.0”,e}); }, {}]; window.modules[“322”] = [function(require,module,exports){module.exports=require(63); }, {“63”:63}]; window.modules[“323”] = [function(require,module,exports){var arrayMap=require(805),baseIntersection=require(871),baseRest=require(931),castArrayLikeObject=require(947),last=require(62),intersectionWith=baseRest(function(e){var r=last(e),t=arrayMap(e,castArrayLikeObject);return(r=”function”==typeof r?r:void 0)&&t.pop(),t.length&&t[0]===e[0]?baseIntersection(t,void 0,r):[]});module.exports=intersectionWith; }, {“62″:62,”805″:805,”871″:871,”931″:931,”947”:947}]; window.modules[“341”] = [function(require,module,exports){“use strict”;var punycode=require(516),util=require(517);function Url(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}exports.parse=urlParse,exports.resolve=urlResolve,exports.resolveObject=urlResolveObject,exports.format=urlFormat,exports.Url=Url;var protocolPattern=/^([a-z0-9.+-]+:)/i,portPattern=/:[0-9]*$/,simplePathPattern=/^(//?(?!/)[^?s]*)(?[^s]*)?$/,delims=[“”,'”‘,”`”,” “,”r”,”n”,”t”],unwise=[“{“,”}”,”|”,”\”,”^”,”`”].concat(delims),autoEscape=[“‘”].concat(unwise),nonHostChars=[“%”,”/”,”?”,”;”,”#”].concat(autoEscape),hostEndingChars=[“/”,”?”,”#”],hostnameMaxLen=255,hostnamePartPattern=/^[+a-z0-9A-Z_-]{0,63}$/,hostnamePartStart=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,unsafeProtocol={javascript:!0,”javascript:”:!0},hostlessProtocol={javascript:!0,”javascript:”:!0},slashedProtocol={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,”http:”:!0,”https:”:!0,”ftp:”:!0,”gopher:”:!0,”file:”:!0},querystring=require(215);function urlParse(t,s,e){if(t&&util.isObject(t)&&t instanceof Url)return t;var h=new Url;return h.parse(t,s,e),h}function urlFormat(t){return util.isString(t)&&(t=urlParse(t)),t instanceof Url?t.format():Url.prototype.format.call(t)}function urlResolve(t,s){return urlParse(t,!1,!0).resolve(s)}function urlResolveObject(t,s){return t?urlParse(t,!1,!0).resolveObject(s):s}Url.prototype.parse=function(t,s,e){if(!util.isString(t))throw new TypeError(“Parameter ‘url’ must be a string, not “+typeof t);var h=t.indexOf(“?”),r=-1!==h&&hhostnameMaxLen?this.hostname=””:this.hostname=this.hostname.toLowerCase(),g||(this.hostname=punycode.toASCII(this.hostname));var C=this.port?”:”+this.port:””,A=this.hostname||””;this.host=A+C,this.href+=this.host,g&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),”/”!==o[0]&&(o=”/”+o))}if(!unsafeProtocol[l])for(m=0,P=autoEscape.length;m1)&&(“.”===q||”..”===q)||””===q,j=0,x=d.length;x>=0;x–)”.”===(q=d[x])?d.splice(x,1):”..”===q?(d.splice(x,1),j++):j&&(d.splice(x,1),j–);if(!y&&!P)for(;j–;j)d.unshift(“..”);!y||””===d[0]||d[0]&&”/”===d[0].charAt(0)||d.unshift(“”),O&&”/”!==d.join(“/”).substr(-1)&&d.push(“”);var U,C=””===d[0]||d[0]&&”/”===d[0].charAt(0);b&&(e.hostname=e.host=C?””:d.length?d.shift():””,(U=!!(e.host&&e.host.indexOf(“@”)>0)&&e.host.split(“@”))&&(e.auth=U.shift(),e.host=e.hostname=U.shift()));return(y=y||e.host&&d.length)&&!C&&d.unshift(“”),d.length?e.pathname=d.join(“/”):(e.pathname=null,e.path=null),util.isNull(e.pathname)&&util.isNull(e.search)||(e.path=(e.pathname?e.pathname:””)+(e.search?e.search:””)),e.auth=t.auth||e.auth,e.slashes=e.slashes||t.slashes,e.href=e.format(),e},Url.prototype.parseHost=function(){var t=this.host,s=portPattern.exec(t);s&&(“:”!==(s=s[0])&&(this.port=s.substr(1)),t=t.substr(0,t.length-s.length)),t&&(this.hostname=t)}; }, {“215″:215,”516″:516,”517”:517}]; window.modules[“354″] = [function(require,module,exports){module.exports=parse;var bugTestDiv,innerHTMLBug=!1;”undefined”!=typeof document&&((bugTestDiv=document.createElement(“div”)).innerHTML=’

a’,innerHTMLBug=!bugTestDiv.getElementsByTagName(“link”).length,bugTestDiv=void 0);var map={legend:[1,””,””],tr:[2,”
“,””],col:[2,”
“,””],_default:innerHTMLBug?[1,”X”,””]:[0,””,””]};function parse(e,t){if(“string”!=typeof e)throw new TypeError(“String expected”);t||(t=document);var a=/<([w:]+)/.exec(e);if(!a)return t.createTextNode(e);e=e.replace(/^s+|s+$/g,"");var l=a[1];if("body"==l)return(r=t.createElement("html")).innerHTML=e,r.removeChild(r.lastChild);var r,i=map[l]||map._default,p=i[0],o=i[1],n=i[2];for((r=t.createElement("div")).innerHTML=o+e+n;p--;)r=r.lastChild;if(r.firstChild==r.lastChild)return r.removeChild(r.firstChild);for(var d=t.createDocumentFragment();r.firstChild;)d.appendChild(r.removeChild(r.firstChild));return d}map.td=map.th=[3,"
“,””],map.option=map.optgroup=[1,”,””],map.thead=map.tbody=map.colgroup=map.caption=map.tfoot=[1,”
“,””],map.polyline=map.ellipse=map.polygon=map.circle=map.text=map.line=map.path=map.rect=map.g=[1,”,””]; }, {}]; window.modules[“355″] = [function(require,module,exports){Object.defineProperty(exports,”__esModule”,{value:!0});var tslib_1=require(357),core_1=require(358),types_1=require(359),utils_1=require(360),eventbuilder_1=require(356),transports_1=require(361),BrowserBackend=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return tslib_1.__extends(e,t),e.prototype.eventFromException=function(t,e){return eventbuilder_1.eventFromException(this._options,t,e)},e.prototype.eventFromMessage=function(t,e,r){return void 0===e&&(e=types_1.Severity.Info),eventbuilder_1.eventFromMessage(this._options,t,e,r)},e.prototype._setupTransport=function(){if(!this._options.dsn)return t.prototype._setupTransport.call(this);var e=tslib_1.__assign(tslib_1.__assign({},this._options.transportOptions),{dsn:this._options.dsn,_metadata:this._options._metadata});return this._options.transport?new this._options.transport(e):utils_1.supportsFetch()?new transports_1.FetchTransport(e):new transports_1.XHRTransport(e)},e}(core_1.BaseBackend);exports.BrowserBackend=BrowserBackend; }, {“356″:356,”357″:357,”358″:358,”359″:359,”360″:360,”361”:361}]; window.modules[“356″] = [function(require,module,exports){Object.defineProperty(exports,”__esModule”,{value:!0});var tslib_1=require(357),types_1=require(359),utils_1=require(360),parsers_1=require(366),tracekit_1=require(365);function eventFromException(e,t,r){var n=eventFromUnknownInput(t,r&&r.syntheticException||void 0,{attachStacktrace:e.attachStacktrace});return utils_1.addExceptionMechanism(n,{handled:!0,type:”generic”}),n.level=types_1.Severity.Error,r&&r.event_id&&(n.event_id=r.event_id),utils_1.SyncPromise.resolve(n)}function eventFromMessage(e,t,r,n){void 0===r&&(r=types_1.Severity.Info);var i=eventFromString(t,n&&n.syntheticException||void 0,{attachStacktrace:e.attachStacktrace});return i.level=r,n&&n.event_id&&(i.event_id=n.event_id),utils_1.SyncPromise.resolve(i)}function eventFromUnknownInput(e,t,r){var n;if(void 0===r&&(r={}),utils_1.isErrorEvent(e)&&e.error)return e=e.error,n=parsers_1.eventFromStacktrace(tracekit_1.computeStackTrace(e));if(utils_1.isDOMError(e)||utils_1.isDOMException(e)){var i=e,s=i.name||(utils_1.isDOMError(i)?”DOMError”:”DOMException”),a=i.message?s+”: “+i.message:s;return n=eventFromString(a,t,r),utils_1.addExceptionTypeValue(n,a),”code”in i&&(n.tags=tslib_1.__assign(tslib_1.__assign({},n.tags),{“DOMException.code”:””+i.code})),n}if(utils_1.isError(e))return n=parsers_1.eventFromStacktrace(tracekit_1.computeStackTrace(e));if(utils_1.isPlainObject(e)||utils_1.isEvent(e)){var o=e;return n=parsers_1.eventFromPlainObject(o,t,r.rejection),utils_1.addExceptionMechanism(n,{synthetic:!0}),n}return n=eventFromString(e,t,r),utils_1.addExceptionTypeValue(n,””+e,void 0),utils_1.addExceptionMechanism(n,{synthetic:!0}),n}function eventFromString(e,t,r){void 0===r&&(r={});var n={message:e};if(r.attachStacktrace&&t){var i=tracekit_1.computeStackTrace(t),s=parsers_1.prepareFramesForEvent(i.stack);n.stacktrace={frames:s}}return n}exports.eventFromException=eventFromException,exports.eventFromMessage=eventFromMessage,exports.eventFromUnknownInput=eventFromUnknownInput,exports.eventFromString=eventFromString; }, {“357″:357,”359″:359,”360″:360,”365″:365,”366”:366}]; window.modules[“357”] = [function(require,module,exports){(function (global){(function (){ var __extends,__assign,__rest,__decorate,__param,__metadata,__awaiter,__generator,__exportStar,__values,__read,__spread,__spreadArrays,__await,__asyncGenerator,__asyncDelegator,__asyncValues,__makeTemplateObject,__importStar,__importDefault,__classPrivateFieldGet,__classPrivateFieldSet,__createBinding;!function(e){var t=”object”==typeof global?global:”object”==typeof self?self:”object”==typeof this?this:{};function r(e,r){return e!==t&&(“function”==typeof Object.create?Object.defineProperty(e,”__esModule”,{value:!0}):e.__esModule=!0),function(t,n){return e[t]=r?r(t,n):n}}”function”==typeof define&&define.amd?define(“tslib”,[“exports”],function(n){e(r(t,r(n)))}):”object”==typeof module&&”object”==typeof module.exports?e(r(t,r(module.exports))):e(r(t))}(function(e){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};__extends=function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)},__assign=Object.assign||function(e){for(var t,r=1,n=arguments.length;r3?o(t,r,_):o(t,r))||_);return a>3&&_&&Object.defineProperty(t,r,_),_},__param=function(e,t){return function(r,n){t(r,n,e)}},__metadata=function(e,t){if(“object”==typeof Reflect&&”function”==typeof Reflect.metadata)return Reflect.metadata(e,t)},__awaiter=function(e,t,r,n){return new(r||(r=Promise))(function(o,a){function _(e){try{c(n.next(e))}catch(e){a(e)}}function i(e){try{c(n.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(_,i)}c((n=n.apply(e,t||[])).next())})},__generator=function(e,t){var r,n,o,a,_={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:i(0),throw:i(1),return:i(2)},”function”==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function i(a){return function(i){return function(a){if(r)throw new TypeError(“Generator is already executing.”);for(;_;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return _.label++,{value:a[1],done:!1};case 5:_.label++,n=a[1],a=[0];continue;case 7:a=_.ops.pop(),_.trys.pop();continue;default:if(!(o=(o=_.trys).length>0&&o[o.length-1])&&(6===a[0]||2===a[0])){_=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]0)&&!(n=a.next()).done;)_.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(o)throw o.error}}return _},__spread=function(){for(var e=[],t=0;t1||i(e,t)})})}function i(e,t){try{(r=o[e](t)).value instanceof __await?Promise.resolve(r.value.v).then(c,u):l(a[0][2],r)}catch(e){l(a[0][3],e)}var r}function c(e){i(“next”,e)}function u(e){i(“throw”,e)}function l(e,t){e(t),a.shift(),a.length&&i(a[0][0],a[0][1])}},__asyncDelegator=function(e){var t,r;return t={},n(“next”),n(“throw”,function(e){throw e}),n(“return”),t[Symbol.iterator]=function(){return this},t;function n(n,o){t[n]=e[n]?function(t){return(r=!r)?{value:__await(e[n](t)),done:”return”===n}:o?o(t):t}:o}},__asyncValues=function(e){if(!Symbol.asyncIterator)throw new TypeError(“Symbol.asyncIterator is not defined.”);var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=”function”==typeof __values?__values(e):e[Symbol.iterator](),t={},n(“next”),n(“throw”),n(“return”),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise(function(n,o){(function(e,t,r,n){Promise.resolve(n).then(function(t){e({value:t,done:r})},t)})(n,o,(t=e[r](t)).done,t.value)})}}},__makeTemplateObject=function(e,t){return Object.defineProperty?Object.defineProperty(e,”raw”,{value:t}):e.raw=t,e},__importStar=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t},__importDefault=function(e){return e&&e.__esModule?e:{default:e}},__classPrivateFieldGet=function(e,t){if(!t.has(e))throw new TypeError(“attempted to get private field on non-instance”);return t.get(e)},__classPrivateFieldSet=function(e,t,r){if(!t.has(e))throw new TypeError(“attempted to set private field on non-instance”);return t.set(e,r),r},e(“__extends”,__extends),e(“__assign”,__assign),e(“__rest”,__rest),e(“__decorate”,__decorate),e(“__param”,__param),e(“__metadata”,__metadata),e(“__awaiter”,__awaiter),e(“__generator”,__generator),e(“__exportStar”,__exportStar),e(“__createBinding”,__createBinding),e(“__values”,__values),e(“__read”,__read),e(“__spread”,__spread),e(“__spreadArrays”,__spreadArrays),e(“__await”,__await),e(“__asyncGenerator”,__asyncGenerator),e(“__asyncDelegator”,__asyncDelegator),e(“__asyncValues”,__asyncValues),e(“__makeTemplateObject”,__makeTemplateObject),e(“__importStar”,__importStar),e(“__importDefault”,__importDefault),e(“__classPrivateFieldGet”,__classPrivateFieldGet),e(“__classPrivateFieldSet”,__classPrivateFieldSet)}); }).call(this)}).call(this,typeof global !== “undefined” ? global : typeof self !== “undefined” ? self : typeof window !== “undefined” ? window : {})}, {}]; window.modules[“358″] = [function(require,module,exports){Object.defineProperty(exports,”__esModule”,{value:!0});var minimal_1=require(388);exports.addBreadcrumb=minimal_1.addBreadcrumb,exports.captureException=minimal_1.captureException,exports.captureEvent=minimal_1.captureEvent,exports.captureMessage=minimal_1.captureMessage,exports.configureScope=minimal_1.configureScope,exports.startTransaction=minimal_1.startTransaction,exports.setContext=minimal_1.setContext,exports.setExtra=minimal_1.setExtra,exports.setExtras=minimal_1.setExtras,exports.setTag=minimal_1.setTag,exports.setTags=minimal_1.setTags,exports.setUser=minimal_1.setUser,exports.withScope=minimal_1.withScope;var hub_1=require(383);exports.addGlobalEventProcessor=hub_1.addGlobalEventProcessor,exports.getCurrentHub=hub_1.getCurrentHub,exports.getHubFromCarrier=hub_1.getHubFromCarrier,exports.Hub=hub_1.Hub,exports.makeMain=hub_1.makeMain,exports.Scope=hub_1.Scope;var api_1=require(379);exports.API=api_1.API;var baseclient_1=require(382);exports.BaseClient=baseclient_1.BaseClient;var basebackend_1=require(380);exports.BaseBackend=basebackend_1.BaseBackend;var request_1=require(386);exports.eventToSentryRequest=request_1.eventToSentryRequest,exports.sessionToSentryRequest=request_1.sessionToSentryRequest;var sdk_1=require(387);exports.initAndBind=sdk_1.initAndBind;var noop_1=require(381);exports.NoopTransport=noop_1.NoopTransport;var version_1=require(385);exports.SDK_VERSION=version_1.SDK_VERSION;var Integrations=require(389);exports.Integrations=Integrations; }, {“379″:379,”380″:380,”381″:381,”382″:382,”383″:383,”385″:385,”386″:386,”387″:387,”388″:388,”389”:389}]; window.modules[“359″] = [function(require,module,exports){Object.defineProperty(exports,”__esModule”,{value:!0});var loglevel_1=require(399);exports.LogLevel=loglevel_1.LogLevel;var session_1=require(395);exports.SessionStatus=session_1.SessionStatus;var severity_1=require(396);exports.Severity=severity_1.Severity;var status_1=require(398);exports.Status=status_1.Status;var transaction_1=require(397);exports.TransactionSamplingMethod=transaction_1.TransactionSamplingMethod; }, {“395″:395,”396″:396,”397″:397,”398″:398,”399”:399}]; window.modules[“360″] = [function(require,module,exports){Object.defineProperty(exports,”__esModule”,{value:!0});var tslib_1=require(357);tslib_1.__exportStar(require(400),exports),tslib_1.__exportStar(require(401),exports),tslib_1.__exportStar(require(403),exports),tslib_1.__exportStar(require(404),exports),tslib_1.__exportStar(require(417),exports),tslib_1.__exportStar(require(402),exports),tslib_1.__exportStar(require(410),exports),tslib_1.__exportStar(require(406),exports),tslib_1.__exportStar(require(411),exports),tslib_1.__exportStar(require(409),exports),tslib_1.__exportStar(require(418),exports),tslib_1.__exportStar(require(407),exports),tslib_1.__exportStar(require(412),exports),tslib_1.__exportStar(require(408),exports),tslib_1.__exportStar(require(414),exports),tslib_1.__exportStar(require(413),exports),tslib_1.__exportStar(require(415),exports),tslib_1.__exportStar(require(416),exports); }, {“357″:357,”400″:400,”401″:401,”402″:402,”403″:403,”404″:404,”406″:406,”407″:407,”408″:408,”409″:409,”410″:410,”411″:411,”412″:412,”413″:413,”414″:414,”415″:415,”416″:416,”417″:417,”418”:418}]; window.modules[“361″] = [function(require,module,exports){Object.defineProperty(exports,”__esModule”,{value:!0});var base_1=require(376);exports.BaseTransport=base_1.BaseTransport;var fetch_1=require(377);exports.FetchTransport=fetch_1.FetchTransport;var xhr_1=require(378);exports.XHRTransport=xhr_1.XHRTransport; }, {“376″:376,”377″:377,”378”:378}]; window.modules[“362″] = [function(require,module,exports){Object.defineProperty(exports,”__esModule”,{value:!0});var tslib_1=require(357),core_1=require(358),utils_1=require(360),backend_1=require(355),helpers_1=require(363),integrations_1=require(364),BrowserClient=function(e){function t(t){void 0===t&&(t={});return t._metadata=t._metadata||{},t._metadata.sdk=t._metadata.sdk||{name:”sentry.javascript.browser”,packages:[{name:”npm:@sentry/browser”,version:core_1.SDK_VERSION}],version:core_1.SDK_VERSION},e.call(this,backend_1.BrowserBackend,t)||this}return tslib_1.__extends(t,e),t.prototype.showReportDialog=function(e){void 0===e&&(e={}),utils_1.getGlobalObject().document&&(this._isEnabled()?helpers_1.injectReportDialog(tslib_1.__assign(tslib_1.__assign({},e),{dsn:e.dsn||this.getDsn()})):utils_1.logger.error(“Trying to call showReportDialog with Sentry Client disabled”))},t.prototype._prepareEvent=function(t,r,n){return t.platform=t.platform||”javascript”,e.prototype._prepareEvent.call(this,t,r,n)},t.prototype._sendEvent=function(t){var r=this.getIntegration(integrations_1.Breadcrumbs);r&&r.addSentryBreadcrumb(t),e.prototype._sendEvent.call(this,t)},t}(core_1.BaseClient);exports.BrowserClient=BrowserClient; }, {“355″:355,”357″:357,”358″:358,”360″:360,”363″:363,”364”:364}]; window.modules[“363″] = [function(require,module,exports){Object.defineProperty(exports,”__esModule”,{value:!0});var tslib_1=require(357),core_1=require(358),utils_1=require(360),ignoreOnError=0;function shouldIgnoreOnError(){return ignoreOnError>0}function ignoreNextOnError(){ignoreOnError+=1,setTimeout(function(){ignoreOnError-=1})}function wrap(r,e,t){if(void 0===e&&(e={}),”function”!=typeof r)return r;try{if(r.__sentry__)return r;if(r.__sentry_wrapped__)return r.__sentry_wrapped__}catch(e){return r}var n=function(){var n=Array.prototype.slice.call(arguments);try{t&&”function”==typeof t&&t.apply(this,arguments);var o=n.map(function(r){return wrap(r,e)});return r.handleEvent?r.handleEvent.apply(this,o):r.apply(this,o)}catch(r){throw ignoreNextOnError(),core_1.withScope(function(t){t.addEventProcessor(function(r){var t=tslib_1.__assign({},r);return e.mechanism&&(utils_1.addExceptionTypeValue(t,void 0,void 0),utils_1.addExceptionMechanism(t,e.mechanism)),t.extra=tslib_1.__assign(tslib_1.__assign({},t.extra),{arguments:n}),t}),core_1.captureException(r)}),r}};try{for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])}catch(r){}r.prototype=r.prototype||{},n.prototype=r.prototype,Object.defineProperty(r,”__sentry_wrapped__”,{enumerable:!1,value:n}),Object.defineProperties(n,{__sentry__:{enumerable:!1,value:!0},__sentry_original__:{enumerable:!1,value:r}});try{Object.getOwnPropertyDescriptor(n,”name”).configurable&&Object.defineProperty(n,”name”,{get:function(){return r.name}})}catch(r){}return n}function injectReportDialog(r){if(void 0===r&&(r={}),r.eventId)if(r.dsn){var e=document.createElement(“script”);e.async=!0,e.src=new core_1.API(r.dsn).getReportDialogEndpoint(r),r.onLoad&&(e.onload=r.onLoad),(document.head||document.body).appendChild(e)}else utils_1.logger.error(“Missing dsn option in showReportDialog call”);else utils_1.logger.error(“Missing eventId option in showReportDialog call”)}exports.shouldIgnoreOnError=shouldIgnoreOnError,exports.ignoreNextOnError=ignoreNextOnError,exports.wrap=wrap,exports.injectReportDialog=injectReportDialog; }, {“357″:357,”358″:358,”360”:360}]; window.modules[“364″] = [function(require,module,exports){Object.defineProperty(exports,”__esModule”,{value:!0});var globalhandlers_1=require(372);exports.GlobalHandlers=globalhandlers_1.GlobalHandlers;var trycatch_1=require(373);exports.TryCatch=trycatch_1.TryCatch;var breadcrumbs_1=require(371);exports.Breadcrumbs=breadcrumbs_1.Breadcrumbs;var linkederrors_1=require(374);exports.LinkedErrors=linkederrors_1.LinkedErrors;var useragent_1=require(375);exports.UserAgent=useragent_1.UserAgent; }, {“371″:371,”372″:372,”373″:373,”374″:374,”375”:375}]; window.modules[“365″] = [function(require,module,exports){Object.defineProperty(exports,”__esModule”,{value:!0});var tslib_1=require(357),UNKNOWN_FUNCTION=”?”,chrome=/^s*at (?:(.*?) ?()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack||[-a-z]+:|.*bundle|/).*?)(?::(d+))?(?::(d+))?)?s*$/i,gecko=/^s*(.*?)(?:((.*?)))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|capacitor).*?:/.*?|[native code]|[^@]*(?:bundle|d+.js)|/[w-. /=]+)(?::(d+))?(?::(d+))?s*$/i,winjs=/^s*at (?:((?:[object object])?.+) )?(?((?:file|ms-appx|https?|webpack|blob):.*?):(d+)(?::(d+))?)?s*$/i,geckoEval=/(S+) line (d+)(?: > eval line d+)* > eval/i,chromeEval=/((S*)(?::(d+))(?::(d+)))/,reactMinifiedRegexp=/Minified React error #d+;/i;function computeStackTrace(e){var n=null,a=0;e&&(“number”==typeof e.framesToPop?a=e.framesToPop:reactMinifiedRegexp.test(e.message)&&(a=1));try{if(n=computeStackTraceFromStacktraceProp(e))return popFrames(n,a)}catch(e){}try{if(n=computeStackTraceFromStackProp(e))return popFrames(n,a)}catch(e){}return{message:extractMessage(e),name:e&&e.name,stack:[],failed:!0}}function computeStackTraceFromStackProp(e){if(!e||!e.stack)return null;for(var n,a,r,t=[],c=e.stack.split(“n”),s=0;s eval”)>-1&&(n=geckoEval.exec(a[3]))?(a[1]=a[1]||”eval”,a[3]=n[1],a[4]=n[2],a[5]=””):0!==s||a[5]||void 0===e.columnNumber||(t[0].column=e.columnNumber+1),r={url:a[3],func:a[1]||UNKNOWN_FUNCTION,args:a[2]?a[2].split(“,”):[],line:a[4]?+a[4]:null,column:a[5]?+a[5]:null}}!r.func&&r.line&&(r.func=UNKNOWN_FUNCTION),t.push(r)}return t.length?{message:extractMessage(e),name:e.name,stack:t}:null}function computeStackTraceFromStacktraceProp(e){if(!e||!e.stacktrace)return null;for(var n,a=/ line (d+).*script (?:in )?(S+)(?:: in function (S+))?$/i,r=/ line (d+), column (d+)s*(?:in (?:]+)>|([^)]+))((.*)))? in (.*):s*$/i,t=e.stacktrace.split(“n”),c=[],s=0;s0?t:utils_1.getLocationHref();return 0===e.exception.values[0].stacktrace.frames.length&&e.exception.values[0].stacktrace.frames.push({colno:i,filename:o,function:”?”,in_app:!0,lineno:a}),e},e.id=”GlobalHandlers”,e}();exports.GlobalHandlers=GlobalHandlers; }, {“356″:356,”357″:357,”358″:358,”359″:359,”360″:360,”363”:363}]; window.modules[“373″] = [function(require,module,exports){Object.defineProperty(exports,”__esModule”,{value:!0});var tslib_1=require(357),utils_1=require(360),helpers_1=require(363),DEFAULT_EVENT_TARGET=[“EventTarget”,”Window”,”Node”,”ApplicationCache”,”AudioTrackList”,”ChannelMergerNode”,”CryptoOperation”,”EventSource”,”FileReader”,”HTMLUnknownElement”,”IDBDatabase”,”IDBRequest”,”IDBTransaction”,”KeyOperation”,”MediaController”,”MessagePort”,”ModalWindow”,”Notification”,”SVGElementInstance”,”Screen”,”TextTrack”,”TextTrackCue”,”TextTrackList”,”WebSocket”,”WebSocketWorker”,”Worker”,”XMLHttpRequest”,”XMLHttpRequestEventTarget”,”XMLHttpRequestUpload”],TryCatch=function(){function t(e){this.name=t.id,this._options=tslib_1.__assign({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0},e)}return t.prototype.setupOnce=function(){var t=utils_1.getGlobalObject();(this._options.setTimeout&&utils_1.fill(t,”setTimeout”,this._wrapTimeFunction.bind(this)),this._options.setInterval&&utils_1.fill(t,”setInterval”,this._wrapTimeFunction.bind(this)),this._options.requestAnimationFrame&&utils_1.fill(t,”requestAnimationFrame”,this._wrapRAF.bind(this)),this._options.XMLHttpRequest&&”XMLHttpRequest”in t&&utils_1.fill(XMLHttpRequest.prototype,”send”,this._wrapXHR.bind(this)),this._options.eventTarget)&&(Array.isArray(this._options.eventTarget)?this._options.eventTarget:DEFAULT_EVENT_TARGET).forEach(this._wrapEventTarget.bind(this))},t.prototype._wrapTimeFunction=function(t){return function(){for(var e=[],n=0;nnew Date(Date.now())},t.prototype._handleRateLimit=function(t){var e,r,s,i,n=Date.now(),a=t[“x-sentry-rate-limits”],o=t[“retry-after”];if(a){try{for(var l=tslib_1.__values(a.trim().split(“,”)),u=l.next();!u.done;u=l.next()){var _=u.value.split(“:”,2),p=parseInt(_[0],10),d=1e3*(isNaN(p)?60:p);try{for(var f=(s=void 0,tslib_1.__values(_[1].split(“;”))),y=f.next();!y.done;y=f.next()){var h=y.value;this._rateLimits[h||”all”]=new Date(n+d)}}catch(t){s={error:t}}finally{try{y&&!y.done&&(i=f.return)&&i.call(f)}finally{if(s)throw s.error}}}}catch(t){e={error:t}}finally{try{u&&!u.done&&(r=l.return)&&r.call(l)}finally{if(e)throw e.error}}return!0}return!!o&&(this._rateLimits.all=new Date(n+utils_1.parseRetryAfterHeader(n,o)),!0)},t}();exports.BaseTransport=BaseTransport; }, {“357″:357,”358″:358,”359″:359,”360”:360}]; window.modules[“377″] = [function(require,module,exports){Object.defineProperty(exports,”__esModule”,{value:!0});var tslib_1=require(357),core_1=require(358),utils_1=require(360),base_1=require(376);function getNativeFetchImplementation(){var e,t,r=utils_1.getGlobalObject();if(utils_1.isNativeFetch(r.fetch))return r.fetch.bind(r);var i=r.document,s=r.fetch;if(“function”==typeof(null===(e=i)||void 0===e?void 0:e.createElement))try{var n=i.createElement(“iframe”);n.hidden=!0,i.head.appendChild(n),(null===(t=n.contentWindow)||void 0===t?void 0:t.fetch)&&(s=n.contentWindow.fetch),i.head.removeChild(n)}catch(e){utils_1.logger.warn(“Could not create sandbox iframe for pure fetch check, bailing to window.fetch: “,e)}return s.bind(r)}var FetchTransport=function(e){function t(t,r){void 0===r&&(r=getNativeFetchImplementation());var i=e.call(this,t)||this;return i._fetch=r,i}return tslib_1.__extends(t,e),t.prototype.sendEvent=function(e){return this._sendRequest(core_1.eventToSentryRequest(e,this._api),e)},t.prototype.sendSession=function(e){return this._sendRequest(core_1.sessionToSentryRequest(e,this._api),e)},t.prototype._sendRequest=function(e,t){var r=this;if(this._isRateLimited(e.type))return Promise.reject({event:t,type:e.type,reason:”Transport locked till “+this._disabledUntil(e.type)+” due to too many requests.”,status:429});var i={body:e.body,method:”POST”,referrerPolicy:utils_1.supportsReferrerPolicy()?”origin”:””};return void 0!==this.options.fetchParameters&&Object.assign(i,this.options.fetchParameters),void 0!==this.options.headers&&(i.headers=this.options.headers),this._buffer.add(new utils_1.SyncPromise(function(t,s){r._fetch(e.url,i).then(function(i){var n={“x-sentry-rate-limits”:i.headers.get(“X-Sentry-Rate-Limits”),”retry-after”:i.headers.get(“Retry-After”)};r._handleResponse({requestType:e.type,response:i,headers:n,resolve:t,reject:s})}).catch(s)}))},t}(base_1.BaseTransport);exports.FetchTransport=FetchTransport; }, {“357″:357,”358″:358,”360″:360,”376”:376}]; window.modules[“378″] = [function(require,module,exports){Object.defineProperty(exports,”__esModule”,{value:!0});var tslib_1=require(357),core_1=require(358),utils_1=require(360),base_1=require(376),XHRTransport=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return tslib_1.__extends(t,e),t.prototype.sendEvent=function(e){return this._sendRequest(core_1.eventToSentryRequest(e,this._api),e)},t.prototype.sendSession=function(e){return this._sendRequest(core_1.sessionToSentryRequest(e,this._api),e)},t.prototype._sendRequest=function(e,t){var s=this;return this._isRateLimited(e.type)?Promise.reject({event:t,type:e.type,reason:”Transport locked till “+this._disabledUntil(e.type)+” due to too many requests.”,status:429}):this._buffer.add(new utils_1.SyncPromise(function(t,r){var n=new XMLHttpRequest;for(var o in n.onreadystatechange=function(){if(4===n.readyState){var o={“x-sentry-rate-limits”:n.getResponseHeader(“X-Sentry-Rate-Limits”),”retry-after”:n.getResponseHeader(“Retry-After”)};s._handleResponse({requestType:e.type,response:n,headers:o,resolve:t,reject:r})}},n.open(“POST”,e.url),s.options.headers)s.options.headers.hasOwnProperty(o)&&n.setRequestHeader(o,s.options.headers[o]);n.send(e.body)}))},t}(base_1.BaseTransport);exports.XHRTransport=XHRTransport; }, {“357″:357,”358″:358,”360″:360,”376”:376}]; window.modules[“379″] = [function(require,module,exports){Object.defineProperty(exports,”__esModule”,{value:!0});var utils_1=require(360),SENTRY_API_VERSION=”7″,API=function(){function t(t,e){void 0===e&&(e={}),this.dsn=t,this._dsnObject=new utils_1.Dsn(t),this.metadata=e}return t.prototype.getDsn=function(){return this._dsnObject},t.prototype.getBaseApiEndpoint=function(){var t=this._dsnObject,e=t.protocol?t.protocol+”:”:””,n=t.port?”:”+t.port:””;return e+”//”+t.host+n+(t.path?”/”+t.path:””)+”/api/”},t.prototype.getStoreEndpoint=function(){return this._getIngestEndpoint(“store”)},t.prototype.getStoreEndpointWithUrlEncodedAuth=function(){return this.getStoreEndpoint()+”?”+this._encodedAuth()},t.prototype.getEnvelopeEndpointWithUrlEncodedAuth=function(){return this._getEnvelopeEndpoint()+”?”+this._encodedAuth()},t.prototype.getStoreEndpointPath=function(){var t=this._dsnObject;return(t.path?”/”+t.path:””)+”/api/”+t.projectId+”/store/”},t.prototype.getRequestHeaders=function(t,e){var n=this._dsnObject,o=[“Sentry sentry_version=”+SENTRY_API_VERSION];return o.push(“sentry_client=”+t+”/”+e),o.push(“sentry_key=”+n.publicKey),n.pass&&o.push(“sentry_secret=”+n.pass),{“Content-Type”:”application/json”,”X-Sentry-Auth”:o.join(“, “)}},t.prototype.getReportDialogEndpoint=function(t){void 0===t&&(t={});var e=this._dsnObject,n=this.getBaseApiEndpoint()+”embed/error-page/”,o=[];for(var r in o.push(“dsn=”+e.toString()),t)if(“dsn”!==r)if(“user”===r){if(!t.user)continue;t.user.name&&o.push(“name=”+encodeURIComponent(t.user.name)),t.user.email&&o.push(“email=”+encodeURIComponent(t.user.email))}else o.push(encodeURIComponent(r)+”=”+encodeURIComponent(t[r]));return o.length?n+”?”+o.join(“&”):n},t.prototype._getEnvelopeEndpoint=function(){return this._getIngestEndpoint(“envelope”)},t.prototype._getIngestEndpoint=function(t){return””+this.getBaseApiEndpoint()+this._dsnObject.projectId+”/”+t+”/”},t.prototype._encodedAuth=function(){var t={sentry_key:this._dsnObject.publicKey,sentry_version:SENTRY_API_VERSION};return utils_1.urlEncode(t)},t}();exports.API=API; }, {“360”:360}]; window.modules[“380″] = [function(require,module,exports){Object.defineProperty(exports,”__esModule”,{value:!0});var utils_1=require(360),noop_1=require(381),BaseBackend=function(){function t(t){this._options=t,this._options.dsn||utils_1.logger.warn(“No DSN provided, backend will not do anything.”),this._transport=this._setupTransport()}return t.prototype.eventFromException=function(t,e){throw new utils_1.SentryError(“Backend has to implement `eventFromException` method”)},t.prototype.eventFromMessage=function(t,e,n){throw new utils_1.SentryError(“Backend has to implement `eventFromMessage` method”)},t.prototype.sendEvent=function(t){this._transport.sendEvent(t).then(null,function(t){utils_1.logger.error(“Error while sending event: “+t)})},t.prototype.sendSession=function(t){this._transport.sendSession?this._transport.sendSession(t).then(null,function(t){utils_1.logger.error(“Error while sending session: “+t)}):utils_1.logger.warn(“Dropping session because custom transport doesn’t implement sendSession”)},t.prototype.getTransport=function(){return this._transport},t.prototype._setupTransport=function(){return new noop_1.NoopTransport},t}();exports.BaseBackend=BaseBackend; }, {“360″:360,”381”:381}]; window.modules[“381″] = [function(require,module,exports){Object.defineProperty(exports,”__esModule”,{value:!0});var types_1=require(359),utils_1=require(360),NoopTransport=function(){function e(){}return e.prototype.sendEvent=function(e){return utils_1.SyncPromise.resolve({reason:”NoopTransport: Event has been skipped because no Dsn is configured.”,status:types_1.Status.Skipped})},e.prototype.close=function(e){return utils_1.SyncPromise.resolve(!0)},e}();exports.NoopTransport=NoopTransport; }, {“359″:359,”360”:360}]; window.modules[“382″] = [function(require,module,exports){Object.defineProperty(exports,”__esModule”,{value:!0});var tslib_1=require(357),hub_1=require(383),types_1=require(359),utils_1=require(360),integration_1=require(384),BaseClient=function(){function t(t,e){this._integrations={},this._processing=0,this._backend=new t(e),this._options=e,e.dsn&&(this._dsn=new utils_1.Dsn(e.dsn))}return t.prototype.captureException=function(t,e,n){var r=this,i=e&&e.event_id;return this._process(this._getBackend().eventFromException(t,e).then(function(t){return r._captureEvent(t,e,n)}).then(function(t){i=t})),i},t.prototype.captureMessage=function(t,e,n,r){var i=this,s=n&&n.event_id,o=utils_1.isPrimitive(t)?this._getBackend().eventFromMessage(String(t),e,n):this._getBackend().eventFromException(t,n);return this._process(o.then(function(t){return i._captureEvent(t,n,r)}).then(function(t){s=t})),s},t.prototype.captureEvent=function(t,e,n){var r=e&&e.event_id;return this._process(this._captureEvent(t,e,n).then(function(t){r=t})),r},t.prototype.captureSession=function(t){“string”!=typeof t.release?utils_1.logger.warn(“Discarded session because of missing or non-string release”):(this._sendSession(t),t.update({init:!1}))},t.prototype.getDsn=function(){return this._dsn},t.prototype.getOptions=function(){return this._options},t.prototype.flush=function(t){var e=this;return this._isClientProcessing(t).then(function(n){return e._getBackend().getTransport().close(t).then(function(t){return n&&t})})},t.prototype.close=function(t){var e=this;return this.flush(t).then(function(t){return e.getOptions().enabled=!1,t})},t.prototype.setupIntegrations=function(){this._isEnabled()&&(this._integrations=integration_1.setupIntegrations(this._options))},t.prototype.getIntegration=function(t){try{return this._integrations[t.id]||null}catch(e){return utils_1.logger.warn(“Cannot retrieve integration “+t.id+” from the current Client”),null}},t.prototype._updateSessionFromEvent=function(t,e){var n,r,i,s=!1,o=!1,a=e.exception&&e.exception.values;if(a){o=!0;try{for(var u=tslib_1.__values(a),l=u.next();!l.done;l=u.next()){var _=l.value.mechanism;if(_&&!1===_.handled){s=!0;break}}}catch(t){n={error:t}}finally{try{l&&!l.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}}var c=e.user;if(!t.userAgent){var p=e.request?e.request.headers:{};for(var d in p)if(“user-agent”===d.toLowerCase()){i=p[d];break}}t.update(tslib_1.__assign(tslib_1.__assign({},s&&{status:types_1.SessionStatus.Crashed}),{user:c,userAgent:i,errors:t.errors+Number(o||s)})),this.captureSession(t)},t.prototype._sendSession=function(t){this._getBackend().sendSession(t)},t.prototype._isClientProcessing=function(t){var e=this;return new utils_1.SyncPromise(function(n){var r=0,i=setInterval(function(){0==e._processing?(clearInterval(i),n(!0)):(r+=1,t&&r>=t&&(clearInterval(i),n(!1)))},1)})},t.prototype._getBackend=function(){return this._backend},t.prototype._isEnabled=function(){return!1!==this.getOptions().enabled&&void 0!==this._dsn},t.prototype._prepareEvent=function(t,e,n){var r=this,i=this.getOptions().normalizeDepth,s=void 0===i?3:i,o=tslib_1.__assign(tslib_1.__assign({},t),{event_id:t.event_id||(n&&n.event_id?n.event_id:utils_1.uuid4()),timestamp:t.timestamp||utils_1.dateTimestampInSeconds()});this._applyClientOptions(o),this._applyIntegrationsMetadata(o);var a=e;n&&n.captureContext&&(a=hub_1.Scope.clone(a).update(n.captureContext));var u=utils_1.SyncPromise.resolve(o);return a&&(u=a.applyToEvent(o,n)),u.then(function(t){return”number”==typeof s&&s>0?r._normalizeEvent(t,s):t})},t.prototype._normalizeEvent=function(t,e){if(!t)return null;var n=tslib_1.__assign(tslib_1.__assign(tslib_1.__assign(tslib_1.__assign(tslib_1.__assign({},t),t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map(function(t){return tslib_1.__assign(tslib_1.__assign({},t),t.data&&{data:utils_1.normalize(t.data,e)})})}),t.user&&{user:utils_1.normalize(t.user,e)}),t.contexts&&{contexts:utils_1.normalize(t.contexts,e)}),t.extra&&{extra:utils_1.normalize(t.extra,e)});return t.contexts&&t.contexts.trace&&(n.contexts.trace=t.contexts.trace),n},t.prototype._applyClientOptions=function(t){var e=this.getOptions(),n=e.environment,r=e.release,i=e.dist,s=e.maxValueLength,o=void 0===s?250:s;”environment”in t||(t.environment=”environment”in e?n:”production”),void 0===t.release&&void 0!==r&&(t.release=r),void 0===t.dist&&void 0!==i&&(t.dist=i),t.message&&(t.message=utils_1.truncate(t.message,o));var a=t.exception&&t.exception.values&&t.exception.values[0];a&&a.value&&(a.value=utils_1.truncate(a.value,o));var u=t.request;u&&u.url&&(u.url=utils_1.truncate(u.url,o))},t.prototype._applyIntegrationsMetadata=function(t){var e=Object.keys(this._integrations);e.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=tslib_1.__spread(t.sdk.integrations||[],e))},t.prototype._sendEvent=function(t){this._getBackend().sendEvent(t)},t.prototype._captureEvent=function(t,e,n){return this._processEvent(t,e,n).then(function(t){return t.event_id},function(t){utils_1.logger.error(t)})},t.prototype._processEvent=function(t,e,n){var r=this,i=this.getOptions(),s=i.beforeSend,o=i.sampleRate;if(!this._isEnabled())return utils_1.SyncPromise.reject(new utils_1.SentryError(“SDK not enabled, will not send event.”));var a=”transaction”===t.type;return!a&&”number”==typeof o&&Math.random()>o?utils_1.SyncPromise.reject(new utils_1.SentryError(“Discarding event because it’s not included in the random sample (sampling rate = “+o+”)”)):this._prepareEvent(t,n,e).then(function(t){if(null===t)throw new utils_1.SentryError(“An event processor returned null, will not send event.”);if(e&&e.data&&!0===e.data.__sentry__||a||!s)return t;var n=s(t,e);if(void 0===n)throw new utils_1.SentryError(“`beforeSend` method has to return `null` or a valid event.”);return utils_1.isThenable(n)?n.then(function(t){return t},function(t){throw new utils_1.SentryError(“beforeSend rejected with “+t)}):n}).then(function(t){if(null===t)throw new utils_1.SentryError(“`beforeSend` returned `null`, will not send event.”);var e=n&&n.getSession&&n.getSession();return!a&&e&&r._updateSessionFromEvent(e,t),r._sendEvent(t),t}).then(null,function(t){if(t instanceof utils_1.SentryError)throw t;throw r.captureException(t,{data:{__sentry__:!0},originalException:t}),new utils_1.SentryError(“Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.nReason: “+t)})},t.prototype._process=function(t){var e=this;this._processing+=1,t.then(function(t){return e._processing-=1,t},function(t){return e._processing-=1,t})},t}();exports.BaseClient=BaseClient; }, {“357″:357,”359″:359,”360″:360,”383″:383,”384”:384}]; window.modules[“383″] = [function(require,module,exports){Object.defineProperty(exports,”__esModule”,{value:!0});var scope_1=require(393);exports.addGlobalEventProcessor=scope_1.addGlobalEventProcessor,exports.Scope=scope_1.Scope;var session_1=require(394);exports.Session=session_1.Session;var hub_1=require(392);exports.getActiveDomain=hub_1.getActiveDomain,exports.getCurrentHub=hub_1.getCurrentHub,exports.getHubFromCarrier=hub_1.getHubFromCarrier,exports.getMainCarrier=hub_1.getMainCarrier,exports.Hub=hub_1.Hub,exports.makeMain=hub_1.makeMain,exports.setHubOnCarrier=hub_1.setHubOnCarrier; }, {“392″:392,”393″:393,”394”:394}]; window.modules[“384″] = [function(require,module,exports){Object.defineProperty(exports,”__esModule”,{value:!0});var tslib_1=require(357),hub_1=require(383),utils_1=require(360);function getIntegrationsToSetup(e){var t=e.defaultIntegrations&&tslib_1.__spread(e.defaultIntegrations)||[],n=e.integrations,r=[];if(Array.isArray(n)){var s=n.map(function(e){return e.name}),a=[];t.forEach(function(e){-1===s.indexOf(e.name)&&-1===a.indexOf(e.name)&&(r.push(e),a.push(e.name))}),n.forEach(function(e){-1===a.indexOf(e.name)&&(r.push(e),a.push(e.name))})}else”function”==typeof n?(r=n(t),r=Array.isArray(r)?r:[r]):r=tslib_1.__spread(t);var i=r.map(function(e){return e.name});return-1!==i.indexOf(“Debug”)&&r.push.apply(r,tslib_1.__spread(r.splice(i.indexOf(“Debug”),1))),r}function setupIntegration(e){-1===exports.installedIntegrations.indexOf(e.name)&&(e.setupOnce(hub_1.addGlobalEventProcessor,hub_1.getCurrentHub),exports.installedIntegrations.push(e.name),utils_1.logger.log(“Integration installed: “+e.name))}function setupIntegrations(e){var t={};return getIntegrationsToSetup(e).forEach(function(e){t[e.name]=e,setupIntegration(e)}),t}exports.installedIntegrations=[],exports.getIntegrationsToSetup=getIntegrationsToSetup,exports.setupIntegration=setupIntegration,exports.setupIntegrations=setupIntegrations; }, {“357″:357,”360″:360,”383”:383}]; window.modules[“385″] = [function(require,module,exports){Object.defineProperty(exports,”__esModule”,{value:!0}),exports.SDK_VERSION=”6.3.5″; }, {}]; window.modules[“386″] = [function(require,module,exports){Object.defineProperty(exports,”__esModule”,{value:!0});var tslib_1=require(357);function getSdkMetadataForEnvelopeHeader(e){if(e.metadata&&e.metadata.sdk){var t=e.metadata.sdk;return{name:t.name,version:t.version}}}function enhanceEventWithSdkInfo(e,t){return t?(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=tslib_1.__spread(e.sdk.integrations||[],t.integrations||[]),e.sdk.packages=tslib_1.__spread(e.sdk.packages||[],t.packages||[]),e):e}function sessionToSentryRequest(e,t){var n=getSdkMetadataForEnvelopeHeader(t);return{body:JSON.stringify(tslib_1.__assign({sent_at:(new Date).toISOString()},n&&{sdk:n}))+”n”+JSON.stringify({type:”session”})+”n”+JSON.stringify(e),type:”session”,url:t.getEnvelopeEndpointWithUrlEncodedAuth()}}function eventToSentryRequest(e,t){var n=getSdkMetadataForEnvelopeHeader(t),s=e.type||”event”,a=”transaction”===s,r=e.debug_meta||{},i=r.transactionSampling,d=tslib_1.__rest(r,[“transactionSampling”]),o=i||{},g=o.method,p=o.rate;0===Object.keys(d).length?delete e.debug_meta:e.debug_meta=d;var _={body:JSON.stringify(n?enhanceEventWithSdkInfo(e,t.metadata.sdk):e),type:s,url:a?t.getEnvelopeEndpointWithUrlEncodedAuth():t.getStoreEndpointWithUrlEncodedAuth()};if(a){var u=JSON.stringify(tslib_1.__assign({event_id:e.event_id,sent_at:(new Date).toISOString()},n&&{sdk:n}))+”n”+JSON.stringify({type:e.type,sample_rates:[{id:g,rate:p}]})+”n”+_.body;_.body=u}return _}exports.sessionToSentryRequest=sessionToSentryRequest,exports.eventToSentryRequest=eventToSentryRequest; }, {“357”:357}]; window.modules[“387″] = [function(require,module,exports){Object.defineProperty(exports,”__esModule”,{value:!0});var hub_1=require(383),utils_1=require(360);function initAndBind(e,n){!0===n.debug&&utils_1.logger.enable();var i=hub_1.getCurrentHub(),t=new e(n);i.bindClient(t)}exports.initAndBind=initAndBind; }, {“360″:360,”383”:383}]; window.modules[“388″] = [function(require,module,exports){Object.defineProperty(exports,”__esModule”,{value:!0});var tslib_1=require(357),hub_1=require(383);function callOnHub(t){for(var e=[],r=1;r0?t.breadcrumbs:void 0,this._notifyEventProcessors(tslib_1.__spread(getGlobalEventProcessors(),this._eventProcessors),t,s)},t.prototype._notifyEventProcessors=function(t,s,e,i){var n=this;return void 0===i&&(i=0),new utils_1.SyncPromise(function(r,_){var o=t[i];if(null===s||”function”!=typeof o)r(s);else{var a=o(tslib_1.__assign({},s),e);utils_1.isThenable(a)?a.then(function(s){return n._notifyEventProcessors(t,s,e,i+1).then(r)}).then(null,_):n._notifyEventProcessors(t,a,e,i+1).then(r).then(null,_)}})},t.prototype._notifyScopeListeners=function(){var t=this;this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(function(s){s(t)}),this._notifyingListeners=!1)},t.prototype._applyFingerprint=function(t){t.fingerprint=t.fingerprint?Array.isArray(t.fingerprint)?t.fingerprint:[t.fingerprint]:[],this._fingerprint&&(t.fingerprint=t.fingerprint.concat(this._fingerprint)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint},t}();function getGlobalEventProcessors(){var t=utils_1.getGlobalObject();return t.__SENTRY__=t.__SENTRY__||{},t.__SENTRY__.globalEventProcessors=t.__SENTRY__.globalEventProcessors||[],t.__SENTRY__.globalEventProcessors}function addGlobalEventProcessor(t){getGlobalEventProcessors().push(t)}exports.Scope=Scope,exports.addGlobalEventProcessor=addGlobalEventProcessor; }, {“357″:357,”360”:360}]; window.modules[“394″] = [function(require,module,exports){Object.defineProperty(exports,”__esModule”,{value:!0});var types_1=require(359),utils_1=require(360),Session=function(){function t(t){this.errors=0,this.sid=utils_1.uuid4(),this.timestamp=Date.now(),this.started=Date.now(),this.duration=0,this.status=types_1.SessionStatus.Ok,this.init=!0,t&&this.update(t)}return t.prototype.update=function(t){void 0===t&&(t={}),t.user&&(t.user.ip_address&&(this.ipAddress=t.user.ip_address),t.did||(this.did=t.user.id||t.user.email||t.user.username)),this.timestamp=t.timestamp||Date.now(),t.sid&&(this.sid=32===t.sid.length?t.sid:utils_1.uuid4()),void 0!==t.init&&(this.init=t.init),t.did&&(this.did=””+t.did),”number”==typeof t.started&&(this.started=t.started),”number”==typeof t.duration?this.duration=t.duration:this.duration=this.timestamp-this.started,t.release&&(this.release=t.release),t.environment&&(this.environment=t.environment),t.ipAddress&&(this.ipAddress=t.ipAddress),t.userAgent&&(this.userAgent=t.userAgent),”number”==typeof t.errors&&(this.errors=t.errors),t.status&&(this.status=t.status)},t.prototype.close=function(t){t?this.update({status:t}):this.status===types_1.SessionStatus.Ok?this.update({status:types_1.SessionStatus.Exited}):this.update()},t.prototype.toJSON=function(){return utils_1.dropUndefinedKeys({sid:””+this.sid,init:this.init,started:new Date(this.started).toISOString(),timestamp:new Date(this.timestamp).toISOString(),status:this.status,errors:this.errors,did:”number”==typeof this.did||”string”==typeof this.did?””+this.did:void 0,duration:this.duration,attrs:utils_1.dropUndefinedKeys({release:this.release,environment:this.environment,ip_address:this.ipAddress,user_agent:this.userAgent})})},t}();exports.Session=Session; }, {“359″:359,”360”:360}]; window.modules[“395″] = [function(require,module,exports){var SessionStatus;Object.defineProperty(exports,”__esModule”,{value:!0}),function(e){e.Ok=”ok”,e.Exited=”exited”,e.Crashed=”crashed”,e.Abnormal=”abnormal”}(SessionStatus=exports.SessionStatus||(exports.SessionStatus={})); }, {}]; window.modules[“396″] = [function(require,module,exports){var Severity;Object.defineProperty(exports,”__esModule”,{value:!0}),function(r){r.Fatal=”fatal”,r.Error=”error”,r.Warning=”warning”,r.Log=”log”,r.Info=”info”,r.Debug=”debug”,r.Critical=”critical”}(Severity=exports.Severity||(exports.Severity={})),function(r){r.fromString=function(e){switch(e){case”debug”:return r.Debug;case”info”:return r.Info;case”warn”:case”warning”:return r.Warning;case”error”:return r.Error;case”fatal”:return r.Fatal;case”critical”:return r.Critical;case”log”:default:return r.Log}}}(Severity=exports.Severity||(exports.Severity={})); }, {}]; window.modules[“397″] = [function(require,module,exports){var TransactionSamplingMethod;Object.defineProperty(exports,”__esModule”,{value:!0}),function(e){e.Explicit=”explicitly_set”,e.Sampler=”client_sampler”,e.Rate=”client_rate”,e.Inheritance=”inheritance”}(TransactionSamplingMethod=exports.TransactionSamplingMethod||(exports.TransactionSamplingMethod={})); }, {}]; window.modules[“398″] = [function(require,module,exports){var Status;Object.defineProperty(exports,”__esModule”,{value:!0}),function(t){t.Unknown=”unknown”,t.Skipped=”skipped”,t.Success=”success”,t.RateLimit=”rate_limit”,t.Invalid=”invalid”,t.Failed=”failed”}(Status=exports.Status||(exports.Status={})),function(t){t.fromHttpCode=function(e){return e>=200&&e<300?t.Success:429===e?t.RateLimit:e>=400&&e<500?t.Invalid:e>=500?t.Failed:t.Unknown}}(Status=exports.Status||(exports.Status={})); }, {}]; window.modules[“399″] = [function(require,module,exports){var LogLevel;Object.defineProperty(exports,”__esModule”,{value:!0}),function(e){e[e.None=0]=”None”,e[e.Error=1]=”Error”,e[e.Debug=2]=”Debug”,e[e.Verbose=3]=”Verbose”}(LogLevel=exports.LogLevel||(exports.LogLevel={})); }, {}]; window.modules[“400″] = [function(require,module,exports){function forget(e){e.then(null,function(e){console.error(e)})}Object.defineProperty(exports,”__esModule”,{value:!0}),exports.forget=forget; }, {}]; window.modules[“401″] = [function(require,module,exports){Object.defineProperty(exports,”__esModule”,{value:!0});var is_1=require(402);function htmlTreeAsString(e){try{for(var t=e,r=[],n=0,i=0,s=” > “.length,l=void 0;t&&n++<5&&!("html"===(l=_htmlElementAsString(t))||n>1&&i+r.length*s+l.length>=80);)r.push(l),i+=l.length,t=t.parentNode;return r.reverse().join(” > “)}catch(e){return””}}function _htmlElementAsString(e){var t,r,n,i,s,l=e,h=[];if(!l||!l.tagName)return””;if(h.push(l.tagName.toLowerCase()),l.id&&h.push(“#”+l.id),(t=l.className)&&is_1.isString(t))for(r=t.split(/s+/),s=0;s1&&(l=E.slice(0,-1).join(“/”),a=E.pop()),a){var _=a.match(/^d+/);_&&(a=_[0])}this._fromComponents({host:n,pass:s,path:l,projectId:a,port:c,protocol:i,publicKey:e})},t.prototype._fromComponents=function(t){“user”in t&&!(“publicKey”in t)&&(t.publicKey=t.user),this.user=t.publicKey||””,this.protocol=t.protocol,this.publicKey=t.publicKey||””,this.pass=t.pass||””,this.host=t.host,this.port=t.port||””,this.path=t.path||””,this.projectId=t.projectId},t.prototype._validate=function(){var t=this;if([“protocol”,”publicKey”,”host”,”projectId”].forEach(function(r){if(!t[r])throw new error_1.SentryError(ERROR_MESSAGE+”: “+r+” missing”)}),!this.projectId.match(/^d+$/))throw new error_1.SentryError(ERROR_MESSAGE+”: Invalid projectId “+this.projectId);if(“http”!==this.protocol&&”https”!==this.protocol)throw new error_1.SentryError(ERROR_MESSAGE+”: Invalid protocol “+this.protocol);if(this.port&&isNaN(parseInt(this.port,10)))throw new error_1.SentryError(ERROR_MESSAGE+”: Invalid port “+this.port)},t}();exports.Dsn=Dsn; }, {“357″:357,”404”:404}]; window.modules[“404″] = [function(require,module,exports){Object.defineProperty(exports,”__esModule”,{value:!0});var tslib_1=require(357),polyfill_1=require(405),SentryError=function(r){function t(t){var e=this.constructor,o=r.call(this,t)||this;return o.message=t,o.name=e.prototype.constructor.name,polyfill_1.setPrototypeOf(o,e.prototype),o}return tslib_1.__extends(t,r),t}(Error);exports.SentryError=SentryError; }, {“357″:357,”405”:405}]; window.modules[“405″] = [function(require,module,exports){function setProtoOf(t,e){return t.__proto__=e,t}function mixinProperties(t,e){for(var r in e)t.hasOwnProperty(r)||(t[r]=e[r]);return t}Object.defineProperty(exports,”__esModule”,{value:!0}),exports.setPrototypeOf=Object.setPrototypeOf||({__proto__:[]}instanceof Array?setProtoOf:mixinProperties); }, {}]; window.modules[“406″] = [function(require,module,exports){Object.defineProperty(exports,”__esModule”,{value:!0});var Memo=function(){function e(){this._hasWeakSet=”function”==typeof WeakSet,this._inner=this._hasWeakSet?new WeakSet:[]}return e.prototype.memoize=function(e){if(this._hasWeakSet)return!!this._inner.has(e)||(this._inner.add(e),!1);for(var t=0;t=0?r[i]:”/”;o&&(t=o+”/”+t,n=”/”===o.charAt(0))}return(n?”/”:””)+(t=normalizeArray(t.split(“/”).filter(function(r){return!!r}),!n).join(“/”))||”.”}function trim(r){for(var e=0;e=0&&””===r[t];t–);return e>t?[]:r.slice(e,t-e+1)}function relative(r,e){r=resolve(r).substr(1),e=resolve(e).substr(1);for(var t=trim(r.split(“/”)),n=trim(e.split(“/”)),i=Math.min(t.length,n.length),o=i,s=0;sr-5&&(s=r),s===r&&(i=Math.max(s-140,0)),e=e.slice(i,s),i>0&&(e=”‘{snip} “+e),st?normalizeToSize(e,r-1,t):n}function serializeValue(e){var r=Object.prototype.toString.call(e);if(“string”==typeof e)return e;if(“[object Object]”===r)return”[Object]”;if(“[object Array]”===r)return”[Array]”;var t=normalizeValue(e);return is_1.isPrimitive(t)?t:r}function normalizeValue(e,r){return”domain”===r&&e&&”object”==typeof e&&e._events?”[Domain]”:”domainEmitter”===r?”[DomainEmitter]”:”undefined”!=typeof global&&e===global?”[Global]”:”undefined”!=typeof window&&e===window?”[Window]”:”undefined”!=typeof document&&e===document?”[Document]”:is_1.isSyntheticEvent(e)?”[SyntheticEvent]”:”number”==typeof e&&e!=e?”[NaN]”:void 0===e?”[undefined]”:”function”==typeof e?”[Function: “+stacktrace_1.getFunctionName(e)+”]”:”symbol”==typeof e?”[“+String(e)+”]”:”bigint”==typeof e?”[BigInt: “+String(e)+”]”:e}function walk(e,r,t,n){if(void 0===t&&(t=1/0),void 0===n&&(n=new memo_1.Memo),0===t)return serializeValue(r);if(null!=r&&”function”==typeof r.toJSON)return r.toJSON();var i=normalizeValue(r,e);if(is_1.isPrimitive(i))return i;var o=getWalkSource(r),a=Array.isArray(r)?[]:{};if(n.memoize(r))return”[Circular ~]”;for(var s in o)Object.prototype.hasOwnProperty.call(o,s)&&(a[s]=walk(s,o[s],t-1,n));return n.unmemoize(r),a}function normalize(e,r){try{return JSON.parse(JSON.stringify(e,function(e,t){return walk(e,t,r)}))}catch(e){return”**non-serializable**”}}function extractExceptionKeysForMessage(e,r){void 0===r&&(r=40);var t=Object.keys(getWalkSource(e));if(t.sort(),!t.length)return”[object has no keys]”;if(t[0].length>=r)return string_1.truncate(t[0],r);for(var n=t.length;n>0;n–){var i=t.slice(0,n).join(“, “);if(!(i.length>r))return n===t.length?i:string_1.truncate(i,r)}return””}function dropUndefinedKeys(e){var r,t;if(is_1.isPlainObject(e)){var n=e,i={};try{for(var o=tslib_1.__values(Object.keys(n)),a=o.next();!a.done;a=o.next()){var s=a.value;void 0!==n[s]&&(i[s]=dropUndefinedKeys(n[s]))}}catch(e){r={error:e}}finally{try{a&&!a.done&&(t=o.return)&&t.call(o)}finally{if(r)throw r.error}}return i}return Array.isArray(e)?e.map(dropUndefinedKeys):e}exports.fill=fill,exports.urlEncode=urlEncode,exports.normalizeToSize=normalizeToSize,exports.walk=walk,exports.normalize=normalize,exports.extractExceptionKeysForMessage=extractExceptionKeysForMessage,exports.dropUndefinedKeys=dropUndefinedKeys; }).call(this)}).call(this,typeof global !== “undefined” ? global : typeof self !== “undefined” ? self : typeof window !== “undefined” ? window : {})}, {“357″:357,”401″:401,”402″:402,”406″:406,”408″:408,”414”:414}]; window.modules[“442”] = [function(require,module,exports){}, {}]; window.modules[“447”] = [function(require,module,exports){(function (process,global){(function (){ !function(t,e){“object”==typeof exports&&”undefined”!=typeof module?e(exports):”function”==typeof define&&define.amd?define([“exports”],e):e((t=t||self).auth0={})}(this,function(t){“use strict”;var e=”undefined”!=typeof globalThis?globalThis:”undefined”!=typeof window?window:”undefined”!=typeof global?global:”undefined”!=typeof self?self:{};function r(t,e){return t(e={exports:{}},e.exports),e.exports}var n=r(function(t){var r,n;r=e,n=function(){return function(){return function(t){var e=[];if(0===t.length)return””;if(“string”!=typeof t[0])throw new TypeError(“Url must be a string. Received “+t[0]);if(t[0].match(/^[^/:]+:/*$/)&&t.length>1){var r=t.shift();t[0]=r+t[0]}t[0].match(/^file:////)?t[0]=t[0].replace(/^([^/:]+):/*/,”$1:///”):t[0]=t[0].replace(/^([^/:]+):/*/,”$1://”);for(var n=0;n0&&(i=i.replace(/^[/]+/,””)),i=n0?”?”:””)+s.join(“&”)}(“object”==typeof arguments[0]?arguments[0]:[].slice.call(arguments))}},t.exports?t.exports=n():r.urljoin=n()}),i=Object.prototype.hasOwnProperty,o=Array.isArray,s=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),a=function(t,e){for(var r=e&&e.plainObjects?Object.create(null):{},n=0;n1;){var e=t.pop(),r=e.obj[e.prop];if(o(r)){for(var n=[],i=0;i6]+s[128|63&a]:a<55296||a>=57344?i+=s[224|a>>12]+s[128|a>>6&63]+s[128|63&a]:(o+=1,a=65536+((1023&a)>18]+s[128|a>>12&63]+s[128|a>>6&63]+s[128|63&a])}return i},isBuffer:function(t){return!(!t||”object”!=typeof t||!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t)))},isRegExp:function(t){return”[object RegExp]”===Object.prototype.toString.call(t)},maybeMap:function(t,e){if(o(t)){for(var r=[],n=0;n0&&/([[^[]]*])/.exec(i),a=s?i.slice(0,s.index):i,u=[];if(a){if(!r.plainObjects&&T.call(Object.prototype,a)&&!r.allowPrototypes)return;u.push(a)}for(var c=0;r.depth>0&&null!==(s=o.exec(i))&&c=0;–o){var s,a=t[o];if(“[]”===a&&r.parseArrays)s=[].concat(i);else{s=r.plainObjects?Object.create(null):{};var u=”[“===a.charAt(0)&&”]”===a.charAt(a.length-1)?a.slice(1,-1):a,c=parseInt(u,10);r.parseArrays||””!==u?!isNaN(c)&&a!==u&&String(c)===u&&c>=0&&r.parseArrays&&c<=r.arrayLimit?(s=[])[c]=i:s[u]=i:s={0:i}}i=s}return i}(u,e,r,n)}},D=function(t,e){var r,n=t,i=function(t){if(!t)return w;if(null!==t.encoder&&void 0!==t.encoder&&"function"!=typeof t.encoder)throw new TypeError("Encoder has to be a function.");var e=t.charset||w.charset;if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=l.default;if(void 0!==t.format){if(!f.call(l.formatters,t.format))throw new TypeError("Unknown format option provided.");r=t.format}var n=l.formatters[r],i=w.filter;return("function"==typeof t.filter||y(t.filter))&&(i=t.filter),{addQueryPrefix:"boolean"==typeof t.addQueryPrefix?t.addQueryPrefix:w.addQueryPrefix,allowDots:void 0===t.allowDots?w.allowDots:!!t.allowDots,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:w.charsetSentinel,delimiter:void 0===t.delimiter?w.delimiter:t.delimiter,encode:"boolean"==typeof t.encode?t.encode:w.encode,encoder:"function"==typeof t.encoder?t.encoder:w.encoder,encodeValuesOnly:"boolean"==typeof t.encodeValuesOnly?t.encodeValuesOnly:w.encodeValuesOnly,filter:i,formatter:n,serializeDate:"function"==typeof t.serializeDate?t.serializeDate:w.serializeDate,skipNulls:"boolean"==typeof t.skipNulls?t.skipNulls:w.skipNulls,sort:"function"==typeof t.sort?t.sort:null,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:w.strictNullHandling}}(e);"function"==typeof i.filter?n=(0,i.filter)("",n):y(i.filter)&&(r=i.filter);var o,s=[];if("object"!=typeof n||null===n)return"";o=e&&e.arrayFormat in d?e.arrayFormat:e&&"indices"in e?e.indices?"indices":"repeat":"indices";var a=d[o];r||(r=Object.keys(n)),i.sort&&r.sort(i.sort);for(var u=0;u0?h+p:""},x=r(function(t){function e(t){if(t)return function(t){for(var r in e.prototype)t[r]=e.prototype[r];return t}(t)}t.exports=e,e.prototype.on=e.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},e.prototype.once=function(t,e){function r(){this.off(t,r),e.apply(this,arguments)}return r.fn=e,this.on(t,r),this},e.prototype.off=e.prototype.removeListener=e.prototype.removeAllListeners=e.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var r,n=this._callbacks["$"+t];if(!n)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var i=0;i0)for(var n=0;n=500&&501!==e.status)return!0;if(t){if(t.code&&z.includes(t.code))return!0;if(t.timeout&&”ECONNABORTED”===t.code)return!0;if(t.crossDomain)return!0}return!1},H.prototype._retry=function(){return this.clearTimeout(),this.req&&(this.req=null,this.req=this.request()),this._aborted=!1,this.timedout=!1,this.timedoutError=null,this._end()},H.prototype.then=function(t,e){var r=this;if(!this._fullfilledPromise){var n=this;this._endCalled&&console.warn(“Warning: superagent request was sent twice, because both .end() and .then() were called. Never call .end() if you use promises”),this._fullfilledPromise=new Promise(function(t,e){n.on(“abort”,function(){if(!(r._maxRetries&&r._maxRetries>r._retries))if(r.timedout&&r.timedoutError)e(r.timedoutError);else{var t=new Error(“Aborted”);t.code=”ABORTED”,t.status=r.status,t.method=r.method,t.url=r.url,e(t)}}),n.end(function(r,n){r?e(r):t(n)})})}return this._fullfilledPromise.then(t,e)},H.prototype.catch=function(t){return this.then(void 0,t)},H.prototype.use=function(t){return t(this),this},H.prototype.ok=function(t){if(“function”!=typeof t)throw new Error(“Callback required”);return this._okCallback=t,this},H.prototype._isResponseOK=function(t){return!!t&&(this._okCallback?this._okCallback(t):t.status>=200&&t.status<300)},H.prototype.get=function(t){return this._header[t.toLowerCase()]},H.prototype.getHeader=H.prototype.get,H.prototype.set=function(t,e){if(L(t)){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&this.set(r,t[r]);return this}return this._header[t.toLowerCase()]=e,this.header[t]=e,this},H.prototype.unset=function(t){return delete this._header[t.toLowerCase()],delete this.header[t],this},H.prototype.field=function(t,e){if(null==t)throw new Error(".field(name, val) name can not be empty");if(this._data)throw new Error(".field() can't be used if .send() is used. Please use only .send() or only .field() & .attach()");if(L(t)){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&this.field(r,t[r]);return this}if(Array.isArray(e)){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&this.field(t,e[n]);return this}if(null==e)throw new Error(".field(name, val) val can not be empty");return"boolean"==typeof e&&(e=String(e)),this._getFormData().append(t,e),this},H.prototype.abort=function(){return this._aborted||(this._aborted=!0,this.xhr&&this.xhr.abort(),this.req&&this.req.abort(),this.clearTimeout(),this.emit("abort")),this},H.prototype._auth=function(t,e,r,n){switch(r.type){case"basic":this.set("Authorization","Basic ".concat(n("".concat(t,":").concat(e))));break;case"auto":this.username=t,this.password=e;break;case"bearer":this.set("Authorization","Bearer ".concat(t))}return this},H.prototype.withCredentials=function(t){return void 0===t&&(t=!0),this._withCredentials=t,this},H.prototype.redirects=function(t){return this._maxRedirects=t,this},H.prototype.maxResponseSize=function(t){if("number"!=typeof t)throw new TypeError("Invalid argument");return this._maxResponseSize=t,this},H.prototype.toJSON=function(){return{method:this.method,url:this.url,data:this._data,headers:this._header}},H.prototype.send=function(t){var e=L(t),r=this._header["content-type"];if(this._formData)throw new Error(".send() can't be used if .attach() or .field() is used. Please use only .send() or only .field() & .attach()");if(e&&!this._data)Array.isArray(t)?this._data=[]:this._isHost(t)||(this._data={});else if(t&&this._data&&this._isHost(this._data))throw new Error("Can't merge these send calls");if(e&&L(this._data))for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(this._data[n]=t[n]);else"string"==typeof t?(r||this.type("form"),r=this._header["content-type"],this._data="application/x-www-form-urlencoded"===r?this._data?"".concat(this._data,"&").concat(t):t:(this._data||"")+t):this._data=t;return!e||this._isHost(t)||r||this.type("json"),this},H.prototype.sortQuery=function(t){return this._sort=void 0===t||t,this},H.prototype._finalizeQueryString=function(){var t=this._query.join("&");if(t&&(this.url+=(this.url.includes("?")?"&":"?")+t),this._query.length=0,this._sort){var e=this.url.indexOf("?");if(e>=0){var r=this.url.slice(e+1).split(“&”);”function”==typeof this._sort?r.sort(this._sort):r.sort(),this.url=this.url.slice(0,e)+”?”+r.join(“&”)}}},H.prototype._appendQueryString=function(){console.warn(“Unsupported”)},H.prototype._timeoutError=function(t,e,r){if(!this._aborted){var n=new Error(“”.concat(t+e,”ms exceeded”));n.timeout=e,n.code=”ECONNABORTED”,n.errno=r,this.timedout=!0,this.timedoutError=n,this.abort(),this.callback(n)}},H.prototype._setTimeouts=function(){var t=this;this._timeout&&!this._timer&&(this._timer=setTimeout(function(){t._timeoutError(“Timeout of “,t._timeout,”ETIME”)},this._timeout)),this._responseTimeout&&!this._responseTimeoutTimer&&(this._responseTimeoutTimer=setTimeout(function(){t._timeoutError(“Response timeout of “,t._responseTimeout,”ETIMEDOUT”)},this._responseTimeout))};var W=V;function V(t){if(t)return function(t){for(var e in V.prototype)Object.prototype.hasOwnProperty.call(V.prototype,e)&&(t[e]=V.prototype[e]);return t}(t)}function F(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r=2&&t._responseTimeoutTimer&&clearTimeout(t._responseTimeoutTimer),4===r){var n;try{n=e.status}catch(t){n=0}if(!n){if(t.timedout||t._aborted)return;return t.crossDomainError()}t.emit(“end”)}};var n=function(e,r){r.total>0&&(r.percent=r.loaded/r.total*100,100===r.percent&&clearTimeout(t._uploadTimeoutTimer)),r.direction=e,t.emit(“progress”,r)};if(this.hasListeners(“progress”))try{e.addEventListener(“progress”,n.bind(null,”download”)),e.upload&&e.upload.addEventListener(“progress”,n.bind(null,”upload”))}catch(t){}e.upload&&this._setUploadTimeout();try{this.username&&this.password?e.open(this.method,this.url,!0,this.username,this.password):e.open(this.method,this.url,!0)}catch(t){return this.callback(t)}if(this._withCredentials&&(e.withCredentials=!0),!this._formData&&”GET”!==this.method&&”HEAD”!==this.method&&”string”!=typeof r&&!this._isHost(r)){var i=this._header[“content-type”],s=this._serializer||o.serialize[i?i.split(“;”)[0]:””];!s&&p(i)&&(s=o.serialize[“application/json”]),s&&(r=s(r))}for(var a in this.header)null!==this.header[a]&&Object.prototype.hasOwnProperty.call(this.header,a)&&e.setRequestHeader(a,this.header[a]);this._responseType&&(e.responseType=this._responseType),this.emit(“request”,this),e.send(void 0===r?null:r)},o.agent=function(){return new $},[“GET”,”POST”,”OPTIONS”,”PATCH”,”PUT”,”DELETE”].forEach(function(t){$.prototype[t.toLowerCase()]=function(e,r){var n=new o.Request(t,e);return this._setDefaults(n),r&&n.end(r),n}}),$.prototype.del=$.prototype.delete,o.get=function(t,e,r){var n=o(“GET”,t);return”function”==typeof e&&(r=e,e=null),e&&n.query(e),r&&n.end(r),n},o.head=function(t,e,r){var n=o(“HEAD”,t);return”function”==typeof e&&(r=e,e=null),e&&n.query(e),r&&n.end(r),n},o.options=function(t,e,r){var n=o(“OPTIONS”,t);return”function”==typeof e&&(r=e,e=null),e&&n.send(e),r&&n.end(r),n},o.del=f,o.delete=f,o.patch=function(t,e,r){var n=o(“PATCH”,t);return”function”==typeof e&&(r=e,e=null),e&&n.send(e),r&&n.end(r),n},o.post=function(t,e,r){var n=o(“POST”,t);return”function”==typeof e&&(r=e,e=null),e&&n.send(e),r&&n.end(r),n},o.put=function(t,e,r){var n=o(“PUT”,t);return”function”==typeof e&&(r=e,e=null),e&&n.send(e),r&&n.end(r),n}}),Q=(X.Request,[]),Z=[],K=(“undefined”!=typeof Uint8Array?Uint8Array:Array,”ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/”),G=0,Y=K.length;G0)throw new Error(“Invalid string. Length must be a multiple of 4”);var r=t.indexOf(“=”);return-1===r&&(r=e),[r,r===e?0:4-r%4]}function et(t,e,r){for(var n,i,o=[],s=e;s18&63]+Q[i>>12&63]+Q[i>>6&63]+Q[63&i]);return o.join(“”)}Z[“-“.charCodeAt(0)]=62,Z[“_”.charCodeAt(0)]=63;var rt=function(t){for(var e,r=t.length,n=r%3,i=[],o=0,s=r-n;os?s:o+16383));return 1===n?(e=t[r-1],i.push(Q[e>>2]+Q[e<<4&63]+"==")):2===n&&(e=(t[r-2]>10]+Q[e>>4&63]+Q[e<<2&63]+"=")),i.join("")},nt=function(t){return rt(function(t){for(var e=new Array(t.length),r=0;r>>2]|=(r[o>>>2]>>>24-o%4*8&255)<<24-(n+o)%4*8;else for(o=0;o>>2]=r[o>>>2];return this.sigBytes+=i,this},clamp:function(){var e=this.words,r=this.sigBytes;e[r>>>2]&=4294967295>16)&n)>16)&n)&n;return i/=4294967296,(i+=.5)*(t.random()>.5?1:-1)}},o=0;o>2]>>>24-i%4*8&255;n.push((o>>>4).toString(16)),n.push((15&o).toString(16))}return n.join(“”)},parse:function(t){for(var e=t.length,r=[],n=0;n>>3]|=parseInt(t.substr(n,2),16)<<24-n%8*4;return new s.init(r,e/2)}},c=a.Latin1={stringify:function(t){for(var e=t.words,r=t.sigBytes,n=[],i=0;i>>2]>>>24-i%4*8&255));return n.join(“”)},parse:function(t){for(var e=t.length,r=[],n=0;n>>2]|=(255&t.charCodeAt(n))<<24-n%4*8;return new s.init(r,e)}},p=a.Utf8={stringify:function(t){try{return decodeURIComponent(escape(c.stringify(t)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(t){return c.parse(unescape(encodeURIComponent(t)))}},h=i.BufferedBlockAlgorithm=o.extend({reset:function(){this._data=new s.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=p.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(e){var r=this._data,n=r.words,i=r.sigBytes,o=this.blockSize,a=i/(4*o),u=(a=e?t.ceil(a):t.max((0|a)-this._minBufferSize,0))*o,c=t.min(4*u,i);if(u){for(var p=0;p>7)^(d>>18)^d>>>3)+c[f-7]+((y>>17)^(y>>19)^y>>>10)+c[f-16]}var m=n&i^n&o^i&o,g=l+((a>>6)^(a>>11)^(a>>25))+(a&p^~a&h)+u[f]+c[f];l=h,h=p,p=a,a=s+g|0,s=o,o=i,i=n,n=g+(((n>>2)^(n>>13)^(n>>22))+m)|0}r[0]=r[0]+n|0,r[1]=r[1]+i|0,r[2]=r[2]+o|0,r[3]=r[3]+s|0,r[4]=r[4]+a|0,r[5]=r[5]+p|0,r[6]=r[6]+h|0,r[7]=r[7]+l|0},_doFinalize:function(){var e=this._data,r=e.words,n=8*this._nDataBytes,i=8*e.sigBytes;return r[i>>>5]|=128>>9>>9<<4)]=n,e.sigBytes=4*r.length,this._process(),this._hash},clone:function(){var t=o.clone.call(this);return t._hash=this._hash.clone(),t}});e.SHA256=o._createHelper(p),e.HmacSHA256=o._createHmacHelper(p)}(Math),r.SHA256)}),Ht=Mt(function(t,e){var r,n;t.exports=(r=(n=Bt).lib.WordArray,n.enc.Base64={stringify:function(t){var e=t.words,r=t.sigBytes,n=this._map;t.clamp();for(var i=[],o=0;o>>2]>>>24-o%4*8&255)>>2]>>>24-(o+1)%4*8&255)>>2]>>>24-(o+2)%4*8&255,a=0;a<4&&o+.75*a>>6*(3-a)&63));var u=n.charAt(64);if(u)for(;i.length%4;)i.push(u);return i.join(“”)},parse:function(t){var e=t.length,n=this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var o=0;o>6-s%4*2;i[o>>>2]|=(a|u)>15;–o>=0;){var u=32767&this[t],c=this[t++]>>15,p=a*u+c*s;i=((u=s*u+((32767&p)>>30)+(p>>>15)+a*c+(i>>>30),r[n++]=1073741823&u}return i},e=30):i&&”Netscape”!=navigator.appName?(r.prototype.am=function(t,e,r,n,i,o){for(;–o>=0;){var s=e*this[t++]+r[n]+i;i=Math.floor(s/67108864),r[n++]=67108863&s}return i},e=26):(r.prototype.am=function(t,e,r,n,i,o){for(var s=16383&e,a=e>>14;–o>=0;){var u=16383&this[t],c=this[t++]>>14,p=a*u+c*s;i=((u=s*u+((16383&p)>28)+(p>>14)+a*c,r[n++]=268435455&u}return i},e=28),r.prototype.DB=e,r.prototype.DM=(1<>16)&&(t=e,r+=16),0!=(e=t>>8)&&(t=e,r+=8),0!=(e=t>>4)&&(t=e,r+=4),0!=(e=t>>2)&&(t=e,r+=2),0!=(e=t>>1)&&(t=e,r+=1),r}function l(t){this.m=t}function f(t){this.m=t,this.mp=t.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<>=16,e+=16),0==(255&t)&&(t>>=8,e+=8),0==(15&t)&&(t>>=4,e+=4),0==(3&t)&&(t>>=2,e+=2),0==(1&t)&&++e,e}function b(t){for(var e=0;0!=t;)t&=t-1,++e;return e}function w(){}function _(t){return t}function T(t){this.r2=n(),this.q3=n(),r.ONE.dlShiftTo(2*t.t,this.r2),this.mu=this.r2.divide(t),this.m=t}l.prototype.convert=function(t){return t.s<0||t.compareTo(this.m)>=0?t.mod(this.m):t},l.prototype.revert=function(t){return t},l.prototype.reduce=function(t){t.divRemTo(this.m,null,t)},l.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r),this.reduce(r)},l.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},f.prototype.convert=function(t){var e=n();return t.abs().dlShiftTo(this.m.t,e),e.divRemTo(this.m,null,e),t.s<0&&e.compareTo(r.ZERO)>0&&this.m.subTo(e,e),e},f.prototype.revert=function(t){var e=n();return t.copyTo(e),this.reduce(e),e},f.prototype.reduce=function(t){for(;t.t<=this.mt2;)t[t.t++]=0;for(var e=0;e>15)*this.mpl&this.um)=t.DV;)t[r]-=t.DV,t[++r]++}t.clamp(),t.drShiftTo(this.m.t,t),t.compareTo(this.m)>=0&&t.subTo(this.m,t)},f.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r),this.reduce(r)},f.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},r.prototype.copyTo=function(t){for(var e=this.t-1;e>=0;–e)t[e]=this[e];t.t=this.t,t.s=this.s},r.prototype.fromInt=function(t){this.t=1,this.s=t<0?-1:0,t>0?this[0]=t:t=0;){var a=8==n?255&t[i]:c(t,i);a<0?"-"==t.charAt(i)&&(o=!0):(o=!1,0==s?this[this.t++]=a:s+n>this.DB?(this[this.t-1]|=(a&(1<this.DB-s):this[this.t-1]|=a<=this.DB&&(s-=this.DB))}8==n&&0!=(128&t[0])&&(this.s=-1,s>0&&(this[this.t-1]|=(1<=0;–r)e[r+t]=this[r];for(r=t-1;r>=0;–r)e[r]=0;e.t=this.t+t,e.s=this.s},r.prototype.drShiftTo=function(t,e){for(var r=t;r>i|a,a=(this[r]&o)<=0;--r)e[r]=0;e[s]=a,e.t=this.t+s+1,e.s=this.s,e.clamp()},r.prototype.rShiftTo=function(t,e){e.s=this.s;var r=Math.floor(t/this.DB);if(r>=this.t)e.t=0;else{var n=t%this.DB,i=this.DB-n,o=(1<>n;for(var s=r+1;s>n;n>0&&(e[this.t-r-1]|=(this.s&o)<>=this.DB;if(t.t=this.DB;n+=this.s}else{for(n+=this.s;r>=this.DB;n-=t.s}e.s=n<0?-1:0,n0&&(e[r++]=n),e.t=r,e.clamp()},r.prototype.multiplyTo=function(t,e){var n=this.abs(),i=t.abs(),o=n.t;for(e.t=o+i.t;--o>=0;)e[o]=0;for(o=0;o=0;)t[r]=0;for(r=0;r=e.DV&&(t[r+e.t]-=e.DV,t[r+e.t+1]=1)}t.t>0&&(t[t.t-1]+=e.am(r,e[r],t,2*r,0,1)),t.s=0,t.clamp()},r.prototype.divRemTo=function(t,e,i){var o=t.abs();if(!(o.t<=0)){var s=this.abs();if(s.t0?(o.lShiftTo(p,a),s.lShiftTo(p,i)):(o.copyTo(a),s.copyTo(i));var l=a.t,f=a[l-1];if(0!=f){var d=f*(1<1?a[l-2]>>this.F2:0),y=this.FV/d,m=(1<0?this.DV-e:-e},r.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)},r.prototype.exp=function(t,e){if(t>4294967295||t<1)return r.ONE;var i=n(),o=n(),s=e.convert(this),a=h(t)-1;for(s.copyTo(i);--a>=0;)if(e.sqrTo(i,o),(t&1<0)e.mulTo(o,s,i);else{var u=i;i=o,o=u}return e.revert(i)},r.prototype.toString=function(t){if(this.s<0)return"-"+this.negate().toString(t);var e;if(16==t)e=4;else if(8==t)e=3;else if(2==t)e=1;else if(32==t)e=5;else{if(4!=t)return this.toRadix(t);e=2}var r,n=(1<0)for(a>a)>0&&(i=!0,o=u(r));s>=0;)a(a+=this.DB-e)):(r=this[s]>>(a-=e)&n,a0&&(i=!0),i&&(o+=u(r));return i?o:”0″},r.prototype.negate=function(){var t=n();return r.ZERO.subTo(this,t),t},r.prototype.abs=function(){return this.s<0?this.negate():this},r.prototype.compareTo=function(t){var e=this.s-t.s;if(0!=e)return e;var r=this.t;if(0!=(e=r-t.t))return this.s<0?-e:e;for(;--r>=0;)if(0!=(e=this[r]-t[r]))return e;return 0},r.prototype.bitLength=function(){return this.t0&&t.subTo(e,e),e},r.prototype.modPowInt=function(t,e){var r;return r=t<256||e.isEven()?new l(e):new f(e),this.exp(t,r)},r.ZERO=p(0),r.ONE=p(1),w.prototype.convert=_,w.prototype.revert=_,w.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r)},w.prototype.sqrTo=function(t,e){t.squareTo(e)},T.prototype.convert=function(t){if(t.s<0||t.t>2*this.m.t)return t.mod(this.m);if(t.compareTo(this.m)<0)return t;var e=n();return t.copyTo(e),this.reduce(e),e},T.prototype.revert=function(t){return t},T.prototype.reduce=function(t){for(t.drShiftTo(this.m.t-1,this.r2),t.t>this.m.t+1&&(t.t=this.m.t+1,t.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);t.compareTo(this.r2)<0;)t.dAddOffset(1,this.m.t+1);for(t.subTo(this.r2,t);t.compareTo(this.m)>=0;)t.subTo(this.m,t)},T.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r),this.reduce(r)},T.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)};var O,k,S,A=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],C=(1>8&255,k[S++]^=t>>16&255,k[S++]^=t>>24&255,S>=U&&(S-=U)}if(r.prototype.chunkSize=function(t){return Math.floor(Math.LN2*this.DB/Math.log(t))},r.prototype.toRadix=function(t){if(null==t&&(t=10),0==this.signum()||t<2||t>36)return”0″;var e=this.chunkSize(t),r=Math.pow(t,e),i=p(r),o=n(),s=n(),a=””;for(this.divRemTo(i,o,s);o.signum()>0;)a=(r+s.intValue()).toString(t).substr(1)+a,o.divRemTo(i,o,s);return s.intValue().toString(t)+a},r.prototype.fromRadix=function(t,e){this.fromInt(0),null==e&&(e=10);for(var n=this.chunkSize(e),i=Math.pow(e,n),o=!1,s=0,a=0,u=0;u=n&&(this.dMultiply(i),this.dAddOffset(a,0),s=0,a=0))}s>0&&(this.dMultiply(Math.pow(e,s)),this.dAddOffset(a,0)),o&&r.ZERO.subTo(this,this)},r.prototype.fromNumber=function(t,e,n){if(“number”==typeof e)if(t<2)this.fromInt(1);else for(this.fromNumber(t,n),this.testBit(t-1)||this.bitwiseTo(r.ONE.shiftLeft(t-1),y,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(e);)this.dAddOffset(2,0),this.bitLength()>t&&this.subTo(r.ONE.shiftLeft(t-1),this);else{var i=new Array,o=7&t;i.length=1+(t>>3),e.nextBytes(i),o>0?i[0]&=(1<>=this.DB;if(t.t=this.DB;n+=this.s}else{for(n+=this.s;r>=this.DB;n+=t.s}e.s=n<0?-1:0,n>0?e[r++]=n:n<-1&&(e[r++]=this.DV+n),e.t=r,e.clamp()},r.prototype.dMultiply=function(t){this[this.t]=this.am(0,t-1,this,0,0,this.t),++this.t,this.clamp()},r.prototype.dAddOffset=function(t,e){if(0!=t){for(;this.t=this.DV;)this[e]-=this.DV,++e>=this.t&&(this[this.t++]=0),++this[e]}},r.prototype.multiplyLowerTo=function(t,e,r){var n,i=Math.min(this.t+t.t,e);for(r.s=0,r.t=i;i>0;)r[–i]=0;for(n=r.t-this.t;i=0;–n)r=(e*r+this[n])%t;return r},r.prototype.millerRabin=function(t){var e=this.subtract(r.ONE),i=e.getLowestSetBit();if(i>1)>A.length&&(t=A.length);for(var s=n(),a=0;a24},r.prototype.shortValue=function(){return 0==this.t?this.s:this[0]>16},r.prototype.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]0)for(n>n)!=(this.s&this.DM)>>n&&(e[i++]=r|this.s<=0;)n<8?(r=(this[t]&(1<(n+=this.DB-8)):(r=this[t]>>(n-=8)&255,n0||r!=this.s)&&(e[i++]=r);return e},r.prototype.equals=function(t){return 0==this.compareTo(t)},r.prototype.min=function(t){return this.compareTo(t)<0?this:t},r.prototype.max=function(t){return this.compareTo(t)>0?this:t},r.prototype.and=function(t){var e=n();return this.bitwiseTo(t,d,e),e},r.prototype.or=function(t){var e=n();return this.bitwiseTo(t,y,e),e},r.prototype.xor=function(t){var e=n();return this.bitwiseTo(t,m,e),e},r.prototype.andNot=function(t){var e=n();return this.bitwiseTo(t,g,e),e},r.prototype.not=function(){for(var t=n(),e=0;e=c?m=t[v]>>o-c&d:(m=(t[v]&(1<>this.DB+o-c)),u=r;0==(1&m);)m>>=1,–u;if((o-=u)<0&&(o+=this.DB,--v),b)a[m].copyTo(s),b=!1;else{for(;u>1;)i.sqrTo(s,w),i.sqrTo(w,s),u-=2;u>0?i.sqrTo(s,w):(g=s,s=w,w=g),i.mulTo(w,a[m],s)}for(;v>=0&&0==(t[v]&1<=0?(n.subTo(i,n),e&&o.subTo(a,o),s.subTo(u,s)):(i.subTo(n,i),e&&a.subTo(o,a),u.subTo(s,u))}return 0!=i.compareTo(r.ONE)?r.ZERO:u.compareTo(t)>=0?u.subtract(t):u.signum()<0?(u.addTo(t,u),u.signum()<0?u.add(t):u):u},r.prototype.pow=function(t){return this.exp(t,new w)},r.prototype.gcd=function(t){var e=this.s<0?this.negate():this.clone(),r=t.s<0?t.negate():t.clone();if(e.compareTo(r)<0){var n=e;e=r,r=n}var i=e.getLowestSetBit(),o=r.getLowestSetBit();if(o<0)return e;for(i0&&(e.rShiftTo(o,e),r.rShiftTo(o,r));e.signum()>0;)(i=e.getLowestSetBit())>0&&e.rShiftTo(i,e),(i=r.getLowestSetBit())>0&&r.rShiftTo(i,r),e.compareTo(r)>=0?(e.subTo(r,e),e.rShiftTo(1,e)):(r.subTo(e,r),r.rShiftTo(1,r));return o>0&&r.lShiftTo(o,r),r},r.prototype.isProbablePrime=function(t){var e,r=this.abs();if(1==r.t&&r[0]<=A[A.length-1]){for(e=0;e>>8,k[S++]=255&x;S=0,D()}function I(){if(null==O){for(D(),(O=new R).init(k),S=0;S0))throw new Error(“Invalid key data”);this.n=new Wt.BigInteger(t,16),this.e=parseInt(e,16)}Jt.prototype.verify=function(t,e){e=e.replace(/[^0-9a-f]|[sn]]/gi,””);var r=new Wt.BigInteger(e,16);if(r.bitLength()>this.n.bitLength())throw new Error(“Signature does not match with the key modulus.”);var n=function(t){for(var e in Vt){var r=Vt[e],n=r.length;if(t.substring(0,n)===r)return{alg:e,hash:t.substring(n)}}return[]}(r.modPowInt(this.e,this.n).toString(16).replace(/^1f+00/,””));if(0===n.length)return!1;if(!Ft.hasOwnProperty(n.alg))throw new Error(“Hashing algorithm is not supported.”);var i=Ft[n.alg](t).toString();return n.hash===i};for(var $t=[],Xt=[],Qt=”undefined”!=typeof Uint8Array?Uint8Array:Array,Zt=”ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/”,Kt=0,Gt=Zt.length;Kt0)throw new Error(“Invalid string. Length must be a multiple of 4”);var r=t.indexOf(“=”);return-1===r&&(r=e),[r,r===e?0:4-r%4]}(t),i=n[0],o=n[1],s=new Qt(3*(i+o)/4-o),a=0,u=o>0?i-4:i;for(r=0;r16&255,s[a++]=e>>8&255,s[a++]=255&e;return 2===o&&(e=Xt[t.charCodeAt(r)]>4,s[a++]=255&e),1===o&&(e=Xt[t.charCodeAt(r)]<<10|Xt[t.charCodeAt(r+1)]>2,s[a++]=e>>8&255,s[a++]=255&e),s};function te(t){var e=t.length%4;return 0===e?t:t+new Array(4-e+1).join(“=”)}function ee(t){return t=te(t).replace(/-/g,”+”).replace(/_/g,”/”),decodeURIComponent(function(t){for(var e=””,r=0;r300)throw new oe(“The leeway should be positive and lower than five minutes.”);if(“RS256”!==this.expectedAlg)throw new oe(‘Signature algorithm of “‘+this.expectedAlg+'” is not supported. Expected the ID token to be signed with “RS256″.’)}function he(t,e){this.plugins=e;for(var r=0;r1){if(!d||”string”!=typeof d)return r(new se(“Authorized Party (azp) claim must be a string present in the ID token when Audience (aud) claim has multiple values”,!1));if(d!==v.audience)return r(new se(‘Authorized Party (azp) claim mismatch in the ID token; expected “‘+v.audience+'”, found “‘+d+'”‘,!1))}if(!h||!ue(h))return r(new se(“Expiration Time (exp) claim must be a number present in the ID token”,!1));if(!f||!ue(f))return r(new se(“Issued At (iat) claim must be a number present in the ID token”));var a=h+v.leeway,b=new Date(0);if(b.setUTCSeconds(a),g>b)return r(new se(‘Expiration Time (exp) claim error in the ID token; current time “‘+g+'” is after expiration time “‘+b+'”‘,!1));if(l&&ue(l)){var w=l-v.leeway,_=new Date(0);if(_.setUTCSeconds(w),gO)return r(new se(‘Authentication Time (auth_time) claim in the ID token indicates that too much time has passed since the last end-user authentication. Current time “‘+g+'” is after last auth time at “‘+O+'”‘))}return r(null,n.payload)})},pe.prototype.getRsaVerifier=function(t,e,r){var n=this,i=t+e;Promise.resolve(this.jwksCache.has(i)).then(function(r){return r?n.jwksCache.get(i):(o={jwksURI:n.jwksURI,iss:t,kid:e},(“undefined”==typeof fetch?function(t,e){return e=e||{},new Promise(function(r,n){var i=new XMLHttpRequest,o=[],s=[],a={},u=function(){return{ok:2==(i.status/100|0),statusText:i.statusText,status:i.status,url:i.responseURL,text:function(){return Promise.resolve(i.responseText)},json:function(){return Promise.resolve(JSON.parse(i.responseText))},blob:function(){return Promise.resolve(new Blob([i.response]))},clone:u,headers:{keys:function(){return o},entries:function(){return s},get:function(t){return a[t.toLowerCase()]},has:function(t){return t.toLowerCase()in a}}}};for(var c in i.open(e.method||”get”,t,!0),i.onload=function(){i.getAllResponseHeaders().replace(/^(.*?):[^Sn]*([sS]*?)$/gm,function(t,e,r){o.push(e=e.toLowerCase()),s.push([e,r]),a[e]=a[e]?a[e]+”,”+r:r}),r(u())},i.onerror=n,i.withCredentials=”include”==e.credentials,e.headers)i.setRequestHeader(c,e.headers[c]);i.send(e.body||null)})}:fetch)(o.jwksURI||ne(o.iss,”.well-known”,”jwks.json”)).then(ie).then(function(t){var e,r,n,i=null;for(e=0;e=8}();return”undefined”!=typeof window&&window.JSON&&window.JSON.stringify&&window.JSON.parse&&window.postMessage?{open:function(i,o){if(!o)throw”missing required callback argument”;var s,a;i.url||(s=”missing required ‘url’ parameter”),i.relay_url||(s=”missing required ‘relay_url’ parameter”),s&&setTimeout(function(){o(s)},0),i.window_name||(i.window_name=null),i.window_features&&!function(){try{var t=navigator.userAgent;return-1!=t.indexOf(“Fennec/”)||-1!=t.indexOf(“Firefox/”)&&-1!=t.indexOf(“Android”)}catch(t){}return!1}()||(i.window_features=void 0);var u,c=i.origin||r(i.url);if(c!==r(i.relay_url))return setTimeout(function(){o(“invalid arguments: origin of url and relay_url must match”)},0);n&&((a=document.createElement(“iframe”)).setAttribute(“src”,i.relay_url),a.style.display=”none”,a.setAttribute(“name”,”__winchan_relay_frame”),document.body.appendChild(a),u=a.contentWindow);var p=i.popup||window.open(i.url,i.window_name,i.window_features);i.popup&&(p.location.href=i.url),u||(u=p);var h=setInterval(function(){p&&p.closed&&(f(),o&&(o(“User closed the popup window”),o=null))},500),l=JSON.stringify({a:”request”,d:i.params});function f(){if(a&&document.body.removeChild(a),a=void 0,h&&(h=clearInterval(h)),e(window,”message”,d),e(window,”unload”,f),p)try{p.close()}catch(t){u.postMessage(“die”,c)}p=u=void 0}function d(t){if(t.origin===c){try{var e=JSON.parse(t.data)}catch(t){if(o)return o(t);throw t}”ready”===e.a?u.postMessage(l,c):”error”===e.a?(f(),o&&(o(e.d),o=null)):”response”===e.a&&(f(),o&&(o(null,e.d),o=null))}}return t(window,”unload”,f),t(window,”message”,d),{originalPopup:p,close:f,focus:function(){if(p)try{p.focus()}catch(t){}}}},onOpen:function(r){var i=”*”,o=n?function(){for(var t=window.opener.frames,e=t.length-1;e>=0;e–)try{if(t[e].location.protocol===window.location.protocol&&t[e].location.host===window.location.host&&”__winchan_relay_frame”===t[e].name)return t[e]}catch(t){}}():window.opener;if(!o)throw”can’t find relay frame”;function s(t){t=JSON.stringify(t),n?o.doPost(t,i):o.postMessage(t,i)}function a(t){if(“die”===t.data)try{window.close()}catch(t){}}t(n?o:window,”message”,function t(n){var o;try{o=JSON.parse(n.data)}catch(t){}o&&”request”===o.a&&(e(window,”message”,t),i=n.origin,r&&setTimeout(function(){r(i,o.d,function(t){r=void 0,s({a:”response”,d:t})})},0))}),t(n?o:window,”message”,a);try{s({a:”ready”})}catch(e){t(o,”load”,function(t){s({a:”ready”})})}var u=function(){try{e(n?o:window,”message”,a)}catch(t){}r&&s({a:”error”,d:”client closed window”}),r=void 0;try{window.close()}catch(t){}};return t(window,”unload”,u),{detach:function(){e(window,”unload”,u)}}}}:{open:function(t,e,r,n){setTimeout(function(){n(“unsupported browser”)},0)},onOpen:function(t){setTimeout(function(){t(“unsupported browser”)},0)}}}();t.exports&&(t.exports=e)}),we=function(t){/^https?:///.test(t)||(t=window.location.href);var e=/^(https?://[-_a-zA-Z.0-9:]+)/.exec(t);return e?e[1]:t};function _e(){this._current_popup=null}function Te(t,e){this.baseOptions=e,this.baseOptions.popupOrigin=e.popupOrigin,this.client=t.client,this.webAuth=t,this.transactionManager=new fe(this.baseOptions),this.crossOriginAuthentication=new me(t,this.baseOptions),this.warn=new St({disableWarnings:!!e._disableDeprecationWarnings})}function Oe(t){this.authenticationUrl=t.authenticationUrl,this.timeout=t.timeout||6e4,this.handler=null,this.postMessageDataType=t.postMessageDataType||!1,this.postMessageOrigin=t.postMessageOrigin||_t.getWindow().location.origin||_t.getWindow().location.protocol+”//”+_t.getWindow().location.hostname+(_t.getWindow().location.port?”:”+_t.getWindow().location.port:””)}function ke(t){this.baseOptions=t,this.request=new bt(t),this.transactionManager=new fe(this.baseOptions)}function Se(t,e){this.baseOptions=e,this.client=t,this.baseOptions.universalLoginPage=!0,this.request=new bt(this.baseOptions),this.warn=new St({disableWarnings:!!e._disableDeprecationWarnings})}_e.prototype.calculatePosition=function(t){var e=t.width||500,r=t.height||600,n=_t.getWindow(),i=void 0!==n.screenX?n.screenX:n.screenLeft,o=void 0!==n.screenY?n.screenY:n.screenTop,s=void 0!==n.outerWidth?n.outerWidth:n.document.body.clientWidth,a=void 0!==n.outerHeight?n.outerHeight:n.document.body.clientHeight;return{width:e,height:r,left:t.left||i+(s-e)/2,top:t.top||o+(a-r)/2}},_e.prototype.preload=function(t){var e=this,r=_t.getWindow(),n=this.calculatePosition(t.popupOptions||{}),i=mt.merge(n).with(t.popupOptions),o=t.url||”about:blank”,s=D(i,{encode:!1,delimiter:”,”});return this._current_popup&&!this._current_popup.closed||(this._current_popup=r.open(o,”auth0_signup_popup”,s),this._current_popup.kill=function(){this.close(),e._current_popup=null}),this._current_popup},_e.prototype.load=function(t,e,r,n){var i=this,o=this.calculatePosition(r.popupOptions||{}),s=mt.merge(o).with(r.popupOptions),a=mt.merge({url:t,relay_url:e,window_features:D(s,{delimiter:”,”,encode:!1}),popup:this._current_popup}).with(r),u=be.open(a,function(t,e){if(!t||”SyntaxError”!==t.name)return i._current_popup=null,n(t,e)});return u.focus(),u},Te.prototype.buildPopupHandler=function(){var t=this.baseOptions.plugins.get(“popup.getPopupHandler”);return t?t.getPopupHandler():new _e},Te.prototype.preload=function(t){t=t||{};var e=this.buildPopupHandler();return e.preload(t),e},Te.prototype.getPopupHandler=function(t,e){return t.popupHandler?t.popupHandler:e?this.preload(t):this.buildPopupHandler()},Te.prototype.callback=function(t){var e=this,r=_t.getWindow(),n=(t=t||{}).popupOrigin||this.baseOptions.popupOrigin||_t.getOrigin();r.opener?be.onOpen(function(r,i,o){if(r!==n)return o({error:”origin_mismatch”,error_description:”The popup’s origin (“+r+”) should match the `popupOrigin` parameter (“+n+”).”});e.webAuth.parseHash(t||{},function(t,e){return o(t||e)})}):r.doPost=function(t){r.parent&&r.parent.postMessage(t,n)}},Te.prototype.authorize=function(t,e){var r,i,o={},s=this.baseOptions.plugins.get(“popup.authorize”),a=mt.merge(this.baseOptions,[“clientID”,”scope”,”domain”,”audience”,”tenant”,”responseType”,”redirectUri”,”_csrf”,”state”,”_intstate”,”nonce”,”organization”,”invitation”]).with(mt.blacklist(t,[“popupHandler”]));return ct.check(a,{type:”object”,message:”options parameter is not valid”},{responseType:{type:”string”,message:”responseType option is required”}}),i=n(this.baseOptions.rootUrl,”relay.html”),t.owp?a.owp=!0:(o.origin=we(a.redirectUri),i=a.redirectUri),t.popupOptions&&(o.popupOptions=mt.pick(t.popupOptions,[“width”,”height”,”top”,”left”])),s&&(a=s.processParams(a)),(a=this.transactionManager.process(a)).scope=a.scope||”openid profile email”,delete a.domain,r=this.client.buildAuthorizeUrl(a),this.getPopupHandler(t).load(r,i,o,Et(e,{keepOriginalCasing:!0}))},Te.prototype.loginWithCredentials=function(t,e){t.realm=t.realm||t.connection,t.popup=!0,t=mt.merge(this.baseOptions,[“redirectUri”,”responseType”,”state”,”nonce”]).with(mt.blacklist(t,[“popupHandler”,”connection”])),t=this.transactionManager.process(t),this.crossOriginAuthentication.login(t,e)},Te.prototype.passwordlessVerify=function(t,e){var r=this;return this.client.passwordless.verify(mt.blacklist(t,[“popupHandler”]),function(n){if(n)return e(n);t.username=t.phoneNumber||t.email,t.password=t.verificationCode,delete t.email,delete t.phoneNumber,delete t.verificationCode,delete t.type,r.client.loginWithResourceOwner(t,e)})},Te.prototype.signupAndLogin=function(t,e){var r=this;return this.client.dbConnection.signup(t,function(n){if(n)return e(n);r.loginWithCredentials(t,e)})},Oe.create=function(t){return new Oe(t)},Oe.prototype.login=function(t,e){this.handler=new de({auth0:this.auth0,url:this.authenticationUrl,eventListenerType:t?”message”:”load”,callback:this.getCallbackHandler(e,t),timeout:this.timeout,eventValidator:this.getEventValidator(),timeoutCallback:function(){e(null,”#error=timeout&error_description=Timeout+during+authentication+renew.”)},usePostMessage:t||!1}),this.handler.init()},Oe.prototype.getEventValidator=function(){var t=this;return{isValid:function(e){switch(e.event.type){case”message”:return e.event.origin===t.postMessageOrigin&&e.event.source===t.handler.iframe.contentWindow&&(!1===t.postMessageDataType||e.event.data.type&&e.event.data.type===t.postMessageDataType);case”load”:if(“about:”===e.sourceObject.contentWindow.location.protocol)return!1;default:return!0}}}},Oe.prototype.getCallbackHandler=function(t,e){return function(r){var n;n=e?”object”==typeof r.event.data&&r.event.data.hash?r.event.data.hash:r.event.data:r.sourceObject.contentWindow.location.hash,t(null,n)}},ke.prototype.login=function(t,e){var r,i;return r=n(this.baseOptions.rootUrl,”usernamepassword”,”login”),t.username=t.username||t.email,t=mt.blacklist(t,[“email”,”onRedirecting”]),i=mt.merge(this.baseOptions,[“clientID”,”redirectUri”,”tenant”,”responseType”,”responseMode”,”scope”,”audience”]).with(t),i=this.transactionManager.process(i),i=mt.toSnakeCase(i,[“auth0Client”]),this.request.post(r).send(i).end(Et(e))},ke.prototype.callback=function(t){var e,r=_t.getDocument();(e=r.createElement(“div”)).innerHTML=t,r.body.appendChild(e).children[0].submit()},Se.prototype.login=function(t,e){if(_t.getWindow().location.host!==this.baseOptions.domain)throw new Error(“This method is meant to be used only inside the Universal Login Page.”);var r,n=mt.merge(this.baseOptions,[“clientID”,”redirectUri”,”tenant”,”responseType”,”responseMode”,”scope”,”audience”,”_csrf”,”state”,”_intstate”,”nonce”]).with(t);return ct.check(n,{type:”object”,message:”options parameter is not valid”},{responseType:{type:”string”,message:”responseType option is required”}}),(r=new ke(this.baseOptions)).login(n,function(n,i){if(n)return e(n);function o(){r.callback(i)}if(“function”==typeof t.onRedirecting)return t.onRedirecting(function(){o()});o()})},Se.prototype.signupAndLogin=function(t,e){var r=this;return r.client.client.dbConnection.signup(t,function(n){return n?e(n):r.login(t,e)})},Se.prototype.getSSOData=function(t,e){var r,i=””;return”function”==typeof t&&(e=t,t=!1),ct.check(t,{type:”boolean”,message:”withActiveDirectories parameter is not valid”}),ct.check(e,{type:”function”,message:”cb parameter is not valid”}),t&&(i=”?”+D({ldaps:1,client_id:this.baseOptions.clientID})),r=n(this.baseOptions.rootUrl,”user”,”ssodata”,i),this.request.get(r,{noHeaders:!0}).withCredentials().end(Et(e))};var Ae=function(){},Ce={lang:”en”,templates:{auth0:function(t){var e=”code”===t.type?”Enter the code shown above”:”Solve the formula shown above”;return’n n



Source