!function(t){function e(o){if(n[o])return n[o].exports;var r=n[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var n={};e.m=t,e.c=n,e.d=function(t,n,o){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:o})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=1666)}({1666:function(t,e,n){"use strict";function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}Object.defineProperty(e,"__esModule",{value:!0});var r,i=n(1667),a=(n.n(i),n(1668)),s=n(1670),l=n(1671),u=n(1672),c=n(1673),h=n(1674),f=n(440),d=n(1675),g=n(265),p=document.getElementById("qr"),m=(new g.a(p,{text:location.href||"www.douban.com",height:$(p).data("height")||90,width:$(p).data("width")||90,correctLevel:g.a.CorrectLevel.L}),$(".book-infor").css("height")),v=parseInt(m,10)+614;new a.a,new s.a({nav:".nav",navTarget:".layout-content",navItem:".nav .nav-item",footer:".footer",lookAllBook:".look-all-book",toBannerHeight:v+140}),new u.a,new c.a({get_comments_url:window._CONFIG.get_comments_url||"",sku_id:window._CONFIG.sku_id||"",more_comment:"#more_comment",short_comments:"#short_comments",short_comment_num:"#short_comment_num"}),new l.a({photo:".photos",photoItem:".photo-item",photoNext:"#albumMain .next",photoPrev:"#albumMain .prev",modal:".photo-modal",modal_arrow:".photo-nav",modal_prev:".photo-nav-box .prev",modal_next:".photo-nav-box .next",currentPhoto:"#current_photo",totalPhoto:"#total_photo",modal_photo:".modal-photo",modal_photo_name:".photo-name",modal_page:".photo-page",albumMain:"#albumMain",albumMain_class:"",photo_list:[],current_index:0}),new h.a,$(".layout-content:last").css("padding-bottom","160px"),$("body").on("click",".preload-video-button",function(t){t.preventDefault(),$(this).hide(),$("#video-1").attr("data-type"),b.play(null,0)});var _=(r={html5Preload:!0,isHtml5UseAirPlay:!0,isHtml5AutoBuffer:!0,html5VodUIFeature:["controlbar","tips","title","meta","playpause","progress","timepanel","definition","volume","fullscreen","overlay","bigben","posterlayer","shadow","promotion","loadingAd","adonend","bullet","preview","verticalbullet"],isHtml5UseUI:!1,playerType:"html5",autoplay:!1},o(r,"playerType","flash"),o(r,"vodFlashExtVars",{bullet:0,showlogo:0,searchpanel:0,showend:0,showcfg:0,autoplay:0,follow:0,clientbar:0}),o(r,"vodFlashUrl","https://imgcache.qq.com/tencentvideo_v1/playerv3/TPout.swf"),r),b=new f.a({width:760,height:427},_);b.generate(".video"),new d.a({root:".videos",tab:".video-tab",content:".video-item",item:".video",change_callback:function(t){0===t?($(".preload-video-button").show(),$("#video-"+(t+1)).css({visibility:"hidden"})):$(".preload-video-button").hide(),b.pauseAll()}})},1667:function(t,e){},1668:function(t,e,n){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var r=n(1669),i=function(){function t(t,e){for(var n=0;n"),r=this.config.fixedClassName;o.css({height:n}),this.handler(n,r,e,o,this.config.distanceTrigger),$(window).bind("scroll",function(){t.timer||(t.timer=setTimeout(function(){t.handler(n,r,e,o,t.config.distanceTrigger),clearTimeout(t.timer),t.timer=null},100))})}},{key:"handler",value:function(t,e,n,o,r){var i=window.scrollY,a=this.config.needHolder;i>t?n.addClass("scrolled"):n.removeClass("scrolled"),i>r?(n.addClass(e),a&&o.insertAfter(n)):(n.removeClass(e),a&&o.remove())}}]),t}();e.a=a},1670:function(t,e,n){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var r=function(){function t(t,e){for(var n=0;n'+r.data("title")+"",0!=e&&r.addClass("top-line"),t.tabClickScroll("#tab_"+r.attr("id"),"#"+r.attr("id"))});var r='";n.first().prev().after(r)}},{key:"tabFixedTop",value:function(){var t,e=this.config,n=$(e.nav);n.attr("data-top",n.offset().top),$(window).scroll(function(){t=Math.max(document.body.scrollTop||document.documentElement.scrollTop),t+200>parseInt(n.attr("data-top"))?n.css({position:"fixed",top:"200px",left:"50%","margin-left":"-480px"}):"static"!=n.css("position")&&n.css({position:"absolute",top:e.toBannerHeight+"px"})})}},{key:"tabClickScroll",value:function(t,e){$(document).on("click",t,function(){var t=$(e).offset().top;$("body,html").animate({scrollTop:t})})}},{key:"tabScrollSwitch",value:function(){var t=this.config,e=document.body.scrollTop+document.documentElement.scrollTop;$(t.navTarget).each(function(n,o){var r=$(o);r.offset().top-e<350&&($(t.navItem).removeClass("active"),$("#tab_"+r.attr("id")).parent().addClass("active"))}),$(t.footer).offset().top-e<700?$(t.nav).hide():$(t.nav).show()}},{key:"lookAllBook",value:function(){var t=this.config;$(t.lookAllBook).on("click",function(){createFunctionWithTimeout(function(){window.location.href="https://market.douban.com/book/"}),ga("send","event","纸书详情页","其他推荐点击","查看全部在售纸书")})}}]),t}();e.a=i},1671:function(t,e,n){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var r=function(){function t(t,e){for(var n=0;n1){n-=1;var o=$(t.photo).children().eq(n-1).find("img").attr("src");$(t.currentPhoto).html(n),$(t.modal_photo).css("background-image","url("+o+")"),$(t.modal_next).show()}else $(t.modal_prev).hide()}),$(t.modal_next).on("click",function(o){if(o.stopPropagation(),n\n
\n
\n \n
\n
\n '+o.user_name+'\n
\n
\n
\n
\n
\n

'+o.content+"

\n ")),n.commont_ids.push(o.id));n.total+=r.length,n.start+=e,n.$short_comment_num.html(t.total),n.total>=t.total&&(n.no_more=!0,n.$more_comment.addClass("disabled").html("没有更多了")),n.$short_comment_num.html(t.total)}else alert("服务器开小差了,请稍后再试")})}}]),t}();e.a=a},1674:function(t,e,n){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var r=function(){function t(t,e){for(var n=0;n65536?(o[0]=240|(1835008&r)>>>18,o[1]=128|(258048&r)>>>12,o[2]=128|(4032&r)>>>6,o[3]=128|63&r):r>2048?(o[0]=224|(61440&r)>>>12,o[1]=128|(4032&r)>>>6,o[2]=128|63&r):r>128?(o[0]=192|(1984&r)>>>6,o[1]=128|63&r):o[0]=r,this.parsedData.push(o)}this.parsedData=Array.prototype.concat.apply([],this.parsedData),this.parsedData.length!=this.data.length&&(this.parsedData.unshift(191),this.parsedData.unshift(187),this.parsedData.unshift(239))}function e(t,e){this.typeNumber=t,this.errorCorrectLevel=e,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}function n(t,e){if(void 0==t.length)throw new Error(t.length+"/"+e);for(var n=0;np.length)throw new Error("Too long data");return n}function l(t){var e=encodeURI(t).toString().replace(/\%[0-9a-fA-F]{2}/g,"a");return e.length+(e.length!=t?3:0)}t.prototype={getLength:function(t){return this.parsedData.length},write:function(t){for(var e=0,n=this.parsedData.length;e=7&&this.setupTypeNumber(t),null==this.dataCache&&(this.dataCache=e.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,n)},setupPositionProbePattern:function(t,e){for(var n=-1;n<=7;n++)if(!(t+n<=-1||this.moduleCount<=t+n))for(var o=-1;o<=7;o++)e+o<=-1||this.moduleCount<=e+o||(this.modules[t+n][e+o]=0<=n&&n<=6&&(0==o||6==o)||0<=o&&o<=6&&(0==n||6==n)||2<=n&&n<=4&&2<=o&&o<=4)},getBestMaskPattern:function(){for(var t=0,e=0,n=0;n<8;n++){this.makeImpl(!0,n);var o=f.getLostPoint(this);(0==n||t>o)&&(t=o,e=n)}return e},createMovieClip:function(t,e,n){var o=t.createEmptyMovieClip(e,n);this.make();for(var r=0;r>n&1);this.modules[Math.floor(n/3)][n%3+this.moduleCount-8-3]=o}for(var n=0;n<18;n++){var o=!t&&1==(e>>n&1);this.modules[n%3+this.moduleCount-8-3][Math.floor(n/3)]=o}},setupTypeInfo:function(t,e){for(var n=this.errorCorrectLevel<<3|e,o=f.getBCHTypeInfo(n),r=0;r<15;r++){var i=!t&&1==(o>>r&1);r<6?this.modules[r][8]=i:r<8?this.modules[r+1][8]=i:this.modules[this.moduleCount-15+r][8]=i}for(var r=0;r<15;r++){var i=!t&&1==(o>>r&1);r<8?this.modules[8][this.moduleCount-r-1]=i:r<9?this.modules[8][15-r-1+1]=i:this.modules[8][15-r-1]=i}this.modules[this.moduleCount-8][8]=!t},mapData:function(t,e){for(var n=-1,o=this.moduleCount-1,r=7,i=0,a=this.moduleCount-1;a>0;a-=2)for(6==a&&a--;;){for(var s=0;s<2;s++)if(null==this.modules[o][a-s]){var l=!1;i>>r&1));var u=f.getMask(e,o,a-s);u&&(l=!l),this.modules[o][a-s]=l,r--,-1==r&&(i++,r=7)}if((o+=n)<0||this.moduleCount<=o){o-=n,n=-n;break}}}},e.PAD0=236,e.PAD1=17,e.createData=function(t,n,o){for(var a=r.getRSBlocks(t,n),s=new i,l=0;l8*c)throw new Error("code length overflow. ("+s.getLengthInBits()+">"+8*c+")");for(s.getLengthInBits()+4<=8*c&&s.put(0,4);s.getLengthInBits()%8!=0;)s.putBit(!1);for(;!(s.getLengthInBits()>=8*c)&&(s.put(e.PAD0,8),!(s.getLengthInBits()>=8*c));)s.put(e.PAD1,8);return e.createBytes(s,a)},e.createBytes=function(t,e){for(var o=0,r=0,i=0,a=new Array(e.length),s=new Array(e.length),l=0;l=0?p.get(m):0}}for(var v=0,h=0;h=0;)e^=f.G15<=0;)e^=f.G18<>>=1;return e},getPatternPosition:function(t){return f.PATTERN_POSITION_TABLE[t-1]},getMask:function(t,e,n){switch(t){case h.PATTERN000:return(e+n)%2==0;case h.PATTERN001:return e%2==0;case h.PATTERN010:return n%3==0;case h.PATTERN011:return(e+n)%3==0;case h.PATTERN100:return(Math.floor(e/2)+Math.floor(n/3))%2==0;case h.PATTERN101:return e*n%2+e*n%3==0;case h.PATTERN110:return(e*n%2+e*n%3)%2==0;case h.PATTERN111:return(e*n%3+(e+n)%2)%2==0;default:throw new Error("bad maskPattern:"+t)}},getErrorCorrectPolynomial:function(t){for(var e=new n([1],0),o=0;o5&&(n+=3+i-5)}for(var o=0;o=256;)t-=255;return d.EXP_TABLE[t]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},g=0;g<8;g++)d.EXP_TABLE[g]=1<>>7-t%8&1)},put:function(t,e){for(var n=0;n>>e-n-1&1))},getLengthInBits:function(){return this.length},putBit:function(t){var e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}};var p=[[17,14,11,7],[32,26,20,14],[53,42,32,24],[78,62,46,34],[106,84,60,44],[134,106,74,58],[154,122,86,64],[192,152,108,84],[230,180,130,98],[271,213,151,119],[321,251,177,137],[367,287,203,155],[425,331,241,177],[458,362,258,194],[520,412,292,220],[586,450,322,250],[644,504,364,280],[718,560,394,310],[792,624,442,338],[858,666,482,382],[929,711,509,403],[1003,779,565,439],[1091,857,611,461],[1171,911,661,511],[1273,997,715,535],[1367,1059,751,593],[1465,1125,805,625],[1528,1190,868,658],[1628,1264,908,698],[1732,1370,982,742],[1840,1452,1030,790],[1952,1538,1112,842],[2068,1628,1168,898],[2188,1722,1228,958],[2303,1809,1283,983],[2431,1911,1351,1051],[2563,1989,1423,1093],[2699,2099,1499,1139],[2809,2213,1579,1219],[2953,2331,1663,1273]],m=function(){var t=function(t,e){this._el=t,this._htOption=e};return t.prototype.draw=function(t){function e(t,e){var n=document.createElementNS("http://www.w3.org/2000/svg",t);for(var o in e)e.hasOwnProperty(o)&&n.setAttribute(o,e[o]);return n}var n=this._htOption,o=this._el,r=t.getModuleCount();Math.floor(n.width/r),Math.floor(n.height/r),this.clear();var i=e("svg",{viewBox:"0 0 "+String(r)+" "+String(r),width:"100%",height:"100%",fill:n.colorLight});i.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink"),o.appendChild(i),i.appendChild(e("rect",{fill:n.colorLight,width:"100%",height:"100%"})),i.appendChild(e("rect",{fill:n.colorDark,width:"1",height:"1",id:"template"}));for(var a=0;a=1;h--)arguments[h]=arguments[h]*n;else void 0===u&&(arguments[1]*=n,arguments[2]*=n,arguments[3]*=n,arguments[4]*=n);o.apply(this,arguments)}}var r=function(t,e){this._bIsPainted=!1,this._android=a(),this._htOption=e,this._elCanvas=document.createElement("canvas"),this._elCanvas.width=e.width,this._elCanvas.height=e.height,t.appendChild(this._elCanvas),this._el=t,this._oContext=this._elCanvas.getContext("2d"),this._bIsPainted=!1,this._elImage=document.createElement("img"),this._elImage.alt="Scan me!",this._elImage.style.display="none",this._el.appendChild(this._elImage),this._bSupportDataURI=null};return r.prototype.draw=function(t){var e=this._elImage,n=this._oContext,o=this._htOption,r=t.getModuleCount(),i=o.width/r,a=o.height/r,s=Math.round(i),l=Math.round(a); e.style.display="none",this.clear();for(var u=0;u'],s=0;s");for(var l=0;l');a.push("")}a.push(""),n.innerHTML=a.join("");var u=n.childNodes[0],c=(e.width-u.offsetWidth)/2,h=(e.height-u.offsetHeight)/2;c>0&&h>0&&(u.style.margin=h+"px "+c+"px")},t.prototype.clear=function(){this._el.innerHTML=""},t}();o=function(t,e){if(this._htOption={width:256,height:256,typeNumber:4,colorDark:"#000000",colorLight:"#ffffff",correctLevel:c.H},"string"==typeof e&&(e={text:e}),e)for(var n in e)this._htOption[n]=e[n];"string"==typeof t&&(t=document.getElementById(t)),this._htOption.useSVG&&(_=m),this._android=a(),this._el=t,this._oQRCode=null,this._oDrawing=new _(this._el,this._htOption),this._htOption.text&&this.makeCode(this._htOption.text)},o.prototype.makeCode=function(t){this._oQRCode=new e(s(t,this._htOption.correctLevel),this._htOption.correctLevel),this._oQRCode.addData(t),this._oQRCode.make(),this._el.title=t,this._oDrawing.draw(this._oQRCode),this.makeImage()},o.prototype.makeImage=function(){"function"==typeof this._oDrawing.makeImage&&(!this._android||this._android>=3)&&this._oDrawing.makeImage()},o.prototype.clear=function(){this._oDrawing.clear()},o.CorrectLevel=c}(),e.a=o},440:function(t,e,n){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var r=Object.assign||function(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:".video",e=this,n=arguments[1],o=arguments[2];this.callbacks=Object.assign({},l,n),this.player=Object.assign({},u,o),$(t).each(function(t,n){var o=$(n),r=o.attr("data-type"),a=o.attr("data-vid");if("qq_video"===r){var s=e.createPlayer(a,t),l=i(s,2),u=l[0],c=l[1];e.videos.push({type:r,vid:a,index:t,video:u,player:c,container:o})}else if("upyun_video"===r){var h=document.getElementById("_video-"+(t+1));e.videos.push({type:r,vid:null,index:t,video:null,player:h,container:o})}})}},{key:"createPlayer",value:function(t,e){var n=r({},this.config),o=new tvp.VideoInfo;o.setVid(t);var i=new tvp.Player;return n.video=o,n.modId="video-"+(e+1),i.create(n),[o,i]}},{key:"play",value:function(t,e){var n=this,o=t?this.videos.find(function(e){return e.vid===t}):this.videos.find(function(t){return t.index===e});if(!o)return null;o.container.show().css({visibility:"visible"});var r=o.player;setTimeout(function(){n.player.play(r)},500),this.callbacks.play_callback(o)}},{key:"pause",value:function(t,e){var n=t?this.videos.find(function(e){return e.vid===t}):this.videos.find(function(t){return t.index===e});if(!n)return null;var o=n.player;this.player.pause(o),this.callbacks.pause_callback(n)}},{key:"pauseAll",value:function(){var t=this;this.videos.map(function(e,n){t.player.pause(e.player)})}}]),t}();e.a=c}});