PageSourceSearch

https://scaniverse.nianticspatial.com/_next/static/chunks/7288.a75ec996094cbab7.js

js nianticspatial.com collected 2026-10-09 22:39:45 UTC 24,556 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7288],{57288:(e,t,r)=>{let n,o;r.r(t),r.d(t,{evaluateTargeting:()=>ey});var a=r(71450),i=r(81029).hp,s=function(e,t){return(s=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},c=function(){return(c=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function u(e,t,r,n){return new(r||(r=Promise))(function(o,a){function i(e){try{c(n.next(e))}catch(e){a(e)}}function s(e){try{c(n.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?o(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(i,s)}c((n=n.apply(e,t||[])).next())})}function l(e,t){var r,n,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(c){var u=[s,c];if(r)throw TypeError("Generator is already executing.");for(;a&&(a=0,u[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&u[0]?n.return:u[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,u[1])).done)return o;switch(n=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,n=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===u[0]||2===u[0])){i=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){i.label=u[1];break}if(6===u[0]&&i.label<o[1]){i.label=o[1],o=u;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(u);break}o[2]&&i.ops.pop(),i.trys.pop();continue}u=t.call(e,i)}catch(e){u=[6,e],n=0}finally{r=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}function f(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}"function"==typeof SuppressedError&&SuppressedError;var h={IS:"is",IS_NOT:"is not",CONTAINS:"contains",DOES_NOT_CONTAIN:"does not contain",LESS_THAN:"less",LESS_THAN_EQUALS:"less or equal",GREATER_THAN:"greater",GREATER_THAN_EQUALS:"greater or equal",VERSION_LESS_THAN:"version less",VERSION_LESS_THAN_EQUALS:"version less or equal",VERSION_GREATER_THAN:"version greater",VERSION_GREATER_THAN_EQUALS:"version greater or equal",SET_IS:"set is",SET_IS_NOT:"set is not",SET_CONTAINS:"set contains",SET_DOES_NOT_CONTAIN:"set does not contain",SET_CONTAINS_ANY:"set contains any",SET_DOES_NOT_CONTAIN_ANY:"set does not contain any",REGEX_MATCH:"regex match",REGEX_DOES_NOT_MATCH:"regex does not match"},p=function(e){for(var t=[],r=0,n=0;n<e.length;n++){var o=e.charCodeAt(n);o<128?t[r++]=o:(o<2048?t[r++]=o>>6|192:((64512&o)==55296&&n+1<e.length&&(64512&e.charCodeAt(n+1))==56320?(o=65536+((1023&o)<<10)+(1023&e.charCodeAt(++n)),t[r++]=o>>18|240,t[r++]=o>>12&63|128):t[r++]=o>>12|224,t[r++]=o>>6&63|128),t[r++]=63&o|128)}return Uint8Array.from(t)},d=function(e,t){void 0===t&&(t=0);for(var r=p(e),n=r.length,o=n>>2,a=t,i=0;i<o;i++)a=v(E(r,i<<2),a);var s=o<<2,c=0;switch(n-s){case 3:c^=r[s+2]<<16,c^=r[s+1]<<8,c^=r[s],a^=c=Math.imul(c=S(c=Math.imul(c,-0x3361d2af),15),0x1b873593);break;case 2:c^=r[s+1]<<8,c^=r[s],a^=c=Math.imul(c=S(c=Math.imul(c,-0x3361d2af),15),0x1b873593);break;case 1:c^=r[s],a^=c=Math.imul(c=S(c=Math.imul(c,-0x3361d2af),15),0x1b873593)}return y(a^=n)>>>0},v=function(e,t){var r=e,n=t;return n^=r=Math.imul(r=S(r=Math.imul(r,-0x3361d2af),15),0x1b873593),(n=Math.imul(n=S(n,13),5))+-0x19ab949c|0},y=function(e){var t=e;return t^=t>>>16,t=Math.imul(t,-0x7a143595),t^=t>>>13,t=Math.imul(t,-0x3d4d51cb),t^=t>>>16},S=function(e,t,r){void 0===r&&(r=32),t>r&&(t%=r);var n=(e&0xffffffff<<r-t>>>0)>>>0>>>r-t>>>0;return(e<<t|n)>>>0},E=function(e,t){return void 0===t&&(t=0),_(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])},_=function(e){return(-0x1000000&e)>>>24|(0xff0000&e)>>>8|(65280&e)<<8|(255&e)<<24},A=function(e,t){var r,n;if(t&&0!==t.length){try{for(var o=f(t),a=o.next();!a.done;a=o.next()){var i=a.value;if(!i||!e||"object"!=typeof e)return;e=e[i]}}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}if(!e)return;return e}},T="^".concat("(\\d+)\\.(\\d+)","(\\.").concat("(\\d+)").concat("(-(([-\\w]+\\.?)*)
1)?",")?$"),N=function(){function e(e,t,r,n){void 0===n&&(n=void 0),this.major=e,this.minor=t,this.patch=r,this.preRelease=n}return e.parse=function(t){if(t){var r=new RegExp(T).exec(t);if(r){var n=Number(r[1]),o=Number(r[2]);if(!(isNaN(n)||isNaN(o)))return new e(n,o,Number(r[4])||0,r[5]||void 0)}}},e.prototype.compareTo=function(e){if(this.major>e.major)return 1;if(this.major<e.major)return -1;if(this.minor>e.minor)return 1;if(this.minor<e.minor)return -1;if(this.patch>e.patch)return 1;if(this.patch<e.patch||this.preRelease&&!e.preRelease)return -1;if(!this.preRelease&&e.preRelease)return 1;if(this.preRelease&&e.preRelease){if(this.preRelease>e.preRelease)return 1;if(this.preRelease<e.preRelease)return -1}return 0},e}(),g=function(){function e(){}return e.prototype.evaluate=function(e,t){var r,n,o={},a={context:e,result:o};try{for(var i=f(t),s=i.next();!s.done;s=i.next()){var c=s.value,u=this.evaluateFlag(a,c);u&&(o[c.key]=u)}}catch(e){r={error:e}}finally{try{s&&!s.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return o},e.prototype.evaluateFlag=function(e,t){try{for(var r,n,o,a=f(t.segments),i=a.next();!i.done;i=a.next()){var s=i.value;if(o=this.evaluateSegment(e,t,s)){var u=c(c(c({},t.metadata),s.metadata),o.metadata);o=c(c({},o),{metadata:u});break}}}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}return o},e.prototype.evaluateSegment=function(e,t,r){var n,o,a,i;if(!r.conditions){var s=this.bucket(e,r);return void 0!==s?t.variants[s]:void 0}try{for(var c=f(r.conditions),u=c.next();!u.done;u=c.next()){var l=u.value,h=!0;try{for(var p=(a=void 0,f(l)),d=p.next();!d.done;d=p.next()){var v=d.value;if(!(h=this.matchCondition(e,v)))break}}catch(e){a={error:e}}finally{try{d&&!d.done&&(i=p.return)&&i.call(p)}finally{if(a)throw a.error}}if(h){var s=this.bucket(e,r);if(void 0!==s)return t.variants[s];return}}}catch(e){n={error:e}}finally{try{u&&!u.done&&(o=c.return)&&o.call(c)}finally{if(n)throw n.error}}},e.prototype.matchCondition=function(e,t){var r=A(e,t.selector);if(!r)return this.matchNull(t.op,t.values);if(this.isSetOperator(t.op)){var n=this.coerceStringArray(r);return!!n&&this.matchSet(n,t.op,t.values)}var o=this.coerceString(r);return void 0!==o&&this.matchString(o,t.op,t.values)},e.prototype.getHash=function(e){return d(e)},e.prototype.bucket=function(e,t){if(!t.bucket)return t.variant;var r,n,o,a,i=this.coerceString(A(e,t.bucket.selector));if(!i||0===i.length)return t.variant;var s="".concat(t.bucket.salt,"/").concat(i),c=this.getHash(s),u=c%100,l=Math.floor(c/100);try{for(var h=f(t.bucket.allocations),p=h.next();!p.done;p=h.next()){var d=p.value,v=d.range[0],y=d.range[1];if(u>=v&&u<y)try{for(var S=(o=void 0,f(d.distributions)),E=S.next();!E.done;E=S.next()){var _=E.value,T=_.range[0],N=_.range[1];if(l>=T&&l<N)return _.variant}}catch(e){o={error:e}}finally{try{E&&!E.done&&(a=S.return)&&a.call(S)}finally{if(o)throw o.error}}}}catch(e){r={error:e}}finally{try{p&&!p.done&&(n=h.return)&&n.call(h)}finally{if(r)throw r.error}}return t.variant},e.prototype.matchNull=function(e,t){var r=this.containsNone(t);switch(e){case h.IS:case h.CONTAINS:case h.LESS_THAN:case h.LESS_THAN_EQUALS:case h.GREATER_THAN:case h.GREATER_THAN_EQUALS:case h.VERSION_LESS_THAN:case h.VERSION_LESS_THAN_EQUALS:case h.VERSION_GREATER_THAN:case h.VERSION_GREATER_THAN_EQUALS:case h.SET_IS:case h.SET_CONTAINS:case h.SET_CONTAINS_ANY:return r;case h.IS_NOT:case h.DOES_NOT_CONTAIN:case h.SET_DOES_NOT_CONTAIN:case h.SET_DOES_NOT_CONTAIN_ANY:return!r;default:return!1}},e.prototype.matchSet=function(e,t,r){switch(t){case h.SET_IS:return this.setEquals(e,r);case h.SET_IS_NOT:return!this.setEquals(e,r);case h.SET_CONTAINS:return this.matchesSetContainsAll(e,r);case h.SET_DOES_NOT_CONTAIN:return!this.matchesSetContainsAll(e,r);case h.SET_CONTAINS_ANY:return this.matchesSetContainsAny(e,r);case h.SET_DOES_NOT_CONTAIN_ANY:return!this.matchesSetContainsAny(e,r);default:return!1}},e.prototype.matchString=function(e,t,r){var n=this;switch(t){case h.IS:return this.matchesIs(e,r);case h.IS_NOT:return!this.matchesIs(e,r);case h.CONTAINS:return this.matchesContains(e,r);case h.DOES_NOT_CONTAIN:return!this.matchesContains(e,r);case h.LESS_THAN:case h.LESS_THAN_EQUALS:case h.GREATER_THAN:case h.GREATER_THAN_EQUALS:return this.matchesComparable(e,t,r,function(e){return n.parseNumber(e)},this.comparator);case h.VERSION_LESS_THAN:case h.VERSION_LESS_THAN_EQUALS:case h.VERSION_GREATER_THAN:case h.VERSION_GREATER_THAN_EQUALS:return this.matchesComparable(e,t,r,function(e){return N.parse(e)},this.versionComparator);case h.REGEX_MATCH:return this.matchesRegex(e,r);case h.REGEX_DOES_NOT_MATCH:return!this.matchesRegex(e,r);default:return!1}},e.prototype.matchesIs=function(e,t){if(this.containsBooleans(t)){var r=e.toLowerCase();if("true"===r||"false"===r)return t.some(function(e){return e.toLowerCase()===r})}return t.some(function(t){return e===t})},e.prototype.matchesContains=function(e,t){var r,n;try{for(var o=f(t),a=o.next();!a.done;a=o.next()){var i=a.value;if(e.toLowerCase().includes(i.toLowerCase()))return!0}}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return!1},e.prototype.matchesComparable=function(e,t,r,n,o){var a=this,i=n(e),s=r.map(function(e){return n(e)}).filter(function(e){return void 0!==e});return void 0===i||0===s.length?r.some(function(r){return a.comparator(e,t,r)}):s.some(function(e){return o(i,t,e)})},e.prototype.comparator=function(e,t,r){switch(t){case h.LESS_THAN:case h.VERSION_LESS_THAN:return e<r;case h.LESS_THAN_EQUALS:case h.VERSION_LESS_THAN_EQUALS:return e<=r;case h.GREATER_THAN:case h.VERSION_GREATER_THAN:return e>r;case h.GREATER_THAN_EQUALS:case h.VERSION_GREATER_THAN_EQUALS:return e>=r;default:return!1}},e.prototype.versionComparator=function(e,t,r){var n=e.compareTo(r);switch(t){case h.LESS_THAN:case h.VERSION_LESS_THAN:return n<0;case h.LESS_THAN_EQUALS:case h.VERSION_LESS_THAN_EQUALS:return n<=0;case h.GREATER_THAN:case h.VERSION_GREATER_THAN:return n>0;case h.GREATER_THAN_EQUALS:case h.VERSION_GREATER_THAN_EQUALS:return n>=0;default:return!1}},e.prototype.matchesRegex=function(e,t){return t.some(function(t){return!!new RegExp(t).exec(e)})},e.prototype.containsNone=function(e){return e.some(function(e){return"(none)"===e})},e.prototype.containsBooleans=function(e){return e.some(function(e){switch(e.toLowerCase()){case"true":case"false":return!0;default:return!1}})},e.prototype.parseNumber=function(e){var t;return null!=(t=Number(e))?t:void 0},e.prototype.coerceString=function(e){if(e)return"object"==typeof e?JSON.stringify(e):String(e)},e.prototype.coerceStringArray=function(e){var t=this;if(Array.isArray(e)){var r=e;return r.map(function(e){return t.coerceString(e)}
1).filter(Boolean)}var n=String(e);try{var o=JSON.parse(n);if(!Array.isArray(o))return;var r=e;return r.map(function(e){return t.coerceString(e)}).filter(Boolean)}catch(e){return}},e.prototype.isSetOperator=function(e){switch(e){case h.SET_IS:case h.SET_IS_NOT:case h.SET_CONTAINS:case h.SET_DOES_NOT_CONTAIN:case h.SET_CONTAINS_ANY:case h.SET_DOES_NOT_CONTAIN_ANY:return!0;default:return!1}},e.prototype.setEquals=function(e,t){var r=new Set(e),n=new Set(t);return r.size===n.size&&(function(e,t,r){if(r||2==arguments.length)for(var n,o=0,a=t.length;o<a;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))})([],function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,a=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=a.next()).done;)i.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 i}(n),!1).every(function(e){return r.has(e)})},e.prototype.matchesSetContainsAll=function(e,t){var r,n;if(e.length<t.length)return!1;try{for(var o=f(t),a=o.next();!a.done;a=o.next()){var i=a.value;if(!this.matchesIs(i,e))return!1}}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return!0},e.prototype.matchesSetContainsAny=function(e,t){var r,n;try{for(var o=f(t),a=o.next();!a.done;a=o.next()){var i=a.value;if(this.matchesIs(i,e))return!0}}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return!1},e}();let m="function"==typeof atob,b="function"==typeof btoa,O="function"==typeof i,I="function"==typeof TextDecoder?new TextDecoder:void 0,C="function"==typeof TextEncoder?new TextEncoder:void 0,w=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),x=(e=>{let t={};return e.forEach((e,r)=>t[e]=r),t})(w),R=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,L=String.fromCharCode.bind(String),H="function"==typeof Uint8Array.from?Uint8Array.from.bind(Uint8Array):e=>new Uint8Array(Array.prototype.slice.call(e,0)),D=e=>e.replace(/=/g,"").replace(/[+\/]/g,e=>"+"==e?"-":"_"),U=e=>e.replace(/[^A-Za-z0-9\+\/]/g,""),k=b?e=>btoa(e):O?e=>i.from(e,"binary").toString("base64"):e=>{let t,r,n,o,a="",i=e.length%3;for(let i=0;i<e.length;){if((r=e.charCodeAt(i++))>255||(n=e.charCodeAt(i++))>255||(o=e.charCodeAt(i++))>255)throw TypeError("invalid character found");a+=w[(t=r<<16|n<<8|o)>>18&63]+w[t>>12&63]+w[t>>6&63]+w[63&t]}return i?a.slice(0,i-3)+"===".substring(i):a},B=O?e=>i.from(e).toString("base64"):e=>{let t=[];for(let r=0,n=e.length;r<n;r+=4096)t.push(L.apply(null,e.subarray(r,r+4096)));return k(t.join(""))},F=e=>{if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?L(192|t>>>6)+L(128|63&t):L(224|t>>>12&15)+L(128|t>>>6&63)+L(128|63&t)}var t=65536+(e.charCodeAt(0)-55296)*1024+(e.charCodeAt(1)-56320);return L(240|t>>>18&7)+L(128|t>>>12&63)+L(128|t>>>6&63)+L(128|63&t)},V=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,G=O?e=>i.from(e,"utf8").toString("base64"):C?e=>B(C.encode(e)):e=>k(e.replace(V,F)),M=(e,t=!1)=>t?D(G(e)):G(e),j=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,P=e=>{switch(e.length){case 4:var t=((7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3))-65536;return L((t>>>10)+55296)+L((1023&t)+56320);case 3:return L((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return L((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},Q=m?e=>atob(U(e)):O?e=>i.from(e,"base64").toString("binary"):e=>{if(e=e.replace(/\s+/g,""),!R.test(e))throw TypeError("malformed base64.");e+="==".slice(2-(3&e.length));let t,r="",n,o;for(let a=0;a<e.length;)t=x[e.charAt(a++)]<<18|x[e.charAt(a++)]<<12|(n=x[e.charAt(a++)])<<6|(o=x[e.charAt(a++)]),r+=64===n?L(t>>16&255):64===o?L(t>>16&255,t>>8&255):L(t>>16&255,t>>8&255,255&t);return r},K=O?e=>H(i.from(e,"base64")):e=>H(Q(e).split("").map(e=>e.charCodeAt(0))),Y=O?e=>i.from(e,"base64").toString("utf8"):I?e=>I.decode(K(e)):e=>Q(e).replace(j,P),q={encodeURL:e=>M(e,!0)};var z=function(e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function t(){this.constructor=r}function r(t,n){var o=e.call(this,n)||this;return o.statusCode=t,Object.setPrototypeOf(o,r.prototype),o}return s(r,e),r.prototype=null===e?Object.create(e):(t.prototype=e.prototype,new t),r}(Error);(function(e,t,r){this.deploymentKey=e,this.serverUrl=t,this.httpClient=r}).prototype.getVariants=function(e,t){return u(this,void 0,void 0,function(){var r,n,o;return l(this,function(a){switch(a.label){case 0:return r=q.encodeURL(JSON.stringify(e)),n={Authorization:"Api-Key ".concat(this.deploymentKey),"X-Amp-Exp-User":r},(null==t?void 0:t.flagKeys)&&(n["X-Amp-Exp-Flag-Keys"]=q.encodeURL(JSON.stringify(t.flagKeys))),(null==t?void 0:t.trackingOption)&&(n["X-Amp-Exp-Track"]=t.trackingOption),[4,this.httpClient.request({requestUrl:"".concat(this.serverUrl,"/sdk/v2/vardata?v=0"),method:"GET",headers:n,timeoutMillis:null==t?void 0:t.t
1imeoutMillis})];case 1:if(200!=(o=a.sent()).status)throw new z(o.status,"Fetch error response: status=".concat(o.status));return[2,JSON.parse(o.body)]}})})},(function(e,t,r){this.deploymentKey=e,this.serverUrl=t,this.httpClient=r}).prototype.getFlags=function(e){return u(this,void 0,void 0,function(){var t,r;return l(this,function(n){switch(n.label){case 0:return t={Authorization:"Api-Key ".concat(this.deploymentKey)},(null==e?void 0:e.libraryName)&&(null==e?void 0:e.libraryVersion)&&(t["X-Amp-Exp-Library"]="".concat(e.libraryName,"/").concat(e.libraryVersion)),[4,this.httpClient.request({requestUrl:"".concat(this.serverUrl,"/sdk/v2/flags"),method:"GET",headers:t,timeoutMillis:null==e?void 0:e.timeoutMillis})];case 1:if(200!=(r=n.sent()).status)throw Error("Flags error response: status=".concat(r.status));return[2,JSON.parse(r.body).reduce(function(e,t){return e[t.key]=t,e},{})]}})})};var X="undefined"!=typeof globalThis?globalThis:r.g||self;!function(){function e(e,t){this.poller=void 0,this.action=e,this.ms=t}e.prototype.start=function(){this.poller||(this.poller=X.setInterval(this.action,this.ms),this.action())},e.prototype.stop=function(){this.poller&&(X.clearInterval(this.poller),this.poller=void 0)}}();let J=(e,t)=>t.some(t=>e instanceof t),W=new WeakMap,Z=new WeakMap,$=new WeakMap,ee={get(e,t,r){if(e instanceof IDBTransaction){if("done"===t)return W.get(e);if("store"===t)return r.objectStoreNames[1]?void 0:r.objectStore(r.objectStoreNames[0])}return et(e[t])},set:(e,t,r)=>(e[t]=r,!0),has:(e,t)=>e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e};function et(e){if(e instanceof IDBRequest){let t=new Promise((t,r)=>{let n=()=>{e.removeEventListener("success",o),e.removeEventListener("error",a)},o=()=>{t(et(e.result)),n()},a=()=>{r(e.error),n()};e.addEventListener("success",o),e.addEventListener("error",a)});return $.set(t,e),t}if(Z.has(e))return Z.get(e);let t=function(e){if("function"==typeof e)return(o||(o=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(e)?function(...t){return e.apply(er(this),t),et(this.request)}:function(...t){return et(e.apply(er(this),t))};return(e instanceof IDBTransaction&&function(e){if(W.has(e))return;let t=new Promise((t,r)=>{let n=()=>{e.removeEventListener("complete",o),e.removeEventListener("error",a),e.removeEventListener("abort",a)},o=()=>{t(),n()},a=()=>{r(e.error||new DOMException("AbortError","AbortError")),n()};e.addEventListener("complete",o),e.addEventListener("error",a),e.addEventListener("abort",a)});W.set(e,t)}(e),J(e,n||(n=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])))?new Proxy(e,ee):e}(e);return t!==e&&(Z.set(e,t),$.set(t,e)),t}let er=e=>$.get(e),en=["get","getKey","getAll","getAllKeys","count"],eo=["put","add","delete","clear"],ea=new Map;function ei(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&"string"==typeof t))return;if(ea.get(t))return ea.get(t);let r=t.replace(/FromIndex$/,""),n=t!==r,o=eo.includes(r);if(!(r in(n?IDBIndex:IDBObjectStore).prototype)||!(o||en.includes(r)))return;let a=async function(e,...t){let a=this.transaction(e,o?"readwrite":"readonly"),i=a.store;return n&&(i=i.index(t.shift())),(await Promise.all([i[r](...t),o&&a.done]))[0]};return ea.set(t,a),a}ee=(e=>({...e,get:(t,r,n)=>ei(t,r)||e.get(t,r,n),has:(t,r)=>!!ei(t,r)||e.has(t,r)}))(ee);let es=["continue","continuePrimaryKey","advance"],ec={},eu=new WeakMap,el=new WeakMap,ef={get(e,t){if(!es.includes(t))return e[t];let r=ec[t];return r||(r=ec[t]=function(...e){eu.set(this,el.get(this)[t](...e))}),r}};async function*eh(...e){let t=this;if(t instanceof IDBCursor||(t=await t.openCursor(...e)),!t)return;let r=new Proxy(t,ef);for(el.set(r,t),$.set(r,er(t));t;)yield r,t=await (eu.get(r)||t.continue()),eu.delete(r)}function ep(e,t){return t===Symbol.asyncIterator&&J(e,[IDBIndex,IDBObjectStore,IDBCursor])||"iterate"===t&&J(e,[IDBIndex,IDBObjectStore])}ee=(e=>({...e,get:(t,r,n)=>ep(t,r)?eh:e.get(t,r,n),has:(t,r)=>ep(t,r)||e.has(t,r)}))(ee);var ed=new function(){var e=this;this.dbs={},this.createStore=function(t){return(0,a.sH)(e,void 0,void 0,function(){return(0,a.YH)(this,function(e){switch(e.label){case 0:return[4,function(e,t,{blocked:r,upgrade:n,blocking:o,terminated:a}={}){let i=indexedDB.open(e,1),s=et(i);return n&&i.addEventListener("upgradeneeded",e=>{n(et(i.result),e.oldVersion,e.newVersion,et(i.transaction),e)}),r&&i.addEventListener("blocked",e=>r(e.oldVersion,e.newVersion,e)),s.then(e=>{a&&e.addEventListener("close",()=>a()),o&&e.addEventListener("versionchange",e=>o(e.oldVersion,e.newVersion,e))}).catch(()=>{}),s}(t,0,{upgrade:function(e){e.objectStoreNames.contains("eventTypesForSession")||e.createObjectStore("eventTypesForSession",{keyPath:"sessionId"})}})];case 1:return[2,e.sent()]}})})},this.openOrCreateDB=function(t){return(0,a.sH)(e,void 0,void 0,function(){var e,r;return(0,a.YH)(this,function(n){switch(n.label){case 0:if(this.dbs&&this.dbs[t])return[2,this.dbs[t]];return e="".concat(t.substring(0,10),"_amp_targeting"),[4,this.createStore(e)];case 1:return r=n.sent(),this.dbs[t]=r,[2,r]}})})},this.updateEventListForSession=function(t){var r=t.sessionId,n=t.eventType,o=t.eventTime,i=t.loggerProvider,s=t.tx;return(0,a.sH)(e,void 0,void 0,function(){var e,t,c,u,l,f,h,p,d;return(0,a.YH)(this,function(v){switch(v.label){case 0:return v.trys.push([0,3,,4]),e=String(r),[4,s.store.get(e)];case 1:return u=(c=(t=v.sent())?t.eventTypes:{})[n]||{},l=(0,a.Cl)((0,a.Cl)({},c),((p={})[n]=(0,a.Cl)((0,a.Cl)({},u),((d={})[o]={event_type:n},d)),p)),f={sessionId:e,eventTypes:l,lastUpdated:Date.now()},[4,s.store.put(f)];case 2:return v.sent(),[2,l];case 3:return h=v.sent(),i.warn("Failed to store events for targeting ".concat(r,": ").concat(h)),[3,4];case 4:return[2,void 0]}})})},this.deleteOldSessionEventTypes=function(t){var r=t.currentSessionId,n=t.loggerProvider,o=t.tx;return(0,a.sH)(e,void 0,void 0,function(){var e,t,i,s,c,u;return(0,a.YH)(this,function(a){switch(a.label){case 0:return a.trys.push([0,6,,7]),e=String(r),[4,o.store.getAll()];case 1:t=a.sent(),i=0,a.label=2;case 2:if(!(i<t.length))return[3,5];if(s=t[i],c=Date.now()-s.lastUpdated,!(s.sessionId!==e&&c>1728e5))return[3,4];return[4,o.store.delete(s.sessionId)];case 3:a.sent(),a.label=4;case 4:return i++,[3,2];case 5:return[3,7];case 6:return u=a.sent(),n.warn("Failed to clear old session event types for targeting: ".concat(u)),[3,7];case 7:return[2]}})})},this.storeEventTypeForSession=function(t){var r=t.loggerProvider,n=t.sessionId,o=t.eventType,i=t.eventTime,s=t.apiKey;return(0,a.sH)(e,void 0,void 0,function(){var e,t,c;return(0,a.YH)(this,function(a){switch(a.label){case 0:return a.trys.push([0,5,,6]),[4,this.openOrCreateDB(s)];case 1:if(!(e=a.sent().transaction("eventTypesForSession","readwrite")))return[2];return[4,this.updateEventListForSession({sessionId:n,tx:e,loggerProvider:r,eventType:o,eventTime:i})];case 2:return t=a.sent(),[4,this.deleteOldSessionEventTypes({currentSessionId:n,tx:e,loggerProvider:r})];case 3:return a.sent(),[4,e.done];case 4:return a.sent(),[2,t];case 5:return c=a.sent(),r.warn("Failed to store events for targeting ".concat(n,": ").concat(c)),[3,6];case 6:return[2,void 0]}})})}},ev=function(){var e=this;this.evaluateTargeting=function(t){var r=t.apiKey,n=t.loggerProvider,o=t.event,i=t.sessionId,s=t.userProperties,c=t.deviceId,u=t.page,l=t.flag;return(0,a.sH)(e,void 0,void 0,function(){var e,t,f,h;return(0,a.YH)(this,function(p){switch(p.label){case 0:if(!(o&&o.time))return[3,2];return[4,ed.storeEventTypeForSession({loggerProvider:n,apiKey:r,sessionId:i,eventType:o.event_type,eventTime:o.time})];case 1:return t=p.sent(),[3,3];case 2:t=void 0,p.label=3;case 3:return h={session_id:i,event:o,event_types:(f=(e=t)&&new Set(Object.keys(e)))&&Array.from(f),user:(0,a.Cl)((0,a.Cl)({},s),{device_id:c,user_properties:s}),page:u},[2,this.evaluationEngine.evaluate(h,[l])]}})})},this.evaluationEngine=new g},ey=function(){var e=new ev;return{evaluateTargeting:e.evaluateTargeting.bind(e)}}().evaluateTargeting}}]);

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.