You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

2 lines
181 KiB

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<n.length;r++)i+="."+o+" "+n[r]+",";return i=i.slice(0,i.length-1),i+="{"})}var x=function(e,a,t){return t=t||/\{([^\{\}]*)\}/g,e.replace(t,function(e,t){var n=t.split("."),i=a;try{for(var r in n)n.hasOwnProperty(r)&&(i=i[n[r]])}catch(o){i=e}return"string"==typeof i||"number"==typeof i?i:e})};function u(){}u.prototype.render=function(e,t,n,i){if(n.isShowTab){var r=y,o=(e-2)/r.length;120<o?o=120:o<70&&(o=70);var a=Math.floor((e-r.length)/o);a<r.length&&(r=r.slice(0,a));for(var s=['<info-div class="info-flow-nav">'],l=0;l<r.length;l++)0===l?s.push('<info-div class="info-tab info-flow-tab actived" data-feedkey="'+r[l]["data-feedkey"]+'">'+r[l].name+"</info-div>"):s.push('<info-div class="info-tab info-flow-tab" data-feedkey="'+r[l]["data-feedkey"]+'">'+r[l].name+"</info-div>");return s.push("</info-div>"),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<d?d=120:d<70&&(d=70);var f=Math.floor((e-u.length)/d);return f<u.length&&(u=u.slice(0,f)),d=Math.floor((e-u.length)/u.length),w(x(b,{w:e,tabBackground:s,tabWidth:d,tabFontSize:r,tabFontColor:a,tabFontFamily:o,tabHover:c,tabActive:l}),i)};var d=new u,W="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function f(e,t){return e(t={exports:{}},t.exports),t.exports}var C=f(function(e,t){var n;n=function(){return function ie(o,a,s){function l(n,e){if(!a[n]){if(!o[n]){var t="function"==typeof _dereq_&&_dereq_;if(!e&&t)return t(n,!0);if(c)return c(n,!0);var i=new Error("Cannot find module '"+n+"'");throw i.code="MODULE_NOT_FOUND",i}var r=a[n]={exports:{}};o[n][0].call(r.exports,function(e){var t=o[n][1][e];return l(t||e)},r,r.exports,ie,o,a,s)}return a[n].exports}for(var c="function"==typeof _dereq_&&_dereq_,e=0;e<s.length;e++)l(s[e]);return l}({1:[function(e,t,n){t.exports=function(e){var i=e._SomePromiseArray;function t(e){var t=new i(e),n=t.promise();return t.setHowMany(1),t.setUnwrap(),t.init(),n}e.any=function(e){return t(e)},e.prototype.any=function(){return t(this)}}},{}],2:[function(e,t,n){var i;try{throw new Error}catch(ie){i=ie}var r=e("./schedule"),o=e("./queue"),a=e("./util");function s(){this._customScheduler=!1,this._isTickUsed=!1,this._lateQueue=new o(16),this._normalQueue=new o(16),this._haveDrainedQueues=!1,this._trampolineEnabled=!0;var e=this;this.drainQueues=function(){e._drainQueues()},this._schedule=r}function l(e,t,n){this._lateQueue.push(e,t,n),this._queueTick()}function c(e,t,n){this._normalQueue.push(e,t,n),this._queueTick()}function u(e){this._normalQueue._pushOne(e),this._queueTick()}function d(e){for(;0<e.length();)f(e)}function f(e){var t=e.shift();if("function"!=typeof t)t._settlePromises();else{var n=e.shift(),i=e.shift();t.call(n,i)}}s.prototype.setScheduler=function(e){var t=this._schedule;return this._schedule=e,this._customScheduler=!0,t},s.prototype.hasCustomScheduler=function(){return this._customScheduler},s.prototype.enableTrampoline=function(){this._trampolineEnabled=!0},s.prototype.disableTrampolineIfNecessary=function(){a.hasDevTools&&(this._trampolineEnabled=!1)},s.prototype.haveItemsQueued=function(){return this._isTickUsed||this._haveDrainedQueues},s.prototype.fatalError=function(e,t){t?(process.stderr.write("Fatal "+(e instanceof Error?e.stack:e)+"\n"),process.exit(2)):this.throwLater(e)},s.prototype.throwLater=function(e,t){if(1===arguments.length&&(t=e,e=function(){throw t}),"undefined"!=typeof setTimeout)setTimeout(function(){e(t)},0);else try{this._schedule(function(){e(t)})}catch(ie){throw new Error("No async scheduler available\n\n See http://goo.gl/MqrFmX\n")}},s.prototype.settlePromises=a.hasDevTools?(s.prototype.invokeLater=function(e,t,n){this._trampolineEnabled?l.call(this,e,t,n):this._schedule(function(){setTimeout(function(){e.call(t,n)},100)})},s.prototype.invoke=function(e,t,n){this._trampolineEnabled?c.call(this,e,t,n):this._schedule(function(){e.call(t,n)})},function(e){this._trampolineEnabled?u.call(this,e):this._schedule(function(){e._settlePromises()})}):(s.prototype.invokeLater=l,s.prototype.invoke=c,u),s.prototype._drainQueues=function(){d(this._normalQueue),this._reset(),this._haveDrainedQueues=!0,d(this._lateQueue)},s.prototype._queueTick=function(){this._isTickUsed||(this._isTickUsed=!0,this._schedule(this.drainQueues))},s.prototype._reset=function(){this._isTickUsed=!1},t.exports=s,t.exports.firstLineError=i},{"./queue":26,"./schedule":29,"./util":36}],3:[function(e,t,n){t.exports=function(o,a,s,l){var c=!1,n=function(e,t){this._reject(t)},u=function(e,t){t.promiseRejectionQueued=!0,t.bindingPromise._then(n,n,null,this,e)},d=function(e,t){0==(50397184&this._bitField)&&this._resolveCallback(t.target)},f=function(e,t){t.promiseRejectionQueued||this._reject(e)};o.prototype.bind=function(e){c||(c=!0,o.prototype._propagateFrom=l.propagateFromFunction(),o.prototype._boundValue=l.boundValueFunction());var t=s(e),n=new o(a);n._propagateFrom(this,1);var i=this._target();if(n._setBoundTo(t),t instanceof o){var r={promiseRejectionQueued:!1,promise:n,target:i,bindingPromise:t};i._then(a,u,undefined,n,r),t._then(d,f,undefined,n,r),n._setOnCancel(t)}else n._resolveCallback(i);return n},o.prototype._setBoundTo=function(e){e!==undefined?(this._bitField=2097152|this._bitField,this._boundTo=e):this._bitField=-2097153&this._bitField},o.prototype._isBound=function(){return 2097152==(2097152&this._bitField)},o.bind=function(e,t){return o.resolve(t).bind(e)}}},{}],4:[function(e,t,n){var i;"undefined"!=typeof Promise&&(i=Promise);var r=e("./promise")();r.noConflict=function o(){try{Promise===r&&(Promise=i)}catch(ie){}return r},t.exports=r},{"./promise":22}],5:[function(e,t,n){var i=Object.create;if(i){var r=i(null),o=i(null);r[" size"]=o[" size"]=0}t.exports=function(o){var a=e("./util"),i=a.canEvaluate;a.isIdentifier;function n(e){return function r(e,t){var n;if(null!=e&&(n=e[t]),"function"==typeof n)return n;var i="Object "+a.classString(e)+" has no method '"+a.toString(t)+"'";throw new o.TypeError(i)}(e,this.pop()).apply(e,this)}function r(e){return e[this]}function s(e){var t=+this;return t<0&&(t=Math.max(0,t+e.length)),e[t]}o.prototype.call=function(e){var t=[].slice.call(arguments,1);return t.push(e),this._then(n,undefined,undefined,t,undefined)},o.prototype.get=function(e){var t;if("number"==typeof e)t=s;else if(i){var n=(void 0)(e);t=null!==n?n:r}else t=r;return this._then(t,undefined,undefined,e,undefined)}}},{"./util":36}],6:[function(l,e,t){e.exports=function(e,t,n,i){var r=l("./util"),o=r.tryCatch,a=r.errorObj,s=e._async;e.prototype["break"]=e.prototype.cancel=function(){if(!i.cancellation())return this._warn("cancellation is disabled");for(var e=this,t=e;e._isCancellable();){if(!e._cancelBy(t)){t._isFollowing()?t._followee().cancel():t._cancelBranched();break}var n=e._cancellationParent;if(null==n||!n._isCancellable()){e._isFollowing()?e._followee().cancel():e._cancelBranched();break}e._isFollowing()&&e._followee().cancel(),e._setWillBeCancelled(),t=e,e=n}},e.prototype._branchHasCancelled=function(){this._branchesRemainingToCancel--},e.prototype._enoughBranchesHaveCancelled=function(){return this._branchesRemainingToCancel===undefined||this._branchesRemainingToCancel<=0},e.prototype._cancelBy=function(e){return e===this?(this._branchesRemainingToCancel=0,this._invokeOnCancel(),!0):(this._branchHasCancelled(),!!this._enoughBranchesHaveCancelled()&&(this._invokeOnCancel(),!0))},e.prototype._cancelBranched=function(){this._enoughBranchesHaveCancelled()&&this._cancel()},e.prototype._cancel=function(){this._isCancellable()&&(this._setCancelled(),s.invoke(this._cancelPromises,this,undefined))},e.prototype._cancelPromises=function(){0<this._length()&&this._settlePromises()},e.prototype._unsetOnCancel=function(){this._onCancelField=undefined},e.prototype._isCancellable=function(){return this.isPending()&&!this._isCancelled()},e.prototype.isCancellable=function(){return this.isPending()&&!this.isCancelled()},e.prototype._doInvokeOnCancel=function(e,t){if(r.isArray(e))for(var n=0;n<e.length;++n)this._doInvokeOnCancel(e[n],t);else if(e!==undefined)if("function"==typeof e){if(!t){var i=o(e).call(this._boundValue());i===a&&(this._attachExtraTrace(i.e),s.throwLater(i.e))}}else e._resultCancelled(this)},e.prototype._invokeOnCancel=function(){var e=this._onCancel();this._unsetOnCancel(),s.invoke(this._doInvokeOnCancel,this,e)},e.prototype._invokeInternalOnCancel=function(){this._isCancellable()&&(this._doInvokeOnCancel(this._onCancel(),!0),this._unsetOnCancel())},e.prototype._resultCancelled=function(){this.cancel()}}},{"./util":36}],7:[function(t,e,n){e.exports=function(d){var f=t("./util"),h=t("./es5").keys,p=f.tryCatch,g=f.errorObj;return function e(l,c,u){return function(e){var t=u._boundValue();e:for(var n=0;n<l.length;++n){var i=l[n];if(i===Error||null!=i&&i.prototype instanceof Error){if(e instanceof i)return p(c).call(t,e)}else if("function"==typeof i){var r=p(i).call(t,e);if(r===g)return r;if(r)return p(c).call(t,e)}else if(f.isObject(e)){for(var o=h(i),a=0;a<o.length;++a){var s=o[a];if(i[s]!=e[s])continue e}return p(c).call(t,e)}}return d}}}},{"./es5":13,"./util":36}],8:[function(e,t,n){t.exports=function(o){var a=!1,n=[];function s(){this._trace=new s.CapturedTrace(l())}function l(){var e=n.length-1;return 0<=e?n[e]:undefined}return o.prototype._promiseCreated=function(){},o.prototype._pushContext=function(){},o.prototype._popContext=function(){return null},o._peekContext=o.prototype._peekContext=function(){},s.prototype._pushContext=function(){this._trace!==undefined&&(this._trace._promiseCreated=null,n.push(this._trace))},s.prototype._popContext=function(){if(this._trace===undefined)return null;var e=n.pop(),t=e._promiseCreated;return e._promiseCreated=null,t},s.CapturedTrace=null,s.create=function e(){if(a)return new s},s.deactivateLongStackTraces=function(){},s.activateLongStackTraces=function(){var e=o.prototype._pushContext,t=o.prototype._popContext,n=o._peekContext,i=o.prototype._peekContext,r=o.prototype._promiseCreated;s.deactivateLongStackTraces=function(){o.prototype._pushContext=e,o.prototype._popContext=t,o._peekContext=n,o.prototype._peekContext=i,o.prototype._promiseCreated=r,a=!1},a=!0,o.prototype._pushContext=s.prototype._pushContext,o.prototype._popContext=s.prototype._popContext,o._peekContext=o.prototype._peekContext=l,o.prototype._promiseCreated=function(){var e=this._peekContext();e&&null==e._promiseCreated&&(e._promiseCreated=this)}},s}},{}],9:[function(ne,e,t){e.exports=function(a,i){var n,r,o,s=a._getDomain,l=a._async,c=ne("./errors").Warning,u=ne("./util"),d=ne("./es5"),f=u.canAttachTrace,h=/[\\\/]bluebird[\\\/]js[\\\/](release|debug|instrumented)/,p=/\((?:timers\.js):\d+:\d+\)/,g=/[\/<\(](.+?):(\d+):(\d+)\)?\s*$/,m=null,v=null,y=!1,e=!(0==u.env("BLUEBIRD_DEBUG")),t=!(0==u.env("BLUEBIRD_WARNINGS")||!e&&!u.env("BLUEBIRD_WARNINGS")),_=!(0==u.env("BLUEBIRD_LONG_STACK_TRACES")||!e&&!u.env("BLUEBIRD_LONG_STACK_TRACES")),b=0!=u.env("BLUEBIRD_W_FORGOTTEN_RETURN")&&(t||!!u.env("BLUEBIRD_W_FORGOTTEN_RETURN"));a.prototype.suppressUnhandledRejections=function(){var e=this._target();e._bitField=-1048577&e._bitField|524288},a.prototype._ensurePossibleRejectionHandled=function(){if(0==(524288&this._bitField)){this._setRejectionIsUnhandled();var e=this;setTimeout(function(){e._notifyUnhandledRejection()},1)}},a.prototype._notifyUnhandledRejectionIsHandled=function(){V("rejectionHandled",n,undefined,this)},a.prototype._setReturnedNonUndefined=function(){this._bitField=268435456|this._bitField},a.prototype._returnedNonUndefined=function(){return 0!=(268435456&this._bitField)},a.prototype._notifyUnhandledRejection=function(){if(this._isRejectionUnhandled()){var e=this._settledValue();this._setUnhandledRejectionIsNotified(),V("unhandledRejection",r,e,this)}},a.prototype._setUnhandledRejectionIsNotified=function(){this._bitField=262144|this._bitField},a.prototype._unsetUnhandledRejectionIsNotified=function(){this._bitField=-262145&this._bitField},a.prototype._isUnhandledRejectionNotified=function(){return 0<(262144&this._bitField)},a.prototype._setRejectionIsUnhandled=function(){this._bitField=1048576|this._bitField},a.prototype._unsetRejectionIsUnhandled=function(){this._bitField=-1048577&this._bitField,this._isUnhandledRejectionNotified()&&(this._unsetUnhandledRejectionIsNotified(),this._notifyUnhandledRejectionIsHandled())},a.prototype._isRejectionUnhandled=function(){return 0<(1048576&this._bitField)},a.prototype._warn=function(e,t,n){return N(e,t,n||this)},a.onPossiblyUnhandledRejection=function(e){var t=s();r="function"==typeof e?null===t?e:u.domainBind(t,e):undefined},a.onUnhandledRejectionHandled=function(e){var t=s();n="function"==typeof e?null===t?e:u.domainBind(t,e):undefined};var w=function(){};a.longStackTraces=function(){if(l.haveItemsQueued()&&!J.longStackTraces)throw new Error("cannot enable long stack traces after promises have been created\n\n See http://goo.gl/MqrFmX\n");if(!J.longStackTraces&&q()){var e=a.prototype._captureStackTrace,t=a.prototype._attachExtraTrace,n=a.prototype._dereferenceTrace;J.longStackTraces=!0,w=function(){if(l.haveItemsQueued()&&!J.longStackTraces)throw new Error("cannot enable long stack traces after promises have been created\n\n See http://goo.gl/MqrFmX\n");a.prototype._captureStackTrace=e,a.prototype._attachExtraTrace=t,a.prototype._dereferenceTrace=n,i.deactivateLongStackTraces(),l.enableTrampoline(),J.longStackTraces=!1},a.prototype._captureStackTrace=A,a.prototype._attachExtraTrace=M,a.prototype._dereferenceTrace=L,i.activateLongStackTraces(),l.disableTrampolineIfNecessary()}},a.hasLongStackTraces=function(){return J.longStackTraces&&q()};var x=function(){try{if("function"==typeof CustomEvent){var e=new CustomEvent("CustomEvent");return u.global.dispatchEvent(e),function(e,t){var n={detail:t,cancelable:!0};d.defineProperty(n,"promise",{value:t.promise}),d.defineProperty(n,"reason",{value:t.reason});var i=new CustomEvent(e.toLowerCase(),n);return!u.global.dispatchEvent(i)}}if("function"!=typeof Event)return(e=document.createEvent("CustomEvent")).initCustomEvent("testingtheevent",!1,!0,{}),u.global.dispatchEvent(e),function(e,t){var n=document.createEvent("CustomEvent");return n.initCustomEvent(e.toLowerCase(),!1,!0,t),!u.global.dispatchEvent(n)};var e=new Event("CustomEvent");return u.global.dispatchEvent(e),function(e,t){var n=new Event(e.toLowerCase(),{cancelable:!0});return n.detail=t,d.defineProperty(n,"promise",{value:t.promise}),d.defineProperty(n,"reason",{value:t.reason}),!u.global.dispatchEvent(n)}}catch(ie){}return function(){return!1}}(),C=u.isNode?function(){return process.emit.apply(process,arguments)}:u.global?function(e){var t="on"+e.toLowerCase(),n=u.global[t];return!!n&&(n.apply(u.global,[].slice.call(arguments,1)),!0)}:function(){return!1};function F(e,t){return{promise:t}}var k={promiseCreated:F,promiseFulfilled:F,promiseRejected:F,promiseResolved:F,promiseCancelled:F,promiseChained:function(e,t,n){return{promise:t,child:n}},warning:function(e,t){return{warning:t}},unhandledRejection:function(e,t,n){return{reason:t,promise:n}},rejectionHandled:F},T=function(e){var t=!1;try{t=C.apply(null,arguments)}catch(ie){l.throwLater(ie),t=!0}var n=!1;try{n=x(e,k[e].apply(null,arguments))}catch(ie){l.throwLater(ie),n=!0}return n||t};function I(){return!1}function E(e,t,n){var i=this;try{e(t,n,function(e){if("function"!=typeof e)throw new TypeError("onCancel must be a function, got: "+u.toString(e));i._attachCancellationCallback(e)})}catch(ie){return ie}}function S(e){if(!this._isCancellable())return this;var t=this._onCancel();t!==undefined?u.isArray(t)?t.push(e):this._setOnCancel([t,e]):this._setOnCancel(e)}function j(){return this._onCancelField}function P(e){this._onCancelField=e}function R(){this._cancellationParent=undefined,this._onCancelField=undefined}function B(e,t){if(0!=(1&t)){var n=(this._cancellationParent=e)._branchesRemainingToCancel;n===undefined&&(n=0),e._branchesRemainingToCancel=n+1}0!=(2&t)&&e._isBound()&&this._setBoundTo(e._boundTo)}a.config=function(e){if("longStackTraces"in(e=Object(e))&&(e.longStackTraces?a.longStackTraces():!e.longStackTraces&&a.hasLongStackTraces()&&w()),"warnings"in e){var t=e.warnings;J.warnings=!!t,b=J.warnings,u.isObject(t)&&"wForgottenReturn"in t&&(b=!!t.wForgottenReturn)}if("cancellation"in e&&e.cancellation&&!J.cancellation){if(l.haveItemsQueued())throw new Error("cannot enable cancellation after promises are in use");a.prototype._clearCancellationData=R,a.prototype._propagateFrom=B,a.prototype._onCancel=j,a.prototype._setOnCancel=P,a.prototype._attachCancellationCallback=S,a.prototype._execute=E,H=B,J.cancellation=!0}return"monitoring"in e&&(e.monitoring&&!J.monitoring?(J.monitoring=!0,a.prototype._fireEvent=T):!e.monitoring&&J.monitoring&&(J.monitoring=!1,a.prototype._fireEvent=I)),a},a.prototype._fireEvent=I,a.prototype._execute=function(e,t,n){try{e(t,n)}catch(ie){return ie}},a.prototype._onCancel=function(){},a.prototype._setOnCancel=function(e){},a.prototype._attachCancellationCallback=function(e){},a.prototype._captureStackTrace=function(){},a.prototype._attachExtraTrace=function(){},a.prototype._dereferenceTrace=function(){},a.prototype._clearCancellationData=function(){},a.prototype._propagateFrom=function(e,t){};var H=function K(e,t){0!=(2&t)&&e._isBound()&&this._setBoundTo(e._boundTo)};function O(){var e=this._boundTo;return e!==undefined&&e instanceof a?e.isFulfilled()?e.value():undefined:e}function A(){this._trace=new X(this._peekContext())}function M(e,t){if(f(e)){var n=this._trace;if(n!==undefined&&t&&(n=n._parent),n!==undefined)n.attachExtraTrace(e);else if(!e.__stackCleaned__){var i=D(e);u.notEnumerableProp(e,"stack",i.message+"\n"+i.stack.join("\n")),u.notEnumerableProp(e,"__stackCleaned__",!0)}}}function L(){this._trace=undefined}function N(e,t,n){if(J.warnings){var i,r=new c(e);if(t)n._attachExtraTrace(r);else if(J.longStackTraces&&(i=a._peekContext()))i.attachExtraTrace(r);else{var o=D(r);r.stack=o.message+"\n"+o.stack.join("\n")}T("warning",r)||W(r,"",!0)}}function z(e){for(var t=[],n=0;n<e.length;++n){var i=e[n],r=" (No stack trace)"===i||m.test(i),o=r&&$(i);r&&!o&&(y&&" "!==i.charAt(0)&&(i=" "+i),t.push(i))}return t}function D(e){var t=e.stack,n=e.toString();return t="string"==typeof t&&0<t.length?function r(e){for(var t=e.stack.replace(/\s+$/g,"").split("\n"),n=0;n<t.length;++n){var i=t[n];if(" (No stack trace)"===i||m.test(i))break}return 0<n&&"SyntaxError"!=e.name&&(t=t.slice(n)),t}(e):[" (No stack trace)"],{message:n,stack:"SyntaxError"==e.name?t:z(t)}}function W(e,t,n){if("undefined"!=typeof console){var i;if(u.isObject(e)){var r=e.stack;i=t+v(r,e)}else i=t+String(e);"function"==typeof o?o(i,n):"function"==typeof console.log||console.log}}function V(e,t,n,i){var r=!1;try{"function"==typeof t&&(r=!0,"rejectionHandled"===e?t(i):t(n,i))}catch(ie){l.throwLater(ie)}"unhandledRejection"===e?T(e,n,i)||r||W(n,"Unhandled rejection "):T(e,i)}function U(e){var t;if("function"==typeof e)t="[function "+(e.name||"anonymous")+"]";else{t=e&&"function"==typeof e.toString?e.toString():u.toString(e);if(/\[object [a-zA-Z0-9$_]+\]/.test(t))try{t=JSON.stringify(e)}catch(ie){}0===t.length&&(t="(empty array)")}return"(<"+function n(e){if(e.length<41)return e;return e.substr(0,38)+"..."}(t)+">, 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<t&&this.uncycle()}u.inherits(X,Error),(i.CapturedTrace=X).prototype.uncycle=function(){var e=this._length;if(!(e<2)){for(var t=[],n={},i=0,r=this;r!==undefined;++i)t.push(r),r=r._parent;for(i=(e=this._length=i)-1;0<=i;--i){var o=t[i].stack;n[o]===undefined&&(n[o]=i)}for(i=0;i<e;++i){var a=n[t[i].stack];if(a!==undefined&&a!==i){0<a&&(t[a-1]._parent=undefined,t[a-1]._length=1),t[i]._parent=undefined,t[i]._length=1;var s=0<i?t[i-1]:this;s._length=a<e-1?(s._parent=t[a+1],s._parent.uncycle(),s._parent._length+1):(s._parent=undefined,1);for(var l=s._length+1,c=i-2;0<=c;--c)t[c]._length=l,l++;return}}}},X.prototype.attachExtraTrace=function(e){if(!e.__stackCleaned__){this.uncycle();for(var t=D(e),n=t.message,i=[t.stack],r=this;r!==undefined;)i.push(z(r.stack.split("\n"))),r=r._parent;!function c(e){for(var t=e[0],n=1;n<e.length;++n){for(var i=e[n],r=t.length-1,o=t[r],a=-1,s=i.length-1;0<=s;--s)if(i[s]===o){a=s;break}for(s=a;0<=s;--s){var l=i[s];if(t[r]!==l)break;t.pop(),r--}t=i}}(i),function o(e){for(var t=0;t<e.length;++t)(0===e[t].length||t+1<e.length&&e[t][0]===e[t+1][0])&&(e.splice(t,1),t--)}(i),u.notEnumerableProp(e,"stack",function a(e,t){for(var n=0;n<t.length-1;++n)t[n].push("From previous event:"),t[n]=t[n].join("\n");return n<t.length&&(t[n]=t[n].join("\n")),e+"\n"+t.join("\n")}(n,i)),u.notEnumerableProp(e,"__stackCleaned__",!0)}};var G=function(){var e=/^\s*at\s*/,t=function(e,t){return"string"==typeof e?e:t.name!==undefined&&t.message!==undefined?t.toString():U(t)};if("number"==typeof Error.stackTraceLimit&&"function"==typeof Error.captureStackTrace){Error.stackTraceLimit+=6,m=e,v=t;var n=Error.captureStackTrace;return $=function(e){return h.test(e)},function(e,t){Error.stackTraceLimit+=6,n(e,t),Error.stackTraceLimit-=6}}var i,r=new Error;if("string"==typeof r.stack&&0<=r.stack.split("\n")[0].indexOf("stackDetection@"))return m=/@/,v=t,y=!0,function n(e){e.stack=(new Error).stack};try{throw new Error}catch(ie){i="stack"in ie}return"stack"in r||!i||"number"!=typeof Error.stackTraceLimit?(v=function(e,t){return"string"==typeof e?e:"object"!=typeof t&&"function"!=typeof t||t.name===undefined||t.message===undefined?U(t):t.toString()},null):(m=e,v=t,function n(e){Error.stackTraceLimit+=6;try{throw new Error}catch(ie){e.stack=ie.stack}Error.stackTraceLimit-=6})}();"undefined"!=typeof console&&"undefined"!=typeof console.warn&&(o=function(e){},u.isNode&&process.stderr.isTTY?o=function(e,t){}:u.isNode||"string"!=typeof(new Error).stack||(o=function(e,t){}));var J={warnings:t,longStackTraces:!1,cancellation:!1,monitoring:!1};return _&&a.longStackTraces(),{longStackTraces:function(){return J.longStackTraces},warnings:function(){return J.warnings},cancellation:function(){return J.cancellation},monitoring:function(){return J.monitoring},propagateFromFunction:function(){return H},boundValueFunction:function(){return O},checkForgottenReturns:function Z(e,t,n,i,r){if(e===undefined&&null!==t&&b){if(r!==undefined&&r._returnedNonUndefined())return;if(0==(65535&i._bitField))return;n&&(n+=" ");var o="",a="";if(t._trace){for(var s=t._trace.stack.split("\n"),l=z(s),c=l.length-1;0<=c;--c){var u=l[c];if(!p.test(u)){var d=u.match(g);d&&(o="at "+d[1]+":"+d[2]+":"+d[3]+" ");break}}if(0<l.length){var f=l[0];for(c=0;c<s.length;++c)if(s[c]===f){0<c&&(a="\n"+s[c-1]);break}}}var h="a promise was created in a "+n+"handler "+o+"but was not returned from it, see http://goo.gl/rRqMUw"+a;i._warn(h,!0,t)}},setBounds:function ee(e,t){if(q()){for(var n,i,r=e.stack.split("\n"),o=t.stack.split("\n"),a=-1,s=-1,l=0;l<r.length;++l)if(c=Q(r[l])){n=c.fileName,a=c.line;break}for(l=0;l<o.length;++l){var c;if(c=Q(o[l])){i=c.fileName,s=c.line;break}}a<0||s<0||!n||!i||n!==i||s<=a||($=function(e){if(h.test(e))return!0;var t=Q(e);return!!(t&&t.fileName===n&&a<=t.line&&t.line<=s)})}},warn:N,deprecated:function te(e,t){var n=e+" is deprecated and will be removed in a future version.";return t&&(n+=" Use "+t+" instead."),N(n)},CapturedTrace:X,fireDomEvent:x,fireGlobalEvent:C}}},{"./errors":12,"./es5":13,"./util":36}],10:[function(e,t,n){t.exports=function(n){function i(){return this.value}function r(){throw this.reason}n.prototype["return"]=n.prototype.thenReturn=function(e){return e instanceof n&&e.suppressUnhandledRejections(),this._then(i,undefined,undefined,{value:e},undefined)},n.prototype["throw"]=n.prototype.thenThrow=function(e){return this._then(r,undefined,undefined,{reason:e},undefined)},n.prototype.catchThrow=function(e){if(arguments.length<=1)return this._then(undefined,r,undefined,{reason:e},undefined);var t=arguments[1];return this.caught(e,function(){throw t})},n.prototype.catchReturn=function(e){if(arguments.length<=1)return e instanceof n&&e.suppressUnhandledRejections(),this._then(undefined,i,undefined,{value:e},undefined);var t=arguments[1];t instanceof n&&t.suppressUnhandledRejections();return this.caught(e,function(){return t})}}},{}],11:[function(e,t,n){t.exports=function(e,n){var i=e.reduce,t=e.all;function r(){return t(this)}e.prototype.each=function(e){return i(this,e,n,0)._then(r,undefined,undefined,this,undefined)},e.prototype.mapSeries=function(e){return i(this,e,n,n)},e.each=function(e,t){return i(e,t,n,0)._then(r,undefined,undefined,e,undefined)},e.mapSeries=function o(e,t){return i(e,t,n,n)}}},{}],12:[function(e,t,n){var i,r,o=e("./es5"),a=o.freeze,s=e("./util"),l=s.inherits,c=s.notEnumerableProp;function u(t,n){function i(e){if(!(this instanceof i))return new i(e);c(this,"message","string"==typeof e?e:n),c(this,"name",t),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):Error.call(this)}return l(i,Error),i}var d=u("Warning","warning"),f=u("CancellationError","cancellation error"),h=u("TimeoutError","timeout error"),p=u("AggregateError","aggregate error");try{i=TypeError,r=RangeError}catch(ie){i=u("TypeError","type error"),r=u("RangeError","range error")}for(var g="join pop push shift unshift slice filter forEach some every map indexOf lastIndexOf reduce reduceRight sort reverse".split(" "),m=0;m<g.length;++m)"function"==typeof Array.prototype[g[m]]&&(p.prototype[g[m]]=Array.prototype[g[m]]);o.defineProperty(p.prototype,"length",{value:0,configurable:!1,writable:!0,enumerable:!0}),p.prototype.isOperational=!0;var v=0;function y(e){if(!(this instanceof y))return new y(e);c(this,"name","OperationalError"),c(this,"message",e),this.cause=e,this.isOperational=!0,e instanceof Error?(c(this,"message",e.message),c(this,"stack",e.stack)):Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}p.prototype.toString=function(){var e=Array(4*v+1).join(" "),t="\n"+e+"AggregateError of:\n";v++,e=Array(4*v+1).join(" ");for(var n=0;n<this.length;++n){for(var i=this[n]===this?"[Circular AggregateError]":this[n]+"",r=i.split("\n"),o=0;o<r.length;++o)r[o]=e+r[o];t+=(i=r.join("\n"))+"\n"}return v--,t},l(y,Error);var _=Error.__BluebirdErrorTypes__;_||(_=a({CancellationError:f,TimeoutError:h,OperationalError:y,RejectionError:y,AggregateError:p}),o.defineProperty(Error,"__BluebirdErrorTypes__",{value:_,writable:!1,enumerable:!1,configurable:!1})),t.exports={Error:Error,TypeError:i,RangeError:r,CancellationError:_.CancellationError,OperationalError:_.OperationalError,TimeoutError:_.TimeoutError,AggregateError:_.AggregateError,Warning:d}},{"./es5":13,"./util":36}],13:[function(e,t,n){var i=function(){return this===undefined}();if(i)t.exports={freeze:Object.freeze,defineProperty:Object.defineProperty,getDescriptor:Object.getOwnPropertyDescriptor,keys:Object.keys,names:Object.getOwnPropertyNames,getPrototypeOf:Object.getPrototypeOf,isArray:Array.isArray,isES5:i,propertyIsWritable:function(e,t){var n=Object.getOwnPropertyDescriptor(e,t);return!(n&&!n.writable&&!n.set)}};else{var r={}.hasOwnProperty,o={}.toString,a={}.constructor.prototype,s=function(e){var t=[];for(var n in e)r.call(e,n)&&t.push(n);return t};t.exports={isArray:function(e){try{return"[object Array]"===o.call(e)}catch(ie){return!1}},keys:s,names:s,defineProperty:function(e,t,n){return e[t]=n.value,e},getDescriptor:function(e,t){return{value:e[t]}},freeze:function(e){return e},getPrototypeOf:function(e){try{return Object(e).constructor.prototype}catch(ie){return a}},isES5:i,propertyIsWritable:function(){return!0}}}},{}],14:[function(e,t,n){t.exports=function(e,i){var r=e.map;e.prototype.filter=function(e,t){return r(this,e,t,i)},e.filter=function(e,t,n){return r(e,t,n,i)}}},{}],15:[function(e,t,n){t.exports=function(s,a,l){var c=e("./util"),u=s.CancellationError,d=c.errorObj,f=e("./catch_filter")(l);function r(e,t,n){this.promise=e,this.type=t,this.handler=n,this.called=!1,this.cancelPromise=null}function h(e){this.finallyHandler=e}function p(e,t){return null!=e.cancelPromise&&(1<arguments.length?e.cancelPromise._reject(t):e.cancelPromise._cancel(),!(e.cancelPromise=null))}function g(){return v.call(this,this.promise._target()._settledValue())}function m(e){if(!p(this,e))return d.e=e,d}function v(e){var t=this.promise,n=this.handler;if(!this.called){this.called=!0;var i=this.isFinallyHandler()?n.call(t._boundValue()):n.call(t._boundValue(),e);if(i===l)return i;if(i!==undefined){t._setReturnedNonUndefined();var r=a(i,t);if(r instanceof s){if(null!=this.cancelPromise){if(r._isCancelled()){var o=new u("late cancellation observer");return t._attachExtraTrace(o),d.e=o,d}r.isPending()&&r._attachCancellationCallback(new h(this))}return r._then(g,m,undefined,this,undefined)}}}return t.isRejected()?(p(this),d.e=e,d):(p(this),e)}return r.prototype.isFinallyHandler=function(){return 0===this.type},h.prototype._resultCancelled=function(){p(this.finallyHandler)},s.prototype._passThrough=function(e,t,n,i){return"function"!=typeof e?this.then():this._then(n,i,undefined,new r(this,t,e),undefined)},s.prototype.lastly=s.prototype["finally"]=function(e){return this._passThrough(e,0,v,v)},s.prototype.tap=function(e){return this._passThrough(e,1,v)},s.prototype.tapCatch=function(e){var t=arguments.length;if(1===t)return this._passThrough(e,1,undefined,v);var n,i=new Array(t-1),r=0;for(n=0;n<t-1;++n){var o=arguments[n];if(!c.isObject(o))return s.reject(new TypeError("tapCatch statement predicate: expecting an object but got "+c.classString(o)));i[r++]=o}i.length=r;var a=arguments[n];return this._passThrough(f(i,a,this),1,undefined,v)},r}},{"./catch_filter":7,"./util":36}],16:[function(n,e,t){e.exports=function(l,i,a,c,e,s){var u=n("./errors").TypeError,t=n("./util"),d=t.errorObj,f=t.tryCatch,h=[];function p(e,t,n,i){if(s.cancellation()){var r=new l(a),o=this._finallyPromise=new l(a);this._promise=r.lastly(function(){return o}),r._captureStackTrace(),r._setOnCancel(this)}else{(this._promise=new l(a))._captureStackTrace()}this._stack=i,this._generatorFunction=e,this._receiver=t,this._generator=undefined,this._yieldHandlers="function"==typeof n?[n].concat(h):h,this._yieldedPromise=null,this._cancellationPhase=!1}t.inherits(p,e),p.prototype._isResolved=function(){return null===this._promise},p.prototype._cleanup=function(){this._promise=this._generator=null,s.cancellation()&&null!==this._finallyPromise&&(this._finallyPromise._fulfill(),this._finallyPromise=null)},p.prototype._promiseCancelled=function(){if(!this._isResolved()){var e;if("undefined"!=typeof this._generator["return"])this._promise._pushContext(),e=f(this._generator["return"]).call(this._generator,undefined),this._promise._popContext();else{var t=new l.CancellationError("generator .return() sentinel");l.coroutine.returnSentinel=t,this._promise._attachExtraTrace(t),this._promise._pushContext(),e=f(this._generator["throw"]).call(this._generator,t),this._promise._popContext()}this._cancellationPhase=!0,this._yieldedPromise=null,this._continue(e)}},p.prototype._promiseFulfilled=function(e){this._yieldedPromise=null,this._promise._pushContext();var t=f(this._generator.next).call(this._generator,e);this._promise._popContext(),this._continue(t)},p.prototype._promiseRejected=function(e){this._yieldedPromise=null,this._promise._attachExtraTrace(e),this._promise._pushContext();var t=f(this._generator["throw"]).call(this._generator,e);this._promise._popContext(),this._continue(t)},p.prototype._resultCancelled=function(){if(this._yieldedPromise instanceof l){var e=this._yieldedPromise;this._yieldedPromise=null,e.cancel()}},p.prototype.promise=function(){return this._promise},p.prototype._run=function(){this._generator=this._generatorFunction.call(this._receiver),this._receiver=this._generatorFunction=undefined,this._promiseFulfilled(undefined)},p.prototype._continue=function(e){var t=this._promise;if(e===d)return this._cleanup(),this._cancellationPhase?t.cancel():t._rejectCallback(e.e,!1);var n=e.value;if(!0===e.done)return this._cleanup(),this._cancellationPhase?t.cancel():t._resolveCallback(n);var i=c(n,this._promise);if(i instanceof l||null!==(i=function s(e,t,n){for(var i=0;i<t.length;++i){n._pushContext();var r=f(t[i])(e);if(n._popContext(),r===d){n._pushContext();var o=l.reject(d.e);return n._popContext(),o}var a=c(r,n);if(a instanceof l)return a}return null}(i,this._yieldHandlers,this._promise))){var r=(i=i._target())._bitField;0==(50397184&r)?(this._yieldedPromise=i)._proxy(this,null):0!=(33554432&r)?l._async.invoke(this._promiseFulfilled,this,i._value()):0!=(16777216&r)?l._async.invoke(this._promiseRejected,this,i._reason()):this._promiseCancelled()}else this._promiseRejected(new u("A value %s was yielded that could not be treated as a promise\n\n See http://goo.gl/MqrFmX\n\n".replace("%s",String(n))+"From coroutine:\n"+this._stack.split("\n").slice(1,-7).join("\n")))},l.coroutine=function(i,e){if("function"!=typeof i)throw new u("generatorFunction must be a function\n\n See http://goo.gl/MqrFmX\n");var r=Object(e).yieldHandler,o=p,a=(new Error).stack;return function(){var e=i.apply(this,arguments),t=new o(undefined,undefined,r,a),n=t.promise();return t._generator=e,t._promiseFulfilled(undefined),n}},l.coroutine.addYieldHandler=function(e){if("function"!=typeof e)throw new u("expecting a function but got "+t.classString(e));h.push(e)},l.spawn=function(e){if(s.deprecated("Promise.spawn()","Promise.coroutine()"),"function"!=typeof e)return i("generatorFunction must be a function\n\n See http://goo.gl/MqrFmX\n");var t=new p(e,this),n=t.promise();return t._run(l.spawn),n}}},{"./errors":12,"./util":36}],17:[function(s,e,t){e.exports=function(e,r,t,n,i,o){var a=s("./util");a.canEvaluate,a.tryCatch,a.errorObj;e.join=function(){var e,t=arguments.length-1;0<t&&"function"==typeof arguments[t]&&(e=arguments[t]);var n=[].slice.call(arguments);e&&n.pop();var i=new r(n).promise();return e!==undefined?i.spread(e):i}}},{"./util":36}],18:[function(t,e,n){e.exports=function(h,e,o,p,a,g){var s=h._getDomain,l=t("./util"),m=l.tryCatch,v=l.errorObj,c=h._async;function u(e,t,n,i){this.constructor$(e),this._promise._captureStackTrace();var r=s();this._callback=null===r?t:l.domainBind(r,t),this._preservedValues=i===a?new Array(this.length()):null,this._limit=n,this._inFlight=0,this._queue=[],c.invoke(this._asyncInit,this,undefined)}function r(e,t,n,i){if("function"!=typeof t)return o("expecting a function but got "+l.classString(t));var r=0;if(n!==undefined){if("object"!=typeof n||null===n)return h.reject(new TypeError("options argument must be an object but it is "+l.classString(n)));if("number"!=typeof n.concurrency)return h.reject(new TypeError("'concurrency' must be a number but it is "+l.classString(n.concurrency)));r=n.concurrency}return new u(e,t,r="number"==typeof r&&isFinite(r)&&1<=r?r:0,i).promise()}l.inherits(u,e),u.prototype._asyncInit=function(){this._init$(undefined,-2)},u.prototype._init=function(){},u.prototype._promiseFulfilled=function(e,t){var n=this._values,i=this.length(),r=this._preservedValues,o=this._limit;if(t<0){if(n[t=-1*t-1]=e,1<=o&&(this._inFlight--,this._drainQueue(),this._isResolved()))return!0}else{if(1<=o&&this._inFlight>=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<e.length&&this._inFlight<t;){if(this._isResolved())return;var i=e.pop();this._promiseFulfilled(n[i],i)}},u.prototype._filter=function(e,t){for(var n=t.length,i=new Array(n),r=0,o=0;o<n;++o)e[o]&&(i[r++]=t[o]);i.length=r,this._resolve(i)},u.prototype.preservedValues=function(){return this._preservedValues},h.prototype.map=function(e,t){return r(this,e,t,null)},h.map=function(e,t,n,i){return r(e,t,n,i)}}},{"./util":36}],19:[function(t,e,n){e.exports=function(a,s,e,l,c){var u=t("./util"),d=u.tryCatch;a.method=function(i){if("function"!=typeof i)throw new a.TypeError("expecting a function but got "+u.classString(i));return function(){var e=new a(s);e._captureStackTrace(),e._pushContext();var t=d(i).apply(this,arguments),n=e._popContext();return c.checkForgottenReturns(t,n,"Promise.method",e),e._resolveFromSyncValue(t),e}},a.attempt=a["try"]=function(e){if("function"!=typeof e)return l("expecting a function but got "+u.classString(e));var t,n=new a(s);if(n._captureStackTrace(),n._pushContext(),1<arguments.length){c.deprecated("calling Promise.try with more than 1 argument");var i=arguments[1],r=arguments[2];t=u.isArray(i)?d(e).apply(r,i):d(e).call(r,i)}else t=d(e)();var o=n._popContext();return c.checkForgottenReturns(t,o,"Promise.try",n),n._resolveFromSyncValue(t),n},a.prototype._resolveFromSyncValue=function(e){e===u.errorObj?this._rejectCallback(e.e,!1):this._resolveCallback(e,!0)}}},{"./util":36}],20:[function(e,t,n){var a=e("./util"),s=a.maybeWrapAsError,l=e("./errors").OperationalError,c=e("./es5");var u=/^(?:name|message|stack|cause)$/;function d(e){var t;if(function o(e){return e instanceof Error&&c.getPrototypeOf(e)===Error.prototype}(e)){(t=new l(e)).name=e.name,t.message=e.message,t.stack=e.stack;for(var n=c.keys(e),i=0;i<n.length;++i){var r=n[i];u.test(r)||(t[r]=e[r])}return t}return a.markAsOriginatingFromRejection(e),e}t.exports=function i(r,o){return function(e,t){if(null!==r){if(e){var n=d(s(e));r._attachExtraTrace(n),r._reject(n)}else if(o){var i=[].slice.call(arguments,1);r._fulfill(i)}else r._fulfill(t);r=null}}}},{"./errors":12,"./es5":13,"./util":36}],21:[function(t,e,n){e.exports=function(e){var i=t("./util"),r=e._async,o=i.tryCatch,a=i.errorObj;function s(e,t){if(!i.isArray(e))return l.call(this,e,t);var n=o(t).apply(this._boundValue(),[null].concat(e));n===a&&r.throwLater(n.e)}function l(e,t){var n=this._boundValue(),i=e===undefined?o(t).call(n,null):o(t).call(n,null,e);i===a&&r.throwLater(i.e)}function c(e,t){if(!e){var n=new Error(e+"");n.cause=e,e=n}var i=o(t).call(this._boundValue(),e);i===a&&r.throwLater(i.e)}e.prototype.asCallback=e.prototype.nodeify=function(e,t){if("function"==typeof e){var n=l;t!==undefined&&Object(t).spread&&(n=s),this._then(n,c,undefined,this,e)}return this}}},{"./util":36}],22:[function(j,P,e){P.exports=function(){var l=function(){return new d("circular promise resolution chain\n\n See http://goo.gl/MqrFmX\n")},s=function(){return new T.PromiseInspection(this._target())},a=function(e){return T.reject(new d(e))};function c(){}var h,u={},p=j("./util");h=p.isNode?function(){var e=process.domain;return e===undefined&&(e=null),e}:function(){return null},p.notEnumerableProp(T,"_getDomain",h);var e=j("./es5"),t=j("./async"),g=new t;e.defineProperty(T,"_async",{value:g});var n=j("./errors"),d=T.TypeError=n.TypeError;T.RangeError=n.RangeError;var m=T.CancellationError=n.CancellationError;T.TimeoutError=n.TimeoutError,T.OperationalError=n.OperationalError,T.RejectionError=n.OperationalError,T.AggregateError=n.AggregateError;var v=function(){},f={},y={},_=j("./thenables")(T,v),b=j("./promise_array")(T,v,_,a,c),i=j("./context")(T),r=i.create,w=j("./debuggability")(T,i),x=(w.CapturedTrace,j("./finally")(T,_,y)),C=j("./catch_filter")(y),o=j("./nodeback"),F=p.errorObj,k=p.tryCatch;function T(e){e!==v&&function n(e,t){if(null==e||e.constructor!==T)throw new d("the promise constructor cannot be invoked directly\n\n See http://goo.gl/MqrFmX\n");if("function"!=typeof t)throw new d("expecting a function but got "+p.classString(t))}(this,e),this._bitField=0,this._fulfillmentHandler0=undefined,this._rejectionHandler0=undefined,this._promise0=undefined,this._receiver0=undefined,this._resolveFromExecutor(e),this._promiseCreated(),this._fireEvent("promiseCreated",this)}function I(e){this.promise._resolveCallback(e)}function E(e){this.promise._rejectCallback(e,!1)}function S(e){var t=new T(v);t._fulfillmentHandler0=e,t._rejectionHandler0=e,t._promise0=e,t._receiver0=e}return T.prototype.toString=function(){return"[object Promise]"},T.prototype.caught=T.prototype["catch"]=function(e){var t=arguments.length;if(1<t){var n,i=new Array(t-1),r=0;for(n=0;n<t-1;++n){var o=arguments[n];if(!p.isObject(o))return a("Catch statement predicate: expecting an object but got "+p.classString(o));i[r++]=o}return i.length=r,e=arguments[n],this.then(undefined,C(i,e,this))}return this.then(undefined,e)},T.prototype.reflect=function(){return this._then(s,s,undefined,this,undefined)},T.prototype.then=function(e,t){if(w.warnings()&&0<arguments.length&&"function"!=typeof e&&"function"!=typeof t){var n=".then() only accepts functions but was passed: "+p.classString(e);1<arguments.length&&(n+=", "+p.classString(t)),this._warn(n)}return this._then(e,t,undefined,undefined,undefined)},T.prototype.done=function(e,t){this._then(e,t,undefined,undefined,undefined)._setIsFinal()},T.prototype.spread=function(e){return"function"!=typeof e?a("expecting a function but got "+p.classString(e)):this.all()._then(e,undefined,undefined,f,undefined)},T.prototype.toJSON=function(){var e={isFulfilled:!1,isRejected:!1,fulfillmentValue:undefined,rejectionReason:undefined};return this.isFulfilled()?(e.fulfillmentValue=this.value(),e.isFulfilled=!0):this.isRejected()&&(e.rejectionReason=this.reason(),e.isRejected=!0),e},T.prototype.all=function(){return 0<arguments.length&&this._warn(".all() was passed arguments but it does not take any"),new b(this).promise()},T.prototype.error=function(e){return this.caught(p.originatesFromRejection,e)},T.getNewLibraryCopy=P.exports,T.is=function(e){return e instanceof T},T.fromNode=T.fromCallback=function(e){var t=new T(v);t._captureStackTrace();var n=1<arguments.length&&!!Object(arguments[1]).multiArgs,i=k(e)(o(t,n));return i===F&&t._rejectCallback(i.e,!0),t._isFateSealed()||t._setAsyncGuaranteed(),t},T.all=function(e){return new b(e).promise()},T.resolve=T.fulfilled=T.cast=function(e){var t=_(e);return t instanceof T||((t=new T(v))._captureStackTrace(),t._setFulfilled(),t._rejectionHandler0=e),t},T.reject=T.rejected=function(e){var t=new T(v);return t._captureStackTrace(),t._rejectCallback(e,!0),t},T.setScheduler=function(e){if("function"!=typeof e)throw new d("expecting a function but got "+p.classString(e));return g.setScheduler(e)},T.prototype._then=function(e,t,n,i,r){var o=r!==undefined,a=o?r:new T(v),s=this._target(),l=s._bitField;o||(a._propagateFrom(this,3),a._captureStackTrace(),i===undefined&&0!=(2097152&this._bitField)&&(i=0!=(50397184&l)?this._boundValue():s===this?undefined:this._boundTo),this._fireEvent("promiseChained",this,a));var c=h();if(0!=(50397184&l)){var u,d,f=s._settlePromiseCtx;0!=(33554432&l)?(d=s._rejectionHandler0,u=e):0!=(16777216&l)?(d=s._fulfillmentHandler0,u=t,s._unsetRejectionIsUnhandled()):(f=s._settlePromiseLateCancellationObserver,d=new m("late cancellation observer"),s._attachExtraTrace(d),u=t),g.invoke(f,s,{handler:null===c?u:"function"==typeof u&&p.domainBind(c,u),promise:a,receiver:i,value:d})}else s._addCallbacks(e,t,a,i,c);return a},T.prototype._length=function(){return 65535&this._bitField},T.prototype._isFateSealed=function(){return 0!=(117506048&this._bitField)},T.prototype._isFollowing=function(){return 67108864==(67108864&this._bitField)},T.prototype._setLength=function(e){this._bitField=-65536&this._bitField|65535&e},T.prototype._setFulfilled=function(){this._bitField=33554432|this._bitField,this._fireEvent("promiseFulfilled",this)},T.prototype._setRejected=function(){this._bitField=16777216|this._bitField,this._fireEvent("promiseRejected",this)},T.prototype._setFollowing=function(){this._bitField=67108864|this._bitField,this._fireEvent("promiseResolved",this)},T.prototype._setIsFinal=function(){this._bitField=4194304|this._bitField},T.prototype._isFinal=function(){return 0<(4194304&this._bitField)},T.prototype._unsetCancelled=function(){this._bitField=-65537&this._bitField},T.prototype._setCancelled=function(){this._bitField=65536|this._bitField,this._fireEvent("promiseCancelled",this)},T.prototype._setWillBeCancelled=function(){this._bitField=8388608|this._bitField},T.prototype._setAsyncGuaranteed=function(){g.hasCustomScheduler()||(this._bitField=134217728|this._bitField)},T.prototype._receiverAt=function(e){var t=0===e?this._receiver0:this[4*e-4+3];return t===u?undefined:t===undefined&&this._isBound()?this._boundValue():t},T.prototype._promiseAt=function(e){return this[4*e-4+2]},T.prototype._fulfillmentHandlerAt=function(e){return this[4*e-4+0]},T.prototype._rejectionHandlerAt=function(e){return this[4*e-4+1]},T.prototype._boundValue=function(){},T.prototype._migrateCallback0=function(e){e._bitField;var t=e._fulfillmentHandler0,n=e._rejectionHandler0,i=e._promise0,r=e._receiverAt(0);r===undefined&&(r=u),this._addCallbacks(t,n,i,r,null)},T.prototype._migrateCallbackAt=function(e,t){var n=e._fulfillmentHandlerAt(t),i=e._rejectionHandlerAt(t),r=e._promiseAt(t),o=e._receiverAt(t);o===undefined&&(o=u),this._addCallbacks(n,i,r,o,null)},T.prototype._addCallbacks=function(e,t,n,i,r){var o=this._length();if(65531<=o&&(o=0,this._setLength(0)),0===o)this._promise0=n,this._receiver0=i,"function"==typeof e&&(this._fulfillmentHandler0=null===r?e:p.domainBind(r,e)),"function"==typeof t&&(this._rejectionHandler0=null===r?t:p.domainBind(r,t));else{var a=4*o-4;this[a+2]=n,this[a+3]=i,"function"==typeof e&&(this[a+0]=null===r?e:p.domainBind(r,e)),"function"==typeof t&&(this[a+1]=null===r?t:p.domainBind(r,t))}return this._setLength(o+1),o},T.prototype._proxy=function(e,t){this._addCallbacks(undefined,undefined,t,e,null)},T.prototype._resolveCallback=function(e,t){if(0==(117506048&this._bitField)){if(e===this)return this._rejectCallback(l(),!1);var n=_(e,this);if(!(n instanceof T))return this._fulfill(e);t&&this._propagateFrom(n,2);var i=n._target();if(i!==this){var r=i._bitField;if(0==(50397184&r)){var o=this._length();0<o&&i._migrateCallback0(this);for(var a=1;a<o;++a)i._migrateCallbackAt(this,a);this._setFollowing(),this._setLength(0),this._setFollowee(i)}else if(0!=(33554432&r))this._fulfill(i._value());else if(0!=(16777216&r))this._reject(i._reason());else{var s=new m("late cancellation observer");i._attachExtraTrace(s),this._reject(s)}}else this._reject(l())}},T.prototype._rejectCallback=function(e,t,n){var i=p.ensureErrorObject(e),r=i===e;if(!r&&!n&&w.warnings()){var o="a promise was rejected with a non-error: "+p.classString(e);this._warn(o,!0)}this._attachExtraTrace(i,!!t&&r),this._reject(e)},T.prototype._resolveFromExecutor=function(e){if(e!==v){var t=this;this._captureStackTrace(),this._pushContext();var n=!0,i=this._execute(e,function(e){t._resolveCallback(e)},function(e){t._rejectCallback(e,n)});n=!1,this._popContext(),i!==undefined&&t._rejectCallback(i,!0)}},T.prototype._settlePromiseFromHandler=function(e,t,n,i){var r=i._bitField;if(0==(65536&r)){var o;i._pushContext(),t===f?n&&"number"==typeof n.length?o=k(e).apply(this._boundValue(),n):(o=F).e=new d("cannot .spread() a non-array: "+p.classString(n)):o=k(e).call(t,n);var a=i._popContext();0==(65536&(r=i._bitField))&&(o===y?i._reject(n):o===F?i._rejectCallback(o.e,!1):(w.checkForgottenReturns(o,a,"",i,this),i._resolveCallback(o)))}},T.prototype._target=function(){for(var e=this;e._isFollowing();)e=e._followee();return e},T.prototype._followee=function(){return this._rejectionHandler0},T.prototype._setFollowee=function(e){this._rejectionHandler0=e},T.prototype._settlePromise=function(e,t,n,i){var r=e instanceof T,o=this._bitField,a=0!=(134217728&o);0!=(65536&o)?(r&&e._invokeInternalOnCancel(),n instanceof x&&n.isFinallyHandler()?(n.cancelPromise=e,k(t).call(n,i)===F&&e._reject(F.e)):t===s?e._fulfill(s.call(n)):n instanceof c?n._promiseCancelled(e):r||e instanceof b?e._cancel():n.cancel()):"function"==typeof t?r?(a&&e._setAsyncGuaranteed(),this._settlePromiseFromHandler(t,n,i,e)):t.call(n,i,e):n instanceof c?n._isResolved()||(0!=(33554432&o)?n._promiseFulfilled(i,e):n._promiseRejected(i,e)):r&&(a&&e._setAsyncGuaranteed(),0!=(33554432&o)?e._fulfill(i):e._reject(i))},T.prototype._settlePromiseLateCancellationObserver=function(e){var t=e.handler,n=e.promise,i=e.receiver,r=e.value;"function"==typeof t?n instanceof T?this._settlePromiseFromHandler(t,i,r,n):t.call(i,r,n):n instanceof T&&n._reject(r)},T.prototype._settlePromiseCtx=function(e){this._settlePromise(e.promise,e.handler,e.receiver,e.value)},T.prototype._settlePromise0=function(e,t,n){var i=this._promise0,r=this._receiverAt(0);this._promise0=undefined,this._receiver0=undefined,this._settlePromise(i,e,r,t)},T.prototype._clearCallbackDataAtIndex=function(e){var t=4*e-4;this[t+2]=this[t+3]=this[t+0]=this[t+1]=undefined},T.prototype._fulfill=function(e){var t=this._bitField;if(!((117506048&t)>>>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<e;n++){var i=this._fulfillmentHandlerAt(n),r=this._promiseAt(n),o=this._receiverAt(n);this._clearCallbackDataAtIndex(n),this._settlePromise(r,i,o,t)}},T.prototype._rejectPromises=function(e,t){for(var n=1;n<e;n++){var i=this._rejectionHandlerAt(n),r=this._promiseAt(n),o=this._receiverAt(n);this._clearCallbackDataAtIndex(n),this._settlePromise(r,i,o,t)}},T.prototype._settlePromises=function(){var e=this._bitField,t=65535&e;if(0<t){if(0!=(16842752&e)){var n=this._fulfillmentHandler0;this._settlePromise0(this._rejectionHandler0,n,e),this._rejectPromises(t,n)}else{var i=this._rejectionHandler0;this._settlePromise0(this._fulfillmentHandler0,i,e),this._fulfillPromises(t,i)}this._setLength(0)}this._clearCancellationData()},T.prototype._settledValue=function(){var e=this._bitField;return 0!=(33554432&e)?this._rejectionHandler0:0!=(16777216&e)?this._fulfillmentHandler0:void 0},T.defer=T.pending=function(){return w.deprecated("Promise.defer","new Promise"),{promise:new T(v),resolve:I,reject:E}},p.notEnumerableProp(T,"_makeSelfResolutionError",l),j("./method")(T,v,_,a,w),j("./bind")(T,v,_,w),j("./cancel")(T,b,a,w),j("./direct_resolve")(T),j("./synchronous_inspection")(T),j("./join")(T,b,_,v,g,h),(T.Promise=T).version="3.5.3",j("./map.js")(T,b,a,_,v,w),j("./call_get.js")(T),j("./using.js")(T,a,_,r,v,w),j("./timers.js")(T,v,w),j("./generators.js")(T,a,v,_,c,w),j("./nodeify.js")(T),j("./promisify.js")(T,v),j("./props.js")(T,b,_,a),j("./race.js")(T,v,_,a),j("./reduce.js")(T,b,a,_,v,w),j("./settle.js")(T,b,w),j("./some.js")(T,b,a),j("./filter.js")(T,v),j("./each.js")(T,v),j("./any.js")(T),p.toFastProperties(T),p.toFastProperties(T.prototype),S({a:1}),S({b:2}),S({c:3}),S(1),S(function(){}),S(undefined),S(!1),S(new T(v)),w.setBounds(t.firstLineError,p.lastLineError),T}},{"./any.js":1,"./async":2,"./bind":3,"./call_get.js":5,"./cancel":6,"./catch_filter":7,"./context":8,"./debuggability":9,"./direct_resolve":10,"./each.js":11,"./errors":12,"./es5":13,"./filter.js":14,"./finally":15,"./generators.js":16,"./join":17,"./map.js":18,"./method":19,"./nodeback":20,"./nodeify.js":21,"./promise_array":23,"./promisify.js":24,"./props.js":25,"./race.js":27,"./reduce.js":28,"./settle.js":30,"./some.js":31,"./synchronous_inspection":32,"./thenables":33,"./timers.js":34,"./using.js":35,"./util":36}],23:[function(i,e,t){e.exports=function(s,n,l,a,e){var c=i("./util");c.isArray;function t(e){var t=this._promise=new s(n);e instanceof s&&t._propagateFrom(e,3),t._setOnCancel(this),this._values=e,this._length=0,this._totalResolved=0,this._init(undefined,-2)}return c.inherits(t,e),t.prototype.length=function(){return this._length},t.prototype.promise=function(){return this._promise},t.prototype._init=function u(e,t){var n=l(this._values,this._promise);if(n instanceof s){var i=(n=n._target())._bitField;if(this._values=n,0==(50397184&i))return this._promise._setAsyncGuaranteed(),n._then(u,this._reject,undefined,this,t);if(0==(33554432&i))return 0!=(16777216&i)?this._reject(n._reason()):this._cancel();n=n._value()}if(null!==(n=c.asArray(n)))0!==n.length?this._iterate(n):-5===t?this._resolveEmptyArray():this._resolve(function o(e){switch(e){case-2:return[];case-3:return{};case-6:return new Map}}(t));else{var r=a("expecting an array or an iterable object but got "+c.classString(n)).reason();this._promise._rejectCallback(r,!1)}},t.prototype._iterate=function(e){var t=this.getActualLength(e.length);this._length=t,this._values=this.shouldCopyValues()?new Array(t):this._values;for(var n=this._promise,i=!1,r=null,o=0;o<t;++o){var a=l(e[o],n);r=a instanceof s?(a=a._target())._bitField:null,i?null!==r&&a.suppressUnhandledRejections():null!==r?0==(50397184&r)?(a._proxy(this,o),this._values[o]=a):i=0!=(33554432&r)?this._promiseFulfilled(a._value(),o):0!=(16777216&r)?this._promiseRejected(a._reason(),o):this._promiseCancelled(o):i=this._promiseFulfilled(a,o)}i||n._setAsyncGuaranteed()},t.prototype._isResolved=function(){return null===this._values},t.prototype._resolve=function(e){this._values=null,this._promise._fulfill(e)},t.prototype._cancel=function(){!this._isResolved()&&this._promise._isCancellable()&&(this._values=null,this._promise._cancel())},t.prototype._reject=function(e){this._values=null,this._promise._rejectCallback(e,!1)},t.prototype._promiseFulfilled=function(e,t){return this._values[t]=e,++this._totalResolved>=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<e.length;++t)e[t]instanceof s&&e[t].cancel()}},t.prototype.shouldCopyValues=function(){return!0},t.prototype.getActualLength=function(e){return e},t}},{"./util":36}],24:[function(n,e,t){e.exports=function(c,u){var h={},g=n("./util"),d=n("./nodeback"),f=g.withAppended,p=g.maybeWrapAsError,e=g.canEvaluate,m=n("./errors").TypeError,v={__isPromisified__:!0},t=new RegExp("^(?:"+["arity","length","name","arguments","caller","callee","prototype","__isPromisified__"].join("|")+")$"),y=function(e){return g.isIdentifier(e)&&"_"!==e.charAt(0)&&"constructor"!==e};function r(e){return!t.test(e)}function _(e){try{return!0===e.__isPromisified__}catch(ie){return!1}}function b(e,t,n,i){for(var r,o,a,s,l=g.inheritedDataKeys(e),c=[],u=0;u<l.length;++u){var d=l[u],f=e[d],h=i===y||y(d,f,e);"function"!=typeof f||_(f)||(r=e,o=d,a=t,void 0,(s=g.getDataPropertyOrDefault(r,o+a,v))&&_(s))||!i(d,f,e,h)||c.push(d,f)}return function p(e,t,n){for(var i=0;i<e.length;i+=2){var r=e[i];if(n.test(r))for(var o=r.replace(n,""),a=0;a<e.length;a+=2)if(e[a]===o)throw new m("Cannot promisify an API that has normal methods with '%s'-suffix\n\n See http://goo.gl/MqrFmX\n".replace("%s",t))}}(c,t,n),c}var w=function(e){return e.replace(/([$])/,"\\$")};var x=e?void 0:function F(r,o,e,t,n,a){var s=function(){return this}(),l=r;function i(){var e=o;o===h&&(e=this);var t=new c(u);t._captureStackTrace();var n="string"==typeof l&&this!==s?this[l]:r,i=d(t,a);try{n.apply(e,f(arguments,i))}catch(ie){t._rejectCallback(p(ie),!0,!0)}return t._isFateSealed()||t._setAsyncGuaranteed(),t}return"string"==typeof l&&(r=t),g.notEnumerableProp(i,"__isPromisified__",!0),i};function C(e,t,n,i,r){for(var o=new RegExp(w(t)+"$"),a=b(e,t,o,n),s=0,l=a.length;s<l;s+=2){var c=a[s],u=a[s+1],d=c+t;if(i===x)e[d]=x(c,h,c,u,t,r);else{var f=i(u,function(){return x(c,h,c,u,t,r)});g.notEnumerableProp(f,"__isPromisified__",!0),e[d]=f}}return g.toFastProperties(e),e}c.promisify=function(e,t){if("function"!=typeof e)throw new m("expecting a function but got "+g.classString(e));if(_(e))return e;var n=function i(e,t,n){return x(e,t,undefined,e,null,n)}(e,(t=Object(t)).context===undefined?h:t.context,!!t.multiArgs);return g.copyDescriptors(e,n,r),n},c.promisifyAll=function(e,t){if("function"!=typeof e&&"object"!=typeof e)throw new m("the target of promisifyAll must be an object or a function\n\n See http://goo.gl/MqrFmX\n");var n=!!(t=Object(t)).multiArgs,i=t.suffix;"string"!=typeof i&&(i="Async");var r=t.filter;"function"!=typeof r&&(r=y);var o=t.promisifier;if("function"!=typeof o&&(o=x),!g.isIdentifier(i))throw new RangeError("suffix must be a valid identifier\n\n See http://goo.gl/MqrFmX\n");for(var a=g.inheritedDataKeys(e),s=0;s<a.length;++s){var l=e[a[s]];"constructor"!==a[s]&&g.isClass(l)&&(C(l.prototype,i,r,o,n),C(l,i,r,o,n))}return C(e,i,r,o,n)}}},{"./errors":12,"./nodeback":20,"./util":36}],25:[function(d,e,t){e.exports=function(i,e,r,o){var s,t=d("./util"),a=t.isObject,l=d("./es5");"function"==typeof Map&&(s=Map);var c=function(){var n=0,i=0;function r(e,t){this[n]=e,this[n+i]=t,n++}return function(e){i=e.size,n=0;var t=new Array(2*e.size);return e.forEach(r,t),t}}();function u(e){var t,n=!1;if(s!==undefined&&e instanceof s)t=c(e),n=!0;else{var i=l.keys(e),r=i.length;t=new Array(2*r);for(var o=0;o<r;++o){var a=i[o];t[o]=e[a],t[o+r]=a}}this.constructor$(t),this._isMap=n,this._init$(undefined,n?-6:-3)}function n(e){var t,n=r(e);return a(n)?(t=n instanceof i?n._then(i.props,undefined,undefined,undefined,undefined):new u(n).promise(),n instanceof i&&t._propagateFrom(n,2),t):o("cannot await properties of a non-object\n\n See http://goo.gl/MqrFmX\n")}t.inherits(u,e),u.prototype._init=function(){},u.prototype._promiseFulfilled=function(e,t){if(this._values[t]=e,++this._totalResolved>=this._length){var n;if(this._isMap)n=function(e){for(var t=new s,n=e.length/2|0,i=0;i<n;++i){var r=e[n+i],o=e[i];t.set(r,o)}return t}(this._values);else{n={};for(var i=this.length(),r=0,o=this.length();r<o;++r)n[this._values[r+i]]=this._values[r]}return this._resolve(n),!0}return!1},u.prototype.shouldCopyValues=function(){return!1},u.prototype.getActualLength=function(e){return e>>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<e},i.prototype._pushOne=function(e){var t=this.length();this._checkCapacity(t+1),this[this._front+t&this._capacity-1]=e,this._length=t+1},i.prototype.push=function(e,t,n){var i=this.length()+3;if(this._willBeOverCapacity(i))return this._pushOne(e),this._pushOne(t),void this._pushOne(n);var r=this._front+i-3;this._checkCapacity(i);var o=this._capacity-1;this[r+0&o]=e,this[r+1&o]=t,this[r+2&o]=n,this._length=i},i.prototype.shift=function(){var e=this._front,t=this[e];return this[e]=undefined,this._front=e+1&this._capacity-1,this._length--,t},i.prototype.length=function(){return this._length},i.prototype._checkCapacity=function(e){this._capacity<e&&this._resizeTo(this._capacity<<1)},i.prototype._resizeTo=function(e){var t=this._capacity;this._capacity=e,function a(e,t,n,i,r){for(var o=0;o<r;++o)n[o+i]=e[o+t],e[o+t]=void 0}(this,0,this,t,this._front+this._length&t-1)},t.exports=i},{}],27:[function(e,t,n){t.exports=function(c,u,d,f){var h=e("./util"),p=function(t){return t.then(function(e){return n(e,t)})};function n(e,t){var n=d(e);if(n instanceof c)return p(n);if(null===(e=h.asArray(e)))return f("expecting an array or an iterable object but got "+h.classString(e));var i=new c(u);t!==undefined&&i._propagateFrom(t,3);for(var r=i._fulfill,o=i._reject,a=0,s=e.length;a<s;++a){var l=e[a];(l!==undefined||a in e)&&c.cast(l)._then(r,o,undefined,i,null)}return i}c.race=function(e){return n(e,undefined)},c.prototype.race=function(){return n(this,undefined)}}},{"./util":36}],28:[function(t,e,n){e.exports=function(a,e,r,n,o,s){var l=a._getDomain,c=t("./util"),u=c.tryCatch;function d(e,t,n,i){this.constructor$(e);var r=l();this._fn=null===r?t:c.domainBind(r,t),n!==undefined&&(n=a.resolve(n))._attachCancellationCallback(this),this._initialValue=n,this._currentCancellable=null,this._eachValues=i===o?Array(this._length):0===i?null:undefined,this._promise._captureStackTrace(),this._init$(undefined,-5)}function f(e,t){this.isFulfilled()?t._resolve(e):t._reject(e)}function h(e,t,n,i){return"function"!=typeof t?r("expecting a function but got "+c.classString(t)):new d(e,t,n,i).promise()}function p(e){this.accum=e,this.array._gotAccum(e);var t=n(this.value,this.array._promise);return t instanceof a?(this.array._currentCancellable=t)._then(i,undefined,undefined,this,undefined):i.call(this,t)}function i(e){var t,n=this.array,i=n._promise,r=u(n._fn);i._pushContext(),(t=n._eachValues!==undefined?r.call(i._boundValue(),e,this.index,this.length):r.call(i._boundValue(),this.accum,e,this.index,this.length))instanceof a&&(n._currentCancellable=t);var o=i._popContext();return s.checkForgottenReturns(t,o,n._eachValues!==undefined?"Promise.each":"Promise.reduce",i),t}c.inherits(d,e),d.prototype._gotAccum=function(e){this._eachValues!==undefined&&null!==this._eachValues&&e!==o&&this._eachValues.push(e)},d.prototype._eachComplete=function(e){return null!==this._eachValues&&this._eachValues.push(e),this._eachValues},d.prototype._init=function(){},d.prototype._resolveEmptyArray=function(){this._resolve(this._eachValues!==undefined?this._eachValues:this._initialValue)},d.prototype.shouldCopyValues=function(){return!1},d.prototype._resolve=function(e){this._promise._resolveCallback(e),this._values=null},d.prototype._resultCancelled=function(e){if(e===this._initialValue)return this._cancel();this._isResolved()||(this._resultCancelled$(),this._currentCancellable instanceof a&&this._currentCancellable.cancel(),this._initialValue instanceof a&&this._initialValue.cancel())},d.prototype._iterate=function(e){var t,n,i=(this._values=e).length;if(n=this._initialValue!==undefined?(t=this._initialValue,0):(t=a.resolve(e[0]),1),!(this._currentCancellable=t).isRejected())for(;n<i;++n){var r={accum:null,value:e[n],index:n,length:i,array:this};t=t._then(p,undefined,undefined,r,undefined)}this._eachValues!==undefined&&(t=t._then(this._eachComplete,undefined,undefined,this,undefined)),t._then(f,f,undefined,t,this)},a.prototype.reduce=function(e,t){return h(this,e,t,null)},a.reduce=function(e,t,n,i){return h(e,t,n,i)}}},{"./util":36}],29:[function(e,t,n){var i,r=e("./util"),o=r.getNativePromise();if(r.isNode&&"undefined"==typeof MutationObserver){var a=W.setImmediate,s=process.nextTick;i=r.isRecentNode?function(e){a.call(W,e)}:function(e){s.call(process,e)}}else if("function"==typeof o&&"function"==typeof o.resolve){var l=o.resolve();i=function(e){l.then(e)}}else i="undefined"==typeof MutationObserver||"undefined"!=typeof window&&window.navigator&&(window.navigator.standalone||window.cordova)?"undefined"!=typeof setImmediate?function(e){setImmediate(e)}:"undefined"!=typeof setTimeout?function(e){setTimeout(e,0)}:function(){throw new Error("No async scheduler available\n\n See http://goo.gl/MqrFmX\n")}:function(){var n=document.createElement("div"),i={attributes:!0},r=!1,o=document.createElement("div");new MutationObserver(function(){n.classList.toggle("foo"),r=!1}).observe(o,i);return function(e){var t=new MutationObserver(function(){t.disconnect(),e()});t.observe(n,i),r||(r=!0,o.classList.toggle("foo"))}}();t.exports=i},{"./util":36}],30:[function(o,e,t){e.exports=function(e,t,n){var i=e.PromiseInspection;function r(e){this.constructor$(e)}o("./util").inherits(r,t),r.prototype._promiseResolved=function(e,t){return this._values[e]=t,++this._totalResolved>=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<this._values.length;++t)this._values[t]!==s&&e.push(this._values[t]);return 0<e.length?this._reject(e):this._cancel(),!0}return!1},l.prototype._fulfilled=function(){return this._totalResolved},l.prototype._rejected=function(){return this._values.length-this.length()},l.prototype._addRejected=function(e){this._values.push(e)},l.prototype._addFulfilled=function(e){this._values[this._totalResolved++]=e},l.prototype._canPossiblyFulfill=function(){return this.length()-this._rejected()},l.prototype._getRangeError=function(e){var t="Input array must contain at least "+this._howMany+" items but contains only "+e+" items";return new i(t)},l.prototype._resolveEmptyArray=function(){this._reject(this._getRangeError(0))},e.some=function(e,t){return c(e,t)},e.prototype.some=function(e){return c(this,e)},e._SomePromiseArray=l}},{"./errors":12,"./util":36}],32:[function(e,t,n){t.exports=function(e){function t(e){e!==undefined?(e=e._target(),this._bitField=e._bitField,this._settledValueField=e._isFateSealed()?e._settledValue():undefined):(this._bitField=0,this._settledValueField=undefined)}t.prototype._settledValue=function(){return this._settledValueField};var n=t.prototype.value=function(){if(!this.isFulfilled())throw new TypeError("cannot get fulfillment value of a non-fulfilled promise\n\n See http://goo.gl/MqrFmX\n");return this._settledValue()},i=t.prototype.error=t.prototype.reason=function(){if(!this.isRejected())throw new TypeError("cannot get rejection reason of a non-rejected promise\n\n See http://goo.gl/MqrFmX\n");return this._settledValue()},r=t.prototype.isFulfilled=function(){return 0!=(33554432&this._bitField)},o=t.prototype.isRejected=function(){return 0!=(16777216&this._bitField)},a=t.prototype.isPending=function(){return 0==(50397184&this._bitField)},s=t.prototype.isResolved=function(){return 0!=(50331648&this._bitField)};t.prototype.isCancelled=function(){return 0!=(8454144&this._bitField)},e.prototype.__isCancelled=function(){return 65536==(65536&this._bitField)},e.prototype._isCancelled=function(){return this._target().__isCancelled()},e.prototype.isCancelled=function(){return 0!=(8454144&this._target()._bitField)},e.prototype.isPending=function(){return a.call(this._target())},e.prototype.isRejected=function(){return o.call(this._target())},e.prototype.isFulfilled=function(){return r.call(this._target())},e.prototype.isResolved=function(){return s.call(this._target())},e.prototype.value=function(){return n.call(this._target())},e.prototype.reason=function(){var e=this._target();return e._unsetRejectionIsUnhandled(),i.call(e)},e.prototype._value=function(){return this._settledValue()},e.prototype._reason=function(){return this._unsetRejectionIsUnhandled(),this._settledValue()},e.PromiseInspection=t}},{}],33:[function(e,t,n){t.exports=function(u,d){var f=e("./util"),h=f.errorObj,a=f.isObject;var s={}.hasOwnProperty;return function l(e,t){if(a(e)){if(e instanceof u)return e;var n=function r(e){try{return function t(e){return e.then}(e)}catch(ie){return h.e=ie,h}}(e);if(n===h){t&&t._pushContext();var i=u.reject(n.e);return t&&t._popContext(),i}if("function"==typeof n)return function o(e){try{return s.call(e,"_promise0")}catch(ie){return!1}}(e)?(i=new u(d),e._then(i._fulfill,i._reject,undefined,i,null),i):function c(e,t,n){var i=new u(d),r=i;n&&n._pushContext(),i._captureStackTrace(),n&&n._popContext();var o=!0,a=f.tryCatch(t).call(e,function s(e){i&&(i._resolveCallback(e),i=null)},function l(e){i&&(i._rejectCallback(e,o,!0),i=null)});return o=!1,i&&a===h&&(i._rejectCallback(a.e,!0,!0),i=null),r}(e,n,t)}return e}}},{"./util":36}],34:[function(e,t,n){t.exports=function(r,o,s){var l=e("./util"),c=r.TimeoutError;function u(e){this.handle=e}u.prototype._resultCancelled=function(){clearTimeout(this.handle)};var a=function(e){return t(+this).thenReturn(e)},t=r.delay=function(e,t){var n,i;return t!==undefined?(n=r.resolve(t)._then(a,null,null,e,undefined),s.cancellation()&&t instanceof r&&n._setOnCancel(t)):(n=new r(o),i=setTimeout(function(){n._fulfill()},+e),s.cancellation()&&n._setOnCancel(new u(i)),n._captureStackTrace()),n._setAsyncGuaranteed(),n};r.prototype.delay=function(e){return t(e,this)};function n(e){return clearTimeout(this.handle),e}function i(e){throw clearTimeout(this.handle),e}r.prototype.timeout=function(e,r){var o,a;e=+e;var t=new u(setTimeout(function(){var e,t,n,i;o.isPending()&&(e=o,n=a,i="string"!=typeof(t=r)?t instanceof Error?t:new c("operation timed out"):new c(t),l.markAsOriginatingFromRejection(i),e._attachExtraTrace(i),e._reject(i),null!=n&&n.cancel())},e));return s.cancellation()?(a=this.then(),(o=a._then(n,i,undefined,t,undefined))._setOnCancel(t)):o=this._then(n,i,undefined,t,undefined),o}}},{"./util":36}],35:[function(a,e,t){e.exports=function(f,h,p,t,e,g){var m=a("./util"),n=a("./errors").TypeError,i=a("./util").inherits,v=m.errorObj,y=m.tryCatch,r={};function l(e){setTimeout(function(){throw e},0)}function _(t,i){var r=0,o=t.length,a=new f(e);return function s(){if(o<=r)return a._fulfill();var e=function n(e){var t=p(e);return t!==e&&"function"==typeof e._isDisposable&&"function"==typeof e._getDisposer&&e._isDisposable()&&t._setDisposable(e._getDisposer()),t}(t[r++]);if(e instanceof f&&e._isDisposable()){try{e=p(e._getDisposer().tryDispose(i),t.promise)}catch(ie){return l(ie)}if(e instanceof f)return e._then(s,l,null,null,null)}s()}(),a}function b(e,t,n){this._data=e,this._promise=t,this._context=n}function o(e,t,n){this.constructor$(e,t,n)}function w(e){return b.isDisposer(e)?(this.resources[this.index]._setDisposable(e),e.promise()):e}function x(e){this.length=e,this.promise=null,this[e-1]=null}b.prototype.data=function(){return this._data},b.prototype.promise=function(){return this._promise},b.prototype.resource=function(){return this.promise().isFulfilled()?this.promise().value():r},b.prototype.tryDispose=function(e){var t=this.resource(),n=this._context;n!==undefined&&n._pushContext();var i=t!==r?this.doDispose(t,e):null;return n!==undefined&&n._popContext(),this._promise._unsetDisposable(),this._data=null,i},b.isDisposer=function(e){return null!=e&&"function"==typeof e.resource&&"function"==typeof e.tryDispose},i(o,b),o.prototype.doDispose=function(e,t){return this.data().call(e,e,t)},x.prototype._resultCancelled=function(){for(var e=this.length,t=0;t<e;++t){var n=this[t];n instanceof f&&n.cancel()}},f.using=function(){var e=arguments.length;if(e<2)return h("you must pass at least 2 arguments to Promise.using");var t,o=arguments[e-1];if("function"!=typeof o)return h("expecting a function but got "+m.classString(o));var a=!0;2===e&&Array.isArray(arguments[0])?(e=(t=arguments[0]).length,a=!1):(t=arguments,e--);for(var n=new x(e),i=0;i<e;++i){var r=t[i];if(b.isDisposer(r)){var s=r;(r=r.promise())._setDisposable(s)}else{var l=p(r);l instanceof f&&(r=l._then(w,null,null,{resources:n,index:i},undefined))}n[i]=r}var c=new Array(n.length);for(i=0;i<c.length;++i)c[i]=f.resolve(n[i]).reflect();var u=f.all(c).then(function(e){for(var t=0;t<e.length;++t){var n=e[t];if(n.isRejected())return v.e=n.error(),v;if(!n.isFulfilled())return void u.cancel();e[t]=n.value()}d._pushContext(),o=y(o);var i=a?o.apply(undefined,e):o(e),r=d._popContext();return g.checkForgottenReturns(i,r,"Promise.using",d),i}),d=u.lastly(function(){var e=new f.PromiseInspection(u);return _(n,e)});return(n.promise=d)._setOnCancel(n),d},f.prototype._setDisposable=function(e){this._bitField=131072|this._bitField,this._disposer=e},f.prototype._isDisposable=function(){return 0<(131072&this._bitField)},f.prototype._getDisposer=function(){return this._disposer},f.prototype._unsetDisposable=function(){this._bitField=-131073&this._bitField,this._disposer=undefined},f.prototype.disposer=function(e){if("function"==typeof e)return new o(e,this,t());throw new n}}},{"./errors":12,"./util":36}],36:[function(e,t,n){var c=e("./es5"),i="undefined"==typeof navigator,r={e:{}},o,a="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==W?W:this!==undefined?this:null;function s(){try{var e=o;return o=null,e.apply(this,arguments)}catch(ie){return r.e=ie,r}}function l(e){return o=e,s}var u=function(t,n){var i={}.hasOwnProperty;function e(){for(var e in this.constructor=t,(this.constructor$=n).prototype)i.call(n.prototype,e)&&"$"!==e.charAt(e.length-1)&&(this[e+"$"]=n.prototype[e])}return e.prototype=n.prototype,t.prototype=new e,t.prototype};function d(e){return null==e||!0===e||!1===e||"string"==typeof e||"number"==typeof e}function f(e){return"function"==typeof e||"object"==typeof e&&null!==e}function h(e){return d(e)?new Error(k(e)):e}function p(e,t){var n,i=e.length,r=new Array(i+1);for(n=0;n<i;++n)r[n]=e[n];return r[n]=t,r}function g(e,t,n){if(!c.isES5)return{}.hasOwnProperty.call(e,t)?e[t]:undefined;var i=Object.getOwnPropertyDescriptor(e,t);return null!=i?null==i.get&&null==i.set?i.value:n:void 0}function m(e,t,n){if(d(e))return e;var i={value:n,configurable:!0,enumerable:!1,writable:!0};return c.defineProperty(e,t,i),e}function v(e){throw e}var y=function(){var r=[Array.prototype,Object.prototype,Function.prototype],s=function(e){for(var t=0;t<r.length;++t)if(r[t]===e)return!0;return!1};if(c.isES5){var l=Object.getOwnPropertyNames;return function(e){for(var t=[],n=Object.create(null);null!=e&&!s(e);){var i;try{i=l(e)}catch(ie){return t}for(var r=0;r<i.length;++r){var o=i[r];if(!n[o]){n[o]=!0;var a=Object.getOwnPropertyDescriptor(e,o);null!=a&&null==a.get&&null==a.set&&t.push(o)}}e=c.getPrototypeOf(e)}return t}}var o={}.hasOwnProperty;return function(e){if(s(e))return[];var t=[];e:for(var n in e)if(o.call(e,n))t.push(n);else{for(var i=0;i<r.length;++i)if(o.call(r[i],n))continue e;t.push(n)}return t}}(),_=/this\s*\.\s*\S+\s*=/;function b(e){try{if("function"==typeof e){var t=c.names(e.prototype),n=c.isES5&&1<t.length,i=0<t.length&&!(1===t.length&&"constructor"===t[0]),r=_.test(e+"")&&0<c.names(e).length;if(n||i||r)return!0}return!1}catch(ie){return!1}}function w(e){return e}var x=/^[a-z$_][a-z$_0-9]*$/i;function C(e){return x.test(e)}function F(e,t,n){for(var i=new Array(e),r=0;r<e;++r)i[r]=t+r+n;return i}function k(e){try{return e+""}catch(ie){return"[no string representation]"}}function T(e){return e instanceof Error||null!==e&&"object"==typeof e&&"string"==typeof e.message&&"string"==typeof e.name}function I(e){try{m(e,"isOperational",!0)}catch(t){}}function E(e){return null!=e&&(e instanceof Error.__BluebirdErrorTypes__.OperationalError||!0===e.isOperational)}function S(e){return T(e)&&c.propertyIsWritable(e,"stack")}var j="stack"in new Error?function(e){return S(e)?e:new Error(k(e))}:function(e){if(S(e))return e;try{throw new Error(k(e))}catch(t){return t}};function P(e){return{}.toString.call(e)}function R(e,t,n){for(var i=c.names(e),r=0;r<i.length;++r){var o=i[r];if(n(o))try{c.defineProperty(t,o,c.getDescriptor(e,o))}catch(a){}}}var B=function(e){return c.isArray(e)?e:null};if("undefined"!=typeof Symbol&&Symbol.iterator){var H="function"==typeof Array.from?function(e){return Array.from(e)}:function(e){for(var t,n=[],i=e[Symbol.iterator]();!(t=i.next()).done;)n.push(t.value);return n};B=function(e){return c.isArray(e)?e:null!=e&&"function"==typeof e[Symbol.iterator]?H(e):null}}var O="undefined"!=typeof process&&"[object process]"===P(process).toLowerCase(),A="undefined"!=typeof process&&"undefined"!=typeof process.env;function M(e){return A?process.env[e]:undefined}function L(){if("function"==typeof Promise)try{var e=new Promise(function(){});if("[object Promise]"==={}.toString.call(e))return Promise}catch(ie){}}function N(e,t){return e.bind(t)}var z={isClass:b,isIdentifier:C,inheritedDataKeys:y,getDataPropertyOrDefault:g,thrower:v,isArray:c.isArray,asArray:B,notEnumerableProp:m,isPrimitive:d,isObject:f,isError:T,canEvaluate:i,errorObj:r,tryCatch:l,inherits:u,withAppended:p,maybeWrapAsError:h,toFastProperties:w,filledRange:F,toString:k,canAttachTrace:S,ensureErrorObject:j,originatesFromRejection:E,markAsOriginatingFromRejection:I,classString:P,copyDescriptors:R,hasDevTools:"undefined"!=typeof chrome&&chrome&&"function"==typeof chrome.loadTimes,isNode:O,hasEnvVariables:A,env:M,global:a,getNativePromise:L,domainBind:N},D;z.isRecentNode=z.isNode&&(D=process.versions.node.split(".").map(Number),0===D[0]&&10<D[1]||0<D[0]),z.isNode&&z.toFastProperties(process);try{throw new Error}catch(ie){z.lastLineError=ie}t.exports=z},{"./es5":13}]},{},[4])(4)},e.exports=n(),"undefined"!=typeof window&&null!==window?window.P=window.Promise:"undefined"!=typeof self&&null!==self&&(self.P=self.Promise)}),F=1e3,k=60*F,T=60*k,I=24*T,E=365.25*I,S=function(e,t){t=t||{};var n=typeof e;if("string"===n&&0<e.length)return j(e);if("number"===n&&!1===isNaN(e))return t["long"]?R(e):P(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function j(e){if(!(100<(e=String(e)).length)){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){var n=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return n*E;case"days":case"day":case"d":return n*I;case"hours":case"hour":case"hrs":case"hr":case"h":return n*T;case"minutes":case"minute":case"mins":case"min":case"m":return n*k;case"seconds":case"second":case"secs":case"sec":case"s":return n*F;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return undefined}}}}function P(e){return I<=e?Math.round(e/I)+"d":T<=e?Math.round(e/T)+"h":k<=e?Math.round(e/k)+"m":F<=e?Math.round(e/F)+"s":e+"ms"}function R(e){return B(e,I,"day")||B(e,T,"hour")||B(e,k,"minute")||B(e,F,"second")||e+" ms"}function B(e,t,n){if(!(e<t))return e<1.5*t?Math.floor(e/t)+" "+n:Math.ceil(e/t)+" "+n+"s"}var H=f(function(e,s){var l;function t(e){function i(){if(i.enabled){var r=i,e=+new Date,t=e-(l||e);r.diff=t,r.prev=l,r.curr=e,l=e;for(var o=new Array(arguments.length),n=0;n<o.length;n++)o[n]=arguments[n];o[0]=s.coerce(o[0]),"string"!=typeof o[0]&&o.unshift("%O");var a=0;o[0]=o[0].replace(/%([a-zA-Z%])/g,function(e,t){if("%%"===e)return e;a++;var n=s.formatters[t];if("function"==typeof n){var i=o[a];e=n.call(r,i),o.splice(a,1),a--}return e}),s.formatArgs.call(r,o),(i.log||s.log||console.log.bind(console)).apply(r,o)}}return i.namespace=e,i.enabled=s.enabled(e),i.useColors=s.useColors(),i.color=function r(e){var t,n=0;for(t in e)n=(n<<5)-n+e.charCodeAt(t),n|=0;return s.colors[Math.abs(n)%s.colors.length]}(e),"function"==typeof s.init&&s.init(i),i}(s=e.exports=t.debug=t["default"]=t).coerce=function n(e){return e instanceof Error?e.stack||e.message:e},s.disable=function i(){s.enable("")},s.enable=function r(e){s.save(e),s.names=[],s.skips=[];for(var t=("string"==typeof e?e:"").split(/[\s,]+/),n=t.length,i=0;i<n;i++)t[i]&&("-"===(e=t[i].replace(/\*/g,".*?"))[0]?s.skips.push(new RegExp("^"+e.substr(1)+"$")):s.names.push(new RegExp("^"+e+"$")))},s.enabled=function o(e){var t,n;for(t=0,n=s.skips.length;t<n;t++)if(s.skips[t].test(e))return!1;for(t=0,n=s.names.length;t<n;t++)if(s.names[t].test(e))return!0;return!1},s.humanize=S,s.names=[],s.skips=[],s.formatters={}}),O=H.coerce,A=H.disable,M=H.enable,L=H.enabled,N=H.humanize,z=H.names,D=H.skips,V=H.formatters,U=f(function(e,o){function t(){var e;try{e=o.storage.debug}catch(t){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e}(o=e.exports=H).log=function n(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},o.formatArgs=function a(e){var t=this.useColors;if(e[0]=(t?"%c":"")+this.namespace+(t?" %c":" ")+e[0]+(t?"%c ":" ")+"+"+o.humanize(this.diff),!t)return;var n="color: "+this.color;e.splice(1,0,n,"color: inherit");var i=0,r=0;e[0].replace(/%[a-zA-Z%]/g,function(e){"%%"!==e&&(i++,"%c"===e&&(r=i))}),e.splice(r,0,n)},o.save=function i(e){try{null==e?o.storage.removeItem("debug"):o.storage.debug=e}catch(t){}},o.load=t,o.useColors=function r(){if("undefined"!=typeof window&&window.process&&"renderer"===window.process.type)return!0;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&31<=parseInt(RegExp.$1,10)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},o.storage="undefined"!=typeof chrome&&"undefined"!=typeof chrome.storage?chrome.storage.local:function s(){try{return window.localStorage}catch(e){}}(),o.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],o.formatters.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}},o.enable(t())}),q=U.log,$=U.formatArgs,Y=U.save,Q=U.load,X=U.useColors,G=U.storage,J=U.colors,K=U("jsonp"),Z=ne,ee=0;function te(){}function ne(e,t,n){"function"==typeof t&&(n=t,t={}),t||(t={});var i,r,o=t.prefix||"__jp",a=t.name||o+ee++,s=t.param||"callback",l=null!=t.timeout?t.timeout:6e4,c=encodeURIComponent,u=document.getElementsByTagName("script")[0]||document.head;function d(){i.parentNode&&i.parentNode.removeChild(i),window[a]=te,r&&clearTimeout(r)}return l&&(r=setTimeout(function(){d(),n&&n(new Error("Timeout"))},l)),window[a]=function(e){d(),n&&n(null,e)},e=(e+=(~e.indexOf("?")?"&":"?")+s+"="+c(a)).replace("?&","?"),(i=document.createElement("script")).src=e,u.parentNode.insertBefore(i,u),function f(){window[a]&&d()}}function ie(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n+"="+encodeURIComponent(e[n]));return t.join("&")}function re(){this.clkhost="show.look.360.cn"}re.prototype.next=function(e,t,n){if(0===e)return{data:{res:[]}};n=n||"youlike";var i=t.showid,r={sqid:"",sign:t.sign,version:"2.0",market:"pc_def",device:"2",v:1,sv:1,c:n,net:5,ufrom:1,n:e,djsource:i,scene:i,sub_scene:1,refer_scene:0,refer_subscene:0,f:"jsonp",where:"list",stype:"portal",action:1},o="",a="show.look.360.cn";return t.isFeedPrivate&&(a="papi.look.360.cn",this.clkhost="papi.look.360.cn"),o="https:"==document.location.protocol?"https://"+a+"/mlist?"+ie(r):"http://"+a+"/mlist?"+ie(r),new C(function(r,e){Z(o,{timeout:5e3,prefix:g+(new Date).getTime()},function(e,t){e&&r({}),0!==t.errno&&r({});var n=["免费抽大奖,抽中立刻奖!转转中,统统送!","幸运转盘抽大奖,丰富豪礼等你抢!","给幸运一次约会的机会! 这厢有“礼”了!","幸运在闪烁,奖品多又多!豪礼转不完,大奖送不断!","幸运大转盘,疯狂撒豪礼!别问为什么,有钱、任性!","欢乐总动员,幸运大赚盘,一转就中,一中就送!"],i=["http://p0.qhimg.com/t01a1cf2e46c2c390cd.gif","http://p0.qhimg.com/t019baf4a1bfb5369d3.gif","http://p4.qhimg.com/t019ffbde62f71d89ab.gif","http://p5.qhimg.com/t015b359149c12e3676.gif","http://p6.qhimg.com/t010c9488aaab339712.gif","http://p4.qhimg.com/t019f38faee7a39c3ca.gif"];Math.floor(999*Math.random()),Math.floor(999*Math.random());(_(t)||_(t.data)||_(t.data.res))&&(t.data.res=[]),t.data.res.length,r(t)})})},re.prototype.fill=function(e,t,n,i,r,o){var a="",s={uid:n.uid,url:t.u||t.rawurl,sign:i,version:"2.0",device:2,sdkv:3,news_sdk_version:3,net:5,stype:"portal",t:(new Date).getTime(),channel:r,sid:n.sid,a:t.a,c:t.c,source:t.source,s:t.s,style:t.style||"",act:"click",scene:o,djsource:o,sub_scene:1,refer_scene:0,refer_subscene:0,sqid:"",market:""},l="//"+this.clkhost+"/srv/c?"+ie(s),c="//news.qhstatic.com/srv/c?"+ie({uid:n.uid,sign:i,version:"2.0",device:2,sdkv:3,news_sdk_version:3,net:5,stype:"portal",channel:r,act:"real_show",scene:o,djsource:o,sub_scene:1,refer_scene:0,refer_subscene:0,func:"pc_news_realshow",sqid:"",market:"",n:1,t:(new Date).getTime(),url_pack:'[["'+(t.gnid||t.u)+'","'+t.a+'","'+t.c+'","'+t.source+'","'+t.s+'","","","'+n.sid+'"]]'});return _(t.interactive)||(l=c=""),m(e)||(a+=e.replace("#{pv}",'data-pv="'+c+'"').replace("#{clk}",'data-clk="'+l+'"')),a};var oe=new re;function ae(){}ae.prototype.next=function(e,t,n){if(0===e)return{data:{res:[]}};n=n||"youlike";var i=t.showid,r={sqid:"",sign:t.sign,version:"2.0",market:"pc_def",device:"2",v:1,sv:1,c:n,net:5,ufrom:1,n:e,djsource:i,scene:i,sub_scene:1,refer_scene:0,refer_subscene:0,f:"jsonp",stype:"portal",action:1,where:"list",eimgs:2,ealg:2,ehost:t.ehost||document.location.hostname},o="",a="show.look.360.cn";return o="https:"==document.location.protocol?"https://"+a+"/mlist?"+ie(r):"http://"+a+"/mlist?"+ie(r),new C(function(n,e){Z(o,{timeout:5e3,prefix:g+(new Date).getTime()},function(e,t){e&&n({}),0!==t.errno&&n({}),n(t)})})},ae.prototype.fill=function(e,t,n,i,r,o){var a="",s="//show.look.360.cn/srv/c?"+ie({uid:n.uid,url:t.u||t.rawurl,sign:i,version:"2.0",device:2,sdkv:3,news_sdk_version:3,net:5,stype:"portal",t:(new Date).getTime(),channel:r,sid:n.sid,a:t.a,c:t.c,source:t.source,s:t.s,style:t.style||"",act:"click",scene:o,djsource:o,sub_scene:1,refer_scene:0,refer_subscene:0,sqid:"",market:""}),l="//news.qhstatic.com/srv/c?"+ie({uid:n.uid,sign:i,version:"2.0",device:2,sdkv:3,news_sdk_version:3,net:5,stype:"portal",channel:r,act:"real_show",scene:o,sub_scene:1,refer_scene:0,refer_subscene:0,func:"pc_news_realshow",sqid:"",market:"",n:1,t:(new Date).getTime(),url_pack:'[["'+(t.gnid||t.u)+'","'+t.a+'","'+t.c+'","'+t.source+'","'+t.s+'","","","'+n.sid+'"]]'});return m(e)||(a+=e.replace("#{pv}",'data-pv="'+l+'"').replace("#{clk}",'data-clk="'+s+'"')),a};var se=new ae;function le(){this.pn=1}le.prototype.next=function(e,t,n){var i=t.showid;if(0===e)return{};this.pn=_(n)?this.pn:n;var r={type:1,of:4,newf:1,uid:v.UID,showid:i,reqtimes:this.pn,impct:e,scheme:"https:"==document.location.protocol?"https":"http"};t.tck&&(r.tck=t.tck);var o="";return o="https"===r.scheme?"https://show-f.mediav.com/s?"+ie(r):"http://show.f.mediav.com/s?"+ie(r),this.pn++,new C(function(n,e){Z(o,{param:"jsonp",timeout:5e3,prefix:g+(new Date).getTime()},function(e,t){e&&n({}),n(t)})})},le.prototype.fill=function(e,t){var n="";return m(e)||(n+=e.replace("#{clk}",'data-clk="'+t.clktk.join(",")+'"').replace("#{pv}",'data-pv="'+t.imptk.join(",")+'"')),n};var ce=new le;function ue(){this.pn=1,this.group=1,this.adstk={}}ue.prototype.next=function(e,t,n){this.pn=_(n)?this.pn:n;var i={type:1,of:4,newf:1,uid:v.UID,showid:"ExbPrh",impct:e,scheme:"https:"==document.location.protocol?"https":"http"},r="";r="https"===i.scheme?"https://show-3.mediav.com/s?"+ie(i):"http://show.3.mediav.com/s?"+ie(i);var o=this.group++;this.pn++;var a=this;return new C(function(n,e){Z(r,{param:"jsonp",timeout:5e3,prefix:g+(new Date).getTime()},function(e,t){e&&n({}),t.group=o,t.adstk&&(a.adstk[o]=t.adstk),n(t)})})},ue.prototype.fill=function(e,t,n){var i="",r="";n.impurl&&(r=","+n.impurl+t.imparg);var o=t.imptk?t.imptk:[],a=t.clktk?t.clktk:[];return m(e)||(i+=e.replace("#{clk}",'data-clk="'+a.join(",")+'"').replace("#{pv}",'data-pv="'+o.join(",")+r+'" data-group="'+n.group+'"')),i};var de=new ue;function fe(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}var he=fe,pe="object"==typeof W&&W&&W.Object===Object&&W,ge=pe,me="object"==typeof self&&self&&self.Object===Object&&self,ve=ge||me||Function("return this")(),ye=ve,_e=function(){return ye.Date.now()},be=_e,we=ye.Symbol,xe=we,Ce=Object.prototype,Fe=Ce.hasOwnProperty,ke=Ce.toString,Te=xe?xe.toStringTag:undefined;function Ie(e){var t=Fe.call(e,Te),n=e[Te];try{e[Te]=undefined;var i=!0}catch(o){}var r=ke.call(e);return i&&(t?e[Te]=n:delete e[Te]),r}var Ee=Ie,Se=Object.prototype,je=Se.toString;function Pe(e){return je.call(e)}var Re=Pe,Be="[object Null]",He="[object Undefined]",Oe=xe?xe.toStringTag:undefined;function Ae(e){return null==e?e===undefined?He:Be:Oe&&Oe in Object(e)?Ee(e):Re(e)}var Me=Ae;function Le(e){return null!=e&&"object"==typeof e}var Ne=Le,ze="[object Symbol]";function De(e){return"symbol"==typeof e||Ne(e)&&Me(e)==ze}var We=De,Ve=NaN,Ue=/^\s+|\s+$/g,qe=/^[-+]0x[0-9a-f]+$/i,$e=/^0b[01]+$/i,Ye=/^0o[0-7]+$/i,Qe=parseInt;function Xe(e){if("number"==typeof e)return e;if(We(e))return Ve;if(he(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=he(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(Ue,"");var n=$e.test(e);return n||Ye.test(e)?Qe(e.slice(2),n?2:8):qe.test(e)?Ve:+e}var Ge=Xe,Je="Expected a function",Ke=Math.max,Ze=Math.min;function et(i,r,e){var o,a,s,l,c,u,d=0,f=!1,h=!1,t=!0;if("function"!=typeof i)throw new TypeError(Je);function p(e){var t=o,n=a;return o=a=undefined,d=e,l=i.apply(n,t)}function g(e){var t=e-u;return u===undefined||r<=t||t<0||h&&s<=e-d}function m(){var e=be();if(g(e))return v(e);c=setTimeout(m,function n(e){var t=r-(e-u);return h?Ze(t,s-(e-d)):t}(e))}function v(e){return c=undefined,t&&o?p(e):(o=a=undefined,l)}function n(){var e=be(),t=g(e);if(o=arguments,a=this,u=e,t){if(c===undefined)return function n(e){return d=e,c=setTimeout(m,r),f?p(e):l}(u);if(h)return c=setTimeout(m,r),p(u)}return c===undefined&&(c=setTimeout(m,r)),l}return r=Ge(r)||0,he(e)&&(f=!!e.leading,s=(h="maxWait"in e)?Ke(Ge(e.maxWait)||0,r):s,t="trailing"in e?!!e.trailing:t),n.cancel=function y(){c!==undefined&&clearTimeout(c),d=0,o=u=a=c=undefined},n.flush=function _(){return c===undefined?l:v(be())},n}var tt=et,nt="Expected a function";function it(e,t,n){var i=!0,r=!0;if("function"!=typeof e)throw new TypeError(nt);return he(n)&&(i="leading"in n?!!n.leading:i,r="trailing"in n?!!n.trailing:r),tt(e,t,{leading:i,maxWait:t,trailing:r})}var rt=it,ot='<info-div class="{prefix} largeImage item-box clk" data-href="{curl}" #{pv} #{clk}>\n <info-div class="largeImage-wrapper">\n <info-div class="largeImage-body">\n <info-div class="largeImage-title">{title}</info-div>\n <info-div class="largeImage-grid-wrap">\n <info-div class="img" style="background-image:url({img});">\n <info-div class="ads-tag"></info-div>\n </info-div>\n </info-div>\n <info-div class="largeImage-extra">\n <info-div class="largeImage-ad-tag">{tagName}</info-div>\n <info-div class="largeImage-ad-src">{src}</info-div>\n </info-div>\n </info-div>\n </info-div>\n</info-div>\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='<info-div class="{prefix} mulImage clk" data-href="{curl}" #{pv} #{clk}>\n <info-div class="mulimg-wrapper">\n <info-div class="mulimg-title">\n <info-div class="mulimg-title-content">{title}</info-div>\n </info-div>\n <info-div class="mulimg-grid-wrap">\n <info-div class="mulimg-figure-grid">{imgsList}</info-div>\n </info-div>\n <info-div class="mulimg-extra">\n <info-div class="mul-ads-tag">{tagName}</info-div>\n <info-div class="ads-tag">{source}</info-div>\n </info-div>\n </info-div>\n</info-div>\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<t.length;l++){var c=x('<info-div class="mulimg-figure"><info-div class="mulimg-figure-img" data-href="'+t[l].curl+'"><info-div class="img" style="background-image:url('+t[l].img+');"></info-div></info-div></info-div>',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='<info-div class="{prefix} mulImageWindow clk" data-href="{curl}" #{pv} #{clk}>\n <info-div class="mulimg-wrapper">\n <info-div class="mulimg-title">\n <info-div class="mulimg-title-content">{title}</info-div>\n </info-div>\n <info-div class="mulimg-grid-wrap">\n <info-div class="mulimg-figure-grid">{imgsList}</info-div>\n </info-div>\n <info-div class="mulimg-extra">\n <info-div class="mul-ads-tag">{tagName}</info-div>\n <info-div class="ads-tag">{source}</info-div>\n </info-div>\n </info-div>\n</info-div>\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.length;c++){var u="";t[c].desc&&(u='<info-div class="window-item__title">'+t[c].desc+"</info-div>"),l=x('<info-div class="mulimg-figure"><info-div class="mulimg-window-img" data-href="'+t[c].curl+'"><info-div class="img" style="background-image:url('+t[c].img+');">'+u+"</info-div></info-div></info-div>",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='<info-div class="{prefix} singleImage clk" data-href="{curl}" #{pv} #{clk}>\n <info-div class="wrap">\n <info-div class="singleImage-img singleImage-img-{pos}">\n <info-div class="img" style="background-image:url({img})">{ad}</info-div>\n </info-div>\n <info-div class="singleImage-body singleImage-body-{pos}">\n <info-div class="singleImage-title">{title}</info-div>\n <info-div class="singleImage-desc">{source}</info-div>\n </info-div>\n </info-div>\n <info-div style="clear:both;"></info-div>\n</info-div>\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<o.indexOf("广告")&&(s=x('<info-div class="ads-tag"></info-div>',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='<info-div class="{prefix} twoImagesInOneLine clk" data-href="{curl}" #{pv} #{clk}>\n <info-div>\n <info-div class="column-news-wrapper">\n <info-div class="img" style="background-image:url({img});">{ad}</info-div>\n </info-div>\n <info-div class="column-news-text">\n <info-div class="column-news-title">{title}</info-div>\n </info-div>\n </info-div>\n</info-div>',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.tag.indexOf("广告")?a.ad='<info-div class="twoimage-ads-tag"></info-div>':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='<info-div class="{prefix} fourimg-item clk" data-href="{curl}" #{pv} #{clk}>\n <info-div>\n <info-div class="fourimg-wrapper {adtag}">\n <info-div class="img" style="background-image:url({img})">\n <info-div class="fourimg-ads-tag"></info-div>\n </info-div>\n </info-div>\n <info-div class="fourimg-txt">\n <info-div class="fourimg-title">{title}</info-div>\n </info-div>\n </info-div>\n</info-div>',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.length;r++)if(e>=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='<info-div class="{prefix} videoImage item-box clk" data-href="{curl}" data-video="{video}" #{pv} #{clk}>\n <info-div class="video-wrapper">\n <info-div class="video-body">\n <info-div class="video-title">{title}</info-div>\n <info-div class="video-grid-wrap">\n <info-div class="video" style="background-size:cover;background-repeat:no-repeat;background-image:url({img})"></info-div>\n </info-div>\n <info-div class="video-extra">\n <info-div class="ads-cite-name">{tagName}</info-div>\n <info-div class="ads-tag">{src}</info-div>\n </info-div>\n </info-div>\n </info-div>\n</info-div>\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<e.length;n++)t.call(null,e[n]);else{if(!o(e))return;for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i])}}function Ot(e){var t=new Image;t.onload=t.onerror=function(){t=null},t.src=e}function At(e,t){return new RegExp(" "+t+" ").test(" "+e.className+" ")}function Mt(e,t){return At(e,t)||(e.className+=" "+t),e}function Lt(e,t){var n=" "+e.className.replace(/[\t\r\n]/g," ")+" ";if(At(e,t)){for(;0<=n.indexOf(" "+t+" ");)n=n.replace(" "+t+" "," ");e.className=n.replace(/^\s+|\s+$/g,"")}return e}function Nt(e){var t=document.getElementById(e),u="",d=function(e){var t=/msie [7|8]/i.test(navigator.userAgent);return e.button===(t?1:0)},f=function(e){var t=l(e.className)&&-1<e.className.indexOf("clk");return!!(l(e.className)&&-1<e.className.indexOf("newsfeed"))||!!t},n=function(e){d(e)&&(u=(new Date).getTime())},i=function(e){var t=e.target;if(("info-div"===t.tagName.toLowerCase()||"video"===t.tagName.toLowerCase())&&d(e)){for(var n="";!f(t);){_(t.getAttribute("data-href"))||""!==n||(n=t.getAttribute("data-href")),t=t.parentNode}if("info-div"===t.tagName.toLowerCase()&&!_(t.className)&&-1<t.className.indexOf("clk")){var i=t.getAttribute("data-clk").split(","),r=(n=""===n?t.getAttribute("data-href"):n,t.getBoundingClientRect().left),o=t.getBoundingClientRect().top,a=Math.floor(Math.max(0,e.clientX-r)),s=Math.floor(Math.max(0,e.clientY-o)),l=(new Date).getTime();n=n.replace("__EVENT_TIME_START__",u).replace("__EVENT_TIME_END__",l).replace("__OFFSET_X__",a).replace("__OFFSET_Y__",s);for(var c=0;c<i.length;c++)i[c]=i[c].replace("__EVENT_TIME_START__",u).replace("__EVENT_TIME_END__",l).replace("__OFFSET_X__",a).replace("__OFFSET_Y__",s);Mt(t.children[0],"visited"),window.open(n,"mediav"+(new Date).getTime()),Ht(i,Ot)}}},r=function(e){for(var t=e.target;!f(t);)t=t.parentNode;"info-div"===t.tagName.toLowerCase()&&Mt(t.children[0],"hover")},o=function(e){for(var t=e.target;!f(t);)t=t.parentNode;"info-div"===t.tagName.toLowerCase()&&Lt(t.children[0],"hover")};s(t,"mousedown",n),s(t,"mouseup",i),s(t,"mouseover",r),s(t,"mouseout",o),a(t,"mousedown",n),a(t,"mouseup",i),a(t,"mouseover",r),a(t,"mouseout",o)}function zt(){return window.innerHeight||document.documentElement.clientHeight}function Dt(e,t,n,i){var r=e.getBoundingClientRect().top-(n?t.getBoundingClientRect().top:0);return 0<=r&&r<i}function Wt(e){for(var t=e.getBoundingClientRect().top,n=e,i=!0;!_(n)&&"body"!==n.tagName.toLowerCase()&&("info-div"===n.tagName.toLowerCase()||"newsfeed"===n.tagName.toLowerCase()||"scroll"!==n.style.overflowY||(i=t-n.getBoundingClientRect().top<=n.clientHeight));)n=n.parentNode;if(i){var r=e.parentNode.children[0].getBoundingClientRect().bottom-e.parentNode.children[0].getBoundingClientRect().top;-1===e.parentNode.children[0].id.indexOf("-tab")&&(r=0);var o=e.parentNode.getBoundingClientRect().bottom-e.parentNode.getBoundingClientRect().top-r,a=t+o,s=0<=t&&t<zt(),l=0<=a&&a<zt(),c=s?Math.min(o,zt()-t):a;if(c=Math.min(c,zt()),s||l)for(var u=e.children,d=u.length-1;0<=d;d--){var f=u[d],h=f.getAttribute("data-pv");if(!_(h)&&!m(h))if(Dt(f,e,s,c))Ht(h.split(","),Ot),f.removeAttribute("data-pv");var p=f.getAttribute("data-group");_(p)||Dt(f,e,s,c)&&(m(de.adstk[p])||(Ht(de.adstk[p],Ot),de.adstk[p]=null),f.removeAttribute("data-group"))}}}function Vt(e){for(var t=e.children,n=t.length-1;0<=n;n--){var i=t[n];_(i.videoplayer)||i.videoplayer.pause()}}function Ut(e){for(var t=zt(),n=e.children,i=n.length-1;0<=i;i--){var r=n[i],o=r.getAttribute("data-video"),a=/msie/i.test(navigator.userAgent);if(!_(o)&&!m(o)&&!a)if(0<=r.getBoundingClientRect().top&&r.getBoundingClientRect().top<=t){if(_(r.videoplayer)){var s=r.children[0].children[0].children[1].children[0].clientWidth,l=r.children[0].children[0].children[1].children[0].clientHeight;r.children[0].children[0].children[1].innerHTML=x('<video src="{src}" width="{w}" height="{h}" autoplay loop preload muted="true"><source src="{src}" type="video/mp4"/></video><i class="muted"></i>',{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<t.className.indexOf("info-tab")){v[r].selectTab=t.getAttribute("data-feedkey"),document.getElementById(r+"-info").scrollTop=0;for(var n=t.parentNode.children,i=0;i<n.length;i++)Lt(n[i],"actived");Mt(t,"actived"),o(r)}};s(e,"click",t),a(e,"click",t)}function Yt(){return window!=window.parent}var Qt="/* interactive ad plugin */\n.interactive-plugin{\n width: 60px;\n height: 60px;\n position: absolute;\n bottom: 40px;\n right: 40px;\n}";function Xt(){}Xt.prototype.hidePluginWhenScroll=function(e){this.wrapper.style.display="none"},Xt.prototype.showPluginWhenPause=function(e){300<e.target.scrollTop&&(this.hasDisplayed=!0),!0===this.hasDisplayed&&(this.wrapper.style.display="block")},Xt.prototype.render=function(e,t){if(!1!==t.showInteractivePlugin&&!/msie [6|7|8|9]/i.test(navigator.userAgent)){p(Qt),this.container=document.getElementById(e),this.wrapper=document.createElement("div");var n=e+"_interactive-plugin";this.wrapper.id=n,this.wrapper.className="interactive-plugin",this.container.appendChild(this.wrapper);var i=document.createElement("script");i.src="//cjhd.mediav.com/js/interactive_plugin.js",i.async=!0,i.onload=function(){try{INTERACTIVE_PLUGIN.render({showid:"UFzPo0",w:60,h:60,game:"hang",placeholderId:n})}catch(e){}};var r=document.getElementsByTagName("script")[0];r.parentElement.insertBefore(i,r);var o=document.getElementById(e+"-info");a(o,"scroll",rt(this.hidePluginWhenScroll.bind(this),10)),a(o,"scroll",tt(this.showPluginWhenPause.bind(this),100))}};var Gt="[object AsyncFunction]",Jt="[object Function]",Kt="[object GeneratorFunction]",Zt="[object Proxy]";function en(e){if(!he(e))return!1;var t=Me(e);return t==Jt||t==Kt||t==Gt||t==Zt}var tn=en,nn=ye["__core-js_shared__"],rn=nn,on=(an=/[^.]+$/.exec(rn&&rn.keys&&rn.keys.IE_PROTO||""),an?"Symbol(src)_1."+an:""),an;function sn(e){return!!on&&on in e}var ln=sn,cn=Function.prototype,un=cn.toString;function dn(e){if(null!=e){try{return un.call(e)}catch(t){}try{return e+""}catch(t){}}return""}var fn=dn,hn=/[\\^$.*+?()[\]{}|]/g,pn=/^\[object .+?Constructor\]$/,gn=Function.prototype,mn=Object.prototype,vn=gn.toString,yn=mn.hasOwnProperty,_n=RegExp("^"+vn.call(yn).replace(hn,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function bn(e){return!(!he(e)||ln(e))&&(tn(e)?_n:pn).test(fn(e))}var wn=bn;function xn(e,t){return null==e?undefined:e[t]}var Cn=xn;function Fn(e,t){var n=Cn(e,t);return wn(n)?n:undefined}var kn=Fn,Tn=function(){try{var e=kn(Object,"defineProperty");return e({},"",{}),e}catch(t){}}(),In=Tn;function En(e,t,n){"__proto__"==t&&In?In(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var Sn=En;function jn(e,t){return e===t||e!=e&&t!=t}var Pn=jn,Rn=Object.prototype,Bn=Rn.hasOwnProperty;function Hn(e,t,n){var i=e[t];Bn.call(e,t)&&Pn(i,n)&&(n!==undefined||t in e)||Sn(e,t,n)}var On=Hn;function An(e,t,n,i){var r=!n;n||(n={});for(var o=-1,a=t.length;++o<a;){var s=t[o],l=i?i(n[s],e[s],s,n,e):undefined;l===undefined&&(l=e[s]),r?Sn(n,s,l):On(n,s,l)}return n}var Mn=An;function Ln(e){return e}var Nn=Ln;function zn(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var Dn=zn,Wn=Math.max;function Vn(o,a,s){return a=Wn(a===undefined?o.length-1:a,0),function(){for(var e=arguments,t=-1,n=Wn(e.length-a,0),i=Array(n);++t<n;)i[t]=e[a+t];t=-1;for(var r=Array(a+1);++t<a;)r[t]=e[t];return r[a]=s(i),Dn(o,this,r)}}var Un=Vn;function qn(e){return function(){return e}}var $n=qn,Yn=In?function(e,t){return In(e,"toString",{configurable:!0,enumerable:!1,value:$n(t),writable:!0})}:Nn,Qn=Yn,Xn=800,Gn=16,Jn=Date.now;function Kn(n){var i=0,r=0;return function(){var e=Jn(),t=Gn-(e-r);if(r=e,0<t){if(++i>=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<e&&e%1==0&&e<=ri}var ai=oi;function si(e){return null!=e&&ai(e.length)&&!tn(e)}var li=si,ci=9007199254740991,ui=/^(?:0|[1-9]\d*)$/;function di(e,t){var n=typeof e;return!!(t=null==t?ci:t)&&("number"==n||"symbol"!=n&&ui.test(e))&&-1<e&&e%1==0&&e<t}var fi=di;function hi(e,t,n){if(!he(n))return!1;var i=typeof t;return!!("number"==i?li(n)&&fi(t,n.length):"string"==i&&t in n)&&Pn(n[t],e)}var pi=hi;function gi(s){return ii(function(e,t){var n=-1,i=t.length,r=1<i?t[i-1]:undefined,o=2<i?t[2]:undefined;for(r=3<s.length&&"function"==typeof r?(i--,r):undefined,o&&pi(t[0],t[1],o)&&(r=i<3?undefined:r,i=1),e=Object(e);++n<i;){var a=t[n];a&&s(e,a,n,r)}return e})}var mi=gi,vi=Object.prototype;function yi(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||vi)}var _i=yi;function bi(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i}var wi=bi,xi="[object Arguments]";function Ci(e){return Ne(e)&&Me(e)==xi}var Fi=Ci,ki=Object.prototype,Ti=ki.hasOwnProperty,Ii=ki.propertyIsEnumerable,Ei=Fi(function(){return arguments}())?Fi:function(e){return Ne(e)&&Ti.call(e,"callee")&&!Ii.call(e,"callee")},Si=Ei,ji=Array.isArray,Pi=ji;function Ri(){return!1}var Bi=Ri,Hi=f(function(e,t){var n=t&&!t.nodeType&&t,i=n&&e&&!e.nodeType&&e,r=i&&i.exports===n?ye.Buffer:undefined,o=(r?r.isBuffer:undefined)||Bi;e.exports=o}),Oi="[object Arguments]",Ai="[object Array]",Mi="[object Boolean]",Li="[object Date]",Ni="[object Error]",zi="[object Function]",Di="[object Map]",Wi="[object Number]",Vi="[object Object]",Ui="[object RegExp]",qi="[object Set]",$i="[object String]",Yi="[object WeakMap]",Qi="[object ArrayBuffer]",Xi="[object DataView]",Gi="[object Float32Array]",Ji="[object Float64Array]",Ki="[object Int8Array]",Zi="[object Int16Array]",er="[object Int32Array]",tr="[object Uint8Array]",nr="[object Uint8ClampedArray]",ir="[object Uint16Array]",rr="[object Uint32Array]",or={};function ar(e){return Ne(e)&&ai(e.length)&&!!or[Me(e)]}or[Gi]=or[Ji]=or[Ki]=or[Zi]=or[er]=or[tr]=or[nr]=or[ir]=or[rr]=!0,or[Oi]=or[Ai]=or[Qi]=or[Mi]=or[Xi]=or[Li]=or[Ni]=or[zi]=or[Di]=or[Wi]=or[Vi]=or[Ui]=or[qi]=or[$i]=or[Yi]=!1;var sr=ar;function lr(t){return function(e){return t(e)}}var cr=lr,ur=f(function(e,t){var n=t&&!t.nodeType&&t,i=n&&e&&!e.nodeType&&e,r=i&&i.exports===n&&ge.process,o=function(){try{var e=i&&i.require&&i.require("util").types;return e||r&&r.binding&&r.binding("util")}catch(t){}}();e.exports=o}),dr=ur&&ur.isTypedArray,fr=dr?cr(dr):sr,hr=fr,pr=Object.prototype,gr=pr.hasOwnProperty;function mr(e,t){var n=Pi(e),i=!n&&Si(e),r=!n&&!i&&Hi(e),o=!n&&!i&&!r&&hr(e),a=n||i||r||o,s=a?wi(e.length,String):[],l=s.length;for(var c in e)!t&&!gr.call(e,c)||a&&("length"==c||r&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||fi(c,l))||s.push(c);return s}var vr=mr;function yr(t,n){return function(e){return t(n(e))}}var _r=yr,br=_r(Object.keys,Object),wr=br,xr=Object.prototype,Cr=xr.hasOwnProperty;function Fr(e){if(!_i(e))return wr(e);var t=[];for(var n in Object(e))Cr.call(e,n)&&"constructor"!=n&&t.push(n);return t}var kr=Fr;function Tr(e){return li(e)?vr(e):kr(e)}var Ir=Tr,Er=Object.prototype,Sr=Er.hasOwnProperty,jr=mi(function(e,t){if(_i(t)||li(t))Mn(t,Ir(t),e);else for(var n in t)Sr.call(t,n)&&On(e,n,t[n])}),Pr=jr;function Rr(e){return!_(e)&&(!(!isFinite(e.feedNum)||e.feedNum<n)&&(!(!isFinite(e.adNum)||e.adNum<i)&&!!r(e.index)))}function Br(e){var t={};t.defaultRules=c[e.layout];var n=e.customInsertConfig;return _(n)||!Rr(n)||(t.defaultRules=n,t.firstPageRules=n),t}function Hr(e){return!_(e)&&(!(!isFinite(e.feedNum)||e.feedNum<n)&&(!(!isFinite(e.adNum)||e.adNum<i)&&!!r(e.adPositions)))}function Or(e){var t=e.layout,n={},i=e.customInsertRules;return _(i)||Ht(["defaultRules","firstPageRules"],function(e){Hr(i[e])&&(n[e]=Pr({},c[t],{index:i[e].adPositions,feedNum:i[e].feedNum,adNum:i[e].adNum}))}),n}function Ar(e){var t={},n=Br(e);m(n)||(t=n);var i=Or(e);return m(i)||(t=i),t}function Mr(){}var Lr={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){switch(t.w<500&&"singleColumn"==t.layout&&(t.layout="thinSingleColumn"),this.setInsertRules(t),t.layout){case"singleColumn":this.isValid=500<=t.w&&300<=t.h&&t.h<=600,this.validMessage="当前广告样式的广告位需要满足宽大于等于500且高在300到600之间",t.w-=20,this.fontSize=Math.floor(20*t.w/650),_(t.userConf)?this.userConf={titleFontSize:16,titleFontColor:"#404040",contentBackground:"#ffffff",titleHover:"red",titleFontFamily:"Microsoft YaHei",isShowTab:!0,tabFontColor:"#000",tabFontSize:14,tabFontFamily:"Microsoft YaHei",tabBackground:"#ffffff",tabActive:"#d43d3d",tabHover:"red"}:this.userConf=t.userConf,this.css=lt(t.w,e,this.userConf),this.css+=ft(t.w,e,this.userConf),this.css+=mt(t.w,e,this.userConf),this.css+=bt(t.w,e,this.userConf),this.css+=Bt(t.w,e,this.userConf);break;case"splitColumn":this.isValid=600<=t.w&&275<=t.h&&t.h<=750,this.validMessage="当前广告样式的广告位需要满足宽大于等于600且高在275到750之间",t.w-=20,this.fontSize=Math.floor(20*t.w/688),_(t.userConf)?this.userConf={titleFontSize:14,titleFontColor:"#404040",contentBackground:"#ffffff",titleHover:"red",titleFontFamily:"Microsoft YaHei",isShowTab:!0,tabFontColor:"#000",tabFontSize:14,tabFontFamily:"Microsoft YaHei",tabBackground:"#ffffff",tabActive:"#d43d3d",tabHover:"red"}:this.userConf=t.userConf,this.css=Ft(e,this.userConf);break;case"thinSingleColumn":this.isValid=300<=t.w&&t.w<500&&260<=t.h&&t.h<=600,this.validMessage="当前广告样式的广告位需要满足宽在300到500之间且高在260到600之间",t.w-=20,this.fontSize=Math.floor(20*t.w/300),_(t.userConf)?this.userConf={titleFontSize:14,titleFontColor:"#404040",contentBackground:"#ffffff",titleHover:"red",titleFontFamily:"Microsoft YaHei",isShowTab:!0,tabFontColor:"#000",tabFontSize:14,tabFontFamily:"Microsoft YaHei",tabBackground:"#ffffff",tabActive:"#d43d3d",tabHover:"red"}:this.userConf=t.userConf,this.css=bt(t.w,e,this.userConf);break;case"multiColumn":this.isValid=160<=t.w&&t.w<=900&&180<=t.h&&t.h<=575,this.validMessage="当前广告样式的广告位需要满足宽在160到900之间且高在180到575之间",t.w-=20,this.fontSize=12,_(t.userConf)?this.userConf={titleFontSize:14,titleFontColor:"#404040",contentBackground:"#ffffff",titleHover:"red",titleFontFamily:"Microsoft YaHei",isShowTab:!0,tabFontColor:"#000",tabFontSize:14,tabFontFamily:"Microsoft YaHei",tabBackground:"#ffffff",tabActive:"#d43d3d",tabHover:"red"}:this.userConf=t.userConf,this.css=Et(t.w,e,this.userConf)}if(this.isValid=this.isValid&&("RSBpV9"===t.showid||!Yt()),this.isValid){document.getElementById(e).style.fontSize=this.fontSize+"px",this.css+=d.getStyle(t.w+20,t.h,this.userConf,e),_((this.options=t).isFeedSp)?(this.isFeedSp=!1,this.feed=oe):(this.isFeedSp=t.isFeedSp,this.userConf.isShowTab=!1,this.feed=se),p(this.css);var n=d.render(this.options.w+20,this.options.h,this.userConf,e);document.getElementById(e+"-tab").innerHTML=n,this.hasScroll=!1,this.update(e)}else document.getElementById(e).innerHTML="<p>"+this.validMessage+"</p>"},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<e.length&&0<t.length){for(var r=0,o=0;o<n.length;o++)r<t.length&&n[o]<e.length&&(e.splice(n[o],0,t[r]),r++);r<t.length&&(e=e.concat(t.slice(r))),i=e.join("\n")}else i=e.concat(t).join("\n");return i},update:function(o){document.getElementById(o);var e=this.firstPageRules.feedNum,t=this.firstPageRules.adNum,a=this.firstPageRules.index;C.all([this.feed.next(e,this.options,v[o].selectTab),ce.next(t,this.options,1),de.next(1,this.options,1)]).then(function(e){var t=this.renderFeed(e[0],this.options,v[o].selectTab,o),n=this.renderAd(e[1],this.options,o),i=this.renderWindowAd(e[2],this.options,o);3<=t.length&&0<i.length&&(t.splice(3,0,i[0]),t.pop());var r=this.mix(t,n,a);document.getElementById(o+"-info").innerHTML=r,qt(o+"-info")}.bind(this)).caught(function(e){})},scroll:function(o){var e=document.getElementById(o+"-info"),t=e.scrollTop,n=e.scrollHeight,i=e.clientHeight,r=this.defaultRules.feedNum,a=this.defaultRules.adNum,s=this.defaultRules.index;if(n<=t+i+200&&!this.hasScroll){try{interactivePlugin.render(o,options)}catch(l){}this.hasScroll=!0,C.all([this.feed.next(r,this.options,v[o].selectTab),ce.next(a,this.options),de.next(1,this.options)]).then(function(e){var t,n=this.renderFeed(e[0],this.options,v[o].selectTab,o),i=this.renderAd(e[1],this.options,o),r=this.renderWindowAd(e[2],this.options,o);3<=n.length&&0<r.length&&(n.splice(3,0,r[0]),n.pop()),t=this.mix(n,i,s),document.getElementById(o+"-info").innerHTML+=t,this.hasScroll=!1,qt(o+"-info")}.bind(this)).caught(function(e){})}},loadInteractivePlugin:function(e,t){if(!this.hasLoadedInteractivePlugin&&!(document.getElementById(e+"-info").scrollTop<300)){this.hasLoadedInteractivePlugin=!0;try{(new Xt).render(e,t)}catch(n){}}},initEvent:function(e,t){if(this.isValid){var n=document.getElementById(e+"-info");Nt(e),$t(e,this.update.bind(this)),a(n,"scroll",rt(this.scroll.bind(this,e),200)),a(n,"scroll",rt(this.loadInteractivePlugin.bind(this,e,t),200))}}};function Nr(e){e.createElement("info-div")}function zr(){return window.innerHeight||document.documentElement.clientHeight}function Dr(e,t){return 0<=e.getBoundingClientRect().top&&e.getBoundingClientRect().top<=t}function Wr(e){for(var t=zr(),n=e.children,i=n.length-1;0<=i;i--){var r=n[i],o=r.getAttribute("data-pv");if(!_(o)&&!m(o))if(Dr(r,t))Ht(o.split(","),Ot),r.removeAttribute("data-pv");var a=r.getAttribute("data-group");_(a)||Dr(r,t)&&(m(de.adstk[a])||(Ht(de.adstk[a],Ot),de.adstk[a]=null),r.removeAttribute("data-group"))}}function Vr(e){for(var t=zr(),n=e.children,i=n.length-1;0<=i;i--){var r=n[i],o=r.getAttribute("data-video"),a=/msie/i.test(navigator.userAgent);if(!_(o)&&!m(o)&&!a)if(0<=r.getBoundingClientRect().top&&r.getBoundingClientRect().top<=t){if(_(r.videoplayer)){var s=r.children[0].children[0].children[1].children[0].clientWidth,l=r.children[0].children[0].children[1].children[0].clientHeight;r.children[0].children[0].children[1].innerHTML=x('<video src="{src}" width="{w}" height="{h}" autoplay loop preload muted="true"><source src="{src}" type="video/mp4"/></video><i class="muted"></i>',{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="<p>"+this.validMessage+"</p>"},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<s.length){for(var l=0;l<s.length;l++)s[l]={img:s[l],curl:""};if(s.push({img:"https://p2.ssl.qhimg.com/t01b6ef7c8f8937293f.png",curl:""}),4<=s.length){var c=dt(i,s.slice(0,4),r,a,"",p);c=this.feed.fill(c,e,d,f.sign,h,f.showid),g.push(c)}}else{var u=1===e.style?t[0]:n[0]||"";if(!m(u)){c=_t(i,u,r,a,p);c=this.feed.fill(c,e,d,f.sign,h,f.showid),g.push(c)}}}.bind(this)),g)},renderWindowAd:function(n,e,i){var r=[];return _(n)||_(n.ads)||m(n.ads)?[]:(Ht(n.ads,function(e){var t=_t(e.title||e.desc,e.img,e.curl,e.src||"",i,"广告");t=de.fill(t,e,n),r.push(t)}),r)},mix:function(e,t,n){var i="";if(0<e.length&&0<t.length){for(var r=0,o=0;o<n.length;o++)r<t.length&&n[o]<e.length&&(e.splice(n[o],0,t[r]),r++);r<t.length&&(e=e.concat(t.slice(r))),i=e.join("\n")}else i=e.concat(t).join("\n");return i},update:function(o){document.getElementById(o);var e=this.firstPageRules.feedNum,t=this.firstPageRules.adNum,a=this.firstPageRules.index;C.all([this.feed.next(e,this.options,v[o].selectTab),ce.next(t,this.options,1),de.next(1,this.options,1)]).then(function(e){var t=this.renderFeed(e[0],this.options,v[o].selectTab,o),n=this.renderAd(e[1],this.options,o),i=this.renderWindowAd(e[2],this.options,o);3<=t.length&&0<i.length&&(t.splice(3,0,i[0]),t.pop());var r=this.mix(t,n,a);document.getElementById(o+"-info").innerHTML=r,Ur(o+"-info")}.bind(this)).caught(function(e){})},scroll:function(o){var e=document.getElementById(o);e.style.overflowY="auto",e.style.height="auto";var t=this.defaultRules.feedNum,n=this.defaultRules.adNum,a=this.defaultRules.index;function i(){return window.innerHeight||document.documentElement.clientHeight}var r=e.getBoundingClientRect().bottom<i()+200;(function s(){var e=0,t=0;return document.body&&(e=document.body.scrollHeight),document.documentElement&&(t=document.documentElement.scrollHeight),0<e-t?e:t}()-function l(){var e=0,t=0;return document.body&&(e=document.body.scrollTop),document.documentElement&&(t=document.documentElement.scrollTop),0<e-t?e:t}()-i()<=200||r)&&!this.hasScroll&&(this.hasScroll=!0,C.all([this.feed.next(t,this.options,v[o].selectTab),ce.next(n,this.options),de.next(1,this.options)]).then(function(e){var t="",n=this.renderFeed(e[0],this.options,v[o].selectTab,o),i=this.renderAd(e[1],this.options,o),r=this.renderWindowAd(e[2],this.options,o);3<=n.length&&0<r.length&&(n.splice(3,0,r[0]),n.pop()),t+=this.mix(n,i,a),document.getElementById(o+"-info").innerHTML+=t,this.hasScroll=!1}.bind(this)).caught(function(e){}))},initEvent:function(e){if(this.isValid){document.getElementById(e);Nt(e),$t(e,this.update.bind(this)),a(window,"scroll",rt(this.scroll.bind(this,e),10))}}};function Yr(){}qr.prototype=$r;var Qr={setInsertRules:function(e){var t=Ar(e);if("multiColumn"===e.layout){var n={index:c.multiColumn.index,feedNum:2,adNum:1};return this.firstPageRules=t.firstPageRules||n,void(this.defaultRules=t.defaultRules||n)}this.firstPageRules=t.firstPageRules||c[e.layout],this.defaultRules=t.defaultRules||c[e.layout]},initDOM:function(e,t){switch(t.w<500&&"singleColumn"==t.layout&&(t.layout="thinSingleColumn"),this.setInsertRules(t),t.layout){case"singleColumn":this.isValid=500<=t.w&&300<=t.h&&t.h<=600,t.w-=20,this.validMessage="当前广告样式的广告位需要满足宽大于等于500且高在300到600之间",this.fontSize=Math.floor(20*t.w/650),_(t.userConf)?this.userConf={titleFontSize:16,titleFontColor:"#404040",contentBackground:"#ffffff",titleHover:"red",titleFontFamily:"Microsoft YaHei",isShowTab:!0,tabFontColor:"#000",tabFontSize:14,tabFontFamily:"Microsoft YaHei",tabBackground:"#ffffff",tabActive:"#d43d3d",tabHover:"red"}:this.userConf=t.userConf,this.css=lt(t.w,e,this.userConf),this.css+=ft(t.w,e,this.userConf),this.css+=mt(t.w,e,this.userConf),this.css+=bt(t.w,e,this.userConf),this.css+=Bt(t.w,e,this.userConf);break;case"splitColumn":this.isValid=600<=t.w&&275<=t.h&&t.h<=375,t.w-=20,this.validMessage="当前广告样式的广告位需要满足宽大于等于600且高在275到375之间",this.fontSize=Math.floor(20*t.w/688),_(t.userConf)?this.userConf={titleFontSize:14,titleFontColor:"#404040",contentBackground:"#ffffff",titleHover:"red",titleFontFamily:"Microsoft YaHei",isShowTab:!0,tabFontColor:"#000",tabFontSize:14,tabFontFamily:"Microsoft YaHei",tabBackground:"#ffffff",tabActive:"#d43d3d",tabHover:"red"}:this.userConf=t.userConf,this.css=Ft(e,this.userConf);break;case"thinSingleColumn":this.isValid=300<=t.w&&t.w<500,t.w-=20,this.validMessage="当前广告样式的广告位需要满足宽在300到500之间",this.fontSize=Math.floor(20*t.w/300),_(t.userConf)?this.userConf={titleFontSize:14,titleFontColor:"#404040",contentBackground:"#ffffff",titleHover:"red",titleFontFamily:"Microsoft YaHei",isShowTab:!0,tabFontColor:"#000",tabFontSize:14,tabFontFamily:"Microsoft YaHei",tabBackground:"#ffffff",tabActive:"#d43d3d",tabHover:"red"}:this.userConf=t.userConf,this.css=bt(t.w,e,this.userConf);break;case"multiColumn":this.isValid=160<=t.w&&t.w<=900,t.w-=20,this.validMessage="当前广告样式的广告位需要满足宽在160到900之间",this.fontSize=12,_(t.userConf)?this.userConf={titleFontSize:14,titleFontColor:"#404040",contentBackground:"#ffffff",titleHover:"red",titleFontFamily:"Microsoft YaHei",isShowTab:!0,tabFontColor:"#000",tabFontSize:14,tabFontFamily:"Microsoft YaHei",tabBackground:"#ffffff",tabActive:"#d43d3d",tabHover:"red"}:this.userConf=t.userConf,this.css=Et(t.w,e,this.userConf)}(_(t.isFeedSp)?(this.isFeedSp=!1,this.feed=oe):(this.isFeedSp=t.isFeedSp,this.userConf.isShowTab=!1,this.feed=se),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="<p>"+this.validMessage+"</p>"},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<e.length&&0<t.length){for(var r=0,o=0;o<n.length;o++)r<t.length&&n[o]<e.length&&(e.splice(n[o],0,t[r]),r++);r<t.length&&(e=e.concat(t.slice(r))),i=e.join("\n")}else i=e.concat(t).join("\n");return i},update:function(r){document.getElementById(r);var e=this.firstPageRules.feedNum,t=this.firstPageRules.adNum,o=this.firstPageRules.index;C.all([this.feed.next(e,this.options,v[r].selectTab),ce.next(t,this.options,1)]).then(function(e){var t=this.renderFeed(e[0],this.options,v[r].selectTab,r),n=this.renderAd(e[1],this.options,r),i=this.mix(t,n,o);document.getElementById(r+"-info").innerHTML=i,qt(r+"-info")}.bind(this)).caught(function(e){})},append:function(r){var e=document.getElementById(r+"-info"),t=e.scrollTop,n=e.scrollHeight,i=e.clientHeight,o=this.defaultRules.feedNum,a=this.defaultRules.adNum,s=this.defaultRules.index;n<=t+i+200&&!this.hasScroll&&(this.hasScroll=!0,C.all([this.feed.next(o,this.options,v[r].selectTab),ce.next(a,this.options)]).then(function(e){var t,n=this.renderFeed(e[0],this.options,v[r].selectTab,r),i=this.renderAd(e[1],this.options,r);t=this.mix(n,i,s),document.getElementById(r+"-info").innerHTML+=t,this.hasScroll=!1}.bind(this)).caught(function(e){}))},scroll:function(e,t){var n=document.getElementById(e),i=document.getElementById(t.fixParent);i.getBoundingClientRect().top<0?(n.style.position="fixed",n.style.top=0,n.style.left=i.getBoundingClientRect().left+"px"):n.style.position="relative"},loadInteractivePlugin:function(e,t){if(!this.hasLoadedInteractivePlugin&&!(document.getElementById(e+"-info").scrollTop<300)){this.hasLoadedInteractivePlugin=!0;try{(new Xt).render(e,t)}catch(n){}}},initEvent:function(e,t){if(this.isValid){var n=document.getElementById(e+"-info");Nt(e),$t(e,this.update.bind(this)),a(window,"scroll",rt(this.scroll.bind(this,e,t),10)),a(window,"resize",this.scroll.bind(this,e,t)),a(n,"scroll",rt(this.append.bind(this,e),200)),a(n,"scroll",rt(this.loadInteractivePlugin.bind(this,e,t),200))}}};Yr.prototype=Qr;var Xr='.floatbar{\n width: {w}px;\n height: 18px;\n line-height: 18px;\n position: relative;\n}\n\n.floatbar .btn{\n cursor: pointer;\n position: absolute;\n height: 18px;\n line-height: 18px;\n width: 54px;\n right: 0px;\n top: 0;\n background-image: url("//p0.ssl.qhimg.com/d/inn/69518715/close.jpg");\n}\n';function Gr(){}Gr.prototype.render=function(e,t,n,i){return'<info-div class="floatbar"><info-div class="btn"></info-div></info-div>'},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<t.className.indexOf("btn")&&(document.getElementById(n).style.display="none")};s(e,"click",t),a(e,"click",t)}function Zr(){}var eo={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){switch(t.w<500&&"singleColumn"==t.layout&&(t.layout="thinSingleColumn"),this.setInsertRules(t),t.layout){case"singleColumn":this.isValid=500<=t.w&&300<=t.h&&t.h<=600,t.w-=20,this.validMessage="当前广告样式的广告位需要满足宽大于等于500且高在300到600之间",this.fontSize=Math.floor(20*t.w/650),_(t.userConf)?this.userConf={titleFontSize:16,titleFontColor:"#404040",contentBackground:"#ffffff",titleHover:"red",titleFontFamily:"Microsoft YaHei",isShowTab:!0,tabFontColor:"#000",tabFontSize:14,tabFontFamily:"Microsoft YaHei",tabBackground:"#ffffff",tabActive:"#d43d3d",tabHover:"red"}:this.userConf=t.userConf,this.css=lt(t.w,e,this.userConf),this.css+=ft(t.w,e,this.userConf),this.css+=mt(t.w,e,this.userConf),this.css+=bt(t.w,e,this.userConf),this.css+=Bt(t.w,e,this.userConf);break;case"splitColumn":this.isValid=600<=t.w&&275<=t.h&&t.h<=375,t.w-=20,this.validMessage="当前广告样式的广告位需要满足宽大于等于600且高在275到375之间",this.fontSize=Math.floor(20*t.w/688),_(t.userConf)?this.userConf={titleFontSize:14,titleFontColor:"#404040",contentBackground:"#ffffff",titleHover:"red",titleFontFamily:"Microsoft YaHei",isShowTab:!0,tabFontColor:"#000",tabFontSize:14,tabFontFamily:"Microsoft YaHei",tabBackground:"#ffffff",tabActive:"#d43d3d",tabHover:"red"}:this.userConf=t.userConf,this.css=Ft(e,this.userConf);break;case"thinSingleColumn":this.isValid=300<=t.w&&t.w<500,t.w-=20,this.validMessage="当前广告样式的广告位需要满足宽在300到500之间",this.fontSize=Math.floor(20*t.w/300),_(t.userConf)?this.userConf={titleFontSize:14,titleFontColor:"#404040",contentBackground:"#ffffff",titleHover:"red",titleFontFamily:"Microsoft YaHei",isShowTab:!0,tabFontColor:"#000",tabFontSize:14,tabFontFamily:"Microsoft YaHei",tabBackground:"#ffffff",tabActive:"#d43d3d",tabHover:"red"}:this.userConf=t.userConf,this.css=bt(t.w,e,this.userConf);break;case"multiColumn":this.isValid=160<=t.w&&t.w<=900&&180<=t.h&&t.h<=270,t.w-=20,this.validMessage="当前广告样式的广告位需要满足宽在160到900之间且高在180到270之间",this.fontSize=12,_(t.userConf)?this.userConf={titleFontSize:14,titleFontColor:"#404040",contentBackground:"#ffffff",titleHover:"red",titleFontFamily:"Microsoft YaHei",isShowTab:!0,tabFontColor:"#000",tabFontSize:14,tabFontFamily:"Microsoft YaHei",tabBackground:"#ffffff",tabActive:"#d43d3d",tabHover:"red"}:this.userConf=t.userConf,this.css=Et(t.w,e,this.userConf)}(_(t.isFeedSp)?(this.isFeedSp=!1,this.feed=oe):(this.isFeedSp=t.isFeedSp,this.userConf.isShowTab=!1,this.feed=se),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.css+=Jr.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),document.getElementById(e+"-floatbar").innerHTML=Jr.render(this.options.w,this.options.h,this.userConf,e),this.update(e),this.hasScroll=!1):document.getElementById(e).innerHTML="<p>"+this.validMessage+"</p>"},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<e.length&&0<t.length){for(var r=0,o=0;o<n.length;o++)r<t.length&&n[o]<e.length&&(e.splice(n[o],0,t[r]),r++);r<t.length&&(e=e.concat(t.slice(r))),i=e.join("\n")}else i=e.concat(t).join("\n");return i},update:function(o){document.getElementById(o);var e=this.firstPageRules.feedNum,t=this.firstPageRules.adNum,a=this.firstPageRules.index;C.all([this.feed.next(e,this.options,v[o].selectTab),ce.next(t,this.options,1),de.next(1,this.options,1)]).then(function(e){var t=this.renderFeed(e[0],this.options,v[o].selectTab,o),n=this.renderAd(e[1],this.options,o),i=this.renderWindowAd(e[2],this.options,o);3<=t.length&&0<i.length&&(t.splice(3,0,i[0]),t.pop());var r=this.mix(t,n,a);document.getElementById(o+"-info").innerHTML=r,qt(o+"-info")}.bind(this)).caught(function(e){})},setPosition:function(e,t){var n=document.getElementById(e);n.style.position="fixed",n.style.top=function i(){return window.innerHeight||document.documentElement.clientHeight}()-t.h+"px","left"===t.pos?n.style.left=0:n.style.right=0},scroll:function(o){var e=document.getElementById(o+"-info"),t=e.scrollTop,n=e.scrollHeight,i=e.clientHeight,r=this.defaultRules.feedNum,a=this.defaultRules.adNum,s=this.defaultRules.index;n<=t+i+200&&!this.hasScroll&&(this.hasScroll=!0,C.all([this.feed.next(r,this.options,v[o].selectTab),ce.next(a,this.options),de.next(1,this.options)]).then(function(e){var t,n=this.renderFeed(e[0],this.options,v[o].selectTab,o),i=this.renderAd(e[1],this.options,o),r=this.renderWindowAd(e[2],this.options,o);3<=n.length&&0<r.length&&(n.splice(3,0,r[0]),n.pop()),t=this.mix(n,i,s),document.getElementById(o+"-info").innerHTML+=t,this.hasScroll=!1}.bind(this)).caught(function(e){}))},loadInteractivePlugin:function(e,t){if(!this.hasLoadedInteractivePlugin&&!(document.getElementById(e+"-info").scrollTop<300)){this.hasLoadedInteractivePlugin=!0;try{(new Xt).render(e,t)}catch(n){}}},initEvent:function(e,t){if(this.isValid){var n=document.getElementById(e+"-info");Nt(e),$t(e,this.update.bind(this)),Kr(e,this.update.bind(this)),this.setPosition(e,t),a(window,"resize",this.setPosition.bind(this,e,t)),a(n,"scroll",rt(this.scroll.bind(this,e),200)),a(n,"scroll",rt(this.loadInteractivePlugin.bind(this,e,t),200))}}};Zr.prototype=eo;var to={initDOM:function(e,t){if(this.isValid=300<=t.w&&("RSBpV9"===t.showid||!Yt()),this.validMessage="当前广告样式的广告位需要满足宽大于等于300",this.indexs=c.singleColumn.index,this.fontSize=20*t.w/(500<=t.w?650:300),this.feedNum=c.singleColumn.feedNum,this.adNum=c.singleColumn.adNum,_(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,this.isValid){document.getElementById(e).style.fontSize=this.fontSize+"px";var n=(this.options=t).showid;v.cads[n].pn=v.cads[n].pn||1,v.cads[n].loading=v.cads[n].loading||!1,v.cads[n].containerIDs=v.cads[n].containerIDs||[],v.cads[n].ads=v.cads[n].ads||[],v.cads[n].options=v.cads[n].options||t,v.cads[n].onFail=v.cads[n].onFail||t.onFail;var i=bt(t.w,e,this.userConf);i+=ft(t.w,e,this.userConf),i+=mt(t.w,e,this.userConf),i+=lt(t.w,e,this.userConf),p(i+=Bt(t.w,e,this.userConf)),0<v.cads[this.options.showid].ads.length?this.next(e,v.cads[this.options.showid].ads.shift(),n):(v.cads[this.options.showid].containerIDs.push(e),v.cads[this.options.showid].loading||(v.cads[this.options.showid].loading=!0,ce.next(this.adNum,this.options,v.cads[this.options.showid].pn).then(function(e,t){var n;if(v.cads[e].loading=!1,m(t))return(n=new Error).message="empty",C.reject(n);if(v.cads[e].pn=parseInt(v.cads[e].pn,10)+1,v.cads[e].ads=t.ads||[],m(v.cads[e].ads))return(n=new Error).message="empty",C.reject(n);for(;0<v.cads[e].containerIDs.length&&0<v.cads[e].ads.length;)this.next(v.cads[e].containerIDs.shift(),v.cads[e].ads.shift(),e);v.cads[e].containerIDs=[]}.bind(this,n)).caught(function(e){v.cads[e].containerIDs=[],(v.cads[e].onFail||function(){}).call(null)}.bind(this,n))))}else document.getElementById(e).innerHTML="<p>"+this.validMessage+"</p>"},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<n.indexOf("广告")&&(o=x('<info-div class="ads-tag"></info-div>',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<t.length;l++){var c=x('<info-div class="mulimg-figure"><info-div class="mulimg-figure-img" data-href="'+t[l].curl+'"><info-div class="img" style="background-image:url('+t[l].img+');"></info-div></info-div></info-div>',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<c?(a=3*(s=o),0):(o-(s=(a=r)/3))/2;var u=0;i.displayTitle&&(u=1.3*i.largeTitleFontSize+i.largeTitlePaddingTop-i.largeTitlePaddingBottom);var d=Math.max(0,t-i.largePaddingTop-i.largePaddingBottom-u-s-2*l),f={prefix:n,width:e,height:t-i.largePaddingTop-i.largePaddingBottom,imageBorderRadius:i.largeImageBorderRadius,imgW:a,imgH:s,imgPadding:l,displayTitle:i.largeDisplayTitle?"block":"none",titleFontSize:i.largeTitleFontSize,titleFontColor:i.largeTitleFontColor,titleFontFamily:i.largeTitleFontFamily,titleFontWeight:i.largeTitleFontWeight,titlePaddingTop:i.largeTitlePaddingTop,titlePaddingRight:i.largeTitlePaddingRight,titlePaddingBottom:i.largeTitlePaddingBottom,titlePaddingLeft:i.largeTitlePaddingLeft,displaySrc:i.largeDisplaySrc?"block":"none",srcHeight:d,displayAdTag:12<d?"none":"block",paddingTop:i.largePaddingTop,paddingRight:i.largePaddingRight,paddingBottom:i.largePaddingBottom,paddingLeft:i.largePaddingLeft,backgroundColor:i.largeBackgroundColor,hoverColor:i.largeHoverColor};return w(x(at,f),n)}no.prototype=to;var co=".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: 0px {imgHorizontalPadding}px;\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-figure-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\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 uo(e,t,n,i,r,o){for(var a={title:e,curl:n,source:i,tagName:r,prefix:o},s=[],l=0;l<t.length;l++){var c="";t[l].desc&&(c='<info-div class="window-item__title">'+t[l].desc+"</info-div>");var u=x('<info-div class="mulimg-figure"><info-div class="mulimg-figure-img" data-href="'+t[l].curl+'"><info-div class="img" style="background-image:url('+t[l].img+');"></info-div>'+c+"</info-div></info-div>",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<v.define[n].ads.length?this.next(e,v.define[n].ads.shift(),n):(v.define[n].containerIDs.push(e),v.define[n].loading||(v.define[n].loading=!0,ce.next(this.adNum,t,v.define[n].pn).then(function(e,t){var n;if(v.define[e].loading=!1,m(t))return(n=new Error).message="empty",C.reject(n);if(v.define[e].pn=parseInt(v.define[e].pn,10)+1,v.define[e].ads=t.ads||[],m(v.define[e].ads))return(n=new Error).message="empty",C.reject(n);for(;0<v.define[e].containerIDs.length&&0<v.define[e].ads.length;)this.next(v.define[e].containerIDs.shift(),v.define[e].ads.shift(),e);v.define[e].containerIDs=[]}.bind(this,n)).caught(function(e){v.define[e].containerIDs=[],(v.define[e].onFail||function(){}).call(null)}.bind(this,n))))}else document.getElementById(e).innerHTML="<p>"+this.validMessage+"</p>"},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<v.displayShowId.join(",").indexOf(e.showid))return;v.displayShowId.push(e.showid)}else{v[t]=v[t]||{},_(v[t].showid)&&(v[t].showid=[]),-1===v[t].showid.join(",").indexOf(e.showid)&&(v[t].showid.push(e.showid),v[t][e.showid]=v[t][e.showid]||{});if(5<v[t].showid.length)return void v[t].showid.pop()}var r=g+(new Date).getTime()+"_"+Math.floor(999*Math.random());switch(v[r]={},v[r].selectTab=e.tab||y[0]["data-feedkey"],t){case"inlay":var n=new Mr,i=x('<newsfeed class="newsfeed {id}" id="{id}"style="display:block;margin:0;padding:0;border:none;width:{width}px;height:{height}px;overflow:hidden;position:relative;text-align:left;"><info-div id="{id}-tab"></info-div><info-div id="{id}-info" style="overflow-y:scroll;overflow-x:hidden;position:relative;height:{infoHeight}px"></info-div></newsfeed>',{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('<newsfeed class="newsfeed {id}" id="{id}"style="display:block;margin:0;padding:0;border:none;width:{width}px;height:auto;overflow-y:hidden;overflow-x:hidden;position:relative;text-align:left;"><info-div id="{id}-tab"></info-div><info-div id="{id}-info"></info-div></newsfeed>',{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('<newsfeed class="newsfeed {id}" id="{id}"style="display:block;margin:0;padding:0;border:none;width:{width}px;height:{height}px;overflow-x:hidden;top:{top}px;text-align:left;position:relative;"><info-div id="{id}-tab"></info-div><info-div id="{id}-info" style="overflow-y:scroll;overflow-x:hidden;position:relative;height:{infoHeight}px"></info-div></newsfeed>',{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('<newsfeed class="newsfeed {id}" id="{id}"style="display:block;margin:0;padding:0;border:none;width:{width}px;height:{height}px;overflow:hidden;position:relative;text-align:left;"><info-div id="{id}-floatbar"></info-div><info-div id="{id}-tab"></info-div><info-div id="{id}-info" style="overflow-y:scroll;overflow-x:hidden;position:relative;height:{infoHeight}px"></info-div></newsfeed>',{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('<newsfeed class="newsfeed {id}" id="{id}"style="display:block;margin:0;padding:0;border:none;width:{width}px;height:auto;overflow-y:hidden;overflow-x:hidden;position:relative;text-align:left;"><info-div id="{id}-info" style="zoom:1"></info-div></newsfeed>',{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('<newsfeed class="newsfeed {id}" id="{id}"style="display:block;margin:0;padding:0;border:none;width:{width}px;height:{height}px;overflow-y:hidden;overflow-x:hidden;position:relative;text-align:left;"><info-div id="{id}-info" style="zoom:1"></info-div></newsfeed>',{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}();
;