webpackJsonp([13],{105:function(e,t,a){"use strict";$(function(){$.fn.extend({carousel:function(e){if(!(e&&e.action&&e.eventType))return!1;e=$.extend({time:0,lazyLoadImg:".dt-carousel-img"},e);var t,a,i=$(document),n=$(this),o=$(e.action),r=0|e.time,s=function(t){var a,i,s,l,u;if(o.removeClass("cur"),o.eq(t).addClass("cur"),n.each(function(e,t){s=$(t),s.hasClass("cur")&&(l=s)}),l){if(u=n.eq(t),a=u.find(e.lazyLoadImg),a.length&&(i=a.attr("data-src"),i&&a.css({"background-image":"url("+i+")"})),n.index(l)!==t){switch(e.animateType){case"move":l.removeClass("cur"),u.addClass("cur");var p,f=$(e.carouselWrap);p=0!==t?"-"+t+"00%":"0%",f.stop(!0,!0),f.animate({left:p});break;default:if(e.fadeElement){var m=l.find(e.fadeElement),v=u.find(e.fadeElement);m.stop(!0,!0),v.stop(!0,!0),l.removeClass("cur"),u.addClass("cur"),m.css({display:"block"}).fadeOut(1e3),v.css({display:"none"}).fadeIn(1e3)}else l.stop(!0,!0),u.stop(!0,!0),l.removeClass("cur").css({display:"block"}),u.addClass("cur").css({display:"none"}),l.fadeOut(1e3),u.fadeIn(1e3)}e.callback&&e.callback(t,l,u,d,c)}0!==r&&d()}},c=function(){clearTimeout(t)},d=function l(){clearTimeout(t),t=setTimeout(function(){var t=$(e.action+".cur"),i=o.index(t[0]);a=i===n.length-1?0:i+1,s(a),l()},r)};e.left&&e.right&&i.delegate(e.left,"click",function(t){var i=$(e.action+".cur"),c=o.index(i[0]);a=0===c?n.length-1:c-1,s(a),0!==r&&d()}).delegate(e.right,"click",function(t){var i=$(e.action+".cur"),c=o.index(i[0]);a=c===n.length-1?0:c+1,s(a),0!==r&&d()}),i.delegate(e.action,e.eventType,function(e){var t=($(this),o.index(this));s(t)}),0!==r&&d()}})})},17:function(e,t,a){"use strict";!function(){$.G&&!$.G.reTop&&($.G.reTop=function(){var e,t=$(window),a=t.width(),i=t.height(),n=$.browser,o=(n.msie&&"6.0"===n.version,n.webkit,!1),r=$("#dt-side-combo"),s=$("#dt-backtotop");if(!s.length){r=$('
').sidepop({id:"dt-side-combo",dockSide:"right",width:44,height:44,scroll:1,departure:10,baseline:"bottom",bias:80,isFixed:!0,scrollDelayTime:100,zIndex:1e4,btnset:0}),r=r.parent().parent(),r.addClass("vh");$("#dt-side-combo");s=$("#dt-backtotop"),s.click(function(e){e.preventDefault();o=!0,$("body,html").animate({scrollTop:0},200,function(){o=!1}),r.css("display","none")});var c=function(a){clearTimeout(e),o||(e=window.setTimeout(function(){var e=t.scrollTop();e>100?r.stop().css({display:"block"}).animate({opacity:1},300):r.stop().animate({opacity:0},300,function(){r.css("display","none")}),a&&$({}).delay(300).queue(function(){r.removeClass("vh")})},100))};t.scroll(c),c(!0);var d=function(){var e=17,t=a+e;if(1120>=t||t>1262&&1336>=t)r.css({left:"auto",right:10,marginLeft:0});else{var i=1262>=t?490:612;r.css({left:"50%",marginLeft:i})}};d(),t.resize(function(){a=t.width(),i=t.height(),d()})}},$(function(){$.G.reTop()}))}()},26:function(e,t,a){"use strict";!function(e){var t={type:"",id:"",commentId:""};e.extend(e.fn,{feedback:function(a){var i=e.extend(t,a),n=e(this);if(n.length&&0!=i.id&&""!=i.id){var o,r=!!e.G.getUSERID(),s={article:204,feed_video:207,atlas:205,blog:201,articleComment:203,atlasComment:206,feedVideoComment:206,blogComment:206},c={article:window.location.protocol+"//"+window.location.host+"/article/?id="+i.id,articleComment:window.location.protocol+"//"+window.location.host+"/article/?id="+i.id+"&comment_id="+i.commentId,feed_video:window.location.protocol+"//"+window.location.host+"/p/feedvideo/?id="+i.id,feedVideoComment:window.location.protocol+"//"+window.location.host+"/p/feedvideo/?id="+i.id+"&comment_id="+i.commentId,atlas:window.location.protocol+"//"+window.location.host+"/p/atlas/?id="+i.id,atlasComment:window.location.protocol+"//"+window.location.host+"/p/atlas/?id="+i.id+"&comment_id="+i.commentId,blog:window.location.protocol+"//"+window.location.host+"/blog/?id="+i.id,blogComment:window.location.protocol+"//"+window.location.host+"/blog/?id="+i.id+"&comment_id="+i.commentId},d=s[i.type],l=c[i.type],u="",p=function(t){var a=e("#dt-report-dialog");if(0==a.length){var i='\n
\n
\n
\n
\n - 抄袭/未授权转载
\n - 淫秽低俗不能忍!
\n - 广告!垃圾内容!
\n - 骂人是不对的!
\n - 其他
\n
\n
\n
\n \n
\n
确定\n
';e("#win-house").append(i),t()}else t()},f=function(){var t=e("#dt-report-dialog"),a=t.find(".report-reason"),i=t.find(".report-reason input"),n=t.find(".report-detail");i.val(""),t.off("click"),t.find(".report-reason").removeClass("active"),t.on("click",".report-reason",function(){e(this).hasClass("active")?e(this).removeClass("active"):e(this).addClass("active")}),t.on("click",".report-reason .reason-item",function(t){t.stopPropagation(),t.preventDefault(),i.val(e(this).text()),a.removeClass("active"),"其他"==i.val()?n.show():n.hide()}),t.on("click",".submit",function(){var e=n.find("textarea").val();u=""==e?i.val():e,""!=u&&(SUGAR.PopOut.closeMask(),m(t,i))})},m=function(t){var a=t.find(".submit"),n=t.find(".report-reason input");if(!a.hasClass("locked")){a.addClass("locked");var r={nickname:i.nickname,flag:d,msg:u,refer_url:l};e.ajax({url:"/napi/feedback/",type:"POST",data:r,success:function(t){1===t.status?(n.val(""),clearTimeout(o),o=setTimeout(function(){SUGAR.PopOut.alert('举报成功
')},500),e({}).delay(1500).queue(function(){SUGAR.PopOut.closeMask()})):(clearTimeout(o),o=setTimeout(function(){SUGAR.PopOut.alert('举报失败 请稍候再试
')},500),e({}).delay(1500).queue(function(){SUGAR.PopOut.closeMask()}))}}).always(function(){a.removeClass("locked")})}};return n.on("click",function(){i.nickname=r?USER.username:"",p(function(){f(),SUGAR.PopOut.alert(["举报",e("#dt-report-dialog")],1)})}),n}}})}($)},5:function(e,t,a){"use strict";var i=a(2),n=a(4),o=navigator.userAgent.toLowerCase().indexOf("chrome")>-1;n.registerHelper("ifCond",function(e,t,a,i){switch(t){case"==":return e==a?i.fn(this):i.inverse(this);case"===":return e===a?i.fn(this):i.inverse(this);case"<":return a>e?i.fn(this):i.inverse(this);case"<=":return a>=e?i.fn(this):i.inverse(this);case">":return e>a?i.fn(this):i.inverse(this);case">=":return e>=a?i.fn(this):i.inverse(this);case"!=":return e!=a?i.fn(this):i.inverse(this);case"&&":return e&&a?i.fn(this):i.inverse(this);case"||":return e||a?i.fn(this):i.inverse(this);default:return i.inverse(this)}}),n.registerHelper("math",function(e,t,a,i){return e=parseFloat(e),a=parseFloat(a),{"+":e+a,"-":e-a,"*":e*a,"/":e/a,"%":e%a}[t]}),n.registerHelper("if",function(e,t){return e?t.fn(this):t.inverse(this)}),n.registerHelper("duitang",function(e){return"http://www.duitang.com/"+e}),n.registerHelper("timePattern",function(e){var t=(new Date).getTime(),a=1e3*e-t;if(a>0){var i=Math.floor(a/1e3/3600/24),n=Math.floor(a/1e3/3600-24*i),o=Math.floor((a-1e3*(60*n*60-24*i*3600))/1e6/60);return i+"天"+n+"时"+o+"分"}}),n.registerHelper("promotionDone",function(e,t){var a=(new Date).getTime(),i=1e3*e-a;return 0>i||t?"done":""}),n.registerHelper("promotionUrl",function(e,t,a){var i=(new Date).getTime(),n=1e3*t-i;return 0>n||a?"javascript:;":"/shopping/temaihui/detail/"+e+"/?__urlopentype=pageweb"}),n.registerHelper("taobaoUrl",function(e,t,a){var i=(new Date).getTime(),n=1e3*t-i;return 0>n||a?"javascript:;":e}),n.registerHelper("truncate",function(e,t){var a=$.trim(e).substring(0,t);return a}),n.registerHelper("pcjump",function(e,t){var a=(new Date).getTime(),i=1e3*e-a,n=navigator.userAgent.toString().toLowerCase(),o=(!!n.match(/ipad/gi),!!n.match(/iphone/gi)),r=!!n.match(/android/gi);return 0>i||t?"target=_self":o||r?"":"target=_blank"}),n.registerHelper("dtImageTrans",function(e,t,a,n,r){var s,c=$.trim(e).replace(/^http(s)?:\/\//gi,""),c=c.split("/"),d=c[0],c=c[1];return-1==d.indexOf("duitang.com")||!c||"uploads"!=c&&"misc"!=c?e:(t?(a=a||0,n=n||0,r=r?"_"+r:"",s=i.dtImageTrans(e).replace(/(\.[a-z_]+)$/gi,".thumb."+a+"_"+n+r+"$1")):s=e.replace(/(?:\.thumb\.\w+|\.[a-z]+!\w+)(\.[a-z_]+)$/gi,"$1"),o||(s=s.replace(/_webp$/i,"")),s)}),n.registerHelper("plus",function(e,t){return e+t}),n.registerHelper("exist",function(e,t){return e?t.fn(this):t.inverse(this)}),n.registerHelper("HbCut",function(e,t){return i.cut(e,t)}),n.registerHelper("HbContent",function(e,t){var a=i.trimLink(e),n=a;return n}),n.registerHelper("HbAddParam",function(e,t,a){return i.addParam(e,t,a)}),n.registerHelper("HbAddParamOpenTypePageWeb",function(e){return i.addParam(e,"__urlopentype","pageweb")}),n.registerHelper("HbInc",function(e){return parseInt(e)+1}),n.registerHelper("htmlescape",function(e){e=n.Utils.escapeExpression(e);var t=/(\n)/gi;return t.test(e)&&(e=e.replace(t,"
").replace(/\r/,"").replace(/\s/gi," ")),new n.SafeString(e)})},506:function(e,t,a){"use strict";a(17),a(105);var i=a(4);a(5);var n=a(507),o=n.fetchDynamicList,r=n.fetchFeedList;a(65),a(26),a(508);var s=a(2);$(function(){function e(){$.ajax({url:"/napi/people/badge/user/list/by_top/",type:"GET",mysuccess:function(e){1===e.status&&(f(e),h())}}).always(function(){})}function t(){$.ajax({url:"/napi/ad/banner/list/",type:"GET",data:{ad_id:"WEB001"},mysuccess:function(e){1===e.status&&d(e)}}).always(function(){})}function a(e){e.find(".dynamic-feed-item").each(function(e,t){var a=$(t);if(!a.hasClass("hasExposure")){var i=a.visible(!0,!1,"vertical");i&&(a.addClass("hasExposure"),s.digy("FEED","EXPOSE",n(a)))}})}function n(e){var t={scene_id:"selection"==I?"1":"2",type:e.data("type"),id:e.data("id"),feed_id:e.data("feedid"),trace_id:e.data("traceid"),trace_info:e.data("traceinfo")};return t}function c(e){var t="",a="__urlopentype=pageweb",i=new RegExp("\\?"+a+"(=[^&]*)?"),n=new RegExp("\\&"+a+"(=[^&]*)?");return t=e.replace("duitang://","https://").replace(/\/life\_artist\/article\//g,"/article/").replace(/\/atlas\/detail\//g,"/p/atlas/").replace(/\/album\/detail\//g,"/album/").replace(i,"?").replace(n,"").replace(/\?&/,"?").replace(/\?$/,"")}function d(e){var t=$("#carousel-tmpl").html(),a=i.compile(t);e.data.length=e.data.object_list.length+"00%;",$(e.data.object_list).each(function(e,t){t.image_url=$.G.dtImageTrans(t.image_url,!0,760,380,"c"),t.link=c(t.target)});var n=a(e.data);$("#dt-carousel").empty().append(n),$(".dt-carousel-item").carousel({action:".dt-carousel-point",eventType:"click",time:6e3,fadeElement:".dt-carousel-img",left:".dt-carousel-action-left",right:".dt-carousel-action-right",animateType:"move",carouselWrap:".dt-carousel-content",callback:function(e,t,a,i,n){var o=a.find(".dt-carousel-title").html(),r=$(".dt-carousel-action-title");r.html(o),$(".dt-carousel-item").mouseover(function(){n()}).mouseout(function(){i()})}})}function l(e,t,a){var i=$(".selection-detail"),n=i.find(".content-detail");if(i.attr("locked",1),t)if(USER.ID)var o="/napi/vienna/feed/list/by_recommend/";else var o="/napi/vienna/feed/list/by_common/";else if(USER.ID)var o="/napi/vienna/feed/list/by_read/";else var o="/napi/vienna/feed/list/by_common/";var s={url:o,first:t,refresh:a};r(s,function(o,r){return i.find(".my-loading").hide(),e&&i.attr("locked",0),n.find(".loading").remove(),t&&(i.find(".view-more").show(),0===r.feedList.length)?void l(void 0,!1,!0):(0===r.feedList.length?(n.html('暂无内容
'),i.attr("nomore",1).find(".view-more").hide()):(a&&n.empty(),n.append(o),i.find(".view-more").show(),p($(".more-action-list .report"))),0==r.more&&i.attr("nomore",1).find(".view-more").hide(),v(),void $(".more-action").each(function(e){}))})}function u(e,t,a){var i=$(".attention-detail"),n=i.find(".content-detail");if(i.attr("locked",1),USER.ID){var r="/napi/vienna/useractivity/followee/",s={url:r,first:t,refresh:a};o(s,function(t,o){i.find(".my-loading").hide(),n.find(".loading").remove(),e&&i.attr("locked",0),0===o.dynamicList.length?(n.html('暂无内容
'),i.attr("nomore",1).find(".view-more").remove()):(a&&n.empty(),n.append(t),i.find(".view-more").show(),p($(".more-action-list .report"))),0==o.more&&i.attr("nomore",1).find(".view-more").remove(),v()})}else window.location.href="/login/"}function p(e){e.each(function(e,t){var a=$(t),i=a.closest(".dynamic-feed-item"),n=i.data("type"),o=i.data("id");a.feedback({type:n,id:o})})}function f(e){var t=$("#daren-tmpl").html(),a=i.compile(t);$(e.data.object_list).each(function(e,t){t.avatar=$.G.dtImageTrans(t.avatar,!0,80,80,"c"),this.identity.indexOf("personal_certify")>=0?this.isIdentity=!0:this.isIdentity=!1,"1"==t.friendShip?t.isFollowed=!0:t.isFollowed=!1});var n=a(e.data);$(".dt-daren-list").empty().append(n)}function m(e){0==e.find(".view-more").length&&e.append($('查看更多
'))}function v(){var e;x.on("mouseenter",".gif-img",function(t){var a=$(t.target),i=a.attr("src");e=setTimeout(function(){/\.gif_jpeg/.test(i)&&(i=i.replace(".gif_jpeg",".gif"),a.parent(".gif-img").addClass("move"),a.attr("src",i))},200)}),x.on("mouseleave",".gif-img",function(t){var a=$(t.target),i=a.attr("src");clearTimeout(e),/\.gif$/.test(i)&&(i=i.replace(".gif",".gif_jpeg"),a.parent(".gif-img").removeClass("move"),a.attr("src",i))})}function h(){x.off("click",".daren-follow").on("click",".daren-follow",function(e){var t,a=$(e.target),i=a.data("userid");t=a.hasClass("active")?!0:!1,$.ajax({url:t?"/napi/people/unfollow/":"/napi/people/follow/",type:"POST",data:{user_id:i},success:function(e){1===e.status&&(t?(a.removeClass("active"),a.text("关注")):(a.addClass("active"),a.text("已关注")))}})})}function g(){if("selection"==I){l(!0,!1);var e=$(".selection-detail");e.find(".content-detail").append(''),e.find(".view-more").remove()}else{u(!0,0);var e=$(".attention-detail");e.find(".content-detail").append(''),e.find(".view-more").remove()}}function _(e,t,a){var i=e?{resource_type:a,resource_id:t}:{favorite_id:t},n=e?"/napi/favorite/add/":"/napi/favorite/remove/";return new Promise(function(e,t){$.ajax({url:n,type:"POST",data:i,mysuccess:function(t){e(t)}})})}function b(e,t,a){var i={category:a,object_id:t},n=e?"/napi/like/":"/napi/unlike/";return new Promise(function(e,t){$.ajax({url:n,type:"POST",data:i,mysuccess:function(t){e(t)}})})}function y(){$.ajax({url:"/napi/vienna/useractivity/update_count/",method:"GET",success:function(e){1===e.status&&e.data.count>0&&$(".content-tabs").find(".attention").addClass("unread").find("span").html("新动态")}})}var w,k,x=$(document),T=!1,I="selection",C=!!$.G.getUSERID(),E="https://b-ssl.duitang.com/uploads/item/201804/23/20180423144103_3RcMy.png",j="https://b-ssl.duitang.com/uploads/item/201804/23/20180423141044_kt5Rj.png",q="https://b-ssl.duitang.com/uploads/item/201804/23/20180423122004_sYcGR.png",G="https://b-ssl.duitang.com/uploads/item/201804/23/20180423141044_YizTc.png",S={},D=void 0;$("#dt-carousel").on("a","mousedown",function(){var e=$(this),t=e.closest("#dt-carousel").find("a"),a=t.index(e);$.G.gaq("/_trc/NIdex/_/focus_"+a+"__"+$(this).attr("href"))}),$("#dt-slider").on("a","mousedown",function(e){$.G.gaq("/_trc/NIdex/_/story_entry__"+$(this).attr("href"))}),x.on(".dt-woo-list a","mousedown",function(e){$.G.gaq("/_trc/NIdex/_/category_entry__"+$(this).attr("href"))}),$("#dt-enter").on("a","mousedown",function(){var e=$(this),t=e.closest("#dt-enter").find("a"),a=t.index(e);$.G.gaq("/_trc/NIdex/_/guide_entry_"+a)}),$("#dt-hot").on("a","mousedown",function(){$.G.gaq("/_trc/NIdex/_/hot_activ_entry__"+$(this).attr("href"))}),$(".dt-album").on("a","mousedown",function(){$.G.gaq("/_trc/NIdex/_/albums_entry__"+$(this).attr("href"))}),$(".wxlink").on("mouseover",function(e){clearTimeout(w);var t=$(this).position().left+10,a=$(this).position().top+25,i=$('');i.appendTo("body").fadeIn(),$(".weixinpopout").css({position:"absolute",top:a,left:t})}),$(".wxlink").on("mouseout",function(e){w=setTimeout(function(){$(".weixinpopout").animate({opacity:0},function(){$(this).remove()})},400)}),x.find("a").each(function(e,t){var a=$(t);a.data("href",a.attr("href"))}),x.on("body > a","click",function(){var e=$(this).attr("href");$.G.gaq("/_trc/Error/_/adclick_to_"+e)}),x.on("mousedown","a",function(e){var t=$(this),a=t.attr("href"),i=t.data("href");i&&a!=i&&$.G.gaq("/_trc/Error/_/adclick_change_"+a)}),x.on("click",".dt-daren .change-daren",function(){$.ajax({url:"/napi/people/badge/user/list/by_random/",type:"GET",success:function(e){f(e),h()}})}),x.on("click",".view-more",function(){g()}),window.setTimeout(function(){for(var e=$("body").children(),t=$(window).width(),a=0;5>a;a++){var i=e.eq(-a-1);if(i.hasClass("dn")||"script"==i.get(0).tagName.toLowerCase())break;if(!i.hasClass("dt-side-combo")&&!i.hasClass("blockUI")&&i.outerWidth()>0&&i.offset().left=x.height()-200;"1"!=i&&"1"!=t&&n&&"0"==e.attr("locked")&&g()}),x.on("click",".digy-visit",function(e){var t=$(e.target).closest(".dynamic-feed-item");s.digy("FEED","VISIT",n(t))}),x.on("click",".favorite-action",function(e){var t=$(this),a=t.parent().data("type"),i=t.parent().data("id"),o=t.data("favoriteid"),r=!t.hasClass("active");return C?void _(r,r?i:o,a).then(function(e){t.toggleClass("active").data("favoriteid",e.data.id);var a=r?q:G;t.find("img").attr("src",a);var i=parseInt(t.find("span").text()),o=i?r?i+1:1==i?"收藏":i-1:1;if(t.find("span").text(o),r){var c=t.closest(".dynamic-feed-item"),d=n(c);d.bhv_value="collect",s.digy("FEED","BEHAVIOR",d)}}):void SUGAR.PopOut.login()}),x.on("click",".like-action",function(e){var t,a=this,i=$(this),o=i.parent().data("type");switch(o){case"article":t=3;break;case"atlas":t=5;break;case"feed_video":t=6}var r=i.parent().data("id"),c=!i.hasClass("active");return C?void b(c,r,t).then(function(e){i.toggleClass("active");var t=c?E:j;i.find("img").attr("src",t);var o=parseInt($(a).find("span").text()),r=o?c?o+1:1==o?"赞":o-1:1;if(i.find("span").text(r),c){var d=i.closest(".dynamic-feed-item"),l=n(d);l.bhv_value="like",s.digy("FEED","BEHAVIOR",l)}}):void SUGAR.PopOut.login()}),x.on("mouseenter",".more-action",function(){D=$(this).parent().parent().find(".more-action-list"),D.on("mouseenter",function(){clearTimeout(S)}),D.on("mouseleave",function(){S=setTimeout(function(){D.hide().animate({height:0},100)},200)}),clearTimeout(S),"none"==D.css("display")&&D.show().animate({height:140},100)}),x.on("mouseleave",".more-action",function(){S=setTimeout(function(){D.hide().animate({height:0},100)},200)}),l(void 0,!0),USER.ID&&(u(void 0,1),T=!0),e(),y(),t()})},507:function(e,t,a){"use strict";function i(e,t){return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function n(e){if(Array.isArray(e)){for(var t=0,a=Array(e.length);t/g,">"),t+=e[a]}return t}var r=i(["",""],["",""]),s=a(0),c=a(2),d=1,l=2,u=3,p=4,f=5,m="long-img",v="gif-img",h="",g="https://b-ssl.duitang.com/uploads/item/201804/23/20180423144103_3RcMy.png",_="https://b-ssl.duitang.com/uploads/item/201804/23/20180423141044_kt5Rj.png",b="https://b-ssl.duitang.com/uploads/item/201804/23/20180423122004_sYcGR.png",y="https://b-ssl.duitang.com/uploads/item/201804/23/20180423141044_YizTc.png",w=function(){var e=s(".people-avatar img").attr("src"),t=s(".people-name a").text(),a=s("#people-detail").data("userid");return{avatar:e,username:t,userId:a}},$={start:Date.now(),limit:18,more:1,dynamicList:[]},k={start:0,limit:18,more:1,feedList:[]},x=function(e){var t;k.start=e.next_start,k.more=e.more,(t=k.feedList).push.apply(t,n(e.object_list.map(G)))},T=function(e){var t=(e.more,e.next_start,e.object_list);$.start=e.next_start,$.more=e.more,S(t)},I=function(e){var t=e.num,a=e.show_blog_volist,i=e.album_name,n=e.album_id,o=e.sender,r=a.slice(0,6).map(function(e){var t=e.blog_id,a=e.photo;return{blog_id:t,photo_path:a.path}});o.avatar=c.dtImageTrans(path,!0,200,200,"c");var s={favorite_count:e.favorite_count,favorite_id:e.favorite_id,comment_count:e.comment_count,like_count:e.like_count,like_id:e.like_id},l=parseInt(t),u=l>6,p=l-6,f={type:d,album_name:i,blogs:r,haveMore:u,moreNum:p,id:n,sender:o,social:s};return f},C=function(e){var t=e.atlas,a=e.id,i=e.trace_info,n=t.blogs,o=t.album,r=t.id,s=t.desc,d=t.sender,u=(o.name,o.count,{favorite_count:t.favorite_count,favorite_id:t.favorite_id,comment_count:t.comment_count,like_count:t.like_count,like_id:t.like_id}),p=1==n.length;d.avatar=c.dtImageTrans(d.avatar,!0,200,200,"c");var f=n.slice(0,9).map(function(e){var t=e.id,a=e.photo,i=a.height,n=a.width,o=a.path,r="",s=h;if(p){var d=parseInt(i*(400/n));d>600?(r=c.dtImageTrans(o,!0,400,670,"a"),s=m):204>d?(r=c.dtImageTrans(o,!0,400,227,"c"),s=D(o)):(r=c.dtImageTrans(o,!0,400,d,"c"),s=D(o))}else r=o,s=D(o);return{blog_id:t,photo_path:r,img_type:s}});p&&(f=f[0]);var v={type:l,album_desc:s,blogs:f,singleImg:p,feed_id:a,trace_info:i,id:r,sender:d,social:u};return v},E=function(e){var t=e.feed_video,a=e.id,i=e.trace_info,n=t.id,o=t.title,r=t.upload_video,s=t.sender,d=r.cover,l={favorite_count:t.favorite_count,favorite_id:t.favorite_id,comment_count:t.comment_count,like_count:t.like_count,like_id:t.like_id};s.avatar=c.dtImageTrans(s.avatar,!0,200,200,"c");var p=d.photo_path,f={type:u,feed_id:a,trace_info:i,id:n,title:o,photo_path:p,sender:s,social:l};return f},j=function(e){var t=e.id,a=(e.resource_info,e.trace_info),i=e.article,n=i.cover,o=i.title,r=i.id,s=i.sender,d={favorite_count:i.favorite_count,favorite_id:i.favorite_id,comment_count:i.comment_count,like_count:i.like_count,like_id:i.like_id};s.avatar=c.dtImageTrans(s.avatar,!0,200,200,"c");var l=n.cover_desc,u=n.photo_path,f={type:p,cover_desc:l,photo_path:u,title:o,feed_id:t,trace_info:a,id:r,sender:s,social:d};return f},q=function(e){var t=e.feed_vo_list,a=t[0],i=a.id,n=a.trace_info,o=t[0].atlas,r=o.blogs,s=o.album,d=o.id,l=o.desc,u=o.sender;s.name,s.count;u.avatar=c.dtImageTrans(u.avatar,!0,200,200,"c");var p={favorite_count:t[0].atlas.favorite_count,favorite_id:t[0].atlas.favorite_id,comment_count:t[0].atlas.comment_count,like_count:t[0].atlas.like_count,like_id:t[0].atlas.like_id},v=1==r.length,g=r.slice(0,9).map(function(e){var t=e.id,a=e.photo,i=a.height,n=a.width,o=a.path,r="",s=h;if(v){var d=parseInt(i*(400/n));d>600?(r=c.dtImageTrans(o,!0,400,670,"a"),s=m):204>d?(r=c.dtImageTrans(o,!0,400,227,"c"),s=D(o)):(r=c.dtImageTrans(o,!0,400,d,"c"),s=D(o))}else r=o,s=D(o);return{blog_id:t,photo_path:r,img_type:s}});v&&(g=g[0]);var _={type:f,album_desc:l,blogs:g,singleImg:v,feed_id:i,trace_info:n,id:d,sender:u,social:p};return _},G=function(e){var t=e.date_str,a=e.resource_info,i=void 0,n={};if(!e.type)switch(e.resource_type){case"atlas":e.type=l,e.data=e,t=a;break;case"article":e.data=e,e.type=p,t=a;break;case"feed_video":e.data=e,e.type=u,t=a}switch(e.type){case d:n=I(e.data),i="album";break;case l:n=C(e.data),i="atlas";break;case u:n=E(e.data),i="feed_video";break;case p:n=j(e.data),i="article";break;case f:n=q(e.data),i="atlas"}return Object.assign({},n,{date_str:t,data_type:i,resource_info:a})},S=function(e){var t;(t=$.dynamicList).push.apply(t,n(e.map(G)))},D=function(e){var t="";return/\.gif/g.test(e)&&(t=v),t},H=function(e,t){var a=e.refresh;k.feedList=[],s.ajax({url:e.url,type:"GET",data:{start:a?0:k.start,limit:k.limit},success:function(e){var a=e.status,i=e.data,n=i.more,o=i.object_list;if(1===a)if(x(i),1===n&&0===o.length);else{var r=W(k);t(r,k)}}})},R=function Q(e,t){var a=e.first,i=e.refresh;$.dynamicList=[],s.ajax({url:e.url,type:"GET",data:{start:i?Date.now():$.start,limit:$.limit,first:i?1:a?1:0},success:function(a){var i=a.status,n=a.data,o=n.more,r=n.object_list;if(1===i)if(T(n),1===o&&0===r.length)Q(e,t);else{var s=B($);t(s,$)}}})},z=function(e,t){var a=e.id,i=e.avatar,n=e.username,o=e.is_certify_user;return'\n "},A=function(e){var t=e.social,a=void 0,i=void 0,n=void 0,o=void 0;switch(e.data_type){case"atlas":o=e.singleImg?e.blogs.photo_path:e.blogs[0].photo_path,n=e.album_desc,a="http://service.weibo.com/share/share.php?appkey=1152390549&title="+n+"&url=http%3A//"+location.host+"/p/atlas/%3Fid%3D"+e.id+"&pic="+o,i="http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url=http%3A//"+location.host+"/p/atlas/%3Fid%3D"+e.id+"&title="+n+"&pics="+o;break;case"feed_video":o=e.photo_path,n=e.title,a="http://service.weibo.com/share/share.php?appkey=1152390549&title="+n+"&url=http%3A//"+location.host+"/p/feedvideo/%3Fid%3D"+e.id+"&pic="+o,i="http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url=http%3A//"+location.host+"/p/feedvideo/%3Fid%3D"+e.id+"&title="+n+"&pics="+o;break;case"article":o=e.photo_path,n=e.title,a="http://service.weibo.com/share/share.php?appkey=1152390549&title="+n+"&url=http%3A//"+location.host+"/article/%3Fid%3D"+e.id+"&pic="+o,i="http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url=http%3A//"+location.host+"/article/%3Fid%3D"+e.id+"&title="+n+"&pics="+o}return'\n
\n
\n
\n
'+(t.like_count>0?t.like_count:"赞")+'\n
\n\n
\n
\n
'+(t.favorite_count>0?t.favorite_count:"收藏")+'\n
\n
\n
\n
更多\n
\n
\n\n
\n
'},L=function(e,t){var a=t.singleImg;return a?O(e,t):P(e,t)},O=function(e,t){var a=t.date_str,i=t.album_desc,n=t.blogs,s=t.feed_id,c=t.trace_info,d=t.id,l=t.sender,u=n.photo_path,p=(n.blog_id,n.img_type),f=u;p==v&&(f=u+"_jpeg");var m=o(r,i);return'\n
\n '+z(l,a)+'\n
'+m+'
\n
\n
\n \n \n
\n '+A(t)+"\n
"},P=function(e,t){var a=t.date_str,i=t.album_desc,n=t.blogs,s=t.feed_id,d=t.trace_info,l=t.id,u=t.sender,p=o(r,i),f=n.reduce(function(e,t,a){var i=t.photo_path,n=(t.blog_id,t.img_type),o=c.dtImageTrans(i,!0,300,300,"c");n==v&&(o+="_jpeg");var r=a%3===0,s=e+('\n \n ');return s},"");return'\n
\n '+z(u,a)+'\n
'+p+'
\n
\n
\n '+f+"\n
\n \n
\n "+A(t)+"\n
\n "},U=function(e,t){var a=t.date_str,i=t.album_name,n=t.blogs,o=t.haveMore,r=t.moreNum,s=t.id,d=t.sender,l=r+6,u=n.reduce(function(e,t,a){var i=t.photo_path,n=t.blog_id,s=c.dtImageTrans(i,!0,300,300,"c"),d=a%3===0,l=e+('\n \n '+(5===a&&o?'+ '+r+"
":"")+"\n ");return l},"");return'\n
\n '+z(d,a)+'\n
\n 更新专辑 \n '+i+'\n
\n
\n '+u+'\n
\n
\n '+(r+6>9?'":"")+"\n \n
\n "+A(t)+"\n "},F=function(e,t){var a=t.feed_id,i=t.trace_info,n=t.date_str,o=t.title,r=t.photo_path,s=t.id,d=t.sender,l=c.dtImageTrans(r,!0,400,228,"c");return'\n
\n '+z(d,n)+'\n
'+o+'
\n
\n
\n '+A(t)+"\n
";
},M=function(e,t){var a=t.date_str,i=(t.cover_desc,t.photo_path),n=t.title,o=t.feed_id,r=t.trace_info,s=t.id,d=t.sender,l=c.dtImageTrans(i,!0,400,228,"c");return/\.gif$/.test(l)&&(l=l.replace(/\.gif$/,".gif_jpeg")),'"},N=function(e,t){var a=t.singleImg;return a?O(e,t):P(e,t)},W=function(e){var t=e.feedList,a=t.reduce(function(e,t){var a=t.type,i="";switch(a){case d:i=U(w,t);break;case l:i=L(w,t);break;case u:i=F(w,t);break;case p:i=M(w,t);break;case f:i=N(w,t)}return e+i},"");return a},B=function(e){var t=e.userInfo,a=e.dynamicList,i=a.reduce(function(e,a){var i=a.type,n="";switch(i){case d:n=U(t,a);break;case l:n=L(t,a);break;case u:n=F(t,a);break;case p:n=M(t,a);break;case f:n=N(t,a)}return e+n},"");return i};e.exports={fetchDynamicList:R,fetchFeedList:H}},508:function(e,t,a){"use strict";!function(e){var t=e(window);e.fn.visible=function(a,i,n,o){if(!(this.length<1)){n=n||"both";var r=this.length>1?this.eq(0):this,s="undefined"!=typeof o&&null!==o,c=s?e(o):t,d=s?c.position():0,l=r.get(0),u=c.outerWidth(),p=c.outerHeight(),f=i===!0?l.offsetWidth*l.offsetHeight:!0;if("function"==typeof l.getBoundingClientRect){var m=l.getBoundingClientRect(),v=s?m.top-d.top>=0&&m.top=0&&m.top
0&&m.bottom<=p+d.top:m.bottom>0&&m.bottom<=p,g=s?m.left-d.left>=0&&m.left=0&&m.left0&&m.right0&&m.right<=u,b=a?v||h:v&&h,y=a?g||_:g&&_,b=m.top<0&&m.bottom>p?!0:b,y=m.left<0&&m.right>u?!0:y;if("both"===n)return f&&b&&y;if("vertical"===n)return f&&b;if("horizontal"===n)return f&&y}else{var w=s?0:d,$=w+p,k=c.scrollLeft(),x=k+u,T=r.position(),I=T.top,C=I+r.height(),E=T.left,j=E+r.width(),q=a===!0?C:I,G=a===!0?I:C,S=a===!0?j:E,D=a===!0?E:j;if("both"===n)return!!f&&$>=G&&q>=w&&x>=D&&S>=k;if("vertical"===n)return!!f&&$>=G&&q>=w;if("horizontal"===n)return!!f&&x>=D&&S>=k}}}}(jQuery)},65:function(e,t,a){"use strict";$(function(){var e=$(".wrap-siderbar"),t=$(".main-list-content .right-content"),a=$(window),i=function(e,t){$(".app-download-guide.side").sidepop({id:"app-download-guide",width:e,height:t,dockSide:1,departure:"center",baseline:"top",bias:100,scroll:1,seat:!0,isFixed:!0,zIndex:101,btnset:0})};if(e.length>0){var n='\n
\n
';e.append(n),i(336,280),a.resize(function(){$(".app-download-guide:not(.side,.top)").parent().remove(),$(".app-download-guide:not(.side,.top)").length>0||(e.append(n),i(336,280))})}if(t.length>0){var o='\n
\n
';t.append(o),i(200,200),a.resize(function(){$(".app-download-guide:not(.side,.top)").parent().remove(),$(".app-download-guide:not(.side,.top)").length>0||(t.append(o),i(200,200))})}})}},[506]);