1!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e||self).zephrBrowser={})}(this,function(e){var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(e){var t={exports:{}};return e(t,t.exports),t.exports}var r=function(e){return e&&e.Math===Math&&e},o=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof t&&t)||r("object"==typeof t&&t)||function(){return this}()||Function("return this")(),i=function(e){try{return!!e()}catch(e){return!0}},s=!i(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}),c=!i(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}),a=Function.prototype,u=a.call,l=c&&a.bind.bind(u,u),f=c?l:function(e){return function(){return u.apply(e,arguments)}},d="object"==typeof document&&document.all,m=void 0===d&&void 0!==d?function(e){return"function"==typeof e||e===d}:function(e){return"function"==typeof e},p=function(e){return null==e},h=TypeError,y=Object,g=f({}.hasOwnProperty),b=Object.hasOwn||function(e,t){return g(y(function(e){if(p(e))throw new h("Can't call method on "+e);return e}(e)),t)},w=Function.prototype,v=s&&Object.getOwnPropertyDescriptor,C=b(w,"name"),O={EXISTS:C,PROPER:C&&"something"===function(){}.name,CONFIGURABLE:C&&(!s||s&&v(w,"name").configurable)},I=Object.defineProperty,S=n(function(e){var t="__core-js_shared__",n=e.exports=o[t]||function(e,t){try{I(o,e,{value:t,configurable:!0,writable:!0})}catch(n){o[e]=t}return t}(t,{});(n.versions||(n.versions=[])).push({version:"3.36.1",mode:"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.36.1/LICENSE",source:"https://github.com/zloirock/core-js"})}),E=f(Function.toString);m(S.inspectSource)||(S.inspectSource=function(e){return E(e)});var P,T,D=S.inspectSource,j=o.WeakMap,A=m(j)&&/native code/.test(String(j)),L=function(e){return"object"==typeof e?null!==e:m(e)},F=o.document,z=L(F)&&L(F.createElement),x=!s&&!i(function(){return 7!==Object.defineProperty(z?F.createElement("div"):{},"a",{get:function(){return 7}}).a}),_=s&&i(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}),N=String,Z=TypeError,k=function(e){if(L(e))return e;throw new Z(N(e)+" is not an object")},R=Function.prototype.call,U=c?R.bind(R):function(){return R.apply(R,arguments)},W=function(e){return m(e)?e:void 0},H=f({}.isPrototypeOf),M="undefined"!=typeof navigator&&String(navigator.userAgent)||"",$=o.process,K=o.Deno,B=$&&$.versions||K&&K.version,q=B&&B.v8;q&&(T=(P=q.split("."))[0]>0&&P[0]<4?1:+(P[0]+P[1])),!T&&M&&(!(P=M.match(/Edge\/(\d+)/))||P[1]>=74)&&(P=M.match(/Chrome\/(\d+)/))&&(T=+P[1]);var G,J,V,X,Q,Y=T,ee=o.String,te=!!Object.getOwnPropertySymbols&&!i(function(){var e=Symbol("symbol detection");return!ee(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Y&&Y<41}),ne=te&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,re=Object,oe=ne?function(e){return"symbol"==typeof e}:function(e){var t=function(e,t){return arguments.length<2?W(o[e]):o[e]&&o[e][t]}("Symbol");return m(t)&&H(t.prototype,re(e))},ie=String,se=TypeError,ce=TypeError,ae=function(e,t){return S[e]||(S[e]=t||{})},ue=0,le=Math.random(),fe=f(1..toString),de=function(e){return"Symbol("+(void 0===e?"":e)+")_"+fe(++ue+le,36)},me=o.Symbol,pe=ae("wks"),he=ne?me.for||me:me&&me.withoutSetter||de,ye=TypeError,ge=(b(pe,G="toPrimitive")||(pe[G]=te&&b(me,G)?me[G]:he("Symbol."+G)),pe[G]),be=function(e){var t=function(e,t){if(!L(e)||oe(e))return e;var n,r,o=p(n=e[ge])?void 0:function(e){if(m(e))return e;throw new se(function(e){try{return ie(e)}catch(e){return"Object"}}(e)+" is not a function")}(n);if(o){if(void 0===t&&(t="default"),r=U(o,e,t),!L(r)||oe(r))return r;throw new ye("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&m(n=e.toString)&&!L(r=U(n,e)))return r;if(m(n=e.valueOf)&&!L(r=U(n,e)))return r;if("string"!==t&&m(n=e.toString)&&!L(r=U(n,e)))return r;
1throw new ce("Can't convert object to primitive value")}(e,t)}(e,"string");return oe(t)?t:t+""},we=TypeError,ve=Object.defineProperty,Ce=Object.getOwnPropertyDescriptor,Oe={f:s?_?function(e,t,n){if(k(e),t=be(t),k(n),"function"==typeof e&&"prototype"===t&&"value"in n&&"writable"in n&&!n.writable){var r=Ce(e,t);r&&r.writable&&(e[t]=n.value,n={configurable:"configurable"in n?n.configurable:r.configurable,enumerable:"enumerable"in n?n.enumerable:r.enumerable,writable:!1})}return ve(e,t,n)}:ve:function(e,t,n){if(k(e),t=be(t),k(n),x)try{return ve(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new we("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Ie=s?function(e,t,n){return Oe.f(e,t,function(e,t){return{enumerable:!1,configurable:!0,writable:!0,value:t}}(0,n))}:function(e,t,n){return e[t]=n,e},Se=ae("keys"),Ee="Object already initialized",Pe=o.TypeError;if(A||S.state){var Te=S.state||(S.state=new(0,o.WeakMap));Te.get=Te.get,Te.has=Te.has,Te.set=Te.set,J=function(e,t){if(Te.has(e))throw new Pe(Ee);return t.facade=e,Te.set(e,t),t},V=function(e){return Te.get(e)||{}},X=function(e){return Te.has(e)}}else{var De=Se[Q="state"]||(Se[Q]=de(Q));J=function(e,t){if(b(e,De))throw new Pe(Ee);return t.facade=e,Ie(e,De,t),t},V=function(e){return b(e,De)?e[De]:{}},X=function(e){return b(e,De)}}var je={set:J,get:V,has:X,enforce:function(e){return X(e)?V(e):J(e,{})},getterFor:function(e){return function(t){var n;if(!L(t)||(n=V(t)).type!==e)throw new Pe("Incompatible receiver, "+e+" required");return n}}},Ae=n(function(e){var t=O.CONFIGURABLE,n=je.enforce,r=je.get,o=String,c=Object.defineProperty,a=f("".slice),u=f("".replace),l=f([].join),d=s&&!i(function(){return 8!==c(function(){},"length",{value:8}).length}),p=String(String).split("String"),h=e.exports=function(e,r,i){"Symbol("===a(o(r),0,7)&&(r="["+u(o(r),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),i&&i.getter&&(r="get "+r),i&&i.setter&&(r="set "+r),(!b(e,"name")||t&&e.name!==r)&&(s?c(e,"name",{value:r,configurable:!0}):e.name=r),d&&i&&b(i,"arity")&&e.length!==i.arity&&c(e,"length",{value:i.arity});try{i&&b(i,"constructor")&&i.constructor?s&&c(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var f=n(e);return b(f,"source")||(f.source=l(p,"string"==typeof r?r:"")),e};Function.prototype.toString=h(function(){return m(this)&&r(this).source||D(this)},"toString")}),Le=o.RegExp,Fe=Le.prototype,ze=s&&i(function(){var e=!0;try{Le(".","d")}catch(t){e=!1}var t={},n="",r=e?"dgimsy":"gimsy",o=function(e,r){Object.defineProperty(t,e,{get:function(){return n+=r,!0}})},i={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var s in e&&(i.hasIndices="d"),i)o(s,i[s]);return Object.getOwnPropertyDescriptor(Fe,"flags").get.call(t)!==r||n!==r});ze&&function(e,t,n){n.get&&Ae(n.get,t,{getter:!0}),n.set&&Ae(n.set,t,{setter:!0}),Oe.f(e,t,n)}(Fe,"flags",{configurable:!0,get:function(){var e=k(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}});const xe={transform:{concat:e=>e.map(e=>Ne(e)),zoned:e=>({type:"Zone",id:e.zoneId,contents:e.transformations.map(e=>Ne(e))}),form:e=>({type:"Form",formId:e}),paymentForm:e=>({type:"PaymentForm",formId:e}),resource:e=>({type:"UIComponent",componentId:e}),parameterisedResource:e=>({type:"UIComponent",componentId:e}),url:e=>({type:"HostedUIComponent",url:e}),componentTemplate:e=>({type:"ComponentTemplate",componentId:e}),parameterisedComponentTemplate:e=>({type:"ComponentTemplate",componentId:e}),truncate:e=>({type:"Truncate",truncateLength:Number(e),style:"nostyle"}),truncateWithStyle:(e,t)=>({type:"Truncate",truncateLength:Number(e),style:t}),outcomeTracker:(e,t,n,r)=>({type:"OutcomeTracker",featureId:e,featureLabel:t,outcomeId:n,outcomeLabel:r}),remove:()=>({type:"Remove"})}},_e={type:"LeavePristine"},Ne=e=>{const t=e.trim().length?e:"blaize.transform.remove()";return new Function("blaize,leave_pristine",`"use strict";return (${t});`)(xe,_e)};function Ze(e,t){let n;switch(t){case"fadeout":const t=document.createElement("div");t.style.position="absolute",t.style.height="100%",t.style.width="100%",t.style.bottom="0",t.style.backgroundImage="linear-gradient(0deg, #fff 0%, rgba(255, 255, 255, 0) 100%)",e.appendChild(t),n=document.createElement("div"),n.style.position="relative",n.appendChild(e);break;case"linebreak":const r=document.createElement("hr");r.style.border="1px solid #ebebeb",e.appendChild(r),n=e;break;default:n=e}return n}const ke=/<[^>]*>|[^<>
vendor: 4,999 bytes, line 1
1]+/g,Re=/^[\p{Alpha}|\p{N}]$/u;class Ue{constructor(e,t,n){this.text=e,this.type=t,this.isSentenceEnd=n}}const We=Object.freeze({WORD:0,PUNCTUATION:1,WHITESPACE:2});function He(e){return-1!==e.search(">[^<>]+<")}const Me=Object.freeze(["script","style","noscript","template","iframe","svg","canvas"]);function $e(e){return Me.some(t=>{const n=e.indexOf(`<${t}`)>=0,r=e.indexOf(`</${t}`)>=0;return n?!r:r})}const Ke=Object.freeze({LOCALE_AWARE_TRUNCATION:!1}),Be=()=>Intl&&"Segmenter"in Intl,qe=e=>{let t;return"function"==typeof Event?t=new Event(e):(t=document.createEvent("Event"),t.initEvent(e,!0,!0)),t},Ge=function(e){e&&console.log("[Zephr]",...[].slice.call(arguments,1))},Je=e=>{const t=(new DOMParser).parseFromString(e,"text/html"),n=[...Array.from(t.head.childNodes),...Array.from(t.body.childNodes)];if(!n.length)return document.createTextNode(e);const r=document.createDocumentFragment();return n.forEach(e=>r.appendChild(e)),Ve(r),r},Ve=e=>{const t=e.querySelectorAll("script");t.length&&Array.from(t).map(e=>{const t=document.createElement("script");Array.from(e.attributes).forEach(e=>{t.setAttribute(e.name,e.value)}),t.innerHTML=e.innerHTML,e.parentNode.appendChild(t),e.parentNode.removeChild(e)})},Xe=(e,t,n,r)=>{switch(t.type){case"LeavePristine":return e;case"Truncate":return r.LOCALE_AWARE_TRUNCATION&&Be()?function(e,t){const n=document.documentElement?.lang||"en",r=2*t.truncateLength,o=function(e,t="en"){const n=(e?.outerHTML??e.nodeValue).trim(),r=new Intl.Segmenter(t,{granularity:"sentence"}),o=new Intl.Segmenter(t,{granularity:"word"}),i=[],s=n.match(ke).map(e=>e.startsWith("<")?"".padStart(e.length):e).join("").replace(/\n/g,"î"),c=Array.from(r.segment(s));let a=0,u=0;for(const e of c){let t=e.segment.trimStart();const r=e.segment.length-t.length;t=t.trimEnd();const s=e.segment.length-(r+t.length);if(r>0){const e=n.substring(a,a+r);i.push(new Ue(e,e.trim().length>0?We.WORD:We.WHITESPACE,!1))}a=u+r,u=a+t.length;const c=n.substring(a,u),f=Array.from(o.segment(t));let d=0,m=0;for(const[e,n]of f.entries()){d=m,m=d+n.segment.length;const r=c.substring(d,m);i.push(new Ue(r,0===(l=r).trim().length?We.WHITESPACE:1!==l.length||Re.test(l)?We.WORD:We.PUNCTUATION,t.length>1&&e===f.length-1))}if(s>0){const e=n.substring(u,u+s);i.push(new Ue(e,e.trim().length>0?We.WORD:We.WHITESPACE,!1)),u+=s}}var l;return i}(e,n);if(t.truncateLength>=o.length)return e;let i=0,s=!1,c=!1,a=0,u=0;for(const e of o){if(u++,e.type===We.WHITESPACE&&!e.isSentenceEnd)continue;const n=e.text.trim();if(c&&n.indexOf("</")>=0&&$e(n)?c=!1:n.indexOf("<")>=0&&$e(n)&&(c=!0),c)continue;const o=s,l=n.lastIndexOf("<"),f=n.lastIndexOf(">");if(l>=0&&(s=!0),f>=0&&(s=!1),-1!==l&&-1!==f&&l>f&&(s=!0),o&&f===n.length-1||0===l&&f===n.length-1)s=!1;else if(!s){if(i>0&&e.type===We.WORD)break;(e.type===We.WORD||e.isSentenceEnd)&&(e.type===We.WORD&&a++,(a===r||a>=t.truncateLength&&e.isSentenceEnd)&&(i=u))}}if(u===o.length)return e;u=i>0?i:u;let l=o.slice(0,u).map(e=>e.text).join("");return a===r&&(l+="..."),Ze((new DOMParser).parseFromString(l,"text/html").body.children[0],t.style)}(e,t):function(e,t){const n=2*t.truncateLength,r=e.outerHTML.trim().split(/\s+/);if(t.truncateLength>=r.length)return e;let o=0,i=!1,s=0,c=0;for(const e of r){c++;const r=i,a=e.lastIndexOf("<"),u=e.lastIndexOf(">");if(a>=0&&(i=!0),u>=0&&(i=!1),-1!==a&&-1!==u&&a>u&&(i=!0),r&&u===e.length-1&&!He(e)||0===a&&u===e.length-1)i=!1;else if(!i){if(o>0)break;s++,(s>=t.truncateLength&&e.includes(".")||s===n)&&(o=c)}}if(c===r.length)return e;c=o>0?o:c;let a=r.slice(0,c).join(" ");return s===n&&(a+="...\n"),Ze((new DOMParser).parseFromString(a,"text/html").body.children[0],t.style)}(e,t);case"OutcomeTracker":(e=>{window.Zephr||(window.Zephr={}),window.Zephr.outcomes||(window.Zephr.outcomes={}),window.Zephr.outcomes[e.featureId]={featureLabel:e.featureLabel,outcomeId:e.outcomeId,outcomeLabel:e.outcomeLabel}})(t);break;case"Form":return((e,t)=>{if(t.forms&&t.forms[e.formId])return Je(t.forms[e.formId]);console.error("Form not found.")})(t,n);case"PaymentForm":return((e,t)=>{if(t.paymentForms&&t.paymentForms[e.formId])return Je(t.paymentForms[e.formId]);console.error("Payment form not found.")})(t,n);case"UIComponent":return((e,t)=>{if(t.uiComponents&&t.uiComponents[e.componentId])return Je(t.uiComponents[e.componentId]);console.error("UI component not found.")})(t,n);case"HostedUIComponent":return((e,t)=>{if(t.hostedUiComponents&&t.hostedUiComponents[e.url])return Je(t.hostedUiComponents[e.url]);console.error("Hosted UI component not found.")})(t,n);case"ComponentTemplate":return((e,t)=>{if(t.componentTemplates&&t.componentTemplates[e.componentId])return Je(t.componentTemplates[e.componentId]);console.error("Component template not found.")})(t,n);case"Remove":break;case"Zone":const o=t.contents.map(t=>Xe(e,t,n,r));return((e,t,n)=>{if(!n.uiComponents||!n.uiComponents[e])return void console.error("Zone not found.");const r=Je(n.uiComponents[e]),o=r.getElementById(`zephr-zone-${e.toLowerCase()}`);
1return t.forEach(e=>o.appendChild(e)),r})(t.id,o,n);default:console.error(`No matching outcome type ${t.type}`)}};function Qe(e,t){try{var n=e()}catch(e){return t(e)}return n&&n.then?n.then(void 0,t):n}const Ye="undefined"!=typeof Symbol?Symbol.iterator||(Symbol.iterator=Symbol("Symbol.iterator")):"@@iterator";function et(e,t,n){if(!e.s){if(n instanceof tt){if(!n.s)return void(n.o=et.bind(null,e,t));1&t&&(t=n.s),n=n.v}if(n&&n.then)return void n.then(et.bind(null,e,t),et.bind(null,e,2));e.s=t,e.v=n;const r=e.o;r&&r(e)}}const tt=/*#__PURE__*/function(){function e(){}return e.prototype.then=function(t,n){const r=new e,o=this.s;if(o){const e=1&o?t:n;if(e){try{et(r,1,e(this.v))}catch(e){et(r,2,e)}return r}return this}return this.o=function(e){try{const o=e.v;1&e.s?et(r,1,t?t(o):o):n?et(r,1,n(o)):et(r,2,o)}catch(e){et(r,2,e)}},r},e}();function nt(e){return e instanceof tt&&1&e.s}class rt{constructor(e,t){this.cdnApi=e||"",this.fetcher=t||null}fetchLiveFeatures(){try{const e=this;return Promise.resolve(Qe(function(){return Promise.resolve(e._fetcher(`${e.cdnApi}/zephr/features`,{method:"GET",headers:{Accept:"application/json"}}).then(e=>e.json()))},function(){return Promise.reject(new Error("Live features endpoint failed."))}))}catch(e){return Promise.reject(e)}}fetchDecisions(e,{jwt:t,customData:n={}}={customData:{}}){try{const r=this,o=e.map(e=>e.id);return Promise.resolve(Qe(function(){return Promise.resolve(r._fetcher(`${r.cdnApi}/zephr/feature-decisions`,{method:"POST",credentials:"include",headers:{"Content-Type":"application/json",Accept:"application/json",...t&&{Authorization:`Bearer ${t}`}},body:JSON.stringify({path:document.location.pathname+document.location.search+document.location.hash,referer:document.referrer,featureIds:o,customData:n
vendor: 1,993 bytes, line 1
1})}).then(e=>e.json()))},function(){return Promise.reject(new Error("Feature decisions endpoint failed."))}))}catch(e){return Promise.reject(e)}}executeDecisions(e,t,n,r){try{const o=this;function i(){t.accessDetails&&(window.Zephr||(window.Zephr={}),window.Zephr.accessDetails?window.Zephr.accessDetails=o._mergeAccessDetails(window.Zephr.accessDetails,t.accessDetails):window.Zephr.accessDetails=t.accessDetails),n&&(e=>{const t=e.datalayerName;t in window||(window[t]=[]);const n={},r=[];e.includeOutcomes&&window.Zephr.outcomes&&(n.zephrOutcomes=window.Zephr.outcomes,e.outcomesAsEvents&&Object.keys(window.Zephr.outcomes||[]).forEach(function(e){const t={event:"zephr-outcome-"+e,featureId:e,featureLabel:window.Zephr.outcomes[e].featureLabel,outcomeId:window.Zephr.outcomes[e].outcomeId,outcomeLabel:window.Zephr.outcomes[e].outcomeLabel};r.push(t)})),window.Zephr&&window.Zephr.accessDetails&&(Object.keys(window.Zephr.accessDetails.trials||{}).forEach(function(t){const r=window.Zephr.accessDetails.trials[t];if(r.reportInDataLayer){const t=r.totalCredits-r.remainingCredits;e.groupFields&&!n.zephrTrials&&(n.zephrTrials={});const o=e.groupFields?n.zephrTrials:n;r.dataLayerCreditsUsedKey&&(o[r.dataLayerCreditsUsedKey]=t),r.dataLayerCreditsRemainingKey&&(o[r.dataLayerCreditsRemainingKey]=r.remainingCredits)}}),(window.Zephr.accessDetails.trialTrackingDetails||[]).forEach(function(t){const r=(window.Zephr.accessDetails["credits"===t.entitlementType?"credits":"meters"]||{})[t.entitlementId];r&&(e.groupFields&&!n.zephrTrials&&(n.zephrTrials={}),t.creditsRemainingKey&&(e.groupFields?n.zephrTrials[t.creditsRemainingKey]=r.remainingCredits:n[t.creditsRemainingKey]=r.remainingCredits),t.creditsUsedKey&&(e.groupFields?n.zephrTrials[t.creditsUsedKey]=r.totalCredits-r.remainingCredits:n[t.creditsUsedKey]=r.totalCredits-r.remainingCredits))})),Object.keys(n).length&&(n.event="zephr-pageview",r.unshift(n)),r.length&&(r.forEach(function(e){window[t].push(e)}),document.dispatchEvent(
1qe("zephr.dataLayerReady")))})(n)}const s=function(e,t,n){if("function"==typeof e[Ye]){var r,o,i,s=e[Ye]();if(function e(n){try{for(;!(r=s.next()).done;)if((n=t(r.value))&&n.then){if(!nt(n))return void n.then(e,i||(i=et.bind(null,o=new tt,2)));n=n.v}o?et(o,1,n):o=n}catch(e){et(o||(o=new tt),2,e)}}(),s.return){var c=function(e){try{r.done||s.return()}catch(e){}return e};if(o&&o.then)return o.then(c,function(e){throw c(e)});c()}return o}if(!("length"in e))throw new TypeError("Object is not iterable");for(var a=[],u=0;u<e.length;u++)a.push(e[u]);return function(e,t,n){var r,o,i=-1;return function n(s){try{for(;++i<e.length;)if((s=t(i))&&s.then){if(!nt(s))return void s.then(n,o||(o=et.bind(null,r=new tt,2)));s=s.v}r?et(r,1,s):r=s}catch(e){et(r||(r=new tt),2,e)}}(),r}(a,function(e){return t(a[e])})}(e,function(e){function n(){((e,t,n={},r=Ke)=>{e.forEach(e=>{const o=e.parentNode,i=Array.from(o.children).indexOf(e),s="content-gate"===e.id,c="tgam-news-assistant-zephr-target"===e.id,a=!!t.find(e=>"LeavePristine"===e.type),u=(s||c)&&a?e:o.removeChild(e),l=t.filter(e=>"LeavePristine"!==e.type).map(e=>Xe(u,e,n,r)).filter(Boolean),f=document.createDocumentFragment();l.forEach(e=>f.appendChild(e)),i<o.children.length?o.insertBefore(f,o.children[i]):o.appendChild(f)})})(c,s,t.resources||{},o._mergeDefaultFlags(t.flags))}const i=(t.featureResults||{})[e.id];if(!i)return;const s=(e=>[Ne(e)].flat())(i),c=o.selectFeatureNodes(e),a=s.some(e=>"Truncate"===e.type),u=function(){if(r.automaticPolyfills&&a&&!Be())return Promise.resolve(function(e){try{const t=function(t,n){try{var r=Promise.resolve(fetch(e).then(e=>e.text()).then(e=>new Function(e)())).then(function(){})}catch(e){return n(e)}return r&&r.then?r.then(void 0,n):r}(0,function(t){console.error(`Error fetching and executing script from ${e}:`,t)});return Promise.resolve(t&&t.then?t.then(function(){}):void 0)}catch(e){return Promise.reject(e)}}("https://assets.zephr.com/zephr-browser/1.11.1/polyfill-intl-segmenter.umd.js")).then(function(){})}();return u&&u.then?u.then(n):n()});return Promise.resolve(s&&s.then?s.then(i):i())}catch(c){return Promise.reject(c)}}_fetcher(e,t){return this.fetcher?this.fetcher(e,t):window.fetch(e,t)}_mergeAccessDetails(e,t){return{...e,...t,authenticated:t.authenticated,accessDecisions:{...e.accessDecisions,...t.accessDecisions},entitlements:this._mergeCreditData(e.entitlements,t.entitlements),credits:this._mergeCreditData(e.credits,t.credits),meters:this._mergeCreditData(e.meters,t.meters),trials:this._mergeCreditData(e.trials??{},t.trials??{})}}_mergeCreditData(e,t){var n={...e,...t};for(const[r,o]of Object.entries(e)){const e=t[r];if(e){const t=n[r];this._eitherHasProperty(o,e,"decrementedInDecision")&&(t.decrementedInDecision=!(!o.decrementedInDecision&&!e.decrementedInDecision)),this._eitherHasProperty(o,e,"usedInDecision")&&(t.usedInDecision=!(!o.usedInDecision&&!e.usedInDecision)),this._eitherHasProperty(o,e,"remainingCredits")&&(t.remainingCredits=this._minOrNumber(o.remainingCredits,e.remainingCredits)),this._eitherHasProperty(o,e,"totalCredits")&&(t.totalCredits=this._minOrNumber(o.totalCredits,e.totalCredits))}}return n}_eitherHasProperty(e,t,n){return e&&e.hasOwnProperty(n)||t&&t.hasOwnProperty(n)}_minOrNumber(e,t){const n="number"==typeof e,r="number"==typeof t;return n&&r?Math.min(e,t):n?e:r?t:void 0}_mergeDefaultFlags(e={}){return{...Ke,...e}}findFeatures(e){return Array.isArray(e)&&e.length?e.filter(e=>"COMMENT_TAG"!==e.targetType&&null!==document.querySelector(e.cssSelector)):[]}selectFeatureNodes(e){return document.querySelectorAll(e.cssSelector)}}const ot=(e,t)=>
vendor: 946 bytes, line 1
1new rt(e,t);e.createInstance=ot,e.run=function(e){try{const t=e&&e.debug||localStorage&&localStorage.getItem("zephrBrowserDebug");let n="",r={automaticPolyfills:!0};"string"==typeof e?n=e:"object"==typeof e&&(r={...r,...e},n=e.cdnApi||"");const o=ot(n,e?.fetcher);return Promise.resolve(o.fetchLiveFeatures()).then(function(e){function n(){return document.dispatchEvent(qe("zephr.browserDecisionsFinished")),o}let i,s;Array.isArray(e)?i=e:(i=e.features,s=e.datalayerOutcomesConfig),Ge(t,"Live Features:",i);const c=o.findFeatures(i),a=function(){if(c.length)return Ge(t,"Features on page:",c),Promise.resolve(o.fetchDecisions(c,r)).then(function(e){Ge(t,"Decisions:",e);const n=performance.now();return Promise.resolve(o.executeDecisions(c,e,s,r)).then(function(){Ge(t,`Decision execution finished: took ${performance.now()-n} ms`)})});Ge(t,"No features found on page.")}();return a&&a.then?a.then(n):n()})}catch(e){return Promise.reject(e)}}});
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.