/* Copyright 2011 Google */'use strict';var tn_a,tn_b=tn_b||{};tn_b.scope={};tn_b.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}};tn_b.ASSUME_ES5=!1;tn_b.ASSUME_NO_NATIVE_MAP=!1;tn_b.ASSUME_NO_NATIVE_SET=!1;tn_b.defineProperty=tn_b.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){a!=Array.prototype&&a!=Object.prototype&&(a[b]=c.value)};
tn_b.getGlobal=function(a){return"undefined"!=typeof window&&window===a?a:"undefined"!=typeof global&&null!=global?global:a};tn_b.global=tn_b.getGlobal(this);tn_b.polyfill=function(a,b){if(b){var c=tn_b.global;a=a.split(".");for(var 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&&tn_b.defineProperty(c,a,{configurable:!0,writable:!0,value:b})}};
tn_b.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+""};tn_b.SYMBOL_PREFIX="jscomp_symbol_";tn_b.initSymbol=function(){tn_b.initSymbol=function(){};tn_b.global.Symbol||(tn_b.global.Symbol=tn_b.Symbol)};
tn_b.Symbol=function(){function a(a){return tn_b.SYMBOL_PREFIX+(a||"")+b++}var b=0;return a}();tn_b.initSymbolIterator=function(){tn_b.initSymbol();var a=tn_b.global.Symbol.iterator;a||(a=tn_b.global.Symbol.iterator=tn_b.global.Symbol("iterator"));"function"!=typeof Array.prototype[a]&&tn_b.defineProperty(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return tn_b.arrayIterator(this)}});tn_b.initSymbolIterator=function(){}};
tn_b.arrayIterator=function(a){var b=0;return tn_b.iteratorPrototype(function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}})};tn_b.iteratorPrototype=function(a){tn_b.initSymbolIterator();a={next:a};a[tn_b.global.Symbol.iterator]=function(){return this};return a};
tn_b.iteratorFromArray=function(a,b){tn_b.initSymbolIterator();a instanceof String&&(a+="");var c=0,d={next:function(){if(c<a.length){var e=c++;return{value:b(e,a[e]),done:!1}}d.next=function(){return{done:!0,value:void 0}};return d.next()}};d[Symbol.iterator]=function(){return d};return d};function tn_aa(a){return a in tn_ba?tn_ba[a]:tn_ba[a]=-1!=navigator.userAgent.toLowerCase().indexOf(a)}var tn_ba={},tn_ca={ieQuirks_:function(a){return a.document.body.scrollTop},ieStandards_:function(a){return a.document.documentElement.scrollTop},dom_:function(a){return a.pageYOffset}},tn_da={ieQuirks_:function(a){return a.document.body.scrollLeft},ieStandards_:function(a){return a.document.documentElement.scrollLeft},dom_:function(a){return a.pageXOffset}};
function tn_ea(a,b){try{if(tn_aa("safari")||tn_aa("konqueror"))return b.dom_(a);if(!window.opera&&"compatMode"in a.document&&"CSS1Compat"==a.document.compatMode)return b.ieStandards_(a);if((tn_aa("msie")||tn_aa("trident"))&&!window.opera)return b.ieQuirks_(a)}catch(c){}return b.dom_(a)};function tn_c(a,b,c){this.x=a;this.y=b;this.coordinateFrame=c||null}tn_c.prototype.toString=function(){return"[P "+this.x+","+this.y+"]"};tn_c.prototype.clone=function(){return new tn_c(this.x,this.y,this.coordinateFrame)};function Rect(a,b,c,d,e){this.x=a;this.y=b;this.w=c;this.h=d;this.coordinateFrame=e||null}Rect.prototype.contains=function(a){return this.x<=a.x&&a.x<this.x+this.w&&this.y<=a.y&&a.y<this.y+this.h};
Rect.prototype.toString=function(){return"[R "+this.w+"x"+this.h+"+"+this.x+"+"+this.y+"]"};Rect.prototype.clone=function(){return new Rect(this.x,this.y,this.w,this.h,this.coordinateFrame)};function tn_fa(a){function b(b){for(var c=a.offsetParent;c&&c.offsetParent;c=c.offsetParent)c.scrollLeft&&(b.x-=c.scrollLeft),c.scrollTop&&(b.y-=c.scrollTop)}if(!a)return null;var c=a.ownerDocument&&a.ownerDocument.parentWindow?a.ownerDocument.parentWindow:a.ownerDocument&&a.ownerDocument.defaultView?a.ownerDocument.defaultView:window;if(a.getBoundingClientRect){var d=a.getBoundingClientRect();return new Rect(d.left+tn_ea(c,tn_da),d.top+tn_ea(c,tn_ca),d.right-d.left,d.bottom-d.top,c)}if(a.ownerDocument&&
a.ownerDocument.getBoxObjectFor)return d=a.ownerDocument.getBoxObjectFor(a),c=new Rect(d.x,d.y,d.width,d.height,c),b(c),c;for(var e=d=0,f=a;f.offsetParent;f=f.offsetParent)d+=f.offsetLeft,e+=f.offsetTop;c=new Rect(d,e,a.offsetWidth,a.offsetHeight,c);b(c);return c};var tn_=tn_||{};tn_.global=this;tn_.isDef=function(a){return void 0!==a};tn_.isString=function(a){return"string"==typeof a};tn_.isBoolean=function(a){return"boolean"==typeof a};tn_.isNumber=function(a){return"number"==typeof a};tn_.exportPath_=function(a,b,c){a=a.split(".");c=c||tn_.global;a[0]in c||"undefined"==typeof c.execScript||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)!a.length&&tn_.isDef(b)?c[d]=b:c=c[d]&&c[d]!==Object.prototype[d]?c[d]:c[d]={}};
tn_.define=function(a,b){tn_.exportPath_(a,b)};tn_.DEBUG=!0;tn_.LOCALE="en";tn_.TRUSTED_SITE=!0;tn_.STRICT_MODE_COMPATIBLE=!1;tn_.DISALLOW_TEST_ONLY_CODE=!tn_.DEBUG;tn_.ENABLE_CHROME_APP_SAFE_SCRIPT_LOADING=!1;tn_.provide=function(a){if(tn_.isInGoogModuleLoader_())throw Error("goog.provide cannot be used within a module.");tn_.isInEs6ModuleLoader_()&&tn_.logToConsole_("goog.provide should not be used within a module.");tn_.constructNamespace_(a)};
tn_.constructNamespace_=function(a,b){tn_.exportPath_(a,b)};tn_.getScriptNonce=function(){null===tn_.cspNonce_&&(tn_.cspNonce_=tn_.getScriptNonce_(tn_.global.document)||"");return tn_.cspNonce_};tn_.NONCE_PATTERN_=/^[\w+/_-]+[=]{0,2}$/;tn_.cspNonce_=null;tn_.getScriptNonce_=function(a){return(a=a.querySelector("script[nonce]"))&&(a=a.nonce||a.getAttribute("nonce"))&&tn_.NONCE_PATTERN_.test(a)?a:null};tn_.VALID_MODULE_RE_=/^[a-zA-Z_$][a-zA-Z0-9._$]*$/;
tn_.module=function(a){if(!tn_.isString(a)||!a||-1==a.search(tn_.VALID_MODULE_RE_))throw Error("Invalid module identifier");if(!tn_.isInGoogModuleLoader_())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(tn_.moduleLoaderState_.moduleName)throw Error("goog.module may only be called once per module.");tn_.moduleLoaderState_.moduleName=a};tn_.module.get=function(){return null};tn_.module.getInternal_=function(){return null};tn_.ModuleType={ES6:"es6",GOOG:"goog"};tn_.moduleLoaderState_=null;tn_.isInModuleLoader_=function(){return tn_.isInGoogModuleLoader_()||tn_.isInEs6ModuleLoader_()};tn_.isInGoogModuleLoader_=function(){return!!tn_.moduleLoaderState_&&tn_.moduleLoaderState_.type==tn_.ModuleType.GOOG};
tn_.isInEs6ModuleLoader_=function(){var a=!!tn_.moduleLoaderState_&&tn_.moduleLoaderState_.type==tn_.ModuleType.ES6;return a?!0:(a=tn_.global.$jscomp)?"function"!=typeof a.getCurrentModulePath?!1:!!a.getCurrentModulePath():!1};tn_.getModulePath_=function(){return tn_.moduleLoaderState_&&tn_.moduleLoaderState_.path};tn_.module.declareLegacyNamespace=function(){tn_.moduleLoaderState_.declareLegacyNamespace=!0};
tn_.module.declareNamespace=function(a){if(tn_.moduleLoaderState_)tn_.moduleLoaderState_.moduleName=a;else{var b=tn_.global.$jscomp;if(!b||"function"!=typeof b.getCurrentModulePath)throw Error('Module with namespace "'+a+'" has been loaded incorrectly.');b=b.require(b.getCurrentModulePath());tn_.loadedModules_[a]={exports:b,type:tn_.ModuleType.ES6,moduleId:a}}};
tn_.setTestOnly=function(a){if(tn_.DISALLOW_TEST_ONLY_CODE)throw a=a||"",Error("Importing test-only code into non-debug environment"+(a?": "+a:"."));};tn_.forwardDeclare=function(){};tn_.getObjectByName=function(a,b){a=a.split(".");b=b||tn_.global;for(var c=0;c<a.length;c++)if(b=b[a[c]],!tn_.isDefAndNotNull(b))return null;return b};tn_.globalize=function(a,b){b=b||tn_.global;for(var c in a)b[c]=a[c]};tn_.addDependency=function(){};tn_.useStrictRequires=!1;tn_.ENABLE_DEBUG_LOADER=!0;
tn_.logToConsole_=function(a){tn_.global.console&&tn_.global.console.error(a)};tn_.require=function(){};tn_.basePath="";tn_.nullFunction=function(){};tn_.abstractMethod=function(){throw Error("unimplemented abstract method");};tn_.addSingletonGetter=function(a){a.instance_=void 0;a.getInstance=function(){if(a.instance_)return a.instance_;tn_.DEBUG&&(tn_.instantiatedSingletons_[tn_.instantiatedSingletons_.length]=a);return a.instance_=new a}};tn_.instantiatedSingletons_=[];
tn_.LOAD_MODULE_USING_EVAL=!0;tn_.SEAL_MODULE_EXPORTS=tn_.DEBUG;tn_.loadedModules_={};tn_.DEPENDENCIES_ENABLED=!1;tn_.TRANSPILE="detect";tn_.TRANSPILER="transpile.js";tn_.hasBadLetScoping=null;tn_.useSafari10Workaround=function(){if(null==tn_.hasBadLetScoping){try{var a=!eval('"use strict";let x = 1; function f() { return typeof x; };f() == "number";')}catch(b){a=!1}tn_.hasBadLetScoping=a}return tn_.hasBadLetScoping};tn_.workaroundSafari10EvalBug=function(a){return"(function(){"+a+"\n;})();\n"};
tn_.loadModule=function(a,b){var c=tn_.moduleLoaderState_;try{tn_.moduleLoaderState_={moduleName:"",declareLegacyNamespace:!1,type:tn_.ModuleType.GOOG,path:b};if(tn_.isFunction(a))var d=a.call(void 0,{});else if(tn_.isString(a))tn_.useSafari10Workaround()&&(a=tn_.workaroundSafari10EvalBug(a)),d=tn_.loadModuleFromSource_.call(void 0,a);else throw Error("Invalid module definition");var e=tn_.moduleLoaderState_.moduleName;if(tn_.isString(e)&&e){tn_.moduleLoaderState_.declareLegacyNamespace?tn_.constructNamespace_(e,
d):tn_.SEAL_MODULE_EXPORTS&&Object.seal&&"object"==typeof d&&null!=d&&Object.seal(d);var f={exports:d,type:tn_.ModuleType.GOOG,moduleId:tn_.moduleLoaderState_.moduleName};tn_.loadedModules_[e]=f;b&&(tn_.loadedModules_[b]=f)}else throw Error('Invalid module name "'+e+'"');}finally{tn_.moduleLoaderState_=c}};tn_.loadModuleFromSource_=function(a){var b={};eval(a);return b};
tn_.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("/")};tn_.loadFileSync_=function(a){if(tn_.global.CLOSURE_LOAD_FILE_SYNC)return tn_.global.CLOSURE_LOAD_FILE_SYNC(a);try{var b=new tn_.global.XMLHttpRequest;b.open("get",a,!1);b.send();return 0==b.status||200==b.status?b.responseText:null}catch(c){return null}};
tn_.transpile_=function(a,b){var c=tn_.global.$jscomp;c||(tn_.global.$jscomp=c={});var d=c.transpile;if(!d){var e=tn_.basePath+tn_.TRANSPILER,f=tn_.loadFileSync_(e);if(f){(function(){eval(f+"\n//# sourceURL="+e)}).call(tn_.global);if(tn_.global.$gwtExport&&tn_.global.$gwtExport.$jscomp&&!tn_.global.$gwtExport.$jscomp.transpile)throw Error('The transpiler did not properly export the "transpile" method. $gwtExport: '+JSON.stringify(tn_.global.$gwtExport));tn_.global.$jscomp.transpile=tn_.global.$gwtExport.$jscomp.transpile;
c=tn_.global.$jscomp;d=c.transpile}}if(!d){var g=" requires transpilation but no transpiler was found.";g+=' Please add "//javascript/closure:transpiler" as a data dependency to ensure it is included.';d=c.transpile=function(a,b){tn_.logToConsole_(b+g);return a}}return d(a,b)};
tn_.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};tn_.isNull=function(a){return null===a};tn_.isDefAndNotNull=function(a){return null!=a};tn_.isArray=function(a){return"array"==tn_.typeOf(a)};tn_.isArrayLike=function(a){var b=tn_.typeOf(a);return"array"==b||"object"==b&&"number"==typeof a.length};tn_.isDateLike=function(a){return tn_.isObject(a)&&"function"==typeof a.getFullYear};tn_.isFunction=function(a){return"function"==tn_.typeOf(a)};
tn_.isObject=function(a){var b=typeof a;return"object"==b&&null!=a||"function"==b};tn_.getUid=function(a){return a[tn_.UID_PROPERTY_]||(a[tn_.UID_PROPERTY_]=++tn_.uidCounter_)};tn_.hasUid=function(a){return!!a[tn_.UID_PROPERTY_]};tn_.removeUid=function(a){null!==a&&"removeAttribute"in a&&a.removeAttribute(tn_.UID_PROPERTY_);try{delete a[tn_.UID_PROPERTY_]}catch(b){}};tn_.UID_PROPERTY_="closure_uid_"+(1E9*Math.random()>>>0);tn_.uidCounter_=0;tn_.getHashCode=tn_.getUid;tn_.removeHashCode=tn_.removeUid;
tn_.cloneObject=function(a){var b=tn_.typeOf(a);if("object"==b||"array"==b){if("function"===typeof a.clone)return a.clone();b="array"==b?[]:{};for(var c in a)b[c]=tn_.cloneObject(a[c]);return b}return a};tn_.bindNative_=function(a,b,c){return a.call.apply(a.bind,arguments)};
tn_.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)}};tn_.bind=function(a,b,c){Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?tn_.bind=tn_.bindNative_:tn_.bind=tn_.bindJs_;return tn_.bind.apply(null,arguments)};
tn_.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)}};tn_.mixin=function(a,b){for(var c in b)a[c]=b[c]};tn_.now=tn_.TRUSTED_SITE&&Date.now||function(){return+new Date};
tn_.globalEval=function(a){if(tn_.global.execScript)tn_.global.execScript(a,"JavaScript");else if(tn_.global.eval){if(null==tn_.evalWorksForGlobals_){try{tn_.global.eval("var _evalTest_ = 1;")}catch(d){}if("undefined"!=typeof tn_.global._evalTest_){try{delete tn_.global._evalTest_}catch(d){}tn_.evalWorksForGlobals_=!0}else tn_.evalWorksForGlobals_=!1}if(tn_.evalWorksForGlobals_)tn_.global.eval(a);else{var b=tn_.global.document,c=b.createElement("SCRIPT");c.type="text/javascript";c.defer=!1;c.appendChild(b.createTextNode(a));
b.head.appendChild(c);b.head.removeChild(c)}}else throw Error("goog.globalEval not available");};tn_.evalWorksForGlobals_=null;
tn_.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 tn_.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=tn_.cssNameMapping_?"BY_WHOLE"==tn_.cssNameMappingStyle_?c:d:function(a){return a};a=b?a+"-"+d(b):d(a);return tn_.global.CLOSURE_CSS_NAME_MAP_FN?tn_.global.CLOSURE_CSS_NAME_MAP_FN(a):a};
tn_.setCssNameMapping=function(a,b){tn_.cssNameMapping_=a;tn_.cssNameMappingStyle_=b};tn_.getMsg=function(a,b){b&&(a=a.replace(/\{\$([^}]+)}/g,function(a,d){return null!=b&&d in b?b[d]:a}));return a};tn_.getMsgWithFallback=function(a){return a};tn_.exportSymbol=function(a,b,c){tn_.exportPath_(a,b,c)};tn_.exportProperty=function(a,b,c){a[b]=c};
tn_.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)}};
tn_.base=function(a,b,c){var d=arguments.callee.caller;if(tn_.STRICT_MODE_COMPATIBLE||tn_.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("undefined"!==typeof 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)}if("string"!=typeof b&&"symbol"!=typeof b)throw Error("method names provided to goog.base must be a string or a symbol");
e=Array(arguments.length-2);for(f=2;f<arguments.length;f++)e[f-2]=arguments[f];f=!1;for(var 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");};tn_.scope=function(a){if(tn_.isInModuleLoader_())throw Error("goog.scope is not supported within a module.");a.call(tn_.global)};
tn_.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=tn_.defineClass.createSealingConstructor_(c,a);a&&tn_.inherits(c,a);delete b.constructor;delete b.statics;tn_.defineClass.applyProperties_(c.prototype,b);null!=d&&(d instanceof Function?d(c):tn_.defineClass.applyProperties_(c,d));return c};tn_.defineClass.SEAL_CLASS_INSTANCES=tn_.DEBUG;
tn_.defineClass.createSealingConstructor_=function(a,b){if(!tn_.defineClass.SEAL_CLASS_INSTANCES)return a;var c=!tn_.defineClass.isUnsealable_(b),d=function(){var b=a.apply(this,arguments)||this;b[tn_.UID_PROPERTY_]=b[tn_.UID_PROPERTY_];this.constructor===d&&c&&Object.seal instanceof Function&&Object.seal(b);return b};return d};tn_.defineClass.isUnsealable_=function(a){return a&&a.prototype&&a.prototype[tn_.UNSEALABLE_CONSTRUCTOR_PROPERTY_]};tn_.defineClass.OBJECT_PROTOTYPE_FIELDS_="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");
tn_.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<tn_.defineClass.OBJECT_PROTOTYPE_FIELDS_.length;d++)c=tn_.defineClass.OBJECT_PROTOTYPE_FIELDS_[d],Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])};tn_.tagUnsealableClass=function(){};tn_.UNSEALABLE_CONSTRUCTOR_PROPERTY_="goog_defineClass_legacy_unsealable";tn_.debug={};tn_.debug.Error=function(a){if(Error.captureStackTrace)Error.captureStackTrace(this,tn_.debug.Error);else{var b=Error().stack;b&&(this.stack=b)}a&&(this.message=String(a))};tn_.inherits(tn_.debug.Error,Error);tn_.debug.Error.prototype.name="CustomError";tn_.dom={};tn_.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};tn_.asserts={};tn_.asserts.ENABLE_ASSERTS=tn_.DEBUG;tn_.asserts.AssertionError=function(a,b){tn_.debug.Error.call(this,tn_.asserts.subs_(a,b))};tn_.inherits(tn_.asserts.AssertionError,tn_.debug.Error);tn_.asserts.AssertionError.prototype.name="AssertionError";tn_.asserts.DEFAULT_ERROR_HANDLER=function(a){throw a;};tn_.asserts.errorHandler_=tn_.asserts.DEFAULT_ERROR_HANDLER;
tn_.asserts.subs_=function(a,b){a=a.split("%s");for(var c="",d=a.length-1,e=0;e<d;e++){var f=e<b.length?b[e]:"%s";c+=a[e]+f}return c+a[d]};tn_.asserts.doAssertFailure_=function(a,b,c,d){var e="Assertion failed";if(c){e+=": "+c;var f=d}else a&&(e+=": "+a,f=b);a=new tn_.asserts.AssertionError(""+e,f||[]);tn_.asserts.errorHandler_(a)};tn_.asserts.setErrorHandler=function(a){tn_.asserts.ENABLE_ASSERTS&&(tn_.asserts.errorHandler_=a)};
tn_.asserts.assert=function(a,b,c){tn_.asserts.ENABLE_ASSERTS&&!a&&tn_.asserts.doAssertFailure_("",null,b,Array.prototype.slice.call(arguments,2));return a};tn_.asserts.fail=function(a,b){tn_.asserts.ENABLE_ASSERTS&&tn_.asserts.errorHandler_(new tn_.asserts.AssertionError("Failure"+(a?": "+a:""),Array.prototype.slice.call(arguments,1)))};
tn_.asserts.assertNumber=function(a,b,c){tn_.asserts.ENABLE_ASSERTS&&!tn_.isNumber(a)&&tn_.asserts.doAssertFailure_("Expected number but got %s: %s.",[tn_.typeOf(a),a],b,Array.prototype.slice.call(arguments,2));return a};tn_.asserts.assertString=function(a,b,c){tn_.asserts.ENABLE_ASSERTS&&!tn_.isString(a)&&tn_.asserts.doAssertFailure_("Expected string but got %s: %s.",[tn_.typeOf(a),a],b,Array.prototype.slice.call(arguments,2));return a};
tn_.asserts.assertFunction=function(a,b,c){tn_.asserts.ENABLE_ASSERTS&&!tn_.isFunction(a)&&tn_.asserts.doAssertFailure_("Expected function but got %s: %s.",[tn_.typeOf(a),a],b,Array.prototype.slice.call(arguments,2));return a};tn_.asserts.assertObject=function(a,b,c){tn_.asserts.ENABLE_ASSERTS&&!tn_.isObject(a)&&tn_.asserts.doAssertFailure_("Expected object but got %s: %s.",[tn_.typeOf(a),a],b,Array.prototype.slice.call(arguments,2));return a};
tn_.asserts.assertArray=function(a,b,c){tn_.asserts.ENABLE_ASSERTS&&!tn_.isArray(a)&&tn_.asserts.doAssertFailure_("Expected array but got %s: %s.",[tn_.typeOf(a),a],b,Array.prototype.slice.call(arguments,2));return a};tn_.asserts.assertBoolean=function(a,b,c){tn_.asserts.ENABLE_ASSERTS&&!tn_.isBoolean(a)&&tn_.asserts.doAssertFailure_("Expected boolean but got %s: %s.",[tn_.typeOf(a),a],b,Array.prototype.slice.call(arguments,2));return a};
tn_.asserts.assertElement=function(a,b,c){!tn_.asserts.ENABLE_ASSERTS||tn_.isObject(a)&&a.nodeType==tn_.dom.NodeType.ELEMENT||tn_.asserts.doAssertFailure_("Expected Element but got %s: %s.",[tn_.typeOf(a),a],b,Array.prototype.slice.call(arguments,2));return a};
tn_.asserts.assertInstanceof=function(a,b,c,d){!tn_.asserts.ENABLE_ASSERTS||a instanceof b||tn_.asserts.doAssertFailure_("Expected instanceof %s but got %s.",[tn_.asserts.getType_(b),tn_.asserts.getType_(a)],c,Array.prototype.slice.call(arguments,3));return a};tn_.asserts.assertFinite=function(a,b,c){!tn_.asserts.ENABLE_ASSERTS||"number"==typeof a&&isFinite(a)||tn_.asserts.doAssertFailure_("Expected %s to be a finite number but it is not.",[a],b,Array.prototype.slice.call(arguments,2));return a};
tn_.asserts.assertObjectPrototypeIsIntact=function(){for(var a in Object.prototype)tn_.asserts.fail(a+" should not be enumerable in Object.prototype.")};tn_.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};tn_.dom.asserts={};tn_.dom.asserts.assertIsLocation=function(a){if(tn_.asserts.ENABLE_ASSERTS){var b=tn_.dom.asserts.getWindow_(a);"undefined"!=typeof b.Location&&"undefined"!=typeof b.Element&&tn_.asserts.assert(a&&(a instanceof b.Location||!(a instanceof b.Element)),"Argument is not a Location (or a non-Element mock); got: %s",tn_.dom.asserts.debugStringForType_(a))}return a};
tn_.dom.asserts.assertIsElementType_=function(a,b){if(tn_.asserts.ENABLE_ASSERTS){var c=tn_.dom.asserts.getWindow_(a);"undefined"!=typeof c[b]&&"undefined"!=typeof c.Location&&"undefined"!=typeof c.Element&&tn_.asserts.assert(a&&(a instanceof c[b]||!(a instanceof c.Location||a instanceof c.Element)),"Argument is not a %s (or a non-Element, non-Location mock); got: %s",b,tn_.dom.asserts.debugStringForType_(a))}return a};
tn_.dom.asserts.assertIsHTMLAnchorElement=function(a){return tn_.dom.asserts.assertIsElementType_(a,"HTMLAnchorElement")};tn_.dom.asserts.assertIsHTMLButtonElement=function(a){return tn_.dom.asserts.assertIsElementType_(a,"HTMLButtonElement")};tn_.dom.asserts.assertIsHTMLLinkElement=function(a){return tn_.dom.asserts.assertIsElementType_(a,"HTMLLinkElement")};tn_.dom.asserts.assertIsHTMLImageElement=function(a){return tn_.dom.asserts.assertIsElementType_(a,"HTMLImageElement")};
tn_.dom.asserts.assertIsHTMLVideoElement=function(a){return tn_.dom.asserts.assertIsElementType_(a,"HTMLVideoElement")};tn_.dom.asserts.assertIsHTMLInputElement=function(a){return tn_.dom.asserts.assertIsElementType_(a,"HTMLInputElement")};tn_.dom.asserts.assertIsHTMLEmbedElement=function(a){return tn_.dom.asserts.assertIsElementType_(a,"HTMLEmbedElement")};tn_.dom.asserts.assertIsHTMLFormElement=function(a){return tn_.dom.asserts.assertIsElementType_(a,"HTMLFormElement")};
tn_.dom.asserts.assertIsHTMLFrameElement=function(a){return tn_.dom.asserts.assertIsElementType_(a,"HTMLFrameElement")};tn_.dom.asserts.assertIsHTMLIFrameElement=function(a){return tn_.dom.asserts.assertIsElementType_(a,"HTMLIFrameElement")};tn_.dom.asserts.assertIsHTMLObjectElement=function(a){return tn_.dom.asserts.assertIsElementType_(a,"HTMLObjectElement")};tn_.dom.asserts.assertIsHTMLScriptElement=function(a){return tn_.dom.asserts.assertIsElementType_(a,"HTMLScriptElement")};
tn_.dom.asserts.debugStringForType_=function(a){return tn_.isObject(a)?a.constructor.displayName||a.constructor.name||Object.prototype.toString.call(a):void 0===a?"undefined":null===a?"null":typeof a};tn_.dom.asserts.getWindow_=function(a){return(a=(a=a&&a.ownerDocument)&&(a.defaultView||a.parentWindow))||tn_.global};tn_.array={};tn_.NATIVE_ARRAY_PROTOTYPES=tn_.TRUSTED_SITE;tn_.array.ASSUME_NATIVE_FUNCTIONS=!1;tn_.array.peek=function(a){return a[a.length-1]};tn_.array.last=tn_.array.peek;
tn_.array.indexOf=tn_.NATIVE_ARRAY_PROTOTYPES&&(tn_.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.indexOf)?function(a,b,c){tn_.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(tn_.isString(a))return tn_.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};
tn_.array.lastIndexOf=tn_.NATIVE_ARRAY_PROTOTYPES&&(tn_.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.lastIndexOf)?function(a,b,c){tn_.asserts.assert(null!=a.length);c=null==c?a.length-1:c;return Array.prototype.lastIndexOf.call(a,b,c)}:function(a,b,c){c=null==c?a.length-1:c;0>c&&(c=Math.max(0,a.length+c));if(tn_.isString(a))return tn_.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};
tn_.array.forEach=tn_.NATIVE_ARRAY_PROTOTYPES&&(tn_.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.forEach)?function(a,b,c){tn_.asserts.assert(null!=a.length);Array.prototype.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=tn_.isString(a)?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)};tn_.array.forEachRight=function(a,b,c){var d=a.length,e=tn_.isString(a)?a.split(""):a;for(--d;0<=d;--d)d in e&&b.call(c,e[d],d,a)};
tn_.array.filter=tn_.NATIVE_ARRAY_PROTOTYPES&&(tn_.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.filter)?function(a,b,c){tn_.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=tn_.isString(a)?a.split(""):a,n=0;n<d;n++)if(n in g){var l=g[n];b.call(c,l,n,a)&&(e[f++]=l)}return e};
tn_.array.map=tn_.NATIVE_ARRAY_PROTOTYPES&&(tn_.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.map)?function(a,b,c){tn_.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=tn_.isString(a)?a.split(""):a,g=0;g<d;g++)g in f&&(e[g]=b.call(c,f[g],g,a));return e};
tn_.array.reduce=tn_.NATIVE_ARRAY_PROTOTYPES&&(tn_.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.reduce)?function(a,b,c,d){tn_.asserts.assert(null!=a.length);d&&(b=tn_.bind(b,d));return Array.prototype.reduce.call(a,b,c)}:function(a,b,c,d){var e=c;tn_.array.forEach(a,function(c,g){e=b.call(d,e,c,g,a)});return e};
tn_.array.reduceRight=tn_.NATIVE_ARRAY_PROTOTYPES&&(tn_.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.reduceRight)?function(a,b,c,d){tn_.asserts.assert(null!=a.length);tn_.asserts.assert(null!=b);d&&(b=tn_.bind(b,d));return Array.prototype.reduceRight.call(a,b,c)}:function(a,b,c,d){var e=c;tn_.array.forEachRight(a,function(c,g){e=b.call(d,e,c,g,a)});return e};
tn_.array.some=tn_.NATIVE_ARRAY_PROTOTYPES&&(tn_.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.some)?function(a,b,c){tn_.asserts.assert(null!=a.length);return Array.prototype.some.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=tn_.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};
tn_.array.every=tn_.NATIVE_ARRAY_PROTOTYPES&&(tn_.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.every)?function(a,b,c){tn_.asserts.assert(null!=a.length);return Array.prototype.every.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=tn_.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};tn_.array.count=function(a,b,c){var d=0;tn_.array.forEach(a,function(a,f,g){b.call(c,a,f,g)&&++d},c);return d};
tn_.array.find=function(a,b,c){b=tn_.array.findIndex(a,b,c);return 0>b?null:tn_.isString(a)?a.charAt(b):a[b]};tn_.array.findIndex=function(a,b,c){for(var d=a.length,e=tn_.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};tn_.array.findRight=function(a,b,c){b=tn_.array.findIndexRight(a,b,c);return 0>b?null:tn_.isString(a)?a.charAt(b):a[b]};
tn_.array.findIndexRight=function(a,b,c){var d=a.length,e=tn_.isString(a)?a.split(""):a;for(--d;0<=d;d--)if(d in e&&b.call(c,e[d],d,a))return d;return-1};tn_.array.contains=function(a,b){return 0<=tn_.array.indexOf(a,b)};tn_.array.isEmpty=function(a){return 0==a.length};tn_.array.clear=function(a){if(!tn_.isArray(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0};tn_.array.insert=function(a,b){tn_.array.contains(a,b)||a.push(b)};tn_.array.insertAt=function(a,b,c){tn_.array.splice(a,c,0,b)};
tn_.array.insertArrayAt=function(a,b,c){tn_.partial(tn_.array.splice,a,c,0).apply(null,b)};tn_.array.insertBefore=function(a,b,c){var d;2==arguments.length||0>(d=tn_.array.indexOf(a,c))?a.push(b):tn_.array.insertAt(a,b,d)};tn_.array.remove=function(a,b){b=tn_.array.indexOf(a,b);var c;(c=0<=b)&&tn_.array.removeAt(a,b);return c};tn_.array.removeLast=function(a,b){b=tn_.array.lastIndexOf(a,b);return 0<=b?(tn_.array.removeAt(a,b),!0):!1};
tn_.array.removeAt=function(a,b){tn_.asserts.assert(null!=a.length);return 1==Array.prototype.splice.call(a,b,1).length};tn_.array.removeIf=function(a,b,c){b=tn_.array.findIndex(a,b,c);return 0<=b?(tn_.array.removeAt(a,b),!0):!1};tn_.array.removeAllIf=function(a,b,c){var d=0;tn_.array.forEachRight(a,function(e,f){b.call(c,e,f,a)&&tn_.array.removeAt(a,f)&&d++});return d};tn_.array.concat=function(a){return Array.prototype.concat.apply([],arguments)};
tn_.array.join=function(a){return Array.prototype.concat.apply([],arguments)};tn_.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[]};tn_.array.clone=tn_.array.toArray;tn_.array.extend=function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(tn_.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)}};
tn_.array.splice=function(a,b,c,d){tn_.asserts.assert(null!=a.length);return Array.prototype.splice.apply(a,tn_.array.slice(arguments,1))};tn_.array.slice=function(a,b,c){tn_.asserts.assert(null!=a.length);return 2>=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)};
tn_.array.removeDuplicates=function(a,b,c){b=b||a;var d=function(a){return tn_.isObject(a)?"o"+tn_.getUid(a):(typeof a).charAt(0)+a};c=c||d;d={};for(var e=0,f=0;f<a.length;){var g=a[f++],n=c(g);Object.prototype.hasOwnProperty.call(d,n)||(d[n]=!0,b[e++]=g)}b.length=e};tn_.array.binarySearch=function(a,b,c){return tn_.array.binarySearch_(a,c||tn_.array.defaultCompare,!1,b)};tn_.array.binarySelect=function(a,b,c){return tn_.array.binarySearch_(a,b,!0,void 0,c)};
tn_.array.binarySearch_=function(a,b,c,d,e){for(var f=0,g=a.length,n;f<g;){var l=f+g>>1;var m=c?b.call(e,a[l],l,a):b(d,a[l]);0<m?f=l+1:(g=l,n=!m)}return n?f:~f};tn_.array.sort=function(a,b){a.sort(b||tn_.array.defaultCompare)};tn_.array.stableSort=function(a,b){function c(a,b){return f(a.value,b.value)||a.index-b.index}for(var d=Array(a.length),e=0;e<a.length;e++)d[e]={index:e,value:a[e]};var f=b||tn_.array.defaultCompare;tn_.array.sort(d,c);for(e=0;e<a.length;e++)a[e]=d[e].value};
tn_.array.sortByKey=function(a,b,c){var d=c||tn_.array.defaultCompare;tn_.array.sort(a,function(a,c){return d(b(a),b(c))})};tn_.array.sortObjectsByKey=function(a,b,c){tn_.array.sortByKey(a,function(a){return a[b]},c)};tn_.array.isSorted=function(a,b,c){b=b||tn_.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};
tn_.array.equals=function(a,b,c){if(!tn_.isArrayLike(a)||!tn_.isArrayLike(b)||a.length!=b.length)return!1;var d=a.length;c=c||tn_.array.defaultCompareEquality;for(var e=0;e<d;e++)if(!c(a[e],b[e]))return!1;return!0};tn_.array.compare3=function(a,b,c){c=c||tn_.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 tn_.array.defaultCompare(a.length,b.length)};tn_.array.defaultCompare=function(a,b){return a>b?1:a<b?-1:0};
tn_.array.inverseDefaultCompare=function(a,b){return-tn_.array.defaultCompare(a,b)};tn_.array.defaultCompareEquality=function(a,b){return a===b};tn_.array.binaryInsert=function(a,b,c){c=tn_.array.binarySearch(a,b,c);return 0>c?(tn_.array.insertAt(a,b,-(c+1)),!0):!1};tn_.array.binaryRemove=function(a,b,c){b=tn_.array.binarySearch(a,b,c);return 0<=b?tn_.array.removeAt(a,b):!1};
tn_.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);tn_.isDef(g)&&(g=d[g]||(d[g]=[]),g.push(f))}return d};tn_.array.toObject=function(a,b,c){var d={};tn_.array.forEach(a,function(e,f){d[b.call(c,e,f,a)]=e});return d};tn_.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};tn_.array.repeat=function(a,b){for(var c=[],d=0;d<b;d++)c[d]=a;return c};
tn_.array.flatten=function(a){for(var b=[],c=0;c<arguments.length;c++){var d=arguments[c];if(tn_.isArray(d))for(var e=0;e<d.length;e+=8192){var f=tn_.array.slice(d,e,e+8192);f=tn_.array.flatten.apply(null,f);for(var g=0;g<f.length;g++)b.push(f[g])}else b.push(d)}return b};tn_.array.rotate=function(a,b){tn_.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};
tn_.array.moveItem=function(a,b,c){tn_.asserts.assert(0<=b&&b<a.length);tn_.asserts.assert(0<=c&&c<a.length);b=Array.prototype.splice.call(a,b,1);Array.prototype.splice.call(a,c,0,b[0])};tn_.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};
tn_.array.shuffle=function(a,b){b=b||Math.random;for(var c=a.length-1;0<c;c--){var d=Math.floor(b()*(c+1)),e=a[c];a[c]=a[d];a[d]=e}};tn_.array.copyByIndex=function(a,b){var c=[];tn_.array.forEach(b,function(b){c.push(a[b])});return c};tn_.array.concatMap=function(a,b,c){return tn_.array.concat.apply([],tn_.array.map(a,b,c))};tn_.dom.HtmlElement=function(){};tn_.dom.TagName=function(a){this.tagName_=a};tn_.dom.TagName.prototype.toString=function(){return this.tagName_};tn_.dom.TagName.A=new tn_.dom.TagName("A");tn_.dom.TagName.ABBR=new tn_.dom.TagName("ABBR");tn_.dom.TagName.ACRONYM=new tn_.dom.TagName("ACRONYM");tn_.dom.TagName.ADDRESS=new tn_.dom.TagName("ADDRESS");tn_.dom.TagName.APPLET=new tn_.dom.TagName("APPLET");tn_.dom.TagName.AREA=new tn_.dom.TagName("AREA");tn_.dom.TagName.ARTICLE=new tn_.dom.TagName("ARTICLE");tn_.dom.TagName.ASIDE=new tn_.dom.TagName("ASIDE");
tn_.dom.TagName.AUDIO=new tn_.dom.TagName("AUDIO");tn_.dom.TagName.B=new tn_.dom.TagName("B");tn_.dom.TagName.BASE=new tn_.dom.TagName("BASE");tn_.dom.TagName.BASEFONT=new tn_.dom.TagName("BASEFONT");tn_.dom.TagName.BDI=new tn_.dom.TagName("BDI");tn_.dom.TagName.BDO=new tn_.dom.TagName("BDO");tn_.dom.TagName.BIG=new tn_.dom.TagName("BIG");tn_.dom.TagName.BLOCKQUOTE=new tn_.dom.TagName("BLOCKQUOTE");tn_.dom.TagName.BODY=new tn_.dom.TagName("BODY");tn_.dom.TagName.BR=new tn_.dom.TagName("BR");
tn_.dom.TagName.BUTTON=new tn_.dom.TagName("BUTTON");tn_.dom.TagName.CANVAS=new tn_.dom.TagName("CANVAS");tn_.dom.TagName.CAPTION=new tn_.dom.TagName("CAPTION");tn_.dom.TagName.CENTER=new tn_.dom.TagName("CENTER");tn_.dom.TagName.CITE=new tn_.dom.TagName("CITE");tn_.dom.TagName.CODE=new tn_.dom.TagName("CODE");tn_.dom.TagName.COL=new tn_.dom.TagName("COL");tn_.dom.TagName.COLGROUP=new tn_.dom.TagName("COLGROUP");tn_.dom.TagName.COMMAND=new tn_.dom.TagName("COMMAND");tn_.dom.TagName.DATA=new tn_.dom.TagName("DATA");
tn_.dom.TagName.DATALIST=new tn_.dom.TagName("DATALIST");tn_.dom.TagName.DD=new tn_.dom.TagName("DD");tn_.dom.TagName.DEL=new tn_.dom.TagName("DEL");tn_.dom.TagName.DETAILS=new tn_.dom.TagName("DETAILS");tn_.dom.TagName.DFN=new tn_.dom.TagName("DFN");tn_.dom.TagName.DIALOG=new tn_.dom.TagName("DIALOG");tn_.dom.TagName.DIR=new tn_.dom.TagName("DIR");tn_.dom.TagName.DIV=new tn_.dom.TagName("DIV");tn_.dom.TagName.DL=new tn_.dom.TagName("DL");tn_.dom.TagName.DT=new tn_.dom.TagName("DT");
tn_.dom.TagName.EM=new tn_.dom.TagName("EM");tn_.dom.TagName.EMBED=new tn_.dom.TagName("EMBED");tn_.dom.TagName.FIELDSET=new tn_.dom.TagName("FIELDSET");tn_.dom.TagName.FIGCAPTION=new tn_.dom.TagName("FIGCAPTION");tn_.dom.TagName.FIGURE=new tn_.dom.TagName("FIGURE");tn_.dom.TagName.FONT=new tn_.dom.TagName("FONT");tn_.dom.TagName.FOOTER=new tn_.dom.TagName("FOOTER");tn_.dom.TagName.FORM=new tn_.dom.TagName("FORM");tn_.dom.TagName.FRAME=new tn_.dom.TagName("FRAME");tn_.dom.TagName.FRAMESET=new tn_.dom.TagName("FRAMESET");
tn_.dom.TagName.H1=new tn_.dom.TagName("H1");tn_.dom.TagName.H2=new tn_.dom.TagName("H2");tn_.dom.TagName.H3=new tn_.dom.TagName("H3");tn_.dom.TagName.H4=new tn_.dom.TagName("H4");tn_.dom.TagName.H5=new tn_.dom.TagName("H5");tn_.dom.TagName.H6=new tn_.dom.TagName("H6");tn_.dom.TagName.HEAD=new tn_.dom.TagName("HEAD");tn_.dom.TagName.HEADER=new tn_.dom.TagName("HEADER");tn_.dom.TagName.HGROUP=new tn_.dom.TagName("HGROUP");tn_.dom.TagName.HR=new tn_.dom.TagName("HR");tn_.dom.TagName.HTML=new tn_.dom.TagName("HTML");
tn_.dom.TagName.I=new tn_.dom.TagName("I");tn_.dom.TagName.IFRAME=new tn_.dom.TagName("IFRAME");tn_.dom.TagName.IMG=new tn_.dom.TagName("IMG");tn_.dom.TagName.INPUT=new tn_.dom.TagName("INPUT");tn_.dom.TagName.INS=new tn_.dom.TagName("INS");tn_.dom.TagName.ISINDEX=new tn_.dom.TagName("ISINDEX");tn_.dom.TagName.KBD=new tn_.dom.TagName("KBD");tn_.dom.TagName.KEYGEN=new tn_.dom.TagName("KEYGEN");tn_.dom.TagName.LABEL=new tn_.dom.TagName("LABEL");tn_.dom.TagName.LEGEND=new tn_.dom.TagName("LEGEND");
tn_.dom.TagName.LI=new tn_.dom.TagName("LI");tn_.dom.TagName.LINK=new tn_.dom.TagName("LINK");tn_.dom.TagName.MAIN=new tn_.dom.TagName("MAIN");tn_.dom.TagName.MAP=new tn_.dom.TagName("MAP");tn_.dom.TagName.MARK=new tn_.dom.TagName("MARK");tn_.dom.TagName.MATH=new tn_.dom.TagName("MATH");tn_.dom.TagName.MENU=new tn_.dom.TagName("MENU");tn_.dom.TagName.MENUITEM=new tn_.dom.TagName("MENUITEM");tn_.dom.TagName.META=new tn_.dom.TagName("META");tn_.dom.TagName.METER=new tn_.dom.TagName("METER");
tn_.dom.TagName.NAV=new tn_.dom.TagName("NAV");tn_.dom.TagName.NOFRAMES=new tn_.dom.TagName("NOFRAMES");tn_.dom.TagName.NOSCRIPT=new tn_.dom.TagName("NOSCRIPT");tn_.dom.TagName.OBJECT=new tn_.dom.TagName("OBJECT");tn_.dom.TagName.OL=new tn_.dom.TagName("OL");tn_.dom.TagName.OPTGROUP=new tn_.dom.TagName("OPTGROUP");tn_.dom.TagName.OPTION=new tn_.dom.TagName("OPTION");tn_.dom.TagName.OUTPUT=new tn_.dom.TagName("OUTPUT");tn_.dom.TagName.P=new tn_.dom.TagName("P");tn_.dom.TagName.PARAM=new tn_.dom.TagName("PARAM");
tn_.dom.TagName.PICTURE=new tn_.dom.TagName("PICTURE");tn_.dom.TagName.PRE=new tn_.dom.TagName("PRE");tn_.dom.TagName.PROGRESS=new tn_.dom.TagName("PROGRESS");tn_.dom.TagName.Q=new tn_.dom.TagName("Q");tn_.dom.TagName.RP=new tn_.dom.TagName("RP");tn_.dom.TagName.RT=new tn_.dom.TagName("RT");tn_.dom.TagName.RTC=new tn_.dom.TagName("RTC");tn_.dom.TagName.RUBY=new tn_.dom.TagName("RUBY");tn_.dom.TagName.S=new tn_.dom.TagName("S");tn_.dom.TagName.SAMP=new tn_.dom.TagName("SAMP");
tn_.dom.TagName.SCRIPT=new tn_.dom.TagName("SCRIPT");tn_.dom.TagName.SECTION=new tn_.dom.TagName("SECTION");tn_.dom.TagName.SELECT=new tn_.dom.TagName("SELECT");tn_.dom.TagName.SMALL=new tn_.dom.TagName("SMALL");tn_.dom.TagName.SOURCE=new tn_.dom.TagName("SOURCE");tn_.dom.TagName.SPAN=new tn_.dom.TagName("SPAN");tn_.dom.TagName.STRIKE=new tn_.dom.TagName("STRIKE");tn_.dom.TagName.STRONG=new tn_.dom.TagName("STRONG");tn_.dom.TagName.STYLE=new tn_.dom.TagName("STYLE");tn_.dom.TagName.SUB=new tn_.dom.TagName("SUB");
tn_.dom.TagName.SUMMARY=new tn_.dom.TagName("SUMMARY");tn_.dom.TagName.SUP=new tn_.dom.TagName("SUP");tn_.dom.TagName.SVG=new tn_.dom.TagName("SVG");tn_.dom.TagName.TABLE=new tn_.dom.TagName("TABLE");tn_.dom.TagName.TBODY=new tn_.dom.TagName("TBODY");tn_.dom.TagName.TD=new tn_.dom.TagName("TD");tn_.dom.TagName.TEMPLATE=new tn_.dom.TagName("TEMPLATE");tn_.dom.TagName.TEXTAREA=new tn_.dom.TagName("TEXTAREA");tn_.dom.TagName.TFOOT=new tn_.dom.TagName("TFOOT");tn_.dom.TagName.TH=new tn_.dom.TagName("TH");
tn_.dom.TagName.THEAD=new tn_.dom.TagName("THEAD");tn_.dom.TagName.TIME=new tn_.dom.TagName("TIME");tn_.dom.TagName.TITLE=new tn_.dom.TagName("TITLE");tn_.dom.TagName.TR=new tn_.dom.TagName("TR");tn_.dom.TagName.TRACK=new tn_.dom.TagName("TRACK");tn_.dom.TagName.TT=new tn_.dom.TagName("TT");tn_.dom.TagName.U=new tn_.dom.TagName("U");tn_.dom.TagName.UL=new tn_.dom.TagName("UL");tn_.dom.TagName.VAR=new tn_.dom.TagName("VAR");tn_.dom.TagName.VIDEO=new tn_.dom.TagName("VIDEO");tn_.dom.TagName.WBR=new tn_.dom.TagName("WBR");tn_.object={};tn_.object.is=function(a,b){return a===b?0!==a||1/a===1/b:a!==a&&b!==b};tn_.object.forEach=function(a,b,c){for(var d in a)b.call(c,a[d],d,a)};tn_.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};tn_.object.map=function(a,b,c){var d={},e;for(e in a)d[e]=b.call(c,a[e],e,a);return d};tn_.object.some=function(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return!0;return!1};
tn_.object.every=function(a,b,c){for(var d in a)if(!b.call(c,a[d],d,a))return!1;return!0};tn_.object.getCount=function(a){var b=0,c;for(c in a)b++;return b};tn_.object.getAnyKey=function(a){for(var b in a)return b};tn_.object.getAnyValue=function(a){for(var b in a)return a[b]};tn_.object.contains=function(a,b){return tn_.object.containsValue(a,b)};tn_.object.getValues=function(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b};tn_.object.getKeys=function(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b};
tn_.object.getValueByKeys=function(a,b){var c=tn_.isArrayLike(b),d=c?b:arguments;for(c=c?0:1;c<d.length;c++){if(null==a)return;a=a[d[c]]}return a};tn_.object.containsKey=function(a,b){return null!==a&&b in a};tn_.object.containsValue=function(a,b){for(var c in a)if(a[c]==b)return!0;return!1};tn_.object.findKey=function(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return d};tn_.object.findValue=function(a,b,c){return(b=tn_.object.findKey(a,b,c))&&a[b]};
tn_.object.isEmpty=function(a){for(var b in a)return!1;return!0};tn_.object.clear=function(a){for(var b in a)delete a[b]};tn_.object.remove=function(a,b){var c;(c=b in a)&&delete a[b];return c};tn_.object.add=function(a,b,c){if(null!==a&&b in a)throw Error('The object already contains the key "'+b+'"');tn_.object.set(a,b,c)};tn_.object.get=function(a,b,c){return null!==a&&b in a?a[b]:c};tn_.object.set=function(a,b,c){a[b]=c};tn_.object.setIfUndefined=function(a,b,c){return b in a?a[b]:a[b]=c};
tn_.object.setWithReturnValueIfNotSet=function(a,b,c){if(b in a)return a[b];c=c();return a[b]=c};tn_.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};tn_.object.clone=function(a){var b={},c;for(c in a)b[c]=a[c];return b};tn_.object.unsafeClone=function(a){var b=tn_.typeOf(a);if("object"==b||"array"==b){if(tn_.isFunction(a.clone))return a.clone();b="array"==b?[]:{};for(var c in a)b[c]=tn_.object.unsafeClone(a[c]);return b}return a};
tn_.object.transpose=function(a){var b={},c;for(c in a)b[a[c]]=c;return b};tn_.object.PROTOTYPE_FIELDS_="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");tn_.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<tn_.object.PROTOTYPE_FIELDS_.length;f++)c=tn_.object.PROTOTYPE_FIELDS_[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};
tn_.object.create=function(a){var b=arguments.length;if(1==b&&tn_.isArray(arguments[0]))return tn_.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};tn_.object.createSet=function(a){var b=arguments.length;if(1==b&&tn_.isArray(arguments[0]))return tn_.object.createSet.apply(null,arguments[0]);for(var c={},d=0;d<b;d++)c[arguments[d]]=!0;return c};
tn_.object.createImmutableView=function(a){var b=a;Object.isFrozen&&!Object.isFrozen(a)&&(b=Object.create(a),Object.freeze(b));return b};tn_.object.isImmutableView=function(a){return!!Object.isFrozen&&Object.isFrozen(a)};
tn_.object.getAllPropertyNames=function(a,b,c){if(!a)return[];if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)return tn_.object.getKeys(a);for(var d={};a&&(a!==Object.prototype||b)&&(a!==Function.prototype||c);){for(var e=Object.getOwnPropertyNames(a),f=0;f<e.length;f++)d[e[f]]=!0;a=Object.getPrototypeOf(a)}return tn_.object.getKeys(d)};tn_.dom.tags={};tn_.dom.tags.VOID_TAGS_={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0};tn_.dom.tags.isVoidTag=function(a){return!0===tn_.dom.tags.VOID_TAGS_[a]};tn_.string={};tn_.string.TypedString=function(){};tn_.string.Const=function(){this.stringConstValueWithSecurityContract__googStringSecurityPrivate_="";this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_=tn_.string.Const.TYPE_MARKER_};tn_.string.Const.prototype.implementsGoogStringTypedString=!0;tn_.string.Const.prototype.getTypedStringValue=function(){return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_};
tn_.string.Const.prototype.toString=function(){return"Const{"+this.stringConstValueWithSecurityContract__googStringSecurityPrivate_+"}"};tn_.string.Const.unwrap=function(a){if(a instanceof tn_.string.Const&&a.constructor===tn_.string.Const&&a.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_===tn_.string.Const.TYPE_MARKER_)return a.stringConstValueWithSecurityContract__googStringSecurityPrivate_;tn_.asserts.fail("expected object of type Const, got '"+a+"'");return"type_error:Const"};
tn_.string.Const.from=function(a){return tn_.string.Const.create__googStringSecurityPrivate_(a)};tn_.string.Const.TYPE_MARKER_={};tn_.string.Const.create__googStringSecurityPrivate_=function(a){var b=new tn_.string.Const;b.stringConstValueWithSecurityContract__googStringSecurityPrivate_=a;return b};tn_.string.Const.EMPTY=tn_.string.Const.from("");tn_.html={};tn_.html.SafeScript=function(){this.privateDoNotAccessOrElseSafeScriptWrappedValue_="";this.SAFE_SCRIPT_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_=tn_.html.SafeScript.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_};tn_.html.SafeScript.prototype.implementsGoogStringTypedString=!0;tn_.html.SafeScript.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_={};tn_.html.SafeScript.fromConstant=function(a){a=tn_.string.Const.unwrap(a);return 0===a.length?tn_.html.SafeScript.EMPTY:tn_.html.SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse(a)};
tn_.html.SafeScript.fromConstantAndArgs=function(a,b){for(var c=[],d=1;d<arguments.length;d++)c.push(tn_.html.SafeScript.stringify_(arguments[d]));return tn_.html.SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse("("+tn_.string.Const.unwrap(a)+")("+c.join(", ")+");")};tn_.html.SafeScript.prototype.getTypedStringValue=function(){return this.privateDoNotAccessOrElseSafeScriptWrappedValue_};
tn_.DEBUG&&(tn_.html.SafeScript.prototype.toString=function(){return"SafeScript{"+this.privateDoNotAccessOrElseSafeScriptWrappedValue_+"}"});
tn_.html.SafeScript.unwrap=function(a){if(a instanceof tn_.html.SafeScript&&a.constructor===tn_.html.SafeScript&&a.SAFE_SCRIPT_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_===tn_.html.SafeScript.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_)return a.privateDoNotAccessOrElseSafeScriptWrappedValue_;tn_.asserts.fail("expected object of type SafeScript, got '"+a+"' of type "+tn_.typeOf(a));return"type_error:SafeScript"};tn_.html.SafeScript.stringify_=function(a){a=JSON.stringify(a);return a.replace(/</g,"\\x3c")};
tn_.html.SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse=function(a){return(new tn_.html.SafeScript).initSecurityPrivateDoNotAccessOrElse_(a)};tn_.html.SafeScript.prototype.initSecurityPrivateDoNotAccessOrElse_=function(a){this.privateDoNotAccessOrElseSafeScriptWrappedValue_=a;return this};tn_.html.SafeScript.EMPTY=tn_.html.SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse("");tn_.fs={};tn_.fs.url={};tn_.fs.url.createObjectUrl=function(a){return tn_.fs.url.getUrlObject_().createObjectURL(a)};tn_.fs.url.revokeObjectUrl=function(a){tn_.fs.url.getUrlObject_().revokeObjectURL(a)};tn_.fs.url.getUrlObject_=function(){var a=tn_.fs.url.findUrlObject_();if(null!=a)return a;throw Error("This browser doesn't seem to support blob URLs");};
tn_.fs.url.findUrlObject_=function(){return tn_.isDef(tn_.global.URL)&&tn_.isDef(tn_.global.URL.createObjectURL)?tn_.global.URL:tn_.isDef(tn_.global.webkitURL)&&tn_.isDef(tn_.global.webkitURL.createObjectURL)?tn_.global.webkitURL:tn_.isDef(tn_.global.createObjectURL)?tn_.global:null};tn_.fs.url.browserSupportsObjectUrls=function(){return null!=tn_.fs.url.findUrlObject_()};tn_.i18n={};tn_.i18n.bidi={};tn_.i18n.bidi.FORCE_RTL=!1;
tn_.i18n.bidi.IS_RTL=tn_.i18n.bidi.FORCE_RTL||("ar"==tn_.LOCALE.substring(0,2).toLowerCase()||"fa"==tn_.LOCALE.substring(0,2).toLowerCase()||"he"==tn_.LOCALE.substring(0,2).toLowerCase()||"iw"==tn_.LOCALE.substring(0,2).toLowerCase()||"ps"==tn_.LOCALE.substring(0,2).toLowerCase()||"sd"==tn_.LOCALE.substring(0,2).toLowerCase()||"ug"==tn_.LOCALE.substring(0,2).toLowerCase()||"ur"==tn_.LOCALE.substring(0,2).toLowerCase()||"yi"==tn_.LOCALE.substring(0,2).toLowerCase())&&(2==tn_.LOCALE.length||"-"==tn_.LOCALE.substring(2,
3)||"_"==tn_.LOCALE.substring(2,3))||3<=tn_.LOCALE.length&&"ckb"==tn_.LOCALE.substring(0,3).toLowerCase()&&(3==tn_.LOCALE.length||"-"==tn_.LOCALE.substring(3,4)||"_"==tn_.LOCALE.substring(3,4));tn_.i18n.bidi.Format={LRE:"\u202a",RLE:"\u202b",PDF:"\u202c",LRM:"\u200e",RLM:"\u200f"};tn_.i18n.bidi.Dir={LTR:1,RTL:-1,NEUTRAL:0};tn_.i18n.bidi.RIGHT="right";tn_.i18n.bidi.LEFT="left";tn_.i18n.bidi.I18N_RIGHT=tn_.i18n.bidi.IS_RTL?tn_.i18n.bidi.LEFT:tn_.i18n.bidi.RIGHT;
tn_.i18n.bidi.I18N_LEFT=tn_.i18n.bidi.IS_RTL?tn_.i18n.bidi.RIGHT:tn_.i18n.bidi.LEFT;tn_.i18n.bidi.toDir=function(a,b){return"number"==typeof a?0<a?tn_.i18n.bidi.Dir.LTR:0>a?tn_.i18n.bidi.Dir.RTL:b?null:tn_.i18n.bidi.Dir.NEUTRAL:null==a?null:a?tn_.i18n.bidi.Dir.RTL:tn_.i18n.bidi.Dir.LTR};tn_.i18n.bidi.ltrChars_="A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff";tn_.i18n.bidi.rtlChars_="\u0591-\u06ef\u06fa-\u07ff\u200f\ufb1d-\ufdff\ufe70-\ufefc";
tn_.i18n.bidi.htmlSkipReg_=/<[^>]*>|&[^;]+;/g;tn_.i18n.bidi.stripHtmlIfNeeded_=function(a,b){return b?a.replace(tn_.i18n.bidi.htmlSkipReg_,""):a};tn_.i18n.bidi.rtlCharReg_=new RegExp("["+tn_.i18n.bidi.rtlChars_+"]");tn_.i18n.bidi.ltrCharReg_=new RegExp("["+tn_.i18n.bidi.ltrChars_+"]");tn_.i18n.bidi.hasAnyRtl=function(a,b){return tn_.i18n.bidi.rtlCharReg_.test(tn_.i18n.bidi.stripHtmlIfNeeded_(a,b))};tn_.i18n.bidi.hasRtlChar=tn_.i18n.bidi.hasAnyRtl;
tn_.i18n.bidi.hasAnyLtr=function(a,b){return tn_.i18n.bidi.ltrCharReg_.test(tn_.i18n.bidi.stripHtmlIfNeeded_(a,b))};tn_.i18n.bidi.ltrRe_=new RegExp("^["+tn_.i18n.bidi.ltrChars_+"]");tn_.i18n.bidi.rtlRe_=new RegExp("^["+tn_.i18n.bidi.rtlChars_+"]");tn_.i18n.bidi.isRtlChar=function(a){return tn_.i18n.bidi.rtlRe_.test(a)};tn_.i18n.bidi.isLtrChar=function(a){return tn_.i18n.bidi.ltrRe_.test(a)};tn_.i18n.bidi.isNeutralChar=function(a){return!tn_.i18n.bidi.isLtrChar(a)&&!tn_.i18n.bidi.isRtlChar(a)};
tn_.i18n.bidi.ltrDirCheckRe_=new RegExp("^[^"+tn_.i18n.bidi.rtlChars_+"]*["+tn_.i18n.bidi.ltrChars_+"]");tn_.i18n.bidi.rtlDirCheckRe_=new RegExp("^[^"+tn_.i18n.bidi.ltrChars_+"]*["+tn_.i18n.bidi.rtlChars_+"]");tn_.i18n.bidi.startsWithRtl=function(a,b){return tn_.i18n.bidi.rtlDirCheckRe_.test(tn_.i18n.bidi.stripHtmlIfNeeded_(a,b))};tn_.i18n.bidi.isRtlText=tn_.i18n.bidi.startsWithRtl;
tn_.i18n.bidi.startsWithLtr=function(a,b){return tn_.i18n.bidi.ltrDirCheckRe_.test(tn_.i18n.bidi.stripHtmlIfNeeded_(a,b))};tn_.i18n.bidi.isLtrText=tn_.i18n.bidi.startsWithLtr;tn_.i18n.bidi.isRequiredLtrRe_=/^http:\/\/.*/;tn_.i18n.bidi.isNeutralText=function(a,b){a=tn_.i18n.bidi.stripHtmlIfNeeded_(a,b);return tn_.i18n.bidi.isRequiredLtrRe_.test(a)||!tn_.i18n.bidi.hasAnyLtr(a)&&!tn_.i18n.bidi.hasAnyRtl(a)};
tn_.i18n.bidi.ltrExitDirCheckRe_=new RegExp("["+tn_.i18n.bidi.ltrChars_+"][^"+tn_.i18n.bidi.rtlChars_+"]*$");tn_.i18n.bidi.rtlExitDirCheckRe_=new RegExp("["+tn_.i18n.bidi.rtlChars_+"][^"+tn_.i18n.bidi.ltrChars_+"]*$");tn_.i18n.bidi.endsWithLtr=function(a,b){return tn_.i18n.bidi.ltrExitDirCheckRe_.test(tn_.i18n.bidi.stripHtmlIfNeeded_(a,b))};tn_.i18n.bidi.isLtrExitText=tn_.i18n.bidi.endsWithLtr;
tn_.i18n.bidi.endsWithRtl=function(a,b){return tn_.i18n.bidi.rtlExitDirCheckRe_.test(tn_.i18n.bidi.stripHtmlIfNeeded_(a,b))};tn_.i18n.bidi.isRtlExitText=tn_.i18n.bidi.endsWithRtl;tn_.i18n.bidi.rtlLocalesRe_=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Arab|Hebr|Thaa|Nkoo|Tfng))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;tn_.i18n.bidi.isRtlLanguage=function(a){return tn_.i18n.bidi.rtlLocalesRe_.test(a)};tn_.i18n.bidi.bracketGuardTextRe_=/(\(.*?\)+)|(\[.*?\]+)|(\{.*?\}+)|(<.*?>+)/g;
tn_.i18n.bidi.guardBracketInText=function(a,b){b=(b=void 0===b?tn_.i18n.bidi.hasAnyRtl(a):b)?tn_.i18n.bidi.Format.RLM:tn_.i18n.bidi.Format.LRM;return a.replace(tn_.i18n.bidi.bracketGuardTextRe_,b+"$&"+b)};tn_.i18n.bidi.enforceRtlInHtml=function(a){return"<"==a.charAt(0)?a.replace(/<\w+/,"$& dir=rtl"):"\n<span dir=rtl>"+a+"</span>"};tn_.i18n.bidi.enforceRtlInText=function(a){return tn_.i18n.bidi.Format.RLE+a+tn_.i18n.bidi.Format.PDF};
tn_.i18n.bidi.enforceLtrInHtml=function(a){return"<"==a.charAt(0)?a.replace(/<\w+/,"$& dir=ltr"):"\n<span dir=ltr>"+a+"</span>"};tn_.i18n.bidi.enforceLtrInText=function(a){return tn_.i18n.bidi.Format.LRE+a+tn_.i18n.bidi.Format.PDF};tn_.i18n.bidi.dimensionsRe_=/:\s*([.\d][.\w]*)\s+([.\d][.\w]*)\s+([.\d][.\w]*)\s+([.\d][.\w]*)/g;tn_.i18n.bidi.leftRe_=/left/gi;tn_.i18n.bidi.rightRe_=/right/gi;tn_.i18n.bidi.tempRe_=/%%%%/g;
tn_.i18n.bidi.mirrorCSS=function(a){return a.replace(tn_.i18n.bidi.dimensionsRe_,":$1 $4 $3 $2").replace(tn_.i18n.bidi.leftRe_,"%%%%").replace(tn_.i18n.bidi.rightRe_,tn_.i18n.bidi.LEFT).replace(tn_.i18n.bidi.tempRe_,tn_.i18n.bidi.RIGHT)};tn_.i18n.bidi.doubleQuoteSubstituteRe_=/([\u0591-\u05f2])"/g;tn_.i18n.bidi.singleQuoteSubstituteRe_=/([\u0591-\u05f2])'/g;
tn_.i18n.bidi.normalizeHebrewQuote=function(a){return a.replace(tn_.i18n.bidi.doubleQuoteSubstituteRe_,"$1\u05f4").replace(tn_.i18n.bidi.singleQuoteSubstituteRe_,"$1\u05f3")};tn_.i18n.bidi.wordSeparatorRe_=/\s+/;tn_.i18n.bidi.hasNumeralsRe_=/[\d\u06f0-\u06f9]/;tn_.i18n.bidi.rtlDetectionThreshold_=.4;
tn_.i18n.bidi.estimateDirection=function(a,b){var c=0,d=0,e=!1;a=tn_.i18n.bidi.stripHtmlIfNeeded_(a,b).split(tn_.i18n.bidi.wordSeparatorRe_);for(b=0;b<a.length;b++){var f=a[b];tn_.i18n.bidi.startsWithRtl(f)?(c++,d++):tn_.i18n.bidi.isRequiredLtrRe_.test(f)?e=!0:tn_.i18n.bidi.hasAnyLtr(f)?d++:tn_.i18n.bidi.hasNumeralsRe_.test(f)&&(e=!0)}return 0==d?e?tn_.i18n.bidi.Dir.LTR:tn_.i18n.bidi.Dir.NEUTRAL:c/d>tn_.i18n.bidi.rtlDetectionThreshold_?tn_.i18n.bidi.Dir.RTL:tn_.i18n.bidi.Dir.LTR};
tn_.i18n.bidi.detectRtlDirectionality=function(a,b){return tn_.i18n.bidi.estimateDirection(a,b)==tn_.i18n.bidi.Dir.RTL};tn_.i18n.bidi.setElementDirAndAlign=function(a,b){a&&(b=tn_.i18n.bidi.toDir(b))&&(a.style.textAlign=b==tn_.i18n.bidi.Dir.RTL?tn_.i18n.bidi.RIGHT:tn_.i18n.bidi.LEFT,a.dir=b==tn_.i18n.bidi.Dir.RTL?"rtl":"ltr")};
tn_.i18n.bidi.setElementDirByTextDirectionality=function(a,b){switch(tn_.i18n.bidi.estimateDirection(b)){case tn_.i18n.bidi.Dir.LTR:a.dir="ltr";break;case tn_.i18n.bidi.Dir.RTL:a.dir="rtl";break;default:a.removeAttribute("dir")}};tn_.i18n.bidi.DirectionalString=function(){};tn_.html.TrustedResourceUrl=function(){this.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_="";this.TRUSTED_RESOURCE_URL_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_=tn_.html.TrustedResourceUrl.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_};tn_a=tn_.html.TrustedResourceUrl.prototype;tn_a.implementsGoogStringTypedString=!0;tn_a.getTypedStringValue=function(){return this.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_};tn_a.implementsGoogI18nBidiDirectionalString=!0;tn_a.getDirection=function(){return tn_.i18n.bidi.Dir.LTR};
tn_a.cloneWithParams=function(a){var b=tn_.html.TrustedResourceUrl.unwrap(this),c=/\?/.test(b)?"&":"?",d;for(d in a)for(var e=tn_.isArray(a[d])?a[d]:[a[d]],f=0;f<e.length;f++)null!=e[f]&&(b+=c+encodeURIComponent(d)+"="+encodeURIComponent(String(e[f])),c="&");return tn_.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(b)};
tn_.DEBUG&&(tn_.html.TrustedResourceUrl.prototype.toString=function(){return"TrustedResourceUrl{"+this.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_+"}"});
tn_.html.TrustedResourceUrl.unwrap=function(a){if(a instanceof tn_.html.TrustedResourceUrl&&a.constructor===tn_.html.TrustedResourceUrl&&a.TRUSTED_RESOURCE_URL_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_===tn_.html.TrustedResourceUrl.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_)return a.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_;tn_.asserts.fail("expected object of type TrustedResourceUrl, got '"+a+"' of type "+tn_.typeOf(a));return"type_error:TrustedResourceUrl"};
tn_.html.TrustedResourceUrl.format=function(a,b){var c=tn_.string.Const.unwrap(a);if(!tn_.html.TrustedResourceUrl.BASE_URL_.test(c))throw Error("Invalid TrustedResourceUrl format: "+c);a=c.replace(tn_.html.TrustedResourceUrl.FORMAT_MARKER_,function(a,e){if(!Object.prototype.hasOwnProperty.call(b,e))throw Error('Found marker, "'+e+'", in format string, "'+c+'", but no valid label mapping found in args: '+JSON.stringify(b));a=b[e];return a instanceof tn_.string.Const?tn_.string.Const.unwrap(a):encodeURIComponent(String(a))});
return tn_.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(a)};tn_.html.TrustedResourceUrl.FORMAT_MARKER_=/%{(\w+)}/g;tn_.html.TrustedResourceUrl.BASE_URL_=/^(?:https:)?\/\/[0-9a-z.:[\]-]+\/|^\/[^\/\\]|^about:blank#/i;tn_.html.TrustedResourceUrl.formatWithParams=function(a,b,c){a=tn_.html.TrustedResourceUrl.format(a,b);return a.cloneWithParams(c)};tn_.html.TrustedResourceUrl.fromConstant=function(a){return tn_.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(tn_.string.Const.unwrap(a))};
tn_.html.TrustedResourceUrl.fromConstants=function(a){for(var b="",c=0;c<a.length;c++)b+=tn_.string.Const.unwrap(a[c]);return tn_.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(b)};tn_.html.TrustedResourceUrl.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_={};tn_.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse=function(a){var b=new tn_.html.TrustedResourceUrl;b.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_=a;return b};tn_.string.DETECT_DOUBLE_ESCAPING=!1;tn_.string.FORCE_NON_DOM_HTML_UNESCAPING=!1;tn_.string.Unicode={NBSP:"\u00a0"};tn_.string.startsWith=function(a,b){return 0==a.lastIndexOf(b,0)};tn_.string.endsWith=function(a,b){var c=a.length-b.length;return 0<=c&&a.indexOf(b,c)==c};tn_.string.caseInsensitiveStartsWith=function(a,b){return 0==tn_.string.caseInsensitiveCompare(b,a.substr(0,b.length))};
tn_.string.caseInsensitiveEndsWith=function(a,b){return 0==tn_.string.caseInsensitiveCompare(b,a.substr(a.length-b.length,b.length))};tn_.string.caseInsensitiveEquals=function(a,b){return a.toLowerCase()==b.toLowerCase()};tn_.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")};tn_.string.collapseWhitespace=function(a){return a.replace(/[\s\xa0]+/g," ").replace(/^\s+|\s+$/g,"")};
tn_.string.isEmptyOrWhitespace=function(a){return/^[\s\xa0]*$/.test(a)};tn_.string.isEmptyString=function(a){return 0==a.length};tn_.string.isEmpty=tn_.string.isEmptyOrWhitespace;tn_.string.isEmptyOrWhitespaceSafe=function(a){return tn_.string.isEmptyOrWhitespace(tn_.string.makeSafe(a))};tn_.string.isEmptySafe=tn_.string.isEmptyOrWhitespaceSafe;tn_.string.isBreakingWhitespace=function(a){return!/[^\t\n\r ]/.test(a)};tn_.string.isAlpha=function(a){return!/[^a-zA-Z]/.test(a)};tn_.string.isNumeric=function(a){return!/[^0-9]/.test(a)};
tn_.string.isAlphaNumeric=function(a){return!/[^a-zA-Z0-9]/.test(a)};tn_.string.isSpace=function(a){return" "==a};tn_.string.isUnicodeChar=function(a){return 1==a.length&&" "<=a&&"~">=a||"\u0080"<=a&&"\ufffd">=a};tn_.string.stripNewlines=function(a){return a.replace(/(\r\n|\r|\n)+/g," ")};tn_.string.canonicalizeNewlines=function(a){return a.replace(/(\r\n|\r|\n)/g,"\n")};tn_.string.normalizeWhitespace=function(a){return a.replace(/\xa0|\s/g," ")};
tn_.string.normalizeSpaces=function(a){return a.replace(/\xa0|[ \t]+/g," ")};tn_.string.collapseBreakingSpaces=function(a){return a.replace(/[\t\r\n ]+/g," ").replace(/^[\t\r\n ]+|[\t\r\n ]+$/g,"")};tn_.string.trim=tn_.TRUSTED_SITE&&String.prototype.trim?function(a){return a.trim()}:function(a){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(a)[1]};tn_.string.trimLeft=function(a){return a.replace(/^[\s\xa0]+/,"")};tn_.string.trimRight=function(a){return a.replace(/[\s\xa0]+$/,"")};
tn_.string.caseInsensitiveCompare=function(a,b){a=String(a).toLowerCase();b=String(b).toLowerCase();return a<b?-1:a==b?0:1};tn_.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 n=e[g];if(c!=n)return a=parseInt(c,10),!isNaN(a)&&(b=parseInt(n,10),!isNaN(b)&&a-b)?a-b:c<n?-1:1}return d.length!=e.length?d.length-e.length:a<b?-1:1};
tn_.string.intAwareCompare=function(a,b){return tn_.string.numberAwareCompare_(a,b,/\d+|\D+/g)};tn_.string.floatAwareCompare=function(a,b){return tn_.string.numberAwareCompare_(a,b,/\d+|\.\d+|\D+/g)};tn_.string.numerateCompare=tn_.string.floatAwareCompare;tn_.string.urlEncode=function(a){return encodeURIComponent(String(a))};tn_.string.urlDecode=function(a){return decodeURIComponent(a.replace(/\+/g," "))};tn_.string.newLineToBr=function(a,b){return a.replace(/(\r\n|\r|\n)/g,b?"<br />":"<br>")};
tn_.string.htmlEscape=function(a,b){if(b)a=a.replace(tn_.string.AMP_RE_,"&amp;").replace(tn_.string.LT_RE_,"&lt;").replace(tn_.string.GT_RE_,"&gt;").replace(tn_.string.QUOT_RE_,"&quot;").replace(tn_.string.SINGLE_QUOTE_RE_,"&#39;").replace(tn_.string.NULL_RE_,"&#0;"),tn_.string.DETECT_DOUBLE_ESCAPING&&(a=a.replace(tn_.string.E_RE_,"&#101;"));else{if(!tn_.string.ALL_RE_.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(tn_.string.AMP_RE_,"&amp;"));-1!=a.indexOf("<")&&(a=a.replace(tn_.string.LT_RE_,
"&lt;"));-1!=a.indexOf(">")&&(a=a.replace(tn_.string.GT_RE_,"&gt;"));-1!=a.indexOf('"')&&(a=a.replace(tn_.string.QUOT_RE_,"&quot;"));-1!=a.indexOf("'")&&(a=a.replace(tn_.string.SINGLE_QUOTE_RE_,"&#39;"));-1!=a.indexOf("\x00")&&(a=a.replace(tn_.string.NULL_RE_,"&#0;"));tn_.string.DETECT_DOUBLE_ESCAPING&&-1!=a.indexOf("e")&&(a=a.replace(tn_.string.E_RE_,"&#101;"))}return a};tn_.string.AMP_RE_=/&/g;tn_.string.LT_RE_=/</g;tn_.string.GT_RE_=/>/g;tn_.string.QUOT_RE_=/"/g;tn_.string.SINGLE_QUOTE_RE_=/'/g;
tn_.string.NULL_RE_=/\x00/g;tn_.string.E_RE_=/e/g;tn_.string.ALL_RE_=tn_.string.DETECT_DOUBLE_ESCAPING?/[\x00&<>"'e]/:/[\x00&<>"']/;tn_.string.unescapeEntities=function(a){return tn_.string.contains(a,"&")?!tn_.string.FORCE_NON_DOM_HTML_UNESCAPING&&"document"in tn_.global?tn_.string.unescapeEntitiesUsingDom_(a):tn_.string.unescapePureXmlEntities_(a):a};tn_.string.unescapeEntitiesWithDocument=function(a,b){return tn_.string.contains(a,"&")?tn_.string.unescapeEntitiesUsingDom_(a,b):a};
tn_.string.unescapeEntitiesUsingDom_=function(a,b){var c={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'};var d=b?b.createElement("div"):tn_.global.document.createElement("div");return a.replace(tn_.string.HTML_ENTITY_PATTERN_,function(a,b){var e=c[a];if(e)return e;"#"==b.charAt(0)&&(b=Number("0"+b.substr(1)),isNaN(b)||(e=String.fromCharCode(b)));e||(d.innerHTML=a+" ",e=d.firstChild.nodeValue.slice(0,-1));return c[a]=e})};
tn_.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:return"#"!=c.charAt(0)||(c=Number("0"+c.substr(1)),isNaN(c))?a:String.fromCharCode(c)}})};tn_.string.HTML_ENTITY_PATTERN_=/&([^;\s<&]+);?/g;tn_.string.whitespaceEscape=function(a,b){return tn_.string.newLineToBr(a.replace(/  /g," &#160;"),b)};
tn_.string.preserveSpaces=function(a){return a.replace(/(^|[\n ]) /g,"$1"+tn_.string.Unicode.NBSP)};tn_.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};tn_.string.truncate=function(a,b,c){c&&(a=tn_.string.unescapeEntities(a));a.length>b&&(a=a.substring(0,b-3)+"...");c&&(a=tn_.string.htmlEscape(a));return a};
tn_.string.truncateMiddle=function(a,b,c,d){c&&(a=tn_.string.unescapeEntities(a));if(d&&a.length>b){d>b&&(d=b);var e=a.length-d;b-=d;a=a.substring(0,b)+"..."+a.substring(e)}else a.length>b&&(e=Math.floor(b/2),d=a.length-e,e+=b%2,a=a.substring(0,e)+"..."+a.substring(d));c&&(a=tn_.string.htmlEscape(a));return a};tn_.string.specialEscapeChars_={"\x00":"\\0","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\x0B",'"':'\\"',"\\":"\\\\","<":"<"};tn_.string.jsEscapeCache_={"'":"\\'"};
tn_.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]=tn_.string.specialEscapeChars_[d]||(31<e&&127>e?d:tn_.string.escapeChar(d))}b.push('"');return b.join("")};tn_.string.escapeString=function(a){for(var b=[],c=0;c<a.length;c++)b[c]=tn_.string.escapeChar(a.charAt(c));return b.join("")};
tn_.string.escapeChar=function(a){if(a in tn_.string.jsEscapeCache_)return tn_.string.jsEscapeCache_[a];if(a in tn_.string.specialEscapeChars_)return tn_.string.jsEscapeCache_[a]=tn_.string.specialEscapeChars_[a];var b=a.charCodeAt(0);if(31<b&&127>b)var c=a;else{if(256>b){if(c="\\x",16>b||256<b)c+="0"}else c="\\u",4096>b&&(c+="0");c+=b.toString(16).toUpperCase()}return tn_.string.jsEscapeCache_[a]=c};tn_.string.contains=function(a,b){return-1!=a.indexOf(b)};
tn_.string.caseInsensitiveContains=function(a,b){return tn_.string.contains(a.toLowerCase(),b.toLowerCase())};tn_.string.countOf=function(a,b){return a&&b?a.split(b).length-1:0};tn_.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};tn_.string.remove=function(a,b){return a.replace(b,"")};tn_.string.removeAll=function(a,b){b=new RegExp(tn_.string.regExpEscape(b),"g");return a.replace(b,"")};
tn_.string.replaceAll=function(a,b,c){b=new RegExp(tn_.string.regExpEscape(b),"g");return a.replace(b,c.replace(/\$/g,"$$$$"))};tn_.string.regExpEscape=function(a){return String(a).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};tn_.string.repeat=String.prototype.repeat?function(a,b){return a.repeat(b)}:function(a,b){return Array(b+1).join(a)};
tn_.string.padNumber=function(a,b,c){a=tn_.isDef(c)?a.toFixed(c):String(a);c=a.indexOf(".");-1==c&&(c=a.length);return tn_.string.repeat("0",Math.max(0,b-c))+a};tn_.string.makeSafe=function(a){return null==a?"":String(a)};tn_.string.buildString=function(a){return Array.prototype.join.call(arguments,"")};tn_.string.getRandomString=function(){return Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^tn_.now()).toString(36)};
tn_.string.compareVersions=function(a,b){var c=0;a=tn_.string.trim(String(a)).split(".");b=tn_.string.trim(String(b)).split(".");for(var d=Math.max(a.length,b.length),e=0;0==c&&e<d;e++){var f=a[e]||"",g=b[e]||"";do{f=/(\d*)(\D*)(.*)/.exec(f)||["","","",""];g=/(\d*)(\D*)(.*)/.exec(g)||["","","",""];if(0==f[0].length&&0==g[0].length)break;c=0==f[1].length?0:parseInt(f[1],10);var n=0==g[1].length?0:parseInt(g[1],10);c=tn_.string.compareElements_(c,n)||tn_.string.compareElements_(0==f[2].length,0==g[2].length)||
tn_.string.compareElements_(f[2],g[2]);f=f[3];g=g[3]}while(0==c)}return c};tn_.string.compareElements_=function(a,b){return a<b?-1:a>b?1:0};tn_.string.hashCode=function(a){for(var b=0,c=0;c<a.length;++c)b=31*b+a.charCodeAt(c)>>>0;return b};tn_.string.uniqueStringCounter_=2147483648*Math.random()|0;tn_.string.createUniqueString=function(){return"goog_"+tn_.string.uniqueStringCounter_++};tn_.string.toNumber=function(a){var b=Number(a);return 0==b&&tn_.string.isEmptyOrWhitespace(a)?NaN:b};
tn_.string.isLowerCamelCase=function(a){return/^[a-z]+([A-Z][a-z]*)*$/.test(a)};tn_.string.isUpperCamelCase=function(a){return/^([A-Z][a-z]*)+$/.test(a)};tn_.string.toCamelCase=function(a){return String(a).replace(/\-([a-z])/g,function(a,c){return c.toUpperCase()})};tn_.string.toSelectorCase=function(a){return String(a).replace(/([A-Z])/g,"-$1").toLowerCase()};
tn_.string.toTitleCase=function(a,b){b=(b=tn_.isString(b)?tn_.string.regExpEscape(b):"\\s")?"|["+b+"]+":"";b=new RegExp("(^"+b+")([a-z])","g");return a.replace(b,function(a,b,e){return b+e.toUpperCase()})};tn_.string.capitalize=function(a){return String(a.charAt(0)).toUpperCase()+String(a.substr(1)).toLowerCase()};tn_.string.parseInt=function(a){isFinite(a)&&(a=String(a));return tn_.isString(a)?/^\s*-?0x/i.test(a)?parseInt(a,16):parseInt(a,10):NaN};
tn_.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};tn_.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)};
tn_.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++){var g=Number(a[e]!=b[f]);d[f+1]=Math.min(d[f]+1,c[f+1]+1,c[f]+g)}for(f=0;f<c.length;f++)c[f]=d[f]}return d[b.length]};tn_.html.SafeUrl=function(){this.privateDoNotAccessOrElseSafeHtmlWrappedValue_="";this.SAFE_URL_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_=tn_.html.SafeUrl.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_};tn_.html.SafeUrl.INNOCUOUS_STRING="about:invalid#zClosurez";tn_.html.SafeUrl.prototype.implementsGoogStringTypedString=!0;tn_.html.SafeUrl.prototype.getTypedStringValue=function(){return this.privateDoNotAccessOrElseSafeHtmlWrappedValue_};tn_.html.SafeUrl.prototype.implementsGoogI18nBidiDirectionalString=!0;
tn_.html.SafeUrl.prototype.getDirection=function(){return tn_.i18n.bidi.Dir.LTR};tn_.DEBUG&&(tn_.html.SafeUrl.prototype.toString=function(){return"SafeUrl{"+this.privateDoNotAccessOrElseSafeHtmlWrappedValue_+"}"});
tn_.html.SafeUrl.unwrap=function(a){if(a instanceof tn_.html.SafeUrl&&a.constructor===tn_.html.SafeUrl&&a.SAFE_URL_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_===tn_.html.SafeUrl.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_)return a.privateDoNotAccessOrElseSafeHtmlWrappedValue_;tn_.asserts.fail("expected object of type SafeUrl, got '"+a+"' of type "+tn_.typeOf(a));return"type_error:SafeUrl"};tn_.html.SafeUrl.fromConstant=function(a){return tn_.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(tn_.string.Const.unwrap(a))};
tn_.html.SAFE_MIME_TYPE_PATTERN_=/^(?:audio\/(?:3gpp|3gpp2|aac|midi|mp4|mpeg|ogg|x-m4a|x-wav|webm)|image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|text\/csv|video\/(?:mpeg|mp4|ogg|webm|quicktime))$/i;tn_.html.SafeUrl.fromBlob=function(a){a=tn_.html.SAFE_MIME_TYPE_PATTERN_.test(a.type)?tn_.fs.url.createObjectUrl(a):tn_.html.SafeUrl.INNOCUOUS_STRING;return tn_.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(a)};tn_.html.DATA_URL_PATTERN_=/^data:([^;,]*);base64,[a-z0-9+\/]+=*$/i;
tn_.html.SafeUrl.fromDataUrl=function(a){var b=a.match(tn_.html.DATA_URL_PATTERN_);b=b&&tn_.html.SAFE_MIME_TYPE_PATTERN_.test(b[1]);return tn_.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(b?a:tn_.html.SafeUrl.INNOCUOUS_STRING)};tn_.html.SafeUrl.fromTelUrl=function(a){tn_.string.caseInsensitiveStartsWith(a,"tel:")||(a=tn_.html.SafeUrl.INNOCUOUS_STRING);return tn_.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(a)};tn_.html.SafeUrl.fromTrustedResourceUrl=function(a){return tn_.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(tn_.html.TrustedResourceUrl.unwrap(a))};
tn_.html.SAFE_URL_PATTERN_=/^(?:(?:https?|mailto|ftp):|[^:/?#]*(?:[/?#]|$))/i;tn_.html.SafeUrl.sanitize=function(a){if(a instanceof tn_.html.SafeUrl)return a;a=a.implementsGoogStringTypedString?a.getTypedStringValue():String(a);tn_.html.SAFE_URL_PATTERN_.test(a)||(a=tn_.html.SafeUrl.INNOCUOUS_STRING);return tn_.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(a)};
tn_.html.SafeUrl.sanitizeAssertUnchanged=function(a){if(a instanceof tn_.html.SafeUrl)return a;a=a.implementsGoogStringTypedString?a.getTypedStringValue():String(a);tn_.asserts.assert(tn_.html.SAFE_URL_PATTERN_.test(a))||(a=tn_.html.SafeUrl.INNOCUOUS_STRING);return tn_.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(a)};tn_.html.SafeUrl.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_={};
tn_.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse=function(a){var b=new tn_.html.SafeUrl;b.privateDoNotAccessOrElseSafeHtmlWrappedValue_=a;return b};tn_.html.SafeUrl.ABOUT_BLANK=tn_.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse("about:blank");tn_.html.SafeStyle=function(){this.privateDoNotAccessOrElseSafeStyleWrappedValue_="";this.SAFE_STYLE_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_=tn_.html.SafeStyle.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_};tn_.html.SafeStyle.prototype.implementsGoogStringTypedString=!0;tn_.html.SafeStyle.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_={};
tn_.html.SafeStyle.fromConstant=function(a){a=tn_.string.Const.unwrap(a);if(0===a.length)return tn_.html.SafeStyle.EMPTY;tn_.html.SafeStyle.checkStyle_(a);tn_.asserts.assert(tn_.string.endsWith(a,";"),"Last character of style string is not ';': "+a);tn_.asserts.assert(tn_.string.contains(a,":"),"Style string must contain at least one ':', to specify a \"name: value\" pair: "+a);return tn_.html.SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse(a)};
tn_.html.SafeStyle.checkStyle_=function(a){tn_.asserts.assert(!/[<>]/.test(a),"Forbidden characters in style string: "+a)};tn_.html.SafeStyle.prototype.getTypedStringValue=function(){return this.privateDoNotAccessOrElseSafeStyleWrappedValue_};tn_.DEBUG&&(tn_.html.SafeStyle.prototype.toString=function(){return"SafeStyle{"+this.privateDoNotAccessOrElseSafeStyleWrappedValue_+"}"});
tn_.html.SafeStyle.unwrap=function(a){if(a instanceof tn_.html.SafeStyle&&a.constructor===tn_.html.SafeStyle&&a.SAFE_STYLE_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_===tn_.html.SafeStyle.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_)return a.privateDoNotAccessOrElseSafeStyleWrappedValue_;tn_.asserts.fail("expected object of type SafeStyle, got '"+a+"' of type "+tn_.typeOf(a));return"type_error:SafeStyle"};tn_.html.SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse=function(a){return(new tn_.html.SafeStyle).initSecurityPrivateDoNotAccessOrElse_(a)};
tn_.html.SafeStyle.prototype.initSecurityPrivateDoNotAccessOrElse_=function(a){this.privateDoNotAccessOrElseSafeStyleWrappedValue_=a;return this};tn_.html.SafeStyle.EMPTY=tn_.html.SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse("");tn_.html.SafeStyle.INNOCUOUS_STRING="zClosurez";
tn_.html.SafeStyle.create=function(a){var b="",c;for(c in a){if(!/^[-_a-zA-Z0-9]+$/.test(c))throw Error("Name allows only [-_a-zA-Z0-9], got: "+c);var d=a[c];null!=d&&(d=tn_.isArray(d)?tn_.array.map(d,tn_.html.SafeStyle.sanitizePropertyValue_).join(" "):tn_.html.SafeStyle.sanitizePropertyValue_(d),b+=c+":"+d+";")}if(!b)return tn_.html.SafeStyle.EMPTY;tn_.html.SafeStyle.checkStyle_(b);return tn_.html.SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse(b)};
tn_.html.SafeStyle.sanitizePropertyValue_=function(a){if(a instanceof tn_.html.SafeUrl)return a=tn_.html.SafeUrl.unwrap(a),'url("'+a.replace(/</g,"%3c").replace(/[\\"]/g,"\\$&")+'")';a=a instanceof tn_.string.Const?tn_.string.Const.unwrap(a):tn_.html.SafeStyle.sanitizePropertyValueString_(String(a));tn_.asserts.assert(!/[{;}]/.test(a),"Value does not allow [{;}].");return a};
tn_.html.SafeStyle.sanitizePropertyValueString_=function(a){var b=a.replace(tn_.html.SafeStyle.FUNCTIONS_RE_,"$1").replace(tn_.html.SafeStyle.URL_RE_,"url");return tn_.html.SafeStyle.VALUE_RE_.test(b)?tn_.html.SafeStyle.hasBalancedQuotes_(a)?tn_.html.SafeStyle.sanitizeUrl_(a):(tn_.asserts.fail("String value requires balanced quotes, got: "+a),tn_.html.SafeStyle.INNOCUOUS_STRING):(tn_.asserts.fail("String value allows only "+tn_.html.SafeStyle.VALUE_ALLOWED_CHARS_+" and simple functions, got: "+a),
tn_.html.SafeStyle.INNOCUOUS_STRING)};tn_.html.SafeStyle.hasBalancedQuotes_=function(a){for(var b=!0,c=!0,d=0;d<a.length;d++){var e=a.charAt(d);"'"==e&&c?b=!b:'"'==e&&b&&(c=!c)}return b&&c};tn_.html.SafeStyle.VALUE_ALLOWED_CHARS_="[-,.\"'%_!# a-zA-Z0-9]";tn_.html.SafeStyle.VALUE_RE_=new RegExp("^"+tn_.html.SafeStyle.VALUE_ALLOWED_CHARS_+"+$");tn_.html.SafeStyle.URL_RE_=/\b(url\([ \t\n]*)('[ -&(-\[\]-~]*'|"[ !#-\[\]-~]*"|[!#-&*-\[\]-~]*)([ \t\n]*\))/g;tn_.html.SafeStyle.FUNCTIONS_RE_=/\b(hsl|hsla|rgb|rgba|matrix|(rotate|scale|translate)(X|Y|Z|3d)?)\([-0-9a-z.%, ]+\)/g;
tn_.html.SafeStyle.sanitizeUrl_=function(a){return a.replace(tn_.html.SafeStyle.URL_RE_,function(a,c,d,e){var b="";d=d.replace(/^(['"])(.*)\1$/,function(a,c,d){b=c;return d});a=tn_.html.SafeUrl.sanitize(d).getTypedStringValue();return c+b+a+b+e})};tn_.html.SafeStyle.concat=function(a){var b="",c=function(a){tn_.isArray(a)?tn_.array.forEach(a,c):b+=tn_.html.SafeStyle.unwrap(a)};tn_.array.forEach(arguments,c);return b?tn_.html.SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse(b):tn_.html.SafeStyle.EMPTY};tn_.html.SafeStyleSheet=function(){this.privateDoNotAccessOrElseSafeStyleSheetWrappedValue_="";this.SAFE_STYLE_SHEET_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_=tn_.html.SafeStyleSheet.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_};tn_.html.SafeStyleSheet.prototype.implementsGoogStringTypedString=!0;tn_.html.SafeStyleSheet.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_={};
tn_.html.SafeStyleSheet.createRule=function(a,b){if(tn_.string.contains(a,"<"))throw Error("Selector does not allow '<', got: "+a);var c=a.replace(/('|")((?!\1)[^\r\n\f\\]|\\[\s\S])*\1/g,"");if(!/^[-_a-zA-Z0-9#.:* ,>+~[\]()=^$|]+$/.test(c))throw Error("Selector allows only [-_a-zA-Z0-9#.:* ,>+~[\\]()=^$|] and strings, got: "+a);if(!tn_.html.SafeStyleSheet.hasBalancedBrackets_(c))throw Error("() and [] in selector must be balanced, got: "+a);b instanceof tn_.html.SafeStyle||(b=tn_.html.SafeStyle.create(b));
a=a+"{"+tn_.html.SafeStyle.unwrap(b)+"}";return tn_.html.SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse(a)};tn_.html.SafeStyleSheet.hasBalancedBrackets_=function(a){for(var b={"(":")","[":"]"},c=[],d=0;d<a.length;d++){var e=a[d];if(b[e])c.push(b[e]);else if(tn_.object.contains(b,e)&&c.pop()!=e)return!1}return 0==c.length};
tn_.html.SafeStyleSheet.concat=function(a){var b="",c=function(a){tn_.isArray(a)?tn_.array.forEach(a,c):b+=tn_.html.SafeStyleSheet.unwrap(a)};tn_.array.forEach(arguments,c);return tn_.html.SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse(b)};tn_.html.SafeStyleSheet.fromConstant=function(a){a=tn_.string.Const.unwrap(a);if(0===a.length)return tn_.html.SafeStyleSheet.EMPTY;tn_.asserts.assert(!tn_.string.contains(a,"<"),"Forbidden '<' character in style sheet string: "+a);return tn_.html.SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse(a)};
tn_.html.SafeStyleSheet.prototype.getTypedStringValue=function(){return this.privateDoNotAccessOrElseSafeStyleSheetWrappedValue_};tn_.DEBUG&&(tn_.html.SafeStyleSheet.prototype.toString=function(){return"SafeStyleSheet{"+this.privateDoNotAccessOrElseSafeStyleSheetWrappedValue_+"}"});
tn_.html.SafeStyleSheet.unwrap=function(a){if(a instanceof tn_.html.SafeStyleSheet&&a.constructor===tn_.html.SafeStyleSheet&&a.SAFE_STYLE_SHEET_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_===tn_.html.SafeStyleSheet.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_)return a.privateDoNotAccessOrElseSafeStyleSheetWrappedValue_;tn_.asserts.fail("expected object of type SafeStyleSheet, got '"+a+"' of type "+tn_.typeOf(a));return"type_error:SafeStyleSheet"};
tn_.html.SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse=function(a){return(new tn_.html.SafeStyleSheet).initSecurityPrivateDoNotAccessOrElse_(a)};tn_.html.SafeStyleSheet.prototype.initSecurityPrivateDoNotAccessOrElse_=function(a){this.privateDoNotAccessOrElseSafeStyleSheetWrappedValue_=a;return this};tn_.html.SafeStyleSheet.EMPTY=tn_.html.SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse("");tn_.labs={};tn_.labs.userAgent={};tn_.labs.userAgent.util={};tn_.labs.userAgent.util.getNativeUserAgentString_=function(){var a=tn_.labs.userAgent.util.getNavigator_();return a&&(a=a.userAgent)?a:""};tn_.labs.userAgent.util.getNavigator_=function(){return tn_.global.navigator};tn_.labs.userAgent.util.userAgent_=tn_.labs.userAgent.util.getNativeUserAgentString_();tn_.labs.userAgent.util.setUserAgent=function(a){tn_.labs.userAgent.util.userAgent_=a||tn_.labs.userAgent.util.getNativeUserAgentString_()};
tn_.labs.userAgent.util.getUserAgent=function(){return tn_.labs.userAgent.util.userAgent_};tn_.labs.userAgent.util.matchUserAgent=function(a){var b=tn_.labs.userAgent.util.getUserAgent();return tn_.string.contains(b,a)};tn_.labs.userAgent.util.matchUserAgentIgnoreCase=function(a){var b=tn_.labs.userAgent.util.getUserAgent();return tn_.string.caseInsensitiveContains(b,a)};
tn_.labs.userAgent.util.extractVersionTuples=function(a){for(var b=/(\w[\w ]+)\/([^\s]+)\s*(?:\((.*?)\))?/g,c=[],d;d=b.exec(a);)c.push([d[1],d[2],d[3]||void 0]);return c};tn_.labs.userAgent.browser={};tn_.labs.userAgent.browser.matchOpera_=function(){return tn_.labs.userAgent.util.matchUserAgent("Opera")};tn_.labs.userAgent.browser.matchIE_=function(){return tn_.labs.userAgent.util.matchUserAgent("Trident")||tn_.labs.userAgent.util.matchUserAgent("MSIE")};tn_.labs.userAgent.browser.matchEdge_=function(){return tn_.labs.userAgent.util.matchUserAgent("Edge")};tn_.labs.userAgent.browser.matchFirefox_=function(){return tn_.labs.userAgent.util.matchUserAgent("Firefox")};
tn_.labs.userAgent.browser.matchSafari_=function(){return tn_.labs.userAgent.util.matchUserAgent("Safari")&&!(tn_.labs.userAgent.browser.matchChrome_()||tn_.labs.userAgent.browser.matchCoast_()||tn_.labs.userAgent.browser.matchOpera_()||tn_.labs.userAgent.browser.matchEdge_()||tn_.labs.userAgent.browser.isSilk()||tn_.labs.userAgent.util.matchUserAgent("Android"))};tn_.labs.userAgent.browser.matchCoast_=function(){return tn_.labs.userAgent.util.matchUserAgent("Coast")};
tn_.labs.userAgent.browser.matchIosWebview_=function(){return(tn_.labs.userAgent.util.matchUserAgent("iPad")||tn_.labs.userAgent.util.matchUserAgent("iPhone"))&&!tn_.labs.userAgent.browser.matchSafari_()&&!tn_.labs.userAgent.browser.matchChrome_()&&!tn_.labs.userAgent.browser.matchCoast_()&&tn_.labs.userAgent.util.matchUserAgent("AppleWebKit")};
tn_.labs.userAgent.browser.matchChrome_=function(){return(tn_.labs.userAgent.util.matchUserAgent("Chrome")||tn_.labs.userAgent.util.matchUserAgent("CriOS"))&&!tn_.labs.userAgent.browser.matchEdge_()};tn_.labs.userAgent.browser.matchAndroidBrowser_=function(){return tn_.labs.userAgent.util.matchUserAgent("Android")&&!(tn_.labs.userAgent.browser.isChrome()||tn_.labs.userAgent.browser.isFirefox()||tn_.labs.userAgent.browser.isOpera()||tn_.labs.userAgent.browser.isSilk())};
tn_.labs.userAgent.browser.isOpera=tn_.labs.userAgent.browser.matchOpera_;tn_.labs.userAgent.browser.isIE=tn_.labs.userAgent.browser.matchIE_;tn_.labs.userAgent.browser.isEdge=tn_.labs.userAgent.browser.matchEdge_;tn_.labs.userAgent.browser.isFirefox=tn_.labs.userAgent.browser.matchFirefox_;tn_.labs.userAgent.browser.isSafari=tn_.labs.userAgent.browser.matchSafari_;tn_.labs.userAgent.browser.isCoast=tn_.labs.userAgent.browser.matchCoast_;tn_.labs.userAgent.browser.isIosWebview=tn_.labs.userAgent.browser.matchIosWebview_;
tn_.labs.userAgent.browser.isChrome=tn_.labs.userAgent.browser.matchChrome_;tn_.labs.userAgent.browser.isAndroidBrowser=tn_.labs.userAgent.browser.matchAndroidBrowser_;tn_.labs.userAgent.browser.isSilk=function(){return tn_.labs.userAgent.util.matchUserAgent("Silk")};
tn_.labs.userAgent.browser.getVersion=function(){function a(a){a=tn_.array.find(a,d);return c[a]||""}var b=tn_.labs.userAgent.util.getUserAgent();if(tn_.labs.userAgent.browser.isIE())return tn_.labs.userAgent.browser.getIEVersion_(b);b=tn_.labs.userAgent.util.extractVersionTuples(b);var c={};tn_.array.forEach(b,function(a){var b=a[0];a=a[1];c[b]=a});var d=tn_.partial(tn_.object.containsKey,c);return tn_.labs.userAgent.browser.isOpera()?a(["Version","Opera"]):tn_.labs.userAgent.browser.isEdge()?a(["Edge"]):
tn_.labs.userAgent.browser.isChrome()?a(["Chrome","CriOS"]):(b=b[2])&&b[1]||""};tn_.labs.userAgent.browser.isVersionOrHigher=function(a){return 0<=tn_.string.compareVersions(tn_.labs.userAgent.browser.getVersion(),a)};
tn_.labs.userAgent.browser.getIEVersion_=function(a){var b=/rv: *([\d\.]*)/.exec(a);if(b&&b[1])return b[1];b="";var c=/MSIE +([\d\.]+)/.exec(a);if(c&&c[1])if(a=/Trident\/(\d.\d)/.exec(a),"7.0"==c[1])if(a&&a[1])switch(a[1]){case "4.0":b="8.0";break;case "5.0":b="9.0";break;case "6.0":b="10.0";break;case "7.0":b="11.0"}else b="7.0";else b=c[1];return b};tn_.html.SafeHtml=function(){this.privateDoNotAccessOrElseSafeHtmlWrappedValue_="";this.SAFE_HTML_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_=tn_.html.SafeHtml.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_;this.dir_=null};tn_.html.SafeHtml.prototype.implementsGoogI18nBidiDirectionalString=!0;tn_.html.SafeHtml.prototype.getDirection=function(){return this.dir_};tn_.html.SafeHtml.prototype.implementsGoogStringTypedString=!0;tn_.html.SafeHtml.prototype.getTypedStringValue=function(){return this.privateDoNotAccessOrElseSafeHtmlWrappedValue_};
tn_.DEBUG&&(tn_.html.SafeHtml.prototype.toString=function(){return"SafeHtml{"+this.privateDoNotAccessOrElseSafeHtmlWrappedValue_+"}"});tn_.html.SafeHtml.unwrap=function(a){if(a instanceof tn_.html.SafeHtml&&a.constructor===tn_.html.SafeHtml&&a.SAFE_HTML_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_===tn_.html.SafeHtml.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_)return a.privateDoNotAccessOrElseSafeHtmlWrappedValue_;tn_.asserts.fail("expected object of type SafeHtml, got '"+a+"' of type "+tn_.typeOf(a));return"type_error:SafeHtml"};
tn_.html.SafeHtml.htmlEscape=function(a){if(a instanceof tn_.html.SafeHtml)return a;var b=null;a.implementsGoogI18nBidiDirectionalString&&(b=a.getDirection());a=a.implementsGoogStringTypedString?a.getTypedStringValue():String(a);return tn_.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(tn_.string.htmlEscape(a),b)};
tn_.html.SafeHtml.htmlEscapePreservingNewlines=function(a){if(a instanceof tn_.html.SafeHtml)return a;a=tn_.html.SafeHtml.htmlEscape(a);return tn_.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(tn_.string.newLineToBr(tn_.html.SafeHtml.unwrap(a)),a.getDirection())};
tn_.html.SafeHtml.htmlEscapePreservingNewlinesAndSpaces=function(a){if(a instanceof tn_.html.SafeHtml)return a;a=tn_.html.SafeHtml.htmlEscape(a);return tn_.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(tn_.string.whitespaceEscape(tn_.html.SafeHtml.unwrap(a)),a.getDirection())};tn_.html.SafeHtml.from=tn_.html.SafeHtml.htmlEscape;tn_.html.SafeHtml.VALID_NAMES_IN_TAG_=/^[a-zA-Z0-9-]+$/;
tn_.html.SafeHtml.URL_ATTRIBUTES_={action:!0,cite:!0,data:!0,formaction:!0,href:!0,manifest:!0,poster:!0,src:!0};tn_.html.SafeHtml.NOT_ALLOWED_TAG_NAMES_={APPLET:!0,BASE:!0,EMBED:!0,IFRAME:!0,LINK:!0,MATH:!0,META:!0,OBJECT:!0,SCRIPT:!0,STYLE:!0,SVG:!0,TEMPLATE:!0};tn_.html.SafeHtml.create=function(a,b,c){tn_.html.SafeHtml.verifyTagName(String(a));return tn_.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse(String(a),b,c)};
tn_.html.SafeHtml.verifyTagName=function(a){if(!tn_.html.SafeHtml.VALID_NAMES_IN_TAG_.test(a))throw Error("Invalid tag name <"+a+">.");if(a.toUpperCase()in tn_.html.SafeHtml.NOT_ALLOWED_TAG_NAMES_)throw Error("Tag name <"+a+"> is not allowed for SafeHtml.");};
tn_.html.SafeHtml.createIframe=function(a,b,c,d){a&&tn_.html.TrustedResourceUrl.unwrap(a);var e={};e.src=a||null;e.srcdoc=b&&tn_.html.SafeHtml.unwrap(b);a={sandbox:""};c=tn_.html.SafeHtml.combineAttributes(e,a,c);return tn_.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("iframe",c,d)};
tn_.html.SafeHtml.createSandboxIframe=function(a,b,c,d){if(!tn_.html.SafeHtml.canUseSandboxIframe())throw Error("The browser does not support sandboxed iframes.");var e={};e.src=a?tn_.html.SafeUrl.unwrap(tn_.html.SafeUrl.sanitize(a)):null;e.srcdoc=b||null;e.sandbox="";a=tn_.html.SafeHtml.combineAttributes(e,{},c);return tn_.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("iframe",a,d)};
tn_.html.SafeHtml.canUseSandboxIframe=function(){return tn_.global.HTMLIFrameElement&&"sandbox"in tn_.global.HTMLIFrameElement.prototype};tn_.html.SafeHtml.createScriptSrc=function(a,b){tn_.html.TrustedResourceUrl.unwrap(a);a={src:a};var c={};b=tn_.html.SafeHtml.combineAttributes(a,c,b);return tn_.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("script",b)};
tn_.html.SafeHtml.createScript=function(a,b){for(var c in b){var d=c.toLowerCase();if("language"==d||"src"==d||"text"==d||"type"==d)throw Error('Cannot set "'+d+'" attribute');}c="";a=tn_.array.concat(a);for(d=0;d<a.length;d++)c+=tn_.html.SafeScript.unwrap(a[d]);a=tn_.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(c,tn_.i18n.bidi.Dir.NEUTRAL);return tn_.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("script",b,a)};
tn_.html.SafeHtml.createStyle=function(a,b){var c={type:"text/css"},d={};b=tn_.html.SafeHtml.combineAttributes(c,d,b);c="";a=tn_.array.concat(a);for(d=0;d<a.length;d++)c+=tn_.html.SafeStyleSheet.unwrap(a[d]);a=tn_.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(c,tn_.i18n.bidi.Dir.NEUTRAL);return tn_.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("style",b,a)};
tn_.html.SafeHtml.createMetaRefresh=function(a,b){a=tn_.html.SafeUrl.unwrap(tn_.html.SafeUrl.sanitize(a));(tn_.labs.userAgent.browser.isIE()||tn_.labs.userAgent.browser.isEdge())&&tn_.string.contains(a,";")&&(a="'"+a.replace(/'/g,"%27")+"'");b={"http-equiv":"refresh",content:(b||0)+"; url="+a};return tn_.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("meta",b)};
tn_.html.SafeHtml.getAttrNameAndValue_=function(a,b,c){if(c instanceof tn_.string.Const)c=tn_.string.Const.unwrap(c);else if("style"==b.toLowerCase())c=tn_.html.SafeHtml.getStyleValue_(c);else{if(/^on/i.test(b))throw Error('Attribute "'+b+'" requires goog.string.Const value, "'+c+'" given.');if(b.toLowerCase()in tn_.html.SafeHtml.URL_ATTRIBUTES_)if(c instanceof tn_.html.TrustedResourceUrl)c=tn_.html.TrustedResourceUrl.unwrap(c);else if(c instanceof tn_.html.SafeUrl)c=tn_.html.SafeUrl.unwrap(c);else if(tn_.isString(c))c=
tn_.html.SafeUrl.sanitize(c).getTypedStringValue();else throw Error('Attribute "'+b+'" on tag "'+a+'" requires goog.html.SafeUrl, goog.string.Const, or string, value "'+c+'" given.');}c.implementsGoogStringTypedString&&(c=c.getTypedStringValue());tn_.asserts.assert(tn_.isString(c)||tn_.isNumber(c),"String or number value expected, got "+typeof c+" with value: "+c);return b+'="'+tn_.string.htmlEscape(String(c))+'"'};
tn_.html.SafeHtml.getStyleValue_=function(a){if(!tn_.isObject(a))throw Error('The "style" attribute requires goog.html.SafeStyle or map of style properties, '+typeof a+" given: "+a);a instanceof tn_.html.SafeStyle||(a=tn_.html.SafeStyle.create(a));return tn_.html.SafeStyle.unwrap(a)};tn_.html.SafeHtml.createWithDir=function(a,b,c,d){b=tn_.html.SafeHtml.create(b,c,d);b.dir_=a;return b};
tn_.html.SafeHtml.concat=function(a){var b=tn_.i18n.bidi.Dir.NEUTRAL,c="",d=function(a){tn_.isArray(a)?tn_.array.forEach(a,d):(a=tn_.html.SafeHtml.htmlEscape(a),c+=tn_.html.SafeHtml.unwrap(a),a=a.getDirection(),b==tn_.i18n.bidi.Dir.NEUTRAL?b=a:a!=tn_.i18n.bidi.Dir.NEUTRAL&&b!=a&&(b=null))};tn_.array.forEach(arguments,d);return tn_.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(c,b)};
tn_.html.SafeHtml.concatWithDir=function(a,b){var c=tn_.html.SafeHtml.concat(tn_.array.slice(arguments,1));c.dir_=a;return c};tn_.html.SafeHtml.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_={};tn_.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse=function(a,b){return(new tn_.html.SafeHtml).initSecurityPrivateDoNotAccessOrElse_(a,b)};tn_.html.SafeHtml.prototype.initSecurityPrivateDoNotAccessOrElse_=function(a,b){this.privateDoNotAccessOrElseSafeHtmlWrappedValue_=a;this.dir_=b;return this};
tn_.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse=function(a,b,c){var d=null,e="<"+a;e+=tn_.html.SafeHtml.stringifyAttributes(a,b);tn_.isDefAndNotNull(c)?tn_.isArray(c)||(c=[c]):c=[];tn_.dom.tags.isVoidTag(a.toLowerCase())?(tn_.asserts.assert(!c.length,"Void tag <"+a+"> does not allow content."),e+=">"):(d=tn_.html.SafeHtml.concat(c),e+=">"+tn_.html.SafeHtml.unwrap(d)+"</"+a+">",d=d.getDirection());(a=b&&b.dir)&&(d=/^(ltr|rtl|auto)$/i.test(a)?tn_.i18n.bidi.Dir.NEUTRAL:null);return tn_.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(e,
d)};tn_.html.SafeHtml.stringifyAttributes=function(a,b){var c="";if(b)for(var d in b){if(!tn_.html.SafeHtml.VALID_NAMES_IN_TAG_.test(d))throw Error('Invalid attribute name "'+d+'".');var e=b[d];tn_.isDefAndNotNull(e)&&(c+=" "+tn_.html.SafeHtml.getAttrNameAndValue_(a,d,e))}return c};
tn_.html.SafeHtml.combineAttributes=function(a,b,c){var d={},e;for(e in a)tn_.asserts.assert(e.toLowerCase()==e,"Must be lower case"),d[e]=a[e];for(e in b)tn_.asserts.assert(e.toLowerCase()==e,"Must be lower case"),d[e]=b[e];for(e in c){var f=e.toLowerCase();if(f in a)throw Error('Cannot override "'+f+'" attribute, got "'+e+'" with value "'+c[e]+'"');f in b&&delete d[f];d[e]=c[e]}return d};
tn_.html.SafeHtml.DOCTYPE_HTML=tn_.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse("<!DOCTYPE html>",tn_.i18n.bidi.Dir.NEUTRAL);tn_.html.SafeHtml.EMPTY=tn_.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse("",tn_.i18n.bidi.Dir.NEUTRAL);tn_.html.SafeHtml.BR=tn_.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse("<br>",tn_.i18n.bidi.Dir.NEUTRAL);tn_.dom.safe={};tn_.dom.safe.InsertAdjacentHtmlPosition={AFTERBEGIN:"afterbegin",AFTEREND:"afterend",BEFOREBEGIN:"beforebegin",BEFOREEND:"beforeend"};tn_.dom.safe.insertAdjacentHtml=function(a,b,c){a.insertAdjacentHTML(b,tn_.html.SafeHtml.unwrap(c))};tn_.dom.safe.SET_INNER_HTML_DISALLOWED_TAGS_={MATH:!0,SCRIPT:!0,STYLE:!0,SVG:!0,TEMPLATE:!0};
tn_.dom.safe.setInnerHtml=function(a,b){if(tn_.asserts.ENABLE_ASSERTS){var c=a.tagName.toUpperCase();if(tn_.dom.safe.SET_INNER_HTML_DISALLOWED_TAGS_[c])throw Error("goog.dom.safe.setInnerHtml cannot be used to set content of "+a.tagName+".");}a.innerHTML=tn_.html.SafeHtml.unwrap(b)};tn_.dom.safe.setOuterHtml=function(a,b){a.outerHTML=tn_.html.SafeHtml.unwrap(b)};
tn_.dom.safe.setFormElementAction=function(a,b){b=b instanceof tn_.html.SafeUrl?b:tn_.html.SafeUrl.sanitizeAssertUnchanged(b);tn_.dom.asserts.assertIsHTMLFormElement(a).action=tn_.html.SafeUrl.unwrap(b)};tn_.dom.safe.setButtonFormAction=function(a,b){b=b instanceof tn_.html.SafeUrl?b:tn_.html.SafeUrl.sanitizeAssertUnchanged(b);tn_.dom.asserts.assertIsHTMLButtonElement(a).formAction=tn_.html.SafeUrl.unwrap(b)};
tn_.dom.safe.setInputFormAction=function(a,b){b=b instanceof tn_.html.SafeUrl?b:tn_.html.SafeUrl.sanitizeAssertUnchanged(b);tn_.dom.asserts.assertIsHTMLInputElement(a).formAction=tn_.html.SafeUrl.unwrap(b)};tn_.dom.safe.setStyle=function(a,b){a.style.cssText=tn_.html.SafeStyle.unwrap(b)};tn_.dom.safe.documentWrite=function(a,b){a.write(tn_.html.SafeHtml.unwrap(b))};
tn_.dom.safe.setAnchorHref=function(a,b){tn_.dom.asserts.assertIsHTMLAnchorElement(a);b=b instanceof tn_.html.SafeUrl?b:tn_.html.SafeUrl.sanitizeAssertUnchanged(b);a.href=tn_.html.SafeUrl.unwrap(b)};tn_.dom.safe.setImageSrc=function(a,b){tn_.dom.asserts.assertIsHTMLImageElement(a);b=b instanceof tn_.html.SafeUrl?b:tn_.html.SafeUrl.sanitizeAssertUnchanged(b);a.src=tn_.html.SafeUrl.unwrap(b)};
tn_.dom.safe.setVideoSrc=function(a,b){tn_.dom.asserts.assertIsHTMLVideoElement(a);b=b instanceof tn_.html.SafeUrl?b:tn_.html.SafeUrl.sanitizeAssertUnchanged(b);a.src=tn_.html.SafeUrl.unwrap(b)};tn_.dom.safe.setEmbedSrc=function(a,b){tn_.dom.asserts.assertIsHTMLEmbedElement(a);a.src=tn_.html.TrustedResourceUrl.unwrap(b)};tn_.dom.safe.setFrameSrc=function(a,b){tn_.dom.asserts.assertIsHTMLFrameElement(a);a.src=tn_.html.TrustedResourceUrl.unwrap(b)};
tn_.dom.safe.setIframeSrc=function(a,b){tn_.dom.asserts.assertIsHTMLIFrameElement(a);a.src=tn_.html.TrustedResourceUrl.unwrap(b)};tn_.dom.safe.setIframeSrcdoc=function(a,b){tn_.dom.asserts.assertIsHTMLIFrameElement(a);a.srcdoc=tn_.html.SafeHtml.unwrap(b)};
tn_.dom.safe.setLinkHrefAndRel=function(a,b,c){tn_.dom.asserts.assertIsHTMLLinkElement(a);a.rel=c;tn_.string.caseInsensitiveContains(c,"stylesheet")?(tn_.asserts.assert(b instanceof tn_.html.TrustedResourceUrl,'URL must be TrustedResourceUrl because "rel" contains "stylesheet"'),a.href=tn_.html.TrustedResourceUrl.unwrap(b)):a.href=b instanceof tn_.html.TrustedResourceUrl?tn_.html.TrustedResourceUrl.unwrap(b):b instanceof tn_.html.SafeUrl?tn_.html.SafeUrl.unwrap(b):tn_.html.SafeUrl.sanitizeAssertUnchanged(b).getTypedStringValue()};
tn_.dom.safe.setObjectData=function(a,b){tn_.dom.asserts.assertIsHTMLObjectElement(a);a.data=tn_.html.TrustedResourceUrl.unwrap(b)};tn_.dom.safe.setScriptSrc=function(a,b){tn_.dom.asserts.assertIsHTMLScriptElement(a);a.src=tn_.html.TrustedResourceUrl.unwrap(b);(b=tn_.getScriptNonce())&&a.setAttribute("nonce",b)};tn_.dom.safe.setScriptContent=function(a,b){tn_.dom.asserts.assertIsHTMLScriptElement(a);a.text=tn_.html.SafeScript.unwrap(b);(b=tn_.getScriptNonce())&&a.setAttribute("nonce",b)};
tn_.dom.safe.setLocationHref=function(a,b){tn_.dom.asserts.assertIsLocation(a);b=b instanceof tn_.html.SafeUrl?b:tn_.html.SafeUrl.sanitizeAssertUnchanged(b);a.href=tn_.html.SafeUrl.unwrap(b)};tn_.dom.safe.replaceLocation=function(a,b){tn_.dom.asserts.assertIsLocation(a);b=b instanceof tn_.html.SafeUrl?b:tn_.html.SafeUrl.sanitizeAssertUnchanged(b);a.replace(tn_.html.SafeUrl.unwrap(b))};
tn_.dom.safe.openInWindow=function(a,b,c,d,e){a=a instanceof tn_.html.SafeUrl?a:tn_.html.SafeUrl.sanitizeAssertUnchanged(a);b=b||window;return b.open(tn_.html.SafeUrl.unwrap(a),c?tn_.string.Const.unwrap(c):"",d,e)};var tn_ga;a:{for(var tn_ha=[" ","\u0120",-1,"!","\u0120",-1,"\u0120","\u0120",0,"\u0121","\u0120",-1,"\u0121","\u0120|\u0121",0,"\u0122","\u0120|\u0121",-1,"\u0120","[\u0120]",0,"\u0121","[\u0120]",-1,"\u0121","[\u0120\u0121]",0,"\u0122","[\u0120\u0121]",-1,"\u0121","[\u0120-\u0121]",0,"\u0122","[\u0120-\u0121]",-1],tn_d=0;tn_d<tn_ha.length;tn_d+=3)if(tn_ha[tn_d].search(new RegExp(tn_ha[tn_d+1]))!=tn_ha[tn_d+2]){tn_ga=!1;break a}tn_ga=!0}
var tn_e=tn_ga,tn_ia=tn_e?"A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u00ff\u0100-\u0131\u0134-\u013e\u0141-\u0148\u014a-\u017e\u0180-\u01c3\u01cd-\u01f0\u01f4-\u01f5\u01fa-\u0217\u0250-\u02a8\u02bb-\u02c1\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03ce\u03d0-\u03d6\u03da\u03dc\u03de\u03e0\u03e2-\u03f3\u0401-\u040c\u040e-\u044f\u0451-\u045c\u045e-\u0481\u0490-\u04c4\u04c7-\u04c8\u04cb-\u04cc\u04d0-\u04eb\u04ee-\u04f5\u04f8-\u04f9\u0531-\u0556\u0559\u0561-\u0586\u05d0-\u05ea\u05f0-\u05f2\u0621-\u063a\u0641-\u064a\u0671-\u06b7\u06ba-\u06be\u06c0-\u06ce\u06d0-\u06d3\u06d5\u06e5-\u06e6\u0905-\u0939\u093d\u0958-\u0961\u0985-\u098c\u098f-\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09dc-\u09dd\u09df-\u09e1\u09f0-\u09f1\u0a05-\u0a0a\u0a0f-\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32-\u0a33\u0a35-\u0a36\u0a38-\u0a39\u0a59-\u0a5c\u0a5e\u0a72-\u0a74\u0a85-\u0a8b\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2-\u0ab3\u0ab5-\u0ab9\u0abd\u0ae0\u0b05-\u0b0c\u0b0f-\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32-\u0b33\u0b36-\u0b39\u0b3d\u0b5c-\u0b5d\u0b5f-\u0b61\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99-\u0b9a\u0b9c\u0b9e-\u0b9f\u0ba3-\u0ba4\u0ba8-\u0baa\u0bae-\u0bb5\u0bb7-\u0bb9\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c33\u0c35-\u0c39\u0c60-\u0c61\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cde\u0ce0-\u0ce1\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d28\u0d2a-\u0d39\u0d60-\u0d61\u0e01-\u0e2e\u0e30\u0e32-\u0e33\u0e40-\u0e45\u0e81-\u0e82\u0e84\u0e87-\u0e88\u0e8a\u0e8d\u0e94-\u0e97\u0e99-\u0e9f\u0ea1-\u0ea3\u0ea5\u0ea7\u0eaa-\u0eab\u0ead-\u0eae\u0eb0\u0eb2-\u0eb3\u0ebd\u0ec0-\u0ec4\u0f40-\u0f47\u0f49-\u0f69\u10a0-\u10c5\u10d0-\u10f6\u1100\u1102-\u1103\u1105-\u1107\u1109\u110b-\u110c\u110e-\u1112\u113c\u113e\u1140\u114c\u114e\u1150\u1154-\u1155\u1159\u115f-\u1161\u1163\u1165\u1167\u1169\u116d-\u116e\u1172-\u1173\u1175\u119e\u11a8\u11ab\u11ae-\u11af\u11b7-\u11b8\u11ba\u11bc-\u11c2\u11eb\u11f0\u11f9\u1e00-\u1e9b\u1ea0-\u1ef9\u1f00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u2126\u212a-\u212b\u212e\u2180-\u2182\u3041-\u3094\u30a1-\u30fa\u3105-\u312c\uac00-\ud7a3":"A-Za-z",
tn_ja=tn_e?"\u4e00-\u9fa5\u3007\u3021-\u3029":"",tn_ka=tn_e?"\u0300-\u0345\u0360-\u0361\u0483-\u0486\u0591-\u05a1\u05a3-\u05b9\u05bb-\u05bd\u05bf\u05c1-\u05c2\u05c4\u064b-\u0652\u0670\u06d6-\u06dc\u06dd-\u06df\u06e0-\u06e4\u06e7-\u06e8\u06ea-\u06ed\u0901-\u0903\u093c\u093e-\u094c\u094d\u0951-\u0954\u0962-\u0963\u0981-\u0983\u09bc\u09be\u09bf\u09c0-\u09c4\u09c7-\u09c8\u09cb-\u09cd\u09d7\u09e2-\u09e3\u0a02\u0a3c\u0a3e\u0a3f\u0a40-\u0a42\u0a47-\u0a48\u0a4b-\u0a4d\u0a70-\u0a71\u0a81-\u0a83\u0abc\u0abe-\u0ac5\u0ac7-\u0ac9\u0acb-\u0acd\u0b01-\u0b03\u0b3c\u0b3e-\u0b43\u0b47-\u0b48\u0b4b-\u0b4d\u0b56-\u0b57\u0b82-\u0b83\u0bbe-\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcd\u0bd7\u0c01-\u0c03\u0c3e-\u0c44\u0c46-\u0c48\u0c4a-\u0c4d\u0c55-\u0c56\u0c82-\u0c83\u0cbe-\u0cc4\u0cc6-\u0cc8\u0cca-\u0ccd\u0cd5-\u0cd6\u0d02-\u0d03\u0d3e-\u0d43\u0d46-\u0d48\u0d4a-\u0d4d\u0d57\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb-\u0ebc\u0ec8-\u0ecd\u0f18-\u0f19\u0f35\u0f37\u0f39\u0f3e\u0f3f\u0f71-\u0f84\u0f86-\u0f8b\u0f90-\u0f95\u0f97\u0f99-\u0fad\u0fb1-\u0fb7\u0fb9\u20d0-\u20dc\u20e1\u302a-\u302f\u3099\u309a":
"",tn_la=tn_e?"0-9\u0660-\u0669\u06f0-\u06f9\u0966-\u096f\u09e6-\u09ef\u0a66-\u0a6f\u0ae6-\u0aef\u0b66-\u0b6f\u0be7-\u0bef\u0c66-\u0c6f\u0ce6-\u0cef\u0d66-\u0d6f\u0e50-\u0e59\u0ed0-\u0ed9\u0f20-\u0f29":"0-9",tn_ma=tn_e?"\u00b7\u02d0\u02d1\u0387\u0640\u0e46\u0ec6\u3005\u3031-\u3035\u309d-\u309e\u30fc-\u30fe":"",tn_na=tn_ia+tn_ja,tn_oa=tn_na+tn_la+"\\._:"+tn_ka+tn_ma+"-",tn_pa="["+tn_na+"_:]["+tn_oa+"]*",tn_qa="&"+tn_pa+";",tn_ra=tn_qa+"|&#[0-9]+;|&#x[0-9a-fA-F]+;",tn_sa='"(([^<&"]|'+tn_ra+")*)\"|'(([^<&']|"+
tn_ra+")*)'",tn_ta="("+tn_pa+")([ \t\r\n]+)?=([ \t\r\n]+)?("+tn_sa+")",tn_ua=tn_e?":A-Z_a-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c-\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd":":A-Z_a-z",tn_va=tn_ua+(tn_e?"\\.0-9\u00b7\u0300-\u036f\u203f-\u2040-":"\\.0-9-"),tn_wa="["+tn_ua+"]["+tn_va+"]*",tn_xa="&"+tn_wa+";",tn_ya=tn_xa+"|&#[0-9]+;|&#x[0-9a-fA-F]+;",tn_za='"(([^<&"]|'+tn_ya+")*)\"|'(([^<&']|"+tn_ya+")*)'",tn_Aa="("+tn_wa+")([ \t\r\n]+)?=([ \t\r\n]+)?("+
tn_za+")",tn_Ba=tn_na+tn_la+"\\._"+tn_ka+tn_ma+"-",tn_Ca="["+tn_na+"_]["+tn_Ba+"]*";function tn_f(a){a||tn_g("Assertion failed")}function tn_h(a,b){var c=a.indexOf(b);if(-1==c)return[a];var d=[];for(d.push(a.substr(0,c));-1!=c;){var e=a.indexOf(b,c+1);-1!=e?d.push(a.substr(c+1,e-c-1)):d.push(a.substr(c+1));c=e}return d}
function tn_i(a,b){if(3==b.nodeType)return a.createTextNode(b.nodeValue);if(4==b.nodeType)return a.createCDATASection(b.nodeValue);if(1==b.nodeType){for(var c=a.createElement(b.nodeName),d=0;d<b.attributes.length;++d){var e=b.attributes[d],f=e.nodeName;e=e.nodeValue;c.setAttribute(f,e)}for(b=b.firstChild;b;b=b.nextSibling)d=tn_i(a,b),c.appendChild(d);return c}return a.createComment(b.nodeName)}function Set(){this.keys=[]}tn_a=Set.prototype;tn_a.size=function(){return this.keys.length};
tn_a.add=function(a,b){b=b||1;this.contains(a)||(this[":"+a]=b,this.keys.push(a))};tn_a.set=function(a,b){b=b||1;this.contains(a)?this[":"+a]=b:(this[":"+a]=b,this.keys.push(a))};tn_a.get=function(a){if(this.contains(a))return this[":"+a];var b;return b};tn_a.remove=function(a){this.contains(a)&&(delete this[":"+a],tn_Da(this.keys,a,!0))};tn_a.contains=function(a){return"undefined"!=typeof this[":"+a]};tn_a.has=Set.prototype.contains;
tn_a.items=function(){for(var a=[],b=0;b<this.keys.length;++b){var c=this.keys[b];c=this[":"+c];a.push(c)}return a};tn_a.map=function(a){for(var b=0;b<this.keys.length;++b){var c=this.keys[b];a.call(this,c,this[":"+c])}};tn_a.clear=function(){for(var a=0;a<this.keys.length;++a)delete this[":"+this.keys[a]];this.keys.length=0};function tn_Ea(a,b){for(var c=0;c<a.length;++c)b.call(this,a[c],c)}function tn_Fa(a,b){for(var c=[],d=0;d<a.length;++d)c.push(b(a[d]));return c}
function tn_Ga(a){for(var b=0;b<a.length/2;++b){var c=a[b],d=a.length-b-1;a[b]=a[d];a[d]=c}}function tn_Da(a,b,c){for(var d=0,e=0;e<a.length;++e)if(a[e]===b||c&&a[e]==b)a.splice(e--,1),d++;return d}function tn_Ha(a,b){for(var c=0;c<b.length;++c)a.push(b[c])}function tn_j(a){if(!a)return"";var b="";if(3==a.nodeType||4==a.nodeType||2==a.nodeType)b+=a.nodeValue;else if(1==a.nodeType||9==a.nodeType||11==a.nodeType)for(var c=0;c<a.childNodes.length;++c)b+=tn_j(a.childNodes[c]);return b}
function tn_Ia(a,b){var c=[];tn_Ja(a,c,b);return c.join("")}
function tn_Ja(a,b,c){if(3==a.nodeType)b.push(tn_Ka(a.nodeValue));else if(4==a.nodeType)c?b.push(a.nodeValue):b.push("<![CDATA["+a.nodeValue+"]]\x3e");else if(8==a.nodeType)b.push("\x3c!--"+a.nodeValue+"--\x3e");else if(1==a.nodeType){b.push("<"+tn_La(a));for(var d=0;d<a.attributes.length;++d){var e=a.attributes[d];e&&e.nodeName&&e.nodeValue&&b.push(" "+tn_La(e)+'="'+tn_Ka(e.nodeValue).replace(/"/g,"&quot;")+'"')}if(0==a.childNodes.length)b.push("/>");else{b.push(">");for(d=0;d<a.childNodes.length;++d)tn_Ja(a.childNodes[d],
b,c);b.push("</"+tn_La(a)+">")}}else if(9==a.nodeType||11==a.nodeType)for(d=0;d<a.childNodes.length;++d)tn_Ja(a.childNodes[d],b,c)}function tn_La(a){return a.prefix&&0!=a.nodeName.indexOf(a.prefix+":")?a.prefix+":"+a.nodeName:a.nodeName}function tn_Ka(a){return(""+a).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function tn_g(a){if("undefined"!=typeof Error)throw Error(a||"Assertion Failed");throw a;};function tn_Ma(a){a=tn_h(a,"&");for(var b=a[0],c=1;c<a.length;++c){var d=a[c].indexOf(";");if(-1==d)b+=a[c];else{var e=a[c].substring(0,d);d=a[c].substring(d+1);switch(e){case "lt":e="<";break;case "gt":e=">";break;case "amp":e="&";break;case "quot":e='"';break;case "apos":e="'";break;case "nbsp":e=String.fromCharCode(160);break;default:var f=window.document.createElement("span");f.innerHTML="&"+e+"; ";e=f.childNodes[0].nodeValue.charAt(0)}b+=e+d}}return b}
var tn_Na=new RegExp("^("+tn_pa+")"),tn_Oa=new RegExp(tn_ta,"g"),tn_Pa=new RegExp("^("+tn_wa+")"),tn_Qa=new RegExp(tn_Aa,"g");
function tn_Ra(a){var b=/\/$/;if(a.match(/^<\?xml/))if(5==a.search(/[ \t\r\n]+version([ \t\r\n]+)?=([ \t\r\n]+)?("1\.0"|'1\.0')/)){var c=tn_Na;var d=tn_Oa}else 5==a.search(/[ \t\r\n]+version([ \t\r\n]+)?=([ \t\r\n]+)?("1\.1"|'1\.1')/)?(c=tn_Pa,d=tn_Qa):alert("VersionInfo is missing, or unknown version number.");else c=tn_Na,d=tn_Oa;var e=new tn_Sa,f=e,g=[],n=f;g.push(n);var l="";a=tn_h(a,"<");for(var m=1;m<a.length;++m){var h=tn_h(a[m],">"),k=h[0];h=tn_Ma(h[1]||"");if(l)if(k=a[m].indexOf(l),-1!=k){var p=
a[m].substring(0,k);n.nodeValue+="<"+p;g.pop();n=g[g.length-1];h=a[m].substring(k+l.length);l=""}else n.nodeValue+="<"+a[m],h=null;else if(0==k.indexOf("![CDATA["))if(p=8,k=a[m].indexOf("]]\x3e"),-1!=k){p=a[m].substring(p,k);var q=e.createCDATASection(p);n.appendChild(q)}else p=a[m].substring(p),h=null,q=e.createCDATASection(p),n.appendChild(q),n=q,g.push(q),l="]]\x3e";else if(0==k.indexOf("!--"))p=3,k=a[m].indexOf("--\x3e"),-1!=k?(p=a[m].substring(p,k),q=e.createComment(p),n.appendChild(q)):(p=a[m].substring(p),
h=null,q=e.createComment(p),n.appendChild(q),n=q,g.push(q),l="--\x3e");else if("/"==k.charAt(0))g.pop(),n=g[g.length-1];else if("?"!=k.charAt(0)&&"!"!=k.charAt(0)){p=k.match(b);q=c.exec(k)[1];q=e.createElement(q);for(var t;t=d.exec(k);){var r=tn_Ma(t[5]||t[7]||"");q.setAttribute(t[1],r)}n.appendChild(q);p||(n=q,g.push(q))}h&&n!=f&&(h=e.createTextNode(h),n.appendChild(h))}return f}
function tn_Ta(a,b,c){if(b){var d=b.call(null,a);if("boolean"==typeof d&&!d)return!1}for(var e=a.firstChild;e;e=e.nextSibling)if(1==e.nodeType&&(d=tn_Ta.call(this,e,b,c),"boolean"==typeof d&&!d))return!1;if(c&&(d=c.call(null,a),"boolean"==typeof d&&!d))return!1}function tn_k(a,b,c,d){this.attributes=[];this.childNodes=[];tn_k.init.call(this,a,b,c,d)}
tn_k.init=function(a,b,c,d){this.nodeType=a-0;this.nodeName=""+b;this.nodeValue=""+c;this.ownerDocument=d;this.parentNode=this.previousSibling=this.nextSibling=this.lastChild=this.firstChild=null};tn_k.unused_=[];
tn_k.recycle=function(a){if(a)if(a.constructor==tn_Sa)tn_k.recycle(a.documentElement);else if(a.constructor==this){tn_k.unused_.push(a);for(var b=0;b<a.attributes.length;++b)tn_k.recycle(a.attributes[b]);for(b=0;b<a.childNodes.length;++b)tn_k.recycle(a.childNodes[b]);a.attributes.length=0;a.childNodes.length=0;tn_k.init.call(a,0,"","",null)}};tn_k.create=function(a,b,c,d){if(0<tn_k.unused_.length){var e=tn_k.unused_.pop();tn_k.init.call(e,a,b,c,d);return e}return new tn_k(a,b,c,d)};tn_a=tn_k.prototype;
tn_a.appendChild=function(a){0==this.childNodes.length&&(this.firstChild=a);a.previousSibling=this.lastChild;a.nextSibling=null;this.lastChild&&(this.lastChild.nextSibling=a);a.parentNode=this;this.lastChild=a;this.childNodes.push(a)};
tn_a.replaceChild=function(a,b){if(b!=a)for(var c=0;c<this.childNodes.length;++c)if(this.childNodes[c]==b){this.childNodes[c]=a;c=b.parentNode;b.parentNode=null;a.parentNode=c;c=b.previousSibling;b.previousSibling=null;a.previousSibling=c;a.previousSibling&&(a.previousSibling.nextSibling=a);c=b.nextSibling;b.nextSibling=null;a.nextSibling=c;a.nextSibling&&(a.nextSibling.previousSibling=a);this.firstChild==b&&(this.firstChild=a);this.lastChild==b&&(this.lastChild=a);break}};
tn_a.insertBefore=function(a,b){if(b!=a&&b.parentNode==this){a.parentNode&&a.parentNode.removeChild(a);for(var c=[],d=0;d<this.childNodes.length;++d){var e=this.childNodes[d];e==b&&(c.push(a),a.parentNode=this,a.previousSibling=b.previousSibling,b.previousSibling=a,a.previousSibling&&(a.previousSibling.nextSibling=a),a.nextSibling=b,this.firstChild==b&&(this.firstChild=a));c.push(e)}this.childNodes=c}};
tn_a.removeChild=function(a){for(var b=[],c=0;c<this.childNodes.length;++c){var d=this.childNodes[c];d!=a?b.push(d):(d.previousSibling&&(d.previousSibling.nextSibling=d.nextSibling),d.nextSibling&&(d.nextSibling.previousSibling=d.previousSibling),this.firstChild==d&&(this.firstChild=d.nextSibling),this.lastChild==d&&(this.lastChild=d.previousSibling))}this.childNodes=b};tn_a.hasAttributes=function(){return 0<this.attributes.length};
tn_a.setAttribute=function(a,b){for(var c=0;c<this.attributes.length;++c)if(this.attributes[c].nodeName==a){this.attributes[c].nodeValue=""+b;return}this.attributes.push(tn_k.create(2,a,b,this))};tn_a.getAttribute=function(a){for(var b=0;b<this.attributes.length;++b)if(this.attributes[b].nodeName==a)return this.attributes[b].nodeValue;return null};
tn_a.removeAttribute=function(a){for(var b=[],c=0;c<this.attributes.length;++c)this.attributes[c].nodeName!=a&&b.push(this.attributes[c]);this.attributes=b};tn_a.getElementsByTagName=function(a){var b=[];tn_Ta(this,function(c){c.nodeName==a&&b.push(c)},null);return b};tn_a.getElementById=function(a){var b=null;tn_Ta(this,function(c){if(c.getAttribute("id")==a)return b=c,!1},null);return b};function tn_Sa(){tn_k.call(this,9,"#document",null,null);this.documentElement=null}
tn_Sa.prototype=new tn_k(9,"#document");tn_a=tn_Sa.prototype;tn_a.clear=function(){tn_k.recycle(this.documentElement);this.documentElement=null};tn_a.appendChild=function(a){tn_k.prototype.appendChild.call(this,a);this.documentElement=this.childNodes[0]};tn_a.createElement=function(a){return tn_k.create(1,a,null,this)};tn_a.createDocumentFragment=function(){return tn_k.create(11,"#document-fragment",null,this)};tn_a.createTextNode=function(a){return tn_k.create(3,"#text",a,this)};
tn_a.createAttribute=function(a){return tn_k.create(2,a,null,this)};tn_a.createComment=function(a){return tn_k.create(8,"#comment",a,this)};tn_a.createCDATASection=function(a){return tn_k.create(4,"#cdata-section",a,this)};function tn_Ua(a,b){tn_Va(new tn_l(a,b),b)}
function tn_Va(a,b){var c=b.getAttribute("select");if(c){b.removeAttribute("select");var d=b;c=c.split(/;/);var e=tn_Wa(c[0],a).nodeSetValue();if(0<e.length){b=[];for(var f=1;f<e.length;++f){var g=tn_i(d.ownerDocument,d);b.push(g);d.parentNode.insertBefore(g,d)}b.push(d);d=[];for(f=1;f<c.length;++f){var n=c[f],l=0;"#"==n.charAt(l)?(g="number",l++):g="text";"-"==n.charAt(l)?(n="descending",l++):n="ascending";l=tn_Xa(c[f].substr(l));d.push({expr:l,type:g,order:n})}a=a.clone(e[0],0,e);tn_Ya(a,d);for(f=
0;f<a.nodelist.length;++f)1==a.nodelist[f].nodeType&&tn_Va(a.clone(a.nodelist[f],f),b[f])}else d.parentNode.removeChild(d)}else{if(c=b.getAttribute("display"))if(tn_Wa(c,a).booleanValue())b.removeAttribute("display");else{b.parentNode.removeChild(b);return}if(d=b.getAttribute("values"))for(b.removeAttribute("values"),c=a,e=b,d=d.split(/;/),f=0;f<d.length;++f)l=d[f].indexOf(":"),0>l||(g=d[f].substr(0,l),l=tn_Wa(d[f].substr(l+1),c),"$"==g.charAt(0)?c.setVariable(g.substr(1),l):g&&(l=l.stringValue(),
e.setAttribute(g,l)));if(e=b.getAttribute("transclude"))c=b.ownerDocument,c=(e=c.getElementById(e))?tn_i(c,e):null,c?(b.parentNode.replaceChild(c,b),tn_Va(a,c)):b.parentNode.removeChild(b),tn_k.recycle(b);else if(c=b.getAttribute("content")){for(b.removeAttribute("content");b.firstChild;)b.removeChild(b.firstChild);a=tn_Wa(c,a);if("node-set"==a.type)for(c=0;c<a.value.length;++c)if(e=a.value[c],1==e.nodeType)for(e=e.firstChild;e;e=e.nextSibling)d=tn_i(b.ownerDocument,e),b.appendChild(d);else 2==e.nodeType&&
(e=b.ownerDocument.createTextNode(e.nodeValue),b.appendChild(e));else a=a.stringValue(),e=b.ownerDocument.createTextNode(a),b.appendChild(e)}else{c=[];for(e=0;e<b.childNodes.length;++e)1==b.childNodes[e].nodeType&&c.push(b.childNodes[e]);for(e=0;e<c.length;++e)tn_Va(a,c[e])}}}function tn_Wa(a,b){a=tn_Xa(a);return b=a.evaluate(b)};function tn_Xa(a){tn_Za();var b=tn__a[a];if(b)return b;if(a.match(/^(\$|@)?\w+$/i))return b=tn_0a(a),tn__a[a]=b;if(a.match(/^\w+(\/\w+)*$/i)){b=tn_h(a,"/");for(var c=new tn_m,d=0;d<b.length;++d){var e=new tn_1a(b[d]);e=new tn_n("child",e);c.appendStep(e)}b=c;return tn__a[a]=b}b=a;c=[];d=null;for(var f=!1,g=0,n=0,l=0;!f;){g++;a=a.replace(/^\s*/,"");e=d;for(var m=d=null,h="",k=0;k<tn_2a.length;++k){var p=tn_2a[k].re.exec(a);n++;if(p&&0<p.length&&p[0].length>h.length){m=tn_2a[k];h=p[0];break}}!m||m!=
tn_3a&&m!=tn_4a&&m!=tn_5a&&m!=tn_6a||e&&e.tag!=tn_7a&&e.tag!=tn_o&&e.tag!=tn_p&&e.tag!=tn_8a&&e.tag!=tn_9a||(m=tn_q);m?(a=a.substr(h.length),d={tag:m,match:h,prec:m.prec?m.prec:0,expr:new tn_$a(h)}):f=!0;for(;tn_ab(c,d);)l++}if(1!=c.length){a="";for(d=0;d<c.length;++d)a&&(a+="\n"),a+=c[d].tag.label;tn_g("XPath parse error "+b+":\n"+a)}p=c[0].expr;return tn__a[b]=p}var tn__a={};
function tn_ab(a,b){var c=null;if(0<a.length){var d=a[a.length-1];if(d=tn_r[d.tag.key])for(var e=0;e<d.length;++e){var f=d[e],g=tn_bb(a,f[1]);if(g.length){c={tag:f[0],rule:f,match:g};c.prec=tn_cb(c);break}}}if(c&&(!b||c.prec>b.prec||b.tag.left&&c.prec>=b.prec)){for(e=0;e<c.match.matchlength;++e)a.pop();b=tn_Fa(c.match,function(a){return a.expr});c.expr=c.rule[3].apply(null,b);a.push(c);a=!0}else b&&a.push(b),a=!1;return a}
function tn_bb(a,b){var c=a.length,d=b.length,e=[],f=e.matchlength=0;--d;for(--c;0<=d&&0<=c;--d,c-=f){f=0;var g=[];if(b[d]==tn_db)for(--d,e.push(g);0<=c-f&&a[c-f].tag==b[d];)g.push(a[c-f]),f+=1,e.matchlength+=1;else if(b[d]==tn_eb)for(--d,e.push(g);0<=c-f&&2>f&&a[c-f].tag==b[d];)g.push(a[c-f]),f+=1,e.matchlength+=1;else if(b[d]==tn_fb)if(--d,e.push(g),a[c].tag==b[d])for(;0<=c-f&&a[c-f].tag==b[d];)g.push(a[c-f]),f+=1,e.matchlength+=1;else return[];else if(a[c].tag==b[d])e.push(a[c]),f+=1,e.matchlength+=
1;else return[];tn_Ga(g);g.expr=tn_Fa(g,function(a){return a.expr})}tn_Ga(e);return-1==d?e:[]}function tn_cb(a){var b=0;if(a.rule)if(3<=a.rule.length&&0<=a.rule[2])b=a.rule[2];else for(var c=0;c<a.rule[1].length;++c){var d=a.rule[1][c].prec||2;b=Math.max(b,d)}else if(a.tag)b=a.tag.prec||2;else if(a.length)for(c=0;c<a.length;++c)d=tn_cb(a[c]),b=Math.max(b,d);return b}
function tn_l(a,b,c,d,e){this.node=a;this.stylesheet=b||null;this.position=c||0;this.nodelist=d||[a];this.variables={};this.parent=e||null;this.root=e?e.root:9==this.node.nodeType?a:a.ownerDocument}tn_l.prototype.clone=function(a,b,c){return new tn_l(a||this.node,this.stylesheet,"undefined"!=typeof b?b:this.position,c||this.nodelist,this)};tn_l.prototype.setVariable=function(a,b){this.variables[a]=b};
tn_l.prototype.getVariable=function(a){return"undefined"!=typeof this.variables[a]?this.variables[a]:this.parent?this.parent.getVariable(a):null};tn_l.prototype.setNode=function(a){this.node=this.nodelist[a];this.position=a};function tn_s(a){this.value=a;this.type="string"}tn_s.prototype.stringValue=function(){return this.value};tn_s.prototype.booleanValue=function(){return 0<this.value.length};tn_s.prototype.numberValue=function(){return this.value-0};tn_s.prototype.nodeSetValue=function(){tn_g(this)};
function tn_t(a){this.value=a;this.type="boolean"}tn_t.prototype.stringValue=function(){return""+this.value};tn_t.prototype.booleanValue=function(){return this.value};tn_t.prototype.numberValue=function(){return this.value?1:0};tn_t.prototype.nodeSetValue=function(){tn_g(this)};function tn_u(a){this.value=a;this.type="number"}tn_u.prototype.stringValue=function(){return""+this.value};tn_u.prototype.booleanValue=function(){return!!this.value};
tn_u.prototype.numberValue=function(){return this.value-0};tn_u.prototype.nodeSetValue=function(){tn_g(this)};function tn_v(a){this.value=a;this.type="node-set"}tn_v.prototype.stringValue=function(){return 0==this.value.length?"":tn_j(this.value[0])};tn_v.prototype.booleanValue=function(){return 0<this.value.length};tn_v.prototype.numberValue=function(){return this.stringValue()-0};tn_v.prototype.nodeSetValue=function(){return this.value};function tn_$a(a){this.value=a}tn_$a.prototype.evaluate=function(){return new tn_s(this.value)};
function tn_m(){this.absolute=!1;this.rootExpr=null;this.steps=[]}tn_m.prototype.appendStep=function(a){this.steps.push(a)};tn_m.prototype.prependStep=function(a){this.steps.unshift(a)};tn_m.prototype.evaluate=function(a){var b=this.rootExpr?this.rootExpr.evaluate(a).nodeSetValue():this.absolute?[a.root]:[a.node];for(var c=[],d=0;d<b.length;++d){var e=b[d];tn_gb(c,this.steps,0,e,a)}return new tn_v(c)};
function tn_gb(a,b,c,d,e){var f=b[c];d=e.clone(d);f=f.evaluate(d).nodeSetValue();for(d=0;d<f.length;++d)c==b.length-1?a.push(f[d]):tn_gb(a,b,c+1,f[d],e)}function tn_n(a,b,c){this.axis=a;this.nodetest=b;this.predicate=c||[]}tn_n.prototype.appendPredicate=function(a){this.predicate.push(a)};
tn_n.prototype.evaluate=function(a){var b=a.node,c=[];if(this.axis==tn_w.ANCESTOR_OR_SELF)for(c.push(b),b=b.parentNode;b;b=b.parentNode)c.push(b);else if(this.axis==tn_w.ANCESTOR)for(b=b.parentNode;b;b=b.parentNode)c.push(b);else if(this.axis==tn_w.ATTRIBUTE)tn_Ha(c,b.attributes);else if(this.axis==tn_w.CHILD)tn_Ha(c,b.childNodes);else if(this.axis==tn_w.DESCENDANT_OR_SELF)c.push(b),tn_hb(c,b);else if(this.axis==tn_w.DESCENDANT)tn_hb(c,b);else if(this.axis==tn_w.FOLLOWING)for(;b;b=b.parentNode)for(var d=
b.nextSibling;d;d=d.nextSibling)c.push(d),tn_hb(c,d);else if(this.axis==tn_w.FOLLOWING_SIBLING)for(b=b.nextSibling;b;b=b.nextSibling)c.push(b);else if(this.axis==tn_w.NAMESPACE)tn_g("not implemented: axis namespace");else if(this.axis==tn_w.PARENT)b.parentNode&&c.push(b.parentNode);else if(this.axis==tn_w.PRECEDING)for(;b;b=b.parentNode)for(d=b.previousSibling;d;d=d.previousSibling)c.push(d),tn_ib(c,d);else if(this.axis==tn_w.PRECEDING_SIBLING)for(b=b.previousSibling;b;b=b.previousSibling)c.push(b);
else this.axis==tn_w.SELF?c.push(b):tn_g("ERROR -- NO SUCH AXIS: "+this.axis);d=c;c=[];for(var e=0;e<d.length;++e)b=d[e],this.nodetest.evaluate(a.clone(b,e,d)).booleanValue()&&c.push(b);for(e=0;e<this.predicate.length;++e){d=c;c=[];for(var f=0;f<d.length;++f)b=d[f],this.predicate[e].evaluate(a.clone(b,f,d)).booleanValue()&&c.push(b)}return new tn_v(c)};function tn_jb(){this.value=new tn_t(!0)}tn_jb.prototype.evaluate=function(){return this.value};function tn_kb(){}
tn_kb.prototype.evaluate=function(a){return new tn_t(1==a.node.nodeType||2==a.node.nodeType)};function tn_lb(){}tn_lb.prototype.evaluate=function(a){return new tn_t(3==a.node.nodeType)};function tn_mb(){}tn_mb.prototype.evaluate=function(a){return new tn_t(8==a.node.nodeType)};function tn_nb(a){this.target=a}tn_nb.prototype.evaluate=function(a){return new tn_t(7==a.node.nodeType&&(!this.target||a.node.nodeName==this.target))};function tn_ob(a){this.regex=new RegExp("^"+a+":")}
tn_ob.prototype.evaluate=function(a){a=a.node;return new tn_t(this.regex.test(a.nodeName))};function tn_1a(a){this.name=a}tn_1a.prototype.evaluate=function(a){a=a.node;return new tn_t(a.nodeName==this.name)};function tn_pb(a){this.expr=a}tn_pb.prototype.evaluate=function(a){var b=this.expr.evaluate(a);return"number"==b.type?new tn_t(a.position==b.numberValue()-1):new tn_t(b.booleanValue())};function tn_qb(a){this.name=a;this.args=[]}tn_qb.prototype.appendArg=function(a){this.args.push(a)};
tn_qb.prototype.evaluate=function(a){var b=""+this.name.value;return(b=this.xpathfunctions[b])?b.call(this,a):new tn_t(!1)};
tn_qb.prototype.xpathfunctions={last:function(a){tn_f(0==this.args.length);return new tn_u(a.nodelist.length)},position:function(a){tn_f(0==this.args.length);return new tn_u(a.position+1)},count:function(a){tn_f(1==this.args.length);a=this.args[0].evaluate(a);return new tn_u(a.nodeSetValue().length)},id:function(a){tn_f(1==this.args.length);var b=this.args[0].evaluate(a),c=[];if("node-set"==b.type){var d=[];var e=b.nodeSetValue();for(b=0;b<e.length;++b)for(var f=tn_j(e[b]).split(/\s+/),g=0;g<f.length;++g)d.push(f[g])}else d=
b.stringValue().split(/\s+/);a=a.node.ownerDocument;for(b=0;b<d.length;++b)(e=a.getElementById(d[b]))&&c.push(e);return new tn_v(c)},"local-name":function(){tn_g("not implmented yet: XPath function local-name()")},"namespace-uri":function(){tn_g("not implmented yet: XPath function namespace-uri()")},name:function(a){tn_f(1==this.args.length||0==this.args.length);a=0==this.args.length?[a.node]:this.args[0].evaluate(a).nodeSetValue();return 0==a.length?new tn_s(""):new tn_s(a[0].nodeName)},string:function(a){tn_f(1==
this.args.length||0==this.args.length);return 0==this.args.length?new tn_s((new tn_v([a.node])).stringValue()):new tn_s(this.args[0].evaluate(a).stringValue())},concat:function(a){for(var b="",c=0;c<this.args.length;++c)b+=this.args[c].evaluate(a).stringValue();return new tn_s(b)},document:function(a){var b=this.args[0].evaluate(a).stringValue();if(""===b&&a.stylesheet)return new tn_v([a.stylesheet]);tn_g("Can't resolve uri in document(\""+b+'")')},"starts-with":function(a){tn_f(2==this.args.length);
var b=this.args[0].evaluate(a).stringValue();a=this.args[1].evaluate(a).stringValue();return new tn_t(0==b.indexOf(a))},contains:function(a){tn_f(2==this.args.length);var b=this.args[0].evaluate(a).stringValue();a=this.args[1].evaluate(a).stringValue();return new tn_t(-1!=b.indexOf(a))},"substring-before":function(a){tn_f(2==this.args.length);var b=this.args[0].evaluate(a).stringValue();a=this.args[1].evaluate(a).stringValue();a=b.indexOf(a);b=-1==a?"":b.substr(0,a);return new tn_s(b)},"substring-after":function(a){tn_f(2==
this.args.length);var b=this.args[0].evaluate(a).stringValue();a=this.args[1].evaluate(a).stringValue();var c=b.indexOf(a);b=-1==c?"":b.substr(c+a.length);return new tn_s(b)},substring:function(a){tn_f(2==this.args.length||3==this.args.length);var b=this.args[0].evaluate(a).stringValue(),c=this.args[1].evaluate(a).numberValue();if(2==this.args.length)c=Math.max(0,Math.round(c)-1),b=b.substr(c);else{a=this.args[2].evaluate(a).numberValue();var d=Math.round(c)-1;c=Math.max(0,d);a=Math.round(a)-Math.max(0,
-d);b=b.substr(c,a)}return new tn_s(b)},"string-length":function(a){a=0<this.args.length?this.args[0].evaluate(a).stringValue():(new tn_v([a.node])).stringValue();return new tn_u(a.length)},"normalize-space":function(a){a=0<this.args.length?this.args[0].evaluate(a).stringValue():(new tn_v([a.node])).stringValue();a=a.replace(/^\s*/,"").replace(/\s*$/,"").replace(/\s+/g," ");return new tn_s(a)},translate:function(a){tn_f(3==this.args.length);var b=this.args[0].evaluate(a).stringValue(),c=this.args[1].evaluate(a).stringValue();
a=this.args[2].evaluate(a).stringValue();for(var d=0;d<c.length;++d)b=b.replace(new RegExp(c.charAt(d),"g"),a.charAt(d));return new tn_s(b)},"boolean":function(a){tn_f(1==this.args.length);return new tn_t(this.args[0].evaluate(a).booleanValue())},not:function(a){tn_f(1==this.args.length);a=!this.args[0].evaluate(a).booleanValue();return new tn_t(a)},"true":function(){tn_f(0==this.args.length);return new tn_t(!0)},"false":function(){tn_f(0==this.args.length);return new tn_t(!1)},lang:function(a){tn_f(1==
this.args.length);var b=this.args[0].evaluate(a).stringValue(),c;for(a=a.node;a&&a!=a.parentNode&&!(c=a.getAttribute("xml:lang"));)a=a.parentNode;return c?(b=new RegExp("^"+b+"$","i"),new tn_t(b.test(c)||b.test(c.replace(/_.*$/,"")))):new tn_t(!1)},number:function(a){tn_f(1==this.args.length||0==this.args.length);return 1==this.args.length?new tn_u(this.args[0].evaluate(a).numberValue()):new tn_u((new tn_v([a.node])).numberValue())},sum:function(a){tn_f(1==this.args.length);a=this.args[0].evaluate(a).nodeSetValue();
for(var b=0,c=0;c<a.length;++c)b+=tn_j(a[c])-0;return new tn_u(b)},floor:function(a){tn_f(1==this.args.length);a=this.args[0].evaluate(a).numberValue();return new tn_u(Math.floor(a))},ceiling:function(a){tn_f(1==this.args.length);a=this.args[0].evaluate(a).numberValue();return new tn_u(Math.ceil(a))},round:function(a){tn_f(1==this.args.length);a=this.args[0].evaluate(a).numberValue();return new tn_u(Math.round(a))},"ext-join":function(a){tn_f(2==this.args.length);var b=this.args[0].evaluate(a).nodeSetValue();
a=this.args[1].evaluate(a).stringValue();for(var c="",d=0;d<b.length;++d)c&&(c+=a),c+=tn_j(b[d]);return new tn_s(c)},"ext-if":function(a){tn_f(3==this.args.length);return this.args[0].evaluate(a).booleanValue()?this.args[1].evaluate(a):this.args[2].evaluate(a)},"ext-cardinal":function(a){tn_f(1<=this.args.length);for(var b=this.args[0].evaluate(a).numberValue(),c=[],d=0;d<b;++d)c.push(a.node);return new tn_v(c)}};function tn_rb(a,b){this.expr1=a;this.expr2=b}
tn_rb.prototype.evaluate=function(a){var b=this.expr1.evaluate(a).nodeSetValue();a=this.expr2.evaluate(a).nodeSetValue();for(var c=b.length,d=0;d<a.length;++d){for(var e=a[d],f=!1,g=0;g<c;++g)b[g]==e&&(f=!0,g=c);f||b.push(e)}return new tn_v(b)};function tn_sb(a,b){this.filter=a;this.rel=b}tn_sb.prototype.evaluate=function(a){for(var b=this.filter.evaluate(a).nodeSetValue(),c=[],d=0;d<b.length;++d)for(var e=this.rel.evaluate(a.clone(b[d],d,b)).nodeSetValue(),f=0;f<e.length;++f)c.push(e[f]);return new tn_v(c)};
function tn_tb(a,b){this.expr=a;this.predicate=b}tn_tb.prototype.evaluate=function(a){for(var b=this.expr.evaluate(a).nodeSetValue(),c=0;c<this.predicate.length;++c){var d=b;b=[];for(var e=0;e<d.length;++e){var f=d[e];this.predicate[c].evaluate(a.clone(f,e,d)).booleanValue()&&b.push(f)}}return new tn_v(b)};function tn_ub(a){this.expr=a}tn_ub.prototype.evaluate=function(a){return new tn_u(-this.expr.evaluate(a).numberValue())};function tn_vb(a,b,c){this.expr1=a;this.expr2=c;this.op=b}
tn_vb.prototype.evaluate=function(a){switch(this.op.value){case "or":var b=new tn_t(this.expr1.evaluate(a).booleanValue()||this.expr2.evaluate(a).booleanValue());break;case "and":b=new tn_t(this.expr1.evaluate(a).booleanValue()&&this.expr2.evaluate(a).booleanValue());break;case "+":b=new tn_u(this.expr1.evaluate(a).numberValue()+this.expr2.evaluate(a).numberValue());break;case "-":b=new tn_u(this.expr1.evaluate(a).numberValue()-this.expr2.evaluate(a).numberValue());break;case "*":b=new tn_u(this.expr1.evaluate(a).numberValue()*
this.expr2.evaluate(a).numberValue());break;case "mod":b=new tn_u(this.expr1.evaluate(a).numberValue()%this.expr2.evaluate(a).numberValue());break;case "div":b=new tn_u(this.expr1.evaluate(a).numberValue()/this.expr2.evaluate(a).numberValue());break;case "=":b=this.compare(a,function(a,b){return a==b});break;case "!=":b=this.compare(a,function(a,b){return a!=b});break;case "<":b=this.compare(a,function(a,b){return a<b});break;case "<=":b=this.compare(a,function(a,b){return a<=b});break;case ">":b=
this.compare(a,function(a,b){return a>b});break;case ">=":b=this.compare(a,function(a,b){return a>=b});break;default:tn_g("BinaryExpr.evaluate: "+this.op.value)}return b};
tn_vb.prototype.compare=function(a,b){var c=this.expr1.evaluate(a);a=this.expr2.evaluate(a);if("node-set"==c.type&&"node-set"==a.type){c=c.nodeSetValue();var d=a.nodeSetValue();a=!1;for(var e=0;e<c.length;++e)for(var f=0;f<d.length;++f)b(tn_j(c[e]),tn_j(d[f]))&&(a=!0,f=d.length,e=c.length)}else if("node-set"==c.type||"node-set"==a.type)if("number"==c.type)for(c=c.numberValue(),d=a.nodeSetValue(),a=!1,e=0;e<d.length;++e){if(f=tn_j(d[e])-0,b(c,f)){a=!0;break}}else if("number"==a.type)for(d=c.nodeSetValue(),
c=a.numberValue(),a=!1,e=0;e<d.length;++e){if(f=tn_j(d[e])-0,b(f,c)){a=!0;break}}else if("string"==c.type)for(c=c.stringValue(),d=a.nodeSetValue(),a=!1,e=0;e<d.length;++e){if(f=tn_j(d[e]),b(c,f)){a=!0;break}}else if("string"==a.type)for(d=c.nodeSetValue(),c=a.stringValue(),a=!1,e=0;e<d.length;++e){if(f=tn_j(d[e]),b(f,c)){a=!0;break}}else a=b(c.booleanValue(),a.booleanValue());else a="boolean"==c.type||"boolean"==a.type?b(c.booleanValue(),a.booleanValue()):"number"==c.type||"number"==a.type?b(c.numberValue(),
a.numberValue()):b(c.stringValue(),a.stringValue());return new tn_t(!!a)};function tn_wb(a){this.value=a}tn_wb.prototype.evaluate=function(){return new tn_s(this.value)};function tn_xb(a){this.value=a}tn_xb.prototype.evaluate=function(){return new tn_u(this.value)};function tn_yb(a){this.name=a}tn_yb.prototype.evaluate=function(a){return a.getVariable(this.name)};function tn_x(a){return a}function tn_zb(a,b){b.absolute=!0;return b}
function tn_Ab(a,b){b.absolute=!0;b.prependStep(tn_y(a.value));return b}function tn_Bb(){var a=new tn_m;a.appendStep(tn_y("."));a.absolute=!0;return a}function tn_Cb(a){var b=new tn_m;b.absolute=!0;b.appendStep(tn_y(a.value));return b}function tn_Db(a){var b=new tn_m;b.appendStep(a);return b}function tn_Eb(a,b,c){a.appendStep(c);return a}function tn_Fb(a,b){a.appendStep(tn_y(b.value));return a}function tn_Gb(a,b,c){b=new tn_m;b.rootExpr=a;b.appendStep(c);return b}
function tn_Hb(a){return tn_y(a.value)}function tn_Ib(a){return tn_y(a.value)}function tn_Jb(a,b,c){return new tn_n(a.value,c)}function tn_Kb(a,b){return new tn_n("attribute",b)}function tn_Lb(a){return new tn_n("child",a)}function tn_Mb(a,b){a.appendPredicate(b);return a}function tn_y(a){switch(a){case "//":return new tn_n("descendant-or-self",new tn_jb);case ".":return new tn_n("self",new tn_jb);case "..":return new tn_n("parent",new tn_jb)}}function tn_Nb(){return new tn_kb}
function tn_Ob(a){return new tn_ob(a.value)}function tn_Pb(a){return new tn_1a(a.value)}function tn_Qb(a){a=a.value.replace(/\s*\($/,"");switch(a){case "node":return new tn_jb;case "text":return new tn_lb;case "comment":return new tn_mb;case "processing-instruction":return new tn_nb("")}}function tn_Rb(a,b){a=a.replace(/\s*\($/,"");"processing-instruction"!=a&&tn_g(a);return new tn_nb(b.value)}function tn_Sb(a,b){return new tn_pb(b)}function tn_Tb(a,b){return b}
function tn_Ub(a){return new tn_qb(a)}function tn_Vb(a,b,c,d){a=new tn_qb(a);a.appendArg(c);for(c=0;c<d.length;++c)a.appendArg(d[c]);return a}function tn_Wb(a,b){return b}function tn_Xb(a,b,c){return new tn_rb(a,c)}function tn_Yb(a,b,c){return new tn_sb(a,c)}function tn_Zb(a,b,c){c.prependStep(tn_y(b.value));return new tn_sb(a,c)}function tn__b(a,b){return 0<b.length?new tn_tb(a,b):a}function tn_0b(a,b){return new tn_ub(b)}function tn_z(a,b,c){return new tn_vb(a,b,c)}
function tn_1b(a){a=a.value.substring(1,a.value.length-1);return new tn_wb(a)}function tn_2b(a){return new tn_xb(a.value)}function tn_3b(a,b){return new tn_yb(b.value)}function tn_0a(a){if("$"==a.charAt(0))return new tn_yb(a.substr(1));if("@"==a.charAt(0)){a=new tn_1a(a.substr(1));a=new tn_n("attribute",a);var b=new tn_m;b.appendStep(a);return b}if(a.match(/^[0-9]+$/))return new tn_xb(a);a=new tn_1a(a);a=new tn_n("child",a);b=new tn_m;b.appendStep(a);return b}
var tn_w={ANCESTOR_OR_SELF:"ancestor-or-self",ANCESTOR:"ancestor",ATTRIBUTE:"attribute",CHILD:"child",DESCENDANT_OR_SELF:"descendant-or-self",DESCENDANT:"descendant",FOLLOWING_SIBLING:"following-sibling",FOLLOWING:"following",NAMESPACE:"namespace",PARENT:"parent",PRECEDING_SIBLING:"preceding-sibling",PRECEDING:"preceding",SELF:"self"},tn_4b=[tn_w.ANCESTOR_OR_SELF,tn_w.ANCESTOR,tn_w.ATTRIBUTE,tn_w.CHILD,tn_w.DESCENDANT_OR_SELF,tn_w.DESCENDANT,tn_w.FOLLOWING_SIBLING,tn_w.FOLLOWING,tn_w.NAMESPACE,tn_w.PARENT,
tn_w.PRECEDING_SIBLING,tn_w.PRECEDING,tn_w.SELF].join("|"),tn_5b={label:"|",prec:17,re:/^\|/},tn_o={label:"//",prec:19,re:/^\/\//},tn_p={label:"/",prec:30,re:/^\//},tn_8a={label:"::",prec:20,re:/^::/},tn_6b={label:":",prec:1E3,re:/^:/},tn_7b={label:"[axis]",re:new RegExp("^("+tn_4b+")")},tn_8b={label:"(",prec:34,re:/^\(/},tn_A={label:")",re:/^\)/},tn_9b={label:"..",prec:34,re:/^\.\./},tn_$b={label:".",prec:34,re:/^\./},tn_7a={label:"@",prec:34,re:/^@/},tn_ac={label:",",re:/^,/},tn_6a={label:"or",
prec:10,re:/^or\b/},tn_5a={label:"and",prec:11,re:/^and\b/},tn_bc={label:"=",prec:12,re:/^=/},tn_cc={label:"!=",prec:12,re:/^!=/},tn_dc={label:">=",prec:13,re:/^>=/},tn_ec={label:">",prec:13,re:/^>/},tn_fc={label:"<=",prec:13,re:/^<=/},tn_gc={label:"<",prec:13,re:/^</},tn_hc={label:"+",prec:14,re:/^\+/,left:!0},tn_ic={label:"-",prec:14,re:/^\-/,left:!0},tn_3a={label:"div",prec:15,re:/^div\b/,left:!0},tn_4a={label:"mod",prec:15,re:/^mod\b/,left:!0},tn_jc={label:"[",prec:32,re:/^\[/},tn_kc={label:"]",
re:/^\]/},tn_9a={label:"$",re:/^\$/},tn_lc={label:"[ncname]",re:new RegExp("^"+tn_Ca)},tn_mc={label:"*",prec:15,re:/^\*/,left:!0},tn_nc={label:"[litq]",prec:20,re:/^'[^\']*'/},tn_oc={label:"[litqq]",prec:20,re:/^"[^\"]*"/},tn_pc={label:"[number]",prec:35,re:/^\d+(\.\d*)?/},tn_q={label:"[qname]",re:new RegExp("^("+tn_Ca+":)?"+tn_Ca)},tn_qc={label:"[nodetest-start]",re:/^(processing-instruction|comment|text|node)\(/},tn_2a=[tn_o,tn_p,tn_9b,tn_$b,tn_8a,tn_6b,tn_7b,tn_qc,tn_8b,tn_A,tn_jc,tn_kc,tn_7a,
tn_ac,tn_6a,tn_5a,tn_cc,tn_bc,tn_dc,tn_ec,tn_fc,tn_gc,tn_hc,tn_ic,tn_mc,tn_5b,tn_4a,tn_3a,tn_nc,tn_oc,tn_pc,tn_q,tn_lc,tn_9a],tn_rc={label:"LocationPath"},tn_B={label:"RelativeLocationPath"},tn_C={label:"AbsoluteLocationPath"},tn_D={label:"Step"},tn_E={label:"NodeTest"},tn_sc={label:"Predicate"},tn_tc={label:"Literal"},tn_F={label:"Expr"},tn_G={label:"PrimaryExpr"},tn_uc={label:"Variablereference"},tn_vc={label:"Number"},tn_wc={label:"FunctionCall"},tn_xc={label:"ArgumentRemainder"},tn_H={label:"PathExpr"},
tn_yc={label:"UnionExpr"},tn_zc={label:"FilterExpr"},tn_Ac={label:"Digits"},tn_Bc=[tn_rc,tn_B,tn_C,tn_D,tn_E,tn_sc,tn_tc,tn_F,tn_G,tn_uc,tn_vc,tn_wc,tn_xc,tn_H,tn_yc,tn_zc,tn_Ac],tn_eb={label:"?"},tn_db={label:"*"},tn_fb={label:"+"},tn_Cc=[[tn_rc,[tn_B],18,tn_x],[tn_rc,[tn_C],18,tn_x],[tn_C,[tn_p,tn_B],18,tn_zb],[tn_C,[tn_o,tn_B],18,tn_Ab],[tn_C,[tn_p],0,tn_Bb],[tn_C,[tn_o],0,tn_Cb],[tn_B,[tn_D],31,tn_Db],[tn_B,[tn_B,tn_p,tn_D],31,tn_Eb],[tn_B,[tn_B,tn_o,tn_D],31,tn_Fb],[tn_B,[tn_G,tn_p,tn_D],31,
tn_Gb],[tn_D,[tn_$b],33,tn_Hb],[tn_D,[tn_9b],33,tn_Ib],[tn_D,[tn_7b,tn_8a,tn_E],33,tn_Jb],[tn_D,[tn_7a,tn_E],33,tn_Kb],[tn_D,[tn_E],33,tn_Lb],[tn_D,[tn_D,tn_sc],33,tn_Mb],[tn_E,[tn_mc],33,tn_Nb],[tn_E,[tn_lc,tn_6b,tn_mc],33,tn_Ob],[tn_E,[tn_q],33,tn_Pb],[tn_E,[tn_qc,tn_A],33,tn_Qb],[tn_E,[tn_qc,tn_tc,tn_A],33,tn_Rb],[tn_sc,[tn_jc,tn_F,tn_kc],33,tn_Sb],[tn_G,[tn_uc],33,tn_x],[tn_G,[tn_8b,tn_F,tn_A],33,tn_Tb],[tn_G,[tn_tc],30,tn_x],[tn_G,[tn_vc],30,tn_x],[tn_G,[tn_wc],30,tn_x],[tn_wc,[tn_q,tn_8b,tn_A],
-1,tn_Ub],[tn_wc,[tn_q,tn_8b,tn_F,tn_xc,tn_db,tn_A],-1,tn_Vb],[tn_xc,[tn_ac,tn_F],-1,tn_Wb],[tn_yc,[tn_H],20,tn_x],[tn_yc,[tn_yc,tn_5b,tn_H],20,tn_Xb],[tn_H,[tn_rc],20,tn_x],[tn_H,[tn_zc],19,tn_x],[tn_H,[tn_zc,tn_p,tn_B],20,tn_Yb],[tn_H,[tn_zc,tn_o,tn_B],20,tn_Zb],[tn_zc,[tn_G,tn_sc,tn_db],20,tn__b],[tn_F,[tn_G],16,tn_x],[tn_F,[tn_yc],16,tn_x],[tn_F,[tn_ic,tn_F],-1,tn_0b],[tn_F,[tn_F,tn_6a,tn_F],-1,tn_z],[tn_F,[tn_F,tn_5a,tn_F],-1,tn_z],[tn_F,[tn_F,tn_bc,tn_F],-1,tn_z],[tn_F,[tn_F,tn_cc,tn_F],-1,
tn_z],[tn_F,[tn_F,tn_gc,tn_F],-1,tn_z],[tn_F,[tn_F,tn_fc,tn_F],-1,tn_z],[tn_F,[tn_F,tn_ec,tn_F],-1,tn_z],[tn_F,[tn_F,tn_dc,tn_F],-1,tn_z],[tn_F,[tn_F,tn_hc,tn_F],-1,tn_z,!0],[tn_F,[tn_F,tn_ic,tn_F],-1,tn_z,!0],[tn_F,[tn_F,tn_mc,tn_F],-1,tn_z,!0],[tn_F,[tn_F,tn_3a,tn_F],-1,tn_z,!0],[tn_F,[tn_F,tn_4a,tn_F],-1,tn_z,!0],[tn_tc,[tn_nc],-1,tn_1b],[tn_tc,[tn_oc],-1,tn_1b],[tn_vc,[tn_pc],-1,tn_2b],[tn_uc,[tn_9a,tn_q],200,tn_3b]],tn_r=[];
function tn_Za(){function a(a,b,c){a[b]||(a[b]=[]);a[b].push(c)}if(!tn_r.length){tn_Cc.sort(function(a,b){a=a[1].length;b=b[1].length;return a<b?1:a>b?-1:0});for(var b=1,c=0;c<tn_Bc.length;++c)tn_Bc[c].key=b++;for(c=0;c<tn_2a.length;++c)tn_2a[c].key=b++;for(c=0;c<tn_Cc.length;++c){b=tn_Cc[c];for(var d=b[1],e=d.length-1;0<=e;--e)if(d[e]==tn_fb){a(tn_r,d[e-1].key,b);break}else if(d[e]==tn_db||d[e]==tn_eb)a(tn_r,d[e-1].key,b),--e;else{a(tn_r,d[e].key,b);break}}tn_Ea(tn_r,function(){})}}
function tn_hb(a,b){for(b=b.firstChild;b;b=b.nextSibling)a.push(b),tn_hb(a,b)}function tn_ib(a,b){for(b=b.lastChild;b;b=b.previousSibling)a.push(b),tn_ib(a,b)}
function tn_Ya(a,b){if(0!=b.length){for(var c=[],d=0;d<a.nodelist.length;++d){var e=a.nodelist[d],f={node:e,key:[]};e=a.clone(e,0,[e]);for(var g=0;g<b.length;++g){var n=b[g],l=n.expr.evaluate(e),m;"text"==n.type?m=l.stringValue():"number"==n.type&&(m=l.numberValue());f.key.push({value:m,order:n.order})}f.key.push({value:d,order:"ascending"});c.push(f)}c.sort(tn_Dc);b=[];for(d=0;d<c.length;++d)b.push(c[d].node);a.nodelist=b;a.setNode(0)}}
function tn_Dc(a,b){for(var c=0;c<a.key.length;++c){var d="descending"==a.key[c].order?-1:1;if(a.key[c].value>b.key[c].value)return 1*d;if(a.key[c].value<b.key[c].value)return-1*d}return 0}function tn_I(a,b){a=tn_Xa(a);return b=a.evaluate(b)};function tn_Ec(a,b){var c=(new tn_Sa).createDocumentFragment();tn_Fc(new tn_l(a,b),b,c);return a=tn_Ia(c)}
function tn_Fc(a,b,c){var d=9==c.nodeType?c:c.ownerDocument;var e=b.nodeName.split(/:/);if(1==e.length||"xsl"!=e[0])if(3==b.nodeType)tn_Gc(b)&&(d=d.createTextNode(b.nodeValue),c.appendChild(d));else if(1==b.nodeType){d=d.createElement(b.nodeName);for(e=0;e<b.attributes.length;++e){var f=b.attributes[e];if(f){var g=f.nodeName;f=tn_Hc(f.nodeValue,a);d.setAttribute(g,f)}}c.appendChild(d);tn_J(a,b,d)}else tn_J(a,b,c);else switch(e[1]){case "apply-imports":alert("not implemented: "+e[1]);break;case "apply-templates":e=
(e=tn_K(b,"select"))?tn_I(e,a).nodeSetValue():a.node.childNodes;a=a.clone(e[0],0,e);tn_Ic(a,b);tn_Jc(a,b);f=tn_K(b,"mode");d=b.ownerDocument.documentElement;e=[];for(b=0;b<d.childNodes.length;++b)g=d.childNodes[b],1==g.nodeType&&"xsl:template"==g.nodeName&&g.getAttribute("mode")==f&&e.push(g);for(d=0;d<a.nodelist.length;++d)for(g=a.nodelist[d],b=0;b<e.length;++b)tn_Fc(a.clone(g,d),e[b],c);break;case "attribute":e=tn_K(b,"name");e=tn_Hc(e,a);g=d.createDocumentFragment();tn_J(a,b,g);b=tn_j(g);c.setAttribute(e,
b);break;case "attribute-set":alert("not implemented: "+e[1]);break;case "call-template":e=tn_K(b,"name");d=b.ownerDocument.documentElement;a=a.clone();tn_Ic(a,b);for(b=0;b<d.childNodes.length;++b)if(g=d.childNodes[b],1==g.nodeType&&"xsl:template"==g.nodeName&&g.getAttribute("name")==e){tn_J(a,g,c);break}break;case "choose":for(d=0;d<b.childNodes.length;++d)if(e=b.childNodes[d],1==e.nodeType)if("xsl:when"==e.nodeName){if(g=tn_K(e,"test"),tn_I(g,a).booleanValue()){tn_J(a,e,c);break}}else if("xsl:otherwise"==
e.nodeName){tn_J(a,e,c);break}break;case "comment":g=d.createDocumentFragment();tn_J(a,b,g);b=tn_j(g);b=d.createComment(b);c.appendChild(b);break;case "copy":(g=tn_Kc(c,a.node,d))&&tn_J(a,b,g);break;case "copy-of":e=tn_K(b,"select");b=tn_I(e,a);if("node-set"==b.type)for(e=b.nodeSetValue(),b=0;b<e.length;++b)tn_Lc(c,e[b],d);else b=b.stringValue(),g=d.createTextNode(b),c.appendChild(g);break;case "decimal-format":alert("not implemented: "+e[1]);break;case "element":e=tn_K(b,"name");e=tn_Hc(e,a);g=d.createElement(e);
c.appendChild(g);tn_J(a,b,g);break;case "fallback":alert("not implemented: "+e[1]);break;case "for-each":d=tn_K(b,"select");d=tn_I(d,a).nodeSetValue();a=a.clone(d[0],0,d);tn_Jc(a,b);for(d=0;d<a.nodelist.length;++d)e=a.nodelist[d],tn_J(a.clone(e,d),b,c);break;case "if":d=tn_K(b,"test");d=tn_I(d,a);null!=d&&d.booleanValue()&&tn_J(a,b,c);break;case "import":alert("not implemented: "+e[1]);break;case "include":alert("not implemented: "+e[1]);break;case "key":alert("not implemented: "+e[1]);break;case "message":alert("not implemented: "+
e[1]);break;case "namespace-alias":alert("not implemented: "+e[1]);break;case "number":alert("not implemented: "+e[1]);break;case "otherwise":alert("error if here: "+e[1]);break;case "output":break;case "preserve-space":break;case "processing-instruction":alert("not implemented: "+e[1]);break;case "sort":break;case "strip-space":alert("not implemented: "+e[1]);break;case "stylesheet":case "transform":tn_J(a,b,c);break;case "template":if(d=e=tn_K(b,"match")){d=a;e=tn_Xa(e);if(e.steps&&!e.absolute&&
1==e.steps.length&&"child"==e.steps[0].axis&&0==e.steps[0].predicate.length)g=e.steps[0].nodetest.evaluate(d).booleanValue();else for(g=!1,f=d.node;!g&&f;){for(var n=e.evaluate(d.clone(f,0,[f])).nodeSetValue(),l=0;l<n.length;++l)if(n[l]==d.node){g=!0;break}f=f.parentNode}d=g}d&&tn_J(a,b,c);break;case "text":b=tn_j(b);g=d.createTextNode(b);c.appendChild(g);break;case "value-of":e=tn_K(b,"select");b=tn_I(e,a).stringValue();g=d.createTextNode(b);c.appendChild(g);break;case "param":tn_Mc(a,b,!1);break;
case "variable":tn_Mc(a,b,!0);break;case "when":alert("error if here: "+e[1]);break;case "with-param":alert("error if here: "+e[1]);break;default:alert("error if here: "+e[1])}}function tn_Ic(a,b){for(var c=0;c<b.childNodes.length;++c){var d=b.childNodes[c];1==d.nodeType&&"xsl:with-param"==d.nodeName&&tn_Mc(a,d,!0)}}
function tn_Jc(a,b){for(var c=[],d=0;d<b.childNodes.length;++d){var e=b.childNodes[d];if(1==e.nodeType&&"xsl:sort"==e.nodeName){var f=tn_K(e,"select");f=tn_Xa(f);var g=tn_K(e,"data-type")||"text";e=tn_K(e,"order")||"ascending";c.push({expr:f,type:g,order:e})}}tn_Ya(a,c)}function tn_Mc(a,b,c){var d=tn_K(b,"name"),e=tn_K(b,"select");0<b.childNodes.length?(e=b.ownerDocument.createDocumentFragment(),tn_J(a,b,e),b=new tn_v([e])):b=e?tn_I(e,a):new tn_s("");!c&&a.getVariable(d)||a.setVariable(d,b)}
function tn_J(a,b,c){a=a.clone();for(var d=0;d<b.childNodes.length;++d)tn_Fc(a,b.childNodes[d],c)}function tn_Gc(a){if(!a.nodeValue.match(/^\s*$/))return!0;a=a.parentNode;if("xsl:text"==a.nodeName)return!0;for(;a&&1==a.nodeType;){var b=a.getAttribute("xml:space");if(b)if("default"==b)break;else if("preserve"==b)return!0;a=a.parentNode}return!1}
function tn_Hc(a,b){var c=tn_h(a,"{");if(1==c.length)return a;a="";for(var d=0;d<c.length;++d){var e=tn_h(c[d],"}");if(2!=e.length)a+=c[d];else{var f=tn_I(e[0],b).stringValue();a+=f+e[1]}}return a}function tn_K(a,b){return(a=a.getAttribute(b))?tn_Ma(a):a}
function tn_Lc(a,b,c){if(11==b.nodeType||9==b.nodeType)for(var d=0;d<b.childNodes.length;++d)tn_Lc(a,b.childNodes[d],c);else if(a=tn_Kc(a,b,c)){for(d=0;d<b.attributes.length;++d)tn_Lc(a,b.attributes[d],c);for(d=0;d<b.childNodes.length;++d)tn_Lc(a,b.childNodes[d],c)}}
function tn_Kc(a,b,c){if(1==b.nodeType)return b=c.createElement(b.nodeName),a.appendChild(b),b;3==b.nodeType?(b=c.createTextNode(b.nodeValue),a.appendChild(b)):4==b.nodeType?(b=c.createCDATASection(b.nodeValue),a.appendChild(b)):8==b.nodeType?(b=c.createComment(b.nodeValue),a.appendChild(b)):2==b.nodeType&&a.setAttribute(b.nodeName,b.nodeValue);return null};window.nxslProcess=tn_Ua;window.xmlParse=tn_Ra;window.xsltProcess=tn_Ec;window.xmlText=tn_Ia;window.xmlImportNode=tn_i;var tn_Nc="http://www.gstatic.com/translate/infowindow/";function tn_Oc(){return tn_Nc+"transparent.png"};function tn_L(a,b,c,d,e,f){var g=((b?b.ownerDocument:null)||document).createElement(a);c&&tn_M(g,c);d&&tn_Pc(g,d);g.style.display="none";b&&!e&&(b.appendChild(g),b.windo&&(g.windo=b.windo));f||window.setTimeout(function(){g.style.display=""},0);return g}function tn_Qc(a,b){a=((b?b.ownerDocument:null)||document).createTextNode(a);b&&b.appendChild(a);return a}function tn_N(a){return tn_O(a)+"px"}function tn_M(a,b){a=a.style;a.position="absolute";a.left=tn_N(b.x);a.top=tn_N(b.y)}
function tn_Pc(a,b){a=a.style;a.width=tn_N(b.width);a.height=tn_N(b.height)}function tn_P(a,b){a.style.width=tn_N(b)}function tn_Q(a,b){a.style.height=tn_N(b)}function tn_R(a){a.style.display="none"}function tn_S(a){a.style.display=""}function tn_T(a){a.style.visibility="hidden"}var tn_Rc=Math.min,tn_U=Math.max,tn_O=Math.round;function tn_V(a,b){try{a.style.cursor=b}catch(c){"pointer"==b&&tn_V(a,"hand")}}
function tn_Sc(a){var b=a,c="gmnoscreen",d=b.className?""+b.className:"";if(d&&-1!=d.indexOf(c)){d=d.split(/\s+/);for(var e=0;e<d.length;++e)d[e]==c&&d.splice(e--,1);b.className=d.join(" ")}b="gmnoprint";if(c=a.className?""+a.className:""){c=c.split(/\s+/);d=!1;for(e=0;e<c.length;++e)if(c[e]==b){d=!0;break}d||c.push(b);a.className=c.join(" ")}else a.className=b}function tn_Tc(a,b,c){return window.setTimeout(function(){b.apply(a)},c)}
function tn_W(a){a.parentNode&&(a.parentNode.removeChild(a),tn_Ta(a,tn_Uc))}function tn_Vc(a,b){for(var c=a.length,d=0;d<c;++d)b(a[d],d)}function tn_Wc(a,b,c){for(var d in a)(c||!a.hasOwnProperty||a.hasOwnProperty(d))&&b(d,a[d])}function tn_Xc(a,b,c,d){c=c||0;for(d=d||b.length;c<d;++c)a.push(b[c])}function tn_Yc(){return!1}
function tn_X(a,b){var c=(a?a.ownerDocument:null)||document;if(a.currentStyle)return b=tn_Zc(b),a.currentStyle[b];if(c.defaultView&&c.defaultView.getComputedStyle)return(a=c.defaultView.getComputedStyle(a,""))?a.getPropertyValue(b):"";b=tn_Zc(b);return a.style[b]}
function tn__c(a,b,c){b=c?c:tn_X(a,b);if("number"==typeof b||isNaN(parseInt(b,10)))return b;if(2<b.length&&"px"==b.substring(b.length-2))return parseInt(b,10);(c=a.ownerDocument.getElementById("__mapsBaseCssDummy__"))?a.parentNode.appendChild(c):(c=tn_L("div",a,new tn_c(0,0),new tn_Y(0,0)),c.id="__mapsBaseCssDummy__",tn_T(c));c.style.width="0px";c.style.width=b;return c.offsetWidth}function tn_Z(a){return new tn_Y(tn_0c(a,"border-left-width"),tn_0c(a,"border-top-width"))}
function tn_0c(a,b){var c=tn_X(a,b);return isNaN(parseInt(c,10))?0:tn__c(a,b,c)}function tn_Zc(a){return a.replace(/-(\w)/g,function(a,c){return(""+c).toUpperCase()})}function tn_1c(a){var b=!1;a&&"object"==typeof a&&(b="function"==typeof Window?a instanceof Window:"object"==typeof a.navigator&&"object"==typeof a.history&&"object"==typeof a.document);return a=b?a:a&&a.windo?a.windo:window};function tn_2c(a,b,c){tn_3c([a],function(a){b(a[0])},c)}
function tn_3c(a,b,c){c=c||screen.width;var d=tn_L("div",window.document.body,new tn_c(-screen.width,-screen.height),new tn_Y(c,screen.height)),e=[];for(c=0;c<a.length;c++){var f=tn_L("div",d,tn_c.ORIGIN);f.appendChild(a[c]);e.push(f)}window.setTimeout(function(){for(var c=[],f=new tn_Y(0,0),l=0;l<e.length;l++){var m=e[l],h=new tn_Y(m.offsetWidth,m.offsetHeight);c.push(h);m.removeChild(a[l]);tn_W(m);f.width=tn_U(f.width,h.width);f.height=tn_U(f.height,h.height)}tn_W(d);e=null;b(c,f)},0)};function tn_4c(a,b,c,d,e,f,g){e&&1==tn__.type?(b=tn_L("div",b,c,d),b.style.overflow="hidden",d&&f&&(b.sizingMethod="scale"),d=tn_L("img",b),tn_T(d),tn_5c(d,tn_6c,tn_7c)):(b=tn_L("img",b,c,d),g&&tn_5c(b,tn_6c,tn_8c));g&&(b.hideAndTrackLoading=!0);g=b;tn__.isGeckoBased()?g.style.MozUserSelect="none":(g.unselectable="on",g.onselectstart=tn_Yc);1==tn__.type&&(b.galleryImg="no");b.style.border=tn_N(0);b.style.padding=tn_N(0);b.style.margin=tn_N(0);b.oncontextmenu=tn_9c;g=b;"DIV"==g.tagName?(g.firstChild.src=
a,g.src=a,g.hideAndTrackLoading&&(g.style.filter="",g.loaded=!1)):g.hideAndTrackLoading&&a!=tn_Oc()?(a!=tn_Oc()?(g.loaded=!1,g.pendingSrc=a):g.pendingSrc=null,g.src=tn_Oc()):g.src=a;return b}function tn_7c(){var a=this.parentNode;a.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod="+(a.sizingMethod?a.sizingMethod:"crop")+',src="'+this.src+'")';a.hideAndTrackLoading&&(a.loaded=!0)}
function tn_8c(){var a=this;a.src==tn_Oc()&&a.pendingSrc?(a.src=a.pendingSrc,a.pendingSrc=null):a.loaded=!0};var tn_$c="dblclick",tn_6c="load",tn_ad="unload",tn_bd="clearlisteners";var tn_cd=!1;function tn_0(){this.listeners_=[]}function tn_dd(){}tn_0.instance=function(a){a||(a=window);a.gEventListenerPool||(a.gEventListenerPool=new tn_0);return a.gEventListenerPool};tn_0.remove=function(a){tn_0.instance(tn_1c(a)).remove_(a)};tn_0.prototype.remove_=function(a){var b=this.listeners_.pop(),c=a.index_;c<this.listeners_.length&&(this.listeners_[c]=b,b.setIndex_(c));a.setIndex_(-1)};tn_0.push=function(a){tn_0.instance(tn_1c(a)).push_(a)};
tn_0.prototype.push_=function(a){this.listeners_.push(a);a.setIndex_(this.listeners_.length-1)};tn_0.prototype.clear=function(){for(var a=0;a<this.listeners_.length;++a)this.listeners_[a].setIndex_(-1);this.listeners_=[]};function tn_ed(a,b,c){a=new EventListener(a,b,c,0);tn_0.push(a);return a}function tn_fd(a){a.remove();tn_0.remove(a)}function tn_Uc(a){tn_1(a,tn_bd);tn_Vc(tn_gd(a),function(a){a.remove();tn_0.remove(a)})}
function tn_gd(a,b){var c=[];(a=a.__e_)&&(b?a[b]&&tn_Xc(c,a[b]):tn_Wc(a,function(a,b){tn_Xc(c,b)}));return c}function tn_hd(a,b,c){var d=a.__e_;if(d){var e=d[b];e||(e=[],c&&(d[b]=e))}else e=[],c&&(a.__e_={},a.__e_[b]=e);return e}function tn_1(a,b,c){var d=[];tn_Xc(d,arguments,2);tn_Vc(tn_gd(a,b),function(b){if(tn_cd)b.apply(a,d);else try{b.apply(a,d)}catch(f){}})}
function tn_5c(a,b,c){3==tn__.type&&b==tn_$c?(a["on"+b]=c,c=new EventListener(a,b,c,3)):a.addEventListener?(a.addEventListener(b,c,!1),c=new EventListener(a,b,c,1)):a.attachEvent?(c=tn_id(a,c),a.attachEvent("on"+b,c),c=new EventListener(a,b,c,2)):(a["on"+b]=c,c=new EventListener(a,b,c,3));var d=tn_1c(a);a==d&&b==tn_ad||tn_0.push(c);return c}function tn_2(a,b,c,d){c=tn_jd(c,d);return tn_5c(a,b,c)}function tn_kd(a,b,c){tn_2(a,"click",b,c);1==tn__.type&&tn_2(a,tn_$c,b,c)}
function tn_jd(a,b){return function(c){c||(c=window.event);c&&!c.target&&(c.target=c.srcElement);b.call(a,c,this)}}function tn_id(a,b){return function(){return b.apply(a,arguments)}}function EventListener(a,b,c,d){tn_f(a);tn_f("function"==typeof c);var e=this;e.instance_=a;e.eventName_=b;e.handler_=c;e.registrationType_=d;e.index_=-1;c=tn_1c(a);e.windo=c;tn_hd(a,b,!0).push(e)}
EventListener.prototype.remove=function(){var a=this;switch(a.registrationType_){case 1:a.instance_.removeEventListener(a.eventName_,a.handler_,!1);break;case 2:a.instance_.detachEvent("on"+a.eventName_,a.handler_);break;case 3:a.instance_["on"+a.eventName_]=null}tn_Da(tn_hd(a.instance_,a.eventName_),a);a.instance_=null;a.handler_=null;a.remove=tn_dd;a.apply=tn_dd};EventListener.prototype.setIndex_=function(a){this.index_=a};
EventListener.prototype.apply=function(a,b){return this.handler_.apply(a,b)};EventListener.prototype.getInstance=function(){return this.instance_};function tn_ld(a){"click"==a.type&&tn_1(document,"logclick",a);1==tn__.type?(window.event.cancelBubble=!0,window.event.returnValue=!1):(a.preventDefault(),a.stopPropagation())}function tn_md(a){"click"==a.type&&tn_1(document,"logclick",a);1==tn__.type?window.event.cancelBubble=!0:a.stopPropagation()}
function tn_9c(a){1==tn__.type?window.event.returnValue=!1:a.preventDefault()};var tn_nd="opera msie chrome applewebkit firefox camino mozilla".split(" "),tn_od="x11; macintosh windows android ipad ipod iphone webos".split(" ");
function tn_3(a){this.agent=a;this.os=this.type=-1;this.revision=this.version=0;a=a.toLowerCase();for(var b=0;b<tn_nd.length;b++){var c=tn_nd[b];if(-1!=a.indexOf(c)){this.type=b;b=new RegExp(c+"[ /]?([0-9]+(.[0-9]+)?)");if(b=b.exec(a))this.version=parseFloat(b[1]);break}}6==this.type&&(b=/^Mozilla\/.*Gecko\/.*(Minefield|Shiretoko)[ /]?([0-9]+(.[0-9]+)?)/,b=b.exec(this.agent))&&(this.type=4,this.version=parseFloat(b[2]));3==this.type&&(b=/^.*Version\/?([0-9]+(.[0-9]+)?)/,b=b.exec(this.agent))&&(this.version=
parseFloat(b[1]));0==this.type&&(b=/^Opera\/9.[89].*Version\/?([0-9]+(.[0-9]+)?)/,b=b.exec(this.agent))&&(this.version=parseFloat(b[1]));for(b=0;b<tn_od.length;b++)if(c=tn_od[b],-1!=a.indexOf(c)){this.os=b;break}1==this.os?(b=/Mac OS X[ ]+([0-9]+)[\._]([0-9]+)/,b.exec(this.agent)):2==this.os&&(b=/Windows NT ([0-9]+.[0-9]+)/,b.exec(this.agent));1==this.os&&a.indexOf("intel");a=/\brv:\s*(\d+\.\d+)/.exec(a);this.isGeckoBased()&&a&&(this.revision=parseFloat(a[1]))}tn_3.EARTH_PLUGIN_MAIN_CLSID_="F9152AEC-3462-4632-8087-EEE3C3CDDA24";
tn_3.EARTH_PLUGIN_MAIN_MIMETYPE_="application/geplugin";tn_3.EARTH_GET_SELF_="getSelf";tn_3.prototype.isGeckoBased=function(){return 4==this.type||6==this.type||5==this.type};tn_3.prototype.isSafari=function(){return 3==this.type};tn_3.prototype.isOpera=function(){return 0==this.type};tn_3.OS_NAMES={};tn_3.OS_NAMES[2]="windows";tn_3.OS_NAMES[1]="macos";tn_3.OS_NAMES[0]="unix";tn_3.OS_NAMES[3]="android";tn_3.OS_NAMES[6]="iphone";tn_3.OS_NAMES[-1]="other";tn_3.BROWSER_NAMES={};
tn_3.BROWSER_NAMES[1]="ie";tn_3.BROWSER_NAMES[4]="firefox";tn_3.BROWSER_NAMES[2]="chrome";tn_3.BROWSER_NAMES[3]="safari";tn_3.BROWSER_NAMES[0]="opera";tn_3.BROWSER_NAMES[5]="camino";tn_3.BROWSER_NAMES[6]="mozilla";tn_3.BROWSER_NAMES[-1]="other";var tn__=new tn_3(navigator.userAgent);tn_c.ORIGIN=new tn_c(0,0);tn_c.prototype.toString=function(){return"("+this.x+", "+this.y+")"};tn_c.prototype.equals=function(a){return a?a.x==this.x&&a.y==this.y:!1};function tn_Y(a,b){this.width=a;this.height=b}tn_Y.ZERO=new tn_Y(0,0);tn_Y.prototype.toString=function(){return"("+this.width+", "+this.height+")"};tn_Y.prototype.equals=function(a){return a?a.width==this.width&&a.height==this.height:!1};function tn_pd(a,b){for(var c=new tn_c(0,0);a&&a!=b;){if("BODY"==a.nodeName){var d=c,e=a,f=!1;if(tn__.isGeckoBased()){f="visible"!=tn_X(e,"overflow")&&"visible"!=tn_X(e.parentNode,"overflow");var g="static"!=tn_X(e,"position");if(g||f){d.x+=tn__c(e,"margin-left");d.y+=tn__c(e,"margin-top");var n=tn_Z(e.parentNode);d.x+=n.width;d.y+=n.height}g&&(d.x+=tn__c(e,"left"),d.y+=tn__c(e,"top"))}if((tn__.isGeckoBased()||1==tn__.type)&&"BackCompat"!=document.compatMode||f)self.pageYOffset?(d.x-=self.pageXOffset,
d.y-=self.pageYOffset):(d.x-=document.documentElement.scrollLeft,d.y-=document.documentElement.scrollTop)}d=tn_Z(a);c.x+=d.width;c.y+=d.height;"BODY"==a.nodeName&&tn__.isGeckoBased()||(c.x+=a.offsetLeft,c.y+=a.offsetTop);tn__.isGeckoBased()&&1.8<=tn__.revision&&a.offsetParent&&"BODY"!=a.offsetParent.nodeName&&"visible"!=tn_X(a.offsetParent,"overflow")&&(d=tn_Z(a.offsetParent),c.x+=d.width,c.y+=d.height);a.offsetParent&&(c.x-=a.offsetParent.scrollLeft,c.y-=a.offsetParent.scrollTop);if(d=1!=tn__.type)a:{d=
a;if(d.offsetParent&&"BODY"==d.offsetParent.nodeName&&"static"==tn_X(d.offsetParent,"position"))if(0==tn__.type&&"static"!=tn_X(d,"position")){d=!0;break a}else if(0!=tn__.type&&"absolute"==tn_X(d,"position")){d=!0;break a}d=!1}if(d){tn__.isGeckoBased()&&(c.x-=self.pageXOffset,c.y-=self.pageYOffset,d=tn_Z(a.offsetParent.parentNode),c.x+=d.width,c.y+=d.height);break}3==tn__.type&&a.offsetParent&&(d=tn_Z(a.offsetParent),c.x-=d.width,c.y-=d.height);a=a.offsetParent}1==tn__.type&&!b&&document.documentElement&&
(c.x+=document.documentElement.clientLeft,c.y+=document.documentElement.clientTop);return b&&null==a?(a=tn_pd(b),new tn_c(c.x-a.x,c.y-a.y)):c}
function tn_qd(a,b){if("undefined"!=typeof a.offsetX){var c=a.target||a.srcElement;3==c.nodeType&&(c=c.parentNode);b=tn_pd(c,b);a=new tn_c(a.offsetX,a.offsetY);3==tn__.type&&(c=tn_Z(c),a.x-=c.width,a.y-=c.height);return new tn_c(b.x+a.x,b.y+a.y)}return"undefined"!=typeof a.clientX?(a=3==tn__.type?new tn_c(a.pageX-self.pageXOffset,a.pageY-self.pageYOffset):new tn_c(a.clientX,a.clientY),b=tn_pd(b),new tn_c(a.x-b.x,a.y-b.y)):tn_c.ORIGIN};function tn_rd(a){this.ticks=a;this.tick=0}tn_rd.prototype.reset=function(){this.tick=0};tn_rd.prototype.next=function(){this.tick++;var a=Math.PI*(this.tick/this.ticks-.5);return(Math.sin(a)+1)/2};tn_rd.prototype.more=function(){return this.tick<this.ticks};tn_rd.prototype.extend=function(){this.tick>this.ticks/3&&(this.tick=tn_O(this.ticks/3))};var tn_sd=!1;function tn_td(a,b,c){this.name=a;if("string"==typeof b){var d=a=tn_L("div",null);if(d.innerHTML!=b){for(var e=d,f;f=e.firstChild;)tn_Ta(f,tn_Uc),e.removeChild(f);d.innerHTML=b}b=a}this.contentElem=b;b.style.zIndex=9500;this.onclick=c}
function tn_ud(){this.rectPosition_=new Rect(0,0,0,0);this.pixelOffset_=tn_Y.ZERO;this.tabs_=[];this.contentContainers_=[];this.tabImages_=[];this.tabShadowOverlapImages_=[];this.selectedTab_=this.totalTabWidth_=0;this.centerSize_=this.boundSize_(tn_Y.ZERO);this.images_={};this.allowBeside_=this.allowDownwards_=this.keepInBounds_=!1;this.tabPos_=new tn_c(8,8);this.interfaceDirection_="ltr"}tn_a=tn_ud.prototype;
tn_a.create=function(a,b){var c=this.images_;a=tn_vd(c,a,[["iw_n",628,6,0,0,"iw_n1"],["iw_n",628,6,0,0,"iw_n2"],["iw_w",6,598,0,0],["iw_e",6,598,0,0],["iw_s0",628,6,0,0,"iw_s1"],["iw_s0",628,6,0,0,"iw_s2"],["iw_c",628,598,0,0]]);var d=new tn_Y(6,6);tn_4(c,a,"iw_nw",d);tn_4(c,a,"iw_ne",d);tn_4(c,a,"iw_xtap",new tn_Y(32,21));tn_4(c,a,"iw_xtap_l",new tn_Y(32,21));tn_4(c,a,"iw_xtap_u",new tn_Y(32,21));tn_4(c,a,"iw_xtap_ul",new tn_Y(32,21));tn_4(c,a,"iw_xtap_rd",new tn_Y(21,32));tn_4(c,a,"iw_xtap_ld",
new tn_Y(21,32));tn_4(c,a,"iw_sw0",d,"iw_sw");tn_4(c,a,"iw_se0",d,"iw_se");tn_Sc(a);this.window_=a;d=new tn_Y(8,8);b=tn_vd(c,b,[["iws_n",628,8,0,0,"iws_n1"],["iws_n",628,8,0,0,"iws_n2"],["iws_w",8,598,0,0],["iws_e",8,598,0,0],["iws_s",628,8,0,0,"iws_s1"],["iws_s",628,8,0,0,"iws_s2"],["iws_c",628,598,0,0]]);tn_4(c,b,"iws_nw",d);tn_4(c,b,"iws_ne",d);tn_4(c,b,"iws_sw",d);tn_4(c,b,"iws_se",d);tn_4(c,b,"iws_tap",new tn_Y(37,16));tn_4(c,b,"iws_tap_l",new tn_Y(32,16));tn_4(c,b,"iws_tap_u",new tn_Y(37,26));
tn_4(c,b,"iws_tap_ul",new tn_Y(32,26));tn_4(c,b,"iws_tap_rd",new tn_Y(16,37));tn_4(c,b,"iws_tap_ld",new tn_Y(26,37));tn_4(c,b,"iws_tab_dl",new tn_Y(8,28));tn_4(c,b,"iws_tab_dr",new tn_Y(14,28));tn_4(c,b,"iws_tab_l",new tn_Y(8,28));tn_4(c,b,"iws_tab_r",new tn_Y(14,28));tn_R(c.iws_tab_dl);tn_R(c.iws_tab_dr);tn_R(c.iws_tab_l);tn_R(c.iws_tab_r);tn_Sc(b);this.shadow_=b;b=new tn_Y(14,13);d=tn_4(c,a,"close",b,"close",!0);d.style.zIndex=1E4;tn_V(d,"pointer");tn_kd(d,this,this.onCloseClick_);d=tn_4(c,a,"maximize",
b,"maximize",!0);d.style.zIndex=1E4;tn_T(d);tn_V(d,"pointer");tn_kd(d,this,this.maximize);c=tn_4(c,a,"restore",b,"restore",!0);c.style.zIndex=10001;tn_T(c);tn_V(c,"pointer");tn_kd(c,this,this.restore);tn_2(a,"mousedown",this,this.filterMouseDown_);tn_2(a,tn_$c,this,this.filterMouseDblClick_);tn_2(a,"click",this,this.filterMouseDown_);tn_2(a,"contextmenu",this,tn_md);tn_2(a,"mousewheel",this,tn_md);tn_2(a,"DOMMouseScroll",this,tn_md);this.hide()};tn_a.remove=function(){tn_W(this.shadow_);tn_W(this.window_)};
tn_a.allowMaximizeAndRestoreButtons=function(a){a?(tn_S(this.images_.maximize),tn_S(this.images_.restore)):(tn_R(this.images_.maximize),tn_R(this.images_.restore))};tn_a.showCloseButton=function(a){this.images_.close.style.visibility=a?"visible":"hidden"};tn_a.setInterfaceDirection=function(a){this.interfaceDirection_=!0===a||"rtl"===a?"rtl":"ltr"};tn_a.keepInBounds=function(a){this.keepInBounds_=a};tn_a.keepInScrollpane=function(a){this.keepInScrollpane_=a};
tn_a.allowDownwards=function(a){this.allowDownwards_=a};
tn_a.setNodePosition=function(a){if(!a.getClientRects)return this.setRectPosition(tn_fa(a));var b=this.getCenterSize(),c=this.images_,d=b.width,e=b.height,f=window.innerWidth||document.body.scrollWidth;b=document.documentElement.scrollLeft||window.scrollX||document.body.scrollLeft;var g=document.documentElement.scrollTop||window.scrollY||document.body.scrollTop,n=0,l=0;document.body.getClientRects&&(l=document.body.getClientRects(),n=b+l[0].left,l=g+l[0].top);tn_R(c.iw_xtap);tn_R(c.iw_xtap_l);tn_R(c.iw_xtap_u);
tn_R(c.iw_xtap_ul);tn_R(c.iw_xtap_ld);tn_R(c.iw_xtap_rd);tn_R(c.iws_tap);tn_R(c.iws_tap_l);tn_R(c.iws_tap_u);tn_R(c.iws_tap_ul);tn_R(c.iws_tap_ld);tn_R(c.iws_tap_rd);c=a.getClientRects();var m=Array(c.length),h=tn_fa(a);a=c[0].top-h.y;for(var k=0;k<c.length;++k){m[k]={left:c[k].left-n,right:c[k].right-n,top:c[k].top-l,bottom:c[k].bottom-l};0<k&&m[k].bottom==m[k-1].bottom&&(m[k].left==m[k-1].right?(m[k].left=m[k-1].left,m[k].top=tn_Rc(m[k].top,m[k-1].top)):m[k].right==m[k-1].left&&(m[k].right=m[k-
1].right,m[k].top=tn_Rc(m[k].top,m[k-1].top)));if(!p||m[k].left<=p.left)var p=m[k];if(!q||m[k].right>=q.right)var q=m[k];if(!t||m[k].top<=t.top)var t=m[k];if(!r||m[k].bottom>=r.bottom)var r=m[k]}if(this.allowBeside_&&21+d+6+12+q.right<f)return this.setRectPosition(new Rect(p.left+b,q.top-a,q.right-p.left,q.bottom-q.top));if(this.allowBeside_&&18+d+21<p.left)return this.setRectPosition(new Rect(p.left+b,p.top-a,q.right-p.left,p.bottom-p.top));this.allowDownwards_&&21+e+6+12+(1<this.tabs_.length?20:
0)>h.y-(this.keepInScrollpane_?g:0)?(d=this.allowBeside_,this.allowBeside_=!1,t=this.setRectPosition(new Rect(r.left+b,t.top-a,r.right-r.left,r.bottom-t.top))):(d=this.allowBeside_,this.allowBeside_=!1,t=this.setRectPosition(new Rect(t.left+b,t.top-a,t.right-t.left,r.bottom-t.top)));this.allowBeside_=d;return t};
tn_a.setRectPosition=function(a,b){var c=this.getCenterSize(),d=this.images_,e=c.width,f=c.height,g=document.body.scrollWidth,n=document.documentElement.scrollLeft||window.scrollX||document.body.scrollLeft,l=document.documentElement.scrollTop||window.scrollY||document.body.scrollTop;tn_R(d.iw_xtap);tn_R(d.iw_xtap_l);tn_R(d.iw_xtap_u);tn_R(d.iw_xtap_ul);tn_R(d.iw_xtap_ld);tn_R(d.iw_xtap_rd);tn_R(d.iws_tap);tn_R(d.iws_tap_l);tn_R(d.iws_tap_u);tn_R(d.iws_tap_ul);tn_R(d.iws_tap_ld);tn_R(d.iws_tap_rd);
var m=0;c=0;var h=0,k=this.allowBeside_;if(k&&21+e+6+12+a.x+a.w<n+g){var p=!0;f=d.iw_xtap_ld;l=d.iws_tap_ld}else if(k&&18+e+21+n<a.x){var q=!0;f=d.iw_xtap_rd;l=d.iws_tap_rd;c=5}else{if(this.allowDownwards_&&21+f+6+12+(1<this.tabs_.length?20:0)+(this.keepInScrollpane_?l:0)>a.y){f=d.iw_xtap_u;l=d.iws_tap_u;m=0;var t=!0}else f=d.iw_xtap,l=d.iws_tap,m=0;tn_O(a.x+a.w/2)+32+6+12>n+g&&(f==d.iw_xtap_u?(f=d.iw_xtap_ul,l=d.iws_tap_ul):(f=d.iw_xtap_l,l=d.iws_tap_l),c=5,m=32);var r=tn_O((e-32)/2);this.keepInBounds_&&
(r+6+12+m+n>a.x+tn_O(a.w/2)?(r=a.x+tn_O(a.w/2)-6-12-m-n,0>r&&(h=tn_Rc(-r,tn_O(a.w/2)),r=0)):a.x+tn_O(a.w/2)-m+e-r+18>n+g&&(t?(f=d.iw_xtap_ul,l=d.iws_tap_ul):(f=d.iw_xtap_l,l=d.iws_tap_l),c=5,m=32,r=a.x+tn_O(a.w/2)-m+e+6+12-g-n,r>e-32&&(h=tn_U(e-32-r,-tn_O(a.w/2)),r=e-32)));var v=e-32-r}tn_S(f);tn_S(l);this.pointerOffset_=p?0:q?6+e+21:6+r+m;b=this.pixelOffset_=b||tn_Y.ZERO;e=this.pointerOffset_-h;h=p||q?6:t?0:this.getTotalSize().height+(1<this.tabs_.length?20:0);e-=b.width;h-=b.height;b=new tn_c(a.x+
(p?a.w:q?0:a.w/2)-e,a.y+(p||q?a.h/2:t?a.h:0)-h);tn_M(this.window_,b);tn_M(this.shadow_,b);this.rectPosition_=a;this.nodePosition_=void 0;return this.position_(p,q,t,r,v,f,l,c)};
tn_a.position_=function(a,b,c,d,e,f,g,n){var l=!(a||b||c);this.tapImg_=f;this.shadowTapImg_=g;var m=this.getCenterSize(),h=this.images_,k=m.width,p=m.height,q=1<this.tabs_.length?this.totalTabWidth_:0;c?(tn_P(h.iw_n1,tn_U(d,0)),tn_P(h.iw_n2,tn_U(e,0)),tn_P(h.iw_s1,k-q),tn_P(h.iw_s2,0),tn_P(h.iws_n1,tn_U(d,0)),tn_P(h.iws_n2,tn_U(e,0)),tn_P(h.iws_s1,k-q),tn_P(h.iws_s2,0)):l?(tn_P(h.iw_n1,k-q),tn_P(h.iw_n2,0),tn_P(h.iw_s1,tn_U(d,0)),tn_P(h.iw_s2,tn_U(e,0)),tn_P(h.iws_n1,k-q),tn_P(h.iws_n2,0),tn_P(h.iws_s1,
tn_U(d,0)),tn_P(h.iws_s2,tn_U(e,0))):(tn_P(h.iw_n1,k),tn_P(h.iw_n2,0),tn_P(h.iw_s1,k-q),tn_P(h.iw_s2,0),tn_P(h.iws_n1,k),tn_P(h.iws_n2,0),tn_P(h.iws_s1,k-q),tn_P(h.iws_s2,0));tn_Pc(h.iw_c,m);a?(tn_Q(h.iw_w,tn_U(p-32,0)),tn_Q(h.iw_e,tn_U(p,32)),tn_Q(h.iws_w,tn_U(p-32,0)),tn_Q(h.iws_e,tn_U(p,32))):b?(tn_Q(h.iw_e,tn_U(p-32,0)),tn_Q(h.iw_w,tn_U(p,32)),tn_Q(h.iws_e,tn_U(p-32,0)),tn_Q(h.iws_w,tn_U(p,32))):(tn_Q(h.iw_w,p),tn_Q(h.iw_e,p),tn_Q(h.iws_w,p),tn_Q(h.iws_e,p));e=a?15:0;m=e+5-2;var t=e+6,r=t+5,v=
t+k,A=v+5,C=a?0:b?v:t+d,F=C+n,E=C+32,G=E+5;k=c?15:!a&&!b&&1<this.tabs_.length?20:0;var B=k+5-2,u=k+6,D=u+5,w=u+(a||b?tn_U(p,32):p),y=w+5;p=c||a||b?w:0;n=p+5-(c||a||b?0:2);d=c||a||b?w+6-1:0;var H=new tn_c(t,w),I=new tn_c(r,y),J=new tn_c(t,k),K=new tn_c(r,B);tn_M(h.iw_nw,new tn_c(e,k));tn_M(h.iws_nw,new tn_c(m,B));l?(tn_M(h.iw_n1,new tn_c(t+q,k)),tn_M(h.iws_n1,new tn_c(r+q,B)),tn_M(h.iw_s1,H),tn_M(h.iws_s1,I),tn_M(h.iw_s2,new tn_c(E,w)),tn_M(h.iws_s2,new tn_c(G,y)),tn_R(h.iws_tab_dl),tn_R(h.iws_tab_dr),
tn_S(h.iws_tab_l),tn_S(h.iws_tab_r),tn_M(h.iws_tab_l,new tn_c(m,n)),tn_M(h.iws_tab_r,new tn_c(r+q-14,n))):(tn_M(h.iw_n1,J),tn_M(h.iws_n1,K),tn_M(h.iw_s2,H),tn_M(h.iws_s2,I),tn_M(h.iw_s1,new tn_c(t+q,w)),tn_M(h.iws_s1,new tn_c(r+q,y)),tn_S(h.iws_tab_dl),tn_S(h.iws_tab_dr),tn_R(h.iws_tab_l),tn_R(h.iws_tab_r),tn_M(h.iws_tab_dl,new tn_c(m,n)),tn_M(h.iws_tab_dr,new tn_c(r+q-14,n)));c?(tn_M(h.iw_n2,new tn_c(E,k)),tn_M(h.iws_n2,new tn_c(G,B))):(tn_M(h.iw_n2,J),tn_M(h.iws_n2,K));tn_M(h.iw_ne,new tn_c(v,k));
tn_M(h.iws_ne,new tn_c(A,B));tn_M(h.iw_w,new tn_c(e,u+(a?32:0)));tn_M(h.iws_w,new tn_c(m,D+(a?32:0)));tn_M(h.iw_c,new tn_c(t,u));tn_M(h.iws_c,new tn_c(r,D));tn_P(h.iw_c,v-t);tn_Q(h.iw_c,w-u);tn_P(h.iws_c,A-r);tn_Q(h.iws_c,y-D);tn_M(h.iw_e,new tn_c(v,u+(b?32:0)));tn_M(h.iws_e,new tn_c(A,D+(b?32:0)));tn_M(h.iw_sw,new tn_c(e,w));tn_M(h.iws_sw,new tn_c(m,y));tn_M(h.iw_se,new tn_c(v,w));tn_M(h.iws_se,new tn_c(A,y));a?(tn_M(f,new tn_c(0,u)),tn_M(g,new tn_c(0,u))):b?(tn_M(f,new tn_c(v,u)),tn_M(g,new tn_c(A,
u))):c?(tn_M(f,new tn_c(C,0)),tn_M(g,new tn_c(F,0))):(tn_M(f,new tn_c(C,w)),tn_M(g,new tn_c(F,y)));a="rtl"==this.interfaceDirection_?-0+t:v-14;b=u-0;tn_M(h.close,new tn_c(a,b));"hidden"!=h.close.style.visibility&&(a="rtl"==this.interfaceDirection_?a+16:a-16);a=new tn_c(a,b);tn_M(h.maximize,a);tn_M(h.restore,a);this.tabPos_=new tn_c(e+8,k+8);for(a=0;a<this.contentContainers_.length;a++)b=this.contentContainers_[a],tn_M(b,this.tabPos_);if(2>this.tabs_.length)tn_R(h.iws_tab_l),tn_R(h.iws_tab_r),tn_R(h.iws_tab_dl),
tn_R(h.iws_tab_dr),tn_S(h.iw_sw),tn_S(h.iws_sw),tn_S(h.iw_nw),tn_S(h.iws_nw);else for(l?(tn_R(h.iw_nw),tn_R(h.iws_nw),tn_S(h.iw_sw),tn_S(h.iws_sw)):(tn_R(h.iw_sw),tn_R(h.iws_sw),tn_S(h.iw_nw),tn_S(h.iws_nw)),a=0;a<this.tabs_.length;++a){h=this.tabs_[a];k=h.images;f=h.textWidth;b=h.labelNode;r=b.style;var x;0<a&&(x=this.tabShadowOverlapImages_[a-1]);tn_R(k.iw_tabback_dl);tn_R(k.iw_tabback_dm);tn_R(k.iw_tabback_dr);tn_R(k.iw_tabback_l);tn_R(k.iw_tabback_m);tn_R(k.iw_tabback_r);tn_R(k.iw_tab_dl);tn_R(k.iw_tab_dm);
tn_R(k.iw_tab_dr);tn_R(k.iw_tab_l);tn_R(k.iw_tab_m);tn_R(k.iw_tab_r);tn_R(k.iws_tab_m);tn_R(k.iws_tab_dm);x?(tn_R(x.iws_tab_do),tn_R(x.iws_tab_o)):(tn_R(k.iw_tab_1l),tn_R(k.iw_tab_1dl),tn_R(k.iw_tabback_1l),tn_R(k.iw_tabback_1dl),tn_R(k.iws_tab_1l),tn_R(k.iws_tab_1dl));c=this.window_.style.zIndex;if(l){this.selectedTab_==a?(g=0==a?k.iw_tab_1l:k.iw_tab_l,q=k.iw_tab_m,t=k.iw_tab_r,++c):(g=0==a?k.iw_tabback_1l:k.iw_tabback_l,q=k.iw_tabback_m,t=k.iw_tabback_r);k=k.iws_tab_m;if(x)var z=x.iws_tab_o;r.paddingTop=
tn_N(4);r.paddingBottom=tn_N(0)}else this.selectedTab_==a?(g=0==a?k.iw_tab_1dl:k.iw_tab_dl,q=k.iw_tab_dm,t=k.iw_tab_dr,++c):(g=0==a?k.iw_tabback_1dl:k.iw_tabback_dl,q=k.iw_tabback_dm,t=k.iw_tabback_dr),k=k.iws_tab_dm,x&&(z=x.iws_tab_do),r.paddingTop=tn_N(4),r.paddingBottom="";tn_S(g);tn_S(q);tn_S(t);tn_S(k);r=h.offset+(0==a?6:11);tn_M(g,new tn_c(e+h.offset,p));tn_M(q,new tn_c(e+r,p));tn_P(q,f);tn_M(k,new tn_c(m+2+r,n));tn_P(k,f);tn_M(t,new tn_c(e+r+f,p));z&&(tn_S(z),tn_M(z,new tn_c(m+r-14+2,n)),z.parentNode||
this.shadow_.appendChild(z));g.style.zIndex=c;q.style.zIndex=c;t.style.zIndex=c;f=f+2+3;tn_P(b,f);tn_M(b,new tn_c(e+r-2,d));tn_S(b);b.style.zIndex=c+1;!b.parentNode&&0<h.textWidth&&this.window_.appendChild(b)}};tn_a.resetPixelPosition=function(){this.nodePosition_?this.setNodePosition(this.nodePosition_,this.pixelOffset_):this.rectPosition_&&this.setRectPosition(this.rectPosition_,this.pixelOffset_)};tn_a.getCenterSize=function(){return new tn_Y(tn_U(this.centerSize_.width,this.totalTabWidth_),this.centerSize_.height)};
tn_a.reset=function(a,b,c,d,e){this.setContent(c,b,e);this.setRectPosition(a,d);this.show();tn_T(this.images_.restore)};tn_a.hide=function(){this.tapImg_&&tn_R(this.tapImg_);this.shadowTapImg_&&tn_R(this.shadowTapImg_);tn_R(this.window_);tn_R(this.shadow_)};tn_a.show=function(){this.isHidden()&&(tn_S(this.window_),tn_S(this.shadow_),this.tapImg_&&tn_S(this.tapImg_),this.shadowTapImg_&&tn_S(this.shadowTapImg_))};tn_a.isHidden=function(){return"none"==this.window_.style.display};
tn_a.selectTab=function(a){if(a!=this.selectedTab_){this.setTab_(a);var b=this.contentContainers_;tn_Vc(b,tn_R);tn_S(b[a]);var c=this;window.setTimeout(function(){c.resetPixelPosition()},0)}};tn_a.onCloseClick_=function(){tn_1(this,"closeclick")};
tn_a.maximize=function(a){if(!this.isMaximized_){tn_1(this,"maximizeclick");this.images_.restore.style.visibility="";this.smallSize_=this.centerSize_;this.smallTabs_=this.tabs_;this.smallSelectedTab_=this.selectedTab_;this.maximizedSize_=this.maximizedSize_||new tn_Y(628,598);var b=new tn_Y(4+this.maximizedSize_.width,4+this.maximizedSize_.height);tn__.isGeckoBased()&&(b.width+=1);this.grow_(b,a)}};
tn_a.restore=function(a){this.isMaximized_&&(tn_1(this,"restoreclick"),tn_T(this.images_.restore),this.setContent(this.maximizedSize_,this.smallTabs_,this.smallSelectedTab_),this.grow_(this.smallSize_,a))};tn_a.grow_=function(a,b){this.growSiner_=new tn_rd(!0===b?1:10);this.growStartSize_=this.centerSize_;this.growEndSize_=a;this.doGrow_()};
tn_a.doGrow_=function(){var a=this.growSiner_.next();this.growSiner_.more()&&tn_Tc(this,this.doGrow_,10);var b=this.growStartSize_.width+(this.growEndSize_.width-this.growStartSize_.width)*a;a=this.growStartSize_.height+(this.growEndSize_.height-this.growStartSize_.height)*a;this.setCenterSize_(new tn_Y(b,a));this.resetPixelPosition();this.updateContentSize();this.growSiner_.more()||this.growDone_()};
tn_a.growDone_=function(){this.isMaximized_?(this.isMaximized_=!1,tn_1(this,"restoreend")):(this.isMaximized_=!0,tn_1(this,"maximizeend"),this.maximizedSize_&&this.maximizedTabs_&&this.setContent(this.maximizedSize_,this.maximizedTabs_,this.maximizedSelectedTab_))};tn_a.setCenterSize_=function(a){return a=this.centerSize_=this.boundSize_(a)};tn_a.filterMouseDblClick_=function(a){if(1==tn__.type)tn_ld(a);else{var b=tn_qd(a,this.window_);b.y<=this.getWindowHeight()&&tn_ld(a)}};
tn_a.filterMouseDown_=function(a){if(1==tn__.type)tn_md(a);else{var b=tn_qd(a,this.window_);b.y<=this.getWindowHeight()&&(a.cancelDrag=!0)}};tn_a.getWindowHeight=function(){return this.getCenterSize().height+12};tn_a.getTotalSize=function(){var a=this.getCenterSize();return new tn_Y(a.width+12,a.height+21+6)};
tn_a.setContent=function(a,b,c){this.clearContent();a=new tn_Y(4+a.width,4+a.height);tn__.isGeckoBased()&&(a.width+=1);var d=this.setCenterSize_(a),e=[];this.tabs_=e;var f=c||0;a=new tn_Y(d.width+-4,d.height+-4);var g=this.tabPos_,n=this.contentContainers_=[];for(c=0;c<b.length;c++){var l=tn_L("div",this.window_,g,a);l.style.overflow="hidden";c!=f&&tn_R(l);l.style.zIndex=10;l.appendChild(b[c].contentElem);n.push(l)}if(1<b.length){a=[];g=new tn_Y(11,26);n=new tn_Y(14,26);this.initializeTabs_();for(c=
0;c<b.length;++c){var m={images:b[c].images||{},textWidth:b[c].textWidth||0,offset:b[c].offset||0,name:b[c].name,contentElem:b[c].contentElem,onclick:b[c].onclick},h=m.images;tn_vd(h,this.window_,[["iw_tabback_dm",1,26,0,0],["iw_tabback_m",1,26,0,0],["iw_tab_dm",1,26,0,0],["iw_tab_m",1,26,0,0]]);tn_4(h,this.window_,"iw_tabback_dl",g);tn_4(h,this.window_,"iw_tabback_dr",n);tn_4(h,this.window_,"iw_tabback_l",g);tn_4(h,this.window_,"iw_tabback_r",n);tn_4(h,this.window_,"iw_tab_dl",g);tn_4(h,this.window_,
"iw_tab_dr",n);tn_4(h,this.window_,"iw_tab_l",g);tn_4(h,this.window_,"iw_tab_r",n);tn_vd(h,this.shadow_,[["iws_tab_dm",1,28,0,0],["iws_tab_m",1,28,0,0]]);l=function(a,b){tn_R(b);a.tabImages_.push(b)};if(0==c){var k=new tn_Y(6,26);tn_4(h,this.window_,"iw_tab_1dl",k);tn_4(h,this.window_,"iw_tab_1l",k);tn_4(h,this.window_,"iw_tabback_1dl",k);tn_4(h,this.window_,"iw_tabback_1l",k);k=new tn_Y(8,28);tn_4(h,this.shadow_,"iws_tab_1dl",k);tn_4(h,this.shadow_,"iws_tab_1l",k);l(this,h.iw_tab_1dl);l(this,h.iw_tab_1l);
l(this,h.iw_tabback_1dl);l(this,h.iw_tabback_1l);l(this,h.iws_tab_1dl);l(this,h.iws_tab_1l)}l(this,h.iw_tabback_dl);l(this,h.iw_tabback_dm);l(this,h.iw_tabback_dr);l(this,h.iw_tabback_l);l(this,h.iw_tabback_m);l(this,h.iw_tabback_r);l(this,h.iw_tab_dl);l(this,h.iw_tab_dm);l(this,h.iw_tab_dr);l(this,h.iw_tab_l);l(this,h.iw_tab_m);l(this,h.iw_tab_r);l(this,h.iws_tab_dm);l(this,h.iws_tab_m);h=document.createElement("div");m.labelNode=h;tn_Q(h,20);k=h.style;h.style.overflow="hidden";k.fontWeight="bold";
k.fontFamily="Arial,sans-serif";k.fontSize=tn_N(12);k.textAlign="center";k.display="inline";tn_wd(h);tn_Qc(m.name,h);(function(a,b,c,d){tn_kd(d,a,function(){a.selectTab(b);c&&c()})})(this,c,b[c].onclick,h);this.tabImages_.push(h);a.push(h);this.tabs_.push(m);0<c&&(m={},h=new tn_Y(14,28),tn_4(m,this.shadow_,"iws_tab_do",h),tn_4(m,this.shadow_,"iws_tab_o",h),l(this,m.iws_tab_do),l(this,m.iws_tab_o),this.tabShadowOverlapImages_.push(m))}var p=this;tn_3c(a,function(a){var b;if(a.length==e.length){for(var c=
0;c<a.length;++c){var g=b=e[c];0!=a[c].width&&(g.textWidth=tn_U(0,a[c].width-2-3));tn_S(g.labelNode);p.window_.appendChild(g.labelNode);if(0<c){var h=e[c-1];g.offset=h.offset+h.textWidth+(1==c?6:11)+14-11}}p.totalTabWidth_=b.offset+b.textWidth+14+11-6;if(p.totalTabWidth_+30>d.width)for(p.setCenterSize_(new tn_Y(p.totalTabWidth_+30,d.height)),a=new tn_Y(p.totalTabWidth_+30+-4,d.height+-4),c=0;c<p.contentContainers_.length;++c)tn_Pc(p.contentContainers_[c],a)}p.setTab_(f);p.resetPixelPosition()})}else m=
{images:b[0].images||{},textWidth:b[0].textWidth||0,offset:b[0].offset||0,name:b[0].name,contentElem:b[0].contentElem,onclick:b[0].onclick},this.tabs_.push(m),this.resetPixelPosition()};tn_a.updateContentSize=function(){for(var a=new tn_Y(this.centerSize_.width+-4,this.centerSize_.height+-4),b=0;b<this.contentContainers_.length;b++){var c=this.contentContainers_[b];tn_Pc(c,a)}};
tn_a.setMaximizedContent=function(a,b,c){this.maximizedSize_=a;this.maximizedTabs_=b;this.maximizedSelectedTab_=c;this.images_.maximize.style.visibility=""};tn_a.clearContent=function(){var a=this.contentContainers_;tn_Vc(a,tn_W);a.length=0;a=this.tabImages_;tn_Vc(a,tn_W);this.selectedTab_=a.length=0};tn_a.boundSize_=function(a){return new tn_Y(tn_U(a.width,32),tn_U(a.height,0))};tn_a.initializeTabs_=function(){this.tabImages_=[];this.tabShadowOverlapImages_=[];this.totalTabWidth_=0};
tn_a.setTab_=function(a){tn_wd(this.tabs_[this.selectedTab_].labelNode);this.selectedTab_=a;a=this.tabs_[a].labelNode;var b=a.style;b.color="";b.textDecoration="";tn_V(a,"")};function tn_wd(a){var b=a.style;b.color="#0000cc";b.textDecoration="underline";tn_V(a,"pointer")}function tn_vd(a,b,c){b=tn_L("div",b,null,null,!1,!0);for(var d=0;d<c.length;d++){var e=c[d],f=new tn_Y(e[1],e[2]),g=new tn_c(e[3],e[4]),n=tn_Nc+e[0]+".png";f=tn_4c(n,b,g,f,!0,!0);a[e[5]||e[0]]=f}return b}
function tn_4(a,b,c,d,e,f){if(1==tn__.type&&7>tn__.version)return b=tn_4c(tn_Nc+c+(f?".gif":".png"),b,new tn_c(0,0),d,!0,!0),a[e||c]=b;tn_sd||(tn_sd=!0,d=document.createElement("link"),d.rel="stylesheet",d.type="text/css",d.href=tn_Nc+"iw_sprite.css",document.getElementsByTagName("head")[0].appendChild(d));d=document.createElement("div");d.className="SPRITE_"+c;d.style.overflow="hidden";b.appendChild(d);return a[e||c]=d};if(window.jstiming){window.jstiming.beaconImageReferences_={};window.jstiming.reportCounter_=1;var tn_xd=function(a,b,c){var d=a.t[b],e=a.t.start;if(d&&(e||c))return d=a.t[b][0],e=void 0!=c?c:e[0],a=d-e,Math.round(a)},tn_yd=function(a,b,c){var d="";window.jstiming.srt&&(d+="&srt="+window.jstiming.srt,delete window.jstiming.srt);window.jstiming.pt&&(d+="&tbsrt="+window.jstiming.pt,delete window.jstiming.pt);try{window.external&&window.external.tran?d+="&tran="+window.external.tran:window.gtbExternal&&
window.gtbExternal.tran?d+="&tran="+window.gtbExternal.tran():window.chrome&&window.chrome.csi&&(d+="&tran="+window.chrome.csi().tran)}catch(k){}var e=window.chrome;if(e&&(e=e.loadTimes)){e().wasFetchedViaSpdy&&(d+="&p=s");if(e().wasNpnNegotiated){d+="&npn=1";var f=e().npnNegotiatedProtocol;f&&(d+="&npnv="+(encodeURIComponent||escape)(f))}e().wasAlternateProtocolAvailable&&(d+="&apa=1")}var g=a.t,n=g.start;e=[];f=[];for(var l in g)if("start"!=l&&0!=l.indexOf("_")){var m=g[l][1];m?g[m]&&f.push(l+"."+
tn_xd(a,l,g[m][0])):n&&e.push(l+"."+tn_xd(a,l))}delete g.start;if(b)for(var h in b)d+="&"+h+"="+b[h];(b=c)||(b="https:"==document.location.protocol?"https://csi.gstatic.com/csi":"http://csi.gstatic.com/csi");return a=[b,"?v=3","&s="+(window.jstiming.sn||"translate")+"&action=",a.name,f.length?"&it="+f.join(","):"",d,"&rt=",e.join(",")].join("")},tn_zd=function(a,b,c){a=tn_yd(a,b,c);if(!a)return"";b=new Image;var d=window.jstiming.reportCounter_++;window.jstiming.beaconImageReferences_[d]=b;b.onload=
b.onerror=function(){window.jstiming&&delete window.jstiming.beaconImageReferences_[d]};b.src=a;b=null;return a};window.jstiming.report=function(a,b,c){var d=document.visibilityState,e="visibilitychange";d||(d=document.webkitVisibilityState,e="webkitvisibilitychange");if("prerender"==d){var f=!1,g=function(){if(!f){b?b.prerender="1":b={prerender:"1"};if("prerender"==(document.visibilityState||document.webkitVisibilityState))var d=!1;else tn_zd(a,b,c),d=!0;d&&(f=!0,document.removeEventListener(e,g,
!1))}};document.addEventListener(e,g,!1);return""}return tn_zd(a,b,c)}};var tn_5,tn_6=null,tn_7,tn_Ad,tn_Bd,tn_Cd=!1,tn_Dd=!1,tn_8=!1,tn_9=!1,tn_Ed={right:"left",left:"right",ltr:"rtl",rtl:"ltr"},tn_Fd;function tn_Gd(a){return a.substring(0,1).toUpperCase()+a.substring(1)}
var _intlStrings={_originalText:"Original Text:",_interfaceDirection:"ltr",_interfaceAlign:"left",_langpair:"",_currentBy:"",_unknown:"unknown",_suggestTranslation:"Suggest a translation",_submit:"Submit",_feedbackUrl:"https://translate.google.com/translate_suggestion?client=wt",_suggestThanks:"Thank you for helping us improve the quality of our translations.",_reverse:!1,_staticContentPath:""};
function tn_Hd(a){if(3==a.nodeType)return a.nodeValue;if(1==a.nodeType){for(var b="",c=0;c<a.childNodes.length;++c)b+=tn_Hd(a.childNodes[c]);return b}return""}function tn_Id(a,b){if(a)if(3==b.nodeType)a.appendChild(document.createTextNode(b.nodeValue));else if(1==b.nodeType){if("a"===b.nodeName||"A"===b.nodeName){var c=document.createElement("a");var d=b.getAttribute("href");d&&c.setAttribute("href",d);a.appendChild(c)}else c=a;for(a=0;a<b.childNodes.length;++a)tn_Id(c,b.childNodes[a])}}
function _setupIW(a){tn_Fd=a;if(!tn_Cd){_intlStrings._staticContentPath&&(tn_Nc=_intlStrings._staticContentPath);tn_5=new tn_ud;tn_7=document.createElement("div");tn_7.id="google-infowindow";tn_7.className="notranslate";tn_Ad=document.createElement("span");tn_7.onmouseover=function(){tn_Dd=!0;tn_Jd(tn_6)};tn_7.onmouseout=function(){tn_Kd()};document.body.appendChild(tn_Ad);document.body.appendChild(tn_7);a=document.createElement("div");document.body.appendChild(a);tn_R(a);a.innerHTML='<iframe id="google-feedback-frame" name="" + FEEDBACK_TARGET_IFRAME_NAME + ""></iframe>';
tn_5.create(tn_7,tn_Ad);tn_7.firstChild.style.zIndex=2147483647;tn_Ad.firstChild.style.zIndex=2147483647;tn_5.showCloseButton(!0);tn_5.keepInBounds(!0);tn_5.keepInScrollpane(!0);tn_5.allowDownwards(!0);tn_5.allowMaximizeAndRestoreButtons(!1);tn_5.setInterfaceDirection(_intlStrings._interfaceDirection);tn_ed(tn_5,"closeclick",function(){tn_Kd(!0);tn_9&&tn_Ld(!1)});var b=document.getElementById("gt-nvframe");b&&window.addEventListener("scroll",function(){b.style.top=-document.body.scrollTop+"px"},!1);
tn_Cd=!0}}var tn_$=null;
function tn_Jd(a){if(a&&(null!==tn_$&&(window.clearTimeout(tn_$),tn_$=null),!tn_8))if(tn_6==a)tn_9||(tn_Bd=tn_6.style.backgroundColor,tn_6.style.backgroundColor="#E6ECF9");else{tn_9&&(tn_5.restore(!0),tn_9=!1);for(var b,c=a.cloneNode(!0),d=a.childNodes.length-1;0<=d;--d)"google-src-text"==a.childNodes[d].className&&(b=a.childNodes[d].cloneNode(!0),c.removeChild(c.childNodes[d]),b.className="google-src-active-text");if(b){tn_5.showCloseButton(!0);tn_Bd=a.style.backgroundColor;a.style.backgroundColor=
"#E6ECF9";var e=document.createElement("div");d=document.createElement("div");var f=document.createElement("img"),g=document.createElement("div");g.appendChild(f);f.style.width="48px";f.style.height="16px";f.border=0;f.style.display="inline";f.style.padding="0px";f.style.border="0px solid black";g.style.margin="0px";g.style.marginBottom="-17px";g.style.padding="0px";g.style.textAlign=tn_Ed[_intlStrings._interfaceAlign];f.src="https://www.gstatic."+tn_Fd+"/images/branding/googlelogo/1x/googlelogo_color_48x16dp.png";
f.style["margin"+tn_Gd(_intlStrings._interfaceAlign)]="6px";f.style["margin"+tn_Gd(tn_Ed[_intlStrings._interfaceAlign])]=tn_N(18);e.appendChild(g);e.appendChild(d);d.appendChild(document.createTextNode(_intlStrings._originalText));d.style.color="#333";d.style.direction=_intlStrings._interfaceDirection;d.style.textAlign=_intlStrings._interfaceAlign;d.style.fontWeight="bold";d.style.fontSize="12px";d.style.minHeight="19px";d.style.fontFamily="arial,sans-serif";d.style["margin"+tn_Gd(tn_Ed[_intlStrings._interfaceAlign])]=
tn_N(72);d=document.createElement("div");d.className="google-src-active-text";d.style.lineHeight="19px";d.style.direction=_intlStrings._interfaceDirection;d.style.textAlign=_intlStrings._interfaceAlign;tn_Id(d,b);e.appendChild(d);e.style.zIndex=2147483647;if(0==_intlStrings._langpair.length)tn_6=a,tn_2c(e,function(a){tn_5.hide();tn_5.setContent(a,[new tn_td(_intlStrings._originalText,e)]);tn_5.setNodePosition(tn_6);tn_5.show()},(document.width||document.body.scrollWidth)/2);else{d=e.cloneNode(!0);
var n=document.createElement("div");n.appendChild(d);d=document.createElement("div");f=document.createElement("span");g=document.createElement("div");g.style.direction=_intlStrings._interfaceDirection;g.style.textAlign=_intlStrings._interfaceAlign;g.style.marginTop=tn_N(5);d.appendChild(g);var l=document.createElement("img");l.src="http://www.google.com/images/zippy_plus_sm.gif";l.style.width="12px";l.style.height="12px";l.border=0;l.style.border="none";l.style.verticalAlign="middle";g.appendChild(l);
g.appendChild(document.createTextNode(" "));g.appendChild(f);f.appendChild(document.createTextNode(_intlStrings._suggestTranslation));f.style.direction=_intlStrings._interfaceDirection;f.style.textAlign=_intlStrings._interfaceAlign;f.style.color="#0000CC";f.style.textDecoration="underline";f.style.fontFamily="arial,sans-serif";f.style.fontSize="12px";g.onclick=tn_Md;tn_V(f,"pointer");e.appendChild(d);var m=document.createElement("div");d=document.createElement("div");f=document.createElement("span");
d.style.direction=_intlStrings._interfaceDirection;d.style.textAlign=_intlStrings._interfaceAlign;d.style.marginTop=tn_N(5);d.style.marginBottom=tn_N(6);m.appendChild(d);g=document.createElement("img");g.src="http://www.google.com/images/zippy_minus_sm.gif";g.style.width="12px";g.style.height="12px";g.border=0;g.style.border="none";g.style.verticalAlign="middle";d.appendChild(g);d.appendChild(document.createTextNode(" "));d.appendChild(f);f.appendChild(document.createTextNode(_intlStrings._suggestTranslation));
f.style.direction=_intlStrings._interfaceDirection;f.style.textAlign=_intlStrings._interfaceAlign;f.style.color="#0000CC";f.style.textDecoration="underline";f.style.fontFamily="arial,sans-serif";f.style.fontSize="12px";d.onclick=function(){tn_Ld(!0)};tn_V(f,"pointer");tn_6=a;a=document.createElement("div");d=document.createElement("form");d.style.marginBottom="0px";d.style.paddingBottom="0px";d.target="google-feedback-frame";d.method="post";d.action=_intlStrings._feedbackUrl;a.appendChild(d);var h=
document.createElement("input");h.type="hidden";h.name="gtrans";d.appendChild(h);_intlStrings._reverse?(f=tn_Hd(c),c=tn_Hd(b)):(c=tn_Hd(c),f=tn_Hd(b));h.value=c;b=document.createElement("input");b.type="hidden";b.value=f;b.name="text";d.appendChild(b);b=document.createElement("input");b.name="langpair";b.type="hidden";b.value=_intlStrings._langpair;d.appendChild(b);b=document.createElement("input");b.name="u";b.type="hidden";b.value=tn_Nd("u");d.appendChild(b);b=document.createElement("input");b.name=
"oe";b.type="hidden";if(document.charset)b.value=document.charset,d.appendChild(b);else if(document.characterSet)b.value=document.characterSet,d.appendChild(b);else if(f=tn_Nd("oe"))d.appendChild(b),b.value=f;var k=document.createElement("textarea");k.rows=3;k.name="utrans";k.value=c;d.appendChild(k);b=document.createElement("div");b.style.direction=_intlStrings._interfaceDirection;b.style.textAlign=tn_Ed[_intlStrings._interfaceAlign];b.style.marginTop=tn_N(6);b.style.marginBottom="0px";d.appendChild(b);
c=document.createElement("input");c.type="submit";c.value=_intlStrings._submit;b.appendChild(c);var p=document.createElement("div");p.appendChild(document.createElement("hr"));p.appendChild(document.createTextNode(_intlStrings._suggestThanks));p.style.direction=_intlStrings._interfaceDirection;p.style.textAlign=_intlStrings._interfaceAlign;p.style.fontFamily="arial,sans-serif";p.style.fontSize="12px";p.style.overflow="auto";p.style.marginTop="10px";tn_R(p);m.appendChild(a);n.appendChild(m);n.appendChild(p);
d.onsubmit=function(){window.setTimeout(function(){tn_R(m);tn_S(p)},1);tn_8=!1;return k.value!=h.value};tn_3c([n,e],function(a){k.style.width=tn_N(a[0].width-6);k.style.padding=tn_N(2);tn_5.hide();tn_5.setContent(a[1],[new tn_td(_intlStrings._originalText,e)]);tn_5.setMaximizedContent(a[0],[new tn_td(_intlStrings._originalText,n)]);tn_5.setNodePosition(tn_6);tn_5.showCloseButton(!0);tn_5.show()},(document.width||document.body.scrollWidth)/2)}}}}
function tn_Nd(a){var b=window.location.search.substring(1);b=b.split("&");for(var c=0;c<b.length;c++){var d=b[c].split("=");if(d[0].toLowerCase()==a&&0<d.length)return window.unescape(d[1])}return""}function tn_Od(a){tn_Cd&&(tn_Dd=!0,tn_8||(null!==tn_$&&(window.clearTimeout(tn_$),tn_$=null),tn_6==a?(tn_Bd=tn_6.style.backgroundColor,tn_6.style.backgroundColor="#E6ECF9"):tn_$=window.setTimeout(function(){tn_Jd(a)},500)))}
function tn_Kd(a){tn_Cd&&(!0!==a&&(tn_Dd=!1),tn_8||(tn_6&&tn_6.style&&(tn_6.style.backgroundColor=tn_Bd),tn_$&&(window.clearTimeout(tn_$),tn_$=null),!0!==a?tn_$=window.setTimeout(tn_Pd,250):tn_Pd()))}function tn_Pd(){tn_8||(tn_5.hide(),tn_9&&(tn_5.restore(!0),tn_9=!1),tn_6=null)}function tn_Md(){tn_9=tn_8=!0;var a=tn_ed(tn_5,"maximizeend",function(){tn_fd(a)});tn_5.maximize()}
function tn_Ld(a){var b=tn_ed(tn_5,"restoreend",function(){tn_fd(b);tn_9=!1;a?window.setTimeout(function(){tn_8=!1;tn_Dd||tn_Kd(!0)},500):(tn_8=!1,tn_Dd||tn_Kd(!0))});tn_5.restore()}function _csi(a,b){var c={};c.sl=a;c.tl=b;a=window.jstiming.load;a.tick("prt");a.tick("ol");a.name="w";window.jstiming.sn="translate";window.jstiming.report(a,c);try{window.external&&window.external.resT()}catch(d){}}function tn_Qd(a){var b=window.onload;window.onload=b?function(){try{a()}catch(c){}b(null)}:a}
var _tipon=tn_Od,_tipoff=tn_Kd,_addload=tn_Qd,tn_Rd=window.jstiming.load;tn_Rd.tick("jl");
