(function(){var $jscomp={scope:{}};$jscomp.defineProperty="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)};$jscomp.getGlobal=function(a){return"undefined"!=typeof window&&window===a?a:"undefined"!=typeof global&&null!=global?global:a};$jscomp.global=$jscomp.getGlobal(this);$jscomp.SYMBOL_PREFIX="jscomp_symbol_";
$jscomp.initSymbol=function(){$jscomp.initSymbol=function(){};$jscomp.global.Symbol||($jscomp.global.Symbol=$jscomp.Symbol)};$jscomp.symbolCounter_=0;$jscomp.Symbol=function(a){return $jscomp.SYMBOL_PREFIX+(a||"")+$jscomp.symbolCounter_++};
$jscomp.initSymbolIterator=function(){$jscomp.initSymbol();var a=$jscomp.global.Symbol.iterator;a||(a=$jscomp.global.Symbol.iterator=$jscomp.global.Symbol("iterator"));"function"!=typeof Array.prototype[a]&&$jscomp.defineProperty(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return $jscomp.arrayIterator(this)}});$jscomp.initSymbolIterator=function(){}};$jscomp.arrayIterator=function(a){var b=0;return $jscomp.iteratorPrototype(function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}})};
$jscomp.iteratorPrototype=function(a){$jscomp.initSymbolIterator();a={next:a};a[$jscomp.global.Symbol.iterator]=function(){return this};return a};$jscomp.makeIterator=function(a){$jscomp.initSymbolIterator();var b=a[Symbol.iterator];return b?b.call(a):$jscomp.arrayIterator(a)};
$jscomp.checkStringArgs=function(a,b,c){if(null==a)throw new TypeError("The 'this' value for String.prototype."+c+" must not be null or undefined");if(b instanceof RegExp)throw new TypeError("First argument to String.prototype."+c+" must not be a regular expression");return a+""};
$jscomp.polyfill=function(a,b,c,d){if(b){c=$jscomp.global;a=a.split(".");for(d=0;d<a.length-1;d++){var e=a[d];e in c||(c[e]={});c=c[e]}a=a[a.length-1];d=c[a];b=b(d);b!=d&&null!=b&&$jscomp.defineProperty(c,a,{configurable:!0,writable:!0,value:b})}};
$jscomp.polyfill("String.prototype.repeat",function(a){return a?a:function(a){var b=$jscomp.checkStringArgs(this,null,"repeat");if(0>a||1342177279<a)throw new RangeError("Invalid count value");a|=0;for(var d="";a;)if(a&1&&(d+=b),a>>>=1)b+=b;return d}},"es6-impl","es3");$jscomp.findInternal=function(a,b,c){a instanceof String&&(a=String(a));for(var d=a.length,e=0;e<d;e++){var f=a[e];if(b.call(c,f,e,a))return{i:e,v:f}}return{i:-1,v:void 0}};
$jscomp.polyfill("Array.prototype.findIndex",function(a){return a?a:function(a,c){return $jscomp.findInternal(this,a,c).i}},"es6-impl","es3");$jscomp.polyfill("String.prototype.endsWith",function(a){return a?a:function(a,c){var b=$jscomp.checkStringArgs(this,a,"endsWith");a+="";void 0===c&&(c=b.length);for(var e=Math.max(0,Math.min(c|0,b.length)),f=a.length;0<f&&0<e;)if(b[--e]!=a[--f])return!1;return 0>=f}},"es6-impl","es3");
$jscomp.polyfill("String.prototype.startsWith",function(a){return a?a:function(a,c){var b=$jscomp.checkStringArgs(this,a,"startsWith");a+="";for(var e=b.length,f=a.length,g=Math.max(0,Math.min(c|0,b.length)),h=0;h<f&&g<e;)if(b[g++]!=a[h++])return!1;return h>=f}},"es6-impl","es3");$jscomp.EXPOSE_ASYNC_EXECUTOR=!0;$jscomp.FORCE_POLYFILL_PROMISE=!1;
$jscomp.polyfill("Promise",function(a){function b(){this.batch_=null}if(a&&!$jscomp.FORCE_POLYFILL_PROMISE)return a;b.prototype.asyncExecute=function(a){null==this.batch_&&(this.batch_=[],this.asyncExecuteBatch_());this.batch_.push(a);return this};b.prototype.asyncExecuteBatch_=function(){var a=this;this.asyncExecuteFunction(function(){a.executeBatch_()})};var c=$jscomp.global.setTimeout;b.prototype.asyncExecuteFunction=function(a){c(a,0)};b.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var a=
this.batch_;this.batch_=[];for(var b=0;b<a.length;++b){var c=a[b];delete a[b];try{c()}catch(l){this.asyncThrow_(l)}}}this.batch_=null};b.prototype.asyncThrow_=function(a){this.asyncExecuteFunction(function(){throw a;})};var d=function(a){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];var b=this.createResolveAndReject_();try{a(b.resolve,b.reject)}catch(h){b.reject(h)}};d.prototype.createResolveAndReject_=function(){function a(a){return function(d){c||(c=!0,a.call(b,d))}}var b=this,c=
!1;return{resolve:a(this.resolveTo_),reject:a(this.reject_)}};d.prototype.resolveTo_=function(a){if(a===this)this.reject_(new TypeError("A Promise cannot resolve to itself"));else if(a instanceof d)this.settleSameAsPromise_(a);else{var b;a:switch(typeof a){case "object":b=null!=a;break a;case "function":b=!0;break a;default:b=!1}b?this.resolveToNonPromiseObj_(a):this.fulfill_(a)}};d.prototype.resolveToNonPromiseObj_=function(a){var b=void 0;try{b=a.then}catch(h){this.reject_(h);return}"function"==
typeof b?this.settleSameAsThenable_(b,a):this.fulfill_(a)};d.prototype.reject_=function(a){this.settle_(2,a)};d.prototype.fulfill_=function(a){this.settle_(1,a)};d.prototype.settle_=function(a,b){if(0!=this.state_)throw Error("Cannot settle("+a+", "+b|"): Promise already settled in state"+this.state_);this.state_=a;this.result_=b;this.executeOnSettledCallbacks_()};d.prototype.executeOnSettledCallbacks_=function(){if(null!=this.onSettledCallbacks_){for(var a=this.onSettledCallbacks_,b=0;b<a.length;++b)a[b].call(),
a[b]=null;this.onSettledCallbacks_=null}};var e=new b;d.prototype.settleSameAsPromise_=function(a){var b=this.createResolveAndReject_();a.callWhenSettled_(b.resolve,b.reject)};d.prototype.settleSameAsThenable_=function(a,b){var c=this.createResolveAndReject_();try{a.call(b,c.resolve,c.reject)}catch(l){c.reject(l)}};d.prototype.then=function(a,b){function c(a,b){return"function"==typeof a?function(b){try{e(a(b))}catch(z){f(z)}}:b}var e,f,g=new d(function(a,b){e=a;f=b});this.callWhenSettled_(c(a,e),
c(b,f));return g};d.prototype["catch"]=function(a){return this.then(void 0,a)};d.prototype.callWhenSettled_=function(a,b){function c(){switch(d.state_){case 1:a(d.result_);break;case 2:b(d.result_);break;default:throw Error("Unexpected state: "+d.state_);}}var d=this;null==this.onSettledCallbacks_?e.asyncExecute(c):this.onSettledCallbacks_.push(function(){e.asyncExecute(c)})};d.resolve=function(a){return a instanceof d?a:new d(function(b,c){b(a)})};d.reject=function(a){return new d(function(b,c){c(a)})};
d.race=function(a){return new d(function(b,c){for(var e=$jscomp.makeIterator(a),f=e.next();!f.done;f=e.next())d.resolve(f.value).callWhenSettled_(b,c)})};d.all=function(a){var b=$jscomp.makeIterator(a),c=b.next();return c.done?d.resolve([]):new d(function(a,e){function f(b){return function(c){g[b]=c;h--;0==h&&a(g)}}var g=[],h=0;do g.push(void 0),h++,d.resolve(c.value).callWhenSettled_(f(g.length-1),e),c=b.next();while(!c.done)})};$jscomp.EXPOSE_ASYNC_EXECUTOR&&(d.$jscomp$new$AsyncExecutor=function(){return new b});
return d},"es6-impl","es3");$jscomp.polyfill("Array.prototype.find",function(a){return a?a:function(a,c){return $jscomp.findInternal(this,a,c).v}},"es6-impl","es3");var COMPILED=!0,goog=goog||{};goog.global=this;goog.isDef=function(a){return void 0!==a};goog.exportPath_=function(a,b,c){a=a.split(".");c=c||goog.global;a[0]in c||!c.execScript||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)!a.length&&goog.isDef(b)?c[d]=b:c=c[d]&&Object.prototype.hasOwnProperty.call(c,d)?c[d]:c[d]={}};
goog.define=function(a,b){var c=b;COMPILED||(goog.global.CLOSURE_UNCOMPILED_DEFINES&&Object.prototype.hasOwnProperty.call(goog.global.CLOSURE_UNCOMPILED_DEFINES,a)?c=goog.global.CLOSURE_UNCOMPILED_DEFINES[a]:goog.global.CLOSURE_DEFINES&&Object.prototype.hasOwnProperty.call(goog.global.CLOSURE_DEFINES,a)&&(c=goog.global.CLOSURE_DEFINES[a]));goog.exportPath_(a,c)};goog.DEBUG=!0;goog.LOCALE="en";goog.TRUSTED_SITE=!0;goog.STRICT_MODE_COMPATIBLE=!1;goog.DISALLOW_TEST_ONLY_CODE=COMPILED&&!goog.DEBUG;
goog.ENABLE_CHROME_APP_SAFE_SCRIPT_LOADING=!1;goog.provide=function(a){if(goog.isInModuleLoader_())throw Error("goog.provide can not be used within a goog.module.");if(!COMPILED&&goog.isProvided_(a))throw Error('Namespace "'+a+'" already declared.');goog.constructNamespace_(a)};goog.constructNamespace_=function(a,b){if(!COMPILED){delete goog.implicitNamespaces_[a];for(var c=a;(c=c.substring(0,c.lastIndexOf(".")))&&!goog.getObjectByName(c);)goog.implicitNamespaces_[c]=!0}goog.exportPath_(a,b)};
goog.VALID_MODULE_RE_=/^[a-zA-Z_$][a-zA-Z0-9._$]*$/;
goog.module=function(a){if(!goog.isString(a)||!a||-1==a.search(goog.VALID_MODULE_RE_))throw Error("Invalid module identifier");if(!goog.isInModuleLoader_())throw Error("Module "+a+" has been loaded incorrectly. Note, modules cannot be loaded as normal scripts. They require some kind of pre-processing step. You're likely trying to load a module via a script tag or as a part of a concatenated bundle without rewriting the module. For more info see: https://github.com/google/closure-library/wiki/goog.module:-an-ES6-module-like-alternative-to-goog.provide.");if(goog.moduleLoaderState_.moduleName)throw Error("goog.module may only be called once per module.");
goog.moduleLoaderState_.moduleName=a;if(!COMPILED){if(goog.isProvided_(a))throw Error('Namespace "'+a+'" already declared.');delete goog.implicitNamespaces_[a]}};goog.module.get=function(a){return goog.module.getInternal_(a)};goog.module.getInternal_=function(a){if(!COMPILED){if(a in goog.loadedModules_)return goog.loadedModules_[a];if(!goog.implicitNamespaces_[a])return a=goog.getObjectByName(a),null!=a?a:null}return null};goog.moduleLoaderState_=null;
goog.isInModuleLoader_=function(){return null!=goog.moduleLoaderState_};goog.module.declareLegacyNamespace=function(){if(!COMPILED&&!goog.isInModuleLoader_())throw Error("goog.module.declareLegacyNamespace must be called from within a goog.module");if(!COMPILED&&!goog.moduleLoaderState_.moduleName)throw Error("goog.module must be called prior to goog.module.declareLegacyNamespace.");goog.moduleLoaderState_.declareLegacyNamespace=!0};
goog.setTestOnly=function(a){if(goog.DISALLOW_TEST_ONLY_CODE)throw a=a||"",Error("Importing test-only code into non-debug environment"+(a?": "+a:"."));};goog.forwardDeclare=function(a){};COMPILED||(goog.isProvided_=function(a){return a in goog.loadedModules_||!goog.implicitNamespaces_[a]&&goog.isDefAndNotNull(goog.getObjectByName(a))},goog.implicitNamespaces_={"goog.module":!0});
goog.getObjectByName=function(a,b){for(var c=a.split("."),d=b||goog.global,e;e=c.shift();)if(goog.isDefAndNotNull(d[e]))d=d[e];else return null;return d};goog.globalize=function(a,b){var c=b||goog.global,d;for(d in a)c[d]=a[d]};
goog.addDependency=function(a,b,c,d){if(goog.DEPENDENCIES_ENABLED){var e;a=a.replace(/\\/g,"/");var f=goog.dependencies_;d&&"boolean"!==typeof d||(d=d?{module:"goog"}:{});for(var g=0;e=b[g];g++)f.nameToPath[e]=a,f.loadFlags[a]=d;for(d=0;b=c[d];d++)a in f.requires||(f.requires[a]={}),f.requires[a][b]=!0}};goog.ENABLE_DEBUG_LOADER=!0;goog.logToConsole_=function(a){goog.global.console&&goog.global.console.error(a)};
goog.require=function(a){if(!COMPILED){goog.ENABLE_DEBUG_LOADER&&goog.IS_OLD_IE_&&goog.maybeProcessDeferredDep_(a);if(goog.isProvided_(a)){if(goog.isInModuleLoader_())return goog.module.getInternal_(a)}else if(goog.ENABLE_DEBUG_LOADER){var b=goog.getPathFromDeps_(a);if(b)goog.writeScripts_(b);else throw a="goog.require could not find: "+a,goog.logToConsole_(a),Error(a);}return null}};goog.basePath="";goog.nullFunction=function(){};
goog.abstractMethod=function(){throw Error("unimplemented abstract method");};goog.addSingletonGetter=function(a){a.instance_=void 0;a.getInstance=function(){if(a.instance_)return a.instance_;goog.DEBUG&&(goog.instantiatedSingletons_[goog.instantiatedSingletons_.length]=a);return a.instance_=new a}};goog.instantiatedSingletons_=[];goog.LOAD_MODULE_USING_EVAL=!0;goog.SEAL_MODULE_EXPORTS=goog.DEBUG;goog.loadedModules_={};goog.DEPENDENCIES_ENABLED=!COMPILED&&goog.ENABLE_DEBUG_LOADER;goog.TRANSPILE="detect";
goog.TRANSPILER="transpile.js";
goog.DEPENDENCIES_ENABLED&&(goog.dependencies_={loadFlags:{},nameToPath:{},requires:{},visited:{},written:{},deferred:{}},goog.inHtmlDocument_=function(){var a=goog.global.document;return null!=a&&"write"in a},goog.findBasePath_=function(){if(goog.isDef(goog.global.CLOSURE_BASE_PATH))goog.basePath=goog.global.CLOSURE_BASE_PATH;else if(goog.inHtmlDocument_())for(var a=goog.global.document.getElementsByTagName("SCRIPT"),b=a.length-1;0<=b;--b){var c=a[b].src,d=c.lastIndexOf("?"),d=-1==d?c.length:d;if("base.js"==
c.substr(d-7,7)){goog.basePath=c.substr(0,d-7);break}}},goog.importScript_=function(a,b){(goog.global.CLOSURE_IMPORT_SCRIPT||goog.writeScriptTag_)(a,b)&&(goog.dependencies_.written[a]=!0)},goog.IS_OLD_IE_=!(goog.global.atob||!goog.global.document||!goog.global.document.all),goog.importProcessedScript_=function(a,b,c){goog.importScript_("",'goog.retrieveAndExec_("'+a+'", '+b+", "+c+");")},goog.queuedModules_=[],goog.wrapModule_=function(a,b){return goog.LOAD_MODULE_USING_EVAL&&goog.isDef(goog.global.JSON)?
"goog.loadModule("+goog.global.JSON.stringify(b+"\n//# sourceURL="+a+"\n")+");":'goog.loadModule(function(exports) {"use strict";'+b+"\n;return exports});\n//# sourceURL="+a+"\n"},goog.loadQueuedModules_=function(){var a=goog.queuedModules_.length;if(0<a){var b=goog.queuedModules_;goog.queuedModules_=[];for(var c=0;c<a;c++)goog.maybeProcessDeferredPath_(b[c])}},goog.maybeProcessDeferredDep_=function(a){goog.isDeferredModule_(a)&&goog.allDepsAreAvailable_(a)&&(a=goog.getPathFromDeps_(a),goog.maybeProcessDeferredPath_(goog.basePath+
a))},goog.isDeferredModule_=function(a){var b=(a=goog.getPathFromDeps_(a))&&goog.dependencies_.loadFlags[a]||{},c=b.lang||"es3";return a&&("goog"==b.module||goog.needsTranspile_(c))?goog.basePath+a in goog.dependencies_.deferred:!1},goog.allDepsAreAvailable_=function(a){if((a=goog.getPathFromDeps_(a))&&a in goog.dependencies_.requires)for(var b in goog.dependencies_.requires[a])if(!goog.isProvided_(b)&&!goog.isDeferredModule_(b))return!1;return!0},goog.maybeProcessDeferredPath_=function(a){if(a in
goog.dependencies_.deferred){var b=goog.dependencies_.deferred[a];delete goog.dependencies_.deferred[a];goog.globalEval(b)}},goog.loadModuleFromUrl=function(a){goog.retrieveAndExec_(a,!0,!1)},goog.writeScriptSrcNode_=function(a){goog.global.document.write('<script type="text/javascript" src="'+a+'">\x3c/script>')},goog.appendScriptSrcNode_=function(a){var b=goog.global.document,c=b.createElement("script");c.type="text/javascript";c.src=a;c.defer=!1;c.async=!1;b.head.appendChild(c)},goog.writeScriptTag_=
function(a,b){if(goog.inHtmlDocument_()){var c=goog.global.document;if(!goog.ENABLE_CHROME_APP_SAFE_SCRIPT_LOADING&&"complete"==c.readyState){if(/\bdeps.js$/.test(a))return!1;throw Error('Cannot write "'+a+'" after document load');}if(void 0===b)if(goog.IS_OLD_IE_){var d=" onreadystatechange='goog.onScriptLoad_(this, "+ ++goog.lastNonModuleScriptIndex_+")' ";c.write('<script type="text/javascript" src="'+a+'"'+d+">\x3c/script>")}else goog.ENABLE_CHROME_APP_SAFE_SCRIPT_LOADING?goog.appendScriptSrcNode_(a):
goog.writeScriptSrcNode_(a);else c.write('<script type="text/javascript">'+goog.protectScriptTag_(b)+"\x3c/script>");return!0}return!1},goog.protectScriptTag_=function(a){return a.replace(/<\/(SCRIPT)/ig,"\\x3c\\$1")},goog.needsTranspile_=function(a){if("always"==goog.TRANSPILE)return!0;if("never"==goog.TRANSPILE)return!1;goog.requiresTranspilation_||(goog.requiresTranspilation_=goog.createRequiresTranspilation_());if(a in goog.requiresTranspilation_)return goog.requiresTranspilation_[a];throw Error("Unknown language mode: "+
a);},goog.requiresTranspilation_=null,goog.lastNonModuleScriptIndex_=0,goog.onScriptLoad_=function(a,b){"complete"==a.readyState&&goog.lastNonModuleScriptIndex_==b&&goog.loadQueuedModules_();return!0},goog.writeScripts_=function(a){function b(a){if(!(a in e.written||a in e.visited)){e.visited[a]=!0;if(a in e.requires)for(var f in e.requires[a])if(!goog.isProvided_(f))if(f in e.nameToPath)b(e.nameToPath[f]);else throw Error("Undefined nameToPath for "+f);a in d||(d[a]=!0,c.push(a))}}var c=[],d={},
e=goog.dependencies_;b(a);for(a=0;a<c.length;a++){var f=c[a];goog.dependencies_.written[f]=!0}var g=goog.moduleLoaderState_;goog.moduleLoaderState_=null;for(a=0;a<c.length;a++)if(f=c[a]){var h=e.loadFlags[f]||{},l=goog.needsTranspile_(h.lang||"es3");"goog"==h.module||l?goog.importProcessedScript_(goog.basePath+f,"goog"==h.module,l):goog.importScript_(goog.basePath+f)}else throw goog.moduleLoaderState_=g,Error("Undefined script input");goog.moduleLoaderState_=g},goog.getPathFromDeps_=function(a){return a in
goog.dependencies_.nameToPath?goog.dependencies_.nameToPath[a]:null},goog.findBasePath_(),goog.global.CLOSURE_NO_DEPS||goog.importScript_(goog.basePath+"deps.js"));goog.hasBadLetScoping=null;goog.useSafari10Workaround=function(){if(null==goog.hasBadLetScoping){var a;try{a=!eval('"use strict";let x = 1; function f() { return typeof x; };f() == "number";')}catch(b){a=!1}goog.hasBadLetScoping=a}return goog.hasBadLetScoping};goog.workaroundSafari10EvalBug=function(a){return"(function(){"+a+"\n;})();\n"};
goog.loadModule=function(a){var b=goog.moduleLoaderState_;try{goog.moduleLoaderState_={moduleName:void 0,declareLegacyNamespace:!1};var c;if(goog.isFunction(a))c=a.call(void 0,{});else if(goog.isString(a))goog.useSafari10Workaround()&&(a=goog.workaroundSafari10EvalBug(a)),c=goog.loadModuleFromSource_.call(void 0,a);else throw Error("Invalid module definition");var d=goog.moduleLoaderState_.moduleName;if(!goog.isString(d)||!d)throw Error('Invalid module name "'+d+'"');goog.moduleLoaderState_.declareLegacyNamespace?
goog.constructNamespace_(d,c):goog.SEAL_MODULE_EXPORTS&&Object.seal&&"object"==typeof c&&null!=c&&Object.seal(c);goog.loadedModules_[d]=c}finally{goog.moduleLoaderState_=b}};goog.loadModuleFromSource_=function(a){eval(a);return{}};goog.normalizePath_=function(a){a=a.split("/");for(var b=0;b<a.length;)"."==a[b]?a.splice(b,1):b&&".."==a[b]&&a[b-1]&&".."!=a[b-1]?a.splice(--b,2):b++;return a.join("/")};
goog.loadFileSync_=function(a){if(goog.global.CLOSURE_LOAD_FILE_SYNC)return goog.global.CLOSURE_LOAD_FILE_SYNC(a);try{var b=new goog.global.XMLHttpRequest;b.open("get",a,!1);b.send();return 0==b.status||200==b.status?b.responseText:null}catch(c){return null}};
goog.retrieveAndExec_=function(a,b,c){if(!COMPILED){var d=a;a=goog.normalizePath_(a);var e=goog.global.CLOSURE_IMPORT_SCRIPT||goog.writeScriptTag_,f=goog.loadFileSync_(a);if(null==f)throw Error('Load of "'+a+'" failed');c&&(f=goog.transpile_.call(goog.global,f,a));f=b?goog.wrapModule_(a,f):f+("\n//# sourceURL="+a);goog.IS_OLD_IE_?(goog.dependencies_.deferred[d]=f,goog.queuedModules_.push(d)):e(a,f)}};
goog.transpile_=function(a,b){var c=goog.global.$jscomp;c||(goog.global.$jscomp=c={});var d=c.transpile;if(!d){var e=goog.basePath+goog.TRANSPILER,f=goog.loadFileSync_(e);if(f){eval(f+"\n//# sourceURL="+e);if(goog.global.$gwtExport&&goog.global.$gwtExport.$jscomp&&!goog.global.$gwtExport.$jscomp.transpile)throw Error('The transpiler did not properly export the "transpile" method. $gwtExport: '+JSON.stringify(goog.global.$gwtExport));goog.global.$jscomp.transpile=goog.global.$gwtExport.$jscomp.transpile;
c=goog.global.$jscomp;d=c.transpile}}d||(d=c.transpile=function(a,b){goog.logToConsole_(b+" requires transpilation but no transpiler was found.");return a});return d(a,b)};
goog.typeOf=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};goog.isNull=function(a){return null===a};goog.isDefAndNotNull=function(a){return null!=a};goog.isArray=function(a){return"array"==goog.typeOf(a)};goog.isArrayLike=function(a){var b=goog.typeOf(a);return"array"==b||"object"==b&&"number"==typeof a.length};goog.isDateLike=function(a){return goog.isObject(a)&&"function"==typeof a.getFullYear};goog.isString=function(a){return"string"==typeof a};
goog.isBoolean=function(a){return"boolean"==typeof a};goog.isNumber=function(a){return"number"==typeof a};goog.isFunction=function(a){return"function"==goog.typeOf(a)};goog.isObject=function(a){var b=typeof a;return"object"==b&&null!=a||"function"==b};goog.getUid=function(a){return a[goog.UID_PROPERTY_]||(a[goog.UID_PROPERTY_]=++goog.uidCounter_)};goog.hasUid=function(a){return!!a[goog.UID_PROPERTY_]};
goog.removeUid=function(a){null!==a&&"removeAttribute"in a&&a.removeAttribute(goog.UID_PROPERTY_);try{delete a[goog.UID_PROPERTY_]}catch(b){}};goog.UID_PROPERTY_="closure_uid_"+(1E9*Math.random()>>>0);goog.uidCounter_=0;goog.getHashCode=goog.getUid;goog.removeHashCode=goog.removeUid;goog.cloneObject=function(a){var b=goog.typeOf(a);if("object"==b||"array"==b){if(a.clone)return a.clone();var b="array"==b?[]:{},c;for(c in a)b[c]=goog.cloneObject(a[c]);return b}return a};
goog.bindNative_=function(a,b,c){return a.call.apply(a.bind,arguments)};goog.bindJs_=function(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var c=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(c,d);return a.apply(b,c)}}return function(){return a.apply(b,arguments)}};
goog.bind=function(a,b,c){Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?goog.bind=goog.bindNative_:goog.bind=goog.bindJs_;return goog.bind.apply(null,arguments)};goog.partial=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)}};goog.mixin=function(a,b){for(var c in b)a[c]=b[c]};goog.now=goog.TRUSTED_SITE&&Date.now||function(){return+new Date};
goog.globalEval=function(a){if(goog.global.execScript)goog.global.execScript(a,"JavaScript");else if(goog.global.eval){if(null==goog.evalWorksForGlobals_)if(goog.global.eval("var _evalTest_ = 1;"),"undefined"!=typeof goog.global._evalTest_){try{delete goog.global._evalTest_}catch(d){}goog.evalWorksForGlobals_=!0}else goog.evalWorksForGlobals_=!1;if(goog.evalWorksForGlobals_)goog.global.eval(a);else{var b=goog.global.document,c=b.createElement("SCRIPT");c.type="text/javascript";c.defer=!1;c.appendChild(b.createTextNode(a));
b.body.appendChild(c);b.body.removeChild(c)}}else throw Error("goog.globalEval not available");};goog.evalWorksForGlobals_=null;
goog.getCssName=function(a,b){if("."==String(a).charAt(0))throw Error('className passed in goog.getCssName must not start with ".". You passed: '+a);var c=function(a){return goog.cssNameMapping_[a]||a},d=function(a){a=a.split("-");for(var b=[],d=0;d<a.length;d++)b.push(c(a[d]));return b.join("-")},d=goog.cssNameMapping_?"BY_WHOLE"==goog.cssNameMappingStyle_?c:d:function(a){return a},d=b?a+"-"+d(b):d(a);return goog.global.CLOSURE_CSS_NAME_MAP_FN?goog.global.CLOSURE_CSS_NAME_MAP_FN(d):d};
goog.setCssNameMapping=function(a,b){goog.cssNameMapping_=a;goog.cssNameMappingStyle_=b};!COMPILED&&goog.global.CLOSURE_CSS_NAME_MAPPING&&(goog.cssNameMapping_=goog.global.CLOSURE_CSS_NAME_MAPPING);goog.getMsg=function(a,b){b&&(a=a.replace(/\{\$([^}]+)}/g,function(a,d){return null!=b&&d in b?b[d]:a}));return a};goog.getMsgWithFallback=function(a,b){return a};goog.exportSymbol=function(a,b,c){goog.exportPath_(a,b,c)};goog.exportProperty=function(a,b,c){a[b]=c};
goog.inherits=function(a,b){function c(){}c.prototype=b.prototype;a.superClass_=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.base=function(a,c,f){for(var d=Array(arguments.length-2),e=2;e<arguments.length;e++)d[e-2]=arguments[e];return b.prototype[c].apply(a,d)}};
goog.base=function(a,b,c){var d=arguments.callee.caller;if(goog.STRICT_MODE_COMPATIBLE||goog.DEBUG&&!d)throw Error("arguments.caller not defined.  goog.base() cannot be used with strict mode code. See http://www.ecma-international.org/ecma-262/5.1/#sec-C");if(d.superClass_){for(var e=Array(arguments.length-1),f=1;f<arguments.length;f++)e[f-1]=arguments[f];return d.superClass_.constructor.apply(a,e)}e=Array(arguments.length-2);for(f=2;f<arguments.length;f++)e[f-2]=arguments[f];for(var f=!1,g=a.constructor;g;g=
g.superClass_&&g.superClass_.constructor)if(g.prototype[b]===d)f=!0;else if(f)return g.prototype[b].apply(a,e);if(a[b]===d)return a.constructor.prototype[b].apply(a,e);throw Error("goog.base called from a method of one name to a method of a different name");};goog.scope=function(a){if(goog.isInModuleLoader_())throw Error("goog.scope is not supported within a goog.module.");a.call(goog.global)};COMPILED||(goog.global.COMPILED=COMPILED);
goog.defineClass=function(a,b){var c=b.constructor,d=b.statics;c&&c!=Object.prototype.constructor||(c=function(){throw Error("cannot instantiate an interface (no constructor defined).");});c=goog.defineClass.createSealingConstructor_(c,a);a&&goog.inherits(c,a);delete b.constructor;delete b.statics;goog.defineClass.applyProperties_(c.prototype,b);null!=d&&(d instanceof Function?d(c):goog.defineClass.applyProperties_(c,d));return c};goog.defineClass.SEAL_CLASS_INSTANCES=goog.DEBUG;
goog.defineClass.createSealingConstructor_=function(a,b){if(!goog.defineClass.SEAL_CLASS_INSTANCES)return a;var c=!goog.defineClass.isUnsealable_(b),d=function(){var b=a.apply(this,arguments)||this;b[goog.UID_PROPERTY_]=b[goog.UID_PROPERTY_];this.constructor===d&&c&&Object.seal instanceof Function&&Object.seal(b);return b};return d};goog.defineClass.isUnsealable_=function(a){return a&&a.prototype&&a.prototype[goog.UNSEALABLE_CONSTRUCTOR_PROPERTY_]};goog.defineClass.OBJECT_PROTOTYPE_FIELDS_="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");
goog.defineClass.applyProperties_=function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c]);for(var d=0;d<goog.defineClass.OBJECT_PROTOTYPE_FIELDS_.length;d++)c=goog.defineClass.OBJECT_PROTOTYPE_FIELDS_[d],Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])};goog.tagUnsealableClass=function(a){!COMPILED&&goog.defineClass.SEAL_CLASS_INSTANCES&&(a.prototype[goog.UNSEALABLE_CONSTRUCTOR_PROPERTY_]=!0)};goog.UNSEALABLE_CONSTRUCTOR_PROPERTY_="goog_defineClass_legacy_unsealable";
goog.createRequiresTranspilation_=function(){function a(a,b){d?c[a]=!0:b()?c[a]=!1:d=c[a]=!0}function b(a){try{return!!eval(a)}catch(f){return!1}}var c={es3:!1},d=!1;a("es5",function(){return b("[1,].length==1")});a("es6",function(){return b('(()=>{"use strict";class X{constructor(){if(new.target!=String)throw 1;this.x=42}}let q=Reflect.construct(X,[],String);if(q.x!=42||!(q instanceof String))throw 1;for(const a of[2,3]){if(a==2)continue;function f(z={a}){let a=0;return z.a}{function f(){return 0;}}return f()==3}})()')});
a("es6-impl",function(){return!0});a("es7",function(){return b("2 ** 2 == 4")});a("es8",function(){return b("async () => 1, true")});return c};goog.debug={};goog.debug.Error=function(a){if(Error.captureStackTrace)Error.captureStackTrace(this,goog.debug.Error);else{var b=Error().stack;b&&(this.stack=b)}a&&(this.message=String(a));this.reportErrorToServer=!0};goog.inherits(goog.debug.Error,Error);goog.debug.Error.prototype.name="CustomError";goog.dom={};goog.dom.NodeType={ELEMENT:1,ATTRIBUTE:2,TEXT:3,CDATA_SECTION:4,ENTITY_REFERENCE:5,ENTITY:6,PROCESSING_INSTRUCTION:7,COMMENT:8,DOCUMENT:9,DOCUMENT_TYPE:10,DOCUMENT_FRAGMENT:11,NOTATION:12};goog.string={};goog.string.DETECT_DOUBLE_ESCAPING=!1;goog.string.FORCE_NON_DOM_HTML_UNESCAPING=!1;goog.string.Unicode={NBSP:"\u00a0"};goog.string.startsWith=function(a,b){return 0==a.lastIndexOf(b,0)};goog.string.endsWith=function(a,b){var c=a.length-b.length;return 0<=c&&a.indexOf(b,c)==c};goog.string.caseInsensitiveStartsWith=function(a,b){return 0==goog.string.caseInsensitiveCompare(b,a.substr(0,b.length))};
goog.string.caseInsensitiveEndsWith=function(a,b){return 0==goog.string.caseInsensitiveCompare(b,a.substr(a.length-b.length,b.length))};goog.string.caseInsensitiveEquals=function(a,b){return a.toLowerCase()==b.toLowerCase()};goog.string.subs=function(a,b){for(var c=a.split("%s"),d="",e=Array.prototype.slice.call(arguments,1);e.length&&1<c.length;)d+=c.shift()+e.shift();return d+c.join("%s")};goog.string.collapseWhitespace=function(a){return a.replace(/[\s\xa0]+/g," ").replace(/^\s+|\s+$/g,"")};
goog.string.isEmptyOrWhitespace=function(a){return/^[\s\xa0]*$/.test(a)};goog.string.isEmptyString=function(a){return 0==a.length};goog.string.isEmpty=goog.string.isEmptyOrWhitespace;goog.string.isEmptyOrWhitespaceSafe=function(a){return goog.string.isEmptyOrWhitespace(goog.string.makeSafe(a))};goog.string.isEmptySafe=goog.string.isEmptyOrWhitespaceSafe;goog.string.isBreakingWhitespace=function(a){return!/[^\t\n\r ]/.test(a)};goog.string.isAlpha=function(a){return!/[^a-zA-Z]/.test(a)};
goog.string.isNumeric=function(a){return!/[^0-9]/.test(a)};goog.string.isAlphaNumeric=function(a){return!/[^a-zA-Z0-9]/.test(a)};goog.string.isSpace=function(a){return" "==a};goog.string.isUnicodeChar=function(a){return 1==a.length&&" "<=a&&"~">=a||"\u0080"<=a&&"\ufffd">=a};goog.string.stripNewlines=function(a){return a.replace(/(\r\n|\r|\n)+/g," ")};goog.string.canonicalizeNewlines=function(a){return a.replace(/(\r\n|\r|\n)/g,"\n")};
goog.string.normalizeWhitespace=function(a){return a.replace(/\xa0|\s/g," ")};goog.string.normalizeSpaces=function(a){return a.replace(/\xa0|[ \t]+/g," ")};goog.string.collapseBreakingSpaces=function(a){return a.replace(/[\t\r\n ]+/g," ").replace(/^[\t\r\n ]+|[\t\r\n ]+$/g,"")};goog.string.trim=goog.TRUSTED_SITE&&String.prototype.trim?function(a){return a.trim()}:function(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")};goog.string.trimLeft=function(a){return a.replace(/^[\s\xa0]+/,"")};
goog.string.trimRight=function(a){return a.replace(/[\s\xa0]+$/,"")};goog.string.caseInsensitiveCompare=function(a,b){var c=String(a).toLowerCase(),d=String(b).toLowerCase();return c<d?-1:c==d?0:1};
goog.string.numberAwareCompare_=function(a,b,c){if(a==b)return 0;if(!a)return-1;if(!b)return 1;for(var d=a.toLowerCase().match(c),e=b.toLowerCase().match(c),f=Math.min(d.length,e.length),g=0;g<f;g++){c=d[g];var h=e[g];if(c!=h)return a=parseInt(c,10),!isNaN(a)&&(b=parseInt(h,10),!isNaN(b)&&a-b)?a-b:c<h?-1:1}return d.length!=e.length?d.length-e.length:a<b?-1:1};goog.string.intAwareCompare=function(a,b){return goog.string.numberAwareCompare_(a,b,/\d+|\D+/g)};
goog.string.floatAwareCompare=function(a,b){return goog.string.numberAwareCompare_(a,b,/\d+|\.\d+|\D+/g)};goog.string.numerateCompare=goog.string.floatAwareCompare;goog.string.urlEncode=function(a){return encodeURIComponent(String(a))};goog.string.urlDecode=function(a){return decodeURIComponent(a.replace(/\+/g," "))};goog.string.newLineToBr=function(a,b){return a.replace(/(\r\n|\r|\n)/g,b?"<br />":"<br>")};
goog.string.htmlEscape=function(a,b){if(b)a=a.replace(goog.string.AMP_RE_,"&amp;").replace(goog.string.LT_RE_,"&lt;").replace(goog.string.GT_RE_,"&gt;").replace(goog.string.QUOT_RE_,"&quot;").replace(goog.string.SINGLE_QUOTE_RE_,"&#39;").replace(goog.string.NULL_RE_,"&#0;"),goog.string.DETECT_DOUBLE_ESCAPING&&(a=a.replace(goog.string.E_RE_,"&#101;"));else{if(!goog.string.ALL_RE_.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(goog.string.AMP_RE_,"&amp;"));-1!=a.indexOf("<")&&(a=a.replace(goog.string.LT_RE_,
"&lt;"));-1!=a.indexOf(">")&&(a=a.replace(goog.string.GT_RE_,"&gt;"));-1!=a.indexOf('"')&&(a=a.replace(goog.string.QUOT_RE_,"&quot;"));-1!=a.indexOf("'")&&(a=a.replace(goog.string.SINGLE_QUOTE_RE_,"&#39;"));-1!=a.indexOf("\x00")&&(a=a.replace(goog.string.NULL_RE_,"&#0;"));goog.string.DETECT_DOUBLE_ESCAPING&&-1!=a.indexOf("e")&&(a=a.replace(goog.string.E_RE_,"&#101;"))}return a};goog.string.AMP_RE_=/&/g;goog.string.LT_RE_=/</g;goog.string.GT_RE_=/>/g;goog.string.QUOT_RE_=/"/g;
goog.string.SINGLE_QUOTE_RE_=/'/g;goog.string.NULL_RE_=/\x00/g;goog.string.E_RE_=/e/g;goog.string.ALL_RE_=goog.string.DETECT_DOUBLE_ESCAPING?/[\x00&<>"'e]/:/[\x00&<>"']/;goog.string.unescapeEntities=function(a){return goog.string.contains(a,"&")?!goog.string.FORCE_NON_DOM_HTML_UNESCAPING&&"document"in goog.global?goog.string.unescapeEntitiesUsingDom_(a):goog.string.unescapePureXmlEntities_(a):a};
goog.string.unescapeEntitiesWithDocument=function(a,b){return goog.string.contains(a,"&")?goog.string.unescapeEntitiesUsingDom_(a,b):a};
goog.string.unescapeEntitiesUsingDom_=function(a,b){var c={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'},d;d=b?b.createElement("div"):goog.global.document.createElement("div");return a.replace(goog.string.HTML_ENTITY_PATTERN_,function(a,b){var e=c[a];if(e)return e;if("#"==b.charAt(0)){var f=Number("0"+b.substr(1));isNaN(f)||(e=String.fromCharCode(f))}e||(d.innerHTML=a+" ",e=d.firstChild.nodeValue.slice(0,-1));return c[a]=e})};
goog.string.unescapePureXmlEntities_=function(a){return a.replace(/&([^;]+);/g,function(a,c){switch(c){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:if("#"==c.charAt(0)){var b=Number("0"+c.substr(1));if(!isNaN(b))return String.fromCharCode(b)}return a}})};goog.string.HTML_ENTITY_PATTERN_=/&([^;\s<&]+);?/g;goog.string.whitespaceEscape=function(a,b){return goog.string.newLineToBr(a.replace(/  /g," &#160;"),b)};
goog.string.preserveSpaces=function(a){return a.replace(/(^|[\n ]) /g,"$1"+goog.string.Unicode.NBSP)};goog.string.stripQuotes=function(a,b){for(var c=b.length,d=0;d<c;d++){var e=1==c?b:b.charAt(d);if(a.charAt(0)==e&&a.charAt(a.length-1)==e)return a.substring(1,a.length-1)}return a};goog.string.truncate=function(a,b,c){c&&(a=goog.string.unescapeEntities(a));a.length>b&&(a=a.substring(0,b-3)+"...");c&&(a=goog.string.htmlEscape(a));return a};
goog.string.truncateMiddle=function(a,b,c,d){c&&(a=goog.string.unescapeEntities(a));if(d&&a.length>b){d>b&&(d=b);var e=a.length-d;a=a.substring(0,b-d)+"..."+a.substring(e)}else a.length>b&&(d=Math.floor(b/2),e=a.length-d,a=a.substring(0,d+b%2)+"..."+a.substring(e));c&&(a=goog.string.htmlEscape(a));return a};goog.string.specialEscapeChars_={"\x00":"\\0","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\x0B",'"':'\\"',"\\":"\\\\","<":"<"};goog.string.jsEscapeCache_={"'":"\\'"};
goog.string.quote=function(a){a=String(a);for(var b=['"'],c=0;c<a.length;c++){var d=a.charAt(c),e=d.charCodeAt(0);b[c+1]=goog.string.specialEscapeChars_[d]||(31<e&&127>e?d:goog.string.escapeChar(d))}b.push('"');return b.join("")};goog.string.escapeString=function(a){for(var b=[],c=0;c<a.length;c++)b[c]=goog.string.escapeChar(a.charAt(c));return b.join("")};
goog.string.escapeChar=function(a){if(a in goog.string.jsEscapeCache_)return goog.string.jsEscapeCache_[a];if(a in goog.string.specialEscapeChars_)return goog.string.jsEscapeCache_[a]=goog.string.specialEscapeChars_[a];var b,c=a.charCodeAt(0);if(31<c&&127>c)b=a;else{if(256>c){if(b="\\x",16>c||256<c)b+="0"}else b="\\u",4096>c&&(b+="0");b+=c.toString(16).toUpperCase()}return goog.string.jsEscapeCache_[a]=b};goog.string.contains=function(a,b){return-1!=a.indexOf(b)};
goog.string.caseInsensitiveContains=function(a,b){return goog.string.contains(a.toLowerCase(),b.toLowerCase())};goog.string.countOf=function(a,b){return a&&b?a.split(b).length-1:0};goog.string.removeAt=function(a,b,c){var d=a;0<=b&&b<a.length&&0<c&&(d=a.substr(0,b)+a.substr(b+c,a.length-b-c));return d};goog.string.remove=function(a,b){return a.replace(b,"")};goog.string.removeAll=function(a,b){var c=new RegExp(goog.string.regExpEscape(b),"g");return a.replace(c,"")};
goog.string.replaceAll=function(a,b,c){b=new RegExp(goog.string.regExpEscape(b),"g");return a.replace(b,c.replace(/\$/g,"$$$$"))};goog.string.regExpEscape=function(a){return String(a).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};goog.string.repeat=String.prototype.repeat?function(a,b){return a.repeat(b)}:function(a,b){return Array(b+1).join(a)};
goog.string.padNumber=function(a,b,c){a=goog.isDef(c)?a.toFixed(c):String(a);c=a.indexOf(".");-1==c&&(c=a.length);return goog.string.repeat("0",Math.max(0,b-c))+a};goog.string.makeSafe=function(a){return null==a?"":String(a)};goog.string.buildString=function(a){return Array.prototype.join.call(arguments,"")};goog.string.getRandomString=function(){return Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^goog.now()).toString(36)};
goog.string.compareVersions=function(a,b){for(var c=0,d=goog.string.trim(String(a)).split("."),e=goog.string.trim(String(b)).split("."),f=Math.max(d.length,e.length),g=0;0==c&&g<f;g++){var h=d[g]||"",l=e[g]||"";do{h=/(\d*)(\D*)(.*)/.exec(h)||["","","",""];l=/(\d*)(\D*)(.*)/.exec(l)||["","","",""];if(0==h[0].length&&0==l[0].length)break;var c=0==h[1].length?0:parseInt(h[1],10),k=0==l[1].length?0:parseInt(l[1],10),c=goog.string.compareElements_(c,k)||goog.string.compareElements_(0==h[2].length,0==l[2].length)||
goog.string.compareElements_(h[2],l[2]),h=h[3],l=l[3]}while(0==c)}return c};goog.string.compareElements_=function(a,b){return a<b?-1:a>b?1:0};goog.string.hashCode=function(a){for(var b=0,c=0;c<a.length;++c)b=31*b+a.charCodeAt(c)>>>0;return b};goog.string.uniqueStringCounter_=2147483648*Math.random()|0;goog.string.createUniqueString=function(){return"goog_"+goog.string.uniqueStringCounter_++};goog.string.toNumber=function(a){var b=Number(a);return 0==b&&goog.string.isEmptyOrWhitespace(a)?NaN:b};
goog.string.isLowerCamelCase=function(a){return/^[a-z]+([A-Z][a-z]*)*$/.test(a)};goog.string.isUpperCamelCase=function(a){return/^([A-Z][a-z]*)+$/.test(a)};goog.string.toCamelCase=function(a){return String(a).replace(/\-([a-z])/g,function(a,c){return c.toUpperCase()})};goog.string.toSelectorCase=function(a){return String(a).replace(/([A-Z])/g,"-$1").toLowerCase()};
goog.string.toTitleCase=function(a,b){var c=goog.isString(b)?goog.string.regExpEscape(b):"\\s";return a.replace(new RegExp("(^"+(c?"|["+c+"]+":"")+")([a-z])","g"),function(a,b,c){return b+c.toUpperCase()})};goog.string.capitalize=function(a){return String(a.charAt(0)).toUpperCase()+String(a.substr(1)).toLowerCase()};goog.string.parseInt=function(a){isFinite(a)&&(a=String(a));return goog.isString(a)?/^\s*-?0x/i.test(a)?parseInt(a,16):parseInt(a,10):NaN};
goog.string.splitLimit=function(a,b,c){a=a.split(b);for(var d=[];0<c&&a.length;)d.push(a.shift()),c--;a.length&&d.push(a.join(b));return d};goog.string.lastComponent=function(a,b){if(b)"string"==typeof b&&(b=[b]);else return a;for(var c=-1,d=0;d<b.length;d++)if(""!=b[d]){var e=a.lastIndexOf(b[d]);e>c&&(c=e)}return-1==c?a:a.slice(c+1)};
goog.string.editDistance=function(a,b){var c=[],d=[];if(a==b)return 0;if(!a.length||!b.length)return Math.max(a.length,b.length);for(var e=0;e<b.length+1;e++)c[e]=e;for(e=0;e<a.length;e++){d[0]=e+1;for(var f=0;f<b.length;f++)d[f+1]=Math.min(d[f]+1,c[f+1]+1,c[f]+Number(a[e]!=b[f]));for(f=0;f<c.length;f++)c[f]=d[f]}return d[b.length]};goog.asserts={};goog.asserts.ENABLE_ASSERTS=goog.DEBUG;goog.asserts.AssertionError=function(a,b){b.unshift(a);goog.debug.Error.call(this,goog.string.subs.apply(null,b));b.shift();this.messagePattern=a};goog.inherits(goog.asserts.AssertionError,goog.debug.Error);goog.asserts.AssertionError.prototype.name="AssertionError";goog.asserts.DEFAULT_ERROR_HANDLER=function(a){throw a;};goog.asserts.errorHandler_=goog.asserts.DEFAULT_ERROR_HANDLER;
goog.asserts.doAssertFailure_=function(a,b,c,d){var e="Assertion failed";if(c)var e=e+(": "+c),f=d;else a&&(e+=": "+a,f=b);a=new goog.asserts.AssertionError(""+e,f||[]);goog.asserts.errorHandler_(a)};goog.asserts.setErrorHandler=function(a){goog.asserts.ENABLE_ASSERTS&&(goog.asserts.errorHandler_=a)};goog.asserts.assert=function(a,b,c){goog.asserts.ENABLE_ASSERTS&&!a&&goog.asserts.doAssertFailure_("",null,b,Array.prototype.slice.call(arguments,2));return a};
goog.asserts.fail=function(a,b){goog.asserts.ENABLE_ASSERTS&&goog.asserts.errorHandler_(new goog.asserts.AssertionError("Failure"+(a?": "+a:""),Array.prototype.slice.call(arguments,1)))};goog.asserts.assertNumber=function(a,b,c){goog.asserts.ENABLE_ASSERTS&&!goog.isNumber(a)&&goog.asserts.doAssertFailure_("Expected number but got %s: %s.",[goog.typeOf(a),a],b,Array.prototype.slice.call(arguments,2));return a};
goog.asserts.assertString=function(a,b,c){goog.asserts.ENABLE_ASSERTS&&!goog.isString(a)&&goog.asserts.doAssertFailure_("Expected string but got %s: %s.",[goog.typeOf(a),a],b,Array.prototype.slice.call(arguments,2));return a};goog.asserts.assertFunction=function(a,b,c){goog.asserts.ENABLE_ASSERTS&&!goog.isFunction(a)&&goog.asserts.doAssertFailure_("Expected function but got %s: %s.",[goog.typeOf(a),a],b,Array.prototype.slice.call(arguments,2));return a};
goog.asserts.assertObject=function(a,b,c){goog.asserts.ENABLE_ASSERTS&&!goog.isObject(a)&&goog.asserts.doAssertFailure_("Expected object but got %s: %s.",[goog.typeOf(a),a],b,Array.prototype.slice.call(arguments,2));return a};goog.asserts.assertArray=function(a,b,c){goog.asserts.ENABLE_ASSERTS&&!goog.isArray(a)&&goog.asserts.doAssertFailure_("Expected array but got %s: %s.",[goog.typeOf(a),a],b,Array.prototype.slice.call(arguments,2));return a};
goog.asserts.assertBoolean=function(a,b,c){goog.asserts.ENABLE_ASSERTS&&!goog.isBoolean(a)&&goog.asserts.doAssertFailure_("Expected boolean but got %s: %s.",[goog.typeOf(a),a],b,Array.prototype.slice.call(arguments,2));return a};goog.asserts.assertElement=function(a,b,c){!goog.asserts.ENABLE_ASSERTS||goog.isObject(a)&&a.nodeType==goog.dom.NodeType.ELEMENT||goog.asserts.doAssertFailure_("Expected Element but got %s: %s.",[goog.typeOf(a),a],b,Array.prototype.slice.call(arguments,2));return a};
goog.asserts.assertInstanceof=function(a,b,c,d){!goog.asserts.ENABLE_ASSERTS||a instanceof b||goog.asserts.doAssertFailure_("Expected instanceof %s but got %s.",[goog.asserts.getType_(b),goog.asserts.getType_(a)],c,Array.prototype.slice.call(arguments,3));return a};goog.asserts.assertObjectPrototypeIsIntact=function(){for(var a in Object.prototype)goog.asserts.fail(a+" should not be enumerable in Object.prototype.")};
goog.asserts.getType_=function(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};goog.array={};goog.NATIVE_ARRAY_PROTOTYPES=goog.TRUSTED_SITE;goog.array.ASSUME_NATIVE_FUNCTIONS=!1;goog.array.peek=function(a){return a[a.length-1]};goog.array.last=goog.array.peek;
goog.array.indexOf=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.indexOf)?function(a,b,c){goog.asserts.assert(null!=a.length);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(goog.isString(a))return goog.isString(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};
goog.array.lastIndexOf=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.lastIndexOf)?function(a,b,c){goog.asserts.assert(null!=a.length);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(goog.isString(a))return goog.isString(b)&&1==b.length?a.lastIndexOf(b,c):-1;for(;0<=c;c--)if(c in a&&a[c]===b)return c;return-1};
goog.array.forEach=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.forEach)?function(a,b,c){goog.asserts.assert(null!=a.length);Array.prototype.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=goog.isString(a)?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)};goog.array.forEachRight=function(a,b,c){for(var d=a.length,e=goog.isString(a)?a.split(""):a,d=d-1;0<=d;--d)d in e&&b.call(c,e[d],d,a)};
goog.array.filter=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.filter)?function(a,b,c){goog.asserts.assert(null!=a.length);return Array.prototype.filter.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=[],f=0,g=goog.isString(a)?a.split(""):a,h=0;h<d;h++)if(h in g){var l=g[h];b.call(c,l,h,a)&&(e[f++]=l)}return e};
goog.array.map=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.map)?function(a,b,c){goog.asserts.assert(null!=a.length);return Array.prototype.map.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=Array(d),f=goog.isString(a)?a.split(""):a,g=0;g<d;g++)g in f&&(e[g]=b.call(c,f[g],g,a));return e};
goog.array.reduce=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.reduce)?function(a,b,c,d){goog.asserts.assert(null!=a.length);d&&(b=goog.bind(b,d));return Array.prototype.reduce.call(a,b,c)}:function(a,b,c,d){var e=c;goog.array.forEach(a,function(c,g){e=b.call(d,e,c,g,a)});return e};
goog.array.reduceRight=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.reduceRight)?function(a,b,c,d){goog.asserts.assert(null!=a.length);goog.asserts.assert(null!=b);d&&(b=goog.bind(b,d));return Array.prototype.reduceRight.call(a,b,c)}:function(a,b,c,d){var e=c;goog.array.forEachRight(a,function(c,g){e=b.call(d,e,c,g,a)});return e};
goog.array.some=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.some)?function(a,b,c){goog.asserts.assert(null!=a.length);return Array.prototype.some.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=goog.isString(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&b.call(c,e[f],f,a))return!0;return!1};
goog.array.every=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.every)?function(a,b,c){goog.asserts.assert(null!=a.length);return Array.prototype.every.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=goog.isString(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&!b.call(c,e[f],f,a))return!1;return!0};goog.array.count=function(a,b,c){var d=0;goog.array.forEach(a,function(a,f,g){b.call(c,a,f,g)&&++d},c);return d};
goog.array.find=function(a,b,c){b=goog.array.findIndex(a,b,c);return 0>b?null:goog.isString(a)?a.charAt(b):a[b]};goog.array.findIndex=function(a,b,c){for(var d=a.length,e=goog.isString(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&b.call(c,e[f],f,a))return f;return-1};goog.array.findRight=function(a,b,c){b=goog.array.findIndexRight(a,b,c);return 0>b?null:goog.isString(a)?a.charAt(b):a[b]};
goog.array.findIndexRight=function(a,b,c){for(var d=a.length,e=goog.isString(a)?a.split(""):a,d=d-1;0<=d;d--)if(d in e&&b.call(c,e[d],d,a))return d;return-1};goog.array.contains=function(a,b){return 0<=goog.array.indexOf(a,b)};goog.array.isEmpty=function(a){return 0==a.length};goog.array.clear=function(a){if(!goog.isArray(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0};goog.array.insert=function(a,b){goog.array.contains(a,b)||a.push(b)};
goog.array.insertAt=function(a,b,c){goog.array.splice(a,c,0,b)};goog.array.insertArrayAt=function(a,b,c){goog.partial(goog.array.splice,a,c,0).apply(null,b)};goog.array.insertBefore=function(a,b,c){var d;2==arguments.length||0>(d=goog.array.indexOf(a,c))?a.push(b):goog.array.insertAt(a,b,d)};goog.array.remove=function(a,b){var c=goog.array.indexOf(a,b),d;(d=0<=c)&&goog.array.removeAt(a,c);return d};
goog.array.removeLast=function(a,b){var c=goog.array.lastIndexOf(a,b);return 0<=c?(goog.array.removeAt(a,c),!0):!1};goog.array.removeAt=function(a,b){goog.asserts.assert(null!=a.length);return 1==Array.prototype.splice.call(a,b,1).length};goog.array.removeIf=function(a,b,c){b=goog.array.findIndex(a,b,c);return 0<=b?(goog.array.removeAt(a,b),!0):!1};goog.array.removeAllIf=function(a,b,c){var d=0;goog.array.forEachRight(a,function(e,f){b.call(c,e,f,a)&&goog.array.removeAt(a,f)&&d++});return d};
goog.array.concat=function(a){return Array.prototype.concat.apply(Array.prototype,arguments)};goog.array.join=function(a){return Array.prototype.concat.apply(Array.prototype,arguments)};goog.array.toArray=function(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[]};goog.array.clone=goog.array.toArray;
goog.array.extend=function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(goog.isArrayLike(d)){var e=a.length||0,f=d.length||0;a.length=e+f;for(var g=0;g<f;g++)a[e+g]=d[g]}else a.push(d)}};goog.array.splice=function(a,b,c,d){goog.asserts.assert(null!=a.length);return Array.prototype.splice.apply(a,goog.array.slice(arguments,1))};
goog.array.slice=function(a,b,c){goog.asserts.assert(null!=a.length);return 2>=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)};goog.array.removeDuplicates=function(a,b,c){b=b||a;var d=function(a){return goog.isObject(a)?"o"+goog.getUid(a):(typeof a).charAt(0)+a};c=c||d;for(var d={},e=0,f=0;f<a.length;){var g=a[f++],h=c(g);Object.prototype.hasOwnProperty.call(d,h)||(d[h]=!0,b[e++]=g)}b.length=e};
goog.array.binarySearch=function(a,b,c){return goog.array.binarySearch_(a,c||goog.array.defaultCompare,!1,b)};goog.array.binarySelect=function(a,b,c){return goog.array.binarySearch_(a,b,!0,void 0,c)};goog.array.binarySearch_=function(a,b,c,d,e){for(var f=0,g=a.length,h;f<g;){var l=f+g>>1,k;k=c?b.call(e,a[l],l,a):b(d,a[l]);0<k?f=l+1:(g=l,h=!k)}return h?f:~f};goog.array.sort=function(a,b){a.sort(b||goog.array.defaultCompare)};
goog.array.stableSort=function(a,b){for(var c=Array(a.length),d=0;d<a.length;d++)c[d]={index:d,value:a[d]};var e=b||goog.array.defaultCompare;goog.array.sort(c,function(a,b){return e(a.value,b.value)||a.index-b.index});for(d=0;d<a.length;d++)a[d]=c[d].value};goog.array.sortByKey=function(a,b,c){var d=c||goog.array.defaultCompare;goog.array.sort(a,function(a,c){return d(b(a),b(c))})};goog.array.sortObjectsByKey=function(a,b,c){goog.array.sortByKey(a,function(a){return a[b]},c)};
goog.array.isSorted=function(a,b,c){b=b||goog.array.defaultCompare;for(var d=1;d<a.length;d++){var e=b(a[d-1],a[d]);if(0<e||0==e&&c)return!1}return!0};goog.array.equals=function(a,b,c){if(!goog.isArrayLike(a)||!goog.isArrayLike(b)||a.length!=b.length)return!1;var d=a.length;c=c||goog.array.defaultCompareEquality;for(var e=0;e<d;e++)if(!c(a[e],b[e]))return!1;return!0};
goog.array.compare3=function(a,b,c){c=c||goog.array.defaultCompare;for(var d=Math.min(a.length,b.length),e=0;e<d;e++){var f=c(a[e],b[e]);if(0!=f)return f}return goog.array.defaultCompare(a.length,b.length)};goog.array.defaultCompare=function(a,b){return a>b?1:a<b?-1:0};goog.array.inverseDefaultCompare=function(a,b){return-goog.array.defaultCompare(a,b)};goog.array.defaultCompareEquality=function(a,b){return a===b};
goog.array.binaryInsert=function(a,b,c){c=goog.array.binarySearch(a,b,c);return 0>c?(goog.array.insertAt(a,b,-(c+1)),!0):!1};goog.array.binaryRemove=function(a,b,c){b=goog.array.binarySearch(a,b,c);return 0<=b?goog.array.removeAt(a,b):!1};goog.array.bucket=function(a,b,c){for(var d={},e=0;e<a.length;e++){var f=a[e],g=b.call(c,f,e,a);goog.isDef(g)&&(d[g]||(d[g]=[])).push(f)}return d};goog.array.toObject=function(a,b,c){var d={};goog.array.forEach(a,function(e,f){d[b.call(c,e,f,a)]=e});return d};
goog.array.range=function(a,b,c){var d=[],e=0,f=a;c=c||1;void 0!==b&&(e=a,f=b);if(0>c*(f-e))return[];if(0<c)for(a=e;a<f;a+=c)d.push(a);else for(a=e;a>f;a+=c)d.push(a);return d};goog.array.repeat=function(a,b){for(var c=[],d=0;d<b;d++)c[d]=a;return c};goog.array.flatten=function(a){for(var b=[],c=0;c<arguments.length;c++){var d=arguments[c];if(goog.isArray(d))for(var e=0;e<d.length;e+=8192)for(var f=goog.array.slice(d,e,e+8192),f=goog.array.flatten.apply(null,f),g=0;g<f.length;g++)b.push(f[g]);else b.push(d)}return b};
goog.array.rotate=function(a,b){goog.asserts.assert(null!=a.length);a.length&&(b%=a.length,0<b?Array.prototype.unshift.apply(a,a.splice(-b,b)):0>b&&Array.prototype.push.apply(a,a.splice(0,-b)));return a};goog.array.moveItem=function(a,b,c){goog.asserts.assert(0<=b&&b<a.length);goog.asserts.assert(0<=c&&c<a.length);b=Array.prototype.splice.call(a,b,1);Array.prototype.splice.call(a,c,0,b[0])};
goog.array.zip=function(a){if(!arguments.length)return[];for(var b=[],c=arguments[0].length,d=1;d<arguments.length;d++)arguments[d].length<c&&(c=arguments[d].length);for(d=0;d<c;d++){for(var e=[],f=0;f<arguments.length;f++)e.push(arguments[f][d]);b.push(e)}return b};goog.array.shuffle=function(a,b){for(var c=b||Math.random,d=a.length-1;0<d;d--){var e=Math.floor(c()*(d+1)),f=a[d];a[d]=a[e];a[e]=f}};goog.array.copyByIndex=function(a,b){var c=[];goog.array.forEach(b,function(b){c.push(a[b])});return c};
goog.array.concatMap=function(a,b,c){return goog.array.concat.apply([],goog.array.map(a,b,c))};var module$src$showad$utils={};function log$$module$src$showad$utils(a){window.__ATA_DEBUG&&"undefined"!==typeof console&&console.info&&console.info(new Date," -> ",a.replace("http","htt_p"))}
function AdBase$$module$src$showad$utils(){var a=this;this.getFlashVersion=function(){var b=0,c;if(a.isDefined(navigator.plugins)&&"object"===typeof navigator.plugins["Shockwave Flash"])!(c=navigator.plugins["Shockwave Flash"].description)||a.isDefined(navigator.mimeTypes)&&navigator.mimeTypes["application/x-shockwave-flash"]&&!navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin||(c=c.replace(/^.*\s+(\S+\s+\S+$)/,"$1"),b=parseInt(c.replace(/^(.*)\..*$/,"$1"),10));else if(a.isDefined(window.ActiveXObject))try{if(c=
(new ActiveXObject("ShockwaveFlash.ShockwaveFlash")).GetVariable("$version"))c=c.split(" ")[1].split(","),b=parseInt(c[0],10)}catch(d){}return b};this.isDefined=function(a){return"undefined"!==typeof a};this.notEmptyVar=function(b){return a.isDefined(b)&&null!==b&&""!==b+""};this.getIEVersion=function(){var a=navigator.userAgent,c=a.indexOf("MSIE ");return-1===c?0:parseFloat(a.substring(c+5,a.indexOf(";",c)))};this.isNetscape=function(){var a=navigator.userAgent;return null!==a.match(/\d\sNavigator\/\d/)||
null!==a.match(/\d\sNetscape\/\d/)};this.isPresto=function(){return-1!==navigator.userAgent.indexOf("Opera")};this.isArray=function(a){return"[object Array]"===Object.prototype.toString.call(a)};this.getScreenSize=function(){var a=0,c=0;"number"===typeof window.innerHeight?(a=window.innerHeight,c=window.innerWidth):document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)&&(a=document.documentElement.clientHeight,c=document.documentElement.clientWidth);
return{width:c,height:a}};this.getSlotPosition=function(b){b=document.getElementById(b);for(var c=a.getScreenSize(),d=b?b.offsetTop:0;b&&null!==b.offsetParent&&(b=b.offsetParent,d+=b.offsetTop,"BODY"!==b.tagName););(d||0===d)&&c.height?d>c.height?d="btf":d="atf":d="";return d};this.getLang=function(){for(var a=document.getElementsByTagName("meta"),c,d=!1,e=0;e<a.length;e++)if(c=!1,a[e]&&(c=a[e].getAttribute("http-equiv")||a[e].httpEquiv),c&&"content-language"===c.toLowerCase()){d=(d=a[e].getAttribute("content")||
a[e].content)||!1;break}return d}}module$src$showad$utils.log=log$$module$src$showad$utils;module$src$showad$utils.AdBase=AdBase$$module$src$showad$utils;var module$src$constants={},SCRIPT_SRC$$module$src$constants="//s.pubmine.com/showad.js",SLOT_ID_PREFIX$$module$src$constants="automattic-id-",SERVER_RESPONSE_HANDLER_NAME$$module$src$constants="automattic_jsonp_handler",PASSBACK_RECEIVER_NAME$$module$src$constants="automattic-passback-receiver",PASSBACK_SRC$$module$src$constants="//s.pubmine.com/passback.html",AD_SERVER_URL$$module$src$constants="//s.pubmine.com/",LOG_URL$$module$src$constants="//s.pubmine.com/jslog",STAT_URL$$module$src$constants=
"//s.pubmine.com/hbstat",LIB_NAME$$module$src$constants="__ATA",LIB_VERSION$$module$src$constants="1.0.10",PASSBACK_ORIGIN$$module$src$constants=window.location.protocol+"//s.pubmine.com";module$src$constants.SCRIPT_SRC=SCRIPT_SRC$$module$src$constants;module$src$constants.SLOT_ID_PREFIX=SLOT_ID_PREFIX$$module$src$constants;module$src$constants.SERVER_RESPONSE_HANDLER_NAME=SERVER_RESPONSE_HANDLER_NAME$$module$src$constants;module$src$constants.PASSBACK_RECEIVER_NAME=PASSBACK_RECEIVER_NAME$$module$src$constants;
module$src$constants.PASSBACK_SRC=PASSBACK_SRC$$module$src$constants;module$src$constants.AD_SERVER_URL=AD_SERVER_URL$$module$src$constants;module$src$constants.LOG_URL=LOG_URL$$module$src$constants;module$src$constants.STAT_URL=STAT_URL$$module$src$constants;module$src$constants.LIB_NAME=LIB_NAME$$module$src$constants;module$src$constants.LIB_VERSION=LIB_VERSION$$module$src$constants;module$src$constants.PASSBACK_ORIGIN=PASSBACK_ORIGIN$$module$src$constants;var module$src$showad$ad_renderer={};
function AdRenderer$$module$src$showad$ad_renderer(a){function b(a){a=a.childNodes;for(var c=a.length;c--;){var d=a[c];if(0<d.offsetWidth||0<d.offsetHeight||d.childNodes.length&&b(d))return!0}return!1}function c(a){a=a.body;if(9>e.getIEVersion())return b(a);var c=a.style.position;a.style.position="absolute";var d=0<a.offsetWidth||0<a.offsetHeight;a.style.position=c;return d}function d(a){var b=Math.max(a.body.scrollHeight,a.body.offsetHeight);return 0<Math.max(a.body.scrollWidth,a.body.offsetWidth)||
0<b}var e=this;this.adManager=a;this.renderSlot=function(a,b){module$src$showad$utils.log('<span class="green">Slot rendering method is invoked for ID:: '+b.slotId+" with "+b.type+" content</span>");a?this.renderSyncSlot(b):this.renderAsyncSlot(b)};this.renderSyncSlot=function(a){"adj"===a.type?document.write('<script type="text/javascript">'+a.data+"\x3c/script>"):document.write(a.data)};this.renderAsyncSlot=function(a){var b=document.getElementById(a.slotId);if(!b)return module$src$showad$utils.log("Not ready to render: "+
a.slotId),!1;var c=e.prepareFrame(a);c.src="javascript:\"<html><body style='background:transparent;margin:0%;'></body></html>\"";var d="";a.collapseMode&&(c.width=0,c.height=0,c.style.width="0px",c.style.height="0px",window.__ASL__resizer_fn=e.resizeContainer,d='<script type="text/javascript">\n                    function invokeResize(){\n                        setTimeout(function(){\n                            try {\n                                window.parent["__ASL__resizer_fn"](\n                                    window,"'+
a.slotId+'", '+a.width+", "+a.height+');\n                            } catch(err){}\n                        }, 100);\n                    }\n                    if (window.addEventListener) {\n                        window.addEventListener("load", invokeResize, true);\n                    } else {\n                        window.attachEvent("onload", function() {\n                            return invokeResize.call(window, window.event);\n                        });\n                    }\n                \x3c/script>');
b.appendChild(c);switch(a.type){case "adi":a=a.data+d;break;default:a='<html><body style="background:transparent;margin:0%;">\n            <script type="text/javascript">var inDapIF=true;\x3c/script>\n            <script type="text/javascript">'+a.data+"\x3c/script>\n            "+d+"\n            </body></html>"}b=e.isNetscape();0!==e.getIEVersion()||b?(c=window.frames[c.name],c.contents=a,c.location.replace(e.getFifLocationIE())):(c=c.contentWindow?c.contentWindow.document:c.contentDocument,-1!==
navigator.userAgent.indexOf("Firefox")&&c.open("text/html","replace"),c.write(a),e.isPresto()||c.close());return!0};this.resizeContainer=function(a,b,h,l){var f=!1,g=!1,n=document.getElementById(b),q=a.frameElement,r=a.document;n&&(r.documentElement&&r.body&&(a.__ASL__resizer_counter||(a.__ASL__resizer_counter=0,g=d(r)),g||c(r)?(n.style.cssText="width: "+h+"px; height: "+l+"px;",f=!0):(a.__ASL__resizer_counter+=1,10>a.__ASL__resizer_counter&&a.setTimeout(function(){return e.resizeContainer(a,b,h,
l)},1E3))),!f&&1<a.__ASL__resizer_counter&&(n.style.cssText="width: 0px; height: 0px; position: absolute; overflow: hidden;"));q.width=h;q.style.width=h+"px";q.height=l;q.style.height=l+"px"};this.prepareFrame=function(a){var b=document.createElement("iframe"),c="border:none;",d=e.getFrameName(a.slotId);e.notEmptyVar(a.width)&&(c+="width:"+a.width+"px;",b.width=a.width);e.notEmptyVar(a.height)&&(c+="height:"+a.height+"px;",b.height=a.height);b.setAttribute("style",c);b.setAttribute("frameBorder",
"0");b.setAttribute("scrolling","no");b.name=d;b.id=d;return b};this.getFifLocationIE=function(){return e.isNetscape()&&!e.adManager.isSyncMode()?"javascript:document.write(window.contents);":"javascript:window.contents"};this.getFrameName=function(a){return"fif_slot_"+module$src$constants.SLOT_ID_PREFIX+"_"+a};this.addEvent=function(a,b,c,d){a.addEventListener?a.addEventListener(b,c,d):a.attachEvent("on"+b,function(){return c.call(a,window.event)})}}
AdRenderer$$module$src$showad$ad_renderer.prototype=new module$src$showad$utils.AdBase;AdRenderer$$module$src$showad$ad_renderer.prototype.constructor=AdRenderer$$module$src$showad$ad_renderer;module$src$showad$ad_renderer.AdRenderer=AdRenderer$$module$src$showad$ad_renderer;var module$src$showad$ad_manager={};
function AdManager$$module$src$showad$ad_manager(a){var b=this,c="section_id tz fl click3rd slot_id ref pos v".split(" ");this.slotsDefs={};this.customUserGroup=this.tuuidCookieChecked=this.passbackInited=!1;this.globalPart=a;this.adRenderer=new module$src$showad$ad_renderer.AdRenderer(this);this.getSlotDefById=function(a){return this.slotsDefs[a]};this.initPassbackWorkflow=function(){if(!b.passbackInited){b.passbackInited=!0;var a=document.createElement("iframe");a.style.cssText="position:absolute;left:-1000px;top:-1000px;border:0 solid;width:0;height:0;";
a.width=a.height=0;a.name=module$src$constants.PASSBACK_RECEIVER_NAME;a.src=module$src$constants.PASSBACK_SRC+"#"+location.protocol+"//"+location.host;document.body.appendChild(a);b.onPassbackReceived=function(a){var c,d=a.id,d=d&&d.replace("fif_slot_"+module$src$constants.SLOT_ID_PREFIX+"_","");if((c=b.getSlotDefById(d))&&c.subs&&c.subs.length){try{a.id=a.name="dead_"+a.name;a.style.cssText="border:none;position:absolute;width:0;height:0;left:-10000px;top:-10000px;";var e=a.contentWindow;e.name=
a.id;e&&e.document&&"complete"===e.document.readyState&&a.parentNode&&a.parentNode.removeChild(a)}catch(l){}a=c.subs.shift();c.passbackUrl&&((new Image).src=c.passbackUrl);a.noad_url&&((new Image).src=a.noad_url);c={slotId:d,sectionId:c.sectionId,collapseMode:c.collapseMode,data:a.data,type:c.type,width:c.width,height:c.height,subs:c.subs,passbackUrl:a.passback_url};b.slotsDefs[c.slotId]=c;b.adRenderer.renderSlot(b.isSyncMode(),c)}};b.adRenderer.addEvent(window,"message",function(a){if(a.origin===
module$src$constants.PASSBACK_ORIGIN&&a.source){a=a.source;for(var c=a.parent;c!==window&&c!==window.top;)a=c,c=c.parent;if(a&&c===window)try{b.onPassbackReceived(a.frameElement)}catch(g){module$src$showad$utils.log("No access to iframe from postMessage "+g)}}})}};this.displayAd=function(a,c){module$src$showad$utils.log('<span class="blue">displayAd is called for ID:</span> '+a);var d=b.globalPart.ids;d&&d[a]&&delete d[a];var e,h,l,k,t,n,q,d=document.getElementById(a);(l=d.getAttribute("data-size"))?
(l=$jscomp.makeIterator(l.split("x")),k=l.next().value,t=l.next().value):(k=parseInt(d.style.width,10),t=parseInt(d.style.height,10));h=d.getAttribute("data-type")||"adj";l=d.getAttribute("data-collapse")||!1;q=b.globalPart.customParams;if(c)for(e in n={},c)c.hasOwnProperty(e)&&(n[e]=c[e]);if(q)for(e in n||(n={}),q)q.hasOwnProperty(e)&&!n.hasOwnProperty(e)&&(n[e]=q[e]);n={slotId:a,sectionId:d.getAttribute("data-section"),forcedUrl:d.getAttribute("data-forcedurl"),customParams:n,collapseMode:l,type:h,
width:k,height:t};e=n.forcedUrl||b.generateAdServerUrl(module$src$constants.AD_SERVER_URL,n);"before"===l&&(d.style.cssText="width: 0px; height: 0px; position: absolute; overflow: hidden;");module$src$showad$utils.log("Ad server full URL: "+e);b.requestAd(n,e)};this.addJsonpHandler=function(a,b){var c,d=this.serverResponseHandler,e=this;c=(module$src$constants.SERVER_RESPONSE_HANDLER_NAME+"_"+a.slotId).replace(/[^a-zA-Z0-9_\$]/g,"_");window[c]=function(b){try{delete window[c]}catch(n){window[c]=void 0}var f=
document.getElementById("slots_script_"+a.slotId);f&&f.parentNode.removeChild(f);d.call(e,b,a)};var l=b.indexOf("?");return b+((-1<l?"&":"?")+"callbackPubmine="+c)};this.requestAd=function(a,c){var d,e,h;c=b.addJsonpHandler(a,c);d="slots_script_"+a.slotId;b.isSyncMode()?(d='<script type="text/javascript" src="{{url}}" id="{{id}}">\x3c/script>'.replace("{{url}}",c).replace("{{id}}",d),document.write(d)):(e=document.createElement("script"),e.async=!0,e.type="text/javascript",e.src=c,e.id=d,h=document.getElementsByTagName("script")[0],
b.isPresto()?setTimeout(function(){h.parentNode.insertBefore(e,h)},0):h.parentNode.insertBefore(e,h))};this.serverResponseHandler=function(a,c){var d=c.customParams;if(a&&a.data)c.data=a.data,c.passbackUrl=a.passback_url,c.subs=a.subs,b.slotsDefs[c.slotId]=c,c.subs&&c.subs.length&&b.initPassbackWorkflow(),d&&"function"===typeof d.renderStartCallback&&d.renderStartCallback(c),b.adRenderer.renderSlot(b.isSyncMode(),c);else if(d&&"function"===typeof d.noContentCallback&&d.noContentCallback(c,a),c.collapseMode&&
(d=document.getElementById(c.slotId)))d.style.cssText="width: 0px; height: 0px; position: absolute;"};this.checkNotRendered=function(){var a,b,c;b=this.globalPart.ids;if(null!==b&&"object"===typeof b){try{c=this.globalPart.customParams||{}}catch(g){return}for(a in b)b.hasOwnProperty(a)&&this.displayAd(a,c)}};this.generateAdServerUrl=function(a,c){c=c||{};var d,e,h,l;d="https:"===document.location.protocol;h=[];l=this.getLang();e=a.replace(/^http:|^https:|\?$/im,"");e=(d?"https:":"http:")+e+c.type+
"/";d="";top!==self&&(d=encodeURIComponent(document.referrer));d=["tz="+(new Date).getTimezoneOffset(),"fl="+b.getFlashVersion(),"ref="+d||"","pos="+b.getSlotPosition(c.slotId)||"","v="+module$src$constants.LIB_VERSION,"sfv=2"];e+=c.sectionId+"/"+c.width+"/"+c.height+"/";h=h.concat(d);d=b.globalPart.bidBucket.getBidsForSize(c.width+"x"+c.height);b.addCustomParams({hb:JSON.stringify(d)},h);b.checkCookie();b.customUserGroup&&b.addCustomParams({user_group:b.customUserGroup},h);b.addCustomParams(c.customParams,
h);"undefined"!==typeof b.globalPart.click3rd&&h.push("click3rd="+encodeURIComponent(b.globalPart.click3rd));!1!==l&&h.push("lang="+encodeURIComponent(l));return e+"?"+h.join("&")+"&ord="+Math.floor(1E13*Math.random())};this.checkCookie=function(){if(!b.tuuidCookieChecked){var a=("; "+document.cookie).match(";\\s*tuuid=([^;]+)");a&&a[1]||(b.tuuidCookieChecked=!0,b.customUserGroup=Math.min(15,Math.floor(16*Math.random())).toString(16))}};this.addCustomParams=function(a,e){var d,g;if("undefined"!==
typeof a)a:for(d in a){g=0;for(var h=c.length;g<h;g++)if(c[g]+""===d+"")continue a;if(a.hasOwnProperty(d)){g=a[d];if(b.isArray(g)){for(h=0;h<g.length;h++)g[h]=encodeURIComponent(g[h]);e.push(d+"="+g.join("|"));continue a}e.push(d+"="+encodeURIComponent(g))}}};this.isSyncMode=function(){return!0===b.globalPart.isSync};this.checkNotRendered()}AdManager$$module$src$showad$ad_manager.prototype=new module$src$showad$utils.AdBase;AdManager$$module$src$showad$ad_manager.prototype.constructor=AdManager$$module$src$showad$ad_manager;
module$src$showad$ad_manager.AdManager=AdManager$$module$src$showad$ad_manager;goog.uri={};goog.uri.utils={};goog.uri.utils.CharCode_={AMPERSAND:38,EQUAL:61,HASH:35,QUESTION:63};goog.uri.utils.buildFromEncodedParts=function(a,b,c,d,e,f,g){var h="";a&&(h+=a+":");c&&(h+="//",b&&(h+=b+"@"),h+=c,d&&(h+=":"+d));e&&(h+=e);f&&(h+="?"+f);g&&(h+="#"+g);return h};goog.uri.utils.splitRe_=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/;
goog.uri.utils.ComponentIndex={SCHEME:1,USER_INFO:2,DOMAIN:3,PORT:4,PATH:5,QUERY_DATA:6,FRAGMENT:7};goog.uri.utils.split=function(a){return a.match(goog.uri.utils.splitRe_)};goog.uri.utils.decodeIfPossible_=function(a,b){return a?b?decodeURI(a):decodeURIComponent(a):a};goog.uri.utils.getComponentByIndex_=function(a,b){return goog.uri.utils.split(b)[a]||null};goog.uri.utils.getScheme=function(a){return goog.uri.utils.getComponentByIndex_(goog.uri.utils.ComponentIndex.SCHEME,a)};
goog.uri.utils.getEffectiveScheme=function(a){a=goog.uri.utils.getScheme(a);!a&&goog.global.self&&goog.global.self.location&&(a=goog.global.self.location.protocol,a=a.substr(0,a.length-1));return a?a.toLowerCase():""};goog.uri.utils.getUserInfoEncoded=function(a){return goog.uri.utils.getComponentByIndex_(goog.uri.utils.ComponentIndex.USER_INFO,a)};goog.uri.utils.getUserInfo=function(a){return goog.uri.utils.decodeIfPossible_(goog.uri.utils.getUserInfoEncoded(a))};
goog.uri.utils.getDomainEncoded=function(a){return goog.uri.utils.getComponentByIndex_(goog.uri.utils.ComponentIndex.DOMAIN,a)};goog.uri.utils.getDomain=function(a){return goog.uri.utils.decodeIfPossible_(goog.uri.utils.getDomainEncoded(a),!0)};goog.uri.utils.getPort=function(a){return Number(goog.uri.utils.getComponentByIndex_(goog.uri.utils.ComponentIndex.PORT,a))||null};goog.uri.utils.getPathEncoded=function(a){return goog.uri.utils.getComponentByIndex_(goog.uri.utils.ComponentIndex.PATH,a)};
goog.uri.utils.getPath=function(a){return goog.uri.utils.decodeIfPossible_(goog.uri.utils.getPathEncoded(a),!0)};goog.uri.utils.getQueryData=function(a){return goog.uri.utils.getComponentByIndex_(goog.uri.utils.ComponentIndex.QUERY_DATA,a)};goog.uri.utils.getFragmentEncoded=function(a){var b=a.indexOf("#");return 0>b?null:a.substr(b+1)};goog.uri.utils.setFragmentEncoded=function(a,b){return goog.uri.utils.removeFragment(a)+(b?"#"+b:"")};goog.uri.utils.getFragment=function(a){return goog.uri.utils.decodeIfPossible_(goog.uri.utils.getFragmentEncoded(a))};
goog.uri.utils.getHost=function(a){a=goog.uri.utils.split(a);return goog.uri.utils.buildFromEncodedParts(a[goog.uri.utils.ComponentIndex.SCHEME],a[goog.uri.utils.ComponentIndex.USER_INFO],a[goog.uri.utils.ComponentIndex.DOMAIN],a[goog.uri.utils.ComponentIndex.PORT])};goog.uri.utils.getOrigin=function(a){a=goog.uri.utils.split(a);return goog.uri.utils.buildFromEncodedParts(a[goog.uri.utils.ComponentIndex.SCHEME],null,a[goog.uri.utils.ComponentIndex.DOMAIN],a[goog.uri.utils.ComponentIndex.PORT])};
goog.uri.utils.getPathAndAfter=function(a){a=goog.uri.utils.split(a);return goog.uri.utils.buildFromEncodedParts(null,null,null,null,a[goog.uri.utils.ComponentIndex.PATH],a[goog.uri.utils.ComponentIndex.QUERY_DATA],a[goog.uri.utils.ComponentIndex.FRAGMENT])};goog.uri.utils.removeFragment=function(a){var b=a.indexOf("#");return 0>b?a:a.substr(0,b)};
goog.uri.utils.haveSameDomain=function(a,b){var c=goog.uri.utils.split(a),d=goog.uri.utils.split(b);return c[goog.uri.utils.ComponentIndex.DOMAIN]==d[goog.uri.utils.ComponentIndex.DOMAIN]&&c[goog.uri.utils.ComponentIndex.SCHEME]==d[goog.uri.utils.ComponentIndex.SCHEME]&&c[goog.uri.utils.ComponentIndex.PORT]==d[goog.uri.utils.ComponentIndex.PORT]};
goog.uri.utils.assertNoFragmentsOrQueries_=function(a){goog.asserts.assert(0>a.indexOf("#")&&0>a.indexOf("?"),"goog.uri.utils: Fragment or query identifiers are not supported: [%s]",a)};goog.uri.utils.parseQueryData=function(a,b){if(a)for(var c=a.split("&"),d=0;d<c.length;d++){var e=c[d].indexOf("="),f,g=null;0<=e?(f=c[d].substring(0,e),g=c[d].substring(e+1)):f=c[d];b(f,g?goog.string.urlDecode(g):"")}};
goog.uri.utils.appendQueryData_=function(a){if(a[1]){var b=a[0],c=b.indexOf("#");0<=c&&(a.push(b.substr(c)),a[0]=b=b.substr(0,c));c=b.indexOf("?");0>c?a[1]="?":c==b.length-1&&(a[1]=void 0)}return a.join("")};goog.uri.utils.appendKeyValuePairs_=function(a,b,c){if(goog.isArray(b)){goog.asserts.assertArray(b);for(var d=0;d<b.length;d++)goog.uri.utils.appendKeyValuePairs_(a,String(b[d]),c)}else null!=b&&c.push("&",a,""===b?"":"=",goog.string.urlEncode(b))};
goog.uri.utils.buildQueryDataBuffer_=function(a,b,c){goog.asserts.assert(0==Math.max(b.length-(c||0),0)%2,"goog.uri.utils: Key/value lists must be even in length.");for(c=c||0;c<b.length;c+=2)goog.uri.utils.appendKeyValuePairs_(b[c],b[c+1],a);return a};goog.uri.utils.buildQueryData=function(a,b){var c=goog.uri.utils.buildQueryDataBuffer_([],a,b);c[0]="";return c.join("")};goog.uri.utils.buildQueryDataBufferFromMap_=function(a,b){for(var c in b)goog.uri.utils.appendKeyValuePairs_(c,b[c],a);return a};
goog.uri.utils.buildQueryDataFromMap=function(a){a=goog.uri.utils.buildQueryDataBufferFromMap_([],a);a[0]="";return a.join("")};goog.uri.utils.appendParams=function(a,b){return goog.uri.utils.appendQueryData_(2==arguments.length?goog.uri.utils.buildQueryDataBuffer_([a],arguments[1],0):goog.uri.utils.buildQueryDataBuffer_([a],arguments,1))};goog.uri.utils.appendParamsFromMap=function(a,b){return goog.uri.utils.appendQueryData_(goog.uri.utils.buildQueryDataBufferFromMap_([a],b))};
goog.uri.utils.appendParam=function(a,b,c){a=[a,"&",b];goog.isDefAndNotNull(c)&&a.push("=",goog.string.urlEncode(c));return goog.uri.utils.appendQueryData_(a)};
goog.uri.utils.findParam_=function(a,b,c,d){for(var e=c.length;0<=(b=a.indexOf(c,b))&&b<d;){var f=a.charCodeAt(b-1);if(f==goog.uri.utils.CharCode_.AMPERSAND||f==goog.uri.utils.CharCode_.QUESTION)if(f=a.charCodeAt(b+e),!f||f==goog.uri.utils.CharCode_.EQUAL||f==goog.uri.utils.CharCode_.AMPERSAND||f==goog.uri.utils.CharCode_.HASH)return b;b+=e+1}return-1};goog.uri.utils.hashOrEndRe_=/#|$/;goog.uri.utils.hasParam=function(a,b){return 0<=goog.uri.utils.findParam_(a,0,b,a.search(goog.uri.utils.hashOrEndRe_))};
goog.uri.utils.getParamValue=function(a,b){var c=a.search(goog.uri.utils.hashOrEndRe_),d=goog.uri.utils.findParam_(a,0,b,c);if(0>d)return null;var e=a.indexOf("&",d);if(0>e||e>c)e=c;d+=b.length+1;return goog.string.urlDecode(a.substr(d,e-d))};goog.uri.utils.getParamValues=function(a,b){for(var c=a.search(goog.uri.utils.hashOrEndRe_),d=0,e,f=[];0<=(e=goog.uri.utils.findParam_(a,d,b,c));){d=a.indexOf("&",e);if(0>d||d>c)d=c;e+=b.length+1;f.push(goog.string.urlDecode(a.substr(e,d-e)))}return f};
goog.uri.utils.trailingQueryPunctuationRe_=/[?&]($|#)/;goog.uri.utils.removeParam=function(a,b){for(var c=a.search(goog.uri.utils.hashOrEndRe_),d=0,e,f=[];0<=(e=goog.uri.utils.findParam_(a,d,b,c));)f.push(a.substring(d,e)),d=Math.min(a.indexOf("&",e)+1||c,c);f.push(a.substr(d));return f.join("").replace(goog.uri.utils.trailingQueryPunctuationRe_,"$1")};goog.uri.utils.setParam=function(a,b,c){return goog.uri.utils.appendParam(goog.uri.utils.removeParam(a,b),b,c)};
goog.uri.utils.appendPath=function(a,b){goog.uri.utils.assertNoFragmentsOrQueries_(a);goog.string.endsWith(a,"/")&&(a=a.substr(0,a.length-1));goog.string.startsWith(b,"/")&&(b=b.substr(1));return goog.string.buildString(a,"/",b)};
goog.uri.utils.setPath=function(a,b){goog.string.startsWith(b,"/")||(b="/"+b);var c=goog.uri.utils.split(a);return goog.uri.utils.buildFromEncodedParts(c[goog.uri.utils.ComponentIndex.SCHEME],c[goog.uri.utils.ComponentIndex.USER_INFO],c[goog.uri.utils.ComponentIndex.DOMAIN],c[goog.uri.utils.ComponentIndex.PORT],b,c[goog.uri.utils.ComponentIndex.QUERY_DATA],c[goog.uri.utils.ComponentIndex.FRAGMENT])};goog.uri.utils.StandardQueryParam={RANDOM:"zx"};
goog.uri.utils.makeUnique=function(a){return goog.uri.utils.setParam(a,goog.uri.utils.StandardQueryParam.RANDOM,goog.string.getRandomString())};goog.functions={};goog.functions.constant=function(a){return function(){return a}};goog.functions.FALSE=goog.functions.constant(!1);goog.functions.TRUE=goog.functions.constant(!0);goog.functions.NULL=goog.functions.constant(null);goog.functions.identity=function(a,b){return a};goog.functions.error=function(a){return function(){throw Error(a);}};goog.functions.fail=function(a){return function(){throw a;}};
goog.functions.lock=function(a,b){b=b||0;return function(){return a.apply(this,Array.prototype.slice.call(arguments,0,b))}};goog.functions.nth=function(a){return function(){return arguments[a]}};goog.functions.partialRight=function(a,b){var c=Array.prototype.slice.call(arguments,1);return function(){var b=Array.prototype.slice.call(arguments);b.push.apply(b,c);return a.apply(this,b)}};goog.functions.withReturnValue=function(a,b){return goog.functions.sequence(a,goog.functions.constant(b))};
goog.functions.equalTo=function(a,b){return function(c){return b?a==c:a===c}};goog.functions.compose=function(a,b){var c=arguments,d=c.length;return function(){var a;d&&(a=c[d-1].apply(this,arguments));for(var b=d-2;0<=b;b--)a=c[b].call(this,a);return a}};goog.functions.sequence=function(a){var b=arguments,c=b.length;return function(){for(var a,e=0;e<c;e++)a=b[e].apply(this,arguments);return a}};
goog.functions.and=function(a){var b=arguments,c=b.length;return function(){for(var a=0;a<c;a++)if(!b[a].apply(this,arguments))return!1;return!0}};goog.functions.or=function(a){var b=arguments,c=b.length;return function(){for(var a=0;a<c;a++)if(b[a].apply(this,arguments))return!0;return!1}};goog.functions.not=function(a){return function(){return!a.apply(this,arguments)}};
goog.functions.create=function(a,b){var c=function(){};c.prototype=a.prototype;c=new c;a.apply(c,Array.prototype.slice.call(arguments,1));return c};goog.functions.CACHE_RETURN_VALUE=!0;goog.functions.cacheReturnValue=function(a){var b=!1,c;return function(){if(!goog.functions.CACHE_RETURN_VALUE)return a();b||(c=a(),b=!0);return c}};goog.functions.once=function(a){var b=a;return function(){if(b){var a=b;b=null;a()}}};
goog.functions.debounce=function(a,b,c){var d=0;return function(e){goog.global.clearTimeout(d);var f=arguments;d=goog.global.setTimeout(function(){a.apply(c,f)},b)}};goog.functions.throttle=function(a,b,c){var d=0,e=!1,f=[],g=function(){d=0;e&&(e=!1,h())},h=function(){d=goog.global.setTimeout(g,b);a.apply(c,f)};return function(a){f=arguments;d?e=!0:h()}};goog.functions.rateLimit=function(a,b,c){var d=0,e=function(){d=0};return function(f){d||(d=goog.global.setTimeout(e,b),a.apply(c,arguments))}};var module$src$header_bidding$utils={};function aggregateByFirstMatch$$module$src$header_bidding$utils(a){return function(b,c){var d=a(c),e=d.size,d={bid:d.value,cid:d.id};e&&(b[e]?b[e].push(d):b[e]=[d]);return b}}function groupByFirstMatch$$module$src$header_bidding$utils(a,b){return goog.array.reduce(a,aggregateByFirstMatch$$module$src$header_bidding$utils(b),{})}
function createLogURI$$module$src$header_bidding$utils(a){var b=a.name;a=a.message;if("string"!==typeof a)try{a=JSON.stringify(a)}catch(c){}return goog.uri.utils.appendParamsFromMap(module$src$constants.LOG_URL,{n:b,m:a,v:module$src$constants.LIB_VERSION})}function addErrorSeverity$$module$src$header_bidding$utils(a){return goog.uri.utils.appendParamsFromMap(a,{s:"err"})}function addInfoSeverity$$module$src$header_bidding$utils(a){return goog.uri.utils.appendParamsFromMap(a,{s:"info"})}
function crossOriginGetRequest$$module$src$header_bidding$utils(a,b){b=void 0===b?new Image:b;b.src=a}
var createErrorLogUriQuery$$module$src$header_bidding$utils=goog.functions.compose(addErrorSeverity$$module$src$header_bidding$utils,createLogURI$$module$src$header_bidding$utils),logError$$module$src$header_bidding$utils=goog.functions.compose(crossOriginGetRequest$$module$src$header_bidding$utils,createErrorLogUriQuery$$module$src$header_bidding$utils),createInfoLogUriQuery$$module$src$header_bidding$utils=goog.functions.compose(addInfoSeverity$$module$src$header_bidding$utils,createLogURI$$module$src$header_bidding$utils),
logInfo$$module$src$header_bidding$utils=goog.functions.compose(crossOriginGetRequest$$module$src$header_bidding$utils,createInfoLogUriQuery$$module$src$header_bidding$utils),statusValueMap$$module$src$header_bidding$utils={success:"ok",timeout:"to",error:"err",loaderror:"err"};function mapStatus$$module$src$header_bidding$utils(a){var b=a;Object.prototype.hasOwnProperty.call(statusValueMap$$module$src$header_bidding$utils,a)&&(b=statusValueMap$$module$src$header_bidding$utils[a]||a);return b}
function loadScript$$module$src$header_bidding$utils(a){return new Promise(function(b,c){var d=document.createElement("script");d.type="text/javascript";d.async=!0;d.readyState?d.onreadystatechange=function(){if("loaded"===d.readyState||"complete"===d.readyState)d.onreadystatechange=null,b()}:(d.onload=function(){b()},d.onerror=function(){c(!0)});d.src=a;var e=document.getElementsByTagName("head"),e=e.length?e:document.getElementsByTagName("body");e.length&&(e=e[0],e.insertBefore(d,e.firstChild))})}
module$src$header_bidding$utils.groupByFirstMatch=groupByFirstMatch$$module$src$header_bidding$utils;module$src$header_bidding$utils.createLogURI=createLogURI$$module$src$header_bidding$utils;module$src$header_bidding$utils.addErrorSeverity=addErrorSeverity$$module$src$header_bidding$utils;module$src$header_bidding$utils.addInfoSeverity=addInfoSeverity$$module$src$header_bidding$utils;module$src$header_bidding$utils.crossOriginGetRequest=crossOriginGetRequest$$module$src$header_bidding$utils;
module$src$header_bidding$utils.createErrorLogUriQuery=createErrorLogUriQuery$$module$src$header_bidding$utils;module$src$header_bidding$utils.logError=logError$$module$src$header_bidding$utils;module$src$header_bidding$utils.createInfoLogUriQuery=createInfoLogUriQuery$$module$src$header_bidding$utils;module$src$header_bidding$utils.logInfo=logInfo$$module$src$header_bidding$utils;module$src$header_bidding$utils.mapStatus=mapStatus$$module$src$header_bidding$utils;
module$src$header_bidding$utils.loadScript=loadScript$$module$src$header_bidding$utils;goog.object={};goog.object.is=function(a,b){return a===b?0!==a||1/a===1/b:a!==a&&b!==b};goog.object.forEach=function(a,b,c){for(var d in a)b.call(c,a[d],d,a)};goog.object.filter=function(a,b,c){var d={},e;for(e in a)b.call(c,a[e],e,a)&&(d[e]=a[e]);return d};goog.object.map=function(a,b,c){var d={},e;for(e in a)d[e]=b.call(c,a[e],e,a);return d};goog.object.some=function(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return!0;return!1};
goog.object.every=function(a,b,c){for(var d in a)if(!b.call(c,a[d],d,a))return!1;return!0};goog.object.getCount=function(a){var b=0,c;for(c in a)b++;return b};goog.object.getAnyKey=function(a){for(var b in a)return b};goog.object.getAnyValue=function(a){for(var b in a)return a[b]};goog.object.contains=function(a,b){return goog.object.containsValue(a,b)};goog.object.getValues=function(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b};
goog.object.getKeys=function(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b};goog.object.getValueByKeys=function(a,b){for(var c=goog.isArrayLike(b),d=c?b:arguments,c=c?0:1;c<d.length&&(a=a[d[c]],goog.isDef(a));c++);return a};goog.object.containsKey=function(a,b){return null!==a&&b in a};goog.object.containsValue=function(a,b){for(var c in a)if(a[c]==b)return!0;return!1};goog.object.findKey=function(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return d};
goog.object.findValue=function(a,b,c){return(b=goog.object.findKey(a,b,c))&&a[b]};goog.object.isEmpty=function(a){for(var b in a)return!1;return!0};goog.object.clear=function(a){for(var b in a)delete a[b]};goog.object.remove=function(a,b){var c;(c=b in a)&&delete a[b];return c};goog.object.add=function(a,b,c){if(null!==a&&b in a)throw Error('The object already contains the key "'+b+'"');goog.object.set(a,b,c)};goog.object.get=function(a,b,c){return null!==a&&b in a?a[b]:c};
goog.object.set=function(a,b,c){a[b]=c};goog.object.setIfUndefined=function(a,b,c){return b in a?a[b]:a[b]=c};goog.object.setWithReturnValueIfNotSet=function(a,b,c){if(b in a)return a[b];c=c();return a[b]=c};goog.object.equals=function(a,b){for(var c in a)if(!(c in b)||a[c]!==b[c])return!1;for(c in b)if(!(c in a))return!1;return!0};goog.object.clone=function(a){var b={},c;for(c in a)b[c]=a[c];return b};
goog.object.unsafeClone=function(a){var b=goog.typeOf(a);if("object"==b||"array"==b){if(goog.isFunction(a.clone))return a.clone();var b="array"==b?[]:{},c;for(c in a)b[c]=goog.object.unsafeClone(a[c]);return b}return a};goog.object.transpose=function(a){var b={},c;for(c in a)b[a[c]]=c;return b};goog.object.PROTOTYPE_FIELDS_="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");
goog.object.extend=function(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<goog.object.PROTOTYPE_FIELDS_.length;f++)c=goog.object.PROTOTYPE_FIELDS_[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};
goog.object.create=function(a){var b=arguments.length;if(1==b&&goog.isArray(arguments[0]))return goog.object.create.apply(null,arguments[0]);if(b%2)throw Error("Uneven number of arguments");for(var c={},d=0;d<b;d+=2)c[arguments[d]]=arguments[d+1];return c};goog.object.createSet=function(a){var b=arguments.length;if(1==b&&goog.isArray(arguments[0]))return goog.object.createSet.apply(null,arguments[0]);for(var c={},d=0;d<b;d++)c[arguments[d]]=!0;return c};
goog.object.createImmutableView=function(a){var b=a;Object.isFrozen&&!Object.isFrozen(a)&&(b=Object.create(a),Object.freeze(b));return b};goog.object.isImmutableView=function(a){return!!Object.isFrozen&&Object.isFrozen(a)};goog.object.getAllPropertyNames=function(a,b){if(!a)return[];if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)return goog.object.getKeys(a);for(var c={},d=a;d&&(d!==Object.prototype||b);){for(var e=Object.getOwnPropertyNames(d),f=0;f<e.length;f++)c[e[f]]=!0;d=Object.getPrototypeOf(d)}return goog.object.getKeys(c)};var module$src$statistic={},statJsonMap$$module$src$statistic={status:"st",total:"tt",request:"bt",load:"lt"},fullStatData$$module$src$statistic={};function createStatURI$$module$src$statistic(a){return goog.uri.utils.appendParamsFromMap(module$src$constants.STAT_URL,{cr:"1.0",s:JSON.stringify(a),v:module$src$constants.LIB_VERSION,rnd:Math.random()})}
function remapStatData$$module$src$statistic(a){return goog.object.map(a,function(a){return goog.array.reduce(goog.object.getKeys(statJsonMap$$module$src$statistic),function(b,d){if(Object.prototype.hasOwnProperty.call(a,d)){var c=a[d];"status"===d&&(c=module$src$header_bidding$utils.mapStatus(c));b[statJsonMap$$module$src$statistic[d]]=c}return b},{})})}
function start$$module$src$statistic(a,b){var c=fullStatData$$module$src$statistic[a];c||(c={startLogTime:{}},fullStatData$$module$src$statistic[a]=c);c.startLogTime[b]=+new Date}function setStatus$$module$src$statistic(a,b){var c=fullStatData$$module$src$statistic[a];c&&(c.status=b)}function end$$module$src$statistic(a,b){var c=fullStatData$$module$src$statistic[a];c&&c.startLogTime[b]&&(c[b]=new Date-c.startLogTime[b],delete c.startLogTime[b])}
function interrupt$$module$src$statistic(a,b){var c=fullStatData$$module$src$statistic[a];c&&goog.array.forEach(b,function(a){return delete c.startLogTime[a]})}var sendJson$$module$src$statistic=goog.functions.compose(module$src$header_bidding$utils.crossOriginGetRequest,createStatURI$$module$src$statistic,remapStatData$$module$src$statistic);function sendLog$$module$src$statistic(){statistic$$module$src$statistic.sendJson(fullStatData$$module$src$statistic)}
var statistic$$module$src$statistic={start:start$$module$src$statistic,sendLog:sendLog$$module$src$statistic,setStatus:setStatus$$module$src$statistic,end:end$$module$src$statistic,interrupt:interrupt$$module$src$statistic,sendJson:sendJson$$module$src$statistic},$jscompDefaultExport$$module$src$statistic=statistic$$module$src$statistic;module$src$statistic.createStatURI=createStatURI$$module$src$statistic;module$src$statistic.remapStatData=remapStatData$$module$src$statistic;
module$src$statistic["default"]=$jscompDefaultExport$$module$src$statistic;var module$src$bid_bucket={},BidBucket$$module$src$bid_bucket=function(a){this.bids=a=void 0===a?{}:a};BidBucket$$module$src$bid_bucket.prototype.addBids=function(a,b){this.bids[a]=b};BidBucket$$module$src$bid_bucket.prototype.getBidsForSize=function(a){var b={},c=this.bids,d=goog.object.getKeys(c);goog.array.forEach(d,function(d){if("string"===typeof c[d])b[d]=c[d];else{var e=c[d],e=e[a]?e[a].length?e[a].shift():"noreq":"nobid";b[d]=e}});return b};module$src$bid_bucket["default"]=BidBucket$$module$src$bid_bucket;var module$src$automattic={};
function createSlot$$module$src$automattic(a,b){var c=void 0===b.sectionId?0:b.sectionId,d=void 0===b.width?0:b.width,e=void 0===b.height?0:b.height,f=b.type,g=b.forcedUrl,h=b.collapseEmpty,f=f?' data-type="'+f+'"':"",g=g?' data-forcedurl="'+g+'"':"",l="width: "+d+"px; height: "+e+"px;",k="";h&&(k=' data-collapse="'+h+'"',"before"===h?(k+=' data-size="'+d+"x"+e+'"',l="width: 0px; height: 0px; position:absolute; overflow: hidden;"):"after"!==h&&(module$src$showad$utils.log('Parameter collapseEmpty expect values "after"/"before" but "'+h+
'" received'),k=""));return'<div id="'+a+'" data-section="'+c+'"'+(""+g+f+k)+(' style="'+l+'"></div>')}function generateId$$module$src$automattic(){return module$src$constants.SLOT_ID_PREFIX+(parseInt(1E4*Math.random(),10)+1+(new Date).getMilliseconds())}
var Automattic$$module$src$automattic=function(a){var b=this;this.customParams=window._ipw_custom||{};this.isBiddingFinished=!1;this.tasks=[];this.slotMap={};this.bidBucket=new module$src$bid_bucket["default"];this.adManager=new module$src$showad$ad_manager.AdManager(this);a&&this.sendBidRequests(a).then(function(){module$src$statistic["default"].sendLog();b.isBiddingFinished=!0;b.runTasks()},function(a){module$src$header_bidding$utils.logError({name:"BidRequestError",message:a})})};
Automattic$$module$src$automattic.prototype.initAd=function(a){a=void 0===a?{}:a;var b=generateId$$module$src$automattic(),c=createSlot$$module$src$automattic(b,a);document.write(c);this.isBiddingFinished?this.adManager.displayAd(b,a.customParams):this.tasks.push([b,a])};
Automattic$$module$src$automattic.prototype.sendBidRequest=function(a){var b=this,c=a.getBids,d=a.formatResponse,e=a.key;module$src$statistic["default"].start(e,"total");return(new Promise(c)).then(function(a){var c=a.response;a.success?(a=module$src$header_bidding$utils.groupByFirstMatch(c,d),b.bidBucket.addBids(e,a),module$src$statistic["default"].end(e,"total"),module$src$statistic["default"].setStatus(e,"success")):(b.bidBucket.addBids(e,module$src$header_bidding$utils.mapStatus(c)),module$src$statistic["default"].interrupt(e,
["load","request"]),module$src$statistic["default"].end(e,"total"),module$src$statistic["default"].setStatus(e,c))})};Automattic$$module$src$automattic.prototype.sendBidRequests=function(a){var b=this;a=goog.array.map(a,function(a){return b.sendBidRequest(a)});return Promise.all(a)};
Automattic$$module$src$automattic.prototype.runTasks=function(){for(var a=$jscomp.makeIterator(this.tasks),b=a.next();!b.done;b=a.next()){var c=$jscomp.makeIterator(b.value),b=c.next().value,c=c.next().value;this.adManager.displayAd(b,c)}};module$src$automattic.createSlot=createSlot$$module$src$automattic;module$src$automattic.generateId=generateId$$module$src$automattic;module$src$automattic.Automattic=Automattic$$module$src$automattic;var module$src$header_bidding$adapters$amazon={},key$$module$src$header_bidding$adapters$amazon="A9M",timeout$$module$src$header_bidding$adapters$amazon=3E3,providerUrl$$module$src$header_bidding$adapters$amazon="//c.amazon-adsystem.com/aax2/apstag.js",slots$$module$src$header_bidding$adapters$amazon=[{slotID:"1",sizes:[[300,250]]},{slotID:"2",sizes:[[728,90]]},{slotID:"3",sizes:[[300,250]]},{slotID:"4",sizes:[[160,600]]}];
function init$$module$src$header_bidding$adapters$amazon(){window.apstag||(window.apstag={init:function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];window.apstag._Q.push(["i",b])},fetchBids:function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];window.apstag._Q.push(["f",b])},_Q:[]})}function formatResponse$$module$src$header_bidding$adapters$amazon(a){return{size:a.size,value:a.amznbid,id:a.amzniid}}
function getBids$$module$src$header_bidding$adapters$amazon(a){var b=setTimeout(function(){a({key:key$$module$src$header_bidding$adapters$amazon,success:!1,response:"timeout"})},timeout$$module$src$header_bidding$adapters$amazon);init$$module$src$header_bidding$adapters$amazon();var c=window.apstag;c?(c.init({pubID:"3033"}),c.fetchBids({slots:slots$$module$src$header_bidding$adapters$amazon,timeout:timeout$$module$src$header_bidding$adapters$amazon},function(c){clearTimeout(b);module$src$statistic["default"].end(key$$module$src$header_bidding$adapters$amazon,
"request");a({key:key$$module$src$header_bidding$adapters$amazon,success:!0,response:c})})):(clearTimeout(b),a({key:key$$module$src$header_bidding$adapters$amazon,success:!1,response:"loaderror"}));module$src$statistic["default"].start(key$$module$src$header_bidding$adapters$amazon,"load");module$src$header_bidding$utils.loadScript(providerUrl$$module$src$header_bidding$adapters$amazon).then(function(){module$src$statistic["default"].end(key$$module$src$header_bidding$adapters$amazon,"load");module$src$statistic["default"].start(key$$module$src$header_bidding$adapters$amazon,
"request")},function(){a({key:key$$module$src$header_bidding$adapters$amazon,success:!1,response:"loaderror"})})}var amazonAdapter$$module$src$header_bidding$adapters$amazon={getBids:getBids$$module$src$header_bidding$adapters$amazon,formatResponse:formatResponse$$module$src$header_bidding$adapters$amazon,key:key$$module$src$header_bidding$adapters$amazon},$jscompDefaultExport$$module$src$header_bidding$adapters$amazon=amazonAdapter$$module$src$header_bidding$adapters$amazon;
module$src$header_bidding$adapters$amazon["default"]=$jscompDefaultExport$$module$src$header_bidding$adapters$amazon;var module$src$header_bidding$adapters$pubmatic={},key$$module$src$header_bidding$adapters$pubmatic="PM",timeout$$module$src$header_bidding$adapters$pubmatic=3E3,providerUrl$$module$src$header_bidding$adapters$pubmatic="//ads.pubmatic.com/AdServer/js/gshowad.js",slots$$module$src$header_bidding$adapters$pubmatic=["1187555071@300x250","1187555072@728x90","1187555073@300x250","1187555074@160x600"];
function decodeBid$$module$src$header_bidding$adapters$pubmatic(a){return goog.array.reduce(a.split(";"),function(a,c,d,e){0===d%2&&(a[e[d]]=e[d+1]);return a},{})}
function formatResponse$$module$src$header_bidding$adapters$pubmatic(a){if("string"!==typeof a)return module$src$header_bidding$utils.logError({name:"PubmaticError",message:"Unexpected response type"}),{};var b=decodeBid$$module$src$header_bidding$adapters$pubmatic(a),c=b.bidstatus,d=b.bidid,b=b.bid;if(!d)return module$src$header_bidding$utils.logError({name:"PubmaticError",message:"Unexpected response: "+a}),{};if("0"===c)return{};a=$jscomp.makeIterator(d.split("@"));c=a.next().value;return{size:a.next().value,
id:c,value:b}}
function getBids$$module$src$header_bidding$adapters$pubmatic(a){var b=setTimeout(function(){a({key:key$$module$src$header_bidding$adapters$pubmatic,success:!1,response:"timeout"})},timeout$$module$src$header_bidding$adapters$pubmatic);window.pm_optimize_adslots=slots$$module$src$header_bidding$adapters$pubmatic;window.pm_pub_id=156204;window.pm_async_callback_fn="pm_automattic_pubmatic_adaptor";window.pm_automattic_pubmatic_adaptor=function(){var c=window.progKeyValueMap;clearTimeout(b);module$src$statistic["default"].end(key$$module$src$header_bidding$adapters$pubmatic,
"request");a({key:key$$module$src$header_bidding$adapters$pubmatic,success:!0,response:goog.object.getValues(c)})};module$src$statistic["default"].start(key$$module$src$header_bidding$adapters$pubmatic,"load");module$src$header_bidding$utils.loadScript(providerUrl$$module$src$header_bidding$adapters$pubmatic).then(function(){module$src$statistic["default"].end(key$$module$src$header_bidding$adapters$pubmatic,"load");module$src$statistic["default"].start(key$$module$src$header_bidding$adapters$pubmatic,
"request")},function(){a({key:key$$module$src$header_bidding$adapters$pubmatic,success:!1,response:"loaderror"})})}var pubmaticAdapter$$module$src$header_bidding$adapters$pubmatic={getBids:getBids$$module$src$header_bidding$adapters$pubmatic,formatResponse:formatResponse$$module$src$header_bidding$adapters$pubmatic,key:key$$module$src$header_bidding$adapters$pubmatic},$jscompDefaultExport$$module$src$header_bidding$adapters$pubmatic=pubmaticAdapter$$module$src$header_bidding$adapters$pubmatic;
module$src$header_bidding$adapters$pubmatic["default"]=$jscompDefaultExport$$module$src$header_bidding$adapters$pubmatic;var module$src$header_bidding$external$indexApi={},indexRootNamespaceRename$$module$src$header_bidding$external$indexApi=indexRootNamespaceRename$$module$src$header_bidding$external$indexApi||"indexapi";"string"!=typeof indexRootNamespaceRename$$module$src$header_bidding$external$indexApi&&(indexRootNamespaceRename$$module$src$header_bidding$external$indexApi="indexapi");
(function(){window[indexRootNamespaceRename$$module$src$header_bidding$external$indexApi]=window[indexRootNamespaceRename$$module$src$header_bidding$external$indexApi]||{};var a=function(){function a(a){var b=z[a];return"string"==typeof b?b:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)}function c(b){return r.lastIndex=0,r.test(b)?b.replace(r,a):b}function d(a,b,c,d,e,f,g,h,k,l,n){return{getTargetValue:function(b,c){var d=[];return e?1===x?d.push(a.getSlotID()+l):2===x?(d.push(a.getSlotID()+
l),d.push(a.getSlotID()+"_"+e)):d.push(a.getSlotID()+"_"+e):d.push(a.getSlotID()+l),d},getAdm:function(){return b},getBrandID:function(){return c},getBrandName:function(){return d},getDealID:function(){return e},getDealName:function(){return f},getDSPID:function(){return g},getImpression:function(){return a},getInternalDealID:function(){return h},getPrice:function(){return k},getPriceLevel:function(){return l},getSeatID:function(){return n}}}function e(a,b,c,d,e,f,g,h){a=a.toString();var p={slotID:!0,
width:!0,height:!0,bidFloor:!0,bidFloorCurrency:!0,siteID:!0};return{getImpressionID:function(){return a},getSlotID:function(){return c},getRequest:function(){return b},setBidFloor:function(b,c){var d=!1;return("number"!=typeof c||0>c)&&(k.debug("ERROR: Bid Floor for Request "+a+" is not a valid number."),p.bidFloor=!1,d=!0),"string"==typeof b&&3===b.length||(k.debug("ERROR: Bid Floor Currency for Request "+a+" is not a valid ISO currency string."),p.bidFloorCurrency=!1,d=!0),d?(k.debug("DEBUG: Impression "+
a+" will not be added to the Request."),!1):(g=b,f=c,p.bidFloor=!0,p.bidFloorCurrency=!0,!0)},getObject:function(){var b;a:{for(b in p)if(!p[b]){b=!1;break a}b=!0}if(b)return b={id:a,banner:{w:d,h:e},ext:{sid:c}},"number"==typeof f&&(b.bidfloor=f),"string"==typeof g&&(b.bidfloorcur=g),"number"==typeof h&&(b.ext.siteID=h),b}}}function f(a,b,c,d,e){return{getBids:function(){return b},getRequest:function(){return a},getStatus:function(){return c},getX3:function(){return d},getTargets:function(){var a=
function(a){for(var c=[],d=!1,e=0;e<b.length;e++){var f=b[e],p=f.getTargetValue();("undefined"==typeof a||"function"==typeof a&&a(f))&&(p instanceof Array&&(d=!0),c.push(p))}return d?[].concat.apply([],c):c};return{getAll:function(){return a()},getOpenMarket:function(){return a(function(a){return!a.getDealID()})},getPrivateMarket:function(){return a(function(a){return a.getDealID()})}}}}}function g(a,b){a=a.toString();var c,d,g=0,p=!1,w="https:"===window.location.protocol?"https://as-sec.casalemedia.com":
"http://as.casalemedia.com",n=!1;"true"===N("indexapi_sandbox",window.top.location.href)&&(w="https:"===window.location.protocol?"https://sandbox.ht.indexexchange.com":"http://sandbox.ht.indexexchange.com");var m={hostname:!0};top===self?(c=location.href,d=1):(c=document.referrer,d=0);var L;J[a]=!1;v[a]={};var r=[],x=function(){var b={};b.id=a;b.imp=[];b.site={page:c};"string"==typeof document.referrer&&(b.site.ref=document.referrer);for(var e=0;e<r.length;e++){var f=r[e].getObject();"undefined"!=
typeof f&&(f.banner&&(f.banner.topframe=d),b.imp.push(f))}return b},A=function(){for(var a in m)if(!m[a])return!1;return!0},B=function(b,c,d,f,h,p){var w=!1,l=!1;if(("string"!=typeof b&&(k.debug("ERROR: Slot ID is not a string."),l=!0),"undefined"!=typeof f&&("number"!=typeof f||0>f)&&(k.debug("ERROR: Bid Floor is not a valid number."),l=!0),"undefined"==typeof h||"string"==typeof h&&3===h.length||(k.debug("ERROR: Bid Floor Currency is not a valid ISO currency string."),l=!0),"undefined"!=typeof p&&
("number"!=typeof p||0!==p%1||0>p)&&(k.debug("ERROR: Site ID is not a valid number."),l=!0),!l)||(w=!0),("number"!=typeof c||0!==c%1||1>c)&&(k.debug("ERROR: Width for Request "+a+" is not a valid number."),w=!0),("number"!=typeof d||0!==d%1||1>d)&&(k.debug("ERROR: Height for Request "+a+" is not a valid number."),w=!0),!w)return b=e(g,this,b,c,d,f,h,p),g++,r.push(b),k.debug("DEBUG: Impression successfully added."),b},I=function(c){if(!A())return k.debug("ERROR: Request "+a+" will not be sent, invalid hostname specified."),
!1;var d=L||D;0<d&&(M[a]=window.setTimeout(function(){try{u[a]=f(K[a],void 0,3),J[a]=!0,k.debug("DEBUG: Request "+a+" timed out"),"function"==typeof v[a].request?v[a].request(u[a]):"function"==typeof t&&t(u[a])}catch(C){k.debug("ERROR: Error in calling timeout callback: "+C.toString())}},d));var e=x(),d=w.match(/^https?:\/\//i)?w:location.protocol+"//"+w,g="&fn="+encodeURIComponent(indexRootNamespaceRename$$module$src$header_bidding$external$indexApi+".jsonpResponse"),d=d+("/cygnus?v="+h+"&s="+b+
g);n&&(d+="&x3=1");for(/^https?:\/\/as(?:-sec)?\.casalemedia\.com/i.test(d)||(d+="&C=1");(d+"&r="+encodeURIComponent(q(e))).length>l;)e.imp.pop();e=encodeURIComponent(q(e));d+="&r="+e;e=document.createElement("script");e.setAttribute("async",c);e.setAttribute("src",d);e.setAttribute("type","text/javascript");c=document.getElementsByTagName("script")[0];return c.parentNode&&c.parentNode.insertBefore(e,c),!0},E=function(b){var c=!1;return p?(k.debug("ERROR: Request "+a+" has already been sent, will not send request."),
c):"function"!=typeof t&&"function"!=typeof v[a].request&&"function"!=typeof v[a].success?(k.debug("ERROR: Request "+a+" is missing a callback, will not send request."),c):(c=I(b),c&&(p=!0,k.debug("DEBUG: Request "+a+" successfully sent to "+w+".")),c)};return{addImpression:B,getID:function(){return a},getImpressions:function(){return r},buildImpressions:function(a){if(!(a instanceof Array))return k.debug("DEBUG: Slots object is not an array. No impressions added."),!1;for(var b=0;b<a.length;b++){var c=
a[b];B(c.id,c.width,c.height,c.bidfloor,c.bidfloorcur,c.siteID)}return!0},getResponse:function(){return u[a]},sendRequest:function(){return k.debug("DEBUG: Sending request "+a),E(!1)},sendRequestAsync:function(){return k.debug("DEBUG: Sending request "+a+" asynchronously"),E(!0)},setCallback:function(b){return"function"!=typeof b?(k.debug("ERROR: Request callback for Request "+a+" is not a function."),!1):(v[a].request=b,!0)},setPageOverride:function(b){return"string"!=typeof b?(k.debug("ERROR: Page Override for Request "+
a+" is not a string."),!1):(c=b,!0)},setRequestTimeout:function(b){return"number"!=typeof b||0!==b%1||0>b?(k.debug("ERROR: Timeout for Request "+a+" is not a number."),!1):(L=b,!0)},setHostname:function(a){return"string"==typeof a&&/^(?:[a-z0-9][a-z0-9-]*\.)+casalemedia\.com$/i.test(a)?(w=a,m.hostname=!0,!0):(k.debug("ERROR: Hostname is not valid, will not send to this hostname."),m.hostname=!1,!1)},requestX3:function(a){return"boolean"!=typeof a?(k.debug("ERROR: Request X3 parameter is not valid."),
!1):(n=a,!0)}}}var h="8.8",l=8E3,k=function(){var a=0;return{enabled:function(b){a=b?1:0},debug:function(b){1==a&&console.log("[ASL] "+b)}}}();if("undefined"!=typeof document.documentMode&&9>typeof document.documentMode)return k.enabled(!0),void k.debug("ERROR: ASL v"+h+" does not support IE versions running below 9 standards mode.");var t,n,q=function(a){var b='{"id":"'+a.id+'","site":{"page":"'+c(a.site.page)+'"';"string"==typeof a.site.ref&&(b+=',"ref":"'+c(a.site.ref)+'"');for(var b=b+'},"imp":[',
d=0;d<a.imp.length;d++){var e=a.imp[d],f=[];if(b+='{"id":"'+e.id+'"',"undefined"!=typeof e.banner)var g=e.banner,b=b+(', "banner":{"w":'+g.w+',"h":'+g.h+',"topframe":'+String(g.topframe)+"}");"number"==typeof e.bidfloor&&(b+=',"bidfloor":'+e.bidfloor,"string"==typeof e.bidfloorcur&&(b+=',"bidfloorcur":"'+c(e.bidfloorcur)+'"'));"string"!=typeof e.ext.sid||e.ext.sid.match(/^\s*$/)||f.push('"sid":"'+c(e.ext.sid)+'"');"number"==typeof e.ext.siteID&&f.push('"siteID":'+e.ext.siteID);0<f.length&&(b+=',"ext":{'+
f.join()+"}");b+=d+1==a.imp.length?"}":"},"}return b+"]}"},r=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,z={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},D=0,x=0,K={},u={},A={},F="IOM",G="IPM",v={},J={},M={},H=function(a,b){if("string"!=typeof a)return k.debug("ERROR: Target ID to render is not a string."),!1;if("undefined"==typeof A[a])return k.debug("ERROR: Could not find "+a+" in the bid mappings."),
!1;var c=A[a];return"undefined"!=typeof c.getImpression()&&("undefined"==typeof b?(k.debug("ERROR: Can't render creative: Document object is undefined"),!1):b===window.top.document?(k.debug("ERROR: Can't render creative: Not in an iframe"),!1):(b.write(c.getAdm()),!0))};window.headertag_render=function(a,b,c){k.debug("DEBUG: Sent targets: "+b+", with selector: "+c);var d,e=b.split(",");for(b=0;b<e.length;b++)if(d=e[b].split("_"),d[0]==c)return void H(e[b],a)};var N=function(a,b){var c=(new RegExp("[?&]"+
a+"(=([^&#]*)|&|#|$)","i")).exec(b);if(c&&c[2])return decodeURIComponent(c[2].replace(/\+/g," "))};return{createRequest:function(a){if("number"!=typeof a||0!==a%1||0>a)return void k.debug("ERROR: Invalid siteID when creating Request");n="undefined"==typeof n?Math.floor(256*Math.random()):(n+1)%256;a=g(String((new Date).getTime()%2592E3*256+n+256),a);return K[a.getID()]=a,a},jsonpResponse:function(a){try{if(!a||"object"!=typeof a||"undefined"==typeof a.id)return void k.debug("ERROR: Received an invalid JSON object in response.");
var b=K[a.id];if(k.debug("DEBUG: Received JSON object in response for Request "+a.id),"undefined"==typeof b)return void k.debug("ERROR: Could not find Request with id: "+a.id+".");var c,e=b.getImpressions(),g=[];if(J[b.getID()])return;if(window.clearTimeout(M[b.getID()]),"undefined"!=typeof a.ext&&a.ext.x3 instanceof Array&&(c=a.ext.x3),"undefined"==typeof a.seatbid){try{u[b.getID()]=f(b,[],1,c),k.debug("DEBUG: Pass response parsed."),"function"==typeof v[b.getID()].request?v[b.getID()].request(u[b.getID()]):
"function"==typeof t&&t(u[b.getID()])}catch(y){k.debug("ERROR: Error in calling pass callback: "+y.toString())}return}for(var h=0;h<a.seatbid.length;h++)for(var l=0;l<a.seatbid[h].bid.length;l++){for(var p,m=a.seatbid[h].bid[l],n=0;n<e.length;n++)if(e[n].getImpressionID()===m.impid){p=e[n];break}if("undefined"!=typeof p)if("object"==typeof m.ext){var q=n=void 0,r=void 0,x=void 0,B=void 0,I=void 0,E=void 0,z=void 0,D=void 0,F=void 0,G=void 0;if("string"==typeof m.adm&&"undefined"==typeof m.ext.vasturl&&
"undefined"==typeof m.ext.errorurl?(q=m.adm,n=p):"undefined"!=typeof m.adm&&k.debug("ERROR: Bid contained no valid adm."),"number"==typeof m.ext.advbrandid?r=m.ext.advbrandid:"undefined"!=typeof m.ext.advbrandid&&k.debug("ERROR: Bid contained no valid advertiser ID."),"string"==typeof m.ext.advbrand?x=m.ext.advbrand:"undefined"!=typeof m.ext.advbrand&&k.debug("ERROR: Bid contained no valid advertiser brand name."),"number"==typeof m.ext.deal?B=m.ext.deal:"undefined"!=typeof m.ext.deal&&k.debug("ERROR: Bid contained no valid internal deal ID."),
"string"==typeof m.ext.dealname?I=m.ext.dealname:"undefined"!=typeof m.ext.dealname&&k.debug("ERROR: Bid contained no valid deal name."),"number"==typeof m.ext.dspid?E=m.ext.dspid:"undefined"!=typeof m.ext.dspid&&k.debug("ERROR: Bid contained no valid DSP ID."),"string"==typeof m.dealid||"string"==typeof m.ext.dealid?z=m.dealid||m.ext.dealid:"undefined"!=typeof m.dealid?k.debug("ERROR: Bid contained no valid deal ID."):"undefined"!=typeof m.ext.dealid&&k.debug("ERROR: Bid contained no valid deal ID."),
"number"==typeof m.price?D=m.price:"undefined"!=typeof m.price&&k.debug("ERROR: Bid contained no valid price."),"string"==typeof m.ext.pricelevel)F=m.ext.pricelevel;else if("undefined"!=typeof m.ext.pricelevel){k.debug("ERROR: Price Level in the Bid was not a string.");continue}"string"==typeof a.seatbid[h].seat?G=a.seatbid[h].seat:"undefined"!=typeof a.seatbid[h].seat&&k.debug("ERROR: Bid contained no valid seat.");"string"==typeof m.ext.vasturl?(n=void 0,q=void 0):"undefined"!=typeof m.ext.vasturl&&
k.debug("ERROR: Bid contained no valid VAST creative url.");"string"==typeof m.ext.errorurl||"undefined"!=typeof m.ext.errorurl&&k.debug("ERROR: Bid contained no valid VAST error url.");"number"==typeof m.ext.ttl||"undefined"!=typeof m.ext.ttl&&k.debug("ERROR: Bid contained invalid ttl value.");for(var C=d(n,q,r,x,z,I,E,B,D,F,G),H=C.getTargetValue(),n=0;n<H.length;n++)A[H[n]]=C;g.push(C)}else k.debug("ERROR: Bid extension of bid "+m.impid+" is not an object.");else k.debug("ERROR: Could not find Impression with id "+
m.impid+".")}}catch(y){if(k.debug("ERROR: Error parsing Response: "+y.toString()),"undefined"==typeof b)return void f(void 0,void 0,2,c);try{u[b.getID()]=f(b,void 0,2,c),"function"==typeof v[b.getID()].request?v[b.getID()].request(u[b.getID()]):"function"==typeof t&&t(u[b.getID()])}catch(O){k.debug("ERROR: Error in calling error callback: "+O.toString())}return}if("undefined"!=typeof b)if(0<g.length)try{u[b.getID()]=f(b,g,0,c),k.debug("DEBUG: Successful response parsed."),"function"==typeof v[b.getID()].request?
v[b.getID()].request(u[b.getID()]):"function"==typeof t&&t(u[b.getID()])}catch(y){k.debug("ERROR: Error in calling success callback: "+y.toString())}else try{u[b.getID()]=f(b,g,1,c),k.debug("DEBUG: Pass response parsed."),"function"==typeof v[b.getID()].request?v[b.getID()].request(u[b.getID()]):"function"==typeof t&&t(u[b.getID()])}catch(y){k.debug("ERROR: Error in calling pass callback: "+y.toString())}},registerTargetMapping:function(a,b){var c=!1;return"string"!=typeof a&&(k.debug("ERROR: Target ID in mapping is not a string."),
c=!0),"object"!=typeof b&&(k.debug("ERROR: Bid in mapping is not an object."),c=!0),"undefined"==typeof b||"function"==typeof b.getAdm&&"undefined"!=typeof b.getAdm()||(k.debug("ERROR: Bid object in mapping does not contain an adm."),c=!0),!c&&(A[a]=b,!0)},render:H,setDebugMode:function(a){return"boolean"!=typeof a?void k.debug("ERROR: Invalid debug mode parameter."):void k.enabled(a)},setRequestCallback:function(a){return"function"!=typeof a?(k.debug("ERROR: Request callback is not a function"),
!1):(t=a,!0)},setRequestTimeout:function(a){return"number"!=typeof a||0!==a%1||0>a?(k.debug("ERROR: Timeout is not a number."),!1):(D=a,!0)},getOpenMarketKey:function(){return F},setOpenMarketKey:function(a){return"string"!=typeof a?(k.debug("ERROR: Open Market Key is not a string"),!1):(F=a,!0)},getPrivateMarketKey:function(){return G},setPrivateMarketKey:function(a){return"string"!=typeof a?(k.debug("ERROR: Private Market Key is not a string"),!1):(G=a,!0)},getTargetMode:function(){return x},setTargetMode:function(a){return"number"!=
typeof a?(k.debug("ERROR: Target Mode is not a number"),!1):0>a||2<a?(k.debug("ERROR: Target Mode may only be set to 0, 1, or 2"),!1):(x=a,!0)},isMobile:function(){var a=!1,b=navigator.userAgent||navigator.vendor||window.opera;(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(b)||
/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(b.substr(0,
4)))&&(a=!0);return a}}}();window[indexRootNamespaceRename$$module$src$header_bidding$external$indexApi]=a})();var module$src$header_bidding$adapters$index_exchange={},key$$module$src$header_bidding$adapters$index_exchange="IDX",timeout$$module$src$header_bidding$adapters$index_exchange=3E3,indexArgs$$module$src$header_bidding$adapters$index_exchange={siteID:189210,slots:[{id:"1",width:728,height:90,siteID:189210},{id:"2",width:160,height:600,siteID:189213},{id:"3",width:300,height:250,siteID:189214},{id:"4",width:300,height:250,siteID:189215}]},indexAdapter$$module$src$header_bidding$adapters$index_exchange=
{indexArgs:{},key:key$$module$src$header_bidding$adapters$index_exchange};
function getBids$$module$src$header_bidding$adapters$index_exchange(a){var b;try{b=window.top.document}catch(f){a({key:key$$module$src$header_bidding$adapters$index_exchange,success:!1,response:"loaderror"});return}var c=setTimeout(function(){a({key:key$$module$src$header_bidding$adapters$index_exchange,success:!1,response:"timeout"})},timeout$$module$src$header_bidding$adapters$index_exchange);module$src$statistic["default"].start(key$$module$src$header_bidding$adapters$index_exchange,"load");var d=
window.indexapi;module$src$statistic["default"].end(key$$module$src$header_bidding$adapters$index_exchange,"load");if(d&&b){module$src$statistic["default"].start(key$$module$src$header_bidding$adapters$index_exchange,"request");indexAdapter$$module$src$header_bidding$adapters$index_exchange.indexArgs=indexArgs$$module$src$header_bidding$adapters$index_exchange;var e=indexAdapter$$module$src$header_bidding$adapters$index_exchange.indexArgs;b=e.slots;d=d.createRequest(e.siteID);d.buildImpressions(b);
d.setCallback(function(b){b=b.getTargets().getOpenMarket();clearTimeout(c);module$src$statistic["default"].end(key$$module$src$header_bidding$adapters$index_exchange,"request");a({key:key$$module$src$header_bidding$adapters$index_exchange,success:!0,response:b})});d.sendRequestAsync()}else clearTimeout(c),a({key:key$$module$src$header_bidding$adapters$index_exchange,success:!1,response:"loaderror"})}
function formatResponse$$module$src$header_bidding$adapters$index_exchange(a){var b=a.split("_"),c=goog.array.find(indexAdapter$$module$src$header_bidding$adapters$index_exchange.indexArgs.slots,function(a){return a.id===b[0]}),d,e,f;c&&(d=c.width+"x"+c.height,e=(b[1]/100).toString(),f=a);return{size:d,value:e,id:f}}indexAdapter$$module$src$header_bidding$adapters$index_exchange.getBids=getBids$$module$src$header_bidding$adapters$index_exchange;
indexAdapter$$module$src$header_bidding$adapters$index_exchange.formatResponse=formatResponse$$module$src$header_bidding$adapters$index_exchange;var $jscompDefaultExport$$module$src$header_bidding$adapters$index_exchange=indexAdapter$$module$src$header_bidding$adapters$index_exchange;module$src$header_bidding$adapters$index_exchange["default"]=$jscompDefaultExport$$module$src$header_bidding$adapters$index_exchange;var module$src$header_bidding$adapters$index={},adapters$$module$src$header_bidding$adapters$index=[module$src$header_bidding$adapters$amazon["default"],module$src$header_bidding$adapters$pubmatic["default"],module$src$header_bidding$adapters$index_exchange["default"]],$jscompDefaultExport$$module$src$header_bidding$adapters$index=adapters$$module$src$header_bidding$adapters$index;module$src$header_bidding$adapters$index["default"]=$jscompDefaultExport$$module$src$header_bidding$adapters$index;var automattic$$module$src$index=new Automattic$$module$src$automattic(module$src$header_bidding$adapters$index["default"]);window[module$src$constants.LIB_NAME]={version:module$src$constants.LIB_VERSION,initAd:function(a){automattic$$module$src$index.initAd(a)}};}).call(this);
