PageSourceSearch

https://vaktex.com/_app/immutable/chunks/DKluN0jK.js

js vaktex.com collected 2026-10-09 22:57:06 UTC 22,513 bytes, 1 lines download raw bytes

1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`d3d7f33885ffe420ffaed73d5934e4a2be1856ef`};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`9450333f-4608-4189-808f-f75ba976182b`,e._sentryDebugIdIdentifier=`sentry-dbid-9450333f-4608-4189-808f-f75ba976182b`)}catch{}})();import{r as e}from"./C4PZ0-G2.js";import{i as t,n,t as r}from"./C53aWnzr.js";var i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},i(e,t)};function a(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Class extends value `+String(t)+` is not a constructor or null`);i(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},o.apply(this,arguments)};function s(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})}function c(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,o={next:s(0),throw:s(1),return:s(2)};return typeof Symbol==`function`&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return c([e,t])}}function c(s){if(r)throw TypeError(`Generator is already executing.`);for(;o&&(o=0,s[0]&&(n=0)),n;)try{if(r=1,i&&(a=s[0]&2?i.return:s[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,s[1])).done)return a;switch(i=0,a&&(s=[s[0]&2,a.value]),s[0]){case 0:case 1:a=s;break;case 4:return n.label++,{value:s[1],done:!1};case 5:n.label++,i=s[1],s=[0];continue;case 7:s=n.ops.pop(),n.trys.pop();continue;default:if(a=n.trys,!(a=a.length>0&&a[a.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!a||s[1]>a[0]&&s[1]<a[3])){n.label=s[1];break}if(s[0]===6&&n.label<a[1]){n.label=a[1],a=s;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(s);break}a[2]&&n.ops.pop(),n.trys.pop();continue}s=t.call(e,n)}catch(e){s=[6,e],i=0}finally{r=a=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}function l(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)}function u(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}function d(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var f={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=[],n=0,r=0;r<e.length;r++){var i=e.charCodeAt(r);i<128?t[n++]=i:i<2048?(t[n++]=i>>6|192,t[n++]=i&63|128):(i&64512)==55296&&r+1<e.length&&(e.charCodeAt(r+1)&64512)==56320?(i=65536+((i&1023)<<10)+(e.charCodeAt(++r)&1023),t[n++]=i>>18|240,t[n++]=i>>12&63|128,t[n++]=i>>6&63|128,t[n++]=i&63|128):(t[n++]=i>>12|224,t[n++]=i>>6&63|128,t[n++]=i&63|128)}return Uint8Array.from(t)},m=-862048943,h=461845907,g=15,_=13,v=5,y=-430675100,b=function(e,t){t===void 0&&(t=0);for(var n=p(e),r=n.length,i=r>>2,a=t,o=0;o<i;o++)a=x(te(n,o<<2),a);var s=i<<2,c=0;switch(r-s){case 3:c^=n[s+2]<<16,c^=n[s+1]<<8,c^=n[s],c=Math.imul(c,m),c=S(c,g),c=Math.imul(c,h),a^=c;break;case 2:c^=n[s+1]<<8,c^=n[s],c=Math.imul(c,m),c=S(c,g),c=Math.imul(c,h),a^=c;break;case 1:c^=n[s],c=Math.imul(c,m),c=S(c,g),c=Math.imul(c,h),a^=c}return a^=r,ee(a)>>>0},x=function(e,t){var n=e,r=t;return n=Math.imul(n,m),n=S(n,g),n=Math.imul(n,h),r^=n,r=S(r,_),r=Math.imul(r,v),r+y|0},ee=function(e){var t=e;return t^=t>>>16,t=Math.imul(t,-2048144789),t^=t>>>
113,t=Math.imul(t,-1028477387),t^=t>>>16,t},S=function(e,t,n){n===void 0&&(n=32),t>n&&(t%=n);var r=(e&4294967295<<n-t>>>0)>>>0>>>n-t>>>0;return(e<<t|r)>>>0},te=function(e,t){return t===void 0&&(t=0),ne(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])},ne=function(e){return(e&-16777216)>>>24|(e&16711680)>>>8|(e&65280)<<8|(e&255)<<24},C=function(e,t){var n,r;if(t&&t.length!==0){try{for(var i=l(t),a=i.next();!a.done;a=i.next()){var o=a.value;if(!o||!e||typeof e!=`object`)return;e=e[o]}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}if(e)return e}},re=`^(\\d+)\\.(\\d+)(\\.(\\d+)(-(([-\\w]+\\.?)*))?)?$`,ie=function(){function e(e,t,n,r){r===void 0&&(r=void 0),this.major=e,this.minor=t,this.patch=n,this.preRelease=r}return e.parse=function(t){if(t){var n=new RegExp(re).exec(t);if(n){var r=Number(n[1]),i=Number(n[2]);if(!(isNaN(r)||isNaN(i)))return new e(r,i,Number(n[4])||0,n[5]||void 0)}}},e.prototype.compareTo=function(e){return this.major>e.major?1:this.major<e.major?-1:this.minor>e.minor?1:this.minor<e.minor?-1:this.patch>e.patch?1:this.patch<e.patch||this.preRelease&&!e.preRelease?-1:!this.preRelease&&e.preRelease?1:this.preRelease&&e.preRelease?this.preRelease>e.preRelease?1:this.preRelease<e.preRelease?-1:0:0},e}(),ae=function(){function e(){}return e.prototype.evaluate=function(e,t){var n,r,i={},a={context:e,result:i};try{for(var o=l(t),s=o.next();!s.done;s=o.next()){var c=s.value,u=this.evaluateFlag(a,c);u&&(i[c.key]=u)}}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return i},e.prototype.evaluateFlag=function(e,t){var n,r,i;try{for(var a=l(t.segments),s=a.next();!s.done;s=a.next()){var c=s.value;if(i=this.evaluateSegment(e,t,c),i){var u=o(o(o({},t.metadata),c.metadata),i.metadata);i=o(o({},i),{metadata:u});break}}}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return i},e.prototype.evaluateSegment=function(e,t,n){var r,i,a,o;if(!n.conditions){var s=this.bucket(e,n);return s===void 0?void 0:t.variants[s]}try{for(var c=l(n.conditions),u=c.next();!u.done;u=c.next()){var d=u.value,f=!0;try{for(var p=(a=void 0,l(d)),m=p.next();!m.done;m=p.next()){var h=m.value;if(f=this.matchCondition(e,h),!f)break}}catch(e){a={error:e}}finally{try{m&&!m.done&&(o=p.return)&&o.call(p)}finally{if(a)throw a.error}}if(f){var s=this.bucket(e,n);return s===void 0?void 0:t.variants[s]}}}catch(e){r={error:e}}finally{try{u&&!u.done&&(i=c.return)&&i.call(c)}finally{if(r)throw r.error}}},e.prototype.matchCondition=function(e,t){var n=C(e,t.selector);if(!n)return this.matchNull(t.op,t.values);if(this.isSetOperator(t.op)){var r=this.coerceStringArray(n);return r?this.matchSet(r,t.op,t.values):!1}var i=this.coerceString(n);return i!==void 0&&this.matchString(i,t.op,t.values)},e.prototype.getHash=function(e){return b(e)},e.prototype.bucket=function(e,t){var n,r,i,a;if(!t.bucket)return t.variant;var o=this.coerceString(C(e,t.bucket.selector));if(!o||o.length===0)return t.variant;var s=`${t.bucket.salt}/${o}`,c=this.getHash(s),u=c%100,d=Math.floor(c/100);try{for(var f=l(t.bucket.allocations),p=f.next();!p.done;p=f.next()){var m=p.value,h=m.range[0],g=m.range[1];if(u>=h&&u<g)try{for(var _=(i=void 0,l(m.distributions)),v=_.next();!v.done;v=_.next()){var y=v.value,b=y.range[0],x=y.range[1];if(d>=b&&d<x)return y.variant}}catch(e){i={error:e}}finally{try{v&&!v.done&&(a=_.return)&&a.call(_)}finally{if(i)throw i.error}}}}catch(e){n={error:e}}finally{try{p&&!p.done&&(r=f.return)&&r.call(f)}finally{if(n)throw n.error}}return t.variant},e.prototype.matchNull=function(e,t){var n=this.containsNone(t);switch(e){case f.IS:case f.CONTAINS:case f.LESS_THAN:case f.LESS_THAN_EQUALS:case f.GREATER_THAN:case f.GREATER_THAN_EQUALS:case f.VERSION_LESS_THAN:case f.VERSION_LESS_THAN_EQUALS:case f.VERSION_GREATER_THAN:case f.VERSION_GREATER_THAN_EQUALS:case f.SET_IS:case f.SET_CONTAINS:case f.SET_CONTAINS_ANY:return n;case f.IS_NOT:case f.DOES_NOT_CONTAIN:case f.SET_DOES_NOT_CONTAIN:case f.SET_DOES_NOT_CONTAIN_ANY:return!n;default:return!1}},e.prototype.matchSet=function(e,t,n){switch(t){case f.SET_IS:return this.setEquals(e,n);case f.SET_IS_NOT:return!this.setEquals(e,n);case f.SET_CONTAINS:return this.matchesSetContainsAll(e,n);case f.SET_DOES_NOT_CONTAIN:return!this.matchesSetContainsAll(e,n);case f.SET_CONTAINS_ANY:return this.matchesSetContainsAny(e,n);case f.SET_DOES_NOT_CONTAIN_ANY:return!this.matchesSetContainsAny(e,n);default:return!1}},e.prototype.matchString=function(e,t,n){var r=this;switch(t){case f.IS:return this.matchesIs(e,n);case f.IS_NOT:return!this.matchesIs(e,n);case f.CONTAINS:return this.matchesContains(e,n);case f.DOES_NOT_CONTAIN:return!this.matchesContains(e,n);case f.LESS_THAN:case f.LESS_THAN_EQUALS:case f.GREATER_THAN:case f.GREATER_THAN_EQUALS:return this.matchesComparable(e,t,n,function(e){return r.parseNumber(e)},this.comparator);case f.VERSION_LESS_THAN:case f.VERSION_LESS_THAN_EQUALS:case f.VERSION_GREATER_THAN:case f.VERSION_GREATER_THAN_EQUALS:return this.matchesComparable(e,t,n,function(e){return ie.parse(e)},this.versionComparator);case f.REGEX_MATCH:return this.matchesRegex(e,n);case f.REGEX_DOES_NOT_MATCH:return!this.matchesRegex(e,n);default:return!1}},e.prototype.matchesIs=function(e,t){if(this.containsBooleans(t)){var n=e.toLowerCase();if(n===`true`||n===`false`)return t.some(function(e){return e.toLowerCase()===n})}return t.some(function(t){return e===t})},e.prototype.matchesContains=function(e,t){var n,r;try{for(var i=l(t),a=i.next();!a.done;a=i.next()){var o=a.value;if(e.toLowerCase().includes(o.toLowerCase()))return!0}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return!1},e.prototype.matchesComparable=function(e,t,n,r,i){var a=this,o=r(e),s=n.map(function(e){return r(e)}).filter(function(e){return e!==void 0});return o===void 0||s.length===0?n.some(function(n){return a.comparator(e,t,n)}):s.some(function(e){return i(o,t,e)})},e.prototype.comparator=function(e,t,n){switch(t){case f.LESS_THAN:case f.VERSION_LESS_THAN:return e<n;case f.LESS_THAN_EQUALS:case f.VERSION_LESS_THAN_EQUALS:return e<=n;case f.GREATER_THAN:case f.VERSION_GREATER_THAN:return e>n;case f.GREATER_THAN_EQUALS:case f.VERSION_GREATER_THAN_EQUALS:return e>=n;default:return!1}},e.prototype.versionComparator=function(e,t,n){var r=e.compareTo(n);switch(t){case f.LESS_THAN:case f.VERSION_LESS_THAN:return r<0;case f.LESS_THAN_EQUALS:case f.VERSION_LESS_THAN_EQUALS:return r<=0;case f.GREATER_THAN:case f.VERSION_GREATER_THAN:return r>0;case f.GREATER_THAN_EQUALS:case f.VERSION_GREATER_THAN_EQUALS:return r>=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 e===`(none)`})},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){return Number(e)??void 0},e.prototype.coerceString=function(e){if(e)return typeof e==`object`?JSON.stringify(e):String(e)},e.prototype.coerceStringArray=function(e){var t=this;if(Array.isArray(e)){var n=e;return n.map(function(e){return t.coerceString(e)}
vendor: 4,382 bytes, line 1
1).filter(Boolean)}var r=String(e);try{var i=JSON.parse(r);if(Array.isArray(i)){var n=e;return n.map(function(e){return t.coerceString(e)}).filter(Boolean)}return}catch{return}},e.prototype.isSetOperator=function(e){switch(e){case f.SET_IS:case f.SET_IS_NOT:case f.SET_CONTAINS:case f.SET_DOES_NOT_CONTAIN:case f.SET_CONTAINS_ANY:case f.SET_DOES_NOT_CONTAIN_ANY:return!0;default:return!1}},e.prototype.setEquals=function(e,t){var n=new Set(e),r=new Set(t);return n.size===r.size&&d([],u(r),!1).every(function(e){return n.has(e)})},e.prototype.matchesSetContainsAll=function(e,t){var n,r;if(e.length<t.length)return!1;try{for(var i=l(t),a=i.next();!a.done;a=i.next()){var o=a.value;if(!this.matchesIs(o,e))return!1}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return!0},e.prototype.matchesSetContainsAny=function(e,t){var n,r;try{for(var i=l(t),a=i.next();!a.done;a=i.next()){var o=a.value;if(this.matchesIs(o,e))return!0}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return!1},e}(),w=`3.7.5`,oe=w,se=typeof atob==`function`,ce=typeof btoa==`function`,T=typeof Buffer==`function`,E=typeof TextDecoder==`function`?new TextDecoder:void 0,D=typeof TextEncoder==`function`?new TextEncoder:void 0,O=Array.prototype.slice.call(`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=`),k=(e=>{let t={};return e.forEach((e,n)=>t[e]=n),t})(O),le=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,A=String.fromCharCode.bind(String),j=typeof Uint8Array.from==`function`?Uint8Array.from.bind(Uint8Array):e=>new Uint8Array(Array.prototype.slice.call(e,0)),M=e=>e.replace(/=/g,``).replace(/[+\/]/g,e=>e==`+`?`-`:`_`),N=e=>e.replace(/[^A-Za-z0-9\+\/]/g,``),P=e=>{let t,n,r,i,a=``,o=e.length%3;for(let o=0;o<e.length;){if((n=e.charCodeAt(o++))>255||(r=e.charCodeAt(o++))>255||(i=e.charCodeAt(o++))>255)throw TypeError(`invalid character found`);t=n<<16|r<<8|i,a+=O[t>>18&63]+O[t>>12&63]+O[t>>6&63]+O[t&63]}return o?a.slice(0,o-3)+`===`.substring(o):a},F=ce?e=>btoa(e):T?e=>Buffer.from(e,`binary`).toString(`base64`):P,I=T?e=>Buffer.from(e).toString(`base64`):e=>{let t=4096,n=[];for(let r=0,i=e.length;r<i;r+=t)n.push(A.apply(null,e.subarray(r,r+t)));return F(n.join(``))},L=(e,t=!1)=>t?M(I(e)):I(e),ue=e=>{if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?A(192|t>>>6)+A(128|t&63):A(224|t>>>12&15)+A(128|t>>>6&63)+A(128|t&63)}var t=65536+(e.charCodeAt(0)-55296)*1024+(e.charCodeAt(1)-56320);return A(240|t>>>18&7)+A(128|t>>>12&63)+A(128|t>>>6&63)+A(128|t&63)},de=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,R=e=>e.replace(de,ue),z=T?e=>Buffer.from(e,`utf8`).toString(`base64`):D?e=>I(D.encode(e)):e=>F(R(e)),B=(e,t=!1)=>t?M(z(e)):z(e),V=e=>B(e,!0),fe=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,pe=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 A((t>>>10)+55296)+A((t&1023)+56320);case 3:return A((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return A((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},H=e=>e.replace(fe,pe),U=e=>{if(e=e.replace(/\s+/g,``),!le.test(e))throw TypeError(`malformed base64.`);e+=`==`.slice(2-(e.length&3));let t,n=``,r,i;for(let a=0;a<e.length;)t=k[e.charAt(a++)]<<18|k[e.charAt(a++)]<<12|(r=k[e.charAt(a++)])<<6|(i=k[e.charAt(a++)]),n+=r===64?A(t>>16&255):i===64?A(t>>16&255,t>>8&255):A(t>>16&255,t>>8&255,t&255);return n},W=se?e=>atob(N(e)):T?e=>Buffer.from(e,`base64`).toString(`binary`):U,G=T?e=>j(Buffer.from(e,`base64`)):e=>j(W(e).split(``).map(e=>e.charCodeAt(0))),K=e=>G(q(e)),me=T?e=>Buffer.from(e,`base64`).toString(`utf8`):E?e=>E.decode(G(e)):e=>H(W(e)),q=e=>N(e.replace(/[-_]/g,e=>e==`-`?`+`:`/`)),J=e=>me(q(e)),he=e=>{if(typeof e!=`string`)return!1;let t=e.replace(/\s+/g,``).replace(/={0,2}$/,``);return!/[^\s0-9a-zA-Z\+/]/.test(t)||!/[^\s0-9a-zA-Z\-_]/.test(t)},Y=e=>({value:e,enumerable:!1,writable:!0,configurable:!0}),X=function(){let e=(e,t)=>Object.defineProperty(String.prototype,e,Y(t));e(`fromBase64`,function(){return J(this)}),e(`toBase64`,function(e){return B(this,e)}),e(`toBase64URI`,function(){return B(this,!0)}),e(`toBase64URL`,function(){return B(this,!0)}),e(`toUint8Array`,function(){return K(this)})},Z=function(){let e=(e,t)=>
1Object.defineProperty(Uint8Array.prototype,e,Y(t));e(`toBase64`,function(e){return L(this,e)}),e(`toBase64URI`,function(){return L(this,!0)}),e(`toBase64URL`,function(){return L(this,!0)})},Q={version:w,VERSION:oe,atob:W,atobPolyfill:U,btoa:F,btoaPolyfill:P,fromBase64:J,toBase64:B,encode:B,encodeURI:V,encodeURL:V,utob:R,btou:H,decode:J,isValid:he,fromUint8Array:L,toUint8Array:K,extendString:X,extendUint8Array:Z,extendBuiltins:()=>{X(),Z()}},ge=function(e){a(t,e);function t(n,r){var i=e.call(this,r)||this;return i.statusCode=n,Object.setPrototypeOf(i,t.prototype),i}return t}(Error);(function(){function e(e,t,n){this.deploymentKey=e,this.serverUrl=t,this.httpClient=n}return e.prototype.getVariants=function(e,t){return s(this,void 0,void 0,function(){var n,r,i;return c(this,function(a){switch(a.label){case 0:return n=Q.encodeURL(JSON.stringify(e)),r={Authorization:`Api-Key ${this.deploymentKey}`,"X-Amp-Exp-User":n},t?.flagKeys&&(r[`X-Amp-Exp-Flag-Keys`]=Q.encodeURL(JSON.stringify(t.flagKeys))),t?.trackingOption&&(r[`X-Amp-Exp-Track`]=t.trackingOption),[4,this.httpClient.request({requestUrl:`${this.serverUrl}/sdk/v2/vardata?v=0`,method:`GET`,headers:r,timeoutMillis:t?.timeoutMillis})];case 1:if(i=a.sent(),i.status!=200)throw new ge(i.status,`Fetch error response: status=${i.status}`);return[2,JSON.parse(i.body)]}})})},e})(),function(){function e(e,t,n){this.deploymentKey=e,this.serverUrl=t,this.httpClient=n}return e.prototype.getFlags=function(e){return s(this,void 0,void 0,function(){var t,n,r;return c(this,function(i){switch(i.label){case 0:return t={Authorization:`Api-Key ${this.deploymentKey}`},e?.libraryName&&e?.libraryVersion&&(t[`X-Amp-Exp-Library`]=`${e.libraryName}/${e.libraryVersion}`),[4,this.httpClient.request({requestUrl:`${this.serverUrl}/sdk/v2/flags`,method:`GET`,headers:t,timeoutMillis:e?.timeoutMillis})];case 1:if(n=i.sent(),n.status!=200)throw Error(`Flags error response: status=${n.status}`);return r=JSON.parse(n.body),[2,r.reduce(function(e,t){return e[t.key]=t,e},{})]}})})},e}();var $=typeof globalThis<`u`?globalThis:global||self;(function(){function e(e,t){this.poller=void 0,this.action=e,this.ms=t}return e.prototype.start=function(){this.poller||(this.poller=$.setInterval(this.action,this.ms),this.action())},e.prototype.stop=function(){this.poller&&=($.clearInterval(this.poller),void 0)},e})();var _e=new(function(){function i(){var i=this;this.dbs={},this.createStore=function(r){return n(i,void 0,void 0,function(){return t(this,function(t){switch(t.label){case 0:return[4,e(r,1,{upgrade:function(e){e.objectStoreNames.contains(`eventTypesForSession`)||e.createObjectStore(`eventTypesForSession`,{keyPath:`sessionId`})}})];case 1:return[2,t.sent()]}})})},this.openOrCreateDB=function(e){return n(i,void 0,void 0,function(){var n,r;return t(this,function(t){switch(t.label){case 0:return this.dbs&&this.dbs[e]?[2,this.dbs[e]]:(n=`${e.substring(0,10)}_amp_targeting`,[4,this.createStore(n)]);case 1:return r=t.sent(),this.dbs[e]=r,[2,r]}})})},this.updateEventListForSession=function(e){var a=e.sessionId,o=e.eventType,s=e.eventTime,c=e.loggerProvider,l=e.tx;return n(i,void 0,void 0,function(){var e,n,i,u,d,f,p,m,h;return t(this,function(t){switch(t.label){case 0:return t.trys.push([0,3,,4]),e=String(a),[4,l.store.get(e)];case 1:return n=t.sent(),i=n?n.eventTypes:{},u=i[o]||{},d=r(r({},i),(m={},m[o]=r(r({},u),(h={},h[s]={event_type:o},h)),m)),f={sessionId:e,eventTypes:d,lastUpdated:Date.now()},[4,l.store.put(f)];case 2:return t.sent(),[2,d];case 3:return p=t.sent(),c.warn(`Failed to store events for targeting ${a}: ${p}`),[3,4];case 4:return[2,void 0]}})})},this.deleteOldSessionEventTypes=function(e){var r=e.currentSessionId,a=e.loggerProvider,o=e.tx;return n(i,void 0,void 0,function(){var e,n,i,s,c,l;return t(this,function(t){switch(t.label){case 0:return t.trys.push([0,6,,7]),e=String(r),[4,o.store.getAll()];case 1:n=t.sent(),i=0,t.label=2;case 2:return i<n.length?(s=n[i],c=Date.now()-s.lastUpdated,s.sessionId!==e&&c>1728e5?[4,o.store.delete(s.sessionId)]:[3,4]):[3,5];case 3:t.sent(),t.label=4;case 4:return i++,[3,2];case 5:return[3,7];
1case 6:return l=t.sent(),a.warn(`Failed to clear old session event types for targeting: ${l}`),[3,7];case 7:return[2]}})})},this.storeEventTypeForSession=function(e){var r=e.loggerProvider,a=e.sessionId,o=e.eventType,s=e.eventTime,c=e.apiKey;return n(i,void 0,void 0,function(){var e,n,i,l;return t(this,function(t){switch(t.label){case 0:return t.trys.push([0,5,,6]),[4,this.openOrCreateDB(c)];case 1:return e=t.sent(),n=e.transaction(`eventTypesForSession`,`readwrite`),n?[4,this.updateEventListForSession({sessionId:a,tx:n,loggerProvider:r,eventType:o,eventTime:s})]:[2];case 2:return i=t.sent(),[4,this.deleteOldSessionEventTypes({currentSessionId:a,tx:n,loggerProvider:r})];case 3:return t.sent(),[4,n.done];case 4:return t.sent(),[2,i];case 5:return l=t.sent(),r.warn(`Failed to store events for targeting ${a}: ${l}`),[3,6];case 6:return[2,void 0]}})})}}return i}()),ve=function(){function e(){var e=this;this.evaluateTargeting=function(i){var a=i.apiKey,o=i.loggerProvider,s=i.event,c=i.sessionId,l=i.userProperties,u=i.deviceId,d=i.page,f=i.flag;return n(e,void 0,void 0,function(){var e,n,i,p,m;return t(this,function(t){switch(t.label){case 0:return s&&s.time?[4,_e.storeEventTypeForSession({loggerProvider:o,apiKey:a,sessionId:c,eventType:s.event_type,eventTime:s.time})]:[3,2];case 1:return n=t.sent(),[3,3];case 2:n=void 0,t.label=3;case 3:return e=n,i=e&&new Set(Object.keys(e)),p={session_id:c,event:s,event_types:i&&Array.from(i),user:r(r({},l),{device_id:u,user_properties:l}),page:d},m=this.evaluationEngine.evaluate(p,[f]),[2,m]}})})},this.evaluationEngine=new ae}return e}(),ye=function(){var e=new ve;return{evaluateTargeting:e.evaluateTargeting.bind(e)}}().evaluateTargeting;export{ye as 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.