書籍の全文が登録された世界最大級の包括的なインデックスを検索できます。

マイ ライブラリ

出版社Google ブックスについてプライバシー ポリシー利用規約ヘルプ
portable guard tower

");return(new DOMParser).parseFromString(Xd(a),"text/html").body.children[0]} function Og(a,b){if(!a)return Hd;var c=document.createElement("div").style;Rg(a).forEach(function(d){var e=oc&&d in Lg?d:d.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");Lb(e,"--")||Lb(e,"var")||(d=Hg(a,d),d=gg(e,d,b),null!=d&&Ig(c,e,d))});return new Dd(c.cssText||"",Cd)} function Sg(a){var b=Array.from(zg(og,a,"getElementsByTagName",["STYLE"])),c=Cb(b,function(h){return tb(Dg(h).cssRules)});c=Ng(c);for(var d=[],e=0;e=a.left&&b.right=a.top&&b.bottom=a.left&&b.x=a.top&&b.ya.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(ca.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=Ue(a),d=c.g.body,e=c.g.documentElement,g=kf(c.g);a=ph(a);)if(!(z&&0==a.clientWidth||oc&&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= gf(Qf(c));b.right=Math.min(b.right,d+c.width);b.bottom=Math.min(b.bottom,g+c.height);return 0b.top&&b.right>b.left?b:null} function sh(a,b){b=b||kf(document);var c=b||kf(document);var d=rh(a),e=rh(c),g=th(c);if(c==kf(document)){var h=d.x-c.scrollLeft;d=d.y-c.scrollTop;z&&!Gc(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=We(a),c=new A(0,0),d=nh(b);if(a==d)return c;a=oh(a);b=jf(Ue(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 K(a,b,c){if(b instanceof Be)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=oc&&!b&&!c;return(void 0===b||d)&&a.getBoundingClientRect?(a=oh(a),new Be(a.right-a.left,a.bottom-a.top)):new Be(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=nc?"MozUserSelect":oc||lc?"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=hf(Ue(We(a)).g);if(!z||Fc("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=We(a),c=z&&a.currentStyle;if(c&&hf(Ue(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 Be(b,a);c=new Be(a.offsetWidth,a.offsetHeight);b=Ih(a);a=th(a);return new Be(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=hf(Ue(We(a)).g);if(!z||Fc("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;nc?a.MozBoxSizing=c:oc?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&&!Gc(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||Gc(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.i=Zc(a.g);this.N=Zc(a.ua);this.j=Zc(a.va);this.oa=a.na;a.Ca.forEach(function(b){if(!Lb(b,"data-"))throw new eb('Only "data-" attributes allowed, got: %s.',[b]);if(Lb(b,"data-sanitizer-"))throw new eb('Attributes with "%s" prefix are not allowed, got: %s.',["data-sanitizer-",b]);this.i["* "+b.toUpperCase()]=ci},this);a.Ba.forEach(function(b){b=b.toUpperCase();if(!Yb(b,"-")||Zh[b])throw new eb("Only valid custom element tag names allowed, got: %s.",[b]);this.j[b]= !0},this);this.ma=a.j;this.o=a.Pa;this.s=null;this.O=a.oa}u($h,Wh);function di(a){return function(b,c){return(b=a(Ob(b),c))&&"about:invalid#zClosurez"!=ud(b)?ud(b):null}}function ai(){this.g={};v([Ph,Qh],function(a){Tc(a).forEach(function(b){this.g[b]=ci},this)},this);this.i={};this.Ca=[];this.Ba=[];this.ua=Zc(Xh);this.va=Zc(Yh);this.na=!1;this.ma=zd;this.O=this.s=this.o=this.j=Mc;this.Pa=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.o))},a);fi(a.g,a.i,"A TARGET",t(ii,["_blank","_self"]));fi(a.g,a.i,"* CLASS",t(ji,a.s));fi(a.g,a.i,"* ID",t(ki,a.s));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 Ob(a)}function ii(a,b){b=Ob(b);return nb(a,b.toLowerCase())?b:null}function gi(a){return(a=Ob(a))&&"#"==a.charAt(0)?a:null}function hi(a,b,c){return a(Ob(b),c)}function ji(a,b,c){b=b.split(/(?:\s+)/);for(var d=[],e=0;e"+b+""),Sg(b),b=b.innerHTML);b=Zd(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=F("SPAN"),this.oa&&Bg(h,"data-sanitizer-original-tag",g.toLowerCase()));if(h){var k=h,l=Ag(e);if(null!=l)for(var m=0;g=l[m];m++)if(g.specified){var p=e;var w=g;var D=w.name;if(Lb(D,"data-sanitizer-"))w=null;else{var E=Eg(p); w=w.value;var G={tagName:Ob(E).toLowerCase(),attributeName:Ob(D).toLowerCase()},P={il:void 0};"style"==G.attributeName&&(P.il=Cg(p));p=li(E,D);p in this.i?(D=this.i[p],w=D(w,G,P)):(D=li(null,D),D in this.i?(D=this.i[D],w=D(w,G,P)):w=null)}null!==w&&Bg(k,g.name,w)}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 sf(d)}c.clear&&c.clear()}else a=F("SPAN");0")+1,a.lastIndexOf(""))}else a="";return Zd(a)};function mi(a,b){var c=b.data;(b=Gg(b))&&"style"==Eg(b).toLowerCase()&&!("STYLE"in a.N)&&"STYLE"in a.j&&(c=Sd(Pg(c,a.s,r(function(d,e){return this.ma(d,{qt:e})},a))));return document.createTextNode(c)};function ni(a){return(new $h(new ai)).g(a)};/* SPDX-License-Identifier: Apache-2.0 */ var oi={};function pi(){}function qi(a){this.g=a}n(qi,pi);qi.prototype.toString=function(){return this.g};function N(a,b){if(void 0!==a.tagName){if("script"===a.tagName.toLowerCase())throw Error("Use setTextContent with a SafeScript.");if("style"===a.tagName.toLowerCase())throw Error("Use setTextContent with a SafeStyleSheet.");}a.innerHTML=Xd(b)} function ri(a,b){var c=si;if(0===c.length)throw Error("No prefixes are provided");if(c.map(function(d){if(d instanceof qi)d=d.g;else throw Error("");return d}).every(function(d){return 0!=="value".indexOf(d)}))throw Error('Attribute "value" does not match any of the allowed prefixes.');a.setAttribute("value",b)};function ti(a){var b,c,d=null==(c=(b=(a.ownerDocument&&a.ownerDocument.defaultView||window).document).querySelector)?void 0:c.call(b,"script[nonce]");(b=d?d.nonce||d.getAttribute("nonce")||"":"")&&a.setAttribute("nonce",b)};function ui(a){a&&"function"==typeof a.Ha&&a.Ha()};function vi(){this.Nd=this.Nd;this.Pa=this.Pa}vi.prototype.Nd=!1;vi.prototype.Ha=function(){this.Nd||(this.Nd=!0,this.wa())};function wi(a,b){b=t(ui,b);a.Nd?b():(a.Pa||(a.Pa=[]),a.Pa.push(b))}vi.prototype.wa=function(){if(this.Pa)for(;this.Pa.length;)this.Pa.shift()()};function xi(a){this.id=a}xi.prototype.toString=function(){return this.id};function yi(a,b){this.type=a instanceof xi?String(a):a;this.currentTarget=this.target=b;this.defaultPrevented=this.g=!1}yi.prototype.stopPropagation=function(){this.g=!0};yi.prototype.preventDefault=function(){this.defaultPrevented=!0};function zi(a){a.preventDefault()};var Ai=function(){if(!q.addEventListener||!Object.defineProperty)return!1;var a=!1,b=Object.defineProperty({},"passive",{get:function(){a=!0}});try{q.addEventListener("test",function(){},b),q.removeEventListener("test",function(){},b)}catch(c){}return a}();function Bi(a,b){yi.call(this,a?a.type:"");this.relatedTarget=this.currentTarget=this.target=null;this.button=this.screenY=this.screenX=this.clientY=this.clientX=this.offsetY=this.offsetX=0;this.key="";this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.state=null;this.im=!1;this.pointerId=0;this.pointerType="";this.Ob=null;a&&this.Kl(a,b)}u(Bi,yi);var Ci={2:"touch",3:"pen",4:"mouse"}; Bi.prototype.Kl=function(a,b){var c=this.type=a.type,d=a.changedTouches&&a.changedTouches.length?a.changedTouches[0]:null;this.target=a.target||a.srcElement;this.currentTarget=b;(b=a.relatedTarget)?nc&&(ic(b,"nodeName")||(b=null)):"mouseover"==c?b=a.fromElement:"mouseout"==c&&(b=a.toElement);this.relatedTarget=b;d?(this.clientX=void 0!==d.clientX?d.clientX:d.pageX,this.clientY=void 0!==d.clientY?d.clientY:d.pageY,this.screenX=d.screenX||0,this.screenY=d.screenY||0):(this.offsetX=oc||void 0!==a.offsetX? a.offsetX:a.layerX,this.offsetY=oc||void 0!==a.offsetY?a.offsetY:a.layerY,this.clientX=void 0!==a.clientX?a.clientX:a.pageX,this.clientY=void 0!==a.clientY?a.clientY:a.pageY,this.screenX=a.screenX||0,this.screenY=a.screenY||0);this.button=a.button;this.keyCode=a.keyCode||0;this.key=a.key||"";this.charCode=a.charCode||("keypress"==c?a.keyCode:0);this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.im=qc?a.metaKey:a.ctrlKey;this.pointerId=a.pointerId||0;this.pointerType= "string"===typeof a.pointerType?a.pointerType:Ci[a.pointerType]||"";this.state=a.state;this.Ob=a;a.defaultPrevented&&Bi.ta.preventDefault.call(this)};function Di(a){return 0==a.Ob.button&&!(qc&&a.ctrlKey)}Bi.prototype.stopPropagation=function(){Bi.ta.stopPropagation.call(this);this.Ob.stopPropagation?this.Ob.stopPropagation():this.Ob.cancelBubble=!0};Bi.prototype.preventDefault=function(){Bi.ta.preventDefault.call(this);var a=this.Ob;a.preventDefault?a.preventDefault():a.returnValue=!1};var Ei="closure_listenable_"+(1E6*Math.random()|0);function Fi(a){return!(!a||!a[Ei])};var Gi=0;function Hi(a,b,c,d,e){this.listener=a;this.proxy=null;this.src=b;this.type=c;this.capture=!!d;this.Ej=e;this.key=++Gi;this.nh=this.kj=!1}function Ii(a){a.nh=!0;a.listener=null;a.proxy=null;a.src=null;a.Ej=null};function Ji(a){this.src=a;this.g={};this.i=0}f=Ji.prototype;f.add=function(a,b,c,d,e){var g=a.toString();a=this.g[g];a||(a=this.g[g]=[],this.i++);var h=Ki(a,b,d,e);-1>>0);function Qi(a){if("function"===typeof a)return a;a[Zi]||(a[Zi]=function(b){return a.handleEvent(b)});return a[Zi]};function $i(a){vi.call(this);this.N=a;this.j={}}u($i,vi);var aj=[];f=$i.prototype;f.ka=function(a,b,c,d){return bj(this,a,b,c,d)};function cj(a,b,c,d,e){bj(a,b,c,d,!1,e)}function bj(a,b,c,d,e,g){Array.isArray(c)||(c&&(aj[0]=c.toString()),c=aj);for(var h=0;h=a.keyCode)return!1;if(ij(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!nc;default:return 166>a.keyCode||183=a||96=a||65=a||(oc||lc)&&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 nc;default:return!1}}function kj(a){if(nc)a=lj(a);else if(qc&&oc)switch(a){case 93:a=91}return a} function lj(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 mj(a){if(a.qc&&"function"==typeof a.qc)return a.qc();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(Qa(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.slice(0,d),e,a.slice(c)];c=a[1];a[1]=b?c?c+"&"+b:b:c;a=a[0]+(a[1]?"?"+a[1]:"")+a[2]}return a}function sj(a,b,c,d){for(var e=c.length;0d)return null;var e=b.indexOf("&",d);if(0>e||e>c)e=c;d+=a.length+1;return He(b.slice(d,-1!==e?e:0))}var vj=/[?&]($|#)/;function R(a,b){this.i=this.O=this.o="";this.ma=null;this.g=this.s="";this.N=!1;var c;a instanceof R?(this.N=void 0!==b?b:a.N,wj(this,a.o),this.O=a.O,this.i=a.i,xj(this,a.ma),yj(this,a.s),zj(this,a.j.clone()),this.g=a.g):a&&(c=String(a).match(pj))?(this.N=!!b,wj(this,c[1]||"",!0),this.O=Aj(c[2]||""),this.i=Aj(c[3]||"",!0),xj(this,c[4]),yj(this,c[5]||"",!0),zj(this,c[6]||"",!0),this.g=Aj(c[7]||"")):(this.N=!!b,this.j=new Bj(null,this.N))} R.prototype.toString=function(){var a=[],b=this.o;b&&a.push(Cj(b,Dj,!0),":");var c=this.i;if(c||"file"==b)a.push("//"),(b=this.O)&&a.push(Cj(b,Dj,!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.s)this.i&&"/"!=c.charAt(0)&&a.push("/"),a.push(Cj(c,"/"==c.charAt(0)?Ej:Fj,!0));(c=this.j.toString())&&a.push("?",c);(c=this.g)&&a.push("#",Cj(c,Gj));return a.join("")}; R.prototype.resolve=function(a){var b=this.clone(),c=!!a.o;c?wj(b,a.o):c=!!a.O;c?b.O=a.O:c=!!a.i;c?b.i=a.i:c=null!=a.ma;var d=a.s;if(c)xj(b,a.ma);else if(c=!!a.s){if("/"!=d.charAt(0))if(this.i&&!this.s)d="/"+d;else{var e=b.s.lastIndexOf("/");-1!=e&&(d=b.s.slice(0,e+1)+d)}e=d;if(".."==e||"."==e)d="";else if(Yb(e,"./")||Yb(e,"/.")){d=Lb(e,"/");e=e.split("/");for(var g=[],h=0;hb)throw Error("Bad port number "+b);a.ma=b}else a.ma=null}function yj(a,b,c){a.s=c?Aj(b,!0):b}function zj(a,b,c){b instanceof Bj?(a.j=b,Hj(a.j,a.N)):(c||(b=Cj(b,Ij)),a.j=new Bj(b,a.N))} R.prototype.getQuery=function(){return this.j.toString()};function S(a,b,c){a.j.set(b,c);return a}function T(a,b){return a.j.get(b)}function Jj(a,b){a.j.remove(b)}function Aj(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""}function Cj(a,b,c){return"string"===typeof a?(a=encodeURI(a).replace(b,Kj),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null}function Kj(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)} var Dj=/[#\/\?@]/g,Fj=/[#\?:]/g,Ej=/[#\?]/g,Ij=/[#\?@]/g,Gj=/#/g;function Bj(a,b){this.i=this.g=null;this.j=a||null;this.s=!!b}function Lj(a){a.g||(a.g=new Map,a.i=0,a.j&&qj(a.j,function(b,c){a.add(He(b),c)}))}function Mj(a){var b=nj(a);if("undefined"==typeof b)throw Error("Keys are undefined");var c=new Bj(null);a=mj(a);for(var d=0;da.i&&(a.i++,b.next=a.g,a.g=b)};function ak(a,b){var c=a;b&&(c=r(a,b));c=bk(c);"function"!==typeof q.setImmediate||q.Window&&q.Window.prototype&&!y("Edge")&&q.Window.prototype.setImmediate==q.setImmediate?(ck||(ck=dk()),ck(c)):q.setImmediate(c)}var ck; function dk(){var a=q.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!y("Presto")&&(a=function(){var e=F("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=r(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&&!bc()){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){q.setTimeout(e,0)}}var bk=Oc;function ek(a){q.setTimeout(function(){throw a;},0)};function fk(){this.i=this.g=null}fk.prototype.add=function(a,b){var c=gk.get();c.set(a,b);this.i?this.i.next=c:this.g=c;this.i=c};fk.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 gk=new Yj(function(){return new hk},function(a){return a.reset()});function hk(){this.next=this.g=this.Pe=null}hk.prototype.set=function(a,b){this.Pe=a;this.g=b;this.next=null};hk.prototype.reset=function(){this.next=this.g=this.Pe=null};var ik,jk=!1,kk=new fk;function lk(a,b){ik||mk();jk||(ik(),jk=!0);kk.add(a,b)}function mk(){if(q.Promise&&q.Promise.resolve){var a=q.Promise.resolve(void 0);ik=function(){a.then(nk)}}else ik=function(){ak(nk)}}function nk(){for(var a;a=kk.remove();){try{a.Pe.call(a.g)}catch(b){ek(b)}Zj(gk,a)}jk=!1};function ok(a){if(!a)return!1;try{return!!a.$goog_Thenable}catch(b){return!1}};function pk(a){this.g=0;this.O=void 0;this.s=this.i=this.j=null;this.o=this.N=!1;if(a!=Nc)try{var b=this;a.call(void 0,function(c){qk(b,2,c)},function(c){qk(b,3,c)})}catch(c){qk(this,3,c)}}function rk(){this.next=this.context=this.i=this.j=this.g=null;this.s=!1}rk.prototype.reset=function(){this.context=this.i=this.j=this.g=null;this.s=!1};var sk=new Yj(function(){return new rk},function(a){a.reset()});function tk(a,b,c){var d=sk.get();d.j=a;d.i=b;d.context=c;return d} function uk(){var a,b,c=new pk(function(d,e){a=d;b=e});return new vk(c,a,b)}pk.prototype.then=function(a,b,c){return wk(this,"function"===typeof a?a:null,"function"===typeof b?b:null,c)};pk.prototype.$goog_Thenable=!0;pk.prototype.cancel=function(a){if(0==this.g){var b=new xk(a);lk(function(){yk(this,b)},this)}}; function yk(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.s||(d++,h.g==a&&(e=h),!(e&&1"+a+"\x3c/script>"))}function $k(a){return a.replace(/&/g,"&").replace(/,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")};function al(a){var b=document.createElement("template");if(!("content"in b)){b=Zd(""+a);b=(new DOMParser).parseFromString(Xd(b),"text/html");for(a=b.createDocumentFragment();0

"+ft(null!=c?c:"")+"
")};function st(a,b){this.j=a;this.N=!!b;this.s={0:this.j+"-arrowright",1:this.j+"-arrowup",2:this.j+"-arrowdown",3:this.j+"-arrowleft"}}n(st,Qr);f=st.prototype;f.Wj=function(a){this.i=a};f.setPosition=function(a,b,c,d){null!=a&&(this.jj=a);null!=b&&(this.Wk=b);"number"===typeof c&&(this.lo=Math.max(c,15));"number"===typeof d&&(this.bm=d)};f.Tc=function(a,b,c){a=this.Wk;2==a&&(a=0);tt(this,this.jj,(ut(this.jj),a),2==this.Wk?ut(this.jj)?this.g.offsetHeight/2:this.g.offsetWidth/2:this.lo,0,c)}; function tt(a,b,c,d,e,g){if(a.i){var h=vt(b,c);var k=a.i;var l=a.g,m=a.Ea,p=L(k);a:{p=(ut(b)?p.height/2:p.width/2)-d;var w=Tr(k,h);if(m)m=m.clone(),l&&(l=Sr(l),m.left+=l.x,m.right+=l.x,m.top+=l.y,m.bottom+=l.y);else if(m=qh(k),!m){k=p;break a}k=Zg(Ah(k));ut(b)?k.topm.bottom&&w&1&&(p-=k.bottom-m.bottom):k.leftm.right&&w&4&&(p-=k.right-m.right);k=p}k=ut(b)?new A(a.bm,k):new A(k,a.bm);p=ut(b)?6:9;a.Uk&&2==e&&(p=ut(b)?4:1); w=b^3;ut(b)&&"rtl"==a.i.dir&&(w=b);h=Rr(a.i,vt(w,c),a.g,h,k,g,a.Ll?p:0,void 0,a.Ea);if(2!=e&&h&496){tt(a,b^3,c,d,a.Uk&&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)))}wt(a,b,c,d)} function wt(a,b,c,d){var e=a.o;Rc(a.s,function(g){Kb(e,g,!1)},a);x(e,a.s[b]);e.style.top=e.style.left=e.style.right=e.style.bottom="";a.i?(c=vh(a.i,a.g),d=xt(a.i,b),ut(b)?e.style.top=yt(c.y+d.y,a.g.offsetHeight-15)+"px":e.style.left=yt(c.x+d.x,a.g.offsetWidth-15)+"px"):e.style[0==c?ut(b)?"top":"left":ut(b)?"bottom":"right"]=d+"px"}function yt(a,b){return 15>b?15:xe(a,15,b)}function vt(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 xt(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 ut(a){return 0==a||3==a}f.Ll=!1;f.Wk=2;f.lo=20;f.jj=3;f.Ea=null;f.bm=-5;f.Uk=!1;function zt(a){vi.call(this);this.i=a||Ue()}n(zt,vi);zt.prototype.o=function(){rm(this.ha(),"tooltip");X(this.ha(),"live","polite")};function At(a){zt.call(this,a);this.g=this.i.Ra("DIV",Bt()+"-contentId");this.j=this.i.Ra("DIV",Bt()+"-arrow",this.i.Ra("DIV",Bt()+"-arrowimplbefore"),this.i.Ra("DIV",Bt()+"-arrowimplafter"));this.s=this.i.Ra("DIV",{"class":Bt(),role:"tooltip"},this.g,this.j);this.o()}n(At,zt);function Bt(){return"jfk-tooltip"}At.prototype.ha=function(){return this.s};At.prototype.wa=function(){zt.prototype.wa.call(this);this.s&&H(this.s)};function Ct(a){At.call(this,a)}n(Ct,At);Ct.prototype.o=function(){rm(this.ha(),"tooltip")};function Dt(a){return Je(Ob(a.replace(Et,function(b,c){return Ft.test(c)?"":" "}).replace(/[\t\n ]+/g," ")))}var Ft=/^(?:abbr|acronym|address|b|em|i|small|strong|su[bp]|u)$/i,Et=/]*)?>/gi;function Gt(a){a=a||Ue();var b=Ta(a.g);Ht[b]||(Ht[b]=new It(a))}function Jt(a,b){var c=b instanceof Vd?Dt(Wd(b)):b;a.removeAttribute("title");a.removeAttribute("data-tooltip-contained");a.removeAttribute("data-tooltip");b?(b instanceof Vd?a.i=b:(a.setAttribute("data-tooltip",b),a.i=null),a.setAttribute("aria-label",c)):(a.i=null,a.removeAttribute("aria-label"));Gt(Ue(a))}var Ht={}; function It(a){$i.call(this);this.va=a;this.ua=new Yl(this.Lw,0,this);wi(this,this.ua);var b=lf();this.ma="function"===typeof b.MutationObserver?new b.MutationObserver(r(this.Qt,this)):null;a=a.g;this.ka(a,"mouseout mousedown click blur focusout keydown".split(" "),this.kt,!0);this.ka(a,["mouseover","focus","focusin"],this.uw,!0)}n(It,$i);f=It.prototype;f.wa=function(){Kt(this);$i.prototype.wa.call(this)}; function Lt(a,b){switch(b.type){case "mousedown":case "mouseover":case "mouseout":case "click":a.Ba=!1;break;case "keydown":a.Ba=!0}}f.uw=function(a){this.ma&&this.ma.disconnect();Lt(this,a);var b=a.target;a="focus"==a.type||"focusin"==a.type;var c=this.g&&Cf(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=nb(qm,a);a&&(this.ma.observe(b,{attributes:!0}),(a=tm(b))&&(b=a));this.s=b}else this.s=null;Mt(this)}; f.kt=function(a){Lt(this,a);var b=a.target;b=this.g&&Cf(this.g.g,b);if("mousedown"!=a.type&&"click"!=a.type||!b)this.s=null,Mt(this)};f.Qt=function(a){v(a,r(function(b){var c=tm(b.target);c&&"aria-activedescendant"==b.attributeName&&(this.s=c,Mt(this))},this))};function Mt(a){if(0==a.ua.mb||!a.i||!a.O){Kt(a);var b=null!=a.O?a.O:50;a.ua.start(a.i?b:300)}}function Kt(a){a.oa&&(Jk(a.oa),a.oa=0,a.i=null)} f.Lw=function(){if(!this.s)Nt(this),this.O=this.i=null;else if(!(this.i&&this.g&&Cf(this.g.ha(),this.s))||this.i.getAttribute("data-tooltip-unhoverable")){var a=Nf(this.s,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&&(Nt(this),this.O=this.i=null,b=!0);if(!this.i&&a&&(this.i=a,!(a.getAttribute("data-tooltip-only-on-overflow")&&a.offsetWidth>=a.scrollWidth&&a.offsetHeight>= a.scrollHeight||this.Ca&&"mouse"==a.getAttribute("data-tooltip-trigger")))){var c=ge;if(a.getAttribute("data-tooltip-contained"))for(var d=af("jfk-tooltip-data",a),e=0;e=Xg(this.Ka,this.O))}if(b){if(this.Ci(),this.Yb=null,b=this.oa)b.Yb=null}else 3==fu(this)&&this.Rg();mu.ta.ih.call(this,a)};f.Hl=function(){this.Yb!=this.ha()&&(this.Ji=!1,this.Yb=this.ha())};f.Al=function(){return this.Ji?100:mu.ta.Al.call(this)};function ou(a,b){a=new mu(a);a.rm(Is(rl(b.innerHTML,{af:"0954fe00-75b6-49fb-8f60-c8631eadc3e0"})));a.className="buy-tip-card";a.va=new Ug(5,5,5,5);a.nj=!0;a.rh=500;a.ki=250};function pu(a,b){this.Db=a||200;this.yb=b||108;W.call(this)}u(pu,W);pu.prototype.Fb=function(){return this.Db};pu.prototype.Cb=function(){return this.yb};function qu(a){du.call(this,a,void 0,void 0);this.Go=!1;this.nj=!0;this.rh=500}n(qu,mu);qu.prototype.dk=function(a,b){b||(b=new Wr(a,9,!0));mu.prototype.dk.call(this,a,b)};qu.prototype.className="unified-hovercard";var ru="ganpub ganclk dapp source_ip source_country source_domain authuser".split(" ");function su(a){var b=void 0===b?window.location.href:b;var c=new R(b);S(a,"hl","en");(b=T(c,"output"))&&S(a,"output",b);b=T(c,"source");"ge-ipad-app"==b?(S(a,"dapp","2"),Jj(a,"output")):"ge-tablet-app"==b?(S(a,"dapp","4"),Jj(a,"output")):"ge-ip-app"==b?S(a,"dapp","1"):"ge-android-app"==b&&S(a,"dapp","3");T(c,"authuser")||Jj(a,"authuser");ru.forEach(function(d){var e=T(c,d);e&&S(a,d,e)})};function tu(a,b,c){vi.call(this);this.i=null;this.data=a;this.g=b;this.maxWidth=c||500}n(tu,vi);tu.prototype.wa=function(){this.i&&this.i.Ha()};function uu(a){return a.i||(a.i=new $i(a))} tu.prototype.j=function(a){var b=C("DIV"),c=new R(this.data.Aa.jh||this.data.Aa.Yp);this.data.Aa.source&&S(c,"source",this.data.Aa.source);var d=this.data.kb();this.data.Aa.wq&&(d+=": "+this.data.Aa.wq);d=C("A",{},d);d.classList.add(this.g+"-title");pe(d,c.toString());b.appendChild(d);a.appendChild(b);vu(this,a);b=C("DIV");if("number"===typeof(this.data.Aa.bq||0)){d=this.data.Aa.bq||0;c=Math.floor(d);d=0)|()/ig,yu={VIEW_PAGES_PARTIAL:2,VIEW_PAGES_ALL:5,VIEW_PAGES_PARTIAL_FIXED:6,VIEW_PURCHASED:7,VIEW_GOOGLE_EDITIONS_PREVIEW:8};function zu(){this.Aa={}}f=zu.prototype;f.kb=function(){return this.Aa.title};f.ac=function(){return this.Aa.Hm};f.Xd=function(){return this.Aa.Xd};f.Ml=function(){return this.Aa.Ml};f.lg=function(){return this.Aa.lg};f.oi=function(){return this.Aa.oi};function Au(){this.g=[]}f=Au.prototype;f.getId=function(){return this.mb};f.oh=function(a){this.mb=a};f.kb=function(){return this.Jc};f.ah=function(){return this.s};function Bu(a,b,c){Cu(a,b)||null==a.ma||!a.j?c&&c(null):Du(b,a.ma.clone(),r(a.et,a,b,c||function(){}))}function Eu(a,b,c){Cu(a,b)&&null!=a.oa&&a.na?Du(b,a.oa.clone(),r(a.ut,a,b,c||function(){})):c&&c(null)}function Du(a,b,c){S(b,"id",a);Ok(b,c,"POST")}f.et=function(a,b,c){var d=null;Wk(c.target)&&(d=new zu,d.Aa.Hm=a,this.g.push(d));b(d)}; f.ut=function(a,b,c){var d=null;Wk(c.target)&&(d=Cu(this,a),Fu(this,d));b(d)};function Fu(a,b){rb(a.g,function(c){return c.ac()==b.ac()})}function Cu(a,b){return lb(a.g,function(c){return c&&c.ac()==b})};function Gu(a){this.Aa={};this.Aa.title=a.title;this.Aa.wq=a.subtitle;this.Aa.Xk=a.authors;this.Aa.Yp=a.preview_url;this.Aa.jh=a.info_url;this.Aa.Rj=a.pub_date;this.Aa.Jp=a.num_pages;this.Aa.Hq=a.viewability;this.Aa.Nx=a.subject;this.Aa.zq=a.thumbnail_url;this.Aa.Am=a.snippet;this.Aa.Cx=a.list_price;this.Aa.lq=a.sale_price;this.Aa.Jx=a.sale_price_better;this.Aa.Dv=a.offer_price;this.Aa.bl=a.buy_url;this.Aa.cq=a.read_url;this.Aa.Jj=a.is_free_ebook||!1;this.Aa.Hj=a.in_my_ebooks||!1;this.Aa.Dx=a.my_ebooks_url|| "";this.Aa.bq=a.rating_score||0;this.Aa.Bv=a.num_reviews||0;this.Aa.Xd=a.is_purchased||!1;this.Aa.ni=a.is_ebook||!1;this.Aa.Rx=a.write_review_url||"";this.Aa.It=a.add_to_my_ebooks_url||"";this.Aa.Yv=a.preview_ebook_url||"";this.Aa.mw=a.reviews_url||"";this.Aa.kk=a.view_order_url||"";this.Aa.tx=a.add_to_my_ebooks_url;this.Aa.dt=a.add_to_my_ebooks_url_is_on_play||!1;this.Aa.Fj=a.has_flowing_text||!1;this.Aa.Gj=a.has_scanned_text||!1;var b=$o(a.info_url);this.Aa.Hm=b;this.Aa.vx=a.canonical_atb_url|| "";this.Aa.Ml=a.is_rentable||!1;this.Aa.ng=a.is_pre_order||!1;this.Aa.Sp=a.on_sale_date||"";this.Aa.lg=a.is_pre_ordered||!1;this.Aa.Bx=a.issue_volume_count||0;this.Aa.oi=a.is_volume_cancelled||!1;this.Aa.gt=a.cancelled_reason||"0";switch(a.rental_state){case 1:this.Aa.Tj=1;break;case 2:this.Aa.Tj=2}this.Aa.iw=a.rental_end_utc||0}n(Gu,zu);function Hu(a){this.g=[];this.oh(a.id);this.o=a.owner_uid;this.Jc=a.title;this.s=a.description;this.va=a.num_volumes;this.Ge=a.access||"0";this.Pa=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 R(a.add_vol_base_url);this.oa=new R(a.del_vol_base_url);void 0!==a.paused&&(this.i=a.paused,this.N=a.pause_bookshelf_url);a.volumes&&(this.g=jb(a.volumes,function(b){return new Gu(b)}))}n(Hu,Au);function Iu(){W.call(this);this.j=[];this.i=[]}u(Iu,W);function Ju(a){var b=new R(lf().location);b=new R(b);return a===parseInt(T(b,"as_coll"),10)}function Ku(a,b,c){Lu(a,b.getId())||(a=b.O?a.j:a.i,c?vb(a,void 0,0,b):a.push(b))}function Mu(a,b,c){var d=1==b.Ge;a=new R(a);S(a,"cl_title",b.kb());S(a,"cl_mode",d?"public":"private");b="cl_des="+encodeURIComponent(String(b.ah()));Ok(a,c,"POST",b)} Iu.prototype.N=function(a){a=a.target;if(Wk(a)){a=new Hu(Yk(a));var b=Lu(this,a.getId());b.Jc=a.kb();b.s=a.ah();b.Ge=a.Ge;b=new yi("update",this);b.shelf=a;this.dispatchEvent(b)}};Iu.prototype.o=function(a,b){b=b.target;Wk(b)&&(b=new Hu(Yk(b)),Ku(this,b,a),a=new yi("add",this),a.shelf=b,this.dispatchEvent(a))};function Nu(a,b){a.s=new R(b);S(a.s,"jscmd","ClCreate")}function Lu(a,b){return lb(Ou(a),function(c){return c.getId()==b})}function Ou(a){return Ab(a.j,a.i)};function Pu(a,b){var c=C("A",{},"View order");pe(c,a);c.classList.add(b);return c};function Qu(a,b,c){tu.call(this,a,b,c);T(new R(this.data.Aa.jh),"dapp")}n(Qu,tu); Qu.prototype.render=function(a){sf(a);var b=C("DIV",this.g),c=C("DIV",this.g+"-meta");this.j(c);var d=C("DIV",this.data.Aa.ni?this.g+"-footer":this.g+"-footer-nonebook"),e=C("DIV",this.g+"-footer-inner");if(this.data.Aa.ni)if(this.data.oi()&&Ju(1))Ru(this,e);else if(this.data.Aa.ng&&!this.data.Xd()||this.data.lg()){var g=C("DIV",this.g+"-pre-order-date");g.textContent="Available on: "+this.data.Aa.Sp;e.appendChild(g);this.data.lg()&&Ju(1)&&Ru(this,e)}else if(this.data.Xd()&&Ju(1))Su(this,e),Ru(this, e);else{Su(this,e);g=!this.data.Xd()&&!this.data.Aa.Jj;var h=this.data.Aa.Jj&&!this.data.Aa.Hj;if(g||h){g=C("SPAN",{"class":this.g+"-footer-inner-right"});if(h=this.data.Aa.Yv||this.data.Aa.cq){for(var k=h.search(tj),l=0,m,p=[];0this.maxWidth&&K(a,this.maxWidth,"")}; Qu.prototype.j=function(a){if(!(this.data.Xd()||this.data.lg()||this.data.oi())&&this.data.Aa.kk&&Ju(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.kk){var c=Pu(this.data.Aa.kk,"primary"),d=C("SPAN");d.innerText=" ";b.appendChild(d);b.appendChild(c)}a.appendChild(b)}tu.prototype.j.call(this,a);b=C("DIV",this.g+"-book-options");this.data.Aa.ni?(this.data.Aa.Jj?this.data.Aa.Hj? Tu(this,b):xu(this,b,"Read eBook",this.data.Aa.It,!this.data.Aa.dt,void 0,"unified-hovercard-free-btn"):this.data.lg()?(c=C("SPAN",this.g+"-pre-ordered","Pre-ordered"),b.appendChild(c)):this.data.oi()&&Ju(1)?(c=C("DIV",this.g+"-cancelled"),d=this.data.Aa.gt,0==d?I(c,"Cancelled - by customer request"):1==d?I(c,"Cancelled - problem with eBook"):2==d?I(c,"Cancelled - price change"):3==d?I(c,"Cancelled - publisher cancellation"):I(c,"Cancelled"),b.appendChild(c)):this.data.Xd()||this.data.Aa.Hj?!this.data.Xd()&& this.data.Aa.Hj?Uu(this,b):this.data.Xd()&&Tu(this,b):Uu(this,b),Ju(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.Yp,Uc(yu,this.data.Aa.Hq)&&!Nb(c)?xu(this,b,"Preview",c,void 0,void 0,"unified-hovercard-preview-sample"):xu(this,b,"Preview",c,!1,!0,"unified-hovercard-preview-sample"));a.appendChild(b)}; function Ru(a,b){var c=C("DIV",{id:"unified-hovercard-purchased-shelf-links","class":a.g+"-order-links-container"}),d=a.data.Aa.kk;d&&(d=Pu(d,""),c.appendChild(d));a.data.lg()||(d=C("DIV",{id:"unified-hovercard-delete-forever","class":a.g+"-footer-fake-link"},"Delete forever"),x(d,a.g+"-footer-action-link"),d.id="hovercard-delete-forever",c.appendChild(d));b.appendChild(c)} function Uu(a,b){a.data.Aa.ng&&!a.data.Xd()?xu(a,b,"Pre-order eBook - "+a.data.Aa.lq,a.data.Aa.bl,void 0,void 0,"unified-hovercard-buy-btn"):a.data.Ml()?xu(a,b,"EBOOK FROM "+a.data.Aa.Dv,a.data.Aa.bl,void 0,void 0,"unified-hovercard-buy-btn"):xu(a,b,"Buy eBook - "+a.data.Aa.lq,a.data.Aa.bl,void 0,void 0,"unified-hovercard-buy-btn")}function Tu(a,b){xu(a,b,"Read now",a.data.Aa.cq,void 0,void 0,"unified-hovercard-read-now")} function Su(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 m=C("SPAN","goog-inline-block"),p=C("SPAN","goog-inline-block"),w=C("SPAN","goog-inline-block"),D=C("SPAN","goog-inline-block");a.data.Aa.Fj?(x(m,e),x(p,e),x(w,e),x(D,e)):(a.data.Aa.Gj?(x(m,e),x(p,e)):(x(m,g),x(p,g)),x(w,g),x(D,g));c.appendChild(m);c.appendChild(h); c.appendChild(p);c.appendChild(k);c.appendChild(w);c.appendChild(l);c.appendChild(D);c.appendChild(d);b.appendChild(c)};function Vu(a,b,c){qu.call(this,a);this.Zb=Rl();this.j=this.Ba=this.o=null;this.Tb=b;this.i=null;this.Xb=!!c;this.render(b);Wu(this)}n(Vu,qu);Vu.prototype.wa=function(){uu(this.i).Ha();H(this.ha())};Vu.prototype.ti=function(a,b){qu.prototype.ti.call(this,a,b);this.isVisible()&&(this.Wl=this.Zb?new Ug(0,-2,0,0):new Ug(0,0,0,-2),this.isVisible()&&this.Ag(),this.o=this.g,Xu(this))}; Vu.prototype.render=function(a){this.i&&(this.i.Ha(),this.j=this.Ba=null);this.i=new Qu(a,this.className,435,this.Xb);this.i.render(this.ha());Wu(this);this.isVisible()&&Xu(this)}; function Xu(a){var b=C("DIV"),c=C("DIV");var d=Ah(a.o||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.Zb?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.s=C("SPAN",["bookcard-badge","bookcard-sample-label"],a),b.appendChild(this.s)):!this.o||this.i.Xd()||this.i.Aa.Jj||(this.s=C("SPAN",["bookcard-badge","bookcard-sample-label"], "Sample"),b.appendChild(this.s));Pi(b,"mouseover",this.na.bind(this,b))};Yu.prototype.oa=function(){this.dispatchEvent("render");Zu.dispatchEvent("complete");this.s&&zh(this.s,L(this.j).width)};Yu.prototype.na=function(a,b){(new Vu(a,this.i)).Se(b)};function $u(a,b,c){Yu.call(this,a,b-40,c);this.N=C("DIV","slider-annotation");this.O=!1}n($u,Yu);$u.prototype.Uc=function(a){Pi(this,"render",r(this.ua,this));Yu.prototype.Uc.call(this,a);a.appendChild(this.N)};$u.prototype.ua=function(a){this.O||(a.stopPropagation(),a=this.ma(),this.N.appendChild(a),this.O=!0,this.dispatchEvent("render"))};function av(a,b,c){$u.call(this,a,b,c)}n(av,$u);av.prototype.Uc=function(a){$u.prototype.Uc.call(this,a)};av.prototype.ma=function(){var a=this.i,b=F("DIV"),c=C("A",{className:"slider-annotation-title"},pf(a.kb()));pe(c,a.Aa.jh);b.appendChild(c);if(a=a.Aa.Xk)a=C("DIV","slider-annotation-author",pf(a)),b.appendChild(a);K(b,L(this.j).width+5,"");return b};function bv(){this.g=cv;this.vg=5E3}var dv=0;bv.prototype.send=function(a,b,c,d){a=a?Zc(a):{};d=d||"_"+(dv++).toString(36)+Date.now().toString(36);var e="_callbacks___"+d;b&&(q[e]=ev(d,b),a.callback=e);b={timeout:this.vg,jt:!0};e=pd.exec(od(this.g).toString());var g=e[3]||"";e=qd(e[1]+rd("?",e[2]||"",a)+rd("#",g));b=ro(e,b);mo(b,null,fv(d,a,c));return{mb:d,yo:b}};bv.prototype.cancel=function(a){a&&(a.yo&&a.yo.cancel(),a.mb&&gv(a.mb,!1))};function fv(a,b,c){return function(){gv(a,!1);c&&c(b)}} function ev(a,b){return function(c){gv(a,!0);b.apply(void 0,arguments)}}function gv(a,b){a="_callbacks___"+a;if(q[a])if(b)try{delete q[a]}catch(c){q[a]=void 0}else q[a]=Nc};function hv(a,b,c){Q.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.s=-1;this.g=0;this.o=this.O=null;this.va={}}u(hv,Q);f=hv.prototype;f.Ak=!0;f.Vk=!1;f.Bd=function(){return this.j}; f.handleEvent=function(a){var b=this.ma;if(a.target==this.j)switch(a.type){case "hilite":this.Te(a.Mf);break;case "select":var c=!1;if("number"===typeof a.Mf){a=a.Mf;var d=this.i[iv(this,a)];c=!!d&&b.Nl&&b.Nl(d);d&&!c&&this.s!=a&&this.Te(a)}c||this.qg();break;case "canceldismiss":jv(this);break;case "dismiss":kv(this)}};f.Ai=function(a){this.N!=a&&(this.N=a,this.ma.hq(this.N,10,r(this.sv,this)),jv(this))};f.xd=function(){return this.j.isVisible()}; function lv(a){for(var b=a.g+a.i.length-1,c=a.s,d=0;d=a.g&&cb||b>=a.i.length?-1:b}f.update=function(a){this.na.update(a)};function nv(a){var b=0,c=0;pv(a)&&(b=a.selectionStart,c=-1);return[b,c]}function pv(a){try{return"number"==typeof a.selectionStart}catch(b){return!1}};function qv(a,b,c,d){vi.call(this);d=d||150;this.j=null!=c?c:!0;this.o=a||",;";this.ua=this.o.charAt(0);a=this.j?"[\\s"+this.o+"]+":"[\\s]+";this.na=new RegExp("^"+a+"|"+a+"$","g");this.oa=new RegExp("\\s*["+this.o+"]$");this.O=b||"";this.va=this.j;this.Ya=0b.g)c--;else{b.Vk&&c==b.g&&b.Te(-1);break}if(b.Te(c))break a}a.preventDefault();return!0}break;case 9:if(!this.g.xd()||a.shiftKey)this.g.Le();else if(this.update(),this.g.qg()&&this.va)return a.preventDefault(),!0;break;case 13:if(this.g.xd()){if(this.update(),this.g.qg())return a.preventDefault(), a.stopPropagation(),!0}else this.g.Le();break;case 27:if(this.g.xd())return this.g.Le(),a.preventDefault(),a.stopPropagation(),!0;break;case 229:if(!this.Pf)return this.Pf||(this.i.ka(this.Mb,"keyup",this.Op),this.i.ka(this.Mb,"keypress",this.Np),this.Pf=!0),!0}return tv(this,a)};function tv(a,b){var c=a.j&&b.charCode&&-1!=a.o.indexOf(String.fromCharCode(b.charCode));c&&a.update();return c&&a.g.qg()?(b.preventDefault(),!0):!1}f.pu=function(){return!1};f.bn=function(a){sv(this,a.target||null)}; function sv(a,b){ej(a.N);a.g&&jv(a.g);b!=a.Mb&&(a.Mb=b,a.Ya&&(a.Ya.start(),a.i.ka(a.Ya,"tick",a.fn)),a.Tl=a.Bb(),a.s.attach(a.Mb),a.i.ka(a.s,"key",a.en),a.i.ka(a.Mb,"mousedown",a.Pp),z&&a.i.ka(a.Mb,"keypress",a.Mp))}f.mr=function(){this.Mb&&(this.i.Xa(this.s,"key",this.en),Vq(this.s),this.i.Xa(this.Mb,"keyup",this.pu),this.i.Xa(this.Mb,"mousedown",this.Pp),z&&this.i.Xa(this.Mb,"keypress",this.Mp),this.Pf&&uv(this),this.Mb=null,this.Ya&&(this.Ya.stop(),this.i.Xa(this.Ya,"tick",this.fn)),this.g&&kv(this.g))}; f.fn=function(){this.update()};f.Mv=function(a){this.bn(a)};f.en=function(a){this.ma=a.keyCode;this.g&&this.Wc(a)};f.Np=function(){this.Pf&&229!=this.ma&&uv(this)};f.Op=function(a){this.Pf&&(13==a.keyCode||77==a.keyCode&&a.ctrlKey)&&uv(this)};f.Pp=function(){};function uv(a){a.Pf&&(a.Pf=!1,a.i.Xa(a.Mb,"keypress",a.Np),a.i.Xa(a.Mb,"keyup",a.Op))}f.Mp=function(a){tv(this,a)}; f.update=function(a){if(this.Mb&&(a||this.Bb()!=this.Tl)){if(a||!this.km){a=nv(this.Mb)[0];var b=this.Bb();a=ov(this,b)[mv(this,b,a)];a=this.na?String(a).replace(this.na,""):a;this.g&&(this.g.O=this.Mb,this.g.Ai(a,this.Bb()))}this.Tl=this.Bb()}this.km=!1};function mv(a,b,c){a=ov(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=Pf(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&&Av(a,b,d)}}else for(b=b.firstChild;b;)d=b.nextSibling,Av(a,b,c),b=d}function Bv(a){var b="";if(!a)return b;Array.isArray(a)&&(a=a.filter(function(c){return!Nb(Qe(c))}));Array.isArray(a)?b=0Za()-this.va)&&this.dispatchEvent({type:"hilite",Mf:this.i[a].id})};function Dv(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 Ev;c=new Fv(this.Ka||a,this.Ba);c.ua=!0;d=new qv(null,null,!1);hv.call(this,b,c,d);d.g=this;d.lr(a);this.O=a;this.Ak=!1;this.Vk=!0;O(this,"update",r(this.Ja,this))}u(Dv,hv);Dv.prototype.qg=function(){this.La=this.ua.value;Dv.ta.qg.call(this);return!1}; Dv.prototype.Ja=function(a){a.Mf&&(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 Ev(){}var cv=qd(id(jd("//suggestqueries.google.com/complete/search")));Ev.prototype.hq=function(a,b,c){a={client:"books",ds:"bo",q:a};c=r(this.g,this,c);this.i&&this.i.cancel();this.i=new bv;this.i.send(a,c)};Ev.prototype.g=function(a,b){var c=Array.prototype.map.call(b[1],function(d){return d[0]});a(b[0],c)}; function Fv(a,b){vv.call(this);this.Ja=a;this.La=b||0}u(Fv,vv);Fv.prototype.Bk=function(){Fv.ta.Bk.call(this);var a=0,b=B("gbfwa");b||(b=bf("gbqfwa"));b&&(a=b.offsetTop+b.offsetHeight-1);Array.prototype.forEach.call(Ze("div","ac-renderer"),function(c){a&&J(c,"top",a+"px");J(c,"width",L(this.Ja).width-2+"px");J(c,"left",parseInt(c.style.left,10)+this.La+"px")},this)};function Gv(a,b,c,d,e){W.call(this);this.O=a;this.N=b;this.ua=e;this.Db="number"===typeof d?d:this.N?200:80;this.N||x(this.O,"slider-small");this.ma=[];this.j=F("A");this.j.textContent=Rl()?"\u203a":"\u2039";this.j.setAttribute("title","Scroll left");Fh(this.j,!0);this.O.appendChild(this.j);this.i=F("div");x(this.i,"slider-drawables");this.O.appendChild(this.i);this.o=F("A");this.o.textContent=Rl()?"\u2039":"\u203a";this.o.setAttribute("title","Scroll right");Fh(this.o,!0);this.O.appendChild(this.o); this.g.ka(this.j,"click",this.am.bind(this,-.75));this.g.ka(this.o,"click",this.am.bind(this,.75));this.Ki();this.g.ka(this.j,"click",this.am.bind(this,-.75));this.resize();this.oa=0;this.na=8=a.ma.length&&a.dispatchEvent("render")}f=Gv.prototype; f.zt=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.Gf(a,"render",this.Bt.bind(this,b,c));a.Uc(c)};f.Bt=function(a,b){H(a);this.Ki();M(b,!0)};function Hv(a,b){b=b.map(function(c){return this.N?new av(c,this.Db):new Yu(c,this.Db,this.ua)},a);Kv(a,b)}function Kv(a,b){ub(a.ma,b);Iv(a)} f.am=function(a){(Rl()?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.o.className=b?"slider-button slider-button-right slider-button-disabled":"slider-button slider-button-right"};f.resize=function(){this.Ki()}; function Jv(a){var b=a.N?110:50;return Math.ceil(L(a.i).width/b)};function Lv(a,b,c){W.call(this);this.i=a;this.source=b?b:"gbs_bookshelf_slider";this.ma=0;this.o=new gj;this.ua=this.o.Fa();this.oa="";this.va="boolean"===typeof c?!c:!1;Pi(this.o,"resize",r(this.mn,this))}n(Lv,W);f=Lv.prototype;f.mn=function(){this.o.Fa().width>this.ua.width?this.Sh():Pi(this.o,"resize",r(this.mn,this))};f.render=function(a){this.N=a;this.j=this.Bl(a);this.g.ka(this.j,"render",r(this.Sh,this))};f.Bl=function(){return new Gv(this.N,!0,void 0,void 0,this.i.getId())}; f.Sh=function(){this.j.resize();var a=Math.ceil(1.25*Jv(this.j))+1,b=this.xf(this.ma,a);b&&(this.ma+=a,Ok(b,r(this.Qu,this)))};f.Yg=ba(9);f.Qu=function(a){a=a.target;if(Wk(a)){if((a=(new Hu(Yk(a))).g)&&a.length){var b=$o(a[a.length-1].Aa.jh);this.oa!=b&&(this.oa=b,Kv(this.j,Mv(this,a)));(a=Mf(this.ha()))&&Bh(a,1)}else 0==this.j.oa&&this.gq();this.dispatchEvent("success")}}; function Mv(a,b){return a.jl(b).map(function(c){return this.j.N?new av(c,200,this.i.getId()):new Yu(c,80,this.i.getId())},a)}f.gq=function(){};f.ha=function(){return this.N};f.jl=function(a){return this.source?a.map(function(b){b.Aa.source=this.source;return b},this):a};function Nv(a,b,c){this.j=a;this.g=b;this.s=c||!1;a=this.Fa();this.i()?a.height=120:a.height=65;this.nb(a)}n(Nv,El);Nv.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.":Xv(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 Wv(a){a=a.kb();var b;/[^0-9]/.test(a)||Nb(a)?b=null:b=Mb(a,"B")?at(a,dt):at(a,ct);return b} function Xv(a,b){a=Wv(a);b=Wv(b);return 0==a+1-(b-1)};function Yv(a,b){W.call(this);this.o=a;this.N=b;this.s=b.j;this.j=b.g;this.i=F("DIV");this.i.className="separator-container";this.o.appendChild(this.i);a=F("TABLE");a.className="separator-outer-table";this.i.appendChild(a);var c=a.insertRow(-1).insertCell(-1);c.align="center";var d=F("DIV");d.className="separator-background";c.appendChild(d);c=F("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=Ye("IMG",e);if(1==b.length){b= b[0].cloneNode(!0);var g=c.insertRow(-1).insertCell(-1);vf(g,b,0);x(g,"separator-message");x(g,"separator-pubinfo-message")}b=Vv(this.s,this.j);e=Jf(e);c=c.insertRow(-1).insertCell(-1);g=F("SPAN");g.className="separator-text";c.appendChild(g);var h=this.N;h.i&&h.s?N(g,ni(e)):N(g,ni(b+""+e));x(c,"separator-message");x(c,"separator-pubinfo-message")}x(a,"separator-pubinfo");x(d,"separator-pubinfo")}else a=c.insertRow(-1).insertCell(-1),x(a,"separator-message"),a.textContent=Vv(this.s,this.j);Fh(this.i, !0);V(this.i)}n(Yv,im);Yv.prototype.nb=function(a){K(this.i,a)};Yv.prototype.setPosition=function(a){kh(this.i,a)};Yv.prototype.Na=function(){H(this.i)};function Zv(a){var b=this;W.call(this);this.o=a;this.j=a.s;this.nb(Jh(this.j));this.Ib=new A(0,0);this.O=null;this.na=new Yl(function(){M(b.O,!1)},600);wi(this,this.na)}u(Zv,W);f=Zv.prototype;f.nb=function(a){if(!this.i||!Ce(this.i,a)){this.i=a;var b=this.o;b.ma=a;$v(b);this.dispatchEvent("resize")}};f.hd=function(a){this.zc=a;this.N.Na();var b=this.o,c=this.Fa();b.ma=c;$v(b);b=this.o;a=new Be(a.Cb(),a.Fb());b.oa=a;b.o=!0;K(b.i,a);U(b.na,0,b);$v(b);this.dispatchEvent("layoutchange")}; function aw(a,b){a.N=b}f.zl=function(){return this.N};f.Lb=function(){return this.zc};f.mc=function(){var a=this.zc.Qd();this.oa&&(a=this.oa.xl(a));Hp(this.N,a);this.dispatchEvent("update")};function bw(a,b){a.oa=b} f.jd=function(a){var b=this.Ib.x,c=this.Ib.y;"number"===typeof a.x&&(a.x=xe(a.x,0,Math.max(this.zc.Cb()-this.i.width,0)));"number"===typeof a.y&&(a.y=xe(a.y,0,Math.max(this.zc.Fb()-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.Kd(a):(this.s&&(this.s.Ha(),this.s=null),this.s=new em([b.x,b.y],[a.x,a.y],250+250*xe(ze(b,a)/800,0,1),hm),O(this.s,"animate",r(this.on,this)),O(this.s,"end",r(this.pr,this)),this.dispatchEvent("movestart"),Pi(this,"movestart",r(this.s.Ha,this.s)),this.s.play())};f.on=function(a){a=a.coords.map(Math.round);this.jd(new A(a[0],a[1]))};f.pr=function(a){this.on(a);this.dispatchEvent("moveend")}; f.Hb=function(){return this.j};f.Re=ba(10);f.Pc=function(){return new A(Math.round(this.Ib.x+this.i.width/2),Math.round(this.Ib.y+this.i.height/2))};f.We=function(a){return new A(Math.round(a.x+this.i.width/2*-1),Math.round(a.y+this.i.height/2*-1))};f.wa=function(){Zv.ta.wa.call(this);this.N.Na()};f.tl=function(a){null==this.O&&(this.O=a);this.O.style.opacity=0;this.na.start()};f.Ft=function(){var a=this;this.na.stop();M(this.O,!0);U(function(){a.O.style.opacity=1})};f.nn=1;function ew(a,b){Zv.call(this,b);this.wb=a;this.g.ka(a,"pagechange",this.Ud);this.g.ka(this.wb,"searchupdate",this.Gl);if(a=B("subscription-bar"))this.g.ka(this,"scrolldown",t(this.tl,a)),this.g.ka(this,"scrollup",t(this.Ft,a))}u(ew,Zv);f=ew.prototype;f.Rd=function(){var a=this.zc.Qd(),b=[];this.oa&&(a=this.oa.Bi(a)[0]||[]);v(a,function(c){c instanceof Pl&&b.push(c.Ga())});return b};f.yg=function(a){this.sg(!1,!1);this.jf(this.Ug(a))}; f.hf=function(a){var b=[];"fixed_width"==this.Lb().hg()&&b.push(this.Fa().width);this.le&&(a=Jp(this.le(),this.Lb().o(),a,b))&&this.yg(a)};f.Oe=function(){this.sg(!0,!1);var a=this.Fa().width;this.jf(this.Ug(a))};f.Ef=ba(11);f.sg=function(a,b){this.Wg=a;this.tj=b};f.resize=function(){if(this.Wg)this.Oe();else{var a=this.Lb().o();a&&this.yg(a)}};f.jf=function(a){var b=this.Lb();this.hd(a);b&&(a=nm(new mm(b,a),this.Pc()),(a=this.We(a))&&this.Kd(a))};f.Ud=function(){this.li||this.Td(this.wb.Ga())}; f.Td=function(a){this.zc.Dc&&(a=this.zc.Dc(a))&&this.jd(new A(Math.round(a.je()),Math.round(a.wd())))};f.Gl=function(){fw&&(this.zl().Na(),this.va&&this.va(),this.mc())};var fw=!0;function gw(a,b){this.Ea=a;this.g=b}n(gw,jp);gw.prototype.render=function(a){var b=this.g(),c=a.Ga(),d=fb(this.Ea.le().Qf)/a.Fa().width,e=a.Fa();b.Oj=e.width;b.mh=e.height;e=a.Fa().clone();e.width*=d;e.height*=d;b.Zu=e.width;b.Wu=e.height;b.setPosition(a.je(),a.wd());b.vb(c);b.Uc();return b};function hw(){};function iw(a){this.Ea=a}u(iw,hw);iw.prototype.xl=function(a){var b=this.Bi(a);a=b[0]||[];b=b[1]||[];b.sort(t(jw,this.Ea.Pc()));var c=[];ub(c,a,b);return c};function jw(a,b,c){return Xg(Zg(Fl(b)),a)-Xg(Zg(Fl(c)),a)}iw.prototype.Bi=function(a){var b=cw(this.Ea),c=new Yg(b.left-800,b.top-800,b.width+1600,b.height+1600);return zb(a,function(d){d=Fl(d);if(bh(c,d))return bh(b,d)?0:1})};function kw(a,b){this.Ea=b;this.V=a}n(kw,iw);kw.prototype.xl=function(a){var b=iw.prototype.xl.call(this,a),c=this.V.Ga();if(c){var d=[],e=this.V.rb();v([1,-1],function(){var g=bo(e,c.Qa(),1);g&&d.push(g)});v(a,function(g){g.Ga&&nb(d,g.Ga())&&ob(b,g)})}return b};function lw(){W.call(this)}u(lw,W);lw.prototype.Be=function(a){this.i=a;this.s=mw(a)};lw.prototype.wa=function(){lw.ta.wa.call(this);H(this.s)};function nw(a){W.call(this);this.ma=a;this.O=[]}u(nw,lw);f=nw.prototype;f.Be=function(a){nw.ta.Be.call(this,a);this.Ch();this.Ga()&&this.g.ka(this.Ga(),"update",this.Ch)};f.Ga=function(){return this.i.Ga()};f.Bh=function(a,b,c,d){var e=F("div");V(e,!0);this.s.appendChild(e);a=ow(this,a,b,c,d);J(e,{position:"absolute",left:a[0]+"px",top:a[1]+"px",width:a[2]+"px",height:a[3]+"px"});this.ma&&(J(e,{backgroundColor:this.ma}),Bh(e,.3));this.O.push(new Yg(a[0],a[1],a[2],a[3]));return e}; function pw(a){return a.i.Fa().width/a.i.Ga().getParent().g.width}function ow(a,b,c,d,e){var g=pw(a);return jb([b,c,d,e],function(h){return Math.round(h*g)})}function qw(a,b){v(b,function(c){this.Bh.apply(this,c)},a)}f.Fo=function(a){return this.Bh(a.left,a.top,a.width,a.height)};f.Hg=function(){sf(this.s);this.O=[]};f.Ch=function(){};function rw(){nw.call(this)}n(rw,nw);f=rw.prototype;f.Ch=function(){if(!this.j){var a=this.Ga();a&&(a=zp(a))&&(qw(this,a),this.j=!0)}}; f.Bh=function(a,b,c,d){this.o=nw.prototype.Bh.call(this,a,b,c,d);J(this.o,{border:"2px #aaaaff dashed"});this.N=F("IMG");this.o.appendChild(this.N);this.N.src="/googlebooks/images/dialog_close_x.gif";a=ow(this,a,b,c,d);J(this.N,{position:"absolute",cursor:"pointer",left:a[2]-19+"px",top:"4px",display:"none"});O(this.o,"mouseout",r(this.qr,this));O(this.o,"mouseover",r(this.vp,this,!0));Pi(this.N,"click",r(this.Na,this));return this.o};f.Na=function(){H(this.o)}; f.qr=function(a){Cf(this.o,a.target)||this.vp(!1)};f.vp=function(a){J(this.N,{display:a?"":"none"})};function sw(a){nw.call(this);this.V=a}n(sw,nw);sw.prototype.Ch=function(){if(!this.j){var a=this.Ga();a&&(a=yp(a))&&(v(a,function(b){var c=b.pop(),d=b.pop();b=this.Bh.apply(this,b);J(b,{cursor:"pointer"});this.g.ka(b,"click",r(this.o,this,d,c))},this),this.j=!0)}};sw.prototype.o=function(a,b){(a=co(this.V.rb(),a))?this.V.vb(a):Oo(this.V,b)};function tw(a,b){this.s=a;this.g=b}tw.prototype.Ga=function(){return this.s};tw.prototype.i=function(){return this.s.Cd(this.g)};function uw(a,b,c){tw.call(this,a,b);this.j=c}n(uw,tw);uw.prototype.i=function(){return this.j.width>this.g.width?this.s.Cd(this.j):tw.prototype.i.call(this)};function vw(a,b,c,d,e){W.call(this);this.qh(a.Ia());this.V=a;this.i=c;this.na=[];this.qn=d;K(d,c);this.ua=mw(this);J(this.ua,"backgroundColor","#fff");K(this.ua,c);if(this.Ba=void 0!==e?e:!0)a=mw(this),K(a,c),this.va=new ww(a),this.va.show();b&&(this.s=b,this.g.ka(b,"update",this.Ig),Qo(b))}u(vw,W);f=vw.prototype;f.Fa=function(){return this.i};f.Ga=function(){return this.s};function xw(a,b){a.na.push(b);b.Be(a)}f.Ig=function(){};function yw(a){a.dispatchEvent("load");a.Ba&&a.va.lb()} function mw(a){var b=F("div");V(b,!0);J(b,{position:"absolute",left:0,top:0});a.qn.appendChild(b);return b}f.Na=function(){v(this.na,function(a){a.Ha()});this.na=null;this.o&&H(this.o)};function zw(a){a.N=mw(a);K(a.N,a.Fa());J(a.N,{backgroundImage:"url(//www.google.com/images/cleardot.gif)",backgroundRepeat:"repeat"});a.g.ka(a.N,"mousedown",a.rr);a.g.ka(a.N,"dragstart",zi)}f.rr=function(a){a.display=this;Aw.dispatchEvent(a)};var Aw=new Q; function ww(a){this.g=a;a={position:"absolute",left:0,color:"#808080",fontSize:"13px",backgroundColor:"white"};for(var b=0;2>b;b++){var c=F("div");V(c);J(c,a);this.g.appendChild(c);c.textContent="Loading...";a.bottom=0}}ww.prototype.show=function(a){J(this.g,{display:a?"none":""})};ww.prototype.lb=function(){this.show(!0)};vw.prototype.um=function(){Bw(this)};function Bw(a,b){a.o&&H(a.o);a.o=mw(a);new Cw(a.o,a.Fa(),b)} function Cw(a,b,c){this.g=a;J(a,{backgroundColor:"#FFF",textAlign:"center"});K(a,b);N(a,rl(c||""));V(this.g)};function Dw(a,b,c){vw.call(this,a,b.Ga(),b.g,c);this.qh(Ew);a=mw(this);this.ma=new Fw(b.g,a);a=mw(this);this.O=new Fw(b.g,a);zw(this);Fh(c,!0);x(c,"pageImageDisplay");this.oa=b;b.Ga()&&this.Ig()}n(Dw,vw);f=Dw.prototype;f.vb=function(a){sp(a,"output",null);vw.prototype.vb.call(this,a);a.Cd()&&this.Ig()}; f.Ig=function(){var a=this.Ga(),b=this.oa.i();if(b&&!this.j){b=Gw(b);Pi(this.ma,"load",r(this.sr,this,a,b,this.Fa().width));Hw(this.ma,[b]);var c=Jo(this.V.Zb,a.Qa());c.push(b);Hw(this.O,c);this.j=!0;a==this.V.Ga()&&this.dispatchEvent("fetch")}vp(a,[16,8])&&(a=De('%s',Yo("/googlebooks/restricted_logo.gif"),"You have either reached a page that is unavailable for viewing or reached your viewing limit for this book."),Bw(this, a),yw(this))};f.sr=function(a,b,c){a==this.V.Ga()&&this.dispatchEvent("loaded");this.O.empty();var d=this.V.Zb;a=a.Qa();d.g[a]=d.g[a]||{};d.g[a][c]=b;yw(this)};f.tc=ba(14);f.Na=function(){this.j=!1;this.ma.empty();this.O.empty();vw.prototype.Na.call(this)};var Ew=new Q,Gw=Oc;function Fw(a,b){Q.call(this);this.i=a;this.j=b;this.Hf=!1;this.g=F("IMG");this.g.width=this.i.width;this.j.appendChild(this.g);V(this.j)}n(Fw,Q);Fw.prototype.empty=function(){for(var a;a=yf(this.j);)gp(a)}; function Hw(a,b){cp(a.g,r(a.s,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 Hk(100),this.g.ka(this.O,"tick",this.wr));this.ma=d;d.x||d.y?this.O.start():this.O.stop()}}};f.wr=function(){var a=this.ma,b=this.Ea;dw(b,new A(15*a.x,15*a.y),r(b.Kd,b))}; f.Ct=function(){Xi(this.N);ui(this.O);this.O=null};function Tw(){this.o="Selection copied to clipboard";this.g=!1;var a=C("DIV","entity-page-snackbar"),b=C("SPAN","entity-page-snackbar-text");I(b,this.o);a.appendChild(b);X(a,"hidden",!0);document.body.appendChild(a);this.s=a}Tw.prototype.show=function(){this.g?(this.i(),U(r(this.j,this),500)):this.j();U(r(this.i,this),6E3)};Tw.prototype.j=function(){J(this.s,"bottom","0");this.g=!0};Tw.prototype.i=function(){J(this.s,"bottom","-48px");this.g=!1};function Uw(a){this.i=a;this.s=new Tw;this.j=Vw(this)}Uw.prototype.ha=function(){return this.j}; function Vw(a){var b=C("DIV");Hb(b,["entity-page-copy-button","entity-page-action-chip"]);var c=C("IMG");x(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");x(d,"entity-page-action-chip-label");I(d,"Copy");b.appendChild(c);b.appendChild(d);O(b,"click",r(a.g,a));rm(b,"button");If(b,!0);O(b,"keydown",function(e){32!=e.keyCode&&13!=e.keyCode||a.g.call(a)});return b} Uw.prototype.g=function(){this.i.focus();this.i.select();document.execCommand("copy");this.s.show()};function Ww(a){Yr.call(this,a);dn(this);this.qo=!1;this.g=new $i;this.i=np();x(a,"viewport-selection-popup");Xw&&Xw.Ha();Xw=this}n(Ww,Yr);Ww.prototype.j=function(){this.dispatchEvent("close");this.Ha()}; function Yw(a,b,c){var d=a.ha(),e=F("div");x(e,"selection-popup-select-container");d.appendChild(e);d=F("div");x(d,"selection-popup-select-label");e.appendChild(d);d.appendChild(pf(b));e.appendChild(F("div"));b=F("input");b.value=c;x(b,"viewport-input");e.appendChild(b);Fh(b,!1);a.i&&(c=(new Uw(b)).ha(),e.appendChild(c));a.g.ka(b,"mousedown",Zw)}function Zw(a){a.stopPropagation()}Ww.prototype.wa=function(){H(this.ha());Yr.prototype.wa.call(this);this.g.Ha()};var Xw=null;function $w(a,b){this.g=a instanceof A?a:new A(a,b)}u($w,Qr);$w.prototype.Tc=function(a,b,c,d){var e=We(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=Sr(a);g-=h.x;e-=h.y;Ur(new A(g,e),a,b,c,null,null,d)};function ax(a,b){$w.call(this,a,b)}u(ax,$w);ax.prototype.i=0;ax.prototype.s=function(a){this.i=a};ax.prototype.Tc=function(a,b,c,d){var e=nh(a);e=qh(e);var g=kf(Ue(a).g);g=new A(this.g.x+g.scrollLeft,this.g.y+g.scrollTop);var h=b,k=Ur(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=Ur(g,a,h,c,e,10,d);0!=(k&496)&&Ur(g,a,b,c,e,this.i,d)}};function bx(a){nw.call(this,"#4a95d6");this.j=a}n(bx,nw);bx.prototype.Be=function(a){nw.prototype.Be.call(this,a);J(this.s,{cursor:"pointer"});this.g.ka(this.s,"mousedown",cx)};function cx(a){a.stopPropagation()} function Qw(a,b,c,d){a.Hg();jb(b,r(a.Fo,a));a.N&&Xi(a.N);a.o&&a.o.Ha();b=F("div");document.body.appendChild(b);var e=Mw(a.O);if(e){var g=rh(a.s);b=new Ww(b);if(c&&d){var h=a.Ga(),k=h.Cd();if(k){var l=new R(k);d=[d.left,d.top,d.width,d.height].join();S(l,"ci",d);S(l,"edge",0);l=l.toString();var m=new R(h.Ec());S(m,"ci",d);S(m,"source","bookclip");m=De('',m.toString(),l)}d=m;sf(b.ha());m=b.ha();h=F("IMG");h.src="/googlebooks/images/material/close_black_24dp.png";x(h, "selection-popup-close");m.appendChild(h);b.g.Gf(h,"click",r(b.j,b));h=C("DIV",{},"Share this clip");x(h,"selection-popup-title");m.appendChild(h);c&&(Yw(b,"Selection text",c),m=F("DIV"),x(m,"selection-popup-translate-container"),b.ha().appendChild(m),h=new R("https://translate.google.com/translate_t"),S(h,"text",c),S(h,"sl","auto"),S(h,"tl","auto"),c=F("A"),c.href=h.toString(),c.target="_blank",b.i&&(h=C("IMG"),Hb(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"),I(h,"Translate"),x(h,"entity-page-action-chip-label"),c.appendChild(h),h=F("SPAN"),I(h,"\u00bb"),x(h,"selection-popup-translate-arrow"),c.appendChild(h),x(c,"selection-popup-translate-link"),x(c,"entity-page-action-chip"),m.appendChild(c));l&&Yw(b,"Image",l);d&&Yw(b,"Embed",d)}else c=F("DIV"),I(c,"Loading..."),x(c,"selection-popup-loading-msg"),b.ha().appendChild(c);Zr(b);a.o=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);U(t(dx,b,new ax(new A(c, e))));a.N=Pi(b,"close",r(a.Hg,a))}}function dx(a,b){a.Nd||(a.setPosition(b),a.Da(!0))}bx.prototype.Hg=function(){nw.prototype.Hg.call(this);this.o&&this.o.Ha()};bx.prototype.wa=function(){nw.prototype.wa.call(this);this.o&&this.o.Ha();this.N&&Xi(this.N)};function ex(a,b,c){return a.Za().zj()?new Iw(a,b,c):new Dw(a,b,c)}function fx(a,b){if(b instanceof Dw){xw(b,new Jw(a.ub()));xw(b,new rw);var c=new bx(a.Hb()),d=new Rw(c,a.Ia());xw(b,d);xw(b,c);xw(b,new sw(a))}};function gx(a,b,c){W.call(this);this.V=a;this.Ea=b;this.j=F("div");V(this.j,!0);J(this.j,{position:"absolute",display:"none"});c.appendChild(this.j);this.o=F("div");V(this.o,!0);J(this.o,{position:"absolute"});this.j.appendChild(this.o);this.N=F("div");V(this.N,!0);this.j.appendChild(this.N);this.O=F("div");V(this.O,!0);this.N.appendChild(this.O);this.lb()}u(gx,im);f=gx.prototype; f.Uc=function(){var a=this.Oj-2,b=this.mh-2,c=this.Zu-2,d=this.Wu-2;J(this.N,{backgroundColor:"#cccccc",position:"absolute"});kh(this.N,0,0);K(this.N,this.Oj,this.mh);J(this.O,{overflow:"hidden",backgroundColor:"#fcfcfc",position:"absolute"});kh(this.O,1,1);K(this.O,a,b);this.show();var e=this.V;a=ex(e,new uw(this.Ga(),new Be(a,b),new Be(c,d)),this.O);a instanceof Dw?fx(e,a):a instanceof Iw&&a instanceof Iw&&xw(a,new Jw(e.ub()));this.i=a};f.lb=function(){M(this.j,!1)};f.show=function(){M(this.j,!0)}; f.tc=ba(12);f.Na=function(){this.i&&this.i.Na();H(this.j)};f.setPosition=function(a,b){kh(this.j,a,b)};f.wd=function(){return mh(this.j).x};f.je=function(){return mh(this.j).y};f.vb=function(a){this.s=a};f.Ga=function(){return this.s};f.Fb=function(){return this.mh};f.Cb=function(){return this.Oj};function hx(a){return a+2}f.Fa=function(){return new Be(this.Oj,this.mh)};function ix(a){W.call(this);sf(a);V(a);this.s=a;this.i=F("div");V(this.i,!0);Rl()&&(ef(a,{dir:"ltr"}),ef(this.i,{dir:"rtl"}));a.appendChild(this.i)}u(ix,W);function jx(a,b){ix.call(this,b);this.Ea=a;this.g.ka(b,"scroll",this.N);J(b,"position","relative");J(this.i,"position","absolute");this.j=F("div");x(this.j,"scroll-background");V(this.j,!0);b.appendChild(this.j);this.j.appendChild(this.i)}n(jx,ix);function $v(a){var b=a.oa;a.ma&&b&&(J(a.i,"left",Math.floor(Math.max(0,a.Ea.o.s.clientWidth-b.width)/2)+"px"),J(a.j,"height",b.height+"px"))}jx.prototype.na=function(){this.o=!1;this.N()}; jx.prototype.N=function(){if(!this.o){var a=this.Ea.Ib;if(a){a=a.clone();var b=this.s;b=new A(b.scrollLeft,b.scrollTop);ye(a,b)||(this.O=!0,this.Ea.Kd(b),this.O=!1)}}};function kx(a){var b=a.Hb(),c=new jx(this,b);lx(b);ew.call(this,a,c);bw(this,new kw(a,this));aw(this,mx(this));var d=a.rb(),e=a.Za().hg();this.ma=a.Za().O?function(g){return new Sv(d,e,g)}:a.Za().na?function(g){return new Sv(d,e,g,!0,a.Za().na)}:function(g){return new Sv(d,e,g,!0)};b=this.wb.Za();"fixed_height"==b.hg()?(b=b.le(),b=b[Math.floor(b.length/2)]+2):b=nx(b)+2;this.yg(b);this.g.ka(this.wb,"pagesupdate",this.zu);this.g.ka(this.wb,"pagemodechange",this.xr);this.g.ka(this,"move",this.mc);this.g.ka(this, "move",this.Qw)}u(kx,ew);function lx(a){J(a,"overflow","auto");J(a,{overflowX:"auto",overflowY:"scroll"});x(a,"overflow-scrolling");ef(a,{dir:"ltr"})}f=kx.prototype;f.Qc=function(){this.hf(1)};f.od=function(){this.hf(-1)};f.le=function(){var a=this.wb.Za(),b=tb(a.le());"fixed_width"==a.hg()&&(a=this.wb.Za().Pa)&&150a?ob(b,a):ob(b,1500));return new Ip(jb(b,hx))};f.Ug=function(a){return this.ma(a)}; f.Fa=function(){if(this.j.hasChildNodes()){var a=Jh(this.j.childNodes[0]).width;a=new Be(a,this.i.height)}else a=this.i;return a};function mx(a){var b=new Fp;Gp(b,Pl,new gw(a,t(Pc,gx,a.wb,a,a.o.i)));Gp(b,Nv,new Uv(a.wb,function(c){return new Yv(a.o.i,c)}));return b}f.Qw=function(){if(this.Ca){var a=Il(this.zc,this.Pc().y);a&&a.Ga&&(a=a.Ga(),this.wb.Ga()!=a&&(this.li=!0,this.wb.Gd(a.Qa()),this.li=!1))}this.Ca=!0}; f.zu=function(){var a=this.wb.Ga(),b=this.wb.rb(),c=co(b,a.Qa());if(!c)a:{c=$n(a);b=ao(b);for(a=b.length-1;0=$n(c)&&ea.x&&(a.x=0);kh(this.i,a)};f.ru=function(a){a.preventDefault();a.stopPropagation();this.V.Vb("previous")}; f.Da=function(a){J(this.i,{display:a?"":"none"})};f.Uc=function(){J(this.s,{left:0,top:0});J(this.N,{left:this.j.width+"px",top:0})};f.Rd=function(){return ib([this.ua,this.Ba],function(a){return!!a})};f.Na=function(){this.o.Na();this.O.Na();for(var a;a=this.na.pop();)Xi(a);this.i.parentNode&&H(this.i)};function Cx(a){return 2*a};function Dx(a){this.V=a}n(Dx,jp);Dx.prototype.render=function(a){var b=new Ax(this.V,a.Fa().width);b.setPosition(a.vd());b.Uc();b.Da(!0);return this.g=b};function Ex(a,b,c){Q.call(this);this.V=a;this.j=b;this.o=L(b).width;this.N=c;this.i=!1;this.g=Rl()}n(Ex,Q);Ex.prototype.Ff=function(){return this.i};function Fx(a,b){if(b!=a.i){a.i=b;var c=a.V.Ia().o.i;M(c,!1);L(c);[t(Gx,a.j,a.N,a.o,a.g,b),r(a.s,a),t(M,c,!0)].forEach(U)}}Ex.prototype.s=function(){this.dispatchEvent("change")};function Gx(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 Hx=null;function Ix(a,b){$i.call(this);this.i=Hx;this.V=a;this.g=b;this.V.Za().O||(this.ka(this.V,"pageturn",this.s),this.ka(this.g,"dispose",this.Ha))}n(Ix,$i);Ix.prototype.s=function(){var a=this.g.ma.g.Rd()[0]||new bp,b=this.g.ma.g.Rd()[1]||new bp,c=this.O,d=this.o,e=d?$n(d):-1,g=$n(a)||-1,h=$n(b)||-1,k=Math.max(c?$n(c):-1,e),l=Math.max(g,h);if(Math.abs(l-k)>this.g.nn){if(0l-k&&(m=-1!=h?b:a,p=d);1=$n(e[0]||e[1])&&aemail or IM"));this.ha().appendChild(a);this.s=F("input");K(this.s,"100%","auto");this.ha().appendChild(this.s);this.N&&(a=C("DIV",{style:"font-size: 13px; padding-top: 7px;"},"Embed"),this.ha().appendChild(a),this.Ne=F("input"),K(this.Ne,"100%","auto"),this.ha().appendChild(this.Ne));a=this.V.Ga();b=(new R(window.location)).g;var c=new R(a.Ec()); c.g=b;this.s.value=c.toString();U(t(Ux,this.s));this.N&&(a=new R(a.Ec()),S(a,"output","embed"),this.Ne.value=Vx(a.toString()))};Tx.prototype.tm=function(){Sx.prototype.tm.call(this);this.g.ka(this.s,"click",t(Ux,this.s));this.N&&this.g.ka(this.Ne,"click",t(Ux,this.Ne))};function Ux(a){a.select()}function Vx(a){return De('',a)};function Wx(a,b){W.call(this);this.Ea=a;this.j=b;this.i=F("div");a.o.i.appendChild(this.i);x(this.i,"sitb_result");pc?(J(this.i,"width",b.Fa().width+"px"),J(this.i,"min-height",b.Fa().height+"px")):(kh(this.i,b.vd()),K(this.i,b.Fa()));a=F("div");x(a,"sitb-result-header");this.i.appendChild(a);this.o=F("div");x(this.o,"sitb-result-page-link");b=b.g.g;this.o.textContent=b?"Page "+b:"Page";a.appendChild(this.o);this.s=F("div");x(this.s,"sitb-result-content");this.i.appendChild(this.s);if(b=co(this.Ea.V.rb(), this.j.g.Qa())){a=this.Ea.V.ub().getQuery();var c=b.ob.snippetSrc;c&&a==Go(c)?Xx(this,c):(a=b.xf(),"entity_page"==T(a,"source")?S(a,"source","entity_page_gbs_snippet"):S(a,"source","gbs_snippet"),qp(b,a,r(this.O,this)))}else Yx(this)}n(Wx,im);Wx.prototype.N=function(a){this.Ea.Cf(a.g)};Wx.prototype.O=function(a){(a=a.ob.snippetSrc)?Xx(this,a):Yx(this)};function Xx(a,b){sf(a.s);var c=F("IMG");c.src=b;Zx(a);b=a.j.Fa().width-25;J(c,{width:b+"px"});a.s.appendChild(c)} function Zx(a){x(a.i,"sitb-result-clickable");x(a.o,"sitb-result-link");var b=Jf(a.o);N(a.o,ql(b+" »"));rm(a.i,"link");If(a.i,!0);a.g.ka(a.i,"click",r(a.N,a,a.j));a.g.ka(a.i,"keydown",function(c){32!=c.keyCode&&13!=c.keyCode||a.N(a.j)})} function Yx(a){sf(a.s);var b=F("div");x(b,"sitb-result-snippet");a.s.appendChild(b);pc||J(b,{width:Math.floor(.75*a.j.Fa().width)+"px"});N(b,pl.g(a.j.g.i));b=F("div");x(b,"sitb-result-explanatory-link");a.s.appendChild(b);var c=co(a.Ea.V.rb(),a.j.g.Qa());c&&c.Cd()&&!vp(c,[4,8,16])&&c.s(2)?(Zx(a),N(b,ql((pc?"No image for result.":"We couldn't make an image for this result.")+"  ")),a=F("span"),N(a,ql(pc?"Click to view":"Click to view the whole page.")),b.appendChild(a),x(a,"sitb-result-link")): (N(b,ql("No preview available for this page.  ")),pc||(a=F("a"),x(a,"sitb-result-buy-link"),N(a,ql("Buy this book.")),b.appendChild(a),b=new R(window.location.href),S(b,"sitesec","buy"),S(b,"source","gbs_snippet"),Jj(b,"printsec"),a.href=b.toString()))}Wx.prototype.Na=function(){H(this.i);this.Ha()};function $x(a){this.Ea=a}n($x,jp);$x.prototype.render=function(a){return new Wx(this.Ea,a)};function ay(a){this.g=a}n(ay,El);function by(a,b){Ov.call(this,1);this.Pb=a;this.N=b;this.jk=this.Mi=this.marginTop=20;a.Ab&&(a.Ab.forEach(r(this.s,this)),Ll(this))}n(by,Ov);by.prototype.s=function(a){a=new ay(a);var b=Math.min(this.N-16,600);a.nb(new Be(b,Math.round(124/600*b+42)));this.Sa(a)};function cy(a){var b=a.Hb();J(b,"overflow","hidden");var c=new jx(this,b);Zv.call(this,c);this.V=a;pc||bw(this,new iw(this));this.g.ka(this,"move",this.mc);var d=B("subscription-bar");d&&(this.tl(d),U(function(){M(d,!1)},600));aw(this,dy(this));ey(b)}u(cy,Zv);function ey(a){J(a,"overflow","auto");J(a,{overflowX:"auto",overflowY:"scroll"});ef(a,{dir:"ltr"})}function dy(a){var b=new Fp;Gp(b,ay,new $x(a));return b}cy.prototype.resize=function(){fy(this)}; function fy(a){var b=new by(a.Pb,a.Fa().width);a.hd(b);a.mc()}cy.prototype.Cf=function(a,b){return this.Ba(a,b)};function gy(a){this.g=a||{}}gy.prototype.qc=function(){return this.g};gy.prototype.lc=function(a){var b=Vc(hy,function(c){return c==a});this.g.v=b};gy.prototype.getQuery=function(){return this.g.q};var hy={onepage:kx,twopage:Px,thumbnail:sx,snippet:cy};function iy(a,b){this.g=new ys;O(this.g,"navigate",r(this.o,this));this.V=a;this.i=b}iy.prototype.o=function(a){jy(this,a.o)};function jy(a,b){if(!(a.s&&""==b||a.j))if((z||oc)&&""==b)window.history.go(-2);else if(b){var c={},d=new Bj(b);v(d.ie(),function(e){var g=d.get(e);g in ky&&(g=ky[g]);c[e]=g});b=new gy(c);a.V.lc(hy[b.g.v]||kx);Fx(a.i,!!b.g.f);void 0!==b.getQuery()&&Fo(a.V.ub(),b.getQuery())}} iy.prototype.Ta=function(a){this.s=!0;this.g.Ta(a);z&&(a=(new R(window.location)).g,jy(this,a));this.s=!1};iy.prototype.update=function(){var a=new gy;a.lc(this.V.O);a.g.q=this.V.ub().getQuery();a.g.f=this.i.Ff();a=Mj(a.qc()).toString();this.j=!0;this.g.Ai(a);this.j=!1};var ky={"true":!0,"false":!1};function ly(){this.g=[]}u(ly,er);Oa(ly);function my(a,b){var c=a.g[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.g[b]=c}return c}f=ly.prototype;f.Eg=function(){return"menuitem"};f.Sc=function(a){var b=a.g.Ra("DIV",hr(this,a).join(" "),ny(this,a.Lc(),a.g));oy(this,a,b,mr(a,8)||mr(a,16));return b};f.Nc=function(a){return a&&a.firstChild}; f.Ub=function(a,b){var c=yf(b),d=my(this,2);c&&Gb(c,d)||b.appendChild(ny(this,b.childNodes,a.g));Gb(b,"goog-option")&&(a.zi(!0),this.zi(a,b,!0));return ly.ta.Ub.call(this,a,b)};f.Fg=function(a,b){var c=this.Nc(a),d=py(this,a)?c.firstChild:null;ly.ta.Fg.call(this,a,b);d&&!py(this,a)&&c.insertBefore(d,c.firstChild||null)};function ny(a,b,c){a=my(a,2);return c.Ra("DIV",a,b)}f.oq=function(a,b,c){a&&b&&oy(this,a,b,c)};f.zi=function(a,b,c){a&&b&&oy(this,a,b,c)}; function py(a,b){return(b=a.Nc(b))?(b=b.firstChild,a=my(a,1),!!b&&Af(b)&&Gb(b,a)):!1}function oy(a,b,c,d){kr(a,c,b.zf());lr(a,b,c);d!=py(a,c)&&(Kb(c,"goog-option",d),c=a.Nc(c),d?(a=my(a,1),c.insertBefore(b.g.Ra("DIV",a),c.firstChild||null)):c.removeChild(c.firstChild))}f.Wh=function(a){switch(a){case 2:return my(this,0);case 16:case 8:return"goog-option-selected";default:return ly.ta.Wh.call(this,a)}}; f.yj=function(a){var b=my(this,0);switch(a){case "goog-option-selected":return 16;case b:return 2;default:return ly.ta.yj.call(this,a)}};f.Wa=function(){return"goog-menuitem"};function qy(a,b,c,d){pr.call(this,a,d||ly.Gb(),c);this.Bc(b)}u(qy,pr);f=qy.prototype;f.Bb=function(){var a=this.Zl;return null!=a?a:this.Zg()};f.Bc=function(a){this.Zl=a};f.bc=function(a,b){qy.ta.bc.call(this,a,b);switch(a){case 8:nr(this,16)&&!b&&this.Nf(!1);(a=this.ha())&&this.Bd().oq(this,a,b);break;case 16:(a=this.ha())&&this.Bd().zi(this,a,b)}};f.oq=function(a){this.bc(8,a)};f.zi=function(a){this.bc(16,a)}; f.Zg=function(){var a=this.Lc();return Array.isArray(a)?(a=jb(a,function(b){return Af(b)&&(Gb(b,"goog-menuitem-accel")||Gb(b,"goog-menuitem-mnemonic-separator"))?"":Lf(b)}).join(""),Ge(a)):qy.ta.Zg.call(this)};f.oe=function(a){var b=this.getParent();if(b){var c=b.o;b.o=null;if(c&&"number"===typeof a.clientX&&ye(c,new A(a.clientX,a.clientY)))return}qy.ta.oe.call(this,a)};f.ne=function(a){return a.keyCode==this.Yl&&this.Ye(a)?!0:qy.ta.ne.call(this,a)};f.Jt=function(){return this.Yl}; Xq("goog-menuitem",function(){return new qy(null)});qy.prototype.zf=function(){return mr(this,16)?"menuitemcheckbox":mr(this,8)?"menuitemradio":qy.ta.zf.call(this)};qy.prototype.getParent=function(){return pr.prototype.getParent.call(this)};qy.prototype.hh=function(){return pr.prototype.hh.call(this)};function ry(a,b,c){qy.call(this,a,b,c);this.zi(!0)}u(ry,qy);Xq("goog-checkbox-menuitem",function(){return new ry(null)});function sy(a){ry.call(this,Je(a.kb()),a.getId());this.i=a}n(sy,ry);sy.prototype.Nb=function(a){ry.prototype.Nb.call(this,a);if(this.i.Ge){var b=(a=1==this.i.Ge)?"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:"+(Rl()?"left":"right")});a=C("DIV","goog-menuitem-accel",a,pf(String(this.i.va)));vf(this.Kb(),a,1)}};function ty(a,b,c,d){Wr.call(this,a,b,c||d);(c||d)&&this.s(65|(d?32:132))}u(ty,Wr);function uy(){}u(uy,er);Oa(uy);uy.prototype.Wa=function(){return"goog-menuheader"};function vy(a,b,c){pr.call(this,a,c||uy.Gb(),b);this.bc(1,!1);this.bc(2,!1);this.bc(4,!1);this.bc(32,!1);this.ae=1}u(vy,pr);Xq("goog-menuheader",function(){return new vy(null)});function wy(){}u(wy,er);Oa(wy);wy.prototype.Sc=function(a){return a.g.Ra("DIV",this.Wa())};wy.prototype.Ub=function(a,b){b.id&&a.oh(b.id);if("HR"==b.tagName){var c=b;b=this.Sc(a);tf(b,c);H(c)}else x(b,this.Wa());return b};wy.prototype.Fg=function(){};wy.prototype.Wa=function(){return"goog-menuseparator"};function xy(a,b){pr.call(this,null,a||wy.Gb(),b);this.bc(1,!1);this.bc(2,!1);this.bc(4,!1);this.bc(32,!1);this.ae=1}u(xy,pr);xy.prototype.Ma=function(){xy.ta.Ma.call(this);var a=this.ha();rm(a,"separator")};Xq("goog-menuseparator",function(){return new xy});function yy(a){this.g=a||"menu"}u(yy,$q);Oa(yy);f=yy.prototype;f.wk=function(a){return"UL"==a.tagName||yy.ta.wk.call(this,a)};f.Yh=function(a){return"HR"==a.tagName?new xy:yy.ta.Yh.call(this,a)};f.fe=function(a,b){return Cf(a.ha(),b)};f.Dg=function(){return"goog-menu"};f.xk=function(a){yy.ta.xk.call(this,a);a=a.ha();X(a,"haspopup","true")};function zy(a){xy.call(this,wy.Gb(),a)}u(zy,xy);Xq("goog-menuseparator",function(){return new xy});function Ay(a,b){Dr.call(this,"vertical",b||yy.Gb(),a);Mr(this,!1)}u(Ay,Dr);f=Ay.prototype;f.Tk=!0;f.fe=function(a){if(this.Bd().fe(this,a))return!0;for(var b=0,c=Ym(this);bDate.now()-a.Bp);g&&a.Fm?a.lb():a.dispatchEvent("beforeshow")&&(c="undefined"!=typeof c?c:8,e||(a.ha().style.visibility="hidden"),M(a.ha(),!0),b.Tc(a.ha(),c,d),e||(a.ha().style.visibility="visible"),a.Yd(-1),a.Da(!0))}f.lb=function(){this.isVisible()&&(this.Da(!1),this.isVisible()||(this.Bp=Date.now()))};f.Ev=function(){this.lb()};f.Rv=function(a){Ey(this,a)}; f.Sv=function(a){32!=a.keyCode&&13!=a.keyCode&&40!=a.keyCode||Ey(this,a);40==a.keyCode&&Ir(this)};function Ey(a,b){for(var c=a.i.ie(),d=0;dl.endOffset)l={startOffset:e.startOffset, uh:e.uh,endOffset:l.endOffset,Qh:l.Qh};e=fb(d)}d.push(l);e=l}k.i&&qb(g,h)}}function fz(a,b){this.startOffset=a;this.uh=void 0;this.endOffset=a;this.Qh=void 0;this.i=!1;this.g=b};function gz(a,b){var c=void 0;c=void 0===c?Infinity:c;b=new dz(b);c=void 0===c?Infinity:c;var d=void 0===d?[]:d;var e=" ",g,h=$y(a);for(g=0;g=c&&(d.length=c);return d};function hz(a){var b=az(a);a=iz();Array.prototype.forEach.call(a,function(c){jz(b,c)})}function iz(){var a=[],b=tb(af("patent-text")),c=bf("patent-title");for(c&&b.push(c);c=b.pop();)3==c.nodeType?a.push(c):ub(b,c.childNodes);return a} function jz(a,b){var c=Lf(b);a=gz(c,a);if(a.length){var d=[],e=0;a.forEach(function(g){d.push(c.substring(e,g.startOffset),ae("span",{"class":"patent-text-highlight"},c.substring(g.startOffset,g.endOffset)));e=g.endOffset});d.push(c.substring(e));a=F("span");N(a,ie(d));wf(a,b)}};function kz(){qy.call(this,"Turn off highlighting");var a=uj("dq")||uj("q");a&&hz(a);this.Qb=!0}n(kz,qy);kz.prototype.Ma=function(){qy.prototype.Ma.call(this);Z(this).ka(this,"action",this.i)};kz.prototype.i=function(){this.Qb=!this.Qb;Kb(window.document.body,"patent-highlight-disabled",!this.Qb);vr(this,this.Qb?"Turn off highlighting":"Turn on highlighting")};function lz(){}u(lz,wy);Oa(lz);lz.prototype.Sc=function(a){return a.g.Ra("DIV",hr(this,a).join(" ")+" goog-inline-block","\u00a0")};lz.prototype.Ub=function(a,b){b=lz.ta.Ub.call(this,a,b);x(b,"goog-inline-block");return b};lz.prototype.Wa=function(){return"goog-toolbar-separator"};function mz(){}u(mz,Qt);Oa(mz);f=mz.prototype;f.Sc=function(a){var b=hr(this,a);b=a.g.Ra("DIV","goog-inline-block "+b.join(" "),this.mj(a.Lc(),a.g));this.vc(b,a.Af());return b};f.Eg=function(){return"button"};f.Nc=function(a){return a&&a.firstChild&&a.firstChild.firstChild};f.mj=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.Si=function(a){return"DIV"==a.tagName}; f.Ub=function(a,b){nz(b,!0);nz(b,!1);a:{var c=a.g.No(b);var d=this.Wa()+"-outer-box";if(c&&Gb(c,d)&&(c=a.g.No(c),d=this.Wa()+"-inner-box",c&&Gb(c,d))){c=!0;break a}c=!1}c||b.appendChild(this.mj(b.childNodes,a.g));Hb(b,["goog-inline-block",this.Wa()]);return mz.ta.Ub.call(this,a,b)};f.Wa=function(){return"goog-custom-button"}; function nz(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(""==Ob(e))a.removeChild(c);else{c.nodeValue=b?e.replace(/^[\s\xa0]+/,""):e.replace(/[\s\xa0]+$/,"");break}}else break;c=d}};function oz(){}u(oz,mz);Oa(oz);oz.prototype.Wa=function(){return"goog-toolbar-button"};function pz(){this.g="toolbar"}u(pz,$q);Oa(pz);pz.prototype.Yh=function(a){return"HR"==a.tagName?new xy(lz.Gb()):pz.ta.Yh.call(this,a)};pz.prototype.Dg=function(){return"goog-toolbar"};pz.prototype.Mo=function(){return"horizontal"};function qz(a){pz.call(this);this.i=a}u(qz,pz);var rz={};qz.prototype.Dg=function(){return this.i||"ocean-chrome-toolbar"};function sz(a){Q.call(this);this.g=[];tz(this,a)}u(sz,Q);f=sz.prototype;f.rg=null;f.Ck=null;function uz(a,b){a.Ck=b}function tz(a,b){b&&(b.forEach(function(c){vz(this,c,!1)},a),ub(a.g,b))}f.Sa=function(a){this.uf(a,this.g.length)};f.uf=function(a,b){a&&(vz(this,a,!1),vb(this.g,b,0,a))};f.Qd=function(){return tb(this.g)};f.ff=function(a){a!=this.rg&&(vz(this,this.rg,!1),this.rg=a,vz(this,a,!0));this.dispatchEvent("select")};f.wa=function(){sz.ta.wa.call(this);delete this.g;this.rg=null}; function vz(a,b,c){b&&("function"==typeof a.Ck?a.Ck(b,c):"function"==typeof b.sm&&b.sm(c))};function wz(a,b,c){Dr.call(this,b,a||pz.Gb(),c)}u(wz,Dr);wz.prototype.Xi=function(a){wz.ta.Xi.call(this,a);this.qe||Ir(this)};function xz(a,b,c){St.call(this,a,b||oz.Gb(),c)}u(xz,St);Xq("goog-toolbar-button",function(){return new xz(null)});function yz(a,b){xy.call(this,a||lz.Gb(),b)}u(yz,xy);Xq("goog-toolbar-separator",function(){return new yz});function zz(a){a=a||"viewport-chrome-toolbar";a=rz[a]||(rz[a]=new qz(a));wz.call(this,a);this.Ba={};this.j=new $i(this)}n(zz,wz);function Az(a,b,c,d){b.bc(16,!0);if(c){var e=a.Ba[c];e||(e=new sz,uz(e,function(g,h){g&&g.Nf(h)}),a.Ba[c]=e);e.Sa(b);b.Wf&=-17;O(b,"action",function(g){e.ff(g.target)});d&&e.ff(b)}else b.kd(16,!!d)}function Bz(a,b){a.Ba.viewport&&a.Ba.viewport.ff(b)}zz.prototype.wa=function(){wz.prototype.wa.call(this);this.j.Ha();Rc(this.Ba,function(a){a.Ha()})};function Cz(){}u(Cz,Qt);Oa(Cz);f=Cz.prototype;f.Sc=function(a){var b=hr(this,a);b=a.g.Ra("DIV","goog-inline-block "+b.join(" "),a.Lc());this.vc(b,a.Af());return b};f.Eg=function(){return"button"};f.Si=function(a){return"DIV"==a.tagName};f.Ub=function(a,b){x(b,"goog-inline-block");return Cz.ta.Ub.call(this,a,b)};f.Bb=function(){return""};f.Wa=function(){return"goog-flat-button"};Xq("goog-flat-button",function(){return new St(null,Cz.Gb())});function Dz(){}u(Dz,mz);Oa(Dz);Dz.prototype.Nc=function(a){return Dz.ta.Nc.call(this,a&&a.firstChild)};Dz.prototype.Ub=function(a,b){var c=Ze("*","goog-menu",b)[0];if(c){M(c,!1);We(c).body.appendChild(c);var d=new Ay;Wm(d,c);a.ef(d)}return Dz.ta.Ub.call(this,a,b)};Dz.prototype.mj=function(a,b){return Dz.ta.mj.call(this,[b.Ra("DIV","goog-inline-block "+(this.Wa()+"-caption"),a),b.Ra("DIV","goog-inline-block "+(this.Wa()+"-dropdown"),"\u00a0")],b)};Dz.prototype.Wa=function(){return"goog-menu-button"};function Ez(){this.g=[]}u(Ez,ly);Oa(Ez);Ez.prototype.Sc=function(a){var b=Ez.ta.Sc.call(this,a);x(b,"goog-submenu");Fz(this,a,b);return b};Ez.prototype.Ub=function(a,b){b=Ez.ta.Ub.call(this,a,b);x(b,"goog-submenu");Fz(this,a,b);var c=Ze("DIV","goog-menu",b);if(c.length){var d=new Ay(a.g);c=c[0];M(c,!1);a.g.g.body.appendChild(c);Wm(d,c);a.ef(d,!0)}return b};Ez.prototype.Fg=function(a,b){var c=this.Nc(a),d=c&&c.lastChild;Ez.ta.Fg.call(this,a,b);d&&c.lastChild!=d&&Gb(d,"goog-submenu-arrow")&&c.appendChild(d)}; Ez.prototype.Ti=function(a){Ez.ta.Ti.call(this,a);var b=a.Kb(),c=$e(a.g.g,"SPAN","goog-submenu-arrow",b)[0];Gz(a,c);c!=b.lastChild&&b.appendChild(c);a=a.ha();X(a,"haspopup","true")};function Fz(a,b,c){var d=b.g.Ra("SPAN");d.className="goog-submenu-arrow";Gz(b,d);a.Nc(c).appendChild(d)}function Gz(a,b){$m(a)?(x(b,"goog-submenu-arrow-rtl"),I(b,"\u25c4")):(Ib(b,"goog-submenu-arrow-rtl"),I(b,"\u25ba"))};function Hz(a,b,c,d){qy.call(this,a,b,c,d||Ez.Gb())}u(Hz,qy);f=Hz.prototype;f.Dh=null;f.zm=null;f.Xl=!1;f.wc=null;f.qj=!1;f.Ma=function(){Hz.ta.Ma.call(this);Z(this).ka(this.getParent(),"hide",this.Qp);this.wc&&Iz(this,this.wc,!0)};f.oc=function(){Z(this).Xa(this.getParent(),"hide",this.Qp);this.wc&&(Iz(this,this.wc,!1),this.qj||(this.wc.oc(),H(this.wc.ha())));Hz.ta.oc.call(this)};f.wa=function(){this.wc&&!this.qj&&this.wc.Ha();this.wc=null;Hz.ta.wa.call(this)}; f.ad=function(a){Hz.ta.ad.call(this,a);a||(this.Dh&&Jk(this.Dh),this.Dh=U(this.Me,218,this))};f.ym=function(){var a=this.getParent();a&&Hr(a)==this&&(Jz(this,!0),Kz(this))};f.Me=function(){var a=this.wc;a&&a.getParent()==this&&(Jz(this,!1),Xm(a,function(b){"function"==typeof b.Me&&b.Me()}))};function Lz(a){a.Dh&&Jk(a.Dh);a.zm&&Jk(a.zm)}f.Da=function(a,b){(a=Hz.ta.Da.call(this,a,b))&&!this.isVisible()&&this.Me();return a}; function Kz(a){Xm(a.getParent(),function(b){b!=this&&"function"==typeof b.Me&&(b.Me(),Lz(b))},a)}f.Wc=function(a){var b=a.keyCode,c=$m(this)?37:39,d=$m(this)?39:37;if(!this.Xl){if(!this.isEnabled()||b!=c&&13!=b&&b!=this.Yl)return!1;this.ym();Ir(Mz(this));Lz(this)}else if(!Mz(this).Wc(a))if(b==d)this.Me();else return!1;a.preventDefault();return!0};f.Gv=function(){this.wc.getParent()==this&&(Lz(this),this.hh().ad(this),Kz(this))};f.Qp=function(a){a.target==this.hh()&&(this.Me(),Lz(this))}; f.Se=function(a){this.isEnabled()&&(Lz(this),this.zm=U(this.ym,218,this));Hz.ta.Se.call(this,a)};f.Ye=function(a){Lz(this);if(mr(this,8)||mr(this,16))return Hz.ta.Ye.call(this,a);this.ym();return!0}; function Jz(a,b){!b&&Mz(a)&&Mz(a).Yd(-1);a.dispatchEvent(Tm(64,b));var c=Mz(a);b!=a.Xl&&Kb(a.ha(),"goog-submenu-open",b);if(b!=c.isVisible()&&(b&&(c.ab||c.render(),c.Yd(-1)),c.Da(b),b)){c=new Wr(a.ha(),12,!1);var d=Mz(a),e=d.ha();d.isVisible()||(e.style.visibility="hidden",M(e,!0));c.Tc(e,8);d.isVisible()||(M(e,!1),e.style.visibility="visible")}a.Xl=b}function Iz(a,b,c){var d=Z(a);(c?d.ka:d.Xa).call(d,b,"enter",a.Gv)}f.Sa=function(a){Mz(this).Oa(a,!0)};f.uf=function(a,b){Mz(this).Pg(a,b,!0)}; f.Qd=function(){return Mz(this).Qd()};function Mz(a){a.wc?a.qj&&a.wc.getParent()!=a&&a.wc.te(a):a.ef(new Ay(a.g),!0);a.wc.ha()||a.wc.Va();return a.wc}f.ef=function(a,b){var c=this.wc;a!=c&&(c&&(this.Me(),this.ab&&Iz(this,c,!1)),this.wc=a,this.qj=!b,a&&(a.te(this),a.Da(!1,!0),By(a,!1),Mr(a,!1),this.ab&&Iz(this,a,!0)))};f.fe=function(a){return Mz(this).fe(a)};Xq("goog-submenu",function(){return new Hz(null)});function Nz(a,b,c,d,e){St.call(this,a,c||Dz.Gb(),d);this.bc(64,!0);this.o=new ty(null,9);b&&this.ef(b);this.Ya=new Hk(500);this.tb=e||yy.Gb()}u(Nz,St);f=Nz.prototype;f.Ma=function(){Nz.ta.Ma.call(this);Oz(this,!0);this.i&&Pz(this,this.i,!0);X(this.ya,"haspopup",!!this.i)};f.oc=function(){Nz.ta.oc.call(this);Oz(this,!1);if(this.i){this.Rb(!1);this.i.oc();Pz(this,this.i,!1);var a=this.i.ha();a&&H(a)}};f.wa=function(){Nz.ta.wa.call(this);this.i&&(this.i.Ha(),delete this.i);delete this.hb;this.Ya.Ha()}; f.mf=function(a){Nz.ta.mf.call(this,a);nr(this,4)&&(this.Rb(!this.xd(),a),this.i&&(a=this.xd(),this.i.qe=a))};f.oe=function(a){Nz.ta.oe.call(this,a);this.i&&!nr(this,4)&&(this.i.qe=!1)};f.Ye=function(){xr(this,!1);return!0};f.Xt=function(a){this.i&&this.i.isVisible()&&!this.fe(a.target)&&this.Rb(!1)};f.fe=function(a){return a&&Cf(this.ha(),a)||this.i&&this.i.fe(a)||!1}; f.ne=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.Wc(a);return c&&this.i&&this.i.kc instanceof Hz||27!=a.keyCode&&!b?c:(this.Rb(!1),!0)}return 40==a.keyCode||38==a.keyCode||32==a.keyCode||13==a.keyCode?(this.Rb(!0,a),!0):!1};f.Dl=function(){this.Rb(!1)};f.Ui=function(a){this.Rb(!1);Nz.ta.Ui.call(this,a)}; function Qz(a){a.i||a.ef(new Ay(a.g,a.tb));return a.i||null}f.ef=function(a){var b=this.i;a!=b&&(b&&(this.Rb(!1),this.ab&&Pz(this,b,!1),delete this.i),this.ab&&X(this.ya,"haspopup",!!a),a&&(this.i=a,a.te(this),a.Da(!1),By(a,!1),this.ab&&Pz(this,a,!0)));return b};f.Sa=function(a){Qz(this).Oa(a,!0)};f.uf=function(a,b){Qz(this).Pg(a,b,!0)};f.Da=function(a,b){(a=Nz.ta.Da.call(this,a,b))&&!this.isVisible()&&this.Rb(!1);return a};f.Ta=function(a){Nz.ta.Ta.call(this,a);this.isEnabled()||this.Rb(!1)}; f.Rb=function(a,b){Nz.ta.Rb.call(this,a);if(this.i&&nr(this,64)==a){if(a)this.i.ab||this.i.render(),this.Ba=qh(this.ha()),this.Ua=Ah(this.ha()),Rz(this),!b||40!=b.keyCode&&38!=b.keyCode?this.i.Yd(-1):Ir(this.i);else{xr(this,!1);this.i.qe=!1;var c=this.ha();c&&(X(c,"activedescendant",""),X(c,"owns",""));null!=this.va&&(this.va=void 0,(c=this.i.ha())&&K(c,"",""))}this.i.Da(a,!1,b);this.Nd||(b=Z(this),c=a?b.ka:b.Xa,c.call(b,this.g.g,"mousedown",this.Xt,!0),c.call(b,this.Ya,"tick",this.Hr),a?this.Ya.start(): this.Ya.stop())}this.i&&this.i.ha()&&this.i.ya.removeAttribute("aria-hidden")};function Rz(a){if(a.i.ab){var b=a.hb||a.ha(),c=a.o;a.o.g=b;b=a.i.ha();a.i.isVisible()||(b.style.visibility="hidden",M(b,!0));!a.va&&a.o.N&&a.o.j&32&&(a.va=L(b));c.Tc(b,c.i^1,null,a.va);a.i.isVisible()||(M(b,!1),b.style.visibility="visible")}} f.Hr=function(){var a=Ah(this.ha()),b=qh(this.ha());var c=this.Ua;(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.ab&&b&&this.Ba&&b.Cb()h;h++){for(var k=nf(d,"TR"),l=0;2>l;l++)k.appendChild(nf(d,"TD"));g.appendChild(k)}x(e,this.className+"-table-layout");d=e.rows[0].cells;g=$z(this);d[0].appendChild(g);g=aA(this);d[1].appendChild(g);g=C("DIV",this.className+"-link"); h=C("A",{target:"_blank"},"Help with devices & formats");k=new R(window.location.href);l=new R("/support/bin/answer.py?answer=1062949");k=T(k,"hl")?S(l,"hl",T(k,"hl")).toString():"/support/bin/answer.py?answer=1062949";pe(h,k);g.appendChild(h);d[1].appendChild(g);c.appendChild(e);e=this.o;if((d=e.Md)&&!e.ng&&e.tb){var m;e.Tb&&om.lx&&(m="Read the book");m=C("P",this.className+"-additional",C("A",{href:d},m));c.appendChild(m)}if(e.Ka||e.La)if(d=e.Zb,g=e.hb,d||g)m=C("P",this.className+"-additional", pf("Download ")),d&&(h=C("A",{href:d},"EPUB"),m.appendChild(h)),g&&(d&&m.appendChild(pf(", ")),d=C("A",{href:g},"PDF"),m.appendChild(d)),m.appendChild(pf(" - ")),e=e.ac(),d=(new R(window.location.href)).s.split("/"),d=new R("/"+d[1]),su(d),S(d,"output","acs_help"),S(d,"id",e),e=C("A",{href:d.toString()},"read eReader instructions"),m.appendChild(e),c.appendChild(m);m=C("A",{target:"_blank"},"Learn more about books on Google Play");pe(m,"https://books.google.com/support/bin/topic.py?topic=28528"); this.j=C("DIV",this.className+"-footer",m);b=C("DIV",b,c,this.j);x(b,this.className+"-device-content");a.appendChild(b)}}; function $z(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"),m=C("A",{"class":d,href:"/help/ebooks/devices.html"},"Smartphone"), p=a.o.Fj,w=a.o.Gj,D=a.o.ng;d=new $i(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.")):(p||w)&&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.")): (p||w)&&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."):p?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);m=C("LI",null,m);d.ka(m,"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."):p&&w?this.i("This eBook is good for smartphones like Android and iPhone / iPod touch."):p?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(m,"mouseout",a.Ba);b.appendChild(m);D?(x(h,g),x(k,g),x(l,g),x(m,g)):p?(x(h,c),x(k,c),x(l,c),x(m,c)):(w?(x(h,c),x(k,c)):(x(h,e),x(k,e)),x(l,e),x(m,e));return b} function aA(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.o.Fj,l=a.o.Gj,m=a.o.ng;m?(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 $i(a);e.ka(c,"mouseover",function(){m? 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(){m?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} Zz.prototype.Ba=function(){sf(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)};Zz.prototype.i=function(a){sf(this.j);"string"===typeof a?this.j.appendChild(pf(a)):this.j.appendChild(a)};function bA(a,b){Ut.call(this,b,void 0,3);this.o=a}n(bA,Ut);bA.prototype.render=function(a){Ut.prototype.render.call(this,a);x(this.ha(),"gb-get-book")};bA.prototype.Ma=function(){Ut.prototype.Ma.call(this);var a=this.ha();this.i=new Zz(a,this.o);this.i.render();a=B("menu_container");(a=bf("about_title",a))&&H(a)}; function cA(){var a=B("gb-buy-options-trigger");if(a&&a.parentNode&&a.parentNode.parentNode?!Gb(a.parentNode.parentNode,"jfk-button"):1){a=B("gb-buy-options-trigger");var b=B("buy");if(a&&b){Ib(b,"about_content");var c=C("SPAN","gb-buy-options-arrow","\u25bc");a.appendChild(c);x(b,"gb-buy-options-list");x(b,"unified-hovercard");Rr(a,9,b,8);M(b,!1);O(document,"mousedown",t(dA,a,b))}}}function dA(a,b,c){a=Cf(a,c.target);c=Cf(b,c.target);var d=Ch(b);a||c||!d?a&&(M(b,!d),d||Bh(b,1)):M(b,!1)};function eA(a,b,c,d,e,g){function h(l){if(l){l.tabIndex=0;rm(l,k.va);x(l,"goog-zippy-header");l&&k.oa.ka(l,"click",k.na);var m=k;l&&(m.O.attach(l),m.ma.ka(m.O,"key",m.ua))}}Q.call(this);this.N=e||Ue();this.i=this.N.ha(a)||null;this.s=this.N.ha(d||null);this.o="function"===typeof b?b:null;this.va=g||"tab";this.j=this.o||!b?null:this.N.ha(b);this.g=1==c;void 0!==c||this.o||(this.s?this.g=Ch(this.s):this.i&&(this.g=Gb(this.i,"goog-zippy-expanded")));this.ma=new $i(this);this.O=new Rq;this.oa=new $i(this); var k=this;h(this.i);h(this.s);this.df(this.g)}u(eA,Q);eA.prototype.wa=function(){eA.ta.wa.call(this);ui(this.ma);ui(this.O);ui(this.oa)};eA.prototype.df=function(a){this.j?M(this.j,a):a&&this.o&&(this.j=this.o());this.j&&x(this.j,"goog-zippy-content");this.s?(M(this.i,!a),M(this.s,a)):this.i&&(Kb(this.i,"goog-zippy-expanded",a),Kb(this.i,"goog-zippy-collapsed",!a),X(this.i,"expanded",a));this.g=a;this.dispatchEvent(new fA("toggle",this,this.g))}; eA.prototype.ua=function(a){if(13==a.keyCode||32==a.keyCode)this.df(!this.g),this.dispatchEvent(new fA("action",this,this.g,a)),a.preventDefault(),a.stopPropagation()};eA.prototype.na=function(a){this.df(!this.g);this.dispatchEvent(new fA("action",this,this.g,a))};function fA(a,b){yi.call(this,a,b)}u(fA,yi);function gA(a,b,c,d){if(b.child_node&&0"+(c.i.Pb.Ab.length+" results in this book for ")+(Mq(c.i.Pb)+"")));EA(c,!0);c=a.Pb;c!=b.Pb&&(b.Pb=c,fy(b));a=r(a.Cf,a);b.Ba=a;b.jd(new A(0,0))} AA.prototype.Cf=function(a,b){fw=!0;var c=this.Zc.j;EA(c,!1);c.ma=gb(c.i.Pb.Ab,a);c.s?(M(B("gb-mobile-search"),!0),M(B("gb-mobile-search-buttons"),!0),N(c.j,ql(c.ma+1+" of "+c.i.Pb.Ab.length)),vm(c.j,"Result "+(c.ma+1)+" of "+c.i.Pb.Ab.length)):N(c.j,ql("Result "+(c.ma+1+" of ")+(c.i.Pb.Ab.length+" in this book for ")+(Mq(c.i.Pb)+"")));c=this.Zc.V;a=co(c.rb(),a.Qa());if(!a)return null;var d=c.Ia();d instanceof kx||d instanceof Px||(this.Zc.s==Px?c.lc(Px):c.lc(kx));if(b)return c.Gd(b), null;c.fi(a);return a};AA.prototype.wa=function(){ui(this.j);W.prototype.wa.call(this)};function FA(a){W.call(this);this.Ja=np(a);this.s=pc&&a&&a.isOgenEligibleMobileViewport;this.na=this.o=null;this.s?(M(B("gb-mobile-search"),!0),M(B("gb-mobile-search-buttons"),!0)):(this.oa=F("DIV"),this.ua=new Fq(this.oa),this.ua.render(GA),this.ua.Da(!0),a=this.ua.ha(),x(a,"search-results-bar"),x(this.oa,"search-results-bar-contents"));this.j=this.s?B("gb-mobile-search-results-summ"):F("SPAN");this.s||this.oa.appendChild(this.j);this.N=this.s?B("gb-mobile-search-result-links"):F("SPAN");this.s?(HA(this, B("gb-mobile-search-result-prev"),r(this.Cj,this,-1),"Previous result"),HA(this,B("gb-mobile-search-result-next"),r(this.Cj,this,1),"Next result"),I(B("gb-mobile-search-result-viewall"),"View all"),HA(this,B("gb-mobile-search-result-viewall"),r(this.ip,this),"View all"),HA(this,B("gb-mobile-search-close"),r(this.Fl,this),"Close search")):(x(this.N,"search-bar-result-links"),this.oa.appendChild(this.N),a=F("SPAN"),N(a,ql("-  ")),x(a,"search-bar-link-spacer"),this.N.appendChild(a),IA(this, this.N,"‹ Previous",r(this.Cj,this,-1),"Previous"),a=F("SPAN"),N(a,ql("  ")),x(a,"search-bar-link-spacer"),this.N.appendChild(a),IA(this,this.N,"Next ›",r(this.Cj,this,1),"Next"),a=F("SPAN"),N(a,ql("  -  ")),x(a,"search-bar-link-spacer"),this.N.appendChild(a),IA(this,this.N,"View all",r(this.ip,this)));this.O=this.s?B("gb-mobile-search-snippet-links"):F("SPAN");this.s?JA(this):(this.Ja?(this.va=F("DIV"),x(this.va,"search-bar-result-buttons"),this.oa.appendChild(this.va), this.va.appendChild(this.O),Hb(this.O,["search-bar-sort-dropdown-button-container","search-bar-close-link"]),JA(this)):(this.Ba=F("SPAN"),this.Ca=F("SPAN"),this.oa.appendChild(this.O),a=F("SPAN"),N(a,ql("-  ")),x(a,"search-bar-link-spacer"),this.O.appendChild(a),this.O.appendChild(pf("Order by: ")),this.O.appendChild(this.Ba),IA(this,this.Ba,"relevance",r(this.Dj,this,"r"),"Order by relevance"),a=F("SPAN"),N(a,ql(" | pages")),this.Ba.appendChild(a),this.O.appendChild(this.Ca), a=F("SPAN"),N(a,ql("relevance | ")),this.Ca.appendChild(a),IA(this,this.Ca,"pages",r(this.Dj,this,"n"),"Order by pages")),x(this.O,"search-bar-snippet-links"));if(!this.s){a=F("SPAN");x(a,"search-bar-close-link-container");this.Ja?this.va.appendChild(a):this.oa.appendChild(a);this.g.ka(a,"click",this.Fl);var b=IA(this,a,"Clear search",r(this.Fl,this));x(b,"search-bar-close-link");b=F("IMG");b.src="/googlebooks/images/close_x.gif";x(b,"search-bar-close-img");a.appendChild(b);Fh(this.oa, !0)}}var GA,KA,LA;n(FA,W);function MA(){KA=B("toolbar_container")} function JA(a){a.o=C("A",{"class":"search-bar-sort-dropdown-link"});rm(a.o,"button");If(a.o,!0);X(a.o,"haspopup",!0);a.O.appendChild(a.o);var b=C("SPAN",{"class":"search-bar-sort-dropdown-text"});I(b,"Order by");a.na=C("SPAN",{"class":"search-bar-sort-dropdown-selected"});I(a.na,"relevance");vm(a.o,"Order by relevance");b.appendChild(a.na);a.o.appendChild(b);b=Zt("/googlebooks/images/material/arrow_drop_down_black_20dp.png");x(b[0],"search-bar-sort-dropdown-icon");X(b[0],"hidden",!0);a.o.appendChild(b[0]); b=new Cy;var c=new qy("relevance");c.yi("Order by relevance");b.Oa(c,!0);x(c.ha(),"search-bar-sort-dropdown-item");var d=new qy("pages");d.yi("Order by pages");b.Oa(d,!0);x(d.ha(),"search-bar-sort-dropdown-item");b.Fm=!0;b.render(document.body);b.attach(a.o,13,12);a.g.ka(b,"action",a.Zo);a.g.ka(b,"keydown",function(e){32!=e.keyCode&&13!=e.keyCode||r(a.Zo,a)});a.s&&a.g.ka(b,"beforeshow",function(){var e=a.o.offsetWidth-32;zh(c.ha(),e);zh(d.ha(),e)})} function EA(a,b){M(KA,!b);M(a.O,b);a.s?(M(a.N,!b),b=!b&&1==a.i.Pb.Ab.length,Kb(a.N,"mobile-search-button-disabled",b),X(a.N,"disabled",b)):M(a.N,!b&&1=d&&(a.ma=0);0>a.ma&&(a.ma=d-1);a.ma!=b&&(a.i.Cf(a.i.Pb.Ab[a.ma])||OA(a,b,c))}f.Dj=function(a){var b=this.i.Zc;b&&b.update(a)};f.ip=function(){CA(this.i)}; f.Ju=function(a){var b=this.i.Zc;b&&(a=Je(a),Fo(b.V.ub(),a),b.N.Bc(a),b.o&&b.o.update())};f.Zo=function(a){if((a=a.target.Lc())&&this.na)switch(a){case "pages":this.Dj("n");I(this.na,"pages");vm(this.o,"Order by pages");break;case "relevance":this.Dj("r"),I(this.na,"relevance"),vm(this.o,"Order by relevance")}};function DA(a,b){a.o&&(Kb(a.o,"search-bar-sort-dropdown-disabled",!b),X(a.o,"disabled",!b));var c="n"==a.i.Bm;b&&!c&&I(a.na,"relevance")};function PA(a,b,c,d){W.call(this);this.V=a;this.N=b;this.o=c;this.O=d;this.ma=pc&&d&&d.isOgenEligibleMobileViewport;this.g.ka(a.ub(),"change",r(this.update,this,"r",null))}n(PA,W); PA.prototype.update=function(a,b,c){this.i?(this.i.Ha(),this.i=null):(this.V.O&&(this.s=this.V.O),this.j=new FA(this.O));var d=this.V.ub().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.s&&I(a.s,String(1==a.o?b:a.i-b))}$A.prototype.wa=function(){$A.ta.wa.call(this);delete this.g;this.j.Ha();this.j=null};function bB(a,b,c,d,e){WA.call(this,a,b,null,!0);this.hb=c;this.Tb=d;this.Ca=e}n(bB,WA); bB.prototype.Va=function(){WA.prototype.Va.call(this);this.o=cB(this,"Name","input");this.tb=cB(this,"Description (optional)","textarea");var a=this.Kb(),b=C("DIV",{"class":"ccd-label"}),c=F("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=F("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=F("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",r(this.Ka,this,!0));e=C("SPAN",{"class":"ccd-mode-link"});e.textContent="Make private";b.appendChild(e);O(e,"click",r(this.Ka,this,!1));this.Fe=[a,e];this.Ee=[c,d];null!= this.Ca&&(ef(this.Ca,{"class":"ccd-mode-link"}),b.appendChild(this.Ca));this.Ka(!0);this.na=C("DIV",{"class":"ccd-error"});this.Kb().appendChild(this.na);this.Xb=C("P","ccd-footnote","Please note that the contents and title of Public bookshelves can be viewed and shared by others.");this.Kb().appendChild(this.Xb);this.i&&dB(this);Vo.IsZipitFolderCollectionEnabled||(b=this.j,a=An(b,"ok"),J(a,"fontWeight","bold"),x(a,"gb-button"),x(An(b,"cancel"),"gb-button"))}; function dB(a){a.o.value=Je(a.i.kb());a.o.disabled=a.i.O;a.tb.value=Je(a.i.ah());a.Ka(1==a.i.Ge);a.o.disabled&&J(a.o,"background","#f2f2f2")}function cB(a,b,c){var d=a.Kb();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?(ef(b,{type:"text"}),b.setAttribute("maxlength",100)):"textarea"==c&&(ef(b,{rows:6,cols:50}),new $A(b,F("span"),500));a.appendChild(b);return b} bB.prototype.Ka=function(a){this.De=a;v(this.Fe,function(b){M(b,a)});v(this.Ee,function(b){M(b,!a)})}; bB.prototype.Ua=function(a){var b=this.o.value;if("cancel"==a.key)return!0;if(Nb(b))return this.na.textContent="Please enter a title for this bookshelf.",!1;if(this.Tb&&!this.Tb(b))return this.na.textContent="Another bookshelf already has that title. Please enter a different title.",!1;a=this.i||new Au;a.Jc=b;a.s=this.tb.value;a.Ge=this.De?1:2;if(this.i){b=this.hb;var c=new R(b.Cq);S(c,"as_coll",a.getId());Mu(c,a,r(b.N,b))}else b=this.hb,Mu(b.s,a,r(b.o,b,!0));return!0}; bB.prototype.wa=function(){delete this.hb;delete this.Ca;delete this.i;delete this.na;delete this.Xb;delete this.o;delete this.tb;delete this.Tb;WA.prototype.wa.call(this)};function eB(a,b,c,d,e){W.call(this);this.O=a;this.j=b;this.N=c;this.i=d;this.O&&(this.s=jb(this.O.childNodes,fB),this.i&&ub(this.s,jb(this.i.childNodes,fB)));this.o=e;U(r(this.Or,this))}u(eB,W);f=eB.prototype;f.Or=function(){this.j&&this.i&&this.g.ka(this.j,"click",this.Bq);this.N&&this.g.ka(this.N,"click",this.Vt);this.g.ka(this.o,"add",this.ct)}; function fB(a){var b=Ze("SPAN","sidebar-collection-title",a)[0];b||(b=Ze("SPAN","hp-collection-title",a)[0]);if(!b)return"";a=Ob(Fe(Jf(b)));return Ob(a.split("(")[0])}f.Vt=function(){var a=new bB("Create new bookshelf","Create bookshelf",this.o,r(this.nv,this));a.render();a.Da(!0)};f.nv=function(a){var b=Ob(Fe(a)).toLowerCase();return!kb(this.s,function(c){return c.toLowerCase()==b})}; f.ct=function(a){a=a.shelf;var b=Ob(Fe(a.kb())),c=1==a.Ge;this.s.push(b);var d=new R("/books");su(d);S(d,"as_coll",a.getId());S(d,"source","gbs_lp_bookshelf_list");if(Vo.IsBooksUnifiedLeftNavEnabled){a=C("LI",{"class":"left-nav-shelf-item"});var e=C("A",{"class":"sidebar-link"});pe(e,d.toString());d=C("SPAN");x(d,"sidebar-collection-title");N(d,rl(b+" (0)",{af:"038e33c2-d414-44e2-bbe6-927f8ace3e86"}));e.appendChild(d);a.appendChild(e);c=B("hidden-my-library-expanded");tf(a,c);VA(!0,"my-library")}else a= F("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,rl(b,{af:"0b6daedb-ff6d-4634-9ac2-c45d944e2b5e"})),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),uf(a,B("csStart"))}; f.Bq=function(a){a.preventDefault();a=!Ch(this.i);M(this.i,a);a?(Rr(this.j,9,this.i,8),200 portable guard tower