var NEWS_FEED=function(){"use strict";Array.prototype.filter||(Array.prototype.filter=function(e,t){if("Function"!=typeof e&&"function"!=typeof e||!this)throw new TypeError;var n=this.length>>>0,r=new Array(n),i=this,o=0,a=-1;if(t===undefined)for(;++a!==n;)a in this&&e(i[a],a,i)&&(r[o++]=i[a]);else for(;++a!==n;)a in this&&e.call(t,i[a],a,i)&&(r[o++]=i[a]);return r.length=o,r}),Array.prototype.some||(Array.prototype.some=function(e){if(null==this)throw new TypeError("Array.prototype.some called on null or undefined");if("function"!=typeof e)throw new TypeError;for(var t=Object(this),n=t.length>>>0,r=arguments.length>=2?arguments[1]:void 0,i=0;i>>0;if("function"!=typeof e)throw new TypeError(e+" is not a function");for(arguments.length>1&&(t=arguments[1]),n=new Array(o),r=0;r>>0;if("function"!=typeof e)throw new TypeError(e+" is not a function");for(arguments.length>1&&(t=arguments[1]),n=0;n0}}):(r.prototype.THROTTLE_TIMEOUT=100,r.prototype.POLL_INTERVAL=null,r.prototype.USE_MUTATION_OBSERVER=!0,r.prototype.observe=function(e){if(!this._observationTargets.some(function(t){return t.element==e})){if(!e||1!=e.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:e,entry:null}),this._monitorIntersections(),this._checkForIntersections()}},r.prototype.unobserve=function(e){this._observationTargets=this._observationTargets.filter(function(t){return t.element!=e}),this._observationTargets.length||(this._unmonitorIntersections(),this._unregisterInstance())},r.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorIntersections(),this._unregisterInstance()},r.prototype.takeRecords=function(){var e=this._queuedEntries.slice();return this._queuedEntries=[],e},r.prototype._initThresholds=function(e){var t=e||[0];return Array.isArray(t)||(t=[t]),t.sort().filter(function(e,t,n){if("number"!=typeof e||isNaN(e)||e<0||e>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return e!==n[t-1]})},r.prototype._parseRootMargin=function(e){var t=(e||"0px").split(/\s+/).map(function(e){var t=/^(-?\d*\.?\d+)(px|%)$/.exec(e);if(!t)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(t[1]),unit:t[2]}});return t[1]=t[1]||t[0],t[2]=t[2]||t[0],t[3]=t[3]||t[1],t},r.prototype._monitorIntersections=function(){this._monitoringIntersections||(this._monitoringIntersections=!0,this.POLL_INTERVAL?this._monitoringInterval=setInterval(this._checkForIntersections,this.POLL_INTERVAL):(i(e,"resize",this._checkForIntersections,!0),i(t,"scroll",this._checkForIntersections,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in e&&(this._domObserver=new MutationObserver(this._checkForIntersections),this._domObserver.observe(t,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))))},r.prototype._unmonitorIntersections=function(){this._monitoringIntersections&&(this._monitoringIntersections=!1,clearInterval(this._monitoringInterval),this._monitoringInterval=null,o(e,"resize",this._checkForIntersections,!0),o(t,"scroll",this._checkForIntersections,!0),this._domObserver&&(this._domObserver.disconnect(),this._domObserver=null))},r.prototype._checkForIntersections=function(){var t=this._rootIsInDom(),r=t?this._getRootRect():{top:0,bottom:0,left:0,right:0,width:0,height:0};this._observationTargets.forEach(function(i){var o=i.element,s=a(o),l=this._rootContainsTarget(o),c=i.entry,u=t&&l&&this._computeTargetAndRootIntersection(o,r),d=i.entry=new n({time:e.performance&&performance.now&&performance.now(),target:o,boundingClientRect:s,rootBounds:r,intersectionRect:u});c?t&&l?this._hasCrossedThreshold(c,d)&&this._queuedEntries.push(d):c&&c.isIntersecting&&this._queuedEntries.push(d):this._queuedEntries.push(d)},this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)},r.prototype._computeTargetAndRootIntersection=function(n,r){if("none"!=e.getComputedStyle(n).display){for(var i,o,s,c,u,d,f,g,h=a(n),p=l(n),m=!1;!m;){var v=null,y=1==p.nodeType?e.getComputedStyle(p):{};if("none"==y.display)return;if(p==this.root||p==t?(m=!0,v=r):p!=t.body&&p!=t.documentElement&&"visible"!=y.overflow&&(v=a(p)),v&&(i=v,o=h,void 0,void 0,void 0,void 0,void 0,void 0,s=Math.max(i.top,o.top),c=Math.min(i.bottom,o.bottom),u=Math.max(i.left,o.left),d=Math.min(i.right,o.right),g=c-s,!(h=(f=d-u)>=0&&g>=0&&{top:s,bottom:c,left:u,right:d,width:f,height:g})))break;p=l(p)}return h}},r.prototype._getRootRect=function(){var e;if(this.root)e=a(this.root);else{var n=t.documentElement,r=t.body;e={top:0,left:0,right:n.clientWidth||r.clientWidth,width:n.clientWidth||r.clientWidth,bottom:n.clientHeight||r.clientHeight,height:n.clientHeight||r.clientHeight}}return this._expandRectByRootMargin(e)},r.prototype._expandRectByRootMargin=function(e){var t=this._rootMarginValues.map(function(t,n){return"px"==t.unit?t.value:t.value*(n%2?e.width:e.height)/100}),n={top:e.top-t[0],right:e.right+t[1],bottom:e.bottom+t[2],left:e.left-t[3]};return n.width=n.right-n.left,n.height=n.bottom-n.top,n},r.prototype._hasCrossedThreshold=function(e,t){var n=e&&e.isIntersecting?e.intersectionRatio||0:-1,r=t.isIntersecting?t.intersectionRatio||0:-1;if(n!==r)for(var i=0;i-1&&e%1==0&&e-1&&e%1==0&&e<=M},H={};H["[object Float32Array]"]=H["[object Float64Array]"]=H["[object Int8Array]"]=H["[object Int16Array]"]=H["[object Int32Array]"]=H["[object Uint8Array]"]=H["[object Uint8ClampedArray]"]=H["[object Uint16Array]"]=H["[object Uint32Array]"]=!0,H["[object Arguments]"]=H["[object Array]"]=H["[object ArrayBuffer]"]=H["[object Boolean]"]=H["[object DataView]"]=H["[object Date]"]=H["[object Error]"]=H["[object Function]"]=H["[object Map]"]=H["[object Number]"]=H["[object Object]"]=H["[object RegExp]"]=H["[object Set]"]=H["[object String]"]=H["[object WeakMap]"]=!1;var B=function(e){return x(e)&&L(e.length)&&!!H[I(e)]};var W=function(e){return function(t){return e(t)}},z=n(function(e,t){var n=t&&!t.nodeType&&t,r=n&&e&&!e.nodeType&&e,i=r&&r.exports===n&&l.process,o=function(){try{var e=r&&r.require&&r.require("util").types;return e||i&&i.binding&&i.binding("util")}catch(t){}}();e.exports=o}),D=z&&z.isTypedArray,q=D?W(D):B,U=Object.prototype.hasOwnProperty;var V=function(e,t){var n=S(e),r=!n&&F(e),i=!n&&!r&&N(e),o=!n&&!r&&!i&&q(e),a=n||r||i||o,l=a?s(e.length,String):[],c=l.length;for(var u in e)!t&&!U.call(e,u)||a&&("length"==u||i&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||C(u,c))||l.push(u);return l};var $=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},Y=Object.prototype;var X=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Y)};var K=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},G=Object.prototype.hasOwnProperty;var J=function(e){if(!$(e))return K(e);var t=X(e),n=[];for(var r in e)("constructor"!=r||!t&&G.call(e,r))&&n.push(r);return n},Q="[object AsyncFunction]",Z="[object Function]",ee="[object GeneratorFunction]",te="[object Proxy]";var ne=function(e){if(!$(e))return!1;var t=I(e);return t==Z||t==ee||t==Q||t==te};var re=function(e){return null!=e&&L(e.length)&&!ne(e)};var ie=function(e){return re(e)?V(e,!0):J(e)};var oe=function(e,t){return null==e?e:i(e,a(t),ie)};var ae=function(e,t){for(var n=-1,r=null==e?0:e.length;++n0&&n(s)?t>1?Oa(s,t-1,n,r,i):ge(i,s):r||(i[i.length]=s)}return i},ve=1/0;var ye=function(e){return null!=e&&e.length?me(e,ve):[]},_e=1;function be(e){return $(e)&&e.nodeType===_e}var we={createElement:function(e,t,n){var r=document.createElement(e);oe(t,function(e,t){switch(t){case"className":r.className=e;break;case"style":r.style.cssText=e;break;default:r.setAttribute(t,e)}});var i=ye(n);return fe(i,function(e){if(be(e))r.appendChild(e);else if("string"!=typeof e&&"number"!=typeof e);else{var t=document.createTextNode(String(e));r.appendChild(t)}}),r},render:function(e,t){t.innerHTML="",t.appendChild(e)}};function Ie(e,t,n){var r=[].concat(e);if(r.length>0&&t.length>0){for(var i=0,o=0,a=n;o=0;t--)n=0!=(r=266338304&(n=(n<<6&268435455)+(r=e.charCodeAt(t))+(r<<14)))?n^r>>21:n;return n}return(""+e(document.referrer)+(new Date).getTime()+e(document.cookie)).substr(0,32)}(),window[xe].displayShowId=[]);var Ee=window[xe],Te={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}},Pe=2,Re=0,Fe=650,Se=Fe/10,Ae=["inlay","bottom","float","fix"],Ne=["cads","define","textual"];function je(e,t,n,r){r=!0===r;var i=this;if(window.addEventListener)return e.addEventListener(t,function(e){n.call(i,e)},r);e.attachEvent("on"+t,function(){var e=window.event;e.target=e.srcElement,n.call(i,e)})}var Oe=function(){return u.Date.now()},Ce="[object Symbol]";var Me=function(e){return"symbol"==typeof e||x(e)&&I(e)==Ce},Le=NaN,He=/^\s+|\s+$/g,Be=/^[-+]0x[0-9a-f]+$/i,We=/^0b[01]+$/i,ze=/^0o[0-7]+$/i,De=parseInt;var qe=function(e){if("number"==typeof e)return e;if(Me(e))return Le;if($(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=$(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(He,"");var n=We.test(e);return n||ze.test(e)?De(e.slice(2),n?2:8):Be.test(e)?Le:+e},Ue="Expected a function",Ve=Math.max,$e=Math.min;var Ye=function(e,t,n){var r,i,o,a,s,l,c=0,u=!1,d=!1,f=!0;if("function"!=typeof e)throw new TypeError(Ue);function g(t){var n=r,o=i;return r=i=undefined,c=t,a=e.apply(o,n)}function h(e){var n=e-l;return l===undefined||n>=t||n<0||d&&e-c>=o}function p(){var e=Oe();if(h(e))return m(e);s=setTimeout(p,function(e){var n=t-(e-l);return d?$e(n,o-(e-c)):n}(e))}function m(e){return s=undefined,f&&r?g(e):(r=i=undefined,a)}function v(){var e=Oe(),n=h(e);if(r=arguments,i=this,l=e,n){if(s===undefined)return function(e){return c=e,s=setTimeout(p,t),u?g(e):a}(l);if(d)return clearTimeout(s),s=setTimeout(p,t),g(l)}return s===undefined&&(s=setTimeout(p,t)),a}return t=qe(t)||0,$(n)&&(u=!!n.leading,o=(d="maxWait"in n)?Ve(qe(n.maxWait)||0,t):o,f="trailing"in n?!!n.trailing:f),v.cancel=function(){s!==undefined&&clearTimeout(s),c=0,r=l=i=s=undefined},v.flush=function(){return s===undefined?a:m(Oe())},v},Xe="Expected a function";var Ke=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new TypeError(Xe);return $(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Ye(e,t,{leading:r,maxWait:t,trailing:i})};var Ge=function(e){return null==e};function Je(e,t,n,r){var i=we.createElement("newsfeed-main");switch(t){case"inlay":case"bottom":Qe(e,i,n,r);break;case"float":Qe(e,i,n,r),function(e,t){var n=t.pos,r=t.userConf;e.style.position="fixed";var i=0,o=0;r&&(i=r.verticalMargin||0,o=r.horizontalMargin||0);"left"===n?e.style.left=o+"px":e.style.right=o+"px";e.style.bottom=i+"px"}(e,n);break;case"fix":Qe(e,i,n,r),function(e,t){var n=t.fixParent,r=document.getElementById(n);if(Ge(r))return;je(window,"scroll",Ke(function(){r.getBoundingClientRect().top<0?(e.style.position="fixed",e.style.top="0px",e.style.left=r.getBoundingClientRect().left+"px"):(e.style.position="relative",e.style.top="auto",e.style.left="auto")},10))}(e,n);break;case"cads":case"define":case"textual":n.preventScroll=!0,Qe(e,i,n,r)}return i}function Qe(e,t,n,r){var i="contentAd"===r,o=n.w,a=n.h,s=n.userConf,l=n.preventScroll,c=n.inject,u=n.shouldShowCloseBtn,d=a-(!(s&&!s.isShowTab)&&i?30:0)-(u||"float"===c?18:0);e.style.width=o+"px",i&&"bottom"!==c&&(e.style.height=a+"px",t.style.height=d+"px"),t.style.overflowX="hidden",t.style.overflowY=!0===l?"hidden":"auto"}var Ze=function(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o-1:!!i&&nt(e,t,n)>-1};var ht=[{"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:"体育"}],pt="#'@containerId' info-div,#'@containerId' newsfeed,#'@containerId' newsfeed-header,#'@containerId' newsfeed-main,#'@containerId' newsfeed-menu{display:block}#'@containerId' info-span{display:inline}";var mt=function(){},vt="#'@containerId' .feed-toolbar{overflow:hidden}#'@containerId' .feed-toolbar .toolbar__closeBtn{float:right;width:54px;height:18px;background:url('//p0.ssl.qhimg.com/d/inn/69518715/close.jpg');cursor:pointer}#'@containerId' a{text-decoration:none}#'@containerId' .feed__wrapper{overflow:hidden}#'@containerId' .feed__wrapper .visited .feed__link .largeImage__title,#'@containerId' .feed__wrapper .visited .feed__link .multiImage__title,#'@containerId' .feed__wrapper .visited .feed__link .singleImageText__title,#'@containerId' .feed__wrapper .visited .feed__link .singleImage__title{color:#9e9e9e}#'@containerId' .feed__item{overflow:hidden}#'@containerId' .feed__item .feed__link{display:block;overflow:hidden;cursor:pointer}#'@containerId' .img{background-size:cover;position:relative;background-repeat:no-repeat}#'@containerId' .img .adTag{background:#666;background:rgba(0,0,0,0.5);color:#fff;font-size:12px;position:absolute;top:0;right:0;border-right:1px solid #bbb}#'@containerId' ::-webkit-scrollbar{width:8px;height:8px}#'@containerId' ::-webkit-scrollbar-thumb{background:rgba(37,36,36,0.57);border-radius:10px}#'@containerId' ::-webkit-scrollbar-track{background-color:#f5f5f5;border-radius:10px}",yt="#'@containerId' .twoPerRowSingleImage{float:left;width:48.5%;margin-right:1%}#'@containerId' .twoPerRowSingleImage .feed__link{position:relative;border-bottom:1px solid #ebebeb;padding:4px}#'@containerId' .twoPerRowSingleImage .twoPerRowSingleImage__img{float:left;width:'@singleImageWidth';margin-right:10px;max-width:180px;max-height:100px}#'@containerId' .twoPerRowSingleImage .twoPerRowSingleImage__img .img{padding-top:55.55%}#'@containerId' .twoPerRowSingleImage .twoPerRowSingleImage__body .twoPerRowSingleImage__title{height:40px;overflow:hidden;font-size:14px;line-height:20px;color:#222}#'@containerId' .twoPerRowSingleImage .twoPerRowSingleImage__body .twoPerRowSingleImage__desc{color:#999;font-size:14px}",_t="#'@containerId' .fourPerRowSingleImage{float:left;width:24.5%}#'@containerId' .fourPerRowSingleImage .feed__link{position:relative;border:none;padding:4px}#'@containerId' .fourPerRowSingleImage .fourPerRowSingleImage__img{width:'@singleImageWidth';margin-right:10px;max-width:180px;max-height:100px}#'@containerId' .fourPerRowSingleImage .fourPerRowSingleImage__img .img{padding-top:55.55%}#'@containerId' .fourPerRowSingleImage .fourPerRowSingleImage__body .fourPerRowSingleImage__title{height:40px;overflow:hidden;font-size:14px;line-height:20px;color:#222}#'@containerId' .fourPerRowSingleImage .fourPerRowSingleImage__body .fourPerRowSingleImage__desc{color:#999;font-size:14px}";function bt(e,t){return new RegExp(" "+t+" ").test(" "+e.className+" ")}function wt(e,t){return bt(e,t)||(e.className+=" "+t),e}function It(e,t){var n=" "+e.className.replace(/[\t\r\n]/g," ")+" ";if(bt(e,t)){for(;n.indexOf(" "+t+" ")>=0;)n=n.replace(" "+t+" "," ");e.className=n.replace(/^\s+|\s+$/g,"")}return e}function xt(e,t){var n=e;if("object"!=typeof t)throw"modifyVars must be an object";for(var r in t)if(t.hasOwnProperty(r)){var i=new RegExp("'"+r+"'","g");n=n.replace(i,t[r])}!function(e){var t="QIHOO_FEED_CSS",n=document.getElementById(t);if(null==n){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css",i.id=t,r.appendChild(i),n=document.getElementById(t)}n.styleSheet?n.styleSheet.cssText+=e:n.appendChild(document.createTextNode(e))}(n)}function kt(e){return(e/Se).toFixed(4)+"em"}var Et=function(){return(Et=Object.assign||function(e){for(var t,n=1,r=arguments.length;n-1};var Ot=function(e,t){var n=this.__data__,r=Ft(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function Ct(e){var t=-1,n=null==e?0:e.length;for(this.clear();++ts))return!1;var c=o.get(e);if(c&&o.get(t))return c==t;var u=-1,d=!0,f=n&Mn?new jn:undefined;for(o.set(e,t),o.set(t,e);++u0)return function(e){if((e=String(e)).length>100)return;var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(!t)return;var n=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return n*Xi;case"days":case"day":case"d":return n*Yi;case"hours":case"hour":case"hrs":case"hr":case"h":return n*$i;case"minutes":case"minute":case"mins":case"min":case"m":return n*Vi;case"seconds":case"second":case"secs":case"sec":case"s":return n*Ui;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return undefined}}(e);if("number"===r&&!1===isNaN(e))return t.long?Gi(n=e,Yi,"day")||Gi(n,$i,"hour")||Gi(n,Vi,"minute")||Gi(n,Ui,"second")||n+" ms":function(e){if(e>=Yi)return Math.round(e/Yi)+"d";if(e>=$i)return Math.round(e/$i)+"h";if(e>=Vi)return Math.round(e/Vi)+"m";if(e>=Ui)return Math.round(e/Ui)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function Gi(e,t,n){if(!(e=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage="undefined"!=typeof chrome&&"undefined"!=typeof chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}},t.enable(n())})),Zi=(Qi.log,Qi.formatArgs,Qi.save,Qi.load,Qi.useColors,Qi.storage,Qi.colors,Qi("jsonp"),function(e,t,n){"function"==typeof t&&(n=t,t={});t||(t={});var r,i,o=t.prefix||"__jp",a=t.name||o+eo++,s=t.param||"callback",l=null!=t.timeout?t.timeout:6e4,c=encodeURIComponent,u=document.getElementsByTagName("script")[0]||document.head;l&&(i=setTimeout(function(){d(),n&&n(new Error("Timeout"))},l));function d(){r.parentNode&&r.parentNode.removeChild(r),window[a]=to,i&&clearTimeout(i)}return window[a]=function(e){d(),n&&n(null,e)},e=(e+=(~e.indexOf("?")?"&":"?")+s+"="+c(a)).replace("?&","?"),(r=document.createElement("script")).src=e,u.parentNode.insertBefore(r,u),function(){window[a]&&d()}}),eo=0;function to(){}function no(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n+"="+encodeURIComponent(e[n]));return t.join("&")}function ro(e){return"[object Array]"===Object.prototype.toString.call(e)}function io(e){if(ro(e))return 0===e.length;if(r=e,"[object String]"===Object.prototype.toString.call(r))return""===e;if(function(e){return"[object Object]"===Object.prototype.toString.call(e)}(e)){var t=0;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){t++;break}return 0===t}return!1;var r}function oo(e){return null===e||e===undefined}function ao(e){return'"'+e+'"'}var so=9007199254740991,lo=4294967295,co=Math.min;var uo=function(e,t){if((e=lt(e))<1||e>so)return[];var n=lo,r=co(e,lo);t=a(t),e-=lo;for(var i=s(r,t);++n0){if(++t>=Uo)return arguments[0]}else t=0;return e.apply(undefined,arguments)}}(qo);var Xo=function(e,t){return Yo(Do(e,t,o),e+"")};var Ko=function(e){return Xo(function(t,n){var r=-1,i=n.length,o=i>1?n[i-1]:undefined,a=i>2?n[2]:undefined;for(o=e.length>3&&"function"==typeof o?(i--,o):undefined,a&&pi(n[0],n[1],a)&&(o=i<3?undefined:o,i=1),t=Object(t);++r>>0,r=new Array(n),i=this,o=0,a=-1;if(t===undefined)for(;++a!==n;)a in this&&e(i[a],a,i)&&(r[o++]=i[a]);else for(;++a!==n;)a in this&&e.call(t,i[a],a,i)&&(r[o++]=i[a]);return r.length=o,r}),Array.prototype.some||(Array.prototype.some=function(e){if(null==this)throw new TypeError("Array.prototype.some called on null or undefined");if("function"!=typeof e)throw new TypeError;for(var t=Object(this),n=t.length>>>0,r=arguments.length>=2?arguments[1]:void 0,i=0;i>>0;if("function"!=typeof e)throw new TypeError(e+" is not a function");for(arguments.length>1&&(t=arguments[1]),n=new Array(o),r=0;r>>0;if("function"!=typeof e)throw new TypeError(e+" is not a function");for(arguments.length>1&&(t=arguments[1]),n=0;n=0;i--){var o=r[i],a=o.getAttribute(n);a&&l(e,o)&&(a.split(",").forEach(function(e){return s(e)}),o.removeAttribute(n))}},n.getActualVisibleRect=function(e,t){var n,r,i,a,s,l,c,u;return function(e){return"object"==typeof e&&null!==e&&o["default"](["top","bottom","left","right"],function(t){return e.hasOwnProperty(t)})}(t)?(n=e,r=t,i=Math.max(n.top,r.top),a=Math.min(n.bottom,r.bottom),s=Math.max(n.left,r.left),l=Math.min(n.right,r.right),u=a-i,(c=l-s)>=0&&u>=0&&{top:i,bottom:a,left:s,right:l,width:c,height:u}):e}});t(Pa);Pa.hitTesting,Pa.containsDeep,Pa.checkSlots,Pa.getActualVisibleRect;var Ra=n(function(t,n){var r=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{"default":e}};n.__esModule=!0;var i=r(Ge);function o(e){var t=getComputedStyle(e,null),n=t&&t.overflowY;return"visible"!==(t&&t.overflowX)||"visible"!==n}n.canScroll=o,n.addScrollListener=function(e,t){if(1===e.nodeType){for(var n=e;!i["default"](n)&&n!==document.documentElement;)o(n)&&Ia.addEventListener(n,"scroll",t),n=n.parentElement;Ia.addEventListener(window,"scroll",t)}},n.removeScrollListener=function(e,t){if(1===e.nodeType){for(var n=e;!i["default"](n)&&n!==document.documentElement;)o(n)&&Ia.removeEventListener(n,"scroll",t),n=n.parentElement;Ia.removeEventListener(window,"scroll",t)}}});t(Ra);Ra.canScroll,Ra.addScrollListener,Ra.removeScrollListener;var Fa=n(function(e,t){t.__esModule=!0,t.addMutationObserver=function(e,t){var n=window,r=n.MutationObserver||n.WebKitMutationObserver||n.MozMutationObserver;if(r){var i=new r(t);return i.observe(document.documentElement,{attributes:!0,childList:!0,subtree:!0,characterData:!0}),i}window.addEventListener?(document.documentElement.addEventListener("DOMAttrModified",t,!0),document.documentElement.addEventListener("DOMNodeInserted",t,!0),document.documentElement.addEventListener("DOMNodeRemoved",t,!0)):"attachEvent"in window&&e.attachEvent("onpropertychange",t)},t.removeMutationObserver=function(e,t,n){n?n.disconnect():window.addEventListener?(e.removeEventListener("DOMAttrModified",t,!0),e.removeEventListener("DOMNodeInserted",t,!0),e.removeEventListener("DOMNodeRemoved",t,!0)):"attachEvent"in window&&e.detachEvent("onpropertychange",t)}});t(Fa);Fa.addMutationObserver,Fa.removeMutationObserver;var Sa=t(n(function(t,n){var r=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{"default":e}};n.__esModule=!0;var i=r(Ke),o=r(gt),a=r(_a),s=r(fe),l=1e3,c=function(){function e(e){this.init(e),this.observeList=[],this.handlerSetList=[];var t=e.usePolling,n=void 0!==t&&t,r=e.pollInterval;this.usePolling=n,r&&isFinite(r)&&r>0?this.pollInterval=r:this.pollInterval=l}return e.prototype.init=function(e){var t=new IntersectionObserver(function(t){t.forEach(function(t){if(!(t.intersectionRatio<=0)&&Pa.hitTesting(t.target,t.intersectionRect)){var n=e.slotClassName,r=e.impressAttrName,i=void 0===r?"data-pv":r,o=e.callback,a=e.customBoundary,s=t.target,l=t.intersectionRect,c=Pa.getActualVisibleRect(l,a);"string"==typeof n&&n.length>0&&Pa.checkSlots(c,n,i),"function"==typeof o&&o(s,l)}})},{threshold:[0,.1,.2,.3,.4,.5,.6,.7,.8,.9,1]});t.USE_MUTATION_OBSERVER=!1,this.intersectionObserver=t},e.prototype.observe=function(e){var t=this;if(!o["default"](this.observeList,e)){this.observeList.push(e);var n={};this.handlerSetList.push(n),this.intersectionObserver.observe(e);var r=i["default"](function(n){t.reobserve(e)},100),a=this.usePolling,l=this.pollInterval;if(a){var c=function(e,t){var n=i["default"](e,500);return window.setInterval(n,t)}(r,l);n.timerId=c}else{var u,d;n.defaultHandler=r,Ra.addScrollListener(e,r),n.mutationObserver=Fa.addMutationObserver(e,r),n.events=(u=r,d=[{eventName:"focus",target:window,handler:u},{eventName:"resize",target:window,handler:u},{eventName:"visibilitychange",target:document,handler:function(e){"visible"===document.visibilityState&&u(e)}}],s["default"](d,function(e){var t=e.target,n=e.eventName,r=e.handler;Ia.addEventListener(t,n,r,!0)}),d)}}},e.prototype.unobserve=function(e){var t=a["default"](this.observeList,e);if(!~t){this.observeList=this.observeList.slice(0,t).concat(this.observeList.slice(t+1));var n=this.handlerSetList[t];this.handlerSetList=this.handlerSetList.slice(0,t).concat(this.handlerSetList.slice(t+1));var r=n.timerId,i=n.events,o=n.mutationObserver,l=n.defaultHandler;this.intersectionObserver.unobserve(e),r?function(e){window.clearInterval(e)}(r):(l&&Ra.removeScrollListener(e,l),o&&o.disconnect(),i&&function(e){s["default"](e,function(e){var t=e.target,n=e.eventName,r=e.handler;Ia.removeEventListener(t,n,r,!0)})}(i))}},e.prototype.reobserve=function(e){this.intersectionObserver.unobserve(e),this.intersectionObserver.observe(e)},e}();n["default"]=c}));function Aa(e,t,n,r){var i=e.appRoot,o=e.feedRoot,a=e.menuRoot,s=n.inject,l=n.layout;(n.shouldShowCloseBtn||"float"===s)&&a.appendChild(function(e){var t=e.appRoot,n=we.createElement("info-div",{className:"toolbar__closeBtn"}),r=we.createElement("info-div",{className:"feed-toolbar"},[n]);return je(n,"click",function(e){t.style.display="none"}),r}({appRoot:i}));var c=ma(t,n,r);be(c)&&a.appendChild(c);var u,d=we.createElement("info-div",{className:"feed__wrapper"},[we.createElement("info-div")]);switch(o.appendChild(d),l){case"thinSingleColumn":case"singleColumn":(u=new ta(o,d,t,n)).update();break;case"splitColumn":(u=new ra(o,d,t,n)).update();break;case"multiColumn":(u=new oa(o,d,t,n)).update();break;case"pureAd":(u=new da(d,t,n)).update()}"bottom"===s?je(window,"scroll",Ke(function(){var e,t,n,r,i;e=o.parentElement,t=function(){var e=document.body&&document.body.scrollHeight||0,t=document.documentElement&&document.documentElement.scrollHeight||0;return Math.min(e,t)}(),n=function(){var e=document.body&&document.body.scrollTop||0,t=document.documentElement&&document.documentElement.scrollTop||0;return Math.min(e,t)}(),r=window.innerHeight||document.documentElement.clientHeight,i=e.getBoundingClientRect().bottom-r<200,(t-n-r<=200||i)&&u.update()},50)):je(o,"scroll",Ke(function(){(function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return n-r-t<=200})(o)&&u.update()},50)),be(c)&&je(c,"click",function(e){var n=e.target;if(it(n.className)&>(n.className,"feed-menu__item")){for(var r=0,i=c.children;r=5)}(n,r,i);l||function(e,t,n,r){var i="pureAd"===r;"contentAd"===r?Ee.displayShowId.push(e):i&&!gt(Ee[t].showid,e)&&(Ee[t].showid.push(e),Ee[t][e]=Ee[t][e]||{})}(n,r,0,i),o&&function(e){var t={pn:1,loading:!1,containerIDs:[],sessions:[],ads:[],options:e,onFail:e.onFail,adNum:e.pureAdNum,demandNum:0,isPending:!1,req:null},n=e.inject,r=e.showid,i=e.pureAdNum,o=Ee[n][r];oe(t,function(e,t){o.hasOwnProperty(t)||(o[t]=e)}),o.demandNum++;var a=o.isPending,s=null===o.req,l=o.demandNum>o.ads.length;if(!a&&s&&l){var c=isFinite(i)&&i>0?i:4;o.adNum=c,o.isPending=!0,o.req=Po.next(c,e,Ee[n][r].pn++)}}(e),function(e,t){return new Promise(function(n){var r;t?(ja(r=we.createElement("newsfeed",{id:e})),Na(function(){var e=document.getElementById(t);we.render(r,e),n(r)})):(document.write(''),ja(r=document.getElementById(e)),n(r))})}(a,t).then(function(t){if(xt(pt,{"@containerId":a}),s)t.innerHTML="

广告位配置不正确

";else{if(!l){Ee[a]={};var n=ht[0]["data-feedkey"];Ee[a].selectTab=e.tab||n;var o=we.createElement("newsfeed-header",{className:"feed-tab"});t.appendChild(o);var c=Je(t,r,e,i);return t.appendChild(c),qi(c,a,e,i),Aa({appRoot:t,feedRoot:c,menuRoot:o},a,e,i),je(t,"contextmenu",function(e){e.preventDefault?e.preventDefault():window.event.returnValue=!1}),t}t.innerHTML="

showid配置不正确

"}})["catch"](function(e){})}}(); ;