Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(388)

Side by Side Diff: chrome/third_party/chromevox/chromeVoxChromePageScript.js

Issue 237433002: Update latest ChromeVox from upstream (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 var goog=goog||{};goog.global=this;goog.exportPath_=function(a,b,c){a=a.split(". ");c=c||goog.global;a[0]in c||!c.execScript||c.execScript("var "+a[0]);for(var d ;a.length&&(d=a.shift());)a.length||void 0===b?c=c[d]?c[d]:c[d]={}:c[d]=b};goog. define=function(a,b){var c=b;goog.exportPath_(a,c)};goog.DEBUG=!1;goog.LOCALE="e n";goog.TRUSTED_SITE=!0;goog.STRICT_MODE_COMPATIBLE=!1;goog.provide=function(a){ goog.exportPath_(a)}; 1 var goog=goog||{};goog.global=this;goog.isDef=function(a){return void 0!==a};goo g.exportPath_=function(a,b,c){a=a.split(".");c=c||goog.global;a[0]in c||!c.execS cript||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)!a.length&&g oog.isDef(b)?c[d]=b:c=c[d]?c[d]:c[d]={}};goog.define=function(a,b){var c=b;goog. exportPath_(a,c)};goog.DEBUG=!1;goog.LOCALE="en";goog.TRUSTED_SITE=!0;goog.STRIC T_MODE_COMPATIBLE=!1;goog.provide=function(a){goog.exportPath_(a)};
2 goog.setTestOnly=function(a){if(!goog.DEBUG)throw a=a||"",Error("Importing test- only code into non-debug environment"+a?": "+a:".");};goog.forwardDeclare=functi on(){};goog.getObjectByName=function(a,b){for(var c=a.split("."),d=b||goog.globa l,e;e=c.shift();)if(goog.isDefAndNotNull(d[e]))d=d[e];else return null;return d} ;goog.globalize=function(a,b){var c=b||goog.global,d;for(d in a)c[d]=a[d]}; 2 goog.setTestOnly=function(a){if(!goog.DEBUG)throw a=a||"",Error("Importing test- only code into non-debug environment"+a?": "+a:".");};goog.forwardDeclare=functi on(){};goog.getObjectByName=function(a,b){for(var c=a.split("."),d=b||goog.globa l,e;e=c.shift();)if(goog.isDefAndNotNull(d[e]))d=d[e];else return null;return d} ;goog.globalize=function(a,b){var c=b||goog.global,d;for(d in a)c[d]=a[d]};
3 goog.addDependency=function(a,b,c){if(goog.DEPENDENCIES_ENABLED){var d;a=a.repla ce(/\\/g,"/");for(var e=goog.dependencies_,f=0;d=b[f];f++)e.nameToPath[d]=a,a in e.pathToNames||(e.pathToNames[a]={}),e.pathToNames[a][d]=!0;for(d=0;b=c[d];d++) a in e.requires||(e.requires[a]={}),e.requires[a][b]=!0}};goog.useStrictRequires =!1;goog.ENABLE_DEBUG_LOADER=!0;goog.require=function(){};goog.basePath="";goog. nullFunction=function(){};goog.identityFunction=function(a){return a}; 3 goog.addDependency=function(a,b,c){if(goog.DEPENDENCIES_ENABLED){var d;a=a.repla ce(/\\/g,"/");for(var e=goog.dependencies_,f=0;d=b[f];f++)e.nameToPath[d]=a,a in e.pathToNames||(e.pathToNames[a]={}),e.pathToNames[a][d]=!0;for(d=0;b=c[d];d++) a in e.requires||(e.requires[a]={}),e.requires[a][b]=!0}};goog.useStrictRequires =!1;goog.ENABLE_DEBUG_LOADER=!0;goog.require=function(){};goog.basePath="";goog. nullFunction=function(){};goog.identityFunction=function(a){return a};
4 goog.abstractMethod=function(){throw Error("unimplemented abstract method");};go og.addSingletonGetter=function(a){a.getInstance=function(){if(a.instance_)return a.instance_;goog.DEBUG&&(goog.instantiatedSingletons_[goog.instantiatedSingleto ns_.length]=a);return a.instance_=new a}};goog.instantiatedSingletons_=[];goog.D EPENDENCIES_ENABLED=!1; 4 goog.abstractMethod=function(){throw Error("unimplemented abstract method");};go og.addSingletonGetter=function(a){a.getInstance=function(){if(a.instance_)return a.instance_;goog.DEBUG&&(goog.instantiatedSingletons_[goog.instantiatedSingleto ns_.length]=a);return a.instance_=new a}};goog.instantiatedSingletons_=[];goog.D EPENDENCIES_ENABLED=!1;
5 goog.DEPENDENCIES_ENABLED&&(goog.included_={},goog.dependencies_={pathToNames:{} ,nameToPath:{},requires:{},visited:{},written:{}},goog.inHtmlDocument_=function( ){var a=goog.global.document;return"undefined"!=typeof a&&"write"in a},goog.find BasePath_=function(){if(goog.global.CLOSURE_BASE_PATH)goog.basePath=goog.global. CLOSURE_BASE_PATH;else if(goog.inHtmlDocument_())for(var a=goog.global.document, a=a.getElementsByTagName("script"),b=a.length-1;0<=b;--b){var c=a[b].src,d=c.las tIndexOf("?"),d=-1==d? 5 goog.DEPENDENCIES_ENABLED&&(goog.included_={},goog.dependencies_={pathToNames:{} ,nameToPath:{},requires:{},visited:{},written:{}},goog.inHtmlDocument_=function( ){var a=goog.global.document;return"undefined"!=typeof a&&"write"in a},goog.find BasePath_=function(){if(goog.global.CLOSURE_BASE_PATH)goog.basePath=goog.global. CLOSURE_BASE_PATH;else if(goog.inHtmlDocument_())for(var a=goog.global.document, a=a.getElementsByTagName("script"),b=a.length-1;0<=b;--b){var c=a[b].src,d=c.las tIndexOf("?"),d=-1==d?
6 c.length:d;if("base.js"==c.substr(d-7,7)){goog.basePath=c.substr(0,d-7);break}}} ,goog.importScript_=function(a){var b=goog.global.CLOSURE_IMPORT_SCRIPT||goog.wr iteScriptTag_;!goog.dependencies_.written[a]&&b(a)&&(goog.dependencies_.written[ a]=!0)},goog.writeScriptTag_=function(a){if(goog.inHtmlDocument_()){var b=goog.g lobal.document;if("complete"==b.readyState){if(b=/\bdeps.js$/.test(a))return!1;t hrow Error('Cannot write "'+a+'" after document load');}b.write('<script type="t ext/javascript" src="'+ 6 c.length:d;if("base.js"==c.substr(d-7,7)){goog.basePath=c.substr(0,d-7);break}}} ,goog.importScript_=function(a){var b=goog.global.CLOSURE_IMPORT_SCRIPT||goog.wr iteScriptTag_;!goog.dependencies_.written[a]&&b(a)&&(goog.dependencies_.written[ a]=!0)},goog.writeScriptTag_=function(a){if(goog.inHtmlDocument_()){var b=goog.g lobal.document;if("complete"==b.readyState){if(b=/\bdeps.js$/.test(a))return!1;t hrow Error('Cannot write "'+a+'" after document load');}b.write('<script type="t ext/javascript" src="'+
7 a+'">\x3c/script>');return!0}return!1},goog.writeScripts_=function(){function a( e){if(!(e in d.written)){if(!(e in d.visited)&&(d.visited[e]=!0,e in d.requires) )for(var g in d.requires[e])if(!goog.isProvided_(g))if(g in d.nameToPath)a(d.nam eToPath[g]);else throw Error("Undefined nameToPath for "+g);e in c||(c[e]=!0,b.p ush(e))}}var b=[],c={},d=goog.dependencies_,e;for(e in goog.included_)d.written[ e]||a(e);for(e=0;e<b.length;e++)if(b[e])goog.importScript_(goog.basePath+b[e]);e lse throw Error("Undefined script input"); 7 a+'">\x3c/script>');return!0}return!1},goog.writeScripts_=function(){function a( e){if(!(e in d.written)){if(!(e in d.visited)&&(d.visited[e]=!0,e in d.requires) )for(var g in d.requires[e])if(!goog.isProvided_(g))if(g in d.nameToPath)a(d.nam eToPath[g]);else throw Error("Undefined nameToPath for "+g);e in c||(c[e]=!0,b.p ush(e))}}var b=[],c={},d=goog.dependencies_,e;for(e in goog.included_)d.written[ e]||a(e);for(e=0;e<b.length;e++)if(b[e])goog.importScript_(goog.basePath+b[e]);e lse throw Error("Undefined script input");
8 },goog.getPathFromDeps_=function(a){return a in goog.dependencies_.nameToPath?go og.dependencies_.nameToPath[a]:null},goog.findBasePath_(),goog.global.CLOSURE_NO _DEPS||goog.importScript_(goog.basePath+"deps.js")); 8 },goog.getPathFromDeps_=function(a){return a in goog.dependencies_.nameToPath?go og.dependencies_.nameToPath[a]:null},goog.findBasePath_(),goog.global.CLOSURE_NO _DEPS||goog.importScript_(goog.basePath+"deps.js"));
9 goog.typeOf=function(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Arra y)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.propertyIs Enumerable&&!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"; 9 goog.typeOf=function(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Arra y)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.propertyIs Enumerable&&!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";
10 else if("function"==b&&"undefined"==typeof a.call)return"object";return b};goog. isDef=function(a){return void 0!==a};goog.isNull=function(a){return null===a};go og.isDefAndNotNull=function(a){return null!=a};goog.isArray=function(a){return"a rray"==goog.typeOf(a)};goog.isArrayLike=function(a){var b=goog.typeOf(a);return" array"==b||"object"==b&&"number"==typeof a.length};goog.isDateLike=function(a){r eturn goog.isObject(a)&&"function"==typeof a.getFullYear};goog.isString=function (a){return"string"==typeof a}; 10 else if("function"==b&&"undefined"==typeof a.call)return"object";return b};goog. isNull=function(a){return null===a};goog.isDefAndNotNull=function(a){return null !=a};goog.isArray=function(a){return"array"==goog.typeOf(a)};goog.isArrayLike=fu nction(a){var b=goog.typeOf(a);return"array"==b||"object"==b&&"number"==typeof a .length};goog.isDateLike=function(a){return goog.isObject(a)&&"function"==typeof a.getFullYear};goog.isString=function(a){return"string"==typeof a};
11 goog.isBoolean=function(a){return"boolean"==typeof a};goog.isNumber=function(a){ return"number"==typeof a};goog.isFunction=function(a){return"function"==goog.typ eOf(a)};goog.isObject=function(a){var b=typeof a;return"object"==b&&null!=a||"fu nction"==b};goog.getUid=function(a){return a[goog.UID_PROPERTY_]||(a[goog.UID_PR OPERTY_]=++goog.uidCounter_)};goog.hasUid=function(a){return!!a[goog.UID_PROPERT Y_]};goog.removeUid=function(a){"removeAttribute"in a&&a.removeAttribute(goog.UI D_PROPERTY_);try{delete a[goog.UID_PROPERTY_]}catch(b){}}; 11 goog.isBoolean=function(a){return"boolean"==typeof a};goog.isNumber=function(a){ return"number"==typeof a};goog.isFunction=function(a){return"function"==goog.typ eOf(a)};goog.isObject=function(a){var b=typeof a;return"object"==b&&null!=a||"fu nction"==b};goog.getUid=function(a){return a[goog.UID_PROPERTY_]||(a[goog.UID_PR OPERTY_]=++goog.uidCounter_)};goog.hasUid=function(a){return!!a[goog.UID_PROPERT Y_]};goog.removeUid=function(a){"removeAttribute"in a&&a.removeAttribute(goog.UI D_PROPERTY_);try{delete a[goog.UID_PROPERTY_]}catch(b){}};
12 goog.UID_PROPERTY_="closure_uid_"+(1E9*Math.random()>>>0);goog.uidCounter_=0;goo g.getHashCode=goog.getUid;goog.removeHashCode=goog.removeUid;goog.cloneObject=fu nction(a){var b=goog.typeOf(a);if("object"==b||"array"==b){if(a.clone)return a.c lone();var b="array"==b?[]:{},c;for(c in a)b[c]=goog.cloneObject(a[c]);return b} return a};goog.bindNative_=function(a,b,c){return a.call.apply(a.bind,arguments) }; 12 goog.UID_PROPERTY_="closure_uid_"+(1E9*Math.random()>>>0);goog.uidCounter_=0;goo g.getHashCode=goog.getUid;goog.removeHashCode=goog.removeUid;goog.cloneObject=fu nction(a){var b=goog.typeOf(a);if("object"==b||"array"==b){if(a.clone)return a.c lone();var b="array"==b?[]:{},c;for(c in a)b[c]=goog.cloneObject(a[c]);return b} return a};goog.bindNative_=function(a,b,c){return a.call.apply(a.bind,arguments) };
13 goog.bindJs_=function(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Ar ray.prototype.slice.call(arguments,2);return function(){var c=Array.prototype.sl ice.call(arguments);Array.prototype.unshift.apply(c,d);return a.apply(b,c)}}retu rn function(){return a.apply(b,arguments)}};goog.bind=function(a,b,c){Function.p rototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?goo g.bind=goog.bindNative_:goog.bind=goog.bindJs_;return goog.bind.apply(null,argum ents)}; 13 goog.bindJs_=function(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Ar ray.prototype.slice.call(arguments,2);return function(){var c=Array.prototype.sl ice.call(arguments);Array.prototype.unshift.apply(c,d);return a.apply(b,c)}}retu rn function(){return a.apply(b,arguments)}};goog.bind=function(a,b,c){Function.p rototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?goo g.bind=goog.bindNative_:goog.bind=goog.bindJs_;return goog.bind.apply(null,argum ents)};
14 goog.partial=function(a,b){var c=Array.prototype.slice.call(arguments,1);return function(){var b=c.slice();b.push.apply(b,arguments);return a.apply(this,b)}};go og.mixin=function(a,b){for(var c in b)a[c]=b[c]};goog.now=goog.TRUSTED_SITE&&Dat e.now||function(){return+new Date}; 14 goog.partial=function(a,b){var c=Array.prototype.slice.call(arguments,1);return function(){var b=c.slice();b.push.apply(b,arguments);return a.apply(this,b)}};go og.mixin=function(a,b){for(var c in b)a[c]=b[c]};goog.now=goog.TRUSTED_SITE&&Dat e.now||function(){return+new Date};
15 goog.globalEval=function(a){if(goog.global.execScript)goog.global.execScript(a," JavaScript");else if(goog.global.eval)if(null==goog.evalWorksForGlobals_&&(goog. global.eval("var _et_ = 1;"),"undefined"!=typeof goog.global._et_?(delete goog.g lobal._et_,goog.evalWorksForGlobals_=!0):goog.evalWorksForGlobals_=!1),goog.eval WorksForGlobals_)goog.global.eval(a);else{var b=goog.global.document,c=b.createE lement("script");c.type="text/javascript";c.defer=!1;c.appendChild(b.createTextN ode(a));b.body.appendChild(c); 15 goog.globalEval=function(a){if(goog.global.execScript)goog.global.execScript(a," JavaScript");else if(goog.global.eval)if(null==goog.evalWorksForGlobals_&&(goog. global.eval("var _et_ = 1;"),"undefined"!=typeof goog.global._et_?(delete goog.g lobal._et_,goog.evalWorksForGlobals_=!0):goog.evalWorksForGlobals_=!1),goog.eval WorksForGlobals_)goog.global.eval(a);else{var b=goog.global.document,c=b.createE lement("script");c.type="text/javascript";c.defer=!1;c.appendChild(b.createTextN ode(a));b.body.appendChild(c);
16 b.body.removeChild(c)}else throw Error("goog.globalEval not available");};goog.e valWorksForGlobals_=null;goog.getCssName=function(a,b){var c=function(a){return goog.cssNameMapping_[a]||a},d=function(a){a=a.split("-");for(var b=[],d=0;d<a.le ngth;d++)b.push(c(a[d]));return b.join("-")},d=goog.cssNameMapping_?"BY_WHOLE"== goog.cssNameMappingStyle_?c:d:function(a){return a};return b?a+"-"+d(b):d(a)};go og.setCssNameMapping=function(a,b){goog.cssNameMapping_=a;goog.cssNameMappingSty le_=b}; 16 b.body.removeChild(c)}else throw Error("goog.globalEval not available");};goog.e valWorksForGlobals_=null;goog.getCssName=function(a,b){var c=function(a){return goog.cssNameMapping_[a]||a},d=function(a){a=a.split("-");for(var b=[],d=0;d<a.le ngth;d++)b.push(c(a[d]));return b.join("-")},d=goog.cssNameMapping_?"BY_WHOLE"== goog.cssNameMappingStyle_?c:d:function(a){return a};return b?a+"-"+d(b):d(a)};go og.setCssNameMapping=function(a,b){goog.cssNameMapping_=a;goog.cssNameMappingSty le_=b};
17 goog.getMsg=function(a,b){var c=b||{},d;for(d in c){var e=(""+c[d]).replace(/\$/ g,"$$$$");a=a.replace(RegExp("\\{\\$"+d+"\\}","gi"),e)}return a};goog.getMsgWith Fallback=function(a){return a};goog.exportSymbol=function(a,b,c){goog.exportPath _(a,b,c)};goog.exportProperty=function(a,b,c){a[b]=c}; 17 goog.getMsg=function(a,b){var c=b||{},d;for(d in c){var e=(""+c[d]).replace(/\$/ g,"$$$$");a=a.replace(new RegExp("\\{\\$"+d+"\\}","gi"),e)}return a};goog.getMsg WithFallback=function(a){return a};goog.exportSymbol=function(a,b,c){goog.export Path_(a,b,c)};goog.exportProperty=function(a,b,c){a[b]=c};
18 goog.inherits=function(a,b){function c(){}c.prototype=b.prototype;a.superClass_= b.prototype;a.prototype=new c;a.prototype.constructor=a;a.base=function(a,c,f){v ar g=Array.prototype.slice.call(arguments,2);return b.prototype[c].apply(a,g)}}; 18 goog.inherits=function(a,b){function c(){}c.prototype=b.prototype;a.superClass_= b.prototype;a.prototype=new c;a.prototype.constructor=a;a.base=function(a,c,f){v ar g=Array.prototype.slice.call(arguments,2);return b.prototype[c].apply(a,g)}};
19 goog.base=function(a,b,c){var d=arguments.callee.caller;if(goog.STRICT_MODE_COMP ATIBLE||goog.DEBUG&&!d)throw Error("arguments.caller not defined. goog.base() c annot be used with strict mode code. See http://www.ecma-international.org/ecma- 262/5.1/#sec-C");if(d.superClass_)return d.superClass_.constructor.apply(a,Array .prototype.slice.call(arguments,1));for(var e=Array.prototype.slice.call(argumen ts,2),f=!1,g=a.constructor;g;g=g.superClass_&&g.superClass_.constructor)if(g.pro totype[b]===d)f=!0;else if(f)return g.prototype[b].apply(a, 19 goog.base=function(a,b,c){var d=arguments.callee.caller;if(goog.STRICT_MODE_COMP ATIBLE||goog.DEBUG&&!d)throw Error("arguments.caller not defined. goog.base() c annot be used with strict mode code. See http://www.ecma-international.org/ecma- 262/5.1/#sec-C");if(d.superClass_)return d.superClass_.constructor.apply(a,Array .prototype.slice.call(arguments,1));for(var e=Array.prototype.slice.call(argumen ts,2),f=!1,g=a.constructor;g;g=g.superClass_&&g.superClass_.constructor)if(g.pro totype[b]===d)f=!0;else if(f)return g.prototype[b].apply(a,
20 e);if(a[b]===d)return a.constructor.prototype[b].apply(a,e);throw Error("goog.ba se called from a method of one name to a method of a different name");};goog.sco pe=function(a){a.call(goog.global)};goog.MODIFY_FUNCTION_PROTOTYPES=!0; 20 e);if(a[b]===d)return a.constructor.prototype[b].apply(a,e);throw Error("goog.ba se called from a method of one name to a method of a different name");};goog.sco pe=function(a){a.call(goog.global)};goog.MODIFY_FUNCTION_PROTOTYPES=!0;
21 goog.MODIFY_FUNCTION_PROTOTYPES&&(Function.prototype.bind=Function.prototype.bin d||function(a,b){if(1<arguments.length){var c=Array.prototype.slice.call(argumen ts,1);c.unshift(this,a);return goog.bind.apply(null,c)}return goog.bind(this,a)} ,Function.prototype.partial=function(a){var b=Array.prototype.slice.call(argumen ts);b.unshift(this,null);return goog.bind.apply(null,b)},Function.prototype.inhe rits=function(a){goog.inherits(this,a)},Function.prototype.mixin=function(a){goo g.mixin(this.prototype, 21 goog.MODIFY_FUNCTION_PROTOTYPES&&(Function.prototype.bind=Function.prototype.bin d||function(a,b){if(1<arguments.length){var c=Array.prototype.slice.call(argumen ts,1);c.unshift(this,a);return goog.bind.apply(null,c)}return goog.bind(this,a)} ,Function.prototype.partial=function(a){var b=Array.prototype.slice.call(argumen ts);b.unshift(this,null);return goog.bind.apply(null,b)},Function.prototype.inhe rits=function(a){goog.inherits(this,a)},Function.prototype.mixin=function(a){goo g.mixin(this.prototype,
22 a)});goog.object={};goog.object.forEach=function(a,b,c){for(var d in a)b.call(c, a[d],d,a)};goog.object.filter=function(a,b,c){var d={},e;for(e in a)b.call(c,a[e ],e,a)&&(d[e]=a[e]);return d};goog.object.map=function(a,b,c){var d={},e;for(e i n a)d[e]=b.call(c,a[e],e,a);return d};goog.object.some=function(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return!0;return!1};goog.object.every=function(a,b,c) {for(var d in a)if(!b.call(c,a[d],d,a))return!1;return!0}; 22 a)});goog.object={};goog.object.forEach=function(a,b,c){for(var d in a)b.call(c, a[d],d,a)};goog.object.filter=function(a,b,c){var d={},e;for(e in a)b.call(c,a[e ],e,a)&&(d[e]=a[e]);return d};goog.object.map=function(a,b,c){var d={},e;for(e i n a)d[e]=b.call(c,a[e],e,a);return d};goog.object.some=function(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return!0;return!1};goog.object.every=function(a,b,c) {for(var d in a)if(!b.call(c,a[d],d,a))return!1;return!0};
23 goog.object.getCount=function(a){var b=0,c;for(c in a)b++;return b};goog.object. getAnyKey=function(a){for(var b in a)return b};goog.object.getAnyValue=function( a){for(var b in a)return a[b]};goog.object.contains=function(a,b){return goog.ob ject.containsValue(a,b)};goog.object.getValues=function(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b};goog.object.getKeys=function(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b}; 23 goog.object.getCount=function(a){var b=0,c;for(c in a)b++;return b};goog.object. getAnyKey=function(a){for(var b in a)return b};goog.object.getAnyValue=function( a){for(var b in a)return a[b]};goog.object.contains=function(a,b){return goog.ob ject.containsValue(a,b)};goog.object.getValues=function(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b};goog.object.getKeys=function(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b};
24 goog.object.getValueByKeys=function(a,b){for(var c=goog.isArrayLike(b),d=c?b:arg uments,c=c?0:1;c<d.length&&(a=a[d[c]],goog.isDef(a));c++);return a};goog.object. containsKey=function(a,b){return b in a};goog.object.containsValue=function(a,b) {for(var c in a)if(a[c]==b)return!0;return!1};goog.object.findKey=function(a,b,c ){for(var d in a)if(b.call(c,a[d],d,a))return d};goog.object.findValue=function( a,b,c){return(b=goog.object.findKey(a,b,c))&&a[b]}; 24 goog.object.getValueByKeys=function(a,b){for(var c=goog.isArrayLike(b),d=c?b:arg uments,c=c?0:1;c<d.length&&(a=a[d[c]],goog.isDef(a));c++);return a};goog.object. containsKey=function(a,b){return b in a};goog.object.containsValue=function(a,b) {for(var c in a)if(a[c]==b)return!0;return!1};goog.object.findKey=function(a,b,c ){for(var d in a)if(b.call(c,a[d],d,a))return d};goog.object.findValue=function( a,b,c){return(b=goog.object.findKey(a,b,c))&&a[b]};
25 goog.object.isEmpty=function(a){for(var b in a)return!1;return!0};goog.object.cl ear=function(a){for(var b in a)delete a[b]};goog.object.remove=function(a,b){var c;(c=b in a)&&delete a[b];return c};goog.object.add=function(a,b,c){if(b in a)t hrow Error('The object already contains the key "'+b+'"');goog.object.set(a,b,c) };goog.object.get=function(a,b,c){return b in a?a[b]:c};goog.object.set=function (a,b,c){a[b]=c};goog.object.setIfUndefined=function(a,b,c){return b in a?a[b]:a[ b]=c}; 25 goog.object.isEmpty=function(a){for(var b in a)return!1;return!0};goog.object.cl ear=function(a){for(var b in a)delete a[b]};goog.object.remove=function(a,b){var c;(c=b in a)&&delete a[b];return c};goog.object.add=function(a,b,c){if(b in a)t hrow Error('The object already contains the key "'+b+'"');goog.object.set(a,b,c) };goog.object.get=function(a,b,c){return b in a?a[b]:c};goog.object.set=function (a,b,c){a[b]=c};goog.object.setIfUndefined=function(a,b,c){return b in a?a[b]:a[ b]=c};
26 goog.object.clone=function(a){var b={},c;for(c in a)b[c]=a[c];return b};goog.obj ect.unsafeClone=function(a){var b=goog.typeOf(a);if("object"==b||"array"==b){if( a.clone)return a.clone();var b="array"==b?[]:{},c;for(c in a)b[c]=goog.object.un safeClone(a[c]);return b}return a};goog.object.transpose=function(a){var b={},c; for(c in a)b[a[c]]=c;return b};goog.object.PROTOTYPE_FIELDS_="constructor hasOwn Property isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".spl it(" "); 26 goog.object.clone=function(a){var b={},c;for(c in a)b[c]=a[c];return b};goog.obj ect.unsafeClone=function(a){var b=goog.typeOf(a);if("object"==b||"array"==b){if( a.clone)return a.clone();var b="array"==b?[]:{},c;for(c in a)b[c]=goog.object.un safeClone(a[c]);return b}return a};goog.object.transpose=function(a){var b={},c; for(c in a)b[a[c]]=c;return b};goog.object.PROTOTYPE_FIELDS_="constructor hasOwn Property isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".spl it(" ");
27 goog.object.extend=function(a,b){for(var c,d,e=1;e<arguments.length;e++){d=argum ents[e];for(c in d)a[c]=d[c];for(var f=0;f<goog.object.PROTOTYPE_FIELDS_.length; f++)c=goog.object.PROTOTYPE_FIELDS_[f],Object.prototype.hasOwnProperty.call(d,c) &&(a[c]=d[c])}}; 27 goog.object.extend=function(a,b){for(var c,d,e=1;e<arguments.length;e++){d=argum ents[e];for(c in d)a[c]=d[c];for(var f=0;f<goog.object.PROTOTYPE_FIELDS_.length; f++)c=goog.object.PROTOTYPE_FIELDS_[f],Object.prototype.hasOwnProperty.call(d,c) &&(a[c]=d[c])}};
28 goog.object.create=function(a){var b=arguments.length;if(1==b&&goog.isArray(argu ments[0]))return goog.object.create.apply(null,arguments[0]);if(b%2)throw Error( "Uneven number of arguments");for(var c={},d=0;d<b;d+=2)c[arguments[d]]=argument s[d+1];return c};goog.object.createSet=function(a){var b=arguments.length;if(1== b&&goog.isArray(arguments[0]))return goog.object.createSet.apply(null,arguments[ 0]);for(var c={},d=0;d<b;d++)c[arguments[d]]=!0;return c}; 28 goog.object.create=function(a){var b=arguments.length;if(1==b&&goog.isArray(argu ments[0]))return goog.object.create.apply(null,arguments[0]);if(b%2)throw Error( "Uneven number of arguments");for(var c={},d=0;d<b;d+=2)c[arguments[d]]=argument s[d+1];return c};goog.object.createSet=function(a){var b=arguments.length;if(1== b&&goog.isArray(arguments[0]))return goog.object.createSet.apply(null,arguments[ 0]);for(var c={},d=0;d<b;d++)c[arguments[d]]=!0;return c};
29 goog.object.createImmutableView=function(a){var b=a;Object.isFrozen&&!Object.isF rozen(a)&&(b=Object.create(a),Object.freeze(b));return b};goog.object.isImmutabl eView=function(a){return!!Object.isFrozen&&Object.isFrozen(a)};var cvox={};cvox. ChromeVoxJSON||(cvox.ChromeVoxJSON={}); 29 goog.object.createImmutableView=function(a){var b=a;Object.isFrozen&&!Object.isF rozen(a)&&(b=Object.create(a),Object.freeze(b));return b};goog.object.isImmutabl eView=function(a){return!!Object.isFrozen&&Object.isFrozen(a)};var cvox={};cvox. ChromeVoxJSON||(cvox.ChromeVoxJSON={});
30 window.JSON&&"[object JSON]"==window.JSON.toString()?cvox.ChromeVoxJSON=window.J SON:function(){function a(a){return 10>a?"0"+a:a}function b(a){e.lastIndex=0;ret urn e.test(a)?'"'+a.replace(e,function(a){var b=h[a];return"string"===typeof b?b :"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+a+'"'}function c(a,d){var e,h,m,s,u=f,t,r=d[a];r&&"object"===typeof r&&"function"===typeof r.to JSON&&(r=r.toJSON(a));"function"===typeof k&&(r=k.call(d,a,r));switch(typeof r){ case "string":return b(r); 30 window.JSON&&"[object JSON]"==window.JSON.toString()?cvox.ChromeVoxJSON=window.J SON:function(){function a(a){return 10>a?"0"+a:a}function b(a){e.lastIndex=0;ret urn e.test(a)?'"'+a.replace(e,function(a){var b=h[a];return"string"===typeof b?b :"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+a+'"'}function c(a,d){var e,h,m,s,u=f,t,r=d[a];r&&"object"===typeof r&&"function"===typeof r.to JSON&&(r=r.toJSON(a));"function"===typeof k&&(r=k.call(d,a,r));switch(typeof r){ case "string":return b(r);
31 case "number":return isFinite(r)?String(r):"null";case "boolean":case "null":ret urn String(r);case "object":if(!r)return"null";f+=g;t=[];if("[object Array]"===O bject.prototype.toString.apply(r)){s=r.length;for(e=0;e<s;e+=1)t[e]=c(e,r)||"nul l";m=0===t.length?"[]":f?"[\n"+f+t.join(",\n"+f)+"\n"+u+"]":"["+t.join(",")+"]"; f=u;return m}if(k&&"object"===typeof k)for(s=k.length,e=0;e<s;e+=1)h=k[e],"strin g"===typeof h&&(m=c(h,r))&&t.push(b(h)+(f?": ":":")+m);else for(h in r)Object.ha sOwnProperty.call(r,h)&& 31 case "number":return isFinite(r)?String(r):"null";case "boolean":case "null":ret urn String(r);case "object":if(!r)return"null";f+=g;t=[];if("[object Array]"===O bject.prototype.toString.apply(r)){s=r.length;for(e=0;e<s;e+=1)t[e]=c(e,r)||"nul l";m=0===t.length?"[]":f?"[\n"+f+t.join(",\n"+f)+"\n"+u+"]":"["+t.join(",")+"]"; f=u;return m}if(k&&"object"===typeof k)for(s=k.length,e=0;e<s;e+=1)h=k[e],"strin g"===typeof h&&(m=c(h,r))&&t.push(b(h)+(f?": ":":")+m);else for(h in r)Object.ha sOwnProperty.call(r,h)&&
32 (m=c(h,r))&&t.push(b(h)+(f?": ":":")+m);m=0===t.length?"{}":f?"{\n"+f+t.join(",\ n"+f)+"\n"+u+"}":"{"+t.join(",")+"}";f=u;return m}}"function"!==typeof Date.prot otype.toJSON&&(Date.prototype.toJSON=function(){return isFinite(this.valueOf())? this.getUTCFullYear()+"-"+a(this.getUTCMonth()+1)+"-"+a(this.getUTCDate())+"T"+a (this.getUTCHours())+":"+a(this.getUTCMinutes())+":"+a(this.getUTCSeconds())+"Z" :"null"},String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSO N=function(){return this.valueOf()}); 32 (m=c(h,r))&&t.push(b(h)+(f?": ":":")+m);m=0===t.length?"{}":f?"{\n"+f+t.join(",\ n"+f)+"\n"+u+"}":"{"+t.join(",")+"}";f=u;return m}}"function"!==typeof Date.prot otype.toJSON&&(Date.prototype.toJSON=function(){return isFinite(this.valueOf())? this.getUTCFullYear()+"-"+a(this.getUTCMonth()+1)+"-"+a(this.getUTCDate())+"T"+a (this.getUTCHours())+":"+a(this.getUTCMinutes())+":"+a(this.getUTCSeconds())+"Z" :"null"},String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSO N=function(){return this.valueOf()});
33 var d=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2 060-\u206f\ufeff\ufff0-\uffff]/g,e=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u 070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,f, g,h={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\ "},k;"function"!==typeof cvox.ChromeVoxJSON.stringify&&(cvox.ChromeVoxJSON.strin gify=function(a,b,d){var e;g=f="";if("number"===typeof d)for(e=0;e<d;e+=1)g+=" " ;else"string"===typeof d&& 33 var d=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2 060-\u206f\ufeff\ufff0-\uffff]/g,e=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u 070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,f, g,h={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\ "},k;"function"!==typeof cvox.ChromeVoxJSON.stringify&&(cvox.ChromeVoxJSON.strin gify=function(a,b,d){var e;g=f="";if("number"===typeof d)for(e=0;e<d;e+=1)g+=" " ;else"string"===typeof d&&
34 (g=d);if((k=b)&&"function"!==typeof b&&("object"!==typeof b||"number"!==typeof b .length))throw Error("JSON.stringify");return c("",{"":a})});"function"!==typeof cvox.ChromeVoxJSON.parse&&(cvox.ChromeVoxJSON.parse=function(a,b){function c(a, d){var e,f,g=a[d];if(g&&"object"===typeof g)for(e in g)Object.hasOwnProperty.cal l(g,e)&&(f=c(g,e),void 0!==f?g[e]=f:delete g[e]);return b.call(a,d,g)}var e;a=St ring(a);d.lastIndex=0;d.test(a)&&(a=a.replace(d,function(a){return"\\u"+("0000"+ a.charCodeAt(0).toString(16)).slice(-4)})); 34 (g=d);if((k=b)&&"function"!==typeof b&&("object"!==typeof b||"number"!==typeof b .length))throw Error("JSON.stringify");return c("",{"":a})});"function"!==typeof cvox.ChromeVoxJSON.parse&&(cvox.ChromeVoxJSON.parse=function(a,b){function c(a, d){var e,f,g=a[d];if(g&&"object"===typeof g)for(e in g)Object.hasOwnProperty.cal l(g,e)&&(f=c(g,e),void 0!==f?g[e]=f:delete g[e]);return b.call(a,d,g)}var e;a=St ring(a);d.lastIndex=0;d.test(a)&&(a=a.replace(d,function(a){return"\\u"+("0000"+ a.charCodeAt(0).toString(16)).slice(-4)}));
35 if(/^[\],:{}\s]*$/.test(a.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").rep lace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").rep lace(/(?:^|:|,)(?:\s*\[)+/g,"")))return e=eval("("+a+")"),"function"===typeof b? c({"":e},""):e;throw new SyntaxError("JSON.parse");})}();cvox.ExtensionBridge=fu nction(){};cvox.ExtensionBridge.init=function(){var a=cvox.ExtensionBridge;a.mes sageListeners=[];a.disconnectListeners=[];/^chrome-extension:\/\/.*background\.h tml$/.test(window.location.href)?(a.context=a.BACKGROUND,a.initBackground()):chr ome&&chrome.extension&&(a.context=a.CONTENT_SCRIPT,a.initContentScript())};cvox. ExtensionBridge.BACKGROUND=0;cvox.ExtensionBridge.CONTENT_SCRIPT=1;cvox.Extensio nBridge.PORT_NAME="cvox.ExtensionBridge.Port";cvox.ExtensionBridge.PING_MSG="cvo x.ExtensionBridge.Ping"; 35 if(/^[\],:{}\s]*$/.test(a.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").rep lace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").rep lace(/(?:^|:|,)(?:\s*\[)+/g,"")))return e=eval("("+a+")"),"function"===typeof b? c({"":e},""):e;throw new SyntaxError("JSON.parse");})}();cvox.ExtensionBridge=fu nction(){};cvox.ExtensionBridge.init=function(){var a=cvox.ExtensionBridge;a.mes sageListeners=[];a.disconnectListeners=[];/^chrome-extension:\/\/.*background\.h tml$/.test(window.location.href)?(a.context=a.BACKGROUND,a.initBackground()):chr ome&&chrome.extension&&(a.context=a.CONTENT_SCRIPT,a.initContentScript())};cvox. ExtensionBridge.BACKGROUND=0;cvox.ExtensionBridge.CONTENT_SCRIPT=1;cvox.Extensio nBridge.PORT_NAME="cvox.ExtensionBridge.Port";cvox.ExtensionBridge.PING_MSG="cvo x.ExtensionBridge.Ping";
36 cvox.ExtensionBridge.PONG_MSG="cvox.ExtensionBridge.Pong";cvox.ExtensionBridge.s end=function(a){var b=cvox.ExtensionBridge;switch(b.context){case b.BACKGROUND:b .sendBackgroundToContentScript(a);break;case b.CONTENT_SCRIPT:b.sendContentScrip tToBackground(a)}};cvox.ExtensionBridge.addMessageListener=function(a){cvox.Exte nsionBridge.messageListeners.push(a)};cvox.ExtensionBridge.addDisconnectListener =function(a){cvox.ExtensionBridge.disconnectListeners.push(a)}; 36 cvox.ExtensionBridge.PONG_MSG="cvox.ExtensionBridge.Pong";cvox.ExtensionBridge.s end=function(a){var b=cvox.ExtensionBridge;switch(b.context){case b.BACKGROUND:b .sendBackgroundToContentScript(a);break;case b.CONTENT_SCRIPT:b.sendContentScrip tToBackground(a)}};cvox.ExtensionBridge.addMessageListener=function(a){cvox.Exte nsionBridge.messageListeners.push(a)};cvox.ExtensionBridge.addDisconnectListener =function(a){cvox.ExtensionBridge.disconnectListeners.push(a)};
37 cvox.ExtensionBridge.removeMessageListeners=function(){cvox.ExtensionBridge.mess ageListeners.length=0};cvox.ExtensionBridge.uniqueId=function(){return cvox.Exte nsionBridge.id_}; 37 cvox.ExtensionBridge.removeMessageListeners=function(){cvox.ExtensionBridge.mess ageListeners.length=0};cvox.ExtensionBridge.uniqueId=function(){return cvox.Exte nsionBridge.id_};
38 cvox.ExtensionBridge.initBackground=function(){var a=cvox.ExtensionBridge;a.port Cache_=[];a.nextPongId_=1;a.id_=0;var b=function(b){b.name==a.PORT_NAME&&(a.port Cache_.push(b),b.onMessage.addListener(function(d){if(d[cvox.ExtensionBridge.PIN G_MSG])d={},d[cvox.ExtensionBridge.PONG_MSG]=a.nextPongId_++,b.postMessage(d);el se for(var e=0;e<a.messageListeners.length;e++)a.messageListeners[e](d,b)}),b.on Disconnect.addListener(function(){for(var d=0;d<a.portCache_.length;d++)if(a.por tCache_[d]==b){a.portCache_.splice(d, 38 cvox.ExtensionBridge.initBackground=function(){var a=cvox.ExtensionBridge;a.port Cache_=[];a.nextPongId_=1;a.id_=0;var b=function(b){b.name==a.PORT_NAME&&(a.port Cache_.push(b),b.onMessage.addListener(function(d){if(d[cvox.ExtensionBridge.PIN G_MSG])d={},d[cvox.ExtensionBridge.PONG_MSG]=a.nextPongId_++,b.postMessage(d);el se for(var e=0;e<a.messageListeners.length;e++)a.messageListeners[e](d,b)}),b.on Disconnect.addListener(function(){for(var d=0;d<a.portCache_.length;d++)if(a.por tCache_[d]==b){a.portCache_.splice(d,
39 1);break}}))};chrome.extension.onConnect.addListener(b);chrome.extension.onConne ctExternal.addListener(b)}; 39 1);break}}))};chrome.extension.onConnect.addListener(b)};
40 cvox.ExtensionBridge.initContentScript=function(){var a=cvox.ExtensionBridge;a.c onnected=!1;a.pingAttempts=0;a.queuedMessages=[];a.id_=-1;var b=function(b,d,e){ if(!b||!b.srcFile){if(b[cvox.ExtensionBridge.PONG_MSG])a.gotPongFromBackgroundPa ge(b[cvox.ExtensionBridge.PONG_MSG]);else for(d=0;d<a.messageListeners.length;d+ +)a.messageListeners[d](b,cvox.ExtensionBridge.backgroundPort);e({})}};chrome.ex tension.onMessage.addListener(b);a.setupBackgroundPort();a.tryToPingBackgroundPa ge()}; 40 cvox.ExtensionBridge.initContentScript=function(){var a=cvox.ExtensionBridge;a.c onnected=!1;a.pingAttempts=0;a.queuedMessages=[];a.id_=-1;var b=function(b,d,e){ if(!b||!b.srcFile){if(b[cvox.ExtensionBridge.PONG_MSG])a.gotPongFromBackgroundPa ge(b[cvox.ExtensionBridge.PONG_MSG]);else for(d=0;d<a.messageListeners.length;d+ +)a.messageListeners[d](b,cvox.ExtensionBridge.backgroundPort);e({})}};chrome.ex tension.onMessage.addListener(b);a.setupBackgroundPort();a.tryToPingBackgroundPa ge()};
41 cvox.ExtensionBridge.setupBackgroundPort=function(){var a=cvox.ExtensionBridge;a .backgroundPort=chrome.extension.connect({name:a.PORT_NAME});a.backgroundPort.on Message.addListener(function(b){if(b[cvox.ExtensionBridge.PONG_MSG])a.gotPongFro mBackgroundPage(b[cvox.ExtensionBridge.PONG_MSG]);else for(var c=0;c<a.messageLi steners.length;c++)a.messageListeners[c](b,a.backgroundPort)});a.backgroundPort. onDisconnect.addListener(function(){if(a.connected)for(var b=0;b<a.disconnectLis teners.length;b++)a.disconnectListeners[b](); 41 cvox.ExtensionBridge.setupBackgroundPort=function(){var a=cvox.ExtensionBridge;a .backgroundPort=chrome.extension.connect({name:a.PORT_NAME});a.backgroundPort.on Message.addListener(function(b){if(b[cvox.ExtensionBridge.PONG_MSG])a.gotPongFro mBackgroundPage(b[cvox.ExtensionBridge.PONG_MSG]);else for(var c=0;c<a.messageLi steners.length;c++)a.messageListeners[c](b,a.backgroundPort)});a.backgroundPort. onDisconnect.addListener(function(){if(a.connected)for(var b=0;b<a.disconnectLis teners.length;b++)a.disconnectListeners[b]();
42 else a.backgroundPort=null})};cvox.ExtensionBridge.tryToPingBackgroundPage=funct ion(){var a=cvox.ExtensionBridge;if(!a.connected)if(a.pingAttempts++,5<a.pingAtt empts)for(var b=0;b<a.disconnectListeners.length;b++)a.disconnectListeners[b](); else b={},b[cvox.ExtensionBridge.PING_MSG]=1,a.backgroundPort||a.setupBackground Port(),a.backgroundPort.postMessage(b),window.setTimeout(cvox.ExtensionBridge.tr yToPingBackgroundPage,500)}; 42 else a.backgroundPort=null})};cvox.ExtensionBridge.tryToPingBackgroundPage=funct ion(){var a=cvox.ExtensionBridge;if(!a.connected)if(a.pingAttempts++,5<a.pingAtt empts)for(var b=0;b<a.disconnectListeners.length;b++)a.disconnectListeners[b](); else b={},b[cvox.ExtensionBridge.PING_MSG]=1,a.backgroundPort||a.setupBackground Port(),a.backgroundPort.postMessage(b),window.setTimeout(cvox.ExtensionBridge.tr yToPingBackgroundPage,500)};
43 cvox.ExtensionBridge.gotPongFromBackgroundPage=function(a){var b=cvox.ExtensionB ridge;b.connected=!0;for(b.id_=a;0<b.queuedMessages.length;)b.sendContentScriptT oBackground(b.queuedMessages.shift())};cvox.ExtensionBridge.sendContentScriptToB ackground=function(a){var b=cvox.ExtensionBridge;b.connected?cvox.ExtensionBridg e.backgroundPort?cvox.ExtensionBridge.backgroundPort.postMessage(a):chrome.exten sion.sendMessage(a):b.queuedMessages.push(a)}; 43 cvox.ExtensionBridge.gotPongFromBackgroundPage=function(a){var b=cvox.ExtensionB ridge;b.connected=!0;for(b.id_=a;0<b.queuedMessages.length;)b.sendContentScriptT oBackground(b.queuedMessages.shift())};cvox.ExtensionBridge.sendContentScriptToB ackground=function(a){var b=cvox.ExtensionBridge;b.connected?cvox.ExtensionBridg e.backgroundPort?cvox.ExtensionBridge.backgroundPort.postMessage(a):chrome.exten sion.sendMessage(a):b.queuedMessages.push(a)};
44 cvox.ExtensionBridge.sendBackgroundToContentScript=function(a){chrome.tabs.query ({active:!0,lastFocusedWindow:!0},function(b){b&&0<b.length?chrome.tabs.sendMess age(b[0].id,a):cvox.ExtensionBridge.portCache_.forEach(function(b){b.postMessage (a)})})};cvox.ExtensionBridge.init();cvox.BrailleOverlayWidget=function(){this.a ctive_=!1;this.brailleNode_=this.contentNode_=this.containerNode_=null};goog.add SingletonGetter(cvox.BrailleOverlayWidget);cvox.BrailleOverlayWidget.prototype.i nit=function(){cvox.ExtensionBridge.addMessageListener(goog.bind(this.onMessage_ ,this))};cvox.BrailleOverlayWidget.prototype.setActive=function(a){(this.active_ =a)||this.hide_()};cvox.BrailleOverlayWidget.prototype.isActive=function(){retur n this.active_}; 44 cvox.ExtensionBridge.sendBackgroundToContentScript=function(a){chrome.tabs.query ({active:!0,lastFocusedWindow:!0},function(b){b&&0<b.length?chrome.tabs.sendMess age(b[0].id,a):cvox.ExtensionBridge.portCache_.forEach(function(b){b.postMessage (a)})})};cvox.ExtensionBridge.init();cvox.BrailleOverlayWidget=function(){this.a ctive_=!1;this.brailleNode_=this.contentNode_=this.containerNode_=null};goog.add SingletonGetter(cvox.BrailleOverlayWidget);cvox.BrailleOverlayWidget.prototype.i nit=function(){cvox.ExtensionBridge.addMessageListener(goog.bind(this.onMessage_ ,this))};cvox.BrailleOverlayWidget.prototype.setActive=function(a){(this.active_ =a)||this.hide_()};cvox.BrailleOverlayWidget.prototype.isActive=function(){retur n this.active_};
45 cvox.BrailleOverlayWidget.prototype.show_=function(){var a=this.createContainerN ode_();this.containerNode_=a;var b=this.createOverlayNode_();a.appendChild(b);th is.contentNode_=document.createElement("div");this.brailleNode_=document.createE lement("div");b.appendChild(this.contentNode_);b.appendChild(this.brailleNode_); document.body.appendChild(a);window.setTimeout(function(){a.style.opacity="1.0"} ,0)}; 45 cvox.BrailleOverlayWidget.prototype.show_=function(){var a=this.createContainerN ode_();this.containerNode_=a;var b=this.createOverlayNode_();a.appendChild(b);th is.contentNode_=document.createElement("div");this.brailleNode_=document.createE lement("div");b.appendChild(this.contentNode_);b.appendChild(this.brailleNode_); document.body.appendChild(a);window.setTimeout(function(){a.style.opacity="1.0"} ,0)};
46 cvox.BrailleOverlayWidget.prototype.hide_=function(){if(this.containerNode_){var a=this.containerNode_;a.style.opacity="0.0";window.setTimeout(function(){docume nt.body.removeChild(a)},1E3);this.brailleNode_=this.contentNode_=this.containerN ode_=null}};cvox.BrailleOverlayWidget.prototype.setContent_=function(a,b){this.c ontentNode_||this.show_();this.contentNode_.textContent=a;this.brailleNode_.text Content=b}; 46 cvox.BrailleOverlayWidget.prototype.hide_=function(){if(this.containerNode_){var a=this.containerNode_;a.style.opacity="0.0";window.setTimeout(function(){docume nt.body.removeChild(a)},1E3);this.brailleNode_=this.contentNode_=this.containerN ode_=null}};cvox.BrailleOverlayWidget.prototype.setContent_=function(a,b){this.c ontentNode_||this.show_();this.contentNode_.textContent=a;this.brailleNode_.text Content=b};
47 cvox.BrailleOverlayWidget.prototype.createContainerNode_=function(){var a=docume nt.createElement("div");a.id="cvox-braille-overlay";a.style.position="fixed";a.s tyle.top="50%";a.style.left="50%";a.style["-webkit-transition"]="all 0.3s ease-i n";a.style.opacity="0.0";a.style["z-index"]="2147483647";a.setAttribute("aria-hi dden","true");return a}; 47 cvox.BrailleOverlayWidget.prototype.createContainerNode_=function(){var a=docume nt.createElement("div");a.id="cvox-braille-overlay";a.style.position="fixed";a.s tyle.top="50%";a.style.left="50%";a.style["-webkit-transition"]="all 0.3s ease-i n";a.style.opacity="0.0";a.style["z-index"]="2147483647";a.setAttribute("aria-hi dden","true");return a};
48 cvox.BrailleOverlayWidget.prototype.createOverlayNode_=function(){var a=document .createElement("div");a.style.position="fixed";a.style.left="40px";a.style.botto m="20px";a.style["line-height"]="1.2em";a.style["font-size"]="20px";a.style["fon t-family"]="monospace";a.style.padding="30px";a.style["min-width"]="150px";a.sty le.color="#fff";a.style["background-color"]="rgba(0, 0, 0, 0.7)";a.style["border -radius"]="10px";return a}; 48 cvox.BrailleOverlayWidget.prototype.createOverlayNode_=function(){var a=document .createElement("div");a.style.position="fixed";a.style.left="40px";a.style.botto m="20px";a.style["line-height"]="1.2em";a.style["font-size"]="20px";a.style["fon t-family"]="monospace";a.style.padding="30px";a.style["min-width"]="150px";a.sty le.color="#fff";a.style["background-color"]="rgba(0, 0, 0, 0.7)";a.style["border -radius"]="10px";return a};
49 cvox.BrailleOverlayWidget.prototype.onMessage_=function(a){"BRAILLE_CAPTION"==a. message&&this.setContent_(a.text,a.brailleChars)};cvox.VERBOSITY_VERBOSE=0;cvox. VERBOSITY_BRIEF=1;cvox.ChromeVox=function(){};cvox.ChromeVox.host=null;cvox.Chro meVox.msgs=null;cvox.ChromeVox.isActive=!0;cvox.ChromeVox.version=null;cvox.Chro meVox.earcons=null;cvox.ChromeVox.navigationManager=null;cvox.ChromeVox.serializ er=null;cvox.ChromeVox.isStickyOn=!1;cvox.ChromeVox.keyPrefixOn=!1;cvox.ChromeVo x.verbosity=cvox.VERBOSITY_VERBOSE;cvox.ChromeVox.typingEcho=0;cvox.ChromeVox.ke yEcho={};cvox.ChromeVox.position={};cvox.ChromeVox.isChromeOS=-1!=navigator.user Agent.indexOf("CrOS"); 49 cvox.BrailleOverlayWidget.prototype.onMessage_=function(a){"BRAILLE_CAPTION"==a. message&&this.setContent_(a.text,a.brailleChars)};cvox.VERBOSITY_VERBOSE=0;cvox. VERBOSITY_BRIEF=1;cvox.ChromeVox=function(){};cvox.ChromeVox.host=null;cvox.Chro meVox.msgs=null;cvox.ChromeVox.isActive=!0;cvox.ChromeVox.version=null;cvox.Chro meVox.earcons=null;cvox.ChromeVox.navigationManager=null;cvox.ChromeVox.serializ er=null;cvox.ChromeVox.isStickyOn=!1;cvox.ChromeVox.keyPrefixOn=!1;cvox.ChromeVo x.verbosity=cvox.VERBOSITY_VERBOSE;cvox.ChromeVox.typingEcho=0;cvox.ChromeVox.ke yEcho={};cvox.ChromeVox.position={};cvox.ChromeVox.isChromeOS=-1!=navigator.user Agent.indexOf("CrOS");
50 cvox.ChromeVox.isMac=-1!=navigator.platform.indexOf("Mac");cvox.ChromeVox.modKey Str=cvox.ChromeVox.isChromeOS?"Shift+Search":cvox.ChromeVox.isMac?"Ctrl+Cmd":"Sh ift+Alt";cvox.ChromeVox.sequenceSwitchKeyCodes=[];cvox.ChromeVox.visitedUrls={}; cvox.ChromeVox.markInUserCommand=function(){};cvox.ChromeVox.syncToNode=function (){};cvox.ChromeVox.speakNode=function(){};cvox.ChromeVox.executeUserCommand=fun ction(){};cvox.ChromeVox.entireDocumentIsHidden=!1; 50 cvox.ChromeVox.isMac=-1!=navigator.platform.indexOf("Mac");cvox.ChromeVox.modKey Str=cvox.ChromeVox.isChromeOS?"Shift+Search":cvox.ChromeVox.isMac?"Ctrl+Cmd":"Sh ift+Alt";cvox.ChromeVox.sequenceSwitchKeyCodes=[];cvox.ChromeVox.visitedUrls={}; cvox.ChromeVox.markInUserCommand=function(){};cvox.ChromeVox.syncToNode=function (){};cvox.ChromeVox.speakNode=function(){};cvox.ChromeVox.executeUserCommand=fun ction(){};cvox.ChromeVox.entireDocumentIsHidden=!1;
51 cvox.ChromeVox.storeOn=function(a){a.isStickyOn=cvox.ChromeVox.isStickyOn;cvox.C hromeVox.navigationManager.storeOn(a)};cvox.ChromeVox.readFrom=function(a){cvox. ChromeVox.isStickyOn=a.isStickyOn;cvox.ChromeVox.navigationManager.readFrom(a)}; cvox.UserEventDetail=function(a){this.command=this.category="";-1!=cvox.UserEven tDetail.JUMP_COMMANDS.indexOf(a.command)&&(this.command=a.command,this.category= cvox.UserEventDetail.Category.JUMP);this.customCommand="";a.customCommand&&(this .customCommand=a.customCommand,this.category=cvox.UserEventDetail.Category.CUSTO M);this.status=cvox.UserEventDetail.Status.PENDING;switch(a.status){case cvox.Us erEventDetail.Status.SUCCESS:this.status=cvox.UserEventDetail.Status.SUCCESS;bre ak;case cvox.UserEventDetail.Status.FAILURE:this.status= 51 cvox.ChromeVox.storeOn=function(a){a.isStickyOn=cvox.ChromeVox.isStickyOn;cvox.C hromeVox.navigationManager.storeOn(a)};cvox.ChromeVox.readFrom=function(a){cvox. ChromeVox.isStickyOn=a.isStickyOn;cvox.ChromeVox.navigationManager.readFrom(a)}; cvox.UserEventDetail=function(a){this.command=this.category="";-1!=cvox.UserEven tDetail.JUMP_COMMANDS.indexOf(a.command)&&(this.command=a.command,this.category= cvox.UserEventDetail.Category.JUMP);this.customCommand="";a.customCommand&&(this .customCommand=a.customCommand,this.category=cvox.UserEventDetail.Category.CUSTO M);this.status=cvox.UserEventDetail.Status.PENDING;switch(a.status){case cvox.Us erEventDetail.Status.SUCCESS:this.status=cvox.UserEventDetail.Status.SUCCESS;bre ak;case cvox.UserEventDetail.Status.FAILURE:this.status=
52 cvox.UserEventDetail.Status.FAILURE}this.resultNode=null;a.resultNode&&cvox.DomU til.isAttachedToDocument(a.resultNode)&&(this.resultNode=a.resultNode)};cvox.Use rEventDetail.Category={JUMP:"ATJumpEvent",CUSTOM:"ATCustomEvent"};cvox.UserEvent Detail.Status={PENDING:"PENDING",SUCCESS:"SUCCESS",FAILURE:"FAILURE"};cvox.UserE ventDetail.JUMP_COMMANDS="nextCheckbox previousCheckbox nextRadio previousRadio nextSlider previousSlider nextGraphic previousGraphic nextButton previousButton nextComboBox previousComboBox nextEditText previousEditText nextHeading previous Heading nextHeading1 previousHeading1 nextHeading2 previousHeading2 nextHeading3 previousHeading3 nextHeading4 previousHeading4 nextHeading5 previousHeading5 ne xtHeading6 previousHeading6 nextLink previousLink nextMath previousMath nextTabl e previousTable nextList previousList nextListItem previousListItem nextFormFiel d previousFormField nextLandmark previousLandmark nextSection previousSection ne xtControl previousControl".split(" "); 52 cvox.UserEventDetail.Status.FAILURE}this.resultNode=null;a.resultNode&&cvox.DomU til.isAttachedToDocument(a.resultNode)&&(this.resultNode=a.resultNode)};cvox.Use rEventDetail.Category={JUMP:"ATJumpEvent",CUSTOM:"ATCustomEvent"};cvox.UserEvent Detail.Status={PENDING:"PENDING",SUCCESS:"SUCCESS",FAILURE:"FAILURE"};cvox.UserE ventDetail.JUMP_COMMANDS="nextCheckbox previousCheckbox nextRadio previousRadio nextSlider previousSlider nextGraphic previousGraphic nextButton previousButton nextComboBox previousComboBox nextEditText previousEditText nextHeading previous Heading nextHeading1 previousHeading1 nextHeading2 previousHeading2 nextHeading3 previousHeading3 nextHeading4 previousHeading4 nextHeading5 previousHeading5 ne xtHeading6 previousHeading6 nextLink previousLink nextMath previousMath nextTabl e previousTable nextList previousList nextListItem previousListItem nextFormFiel d previousFormField nextLandmark previousLandmark nextSection previousSection ne xtControl previousControl".split(" ");
53 cvox.UserEventDetail.prototype.createEventObject=function(){var a=document.creat eEvent("CustomEvent");a.initCustomEvent(this.category,!0,!0,this);return a};goog .debug={};goog.debug.Error=function(a){if(Error.captureStackTrace)Error.captureS tackTrace(this,goog.debug.Error);else{var b=Error().stack;b&&(this.stack=b)}a&&( this.message=String(a))};goog.inherits(goog.debug.Error,Error);goog.debug.Error. prototype.name="CustomError";goog.dom={};goog.dom.NodeType={ELEMENT:1,ATTRIBUTE: 2,TEXT:3,CDATA_SECTION:4,ENTITY_REFERENCE:5,ENTITY:6,PROCESSING_INSTRUCTION:7,CO MMENT:8,DOCUMENT:9,DOCUMENT_TYPE:10,DOCUMENT_FRAGMENT:11,NOTATION:12};goog.strin g={};goog.string.Unicode={NBSP:"\u00a0"};goog.string.startsWith=function(a,b){re turn 0==a.lastIndexOf(b,0)};goog.string.endsWith=function(a,b){var c=a.length-b. length;return 0<=c&&a.indexOf(b,c)==c};goog.string.caseInsensitiveStartsWith=fun ction(a,b){return 0==goog.string.caseInsensitiveCompare(b,a.substr(0,b.length))} ;goog.string.caseInsensitiveEndsWith=function(a,b){return 0==goog.string.caseIns ensitiveCompare(b,a.substr(a.length-b.length,b.length))}; 53 cvox.UserEventDetail.prototype.createEventObject=function(){var a=document.creat eEvent("CustomEvent");a.initCustomEvent(this.category,!0,!0,this);return a};goog .debug={};goog.debug.Error=function(a){if(Error.captureStackTrace)Error.captureS tackTrace(this,goog.debug.Error);else{var b=Error().stack;b&&(this.stack=b)}a&&( this.message=String(a))};goog.inherits(goog.debug.Error,Error);goog.debug.Error. prototype.name="CustomError";goog.dom={};goog.dom.NodeType={ELEMENT:1,ATTRIBUTE: 2,TEXT:3,CDATA_SECTION:4,ENTITY_REFERENCE:5,ENTITY:6,PROCESSING_INSTRUCTION:7,CO MMENT:8,DOCUMENT:9,DOCUMENT_TYPE:10,DOCUMENT_FRAGMENT:11,NOTATION:12};goog.strin g={};goog.string.Unicode={NBSP:"\u00a0"};goog.string.startsWith=function(a,b){re turn 0==a.lastIndexOf(b,0)};goog.string.endsWith=function(a,b){var c=a.length-b. length;return 0<=c&&a.indexOf(b,c)==c};goog.string.caseInsensitiveStartsWith=fun ction(a,b){return 0==goog.string.caseInsensitiveCompare(b,a.substr(0,b.length))} ;goog.string.caseInsensitiveEndsWith=function(a,b){return 0==goog.string.caseIns ensitiveCompare(b,a.substr(a.length-b.length,b.length))};
54 goog.string.caseInsensitiveEquals=function(a,b){return a.toLowerCase()==b.toLowe rCase()};goog.string.subs=function(a,b){for(var c=a.split("%s"),d="",e=Array.pro totype.slice.call(arguments,1);e.length&&1<c.length;)d+=c.shift()+e.shift();retu rn d+c.join("%s")};goog.string.collapseWhitespace=function(a){return a.replace(/ [\s\xa0]+/g," ").replace(/^\s+|\s+$/g,"")};goog.string.isEmpty=function(a){retur n/^[\s\xa0]*$/.test(a)};goog.string.isEmptySafe=function(a){return goog.string.i sEmpty(goog.string.makeSafe(a))}; 54 goog.string.caseInsensitiveEquals=function(a,b){return a.toLowerCase()==b.toLowe rCase()};goog.string.subs=function(a,b){for(var c=a.split("%s"),d="",e=Array.pro totype.slice.call(arguments,1);e.length&&1<c.length;)d+=c.shift()+e.shift();retu rn d+c.join("%s")};goog.string.collapseWhitespace=function(a){return a.replace(/ [\s\xa0]+/g," ").replace(/^\s+|\s+$/g,"")};goog.string.isEmpty=function(a){retur n/^[\s\xa0]*$/.test(a)};goog.string.isEmptySafe=function(a){return goog.string.i sEmpty(goog.string.makeSafe(a))};
55 goog.string.isBreakingWhitespace=function(a){return!/[^\t\n\r ]/.test(a)};goog.s tring.isAlpha=function(a){return!/[^a-zA-Z]/.test(a)};goog.string.isNumeric=func tion(a){return!/[^0-9]/.test(a)};goog.string.isAlphaNumeric=function(a){return!/ [^a-zA-Z0-9]/.test(a)};goog.string.isSpace=function(a){return" "==a};goog.string .isUnicodeChar=function(a){return 1==a.length&&" "<=a&&"~">=a||"\u0080"<=a&&"\uf ffd">=a};goog.string.stripNewlines=function(a){return a.replace(/(\r\n|\r|\n)+/g ," ")}; 55 goog.string.isBreakingWhitespace=function(a){return!/[^\t\n\r ]/.test(a)};goog.s tring.isAlpha=function(a){return!/[^a-zA-Z]/.test(a)};goog.string.isNumeric=func tion(a){return!/[^0-9]/.test(a)};goog.string.isAlphaNumeric=function(a){return!/ [^a-zA-Z0-9]/.test(a)};goog.string.isSpace=function(a){return" "==a};goog.string .isUnicodeChar=function(a){return 1==a.length&&" "<=a&&"~">=a||"\u0080"<=a&&"\uf ffd">=a};goog.string.stripNewlines=function(a){return a.replace(/(\r\n|\r|\n)+/g ," ")};
56 goog.string.canonicalizeNewlines=function(a){return a.replace(/(\r\n|\r|\n)/g,"\ n")};goog.string.normalizeWhitespace=function(a){return a.replace(/\xa0|\s/g," " )};goog.string.normalizeSpaces=function(a){return a.replace(/\xa0|[ \t]+/g," ")} ;goog.string.collapseBreakingSpaces=function(a){return a.replace(/[\t\r\n ]+/g," ").replace(/^[\t\r\n ]+|[\t\r\n ]+$/g,"")};goog.string.trim=function(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")}; 56 goog.string.canonicalizeNewlines=function(a){return a.replace(/(\r\n|\r|\n)/g,"\ n")};goog.string.normalizeWhitespace=function(a){return a.replace(/\xa0|\s/g," " )};goog.string.normalizeSpaces=function(a){return a.replace(/\xa0|[ \t]+/g," ")} ;goog.string.collapseBreakingSpaces=function(a){return a.replace(/[\t\r\n ]+/g," ").replace(/^[\t\r\n ]+|[\t\r\n ]+$/g,"")};goog.string.trim=function(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")};
57 goog.string.trimLeft=function(a){return a.replace(/^[\s\xa0]+/,"")};goog.string. trimRight=function(a){return a.replace(/[\s\xa0]+$/,"")};goog.string.caseInsensi tiveCompare=function(a,b){var c=String(a).toLowerCase(),d=String(b).toLowerCase( );return c<d?-1:c==d?0:1};goog.string.numerateCompareRegExp_=/(\.\d+)|(\d+)|(\D+ )/g; 57 goog.string.trimLeft=function(a){return a.replace(/^[\s\xa0]+/,"")};goog.string. trimRight=function(a){return a.replace(/[\s\xa0]+$/,"")};goog.string.caseInsensi tiveCompare=function(a,b){var c=String(a).toLowerCase(),d=String(b).toLowerCase( );return c<d?-1:c==d?0:1};goog.string.numerateCompareRegExp_=/(\.\d+)|(\d+)|(\D+ )/g;
58 goog.string.numerateCompare=function(a,b){if(a==b)return 0;if(!a)return-1;if(!b) return 1;for(var c=a.toLowerCase().match(goog.string.numerateCompareRegExp_),d=b .toLowerCase().match(goog.string.numerateCompareRegExp_),e=Math.min(c.length,d.l ength),f=0;f<e;f++){var g=c[f],h=d[f];if(g!=h)return c=parseInt(g,10),!isNaN(c)& &(d=parseInt(h,10),!isNaN(d)&&c-d)?c-d:g<h?-1:1}return c.length!=d.length?c.leng th-d.length:a<b?-1:1};goog.string.urlEncode=function(a){return encodeURIComponen t(String(a))}; 58 goog.string.numerateCompare=function(a,b){if(a==b)return 0;if(!a)return-1;if(!b) return 1;for(var c=a.toLowerCase().match(goog.string.numerateCompareRegExp_),d=b .toLowerCase().match(goog.string.numerateCompareRegExp_),e=Math.min(c.length,d.l ength),f=0;f<e;f++){var g=c[f],h=d[f];if(g!=h)return c=parseInt(g,10),!isNaN(c)& &(d=parseInt(h,10),!isNaN(d)&&c-d)?c-d:g<h?-1:1}return c.length!=d.length?c.leng th-d.length:a<b?-1:1};goog.string.urlEncode=function(a){return encodeURIComponen t(String(a))};
59 goog.string.urlDecode=function(a){return decodeURIComponent(a.replace(/\+/g," ") )};goog.string.newLineToBr=function(a,b){return a.replace(/(\r\n|\r|\n)/g,b?"<br />":"<br>")}; 59 goog.string.urlDecode=function(a){return decodeURIComponent(a.replace(/\+/g," ") )};goog.string.newLineToBr=function(a,b){return a.replace(/(\r\n|\r|\n)/g,b?"<br />":"<br>")};
60 goog.string.htmlEscape=function(a,b){if(b)return a.replace(goog.string.amperRe_, "&amp;").replace(goog.string.ltRe_,"&lt;").replace(goog.string.gtRe_,"&gt;").rep lace(goog.string.quotRe_,"&quot;").replace(goog.string.singleQuoteRe_,"&#39;");i f(!goog.string.allRe_.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(goog.str ing.amperRe_,"&amp;"));-1!=a.indexOf("<")&&(a=a.replace(goog.string.ltRe_,"&lt;" ));-1!=a.indexOf(">")&&(a=a.replace(goog.string.gtRe_,"&gt;"));-1!=a.indexOf('"' )&&(a=a.replace(goog.string.quotRe_, 60 goog.string.htmlEscape=function(a,b){if(b)return a.replace(goog.string.amperRe_, "&amp;").replace(goog.string.ltRe_,"&lt;").replace(goog.string.gtRe_,"&gt;").rep lace(goog.string.quotRe_,"&quot;").replace(goog.string.singleQuoteRe_,"&#39;");i f(!goog.string.allRe_.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(goog.str ing.amperRe_,"&amp;"));-1!=a.indexOf("<")&&(a=a.replace(goog.string.ltRe_,"&lt;" ));-1!=a.indexOf(">")&&(a=a.replace(goog.string.gtRe_,"&gt;"));-1!=a.indexOf('"' )&&(a=a.replace(goog.string.quotRe_,
61 "&quot;"));-1!=a.indexOf("'")&&(a=a.replace(goog.string.singleQuoteRe_,"&#39;")) ;return a};goog.string.amperRe_=/&/g;goog.string.ltRe_=/</g;goog.string.gtRe_=/> /g;goog.string.quotRe_=/"/g;goog.string.singleQuoteRe_=/'/g;goog.string.allRe_=/ [&<>"']/;goog.string.unescapeEntities=function(a){return goog.string.contains(a, "&")?"document"in goog.global?goog.string.unescapeEntitiesUsingDom_(a):goog.stri ng.unescapePureXmlEntities_(a):a}; 61 "&quot;"));-1!=a.indexOf("'")&&(a=a.replace(goog.string.singleQuoteRe_,"&#39;")) ;return a};goog.string.amperRe_=/&/g;goog.string.ltRe_=/</g;goog.string.gtRe_=/> /g;goog.string.quotRe_=/"/g;goog.string.singleQuoteRe_=/'/g;goog.string.allRe_=/ [&<>"']/;goog.string.unescapeEntities=function(a){return goog.string.contains(a, "&")?"document"in goog.global?goog.string.unescapeEntitiesUsingDom_(a):goog.stri ng.unescapePureXmlEntities_(a):a};
62 goog.string.unescapeEntitiesWithDocument=function(a,b){return goog.string.contai ns(a,"&")?goog.string.unescapeEntitiesUsingDom_(a,b):a}; 62 goog.string.unescapeEntitiesWithDocument=function(a,b){return goog.string.contai ns(a,"&")?goog.string.unescapeEntitiesUsingDom_(a,b):a};
63 goog.string.unescapeEntitiesUsingDom_=function(a,b){var c={"&amp;":"&","&lt;":"< ","&gt;":">","&quot;":'"'},d;d=b?b.createElement("div"):document.createElement(" div");return a.replace(goog.string.HTML_ENTITY_PATTERN_,function(a,b){var g=c[a] ;if(g)return g;if("#"==b.charAt(0)){var h=Number("0"+b.substr(1));isNaN(h)||(g=S tring.fromCharCode(h))}g||(d.innerHTML=a+" ",g=d.firstChild.nodeValue.slice(0,-1 ));return c[a]=g})}; 63 goog.string.unescapeEntitiesUsingDom_=function(a,b){var c={"&amp;":"&","&lt;":"< ","&gt;":">","&quot;":'"'},d;d=b?b.createElement("div"):document.createElement(" div");return a.replace(goog.string.HTML_ENTITY_PATTERN_,function(a,b){var g=c[a] ;if(g)return g;if("#"==b.charAt(0)){var h=Number("0"+b.substr(1));isNaN(h)||(g=S tring.fromCharCode(h))}g||(d.innerHTML=a+" ",g=d.firstChild.nodeValue.slice(0,-1 ));return c[a]=g})};
64 goog.string.unescapePureXmlEntities_=function(a){return a.replace(/&([^;]+);/g,f unction(a,c){switch(c){case "amp":return"&";case "lt":return"<";case "gt":return ">";case "quot":return'"';default:if("#"==c.charAt(0)){var d=Number("0"+c.substr (1));if(!isNaN(d))return String.fromCharCode(d)}return a}})};goog.string.HTML_EN TITY_PATTERN_=/&([^;\s<&]+);?/g;goog.string.whitespaceEscape=function(a,b){retur n goog.string.newLineToBr(a.replace(/ /g," &#160;"),b)}; 64 goog.string.unescapePureXmlEntities_=function(a){return a.replace(/&([^;]+);/g,f unction(a,c){switch(c){case "amp":return"&";case "lt":return"<";case "gt":return ">";case "quot":return'"';default:if("#"==c.charAt(0)){var d=Number("0"+c.substr (1));if(!isNaN(d))return String.fromCharCode(d)}return a}})};goog.string.HTML_EN TITY_PATTERN_=/&([^;\s<&]+);?/g;goog.string.whitespaceEscape=function(a,b){retur n goog.string.newLineToBr(a.replace(/ /g," &#160;"),b)};
65 goog.string.stripQuotes=function(a,b){for(var c=b.length,d=0;d<c;d++){var e=1==c ?b:b.charAt(d);if(a.charAt(0)==e&&a.charAt(a.length-1)==e)return a.substring(1,a .length-1)}return a};goog.string.truncate=function(a,b,c){c&&(a=goog.string.unes capeEntities(a));a.length>b&&(a=a.substring(0,b-3)+"...");c&&(a=goog.string.html Escape(a));return a}; 65 goog.string.stripQuotes=function(a,b){for(var c=b.length,d=0;d<c;d++){var e=1==c ?b:b.charAt(d);if(a.charAt(0)==e&&a.charAt(a.length-1)==e)return a.substring(1,a .length-1)}return a};goog.string.truncate=function(a,b,c){c&&(a=goog.string.unes capeEntities(a));a.length>b&&(a=a.substring(0,b-3)+"...");c&&(a=goog.string.html Escape(a));return a};
66 goog.string.truncateMiddle=function(a,b,c,d){c&&(a=goog.string.unescapeEntities( a));if(d&&a.length>b){d>b&&(d=b);var e=a.length-d;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.subst ring(0,e)+"..."+a.substring(d));c&&(a=goog.string.htmlEscape(a));return a};goog. string.specialEscapeChars_={"\x00":"\\0","\b":"\\b","\f":"\\f","\n":"\\n","\r":" \\r","\t":"\\t","\x0B":"\\x0B",'"':'\\"',"\\":"\\\\"};goog.string.jsEscapeCache_ ={"'":"\\'"}; 66 goog.string.truncateMiddle=function(a,b,c,d){c&&(a=goog.string.unescapeEntities( a));if(d&&a.length>b){d>b&&(d=b);var e=a.length-d;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.subst ring(0,e)+"..."+a.substring(d));c&&(a=goog.string.htmlEscape(a));return a};goog. string.specialEscapeChars_={"\x00":"\\0","\b":"\\b","\f":"\\f","\n":"\\n","\r":" \\r","\t":"\\t","\x0B":"\\x0B",'"':'\\"',"\\":"\\\\"};goog.string.jsEscapeCache_ ={"'":"\\'"};
67 goog.string.quote=function(a){a=String(a);if(a.quote)return a.quote();for(var b= ['"'],c=0;c<a.length;c++){var d=a.charAt(c),e=d.charCodeAt(0);b[c+1]=goog.string .specialEscapeChars_[d]||(31<e&&127>e?d:goog.string.escapeChar(d))}b.push('"');r eturn b.join("")};goog.string.escapeString=function(a){for(var b=[],c=0;c<a.leng th;c++)b[c]=goog.string.escapeChar(a.charAt(c));return b.join("")}; 67 goog.string.quote=function(a){a=String(a);if(a.quote)return a.quote();for(var b= ['"'],c=0;c<a.length;c++){var d=a.charAt(c),e=d.charCodeAt(0);b[c+1]=goog.string .specialEscapeChars_[d]||(31<e&&127>e?d:goog.string.escapeChar(d))}b.push('"');r eturn b.join("")};goog.string.escapeString=function(a){for(var b=[],c=0;c<a.leng th;c++)b[c]=goog.string.escapeChar(a.charAt(c));return b.join("")};
68 goog.string.escapeChar=function(a){if(a in goog.string.jsEscapeCache_)return goo g.string.jsEscapeCache_[a];if(a in goog.string.specialEscapeChars_)return goog.s tring.jsEscapeCache_[a]=goog.string.specialEscapeChars_[a];var b=a,c=a.charCodeA t(0);if(31<c&&127>c)b=a;else{if(256>c){if(b="\\x",16>c||256<c)b+="0"}else b="\\u ",4096>c&&(b+="0");b+=c.toString(16).toUpperCase()}return goog.string.jsEscapeCa che_[a]=b};goog.string.toMap=function(a){for(var b={},c=0;c<a.length;c++)b[a.cha rAt(c)]=!0;return b}; 68 goog.string.escapeChar=function(a){if(a in goog.string.jsEscapeCache_)return goo g.string.jsEscapeCache_[a];if(a in goog.string.specialEscapeChars_)return goog.s tring.jsEscapeCache_[a]=goog.string.specialEscapeChars_[a];var b=a,c=a.charCodeA t(0);if(31<c&&127>c)b=a;else{if(256>c){if(b="\\x",16>c||256<c)b+="0"}else b="\\u ",4096>c&&(b+="0");b+=c.toString(16).toUpperCase()}return goog.string.jsEscapeCa che_[a]=b};goog.string.toMap=function(a){for(var b={},c=0;c<a.length;c++)b[a.cha rAt(c)]=!0;return b};
69 goog.string.contains=function(a,b){return-1!=a.indexOf(b)};goog.string.caseInsen sitiveContains=function(a,b){return goog.string.contains(a.toLowerCase(),b.toLow erCase())};goog.string.countOf=function(a,b){return a&&b?a.split(b).length-1:0}; goog.string.removeAt=function(a,b,c){var d=a;0<=b&&b<a.length&&0<c&&(d=a.substr( 0,b)+a.substr(b+c,a.length-b-c));return d};goog.string.remove=function(a,b){var c=RegExp(goog.string.regExpEscape(b),"");return a.replace(c,"")}; 69 goog.string.contains=function(a,b){return-1!=a.indexOf(b)};goog.string.caseInsen sitiveContains=function(a,b){return goog.string.contains(a.toLowerCase(),b.toLow erCase())};goog.string.countOf=function(a,b){return a&&b?a.split(b).length-1:0}; goog.string.removeAt=function(a,b,c){var d=a;0<=b&&b<a.length&&0<c&&(d=a.substr( 0,b)+a.substr(b+c,a.length-b-c));return d};goog.string.remove=function(a,b){var c=new RegExp(goog.string.regExpEscape(b),"");return a.replace(c,"")};
70 goog.string.removeAll=function(a,b){var c=RegExp(goog.string.regExpEscape(b),"g" );return a.replace(c,"")};goog.string.regExpEscape=function(a){return String(a). replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};goog.s tring.repeat=function(a,b){return Array(b+1).join(a)};goog.string.padNumber=func tion(a,b,c){a=goog.isDef(c)?a.toFixed(c):String(a);c=a.indexOf(".");-1==c&&(c=a. length);return goog.string.repeat("0",Math.max(0,b-c))+a}; 70 goog.string.removeAll=function(a,b){var c=new RegExp(goog.string.regExpEscape(b) ,"g");return a.replace(c,"")};goog.string.regExpEscape=function(a){return String (a).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};go og.string.repeat=function(a,b){return Array(b+1).join(a)};goog.string.padNumber= function(a,b,c){a=goog.isDef(c)?a.toFixed(c):String(a);c=a.indexOf(".");-1==c&&( c=a.length);return goog.string.repeat("0",Math.max(0,b-c))+a};
71 goog.string.makeSafe=function(a){return null==a?"":String(a)};goog.string.buildS tring=function(a){return Array.prototype.join.call(arguments,"")};goog.string.ge tRandomString=function(){var a=2147483648;return Math.floor(Math.random()*a).toS tring(36)+Math.abs(Math.floor(Math.random()*a)^goog.now()).toString(36)}; 71 goog.string.makeSafe=function(a){return null==a?"":String(a)};goog.string.buildS tring=function(a){return Array.prototype.join.call(arguments,"")};goog.string.ge tRandomString=function(){var a=2147483648;return Math.floor(Math.random()*a).toS tring(36)+Math.abs(Math.floor(Math.random()*a)^goog.now()).toString(36)};
72 goog.string.compareVersions=function(a,b){for(var c=0,d=goog.string.trim(String( a)).split("."),e=goog.string.trim(String(b)).split("."),f=Math.max(d.length,e.le ngth),g=0;0==c&&g<f;g++){var h=d[g]||"",k=e[g]||"",l=/(\d*)(\D*)/g,n=/(\d*)(\D*) /g;do{var p=l.exec(h)||["","",""],q=n.exec(k)||["","",""];if(0==p[0].length&&0== q[0].length)break;var c=0==p[1].length?0:parseInt(p[1],10),m=0==q[1].length?0:pa rseInt(q[1],10),c=goog.string.compareElements_(c,m)||goog.string.compareElements _(0==p[2].length,0==q[2].length)|| 72 goog.string.compareVersions=function(a,b){for(var c=0,d=goog.string.trim(String( a)).split("."),e=goog.string.trim(String(b)).split("."),f=Math.max(d.length,e.le ngth),g=0;0==c&&g<f;g++){var h=d[g]||"",k=e[g]||"",l=/(\d*)(\D*)/g,n=/(\d*)(\D*) /g;do{var p=l.exec(h)||["","",""],q=n.exec(k)||["","",""];if(0==p[0].length&&0== q[0].length)break;var c=0==p[1].length?0:parseInt(p[1],10),m=0==q[1].length?0:pa rseInt(q[1],10),c=goog.string.compareElements_(c,m)||goog.string.compareElements _(0==p[2].length,0==q[2].length)||
73 goog.string.compareElements_(p[2],q[2])}while(0==c)}return c};goog.string.compar eElements_=function(a,b){return a<b?-1:a>b?1:0};goog.string.HASHCODE_MAX_=429496 7296;goog.string.hashCode=function(a){for(var b=0,c=0;c<a.length;++c)b=31*b+a.ch arCodeAt(c),b%=goog.string.HASHCODE_MAX_;return b};goog.string.uniqueStringCount er_=2147483648*Math.random()|0;goog.string.createUniqueString=function(){return" goog_"+goog.string.uniqueStringCounter_++}; 73 goog.string.compareElements_(p[2],q[2])}while(0==c)}return c};goog.string.compar eElements_=function(a,b){return a<b?-1:a>b?1:0};goog.string.HASHCODE_MAX_=429496 7296;goog.string.hashCode=function(a){for(var b=0,c=0;c<a.length;++c)b=31*b+a.ch arCodeAt(c),b%=goog.string.HASHCODE_MAX_;return b};goog.string.uniqueStringCount er_=2147483648*Math.random()|0;goog.string.createUniqueString=function(){return" goog_"+goog.string.uniqueStringCounter_++};
74 goog.string.toNumber=function(a){var b=Number(a);return 0==b&&goog.string.isEmpt y(a)?NaN:b};goog.string.isLowerCamelCase=function(a){return/^[a-z]+([A-Z][a-z]*) *$/.test(a)};goog.string.isUpperCamelCase=function(a){return/^([A-Z][a-z]*)+$/.t est(a)};goog.string.toCamelCase=function(a){return String(a).replace(/\-([a-z])/ g,function(a,c){return c.toUpperCase()})};goog.string.toSelectorCase=function(a) {return String(a).replace(/([A-Z])/g,"-$1").toLowerCase()}; 74 goog.string.toNumber=function(a){var b=Number(a);return 0==b&&goog.string.isEmpt y(a)?NaN:b};goog.string.isLowerCamelCase=function(a){return/^[a-z]+([A-Z][a-z]*) *$/.test(a)};goog.string.isUpperCamelCase=function(a){return/^([A-Z][a-z]*)+$/.t est(a)};goog.string.toCamelCase=function(a){return String(a).replace(/\-([a-z])/ g,function(a,c){return c.toUpperCase()})};goog.string.toSelectorCase=function(a) {return String(a).replace(/([A-Z])/g,"-$1").toLowerCase()};
75 goog.string.toTitleCase=function(a,b){var c=goog.isString(b)?goog.string.regExpE scape(b):"\\s",c=c?"|["+c+"]+":"",c=RegExp("(^"+c+")([a-z])","g");return a.repla ce(c,function(a,b,c){return b+c.toUpperCase()})};goog.string.parseInt=function(a ){isFinite(a)&&(a=String(a));return goog.isString(a)?/^\s*-?0x/i.test(a)?parseIn t(a,16):parseInt(a,10):NaN};goog.string.splitLimit=function(a,b,c){a=a.split(b); for(var d=[];0<c&&a.length;)d.push(a.shift()),c--;a.length&&d.push(a.join(b));re turn d};goog.asserts={};goog.asserts.ENABLE_ASSERTS=goog.DEBUG;goog.asserts.Asse rtionError=function(a,b){b.unshift(a);goog.debug.Error.call(this,goog.string.sub s.apply(null,b));b.shift()};goog.inherits(goog.asserts.AssertionError,goog.debug .Error);goog.asserts.AssertionError.prototype.name="AssertionError";goog.asserts .doAssertFailure_=function(a,b,c,d){var e="Assertion failed";if(c)var e=e+(": "+ c),f=d;else a&&(e+=": "+a,f=b);throw new goog.asserts.AssertionError(""+e,f||[]) ;}; 75 goog.string.toTitleCase=function(a,b){var c=goog.isString(b)?goog.string.regExpE scape(b):"\\s",c=c?"|["+c+"]+":"",c=new RegExp("(^"+c+")([a-z])","g");return a.r eplace(c,function(a,b,c){return b+c.toUpperCase()})};goog.string.parseInt=functi on(a){isFinite(a)&&(a=String(a));return goog.isString(a)?/^\s*-?0x/i.test(a)?par seInt(a,16):parseInt(a,10):NaN};goog.string.splitLimit=function(a,b,c){a=a.split (b);for(var d=[];0<c&&a.length;)d.push(a.shift()),c--;a.length&&d.push(a.join(b) );return d};goog.asserts={};goog.asserts.ENABLE_ASSERTS=goog.DEBUG;goog.asserts. AssertionError=function(a,b){b.unshift(a);goog.debug.Error.call(this,goog.string .subs.apply(null,b));b.shift()};goog.inherits(goog.asserts.AssertionError,goog.d ebug.Error);goog.asserts.AssertionError.prototype.name="AssertionError";goog.ass erts.doAssertFailure_=function(a,b,c,d){var e="Assertion failed";if(c)var e=e+(" : "+c),f=d;else a&&(e+=": "+a,f=b);throw new goog.asserts.AssertionError(""+e,f| |[]);};
76 goog.asserts.assert=function(a,b,c){goog.asserts.ENABLE_ASSERTS&&!a&&goog.assert s.doAssertFailure_("",null,b,Array.prototype.slice.call(arguments,2));return a}; goog.asserts.fail=function(a,b){if(goog.asserts.ENABLE_ASSERTS)throw new goog.as serts.AssertionError("Failure"+(a?": "+a:""),Array.prototype.slice.call(argument s,1));}; 76 goog.asserts.assert=function(a,b,c){goog.asserts.ENABLE_ASSERTS&&!a&&goog.assert s.doAssertFailure_("",null,b,Array.prototype.slice.call(arguments,2));return a}; goog.asserts.fail=function(a,b){if(goog.asserts.ENABLE_ASSERTS)throw new goog.as serts.AssertionError("Failure"+(a?": "+a:""),Array.prototype.slice.call(argument s,1));};
77 goog.asserts.assertNumber=function(a,b,c){goog.asserts.ENABLE_ASSERTS&&!goog.isN umber(a)&&goog.asserts.doAssertFailure_("Expected number but got %s: %s.",[goog. typeOf(a),a],b,Array.prototype.slice.call(arguments,2));return a};goog.asserts.a ssertString=function(a,b,c){goog.asserts.ENABLE_ASSERTS&&!goog.isString(a)&&goog .asserts.doAssertFailure_("Expected string but got %s: %s.",[goog.typeOf(a),a],b ,Array.prototype.slice.call(arguments,2));return a}; 77 goog.asserts.assertNumber=function(a,b,c){goog.asserts.ENABLE_ASSERTS&&!goog.isN umber(a)&&goog.asserts.doAssertFailure_("Expected number but got %s: %s.",[goog. typeOf(a),a],b,Array.prototype.slice.call(arguments,2));return a};goog.asserts.a ssertString=function(a,b,c){goog.asserts.ENABLE_ASSERTS&&!goog.isString(a)&&goog .asserts.doAssertFailure_("Expected string but got %s: %s.",[goog.typeOf(a),a],b ,Array.prototype.slice.call(arguments,2));return a};
78 goog.asserts.assertFunction=function(a,b,c){goog.asserts.ENABLE_ASSERTS&&!goog.i sFunction(a)&&goog.asserts.doAssertFailure_("Expected function but got %s: %s.", [goog.typeOf(a),a],b,Array.prototype.slice.call(arguments,2));return a};goog.ass erts.assertObject=function(a,b,c){goog.asserts.ENABLE_ASSERTS&&!goog.isObject(a) &&goog.asserts.doAssertFailure_("Expected object but got %s: %s.",[goog.typeOf(a ),a],b,Array.prototype.slice.call(arguments,2));return a}; 78 goog.asserts.assertFunction=function(a,b,c){goog.asserts.ENABLE_ASSERTS&&!goog.i sFunction(a)&&goog.asserts.doAssertFailure_("Expected function but got %s: %s.", [goog.typeOf(a),a],b,Array.prototype.slice.call(arguments,2));return a};goog.ass erts.assertObject=function(a,b,c){goog.asserts.ENABLE_ASSERTS&&!goog.isObject(a) &&goog.asserts.doAssertFailure_("Expected object but got %s: %s.",[goog.typeOf(a ),a],b,Array.prototype.slice.call(arguments,2));return a};
79 goog.asserts.assertArray=function(a,b,c){goog.asserts.ENABLE_ASSERTS&&!goog.isAr ray(a)&&goog.asserts.doAssertFailure_("Expected array but got %s: %s.",[goog.typ eOf(a),a],b,Array.prototype.slice.call(arguments,2));return a};goog.asserts.asse rtBoolean=function(a,b,c){goog.asserts.ENABLE_ASSERTS&&!goog.isBoolean(a)&&goog. asserts.doAssertFailure_("Expected boolean but got %s: %s.",[goog.typeOf(a),a],b ,Array.prototype.slice.call(arguments,2));return a}; 79 goog.asserts.assertArray=function(a,b,c){goog.asserts.ENABLE_ASSERTS&&!goog.isAr ray(a)&&goog.asserts.doAssertFailure_("Expected array but got %s: %s.",[goog.typ eOf(a),a],b,Array.prototype.slice.call(arguments,2));return a};goog.asserts.asse rtBoolean=function(a,b,c){goog.asserts.ENABLE_ASSERTS&&!goog.isBoolean(a)&&goog. asserts.doAssertFailure_("Expected boolean but got %s: %s.",[goog.typeOf(a),a],b ,Array.prototype.slice.call(arguments,2));return a};
80 goog.asserts.assertElement=function(a,b,c){!goog.asserts.ENABLE_ASSERTS||goog.is Object(a)&&a.nodeType==goog.dom.NodeType.ELEMENT||goog.asserts.doAssertFailure_( "Expected Element but got %s: %s.",[goog.typeOf(a),a],b,Array.prototype.slice.ca ll(arguments,2));return a};goog.asserts.assertInstanceof=function(a,b,c,d){!goog .asserts.ENABLE_ASSERTS||a instanceof b||goog.asserts.doAssertFailure_("instance of check failed.",null,c,Array.prototype.slice.call(arguments,3));return a}; 80 goog.asserts.assertElement=function(a,b,c){!goog.asserts.ENABLE_ASSERTS||goog.is Object(a)&&a.nodeType==goog.dom.NodeType.ELEMENT||goog.asserts.doAssertFailure_( "Expected Element but got %s: %s.",[goog.typeOf(a),a],b,Array.prototype.slice.ca ll(arguments,2));return a};goog.asserts.assertInstanceof=function(a,b,c,d){!goog .asserts.ENABLE_ASSERTS||a instanceof b||goog.asserts.doAssertFailure_("instance of check failed.",null,c,Array.prototype.slice.call(arguments,3));return a};
81 goog.asserts.assertObjectPrototypeIsIntact=function(){for(var a in Object.protot ype)goog.asserts.fail(a+" should not be enumerable in Object.prototype.")};goog. array={};goog.NATIVE_ARRAY_PROTOTYPES=goog.TRUSTED_SITE;goog.array.ASSUME_NATIVE _FUNCTIONS=!1;goog.array.peek=function(a){return a[a.length-1]};goog.array.ARRAY _PROTOTYPE_=Array.prototype; 81 goog.asserts.assertObjectPrototypeIsIntact=function(){for(var a in Object.protot ype)goog.asserts.fail(a+" should not be enumerable in Object.prototype.")};goog. array={};goog.NATIVE_ARRAY_PROTOTYPES=goog.TRUSTED_SITE;goog.array.ASSUME_NATIVE _FUNCTIONS=!1;goog.array.peek=function(a){return a[a.length-1]};goog.array.ARRAY _PROTOTYPE_=Array.prototype;
82 goog.array.indexOf=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCT IONS||goog.array.ARRAY_PROTOTYPE_.indexOf)?function(a,b,c){goog.asserts.assert(n ull!=a.length);return goog.array.ARRAY_PROTOTYPE_.indexOf.call(a,b,c)}:function( a,b,c){c=null==c?0:0>c?Math.max(0,a.length+c):c;if(goog.isString(a))return goog. isString(b)&&1==b.length?a.indexOf(b,c):-1;for(;c<a.length;c++)if(c in a&&a[c]== =b)return c;return-1}; 82 goog.array.indexOf=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCT IONS||goog.array.ARRAY_PROTOTYPE_.indexOf)?function(a,b,c){goog.asserts.assert(n ull!=a.length);return goog.array.ARRAY_PROTOTYPE_.indexOf.call(a,b,c)}:function( a,b,c){c=null==c?0:0>c?Math.max(0,a.length+c):c;if(goog.isString(a))return goog. isString(b)&&1==b.length?a.indexOf(b,c):-1;for(;c<a.length;c++)if(c in a&&a[c]== =b)return c;return-1};
83 goog.array.lastIndexOf=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_F UNCTIONS||goog.array.ARRAY_PROTOTYPE_.lastIndexOf)?function(a,b,c){goog.asserts. assert(null!=a.length);c=null==c?a.length-1:c;return goog.array.ARRAY_PROTOTYPE_ .lastIndexOf.call(a,b,c)}:function(a,b,c){c=null==c?a.length-1:c;0>c&&(c=Math.ma x(0,a.length+c));if(goog.isString(a))return goog.isString(b)&&1==b.length?a.last IndexOf(b,c):-1;for(;0<=c;c--)if(c in a&&a[c]===b)return c;return-1}; 83 goog.array.lastIndexOf=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_F UNCTIONS||goog.array.ARRAY_PROTOTYPE_.lastIndexOf)?function(a,b,c){goog.asserts. assert(null!=a.length);c=null==c?a.length-1:c;return goog.array.ARRAY_PROTOTYPE_ .lastIndexOf.call(a,b,c)}:function(a,b,c){c=null==c?a.length-1:c;0>c&&(c=Math.ma x(0,a.length+c));if(goog.isString(a))return goog.isString(b)&&1==b.length?a.last IndexOf(b,c):-1;for(;0<=c;c--)if(c in a&&a[c]===b)return c;return-1};
84 goog.array.forEach=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCT IONS||goog.array.ARRAY_PROTOTYPE_.forEach)?function(a,b,c){goog.asserts.assert(n ull!=a.length);goog.array.ARRAY_PROTOTYPE_.forEach.call(a,b,c)}:function(a,b,c){ for(var d=a.length,e=goog.isString(a)?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c ,e[f],f,a)};goog.array.forEachRight=function(a,b,c){for(var d=a.length,e=goog.is String(a)?a.split(""):a,d=d-1;0<=d;--d)d in e&&b.call(c,e[d],d,a)}; 84 goog.array.forEach=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCT IONS||goog.array.ARRAY_PROTOTYPE_.forEach)?function(a,b,c){goog.asserts.assert(n ull!=a.length);goog.array.ARRAY_PROTOTYPE_.forEach.call(a,b,c)}:function(a,b,c){ for(var d=a.length,e=goog.isString(a)?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c ,e[f],f,a)};goog.array.forEachRight=function(a,b,c){for(var d=a.length,e=goog.is String(a)?a.split(""):a,d=d-1;0<=d;--d)d in e&&b.call(c,e[d],d,a)};
85 goog.array.filter=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTI ONS||goog.array.ARRAY_PROTOTYPE_.filter)?function(a,b,c){goog.asserts.assert(nul l!=a.length);return goog.array.ARRAY_PROTOTYPE_.filter.call(a,b,c)}:function(a,b ,c){for(var d=a.length,e=[],f=0,g=goog.isString(a)?a.split(""):a,h=0;h<d;h++)if( h in g){var k=g[h];b.call(c,k,h,a)&&(e[f++]=k)}return e}; 85 goog.array.filter=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTI ONS||goog.array.ARRAY_PROTOTYPE_.filter)?function(a,b,c){goog.asserts.assert(nul l!=a.length);return goog.array.ARRAY_PROTOTYPE_.filter.call(a,b,c)}:function(a,b ,c){for(var d=a.length,e=[],f=0,g=goog.isString(a)?a.split(""):a,h=0;h<d;h++)if( h in g){var k=g[h];b.call(c,k,h,a)&&(e[f++]=k)}return e};
(...skipping 13 matching lines...) Expand all
99 goog.array.sortObjectsByKey=function(a,b,c){var d=c||goog.array.defaultCompare;g oog.array.sort(a,function(a,c){return d(a[b],c[b])})};goog.array.isSorted=functi on(a,b,c){b=b||goog.array.defaultCompare;for(var d=1;d<a.length;d++){var e=b(a[d -1],a[d]);if(0<e||0==e&&c)return!1}return!0};goog.array.equals=function(a,b,c){i f(!goog.isArrayLike(a)||!goog.isArrayLike(b)||a.length!=b.length)return!1;var d= a.length;c=c||goog.array.defaultCompareEquality;for(var e=0;e<d;e++)if(!c(a[e],b [e]))return!1;return!0}; 99 goog.array.sortObjectsByKey=function(a,b,c){var d=c||goog.array.defaultCompare;g oog.array.sort(a,function(a,c){return d(a[b],c[b])})};goog.array.isSorted=functi on(a,b,c){b=b||goog.array.defaultCompare;for(var d=1;d<a.length;d++){var e=b(a[d -1],a[d]);if(0<e||0==e&&c)return!1}return!0};goog.array.equals=function(a,b,c){i f(!goog.isArrayLike(a)||!goog.isArrayLike(b)||a.length!=b.length)return!1;var d= a.length;c=c||goog.array.defaultCompareEquality;for(var e=0;e<d;e++)if(!c(a[e],b [e]))return!1;return!0};
100 goog.array.compare3=function(a,b,c){c=c||goog.array.defaultCompare;for(var d=Mat h.min(a.length,b.length),e=0;e<d;e++){var f=c(a[e],b[e]);if(0!=f)return f}return goog.array.defaultCompare(a.length,b.length)};goog.array.defaultCompare=functio n(a,b){return a>b?1:a<b?-1:0};goog.array.defaultCompareEquality=function(a,b){re turn a===b};goog.array.binaryInsert=function(a,b,c){c=goog.array.binarySearch(a, b,c);return 0>c?(goog.array.insertAt(a,b,-(c+1)),!0):!1}; 100 goog.array.compare3=function(a,b,c){c=c||goog.array.defaultCompare;for(var d=Mat h.min(a.length,b.length),e=0;e<d;e++){var f=c(a[e],b[e]);if(0!=f)return f}return goog.array.defaultCompare(a.length,b.length)};goog.array.defaultCompare=functio n(a,b){return a>b?1:a<b?-1:0};goog.array.defaultCompareEquality=function(a,b){re turn a===b};goog.array.binaryInsert=function(a,b,c){c=goog.array.binarySearch(a, b,c);return 0>c?(goog.array.insertAt(a,b,-(c+1)),!0):!1};
101 goog.array.binaryRemove=function(a,b,c){b=goog.array.binarySearch(a,b,c);return 0<=b?goog.array.removeAt(a,b):!1};goog.array.bucket=function(a,b,c){for(var d={} ,e=0;e<a.length;e++){var f=a[e],g=b.call(c,f,e,a);goog.isDef(g)&&(g=d[g]||(d[g]= []),g.push(f))}return d};goog.array.toObject=function(a,b,c){var d={};goog.array .forEach(a,function(e,f){d[b.call(c,e,f,a)]=e});return d}; 101 goog.array.binaryRemove=function(a,b,c){b=goog.array.binarySearch(a,b,c);return 0<=b?goog.array.removeAt(a,b):!1};goog.array.bucket=function(a,b,c){for(var d={} ,e=0;e<a.length;e++){var f=a[e],g=b.call(c,f,e,a);goog.isDef(g)&&(g=d[g]||(d[g]= []),g.push(f))}return d};goog.array.toObject=function(a,b,c){var d={};goog.array .forEach(a,function(e,f){d[b.call(c,e,f,a)]=e});return d};
102 goog.array.range=function(a,b,c){var d=[],e=0,f=a;c=c||1;void 0!==b&&(e=a,f=b);i f(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.p ush(a);return d};goog.array.repeat=function(a,b){for(var c=[],d=0;d<b;d++)c[d]=a ;return c};goog.array.flatten=function(a){for(var b=[],c=0;c<arguments.length;c+ +){var d=arguments[c];goog.isArray(d)?b.push.apply(b,goog.array.flatten.apply(nu ll,d)):b.push(d)}return b}; 102 goog.array.range=function(a,b,c){var d=[],e=0,f=a;c=c||1;void 0!==b&&(e=a,f=b);i f(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.p ush(a);return d};goog.array.repeat=function(a,b){for(var c=[],d=0;d<b;d++)c[d]=a ;return c};goog.array.flatten=function(a){for(var b=[],c=0;c<arguments.length;c+ +){var d=arguments[c];goog.isArray(d)?b.push.apply(b,goog.array.flatten.apply(nu ll,d)):b.push(d)}return b};
103 goog.array.rotate=function(a,b){goog.asserts.assert(null!=a.length);a.length&&(b %=a.length,0<b?goog.array.ARRAY_PROTOTYPE_.unshift.apply(a,a.splice(-b,b)):0>b&& goog.array.ARRAY_PROTOTYPE_.push.apply(a,a.splice(0,-b)));return a};goog.array.m oveItem=function(a,b,c){goog.asserts.assert(0<=b&&b<a.length);goog.asserts.asser t(0<=c&&c<a.length);b=goog.array.ARRAY_PROTOTYPE_.splice.call(a,b,1);goog.array. ARRAY_PROTOTYPE_.splice.call(a,c,0,b[0])}; 103 goog.array.rotate=function(a,b){goog.asserts.assert(null!=a.length);a.length&&(b %=a.length,0<b?goog.array.ARRAY_PROTOTYPE_.unshift.apply(a,a.splice(-b,b)):0>b&& goog.array.ARRAY_PROTOTYPE_.push.apply(a,a.splice(0,-b)));return a};goog.array.m oveItem=function(a,b,c){goog.asserts.assert(0<=b&&b<a.length);goog.asserts.asser t(0<=c&&c<a.length);b=goog.array.ARRAY_PROTOTYPE_.splice.call(a,b,1);goog.array. ARRAY_PROTOTYPE_.splice.call(a,c,0,b[0])};
104 goog.array.zip=function(a){if(!arguments.length)return[];for(var b=[],c=0;;c++){ for(var d=[],e=0;e<arguments.length;e++){var f=arguments[e];if(c>=f.length)retur n b;d.push(f[c])}b.push(d)}};goog.array.shuffle=function(a,b){for(var c=b||Math. random,d=a.length-1;0<d;d--){var e=Math.floor(c()*(d+1)),f=a[d];a[d]=a[e];a[e]=f }};goog.math={};goog.math.randomInt=function(a){return Math.floor(Math.random()* a)};goog.math.uniformRandom=function(a,b){return a+Math.random()*(b-a)};goog.mat h.clamp=function(a,b,c){return Math.min(Math.max(a,b),c)};goog.math.modulo=funct ion(a,b){var c=a%b;return 0>c*b?c+b:c};goog.math.lerp=function(a,b,c){return a+c *(b-a)};goog.math.nearlyEquals=function(a,b,c){return Math.abs(a-b)<=(c||1E-6)}; goog.math.standardAngle=function(a){return goog.math.modulo(a,360)}; 104 goog.array.zip=function(a){if(!arguments.length)return[];for(var b=[],c=0;;c++){ for(var d=[],e=0;e<arguments.length;e++){var f=arguments[e];if(c>=f.length)retur n b;d.push(f[c])}b.push(d)}};goog.array.shuffle=function(a,b){for(var c=b||Math. random,d=a.length-1;0<d;d--){var e=Math.floor(c()*(d+1)),f=a[d];a[d]=a[e];a[e]=f }};goog.math={};goog.math.randomInt=function(a){return Math.floor(Math.random()* a)};goog.math.uniformRandom=function(a,b){return a+Math.random()*(b-a)};goog.mat h.clamp=function(a,b,c){return Math.min(Math.max(a,b),c)};goog.math.modulo=funct ion(a,b){var c=a%b;return 0>c*b?c+b:c};goog.math.lerp=function(a,b,c){return a+c *(b-a)};goog.math.nearlyEquals=function(a,b,c){return Math.abs(a-b)<=(c||1E-6)}; goog.math.standardAngle=function(a){return goog.math.modulo(a,360)};
105 goog.math.standardAngleInRadians=function(a){return goog.math.modulo(a,2*Math.PI )};goog.math.toRadians=function(a){return a*Math.PI/180};goog.math.toDegrees=fun ction(a){return 180*a/Math.PI};goog.math.angleDx=function(a,b){return b*Math.cos (goog.math.toRadians(a))};goog.math.angleDy=function(a,b){return b*Math.sin(goog .math.toRadians(a))};goog.math.angle=function(a,b,c,d){return goog.math.standard Angle(goog.math.toDegrees(Math.atan2(d-b,c-a)))}; 105 goog.math.standardAngleInRadians=function(a){return goog.math.modulo(a,2*Math.PI )};goog.math.toRadians=function(a){return a*Math.PI/180};goog.math.toDegrees=fun ction(a){return 180*a/Math.PI};goog.math.angleDx=function(a,b){return b*Math.cos (goog.math.toRadians(a))};goog.math.angleDy=function(a,b){return b*Math.sin(goog .math.toRadians(a))};goog.math.angle=function(a,b,c,d){return goog.math.standard Angle(goog.math.toDegrees(Math.atan2(d-b,c-a)))};
106 goog.math.angleDifference=function(a,b){var c=goog.math.standardAngle(b)-goog.ma th.standardAngle(a);180<c?c-=360:-180>=c&&(c=360+c);return c};goog.math.sign=fun ction(a){return 0==a?0:0>a?-1:1}; 106 goog.math.angleDifference=function(a,b){var c=goog.math.standardAngle(b)-goog.ma th.standardAngle(a);180<c?c-=360:-180>=c&&(c=360+c);return c};goog.math.sign=fun ction(a){return 0==a?0:0>a?-1:1};
107 goog.math.longestCommonSubsequence=function(a,b,c,d){c=c||function(a,b){return a ==b};d=d||function(b){return a[b]};for(var e=a.length,f=b.length,g=[],h=0;h<e+1; h++)g[h]=[],g[h][0]=0;for(var k=0;k<f+1;k++)g[0][k]=0;for(h=1;h<=e;h++)for(k=1;k <=f;k++)c(a[h-1],b[k-1])?g[h][k]=g[h-1][k-1]+1:g[h][k]=Math.max(g[h-1][k],g[h][k -1]);for(var l=[],h=e,k=f;0<h&&0<k;)c(a[h-1],b[k-1])?(l.unshift(d(h-1,k-1)),h--, k--):g[h-1][k]>g[h][k-1]?h--:k--;return l}; 107 goog.math.longestCommonSubsequence=function(a,b,c,d){c=c||function(a,b){return a ==b};d=d||function(b){return a[b]};for(var e=a.length,f=b.length,g=[],h=0;h<e+1; h++)g[h]=[],g[h][0]=0;for(var k=0;k<f+1;k++)g[0][k]=0;for(h=1;h<=e;h++)for(k=1;k <=f;k++)c(a[h-1],b[k-1])?g[h][k]=g[h-1][k-1]+1:g[h][k]=Math.max(g[h-1][k],g[h][k -1]);for(var l=[],h=e,k=f;0<h&&0<k;)c(a[h-1],b[k-1])?(l.unshift(d(h-1,k-1)),h--, k--):g[h-1][k]>g[h][k-1]?h--:k--;return l};
108 goog.math.sum=function(a){return goog.array.reduce(arguments,function(a,c){retur n a+c},0)};goog.math.average=function(a){return goog.math.sum.apply(null,argumen ts)/arguments.length};goog.math.sampleVariance=function(a){var b=arguments.lengt h;if(2>b)return 0;var c=goog.math.average.apply(null,arguments);return b=goog.ma th.sum.apply(null,goog.array.map(arguments,function(a){return Math.pow(a-c,2)})) /(b-1)}; 108 goog.math.sum=function(a){return goog.array.reduce(arguments,function(a,c){retur n a+c},0)};goog.math.average=function(a){return goog.math.sum.apply(null,argumen ts)/arguments.length};goog.math.sampleVariance=function(a){var b=arguments.lengt h;if(2>b)return 0;var c=goog.math.average.apply(null,arguments);return b=goog.ma th.sum.apply(null,goog.array.map(arguments,function(a){return Math.pow(a-c,2)})) /(b-1)};
109 goog.math.standardDeviation=function(a){return Math.sqrt(goog.math.sampleVarianc e.apply(null,arguments))};goog.math.isInt=function(a){return isFinite(a)&&0==a%1 };goog.math.isFiniteNumber=function(a){return isFinite(a)&&!isNaN(a)};goog.math. log10Floor=function(a){if(0<a){var b=Math.round(Math.log(a)*Math.LOG10E);return b-(Math.pow(10,b)>a)}return 0==a?-Infinity:NaN};goog.math.safeFloor=function(a,b ){goog.asserts.assert(!goog.isDef(b)||0<b);return Math.floor(a+(b||2E-15))}; 109 goog.math.standardDeviation=function(a){return Math.sqrt(goog.math.sampleVarianc e.apply(null,arguments))};goog.math.isInt=function(a){return isFinite(a)&&0==a%1 };goog.math.isFiniteNumber=function(a){return isFinite(a)&&!isNaN(a)};goog.math. log10Floor=function(a){if(0<a){var b=Math.round(Math.log(a)*Math.LOG10E);return b-(parseFloat("1e"+b)>a)}return 0==a?-Infinity:NaN};goog.math.safeFloor=function (a,b){goog.asserts.assert(!goog.isDef(b)||0<b);return Math.floor(a+(b||2E-15))};
110 goog.math.safeCeil=function(a,b){goog.asserts.assert(!goog.isDef(b)||0<b);return Math.ceil(a-(b||2E-15))};goog.i18n={}; 110 goog.math.safeCeil=function(a,b){goog.asserts.assert(!goog.isDef(b)||0<b);return Math.ceil(a-(b||2E-15))};goog.i18n={};
111 goog.i18n.CompactNumberFormatSymbols_af={COMPACT_DECIMAL_SHORT_PATTERN:{1E3:{oth er:"0"},1E4:{other:"0"},1E5:{other:"0"},1E6:{other:"0\u00a0m"},1E7:{other:"00\u0 0a0m"},1E8:{other:"000\u00a0m"},1E9:{other:"0\u00a0mjd"},1E10:{other:"00\u00a0mj d"},1E11:{other:"000\u00a0mjd"},1E12:{other:"0\u00a0bn"},1E13:{other:"00\u00a0bn "},1E14:{other:"000\u00a0bn"}},COMPACT_DECIMAL_LONG_PATTERN:{1E3:{other:"0 duise nd"},1E4:{other:"00 duisend"},1E5:{other:"000 duisend"},1E6:{other:"0 miljoen"}, 1E7:{other:"00 miljoen"},1E8:{other:"000 miljoen"}, 111 goog.i18n.CompactNumberFormatSymbols_af={COMPACT_DECIMAL_SHORT_PATTERN:{1E3:{oth er:"0"},1E4:{other:"0"},1E5:{other:"0"},1E6:{other:"0\u00a0m"},1E7:{other:"00\u0 0a0m"},1E8:{other:"000\u00a0m"},1E9:{other:"0\u00a0mjd"},1E10:{other:"00\u00a0mj d"},1E11:{other:"000\u00a0mjd"},1E12:{other:"0\u00a0bn"},1E13:{other:"00\u00a0bn "},1E14:{other:"000\u00a0bn"}},COMPACT_DECIMAL_LONG_PATTERN:{1E3:{other:"0 duise nd"},1E4:{other:"00 duisend"},1E5:{other:"000 duisend"},1E6:{other:"0 miljoen"}, 1E7:{other:"00 miljoen"},1E8:{other:"000 miljoen"},
112 1E9:{other:"0 miljard"},1E10:{other:"00 miljard"},1E11:{other:"000 miljard"},1E1 2:{other:"0 biljoen"},1E13:{other:"00 biljoen"},1E14:{other:"000 biljoen"}}};goo g.i18n.CompactNumberFormatSymbols_af_ZA=goog.i18n.CompactNumberFormatSymbols_af; 112 1E9:{other:"0 miljard"},1E10:{other:"00 miljard"},1E11:{other:"000 miljard"},1E1 2:{other:"0 biljoen"},1E13:{other:"00 biljoen"},1E14:{other:"000 biljoen"}}};goo g.i18n.CompactNumberFormatSymbols_af_ZA=goog.i18n.CompactNumberFormatSymbols_af;
113 goog.i18n.CompactNumberFormatSymbols_am={COMPACT_DECIMAL_SHORT_PATTERN:{1E3:{oth er:"0\u00a0\u123a"},1E4:{other:"00\u00a0\u123a"},1E5:{other:"000\u00a0\u123a"},1 E6:{other:"0\u00a0\u121c\u1275\u122d"},1E7:{other:"00\u00a0\u121c\u1275\u122d"}, 1E8:{other:"000\u00a0\u121c\u1275\u122d"},1E9:{other:"0\u00a0\u1262"},1E10:{othe r:"00\u00a0\u1262"},1E11:{other:"000\u00a0\u1262"},1E12:{other:"0\u00a0\u1275"}, 1E13:{other:"00\u00a0\u1275"},1E14:{other:"000\u00a0\u1275"}},COMPACT_DECIMAL_LO NG_PATTERN:{1E3:{other:"0 \u123a"}, 113 goog.i18n.CompactNumberFormatSymbols_am={COMPACT_DECIMAL_SHORT_PATTERN:{1E3:{oth er:"0\u00a0\u123a"},1E4:{other:"00\u00a0\u123a"},1E5:{other:"000\u00a0\u123a"},1 E6:{other:"0\u00a0\u121c\u1275\u122d"},1E7:{other:"00\u00a0\u121c\u1275\u122d"}, 1E8:{other:"000\u00a0\u121c\u1275\u122d"},1E9:{other:"0\u00a0\u1262"},1E10:{othe r:"00\u00a0\u1262"},1E11:{other:"000\u00a0\u1262"},1E12:{other:"0\u00a0\u1275"}, 1E13:{other:"00\u00a0\u1275"},1E14:{other:"000\u00a0\u1275"}},COMPACT_DECIMAL_LO NG_PATTERN:{1E3:{other:"0 \u123a"},
114 1E4:{other:"00 \u123a"},1E5:{other:"000 \u123a"},1E6:{other:"0 \u121a\u120a\u12e e\u1295"},1E7:{other:"00 \u121a\u120a\u12ee\u1295"},1E8:{other:"000 \u121a\u120a \u12ee\u1295"},1E9:{other:"0 \u1262\u120a\u12ee\u1295"},1E10:{other:"00 \u1262\u 120a\u12ee\u1295"},1E11:{other:"000 \u1262\u120a\u12ee\u1295"},1E12:{other:"0 \u 1275\u122a\u120a\u12ee\u1295"},1E13:{other:"00 \u1275\u122a\u120a\u12ee\u1295"}, 1E14:{other:"000 \u1275\u122a\u120a\u12ee\u1295"}}};goog.i18n.CompactNumberForma tSymbols_am_ET=goog.i18n.CompactNumberFormatSymbols_am; 114 1E4:{other:"00 \u123a"},1E5:{other:"000 \u123a"},1E6:{other:"0 \u121a\u120a\u12e e\u1295"},1E7:{other:"00 \u121a\u120a\u12ee\u1295"},1E8:{other:"000 \u121a\u120a \u12ee\u1295"},1E9:{other:"0 \u1262\u120a\u12ee\u1295"},1E10:{other:"00 \u1262\u 120a\u12ee\u1295"},1E11:{other:"000 \u1262\u120a\u12ee\u1295"},1E12:{other:"0 \u 1275\u122a\u120a\u12ee\u1295"},1E13:{other:"00 \u1275\u122a\u120a\u12ee\u1295"}, 1E14:{other:"000 \u1275\u122a\u120a\u12ee\u1295"}}};goog.i18n.CompactNumberForma tSymbols_am_ET=goog.i18n.CompactNumberFormatSymbols_am;
115 goog.i18n.CompactNumberFormatSymbols_ar={COMPACT_DECIMAL_SHORT_PATTERN:{1E3:{oth er:"0\u00a0\u0623\u0644\u0641"},1E4:{other:"00\u00a0\u0623\u0644\u0641"},1E5:{ot her:"000\u00a0\u0623\u0644\u0641"},1E6:{other:"0\u00a0\u0645\u0644\u064a\u0648"} ,1E7:{other:"00\u00a0\u0645\u0644\u064a\u0648"},1E8:{other:"000\u00a0\u0645\u064 4\u064a\u0648"},1E9:{other:"0\u00a0\u0628\u0644\u064a\u0648"},1E10:{other:"00\u0 0a0\u0628\u0644\u064a\u0648"},1E11:{other:"000\u00a0\u0628\u0644\u064a\u0648"},1 E12:{other:"0\u00a0\u062a\u0631\u0644\u064a\u0648"}, 115 goog.i18n.CompactNumberFormatSymbols_ar={COMPACT_DECIMAL_SHORT_PATTERN:{1E3:{oth er:"0\u00a0\u0623\u0644\u0641"},1E4:{other:"00\u00a0\u0623\u0644\u0641"},1E5:{ot her:"000\u00a0\u0623\u0644\u0641"},1E6:{other:"0\u00a0\u0645\u0644\u064a\u0648"} ,1E7:{other:"00\u00a0\u0645\u0644\u064a\u0648"},1E8:{other:"000\u00a0\u0645\u064 4\u064a\u0648"},1E9:{other:"0\u00a0\u0628\u0644\u064a\u0648"},1E10:{other:"00\u0 0a0\u0628\u0644\u064a\u0648"},1E11:{other:"000\u00a0\u0628\u0644\u064a\u0648"},1 E12:{other:"0\u00a0\u062a\u0631\u0644\u064a\u0648"},
116 1E13:{other:"00\u00a0\u062a\u0631\u0644\u064a\u0648"},1E14:{other:"000\u00a0\u06 2a\u0631\u0644\u064a\u0648"}},COMPACT_DECIMAL_LONG_PATTERN:{1E3:{other:"0 \u0623 \u0644\u0641"},1E4:{other:"00 \u0623\u0644\u0641"},1E5:{other:"000 \u0623\u0644\ u0641"},1E6:{other:"0 \u0645\u0644\u064a\u0648\u0646"},1E7:{other:"00 \u0645\u06 44\u064a\u0648\u0646"},1E8:{other:"000 \u0645\u0644\u064a\u0648\u0646"},1E9:{oth er:"0 \u0628\u0644\u064a\u0648\u0646"},1E10:{other:"00 \u0628\u0644\u064a\u0648\ u0646"},1E11:{other:"000 \u0628\u0644\u064a\u0648\u0646"}, 116 1E13:{other:"00\u00a0\u062a\u0631\u0644\u064a\u0648"},1E14:{other:"000\u00a0\u06 2a\u0631\u0644\u064a\u0648"}},COMPACT_DECIMAL_LONG_PATTERN:{1E3:{other:"0 \u0623 \u0644\u0641"},1E4:{other:"00 \u0623\u0644\u0641"},1E5:{other:"000 \u0623\u0644\ u0641"},1E6:{other:"0 \u0645\u0644\u064a\u0648\u0646"},1E7:{other:"00 \u0645\u06 44\u064a\u0648\u0646"},1E8:{other:"000 \u0645\u0644\u064a\u0648\u0646"},1E9:{oth er:"0 \u0628\u0644\u064a\u0648\u0646"},1E10:{other:"00 \u0628\u0644\u064a\u0648\ u0646"},1E11:{other:"000 \u0628\u0644\u064a\u0648\u0646"},
117 1E12:{other:"0 \u062a\u0631\u064a\u0644\u064a\u0648\u0646"},1E13:{other:"00 \u06 2a\u0631\u064a\u0644\u064a\u0648\u0646"},1E14:{other:"000 \u062a\u0631\u064a\u06 44\u064a\u0648\u0646"}}};goog.i18n.CompactNumberFormatSymbols_ar_001=goog.i18n.C ompactNumberFormatSymbols_ar; 117 1E12:{other:"0 \u062a\u0631\u064a\u0644\u064a\u0648\u0646"},1E13:{other:"00 \u06 2a\u0631\u064a\u0644\u064a\u0648\u0646"},1E14:{other:"000 \u062a\u0631\u064a\u06 44\u064a\u0648\u0646"}}};goog.i18n.CompactNumberFormatSymbols_ar_001=goog.i18n.C ompactNumberFormatSymbols_ar;
118 goog.i18n.CompactNumberFormatSymbols_az={COMPACT_DECIMAL_SHORT_PATTERN:{1E3:{oth er:"0K"},1E4:{other:"00K"},1E5:{other:"000K"},1E6:{other:"0M"},1E7:{other:"00M"} ,1E8:{other:"000M"},1E9:{other:"0G"},1E10:{other:"00G"},1E11:{other:"000G"},1E12 :{other:"0T"},1E13:{other:"00T"},1E14:{other:"000T"}},COMPACT_DECIMAL_LONG_PATTE RN:{1E3:{other:"0K"},1E4:{other:"00K"},1E5:{other:"000K"},1E6:{other:"0M"},1E7:{ other:"00M"},1E8:{other:"000M"},1E9:{other:"0G"},1E10:{other:"00G"},1E11:{other: "000G"},1E12:{other:"0T"}, 118 goog.i18n.CompactNumberFormatSymbols_az={COMPACT_DECIMAL_SHORT_PATTERN:{1E3:{oth er:"0K"},1E4:{other:"00K"},1E5:{other:"000K"},1E6:{other:"0M"},1E7:{other:"00M"} ,1E8:{other:"000M"},1E9:{other:"0G"},1E10:{other:"00G"},1E11:{other:"000G"},1E12 :{other:"0T"},1E13:{other:"00T"},1E14:{other:"000T"}},COMPACT_DECIMAL_LONG_PATTE RN:{1E3:{other:"0K"},1E4:{other:"00K"},1E5:{other:"000K"},1E6:{other:"0M"},1E7:{ other:"00M"},1E8:{other:"000M"},1E9:{other:"0G"},1E10:{other:"00G"},1E11:{other: "000G"},1E12:{other:"0T"},
119 1E13:{other:"00T"},1E14:{other:"000T"}}};goog.i18n.CompactNumberFormatSymbols_az _Cyrl_AZ=goog.i18n.CompactNumberFormatSymbols_az;goog.i18n.CompactNumberFormatSy mbols_az_Latn_AZ=goog.i18n.CompactNumberFormatSymbols_az; 119 1E13:{other:"00T"},1E14:{other:"000T"}}};goog.i18n.CompactNumberFormatSymbols_az _Cyrl_AZ=goog.i18n.CompactNumberFormatSymbols_az;goog.i18n.CompactNumberFormatSy mbols_az_Latn_AZ=goog.i18n.CompactNumberFormatSymbols_az;
(...skipping 510 matching lines...) Expand 10 before | Expand all | Expand 10 after
630 b=a.substring(b);""!=b&&d.push({type:goog.i18n.MessageFormat.Element_.STRING,val ue:b});return d};goog.i18n.MessageFormat.PLURAL_BLOCK_RE_=/^\s*(\w+)\s*,\s*plura l\s*,(?:\s*offset:(\d+))?/;goog.i18n.MessageFormat.ORDINAL_BLOCK_RE_=/^\s*(\w+)\ s*,\s*selectordinal\s*,/;goog.i18n.MessageFormat.SELECT_BLOCK_RE_=/^\s*(\w+)\s*, \s*select\s*,/; 630 b=a.substring(b);""!=b&&d.push({type:goog.i18n.MessageFormat.Element_.STRING,val ue:b});return d};goog.i18n.MessageFormat.PLURAL_BLOCK_RE_=/^\s*(\w+)\s*,\s*plura l\s*,(?:\s*offset:(\d+))?/;goog.i18n.MessageFormat.ORDINAL_BLOCK_RE_=/^\s*(\w+)\ s*,\s*selectordinal\s*,/;goog.i18n.MessageFormat.SELECT_BLOCK_RE_=/^\s*(\w+)\s*, \s*select\s*,/;
631 goog.i18n.MessageFormat.prototype.parseBlockType_=function(a){return goog.i18n.M essageFormat.PLURAL_BLOCK_RE_.test(a)?goog.i18n.MessageFormat.BlockType_.PLURAL: goog.i18n.MessageFormat.ORDINAL_BLOCK_RE_.test(a)?goog.i18n.MessageFormat.BlockT ype_.ORDINAL:goog.i18n.MessageFormat.SELECT_BLOCK_RE_.test(a)?goog.i18n.MessageF ormat.BlockType_.SELECT:/^\s*\w+\s*/.test(a)?goog.i18n.MessageFormat.BlockType_. SIMPLE:goog.i18n.MessageFormat.BlockType_.UNKNOWN}; 631 goog.i18n.MessageFormat.prototype.parseBlockType_=function(a){return goog.i18n.M essageFormat.PLURAL_BLOCK_RE_.test(a)?goog.i18n.MessageFormat.BlockType_.PLURAL: goog.i18n.MessageFormat.ORDINAL_BLOCK_RE_.test(a)?goog.i18n.MessageFormat.BlockT ype_.ORDINAL:goog.i18n.MessageFormat.SELECT_BLOCK_RE_.test(a)?goog.i18n.MessageF ormat.BlockType_.SELECT:/^\s*\w+\s*/.test(a)?goog.i18n.MessageFormat.BlockType_. SIMPLE:goog.i18n.MessageFormat.BlockType_.UNKNOWN};
632 goog.i18n.MessageFormat.prototype.parseBlock_=function(a){var b=[];a=this.extrac tParts_(a);for(var c=0;c<a.length;c++){var d={};if(goog.i18n.MessageFormat.Eleme nt_.STRING==a[c].type)d.type=goog.i18n.MessageFormat.BlockType_.STRING,d.value=a [c].value;else if(goog.i18n.MessageFormat.Element_.BLOCK==a[c].type){var e=this. parseBlockType_(a[c].value);switch(e){case goog.i18n.MessageFormat.BlockType_.SE LECT:d.type=goog.i18n.MessageFormat.BlockType_.SELECT;d.value=this.parseSelectBl ock_(a[c].value);break; 632 goog.i18n.MessageFormat.prototype.parseBlock_=function(a){var b=[];a=this.extrac tParts_(a);for(var c=0;c<a.length;c++){var d={};if(goog.i18n.MessageFormat.Eleme nt_.STRING==a[c].type)d.type=goog.i18n.MessageFormat.BlockType_.STRING,d.value=a [c].value;else if(goog.i18n.MessageFormat.Element_.BLOCK==a[c].type){var e=this. parseBlockType_(a[c].value);switch(e){case goog.i18n.MessageFormat.BlockType_.SE LECT:d.type=goog.i18n.MessageFormat.BlockType_.SELECT;d.value=this.parseSelectBl ock_(a[c].value);break;
633 case goog.i18n.MessageFormat.BlockType_.PLURAL:d.type=goog.i18n.MessageFormat.Bl ockType_.PLURAL;d.value=this.parsePluralBlock_(a[c].value);break;case goog.i18n. MessageFormat.BlockType_.ORDINAL:d.type=goog.i18n.MessageFormat.BlockType_.ORDIN AL;d.value=this.parseOrdinalBlock_(a[c].value);break;case goog.i18n.MessageForma t.BlockType_.SIMPLE:d.type=goog.i18n.MessageFormat.BlockType_.SIMPLE;d.value=a[c ].value;break;default:goog.asserts.fail("Unknown block type.")}}else goog.assert s.fail("Unknown part of the pattern."); 633 case goog.i18n.MessageFormat.BlockType_.PLURAL:d.type=goog.i18n.MessageFormat.Bl ockType_.PLURAL;d.value=this.parsePluralBlock_(a[c].value);break;case goog.i18n. MessageFormat.BlockType_.ORDINAL:d.type=goog.i18n.MessageFormat.BlockType_.ORDIN AL;d.value=this.parseOrdinalBlock_(a[c].value);break;case goog.i18n.MessageForma t.BlockType_.SIMPLE:d.type=goog.i18n.MessageFormat.BlockType_.SIMPLE;d.value=a[c ].value;break;default:goog.asserts.fail("Unknown block type.")}}else goog.assert s.fail("Unknown part of the pattern.");
634 b.push(d)}return b}; 634 b.push(d)}return b};
635 goog.i18n.MessageFormat.prototype.parseSelectBlock_=function(a){var b="",c=goog. i18n.MessageFormat.SELECT_BLOCK_RE_;a=a.replace(c,function(a,c){b=c;return""});c ={};c.argumentIndex=b;a=this.extractParts_(a);for(var d=0;d<a.length;){var e=a[d ].value;goog.asserts.assertString(e,"Missing select key element.");d++;goog.asse rts.assert(d<a.length,"Missing or invalid select value element.");if(goog.i18n.M essageFormat.Element_.BLOCK==a[d].type)var f=this.parseBlock_(a[d].value);else g oog.asserts.fail("Expected block type.");c[e.replace(/\s/g, 635 goog.i18n.MessageFormat.prototype.parseSelectBlock_=function(a){var b="",c=goog. i18n.MessageFormat.SELECT_BLOCK_RE_;a=a.replace(c,function(a,c){b=c;return""});c ={};c.argumentIndex=b;a=this.extractParts_(a);for(var d=0;d<a.length;){var e=a[d ].value;goog.asserts.assertString(e,"Missing select key element.");d++;goog.asse rts.assert(d<a.length,"Missing or invalid select value element.");if(goog.i18n.M essageFormat.Element_.BLOCK==a[d].type)var f=this.parseBlock_(a[d].value);else g oog.asserts.fail("Expected block type.");c[e.replace(/\s/g,
636 "")]=f;d++}goog.asserts.assertArray(c[goog.i18n.MessageFormat.OTHER_],"Missing o ther key in select statement.");return c}; 636 "")]=f;d++}goog.asserts.assertArray(c[goog.i18n.MessageFormat.OTHER_],"Missing o ther key in select statement.");return c};
637 goog.i18n.MessageFormat.prototype.parsePluralBlock_=function(a){var b="",c=0,d=g oog.i18n.MessageFormat.PLURAL_BLOCK_RE_;a=a.replace(d,function(a,d,e){b=d;e&&(c= parseInt(e,10));return""});d={};d.argumentIndex=b;d.argumentOffset=c;a=this.extr actParts_(a);for(var e=0;e<a.length;){var f=a[e].value;goog.asserts.assertString (f,"Missing plural key element.");e++;goog.asserts.assert(e<a.length,"Missing or invalid plural value element.");if(goog.i18n.MessageFormat.Element_.BLOCK==a[e] .type)var g=this.parseBlock_(a[e].value); 637 goog.i18n.MessageFormat.prototype.parsePluralBlock_=function(a){var b="",c=0,d=g oog.i18n.MessageFormat.PLURAL_BLOCK_RE_;a=a.replace(d,function(a,d,e){b=d;e&&(c= parseInt(e,10));return""});d={};d.argumentIndex=b;d.argumentOffset=c;a=this.extr actParts_(a);for(var e=0;e<a.length;){var f=a[e].value;goog.asserts.assertString (f,"Missing plural key element.");e++;goog.asserts.assert(e<a.length,"Missing or invalid plural value element.");if(goog.i18n.MessageFormat.Element_.BLOCK==a[e] .type)var g=this.parseBlock_(a[e].value);
638 else goog.asserts.fail("Expected block type.");d[f.replace(/\s*(?:=)?(\w+)\s*/," $1")]=g;e++}goog.asserts.assertArray(d[goog.i18n.MessageFormat.OTHER_],"Missing other key in plural statement.");return d}; 638 else goog.asserts.fail("Expected block type.");d[f.replace(/\s*(?:=)?(\w+)\s*/," $1")]=g;e++}goog.asserts.assertArray(d[goog.i18n.MessageFormat.OTHER_],"Missing other key in plural statement.");return d};
639 goog.i18n.MessageFormat.prototype.parseOrdinalBlock_=function(a){var b="",c=goog .i18n.MessageFormat.ORDINAL_BLOCK_RE_;a=a.replace(c,function(a,c){b=c;return""}) ;c={};c.argumentIndex=b;c.argumentOffset=0;a=this.extractParts_(a);for(var d=0;d <a.length;){var e=a[d].value;goog.asserts.assertString(e,"Missing ordinal key el ement.");d++;goog.asserts.assert(d<a.length,"Missing or invalid ordinal value el ement.");if(goog.i18n.MessageFormat.Element_.BLOCK==a[d].type)var f=this.parseBl ock_(a[d].value);else goog.asserts.fail("Expected block type."); 639 goog.i18n.MessageFormat.prototype.parseOrdinalBlock_=function(a){var b="",c=goog .i18n.MessageFormat.ORDINAL_BLOCK_RE_;a=a.replace(c,function(a,c){b=c;return""}) ;c={};c.argumentIndex=b;c.argumentOffset=0;a=this.extractParts_(a);for(var d=0;d <a.length;){var e=a[d].value;goog.asserts.assertString(e,"Missing ordinal key el ement.");d++;goog.asserts.assert(d<a.length,"Missing or invalid ordinal value el ement.");if(goog.i18n.MessageFormat.Element_.BLOCK==a[d].type)var f=this.parseBl ock_(a[d].value);else goog.asserts.fail("Expected block type.");
640 c[e.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=f;d++}goog.asserts.assertArray(c[goog.i18 n.MessageFormat.OTHER_],"Missing other key in selectordinal statement.");return c};goog.i18n.MessageFormat.prototype.buildPlaceholder_=function(a){goog.asserts. assert(0<a.length,"Literal array is empty.");a=(a.length-1).toString(10);return goog.i18n.MessageFormat.LITERAL_PLACEHOLDER_+a+"_"};cvox.TtsCapturingEventListen er=function(){};cvox.TtsInterface=function(){};cvox.TtsInterface.prototype.speak =function(){};cvox.TtsInterface.prototype.isSpeaking=function(){};cvox.TtsInterf ace.prototype.stop=function(){};cvox.TtsInterface.prototype.increaseOrDecreasePr operty=function(){};cvox.TtsInterface.prototype.getDefaultProperty=function(){}; cvox.AbstractTts=function(){this.ttsProperties={};this.propertyDefault={rate:0.5 ,pitch:0.5,volume:0.5};this.propertyMin={rate:0,pitch:0,volume:0};this.propertyM ax={rate:1,pitch:1,volume:1};this.propertyStep={rate:0.1,pitch:0.1,volume:0.1};i f(void 0==cvox.AbstractTts.pronunciationDictionaryRegexp_){var a=[],b;for(b in c vox.AbstractTts.PRONUNCIATION_DICTIONARY)a.push(b);a="\\b("+a.join("|")+")\\b";c vox.AbstractTts.pronunciationDictionaryRegexp_=RegExp(a,"ig")}if(void 0==cvox.Ab stractTts.substitutionDictionaryRegexp_){var a= 640 c[e.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=f;d++}goog.asserts.assertArray(c[goog.i18 n.MessageFormat.OTHER_],"Missing other key in selectordinal statement.");return c};goog.i18n.MessageFormat.prototype.buildPlaceholder_=function(a){goog.asserts. assert(0<a.length,"Literal array is empty.");a=(a.length-1).toString(10);return goog.i18n.MessageFormat.LITERAL_PLACEHOLDER_+a+"_"};cvox.TtsCapturingEventListen er=function(){};cvox.TtsInterface=function(){};cvox.TtsInterface.prototype.speak =function(){};cvox.TtsInterface.prototype.isSpeaking=function(){};cvox.TtsInterf ace.prototype.stop=function(){};cvox.TtsInterface.prototype.increaseOrDecreasePr operty=function(){};cvox.TtsInterface.prototype.getDefaultProperty=function(){}; cvox.AbstractTts=function(){this.ttsProperties={};this.propertyDefault={rate:0.5 ,pitch:0.5,volume:0.5};this.propertyMin={rate:0,pitch:0,volume:0};this.propertyM ax={rate:1,pitch:1,volume:1};this.propertyStep={rate:0.1,pitch:0.1,volume:0.1};i f(void 0==cvox.AbstractTts.pronunciationDictionaryRegexp_){var a=[],b;for(b in c vox.AbstractTts.PRONUNCIATION_DICTIONARY)a.push(b);a="\\b("+a.join("|")+")\\b";c vox.AbstractTts.pronunciationDictionaryRegexp_=new RegExp(a,"ig")}if(void 0==cvo x.AbstractTts.substitutionDictionaryRegexp_){var a=
641 [],c;for(c in cvox.AbstractTts.SUBSTITUTION_DICTIONARY)a.push(c);a="("+a.join("| ")+")";cvox.AbstractTts.substitutionDictionaryRegexp_=RegExp(a,"ig")}};cvox.Abst ractTts.prototype.speak=function(){return this};cvox.AbstractTts.prototype.isSpe aking=function(){return!1};cvox.AbstractTts.prototype.stop=function(){}; 641 [],c;for(c in cvox.AbstractTts.SUBSTITUTION_DICTIONARY)a.push(c);a="("+a.join("| ")+")";cvox.AbstractTts.substitutionDictionaryRegexp_=new RegExp(a,"ig")}};cvox. AbstractTts.prototype.speak=function(){return this};cvox.AbstractTts.prototype.i sSpeaking=function(){return!1};cvox.AbstractTts.prototype.stop=function(){};
642 cvox.AbstractTts.prototype.increaseOrDecreaseProperty=function(a,b){var c=this.p ropertyMin[a],d=this.propertyMax[a],e=this.propertyStep[a],f=this.ttsProperties[ a],f=b?f+e:f-e;this.ttsProperties[a]=Math.max(Math.min(f,d),c)};cvox.AbstractTts .RATE="rate";cvox.AbstractTts.PITCH="pitch";cvox.AbstractTts.VOLUME="volume";cvo x.AbstractTts.LANG="lang";cvox.AbstractTts.RELATIVE_RATE="relativeRate";cvox.Abs tractTts.RELATIVE_PITCH="relativePitch";cvox.AbstractTts.RELATIVE_VOLUME="relati veVolume"; 642 cvox.AbstractTts.prototype.increaseOrDecreaseProperty=function(a,b){var c=this.p ropertyMin[a],d=this.propertyMax[a],e=this.propertyStep[a],f=this.ttsProperties[ a],f=b?f+e:f-e;this.ttsProperties[a]=Math.max(Math.min(f,d),c)};cvox.AbstractTts .RATE="rate";cvox.AbstractTts.PITCH="pitch";cvox.AbstractTts.VOLUME="volume";cvo x.AbstractTts.LANG="lang";cvox.AbstractTts.RELATIVE_RATE="relativeRate";cvox.Abs tractTts.RELATIVE_PITCH="relativePitch";cvox.AbstractTts.RELATIVE_VOLUME="relati veVolume";
643 cvox.AbstractTts.COLOR="color";cvox.AbstractTts.FONT_WEIGHT="fontWeight";cvox.Ab stractTts.PUNCTUATION_ECHO="punctuationEcho";cvox.AbstractTts.PAUSE="pause";cvox .AbstractTts.PERSONALITY_ANNOTATION={relativePitch:-0.25,color:"yellow",punctuat ionEcho:"none"};cvox.AbstractTts.PERSONALITY_ANNOUNCEMENT={punctuationEcho:"none "};cvox.AbstractTts.PERSONALITY_SYSTEM_ALERT={punctuationEcho:"none",doNotInterr upt:!0};cvox.AbstractTts.PERSONALITY_ASIDE={relativePitch:-0.1,color:"#669"}; 643 cvox.AbstractTts.COLOR="color";cvox.AbstractTts.FONT_WEIGHT="fontWeight";cvox.Ab stractTts.PUNCTUATION_ECHO="punctuationEcho";cvox.AbstractTts.PAUSE="pause";cvox .AbstractTts.PERSONALITY_ANNOTATION={relativePitch:-0.25,color:"yellow",punctuat ionEcho:"none"};cvox.AbstractTts.PERSONALITY_ANNOUNCEMENT={punctuationEcho:"none "};cvox.AbstractTts.PERSONALITY_SYSTEM_ALERT={punctuationEcho:"none",doNotInterr upt:!0};cvox.AbstractTts.PERSONALITY_ASIDE={relativePitch:-0.1,color:"#669"};
644 cvox.AbstractTts.PERSONALITY_CAPITAL={relativePitch:0.6};cvox.AbstractTts.PERSON ALITY_DELETED={punctuationEcho:"none",relativePitch:-0.6};cvox.AbstractTts.PERSO NALITY_QUOTE={relativePitch:0.1,color:"#b6b",fontWeight:"bold"};cvox.AbstractTts .PERSONALITY_STRONG={relativePitch:0.1,color:"#b66",fontWeight:"bold"};cvox.Abst ractTts.PERSONALITY_EMPHASIS={relativeVolume:0.1,relativeRate:-0.1,color:"#6bb", fontWeight:"bold"};cvox.AbstractTts.DEBUG=!0;cvox.AbstractTts.QUEUE_MODE_FLUSH=0 ; 644 cvox.AbstractTts.PERSONALITY_CAPITAL={relativePitch:0.6};cvox.AbstractTts.PERSON ALITY_DELETED={punctuationEcho:"none",relativePitch:-0.6};cvox.AbstractTts.PERSO NALITY_QUOTE={relativePitch:0.1,color:"#b6b",fontWeight:"bold"};cvox.AbstractTts .PERSONALITY_STRONG={relativePitch:0.1,color:"#b66",fontWeight:"bold"};cvox.Abst ractTts.PERSONALITY_EMPHASIS={relativeVolume:0.1,relativeRate:-0.1,color:"#6bb", fontWeight:"bold"};cvox.AbstractTts.DEBUG=!0;cvox.AbstractTts.QUEUE_MODE_FLUSH=0 ;
645 cvox.AbstractTts.QUEUE_MODE_QUEUE=1; 645 cvox.AbstractTts.QUEUE_MODE_QUEUE=1;
646 cvox.AbstractTts.CHARACTER_DICTIONARY={" ":"space","`":"backtick","~":"tilde","! ":"exclamation","@":"at","#":"pound",$:"dollar","%":"percent","^":"caret","&":"a mpersand","*":"asterisk","(":"open_paren",")":"close_paren","-":"dash",_:"unders core","=":"equals","+":"plus","[":"left_bracket","]":"right_bracket","{":"left_b race","}":"right_brace","|":"pipe",";":"semicolon",":":"colon",",":"comma",".":" dot","<":"less_than",">":"greater_than","/":"slash","?":"question_mark",'"':"quo te","'":"apostrophe", 646 cvox.AbstractTts.CHARACTER_DICTIONARY={" ":"space","`":"backtick","~":"tilde","! ":"exclamation","@":"at","#":"pound",$:"dollar","%":"percent","^":"caret","&":"a mpersand","*":"asterisk","(":"open_paren",")":"close_paren","-":"dash",_:"unders core","=":"equals","+":"plus","[":"left_bracket","]":"right_bracket","{":"left_b race","}":"right_brace","|":"pipe",";":"semicolon",":":"colon",",":"comma",".":" dot","<":"less_than",">":"greater_than","/":"slash","?":"question_mark",'"':"quo te","'":"apostrophe",
647 "\t":"tab","\r":"return","\n":"new_line","\\":"backslash"};cvox.AbstractTts.PRON UNCIATION_DICTIONARY={admob:"ad-mob",adsense:"ad-sense",adwords:"ad-words",angul arjs:"angular j s",bcc:"B C C",cc:"C C",chromevox:"chrome vox",cr48:"C R 48",ctr l:"control",doubleclick:"double-click",gmail:"gee mail",gtalk:"gee talk",http:"H T T P",https:"H T T P S",igoogle:"eye google",pagerank:"page-rank",username:"us er-name",www:"W W W",youtube:"you tube"}; 647 "\t":"tab","\r":"return","\n":"new_line","\\":"backslash"};cvox.AbstractTts.PRON UNCIATION_DICTIONARY={admob:"ad-mob",adsense:"ad-sense",adwords:"ad-words",angul arjs:"angular j s",bcc:"B C C",cc:"C C",chromevox:"chrome vox",cr48:"C R 48",ctr l:"control",doubleclick:"double-click",gmail:"gee mail",gtalk:"gee talk",http:"H T T P",https:"H T T P S",igoogle:"eye google",pagerank:"page-rank",username:"us er-name",www:"W W W",youtube:"you tube"};
648 cvox.AbstractTts.SUBSTITUTION_DICTIONARY={"://":"colon slash slash","\u00bc":"on e fourth","\u00bd":"one half","\u2190":"left arrow","\u2191":"up arrow","\u2192" :"right arrow","\u2193":"down arrow","\u21d0":"left double arrow","\u21d1":"up d ouble arrow","\u21d2":"right double arrow","\u21d3":"down double arrow","\u21e6 ":"left arrow","\u21e7":"up arrow","\u21e8":"right arrow","\u21e9":"down arrow", "\u2303":"control","\u2318":"command","\u2325":"option","\u25b2":"up triangle"," \u25b3":"up triangle", 648 cvox.AbstractTts.SUBSTITUTION_DICTIONARY={"://":"colon slash slash","\u00bc":"on e fourth","\u00bd":"one half","\u2190":"left arrow","\u2191":"up arrow","\u2192" :"right arrow","\u2193":"down arrow","\u21d0":"left double arrow","\u21d1":"up d ouble arrow","\u21d2":"right double arrow","\u21d3":"down double arrow","\u21e6 ":"left arrow","\u21e7":"up arrow","\u21e8":"right arrow","\u21e9":"down arrow", "\u2303":"control","\u2318":"command","\u2325":"option","\u25b2":"up triangle"," \u25b3":"up triangle",
649 "\u25b4":"up triangle","\u25b5":"up triangle","\u25b6":"right triangle","\u25b7" :"right triangle","\u25b8":"right triangle","\u25b9":"right triangle","\u25ba":" right pointer","\u25bb":"right pointer","\u25bc":"down triangle","\u25bd":"down triangle","\u25be":"down triangle","\u25bf":"down triangle","\u25c0":"left trian gle","\u25c1":"left triangle","\u25c2":"left triangle","\u25c3":"left triangle", "\u25c4":"left pointer","\u25c5":"left pointer","\uf8ff":"apple"}; 649 "\u25b4":"up triangle","\u25b5":"up triangle","\u25b6":"right triangle","\u25b7" :"right triangle","\u25b8":"right triangle","\u25b9":"right triangle","\u25ba":" right pointer","\u25bb":"right pointer","\u25bc":"down triangle","\u25bd":"down triangle","\u25be":"down triangle","\u25bf":"down triangle","\u25c0":"left trian gle","\u25c1":"left triangle","\u25c2":"left triangle","\u25c3":"left triangle", "\u25c4":"left pointer","\u25c5":"left pointer","\uf8ff":"apple"};
650 cvox.AbstractTts.repetitionRegexp_=/([-\/\\|!@#$%^&*\(\)=_+\[\]\{\}.?;'":<>])\1{ 2,}/g;cvox.AbstractTts.repetitionReplace_=function(a){var b=a.length;return" "+( new goog.i18n.MessageFormat(cvox.ChromeVox.msgs.getMsg(cvox.AbstractTts.CHARACTE R_DICTIONARY[a[0]]))).format({COUNT:b})+" "};cvox.AbstractTts.prototype.getDefau ltProperty=function(a){return this.propertyDefault[a]};cvox.AbstractEarcons=func tion(){this.enabled=!0};cvox.AbstractEarcons.prototype.playEarcon=function(){};c vox.AbstractEarcons.prototype.playEarconByName=function(a){this.playEarcon(this. getEarconId(a))}; 650 cvox.AbstractTts.repetitionRegexp_=/([-\/\\|!@#$%^&*\(\)=_+\[\]\{\}.?;'":<>])\1{ 2,}/g;cvox.AbstractTts.repetitionReplace_=function(a){var b=a.length;return" "+( new goog.i18n.MessageFormat(cvox.ChromeVox.msgs.getMsg(cvox.AbstractTts.CHARACTE R_DICTIONARY[a[0]]))).format({COUNT:b})+" "};cvox.AbstractTts.prototype.getDefau ltProperty=function(a){return this.propertyDefault[a]};cvox.AbstractEarcons=func tion(){this.enabled=!0};cvox.AbstractEarcons.prototype.playEarcon=function(){};c vox.AbstractEarcons.prototype.playEarconByName=function(a){this.playEarcon(this. getEarconId(a))};
651 cvox.AbstractEarcons.prototype.getEarconId=function(a){this.earconNamesToIds||(t his.earconNamesToIds={},this.earconNamesToIds.ALERT_MODAL=cvox.AbstractEarcons.A LERT_MODAL,this.earconNamesToIds.ALERT_NONMODAL=cvox.AbstractEarcons.ALERT_NONMO DAL,this.earconNamesToIds.BULLET=cvox.AbstractEarcons.BULLET,this.earconNamesToI ds.BUSY_PROGRESS_LOOP=cvox.AbstractEarcons.BUSY_PROGRESS_LOOP,this.earconNamesTo Ids.BUSY_WORKING_LOOP=cvox.AbstractEarcons.BUSY_WORKING_LOOP,this.earconNamesToI ds.BUTTON=cvox.AbstractEarcons.BUTTON, 651 cvox.AbstractEarcons.prototype.getEarconId=function(a){this.earconNamesToIds||(t his.earconNamesToIds={},this.earconNamesToIds.ALERT_MODAL=cvox.AbstractEarcons.A LERT_MODAL,this.earconNamesToIds.ALERT_NONMODAL=cvox.AbstractEarcons.ALERT_NONMO DAL,this.earconNamesToIds.BULLET=cvox.AbstractEarcons.BULLET,this.earconNamesToI ds.BUSY_PROGRESS_LOOP=cvox.AbstractEarcons.BUSY_PROGRESS_LOOP,this.earconNamesTo Ids.BUSY_WORKING_LOOP=cvox.AbstractEarcons.BUSY_WORKING_LOOP,this.earconNamesToI ds.BUTTON=cvox.AbstractEarcons.BUTTON,
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
724 cvox.DomUtil.getControlLabelHeuristics=function(a){if(a.hasAttribute&&(a.hasAttr ibute("aria-label")&&""==a.getAttribute("aria-label")||a.hasAttribute("aria-titl e")&&""==a.getAttribute("aria-title")))return"";for(var b=cvox.DomUtil.previousL eafNode(a),c=0;b&&(!cvox.DomUtil.hasContent(b)||cvox.DomUtil.isControl(b));)b=cv ox.DomUtil.previousLeafNode(b),c++;for(var c=cvox.DomUtil.directedNextLeafNode(a ),d=0;c&&(!cvox.DomUtil.hasContent(c)||cvox.DomUtil.isControl(c));)c=cvox.DomUti l.directedNextLeafNode(c), 724 cvox.DomUtil.getControlLabelHeuristics=function(a){if(a.hasAttribute&&(a.hasAttr ibute("aria-label")&&""==a.getAttribute("aria-label")||a.hasAttribute("aria-titl e")&&""==a.getAttribute("aria-title")))return"";for(var b=cvox.DomUtil.previousL eafNode(a),c=0;b&&(!cvox.DomUtil.hasContent(b)||cvox.DomUtil.isControl(b));)b=cv ox.DomUtil.previousLeafNode(b),c++;for(var c=cvox.DomUtil.directedNextLeafNode(a ),d=0;c&&(!cvox.DomUtil.hasContent(c)||cvox.DomUtil.isControl(c));)c=cvox.DomUti l.directedNextLeafNode(c),
725 d++;if(b&&c){for(var d=a,e=0;d&&!cvox.DomUtil.isDescendantOfNode(b,d);)d=d.paren tNode,e++;d=a;for(a=0;d&&!cvox.DomUtil.isDescendantOfNode(c,d);)d=d.parentNode,a ++;b=a<e?c:b}else b=b||c;return b?cvox.DomUtil.collapseWhitespace(cvox.DomUtil.g etValue(b)+" "+cvox.DomUtil.getName(b)):""}; 725 d++;if(b&&c){for(var d=a,e=0;d&&!cvox.DomUtil.isDescendantOfNode(b,d);)d=d.paren tNode,e++;d=a;for(a=0;d&&!cvox.DomUtil.isDescendantOfNode(c,d);)d=d.parentNode,a ++;b=a<e?c:b}else b=b||c;return b?cvox.DomUtil.collapseWhitespace(cvox.DomUtil.g etValue(b)+" "+cvox.DomUtil.getName(b)):""};
726 cvox.DomUtil.getValue=function(a){var b=cvox.AriaUtil.getActiveDescendant(a);if( b)return cvox.DomUtil.collapseWhitespace(cvox.DomUtil.getValue(b)+" "+cvox.DomUt il.getName(b));if(a.constructor==HTMLSelectElement){var b="",c=a.selectedOptions ?a.selectedOptions[0]:null;a=a.selectedOptions?a.selectedOptions[a.selectedOptio ns.length-1]:null;c&&a&&c!=a?b=cvox.ChromeVox.msgs.getMsg("selected_options_valu e",[c.text,a.text]):c&&(b=c.text+"");return b}if(a.constructor==HTMLTextAreaElem ent)return a.value;if(a.constructor== 726 cvox.DomUtil.getValue=function(a){var b=cvox.AriaUtil.getActiveDescendant(a);if( b)return cvox.DomUtil.collapseWhitespace(cvox.DomUtil.getValue(b)+" "+cvox.DomUt il.getName(b));if(a.constructor==HTMLSelectElement){var b="",c=a.selectedOptions ?a.selectedOptions[0]:null;a=a.selectedOptions?a.selectedOptions[a.selectedOptio ns.length-1]:null;c&&a&&c!=a?b=cvox.ChromeVox.msgs.getMsg("selected_options_valu e",[c.text,a.text]):c&&(b=c.text+"");return b}if(a.constructor==HTMLTextAreaElem ent)return a.value;if(a.constructor==
727 HTMLInputElement)switch(a.type){case "hidden":case "image":case "submit":case "r eset":case "button":case "checkbox":case "radio":return"";case "password":return a.value.replace(/./g,"dot ");default:return a.value}return a.isContentEditable? cvox.DomUtil.getNameFromChildren(a,!0):""}; 727 HTMLInputElement)switch(a.type){case "hidden":case "image":case "submit":case "r eset":case "button":case "checkbox":case "radio":return"";case "password":return a.value.replace(/./g,"dot ");default:return a.value}return a.isContentEditable? cvox.DomUtil.getNameFromChildren(a,!0):""};
728 cvox.DomUtil.getImageTitle=function(a){a.hasAttribute("alt")?a=a.alt:a.hasAttrib ute("title")?a=a.title:(a=a.src,"data"!=a.substring(0,4)?(a=a.substring(a.lastIn dexOf("/")+1,a.lastIndexOf(".")),a=1<=a.length&&16>=a.length?a+" Image":"Image") :a="Image");return a}; 728 cvox.DomUtil.getImageTitle=function(a){a.hasAttribute("alt")?a=a.alt:a.hasAttrib ute("title")?a=a.title:(a=a.src,"data"!=a.substring(0,4)?(a=a.substring(a.lastIn dexOf("/")+1,a.lastIndexOf(".")),a=1<=a.length&&16>=a.length?a+" Image":"Image") :a="Image");return a};
729 cvox.DomUtil.hasContent=function(a){if(8==a.nodeType||cvox.DomUtil.isDescendantO f(a,"HEAD")||cvox.DomUtil.isDescendantOf(a,"SCRIPT")||cvox.DomUtil.isDescendantO f(a,"NOSCRIPT")||cvox.DomUtil.isDescendantOf(a,"NOEMBED")||cvox.DomUtil.isDescen dantOf(a,"STYLE")||!cvox.DomUtil.isVisible(a)||cvox.AriaUtil.isHidden(a))return! 1;if(cvox.DomUtil.isControl(a)||cvox.DomUtil.isDescendantOf(a,"VIDEO")||cvox.Dom Util.isDescendantOf(a,"AUDIO")||"IFRAME"==a.tagName&&a.src&&0!=a.src.indexOf("ja vascript:"))return!0; 729 cvox.DomUtil.hasContent=function(a){if(8==a.nodeType||cvox.DomUtil.isDescendantO f(a,"HEAD")||cvox.DomUtil.isDescendantOf(a,"SCRIPT")||cvox.DomUtil.isDescendantO f(a,"NOSCRIPT")||cvox.DomUtil.isDescendantOf(a,"NOEMBED")||cvox.DomUtil.isDescen dantOf(a,"STYLE")||!cvox.DomUtil.isVisible(a)||cvox.AriaUtil.isHidden(a))return! 1;if(cvox.DomUtil.isControl(a)||cvox.DomUtil.isDescendantOf(a,"VIDEO")||cvox.Dom Util.isDescendantOf(a,"AUDIO")||"IFRAME"==a.tagName&&a.src&&0!=a.src.indexOf("ja vascript:"))return!0;
730 for(var b="button,input,select,textarea",c=a.parentElement;c&&"LABEL"!=c.tagName ;)c=c.parentElement;if(c){var d=c.querySelector(b);if(c.hasAttribute("for")){if( c=c.getAttribute("for"),(c=document.getElementById(c))&&cvox.DomUtil.isControl(c )&&!d)return!1}else if(d)return!1}for(d=a.parentElement;d&&"LEGEND"!=d.tagName;) d=d.parentElement;if(d){for(c=d.parentElement;c&&"FIELDSET"!=c.tagName;)c=c.pare ntElement;d=c&&c.querySelector(b);if(c&&!d)return!1}if(cvox.DomPredicates.linkPr edicate([a])||"TABLE"== 730 for(var b="button,input,select,textarea",c=a.parentElement;c&&"LABEL"!=c.tagName ;)c=c.parentElement;if(c){var d=c.querySelector(b);if(c.hasAttribute("for")){if( c=c.getAttribute("for"),(c=document.getElementById(c))&&cvox.DomUtil.isControl(c )&&!d)return!1}else if(d)return!1}for(d=a.parentElement;d&&"LEGEND"!=d.tagName;) d=d.parentElement;if(d){for(c=d.parentElement;c&&"FIELDSET"!=c.tagName;)c=c.pare ntElement;d=c&&c.querySelector(b);if(c&&!d)return!1}if(cvox.DomPredicates.linkPr edicate([a])||"TABLE"==
731 a.tagName&&!cvox.DomUtil.isLayoutTable(a)||cvox.DomUtil.isMath(a)||cvox.DomPredi cates.headingPredicate([a]))return!0;b=cvox.DomUtil.getValue(a)+" "+cvox.DomUtil .getName(a);a=cvox.DomUtil.getState(a,!0);return b.match(/^\s+$/)&&""===a?!1:!0} ;cvox.DomUtil.getAncestors=function(a){for(var b=[];a;)b.push(a),a=a.parentNode; for(b.reverse();b.length&&!b[0].tagName&&!b[0].nodeValue;)b.shift();return b}; 731 a.tagName&&!cvox.DomUtil.isLayoutTable(a)||cvox.DomUtil.isMath(a)||cvox.DomPredi cates.headingPredicate([a]))return!0;b=cvox.DomUtil.getValue(a)+" "+cvox.DomUtil .getName(a);a=cvox.DomUtil.getState(a,!0);return b.match(/^\s+$/)&&""===a?!1:!0} ;cvox.DomUtil.getAncestors=function(a){for(var b=[];a;)b.push(a),a=a.parentNode; for(b.reverse();b.length&&!b[0].tagName&&!b[0].nodeValue;)b.shift();return b};
732 cvox.DomUtil.compareAncestors=function(a,b){for(var c=0;a[c]&&b[c]&&a[c]==b[c];) c++;a[c]||b[c]||(c=-1);return c};cvox.DomUtil.getUniqueAncestors=function(a,b,c) {a=cvox.DomUtil.getAncestors(a);b=cvox.DomUtil.getAncestors(b);a=cvox.DomUtil.co mpareAncestors(a,b);a=b.slice(a);return 0==a.length&&c?b:a}; 732 cvox.DomUtil.compareAncestors=function(a,b){for(var c=0;a[c]&&b[c]&&a[c]==b[c];) c++;a[c]||b[c]||(c=-1);return c};cvox.DomUtil.getUniqueAncestors=function(a,b,c) {a=cvox.DomUtil.getAncestors(a);b=cvox.DomUtil.getAncestors(b);a=cvox.DomUtil.co mpareAncestors(a,b);a=b.slice(a);return 0==a.length&&c?b:a};
733 cvox.DomUtil.getRoleMsg=function(a,b){var c;c=cvox.AriaUtil.getRoleNameMsg(a);c| |("INPUT"==a.tagName?c=cvox.DomUtil.INPUT_TYPE_TO_INFORMATION_TABLE_MSG[a.type]: "A"==a.tagName&&cvox.DomUtil.isInternalLink(a)?c="internal_link":"A"==a.tagName& &a.getAttribute("name")?c="":a.isContentEditable?c="input_type_text":cvox.DomUti l.isMath(a)?c="math_expr":"TABLE"==a.tagName&&cvox.DomUtil.isLayoutTable(a)?c="" :b==cvox.VERBOSITY_BRIEF?c=cvox.DomUtil.TAG_TO_INFORMATION_TABLE_BRIEF_MSG[a.tag Name]:(c=cvox.DomUtil.TAG_TO_INFORMATION_TABLE_VERBOSE_MSG[a.tagName], 733 cvox.DomUtil.getRoleMsg=function(a,b){var c;c=cvox.AriaUtil.getRoleNameMsg(a);c| |("INPUT"==a.tagName?c=cvox.DomUtil.INPUT_TYPE_TO_INFORMATION_TABLE_MSG[a.type]: "A"==a.tagName&&cvox.DomUtil.isInternalLink(a)?c="internal_link":"A"==a.tagName& &a.getAttribute("name")?c="":a.isContentEditable?c="input_type_text":cvox.DomUti l.isMath(a)?c="math_expr":"TABLE"==a.tagName&&cvox.DomUtil.isLayoutTable(a)?c="" :b==cvox.VERBOSITY_BRIEF?c=cvox.DomUtil.TAG_TO_INFORMATION_TABLE_BRIEF_MSG[a.tag Name]:(c=cvox.DomUtil.TAG_TO_INFORMATION_TABLE_VERBOSE_MSG[a.tagName],
734 cvox.DomUtil.hasLongDesc(a)&&(c="image_with_long_desc"),!c&&a.onclick&&(c="click able")));return c};cvox.DomUtil.getRole=function(a,b){var c=cvox.DomUtil.getRole Msg(a,b)||"",d=c&&" "!=c?cvox.ChromeVox.msgs.getMsg(c):"";return d?d:c};cvox.Dom Util.getListLength=function(a){var b=0;for(a=a.firstChild;a;a=a.nextSibling)if(" LI"==a.tagName||a.getAttribute&&"listitem"==a.getAttribute("role")){if(a.hasAttr ibute("aria-setsize")){var c=parseInt(a.getAttribute("aria-setsize"),10);if(!isN aN(c))return c}b++}return b}; 734 cvox.DomUtil.hasLongDesc(a)&&(c="image_with_long_desc"),!c&&a.onclick&&(c="click able")));return c};cvox.DomUtil.getRole=function(a,b){var c=cvox.DomUtil.getRole Msg(a,b)||"",d=c&&" "!=c?cvox.ChromeVox.msgs.getMsg(c):"";return d?d:c};
735 cvox.DomUtil.getListLength=function(a){var b=0;for(a=a.firstChild;a;a=a.nextSibl ing)if(cvox.DomUtil.isVisible(a)&&("LI"==a.tagName||a.getAttribute&&"listitem"== a.getAttribute("role"))){if(a.hasAttribute("aria-setsize")){var c=parseInt(a.get Attribute("aria-setsize"),10);if(!isNaN(c))return c}b++}return b};
735 cvox.DomUtil.getStateMsgs=function(a,b){var c=cvox.AriaUtil.getActiveDescendant( a);if(c)return cvox.DomUtil.getStateMsgs(c,b);var c=[],d=a.getAttribute?a.getAtt ribute("role"):"";(c=cvox.AriaUtil.getStateMsgs(a,b))||(c=[]);"INPUT"==a.tagName ?a.hasAttribute("aria-checked")||(d={"checkbox-true":"checkbox_checked_state","c heckbox-false":"checkbox_unchecked_state","radio-true":"radio_selected_state","r adio-false":"radio_unselected_state"},(d=d[a.type+"-"+!!a.checked])&&c.push([d]) ):"SELECT"==a.tagName? 736 cvox.DomUtil.getStateMsgs=function(a,b){var c=cvox.AriaUtil.getActiveDescendant( a);if(c)return cvox.DomUtil.getStateMsgs(c,b);var c=[],d=a.getAttribute?a.getAtt ribute("role"):"";(c=cvox.AriaUtil.getStateMsgs(a,b))||(c=[]);"INPUT"==a.tagName ?a.hasAttribute("aria-checked")||(d={"checkbox-true":"checkbox_checked_state","c heckbox-false":"checkbox_unchecked_state","radio-true":"radio_selected_state","r adio-false":"radio_unselected_state"},(d=d[a.type+"-"+!!a.checked])&&c.push([d]) ):"SELECT"==a.tagName?
736 a.selectedOptions&&1>=a.selectedOptions.length?c.push(["list_position",cvox.Chro meVox.msgs.getNumber(a.selectedIndex+1),cvox.ChromeVox.msgs.getNumber(a.options. length)]):c.push(["selected_options_state",cvox.ChromeVox.msgs.getNumber(a.selec tedOptions.length)]):"UL"!=a.tagName&&"OL"!=a.tagName&&"list"!=d||c.push(["list_ with_items",cvox.ChromeVox.msgs.getNumber(cvox.DomUtil.getListLength(a))]);cvox. DomUtil.isDisabled(a)&&c.push(["aria_disabled_true"]);cvox.DomPredicates.linkPre dicate([a])&&cvox.ChromeVox.visitedUrls[a.href]&& 737 a.selectedOptions&&1>=a.selectedOptions.length?c.push(["list_position",cvox.Chro meVox.msgs.getNumber(a.selectedIndex+1),cvox.ChromeVox.msgs.getNumber(a.options. length)]):c.push(["selected_options_state",cvox.ChromeVox.msgs.getNumber(a.selec tedOptions.length)]):"UL"!=a.tagName&&"OL"!=a.tagName&&"list"!=d||c.push(["list_ with_items",cvox.ChromeVox.msgs.getNumber(cvox.DomUtil.getListLength(a))]);cvox. DomUtil.isDisabled(a)&&c.push(["aria_disabled_true"]);cvox.DomPredicates.linkPre dicate([a])&&cvox.ChromeVox.visitedUrls[a.href]&&
737 c.push(["visited_url"]);a.accessKey&&c.push(["access_key",a.accessKey]);return c };cvox.DomUtil.getState=function(a,b){return cvox.NodeStateUtil.expand(cvox.DomU til.getStateMsgs(a,b))};cvox.DomUtil.isFocusable=function(a){return a&&"number"= =typeof a.tabIndex&&("A"!=a.tagName||a.hasAttribute("href")||a.hasAttribute("tab index"))?0<=a.tabIndex||a.hasAttribute&&a.hasAttribute("tabindex")&&"-1"==a.getA ttribute("tabindex")?!0:!1:!1}; 738 c.push(["visited_url"]);a.accessKey&&c.push(["access_key",a.accessKey]);return c };cvox.DomUtil.getState=function(a,b){return cvox.NodeStateUtil.expand(cvox.DomU til.getStateMsgs(a,b))};cvox.DomUtil.isFocusable=function(a){return a&&"number"= =typeof a.tabIndex&&("A"!=a.tagName||a.hasAttribute("href")||a.hasAttribute("tab index"))?0<=a.tabIndex||a.hasAttribute&&a.hasAttribute("tabindex")&&"-1"==a.getA ttribute("tabindex")?!0:!1:!1};
738 cvox.DomUtil.findFocusableDescendant=function(a){return a&&(a=cvox.DomUtil.findN ode(a,cvox.DomUtil.isFocusable))?a:null};cvox.DomUtil.countFocusableDescendants= function(a){return a?cvox.DomUtil.countNodes(a,cvox.DomUtil.isFocusable):0};cvox .DomUtil.isAttachedToDocument=function(a){for(;a;){if(a.tagName&&"HTML"==a.tagNa me)return!0;a=a.parentNode}return!1}; 739 cvox.DomUtil.findFocusableDescendant=function(a){return a&&(a=cvox.DomUtil.findN ode(a,cvox.DomUtil.isFocusable))?a:null};cvox.DomUtil.countFocusableDescendants= function(a){return a?cvox.DomUtil.countNodes(a,cvox.DomUtil.isFocusable):0};cvox .DomUtil.isAttachedToDocument=function(a){for(;a;){if(a.tagName&&"HTML"==a.tagNa me)return!0;a=a.parentNode}return!1};
739 cvox.DomUtil.clickElem=function(a,b,c,d){var e=cvox.AriaUtil.getActiveDescendant (a);e&&(a=e);if(c){c=null;a.onclick&&(c=a.onclick);!c&&1!=a.nodeType&&a.parentNo de&&a.parentNode.onclick&&(c=a.parentNode.onclick);e=!0;if(c)try{e=c()}catch(f){ }if(!e)return}c=document.createEvent("MouseEvents");d=d?"dblclick":"mousedown";c .initMouseEvent(d,!0,!0,document.defaultView,1,0,0,0,0,!1,!1,b,!1,0,null);c.from Cvox=!0;try{a.dispatchEvent(c)}catch(g){}c=document.createEvent("MouseEvents");c .initMouseEvent("mouseup", 740 cvox.DomUtil.clickElem=function(a,b,c,d){var e=cvox.AriaUtil.getActiveDescendant (a);e&&(a=e);if(c){c=null;a.onclick&&(c=a.onclick);!c&&1!=a.nodeType&&a.parentNo de&&a.parentNode.onclick&&(c=a.parentNode.onclick);e=!0;if(c)try{e=c()}catch(f){ }if(!e)return}c=document.createEvent("MouseEvents");d=d?"dblclick":"mousedown";c .initMouseEvent(d,!0,!0,document.defaultView,1,0,0,0,0,!1,!1,b,!1,0,null);c.from Cvox=!0;try{a.dispatchEvent(c)}catch(g){}c=document.createEvent("MouseEvents");c .initMouseEvent("mouseup",
740 !0,!0,document.defaultView,1,0,0,0,0,!1,!1,b,!1,0,null);c.fromCvox=!0;try{a.disp atchEvent(c)}catch(h){}c=document.createEvent("MouseEvents");c.initMouseEvent("c lick",!0,!0,document.defaultView,1,0,0,0,0,!1,!1,b,!1,0,null);c.fromCvox=!0;try{ a.dispatchEvent(c)}catch(k){}cvox.DomUtil.isInternalLink(a)&&cvox.DomUtil.syncIn ternalLink(a)}; 741 !0,!0,document.defaultView,1,0,0,0,0,!1,!1,b,!1,0,null);c.fromCvox=!0;try{a.disp atchEvent(c)}catch(h){}c=document.createEvent("MouseEvents");c.initMouseEvent("c lick",!0,!0,document.defaultView,1,0,0,0,0,!1,!1,b,!1,0,null);c.fromCvox=!0;try{ a.dispatchEvent(c)}catch(k){}cvox.DomUtil.isInternalLink(a)&&cvox.DomUtil.syncIn ternalLink(a)};
741 cvox.DomUtil.syncInternalLink=function(a){var b=a.href.split("#")[1];a=document. getElementById(b);a||(b=document.getElementsByName(b),0<b.length&&(a=b[0]));if(a ){var b=a.parentNode,c=document.createElement("div");c.setAttribute("tabindex"," -1");b.insertBefore(c,a);c.setAttribute("chromevoxignoreariahidden",1);c.focus() ;cvox.ChromeVox.syncToNode(a,!1)}}; 742 cvox.DomUtil.syncInternalLink=function(a){var b=a.href.split("#")[1];a=document. getElementById(b);a||(b=document.getElementsByName(b),0<b.length&&(a=b[0]));if(a ){var b=a.parentNode,c=document.createElement("div");c.setAttribute("tabindex"," -1");b.insertBefore(c,a);c.setAttribute("chromevoxignoreariahidden",1);c.focus() ;cvox.ChromeVox.syncToNode(a,!1)}};
742 cvox.DomUtil.isInputTypeText=function(a){if(!a||a.constructor!=HTMLInputElement) return!1;switch(a.type){case "email":case "number":case "password":case "search" :case "text":case "tel":case "url":case "":return!0;default:return!1}};cvox.DomU til.isControl=function(a){if(cvox.AriaUtil.isControlWidget(a)&&cvox.DomUtil.isFo cusable(a))return!0;if(a.tagName)switch(a.tagName){case "BUTTON":case "TEXTAREA" :case "SELECT":return!0;case "INPUT":return"hidden"!=a.type}return a.isContentEd itable?!0:!1}; 743 cvox.DomUtil.isInputTypeText=function(a){if(!a||a.constructor!=HTMLInputElement) return!1;switch(a.type){case "email":case "number":case "password":case "search" :case "text":case "tel":case "url":case "":return!0;default:return!1}};cvox.DomU til.isControl=function(a){if(cvox.AriaUtil.isControlWidget(a)&&cvox.DomUtil.isFo cusable(a))return!0;if(a.tagName)switch(a.tagName){case "BUTTON":case "TEXTAREA" :case "SELECT":return!0;case "INPUT":return"hidden"!=a.type}return a.isContentEd itable?!0:!1};
743 cvox.DomUtil.isLeafLevelControl=function(a){return cvox.DomUtil.isControl(a)?!(c vox.AriaUtil.isCompositeControl(a)&&cvox.DomUtil.findFocusableDescendant(a)):!1} ;cvox.DomUtil.getSurroundingControl=function(a){var b=null;if(!cvox.DomUtil.isCo ntrol(a)&&a.hasAttribute&&a.hasAttribute("role"))for(b=a.parentElement;b&&!cvox. AriaUtil.isCompositeControl(b);)b=b.parentElement;return b}; 744 cvox.DomUtil.isLeafLevelControl=function(a){return cvox.DomUtil.isControl(a)?!(c vox.AriaUtil.isCompositeControl(a)&&cvox.DomUtil.findFocusableDescendant(a)):!1} ;cvox.DomUtil.getSurroundingControl=function(a){var b=null;if(!cvox.DomUtil.isCo ntrol(a)&&a.hasAttribute&&a.hasAttribute("role"))for(b=a.parentElement;b&&!cvox. AriaUtil.isCompositeControl(b);)b=b.parentElement;return b};
744 cvox.DomUtil.directedNextLeafLikeNode=function(a,b,c){if(a!=document.body){for(; !cvox.DomUtil.directedNextSibling(a,b);){if(!a)return null;a=a.parentNode;if(a== document.body)return null}cvox.DomUtil.directedNextSibling(a,b)&&(a=cvox.DomUtil .directedNextSibling(a,b))}for(;cvox.DomUtil.directedFirstChild(a,b)&&!c(a);)a=c vox.DomUtil.directedFirstChild(a,b);return a==document.body?null:a};cvox.DomUtil .directedNextLeafNode=function(a,b){b=!!b;return cvox.DomUtil.directedNextLeafLi keNode(a,b,cvox.DomUtil.isLeafNode)}; 745 cvox.DomUtil.directedNextLeafLikeNode=function(a,b,c){if(a!=document.body){for(; !cvox.DomUtil.directedNextSibling(a,b);){if(!a)return null;a=a.parentNode;if(a== document.body)return null}cvox.DomUtil.directedNextSibling(a,b)&&(a=cvox.DomUtil .directedNextSibling(a,b))}for(;cvox.DomUtil.directedFirstChild(a,b)&&!c(a);)a=c vox.DomUtil.directedFirstChild(a,b);return a==document.body?null:a};cvox.DomUtil .directedNextLeafNode=function(a,b){b=!!b;return cvox.DomUtil.directedNextLeafLi keNode(a,b,cvox.DomUtil.isLeafNode)};
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
777 cvox.SpokenMessages.speak=function(a){for(var b=0;b<cvox.SpokenMessages.messages .length;++b){var c=cvox.SpokenMessages.messages[b];if(!c||!c.id&&!c.raw)throw"In valid message received.";var d="";if(null!=c.count)if(0>=c.count)try{d+=cvox.Chr omeVox.msgs.getMsg(c.id[0]+"_optional_default")}catch(e){continue}else d=1==c.co unt?d+cvox.ChromeVox.msgs.getMsg(c.id[0]+"_singular"):d+cvox.ChromeVox.msgs.getM sg(c.id[0]+"_plural",[c.count]);else d=c.raw?d+c.raw:d+cvox.ChromeVox.msgs.getMs g.apply(cvox.ChromeVox.msgs, 778 cvox.SpokenMessages.speak=function(a){for(var b=0;b<cvox.SpokenMessages.messages .length;++b){var c=cvox.SpokenMessages.messages[b];if(!c||!c.id&&!c.raw)throw"In valid message received.";var d="";if(null!=c.count)if(0>=c.count)try{d+=cvox.Chr omeVox.msgs.getMsg(c.id[0]+"_optional_default")}catch(e){continue}else d=1==c.co unt?d+cvox.ChromeVox.msgs.getMsg(c.id[0]+"_singular"):d+cvox.ChromeVox.msgs.getM sg(c.id[0]+"_plural",[c.count]);else d=c.raw?d+c.raw:d+cvox.ChromeVox.msgs.getMs g.apply(cvox.ChromeVox.msgs,
778 c.id);cvox.ChromeVox.tts.speak(d,a,cvox.AbstractTts.PERSONALITY_ANNOUNCEMENT);a= cvox.AbstractTts.QUEUE_MODE_QUEUE}cvox.SpokenMessages.messages=[]};cvox.SpokenMe ssages.currentMessage=function(){if(0==cvox.SpokenMessages.messages.length)throw "Invalid usage of SpokenMessages; start the chain using $m()";return cvox.Spoken Messages.messages[cvox.SpokenMessages.messages.length-1]};cvox.SpokenMessages.wi thCount=function(a){cvox.SpokenMessages.currentMessage().count=a;return cvox.Spo kenMessages}; 779 c.id);cvox.ChromeVox.tts.speak(d,a,cvox.AbstractTts.PERSONALITY_ANNOUNCEMENT);a= cvox.AbstractTts.QUEUE_MODE_QUEUE}cvox.SpokenMessages.messages=[]};cvox.SpokenMe ssages.currentMessage=function(){if(0==cvox.SpokenMessages.messages.length)throw "Invalid usage of SpokenMessages; start the chain using $m()";return cvox.Spoken Messages.messages[cvox.SpokenMessages.messages.length-1]};cvox.SpokenMessages.wi thCount=function(a){cvox.SpokenMessages.currentMessage().count=a;return cvox.Spo kenMessages};
779 cvox.SpokenMessages.andIndexTotal=function(a,b){var c=new cvox.SpokenMessage;c.r aw=cvox.ChromeVox.msgs.getMsg("index_total",[a,b]);cvox.SpokenMessages.messages. push(c);return cvox.SpokenMessages};cvox.SpokenMessages.andEnd=function(){return cvox.SpokenMessages.andMessage("end")};cvox.SpokenMessages.andMessage=function( a){var b=new cvox.SpokenMessage;b.id="string"==typeof a?[a]:a;cvox.SpokenMessage s.messages.push(b);return cvox.SpokenMessages}; 780 cvox.SpokenMessages.andIndexTotal=function(a,b){var c=new cvox.SpokenMessage;c.r aw=cvox.ChromeVox.msgs.getMsg("index_total",[a,b]);cvox.SpokenMessages.messages. push(c);return cvox.SpokenMessages};cvox.SpokenMessages.andEnd=function(){return cvox.SpokenMessages.andMessage("end")};cvox.SpokenMessages.andMessage=function( a){var b=new cvox.SpokenMessage;b.id="string"==typeof a?[a]:a;cvox.SpokenMessage s.messages.push(b);return cvox.SpokenMessages};
780 cvox.SpokenMessages.andRawMessage=function(a){var b=new cvox.SpokenMessage;b.raw =a;cvox.SpokenMessages.messages.push(b);return cvox.SpokenMessages};cvox.SpokenM essages.andPause=function(){return cvox.SpokenMessages.andMessage("pause")};cvox .$m=cvox.SpokenMessages.andMessage;cvox.Widget=function(){this.active=!1;this.in itialNode=null;cvox.Widget.ref_&&cvox.Widget.ref_.isActive()||(cvox.Widget.ref_= this)};cvox.Widget.prototype.isActive=function(){return this.active}; 781 cvox.SpokenMessages.andRawMessage=function(a){var b=new cvox.SpokenMessage;b.raw =a;cvox.SpokenMessages.messages.push(b);return cvox.SpokenMessages};cvox.SpokenM essages.andPause=function(){return cvox.SpokenMessages.andMessage("pause")};cvox .$m=cvox.SpokenMessages.andMessage;cvox.Widget=function(){this.active=!1;this.in itialNode=null;cvox.Widget.ref_&&cvox.Widget.ref_.isActive()||(cvox.Widget.ref_= this)};cvox.Widget.prototype.isActive=function(){return this.active};
781 cvox.Widget.prototype.show=function(){this.isActive()&&this.hide(!0);this.onKeyD own=goog.bind(this.onKeyDown,this);this.onKeyPress=goog.bind(this.onKeyPress,thi s);window.addEventListener("keydown",this.onKeyDown,!0);window.addEventListener( "keypress",this.onKeyPress,!0);this.initialNode=cvox.ChromeVox.navigationManager .getCurrentNode();this.isStickyOn=cvox.ChromeVox.isStickyOn;cvox.ChromeVox.host. sendToBackgroundPage({target:"Prefs",action:"setPref",pref:"sticky",value:!1,ann ounce:!1});this.getNameMsg()&& 782 cvox.Widget.prototype.show=function(){this.isActive()&&this.hide(!0);this.onKeyD own=goog.bind(this.onKeyDown,this);this.onKeyPress=goog.bind(this.onKeyPress,thi s);window.addEventListener("keydown",this.onKeyDown,!0);window.addEventListener( "keypress",this.onKeyPress,!0);this.initialNode=cvox.ChromeVox.navigationManager .getCurrentNode();this.isStickyOn=cvox.ChromeVox.isStickyOn;cvox.ChromeVox.host. sendToBackgroundPage({target:"Prefs",action:"setPref",pref:"sticky",value:!1,ann ounce:!1});this.getNameMsg()&&
782 this.getHelpMsg()&&cvox.$m(this.getNameMsg()).andPause().andMessage(this.getHelp Msg()).speakFlush();cvox.ChromeVox.earcons.playEarcon(cvox.AbstractEarcons.OBJEC T_OPEN);this.active=!0}; 783 this.getHelpMsg()&&cvox.$m(this.getNameMsg()).andPause().andMessage(this.getHelp Msg()).speakFlush();cvox.ChromeVox.earcons.playEarcon(cvox.AbstractEarcons.OBJEC T_OPEN);this.active=!0};
783 cvox.Widget.prototype.hide=function(a){window.removeEventListener("keypress",thi s.onKeyPress,!0);window.removeEventListener("keydown",this.onKeyDown,!0);cvox.Ch romeVox.host.sendToBackgroundPage({target:"Prefs",action:"setPref",pref:"sticky" ,value:this.isStickyOn,announce:!1});cvox.ChromeVox.earcons.playEarcon(cvox.Abst ractEarcons.OBJECT_CLOSE);a||(this.initialNode=1==this.initialNode.nodeType?this .initialNode:this.initialNode.parentNode,cvox.ApiImplementation.syncToNode(this. initialNode,!0,cvox.AbstractTts.QUEUE_MODE_QUEUE)); 784 cvox.Widget.prototype.hide=function(a){window.removeEventListener("keypress",thi s.onKeyPress,!0);window.removeEventListener("keydown",this.onKeyDown,!0);cvox.Ch romeVox.host.sendToBackgroundPage({target:"Prefs",action:"setPref",pref:"sticky" ,value:this.isStickyOn,announce:!1});cvox.ChromeVox.earcons.playEarcon(cvox.Abst ractEarcons.OBJECT_CLOSE);a||(this.initialNode=1==this.initialNode.nodeType?this .initialNode:this.initialNode.parentNode,cvox.ApiImplementation.syncToNode(this. initialNode,!0,cvox.AbstractTts.QUEUE_MODE_QUEUE));
784 this.active=!1};cvox.Widget.prototype.toggle=function(){this.isActive()?this.hid e():this.show()};cvox.Widget.prototype.onKeyDown=function(a){if(27==a.keyCode)re turn this.hide(),a.preventDefault(),!0;if(9==a.keyCode)return this.hide(),!0;17= =a.keyCode&&cvox.ChromeVox.tts.stop();a.stopPropagation();return!0};cvox.Widget. prototype.onKeyPress=function(){return!1};cvox.Widget.isActive=function(){return cvox.Widget.ref_&&cvox.Widget.ref_.isActive()||!1};cvox.Cursor=function(a,b,c){ this.node=a;this.index=b;this.text=c};cvox.Cursor.prototype.clone=function(){ret urn new cvox.Cursor(this.node,this.index,this.text)};cvox.Cursor.prototype.copyF rom=function(a){this.node=a.node;this.index=a.index;this.text=a.text};cvox.Curso r.prototype.equals=function(a){return this.node==a.node&&this.index==a.index&&th is.text==a.text};cvox.SelectionUtil=function(){};cvox.SelectionUtil.cleanUpParag raphForward=function(a){for(;3==a.focusNode.nodeType;){var b=a.focusNode,c=a.foc usOffset;a.modify("extend","forward","sentence");if(b==a.focusNode&&c==a.focusOf fset)return!1}return!0};cvox.SelectionUtil.cleanUpParagraphBack=function(a){for( var b,c;3==a.focusNode.nodeType&&(b=a.focusNode,c=a.focusOffset,a.modify("extend ","backward","sentence"),b!=a.focusNode||c!=a.focusOffset););return!0}; 785 this.active=!1};cvox.Widget.prototype.toggle=function(){this.isActive()?this.hid e():this.show()};cvox.Widget.prototype.onKeyDown=function(a){if(27==a.keyCode)re turn this.hide(),a.preventDefault(),!0;if(9==a.keyCode)return this.hide(),!0;17= =a.keyCode&&cvox.ChromeVox.tts.stop();a.stopPropagation();return!0};cvox.Widget. prototype.onKeyPress=function(){return!1};cvox.Widget.isActive=function(){return cvox.Widget.ref_&&cvox.Widget.ref_.isActive()||!1};cvox.Cursor=function(a,b,c){ this.node=a;this.index=b;this.text=c};cvox.Cursor.prototype.clone=function(){ret urn new cvox.Cursor(this.node,this.index,this.text)};cvox.Cursor.prototype.copyF rom=function(a){this.node=a.node;this.index=a.index;this.text=a.text};cvox.Curso r.prototype.equals=function(a){return this.node==a.node&&this.index==a.index&&th is.text==a.text};cvox.SelectionUtil=function(){};cvox.SelectionUtil.cleanUpParag raphForward=function(a){for(;3==a.focusNode.nodeType;){var b=a.focusNode,c=a.foc usOffset;a.modify("extend","forward","sentence");if(b==a.focusNode&&c==a.focusOf fset)return!1}return!0};cvox.SelectionUtil.cleanUpParagraphBack=function(a){for( var b,c;3==a.focusNode.nodeType&&(b=a.focusNode,c=a.focusOffset,a.modify("extend ","backward","sentence"),b!=a.focusNode||c!=a.focusOffset););return!0};
785 cvox.SelectionUtil.cleanUpSentence=function(a){for(var b=!0;b;)if(3==a.focusNode .nodeType){var c=a.focusNode,d=a.focusOffset;if(0<a.rangeCount&&0<a.getRangeAt(0 ).endOffset)if("."==c.substringData(a.getRangeAt(0).endOffset-1,1))break;else if (" "==c.substringData(a.getRangeAt(0).endOffset-1,1))break;else{if(a.modify("ext end","forward","sentence"),c==a.focusNode&&d==a.focusOffset)return!1}else break} else break;return!0}; 786 cvox.SelectionUtil.cleanUpSentence=function(a){for(var b=!0;b;)if(3==a.focusNode .nodeType){var c=a.focusNode,d=a.focusOffset;if(0<a.rangeCount&&0<a.getRangeAt(0 ).endOffset)if("."==c.substringData(a.getRangeAt(0).endOffset-1,1))break;else if (" "==c.substringData(a.getRangeAt(0).endOffset-1,1))break;else{if(a.modify("ext end","forward","sentence"),c==a.focusNode&&d==a.focusOffset)return!1}else break} else break;return!0};
786 cvox.SelectionUtil.findSelPosition=function(a){if(0==a.rangeCount)return[0,0];va r b=a.getRangeAt(0).getBoundingClientRect();if(!b)return[0,0];a=window.pageYOffs et+b.top;b=window.pageXOffset+b.left;return[a,b]};cvox.SelectionUtil.findTopLeft Position=function(a){var b=0,c=0;if(a.offsetParent)for(b=a.offsetLeft,c=a.offset Top,a=a.offsetParent;null!==a;)b+=a.offsetLeft,c+=a.offsetTop,a=a.offsetParent;r eturn[c,b]}; 787 cvox.SelectionUtil.findSelPosition=function(a){if(0==a.rangeCount)return[0,0];va r b=a.getRangeAt(0).getBoundingClientRect();if(!b)return[0,0];a=window.pageYOffs et+b.top;b=window.pageXOffset+b.left;return[a,b]};cvox.SelectionUtil.findTopLeft Position=function(a){var b=0,c=0;if(a.offsetParent)for(b=a.offsetLeft,c=a.offset Top,a=a.offsetParent;null!==a;)b+=a.offsetLeft,c+=a.offsetTop,a=a.offsetParent;r eturn[c,b]};
787 cvox.SelectionUtil.isSelectionValid=function(a){var b=RegExp(/^\s+$/);return!(b. test(a.toString())||""==a.toString())};cvox.SelectionUtil.isRangeValid=function( a){a=a.cloneContents().textContent;var b=RegExp(/^\s+$/);return!(b.test(a)||""== a)};cvox.SelectionUtil.findPos_=function(a){var b=0,c=0;if(a.offsetParent){do b+ =a.offsetLeft,c+=a.offsetTop;while(a=a.offsetParent)}return[b,c]}; 788 cvox.SelectionUtil.isSelectionValid=function(a){var b=new RegExp(/^\s+$/);return !(b.test(a.toString())||""==a.toString())};cvox.SelectionUtil.isRangeValid=funct ion(a){a=a.cloneContents().textContent;var b=new RegExp(/^\s+$/);return!(b.test( a)||""==a)};cvox.SelectionUtil.findPos_=function(a){var b=0,c=0;if(a.offsetParen t){do b+=a.offsetLeft,c+=a.offsetTop;while(a=a.offsetParent)}return[b,c]};
788 cvox.SelectionUtil.scrollElementsToView=function(a){for(;a&&!a.getBoundingClient Rect;)a=a.parentElement;if(a){for(var b=a,c=b.parentElement;b!=document.body&&c; )b.scrollTop=b.offsetTop,b.scrollLeft=b.offsetLeft,b=c,c=b.parentElement;a=cvox. SelectionUtil.findPos_(a);window.scrollTo(a[0]-window.innerWidth/2,a[1]-window.i nnerHeight/2)}}; 789 cvox.SelectionUtil.scrollElementsToView=function(a){for(;a&&!a.getBoundingClient Rect;)a=a.parentElement;if(a){for(var b=a,c=b.parentElement;b!=document.body&&c; )b.scrollTop=b.offsetTop,b.scrollLeft=b.offsetLeft,b=c,c=b.parentElement;a=cvox. SelectionUtil.findPos_(a);window.scrollTo(a[0]-window.innerWidth/2,a[1]-window.i nnerHeight/2)}};
789 cvox.SelectionUtil.scrollToSelection=function(a){if(0!=a.rangeCount){cvox.Select ionUtil.scrollElementsToView(a.focusNode);var b=cvox.SelectionUtil.findSelPositi on(a);a=b[0];var b=b[1],c=window.pageYOffset||document.documentElement.scrollTop ||document.body.scrollTop,d=window.innerHeight||document.documentElement.clientH eight||document.body.clientHeight,e=window.innerWidth||document.documentElement. innerWidth||document.body.clientWidth;b<e&&(b=0);c+d<a?(a-=d,window.scroll(b,a+1 00)):a<c&&window.scroll(b, 790 cvox.SelectionUtil.scrollToSelection=function(a){if(0!=a.rangeCount){cvox.Select ionUtil.scrollElementsToView(a.focusNode);var b=cvox.SelectionUtil.findSelPositi on(a);a=b[0];var b=b[1],c=window.pageYOffset||document.documentElement.scrollTop ||document.body.scrollTop,d=window.innerHeight||document.documentElement.clientH eight||document.body.clientHeight,e=window.innerWidth||document.documentElement. innerWidth||document.body.clientWidth;b<e&&(b=0);c+d<a?(a-=d,window.scroll(b,a+1 00)):a<c&&window.scroll(b,
790 a-100)}};cvox.SelectionUtil.isAllWs=function(a){return!/[^\t\n\r ]/.test(a.data) };cvox.SelectionUtil.isIgnorable=function(a){return 8==a.nodeType||3==a.nodeType &&cvox.SelectionUtil.isAllWs(a)};cvox.SelectionUtil.nodeBefore=function(a){for(; a=a.previousSibling;)if(!cvox.SelectionUtil.isIgnorable(a))return a;return null} ;cvox.SelectionUtil.nodeAfter=function(a){for(;a=a.nextSibling;)if(!cvox.Selecti onUtil.isIgnorable(a))return a;return null}; 791 a-100)}};cvox.SelectionUtil.isAllWs=function(a){return!/[^\t\n\r ]/.test(a.data) };cvox.SelectionUtil.isIgnorable=function(a){return 8==a.nodeType||3==a.nodeType &&cvox.SelectionUtil.isAllWs(a)};cvox.SelectionUtil.nodeBefore=function(a){for(; a=a.previousSibling;)if(!cvox.SelectionUtil.isIgnorable(a))return a;return null} ;cvox.SelectionUtil.nodeAfter=function(a){for(;a=a.nextSibling;)if(!cvox.Selecti onUtil.isIgnorable(a))return a;return null};
791 cvox.SelectionUtil.lastChildNode=function(a){for(a=a.lastChild;a;){if(!cvox.Sele ctionUtil.isIgnorable(a))return a;a=a.previousSibling}return null};cvox.Selectio nUtil.firstChildNode=function(a){for(a=a.firstChild;a;){if(!cvox.SelectionUtil.i sIgnorable(a))return a;a=a.nextSibling}return null};cvox.SelectionUtil.dataOf=fu nction(a){a=a.data;a=a.replace(/[\t\n\r ]+/g," ");" "==a.charAt(0)&&(a=a.substri ng(1,a.length));" "==a.charAt(a.length-1)&&(a=a.substring(0,a.length-1));return a}; 792 cvox.SelectionUtil.lastChildNode=function(a){for(a=a.lastChild;a;){if(!cvox.Sele ctionUtil.isIgnorable(a))return a;a=a.previousSibling}return null};cvox.Selectio nUtil.firstChildNode=function(a){for(a=a.firstChild;a;){if(!cvox.SelectionUtil.i sIgnorable(a))return a;a=a.nextSibling}return null};cvox.SelectionUtil.dataOf=fu nction(a){a=a.data;a=a.replace(/[\t\n\r ]+/g," ");" "==a.charAt(0)&&(a=a.substri ng(1,a.length));" "==a.charAt(a.length-1)&&(a=a.substring(0,a.length-1));return a};
792 cvox.SelectionUtil.hasContentWithTag=function(a,b){if(!a||!a.anchorNode||!a.focu sNode)return!1;if(a.anchorNode.tagName&&a.anchorNode.tagName==b||a.focusNode.tag Name&&a.focusNode.tagName==b||a.anchorNode.parentNode.tagName&&a.anchorNode.pare ntNode.tagName==b||a.focusNode.parentNode.tagName&&a.focusNode.parentNode.tagNam e==b)return!0;var c=a.getRangeAt(0).cloneContents(),d=document.createElement("sp an");d.appendChild(c);return 0<d.getElementsByTagName(b).length}; 793 cvox.SelectionUtil.hasContentWithTag=function(a,b){if(!a||!a.anchorNode||!a.focu sNode)return!1;if(a.anchorNode.tagName&&a.anchorNode.tagName==b||a.focusNode.tag Name&&a.focusNode.tagName==b||a.anchorNode.parentNode.tagName&&a.anchorNode.pare ntNode.tagName==b||a.focusNode.parentNode.tagName&&a.focusNode.parentNode.tagNam e==b)return!0;var c=a.getRangeAt(0).cloneContents(),d=document.createElement("sp an");d.appendChild(c);return 0<d.getElementsByTagName(b).length};
793 cvox.SelectionUtil.selectText=function(a,b,c){var d=document.createRange();d.set Start(a,b);d.setEnd(a,c);a=window.getSelection();a.removeAllRanges();a.addRange( d)};cvox.SelectionUtil.selectAllTextInNode=function(a){var b=document.createRang e();b.setStart(a,0);b.setEndAfter(a);a=window.getSelection();a.removeAllRanges() ;a.addRange(b)}; 794 cvox.SelectionUtil.selectText=function(a,b,c){var d=document.createRange();d.set Start(a,b);d.setEnd(a,c);a=window.getSelection();a.removeAllRanges();a.addRange( d)};cvox.SelectionUtil.selectAllTextInNode=function(a){var b=document.createRang e();b.setStart(a,0);b.setEndAfter(a);a=window.getSelection();a.removeAllRanges() ;a.addRange(b)};
794 cvox.SelectionUtil.collapseToStart=function(a){var b=window.getSelection(),c=b.a nchorNode,d=b.anchorOffset;null==c&&(c=a,d=0);a=document.createRange();a.setStar t(c,d);a.setEnd(c,d);b.removeAllRanges();b.addRange(a)};cvox.SelectionUtil.colla pseToEnd=function(a){var b=window.getSelection(),c=b.focusNode,d=b.focusOffset;n ull==c&&(c=a,d=0);a=document.createRange();a.setStart(c,d);a.setEnd(c,d);b.remov eAllRanges();b.addRange(a)}; 795 cvox.SelectionUtil.collapseToStart=function(a){var b=window.getSelection(),c=b.a nchorNode,d=b.anchorOffset;null==c&&(c=a,d=0);a=document.createRange();a.setStar t(c,d);a.setEnd(c,d);b.removeAllRanges();b.addRange(a)};cvox.SelectionUtil.colla pseToEnd=function(a){var b=window.getSelection(),c=b.focusNode,d=b.focusOffset;n ull==c&&(c=a,d=0);a=document.createRange();a.setStart(c,d);a.setEnd(c,d);b.remov eAllRanges();b.addRange(a)};
795 cvox.SelectionUtil.getText=function(){var a=window.getSelection();if(cvox.Select ionUtil.hasContentWithTag(a,"IMG")){var b="",a=a.getRangeAt(0).cloneContents(),c =document.createElement("span");c.appendChild(a);for(var a=cvox.XpathUtil.getLea fNodes(c),c=0,d;d=a[c];c++)b=b+" "+cvox.DomUtil.getName(d);return b}return this. getSelectionText_()};cvox.SelectionUtil.getSelectionText_=function(){return""+wi ndow.getSelection()}; 796 cvox.SelectionUtil.getText=function(){var a=window.getSelection();if(cvox.Select ionUtil.hasContentWithTag(a,"IMG")){var b="",a=a.getRangeAt(0).cloneContents(),c =document.createElement("span");c.appendChild(a);for(var a=cvox.XpathUtil.getLea fNodes(c),c=0,d;d=a[c];c++)b=b+" "+cvox.DomUtil.getName(d);return b}return this. getSelectionText_()};cvox.SelectionUtil.getSelectionText_=function(){return""+wi ndow.getSelection()};
796 cvox.SelectionUtil.getRangeText=function(a){return a?a.cloneContents().textConte nt.replace(/\s+/g," "):""};cvox.TraverseUtil=function(){};cvox.TraverseUtil.getN odeText=function(a){return a.constructor==Text?a.data:""};cvox.TraverseUtil.trea tAsLeafNode=function(a){return 0==a.childNodes.length||"SELECT"==a.nodeName||"li stbox"==a.getAttribute("role")||"OBJECT"==a.nodeName};cvox.TraverseUtil.isWhites pace=function(a){return" "==a||"\n"==a||"\r"==a||"\t"==a}; 797 cvox.SelectionUtil.getRangeText=function(a){return a?a.cloneContents().textConte nt.replace(/\s+/g," "):""};cvox.TraverseUtil=function(){};cvox.TraverseUtil.getN odeText=function(a){return a.constructor==Text?a.data:""};cvox.TraverseUtil.trea tAsLeafNode=function(a){return 0==a.childNodes.length||"SELECT"==a.nodeName||"li stbox"==a.getAttribute("role")||"OBJECT"==a.nodeName};cvox.TraverseUtil.isWhites pace=function(a){return" "==a||"\n"==a||"\r"==a||"\t"==a};
797 cvox.TraverseUtil.setSelection=function(a,b){var c=window.getSelection();c.remov eAllRanges();var d=document.createRange();d.setStart(a.node,a.index);d.setEnd(b. node,b.index);c.addRange(d);return c};cvox.TraverseUtil.isHidden=function(a){if( a instanceof HTMLElement&&"true"==a.getAttribute("aria-hidden"))return!0;switch( a.tagName){case "SCRIPT":case "NOSCRIPT":return!0}return!1}; 798 cvox.TraverseUtil.setSelection=function(a,b){var c=window.getSelection();c.remov eAllRanges();var d=document.createRange();d.setStart(a.node,a.index);d.setEnd(b. node,b.index);c.addRange(d);return c};cvox.TraverseUtil.isHidden=function(a){if( a instanceof HTMLElement&&"true"==a.getAttribute("aria-hidden"))return!0;switch( a.tagName){case "SCRIPT":case "NOSCRIPT":return!0}return!1};
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
947 cvox.SpeechRule.Type.fromString=function(a){switch(a){case "[n]":return cvox.Spe echRule.Type.NODE;case "[m]":return cvox.SpeechRule.Type.MULTI;case "[t]":return cvox.SpeechRule.Type.TEXT;case "[p]":return cvox.SpeechRule.Type.PERSONALITY;de fault:throw"Parse error: "+a;}}; 948 cvox.SpeechRule.Type.fromString=function(a){switch(a){case "[n]":return cvox.Spe echRule.Type.NODE;case "[m]":return cvox.SpeechRule.Type.MULTI;case "[t]":return cvox.SpeechRule.Type.TEXT;case "[p]":return cvox.SpeechRule.Type.PERSONALITY;de fault:throw"Parse error: "+a;}};
948 cvox.SpeechRule.Type.toString=function(a){switch(a){case cvox.SpeechRule.Type.NO DE:return"[n]";case cvox.SpeechRule.Type.MULTI:return"[m]";case cvox.SpeechRule. Type.TEXT:return"[t]";case cvox.SpeechRule.Type.PERSONALITY:return"[p]";default: throw"Unknown type error: "+a;}};cvox.SpeechRule.Component=function(a){this.type =a.type;this.content=a.content}; 949 cvox.SpeechRule.Type.toString=function(a){switch(a){case cvox.SpeechRule.Type.NO DE:return"[n]";case cvox.SpeechRule.Type.MULTI:return"[m]";case cvox.SpeechRule. Type.TEXT:return"[t]";case cvox.SpeechRule.Type.PERSONALITY:return"[p]";default: throw"Unknown type error: "+a;}};cvox.SpeechRule.Component=function(a){this.type =a.type;this.content=a.content};
949 cvox.SpeechRule.Component.fromString=function(a){var b={};b.type=cvox.SpeechRule .Type.fromString(a.substring(0,3));a=a.slice(3).trimLeft();if(!a)throw new cvox. SpeechRule.OutputError("Missing content.");switch(b.type){case cvox.SpeechRule.T ype.TEXT:if('"'==a[0]){var c=cvox.SpeechRule.splitString_(a,"\\(")[0].trim();if( '"'!=c.slice(-1))throw new cvox.SpeechRule.OutputError("Invalid string syntax.") ;b.content=c;a=a.slice(c.length).trim();-1==a.indexOf("(")&&(a="");break}case cv ox.SpeechRule.Type.NODE:case cvox.SpeechRule.Type.MULTI:c= 950 cvox.SpeechRule.Component.fromString=function(a){var b={};b.type=cvox.SpeechRule .Type.fromString(a.substring(0,3));a=a.slice(3).trimLeft();if(!a)throw new cvox. SpeechRule.OutputError("Missing content.");switch(b.type){case cvox.SpeechRule.T ype.TEXT:if('"'==a[0]){var c=cvox.SpeechRule.splitString_(a,"\\(")[0].trim();if( '"'!=c.slice(-1))throw new cvox.SpeechRule.OutputError("Invalid string syntax.") ;b.content=c;a=a.slice(c.length).trim();-1==a.indexOf("(")&&(a="");break}case cv ox.SpeechRule.Type.NODE:case cvox.SpeechRule.Type.MULTI:c=
950 a.indexOf(" (");if(-1==c){b.content=a.trim();a="";break}b.content=a.substring(0, c).trim();a=a.slice(c).trimLeft()}b=new cvox.SpeechRule.Component(b);a&&b.addAtt ributes(a);return b};cvox.SpeechRule.Component.prototype.toString=function(){var a="",a=a+cvox.SpeechRule.Type.toString(this.type),a=a+(this.content?" "+this.co ntent:""),b=this.getAttributes();0<b.length&&(a+=" ("+b.join(", ")+")");return a }; 951 a.indexOf(" (");if(-1==c){b.content=a.trim();a="";break}b.content=a.substring(0, c).trim();a=a.slice(c).trimLeft()}b=new cvox.SpeechRule.Component(b);a&&b.addAtt ributes(a);return b};cvox.SpeechRule.Component.prototype.toString=function(){var a="",a=a+cvox.SpeechRule.Type.toString(this.type),a=a+(this.content?" "+this.co ntent:""),b=this.getAttributes();0<b.length&&(a+=" ("+b.join(", ")+")");return a };
951 cvox.SpeechRule.Component.prototype.addAttribute=function(a){var b=a.indexOf(":" );-1==b?this[a.trim()]="true":this[a.substring(0,b).trim()]=a.slice(b+1).trim()} ;cvox.SpeechRule.Component.prototype.addAttributes=function(a){if("("!=a[0]||")" !=a.slice(-1))throw new cvox.SpeechRule.OutputError("Invalid attribute expressio n: "+a);a=cvox.SpeechRule.splitString_(a.slice(1,-1),",");for(var b=0;b<a.length ;b++)this.addAttribute(a[b])}; 952 cvox.SpeechRule.Component.prototype.addAttribute=function(a){var b=a.indexOf(":" );-1==b?this[a.trim()]="true":this[a.substring(0,b).trim()]=a.slice(b+1).trim()} ;cvox.SpeechRule.Component.prototype.addAttributes=function(a){if("("!=a[0]||")" !=a.slice(-1))throw new cvox.SpeechRule.OutputError("Invalid attribute expressio n: "+a);a=cvox.SpeechRule.splitString_(a.slice(1,-1),",");for(var b=0;b<a.length ;b++)this.addAttribute(a[b])};
952 cvox.SpeechRule.Component.prototype.getAttributes=function(){var a=[],b;for(b in this)"content"!=b&&"type"!=b&&"function"!=typeof this[b]&&a.push(b+":"+this[b]) ;return a};cvox.SpeechRule.Action=function(a){this.components=a};cvox.SpeechRule .Action.fromString=function(a){a=cvox.SpeechRule.splitString_(a,";").filter(func tion(a){return a.match(/\S/)}).map(function(a){return a.trim()});for(var b=[],c= 0;c<a.length;c++){var d=cvox.SpeechRule.Component.fromString(a[c]);d&&b.push(d)} return new cvox.SpeechRule.Action(b)}; 953 cvox.SpeechRule.Component.prototype.getAttributes=function(){var a=[],b;for(b in this)"content"!=b&&"type"!=b&&"function"!=typeof this[b]&&a.push(b+":"+this[b]) ;return a};cvox.SpeechRule.Action=function(a){this.components=a};cvox.SpeechRule .Action.fromString=function(a){a=cvox.SpeechRule.splitString_(a,";").filter(func tion(a){return a.match(/\S/)}).map(function(a){return a.trim()});for(var b=[],c= 0;c<a.length;c++){var d=cvox.SpeechRule.Component.fromString(a[c]);d&&b.push(d)} return new cvox.SpeechRule.Action(b)};
953 cvox.SpeechRule.Action.prototype.toString=function(){var a=this.components.map(f unction(a){return a.toString()});return a.join("; ")};cvox.SpeechRule.Preconditi on=function(a,b){this.query=a;this.constraints=b||[]};cvox.SpeechRule.Preconditi on.prototype.toString=function(){var a=this.constraints.join(", ");return this.q uery+", "+a}; 954 cvox.SpeechRule.Action.prototype.toString=function(){var a=this.components.map(f unction(a){return a.toString()});return a.join("; ")};cvox.SpeechRule.Preconditi on=function(a,b){this.query=a;this.constraints=b||[]};cvox.SpeechRule.Preconditi on.prototype.toString=function(){var a=this.constraints.join(", ");return this.q uery+", "+a};
954 cvox.SpeechRule.splitString_=function(a,b){for(var c=[],d="";""!=a;){var e=a.sea rch(b);if(-1==e){if(0!=(a.match(/"/g)||[]).length%2)throw new cvox.SpeechRule.Ou tputError("Invalid string in expression: "+a);c.push(d+a);a=d=""}else if(0==(a.s ubstring(0,e).match(/"/g)||[]).length%2)c.push(d+a.substring(0,e)),d="",a=a.subs tring(e+1);else{var f=a.substring(e).search('"');if(-1==f)throw new cvox.SpeechR ule.OutputError("Invalid string in expression: "+a);d+=a.substring(0,e+f+1);a=a. substring(e+f+1)}}d&& 955 cvox.SpeechRule.splitString_=function(a,b){for(var c=[],d="";""!=a;){var e=a.sea rch(b);if(-1==e){if(0!=(a.match(/"/g)||[]).length%2)throw new cvox.SpeechRule.Ou tputError("Invalid string in expression: "+a);c.push(d+a);a=d=""}else if(0==(a.s ubstring(0,e).match(/"/g)||[]).length%2)c.push(d+a.substring(0,e)),d="",a=a.subs tring(e+1);else{var f=a.substring(e).search('"');if(-1==f)throw new cvox.SpeechR ule.OutputError("Invalid string in expression: "+a);d+=a.substring(0,e+f+1);a=a. substring(e+f+1)}}d&&
955 c.push(d);return c};cvox.SpeechRule.DynamicCstrAttrib={STYLE:"style"};cvox.Speec hRule.OutputError=function(a){this.name="RuleError";this.message=a||""};goog.inh erits(cvox.SpeechRule.OutputError,Error);cvox.SpeechRuleFunctions=function(){};c vox.SpeechRuleFunctions.Store_=function(a,b){this.prefix_=a;this.store_=b};cvox. SpeechRuleFunctions.Store_.prototype.add=function(a,b){this.checkCustomFunctionS yntax_(a)&&(this.store_[a]=b)};cvox.SpeechRuleFunctions.Store_.prototype.lookup= function(a){return this.store_[a]};cvox.SpeechRuleFunctions.CustomQueries=functi on(){var a={};cvox.SpeechRuleFunctions.Store_.call(this,"CQF",a)};goog.inherits( cvox.SpeechRuleFunctions.CustomQueries,cvox.SpeechRuleFunctions.Store_); 956 c.push(d);return c};cvox.SpeechRule.DynamicCstrAttrib={STYLE:"style"};cvox.Speec hRule.OutputError=function(a){this.name="RuleError";this.message=a||""};goog.inh erits(cvox.SpeechRule.OutputError,Error);cvox.SpeechRuleFunctions=function(){};c vox.SpeechRuleFunctions.Store_=function(a,b){this.prefix_=a;this.store_=b};cvox. SpeechRuleFunctions.Store_.prototype.add=function(a,b){this.checkCustomFunctionS yntax_(a)&&(this.store_[a]=b)};cvox.SpeechRuleFunctions.Store_.prototype.lookup= function(a){return this.store_[a]};cvox.SpeechRuleFunctions.CustomQueries=functi on(){var a={};cvox.SpeechRuleFunctions.Store_.call(this,"CQF",a)};goog.inherits( cvox.SpeechRuleFunctions.CustomQueries,cvox.SpeechRuleFunctions.Store_);
956 cvox.SpeechRuleFunctions.CustomStrings=function(){var a={};cvox.SpeechRuleFuncti ons.Store_.call(this,"CSF",a)};goog.inherits(cvox.SpeechRuleFunctions.CustomStri ngs,cvox.SpeechRuleFunctions.Store_);cvox.SpeechRuleFunctions.ContextFunctions=f unction(){var a={};cvox.SpeechRuleFunctions.Store_.call(this,"CTXF",a)};goog.inh erits(cvox.SpeechRuleFunctions.ContextFunctions,cvox.SpeechRuleFunctions.Store_) ; 957 cvox.SpeechRuleFunctions.CustomStrings=function(){var a={};cvox.SpeechRuleFuncti ons.Store_.call(this,"CSF",a)};goog.inherits(cvox.SpeechRuleFunctions.CustomStri ngs,cvox.SpeechRuleFunctions.Store_);cvox.SpeechRuleFunctions.ContextFunctions=f unction(){var a={};cvox.SpeechRuleFunctions.Store_.call(this,"CTXF",a)};goog.inh erits(cvox.SpeechRuleFunctions.ContextFunctions,cvox.SpeechRuleFunctions.Store_) ;
957 cvox.SpeechRuleFunctions.Store_.prototype.checkCustomFunctionSyntax_=function(a) {var b=RegExp("^"+this.prefix_);return a.match(b)?!0:(console.log("FunctionError : Invalid function name. Expected prefix"+this.prefix_),!1)};cvox.BaseRuleStore= function(){this.customQueries=new cvox.SpeechRuleFunctions.CustomQueries;this.cu stomStrings=new cvox.SpeechRuleFunctions.CustomStrings;this.contextFunctions=new cvox.SpeechRuleFunctions.ContextFunctions;this.speechRules_=[];this.dynamicCstr Attribs=[cvox.SpeechRule.DynamicCstrAttrib.STYLE];this.defaultTtsProps=[]}; 958 cvox.SpeechRuleFunctions.Store_.prototype.checkCustomFunctionSyntax_=function(a) {var b=new RegExp("^"+this.prefix_);return a.match(b)?!0:(console.log("FunctionE rror: Invalid function name. Expected prefix"+this.prefix_),!1)};cvox.BaseRuleSt ore=function(){this.customQueries=new cvox.SpeechRuleFunctions.CustomQueries;thi s.customStrings=new cvox.SpeechRuleFunctions.CustomStrings;this.contextFunctions =new cvox.SpeechRuleFunctions.ContextFunctions;this.speechRules_=[];this.dynamic CstrAttribs=[cvox.SpeechRule.DynamicCstrAttrib.STYLE];this.defaultTtsProps=[]};
958 cvox.BaseRuleStore.prototype.lookupRule=function(a,b){if(!a||a.nodeType!=Node.EL EMENT_NODE&&a.nodeType!=Node.TEXT_NODE)return null;var c=this.speechRules_.filte r(goog.bind(function(c){return this.testDynamicConstraints(b,c)&&this.testPrecon dition_(a,c)},this));return 0<c.length?this.pickMostConstraint_(b,c):null}; 959 cvox.BaseRuleStore.prototype.lookupRule=function(a,b){if(!a||a.nodeType!=Node.EL EMENT_NODE&&a.nodeType!=Node.TEXT_NODE)return null;var c=this.speechRules_.filte r(goog.bind(function(c){return this.testDynamicConstraints(b,c)&&this.testPrecon dition_(a,c)},this));return 0<c.length?this.pickMostConstraint_(b,c):null};
959 cvox.BaseRuleStore.prototype.defineRule=function(a,b,c,d,e){try{var f=cvox.Speec hRule.Action.fromString(c),g=Array.prototype.slice.call(arguments,4),h=new cvox. SpeechRule.Precondition(d,g),g={};g[cvox.SpeechRule.DynamicCstrAttrib.STYLE]=b;v ar k=new cvox.SpeechRule(a,g,h,f)}catch(l){if("RuleError"==l.name)return console .log("Rule Error ",d,"("+b+"):",l.message),null;throw l;}this.addRule(k);return k};cvox.BaseRuleStore.prototype.addRule=function(a){this.speechRules_.unshift(a) }; 960 cvox.BaseRuleStore.prototype.defineRule=function(a,b,c,d,e){try{var f=cvox.Speec hRule.Action.fromString(c),g=Array.prototype.slice.call(arguments,4),h=new cvox. SpeechRule.Precondition(d,g),g={};g[cvox.SpeechRule.DynamicCstrAttrib.STYLE]=b;v ar k=new cvox.SpeechRule(a,g,h,f)}catch(l){if("RuleError"==l.name)return console .log("Rule Error ",d,"("+b+"):",l.message),null;throw l;}this.addRule(k);return k};cvox.BaseRuleStore.prototype.addRule=function(a){this.speechRules_.unshift(a) };
960 cvox.BaseRuleStore.prototype.deleteRule=function(a){a=this.speechRules_.indexOf( a);-1!=a&&this.speechRules_.splice(a,1)};cvox.BaseRuleStore.prototype.findRule=f unction(a){for(var b=0,c;c=this.speechRules_[b];b++)if(a(c))return c;return null };cvox.BaseRuleStore.prototype.findAllRules=function(a){return this.speechRules_ .filter(a)};cvox.BaseRuleStore.prototype.evaluateDefault=function(a){return[new cvox.NavDescription({text:a.textContent})]}; 961 cvox.BaseRuleStore.prototype.deleteRule=function(a){a=this.speechRules_.indexOf( a);-1!=a&&this.speechRules_.splice(a,1)};cvox.BaseRuleStore.prototype.findRule=f unction(a){for(var b=0,c;c=this.speechRules_[b];b++)if(a(c))return c;return null };cvox.BaseRuleStore.prototype.findAllRules=function(a){return this.speechRules_ .filter(a)};cvox.BaseRuleStore.prototype.evaluateDefault=function(a){return[new cvox.NavDescription({text:a.textContent})]};
961 cvox.BaseRuleStore.prototype.removeDuplicates=function(a){for(var b=this.speechR ules_.length-1,c;c=this.speechRules_[b];b--)c!=a&&cvox.BaseRuleStore.compareDyna micConstraints_(c.dynamicCstr,a.dynamicCstr)&&cvox.BaseRuleStore.comparePrecondi tions_(c,a)&&this.speechRules_.splice(b,1)};cvox.BaseRuleStore.prototype.applyCu stomQuery=function(a,b){var c=this.customQueries.lookup(b);return c?c(a):null}; 962 cvox.BaseRuleStore.prototype.removeDuplicates=function(a){for(var b=this.speechR ules_.length-1,c;c=this.speechRules_[b];b--)c!=a&&cvox.BaseRuleStore.compareDyna micConstraints_(c.dynamicCstr,a.dynamicCstr)&&cvox.BaseRuleStore.comparePrecondi tions_(c,a)&&this.speechRules_.splice(b,1)};cvox.BaseRuleStore.prototype.applyCu stomQuery=function(a,b){var c=this.customQueries.lookup(b);return c?c(a):null};
962 cvox.BaseRuleStore.prototype.applySelector=function(a,b){var c=this.applyCustomQ uery(a,b);return c||cvox.XpathUtil.evalXPath(b,a)};cvox.BaseRuleStore.prototype. applyQuery=function(a,b){var c=this.applySelector(a,b);return 0<c.length?c[0]:nu ll};cvox.BaseRuleStore.prototype.applyConstraint=function(a,b){var c=this.applyQ uery(a,b);return!!c||cvox.XpathUtil.evaluateBoolean(b,a)}; 963 cvox.BaseRuleStore.prototype.applySelector=function(a,b){var c=this.applyCustomQ uery(a,b);return c||cvox.XpathUtil.evalXPath(b,a)};cvox.BaseRuleStore.prototype. applyQuery=function(a,b){var c=this.applySelector(a,b);return 0<c.length?c[0]:nu ll};cvox.BaseRuleStore.prototype.applyConstraint=function(a,b){var c=this.applyQ uery(a,b);return!!c||cvox.XpathUtil.evaluateBoolean(b,a)};
963 cvox.BaseRuleStore.prototype.testDynamicConstraints=function(a,b){var c=Object.k eys(a);return c.every(function(c){return a[c]==b.dynamicCstr[c]||"default"==b.dy namicCstr[c]})};cvox.BaseRuleStore.prototype.countMatchingDynamicConstraintValue s_=function(a,b){for(var c=0,d=0,e;e=this.dynamicCstrAttribs[d];d++)if(a[e]==b.d ynamicCstr[e])c++;else break;return c}; 964 cvox.BaseRuleStore.prototype.testDynamicConstraints=function(a,b){var c=Object.k eys(a);return c.every(function(c){return a[c]==b.dynamicCstr[c]||"default"==b.dy namicCstr[c]})};cvox.BaseRuleStore.prototype.countMatchingDynamicConstraintValue s_=function(a,b){for(var c=0,d=0,e;e=this.dynamicCstrAttribs[d];d++)if(a[e]==b.d ynamicCstr[e])c++;else break;return c};
964 cvox.BaseRuleStore.prototype.pickMostConstraint_=function(a,b){b.sort(goog.bind( function(b,d){var e=this.countMatchingDynamicConstraintValues_(a,b),f=this.count MatchingDynamicConstraintValues_(a,d);return e>f?-1:f>e?1:d.precondition.constra ints.length-b.precondition.constraints.length},this));return b[0]}; 965 cvox.BaseRuleStore.prototype.pickMostConstraint_=function(a,b){b.sort(goog.bind( function(b,d){var e=this.countMatchingDynamicConstraintValues_(a,b),f=this.count MatchingDynamicConstraintValues_(a,d);return e>f?-1:f>e?1:d.precondition.constra ints.length-b.precondition.constraints.length},this));return b[0]};
965 cvox.BaseRuleStore.prototype.testPrecondition_=function(a,b){var c=b.preconditio n;return this.applyQuery(a,c.query)===a&&c.constraints.every(goog.bind(function( b){return this.applyConstraint(a,b)},this))};cvox.BaseRuleStore.compareDynamicCo nstraints_=function(a,b){if(Object.keys(a).length!=Object.keys(b).length)return! 1;for(var c in a)if(!b[c]||a[c]!==b[c])return!1;return!0}; 966 cvox.BaseRuleStore.prototype.testPrecondition_=function(a,b){var c=b.preconditio n;return this.applyQuery(a,c.query)===a&&c.constraints.every(goog.bind(function( b){return this.applyConstraint(a,b)},this))};cvox.BaseRuleStore.compareDynamicCo nstraints_=function(a,b){if(Object.keys(a).length!=Object.keys(b).length)return! 1;for(var c in a)if(!b[c]||a[c]!==b[c])return!1;return!0};
966 cvox.BaseRuleStore.compareStaticConstraints_=function(a,b){if(a.length!=b.length )return!1;for(var c=0,d;d=a[c];c++)if(-1==b.indexOf(d))return!1;return!0};cvox.B aseRuleStore.comparePreconditions_=function(a,b){var c=a.precondition,d=b.precon dition;return c.query!=d.query?!1:cvox.BaseRuleStore.compareStaticConstraints_(c .constraints,d.constraints)};cvox.MathStore=function(){cvox.BaseRuleStore.call(t his);this.dynamicCstrAttribs=[cvox.SpeechRule.DynamicCstrAttrib.DOMAIN,cvox.Spee chRule.DynamicCstrAttrib.STYLE];this.defaultTtsProps=[cvox.AbstractTts.PITCH,cvo x.AbstractTts.RATE]};goog.inherits(cvox.MathStore,cvox.BaseRuleStore);cvox.Speec hRule.DynamicCstrAttrib.DOMAIN="domain"; 967 cvox.BaseRuleStore.compareStaticConstraints_=function(a,b){if(a.length!=b.length )return!1;for(var c=0,d;d=a[c];c++)if(-1==b.indexOf(d))return!1;return!0};cvox.B aseRuleStore.comparePreconditions_=function(a,b){var c=a.precondition,d=b.precon dition;return c.query!=d.query?!1:cvox.BaseRuleStore.compareStaticConstraints_(c .constraints,d.constraints)};cvox.MathStore=function(){cvox.BaseRuleStore.call(t his);this.dynamicCstrAttribs=[cvox.SpeechRule.DynamicCstrAttrib.DOMAIN,cvox.Spee chRule.DynamicCstrAttrib.STYLE];this.defaultTtsProps=[cvox.AbstractTts.PITCH,cvo x.AbstractTts.RATE]};goog.inherits(cvox.MathStore,cvox.BaseRuleStore);cvox.Speec hRule.DynamicCstrAttrib.DOMAIN="domain";
967 cvox.MathStore.prototype.defineRule=function(a,b,c,d,e){var f=this.parseDynamicC onstraint(b),g=Array.prototype.slice.call(arguments,4),g=cvox.MathStore.superCla ss_.defineRule.apply(this,[a,f[cvox.SpeechRule.DynamicCstrAttrib.STYLE],c,d].con cat(g));g.dynamicCstr=f;this.removeDuplicates(g);return g}; 968 cvox.MathStore.prototype.defineRule=function(a,b,c,d,e){var f=this.parseDynamicC onstraint(b),g=Array.prototype.slice.call(arguments,4),g=cvox.MathStore.superCla ss_.defineRule.apply(this,[a,f[cvox.SpeechRule.DynamicCstrAttrib.STYLE],c,d].con cat(g));g.dynamicCstr=f;this.removeDuplicates(g);return g};
968 cvox.MathStore.prototype.parseDynamicConstraint=function(a){var b=a.split(".");i f(!b[0]||!b[1])throw new cvox.SpeechRule.OutputError("Invalid domain assignment: "+a);return cvox.MathStore.createDynamicConstraint(b[0],b[1])};cvox.MathStore.cr eateDynamicConstraint=function(a,b){var c={};c[cvox.SpeechRule.DynamicCstrAttrib .DOMAIN]=a;c[cvox.SpeechRule.DynamicCstrAttrib.STYLE]=b;return c}; 969 cvox.MathStore.prototype.parseDynamicConstraint=function(a){var b=a.split(".");i f(!b[0]||!b[1])throw new cvox.SpeechRule.OutputError("Invalid domain assignment: "+a);return cvox.MathStore.createDynamicConstraint(b[0],b[1])};cvox.MathStore.cr eateDynamicConstraint=function(a,b){var c={};c[cvox.SpeechRule.DynamicCstrAttrib .DOMAIN]=a;c[cvox.SpeechRule.DynamicCstrAttrib.STYLE]=b;return c};
969 cvox.MathStore.prototype.defineRuleAlias=function(a,b,c){var d=this.findRule(fun ction(b){return b.name==a});if(!d)throw new cvox.SpeechRule.OutputError("Rule wi th named "+a+" does not exist.");this.addAlias_(d,b,Array.prototype.slice.call(a rguments,2))};cvox.MathStore.prototype.addAlias_=function(a,b,c){b=new cvox.Spee chRule.Precondition(b,c);b=new cvox.SpeechRule(a.name,a.dynamicCstr,b,a.action); b.name=a.name;this.addRule(b)};cvox.MathStore.prototype.evaluateDefault=function (a){return this.evaluateString_(a.textContent)}; 970 cvox.MathStore.prototype.defineRuleAlias=function(a,b,c){var d=this.findRule(fun ction(b){return b.name==a});if(!d)throw new cvox.SpeechRule.OutputError("Rule wi th named "+a+" does not exist.");this.addAlias_(d,b,Array.prototype.slice.call(a rguments,2))};cvox.MathStore.prototype.addAlias_=function(a,b,c){b=new cvox.Spee chRule.Precondition(b,c);b=new cvox.SpeechRule(a.name,a.dynamicCstr,b,a.action); b.name=a.name;this.addRule(b)};cvox.MathStore.prototype.evaluateDefault=function (a){return this.evaluateString_(a.textContent)};
970 cvox.MathStore.prototype.evaluateString_=function(a){var b=[];if(a.match(/^\s+$/ ))return b;a=cvox.MathStore.removeEmpty_(a.replace(/\s/g," ").split(" "));for(va r c=0,d;d=a[c];c++)if(1==d.length)b.push(this.evaluate_(d));else if(d.match(/^[a -zA-Z]+$/))b.push(this.evaluate_(d));else for(;d;){var e=d.match(/^\d+/),f=d.mat ch(/^[a-zA-Z]+/);e?(b.push(this.evaluate_(e[0])),d=d.substring(e[0].length)):f?( b.push(this.evaluate_(f[0])),d=d.substring(f[0].length)):(e=d[0],e=e.charCodeAt( 0),55296<=e&&56319>=e&& 971 cvox.MathStore.prototype.evaluateString_=function(a){var b=[];if(a.match(/^\s+$/ ))return b;a=cvox.MathStore.removeEmpty_(a.replace(/\s/g," ").split(" "));for(va r c=0,d;d=a[c];c++)if(1==d.length)b.push(this.evaluate_(d));else if(d.match(/^[a -zA-Z]+$/))b.push(this.evaluate_(d));else for(;d;){var e=d.match(/^\d+/),f=d.mat ch(/^[a-zA-Z]+/);e?(b.push(this.evaluate_(e[0])),d=d.substring(e[0].length)):f?( b.push(this.evaluate_(f[0])),d=d.substring(f[0].length)):(e=d[0],e=e.charCodeAt( 0),55296<=e&&56319>=e&&
971 1<d.length&&!isNaN(d.charCodeAt(1))?(b.push(this.evaluate_(d.slice(0,2))),d=d.su bstring(2)):(b.push(this.evaluate_(d[0])),d=d.substring(1)))}return b};cvox.Math Store.prototype.evaluate_=function(a){return cvox.ChromeVox.host.mathMap?cvox.Ch romeVox.host.mathMap.evaluate(a,cvox.TraverseMath.getInstance().domain,cvox.Trav erseMath.getInstance().style):new cvox.NavMathDescription({text:a,domain:cvox.Tr averseMath.getInstance().domain,style:cvox.TraverseMath.getInstance().style})}; 972 1<d.length&&!isNaN(d.charCodeAt(1))?(b.push(this.evaluate_(d.slice(0,2))),d=d.su bstring(2)):(b.push(this.evaluate_(d[0])),d=d.substring(1)))}return b};cvox.Math Store.prototype.evaluate_=function(a){return cvox.ChromeVox.host.mathMap?cvox.Ch romeVox.host.mathMap.evaluate(a,cvox.TraverseMath.getInstance().domain,cvox.Trav erseMath.getInstance().style):new cvox.NavMathDescription({text:a,domain:cvox.Tr averseMath.getInstance().domain,style:cvox.TraverseMath.getInstance().style})};
972 cvox.MathStore.removeEmpty_=function(a){return a.filter(function(a){return a})}; cvox.MathmlStore=function(){cvox.MathStore.call(this)};goog.inherits(cvox.Mathml Store,cvox.MathStore);goog.addSingletonGetter(cvox.MathmlStore);cvox.MathmlStore .prototype.defineDefaultMathmlRule=function(a,b){this.defineRule(a,"default.defa ult",b,"self::mathml:"+a)};cvox.SpeechRuleEngine=function(){this.activeStore_=nu ll;this.dynamicCstr={};this.dynamicCstr[cvox.SpeechRule.DynamicCstrAttrib.STYLE] ="short"};goog.addSingletonGetter(cvox.SpeechRuleEngine);cvox.SpeechRuleEngine.p rototype.parameterize=function(a){try{a.initialize()}catch(b){if("StoreError"==b .name)console.log("Store Error:",b.message);else throw b;}this.activeStore_=a};c vox.SpeechRuleEngine.prototype.setDynamicConstraint=function(a){a&&(this.dynamic Cstr=a)}; 973 cvox.MathStore.removeEmpty_=function(a){return a.filter(function(a){return a})}; cvox.MathmlStore=function(){cvox.MathStore.call(this)};goog.inherits(cvox.Mathml Store,cvox.MathStore);goog.addSingletonGetter(cvox.MathmlStore);cvox.MathmlStore .prototype.defineDefaultMathmlRule=function(a,b){this.defineRule(a,"default.defa ult",b,"self::mathml:"+a)};cvox.SpeechRuleEngine=function(){this.activeStore_=nu ll;this.dynamicCstr={};this.dynamicCstr[cvox.SpeechRule.DynamicCstrAttrib.STYLE] ="short"};goog.addSingletonGetter(cvox.SpeechRuleEngine);cvox.SpeechRuleEngine.p rototype.parameterize=function(a){try{a.initialize()}catch(b){if("StoreError"==b .name)console.log("Store Error:",b.message);else throw b;}this.activeStore_=a};c vox.SpeechRuleEngine.prototype.setDynamicConstraint=function(a){a&&(this.dynamic Cstr=a)};
973 cvox.SpeechRuleEngine.prototype.constructString=function(a,b){if(!b)return"";if( '"'==b.charAt(0))return b.slice(1,-1);var c=this.activeStore_.customStrings.look up(b);return c?c(a):cvox.XpathUtil.evaluateString(b,a)};cvox.SpeechRuleEngine.pr ototype.evaluateNode=function(a){return a?this.evaluateTree_(a):[]}; 974 cvox.SpeechRuleEngine.prototype.constructString=function(a,b){if(!b)return"";if( '"'==b.charAt(0))return b.slice(1,-1);var c=this.activeStore_.customStrings.look up(b);return c?c(a):cvox.XpathUtil.evaluateString(b,a)};cvox.SpeechRuleEngine.pr ototype.evaluateNode=function(a){return a?this.evaluateTree_(a):[]};
974 cvox.SpeechRuleEngine.prototype.evaluateTree_=function(a){var b=this.activeStore _.lookupRule(a,this.dynamicCstr);if(!b)return this.activeStore_.evaluateDefault( a);for(var b=b.action.components,c=[],d=0,e;e=b[d];d++){var f=[],g=e.content||"" ;switch(e.type){case cvox.SpeechRule.Type.NODE:(g=this.activeStore_.applyQuery(a ,g))&&(f=this.evaluateTree_(g));break;case cvox.SpeechRule.Type.MULTI:g=this.act iveStore_.applySelector(a,g);0<g.length&&(f=this.evaluateNodeList_(g,e.sepFunc,t his.constructString(a, 975 cvox.SpeechRuleEngine.prototype.evaluateTree_=function(a){var b=this.activeStore _.lookupRule(a,this.dynamicCstr);if(!b)return this.activeStore_.evaluateDefault( a);for(var b=b.action.components,c=[],d=0,e;e=b[d];d++){var f=[],g=e.content||"" ;switch(e.type){case cvox.SpeechRule.Type.NODE:(g=this.activeStore_.applyQuery(a ,g))&&(f=this.evaluateTree_(g));break;case cvox.SpeechRule.Type.MULTI:g=this.act iveStore_.applySelector(a,g);0<g.length&&(f=this.evaluateNodeList_(g,e.sepFunc,t his.constructString(a,
975 e.separator),e.ctxtFunc,this.constructString(a,e.context)));break;case cvox.Spee chRule.Type.TEXT:(g=this.constructString(a,g))&&(f=[new cvox.NavDescription({tex t:g})]);break;default:f=[new cvox.NavDescription({text:g})]}f[0]&&e.context&&e.t ype!=cvox.SpeechRule.Type.MULTI&&(f[0].context=this.constructString(a,e.context) +(f[0].context||""));c=c.concat(this.addPersonality_(f,e))}return c}; 976 e.separator),e.ctxtFunc,this.constructString(a,e.context)));break;case cvox.Spee chRule.Type.TEXT:(g=this.constructString(a,g))&&(f=[new cvox.NavDescription({tex t:g})]);break;default:f=[new cvox.NavDescription({text:g})]}f[0]&&e.context&&e.t ype!=cvox.SpeechRule.Type.MULTI&&(f[0].context=this.constructString(a,e.context) +(f[0].context||""));c=c.concat(this.addPersonality_(f,e))}return c};
976 cvox.SpeechRuleEngine.prototype.evaluateNodeList_=function(a,b,c,d,e){if(a==[])r eturn[];var f=c||"",g=e||"";c=(c=this.activeStore_.contextFunctions.lookup(d))?c (a,g):function(){return g};b=(b=this.activeStore_.contextFunctions.lookup(b))?b( a,f):function(){return f};d=[];e=0;for(var h;h=a[e];e++)h=this.evaluateTree_(h), 0<h.length&&(h[0].context=c()+(h[0].context||""),d=d.concat(h),e<a.length-1&&(h= b())&&d.push(new cvox.NavDescription({text:h})));return d}; 977 cvox.SpeechRuleEngine.prototype.evaluateNodeList_=function(a,b,c,d,e){if(a==[])r eturn[];var f=c||"",g=e||"";c=(c=this.activeStore_.contextFunctions.lookup(d))?c (a,g):function(){return g};b=(b=this.activeStore_.contextFunctions.lookup(b))?b( a,f):function(){return f};d=[];e=0;for(var h;h=a[e];e++)h=this.evaluateTree_(h), 0<h.length&&(h[0].context=c()+(h[0].context||""),d=d.concat(h),e<a.length-1&&(h= b())&&d.push(new cvox.NavDescription({text:h})));return d};
977 cvox.SpeechRuleEngine.propMap={pitch:cvox.AbstractTts.RELATIVE_PITCH,rate:cvox.A bstractTts.RELATIVE_RATE,volume:cvox.AbstractTts.RELATIVE_VOLUME,pause:cvox.Abst ractTts.PAUSE};cvox.SpeechRuleEngine.prototype.addPersonality_=function(a,b){var c={},d;for(d in cvox.SpeechRuleEngine.propMap){var e=parseFloat(b[d]);isNaN(e)| |(c[cvox.SpeechRuleEngine.propMap[d]]=e)}a.forEach(goog.bind(function(a){this.ad dRelativePersonality_(a,c);this.resetPersonality_(a)},this));return a}; 978 cvox.SpeechRuleEngine.propMap={pitch:cvox.AbstractTts.RELATIVE_PITCH,rate:cvox.A bstractTts.RELATIVE_RATE,volume:cvox.AbstractTts.RELATIVE_VOLUME,pause:cvox.Abst ractTts.PAUSE};cvox.SpeechRuleEngine.prototype.addPersonality_=function(a,b){var c={},d;for(d in cvox.SpeechRuleEngine.propMap){var e=parseFloat(b[d]);isNaN(e)| |(c[cvox.SpeechRuleEngine.propMap[d]]=e)}a.forEach(goog.bind(function(a){this.ad dRelativePersonality_(a,c);this.resetPersonality_(a)},this));return a};
978 cvox.SpeechRuleEngine.prototype.addRelativePersonality_=function(a,b){if(!a.pers onality)return a.personality=b,a;var c=a.personality,d;for(d in b)c[d]=c[d]&&"nu mber"==typeof c[d]?c[d]+b[d]:b[d];return a};cvox.SpeechRuleEngine.prototype.rese tPersonality_=function(a){if(this.activeStore_.defaultTtsProps)for(var b=0,c;c=t his.activeStore_.defaultTtsProps[b];b++)a.personality[c]=cvox.ChromeVox.tts.getD efaultProperty(c)};cvox.SpeechRuleEngine.debugMode=!1; 979 cvox.SpeechRuleEngine.prototype.addRelativePersonality_=function(a,b){if(!a.pers onality)return a.personality=b,a;var c=a.personality,d;for(d in b)c[d]=c[d]&&"nu mber"==typeof c[d]?c[d]+b[d]:b[d];return a};cvox.SpeechRuleEngine.prototype.rese tPersonality_=function(a){if(this.activeStore_.defaultTtsProps)for(var b=0,c;c=t his.activeStore_.defaultTtsProps[b];b++)a.personality[c]=cvox.ChromeVox.tts.getD efaultProperty(c)};cvox.SpeechRuleEngine.debugMode=!1;
979 cvox.SpeechRuleEngine.outputDebug=function(a){if(cvox.SpeechRuleEngine.debugMode ){var b=Array.prototype.slice.call(arguments,0);console.log.apply(console,["Spee ch Rule Engine Debugger:"].concat(b))}};cvox.SpeechRuleEngine.prototype.toString =function(){var a=this.activeStore_.findAllRules(function(){return!0});return a. map(function(a){return a.toString()}).join("\n")}; 980 cvox.SpeechRuleEngine.outputDebug=function(a){if(cvox.SpeechRuleEngine.debugMode ){var b=Array.prototype.slice.call(arguments,0);console.log.apply(console,["Spee ch Rule Engine Debugger:"].concat(b))}};cvox.SpeechRuleEngine.prototype.toString =function(){var a=this.activeStore_.findAllRules(function(){return!0});return a. map(function(a){return a.toString()}).join("\n")};
980 cvox.SpeechRuleEngine.debugSpeechRule=function(a,b){var c=cvox.SpeechRuleEngine. getInstance().activeStore_;if(c){var d=a.precondition;cvox.SpeechRuleEngine.outp utDebug(d.query,c.applyQuery(b,d.query));d.constraints.forEach(function(a){cvox. SpeechRuleEngine.outputDebug(a,c.applyConstraint(b,a))})}}; 981 cvox.SpeechRuleEngine.debugSpeechRule=function(a,b){var c=cvox.SpeechRuleEngine. getInstance().activeStore_;if(c){var d=a.precondition;cvox.SpeechRuleEngine.outp utDebug(d.query,c.applyQuery(b,d.query));d.constraints.forEach(function(a){cvox. SpeechRuleEngine.outputDebug(a,c.applyConstraint(b,a))})}};
981 cvox.SpeechRuleEngine.debugNamedSpeechRule=function(a,b){for(var c=cvox.SpeechRu leEngine.getInstance().activeStore_,c=c.findAllRules(function(b){return b.name== a}),d=0,e;e=c[d];d++)cvox.SpeechRuleEngine.outputDebug("Rule",a,"number",d),cvox .SpeechRuleEngine.debugSpeechRule(e,b)};cvox.PlatformUtil={};cvox.PlatformFilter ={NONE:0,WINDOWS:1,MAC:2,LINUX:4,WML:7,CHROMEOS:8,ANDROID:16};cvox.PlatformUtil. matchesPlatform=function(a){var b=navigator.userAgent;return void 0==a?!0:-1!=b. indexOf("Android")?0!=(a&cvox.PlatformFilter.ANDROID):-1!=b.indexOf("Win")?0!=(a &cvox.PlatformFilter.WINDOWS):-1!=b.indexOf("Mac")?0!=(a&cvox.PlatformFilter.MAC ):-1!=b.indexOf("Linux")?0!=(a&cvox.PlatformFilter.LINUX):-1!=b.indexOf("CrOS")? 0!=(a&cvox.PlatformFilter.CHROMEOS):!1};cvox.Spannable=function(a,b){this.string _=a||"";this.spans_=[];if(goog.isDef(b)){var c=this.string_.length;this.spans_.p ush({value:b,start:0,end:c})}};cvox.Spannable.prototype.toString=function(){retu rn this.string_};cvox.Spannable.prototype.getLength=function(){return this.strin g_.length}; 982 cvox.SpeechRuleEngine.debugNamedSpeechRule=function(a,b){for(var c=cvox.SpeechRu leEngine.getInstance().activeStore_,c=c.findAllRules(function(b){return b.name== a}),d=0,e;e=c[d];d++)cvox.SpeechRuleEngine.outputDebug("Rule",a,"number",d),cvox .SpeechRuleEngine.debugSpeechRule(e,b)};cvox.Spannable=function(a,b){this.string _=a||"";this.spans_=[];if(goog.isDef(b)){var c=this.string_.length;this.spans_.p ush({value:b,start:0,end:c})}};cvox.Spannable.prototype.toString=function(){retu rn this.string_};cvox.Spannable.prototype.getLength=function(){return this.strin g_.length};
982 cvox.Spannable.prototype.setSpan=function(a,b,c){this.removeSpan(a);if(0<=b&&b<= c&&c<=this.string_.length)this.spans_.push({value:a,start:b,end:c});else throw n ew RangeError("span out of range (start="+b+", end="+c+", len="+this.string_.len gth+")");};cvox.Spannable.prototype.removeSpan=function(a){for(var b=this.spans_ .length-1;0<=b;b--)this.spans_[b].value===a&&this.spans_.splice(b,1)}; 983 cvox.Spannable.prototype.setSpan=function(a,b,c){this.removeSpan(a);if(0<=b&&b<= c&&c<=this.string_.length)this.spans_.push({value:a,start:b,end:c});else throw n ew RangeError("span out of range (start="+b+", end="+c+", len="+this.string_.len gth+")");};cvox.Spannable.prototype.removeSpan=function(a){for(var b=this.spans_ .length-1;0<=b;b--)this.spans_[b].value===a&&this.spans_.splice(b,1)};
983 cvox.Spannable.prototype.append=function(a){if(a instanceof cvox.Spannable){var b=a,c=this.getLength();this.string_+=b.string_;a.spans_.forEach(goog.bind(functi on(a){this.setSpan(a.value,a.start+c,a.end+c)},this))}else"string"===typeof a&&( this.string_+=a)};cvox.Spannable.prototype.getSpanInstanceOf=function(a){for(var b=0;b<this.spans_.length;b++){var c=this.spans_[b];if(c.value instanceof a)retu rn c.value}}; 984 cvox.Spannable.prototype.append=function(a){if(a instanceof cvox.Spannable){var b=a,c=this.getLength();this.string_+=b.string_;a.spans_.forEach(goog.bind(functi on(a){this.setSpan(a.value,a.start+c,a.end+c)},this))}else"string"===typeof a&&( this.string_+=a)};cvox.Spannable.prototype.getSpanInstanceOf=function(a){for(var b=0;b<this.spans_.length;b++){var c=this.spans_[b];if(c.value instanceof a)retu rn c.value}};
984 cvox.Spannable.prototype.getSpans=function(a){for(var b=[],c=0;c<this.spans_.len gth;c++){var d=this.spans_[c];d.start<=a&&a<d.end&&b.push(d.value)}return b};cvo x.Spannable.prototype.getSpanStart=function(a){for(var b=0;b<this.spans_.length; b++){var c=this.spans_[b];if(c.value===a)return c.start}};cvox.Spannable.prototy pe.getSpanEnd=function(a){for(var b=0;b<this.spans_.length;b++){var c=this.spans _[b];if(c.value===a)return c.end}}; 985 cvox.Spannable.prototype.getSpans=function(a){for(var b=[],c=0;c<this.spans_.len gth;c++){var d=this.spans_[c];d.start<=a&&a<d.end&&b.push(d.value)}return b};cvo x.Spannable.prototype.getSpanStart=function(a){for(var b=0;b<this.spans_.length; b++){var c=this.spans_[b];if(c.value===a)return c.start}};cvox.Spannable.prototy pe.getSpanEnd=function(a){for(var b=0;b<this.spans_.length;b++){var c=this.spans _[b];if(c.value===a)return c.end}};
985 cvox.Spannable.prototype.substring=function(a,b){var c=goog.isDef(b)?b:this.stri ng_.length;if(0>a||c>this.string_.length||a>c)throw new RangeError("substring in dices out of range");for(var d=new cvox.Spannable(this.string_.substring(a,c)),e =0;e<this.spans_.length;e++){var f=this.spans_[e];if(f.start<=c&&f.end>=a){var g =Math.max(0,f.start-a),h=Math.min(c-a,f.end-a);d.spans_.push({value:f.value,star t:g,end:h})}}return d};cvox.Spannable.prototype.trimLeft=function(){return this. trim_(!0,!1)}; 986 cvox.Spannable.prototype.substring=function(a,b){var c=goog.isDef(b)?b:this.stri ng_.length;if(0>a||c>this.string_.length||a>c)throw new RangeError("substring in dices out of range");for(var d=new cvox.Spannable(this.string_.substring(a,c)),e =0;e<this.spans_.length;e++){var f=this.spans_[e];if(f.start<=c&&f.end>=a){var g =Math.max(0,f.start-a),h=Math.min(c-a,f.end-a);d.spans_.push({value:f.value,star t:g,end:h})}}return d};cvox.Spannable.prototype.trimLeft=function(){return this. trim_(!0,!1)};
986 cvox.Spannable.prototype.trimRight=function(){return this.trim_(!1,!0)};cvox.Spa nnable.prototype.trim=function(){return this.trim_(!0,!0)};cvox.Spannable.protot ype.trim_=function(a,b){if(!a&&!b)return this;if(/^\s*$/.test(this.string_))retu rn this.substring(0,0);var c=a?this.string_.match(/^\s*/)[0].length:0,d=b?this.s tring_.match(/\s*$/).index:this.string_.length;return this.substring(c,d)}; 987 cvox.Spannable.prototype.trimRight=function(){return this.trim_(!1,!0)};cvox.Spa nnable.prototype.trim=function(){return this.trim_(!0,!0)};cvox.Spannable.protot ype.trim_=function(a,b){if(!a&&!b)return this;if(/^\s*$/.test(this.string_))retu rn this.substring(0,0);var c=a?this.string_.match(/^\s*/)[0].length:0,d=b?this.s tring_.match(/\s*$/).index:this.string_.length;return this.substring(c,d)};
987 cvox.Spannable.prototype.toJson=function(){var a={};a.string=this.string_;a.span s=[];for(var b=0;b<this.spans_.length;++b){var c=this.spans_[b],d=goog.object.fi ndValue(cvox.Spannable.serializableSpansByName_,function(a){return a.ctor===c.va lue.constructor});if(d){var e={type:d.name,start:c.start,end:c.end};d.toJson&&(e .value=d.toJson.apply(c.value));a.spans.push(e)}}return a}; 988 cvox.Spannable.prototype.toJson=function(){var a={};a.string=this.string_;a.span s=[];for(var b=0;b<this.spans_.length;++b){var c=this.spans_[b],d=goog.object.fi ndValue(cvox.Spannable.serializableSpansByName_,function(a){return a.ctor===c.va lue.constructor});if(d){var e={type:d.name,start:c.start,end:c.end};d.toJson&&(e .value=d.toJson.apply(c.value));a.spans.push(e)}}return a};
988 cvox.Spannable.fromJson=function(a){if("string"!==typeof a.string)throw"Invalid spannable json object: string field not a string";if(!(a.spans instanceof Array) )throw"Invalid spannable json object: no spans array";for(var b=new cvox.Spannab le(a.string),c=0,d;d=a.spans[c];++c){if("string"!==typeof d.type)throw"Invalid s pan in spannable json object: type not a string";if("number"!==typeof d.start||" number"!==typeof d.end)throw"Invalid span in spannable json object: start or end not a number";var e= 989 cvox.Spannable.fromJson=function(a){if("string"!==typeof a.string)throw"Invalid spannable json object: string field not a string";if(!(a.spans instanceof Array) )throw"Invalid spannable json object: no spans array";for(var b=new cvox.Spannab le(a.string),c=0,d;d=a.spans[c];++c){if("string"!==typeof d.type)throw"Invalid s pan in spannable json object: type not a string";if("number"!==typeof d.start||" number"!==typeof d.end)throw"Invalid span in spannable json object: start or end not a number";var e=
989 cvox.Spannable.serializableSpansByName_[d.type],e=e.fromJson(d.value);b.setSpan( e,d.start,d.end)}return b};cvox.Spannable.registerSerializableSpan=function(a,b, c,d){a={name:b,ctor:a,fromJson:c,toJson:d};cvox.Spannable.serializableSpansByNam e_[b]=a};cvox.Spannable.registerStatelessSerializableSpan=function(a,b){var c={n ame:b,ctor:a,toJson:void 0,fromJson:function(){return new a}};cvox.Spannable.ser ializableSpansByName_[b]=c};cvox.Spannable.serializableSpansByName_={};cvox.NavB raille=function(a){this.text=a.text instanceof cvox.Spannable?a.text:new cvox.Sp annable(a.text);this.startIndex=goog.isDef(a.startIndex)?a.startIndex:-1;this.en dIndex=goog.isDef(a.endIndex)?a.endIndex:this.startIndex};cvox.NavBraille.fromTe xt=function(a){return new cvox.NavBraille({text:a})}; 990 cvox.Spannable.serializableSpansByName_[d.type],e=e.fromJson(d.value);b.setSpan( e,d.start,d.end)}return b};cvox.Spannable.registerSerializableSpan=function(a,b, c,d){a={name:b,ctor:a,fromJson:c,toJson:d};cvox.Spannable.serializableSpansByNam e_[b]=a};cvox.Spannable.registerStatelessSerializableSpan=function(a,b){var c={n ame:b,ctor:a,toJson:void 0,fromJson:function(){return new a}};cvox.Spannable.ser ializableSpansByName_[b]=c};cvox.Spannable.serializableSpansByName_={};cvox.NavB raille=function(a){this.text=a.text instanceof cvox.Spannable?a.text:new cvox.Sp annable(a.text);this.startIndex=goog.isDef(a.startIndex)?a.startIndex:-1;this.en dIndex=goog.isDef(a.endIndex)?a.endIndex:this.startIndex};cvox.NavBraille.fromTe xt=function(a){return new cvox.NavBraille({text:a})};
990 cvox.NavBraille.fromJson=function(a){if("number"!==typeof a.startIndex||"number" !==typeof a.endIndex)throw"Invalid start or end index in serialized NavBraille: "+a;return new cvox.NavBraille({text:cvox.Spannable.fromJson(a.spannable),startI ndex:a.startIndex,endIndex:a.endIndex})};cvox.NavBraille.prototype.isEmpty=funct ion(){return 0==this.text.getLength()}; 991 cvox.NavBraille.fromJson=function(a){if("number"!==typeof a.startIndex||"number" !==typeof a.endIndex)throw"Invalid start or end index in serialized NavBraille: "+a;return new cvox.NavBraille({text:cvox.Spannable.fromJson(a.spannable),startI ndex:a.startIndex,endIndex:a.endIndex})};cvox.NavBraille.prototype.isEmpty=funct ion(){return 0==this.text.getLength()};
991 cvox.NavBraille.prototype.toString=function(){return'NavBraille(text="'+this.tex t.toString()+'" startIndex="'+this.startIndex+'" endIndex="'+this.endIndex+'") '};cvox.NavBraille.prototype.toJson=function(){return{spannable:this.text.toJson (),startIndex:this.startIndex,endIndex:this.endIndex}};cvox.NavBraille.prototype .write=function(){cvox.PlatformUtil.matchesPlatform(cvox.PlatformFilter.CHROMEOS |cvox.PlatformFilter.ANDROID)&&cvox.ChromeVox.braille.write(this)};cvox.Abstract Walker=function(){};cvox.AbstractWalker.prototype.begin=function(a){a=a||{revers ed:!1};return this.sync(cvox.CursorSelection.fromBody().setReversed(a.reversed)) };cvox.AbstractWalker.prototype.hasAction=function(a){return"function"==typeof t his[a]};cvox.AbstractWalker.prototype.performAction=function(a,b){return this.ha sAction(a)?this[a](b):null};cvox.AbstractNodeWalker=function(){this.wasBegin_=!1 };goog.inherits(cvox.AbstractNodeWalker,cvox.AbstractWalker);cvox.AbstractNodeWa lker.prototype.next=function(a){var b=a.isReversed();a=a.end.node||document.body ;do if(a=cvox.DomUtil.directedNextLeafLikeNode(a,b,goog.bind(this.stopNodeDescen t,this)),!a)return null;while(a&&!cvox.DomUtil.hasContent(a));return cvox.Cursor Selection.fromNode(a).setReversed(b)}; 992 cvox.NavBraille.prototype.toString=function(){return'NavBraille(text="'+this.tex t.toString()+'" startIndex="'+this.startIndex+'" endIndex="'+this.endIndex+'") '};cvox.NavBraille.prototype.toJson=function(){return{spannable:this.text.toJson (),startIndex:this.startIndex,endIndex:this.endIndex}};cvox.NavBraille.prototype .write=function(){cvox.ChromeVox.braille.write(this)};cvox.AbstractWalker=functi on(){};cvox.AbstractWalker.prototype.begin=function(a){a=a||{reversed:!1};return this.sync(cvox.CursorSelection.fromBody().setReversed(a.reversed))};cvox.Abstra ctWalker.prototype.hasAction=function(a){return"function"==typeof this[a]};cvox. AbstractWalker.prototype.performAction=function(a,b){return this.hasAction(a)?th is[a](b):null};cvox.AbstractNodeWalker=function(){this.wasBegin_=!1};goog.inheri ts(cvox.AbstractNodeWalker,cvox.AbstractWalker);cvox.AbstractNodeWalker.prototyp e.next=function(a){var b=a.isReversed();a=a.end.node||document.body;do if(a=cvox .DomUtil.directedNextLeafLikeNode(a,b,goog.bind(this.stopNodeDescent,this)),!a)r eturn null;while(a&&!cvox.DomUtil.hasContent(a));return cvox.CursorSelection.fro mNode(a).setReversed(b)};
992 cvox.AbstractNodeWalker.prototype.sync=function(a){a=this.privateSync_(a);this.w asBegin_=!1;return a}; 993 cvox.AbstractNodeWalker.prototype.sync=function(a){a=this.privateSync_(a);this.w asBegin_=!1;return a};
993 cvox.AbstractNodeWalker.prototype.privateSync_=function(a){var b=a.isReversed(); if(a.equals(cvox.CursorSelection.fromBody())){if(this.wasBegin_)return cvox.Curs orSelection.fromBody().setReversed(b);this.wasBegin_=!0}for(a=a.start.node;a!=do cument.body&&a.parentNode&&this.stopNodeDescent(a.parentNode);)a=a.parentNode;fo r(;!this.stopNodeDescent(a);)a=cvox.DomUtil.directedFirstChild(a,b);var c=cvox.C ursorSelection.fromNode(a);cvox.DomUtil.hasContent(a)||(c=this.next(cvox.CursorS election.fromNode(a).setReversed(b))); 994 cvox.AbstractNodeWalker.prototype.privateSync_=function(a){var b=a.isReversed(); if(a.equals(cvox.CursorSelection.fromBody())){if(this.wasBegin_)return cvox.Curs orSelection.fromBody().setReversed(b);this.wasBegin_=!0}for(a=a.start.node;a!=do cument.body&&a.parentNode&&this.stopNodeDescent(a.parentNode);)a=a.parentNode;fo r(;!this.stopNodeDescent(a);)a=cvox.DomUtil.directedFirstChild(a,b);var c=cvox.C ursorSelection.fromNode(a);cvox.DomUtil.hasContent(a)||(c=this.next(cvox.CursorS election.fromNode(a).setReversed(b)));
994 return c?c.setReversed(b):this.begin({reversed:b})};cvox.BareObjectWalker=functi on(){cvox.AbstractNodeWalker.call(this)};goog.inherits(cvox.BareObjectWalker,cvo x.AbstractNodeWalker);cvox.BareObjectWalker.prototype.stopNodeDescent=function(a ){return cvox.DomUtil.isLeafNode(a)};cvox.AuralStyleConverter={};cvox.AuralStyle Util={}; 995 return c?c.setReversed(b):this.begin({reversed:b})};cvox.BareObjectWalker=functi on(){cvox.AbstractNodeWalker.call(this)};goog.inherits(cvox.BareObjectWalker,cvo x.AbstractNodeWalker);cvox.BareObjectWalker.prototype.stopNodeDescent=function(a ){return cvox.DomUtil.isLeafNode(a)};cvox.AuralStyleConverter={};cvox.AuralStyle Util={};
995 cvox.AuralProperty={VOLUME:"VOLUME",SPEAK:"SPEAK",PAUSE_BEFORE:"PAUSE_BEFORE",PA USE_AFTER:"PAUSE_AFTER",PAUSE:"PAUSE",CUE_BEFORE:"CUE_BEFORE",CUE_AFTER:"CUE_AFT ER",CUE:"CUE",PLAY_DURING:"PLAY_DURING",AZIMUTH:"AZIMUTH",ELEVATION:"ELEVATION", SPEECH_RATE:"SPEECH_RATE",VOICE_FAMILY:"VOICE_FAMILY",PITCH:"PITCH",PITCH_RANGE: "PITCH_RANGE",STRESS:"STRESS",RICHNESS:"RICHNESS",SPEAK_PUNCTUATION:"SPEAK_PUNCT UATION",SPEAK_NUMERIAL:"SPEAK_NUMERIAL",SPEAK_HEADER:"SPEAK_HEADER",NONE:"NONE"} ; 996 cvox.AuralProperty={VOLUME:"VOLUME",SPEAK:"SPEAK",PAUSE_BEFORE:"PAUSE_BEFORE",PA USE_AFTER:"PAUSE_AFTER",PAUSE:"PAUSE",CUE_BEFORE:"CUE_BEFORE",CUE_AFTER:"CUE_AFT ER",CUE:"CUE",PLAY_DURING:"PLAY_DURING",AZIMUTH:"AZIMUTH",ELEVATION:"ELEVATION", SPEECH_RATE:"SPEECH_RATE",VOICE_FAMILY:"VOICE_FAMILY",PITCH:"PITCH",PITCH_RANGE: "PITCH_RANGE",STRESS:"STRESS",RICHNESS:"RICHNESS",SPEAK_PUNCTUATION:"SPEAK_PUNCT UATION",SPEAK_NUMERIAL:"SPEAK_NUMERIAL",SPEAK_HEADER:"SPEAK_HEADER",NONE:"NONE"} ;
996 cvox.AuralStyleConverter.identity=function(a){return a};cvox.AuralStyleConverter .propertyTable={VOLUME:"volume",SPEAK:"no-op",PAUSE_BEFORE:"no-op",PAUSE_AFTER:" no-op",PAUSE:"no-op",CUE_BEFORE:"no-op",CUE_AFTER:"no-op",CUE:"no-op",PLAY_DURIN G:"no-op",AZIMUTH:"no-op",ELEVATION:"no-op",SPEECH_RATE:"relativeRate",VOICE_FAM ILY:"no-op",PITCH:"relativePitch",PITCH_RANGE:"no-op",STRESS:"no-op",RICHNESS:"n o-op",SPEAK_PUNCTUATION:"no-op",SPEAK_NUMERIAL:"no-op",SPEAK_HEADER:"no-op",NONE :"no-op"}; 997 cvox.AuralStyleConverter.identity=function(a){return a};cvox.AuralStyleConverter .propertyTable={VOLUME:"volume",SPEAK:"no-op",PAUSE_BEFORE:"no-op",PAUSE_AFTER:" no-op",PAUSE:"no-op",CUE_BEFORE:"no-op",CUE_AFTER:"no-op",CUE:"no-op",PLAY_DURIN G:"no-op",AZIMUTH:"no-op",ELEVATION:"no-op",SPEECH_RATE:"relativeRate",VOICE_FAM ILY:"no-op",PITCH:"relativePitch",PITCH_RANGE:"no-op",STRESS:"no-op",RICHNESS:"n o-op",SPEAK_PUNCTUATION:"no-op",SPEAK_NUMERIAL:"no-op",SPEAK_HEADER:"no-op",NONE :"no-op"};
997 cvox.AuralStyleConverter.valueTable={VOLUME:cvox.AuralStyleConverter.identity,SP EAK:cvox.AuralStyleConverter.identity,PAUSE_BEFORE:cvox.AuralStyleConverter.iden tity,PAUSE_AFTER:cvox.AuralStyleConverter.identity,PAUSE:cvox.AuralStyleConverte r.identity,CUE_BEFORE:cvox.AuralStyleConverter.identity,CUE_AFTER:cvox.AuralStyl eConverter.identity,CUE:cvox.AuralStyleConverter.identity,PLAY_DURING:cvox.Aural StyleConverter.identity,AZIMUTH:cvox.AuralStyleConverter.identity,ELEVATION:cvox .AuralStyleConverter.identity, 998 cvox.AuralStyleConverter.valueTable={VOLUME:cvox.AuralStyleConverter.identity,SP EAK:cvox.AuralStyleConverter.identity,PAUSE_BEFORE:cvox.AuralStyleConverter.iden tity,PAUSE_AFTER:cvox.AuralStyleConverter.identity,PAUSE:cvox.AuralStyleConverte r.identity,CUE_BEFORE:cvox.AuralStyleConverter.identity,CUE_AFTER:cvox.AuralStyl eConverter.identity,CUE:cvox.AuralStyleConverter.identity,PLAY_DURING:cvox.Aural StyleConverter.identity,AZIMUTH:cvox.AuralStyleConverter.identity,ELEVATION:cvox .AuralStyleConverter.identity,
998 SPEECH_RATE:cvox.AuralStyleConverter.identity,VOICE_FAMILY:cvox.AuralStyleConver ter.identity,PITCH:cvox.AuralStyleConverter.identity,PITCH_RANGE:cvox.AuralStyle Converter.identity,STRESS:cvox.AuralStyleConverter.identity,RICHNESS:cvox.AuralS tyleConverter.identity,SPEAK_PUNCTUATION:cvox.AuralStyleConverter.identity,SPEAK _NUMERIAL:cvox.AuralStyleConverter.identity,SPEAK_HEADER:cvox.AuralStyleConverte r.identity,NONE:cvox.AuralStyleConverter.identity}; 999 SPEECH_RATE:cvox.AuralStyleConverter.identity,VOICE_FAMILY:cvox.AuralStyleConver ter.identity,PITCH:cvox.AuralStyleConverter.identity,PITCH_RANGE:cvox.AuralStyle Converter.identity,STRESS:cvox.AuralStyleConverter.identity,RICHNESS:cvox.AuralS tyleConverter.identity,SPEAK_PUNCTUATION:cvox.AuralStyleConverter.identity,SPEAK _NUMERIAL:cvox.AuralStyleConverter.identity,SPEAK_HEADER:cvox.AuralStyleConverte r.identity,NONE:cvox.AuralStyleConverter.identity};
999 cvox.AuralStyleConverter.convertRule=function(a,b){return{property:cvox.AuralSty leConverter.propertyTable[a],value:cvox.AuralStyleConverter.valueTable[a](b)}};c vox.AuralStyleConverter.convertStyle=function(a){var b={},c;for(c in a){var d=cv ox.AuralStyleConverter.convertRule(c,a[c]);b[d.property]=d.value}return b};cvox. AuralStyleUtil.getStyleForNode=function(a){return(a=cvox.AuralStyleUtil.defaultS tyles[a.tagName])?cvox.AuralStyleConverter.convertStyle(a):null}; 1000 cvox.AuralStyleConverter.convertRule=function(a,b){return{property:cvox.AuralSty leConverter.propertyTable[a],value:cvox.AuralStyleConverter.valueTable[a](b)}};c vox.AuralStyleConverter.convertStyle=function(a){var b={},c;for(c in a){var d=cv ox.AuralStyleConverter.convertRule(c,a[c]);b[d.property]=d.value}return b};cvox. AuralStyleUtil.getStyleForNode=function(a){return(a=cvox.AuralStyleUtil.defaultS tyles[a.tagName])?cvox.AuralStyleConverter.convertStyle(a):null};
1000 cvox.AuralStyleUtil.defaultStyles={ARTICLE:{PITCH:-0.1},ASIDE:{PITCH:-0.1},FOOTE R:{PITCH:-0.1},H1:{PITCH:-0.3},H2:{PITCH:-0.25},H3:{PITCH:-0.2},H4:{PITCH:-0.15} ,H5:{PITCH:-0.1},H6:{PITCH:-0.05},HEADER:{PITCH:-0.1},HGROUP:{PITCH:-0.1},MARK:{ PITCH:-0.1},NAV:{PITCH:-0.1},SECTION:{PITCH:-0.1},TIME:{PITCH:-0.1}};cvox.Earcon Util={}; 1001 cvox.AuralStyleUtil.defaultStyles={ARTICLE:{PITCH:-0.1},ASIDE:{PITCH:-0.1},FOOTE R:{PITCH:-0.1},H1:{PITCH:-0.3},H2:{PITCH:-0.25},H3:{PITCH:-0.2},H4:{PITCH:-0.15} ,H5:{PITCH:-0.1},H6:{PITCH:-0.05},HEADER:{PITCH:-0.1},HGROUP:{PITCH:-0.1},MARK:{ PITCH:-0.1},NAV:{PITCH:-0.1},SECTION:{PITCH:-0.1},TIME:{PITCH:-0.1}};cvox.Earcon Util={};
1001 cvox.EarconUtil.getEarcon=function(a){var b=cvox.AriaUtil.getEarcon(a);if(null!= b)return b;switch(a.tagName){case "BUTTON":return cvox.AbstractEarcons.BUTTON;ca se "A":if(a.hasAttribute("href"))return cvox.AbstractEarcons.LINK;break;case "IM G":if(cvox.DomUtil.hasLongDesc(a))return cvox.AbstractEarcons.LONG_DESC;break;ca se "LI":return cvox.AbstractEarcons.LIST_ITEM;case "SELECT":return cvox.Abstract Earcons.LISTBOX;case "TEXTAREA":return cvox.AbstractEarcons.EDITABLE_TEXT;case " INPUT":switch(a.type){case "button":case "submit":case "reset":return cvox.Abstr actEarcons.BUTTON;case "checkbox":case "radio":return a.checked? 1002 cvox.EarconUtil.getEarcon=function(a){var b=cvox.AriaUtil.getEarcon(a);if(null!= b)return b;switch(a.tagName){case "BUTTON":return cvox.AbstractEarcons.BUTTON;ca se "A":if(a.hasAttribute("href"))return cvox.AbstractEarcons.LINK;break;case "IM G":if(cvox.DomUtil.hasLongDesc(a))return cvox.AbstractEarcons.LONG_DESC;break;ca se "LI":return cvox.AbstractEarcons.LIST_ITEM;case "SELECT":return cvox.Abstract Earcons.LISTBOX;case "TEXTAREA":return cvox.AbstractEarcons.EDITABLE_TEXT;case " INPUT":switch(a.type){case "button":case "submit":case "reset":return cvox.Abstr actEarcons.BUTTON;case "checkbox":case "radio":return a.checked?
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
1205 cvox.NavigationManager.prototype.reset=function(){this.navSpeaker_=new cvox.Navi gationSpeaker;this.shifterTypes_=[cvox.NavigationShifter,cvox.TableShifter,cvox. MathShifter];this.shifterStack_=[];this.shifter_=new cvox.NavigationShifter;this .curSel_=document.activeElement!=document.body?cvox.CursorSelection.fromNode(doc ument.activeElement):this.shifter_.begin(this.curSel_,{reversed:!1});this.prevSe l_=this.curSel_.clone();this.ignoreIframesNoMatterWhat_=this.exitedShifter_=this .enteredShifter_=this.pageEndAnnounced_= 1206 cvox.NavigationManager.prototype.reset=function(){this.navSpeaker_=new cvox.Navi gationSpeaker;this.shifterTypes_=[cvox.NavigationShifter,cvox.TableShifter,cvox. MathShifter];this.shifterStack_=[];this.shifter_=new cvox.NavigationShifter;this .curSel_=document.activeElement!=document.body?cvox.CursorSelection.fromNode(doc ument.activeElement):this.shifter_.begin(this.curSel_,{reversed:!1});this.prevSe l_=this.curSel_.clone();this.ignoreIframesNoMatterWhat_=this.exitedShifter_=this .enteredShifter_=this.pageEndAnnounced_=
1206 this.pageEnd_=this.keepReading_=this.recovered_=this.skipped_=!1;this.pageSel_=n ull;this.predicate_="";this.saveSel_=null;this.activeIndicator&&this.activeIndic ator.removeFromDom();this.activeIndicator=new cvox.ActiveIndicator;this.navigati onHistory_=new cvox.NavigationHistory;this.focusRecovery_="chrome:"!=window.loca tion.protocol;this.iframeIdMap={};this.nextIframeId=1;document.activeElement!=do cument.body&&this.sync();cvox.TraverseMath.getInstance()}; 1207 this.pageEnd_=this.keepReading_=this.recovered_=this.skipped_=!1;this.pageSel_=n ull;this.predicate_="";this.saveSel_=null;this.activeIndicator&&this.activeIndic ator.removeFromDom();this.activeIndicator=new cvox.ActiveIndicator;this.navigati onHistory_=new cvox.NavigationHistory;this.focusRecovery_="chrome:"!=window.loca tion.protocol;this.iframeIdMap={};this.nextIframeId=1;document.activeElement!=do cument.body&&this.sync();cvox.TraverseMath.getInstance()};
1207 cvox.NavigationManager.prototype.resolve=function(a){if(!this.getFocusRecovery() )return!0;var b=this.getCurrentNode();if(!this.navigationHistory_.becomeInvalid( b)||this.hasNext_())return!0;b=this.navigationHistory_.revert(a);if(!b.current)r eturn!0;a=cvox.CursorSelection.fromNode(b.current);b=cvox.CursorSelection.fromNo de(b.previous);a=a||cvox.CursorSelection.fromBody();b=b||cvox.CursorSelection.fr omBody();a.setReversed(this.isReversed());this.updateSel(a,b);this.recovered_=!0 ;return!1}; 1208 cvox.NavigationManager.prototype.resolve=function(a){if(!this.getFocusRecovery() )return!0;var b=this.getCurrentNode();if(!this.navigationHistory_.becomeInvalid( b)||this.hasNext_())return!0;b=this.navigationHistory_.revert(a);if(!b.current)r eturn!0;a=cvox.CursorSelection.fromNode(b.current);b=cvox.CursorSelection.fromNo de(b.previous);a=a||cvox.CursorSelection.fromBody();b=b||cvox.CursorSelection.fr omBody();a.setReversed(this.isReversed());this.updateSel(a,b);this.recovered_=!0 ;return!1};
1208 cvox.NavigationManager.prototype.getFocusRecovery=function(){return this.focusRe covery_};cvox.NavigationManager.prototype.setFocusRecovery=function(a){this.focu sRecovery_=a};cvox.NavigationManager.prototype.next_=function(a){return this.try Boundaries_(this.shifter_.next(this.curSel_),a)?(this.pageSel_&&this.pageSel_.ex tend(this.curSel_),!0):!1}; 1209 cvox.NavigationManager.prototype.getFocusRecovery=function(){return this.focusRe covery_};cvox.NavigationManager.prototype.setFocusRecovery=function(a){this.focu sRecovery_=a};cvox.NavigationManager.prototype.next_=function(a){return this.try Boundaries_(this.shifter_.next(this.curSel_),a)?(this.pageSel_&&this.pageSel_.ex tend(this.curSel_),!0):!1};
1209 cvox.NavigationManager.prototype.hasNext_=function(){if(0<this.shifterStack_.len gth)return!0;var a=this.curSel_.clone(),b=!1,c=new cvox.NavigationShifter;c.setG ranularity(this.shifter_.getGranularity());c.sync(a);c.next(a)&&(b=!0);return b} ; 1210 cvox.NavigationManager.prototype.hasNext_=function(){if(0<this.shifterStack_.len gth)return!0;var a=this.curSel_.clone(),b=!1,c=new cvox.NavigationShifter;c.setG ranularity(this.shifter_.getGranularity());c.sync(a);c.next(a)&&(b=!0);return b} ;
1210 cvox.NavigationManager.prototype.findNext=function(a,b,c){this.predicate_=b||""; this.resolve();this.shifter_=this.shifterStack_[0]||this.shifter_;this.shifterSt ack_=[];a=cvox.FindUtil.findNext(this.curSel_,a,c);this.ignoreIframesNoMatterWha t_||this.tryIframe_(a&&a.start.node);a&&this.updateSelToArbitraryNode(a.start.no de);this.predicate_="";return a};cvox.NavigationManager.prototype.sync=function( ){this.resolve();var a=this.shifter_.sync(this.curSel_);a&&(this.curSel_=a)}; 1211 cvox.NavigationManager.prototype.findNext=function(a,b,c){this.predicate_=b||""; this.resolve();this.shifter_=this.shifterStack_[0]||this.shifter_;this.shifterSt ack_=[];a=cvox.FindUtil.findNext(this.curSel_,a,c);this.ignoreIframesNoMatterWha t_||this.tryIframe_(a&&a.start.node);a&&this.updateSelToArbitraryNode(a.start.no de);this.predicate_="";return a};cvox.NavigationManager.prototype.sync=function( ){this.resolve();var a=this.shifter_.sync(this.curSel_);a&&(this.curSel_=a)};
1211 cvox.NavigationManager.prototype.syncAll=function(a){this.sync();this.setFocus(a );this.updateIndicator()};cvox.NavigationManager.prototype.clearPageSel=function (a){var b=!!this.pageSel_;b&&a&&(a=cvox.ChromeVox.msgs.getMsg("clear_page_select ion"),cvox.ChromeVox.tts.speak(a,cvox.AbstractTts.QUEUE_MODE_FLUSH,cvox.Abstract Tts.PERSONALITY_ANNOTATION));this.pageSel_=null;return b}; 1212 cvox.NavigationManager.prototype.syncAll=function(a){this.sync();this.setFocus(a );this.updateIndicator()};cvox.NavigationManager.prototype.clearPageSel=function (a){var b=!!this.pageSel_;b&&a&&(a=cvox.ChromeVox.msgs.getMsg("clear_page_select ion"),cvox.ChromeVox.tts.speak(a,cvox.AbstractTts.QUEUE_MODE_FLUSH,cvox.Abstract Tts.PERSONALITY_ANNOTATION));this.pageSel_=null;return b};
1212 cvox.NavigationManager.prototype.togglePageSel=function(){this.pageSel_=this.pag eSel_?null:new cvox.PageSelection(this.curSel_.setReversed(!1));return!!this.pag eSel_}; 1213 cvox.NavigationManager.prototype.togglePageSel=function(){this.pageSel_=this.pag eSel_?null:new cvox.PageSelection(this.curSel_.setReversed(!1));return!!this.pag eSel_};
1213 cvox.NavigationManager.prototype.getDescription=function(){if(this.getCurrentNod e().hasAttribute&&this.getCurrentNode().hasAttribute("cvoxnodedesc")){for(var a= cvox.ChromeVoxJSON.parse(this.getCurrentNode().getAttribute("cvoxnodedesc")),b=[ ],c=0;c<a.length;++c){var d=a[c];b.push(new cvox.NavDescription({context:d.conte xt,text:d.text,userValue:d.userValue,annotation:d.annotation}))}return b}var e=t his.pageSel_?this.pageSel_.getDescription(this.shifter_,this.prevSel_,this.curSe l_):this.shifter_.getDescription(this.prevSel_, 1214 cvox.NavigationManager.prototype.getDescription=function(){if(this.getCurrentNod e().hasAttribute&&this.getCurrentNode().hasAttribute("cvoxnodedesc")){for(var a= cvox.ChromeVoxJSON.parse(this.getCurrentNode().getAttribute("cvoxnodedesc")),b=[ ],c=0;c<a.length;++c){var d=a[c];b.push(new cvox.NavDescription({context:d.conte xt,text:d.text,userValue:d.userValue,annotation:d.annotation}))}return b}var e=t his.pageSel_?this.pageSel_.getDescription(this.shifter_,this.prevSel_,this.curSe l_):this.shifter_.getDescription(this.prevSel_,
1214 this.curSel_),a=[];this.skipped_&&(a.push(cvox.AbstractEarcons.PARAGRAPH_BREAK), this.skipped_=!1);this.recovered_&&(a.push(cvox.AbstractEarcons.FONT_CHANGE),thi s.recovered_=!1);this.pageEnd_&&(a.push(cvox.AbstractEarcons.WRAP),this.pageEnd_ =!1);this.enteredShifter_&&(a.push(cvox.AbstractEarcons.OBJECT_ENTER),this.enter edShifter_=!1);this.exitedShifter_&&(a.push(cvox.AbstractEarcons.OBJECT_EXIT),th is.exitedShifter_=!1);0<a.length&&0<e.length&&a.forEach(function(a){e[0].pushEar con(a)});return e}; 1215 this.curSel_),a=[];this.skipped_&&(a.push(cvox.AbstractEarcons.PARAGRAPH_BREAK), this.skipped_=!1);this.recovered_&&(a.push(cvox.AbstractEarcons.FONT_CHANGE),thi s.recovered_=!1);this.pageEnd_&&(a.push(cvox.AbstractEarcons.WRAP),this.pageEnd_ =!1);this.enteredShifter_&&(a.push(cvox.AbstractEarcons.OBJECT_ENTER),this.enter edShifter_=!1);this.exitedShifter_&&(a.push(cvox.AbstractEarcons.OBJECT_EXIT),th is.exitedShifter_=!1);0<a.length&&0<e.length&&a.forEach(function(a){e[0].pushEar con(a)});return e};
1215 cvox.NavigationManager.prototype.getBraille=function(){return cvox.PlatformUtil. matchesPlatform(cvox.PlatformFilter.ANDROID|cvox.PlatformFilter.CHROMEOS)?this.s hifter_.getBraille(this.prevSel_,this.curSel_):new cvox.NavBraille({})}; 1216 cvox.NavigationManager.prototype.getBraille=function(){return this.shifter_.getB raille(this.prevSel_,this.curSel_)};
1216 cvox.NavigationManager.prototype.performAction=function(a){switch(a){case "enter Shifter":case "enterShifterSilently":for(var b=this.shifterTypes_.length-1,c;c=t his.shifterTypes_[b];b--)if((c=c.create(this.curSel_))&&c.getName()!=this.shifte r_.getName()){this.shifterStack_.push(this.shifter_);this.shifter_=c;this.sync() ;this.enteredShifter_="enterShifterSilently"!=a;break}else if(c&&this.shifter_.g etName()==c.getName())break;break;case "exitShifter":if(0==this.shifterStack_.le ngth)return!1;this.shifter_= 1217 cvox.NavigationManager.prototype.performAction=function(a){switch(a){case "enter Shifter":case "enterShifterSilently":for(var b=this.shifterTypes_.length-1,c;c=t his.shifterTypes_[b];b--)if((c=c.create(this.curSel_))&&c.getName()!=this.shifte r_.getName()){this.shifterStack_.push(this.shifter_);this.shifter_=c;this.sync() ;this.enteredShifter_="enterShifterSilently"!=a;break}else if(c&&this.shifter_.g etName()==c.getName())break;break;case "exitShifter":if(0==this.shifterStack_.le ngth)return!1;this.shifter_=
1217 this.shifterStack_.pop();this.sync();this.exitedShifter_=!0;break;case "exitShif terContent":if(0==this.shifterStack_.length)return!1;this.updateSel(this.shifter _.performAction(a,this.curSel_));this.shifter_=this.shifterStack_.pop()||this.sh ifter_;this.sync();this.exitedShifter_=!0;break;default:return this.shifter_.has Action(a)?this.updateSel(this.shifter_.performAction(a,this.curSel_)):!1}return! 0};cvox.NavigationManager.prototype.getGranularityMsg=function(){return this.shi fter_.getGranularityMsg()}; 1218 this.shifterStack_.pop();this.sync();this.exitedShifter_=!0;break;case "exitShif terContent":if(0==this.shifterStack_.length)return!1;this.updateSel(this.shifter _.performAction(a,this.curSel_));this.shifter_=this.shifterStack_.pop()||this.sh ifter_;this.sync();this.exitedShifter_=!0;break;default:return this.shifter_.has Action(a)?this.updateSel(this.shifter_.performAction(a,this.curSel_)):!1}return! 0};cvox.NavigationManager.prototype.getGranularityMsg=function(){return this.shi fter_.getGranularityMsg()};
1218 cvox.NavigationManager.prototype.makeMoreGranular=function(a){this.shifter_.make MoreGranular();this.sync();this.persistGranularity_(a)};cvox.NavigationManager.p rototype.makeLessGranular=function(a){this.shifter_.makeLessGranular();this.sync ();this.persistGranularity_(a)};cvox.NavigationManager.prototype.setGranularity= function(a,b,c){!b&&0<this.shifterStack_.length||(this.shifter_=this.shifterStac k_.shift()||this.shifter_,this.shifter_.setGranularity(a),this.persistGranularit y_(c))}; 1219 cvox.NavigationManager.prototype.makeMoreGranular=function(a){this.shifter_.make MoreGranular();this.sync();this.persistGranularity_(a)};cvox.NavigationManager.p rototype.makeLessGranular=function(a){this.shifter_.makeLessGranular();this.sync ();this.persistGranularity_(a)};cvox.NavigationManager.prototype.setGranularity= function(a,b,c){!b&&0<this.shifterStack_.length||(this.shifter_=this.shifterStac k_.shift()||this.shifter_,this.shifter_.setGranularity(a),this.persistGranularit y_(c))};
1219 cvox.NavigationManager.prototype.getGranularity=function(){var a=this.shifterSta ck_[0]||this.shifter_;return a.getGranularity()};cvox.NavigationManager.prototyp e.ensureSubnavigating=function(){this.shifter_.isSubnavigating()||(this.shifter_ .ensureSubnavigating(),this.sync())};cvox.NavigationManager.prototype.ensureNotS ubnavigating=function(){this.shifter_.isSubnavigating()&&(this.shifter_.ensureNo tSubnavigating(),this.sync())}; 1220 cvox.NavigationManager.prototype.getGranularity=function(){var a=this.shifterSta ck_[0]||this.shifter_;return a.getGranularity()};cvox.NavigationManager.prototyp e.ensureSubnavigating=function(){this.shifter_.isSubnavigating()||(this.shifter_ .ensureSubnavigating(),this.sync())};cvox.NavigationManager.prototype.ensureNotS ubnavigating=function(){this.shifter_.isSubnavigating()&&(this.shifter_.ensureNo tSubnavigating(),this.sync())};
1220 cvox.NavigationManager.prototype.speakDescriptionArray=function(a,b,c,d){d&&a.ev ery(function(a){a.personality||(a.personality=d)});this.navSpeaker_.speakDescrip tionArray(a,b,c)};cvox.NavigationManager.prototype.updatePosition=function(a){va r b=cvox.ChromeVox.position;b[document.location.href]=cvox.DomUtil.elementToPoin t(a);cvox.ChromeVox.host.sendToBackgroundPage({target:"Prefs",action:"setPref",p ref:"position",value:JSON.stringify(b)})}; 1221 cvox.NavigationManager.prototype.speakDescriptionArray=function(a,b,c,d){d&&a.ev ery(function(a){a.personality||(a.personality=d)});this.navSpeaker_.speakDescrip tionArray(a,b,c)};cvox.NavigationManager.prototype.updatePosition=function(a){va r b=cvox.ChromeVox.position;b[document.location.href]=cvox.DomUtil.elementToPoin t(a);cvox.ChromeVox.host.sendToBackgroundPage({target:"Prefs",action:"setPref",p ref:"position",value:JSON.stringify(b)})};
1221 cvox.NavigationManager.prototype.finishNavCommand=function(a,b,c,d){if(this.page End_&&!this.pageEndAnnounced_)this.pageEndAnnounced_=!0,cvox.ChromeVox.tts.stop( ),cvox.ChromeVox.earcons.playEarcon(cvox.AbstractEarcons.WRAP),cvox.ChromeVox.ve rbosity===cvox.VERBOSITY_VERBOSE&&(a=cvox.ChromeVox.msgs.getMsg("wrapped_to_top" ),this.isReversed()&&(a=cvox.ChromeVox.msgs.getMsg("wrapped_to_bottom")),cvox.Ch romeVox.tts.speak(a,cvox.AbstractTts.QUEUE_MODE_QUEUE,cvox.AbstractTts.PERSONALI TY_ANNOTATION));else{if(this.enteredShifter_|| 1222 cvox.NavigationManager.prototype.finishNavCommand=function(a,b,c,d){if(this.page End_&&!this.pageEndAnnounced_)this.pageEndAnnounced_=!0,cvox.ChromeVox.tts.stop( ),cvox.ChromeVox.earcons.playEarcon(cvox.AbstractEarcons.WRAP),cvox.ChromeVox.ve rbosity===cvox.VERBOSITY_VERBOSE&&(a=cvox.ChromeVox.msgs.getMsg("wrapped_to_top" ),this.isReversed()&&(a=cvox.ChromeVox.msgs.getMsg("wrapped_to_bottom")),cvox.Ch romeVox.tts.speak(a,cvox.AbstractTts.QUEUE_MODE_QUEUE,cvox.AbstractTts.PERSONALI TY_ANNOTATION));else{if(this.enteredShifter_||
1222 this.exitedShifter_)a=cvox.ChromeVox.msgs.getMsg("enter_content_say",[this.shift er_.getName()]);var e=cvox.ChromeVox.navigationManager.getDescription();(b=void 0===b?!0:b)&&this.setFocus();this.updateIndicator();b=c||cvox.AbstractTts.QUEUE_ MODE_FLUSH;a&&(cvox.ChromeVox.tts.speak(a,b,cvox.AbstractTts.PERSONALITY_ANNOTAT ION),b=cvox.AbstractTts.QUEUE_MODE_QUEUE);this.speakDescriptionArray(e,b,d||null );this.getBraille().write();this.updatePosition(this.getCurrentNode())}}; 1223 this.exitedShifter_)a=cvox.ChromeVox.msgs.getMsg("enter_content_say",[this.shift er_.getName()]);var e=cvox.ChromeVox.navigationManager.getDescription();(b=void 0===b?!0:b)&&this.setFocus();this.updateIndicator();b=c||cvox.AbstractTts.QUEUE_ MODE_FLUSH;a&&(cvox.ChromeVox.tts.speak(a,b,cvox.AbstractTts.PERSONALITY_ANNOTAT ION),b=cvox.AbstractTts.QUEUE_MODE_QUEUE);this.speakDescriptionArray(e,b,d||null );this.getBraille().write();this.updatePosition(this.getCurrentNode())}};
1223 cvox.NavigationManager.prototype.navigate=function(a,b){this.pageEndAnnounced_=! 1;if(this.pageEnd_)return this.pageEnd_=!1,this.syncToBeginning(a),!0;if(!this.r esolve())return!1;this.ensureNotSubnavigating();void 0!==b&&(b!==this.getGranula rity()||0<this.shifterStack_.length)&&(this.setGranularity(b,!0),this.sync());re turn this.next_(!a)};cvox.NavigationManager.prototype.subnavigate=function(){thi s.pageEndAnnounced_=!1;this.resolve()&&(this.ensureSubnavigating(),this.next_(!0 ))}; 1224 cvox.NavigationManager.prototype.navigate=function(a,b){this.pageEndAnnounced_=! 1;if(this.pageEnd_)return this.pageEnd_=!1,this.syncToBeginning(a),!0;if(!this.r esolve())return!1;this.ensureNotSubnavigating();void 0!==b&&(b!==this.getGranula rity()||0<this.shifterStack_.length)&&(this.setGranularity(b,!0),this.sync());re turn this.next_(!a)};cvox.NavigationManager.prototype.subnavigate=function(){thi s.pageEndAnnounced_=!1;this.resolve()&&(this.ensureSubnavigating(),this.next_(!0 ))};
1224 cvox.NavigationManager.prototype.skip=function(){if(!this.keepReading_)return!1; cvox.ChromeVox.host.hasTtsCallback()&&(this.skipped_=!0,this.setReversed(!1),thi s.startCallbackReading_(cvox.AbstractTts.QUEUE_MODE_FLUSH));return!0}; 1225 cvox.NavigationManager.prototype.skip=function(){if(!this.keepReading_)return!1; cvox.ChromeVox.host.hasTtsCallback()&&(this.skipped_=!0,this.setReversed(!1),thi s.startCallbackReading_(cvox.AbstractTts.QUEUE_MODE_FLUSH));return!0};
1225 cvox.NavigationManager.prototype.startReading=function(a){this.keepReading_=!0;c vox.ChromeVox.host.hasTtsCallback()?this.startCallbackReading_(a):this.startNonC allbackReading_(a);this.prevStickyState_=cvox.ChromeVox.isStickyOn;cvox.ChromeVo x.host.sendToBackgroundPage({target:"Prefs",action:"setPref",pref:"sticky",value :!0,announce:!1})}; 1226 cvox.NavigationManager.prototype.startReading=function(a){this.keepReading_=!0;c vox.ChromeVox.host.hasTtsCallback()?this.startCallbackReading_(a):this.startNonC allbackReading_(a);this.prevStickyState_=cvox.ChromeVox.isStickyOn;cvox.ChromeVo x.host.sendToBackgroundPage({target:"Prefs",action:"setPref",pref:"sticky",value :!0,announce:!1})};
(...skipping 18 matching lines...) Expand all
1244 else return cvox.SearchWidget.superClass_.onKeyDown.call(this,a);a.preventDefaul t();a.stopPropagation();return!0};cvox.SearchWidget.prototype.onKeyPress=functio n(a){if(!this.isActive())return!1;this.txtNode_.value+=String.fromCharCode(a.cha rCode);var b=this.txtNode_.value;this.beginSearch_(b);a.preventDefault();a.stopP ropagation();return!0};cvox.SearchWidget.prototype.onNavigate=function(){};cvox. SearchWidget.prototype.getPredicate=function(){return null}; 1245 else return cvox.SearchWidget.superClass_.onKeyDown.call(this,a);a.preventDefaul t();a.stopPropagation();return!0};cvox.SearchWidget.prototype.onKeyPress=functio n(a){if(!this.isActive())return!1;this.txtNode_.value+=String.fromCharCode(a.cha rCode);var b=this.txtNode_.value;this.beginSearch_(b);a.preventDefault();a.stopP ropagation();return!0};cvox.SearchWidget.prototype.onNavigate=function(){};cvox. SearchWidget.prototype.getPredicate=function(){return null};
1245 cvox.SearchWidget.prototype.createContainerNode_=function(){var a=document.creat eElement("div");a.id="cvox-search";a.style.position="fixed";a.style.top="50%";a. style.left="50%";a.style["-webkit-transition"]="all 0.3s ease-in";a.style.opacit y="0.0";a.style["z-index"]="2147483647";a.setAttribute("aria-hidden","true");ret urn a}; 1246 cvox.SearchWidget.prototype.createContainerNode_=function(){var a=document.creat eElement("div");a.id="cvox-search";a.style.position="fixed";a.style.top="50%";a. style.left="50%";a.style["-webkit-transition"]="all 0.3s ease-in";a.style.opacit y="0.0";a.style["z-index"]="2147483647";a.setAttribute("aria-hidden","true");ret urn a};
1246 cvox.SearchWidget.prototype.createOverlayNode_=function(){var a=document.createE lement("div");a.style.position="relative";a.style.left="-50%";a.style.top="-40px ";a.style["line-height"]="1.2em";a.style["font-size"]="20px";a.style.padding="30 px";a.style["min-width"]="150px";a.style.color="#fff";a.style["background-color" ]="rgba(0, 0, 0, 0.7)";a.style["border-radius"]="10px";return a}; 1247 cvox.SearchWidget.prototype.createOverlayNode_=function(){var a=document.createE lement("div");a.style.position="relative";a.style.left="-50%";a.style.top="-40px ";a.style["line-height"]="1.2em";a.style["font-size"]="20px";a.style.padding="30 px";a.style["min-width"]="150px";a.style.color="#fff";a.style["background-color" ]="rgba(0, 0, 0, 0.7)";a.style["border-radius"]="10px";return a};
1247 cvox.SearchWidget.prototype.createTextAreaNode_=function(){var a=document.create Element("textarea");a.setAttribute("aria-hidden","true");a.setAttribute("rows"," 1");a.style.color="#fff";a.style["background-color"]="rgba(0, 0, 0, 0.7)";a.styl e["vertical-align"]="middle";a.addEventListener("textInput",this.handleSearchCha nged_,!1);return a}; 1248 cvox.SearchWidget.prototype.createTextAreaNode_=function(){var a=document.create Element("textarea");a.setAttribute("aria-hidden","true");a.setAttribute("rows"," 1");a.style.color="#fff";a.style["background-color"]="rgba(0, 0, 0, 0.7)";a.styl e["vertical-align"]="middle";a.addEventListener("textInput",this.handleSearchCha nged_,!1);return a};
1248 cvox.SearchWidget.prototype.toggleCaseSensitivity_=function(){this.caseSensitive _?(cvox.SearchWidget.caseSensitive_=!1,cvox.ChromeVox.tts.speak("Ignoring case." ,0,null)):(this.caseSensitive_=!0,cvox.ChromeVox.tts.speak("Case sensitive.",0,n ull))}; 1249 cvox.SearchWidget.prototype.toggleCaseSensitivity_=function(){this.caseSensitive _?(cvox.SearchWidget.caseSensitive_=!1,cvox.ChromeVox.tts.speak("Ignoring case." ,0,null)):(this.caseSensitive_=!0,cvox.ChromeVox.tts.speak("Case sensitive.",0,n ull))};
1249 cvox.SearchWidget.prototype.getNextResult_=function(a){var b=cvox.ChromeVox.navi gationManager.isReversed();this.caseSensitive_||(a=a.toLowerCase());cvox.ChromeV ox.navigationManager.setGranularity(cvox.NavigationShifter.GRANULARITIES.OBJECT, !0,!1);do{if(this.getPredicate()){var c=this.getPredicate()(cvox.DomUtil.getAnce stors(cvox.ChromeVox.navigationManager.getCurrentNode()));if(!c)continue}for(var c=cvox.ChromeVox.navigationManager.getDescription(),d=0;d<c.length;d++){var e=t his.caseSensitive_?c[d].text: 1250 cvox.SearchWidget.prototype.getNextResult_=function(a){var b=cvox.ChromeVox.navi gationManager.isReversed();this.caseSensitive_||(a=a.toLowerCase());cvox.ChromeV ox.navigationManager.setGranularity(cvox.NavigationShifter.GRANULARITIES.OBJECT, !0,!1);do{if(this.getPredicate()){var c=this.getPredicate()(cvox.DomUtil.getAnce stors(cvox.ChromeVox.navigationManager.getCurrentNode()));if(!c)continue}for(var c=cvox.ChromeVox.navigationManager.getDescription(),d=0;d<c.length;d++){var e=t his.caseSensitive_?c[d].text:
1250 c[d].text.toLowerCase(),f=e.indexOf(a);-1!=f&&e.length>a.length&&(c[d].text=cvox .DomUtil.collapseWhitespace(e.substring(0,f))+", "+a+", "+e.substring(f+a.length ),c[d].text=cvox.DomUtil.collapseWhitespace(c[d].text));if(-1!=f)return c}cvox.C hromeVox.navigationManager.setReversed(b)}while(cvox.ChromeVox.navigationManager .navigate(!0,cvox.NavigationShifter.GRANULARITIES.OBJECT))};cvox.SearchWidget.pr ototype.beginSearch_=function(a){var b=this.getNextResult_(a);this.outputSearchR esult_(b,a);this.onNavigate()}; 1251 c[d].text.toLowerCase(),f=e.indexOf(a);-1!=f&&e.length>a.length&&(c[d].text=cvox .DomUtil.collapseWhitespace(e.substring(0,f))+", "+a+", "+e.substring(f+a.length ),c[d].text=cvox.DomUtil.collapseWhitespace(c[d].text));if(-1!=f)return c}cvox.C hromeVox.navigationManager.setReversed(b)}while(cvox.ChromeVox.navigationManager .navigate(!0,cvox.NavigationShifter.GRANULARITIES.OBJECT))};cvox.SearchWidget.pr ototype.beginSearch_=function(a){var b=this.getNextResult_(a);this.outputSearchR esult_(b,a);this.onNavigate()};
1251 cvox.SearchWidget.prototype.next_=function(a,b){cvox.ChromeVox.navigationManager .setReversed(!!b);var c=!1;this.getPredicate()?(c=cvox.ChromeVox.navigationManag er.findNext(this.getPredicate()),cvox.ChromeVox.navigationManager.setReversed(!! b),c||(cvox.ChromeVox.navigationManager.syncToBeginning(),cvox.ChromeVox.earcons .playEarcon(cvox.AbstractEarcons.WRAP),c=!0)):c=cvox.ChromeVox.navigationManager .navigate(!0);c=c?this.getNextResult_(a):null;this.outputSearchResult_(c,a);this .onNavigate();return c}; 1252 cvox.SearchWidget.prototype.next_=function(a,b){cvox.ChromeVox.navigationManager .setReversed(!!b);var c=!1;this.getPredicate()?(c=cvox.ChromeVox.navigationManag er.findNext(this.getPredicate()),cvox.ChromeVox.navigationManager.setReversed(!! b),c||(cvox.ChromeVox.navigationManager.syncToBeginning(),cvox.ChromeVox.earcons .playEarcon(cvox.AbstractEarcons.WRAP),c=!0)):c=cvox.ChromeVox.navigationManager .navigate(!0);c=c?this.getNextResult_(a):null;this.outputSearchResult_(c,a);this .onNavigate();return c};
1252 cvox.SearchWidget.prototype.outputSearchResult_=function(a,b){cvox.ChromeVox.tts .stop();a?(this.hasMatch_=!0,cvox.ChromeVoxEventSuspender.withSuspendedEvents(go og.bind(cvox.ChromeVox.navigationManager.syncAll,cvox.ChromeVox.navigationManage r))(!0),cvox.ChromeVox.navigationManager.speakDescriptionArray(a,cvox.AbstractTt s.QUEUE_MODE_FLUSH,null,cvox.AbstractTts.PERSONALITY_ANNOUNCEMENT),cvox.ChromeVo x.tts.speak(cvox.ChromeVox.msgs.getMsg("search_help_item"),cvox.AbstractTts.QUEU E_MODE_QUEUE,cvox.AbstractTts.PERSONALITY_ANNOTATION), 1253 cvox.SearchWidget.prototype.outputSearchResult_=function(a,b){cvox.ChromeVox.tts .stop();a?(this.hasMatch_=!0,cvox.ChromeVoxEventSuspender.withSuspendedEvents(go og.bind(cvox.ChromeVox.navigationManager.syncAll,cvox.ChromeVox.navigationManage r))(!0),cvox.ChromeVox.navigationManager.speakDescriptionArray(a,cvox.AbstractTt s.QUEUE_MODE_FLUSH,null,cvox.AbstractTts.PERSONALITY_ANNOUNCEMENT),cvox.ChromeVo x.tts.speak(cvox.ChromeVox.msgs.getMsg("search_help_item"),cvox.AbstractTts.QUEU E_MODE_QUEUE,cvox.AbstractTts.PERSONALITY_ANNOTATION),
1253 this.outputSearchResultToBraille_(b)):(cvox.ChromeVox.earcons.playEarcon(cvox.Ab stractEarcons.WRAP),this.hasMatch_=!1)}; 1254 this.outputSearchResultToBraille_(b)):(cvox.ChromeVox.earcons.playEarcon(cvox.Ab stractEarcons.WRAP),this.hasMatch_=!1)};
1254 cvox.SearchWidget.prototype.outputSearchResultToBraille_=function(a){if(cvox.Chr omeVox.braille){var b=this.textFromCurrentDescription_(),c=this.caseSensitive_?b :b.toLowerCase();a=this.caseSensitive_?a:a.toLowerCase();c=c.indexOf(a);if(-1==c )console.log("Search string not in result when preparing for Braille.");else{var d=b.length,b=cvox.ChromeVox.msgs.getMsg("mark_as_search_result_brl",[b]),e=b.le ngth,c=c+(e-d);cvox.ChromeVox.braille.write(new cvox.NavBraille({text:b,startInd ex:c+a.length,endIndex:c+ 1255 cvox.SearchWidget.prototype.outputSearchResultToBraille_=function(a){var b=this. textFromCurrentDescription_(),c=this.caseSensitive_?b:b.toLowerCase();a=this.cas eSensitive_?a:a.toLowerCase();c=c.indexOf(a);if(-1==c)console.log("Search string not in result when preparing for Braille.");else{var d=b.length,b=cvox.ChromeVo x.msgs.getMsg("mark_as_search_result_brl",[b]),e=b.length,c=c+(e-d);cvox.ChromeV ox.braille.write(new cvox.NavBraille({text:b,startIndex:c+a.length,endIndex:c+a. length}))}};
1255 a.length}))}}};cvox.SearchWidget.prototype.textFromCurrentDescription_=function( ){for(var a=cvox.ChromeVox.navigationManager.getDescription(),b="",c=0;c<a.lengt h;c++)b+=a[c].text+" ";return b};cvox.SearchWidget.prototype.handleSearchChanged _=function(a){a=a.target.value+a.data;cvox.SearchWidget.prototype.beginSearch_(a )};cvox.OverlayWidget=function(a){cvox.SearchWidget.call(this);this.snippet_=a}; goog.inherits(cvox.OverlayWidget,cvox.SearchWidget); 1256 cvox.SearchWidget.prototype.textFromCurrentDescription_=function(){for(var a=cvo x.ChromeVox.navigationManager.getDescription(),b="",c=0;c<a.length;c++)b+=a[c].t ext+" ";return b};cvox.SearchWidget.prototype.handleSearchChanged_=function(a){a =a.target.value+a.data;cvox.SearchWidget.prototype.beginSearch_(a)};cvox.Overlay Widget=function(a){cvox.SearchWidget.call(this);this.snippet_=a};goog.inherits(c vox.OverlayWidget,cvox.SearchWidget);
1256 cvox.OverlayWidget.prototype.show=function(){cvox.OverlayWidget.superClass_.show .call(this);var a=document.createElement("DIV");a.innerHTML=this.snippet_;var b= cvox.DomUtil.elementToPoint(cvox.ChromeVox.navigationManager.getCurrentNode());a .style.position="absolute";a.style.left=b.x;a.style.top=b.y;document.body.append Child(a);cvox.ChromeVox.navigationManager.updateSelToArbitraryNode(a);this.host_ =a};cvox.OverlayWidget.prototype.hide=function(){this.host_.remove();cvox.Overla yWidget.superClass_.hide.call(this)}; 1257 cvox.OverlayWidget.prototype.show=function(){cvox.OverlayWidget.superClass_.show .call(this);var a=document.createElement("DIV");a.innerHTML=this.snippet_;var b= cvox.DomUtil.elementToPoint(cvox.ChromeVox.navigationManager.getCurrentNode());a .style.position="absolute";a.style.left=b.x;a.style.top=b.y;document.body.append Child(a);cvox.ChromeVox.navigationManager.updateSelToArbitraryNode(a);this.host_ =a};cvox.OverlayWidget.prototype.hide=function(){this.host_.remove();cvox.Overla yWidget.superClass_.hide.call(this)};
1257 cvox.OverlayWidget.prototype.onKeyDown=function(a){cvox.OverlayWidget.superClass _.onKeyDown.call(this,a);if(13==a.keyCode||27==a.keyCode)return!0;a=cvox.ChromeV ox.navigationManager.isReversed();cvox.DomUtil.isDescendantOfNode(cvox.ChromeVox .navigationManager.getCurrentNode(),this.host_)||(a?cvox.ChromeVox.navigationMan ager.syncToBeginning():cvox.ChromeVox.navigationManager.updateSelToArbitraryNode (this.host_),this.onNavigate(),cvox.ChromeVox.navigationManager.speakDescription Array(cvox.ChromeVox.navigationManager.getDescription(), 1258 cvox.OverlayWidget.prototype.onKeyDown=function(a){cvox.OverlayWidget.superClass _.onKeyDown.call(this,a);if(13==a.keyCode||27==a.keyCode)return!0;a=cvox.ChromeV ox.navigationManager.isReversed();cvox.DomUtil.isDescendantOfNode(cvox.ChromeVox .navigationManager.getCurrentNode(),this.host_)||(a?cvox.ChromeVox.navigationMan ager.syncToBeginning():cvox.ChromeVox.navigationManager.updateSelToArbitraryNode (this.host_),this.onNavigate(),cvox.ChromeVox.navigationManager.speakDescription Array(cvox.ChromeVox.navigationManager.getDescription(),
1258 0,null))};var extractMenuList_=function(a){for(;a!==document;){var b=a.getAttrib ute("contextMenuActions");if(b)return JSON.parse(b);a=a.parentNode}return null}, getCurrentElement_=function(){for(var a=cvox.ChromeVox.navigationManager.getCurr entNode();a.nodeType!==Node.ELEMENT_NODE;)a=a.parentNode;return a}; 1259 0,null))};var extractMenuList_=function(a){for(;a!==document;){var b=a.getAttrib ute("contextMenuActions");if(b)return JSON.parse(b);a=a.parentNode}return null}, getCurrentElement_=function(){for(var a=cvox.ChromeVox.navigationManager.getCurr entNode();a.nodeType!==Node.ELEMENT_NODE;)a=a.parentNode;return a};
1259 cvox.ContextMenuWidget=function(){cvox.OverlayWidget.call(this,"");this.containe r_=document.createElement("div");this.triggerElement_=getCurrentElement_();(this .menuList=extractMenuList_(this.triggerElement_))?this.menuList.forEach(goog.bin d(function(a){if(a.desc||a.cmd){var b=a.desc;a=a.cmd;var c=document.createElemen t("p");c.id=a;c.textContent=b;c.setAttribute("role","menuitem");this.container_. appendChild(c)}},this)):console.log("No context menu found.")};goog.inherits(cvo x.ContextMenuWidget,cvox.OverlayWidget); 1260 cvox.ContextMenuWidget=function(){cvox.OverlayWidget.call(this,"");this.containe r_=document.createElement("div");this.triggerElement_=getCurrentElement_();(this .menuList=extractMenuList_(this.triggerElement_))?this.menuList.forEach(goog.bin d(function(a){if(a.desc||a.cmd){var b=a.desc;a=a.cmd;var c=document.createElemen t("p");c.id=a;c.textContent=b;c.setAttribute("role","menuitem");this.container_. appendChild(c)}},this)):console.log("No context menu found.")};goog.inherits(cvo x.ContextMenuWidget,cvox.OverlayWidget);
1260 cvox.ContextMenuWidget.prototype.show=function(){this.menuList&&(cvox.ContextMen uWidget.superClass_.show.call(this),this.host_.appendChild(this.container_))};cv ox.ContextMenuWidget.prototype.getNameMsg=function(){return["context_menu_intro" ]}; 1261 cvox.ContextMenuWidget.prototype.show=function(){this.menuList&&(cvox.ContextMen uWidget.superClass_.show.call(this),this.host_.appendChild(this.container_))};cv ox.ContextMenuWidget.prototype.getNameMsg=function(){return["context_menu_intro" ]};
1261 cvox.ContextMenuWidget.prototype.onKeyDown=function(a){if(13==a.keyCode){var b=c vox.ChromeVox.navigationManager.getCurrentNode(),b=b.parentNode.id,b=new cvox.Us erEventDetail({customCommand:b}),b=b.createEventObject();this.triggerElement_.di spatchEvent(b);this.hide();a.preventDefault();a.stopPropagation();return!0}retur n cvox.ContextMenuWidget.superClass_.onKeyDown.call(this,a)};cvox.CommandStore={ };cvox.CommandStore.categories=function(){var a={},b;for(b in cvox.CommandStore. CMD_WHITELIST){var c=cvox.CommandStore.CMD_WHITELIST[b];c.category&&(a[c.categor y]=!0)}b=[];for(var d in a)b.push(d);return b};cvox.CommandStore.messageForComma nd=function(a){return(cvox.CommandStore.CMD_WHITELIST[a]||{}).msgId};cvox.Comman dStore.categoryForCommand=function(a){return(cvox.CommandStore.CMD_WHITELIST[a]| |{}).category}; 1262 cvox.ContextMenuWidget.prototype.onKeyDown=function(a){if(13==a.keyCode){var b=c vox.ChromeVox.navigationManager.getCurrentNode(),b=b.parentNode.id,b=new cvox.Us erEventDetail({customCommand:b}),b=b.createEventObject();this.triggerElement_.di spatchEvent(b);this.hide();a.preventDefault();a.stopPropagation();return!0}retur n cvox.ContextMenuWidget.superClass_.onKeyDown.call(this,a)};cvox.PlatformUtil={ };cvox.PlatformFilter={NONE:0,WINDOWS:1,MAC:2,LINUX:4,WML:7,CHROMEOS:8,ANDROID:1 6};cvox.PlatformUtil.matchesPlatform=function(a){var b=navigator.userAgent;retur n void 0==a?!0:-1!=b.indexOf("Android")?0!=(a&cvox.PlatformFilter.ANDROID):-1!=b .indexOf("Win")?0!=(a&cvox.PlatformFilter.WINDOWS):-1!=b.indexOf("Mac")?0!=(a&cv ox.PlatformFilter.MAC):-1!=b.indexOf("Linux")?0!=(a&cvox.PlatformFilter.LINUX):- 1!=b.indexOf("CrOS")?0!=(a&cvox.PlatformFilter.CHROMEOS):!1};cvox.CommandStore={ };cvox.CommandStore.categories=function(){var a={},b;for(b in cvox.CommandStore. CMD_WHITELIST){var c=cvox.CommandStore.CMD_WHITELIST[b];c.category&&(a[c.categor y]=!0)}b=[];for(var d in a)b.push(d);return b};cvox.CommandStore.messageForComma nd=function(a){return(cvox.CommandStore.CMD_WHITELIST[a]||{}).msgId};cvox.Comman dStore.categoryForCommand=function(a){return(cvox.CommandStore.CMD_WHITELIST[a]| |{}).category};
1262 cvox.CommandStore.commandsForCategory=function(a){var b=[],c;for(c in cvox.Comma ndStore.CMD_WHITELIST){var d=cvox.CommandStore.CMD_WHITELIST[c];a==d.category&&b .push(c)}return b}; 1263 cvox.CommandStore.commandsForCategory=function(a){var b=[],c;for(c in cvox.Comma ndStore.CMD_WHITELIST){var d=cvox.CommandStore.CMD_WHITELIST[c];a==d.category&&b .push(c)}return b};
1263 cvox.CommandStore.CMD_WHITELIST={toggleStickyMode:{announce:!1,msgId:"toggle_sti cky_mode",disallowOOBE:!0,category:"modifier_keys"},toggleKeyPrefix:{announce:!1 ,skipInput:!0,msgId:"prefix_key",disallowOOBE:!0,category:"modifier_keys"},passT hroughMode:{announce:!1,msgId:"pass_through_key_description",category:"modifier_ keys"},stopSpeech:{announce:!1,disallowContinuation:!0,doDefault:!0,msgId:"stop_ speech_key",category:"controlling_speech"},toggleChromeVox:{announce:!1,platform Filter:cvox.PlatformFilter.WML, 1264 cvox.CommandStore.CMD_WHITELIST={toggleStickyMode:{announce:!1,msgId:"toggle_sti cky_mode",disallowOOBE:!0,category:"modifier_keys"},toggleKeyPrefix:{announce:!1 ,skipInput:!0,msgId:"prefix_key",disallowOOBE:!0,category:"modifier_keys"},passT hroughMode:{announce:!1,msgId:"pass_through_key_description",category:"modifier_ keys"},stopSpeech:{announce:!1,disallowContinuation:!0,doDefault:!0,msgId:"stop_ speech_key",category:"controlling_speech"},toggleChromeVox:{announce:!1,platform Filter:cvox.PlatformFilter.WML,
1264 msgId:"toggle_chromevox_active",category:"controlling_speech"},decreaseTtsRate:{ announce:!1,msgId:"decrease_tts_rate",category:"controlling_speech"},increaseTts Rate:{announce:!1,msgId:"increase_tts_rate",category:"controlling_speech"},decre aseTtsPitch:{announce:!1,msgId:"decrease_tts_pitch",category:"controlling_speech "},increaseTtsPitch:{announce:!1,msgId:"increase_tts_pitch",category:"controllin g_speech"},decreaseTtsVolume:{announce:!1,msgId:"decrease_tts_volume",category:" controlling_speech"}, 1265 msgId:"toggle_chromevox_active",category:"controlling_speech"},decreaseTtsRate:{ announce:!1,msgId:"decrease_tts_rate",category:"controlling_speech"},increaseTts Rate:{announce:!1,msgId:"increase_tts_rate",category:"controlling_speech"},decre aseTtsPitch:{announce:!1,msgId:"decrease_tts_pitch",category:"controlling_speech "},increaseTtsPitch:{announce:!1,msgId:"increase_tts_pitch",category:"controllin g_speech"},decreaseTtsVolume:{announce:!1,msgId:"decrease_tts_volume",category:" controlling_speech"},
1265 increaseTtsVolume:{announce:!1,msgId:"increase_tts_volume",category:"controlling _speech"},cyclePunctuationEcho:{announce:!1,msgId:"cycle_punctuation_echo",categ ory:"controlling_speech"},cycleTypingEcho:{announce:!1,msgId:"cycle_typing_echo" ,category:"controlling_speech"},toggleEarcons:{announce:!0,msgId:"toggle_earcons ",category:"controlling_speech"},handleTab:{allowEvents:!0,msgId:"handle_tab_nex t",disallowContinuation:!0,category:"navigation"},handleTabPrev:{allowEvents:!0, msgId:"handle_tab_prev", 1266 increaseTtsVolume:{announce:!1,msgId:"increase_tts_volume",category:"controlling _speech"},cyclePunctuationEcho:{announce:!1,msgId:"cycle_punctuation_echo",categ ory:"controlling_speech"},cycleTypingEcho:{announce:!1,msgId:"cycle_typing_echo" ,category:"controlling_speech"},toggleEarcons:{announce:!0,msgId:"toggle_earcons ",category:"controlling_speech"},handleTab:{allowEvents:!0,msgId:"handle_tab_nex t",disallowContinuation:!0,category:"navigation"},handleTabPrev:{allowEvents:!0, msgId:"handle_tab_prev",
1266 disallowContinuation:!0,category:"navigation"},forward:{forward:!0,announce:!0,m sgId:"forward",category:"navigation"},backward:{backward:!0,announce:!0,msgId:"b ackward",category:"navigation"},right:{forward:!0,announce:!0,msgId:"right",cate gory:"navigation"},left:{backward:!0,announce:!0,msgId:"left",category:"navigati on"},previousGranularity:{announce:!0,msgId:"previous_granularity",category:"nav igation"},nextGranularity:{announce:!0,msgId:"next_granularity",category:"naviga tion"},previousCharacter:{backward:!0, 1267 disallowContinuation:!0,category:"navigation"},forward:{forward:!0,announce:!0,m sgId:"forward",category:"navigation"},backward:{backward:!0,announce:!0,msgId:"b ackward",category:"navigation"},right:{forward:!0,announce:!0,msgId:"right",cate gory:"navigation"},left:{backward:!0,announce:!0,msgId:"left",category:"navigati on"},previousGranularity:{announce:!0,msgId:"previous_granularity",category:"nav igation"},nextGranularity:{announce:!0,msgId:"next_granularity",category:"naviga tion"},previousCharacter:{backward:!0,
1267 announce:!0,msgId:"previous_character",skipInput:!0,category:"navigation"},nextC haracter:{forward:!0,announce:!0,msgId:"next_character",skipInput:!0,category:"n avigation"},previousWord:{backward:!0,announce:!0,msgId:"previous_word",skipInpu t:!0,category:"navigation"},nextWord:{forward:!0,announce:!0,msgId:"next_word",s kipInput:!0,category:"navigation"},previousLine:{backward:!0,announce:!0,msgId:" previous_line",category:"navigation"},nextLine:{forward:!0,announce:!0,msgId:"ne xt_line",category:"navigation"}, 1268 announce:!0,msgId:"previous_character",skipInput:!0,category:"navigation"},nextC haracter:{forward:!0,announce:!0,msgId:"next_character",skipInput:!0,category:"n avigation"},previousWord:{backward:!0,announce:!0,msgId:"previous_word",skipInpu t:!0,category:"navigation"},nextWord:{forward:!0,announce:!0,msgId:"next_word",s kipInput:!0,category:"navigation"},previousLine:{backward:!0,announce:!0,msgId:" previous_line",category:"navigation"},nextLine:{forward:!0,announce:!0,msgId:"ne xt_line",category:"navigation"},
1268 previousSentence:{backward:!0,announce:!0,msgId:"previous_sentence",skipInput:!0 ,category:"navigation"},nextSentence:{forward:!0,announce:!0,msgId:"next_sentenc e",skipInput:!0,category:"navigation"},previousObject:{backward:!0,announce:!0,m sgId:"previous_object",skipInput:!0,category:"navigation"},nextObject:{forward:! 0,announce:!0,msgId:"next_object",skipInput:!0,category:"navigation"},previousGr oup:{backward:!0,announce:!0,msgId:"previous_group",skipInput:!0,category:"navig ation"},nextGroup:{forward:!0, 1269 previousSentence:{backward:!0,announce:!0,msgId:"previous_sentence",skipInput:!0 ,category:"navigation"},nextSentence:{forward:!0,announce:!0,msgId:"next_sentenc e",skipInput:!0,category:"navigation"},previousObject:{backward:!0,announce:!0,m sgId:"previous_object",skipInput:!0,category:"navigation"},nextObject:{forward:! 0,announce:!0,msgId:"next_object",skipInput:!0,category:"navigation"},previousGr oup:{backward:!0,announce:!0,msgId:"previous_group",skipInput:!0,category:"navig ation"},nextGroup:{forward:!0,
1269 announce:!0,msgId:"next_group",skipInput:!0,category:"navigation"},jumpToTop:{fo rward:!0,announce:!0,msgId:"jump_to_top",category:"navigation"},jumpToBottom:{ba ckward:!0,announce:!0,msgId:"jump_to_bottom",category:"navigation"},moveToStartO fLine:{forward:!0,announce:!0},moveToEndOfLine:{backward:!0,announce:!0},readFro mHere:{forward:!0,announce:!1,msgId:"read_from_here",category:"navigation"},perf ormDefaultAction:{disallowContinuation:!0,msgId:"perform_default_action",doDefau lt:!0,skipInput:!0,category:"navigation"}, 1270 announce:!0,msgId:"next_group",skipInput:!0,category:"navigation"},jumpToTop:{fo rward:!0,announce:!0,msgId:"jump_to_top",category:"navigation"},jumpToBottom:{ba ckward:!0,announce:!0,msgId:"jump_to_bottom",category:"navigation"},moveToStartO fLine:{forward:!0,announce:!0},moveToEndOfLine:{backward:!0,announce:!0},readFro mHere:{forward:!0,announce:!1,msgId:"read_from_here",category:"navigation"},perf ormDefaultAction:{disallowContinuation:!0,msgId:"perform_default_action",doDefau lt:!0,skipInput:!0,category:"navigation"},
1270 forceClickOnCurrentItem:{announce:!0,disallowContinuation:!0,allowEvents:!0,msgI d:"force_click_on_current_item",category:"navigation"},forceDoubleClickOnCurrent Item:{announce:!0,allowEvents:!0,disallowContinuation:!0},readLinkURL:{announce: !1,msgId:"read_link_url",category:"information"},readCurrentTitle:{announce:!1,m sgId:"read_current_title",category:"information"},readCurrentURL:{announce:!1,ms gId:"read_current_url",category:"information"},fullyDescribe:{announce:!1,msgId: "fully_describe",category:"information"}, 1271 forceClickOnCurrentItem:{announce:!0,disallowContinuation:!0,allowEvents:!0,msgI d:"force_click_on_current_item",category:"navigation"},forceDoubleClickOnCurrent Item:{announce:!0,allowEvents:!0,disallowContinuation:!0},readLinkURL:{announce: !1,msgId:"read_link_url",category:"information"},readCurrentTitle:{announce:!1,m sgId:"read_current_title",category:"information"},readCurrentURL:{announce:!1,ms gId:"read_current_url",category:"information"},fullyDescribe:{announce:!1,msgId: "fully_describe",category:"information"},
1271 speakTimeAndDate:{announce:!1,msgId:"speak_time_and_date",category:"information" },toggleSelection:{announce:!0,msgId:"toggle_selection",category:"information"}, toggleSearchWidget:{announce:!1,disallowContinuation:!0,msgId:"toggle_search_wid get",category:"information"},toggleKeyboardHelp:{announce:!1,disallowContinuatio n:!0,msgId:"show_power_key",category:"help_commands"},help:{announce:!1,msgId:"h elp",disallowOOBE:!0,disallowContinuation:!0,category:"help_commands"},contextMe nu:{announce:!1,disallowContinuation:!0}, 1272 speakTimeAndDate:{announce:!1,msgId:"speak_time_and_date",category:"information" },toggleSelection:{announce:!0,msgId:"toggle_selection",category:"information"}, toggleSearchWidget:{announce:!1,disallowContinuation:!0,msgId:"toggle_search_wid get",category:"information"},toggleKeyboardHelp:{announce:!1,disallowContinuatio n:!0,msgId:"show_power_key",category:"help_commands"},help:{announce:!1,msgId:"h elp",disallowOOBE:!0,disallowContinuation:!0,category:"help_commands"},contextMe nu:{announce:!1,disallowContinuation:!0},
1272 showOptionsPage:{announce:!1,disallowContinuation:!0,msgId:"show_options_page",d isallowOOBE:!0,category:"help_commands"},showKbExplorerPage:{announce:!1,disallo wContinuation:!0,msgId:"show_kb_explorer_page",disallowOOBE:!0,category:"help_co mmands"},showFormsList:{announce:!1,disallowContinuation:!0,nodeList:"formField" ,msgId:"show_forms_list",category:"overview"},showHeadingsList:{announce:!1,node List:"heading",disallowContinuation:!0,msgId:"show_headings_list",category:"over view"},showLandmarksList:{announce:!1, 1273 showOptionsPage:{announce:!1,disallowContinuation:!0,msgId:"show_options_page",d isallowOOBE:!0,category:"help_commands"},showKbExplorerPage:{announce:!1,disallo wContinuation:!0,msgId:"show_kb_explorer_page",disallowOOBE:!0,category:"help_co mmands"},showFormsList:{announce:!1,disallowContinuation:!0,nodeList:"formField" ,msgId:"show_forms_list",category:"overview"},showHeadingsList:{announce:!1,node List:"heading",disallowContinuation:!0,msgId:"show_headings_list",category:"over view"},showLandmarksList:{announce:!1,
1273 nodeList:"landmark",disallowContinuation:!0,msgId:"show_landmarks_list",category :"overview"},showLinksList:{announce:!1,nodeList:"link",disallowContinuation:!0, msgId:"show_links_list",category:"overview"},showTablesList:{announce:!1,nodeLis t:"table",disallowContinuation:!0,msgId:"show_tables_list",category:"overview"}, startHistoryRecording:{announce:!1},stopHistoryRecording:{announce:!1},enableCon soleTts:{announce:!1},toggleBrailleCaptions:{announce:!1},autorunner:{announce:! 1},nextArticle:{forward:!0, 1274 nodeList:"landmark",disallowContinuation:!0,msgId:"show_landmarks_list",category :"overview"},showLinksList:{announce:!1,nodeList:"link",disallowContinuation:!0, msgId:"show_links_list",category:"overview"},showTablesList:{announce:!1,nodeLis t:"table",disallowContinuation:!0,msgId:"show_tables_list",category:"overview"}, nextArticle:{forward:!0,findNext:"article"},nextButton:{forward:!0,findNext:"but ton",msgId:"next_button",category:"jump_commands"},nextCheckbox:{forward:!0,find Next:"checkbox",msgId:"next_checkbox",
1274 findNext:"article"},nextButton:{forward:!0,findNext:"button",msgId:"next_button" ,category:"jump_commands"},nextCheckbox:{forward:!0,findNext:"checkbox",msgId:"n ext_checkbox",category:"jump_commands"},nextComboBox:{forward:!0,findNext:"combo box",msgId:"next_combo_box",category:"jump_commands"},nextControl:{forward:!0,fi ndNext:"control"},nextEditText:{forward:!0,findNext:"editText",msgId:"next_edit_ text",category:"jump_commands"},nextFormField:{forward:!0,findNext:"formField",m sgId:"next_form_field", 1275 category:"jump_commands"},nextComboBox:{forward:!0,findNext:"combobox",msgId:"ne xt_combo_box",category:"jump_commands"},nextControl:{forward:!0,findNext:"contro l"},nextEditText:{forward:!0,findNext:"editText",msgId:"next_edit_text",category :"jump_commands"},nextFormField:{forward:!0,findNext:"formField",msgId:"next_for m_field",category:"jump_commands"},nextGraphic:{forward:!0,findNext:"graphic",ms gId:"next_graphic",category:"jump_commands"},nextHeading:{forward:!0,findNext:"h eading",msgId:"next_heading",
1275 category:"jump_commands"},nextGraphic:{forward:!0,findNext:"graphic",msgId:"next _graphic",category:"jump_commands"},nextHeading:{forward:!0,findNext:"heading",m sgId:"next_heading",category:"jump_commands"},nextHeading1:{forward:!0,findNext: "heading1",msgId:"next_heading1",category:"jump_commands"},nextHeading2:{forward :!0,findNext:"heading2",msgId:"next_heading2",category:"jump_commands"},nextHead ing3:{forward:!0,findNext:"heading3",msgId:"next_heading3",category:"jump_comman ds"},nextHeading4:{forward:!0, 1276 category:"jump_commands"},nextHeading1:{forward:!0,findNext:"heading1",msgId:"ne xt_heading1",category:"jump_commands"},nextHeading2:{forward:!0,findNext:"headin g2",msgId:"next_heading2",category:"jump_commands"},nextHeading3:{forward:!0,fin dNext:"heading3",msgId:"next_heading3",category:"jump_commands"},nextHeading4:{f orward:!0,findNext:"heading4",msgId:"next_heading4",category:"jump_commands"},ne xtHeading5:{forward:!0,findNext:"heading5",msgId:"next_heading5",category:"jump_ commands"},nextHeading6:{forward:!0,
1276 findNext:"heading4",msgId:"next_heading4",category:"jump_commands"},nextHeading5 :{forward:!0,findNext:"heading5",msgId:"next_heading5",category:"jump_commands"} ,nextHeading6:{forward:!0,findNext:"heading6",msgId:"next_heading6",category:"ju mp_commands"},nextLandmark:{forward:!0,findNext:"landmark",msgId:"next_landmark" ,category:"jump_commands"},nextLink:{forward:!0,findNext:"link",msgId:"next_link ",category:"jump_commands"},nextList:{forward:!0,findNext:"list",msgId:"next_lis t",category:"jump_commands"}, 1277 findNext:"heading6",msgId:"next_heading6",category:"jump_commands"},nextLandmark :{forward:!0,findNext:"landmark",msgId:"next_landmark",category:"jump_commands"} ,nextLink:{forward:!0,findNext:"link",msgId:"next_link",category:"jump_commands" },nextList:{forward:!0,findNext:"list",msgId:"next_list",category:"jump_commands "},nextListItem:{forward:!0,findNext:"listItem",msgId:"next_list_item",category: "jump_commands"},nextMath:{forward:!0,findNext:"math",msgId:"next_math",category :"jump_commands"},nextMedia:{forward:!0,
1277 nextListItem:{forward:!0,findNext:"listItem",msgId:"next_list_item",category:"ju mp_commands"},nextMath:{forward:!0,findNext:"math",msgId:"next_math",category:"j ump_commands"},nextMedia:{forward:!0,findNext:"media",msgId:"next_media",categor y:"jump_commands"},nextRadio:{forward:!0,findNext:"radio",msgId:"next_radio",cat egory:"jump_commands"},nextSection:{forward:!0,findNext:"section"},nextSlider:{f orward:!0,findNext:"slider"},nextTable:{forward:!0,findNext:"table",msgId:"next_ table",category:"jump_commands"}, 1278 findNext:"media",msgId:"next_media",category:"jump_commands"},nextRadio:{forward :!0,findNext:"radio",msgId:"next_radio",category:"jump_commands"},nextSection:{f orward:!0,findNext:"section"},nextSlider:{forward:!0,findNext:"slider"},nextTabl e:{forward:!0,findNext:"table",msgId:"next_table",category:"jump_commands"},next VisitedLink:{forward:!0,findNext:"visitedLink",msgId:"next_visited_link",categor y:"jump_commands"},previousArticle:{backward:!0,findNext:"article"},previousButt on:{backward:!0,findNext:"button",
1278 nextVisitedLink:{forward:!0,findNext:"visitedLink",msgId:"next_visited_link",cat egory:"jump_commands"},previousArticle:{backward:!0,findNext:"article"},previous Button:{backward:!0,findNext:"button",msgId:"previous_button",category:"jump_com mands"},previousCheckbox:{backward:!0,findNext:"checkbox",msgId:"previous_checkb ox",category:"jump_commands"},previousComboBox:{backward:!0,findNext:"combobox", msgId:"previous_combo_box",category:"jump_commands"},previousControl:{backward:! 0,findNext:"control"}, 1279 msgId:"previous_button",category:"jump_commands"},previousCheckbox:{backward:!0, findNext:"checkbox",msgId:"previous_checkbox",category:"jump_commands"},previous ComboBox:{backward:!0,findNext:"combobox",msgId:"previous_combo_box",category:"j ump_commands"},previousControl:{backward:!0,findNext:"control"},previousEditText :{backward:!0,findNext:"editText",msgId:"previous_edit_text",category:"jump_comm ands"},previousFormField:{backward:!0,findNext:"formField",msgId:"previous_form_ field",category:"jump_commands"},
1279 previousEditText:{backward:!0,findNext:"editText",msgId:"previous_edit_text",cat egory:"jump_commands"},previousFormField:{backward:!0,findNext:"formField",msgId :"previous_form_field",category:"jump_commands"},previousGraphic:{backward:!0,fi ndNext:"graphic",msgId:"previous_graphic",category:"jump_commands"},previousHead ing:{backward:!0,findNext:"heading",msgId:"previous_heading",category:"jump_comm ands"},previousHeading1:{backward:!0,findNext:"heading1",msgId:"previous_heading 1",category:"jump_commands"}, 1280 previousGraphic:{backward:!0,findNext:"graphic",msgId:"previous_graphic",categor y:"jump_commands"},previousHeading:{backward:!0,findNext:"heading",msgId:"previo us_heading",category:"jump_commands"},previousHeading1:{backward:!0,findNext:"he ading1",msgId:"previous_heading1",category:"jump_commands"},previousHeading2:{ba ckward:!0,findNext:"heading2",msgId:"previous_heading2",category:"jump_commands" },previousHeading3:{backward:!0,findNext:"heading3",msgId:"previous_heading3",ca tegory:"jump_commands"},
1280 previousHeading2:{backward:!0,findNext:"heading2",msgId:"previous_heading2",cate gory:"jump_commands"},previousHeading3:{backward:!0,findNext:"heading3",msgId:"p revious_heading3",category:"jump_commands"},previousHeading4:{backward:!0,findNe xt:"heading4",msgId:"previous_heading4",category:"jump_commands"},previousHeadin g5:{backward:!0,findNext:"heading5",msgId:"previous_heading5",category:"jump_com mands"},previousHeading6:{backward:!0,findNext:"heading6",msgId:"previous_headin g6",category:"jump_commands"}, 1281 previousHeading4:{backward:!0,findNext:"heading4",msgId:"previous_heading4",cate gory:"jump_commands"},previousHeading5:{backward:!0,findNext:"heading5",msgId:"p revious_heading5",category:"jump_commands"},previousHeading6:{backward:!0,findNe xt:"heading6",msgId:"previous_heading6",category:"jump_commands"},previousLandma rk:{backward:!0,findNext:"landmark",msgId:"previous_landmark",category:"jump_com mands"},previousLink:{backward:!0,findNext:"link",msgId:"previous_link",category :"jump_commands"},previousList:{backward:!0,
1281 previousLandmark:{backward:!0,findNext:"landmark",msgId:"previous_landmark",cate gory:"jump_commands"},previousLink:{backward:!0,findNext:"link",msgId:"previous_ link",category:"jump_commands"},previousList:{backward:!0,findNext:"list",msgId: "previous_list",category:"jump_commands"},previousListItem:{backward:!0,findNext :"listItem",msgId:"previous_list_item",category:"jump_commands"},previousMath:{b ackward:!0,findNext:"math",msgId:"previous_math",category:"jump_commands"},previ ousMedia:{backward:!0, 1282 findNext:"list",msgId:"previous_list",category:"jump_commands"},previousListItem :{backward:!0,findNext:"listItem",msgId:"previous_list_item",category:"jump_comm ands"},previousMath:{backward:!0,findNext:"math",msgId:"previous_math",category: "jump_commands"},previousMedia:{backward:!0,findNext:"media",msgId:"previous_med ia",category:"jump_commands"},previousRadio:{backward:!0,findNext:"radio",msgId: "previous_radio",category:"jump_commands"},previousSection:{backward:!0,findNext :"section"},previousSlider:{backward:!0,
1282 findNext:"media",msgId:"previous_media",category:"jump_commands"},previousRadio: {backward:!0,findNext:"radio",msgId:"previous_radio",category:"jump_commands"},p reviousSection:{backward:!0,findNext:"section"},previousSlider:{backward:!0,find Next:"slider"},previousTable:{backward:!0,findNext:"table",msgId:"previous_table ",category:"jump_commands"},previousVisitedLink:{backward:!0,findNext:"visitedLi nk",msgId:"previous_visited_link",category:"jump_commands"},announceHeaders:{ann ounce:!1,msgId:"announce_headers", 1283 findNext:"slider"},previousTable:{backward:!0,findNext:"table",msgId:"previous_t able",category:"jump_commands"},previousVisitedLink:{backward:!0,findNext:"visit edLink",msgId:"previous_visited_link",category:"jump_commands"},announceHeaders: {announce:!1,msgId:"announce_headers",category:"tables"},speakTableLocation:{ann ounce:!1,msgId:"speak_table_location",category:"tables"},goToFirstCell:{announce :!0,msgId:"skip_to_beginning",category:"tables"},goToLastCell:{announce:!0,msgId :"skip_to_end",category:"tables"},
1283 category:"tables"},speakTableLocation:{announce:!1,msgId:"speak_table_location", category:"tables"},goToFirstCell:{announce:!0,msgId:"skip_to_beginning",category :"tables"},goToLastCell:{announce:!0,msgId:"skip_to_end",category:"tables"},goTo RowFirstCell:{announce:!0,msgId:"skip_to_row_beginning",category:"tables"},goToR owLastCell:{announce:!0,msgId:"skip_to_row_end",category:"tables"},goToColFirstC ell:{announce:!0,msgId:"skip_to_col_beginning",category:"tables"},goToColLastCel l:{announce:!0,msgId:"skip_to_col_end", 1284 goToRowFirstCell:{announce:!0,msgId:"skip_to_row_beginning",category:"tables"},g oToRowLastCell:{announce:!0,msgId:"skip_to_row_end",category:"tables"},goToColFi rstCell:{announce:!0,msgId:"skip_to_col_beginning",category:"tables"},goToColLas tCell:{announce:!0,msgId:"skip_to_col_end",category:"tables"},previousRow:{backw ard:!0,announce:!0,skipInput:!0},previousCol:{backward:!0,announce:!0,skipInput: !0},nextRow:{forward:!0,announce:!0,skipInput:!0},nextCol:{forward:!0,announce:! 0,skipInput:!0},enterShifter:{announce:!0,
1284 category:"tables"},previousRow:{backward:!0,announce:!0,skipInput:!0},previousCo l:{backward:!0,announce:!0,skipInput:!0},nextRow:{forward:!0,announce:!0,skipInp ut:!0},nextCol:{forward:!0,announce:!0,skipInput:!0},enterShifter:{announce:!0,m sgId:"enter_content",category:"navigation"},exitShifter:{announce:!0,msgId:"exit _content",category:"navigation"},exitShifterContent:{announce:!0},openLongDesc:{ announce:!1,msgId:"open_long_desc",category:"information"},pauseAllMedia:{announ ce:!1,msgId:"pause_all_media", 1285 msgId:"enter_content",category:"navigation"},exitShifter:{announce:!0,msgId:"exi t_content",category:"navigation"},exitShifterContent:{announce:!0},openLongDesc: {announce:!1,msgId:"open_long_desc",category:"information"},pauseAllMedia:{annou nce:!1,msgId:"pause_all_media",category:"information"},toggleSemantics:{announce :!1,msgId:"toggle_semantics",category:"information"},routing:{announce:!1,allowE vents:!0,msgId:"braille_routing",category:"braille"},pan_left:{backward:!0,annou nce:!0,msgId:"braille_pan_left",
1285 category:"information"},toggleSemantics:{announce:!1,msgId:"toggle_semantics",ca tegory:"information"},routing:{announce:!1,allowEvents:!0,msgId:"braille_routing ",category:"braille"},pan_left:{backward:!0,announce:!0,msgId:"braille_pan_left" ,category:"braille"},pan_right:{forward:!0,announce:!0,msgId:"braille_pan_right" ,category:"braille"},line_up:{backward:!0,announce:!0,msgId:"braille_line_up",ca tegory:"braille"},line_down:{forward:!0,announce:!0,msgId:"braille_line_down",ca tegory:"braille"},top:{forward:!0, 1286 category:"braille"},pan_right:{forward:!0,announce:!0,msgId:"braille_pan_right", category:"braille"},line_up:{backward:!0,announce:!0,msgId:"braille_line_up",cat egory:"braille"},line_down:{forward:!0,announce:!0,msgId:"braille_line_down",cat egory:"braille"},top:{forward:!0,announce:!0,msgId:"braille_top",category:"brail le"},bottom:{backward:!0,announce:!0,msgId:"braille_bottom",category:"braille"}, enableConsoleTts:{announce:!1,msgId:"enable_tts_log",category:"developer"},toggl eBrailleCaptions:{announce:!1,
1286 announce:!0,msgId:"braille_top",category:"braille"},bottom:{backward:!0,announce :!0,msgId:"braille_bottom",category:"braille"},debug:{announce:!1},nop:{announce :!1}}; 1287 msgId:"braille_captions",category:"developer"},startHistoryRecording:{announce:! 1},stopHistoryRecording:{announce:!1},autorunner:{announce:!1},debug:{announce:! 1},nop:{announce:!1}};
1287 cvox.CommandStore.NODE_INFO_MAP={checkbox:{predicate:"checkboxPredicate",forward Error:"no_next_checkbox",backwardError:"no_previous_checkbox",typeMsg:"aria_role _checkbox"},radio:{predicate:"radioPredicate",forwardError:"no_next_radio_button ",backwardError:"no_previous_radio_button",typeMsg:"aria_role_radio"},slider:{pr edicate:"sliderPredicate",forwardError:"no_next_slider",backwardError:"no_previo us_slider",typeMsg:"aria_role_slider"},graphic:{predicate:"graphicPredicate",for wardError:"no_next_graphic", 1288 cvox.CommandStore.NODE_INFO_MAP={checkbox:{predicate:"checkboxPredicate",forward Error:"no_next_checkbox",backwardError:"no_previous_checkbox",typeMsg:"aria_role _checkbox"},radio:{predicate:"radioPredicate",forwardError:"no_next_radio_button ",backwardError:"no_previous_radio_button",typeMsg:"aria_role_radio"},slider:{pr edicate:"sliderPredicate",forwardError:"no_next_slider",backwardError:"no_previo us_slider",typeMsg:"aria_role_slider"},graphic:{predicate:"graphicPredicate",for wardError:"no_next_graphic",
1288 backwardError:"no_previous_graphic",typeMsg:"UNUSED"},article:{predicate:"articl ePredicate",forwardError:"no_next_ARTICLE",backwardError:"no_previous_ARTICLE",t ypeMsg:"TAG_ARTICLE"},button:{predicate:"buttonPredicate",forwardError:"no_next_ button",backwardError:"no_previous_button",typeMsg:"aria_role_button"},combobox: {predicate:"comboBoxPredicate",forwardError:"no_next_combo_box",backwardError:"n o_previous_combo_box",typeMsg:"aria_role_combobox"},editText:{predicate:"editTex tPredicate",forwardError:"no_next_edit_text", 1289 backwardError:"no_previous_graphic",typeMsg:"UNUSED"},article:{predicate:"articl ePredicate",forwardError:"no_next_ARTICLE",backwardError:"no_previous_ARTICLE",t ypeMsg:"TAG_ARTICLE"},button:{predicate:"buttonPredicate",forwardError:"no_next_ button",backwardError:"no_previous_button",typeMsg:"aria_role_button"},combobox: {predicate:"comboBoxPredicate",forwardError:"no_next_combo_box",backwardError:"n o_previous_combo_box",typeMsg:"aria_role_combobox"},editText:{predicate:"editTex tPredicate",forwardError:"no_next_edit_text",
1289 backwardError:"no_previous_edit_text",typeMsg:"input_type_text"},heading:{predic ate:"headingPredicate",forwardError:"no_next_heading",backwardError:"no_previous _heading",typeMsg:"aria_role_heading"},heading1:{predicate:"heading1Predicate",f orwardError:"no_next_heading_1",backwardError:"no_previous_heading_1"},heading2: {predicate:"heading2Predicate",forwardError:"no_next_heading_2",backwardError:"n o_previous_heading_2"},heading3:{predicate:"heading3Predicate",forwardError:"no_ next_heading_3",backwardError:"no_previous_heading_3"}, 1290 backwardError:"no_previous_edit_text",typeMsg:"input_type_text"},heading:{predic ate:"headingPredicate",forwardError:"no_next_heading",backwardError:"no_previous _heading",typeMsg:"aria_role_heading"},heading1:{predicate:"heading1Predicate",f orwardError:"no_next_heading_1",backwardError:"no_previous_heading_1"},heading2: {predicate:"heading2Predicate",forwardError:"no_next_heading_2",backwardError:"n o_previous_heading_2"},heading3:{predicate:"heading3Predicate",forwardError:"no_ next_heading_3",backwardError:"no_previous_heading_3"},
1290 heading4:{predicate:"heading4Predicate",forwardError:"no_next_heading_4",backwar dError:"no_previous_heading_4"},heading5:{predicate:"heading5Predicate",forwardE rror:"no_next_heading_5",backwardError:"no_previous_heading_5"},heading6:{predic ate:"heading6Predicate",forwardError:"no_next_heading_6",backwardError:"no_previ ous_heading_6"},link:{predicate:"linkPredicate",forwardError:"no_next_link",back wardError:"no_previous_link",typeMsg:"aria_role_link"},table:{predicate:"tablePr edicate",forwardError:"no_next_table", 1291 heading4:{predicate:"heading4Predicate",forwardError:"no_next_heading_4",backwar dError:"no_previous_heading_4"},heading5:{predicate:"heading5Predicate",forwardE rror:"no_next_heading_5",backwardError:"no_previous_heading_5"},heading6:{predic ate:"heading6Predicate",forwardError:"no_next_heading_6",backwardError:"no_previ ous_heading_6"},link:{predicate:"linkPredicate",forwardError:"no_next_link",back wardError:"no_previous_link",typeMsg:"aria_role_link"},table:{predicate:"tablePr edicate",forwardError:"no_next_table",
1291 backwardError:"no_previous_table",typeMsg:"table_strategy"},visitedLink:{predica te:"visitedLinkPredicate",forwardError:"no_next_visited_link",backwardError:"no_ previous_visited_link",typeMsg:"tag_link"},list:{predicate:"listPredicate",forwa rdError:"no_next_list",backwardError:"no_previous_list",typeMsg:"aria_role_list" },listItem:{predicate:"listItemPredicate",forwardError:"no_next_list_item",backw ardError:"no_previous_list_item",typeMsg:"aria_role_listitem"},formField:{predic ate:"formFieldPredicate", 1292 backwardError:"no_previous_table",typeMsg:"table_strategy"},visitedLink:{predica te:"visitedLinkPredicate",forwardError:"no_next_visited_link",backwardError:"no_ previous_visited_link",typeMsg:"tag_link"},list:{predicate:"listPredicate",forwa rdError:"no_next_list",backwardError:"no_previous_list",typeMsg:"aria_role_list" },listItem:{predicate:"listItemPredicate",forwardError:"no_next_list_item",backw ardError:"no_previous_list_item",typeMsg:"aria_role_listitem"},formField:{predic ate:"formFieldPredicate",
1292 forwardError:"no_next_form_field",backwardError:"no_previous_form_field",typeMsg :"aria_role_form"},landmark:{predicate:"landmarkPredicate",forwardError:"no_next _landmark",backwardError:"no_previous_landmark",typeMsg:"role_landmark"},math:{p redicate:"mathPredicate",forwardError:"no_next_math",backwardError:"no_previous_ math",typeMsg:"math_expr"},media:{predicate:"mediaPredicate",forwardError:"no_ne xt_media_widget",backwardError:"no_previous_media_widget"},section:{predicate:"s ectionPredicate",forwardError:"no_next_section", 1293 forwardError:"no_next_form_field",backwardError:"no_previous_form_field",typeMsg :"aria_role_form"},landmark:{predicate:"landmarkPredicate",forwardError:"no_next _landmark",backwardError:"no_previous_landmark",typeMsg:"role_landmark"},math:{p redicate:"mathPredicate",forwardError:"no_next_math",backwardError:"no_previous_ math",typeMsg:"math_expr"},media:{predicate:"mediaPredicate",forwardError:"no_ne xt_media_widget",backwardError:"no_previous_media_widget"},section:{predicate:"s ectionPredicate",forwardError:"no_next_section",
1293 backwardError:"no_previous_section"},control:{predicate:"controlPredicate",forwa rdError:"no_next_control",backwardError:"no_previous_control"}};cvox.KeySequence =function(a,b,c,d){this.doubleTap=!!d;this.cvoxModifier=void 0==b?this.isCVoxMod ifierActive(a):b;this.stickyMode=!!a.stickyMode;this.prefixKey=!!a.keyPrefix;thi s.skipStripping=!!c;if(this.stickyMode&&this.prefixKey)throw"Prefix key and stic ky mode cannot both be enabled: "+a;a=this.resolveChromeOSSpecialKeys_(a);this.k eys={ctrlKey:[],searchKeyHeld:[],altKey:[],altGraphKey:[],shiftKey:[],metaKey:[] ,keyCode:[]};this.extractKey_(a)}; 1294 backwardError:"no_previous_section"},control:{predicate:"controlPredicate",forwa rdError:"no_next_control",backwardError:"no_previous_control"}};cvox.KeySequence =function(a,b,c,d){this.doubleTap=!!d;this.cvoxModifier=void 0==b?this.isCVoxMod ifierActive(a):b;this.stickyMode=!!a.stickyMode;this.prefixKey=!!a.keyPrefix;thi s.skipStripping=!!c;if(this.stickyMode&&this.prefixKey)throw"Prefix key and stic ky mode cannot both be enabled: "+a;a=this.resolveChromeOSSpecialKeys_(a);this.k eys={ctrlKey:[],searchKeyHeld:[],altKey:[],altGraphKey:[],shiftKey:[],metaKey:[] ,keyCode:[]};this.extractKey_(a)};
1294 cvox.KeySequence.KEY_PRESS_CODE={39:222,44:188,45:189,46:190,47:191,59:186,91:21 9,92:220,93:221};cvox.KeySequence.doubleTapCache=[];cvox.KeySequence.prototype.a ddKeyEvent=function(a){if(1<this.keys.keyCode.length)return!1;this.extractKey_(a );return!0};cvox.KeySequence.prototype.equals=function(a){if(!this.checkKeyEqual ity_(a)||this.doubleTap!=a.doubleTap)return!1;if(this.cvoxModifier===a.cvoxModif ier)return!0;a=this.cvoxModifier?a:this;return a.stickyMode||a.prefixKey}; 1295 cvox.KeySequence.KEY_PRESS_CODE={39:222,44:188,45:189,46:190,47:191,59:186,91:21 9,92:220,93:221};cvox.KeySequence.doubleTapCache=[];cvox.KeySequence.prototype.a ddKeyEvent=function(a){if(1<this.keys.keyCode.length)return!1;this.extractKey_(a );return!0};cvox.KeySequence.prototype.equals=function(a){if(!this.checkKeyEqual ity_(a)||this.doubleTap!=a.doubleTap)return!1;if(this.cvoxModifier===a.cvoxModif ier)return!0;a=this.cvoxModifier?a:this;return a.stickyMode||a.prefixKey};
1295 cvox.KeySequence.prototype.extractKey_=function(a){for(var b in this.keys)if("ke yCode"==b){var c;"keypress"==a.type&&97<=a[b]&&122>=a[b]?c=a[b]-32:"keypress"==a .type&&(c=cvox.KeySequence.KEY_PRESS_CODE[a[b]]);this.keys[b].push(c||a[b])}else this.isKeyModifierActive(a,b)?this.keys[b].push(!0):this.keys[b].push(!1);this. cvoxModifier&&this.rationalizeKeys_()}; 1296 cvox.KeySequence.prototype.extractKey_=function(a){for(var b in this.keys)if("ke yCode"==b){var c;"keypress"==a.type&&97<=a[b]&&122>=a[b]?c=a[b]-32:"keypress"==a .type&&(c=cvox.KeySequence.KEY_PRESS_CODE[a[b]]);this.keys[b].push(c||a[b])}else this.isKeyModifierActive(a,b)?this.keys[b].push(!0):this.keys[b].push(!1);this. cvoxModifier&&this.rationalizeKeys_()};
1296 cvox.KeySequence.prototype.rationalizeKeys_=function(){if(!this.skipStripping){v ar a=cvox.ChromeVox.modKeyStr.split(/\+/g),b=this.keys.keyCode.length-1;-1!=a.in dexOf("Ctrl")&&(this.keys.ctrlKey[b]=!1);-1!=a.indexOf("Alt")&&(this.keys.altKey [b]=!1);-1!=a.indexOf("Shift")&&(this.keys.shiftKey[b]=!1);var c=this.getMetaKey Name_();if(-1!=a.indexOf(c))if("Search"==c)this.keys.searchKeyHeld[b]=!1;else if ("Cmd"==c||"Win"==c)this.keys.metaKey[b]=!1}}; 1297 cvox.KeySequence.prototype.rationalizeKeys_=function(){if(!this.skipStripping){v ar a=cvox.ChromeVox.modKeyStr.split(/\+/g),b=this.keys.keyCode.length-1;-1!=a.in dexOf("Ctrl")&&(this.keys.ctrlKey[b]=!1);-1!=a.indexOf("Alt")&&(this.keys.altKey [b]=!1);-1!=a.indexOf("Shift")&&(this.keys.shiftKey[b]=!1);var c=this.getMetaKey Name_();if(-1!=a.indexOf(c))if("Search"==c)this.keys.searchKeyHeld[b]=!1;else if ("Cmd"==c||"Win"==c)this.keys.metaKey[b]=!1}};
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
1456 5))}; 1457 5))};
1457 cvox.ChromeVoxEventWatcher.addEventListeners_=function(a){cvox.ChromeVoxEventWat cher.addEventListener_(a,"keydown",cvox.ChromeVoxEventWatcher.keyDownEventWatche r,!0);if(cvox.ChromeVox.isActive&&!cvox.ChromeVox.entireDocumentIsHidden)if(cvox .ChromeVoxEventWatcher.addEventListener_(a,"keypress",cvox.ChromeVoxEventWatcher .keyPressEventWatcher,!0),cvox.ChromeVoxEventWatcher.addEventListener_(a,"keyup" ,cvox.ChromeVoxEventWatcher.keyUpEventWatcher,!0),cvox.ChromeVoxEventWatcher.add EventListener_(a,cvox.UserEventDetail.Category.JUMP, 1458 cvox.ChromeVoxEventWatcher.addEventListeners_=function(a){cvox.ChromeVoxEventWat cher.addEventListener_(a,"keydown",cvox.ChromeVoxEventWatcher.keyDownEventWatche r,!0);if(cvox.ChromeVox.isActive&&!cvox.ChromeVox.entireDocumentIsHidden)if(cvox .ChromeVoxEventWatcher.addEventListener_(a,"keypress",cvox.ChromeVoxEventWatcher .keyPressEventWatcher,!0),cvox.ChromeVoxEventWatcher.addEventListener_(a,"keyup" ,cvox.ChromeVoxEventWatcher.keyUpEventWatcher,!0),cvox.ChromeVoxEventWatcher.add EventListener_(a,cvox.UserEventDetail.Category.JUMP,
1458 cvox.ChromeVoxUserCommands.handleChromeVoxUserEvent,!1),cvox.ChromeVoxEventWatch er.addEventListener_(a,"focus",cvox.ChromeVoxEventWatcher.focusEventWatcher,!0), cvox.ChromeVoxEventWatcher.addEventListener_(a,"blur",cvox.ChromeVoxEventWatcher .blurEventWatcher,!0),cvox.ChromeVoxEventWatcher.addEventListener_(a,"change",cv ox.ChromeVoxEventWatcher.changeEventWatcher,!0),cvox.ChromeVoxEventWatcher.addEv entListener_(a,"copy",cvox.ChromeVoxEventWatcher.clipboardEventWatcher,!0),cvox. ChromeVoxEventWatcher.addEventListener_(a, 1459 cvox.ChromeVoxUserCommands.handleChromeVoxUserEvent,!1),cvox.ChromeVoxEventWatch er.addEventListener_(a,"focus",cvox.ChromeVoxEventWatcher.focusEventWatcher,!0), cvox.ChromeVoxEventWatcher.addEventListener_(a,"blur",cvox.ChromeVoxEventWatcher .blurEventWatcher,!0),cvox.ChromeVoxEventWatcher.addEventListener_(a,"change",cv ox.ChromeVoxEventWatcher.changeEventWatcher,!0),cvox.ChromeVoxEventWatcher.addEv entListener_(a,"copy",cvox.ChromeVoxEventWatcher.clipboardEventWatcher,!0),cvox. ChromeVoxEventWatcher.addEventListener_(a,
1459 "cut",cvox.ChromeVoxEventWatcher.clipboardEventWatcher,!0),cvox.ChromeVoxEventWa tcher.addEventListener_(a,"paste",cvox.ChromeVoxEventWatcher.clipboardEventWatch er,!0),cvox.ChromeVoxEventWatcher.addEventListener_(a,"select",cvox.ChromeVoxEve ntWatcher.selectEventWatcher,!0),cvox.ChromeVoxEventWatcher.addEventListener_(a, "webkitvisibilitychange",cvox.ChromeVoxEventWatcher.visibilityChangeWatcher,!0), cvox.ChromeVoxEventWatcher.events_=[],cvox.ChromeVoxEventWatcher.queueProcessing Scheduled_=!1,cvox.ChromeVoxEventWatcher.addEventListener_(a, 1460 "cut",cvox.ChromeVoxEventWatcher.clipboardEventWatcher,!0),cvox.ChromeVoxEventWa tcher.addEventListener_(a,"paste",cvox.ChromeVoxEventWatcher.clipboardEventWatch er,!0),cvox.ChromeVoxEventWatcher.addEventListener_(a,"select",cvox.ChromeVoxEve ntWatcher.selectEventWatcher,!0),cvox.ChromeVoxEventWatcher.addEventListener_(a, "webkitvisibilitychange",cvox.ChromeVoxEventWatcher.visibilityChangeWatcher,!0), cvox.ChromeVoxEventWatcher.events_=[],cvox.ChromeVoxEventWatcher.queueProcessing Scheduled_=!1,cvox.ChromeVoxEventWatcher.addEventListener_(a,
1460 "mouseover",cvox.ChromeVoxEventWatcher.mouseOverEventWatcher,!0),cvox.ChromeVoxE ventWatcher.addEventListener_(a,"mouseout",cvox.ChromeVoxEventWatcher.mouseOutEv entWatcher,!0),cvox.ChromeVoxEventWatcher.addEventListener_(a,"click",cvox.Chrom eVoxEventWatcher.mouseClickEventWatcher,!0),"undefined"!=typeof WebKitMutationOb server){cvox.ChromeVoxEventWatcher.mutationObserver_=new WebKitMutationObserver( cvox.ChromeVoxEventWatcher.mutationHandler);var b=null;a.documentElement?b=a.doc umentElement:a.document&& 1461 "mouseover",cvox.ChromeVoxEventWatcher.mouseOverEventWatcher,!0),cvox.ChromeVoxE ventWatcher.addEventListener_(a,"mouseout",cvox.ChromeVoxEventWatcher.mouseOutEv entWatcher,!0),cvox.ChromeVoxEventWatcher.addEventListener_(a,"click",cvox.Chrom eVoxEventWatcher.mouseClickEventWatcher,!0),"undefined"!=typeof WebKitMutationOb server){cvox.ChromeVoxEventWatcher.mutationObserver_=new WebKitMutationObserver( cvox.ChromeVoxEventWatcher.mutationHandler);var b=null;a.documentElement?b=a.doc umentElement:a.document&&
1461 a.document.documentElement&&(b=a.document.documentElement);b&&cvox.ChromeVoxEven tWatcher.mutationObserver_.observe(b,{childList:!0,attributes:!0,characterData:! 0,subtree:!0,attributeOldValue:!0,characterDataOldValue:!0})}else cvox.ChromeVox EventWatcher.addEventListener_(a,"DOMSubtreeModified",cvox.ChromeVoxEventWatcher .subtreeModifiedEventWatcher,!0)}; 1462 a.document.documentElement&&(b=a.document.documentElement);b&&cvox.ChromeVoxEven tWatcher.mutationObserver_.observe(b,{childList:!0,attributes:!0,characterData:! 0,subtree:!0,attributeOldValue:!0,characterDataOldValue:!0})}else cvox.ChromeVox EventWatcher.addEventListener_(a,"DOMSubtreeModified",cvox.ChromeVoxEventWatcher .subtreeModifiedEventWatcher,!0)};
1462 cvox.ChromeVoxEventWatcher.cleanup=function(a){for(var b=0;b<cvox.ChromeVoxEvent Watcher.listeners_.length;b++){var c=cvox.ChromeVoxEventWatcher.listeners_[b];a. removeEventListener(c.type,c.listener,c.useCapture)}cvox.ChromeVoxEventWatcher.l isteners_=[];cvox.ChromeVoxEventWatcher.currentDateHandler&&cvox.ChromeVoxEventW atcher.currentDateHandler.shutdown();cvox.ChromeVoxEventWatcher.currentTimeHandl er&&cvox.ChromeVoxEventWatcher.currentTimeHandler.shutdown();cvox.ChromeVoxEvent Watcher.currentMediaHandler&& 1463 cvox.ChromeVoxEventWatcher.cleanup=function(a){for(var b=0;b<cvox.ChromeVoxEvent Watcher.listeners_.length;b++){var c=cvox.ChromeVoxEventWatcher.listeners_[b];a. removeEventListener(c.type,c.listener,c.useCapture)}cvox.ChromeVoxEventWatcher.l isteners_=[];cvox.ChromeVoxEventWatcher.currentDateHandler&&cvox.ChromeVoxEventW atcher.currentDateHandler.shutdown();cvox.ChromeVoxEventWatcher.currentTimeHandl er&&cvox.ChromeVoxEventWatcher.currentTimeHandler.shutdown();cvox.ChromeVoxEvent Watcher.currentMediaHandler&&
1463 cvox.ChromeVoxEventWatcher.currentMediaHandler.shutdown();cvox.ChromeVoxEventWat cher.mutationObserver_&&cvox.ChromeVoxEventWatcher.mutationObserver_.disconnect( );cvox.ChromeVoxEventWatcher.mutationObserver_=null};cvox.ChromeVoxEventWatcher. addEventListener_=function(a,b,c,d){cvox.ChromeVoxEventWatcher.listeners_.push({ type:b,listener:c,useCapture:d});a.addEventListener(b,c,d)};cvox.ChromeVoxEventW atcher.getLastFocusedNode=function(){return cvox.ChromeVoxEventWatcher.lastFocus edNode}; 1464 cvox.ChromeVoxEventWatcher.currentMediaHandler.shutdown();cvox.ChromeVoxEventWat cher.mutationObserver_&&cvox.ChromeVoxEventWatcher.mutationObserver_.disconnect( );cvox.ChromeVoxEventWatcher.mutationObserver_=null};cvox.ChromeVoxEventWatcher. addEventListener_=function(a,b,c,d){cvox.ChromeVoxEventWatcher.listeners_.push({ type:b,listener:c,useCapture:d});a.addEventListener(b,c,d)};cvox.ChromeVoxEventW atcher.getLastFocusedNode=function(){return cvox.ChromeVoxEventWatcher.lastFocus edNode};
1464 cvox.ChromeVoxEventWatcher.setLastFocusedNode_=function(a){cvox.ChromeVoxEventWa tcher.lastFocusedNode=a;cvox.ChromeVoxEventWatcher.lastFocusedNodeValue=a?cvox.D omUtil.getControlValueAndStateString(a):null}; 1465 cvox.ChromeVoxEventWatcher.setLastFocusedNode_=function(a){cvox.ChromeVoxEventWa tcher.lastFocusedNode=a;cvox.ChromeVoxEventWatcher.lastFocusedNodeValue=a?cvox.D omUtil.getControlValueAndStateString(a):null};
1465 cvox.ChromeVoxEventWatcher.mutationHandler=function(a){if(cvox.ChromeVoxEventSus pender.areEventsSuspended())return!0;cvox.ChromeVox.navigationManager.updateIndi catorIfChanged();cvox.LiveRegions.processMutations(a,function(a,c){var d=new win dow.Event("LiveRegion");d.navDescriptions=c;d.assertive=a;cvox.ChromeVoxEventWat cher.addEvent(d);return!0})}; 1466 cvox.ChromeVoxEventWatcher.mutationHandler=function(a){if(cvox.ChromeVoxEventSus pender.areEventsSuspended())return!0;cvox.ChromeVox.navigationManager.updateIndi catorIfChanged();cvox.LiveRegions.processMutations(a,function(a,c){var d=new win dow.Event("LiveRegion");d.navDescriptions=c;d.assertive=a;cvox.ChromeVoxEventWat cher.addEvent(d);return!0})};
1466 cvox.ChromeVoxEventWatcher.mouseClickEventWatcher=function(a){cvox.PlatformUtil. matchesPlatform(cvox.PlatformFilter.WML)&&!a.fromCvox&&cvox.ApiImplementation.sy ncToNode(a.target,!0);return cvox.ChromeVox.host.mustRedispatchClickEvent()&&!a. fromCvox?(cvox.ChromeVoxUserCommands.wasMouseClicked=!0,a.stopPropagation(),a.pr eventDefault(),cvox.Focuser.setFocus(cvox.ChromeVox.navigationManager.getCurrent Node()),cvox.ChromeVox.tts.speak(cvox.ChromeVox.msgs.getMsg("element_clicked"),c vox.AbstractTts.QUEUE_MODE_FLUSH, 1467 cvox.ChromeVoxEventWatcher.mouseClickEventWatcher=function(a){if(a.fromCvox)retu rn!0;if(cvox.ChromeVox.host.mustRedispatchClickEvent())return cvox.ChromeVoxUser Commands.wasMouseClicked=!0,a.stopPropagation(),a.preventDefault(),cvox.Focuser. setFocus(cvox.ChromeVox.navigationManager.getCurrentNode()),cvox.ChromeVox.tts.s peak(cvox.ChromeVox.msgs.getMsg("element_clicked"),cvox.AbstractTts.QUEUE_MODE_F LUSH,cvox.AbstractTts.PERSONALITY_ANNOTATION),a=cvox.ChromeVox.navigationManager .getCurrentNode(),cvox.DomUtil.clickElem(a,
1467 cvox.AbstractTts.PERSONALITY_ANNOTATION),a=cvox.ChromeVox.navigationManager.getC urrentNode(),cvox.DomUtil.clickElem(a,!1,!0),!1):cvox.ChromeVoxUserCommands.wasM ouseClicked=!0}; 1468 !1,!0),!1;cvox.ChromeVoxEventWatcher.addEvent(a);return cvox.ChromeVoxUserComman ds.wasMouseClicked=!0};
1468 cvox.ChromeVoxEventWatcher.mouseOverEventWatcher=function(a){if(!cvox.ChromeVoxE ventWatcher.focusFollowsMouse||cvox.DomUtil.isDescendantOfNode(cvox.ChromeVoxEve ntWatcher.announcedMouseOverNode,a.target)||a.target==cvox.ChromeVoxEventWatcher .pendingMouseOverNode)return!0;cvox.ChromeVoxEventWatcher.pendingMouseOverNode=a .target;cvox.ChromeVoxEventWatcher.mouseOverTimeoutId&&(window.clearTimeout(cvox .ChromeVoxEventWatcher.mouseOverTimeoutId),cvox.ChromeVoxEventWatcher.mouseOverT imeoutId=null);if(a.target.tagName&& 1469 cvox.ChromeVoxEventWatcher.mouseOverEventWatcher=function(a){if(!cvox.ChromeVoxE ventWatcher.focusFollowsMouse||cvox.DomUtil.isDescendantOfNode(cvox.ChromeVoxEve ntWatcher.announcedMouseOverNode,a.target)||a.target==cvox.ChromeVoxEventWatcher .pendingMouseOverNode)return!0;cvox.ChromeVoxEventWatcher.pendingMouseOverNode=a .target;cvox.ChromeVoxEventWatcher.mouseOverTimeoutId&&(window.clearTimeout(cvox .ChromeVoxEventWatcher.mouseOverTimeoutId),cvox.ChromeVoxEventWatcher.mouseOverT imeoutId=null);if(a.target.tagName&&
1469 "BODY"==a.target.tagName)return cvox.ChromeVoxEventWatcher.pendingMouseOverNode= null,cvox.ChromeVoxEventWatcher.announcedMouseOverNode=null,!0;cvox.ChromeVoxEve ntWatcher.mouseOverTimeoutId=window.setTimeout(function(){cvox.ChromeVoxEventWat cher.mouseOverTimeoutId=null;if(a.target==cvox.ChromeVoxEventWatcher.pendingMous eOverNode){cvox.ChromeVox.navigationManager.stopReading(!0);var b=a.target;cvox. Focuser.setFocus(b);cvox.ApiImplementation.syncToNode(b,!0,cvox.AbstractTts.QUEU E_MODE_FLUSH);cvox.ChromeVoxEventWatcher.announcedMouseOverNode= 1470 "BODY"==a.target.tagName)return cvox.ChromeVoxEventWatcher.pendingMouseOverNode= null,cvox.ChromeVoxEventWatcher.announcedMouseOverNode=null,!0;cvox.ChromeVoxEve ntWatcher.mouseOverTimeoutId=window.setTimeout(function(){cvox.ChromeVoxEventWat cher.mouseOverTimeoutId=null;if(a.target==cvox.ChromeVoxEventWatcher.pendingMous eOverNode){cvox.ChromeVox.navigationManager.stopReading(!0);var b=a.target;cvox. Focuser.setFocus(b);cvox.ApiImplementation.syncToNode(b,!0,cvox.AbstractTts.QUEU E_MODE_FLUSH);cvox.ChromeVoxEventWatcher.announcedMouseOverNode=
1470 b}},cvox.ChromeVoxEventWatcher.mouseoverDelayMs);return!0};cvox.ChromeVoxEventWa tcher.mouseOutEventWatcher=function(a){a.target==cvox.ChromeVoxEventWatcher.pend ingMouseOverNode&&(cvox.ChromeVoxEventWatcher.pendingMouseOverNode=null,cvox.Chr omeVoxEventWatcher.mouseOverTimeoutId&&(window.clearTimeout(cvox.ChromeVoxEventW atcher.mouseOverTimeoutId),cvox.ChromeVoxEventWatcher.mouseOverTimeoutId=null)); return!0}; 1471 b}},cvox.ChromeVoxEventWatcher.mouseoverDelayMs);return!0};cvox.ChromeVoxEventWa tcher.mouseOutEventWatcher=function(a){a.target==cvox.ChromeVoxEventWatcher.pend ingMouseOverNode&&(cvox.ChromeVoxEventWatcher.pendingMouseOverNode=null,cvox.Chr omeVoxEventWatcher.mouseOverTimeoutId&&(window.clearTimeout(cvox.ChromeVoxEventW atcher.mouseOverTimeoutId),cvox.ChromeVoxEventWatcher.mouseOverTimeoutId=null)); return!0};
1471 cvox.ChromeVoxEventWatcher.focusEventWatcher=function(a){cvox.ChromeVoxUserComma nds.removeTabDummySpan();cvox.ChromeVoxEventSuspender.areEventsSuspended()?a.tar get&&a.target.nodeType==Node.ELEMENT_NODE&&cvox.ChromeVoxEventWatcher.setLastFoc usedNode_(a.target):cvox.ChromeVoxEventWatcher.addEvent(a);return!0}; 1472 cvox.ChromeVoxEventWatcher.focusEventWatcher=function(a){cvox.ChromeVoxUserComma nds.removeTabDummySpan();cvox.ChromeVoxEventSuspender.areEventsSuspended()?a.tar get&&a.target.nodeType==Node.ELEMENT_NODE&&cvox.ChromeVoxEventWatcher.setLastFoc usedNode_(a.target):cvox.ChromeVoxEventWatcher.addEvent(a);return!0};
1472 cvox.ChromeVoxEventWatcher.focusHandler=function(a){if(a.target&&a.target.hasAtt ribute&&"true"==a.target.getAttribute("aria-hidden")&&"true"!=a.target.getAttrib ute("chromevoxignoreariahidden"))cvox.ChromeVoxEventWatcher.setLastFocusedNode_( null),cvox.ChromeVoxEventWatcher.setUpTextHandler();else if(a.target&&a.target!= window){var b=a.target,c=cvox.DomUtil.getSurroundingControl(b);if(c&&c==cvox.Chr omeVoxEventWatcher.lastFocusedNode)cvox.ChromeVoxEventWatcher.handleControlChang ed(b);else{c?cvox.ChromeVoxEventWatcher.setLastFocusedNode_(c): 1473 cvox.ChromeVoxEventWatcher.focusHandler=function(a){if(a.target&&a.target.hasAtt ribute&&"true"==a.target.getAttribute("aria-hidden")&&"true"!=a.target.getAttrib ute("chromevoxignoreariahidden"))cvox.ChromeVoxEventWatcher.setLastFocusedNode_( null),cvox.ChromeVoxEventWatcher.setUpTextHandler();else if(a.target&&a.target!= window){var b=a.target,c=cvox.DomUtil.getSurroundingControl(b);if(c&&c==cvox.Chr omeVoxEventWatcher.lastFocusedNode)cvox.ChromeVoxEventWatcher.handleControlChang ed(b);else{c?cvox.ChromeVoxEventWatcher.setLastFocusedNode_(c):
1473 cvox.ChromeVoxEventWatcher.setLastFocusedNode_(b);c=cvox.ChromeVoxEventWatcher.q ueueMode_();if(cvox.ChromeVoxEventWatcher.getInitialVisibility()||cvox.ChromeVox EventWatcher.handleDialogFocus(b))c=cvox.AbstractTts.QUEUE_MODE_QUEUE;cvox.Chrom eVox.navigationManager.clearPageSel(!0)&&(c=cvox.AbstractTts.QUEUE_MODE_QUEUE);c vox.ApiImplementation.syncToNode(b,!document.webkitHidden,c);if(a.target.constru ctor==HTMLVideoElement||a.target.constructor==HTMLAudioElement)cvox.ChromeVoxEve ntWatcher.setUpMediaHandler_(); 1474 cvox.ChromeVoxEventWatcher.setLastFocusedNode_(b);c=cvox.ChromeVoxEventWatcher.q ueueMode_();if(cvox.ChromeVoxEventWatcher.getInitialVisibility()||cvox.ChromeVox EventWatcher.handleDialogFocus(b))c=cvox.AbstractTts.QUEUE_MODE_QUEUE;cvox.Chrom eVox.navigationManager.clearPageSel(!0)&&(c=cvox.AbstractTts.QUEUE_MODE_QUEUE);c vox.ApiImplementation.syncToNode(b,!document.webkitHidden,c);if(a.target.constru ctor==HTMLVideoElement||a.target.constructor==HTMLAudioElement)cvox.ChromeVoxEve ntWatcher.setUpMediaHandler_();
1474 else{if(a.target.hasAttribute)switch(a=a.target.getAttribute("type"),a){case "ti me":cvox.ChromeVoxEventWatcher.setUpTimeHandler_();return;case "date":case "mont h":case "week":cvox.ChromeVoxEventWatcher.setUpDateHandler_();return}cvox.Chrome VoxEventWatcher.setUpTextHandler()}}}else cvox.ChromeVoxEventWatcher.setLastFocu sedNode_(null)}; 1475 else{if(a.target.hasAttribute)switch(a=a.target.getAttribute("type"),a){case "ti me":cvox.ChromeVoxEventWatcher.setUpTimeHandler_();return;case "date":case "mont h":case "week":cvox.ChromeVoxEventWatcher.setUpDateHandler_();return}cvox.Chrome VoxEventWatcher.setUpTextHandler()}}}else cvox.ChromeVoxEventWatcher.setLastFocu sedNode_(null)};
1475 cvox.ChromeVoxEventWatcher.blurEventWatcher=function(a){window.setTimeout(functi on(){document.activeElement||(cvox.ChromeVoxEventWatcher.setLastFocusedNode_(nul l),cvox.ChromeVoxEventWatcher.addEvent(a))},0);return!0}; 1476 cvox.ChromeVoxEventWatcher.blurEventWatcher=function(a){window.setTimeout(functi on(){document.activeElement||(cvox.ChromeVoxEventWatcher.setLastFocusedNode_(nul l),cvox.ChromeVoxEventWatcher.addEvent(a))},0);return!0};
1476 cvox.ChromeVoxEventWatcher.keyDownEventWatcher=function(a){if(cvox.ChromeVox.pas sThroughMode)return!0;cvox.ChromeVox.isChromeOS&&91==a.keyCode&&(cvox.ChromeVox. searchKeyHeld=!0);a.searchKeyHeld=cvox.ChromeVox.searchKeyHeld&&cvox.ChromeVox.i sActive;a.stickyMode=cvox.ChromeVox.isStickyOn&&cvox.ChromeVox.isActive;a.keyPre fix=cvox.ChromeVox.keyPrefixOn&&cvox.ChromeVox.isActive;cvox.ChromeVox.keyPrefix On=!1;cvox.ChromeVoxEventWatcher.eventToEat=null;if(!cvox.ChromeVoxKbHandler.bas icKeyDownActionsListener(a)|| 1477 cvox.ChromeVoxEventWatcher.keyDownEventWatcher=function(a){if(cvox.ChromeVox.pas sThroughMode)return!0;cvox.ChromeVox.isChromeOS&&91==a.keyCode&&(cvox.ChromeVox. searchKeyHeld=!0);a.searchKeyHeld=cvox.ChromeVox.searchKeyHeld&&cvox.ChromeVox.i sActive;a.stickyMode=cvox.ChromeVox.isStickyOn&&cvox.ChromeVox.isActive;a.keyPre fix=cvox.ChromeVox.keyPrefixOn&&cvox.ChromeVox.isActive;cvox.ChromeVox.keyPrefix On=!1;cvox.ChromeVoxEventWatcher.eventToEat=null;if(!cvox.ChromeVoxKbHandler.bas icKeyDownActionsListener(a)||
1477 cvox.ChromeVoxEventWatcher.handleControlAction(a))return a.preventDefault(),a.st opPropagation(),cvox.ChromeVoxEventWatcher.eventToEat=a,!1;cvox.ChromeVoxEventWa tcher.addEvent(a);return!0}; 1478 cvox.ChromeVoxEventWatcher.handleControlAction(a))return a.preventDefault(),a.st opPropagation(),cvox.ChromeVoxEventWatcher.eventToEat=a,!1;cvox.ChromeVoxEventWa tcher.addEvent(a);return!0};
(...skipping 16 matching lines...) Expand all
1494 !0,a.checked?cvox.ChromeVox.earcons.playEarcon(cvox.AbstractEarcons.CHECK_ON):cv ox.ChromeVox.earcons.playEarcon(cvox.AbstractEarcons.CHECK_OFF);"SELECT"==a.tagN ame&&(d=!0);if("INPUT"==a.tagName)switch(a.type){case "color":case "datetime":ca se "datetime-local":case "range":d=!0}a.hasAttribute&&a.hasAttribute("role")&&(d =!0);c&&c!=a&&document.activeElement==a?(cvox.ApiImplementation.syncToNode(a,!0, cvox.AbstractTts.QUEUE_MODE_FLUSH),d=!1):cvox.AriaUtil.getActiveDescendant(a)&&( cvox.ChromeVox.navigationManager.updateSelToArbitraryNode(cvox.AriaUtil.getActiv eDescendant(a), 1495 !0,a.checked?cvox.ChromeVox.earcons.playEarcon(cvox.AbstractEarcons.CHECK_ON):cv ox.ChromeVox.earcons.playEarcon(cvox.AbstractEarcons.CHECK_OFF);"SELECT"==a.tagN ame&&(d=!0);if("INPUT"==a.tagName)switch(a.type){case "color":case "datetime":ca se "datetime-local":case "range":d=!0}a.hasAttribute&&a.hasAttribute("role")&&(d =!0);c&&c!=a&&document.activeElement==a?(cvox.ApiImplementation.syncToNode(a,!0, cvox.AbstractTts.QUEUE_MODE_FLUSH),d=!1):cvox.AriaUtil.getActiveDescendant(a)&&( cvox.ChromeVox.navigationManager.updateSelToArbitraryNode(cvox.AriaUtil.getActiv eDescendant(a),
1495 !0),d=!0);d&&!cvox.ChromeVoxEventSuspender.areEventsSuspended()&&(cvox.ChromeVox .tts.speak(b,cvox.ChromeVoxEventWatcher.queueMode_(),null),cvox.NavBraille.fromT ext(b).write())}; 1496 !0),d=!0);d&&!cvox.ChromeVoxEventSuspender.areEventsSuspended()&&(cvox.ChromeVox .tts.speak(b,cvox.ChromeVoxEventWatcher.queueMode_(),null),cvox.NavBraille.fromT ext(b).write())};
1496 cvox.ChromeVoxEventWatcher.handleControlAction=function(a){if(!cvox.ChromeVox.is Active)return!1;var b=a.target;if("SELECT"==b.tagName&&1>=b.size&&(13==a.keyCode ||32==a.keyCode))return a.preventDefault(),a.stopPropagation(),!0;if("INPUT"==b. tagName&&"range"==b.type){var c=parseFloat(b.value),d;b.step&&0<b.step?d=b.step: b.min&&b.max?(d=b.max-b.min,d=2<d&&31>d?1:(b.max-b.min)/10):d=1;if(37==a.keyCode ||38==a.keyCode)c-=d;else if(39==a.keyCode||40==a.keyCode)c+=d;b.max&&c>b.max&&( c=b.max);b.min&&c<b.min&& 1497 cvox.ChromeVoxEventWatcher.handleControlAction=function(a){if(!cvox.ChromeVox.is Active)return!1;var b=a.target;if("SELECT"==b.tagName&&1>=b.size&&(13==a.keyCode ||32==a.keyCode))return a.preventDefault(),a.stopPropagation(),!0;if("INPUT"==b. tagName&&"range"==b.type){var c=parseFloat(b.value),d;b.step&&0<b.step?d=b.step: b.min&&b.max?(d=b.max-b.min,d=2<d&&31>d?1:(b.max-b.min)/10):d=1;if(37==a.keyCode ||38==a.keyCode)c-=d;else if(39==a.keyCode||40==a.keyCode)c+=d;b.max&&c>b.max&&( c=b.max);b.min&&c<b.min&&
1497 (c=b.min);b.value=c}return!1}; 1498 (c=b.min);b.value=c}return!1};
1498 cvox.ChromeVoxEventWatcher.handleDialogFocus=function(a){for(;a;){if(a.hasAttrib ute){var b=a.getAttribute("role");if("dialog"==b||"alertdialog"==b)break}a=a.par entElement}if(a==cvox.ChromeVox.navigationManager.currentDialog)return!1;if(cvox .ChromeVox.navigationManager.currentDialog&&!a){if(!cvox.DomUtil.isDescendantOfN ode(document.activeElement,cvox.ChromeVox.navigationManager.currentDialog))retur n cvox.ChromeVox.navigationManager.currentDialog=null,cvox.ChromeVox.tts.speak(c vox.ChromeVox.msgs.getMsg("exiting_dialog"),cvox.AbstractTts.QUEUE_MODE_FLUSH, 1499 cvox.ChromeVoxEventWatcher.handleDialogFocus=function(a){for(;a;){if(a.hasAttrib ute){var b=a.getAttribute("role");if("dialog"==b||"alertdialog"==b)break}a=a.par entElement}if(a==cvox.ChromeVox.navigationManager.currentDialog)return!1;if(cvox .ChromeVox.navigationManager.currentDialog&&!a){if(!cvox.DomUtil.isDescendantOfN ode(document.activeElement,cvox.ChromeVox.navigationManager.currentDialog))retur n cvox.ChromeVox.navigationManager.currentDialog=null,cvox.ChromeVox.tts.speak(c vox.ChromeVox.msgs.getMsg("exiting_dialog"),cvox.AbstractTts.QUEUE_MODE_FLUSH,
1499 cvox.AbstractTts.PERSONALITY_ANNOTATION),!0}else if(a)return cvox.ChromeVox.navi gationManager.currentDialog=a,cvox.ChromeVox.tts.speak(cvox.ChromeVox.msgs.getMs g("entering_dialog"),cvox.AbstractTts.QUEUE_MODE_FLUSH,cvox.AbstractTts.PERSONAL ITY_ANNOTATION),a=cvox.DescriptionUtil.getFullDescriptionsFromChildren(null,a),b =new cvox.NavigationSpeaker,b.speakDescriptionArray(a,cvox.AbstractTts.QUEUE_MOD E_QUEUE,null),!0;return!1}; 1500 cvox.AbstractTts.PERSONALITY_ANNOTATION),!0}else if(a)return cvox.ChromeVox.navi gationManager.currentDialog=a,cvox.ChromeVox.tts.speak(cvox.ChromeVox.msgs.getMs g("entering_dialog"),cvox.AbstractTts.QUEUE_MODE_FLUSH,cvox.AbstractTts.PERSONAL ITY_ANNOTATION),a=cvox.DescriptionUtil.getFullDescriptionsFromChildren(null,a),b =new cvox.NavigationSpeaker,b.speakDescriptionArray(a,cvox.AbstractTts.QUEUE_MOD E_QUEUE,null),!0;return!1};
1500 cvox.ChromeVoxEventWatcherUtil.shouldWaitToProcess=function(a,b,c){a=c-a;b=c-b;r eturn a<cvox.ChromeVoxEventWatcher.WAIT_TIME_MS_&&b<cvox.ChromeVoxEventWatcher.M AX_WAIT_TIME_MS_};cvox.ChromeVoxEventWatcher.queueMode_=function(){return cvox.C hromeVoxEventWatcher.processing_?cvox.AbstractTts.QUEUE_MODE_QUEUE:cvox.Abstract Tts.QUEUE_MODE_FLUSH}; 1501 cvox.ChromeVoxEventWatcherUtil.shouldWaitToProcess=function(a,b,c){a=c-a;b=c-b;r eturn a<cvox.ChromeVoxEventWatcher.WAIT_TIME_MS_&&b<cvox.ChromeVoxEventWatcher.M AX_WAIT_TIME_MS_};cvox.ChromeVoxEventWatcher.queueMode_=function(){return cvox.C hromeVoxEventWatcher.processing_?cvox.AbstractTts.QUEUE_MODE_QUEUE:cvox.Abstract Tts.QUEUE_MODE_FLUSH};
1501 cvox.ChromeVoxEventWatcher.processQueue_=function(){if(0!=cvox.ChromeVoxEventWat cher.events_.length){var a=cvox.ChromeVoxEventWatcher.events_,b=-1,c=0,d,e;for(e =0;d=a[e];e++)"focus"==d.type&&(b=e,c=d.timeStamp);cvox.ChromeVoxEventWatcher.ev ents_=[];for(e=0;d=a[e];e++){var f=a[e-1]||{};!(e>=b||"LiveRegion"==d.type||"DOM SubtreeModified"==d.type)||"focus"==f.type&&"change"==d.type||cvox.ChromeVoxEven tWatcher.events_.push(d)}cvox.ChromeVoxEventWatcher.events_.sort(function(a,b){r eturn"LiveRegion"!=b.type&& 1502 cvox.ChromeVoxEventWatcher.processQueue_=function(){if(0!=cvox.ChromeVoxEventWat cher.events_.length){var a=cvox.ChromeVoxEventWatcher.events_,b=-1,c=0,d,e;for(e =0;d=a[e];e++)"focus"==d.type&&(b=e,c=d.timeStamp);cvox.ChromeVoxEventWatcher.ev ents_=[];for(e=0;d=a[e];e++){var f=a[e-1]||{};!(e>=b||"LiveRegion"==d.type||"DOM SubtreeModified"==d.type)||"focus"==f.type&&"change"==d.type||cvox.ChromeVoxEven tWatcher.events_.push(d)}cvox.ChromeVoxEventWatcher.events_.sort(function(a,b){r eturn"LiveRegion"!=b.type&&
1502 "LiveRegion"==a.type||"DOMSubtreeModified"!=b.type&&"DOMSubtreeModified"==a.type ?1:-1});a=(new Date).getTime();if(0<=b&&cvox.ChromeVoxEventWatcherUtil.shouldWai tToProcess(c,cvox.ChromeVoxEventWatcher.firstUnprocessedEventTime,a))window.setT imeout(cvox.ChromeVoxEventWatcher.processQueue_,cvox.ChromeVoxEventWatcher.WAIT_ TIME_MS_);else{for(e=0;d=cvox.ChromeVoxEventWatcher.events_[e];e++)cvox.ChromeVo xEventWatcher.handleEvent_(d),cvox.ChromeVoxEventWatcher.processing_=!0;cvox.Chr omeVoxEventWatcher.processing_= 1503 "LiveRegion"==a.type||"DOMSubtreeModified"!=b.type&&"DOMSubtreeModified"==a.type ?1:-1});a=(new Date).getTime();if(0<=b&&cvox.ChromeVoxEventWatcherUtil.shouldWai tToProcess(c,cvox.ChromeVoxEventWatcher.firstUnprocessedEventTime,a))window.setT imeout(cvox.ChromeVoxEventWatcher.processQueue_,cvox.ChromeVoxEventWatcher.WAIT_ TIME_MS_);else{for(e=0;d=cvox.ChromeVoxEventWatcher.events_[e];e++)cvox.ChromeVo xEventWatcher.handleEvent_(d),cvox.ChromeVoxEventWatcher.processing_=!0;cvox.Chr omeVoxEventWatcher.processing_=
1503 !1;cvox.ChromeVoxEventWatcher.events_=[];cvox.ChromeVoxEventWatcher.firstUnproce ssedEventTime=-1;cvox.ChromeVoxEventWatcher.queueProcessingScheduled_=!1;cvox.Ch romeVoxEventWatcher.maybeCallReadyCallbacks_()}}}; 1504 !1;cvox.ChromeVoxEventWatcher.events_=[];cvox.ChromeVoxEventWatcher.firstUnproce ssedEventTime=-1;cvox.ChromeVoxEventWatcher.queueProcessingScheduled_=!1;cvox.Ch romeVoxEventWatcher.maybeCallReadyCallbacks_()}}};
1504 cvox.ChromeVoxEventWatcher.handleEvent_=function(a){switch(a.type){case "keydown ":cvox.ChromeVoxEventWatcher.setUpTextHandler();if(cvox.ChromeVoxEventWatcher.cu rrentTextControl&&(cvox.ChromeVoxEventWatcher.handleTextChanged(!0),(a=cvox.Chro meVoxEventWatcher.currentTextHandler)&&a.lastChangeDescribed))break;cvox.ChromeV oxEventWatcher.handleControlChanged(document.activeElement);break;case "keypress ":cvox.ChromeVoxEventWatcher.setUpTextHandler();break;case "focus":cvox.ChromeVo xEventWatcher.focusHandler(a); 1505 cvox.ChromeVoxEventWatcher.handleEvent_=function(a){switch(a.type){case "keydown ":cvox.ChromeVoxEventWatcher.setUpTextHandler();if(cvox.ChromeVoxEventWatcher.cu rrentTextControl&&(cvox.ChromeVoxEventWatcher.handleTextChanged(!0),(a=cvox.Chro meVoxEventWatcher.currentTextHandler)&&a.lastChangeDescribed))break;cvox.ChromeV oxEventWatcher.handleControlChanged(document.activeElement);break;case "keypress ":cvox.ChromeVoxEventWatcher.setUpTextHandler();break;case "click":cvox.ApiImple mentation.syncToNode(a.target,
1505 break;case "blur":cvox.ChromeVoxEventWatcher.setUpTextHandler();break;case "chan ge":cvox.ChromeVoxEventWatcher.changeHandler(a);break;case "select":cvox.ChromeV oxEventWatcher.setUpTextHandler();break;case "LiveRegion":cvox.ChromeVoxEventWat cher.speakLiveRegion_(a.assertive,a.navDescriptions);break;case "DOMSubtreeModif ied":cvox.ChromeVoxEventWatcher.subtreeModifiedHandler(a)}}; 1506 !0);break;case "focus":cvox.ChromeVoxEventWatcher.focusHandler(a);break;case "bl ur":cvox.ChromeVoxEventWatcher.setUpTextHandler();break;case "change":cvox.Chrom eVoxEventWatcher.changeHandler(a);break;case "select":cvox.ChromeVoxEventWatcher .setUpTextHandler();break;case "LiveRegion":cvox.ChromeVoxEventWatcher.speakLive Region_(a.assertive,a.navDescriptions);break;case "DOMSubtreeModified":cvox.Chro meVoxEventWatcher.subtreeModifiedHandler(a)}};
1506 cvox.ChromeVoxEventWatcher.setUpTimeHandler_=function(){var a=document.activeEle ment;a&&a.hasAttribute&&"true"==a.getAttribute("aria-hidden")&&"true"!=a.getAttr ibute("chromevoxignoreariahidden")&&(a=null);cvox.ChromeVoxEventWatcher.currentT imeHandler=a.constructor==HTMLInputElement&&a.type&&"time"==a.type?new cvox.Chro meVoxHTMLTimeWidget(a,cvox.ChromeVox.tts):null;return null!=cvox.ChromeVoxEventW atcher.currentTimeHandler}; 1507 cvox.ChromeVoxEventWatcher.setUpTimeHandler_=function(){var a=document.activeEle ment;a&&a.hasAttribute&&"true"==a.getAttribute("aria-hidden")&&"true"!=a.getAttr ibute("chromevoxignoreariahidden")&&(a=null);cvox.ChromeVoxEventWatcher.currentT imeHandler=a.constructor==HTMLInputElement&&a.type&&"time"==a.type?new cvox.Chro meVoxHTMLTimeWidget(a,cvox.ChromeVox.tts):null;return null!=cvox.ChromeVoxEventW atcher.currentTimeHandler};
1507 cvox.ChromeVoxEventWatcher.setUpMediaHandler_=function(){var a=document.activeEl ement;a&&a.hasAttribute&&"true"==a.getAttribute("aria-hidden")&&"true"!=a.getAtt ribute("chromevoxignoreariahidden")&&(a=null);cvox.ChromeVoxEventWatcher.current MediaHandler=a.constructor==HTMLVideoElement||a.constructor==HTMLAudioElement?ne w cvox.ChromeVoxHTMLMediaWidget(a,cvox.ChromeVox.tts):null;return null!=cvox.Chr omeVoxEventWatcher.currentMediaHandler}; 1508 cvox.ChromeVoxEventWatcher.setUpMediaHandler_=function(){var a=document.activeEl ement;a&&a.hasAttribute&&"true"==a.getAttribute("aria-hidden")&&"true"!=a.getAtt ribute("chromevoxignoreariahidden")&&(a=null);cvox.ChromeVoxEventWatcher.current MediaHandler=a.constructor==HTMLVideoElement||a.constructor==HTMLAudioElement?ne w cvox.ChromeVoxHTMLMediaWidget(a,cvox.ChromeVox.tts):null;return null!=cvox.Chr omeVoxEventWatcher.currentMediaHandler};
1508 cvox.ChromeVoxEventWatcher.setUpDateHandler_=function(){var a=document.activeEle ment;a&&a.hasAttribute&&"true"==a.getAttribute("aria-hidden")&&"true"!=a.getAttr ibute("chromevoxignoreariahidden")&&(a=null);cvox.ChromeVoxEventWatcher.currentD ateHandler=a.constructor!=HTMLInputElement||!a.type||"date"!=a.type&&"month"!=a. type&&"week"!=a.type?null:new cvox.ChromeVoxHTMLDateWidget(a,cvox.ChromeVox.tts) ;return null!=cvox.ChromeVoxEventWatcher.currentDateHandler};cvox.InitialSpeech= {};window.INJECTED_AFTER_LOAD||(window.INJECTED_AFTER_LOAD=!1); 1509 cvox.ChromeVoxEventWatcher.setUpDateHandler_=function(){var a=document.activeEle ment;a&&a.hasAttribute&&"true"==a.getAttribute("aria-hidden")&&"true"!=a.getAttr ibute("chromevoxignoreariahidden")&&(a=null);cvox.ChromeVoxEventWatcher.currentD ateHandler=a.constructor!=HTMLInputElement||!a.type||"date"!=a.type&&"month"!=a. type&&"week"!=a.type?null:new cvox.ChromeVoxHTMLDateWidget(a,cvox.ChromeVox.tts) ;return null!=cvox.ChromeVoxEventWatcher.currentDateHandler};cvox.InitialSpeech= {};window.INJECTED_AFTER_LOAD||(window.INJECTED_AFTER_LOAD=!1);
1509 cvox.InitialSpeech.speak=function(){var a=window.INJECTED_AFTER_LOAD;if(!cvox.Ch romeVox.isActive||document.webkitHidden)a=!0;window.top==window&&(document.title &&!a&&cvox.ChromeVox.tts.speak(document.title,cvox.AbstractTts.QUEUE_MODE_FLUSH) ,cvox.BrailleOverlayWidget.getInstance().init());cvox.LiveRegions.init(new Date, cvox.AbstractTts.QUEUE_MODE_QUEUE,a);document.hasFocus()&&document.activeElement ==document.body&&cvox.ChromeVox.navigationManager.syncToBeginning();if(cvox.Chro meVox.position[document.location.href]){var b= 1510 cvox.InitialSpeech.speak=function(){var a=window.INJECTED_AFTER_LOAD;if(!cvox.Ch romeVox.isActive||document.webkitHidden)a=!0;if(window.top==window){var b=docume nt.title,c=document.querySelector("head > title");c&&"true"==c.getAttribute("ari a-hidden")&&(b=null);b&&!a&&cvox.ChromeVox.tts.speak(b,cvox.AbstractTts.QUEUE_MO DE_FLUSH);cvox.BrailleOverlayWidget.getInstance().init()}cvox.LiveRegions.init(n ew Date,cvox.AbstractTts.QUEUE_MODE_QUEUE,a);document.hasFocus()&&document.activ eElement==document.body&&
1510 cvox.ChromeVox.position[document.location.href];cvox.ChromeVox.navigationManager .updateSelToArbitraryNode(document.elementFromPoint(b.x,b.y))}document.hasFocus( )&&(a||cvox.ChromeVoxEventSuspender.withSuspendedEvents(function(){cvox.ChromeVo x.navigationManager.finishNavCommand("",!0,cvox.AbstractTts.QUEUE_MODE_QUEUE)})( ))};cvox.PdfProcessor={}; 1511 cvox.ChromeVox.navigationManager.syncToBeginning();cvox.ChromeVox.position[docum ent.location.href]&&(b=cvox.ChromeVox.position[document.location.href],cvox.Chro meVox.navigationManager.updateSelToArbitraryNode(document.elementFromPoint(b.x,b .y)));document.hasFocus()&&(a||cvox.ChromeVoxEventSuspender.withSuspendedEvents( function(){cvox.ChromeVox.navigationManager.finishNavCommand("",!0,cvox.Abstract Tts.QUEUE_MODE_QUEUE)})())};cvox.PdfProcessor={};
1511 cvox.PdfProcessor.processEmbeddedPdfs=function(){if("#original"!=window.location .hash)for(var a=document.querySelectorAll('embed[type="application/pdf"]'),b=0;b <a.length;b++){var c=a[b];if("function"===typeof c.accessibility){var d=c.access ibility(),e=cvox.ChromeVoxJSON.parse(d);if(e.loaded)if(e.copyable){var f=documen t.createElement("DIV"),d=document.createElement("DIV");d.style.position="relativ e";d.style.background="white";d.style.margin="20pt";d.style.padding="20pt";d.sty le.border="1px solid #000"; 1512 cvox.PdfProcessor.processEmbeddedPdfs=function(){if("#original"!=window.location .hash)for(var a=document.querySelectorAll('embed[type="application/pdf"]'),b=0;b <a.length;b++){var c=a[b];if("function"===typeof c.accessibility){var d=c.access ibility(),e=cvox.ChromeVoxJSON.parse(d);if(e.loaded)if(e.copyable){var f=documen t.createElement("DIV"),d=document.createElement("DIV");d.style.position="relativ e";d.style.background="white";d.style.margin="20pt";d.style.padding="20pt";d.sty le.border="1px solid #000";
1512 var g=c.src.substr(c.src.lastIndexOf("/")+1);document.title=g;g=cvox.ChromeVox.m sgs.getMsg("pdf_header",[g,c.src+"#original"]);d.innerHTML=g;g=d.getElementsByTa gName("a")[0];g.addEventListener("click",function(){window.location.href=c.src+" #original";window.location.reload()},!0);f.appendChild(d);f.style.position="rela tive";f.style.background="#CCC";f.style.paddingTop="1pt";f.style.paddingBottom=" 1pt";f.style.width="100%";f.style.minHeight="100%";var h=function(a){var b=c.acc essibility(a),d=cvox.ChromeVoxJSON.parse(b), 1513 var g=c.src.substr(c.src.lastIndexOf("/")+1);document.title=g;g=cvox.ChromeVox.m sgs.getMsg("pdf_header",[g,c.src+"#original"]);d.innerHTML=g;g=d.getElementsByTa gName("a")[0];g.addEventListener("click",function(){window.location.href=c.src+" #original";window.location.reload()},!0);f.appendChild(d);f.style.position="rela tive";f.style.background="#CCC";f.style.paddingTop="1pt";f.style.paddingBottom=" 1pt";f.style.width="100%";f.style.minHeight="100%";var h=function(a){var b=c.acc essibility(a),d=cvox.ChromeVoxJSON.parse(b),
1513 b=document.createElement("DIV"),g=document.createElement("A");g.name="page"+a;b. style.position="relative";b.style.background="white";b.style.margin="auto";b.sty le.marginTop="20pt";b.style.marginBottom="20pt";b.style.height=d.height+"pt";b.s tyle.width=d.width+"pt";b.style.boxShadow="0pt 0pt 10pt #333";for(var d=d.textBo x,q=0;q<d.length;q++){var m=d[q],s=document.createElement("Span");s.style.positi on="absolute";s.style.left=m.left+"pt";s.style.top=m.top+"pt";s.style.fontSize=0 .8*m.height+"pt";for(var u= 1514 b=document.createElement("DIV"),g=document.createElement("A");g.name="page"+a;b. style.position="relative";b.style.background="white";b.style.margin="auto";b.sty le.marginTop="20pt";b.style.marginBottom="20pt";b.style.height=d.height+"pt";b.s tyle.width=d.width+"pt";b.style.boxShadow="0pt 0pt 10pt #333";for(var d=d.textBo x,q=0;q<d.length;q++){var m=d[q],s=document.createElement("Span");s.style.positi on="absolute";s.style.left=m.left+"pt";s.style.top=m.top+"pt";s.style.fontSize=0 .8*m.height+"pt";for(var u=
1514 0;u<m.textNodes.length;u++){var t=m.textNodes[u];if("text"==t.type)s.appendChild (document.createTextNode(t.text));else if("url"==t.type){var r=document.createEl ement("A");r.href=t.url;r.appendChild(document.createTextNode(t.text));s.appendC hild(r)}}b.appendChild(s)}f.appendChild(g);f.appendChild(b);a<e.numberOfPages-1? window.setTimeout(function(){h(a+1)},0):(c.style.display="none",c.parentNode.app endChild(f),cvox.ChromeVox.navigationManager.reset())};window.setTimeout(functio n(){h(0)},0)}else cvox.ChromeVox.tts.speak("Unable to access copy-protected PDF. Skipping."); 1515 0;u<m.textNodes.length;u++){var t=m.textNodes[u];if("text"==t.type)s.appendChild (document.createTextNode(t.text));else if("url"==t.type){var r=document.createEl ement("A");r.href=t.url;r.appendChild(document.createTextNode(t.text));s.appendC hild(r)}}b.appendChild(s)}f.appendChild(g);f.appendChild(b);a<e.numberOfPages-1? window.setTimeout(function(){h(a+1)},0):(c.style.display="none",c.parentNode.app endChild(f),cvox.ChromeVox.navigationManager.reset())};window.setTimeout(functio n(){h(0)},0)}else cvox.ChromeVox.tts.speak("Unable to access copy-protected PDF. Skipping.");
1515 else window.setTimeout(cvox.PdfProcessor.processEmbeddedPdfs,100)}}};cvox.Search Constants=function(){};cvox.SearchConstants.KeyCode={UP:38,DOWN:40,PAGE_UP:33,PA GE_DOWN:34,LEFT:37,RIGHT:39,ENTER:13,ESC:27};cvox.SearchUtil=function(){};cvox.S earchUtil.extractURL=function(a){return a&&("A"===a.tagName||(a=a.querySelector( "a")))?a.href:null};cvox.SearchUtil.isSearchWidgetActive=function(){return null! ==document.querySelector("#cvox-search")};cvox.SearchUtil.addOneWrap=function(a, b){return(a+1)%b};cvox.SearchUtil.subOneWrap=function(a,b){return(a-1+b)%b}; 1516 else window.setTimeout(cvox.PdfProcessor.processEmbeddedPdfs,100)}}};cvox.Search Constants=function(){};cvox.SearchConstants.KeyCode={UP:38,DOWN:40,PAGE_UP:33,PA GE_DOWN:34,LEFT:37,RIGHT:39,ENTER:13,ESC:27};cvox.SearchUtil=function(){};cvox.S earchUtil.extractURL=function(a){return a&&("A"===a.tagName||(a=a.querySelector( "a")))?a.href:null};cvox.SearchUtil.isSearchWidgetActive=function(){return null! ==document.querySelector("#cvox-search")};cvox.SearchUtil.addOneWrap=function(a, b){return(a+1)%b};cvox.SearchUtil.subOneWrap=function(a,b){return(a-1+b)%b};
1516 cvox.SearchUtil.clickElem=function(a,b,c,d){var e;o:{e=a;for(var f={},g=e;g;){va r h;h=g.getAttribute?(h=g.getAttribute("aria-activedescendant"))?h:null:null;if( !h)break;if(h in f){e=null;break o}f[h]=!0;g=document.getElementById(h)}e=g==e?n ull:g}e&&(a=e);if(c){c=null;a.onclick&&(c=a.onclick);!c&&1!=a.nodeType&&a.parent Node&&a.parentNode.onclick&&(c=a.parentNode.onclick);e=!0;if(c)try{e=c()}catch(k ){}if(!e)return}c=document.createEvent("MouseEvents");d=d?"dblclick":"mousedown" ;c.initMouseEvent(d,!0, 1517 cvox.SearchUtil.clickElem=function(a,b,c,d){var e;o:{e=a;for(var f={},g=e;g;){va r h;h=g.getAttribute?(h=g.getAttribute("aria-activedescendant"))?h:null:null;if( !h)break;if(h in f){e=null;break o}f[h]=!0;g=document.getElementById(h)}e=g==e?n ull:g}e&&(a=e);if(c){c=null;a.onclick&&(c=a.onclick);!c&&1!=a.nodeType&&a.parent Node&&a.parentNode.onclick&&(c=a.parentNode.onclick);e=!0;if(c)try{e=c()}catch(k ){}if(!e)return}c=document.createEvent("MouseEvents");d=d?"dblclick":"mousedown" ;c.initMouseEvent(d,!0,
1517 !0,document.defaultView,1,0,0,0,0,!1,!1,b,!1,0,null);c.fromCvox=!0;try{a.dispatc hEvent(c)}catch(l){}c=document.createEvent("MouseEvents");c.initMouseEvent("mous eup",!0,!0,document.defaultView,1,0,0,0,0,!1,!1,b,!1,0,null);c.fromCvox=!0;try{a .dispatchEvent(c)}catch(n){}c=document.createEvent("MouseEvents");c.initMouseEve nt("click",!0,!0,document.defaultView,1,0,0,0,0,!1,!1,b,!1,0,null);c.fromCvox=!0 ;try{a.dispatchEvent(c)}catch(p){}};cvox.AbstractResult=function(){};cvox.Abstra ctResult.prototype.isType=function(){return!1};cvox.AbstractResult.prototype.spe ak=function(){return!1};cvox.AbstractResult.prototype.getURL=cvox.SearchUtil.ext ractURL;cvox.AbstractResult.prototype.getSyncNode=function(a){return a};cvox.Sea rchResults=function(){};cvox.SearchResults.speakResultBySelectTexts=function(a,b ){for(var c=0;c<b.length;c++){var d=b[c];if(d.select)for(var e=a.querySelectorAl l(d.select),f=0;f<e.length;f++)cvox.ChromeVox.speakNode(e.item(f),1);d.text&&cvo x.ChromeVox.tts.speak(d.text,1)}};cvox.UnknownResult=function(){};goog.inherits( cvox.UnknownResult,cvox.AbstractResult);cvox.NormalResult=function(){};goog.inhe rits(cvox.NormalResult,cvox.AbstractResult); 1518 !0,document.defaultView,1,0,0,0,0,!1,!1,b,!1,0,null);c.fromCvox=!0;try{a.dispatc hEvent(c)}catch(l){}c=document.createEvent("MouseEvents");c.initMouseEvent("mous eup",!0,!0,document.defaultView,1,0,0,0,0,!1,!1,b,!1,0,null);c.fromCvox=!0;try{a .dispatchEvent(c)}catch(n){}c=document.createEvent("MouseEvents");c.initMouseEve nt("click",!0,!0,document.defaultView,1,0,0,0,0,!1,!1,b,!1,0,null);c.fromCvox=!0 ;try{a.dispatchEvent(c)}catch(p){}};cvox.AbstractResult=function(){};cvox.Abstra ctResult.prototype.isType=function(){return!1};cvox.AbstractResult.prototype.spe ak=function(){return!1};cvox.AbstractResult.prototype.getURL=cvox.SearchUtil.ext ractURL;cvox.AbstractResult.prototype.getSyncNode=function(a){return a};cvox.Sea rchResults=function(){};cvox.SearchResults.speakResultBySelectTexts=function(a,b ){for(var c=0;c<b.length;c++){var d=b[c];if(d.select)for(var e=a.querySelectorAl l(d.select),f=0;f<e.length;f++)cvox.ChromeVox.speakNode(e.item(f),1);d.text&&cvo x.ChromeVox.tts.speak(d.text,1)}};cvox.UnknownResult=function(){};goog.inherits( cvox.UnknownResult,cvox.AbstractResult);cvox.NormalResult=function(){};goog.inhe rits(cvox.NormalResult,cvox.AbstractResult);
1518 cvox.NormalResult.prototype.isType=function(a){return null!==a.querySelector(".r c")};cvox.NormalResult.prototype.speak=function(a){if(!a)return!1;var b=[{select :".rc .r"},{select:".rc .st"},{select:".kv"},{select:".osl"},{select:".sld"},{se lect:".mrf"}];cvox.SearchResults.speakResultBySelectTexts(a,b);b=a.querySelector All(".mas-1st-col div");a=a.querySelectorAll(".mas-col div");for(var c=0;c<b.len gth;c++)cvox.ChromeVox.speakNode(b.item(c),1),cvox.ChromeVox.speakNode(a.item(c) ,1);return!0}; 1519 cvox.NormalResult.prototype.isType=function(a){return null!==a.querySelector(".r c")};cvox.NormalResult.prototype.speak=function(a){if(!a)return!1;var b=[{select :".rc .r"},{select:".rc .st"},{select:".kv"},{select:".osl"},{select:".sld"},{se lect:".mrf"}];cvox.SearchResults.speakResultBySelectTexts(a,b);b=a.querySelector All(".mas-1st-col div");a=a.querySelectorAll(".mas-col div");for(var c=0;c<b.len gth;c++)cvox.ChromeVox.speakNode(b.item(c),1),cvox.ChromeVox.speakNode(a.item(c) ,1);return!0};
1519 cvox.WeatherResult=function(){};goog.inherits(cvox.WeatherResult,cvox.AbstractRe sult);cvox.WeatherResult.prototype.isType=function(a){return null!==a.querySelec tor("#wob_wc")};cvox.WeatherResult.speakForecast=function(a){if(a){var b=[{selec t:".vk_lgy"},{select:"img"},{select:".vk_gy"},{select:".vk_lgy"}];cvox.SearchRes ults.speakResultBySelectTexts(a,b)}}; 1520 cvox.WeatherResult=function(){};goog.inherits(cvox.WeatherResult,cvox.AbstractRe sult);cvox.WeatherResult.prototype.isType=function(a){return null!==a.querySelec tor("#wob_wc")};cvox.WeatherResult.speakForecast=function(a){if(a){var b=[{selec t:".vk_lgy"},{select:"img"},{select:".vk_gy"},{select:".vk_lgy"}];cvox.SearchRes ults.speakResultBySelectTexts(a,b)}};
1520 cvox.WeatherResult.prototype.speak=function(a){if(!a)return!1;var b=[{text:"The weather forcast for"},{select:".vk_h"},{select:"#wob_dts"},{select:"#wob_dc"},{s elect:"#wob_tm"},{text:"degrees fahrenheit"},{text:"precipitation is"},{select:" #wob_pp"},{text:"humidity is"},{select:"#wob_hm"},{text:"wind is"},{select:"#wob _ws"}];cvox.SearchResults.speakResultBySelectTexts(a,b);a=a.getElementsByClassNa me("wob_df");cvox.ChromeVox.tts.speak("Forecasts for this week",1);for(b=0;b<a.l ength;b++){var c=a.item(b); 1521 cvox.WeatherResult.prototype.speak=function(a){if(!a)return!1;var b=[{text:"The weather forcast for"},{select:".vk_h"},{select:"#wob_dts"},{select:"#wob_dc"},{s elect:"#wob_tm"},{text:"degrees fahrenheit"},{text:"precipitation is"},{select:" #wob_pp"},{text:"humidity is"},{select:"#wob_hm"},{text:"wind is"},{select:"#wob _ws"}];cvox.SearchResults.speakResultBySelectTexts(a,b);a=a.getElementsByClassNa me("wob_df");cvox.ChromeVox.tts.speak("Forecasts for this week",1);for(b=0;b<a.l ength;b++){var c=a.item(b);
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
1555 cvox.ChromeMathJax.prototype.dispatchMessage=function(a){var b,c=[];switch(a.cmd ){case "NodeMml":b=this.convertMarkupToDom;c=["mathml","elementId"];break;case " Active":b=this.applyBoolean,c=["status"]}if(!b)throw"Unknown MathJax call: "+a.c md;var d=this.retrieveCallback_(a.id),e=a.args;d&&b&&b.apply(this,[d].concat(c.m ap(function(a){return e[a]})))};cvox.ChromeMathJax.prototype.applyBoolean=functi on(a,b){a(b)}; 1556 cvox.ChromeMathJax.prototype.dispatchMessage=function(a){var b,c=[];switch(a.cmd ){case "NodeMml":b=this.convertMarkupToDom;c=["mathml","elementId"];break;case " Active":b=this.applyBoolean,c=["status"]}if(!b)throw"Unknown MathJax call: "+a.c md;var d=this.retrieveCallback_(a.id),e=a.args;d&&b&&b.apply(this,[d].concat(c.m ap(function(a){return e[a]})))};cvox.ChromeMathJax.prototype.applyBoolean=functi on(a,b){a(b)};
1556 cvox.ChromeMathJax.prototype.isMathjaxActive=function(a){var b=0,c=goog.bind(fun ction(){b++;try{this.postMsg("Active",function(d){d?a(d):5>b&&setTimeout(c,1E3)} )}catch(d){if(5>b)setTimeout(c,1E3);else throw d;}},this);c()};cvox.ChromeMathJa x.prototype.getAllJax=function(a){this.postMsg("AllJax",a)};cvox.ChromeMathJax.p rototype.registerSignal=function(a,b){this.postMsg("RegSig",a,{sig:b})}; 1557 cvox.ChromeMathJax.prototype.isMathjaxActive=function(a){var b=0,c=goog.bind(fun ction(){b++;try{this.postMsg("Active",function(d){d?a(d):5>b&&setTimeout(c,1E3)} )}catch(d){if(5>b)setTimeout(c,1E3);else throw d;}},this);c()};cvox.ChromeMathJa x.prototype.getAllJax=function(a){this.postMsg("AllJax",a)};cvox.ChromeMathJax.p rototype.registerSignal=function(a,b){this.postMsg("RegSig",a,{sig:b})};
1557 cvox.ChromeMathJax.prototype.injectScripts=function(){var a=0,b=goog.bind(functi on(){a++;this.port?this.postMsg("InjectScripts",function(){}):10>a&&setTimeout(b ,500)},this);b()};cvox.ChromeMathJax.prototype.configMediaWiki=function(){this.p ostMsg("ConfWikipedia",function(){})};cvox.ChromeMathJax.prototype.getTex=functi on(a,b){var c=b.alt||b.title;if(c){var d="cvoxId-"+this.texNodeId_++;b.setAttrib ute("cvoxId",d);this.postMsg("TexToMml",a,{alt:c,id:d})}}; 1558 cvox.ChromeMathJax.prototype.injectScripts=function(){var a=0,b=goog.bind(functi on(){a++;this.port?this.postMsg("InjectScripts",function(){}):10>a&&setTimeout(b ,500)},this);b()};cvox.ChromeMathJax.prototype.configMediaWiki=function(){this.p ostMsg("ConfWikipedia",function(){})};cvox.ChromeMathJax.prototype.getTex=functi on(a,b){var c=b.alt||b.title;if(c){var d="cvoxId-"+this.texNodeId_++;b.setAttrib ute("cvoxId",d);this.postMsg("TexToMml",a,{alt:c,id:d})}};
1558 cvox.ChromeMathJax.prototype.getAsciiMath=function(a,b){var c=b.alt||b.title;if( c){var d="cvoxId-"+this.texNodeId_++;b.setAttribute("cvoxId",d);this.postMsg("As ciiMathToMml",a,{alt:c,id:d})}};cvox.HostFactory.mathJaxConstructor=cvox.ChromeM athJax;cvox.ChromeMsgs=function(){};goog.inherits(cvox.ChromeMsgs,cvox.AbstractM sgs);cvox.ChromeMsgs.NAMESPACE_="chromevox_";cvox.ChromeMsgs.prototype.getMsg=fu nction(a,b){var c=chrome.i18n.getMessage(cvox.ChromeMsgs.NAMESPACE_+a,b);if(void 0==c||""==c)throw Error("Invalid ChromeVox message id: "+a);return c};cvox.Chro meMsgs.prototype.getNumber=function(a){return""+a};cvox.HostFactory.msgsConstruc tor=cvox.ChromeMsgs;cvox.ChromeTtsBase=function(){cvox.AbstractTts.call(this);th is.propertyDefault.pitch=1;this.propertyMin.pitch=0.2;this.propertyMax.pitch=2;t his.propertyDefault.rate=1;this.propertyMin.rate=0.2;this.propertyMax.rate=5;thi s.propertyDefault.volume=1;this.propertyMin.volume=0.2;this.propertyMax.volume=1 };goog.inherits(cvox.ChromeTtsBase,cvox.AbstractTts);cvox.ChromeTts=function(){c vox.ChromeTtsBase.call(this);this.addBridgeListener()};goog.inherits(cvox.Chrome Tts,cvox.ChromeTtsBase);cvox.ChromeTts.callId=1;cvox.ChromeTts.functionMap={};cv ox.ChromeTts.prototype.speak=function(a,b,c){c||(c={});cvox.ChromeTts.superClass _.speak.call(this,a,b,c);cvox.ExtensionBridge.send(this.createMessageForProperti es_(a,b,c))};cvox.ChromeTts.prototype.isSpeaking=function(){cvox.ChromeTts.super Class_.isSpeaking.call(this);return!1}; 1559 cvox.ChromeMathJax.prototype.getAsciiMath=function(a,b){var c=b.alt||b.title;if( c){var d="cvoxId-"+this.texNodeId_++;b.setAttribute("cvoxId",d);this.postMsg("As ciiMathToMml",a,{alt:c,id:d})}};cvox.HostFactory.mathJaxConstructor=cvox.ChromeM athJax;cvox.ChromeMsgs=function(){};goog.inherits(cvox.ChromeMsgs,cvox.AbstractM sgs);cvox.ChromeMsgs.NAMESPACE_="chromevox_";cvox.ChromeMsgs.prototype.getMsg=fu nction(a,b){var c=chrome.i18n.getMessage(cvox.ChromeMsgs.NAMESPACE_+a,b);if(void 0==c||""==c)throw Error("Invalid ChromeVox message id: "+a);return c};cvox.Chro meMsgs.prototype.getNumber=function(a){return""+a};cvox.HostFactory.msgsConstruc tor=cvox.ChromeMsgs;cvox.ChromeTtsBase=function(){cvox.AbstractTts.call(this);th is.propertyDefault.pitch=1;this.propertyMin.pitch=0.2;this.propertyMax.pitch=2;t his.propertyDefault.rate=1;this.propertyMin.rate=0.2;this.propertyMax.rate=5;thi s.propertyDefault.volume=1;this.propertyMin.volume=0.2;this.propertyMax.volume=1 };goog.inherits(cvox.ChromeTtsBase,cvox.AbstractTts);cvox.ChromeTts=function(){c vox.ChromeTtsBase.call(this);this.addBridgeListener()};goog.inherits(cvox.Chrome Tts,cvox.ChromeTtsBase);cvox.ChromeTts.callId=1;cvox.ChromeTts.functionMap={};cv ox.ChromeTts.prototype.speak=function(a,b,c){c||(c={});cvox.ChromeTts.superClass _.speak.call(this,a,b,c);cvox.ExtensionBridge.send(this.createMessageForProperti es_(a,b,c))};cvox.ChromeTts.prototype.isSpeaking=function(){cvox.ChromeTts.super Class_.isSpeaking.call(this);return!1};
1559 cvox.ChromeTts.prototype.stop=function(){cvox.ChromeTts.superClass_.stop.call(th is);cvox.ExtensionBridge.send({target:"TTS",action:"stop"})};cvox.ChromeTts.prot otype.increaseOrDecreaseProperty=function(a,b){cvox.ExtensionBridge.send({target :"TTS",action:"increaseOrDecrease",property:a,increase:b})};cvox.ChromeTts.proto type.addBridgeListener=function(){cvox.ExtensionBridge.addMessageListener(functi on(a){var b=a.message;"TTS_CALLBACK"==b&&(a=a.id,b=cvox.ChromeTts.functionMap[a] ,void 0!=b&&(b(),delete cvox.ChromeTts.functionMap[a]))})}; 1560 cvox.ChromeTts.prototype.stop=function(){cvox.ChromeTts.superClass_.stop.call(th is);cvox.ExtensionBridge.send({target:"TTS",action:"stop"})};cvox.ChromeTts.prot otype.increaseOrDecreaseProperty=function(a,b){cvox.ExtensionBridge.send({target :"TTS",action:"increaseOrDecrease",property:a,increase:b})};cvox.ChromeTts.proto type.addBridgeListener=function(){cvox.ExtensionBridge.addMessageListener(functi on(a){var b=a.message;"TTS_CALLBACK"==b&&(a=a.id,b=cvox.ChromeTts.functionMap[a] ,void 0!=b&&(b(),delete cvox.ChromeTts.functionMap[a]))})};
1560 cvox.ChromeTts.prototype.createMessageForProperties_=function(a,b,c){a={target:" TTS",action:"speak",text:a,queueMode:b,properties:c};void 0!=c.startCallback&&(c vox.ChromeTts.functionMap[cvox.ChromeTts.callId]=c.startCallback,a.startCallback Id=cvox.ChromeTts.callId++);void 0!=c.endCallback&&(cvox.ChromeTts.functionMap[c vox.ChromeTts.callId]=c.endCallback,a.endCallbackId=cvox.ChromeTts.callId++);ret urn a};cvox.HostFactory.ttsConstructor=cvox.ChromeTts;cvox.Serializer=function() {};cvox.Serializer.prototype.storeOn=function(a){cvox.ChromeVox.storeOn(a);cvox. ChromeVoxEventWatcher.storeOn(a)};cvox.Serializer.prototype.readFrom=function(a) {cvox.ChromeVox.readFrom(a);cvox.ChromeVoxEventWatcher.readFrom(a)};cvox.InitGlo bals=function(){}; 1561 cvox.ChromeTts.prototype.createMessageForProperties_=function(a,b,c){a={target:" TTS",action:"speak",text:a,queueMode:b,properties:c};void 0!=c.startCallback&&(c vox.ChromeTts.functionMap[cvox.ChromeTts.callId]=c.startCallback,a.startCallback Id=cvox.ChromeTts.callId++);void 0!=c.endCallback&&(cvox.ChromeTts.functionMap[c vox.ChromeTts.callId]=c.endCallback,a.endCallbackId=cvox.ChromeTts.callId++);ret urn a};cvox.HostFactory.ttsConstructor=cvox.ChromeTts;cvox.Serializer=function() {};cvox.Serializer.prototype.storeOn=function(a){cvox.ChromeVox.storeOn(a);cvox. ChromeVoxEventWatcher.storeOn(a)};cvox.Serializer.prototype.readFrom=function(a) {cvox.ChromeVox.readFrom(a);cvox.ChromeVoxEventWatcher.readFrom(a)};cvox.InitGlo bals=function(){};
1561 cvox.InitGlobals.initGlobals=function(){cvox.ChromeVox.host||(cvox.ChromeVox.hos t=cvox.HostFactory.getHost());cvox.ChromeVox.tts=(new cvox.CompositeTts).add(cvo x.HostFactory.getTts()).add(cvox.History.getInstance()).add(cvox.ConsoleTts.getI nstance());cvox.ChromeVox.braille||(cvox.ChromeVox.braille=cvox.HostFactory.getB raille());cvox.ChromeVox.mathJax=cvox.HostFactory.getMathJax();cvox.ChromeVox.ea rcons=cvox.HostFactory.getEarcons();cvox.ChromeVox.msgs=cvox.HostFactory.getMsgs ();cvox.ChromeVox.isActive= 1562 cvox.InitGlobals.initGlobals=function(){cvox.ChromeVox.host||(cvox.ChromeVox.hos t=cvox.HostFactory.getHost());cvox.ChromeVox.tts=(new cvox.CompositeTts).add(cvo x.HostFactory.getTts()).add(cvox.History.getInstance()).add(cvox.ConsoleTts.getI nstance());cvox.ChromeVox.braille||(cvox.ChromeVox.braille=cvox.HostFactory.getB raille());cvox.ChromeVox.mathJax=cvox.HostFactory.getMathJax();cvox.ChromeVox.ea rcons=cvox.HostFactory.getEarcons();cvox.ChromeVox.msgs=cvox.HostFactory.getMsgs ();cvox.ChromeVox.isActive=
1562 !0;cvox.ChromeVox.navigationManager=new cvox.NavigationManager;cvox.ChromeVox.na vigationManager.updateIndicator();cvox.ChromeVox.syncToNode=cvox.ApiImplementati on.syncToNode;cvox.ChromeVox.speakNode=cvox.ApiImplementation.speakNode;cvox.Chr omeVox.serializer=new cvox.Serializer;cvox.ChromeVox.host.init();cvox.ChromeVoxE ventWatcher.init(window);cvox.ChromeVox.executeUserCommand=function(a){cvox.Chro meVoxUserCommands.commands[a]()};cvox.ChromeVox.host.onPageLoad()};cvox.ChromeVo xInit={};cvox.ChromeVox.initTimeout_=100;cvox.ChromeVox.recallInit_=function(a){ window.console.log(a+" Will try again in "+cvox.ChromeVox.initTimeout_+"ms");win dow.setTimeout(cvox.ChromeVox.initDocument,cvox.ChromeVox.initTimeout_);cvox.Chr omeVox.initTimeout_*=2}; 1563 !0;cvox.ChromeVox.navigationManager=new cvox.NavigationManager;cvox.ChromeVox.na vigationManager.updateIndicator();cvox.ChromeVox.syncToNode=cvox.ApiImplementati on.syncToNode;cvox.ChromeVox.speakNode=cvox.ApiImplementation.speakNode;cvox.Chr omeVox.serializer=new cvox.Serializer;cvox.ChromeVox.host.init();cvox.ChromeVoxE ventWatcher.init(window);cvox.ChromeVox.executeUserCommand=function(a){cvox.Chro meVoxUserCommands.commands[a]()};cvox.ChromeVox.host.onPageLoad()};cvox.ChromeVo xInit={};cvox.ChromeVox.initTimeout_=100;cvox.ChromeVox.recallInit_=function(a){ window.console.log(a+" Will try again in "+cvox.ChromeVox.initTimeout_+"ms");win dow.setTimeout(cvox.ChromeVox.initDocument,cvox.ChromeVox.initTimeout_);cvox.Chr omeVox.initTimeout_*=2};
1563 cvox.ChromeVox.initDocument=function(){document.body?(cvox.ChromeVox.host=cvox.H ostFactory.getHost(),cvox.ChromeVox.host.ttsLoaded()?(window.console.log("Starti ng ChromeVox."),cvox.InitGlobals.initGlobals(),window.disableChromeVox=function( ){cvox.ChromeVox.host.killChromeVox()}):cvox.ChromeVox.recallInit_("ChromeVox no t starting; waiting for TTS. "+document.location.href+".")):cvox.ChromeVox.recal lInit_("ChromeVox not starting on unloaded page: "+document.location.href+".")}; 1564 cvox.ChromeVox.initDocument=function(){document.body?(cvox.ChromeVox.host=cvox.H ostFactory.getHost(),cvox.ChromeVox.host.ttsLoaded()?(window.console.log("Starti ng ChromeVox."),cvox.InitGlobals.initGlobals(),window.disableChromeVox=function( ){cvox.ChromeVox.host.killChromeVox()}):cvox.ChromeVox.recallInit_("ChromeVox no t starting; waiting for TTS. "+document.location.href+".")):cvox.ChromeVox.recal lInit_("ChromeVox not starting on unloaded page: "+document.location.href+".")};
1564 cvox.ChromeVox.reinit=function(){cvox.ChromeVox.host.reinit();cvox.ChromeVox.ini tDocument()};window.CLOSURE_USE_EXT_MESSAGES=!0;cvox.ChromeVox.initDocument(); 1565 cvox.ChromeVox.reinit=function(){cvox.ChromeVox.host.reinit();cvox.ChromeVox.ini tDocument()};window.CLOSURE_USE_EXT_MESSAGES=!0;cvox.ChromeVox.initDocument();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698