Effectuez des recherches dans l'index de livres complets le plus fourni au monde.

Ma bibliothèque

ÉditeursÀ proposConfidentialitéConditions d'utilisationAide
");return null==a||null==a.sheet?Qd:Mg(a.sheet,void 0!=b?b:null,c)}function Qg(a){if(z&&!Hc(10)||"function"!=typeof p.DOMParser)return null;a=me(""+a+"");return(new DOMParser).parseFromString(Ud(a),"text/html").body.children[0]} function Og(a,b){if(!a)return Ed;var c=document.createElement("div").style;Rg(a).forEach(function(d){var e=qc&&d in Lg?d:d.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");Ab(e,"--")||Ab(e,"var")||(d=Hg(a,d),d=gg(e,d,b),null!=d&&Ig(c,e,d))});return new Ad(c.cssText||"",zd)} function Sg(a){var b=Array.from(zg(og,a,"getElementsByTagName",["STYLE"])),c=rb(b,function(e){return ib(Dg(e).cssRules)});c=Ng(c);c.sort(function(e,g){e=$f(e.selectorText);a:{g=$f(g.selectorText);for(var h=nb,k=Math.min(e.length,g.length),l=0;l=a.left&&b.right<=a.right&&b.top>=a.top&&b.bottom<=a.bottom:b.x>=a.left&&b.x<=a.right&&b.y>=a.top&&b.y<=a.bottom:!1}function Xg(a,b){var c=b.xa.right?b.x-a.right:0;a=b.ya.bottom?b.y-a.bottom:0;return Math.sqrt(c*c+a*a)} f.ceil=function(){this.top=Math.ceil(this.top);this.right=Math.ceil(this.right);this.bottom=Math.ceil(this.bottom);this.left=Math.ceil(this.left);return this};f.floor=function(){this.top=Math.floor(this.top);this.right=Math.floor(this.right);this.bottom=Math.floor(this.bottom);this.left=Math.floor(this.left);return this};f.round=function(){this.top=Math.round(this.top);this.right=Math.round(this.right);this.bottom=Math.round(this.bottom);this.left=Math.round(this.left);return this};function Yg(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d}f=Yg.prototype;f.clone=function(){return new Yg(this.left,this.top,this.width,this.height)};function Zg(a){return new Ug(a.top,a.left+a.width,a.top+a.height,a.left)}function $g(a){return new Yg(a.left,a.top,a.right-a.left,a.bottom-a.top)} function ah(a,b){var c=Math.max(a.left,b.left),d=Math.min(a.left+a.width,b.left+b.width);if(c<=d){var e=Math.max(a.top,b.top);b=Math.min(a.top+a.height,b.top+b.height);if(e<=b)return a.left=c,a.top=e,a.width=d-c,a.height=b-e,!0}return!1}function bh(a,b){var c=Math.max(a.left,b.left),d=Math.min(a.left+a.width,b.left+b.width);if(c<=d){var e=Math.max(a.top,b.top);a=Math.min(a.top+a.height,b.top+b.height);if(e<=a)return new Yg(c,e,d-c,a-e)}return null} function ch(a,b){return a.left<=b.left+b.width&&b.left<=a.left+a.width&&a.top<=b.top+b.height&&b.top<=a.top+a.height}function dh(a,b){if(!a||!b)return null;a=new Yg(a.left,a.top,a.width,a.height);var c=Math.max(a.left+a.width,b.left+b.width),d=Math.max(a.top+a.height,b.top+b.height);a.left=Math.min(a.left,b.left);a.top=Math.min(a.top,b.top);a.width=c-a.left;a.height=d-a.top;return a}f.Fa=function(){return new Ae(this.width,this.height)}; f.ceil=function(){this.left=Math.ceil(this.left);this.top=Math.ceil(this.top);this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};f.floor=function(){this.left=Math.floor(this.left);this.top=Math.floor(this.top);this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};f.round=function(){this.left=Math.round(this.left);this.top=Math.round(this.top);this.width=Math.round(this.width);this.height=Math.round(this.height);return this};function I(a,b,c){if("string"===typeof b)(b=eh(a,b))&&(a.style[b]=c);else for(var d in b){c=a;var e=b[d],g=eh(c,d);g&&(c.style[g]=e)}}var fh={};function eh(a,b){var c=fh[b];if(!c){var d=Re(b);c=d;void 0===a.style[d]&&(d=(qc?"Webkit":pc?"Moz":z?"ms":null)+Se(d),void 0!==a.style[d]&&(c=d));fh[b]=c}return c}function gh(a,b){var c=a.style[Re(b)];return"undefined"!==typeof c?c:a.style[eh(a,b)]||""} function hh(a,b){var c=Ve(a);return c.defaultView&&c.defaultView.getComputedStyle&&(a=c.defaultView.getComputedStyle(a,null))?a[b]||a.getPropertyValue(b)||"":""}function ih(a,b){return a.currentStyle?a.currentStyle[b]:null}function jh(a,b){return hh(a,b)||ih(a,b)||a.style&&a.style[b]}function kh(a,b,c){if(b instanceof A){var d=b.x;b=b.y}else d=b,b=c;a.style.left=lh(d,!1);a.style.top=lh(b,!1)}function mh(a){return new A(a.offsetLeft,a.offsetTop)} function nh(a){a=a?Ve(a):document;return!z||Ic(9)||gf(Te(a).g)?a.documentElement:a.body}function oh(a){try{return a.getBoundingClientRect()}catch(b){return{left:0,top:0,right:0,bottom:0}}} function ph(a){if(z&&!Ic(8))return a.offsetParent;var b=Ve(a),c=jh(a,"position"),d="fixed"==c||"absolute"==c;for(a=a.parentNode;a&&a!=b;a=a.parentNode)if(11==a.nodeType&&a.host&&(a=a.host),c=jh(a,"position"),d=d&&"static"==c&&a!=b.documentElement&&a!=b.body,!d&&(a.scrollWidth>a.clientWidth||a.scrollHeight>a.clientHeight||"fixed"==c||"absolute"==c||"relative"==c))return a;return null} function qh(a){for(var b=new Ug(0,Infinity,Infinity,0),c=Te(a),d=c.g.body,e=c.g.documentElement,g=jf(c.g);a=ph(a);)if(!(z&&0==a.clientWidth||qc&&0==a.clientHeight&&a==d)&&a!=d&&a!=e&&"visible"!=jh(a,"overflow")){var h=rh(a),k=new A(a.clientLeft,a.clientTop);h.x+=k.x;h.y+=k.y;b.top=Math.max(b.top,h.y);b.right=Math.min(b.right,h.x+a.clientWidth);b.bottom=Math.min(b.bottom,h.y+a.clientHeight);b.left=Math.max(b.left,h.x)}d=g.scrollLeft;g=g.scrollTop;b.left=Math.max(b.left,d);b.top=Math.max(b.top,g);c= ff(Pf(c));b.right=Math.min(b.right,d+c.width);b.bottom=Math.min(b.bottom,g+c.height);return 0<=b.top&&0<=b.left&&b.bottom>b.top&&b.right>b.left?b:null} function sh(a,b){b=b||jf(document);var c=b||jf(document);var d=rh(a),e=rh(c),g=th(c);if(c==jf(document)){var h=d.x-c.scrollLeft;d=d.y-c.scrollTop;z&&!Ic(10)&&(h+=g.left,d+=g.top)}else h=d.x-e.x-g.left,d=d.y-e.y-g.top;a=uh(a);g=c.clientHeight-a.height;e=c.scrollLeft;var k=c.scrollTop;e+=Math.min(h,Math.max(h-(c.clientWidth-a.width),0));k+=Math.min(d,Math.max(d-g,0));c=new A(e,k);b.scrollLeft=c.x;b.scrollTop=c.y} function rh(a){var b=Ve(a),c=new A(0,0),d=nh(b);if(a==d)return c;a=oh(a);b=hf(Te(b).g);c.x=a.left+b.x;c.y=a.top+b.y;return c}function vh(a,b){a=wh(a);b=wh(b);return new A(a.x-b.x,a.y-b.y)}function xh(a){a=oh(a);return new A(a.left,a.top)}function wh(a){if(1==a.nodeType)return xh(a);a=a.changedTouches?a.changedTouches[0]:a;return new A(a.clientX,a.clientY)}function yh(a,b,c){var d=rh(a);b instanceof A&&(c=b.y,b=b.x);kh(a,a.offsetLeft+(b-d.x),a.offsetTop+(Number(c)-d.y))} function J(a,b,c){if(b instanceof Ae)c=b.height,b=b.width;else if(void 0==c)throw Error("missing height argument");zh(a,b);a.style.height=lh(c,!0)}function lh(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a}function zh(a,b){a.style.width=lh(b,!0)}function L(a){var b=uh;if("none"!=jh(a,"display"))return b(a);var c=a.style,d=c.display,e=c.visibility,g=c.position;c.visibility="hidden";c.position="absolute";c.display="inline";a=b(a);c.display=d;c.position=g;c.visibility=e;return a} function uh(a){var b=a.offsetWidth,c=a.offsetHeight,d=qc&&!b&&!c;return(void 0===b||d)&&a.getBoundingClientRect?(a=oh(a),new Ae(a.right-a.left,a.bottom-a.top)):new Ae(b,c)}function Ah(a){var b=rh(a);a=L(a);return new Yg(b.x,b.y,a.width,a.height)}function Bh(a,b){a=a.style;"opacity"in a?a.opacity=b:"MozOpacity"in a?a.MozOpacity=b:"filter"in a&&(a.filter=""===b?"":"alpha(opacity="+100*Number(b)+")")}function M(a,b){a.style.display=b?"":"none"}function Ch(a){return"none"!=a.style.display} function Dh(a){return"rtl"==jh(a,"direction")}var Eh=pc?"MozUserSelect":qc||nc?"WebkitUserSelect":null;function Fh(a,b,c){c=c?null:a.getElementsByTagName("*");if(Eh){if(b=b?"none":"",a.style&&(a.style[Eh]=b),c){a=0;for(var d;d=c[a];a++)d.style&&(d.style[Eh]=b)}}else if(z&&(b=b?"on":"",a.setAttribute("unselectable",b),c))for(a=0;d=c[a];a++)d.setAttribute("unselectable",b)} function Gh(a,b){var c=gf(Te(Ve(a)).g);if(!z||Hc("10")||c)Hh(a,b,"border-box");else{var d=a.style;c?(c=Ih(a),a=th(a),d.pixelWidth=b.width-a.left-c.left-c.right-a.right,d.pixelHeight=b.height-a.top-c.top-c.bottom-a.bottom):(d.pixelWidth=b.width,d.pixelHeight=b.height)}} function Jh(a){var b=Ve(a),c=z&&a.currentStyle;if(c&&gf(Te(b).g)&&"auto"!=c.width&&"auto"!=c.height&&!c.boxSizing)return b=Kh(a,c.width,"width","pixelWidth"),a=Kh(a,c.height,"height","pixelHeight"),new Ae(b,a);c=new Ae(a.offsetWidth,a.offsetHeight);b=Ih(a);a=th(a);return new Ae(c.width-a.left-b.left-b.right-a.right,c.height-a.top-b.top-b.bottom-a.bottom)} function Lh(a,b){var c=gf(Te(Ve(a)).g);if(!z||Hc("10")||c)Hh(a,b,"content-box");else{var d=a.style;c?(d.pixelWidth=b.width,d.pixelHeight=b.height):(c=Ih(a),a=th(a),d.pixelWidth=b.width+a.left+c.left+c.right+a.right,d.pixelHeight=b.height+a.top+c.top+c.bottom+a.bottom)}}function Hh(a,b,c){a=a.style;pc?a.MozBoxSizing=c:qc?a.WebkitBoxSizing=c:a.boxSizing=c;a.width=Math.max(b.width,0)+"px";a.height=Math.max(b.height,0)+"px"} function Kh(a,b,c,d){if(/^\d+px?$/.test(b))return parseInt(b,10);var e=a.style[c],g=a.runtimeStyle[c];a.runtimeStyle[c]=a.currentStyle[c];a.style[c]=b;b=a.style[d];a.style[c]=e;a.runtimeStyle[c]=g;return+b}function Mh(a,b){return(b=ih(a,b))?Kh(a,b,"left","pixelLeft"):0} function Ih(a){if(z){var b=Mh(a,"paddingLeft"),c=Mh(a,"paddingRight"),d=Mh(a,"paddingTop");a=Mh(a,"paddingBottom");return new Ug(d,c,a,b)}b=hh(a,"paddingLeft");c=hh(a,"paddingRight");d=hh(a,"paddingTop");a=hh(a,"paddingBottom");return new Ug(parseFloat(d),parseFloat(c),parseFloat(a),parseFloat(b))}var Nh={thin:2,medium:4,thick:6};function Oh(a,b){if("none"==ih(a,b+"Style"))return 0;b=ih(a,b+"Width");return b in Nh?Nh[b]:Kh(a,b,"left","pixelLeft")} function th(a){if(z&&!Ic(9)){var b=Oh(a,"borderLeft"),c=Oh(a,"borderRight"),d=Oh(a,"borderTop");a=Oh(a,"borderBottom");return new Ug(d,c,a,b)}b=hh(a,"borderLeftWidth");c=hh(a,"borderRightWidth");d=hh(a,"borderTopWidth");a=hh(a,"borderBottomWidth");return new Ug(parseFloat(d),parseFloat(c),parseFloat(a),parseFloat(b))};var Ph={"* ARIA-CHECKED":!0,"* ARIA-COLCOUNT":!0,"* ARIA-COLINDEX":!0,"* ARIA-CONTROLS":!0,"* ARIA-DESCRIBEDBY":!0,"* ARIA-DISABLED":!0,"* ARIA-EXPANDED":!0,"* ARIA-GOOG-EDITABLE":!0,"* ARIA-HASPOPUP":!0,"* ARIA-HIDDEN":!0,"* ARIA-LABEL":!0,"* ARIA-LABELLEDBY":!0,"* ARIA-MULTILINE":!0,"* ARIA-MULTISELECTABLE":!0,"* ARIA-ORIENTATION":!0,"* ARIA-PLACEHOLDER":!0,"* ARIA-READONLY":!0,"* ARIA-REQUIRED":!0,"* ARIA-ROLEDESCRIPTION":!0,"* ARIA-ROWCOUNT":!0,"* ARIA-ROWINDEX":!0,"* ARIA-SELECTED":!0,"* ABBR":!0, "* ACCEPT":!0,"* ACCESSKEY":!0,"* ALIGN":!0,"* ALT":!0,"* AUTOCOMPLETE":!0,"* AXIS":!0,"* BGCOLOR":!0,"* BORDER":!0,"* CELLPADDING":!0,"* CELLSPACING":!0,"* CHAROFF":!0,"* CHAR":!0,"* CHECKED":!0,"* CLEAR":!0,"* COLOR":!0,"* COLSPAN":!0,"* COLS":!0,"* COMPACT":!0,"* COORDS":!0,"* DATETIME":!0,"* DIR":!0,"* DISABLED":!0,"* ENCTYPE":!0,"* FACE":!0,"* FRAME":!0,"* HEIGHT":!0,"* HREFLANG":!0,"* HSPACE":!0,"* ISMAP":!0,"* LABEL":!0,"* LANG":!0,"* MAX":!0,"* MAXLENGTH":!0,"* METHOD":!0,"* MULTIPLE":!0, "* NOHREF":!0,"* NOSHADE":!0,"* NOWRAP":!0,"* OPEN":!0,"* READONLY":!0,"* REQUIRED":!0,"* REL":!0,"* REV":!0,"* ROLE":!0,"* ROWSPAN":!0,"* ROWS":!0,"* RULES":!0,"* SCOPE":!0,"* SELECTED":!0,"* SHAPE":!0,"* SIZE":!0,"* SPAN":!0,"* START":!0,"* SUMMARY":!0,"* TABINDEX":!0,"* TITLE":!0,"* TYPE":!0,"* VALIGN":!0,"* VALUE":!0,"* VSPACE":!0,"* WIDTH":!0},Qh={"* USEMAP":!0,"* ACTION":!0,"* CITE":!0,"* HREF":!0,"* LONGDESC":!0,"* SRC":!0,"LINK HREF":!0,"* FOR":!0,"* HEADERS":!0,"* NAME":!0,"A TARGET":!0, "* CLASS":!0,"* ID":!0,"* STYLE":!0};var Rh="undefined"!=typeof WeakMap&&-1!=WeakMap.toString().indexOf("[native code]"),Sh=0;function Th(){this.j=[];this.i=[];this.g="data-elementweakmap-index-"+Sh++}Th.prototype.set=function(a,b){if(zg(kg,a,"hasAttribute",[this.g])){var c=parseInt(zg(lg,a,"getAttribute",[this.g])||null,10);this.i[c]=b}else c=this.i.push(b)-1,Bg(a,this.g,c.toString()),this.j.push(a);return this}; Th.prototype.get=function(a){if(zg(kg,a,"hasAttribute",[this.g]))return a=parseInt(zg(lg,a,"getAttribute",[this.g])||null,10),this.i[a]};Th.prototype.clear=function(){this.j.forEach(function(a){zg(ng,a,"removeAttribute",[this.g])},this);this.j=[];this.i=[]};var Uh=!z||Ic(10),Vh=!z||null==document.documentMode;function Wh(){};var Xh={APPLET:!0,AUDIO:!0,BASE:!0,BGSOUND:!0,EMBED:!0,FORM:!0,IFRAME:!0,ISINDEX:!0,KEYGEN:!0,LAYER:!0,LINK:!0,META:!0,OBJECT:!0,SCRIPT:!0,SVG:!0,STYLE:!0,TEMPLATE:!0,VIDEO:!0};var Yh={A:!0,ABBR:!0,ACRONYM:!0,ADDRESS:!0,AREA:!0,ARTICLE:!0,ASIDE:!0,B:!0,BDI:!0,BDO:!0,BIG:!0,BLOCKQUOTE:!0,BR:!0,BUTTON:!0,CAPTION:!0,CENTER:!0,CITE:!0,CODE:!0,COL:!0,COLGROUP:!0,DATA:!0,DATALIST:!0,DD:!0,DEL:!0,DETAILS:!0,DFN:!0,DIALOG:!0,DIR:!0,DIV:!0,DL:!0,DT:!0,EM:!0,FIELDSET:!0,FIGCAPTION:!0,FIGURE:!0,FONT:!0,FOOTER:!0,FORM:!0,H1:!0,H2:!0,H3:!0,H4:!0,H5:!0,H6:!0,HEADER:!0,HGROUP:!0,HR:!0,I:!0,IMG:!0,INPUT:!0,INS:!0,KBD:!0,LABEL:!0,LEGEND:!0,LI:!0,MAIN:!0,MAP:!0,MARK:!0,MENU:!0,METER:!0,NAV:!0, NOSCRIPT:!0,OL:!0,OPTGROUP:!0,OPTION:!0,OUTPUT:!0,P:!0,PRE:!0,PROGRESS:!0,Q:!0,S:!0,SAMP:!0,SECTION:!0,SELECT:!0,SMALL:!0,SOURCE:!0,SPAN:!0,STRIKE:!0,STRONG:!0,STYLE:!0,SUB:!0,SUMMARY:!0,SUP:!0,TABLE:!0,TBODY:!0,TD:!0,TEXTAREA:!0,TFOOT:!0,TH:!0,THEAD:!0,TIME:!0,TR:!0,TT:!0,U:!0,UL:!0,VAR:!0,WBR:!0};var Zh={"ANNOTATION-XML":!0,"COLOR-PROFILE":!0,"FONT-FACE":!0,"FONT-FACE-SRC":!0,"FONT-FACE-URI":!0,"FONT-FACE-FORMAT":!0,"FONT-FACE-NAME":!0,"MISSING-GLYPH":!0}; function $h(a){a=a||new ai;bi(a);this.g=bc(a.g);this.N=bc(a.ua);this.j=bc(a.wa);this.oa=a.na;a.Ca.forEach(function(b){if(!Ab(b,"data-"))throw new Sa('Only "data-" attributes allowed, got: %s.',[b]);if(Ab(b,"data-sanitizer-"))throw new Sa('Attributes with "%s" prefix are not allowed, got: %s.',["data-sanitizer-",b]);this.g["* "+b.toUpperCase()]=ci},this);a.Ba.forEach(function(b){b=b.toUpperCase();if(!Ob(b,"-")||Zh[b])throw new Sa("Only valid custom element tag names allowed, got: %s.",[b]);this.j[b]= !0},this);this.ma=a.j;this.s=a.Qa;this.o=null;this.O=a.oa}u($h,Wh);function di(a){return function(b,c){return(b=a(Db(b),c))&&"about:invalid#zClosurez"!=qd(b)?qd(b):null}}function ai(){this.g={};v([Ph,Qh],function(a){Wb(a).forEach(function(b){this.g[b]=ci},this)},this);this.i={};this.Ca=[];this.Ba=[];this.ua=bc(Xh);this.wa=bc(Yh);this.na=!1;this.ma=wd;this.O=this.o=this.s=this.j=Oc;this.Qa=null;this.N=this.oa=!1} function ei(a,b){return function(c,d,e,g){c=a(c,d,e,g);return null==c?null:b(c,d,e,g)}}function fi(a,b,c,d){a[c]&&!b[c]&&(a[c]=ei(a[c],d))} function bi(a){if(a.N)throw Error("HtmlSanitizer.Builder.build() can only be used once.");fi(a.g,a.i,"* USEMAP",gi);var b=di(a.ma);["* ACTION","* CITE","* HREF"].forEach(function(d){fi(this.g,this.i,d,b)},a);var c=di(a.j);["* LONGDESC","* SRC","LINK HREF"].forEach(function(d){fi(this.g,this.i,d,c)},a);["* FOR","* HEADERS","* NAME"].forEach(function(d){fi(this.g,this.i,d,t(hi,this.s))},a);fi(a.g,a.i,"A TARGET",t(ii,["_blank","_self"]));fi(a.g,a.i,"* CLASS",t(ji,a.o));fi(a.g,a.i,"* ID",t(ki,a.o));fi(a.g, a.i,"* STYLE",t(a.O,c));a.N=!0}function li(a,b){a||(a="*");return(a+" "+b).toUpperCase()}function ci(a){return Db(a)}function ii(a,b){b=Db(b);return cb(a,b.toLowerCase())?b:null}function gi(a){return(a=Db(a))&&"#"==a.charAt(0)?a:null}function hi(a,b,c){return a(Db(b),c)}function ji(a,b,c){b=b.split(/(?:\s+)/);for(var d=[],e=0;e"+b+""),Sg(b),b=b.innerHTML);b=me(b);var c=document.createElement("template");if(Vh&&"content"in c)oe(c,b),c=c.content;else{var d=document.implementation.createHTMLDocument("x");c=d.body;oe(d.body,b)}b=document.createTreeWalker(c,NodeFilter.SHOW_ELEMENT|NodeFilter.SHOW_TEXT,null,!1);for(c=Rh? new WeakMap:new Th;d=b.nextNode();){c:{var e=d;switch(Fg(e)){case 3:e=mi(this,e);break c;case 1:if("TEMPLATE"==Eg(e).toUpperCase())e=null;else{var g=Eg(e).toUpperCase();if(g in this.N||"http://www.w3.org/1999/xhtml"!=Jg(e))var h=null;else this.j[g]?h=document.createElement(g):(h=E("SPAN"),this.oa&&Bg(h,"data-sanitizer-original-tag",g.toLowerCase()));if(h){var k=h,l=Ag(e);if(null!=l)for(var n=0;g=l[n];n++)if(g.specified){var r=e;var x=g;var D=x.name;if(Ab(D,"data-sanitizer-"))x=null;else{var H=Eg(r); x=x.value;var K={tagName:Db(H).toLowerCase(),attributeName:Db(D).toLowerCase()},V={Qk:void 0};"style"==K.attributeName&&(V.Qk=Cg(r));r=li(H,D);r in this.g?(D=this.g[r],x=D(x,K,V)):(D=li(null,D),D in this.g?(D=this.g[D],x=D(x,K,V)):x=null)}null!==x&&Bg(k,g.name,x)}e=h}else e=null}break c;default:e=null}}if(e){if(1==Fg(e)&&c.set(d,e),d=Gg(d),g=!1,d)h=Fg(d),k=Eg(d).toLowerCase(),l=Gg(d),11!=h||l?"body"==k&&l&&(h=Gg(l))&&!Gg(h)&&(g=!0):g=!0,h=null,g||!d?h=a:1==Fg(d)&&(h=c.get(d)),h.content&&(h=h.content), h.appendChild(e)}else rf(d)}c.clear&&c.clear()}else a=E("SPAN");0")+1,a.lastIndexOf(""+b);b=(new DOMParser).parseFromString(Ni(b),"text/html");for(var c=b.createElement("div");ti(b.body).length;)c.appendChild(ui(b.body));b=b.createTreeWalker(c,NodeFilter.SHOW_ELEMENT|NodeFilter.SHOW_TEXT,function(h){return Ui(a,h)},!1);c=b.nextNode();for(var d=document.createElement("div"),e=d;null!==c;){var g=void 0;if(si(c)===Node.TEXT_NODE)g=document.createTextNode(c.data);else if(si(c)===Node.ELEMENT_NODE)g=Vi(a,c);else throw Error("Node is not of type text or element"); e.appendChild(g);if(c=b.firstChild())e=g;else for(;!(c=b.nextSibling())&&(c=b.parentNode());)e=e.parentNode}b=(new XMLSerializer).serializeToString(d);b=b.slice(b.indexOf(">")+1,b.lastIndexOf(">>0);function wj(a){if("function"===typeof a)return a;a[Fj]||(a[Fj]=function(b){return a.handleEvent(b)});return a[Fj]};function Gj(a){aj.call(this);this.N=a;this.j={}}u(Gj,aj);var Hj=[];f=Gj.prototype;f.ka=function(a,b,c,d){return Ij(this,a,b,c,d)};function Jj(a,b,c,d,e){Ij(a,b,c,d,!1,e)}function Ij(a,b,c,d,e,g){Array.isArray(c)||(c&&(Hj[0]=c.toString()),c=Hj);for(var h=0;h=a.keyCode)return!1;if(Pj(a.keyCode))return!0;switch(a.keyCode){case 18:case 20:case 93:case 17:case 40:case 35:case 27:case 36:case 45:case 37:case 224:case 91:case 144:case 12:case 34:case 33:case 19:case 255:case 44:case 39:case 145:case 16:case 38:case 252:case 224:case 92:return!1;case 0:return!pc;default:return 166>a.keyCode||183=a||96<=a&&106>=a||65<=a&&90>=a||(qc||nc)&&0==a)return!0;switch(a){case 32:case 43:case 63:case 64:case 107:case 109:case 110:case 111:case 186:case 59:case 189:case 187:case 61:case 188:case 190:case 191:case 192:case 222:case 219:case 220:case 221:case 163:case 58:return!0;case 173:return pc;default:return!1}}function Rj(a){if(pc)a=Sj(a);else if(sc&&qc)switch(a){case 93:a=91}return a} function Sj(a){switch(a){case 61:return 187;case 59:return 186;case 173:return 189;case 224:return 91;case 0:return 224;default:return a}};function Tj(a){if(a.lc&&"function"==typeof a.lc)return a.lc();if("undefined"!==typeof Map&&a instanceof Map||"undefined"!==typeof Set&&a instanceof Set)return Array.from(a.values());if("string"===typeof a)return a.split("");if(Fa(a)){for(var b=[],c=a.length,d=0;dc&&(c=a.length);var d=a.indexOf("?");if(0>d||d>c){d=c;var e=""}else e=a.substring(d+1,c);a=[a.substr(0,d),e,a.substr(c)];c=a[1];a[1]=b?c?c+"&"+b:b:c;a=a[0]+(a[1]?"?"+a[1]:"")+a[2]}return a}function Zj(a,b,c,d){for(var e=c.length;0<=(b=a.indexOf(c,b))&&bd)return null;var e=b.indexOf("&",d);if(0>e||e>c)e=c;d+=a.length+1;return Ge(b.substr(d,e-d))}var ck=/[?&]($|#)/;function Q(a,b){this.i=this.O=this.s="";this.ma=null;this.g=this.o="";this.N=!1;var c;a instanceof Q?(this.N=void 0!==b?b:a.N,dk(this,a.s),this.O=a.O,this.i=a.i,ek(this,a.ma),fk(this,a.o),gk(this,a.j.clone()),this.g=a.g):a&&(c=String(a).match(Wj))?(this.N=!!b,dk(this,c[1]||"",!0),this.O=hk(c[2]||""),this.i=hk(c[3]||"",!0),ek(this,c[4]),fk(this,c[5]||"",!0),gk(this,c[6]||"",!0),this.g=hk(c[7]||"")):(this.N=!!b,this.j=new ik(null,this.N))} Q.prototype.toString=function(){var a=[],b=this.s;b&&a.push(jk(b,kk,!0),":");var c=this.i;if(c||"file"==b)a.push("//"),(b=this.O)&&a.push(jk(b,kk,!0),"@"),a.push(encodeURIComponent(String(c)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),c=this.ma,null!=c&&a.push(":",String(c));if(c=this.o)this.i&&"/"!=c.charAt(0)&&a.push("/"),a.push(jk(c,"/"==c.charAt(0)?lk:mk,!0));(c=this.j.toString())&&a.push("?",c);(c=this.g)&&a.push("#",jk(c,nk));return a.join("")};Q.prototype.clone=function(){return new Q(this)}; function dk(a,b,c){a.s=c?hk(b,!0):b;a.s&&(a.s=a.s.replace(/:$/,""))}function ek(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.ma=b}else a.ma=null}function fk(a,b,c){a.o=c?hk(b,!0):b}function gk(a,b,c){b instanceof ik?(a.j=b,ok(a.j,a.N)):(c||(b=jk(b,pk)),a.j=new ik(b,a.N))}Q.prototype.getQuery=function(){return this.j.toString()};function R(a,b,c){a.j.set(b,c);return a}function S(a,b){return a.j.get(b)}function qk(a,b){a.j.remove(b)} function hk(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""}function jk(a,b,c){return"string"===typeof a?(a=encodeURI(a).replace(b,rk),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null}function rk(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)}var kk=/[#\/\?@]/g,mk=/[#\?:]/g,lk=/[#\?]/g,pk=/[#\?@]/g,nk=/#/g;function ik(a,b){this.i=this.g=null;this.j=a||null;this.o=!!b} function sk(a){a.g||(a.g=new Map,a.i=0,a.j&&Xj(a.j,function(b,c){a.add(Ge(b),c)}))}function tk(a){var b=Uj(a);if("undefined"==typeof b)throw Error("Keys are undefined");var c=new ik(null,void 0);a=Tj(a);for(var d=0;da.i&&(a.i++,b.next=a.g,a.g=b)};function Hk(a,b){var c=a;b&&(c=q(a,b));c=Ik(c);"function"!==typeof p.setImmediate||p.Window&&p.Window.prototype&&!y("Edge")&&p.Window.prototype.setImmediate==p.setImmediate?(Jk||(Jk=Kk()),Jk(c)):p.setImmediate(c)}var Jk; function Kk(){var a=p.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!y("Presto")&&(a=function(){var e=E("IFRAME");e.style.display="none";document.documentElement.appendChild(e);var g=e.contentWindow;e=g.document;e.open();e.close();var h="callImmediate"+Math.random(),k="file:"==g.location.protocol?"*":g.location.protocol+"//"+g.location.host;e=q(function(l){if(("*"==k||l.origin==k)&&l.data==h)this.port1.onmessage()},this);g.addEventListener("message", e,!1);this.port1={};this.port2={postMessage:function(){g.postMessage(h,k)}}});if("undefined"!==typeof a&&!y("Trident")&&!y("MSIE")){var b=new a,c={},d=c;b.port1.onmessage=function(){if(void 0!==c.next){c=c.next;var e=c.cb;c.cb=null;e()}};return function(e){d.next={cb:e};d=d.next;b.port2.postMessage(0)}}return function(e){p.setTimeout(e,0)}}var Ik=Pc;function Lk(a){p.setTimeout(function(){throw a;},0)};function Mk(){this.i=this.g=null}Mk.prototype.add=function(a,b){var c=Nk.get();c.set(a,b);this.i?this.i.next=c:this.g=c;this.i=c};Mk.prototype.remove=function(){var a=null;this.g&&(a=this.g,this.g=this.g.next,this.g||(this.i=null),a.next=null);return a};var Nk=new Fk(function(){return new Ok},function(a){return a.reset()});function Ok(){this.next=this.g=this.Ie=null}Ok.prototype.set=function(a,b){this.Ie=a;this.g=b;this.next=null};Ok.prototype.reset=function(){this.next=this.g=this.Ie=null};function Pk(a,b){Qk||Rk();Sk||(Qk(),Sk=!0);Tk.add(a,b)}var Qk;function Rk(){if(p.Promise&&p.Promise.resolve){var a=p.Promise.resolve(void 0);Qk=function(){a.then(Uk)}}else Qk=function(){Hk(Uk)}}var Sk=!1,Tk=new Mk;function Uk(){for(var a;a=Tk.remove();){try{a.Ie.call(a.g)}catch(b){Lk(b)}Gk(Nk,a)}Sk=!1};function Vk(a){if(!a)return!1;try{return!!a.$goog_Thenable}catch(b){return!1}};function Wk(a){this.g=0;this.O=void 0;this.o=this.i=this.j=null;this.s=this.N=!1;if(a!=Ca)try{var b=this;a.call(void 0,function(c){Xk(b,2,c)},function(c){Xk(b,3,c)})}catch(c){Xk(this,3,c)}}function Yk(){this.next=this.context=this.i=this.j=this.g=null;this.o=!1}Yk.prototype.reset=function(){this.context=this.i=this.j=this.g=null;this.o=!1};var Zk=new Fk(function(){return new Yk},function(a){a.reset()});function $k(a,b,c){var d=Zk.get();d.j=a;d.i=b;d.context=c;return d} function al(){var a,b,c=new Wk(function(d,e){a=d;b=e});return new bl(c,a,b)}Wk.prototype.then=function(a,b,c){return cl(this,"function"===typeof a?a:null,"function"===typeof b?b:null,c)};Wk.prototype.$goog_Thenable=!0;Wk.prototype.cancel=function(a){if(0==this.g){var b=new dl(a);Pk(function(){el(this,b)},this)}}; function el(a,b){if(0==a.g)if(a.j){var c=a.j;if(c.i){for(var d=0,e=null,g=null,h=c.i;h&&(h.o||(d++,h.g==a&&(e=h),!(e&&1=b})}function Ol(a,b){return a.g.find(function(c){return Wg(Zg(Kl(c)),b)})};function Pl(){this.g=[];this.cells=[]}u(Pl,Ll);f=Pl.prototype;f.Bm=0;f.marginTop=0;f.marginRight=0;f.zi=0;f.ql=0;f.Rj=0;f.jq=!1;f.Bb=function(){return this.wb};f.Db=function(){return this.Cb}; function Ql(a){a.O();for(var b=a.Bm,c=0;cthis.na)if(this.dispatchEvent(new Hm("start",this,a.clientX,a.clientY,a)))this.i=!0;else{this.Hd||this.Xi(a);return}}c=Km(this,b,c);b=c.x;c=c.y;this.i&&this.dispatchEvent(new Hm("beforedrag",this,a.clientX,a.clientY,a,b,c))&&(Lm(this,a,b,c),a.preventDefault())}}; function Km(a,b,c){var d=hf(Te(a.j).g);b+=d.x-a.wa.x;c+=d.y-a.wa.y;a.wa=d;a.deltaX+=b;a.deltaY+=c;return new A(Im(a,a.deltaX),Jm(a,a.deltaY))}f.mv=function(a){var b=Km(this,0,0);a.clientX=this.clientX;a.clientY=this.clientY;Lm(this,a,b.x,b.y)};function Lm(a,b,c,d){a.Sk(c,d);a.dispatchEvent(new Hm("drag",a,b.clientX,b.clientY,b,c,d))}function Im(a,b){var c=a.ua;a=isNaN(c.left)?null:c.left;c=isNaN(c.width)?0:c.width;return Math.min(null!=a?a+c:Infinity,Math.max(null!=a?a:-Infinity,b))} function Jm(a,b){var c=a.ua;a=isNaN(c.top)?null:c.top;c=isNaN(c.height)?0:c.height;return Math.min(null!=a?a+c:Infinity,Math.max(null!=a?a:-Infinity,b))}f.Sk=function(a,b){this.target.style.left=a+"px";this.target.style.top=b+"px"};function Hm(a,b,c,d,e,g,h){dj.call(this,a);this.clientX=c;this.clientY=d;this.i=e;this.left=void 0!==g?g:b.deltaX;this.top=void 0!==h?h:b.deltaY}u(Hm,dj);function Mm(a){this.Ud=new Map;var b=arguments.length;if(1b||b>cn(this))throw Error("Child component index out of bounds");this.ma&&this.N||(this.ma={},this.N=[]);if(a.getParent()==this){var d=a.getId();this.ma[d]=a;eb(this.N,a)}else ac(this.ma,a.getId(),a);a.ke(this);kb(this.N,b,0,a);a.$a&&this.$a&&a.getParent()==this?(c=this.Ib(),(c.childNodes[b]||null)!=a.ha()&&(a.ha().parentElement==c&&c.removeChild(a.ha()),b=c.childNodes[b]||null,c.insertBefore(a.ha(),b))):c? (this.ya||this.Va(),b=dn(this,b+1),$m(a,this.Ib(),b?b.ya:null)):this.$a&&!a.$a&&a.ya&&a.ya.parentNode&&1==a.ya.parentNode.nodeType&&a.Ma()};f.Ib=function(){return this.ya};function en(a){null==a.Xb&&(a.Xb=Dh(a.$a?a.ya:a.g.g.body));return a.Xb}function cn(a){return a.N?a.N.length:0}function Zm(a,b){a.ma&&b?(a=a.ma,b=(null!==a&&b in a?a[b]:void 0)||null):b=null;return b}function dn(a,b){return a.N?a.N[b]||null:null}function bn(a,b,c){a.N&&a.N.forEach(b,c)} function fn(a,b){return a.N&&b?a.N.indexOf(b):-1}f.removeChild=function(a,b){if(a){var c="string"===typeof a?a:a.getId();a=Zm(this,c);if(c&&a){var d=this.ma;c in d&&delete d[c];eb(this.N,a);b&&(a.kc(),a.ya&&F(a.ya));a.ke(null)}}if(!a)throw Error("Child is not in parent component");return a};function gn(a,b){this.ya=a;this.i=b};function hn(a,b){P.call(this);this.o=new Gj(this);this.qg(a||null);b&&(this.rg=b)}u(hn,P);f=hn.prototype;f.ya=null;f.Vn=!0;f.Un=null;f.ng=!1;f.Cl=-1;f.jo=!0;f.rg="toggle_display";f.getType=function(){return this.rg};f.ha=function(){return this.ya};f.qg=function(a){jn(this);this.ya=a};function jn(a){if(a.ng)throw Error("Can not change this state of the popup while showing.");}f.isVisible=function(){return this.ng}; f.Da=function(a){this.Ja&&this.Ja.stop();this.ua&&this.ua.stop();if(a){if(!this.ng&&this.Nl()){if(!this.ya)throw Error("Caller must call setElement before trying to show the popup");this.og();a=Ve(this.ya);if(this.Vn)if(this.o.ka(a,"mousedown",this.lp,!0),z){try{var b=a.activeElement}catch(d){}for(;b&&"IFRAME"==b.nodeName;){try{var c=Cf(b)}catch(d){break}a=c;b=a.activeElement}this.o.ka(a,"mousedown",this.lp,!0);this.o.ka(a,"deactivate",this.kp)}else this.o.ka(a,"blur",this.kp);"toggle_display"==this.rg? (this.ya.style.visibility="visible",M(this.ya,!0)):"move_offscreen"==this.rg&&this.og();this.ng=!0;this.Cl=Date.now();this.Ja?(vj(this.Ja,"end",this.Bi,!1,this),this.Ja.play()):this.Bi()}}else kn(this)};f.og=Ca;function kn(a,b){a.ng&&a.dispatchEvent({type:"beforehide",target:b})&&(a.o&&Lj(a.o),a.ng=!1,Date.now(),a.ua?(vj(a.ua,"end",t(a.Zn,b),!1,a),a.ua.play()):a.Zn(b))}f.Zn=function(a){"toggle_display"==this.rg?this.tu():"move_offscreen"==this.rg&&(this.ya.style.top="-10000px");this.kh(a)}; f.tu=function(){this.ya.style.visibility="hidden";M(this.ya,!1)};f.Nl=function(){return this.dispatchEvent("beforeshow")};f.Bi=function(){this.dispatchEvent("show")};f.kh=function(a){this.dispatchEvent({type:"hide",target:a})};f.lp=function(a){a=a.target;Bf(this.ya,a)||ln(this,a)||150>Date.now()-this.Cl||kn(this,a)}; f.kp=function(a){if(this.jo){var b=Ve(this.ya);if("undefined"!=typeof document.activeElement){if(a=b.activeElement,!a||Bf(this.ya,a)||"BODY"==a.tagName||ln(this,a))return}else if(a.target!=b)return;150>Date.now()-this.Cl||kn(this)}};function ln(a,b){return Ya(a.Un||[],function(c){return b===c||Bf(c,b)})}f.va=function(){hn.ta.va.call(this);this.o.Ha();$i(this.Ja);$i(this.ua);delete this.ya;delete this.o;delete this.Un};function mn(a,b){X.call(this,b);this.Of=!!a;this.ua=null;this.Nc=Rm({Uu:this.Fj},this)}u(mn,X);f=mn.prototype;f.Zk=null;f.Ei=!1;f.md=null;f.yc=null;f.Td=null;f.Hk=!1;f.lh=function(){return"goog-modalpopup"};f.Kh=function(){return this.md};f.Va=function(){mn.ta.Va.call(this);var a=this.ha();wb(a,Db(this.lh()).split(" "));Hf(a,!0);M(a,!1);nn(this);on(this)}; function nn(a){if(a.Of&&!a.yc){var b=a.g.Ra("IFRAME",{frameborder:0,style:"border:0;vertical-align:bottom;"});b.src=kd(Tm).toString();a.yc=b;a.yc.className=a.lh()+"-bg";M(a.yc,!1);Bh(a.yc,0)}a.md||(a.md=a.g.Ra("DIV",a.lh()+"-bg"),M(a.md,!1))}function on(a){a.Td||(a.Td=Of(a.g,"SPAN"),M(a.Td,!1),Hf(a.Td,!0),a.Td.style.position="absolute")}f.Lp=function(){this.Hk=!1};f.Ai=function(a){return!!a&&"DIV"==a.tagName}; f.Nb=function(a){mn.ta.Nb.call(this,a);a=Db(this.lh()).split(" ");wb(this.ha(),a);nn(this);on(this);Hf(this.ha(),!0);M(this.ha(),!1)};f.Ma=function(){this.yc&&sf(this.yc,this.ha());sf(this.md,this.ha());mn.ta.Ma.call(this);tf(this.Td,this.ha());this.Zk=new Um(this.g.g);Y(this).ka(this.Zk,"focusin",this.gv);pn(this,!1)};f.kc=function(){this.isVisible()&&this.Da(!1);$i(this.Zk);mn.ta.kc.call(this);F(this.yc);F(this.md);F(this.Td)}; f.Da=function(a){if(a!=this.Ei)if(this.Ba&&this.Ba.stop(),this.La&&this.La.stop(),this.wa&&this.wa.stop(),this.Ja&&this.Ja.stop(),this.$a&&pn(this,a),a){if(this.dispatchEvent("beforeshow")){try{this.ua=this.g.g.activeElement}catch(e){}this.Fj();this.mh();Y(this).ka(Pf(this.g),"resize",this.Fj).ka(Pf(this.g),"orientationchange",this.Nc);qn(this,!0);this.focus();this.Ei=!0;this.Ba&&this.La?(vj(this.Ba,"end",this.Di,!1,this),this.La.play(),this.Ba.play()):this.Di()}}else if(this.dispatchEvent("beforehide")){Y(this).Xa(Pf(this.g), "resize",this.Fj).Xa(Pf(this.g),"orientationchange",this.Nc);this.Ei=!1;this.wa&&this.Ja?(vj(this.wa,"end",this.Ci,!1,this),this.Ja.play(),this.wa.play()):this.Ci();a:{try{var b=this.g,c=b.g.body,d=b.g.activeElement||c;if(!this.ua||this.ua==c){this.ua=null;break a}(d==c||b.zm(this.ha(),d))&&this.ua.focus()}catch(e){}this.ua=null}}}; function pn(a,b){a.Fc||(a.Fc=new gn(a.ya,a.g));a=a.Fc;if(b){a.g||(a.g=[]);b=a.i.qo(a.i.g.body);for(var c=0;c=Mn&&(Bh(this.g,a),this.j=a)};f.Cf=function(){this.j=-1;Ln.ta.Cf.call(this)};f.Qe=function(){this.j=-1;Ln.ta.Qe.call(this)};f.show=function(){this.g.style.display=""};f.kb=function(){this.g.style.display="none"};function Nn(a,b,c){Ln.call(this,a,1,0,b,c)}u(Nn,Ln);Nn.prototype.Cf=function(){this.show();Nn.ta.Cf.call(this)};Nn.prototype.Qe=function(){this.kb();Nn.ta.Qe.call(this)}; function On(a,b,c,d,e){if(3!=b.length||3!=c.length)throw Error("Start and end points must be 3D");Kn.call(this,a,b,c,d,e)}u(On,Kn);On.prototype.mg=function(){for(var a=[],b=0;b2*this.size&&Xn(this),a=!0):a=!1;return a};function Xn(a){if(a.size!=a.g.length){for(var b=0,c=0;b=d.g.length)throw Qf;var g=d.g[b++];return a?g:d.i[g]};return e};function Zn(a,b){return Object.prototype.hasOwnProperty.call(a,b)};function ao(){this.i=new Wn;this.g=new bo("",void 0);this.g.next=this.g.g=this.g}f=ao.prototype;f.get=function(a,b){return(a=this.i.get(a))?a.value:b};f.set=function(a,b){var c=this.i.get(a);c?c.value=b:(c=new bo(a,b),this.i.set(a,c),a=c,a.g=this.g.g,a.next=this.g,this.g.g=a,a.g.next=a)};f.shift=function(){return co(this,this.g.next)};f.pop=function(){return co(this,this.g.g)};f.remove=function(a){return(a=this.i.get(a))?(a.remove(),this.i.remove(a.key),!0):!1}; f.ae=function(){return eo(this,function(a,b){return b})};f.lc=function(){return eo(this,function(a){return a})};f.forEach=function(a,b){for(var c=this.g.next;c!=this.g;c=c.next)a.call(b,c.value,c.key,this)};function eo(a,b){for(var c=[],d=a.g.next;d!=a.g;d=d.next)c.push(b.call(void 0,d.value,d.key,a));return c}function co(a,b){a.g!=b&&(b.remove(),a.i.remove(b.key));return b.value}function bo(a,b){this.key=a;this.value=b} bo.prototype.remove=function(){this.g.next=this.next;this.next.g=this.g;delete this.g;delete this.next};function fo(){P.call(this);this.i=new ao}u(fo,P);fo.prototype.j=function(a){a.sort(go);v(a,function(b){b.ke(this)},this);this.i=new ao;v(a,function(b){this.i.set(b.Pa(),b)},this);this.dispatchEvent("update")};function go(a,b){return ho(a)-ho(b)}function io(a){return a.i.lc()}function jo(a,b,c){a=io(a);for(var d=-1,e=0;e=b.ma&&b.cancel())}this.ua?this.ua.call(this.Qa,this):this.oa=!0;this.j||(a=new oo(this),po(this),qo(this,!1,a))}};mo.prototype.na=function(a,b){this.O=!1;qo(this,a,b)}; function qo(a,b,c){a.j=!0;a.i=c;a.o=!b;ro(a)}function po(a){if(a.j){if(!a.oa)throw new so(a);a.oa=!1}}mo.prototype.Fg=function(a){po(this);qo(this,!0,a)};function to(a,b,c,d){a.s.push([b,c,d]);a.j&&ro(a)}mo.prototype.then=function(a,b,c){var d,e,g=new Wk(function(h,k){e=h;d=k});to(this,e,function(h){h instanceof oo?g.cancel():d(h)});return g.then(a,b,c)};mo.prototype.$goog_Thenable=!0;function uo(a){return Ya(a.s,function(b){return"function"===typeof b[1]})} function ro(a){if(a.N&&a.j&&uo(a)){var b=a.N,c=vo[b];c&&(p.clearTimeout(c.lb),delete vo[b]);a.N=0}a.g&&(a.g.ma--,delete a.g);b=a.i;for(var d=c=!1;a.s.length&&!a.O;){var e=a.s.shift(),g=e[0],h=e[1];e=e[2];if(g=a.o?h:g)try{var k=g.call(e||a.Qa,b);void 0!==k&&(a.o=a.o&&(k==b||k instanceof Error),a.i=b=k);if(Vk(b)||"function"===typeof p.Promise&&b instanceof p.Promise)d=!0,a.O=!0}catch(l){b=l,a.o=!0,uo(a)||(c=!0)}}a.i=b;d&&(k=q(a.na,a,!0),d=q(a.na,a,!1),b instanceof mo?(to(b,k,d),b.wa=!0):b.then(k,d)); c&&(b=new wo(b),vo[b.lb]=b,a.N=b.lb)}function so(){Qa.call(this)}u(so,Qa);so.prototype.message="Deferred has already fired";so.prototype.name="AlreadyCalledError";function oo(){Qa.call(this)}u(oo,Qa);oo.prototype.message="Deferred was canceled";oo.prototype.name="CanceledError";function wo(a){this.lb=p.setTimeout(q(this.i,this),0);this.g=a}wo.prototype.i=function(){delete vo[this.lb];throw this.g;};var vo={};function xo(a,b){var c=b||{};b=c.document||document;var d=kd(a).toString(),e=Of(new Ue(b),"SCRIPT"),g={Pp:e,lg:void 0},h=new mo(g),k=null,l=null!=c.timeout?c.timeout:5E3;0a.length?"":a[1]};function gp(a){P.call(this);this.ob={};a&&this.Dd(a)}u(gp,P);f=gp.prototype;f.re=function(){return this.ob.w||this.getParent().g.width};f.de=function(){return this.ob.h||this.getParent().g.height};function Vl(a){return a.re()/a.de()}f.Fa=function(){return new Ae(this.re(),this.de())};f.Dd=function(a){for(var b in a)this.ob[b]=a[b];this.dispatchEvent("update")};f.ke=function(a){this.N=a};f.getParent=function(){return this.N};f.hb=function(){return this.ob.title}; f.Je=function(){var a=this.hb();return a?"Page "+a:""};function ho(a){return a.ob.order}f.xd=function(a){if(this.ob.src&&a){var b=new Q(this.ob.src);R(b,"w",a.width);return b.toString()}return this.ob.src};f.Pa=function(){return this.ob.pid};function hp(a,b,c){if(z&&!Hc("9")){var d=[];d[0]=O(a,"readystatechange",t(ip,a,t(jp,b),d))}else vj(a,"load",t(jp,b));c&&vj(a,"error",t(jp,c))}function jp(a){T(a)}function ip(a,b,c){if("complete"!=a.readyState)return!0;Dj(c[0]);b();return!1}var kp=E("div");function lp(a){if(a)if(z){kp.appendChild(a);var b=t(F,a);hp(a,b,b);a.src="//www.google.com/images/cleardot.gif"}else a.src="//www.google.com/images/cleardot.gif",F(a)};function mp(a,b,c,d,e,g,h){P.call(this);this.N=a;this.wb=b;this.Cb=c;this.j=d;this.i=e;this.oa=g;this.O=h;this.o=Math.ceil(this.wb/this.j);this.s=Math.ceil(this.Cb/this.i);this.g=[];for(a=0;ab)return a[c]}else for(c=a.length-1;0<=c;c--)if(a[c]Math.abs(e-d)})});a.push.apply(a,c);mb(a);return a};function Qp(a,b){fo.call(this);this.O={};a&&(this.Ap=a.prefix,this.Vo=a.image_prefix||a.prefix,a=Xa(a.page,function(c){c=new this.o(c);b&&(c.Ad=b);return c},this),this.j(a))}u(Qp,fo);Qp.prototype.tl=function(a){a=a.page;for(var b=0;bb.charCode&&Pj(d)?b.charCode:0):("keypress"==a.type?(iq&&(c=this.ak),b.keyCode==b.charCode?32>b.keyCode?(d=b.keyCode,e=0):(d=this.se,e=b.charCode):(d=b.keyCode||this.se,e=b.charCode||0)):(d=b.keyCode||this.se,e=b.charCode||0),sc&&63==e&&224==d&&(d=191));var g=d=Rj(d);d?63232<=d&&d in gq?g=gq[d]:25==d&&a.shiftKey&& (g=9):b.keyIdentifier&&b.keyIdentifier in hq&&(g=hq[b.keyIdentifier]);if(!pc||"keypress"!=a.type||Qj(g,this.Tc,a.shiftKey,a.ctrlKey,c,a.metaKey))a=g==this.Tc,this.Tc=g,b=new dq(g,e,a,b),b.altKey=c,this.dispatchEvent(b)};f.ha=function(){return this.ya};function fq(a,b,c){a.wj&&jq(a);a.ya=b;a.vj=O(a.ya,"keypress",a,c);a.Al=O(a.ya,"keydown",a.Fq,c,a);a.wj=O(a.ya,"keyup",a.Gq,c,a)}function jq(a){a.vj&&(Dj(a.vj),Dj(a.Al),Dj(a.wj),a.vj=null,a.Al=null,a.wj=null);a.ya=null;a.Tc=-1;a.se=-1} f.va=function(){eq.ta.va.call(this);jq(this)};function kq(a,b){if(!a)throw Error("Invalid class name "+a);if("function"!==typeof b)throw Error("Invalid decorator function "+b);lq[a]=b}var mq={},lq={};function nq(a){this.g=a}Da(nq);function oq(a,b){a&&(a.tabIndex=b?0:-1)}f=nq.prototype;f.dk=function(a){return"DIV"==a.tagName};function pq(a,b,c){c.id&&b.$g(c.id);var d=a.sg(),e=!1,g=tb(c);g&&Array.prototype.forEach.call(g,function(h){h==d?e=!0:h&&(h==d+"-disabled"?b.Ta(!1):h==d+"-horizontal"?qq(b,"horizontal"):h==d+"-vertical"&&qq(b,"vertical"))},a);e||w(c,d);rq(a,b,c);return c} function rq(a,b,c){if(c)for(var d=c.firstChild,e;d&&d.parentNode==c;){e=d.nextSibling;if(1==d.nodeType){var g=a.Nh(d);g&&(g.ya=d,b.isEnabled()||g.Ta(!1),b.Oa(g),an(g,d))}else d.nodeValue&&""!=Db(d.nodeValue)||c.removeChild(d);d=e}}f.Nh=function(a){a:{a=tb(a);for(var b=0,c=a.length;bthis.ac&&b<=this.ac?this.ac++:athis.ac&&this.ac--}; f.removeChild=function(a,b){if(a="string"===typeof a?Zm(this,a):a){var c=fn(this,a);-1!=c&&(c==this.ac?(a.Wc(!1),this.ac=-1):cb?c-1:b},0)}function Zq(a){ar(a,function(b,c){return(b+1)%c},a.ac)}function Yq(a){ar(a,function(b,c){b--;return 0>b?c-1:b},a.ac)} function ar(a,b,c){c=0>c?fn(a,a.bc):c;var d=cn(a);c=b.call(a,c,d);for(var e=0;e<=d;){var g=dn(a,c);if(g&&a.Wn(g)){a.Sd(c);break}e++;c=b.call(a,c,d)}}f.Wn=function(a){return a.isVisible()&&a.isEnabled()&&Aq(a,2)};function br(a){X.call(this);this.j=a?a:null;var b=this.g;a=b.ha("gb-mobile-buy-panel");var c=b.ha("gb-mobile-buy-button"),d=b.ha("gb-mobile-buy-close-button");b=b.ha("volume-left");a&&c&&d&&b&&(this.i=new Rq,an(this.i,a),this.O=c,this.na=d,an(this,b),this.i.Da(!1))}m(br,X); br.prototype.Ma=function(){var a=this;Y(this).ka(this.O,"click",this.s).ka(this.O,"keydown",function(b){32!=b.keyCode&&13!=b.keyCode||a.s()}).ka(this.na,"click",this.s).ka(this.na,"keydown",function(b){32!=b.keyCode&&13!=b.keyCode||a.s()})}; br.prototype.s=function(){if(this.i.isVisible()){this.i.Da(!1);xb(this.i.Ib(),"gb-mobile-buy-panel-visible");this.j&&(this.j.style.overflowX="auto",this.j.style.overflowY="scroll");this.O.focus();for(var a=ka(document.querySelectorAll('[role="alert"],#volume-center,.aria-hide-on-menu-open')),b=a.next();!b.done;b=a.next())b.value.removeAttribute("aria-hidden")}else this.i.Da(!0),w(this.i.Ib(),"gb-mobile-buy-panel-visible"),this.j&&(this.j.style.overflowX="hidden",this.j.style.overflowY="hidden"),this.i.Ib().focus(), cr(this)};function cr(a){var b=a.i.Ib().querySelectorAll('[role="button"],[href]'),c=b[0],d=b[b.length-1];Y(a).ka(a.i.Ib(),"keydown",function(e){9==e.keyCode&&(e.shiftKey?document.activeElement===c&&(e.preventDefault(),d.focus()):document.activeElement===d&&(e.preventDefault(),c.focus()))});a=ka(document.querySelectorAll('[role="alert"],#volume-center,.aria-hide-on-menu-open'));for(b=a.next();!b.done;b=a.next())wm(b.value,"hidden",!0)};function dr(){}dr.prototype.Pc=function(){};function er(a,b,c,d,e,g,h,k,l){var n=fr(c),r=Ah(a),x=qh(a);x&&ah(r,$g(x));x=Te(a);var D=Te(c);if(x.g!=D.g){var H=x.g.body;D=Pf(D);var K=new A(0,0),V=kf(Ve(H));if(kc(V,"parent")){var Za=H;do{var Eb=V==D?rh(Za):xh(Za);K.x+=Eb.x;K.y+=Eb.y}while(V&&V!=D&&V!=V.parent&&(Za=V.frameElement)&&(V=V.parent))}H=ze(K,rh(H));!z||Ic(9)||gf(x.g)||(H=ze(H,hf(x.g)));r.left+=H.x;r.top+=H.y}a=gr(a,b);b=r.left;a&4?b+=r.width:a&2&&(b+=r.width/2);r=new A(b,r.top+(a&1?r.height:0));r=ze(r,n);e&&(r.x+=(a&4?-1:1)*e.x,r.y+= (a&1?-1:1)*e.y);if(h)if(l)var ta=l;else if(ta=qh(c))ta.top-=n.y,ta.right-=n.x,ta.bottom-=n.y,ta.left-=n.x;return hr(r,c,d,g,ta,h,k)} function fr(a){if(a=a.offsetParent){var b="HTML"==a.tagName||"BODY"==a.tagName;if(!b||"static"!=jh(a,"position")){var c=rh(a);if(!b){b=Dh(a);var d;if(d=b){d=Yf&&0<=Pb(Dm,10);var e;if(e=zc)e=0<=Pb(Bm,10);var g=Xf&&0<=Pb(Dm,85);d=pc||d||e||g}b=d?-a.scrollLeft:b&&!oc&&"visible"!=jh(a,"overflowX")?a.scrollWidth-a.clientWidth-a.scrollLeft:a.scrollLeft;c=ze(c,new A(b,a.scrollTop))}}}return c||new A} function hr(a,b,c,d,e,g,h){a=a.clone();var k=gr(b,c);c=L(b);h=h?h.clone():c.clone();a=a.clone();h=h.clone();var l=0;if(d||0!=k)k&4?a.x-=h.width+(d?d.right:0):k&2?a.x-=h.width/2:d&&(a.x+=d.left),k&1?a.y-=h.height+(d?d.bottom:0):d&&(a.y+=d.top);if(g){if(e){d=a;k=h;l=0;65==(g&65)&&(d.x=e.right)&&(g&=-2);132==(g&132)&&(d.y=e.bottom)&&(g&=-5);d.xe.right&&(k.width=Math.min(e.right-d.x,n+ k.width-e.left),k.width=Math.max(k.width,0),l|=4)}d.x+k.width>e.right&&g&1&&(d.x=Math.max(e.right-k.width,e.left),l|=1);g&2&&(l|=(d.xe.right?32:0));d.ye.bottom&&(k.height=Math.min(e.bottom-d.y,n+k.height-e.top),k.height=Math.max(k.height,0),l|=8));d.y+k.height>e.bottom&&g&4&&(d.y=Math.max(e.bottom-k.height,e.top),l|=2);g&8&&(l|=(d.ye.bottom?128:0));e=l}else e=256; l=e}e=new Yg(0,0,0,0);e.left=a.x;e.top=a.y;e.width=h.width;e.height=h.height;a=l;if(a&496)return a;kh(b,new A(e.left,e.top));h=e.Fa();Be(c,h)||Gh(b,h);return a}function gr(a,b){return(b&8&&Dh(a)?b^4:b)&-9};function ir(a,b,c){this.g=a;this.i=b;this.O=c}u(ir,dr);ir.prototype.Pc=function(a,b,c){er(this.g,this.i,a,b,void 0,c,this.O)};function jr(a,b,c,d){ir.call(this,a,b);this.j=c?5:0;this.s=d||void 0}u(jr,ir);jr.prototype.N=function(){return this.j};jr.prototype.o=function(a){this.j=a};jr.prototype.Pc=function(a,b,c,d){var e=er(this.g,this.i,a,b,null,c,10,d,this.s);if(e&496){var g=kr(e,this.i);b=kr(e,b);e=er(this.g,g,a,b,null,c,10,d,this.s);e&496&&(g=kr(e,g),b=kr(e,b),er(this.g,g,a,b,null,c,this.j,d,this.s))}};function kr(a,b){a&48&&(b^=4);a&192&&(b^=1);return b};function lr(a,b){this.Lb=8;this.La=b||void 0;hn.call(this,a)}u(lr,hn);function mr(a){a.Lb=4;a.isVisible()&&a.og()}lr.prototype.nd=function(){return this.La||null};lr.prototype.setPosition=function(a){this.La=a||void 0;this.isVisible()&&this.og()};lr.prototype.og=function(){if(this.La){var a=!this.isVisible()&&"move_offscreen"!=this.getType(),b=this.ha();a&&(b.style.visibility="hidden",M(b,!0));this.La.Pc(b,this.Lb,this.Gl);a&&M(b,!1)}};function nr(a,b,c){a.timeOfStartCall=(new Date).getTime();var d=c||p,e=d.document,g=a.nonce||de(d);g&&!a.nonce&&(a.nonce=g);if("help"==a.flow){var h=Ba("document.location.href",d);!a.helpCenterContext&&h&&(a.helpCenterContext=h.substring(0,1200));h=!0;if(b&&JSON&&JSON.stringify){var k=JSON.stringify(b);(h=1200>=k.length)&&(a.psdJson=k)}h||(b={invalidPsd:!0})}b=[a,b,c];d.GOOGLE_FEEDBACK_START_ARGUMENTS=b;c=a.serverUri||"//www.google.com/tools/feedback";if(h=d.GOOGLE_FEEDBACK_START)h.apply(d,b);else{d= c+"/load.js?";for(var l in a)b=a[l],null==b||Ga(b)||(d+=encodeURIComponent(l)+"="+encodeURIComponent(b)+"&");a=Of(Te(e),"SCRIPT");g&&a.setAttribute("nonce",g);g=Il(d);a.src=kd(g);Yi(a);e.body.appendChild(a)}}Na("userfeedback.api.startFeedback",nr);function or(a){X.call(this);if(this.j=B("gb-mobile-appbar-back-button"))if(Y(this).ka(this.j,"click",this.s),zc&&Ob(Rb,"GSA")){w(this.j,"igsa-hide");var b=this.g.ha("gb-mobile-appbar-logo");w(b,"igsa-shift")}(this.i=B("gb-mobile-appbar-more"))&&pr(this);new br(a)}m(or,X); function pr(a){var b=B("gb-mobile-more-menu");if(b){var c=new lr(b);mr(c);c.setPosition(new jr(a.i,4));c.Da(!1);O(a.i,"click",function(){xb(b,"more-menu-hidden");c.Da(!0);c.ha().focus()});O(a.i,"keydown",function(d){if(32==d.keyCode||13==d.keyCode)xb(b,"more-menu-hidden"),c.Da(!0),c.ha().focus()})}else F(a.i)}or.prototype.s=function(){window.history.back();vc&&Xf&&1==window.history.length&&window.close()};Na("_OC_startFeedback",nr);function qr(a){P.call(this);a=a||Te();this.g=a.Ra(z?"DIV":"IFRAME",{style:"position:absolute;width:9em;height:9em;top:-99em",tabIndex:-1,"aria-hidden":"true"});a=a.g.body;a.insertBefore(this.g,a.firstChild);if(z)var b=this.g;else a:{a=this.g;try{b=a.contentWindow||(a.contentDocument?kf(a.contentDocument):null);break a}catch(c){}b=null}b=this.o=b;pc&&(a=b.document,a.open(),a.close());O(b,"resize",this.i,!1,this);this.j=this.g.offsetWidth}u(qr,P); qr.prototype.va=function(){qr.ta.va.call(this);Cj(this.o,"resize",this.i,!1,this);this.o=null;F(this.g);delete this.g};qr.prototype.i=function(){var a=this.g.offsetWidth;this.j!=a&&(this.j=a,this.dispatchEvent("fontsizechange"))};function rr(a){this.i=a;a=q(this.j,this);this.g=new Nj;O(this.g,"resize",a);var b=new qr;O(b,"fontsizechange",a);O(window,"DOMContentLoaded",q(this.resize,this))}rr.prototype.j=function(){this.resize();T(q(this.resize,this),100)};rr.prototype.resize=function(){var a=this.g.Fa(),b=Math.round(rh(this.i).y);this.i.style.height=a.height-b+"px"};function sr(a){var b=null;if(a=B(a))b=new rr(a),b.resize();return b};function tr(a){dj.call(this,"navigate");this.s=a}u(tr,dj);function ur(){return!(y("iPad")||y("Android")&&!y("Mobile")||y("Silk"))&&(y("iPod")||y("iPhone")||y("Android")||y("IEMobile"))};var vr=new WeakMap;function wr(a,b){a=[a];for(var c=b.length-1;0<=c;--c)a.push(typeof b[c],b[c]);return a.join("\x0B")};function xr(a,b,c,d){P.call(this);if(a&&!b)throw Error("Can't use invisible history without providing a blank page.");if(c)var e=c;else{e="history_state"+yr;var g=Yd("input",{type:"text",name:e,id:e,style:Zc("display:none")});document.write(Ud(g));e=B(e)}this.N=e;this.g=c?kf(Ve(c)):window;this.oa=b;z&&!b&&(this.oa="https"==window.location.protocol?md(Yc(Zc("https:///"))):md(Yc(Zc('javascript:""'))));this.Ya=new nl(150);bj(this,this.Ya);this.i=!a;this.j=new Gj(this);if(a||zr){if(d)var h=d;else{a="history_iframe"+ yr;b={id:a,style:Zc("display:none"),sandbox:void 0};c={};c.src=this.oa||null;c.srcdoc=null;d={sandbox:""};e={};for(var k in c)Object.prototype.hasOwnProperty.call(c,k)&&(e[k]=c[k]);for(var l in d)Object.prototype.hasOwnProperty.call(d,l)&&(e[l]=d[l]);if(b)for(h in b)if(Object.prototype.hasOwnProperty.call(b,h)){k=h.toLowerCase();if(k in c)throw Error("");k in d&&delete e[k];e[h]=b[h]}h=$d("iframe",e,void 0);document.write(Ud(h));h=B(a)}this.O=h;this.ua=!0}zr&&(this.j.ka(this.g,"load",this.fv),this.na= this.ma=!1);this.i?Ar(this,Br(this),!0):Cr(this,this.N.value);yr++}u(xr,P);xr.prototype.Pb=!1;xr.prototype.s=!1;xr.prototype.o=null; var Dr=function(a,b){function c(g){var h=ka(g);g=h.next().value;h=la(h);return a.apply(g,h)}function d(g){g=ka(g);g.next();g=la(g);return b(e,g)}b=void 0===b?wr:b;var e=Ha(a);return function(g){for(var h=[],k=0;kb?"":a.substring(b+1)} function Ar(a,b,c){a=a.g.location;var d=a.href.split("#")[0],e=Ob(a.href,"#");if(zr||e||b)d+="#"+b;d!=a.href&&(b=ud(d),c?te(a,b):se(a,b))}function Cr(a,b,c,d){if(a.ua||b!=Gr(a))if(a.ua=!1,b=encodeURIComponent(String(b)),z){var e=Cf(a.O);e.open("text/html",c?"replace":void 0);c=he(Yd("title",{},d||a.g.document.title),Yd("body",{},b));e.write(Ud(c));e.close()}else e=kd(a.oa).toString()+"#"+b,(a=a.O.contentWindow)&&(c?te(a.location,e):se(a.location,e))} function Gr(a){if(z)return a=Cf(a.O),a.body?Ge(a.body.innerHTML):null;var b=a.O.contentWindow;if(b){try{var c=Ge(Er(b))}catch(d){return a.s||(1!=a.s&&ol(a.Ya,1E4),a.s=!0),null}a.s&&(0!=a.s&&ol(a.Ya,150),a.s=!1);return c||null}return null}f.Jm=function(a){if(this.i){var b=Er(this.g);b!=this.o&&Fr(this,b,a)}if(!this.i||zr)if(b=Gr(this)||"",null==this.Xg||b==this.Xg)this.Xg=null,b!=this.o&&Fr(this,b,a)}; function Fr(a,b,c){a.o=a.N.value=b;a.i?(zr&&Cr(a,b),Ar(a,b)):Cr(a,b);a.dispatchEvent(new tr(Br(a),c))}var yr=0;var Hr={},Ir=null;var Jr="function"===typeof Uint8Array;function Kr(a){return null!==a&&"object"==typeof a&&!Array.isArray(a)&&!Lr(a)}function Mr(a,b){if(null!=a)return Array.isArray(a)||Kr(a)?Nr(a,b):b(a)}function Nr(a,b){if(Array.isArray(a)){for(var c=Array(a.length),d=0;de;e++){var g=c.concat(d[e].split(""));Hr[e]=g;for(var h=0;h>2];l=b[(l& 3)<<4|n>>4];n=b[(n&15)<<2|k>>6];k=b[k&63];c[e++]=h+l+n+k}h=0;k=d;switch(a.length-g){case 2:h=a[g+1],k=b[(h&15)<<2]||d;case 1:a=a[g],c[e]=b[a>>2]+b[(a&3)<<4|h>>4]+k+d}a=c.join("")}return a;default:return a}}function Qr(a){return Lr(a)?new Uint8Array(a):a}var Rr={Ju:{value:!0,configurable:!0}};function Or(a){Array.isArray(a)&&!Object.isFrozen(a)&&Object.defineProperties(a,Rr);return a}function Lr(a){return Jr&&null!=a&&a instanceof Uint8Array};function Sr(a,b){this.i=a;this.j=b;this.g={};this.o=!0;if(0=a.s?a.j?a.j[b]:void 0:a.i[b+a.o]}function bs(a,b,c){a.g||(a.g={});if(b in a.g)return a.g[b];var d=as(a,b);d||(d=Or([]),cs(a,b,d));c=new Sr(d,c);return a.g[b]=c}function cs(a,b,c,d){(void 0===d?0:d)||b>=a.s?($r(a),a.j[b]=c):a.i[b+a.o]=c}function ds(a,b,c,d){if(-1===c)return null;a.g||(a.g={});a.g[c]||(d=as(a,c,void 0===d?!1:d))&&(a.g[c]=new b(d));return a.g[c]} function es(a,b,c){a.g||(a.g={});var d=a.g[c];if(!d){var e=void 0===e?!1:e;d=as(a,c,e);null==d&&(d=Zr);d===Zr&&(d=Or([]),cs(a,c,d,e));e=d;d=[];for(var g=0;g":">","`":"`","\u0085":"…","\u00a0":" ","\u2028":"
","\u2029":"
"};function Bs(a){return Gs[a]} var As=/[\x00\x22\x26\x27\x3c\x3e]/g,Fs=/[\x00\x22\x27\x3c\x3e]/g,Hs=/^(?!on|src|(?:action|archive|background|cite|classid|codebase|content|data|dsync|href|http-equiv|longdesc|style|usemap)\s*$)(?:[a-z0-9_$:-]*)$/i,Ds=/<(?:!|\/?([a-zA-Z][a-zA-Z0-9:\-]*))(?:[^>'"]|"[^"]*"|'[^']*')*>/g,Es=/"+ys(null!=c?c:"")+"")};function Ls(a,b){this.j=a;this.N=!!b;this.o={0:this.j+"-arrowright",1:this.j+"-arrowup",2:this.j+"-arrowdown",3:this.j+"-arrowleft"}}m(Ls,dr);f=Ls.prototype;f.Hj=function(a){this.i=a};f.setPosition=function(a,b,c,d){null!=a&&(this.Jk=a);null!=b&&(this.Fk=b);"number"===typeof c&&(this.Sn=Math.max(c,15));"number"===typeof d&&(this.Ll=d)};f.Pc=function(a,b,c){a=this.Fk;2==a&&(a=0);Ms(this,this.Jk,a,2==this.Fk?Ns(this.Jk)?this.g.offsetHeight/2:this.g.offsetWidth/2:this.Sn,0,c)}; function Ms(a,b,c,d,e,g){if(a.i){var h=Os(b,c);var k=a.i;var l=a.g,n=a.Ea,r=L(k);a:{r=(Ns(b)?r.height/2:r.width/2)-d;var x=gr(k,h);if(n)n=n.clone(),l&&(l=fr(l),n.left+=l.x,n.right+=l.x,n.top+=l.y,n.bottom+=l.y);else if(n=qh(k),!n){k=r;break a}k=Zg(Ah(k));Ns(b)?k.topn.bottom&&x&1&&(r-=k.bottom-n.bottom):k.leftn.right&&x&4&&(r-=k.right-n.right);k=r}k=Ns(b)?new A(a.Ll,k):new A(k,a.Ll);r=Ns(b)?6:9;a.Dk&&2==e&&(r=Ns(b)?4:1); x=b^3;Ns(b)&&"rtl"==a.i.dir&&(x=b);h=er(a.i,Os(x,c),a.g,h,k,g,a.vl?r:0,void 0,a.Ea);if(2!=e&&h&496){Ms(a,b^3,c,d,a.Dk&&0==e?1:2,g);return}!a.N||h&496||(e=parseFloat(a.g.style.left),g=parseFloat(a.g.style.top),isFinite(e)&&0==e%1&&isFinite(g)&&0==g%1||kh(a.g,Math.round(e),Math.round(g)))}Ps(a,b,c,d)} function Ps(a,b,c,d){var e=a.s;Ub(a.o,function(g){zb(e,g,!1)},a);w(e,a.o[b]);e.style.top=e.style.left=e.style.right=e.style.bottom="";a.i?(c=vh(a.i,a.g),d=Qs(a.i,b),Ns(b)?e.style.top=Rs(c.y+d.y,a.g.offsetHeight-15)+"px":e.style.left=Rs(c.x+d.x,a.g.offsetWidth-15)+"px"):e.style[0==c?Ns(b)?"top":"left":Ns(b)?"bottom":"right"]=d+"px"}function Rs(a,b){return 15>b?15:we(a,15,b)}function Os(a,b){switch(a){case 2:return 0==b?1:5;case 1:return 0==b?0:4;case 0:return 0==b?12:13;default:return 0==b?8:9}} function Qs(a,b){var c=0,d=0;a=L(a);switch(b){case 2:c=a.width/2;break;case 1:c=a.width/2;d=a.height;break;case 0:d=a.height/2;break;case 3:c=a.width,d=a.height/2}return new A(c,d)}function Ns(a){return 0==a||3==a}f.vl=!1;f.Fk=2;f.Sn=20;f.Jk=3;f.Ea=null;f.Ll=-5;f.Dk=!1;function Ss(a){aj.call(this);this.i=a||Te()}m(Ss,aj);Ss.prototype.s=function(){vm(this.ha(),"tooltip");wm(this.ha(),"live","polite")};function Ts(a){Ss.call(this,a);this.g=this.i.Ra("DIV",Us()+"-contentId");this.j=this.i.Ra("DIV",Us()+"-arrow",this.i.Ra("DIV",Us()+"-arrowimplbefore"),this.i.Ra("DIV",Us()+"-arrowimplafter"));this.o=this.i.Ra("DIV",{"class":Us(),role:"tooltip"},this.g,this.j);this.s()}m(Ts,Ss);function Us(){return"jfk-tooltip"}Ts.prototype.ha=function(){return this.o};Ts.prototype.va=function(){Ss.prototype.va.call(this);this.o&&F(this.o)};function Vs(a){Ts.call(this,a)}m(Vs,Ts);Vs.prototype.s=function(){vm(this.ha(),"tooltip")};function Ws(a){return Ie(Db(a.replace(Xs,function(b,c){return Ys.test(c)?"":" "}).replace(/[\t\n ]+/g," ")))}var Ys=/^(?:abbr|acronym|address|b|em|i|small|strong|su[bp]|u)$/i,Xs=/<[!\/]?([a-z0-9]+)([\/ ][^>]*)?>/gi;function Zs(a){a=a||Te();var b=Ha(a.g);$s[b]||($s[b]=new at(a))}function bt(a,b){var c=b instanceof Sd?Ws(Td(b)):b;a.removeAttribute("title");a.removeAttribute("data-tooltip-contained");a.removeAttribute("data-tooltip");b?(b instanceof Sd?a.i=b:(a.setAttribute("data-tooltip",b),a.i=null),a.setAttribute("aria-label",c)):(a.i=null,a.removeAttribute("aria-label"));Zs(Te(a))}var $s={}; function at(a){Gj.call(this);this.wa=a;this.ua=new cm(this.ew,0,this);bj(this,this.ua);var b=kf();this.ma="function"===typeof b.MutationObserver?new b.MutationObserver(q(this.nt,this)):null;a=a.g;this.ka(a,"mouseout mousedown click blur focusout keydown".split(" "),this.Ks,!0);this.ka(a,["mouseover","focus","focusin"],this.Qv,!0)}m(at,Gj);f=at.prototype;f.va=function(){ct(this);Gj.prototype.va.call(this)}; function dt(a,b){switch(b.type){case "mousedown":case "mouseover":case "mouseout":case "click":a.Ba=!1;break;case "keydown":a.Ba=!0}}f.Qv=function(a){this.ma&&this.ma.disconnect();dt(this,a);var b=a.target;a="focus"==a.type||"focusin"==a.type;var c=this.g&&Bf(this.g.g,b);if(this.Ba||!a||c){this.Ca=a;if(a=b&&b.getAttribute&&this.ma)a=b.getAttribute("role")||null,a=cb(um,a);a&&(this.ma.observe(b,{attributes:!0}),(a=ym(b))&&(b=a));this.o=b}else this.o=null;et(this)}; f.Ks=function(a){dt(this,a);var b=a.target;b=this.g&&Bf(this.g.g,b);if("mousedown"!=a.type&&"click"!=a.type||!b)this.o=null,et(this)};f.nt=function(a){v(a,q(function(b){var c=ym(b.target);c&&"aria-activedescendant"==b.attributeName&&(this.o=c,et(this))},this))};function et(a){if(0==a.ua.lb||!a.i||!a.O){ct(a);var b=null!=a.O?a.O:50;a.ua.start(a.i?b:300)}}function ct(a){a.oa&&(pl(a.oa),a.oa=0,a.i=null)} f.ew=function(){if(!this.o)ft(this),this.O=this.i=null;else if(!(this.i&&this.g&&Bf(this.g.ha(),this.o))||this.i.getAttribute("data-tooltip-unhoverable")){var a=Mf(this.o,function(k){return k.getAttribute&&(k.getAttribute("data-tooltip-contained")||k.getAttribute("data-tooltip")||k.i)&&!k.getAttribute("data-tooltip-suspended")}),b=!1;this.i&&this.i!=a&&(ft(this),this.O=this.i=null,b=!0);if(!this.i&&a&&(this.i=a,gt(this,a))){var c=ge;if(a.getAttribute("data-tooltip-contained"))for(var d=$e("jfk-tooltip-data", a),e=0;e=b.scrollWidth&&b.offsetHeight>=b.scrollHeight||a.Ca&&"mouse"==b.getAttribute("data-tooltip-trigger")?!1:!0}function ht(a){if(a)switch(a.toLowerCase().split(",")[0]){case "l":return 0;case "t":return 2;case "r":return 3}return 1} f.Vp=function(a,b,c,d,e,g){this.oa=0;this.O=g;if(!this.g){this.g=new Vs(this.wa);ft(this);g=this.g.ha();this.wa.g.body.appendChild(g);bj(this,this.g);this.s=new Ls(Us(),!0);this.s.vl=!0;this.s.Dk=!0;g=this.s;var h=this.g.ha(),k=this.g.j;g.g=h;g.s=k}a:{if(c)switch(c.toLowerCase().split(",")[1]){case "l":g=0;break a;case "r":g=1;break a}g=2}this.s.setPosition(ht(c),g,void 0,d);xb(this.g.ha(),"jfk-tooltip-hide");this.na!=e&&(this.na&&!Cb(Pe(this.na))&&xb(this.g.ha(),this.na),Cb(Pe(e))||w(this.g.ha(), e),this.na=e);kh(this.g.ha(),0,0);if(b instanceof Sd)N(this.g.g,b);else for(rf(this.g.g);c=b.firstChild;)this.g.g.appendChild(c);this.s.Hj(a);this.s.Pc(null,0)};function ft(a){a.g&&w(a.g.ha(),"jfk-tooltip-hide")};function it(a){var b="Zf";if(a.Zf&&a.hasOwnProperty(b))return a.Zf;b=new a;return a.Zf=b};function jt(){}u(jt,sq);Da(jt);f=jt.prototype;f.tg=function(){return"button"};f.oe=function(a,b,c){switch(b){case 8:case 16:wm(a,"pressed",c);break;default:case 64:case 1:jt.ta.oe.call(this,a,b,c)}};f.Oc=function(a){var b=jt.ta.Oc.call(this,a);this.oc(b,a.tf());var c=a.Ab();c&&this.xc(b,c);Aq(a,16)&&this.oe(b,16,Bq(a,16));return b};f.Sb=function(a,b){b=jt.ta.Sb.call(this,a,b);var c=this.Ab(b);a.Ka=c;a.na=this.tf(b);Aq(a,16)&&this.oe(b,16,Bq(a,16));return b};f.Ab=Ca;f.xc=Ca;f.tf=function(a){return a.title}; f.oc=function(a,b){a&&(b?a.title=b:a.removeAttribute("title"))};f.nc=function(a,b){var c=en(a),d=this.Wa()+"-collapse-left",e=this.Wa()+"-collapse-right",g=c?e:d;b&1?Gq(a,g):Hq(a,g);c=c?d:e;b&2?Gq(a,c):Hq(a,c)};f.Wa=function(){return"goog-button"};function kt(){}u(kt,jt);Da(kt);f=kt.prototype;f.tg=function(){};f.Oc=function(a){Eq(a,!1);a.Pf&=-256;a.Zb(32,!1);return a.g.Ra("BUTTON",{"class":vq(this,a).join(" "),disabled:!a.isEnabled(),title:a.tf()||"",value:a.Ab()||""},a.Og()||"")};f.Fi=function(a){return"BUTTON"==a.tagName||"INPUT"==a.tagName&&("button"==a.type||"submit"==a.type||"reset"==a.type)};f.Sb=function(a,b){Eq(a,!1);a.Pf&=-256;a.Zb(32,!1);if(b.disabled){var c=this.Lh(1);w(b,c)}return kt.ta.Sb.call(this,a,b)}; f.Gi=function(a){Y(a).ka(a.ha(),"click",a.Re)};f.fk=Ca;f.Gm=Ca;f.Fm=function(a){return a.isEnabled()};f.nh=Ca;f.Zc=function(a,b,c){kt.ta.Zc.call(this,a,b,c);(a=a.ha())&&1==b&&(a.disabled=c)};f.Ab=function(a){return a.value};f.xc=function(a,b){a&&(a.value=b)};f.oe=Ca;function lt(a,b,c){Dq.call(this,a,b||kt.Eb(),c)}u(lt,Dq);f=lt.prototype;f.Ab=function(){return this.Ka};f.xc=function(a){this.Ka=a;this.wd().xc(this.ha(),a)};f.tf=function(){return this.na};f.oc=function(a){this.na=a;this.wd().oc(this.ha(),a)};f.nc=function(a){this.wd().nc(this,a)};f.va=function(){lt.ta.va.call(this);delete this.Ka;delete this.na};f.Ma=function(){lt.ta.Ma.call(this);if(Aq(this,32)){var a=this.ha();a&&Y(this).ka(a,"keyup",this.fe)}}; f.fe=function(a){return 13==a.keyCode&&"key"==a.type||32==a.keyCode&&"keyup"==a.type?this.Re(a):32==a.keyCode};kq("goog-button",function(){return new lt(null)});function Z(a,b,c,d){lt.call(this,a,mt.Eb(),b);this.wa=c||0;this.wb=d||0;this.La=!1}u(Z,lt);f=Z.prototype;f.Bb=function(){return this.wb};f.oc=function(a){this.na=a;var b=this.ha();b&&(this.La?bt(b,a):a?b.title=a:b.removeAttribute("title"))};f.Ta=function(a){this.isEnabled()!=a&&(Z.ta.Ta.call(this,a),nt(this))};f.focus=function(){var a=this.ya;try{a.focus()}catch(b){}};f.Ij=function(a){Z.ta.Ij.call(this,a);ot(this,!1)};f.af=function(a){Z.ta.af.call(this,a);this.isEnabled()&&ot(this,!0)}; f.he=function(a){Z.ta.he.call(this,a);this.isEnabled()&&ot(this,!0)};function ot(a,b){a.ha()&&zb(a.ha(),"jfk-button-clear-outline",b)}function nt(a){a.ha()&&pt(a.wd(),a)}function qt(a,b){if("string"===typeof a){var c=a;a=C("IMG");qe(a,c);J(a,21,21)}w(a,"jfk-button-img");c=[];c.push(a);b&&(a=C("SPAN","jfk-button-label",b),c.push(a));return c} function mt(){this.na=this.Wa()+"-standard";this.i=this.Wa()+"-action";this.oa=this.Wa()+"-primary";this.s=this.Wa()+"-default";this.N=this.Wa()+"-flat";this.ma=this.Wa()+"-narrow";this.O=this.Wa()+"-mini";this.o=this.Wa()+"-contrast"}u(mt,jt);mt.Eb=function(){return it(mt)};f=mt.prototype;f.If=function(a,b,c){a&&c.wa!=a&&(c.wa=a,nt(c));b&&c.wb!=b&&(c.wb=b,nt(c))};f.Wa=function(){return"jfk-button"}; f.Oc=function(a){var b=a.g,c=Is(Ks,{disabled:!a.isEnabled(),checked:Bq(a,16),style:a.wa,title:a.tf(),kw:a.La,value:a.Ab(),width:a.Bb()},void 0,b);b.ym(c,a.Gc());this.Sb(a,c);return c}; f.Sb=function(a,b){mt.ta.Sb.call(this,a,b);this.j||(this.j=ec(this.na,t(this.If,0,null),this.i,t(this.If,2,null),this.oa,t(this.If,3,null),this.s,t(this.If,1,null),this.N,t(this.If,4,null),this.O,t(this.If,5,null),this.o,t(this.If,6,null),this.ma,t(this.If,null,1)));for(var c=tb(b),d=0;d=Xg(this.Ka,this.O))}if(b){if(this.mi(),this.Wb=null,b=this.oa)b.Wb=null}else 3==yt(this)&&this.Gg();Ft.ta.Ug.call(this,a)};f.ol=function(){this.Wb!=this.ha()&&(this.wi=!1,this.Wb=this.ha())};f.fl=function(){return this.wi?100:Ft.ta.fl.call(this)};function Ht(a,b){a=new Ft(a);a.Ul(Gl(b.innerHTML));a.className="buy-tip-card";a.wa=new Ug(5,5,5,5);a.Wi=!0;a.dh=500;a.Xh=250};function It(a,b){this.Cb=a||200;this.wb=b||108;W.call(this)}u(It,W);It.prototype.Db=function(){return this.Cb};It.prototype.Bb=function(){return this.wb};function Jt(a){vt.call(this,a,void 0,void 0);this.jo=!1;this.Wi=!0;this.dh=500}m(Jt,Ft);Jt.prototype.Mj=function(a,b){b||(b=new jr(a,9,!0));Ft.prototype.Mj.call(this,a,b)};Jt.prototype.className="unified-hovercard";var Kt="ganpub ganclk dapp source_ip source_country source_domain authuser".split(" ");function Lt(a){var b=void 0===b?window.location.href:b;var c=new Q(b);R(a,"hl","en");(b=S(c,"output"))&&R(a,"output",b);b=S(c,"source");"ge-ipad-app"==b?(R(a,"dapp","2"),qk(a,"output")):"ge-tablet-app"==b?(R(a,"dapp","4"),qk(a,"output")):"ge-ip-app"==b?R(a,"dapp","1"):"ge-android-app"==b&&R(a,"dapp","3");S(c,"authuser")||qk(a,"authuser");Kt.forEach(function(d){var e=S(c,d);e&&R(a,d,e)})};function Mt(a,b,c){aj.call(this);this.i=null;this.data=a;this.g=b;this.maxWidth=c||500}m(Mt,aj);Mt.prototype.va=function(){this.i&&this.i.Ha()};function Nt(a){return a.i||(a.i=new Gj(a))} Mt.prototype.j=function(a){var b=C("DIV"),c=new Q(this.data.Aa.Vg||this.data.Aa.Cp);this.data.Aa.source&&R(c,"source",this.data.Aa.source);var d=this.data.hb();this.data.Aa.Zp&&(d+=": "+this.data.Aa.Zp);d=C("A",{},d);d.classList.add(this.g+"-title");pe(d,c.toString());b.appendChild(d);a.appendChild(b);Ot(this,a);b=C("DIV");if("number"===typeof(this.data.Aa.Fp||0)){d=this.data.Aa.Fp||0;c=Math.floor(d);d=0)|(<\/b>)/ig,Rt={VIEW_PAGES_PARTIAL:2,VIEW_PAGES_ALL:5,VIEW_PAGES_PARTIAL_FIXED:6,VIEW_PURCHASED:7,VIEW_GOOGLE_EDITIONS_PREVIEW:8};function St(){this.Aa={}}f=St.prototype;f.hb=function(){return this.Aa.title};f.Yb=function(){return this.Aa.nm};f.Rd=function(){return this.Aa.Rd};f.wl=function(){return this.Aa.wl};f.$f=function(){return this.Aa.$f};f.$h=function(){return this.Aa.$h};function Tt(){this.g=[]}f=Tt.prototype;f.getId=function(){return this.lb};f.$g=function(a){this.lb=a};f.hb=function(){return this.Ec};f.Pg=function(){return this.o};function Ut(a,b,c){if(Vt(a,b)||null==a.ma||!a.j)c&&c(null);else{var d=a.ma.clone();a=q(a.Es,a,b,c||Ca);R(d,"id",b);vl(d,a,"POST")}}function Wt(a,b,c){if(Vt(a,b)&&null!=a.oa&&a.na){var d=a.oa.clone();a=q(a.Ts,a,b,c||Ca);R(d,"id",b);vl(d,a,"POST")}else c&&c(null)} f.Es=function(a,b,c){var d=null;Dl(c.target)&&(d=new St,d.Aa.nm=a,this.g.push(d));b(d)};f.Ts=function(a,b,c){var d=null;Dl(c.target)&&(d=Vt(this,a),Xt(this,d));b(d)};function Xt(a,b){gb(a.g,function(c){return c.Yb()==b.Yb()})}function Vt(a,b){return ab(a.g,function(c){return c&&c.Yb()==b})};function Yt(a){this.Aa={};this.Aa.title=a.title;this.Aa.Zp=a.subtitle;this.Aa.Gk=a.authors;this.Aa.Cp=a.preview_url;this.Aa.Vg=a.info_url;this.Aa.Cj=a.pub_date;this.Aa.jp=a.num_pages;this.Aa.kq=a.viewability;this.Aa.Ww=a.subject;this.Aa.bq=a.thumbnail_url;this.Aa.dm=a.snippet;this.Aa.Pw=a.list_price;this.Aa.Op=a.sale_price;this.Aa.Uw=a.sale_price_better;this.Aa.Zu=a.offer_price;this.Aa.Lk=a.buy_url;this.Aa.Gp=a.read_url;this.Aa.tj=a.is_free_ebook||!1;this.Aa.rj=a.in_my_ebooks||!1;this.Aa.Rw=a.my_ebooks_url|| "";this.Aa.Fp=a.rating_score||0;this.Aa.Xu=a.num_reviews||0;this.Aa.Rd=a.is_purchased||!1;this.Aa.Zh=a.is_ebook||!1;this.Aa.Zw=a.write_review_url||"";this.Aa.ft=a.add_to_my_ebooks_url||"";this.Aa.vv=a.preview_ebook_url||"";this.Aa.Jv=a.reviews_url||"";this.Aa.Sj=a.view_order_url||"";this.Aa.Hw=a.add_to_my_ebooks_url;this.Aa.Ds=a.add_to_my_ebooks_url_is_on_play||!1;this.Aa.oj=a.has_flowing_text||!1;this.Aa.qj=a.has_scanned_text||!1;var b=ep(a.info_url);this.Aa.nm=b;this.Aa.Jw=a.canonical_atb_url|| "";this.Aa.wl=a.is_rentable||!1;this.Aa.dg=a.is_pre_order||!1;this.Aa.xp=a.on_sale_date||"";this.Aa.$f=a.is_pre_ordered||!1;this.Aa.Ow=a.issue_volume_count||0;this.Aa.$h=a.is_volume_cancelled||!1;this.Aa.Gs=a.cancelled_reason||"0";switch(a.rental_state){case 1:this.Aa.Ej=1;break;case 2:this.Aa.Ej=2}this.Aa.Fv=a.rental_end_utc||0}m(Yt,St);function Zt(a){this.g=[];this.$g(a.id);this.s=a.owner_uid;this.Ec=a.title;this.o=a.description;this.wa=a.num_volumes;this.ze=a.access||"0";this.Qa=a.can_modify_metadata;this.O=a.predefined;this.na=a.can_remove_volumes;this.j=a.can_add_volumes;this.ua=a.can_only_add_ebooks||!1;this.ma=new Q(a.add_vol_base_url);this.oa=new Q(a.del_vol_base_url);void 0!==a.paused&&(this.i=a.paused,this.N=a.pause_bookshelf_url);a.volumes&&(this.g=Xa(a.volumes,function(b){return new Yt(b)}))}m(Zt,Tt);function $t(){W.call(this);this.j=[];this.i=[]}u($t,W);function au(a){var b=new Q(kf().location);b=new Q(b);return a===parseInt(S(b,"as_coll"),10)}function bu(a,b,c){cu(a,b.getId())||(a=b.O?a.j:a.i,c?kb(a,void 0,0,b):a.push(b))}function du(a,b,c){var d=1==b.ze;a=new Q(a);R(a,"cl_title",b.hb());R(a,"cl_mode",d?"public":"private");b="cl_des="+encodeURIComponent(String(b.Pg()));vl(a,c,"POST",b)} $t.prototype.N=function(a){a=a.target;if(Dl(a)){a=new Zt(Fl(a));var b=cu(this,a.getId());b.Ec=a.hb();b.o=a.Pg();b.ze=a.ze;b=new dj("update",this);b.shelf=a;this.dispatchEvent(b)}};$t.prototype.s=function(a,b){b=b.target;Dl(b)&&(b=new Zt(Fl(b)),bu(this,b,a),a=new dj("add",this),a.shelf=b,this.dispatchEvent(a))};function eu(a,b){a.o=new Q(b);R(a.o,"jscmd","ClCreate")}function cu(a,b){return ab(fu(a),function(c){return c.getId()==b})}function fu(a){return pb(a.j,a.i)};function gu(a,b){var c=C("A",{},"View order");pe(c,a);c.classList.add(b);return c};function hu(a,b,c){Mt.call(this,a,b,c);S(new Q(this.data.Aa.Vg),"dapp")}m(hu,Mt); hu.prototype.render=function(a){rf(a);var b=C("DIV",this.g),c=C("DIV",this.g+"-meta");this.j(c);var d=C("DIV",this.data.Aa.Zh?this.g+"-footer":this.g+"-footer-nonebook"),e=C("DIV",this.g+"-footer-inner");if(this.data.Aa.Zh)if(this.data.$h()&&au(1))iu(this,e);else if(this.data.Aa.dg&&!this.data.Rd()||this.data.$f()){var g=C("DIV",this.g+"-pre-order-date");g.textContent="Available on: "+this.data.Aa.xp;e.appendChild(g);this.data.$f()&&au(1)&&iu(this,e)}else if(this.data.Rd()&&au(1))ju(this,e),iu(this, e);else{ju(this,e);g=!this.data.Rd()&&!this.data.Aa.tj;var h=this.data.Aa.tj&&!this.data.Aa.rj;if(g||h){g=C("SPAN",{"class":this.g+"-footer-inner-right"});if(h=this.data.Aa.vv||this.data.Aa.Gp){for(var k=h.search(ak),l=0,n,r=[];0<=(n=Zj(h,l,"source",k));)r.push(h.substring(l,n)),l=Math.min(h.indexOf("&",n)+1||k,k);r.push(h.substr(l));h=r.join("").replace(ck,"$1");h=Yj(h,"source","ebookstore")}h&&(k=C("A",{id:"unified-hovercard-preview-link"},"preview it"),pe(k,h),g.appendChild(k));e.appendChild(g)}}d.appendChild(e); b.appendChild(c);b.appendChild(d);a.appendChild(b);L(a).width>this.maxWidth&&J(a,this.maxWidth,"")}; hu.prototype.j=function(a){if(!(this.data.Rd()||this.data.$f()||this.data.$h())&&this.data.Aa.Sj&&au(1)){var b=C("IMG",{src:"/googlebooks/images/purchase_error.gif","class":this.g+"-error-icon"});b=C("DIV",this.g+"-card-error",b,"Credit card declined:");if(this.data.Aa.Sj){var c=gu(this.data.Aa.Sj,"primary"),d=C("SPAN");d.innerText=" ";b.appendChild(d);b.appendChild(c)}a.appendChild(b)}Mt.prototype.j.call(this,a);b=C("DIV",this.g+"-book-options");this.data.Aa.Zh?(this.data.Aa.tj?this.data.Aa.rj? ku(this,b):Qt(this,b,"eBook - FREE",this.data.Aa.ft,!this.data.Aa.Ds,void 0,"unified-hovercard-free-btn"):this.data.$f()?(c=C("SPAN",this.g+"-pre-ordered","Pre-ordered"),b.appendChild(c)):this.data.$h()&&au(1)?(c=C("DIV",this.g+"-cancelled"),d=this.data.Aa.Gs,0==d?G(c,"Cancelled - by customer request"):1==d?G(c,"Cancelled - problem with eBook"):2==d?G(c,"Cancelled - price change"):3==d?G(c,"Cancelled - publisher cancellation"):G(c,"Cancelled"),b.appendChild(c)):this.data.Rd()||this.data.Aa.rj?!this.data.Rd()&& this.data.Aa.rj?lu(this,b):this.data.Rd()&&ku(this,b):lu(this,b),au(7)&&(c=C("SPAN",this.g+"-offline-remove-options"),d=C("SPAN",{id:"unified-hovercard-remove-from-ebooks","class":this.g+"-fake-link"},"Remove from My eBooks"),d.id="hovercard-remove-from-my-ebooks",c.appendChild(d),b.appendChild(c))):(c=this.data.Aa.Cp,Xb(Rt,this.data.Aa.kq)&&!Cb(c)?Qt(this,b,"Preview",c,void 0,void 0,"unified-hovercard-preview-sample"):Qt(this,b,"Preview",c,!1,!0,"unified-hovercard-preview-sample"));a.appendChild(b)}; function iu(a,b){var c=C("DIV",{id:"unified-hovercard-purchased-shelf-links","class":a.g+"-order-links-container"}),d=a.data.Aa.Sj;d&&(d=gu(d,""),c.appendChild(d));a.data.$f()||(d=C("DIV",{id:"unified-hovercard-delete-forever","class":a.g+"-footer-fake-link"},"Delete forever"),w(d,a.g+"-footer-action-link"),d.id="hovercard-delete-forever",c.appendChild(d));b.appendChild(c)} function lu(a,b){a.data.Aa.dg&&!a.data.Rd()?Qt(a,b,"Pre-order eBook - "+a.data.Aa.Op,a.data.Aa.Lk,void 0,void 0,"unified-hovercard-buy-btn"):a.data.wl()?Qt(a,b,"EBOOK FROM "+a.data.Aa.Zu,a.data.Aa.Lk,void 0,void 0,"unified-hovercard-buy-btn"):Qt(a,b,"Buy eBook - "+a.data.Aa.Op,a.data.Aa.Lk,void 0,void 0,"unified-hovercard-buy-btn")}function ku(a,b){Qt(a,b,"Read now",a.data.Aa.Gp,void 0,void 0,"unified-hovercard-read-now")} function ju(a,b){var c=C("DIV",a.g+"-supported-devices"),d=a.g+"-device-type",e=a.g+"-device-supported",g=a.g+"-device-not-supported",h=C("SPAN",d,"Web"),k=C("SPAN",d,"Tablet / iPad"),l=C("SPAN",d,"eReader");d=C("SPAN",d,"Smartphone");var n=C("SPAN","goog-inline-block"),r=C("SPAN","goog-inline-block"),x=C("SPAN","goog-inline-block"),D=C("SPAN","goog-inline-block");a.data.Aa.oj?(w(n,e),w(r,e),w(x,e),w(D,e)):(a.data.Aa.qj?(w(n,e),w(r,e)):(w(n,g),w(r,g)),w(x,g),w(D,g));c.appendChild(n);c.appendChild(h); c.appendChild(r);c.appendChild(k);c.appendChild(x);c.appendChild(l);c.appendChild(D);c.appendChild(d);b.appendChild(c)};function mu(a,b,c){Jt.call(this,a);this.Xb=Wl();this.j=this.Ba=this.s=null;this.Rb=b;this.i=null;this.Vb=!!c;this.render(b);nu(this)}m(mu,Jt);mu.prototype.va=function(){Nt(this.i).Ha();F(this.ha())};mu.prototype.ci=function(a,b){Jt.prototype.ci.call(this,a,b);this.isVisible()&&(this.Gl=this.Xb?new Ug(0,-2,0,0):new Ug(0,0,0,-2),this.isVisible()&&this.og(),this.s=this.g,ou(this))}; mu.prototype.render=function(a){this.i&&(this.i.Ha(),this.j=this.Ba=null);this.i=new hu(a,this.className,435,this.Vb);this.i.render(this.ha());nu(this);this.isVisible()&&ou(this)}; function ou(a){var b=C("DIV"),c=C("DIV");var d=Ah(a.s||null);var e=Ah(a.ha());if(d){d.top=Math.ceil(d.top);e.top=Math.ceil(e.top);d.left=Math.ceil(d.left);e.left=Math.ceil(e.left);var g=e.top>=d.top,h=bh(e,d);h||(h=new Yg(d.left,0,d.width,0));d=a.Xb?e.left+e.width-h.left-(h.width/2+12):h.left-e.left+(h.width/2-12);e={x:0=a?"Expiring soon":48>=a?a+" hours":c+" days"):a="",this.o=C("SPAN",["bookcard-badge","bookcard-sample-label"],a),b.appendChild(this.o)):!this.s||this.i.Rd()||this.i.Aa.tj||(this.o=C("SPAN",["bookcard-badge","bookcard-sample-label"], "Sample"),b.appendChild(this.o));vj(b,"mouseover",this.na.bind(this,b))};pu.prototype.oa=function(){this.dispatchEvent("render");qu.dispatchEvent("complete");this.o&&zh(this.o,L(this.j).width)};pu.prototype.na=function(a,b){(new mu(a,this.i)).Le(b)};function ru(a,b,c){pu.call(this,a,b-40,c);this.N=C("DIV","slider-annotation");this.O=!1}m(ru,pu);ru.prototype.Qc=function(a){vj(this,"render",q(this.ua,this));pu.prototype.Qc.call(this,a);a.appendChild(this.N)};ru.prototype.ua=function(a){this.O||(a.stopPropagation(),a=this.ma(),this.N.appendChild(a),this.O=!0,this.dispatchEvent("render"))};function su(a,b,c){ru.call(this,a,b,c)}m(su,ru);su.prototype.Qc=function(a){ru.prototype.Qc.call(this,a)};su.prototype.ma=function(){var a=this.i,b=E("DIV"),c=C("A",{className:"slider-annotation-title"},of(a.hb()));pe(c,a.Aa.Vg);b.appendChild(c);if(a=a.Aa.Gk)a=C("DIV","slider-annotation-author",of(a)),b.appendChild(a);J(b,L(this.j).width+5,"");return b};function tu(){this.g=uu;this.lg=5E3}var vu=0;tu.prototype.send=function(a,b,c,d){a=a?bc(a):{};d=d||"_"+(vu++).toString(36)+Date.now().toString(36);var e="_callbacks___"+d;b&&(p[e]=wu(d,b),a.callback=e);b={timeout:this.lg,Js:!0};e=ld.exec(kd(this.g).toString());var g=e[3]||"";e=md(e[1]+nd("?",e[2]||"",a)+nd("#",g,void 0));b=xo(e,b);to(b,null,xu(d,a,c),void 0);return{lb:d,$n:b}};tu.prototype.cancel=function(a){a&&(a.$n&&a.$n.cancel(),a.lb&&yu(a.lb,!1))}; function xu(a,b,c){return function(){yu(a,!1);c&&c(b)}}function wu(a,b){return function(c){yu(a,!0);b.apply(void 0,arguments)}}function yu(a,b){a="_callbacks___"+a;if(p[a])if(b)try{delete p[a]}catch(c){p[a]=void 0}else p[a]=Ca};function zu(a,b,c){P.call(this);this.ma=a;this.na=c;this.j=b;O(b,["hilite","select","canceldismiss","dismiss"],this.handleEvent,!1,this);this.N=null;this.i=[];this.o=-1;this.g=0;this.s=this.O=null;this.wa={}}u(zu,P);f=zu.prototype;f.ik=!0;f.Ek=!1;f.wd=function(){return this.j}; f.handleEvent=function(a){var b=this.ma;if(a.target==this.j)switch(a.type){case "hilite":this.Me(a.Ff);break;case "select":var c=!1;if("number"===typeof a.Ff){a=a.Ff;var d=this.i[Au(this,a)];c=!!d&&b.xl&&b.xl(d);d&&!c&&this.o!=a&&this.Me(a)}c||this.fg();break;case "canceldismiss":Bu(this);break;case "dismiss":Cu(this)}};f.ki=function(a){this.N!=a&&(this.N=a,this.ma.Kp(this.N,10,q(this.Ou,this)),Bu(this))};f.qd=function(){return this.j.isVisible()}; function Du(a){for(var b=a.g+a.i.length-1,c=a.o,d=0;d=a.g&&cb||b>=a.i.length?-1:b}f.update=function(a){this.na.update(a)};function Fu(a){var b=0,c=0;Hu(a)&&(b=a.selectionStart,c=-1);return[b,c]}function Hu(a){try{return"number"==typeof a.selectionStart}catch(b){return!1}};function Iu(a,b,c,d){aj.call(this);d=d||150;this.j=null!=c?c:!0;this.s=a||",;";this.ua=this.s.charAt(0);a=this.j?"[\\s"+this.s+"]+":"[\\s]+";this.na=new RegExp("^"+a+"|"+a+"$","g");this.oa=new RegExp("\\s*["+this.s+"]$");this.O=b||"";this.wa=this.j;this.Ya=0b.g)c--;else{b.Ek&&c==b.g&&b.Me(-1);break}if(b.Me(c))break a}a.preventDefault();return!0}break;case 9:if(!this.g.qd()||a.shiftKey)this.g.Ee();else if(this.update(),this.g.fg()&&this.wa)return a.preventDefault(),!0;break;case 13:if(this.g.qd()){if(this.update(),this.g.fg())return a.preventDefault(), a.stopPropagation(),!0}else this.g.Ee();break;case 27:if(this.g.qd())return this.g.Ee(),a.preventDefault(),a.stopPropagation(),!0;break;case 229:if(!this.Jf)return this.Jf||(this.i.ka(this.Mb,"keyup",this.qp),this.i.ka(this.Mb,"keypress",this.np),this.Jf=!0),!0}return Lu(this,a)};function Lu(a,b){var c=a.j&&b.charCode&&-1!=a.s.indexOf(String.fromCharCode(b.charCode));c&&a.update();return c&&a.g.fg()?(b.preventDefault(),!0):!1}f.Nt=function(){return!1};f.Lm=function(a){Ku(this,a.target||null)}; function Ku(a,b){Lj(a.N);a.g&&Bu(a.g);b!=a.Mb&&(a.Mb=b,a.Ya&&(a.Ya.start(),a.i.ka(a.Ya,"tick",a.Nm)),a.Dl=a.Ab(),fq(a.o,a.Mb),a.i.ka(a.o,"key",a.Mm),a.i.ka(a.Mb,"mousedown",a.rp),z&&a.i.ka(a.Mb,"keypress",a.mp))}f.Nq=function(){this.Mb&&(this.i.Xa(this.o,"key",this.Mm),jq(this.o),this.i.Xa(this.Mb,"keyup",this.Nt),this.i.Xa(this.Mb,"mousedown",this.rp),z&&this.i.Xa(this.Mb,"keypress",this.mp),this.Jf&&Mu(this),this.Mb=null,this.Ya&&(this.Ya.stop(),this.i.Xa(this.Ya,"tick",this.Nm)),this.g&&Cu(this.g))}; f.Nm=function(){this.update()};f.jv=function(a){this.Lm(a)};f.Mm=function(a){this.ma=a.keyCode;this.g&&this.Sc(a)};f.np=function(){this.Jf&&229!=this.ma&&Mu(this)};f.qp=function(a){this.Jf&&(13==a.keyCode||77==a.keyCode&&a.ctrlKey)&&Mu(this)};f.rp=function(){};function Mu(a){a.Jf&&(a.Jf=!1,a.i.Xa(a.Mb,"keypress",a.np),a.i.Xa(a.Mb,"keyup",a.qp))}f.mp=function(a){Lu(this,a)}; f.update=function(a){if(this.Mb&&(a||this.Ab()!=this.Dl)){if(a||!this.Rl){a=Fu(this.Mb)[0];var b=this.Ab();a=Gu(this,b)[Eu(this,b,a)];a=this.na?String(a).replace(this.na,""):a;this.g&&(this.g.O=this.Mb,this.g.ki(a,this.Ab()))}this.Dl=this.Ab()}this.Rl=!1};function Eu(a,b,c){a=Gu(a,b);if(c==b.length)return a.length-1;for(var d=b=0,e=0;dd;d++)e=2*d,b.nodeValue=c[e],g=Of(a.g,"B"),g.className=a.Ka,a.g.appendChild(g,a.g.g.createTextNode(String(c[e+1]))),g=b.parentNode.insertBefore(g, b.nextSibling),b.parentNode.insertBefore(a.g.g.createTextNode(""),g.nextSibling),b=g.nextSibling;b.nodeValue=c.slice(2).join("");a.Ba=!0}else d&&Su(a,b,d)}}else for(b=b.firstChild;b;)d=b.nextSibling,Su(a,b,c),b=d}function Tu(a){var b="";if(!a)return b;Array.isArray(a)&&(a=a.filter(function(c){return!Cb(Pe(c))}));Array.isArray(a)?b=0Ma()-this.wa)&&this.dispatchEvent({type:"hilite",Ff:this.i[a].id})};function Vu(a,b,c,d){this.ua=a;this.oa=null;this.Ka=c||null;this.Ca="boolean"===typeof b?b:!0;this.Ba=d||0;b=new Wu;c=new Xu(this.Ka||a,this.Ba);c.ua=!0;d=new Iu(null,null,!1);zu.call(this,b,c,d);d.g=this;d.Mq(a);this.O=a;this.ik=!1;this.Ek=!0;O(this,"update",q(this.Ja,this))}u(Vu,zu);Vu.prototype.fg=function(){this.La=this.ua.value;Vu.ta.fg.call(this);return!1}; Vu.prototype.Ja=function(a){a.Ff&&(a=this.ua.form,this.oa||(this.oa=C("INPUT",{type:"hidden",name:"oq"}),a.appendChild(this.oa)),this.oa.value=this.La,this.Ca&&a.submit())};function Wu(){}var uu=md(Yc(Zc("//suggestqueries.google.com/complete/search")));Wu.prototype.Kp=function(a,b,c){a={client:"books",ds:"bo",q:a};c=q(this.g,this,c);this.i&&this.i.cancel();this.i=new tu;this.i.send(a,c)};Wu.prototype.g=function(a,b){var c=Array.prototype.map.call(b[1],function(d){return d[0]});a(b[0],c)}; function Xu(a,b){Nu.call(this);this.Ja=a;this.La=b||0}u(Xu,Nu);Xu.prototype.jk=function(){Xu.ta.jk.call(this);var a=0,b=B("gbfwa");b||(b=bf("gbqfwa"));b&&(a=b.offsetTop+b.offsetHeight-1);Array.prototype.forEach.call(Ye("div","ac-renderer"),function(c){a&&I(c,"top",a+"px");I(c,"width",L(this.Ja).width-2+"px");I(c,"left",parseInt(c.style.left,10)+this.La+"px")},this)};function Yu(a,b,c,d,e){W.call(this);this.O=a;this.N=b;this.ua=e;this.Cb="number"===typeof d?d:this.N?200:80;this.N||w(this.O,"slider-small");this.ma=[];this.j=E("A");this.j.textContent=Wl()?"\u203a":"\u2039";this.j.setAttribute("title","Scroll left");Fh(this.j,!0);this.O.appendChild(this.j);this.i=E("div");w(this.i,"slider-drawables");this.O.appendChild(this.i);this.s=E("A");this.s.textContent=Wl()?"\u2039":"\u203a";this.s.setAttribute("title","Scroll right");Fh(this.s,!0);this.O.appendChild(this.s); this.g.ka(this.j,"click",this.Kl.bind(this,-.75));this.g.ka(this.s,"click",this.Kl.bind(this,.75));this.xi();this.g.ka(this.j,"click",this.Kl.bind(this,-.75));this.resize();this.oa=0;this.na=z&&Hc("8")&&!Hc("9")&&Wl();c&&Zu(this,c)}u(Yu,W);function $u(a){var b=Math.ceil(1.25*av(a));b=Math.min(a.ma.length,a.oa+b);v(a.ma.slice(a.oa,b),q(a.Ys,a));a.xi();a.oa=b;b>=a.ma.length&&a.dispatchEvent("render")}f=Yu.prototype; f.Ys=function(a){var b=C("DIV",{"class":"goog-inline-block slider-loading"});this.i.appendChild(b);var c=C("DIV",{"class":"goog-inline-block slider-drawable"});M(c,!1);this.i.appendChild(c);this.g.zf(a,"render",this.$s.bind(this,b,c));a.Qc(c)};f.$s=function(a,b){F(a);this.xi();M(b,!0)};function Zu(a,b){b=b.map(function(c){return this.N?new su(c,this.Cb):new pu(c,this.Cb,this.ua)},a);bv(a,b)}function bv(a,b){jb(a.ma,b);$u(a)} f.Kl=function(a){(Wl()?0>a:0=this.i.scrollWidth-L(this.i).width;this.j.className=a?"slider-button slider-button-left slider-button-disabled":"slider-button slider-button-left";this.s.className=b?"slider-button slider-button-right slider-button-disabled":"slider-button slider-button-right"};f.resize=function(){this.xi()}; function av(a){var b=a.N?110:50;return Math.ceil(L(a.i).width/b)};function cv(a,b,c){W.call(this);this.i=a;this.source=b?b:"gbs_bookshelf_slider";this.ma=0;this.s=new Nj;this.ua=this.s.Fa();this.oa="";this.wa="boolean"===typeof c?!c:!1;vj(this.s,"resize",q(this.Rm,this))}m(cv,W);f=cv.prototype;f.Rm=function(){this.s.Fa().width>this.ua.width?this.Hh():vj(this.s,"resize",q(this.Rm,this))};f.render=function(a){this.N=a;this.j=this.hl(a);this.g.ka(this.j,"render",q(this.Hh,this))};f.hl=function(){return new Yu(this.N,!0,void 0,void 0,this.i.getId())}; f.Hh=function(){this.j.resize();var a=Math.ceil(1.25*av(this.j))+1,b=this.qf(this.ma,a);b&&(this.ma+=a,vl(b,q(this.nu,this)))};f.Ng=ba(2);f.nu=function(a){a=a.target;if(Dl(a)){if((a=(new Zt(Fl(a))).g)&&a.length){var b=ep(a[a.length-1].Aa.Vg);this.oa!=b&&(this.oa=b,bv(this.j,dv(this,a)));(a=Lf(this.ha()))&&Bh(a,1)}else 0==this.j.oa&&this.Jp();this.dispatchEvent("success")}}; function dv(a,b){return a.Rk(b).map(function(c){return this.j.N?new su(c,200,this.i.getId()):new pu(c,80,this.i.getId())},a)}f.Jp=function(){};f.ha=function(){return this.N};f.Rk=function(a){return this.source?a.map(function(b){b.Aa.source=this.source;return b},this):a};function ev(a,b,c){this.j=a;this.g=b;this.o=c||!1;a=this.Fa();this.i()?a.height=120:a.height=65;this.mb(a)}m(ev,Jl);ev.prototype.i=function(){var a=B("gb-mobile-menu-pubinfo");return a?0=d||1==Math.abs(c-d)?d="Some pages are omitted from this book preview.":ov(a,b)?d="Page "+(--d+" is not part of this book preview."):(a=++c+"",d=--d+"",d="Pages "+a+" to "+d+" are not shown in this preview.");return d}function nv(a){a=a.hb();var b;/[^0-9]/.test(a)||Cb(a)?b=null:b=Bb(a,"B")?ts(a,ws):ts(a,vs);return b} function ov(a,b){a=nv(a);b=nv(b);return 0==a+1-(b-1)};function pv(a,b){W.call(this);this.s=a;this.N=b;this.o=b.j;this.j=b.g;this.i=E("DIV");this.i.className="separator-container";this.s.appendChild(this.i);a=E("TABLE");a.className="separator-outer-table";this.i.appendChild(a);var c=a.insertRow(-1).insertCell(-1);c.align="center";var d=E("DIV");d.className="separator-background";c.appendChild(d);c=E("TABLE");c.className="separator-inner-table";d.appendChild(c);c.align="center";if(b.i()){var e=B("gb-mobile-menu-pubinfo");if(e){b=Xe("IMG",e);if(1==b.length){b= b[0].cloneNode(!0);var g=c.insertRow(-1).insertCell(-1);uf(g,b,0);w(g,"separator-message");w(g,"separator-pubinfo-message")}b=mv(this.o,this.j);e=If(e);c=c.insertRow(-1).insertCell(-1);g=E("SPAN");g.className="separator-text";c.appendChild(g);var h=this.N;h.i&&h.o?N(g,ni(e)):N(g,ni(b+"
"+e));w(c,"separator-message");w(c,"separator-pubinfo-message")}w(a,"separator-pubinfo");w(d,"separator-pubinfo")}else a=c.insertRow(-1).insertCell(-1),w(a,"separator-message"),a.textContent=mv(this.o,this.j);Fh(this.i, !0);U(this.i)}m(pv,nm);pv.prototype.mb=function(a){J(this.i,a)};pv.prototype.setPosition=function(a){kh(this.i,a)};pv.prototype.Na=function(){F(this.i)};function qv(a){var b=this;W.call(this);this.s=a;this.j=a.o;this.mb(Jh(this.j));this.Gb=new A(0,0);this.O=null;this.na=new cm(function(){M(b.O,!1)},600);bj(this,this.na)}u(qv,W);f=qv.prototype;f.mb=function(a){if(!this.i||!Be(this.i,a)){this.i=a;var b=this.s;b.ma=a;rv(b);this.dispatchEvent("resize")}};f.Xc=function(a){this.wc=a;this.N.Na();var b=this.s,c=this.Fa();b.ma=c;rv(b);b=this.s;a=new Ae(a.Bb(),a.Db());b.oa=a;b.s=!0;J(b.i,a);T(b.na,0,b);rv(b);this.dispatchEvent("layoutchange")}; function sv(a,b){a.N=b}f.el=function(){return this.N};f.Kb=function(){return this.wc};f.hc=function(){var a=this.wc.Kd();this.oa&&(a=this.oa.bl(a));Mp(this.N,a);this.dispatchEvent("update")};function tv(a,b){a.oa=b} f.Yc=function(a){var b=this.Gb.x,c=this.Gb.y;"number"===typeof a.x&&(a.x=we(a.x,0,Math.max(this.wc.Bb()-this.i.width,0)));"number"===typeof a.y&&(a.y=we(a.y,0,Math.max(this.wc.Db()-this.i.height,0)));"number"===typeof a.x&&(b=a.x);"number"===typeof a.y&&(1c.width||Math.abs(b.y-a.y)>c.height?this.Ed(a):(this.o&&(this.o.Ha(),this.o=null),this.o=new jm([b.x,b.y],[a.x,a.y],250+250*we(ye(b,a)/800,0,1),mm),O(this.o,"animate",q(this.Tm,this)),O(this.o,"end",q(this.Pq,this)),this.dispatchEvent("movestart"),vj(this,"movestart",q(this.o.Ha,this.o)),this.o.play())};f.Tm=function(a){a=a.coords.map(Math.round);this.Yc(new A(a[0],a[1]))};f.Pq=function(a){this.Tm(a);this.dispatchEvent("moveend")}; f.Fb=function(){return this.j};f.Ke=ba(3);f.Kc=function(){return new A(Math.round(this.Gb.x+this.i.width/2),Math.round(this.Gb.y+this.i.height/2))};f.Pe=function(a){return new A(Math.round(a.x+this.i.width/2*-1),Math.round(a.y+this.i.height/2*-1))};f.va=function(){qv.ta.va.call(this);this.N.Na()};f.Yk=function(a){null==this.O&&(this.O=a);this.O.style.opacity=0;this.na.start()};f.ct=function(){var a=this;this.na.stop();M(this.O,!0);T(function(){a.O.style.opacity=1})};f.Sm=1;function wv(a,b){qv.call(this,b);this.vb=a;this.g.ka(a,"pagechange",this.Od);this.g.ka(this.vb,"searchupdate",this.nl);if(a=B("subscription-bar"))this.g.ka(this,"scrolldown",t(this.Yk,a)),this.g.ka(this,"scrollup",t(this.ct,a))}u(wv,qv);f=wv.prototype;f.Ld=function(){var a=this.wc.Kd(),b=[];this.oa&&(a=this.oa.li(a)[0]||[]);v(a,function(c){c instanceof Ul&&b.push(c.Ga())});return b};f.jh=function(a){this.ig(!1,!1);this.Xe(this.Jg(a))}; f.We=function(a){var b=[];"fixed_width"==this.Kb().Xf()&&b.push(this.Fa().width);this.ee&&(a=Op(this.ee(),this.Kb().s(),a,b))&&this.jh(a)};f.He=function(){this.ig(!0,!1);var a=this.Fa().width;this.Xe(this.Jg(a))};f.xf=ba(4);f.ig=function(a,b){this.Lg=a;this.aj=b};f.resize=function(){if(this.Lg)this.He();else{var a=this.Kb().s();a&&this.jh(a)}};f.Xe=function(a){var b=this.Kb();this.Xc(a);b&&(a=sm(new rm(b,a),this.Kc()),(a=this.Pe(a))&&this.Ed(a))};f.Od=function(){this.Yh||this.Nd(this.vb.Ga())}; f.Nd=function(a){this.wc.zc&&(a=this.wc.zc(a))&&this.Yc(new A(Math.round(a.be()),Math.round(a.od())))};f.nl=function(){xv&&(this.el().Na(),this.wa&&this.wa(),this.hc())};var xv=!0;function yv(a,b){this.Ea=a;this.g=b}m(yv,op);yv.prototype.render=function(a){var b=this.g(),c=a.Ga(),d=Ta(this.Ea.ee().Kf)/a.Fa().width,e=a.Fa();b.zj=e.width;b.Yg=e.height;e=a.Fa().clone();e.width*=d;e.height*=d;b.xu=e.width;b.uu=e.height;b.setPosition(a.be(),a.od());b.ub(c);b.Qc();return b};function zv(){};function Av(a){this.Ea=a}u(Av,zv);Av.prototype.bl=function(a){var b=this.li(a);a=b[0]||[];b=b[1]||[];b.sort(t(Bv,this.Ea.Kc()));var c=[];jb(c,a,b);return c};function Bv(a,b,c){return Xg(Zg(Kl(b)),a)-Xg(Zg(Kl(c)),a)}Av.prototype.li=function(a){var b=uv(this.Ea),c=new Yg(b.left-800,b.top-800,b.width+1600,b.height+1600);return ob(a,function(d){d=Kl(d);if(bh(c,d))return bh(b,d)?0:1})};function Cv(a,b){this.Ea=b;this.V=a}m(Cv,Av);Cv.prototype.bl=function(a){var b=Av.prototype.bl.call(this,a),c=this.V.Ga();if(c){var d=[],e=this.V.rb();v([1,-1],function(){var g=jo(e,c.Pa(),1);g&&d.push(g)});v(a,function(g){g.Ga&&cb(d,g.Ga())&&db(b,g)})}return b};function Dv(){W.call(this)}u(Dv,W);Dv.prototype.ue=function(a){this.i=a;this.o=Ev(a)};Dv.prototype.va=function(){Dv.ta.va.call(this);F(this.o)};function Fv(a){W.call(this);this.ma=a;this.O=[]}u(Fv,Dv);f=Fv.prototype;f.ue=function(a){Fv.ta.ue.call(this,a);this.qh();this.Ga()&&this.g.ka(this.Ga(),"update",this.qh)};f.Ga=function(){return this.i.Ga()};f.oh=function(a,b,c,d){var e=E("div");U(e,!0);this.o.appendChild(e);a=Gv(this,a,b,c,d);I(e,{position:"absolute",left:a[0]+"px",top:a[1]+"px",width:a[2]+"px",height:a[3]+"px"});this.ma&&(I(e,{backgroundColor:this.ma}),Bh(e,.3));this.O.push(new Yg(a[0],a[1],a[2],a[3]));return e}; function Hv(a){return a.i.Fa().width/a.i.Ga().getParent().g.width}function Gv(a,b,c,d,e){var g=Hv(a);return Xa([b,c,d,e],function(h){return Math.round(h*g)})}function Iv(a,b){v(b,function(c){this.oh.apply(this,c)},a)}f.io=function(a){return this.oh(a.left,a.top,a.width,a.height)};f.wg=function(){rf(this.o);this.O=[]};f.qh=Ca;function Jv(){Fv.call(this)}m(Jv,Fv);f=Jv.prototype;f.qh=function(){if(!this.j){var a=this.Ga();a&&(a=Ep(a))&&(Iv(this,a),this.j=!0)}}; f.oh=function(a,b,c,d){this.s=Fv.prototype.oh.call(this,a,b,c,d);I(this.s,{border:"2px #aaaaff dashed"});this.N=E("IMG");this.s.appendChild(this.N);this.N.src="/googlebooks/images/dialog_close_x.gif";a=Gv(this,a,b,c,d);I(this.N,{position:"absolute",cursor:"pointer",left:a[2]-19+"px",top:"4px",display:"none"});O(this.s,"mouseout",q(this.Qq,this));O(this.s,"mouseover",q(this.Uo,this,!0));vj(this.N,"click",q(this.Na,this));return this.s};f.Na=function(){F(this.s)}; f.Qq=function(a){Bf(this.s,a.target)||this.Uo(!1)};f.Uo=function(a){I(this.N,{display:a?"":"none"})};function Kv(a){Fv.call(this);this.V=a}m(Kv,Fv);Kv.prototype.qh=function(){if(!this.j){var a=this.Ga();a&&(a=Dp(a))&&(v(a,function(b){var c=b.pop(),d=b.pop();b=this.oh.apply(this,b);I(b,{cursor:"pointer"});this.g.ka(b,"click",q(this.s,this,d,c))},this),this.j=!0)}};Kv.prototype.s=function(a,b){(a=ko(this.V.rb(),a))?this.V.ub(a):To(this.V,b)};function Lv(a,b){this.o=a;this.g=b}Lv.prototype.Ga=function(){return this.o};Lv.prototype.i=function(){return this.o.xd(this.g)};function Mv(a,b,c){Lv.call(this,a,b);this.j=c}m(Mv,Lv);Mv.prototype.i=function(){return this.j.width>this.g.width?this.o.xd(this.j):Lv.prototype.i.call(this)};function Nv(a,b,c,d,e){W.call(this);this.ah(a.Ia());this.V=a;this.i=c;this.na=[];this.Um=d;J(d,c);this.ua=Ev(this);I(this.ua,"backgroundColor","#fff");J(this.ua,c);if(this.Ba=void 0!==e?e:!0)a=Ev(this),J(a,c),this.wa=new Ov(a),this.wa.show();b&&(this.o=b,this.g.ka(b,"update",this.xg),Vo(b))}u(Nv,W);f=Nv.prototype;f.Fa=function(){return this.i};f.Ga=function(){return this.o};function Pv(a,b){a.na.push(b);b.ue(a)}f.xg=Ca;function Qv(a){a.dispatchEvent("load");a.Ba&&a.wa.kb()} function Ev(a){var b=E("div");U(b,!0);I(b,{position:"absolute",left:0,top:0});a.Um.appendChild(b);return b}f.Na=function(){v(this.na,function(a){a.Ha()});this.na=null;this.s&&F(this.s)};function Rv(a){a.N=Ev(a);J(a.N,a.Fa());I(a.N,{backgroundImage:"url(//www.google.com/images/cleardot.gif)",backgroundRepeat:"repeat"});a.g.ka(a.N,"mousedown",a.Rq);a.g.ka(a.N,"dragstart",ej)}f.Rq=function(a){a.display=this;Sv.dispatchEvent(a)};var Sv=new P; function Ov(a){this.g=a;a={position:"absolute",left:0,color:"#808080",fontSize:"13px",backgroundColor:"white"};for(var b=0;2>b;b++){var c=E("div");U(c);I(c,a);this.g.appendChild(c);c.textContent="Loading...";a.bottom=0}}Ov.prototype.show=function(a){I(this.g,{display:a?"none":""})};Ov.prototype.kb=function(){this.show(!0)};Nv.prototype.Xl=function(){Tv(this)};function Tv(a,b){a.s&&F(a.s);a.s=Ev(a);new Uv(a.s,a.Fa(),b)} function Uv(a,b,c){this.g=a;I(a,{backgroundColor:"#FFF",textAlign:"center"});J(a,b);N(a,Gl(c||""));U(this.g)};function Vv(a,b,c){Nv.call(this,a,b.Ga(),b.g,c);this.ah(Wv);a=Ev(this);this.ma=new Xv(b.g,a);a=Ev(this);this.O=new Xv(b.g,a);Rv(this);Fh(c,!0);w(c,"pageImageDisplay");this.oa=b;b.Ga()&&this.xg()}m(Vv,Nv);f=Vv.prototype;f.ub=function(a){xp(a,"output",null);Nv.prototype.ub.call(this,a);a.xd()&&this.xg()}; f.xg=function(){var a=this.Ga(),b=this.oa.i();if(b&&!this.j){b=Yv(b);vj(this.ma,"load",q(this.Sq,this,a,b,this.Fa().width));Zv(this.ma,[b]);var c=Oo(this.V.Xb,a.Pa());c.push(b);Zv(this.O,c);this.j=!0;a==this.V.Ga()&&this.dispatchEvent("fetch")}Ap(a,[16,8])&&(a=Ce('

%s
',cp("/googlebooks/restricted_logo.gif"),"You have either reached a page that is unavailable for viewing or reached your viewing limit for this book."),Tv(this, a),Qv(this))};f.Sq=function(a,b,c){a==this.V.Ga()&&this.dispatchEvent("loaded");this.O.empty();var d=this.V.Xb;a=a.Pa();d.g[a]=d.g[a]||{};d.g[a][c]=b;Qv(this)};f.mc=ba(7);f.Na=function(){this.j=!1;this.ma.empty();this.O.empty();Nv.prototype.Na.call(this)};var Wv=new P,Yv=Pc;function Xv(a,b){P.call(this);this.i=a;this.j=b;this.Af=!1;this.g=E("IMG");this.g.width=this.i.width;this.j.appendChild(this.g);U(this.j)}m(Xv,P);Xv.prototype.empty=function(){for(var a;a=xf(this.j);)lp(a)}; function Zv(a,b){hp(a.g,q(a.o,a,a.g));for(var c=0;cMath.abs(e[0])&&(d.x=e[1]||d.x,d.y=e[2]||d.y)});this.O||(this.O=new nl(100),this.g.ka(this.O,"tick",this.Wq));this.ma=d;d.x||d.y?this.O.start():this.O.stop()}}};f.Wq=function(){var a=this.ma,b=this.Ea;vv(b,new A(15*a.x,15*a.y),q(b.Ed,b))}; f.at=function(){Dj(this.N);$i(this.O);this.O=null};function kw(){this.g=!1;var a=C("DIV","entity-page-snackbar"),b=C("SPAN","entity-page-snackbar-text");G(b,"Selection copied to clipboard");a.appendChild(b);wm(a,"hidden",!0);document.body.appendChild(a);this.o=a}kw.prototype.show=function(){this.g?(this.i(),T(q(this.j,this),500)):this.j();T(q(this.i,this),6E3)};kw.prototype.j=function(){I(this.o,"bottom","0");this.g=!0};kw.prototype.i=function(){I(this.o,"bottom","-48px");this.g=!1};function lw(a){this.i=a;this.o=new kw;this.j=mw(this)}lw.prototype.ha=function(){return this.j}; function mw(a){var b=C("DIV");wb(b,["entity-page-copy-button","entity-page-action-chip"]);var c=C("IMG");w(c,"entity-page-action-chip-icon");c.src="https://www.gstatic.com/images/icons/material/system/1x/content_copy_googblue_18dp.png";var d=C("SPAN");w(d,"entity-page-action-chip-label");G(d,"Copy");b.appendChild(c);b.appendChild(d);O(b,"click",q(a.g,a));vm(b,"button");Hf(b,!0);O(b,"keydown",function(e){32!=e.keyCode&&13!=e.keyCode||a.g.call(a)});return b} lw.prototype.g=function(){this.i.focus();this.i.select();document.execCommand("copy");this.o.show()};function nw(a){lr.call(this,a);jn(this);this.Vn=!1;this.g=new Gj;this.i=sp();w(a,"viewport-selection-popup");ow&&ow.Ha();ow=this}m(nw,lr);nw.prototype.j=function(){this.dispatchEvent("close");this.Ha()}; function pw(a,b,c){var d=a.ha(),e=E("div");w(e,"selection-popup-select-container");d.appendChild(e);d=E("div");w(d,"selection-popup-select-label");e.appendChild(d);d.appendChild(of(b));e.appendChild(E("div"));b=E("input");b.value=c;w(b,"viewport-input");e.appendChild(b);Fh(b,!1);a.i&&(c=(new lw(b)).ha(),e.appendChild(c));a.g.ka(b,"mousedown",qw)}function qw(a){a.stopPropagation()}nw.prototype.va=function(){F(this.ha());lr.prototype.va.call(this);this.g.Ha()};var ow=null;function rw(a,b){this.g=a instanceof A?a:new A(a,b)}u(rw,dr);rw.prototype.Pc=function(a,b,c,d){var e=Ve(a);var g=e.body;e=e.documentElement;e=new A(g.scrollLeft||e.scrollLeft,g.scrollTop||e.scrollTop);g=this.g.x+e.x;e=this.g.y+e.y;var h=fr(a);g-=h.x;e-=h.y;hr(new A(g,e),a,b,c,null,null,d)};function sw(a,b){rw.call(this,a,b)}u(sw,rw);sw.prototype.i=0;sw.prototype.o=function(a){this.i=a};sw.prototype.Pc=function(a,b,c,d){var e=nh(a);e=qh(e);var g=jf(Te(a).g);g=new A(this.g.x+g.scrollLeft,this.g.y+g.scrollTop);var h=b,k=hr(g,a,h,c,e,10,d);if(0!=(k&496)){if(k&16||k&32)h^=4;if(k&64||k&128)h^=1;k=hr(g,a,h,c,e,10,d);0!=(k&496)&&hr(g,a,b,c,e,this.i,d)}};function tw(a){Fv.call(this,"#4a95d6");this.j=a}m(tw,Fv);tw.prototype.ue=function(a){Fv.prototype.ue.call(this,a);I(this.o,{cursor:"pointer"});this.g.ka(this.o,"mousedown",uw)};function uw(a){a.stopPropagation()} function hw(a,b,c,d){a.wg();Xa(b,q(a.io,a));a.N&&Dj(a.N);a.s&&a.s.Ha();b=E("div");document.body.appendChild(b);var e=dw(a.O);if(e){var g=rh(a.o);b=new nw(b);if(c&&d){var h=a.Ga(),k=h.xd();if(k){var l=new Q(k);d=[d.left,d.top,d.width,d.height].join();R(l,"ci",d);R(l,"edge",0);l=l.toString();var n=new Q(h.Ac());R(n,"ci",d);R(n,"source","bookclip");n=Ce('',n.toString(),l)}d=n;rf(b.ha());n=b.ha();h=E("IMG");h.src="/googlebooks/images/material/close_black_24dp.png";w(h, "selection-popup-close");n.appendChild(h);b.g.zf(h,"click",q(b.j,b));h=C("DIV",{},"Share this clip");w(h,"selection-popup-title");n.appendChild(h);c&&(pw(b,"Selection text",c),n=E("DIV"),w(n,"selection-popup-translate-container"),b.ha().appendChild(n),h=new Q("https://translate.google.com/translate_t"),R(h,"text",c),R(h,"sl","auto"),R(h,"tl","auto"),c=E("A"),c.href=h.toString(),c.target="_blank",b.i&&(h=C("IMG"),wb(h,["selection-popup-translate-icon","entity-page-action-chip-icon"]),h.src="https://www.gstatic.com/images/icons/material/system/1x/translate_googblue_18dp.png", c.appendChild(h)),h=C("SPAN"),G(h,"Translate"),w(h,"entity-page-action-chip-label"),c.appendChild(h),h=E("SPAN"),G(h,"\u00bb"),w(h,"selection-popup-translate-arrow"),c.appendChild(h),w(c,"selection-popup-translate-link"),w(c,"entity-page-action-chip"),n.appendChild(c));l&&pw(b,"Image",l);d&&pw(b,"Embed",d)}else c=E("DIV"),G(c,"Loading..."),w(c,"selection-popup-loading-msg"),b.ha().appendChild(c);mr(b);a.s=b;c=g.x+e.left+e.width;e=g.y+e.top+e.height;g=L(b.ha()).width;24>c-g&&(c=g+24);T(t(vw,b,new sw(new A(c, e))));a.N=vj(b,"close",q(a.wg,a))}}function vw(a,b){a.Hd||(a.setPosition(b),a.Da(!0))}tw.prototype.wg=function(){Fv.prototype.wg.call(this);this.s&&this.s.Ha()};tw.prototype.va=function(){Fv.prototype.va.call(this);this.s&&this.s.Ha();this.N&&Dj(this.N)};function ww(a,b,c){return a.Za().ij()?new $v(a,b,c):new Vv(a,b,c)}function xw(a,b){if(b instanceof Vv){Pv(b,new aw(a.tb()));Pv(b,new Jv);var c=new tw(a.Fb()),d=new iw(c,a.Ia());Pv(b,d);Pv(b,c);Pv(b,new Kv(a))}};function yw(a,b,c){W.call(this);this.V=a;this.Ea=b;this.j=E("div");U(this.j,!0);I(this.j,{position:"absolute",display:"none"});c.appendChild(this.j);this.s=E("div");U(this.s,!0);I(this.s,{position:"absolute"});this.j.appendChild(this.s);this.N=E("div");U(this.N,!0);this.j.appendChild(this.N);this.O=E("div");U(this.O,!0);this.N.appendChild(this.O);this.kb()}u(yw,nm);f=yw.prototype; f.Qc=function(){var a=this.zj-2,b=this.Yg-2,c=this.xu-2,d=this.uu-2;I(this.N,{backgroundColor:"#cccccc",position:"absolute"});kh(this.N,0,0);J(this.N,this.zj,this.Yg);I(this.O,{overflow:"hidden",backgroundColor:"#fcfcfc",position:"absolute"});kh(this.O,1,1);J(this.O,a,b);this.show();var e=this.V;a=ww(e,new Mv(this.Ga(),new Ae(a,b),new Ae(c,d)),this.O);a instanceof Vv?xw(e,a):a instanceof $v&&a instanceof $v&&Pv(a,new aw(e.tb()));this.i=a};f.kb=function(){M(this.j,!1)};f.show=function(){M(this.j,!0)}; f.mc=ba(5);f.Na=function(){this.i&&this.i.Na();F(this.j)};f.setPosition=function(a,b){kh(this.j,a,b)};f.od=function(){return mh(this.j).x};f.be=function(){return mh(this.j).y};f.ub=function(a){this.o=a};f.Ga=function(){return this.o};f.Db=function(){return this.Yg};f.Bb=function(){return this.zj};function zw(a){return a+2}f.Fa=function(){return new Ae(this.zj,this.Yg)};function Aw(a){W.call(this);rf(a);U(a);this.o=a;this.i=E("div");U(this.i,!0);Wl()&&(df(a,{dir:"ltr"}),df(this.i,{dir:"rtl"}));a.appendChild(this.i)}u(Aw,W);function Bw(a,b){Aw.call(this,b);this.Ea=a;this.g.ka(b,"scroll",this.N);I(b,"position","relative");I(this.i,"position","absolute");this.j=E("div");w(this.j,"scroll-background");U(this.j,!0);b.appendChild(this.j);this.j.appendChild(this.i)}m(Bw,Aw);function rv(a){var b=a.oa;a.ma&&b&&(I(a.i,"left",Math.floor(Math.max(0,a.Ea.s.o.clientWidth-b.width)/2)+"px"),I(a.j,"height",b.height+"px"))}Bw.prototype.na=function(){this.s=!1;this.N()}; Bw.prototype.N=function(){if(!this.s){var a=this.Ea.Gb;if(a){a=a.clone();var b=this.o;b=new A(b.scrollLeft,b.scrollTop);xe(a,b)||(this.O=!0,this.Ea.Ed(b),this.O=!1)}}};function Cw(a){var b=a.Fb(),c=new Bw(this,b);Dw(b);wv.call(this,a,c);tv(this,new Cv(a,this));sv(this,Ew(this));var d=a.rb(),e=a.Za().Xf();this.ma=a.Za().O?function(g){return new jv(d,e,g)}:a.Za().na?function(g){return new jv(d,e,g,!0,a.Za().na)}:function(g){return new jv(d,e,g,!0)};b=this.vb.Za();"fixed_height"==b.Xf()?(b=b.ee(),b=b[Math.floor(b.length/2)]+2):b=Fw(b)+2;this.jh(b);this.g.ka(this.vb,"pagesupdate",this.Xt);this.g.ka(this.vb,"pagemodechange",this.Xq);this.g.ka(this,"move",this.hc);this.g.ka(this, "move",this.jw)}u(Cw,wv);function Dw(a){I(a,"overflow","auto");I(a,{overflowX:"auto",overflowY:"scroll"});w(a,"overflow-scrolling");df(a,{dir:"ltr"})}f=Cw.prototype;f.Mc=function(){this.We(1)};f.jd=function(){this.We(-1)};f.ee=function(){var a=this.vb.Za(),b=ib(a.ee());"fixed_width"==a.Xf()&&(a=this.vb.Za().Qa)&&150a?db(b,a):db(b,1500));return new Np(Xa(b,zw))};f.Jg=function(a){return this.ma(a)}; f.Fa=function(){if(this.j.hasChildNodes()){var a=Jh(this.j.childNodes[0]).width;a=new Ae(a,this.i.height)}else a=this.i;return a};function Ew(a){var b=new Kp;Lp(b,Ul,new yv(a,t(Qc,yw,a.vb,a,a.s.i)));Lp(b,ev,new lv(a.vb,function(c){return new pv(a.s.i,c)}));return b}f.jw=function(){if(this.Ca){var a=Nl(this.wc,this.Kc().y);a&&a.Ga&&(a=a.Ga(),this.vb.Ga()!=a&&(this.Yh=!0,this.vb.Bd(a.Pa()),this.Yh=!1))}this.Ca=!0}; f.Xt=function(){var a=this.vb.Ga(),b=this.vb.rb(),c=ko(b,a.Pa());if(!c)a:{c=ho(a);b=io(b);for(a=b.length-1;0<=a;a--){var d=b[a];if(ho(d)<=c){c=d;break a}}c=null}a=this.Gb;b=this.Kb();d=b.zc(c);a=ze(a,d.nd());b=this.Jg(b.s());c=b.zc(c).nd();c=new A(c.x+a.x,c.y+a.y);this.Xc(b);this.Ed(c)};f.Xq=function(){this.N.Na();this.hc()}; f.Wk=function(a){if(a.wo&&a.O){var b=a.O;if(null!=a.oa)var c=a.oa;else a.oa=new Gw(this.s.i),c=a.oa;c.g=this.s.i;if(B("focus_article_div")){var d=B("focus_article_div");F(d)}d=this.Kb().zc(a);a=d.Bb()/a.re();if(b.Vf()&&(b=b.Vf())){var e=b[0];if(e&&4==e.length){b=a*e[0]+d.be();d=a*e[1]+d.od();var g=a*e[2];a*=e[3];e=E("DIV");e.setAttribute("id","focus_article_div");U(e,!0);Bh(e,.3);I(e,{position:"absolute",left:b+"px",top:d+"px",width:g+"px",height:a+"px",cursor:"pointer",backgroundColor:"#36C",border:"2px solid #00F"}); c.g.appendChild(e)}}}};function Hw(a,b,c,d,e){W.call(this);this.V=a;this.Ea=b;this.o=c;var g=E("div");I(g,{position:"absolute"});e=e.width-2;kh(g,d.x+(Wl()?e:0),d.y);b.s.i.appendChild(g);this.i=g;b=Math.floor(e/Vl(c));g=new Ae(e,b);this.j=E("div");this.i.appendChild(this.j);I(this.j,{padding:"1px",position:"absolute"});this.s();b=E("div");this.j.appendChild(b);I(b,{overflow:"hidden",backgroundColor:"#fcfcfc"});J(b,g);this.j.appendChild(b);d=E("IMG");d.title=c.Je();this.O=d;e=Q;var h=new Q(c.N.Vo);R(h,"pg",c.Pa());c.ob.sig&& R(h,"sig",c.ob.sig);e=new e(h.toString());R(e,"zoom","1");R(e,"img","1");R(e,"w",g.width);if(g=this.V.Za().ve)R(e,"imgtk",g),R(e,"jtp",ho(c));d.src=e.toString();b.appendChild(d);I(this.j,"cursor","pointer");this.g.ka(this.j,"click",this.N);this.g.ka(a,"pagechange",this.s)}m(Hw,nm);Hw.prototype.s=function(){var a=!1,b=this.V.Ga();b&&b==this.o&&(a=!0);I(this.j,"backgroundColor",a?"#6B90DA":"#ccc")};Hw.prototype.N=function(){this.V.qc(Cw);this.V.ub(this.o);Iw.dispatchEvent("click")}; Hw.prototype.Na=function(){lp(this.O);F(this.i)};var Iw=new P;function Jw(a,b){this.V=a;this.Ea=b}m(Jw,op);Jw.prototype.render=function(a){return new Hw(this.V,this.Ea,a.Ga(),a.nd(),a.Fa())};function Kw(a){var b=a.Fb();I(b,{overflow:"hidden"});var c=new Bw(this,b);wv.call(this,a,c);this.g.ka(this,"move",this.hc);I(b,{overflow:"auto"});sv(this,Lw(this));this.Xc(Mw(this));tv(this,new Av(this));T(q(this.hc,this),0);this.g.ka(this,"resize",this.ma);var d=B("subscription-bar");d&&(this.Yk(d),T(function(){M(d,!1)},600))}u(Kw,wv);Kw.prototype.Nd=function(a){a=this.Kb().zc(a).nd();this.Ed(new A(void 0,a.y-40))};function Mw(a){var b=a.vb.Za().Nc;return new iv(a.vb.rb(),a.Fa().width,b,b)} Kw.prototype.ma=function(){this.Xc(Mw(this));this.Nd(this.vb.Ga())};function Lw(a){var b=new Kp;Lp(b,Ul,new Jw(a.vb,a));return b};function Nw(a,b,c){W.call(this);this.V=a;this.s=b;this.j=this.V.Za().Mi;this.N=!!this.V.Za().Mi;this.ma=!!this.V.Za().vi;this.o=sp(c);if(this.N){a:{a=this.V.rb();for(b=0;b=ho(c)&&e<=d){a=b;break a}}a=-1}this.O=a}}m(Nw,W);f=Nw.prototype; f.render=function(a){this.i=E("div");document.body.appendChild(this.i);T(q(this.Yq,this));this.oa=a;if(this.N)Ow(this);else if(this.ma){w(this.i,"base-image-toc-div");a=this.V.Za().vi;var b=ko(this.V.rb(),a);b&&Pw(this,b);1a.x&&(a.x=0);kh(this.i,a)};f.Pt=function(a){a.preventDefault();a.stopPropagation();this.V.Tb("previous")}; f.Da=function(a){I(this.i,{display:a?"":"none"})};f.Qc=function(){I(this.o,{left:0,top:0});I(this.N,{left:this.j.width+"px",top:0})};f.Ld=function(){return Wa([this.ua,this.Ba],function(a){return!!a})};f.Na=function(){this.s.Na();this.O.Na();for(var a;a=this.na.pop();)Dj(a);this.i.parentNode&&F(this.i)};function Uw(a){return 2*a};function Vw(a){this.V=a}m(Vw,op);Vw.prototype.render=function(a){var b=new Sw(this.V,a.Fa().width);b.setPosition(a.nd());b.Qc();b.Da(!0);return this.g=b};function Ww(a,b,c){P.call(this);this.V=a;this.j=b;this.s=L(b).width;this.N=c;this.i=!1;this.g=Wl()}m(Ww,P);Ww.prototype.yf=function(){return this.i};function Xw(a,b){if(b!=a.i){a.i=b;var c=a.V.Ia().s.i;M(c,!1);L(c);[t(Yw,a.j,a.N,a.s,a.g,b),q(a.o,a),t(M,c,!0)].forEach(T)}}Ww.prototype.o=function(){this.dispatchEvent("change")};function Yw(a,b,c,d,e){var g=b.style.width;d=d?"right":"left";e?(b.style[d]="0",b.style.width=g+c):(b.style[d]="",b.style.width="");M(a,!e)};var Zw=null;function $w(a,b){Gj.call(this);this.i=Zw;this.V=a;this.g=b;this.V.Za().O||(this.ka(this.V,"pageturn",this.o),this.ka(this.g,"dispose",this.Ha))}m($w,Gj);$w.prototype.o=function(){var a=this.g.ma.g.Ld()[0]||new gp,b=this.g.ma.g.Ld()[1]||new gp,c=this.O,d=this.s,e=d?ho(d):-1,g=ho(a)||-1,h=ho(b)||-1,k=Math.max(c?ho(c):-1,e),l=Math.max(g,h);if(Math.abs(l-k)>this.g.Sm){if(0l-k&&(n=-1!=h?b:a,r=d);1=ho(e[0]||e[1])&&aemail or IM"));this.ha().appendChild(a);this.o=E("input");J(this.o,"100%","auto");this.ha().appendChild(this.o);this.N&&(a=C("DIV",{style:"font-size: 13px; padding-top: 7px;"},"Embed"),this.ha().appendChild(a),this.Ge=E("input"),J(this.Ge,"100%","auto"),this.ha().appendChild(this.Ge));a=this.V.Ga();b=(new Q(window.location)).g;var c=new Q(a.Ac()); c.g=b;this.o.value=c.toString();T(t(lx,this.o));this.N&&(a=new Q(a.Ac()),R(a,"output","embed"),this.Ge.value=mx(a.toString()))};kx.prototype.Wl=function(){jx.prototype.Wl.call(this);this.g.ka(this.o,"click",t(lx,this.o));this.N&&this.g.ka(this.Ge,"click",t(lx,this.Ge))};function lx(a){a.select()}function mx(a){return Ce('',a)};function nx(a,b){W.call(this);this.Ea=a;this.j=b;this.i=E("div");a.s.i.appendChild(this.i);w(this.i,"sitb_result");kh(this.i,b.nd());J(this.i,b.Fa());a=E("div");w(a,"sitb-result-header");this.i.appendChild(a);this.s=E("div");w(this.s,"sitb-result-page-link");b=b.g.g;this.s.textContent=b?"Page "+b:"Page";a.appendChild(this.s);this.o=E("div");w(this.o,"sitb-result-content");this.i.appendChild(this.o);if(b=ko(this.Ea.V.rb(),this.j.g.Pa())){a=this.Ea.V.tb().getQuery();var c=b.ob.snippetSrc;c&&a==Lo(c)? ox(this,c):(a=b.qf(),"entity_page"==S(a,"source")?R(a,"source","entity_page_gbs_snippet"):R(a,"source","gbs_snippet"),vp(b,a,q(this.O,this)))}else px(this)}m(nx,nm);nx.prototype.N=function(a){this.Ea.vf(a.g)};nx.prototype.O=function(a){(a=a.ob.snippetSrc)?ox(this,a):px(this)};function ox(a,b){rf(a.o);var c=E("IMG");c.src=b;qx(a);b=a.j.Fa().width-25;I(c,{width:b+"px"});a.o.appendChild(c)} function qx(a){w(a.i,"sitb-result-clickable");w(a.s,"sitb-result-link");var b=If(a.s);N(a.s,Si(b+" »"));vm(a.i,"link");Hf(a.i,!0);a.g.ka(a.i,"click",q(a.N,a,a.j));a.g.ka(a.i,"keydown",function(c){32!=c.keyCode&&13!=c.keyCode||a.N(a.j)})} function px(a){rf(a.o);var b=E("div");w(b,"sitb-result-snippet");a.o.appendChild(b);I(b,{width:Math.floor(.75*a.j.Fa().width)+"px"});N(b,Gl(a.j.g.i));b=E("div");w(b,"sitb-result-explanatory-link");a.o.appendChild(b);var c=ko(a.Ea.V.rb(),a.j.g.Pa());c&&c.xd()&&!Ap(c,[4,8,16])&&c.o(2)?(qx(a),N(b,Si("We couldn't make an image for this result.  ")),a=E("span"),N(a,Si("Click to view the whole page.")),b.appendChild(a),w(a,"sitb-result-link")):(N(b,Si("No preview available for this page.  ")), a=E("a"),w(a,"sitb-result-buy-link"),N(a,Si("Buy this book.")),b.appendChild(a),b=new Q(window.location.href),R(b,"sitesec","buy"),R(b,"source","gbs_snippet"),qk(b,"printsec"),a.href=b.toString())}nx.prototype.Na=function(){F(this.i);this.Ha()};function rx(a){this.Ea=a}m(rx,op);rx.prototype.render=function(a){return new nx(this.Ea,a)};function sx(a){this.g=a}m(sx,Jl);function tx(a,b){fv.call(this,1);this.Jb=a;this.N=b;this.Rj=this.zi=this.marginTop=20;a.yb&&(a.yb.forEach(q(this.o,this)),Ql(this))}m(tx,fv);tx.prototype.o=function(a){a=new sx(a);var b=Math.min(this.N-16,600);a.mb(new Ae(b,Math.round(124/600*b+42)));this.Sa(a)};function ux(a){var b=a.Fb();I(b,"overflow","hidden");var c=new Bw(this,b);qv.call(this,c);this.V=a;tv(this,new Av(this));this.g.ka(this,"move",this.hc);var d=B("subscription-bar");d&&(this.Yk(d),T(function(){M(d,!1)},600));sv(this,vx(this));wx(b)}u(ux,qv);function wx(a){I(a,"overflow","auto");I(a,{overflowX:"auto",overflowY:"scroll"});df(a,{dir:"ltr"})}function vx(a){var b=new Kp;Lp(b,sx,new rx(a));return b}ux.prototype.resize=function(){xx(this)}; function xx(a){var b=new tx(a.Jb,a.Fa().width);a.Xc(b);a.hc()}ux.prototype.vf=function(a,b){return this.Ba(a,b)};function yx(a){this.g=a||{}}yx.prototype.lc=function(){return this.g};yx.prototype.qc=function(a){var b=Yb(zx,function(c){return c==a});this.g.v=b};yx.prototype.getQuery=function(){return this.g.q};var zx={onepage:Cw,twopage:gx,thumbnail:Kw,snippet:ux};function Ax(a,b){this.g=new xr;O(this.g,"navigate",q(this.s,this));this.V=a;this.i=b}Ax.prototype.s=function(a){Bx(this,a.s)};function Bx(a,b){if(!(a.o&&""==b||a.j))if((z||qc)&&""==b)window.history.go(-2);else if(b){var c={},d=new ik(b);v(d.ae(),function(e){var g=d.get(e);g in Cx&&(g=Cx[g]);c[e]=g});b=new yx(c);a.V.qc(zx[b.g.v]||Cw);Xw(a.i,!!b.g.f);void 0!==b.getQuery()&&Ko(a.V.tb(),b.getQuery())}} Ax.prototype.Ta=function(a){this.o=!0;this.g.Ta(a);z&&(a=(new Q(window.location)).g,Bx(this,a));this.o=!1};Ax.prototype.update=function(){var a=new yx;a.qc(this.V.O);a.g.q=this.V.tb().getQuery();a.g.f=this.i.yf();a=tk(a.lc()).toString();this.j=!0;this.g.ki(a);this.j=!1};var Cx={"true":!0,"false":!1};function Dx(){this.i=[]}u(Dx,sq);Da(Dx);function Ex(a,b){var c=a.i[b];if(!c){switch(b){case 0:c=a.Wa()+"-highlight";break;case 1:c=a.Wa()+"-checkbox";break;case 2:c=a.Wa()+"-content"}a.i[b]=c}return c}f=Dx.prototype;f.tg=function(){return"menuitem"};f.Oc=function(a){var b=a.g.Ra("DIV",vq(this,a).join(" "),Fx(this,a.Gc(),a.g));Gx(this,a,b,Aq(a,8)||Aq(a,16));return b};f.Ic=function(a){return a&&a.firstChild}; f.Sb=function(a,b){var c=xf(b),d=Ex(this,2);c&&vb(c,d)||b.appendChild(Fx(this,b.childNodes,a.g));vb(b,"goog-option")&&(a.ji(!0),this.ji(a,b,!0));return Dx.ta.Sb.call(this,a,b)};f.ug=function(a,b){var c=this.Ic(a),d=Hx(this,a)?c.firstChild:null;Dx.ta.ug.call(this,a,b);d&&!Hx(this,a)&&c.insertBefore(d,c.firstChild||null)};function Fx(a,b,c){a=Ex(a,2);return c.Ra("DIV",a,b)}f.Rp=function(a,b,c){a&&b&&Gx(this,a,b,c)};f.ji=function(a,b,c){a&&b&&Gx(this,a,b,c)}; function Hx(a,b){return(b=a.Ic(b))?(b=b.firstChild,a=Ex(a,1),!!b&&zf(b)&&vb(b,a)):!1}function Gx(a,b,c,d){yq(a,c,b.sf());zq(a,b,c);d!=Hx(a,c)&&(zb(c,"goog-option",d),c=a.Ic(c),d?(a=Ex(a,1),c.insertBefore(b.g.Ra("DIV",a),c.firstChild||null)):c.removeChild(c.firstChild))}f.Lh=function(a){switch(a){case 2:return Ex(this,0);case 16:case 8:return"goog-option-selected";default:return Dx.ta.Lh.call(this,a)}}; f.hj=function(a){var b=Ex(this,0);switch(a){case "goog-option-selected":return 16;case b:return 2;default:return Dx.ta.hj.call(this,a)}};f.Wa=function(){return"goog-menuitem"};function Ix(a,b,c,d){Dq.call(this,a,d||Dx.Eb(),c);this.xc(b)}u(Ix,Dq);f=Ix.prototype;f.Ab=function(){var a=this.Jl;return null!=a?a:this.Og()};f.xc=function(a){this.Jl=a};f.Zb=function(a,b){Ix.ta.Zb.call(this,a,b);switch(a){case 8:Bq(this,16)&&!b&&this.Gf(!1);(a=this.ha())&&this.wd().Rp(this,a,b);break;case 16:(a=this.ha())&&this.wd().ji(this,a,b)}};f.Rp=function(a){this.Zb(8,a)};f.ji=function(a){this.Zb(16,a)}; f.Og=function(){var a=this.Gc();return Array.isArray(a)?(a=Xa(a,function(b){return zf(b)&&(vb(b,"goog-menuitem-accel")||vb(b,"goog-menuitem-mnemonic-separator"))?"":Kf(b)}).join(""),Fe(a)):Ix.ta.Og.call(this)};f.he=function(a){var b=this.getParent();if(b){var c=b.s;b.s=null;if(c&&"number"===typeof a.clientX&&xe(c,new A(a.clientX,a.clientY)))return}Ix.ta.he.call(this,a)};f.fe=function(a){return a.keyCode==this.Il&&this.Re(a)?!0:Ix.ta.fe.call(this,a)};f.gt=function(){return this.Il}; kq("goog-menuitem",function(){return new Ix(null)});Ix.prototype.sf=function(){return Aq(this,16)?"menuitemcheckbox":Aq(this,8)?"menuitemradio":Ix.ta.sf.call(this)};Ix.prototype.getParent=function(){return Dq.prototype.getParent.call(this)};Ix.prototype.Tg=function(){return Dq.prototype.Tg.call(this)};function Jx(a,b,c){Ix.call(this,a,b,c);this.ji(!0)}u(Jx,Ix);kq("goog-checkbox-menuitem",function(){return new Jx(null)});function Kx(a){Jx.call(this,Ie(a.hb()),a.getId());this.i=a}m(Kx,Jx);Kx.prototype.Nb=function(a){Jx.prototype.Nb.call(this,a);if(this.i.ze){var b=(a=1==this.i.ze)?"Public bookshelf":"Private bookshelf";a=C("IMG",{src:"/googlebooks/images/sharing_"+(a?"public":"private")+".gif",alt:b,title:b,style:"padding-top:2px;padding-left:8px;float:"+(Wl()?"left":"right")});a=C("DIV","goog-menuitem-accel",a,of(String(this.i.wa)));uf(this.Ib(),a,1)}};function Lx(a,b,c,d){jr.call(this,a,b,c||d);(c||d)&&this.o(65|(d?32:132))}u(Lx,jr);function Mx(){}u(Mx,sq);Da(Mx);Mx.prototype.Wa=function(){return"goog-menuheader"};function Nx(a,b,c){Dq.call(this,a,c||Mx.Eb(),b);this.Zb(1,!1);this.Zb(2,!1);this.Zb(4,!1);this.Zb(32,!1);this.Vd=1}u(Nx,Dq);kq("goog-menuheader",function(){return new Nx(null)});function Ox(){}u(Ox,sq);Da(Ox);Ox.prototype.Oc=function(a){return a.g.Ra("DIV",this.Wa())};Ox.prototype.Sb=function(a,b){b.id&&a.$g(b.id);if("HR"==b.tagName){var c=b;b=this.Oc(a);sf(b,c);F(c)}else w(b,this.Wa());return b};Ox.prototype.ug=function(){};Ox.prototype.Wa=function(){return"goog-menuseparator"};function Px(a,b){Dq.call(this,null,a||Ox.Eb(),b);this.Zb(1,!1);this.Zb(2,!1);this.Zb(4,!1);this.Zb(32,!1);this.Vd=1}u(Px,Dq);Px.prototype.Ma=function(){Px.ta.Ma.call(this);var a=this.ha();vm(a,"separator")};kq("goog-menuseparator",function(){return new Px});function Qx(a){this.g=a||"menu"}u(Qx,nq);Da(Qx);f=Qx.prototype;f.dk=function(a){return"UL"==a.tagName||Qx.ta.dk.call(this,a)};f.Nh=function(a){return"HR"==a.tagName?new Px:Qx.ta.Nh.call(this,a)};f.Zd=function(a,b){return Bf(a.ha(),b)};f.sg=function(){return"goog-menu"};f.ek=function(a){Qx.ta.ek.call(this,a);a=a.ha();wm(a,"haspopup","true")};function Rx(a){Px.call(this,Ox.Eb(),a)}u(Rx,Px);kq("goog-menuseparator",function(){return new Px});function Sx(a,b){Rq.call(this,"vertical",b||Qx.Eb(),a);$q(this,!1)}u(Sx,Rq);f=Sx.prototype;f.Ck=!0;f.Zd=function(a){if(this.wd().Zd(this,a))return!0;for(var b=0,c=cn(this);bDate.now()-a.$o);g&&a.km?a.kb():a.dispatchEvent("beforeshow")&&(c="undefined"!=typeof c?c:8,e||(a.ha().style.visibility="hidden"),M(a.ha(),!0),b.Pc(a.ha(),c,d),e||(a.ha().style.visibility="visible"),a.Sd(-1),a.Da(!0))}f.kb=function(){this.isVisible()&&(this.Da(!1),this.isVisible()||(this.$o=Date.now()))};f.$u=function(){this.kb()}; f.ov=function(a){Xx(this,a)};f.pv=function(a){32!=a.keyCode&&13!=a.keyCode&&40!=a.keyCode||Xx(this,a);40==a.keyCode&&Wq(this)};function Xx(a,b){for(var c=a.i.ae(),d=0;dl.endOffset)l={startOffset:e.startOffset, hh:e.hh,endOffset:l.endOffset,Fh:l.Fh};e=Ta(d)}d.push(l);e=l}k.i&&fb(g,h)}}function yy(a,b){this.startOffset=a;this.hh=void 0;this.endOffset=a;this.Fh=void 0;this.i=!1;this.g=b};function zy(a,b){var c=void 0;c=void 0===c?Infinity:c;b=new wy(b);c=void 0===c?Infinity:c;var d=void 0===d?[]:d;var e=" ",g,h=sy(a);for(g=0;g=c&&(d.length=c);return d};function Ay(a){var b=ty(a);a=By();Array.prototype.forEach.call(a,function(c){Cy(b,c)})}function By(){var a=[],b=ib($e("patent-text")),c=bf("patent-title");for(c&&b.push(c);c=b.pop();)3==c.nodeType?a.push(c):jb(b,c.childNodes);return a} function Cy(a,b){var c=Kf(b);a=zy(c,a);if(a.length){var d=[],e=0;a.forEach(function(g){d.push(c.substring(e,g.startOffset),Yd("span",{"class":"patent-text-highlight"},c.substring(g.startOffset,g.endOffset)));e=g.endOffset});d.push(c.substring(e));a=E("span");N(a,he(d));vf(a,b)}};function Dy(){Ix.call(this,"Turn off highlighting");var a=bk("dq")||bk("q");a&&Ay(a);this.Pb=!0}m(Dy,Ix);Dy.prototype.Ma=function(){Ix.prototype.Ma.call(this);Y(this).ka(this,"action",this.i)};Dy.prototype.i=function(){this.Pb=!this.Pb;zb(window.document.body,"patent-highlight-disabled",!this.Pb);Jq(this,this.Pb?"Turn off highlighting":"Turn on highlighting")};function Ey(){}u(Ey,Ox);Da(Ey);Ey.prototype.Oc=function(a){return a.g.Ra("DIV",vq(this,a).join(" ")+" goog-inline-block","\u00a0")};Ey.prototype.Sb=function(a,b){b=Ey.ta.Sb.call(this,a,b);w(b,"goog-inline-block");return b};Ey.prototype.Wa=function(){return"goog-toolbar-separator"};function Fy(){}u(Fy,jt);Da(Fy);f=Fy.prototype;f.Oc=function(a){var b=vq(this,a);b=a.g.Ra("DIV","goog-inline-block "+b.join(" "),this.Vi(a.Gc(),a.g));this.oc(b,a.tf());return b};f.tg=function(){return"button"};f.Ic=function(a){return a&&a.firstChild&&a.firstChild.firstChild};f.Vi=function(a,b){return b.Ra("DIV","goog-inline-block "+(this.Wa()+"-outer-box"),b.Ra("DIV","goog-inline-block "+(this.Wa()+"-inner-box"),a))};f.Fi=function(a){return"DIV"==a.tagName}; f.Sb=function(a,b){Gy(b,!0);Gy(b,!1);a:{var c=a.g.uo(b);var d=this.Wa()+"-outer-box";if(c&&vb(c,d)&&(c=a.g.uo(c),d=this.Wa()+"-inner-box",c&&vb(c,d))){c=!0;break a}c=!1}c||b.appendChild(this.Vi(b.childNodes,a.g));wb(b,["goog-inline-block",this.Wa()]);return Fy.ta.Sb.call(this,a,b)};f.Wa=function(){return"goog-custom-button"}; function Gy(a,b){if(a)for(var c=b?a.firstChild:a.lastChild,d;c&&c.parentNode==a;){d=b?c.nextSibling:c.previousSibling;if(3==c.nodeType){var e=c.nodeValue;if(""==Db(e))a.removeChild(c);else{c.nodeValue=b?e.replace(/^[\s\xa0]+/,""):e.replace(/[\s\xa0]+$/,"");break}}else break;c=d}};function Hy(){}u(Hy,Fy);Da(Hy);Hy.prototype.Wa=function(){return"goog-toolbar-button"};function Iy(){this.g="toolbar"}u(Iy,nq);Da(Iy);Iy.prototype.Nh=function(a){return"HR"==a.tagName?new Px(Ey.Eb()):Iy.ta.Nh.call(this,a)};Iy.prototype.sg=function(){return"goog-toolbar"};Iy.prototype.ro=function(){return"horizontal"};function Jy(a){Iy.call(this);this.i=a}u(Jy,Iy);var Ky={};Jy.prototype.sg=function(){return this.i||"ocean-chrome-toolbar"};function Ly(a){P.call(this);this.g=[];My(this,a)}u(Ly,P);f=Ly.prototype;f.hg=null;f.kk=null;function Ny(a,b){a.kk=b}function My(a,b){b&&(b.forEach(function(c){Oy(this,c,!1)},a),jb(a.g,b))}f.Sa=function(a){this.kf(a,this.g.length)};f.kf=function(a,b){a&&(Oy(this,a,!1),kb(this.g,b,0,a))};f.Kd=function(){return ib(this.g)};f.Ve=function(a){a!=this.hg&&(Oy(this,this.hg,!1),this.hg=a,Oy(this,a,!0));this.dispatchEvent("select")};f.va=function(){Ly.ta.va.call(this);delete this.g;this.hg=null}; function Oy(a,b,c){b&&("function"==typeof a.kk?a.kk(b,c):"function"==typeof b.Vl&&b.Vl(c))};function Py(a,b,c){Rq.call(this,b,a||Iy.Eb(),c)}u(Py,Rq);Py.prototype.Ki=function(a){Py.ta.Ki.call(this,a);this.ie||Wq(this)};function Qy(a,b,c){lt.call(this,a,b||Hy.Eb(),c)}u(Qy,lt);kq("goog-toolbar-button",function(){return new Qy(null)});function Ry(a,b){Px.call(this,a||Ey.Eb(),b)}u(Ry,Px);kq("goog-toolbar-separator",function(){return new Ry});function Sy(a){a=a||"viewport-chrome-toolbar";a=Ky[a]||(Ky[a]=new Jy(a));Py.call(this,a);this.Ba={};this.j=new Gj(this)}m(Sy,Py);function Ty(a,b,c,d){b.Zb(16,!0);if(c){var e=a.Ba[c];e||(e=new Ly,Ny(e,function(g,h){g&&g.Gf(h)}),a.Ba[c]=e);e.Sa(b);b.Pf&=-17;O(b,"action",function(g){e.Ve(g.target)});d&&e.Ve(b)}else b.Zc(16,!!d)}function Uy(a,b){a.Ba.viewport&&a.Ba.viewport.Ve(b)}Sy.prototype.va=function(){Py.prototype.va.call(this);this.j.Ha();Ub(this.Ba,function(a){a.Ha()})};function Vy(){}u(Vy,jt);Da(Vy);f=Vy.prototype;f.Oc=function(a){var b=vq(this,a);b=a.g.Ra("DIV","goog-inline-block "+b.join(" "),a.Gc());this.oc(b,a.tf());return b};f.tg=function(){return"button"};f.Fi=function(a){return"DIV"==a.tagName};f.Sb=function(a,b){w(b,"goog-inline-block");return Vy.ta.Sb.call(this,a,b)};f.Ab=function(){return""};f.Wa=function(){return"goog-flat-button"};kq("goog-flat-button",function(){return new lt(null,Vy.Eb())});function Wy(){}u(Wy,Fy);Da(Wy);Wy.prototype.Ic=function(a){return Wy.ta.Ic.call(this,a&&a.firstChild)};Wy.prototype.Sb=function(a,b){var c=Ye("*","goog-menu",b)[0];if(c){M(c,!1);Ve(c).body.appendChild(c);var d=new Sx;an(d,c);a.Ue(d)}return Wy.ta.Sb.call(this,a,b)};Wy.prototype.Vi=function(a,b){return Wy.ta.Vi.call(this,[b.Ra("DIV","goog-inline-block "+(this.Wa()+"-caption"),a),b.Ra("DIV","goog-inline-block "+(this.Wa()+"-dropdown"),"\u00a0")],b)};Wy.prototype.Wa=function(){return"goog-menu-button"};function Xy(){this.i=[]}u(Xy,Dx);Da(Xy);Xy.prototype.Oc=function(a){var b=Xy.ta.Oc.call(this,a);w(b,"goog-submenu");Yy(this,a,b);return b};Xy.prototype.Sb=function(a,b){b=Xy.ta.Sb.call(this,a,b);w(b,"goog-submenu");Yy(this,a,b);var c=Ye("DIV","goog-menu",b);if(c.length){var d=new Sx(a.g);c=c[0];M(c,!1);a.g.g.body.appendChild(c);an(d,c);a.Ue(d,!0)}return b};Xy.prototype.ug=function(a,b){var c=this.Ic(a),d=c&&c.lastChild;Xy.ta.ug.call(this,a,b);d&&c.lastChild!=d&&vb(d,"goog-submenu-arrow")&&c.appendChild(d)}; Xy.prototype.Gi=function(a){Xy.ta.Gi.call(this,a);var b=a.Ib(),c=Ze(a.g.g,"SPAN","goog-submenu-arrow",b)[0];Zy(a,c);c!=b.lastChild&&b.appendChild(c);a=a.ha();wm(a,"haspopup","true")};function Yy(a,b,c){var d=b.g.Ra("SPAN");d.className="goog-submenu-arrow";Zy(b,d);a.Ic(c).appendChild(d)}function Zy(a,b){en(a)?(w(b,"goog-submenu-arrow-rtl"),G(b,"\u25c4")):(xb(b,"goog-submenu-arrow-rtl"),G(b,"\u25ba"))};function $y(a,b,c,d){Ix.call(this,a,b,c,d||Xy.Eb())}u($y,Ix);f=$y.prototype;f.rh=null;f.bm=null;f.Hl=!1;f.tc=null;f.Yi=!1;f.Ma=function(){$y.ta.Ma.call(this);Y(this).ka(this.getParent(),"hide",this.vp);this.tc&&az(this,this.tc,!0)};f.kc=function(){Y(this).Xa(this.getParent(),"hide",this.vp);this.tc&&(az(this,this.tc,!1),this.Yi||(this.tc.kc(),F(this.tc.ha())));$y.ta.kc.call(this)};f.va=function(){this.tc&&!this.Yi&&this.tc.Ha();this.tc=null;$y.ta.va.call(this)}; f.Wc=function(a){$y.ta.Wc.call(this,a);a||(this.rh&&pl(this.rh),this.rh=T(this.Fe,218,this))};f.am=function(){var a=this.getParent();a&&Vq(a)==this&&(bz(this,!0),cz(this))};f.Fe=function(){var a=this.tc;a&&a.getParent()==this&&(bz(this,!1),bn(a,function(b){"function"==typeof b.Fe&&b.Fe()}))};function dz(a){a.rh&&pl(a.rh);a.bm&&pl(a.bm)}f.Da=function(a,b){(a=$y.ta.Da.call(this,a,b))&&!this.isVisible()&&this.Fe();return a}; function cz(a){bn(a.getParent(),function(b){b!=this&&"function"==typeof b.Fe&&(b.Fe(),dz(b))},a)}f.Sc=function(a){var b=a.keyCode,c=en(this)?37:39,d=en(this)?39:37;if(!this.Hl){if(!this.isEnabled()||b!=c&&13!=b&&b!=this.Il)return!1;this.am();Wq(ez(this));dz(this)}else if(!ez(this).Sc(a))if(b==d)this.Fe();else return!1;a.preventDefault();return!0};f.cv=function(){this.tc.getParent()==this&&(dz(this),this.Tg().Wc(this),cz(this))};f.vp=function(a){a.target==this.Tg()&&(this.Fe(),dz(this))}; f.Le=function(a){this.isEnabled()&&(dz(this),this.bm=T(this.am,218,this));$y.ta.Le.call(this,a)};f.Re=function(a){dz(this);if(Aq(this,8)||Aq(this,16))return $y.ta.Re.call(this,a);this.am();return!0}; function bz(a,b){!b&&ez(a)&&ez(a).Sd(-1);a.dispatchEvent(Ym(64,b));var c=ez(a);b!=a.Hl&&zb(a.ha(),"goog-submenu-open",b);if(b!=c.isVisible()&&(b&&(c.$a||c.render(),c.Sd(-1)),c.Da(b),b)){c=new jr(a.ha(),12,!1);var d=ez(a),e=d.ha();d.isVisible()||(e.style.visibility="hidden",M(e,!0));c.Pc(e,8);d.isVisible()||(M(e,!1),e.style.visibility="visible")}a.Hl=b}function az(a,b,c){var d=Y(a);(c?d.ka:d.Xa).call(d,b,"enter",a.cv)}f.Sa=function(a){ez(this).Oa(a,!0)};f.kf=function(a,b){ez(this).Eg(a,b,!0)}; f.Kd=function(){return ez(this).Kd()};function ez(a){a.tc?a.Yi&&a.tc.getParent()!=a&&a.tc.ke(a):a.Ue(new Sx(a.g),!0);a.tc.ha()||a.tc.Va();return a.tc}f.Ue=function(a,b){var c=this.tc;a!=c&&(c&&(this.Fe(),this.$a&&az(this,c,!1)),this.tc=a,this.Yi=!b,a&&(a.ke(this),a.Da(!1,!0),Tx(a,!1),$q(a,!1),this.$a&&az(this,a,!0)))};f.Zd=function(a){return ez(this).Zd(a)};kq("goog-submenu",function(){return new $y(null)});function fz(a,b,c,d,e){lt.call(this,a,c||Wy.Eb(),d);this.Zb(64,!0);this.s=new Lx(null,9);b&&this.Ue(b);this.Ya=new nl(500);this.Lb=e||Qx.Eb()}u(fz,lt);f=fz.prototype;f.Ma=function(){fz.ta.Ma.call(this);gz(this,!0);this.i&&hz(this,this.i,!0);wm(this.ya,"haspopup",!!this.i)};f.kc=function(){fz.ta.kc.call(this);gz(this,!1);if(this.i){this.Qb(!1);this.i.kc();hz(this,this.i,!1);var a=this.i.ha();a&&F(a)}};f.va=function(){fz.ta.va.call(this);this.i&&(this.i.Ha(),delete this.i);delete this.nb;this.Ya.Ha()}; f.af=function(a){fz.ta.af.call(this,a);Bq(this,4)&&(this.Qb(!this.qd(),a),this.i&&(a=this.qd(),this.i.ie=a))};f.he=function(a){fz.ta.he.call(this,a);this.i&&!Bq(this,4)&&(this.i.ie=!1)};f.Re=function(){Lq(this,!1);return!0};f.vt=function(a){this.i&&this.i.isVisible()&&!this.Zd(a.target)&&this.Qb(!1)};f.Zd=function(a){return a&&Bf(this.ha(),a)||this.i&&this.i.Zd(a)||!1}; f.fe=function(a){if(32==a.keyCode){if(a.preventDefault(),"keyup"!=a.type)return!0}else if("key"!=a.type)return!1;if(this.i&&this.i.isVisible()){var b=13==a.keyCode||32==a.keyCode,c=this.i.Sc(a);return c&&this.i&&this.i.bc instanceof $y||27!=a.keyCode&&!b?c:(this.Qb(!1),!0)}return 40==a.keyCode||38==a.keyCode||32==a.keyCode||13==a.keyCode?(this.Qb(!0,a),!0):!1};f.jl=function(){this.Qb(!1)};f.Hi=function(a){this.Qb(!1);fz.ta.Hi.call(this,a)}; function iz(a){a.i||a.Ue(new Sx(a.g,a.Lb));return a.i||null}f.Ue=function(a){var b=this.i;a!=b&&(b&&(this.Qb(!1),this.$a&&hz(this,b,!1),delete this.i),this.$a&&wm(this.ya,"haspopup",!!a),a&&(this.i=a,a.ke(this),a.Da(!1),Tx(a,!1),this.$a&&hz(this,a,!0)));return b};f.Sa=function(a){iz(this).Oa(a,!0)};f.kf=function(a,b){iz(this).Eg(a,b,!0)};f.Da=function(a,b){(a=fz.ta.Da.call(this,a,b))&&!this.isVisible()&&this.Qb(!1);return a};f.Ta=function(a){fz.ta.Ta.call(this,a);this.isEnabled()||this.Qb(!1)}; f.Qb=function(a,b){fz.ta.Qb.call(this,a);if(this.i&&Bq(this,64)==a){if(a)this.i.$a||this.i.render(),this.Ba=qh(this.ha()),this.ab=Ah(this.ha()),jz(this),!b||40!=b.keyCode&&38!=b.keyCode?this.i.Sd(-1):Wq(this.i);else{Lq(this,!1);this.i.ie=!1;var c=this.ha();c&&(wm(c,"activedescendant",""),wm(c,"owns",""));null!=this.wa&&(this.wa=void 0,(c=this.i.ha())&&J(c,"",""))}this.i.Da(a,!1,b);this.Hd||(b=Y(this),c=a?b.ka:b.Xa,c.call(b,this.g.g,"mousedown",this.vt,!0),c.call(b,this.Ya,"tick",this.ir),a?this.Ya.start(): this.Ya.stop())}this.i&&this.i.ha()&&this.i.ya.removeAttribute("aria-hidden")};function jz(a){if(a.i.$a){var b=a.nb||a.ha(),c=a.s;a.s.g=b;b=a.i.ha();a.i.isVisible()||(b.style.visibility="hidden",M(b,!0));!a.wa&&a.s.N&&a.s.j&32&&(a.wa=L(b));c.Pc(b,c.i^1,null,a.wa);a.i.isVisible()||(M(b,!1),b.style.visibility="visible")}} f.ir=function(){var a=Ah(this.ha()),b=qh(this.ha());var c=this.ab;(c=!(c==a||c&&a&&c.left==a.left&&c.width==a.width&&c.top==a.top&&c.height==a.height))||(c=this.Ba,c=!(c==b||c&&b&&c.top==b.top&&c.right==b.right&&c.bottom==b.bottom&&c.left==b.left));c&&(this.i.$a&&b&&this.Ba&&b.Bb()h;h++){for(var k=mf(d,"TR"),l=0;2>l;l++)k.appendChild(mf(d,"TD"));g.appendChild(k)}w(e,this.className+"-table-layout");d=e.rows[0].cells;g=sz(this);d[0].appendChild(g);g=tz(this);d[1].appendChild(g);g=C("DIV",this.className+"-link"); h=C("A",{target:"_blank"},"Help with devices & formats");k=new Q(window.location.href);l=new Q("/support/bin/answer.py?answer=1062949");k=S(k,"hl")?R(l,"hl",S(k,"hl")).toString():"/support/bin/answer.py?answer=1062949";pe(h,k);g.appendChild(h);d[1].appendChild(g);c.appendChild(e);d=this.s;(e=d.Gd)&&!d.dg&&d.nb&&(e=C("P",this.className+"-additional",C("A",{href:e},d.Rb?"Read the book for FREE":"Read the first chapter - FREE!")),c.appendChild(e));if(d.Ka||d.La)if(g=d.Xb,h=d.ab,g||h)e=C("P",this.className+ "-additional",of("Download ")),g&&(k=C("A",{href:g},"EPUB"),e.appendChild(k)),h&&(g&&e.appendChild(of(", ")),g=C("A",{href:h},"PDF"),e.appendChild(g)),e.appendChild(of(" - ")),d=d.Yb(),g=(new Q(window.location.href)).o.split("/"),g=new Q("/"+g[1]),Lt(g),R(g,"output","acs_help"),R(g,"id",d),d=C("A",{href:g.toString()},"read eReader instructions"),e.appendChild(d),c.appendChild(e);e=C("A",{target:"_blank"},"Learn more about books on Google Play");pe(e,"https://books.google.com/support/bin/topic.py?topic=28528"); this.j=C("DIV",this.className+"-footer",e);b=C("DIV",b,c,this.j);w(b,this.className+"-device-content");a.appendChild(b)}}; function sz(a){var b=C("UL",a.className+"-list"),c=C("H4",null,"Good for:");b.appendChild(c);var d=a.className+"-device-type";c=a.className+"-device-supported";var e=a.className+"-device-not-supported",g=a.className+"-device-unknown-supported",h=C("A",{"class":d,href:"/help/ebooks/webreader.html"},"Web"),k=C("A",{"class":d,href:"/help/ebooks/devices.html"},"Tablet / iPad"),l=C("A",{"class":d,href:"/help/ebooks/ereader.html"},"eReader"),n=C("A",{"class":d,href:"/help/ebooks/devices.html"},"Smartphone"), r=a.s.oj,x=a.s.qj,D=a.s.dg;d=new Gj(a);h=C("LI",null,h);D?d.ka(h,"mouseover",t(a.i,"The format of this book is currently unknown. We will update this when we receive the information from the publisher.")):(r||x)&&d.ka(h,"mouseover",t(a.i,"This eBook, like all Google eBooks, is formatted to be readable on the web."));d.ka(h,"mouseout",a.Ba);b.appendChild(h);k=C("LI",null,k);D?d.ka(k,"mouseover",t(a.i,"The format of this book is currently unknown. We will update this when we receive the information from the publisher.")): (r||x)&&d.ka(k,"mouseover",t(a.i,"This eBook, like all Google eBooks, is formatted to be readable on tablet devices like Android tablets and the iPad."));d.ka(k,"mouseout",a.Ba);b.appendChild(k);l=C("LI",null,l);d.ka(l,"mouseover",function(){D?this.i("The format of this book is currently unknown. We will update this when we receive the information from the publisher."):r?this.i("This Google eBook includes flowing text, so you can adjust the font to read comfortably on an eReader."):this.i("This Google eBook does not include flowing text, so you cannot adjust the font on an eReader.")}); d.ka(l,"mouseout",a.Ba);b.appendChild(l);n=C("LI",null,n);d.ka(n,"mouseover",function(){D?this.i("The format of this book is currently unknown. We will update this when we receive the information from the publisher."):r&&x?this.i("This eBook is good for smartphones like Android and iPhone / iPod touch."):r?this.i("This Google eBook includes flowing text so you can adjust the font to read comfortably on the small screen of a smartphone."):this.i("This eBook may be hard to read on smartphones like Android and iPhone / iPod touch.")}); d.ka(n,"mouseout",a.Ba);b.appendChild(n);D?(w(h,g),w(k,g),w(l,g),w(n,g)):r?(w(h,c),w(k,c),w(l,c),w(n,c)):(x?(w(h,c),w(k,c)):(w(h,e),w(k,e)),w(l,e),w(n,e));return b} function tz(a){var b=C("UL",a.className+"-list"),c=C("H4",null,"Features:");b.appendChild(c);var d=a.className+"-device-supported",e=a.className+"-device-not-supported",g=a.className+"-device-unknown-supported";c=C("A",{},"Flowing text");pe(c,"/support/bin/answer.py?answer=1062949");var h=C("A",{},"Scanned pages");pe(h,"/support/bin/answer.py?answer=1062949");var k=a.s.oj,l=a.s.qj,n=a.s.dg;n?(c=C("LI",g,c),d=C("LI",g,h)):(c=C("LI",k?d:e,c),d=C("LI",l?d:e,h));e=new Gj(a);e.ka(c,"mouseover",function(){n? this.i("The format of this book is currently unknown. We will update this when we receive the information from the publisher."):k?this.i("This eBook includes flowing text, so you can adjust the font size and style to read comfortably on any device."):this.i("This book does not include flowing text, so you cannot adjust the font. Instead, you see images of pages, with a fixed layout. This is good for larger screens, but not always ideal for eReaders and smartphones.")});e.ka(c,"mouseout",a.Ba);e.ka(d, "mouseover",function(){n?this.i("The format of this book is currently unknown. We will update this when we receive the information from the publisher."):l?this.i("This eBook includes scanned pages, so pages appear as they would in a printed book."):this.i("This eBook does not include scanned pages, which retain the format of a printed book. Instead, the text can be adjusted and it flows to fit any screen.")});e.ka(d,"mouseout",a.Ba);b.appendChild(c);b.appendChild(d);return b} rz.prototype.Ba=function(){rf(this.j);var a=C("A",{target:"_blank"},"Learn more about books on Google Play");pe(a,"https://books.google.com/support/bin/topic.py?topic=28528");this.j.appendChild(a)};rz.prototype.i=function(a){rf(this.j);"string"===typeof a?this.j.appendChild(of(a)):this.j.appendChild(a)};function uz(a,b){Z.call(this,b,void 0,3);this.s=a}m(uz,Z);uz.prototype.render=function(a){Z.prototype.render.call(this,a);w(this.ha(),"gb-get-book")};uz.prototype.Ma=function(){Z.prototype.Ma.call(this);var a=this.ha();this.i=new rz(a,this.s);this.i.render();a=B("menu_container");(a=bf("about_title",a))&&F(a)}; function vz(){var a=B("gb-buy-options-trigger");if(a&&a.parentNode&&a.parentNode.parentNode?!vb(a.parentNode.parentNode,"jfk-button"):1){a=B("gb-buy-options-trigger");var b=B("buy");if(a&&b){xb(b,"about_content");var c=C("SPAN","gb-buy-options-arrow","\u25bc");a.appendChild(c);w(b,"gb-buy-options-list");w(b,"unified-hovercard");er(a,9,b,8);M(b,!1);O(document,"mousedown",t(wz,a,b))}}}function wz(a,b,c){a=Bf(a,c.target);c=Bf(b,c.target);var d=Ch(b);a||c||!d?a&&(M(b,!d),d||Bh(b,1)):M(b,!1)};function xz(a,b,c,d,e,g){function h(l){if(l){l.tabIndex=0;vm(l,k.wa);w(l,"goog-zippy-header");l&&k.oa.ka(l,"click",k.na);var n=k;l&&(fq(n.O,l),n.ma.ka(n.O,"key",n.ua))}}P.call(this);this.N=e||Te();this.i=this.N.ha(a)||null;this.o=this.N.ha(d||null);this.s="function"===typeof b?b:null;this.wa=g||"tab";this.j=this.s||!b?null:this.N.ha(b);this.g=1==c;void 0!==c||this.s||(this.o?this.g=Ch(this.o):this.i&&(this.g=vb(this.i,"goog-zippy-expanded")));this.ma=new Gj(this);this.O=new eq;this.oa=new Gj(this); var k=this;h(this.i);h(this.o);this.Te(this.g)}u(xz,P);xz.prototype.va=function(){xz.ta.va.call(this);$i(this.ma);$i(this.O);$i(this.oa)};xz.prototype.Te=function(a){this.j?M(this.j,a):a&&this.s&&(this.j=this.s());this.j&&w(this.j,"goog-zippy-content");this.o?(M(this.i,!a),M(this.o,a)):this.i&&(zb(this.i,"goog-zippy-expanded",a),zb(this.i,"goog-zippy-collapsed",!a),wm(this.i,"expanded",a));this.g=a;this.dispatchEvent(new yz("toggle",this,this.g))}; xz.prototype.ua=function(a){if(13==a.keyCode||32==a.keyCode)this.Te(!this.g),this.dispatchEvent(new yz("action",this,this.g,a)),a.preventDefault(),a.stopPropagation()};xz.prototype.na=function(a){this.Te(!this.g);this.dispatchEvent(new yz("action",this,this.g,a))};function yz(a,b){dj.call(this,a,b)}u(yz,dj);function zz(a,b,c,d){if(b.child_node&&0"+c.i.Jb.yb.length+"",""+$p(c.i.Jb)+""))):N(c.j,Si("Showing "+(c.i.Jb.yb.length+" results in this book for ")+($p(c.i.Jb)+"")));Yz(c,!0);c=a.Jb;c!=b.Jb&&(b.Jb=c,xx(b));a=q(a.vf,a);b.Ba=a;b.Yc(new A(0, 0))} Tz.prototype.vf=function(a,b){xv=!0;var c=this.Vc.j;Yz(c,!1);c.N=Ua(c.i.Jb.yb,a);c.o?(M(B("gb-mobile-search"),!0),M(B("gb-mobile-search-buttons"),!0),N(c.j,Si(Zz(c,c.N+1,c.i.Jb.yb.length,null)))):rc?N(c.j,Si(Zz(c,""+(c.N+1)+"",""+c.i.Jb.yb.length+"",""+$p(c.i.Jb)+""))):N(c.j,Si("Result "+(c.N+1+" of ")+(c.i.Jb.yb.length+" in this book for ")+($p(c.i.Jb)+"")));c=this.Vc.V;a=ko(c.rb(),a.Pa());if(!a)return null;var d=c.Ia();d instanceof Cw||d instanceof gx||(this.Vc.o== gx?c.qc(gx):c.qc(Cw));if(b)return c.Bd(b),null;c.Th(a);return a};Tz.prototype.va=function(){$i(this.j);W.prototype.va.call(this)};function $z(a){W.call(this);this.Ja=sp(a);this.o=rc&&a&&a.enableOgenEligibleMobileViewportSitb;this.na=this.s=null;this.o?(M(B("gb-mobile-search"),!0),M(B("gb-mobile-search-buttons"),!0)):(this.ma=E("DIV"),this.ua=new Tp(this.ma),this.ua.render(aA),this.ua.Da(!0),a=this.ua.ha(),w(a,"search-results-bar"),w(this.ma,"search-results-bar-contents"));this.j=this.o?B("gb-mobile-search-results-summ"):E("SPAN");this.o||this.ma.appendChild(this.j);this.oa=this.o?B("gb-mobile-search-result-links"):E("SPAN"); this.o?(bA(this,B("gb-mobile-search-result-prev"),q(this.lj,this,-1),"Previous"),bA(this,B("gb-mobile-search-result-next"),q(this.lj,this,1),"Next"),G(B("gb-mobile-search-result-viewall"),"View all"),bA(this,B("gb-mobile-search-result-viewall"),q(this.No,this),"View all"),G(B("gb-mobile-search-clear"),"Clear search"),bA(this,B("gb-mobile-search-clear"),q(this.ll,this),"Clear search")):(w(this.oa,"search-bar-result-links"),this.ma.appendChild(this.oa),a=E("SPAN"),N(a,Si("-  ")),w(a,"search-bar-link-spacer"), this.oa.appendChild(a),cA(this,this.oa,"‹ Previous",q(this.lj,this,-1),"Previous"),a=E("SPAN"),N(a,Si("  ")),w(a,"search-bar-link-spacer"),this.oa.appendChild(a),cA(this,this.oa,"Next ›",q(this.lj,this,1),"Next"),a=E("SPAN"),N(a,Si("  -  ")),w(a,"search-bar-link-spacer"),this.oa.appendChild(a),cA(this,this.oa,"View all",q(this.No,this)));this.O=this.o?B("gb-mobile-search-snippet-links"):E("SPAN");this.o?dA(this):(this.Ja?(this.wa=E("DIV"),w(this.wa,"search-bar-result-buttons"), this.ma.appendChild(this.wa),this.wa.appendChild(this.O),wb(this.O,["search-bar-sort-dropdown-button-container","search-bar-close-link"]),dA(this)):(this.Ba=E("SPAN"),this.Ca=E("SPAN"),this.ma.appendChild(this.O),a=E("SPAN"),N(a,Si("-  ")),w(a,"search-bar-link-spacer"),this.O.appendChild(a),this.O.appendChild(of("Order by: ")),this.O.appendChild(this.Ba),cA(this,this.Ba,"relevance",q(this.mj,this,"r"),"Order by relevance"),a=E("SPAN"),N(a,Si(" | pages")),this.Ba.appendChild(a), this.O.appendChild(this.Ca),a=E("SPAN"),N(a,Si("relevance | ")),this.Ca.appendChild(a),cA(this,this.Ca,"pages",q(this.mj,this,"n"),"Order by pages")),w(this.O,"search-bar-snippet-links"));if(!this.o){a=E("SPAN");w(a,"search-bar-close-link-container");this.Ja?this.wa.appendChild(a):this.ma.appendChild(a);this.g.ka(a,"click",this.ll);var b=cA(this,a,"Clear search",q(this.ll,this));w(b,"search-bar-close-link");b=E("IMG");b.src="/googlebooks/images/close_x.gif";w(b,"search-bar-close-img"); a.appendChild(b);Fh(this.ma,!0)}}var aA,eA,fA;m($z,W);function gA(){aA=B("search_bar")}function hA(){eA=B("toolbar_container")} function dA(a){a.s=C("A",{"class":"search-bar-sort-dropdown-link"});vm(a.s,"button");Hf(a.s,!0);wm(a.s,"haspopup",!0);a.O.appendChild(a.s);var b=C("SPAN",{"class":"search-bar-sort-dropdown-text"});G(b,"Order by");a.na=C("SPAN",{"class":"search-bar-sort-dropdown-selected"});G(a.na,"relevance");b.appendChild(a.na);a.s.appendChild(b);b=qt("/googlebooks/images/material/arrow_drop_down_black_20dp.png");w(b[0],"search-bar-sort-dropdown-icon");wm(b[0],"hidden",!0);a.s.appendChild(b[0]);b=new Ux;var c=new Ix("relevance"); c.ii("Order by relevance");b.Oa(c,!0);w(c.ha(),"search-bar-sort-dropdown-item");c=new Ix("pages");c.ii("Order by pages");b.Oa(c,!0);w(c.ha(),"search-bar-sort-dropdown-item");b.km=!0;b.render(document.body);Vx(b,a.s,13,12);a.g.ka(b,"action",a.Go);a.g.ka(b,"keydown",function(d){32!=d.keyCode&&13!=d.keyCode||q(a.Go,a)})}function Yz(a,b){M(eA,!b);M(a.O,b);M(a.oa,!b&&1=d&&(a.N=0);0>a.N&&(a.N=d-1);a.N!=b&&(a.i.vf(a.i.Jb.yb[a.N])||jA(a,b,c))}f.mj=function(a){var b=this.i.Vc;b&&b.update(a)};f.No=function(){Vz(this.i)}; f.gu=function(a){var b=this.i.Vc;b&&(a=Ie(a),Ko(b.V.tb(),a),b.N.xc(a),b.s&&b.s.update())};f.Go=function(a){if((a=a.target.Gc())&&this.na)switch(a){case "pages":this.mj("n");G(this.na,"pages");break;case "relevance":this.mj("r"),G(this.na,"relevance")}};function Wz(a,b){a.s&&(zb(a.s,"search-bar-sort-dropdown-disabled",!b),wm(a.s,"disabled",!b));var c="n"==a.i.fm;b&&!c&&G(a.na,"relevance")}function Xz(a,b,c){return a.o?b+" results":b+" results for "+c} function Zz(a,b,c,d){return a.o?b+" of "+c:"Result "+b+" of "+c+" for "+d};function kA(a,b,c,d){W.call(this);this.V=a;this.N=b;this.s=c;this.O=d;this.g.ka(a.tb(),"change",q(this.update,this,"r",null))}m(kA,W); kA.prototype.update=function(a,b,c){this.i?(this.i.Ha(),this.i=null):(this.V.O&&(this.o=this.V.O),this.j=new $z(this.O));var d=this.V.tb().getQuery();b&&!b.search_query_escaped&&0a.i){var c=a.g.scrollTop,d=a.g.scrollLeft;a.g.value=a.g.value.substring(0,a.i);b=a.i;a.g.scrollTop=c;a.g.scrollLeft=d}a.o&&G(a.o,String(1==a.s?b:a.i-b))}vA.prototype.va=function(){vA.ta.va.call(this);delete this.g;this.j.Ha();this.j=null};function xA(a,b,c,d,e){rA.call(this,a,b,null,!0);this.ab=c;this.Rb=d;this.Ca=e}m(xA,rA); xA.prototype.Va=function(){rA.prototype.Va.call(this);this.s=yA(this,"Name","input");this.nb=yA(this,"Description (optional)","textarea");var a=this.Ib(),b=C("DIV",{"class":"ccd-label"}),c=E("span");c.textContent="Visibility";b.appendChild(c);a.appendChild(b);a=C("SPAN",{className:"ccd-mode-indicator"});c=C("IMG",{src:"/googlebooks/images/sharing_public.gif",style:"vertical-align:-2px;padding:0 2px"});var d=E("span");d.textContent="Public";a.appendChild(c);a.appendChild(d); b.appendChild(a);c=C("SPAN",{className:"ccd-mode-indicator"});d=C("IMG",{src:"/googlebooks/images/sharing_private.gif",style:"vertical-align:-2px;"});var e=E("span");e.textContent="Private";c.appendChild(d);c.appendChild(e);b.appendChild(c);d=C("SPAN",{"class":"ccd-mode-link"});d.textContent="Make public";b.appendChild(d);O(d,"click",q(this.Ka,this,!0));e=C("SPAN",{"class":"ccd-mode-link"});e.textContent="Make private";b.appendChild(e);O(e,"click",q(this.Ka,this,!1));this.ye=[a,e];this.xe=[c,d];null!= this.Ca&&(df(this.Ca,{"class":"ccd-mode-link"}),b.appendChild(this.Ca));this.Ka(!0);this.na=C("DIV",{"class":"ccd-error"});this.Ib().appendChild(this.na);this.Vb=C("P","ccd-footnote","Please note that the contents and title of Public bookshelves can be viewed and shared by others.");this.Ib().appendChild(this.Vb);this.i&&zA(this);$o.IsZipitFolderCollectionEnabled||(b=this.j,a=Fn(b,"ok"),I(a,"fontWeight","bold"),w(a,"gb-button"),w(Fn(b,"cancel"),"gb-button"))}; function zA(a){a.s.value=Ie(a.i.hb());a.s.disabled=a.i.O;a.nb.value=Ie(a.i.Pg());a.Ka(1==a.i.ze);a.s.disabled&&I(a.s,"background","#f2f2f2")}function yA(a,b,c){var d=a.Ib();a=C("DIV",{"class":"gb-bookshelf-dialog-container"});d.appendChild(a);d=C("DIV",{"class":"ccd-label"});N(d,ni(b));a.appendChild(d);b=C(c,{"class":"ccd-input"});"input"==c?(df(b,{type:"text"}),b.setAttribute("maxlength",100)):"textarea"==c&&(df(b,{rows:6,cols:50}),new vA(b,E("span"),500));a.appendChild(b);return b} xA.prototype.Ka=function(a){this.we=a;v(this.ye,function(b){M(b,a)});v(this.xe,function(b){M(b,!a)})}; xA.prototype.Ua=function(a){var b=this.s.value;if("cancel"==a.key)return!0;if(Cb(b))return this.na.textContent="Please enter a title for this bookshelf.",!1;if(this.Rb&&!this.Rb(b))return this.na.textContent="Another bookshelf already has that title. Please enter a different title.",!1;a=this.i||new Tt;a.Ec=b;a.o=this.nb.value;a.ze=this.we?1:2;if(this.i){b=this.ab;var c=new Q(b.fq);R(c,"as_coll",a.getId());du(c,a,q(b.N,b))}else b=this.ab,du(b.o,a,q(b.s,b,!0));return!0}; xA.prototype.va=function(){delete this.ab;delete this.Ca;delete this.i;delete this.na;delete this.Vb;delete this.s;delete this.nb;delete this.Rb;rA.prototype.va.call(this)};function AA(a,b,c,d,e){W.call(this);this.O=a;this.j=b;this.N=c;this.i=d;this.O&&(this.o=Xa(this.O.childNodes,BA),this.i&&jb(this.o,Xa(this.i.childNodes,BA)));this.s=e;T(q(this.qr,this))}u(AA,W);f=AA.prototype;f.qr=function(){this.j&&this.i&&this.g.ka(this.j,"click",this.eq);this.N&&this.g.ka(this.N,"click",this.tt);this.g.ka(this.s,"add",this.Cs)}; function BA(a){var b=Ye("SPAN","sidebar-collection-title",a)[0];b||(b=Ye("SPAN","hp-collection-title",a)[0]);if(!b)return"";a=Db(Ee(If(b)));return Db(a.split("(")[0])}f.tt=function(){var a=new xA("Create new bookshelf","Create bookshelf",this.s,q(this.Iu,this));a.render();a.Da(!0)};f.Iu=function(a){var b=Db(Ee(a)).toLowerCase();return!Ya(this.o,function(c){return c.toLowerCase()==b})}; f.Cs=function(a){a=a.shelf;var b=Db(Ee(a.hb())),c=1==a.ze;this.o.push(b);var d=new Q("/books");Lt(d);R(d,"as_coll",a.getId());R(d,"source","gbs_lp_bookshelf_list");if($o.IsBooksUnifiedLeftNavEnabled){a=C("LI",{"class":"left-nav-shelf-item"});var e=C("A",{"class":"sidebar-link"});pe(e,d.toString());d=C("SPAN");w(d,"sidebar-collection-title");N(d,Gl(b+" (0)"));e.appendChild(d);a.appendChild(e);c=B("hidden-my-library-expanded");sf(a,c);qA(!0,"my-library")}else a=E("DIV"),e=C("A",{"class":"hp-bookshelf-link", style:"line-height:19px"}),pe(e,d.toString()),d=C("SPAN",{"class":"hp-collection-title"}),N(d,Gl(b)),e.appendChild(d),a.appendChild(e),b=c?"Public bookshelf":"Private bookshelf",c=C("IMG",{"class":"hp-bookshelf-access",src:"/googlebooks/images/sharing_"+(c?"public":"private")+".gif",title:b,alt:b,width:14,height:14}),a.appendChild(c),c=C("DIV",{style:"clear:both"}),a.appendChild(c),tf(a,B("csStart"))}; f.eq=function(a){a.preventDefault();a=!Ch(this.i);M(this.i,a);a?(er(this.j,9,this.i,8),200