'use strict';var d,aa="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){if(c.get||c.set)throw new TypeError("ES3 does not support getters and setters.");a!=Array.prototype&&a!=Object.prototype&&(a[b]=c.value)},ba="undefined"!=typeof window&&window===this?this:"undefined"!=typeof global?global:this,da=function(){da=function(){};ba.Symbol||(ba.Symbol=ea)},fa=0,ea=function(a){return"jscomp_symbol_"+(a||"")+fa++},ha=function(){da();var a=ba.Symbol.iterator;a||(a=ba.Symbol.iterator=
ba.Symbol("iterator"));"function"!=typeof Array.prototype[a]&&aa(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return ga(this)}});ha=function(){}},ga=function(a){var b=0;return ia(function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}})},ia=function(a){ha();a={next:a};a[ba.Symbol.iterator]=function(){return this};return a},ja=function(a){ha();var b=a[Symbol.iterator];return b?b.call(a):ga(a)},ka=function(a){if(!(a instanceof Array)){a=ja(a);for(var b,c=[];!(b=a.next()).done;)c.push(b.value);
a=c}return a},la=function(a,b){function c(){}c.prototype=b.prototype;a.prototype=new c;a.prototype.constructor=a;for(var e in b)if(Object.defineProperties){var f=Object.getOwnPropertyDescriptor(b,e);f&&Object.defineProperty(a,e,f)}else a[e]=b[e]},ma=function(a,b){if(b){var c=ba;a=a.split(".");for(var e=0;e<a.length-1;e++){var f=a[e];f in c||(c[f]={});c=c[f]}a=a[a.length-1];e=c[a];b=b(e);b!=e&&null!=b&&aa(c,a,{configurable:!0,writable:!0,value:b})}};
ma("String.prototype.startsWith",function(a){return a?a:function(a,c){var b;if(null==this)throw new TypeError("The 'this' value for String.prototype.startsWith must not be null or undefined");if(a instanceof RegExp)throw new TypeError("First argument to String.prototype.startsWith must not be a regular expression");b=this+"";a+="";var f=b.length,g=a.length;c=Math.max(0,Math.min(c|0,b.length));for(var k=0;k<g&&c<f;)if(b[c++]!=a[k++])return!1;return k>=g}},"es6-impl","es3");
var na=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};
ma("WeakMap",function(a){function b(a){na(a,e)||aa(a,e,{value:{}})}function c(a){var c=Object[a];c&&(Object[a]=function(a){b(a);return c(a)})}if(function(){if(!a||!Object.seal)return!1;try{var b=Object.seal({}),c=Object.seal({}),e=new a([[b,2],[c,3]]);if(2!=e.get(b)||3!=e.get(c))return!1;e.delete(b);e.set(c,4);return!e.has(b)&&4==e.get(c)}catch(A){return!1}}())return a;var e="$jscomp_hidden_"+Math.random().toString().substring(2);c("freeze");c("preventExtensions");c("seal");var f=0,g=function(a){this.Rb=
(f+=Math.random()+1).toString();if(a){da();ha();a=ja(a);for(var b;!(b=a.next()).done;)b=b.value,this.set(b[0],b[1])}};g.prototype.set=function(a,c){b(a);if(!na(a,e))throw Error("WeakMap key fail: "+a);a[e][this.Rb]=c;return this};g.prototype.get=function(a){return na(a,e)?a[e][this.Rb]:void 0};g.prototype.has=function(a){return na(a,e)&&na(a[e],this.Rb)};g.prototype.delete=function(a){return na(a,e)&&na(a[e],this.Rb)?delete a[e][this.Rb]:!1};return g},"es6-impl","es3");
ma("Map",function(a){if(function(){if(!a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var b=Object.seal({x:4}),c=new a(ja([[b,"s"]]));if("s"!=c.get(b)||1!=c.size||c.get({x:4})||c.set({x:4},"t")!=c||2!=c.size)return!1;var e=c.entries(),f=e.next();if(f.done||f.value[0]!=b||"s"!=f.value[1])return!1;f=e.next();return f.done||4!=f.value[0].x||"t"!=f.value[1]||!e.next().done?!1:!0}catch(Q){return!1}}())return a;da();ha();var b=new WeakMap,c=function(a){this.Qe={};this.ob=g();this.size=
0;if(a){a=ja(a);for(var b;!(b=a.next()).done;)b=b.value,this.set(b[0],b[1])}};c.prototype.set=function(a,b){var c=e(this,a);c.list||(c.list=this.Qe[c.id]=[]);c.entry?c.entry.value=b:(c.entry={next:this.ob,previous:this.ob.previous,head:this.ob,key:a,value:b},c.list.push(c.entry),this.ob.previous.next=c.entry,this.ob.previous=c.entry,this.size++);return this};c.prototype.delete=function(a){a=e(this,a);return a.entry&&a.list?(a.list.splice(a.index,1),a.list.length||delete this.Qe[a.id],a.entry.previous.next=
a.entry.next,a.entry.next.previous=a.entry.previous,a.entry.head=null,this.size--,!0):!1};c.prototype.clear=function(){this.Qe={};this.ob=this.ob.previous=g();this.size=0};c.prototype.has=function(a){return!!e(this,a).entry};c.prototype.get=function(a){return(a=e(this,a).entry)&&a.value};c.prototype.entries=function(){return f(this,function(a){return[a.key,a.value]})};c.prototype.keys=function(){return f(this,function(a){return a.key})};c.prototype.values=function(){return f(this,function(a){return a.value})};
c.prototype.forEach=function(a,b){for(var c=this.entries(),e;!(e=c.next()).done;)e=e.value,a.call(b,e[1],e[0],this)};c.prototype[Symbol.iterator]=c.prototype.entries;var e=function(a,c){var e;e=c&&typeof c;"object"==e||"function"==e?b.has(c)?e=b.get(c):(e=""+ ++k,b.set(c,e)):e="p_"+c;var f=a.Qe[e];if(f&&na(a.Qe,e))for(a=0;a<f.length;a++){var g=f[a];if(c!==c&&g.key!==g.key||c===g.key)return{id:e,list:f,index:a,entry:g}}return{id:e,list:f,index:-1,entry:void 0}},f=function(a,b){var c=a.ob;return ia(function(){if(c){for(;c.head!=
a.ob;)c=c.previous;for(;c.next!=c.head;)return c=c.next,{done:!1,value:b(c)};c=null}return{done:!0,value:void 0}})},g=function(){var a={};return a.previous=a.next=a.head=a},k=0;return c},"es6-impl","es3");ma("Array.from",function(a){return a?a:function(a,c,e){ha();c=null!=c?c:function(a){return a};var b=[],g=a[Symbol.iterator];if("function"==typeof g)for(a=g.call(a);!(g=a.next()).done;)b.push(c.call(e,g.value));else for(var g=a.length,k=0;k<g;k++)b.push(c.call(e,a[k]));return b}},"es6-impl","es3");
ma("Set",function(a){if(function(){if(!a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var b=Object.seal({x:4}),e=new a(ja([b]));if(!e.has(b)||1!=e.size||e.add(b)!=e||1!=e.size||e.add({x:4})!=e||2!=e.size)return!1;var f=e.entries(),g=f.next();if(g.done||g.value[0]!=b||g.value[1]!=b)return!1;g=f.next();return g.done||g.value[0]==b||4!=g.value[0].x||g.value[1]!=g.value[0]?!1:f.next().done}catch(k){return!1}}())return a;da();ha();var b=function(a){this.la=new Map;if(a){a=ja(a);for(var b;!(b=
a.next()).done;)this.add(b.value)}this.size=this.la.size};b.prototype.add=function(a){this.la.set(a,a);this.size=this.la.size;return this};b.prototype.delete=function(a){a=this.la.delete(a);this.size=this.la.size;return a};b.prototype.clear=function(){this.la.clear();this.size=0};b.prototype.has=function(a){return this.la.has(a)};b.prototype.entries=function(){return this.la.entries()};b.prototype.values=function(){return this.la.values()};b.prototype[Symbol.iterator]=b.prototype.values;b.prototype.forEach=
function(a,b){var c=this;this.la.forEach(function(e){return a.call(b,e,e,c)})};return b},"es6-impl","es3");ma("Array.prototype.find",function(a){return a?a:function(a,c){a:{var b=this;b instanceof String&&(b=String(b));for(var f=b.length,g=0;g<f;g++){var k=b[g];if(a.call(c,k,g,b)){a=k;break a}}a=void 0}return a}},"es6-impl","es3");
var oa=oa||{},h=this,l=function(a){return void 0!==a},m=function(a,b,c){a=a.split(".");c=c||h;a[0]in c||!c.execScript||c.execScript("var "+a[0]);for(var e;a.length&&(e=a.shift());)!a.length&&l(b)?c[e]=b:c=c[e]?c[e]:c[e]={}},pa=function(a,b){a=a.split(".");b=b||h;for(var c;c=a.shift();)if(null!=b[c])b=b[c];else return null;return b},n=function(){},r=function(){throw Error("unimplemented abstract method");},qa=function(a){a.N=function(){return a.gH?a.gH:a.gH=new a}},ra=function(a){var b=typeof a;if("object"==
b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if("[object Window]"==c)return"object";if("[object Array]"==c||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==c||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null";else if("function"==
b&&"undefined"==typeof a.call)return"object";return b},sa=function(a){return null===a},ta=function(a){return"array"==ra(a)},ua=function(a){var b=ra(a);return"array"==b||"object"==b&&"number"==typeof a.length},t=function(a){return"string"==typeof a},u=function(a){return"number"==typeof a},va=function(a){return"function"==ra(a)},wa=function(a){var b=typeof a;return"object"==b&&null!=a||"function"==b},xa="closure_uid_"+(1E9*Math.random()>>>0),ya=0,za=function(a,b,c){return a.call.apply(a.bind,arguments)},
Aa=function(a,b,c){if(!a)throw Error();if(2<arguments.length){var e=Array.prototype.slice.call(arguments,2);return function(){var c=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(c,e);return a.apply(b,c)}}return function(){return a.apply(b,arguments)}},v=function(a,b,c){v=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?za:Aa;return v.apply(null,arguments)},Ba=function(a,b){var c=Array.prototype.slice.call(arguments,1);return function(){var b=
c.slice();b.push.apply(b,arguments);return a.apply(this,b)}},w=Date.now||function(){return+new Date},x=function(a,b){function c(){}c.prototype=b.prototype;a.S=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.oha=function(a,c,g){for(var e=Array(arguments.length-2),f=2;f<arguments.length;f++)e[f-2]=arguments[f];return b.prototype[c].apply(a,e)}};var chrome=chrome||window.chrome||{};chrome.cast=chrome.cast||{};chrome.cast.media=chrome.cast.media||{};var Ca=function(a){if(Error.captureStackTrace)Error.captureStackTrace(this,Ca);else{var b=Error().stack;b&&(this.stack=b)}a&&(this.message=String(a))};x(Ca,Error);Ca.prototype.name="CustomError";var Da=function(a,b){return 0==a.lastIndexOf(b,0)},Ea=function(a,b){for(var c=a.split("%s"),e="",f=Array.prototype.slice.call(arguments,1);f.length&&1<c.length;)e+=c.shift()+f.shift();return e+c.join("%s")},Fa=function(a){return/^[\s\xa0]*$/.test(a)},Ga=String.prototype.trim?function(a){return a.trim()}:function(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")},Ha=function(a,b){a=String(a).toLowerCase();b=String(b).toLowerCase();return a<b?-1:a==b?0:1},Ia=/&/g,Ja=/</g,Ka=/>/g,La=/"/g,Ma=/'/g,Na=/\x00/g,
Oa=/[\x00&<>"']/,Pa=function(a){return null==a?"":String(a)},Qa=function(a){return Array.prototype.join.call(arguments,"")},Ra=function(){return Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^w()).toString(36)},Ta=function(a,b){var c=0;a=Ga(String(a)).split(".");b=Ga(String(b)).split(".");for(var e=Math.max(a.length,b.length),f=0;0==c&&f<e;f++){var g=a[f]||"",k=b[f]||"";do{g=/(\d*)(\D*)(.*)/.exec(g)||["","","",""];k=/(\d*)(\D*)(.*)/.exec(k)||["","",
"",""];if(0==g[0].length&&0==k[0].length)break;c=Sa(0==g[1].length?0:parseInt(g[1],10),0==k[1].length?0:parseInt(k[1],10))||Sa(0==g[2].length,0==k[2].length)||Sa(g[2],k[2]);g=g[3];k=k[3]}while(0==c)}return c},Sa=function(a,b){return a<b?-1:a>b?1:0},Ua=function(a){var b=Number(a);return 0==b&&Fa(a)?NaN:b},Va=function(a,b,c){a=a.split(b);for(var e=[];0<c&&a.length;)e.push(a.shift()),c--;a.length&&e.push(a.join(b));return e};var Wa=function(a,b){b.unshift(a);Ca.call(this,Ea.apply(null,b));b.shift()};x(Wa,Ca);Wa.prototype.name="AssertionError";var y=function(a,b){throw new Wa("Failure"+(a?": "+a:""),Array.prototype.slice.call(arguments,1));};var Xa=function(a){return a[a.length-1]},Ya=Array.prototype.indexOf?function(a,b,c){return Array.prototype.indexOf.call(a,b,c)}:function(a,b,c){c=null==c?0:0>c?Math.max(0,a.length+c):c;if(t(a))return t(b)&&1==b.length?a.indexOf(b,c):-1;for(;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1},Za=Array.prototype.lastIndexOf?function(a,b,c){return Array.prototype.lastIndexOf.call(a,b,null==c?a.length-1:c)}:function(a,b,c){c=null==c?a.length-1:c;0>c&&(c=Math.max(0,a.length+c));if(t(a))return t(b)&&
1==b.length?a.lastIndexOf(b,c):-1;for(;0<=c;c--)if(c in a&&a[c]===b)return c;return-1},z=Array.prototype.forEach?function(a,b,c){Array.prototype.forEach.call(a,b,c)}:function(a,b,c){for(var e=a.length,f=t(a)?a.split(""):a,g=0;g<e;g++)g in f&&b.call(c,f[g],g,a)},$a=function(a,b,c){for(var e=t(a)?a.split(""):a,f=a.length-1;0<=f;--f)f in e&&b.call(c,e[f],f,a)},ab=Array.prototype.filter?function(a,b,c){return Array.prototype.filter.call(a,b,c)}:function(a,b,c){for(var e=a.length,f=[],g=0,k=t(a)?a.split(""):
a,p=0;p<e;p++)if(p in k){var q=k[p];b.call(c,q,p,a)&&(f[g++]=q)}return f},B=Array.prototype.map?function(a,b,c){return Array.prototype.map.call(a,b,c)}:function(a,b,c){for(var e=a.length,f=Array(e),g=t(a)?a.split(""):a,k=0;k<e;k++)k in g&&(f[k]=b.call(c,g[k],k,a));return f},bb=Array.prototype.some?function(a,b,c){return Array.prototype.some.call(a,b,c)}:function(a,b,c){for(var e=a.length,f=t(a)?a.split(""):a,g=0;g<e;g++)if(g in f&&b.call(c,f[g],g,a))return!0;return!1},cb=Array.prototype.every?function(a,
b,c){return Array.prototype.every.call(a,b,c)}:function(a,b,c){for(var e=a.length,f=t(a)?a.split(""):a,g=0;g<e;g++)if(g in f&&!b.call(c,f[g],g,a))return!1;return!0},eb=function(a,b,c){b=db(a,b,c);return 0>b?null:t(a)?a.charAt(b):a[b]},db=function(a,b,c){for(var e=a.length,f=t(a)?a.split(""):a,g=0;g<e;g++)if(g in f&&b.call(c,f[g],g,a))return g;return-1},fb=function(a,b,c){a:{for(var e=t(a)?a.split(""):a,f=a.length-1;0<=f;f--)if(f in e&&b.call(c,e[f],f,a)){b=f;break a}b=-1}return 0>b?null:t(a)?a.charAt(b):
a[b]},gb=function(a,b){return 0<=Ya(a,b)},hb=function(a){if(!ta(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0},jb=function(a,b,c){var e;2==arguments.length||0>(e=Ya(a,c))?a.push(b):ib(a,e,0,b)},lb=function(a,b){b=Ya(a,b);var c;(c=0<=b)&&kb(a,b);return c},kb=function(a,b){return 1==Array.prototype.splice.call(a,b,1).length},mb=function(a,b,c){b=db(a,b,c);return 0<=b?(kb(a,b),!0):!1},nb=function(a,b,c){var e=0;$a(a,function(f,g){b.call(c,f,g,a)&&kb(a,g)&&e++});return e},ob=function(a){return Array.prototype.concat.apply(Array.prototype,
arguments)},pb=function(a){var b=a.length;if(0<b){for(var c=Array(b),e=0;e<b;e++)c[e]=a[e];return c}return[]},qb=function(a,b){for(var c=1;c<arguments.length;c++){var e=arguments[c];if(ua(e)){var f=a.length||0,g=e.length||0;a.length=f+g;for(var k=0;k<g;k++)a[f+k]=e[k]}else a.push(e)}},ib=function(a,b,c,e){return Array.prototype.splice.apply(a,rb(arguments,1))},rb=function(a,b,c){return 2>=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)},tb=function(a,b){a.sort(b||
sb)},ub=function(a,b,c){var e=c||sb;tb(a,function(a,c){return e(b(a),b(c))})},vb=function(a,b,c){ub(a,function(a){return a[b]},c)},xb=function(a,b,c){if(!ua(a)||!ua(b)||a.length!=b.length)return!1;var e=a.length;c=c||wb;for(var f=0;f<e;f++)if(!c(a[f],b[f]))return!1;return!0},sb=function(a,b){return a>b?1:a<b?-1:0},wb=function(a,b){return a===b},yb=function(a,b,c){var e={};z(a,function(f,g){e[b.call(c,f,g,a)]=f});return e};var zb=function(a,b,c){for(var e in a)b.call(c,a[e],e,a)},Ab=function(a,b,c){for(var e in a)if(b.call(c,a[e],e,a))return!0;return!1},Bb=function(a){var b=[],c=0,e;for(e in a)b[c++]=a[e];return b},Cb=function(a){var b=[],c=0,e;for(e in a)b[c++]=e;return b},Db=function(a,b){for(var c in a)if(a[c]==b)return!0;return!1},Eb=function(a,b,c){for(var e in a)if(b.call(c,a[e],e,a))return e},Fb=function(a){for(var b in a)return!1;return!0},Hb=function(a){var b={},c;for(c in a)b[c]=a[c];return b},Ib=function(a){var b=
ra(a);if("object"==b||"array"==b){if(va(a.clone))return a.clone();var b="array"==b?[]:{},c;for(c in a)b[c]=Ib(a[c]);return b}return a},Jb=function(a){var b={},c;for(c in a)b[a[c]]=c;return b},Kb="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),Lb=function(a,b){for(var c,e,f=1;f<arguments.length;f++){e=arguments[f];for(c in e)a[c]=e[c];for(var g=0;g<Kb.length;g++)c=Kb[g],Object.prototype.hasOwnProperty.call(e,c)&&(a[c]=e[c])}};var Mb=/<[^>]*>|&[^;]+;/g,Nb=function(a,b){return b?a.replace(Mb,""):a},Ob=/[A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]/,Pb=/^[^A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]*[\u0591-\u06ef\u06fa-\u07ff\u200f\ufb1d-\ufdff\ufe70-\ufefc]/,Qb=/^http:\/\/.*/,Rb=/\s+/,Sb=/[\d\u06f0-\u06f9]/;var Tb;a:{var Ub=h.navigator;if(Ub){var Xb=Ub.userAgent;if(Xb){Tb=Xb;break a}}Tb=""}var C=function(a){return-1!=Tb.indexOf(a)};var Yb=function(){return(C("Chrome")||C("CriOS"))&&!C("Edge")};var $b=function(){this.TA="";this.hP=Zb};$b.prototype.Tk=!0;$b.prototype.toString=function(){return"Const{"+this.TA+"}"};var Zb={};var bc=function(){this.DJ="";this.dP=ac};bc.prototype.Tk=!0;var ac={};bc.prototype.toString=function(){return"SafeStyle{"+this.DJ+"}"};var cc=function(a){if(a instanceof bc&&a.constructor===bc&&a.dP===ac)return a.DJ;y("expected object of type SafeStyle, got '"+a+"' of type "+ra(a));return"type_error:SafeStyle"};var ec=function(){this.yo="";this.eP=dc};ec.prototype.Tk=!0;ec.prototype.Jc=function(){return 1};ec.prototype.toString=function(){return"SafeUrl{"+this.yo+"}"};var fc=function(a){if(a instanceof ec&&a.constructor===ec&&a.eP===dc)return a.yo;y("expected object of type SafeUrl, got '"+a+"' of type "+ra(a));return"type_error:SafeUrl"},dc={};var hc=function(){this.kz="";this.mP=gc};hc.prototype.Tk=!0;hc.prototype.Jc=function(){return 1};hc.prototype.toString=function(){return"TrustedResourceUrl{"+this.kz+"}"};var ic=function(a){if(a instanceof hc&&a.constructor===hc&&a.mP===gc)return a.kz;y("expected object of type TrustedResourceUrl, got '"+a+"' of type "+ra(a));return"type_error:TrustedResourceUrl"},gc={},jc=function(a){var b=new hc;b.kz=a;return b};var lc=function(){this.yo="";this.bP=kc;this.ee=null};lc.prototype.Jc=function(){return this.ee};lc.prototype.Tk=!0;lc.prototype.toString=function(){return"SafeHtml{"+this.yo+"}"};var mc=function(a){if(a instanceof lc&&a.constructor===lc&&a.bP===kc)return a.yo;y("expected object of type SafeHtml, got '"+a+"' of type "+ra(a));return"type_error:SafeHtml"},kc={};var oc=function(){this.CJ="";this.cP=nc};oc.prototype.Tk=!0;var nc={};oc.prototype.toString=function(){return"SafeScript{"+this.CJ+"}"};var pc=function(a){if(a instanceof oc&&a.constructor===oc&&a.cP===nc)return a.CJ;y("expected object of type SafeScript, got '"+a+"' of type "+ra(a));return"type_error:SafeScript"};var qc=function(a){return function(){return a}},rc=qc(!0),sc=function(a){return a},tc=function(a){return function(){return!a.apply(this,arguments)}};var uc="StopIteration"in h?h.StopIteration:{message:"StopIteration",stack:""},vc=function(){};vc.prototype.next=function(){throw uc;};vc.prototype.Zd=function(){return this};
var wc=function(a){if(a instanceof vc)return a;if("function"==typeof a.Zd)return a.Zd(!1);if(ua(a)){var b=0,c=new vc;c.next=function(){for(;;){if(b>=a.length)throw uc;if(b in a)return a[b++];b++}};return c}throw Error("Not implemented");},xc=function(a,b,c){if(ua(a))try{z(a,b,c)}catch(e){if(e!==uc)throw e;}else{a=wc(a);try{for(;;)b.call(c,a.next(),void 0,a)}catch(e){if(e!==uc)throw e;}}},yc=function(a,b,c){a=wc(a);try{for(;;)if(b.call(c,a.next(),void 0,a))return!0}catch(e){if(e!==uc)throw e;}return!1},
zc=function(a){if(ua(a))return pb(a);a=wc(a);var b=[];xc(a,function(a){b.push(a)});return b};var D=function(a,b){this.la={};this.Fa=[];this.Fj=this.Ua=0;var c=arguments.length;if(1<c){if(c%2)throw Error("Uneven number of arguments");for(var e=0;e<c;e+=2)this.set(arguments[e],arguments[e+1])}else a&&this.addAll(a)};d=D.prototype;d.R=function(){return this.Ua};d.C=function(){this.Vj();for(var a=[],b=0;b<this.Fa.length;b++)a.push(this.la[this.Fa[b]]);return a};d.ib=function(){this.Vj();return this.Fa.concat()};d.xa=function(a){return Ac(this.la,a)};
d.bk=function(a){for(var b=0;b<this.Fa.length;b++){var c=this.Fa[b];if(Ac(this.la,c)&&this.la[c]==a)return!0}return!1};d.equals=function(a,b){if(this===a)return!0;if(this.Ua!=a.R())return!1;b=b||Bc;this.Vj();for(var c,e=0;c=this.Fa[e];e++)if(!b(this.get(c),a.get(c)))return!1;return!0};var Bc=function(a,b){return a===b};d=D.prototype;d.Tb=function(){return 0==this.Ua};d.clear=function(){this.la={};this.Fj=this.Ua=this.Fa.length=0};
d.remove=function(a){return Ac(this.la,a)?(delete this.la[a],this.Ua--,this.Fj++,this.Fa.length>2*this.Ua&&this.Vj(),!0):!1};d.Vj=function(){if(this.Ua!=this.Fa.length){for(var a=0,b=0;a<this.Fa.length;){var c=this.Fa[a];Ac(this.la,c)&&(this.Fa[b++]=c);a++}this.Fa.length=b}if(this.Ua!=this.Fa.length){for(var e={},b=a=0;a<this.Fa.length;)c=this.Fa[a],Ac(e,c)||(this.Fa[b++]=c,e[c]=1),a++;this.Fa.length=b}};d.get=function(a,b){return Ac(this.la,a)?this.la[a]:b};
d.set=function(a,b){Ac(this.la,a)||(this.Ua++,this.Fa.push(a),this.Fj++);this.la[a]=b};d.addAll=function(a){var b;a instanceof D?(b=a.ib(),a=a.C()):(b=Cb(a),a=Bb(a));for(var c=0;c<b.length;c++)this.set(b[c],a[c])};d.forEach=function(a,b){for(var c=this.ib(),e=0;e<c.length;e++){var f=c[e],g=this.get(f);a.call(b,g,f,this)}};d.clone=function(){return new D(this)};d.b=function(){this.Vj();for(var a={},b=0;b<this.Fa.length;b++){var c=this.Fa[b];a[c]=this.la[c]}return a};d.yF=function(){return this.Zd(!0)};
d.qx=function(){return this.Zd(!1)};d.Zd=function(a){this.Vj();var b=0,c=this.Fj,e=this,f=new vc;f.next=function(){if(c!=e.Fj)throw Error("The map has changed since the iterator was created");if(b>=e.Fa.length)throw uc;var f=e.Fa[b++];return a?f:e.la[f]};return f};var Ac=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};var Cc=function(a){if(a.R&&"function"==typeof a.R)a=a.R();else if(ua(a)||t(a))a=a.length;else{var b=0,c;for(c in a)b++;a=b}return a},Dc=function(a){if(a.C&&"function"==typeof a.C)return a.C();if(t(a))return a.split("");if(ua(a)){for(var b=[],c=a.length,e=0;e<c;e++)b.push(a[e]);return b}return Bb(a)},Ec=function(a){if(a.ib&&"function"==typeof a.ib)return a.ib();if(!a.C||"function"!=typeof a.C){if(ua(a)||t(a)){var b=[];a=a.length;for(var c=0;c<a;c++)b.push(c);return b}return Cb(a)}},Fc=function(a){return a.Tb&&
"function"==typeof a.Tb?a.Tb():ua(a)||t(a)?0==a.length:Fb(a)},Gc=function(a,b,c){if(a.forEach&&"function"==typeof a.forEach)a.forEach(b,c);else if(ua(a)||t(a))z(a,b,c);else for(var e=Ec(a),f=Dc(a),g=f.length,k=0;k<g;k++)b.call(c,f[k],e&&e[k],a)},Hc=function(a,b,c){if("function"==typeof a.map)return a.map(b,c);if(ua(a)||t(a))return B(a,b,c);var e,f=Ec(a),g=Dc(a),k=g.length;if(f){e={};for(var p=0;p<k;p++)e[f[p]]=b.call(c,g[p],f[p],a)}else for(e=[],p=0;p<k;p++)e[p]=b.call(c,g[p],void 0,a);return e},
Ic=function(a,b,c){if("function"==typeof a.every)return a.every(b,c);if(ua(a)||t(a))return cb(a,b,c);for(var e=Ec(a),f=Dc(a),g=f.length,k=0;k<g;k++)if(!b.call(c,f[k],e&&e[k],a))return!1;return!0};var Jc=function(a){this.la=new D;a&&this.addAll(a)},Kc=function(a){var b=typeof a;return"object"==b&&a||"function"==b?"o"+(a[xa]||(a[xa]=++ya)):b.substr(0,1)+a};d=Jc.prototype;d.R=function(){return this.la.R()};d.add=function(a){this.la.set(Kc(a),a)};d.addAll=function(a){a=Dc(a);for(var b=a.length,c=0;c<b;c++)this.add(a[c])};d.removeAll=function(a){a=Dc(a);for(var b=a.length,c=0;c<b;c++)this.remove(a[c])};d.remove=function(a){return this.la.remove(Kc(a))};d.clear=function(){this.la.clear()};
d.Tb=function(){return this.la.Tb()};d.contains=function(a){return this.la.xa(Kc(a))};d.C=function(){return this.la.C()};d.clone=function(){return new Jc(this)};d.equals=function(a){return this.R()==Cc(a)&&this.H_(a)};d.H_=function(a){var b=Cc(a);if(this.R()>b)return!1;!(a instanceof Jc)&&5<b&&(a=new Jc(a));return Ic(this,function(b){var c=a;return c.contains&&"function"==typeof c.contains?c.contains(b):c.bk&&"function"==typeof c.bk?c.bk(b):ua(c)||t(c)?gb(c,b):Db(c,b)})};d.Zd=function(){return this.la.Zd(!1)};var Lc=function(){return C("iPhone")&&!C("iPod")&&!C("iPad")};var Mc=function(a){Mc[" "](a);return a};Mc[" "]=n;var Nc=function(a,b){try{return Mc(a[b]),!0}catch(c){}return!1},Oc=function(a,b,c,e){e=e?e(b):b;return Object.prototype.hasOwnProperty.call(a,e)?a[e]:a[e]=c(b)};var Pc=C("Opera"),Qc=C("Trident")||C("MSIE"),Rc=C("Edge"),Sc=C("Gecko")&&!(-1!=Tb.toLowerCase().indexOf("webkit")&&!C("Edge"))&&!(C("Trident")||C("MSIE"))&&!C("Edge"),Tc=-1!=Tb.toLowerCase().indexOf("webkit")&&!C("Edge"),Uc=Tc&&C("Mobile"),Vc=h.navigator||null,Wc=Vc&&Vc.platform||"",Xc=C("Macintosh"),Yc=C("Windows"),Zc=C("Linux")||C("CrOS"),$c=C("Android"),ad=Lc(),bd=C("iPad"),cd=C("iPod"),dd=function(){var a=h.document;return a?a.documentMode:void 0},ed;
a:{var fd="",gd=function(){var a=Tb;if(Sc)return/rv\:([^\);]+)(\)|;)/.exec(a);if(Rc)return/Edge\/([\d\.]+)/.exec(a);if(Qc)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(Tc)return/WebKit\/(\S+)/.exec(a);if(Pc)return/(?:Version)[ \/]?(\S+)/.exec(a)}();gd&&(fd=gd?gd[1]:"");if(Qc){var hd=dd();if(null!=hd&&hd>parseFloat(fd)){ed=String(hd);break a}}ed=fd}
var id=ed,jd={},kd=function(a){return Oc(jd,a,function(){return 0<=Ta(id,a)})},ld=h.document,nd=ld&&Qc?dd()||("CSS1Compat"==ld.compatMode?parseInt(id,10):5):void 0;var od=function(a,b,c){c=c||h;var e=c.onerror,f=!!b;Tc&&!kd("535.3")&&(f=!f);c.onerror=function(b,c,p,q,A){e&&e(b,c,p,q,A);a({message:b,fileName:c,S_:p,Dia:q,error:A});return f}},pd=function(a){for(var b=[],c=0;c<a.length;c++)ta(a[c])?b.push(pd(a[c])):b.push(a[c]);return"[ "+b.join(", ")+" ]"},qd=function(a){var b;b=Error();if(Error.captureStackTrace)Error.captureStackTrace(b,qd),b=String(b.stack);else{try{throw b;}catch(f){b=f}b=(b=b.stack)?String(b):null}if(b)return b;b=[];for(var c=arguments.callee.caller,
e=0;c&&(!a||e<a);){b.push(rd(c));b.push("()\n");try{c=c.caller}catch(f){b.push("[exception trying to get caller]\n");break}e++;if(50<=e){b.push("[...long stack...]");break}}a&&e>=a?b.push("[...reached max depth limit...]"):b.push("[end]");return b.join("")},rd=function(a){if(sd[a])return sd[a];a=String(a);if(!sd[a]){var b=/function ([^\(]+)/.exec(a);sd[a]=b?b[1]:"[Anonymous]"}return sd[a]},sd={};var td=function(a,b,c,e,f){this.reset(a,b,c,e,f)};td.prototype.gj=0;td.prototype.Tq=null;var ud=0;td.prototype.reset=function(a,b,c,e,f){this.gj="number"==typeof f?f:ud++;this.dN=e||w();this.Di=a;this.R0=b;this.$H=c;delete this.Tq};td.prototype.i8=function(a){this.Tq=a};td.prototype.Nl=function(a){this.Di=a};td.prototype.getMessage=function(){return this.R0};var vd=function(a){this.Ib=a;this.Ok=this.Cv=this.Di=this.Jb=null},wd=function(a,b){this.name=a;this.value=b};wd.prototype.toString=function(){return this.name};var xd=new wd("OFF",Infinity),yd=new wd("SHOUT",1200),zd=new wd("SEVERE",1E3),Ad=new wd("WARNING",900),Bd=new wd("INFO",800),Cd=new wd("CONFIG",700),Dd=new wd("FINE",500),Ed=new wd("FINER",400),Fd=new wd("ALL",0);d=vd.prototype;d.getName=function(){return this.Ib};d.XB=function(a){this.Ok||(this.Ok=[]);this.Ok.push(a)};
d.q5=function(a){var b=this.Ok;return!!b&&lb(b,a)};d.getParent=function(){return this.Jb};d.getChildren=function(){this.Cv||(this.Cv={});return this.Cv};d.Nl=function(a){this.Di=a};d.iF=function(){if(this.Di)return this.Di;if(this.Jb)return this.Jb.iF();y("Root logger has no level set.");return null};d.rH=function(a){return a.value>=this.iF().value};d.log=function(a,b,c){this.rH(a)&&(va(b)&&(b=b()),this.MS(this.qW(a,b,c)))};d.qW=function(a,b,c){a=new td(a,String(b),this.Ib);c&&a.i8(c);return a};
d.Jt=function(a,b){this.log(zd,a,b)};d.da=function(a,b){this.log(Ad,a,b)};d.info=function(a,b){this.log(Bd,a,b)};d.config=function(a,b){this.log(Cd,a,b)};d.Db=function(a,b){this.log(Dd,a,b)};d.mE=function(a,b){this.log(Ed,a,b)};d.MS=function(a){var b="log:"+a.getMessage();h.console&&(h.console.timeStamp?h.console.timeStamp(b):h.console.markTimeline&&h.console.markTimeline(b));h.msWriteProfilerMark&&h.msWriteProfilerMark(b);for(b=this;b;)b.WQ(a),b=b.getParent()};
d.WQ=function(a){if(this.Ok)for(var b=0,c;c=this.Ok[b];b++)c(a)};d.D9=function(a){this.Jb=a};d.IP=function(a,b){this.getChildren()[a]=b};var Gd={},Hd=null,Id=function(){Hd||(Hd=new vd(""),Gd[""]=Hd,Hd.Nl(Cd))},Jd=function(){Id();return Hd},Kd=function(a){Id();var b;if(!(b=Gd[a])){b=new vd(a);var c=a.lastIndexOf("."),e=a.substr(c+1),c=Kd(a.substr(0,c));c.IP(e,b);b.D9(c);Gd[a]=b}return b},Ld=function(a){return function(b){(a||Jd()).Jt("Error: "+b.message+" ("+b.fileName+" @ Line: "+b.S_+")")}};var E=function(a,b){a=Kd(a);b&&a&&a.Nl(b);return a},Md=function(a,b,c,e){a&&a.log(b,c,e)},F=function(a,b,c){a&&a.Jt(b,c)},G=function(a,b,c){a&&a.da(b,c)},H=function(a,b,c){a&&a.info(b,c)},I=function(a,b,c){a&&a.Db(b,c)};var Nd=function(){this.nk=this.nk;this.Oi=this.Oi};d=Nd.prototype;d.nk=!1;d.isDisposed=function(){return this.nk};d.mb=function(){this.nk||(this.nk=!0,this.L())};d.ha=function(a){this.cC(Ba(Od,a))};d.cC=function(a,b){this.nk?l(b)?a.call(b):a():(this.Oi||(this.Oi=[]),this.Oi.push(l(b)?v(a,b):a))};d.L=function(){if(this.Oi)for(;this.Oi.length;)this.Oi.shift()()};var Od=function(a){a&&"function"==typeof a.mb&&a.mb()};var J=function(a,b){this.type=a;this.currentTarget=this.target=b;this.defaultPrevented=this.Vi=!1;this.tK=!0};J.prototype.stopPropagation=function(){this.Vi=!0};J.prototype.preventDefault=function(){this.defaultPrevented=!0;this.tK=!1};var Pd=!Qc||9<=Number(nd),Qd=Qc&&!kd("9");!Tc||kd("528");Sc&&kd("1.9b")||Qc&&kd("8")||Pc&&kd("9.5")||Tc&&kd("528");Sc&&!kd("8")||Qc&&kd("9");var Rd=function(a){return Tc?"webkit"+a:Pc?"o"+a.toLowerCase():a.toLowerCase()},Sd=Rd("AnimationStart"),Td=Rd("AnimationEnd"),Ud=Rd("AnimationIteration"),Vd=Rd("TransitionEnd");var Wd=function(a,b){J.call(this,a?a.type:"");this.relatedTarget=this.currentTarget=this.target=null;this.charCode=this.keyCode=this.button=this.screenY=this.screenX=this.clientY=this.clientX=this.offsetY=this.offsetX=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.rk=this.state=null;a&&this.init(a,b)};x(Wd,J);
Wd.prototype.init=function(a,b){var c=this.type=a.type,e=a.changedTouches?a.changedTouches[0]:null;this.target=a.target||a.srcElement;this.currentTarget=b;(b=a.relatedTarget)?Sc&&(Nc(b,"nodeName")||(b=null)):"mouseover"==c?b=a.fromElement:"mouseout"==c&&(b=a.toElement);this.relatedTarget=b;null===e?(this.offsetX=Tc||void 0!==a.offsetX?a.offsetX:a.layerX,this.offsetY=Tc||void 0!==a.offsetY?a.offsetY:a.layerY,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.clientX=void 0!==e.clientX?e.clientX:e.pageX,this.clientY=void 0!==e.clientY?e.clientY:e.pageY,this.screenX=e.screenX||0,this.screenY=e.screenY||0);this.button=a.button;this.keyCode=a.keyCode||0;this.charCode=a.charCode||("keypress"==c?a.keyCode:0);this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.state=a.state;this.rk=a;a.defaultPrevented&&this.preventDefault()};
Wd.prototype.stopPropagation=function(){Wd.S.stopPropagation.call(this);this.rk.stopPropagation?this.rk.stopPropagation():this.rk.cancelBubble=!0};Wd.prototype.preventDefault=function(){Wd.S.preventDefault.call(this);var a=this.rk;if(a.preventDefault)a.preventDefault();else if(a.returnValue=!1,Qd)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};var Xd="closure_listenable_"+(1E6*Math.random()|0),Yd=function(a){return!(!a||!a[Xd])},Zd=0;var $d=function(a,b,c,e,f,g){this.listener=a;this.proxy=b;this.src=c;this.type=e;this.capture=!!f;this.Lc=g;this.key=++Zd;this.removed=this.nq=!1};$d.prototype.ts=function(){this.removed=!0;this.Lc=this.src=this.proxy=this.listener=null};var ae=function(a){this.src=a;this.Wb={};this.xp=0};d=ae.prototype;d.add=function(a,b,c,e,f){var g=a.toString();a=this.Wb[g];a||(a=this.Wb[g]=[],this.xp++);var k=be(a,b,e,f);-1<k?(b=a[k],c||(b.nq=!1)):(b=new $d(b,null,this.src,g,!!e,f),b.nq=c,a.push(b));return b};d.remove=function(a,b,c,e){a=a.toString();if(!(a in this.Wb))return!1;var f=this.Wb[a];b=be(f,b,c,e);return-1<b?(f[b].ts(),kb(f,b),0==f.length&&(delete this.Wb[a],this.xp--),!0):!1};
d.bK=function(a){var b=a.type;if(!(b in this.Wb))return!1;var c=lb(this.Wb[b],a);c&&(a.ts(),0==this.Wb[b].length&&(delete this.Wb[b],this.xp--));return c};d.removeAll=function(a){a=a&&a.toString();var b=0,c;for(c in this.Wb)if(!a||c==a){for(var e=this.Wb[c],f=0;f<e.length;f++)++b,e[f].ts();delete this.Wb[c];this.xp--}return b};d.vn=function(a,b,c,e){a=this.Wb[a.toString()];var f=-1;a&&(f=be(a,b,c,e));return-1<f?a[f]:null};
d.hasListener=function(a,b){var c=l(a),e=c?a.toString():"",f=l(b);return Ab(this.Wb,function(a){for(var g=0;g<a.length;++g)if(!(c&&a[g].type!=e||f&&a[g].capture!=b))return!0;return!1})};var be=function(a,b,c,e){for(var f=0;f<a.length;++f){var g=a[f];if(!g.removed&&g.listener==b&&g.capture==!!c&&g.Lc==e)return f}return-1};var ce="closure_lm_"+(1E6*Math.random()|0),de={},ee=0,fe=function(a,b,c,e,f){if(ta(b)){for(var g=0;g<b.length;g++)fe(a,b[g],c,e,f);return null}c=ge(c);return Yd(a)?a.listen(b,c,e,f):he(a,b,c,!1,e,f)},he=function(a,b,c,e,f,g){if(!b)throw Error("Invalid event type");var k=!!f,p=ie(a);p||(a[ce]=p=new ae(a));c=p.add(b,c,e,f,g);if(c.proxy)return c;e=je();c.proxy=e;e.src=a;e.listener=c;if(a.addEventListener)a.addEventListener(b.toString(),e,k);else if(a.attachEvent)a.attachEvent(ke(b.toString()),e);else throw Error("addEventListener and attachEvent are unavailable.");
ee++;return c},je=function(){var a=le,b=Pd?function(c){return a.call(b.src,b.listener,c)}:function(c){c=a.call(b.src,b.listener,c);if(!c)return c};return b},me=function(a,b,c,e,f){if(ta(b)){for(var g=0;g<b.length;g++)me(a,b[g],c,e,f);return null}c=ge(c);return Yd(a)?a.ao(b,c,e,f):he(a,b,c,!0,e,f)},ne=function(a,b,c,e,f){if(ta(b)){for(var g=0;g<b.length;g++)ne(a,b[g],c,e,f);return null}c=ge(c);if(Yd(a))return a.vd(b,c,e,f);if(!a)return!1;if(a=ie(a))if(b=a.vn(b,c,!!e,f))return oe(b);return!1},oe=function(a){if(u(a)||
!a||a.removed)return!1;var b=a.src;if(Yd(b))return b.rN(a);var c=a.type,e=a.proxy;b.removeEventListener?b.removeEventListener(c,e,a.capture):b.detachEvent&&b.detachEvent(ke(c),e);ee--;(c=ie(b))?(c.bK(a),0==c.xp&&(c.src=null,b[ce]=null)):a.ts();return!0},pe=function(a,b){if(!a)return 0;if(Yd(a))return a.aK(b);a=ie(a);if(!a)return 0;var c=0;b=b&&b.toString();for(var e in a.Wb)if(!b||e==b)for(var f=a.Wb[e].concat(),g=0;g<f.length;++g)oe(f[g])&&++c;return c},ke=function(a){return a in de?de[a]:de[a]=
"on"+a},re=function(a,b,c,e){var f=!0;if(a=ie(a))if(b=a.Wb[b.toString()])for(b=b.concat(),a=0;a<b.length;a++){var g=b[a];g&&g.capture==c&&!g.removed&&(g=qe(g,e),f=f&&!1!==g)}return f},qe=function(a,b){var c=a.listener,e=a.Lc||a.src;a.nq&&oe(a);return c.call(e,b)},le=function(a,b){if(a.removed)return!0;if(!Pd){var c=b||pa("window.event");b=new Wd(c,this);var e=!0;if(!(0>c.keyCode||void 0!=c.returnValue)){a:{var f=!1;if(0==c.keyCode)try{c.keyCode=-1;break a}catch(k){f=!0}if(f||void 0==c.returnValue)c.returnValue=
!0}c=[];for(f=b.currentTarget;f;f=f.parentNode)c.push(f);a=a.type;for(f=c.length-1;!b.Vi&&0<=f;f--){b.currentTarget=c[f];var g=re(c[f],a,!0,b),e=e&&g}for(f=0;!b.Vi&&f<c.length;f++)b.currentTarget=c[f],g=re(c[f],a,!1,b),e=e&&g}return e}return qe(a,new Wd(b,this))},ie=function(a){a=a[ce];return a instanceof ae?a:null},se="__closure_events_fn_"+(1E9*Math.random()>>>0),ge=function(a){if(va(a))return a;a[se]||(a[se]=function(b){return a.handleEvent(b)});return a[se]};var K=function(){Nd.call(this);this.Jf=new ae(this);this.DP=this;this.qo=null};x(K,Nd);K.prototype[Xd]=!0;d=K.prototype;d.rA=function(a){this.qo=a};d.addEventListener=function(a,b,c,e){fe(this,a,b,c,e)};d.removeEventListener=function(a,b,c,e){ne(this,a,b,c,e)};
d.dispatchEvent=function(a){var b,c=this.qo;if(c)for(b=[];c;c=c.qo)b.push(c);var c=this.DP,e=a.type||a;if(t(a))a=new J(a,c);else if(a instanceof J)a.target=a.target||c;else{var f=a;a=new J(e,c);Lb(a,f)}var f=!0,g;if(b)for(var k=b.length-1;!a.Vi&&0<=k;k--)g=a.currentTarget=b[k],f=g.Zq(e,!0,a)&&f;a.Vi||(g=a.currentTarget=c,f=g.Zq(e,!0,a)&&f,a.Vi||(f=g.Zq(e,!1,a)&&f));if(b)for(k=0;!a.Vi&&k<b.length;k++)g=a.currentTarget=b[k],f=g.Zq(e,!1,a)&&f;return f};
d.L=function(){K.S.L.call(this);this.aK();this.qo=null};d.listen=function(a,b,c,e){return this.Jf.add(String(a),b,!1,c,e)};d.ao=function(a,b,c,e){return this.Jf.add(String(a),b,!0,c,e)};d.vd=function(a,b,c,e){return this.Jf.remove(String(a),b,c,e)};d.rN=function(a){return this.Jf.bK(a)};d.aK=function(a){return this.Jf?this.Jf.removeAll(a):0};
d.Zq=function(a,b,c){a=this.Jf.Wb[String(a)];if(!a)return!0;a=a.concat();for(var e=!0,f=0;f<a.length;++f){var g=a[f];if(g&&!g.removed&&g.capture==b){var k=g.listener,p=g.Lc||g.src;g.nq&&this.rN(g);e=!1!==k.call(p,c)&&e}}return e&&0!=c.tK};d.vn=function(a,b,c,e){return this.Jf.vn(String(a),b,c,e)};d.hasListener=function(a,b){return this.Jf.hasListener(l(a)?String(a):void 0,b)};var te=function(a,b,c){this.R_=c;this.jS=a;this.Mz=b;this.Ds=0;this.ob=null};te.prototype.get=function(){var a;0<this.Ds?(this.Ds--,a=this.ob,this.ob=a.next,a.next=null):a=this.jS();return a};te.prototype.put=function(a){this.Mz(a);this.Ds<this.R_&&(this.Ds++,a.next=this.ob,this.ob=a)};var ue=function(a){h.setTimeout(function(){throw a;},0)},ve,we=function(){var a=h.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!C("Presto")&&(a=function(){var a=document.createElement("IFRAME");a.style.display="none";a.src="";document.documentElement.appendChild(a);var b=a.contentWindow,a=b.document;a.open();a.write("");a.close();var c="callImmediate"+Math.random(),e="file:"==b.location.protocol?"*":b.location.protocol+"//"+b.location.host,
a=v(function(a){if(("*"==e||a.origin==e)&&a.data==c)this.port1.onmessage()},this);b.addEventListener("message",a,!1);this.port1={};this.port2={postMessage:function(){b.postMessage(c,e)}}});if("undefined"!==typeof a&&!C("Trident")&&!C("MSIE")){var b=new a,c={},e=c;b.port1.onmessage=function(){if(l(c.next)){c=c.next;var a=c.rq;c.rq=null;a()}};return function(a){e.next={rq:a};e=e.next;b.port2.postMessage(0)}}return"undefined"!==typeof document&&"onreadystatechange"in document.createElement("SCRIPT")?
function(a){var b=document.createElement("SCRIPT");b.onreadystatechange=function(){b.onreadystatechange=null;b.parentNode.removeChild(b);b=null;a();a=null};document.documentElement.appendChild(b)}:function(a){h.setTimeout(a,0)}};var xe=function(){this.uu=this.qm=null},ze=new te(function(){return new ye},function(a){a.reset()},100);xe.prototype.add=function(a,b){var c=this.AY();c.set(a,b);this.uu?this.uu.next=c:this.qm=c;this.uu=c};xe.prototype.remove=function(){var a=null;this.qm&&(a=this.qm,this.qm=this.qm.next,this.qm||(this.uu=null),a.next=null);return a};xe.prototype.f6=function(a){ze.put(a)};xe.prototype.AY=function(){return ze.get()};var ye=function(){this.next=this.scope=this.rw=null};
ye.prototype.set=function(a,b){this.rw=a;this.scope=b;this.next=null};ye.prototype.reset=function(){this.next=this.scope=this.rw=null};var Ee=function(a,b){Ae||Be();Ce||(Ae(),Ce=!0);De.add(a,b)},Ae,Be=function(){if(h.Promise&&h.Promise.resolve){var a=h.Promise.resolve(void 0);Ae=function(){a.then(Fe)}}else Ae=function(){var a=Fe;!va(h.setImmediate)||h.Window&&h.Window.prototype&&!C("Edge")&&h.Window.prototype.setImmediate==h.setImmediate?(ve||(ve=we()),ve(a)):h.setImmediate(a)}},Ce=!1,De=new xe,Fe=function(){for(var a;a=De.remove();){try{a.rw.call(a.scope)}catch(b){ue(b)}De.f6(a)}Ce=!1};var Ge=function(a){a.prototype.then=a.prototype.then;a.prototype.$goog_Thenable=!0},He=function(a){if(!a)return!1;try{return!!a.$goog_Thenable}catch(b){return!1}};var Je=function(a,b){this.D=0;this.dg=void 0;this.Rj=this.Ag=this.Jb=null;this.Lr=this.iw=!1;if(a!=n)try{var c=this;a.call(b,function(a){c.aj(2,a)},function(a){if(!(a instanceof Ie))try{if(a instanceof Error)throw a;throw Error("Promise rejected.");}catch(f){}c.aj(3,a)})}catch(e){this.aj(3,e)}},Ke=function(){this.next=this.context=this.ql=this.oo=this.Qh=null;this.zm=!1};Ke.prototype.reset=function(){this.context=this.ql=this.oo=this.Qh=null;this.zm=!1};
var Le=new te(function(){return new Ke},function(a){a.reset()},100),Me=function(a,b,c){var e=Le.get();e.oo=a;e.ql=b;e.context=c;return e},Ne=function(a){if(a instanceof Je)return a;var b=new Je(n);b.aj(2,a);return b},Oe=function(a){return new Je(function(b,c){c(a)})},Qe=function(a,b,c){Pe(a,b,c,null)||Ee(Ba(b,a))},Re=function(a){return new Je(function(b,c){var e=a.length,f=[];if(e)for(var g=function(a,c){e--;f[a]=c;0==e&&b(f)},k=function(a){c(a)},p=0,q;p<a.length;p++)q=a[p],Qe(q,Ba(g,p),k);else b(f)})},
Te=function(){var a,b,c=new Je(function(c,f){a=c;b=f});return new Se(c,a,b)};Je.prototype.then=function(a,b,c){return this.UB(va(a)?a:null,va(b)?b:null,c)};Ge(Je);d=Je.prototype;d.hba=function(a,b,c){this.Ou(Me(a||n,b||null,c))};d.au=function(a,b){a=Me(a,a,b);a.zm=!0;this.Ou(a);return this};d.Ec=function(a,b){return this.UB(null,a,b)};d.cancel=function(a){0==this.D&&Ee(function(){var b=new Ie(a);this.IC(b)},this)};d.IC=function(a){0==this.D&&(this.Jb?(this.Jb.cR(this,a),this.Jb=null):this.aj(3,a))};
d.cR=function(a,b){if(this.Ag){for(var c=0,e=null,f=null,g=this.Ag;g&&(g.zm||(c++,g.Qh==a&&(e=g),!(e&&1<c)));g=g.next)e||(f=g);e&&(0==this.D&&1==c?this.IC(b):(f?this.o5(f):this.vJ(),this.YD(e,3,b)))}};d.Ou=function(a){this.LZ()||2!=this.D&&3!=this.D||this.CK();this.y4(a)};
d.UB=function(a,b,c){var e=Me(null,null,null);e.Qh=new Je(function(f,g){e.oo=a?function(b){try{var e=a.call(c,b);f(e)}catch(q){g(q)}}:f;e.ql=b?function(a){try{var e=b.call(c,a);!l(e)&&a instanceof Ie?g(a):f(e)}catch(q){g(q)}}:g});e.Qh.Jb=this;this.Ou(e);return e.Qh};d.xba=function(a){this.D=0;this.aj(2,a)};d.yba=function(a){this.D=0;this.aj(3,a)};
d.aj=function(a,b){0==this.D&&(this===b&&(a=3,b=new TypeError("Promise cannot resolve to itself")),this.D=1,Pe(b,this.xba,this.yba,this)||(this.dg=b,this.D=a,this.Jb=null,this.CK(),3!=a||b instanceof Ie||Ue(this,b)))};
var Pe=function(a,b,c,e){if(a instanceof Je)return a.hba(b,c,e),!0;if(He(a))return a.then(b,c,e),!0;if(wa(a))try{var f=a.then;if(va(f))return Ve(a,f,b,c,e),!0}catch(g){return c.call(e,g),!0}return!1},Ve=function(a,b,c,e,f){var g=!1,k=function(a){g||(g=!0,c.call(f,a))},p=function(a){g||(g=!0,e.call(f,a))};try{b.call(a,k,p)}catch(q){p(q)}};d=Je.prototype;d.CK=function(){this.iw||(this.iw=!0,Ee(this.lT,this))};d.LZ=function(){return!!this.Ag};
d.y4=function(a){this.Rj?this.Rj.next=a:this.Ag=a;this.Rj=a};d.vJ=function(){var a=null;this.Ag&&(a=this.Ag,this.Ag=a.next,a.next=null);this.Ag||(this.Rj=null);return a};d.o5=function(a){a.next==this.Rj&&(this.Rj=a);a.next=a.next.next};d.lT=function(){for(var a;a=this.vJ();)this.YD(a,this.D,this.dg);this.iw=!1};d.YD=function(a,b,c){3==b&&a.ql&&!a.zm&&this.B5();if(a.Qh)a.Qh.Jb=null,We(a,b,c);else try{a.zm?a.oo.call(a.context):We(a,b,c)}catch(e){Xe.call(null,e)}Le.put(a)};
var We=function(a,b,c){2==b?a.oo.call(a.context,c):a.ql&&a.ql.call(a.context,c)};Je.prototype.B5=function(){var a;for(a=this;a&&a.Lr;a=a.Jb)a.Lr=!1};var Ue=function(a,b){a.Lr=!0;Ee(function(){a.Lr&&Xe.call(null,b)})},Xe=ue,Ie=function(a){Ca.call(this,a)};x(Ie,Ca);Ie.prototype.name="cancel";var Se=function(a,b,c){this.promise=a;this.resolve=b;this.reject=c};var Ye=function(a,b){K.call(this);this.ne=a||1;this.hm=b||h;this.kv=v(this.jba,this);this.fy=w()};x(Ye,K);d=Ye.prototype;d.enabled=!1;d.Ta=null;d.setInterval=function(a){this.ne=a;this.Ta&&this.enabled?(this.stop(),this.start()):this.Ta&&this.stop()};d.jba=function(){if(this.enabled){var a=w()-this.fy;0<a&&a<.8*this.ne?this.Ta=this.hm.setTimeout(this.kv,this.ne-a):(this.Ta&&(this.hm.clearTimeout(this.Ta),this.Ta=null),this.HS(),this.enabled&&(this.Ta=this.hm.setTimeout(this.kv,this.ne),this.fy=w()))}};
d.HS=function(){this.dispatchEvent("tick")};d.start=function(){this.enabled=!0;this.Ta||(this.Ta=this.hm.setTimeout(this.kv,this.ne),this.fy=w())};d.stop=function(){this.enabled=!1;this.Ta&&(this.hm.clearTimeout(this.Ta),this.Ta=null)};d.L=function(){Ye.S.L.call(this);this.stop();delete this.hm};
var Ze=function(a,b,c){if(va(a))c&&(a=v(a,c));else if(a&&"function"==typeof a.handleEvent)a=v(a.handleEvent,a);else throw Error("Invalid listener argument");return 2147483647<Number(b)?-1:h.setTimeout(a,b||0)},$e=function(a){h.clearTimeout(a)},af=function(a,b){var c=null;return(new Je(function(e,f){c=Ze(function(){e(b)},a);-1==c&&f(Error("Failed to schedule timer."))})).Ec(function(a){$e(c);throw a;})};var bf=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/,cf=function(a,b){return a?b?decodeURI(a):decodeURIComponent(a):a},df=function(a,b){if(a){a=a.split("&");for(var c=0;c<a.length;c++){var e=a[c].indexOf("="),f,g=null;0<=e?(f=a[c].substring(0,e),g=a[c].substring(e+1)):f=a[c];b(f,g?decodeURIComponent(g.replace(/\+/g," ")):"")}}},ef=function(a,b,c){a=[a,"&",b];null!=c&&a.push("=",encodeURIComponent(String(c)));a[1]&&(c=a[0],b=
c.indexOf("#"),0<=b&&(a.push(c.substr(b)),a[0]=c=c.substr(0,b)),b=c.indexOf("?"),0>b?a[1]="?":b==c.length-1&&(a[1]=void 0));return a.join("")};var ff=function(){var a=this;this.promise=new Promise(function(b,c){a.R5=b;a.g5=c})};ff.prototype.resolve=function(a){this.R5(a)};ff.prototype.reject=function(a){this.g5(a)};var gf=function(a,b,c){this.e1=a;this.Pz=0<b?b:10;this.m0=0<c?c:1;this.fI=0;this.iq=1;this.CI=0;this.oH=!1;this.Mb=this.tp=null};x(gf,Nd);d=gf.prototype;d.start=function(){if(null!=this.Mb)return Promise.reject(Error("Cannot call Retry.start more than once."));this.Mb=new ff;this.rK();return this.Mb.promise};
d.rK=function(){var a=this;this.tp=null;this.oH||(this.CI++,this.e1().then(function(b){a.zf();a.Mb.resolve(b)},function(){a.CI>=a.m0?(a.zf(),a.Mb.reject(Error("Max attempts reached"))):(a.tp=Ze(a.rK,a.Pz,a),a.Oba())}))};d.Oba=function(){var a=this.Pz*this.iq;0<this.fI&&(a=Math.min(a,this.fI));this.Pz=a};d.tt=function(a){this.iq=a;return this};d.abort=function(){this.zf();this.Mb.reject(Error("abort"))};d.zf=function(){null!=this.tp&&($e(this.tp),this.tp=null);this.oH=!0};
d.L=function(){this.zf();gf.S.L.call(this)};var hf=function(a,b,c,e,f){c="["+b+"]: "+c+" "+e.sr()+" => "+e.eb()+" ("+e.uG()+")";e.Md()?(I(a,c),f&&(e=e.Jk())&&0<e.length&&I(a,"["+b+"]: "+e)):(c+=", error = "+e.dh+" ("+e.AF()+")",H(a,c))};var jf=function(a){switch(a){case 0:return"No Error";case 1:return"Access denied to content document";case 2:return"File not found";case 3:return"Firefox silently errored";case 4:return"Application custom error";case 5:return"An exception occurred";case 6:return"Http response at 400 or 500 level";case 7:return"Request was aborted";case 8:return"Request timed out";case 9:return"The resource is not available offline";default:return"Unrecognized error code"}};var kf=h.JSON.parse,lf=h.JSON.stringify;var mf=function(){};mf.prototype.EC=null;mf.prototype.ck=r;mf.prototype.Hd=function(){return this.EC||(this.EC=this.iH())};mf.prototype.iH=r;var nf,of=function(){};x(of,mf);of.prototype.ck=function(){var a=this.VF();return a?new ActiveXObject(a):new XMLHttpRequest};of.prototype.iH=function(){var a={};this.VF()&&(a[0]=!0,a[1]=!0);return a};
of.prototype.VF=function(){if(!this.aH&&"undefined"==typeof XMLHttpRequest&&"undefined"!=typeof ActiveXObject){for(var a=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],b=0;b<a.length;b++){var c=a[b];try{return new ActiveXObject(c),this.aH=c}catch(e){}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed");}return this.aH};nf=new of;var pf=function(a){K.call(this);this.headers=new D;this.yu=a||null;this.vg=!1;this.xu=this.V=null;this.GH=this.Xn="";this.dh=0;this.eh="";this.xi=this.Cx=this.Ur=this.gw=!1;this.pg=0;this.De=null;this.El="";this.ou=this.m4=this.sg=!1};x(pf,K);pf.prototype.a=E("goog.net.XhrIo");var qf=/^https?$/i,rf=["POST","PUT"],sf=[],tf=function(a,b,c,e,f,g,k){var p=new pf;sf.push(p);b&&p.listen("complete",b);p.ao("ready",p.xR);g&&p.Gt(g);k&&p.FA(k);p.send(a,c,e,f);return p};d=pf.prototype;
d.xR=function(){this.mb();lb(sf,this)};d.Gt=function(a){this.pg=Math.max(0,a)};d.kM=function(a){this.El=a};d.FA=function(a){this.sg=a};
d.send=function(a,b,c,e){if(this.V)throw Error("[goog.net.XhrIo] Object is active with another request="+this.Xn+"; newUri="+a);b=b?b.toUpperCase():"GET";this.Xn=a;this.eh="";this.dh=0;this.GH=b;this.gw=!1;this.vg=!0;this.V=this.iS();this.xu=this.yu?this.yu.Hd():nf.Hd();this.V.onreadystatechange=v(this.$I,this);this.m4&&"onprogress"in this.V&&(this.V.onprogress=v(function(a){this.XI(a,!0)},this),this.V.upload&&(this.V.upload.onprogress=v(this.XI,this)));try{I(this.a,this.Kf("Opening Xhr")),this.Cx=
!0,this.V.open(b,String(a),!0),this.Cx=!1}catch(g){I(this.a,this.Kf("Error opening Xhr: "+g.message));this.hd(5,g);return}a=c||"";var f=this.headers.clone();e&&Gc(e,function(a,b){f.set(b,a)});e=eb(f.ib(),uf);c=h.FormData&&a instanceof h.FormData;!gb(rf,b)||e||c||f.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");f.forEach(function(a,b){this.V.setRequestHeader(b,a)},this);this.El&&(this.V.responseType=this.El);"withCredentials"in this.V&&this.V.withCredentials!==this.sg&&(this.V.withCredentials=
this.sg);try{this.UC(),0<this.pg&&(this.ou=vf(this.V),I(this.a,this.Kf("Will abort after "+this.pg+"ms if incomplete, xhr2 "+this.ou)),this.ou?(this.V.timeout=this.pg,this.V.ontimeout=v(this.sp,this)):this.De=Ze(this.sp,this.pg,this)),I(this.a,this.Kf("Sending request")),this.Ur=!0,this.V.send(a),this.Ur=!1}catch(g){I(this.a,this.Kf("Send error: "+g.message)),this.hd(5,g)}};var vf=function(a){return Qc&&kd(9)&&u(a.timeout)&&l(a.ontimeout)},uf=function(a){return"content-type"==a.toLowerCase()};d=pf.prototype;
d.iS=function(){return this.yu?this.yu.ck():nf.ck()};d.sp=function(){"undefined"!=typeof oa&&this.V&&(this.eh="Timed out after "+this.pg+"ms, aborting",this.dh=8,I(this.a,this.Kf(this.eh)),this.dispatchEvent("timeout"),this.abort(8))};d.hd=function(a,b){this.vg=!1;this.V&&(this.xi=!0,this.V.abort(),this.xi=!1);this.eh=b;this.dh=a;this.ID();this.vq()};d.ID=function(){this.gw||(this.gw=!0,this.dispatchEvent("complete"),this.dispatchEvent("error"))};
d.abort=function(a){this.V&&this.vg&&(I(this.a,this.Kf("Aborting")),this.vg=!1,this.xi=!0,this.V.abort(),this.xi=!1,this.dh=a||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),this.vq())};d.L=function(){this.V&&(this.vg&&(this.vg=!1,this.xi=!0,this.V.abort(),this.xi=!1),this.vq(!0));pf.S.L.call(this)};d.$I=function(){this.isDisposed()||(this.Cx||this.Ur||this.xi?this.ZI():this.o2())};d.o2=function(){this.ZI()};
d.ZI=function(){if(this.vg&&"undefined"!=typeof oa)if(this.xu[1]&&4==this.ni()&&2==this.eb())I(this.a,this.Kf("Local request error detected and ignored"));else if(this.Ur&&4==this.ni())Ze(this.$I,0,this);else if(this.dispatchEvent("readystatechange"),this.Hx()){I(this.a,this.Kf("Request complete"));this.vg=!1;try{this.Md()?(this.dispatchEvent("complete"),this.dispatchEvent("success")):(this.dh=6,this.eh=this.uG()+" ["+this.eb()+"]",this.ID())}finally{this.vq()}}};
d.XI=function(a,b){this.dispatchEvent(wf(a,"progress"));this.dispatchEvent(wf(a,b?"downloadprogress":"uploadprogress"))};var wf=function(a,b){return{type:b,lengthComputable:a.lengthComputable,loaded:a.loaded,total:a.total}};d=pf.prototype;d.vq=function(a){if(this.V){this.UC();var b=this.V,c=this.xu[0]?n:null;this.xu=this.V=null;a||this.dispatchEvent("ready");try{b.onreadystatechange=c}catch(e){F(this.a,"Problem encountered resetting onreadystatechange: "+e.message)}}};
d.UC=function(){this.V&&this.ou&&(this.V.ontimeout=null);u(this.De)&&($e(this.De),this.De=null)};d.Tf=function(){return!!this.V};d.Hx=function(){return 4==this.ni()};d.Md=function(){var a=this.eb(),b;a:switch(a){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:b=!0;break a;default:b=!1}return b||0===a&&!this.t_()};
d.t_=function(){var a=String(this.Xn).match(bf)[1]||null;!a&&h.self&&h.self.location&&(a=h.self.location.protocol,a=a.substr(0,a.length-1));return qf.test(a?a.toLowerCase():"")};d.ni=function(){return this.V?this.V.readyState:0};d.eb=function(){try{return 2<this.ni()?this.V.status:-1}catch(a){return-1}};d.uG=function(){try{return 2<this.ni()?this.V.statusText:""}catch(a){return I(this.a,"Can not get status: "+a.message),""}};d.sr=function(){return String(this.Xn)};
d.Jk=function(){try{return this.V?this.V.responseText:""}catch(a){return I(this.a,"Can not get responseText: "+a.message),""}};d.gG=function(){try{return this.V?this.V.responseXML:null}catch(a){return I(this.a,"Can not get responseXML: "+a.message),null}};d.MX=function(a){if(this.V){var b=this.V.responseText;a&&0==b.indexOf(a)&&(b=b.substring(a.length));return kf(b)}};d.getResponseHeader=function(a){return this.V&&this.Hx()?this.V.getResponseHeader(a):void 0};
d.getAllResponseHeaders=function(){return this.V&&this.Hx()?this.V.getAllResponseHeaders():""};d.LX=function(){for(var a={},b=this.getAllResponseHeaders().split("\r\n"),c=0;c<b.length;c++)if(!Fa(b[c])){var e=Va(b[c],": ",2);a[e[0]]=a[e[0]]?a[e[0]]+(", "+e[1]):e[1]}return a};d.AF=function(){return t(this.eh)?this.eh:String(this.eh)};d.Kf=function(a){return a+" ["+this.GH+" "+this.Xn+" "+this.eb()+"]"};var xf=E("mr.DongleUtils"),yf=function(a){return"https://crash.corp.google.com/samples?stbtiq="+a},zf=function(a,b,c){var e=new pf;e.kM("text");e.Gt(3E5);fe(e,"complete",function(a){a=a.target;var e,f;a.Md()?(e="ok",f=yf(b)):(e="error",f="Unable to retrieve "+a.sr()+", error = "+a.AF());c(e,f);a.mb()});e.send("http://"+a+":8008/setup/send_log_report","POST",JSON.stringify({uuid:b}),{"Content-Type":"application/json"});return yf(b)},Af=null,Bf=function(a){if(!t(a))return Promise.resolve();if(Af&&Af.ip==
a&&Af.time>w()-36E5)return Af.version;var b=new ff;Af={version:b.promise,ip:a||"",time:w()};tf("http://"+a+":8008/setup/eureka_info",function(a){a=a.target;hf(xf,"getBuildVersion","GET",a,!1);if(a.Md())try{var c=JSON.parse(a.Jk());b.resolve(c.cast_build_revision||c.build_version)}catch(f){b.resolve(void 0)}else b.resolve(void 0)},"GET",void 0,void 0,3E3);return b.promise};var Cf=function(a,b,c){this.source=a;this.type=b;this.message=c};
