PageSourceSearch

https://modulous.huffpost.com/2025/02/17/1739805190-amazon_aps.js

js huffpost.com collected 2026-09-24 07:33:49 UTC 2,459 bytes, 17 lines download raw bytes

1const aps=((e="3713")=>{window._aps=window._aps||new Map,_aps.has(e)||_aps.set(e,{queue:[],store:new Map([["listeners",new Map]])});let t={accountID:e,record:function(e,t){return new Promise((r,n)=>{_aps.get(this.accountID).queue.push(new CustomEvent(e,{detail:{...t,resolve:r,reject:n}}))})},read:function(e){return this.record("bootstrap/store/willRead",{name:e}),_aps.get(this.accountID).store.get(e)},run:function(e,t){_aps.get("_system")?.store.get("listeners").has(e)?this.record(e,t):this.record("bootstrap/run/willDrop",{name:e,detail:t})},react:function(e,t){_aps.get(this.accountID).store.get("listeners").set(e,t);this.record("bootstrap/react/didExecute",{name:e})}};return t.record("bootstrap/version/declare",{version:5}),t})();((t=aps)=>{window.apstag=window.apstag||{init:function(e,r){t.record("legacy/init/enqueue",{config:e,callback:r})},fetchBids:function(e,r){t.record("legacy/fetchBids/enqueue",{bidConfig:e,callback:r})},setDisplayBids:function(){t.run("legacy/setDisplayBids/enqueue",{arguments:arguments})},targetingKeys:function(){return t.read("legacy/targetingKeys")??[]},rpa:function(e,r,n){t.record("legacy/rpa/enqueue",{tokenConfig:e,callback:r,setCookie:n})},upa:function(e,r,n){t.record("legacy/upa/enqueue",{tokenConfig:e,callback:r,setCookie:n})},dpa:function(e){t.record("legacy/dpa/enqueue",{callback:e})}};t.record("bootstrapExtAPStag/version/declare",{version:1})})();((t=aps)=>{window.apstag={...window.apstag,queue:{push:function(e){t.record("legacy/queue/push",{callback:e})}}};t.record("bootstrapExtQueue/version/declare",{version:1})})();((t=aps)=>{window.apstag={...window.apstag,nativeContent:function(){return{enable:function(){t.record("nativeCommerceAds/service/enable")},registerHook:function(e,r){if(e==="nativeCommerceAds.updateClickUrl"){t.react("nativeCommerceAds/clickUrl/update",k=>{return{status:"completed",value:{url:r(k?.detail?.url,k?.detail?.element)}}})}else{throw new Error("Unsupported event type")}}}}};t.record("bootstrapExtNCA/version/declare",{version:1})})();
2
3!function(d,s,t,A,g){
4  A=d.createElement(s);
5  A.async=!0;
6  A.src=t;
7  g=d.getElementsByTagName(s)[0];
8  g.parentNode.insertBefore(A,g)
9}(document,"script","https://client.aps.amazon-adsystem.com/publisher.js");
10
11!function(d,s,t,A,g){
12  A=d.createElement(s);
13  A.async=!0;
14  A.src=t;
15  g=d.getElementsByTagName(s)[0];
16  g.parentNode.insertBefore(A,g)
17}(document,"script","https://config.aps.amazon-adsystem.com/configs/3713");

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.