var NEWS_FEED=function(){"use strict";Date.now||(Date.now=function(){return+new Date}),Function.prototype.bind||(Function.prototype.bind=function(e){if("function"!=typeof this)throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");var t=Array.prototype.slice.call(arguments,1),n=this,i=function(){},r=function(){return n.apply(this instanceof i?this:e,t.concat(Array.prototype.slice.call(arguments)))};return this.prototype&&(i.prototype=this.prototype),r.prototype=new i,r});var e=function(n){var e,i=[],t=document,r=t.documentElement,o=r.doScroll,a="DOMContentLoaded",s="addEventListener",l="onreadystatechange",c="readyState",u=(o?/^loaded|^c/:/^loaded|c/).test(t[c]);function d(e){for(u=1;e=i.shift();)e()}return t[s]&&t[s](a,e=function(){t.removeEventListener(a,e,!1),d()},!1),o&&t.attachEvent(l,e=function(){/^c/.test(t[c])&&(t.detachEvent(l,e),d())}),n=o?function(t){self!=top?u?t():i.push(t):function(){try{r.doScroll("left")}catch(e){return setTimeout(function(){n(t)},50)}t()}()}:function(e){u?e():i.push(e)}},h=e();function a(e,t,n,i){i=!0===i;var r=this;if(window.addEventListener)return e.addEventListener(t,function(e){n.call(r,e)},i);e.attachEvent("on"+t,function(){var e=window.event;e.target=e.srcElement,n.call(r,e)})}function s(e,t,n){if(window.removeEventListener)return e.removeEventListener(t,n,!1);e.detachEvent("on"+t,n)}function p(e){var t="QIHOO_FEED_CSS",n=document.getElementById(t);if(null==n){var i=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",r.id=t,i.appendChild(r),n=document.getElementById(t)}n.styleSheet?n.styleSheet.cssText+=e:n.appendChild(document.createTextNode(e))}function r(e){return"[object Array]"===Object.prototype.toString.call(e)}function o(e){return"[object Object]"===Object.prototype.toString.call(e)}function l(e){return"[object String]"===Object.prototype.toString.call(e)}function m(e){if(r(e))return 0===e.length;if(l(e))return""===e;if(o(e)){var t=0;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){t++;break}return 0===t}return!1}function _(e){return null===e||e===undefined}function t(){function e(e){var t,n=1,i=0;if(e)for(n=0,t=e.length-1;0<=t;t--)n=0!=(i=266338304&(n=(n<<6&268435455)+(i=e.charCodeAt(t))+(i<<14)))?n^i>>21:n;return n}return(""+e(document.referrer)+(new Date).getTime()+e(document.cookie)).substr(0,32)}var g="QIHOO__WEB__SO__",c={singleColumn:{index:[1,4,7,10],feedNum:8,adNum:4},splitColumn:{index:[1,4,7,10,13,16,19,22],feedNum:17,adNum:8},multiColumn:{index:[1,4,7,10,13,16,19,22],feedNum:16,adNum:8},thinSingleColumn:{index:[1,4,7,10],feedNum:8,adNum:4}},n=2,i=0;window[g]||(window[g]={},window[g].UID=t(),window[g].displayShowId=[]);var v=window[g],y=[{"data-feedkey":"youlike",name:"推荐"},{"data-feedkey":"militery",name:"军事"},{"data-feedkey":"fun",name:"娱乐"},{"data-feedkey":"social",name:"社会"},{"data-feedkey":"funny",name:"搞笑"},{"data-feedkey":"history",name:"历史"},{"data-feedkey":"car",name:"汽车"},{"data-feedkey":"sport",name:"体育"}],b=".info-flow-nav{\n overflow: hidden;\n width: {w}px;\n height: 30px;\n border-bottom: 1px dotted #e5e5e5;\n background: {tabBackground};\n line-height: 30px;\n}\n.info-flow-nav .tab-line{\n float: right;\n width: 1px;\n height: 20px;\n background: #f0f0f0;\n margin-top: 10px;\n}\n.info-flow-nav .info-flow-tab{\n float: left;\n width: {tabWidth}px;\n text-align: center;\n cursor: pointer;\n font-size: {tabFontSize};\n color: {tabFontColor};\n font-family:{tabFontFamily};\n border-right:1px solid #e5e5e5; \n}\n.info-flow-nav .info-flow-tab:hover{\n color: {tabHover};\n}\n.info-flow-nav .actived{\n background: {tabActive};\n color: white;\n}";function w(e,o){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"").replace(/([\.?(\w|\d|:|_|\-|\s)+][,\.?(\w|\d|:|_|\-|\s)+]*){/g,function(e,t){for(var n=t.split(","),i="",r=0;r'],l=0;l'+r[l].name+""):s.push(''+r[l].name+"");return s.push(""),s.join("")}document.getElementById(i+"-tab").style.display="none"},u.prototype.getStyle=function(e,t,n,i){var r=(n.tabFontSize||16)+"px",o=n.tabFontFamily||"Microsoft YaHei",a=n.tabFontColor||"#0c69d4",s=n.tabBackground||"#ffffff",l=n.tabActive,c=n.tabHover||"red",u=y,d=(e-2)/u.length;120, no stack trace)"}function q(){return"function"==typeof G}var $=function(){return!1},Y=/[\/<\(]([^:\/]+):(\d+):(?:\d+)\)?\s*$/;function Q(e){var t=e.match(Y);if(t)return{fileName:t[1],line:parseInt(t[2],10)}}function X(e){this._parent=e,this._promisesCreated=0;var t=this._length=1+(e===undefined?0:e._length);G(this,X),32=o)return n[t]=e,this._queue.push(t),!1;null!==r&&(r[t]=e);var a=this._promise,s=this._callback,l=a._boundValue();a._pushContext();var c=m(s).call(l,e,t,i),u=a._popContext();if(g.checkForgottenReturns(c,u,null!==r?"Promise.filter":"Promise.map",a),c===v)return this._reject(c.e),!0;var d=p(c,this._promise);if(d instanceof h){var f=(d=d._target())._bitField;if(0==(50397184&f))return 1<=o&&this._inFlight++,(n[t]=d)._proxy(this,-1*(t+1)),!1;if(0==(33554432&f))return 0!=(16777216&f)?this._reject(d._reason()):this._cancel(),!0;c=d._value()}n[t]=c}return i<=++this._totalResolved&&(null!==r?this._filter(n,r):this._resolve(n),!0)},u.prototype._drainQueue=function(){for(var e=this._queue,t=this._limit,n=this._values;0>>16)){if(e===this){var n=l();return this._attachExtraTrace(n),this._reject(n)}this._setFulfilled(),this._rejectionHandler0=e,0<(65535&t)&&(0!=(134217728&t)?this._settlePromises():g.settlePromises(this),this._dereferenceTrace())}},T.prototype._reject=function(e){var t=this._bitField;if(!((117506048&t)>>>16)){if(this._setRejected(),this._fulfillmentHandler0=e,this._isFinal())return g.fatalError(e,p.isNode);0<(65535&t)?g.settlePromises(this):this._ensurePossibleRejectionHandled()}},T.prototype._fulfillPromises=function(e,t){for(var n=1;n=this._length&&(this._resolve(this._values),!0)},t.prototype._promiseCancelled=function(){return this._cancel(),!0},t.prototype._promiseRejected=function(e){return this._totalResolved++,this._reject(e),!0},t.prototype._resultCancelled=function(){if(!this._isResolved()){var e=this._values;if(this._cancel(),e instanceof s)e.cancel();else for(var t=0;t=this._length){var n;if(this._isMap)n=function(e){for(var t=new s,n=e.length/2|0,i=0;i>1},i.prototype.props=function(){return n(this)},i.props=function(e){return n(e)}}},{"./es5":13,"./util":36}],26:[function(e,t,n){function i(e){this._capacity=e,this._length=0,this._front=0}i.prototype._willBeOverCapacity=function(e){return this._capacity=this._length&&(this._resolve(this._values),!0)},r.prototype._promiseFulfilled=function(e,t){var n=new i;return n._bitField=33554432,n._settledValueField=e,this._promiseResolved(t,n)},r.prototype._promiseRejected=function(e,t){var n=new i;return n._bitField=16777216,n._settledValueField=e,this._promiseResolved(t,n)},e.settle=function(e){return n.deprecated(".settle()",".reflect()"),new r(e).promise()},e.prototype.settle=function(){return e.settle(this)}}},{"./util":36}],31:[function(u,e,t){e.exports=function(e,t,r){var n=u("./util"),i=u("./errors").RangeError,o=u("./errors").AggregateError,a=n.isArray,s={};function l(e){this.constructor$(e),this._howMany=0,this._unwrap=!1,this._initialized=!1}function c(e,t){if((0|t)!==t||t<0)return r("expecting a positive integer\n\n See http://goo.gl/MqrFmX\n");var n=new l(e),i=n.promise();return n.setHowMany(t),n.init(),i}n.inherits(l,t),l.prototype._init=function(){if(this._initialized)if(0!==this._howMany){this._init$(undefined,-5);var e=a(this._values);!this._isResolved()&&e&&this._howMany>this._canPossiblyFulfill()&&this._reject(this._getRangeError(this.length()))}else this._resolve([])},l.prototype.init=function(){this._initialized=!0,this._init()},l.prototype.setUnwrap=function(){this._unwrap=!0},l.prototype.howMany=function(){return this._howMany},l.prototype.setHowMany=function(e){this._howMany=e},l.prototype._promiseFulfilled=function(e){return this._addFulfilled(e),this._fulfilled()===this.howMany()&&(this._values.length=this.howMany(),1===this.howMany()&&this._unwrap?this._resolve(this._values[0]):this._resolve(this._values),!0)},l.prototype._promiseRejected=function(e){return this._addRejected(e),this._checkOutcome()},l.prototype._promiseCancelled=function(){return this._values instanceof e||null==this._values?this._cancel():(this._addRejected(s),this._checkOutcome())},l.prototype._checkOutcome=function(){if(this.howMany()>this._canPossiblyFulfill()){for(var e=new o,t=this.length();t\n \n \n {title}\n \n \n \n \n \n \n \n \n\n',at=".largeImage .visited .largeImage-title{ \n color: #9e9e9e;\n}\n.largeImage{ \n padding: {paddingTop}px {paddingRight}px {paddingBottom}px {paddingLeft}px;\n background-color:{backgroundColor};\n width: {width}px;\n height: {height}px;\n overflow: hidden;\n cursor: pointer;\n}\n.largeImage .largeImage-wrapper {\n position: relative;\n vertical-align: top;\n width: {width}px;\n height: {height}px;\n}\n.largeImage .largeImage-title {\n display: {displayTitle}; \n overflow: hidden;\n font-size: {titleFontSize}px;\n font-family: {titleFontFamily};\n font-weight: {titleFontWeight};\n color: {titleFontColor};\n padding: {titlePaddingTop}px {titlePaddingRight}px {titlePaddingBottom}px {titlePaddingLeft}px; \n line-height: 1.3;\n white-space: nowrap;\n text-overflow: ellipsis;\n letter-spacing:0.05em; \n}\n.largeImage .largeImage-title:hover { \n color:{hoverColor};\n}\n.largeImage .largeImage-body{ \n position: relative; \n vertical-align: top;\n}\n.largeImage .largeImage-grid-wrap { \n position: relative; \n padding: {imgPadding}px 0px;\n}\n.largeImage .largeImage-grid-wrap .img { \n width:{imgW}px;\n height:{imgH}px;\n border-radius:{imageBorderRadius}px;\n position: relative; \n}\n.largeImage .largeImage-extra { \n display: {displaySrc}; \n color: #999;\n height: {srcHeight}px;\n line-height: {srcHeight}px;\n overflow: hidden;\n white-space: nowrap;\n}\n.largeImage .largeImage-extra .largeImage-ad-tag{\n width: 30px;\n color: #ddd;\n font-size: 12px;\n display: inline;\n}\n.largeImage .largeImage-extra .largeImage-ad-src{\n font-size: 12px;\n color: #999;\n display: inline;\n}\n.largeImage .ads-tag{ \n position: absolute;\n display : {displayAdTag};\n top: 0;\n right: 0;\n width: 22px;\n height: 12px;\n background-image: url(//p0.ssl.qhimg.com/t01c5fc7f8612d6b610.png);\n}\n";function st(e,t,n,i,r,o){return x(ot,{title:e,img:t,curl:n,prefix:r,tagName:o||"",src:i})}function lt(e,t,n){var i=Math.min(660,Math.floor(450*e/500)),r=Math.floor(i/3),o=Math.min(10,7+1*Math.floor((e-500)/200)),a=o,s=o,l=Math.min(20,14+Math.max(0,2*Math.floor((e-500)/200))),c=n.titleFontColor,u=n.titleFontFamily;_(n.titleFontSize)||(l=n.titleFontSize);var d=o,f=o,h=n.contentBackground,p=n.titleHover,g=1.3*l;return w(x(at,{prefix:t,width:e,height:r+o+0+g+1.2*l+d+f,imageBorderRadius:0,imgW:i,imgH:r,imgPadding:0,displayTitle:"block",titleFontSize:l,titleFontColor:c,titleFontFamily:u,titleFontWeight:"bold",titlePaddingTop:d,titlePaddingRight:0,titlePaddingBottom:f,titlePaddingLeft:0,displaySrc:"block",srcHeight:g,paddingTop:o,paddingRight:s,paddingBottom:0,paddingLeft:a,backgroundColor:h,hoverColor:p}),t)}var ct='\n \n \n {title}\n \n \n {imgsList}\n \n \n \n\n',ut=".mulImage .visited .mulimg-title{\n color:#9e9e9e;\n}\n.mulImage{\n padding: {paddingTop}px {paddingRight}px {paddingBottom}px {paddingLeft}px;\n background-color:{backgroundColor};\n width: {width}px;\n height: {height}px;\n overflow: hidden;\n cursor: pointer;\n}\n.mulImage .mulimg-wrapper {\n position: relative;\n vertical-align: top;\n width: {width}px;\n height: {height}px;\n}\n.mulImage .mulimg-title {\n overflow: hidden;\n font-size: {titleFontSize}px;\n font-family: {titleFontFamily};\n font-weight: {titleFontWeight};\n color: {titleFontColor};\n padding: {titlePaddingTop}px {titlePaddingRight}px {titlePaddingBottom}px {titlePaddingLeft}px; \n line-height: 1.3;\n white-space: nowrap;\n text-overflow: ellipsis;\n letter-spacing:0.05em; \n}\n.mulImage .mulimg-title:hover {\n color: {hoverColor};\n}\n.mulImage .mulimg-grid-wrap{\n position: relative;\n}\n.mulImage .mulimg-figure-grid{\n overflow: hidden;\n}\n.mulImage .mulimg-figure{\n float: left;\n margin-right:{imageSplitWidth}px;\n}\n.mulImage .mulimg-figure-img {\n overflow: hidden;\n position: relative;\n padding: {imgPadding}px 0px;\n}\n.mulImage .mulimg-figure-img .img{\n width:{imgW}px;\n height:{imgH}px;\n border-radius:{imageBorderRadius}px;\n}\n.mulImage .mulimg-extra{\n color: #999;\n height: {srcHeight}px;\n line-height: {srcHeight}px;\n overflow: hidden;\n white-space: nowrap;\n}\n.mulImage .mulimg-extra .mul-ads-tag{\n width: 30px;\n color: #ddd;\n font-size: 12px;\n display: inline;\n}\n.mulImage .mulimg-extra .ads-tag{\n font-size: 12px;\n color: #999;\n display: inline;\n}\n";function dt(e,t,n,i,r,o){for(var a={title:e,curl:n,source:i,tagName:r,prefix:o},s=[],l=0;l',a);s.push(c)}return a.imgsList=s.join(""),x(ct,a)}function ft(e,t,n){var i=Math.min(180,Math.floor(108*e/500)),r=Math.floor(i/1.8),o=Math.min(10,7+1*Math.floor((e-500)/200)),a=o,s=o,l=Math.min(20,14+Math.max(0,2*Math.floor((e-500)/200))),c=n.titleFontColor,u=n.titleFontFamily;_(n.titleFontSize)||(l=n.titleFontSize);var d=o,f=o,h=n.contentBackground,p=n.titleHover,g=Math.floor((e-a-s-4*i)/4),m=1.3*l;return w(x(ut,{prefix:t,width:e,height:r+o+0+m+1.2*l+d+f,imageBorderRadius:0,imgPadding:0,imgW:i,imgH:r,imageFill:"clip",imageSplitWidth:g,titleFontSize:l,titleFontColor:c,titleFontFamily:u,titleFontWeight:"bold",titlePaddingTop:d,titlePaddingRight:0,titlePaddingBottom:f,titlePaddingLeft:0,srcHeight:m,paddingTop:o,paddingRight:s,paddingBottom:0,paddingLeft:a,backgroundColor:h,hoverColor:p}),t)}var ht='\n \n \n {title}\n \n \n {imgsList}\n \n \n \n\n',pt=".mulImageWindow .visited .mulimg-title{\n color:#9e9e9e;\n}\n.mulImageWindow{\n padding: {paddingTop}px {paddingRight}px {paddingBottom}px {paddingLeft}px;\n background-color:{backgroundColor};\n width: {width}px;\n height: {height}px;\n overflow: hidden;\n cursor: pointer;\n}\n.mulImageWindow .mulimg-wrapper {\n position: relative;\n vertical-align: top;\n width: {width}px;\n height: {height}px;\n}\n.mulImageWindow .mulimg-title {\n overflow: hidden;\n font-size: {titleFontSize}px;\n font-family: {titleFontFamily};\n font-weight: {titleFontWeight};\n color: {titleFontColor};\n padding: {titlePaddingTop}px {titlePaddingRight}px {titlePaddingBottom}px {titlePaddingLeft}px;\n line-height: 1.3;\n white-space: nowrap;\n text-overflow: ellipsis;\n letter-spacing:0.05em;\n}\n.mulImageWindow .mulimg-title:hover {\n color: {hoverColor};\n}\n.mulImageWindow .mulimg-grid-wrap{\n position: relative;\n}\n.mulImageWindow .mulimg-figure-grid{\n overflow: hidden;\n}\n.mulImageWindow .mulimg-figure{\n float: left;\n margin-right:{imageSplitWidth}px;\n}\n.mulImageWindow .mulimg-figure-img {\n overflow: hidden;\n position: relative;\n padding: {imgPadding}px 0px;\n}\n.mulImageWindow .mulimg-figure-img .img{\n width:{imgW}px;\n height:{imgH}px;\n border-radius:{imageBorderRadius}px;\n}\n\n.mulImageWindow .mulimg-window-img .img{\n width:{imgW}px;\n height:{imgW}px;\n border-radius:{imageBorderRadius}px;\n position:relative;\n}\n.mulImageWindow .mulimg-window-img .window-item__title{\n display: block;\n width: 100%;\n position: absolute;\n bottom: 0;\n background-color: rgba(0,0,0,0.5);\n filter: progid:DXImageTransform.Microsoft.gradient(startcolorstr=#88000000, endcolorstr=#88000000);\n color: #fff;\n font-size: {windowItemTitleFontSize}px;\n line-height: 1.5;\n text-align: center;\n white-space: nowrap;\n overflow:hidden;\n text-overflow: ellipsis;\n}\n.mulImageWindow .mulimg-extra{\n color: #999;\n height: {srcHeight}px;\n line-height: {srcHeight}px;\n overflow: hidden;\n white-space: nowrap;\n}\n.mulImageWindow .mulimg-extra .mul-ads-tag{\n width: 30px;\n color: #ddd;\n font-size: 12px;\n display: inline;\n}\n.mulImageWindow .mulimg-extra .ads-tag{\n font-size: 12px;\n color: #999;\n display: inline;\n}\n";function gt(e,t,n,i,r,o){for(var a={title:e,curl:n,source:i,tagName:r,prefix:o},s=[],l="",c=0;c'+t[c].desc+""),l=x(''+u+"",a),s.push(l)}return a.imgsList=s.join(""),x(ht,a)}function mt(e,t,n){var i=Math.min(180,Math.floor(108*e/500)),r=i,o=Math.min(10,7+1*Math.floor((e-500)/200)),a=o,s=o,l=Math.min(20,14+Math.max(0,2*Math.floor((e-500)/200))),c=n.titleFontColor,u=n.titleFontFamily;_(n.titleFontSize)||(l=n.titleFontSize);var d=o,f=o,h=n.contentBackground,p=n.titleHover,g=Math.floor((e-a-s-4*i)/4),m=1.3*l;return w(x(pt,{prefix:t,width:e,height:r+o+0+m+1.2*l+d+f,imageBorderRadius:0,imgPadding:0,imgW:i,imgH:r,imageFill:"clip",imageSplitWidth:g,titleFontSize:l,windowItemTitleFontSize:.875*l,titleFontColor:c,titleFontFamily:u,titleFontWeight:"bold",titlePaddingTop:d,titlePaddingRight:0,titlePaddingBottom:f,titlePaddingLeft:0,srcHeight:m,paddingTop:o,paddingRight:s,paddingBottom:0,paddingLeft:a,backgroundColor:h,hoverColor:p}),t)}var vt='\n \n \n {ad}\n \n \n {title}\n {source}\n \n \n \n\n',yt="info-div{display:block}\n\n.singleImage{ \n background-color:{backgroundColor};\n padding: {paddingTop}px {paddingRight}px {paddingBottom}px {paddingLeft}px;\n overflow: hidden;\n width: {width}px;\n height: {height}px;\n cursor: pointer;\n position:relative;\n}\n\n.singleImage .wrap{\n position:relative;\n width: {width}px;\n height: {height}px;\n}\n\n.singleImage .visited .singleImage-title{\n color: #9e9e9e;\n}\n\n.singleImage .singleImage-img{\n width: {imgW}px;\n height: {imgH}px;\n padding: {imgPadding}px 0px;\n display: {displayImage};\n}\n\n.singleImage .singleImage-img-left{\n float:left;\n}\n.singleImage .singleImage-img-right{\n float:right;\n}\n\n.singleImage .singleImage-img-top{\n position: absolute;\n top : 0;\n}\n.singleImage .singleImage-img-bottom{\n position: absolute;\n bottom : 0;\n}\n\n.singleImage .singleImage-img .img{\n width: {imgW}px;\n height: {imgH}px;\n border-radius: {imageBorderRadius}px;\n position: relative;\n}\n\n.singleImage .singleImage-body{\n width: {bodyWidth}px;\n height: {bodyHeight}px;\n}\n\n.singleImage .singleImage-body-left{\n float: left;\n}\n.singleImage .singleImage-body-right{\n float: left;\n}\n.singleImage .singleImage-body-top{\n position:absolute;\n bottom:0;\n}\n.singleImage .singleImage-body-bottom{\n position:absolute;\n top:0;\n}\n\n\n.singleImage .singleImage-title{\n font-size: {titleFontSize}px;\n font-family: {titleFontFamily};\n font-weight: {titleFontWeight};\n color: {titleFontColor};\n padding: {titlePaddingTop}px {titlePaddingRight}px {titlePaddingBottom}px {titlePaddingLeft}px; \n display: {displayTitle};\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n\n\n.singleImage .singleImage-title:hover{\n color: {hoverColor};\n}\n\n\n.singleImage .singleImage-desc{\n font-size: {descFontSize}px;\n font-family: {descFontFamily};\n color: {descFontColor};\n display: {displayDesc};\n padding: 0px {titlePaddingRight}px 0px {titlePaddingLeft}px; \n overflow: hidden;\n white-space: nowrap;\n}\n\n.singleImage .ads-tag{ \n position: absolute;\n top: 0;\n right: 0;\n width: 22px;\n height: 12px;\n background-image: url(//p0.ssl.qhimg.com/t01c5fc7f8612d6b610.png);\n}\n";function _t(e,t,n,i,r,o){var a={title:e,img:t,curl:n,source:i,prefix:r,pos:"left"},s="";return!_(o)&&-1',a)),a.ad=s,x(vt,a)}function bt(e,t,n){var i=Math.min(180,Math.floor(90*e/300)),r=Math.floor(i/1.8),o=Math.min(10,6+1*Math.floor((e-300)/200)),a=o,s=o,l=Math.min(20,12+Math.max(0,2*Math.floor((e-300)/200))),c=n.titleFontColor,u=n.titleFontFamily;_(n.titleFontSize)||(l=n.titleFontSize);var d,f=Math.max(12,l-2),h=u,p=o,g=p,m=r-1.2*l-1.2*f,v=n.contentBackground,y=n.titleHover;return w(x(yt,{prefix:t,width:e,height:d=r+o+0,displayImage:"block",imageBorderRadius:0,imgPadding:(d-r)/2,imgW:i,imgH:r,imageFill:"clip",displayTitle:"block",titleFontSize:l,titleFontColor:c,titleFontFamily:u,titleFontWeight:"bold",titlePaddingTop:0,titlePaddingRight:g,titlePaddingBottom:m,titlePaddingLeft:p,displayDesc:"block",descFontSize:f,descFontColor:"#999",descFontFamily:h,paddingTop:o,paddingRight:s,paddingBottom:0,paddingLeft:a,backgroundColor:v,hoverColor:y,bodyWidth:e-a-s-i,bodyHeight:d}),t)}var wt='\n \n \n {ad}\n \n \n {title}\n \n \n',xt="info-div { \n display: block;\n} \n \n.twoImagesInOneLine .hover{\n background-color:#f0f0f0;\n height:100%;\n width:100%;\n}\n.twoImagesInOneLine .visited .column-news-title{\n color:#9e9e9e;\n }\n.twoImagesInOneLine{ \n float: left; \n width: 48%;\n height: 3.5em;\n padding: 0.5em 0; \n margin: 0 0 0 9px; \n *margin: 0 0 0 3px;\n background-color:{background};\n border-bottom: 1px solid #ebebeb; \n position: relative;\n cursor: pointer;\n}\n.twoImagesInOneLine .column-news-wrapper{ \n float:left; \n margin: 0 0.75em 0 0;\n overflow: hidden; \n} \n.twoImagesInOneLine .column-news-wrapper .img { \n width: 6.25em; \n height: 3.5em;\n position: relative;\n} \n.twoImagesInOneLine .column-news-text{\n overflow:hidden;\n} \n.twoImagesInOneLine .column-news-title{\n margin-top: 0.15em;\n height: {titleHeight}px;\n line-height: {titleLineHeight}px;\n text-overflow: ellipsis; \n overflow:hidden;\n font-size:{titleFontSize}px; \n font-family:{titleFontFamily};\n color:{titleFontColor};\n letter-spacing:0.5px; \n} \n.twoImagesInOneLine .column-news-title:hover{\n color:{titleHover};\n}\n.twoImagesInOneLine .column-news-source { \n margin-top: 0.2em; \n color: #999999; \n position: absolute;\n height: 14px;\n line-height: 14px;\n font-size: 12px;\n overflow: hidden;\n bottom: 0;\n} \n.twoImagesInOneLine .column-ads-tag,.twoImagesInOneLine .column-source,.twoImagesInOneLine .column-news-time{ \n display: inline-block;\n font-size: 12px; \n}\n\n.twoImagesInOneLine .twoimage-ads-tag{\n position: absolute;\n top: 0;\n right: 0;\n width: 22px;\n height: 12px;\n background-image: url(//p0.ssl.qhimg.com/t01c5fc7f8612d6b610.png);\n}\n";function Ct(e,t,n,i,r,o){var a={title:e,img:t,curl:n,source:i,prefix:r,tag:o||""};return-1':a.ad="",x(wt,a)}function Ft(e,t){var n={prefix:e,titleFontSize:t.titleFontSize,titleFontFamily:t.titleFontFamily,titleHover:t.titleHover,titleFontColor:t.titleFontColor,background:t.contentBackground,titleHeight:2*(parseInt(t.titleFontSize)+2),titleLineHeight:parseInt(t.titleFontSize)+2};return w(x(xt,n),e)}var kt='\n \n \n \n \n \n \n \n {title}\n \n \n',Tt='info-div{\n display: block;\n}\n.fourimg-item{\n width: {imgW}px;\n height: {itemH}px;\n position: relative;\n cursor: pointer;\n float: left;\n padding: 0 {padding}px;\n margin: 0 0 5px 0;\n}\n.fourimg-item .hover .fourimg-txt{ \n background-color:#f0f0f0;\n}\n.fourimg-item .visited .fourimg-title{ \n color:#9e9e9e;\n}\n.fourimg-item .fourimg-wrapper .img{\n width: {imgW}px;\n height: {imgH}px;\n position: relative;\n}\n.fourimg-item .fourimg-txt{\n font-size: 12px;\n line-height: 19px;\n height: 45px;\n padding: 0 8px;\n background: #f6f6f6;\n}\n.fourimg-item .fourimg-title{\n padding-top: 5px;\n overflow: hidden;\n height: 40px;\n}\n.fourimg-item .fourimg-title:hover { \n color:red;\n}\n.fourimg-item .icon-news{\n width: 16px;\n height: 16px;\n background: url(//p0.ssl.qhimg.com/d/inn/348dabee/ico_news.png);\n _background: 0;\n _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="//p0.ssl.qhimg.com/d/inn/348dabee/ico_news.png",sizingMethod="crop");\n position: absolute;\n bottom: 49px;\n left: 6px;\n}\n.fourimg-item .ads-item .fourimg-ads-tag{\n position: absolute;\n top: 0;\n right: 0;\n width: 22px;\n height: 12px;\n background-image: url(//p0.ssl.qhimg.com/t01c5fc7f8612d6b610.png);\n}\n\n',It=[[140,170,1,120,70],[171,180,1,150,85],[181,260,1,160,90],[261,320,2,120,70],[321,340,2,150,85],[341,390,2,160,90],[391,480,3,120,70],[481,520,3,150,85],[521,640,4,120,70],[641,680,4,150,85],[681,880,4,160,90]];function Et(e,t,n){for(var i=null,r=0;r=It[r][0]&&e<=It[r][1]){i=It[r];break}var o={prefix:t,imgW:i[3],imgH:i[4],itemW:e/i[2],itemH:i[4]+45,padding:(e-i[3]*i[2])/(2*i[2])};return w(x(Tt,o),t)}function St(e,t,n,i,r,o){return x(kt,{title:e,img:t,curl:n,source:i,prefix:r,tagName:o,adtag:"广告"==o?"ads-item":""})}var jt='\n \n \n {title}\n \n \n \n \n \n \n\n',Pt="info-div{display:block}\n\n.videoImage{ \n padding: {paddingTop}px {paddingRight}px {paddingBottom}px {paddingLeft}px;\n background-color:{backgroundColor};\n overflow: hidden;\n width: {width}px;\n height: {height}px;\n cursor: pointer;\n}\n\n.videoImage .video-wrapper{\n position:relative;\n vertical-align: top;\n width: {width}px;\n height: {height}px;\n}\n\n.videoImage .video-title { \n display: block; \n overflow: hidden; \n font-size:{titleFontSize}px; \n font-family:{titleFontFamily}; \n font-weight: {titleFontWeight};\n color: {titleFontColor};\n padding: {titlePaddingTop}px {titlePaddingRight}px {titlePaddingBottom}px {titlePaddingLeft}px; \n line-height: 1.3;\n width: {width}px;\n white-space: nowrap;\n text-overflow: ellipsis;\n letter-spacing:0.05em; \n}\n.videoImage .hover .video-title { \n color:{hoverColor};\n}\n\n.videoImage .visited .video-title{ \n color:#9e9e9e;\n}\n\n.videoImage .ads-cite-name{\n width: 30px;\n color: #ddd;\n white-space: nowrap;\n display: inline;\n font-size: 12px;\n}\n.videoImage .ads-tag{\n font-size: 12px;\n color: #999;\n white-space: nowrap;\n display: inline;\n}\n.videoImage .video-body{ \n position: relative; \n vertical-align: top;\n overflow: hidden;\n}\n\n.videoImage .video-grid-wrap { \n position: relative; \n height:{videoHeight}px;\n width:{videoWidth}px; \n padding: {videoPadding}px 0px;\n}\n.videoImage .video-grid-wrap .video {\n background-size:cover;\n width:{videoWidth}px; \n height:{videoHeight}px;\n}\n.videoImage .hover .muted {\n display: block;\n} \n.videoImage .muted{\n position: absolute;\n width: 32px;\n height: 32px;\n background: url(//p5.ssl.qhimg.com/t01fd3cc05da6eb606f.png) no-repeat;\n left: 50%;\n top: 50%;\n margin-left: -16px;\n margin-top: - 16px;\n display: none;\n}\n.videoImage .video-extra { \n height: 1em; \n line-height: 1em; \n color: #999; \n position: absolute; \n bottom: 0;\n left : {videoTitleLeft}px;\n white-space: nowrap;\n}\n";function Rt(e,t,n,i,r,o,a){return x(jt,{title:t,img:n,curl:i,prefix:o,tagName:a||"",src:r,video:e})}function Bt(e,t,n){var i=3*Math.min(180,Math.floor(108*e/500)),r=720*i/1280,o=Math.min(10,7+1*Math.floor((e-500)/200)),a=o,s=o,l=Math.min(20,14+Math.max(0,2*Math.floor((e-500)/200))),c=n.titleFontColor,u=n.titleFontFamily;_(n.titleFontSize)||(l=n.titleFontSize);var d=o,f=o,h=n.contentBackground,p=n.titleHover;return w(x(Pt,{prefix:t,width:e,height:r+o+0+1.3*l+d+f,videoPadding:0,videoWidth:i,videoHeight:r,titleFontSize:l,titleFontColor:c,titleFontFamily:u,titleFontWeight:"bold",titlePaddingTop:d,titlePaddingRight:0,titlePaddingBottom:f,titlePaddingLeft:0,paddingTop:o,paddingRight:s,paddingBottom:0,paddingLeft:a,backgroundColor:h,hoverColor:p,videoTitleLeft:i+10}),t)}function Ht(e,t){if(r(e))for(var n=0;n',{w:s,h:l,src:o}),r.videoplayer=r.children[0].children[0].children[1].children[0],r.videoplayer.muted=!0,r.children[0].children[0].children[1].children[1].onclick=function(){var e=this.parentNode.parentNode.parentNode.parentNode;e.videoplayer.muted?(e.videoplayer.muted=!1,this.style.background="url(http://p7.qhimg.com/t01b7986f8b259154dd.png) no-repeat"):(e.videoplayer.muted=!0,this.style.background="url(http://p5.qhimg.com/t01fd3cc05da6eb606f.png) no-repeat")}}var c=r.videoplayer.play();_(c)||c["catch"](function(e){})}else{if(!_(r.videoplayer))_(r.videoplayer.pause())||c["catch"](function(e){})}}}function qt(e){var t=document.getElementById(e);Wt(t),Ut(t),s(window,"scroll",tt(Wt.bind(this,t),10)),s(t,"scroll",tt(Wt.bind(this,t),10)),s(window,"scroll",rt(Ut.bind(this,t),10)),a(window,"scroll",tt(Wt.bind(this,t),10)),a(t,"scroll",tt(Wt.bind(this,t),10)),a(window,"scroll",rt(Ut.bind(this,t),10)),s(window,"blur",rt(Vt.bind(this,t),10)),s(window,"focus",rt(Ut.bind(this,t),10)),a(window,"blur",rt(Vt.bind(this,t),10)),a(window,"focus",rt(Ut.bind(this,t),10));for(var n=t;"body"!==n.tagName.toLowerCase();)"info-div"!==n.tagName.toLowerCase()&&"newsfeed"!==n.tagName.toLowerCase()&&"scroll"===n.style.overflowY&&(s(n,"scroll",tt(Wt.bind(this,t),10)),a(n,"scroll",tt(Wt.bind(this,t),10))),n=n.parentNode}function $t(r,o){var e=document.getElementById(r),t=function(e){var t=e.target;if(l(t.className)&&-1=Xn)return arguments[0]}else i=0;return n.apply(undefined,arguments)}}var Zn=Kn,ei=Zn(Qn),ti=ei;function ni(e,t){return ti(Un(e,t,Nn),e+"")}var ii=ni,ri=9007199254740991;function oi(e){return"number"==typeof e&&-1"+this.validMessage+"
"},renderAd:function(e,t,i){var r=[];switch(t.layout){case"singleColumn":if(_(e)||_(e.ads)||m(e.ads))return[];Ht(e.ads,function(e){if(1===parseInt(e.type)){var t=_t(e.title,e.img,e.curl,e.src,i,"广告");t=ce.fill(t,e),r.push(t)}else if(2===parseInt(e.type)){t="";var n=e.assets;t=_(e.assets[0].imgw)||e.assets[0].imgw!==e.assets[0].imgh?dt(e.title,n,e.curl,e.src,"广告",i):gt(e.title,n,e.curl,e.src,"广告",i),t=ce.fill(t,e),r.push(t)}else if(3===parseInt(e.type)){t=st(e.title,e.img,e.curl,e.src,i,"广告");t=ce.fill(t,e),r.push(t)}else if(4===parseInt(e.type)){t="";t=/msie/i.test(navigator.userAgent)?_t(e.title,e.img,e.curl,e.src,i,"广告"):Rt(e.video,e.title,e.img,e.curl,e.src,i,"广告"),t=ce.fill(t,e),r.push(t)}});break;case"splitColumn":if(_(e)||_(e.ads)||m(e.ads))return[];Ht(e.ads,function(e){var t=e.img;"2"===e.type&&(t=e.assets[0].img);var n=Ct(e.title,t,e.curl,e.src,i,"广告");n=ce.fill(n,e),r.push(n)});break;case"thinSingleColumn":if(_(e)||_(e.ads)||m(e.ads))return[];Ht(e.ads,function(e){var t=e.img;"2"===e.type&&(t=e.assets[0].img);var n=_t(e.title,t,e.curl,e.src,i,"广告 · "+e.src);n=ce.fill(n,e),r.push(n)});break;case"multiColumn":if(_(e)||_(e.ads)||m(e.ads))return[];Ht(e.ads,function(e){var t=e.img;"2"===e.type&&(t=e.assets[0].img);var n=St(e.title,t,e.curl,e.src,i,"广告");n=ce.fill(n,e),r.push(n)})}return r},renderFeed:function(u,d,f,h){var p=[];switch(d.layout){case"singleColumn":if(_(u)||_(u.data)||_(u.data.res))return[];Ht(u.data.res,function(e){var t=(e.bigi||"").split("|"),n=(e.i||"").split("|"),i=e.t||"",r=1===e.style?t[0]:n[0]||"",o=e.pcurl||"",a=e.stag||"",s=e.f||a.split("|")[0]||"";if(!m(r)){var l=_t(i,r,o,s,h);l=this.feed.fill(l,e,u,d.sign,f,d.showid),p.push(l)}}.bind(this));break;case"splitColumn":if(_(u)||_(u.data)||_(u.data.res))return[];Ht(u.data.res,function(e){var t=(e.bigi||"").split("|"),n=(e.i||"").split("|"),i=e.t||"",r=1===e.style?t[0]:n[0]||"",o=e.pcurl||"",a=e.stag||"",s=e.f||a.split("|")[0]||"";if(!m(r)){var l=Ct(i,r,o,s,h);l=this.feed.fill(l,e,u,d.sign,f,d.showid),p.push(l)}}.bind(this));break;case"thinSingleColumn":if(_(u)||_(u.data)||_(u.data.res))return[];Ht(u.data.res,function(e){var t=(e.bigi||"").split("|"),n=(e.i||"").split("|"),i=e.t||"",r=1===e.style?t[0]:n[0]||"",o=e.pcurl||"",a=e.stag||"",s=e.f||a.split("|")[0]||"",l=e.c||"";if(!m(r)){var c=_t(i,r,o,s,h,l);c=this.feed.fill(c,e,u,d.sign,f,d.showid),p.push(c)}}.bind(this));break;case"multiColumn":if(_(u)||_(u.data)||_(u.data.res))return[];Ht(u.data.res,function(e){var t=(e.bigi||"").split("|"),n=(e.i||"").split("|"),i=e.t||"",r=1===e.style?t[0]:n[0]||"",o=e.pcurl||"",a=e.stag||"",s=e.f||a.split("|")[0]||"";if(!m(r)){var l=St(i,r,o,s,h);l=this.feed.fill(l,e,u,d.sign,f,d.showid),p.push(l)}}.bind(this))}return p},renderWindowAd:function(i,e,r){var o=[];switch(e.layout){case"singleColumn":if(_(i)||_(i.ads)||m(i.ads))return[];Ht(i.ads,function(e){var t=_t(e.title||e.desc,e.img,e.curl,"",r,"广告");t=de.fill(t,e,i),o.push(t)});break;case"splitColumn":if(_(i)||_(i.ads)||m(i.ads))return[];Ht(i.ads,function(e){var t=e.img,n=Ct(e.title||e.desc,t,e.curl,"",r,"广告");n=de.fill(n,e,i),o.push(n)});break;case"thinSingleColumn":if(_(i)||_(i.ads)||m(i.ads))return[];Ht(i.ads,function(e){var t=e.img,n=_t(e.title||e.desc,t,e.curl,"",r,"广告 · "+e.src);n=de.fill(n,e,i),o.push(n)});break;case"multiColumn":if(_(i)||_(i.ads)||m(i.ads))return[];Ht(i.ads,function(e){var t=e.img,n=St(e.title||e.desc,t,e.curl,"",r,"广告");n=de.fill(n,e,i),o.push(n)})}return o},mix:function(e,t,n){var i="";if(0',{w:s,h:l,src:o}),r.videoplayer=r.children[0].children[0].children[1].children[0],r.videoplayer.muted=!0,r.children[0].children[0].children[1].children[1].onclick=function(){var e=this.parentNode.parentNode.parentNode.parentNode;e.videoplayer.muted?(e.videoplayer.muted=!1,this.style.background="url(http://p7.qhimg.com/t01b7986f8b259154dd.png) no-repeat"):(e.videoplayer.muted=!0,this.style.background="url(http://p5.qhimg.com/t01fd3cc05da6eb606f.png) no-repeat")}}var c=r.videoplayer.play();_(c)||c["catch"](function(e){})}else{if(!_(r.videoplayer))_(r.videoplayer.pause())||c["catch"](function(e){})}}}function Ur(e){var t=document.getElementById(e);Wr(t),Vr(t),s(window,"scroll",tt(Wr.bind(this,t),10)),s(window,"scroll",rt(Vr.bind(this,t),10)),a(window,"scroll",tt(Wr.bind(this,t),10)),a(window,"scroll",rt(Vr.bind(this,t),10))}function qr(){}Mr.prototype=Lr;var $r={setInsertRules:function(e){var t=Ar(e);this.firstPageRules=t.firstPageRules||c[e.layout],this.defaultRules=t.defaultRules||c[e.layout]},initDOM:function(e,t){(this.isValid=500<=t.w,this.validMessage="当前广告样式的广告位需要满足宽大于等于500",this.fontSize=20*t.w/650,this.setInsertRules(t),_(t.userConf)?this.userConf={titleFontSize:16,titleFontColor:"#404040",contentBackground:"#fff",titleHover:"red",titleFontFamily:"Microsoft YaHei",isShowTab:!0,tabFontColor:"#000",tabFontSize:16,tabFontFamily:"Microsoft YaHei",tabBackground:"#fff",tabActive:"#d43d3d",tabHover:"red"}:this.userConf=t.userConf,_(t.isFeedSp)?(this.isFeedSp=!1,this.feed=oe):(this.isFeedSp=t.isFeedSp,this.userConf.isShowTab=!1,this.feed=se),this.css+=bt(t.w,e,this.userConf),this.css+=ft(t.w,e,this.userConf),this.css+=mt(t.w,e,this.userConf),this.css+=lt(t.w,e,this.userConf),this.css+=Bt(t.w,e,this.userConf),this.isValid=this.isValid&&("RSBpV9"===t.showid||!Yt()),this.isValid)?(document.getElementById(e).style.fontSize=this.fontSize+"px",this.css+=d.getStyle(t.w,t.h,this.userConf,e),this.options=t,p(this.css),document.getElementById(e+"-tab").innerHTML=d.render(this.options.w,this.options.h,this.userConf,e),this.update(e),this.hasScroll=!1):document.getElementById(e).innerHTML=""+this.validMessage+"
"},renderAd:function(e,t,i){var r=[];return _(e)||_(e.ads)||m(e.ads)?[]:(Ht(e.ads,function(e){if(1===parseInt(e.type)){var t=_t(e.title,e.img,e.curl,e.src,i,"广告");t=ce.fill(t,e),r.push(t)}else if(2===parseInt(e.type)){t="";var n=e.assets;t=_(e.assets[0].imgw)||e.assets[0].imgw!==e.assets[0].imgh?dt(e.title,n,e.curl,e.src,"广告",i):gt(e.title,n,e.curl,e.src,"广告",i),t=ce.fill(t,e),r.push(t)}else if(3===parseInt(e.type)){t=st(e.title,e.img,e.curl,e.src,i,"广告");t=ce.fill(t,e),r.push(t)}else if(4===parseInt(e.type)){t="";t=/msie/i.test(navigator.userAgent)?_t(e.title,e.img,e.curl,e.src,i,"广告"):Rt(e.video,e.title,e.img,e.curl,e.src,i,"广告"),t=ce.fill(t,e),r.push(t)}}),r)},renderFeed:function(d,f,h,p){var g=[];return _(d)||_(d.data)||_(d.data.res)?[]:(Ht(d.data.res,function(e){var t=(e.bigi||"").split("|"),n=(e.i||"").split("|"),i=e.t||"",r=e.pcurl||"",o=e.stag||"",a=e.f||o.split("|")[0]||"",s=(e.i||"").split("|");if(1"+this.validMessage+""},renderAd:function(e,t,i){var r=[];switch(t.layout){case"singleColumn":if(_(e)||_(e.ads)||m(e.ads))return[];Ht(e.ads,function(e){if(1===parseInt(e.type)){var t=_t(e.title,e.img,e.curl,e.src,i,"广告");t=ce.fill(t,e),r.push(t)}else if(2===parseInt(e.type)){t="";var n=e.assets;t=_(e.assets[0].imgw)||e.assets[0].imgw!==e.assets[0].imgh?dt(e.title,n,e.curl,e.src,"广告",i):gt(e.title,n,e.curl,e.src,"广告",i),t=ce.fill(t,e),r.push(t)}else if(3===parseInt(e.type)){t=st(e.title,e.img,e.curl,e.src,i,"广告");t=ce.fill(t,e),r.push(t)}else if(4===parseInt(e.type)){t="";t=/msie/i.test(navigator.userAgent)?_t(e.title,e.img,e.curl,e.src,i,"广告"):Rt(e.video,e.title,e.img,e.curl,e.src,i,"广告"),t=ce.fill(t,e),r.push(t)}});break;case"splitColumn":if(_(e)||_(e.ads)||m(e.ads))return[];Ht(e.ads,function(e){var t=e.img;"2"===e.type&&(t=e.assets[0].img);var n=Ct(e.title,t,e.curl,e.src,i,"广告");n=ce.fill(n,e),r.push(n)});break;case"thinSingleColumn":if(_(e)||_(e.ads)||m(e.ads))return[];Ht(e.ads,function(e){var t=e.img;"2"===e.type&&(t=e.assets[0].img);var n=_t(e.title,t,e.curl,e.src,i,"广告 · "+e.src);n=ce.fill(n,e),r.push(n)});break;case"multiColumn":if(_(e)||_(e.ads)||m(e.ads))return[];Ht(e.ads,function(e){var t=e.img;"2"===e.type&&(t=e.assets[0].img);var n=St(e.title,t,e.curl,e.src,i,"广告");n=ce.fill(n,e),r.push(n)})}return r},renderFeed:function(u,d,f,h){var p=[];switch(d.layout){case"singleColumn":if(_(u)||_(u.data)||_(u.data.res))return[];Ht(u.data.res,function(e){var t=(e.bigi||"").split("|"),n=(e.i||"").split("|"),i=e.t||"",r=1===e.style?t[0]:n[0]||"",o=e.pcurl||"",a=e.stag||"",s=e.f||a.split("|")[0]||"";if(!m(r)){var l=_t(i,r,o,s,h);l=this.feed.fill(l,e,u,d.sign,f,d.showid),p.push(l)}}.bind(this));break;case"splitColumn":if(_(u)||_(u.data)||_(u.data.res))return[];Ht(u.data.res,function(e){var t=(e.bigi||"").split("|"),n=(e.i||"").split("|"),i=e.t||"",r=1===e.style?t[0]:n[0]||"",o=e.pcurl||"",a=e.stag||"",s=e.f||a.split("|")[0]||"";if(!m(r)){var l=Ct(i,r,o,s,h);l=this.feed.fill(l,e,u,d.sign,f,d.showid),p.push(l)}}.bind(this));break;case"thinSingleColumn":if(_(u)||_(u.data)||_(u.data.res))return[];Ht(u.data.res,function(e){var t=(e.bigi||"").split("|"),n=(e.i||"").split("|"),i=e.t||"",r=1===e.style?t[0]:n[0]||"",o=e.pcurl||"",a=e.stag||"",s=e.f||a.split("|")[0]||"",l=e.c||"";if(!m(r)){var c=_t(i,r,o,s,h,l);c=this.feed.fill(c,e,u,d.sign,f,d.showid),p.push(c)}}.bind(this));break;case"multiColumn":if(_(u)||_(u.data)||_(u.data.res))return[];Ht(u.data.res,function(e){var t=(e.bigi||"").split("|"),n=(e.i||"").split("|"),i=e.t||"",r=1===e.style?t[0]:n[0]||"",o=e.pcurl||"",a=e.stag||"",s=e.f||a.split("|")[0]||"";if(!m(r)){var l=St(i,r,o,s,h);l=this.feed.fill(l,e,u,d.sign,f,d.showid),p.push(l)}}.bind(this))}return p},mix:function(e,t,n){var i="";if(0'},Gr.prototype.getStyle=function(e,t,n,i){return w(x(Xr,{w:e}),i)};var Jr=new Gr;function Kr(n){var e=document.getElementById(n),t=function(e){var t=e.target;l(t.className)&&-1"+this.validMessage+""},renderAd:function(e,t,i){var r=[];switch(t.layout){case"singleColumn":if(_(e)||_(e.ads)||m(e.ads))return[];Ht(e.ads,function(e){if(1===parseInt(e.type)){var t=_t(e.title,e.img,e.curl,e.src,i,"广告");t=ce.fill(t,e),r.push(t)}else if(2===parseInt(e.type)){t="";var n=e.assets;t=_(e.assets[0].imgw)||e.assets[0].imgw!==e.assets[0].imgh?dt(e.title,n,e.curl,e.src,"广告",i):gt(e.title,n,e.curl,e.src,"广告",i),t=ce.fill(t,e),r.push(t)}else if(3===parseInt(e.type)){t=st(e.title,e.img,e.curl,e.src,i,"广告");t=ce.fill(t,e),r.push(t)}else if(4===parseInt(e.type)){t="";t=/msie/i.test(navigator.userAgent)?_t(e.title,e.img,e.curl,e.src,i,"广告"):Rt(e.video,e.title,e.img,e.curl,e.src,i,"广告"),t=ce.fill(t,e),r.push(t)}});break;case"splitColumn":if(_(e)||_(e.ads)||m(e.ads))return[];Ht(e.ads,function(e){var t=e.img;"2"===e.type&&(t=e.assets[0].img);var n=Ct(e.title,t,e.curl,e.src,i,"广告");n=ce.fill(n,e),r.push(n)});break;case"thinSingleColumn":if(_(e)||_(e.ads)||m(e.ads))return[];Ht(e.ads,function(e){var t=e.img;"2"===e.type&&(t=e.assets[0].img);var n=_t(e.title,t,e.curl,e.src,i,"广告 · "+e.src);n=ce.fill(n,e),r.push(n)});break;case"multiColumn":if(_(e)||_(e.ads)||m(e.ads))return[];Ht(e.ads,function(e){var t=e.img;"2"===e.type&&(t=e.assets[0].img);var n=St(e.title,t,e.curl,e.src,i,"广告");n=ce.fill(n,e),r.push(n)})}return r},renderFeed:function(u,d,f,h){var p=[];switch(d.layout){case"singleColumn":if(_(u)||_(u.data)||_(u.data.res))return[];Ht(u.data.res,function(e){var t=(e.bigi||"").split("|"),n=(e.i||"").split("|"),i=e.t||"",r=1===e.style?t[0]:n[0]||"",o=e.pcurl||"",a=e.stag||"",s=e.f||a.split("|")[0]||"";if(!m(r)){var l=_t(i,r,o,s,h);l=this.feed.fill(l,e,u,d.sign,f,d.showid),p.push(l)}}.bind(this));break;case"splitColumn":if(_(u)||_(u.data)||_(u.data.res))return[];Ht(u.data.res,function(e){var t=(e.bigi||"").split("|"),n=(e.i||"").split("|"),i=e.t||"",r=1===e.style?t[0]:n[0]||"",o=e.pcurl||"",a=e.stag||"",s=e.f||a.split("|")[0]||"";if(!m(r)){var l=Ct(i,r,o,s,h);l=this.feed.fill(l,e,u,d.sign,f,d.showid),p.push(l)}}.bind(this));break;case"thinSingleColumn":if(_(u)||_(u.data)||_(u.data.res))return[];Ht(u.data.res,function(e){var t=(e.bigi||"").split("|"),n=(e.i||"").split("|"),i=e.t||"",r=1===e.style?t[0]:n[0]||"",o=e.pcurl||"",a=e.stag||"",s=e.f||a.split("|")[0]||"",l=e.c||"";if(!m(r)){var c=_t(i,r,o,s,h,l);c=this.feed.fill(c,e,u,d.sign,f,d.showid),p.push(c)}}.bind(this));break;case"multiColumn":if(_(u)||_(u.data)||_(u.data.res))return[];Ht(u.data.res,function(e){var t=(e.bigi||"").split("|"),n=(e.i||"").split("|"),i=e.t||"",r=1===e.style?t[0]:n[0]||"",o=e.pcurl||"",a=e.stag||"",s=e.f||a.split("|")[0]||"";if(!m(r)){var l=St(i,r,o,s,h);l=this.feed.fill(l,e,u,d.sign,f,d.showid),p.push(l)}}.bind(this))}return p},renderWindowAd:function(i,e,r){var o=[];switch(e.layout){case"singleColumn":if(_(i)||_(i.ads)||m(i.ads))return[];Ht(i.ads,function(e){var t=_t(e.title||e.desc,e.img,e.curl,"",r,"广告");t=de.fill(t,e,i),o.push(t)});break;case"splitColumn":if(_(i)||_(i.ads)||m(i.ads))return[];Ht(i.ads,function(e){var t=e.img,n=Ct(e.title||e.desc,t,e.curl,"",r,"广告");n=de.fill(n,e,i),o.push(n)});break;case"thinSingleColumn":if(_(i)||_(i.ads)||m(i.ads))return[];Ht(i.ads,function(e){var t=e.img,n=_t(e.title||e.desc,t,e.curl,"",r,"广告 · "+e.src);n=de.fill(n,e,i),o.push(n)});break;case"multiColumn":if(_(i)||_(i.ads)||m(i.ads))return[];Ht(i.ads,function(e){var t=e.img,n=St(e.title||e.desc,t,e.curl,"",r,"广告");n=de.fill(n,e,i),o.push(n)})}return o},mix:function(e,t,n){var i="";if(0"+this.validMessage+""},next:function(e,t,n){var i=v.cads[n].options,r=(this.userConf,e),o=this.renderAd([t],i,r);document.getElementById(e+"-info").innerHTML=o.join(""),qt(e+"-info")},renderAd:function(e,t,i){var r=[];return 500<=t.w?Ht(e,function(e){if(1===parseInt(e.type)){var t=_t(e.title,e.img,e.curl,e.src,i,"广告");t=ce.fill(t,e),r.push(t)}else if(2===parseInt(e.type)){t="";var n=e.assets;t=_(e.assets[0].imgw)||e.assets[0].imgw!==e.assets[0].imgh?dt(e.title,n,e.curl,e.src,"广告",i):gt(e.title,n,e.curl,e.src,"广告",i),t=ce.fill(t,e),r.push(t)}else if(3===parseInt(e.type)){t=st(e.title,e.img,e.curl,e.src,i,"广告");t=ce.fill(t,e),r.push(t)}else if(4===parseInt(e.type)){t="";t=(t=/msie/i.test(navigator.userAgent)?_t(e.title,e.img,e.curl,e.src,i,"广告"):Rt(e.video,e.title,e.img,e.curl,e.src,i,"广告"),ce.fill(t,e)),r.push(t)}}):Ht(e,function(e){var t=e.img;"2"===e.type&&(t=e.assets[0].img);var n=_t(e.title,t,e.curl,e.src,i,"广告 · "+e.src);n=ce.fill(n,e),r.push(n)}),r},initEvent:function(e){if(this.isValid){document.getElementById(e);Nt(e),h(function(e){qt(e+"-info")}.bind(this,e))}}};function no(){}function io(e,t,n,i){var r={title:e.title,img:e.img,curl:e.curl,source:e.src,prefix:t,pos:i.imagePosition},o="";return!_(n)&&-1',r)),r.ad=o,x(vt,r)}function ro(e,t,n,i){var r=0,o=0;switch(i.imagePosition){case"left":case"right":r=e-i.paddingLeft-i.paddingRight-i.imageWidth,o=t-i.paddingTop-i.paddingBottom;break;case"top":case"bottom":r=e-i.paddingLeft-i.paddingRight,o=t-i.paddingTop-i.paddingBottom-i.imageHeight}var a=i.imageWidth,s=i.imageHeight,l=0,c=0,u=0,d=a/s;1.62<=d&&d<=1.1*1.8?(l=a,c=s):"clip"===i.imageFill?(l=a,c=s):u=(s-(c=(l=a)/1.8))/2;var f={prefix:n,width:e-i.paddingLeft-i.paddingRight,height:t-i.paddingTop-i.paddingBottom,displayImage:i.displayImage?"block":"none",imageBorderRadius:i.imageBorderRadius,imgPadding:u,imgW:l,imgH:c,imageFill:i.imageFill,displayTitle:i.displayTitle?"block":"none",titleFontSize:i.titleFontSize,titleFontColor:i.titleFontColor,titleFontFamily:i.titleFontFamily,titleFontWeight:i.titleFontWeight,titlePaddingTop:i.titlePaddingTop,titlePaddingRight:i.titlePaddingRight,titlePaddingBottom:i.titlePaddingBottom,titlePaddingLeft:i.titlePaddingLeft,displayDesc:i.displayDesc?"block":"none",descFontSize:i.descFontSize,descFontColor:i.descFontColor,descFontFamily:i.descFontFamily,paddingTop:i.paddingTop,paddingRight:i.paddingRight,paddingBottom:i.paddingBottom,paddingLeft:i.paddingLeft,backgroundColor:i.backgroundColor,hoverColor:i.hoverColor,bodyWidth:r,bodyHeight:o};return w(x(yt,f),n)}function oo(e,t,n,i,r,o){for(var a={title:e,curl:n,source:i,tagName:r,prefix:o},s=[],l=0;l',a);s.push(c)}return a.imgsList=s.join(""),x(ct,a)}function ao(e,t,n,i){var r=i.multiImageWidth,o=i.multiImageHeight,a=0,s=0,l=0,c=r/o;1.62<=c&&c<=1.1*1.8?(a=r,s=o):"clip"===i.multiImageFill?(a=r,s=o):l=(o-(s=(a=r)/1.8))/2;var u=Math.max(0,t-i.multiPaddingTop-i.multiPaddingBottom-1.3*i.multiTitleFontSize-i.multiTitlePaddingTop-i.multiTitlePaddingBottom-s-2*l),d={prefix:n,width:e,height:t-i.multiPaddingTop-i.multiPaddingBottom,imageBorderRadius:i.multiImageBorderRadius,imgPadding:l,imgW:a,imgH:s,imageFill:i.multiImageFill,imageSplitWidth:i.multiImageSplitWidth,titleFontSize:i.multiTitleFontSize,titleFontColor:i.multiTitleFontColor,titleFontFamily:i.multiTitleFontFamily,titleFontWeight:i.multiTitleFontWeight,titlePaddingTop:i.multiTitlePaddingTop,titlePaddingRight:i.multiTitlePaddingRight,titlePaddingBottom:i.multiTitlePaddingBottom,titlePaddingLeft:i.multiTitlePaddingLeft,srcHeight:u,paddingTop:i.multiPaddingTop,paddingRight:i.multiPaddingRight,paddingBottom:i.multiPaddingBottom,paddingLeft:i.multiPaddingLeft,backgroundColor:i.multiBackgroundColor,hoverColor:i.multiHoverColor};return w(x(ut,d),n)}function so(e,t,n,i,r,o){return x(ot,{title:e,img:t,curl:n,prefix:r,tagName:o||"",src:i})}function lo(e,t,n,i){var r=i.largeImageWidth,o=i.largeImageHeight,a=0,s=0,l=0,c=r/o;2.7<=c&&c<=1.1*3?(a=r,s=o):l=1.1*3'+t[l].desc+"");var u=x(''+c+"",a);s.push(u)}return a.imgsList=s.join(""),x(ht,a)}function fo(e,t,n,i){var r=i.multiImageWidth,o=i.multiImageHeight,a=0,s=0,l=0,c=r/o;.9<=c&&c<=1.1?(a=r,s=o):l=(r-(a=(s=o)/1))/2;var u=Math.max(0,t-i.multiPaddingTop-i.multiPaddingBottom-1.3*i.multiTitleFontSize-i.multiTitlePaddingTop-i.multiTitlePaddingBottom-s),d={prefix:n,width:e,height:t-i.multiPaddingTop-i.multiPaddingBottom,imageBorderRadius:i.multiImageBorderRadius,imgHorizontalPadding:l,imgW:a,imgH:s,imageFill:i.multiImageFill,imageSplitWidth:i.multiImageSplitWidth,titleFontSize:i.multiTitleFontSize,titleFontColor:i.multiTitleFontColor,titleFontFamily:i.multiTitleFontFamily,titleFontWeight:i.multiTitleFontWeight,titlePaddingTop:i.multiTitlePaddingTop,titlePaddingRight:i.multiTitlePaddingRight,titlePaddingBottom:i.multiTitlePaddingBottom,titlePaddingLeft:i.multiTitlePaddingLeft,srcHeight:u,paddingTop:i.multiPaddingTop,paddingRight:i.multiPaddingRight,paddingBottom:i.multiPaddingBottom,paddingLeft:i.multiPaddingLeft,backgroundColor:i.multiBackgroundColor,hoverColor:i.multiHoverColor};return w(x(co,d),n)}var ho={initDOM:function(e,t){if(this.isValid=("RSBpV9"===t.showid||!Yt())&&40<=t.w&&40<=t.h,this.validMessage="当前广告样式的广告位需要满足宽和高均大于等于40",this.adNum=4,this.isValid){document.getElementById(e);var n=t.showid;v.define[n].pn=v.define[n].pn||1,v.define[n].loading=v.define[n].loading||!1,v.define[n].containerIDs=v.define[n].containerIDs||[],v.define[n].ads=v.define[n].ads||[],v.define[n].options=v.define[n].options||t,v.define[n].onFail=v.define[n].onFail||t.onFail;var i=ro(t.w,t.h,e,t.define);i+=ao(t.w,t.h,e,t.define),i+=fo(t.w,t.h,e,t.define),p(i+=lo(t.w,t.h,e,t.define)),0"+this.validMessage+""},next:function(e,t,n){var i=v.define[n].options.define,r=e,o=this.renderAd([t],i,r);document.getElementById(e+"-info").innerHTML=o.join(""),qt(e+"-info")},renderAd:function(e,i,r){var o=[];return _(i.displayImage)&&(i.displayImage=!0),_(i.displayTitle)&&(i.displayTitle=!0),_(i.displayDesc)&&(i.displayDesc=!0),Ht(e,function(e){if(1===parseInt(e.type)){var t=io(e,r,"广告",i);t=ce.fill(t,e),o.push(t)}else if(2===parseInt(e.type)){t="";var n=e.assets;t=_(e.assets[0].imgw)||e.assets[0].imgw!==e.assets[0].imgh?oo(e.title,n,e.curl,e.src,"广告",r):uo(e.title,n,e.curl,e.src,"广告",r),t=ce.fill(t,e),o.push(t)}else if(3===parseInt(e.type)){t=so(e.title,e.img,e.curl,e.src,r,"广告");t=ce.fill(t,e),o.push(t)}else parseInt(e.type)}),o},initEvent:function(e){if(this.isValid){document.getElementById(e);Nt(e)}}};function po(){document.createElement("newsfeed"),p("newsfeed{display:block;}newsfeed .img{background-size:cover;background-repeat:no-repeat;}"),Nr(document)}function go(e){var t=e.inject||"inlay";if("cads"!==t&&"define"!==t&&"text"!==t){if(-1',{id:r,width:e.w,height:e.h,infoHeight:e.userConf&&!e.userConf.isShowTab?e.h:e.h-42});p("#"+r+"-info::-webkit-scrollbar{background-color:#e0e0e0;height:16px;width:8px}#"+r+"-info::-webkit-scrollbar-track{background-color:#f5f5f5;border-radius:10px;-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}#"+r+"-info::-webkit-scrollbar-thumb{background-color:#e0e0e0;border-radius:10px;-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3);height:20px}"),m(e.placeholderId)||_(e.placeholderId)?(document.write(i),n.initDOM(r,e),n.initEvent(r,e)):h(function(e,t,n){try{document.getElementById(e.placeholderId).innerHTML=n,t.initDOM(r,e),t.initEvent(r,e)}catch(i){}}.bind(this,e,n,i));break;case"bottom":var o=new qr;i=x('',{id:r,width:e.w});m(e.placeholderId)||_(e.placeholderId)?(document.write(i),o.initDOM(r,e),o.initEvent(r)):h(function(e,t,n){try{document.getElementById(e.placeholderId).innerHTML=n,t.initDOM(r,e),t.initEvent(r)}catch(i){}}.bind(this,e,o,i));break;case"fix":var a=new Yr;i=x('',{id:r,width:e.w,height:e.h,infoHeight:e.userConf&&!e.userConf.isShowTab?e.h:e.h-42,top:e.top});p("#"+r+"-info::-webkit-scrollbar{background-color:#e0e0e0;height:16px;width:8px}#"+r+"-info::-webkit-scrollbar-track{background-color:#f5f5f5;border-radius:10px;-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}#"+r+"-info::-webkit-scrollbar-thumb{background-color:#e0e0e0;border-radius:10px;-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3);height:20px}"),m(e.placeholderId)||_(e.placeholderId)?(document.write(i),a.initDOM(r,e),a.initEvent(r,e)):h(function(e,t,n){try{document.getElementById(e.placeholderId).innerHTML=n,a.initDOM(r,e),a.initEvent(r,e)}catch(i){}}.bind(this,e,o,i));break;case"float":var s=new Zr;i=x('',{id:r,width:e.w,height:e.h+18,infoHeight:e.userConf&&!e.userConf.isShowTab?e.h:e.h-42});p("#"+r+"-info::-webkit-scrollbar{background-color:#e0e0e0;height:16px;width:8px}#"+r+"-info::-webkit-scrollbar-track{background-color:#f5f5f5;border-radius:10px;-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}#"+r+"-info::-webkit-scrollbar-thumb{background-color:#e0e0e0;border-radius:10px;-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3);height:20px}"),h(function(e,t){try{var n=document.createElement("div");document.body.appendChild(n),n.innerHTML=t,s.initDOM(r,e),s.initEvent(r,e)}catch(i){}}.bind(this,e,i));break;case"cads":var l=new no,c=(i=x('',{id:r,width:e.w}),document.getElementById(e.fId)),u=document.getElementById(e.placeholderId),d=document.getElementById(e.placeholderId);if(!_(c)&&!_(u))for(var f=0;d.id!==e.fid&&f<10;)d=d.parentNode,f++;_(u)?document.write(i):(u.innerHTML=i,u.removeAttribute("id")),l.initDOM(r,e),l.initEvent(r);break;case"define":i=x('',{id:r,width:e.w,height:e.h});_(u=document.getElementById(e.placeholderId))?document.write(i):(u.innerHTML=i,u.removeAttribute("id")),ho.initDOM(r,e),ho.initEvent(r)}}return po(),go}();
;