loader.js 63 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. (function(){/*
  2. Copyright The Closure Library Authors.
  3. SPDX-License-Identifier: Apache-2.0
  4. */
  5. var l,aa=function(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}},ba="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){if(a==Array.prototype||a==Object.prototype)return a;a[b]=c.value;return a},ca=function(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var b=0;b<a.length;++b){var c=a[b];if(c&&c.Math==Math)return c}throw Error("Cannot find global object");
  6. },p=ca(this),q=function(a,b){if(b)a:{var c=p;a=a.split(".");for(var d=0;d<a.length-1;d++){var e=a[d];if(!(e in c))break a;c=c[e]}a=a[a.length-1];d=c[a];b=b(d);b!=d&&null!=b&&ba(c,a,{configurable:!0,writable:!0,value:b})}};
  7. q("Symbol",function(a){if(a)return a;var b=function(f,g){this.g=f;ba(this,"description",{configurable:!0,writable:!0,value:g})};b.prototype.toString=function(){return this.g};var c="jscomp_symbol_"+(1E9*Math.random()>>>0)+"_",d=0,e=function(f){if(this instanceof e)throw new TypeError("Symbol is not a constructor");return new b(c+(f||"")+"_"+d++,f)};return e});
  8. q("Symbol.iterator",function(a){if(a)return a;a=Symbol("Symbol.iterator");for(var b="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),c=0;c<b.length;c++){var d=p[b[c]];"function"===typeof d&&"function"!=typeof d.prototype[a]&&ba(d.prototype,a,{configurable:!0,writable:!0,value:function(){return da(aa(this))}})}return a});
  9. var da=function(a){a={next:a};a[Symbol.iterator]=function(){return this};return a},ea=function(a){return a.raw=a},r=function(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):{next:aa(a)}},fa="function"==typeof Object.create?Object.create:function(a){var b=function(){};b.prototype=a;return new b},ha;
  10. if("function"==typeof Object.setPrototypeOf)ha=Object.setPrototypeOf;else{var ia;a:{var ja={a:!0},ka={};try{ka.__proto__=ja;ia=ka.a;break a}catch(a){}ia=!1}ha=ia?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}
  11. var la=ha,t=function(a,b){a.prototype=fa(b.prototype);a.prototype.constructor=a;if(la)la(a,b);else for(var c in b)if("prototype"!=c)if(Object.defineProperties){var d=Object.getOwnPropertyDescriptor(b,c);d&&Object.defineProperty(a,c,d)}else a[c]=b[c];a.L=b.prototype},ma=function(){for(var a=Number(this),b=[],c=a;c<arguments.length;c++)b[c-a]=arguments[c];return b};
  12. q("Promise",function(a){function b(){this.g=null}function c(g){return g instanceof e?g:new e(function(h){h(g)})}if(a)return a;b.prototype.h=function(g){if(null==this.g){this.g=[];var h=this;this.j(function(){h.m()})}this.g.push(g)};var d=p.setTimeout;b.prototype.j=function(g){d(g,0)};b.prototype.m=function(){for(;this.g&&this.g.length;){var g=this.g;this.g=[];for(var h=0;h<g.length;++h){var k=g[h];g[h]=null;try{k()}catch(m){this.l(m)}}}this.g=null};b.prototype.l=function(g){this.j(function(){throw g;
  13. })};var e=function(g){this.g=0;this.j=void 0;this.h=[];this.u=!1;var h=this.l();try{g(h.resolve,h.reject)}catch(k){h.reject(k)}};e.prototype.l=function(){function g(m){return function(n){k||(k=!0,m.call(h,n))}}var h=this,k=!1;return{resolve:g(this.G),reject:g(this.m)}};e.prototype.G=function(g){if(g===this)this.m(new TypeError("A Promise cannot resolve to itself"));else if(g instanceof e)this.I(g);else{a:switch(typeof g){case "object":var h=null!=g;break a;case "function":h=!0;break a;default:h=!1}h?
  14. this.H(g):this.o(g)}};e.prototype.H=function(g){var h=void 0;try{h=g.then}catch(k){this.m(k);return}"function"==typeof h?this.J(h,g):this.o(g)};e.prototype.m=function(g){this.s(2,g)};e.prototype.o=function(g){this.s(1,g)};e.prototype.s=function(g,h){if(0!=this.g)throw Error("Cannot settle("+g+", "+h+"): Promise already settled in state"+this.g);this.g=g;this.j=h;2===this.g&&this.D();this.F()};e.prototype.D=function(){var g=this;d(function(){if(g.v()){var h=p.console;"undefined"!==typeof h&&h.error(g.j)}},
  15. 1)};e.prototype.v=function(){if(this.u)return!1;var g=p.CustomEvent,h=p.Event,k=p.dispatchEvent;if("undefined"===typeof k)return!0;"function"===typeof g?g=new g("unhandledrejection",{cancelable:!0}):"function"===typeof h?g=new h("unhandledrejection",{cancelable:!0}):(g=p.document.createEvent("CustomEvent"),g.initCustomEvent("unhandledrejection",!1,!0,g));g.promise=this;g.reason=this.j;return k(g)};e.prototype.F=function(){if(null!=this.h){for(var g=0;g<this.h.length;++g)f.h(this.h[g]);this.h=null}};
  16. var f=new b;e.prototype.I=function(g){var h=this.l();g.Y(h.resolve,h.reject)};e.prototype.J=function(g,h){var k=this.l();try{g.call(h,k.resolve,k.reject)}catch(m){k.reject(m)}};e.prototype.then=function(g,h){function k(B,T){return"function"==typeof B?function(fb){try{m(B(fb))}catch(gb){n(gb)}}:T}var m,n,A=new e(function(B,T){m=B;n=T});this.Y(k(g,m),k(h,n));return A};e.prototype.catch=function(g){return this.then(void 0,g)};e.prototype.Y=function(g,h){function k(){switch(m.g){case 1:g(m.j);break;case 2:h(m.j);
  17. break;default:throw Error("Unexpected state: "+m.g);}}var m=this;null==this.h?f.h(k):this.h.push(k);this.u=!0};e.resolve=c;e.reject=function(g){return new e(function(h,k){k(g)})};e.race=function(g){return new e(function(h,k){for(var m=r(g),n=m.next();!n.done;n=m.next())c(n.value).Y(h,k)})};e.all=function(g){var h=r(g),k=h.next();return k.done?c([]):new e(function(m,n){function A(fb){return function(gb){B[fb]=gb;T--;0==T&&m(B)}}var B=[],T=0;do B.push(void 0),T++,c(k.value).Y(A(B.length-1),n),k=h.next();
  18. while(!k.done)})};return e});var u=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};
  19. q("WeakMap",function(a){function b(){}function c(k){var m=typeof k;return"object"===m&&null!==k||"function"===m}function d(k){if(!u(k,f)){var m=new b;ba(k,f,{value:m})}}function e(k){var m=Object[k];m&&(Object[k]=function(n){if(n instanceof b)return n;Object.isExtensible(n)&&d(n);return m(n)})}if(function(){if(!a||!Object.seal)return!1;try{var k=Object.seal({}),m=Object.seal({}),n=new a([[k,2],[m,3]]);if(2!=n.get(k)||3!=n.get(m))return!1;n.delete(k);n.set(m,4);return!n.has(k)&&4==n.get(m)}catch(A){return!1}}())return a;
  20. var f="$jscomp_hidden_"+Math.random();e("freeze");e("preventExtensions");e("seal");var g=0,h=function(k){this.g=(g+=Math.random()+1).toString();if(k){k=r(k);for(var m;!(m=k.next()).done;)m=m.value,this.set(m[0],m[1])}};h.prototype.set=function(k,m){if(!c(k))throw Error("Invalid WeakMap key");d(k);if(!u(k,f))throw Error("WeakMap key fail: "+k);k[f][this.g]=m;return this};h.prototype.get=function(k){return c(k)&&u(k,f)?k[f][this.g]:void 0};h.prototype.has=function(k){return c(k)&&u(k,f)&&u(k[f],this.g)};
  21. h.prototype.delete=function(k){return c(k)&&u(k,f)&&u(k[f],this.g)?delete k[f][this.g]:!1};return h});
  22. q("Map",function(a){if(function(){if(!a||"function"!=typeof a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var h=Object.seal({x:4}),k=new a(r([[h,"s"]]));if("s"!=k.get(h)||1!=k.size||k.get({x:4})||k.set({x:4},"t")!=k||2!=k.size)return!1;var m=k.entries(),n=m.next();if(n.done||n.value[0]!=h||"s"!=n.value[1])return!1;n=m.next();return n.done||4!=n.value[0].x||"t"!=n.value[1]||!m.next().done?!1:!0}catch(A){return!1}}())return a;var b=new WeakMap,c=function(h){this.h={};this.g=f();
  23. this.size=0;if(h){h=r(h);for(var k;!(k=h.next()).done;)k=k.value,this.set(k[0],k[1])}};c.prototype.set=function(h,k){h=0===h?0:h;var m=d(this,h);m.list||(m.list=this.h[m.id]=[]);m.B?m.B.value=k:(m.B={next:this.g,K:this.g.K,head:this.g,key:h,value:k},m.list.push(m.B),this.g.K.next=m.B,this.g.K=m.B,this.size++);return this};c.prototype.delete=function(h){h=d(this,h);return h.B&&h.list?(h.list.splice(h.index,1),h.list.length||delete this.h[h.id],h.B.K.next=h.B.next,h.B.next.K=h.B.K,h.B.head=null,this.size--,
  24. !0):!1};c.prototype.clear=function(){this.h={};this.g=this.g.K=f();this.size=0};c.prototype.has=function(h){return!!d(this,h).B};c.prototype.get=function(h){return(h=d(this,h).B)&&h.value};c.prototype.entries=function(){return e(this,function(h){return[h.key,h.value]})};c.prototype.keys=function(){return e(this,function(h){return h.key})};c.prototype.values=function(){return e(this,function(h){return h.value})};c.prototype.forEach=function(h,k){for(var m=this.entries(),n;!(n=m.next()).done;)n=n.value,
  25. h.call(k,n[1],n[0],this)};c.prototype[Symbol.iterator]=c.prototype.entries;var d=function(h,k){var m=k&&typeof k;"object"==m||"function"==m?b.has(k)?m=b.get(k):(m=""+ ++g,b.set(k,m)):m="p_"+k;var n=h.h[m];if(n&&u(h.h,m))for(h=0;h<n.length;h++){var A=n[h];if(k!==k&&A.key!==A.key||k===A.key)return{id:m,list:n,index:h,B:A}}return{id:m,list:n,index:-1,B:void 0}},e=function(h,k){var m=h.g;return da(function(){if(m){for(;m.head!=h.g;)m=m.K;for(;m.next!=m.head;)return m=m.next,{done:!1,value:k(m)};m=null}return{done:!0,
  26. value:void 0}})},f=function(){var h={};return h.K=h.next=h.head=h},g=0;return c});var na="function"==typeof Object.assign?Object.assign:function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(d)for(var e in d)u(d,e)&&(a[e]=d[e])}return a};q("Object.assign",function(a){return a||na});
  27. var oa=function(a,b){a instanceof String&&(a+="");var c=0,d=!1,e={next:function(){if(!d&&c<a.length){var f=c++;return{value:b(f,a[f]),done:!1}}d=!0;return{done:!0,value:void 0}}};e[Symbol.iterator]=function(){return e};return e};q("Array.prototype.entries",function(a){return a?a:function(){return oa(this,function(b,c){return[b,c]})}});q("Array.prototype.keys",function(a){return a?a:function(){return oa(this,function(b){return b})}});
  28. q("Object.is",function(a){return a?a:function(b,c){return b===c?0!==b||1/b===1/c:b!==b&&c!==c}});q("Array.prototype.includes",function(a){return a?a:function(b,c){var d=this;d instanceof String&&(d=String(d));var e=d.length;c=c||0;for(0>c&&(c=Math.max(c+e,0));c<e;c++){var f=d[c];if(f===b||Object.is(f,b))return!0}return!1}});
  29. q("String.prototype.includes",function(a){return a?a:function(b,c){if(null==this)throw new TypeError("The 'this' value for String.prototype.includes must not be null or undefined");if(b instanceof RegExp)throw new TypeError("First argument to String.prototype.includes must not be a regular expression");return-1!==(this+"").indexOf(b,c||0)}});
  30. q("Array.from",function(a){return a?a:function(b,c,d){c=null!=c?c:function(h){return h};var e=[],f="undefined"!=typeof Symbol&&Symbol.iterator&&b[Symbol.iterator];if("function"==typeof f){b=f.call(b);for(var g=0;!(f=b.next()).done;)e.push(c.call(d,f.value,g++))}else for(f=b.length,g=0;g<f;g++)e.push(c.call(d,b[g],g));return e}});q("Object.entries",function(a){return a?a:function(b){var c=[],d;for(d in b)u(b,d)&&c.push([d,b[d]]);return c}});
  31. q("Array.prototype.values",function(a){return a?a:function(){return oa(this,function(b,c){return c})}});
  32. var v=this||self,pa=function(){},w=function(a){var b=typeof a;return"object"!=b?b:a?Array.isArray(a)?"array":b:"null"},qa=function(a){var b=w(a);return"array"==b||"object"==b&&"number"==typeof a.length},ra=function(a){var b=typeof a;return"object"==b&&null!=a||"function"==b},sa=function(a,b,c){return a.call.apply(a.bind,arguments)},ta=function(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var e=Array.prototype.slice.call(arguments);
  33. Array.prototype.unshift.apply(e,d);return a.apply(b,e)}}return function(){return a.apply(b,arguments)}},ua=function(a,b,c){Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?ua=sa:ua=ta;return ua.apply(null,arguments)},va=function(a,b){var c=Array.prototype.slice.call(arguments,1);return function(){var d=c.slice();d.push.apply(d,arguments);return a.apply(this,d)}},wa=function(a,b){function c(){}c.prototype=b.prototype;a.L=b.prototype;a.prototype=new c;a.prototype.constructor=
  34. a;a.Sa=function(d,e,f){for(var g=Array(arguments.length-2),h=2;h<arguments.length;h++)g[h-2]=arguments[h];return b.prototype[e].apply(d,g)}},xa=function(a){return a};function ya(a){if(Error.captureStackTrace)Error.captureStackTrace(this,ya);else{var b=Error().stack;b&&(this.stack=b)}a&&(this.message=String(a))}wa(ya,Error);ya.prototype.name="CustomError";function za(a,b){a=a.split("%s");for(var c="",d=a.length-1,e=0;e<d;e++)c+=a[e]+(e<b.length?b[e]:"%s");ya.call(this,c+a[d])}wa(za,ya);za.prototype.name="AssertionError";function Aa(a,b,c,d){var e="Assertion failed";if(c){e+=": "+c;var f=d}else a&&(e+=": "+a,f=b);throw new za(""+e,f||[]);}
  35. var x=function(a,b,c){a||Aa("",null,b,Array.prototype.slice.call(arguments,2));return a},y=function(a,b){throw new za("Failure"+(a?": "+a:""),Array.prototype.slice.call(arguments,1));},Ba=function(a,b,c){"number"!==typeof a&&Aa("Expected number but got %s: %s.",[w(a),a],b,Array.prototype.slice.call(arguments,2));return a},Ca=function(a,b,c){"string"!==typeof a&&Aa("Expected string but got %s: %s.",[w(a),a],b,Array.prototype.slice.call(arguments,2));return a},Da=function(a,b,c){Array.isArray(a)||Aa("Expected array but got %s: %s.",
  36. [w(a),a],b,Array.prototype.slice.call(arguments,2))},Ea=function(a,b,c){"boolean"!==typeof a&&Aa("Expected boolean but got %s: %s.",[w(a),a],b,Array.prototype.slice.call(arguments,2));return a},Ga=function(a,b,c,d){a instanceof b||Aa("Expected instanceof %s but got %s.",[Fa(b),Fa(a)],c,Array.prototype.slice.call(arguments,3))};
  37. function Fa(a){return a instanceof Function?a.displayName||a.name||"unknown type name":a instanceof Object?a.constructor.displayName||a.constructor.name||Object.prototype.toString.call(a):null===a?"null":typeof a};var z=function(a,b){this.g=a===Ha&&b||"";this.h=Ia};z.prototype.da=!0;z.prototype.ca=function(){return this.g};z.prototype.toString=function(){return"Const{"+this.g+"}"};var Ja=function(a){if(a instanceof z&&a.constructor===z&&a.h===Ia)return a.g;y("expected object of type Const, got '"+a+"'");return"type_error:Const"},Ia={},Ha={};x(!0);var Ka=function(a){return/^[\s\xa0]*$/.test(a)};function La(){var a=v.navigator;return a&&(a=a.userAgent)?a:""}function C(a){return-1!=La().indexOf(a)};var Ma=Array.prototype.indexOf?function(a,b){x(null!=a.length);return Array.prototype.indexOf.call(a,b,void 0)}:function(a,b){if("string"===typeof a)return"string"!==typeof b||1!=b.length?-1:a.indexOf(b,0);for(var c=0;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1},Na=Array.prototype.forEach?function(a,b){x(null!=a.length);Array.prototype.forEach.call(a,b,void 0)}:function(a,b){for(var c=a.length,d="string"===typeof a?a.split(""):a,e=0;e<c;e++)e in d&&b.call(void 0,d[e],e,a)};
  38. function Oa(a){var b=a.length;if(0<b){for(var c=Array(b),d=0;d<b;d++)c[d]=a[d];return c}return[]};var Pa=function(a){Pa[" "](a);return a};Pa[" "]=pa;var Qa=function(a,b){try{return Pa(a[b]),!0}catch(c){}return!1};var Ra=C("Trident")||C("MSIE"),Sa=C("Gecko")&&!(-1!=La().toLowerCase().indexOf("webkit")&&!C("Edge"))&&!(C("Trident")||C("MSIE"))&&!C("Edge");var Ta=C("Firefox")||C("FxiOS");var Ua={},Va=null;var Wa="function"===typeof Uint8Array;var Xa=new function(a,b){this.g=a;this.defaultValue=void 0===b?!1:b}(1954);var Ya,Za=function(){if(void 0===Ya){var a=null,b=v.trustedTypes;if(b&&b.createPolicy){try{a=b.createPolicy("goog#html",{createHTML:xa,createScript:xa,createScriptURL:xa})}catch(c){v.console&&v.console.error(c.message)}Ya=a}else Ya=a}return Ya};var ab=function(a,b){this.g=b===$a?a:""};ab.prototype.da=!0;ab.prototype.ca=function(){return this.g.toString()};ab.prototype.toString=function(){return this.g+""};var $a={};var D=function(a,b){this.g=b===bb?a:""};D.prototype.da=!0;D.prototype.ca=function(){return this.g.toString()};D.prototype.toString=function(){return this.g.toString()};var bb={};function cb(a,b,c){for(var d in a)b.call(c,a[d],d,a)}function db(a){for(var b in a)delete a[b]}var eb="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function hb(a,b){for(var c,d,e=1;e<arguments.length;e++){d=arguments[e];for(c in d)a[c]=d[c];for(var f=0;f<eb.length;f++)c=eb[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};var ib=/^((market|itms|intent|itms-appss):\/\/)/i;var jb=function(){var a;this.g=a=void 0===a?{}:a};jb.prototype.reset=function(){this.g={}};/*
  39. SPDX-License-Identifier: Apache-2.0
  40. */
  41. var kb={};function lb(a){if(a!==kb)throw Error("Bad secret");};var mb=function(){},nb=function(a,b){lb(b);this.g=a};t(nb,mb);nb.prototype.toString=function(){return this.g.toString()};function ob(a){var b,c=null===(b=Za())||void 0===b?void 0:b.createScriptURL(a);return new nb(null!==c&&void 0!==c?c:a,kb)};var pb=function(){},qb=function(a,b){lb(b);this.g=a};t(qb,pb);qb.prototype.toString=function(){return this.g};var rb=new qb("about:invalid#zTSz",kb);function sb(a){if(a instanceof mb)if(a instanceof nb)a=a.g;else throw Error("Unexpected type when unwrapping TrustedResourceUrl");else a instanceof ab&&a.constructor===ab?a=a.g:(y("expected object of type TrustedResourceUrl, got '"+a+"' of type "+w(a)),a="type_error:TrustedResourceUrl");return a}
  42. function tb(a){if(a instanceof pb)if(a instanceof qb)a=a.g;else throw Error("Unexpected type when unwrapping SafeUrl");else a instanceof D&&a.constructor===D?a=a.g:(y("expected object of type SafeUrl, got '"+a+"' of type "+w(a)),a="type_error:SafeUrl");return a};function ub(a,b){a.src=sb(b);var c;b=(a.ownerDocument&&a.ownerDocument.defaultView||window).document;var d=null===(c=b.querySelector)||void 0===c?void 0:c.call(b,"script[nonce]");(c=d?d.nonce||d.getAttribute("nonce")||"":"")&&a.setAttribute("nonce",c)};var vb=function(a){this.ta=a};function wb(a){return new vb(function(b){return b.substr(0,a.length+1).toLowerCase()===a+":"})}var xb=[wb("data"),wb("http"),wb("https"),wb("mailto"),wb("ftp"),new vb(function(a){return/^[^:]*([/?#]|$)/.test(a)})];function yb(a){var b=ma.apply(1,arguments);if(!Array.isArray(a)||!Array.isArray(a.raw))throw new TypeError("trustedResourceUrl is a template literal tag function and can only be called as such (e.g. trustedResourceUrl`/somepath.js`)");if(0===b.length)return ob(a[0]);var c=a[0].toLowerCase();if(/^data:/.test(c))throw Error("Data URLs cannot have expressions in the template literal input.");if(/^https:\/\//.test(c)||/^\/\//.test(c)){var d=c.indexOf("//")+2;var e=c.indexOf("/",d);if(e<=d)throw Error("Can't interpolate data in a url's origin, Please make sure to fully specify the origin, terminated with '/'.");
  43. d=c.substring(d,e);if(!/^[0-9a-z.:-]+$/i.test(d))throw Error("The origin contains unsupported characters.");if(!/^[^:]*(:[0-9]+)?$/i.test(d))throw Error("Invalid port number.");if(!/(^|\.)[a-z][^.]*$/i.test(d))throw Error("The top-level domain must start with a letter.");d=!0}else d=!1;if(d=!d){if(/^\//.test(c))if("/"===c||1<c.length&&"/"!==c[1]&&"\\"!==c[1])d=!0;else throw Error("The path start in the url is invalid.");else d=!1;d=!d}if(d){if(/^about:blank/.test(c)){if("about:blank"!==c&&!/^about:blank#/.test(c))throw Error("The about url is invalid.");
  44. c=!0}else c=!1;d=!c}if(d)throw Error("Trying to interpolate expressions in an unsupported url format.");c=[a[0]];for(d=0;d<b.length;d++)c.push(encodeURIComponent(b[d])),c.push(a[d+1]);return ob(c.join(""))};var zb=function(a){var b=0,c=!1,d=[],e=function(){b=0;c&&(c=!1,f())},f=function(){b=v.setTimeout(e,1E3);var g=d;d=[];a.apply(void 0,g)};return function(g){d=arguments;b?c=!0:f()}};var Ab=function(a){return null==a?"":String(a)};var Bb=function(a,b,c){a.addEventListener&&a.addEventListener(b,c,!1)},Cb=function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c,!1)},Db=function(a){var b=void 0===b?{}:b;if("function"===typeof window.CustomEvent)var c=new CustomEvent("rum_blp",b);else c=document.createEvent("CustomEvent"),c.initCustomEvent("rum_blp",!!b.bubbles,!!b.cancelable,b.detail);a.dispatchEvent(c)};var Fb=function(a,b){cb(b,function(c,d){c&&"object"==typeof c&&c.da&&(c=c.ca());"style"==d?a.style.cssText=c:"class"==d?a.className=c:"for"==d?a.htmlFor=c:Eb.hasOwnProperty(d)?a.setAttribute(Eb[d],c):0==d.lastIndexOf("aria-",0)||0==d.lastIndexOf("data-",0)?a.setAttribute(d,c):a[d]=c})},Eb={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",nonce:"nonce",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",
  45. width:"width"},Hb=function(a,b,c){var d=arguments,e=document,f=d[1];var g=String(d[0]);g=String(g);"application/xhtml+xml"===e.contentType&&(g=g.toLowerCase());g=e.createElement(g);f&&("string"===typeof f?g.className=f:Array.isArray(f)?g.className=f.join(" "):Fb(g,f));2<d.length&&Gb(e,g,d);return g},Gb=function(a,b,c){function d(h){h&&b.appendChild("string"===typeof h?a.createTextNode(h):h)}for(var e=2;e<c.length;e++){var f=c[e];if(!qa(f)||ra(f)&&0<f.nodeType)d(f);else{a:{if(f&&"number"==typeof f.length){if(ra(f)){var g=
  46. "function"==typeof f.item||"string"==typeof f.item;break a}if("function"===typeof f){g="function"==typeof f.item;break a}}g=!1}Na(g?Oa(f):f,d)}}};var Ib=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$"),Jb=function(a,b){if(a){a=a.split("&");for(var c=0;c<a.length;c++){var d=a[c].indexOf("="),e=null;if(0<=d){var f=a[c].substring(0,d);e=a[c].substring(d+1)}else f=a[c];b(f,e?decodeURIComponent(e.replace(/\+/g," ")):"")}}};var Kb=function(a){try{return!!a&&null!=a.location.href&&Qa(a,"foo")}catch(b){return!1}},Lb=function(a,b){if(a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&b(a[c],c,a)},Mb=function(a,b){b=void 0===b?document:b;return b.createElement(String(a).toLowerCase())};var Nb=function(a){a=void 0===a?v:a;var b=a.context||a.AMP_CONTEXT_DATA;if(!b)try{b=a.parent.context||a.parent.AMP_CONTEXT_DATA}catch(c){}try{if(b&&b.pageViewId&&b.canonicalUrl)return b}catch(c){}return null};var Ob=function(){this.S={}},Pb=null,Qb={},Rb=(Qb[8]="google_prev_ad_formats_by_region",Qb[9]="google_prev_ad_slotnames_by_region",Qb);var Sb="function"===typeof Symbol&&"symbol"===typeof Symbol()?Symbol("INTERNAL_ARRAY_STATE"):void 0;function Tb(a,b){Object.isFrozen(a)||(Sb?a[Sb]|=b:void 0!==a.g?a.g|=b:Object.defineProperties(a,{g:{value:b,configurable:!0,writable:!0,enumerable:!1}}))}var Ub=Object.getOwnPropertyDescriptor(Array.prototype,"ua");
  47. Object.defineProperties(Array.prototype,{ua:{get:function(){var a=Vb(this),b=[];1&a&&b.push("IS_REPEATED_FIELD");2&a&&b.push("IS_IMMUTABLE_ARRAY");4&a&&b.push("IS_API_FORMATTED");a=b.join(",");return Ub?Ub.get.call(this)+"|"+a:a},configurable:!0,enumerable:!1}});function Vb(a){Da(a,"state is only maintained on arrays.");var b;Sb?b=a[Sb]:b=a.g;return null==b?0:b}function Wb(a){Da(a,"state is only maintained on arrays.");Tb(a,1);return a}function Xb(a){return Array.isArray(a)?!!(Vb(a)&2):!1}
  48. function Yb(a){if(!Array.isArray(a))throw Error("cannot mark non-array as immutable");Tb(a,2)};function Zb(a){return null!==a&&"object"===typeof a&&!Array.isArray(a)&&a.constructor===Object}var $b,ac=Symbol("exempted jspb subclass"),bc=Symbol("generated by jspb"),cc=Object.freeze(Wb([])),dc="undefined"!=typeof Symbol&&"undefined"!=typeof Symbol.hasInstance;function ec(a){return{value:a,configurable:!1,writable:!1,enumerable:!1}};var fc=function(a,b,c){return-1===b?null:b>=a.l?a.g?a.g[b]:void 0:(void 0===c?0:c)&&a.g&&(c=a.g[b],null!=c)?c:a.A[b+a.j]},gc=function(a,b,c,d,e){d=void 0===d?!1:d;if((void 0===e||!e)&&Xb(a.A))throw Error("Cannot mutate an immutable Message");b<a.l&&!d?a.A[b+a.j]=c:(a.g||(a.g=a.A[a.l+a.j]={}))[b]=c},hc=function(a,b,c,d){c=void 0===c?!0:c;d=void 0===d?!1:d;var e=fc(a,b,d);null==e&&(e=cc);if(Xb(a.A))c&&(Yb(e),Object.freeze(e));else if(e===cc||Xb(e))e=Wb(e.slice()),gc(a,b,e,d);return e},E=function(a,
  49. b,c){a=fc(a,b);return null==a?c:a},ic=function(a,b){for(var c=0,d=0;d<b.length;d++){var e=b[d];null!=fc(a,e)&&(0!==c&&gc(a,c,void 0,!1,!0),c=e)}return c},jc=function(a,b,c){if(-1===c)return null;a.h||(a.h={});var d=a.h[c];if(d)return d;var e=fc(a,c,!1);if(null==e)return d;b=new b(e);Xb(a.A)&&Yb(b.A);return a.h[c]=b},kc=function(a,b){var c=void 0===c?!1:c;a.h||(a.h={});var d=Xb(a.A),e=a.h[2];if(!e){c=hc(a,2,!0,c);e=[];d=d||Xb(c);for(var f=0;f<c.length;f++)e[f]=new b(c[f]),d&&Yb(e[f].A);d&&(Yb(e),Object.freeze(e));
  50. a.h[2]=e}return e},lc=function(a,b,c){b=ic(a,c)===b?b:-1;return E(a,b,0)};function mc(a){switch(typeof a){case "number":return isFinite(a)?a:String(a);case "object":if(a&&!Array.isArray(a)&&Wa&&null!=a&&a instanceof Uint8Array){var b;x(qa(a),"encodeByteArray takes an array as a parameter");void 0===b&&(b=0);if(!Va){Va={};for(var c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),d=["+/=","+/","-_=","-_.","-_"],e=0;5>e;e++){var f=c.concat(d[e].split(""));Ua[e]=f;for(var g=0;g<f.length;g++){var h=f[g],k=Va[h];void 0===k?Va[h]=g:x(k===g)}}}b=Ua[b];
  51. c=Array(Math.floor(a.length/3));d=b[64]||"";for(e=f=0;f<a.length-2;f+=3){k=a[f];var m=a[f+1];h=a[f+2];g=b[k>>2];k=b[(k&3)<<4|m>>4];m=b[(m&15)<<2|h>>6];h=b[h&63];c[e++]=""+g+k+m+h}g=0;h=d;switch(a.length-f){case 2:g=a[f+1],h=b[(g&15)<<2]||d;case 1:a=a[f],c[e]=""+b[a>>2]+b[(a&3)<<4|g>>4]+h+d}return c.join("")}}return a};function nc(a){var b=oc;b=void 0===b?pc:b;Da(a);return qc(a,b)}function rc(a,b){if(null!=a){if(Array.isArray(a))a=qc(a,b);else if(Zb(a)){var c={},d;for(d in a)c[d]=rc(a[d],b);a=c}else a=b(a);return a}}function qc(a,b){Da(a);for(var c=a.slice(),d=0;d<c.length;d++)c[d]=rc(c[d],b);Array.isArray(a)&&Vb(a)&1&&Wb(c);return c}function oc(a){if(a&&"object"==typeof a&&a.toJSON)return a.toJSON();a=mc(a);return Array.isArray(a)?nc(a):a}
  52. function pc(a){return Wa&&null!=a&&a instanceof Uint8Array?new Uint8Array(a):a};var sc;var F=function(a,b,c){Ga(this,F,"The message constructor should only be used by subclasses");x(this.constructor!==F,"Message is an abstract class and cannot be directly constructed");if(!0!==this[ac]){x(!0===this[bc],"Message can only be subclassed by proto gencode.");var d=Object.getPrototypeOf(x(Object.getPrototypeOf(this)));x(d.hasOwnProperty(bc),"Generated jspb classes should not be extended")}d=sc;sc=null;a||(a=d);d=this.constructor.h;a||(a=d?[d]:[]);this.j=(d?0:-1)-(this.constructor.g||0);this.h=
  53. void 0;this.A=a;a:{d=this.A.length;a=d-1;if(d&&(d=this.A[a],Zb(d))){this.l=a-this.j;this.g=d;break a}void 0!==b&&-1<b?(this.l=Math.max(b,a+1-this.j),this.g=void 0):this.l=Number.MAX_VALUE}if(c)for(b=0;b<c.length;b++)if(a=c[b],a<this.l)a+=this.j,(d=this.A[a])?Array.isArray(d)&&Wb(d):this.A[a]=cc;else{d=this.g||(this.g=this.A[this.l+this.j]={});var e=d[a];e?Array.isArray(e)&&Wb(e):d[a]=cc}};F.prototype.toJSON=function(){var a=this.A;return $b?a:nc(a)};
  54. F.prototype.m=function(){$b=!0;try{return JSON.stringify(this.toJSON(),tc)}finally{$b=!1}};F.prototype.toString=function(){return this.A.toString()};function tc(a,b){return mc(b)};var uc=function(){F.apply(this,arguments)};t(uc,F);var vc=function(){var a={};Object.defineProperties(uc,(a[Symbol.hasInstance]=ec(function(){throw Error("Cannot perform instanceof checks for MutableMessage");}),a))};dc&&vc();var G=function(){uc.apply(this,arguments)};t(G,uc);G.prototype[bc]=!0;var wc=function(){var a={};Object.defineProperties(G,(a[Symbol.hasInstance]=ec(Object[Symbol.hasInstance]),a))};dc&&wc();var xc=[],H=function(a){x(!Object.isSealed(a),"Cannot use getInstance() with a sealed constructor.");var b="ea";if(a.ea&&a.hasOwnProperty(b))return a.ea;xc.push(a);var c=new a;a.ea=c;x(a.hasOwnProperty(b),"Could not instantiate singleton.");return c};var yc=function(){var a={};this.g=function(){var b=Xa.g,c=Xa.defaultValue;return null!=a[b]?Ea(a[b]):c}};var zc=function(a,b){var c=void 0===c?{}:c;this.error=a;this.context=b.context;this.msg=b.message||"";this.id=b.id||"jserror";this.meta=c};var Ac=ea(["static/js/err_rep.js"]),Bc=function(){this.g=null};var Cc=function(a){var b;a.visibilityState?b="visibilitychange":a.mozVisibilityState?b="mozvisibilitychange":a.webkitVisibilityState&&(b="webkitvisibilitychange");return b};var Dc=null;var Ec=function(){var a=void 0===a?v:a;return(a=a.performance)&&a.now&&a.timing?Math.floor(a.now()+a.timing.navigationStart):Date.now()},Fc=function(){var a=void 0===a?v:a;return(a=a.performance)&&a.now?a.now():null};var Gc=function(a,b){var c=Fc()||Ec();this.label=a;this.type=b;this.value=c;this.duration=0;this.uniqueId=Math.random();this.slotId=void 0};var I=v.performance,Hc=!!(I&&I.mark&&I.measure&&I.clearMarks),Ic=function(a){var b=!1,c;return function(){b||(c=a(),b=!0);return c}}(function(){var a;if(a=Hc){var b;if(null===Dc){Dc="";try{a="";try{a=v.top.location.hash}catch(c){a=v.location.hash}a&&(Dc=(b=a.match(/\bdeid=([\d,]+)/))?b[1]:"")}catch(c){}}b=Dc;a=!!b.indexOf&&0<=b.indexOf("1337")}return a}),J=function(a,b){this.m=[];this.g=b||v;var c=null;b&&(b.google_js_reporting_queue=b.google_js_reporting_queue||[],this.m=b.google_js_reporting_queue,
  55. c=b.google_measure_js_timing);this.u=Ic()||(null!=c?c:Math.random()<a)};J.prototype.H=function(){this.u=!1;this.m!=this.g.google_js_reporting_queue&&(Ic()&&Na(this.m,Jc),this.m.length=0)};J.prototype.I=function(a){!this.u||2048<this.m.length||this.m.push(a)};var Jc=function(a){a&&I&&Ic()&&(I.clearMarks("goog_"+a.label+"_"+a.uniqueId+"_start"),I.clearMarks("goog_"+a.label+"_"+a.uniqueId+"_end"))};
  56. J.prototype.start=function(a,b){if(!this.u)return null;a=new Gc(a,b);b="goog_"+a.label+"_"+a.uniqueId+"_start";I&&Ic()&&I.mark(b);return a};J.prototype.end=function(a){if(this.u&&(x(a),"number"===typeof a.value)){a.duration=(Fc()||Ec())-a.value;var b="goog_"+a.label+"_"+a.uniqueId+"_end";I&&Ic()&&I.mark(b);this.I(a)}};var Kc=function(a){a=a._google_rum_ns_=a._google_rum_ns_||{};return a.pq=a.pq||[]};var Lc=function(a,b,c){Lb(b,function(d,e){var f=c&&c[e];!d&&0!==d||f||(a+="&"+encodeURIComponent(e)+"="+encodeURIComponent(String(d)),c&&(c[e]=!0))});return a},Qc=function(a,b,c,d,e,f,g,h){f=void 0===f?Infinity:f;g=void 0===g?!1:g;J.call(this,a,h);var k=this;this.F=0;this.M=f;this.U=b;this.J=c;this.s=d;this.V=e;a=this.g.navigator;this.P=!("csi.gstatic.com"!==this.J||!a||!a.sendBeacon);this.l={};this.D={};this.g.performance&&this.g.performance.now||K(this,"dat",1);a&&a.deviceMemory&&K(this,"dmc",a.deviceMemory);
  57. this.g===this.g.top&&K(this,"top",1);this.W=!g;this.N=function(){k.g.setTimeout(function(){return L(k)},1100)};this.aa=[];this.R=function(){Mc(k,1)};this.O=function(){Mc(k,2)};this.$=zb(function(){L(k)});this.ba=function(){var n=k.g.document;(null!=n.hidden?n.hidden:null!=n.mozHidden?n.mozHidden:null!=n.webkitHidden&&n.webkitHidden)&&k.$()};this.v=this.g.setTimeout(function(){return L(k)},5E3);this.o={};this.j=b.length+c.length+d.length+e.length+3;this.h=0;Na(this.m,function(n){return Nc(k,n)});this.G=
  58. [];b=Kc(this.g);var m=function(n){Da(n);x(2===n.length);var A=Ca(n[0]);n=Ca(n[1]);var B=A.length+n.length+2;8E3<k.j+k.h+B&&L(k);k.G.push([A,n]);k.h+=B;6E3<=k.j+k.h&&L(k);return 0};Na(b,function(n){return m(n)});b.length=0;b.push=m;Oc(this);Pc(this)};t(Qc,J);
  59. var Pc=function(a){"complete"===a.g.document.readyState?a.g.setTimeout(function(){return L(a)},0):Bb(a.g,"load",a.N);var b=Cc(a.g.document);"undefined"!==typeof b&&Bb(a.g,b,a.ba);H(yc).g()||Bb(a.g,"unload",a.R);Bb(a.g,"pagehide",a.O)},K=function(a,b,c){c=String(c);a.j=null!=a.l[b]?a.j+(c.length-a.l[b].length):a.j+(b.length+c.length+2);a.l[b]=c},Rc=function(a){null!=a.l.uet&&(a.j-=3+a.l.uet.length+2,delete a.l.uet)},Sc=function(a,b,c,d,e){e=void 0===e?"":e;var f=null==a.o[b]?b.length+c.length+2:d?
  60. c.length+(void 0===e?"":e).length:c.length-a.o[b].length;8E3<a.j+a.h+f&&(L(a),f=b.length+c.length+2);a.o[b]=d&&null!=a.o[b]?a.o[b]+(""+(void 0===e?"":e)+c):c;a.h+=f;6E3<=a.j+a.h&&L(a)},L=function(a){if(a.u&&a.W){try{if(a.h){var b=a.o;a.F++;var c=Tc(a,b);b=!1;try{b=!!(a.P&&a.g.navigator&&a.g.navigator.sendBeacon(c,null))}catch(h){a.P=!1}if(!b){var d=a.g;d.google_image_requests||(d.google_image_requests=[]);var e=Mb("IMG",d.document);e.src=c;d.google_image_requests.push(e)}Oc(a);a.F===a.M&&a.H()}}catch(h){d=
  61. h;c=new Bc;var f=void 0===f?"jserror":f;if(!(Math.random()>(void 0===g?.01:g)||(d.error&&d.meta&&d.id||(d=new zc(d,{context:358,id:f})),v.google_js_errors=v.google_js_errors||[],v.google_js_errors.push(d),v.error_rep_loaded))){f=yb(Ac);var g=v.document;null==(c=c.g)&&(c=new z(Ha,"TS-Closure conversions of the same types"),f=sb(f).toString(),Ca(Ja(c),"must provide justification"),x(!Ka(Ja(c)),"must provide non-empty justification"),f=(c=Za())?c.createScriptURL(f):f,c=new ab(f,$a));f=Mb("SCRIPT",g);
  62. ub(f,c);(g=g.getElementsByTagName("script")[0])&&g.parentNode&&g.parentNode.insertBefore(f,g);v.error_rep_loaded=!0}}a.o={};a.h=0;a.m.length=0;a.g.clearTimeout(a.v);a.v=0}},Tc=function(a,b){x(2==a.s.split("?").length);x("="==a.s[a.s.length-1]);var c=a.U+"//"+a.J+a.s+a.V,d={};c=Lc(c,a.l,d);c=Lc(c,b,d);b=a.g;b.google_timing_params&&(c=Lc(c,b.google_timing_params,d),b.google_timing_params=void 0);Na(a.G,function(e){x(2===e.length);var f=r(e);e=f.next().value;f=f.next().value;var g={};c=Lc(c,(g[e]=f,
  63. g))});a.G.length=0;return c},Oc=function(a){K(a,"puid",(a.F+1).toString(36)+"~"+Date.now().toString(36))},Nc=function(a,b){var c="met."+b.type,d="number"===typeof b.value?Math.round(b.value).toString(36):b.value,e=Math.round(b.duration);b=""+b.label+(null!=b.slotId?"_"+b.slotId:"")+("."+d)+(0<e?"_"+e.toString(36):"");Sc(a,c,b,!0,"~")};Qc.prototype.I=function(a){this.u&&this.F<this.M&&(J.prototype.I.call(this,a),Nc(this,a))};
  64. Qc.prototype.H=function(){J.prototype.H.call(this);this.g.clearTimeout(this.v);this.h=this.v=0;this.o={};db(this.D);db(this.l);Cb(this.g,"load",this.N);H(yc).g()||Cb(this.g,"unload",this.R);Cb(this.g,"pagehide",this.O)};var Mc=function(a,b){K(a,"uet",b);Na(a.aa,function(c){try{c()}catch(d){}});Db(a.g);L(a);Rc(a)};var Uc=Object.freeze||function(a){return a};var Vc=function(){this.name="CONFIG";this.value=700};Vc.prototype.toString=function(){return this.name};var Wc=new Vc,Xc=function(){this.g=null;this.h=[]},Yc=function(){this.entries={};var a=new Xc;a.g=Wc;this.entries[""]=a},Zc,$c=function(a,b,c){var d=a.entries[b];if(d)return void 0!==c&&(d.g=c),d;d=$c(a,b.substr(0,b.lastIndexOf(".")));var e=new Xc;a.entries[b]=e;d.h.push(e);void 0!==c&&(e.g=c);return e};var M=function(){this.g=new Qc(1,"https:","csi.gstatic.com","/csi?v=2&s=","ima",void 0,!0);if(Pb)var a=Pb;else{a=((a=Nb())?Kb(a.master)?a.master:null:null)||window;var b=a.google_persistent_state_async;a=null!=b&&"object"==typeof b&&null!=b.S&&"object"==typeof b.S?Pb=b:a.google_persistent_state_async=Pb=new Ob}if(b=Nb(window)){var c=b||Nb();c?(b=c.pageViewId,c=c.clientId,"string"===typeof c&&(b+=c.replace(/\D/g,"").substr(0,6))):b=null;b=+b}else{for(c=b=window;b&&b!=b.parent;)b=b.parent,Kb(b)&&(c=
  65. b);b=c;(c=b.google_global_correlator)||(b.google_global_correlator=c=1+Math.floor(Math.random()*Math.pow(2,43)));b=c}c=Rb[7]||"google_ps_7";a=a.S;var d=a[c];a=void 0===d?a[c]=b:d;null!=a&&K(this.g,"c",a);a=parseInt(this.g.l.c,10)/2;null!=a&&K(this.g,"slotId",a);a=$c;Zc||(Zc=new Yc);a(Zc,"google3.javascript.ads.imalib.instrumentation.instrumentation",void 0)},N=function(a,b,c){if(null!=c){a=a.g;var d=b+"="+c;a.D[d]||(Sc(a,b,c,!1),1E3>d.length&&(a.D[d]=!0))}};var ad=function(){};ad.prototype.m=function(a){var b=[];bd(this,a,b);return b.join("")};
  66. var bd=function(a,b,c){if(null==b)c.push("null");else{if("object"==typeof b){if(Array.isArray(b)){var d=b;b=d.length;c.push("[");for(var e="",f=0;f<b;f++)c.push(e),bd(a,d[f],c),e=",";c.push("]");return}if(b instanceof String||b instanceof Number||b instanceof Boolean)b=b.valueOf();else{c.push("{");e="";for(d in b)Object.prototype.hasOwnProperty.call(b,d)&&(f=b[d],"function"!=typeof f&&(c.push(e),cd(d,c),c.push(":"),bd(a,f,c),e=","));c.push("}");return}}switch(typeof b){case "string":cd(b,c);break;
  67. case "number":c.push(isFinite(b)&&!isNaN(b)?String(b):"null");break;case "boolean":c.push(String(b));break;case "function":c.push("null");break;default:throw Error("Unknown type: "+typeof b);}}},dd={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\u000b"},ed=/\uffff/.test("\uffff")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g,cd=function(a,b){b.push('"',a.replace(ed,function(c){var d=dd[c];d||(d="\\u"+(c.charCodeAt(0)|65536).toString(16).substr(1),
  68. dd[c]=d);return d}),'"')};var fd=function(){this.j=null;this.g="missing-id";this.h=!1},hd=function(a){var b=null;try{b=document.getElementsByClassName("lima-exp-data")}catch(c){return gd("missing-element",a.g),null}if(1<b.length)return gd("multiple-elements",a.g),null;b=b[0];return b?b.innerHTML:(gd("missing-element",a.g),null)},id=function(){var a=O,b=hd(a);if(null!==b)if(/^\s*$/.test(b)?0:/^[\],:{}\s\u2028\u2029]*$/.test(b.replace(/\\["\\\/bfnrtu]/g,"@").replace(/(?:"[^"\\\n\r\u2028\u2029\x00-\x08\x0a-\x1f]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?)[\s\u2028\u2029]*(?=:|,|]|}|$)/g,
  69. "]").replace(/(?:^|:|,)(?:[\s\u2028\u2029]*\[)+/g,""))){var c=JSON.parse(b);b=c.experimentIds;var d=c.binaryIdentifier;c=c.adEventId;var e="string"===typeof d;if("string"==typeof c){var f=H(M);null!=c&&K(f.g,"qqid",c)}e&&(a.g=d);"string"!==typeof b?gd("missing-flags",a.g):(e||gd("missing-binary-id",a.g),a.j=b)}else gd("invalid-json",a.g)};fd.prototype.reset=function(){this.j=null;this.g="missing-id"};var kd=function(a,b,c,d,e){this.id=a;this.i=b;this.l=c;this.g=!1;this.j=d;this.h=e;this.l&&jd(this)},md=function(){var a=ld;return a.g||a.l},jd=function(a){if(a.j&&a.h){var b=a.j;b&&Object.assign(a.h.g,b)}},P=function(){this.g=[]},nd=function(){this.g=new Map;this.h=!1;this.o=new P;this.l=new kd(0,0,!1);this.j=[this.o];this.m=new jb},Q=function(a){var b=od;if(b.h)return y("Cannot register Experiments after selection."),b.l;if(b.g.has(a.id))return y("Cannot define multiple experiments with Id: "+a.id+
  70. "."),b.l;if(null==a.i&&null==a.control)return y('Experiment Mods must be defined with the name "mods" or a control must be specified with the name "control".'),b.l;if(0==a.sa)return b.l;var c=b.o;if(null!=a.control)for(var d=r(b.j),e=d.next();!e.done;e=d.next()){if(e=e.value,e.g.includes(a.control)){c=e;break}}else null!=a.C&&(c=a.C);d=0;null!=a.control?d=a.control.i:null!=a.i&&(d=a.i);a=new kd(a.id,d,!!a.Ta,a.flags,b.m);c.g.push(a);b.j.includes(c)||b.j.push(c);b.g.set(a.id,a);return a};
  71. nd.prototype.reset=function(){for(var a=r(this.g),b=a.next();!b.done;b=a.next())b=r(b.value),b.next(),b.next().value.g=!1;this.h=!1;this.m.reset()};var od=new nd;var qd=function(a){G.call(this,a,-1,pd)};t(qd,G);var pd=[2,8],rd=[3,4,5];var td=function(a){G.call(this,a,-1,sd)};t(td,G);var sd=[4];var vd=function(a){G.call(this,a,-1,ud)};t(vd,G);var ud=[5],wd=[1,2,3,6,7];var yd=function(a){G.call(this,a,-1,xd)};t(yd,G);var xd=[2];var Ad=function(a){G.call(this,a,-1,zd)};t(Ad,G);var zd=[2];var Cd=function(a){G.call(this,a,-1,Bd)};t(Cd,G);var Ed=function(a){G.call(this,a,-1,Dd)};t(Ed,G);var Bd=[1,4,2,3],Dd=[2];var Fd=function(a,b){switch(b){case 1:return lc(a,1,wd);case 2:return lc(a,2,wd);case 3:return lc(a,3,wd);case 6:return lc(a,6,wd);default:return null}},Gd=function(a,b){if(!a)return null;switch(b){case 1:return a=fc(a,1),a=null==a?a:!!a,null==a?!1:a;case 7:return E(a,3,"");case 2:return a=fc(a,2),a=null==a?a:+a,null==a?0:a;case 3:return E(a,3,"");case 6:return hc(a,4);default:return null}};var Hd={},Id=(Hd[47]=Ta,Hd);function Jd(){var a=Kd,b=kc(new Cd(Ld),Ed);1==b.length&&16==E(b[0],1,0)&&kc(b[0],Ad).forEach(function(c){var d=E(c,1,0),e=jc(c,qd,3),f=a[E(c,4,0)];kc(c,yd).forEach(function(g){var h=d||E(g,4,0),k=E(g,1,0),m=e||jc(g,qd,3);m=m?lc(m,3,rd):null;m=Id[m];g=Md(kc(g,vd));Q({id:k,i:h,C:f,sa:m,flags:g})})})}function Md(a){if(a.length){var b={};a.forEach(function(c){var d=ic(c,wd),e=jc(c,td,4);e&&(c=Fd(c,d),d=Gd(e,d),b[c]=d)});return b}};var Nd=function(a){this.g=a};Nd.prototype.h=function(a,b){a=r(this.g);for(var c=a.next();!c.done;c=a.next())if(c=b.get(c.value))c.g=!0,jd(c)};var Od=function(a,b){this.g=a;this.j=b};t(Od,Nd);Od.prototype.h=function(a,b){Nd.prototype.h.call(this,a,b);var c=[];a=[];for(var d=r(this.g),e=d.next();!e.done;e=d.next())e=e.value,b.get(e)?c.push(e):a.push(e);b=c.map(String).join(",")||"0";a=a.map(String).join(",")||"0";N(H(M),"sei",b);N(H(M),"nsei",a);N(H(M),"bi",this.j)};var Pd=function(){fd.apply(this,arguments)};t(Pd,fd);var gd=function(a,b){var c=H(M);N(c,"eee",a);N(c,"bi",b)};function Qd(){return Rd.split(",").map(function(a){return parseInt(a,10)}).filter(function(a){return!isNaN(a)})};var Sd=new P,Td=new P,Ud=new P,Vd=new P,Wd=new P,Xd=new P,Yd=new P;Q({id:318475490,i:0});Q({id:324123032,i:0});Q({id:418572103,i:0});Q({id:420706097,i:10});Q({id:420706098,i:10});Q({id:21062100,i:0});Q({id:420706105,i:0});Q({id:420706106,i:0});Q({id:21064018,i:0});Q({id:21064020,i:0});Q({id:21064022,i:0});Q({id:21064024,i:0});Q({id:21064075,i:0});Q({id:21064201,i:0});Q({id:420706142,i:0});Q({id:21064347,i:0});Q({id:44745813,i:0});Q({id:44746068,i:0});Q({id:21064565,i:0});Q({id:21064567,i:0});
  72. Q({id:418572006,i:10});Q({id:44744588,i:10});Q({id:44747319,i:10});Q({id:44740339,i:10});Q({id:44740340,i:10});Q({id:44749839,i:0});Q({id:44749840,i:0});Q({id:44749841,i:0});Q({id:44749842,i:0});Q({id:44749843,i:1});Q({id:44749844,i:1});Q({id:44749845,i:1});Q({id:44749846,i:1});Q({id:44714743,i:0});Q({id:44719216,i:0});Q({id:44730895,i:10});Q({id:44730896,i:10});Q({id:44736292,i:10});Q({id:44736293,i:10});Q({id:668123728,i:10,C:Sd});Q({id:668123729,i:10,C:Sd});Q({id:31061774,i:10});
  73. Q({id:31061775,i:10});Q({id:44715336,i:10});Q({id:44729309,i:10});Q({id:75259410,i:0});Q({id:75259412,i:0});Q({id:75259413,i:0});Q({id:44725355,i:50,C:Vd});Q({id:44725356,i:50,C:Vd});Q({id:44724516,i:0});Q({id:44726389,i:10});Q({id:44752711,i:50});Q({id:44752052,i:50});Q({id:44752657,i:50});Q({id:44730464,i:10});Q({id:44730465,i:10});Q({id:44733378,i:10});Q({id:44727953,i:0});Q({id:44729911,i:0});Q({id:44730425,i:0});Q({id:44730426,i:0});Q({id:44733246,i:10});Q({id:44750823,i:100,C:Xd});
  74. Q({id:44750824,i:100,C:Xd});Q({id:44750822,i:100,C:Xd});Q({id:44754419,i:10});Q({id:44754420,i:10});Q({id:44737473,i:100,C:Td});Q({id:44737475,i:100,C:Td});Q({id:44751785,i:10});Q({id:44751786,i:10});Q({id:44751889,i:10});Q({id:44751890,i:10});Q({id:44738437,i:100,C:Yd});Q({id:44738438,i:100,C:Yd});Q({id:44750813,i:10});Q({id:44750814,i:10});Q({id:44752995,i:10});Q({id:44752996,i:10});Q({id:44748968,i:0});Q({id:44748969,i:0});Q({id:44752284,i:10});Q({id:44752285,i:10});Q({id:44752538,i:0});
  75. Q({id:44754608,i:10});Q({id:44754609,i:10});Q({id:44757674,i:10});Q({id:44757675,i:10});Q({id:44756935,i:10});Q({id:44756936,i:10});Q({id:44756710,i:10});Q({id:44756711,i:10});Q({id:44757316,i:10});Q({id:44757317,i:10});Q({id:44757398,i:10});Q({id:44758373,i:100});var ld=Q({id:44758374,i:100});Q({id:44758347,i:10});Q({id:44758348,i:10});Q({id:44757910,i:10});Q({id:44757911,i:10});Q({id:44758266,i:10,C:Ud});Q({id:44758267,i:10,C:Ud});var Zd={},Kd=(Zd[32]=Sd,Zd[35]=Wd,Zd);Kd=void 0===Kd?{}:Kd;
  76. if(!/^\{+IMA_EXPERIMENT_STATE_JSPB\}+$/.test("{{IMA_EXPERIMENT_STATE_JSPB}}"))try{var Ld=JSON.parse("{{IMA_EXPERIMENT_STATE_JSPB}}");Ld instanceof Array&&Jd()}catch(a){N(H(M),"espe",a.message)}if("undefined"===typeof window.v8_flag_map){var O=H(Pd);O.h||(id(),O.h=!0);var Rd=O.j,$d;O.h||(id(),O.h=!0);$d=O.g;if(null!=Rd){var ae=new Od(Qd(),$d),be=od;be.h?y("Cannot select experiments more than once."):(ae.h(be.j,be.g),be.h=!0)}};var ce=function(){if(!v.addEventListener||!Object.defineProperty)return!1;var a=!1,b=Object.defineProperty({},"passive",{get:function(){a=!0}});try{v.addEventListener("test",pa,b),v.removeEventListener("test",pa,b)}catch(c){}return a}();function de(a,b){if("undefined"!==typeof ReportingObserver){var c=function(e){e=r(e);for(var f=e.next();!f.done;f=e.next())f=f.value,a(f)&&b(f)},d=new ReportingObserver(c,{buffered:!0});md()?v.addEventListener("pagehide",function(){c(d.takeRecords(),d);d.disconnect()}):v.addEventListener("unload",function(){c(d.takeRecords(),d);d.disconnect()});d.observe()}}function ee(a){de(function(b){return b.body&&"HeavyAdIntervention"===b.body.id},a)}
  77. function fe(a){ee(function(b){b=b.body.message;b.includes("CPU")?a("heavy_ad_intervention_cpu"):b.includes("network")&&a("heavy_ad_intervention_network")})}function ge(a){a=void 0===a?null:a;de(function(b){return b.body&&"HeavyAdIntervention"===b.body.id},function(b){var c=b.body.message,d=H(M);N(d,"ham",c);c.includes("CPU")?N(d,"hacpu","true"):c.includes("network")&&N(d,"habytes","true");a&&a(b)})};var he={wa:"collapseAd",xa:"expandAd",ya:"getAdIcons",za:"getAdCompanions",Aa:"getAdDuration",Ba:"getAdExpanded",Ca:"getAdHeight",Da:"getAdLinear",Ea:"getAdRemainingTime",Fa:"getAdSkippableState",Ga:"getAdVolume",Ha:"getAdWidth",Ia:"handshakeVersion",INIT:"initAd",Ja:"pauseAd",Ka:"resizeAd",La:"resumeAd",Na:"skipAd",Oa:"startAd",Ma:"setAdVolume",Pa:"stopAd",Qa:"subscribe",Ra:"unsubscribe"};var ie=function(a,b,c,d){this.o=a;this.g=b;this.l=c;this.m=d;this.h=new Map;this.j=!1},je=function(a){R(a,a.ha,"AdClickThru");R(a,a.ia,"AdDurationChange");R(a,a.ja,"AdError");R(a,a.ka,"AdExpandedChange");R(a,function(){return S(a,"AdImpression")},"AdImpression");R(a,a.la,"AdInteraction");R(a,a.ma,"AdLinearChange");R(a,a.na,"AdLoaded");R(a,a.oa,"AdLog");R(a,function(){return S(a,"AdPaused")},"AdPaused");R(a,function(){return S(a,"AdPlaying")},"AdPlaying");R(a,a.pa,"AdRemainingTimeChange");R(a,function(){return S(a,
  78. "AdSizeChange")},"AdSizeChange");R(a,function(){return S(a,"AdSkipped")},"AdSkipped");R(a,function(){return S(a,"AdStarted")},"AdStarted");R(a,a.qa,"AdStopped");R(a,function(){return S(a,"AdSkippableStateChange")},"AdSkippableStateChange");R(a,function(){return S(a,"AdUserAcceptInvitation")},"AdUserAcceptInvitation");R(a,function(){return S(a,"AdUserClose")},"AdUserClose");R(a,function(){return S(a,"AdUserMinimize")},"AdUserMinimize");R(a,function(){return S(a,"AdVideoComplete")},"AdVideoComplete");
  79. R(a,function(){return S(a,"AdVideoFirstQuartile")},"AdVideoFirstQuartile");R(a,function(){return S(a,"AdVideoMidpoint")},"AdVideoMidpoint");R(a,function(){return S(a,"AdVideoStart")},"AdVideoStart");R(a,function(){return S(a,"AdVideoThirdQuartile")},"AdVideoThirdQuartile");R(a,a.ra,"AdVolumeChange");R(a,a.va,"Ping")};l=ie.prototype;
  80. l.ha=function(a,b,c){var d=null;Ka(Ab(a))?Ka(Ab(this.l))||(d=this.l):d=a;if(c&&null!=d&&(c=d,a=this.m,a=null!=a?a:"",Ra&&(a=""),!Ka(Ab(c)))){if(c instanceof D||!ib.test(c))var e=c;else e=new z(Ha,"Mobile App Ads Url type to be enabled for sonic"),Ca(Ja(e),"must provide justification"),x(!Ka(Ja(e)),"must provide non-empty justification"),e=new D(c,bb);if(e instanceof D)c=e;else{var f=void 0===f?xb:f;a:{f=void 0===f?xb:f;for(e=0;e<f.length;++e){var g=f[e];if(g instanceof vb&&g.ta(c)){c=new qb(c,kb);
  81. break a}}c=void 0}c=c||rb}window.open(tb(c),"_blank",a)}S(this,"AdClickThru",{url:d,id:b})};l.ia=function(){var a=this.g.getAdDuration(),b=this.g.getAdRemainingTime();S(this,"AdDurationChange",{duration:a,remainingTime:b})};l.ja=function(a){S(this,"AdError",{message:a})};l.ka=function(){var a={};a.expanded=this.g.getAdExpanded();S(this,"AdExpandedChange",a)};l.la=function(a){S(this,"AdInteraction",{id:a})};l.ma=function(){var a={};a.isLinear=this.g.getAdLinear();S(this,"AdLinearChange",a)};
  82. l.na=function(){var a={companions:"function"===typeof this.g.getAdCompanions?this.g.getAdCompanions():""};S(this,"AdLoaded",a)};l.oa=function(a){S(this,"AdLog",{message:a})};l.pa=function(){var a={remainingTime:this.g.getAdRemainingTime()};S(this,"AdRemainingTimeChange",a)};
  83. l.qa=function(){for(var a=r(this.h),b=a.next();!b.done;b=a.next()){var c=r(b.value);b=c.next().value;c=c.next().value;if(this.g){try{this.g.unsubscribe(c,b)}catch(d){}try{this.g.unsubscribe(b,c)}catch(d){}}}this.h.clear();S(this,"AdStopped");this.j=!0};l.ra=function(){var a={volume:this.g.getAdVolume()};S(this,"AdVolumeChange",a)};l.va=function(a){S(this,"Ping",{url:a})};
  84. var R=function(a,b,c){a.h.set(c,b.bind(a));a.g.subscribe(b.bind(a),c)},S=function(a,b,c){c=void 0===c?{}:c;a.j||(a={type:b,session:a.o},hb(a,c),window.parent!=window&&window.parent.postMessage((new ad).m(a),"*"))};function ke(a){a&&"function"==typeof a.fa&&a.fa()};var U=function(){this.H=this.H;this.F=this.F};U.prototype.H=!1;U.prototype.fa=function(){this.H||(this.H=!0,this.u())};U.prototype.u=function(){if(this.F)for(;this.F.length;)this.F.shift()()};var le=function(a,b){this.type=a;this.g=this.target=b;this.defaultPrevented=!1};le.prototype.h=function(){this.defaultPrevented=!0};var ne=function(a,b){le.call(this,a?a.type:"");this.relatedTarget=this.g=this.target=null;this.button=this.screenY=this.screenX=this.clientY=this.clientX=0;this.key="";this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.state=null;this.pointerId=0;this.pointerType="";this.j=null;if(a){var c=this.type=a.type,d=a.changedTouches&&a.changedTouches.length?a.changedTouches[0]:null;this.target=a.target||a.srcElement;this.g=b;(b=a.relatedTarget)?Sa&&(Qa(b,"nodeName")||(b=null)):"mouseover"==c?b=a.fromElement:
  85. "mouseout"==c&&(b=a.toElement);this.relatedTarget=b;d?(this.clientX=void 0!==d.clientX?d.clientX:d.pageX,this.clientY=void 0!==d.clientY?d.clientY:d.pageY,this.screenX=d.screenX||0,this.screenY=d.screenY||0):(this.clientX=void 0!==a.clientX?a.clientX:a.pageX,this.clientY=void 0!==a.clientY?a.clientY:a.pageY,this.screenX=a.screenX||0,this.screenY=a.screenY||0);this.button=a.button;this.key=a.key||"";this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.pointerId=
  86. a.pointerId||0;this.pointerType="string"===typeof a.pointerType?a.pointerType:me[a.pointerType]||"";this.state=a.state;this.j=a;a.defaultPrevented&&ne.L.h.call(this)}};wa(ne,le);var me=Uc({2:"touch",3:"pen",4:"mouse"});ne.prototype.h=function(){ne.L.h.call(this);var a=this.j;a.preventDefault?a.preventDefault():a.returnValue=!1};var oe="closure_listenable_"+(1E6*Math.random()|0);var pe=0;var qe=function(a,b,c,d,e){this.listener=a;this.proxy=null;this.src=b;this.type=c;this.capture=!!d;this.Z=e;this.key=++pe;this.T=this.X=!1},re=function(a){a.T=!0;a.listener=null;a.proxy=null;a.src=null;a.Z=null};var se=function(a){this.src=a;this.g={};this.h=0};se.prototype.add=function(a,b,c,d,e){var f=a.toString();a=this.g[f];a||(a=this.g[f]=[],this.h++);var g=te(a,b,d,e);-1<g?(b=a[g],c||(b.X=!1)):(b=new qe(b,this.src,f,!!d,e),b.X=c,a.push(b));return b};
  87. var ue=function(a,b){var c=b.type;if(c in a.g){var d=a.g[c],e=Ma(d,b),f;if(f=0<=e)x(null!=d.length),Array.prototype.splice.call(d,e,1);f&&(re(b),0==a.g[c].length&&(delete a.g[c],a.h--))}},te=function(a,b,c,d){for(var e=0;e<a.length;++e){var f=a[e];if(!f.T&&f.listener==b&&f.capture==!!c&&f.Z==d)return e}return-1};var ve="closure_lm_"+(1E6*Math.random()|0),we={},xe=0,ze=function(a,b,c,d,e){if(d&&d.once)return ye(a,b,c,d,e);if(Array.isArray(b)){for(var f=0;f<b.length;f++)ze(a,b[f],c,d,e);return null}c=Ae(c);a&&a[oe]?(d=ra(d)?!!d.capture:!!d,Be(a),a=a.h.add(String(b),c,!1,d,e)):a=Ce(a,b,c,!1,d,e);return a},Ce=function(a,b,c,d,e,f){if(!b)throw Error("Invalid event type");var g=ra(e)?!!e.capture:!!e,h=De(a);h||(a[ve]=h=new se(a));c=h.add(b,c,d,g,f);if(c.proxy)return c;d=Ee();c.proxy=d;d.src=a;d.listener=c;if(a.addEventListener)ce||
  88. (e=g),void 0===e&&(e=!1),a.addEventListener(b.toString(),d,e);else if(a.attachEvent)a.attachEvent(Fe(b.toString()),d);else if(a.addListener&&a.removeListener)x("change"===b,"MediaQueryList only has a change event"),a.addListener(d);else throw Error("addEventListener and attachEvent are unavailable.");xe++;return c},Ee=function(){var a=Ge,b=function(c){return a.call(b.src,b.listener,c)};return b},ye=function(a,b,c,d,e){if(Array.isArray(b)){for(var f=0;f<b.length;f++)ye(a,b[f],c,d,e);return null}c=
  89. Ae(c);return a&&a[oe]?a.h.add(String(b),c,!0,ra(d)?!!d.capture:!!d,e):Ce(a,b,c,!0,d,e)},He=function(a,b,c,d,e){if(Array.isArray(b))for(var f=0;f<b.length;f++)He(a,b[f],c,d,e);else(d=ra(d)?!!d.capture:!!d,c=Ae(c),a&&a[oe])?(a=a.h,b=String(b).toString(),b in a.g&&(f=a.g[b],c=te(f,c,d,e),-1<c&&(re(f[c]),x(null!=f.length),Array.prototype.splice.call(f,c,1),0==f.length&&(delete a.g[b],a.h--)))):a&&(a=De(a))&&(b=a.g[b.toString()],a=-1,b&&(a=te(b,c,d,e)),(c=-1<a?b[a]:null)&&Ie(c))},Ie=function(a){if("number"!==
  90. typeof a&&a&&!a.T){var b=a.src;if(b&&b[oe])ue(b.h,a);else{var c=a.type,d=a.proxy;b.removeEventListener?b.removeEventListener(c,d,a.capture):b.detachEvent?b.detachEvent(Fe(c),d):b.addListener&&b.removeListener&&b.removeListener(d);xe--;(c=De(b))?(ue(c,a),0==c.h&&(c.src=null,b[ve]=null)):re(a)}}},Fe=function(a){return a in we?we[a]:we[a]="on"+a},Ge=function(a,b){if(a.T)a=!0;else{b=new ne(b,this);var c=a.listener,d=a.Z||a.src;a.X&&Ie(a);a=c.call(d,b)}return a},De=function(a){a=a[ve];return a instanceof
  91. se?a:null},Je="__closure_events_fn_"+(1E9*Math.random()>>>0),Ae=function(a){x(a,"Listener can not be null.");if("function"===typeof a)return a;x(a.handleEvent,"An object listener must have handleEvent method.");a[Je]||(a[Je]=function(b){return a.handleEvent(b)});return a[Je]};var V=function(){U.call(this);this.h=new se(this);this.J=this;this.o=null};wa(V,U);V.prototype[oe]=!0;V.prototype.G=function(a,b,c,d){ze(this,a,b,c,d)};V.prototype.removeEventListener=function(a,b,c,d){He(this,a,b,c,d)};
  92. var Le=function(a,b){Be(a);var c=a.o;if(c){var d=[];for(var e=1;c;c=c.o)d.push(c),x(1E3>++e,"infinite loop")}a=a.J;c=b.type||b;"string"===typeof b?b=new le(b,a):b instanceof le?b.target=b.target||a:(e=b,b=new le(c,a),hb(b,e));e=!0;if(d)for(var f=d.length-1;0<=f;f--){var g=b.g=d[f];e=Ke(g,c,!0,b)&&e}g=b.g=a;e=Ke(g,c,!0,b)&&e;e=Ke(g,c,!1,b)&&e;if(d)for(f=0;f<d.length;f++)g=b.g=d[f],e=Ke(g,c,!1,b)&&e};
  93. V.prototype.u=function(){V.L.u.call(this);if(this.h){var a=this.h,b=0,c;for(c in a.g){for(var d=a.g[c],e=0;e<d.length;e++)++b,re(d[e]);delete a.g[c];a.h--}}this.o=null};var Ke=function(a,b,c,d){b=a.h.g[String(b)];if(!b)return!0;b=b.concat();for(var e=!0,f=0;f<b.length;++f){var g=b[f];if(g&&!g.T&&g.capture==c){var h=g.listener,k=g.Z||g.src;g.X&&ue(a.h,g);e=!1!==h.call(k,d)&&e}}return e&&!d.defaultPrevented},Be=function(a){x(a.h,"Event target is not initialized. Did you call the superclass (goog.events.EventTarget) constructor?")};var W=function(){V.call(this);this.duration=this.currentTime=0;this.type=this.src="";this.playbackRate=1;this.ended=!1;this.paused=!0;this.m=[];this.g="";this.j=this.l=null};t(W,V);W.prototype.load=function(){Me({type:"videoCall",func:"load",src:this.src,mimetype:this.type,session:this.g})};W.prototype.D=function(){var a=this;this.paused=!1;Me({type:"videoCall",func:"play",src:this.src,mimetype:this.type,session:this.g});return new Promise(function(b,c){a.l=b;a.j=c})};
  94. W.prototype.v=function(){this.paused=!0;Me({type:"videoCall",func:"pause",session:this.g})};var Me=function(a){window.parent!=window&&window.parent.postMessage((new ad).m(a),"*")};W.prototype.s=function(a){return this.m.includes(a)?"maybe":""};W.prototype.I=function(a,b){switch(a){case "currentTime":if("number"!==typeof b)break;this.currentTime=b;Me({type:"videoCall",func:"currentTime",currentTime:b,session:this.g});break;case "src":this.src=b;break;case "type":this.type=b}};
  95. W.prototype.removeEventListener=function(a,b,c,d){null!=b&&He(this,a,b,c,d)};W.prototype.removeEventListener=W.prototype.removeEventListener;W.prototype.addEventListener=W.prototype.G;W.prototype.canPlayType=W.prototype.s;W.prototype.load=W.prototype.load;W.prototype.pause=W.prototype.v;W.prototype.play=W.prototype.D;W.prototype.setAttribute=W.prototype.I;var Ne=function(a){U.call(this);this.aa=a;this.D={}};wa(Ne,U);var Oe=[],Pe=function(a,b,c,d){Array.isArray(c)||(c&&(Oe[0]=c.toString()),c=Oe);for(var e=0;e<c.length;e++){var f=ze(b,c[e],d||a.handleEvent,!1,a.aa||a);if(!f)break;a.D[f.key]=f}},Qe=function(a){cb(a.D,function(b,c){this.D.hasOwnProperty(c)&&Ie(b)},a);a.D={}};Ne.prototype.u=function(){Ne.L.u.call(this);Qe(this)};Ne.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};var X=function(a,b){V.call(this);this.m=a||1;this.j=b||v;this.s=ua(this.D,this);this.v=Date.now()};wa(X,V);X.prototype.l=!1;X.prototype.g=null;X.prototype.D=function(){if(this.l){var a=Date.now()-this.v;0<a&&a<.8*this.m?this.g=this.j.setTimeout(this.s,this.m-a):(this.g&&(this.j.clearTimeout(this.g),this.g=null),Le(this,"tick"),this.l&&(Re(this),this.start()))}};X.prototype.start=function(){this.l=!0;this.g||(this.g=this.j.setTimeout(this.s,this.m),this.v=Date.now())};
  96. var Re=function(a){a.l=!1;a.g&&(a.j.clearTimeout(a.g),a.g=null)};X.prototype.u=function(){X.L.u.call(this);Re(this);delete this.j};var Se=function(a){this.h=this.u=this.l="";this.s=null;this.o=this.g="";this.m=!1;var b;a instanceof Se?(this.m=a.m,Te(this,a.l),this.u=a.u,this.h=a.h,Ue(this,a.s),this.g=a.g,Ve(this,We(a.j)),this.o=a.o):a&&(b=String(a).match(Ib))?(this.m=!1,Te(this,b[1]||"",!0),this.u=Xe(b[2]||""),this.h=Xe(b[3]||"",!0),Ue(this,b[4]),this.g=Xe(b[5]||"",!0),Ve(this,b[6]||"",!0),this.o=Xe(b[7]||"")):(this.m=!1,this.j=new Y(null,this.m))};
  97. Se.prototype.toString=function(){var a=[],b=this.l;b&&a.push(Ye(b,Ze,!0),":");var c=this.h;if(c||"file"==b)a.push("//"),(b=this.u)&&a.push(Ye(b,Ze,!0),"@"),a.push(encodeURIComponent(String(c)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),c=this.s,null!=c&&a.push(":",String(c));if(c=this.g)this.h&&"/"!=c.charAt(0)&&a.push("/"),a.push(Ye(c,"/"==c.charAt(0)?$e:af,!0));(c=this.j.toString())&&a.push("?",c);(c=this.o)&&a.push("#",Ye(c,bf));return a.join("")};
  98. Se.prototype.resolve=function(a){var b=new Se(this),c=!!a.l;c?Te(b,a.l):c=!!a.u;c?b.u=a.u:c=!!a.h;c?b.h=a.h:c=null!=a.s;var d=a.g;if(c)Ue(b,a.s);else if(c=!!a.g){if("/"!=d.charAt(0))if(this.h&&!this.g)d="/"+d;else{var e=b.g.lastIndexOf("/");-1!=e&&(d=b.g.substr(0,e+1)+d)}e=d;if(".."==e||"."==e)d="";else if(-1!=e.indexOf("./")||-1!=e.indexOf("/.")){d=0==e.lastIndexOf("/",0);e=e.split("/");for(var f=[],g=0;g<e.length;){var h=e[g++];"."==h?d&&g==e.length&&f.push(""):".."==h?((1<f.length||1==f.length&&
  99. ""!=f[0])&&f.pop(),d&&g==e.length&&f.push("")):(f.push(h),d=!0)}d=f.join("/")}else d=e}c?b.g=d:c=""!==a.j.toString();c?Ve(b,We(a.j)):c=!!a.o;c&&(b.o=a.o);return b};
  100. var Te=function(a,b,c){a.l=c?Xe(b,!0):b;a.l&&(a.l=a.l.replace(/:$/,""))},Ue=function(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.s=b}else a.s=null},Ve=function(a,b,c){b instanceof Y?(a.j=b,cf(a.j,a.m)):(c||(b=Ye(b,df)),a.j=new Y(b,a.m))},ef=function(){var a=new Se(window.location.href);return Xe(a.j.toString())},Xe=function(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""},Ye=function(a,b,c){return"string"===typeof a?(a=encodeURI(a).replace(b,
  101. ff),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null},ff=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)},Ze=/[#\/\?@]/g,af=/[#\?:]/g,$e=/[#\?]/g,df=/[#\?@]/g,bf=/#/g,Y=function(a,b){this.h=this.g=null;this.j=a||null;this.l=!!b},gf=function(a){a.g||(a.g=new Map,a.h=0,a.j&&Jb(a.j,function(b,c){a.add(decodeURIComponent(b.replace(/\+/g," ")),c)}))};
  102. Y.prototype.add=function(a,b){gf(this);this.j=null;a=hf(this,a);var c=this.g.get(a);c||this.g.set(a,c=[]);c.push(b);this.h=Ba(this.h)+1;return this};var jf=function(a,b){gf(a);b=hf(a,b);a.g.has(b)&&(a.j=null,a.h=Ba(a.h)-a.g.get(b).length,a.g.delete(b))},kf=function(a,b){gf(a);b=hf(a,b);return a.g.has(b)};Y.prototype.forEach=function(a,b){gf(this);this.g.forEach(function(c,d){c.forEach(function(e){a.call(b,e,d,this)},this)},this)};
  103. var lf=function(a,b){gf(a);var c=[];if("string"===typeof b)kf(a,b)&&(c=c.concat(a.g.get(hf(a,b))));else for(a=Array.from(a.g.values()),b=0;b<a.length;b++)c=c.concat(a[b]);return c};Y.prototype.set=function(a,b){gf(this);this.j=null;a=hf(this,a);kf(this,a)&&(this.h=Ba(this.h)-this.g.get(a).length);this.g.set(a,[b]);this.h=Ba(this.h)+1;return this};Y.prototype.get=function(a,b){if(!a)return b;a=lf(this,a);return 0<a.length?String(a[0]):b};
  104. Y.prototype.toString=function(){if(this.j)return this.j;if(!this.g)return"";for(var a=[],b=Array.from(this.g.keys()),c=0;c<b.length;c++){var d=b[c],e=encodeURIComponent(String(d));d=lf(this,d);for(var f=0;f<d.length;f++){var g=e;""!==d[f]&&(g+="="+encodeURIComponent(String(d[f])));a.push(g)}}return this.j=a.join("&")};
  105. var We=function(a){var b=new Y;b.j=a.j;a.g&&(b.g=new Map(a.g),b.h=a.h);return b},hf=function(a,b){b=String(b);a.l&&(b=b.toLowerCase());return b},cf=function(a,b){b&&!a.l&&(gf(a),a.j=null,a.g.forEach(function(c,d){var e=d.toLowerCase();d!=e&&(jf(this,d),jf(this,e),0<c.length&&(this.j=null,this.g.set(hf(this,e),Oa(c)),this.h=Ba(this.h)+c.length))},a));a.l=b};var Z=function(a,b){a=void 0===a?!1:a;b=void 0===b?null:b;Ne.call(this);this.$=a;this.g=null;this.J="";this.R=-2;this.v=this.N="";this.W=null;this.I=new W;this.h=this.o=null;this.V=[];this.M=this.O="";this.l=this.j=0;this.m=null!=b;this.G=null;this.m?Pe(this,window.parent,"message",this.U):Pe(this,window,"message",this.U);null!=b&&(this.m=!0,this.v=b,mf(this,"friendlyReady"))};t(Z,Ne);Z.prototype.ba=function(a,b){this.o=a;this.h=b};
  106. var nf=function(a,b){fe(function(d){var e={};d=(e.heavyAdInterventionEventType=d,e);mf(a,"heavyAdIntervention",d)});ge(function(d){a.s(Error(d.body.message));N(H(M),"havl","1")});a.O=b.clickThroughUrl;a.M=b.attributionParams;a.J=b.viewMode;a.R=b.desiredBitrate;a.N=b.creativeData;if(a.$)a.P();else{var c=a.m?b.adUrl:ef();a.m&&a.o&&(a.o.volume=b.volume);b=Hb("SCRIPT",{type:"text/javascript"});if("string"!==typeof c)throw Error("Expected a string");c=ob(c);ub(b,c);Pe(a,b,"load",a.P);Pe(a,b,"error",a.s);
  107. window.document.body.appendChild(b)}},mf=function(a,b,c){c=void 0===c?{}:c;window.parent!=window&&(c.type=b,c.session=a.v,a=(new ad).m(c),window.parent.postMessage(a,"*"))};
  108. Z.prototype.U=function(a){try{var b=JSON.parse(a.j.data)}catch(d){return}a=b.type;var c=b.session;if(!this.m&&"initAd"==a)this.v=c,this.I.g=this.v;else if(this.v!=c)return;switch(a){case "wrapperCall":a:{a=this.I;c=b.messageType;switch(c){case "ended":a.ended=!0;break;case "pause":a.paused=!0;break;case "play":a.paused=!1;a.ended=!1;break;case "playing":null!=a.l&&(a.l(),a.j=null,a.l=null);a.paused=!1;a.ended=!1;break;case "supportedMimeTypes":a.m=b.supportedMimeTypes;break a;case "timeupdate":a.duration=
  109. b.duration;a.currentTime=b.currentTime;break;case "loadedmetadata":a.duration=b.duration;break;case "autoplayDisallowed":null!=a.j&&(a.j(),a.j=null,a.l=null)}Le(a,{type:c})}break;case "initAd":nf(this,b);break;case "getAdDuration":of(this,"getAdDuration","returnDuration","duration");break;case "getAdRemainingTime":of(this,"getAdRemainingTime","returnRemainingTime","remainingTime");break;case "setAdVolume":null!=this.g&&this.g.setAdVolume(b.value);break;case "resizeAd":a=b.width;c=b.height;b=b.viewMode;
  110. this.o&&this.o.style&&(this.o.style.width=a+"px",this.o.style.height=c+"px");this.h&&this.h.style&&(this.j=c,this.l=a,this.h.style.height=c+"px",this.h.style.width=a+"px");if(null!=this.g)try{this.g.resizeAd(a,c,b)}catch(d){this.s(d)}break;case "friendlyReady":break;default:if(this.g){if("function"===typeof this.g[a])this.g[a]()}else this.V.push(a)}};
  111. Z.prototype.ga=function(){this.l=this.m?this.h.clientWidth||this.l:window.innerWidth;this.j=this.m?this.h.clientHeight||this.j:window.innerHeight;if(0!=this.l&&0!=this.j){this.h.style.height=this.j+"px";this.h.style.width=this.l+"px";try{this.g.resizeAd(this.l,this.j,this.J)}catch(a){this.s(a)}Re(this.G)}};Z.prototype.s=function(a){a=void 0===a?null:a;mf(this,"AdError",{message:null!=a?a.message:""})};
  112. var pf=function(a){cb(he,function(b){if("getAdCompanions"!=b&&!(b in this.g&&"function"===typeof this.g[b]))throw Error("missing functions "+b);},a);if("2.0"!=a.g.handshakeVersion("2.0"))throw Error("version");},qf=function(a){a.V.forEach(function(b){if("function"===typeof a.g[b])a.g[b]()})};
  113. Z.prototype.P=function(){var a=window.getVPAIDAd;try{this.g=a(),pf(this),qf(this)}catch(d){this.s(d);return}if(null==this.g)this.s();else{this.W=new ie(this.v,this.g,this.O,this.M);je(this.W);this.m?a={slot:this.h,videoSlot:this.o,videoSlotCanAutoPlay:!0}:(this.h=document.getElementById("slot"),null==this.h?a=window.document.body:(this.h.style.height=0!=window.innerHeight?window.innerHeight+"px":0!=this.j?this.j+"px":"100%",this.h.style.width=0!=window.innerWidth?window.innerWidth+"px":0!=this.l?
  114. this.l+"px":"100%",a=this.h),a={slot:a,videoSlot:this.I,videoSlotCanAutoPlay:!0});var b={AdParameters:this.N};try{this.j=this.m?this.h.clientHeight||this.j:window.innerHeight;this.l=this.m?this.h.clientWidth||this.l:window.innerWidth;if(0==this.j||0==this.l){this.G=new X(200);var c=va(ke,this.G);this.H?c():(this.F||(this.F=[]),this.F.push(c));Pe(this,this.G,"tick",this.ga);this.G.start()}this.g.initAd(this.l,this.j,this.J,this.R,b,a)}catch(d){this.s(d)}}};
  115. var of=function(a,b,c,d){var e=-1;try{e=a.g[b]()}catch(f){}"number"!==typeof e&&(e=-1);b={};b[d]=e;mf(a,c,b)};Z.prototype.initFriendly=Z.prototype.ba;window.VPAIDLoader=Z;}).call(this);