var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.createTemplateTagFirstArg=function(a){return $jscomp.createTemplateTagFirstArgWithRaw(a,a)};$jscomp.createTemplateTagFirstArgWithRaw=function(a,b){a.raw=b;Object.freeze&&(Object.freeze(a),Object.freeze(b));return a};$jscomp.arrayIteratorImpl=function(a){var b=0;return function(){return b>>0,$jscomp.propertyToPolyfillSymbol[d]=$jscomp.IS_SYMBOL_NATIVE? $jscomp.global.Symbol(d):$jscomp.POLYFILL_PREFIX+e+"$"+d),e=$jscomp.propertyToPolyfillSymbol[d],$jscomp.defineProperty(a,e,{configurable:!0,writable:!0,value:b})))};$jscomp.polyfill("Object.is",function(a){return a?a:a=function(b,c){return b===c?b!==0||1/b===1/c:b!==b&&c!==c}},"es6","es3"); $jscomp.polyfill("Array.prototype.includes",function(a){return a?a:a=function(b,c){var d=this;d instanceof String&&(d=String(d));var e=d.length;c=c||0;for(c<0&&(c=Math.max(c+e,0));c0}function k(n,p,v){typeof p!="undefined"&&v.push(n+" defined multiple times")}function y(n,p,v,z,A,B){var w={global:"https://retail.googleapis.com/",us:"https://us-retail.googleapis.com/",eu:"https://eu-retail.googleapis.com/"};w=w[p];return w+"v2/projects/"+encodeURIComponent(n)+"/locations/"+encodeURIComponent(p)+"/catalogs/"+encodeURIComponent(v)+"/userEvents:collect?key="+encodeURIComponent(z)+"&uri="+ encodeURIComponent(d.substring(0,1500))+"&user_event="+encodeURIComponent(JSON.stringify(A))+"&ets="+B}if(Array.isArray(a)){var m=[];a=(0,$jscomp.makeIterator)(a);for(var g=a.next();!g.done;g=a.next()){var h=g.value;if(Array.isArray(h)&&h.length==2){g=h[0];h=h[1];if(g==="apiKey"){k(g,q,m);var q=h}if(g=="projectId"){k(g,r,m);var r=h}if(g=="locationId"){k(g,l,m);var l=h}if(g=="catalogId"){k(g,t,m);var t=h}if(g=="logEvent"){k(g,u,m);var u=h}if(g=="debug"){k(g,x,m);var x=h}}}l=l||"global";a=["global", "us","eu"];f(q)&&f(r)&&f(l)&&a.includes(l)&&f(t)&&typeof u==="object"&&(b.width=1,b.height=1,b.src=y(r,l,t,q,u,e));if(x)for(f(q)||c("apiKey missing"),f(r)||c("projectId missing"),f(l)?a.includes(l)||c("invalid locationId "+l):c("locationId missing"),f(t)||c("catalogId missing"),typeof u!="object"&&c("logEvent object missing"),b=0;b