1!function(){"use strict";function r(r,t,e,n,o,i,a){try{var c=r[i](a),u=c.value}catch(r){return void e(r)}c.done?t(u):Promise.resolve(u).then(n,o)}function t(t){return function(){var e=this,n=arguments;return new Promise(function(o,i){var a=t.apply(e,n);function c(t){r(a,o,i,c,u,"next",t)}function u(t){r(a,o,i,c,u,"throw",t)}c(void 0)})}}var e=()=>{try{var r,t=JSON.parse((null===(r=window.localStorage)||void 0===r?void 0:r.getItem("zephr"))||"{}")||{};return t&&"object"==typeof t?t:{}}catch(r){return{}}};function n(r){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(r){return typeof r}:function(r){return r&&"function"==typeof Symbol&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},n(r)}function o(r,t,e){return(t=function(r){var t=function(r){if("object"!=n(r)||!r)return r;var t=r[Symbol.toPrimitive];if(void 0!==t){var e=t.call(r,"string");if("object"!=n(e))return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(r)}(r);return"symbol"==n(t)?t:t+""}(t))in r?Object.defineProperty(r,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):r[t]=e,r}function i(r,t){(null==t||t>r.length)&&(t=r.length);for(var e=0,n=Array(t);e<t;e++)n[e]=r[e];return n}function a(r,t){return function(r){if(Array.isArray(r))return r}(r)||function(r,t){var e=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=e){var n,o,i,a,c=[],u=!0,d=!1;try{if(i=(e=e.call(r)).next,0===t){if(Object(e)!==e)return;u=!1}else for(;!(u=(n=i.call(e)).done)&&(c.push(n.value),c.length!==t);u=!0);}catch(r){d=!0,o=r}finally{try{if(!u&&null!=e.return&&(a=e.return(),Object(a)!==a))return}finally{if(d)throw o}}return c}}(r,t)||function(r,t){if(r){if("string"==typeof r)return i(r,t);var e={}.toString.call(r).slice(8,-1);return"Object"===e&&r.constructor&&(e=r.constructor.name),"Map"===e||"Set"===e?Array.from(r):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?i(r,t):void 0}}(r,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(r){return[...new Uint8Array(r)].map(r=>r.toString(16).padStart(2,"0")).join("")}function u(){return(u=t(function*(r){var t,e,n=r.toLowerCase(),o=(new TextEncoder).encode(n+"+xp1myx6fqykn7"),i=c(yield crypto.subtle.digest("SHA-256",o)),u=(new TextEncoder).encode(n),d=c(yield crypto.subtle.digest("SHA-256",u)),l=function(r){var t=r.trim().toLowerCase();if(!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(t))throw new Error("Invalid email format");var e=a(t.split("@"),2),n=e[0],o=e[1];if("gmail.com"===o){var i=n.replace(/\./g,"").split("+")[0];t="".concat(i,"@").concat(o)}return t}(r),s=(new TextEncoder).encode(l);return{hashedEmail:i,noSaltHashedEmail:d,normalizedEmailHashBase64:(t=yield crypto.subtle.digest("SHA-256",s),e=String.fromCharCode(...new Uint8Array(t)),btoa(e))}})).apply(this,arguments)}var d=function(){var r=t(function*(){if(!window.crypto||!window.crypto.subtle)throw new Error("Crypto not supported");return yield window.crypto.subtle.importKey("raw",(new TextEncoder).encode("IN6H1akL63KYAE69bY6GSvTSc0qjip9m"),{name:"AES-GCM"},!1,["encrypt","decrypt"])});return function(){return r.apply(this,arguments)}}(),l=function(){var r=t(function*(r){try{if(!window.crypto||!window.crypto.subtle)throw new Error("Crypto not supported");var t=crypto.getRandomValues(new Uint8Array(12)),e=yield window.crypto.subtle.encrypt({name:"AES-GCM",iv:t},yield d(),(new TextEncoder).encode(JSON.stringify(r)));return{data:btoa(String.fromCharCode(...new Uint8Array(e))),iv:btoa(String.fromCharCode(...t))}}catch(t){return console.error("Aqfer Error encrypting data, falling back to base64:",t),{data:btoa(JSON.stringify(r)),iv:""}}});return function(_x){return r.apply(this,arguments)}}(),s=function(){var r=t(function*(r){return btoa(JSON.stringify(yield l(r)))});return function(t){return r.apply(this,arguments)}}(),f=function(){var r=t(function(r){var t=r.data,e=r.iv;return function*(){try{if(!window.crypto||!window.crypto.subtle)throw new Error("Crypto not supported");
1var r=yield window.crypto.subtle.decrypt({name:"AES-GCM",iv:new Uint8Array(Uint8Array.from(atob(e),r=>r.charCodeAt(0)))},yield d(),new Uint8Array(Uint8Array.from(atob(t),r=>r.charCodeAt(0))));return JSON.parse((new TextDecoder).decode(r))}catch(r){return console.error("Aqfer Error decrypting data, falling back to base64:",r),JSON.parse(atob(t))}}()});return function(t){return r.apply(this,arguments)}}(),p=function(){var r=t(function(r){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function*(){try{var e=JSON.parse(atob(r)),n=e.data,o=e.iv;return yield f({data:n,iv:o}).catch(()=>null)}catch(r){return t||console.error("Aqfer Error getting encrypted data/iv from string:",r),null}}()});return function(t){return r.apply(this,arguments)}}();function y(r,t){var e=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable})),e.push.apply(e,n)}return e}var v="__gtfScriptsIdHashes",w=function(){var r=t(function*(){try{var r=localStorage.getItem("aqfer");if(!r)return{};var e=JSON.parse(r);if(!Array.isArray(e))return{};var n=["em","aud1","aud2","aud3","aud4"],o=e.reduce((r,t)=>{if(null==t||!t.type||!n.includes(t.type)||!t.key)return r;var e=r[t.type],o=Date.parse(t.modified_at),i=e?Date.parse(e.modified_at):NaN;return(!e||Number.isNaN(i)||o>=i)&&(r[t.type]=t),r},{});return yield Object.values(o).reduce(function(){var r=t(function*(r,t){var e=yield r;if("aud4"===t.type)try{var n="";yield p(t.key).then(r=>{n=r}).catch(()=>{n=""}),e[t.type]=n||""}catch(r){e[t.type]=""}else e[t.type]=t.key;return e});return function(_x,t){return r.apply(this,arguments)}}(),Promise.resolve({}))}catch(r){return{}}});return function(){return r.apply(this,arguments)}}(),m=function(){var r=t(function*(){window.gtfScripts=window.gtfScripts||{};var r=(()=>{try{var r=localStorage.getItem(v);if(!r)return null;var t=JSON.parse(r);if(t.data&&t.expiration&&t.expiration>Date.now()&&1===t.version)return t.data;localStorage.removeItem(v)}catch(r){}return null})(),t=null;try{t=(()=>{var r,t=null===(r=window.nypDataLayer)||void 0===r?void 0:r.email;if(t)return t;var e=localStorage.getItem("zephr");if(e)try{var n,o=JSON.parse(e);t=null==o||null===(n=o.user)||void 0===n||null===(n=n.account)||void 0===n?void 0:n.emailAddress}catch(r){t=void 0}return t})()||null}catch(r){t=null}if(!t){var e=yield w();t=e.em||e.aud4||e.aud1||e.aud2||e.aud3||null}if(t){var n=function(r){for(var t=1;t<arguments.length;t++){var e=null!=arguments[t]?arguments[t]:{};t%2?y(Object(e),!0).forEach(function(t){o(r,t,e[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(e)):y(Object(e)).forEac
1h(function(t){Object.defineProperty(r,t,Object.getOwnPropertyDescriptor(e,t))})}return r}({},yield function(_x){return u.apply(this,arguments)}(t)),i=!r||r.normalizedEmailHashBase64!==n.normalizedEmailHashBase64;i&&(r=>{var t={data:r,expiration:Date.now()+31536e6,version:1};try{localStorage.setItem(v,JSON.stringify(t))}catch(r){}})(n),window.gtfScripts.idHashes=i?n:r}else r&&(window.gtfScripts.idHashes=r)});return function(){return r.apply(this,arguments)}}(),g=r=>{for(var t=document.cookie.split(";").map(r=>r.trim()),e=0;e<t.length;e+=1){var n=a(t[e].split("="),2),o=n[0],i=void 0===o?"":o,c=n[1];if(i===r)return void 0===c?"":c}return null},h=function(r){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:8e3,e=g("_autid");if(e)r(e);else{var n=!1,o=setTimeout(()=>{n||r(null)},t);window.addEventListener("nyp-aqfer:aut-cookie-ready",t=>{clearTimeout(o);var e=t.detail,i=(void 0===e?{}:e).aut,a=void 0===i?g("_autid"):i;n=!0,r(a),clearTimeout(o)})}},b=function(){var r=t(function*(r){if(r.startsWith("{"))return JSON.parse(r)||{};try{return yield p(r)}catch(r){console.error("Aqfer Error decrypting data:",r)}return{}});return function(_x){return r.apply(this,arguments)}}(),S=function(){var r=t(function*(r,t){var e,n="__cachedAqferData_".concat(t),o=null===(e=window.localStorage)||void 0===e?void 0:e.getItem(n);if(o){var i=(yield b(o))||{},a=i.data,c=void 0===a?void 0:a,u=i.expiration,d=void 0===u?void 0:u;if(c&&d&&d>(new Date).getTime())return c}var l=window.nypAqfer,f=void 0===l?{}:l,p=f.aqferAccessToken,y=void 0===p?null:p,v=f.isProduction,w=void 0!==v&&v;if(!y||!y.length)throw new Error("No aqferAccessToken found.");return fetch(r,{headers:{Authorization:"Bearer ".concat(y),"Content-Type":"application/json"}}).then(r=>r.json()).then(r=>{var t=(new Date).getTime(),e=t+6048e5;return r.error&&r.error.toLowerCase().includes("not found")&&(e=t+864e5),w||(e=t+3e5),s(JSON.stringify({data:r,expiration:e})).then(r=>{var t;null===(t=window.localStorage)||void 0===t||t.setItem(n,r)}),r})});return function(t,e){return r.apply(this,arguments)}}(),A=function(){var r=t(function*(r){if(!crypto)return r;var t=(new TextEncoder).encode(r);return crypto.subtle.digest("SHA-256",t).then(r=>Array.from(new Uint8Array(r)).map(r=>r.toString(16).padStart(2,"0")).join(""))});return function(_x){return r.apply(this,arguments)}}(),O=A,E=function(){var r=t(function(r){var t=r.aut,n=r.nypId,o=r.email;return function*(r){var i=[];n&&i.push({id:n,tag:"_nypid-sync",priority:1}),t&&i.push({id:t,tag:"_autid-sync",priority:2});var a=e().user,c=(void 0===a?{}:a).sessionId;if((void 0===c||!c)&&o){var u=yield O(o);i.push({id:u,priority:0,tag:"email_sha256"})}i.length?(window.permutive||console.warn("Aqfer Permutive Error: window.permutive is not defined."),null===(r=window.permutive)||void 0===r||r.identify(i),console.log("Aqfer Permutive Identify:",i)):console.log("Aqfer Permutive Error: No IDs to identify.")}()});return function(_x){return r.apply(this,arguments)}}();function j(r,t){var e=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable})),e.push.apply(e,n)}return e}function _(r){for(var t=1;t<arguments.length;t++){var e=null!=arguments[t]?arguments[t]:{};t%2?j(Object(e),!0).forEach(function(t){o(r,t,e[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(e)):j(Object(e)).forEac
1h(function(t){Object.defineProperty(r,t,Object.getOwnPropertyDescriptor(e,t))})}return r}var q=function(){var r=t(function*(r){var e;if(r&&Array.isArray(r)){var n=yield Promise.all(r.map(function(){var r=t(function*(r){return r.type&&"aud4"===r.type?_(_({},r),{},{key:yield s(r.key)}):r});return function(t){return r.apply(this,arguments)}}()));null===(e=window.localStorage)||void 0===e||e.setItem("aqfer",JSON.stringify(n))}else{var o;null===(o=window.localStorage)||void 0===o||o.removeItem("aqfer")}});return function(_x){return r.apply(this,arguments)}}(),I=function(){var r=t(function*(r){if(!r)return console.log("Aqfer: No _autid cookie found for edge lookup."),null;var e=null;return S("https://graphds-c057.a24365.io/v2/entities/ck~nypost~".concat(r,"/edges"),"neighbors").then(function(){var n=t(function*(t){if(q(t),Array.isArray(t)){var n,o={};t.forEach(r=>{var t=r.type,e=r.key;o[t]||(o[t]=e)}),o.ny_post_id&&(e=o.ny_post_id,null===(n=window.localStorage)||void 0===n||n.setItem("nyp_id",o.ny_post_id),window.dispatchEvent(new CustomEvent("nyp-aqfer:nyp-id-ready",{detail:{nypId:e}})));var i=o.em||null;window.nypAqfer.featureFlags.aud4&&(i=i||o.aud4||null),i&&(a=i,window.nypAqfer.featureFlags.nukadlib||g("uid2_identity")||(console.log("Aqfer: Fetching UID2 token for ".concat(a)),fetch("https://api.nypdev.com/ads/tradedesk/token",{body:JSON.stringify({email:a}),headers:{Authorization:"Basic QGxsZXk6dmZEVEJPM1Y3cnJ5","Content-Type":"application/json"},method:"POST"}).then(r=>r.ok?r.json():Promise.reject(r)).then(r=>{var t=r.Message,e=(void 0===t?{}:t).Data,n=void 0===e?void 0:e;n&&((r,t)=>{var e=new Date;e.setTime(e.getTime()+31536e6);var n="expires=".concat(e.toUTCString());document.cookie="".concat("uid2_identity","=").concat(t,";").concat(n,";path=/")}
1)(0,JSON.stringify(n))}).catch(r=>console.error("Error fetching UID2 token",r))),(r=>{if(!window.nypAqfer.featureFlags.nukadlib){var t=()=>{var t=window.atsenvelopemodule||window.ats||null;t&&r&&t.setAdditionalData&&t.setAdditionalData({type:"email",id:r})};window.atsenvelopemodule||window.ats?t():window.addEventListener("envelopeModuleReady",t)}})(i)),E({aut:r,nypId:e,email:i})}else console.error("Aqfer Neighbors Error","Invalid response from Aqfer.");var a});return function(r){return n.apply(this,arguments)}}()).catch(r=>console.error("Aqfer Neighbors Error",r))});return function(t){return r.apply(this,arguments)}}(),D=r=>{window.ga4Dims=window.ga4Dims||{},window.ga4Dims.ga_aut_id=r,void 0!==window.gtag&&window.gtag("event","auttag",window.ga4Dims)},k=()=>{if(!document.cookie)return"";var r="";return document.cookie.split(";").forEach(t=>{if(t.includes("_autid=")&&(window.ga4Dims=window.ga4Dims||{},window.ga4Dims.ga_aut_id=t.split("=")[1]),t.includes("sailthru_visitor=")){var e=a(t.split("="),2);r=e[1]}}),r};t(function*(){var r,t,n=e().user,o=void 0===n?{}:n,i=o.account,a=(void 0===i?{}:i).emailAddress,c=void 0===a?"":a,u=o.trackingId,d=void 0===u?"":u,l=window.nypAqfer,s=void 0===l?{}:l,f=s.featureFlags,p=(void 0===f?{}:f).tag,y=void 0!==p&&p,v=s.root,w=void 0===v?"":v;(m().finally(()=>{window.gtfScripts.idHashes||(window.gtfScripts.idHashes={}),window.dispatchEvent(new CustomEvent("gtfScriptsIdHashesReady"))}),y)&&(null!==(r=window.localStorage)&&void 0!==r&&r.getItem("__cachedAqferResponse_neighbors")&&(null===(t=window.localStorage)||void 0===t||t.removeItem("__cachedAqferResponse_neighbors")),(()=>{var r=(window.nypAqfer||{}).root,t=void 0===r?"":r;window.addEventListener("message",r=>{if(r.origin===t){var e=r.data;if("string"==typeof e)try{var n,o,i=JSON.parse(e),a=i.message,c=void 0===a?"":a,u=i.sub_autId,d=void 0===u?"":u,l=i.sub_ipaddr,s=void 0===l?"":l;"aut cookie ready"===c&&d&&window.dispatchEvent(new CustomEvent("nyp-aqfer:aut-cookie-ready",{detail:{aut:d}})),localStorage?(d&&(null===(n=localStorage)||void 0===n||n.setItem("_autId",d)),s&&(null===(o=localStorage)||void 0===o||o.setItem("ipaddr",s))):console.error("Aqfer: localStorage is not supported on this browser for aUT ID.")}catch(r){console.log("Aqfer: Error parsing message for aUT ID.",r)}}})})(),h(I),h(D),(r=>{var t=window.nypAqfer,e=(void 0===t?{}:t).isProduction,n=r;void 0!==e&&e||(n.cls="preprod"),console.log("Aqfer C057Data",n),window.c057Data=n,function(r,t,e,n){var o,i=[],a=r.tt.slice(-1),c={cdmn:1,lm:1,tt:1},u={cid:1,cls:1,dmn:1,pubid:1,evid:1,aq_m:1};for(o in r.dmn=(r.dmn||(e.top[n]===e[n]?""+e[n]:t.referrer).split("/")[2]).split(":")[0],r)(u[o]||("j"!=a||r.aq_m)&&!c[o])&&i.push(o+"="+r[o]);var d=t.createElement("f"==a?"img":"script");d.id=d.title="pxscrpt",d.async=d.defer=!0,d.src="//"+r.cdmn+"/1/"+r.lm+"/"+r.tt+"?"+i.join("&"),t.body.appendChild(d)}(n,document,window,"location")})({cdmn:w.replace("https://",""),lm:"e",tt:"tcs.dhj",aqet:"pv",v0:c,v1:k(),v2:d,v3:"",v4:"",v5:""}))})()}();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.