!function(e){var t={};function n(i){if(t[i])return t[i].exports;var a=t[i]={i:i,l:!1,exports:{}};return e[i].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(i,a,function(t){return e[t]}.bind(null,a));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=36)}([function(e,t,n){"use strict";(function(e){n.d(t,"e",(function(){return i})),n.d(t,"p",(function(){return a})),n.d(t,"a",(function(){return r})),n.d(t,"c",(function(){return o})),n.d(t,"d",(function(){return s})),n.d(t,"o",(function(){return l})),n.d(t,"q",(function(){return c})),n.d(t,"t",(function(){return d})),n.d(t,"i",(function(){return u})),n.d(t,"r",(function(){return p})),n.d(t,"s",(function(){return h})),n.d(t,"k",(function(){return f})),n.d(t,"m",(function(){return g})),n.d(t,"j",(function(){return m})),n.d(t,"l",(function(){return v})),n.d(t,"g",(function(){return w})),n.d(t,"f",(function(){return b})),n.d(t,"h",(function(){return y})),n.d(t,"n",(function(){return _})),n.d(t,"b",(function(){return S}));var i="1.13.6",a="object"==typeof self&&self.self===self&&self||"object"==typeof e&&e.global===e&&e||Function("return this")()||{},r=Array.prototype,o=Object.prototype,s="undefined"!=typeof Symbol?Symbol.prototype:null,l=r.push,c=r.slice,d=o.toString,u=o.hasOwnProperty,p="undefined"!=typeof ArrayBuffer,h="undefined"!=typeof DataView,f=Array.isArray,g=Object.keys,m=Object.create,v=p&&ArrayBuffer.isView,w=isNaN,b=isFinite,y=!{toString:null}.propertyIsEnumerable("toString"),_=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],S=Math.pow(2,53)-1}).call(this,n(17))},function(e,t,n){var i;
/*!
 * jQuery JavaScript Library v3.7.0
 * https://jquery.com/
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license
 * https://jquery.org/license
 *
 * Date: 2023-05-11T18:29Z
 */!function(t,n){"use strict";"object"==typeof e.exports?e.exports=t.document?n(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return n(e)}:n(t)}("undefined"!=typeof window?window:this,(function(n,a){"use strict";var r=[],o=Object.getPrototypeOf,s=r.slice,l=r.flat?function(e){return r.flat.call(e)}:function(e){return r.concat.apply([],e)},c=r.push,d=r.indexOf,u={},p=u.toString,h=u.hasOwnProperty,f=h.toString,g=f.call(Object),m={},v=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},w=function(e){return null!=e&&e===e.window},b=n.document,y={type:!0,src:!0,nonce:!0,noModule:!0};function _(e,t,n){var i,a,r=(n=n||b).createElement("script");if(r.text=e,t)for(i in y)(a=t[i]||t.getAttribute&&t.getAttribute(i))&&r.setAttribute(i,a);n.head.appendChild(r).parentNode.removeChild(r)}function S(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?u[p.call(e)]||"object":typeof e}var x=/HTML$/i,k=function(e,t){return new k.fn.init(e,t)};function C(e){var t=!!e&&"length"in e&&e.length,n=S(e);return!v(e)&&!w(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}function T(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}k.fn=k.prototype={jquery:"3.7.0",constructor:k,length:0,toArray:function(){return s.call(this)},get:function(e){return null==e?s.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=k.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return k.each(this,e)},map:function(e){return this.pushStack(k.map(this,(function(t,n){return e.call(t,n,t)})))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(k.grep(this,(function(e,t){return(t+1)%2})))},odd:function(){return this.pushStack(k.grep(this,(function(e,t){return t%2})))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:c,sort:r.sort,splice:r.splice},k.extend=k.fn.extend=function(){var e,t,n,i,a,r,o=arguments[0]||{},s=1,l=arguments.length,c=!1;for("boolean"==typeof o&&(c=o,o=arguments[s]||{},s++),"object"==typeof o||v(o)||(o={}),s===l&&(o=this,s--);s<l;s++)if(null!=(e=arguments[s]))for(t in e)i=e[t],"__proto__"!==t&&o!==i&&(c&&i&&(k.isPlainObject(i)||(a=Array.isArray(i)))?(n=o[t],r=a&&!Array.isArray(n)?[]:a||k.isPlainObject(n)?n:{},a=!1,o[t]=k.extend(c,r,i)):void 0!==i&&(o[t]=i));return o},k.extend({expando:"jQuery"+("3.7.0"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==p.call(e))&&(!(t=o(e))||"function"==typeof(n=h.call(t,"constructor")&&t.constructor)&&f.call(n)===g)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){_(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,i=0;if(C(e))for(n=e.length;i<n&&!1!==t.call(e[i],i,e[i]);i++);else for(i in e)if(!1===t.call(e[i],i,e[i]))break;return e},text:function(e){var t,n="",i=0,a=e.nodeType;if(a){if(1===a||9===a||11===a)return e.textContent;if(3===a||4===a)return e.nodeValue}else for(;t=e[i++];)n+=k.text(t);return n},makeArray:function(e,t){var n=t||[];return null!=e&&(C(Object(e))?k.merge(n,"string"==typeof e?[e]:e):c.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:d.call(t,e,n)},isXMLDoc:function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!x.test(t||n&&n.nodeName||"HTML")},merge:function(e,t){for(var n=+t.length,i=0,a=e.length;i<n;i++)e[a++]=t[i];return e.length=a,e},grep:function(e,t,n){for(var i=[],a=0,r=e.length,o=!n;a<r;a++)!t(e[a],a)!==o&&i.push(e[a]);return i},map:function(e,t,n){var i,a,r=0,o=[];if(C(e))for(i=e.length;r<i;r++)null!=(a=t(e[r],r,n))&&o.push(a);else for(r in e)null!=(a=t(e[r],r,n))&&o.push(a);return l(o)},guid:1,support:m}),"function"==typeof Symbol&&(k.fn[Symbol.iterator]=r[Symbol.iterator]),k.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(e,t){u["[object "+t+"]"]=t.toLowerCase()}));var I=r.pop,D=r.sort,E=r.splice,M="[\\x20\\t\\r\\n\\f]",A=new RegExp("^"+M+"+|((?:^|[^\\\\])(?:\\\\.)*)"+M+"+$","g");k.contains=function(e,t){var n=t&&t.parentNode;return e===n||!(!n||1!==n.nodeType||!(e.contains?e.contains(n):e.compareDocumentPosition&&16&e.compareDocumentPosition(n)))};var F=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function P(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e}k.escapeSelector=function(e){return(e+"").replace(F,P)};var L=b,N=c;!function(){var e,t,i,a,o,l,c,u,p,f,g=N,v=k.expando,w=0,b=0,y=ee(),_=ee(),S=ee(),x=ee(),C=function(e,t){return e===t&&(o=!0),0},F="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",P="(?:\\\\[\\da-fA-F]{1,6}"+M+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",O="\\["+M+"*("+P+")(?:"+M+"*([*^$|!~]?=)"+M+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+P+"))|)"+M+"*\\]",B=":("+P+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+O+")*)|.*)\\)|)",j=new RegExp(M+"+","g"),H=new RegExp("^"+M+"*,"+M+"*"),z=new RegExp("^"+M+"*([>+~]|"+M+")"+M+"*"),$=new RegExp(M+"|>"),G=new RegExp(B),R=new RegExp("^"+P+"$"),q={ID:new RegExp("^#("+P+")"),CLASS:new RegExp("^\\.("+P+")"),TAG:new RegExp("^("+P+"|[*])"),ATTR:new RegExp("^"+O),PSEUDO:new RegExp("^"+B),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+M+"*(even|odd|(([+-]|)(\\d*)n|)"+M+"*(?:([+-]|)"+M+"*(\\d+)|))"+M+"*\\)|)","i"),bool:new RegExp("^(?:"+F+")$","i"),needsContext:new RegExp("^"+M+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+M+"*((?:-\\d)?\\d*)"+M+"*\\)|)(?=[^-]|$)","i")},W=/^(?:input|select|textarea|button)$/i,U=/^h\d$/i,V=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,X=/[+~]/,Y=new RegExp("\\\\[\\da-fA-F]{1,6}"+M+"?|\\\\([^\\r\\n\\f])","g"),J=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},K=function(){le()},Q=pe((function(e){return!0===e.disabled&&T(e,"fieldset")}),{dir:"parentNode",next:"legend"});try{g.apply(r=s.call(L.childNodes),L.childNodes),r[L.childNodes.length].nodeType}catch(e){g={apply:function(e,t){N.apply(e,s.call(t))},call:function(e){N.apply(e,s.call(arguments,1))}}}function Z(e,t,n,i){var a,r,o,s,c,d,h,f=t&&t.ownerDocument,w=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==w&&9!==w&&11!==w)return n;if(!i&&(le(t),t=t||l,u)){if(11!==w&&(c=V.exec(e)))if(a=c[1]){if(9===w){if(!(o=t.getElementById(a)))return n;if(o.id===a)return g.call(n,o),n}else if(f&&(o=f.getElementById(a))&&Z.contains(t,o)&&o.id===a)return g.call(n,o),n}else{if(c[2])return g.apply(n,t.getElementsByTagName(e)),n;if((a=c[3])&&t.getElementsByClassName)return g.apply(n,t.getElementsByClassName(a)),n}if(!(x[e+" "]||p&&p.test(e))){if(h=e,f=t,1===w&&($.test(e)||z.test(e))){for((f=X.test(e)&&se(t.parentNode)||t)==t&&m.scope||((s=t.getAttribute("id"))?s=k.escapeSelector(s):t.setAttribute("id",s=v)),r=(d=de(e)).length;r--;)d[r]=(s?"#"+s:":scope")+" "+ue(d[r]);h=d.join(",")}try{return g.apply(n,f.querySelectorAll(h)),n}catch(t){x(e,!0)}finally{s===v&&t.removeAttribute("id")}}}return we(e.replace(A,"$1"),t,n,i)}function ee(){var e=[];return function n(i,a){return e.push(i+" ")>t.cacheLength&&delete n[e.shift()],n[i+" "]=a}}function te(e){return e[v]=!0,e}function ne(e){var t=l.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function ie(e){return function(t){return T(t,"input")&&t.type===e}}function ae(e){return function(t){return(T(t,"input")||T(t,"button"))&&t.type===e}}function re(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&Q(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function oe(e){return te((function(t){return t=+t,te((function(n,i){for(var a,r=e([],n.length,t),o=r.length;o--;)n[a=r[o]]&&(n[a]=!(i[a]=n[a]))}))}))}function se(e){return e&&void 0!==e.getElementsByTagName&&e}function le(e){var n,i=e?e.ownerDocument||e:L;return i!=l&&9===i.nodeType&&i.documentElement?(c=(l=i).documentElement,u=!k.isXMLDoc(l),f=c.matches||c.webkitMatchesSelector||c.msMatchesSelector,L!=l&&(n=l.defaultView)&&n.top!==n&&n.addEventListener("unload",K),m.getById=ne((function(e){return c.appendChild(e).id=k.expando,!l.getElementsByName||!l.getElementsByName(k.expando).length})),m.disconnectedMatch=ne((function(e){return f.call(e,"*")})),m.scope=ne((function(){return l.querySelectorAll(":scope")})),m.cssHas=ne((function(){try{return l.querySelector(":has(*,:jqfake)"),!1}catch(e){return!0}})),m.getById?(t.filter.ID=function(e){var t=e.replace(Y,J);return function(e){return e.getAttribute("id")===t}},t.find.ID=function(e,t){if(void 0!==t.getElementById&&u){var n=t.getElementById(e);return n?[n]:[]}}):(t.filter.ID=function(e){var t=e.replace(Y,J);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},t.find.ID=function(e,t){if(void 0!==t.getElementById&&u){var n,i,a,r=t.getElementById(e);if(r){if((n=r.getAttributeNode("id"))&&n.value===e)return[r];for(a=t.getElementsByName(e),i=0;r=a[i++];)if((n=r.getAttributeNode("id"))&&n.value===e)return[r]}return[]}}),t.find.TAG=function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):t.querySelectorAll(e)},t.find.CLASS=function(e,t){if(void 0!==t.getElementsByClassName&&u)return t.getElementsByClassName(e)},p=[],ne((function(e){var t;c.appendChild(e).innerHTML="<a id='"+v+"' href='' disabled='disabled'></a><select id='"+v+"-\r\\' disabled='disabled'><option selected=''></option></select>",e.querySelectorAll("[selected]").length||p.push("\\["+M+"*(?:value|"+F+")"),e.querySelectorAll("[id~="+v+"-]").length||p.push("~="),e.querySelectorAll("a#"+v+"+*").length||p.push(".#.+[+~]"),e.querySelectorAll(":checked").length||p.push(":checked"),(t=l.createElement("input")).setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),c.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&p.push(":enabled",":disabled"),(t=l.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||p.push("\\["+M+"*name"+M+"*="+M+"*(?:''|\"\")")})),m.cssHas||p.push(":has"),p=p.length&&new RegExp(p.join("|")),C=function(e,t){if(e===t)return o=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!m.sortDetached&&t.compareDocumentPosition(e)===n?e===l||e.ownerDocument==L&&Z.contains(L,e)?-1:t===l||t.ownerDocument==L&&Z.contains(L,t)?1:a?d.call(a,e)-d.call(a,t):0:4&n?-1:1)},l):l}for(e in Z.matches=function(e,t){return Z(e,null,null,t)},Z.matchesSelector=function(e,t){if(le(e),u&&!x[t+" "]&&(!p||!p.test(t)))try{var n=f.call(e,t);if(n||m.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){x(t,!0)}return Z(t,l,null,[e]).length>0},Z.contains=function(e,t){return(e.ownerDocument||e)!=l&&le(e),k.contains(e,t)},Z.attr=function(e,n){(e.ownerDocument||e)!=l&&le(e);var i=t.attrHandle[n.toLowerCase()],a=i&&h.call(t.attrHandle,n.toLowerCase())?i(e,n,!u):void 0;return void 0!==a?a:e.getAttribute(n)},Z.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},k.uniqueSort=function(e){var t,n=[],i=0,r=0;if(o=!m.sortStable,a=!m.sortStable&&s.call(e,0),D.call(e,C),o){for(;t=e[r++];)t===e[r]&&(i=n.push(r));for(;i--;)E.call(e,n[i],1)}return a=null,e},k.fn.uniqueSort=function(){return this.pushStack(k.uniqueSort(s.apply(this)))},(t=k.expr={cacheLength:50,createPseudo:te,match:q,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(Y,J),e[3]=(e[3]||e[4]||e[5]||"").replace(Y,J),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||Z.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&Z.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return q.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&G.test(n)&&(t=de(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(Y,J).toLowerCase();return"*"===e?function(){return!0}:function(e){return T(e,t)}},CLASS:function(e){var t=y[e+" "];return t||(t=new RegExp("(^|"+M+")"+e+"("+M+"|$)"))&&y(e,(function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,n){return function(i){var a=Z.attr(i,e);return null==a?"!="===t:!t||(a+="","="===t?a===n:"!="===t?a!==n:"^="===t?n&&0===a.indexOf(n):"*="===t?n&&a.indexOf(n)>-1:"$="===t?n&&a.slice(-n.length)===n:"~="===t?(" "+a.replace(j," ")+" ").indexOf(n)>-1:"|="===t&&(a===n||a.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,i,a){var r="nth"!==e.slice(0,3),o="last"!==e.slice(-4),s="of-type"===t;return 1===i&&0===a?function(e){return!!e.parentNode}:function(t,n,l){var c,d,u,p,h,f=r!==o?"nextSibling":"previousSibling",g=t.parentNode,m=s&&t.nodeName.toLowerCase(),b=!l&&!s,y=!1;if(g){if(r){for(;f;){for(u=t;u=u[f];)if(s?T(u,m):1===u.nodeType)return!1;h=f="only"===e&&!h&&"nextSibling"}return!0}if(h=[o?g.firstChild:g.lastChild],o&&b){for(y=(p=(c=(d=g[v]||(g[v]={}))[e]||[])[0]===w&&c[1])&&c[2],u=p&&g.childNodes[p];u=++p&&u&&u[f]||(y=p=0)||h.pop();)if(1===u.nodeType&&++y&&u===t){d[e]=[w,p,y];break}}else if(b&&(y=p=(c=(d=t[v]||(t[v]={}))[e]||[])[0]===w&&c[1]),!1===y)for(;(u=++p&&u&&u[f]||(y=p=0)||h.pop())&&(!(s?T(u,m):1===u.nodeType)||!++y||(b&&((d=u[v]||(u[v]={}))[e]=[w,y]),u!==t)););return(y-=a)===i||y%i==0&&y/i>=0}}},PSEUDO:function(e,n){var i,a=t.pseudos[e]||t.setFilters[e.toLowerCase()]||Z.error("unsupported pseudo: "+e);return a[v]?a(n):a.length>1?(i=[e,e,"",n],t.setFilters.hasOwnProperty(e.toLowerCase())?te((function(e,t){for(var i,r=a(e,n),o=r.length;o--;)e[i=d.call(e,r[o])]=!(t[i]=r[o])})):function(e){return a(e,0,i)}):a}},pseudos:{not:te((function(e){var t=[],n=[],i=ve(e.replace(A,"$1"));return i[v]?te((function(e,t,n,a){for(var r,o=i(e,null,a,[]),s=e.length;s--;)(r=o[s])&&(e[s]=!(t[s]=r))})):function(e,a,r){return t[0]=e,i(t,null,r,n),t[0]=null,!n.pop()}})),has:te((function(e){return function(t){return Z(e,t).length>0}})),contains:te((function(e){return e=e.replace(Y,J),function(t){return(t.textContent||k.text(t)).indexOf(e)>-1}})),lang:te((function(e){return R.test(e||"")||Z.error("unsupported lang: "+e),e=e.replace(Y,J).toLowerCase(),function(t){var n;do{if(n=u?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(e){var t=n.location&&n.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===c},focus:function(e){return e===function(){try{return l.activeElement}catch(e){}}()&&l.hasFocus()&&!!(e.type||e.href||~e.tabIndex)},enabled:re(!1),disabled:re(!0),checked:function(e){return T(e,"input")&&!!e.checked||T(e,"option")&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!t.pseudos.empty(e)},header:function(e){return U.test(e.nodeName)},input:function(e){return W.test(e.nodeName)},button:function(e){return T(e,"input")&&"button"===e.type||T(e,"button")},text:function(e){var t;return T(e,"input")&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:oe((function(){return[0]})),last:oe((function(e,t){return[t-1]})),eq:oe((function(e,t,n){return[n<0?n+t:n]})),even:oe((function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e})),odd:oe((function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e})),lt:oe((function(e,t,n){var i;for(i=n<0?n+t:n>t?t:n;--i>=0;)e.push(i);return e})),gt:oe((function(e,t,n){for(var i=n<0?n+t:n;++i<t;)e.push(i);return e}))}}).pseudos.nth=t.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})t.pseudos[e]=ie(e);for(e in{submit:!0,reset:!0})t.pseudos[e]=ae(e);function ce(){}function de(e,n){var i,a,r,o,s,l,c,d=_[e+" "];if(d)return n?0:d.slice(0);for(s=e,l=[],c=t.preFilter;s;){for(o in i&&!(a=H.exec(s))||(a&&(s=s.slice(a[0].length)||s),l.push(r=[])),i=!1,(a=z.exec(s))&&(i=a.shift(),r.push({value:i,type:a[0].replace(A," ")}),s=s.slice(i.length)),t.filter)!(a=q[o].exec(s))||c[o]&&!(a=c[o](a))||(i=a.shift(),r.push({value:i,type:o,matches:a}),s=s.slice(i.length));if(!i)break}return n?s.length:s?Z.error(e):_(e,l).slice(0)}function ue(e){for(var t=0,n=e.length,i="";t<n;t++)i+=e[t].value;return i}function pe(e,t,n){var i=t.dir,a=t.next,r=a||i,o=n&&"parentNode"===r,s=b++;return t.first?function(t,n,a){for(;t=t[i];)if(1===t.nodeType||o)return e(t,n,a);return!1}:function(t,n,l){var c,d,u=[w,s];if(l){for(;t=t[i];)if((1===t.nodeType||o)&&e(t,n,l))return!0}else for(;t=t[i];)if(1===t.nodeType||o)if(d=t[v]||(t[v]={}),a&&T(t,a))t=t[i]||t;else{if((c=d[r])&&c[0]===w&&c[1]===s)return u[2]=c[2];if(d[r]=u,u[2]=e(t,n,l))return!0}return!1}}function he(e){return e.length>1?function(t,n,i){for(var a=e.length;a--;)if(!e[a](t,n,i))return!1;return!0}:e[0]}function fe(e,t,n,i,a){for(var r,o=[],s=0,l=e.length,c=null!=t;s<l;s++)(r=e[s])&&(n&&!n(r,i,a)||(o.push(r),c&&t.push(s)));return o}function ge(e,t,n,i,a,r){return i&&!i[v]&&(i=ge(i)),a&&!a[v]&&(a=ge(a,r)),te((function(r,o,s,l){var c,u,p,h,f=[],m=[],v=o.length,w=r||function(e,t,n){for(var i=0,a=t.length;i<a;i++)Z(e,t[i],n);return n}(t||"*",s.nodeType?[s]:s,[]),b=!e||!r&&t?w:fe(w,f,e,s,l);if(n?n(b,h=a||(r?e:v||i)?[]:o,s,l):h=b,i)for(c=fe(h,m),i(c,[],s,l),u=c.length;u--;)(p=c[u])&&(h[m[u]]=!(b[m[u]]=p));if(r){if(a||e){if(a){for(c=[],u=h.length;u--;)(p=h[u])&&c.push(b[u]=p);a(null,h=[],c,l)}for(u=h.length;u--;)(p=h[u])&&(c=a?d.call(r,p):f[u])>-1&&(r[c]=!(o[c]=p))}}else h=fe(h===o?h.splice(v,h.length):h),a?a(null,o,h,l):g.apply(o,h)}))}function me(e){for(var n,a,r,o=e.length,s=t.relative[e[0].type],l=s||t.relative[" "],c=s?1:0,u=pe((function(e){return e===n}),l,!0),p=pe((function(e){return d.call(n,e)>-1}),l,!0),h=[function(e,t,a){var r=!s&&(a||t!=i)||((n=t).nodeType?u(e,t,a):p(e,t,a));return n=null,r}];c<o;c++)if(a=t.relative[e[c].type])h=[pe(he(h),a)];else{if((a=t.filter[e[c].type].apply(null,e[c].matches))[v]){for(r=++c;r<o&&!t.relative[e[r].type];r++);return ge(c>1&&he(h),c>1&&ue(e.slice(0,c-1).concat({value:" "===e[c-2].type?"*":""})).replace(A,"$1"),a,c<r&&me(e.slice(c,r)),r<o&&me(e=e.slice(r)),r<o&&ue(e))}h.push(a)}return he(h)}function ve(e,n){var a,r=[],o=[],s=S[e+" "];if(!s){for(n||(n=de(e)),a=n.length;a--;)(s=me(n[a]))[v]?r.push(s):o.push(s);(s=S(e,function(e,n){var a=n.length>0,r=e.length>0,o=function(o,s,c,d,p){var h,f,m,v=0,b="0",y=o&&[],_=[],S=i,x=o||r&&t.find.TAG("*",p),C=w+=null==S?1:Math.random()||.1,T=x.length;for(p&&(i=s==l||s||p);b!==T&&null!=(h=x[b]);b++){if(r&&h){for(f=0,s||h.ownerDocument==l||(le(h),c=!u);m=e[f++];)if(m(h,s||l,c)){g.call(d,h);break}p&&(w=C)}a&&((h=!m&&h)&&v--,o&&y.push(h))}if(v+=b,a&&b!==v){for(f=0;m=n[f++];)m(y,_,s,c);if(o){if(v>0)for(;b--;)y[b]||_[b]||(_[b]=I.call(d));_=fe(_)}g.apply(d,_),p&&!o&&_.length>0&&v+n.length>1&&k.uniqueSort(d)}return p&&(w=C,i=S),y};return a?te(o):o}(o,r))).selector=e}return s}function we(e,n,i,a){var r,o,s,l,c,d="function"==typeof e&&e,p=!a&&de(e=d.selector||e);if(i=i||[],1===p.length){if((o=p[0]=p[0].slice(0)).length>2&&"ID"===(s=o[0]).type&&9===n.nodeType&&u&&t.relative[o[1].type]){if(!(n=(t.find.ID(s.matches[0].replace(Y,J),n)||[])[0]))return i;d&&(n=n.parentNode),e=e.slice(o.shift().value.length)}for(r=q.needsContext.test(e)?0:o.length;r--&&(s=o[r],!t.relative[l=s.type]);)if((c=t.find[l])&&(a=c(s.matches[0].replace(Y,J),X.test(o[0].type)&&se(n.parentNode)||n))){if(o.splice(r,1),!(e=a.length&&ue(o)))return g.apply(i,a),i;break}}return(d||ve(e,p))(a,n,!u,i,!n||X.test(e)&&se(n.parentNode)||n),i}ce.prototype=t.filters=t.pseudos,t.setFilters=new ce,m.sortStable=v.split("").sort(C).join("")===v,le(),m.sortDetached=ne((function(e){return 1&e.compareDocumentPosition(l.createElement("fieldset"))})),k.find=Z,k.expr[":"]=k.expr.pseudos,k.unique=k.uniqueSort,Z.compile=ve,Z.select=we,Z.setDocument=le,Z.escape=k.escapeSelector,Z.getText=k.text,Z.isXML=k.isXMLDoc,Z.selectors=k.expr,Z.support=k.support,Z.uniqueSort=k.uniqueSort}();var O=function(e,t,n){for(var i=[],a=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(a&&k(e).is(n))break;i.push(e)}return i},B=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},j=k.expr.match.needsContext,H=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function z(e,t,n){return v(t)?k.grep(e,(function(e,i){return!!t.call(e,i,e)!==n})):t.nodeType?k.grep(e,(function(e){return e===t!==n})):"string"!=typeof t?k.grep(e,(function(e){return d.call(t,e)>-1!==n})):k.filter(t,e,n)}k.filter=function(e,t,n){var i=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===i.nodeType?k.find.matchesSelector(i,e)?[i]:[]:k.find.matches(e,k.grep(t,(function(e){return 1===e.nodeType})))},k.fn.extend({find:function(e){var t,n,i=this.length,a=this;if("string"!=typeof e)return this.pushStack(k(e).filter((function(){for(t=0;t<i;t++)if(k.contains(a[t],this))return!0})));for(n=this.pushStack([]),t=0;t<i;t++)k.find(e,a[t],n);return i>1?k.uniqueSort(n):n},filter:function(e){return this.pushStack(z(this,e||[],!1))},not:function(e){return this.pushStack(z(this,e||[],!0))},is:function(e){return!!z(this,"string"==typeof e&&j.test(e)?k(e):e||[],!1).length}});var $,G=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(k.fn.init=function(e,t,n){var i,a;if(!e)return this;if(n=n||$,"string"==typeof e){if(!(i="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:G.exec(e))||!i[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(i[1]){if(t=t instanceof k?t[0]:t,k.merge(this,k.parseHTML(i[1],t&&t.nodeType?t.ownerDocument||t:b,!0)),H.test(i[1])&&k.isPlainObject(t))for(i in t)v(this[i])?this[i](t[i]):this.attr(i,t[i]);return this}return(a=b.getElementById(i[2]))&&(this[0]=a,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):v(e)?void 0!==n.ready?n.ready(e):e(k):k.makeArray(e,this)}).prototype=k.fn,$=k(b);var R=/^(?:parents|prev(?:Until|All))/,q={children:!0,contents:!0,next:!0,prev:!0};function W(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}k.fn.extend({has:function(e){var t=k(e,this),n=t.length;return this.filter((function(){for(var e=0;e<n;e++)if(k.contains(this,t[e]))return!0}))},closest:function(e,t){var n,i=0,a=this.length,r=[],o="string"!=typeof e&&k(e);if(!j.test(e))for(;i<a;i++)for(n=this[i];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(o?o.index(n)>-1:1===n.nodeType&&k.find.matchesSelector(n,e))){r.push(n);break}return this.pushStack(r.length>1?k.uniqueSort(r):r)},index:function(e){return e?"string"==typeof e?d.call(k(e),this[0]):d.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(k.uniqueSort(k.merge(this.get(),k(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),k.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return O(e,"parentNode")},parentsUntil:function(e,t,n){return O(e,"parentNode",n)},next:function(e){return W(e,"nextSibling")},prev:function(e){return W(e,"previousSibling")},nextAll:function(e){return O(e,"nextSibling")},prevAll:function(e){return O(e,"previousSibling")},nextUntil:function(e,t,n){return O(e,"nextSibling",n)},prevUntil:function(e,t,n){return O(e,"previousSibling",n)},siblings:function(e){return B((e.parentNode||{}).firstChild,e)},children:function(e){return B(e.firstChild)},contents:function(e){return null!=e.contentDocument&&o(e.contentDocument)?e.contentDocument:(T(e,"template")&&(e=e.content||e),k.merge([],e.childNodes))}},(function(e,t){k.fn[e]=function(n,i){var a=k.map(this,t,n);return"Until"!==e.slice(-5)&&(i=n),i&&"string"==typeof i&&(a=k.filter(i,a)),this.length>1&&(q[e]||k.uniqueSort(a),R.test(e)&&a.reverse()),this.pushStack(a)}}));var U=/[^\x20\t\r\n\f]+/g;function V(e){return e}function X(e){throw e}function Y(e,t,n,i){var a;try{e&&v(a=e.promise)?a.call(e).done(t).fail(n):e&&v(a=e.then)?a.call(e,t,n):t.apply(void 0,[e].slice(i))}catch(e){n.apply(void 0,[e])}}k.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return k.each(e.match(U)||[],(function(e,n){t[n]=!0})),t}(e):k.extend({},e);var t,n,i,a,r=[],o=[],s=-1,l=function(){for(a=a||e.once,i=t=!0;o.length;s=-1)for(n=o.shift();++s<r.length;)!1===r[s].apply(n[0],n[1])&&e.stopOnFalse&&(s=r.length,n=!1);e.memory||(n=!1),t=!1,a&&(r=n?[]:"")},c={add:function(){return r&&(n&&!t&&(s=r.length-1,o.push(n)),function t(n){k.each(n,(function(n,i){v(i)?e.unique&&c.has(i)||r.push(i):i&&i.length&&"string"!==S(i)&&t(i)}))}(arguments),n&&!t&&l()),this},remove:function(){return k.each(arguments,(function(e,t){for(var n;(n=k.inArray(t,r,n))>-1;)r.splice(n,1),n<=s&&s--})),this},has:function(e){return e?k.inArray(e,r)>-1:r.length>0},empty:function(){return r&&(r=[]),this},disable:function(){return a=o=[],r=n="",this},disabled:function(){return!r},lock:function(){return a=o=[],n||t||(r=n=""),this},locked:function(){return!!a},fireWith:function(e,n){return a||(n=[e,(n=n||[]).slice?n.slice():n],o.push(n),t||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!i}};return c},k.extend({Deferred:function(e){var t=[["notify","progress",k.Callbacks("memory"),k.Callbacks("memory"),2],["resolve","done",k.Callbacks("once memory"),k.Callbacks("once memory"),0,"resolved"],["reject","fail",k.Callbacks("once memory"),k.Callbacks("once memory"),1,"rejected"]],i="pending",a={state:function(){return i},always:function(){return r.done(arguments).fail(arguments),this},catch:function(e){return a.then(null,e)},pipe:function(){var e=arguments;return k.Deferred((function(n){k.each(t,(function(t,i){var a=v(e[i[4]])&&e[i[4]];r[i[1]]((function(){var e=a&&a.apply(this,arguments);e&&v(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[i[0]+"With"](this,a?[e]:arguments)}))})),e=null})).promise()},then:function(e,i,a){var r=0;function o(e,t,i,a){return function(){var s=this,l=arguments,c=function(){var n,c;if(!(e<r)){if((n=i.apply(s,l))===t.promise())throw new TypeError("Thenable self-resolution");c=n&&("object"==typeof n||"function"==typeof n)&&n.then,v(c)?a?c.call(n,o(r,t,V,a),o(r,t,X,a)):(r++,c.call(n,o(r,t,V,a),o(r,t,X,a),o(r,t,V,t.notifyWith))):(i!==V&&(s=void 0,l=[n]),(a||t.resolveWith)(s,l))}},d=a?c:function(){try{c()}catch(n){k.Deferred.exceptionHook&&k.Deferred.exceptionHook(n,d.error),e+1>=r&&(i!==X&&(s=void 0,l=[n]),t.rejectWith(s,l))}};e?d():(k.Deferred.getErrorHook?d.error=k.Deferred.getErrorHook():k.Deferred.getStackHook&&(d.error=k.Deferred.getStackHook()),n.setTimeout(d))}}return k.Deferred((function(n){t[0][3].add(o(0,n,v(a)?a:V,n.notifyWith)),t[1][3].add(o(0,n,v(e)?e:V)),t[2][3].add(o(0,n,v(i)?i:X))})).promise()},promise:function(e){return null!=e?k.extend(e,a):a}},r={};return k.each(t,(function(e,n){var o=n[2],s=n[5];a[n[1]]=o.add,s&&o.add((function(){i=s}),t[3-e][2].disable,t[3-e][3].disable,t[0][2].lock,t[0][3].lock),o.add(n[3].fire),r[n[0]]=function(){return r[n[0]+"With"](this===r?void 0:this,arguments),this},r[n[0]+"With"]=o.fireWith})),a.promise(r),e&&e.call(r,r),r},when:function(e){var t=arguments.length,n=t,i=Array(n),a=s.call(arguments),r=k.Deferred(),o=function(e){return function(n){i[e]=this,a[e]=arguments.length>1?s.call(arguments):n,--t||r.resolveWith(i,a)}};if(t<=1&&(Y(e,r.done(o(n)).resolve,r.reject,!t),"pending"===r.state()||v(a[n]&&a[n].then)))return r.then();for(;n--;)Y(a[n],o(n),r.reject);return r.promise()}});var J=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;k.Deferred.exceptionHook=function(e,t){n.console&&n.console.warn&&e&&J.test(e.name)&&n.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},k.readyException=function(e){n.setTimeout((function(){throw e}))};var K=k.Deferred();function Q(){b.removeEventListener("DOMContentLoaded",Q),n.removeEventListener("load",Q),k.ready()}k.fn.ready=function(e){return K.then(e).catch((function(e){k.readyException(e)})),this},k.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--k.readyWait:k.isReady)||(k.isReady=!0,!0!==e&&--k.readyWait>0||K.resolveWith(b,[k]))}}),k.ready.then=K.then,"complete"===b.readyState||"loading"!==b.readyState&&!b.documentElement.doScroll?n.setTimeout(k.ready):(b.addEventListener("DOMContentLoaded",Q),n.addEventListener("load",Q));var Z=function(e,t,n,i,a,r,o){var s=0,l=e.length,c=null==n;if("object"===S(n))for(s in a=!0,n)Z(e,t,s,n[s],!0,r,o);else if(void 0!==i&&(a=!0,v(i)||(o=!0),c&&(o?(t.call(e,i),t=null):(c=t,t=function(e,t,n){return c.call(k(e),n)})),t))for(;s<l;s++)t(e[s],n,o?i:i.call(e[s],s,t(e[s],n)));return a?e:c?t.call(e):l?t(e[0],n):r},ee=/^-ms-/,te=/-([a-z])/g;function ne(e,t){return t.toUpperCase()}function ie(e){return e.replace(ee,"ms-").replace(te,ne)}var ae=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function re(){this.expando=k.expando+re.uid++}re.uid=1,re.prototype={cache:function(e){var t=e[this.expando];return t||(t={},ae(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var i,a=this.cache(e);if("string"==typeof t)a[ie(t)]=n;else for(i in t)a[ie(i)]=t[i];return a},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][ie(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,i=e[this.expando];if(void 0!==i){if(void 0!==t){n=(t=Array.isArray(t)?t.map(ie):(t=ie(t))in i?[t]:t.match(U)||[]).length;for(;n--;)delete i[t[n]]}(void 0===t||k.isEmptyObject(i))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!k.isEmptyObject(t)}};var oe=new re,se=new re,le=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ce=/[A-Z]/g;function de(e,t,n){var i;if(void 0===n&&1===e.nodeType)if(i="data-"+t.replace(ce,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(i))){try{n=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:le.test(e)?JSON.parse(e):e)}(n)}catch(e){}se.set(e,t,n)}else n=void 0;return n}k.extend({hasData:function(e){return se.hasData(e)||oe.hasData(e)},data:function(e,t,n){return se.access(e,t,n)},removeData:function(e,t){se.remove(e,t)},_data:function(e,t,n){return oe.access(e,t,n)},_removeData:function(e,t){oe.remove(e,t)}}),k.fn.extend({data:function(e,t){var n,i,a,r=this[0],o=r&&r.attributes;if(void 0===e){if(this.length&&(a=se.get(r),1===r.nodeType&&!oe.get(r,"hasDataAttrs"))){for(n=o.length;n--;)o[n]&&0===(i=o[n].name).indexOf("data-")&&(i=ie(i.slice(5)),de(r,i,a[i]));oe.set(r,"hasDataAttrs",!0)}return a}return"object"==typeof e?this.each((function(){se.set(this,e)})):Z(this,(function(t){var n;if(r&&void 0===t)return void 0!==(n=se.get(r,e))||void 0!==(n=de(r,e))?n:void 0;this.each((function(){se.set(this,e,t)}))}),null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each((function(){se.remove(this,e)}))}}),k.extend({queue:function(e,t,n){var i;if(e)return t=(t||"fx")+"queue",i=oe.get(e,t),n&&(!i||Array.isArray(n)?i=oe.access(e,t,k.makeArray(n)):i.push(n)),i||[]},dequeue:function(e,t){t=t||"fx";var n=k.queue(e,t),i=n.length,a=n.shift(),r=k._queueHooks(e,t);"inprogress"===a&&(a=n.shift(),i--),a&&("fx"===t&&n.unshift("inprogress"),delete r.stop,a.call(e,(function(){k.dequeue(e,t)}),r)),!i&&r&&r.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return oe.get(e,n)||oe.access(e,n,{empty:k.Callbacks("once memory").add((function(){oe.remove(e,[t+"queue",n])}))})}}),k.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?k.queue(this[0],e):void 0===t?this:this.each((function(){var n=k.queue(this,e,t);k._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&k.dequeue(this,e)}))},dequeue:function(e){return this.each((function(){k.dequeue(this,e)}))},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,i=1,a=k.Deferred(),r=this,o=this.length,s=function(){--i||a.resolveWith(r,[r])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";o--;)(n=oe.get(r[o],e+"queueHooks"))&&n.empty&&(i++,n.empty.add(s));return s(),a.promise(t)}});var ue=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,pe=new RegExp("^(?:([+-])=|)("+ue+")([a-z%]*)$","i"),he=["Top","Right","Bottom","Left"],fe=b.documentElement,ge=function(e){return k.contains(e.ownerDocument,e)},me={composed:!0};fe.getRootNode&&(ge=function(e){return k.contains(e.ownerDocument,e)||e.getRootNode(me)===e.ownerDocument});var ve=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&ge(e)&&"none"===k.css(e,"display")};function we(e,t,n,i){var a,r,o=20,s=i?function(){return i.cur()}:function(){return k.css(e,t,"")},l=s(),c=n&&n[3]||(k.cssNumber[t]?"":"px"),d=e.nodeType&&(k.cssNumber[t]||"px"!==c&&+l)&&pe.exec(k.css(e,t));if(d&&d[3]!==c){for(l/=2,c=c||d[3],d=+l||1;o--;)k.style(e,t,d+c),(1-r)*(1-(r=s()/l||.5))<=0&&(o=0),d/=r;d*=2,k.style(e,t,d+c),n=n||[]}return n&&(d=+d||+l||0,a=n[1]?d+(n[1]+1)*n[2]:+n[2],i&&(i.unit=c,i.start=d,i.end=a)),a}var be={};function ye(e){var t,n=e.ownerDocument,i=e.nodeName,a=be[i];return a||(t=n.body.appendChild(n.createElement(i)),a=k.css(t,"display"),t.parentNode.removeChild(t),"none"===a&&(a="block"),be[i]=a,a)}function _e(e,t){for(var n,i,a=[],r=0,o=e.length;r<o;r++)(i=e[r]).style&&(n=i.style.display,t?("none"===n&&(a[r]=oe.get(i,"display")||null,a[r]||(i.style.display="")),""===i.style.display&&ve(i)&&(a[r]=ye(i))):"none"!==n&&(a[r]="none",oe.set(i,"display",n)));for(r=0;r<o;r++)null!=a[r]&&(e[r].style.display=a[r]);return e}k.fn.extend({show:function(){return _e(this,!0)},hide:function(){return _e(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each((function(){ve(this)?k(this).show():k(this).hide()}))}});var Se,xe,ke=/^(?:checkbox|radio)$/i,Ce=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Te=/^$|^module$|\/(?:java|ecma)script/i;Se=b.createDocumentFragment().appendChild(b.createElement("div")),(xe=b.createElement("input")).setAttribute("type","radio"),xe.setAttribute("checked","checked"),xe.setAttribute("name","t"),Se.appendChild(xe),m.checkClone=Se.cloneNode(!0).cloneNode(!0).lastChild.checked,Se.innerHTML="<textarea>x</textarea>",m.noCloneChecked=!!Se.cloneNode(!0).lastChild.defaultValue,Se.innerHTML="<option></option>",m.option=!!Se.lastChild;var Ie={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function De(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&T(e,t)?k.merge([e],n):n}function Ee(e,t){for(var n=0,i=e.length;n<i;n++)oe.set(e[n],"globalEval",!t||oe.get(t[n],"globalEval"))}Ie.tbody=Ie.tfoot=Ie.colgroup=Ie.caption=Ie.thead,Ie.th=Ie.td,m.option||(Ie.optgroup=Ie.option=[1,"<select multiple='multiple'>","</select>"]);var Me=/<|&#?\w+;/;function Ae(e,t,n,i,a){for(var r,o,s,l,c,d,u=t.createDocumentFragment(),p=[],h=0,f=e.length;h<f;h++)if((r=e[h])||0===r)if("object"===S(r))k.merge(p,r.nodeType?[r]:r);else if(Me.test(r)){for(o=o||u.appendChild(t.createElement("div")),s=(Ce.exec(r)||["",""])[1].toLowerCase(),l=Ie[s]||Ie._default,o.innerHTML=l[1]+k.htmlPrefilter(r)+l[2],d=l[0];d--;)o=o.lastChild;k.merge(p,o.childNodes),(o=u.firstChild).textContent=""}else p.push(t.createTextNode(r));for(u.textContent="",h=0;r=p[h++];)if(i&&k.inArray(r,i)>-1)a&&a.push(r);else if(c=ge(r),o=De(u.appendChild(r),"script"),c&&Ee(o),n)for(d=0;r=o[d++];)Te.test(r.type||"")&&n.push(r);return u}var Fe=/^([^.]*)(?:\.(.+)|)/;function Pe(){return!0}function Le(){return!1}function Ne(e,t,n,i,a,r){var o,s;if("object"==typeof t){for(s in"string"!=typeof n&&(i=i||n,n=void 0),t)Ne(e,s,n,i,t[s],r);return e}if(null==i&&null==a?(a=n,i=n=void 0):null==a&&("string"==typeof n?(a=i,i=void 0):(a=i,i=n,n=void 0)),!1===a)a=Le;else if(!a)return e;return 1===r&&(o=a,(a=function(e){return k().off(e),o.apply(this,arguments)}).guid=o.guid||(o.guid=k.guid++)),e.each((function(){k.event.add(this,t,a,i,n)}))}function Oe(e,t,n){n?(oe.set(e,t,!1),k.event.add(e,t,{namespace:!1,handler:function(e){var n,i=oe.get(this,t);if(1&e.isTrigger&&this[t]){if(i)(k.event.special[t]||{}).delegateType&&e.stopPropagation();else if(i=s.call(arguments),oe.set(this,t,i),this[t](),n=oe.get(this,t),oe.set(this,t,!1),i!==n)return e.stopImmediatePropagation(),e.preventDefault(),n}else i&&(oe.set(this,t,k.event.trigger(i[0],i.slice(1),this)),e.stopPropagation(),e.isImmediatePropagationStopped=Pe)}})):void 0===oe.get(e,t)&&k.event.add(e,t,Pe)}k.event={global:{},add:function(e,t,n,i,a){var r,o,s,l,c,d,u,p,h,f,g,m=oe.get(e);if(ae(e))for(n.handler&&(n=(r=n).handler,a=r.selector),a&&k.find.matchesSelector(fe,a),n.guid||(n.guid=k.guid++),(l=m.events)||(l=m.events=Object.create(null)),(o=m.handle)||(o=m.handle=function(t){return void 0!==k&&k.event.triggered!==t.type?k.event.dispatch.apply(e,arguments):void 0}),c=(t=(t||"").match(U)||[""]).length;c--;)h=g=(s=Fe.exec(t[c])||[])[1],f=(s[2]||"").split(".").sort(),h&&(u=k.event.special[h]||{},h=(a?u.delegateType:u.bindType)||h,u=k.event.special[h]||{},d=k.extend({type:h,origType:g,data:i,handler:n,guid:n.guid,selector:a,needsContext:a&&k.expr.match.needsContext.test(a),namespace:f.join(".")},r),(p=l[h])||((p=l[h]=[]).delegateCount=0,u.setup&&!1!==u.setup.call(e,i,f,o)||e.addEventListener&&e.addEventListener(h,o)),u.add&&(u.add.call(e,d),d.handler.guid||(d.handler.guid=n.guid)),a?p.splice(p.delegateCount++,0,d):p.push(d),k.event.global[h]=!0)},remove:function(e,t,n,i,a){var r,o,s,l,c,d,u,p,h,f,g,m=oe.hasData(e)&&oe.get(e);if(m&&(l=m.events)){for(c=(t=(t||"").match(U)||[""]).length;c--;)if(h=g=(s=Fe.exec(t[c])||[])[1],f=(s[2]||"").split(".").sort(),h){for(u=k.event.special[h]||{},p=l[h=(i?u.delegateType:u.bindType)||h]||[],s=s[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),o=r=p.length;r--;)d=p[r],!a&&g!==d.origType||n&&n.guid!==d.guid||s&&!s.test(d.namespace)||i&&i!==d.selector&&("**"!==i||!d.selector)||(p.splice(r,1),d.selector&&p.delegateCount--,u.remove&&u.remove.call(e,d));o&&!p.length&&(u.teardown&&!1!==u.teardown.call(e,f,m.handle)||k.removeEvent(e,h,m.handle),delete l[h])}else for(h in l)k.event.remove(e,h+t[c],n,i,!0);k.isEmptyObject(l)&&oe.remove(e,"handle events")}},dispatch:function(e){var t,n,i,a,r,o,s=new Array(arguments.length),l=k.event.fix(e),c=(oe.get(this,"events")||Object.create(null))[l.type]||[],d=k.event.special[l.type]||{};for(s[0]=l,t=1;t<arguments.length;t++)s[t]=arguments[t];if(l.delegateTarget=this,!d.preDispatch||!1!==d.preDispatch.call(this,l)){for(o=k.event.handlers.call(this,l,c),t=0;(a=o[t++])&&!l.isPropagationStopped();)for(l.currentTarget=a.elem,n=0;(r=a.handlers[n++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==r.namespace&&!l.rnamespace.test(r.namespace)||(l.handleObj=r,l.data=r.data,void 0!==(i=((k.event.special[r.origType]||{}).handle||r.handler).apply(a.elem,s))&&!1===(l.result=i)&&(l.preventDefault(),l.stopPropagation()));return d.postDispatch&&d.postDispatch.call(this,l),l.result}},handlers:function(e,t){var n,i,a,r,o,s=[],l=t.delegateCount,c=e.target;if(l&&c.nodeType&&!("click"===e.type&&e.button>=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==e.type||!0!==c.disabled)){for(r=[],o={},n=0;n<l;n++)void 0===o[a=(i=t[n]).selector+" "]&&(o[a]=i.needsContext?k(a,this).index(c)>-1:k.find(a,this,null,[c]).length),o[a]&&r.push(i);r.length&&s.push({elem:c,handlers:r})}return c=this,l<t.length&&s.push({elem:c,handlers:t.slice(l)}),s},addProp:function(e,t){Object.defineProperty(k.Event.prototype,e,{enumerable:!0,configurable:!0,get:v(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[k.expando]?e:new k.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return ke.test(t.type)&&t.click&&T(t,"input")&&Oe(t,"click",!0),!1},trigger:function(e){var t=this||e;return ke.test(t.type)&&t.click&&T(t,"input")&&Oe(t,"click"),!0},_default:function(e){var t=e.target;return ke.test(t.type)&&t.click&&T(t,"input")&&oe.get(t,"click")||T(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},k.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},k.Event=function(e,t){if(!(this instanceof k.Event))return new k.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Pe:Le,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&k.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[k.expando]=!0},k.Event.prototype={constructor:k.Event,isDefaultPrevented:Le,isPropagationStopped:Le,isImmediatePropagationStopped:Le,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Pe,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Pe,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Pe,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},k.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},k.event.addProp),k.each({focus:"focusin",blur:"focusout"},(function(e,t){function n(e){if(b.documentMode){var n=oe.get(this,"handle"),i=k.event.fix(e);i.type="focusin"===e.type?"focus":"blur",i.isSimulated=!0,n(e),i.target===i.currentTarget&&n(i)}else k.event.simulate(t,e.target,k.event.fix(e))}k.event.special[e]={setup:function(){var i;if(Oe(this,e,!0),!b.documentMode)return!1;(i=oe.get(this,t))||this.addEventListener(t,n),oe.set(this,t,(i||0)+1)},trigger:function(){return Oe(this,e),!0},teardown:function(){var e;if(!b.documentMode)return!1;(e=oe.get(this,t)-1)?oe.set(this,t,e):(this.removeEventListener(t,n),oe.remove(this,t))},_default:function(t){return oe.get(t.target,e)},delegateType:t},k.event.special[t]={setup:function(){var i=this.ownerDocument||this.document||this,a=b.documentMode?this:i,r=oe.get(a,t);r||(b.documentMode?this.addEventListener(t,n):i.addEventListener(e,n,!0)),oe.set(a,t,(r||0)+1)},teardown:function(){var i=this.ownerDocument||this.document||this,a=b.documentMode?this:i,r=oe.get(a,t)-1;r?oe.set(a,t,r):(b.documentMode?this.removeEventListener(t,n):i.removeEventListener(e,n,!0),oe.remove(a,t))}}})),k.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(e,t){k.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,i=this,a=e.relatedTarget,r=e.handleObj;return a&&(a===i||k.contains(i,a))||(e.type=r.origType,n=r.handler.apply(this,arguments),e.type=t),n}}})),k.fn.extend({on:function(e,t,n,i){return Ne(this,e,t,n,i)},one:function(e,t,n,i){return Ne(this,e,t,n,i,1)},off:function(e,t,n){var i,a;if(e&&e.preventDefault&&e.handleObj)return i=e.handleObj,k(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof e){for(a in e)this.off(a,t,e[a]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=Le),this.each((function(){k.event.remove(this,e,n,t)}))}});var Be=/<script|<style|<link/i,je=/checked\s*(?:[^=]|=\s*.checked.)/i,He=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function ze(e,t){return T(e,"table")&&T(11!==t.nodeType?t:t.firstChild,"tr")&&k(e).children("tbody")[0]||e}function $e(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Ge(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Re(e,t){var n,i,a,r,o,s;if(1===t.nodeType){if(oe.hasData(e)&&(s=oe.get(e).events))for(a in oe.remove(t,"handle events"),s)for(n=0,i=s[a].length;n<i;n++)k.event.add(t,a,s[a][n]);se.hasData(e)&&(r=se.access(e),o=k.extend({},r),se.set(t,o))}}function qe(e,t){var n=t.nodeName.toLowerCase();"input"===n&&ke.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function We(e,t,n,i){t=l(t);var a,r,o,s,c,d,u=0,p=e.length,h=p-1,f=t[0],g=v(f);if(g||p>1&&"string"==typeof f&&!m.checkClone&&je.test(f))return e.each((function(a){var r=e.eq(a);g&&(t[0]=f.call(this,a,r.html())),We(r,t,n,i)}));if(p&&(r=(a=Ae(t,e[0].ownerDocument,!1,e,i)).firstChild,1===a.childNodes.length&&(a=r),r||i)){for(s=(o=k.map(De(a,"script"),$e)).length;u<p;u++)c=a,u!==h&&(c=k.clone(c,!0,!0),s&&k.merge(o,De(c,"script"))),n.call(e[u],c,u);if(s)for(d=o[o.length-1].ownerDocument,k.map(o,Ge),u=0;u<s;u++)c=o[u],Te.test(c.type||"")&&!oe.access(c,"globalEval")&&k.contains(d,c)&&(c.src&&"module"!==(c.type||"").toLowerCase()?k._evalUrl&&!c.noModule&&k._evalUrl(c.src,{nonce:c.nonce||c.getAttribute("nonce")},d):_(c.textContent.replace(He,""),c,d))}return e}function Ue(e,t,n){for(var i,a=t?k.filter(t,e):e,r=0;null!=(i=a[r]);r++)n||1!==i.nodeType||k.cleanData(De(i)),i.parentNode&&(n&&ge(i)&&Ee(De(i,"script")),i.parentNode.removeChild(i));return e}k.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var i,a,r,o,s=e.cloneNode(!0),l=ge(e);if(!(m.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||k.isXMLDoc(e)))for(o=De(s),i=0,a=(r=De(e)).length;i<a;i++)qe(r[i],o[i]);if(t)if(n)for(r=r||De(e),o=o||De(s),i=0,a=r.length;i<a;i++)Re(r[i],o[i]);else Re(e,s);return(o=De(s,"script")).length>0&&Ee(o,!l&&De(e,"script")),s},cleanData:function(e){for(var t,n,i,a=k.event.special,r=0;void 0!==(n=e[r]);r++)if(ae(n)){if(t=n[oe.expando]){if(t.events)for(i in t.events)a[i]?k.event.remove(n,i):k.removeEvent(n,i,t.handle);n[oe.expando]=void 0}n[se.expando]&&(n[se.expando]=void 0)}}}),k.fn.extend({detach:function(e){return Ue(this,e,!0)},remove:function(e){return Ue(this,e)},text:function(e){return Z(this,(function(e){return void 0===e?k.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)}))}),null,e,arguments.length)},append:function(){return We(this,arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||ze(this,e).appendChild(e)}))},prepend:function(){return We(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=ze(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return We(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return We(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)}))},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(k.cleanData(De(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return k.clone(this,e,t)}))},html:function(e){return Z(this,(function(e){var t=this[0]||{},n=0,i=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Be.test(e)&&!Ie[(Ce.exec(e)||["",""])[1].toLowerCase()]){e=k.htmlPrefilter(e);try{for(;n<i;n++)1===(t=this[n]||{}).nodeType&&(k.cleanData(De(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)}),null,e,arguments.length)},replaceWith:function(){var e=[];return We(this,arguments,(function(t){var n=this.parentNode;k.inArray(this,e)<0&&(k.cleanData(De(this)),n&&n.replaceChild(t,this))}),e)}}),k.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(e,t){k.fn[e]=function(e){for(var n,i=[],a=k(e),r=a.length-1,o=0;o<=r;o++)n=o===r?this:this.clone(!0),k(a[o])[t](n),c.apply(i,n.get());return this.pushStack(i)}}));var Ve=new RegExp("^("+ue+")(?!px)[a-z%]+$","i"),Xe=/^--/,Ye=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=n),t.getComputedStyle(e)},Je=function(e,t,n){var i,a,r={};for(a in t)r[a]=e.style[a],e.style[a]=t[a];for(a in i=n.call(e),t)e.style[a]=r[a];return i},Ke=new RegExp(he.join("|"),"i");function Qe(e,t,n){var i,a,r,o,s=Xe.test(t),l=e.style;return(n=n||Ye(e))&&(o=n.getPropertyValue(t)||n[t],s&&o&&(o=o.replace(A,"$1")||void 0),""!==o||ge(e)||(o=k.style(e,t)),!m.pixelBoxStyles()&&Ve.test(o)&&Ke.test(t)&&(i=l.width,a=l.minWidth,r=l.maxWidth,l.minWidth=l.maxWidth=l.width=o,o=n.width,l.width=i,l.minWidth=a,l.maxWidth=r)),void 0!==o?o+"":o}function Ze(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(d){c.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",d.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",fe.appendChild(c).appendChild(d);var e=n.getComputedStyle(d);i="1%"!==e.top,l=12===t(e.marginLeft),d.style.right="60%",o=36===t(e.right),a=36===t(e.width),d.style.position="absolute",r=12===t(d.offsetWidth/3),fe.removeChild(c),d=null}}function t(e){return Math.round(parseFloat(e))}var i,a,r,o,s,l,c=b.createElement("div"),d=b.createElement("div");d.style&&(d.style.backgroundClip="content-box",d.cloneNode(!0).style.backgroundClip="",m.clearCloneStyle="content-box"===d.style.backgroundClip,k.extend(m,{boxSizingReliable:function(){return e(),a},pixelBoxStyles:function(){return e(),o},pixelPosition:function(){return e(),i},reliableMarginLeft:function(){return e(),l},scrollboxSize:function(){return e(),r},reliableTrDimensions:function(){var e,t,i,a;return null==s&&(e=b.createElement("table"),t=b.createElement("tr"),i=b.createElement("div"),e.style.cssText="position:absolute;left:-11111px;border-collapse:separate",t.style.cssText="border:1px solid",t.style.height="1px",i.style.height="9px",i.style.display="block",fe.appendChild(e).appendChild(t).appendChild(i),a=n.getComputedStyle(t),s=parseInt(a.height,10)+parseInt(a.borderTopWidth,10)+parseInt(a.borderBottomWidth,10)===t.offsetHeight,fe.removeChild(e)),s}}))}();var et=["Webkit","Moz","ms"],tt=b.createElement("div").style,nt={};function it(e){var t=k.cssProps[e]||nt[e];return t||(e in tt?e:nt[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=et.length;n--;)if((e=et[n]+t)in tt)return e}(e)||e)}var at=/^(none|table(?!-c[ea]).+)/,rt={position:"absolute",visibility:"hidden",display:"block"},ot={letterSpacing:"0",fontWeight:"400"};function st(e,t,n){var i=pe.exec(t);return i?Math.max(0,i[2]-(n||0))+(i[3]||"px"):t}function lt(e,t,n,i,a,r){var o="width"===t?1:0,s=0,l=0,c=0;if(n===(i?"border":"content"))return 0;for(;o<4;o+=2)"margin"===n&&(c+=k.css(e,n+he[o],!0,a)),i?("content"===n&&(l-=k.css(e,"padding"+he[o],!0,a)),"margin"!==n&&(l-=k.css(e,"border"+he[o]+"Width",!0,a))):(l+=k.css(e,"padding"+he[o],!0,a),"padding"!==n?l+=k.css(e,"border"+he[o]+"Width",!0,a):s+=k.css(e,"border"+he[o]+"Width",!0,a));return!i&&r>=0&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-r-l-s-.5))||0),l+c}function ct(e,t,n){var i=Ye(e),a=(!m.boxSizingReliable()||n)&&"border-box"===k.css(e,"boxSizing",!1,i),r=a,o=Qe(e,t,i),s="offset"+t[0].toUpperCase()+t.slice(1);if(Ve.test(o)){if(!n)return o;o="auto"}return(!m.boxSizingReliable()&&a||!m.reliableTrDimensions()&&T(e,"tr")||"auto"===o||!parseFloat(o)&&"inline"===k.css(e,"display",!1,i))&&e.getClientRects().length&&(a="border-box"===k.css(e,"boxSizing",!1,i),(r=s in e)&&(o=e[s])),(o=parseFloat(o)||0)+lt(e,t,n||(a?"border":"content"),r,i,o)+"px"}function dt(e,t,n,i,a){return new dt.prototype.init(e,t,n,i,a)}k.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Qe(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(e,t,n,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var a,r,o,s=ie(t),l=Xe.test(t),c=e.style;if(l||(t=it(s)),o=k.cssHooks[t]||k.cssHooks[s],void 0===n)return o&&"get"in o&&void 0!==(a=o.get(e,!1,i))?a:c[t];"string"===(r=typeof n)&&(a=pe.exec(n))&&a[1]&&(n=we(e,t,a),r="number"),null!=n&&n==n&&("number"!==r||l||(n+=a&&a[3]||(k.cssNumber[s]?"":"px")),m.clearCloneStyle||""!==n||0!==t.indexOf("background")||(c[t]="inherit"),o&&"set"in o&&void 0===(n=o.set(e,n,i))||(l?c.setProperty(t,n):c[t]=n))}},css:function(e,t,n,i){var a,r,o,s=ie(t);return Xe.test(t)||(t=it(s)),(o=k.cssHooks[t]||k.cssHooks[s])&&"get"in o&&(a=o.get(e,!0,n)),void 0===a&&(a=Qe(e,t,i)),"normal"===a&&t in ot&&(a=ot[t]),""===n||n?(r=parseFloat(a),!0===n||isFinite(r)?r||0:a):a}}),k.each(["height","width"],(function(e,t){k.cssHooks[t]={get:function(e,n,i){if(n)return!at.test(k.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?ct(e,t,i):Je(e,rt,(function(){return ct(e,t,i)}))},set:function(e,n,i){var a,r=Ye(e),o=!m.scrollboxSize()&&"absolute"===r.position,s=(o||i)&&"border-box"===k.css(e,"boxSizing",!1,r),l=i?lt(e,t,i,s,r):0;return s&&o&&(l-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(r[t])-lt(e,t,"border",!1,r)-.5)),l&&(a=pe.exec(n))&&"px"!==(a[3]||"px")&&(e.style[t]=n,n=k.css(e,t)),st(0,n,l)}}})),k.cssHooks.marginLeft=Ze(m.reliableMarginLeft,(function(e,t){if(t)return(parseFloat(Qe(e,"marginLeft"))||e.getBoundingClientRect().left-Je(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})))+"px"})),k.each({margin:"",padding:"",border:"Width"},(function(e,t){k.cssHooks[e+t]={expand:function(n){for(var i=0,a={},r="string"==typeof n?n.split(" "):[n];i<4;i++)a[e+he[i]+t]=r[i]||r[i-2]||r[0];return a}},"margin"!==e&&(k.cssHooks[e+t].set=st)})),k.fn.extend({css:function(e,t){return Z(this,(function(e,t,n){var i,a,r={},o=0;if(Array.isArray(t)){for(i=Ye(e),a=t.length;o<a;o++)r[t[o]]=k.css(e,t[o],!1,i);return r}return void 0!==n?k.style(e,t,n):k.css(e,t)}),e,t,arguments.length>1)}}),k.Tween=dt,dt.prototype={constructor:dt,init:function(e,t,n,i,a,r){this.elem=e,this.prop=n,this.easing=a||k.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=i,this.unit=r||(k.cssNumber[n]?"":"px")},cur:function(){var e=dt.propHooks[this.prop];return e&&e.get?e.get(this):dt.propHooks._default.get(this)},run:function(e){var t,n=dt.propHooks[this.prop];return this.options.duration?this.pos=t=k.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):dt.propHooks._default.set(this),this}},dt.prototype.init.prototype=dt.prototype,dt.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=k.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){k.fx.step[e.prop]?k.fx.step[e.prop](e):1!==e.elem.nodeType||!k.cssHooks[e.prop]&&null==e.elem.style[it(e.prop)]?e.elem[e.prop]=e.now:k.style(e.elem,e.prop,e.now+e.unit)}}},dt.propHooks.scrollTop=dt.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},k.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},k.fx=dt.prototype.init,k.fx.step={};var ut,pt,ht=/^(?:toggle|show|hide)$/,ft=/queueHooks$/;function gt(){pt&&(!1===b.hidden&&n.requestAnimationFrame?n.requestAnimationFrame(gt):n.setTimeout(gt,k.fx.interval),k.fx.tick())}function mt(){return n.setTimeout((function(){ut=void 0})),ut=Date.now()}function vt(e,t){var n,i=0,a={height:e};for(t=t?1:0;i<4;i+=2-t)a["margin"+(n=he[i])]=a["padding"+n]=e;return t&&(a.opacity=a.width=e),a}function wt(e,t,n){for(var i,a=(bt.tweeners[t]||[]).concat(bt.tweeners["*"]),r=0,o=a.length;r<o;r++)if(i=a[r].call(n,t,e))return i}function bt(e,t,n){var i,a,r=0,o=bt.prefilters.length,s=k.Deferred().always((function(){delete l.elem})),l=function(){if(a)return!1;for(var t=ut||mt(),n=Math.max(0,c.startTime+c.duration-t),i=1-(n/c.duration||0),r=0,o=c.tweens.length;r<o;r++)c.tweens[r].run(i);return s.notifyWith(e,[c,i,n]),i<1&&o?n:(o||s.notifyWith(e,[c,1,0]),s.resolveWith(e,[c]),!1)},c=s.promise({elem:e,props:k.extend({},t),opts:k.extend(!0,{specialEasing:{},easing:k.easing._default},n),originalProperties:t,originalOptions:n,startTime:ut||mt(),duration:n.duration,tweens:[],createTween:function(t,n){var i=k.Tween(e,c.opts,t,n,c.opts.specialEasing[t]||c.opts.easing);return c.tweens.push(i),i},stop:function(t){var n=0,i=t?c.tweens.length:0;if(a)return this;for(a=!0;n<i;n++)c.tweens[n].run(1);return t?(s.notifyWith(e,[c,1,0]),s.resolveWith(e,[c,t])):s.rejectWith(e,[c,t]),this}}),d=c.props;for(!function(e,t){var n,i,a,r,o;for(n in e)if(a=t[i=ie(n)],r=e[n],Array.isArray(r)&&(a=r[1],r=e[n]=r[0]),n!==i&&(e[i]=r,delete e[n]),(o=k.cssHooks[i])&&"expand"in o)for(n in r=o.expand(r),delete e[i],r)n in e||(e[n]=r[n],t[n]=a);else t[i]=a}(d,c.opts.specialEasing);r<o;r++)if(i=bt.prefilters[r].call(c,e,d,c.opts))return v(i.stop)&&(k._queueHooks(c.elem,c.opts.queue).stop=i.stop.bind(i)),i;return k.map(d,wt,c),v(c.opts.start)&&c.opts.start.call(e,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),k.fx.timer(k.extend(l,{elem:e,anim:c,queue:c.opts.queue})),c}k.Animation=k.extend(bt,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return we(n.elem,e,pe.exec(t),n),n}]},tweener:function(e,t){v(e)?(t=e,e=["*"]):e=e.match(U);for(var n,i=0,a=e.length;i<a;i++)n=e[i],bt.tweeners[n]=bt.tweeners[n]||[],bt.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var i,a,r,o,s,l,c,d,u="width"in t||"height"in t,p=this,h={},f=e.style,g=e.nodeType&&ve(e),m=oe.get(e,"fxshow");for(i in n.queue||(null==(o=k._queueHooks(e,"fx")).unqueued&&(o.unqueued=0,s=o.empty.fire,o.empty.fire=function(){o.unqueued||s()}),o.unqueued++,p.always((function(){p.always((function(){o.unqueued--,k.queue(e,"fx").length||o.empty.fire()}))}))),t)if(a=t[i],ht.test(a)){if(delete t[i],r=r||"toggle"===a,a===(g?"hide":"show")){if("show"!==a||!m||void 0===m[i])continue;g=!0}h[i]=m&&m[i]||k.style(e,i)}if((l=!k.isEmptyObject(t))||!k.isEmptyObject(h))for(i in u&&1===e.nodeType&&(n.overflow=[f.overflow,f.overflowX,f.overflowY],null==(c=m&&m.display)&&(c=oe.get(e,"display")),"none"===(d=k.css(e,"display"))&&(c?d=c:(_e([e],!0),c=e.style.display||c,d=k.css(e,"display"),_e([e]))),("inline"===d||"inline-block"===d&&null!=c)&&"none"===k.css(e,"float")&&(l||(p.done((function(){f.display=c})),null==c&&(d=f.display,c="none"===d?"":d)),f.display="inline-block")),n.overflow&&(f.overflow="hidden",p.always((function(){f.overflow=n.overflow[0],f.overflowX=n.overflow[1],f.overflowY=n.overflow[2]}))),l=!1,h)l||(m?"hidden"in m&&(g=m.hidden):m=oe.access(e,"fxshow",{display:c}),r&&(m.hidden=!g),g&&_e([e],!0),p.done((function(){for(i in g||_e([e]),oe.remove(e,"fxshow"),h)k.style(e,i,h[i])}))),l=wt(g?m[i]:0,i,p),i in m||(m[i]=l.start,g&&(l.end=l.start,l.start=0))}],prefilter:function(e,t){t?bt.prefilters.unshift(e):bt.prefilters.push(e)}}),k.speed=function(e,t,n){var i=e&&"object"==typeof e?k.extend({},e):{complete:n||!n&&t||v(e)&&e,duration:e,easing:n&&t||t&&!v(t)&&t};return k.fx.off?i.duration=0:"number"!=typeof i.duration&&(i.duration in k.fx.speeds?i.duration=k.fx.speeds[i.duration]:i.duration=k.fx.speeds._default),null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){v(i.old)&&i.old.call(this),i.queue&&k.dequeue(this,i.queue)},i},k.fn.extend({fadeTo:function(e,t,n,i){return this.filter(ve).css("opacity",0).show().end().animate({opacity:t},e,n,i)},animate:function(e,t,n,i){var a=k.isEmptyObject(e),r=k.speed(t,n,i),o=function(){var t=bt(this,k.extend({},e),r);(a||oe.get(this,"finish"))&&t.stop(!0)};return o.finish=o,a||!1===r.queue?this.each(o):this.queue(r.queue,o)},stop:function(e,t,n){var i=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&this.queue(e||"fx",[]),this.each((function(){var t=!0,a=null!=e&&e+"queueHooks",r=k.timers,o=oe.get(this);if(a)o[a]&&o[a].stop&&i(o[a]);else for(a in o)o[a]&&o[a].stop&&ft.test(a)&&i(o[a]);for(a=r.length;a--;)r[a].elem!==this||null!=e&&r[a].queue!==e||(r[a].anim.stop(n),t=!1,r.splice(a,1));!t&&n||k.dequeue(this,e)}))},finish:function(e){return!1!==e&&(e=e||"fx"),this.each((function(){var t,n=oe.get(this),i=n[e+"queue"],a=n[e+"queueHooks"],r=k.timers,o=i?i.length:0;for(n.finish=!0,k.queue(this,e,[]),a&&a.stop&&a.stop.call(this,!0),t=r.length;t--;)r[t].elem===this&&r[t].queue===e&&(r[t].anim.stop(!0),r.splice(t,1));for(t=0;t<o;t++)i[t]&&i[t].finish&&i[t].finish.call(this);delete n.finish}))}}),k.each(["toggle","show","hide"],(function(e,t){var n=k.fn[t];k.fn[t]=function(e,i,a){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(vt(t,!0),e,i,a)}})),k.each({slideDown:vt("show"),slideUp:vt("hide"),slideToggle:vt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(e,t){k.fn[e]=function(e,n,i){return this.animate(t,e,n,i)}})),k.timers=[],k.fx.tick=function(){var e,t=0,n=k.timers;for(ut=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||k.fx.stop(),ut=void 0},k.fx.timer=function(e){k.timers.push(e),k.fx.start()},k.fx.interval=13,k.fx.start=function(){pt||(pt=!0,gt())},k.fx.stop=function(){pt=null},k.fx.speeds={slow:600,fast:200,_default:400},k.fn.delay=function(e,t){return e=k.fx&&k.fx.speeds[e]||e,t=t||"fx",this.queue(t,(function(t,i){var a=n.setTimeout(t,e);i.stop=function(){n.clearTimeout(a)}}))},function(){var e=b.createElement("input"),t=b.createElement("select").appendChild(b.createElement("option"));e.type="checkbox",m.checkOn=""!==e.value,m.optSelected=t.selected,(e=b.createElement("input")).value="t",e.type="radio",m.radioValue="t"===e.value}();var yt,_t=k.expr.attrHandle;k.fn.extend({attr:function(e,t){return Z(this,k.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each((function(){k.removeAttr(this,e)}))}}),k.extend({attr:function(e,t,n){var i,a,r=e.nodeType;if(3!==r&&8!==r&&2!==r)return void 0===e.getAttribute?k.prop(e,t,n):(1===r&&k.isXMLDoc(e)||(a=k.attrHooks[t.toLowerCase()]||(k.expr.match.bool.test(t)?yt:void 0)),void 0!==n?null===n?void k.removeAttr(e,t):a&&"set"in a&&void 0!==(i=a.set(e,n,t))?i:(e.setAttribute(t,n+""),n):a&&"get"in a&&null!==(i=a.get(e,t))?i:null==(i=k.find.attr(e,t))?void 0:i)},attrHooks:{type:{set:function(e,t){if(!m.radioValue&&"radio"===t&&T(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,i=0,a=t&&t.match(U);if(a&&1===e.nodeType)for(;n=a[i++];)e.removeAttribute(n)}}),yt={set:function(e,t,n){return!1===t?k.removeAttr(e,n):e.setAttribute(n,n),n}},k.each(k.expr.match.bool.source.match(/\w+/g),(function(e,t){var n=_t[t]||k.find.attr;_t[t]=function(e,t,i){var a,r,o=t.toLowerCase();return i||(r=_t[o],_t[o]=a,a=null!=n(e,t,i)?o:null,_t[o]=r),a}}));var St=/^(?:input|select|textarea|button)$/i,xt=/^(?:a|area)$/i;function kt(e){return(e.match(U)||[]).join(" ")}function Ct(e){return e.getAttribute&&e.getAttribute("class")||""}function Tt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(U)||[]}k.fn.extend({prop:function(e,t){return Z(this,k.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each((function(){delete this[k.propFix[e]||e]}))}}),k.extend({prop:function(e,t,n){var i,a,r=e.nodeType;if(3!==r&&8!==r&&2!==r)return 1===r&&k.isXMLDoc(e)||(t=k.propFix[t]||t,a=k.propHooks[t]),void 0!==n?a&&"set"in a&&void 0!==(i=a.set(e,n,t))?i:e[t]=n:a&&"get"in a&&null!==(i=a.get(e,t))?i:e[t]},propHooks:{tabIndex:{get:function(e){var t=k.find.attr(e,"tabindex");return t?parseInt(t,10):St.test(e.nodeName)||xt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),m.optSelected||(k.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),k.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){k.propFix[this.toLowerCase()]=this})),k.fn.extend({addClass:function(e){var t,n,i,a,r,o;return v(e)?this.each((function(t){k(this).addClass(e.call(this,t,Ct(this)))})):(t=Tt(e)).length?this.each((function(){if(i=Ct(this),n=1===this.nodeType&&" "+kt(i)+" "){for(r=0;r<t.length;r++)a=t[r],n.indexOf(" "+a+" ")<0&&(n+=a+" ");o=kt(n),i!==o&&this.setAttribute("class",o)}})):this},removeClass:function(e){var t,n,i,a,r,o;return v(e)?this.each((function(t){k(this).removeClass(e.call(this,t,Ct(this)))})):arguments.length?(t=Tt(e)).length?this.each((function(){if(i=Ct(this),n=1===this.nodeType&&" "+kt(i)+" "){for(r=0;r<t.length;r++)for(a=t[r];n.indexOf(" "+a+" ")>-1;)n=n.replace(" "+a+" "," ");o=kt(n),i!==o&&this.setAttribute("class",o)}})):this:this.attr("class","")},toggleClass:function(e,t){var n,i,a,r,o=typeof e,s="string"===o||Array.isArray(e);return v(e)?this.each((function(n){k(this).toggleClass(e.call(this,n,Ct(this),t),t)})):"boolean"==typeof t&&s?t?this.addClass(e):this.removeClass(e):(n=Tt(e),this.each((function(){if(s)for(r=k(this),a=0;a<n.length;a++)i=n[a],r.hasClass(i)?r.removeClass(i):r.addClass(i);else void 0!==e&&"boolean"!==o||((i=Ct(this))&&oe.set(this,"__className__",i),this.setAttribute&&this.setAttribute("class",i||!1===e?"":oe.get(this,"__className__")||""))})))},hasClass:function(e){var t,n,i=0;for(t=" "+e+" ";n=this[i++];)if(1===n.nodeType&&(" "+kt(Ct(n))+" ").indexOf(t)>-1)return!0;return!1}});var It=/\r/g;k.fn.extend({val:function(e){var t,n,i,a=this[0];return arguments.length?(i=v(e),this.each((function(n){var a;1===this.nodeType&&(null==(a=i?e.call(this,n,k(this).val()):e)?a="":"number"==typeof a?a+="":Array.isArray(a)&&(a=k.map(a,(function(e){return null==e?"":e+""}))),(t=k.valHooks[this.type]||k.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,a,"value")||(this.value=a))}))):a?(t=k.valHooks[a.type]||k.valHooks[a.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(a,"value"))?n:"string"==typeof(n=a.value)?n.replace(It,""):null==n?"":n:void 0}}),k.extend({valHooks:{option:{get:function(e){var t=k.find.attr(e,"value");return null!=t?t:kt(k.text(e))}},select:{get:function(e){var t,n,i,a=e.options,r=e.selectedIndex,o="select-one"===e.type,s=o?null:[],l=o?r+1:a.length;for(i=r<0?l:o?r:0;i<l;i++)if(((n=a[i]).selected||i===r)&&!n.disabled&&(!n.parentNode.disabled||!T(n.parentNode,"optgroup"))){if(t=k(n).val(),o)return t;s.push(t)}return s},set:function(e,t){for(var n,i,a=e.options,r=k.makeArray(t),o=a.length;o--;)((i=a[o]).selected=k.inArray(k.valHooks.option.get(i),r)>-1)&&(n=!0);return n||(e.selectedIndex=-1),r}}}}),k.each(["radio","checkbox"],(function(){k.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=k.inArray(k(e).val(),t)>-1}},m.checkOn||(k.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}));var Dt=n.location,Et={guid:Date.now()},Mt=/\?/;k.parseXML=function(e){var t,i;if(!e||"string"!=typeof e)return null;try{t=(new n.DOMParser).parseFromString(e,"text/xml")}catch(e){}return i=t&&t.getElementsByTagName("parsererror")[0],t&&!i||k.error("Invalid XML: "+(i?k.map(i.childNodes,(function(e){return e.textContent})).join("\n"):e)),t};var At=/^(?:focusinfocus|focusoutblur)$/,Ft=function(e){e.stopPropagation()};k.extend(k.event,{trigger:function(e,t,i,a){var r,o,s,l,c,d,u,p,f=[i||b],g=h.call(e,"type")?e.type:e,m=h.call(e,"namespace")?e.namespace.split("."):[];if(o=p=s=i=i||b,3!==i.nodeType&&8!==i.nodeType&&!At.test(g+k.event.triggered)&&(g.indexOf(".")>-1&&(m=g.split("."),g=m.shift(),m.sort()),c=g.indexOf(":")<0&&"on"+g,(e=e[k.expando]?e:new k.Event(g,"object"==typeof e&&e)).isTrigger=a?2:3,e.namespace=m.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=i),t=null==t?[e]:k.makeArray(t,[e]),u=k.event.special[g]||{},a||!u.trigger||!1!==u.trigger.apply(i,t))){if(!a&&!u.noBubble&&!w(i)){for(l=u.delegateType||g,At.test(l+g)||(o=o.parentNode);o;o=o.parentNode)f.push(o),s=o;s===(i.ownerDocument||b)&&f.push(s.defaultView||s.parentWindow||n)}for(r=0;(o=f[r++])&&!e.isPropagationStopped();)p=o,e.type=r>1?l:u.bindType||g,(d=(oe.get(o,"events")||Object.create(null))[e.type]&&oe.get(o,"handle"))&&d.apply(o,t),(d=c&&o[c])&&d.apply&&ae(o)&&(e.result=d.apply(o,t),!1===e.result&&e.preventDefault());return e.type=g,a||e.isDefaultPrevented()||u._default&&!1!==u._default.apply(f.pop(),t)||!ae(i)||c&&v(i[g])&&!w(i)&&((s=i[c])&&(i[c]=null),k.event.triggered=g,e.isPropagationStopped()&&p.addEventListener(g,Ft),i[g](),e.isPropagationStopped()&&p.removeEventListener(g,Ft),k.event.triggered=void 0,s&&(i[c]=s)),e.result}},simulate:function(e,t,n){var i=k.extend(new k.Event,n,{type:e,isSimulated:!0});k.event.trigger(i,null,t)}}),k.fn.extend({trigger:function(e,t){return this.each((function(){k.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var n=this[0];if(n)return k.event.trigger(e,t,n,!0)}});var Pt=/\[\]$/,Lt=/\r?\n/g,Nt=/^(?:submit|button|image|reset|file)$/i,Ot=/^(?:input|select|textarea|keygen)/i;function Bt(e,t,n,i){var a;if(Array.isArray(t))k.each(t,(function(t,a){n||Pt.test(e)?i(e,a):Bt(e+"["+("object"==typeof a&&null!=a?t:"")+"]",a,n,i)}));else if(n||"object"!==S(t))i(e,t);else for(a in t)Bt(e+"["+a+"]",t[a],n,i)}k.param=function(e,t){var n,i=[],a=function(e,t){var n=v(t)?t():t;i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!k.isPlainObject(e))k.each(e,(function(){a(this.name,this.value)}));else for(n in e)Bt(n,e[n],t,a);return i.join("&")},k.fn.extend({serialize:function(){return k.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=k.prop(this,"elements");return e?k.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!k(this).is(":disabled")&&Ot.test(this.nodeName)&&!Nt.test(e)&&(this.checked||!ke.test(e))})).map((function(e,t){var n=k(this).val();return null==n?null:Array.isArray(n)?k.map(n,(function(e){return{name:t.name,value:e.replace(Lt,"\r\n")}})):{name:t.name,value:n.replace(Lt,"\r\n")}})).get()}});var jt=/%20/g,Ht=/#.*$/,zt=/([?&])_=[^&]*/,$t=/^(.*?):[ \t]*([^\r\n]*)$/gm,Gt=/^(?:GET|HEAD)$/,Rt=/^\/\//,qt={},Wt={},Ut="*/".concat("*"),Vt=b.createElement("a");function Xt(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var i,a=0,r=t.toLowerCase().match(U)||[];if(v(n))for(;i=r[a++];)"+"===i[0]?(i=i.slice(1)||"*",(e[i]=e[i]||[]).unshift(n)):(e[i]=e[i]||[]).push(n)}}function Yt(e,t,n,i){var a={},r=e===Wt;function o(s){var l;return a[s]=!0,k.each(e[s]||[],(function(e,s){var c=s(t,n,i);return"string"!=typeof c||r||a[c]?r?!(l=c):void 0:(t.dataTypes.unshift(c),o(c),!1)})),l}return o(t.dataTypes[0])||!a["*"]&&o("*")}function Jt(e,t){var n,i,a=k.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((a[n]?e:i||(i={}))[n]=t[n]);return i&&k.extend(!0,e,i),e}Vt.href=Dt.href,k.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Dt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Dt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Ut,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":k.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Jt(Jt(e,k.ajaxSettings),t):Jt(k.ajaxSettings,e)},ajaxPrefilter:Xt(qt),ajaxTransport:Xt(Wt),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var i,a,r,o,s,l,c,d,u,p,h=k.ajaxSetup({},t),f=h.context||h,g=h.context&&(f.nodeType||f.jquery)?k(f):k.event,m=k.Deferred(),v=k.Callbacks("once memory"),w=h.statusCode||{},y={},_={},S="canceled",x={readyState:0,getResponseHeader:function(e){var t;if(c){if(!o)for(o={};t=$t.exec(r);)o[t[1].toLowerCase()+" "]=(o[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=o[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return c?r:null},setRequestHeader:function(e,t){return null==c&&(e=_[e.toLowerCase()]=_[e.toLowerCase()]||e,y[e]=t),this},overrideMimeType:function(e){return null==c&&(h.mimeType=e),this},statusCode:function(e){var t;if(e)if(c)x.always(e[x.status]);else for(t in e)w[t]=[w[t],e[t]];return this},abort:function(e){var t=e||S;return i&&i.abort(t),C(0,t),this}};if(m.promise(x),h.url=((e||h.url||Dt.href)+"").replace(Rt,Dt.protocol+"//"),h.type=t.method||t.type||h.method||h.type,h.dataTypes=(h.dataType||"*").toLowerCase().match(U)||[""],null==h.crossDomain){l=b.createElement("a");try{l.href=h.url,l.href=l.href,h.crossDomain=Vt.protocol+"//"+Vt.host!=l.protocol+"//"+l.host}catch(e){h.crossDomain=!0}}if(h.data&&h.processData&&"string"!=typeof h.data&&(h.data=k.param(h.data,h.traditional)),Yt(qt,h,t,x),c)return x;for(u in(d=k.event&&h.global)&&0==k.active++&&k.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!Gt.test(h.type),a=h.url.replace(Ht,""),h.hasContent?h.data&&h.processData&&0===(h.contentType||"").indexOf("application/x-www-form-urlencoded")&&(h.data=h.data.replace(jt,"+")):(p=h.url.slice(a.length),h.data&&(h.processData||"string"==typeof h.data)&&(a+=(Mt.test(a)?"&":"?")+h.data,delete h.data),!1===h.cache&&(a=a.replace(zt,"$1"),p=(Mt.test(a)?"&":"?")+"_="+Et.guid+++p),h.url=a+p),h.ifModified&&(k.lastModified[a]&&x.setRequestHeader("If-Modified-Since",k.lastModified[a]),k.etag[a]&&x.setRequestHeader("If-None-Match",k.etag[a])),(h.data&&h.hasContent&&!1!==h.contentType||t.contentType)&&x.setRequestHeader("Content-Type",h.contentType),x.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+Ut+"; q=0.01":""):h.accepts["*"]),h.headers)x.setRequestHeader(u,h.headers[u]);if(h.beforeSend&&(!1===h.beforeSend.call(f,x,h)||c))return x.abort();if(S="abort",v.add(h.complete),x.done(h.success),x.fail(h.error),i=Yt(Wt,h,t,x)){if(x.readyState=1,d&&g.trigger("ajaxSend",[x,h]),c)return x;h.async&&h.timeout>0&&(s=n.setTimeout((function(){x.abort("timeout")}),h.timeout));try{c=!1,i.send(y,C)}catch(e){if(c)throw e;C(-1,e)}}else C(-1,"No Transport");function C(e,t,o,l){var u,p,b,y,_,S=t;c||(c=!0,s&&n.clearTimeout(s),i=void 0,r=l||"",x.readyState=e>0?4:0,u=e>=200&&e<300||304===e,o&&(y=function(e,t,n){for(var i,a,r,o,s=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===i&&(i=e.mimeType||t.getResponseHeader("Content-Type"));if(i)for(a in s)if(s[a]&&s[a].test(i)){l.unshift(a);break}if(l[0]in n)r=l[0];else{for(a in n){if(!l[0]||e.converters[a+" "+l[0]]){r=a;break}o||(o=a)}r=r||o}if(r)return r!==l[0]&&l.unshift(r),n[r]}(h,x,o)),!u&&k.inArray("script",h.dataTypes)>-1&&k.inArray("json",h.dataTypes)<0&&(h.converters["text script"]=function(){}),y=function(e,t,n,i){var a,r,o,s,l,c={},d=e.dataTypes.slice();if(d[1])for(o in e.converters)c[o.toLowerCase()]=e.converters[o];for(r=d.shift();r;)if(e.responseFields[r]&&(n[e.responseFields[r]]=t),!l&&i&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=r,r=d.shift())if("*"===r)r=l;else if("*"!==l&&l!==r){if(!(o=c[l+" "+r]||c["* "+r]))for(a in c)if((s=a.split(" "))[1]===r&&(o=c[l+" "+s[0]]||c["* "+s[0]])){!0===o?o=c[a]:!0!==c[a]&&(r=s[0],d.unshift(s[1]));break}if(!0!==o)if(o&&e.throws)t=o(t);else try{t=o(t)}catch(e){return{state:"parsererror",error:o?e:"No conversion from "+l+" to "+r}}}return{state:"success",data:t}}(h,y,x,u),u?(h.ifModified&&((_=x.getResponseHeader("Last-Modified"))&&(k.lastModified[a]=_),(_=x.getResponseHeader("etag"))&&(k.etag[a]=_)),204===e||"HEAD"===h.type?S="nocontent":304===e?S="notmodified":(S=y.state,p=y.data,u=!(b=y.error))):(b=S,!e&&S||(S="error",e<0&&(e=0))),x.status=e,x.statusText=(t||S)+"",u?m.resolveWith(f,[p,S,x]):m.rejectWith(f,[x,S,b]),x.statusCode(w),w=void 0,d&&g.trigger(u?"ajaxSuccess":"ajaxError",[x,h,u?p:b]),v.fireWith(f,[x,S]),d&&(g.trigger("ajaxComplete",[x,h]),--k.active||k.event.trigger("ajaxStop")))}return x},getJSON:function(e,t,n){return k.get(e,t,n,"json")},getScript:function(e,t){return k.get(e,void 0,t,"script")}}),k.each(["get","post"],(function(e,t){k[t]=function(e,n,i,a){return v(n)&&(a=a||i,i=n,n=void 0),k.ajax(k.extend({url:e,type:t,dataType:a,data:n,success:i},k.isPlainObject(e)&&e))}})),k.ajaxPrefilter((function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")})),k._evalUrl=function(e,t,n){return k.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){k.globalEval(e,t,n)}})},k.fn.extend({wrapAll:function(e){var t;return this[0]&&(v(e)&&(e=e.call(this[0])),t=k(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e})).append(this)),this},wrapInner:function(e){return v(e)?this.each((function(t){k(this).wrapInner(e.call(this,t))})):this.each((function(){var t=k(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)}))},wrap:function(e){var t=v(e);return this.each((function(n){k(this).wrapAll(t?e.call(this,n):e)}))},unwrap:function(e){return this.parent(e).not("body").each((function(){k(this).replaceWith(this.childNodes)})),this}}),k.expr.pseudos.hidden=function(e){return!k.expr.pseudos.visible(e)},k.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},k.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(e){}};var Kt={0:200,1223:204},Qt=k.ajaxSettings.xhr();m.cors=!!Qt&&"withCredentials"in Qt,m.ajax=Qt=!!Qt,k.ajaxTransport((function(e){var t,i;if(m.cors||Qt&&!e.crossDomain)return{send:function(a,r){var o,s=e.xhr();if(s.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(o in e.xhrFields)s[o]=e.xhrFields[o];for(o in e.mimeType&&s.overrideMimeType&&s.overrideMimeType(e.mimeType),e.crossDomain||a["X-Requested-With"]||(a["X-Requested-With"]="XMLHttpRequest"),a)s.setRequestHeader(o,a[o]);t=function(e){return function(){t&&(t=i=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!=typeof s.status?r(0,"error"):r(s.status,s.statusText):r(Kt[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=t(),i=s.onerror=s.ontimeout=t("error"),void 0!==s.onabort?s.onabort=i:s.onreadystatechange=function(){4===s.readyState&&n.setTimeout((function(){t&&i()}))},t=t("abort");try{s.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}})),k.ajaxPrefilter((function(e){e.crossDomain&&(e.contents.script=!1)})),k.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return k.globalEval(e),e}}}),k.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),k.ajaxTransport("script",(function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(i,a){t=k("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&a("error"===e.type?404:200,e.type)}),b.head.appendChild(t[0])},abort:function(){n&&n()}}}));var Zt,en=[],tn=/(=)\?(?=&|$)|\?\?/;k.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=en.pop()||k.expando+"_"+Et.guid++;return this[e]=!0,e}}),k.ajaxPrefilter("json jsonp",(function(e,t,i){var a,r,o,s=!1!==e.jsonp&&(tn.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&tn.test(e.data)&&"data");if(s||"jsonp"===e.dataTypes[0])return a=e.jsonpCallback=v(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(tn,"$1"+a):!1!==e.jsonp&&(e.url+=(Mt.test(e.url)?"&":"?")+e.jsonp+"="+a),e.converters["script json"]=function(){return o||k.error(a+" was not called"),o[0]},e.dataTypes[0]="json",r=n[a],n[a]=function(){o=arguments},i.always((function(){void 0===r?k(n).removeProp(a):n[a]=r,e[a]&&(e.jsonpCallback=t.jsonpCallback,en.push(a)),o&&v(r)&&r(o[0]),o=r=void 0})),"script"})),m.createHTMLDocument=((Zt=b.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Zt.childNodes.length),k.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(m.createHTMLDocument?((i=(t=b.implementation.createHTMLDocument("")).createElement("base")).href=b.location.href,t.head.appendChild(i)):t=b),r=!n&&[],(a=H.exec(e))?[t.createElement(a[1])]:(a=Ae([e],t,r),r&&r.length&&k(r).remove(),k.merge([],a.childNodes)));var i,a,r},k.fn.load=function(e,t,n){var i,a,r,o=this,s=e.indexOf(" ");return s>-1&&(i=kt(e.slice(s)),e=e.slice(0,s)),v(t)?(n=t,t=void 0):t&&"object"==typeof t&&(a="POST"),o.length>0&&k.ajax({url:e,type:a||"GET",dataType:"html",data:t}).done((function(e){r=arguments,o.html(i?k("<div>").append(k.parseHTML(e)).find(i):e)})).always(n&&function(e,t){o.each((function(){n.apply(this,r||[e.responseText,t,e])}))}),this},k.expr.pseudos.animated=function(e){return k.grep(k.timers,(function(t){return e===t.elem})).length},k.offset={setOffset:function(e,t,n){var i,a,r,o,s,l,c=k.css(e,"position"),d=k(e),u={};"static"===c&&(e.style.position="relative"),s=d.offset(),r=k.css(e,"top"),l=k.css(e,"left"),("absolute"===c||"fixed"===c)&&(r+l).indexOf("auto")>-1?(o=(i=d.position()).top,a=i.left):(o=parseFloat(r)||0,a=parseFloat(l)||0),v(t)&&(t=t.call(e,n,k.extend({},s))),null!=t.top&&(u.top=t.top-s.top+o),null!=t.left&&(u.left=t.left-s.left+a),"using"in t?t.using.call(e,u):d.css(u)}},k.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each((function(t){k.offset.setOffset(this,e,t)}));var t,n,i=this[0];return i?i.getClientRects().length?(t=i.getBoundingClientRect(),n=i.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,i=this[0],a={top:0,left:0};if("fixed"===k.css(i,"position"))t=i.getBoundingClientRect();else{for(t=this.offset(),n=i.ownerDocument,e=i.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===k.css(e,"position");)e=e.parentNode;e&&e!==i&&1===e.nodeType&&((a=k(e).offset()).top+=k.css(e,"borderTopWidth",!0),a.left+=k.css(e,"borderLeftWidth",!0))}return{top:t.top-a.top-k.css(i,"marginTop",!0),left:t.left-a.left-k.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent;e&&"static"===k.css(e,"position");)e=e.offsetParent;return e||fe}))}}),k.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var n="pageYOffset"===t;k.fn[e]=function(i){return Z(this,(function(e,i,a){var r;if(w(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===a)return r?r[t]:e[i];r?r.scrollTo(n?r.pageXOffset:a,n?a:r.pageYOffset):e[i]=a}),e,i,arguments.length)}})),k.each(["top","left"],(function(e,t){k.cssHooks[t]=Ze(m.pixelPosition,(function(e,n){if(n)return n=Qe(e,t),Ve.test(n)?k(e).position()[t]+"px":n}))})),k.each({Height:"height",Width:"width"},(function(e,t){k.each({padding:"inner"+e,content:t,"":"outer"+e},(function(n,i){k.fn[i]=function(a,r){var o=arguments.length&&(n||"boolean"!=typeof a),s=n||(!0===a||!0===r?"margin":"border");return Z(this,(function(t,n,a){var r;return w(t)?0===i.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(r=t.documentElement,Math.max(t.body["scroll"+e],r["scroll"+e],t.body["offset"+e],r["offset"+e],r["client"+e])):void 0===a?k.css(t,n,s):k.style(t,n,a,s)}),t,o?a:void 0,o)}}))})),k.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(e,t){k.fn[t]=function(e){return this.on(t,e)}})),k.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,i){return this.on(t,e,n,i)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),k.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(e,t){k.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}));var nn=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;k.proxy=function(e,t){var n,i,a;if("string"==typeof t&&(n=e[t],t=e,e=n),v(e))return i=s.call(arguments,2),(a=function(){return e.apply(t||this,i.concat(s.call(arguments)))}).guid=e.guid=e.guid||k.guid++,a},k.holdReady=function(e){e?k.readyWait++:k.ready(!0)},k.isArray=Array.isArray,k.parseJSON=JSON.parse,k.nodeName=T,k.isFunction=v,k.isWindow=w,k.camelCase=ie,k.type=S,k.now=Date.now,k.isNumeric=function(e){var t=k.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},k.trim=function(e){return null==e?"":(e+"").replace(nn,"$1")},void 0===(i=function(){return k}.apply(t,[]))||(e.exports=i);var an=n.jQuery,rn=n.$;return k.noConflict=function(e){return n.$===k&&(n.$=rn),e&&n.jQuery===k&&(n.jQuery=an),k},void 0===a&&(n.jQuery=n.$=k),k}))},function(e,t,n){"use strict";(function(t){var i,a,r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=n(41),s=(n(1).type,n(162).default),l={};function c(){return s.int(1,3)}function d(){return"se"+c()+".360simg.com"}l.ntpApis=new ChromeWebUIApis({methods:"screenShot,hideScreenShot,getCurrentURLS,getCustomData,setCustomData,getMostVisitedData,saveMostVisitedURLs,captureWebpage,blacklistURLFromMostVisited,onClickThumbnail,openUrl,sendRset,getSmallThumbnail,getBigThumbnail,GetWallpaperShowState,GetBoxShowState,getdefaultsearchengine,GetNewTabSyncInfo,SetNewTabSyncInfo,OpenFile",onerror:function(e){},onbefore:function(e){},onafter:function(e){}}),l.api={GetSID:function(){if(l.api.sid)return l.api.sid;try{return l.api.sid=external.GetSID(window),l.api.sid}catch(e){return""}},GetMID:function(){return l.api.mid||(l.api.mid=l.api.GetSID()&&external.GetMID(l.api.sid)),l.api.mid},GetMID2:function(e){l.api.mid2?e&&e(l.api.mid2):external.AppCmd(l.api.GetSID(),"","GetMID2","","",(function(t,n){l.api.mid2=n,e&&e(l.api.mid2)}))},GetVersion:function(){return l.api.ver||(l.api.ver=l.api.GetSID()&&external.GetVersion(l.api.sid)),l.api.ver},MakeUID:function(e,t){var n,i,a="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""),r=[];if(t=t||a.length,e)for(n=0;n<e;n++)r[n]=a[0|Math.random()*t];else for(r[8]=r[13]=r[18]=r[23]="-",r[14]="4",n=0;n<36;n++)r[n]||(i=0|16*Math.random(),r[n]=a[19==n?3&i|8:i]);return r.join("")},mv_uid:function(){function e(e){var t,n=1,i=0;if(e)for(n=0,t=e.length-1;t>=0;t--)n=0!=(i=266338304&(n=(n<<6&268435455)+(i=e.charCodeAt(t))+(i<<14)))?n^i>>21:n;return n}return(""+e(window.location.href)+e(document.domain)+(new Date-0)+Math.floor(1e3*Math.random())).substr(0,32)}(),getAliveTime:function(e){try{var t=!1,n=null;external.AppCmd(external.GetSID(window),"","GetAliveTime","","",(function(i,a){console.log("客户端 GetAliveTime 接口数据: ",i,a),t=!0,clearTimeout(n),i&&1==i?e&&e(a):e&&e("1000")})),n=setTimeout((function(){t||e&&e("1000")}),200)}catch(t){e&&e("1000")}},getSlimmingBagInfo:function(e){try{var t=!1,n=null;external.AppCmd(l.api.GetSID(),"","getSlimmingBagInfo","","",(function(i,a){t=!0,clearTimeout(n),e(i,a)})),n=setTimeout((function(){t||e(0,{})}),50)}catch(t){e(0,{})}},getLoginState:function(e){try{external.AppCmd(external.GetSID(window),"loginenrol","IsLogin","","",(function(t,n){0==t&&1==n?e&&e(!0):e&&e(!1)}))}catch(t){e&&e(!1)}},getBigMemberVIP:function(e){try{external.AppCmd(external.GetSID(window),"AiMember","getMemberInfo","","",(function(t,n){0==t?(n=JSON.parse(n),e&&e(n&&Number(n.isvip))):e&&e(!1)}))}catch(t){e&&e(!1)}},getLoginQT:function(e){try{var t=!1,n=null;external.AppCmd(external.GetSID(window),"loginenrol","GetLoginSection","","",(function(i,a){t=!0,clearTimeout(n);var r=a.split("\n"),o=void 0,s=void 0;2==r.length&&(o=decodeURIComponent(r[0].trim().substr(2)),s=decodeURIComponent(r[1].trim().substr(2))),o||s?e&&e({Q:o,T:s}):e&&e({})})),n=setTimeout((function(){t||e&&e({})}),200)}catch(t){e&&e({})}},login:function(e){try{e=e||"",external.AppCmd(external.GetSID(window),"loginenrol","ReloginByManual","config",e||"newtab",(function(e,t){console.log("**********"),console.log(e,t)}))}catch(e){}},logOut:function(e){try{external.AppCmd(external.GetSID(window),"loginenrol","Logout","config","",(function(t,n){e&&e({code:t,msg:n})}))}catch(t){e&&e({})}},getOpenedURLs:function(e){try{external.AppCmd(external.GetSID(window),"","getOpenedURLs","","",(function(t,n){e&&e(n?JSON.parse(n):[])}))}catch(t){e&&e([])}},getUserLS:function(e){try{var t=!1,n=null;external.AppCmd(external.GetSID(window),"","GetSearchChannel","","",(function(i,a){console.log("客户端 GetSearchChannel 接口数据: ",i,a),t=!0,clearTimeout(n),e&&e(a)})),n=setTimeout((function(){t||e&&e("")}),200)}catch(t){e&&e("")}}},l.cookie={get:function(e){var t=e+"=",n=document.cookie.split(";");console.log(n);for(var i=0;i<n.length;i++){var a=n[i].trim();if(0==a.indexOf(t))return a.substring(t.length,a.length)}return""},set:function(e,t,n){var i=new Date;i.setTime(i.getTime()+24*n*60*60*1e3);var a="expires="+i.toGMTString();console.log(e,t,n),document.cookie=e+"="+t+"; "+a;var r=e+"="+t+"; "+a;console.log(document.cookie,r)}},l.storage={get:function(e){try{return JSON.parse(localStorage[e]||"{}")}catch(e){return{}}},set:function(e,t,n){var i=this.get(e);i[t]=n,this.setData(e,i)},getData:function(e){try{return JSON.parse(localStorage[e]||"")}catch(e){return""}},setData:function(e,t){try{localStorage[e]=JSON.stringify(t)}catch(n){console.log(e,t)}}},l.storageTime={timeLine:function(e){var t=l.storage.get("todayTimeLine"),n=new Date(new Date((new Date).toLocaleDateString()).getTime()+864e5-1).getTime(),i={timeType:n};t?l.storage.set("todayTimeLine",e,n):l.storage.setData("todayTimeLine",i)},timeCompare:function(e){var t=(new Date).getTime(),n=l.storage.get("todayTimeLine")[e];return!(n&&t<n)},dayCountStamp:function(e){var t=new Date;return t.setDate(t.getDate()+e),t.getTime()},daysLine:function(e,t){var n={dayType:t},i=t;l.storage.get("daysTimeLine")?l.storage.set("daysTimeLine",e,i):l.storage.setData("daysTimeLine",n)},daysCompare:function(e,t){var n=l.storage.get("daysTimeLine")[e],i=(new Date).getTime()-n,a=Math.floor(i/864e5);return!(n&&t>a)}},l.DC=(i="__ajax_cache",{storage:a={get:function(e){try{return JSON.parse(localStorage[e]||"{}")}catch(e){return{}}},set:function(e,t){localStorage[e]=JSON.stringify(t)},getCache:function(e,t){var n=a.get(i)[e];if(n){t=void 0===t?36e5:t;var r=Date.now()-n.expires;if(!(r<0||r>t)&&n.data)return n.data}return null},setCache:function(e,t){var n=a.get(i);n[e]={data:t,expires:Date.now()},a.set(i,n)}},get:function(e,n,i,r,o,s,l){var c;(c=a.getCache(e,r))?!1!==o&&i(c):t.ajax({url:e,data:n,dataType:"jsonp",success:function(t,n){a.setCache(e,t),i(t)},error:function(t,n,r){l&&(c=a.getCache(e,Number.MAX_VALUE))?i(c):s&&s(t,n,r)}})}}),l.GetQueryCookie=function(e,t){var n=new RegExp("(^|&)"+e+"=([^&]*)(&|$)"),i=t.substr(1).match(n);return null!=i?i[2]:null},l.ajaxGlobal=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"GET",a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"json";return new Promise((function(r,o){var s={dataType:a,type:i,url:e,data:n,success:function(e){r(e)},error:function(e,t,n){r({status:e.status})}};"POST"==i?(s.contentType=!1,s.processData=!1):s.jsonp="cb",t.ajax(s)}))},l.ScreenShot={capture:function(e){},safeHide:function(){var e=l.ScreenShot;setTimeout((function(){e._hideAndCapture()}),1e3)},hideAndCapture:function(e,t,n){var i=l.ScreenShot;l.storage.get("blank_page_options")["is-blank-page"]&&(t=!0),t&&(this.firstPageRenered=!0),this.setWallpapered=!0,!this.hideScreenShoted&&this.firstPageRenered&&this.setWallpapered?(this.hideScreenShoted=!0,i._hideAndCapture(e)):i.capture(e)},_hideAndCapture:function(e){this.triggerHideScreenShot||(this.triggerHideScreenShot=!0,document.body.style.opacity=1,setTimeout((function(){l.ntpApis.hideScreenShot(0,e),l.ScreenShot.capture(e)}),200),setTimeout((function(){t(window).trigger("newpages:firstPageOnLoad"),window.newpagesFirstPageOnLoad=!0})))}},l.StringH={byteLen:function(e){return(e||"").replace(/[^\x00-\xff]/g,"--").length},subByte:function(e,t,n){return l.StringH.byteLen(e)<=t?e:(n=void 0===n?"...":n,t-=l.StringH.byteLen(n),e.substr(0,t).replace(/([^\x00-\xff])/g,"$1 ").substr(0,t).replace(/[^\x00-\xff]$/,"").replace(/([^\x00-\xff]) /g,"$1")+n)}},l.filterHtml=function(e){return(e=(e=(e||"").toString()).replace(/"/g,"&quot;")).replace(/<[^>]*>/g,"")},l.htmlEncode=function(e){var t=document.createElement("div"),n=document.createTextNode(e);t.appendChild(n);var i=t.innerHTML;return i=i.replace(/"/g,"&quot;")},l.checkUrlProtocol=function(e){return!e||"http://"!=e.substr(0,7)&&"https://"!=e.substr(0,8)&&"ftp://"!=e.substr(0,6)&&"ftps://"!=e.substr(0,7)&&"file://"!=e.substr(0,7)?"":e.replace(/^https?:\/\/hao.360.cn/,"https://hao.360.com")},l.getUrlDomain=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(!e||!e.trim())return"";var t=(e=e.split("?")[0]).split("/"),n=e.indexOf("http")>-1?t[2]:t[0];return n||e},l.openUrl=function(e){setTimeout((function(){l.ntpApis.openUrl(e,1,0,0)}))},l.GetQueryString=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:location.href,t=arguments[1];e=e.indexOf("?")>-1?e.split("?")[1]:e;var n=new RegExp("(^|&)"+t+"=([^&]*)(&|$)"),i=e.match(n);return null!=i?decodeURIComponent(i[2]):null},l.addChannel=function(e,t,n){if(e.indexOf(t+"=")>0){var i=l.GetQueryString(e,t)||"";e=e.replace(t+"="+encodeURIComponent(i),t+"="+n)}else e=/\?/i.test(e)?e+"&"+t+"="+n:e+"?"+t+"="+n;return e},l.quickSort=function(e,t,n){if(e.length<=1)return e;var i=Math.floor(e.length/2),a=e.splice(i,1)[0],r=t?a[t]:a;r=n?parseInt(r):r;for(var o=[],s=[],c=0;c<e.length;c++){var d=t?e[c][t]:e[c];(d=n?parseInt(d):d)<r?o.push(e[c]):s.push(e[c])}return l.quickSort(o,t,n).concat([a],l.quickSort(s,t,n))},l.getSwitchMode=function(e){return t('.mode-switch a[data-mode="'+e+'"]')},l.Stat={init:function(){this.allPV(),this.bindSoHotwordClickPV(),this.bindWallpaperClickPV(),t(".wrap-dial").is(":visible")&&this.screenPV(this.getScreen())},allPV:function(){this.send("40.7042.gif"),l.storage.get("blank_page_options")["is-blank-page"]||this.send("472.9031.gif"),null!=loadTimeData.data.AddressNewStyle&&(1==loadTimeData.data.AddressNewStyle?this.send("515.1815.gif"):this.send("515.4158.gif"))},searchPV:function(){this.send("41.1301.gif")},getScreen:function(){var e;try{e=t(".sliders>a.selected").attr("class").replace("selected","").replace(/\s+/g,"")}catch(e){}return e},screenPV:function(e){var t;switch(e){case"mosts":t="472.587.gif";break;case"customs":t="472.6958.gif"}t&&this.send(t)},bindSoHotwordClickPV:function(){var e=this;t(document).delegate(".so-hotword a[href]","click",(function(){var n=void 0;if(/^ad_/.test(t(this).data("from")))n="357.7519.gif";else{var i="";switch(localStorage.getItem("flowMode")){case"newsflow_a":i="1579.6171.gif";break;case"newsflow_b":i="1579.7079.gif";break;case"newsflow_c":i="1579.8724.gif";break;case"newsflow_d":i="1579.2338.gif"}i&&l.Stat.sendFlow(i,{_referer:"search"}),n="357.4373.gif"}e.send(n)}))},bindWallpaperClickPV:function(){var e=this;t(document).delegate(".wallpaper-push-links a.btn[href], .wallpaper-push-links a.img[href]","click",(function(){e.send("388.6430.gif"),e.send("514.7670.gif"),""!=t(this).data("imptk")&&"undefined"!=t(this).data("imptk")||e.send("758.8320.gif")}))},sendFlow:function(e,t){if("true"!==localStorage.getItem("triggerSwitched")){var n=[];if("[object String]"==Object.prototype.toString.call(e))n.push(e);else{if("[object Array]"!=Object.prototype.toString.call(e))return;n=e}n.forEach((function(e){var n="";if(t&&"object"==(void 0===t?"undefined":r(t)))for(var i in t)n+=i+"="+t[i]+"&";(new Image).src="https://dd.browser.360.cn/static/a/"+e+"?"+n+"mid="+l.api.GetMID()+"&"+Date.now()+Math.random().toString().replace("0.","").substr(0,10)}))}},send:function(e,t){var n=[];if("[object String]"==Object.prototype.toString.call(e))n.push(e);else{if("[object Array]"!=Object.prototype.toString.call(e))return;n=e}n.forEach((function(e){var n="";if(t&&"object"==(void 0===t?"undefined":r(t)))for(var i in t)n+=i+"="+t[i]+"&";(new Image).src="https://dd.browser.360.cn/static/a/"+e+"?"+n+"mid="+l.api.GetMID()+"&"+Date.now()+Math.random().toString().replace("0.","").substr(0,10)}))},setLog:function(e){if(e){var t=[];if("[object String]"==Object.prototype.toString.call(e))t=e.split(",");else{if("[object Array]"!=Object.prototype.toString.call(e))return;t=e}for(var n=0;n<t.length;n++)t[n]&&"undefined"!=t[n]&&((new Image).src=t[n])}}},l.replaceMacro=function(e,t){return e=(e=(e=(e=(e=(e=e.replace("__EVENT_TIME_START__",t.mousedownTime)).replace("__EVENT_TIME_END__",t.mouseupTime)).replace("__ADSPACE_W__",t.width?Math.floor(t.width):"0")).replace("__ADSPACE_H__",t.height?Math.floor(t.height):"0")).replace("__OFFSET_X__",t.offsetX?Math.floor(t.offsetX):"0")).replace("__OFFSET_Y__",t.offsetY?Math.floor(t.offsetY):"0")},l.getQueryObject=function(e){var t=(e=null==e?window.location.href:e).substring(e.lastIndexOf("?")+1),n={};return t.replace(/([^?&=]+)=([^?&=]*)/g,(function(e,t,i){var a=decodeURIComponent(t),r=decodeURIComponent(i);return r=String(r),n[a]=r,e})),n},l.parseParam=function(e,t,n){if(null==e)return"";var i="",a=void 0===e?"undefined":r(e);if("string"==a||"number"==a||"boolean"==a)i+="&"+t+"="+(null==n||n?encodeURIComponent(e):e);else for(var o in e){var s=null==t?o:t+(e instanceof Array?"["+o+"]":"."+o);i+=l.parseParam(e[o],s,n)}return i},l.getTimeFromNow=function(e){var t=(Date.now()-e)/1e3;return t<60?"刚刚更新":t<3600?Math.floor(t/60)+" 分钟前更新":t<86400?Math.floor(t/3600)+" 小时前更新":t<604800?Math.floor(t/86400)+" 天前更新":t<2592e3?Math.floor(t/604800)+" 周前更新":">1个月前更新"},l.getTimeFromNow2=function(e){var t=(Date.now()-e)/1e3;return t<60?"刚刚":t<3600?Math.floor(t/60)+"分钟前":t<86400?Math.floor(t/3600)+"小时前":t<604800?Math.floor(t/86400)+"天前":t<2592e3?Math.floor(t/604800)+"周前":">1个月前"},l.setImgUrl=function(e,t){t=t||"";var n=(e=e||"").match(/^(?:([A-Za-z]+):)?(\/{0,3})([0-9.\-A-Za-z]+)(?::(\d+))?(?:\/([^?#]*))?(?:\?([^#]*))?(?:#(.*))?$/)||[],i=n[5]&&n[5].split("/"),a=i&&i[1]||"";return/^[0-9_]+$/.test(a)?e.replace(a,t):e},l.cutImg=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"160_90_",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"video",i=n+"/"+t;return e?e.replace(/(p\d*)\.(ssl\.)?(qhimg(s4)?)\.com\/(\w{2,}\/\d*_\d*_\d*\/)*/gi,d()+"/"+i+"/"):""},l.replaceImgHost=function(e){return e=(e=e.replace(/p\d*(\.ssl)?\.(qhimg|qhmsg)\.com/gi,(function(){return d()}))).replace(/s\d*(\.ssl)?\.(qhres2|qhres|qhimg)\.com/gi,(function(){return"bs"+c()+".360sres.com"}))},l.isNewer=function(e,t){for(var n=e.split("."),i=t.split("."),a=Math.max(n.length,i.length),r=0;r<a;r++){var o=parseInt(n[r])||0,s=parseInt(i[r])||0;if(o>s)return!0;if(o<s)return!1}return!0},l.isBigger=function(e,t){for(var n=e.split("."),i=t.split("."),a=Math.max(n.length,i.length),r=0,o=0;o<a;o++){var s=parseInt(n[o])||0,l=parseInt(i[o])||0;if(s>l)return!0;if(s<l)return!1;if(s==l&&(r+=1)==a)return!1}return!0},l.formatNum=function(e){return(e||0).toString().replace(/(\d)(?=(?:\d{3})+$)/g,"$1,")},l.getRandomNum=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments[1];return Math.floor(Math.random()*(t-e+1)+e)},l.customizeLog=function(e,t,n){},l.puvDot=function(e){t.ajax({url:"https://puv.tt.browser.360.cn",type:"get",dataType:"jsonp",data:{p:e.p||1,s:e.s||11,n:e.n||"",item_id:e.item_id||"",item_name:e.item_name||"",item_v:l.api.GetVersion(),v:e.v||"",mid:l.api.GetMID(),src:e.type||"",cnt:e.cnt||""}})},l.getOffset=function(e,t,n){var i=e.getBoundingClientRect();return{x:parseInt(t-i.left),y:parseInt(n-i.top)}},l.log=function(){localStorage.getItem("_newpages_log")},l.isInDate=function(e){if(t.isArray(e)){var n=(new Date).getTime(),i=u(e[0])||Number.MAX_VALUE,a=u(e[1])||Number.MIN_VALUE;if(n>=i&&n<a)return!0}return!1};var u=function(e){return(e.indexOf(":")>-1?new Date(e).getTime():new Date(e).getTimeUTC())||""},p={};l.sendEventPMPShowStat=function(e){!p[e.showid]&&e.imptk&&(p[e.showid]=!0,l.Stat.setLog(e.imptk.join(",")),e.imparg&&l.Stat.setLog(e.impurl+e.imparg))},l.postIframeMsg=function(e,t){e&&document.getElementById("cube-iframe").contentWindow.postMessage({type:e,value:t||""},"*")},l.getMd5=function(e){return e&&e.length?o.MD5(e+"").toString():""},l.splitUrl=function(e){for(var t=e&&e.split("&")||[],n={},i={},a=0;a<t.length;a+=1)i[(n=t[a].split("="))[0]]=n[1];return i},e.exports=l}).call(this,n(1))},function(e,t,n){(function(t){var i;e.exports=(i=i||function(e,i){var a;if("undefined"!=typeof window&&window.crypto&&(a=window.crypto),"undefined"!=typeof self&&self.crypto&&(a=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(a=globalThis.crypto),!a&&"undefined"!=typeof window&&window.msCrypto&&(a=window.msCrypto),!a&&void 0!==t&&t.crypto&&(a=t.crypto),!a)try{a=n(42)}catch(e){}var r=function(){if(a){if("function"==typeof a.getRandomValues)try{return a.getRandomValues(new Uint32Array(1))[0]}catch(e){}if("function"==typeof a.randomBytes)try{return a.randomBytes(4).readInt32LE()}catch(e){}}throw new Error("Native crypto module could not be used to get secure random number.")},o=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),s={},l=s.lib={},c=l.Base={extend:function(e){var t=o(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},d=l.WordArray=c.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length},toString:function(e){return(e||p).stringify(this)},concat:function(e){var t=this.words,n=e.words,i=this.sigBytes,a=e.sigBytes;if(this.clamp(),i%4)for(var r=0;r<a;r++){var o=n[r>>>2]>>>24-r%4*8&255;t[i+r>>>2]|=o<<24-(i+r)%4*8}else for(var s=0;s<a;s+=4)t[i+s>>>2]=n[s>>>2];return this.sigBytes+=a,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=c.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],n=0;n<e;n+=4)t.push(r());return new d.init(t,e)}}),u=s.enc={},p=u.Hex={stringify:function(e){for(var t=e.words,n=e.sigBytes,i=[],a=0;a<n;a++){var r=t[a>>>2]>>>24-a%4*8&255;i.push((r>>>4).toString(16)),i.push((15&r).toString(16))}return i.join("")},parse:function(e){for(var t=e.length,n=[],i=0;i<t;i+=2)n[i>>>3]|=parseInt(e.substr(i,2),16)<<24-i%8*4;return new d.init(n,t/2)}},h=u.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,i=[],a=0;a<n;a++){var r=t[a>>>2]>>>24-a%4*8&255;i.push(String.fromCharCode(r))}return i.join("")},parse:function(e){for(var t=e.length,n=[],i=0;i<t;i++)n[i>>>2]|=(255&e.charCodeAt(i))<<24-i%4*8;return new d.init(n,t)}},f=u.Utf8={stringify:function(e){try{return decodeURIComponent(escape(h.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return h.parse(unescape(encodeURIComponent(e)))}},g=l.BufferedBlockAlgorithm=c.extend({reset:function(){this._data=new d.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=f.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n,i=this._data,a=i.words,r=i.sigBytes,o=this.blockSize,s=r/(4*o),l=(s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0))*o,c=e.min(4*l,r);if(l){for(var u=0;u<l;u+=o)this._doProcessBlock(a,u);n=a.splice(0,l),i.sigBytes-=c}return new d.init(n,c)},clone:function(){var e=c.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0}),m=(l.Hasher=g.extend({cfg:c.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){g.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,n){return new e.init(n).finalize(t)}},_createHmacHelper:function(e){return function(t,n){return new m.HMAC.init(e,n).finalize(t)}}}),s.algo={});return s}(Math),i)}).call(this,n(17))},function(e,t,n){var i,a,r,o,s,l,c,d,u,p,h,f,g,m,v,w,b,y,_;e.exports=(i=n(3),n(7),void(i.lib.Cipher||(a=i,r=a.lib,o=r.Base,s=r.WordArray,l=r.BufferedBlockAlgorithm,c=a.enc,c.Utf8,d=c.Base64,u=a.algo.EvpKDF,p=r.Cipher=l.extend({cfg:o.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,n){this.cfg=this.cfg.extend(n),this._xformMode=e,this._key=t,this.reset()},reset:function(){l.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){return e&&this._append(e),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function e(e){return"string"==typeof e?_:b}return function(t){return{encrypt:function(n,i,a){return e(i).encrypt(t,n,i,a)},decrypt:function(n,i,a){return e(i).decrypt(t,n,i,a)}}}}()}),r.StreamCipher=p.extend({_doFinalize:function(){return this._process(!0)},blockSize:1}),h=a.mode={},f=r.BlockCipherMode=o.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}}),g=h.CBC=function(){var e=f.extend();function t(e,t,n){var i,a=this._iv;a?(i=a,this._iv=void 0):i=this._prevBlock;for(var r=0;r<n;r++)e[t+r]^=i[r]}return e.Encryptor=e.extend({processBlock:function(e,n){var i=this._cipher,a=i.blockSize;t.call(this,e,n,a),i.encryptBlock(e,n),this._prevBlock=e.slice(n,n+a)}}),e.Decryptor=e.extend({processBlock:function(e,n){var i=this._cipher,a=i.blockSize,r=e.slice(n,n+a);i.decryptBlock(e,n),t.call(this,e,n,a),this._prevBlock=r}}),e}(),m=(a.pad={}).Pkcs7={pad:function(e,t){for(var n=4*t,i=n-e.sigBytes%n,a=i<<24|i<<16|i<<8|i,r=[],o=0;o<i;o+=4)r.push(a);var l=s.create(r,i);e.concat(l)},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},r.BlockCipher=p.extend({cfg:p.cfg.extend({mode:g,padding:m}),reset:function(){var e;p.reset.call(this);var t=this.cfg,n=t.iv,i=t.mode;this._xformMode==this._ENC_XFORM_MODE?e=i.createEncryptor:(e=i.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==e?this._mode.init(this,n&&n.words):(this._mode=e.call(i,this,n&&n.words),this._mode.__creator=e)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e,t=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(t.pad(this._data,this.blockSize),e=this._process(!0)):(e=this._process(!0),t.unpad(e)),e},blockSize:4}),v=r.CipherParams=o.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}}),w=(a.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext,n=e.salt;return(n?s.create([1398893684,1701076831]).concat(n).concat(t):t).toString(d)},parse:function(e){var t,n=d.parse(e),i=n.words;return 1398893684==i[0]&&1701076831==i[1]&&(t=s.create(i.slice(2,4)),i.splice(0,4),n.sigBytes-=16),v.create({ciphertext:n,salt:t})}},b=r.SerializableCipher=o.extend({cfg:o.extend({format:w}),encrypt:function(e,t,n,i){i=this.cfg.extend(i);var a=e.createEncryptor(n,i),r=a.finalize(t),o=a.cfg;return v.create({ciphertext:r,key:n,iv:o.iv,algorithm:e,mode:o.mode,padding:o.padding,blockSize:e.blockSize,formatter:i.format})},decrypt:function(e,t,n,i){return i=this.cfg.extend(i),t=this._parse(t,i.format),e.createDecryptor(n,i).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),y=(a.kdf={}).OpenSSL={execute:function(e,t,n,i){i||(i=s.random(8));var a=u.create({keySize:t+n}).compute(e,i),r=s.create(a.words.slice(t),4*n);return a.sigBytes=4*t,v.create({key:a,iv:r,salt:i})}},_=r.PasswordBasedCipher=b.extend({cfg:b.cfg.extend({kdf:y}),encrypt:function(e,t,n,i){var a=(i=this.cfg.extend(i)).kdf.execute(n,e.keySize,e.ivSize);i.iv=a.iv;var r=b.encrypt.call(this,e,t,a.key,i);return r.mixIn(a),r},decrypt:function(e,t,n,i){i=this.cfg.extend(i),t=this._parse(t,i.format);var a=i.kdf.execute(n,e.keySize,e.ivSize,t.salt);return i.iv=a.iv,b.decrypt.call(this,e,t,a.key,i)}}))))},function(e,t,n){"use strict";(function(t){var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var r=n(12),o=n(2),s=n(78),l=n(79),c=(n(80),o.api.GetVersion()),d={colLength:0,rowLength:0,rowArrReverse:[],rowArrNormal:[]},u=function(){this.init.apply(this,arguments)};u.prototype={init:function(e){if(!e)return t(".brandPaper").remove(),t(".closeBrand").hide(),void t(".sideRect").hide();if(t("body").hasClass("dark-mode"))return t(".brandPaper").remove(),t(".closeBrand").hide(),void t(".sideRect").hide();if(!0===o.storage.get("ppbz"))return t(".brandPaper").remove(),t(".closeBrand").hide(),void t(".sideRect").hide();var n=o.storage.get("brandPaperData"),i=o.storage.get("brandPaperData").afterClickShow;o.storage.get("brandPaperData").ifRectShow||t(".sideRect").hide(),t(".brandPaper").length||(t(".closeBrand").show(),t(".ntp-body").prepend("<div class='brandPaper cubeHide' style='background:url("+n.img+") center no-repeat;background-size:cover;'><a href="+n.host+" target='_blank'></a></div>")),t(".brandPaper").hasClass("hadDot")||(o.Stat.send("801.3093.gif"),t(".brandPaper").addClass("hadDot")),t(".closeBrand").off().on("click",(function(){t(this).hide(),t(".brandPaper").remove(),t(".sideRect").hide(),o.storageTime.timeLine("brandPaperTime"),o.Stat.send("801.2019.gif"),t(window).trigger("resize")}));t(".closeBrand span").off().on("click",(function(e){e.stopPropagation(),t(this).toggleClass("up"),t(".closeBrand p").toggle(),t(".closeBrand p").off().on("click",(function(e){e.stopPropagation(),o.Stat.send("801.9045.gif"),t(".sideRect").hide();var n=(new Date).getTime();o.storageTime.daysLine("hideDaysBrand",n),t(".brandPaper").remove(),t(".closeBrand").hide(),o.storage.setData("ppbz",!0)}))})),t(".brandPaper").off().on("click",(function(){i&&(t(".brandPaper").remove(),t(".closeBrand").hide(),t(".sideRect").hide(),o.storageTime.timeLine("brandPaperTime")),o.Stat.send("801.9425.gif")}))}};var p=n(81),h=function(){this.init.apply(this,arguments)};h.prototype={init:async function(){var e=await new Promise((function(e){e("")})),n=localStorage.getItem("newpagesConfig")||"",i=(n="huashuo"===e?n?JSON.parse(n).mingzhanNavForHuaShuo:{}:n?JSON.parse(n).mingzhanNav:{})&&!0===n.show;this.topNav=n&&n.data||[],i&&this.topNav.length?("huashuo"===e&&i&&(window.isStatSended?delete window.isStatSended:(o.Stat.send("1645.1890.gif"),window.isStatSended=!0)),this.topNav=this.formatData(this.topNav),this.initHtml()):t(".sellNav").addClass("allBorder")},formatData:function(e){var t=!1;(o.isNewer(c,"10.0.2099.0")&&o.isBigger("10.1.1000.0",c)||o.isNewer(c,"10.1.2217.0"))&&(t=!0);for(var n=0;n<e.length;n++){if(e[n].importantData&&e[n].importantData.show&&t){var i=e[n].importantData;e[n]=i}e[n].defaultIcon=p,e[n].boldClass=!0===e[n].bold?"bold":"",e[n].img=o.replaceImgHost(e[n].img)}return e},initHtml:function(){var e=l(this.topNav);if(t("#topNav").show().html(e),t(".wrap-topBox > ul >li").length>0){var n=localStorage.getItem("flowMode");"newsflow_a"===n?t(".wrap-topBox > ul >li").click((function(){o.Stat.sendFlow("1579.6171.gif",{_referer:"smallad"})})):"newsflow_b"===n&&t(".wrap-topBox > ul >li").click((function(){o.Stat.sendFlow("1579.7079.gif",{_referer:"smallad"})}))}window.topNavPuved||(window.topNavPuved=!0),t("#topNav li").click((function(e){t(this).attr("title").includes("华硕")&&o.Stat.send("1645.9736.gif"),o.Stat.send("1552.2214.gif",{_referer:"little_"+(t(this).data("index")||0)}),o.Stat.send("1207.5774.gif"),o.puvDot({s:25,n:10,item_id:2,item_name:t(this).attr("title")})}))}};var f=function(){this.init.apply(this,arguments)};f.prototype={init:function(e){if(!e)return t(".ad-bg-in").html(""),void t(".closeWater").hide();if(!0===o.storage.get("sybz"))return t(".ad-bg-in").html(""),void t(".closeWater").hide();this.opt=e,this.flg=!1;var n=this.opt.length;d.rowArrReverse=[],d.rowArrNormal=[];var i=t("#ad-bg-left"),a=t("#ad-bg-right"),r=t(".ad-bg-in"),l=t(window).width(),c=t(window).height(),u=Math.ceil(c/180),p=Math.floor((l-1090)/2/180);if(l>1280&&l<=1440){u=Math.ceil(c/160),p=Math.floor((l-1090)/2/110);this.flg=!0}var h=0;if(o.storage.get("waterMarkData")){var f=o.storage.get("waterMarkData").imgHover;if(f&&f.length){var g=o.storage.get("waterMarkData").href;if(g&&g.length){var m=o.storage.get("waterMarkData").clktk;if(m&&m.length){var v=this.opt.slice();v.reverse();var w=f.slice();w.reverse();var b=g.slice();b.reverse();for(var y=this,_=0;_<u;_++)h=_%n,d.rowArrNormal.push(x(h,1)),d.rowArrReverse.push(x(h));d.rowLength=u,d.colLength=p;var S=s(d);i.html(S),a.html(S),r.width((l-1090)/2),this.$pageMarkIn=r,this.flg?this.hideMark(110):this.hideMark(180),t(".ad-bg-col").width(1/p*100+"%"),t(".ad-watermark").hasClass("hadDot")||t(".ad-bg-item").length&&(o.Stat.send("801.760.gif"),t(".ad-watermark").addClass("hadDot")),this.viewTack(),this.computed()}}}}function x(e,t){if(1==t)var n=y.opt[e],i=f[e],a=g[e];else n=v[e],i=w[e],a=b[e];return{wmBg:n,dataBg:i,defaultBg:n,host:a,clktk:m.join(",")}}},hideMark:function(e){this.$pageMarkIn.width()<e?(this.$pageMarkIn.hide(),t(".closeWater").hide()):(this.$pageMarkIn.show(),t(".closeWater").show())},getOffset:function(e,t,n){var i=e.getBoundingClientRect();return{x:parseInt(t-i.left),y:parseInt(n-i.top)}},viewTack:function(){for(var e=o.storage.get("waterMarkData").imptk,t=0;t<e.length;t++)(new Image).src=decodeURIComponent(e[t])},computed:function(){var e=o.storage.get("waterMarkData").afterClickShow,n=this;t(".ad-watermark").off().on("click",".ad-bg-item",(function(i){for(var a=n.getOffset(t(this).get(0),i.clientX,i.clientY),r=t(this).attr("data-href"),s=t(this).attr("data-clktk").split(","),l=0;l<s.length;l++){var c=s[l].replace("__EVENT_TIME_START__",window._timestamp_mousedown).replace("__EVENT_TIME_END__",window._timestamp_mouseup).replace("__OFFSET_X__",a.x).replace("__OFFSET_Y__",a.y);(new Image).src=decodeURIComponent(c)}var d=r.replace("__EVENT_TIME_START__",window._timestamp_mousedown).replace("__EVENT_TIME_END__",window._timestamp_mouseup).replace("__OFFSET_X__",a.x).replace("__OFFSET_Y__",a.y);window.openWin(d),e&&(n.$pageMarkIn.html(""),t(".closeWater").hide(),o.storageTime.timeLine("waterMarkTime")),o.Stat.send("801.3561.gif")})),t(".closeWater").off().on("click",(function(){n.$pageMarkIn.html(""),o.Stat.send("801.268.gif"),o.storageTime.timeLine("waterMarkTime"),t(this).remove()}));n=this;t(".closeWater span").off().on("click",(function(e){e.stopPropagation(),t(this).toggleClass("up"),t(".closeWater p").toggle(),t(".closeWater p").off().on("click",(function(e){e.stopPropagation(),o.Stat.send("801.6113.gif");var i=(new Date).getTime();o.storageTime.daysLine("hideDaysMark",i),n.$pageMarkIn.html(""),t(".closeWater").hide(),o.storage.setData("sybz",!0)}))})),t(".ad-bg-item").off().on({mouseover:function(){t(this).data("default");var e=t(this).data("bg");t(this).css({background:"url("+e+") center no-repeat"})},mouseout:function(){var e=t(this).data("default");t(this).data("bg");t(this).css({background:"url("+e+") center no-repeat"})}})}};var g=function(){this.init.apply(this,arguments)};g.prototype={init:function(){if("none"==t(".wrap")[0].style.display)return new u,void new f;this.brandPaper(),this.waterPaper()},waterPaper:function(){setTimeout((function(){if((Array.from(t(".brandPaper"))||[]).length)return t("#ad-bg-left").html(""),void t("#ad-bg-right").html("");var e=o.storage.get("waterMarkData");o.storageTime.daysCompare("hideDaysMark",e.hideDays)&&o.storageTime.timeCompare("waterMarkTime")&&e.waterMarkShow&&("none"!=t(".wallpaper-current").css("background-image")?e.aboveSkinShow?new f(e.img):new f:new f(e.img))}))},brandPaper:function(){var e=o.storage.get("brandPaperData");o.storageTime.daysCompare("hideDaysBrand",e.hideDays)&&o.storageTime.timeCompare("brandPaperTime")&&e.brandPaperShow&&("none"==t(".wallpaper-current").css("background-image")?new u("brand"):new u)}};var m=0,v=function(e){var n,i={url:"https://mini.browser.360.cn/mediav/g",data:(n={type:1,of:4,mid:"",newf:1,impct:1,uid:o.api.GetMID()},a(n,"mid",o.api.GetMID()),a(n,"scheme","https"),a(n,"ua",navigator.userAgent),a(n,"refurl","newtab"),a(n,"ref",window.location.href),n)};this.options=t.extend(!0,i,e),e._noreq||(this.options=t.extend(!0,this.options,{reqtimes:1}))};function w(e,n,i){setTimeout((function(e,n,i){"undefined"!=t("#"+n).css("display")?NEWS_FEED_VIDEO.render({data:e,placeholderId:n,w:300,h:100,blockPV:!0,disableFullscreen:!1,onClick:function(){for(var e=t(".news-link"),n=0;n<e.length;n++)t(e[n]).data("randomid")==i&&t(e[n]).trigger("click")}}):w(e,n,i)}),100,e,n,i)}v.setLog=function(e,t,n){if(e){var i=e.split(",");if(t)for(var a=0;a<i.length;a++){var r=i[a].replace("__EVENT_TIME_START__",window._timestamp_mousedown).replace("__EVENT_TIME_END__",window._timestamp_mouseup).replace("__OFFSET_X__",t.x).replace("__OFFSET_Y__",t.y).replace("__ADSPACE_W__",n.width).replace("__ADSPACE_H__",n.height);(new Image).src=decodeURIComponent(r)}else for(a=0;a<i.length;a++){r=i[a].replace("__EVENT_TIME_START__",window._timestamp_mousedown).replace("__EVENT_TIME_END__",window._timestamp_mouseup);(new Image).src=decodeURIComponent(r)}}},v.openUrl=function(e,t,n){e=e.replace("__EVENT_TIME_START__",window._timestamp_mousedown).replace("__EVENT_TIME_END__",window._timestamp_mouseup).replace("__OFFSET_X__",t.x).replace("__OFFSET_Y__",t.y).replace("__ADSPACE_W__",n.width).replace("__ADSPACE_H__",n.height);window.openWin(e)},v.setDislike=function(e){var t=e.replace(/__DISLIKE_RULE_ID__/g,1).replace(/__DISLIKE_TAG__/g,"不喜欢此广告");v.setLog(t)},v.setDislikeBlack=function(e){var t=e.replace(/__DISLIKE_RULE_ID__/g,2).replace(/__DISLIKE_TAG__/g,"拉黑此广告");v.setLog(t)},v.setDislike2=function(e,t,n){if(e&&e.length){var i=[];if("[object String]"==Object.prototype.toString.call(e))i=e.split(",");else{if("[object Array]"!=Object.prototype.toString.call(e))return;i=e}for(var a=0;a<i.length;a++){/^https?:\/\//.test(i[a])||(i[a]=decodeURIComponent(i[a]));var r=i[a].replace(/__DISLIKE_RULE_ID__/g,t).replace(/__DISLIKE_TAG__/g,encodeURIComponent(n));(new Image).src=r}}},v.prototype={getAdsData:function(e){var n=t.extend(this.options.data,e);return t.ajax({url:this.options.url,dataType:"jsonp",jsonp:"jsonp",timeout:3e3,data:n})},filterAdsData:function(e,t){for(var n=e.impurl,i=this.options.data.reqtimes,a=e.ads||[],o=0,s=[];o<a.length;){var l=a[o],c={};c.randomId="rid"+Math.random().toString(36).slice(-8),4==l.type&&l.video?(c.tplType="ads4",c.video=l.video,c.videoContainerId="video-container-"+m,m+=1,w(l,c.videoContainerId,c.randomId)):2==l.type&&l.assets&&l.assets.length?(c.assets=l.assets.slice(0,4),0!=l.imgw&&(l.assets[0].imgw&&l.assets[0].imgw==l.assets[0].imgh||l.imgw==l.imgh)&&(c.imgType="square"),c.tplType="ads2"):3==l.type?c.tplType="ads3":c.tplType="ads1",t&&t[c.tplType]&&t[c.tplType].page.indexOf(i)>-1&&(c.tplType=t[c.tplType].desStyle||c.tplType),c.img=l.img&&l.img.split("|")[0]||"",c.newsType="ads",c.dataType="ads",c.errorimg=r,c.adsTag=!0,c.title=l.title||"",c.source=l.src,c.url=l.curl,c.url_encode=encodeURIComponent(c.url),c.desc=l.desc,c.imptk=S(l.imptk).toString(),c.clktk=S(l.clktk).toString(),c.imparg=l.imparg||"",c.impurl=n||"",c.clstk=l.clstk&&S(l.clstk).toString()||"",s.push(c),o+=1}return n&&(this.impurl=n),s},filterPmpData:function(e){var t=e.impurl,n=this.options.data.showids,i=e.adspaces,a=0,r=[];for(i=i&&i[n]&&i[n].ads||[];a<i.length;){var o=i[a],s={};s.title=o.title.toString().trim(),s.desc=o.desc,s.img=o.img,s.imgw=o.imgw,s.imgh=o.imgh,s.url=o.curl,s.url_encode=encodeURIComponent(s.url),s.imptk=S(o.imptk).toString(),s.clktk=S(o.clktk).toString(),s.imparg=o.imparg||"",s.limg=o.limg,s.lurl=o.lcurl,s.richmedia=o.richmedia||"",s.src=o.src,r.push(s),a+=1}return t&&(this.impurl=t),r},filterCloudWallPaperData:function(e){var t=e.impurl,n=this.options.data.showids,i=e.adspaces,a=0,r=[];for(i=i&&i[n]&&i[n].ads||[];a<i.length;){var o=i[a],s={id:o.img,link:{}},l=s.link;l.img_url=o.img,l.url=o.curl,l.show_type=2,l.pos_type=1,l.position={x:0,y:0},l.size={width:o.imgw,height:o.imgh},s.imptk=S(o.imptk).toString(),s.clktk=S(o.clktk).toString(),s.imparg=o.imparg||"",s.src=o.src,r.push(s),a+=1}return t&&(this.impurl=t),r},sendImpargs:function(e){var t,n=[],i=0,a=this.impurl;if(a){for(t=1e3-a.length;e.length>0;){var r=e.pop()||"";n.length+i+r.length>=t+1&&(n.length>0&&v.setLog(a+n.join(".")),n.length=i=0),n.push(r),i+=r.length}n.length>0&&v.setLog(a+n.join("."))}}};var b=function(e){var n={url:"https://mini.browser.360.cn/mediav/g?type=1&of=4&newf=2&scheme=https",data:{mid:o.api.GetMID(),uid:o.api.mv_uid,ua:navigator.userAgent,refurl:"newtab",ref:window.location.href},cache:!0,dataType:"jsonp",jsonp:"jsonp",timeout:3e3};this.options=t.extend(!0,n,e)};b.prototype={getAdsData:function(){var e=this;return new Promise((function(n,a){t.ajax(e.options).done((function(t){var a=t&&t.adspaces&&t.adspaces[e.options.data.showids]&&t.adspaces[e.options.data.showids].ads,r=a&&a[0];"object"==(void 0===r?"undefined":i(r))&&(r.impurl=t.impurl),n(r)})).fail((function(e,t,n){a(e,t,n)}))}))}};var y=function(e){var n={url:"https://mini.browser.360.cn/mediav/g?type=1&of=4&newf=1&scheme=https",data:{mid:o.api.GetMID(),uid:o.api.mv_uid,ua:navigator.userAgent,refurl:"newtab",ref:window.location.href},cache:!0,dataType:"jsonp",jsonp:"jsonp",timeout:3e3};this.options=t.extend(!0,n,e)};y.prototype={getAdsData:function(){var e=this;return new Promise((function(n,i){t.ajax(e.options).done((function(t){if(t&&t.ads&&t.ads.length){var a=e.filterAdsData(t);n(a)}else i()})).fail((function(e,t,n){i(e,t,n)}))}))},filterAdsData:function(e){for(var t=e.impurl,n=(this.options.data.reqtimes,e.ads||[]),i=0,a=[];i<n.length;){var o=n[i],s={};s.randomId="rid"+Math.random().toString(36).slice(-8),s.img=o.img&&o.img.split("|")[0]||"",s.newsType="ads",s.dataType="ads",s.errorimg=r,s.adsTag=!0,s.title=o.title||"",s.source=o.src||"",s.sourceSimple=o.src&&o.src.split("·")[0]||"",s.url=o.curl,s.url_encode=encodeURIComponent(s.url),s.desc=o.desc||"",s.seller=o.dj_seller||"",s.imptk=o.imptk||[],s.adstk=o.adstk||[],s.clktk=o.clktk||[],s.imparg=o.imparg||"",s.impurl=t||"",s.video=o.video||"",a.push(s),i+=1}return a}};var _=function(e){var n={url:"https://mini.browser.360.cn/mediav/3?type=1&of=4&newf=1&scheme=https",data:{mid:o.api.GetMID(),uid:o.api.mv_uid,ua:navigator.userAgent,refurl:"newtab",ref:window.location.href},cache:!0,dataType:"jsonp",jsonp:"jsonp",timeout:3e3};this.options=t.extend(!0,n,e)};_.prototype={getAdsData:function(){var e=this;return new Promise((function(n,i){t.ajax(e.options).done((function(t){if(t&&t.ads&&t.ads.length){var a=e.filterAdsData(t);n(a)}else i()})).fail((function(e,t,n){i(e,t,n)}))}))},filterAdsData:function(e){for(var t=e.impurl,n=(this.options.data.reqtimes,e.ads||[]),i=0,a=[];i<n.length;){var o=n[i],s={};s.randomId="rid"+Math.random().toString(36).slice(-8),s.img=o.img&&o.img.split("|")[0]||"",s.newsType="ads",s.dataType="ads",s.errorimg=r,s.adsTag=!0,s.title=o.title||"",s.source=o.src||"",s.sourceSimple=o.src&&o.src.split("·")[0]||"",s.url=o.curl,s.url_encode=encodeURIComponent(s.url),s.desc=o.desc||"",s.seller=o.dj_seller||"",s.imptk=o.imptk||[],s.adstk=o.adstk||[],s.clktk=o.clktk||[],s.imparg=o.imparg||"",s.impurl=t||"",s.video=o.video||"",a.push(s),i+=1}return a}};var S=function(e){var t=[];return e.forEach((function(e){t.push(encodeURIComponent(e))})),t},x=function(e){e=e||{},this.options=t.extend(!0,{url:"http://eye.mygame82.com/api/getList",data:{mid:"",mtype:"mid",p:6,bid:""}},e)};x.prototype={getAdsData:function(e){var n=t.extend({},this.options.data,e);return t.ajax({url:this.options.url,dataType:"jsonp",jsonp:"_callback",timeout:3e3,data:n})},filterAdsData:function(e){var t=e.data||[],n=0,i=[];if(0!=e.errno||t==[])return i;for(;n<t.length;){var a=t[n],o={},s={};o.errorimg=r,o.tplType="game",o.newsType="game",o.adsTag=!0,o.title=a.text&&a.text.toString().trim()||"",o.source=a.intr||"",o.url=a.des_url||"#",o.desc=a.inaword||"",o.img=a.pic_url,s.bid=this.options.data.bid,s.ad_id=a.ad_id||"",s.pos_id=a.pos_id||"",s.p=this.options.data.p,s.type=a.type||"",s.mtype=this.options.data.mtype,s.mid=this.options.data.mid,s.round=a.round||101,o.log=encodeURIComponent(JSON.stringify(s)),i.push(o),n+=1}return i},setLog:function(e){var t="http://r.yx-s.net/b/eye/s/wan/?";for(var n in e)t+=n+"="+e[n]+"&";t+=Date.now(),(new Image).src=t}};var k=function(e){this.url=e};k.prototype={render:function(){if(this.url){var e=document.createElement("div");e.className="ad-popup";var t=document.createElement("iframe");t.id="ad-popup",t.src=this.url,e.appendChild(t),document.body.appendChild(e)}},init:function(){var e=this;try{external.AppCmd(external.GetSID(window),"newExit","onWhetherShowAd","","",(function(t,n){console.log(t,n),"1"===n&&(o.Stat.send("1397.4086.gif"),e.render())}))}catch(e){}}};var C={upPopup:function(e,t){switch(t.id=e.showId,this.addStyle(t,e.css),e.name){case"adv-close":if(console.log("close-------------"),t.style.display="none",t.remove(),4===e.type)try{external.AppCmd(external.GetSID(window),"newExit","onNeverRemind","","",(function(){}))}catch(e){}break;case"adv-show":console.log("show-------------"),this.hideTips(),t.style.display="block"}},addStyle:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object.keys(t).forEach((function(n){e.style[n]=t[n]}))},hideTips:function(){var e=document.querySelector(".navGridGuideTipCard"),t=document.getElementById("navMostVisitPopMeng"),n=document.getElementById("navGridTipCardPopMeng");e&&(e.style.display="none"),t&&(t.style.display="none"),n&&(n.style.display="none")}};window.addEventListener("message",(function(e){var t=e.data,n=t.value||{};if(console.log("config",n),"popup"===t.type){var i=this.document.querySelector(".ad-popup");if(!i||!n.showId)return;C.upPopup(n,i)}})),e.exports={MV:v,PMP:b,SW:y,WAD:_,SceneAssistant:k,Game:x,WaterMark:f,BrandPaper:u,PaperLogic:g,PageNavigator:h}}).call(this,n(1))},function(e,t){e.exports=function(){throw new Error("define cannot be used indirect")}},function(e,t,n){var i,a,r,o,s,l,c,d;e.exports=(d=n(3),n(15),n(16),a=(i=d).lib,r=a.Base,o=a.WordArray,s=i.algo,l=s.MD5,c=s.EvpKDF=r.extend({cfg:r.extend({keySize:4,hasher:l,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n,i=this.cfg,a=i.hasher.create(),r=o.create(),s=r.words,l=i.keySize,c=i.iterations;s.length<l;){n&&a.update(n),n=a.update(e).finalize(t),a.reset();for(var d=1;d<c;d++)n=a.finalize(n),a.reset();r.concat(n)}return r.sigBytes=4*l,r}}),i.EvpKDF=function(e,t,n){return c.create(n).compute(e,t)},d.EvpKDF)},function(e,t,n){var i,a,r;e.exports=(r=n(3),a=(i=r).lib.WordArray,i.enc.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,i=this._map;e.clamp();for(var a=[],r=0;r<n;r+=3)for(var o=(t[r>>>2]>>>24-r%4*8&255)<<16|(t[r+1>>>2]>>>24-(r+1)%4*8&255)<<8|t[r+2>>>2]>>>24-(r+2)%4*8&255,s=0;s<4&&r+.75*s<n;s++)a.push(i.charAt(o>>>6*(3-s)&63));var l=i.charAt(64);if(l)for(;a.length%4;)a.push(l);return a.join("")},parse:function(e){var t=e.length,n=this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var r=0;r<n.length;r++)i[n.charCodeAt(r)]=r}var o=n.charAt(64);if(o){var s=e.indexOf(o);-1!==s&&(t=s)}return function(e,t,n){for(var i=[],r=0,o=0;o<t;o++)if(o%4){var s=n[e.charCodeAt(o-1)]<<o%4*2,l=n[e.charCodeAt(o)]>>>6-o%4*2,c=s|l;i[r>>>2]|=c<<24-r%4*8,r++}return a.create(i,r)}(e,t,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},r.enc.Base64)},function(e,t,n){var i;e.exports=(i=n(3),function(e){var t=i,n=t.lib,a=n.WordArray,r=n.Hasher,o=t.algo,s=[];!function(){for(var t=0;t<64;t++)s[t]=4294967296*e.abs(e.sin(t+1))|0}();var l=o.MD5=r.extend({_doReset:function(){this._hash=new a.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var i=t+n,a=e[i];e[i]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8)}var r=this._hash.words,o=e[t+0],l=e[t+1],h=e[t+2],f=e[t+3],g=e[t+4],m=e[t+5],v=e[t+6],w=e[t+7],b=e[t+8],y=e[t+9],_=e[t+10],S=e[t+11],x=e[t+12],k=e[t+13],C=e[t+14],T=e[t+15],I=r[0],D=r[1],E=r[2],M=r[3];I=c(I,D,E,M,o,7,s[0]),M=c(M,I,D,E,l,12,s[1]),E=c(E,M,I,D,h,17,s[2]),D=c(D,E,M,I,f,22,s[3]),I=c(I,D,E,M,g,7,s[4]),M=c(M,I,D,E,m,12,s[5]),E=c(E,M,I,D,v,17,s[6]),D=c(D,E,M,I,w,22,s[7]),I=c(I,D,E,M,b,7,s[8]),M=c(M,I,D,E,y,12,s[9]),E=c(E,M,I,D,_,17,s[10]),D=c(D,E,M,I,S,22,s[11]),I=c(I,D,E,M,x,7,s[12]),M=c(M,I,D,E,k,12,s[13]),E=c(E,M,I,D,C,17,s[14]),I=d(I,D=c(D,E,M,I,T,22,s[15]),E,M,l,5,s[16]),M=d(M,I,D,E,v,9,s[17]),E=d(E,M,I,D,S,14,s[18]),D=d(D,E,M,I,o,20,s[19]),I=d(I,D,E,M,m,5,s[20]),M=d(M,I,D,E,_,9,s[21]),E=d(E,M,I,D,T,14,s[22]),D=d(D,E,M,I,g,20,s[23]),I=d(I,D,E,M,y,5,s[24]),M=d(M,I,D,E,C,9,s[25]),E=d(E,M,I,D,f,14,s[26]),D=d(D,E,M,I,b,20,s[27]),I=d(I,D,E,M,k,5,s[28]),M=d(M,I,D,E,h,9,s[29]),E=d(E,M,I,D,w,14,s[30]),I=u(I,D=d(D,E,M,I,x,20,s[31]),E,M,m,4,s[32]),M=u(M,I,D,E,b,11,s[33]),E=u(E,M,I,D,S,16,s[34]),D=u(D,E,M,I,C,23,s[35]),I=u(I,D,E,M,l,4,s[36]),M=u(M,I,D,E,g,11,s[37]),E=u(E,M,I,D,w,16,s[38]),D=u(D,E,M,I,_,23,s[39]),I=u(I,D,E,M,k,4,s[40]),M=u(M,I,D,E,o,11,s[41]),E=u(E,M,I,D,f,16,s[42]),D=u(D,E,M,I,v,23,s[43]),I=u(I,D,E,M,y,4,s[44]),M=u(M,I,D,E,x,11,s[45]),E=u(E,M,I,D,T,16,s[46]),I=p(I,D=u(D,E,M,I,h,23,s[47]),E,M,o,6,s[48]),M=p(M,I,D,E,w,10,s[49]),E=p(E,M,I,D,C,15,s[50]),D=p(D,E,M,I,m,21,s[51]),I=p(I,D,E,M,x,6,s[52]),M=p(M,I,D,E,f,10,s[53]),E=p(E,M,I,D,_,15,s[54]),D=p(D,E,M,I,l,21,s[55]),I=p(I,D,E,M,b,6,s[56]),M=p(M,I,D,E,T,10,s[57]),E=p(E,M,I,D,v,15,s[58]),D=p(D,E,M,I,k,21,s[59]),I=p(I,D,E,M,g,6,s[60]),M=p(M,I,D,E,S,10,s[61]),E=p(E,M,I,D,h,15,s[62]),D=p(D,E,M,I,y,21,s[63]),r[0]=r[0]+I|0,r[1]=r[1]+D|0,r[2]=r[2]+E|0,r[3]=r[3]+M|0},_doFinalize:function(){var t=this._data,n=t.words,i=8*this._nDataBytes,a=8*t.sigBytes;n[a>>>5]|=128<<24-a%32;var r=e.floor(i/4294967296),o=i;n[15+(a+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),n[14+(a+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),t.sigBytes=4*(n.length+1),this._process();for(var s=this._hash,l=s.words,c=0;c<4;c++){var d=l[c];l[c]=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8)}return s},clone:function(){var e=r.clone.call(this);return e._hash=this._hash.clone(),e}});function c(e,t,n,i,a,r,o){var s=e+(t&n|~t&i)+a+o;return(s<<r|s>>>32-r)+t}function d(e,t,n,i,a,r,o){var s=e+(t&i|n&~i)+a+o;return(s<<r|s>>>32-r)+t}function u(e,t,n,i,a,r,o){var s=e+(t^n^i)+a+o;return(s<<r|s>>>32-r)+t}function p(e,t,n,i,a,r,o){var s=e+(n^(t|~i))+a+o;return(s<<r|s>>>32-r)+t}t.MD5=r._createHelper(l),t.HmacMD5=r._createHmacHelper(l)}(Math),i.MD5)},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t){(function(t){e.exports=t}).call(this,{})},function(e,t,n){e.exports=n.p+"images/cb864a38.png"},function(e,t,n){"use strict";(function(t){var i=n(2),a=n(91),r=n(5),o=n(92),s=n(93),l="event-ads",c={},d=t('<div class="event-wrap" />'),u={banner:"event-banner",pendant:"event-pendant",newsSide:"event-newsSide",siteSide:"event-siteSide",waterMark:"event-waterMark",selectImg:"event-selectImg",brandPaper:"event-brandPaper",hongbaoyu:"event-hongbaoyu"},p=function(e,t){for(var n=[],i=[],a=[],r=0;r<(t.assets&&t.assets.length);r++)r%2==0?(i.push(t.assets[r].img),a.push(t.assets[r].curl)):n.push(t.assets[r].img);return e.img=n,e.imgHover=i,e.href=a,e.imptk=t.imptk,e.clktk=t.clktk,e},h=function(e){if(!((new Date).valueOf()<(localStorage.bannerHideTime||0))&&x(e.eventDate)&&e.data&&e.data.length){e=e.data;var n={source:"banner",pid:l,data:e};t(".event-banner").remove(),t(".wrap-nav .dial").addClass("show-event-banner").after(s(n)).css("padding-bottom","14px"),t(".event-close-btn").click((function(e){t(this).parent().hide();var n=(new Date).valueOf(),a=new Date(n+864e5).setHours(0,0,0,0);localStorage.bannerHideTime=a,i.Stat.send("931.4099.gif")}))}},f=function(e,n){x(e.eventDate)&&e.url&&e.img&&(e.pid=l,e.source=n,e.class=u[n],d.html(o(e)),_(n),setTimeout((function(){(t(".event-pendant a").on("click",(function(e){if(e.preventDefault(),e.stopPropagation(),t(this).hasClass("event-close"))t(".event-pendant").hide();else{var n=t(this).attr("href");window.openWin(n,"_blank")}var a=t(this),r=a.parents(".news-packet"),o={ver:window.VERSION,mid:i.api.GetMID(),v:i.api.GetVersion(),act:"click",pid:a.parents("[data-pid]").data("pid")||"other",c:a.data("title")||"",f:encodeURIComponent(a[0].href),ct:a.data("ct")||"0",ext:a.data("dot"),rc:a.data("rc"),scene:a.data("scene"),data_source:a.data("source")||""};r.length>0&&(o.position=r.index()+1)})),1==window.isShowLongStrip)?(t("#default-nav").css({"margin-top":"16px"}),"new-nav"==localStorage.getItem("webui")?t(".event-pendant").css({top:"-259px"}):t(".event-pendant").css({top:"-246px"})):(t(".event-pendant").css({top:"-131px"}),t("#default-nav").css({"margin-top":"16px"}))}),100))},g=function(){var e=localStorage.getItem("wallpaper_option"),t=!1;return e&&(t=0!=e),t},m=function(e,n){if(x(e.eventDate)&&e.url&&e.href){var r=function(){if(""==t("#doc-view-front").html())setTimeout((function(){if(t(".kp-wrap").length)setTimeout((function(){a.init(e)}),7e3);else a.init(e)}),2500)};if(e.pid=l,e.source=n,e.class=u[n],"dial"!=i.storage.get("settings")["current-mode"]||3!=localStorage.getItem("dial-page-set")){if("dial"==i.storage.get("settings")["current-mode"])if(t("body").css("overflow-y","auto"),i.storage.get("hongbaoData").href){if(!i.storageTime.timeCompare("festival_v1_show"))return;r()}else r();else t("body").css("overflow-y","auto"),r();i.storage.setData("hongbaoData",e),_(n)}}else localStorage.removeItem("hongbaoData")},v=function(e,n){t(".event-pendant").length||x(e.eventDate)&&(e.enablePMP?new r.PMP({data:{showids:e.showid}}).getAdsData().then((function(t){t&&(e.url=t.curl,e.img=t.img,e.click=t.clktk,e.impurl=t.impurl,e.imparg=t.imparg,e.imptk=t.imptk,e.src=t.src,i.sendEventPMPShowStat(e)),f(e,n)})).catch((function(t){f(e,n)})):f(e,n))},w=function(e,t){var n=function(){e.host&&e.img_new?(e.pid=l,e.source=t,e.class=u[t],i.storage.setData("selectImgData",e),_(t)):localStorage.removeItem("selectImgData")};x(e.eventDate)&&i.storageTime.timeCompare("selectImgTime")?e.enablePMP?new r.PMP({data:{showids:e.showid}}).getAdsData().then((function(a){a?(e.pid=l,e.source=t,e.class=u[t],e.host=a.curl,e.img_new=a.img,e.click=a.clktk,e.impurl=a.impurl,e.imparg=a.imparg,e.imptk=a.imptk,e.src=a.src,i.storage.setData("selectImgData",e),_(t)):n()})).catch((function(e){n()})):n():localStorage.removeItem("selectImgData")},b=function(e,n){if(x(e.eventDate)&&e.url&&e.img){if(e.pid=l,e.source=n,e.class=u[n],i.storage.setData("brandPaperData",e),i.storageTime.daysCompare("hideDaysBrand",e.hideDays)&&i.storageTime.timeCompare("brandPaperTime")){var a=i.storage.get("brandPaperData");if(a.brandPaperShow){if(g())return void(a.aboveSkinShow?new r.BrandPaper("brand"):new r.BrandPaper);"none"==t(".wallpaper-current").css("background-image")?new r.BrandPaper("brand"):new r.BrandPaper}}_(n)}else localStorage.removeItem("brandPaperData")},y=function(e,n){if(x(e.eventDatePMP)&&e.url&&e.img){var a=function(a){setTimeout((function(){if((Array.from(t(".brandPaper"))||[]).length)return t("#ad-bg-left").html(""),void t("#ad-bg-right").html("");if(i.storage.setData("waterMarkData",e),i.storageTime.daysCompare("hideDaysMark",e.hideDays)){var n=i.storage.get("waterMarkData");if(i.storageTime.timeCompare("waterMarkTime")){if(g())return void(n.aboveSkinShow?new r.WaterMark(e.img):new r.WaterMark);("none"==t(".wallpaper-current").css("background-image")||n.aboveSkinShow)&&new r.WaterMark(e.img)}}})),_(n)};e.pid=l,e.source=n,e.class=u[n],a(),t(window).resize((function(){"none"!=t(".wrap")[0].style.display&&a()}))}else localStorage.removeItem("waterMarkData")},_=function(e){var n=t("."+u[e]),a=c[e];if(!n.data("isShown")&&n.is(":visible")){n.data("isShown",!0);var r={pid:l,data_source:e},o=null;if("banner"==e){var s=[];a.data.forEach((function(e){s.push.apply(s,function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(e.show))})),o=s}else r.c=a.title,r.f=a.url,o=a.show;i.Stat.setLog(o.join(","))}},S=function(e){var t="null";void 0!==e&&null!=e||(e=window.location.href);var n=e.match(/^\w+\:\/\/([^\/]*).*/);return void 0!==n&&null!=n&&(t=n[1]),t},x=function(e){if(t.isArray(e)){var n=(new Date).getTime(),i=k(e[0])||Number.MAX_VALUE,a=k(e[1])||Number.MIN_VALUE;if(n>=i&&n<a)return!0}return!1},k=function(e){return(e.indexOf(":")>-1?new Date(e).getTime():new Date(e).getTimeUTC())||""};e.exports={init:function(e){if(e){t.ajax({url:"https://browser.360.cn/newtab/config/event.html",dataType:"jsonp",jsonpCallback:"newtab_event_callback",success:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(c=e,window.event_searchClick=e.searchClick||[],e.banner&&h(e.banner),e.siteSide&&f(e.siteSide,"siteSide"),e.pendant&&v(e.pendant,"pendant"),e.newsSide&&f(e.newsSide,"newsSide"),e.waterMark,e.selectImg&&w(e.selectImg,"selectImg"),e.brandPaper&&b(e.brandPaper,"brandPaper"),e.hongbaoyu&&m(e.hongbaoyu,"hongbaoyu"),x(e.waterMark.eventDatePMP)&&e.waterMark.waterMarkShow&&i.storageTime.daysCompare("hideDaysMark",e.waterMark.hideDays)){var t=new r.MV({data:{mid:i.api.GetMID(),showid:"frqNKo"}}).getAdsData();t.done((function(t){console.log("水印壁纸 PMP 接口数据："),console.log(t),t.ads?y(p(e.waterMark,t.ads[0]),"waterMark"):localStorage.removeItem("waterMarkData")})).fail((function(){localStorage.removeItem("waterMarkData")})).always((function(){}))}},error:function(){}})}},showSiteUrl:function(){var e=c.siteUrl,n=t(".wrap-dial .mosts .link"),i=t(".wrap-dial .customs .link");e&&x(e.eventDate)&&e.data&&e.data.length&&(e=e.data,t.each(n,(function(n,i){for(var a=function(n){var a=e[n];if(S(i.href)==a.host){var r=t('.mosts .link[href="'+i.href+'"]');t.each(r,(function(e,n){e++;var i=a["img"+e],r=a["sub_img"+e];1==e?i&&t(n).attr("data-event","1").find("img").attr("src",i):(i&&t(n).attr("data-event","1").html('<img src="'+i+'"><p>'+n.title+"</p>"),r&&t(n).siblings(".event-link").length<1&&t(n).before('<a href="'+a.url+'" class="event-link" data-event="1" data-host="'+a.host+'"><img src="'+r+'"></a>'))}))}},r=0;r<e.length;r++)a(r)})),t.each(i,(function(n,i){for(var a=function(n){var a=e[n];if(S(i.href)==a.host){var r=t('.customs .link[href="'+i.href+'"]');t.each(r,(function(e,n){e++;var i=a["img"+e],r=a["sub_img"+e];1==e?i&&t(n).attr("data-event","1").find("img").attr("src",i):(i&&t(n).attr("data-event","1").html('<img src="'+i+'"><p>'+n.title+"</p>"),r&&t(n).siblings(".event-link").length<1&&t(n).before('<a href="'+a.url+'" class="event-link" data-event="1" data-host="'+a.host+'"><img src="'+r+'"></a>'))}))}},r=0;r<e.length;r++)a(r)})))}}}).call(this,n(1))},function(e,t,n){var i,a,r,o,s,l;e.exports=(l=n(3),a=(i=l).lib,r=a.Base,o=a.WordArray,(s=i.x64={}).Word=r.extend({init:function(e,t){this.high=e,this.low=t}}),s.WordArray=r.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:8*e.length},toX32:function(){for(var e=this.words,t=e.length,n=[],i=0;i<t;i++){var a=e[i];n.push(a.high),n.push(a.low)}return o.create(n,this.sigBytes)},clone:function(){for(var e=r.clone.call(this),t=e.words=this.words.slice(0),n=t.length,i=0;i<n;i++)t[i]=t[i].clone();return e}}),l)},function(e,t,n){var i,a,r,o,s,l,c,d;e.exports=(d=n(3),a=(i=d).lib,r=a.WordArray,o=a.Hasher,s=i.algo,l=[],c=s.SHA1=o.extend({_doReset:function(){this._hash=new r.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=this._hash.words,i=n[0],a=n[1],r=n[2],o=n[3],s=n[4],c=0;c<80;c++){if(c<16)l[c]=0|e[t+c];else{var d=l[c-3]^l[c-8]^l[c-14]^l[c-16];l[c]=d<<1|d>>>31}var u=(i<<5|i>>>27)+s+l[c];u+=c<20?1518500249+(a&r|~a&o):c<40?1859775393+(a^r^o):c<60?(a&r|a&o|r&o)-1894007588:(a^r^o)-899497514,s=o,o=r,r=a<<30|a>>>2,a=i,i=u}n[0]=n[0]+i|0,n[1]=n[1]+a|0,n[2]=n[2]+r|0,n[3]=n[3]+o|0,n[4]=n[4]+s|0},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,i=8*e.sigBytes;return t[i>>>5]|=128<<24-i%32,t[14+(i+64>>>9<<4)]=Math.floor(n/4294967296),t[15+(i+64>>>9<<4)]=n,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}}),i.SHA1=o._createHelper(c),i.HmacSHA1=o._createHmacHelper(c),d.SHA1)},function(e,t,n){var i,a,r,o;e.exports=(i=n(3),r=(a=i).lib.Base,o=a.enc.Utf8,void(a.algo.HMAC=r.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=o.parse(t));var n=e.blockSize,i=4*n;t.sigBytes>i&&(t=e.finalize(t)),t.clamp();for(var a=this._oKey=t.clone(),r=this._iKey=t.clone(),s=a.words,l=r.words,c=0;c<n;c++)s[c]^=1549556828,l[c]^=909522486;a.sigBytes=r.sigBytes=i,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,n=t.finalize(e);return t.reset(),t.finalize(this._oKey.clone().concat(n))}})))},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){var i;e.exports=(i=n(3),function(e){var t=i,n=t.lib,a=n.WordArray,r=n.Hasher,o=t.algo,s=[],l=[];!function(){function t(t){for(var n=e.sqrt(t),i=2;i<=n;i++)if(!(t%i))return!1;return!0}function n(e){return 4294967296*(e-(0|e))|0}for(var i=2,a=0;a<64;)t(i)&&(a<8&&(s[a]=n(e.pow(i,.5))),l[a]=n(e.pow(i,1/3)),a++),i++}();var c=[],d=o.SHA256=r.extend({_doReset:function(){this._hash=new a.init(s.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,i=n[0],a=n[1],r=n[2],o=n[3],s=n[4],d=n[5],u=n[6],p=n[7],h=0;h<64;h++){if(h<16)c[h]=0|e[t+h];else{var f=c[h-15],g=(f<<25|f>>>7)^(f<<14|f>>>18)^f>>>3,m=c[h-2],v=(m<<15|m>>>17)^(m<<13|m>>>19)^m>>>10;c[h]=g+c[h-7]+v+c[h-16]}var w=i&a^i&r^a&r,b=(i<<30|i>>>2)^(i<<19|i>>>13)^(i<<10|i>>>22),y=p+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&d^~s&u)+l[h]+c[h];p=u,u=d,d=s,s=o+y|0,o=r,r=a,a=i,i=y+(b+w)|0}n[0]=n[0]+i|0,n[1]=n[1]+a|0,n[2]=n[2]+r|0,n[3]=n[3]+o|0,n[4]=n[4]+s|0,n[5]=n[5]+d|0,n[6]=n[6]+u|0,n[7]=n[7]+p|0},_doFinalize:function(){var t=this._data,n=t.words,i=8*this._nDataBytes,a=8*t.sigBytes;return n[a>>>5]|=128<<24-a%32,n[14+(a+64>>>9<<4)]=e.floor(i/4294967296),n[15+(a+64>>>9<<4)]=i,t.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=r.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=r._createHelper(d),t.HmacSHA256=r._createHmacHelper(d)}(Math),i.SHA256)},function(e,t,n){var i;e.exports=(i=n(3),n(14),function(){var e=i,t=e.lib.Hasher,n=e.x64,a=n.Word,r=n.WordArray,o=e.algo;function s(){return a.create.apply(a,arguments)}var l=[s(1116352408,3609767458),s(1899447441,602891725),s(3049323471,3964484399),s(3921009573,2173295548),s(961987163,4081628472),s(1508970993,3053834265),s(2453635748,2937671579),s(2870763221,3664609560),s(3624381080,2734883394),s(310598401,1164996542),s(607225278,1323610764),s(1426881987,3590304994),s(1925078388,4068182383),s(2162078206,991336113),s(2614888103,633803317),s(3248222580,3479774868),s(3835390401,2666613458),s(4022224774,944711139),s(264347078,2341262773),s(604807628,2007800933),s(770255983,1495990901),s(1249150122,1856431235),s(1555081692,3175218132),s(1996064986,2198950837),s(2554220882,3999719339),s(2821834349,766784016),s(2952996808,2566594879),s(3210313671,3203337956),s(3336571891,1034457026),s(3584528711,2466948901),s(113926993,3758326383),s(338241895,168717936),s(666307205,1188179964),s(773529912,1546045734),s(1294757372,1522805485),s(1396182291,2643833823),s(1695183700,2343527390),s(1986661051,1014477480),s(2177026350,1206759142),s(2456956037,344077627),s(2730485921,1290863460),s(2820302411,3158454273),s(3259730800,3505952657),s(3345764771,106217008),s(3516065817,3606008344),s(3600352804,1432725776),s(4094571909,1467031594),s(275423344,851169720),s(430227734,3100823752),s(506948616,1363258195),s(659060556,3750685593),s(883997877,3785050280),s(958139571,3318307427),s(1322822218,3812723403),s(1537002063,2003034995),s(1747873779,3602036899),s(1955562222,1575990012),s(2024104815,1125592928),s(2227730452,2716904306),s(2361852424,442776044),s(2428436474,593698344),s(2756734187,3733110249),s(3204031479,2999351573),s(3329325298,3815920427),s(3391569614,3928383900),s(3515267271,566280711),s(3940187606,3454069534),s(4118630271,4000239992),s(116418474,1914138554),s(174292421,2731055270),s(289380356,3203993006),s(460393269,320620315),s(685471733,587496836),s(852142971,1086792851),s(1017036298,365543100),s(1126000580,2618297676),s(1288033470,3409855158),s(1501505948,4234509866),s(1607167915,987167468),s(1816402316,1246189591)],c=[];!function(){for(var e=0;e<80;e++)c[e]=s()}();var d=o.SHA512=t.extend({_doReset:function(){this._hash=new r.init([new a.init(1779033703,4089235720),new a.init(3144134277,2227873595),new a.init(1013904242,4271175723),new a.init(2773480762,1595750129),new a.init(1359893119,2917565137),new a.init(2600822924,725511199),new a.init(528734635,4215389547),new a.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var n=this._hash.words,i=n[0],a=n[1],r=n[2],o=n[3],s=n[4],d=n[5],u=n[6],p=n[7],h=i.high,f=i.low,g=a.high,m=a.low,v=r.high,w=r.low,b=o.high,y=o.low,_=s.high,S=s.low,x=d.high,k=d.low,C=u.high,T=u.low,I=p.high,D=p.low,E=h,M=f,A=g,F=m,P=v,L=w,N=b,O=y,B=_,j=S,H=x,z=k,$=C,G=T,R=I,q=D,W=0;W<80;W++){var U,V,X=c[W];if(W<16)V=X.high=0|e[t+2*W],U=X.low=0|e[t+2*W+1];else{var Y=c[W-15],J=Y.high,K=Y.low,Q=(J>>>1|K<<31)^(J>>>8|K<<24)^J>>>7,Z=(K>>>1|J<<31)^(K>>>8|J<<24)^(K>>>7|J<<25),ee=c[W-2],te=ee.high,ne=ee.low,ie=(te>>>19|ne<<13)^(te<<3|ne>>>29)^te>>>6,ae=(ne>>>19|te<<13)^(ne<<3|te>>>29)^(ne>>>6|te<<26),re=c[W-7],oe=re.high,se=re.low,le=c[W-16],ce=le.high,de=le.low;V=(V=(V=Q+oe+((U=Z+se)>>>0<Z>>>0?1:0))+ie+((U+=ae)>>>0<ae>>>0?1:0))+ce+((U+=de)>>>0<de>>>0?1:0),X.high=V,X.low=U}var ue,pe=B&H^~B&$,he=j&z^~j&G,fe=E&A^E&P^A&P,ge=M&F^M&L^F&L,me=(E>>>28|M<<4)^(E<<30|M>>>2)^(E<<25|M>>>7),ve=(M>>>28|E<<4)^(M<<30|E>>>2)^(M<<25|E>>>7),we=(B>>>14|j<<18)^(B>>>18|j<<14)^(B<<23|j>>>9),be=(j>>>14|B<<18)^(j>>>18|B<<14)^(j<<23|B>>>9),ye=l[W],_e=ye.high,Se=ye.low,xe=R+we+((ue=q+be)>>>0<q>>>0?1:0),ke=ve+ge;R=$,q=G,$=H,G=z,H=B,z=j,B=N+(xe=(xe=(xe=xe+pe+((ue+=he)>>>0<he>>>0?1:0))+_e+((ue+=Se)>>>0<Se>>>0?1:0))+V+((ue+=U)>>>0<U>>>0?1:0))+((j=O+ue|0)>>>0<O>>>0?1:0)|0,N=P,O=L,P=A,L=F,A=E,F=M,E=xe+(me+fe+(ke>>>0<ve>>>0?1:0))+((M=ue+ke|0)>>>0<ue>>>0?1:0)|0}f=i.low=f+M,i.high=h+E+(f>>>0<M>>>0?1:0),m=a.low=m+F,a.high=g+A+(m>>>0<F>>>0?1:0),w=r.low=w+L,r.high=v+P+(w>>>0<L>>>0?1:0),y=o.low=y+O,o.high=b+N+(y>>>0<O>>>0?1:0),S=s.low=S+j,s.high=_+B+(S>>>0<j>>>0?1:0),k=d.low=k+z,d.high=x+H+(k>>>0<z>>>0?1:0),T=u.low=T+G,u.high=C+$+(T>>>0<G>>>0?1:0),D=p.low=D+q,p.high=I+R+(D>>>0<q>>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,i=8*e.sigBytes;return t[i>>>5]|=128<<24-i%32,t[30+(i+128>>>10<<5)]=Math.floor(n/4294967296),t[31+(i+128>>>10<<5)]=n,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=t.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});e.SHA512=t._createHelper(d),e.HmacSHA512=t._createHmacHelper(d)}(),i.SHA512)},function(e,t,n){"use strict";(function(t){var i=n(2),a=n(5),r={_option_key:"wallpaper_option",_data_key:"wallpaper_data",setOption:function(e){localStorage[r._option_key]=e},getOption:function(){return localStorage[r._option_key]||0},setData:function(e){localStorage[r._data_key]=e},getData:function(){return localStorage[r._data_key]||""}};function o(e,t,n){e/=255,t/=255,n/=255;var i,a,r=Math.max(e,t,n),o=Math.min(e,t,n),s=(r+o)/2;if(r==o)i=a=0;else{var l=r-o;switch(a=s>.5?l/(2-r-o):l/(r+o),r){case e:i=(t-n)/l+(t<n?6:0);break;case t:i=(n-e)/l+2;break;case n:i=(e-t)/l+4}i/=6}return[i,a,s]}var s={config:{EMPTY_INDEX:0,UPLOAD_INDEX:8},container:t(".setup-pop .wallpaper"),init:function(){this.initSetWallpaper(),this.bind()},bind:function(){var e=this;this.container.delegate("li","click",(function(){var n=t(this),i=n.index();n.attr("wp-id")&&(i+=9),i==e.config.UPLOAD_INDEX?e.container.find(".bg-theme-file").trigger("click"):e.setWallpaper(!0,i)})),this.container.find("li.sx div").click((function(e){e.stopPropagation()})),this.container.delegate(".bg-theme-file","change",(function(){var t=this.files[0],n=new FileReader;n.onload=function(){e.setWallpaper(!0,e.config.UPLOAD_INDEX,this.result)},n.readAsDataURL(t),this.outerHTML=this.outerHTML}))},isDefaultWallpaper:function(){var e=r.getOption();return 0==e||e>this.config.UPLOAD_INDEX},initSetWallpaper:function(){var e=r.getOption()||0,t=r.getData();window.existVersion61&&!i.storage.get("__import_data")["wallpaper-done"]&&(i.storage.set("__import_data","wallpaper-done",!0),5==e&&""!=t&&(e=this.config.UPLOAD_INDEX,r.setOption(this.config.UPLOAD_INDEX))),e>=0&&e!=this.config.UPLOAD_INDEX?this.setWallpaper(!1,e):""!=t&&e==this.config.UPLOAD_INDEX&&this.setWallpaper(!1,e,t)},setWallpaper:function(e,n,i){var a=this,o=this.container.find("li").eq(n),s=new Image;if(a.prevLoader&&(a.prevLoader.onload=null,a.prevLoader=null),a.prevLoader=s,a.prevEl&&a.prevEl.removeClass("loading"),a.prevEl=o,n==this.config.EMPTY_INDEX||n>this.config.UPLOAD_INDEX||t("#page-news").attr("style",""),n==this.config.EMPTY_INDEX)return e&&l.hideCloudWallpaper(),a._animateBefore(e),a._animateBG(e),t(document.body).removeClass("black-bg"),r.setOption(n),a._setWallMisc(n),void t(window).trigger("resize");var c=n==this.config.UPLOAD_INDEX;if(!c){if(o.attr("wp-id"))return void(window.mode.indexOf("blank")<0&&l.setWallpaper(l.getHistory(o.attr("wp-id"))));i=o[0].dataset.imgsrc}s.onload=function(){if(e)try{r.setData(c?i:""),r.setOption(n)}catch(e){return void(c&&alert("您选择的图片太大，请更换图片！"))}if(e&&!o.attr("wp-id")&&l.hideCloudWallpaper(),a._animateBefore(e),c){var d=s.width,u=s.height;d>screen.availWidth&&u>screen.avialHeight-120?t(".wallpaper-current").css({"background-image":"url("+i+")","background-size":"auto, auto","background-position":"50% 50%","background-repeat":"no-repeat"}):d<500||u<500?t(".wallpaper-current").css({"background-image":"url("+i+")","background-size":"auto, auto","background-position":"0 0","background-repeat":"repeat","background-attachment":"fixed"}):t(".wallpaper-current").css({"background-image":"url("+i+")","background-size":"cover, 100%","background-position":"50% 50%","background-repeat":"no-repeat","background-attachment":"fixed"})}else o.attr("wp-id")?l.setWallpaper(l.getHistory(o.attr("wp-id"))):t(".wallpaper-current").css({"background-image":"url("+i+")","background-size":"cover, 100%","background-position":"50% 50%","background-attachment":"fixed"});a.getAverageLightness(s).isBlack?t(document.body).addClass("black-bg"):t(document.body).removeClass("black-bg"),a._animateBG(e),a._setWallMisc(n)},s.onerror=function(){t(document.body).removeClass("black-bg"),o.removeClass("loading"),a._wallHideScreen(),c&&alert("您选择的图片无法解析，请更换图片！")},o.addClass("loading"),"data:"!==i.substring(0,5)&&(s.crossOrigin="Anonymous"),s.src=i},getImageData:function(e){var t=document.createElement("canvas"),n=t.getContext("2d");return t.width=e.width,t.height=e.height,n.drawImage(e,0,0),n.getImageData(0,0,t.width,Math.min(250,t.height)).data},getAverageLightness:function(e){for(var t,n,i,a=this.getImageData(e),r=0,s=0,l=0;l<a.length;)0==a[l+3]?t=n=i=255:(t=a[l],n=a[l+1],i=a[l+2]),r+=o(t,n,i)[2],s++,l+=40;var c=(r/s).toFixed(2);return{isBlack:c<.95,average:c}},_animateBefore:function(e){e&&(t(".wallpaper-prev")[0].style.cssText=t(".wallpaper-current")[0].style.cssText,t(".wallpaper-current").remove(),t(".wallpaper-prev").after('<div class="wallpaper-current"></div>'),t(".wallpaper-current").on("webkitAnimationEnd",(function(){t(".wallpaper-current").removeClass("circle-mask-ani"),t(".wallpaper-prev").attr("style","")})))},_animateBG:function(e){e&&(t(".wallpaper-current").addClass("circle-mask-ani"),new a.PaperLogic)},_setWallMisc:function(e){this.container.find("li").removeClass("on").eq(e).removeClass("loading").addClass("on"),this._wallHideScreen()},_wallHideScreen:function(){i.ScreenShot.hideAndCapture("setWallpapered",!1,!0)}},l={wpId:0,isShown:!1,init:function(){this.bind(),this.showData(),t(window).on("newpages:firstPageOnLoad",(function(){}))},getDataFromBrowser:function(){var e=[];this.acceptWallpaper()&&e.push("newwallpaper"),e=JSON.stringify(e),i.DC.get("https://site.browser.360.cn/push.php?callback=?",{rn:Date.now(),v:i.api.GetVersion(),mid:i.api.GetMID(),mt:e},(function(e){console.log(e),0==e.errno&&e.data&&e.data.newwallpaper&&l.execWallpaper(e.data.newwallpaper)}),0,!1)},getDataFromMV:function(){var e=null;this.adsObj=new a.MV({data:{showids:"9ldQbJ",newf:2}}),this.adsObj.getAdsData().done((function(t){(e=l.adsObj.filterCloudWallPaperData(t)[0])?l.execWallpaper(e):l.getDataFromBrowser()})).fail((function(e){l.getDataFromBrowser()}))},showData:function(){!this.isCloseWallpaper()&&this.acceptWallpaper()&&window.mode.indexOf("blank")<0&&this.getWallpaperShowState()},getWallpaperShowState:function(){var e=i.api.GetVersion();/(8\.1)|(9\.1)/g.test(e)?i.ntpApis.GetWallpaperShowState((function(e){try{e=JSON.parse(e)}catch(t){e=e||{}}(null==e.show_state||!!e.show_state)&&l.getDataFromMV()})):l.getDataFromMV()},bind:function(){var e=this;t(".setup-pop .wallpaper .tabs a").click((function(){var e=t(this).index(),n=t(".setup-pop .wallpaper .tabs a"),i=t(".setup-pop .wallpaper .tab-conts>div");n.removeClass("selected"),n.eq(e).addClass("selected"),i.hide(),i.eq(e).show()})),t(".enable-push-wallpaper").change((function(){i.storage.set("wallpaper_options","enable-push-wallpaper",this.checked),this.checked||0==r.getOption()&&l.hideCloudWallpaper()})),!1===i.storage.get("wallpaper_options")["enable-push-wallpaper"]?t(".enable-push-wallpaper").attr("checked",!1):(i.storage.set("wallpaper_options","enable-push-wallpaper",!0),t(".enable-push-wallpaper").attr("checked",!0),i.Stat.send("514.3811.gif")),t(".wallpaper-push-links").delegate(".img","click",(function(e){e.preventDefault();var n=t(this).data("clktk"),r=t(this).get(0).getBoundingClientRect(),o={x:e.clientX-r.left,y:e.clientY-r.top},s={width:r.width,height:r.height};n&&a.MV.setLog(n,o,s);var l=t(this).attr("href");l=i.replaceMacro(l,{mousedownTime:window._timestamp_mousedown,mouseupTime:window._timestamp_mouseup,width:r.width,height:r.height,offsetX:e.clientX-r.left,offsetY:e.clientY-r.top}),window.openWin(l,"_blank")})),t(window).resize((function(){e.resizeUI()}))},isCloseWallpaper:function(){return(new Date).Format("yyyy-MM-dd")==i.storage.get("wallpaper_options").wallpaper_close_date},acceptWallpaper:function(){return s.isDefaultWallpaper()&&i.storage.get("wallpaper_options")["enable-push-wallpaper"]},renderWallpaperHistory:function(){console.log("renderWallpapeHistory==============");var e=this.getHistoryList();e.reverse();var n=[];e.forEach((function(e){n.push('<li wp-id="'+i.filterHtml(e.id)+'" style="background-image:url('+i.filterHtml(e.thumb)+')">')})),t(".wallpaper .wp-history").html(n.join(""))},getHistoryList:function(){return i.storage.get("wallpaper_options").history||[]},addHistory:function(e){return i.storage.set("wallpaper_options","history",[e]),e},getHistory:function(e){for(var t=this.getHistoryList(),n=0;n<t.length;n++)if(t[n].id==e)return t[n]._index=n,t[n];return null},execWallpaper:function(e){e&&e.id?(this.wpId=e.id,e=this.addHistory(e),this.renderWallpaperHistory(),this._checkAutoSet(e)&&(i.ScreenShot.setWallpapered=!1,this.defaultSetWallpaper(e,!0))):this.wallpaperSeted&&i.ScreenShot.capture("delete")},_checkAutoSet:function(e){return!!e&&i.storage.get("wallpaper_options")["enable-push-wp-id-"+e.id],this.acceptWallpaper()},defaultSetWallpaper:function(e){e&&(this.wallpaperSeted?this.prevWpId!=this.wpId&&i.ScreenShot.capture("delete"):(this.prevWpId=this.wpId,this.wallpaperSeted=!0,s.setWallpaper(!1,s.config.UPLOAD_INDEX+1),i.Stat.send("388.6667.gif"),i.Stat.send("514.9839.gif"),e.imptk||i.Stat.send("758.6508.gif")))},hideCloudWallpaper:function(){t(".wallpaper-push-links").hide()},resizeUI:function(){if(!l.isCloseWallpaper()&&l.acceptWallpaper()){var e=t(".wallpaper-push-links"),n=t(".wallpaper-push-links a"),r="dial"==window.mode?t(".wrap-dial .current > div"):t(".wrap-"+window.mode)||{},o=e.css("left"),s=e.css("right"),c=r.width()||0,d=e.width()+("auto"!=o?parseInt(o):parseInt(s)),u=e.height()+25;if(n.length<1)return;var p=document.body.offsetWidth/2-c/2<d,h=document.body.offsetHeight<u;if(p||h)e.hide();else{if(i.storage.get("blank_page_options")["is-blank-page"]||!i.storage.get("wallpaper_options")["enable-push-wallpaper"])return void e.hide();var f=localStorage.getItem("dial-page-set")||0;if("dial"==window.mode&&3==f)return void e.hide();if("cube"==window.mode)return void e.hide();e.show(),this.isShown||(this.isShown=!0,a.MV.setLog(n.data("imptk")),this.adsObj.sendImpargs([n.data("imparg")]))}}else this.hideCloudWallpaper()},setWallpaper:function(e){var n=e.link;if(n){var a=n.size||{},r={};switch(t(".wallpaper-push-links").html('<a class="img" data-imptk="'+(e.imptk||"")+'" data-imparg="'+(e.imparg||"")+'" data-clktk="'+(e.clktk||"")+'" style="background-image:url('+n.img_url+')" href="'+i.filterHtml(n.url)+'" target="_blank"><span class="wallpaper-ads-tag"></span></a><span class="wallpaper-ads-close"></span>').show(),"360搜索"==e.src&&t(".wallpaper-ads-tag").css("display","none"),n.pos_type){case 1:a.left=n.position.x,a.top=n.position.y,r.right=0,r.bottom="-20px";break;case 2:a.right=n.position.x,a.top=n.position.y,r.left=0,r.bottom="-20px";break;case 3:a.right=n.position.x,a.bottom=n.position.y,r.left=0,r.top="-20px";break;case 4:a.left=n.position.x,a.bottom=n.position.y,r.right=0,r.top="-20px"}t(".wallpaper-push-links").css(a).delegate(".wallpaper-ads-close","click",(function(e){var t=(new Date).Format("yyyy-MM-dd");i.storage.set("wallpaper_options","wallpaper_close_date",t),l.hideCloudWallpaper()})),i.storage.set("wallpaper_options","current-wp",this.wpId),t(".wallpaper-push-links .wallpaper-ads-close").css(r),this.resizeUI()}},execShowset:function(e){e=e||{};var t=parseInt(i.storage.get("settings").rsv)||0,n=parseInt(e.sv)||0;t<n&&"1"===e.sset&&localStorage.removeItem("default_engine"),i.storage.set("settings","rsv",n);var a=parseInt(e.rset)||0;i.ntpApis.sendRset(a)},startRefreshLinks:function(){var e=this;e.stopRefreshLinks(),e.refreshTimer=setTimeout((function(){e.refreshCloudLinks(!0)}),5e3)},stopRefreshLinks:function(){this.refreshTimer&&clearTimeout(this.refreshTimer)},refreshCloudLinks:function(e){var n=this,i=t("#search-form .cloud-links .links");i.stop(!0,!0).animate({scrollTop:i.children().eq(1).height()},500,(function(){i.children().eq(0).appendTo(i),i.scrollTop(0),!0===e&&n.startRefreshLinks()}))}};e.exports={MyStorage:r,Wallpaper:s,PushData:l}}).call(this,n(1))},function(e,t,n){"use strict";(function(t){var i=n(2),a=(n(13),n(22)),r=n(12),o=n(94),s=n(95),l=n(96);var c=[],d=["#EE3B3B","#FF6B1A","#FE9500","#0DC36E","#00C1C8","#2D85FA","#5E5C6C","#BD6B69","#EF9E70","#DFC954","#A5C950","#90C6C8","#77A9E9","#CF92D8"],u=[],p=[],h="most",f=null,g="",m={},v=/^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z|]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,w=0,b=void 0,y={},_=!0,S=[{title:"哔哩哔哩",url:"https://www.bilibili.com/"},{title:"爱淘宝",url:"https://ai.taobao.com/?pid=mm_26632323_6762370_107181600323&clk1=d59da02e7f6cae0eca7cf4e100d0a39b"},{title:"QQ邮箱",url:"https://mail.qq.com/"},{title:"1688",url:"https://p4psearch.1688.com/hamlet.html?scene=6&cosite=360PMP&_force_strategy_=273&trackid=519727_{planid}_{groupid}_{creativeid}&qhclickid={source_id}&m_ac={advertiser_id}"},{title:"360搜索",url:"https://www.so.com/"},{title:"汽车之家",url:"http://car.autohome.com.cn/"},{title:"京东",url:"https://union-click.jd.com/sem.php?source=haosou-search&unionId=262767352&siteId=haosousearch_{keywordid}&to=https%3A%2F%2Fre.m.jd.com%2Fpage%2Fhomelike%3Fad_od%3D3%26re_dcp%3D21Sm2D2ZOw%26traffic_source%3D1004%26bd_vid%3D{clickid}"}],x={1688:!0,xiecheng:!0,jd:!0},k={taobao:{title:"淘宝网",url:"https://ads.taobao.com?bc_fl_src=tbsite_HonjO8YR&channelSrp=tbsy-360zs-sy&sourceid=",logo:"http://p0.qhimg.com/t11098f6bcd9e92d1ae08ad58b9.jpg"},xiecheng:{title:"携程旅行",url:"https://www.ctrip.com/?allianceid=5542111&sid=218296520",logo:"https://browser2.qhimg.com/t110b9a930189b67220dc8c928e.png"},1688:{title:"1688",url:"https://p4psearch.1688.com/hamlet.html?scene=6&cosite=360PMP&_force_strategy_=273&trackid=519727_{planid}_{groupid}_{creativeid}&qhclickid={source_id}&m_ac={advertiser_id}",logo:"http://browser2.qhimg.com/t11098f6bcd478f740a0543bedf.png"},jd:{title:"京东",url:"https://union-click.jd.com/sem.php?source=haosou-search&unionId=262767352&siteId=haosousearch_{keywordid}&to=https%3A%2F%2Fre.m.jd.com%2Fpage%2Fhomelike%3Fad_od%3D3%26re_dcp%3D21Sm2D2ZOw%26traffic_source%3D1004%26bd_vid%3D{clickid}",logo:"https://p0.qhimg.com/t110b9a9301ca984fd76eaacb2e.png"}},C={},T={};try{var I=function(e,t){try{if("undefined"!=typeof localStorage){var n=localStorage.getItem(e);return null!==n?n:t}return t}catch(e){return console.error("Error accessing localStorage:",e),t}}("newpagesConfig","{}");C=JSON.parse(I),T=C&&C.Replace_taobao_data&&C.Replace_taobao_data.data[0]||k.taobao}catch(e){console.error("Error parsing newpagesConfig:",e),C={}}var D={ads:[T]};function E(e,t){return new Promise((function(n,a){var r={ads:[k[t]]};!function(e){var t="jsonp_callback_"+Math.round(1e5*Math.random()),n=document.createElement("script"),i=new URLSearchParams(e.d||{});i.append(e.jsonp||"callback",t),n.src=e.url+"?"+i.toString();var a=void 0;e.timeout&&(a=setTimeout((function(){window[t]=function(){},e.fail&&e.fail(new Error("请求超时")),document.body.removeChild(n)}),e.timeout));window[t]=function(i){a&&clearTimeout(a),e.success&&e.success(i),document.body.removeChild(n),delete window[t]},n.onerror=function(){a&&clearTimeout(a),e.fail&&e.fail(new Error("加载脚本失败")),document.body.removeChild(n),delete window[t]},document.body.appendChild(n)}({url:"https://show-g.mediav.com/s",d:{of:4,newf:1,type:1,showid:e,reqtimes:1,mid:i.api.GetMID(),scheme:"https",impct:1},jsonp:"jsonp",timeout:3e4,success:function(e){e&&e.ads&&e.ads.length>0?(n(e),"taobao"===t&&i.Stat.send("1622.6988.gif",{_referer:"suc"})):(n("taobao"===t?D:r),"taobao"===t&&i.Stat.send("1622.6988.gif",{_referer:"nodata"}))},fail:function(e){n("taobao"===t?D:r),"taobao"===t&&i.Stat.send("1622.6988.gif",{_referer:"fail"})}})}))}function M(e){return new Promise((async function(n,a){if(y[e])n(y[e]);else{try{var r=await new Promise((function(e,t){i.api.GetMID2((function(t){e(t)}))})),o={url:"https://mini.browser.360.cn/newtab/icon_list",dataType:"jsonp",timeout:3e3,data:{host:e,m:i.api.GetMID(),v:i.api.GetVersion(),aid:2,uid:i.api.GetMID(),m2:r},jsonp:"callback"};t.ajax(o).done((function(t){if(t&&200===t.code){var i=t.data&&t.data.icon_list||[];i.length&&(y[e]=i[0],n(i[0]))}n("")})).fail((function(e){n("")}))}catch(e){n("")}}}))}function A(e,t){var n={isIn:!1,item:null,index:null};if(!e||!t)return n;for(var i=0;i<e.length;i++)if(e[i].url==t){n.isIn=!0,n.item=e[i],n.index=i;break}return n}function F(){1==t(".color-selection").data("userSelect")?(t(".color-selection").addClass("active"),t(".img-selection").removeClass("active")):(t(".img-selection").addClass("active"),t(".color-selection").removeClass("active"))}async function P(e,n){var a=0;if((a=e.bgc?d.findIndex((function(t){return t===e.bgc})):i.getRandomNum(0,d.length-1))>-1&&(t(".netoptions-box .color-list .colors span").eq(a).addClass("active"),t(".netoptions-box .icon-selected .icon").css({background:d[a]}).data("color",d[a])),"edit"==n)if(e.logo)t(".netoptions-box .imgContainer img").attr("src",e.logo).data("imgsrc",e.logo).show(),F();else{t(".netoptions-box .color-selection").addClass("active"),t(".netoptions-box .color-selection").data("userSelect",1);var r=await L(e.url);r?(t(".netoptions-box .imgContainer img").attr("src",r).data("imgsrc",r).show(),t(".netoptions-box .img-selection").removeClass("disabled"),F()):(t(".netoptions-box .img-selection").addClass("disabled"),t(".netoptions-box .imgContainer img").hide(),t(".netoptions-box .imgContainer img").attr("src","").data("imgsrc","").hide())}else t(".netoptions-box .color-selection").addClass("active"),t(".netoptions-box .img-selection").addClass("disabled"),t(".netoptions-box .imgContainer img").attr("src","").data("imgsrc","").hide()}async function L(e){return new Promise((async function(t,n){if(/^(https?|ftp):\/\//i.test(e)||(e="https://"+e),e=e.replace(/\|/g,"%7c"),v.test(e)){var a=null,r=await M(e);if(r)t(r);else try{a=setTimeout((function(){t("")}),200),i.ntpApis.getSmallThumbnail([e],(function(e){clearTimeout(a),e&&0!==e.length||t("");var n=(e[0]||["",""])[1]||"";t(n)}))}catch(e){clearTimeout(a),t("")}}else t("")}))}function N(e){var t=1315423911,n=void 0;for(n=e.length-1;n>=0;n--)t^=(t<<5)+e.charCodeAt(n)+(t>>2);return 2147483647&t}function O(){c=JSON.parse(localStorage.getItem("newNavGridData"))||[]}function B(){var e=96*t(".nav-grid-item").length;e=parseInt(e);var n=Math.ceil(e/1152),i="";if(n>1)for(var a=0;a<n;a++)i+='<li class="point '+(a===w?"active":"")+'" data-index='+a+"></li>";t(".navGridPoint").html(i),t(".navGridPoint .point").off().on("click",(function(e){var n=t(this).data("index");t(".navGridPoint .point.active").removeClass("active"),t(this).addClass("active");var i=-1152*n;w=n,t(".navGridContent").css({left:i+"px"}),G(i)}))}function j(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=[];e&&e.forEach((function(e,t){e.url&&e.title&&(e.url=e.url.replace(/^https?:\/\/hao.360.cn/,"https://hao.360.com"),e.logo=i.replaceImgHost(e.logo),n.push(e))})),c=n,localStorage.setItem("newNavGridData",JSON.stringify(c)),i.puvDot({s:25,n:7,item_id:c.length+""}),t(".navGridContainer .navGridBox").html(o(c)),H(),G(),B(),Y(),b&&b()}function H(){var e=localStorage.getItem("isOpenNavGrid");null==e||null==e||""==e?window.isOpenNavGrid?$("open"):$("close"):1==e?$("open"):1!=localStorage.getItem("newMyNetSGow")?($("open"),localStorage.setItem("isOpenNavGrid",1)):$("close");localStorage.setItem("newMyNetSGow",1)}var z=null;function $(e,n){"close"==e?(clearTimeout(z),t(".navGridContainer .navGridContralIcon").removeClass("up").addClass("down"),t(".navGridContainer").removeClass("slideDown"),t(".navGridBox").removeClass("slideDown"),t(".nav-grid-item").removeClass("slideDown"),t(".navGridPagination").addClass("hide"),t(".navGridPoint").addClass("hide")):(t(".navGridContainer .navGridContralIcon").removeClass("down").addClass("up"),t(".navGridContainer").addClass("slideDown"),t(".navGridBox").addClass("slideDown"),t(".nav-grid-item").addClass("slideDown"),t(".navGridPagination").removeClass("hide"),t(".navGridPoint").removeClass("hide"),n||(z=setTimeout((function(){a.init()}),500)))}function G(e){var n=null==e?t(".navGridContent").css("left"):e;n=parseInt(n);var i=96*t(".nav-grid-item").length,a=(i=parseInt(i))-Math.abs(n);n>=0?t(".navGridPagination_pre").removeClass("show"):t(".navGridPagination_pre").addClass("show"),i>1156&&a>1152?t(".navGridPagination_next").addClass("show"):t(".navGridPagination_next").removeClass("show"),t(".nav-grid-item").length>12?(t(".navGridContent").removeClass("beCenter"),t(".navGridPagination_pre").removeClass("disabled"),t(".navGridPagination_next").removeClass("disabled")):(t(".navGridContent").addClass("beCenter"),t(".navGridPagination_pre").addClass("disabled"),t(".navGridPagination_next").addClass("disabled"))}function R(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";t(".netoptions-box .toast").html(e).css({display:"flex"}),t(".netoptions-box .toast").addClass(n),f=setTimeout((function(){t(".netoptions-box .toast").hide().html(""),t(".netoptions-box .toast").removeClass("fail success")}),3e3)}function q(){clearTimeout(f),t(".editPopErrTip").hide().html("")}function W(){t(".navGridSet").removeClass("active"),t(".navGridSetSelect").hide(),t(".navGridConfirmPop").css({top:t(".navGridContainer").offset().top}).show(),t(".navGridPop").hide(),q(),t("#navMostVisitPopMeng").hide()}function U(){t(".netoptions-box").css({right:"-400px"}),t("body").removeClass("hideScroll"),t(".netoptions-box").html(""),p=[],u=[]}function V(e,n){if(n!==h)return[];if(!e.length)return t(".netoptions-box .net-list").addClass("noData"),t(".netoptions-box .net-list .noData-tips i").text("opened"===h?"暂无当前打开":"暂无最常访问"),[];t(".netoptions-box .net-list").removeClass("noData");var i=JSON.parse(localStorage.getItem("newNavGridData"));(e=e.map((function(e){e.url=e.url.replace(/^https?:\/\/hao.360.cn/,"https://hao.360.com");var t=i.findIndex((function(t){return t.url===e.url}));e.hasAdded=-1!==t,e.loadIcon=!0,e.icon="";var n=N(e.url.replace(/\/$/,""))%(d.length-1);return e.bgc=d[n],e.bgw=e.title[0],e}))).sort((function(e,t){return e.hasAdded-t.hasAdded}));var a="";return e.forEach((function(e){a+='\n\t\t\t<li class="'+(e.hasAdded?"":"add")+'"  data-bgc="'+e.bgc+'"  data-logo="'+(e.logo||"")+'" data-bgw="'+e.bgw+'" data-title="'+e.title+'" data-href="'+e.url+'">\n\t\t\t\t<div class="icon" >\n\t\t\t\t\t<img src="'+(e.logo||"")+'" onerror="this.style.display=\'none\'">\n\t\t\t\t\t<span style="background: '+e.bgc+';">'+e.bgw+"</span>\n\t\t\t\t</div>\n\t\t\t\t<p >"+e.title+'</p>\n\t\t\t\t<span class="action"><i class="tips">'+(e.hasAdded?"已添加":"添加网站")+"</i></span>\n\t\t\t</li>\n\t\t"})),t(".netoptions-box .net-list ul").html(a),e}function X(e,n,a){var r=e,o=n;if(x[o]){var s=document.querySelectorAll(".nav-grid-item"),l="",c="";switch(o){case"1688":l="1688",c="1552.9958.gif";break;case"xiecheng":l="携程旅行",c="1552.9097.gif";break;case"jd":l="京东",c="1552.6732.gif"}var d=Array.from(s).findIndex((function(e){return e.dataset.title===l})),u=t(".navGridContainer").hasClass("slideDown");d>11+12*w||d<12*w||!u||(x[o]=!1,E(r,o).then((function(e){var t=s[d];if(t&&e.ads&&e.ads[0]&&e.ads[0].curl){t.setAttribute("data-curl",e.ads[0].curl),k[o].curl=e.ads[0].curl,t.setAttribute("data-clktk",e.ads[0].clktk.join(","));for(var n=e.ads[0].imptk,r=0;r<n.length;r++){var l=e.ads[0].imptk[r].replace("__EVENT_TIME_START__",Date.now()).replace("__EVENT_TIME_END__",Date.now()).replace("__OFFSET_X__",t.offsetLeft||a.x).replace("__OFFSET_Y__",t.offsetTop||a.y);(new Image).src=decodeURIComponent(l)}c&&i.Stat.send(c)}})).catch((function(e){return console.error("Promise错误:",e)})))}}function Y(){var e=0,n=0,a={x:0,y:0};document.addEventListener("mousedown",(function(t){e=Date.now(),document.querySelectorAll(".nav-grid-item").forEach((function(e){if(e.contains(t.target)){var n=e.getBoundingClientRect();a.x=Math.round(t.clientX-n.left),a.y=Math.round(t.clientY-n.top),a.x=Math.max(0,a.x),a.y=Math.max(0,a.y)}}))})),document.addEventListener("mouseup",(function(){n=Date.now()})),setTimeout((function(){if(X("uWRxn5","xiecheng",a),X("hsPdNE","1688",a),X("GpV20q","jd",a),_){_=!1;var e=document.querySelectorAll(".nav-grid-item"),n=Array.from(e).findIndex((function(e){return e.dataset.title===T.title})),r=t(".navGridContainer").hasClass("slideDown");i.Stat.send("1622.6988.gif",{_referer:n+"_"+r}),-1===n||n>11||!r||E("o3827V","taobao").then((function(t){var r=e[n];if(r&&t.ads&&t.ads[0]&&t.ads[0].curl){i.Stat.send("1622.6988.gif",{_referer:"puv"+t.ads[0].imptk.length}),r.setAttribute("data-curl",t.ads[0].curl),k.taobao.curl=t.ads[0].curl,r.setAttribute("data-clktk",t.ads[0].clktk.join(","));for(var o=t.ads[0].imptk,s=0;s<o.length;s++){var l=t.ads[0].imptk[s].replace("__EVENT_TIME_START__",Date.now()).replace("__EVENT_TIME_END__",Date.now()).replace("__OFFSET_X__",r.offsetLeft||a.x).replace("__OFFSET_Y__",r.offsetTop||a.y);(new Image).src=decodeURIComponent(l)}}})).catch((function(e){return console.error("Promise错误:",e)}))}}),1e3),t(document).on("click",(function(e){t(".navGridSet").removeClass("active"),t(".navGridSetSelect").hide();t(e.target);"0px"==t(".netoptions-box").css("right")&&U()})).on("scroll",(function(e){W()})),t(window).on("resize",(function(e){W()})),t("#navMostVisitPopMeng").off().on("click",(function(e){W()})),t(".slideContral").off().on("click",(function(e){t(".navGridContainer .navGridContralIcon").hasClass("up")?($("close"),localStorage.setItem("isOpenNavGrid",0)):t(".navGridContainer .navGridContralIcon").hasClass("down")&&($("open",!0),localStorage.setItem("isOpenNavGrid",1)),localStorage.setItem("mode-nav-grid-showed",!0)})),t(".navGridContainer .nav-grid-item").off().on("click",(function(o){if(t(this).hasClass("nav-grid-item-add"))g="add",t(".netoptions-box").html(l({popTitle:"添加网站",title:"",colors:d,url:"",errorimg:r})).css({right:0}),t("body").addClass("hideScroll"),P({},"add"),h="most",u.length?(t(".netoptions-box .net-list").removeClass("noData"),V(u,"most"),setTimeout((function(){K()}),300)):i.ntpApis.getMostVisitedData((function(e){if(i.ntpApis.getMostVisitedData((function(){})),!u.length){var n=[];e.forEach((function(e){-1===n.findIndex((function(t){return e.url===t.url}))&&(e.url.startsWith("http")||e.url.startsWith("ftp"))&&n.push(e)})),(u=V(u=n,"most")).forEach((async function(n,i){(e=await L(n.url))&&("most"===h&&(t(".netoptions-box .net-list img").eq(i).attr("src",e).show(),t(".netoptions-box .net-list li").eq(i).data("logo",e)),u[i].logo=e)})),setTimeout((function(){K()}),300)}}));else{var s=localStorage.getItem("flowMode");"newsflow_a"===s?i.Stat.sendFlow("1579.6171.gif",{_referer:"site"}):"newsflow_b"===s&&i.Stat.sendFlow("1579.7079.gif",{_referer:"site"}),t(this).removeData();var c=t(this).data("curl")||t(this).data("href"),p=String(t(this).data("title"));if(i.puvDot({s:25,n:8,item_name:p}),-1!==S.findIndex((function(e){return e.url===c}))||c===k.taobao.url||c===k[1688].url||c===k.taobao.curl||c===k[1688].curl||c===k.jd.url||c===k.jd.curl){i.Stat.send("1552.5407.gif",{_referer:i.getUrlDomain(c)});var f=JSON.parse(localStorage.getItem("newNavGridClickData"))||{},m=(new Date).getTime();f[c]=m,localStorage.setItem("newNavGridClickData",JSON.stringify(f))}if(p===T.title||"携程旅行"===p||"1688"===p||"京东"===p){var v=t(this).data("clktk");if(v){c=c.replace("__EVENT_TIME_START__",e).replace("__EVENT_TIME_END__",n).replace("__OFFSET_X__",a.x).replace("__OFFSET_Y__",a.y),v=v.split(",");for(var w=0;w<v.length;w++){var b=v[w].replace("__EVENT_TIME_START__",e).replace("__EVENT_TIME_END__",n).replace("__OFFSET_X__",a.x).replace("__OFFSET_Y__",a.y);(new Image).src=decodeURIComponent(b)}p===T.title&&i.Stat.send("1552.7505.gif",{_referer:i.getUrlDomain(c)}),"携程旅行"===p&&i.Stat.send("1552.7087.gif",{_referer:i.getUrlDomain(c)}),"1688"===p&&i.Stat.send("1552.3047.gif",{_referer:i.getUrlDomain(c)}),"京东"===p&&i.Stat.send("1552.9491.gif",{_referer:i.getUrlDomain(c)})}else c===T.url&&i.Stat.send("1552.3583.gif",{_referer:i.getUrlDomain(c)}),"携程旅行"===p&&i.Stat.send("1552.2538.gif",{_referer:i.getUrlDomain(c)}),"1688"===p&&i.Stat.send("1552.6788.gif",{_referer:i.getUrlDomain(c)}),"京东"===p&&i.Stat.send("1552.2726.gif",{_referer:i.getUrlDomain(c)})}i.Stat.send("1552.4279.gif",{_referer:i.getUrlDomain(c)}),window.openWin(c,"_blank")}})),t(".navGridPagination").off().on("click",(function(e){var n=-1152*w,i=0;t(this).hasClass("navGridPagination_pre")?(i=n+1152,w--):(i=n-1152,w++),t(".navGridPoint .point.active").removeClass("active"),t(".navGridPoint .point").eq(w).addClass("active"),t(".navGridContent").css({left:i+"px"}),G(i),X("uWRxn5","xiecheng",{x:0,y:0}),X("hsPdNE","1688",{x:0,y:0}),X("GpV20q","jd",{x:0,y:0})})),t(".navGridSet").off().on("click",(function(e){e.stopPropagation(),U();var n=t(this).data("href");m=A(c,n).item;var i=t(this).offset().left,a=t(".navGridContainer").offset().left;t(this).addClass("active"),t(".navGridSet").not(this).removeClass("active"),t(".navGridSetSelect").css({left:i-a-200+20+"px",display:"inline-block"})})),t(".navGridSetOptionEdit").off().on("click",(function(e){t(".navGridSetSelect").hide(),g="edit",t(".netoptions-box").html(l({popTitle:"编辑网站",title:m.title,url:m.url,colors:d,logo:m.logo,bgc:m.bgc,errorimg:r})).css({right:0}),t("body").addClass("hideScroll"),t(".netoptions-box .form").show(),P(m,"edit"),t(".navGridPopItemTitleInput").val("").focus().val(m.title),K(),t(".navGridEditPopConfirm").removeClass("disabled")})),t(".navGridSetOptionDel").off().on("click",(function(e){t(".navGridSetSelect").hide(),t(".navGridConfirmPop").css({top:t(".navGridContainer").offset().top}).show(),t("#navMostVisitPopMeng").show()})),t(".navGridDelPopCancle, .navGridDelPopClose").off().on("click",(function(e){t(".navGridConfirmPop").hide(),t("#navMostVisitPopMeng").hide(),t(".navGridSet").removeClass("active")})),t(".navGridDelPopConfirm").off().on("click",(function(e){t(".navGridConfirmPop").hide(),t("#navMostVisitPopMeng").hide(),t(".navGridSet").removeClass("active");var n=A(c,m.url).index;null!=n&&c.splice(n,1),null!=n&&t(".nav-grid-item").eq(n).remove(),Z("del",m),b()}))}var J=null;function K(){t(".netoptions-box").off().on("click",(function(e){e.stopPropagation(),e.preventDefault()}));var e=null;t(".netoptions-box .net-list .action").off().on("mouseenter",(function(n){var i=this;clearTimeout(e),t(".netoptions-box .net-list .action .tips").hide(),e=setTimeout((function(){t(i).find(".tips").show()}),300)})).on("mouseleave",(function(n){var i=this;clearTimeout(e),e=setTimeout((function(){t(i).find(".tips").hide()}),150)})),t(".netoptions-box .net-list li").off().on("click",(function(e){var n=t(this);n.hasClass("add")&&async function(e,n){var i=e.title,a=e.url;if(i=i.trim(),a=a.trim(),!i)return t(".navGridPopItemTitleInput").parent().addClass("error"),void R("名称不能为空","fail");if(q(),!a)return t(".navGridPopItemUrlInput").parent().addClass("error"),void R("网址不能为空","fail");q(),/^(https?|ftp):\/\//i.test(a)||(a="https://"+a);if(a=a.replace(/\|/g,"%7c"),A(c,a).isIn){if("add"==g)return q(),t(".navGridPopItemUrlInput").parent().addClass("error"),void R("网址已存在","fail");if("edit"==g&&a!=m.url)return q(),t(".navGridPopItemUrlInput").parent().addClass("error"),void R("网址已存在","fail")}q(),t(".navGridEditPop").hide();var r=e.logo,o={title:i,url:a.replace(/^https?:\/\/hao.360.cn/,"https://hao.360.com"),logo:r,bgc:e.bgc,bgw:i&&i.split("")[0]||"",randomId:"ngr"+Math.random().toString(36).slice(-8)},l=s(o);if("add"==g)t(".nav-grid-item-add").before(l),c.push(o),Z("add",o);else if("edit"==g){var d=A(c,m.url).index;null!=d&&t(".nav-grid-item").eq(d).replaceWith(l),null!=d&&c.splice(d,1,o),Z("edit",o)}n&&n();b(),setTimeout((function(){var e=t(".nav-grid-item").length-2,n=Math.floor(e/12);if(n!==w){t(".navGridPoint .point.active").removeClass("active"),t(".navGridPoint .point").eq(n).addClass("active");var i=-1152*n;w=n,t(".navGridContent").css({left:i+"px"}),G(i)}}))}({title:n.data("title")||"",bgc:n.data("bgc")||"",url:n.data("href")||"",logo:n.data("logo")||""},(function(){n.removeClass("add"),n.find(".tips").text("已添加"),R("已添加至我的网站","success")}))})),t(".navGridPopItemInput").off().on("focus",(function(e){t(this).addClass("active")})).on("blur",(function(e){t(this).removeClass("active")})).on("keydown",(function(e){13==e.keyCode&&(t(this).removeClass("active"),q(),Q())})).on("input propertychange change",(async function(e){t(this).parent().removeClass("error");var n=t(this).val();t(this).hasClass("navGridPopItemTitleInput")?t(".netoptions-box .icon-selected .icon").text(n?n[0]:"网"):function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50;clearTimeout(J),J=setTimeout((function(){e()}),t)}((async function(){var e=await L(n);e?(t(".netoptions-box .imgContainer img").attr("src",e).data("imgsrc",e).show(),t(".netoptions-box .img-selection").removeClass("disabled"),F()):(t(".netoptions-box .img-selection").addClass("disabled"),t(".netoptions-box .imgContainer img").hide(),t(".color-selection").addClass("active"),t(".img-selection").removeClass("active"),t(".netoptions-box .imgContainer img").attr("src","").data("imgsrc",""))}),200);var i=t(".navGridPopItemTitleInput").val(),a=t(".navGridPopItemUrlInput").val();i=i.trim(),(a=a.trim())&&i?t(".navGridEditPopConfirm").removeClass("disabled"):t(".navGridEditPopConfirm").addClass("disabled")})),t(".form .input-area .clear").off().on("click",(function(e){t(this).parent().find(".navGridPopItemInput").val("").focus(),t(".navGridEditPopConfirm").addClass("disabled"),t(this).parent().find(".navGridPopItemInput").hasClass("navGridPopItemUrlInput")&&(t(".netoptions-box .img-selection").addClass("disabled"),t(".netoptions-box .imgContainer img").hide(),t(".color-selection").addClass("active"),t(".img-selection").removeClass("active"),clearTimeout(J),t(".netoptions-box .imgContainer img").attr("src","").data("imgsrc",""))})),t(".netoptions-box .close").off().on("click",(function(e){U()})),t(".navGridEditPopConfirm").off().on("click",(function(e){t(this).hasClass("disabled")||(q(),Q())})),t(".netoptions-box .tabs span").off().on("click",(function(e){t(this).data("title")!==h&&(t(".netoptions-box .tabs span").removeClass("active"),t(".netoptions-box .net-list ul").html(""),t(this).addClass("active"),"most"===(h=t(this).data("title"))?(t(".netoptions-box .net-list").show(),t(".netoptions-box .form").hide(),V(u,"most"),setTimeout((function(){K()}),0)):"opened"===h?(t(".netoptions-box .net-list").show(),t(".netoptions-box .form").hide(),p.length?(t(".netoptions-box .net-list").removeClass("noData"),V(p,"opened"),setTimeout((function(){K()}),0)):(t(".netoptions-box .net-list").addClass("noData"),t(".netoptions-box .net-list .noData-tips i").text("暂无当前打开"),i.api.getOpenedURLs((function(e){var n=[];e.forEach((function(e){-1===n.findIndex((function(t){return e.url===t.url}))&&(e.url.startsWith("http")||e.url.startsWith("ftp"))&&n.push(e)})),(p=V(p=n,"opened")).forEach((async function(n,i){(e=await L(n.url))&&("opened"===h&&(t(".netoptions-box .net-list img").eq(i).attr("src",e).show(),t(".netoptions-box .net-list li").eq(i).data("logo",e)),p[i].logo=e)})),setTimeout((function(){K()}),0)})))):(t(".netoptions-box .form").show(),t(".netoptions-box .net-list").hide(),setTimeout((function(){K()}),0)))})),t(".netoptions-box .color-list .colors span").off().on("click",(function(){t(".netoptions-box .color-list .colors span").removeClass("active"),t(this).addClass("active");var e=t(this).data("color");t(".netoptions-box .icon-selected .icon").css({background:e}).data("color",e)})),t(".netoptions-box .selection .radio").off().on("click",(function(e){var n=t(this).parent();n.hasClass("disabled")||(t(".netoptions-box .selection").removeClass("active"),n.addClass("active"),n.hasClass("color-selection")?n.data("userSelect",1):t(".netoptions-box .color-selection").data("userSelect",0))}))}async function Q(){var e=t(".navGridPopItemTitleInput").val(),n=t(".navGridPopItemUrlInput").val();if(e=e.trim(),n=n.trim(),!e)return t(".navGridPopItemTitleInput").parent().addClass("error"),void R("名称不能为空","fail");if(q(),!n)return t(".navGridPopItemUrlInput").parent().addClass("error"),void R("网址不能为空","fail");q(),/^(https?|ftp):\/\//i.test(n)||(n="https://"+n),n=n.replace(/\|/g,"%7c");var i=A(c,n),a=i.isIn;i.item,i.index;if(!v.test(n))return t(".navGridPopItemUrlInput").parent().addClass("error"),void R("网址格式错误","fail");if(a){if("add"==g)return q(),t(".navGridPopItemUrlInput").parent().addClass("error"),void R("网址已存在","fail");if("edit"==g&&n!=m.url)return q(),t(".navGridPopItemUrlInput").parent().addClass("error"),void R("网址已存在","fail")}q(),t(".navGridEditPop").hide();var r="";t(".img-selection").hasClass("active")&&(r=t(".img-selection .imgContainer img").data("imgsrc"));var o=t(".icon-selection .icon").data("color"),l={title:e,url:n.replace(/^https?:\/\/hao.360.cn/,"https://hao.360.com"),logo:r,bgc:o,bgw:e&&e.split("")[0]||"",randomId:"ngr"+Math.random().toString(36).slice(-8)},d=s(l);if("add"==g)t(".nav-grid-item-add").before(d),c.push(l),Z("add",l);else if("edit"==g){var u=A(c,m.url).index;null!=u&&t(".nav-grid-item").eq(u).replaceWith(d),null!=u&&c.splice(u,1,l),Z("edit",l)}b(),U()}function Z(e,t){W(),Y(),G(),B(),localStorage.setItem("newNavGridData",JSON.stringify(c));var n="";"add"==e?n=3:"edit"==e?n=1:"del"==e&&(n=2),i.puvDot({s:25,n:9,item_id:n})}function ee(e,t){!async function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=JSON.parse(JSON.stringify(e)),i=[];if(t)for(var a=0;a<n.length;a++){var r=n[a],o=N(r.url.replace(/\/$/,"")),s=o%(d.length-1),l={title:r.title,url:r.url,logo:r.logo||await L(r.url)||"",bgc:d[s],bgw:r.title&&r.title.split("")[0]||"",randomId:"ngr"+Math.random().toString(36).slice(-8)};i.push(l),a==n.length-1&&j(i)}else j(n)}(e,t)}e.exports={init:function(e,n){if(window.isShowNavGrid){if(0==localStorage.getItem("isShowModeNavMostVisit"))return t(".navGridContainer").hide(),void i.Stat.send("1552.8497.gif",{_referer:"close"});if(i.Stat.send("1552.8497.gif",{_referer:"open"}),t(".navGridContainer").show(),window.isModeNavMostVisitInited=!0,1!=localStorage.getItem("syncedDialGridData")&&e){localStorage.setItem("syncedDialGridData",1);ee([{title:"哔哩哔哩",url:"https://www.bilibili.com/",logo:"https://browser2.qhimg.com/t0122debb5e18d188fe.png"},{title:"爱淘宝",url:"https://ai.taobao.com/?pid=mm_26632323_6762370_107181600323&clk1=d59da02e7f6cae0eca7cf4e100d0a39b",logo:"https://browser2.qhimg.com/t013cc84b9c8586cd77.png"},{title:"京东",url:"https://union-click.jd.com/sem.php?source=haosou-search&unionId=262767352&siteId=haosousearch_{keywordid}&to=https%3A%2F%2Fre.m.jd.com%2Fpage%2Fhomelike%3Fad_od%3D3%26re_dcp%3D21Sm2D2ZOw%26traffic_source%3D1004%26bd_vid%3D{clickid}",logo:"https://p0.qhimg.com/t110b9a9301ca984fd76eaacb2e.png"},{title:"1688",url:"https://p4psearch.1688.com/hamlet.html?scene=6&cosite=360PMP&_force_strategy_=273&trackid=519727_{planid}_{groupid}_{creativeid}&qhclickid={source_id}&m_ac={advertiser_id}",logo:"http://p0.qhimg.com/t11098f6bcd478f740a0543bedf.png"},{title:"360搜索",url:"https://www.so.com/",logo:"https://browser2.qhimg.com/t01e82c53e206f9ddc5.png"}],!0)}else{var a=t(".navGridContainer").hasClass("slideDown"),r=JSON.parse(localStorage.getItem("newNavGridData"))||[];a&&i.Stat.send("1622.6047.gif",{_referer:"all"}),r=r.map((function(e){if("淘宝618"===e.title||"https://ai.taobao.com/?pid=mm_26632323_6762370_107181600323&clk1=d59da02e7f6cae0eca7cf4e100d0a39b"===e.url||e.url===T.url)return a&&i.Stat.send("1622.6047.gif",{_referer:e.title}),Object.assign({},e,T);if("1688"===e.title||"https://p4psearch.1688.com/hamlet.html?scene=6&cosite=360PMP&_force_strategy_=273&trackid=519727_{planid}_{groupid}_{creativeid}&qhclickid={source_id}&m_ac={advertiser_id}"===e.url)return Object.assign({},e,k[1688]);if("携程旅行"===e.title||"https://c.ssp.360.cn/t?type=19&pub=1000451_746903_1213230&cus=0_0_0_16356_0&url=https%3A%2F%2Fwww.ctrip.com%2F%3Fallianceid%3D323047%26sid%3D803568"===e.url)return Object.assign({},e,k.xiecheng);if("汽车之家"===e.title&&"http://car.autohome.com.cn/"===e.url){if(!(JSON.parse(localStorage.getItem("newNavGridClickData"))||{})["http://car.autohome.com.cn/"])return Object.assign({},e,k[1688])}else if("QQ邮箱"===e.title&&"https://mail.qq.com/"===e.url){var t=JSON.parse(localStorage.getItem("newNavGridClickData"))||{},n=(new Date).getTime();if(!t["https://mail.qq.com/"]||t["https://mail.qq.com/"]<n-12096e5)return Object.assign({},e,k.jd)}return e})),localStorage.setItem("newNavGridData",JSON.stringify(r)),localStorage.setItem("aiTaobaoRenamed","true"),ee(r)}n.initSortable(O),b=n.positionTiles}else t(".navGridContainer").hide()},updateGrid:ee,updateGridPaginationState:G}}).call(this,n(1))},function(e,t,n){"use strict";(function(t){n(2);var i="",a="";function r(){setTimeout((function(){var e='<div class="modeNavGridTipContent">\n\t\t\t\t\t\t<span class="inlineBlock modeNavGridClose"></span>\n\t\t\t\t\t\t<div class="modeNavGridTitle">'+i+'</div>\n\t\t\t\t\t\t<div class="modeNavGridDesc">'+a+'</div>\n\t\t\t\t\t\t<span class="inlineBlock modeNavGridKnow">知道了</span>\n\t\t\t\t\t    <span class="inlineBlock modeNavGridTipArrow"></span>\n\t\t\t\t   </div>';t(".navGridGuideTipCard").empty().html(e).css({top:t(".navGridContainer").offset().top-132+"px"}).show(),t("#navGridTipCardPopMeng").show(),t(".navGridGuideTipCard .modeNavGridClose, .navGridGuideTipCard .modeNavGridKnow").off().on("click",(function(e){o()}))}))}function o(){localStorage.setItem("mode-nav-grid-showed",!0),t(".navGridGuideTipCard").hide(),t("#navGridTipCardPopMeng").hide()}e.exports={init:function(){localStorage.getItem("mode-nav-grid-showed")||window.external.AppCmd(window.external.GetSID(window),"removepopup","IsShowOtherPopup","","",(function(e,n){if("0"===n){if(!t(".navGridContainer .navGridContralIcon").hasClass("up"))return;"remove"==window.navGridTipType?(i="常用网址迁移到这里啦",a="您可以在这里【添加】和【编辑】常用网址哦~"):(i="新增【常用网址】功能",a="您可以在这里【添加】和【编辑】常用网址哦~");var o=document.querySelector(".ad-popup");o&&"block"===o.style.display||r()}}))},close:o,updateTipPosition:function(){t(".navGridGuideTipCard").css({top:t(".navGridContainer").offset().top-132+"px"})}}}).call(this,n(1))},function(e,t,n){"use strict";(function(t){var i=n(2),a=(n(98),0),r=[],o=[];function s(){t.ajax({url:"https://cloud.browser.360.cn/site/ga",dataType:"jsonp",jsonpCallback:"cb",data:{mid:i.api.GetMID(),ver:i.api.GetVersion(),cb:"cb"},success:function(e){var n=e&&e.data||{};a=n.d||0;for(var s=n.l||[],l=JSON.parse(localStorage.getItem("dial-grid-cover-ads"))||[],d=0;d<s.length;d++)for(var u=0;u<l.length;u++)s[d].pos==l[u].pos&&(l[u].endTime>(new Date).valueOf()?s[d].d=!0:l[u].d=!0);for(var p=[],h=0;h<l.length;h++)l[h].d||p.push(l[h]);localStorage.setItem("dial-grid-cover-ads",JSON.stringify(p));for(var f=function(e){if(!s[e].d){s[e].img=i.replaceImgHost(s[e].img);var t=new Image;t.onload=function(){o.push(s[e])},t.onerror=function(){},t.src=s[e].img}},g=0;g<s.length;g++)f(g);setTimeout((function(){r=o,"dial"==window.mode&&t(".sliders-nav .mosts").hasClass("selected")&&c(),t(".page-list").on("click",".cover-ads-delete",(function(e){e.stopPropagation(),e.preventDefault();var n=t(this).parents(".dial-grid-cover-ads-item").data("pos"),o={pos:n,setTime:(new Date).valueOf(),endTime:(new Date).valueOf()+1e3*a},s=JSON.parse(localStorage.getItem("dial-grid-cover-ads"))||[];s.push(o),localStorage.setItem("dial-grid-cover-ads",JSON.stringify(s)),i.Stat.send("1121.7780.gif",{_referer:n});for(var l=0;l<r.length;l++)console.log(l,n),r[l].pos==n&&r.splice(l,1);t(this).parents(".dial-grid-cover-ads-item").hide(),t(this).parents(".hideWeb").removeClass("hideWeb")})),t(".page-list").on("click","dial-grid-cover-ads-item a",(function(e){e.stopPropagation(),e.preventDefault();var n=t(this).parents(".dial-grid-cover-ads-item").data("pos");i.Stat.send("1121.2536.gif",{_referer:n}),i.Stat.send("1133.4860.gif");var a=t(this).attr("href");setTimeout((function(){window.openWin(a,"_blank")}),200)}))}),300)},error:function(e){}})}var l=0;function c(){for(var e=0;e<r.length;e++)i.Stat.send("1121.3748.gif",{_referer:r[e].pos})}e.exports={init:function(){s()},setCoverAdsPosition:function(){if(!window.coverAdsPositionSetted){window.coverAdsPositionSetted=!0,clearInterval(l);var e=0;l=setInterval((function(){var n,i=t(".mosts ul .tile"),a=o.length;if((e>=20||i.length>0&&a>0)&&(console.log("endDataList--------------------------------",o),i.removeClass("hideWeb"),clearInterval(l),i.length>0&&a>0))for(var r=0;r<a;r++){var s=o[r].pos,c=i.eq(s-1);c.length>0&&c.append('\n\t<div class=" dial-grid-cover-ads-item dial-grid-cover-ads-item-'+(n=o[r]).pos+'" data-pos="'+n.pos+'">\n\t\t<a href="'+n.url+'" target="_blank">\n\t\t\t<i class="ads-icon"></i>\n\t\t\t<img src="'+n.img+'">\n\t\t\t<div class="cover-ads-operate">\n\t\t\t\t<span class="cover-ads-delete"></span>\n\t\t\t</div>\n\t\t</a>\n\t</div>\n\t'),c.addClass("hideWeb")}e++}),10)}},sendCoverAdsShowLog:c}}).call(this,n(1))},function(e,t,n){e.exports=n.p+"images/dec63a1e.png"},function(e,t,n){e.exports=n.p+"images/cdd69447.png"},function(e,t,n){e.exports=n.p+"images/c6ac20a7.png"},function(e,t,n){e.exports=n.p+"images/8781a505.png"},function(e,t,n){e.exports=n.p+"images/227eef1a.png"},function(e,t,n){e.exports=n.p+"images/55c875d2.png"},function(e,t,n){e.exports=n.p+"images/60c891b3.png"},function(module,exports,__webpack_require__){"use strict";(function($){function _toConsumableArray(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var util=__webpack_require__(2),searchmaps=__webpack_require__(128),isBigMember=function(){try{external.AppCmd(external.GetSID(window),"","currentskin","","",(function(e,t){if(1==e){var n=t.split("/t");if(t={},n.forEach((function(e,n){var i=e.split(":");t[i[0]]=i[1]})),t.ID>=5e3&&t.ID<=5999){var i=localStorage.getItem("newpagesConfig")||"",a="";(i=i?JSON.parse(i):"")&&i.wallpaperBg&&i.wallpaperBg[t.ID]&&(a=i.wallpaperBg[t.ID]),$("#search-form .search .btn").css({background:a.buttonBg}),$("#search-form .search .search-btn").css({color:a.searchFontColor}),$("#search-form .search .ipt").css({borderColor:a.borderColor})}}}))}catch(e){callback&&callback()}}(),keywordData=[],nullSugObj={},guessObj={},guessData={},placeHolder={},showRecmdSearch=!0,HotKeyword=function(){var e,t,n,i=[],a="https://smart.sug.so.com/suggest?pid=webpage&src=llq_senewtab&needai=1&mid="+util.api.GetMID();function r(e){return $("<div/>").text(e).html()}function o(t,i){if(!t||0==t.button){if($("#search-hotword-update").hide(),util.ScreenShot.capture("delete"),util.storage.set("settings","hide-update-num",(new Date).Format("yyyy-MM-dd")),clearTimeout(window.sug_hide_timeout),n.hasClass("open"))showRecmdSearch=!1,n.removeClass("open"),sugSelect.hide();else if(e.focus(),n.addClass("open"),!i&&util.Stat.send("1549.6801.gif"),i&&util.Stat.send("1549.295.gif"),util.Stat.send("1657.2015.gif",{_referer:"newpages"}),showRecmdSearch=!0,l()){sugSelect.show("hot-keyword");util.Stat.send("336.5186.gif"),$(".suggest_web_warp_hiden").hasClass("show")&&util.Stat.send("1549.110.gif"),function(){if(c)return;c=!0,keywordData.forEach((function(e){e.showid&&util.sendEventPMPShowStat(e)}));var e=[];$('.hot-keyword li[asin!=""]').each((function(t,n){if(e.push($(n).attr("asin")),t%10==9||t==$('.hot-keyword li[asin!=""]').length-1){var i="_stat_img_"+(new Date).getTime();window[i]=new Image,window[i].src="https://xd-q.mediav.com/s?type=1&r=20&asin="+e.join(";"),e=[]}}))}()}return!1}}function s(){util.DC.storage.setCache(a,"")}function l(){var e=1==localStorage.getItem("notShowRecmdSearch")||!1,n=1==localStorage.getItem("hide_recmd_hot_list")||!1;if(e&&$("#reci-auto-show").attr("checked","checked"),n&&$(".null_sug_warp").addClass("hide_hot_recmd_sug_wrap"),!e||showRecmdSearch){$(".search-cat .on").attr("cat-name");var i=keywordData;if(!i.length)return!1;var a=t.find("ul");$(".selectLiImg").remove(),a.empty();var o="",s="",l="",c=[],d=0,u=0;i.forEach((function(e,t){"his"==e.t?o+='<div class="his_key" ><a href="https://www.so.com/s?q='+encodeURIComponent(e.q)+(window._SearchChannel?"&ls="+window._SearchChannel:"")+"&src=360se_newtab_history&ssid="+nullSugObj.ssid+"&"+nullSugObj.ext+'" title="'+e.q+'">'+r(e.q)+'</a><span class="del_his_btn search-sug-delete" data-q="'+encodeURIComponent(e.q)+'"></span></div>':"personal"==e.t&&u<8?(s+='<a class="his_web" href="https://www.so.com/s?q='+encodeURIComponent(e.q)+(window._SearchChannel?"&ls="+window._SearchChannel:"")+"&src=360se_newtab_personal&ssid="+nullSugObj.ssid+"&"+nullSugObj.ext+'" title="'+e.q+'">\n\t\t\t\t\t\t\t\t\t<i class="his_web_icon" '+(e.face?'style="background-image: url('+e.face+')"':"")+"></i>\n\t\t\t\t\t\t\t\t\t"+$.trim(r(e.q))+"\n\t\t\t\t\t\t\t\t</a>",++u):"hot"==e.t&&u<30&&(c.push(e))})),$(".null_sug_warp .his_keys_wrap"),s.length&&$(".null_sug_warp .his_web_warp").empty().append(s).css({display:"grid"});var p=localStorage.getItem("isShowSearchHis"),h=localStorage.getItem("isShowSearchGuess");o.length&&0!=p?($(".null_sug_warp .his_keys_wrap").empty().append(o).removeClass("his_no_data"),$(".clear_history_btn").show()):(0!=p?$(".null_sug_warp .his_keys_wrap").addClass("his_no_data").empty().append("<span></span><p>暂无搜索历史, 快去搜索吧~</p>"):($(".null_sug_warp .his_keys_wrap").addClass("his_no_data").empty().append('<span></span><p class="his_close">搜索历史已关闭，<i>点击开启</i></p>'),$(".his_close i").on("click",(function(e){HotKeyword.getHotWord(!0),localStorage.setItem("isShowSearchHis","1"),changeHisConf("on")}))),$(".clear_history_btn").hide()),c.length>10&&(window.global_hot_news_list=c,c.forEach((function(e,t){(t+1)%10==1&&(l+=t?'</div><div class="hot_so_news_warp hot_so_new_page_'+d+'">':'<div class="hot_so_news_warp hot_so_new_page_'+d+'">',d++),l+='<a class="hot_so_item" href="https://www.so.com/s?q='+encodeURIComponent(e.q)+(window._SearchChannel?"&ls="+window._SearchChannel:"")+"&src=360se_newtab_hot&ssid="+nullSugObj.ssid+"&"+nullSugObj.ext+'" title="'+e.q+'"><span class="hot_so_rank_num">'+(t+1)+".</span>"+r(e.q)+(e.face?'<i class="hot_so_icon" style="background: url('+e.face+') 0 0 / 18px no-repeat"}></i>':"")+" </a>",t==c.length-1&&(l+="</div>")})),$(".null_sug_warp .null_sug_r .modle_content").empty().append(l).attr("data-page",0),$(".null_sug_warp .null_sug_r .modle_h_btn_warp").show()),$(".null_sug_warp").show();var f="";return guessData.length&&0!=h&&($(".suggest_web_warp_hiden").addClass("show"),guessData.forEach((function(e,t){"guess"==e.t&&(f+='<div class="guess_key '+e.face_right+'" ><a href="https://www.so.com/s?q='+encodeURIComponent(e.q)+"&src=360se_newtab_guess&ssid="+guessObj.ssid+"&"+guessObj.ext+'" title="'+e.q+'">'+r(e.q)+'</a><span class="face_right"></span></div>')}))),f.length?($(".null_sug_warp .suggest_web_warp").addClass("show").empty().append(f),$(".null_sug_warp .his_keys_wrap").removeClass("full-width")):($(".null_sug_warp .suggest_web_warp").removeClass("show").empty(),$(".null_sug_warp .his_keys_wrap").addClass("full-width")),!0}}var c=!1;function d(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=1;$.ajax({dataType:"jsonp",type:"GET",url:"https://api.ssl.so.com/placeholder_rec",timeOut:3e3,data:{crec:0,src:"llq_null_senewtab",hisnum:30,mid:util.api.GetMID()},success:function(n){0==n.errno&&n.data.length?(nullSugObj=n,keywordData=[].concat(_toConsumableArray(new Set(n.data))),0==--t&&HotKeyword.ondata(),window.formSelectWordList=keywordData,e&&l()):$(".null_sug_warp").addClass("res_err")},error:function(){$(".null_sug_warp").addClass("res_err")}})}function u(){0!=localStorage.getItem("isShowSearchGuess")&&$.ajax({dataType:"jsonp",type:"GET",url:"https://mini.browser.360.cn/nt/guess",timeOut:3e3,data:{src:0,hisnum:20,mid:util.api.GetMID(),v:util.api.GetVersion()},success:function(e){e.data&&e.data.guess&&e.data.guess.length&&(guessObj=e.data,guessData=[].concat(_toConsumableArray(new Set(e.data.guess))))},error:function(){}})}return{init:function(i){t=$(".ac_results:first"),e=i.on("mousedown",(function(e){var t=1==localStorage.getItem("notShowRecmdSearch")||!1;0==e.button&&(""!=$(this).val()&&$(this).val()!=$(this).attr("_placeholder")||(t||n.hasClass("open")?(showRecmdSearch=!1,n.removeClass("open"),sugSelect.hide()):o()),e.stopPropagation())})),n=$(".search-hot").on("mousedown",(function(e){e.stopPropagation(),o(e,"arrow")})),setSearchFormDefaultWord(),d(),u(),t.delegate(".search-sug-delete,.search-sug-clear","click",(function(e){e.stopPropagation();var t=$(this),n="",i="";return t.hasClass("search-sug-delete")?(n="delete",t.parents("a").remove(),i=decodeURIComponent(t.data("q"))):(n="clear",util.Stat.send("1549.4110.gif")),function(e,t){var n="delete"==e?"Delete":"Clear",i={src:"senewtab",onlymid:util.api.GetMID()};"delete"==e&&(i.q=t||""),$.ajax({url:"https://smart.sug.so.com/history"+n,data:i,dataType:"jsonp",success:function(e){0==e.errno&&(sugSelect.show("hot-keyword"),s(),d(!0))}})}(n,i),e.preventDefault(),!1})).delegate("a","click",(function(e){var t="";switch(localStorage.getItem("flowMode")){case"newsflow_a":t="1579.6171.gif";break;case"newsflow_b":t="1579.7079.gif";break;case"newsflow_c":t="1579.8724.gif";break;case"newsflow_d":t="1579.2338.gif"}t&&util.Stat.sendFlow(t,{_referer:"search"});$.trim($(this).text());window.open($(this).attr("href"),"_self"),e.preventDefault()})).delegate(".change_hot_page_btn","click",(function(e){e.stopPropagation();var t=1*$(".null_sug_r .modle_content").attr("data-page"),n=Math.floor(window.global_hot_news_list.length/10);$(".hot_so_new_page_"+t).fadeOut(100,(function(){$(".null_sug_r .modle_content").attr("data-page",(t+1)%n),$(".hot_so_new_page_"+(t+1)%n).fadeIn()})),util.Stat.send("1549.6306.gif"),e.preventDefault()})).delegate(".hide_hot_recmd","click",(function(e){e.stopPropagation(),$(".null_sug_warp").addClass("hide_hot_recmd_sug_wrap"),localStorage.setItem("hide_recmd_hot_list",1),util.Stat.send("1549.1738.gif"),e.preventDefault()})).delegate(".show_hot_recmd_btn","click",(function(e){e.stopPropagation(),$(".null_sug_warp").removeClass("hide_hot_recmd_sug_wrap"),util.Stat.send("1549.3976.gif"),localStorage.setItem("hide_recmd_hot_list",0),e.preventDefault()})).delegate(".his_key","click",(function(e){e.stopPropagation(),util.Stat.send("1549.1602.gif"),util.Stat.send("1657.6977.gif",{_referer:"history-query"}),e.preventDefault()})).delegate(".guess_key","click",(function(e){e.stopPropagation(),util.Stat.send("1549.933.gif",{_referer:$.trim($(this).text())}),e.preventDefault()})).delegate(".hot_so_item","click",(function(e){e.stopPropagation(),util.Stat.send("1549.7336.gif"),util.Stat.send("1657.6977.gif",{_referer:"hot-search"}),e.preventDefault()})).delegate(".his_web","click",(function(e){e.stopPropagation(),util.Stat.send("1549.2281.gif"),util.Stat.send("1657.6977.gif",{_referer:"recommend"}),e.preventDefault()}))},ondata:function(){var e,t=0;keywordData[1]&&1!=keywordData[1].locked&&(e=i[t++])&&(keywordData[1]={text:e[0],link:e[1],asin:e[3]}),keywordData[3]&&1!=keywordData[3].locked&&(e=i[t++])&&(keywordData[3]={text:e[0],link:e[1],asin:e[3]}),keywordData[5]&&1!=keywordData[5].locked&&(e=i[t++])&&(keywordData[5]={text:e[0],link:e[1],asin:e[3]}),n.show(),function(){if(util.storage.get("settings")["hide-update-num"]!=(new Date).Format("yyyy-MM-dd")){$(".search-cat .on").attr("cat-name");var e=0;keywordData.forEach((function(t){"1"==t.new&&e++})),e>0&&($("#search-hotword-update").text(e),"search"!=window.mode&&$("#search-hotword-update").show())}}()},clearSugExpires:s,getHotWord:d,getGuess:u}}(),SearchForm=function(){var searchMaps=searchmaps,M2="";util.api.GetMID2((function(e){M2=e}));var searchTypeMaps={webpage:["so","sou","google","bing","baidu"],news:["news_so","news_google","news_bing","news_baidu"],video:["video_so","video_google","video_bing","video_baidu"],image:["image_so","image_google","image_bing","image_baidu"],music:["music_so","music_sogou","music_bing","music_baidu"],map:["map_so","map_google","map_bing","map_baidu"],wenda:["wenda_so","wenda_baidu"]};function saveSetting(e,t){var n=localStorage.settings;n="[]"===n?"{}":n;var i=localStorage.settings=n;try{i=JSON.parse(i)}catch(e){i={}}i[e]=t,localStorage.settings=JSON.stringify(i)}function loadSettings(){var settingsVal=localStorage.settings;settingsVal="[]"===settingsVal?"{}":settingsVal;var settings=localStorage.settings=settingsVal;try{settings=JSON.parse(settings)}catch(e){settings={}}for(var k in settings)try{eval(settings[k])}catch(e){}setSearchType("webpage")}function setSearchType(e){$(".search-cat > a").removeClass("on").filter("[cat-name="+e+"]").addClass("on");var t=searchTypeMaps[e];if(t){$(".search-menu").empty(),t.forEach((function(e){var t=searchMaps[e]||{};"so"!=e&&"news_so"!=e&&"video_so"!=e&&"image_so"!=e&&"music_so"!=e&&"map_so"!=e||$(".search-menu").append('<li data-engin="default"><a __href="#" class="'+searchMaps.default.type+'"></a>'+searchMaps.default.desc+"</li>"),$(".search-menu").append('<li data-engin="'+t.type+'"><a __href="#" class="'+t.type+'"></a>'+t.desc+"</li>")}));var n=$(".search-menu ."+util.storage.get("default_engine")[e]);return 0==n.length&&(n=$(".search-menu a:first")),"search"==window.mode&&(n=$(".search-menu .so")),n.trigger("click"),saveSetting("search_type",'setSearchType("'+e+'")'),!0}return!1}function showGuideAi(){var e=localStorage.getItem("default_engine")||"{}",t=localStorage.getItem("guide_ai");try{var n=JSON.parse(e).webpage;if("sou"===(void 0===n?"":n)||t)return;setTimeout((function(){$("#search-switch a").trigger("click"),localStorage.setItem("guide_ai","1"),$(".guide-ai-box").css({opacity:1}),util.Stat.send("1609.791.gif")}),50),$(".close-icon").on("click",(function(e){e.stopPropagation(),$(".guide-ai-box").css({opacity:0}),$(".search-menu").slideUp()})),$(".btn-guide").on("click",(function(){$(".guide-ai-box").css({opacity:0}),$(".search-menu li").eq(2).click(),util.Stat.send("1609.7018.gif")}))}catch(e){}}var baiduHasTN=!1;function isAddTN(){var e=util.api.GetMID().slice(-2);e=parseInt(e,16),e=Math.ceil(e/255*100);var t=localStorage.getItem("newpagesConfig")||"",n=(t=t?JSON.parse(t):{}).withTN||{},i="";if((n.ceil||0)>e){var a=n.tn||[],r=a.length||0;r>0&&(i=a[e%r]||"")}return i}function setSearch(e){if("baidu"===e.type){var t=isAddTN();if(t)for(var n in baiduHasTN=!0,t)e.params[n]=t[n];else baiduHasTN=!1}$("#search-switch>a")[0].className=e.type,$("#search-form").attr("action",e.url),$("#search-kw").attr("name",e.key),$("#search-form input[type=hidden]").remove(),$("#search-form").attr("default-url",e.default_url||"");var i="",a=e.params;if("so"!=window.clientSearchEngin&&"default"==window.pageSearchEngin&&"search"!=window.mode&&(i="zhss_",window._SearchChannel&&(a.ls=window._SearchChannel)),a)for(var n in a){var r=document.createElement("input");if(r.type="hidden",r.name=n,"src"!=n||"so"!=e.type&&"default"!=e.type)r.value=a[n];else{var o=null;o="search"==window.mode?i+"se7_home_www":window.isNavSearchFormFixed?i+"se7_newtab_head":i+"se7_newtab_big",r.value=o}$("#search-form").append(r)}}function bindEvents(){var e=$("#search-switch");$("#search-form").on("submit",(function(e){var t=$("#current-engine")[0].className,n=(window.mode,$("#search-kw")),i=n.val();HotKeyword.clearSugExpires(),window._SearchChannel&&["so","default"].includes(t)&&!$('input[type="hidden"][name="ls"]').length&&$("#search-form").append('<input type="hidden" name="ls" value="'+window._SearchChannel+'" />');var a={};"so"==t?a._referer="360":"google"==t?a._referer="google":"baidu"==t?(a._referer="baidu",baiduHasTN&&util.Stat.send("1340.9951.gif")):"bing"==t?a._referer="bing":"default"==t?a._referer="360":"sou"==t&&(util.Stat.send("1609.3778.gif"),a._referer="sou");var r="";if(e.isTrigger){"navFixedHot"==window.autoCompleteSearchType&&util.Stat.send("963.5976.gif",a),"navFixedSug"==window.autoCompleteSearchType&&util.Stat.send("963.726.gif",a),util.puvDot({s:25,n:1,item_id:1});var o=$("#search-form").attr("sug-ai");1==+o?r="sug-ai":0==+o&&(r="sug-search")}else{if(util.Stat.send("1207.3265.gif",{_referer:window.mode}),"nav"!=window.mode&&"dial"!=window.mode||util.Stat.send("963.3123.gif",a),window.isNavSearchFormFixed&&util.Stat.send("963.6454.gif",a),util.Stat.searchPV(),util.Stat.send("1549.100.gif"),util.puvDot({s:25,n:1,item_id:2}),""===i&&""!=n.attr("placeholder")&&n.data("link")&&(util.Stat.setLog(event_searchClick.join(",")),util.openUrl(n.data("link")),e.preventDefault()),""===i&&""!=n.attr("placeholder")){r="shading",n.val(n.attr("placeholder"));var s={};if(placeHolder.nlpv&&Object.keys(placeHolder.nlpv).length)for(var l in placeHolder.nlpv)s[l]=placeHolder.nlpv[l];if(placeHolder.ssid&&(s.ssid=placeHolder.ssid),Object.keys(s).length)for(var l in s){var c=document.createElement("input");c.type="hidden",c.name=l,c.className="hiddenSRCParams",c.value=s[l],$("#search-form").append(c)}$("#search-form").find(':hidden[name="src"]').val(placeHolder.src),setTimeout((function(){$(".hiddenSRCParams").remove()}))}else r="query";var d=window.oftenSoWordList||[],u=keywordData||[],p=n.val(),h=!1;if(p){for(var f=0;f<d.length;f++)if(d[f].so_kw==p){util.Stat.send("1035.8150.gif"),h=!0;break}if(!h)for(f=0;f<u.length;f++)if(u[f].word==p){util.Stat.send("1035.8928.gif"),h=!0;break}}}sendStat(r)})),e.delegate("a","click",(function(t){if(!window.useDefaultSearchEngin){var n=$(".search-menu"),i=e.position().top+e.height();n.is(":visible")?n.slideUp():(n.css("top",i).slideDown(),util.Stat.send("963.9403.gif"))}})),$(document).on("click",(function(e){"search-switch"==e.target.id||$(e.target).parents("#search-switch").length||$(e.target).parents(".search-menu").length||$(".search-menu").slideUp()})),$(document).delegate(".search-menu li","click",(function(e,t){var n,i=e.target.className||e.target.firstElementChild.className;(n=searchMaps[i],$(".guide-ai-box").css({opacity:0}),n)&&(window.pageSearchEngin=$(this).data("engin"),util.storage.get("default_engine").webpage!==window.pageSearchEngin&&"sou"===window.pageSearchEngin&&util.Stat.send("1609.4880.gif"),setSearch(n),$(this).addClass("activeEnginItem").siblings().removeClass("activeEnginItem"),$(".search-menu").is(":visible")&&($(".search-menu").slideUp((function(){$(this).removeClass("open"),""==$("#search-kw").val()?util.ScreenShot.capture("SearchEngineChanged"):util.ScreenShot.capture("delete")})),saveSetting("search","setSearch("+JSON.stringify(n)+");"),util.storage.set("default_engine",$(".search-cat .on").attr("cat-name"),n.type)))})),$(document).on("scroll",(function(e){$("body").hasClass("mode-nav")&&($(".search-form-bg")[0].getBoundingClientRect().top<=-2?$("#search-form-box").addClass("sticky"):$("#search-form-box").removeClass("sticky"))})),$("#search-kw").on("focus",(function(){$(".guide-ai-box").css({opacity:0})})),$(".searchSettingContainer").on("click",(function(e){$(".searchSettingContainer").removeClass("show")})),$(".searchSettingBox").on("click",(function(e){e.stopPropagation()})),$(".close-search-setting").on("click",(function(e){$(".searchSettingContainer").removeClass("show")})),$(".searchHisSwitch").on("click",(function(e){$(this).toggleClass("open"),$(this).find(".SwitchPoint").toggleClass("active"),$(this).hasClass("open")?(localStorage.setItem("isShowSearchHis","1"),HotKeyword.getHotWord()):localStorage.setItem("isShowSearchHis","0"),changeHisConf($(this).hasClass("open")?"on":"off")})),$(".guessSearchSwitch").on("click",(function(e){$(this).toggleClass("open"),$(this).find(".SwitchPoint").toggleClass("active"),$(this).hasClass("open")?($(".suggest_web_warp_hiden").addClass("show"),localStorage.setItem("isShowSearchGuess","1"),HotKeyword.getGuess()):($(".suggest_web_warp_hiden").removeClass("show"),localStorage.setItem("isShowSearchGuess","0"))}))}function sendStat(e){util.Stat.send("1657.6977.gif",{_referer:e})}function init(){bindEvents(),loadSettings(),setTimeout((function(){if(("nav"==window.mode||"dial"==window.mode)&&!window.isSearchInputShow){var e=$("#current-engine")[0].className,t={};"so"==e?t._referer="360":"google"==e?t._referer="google":"baidu"==e?t._referer="baidu":"bing"==e?t._referer="bing":"default"==e&&(t._referer="360"),util.Stat.send("963.6516.gif",t),window.isSearchInputShow=!0}var n=localStorage.getItem("dial-page-set")||-1;"dial"==window.mode&&[0,1].includes(n)&&util.Stat.send("1549.5483.gif",{_referer:window.pageSearchEngin})}),1e3);var e={zhida:!0,selectFirst:!1,type:"jsonp",resultsClass:"ac_results",dataType:"jsonp",width:"calc(100% - 2px)",scrollHeight:400,offset:{left:-1,top:0},onbeforeshow:function(e){return $(".search-menu").hide(),e&&e(),!0},parse:function(e){var t=[],n={};return e.data.ext&&(n=util.splitUrl(e.data.ext)),e.data.result.forEach((function(i,a){t.push({searched:"his"==i.resrc,data:[util.htmlEncode(i.word)],value:util.htmlEncode(i.word),result:i.word,ssid:e.data.ssid,nlpv:n,resultai:!1})})),e.data.resultai&&e.data.resultai.forEach((function(i,a){t.push({searched:"his"==i.resrc,data:[util.htmlEncode(i.word)],value:util.htmlEncode(i.word),result:i.word,ssid:e.data.ssid,nlpv:n,resultai:!0})})),t}},t="https://smart.sug.so.com/suggest?pid=webpage&src=llq_senewtab&needai=1&mid="+util.api.GetMID(),n={so:"https://smart.sug.so.com/suggest?pid=webpage&src=llq_senewtab&needai=1&mid="+util.api.GetMID(),sou:"https://capi.browser.360.cn/proxy/api/v1/common/sug?pid=webpage&src=360se_mainpage_sug&count=10&encode_in=utf-8&encode_out=utf-8&format=json&mid="+util.api.GetMID()+"&ver="+util.api.GetVersion()+"&m2="+M2};$("#search-kw").autocomplete(t,e,n).on("result",(function(e,t){util.Stat.send("1549.8358.gif"),util.Stat.searchPV();var n=$(".search-menu li"),i="so";if(Array.from(n).forEach((function(e){var t=e.dataset.engin;"activeEnginItem"===e.className&&["sou","so"].includes(t)&&(i=t)})),t.resultai?(i="sou",$("#search-form").attr("sug-ai",1)):$("#search-form").attr("sug-ai",0),setSearch(searchMaps[i]),t.link){var a=t.link;if(t.showid){for(var r={x:"",y:""},o=t.clktk||[],s=0;s<o.length;s++){var l=o[s].replace("__EVENT_TIME_START__",window._timestamp_mousedown).replace("__EVENT_TIME_END__",window._timestamp_mouseup).replace("__OFFSET_X__",r.x).replace("__OFFSET_Y__",r.y);(new Image).src=decodeURIComponent(l)}a=a.replace("__EVENT_TIME_START__",window._timestamp_mousedown).replace("__EVENT_TIME_END__",window._timestamp_mouseup).replace("__OFFSET_X__",r.x).replace("__OFFSET_Y__",r.y)}setTimeout((function(){util.openUrl(a)}),300)}else{var c=$(this).parents("form"),d=null,u="";if("so"==window.clientSearchEngin&&"so"!=window.pageSearchEngin&&"default"!=window.pageSearchEngin&&"search"!=window.mode&&(u="zhss_"),"so"!=window.clientSearchEngin&&"so"!=window.pageSearchEngin&&"search"!=window.mode&&(u="zhss_"),"search"==window.mode)d=$(".ac_results:first").hasClass("hot-keyword")?u+"se7_home_hot":u+"se7_home_suggst",window.autoCompleteSearchType=null;else if($(".ac_results:first").hasClass("hot-keyword"))window.isNavSearchFormFixed?(d=u+"se7_newtab_head_hot",window.autoCompleteSearchType="navFixedHot"):(d=u+"se7_newtab_big_hot",window.autoCompleteSearchType=null);else{t.resultai?(d=u+"360ai_so_se_newsug",window.autoCompleteSearchType=null):window.isNavSearchFormFixed?(d=u+"se7_newtab_head_sug",window.autoCompleteSearchType="navFixedSug"):(d=u+"se7_newtab_big_sug",window.autoCompleteSearchType=null);var p={};if(t.resultai&&(p.s_type="l"),t.nlpv&&Object.keys(t.nlpv).length)for(var h in t.nlpv)p[h]=t.nlpv[h];if(t.ssid&&(p.ssid=t.ssid),Object.keys(p).length)for(var h in p){var f=document.createElement("input");f.type="hidden",f.name=h,f.className="hiddenSRCParams",f.value=p[h],$("#search-form").append(f)}}c.find(':hidden[name="src"]').val(d);setTimeout((function(){c.trigger("submit"),setTimeout((function(){$(".hiddenSRCParams").remove()}))}),300)}})).on("focus",(function(e){"sou"===window.pageSearchEngin&&util.Stat.send("1609.8176.gif")})).on("blur",(function(e){})),$(window).on("newpages:firstPageOnLoad",(function(){})).on("unload",(function(){HotKeyword.clearSugExpires()}))}return{init:init}}(),SugHotWords=function(){var e=!1,t=[],n=0,i=!1,a=$(".sug-hotword-wrap"),r=$(".sug-hotword-container");function o(){util.DC.get('https://site.browser.360.cn/msgmodel.php?callback=?&mt=["newsall"]',{v:util.api.GetVersion()},(function(n){var a=n&&n.data&&n.data.newsall;a&&a.length>0&&(t=a,r.append(""),s(3),setInterval((function(){i||r.animate({top:"-20px"},500,(function(){r.css("top",0).children()[0].remove(),s()}))}),5e3),e=!0)}),6e5,!0,(function(){}),!0)}function s(e){var i="",a=0,o=t.length,s=0;for(e=e||1;a<e;)s=(n+a++)%o,i+='<li class="sug-hotword-item"><a class="sug-hotword-link" href="https://www.so.com/s?ie=utf-8&q={kw}&src=se_newtab" target="_blank" title="{kw}">{kw}</a></li>'.replace(/{([^{}]+)}/gi,t[s++].text);n=s%o,r.append(i)}return r.delegate(".sug-hotword-item","mouseover",(function(e){i=!0})).delegate(".sug-hotword-item","mouseout",(function(e){i=!1})).delegate(".sug-hotword-link","click",(function(e){HotKeyword.clearSugExpires()})),{show:function(){0!=util.storage.get("settings")["sugwords-show"]&&(!e&&o(),a.show())},hide:function(){a.hide()},setState:function(e){util.storage.set("settings","sugwords-show",!!e),e?SugHotWords.show():SugHotWords.hide()}}}();function changeHisConf(e){$.ajax({url:"https://smart.sug.so.com/history/conf?s="+e,type:"GET",timeout:3e3,xhrFields:{withCredentials:!0},data:{mid:util.api.GetMID(),v:util.api.GetVersion()}})}function setSearchFormDefaultWord(){if(!1!==util.storage.get("search_form_options")["enable-show-placeholder"]){var e={src:"llq_placeholder",mid:util.api.GetMID(),crec:1==localStorage.getItem("isShowpersonalSearch")?1:0};$.ajax({url:"https://api.ssl.so.com/placeholder_rec",data:e,dataType:"jsonp",success:function(e){if(console.log(e),e.result&&e.result.word){var t={};e.ext&&(t=util.splitUrl(e.ext)),placeHolder={ssid:e.ssid,src:"360se_newtab_diwen",nlpv:t},!1!==(util.storage.get("search_form_options")||{})["enable-show-placeholder"]&&$("#search-kw").attr("placeholder",e.result.word),util.storage.set("search_form_options","search-form-placeholder",e.result.word)}},error:function(){setTimeout((function(){var e=window.oftenSoWordList||[],t=keywordData||[],n=[];if(Math.random().toFixed(2)>.5){for(var i=0;i<e.length;i++)if(e[i].so_kw){var a={desc:e[i].so_kw,type:"oftenSo"};n.push(a)}}else for(i=0;i<t.length;i++)if(t[i].word){var r={desc:t[i].word,type:"keyWord"};n.push(r)}if(n.length){var o=Math.floor(Math.random()*n.length);!1!==(util.storage.get("search_form_options")||{})["enable-show-placeholder"]&&$("#search-kw").attr("placeholder",n[o].desc),util.storage.set("search_form_options","search-form-placeholder",n[o].desc)}}),1e3)}})}else $("#search-kw").attr("placeholder","")}var searchFormOptions=util.storage.get("search_form_options")||{};!1===searchFormOptions["enable-show-placeholder"]?$(".enable-show-placeholder").attr("checked",!1):$(".enable-show-placeholder").attr("checked",!0),$(".enable-show-placeholder").change((function(){if(util.storage.set("search_form_options","enable-show-placeholder",this.checked),this.checked){var e=util.storage.get("search_form_options"),t=e&&e["search-form-placeholder"]||"";$("#search-kw").attr("placeholder",t)}else $("#search-kw").attr("placeholder","")})),module.exports={SugHotWords:SugHotWords,HotKeyword:HotKeyword,SearchForm:SearchForm}}).call(this,__webpack_require__(1))},function(e,t,n){"use strict";(function(t){var i=n(2),a=n(12),r=function(e){var n=Object.assign({},e),a={url:"https://papi.look.360.cn/cube_list",data:{u:i.api.GetMID(),n:10,f:"jsonp",version:i.api.GetVersion(),net:5,device:2,sv:8,page:1,sub_scene:1,stype:"portal"}};this.options=t.extend(!0,a,n)};r.prototype={getNewsData:function(e){var n=t.extend(this.options.data,e);return t.ajax({url:this.options.url,dataType:"jsonp",timeout:2e3,data:n})},filterNewsData:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e||!e.length)return[];for(var i=[],r=0;r<e.length;r++){var o=e[r],s={};t.extend(s,n),s.randomId="rid"+Math.random().toString(36).slice(-8),s.dataType="news",s.imgs=o.i&&o.i.split("|")||[],s.img=s.imgs&&s.imgs[0]||"",s.errorimg=a,s.title=o.t||"",s.from=o.f||"",s.source=o.source||"",s.jrbdUrl=o.u||o.rawurl||"",s.url=o.pcurl||"",s.url_encode=encodeURIComponent(s.url),s.ct="0",s.desc=o.t||"",s.c=o.c||"",s.a=o.a||"",s.s=o.s||"",s.gnid=o.gnid||"",s.style="",s.zmt=o.zmt||{},s.exDataSource=o.exData||"",s.exData=o.exData?JSON.parse(window.atob(o.exData)):{},s.video=s.exData.playUrl||o.video||"",s.poster1=s.img,s.poster2=o.lv_image||"",i.push(s)}return i},jrbdLog:function(e,n){var a=null,r={uid:i.api.GetMID(),sign:n.sign,version:i.api.GetVersion(),device:2,net:5,stype:"portal",t:Date.now(),channel:n.channel,sqid:1,act:"show"==e?"real_show":"click",scene:n.scene||"",sub_scene:1,n:1,title:n.title,where:n.where||""};if("show"==e){a="https://news.qhstatic.com/srv/c";var o=[];o.push([n.gnid||"",n.a||"",n.c||"",n.source||"",n.s||"",n.style||"","2000",n.sid||""]),r.func="pc_news_realshow",r.url_pack=JSON.stringify(o)}"click"==e&&(a="https://papi.look.360.cn/srv/c",r.url=n.jrbdUrl||"",r.sid=n.sid||"",r.a=n.a||"",r.c=n.c||"",r.source=n.source||"",r.s=n.s||"",r.style=n.style||"",r.gnid=n.gnid||"",r.ext=n.ext||""),t.ajax({url:a,dataType:"jsonp",data:r})}};e.exports={CubeListNews:r}}).call(this,n(1))},function(e,t,n){"use strict";var i,a,r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(o,s){"object"==r(t)&&void 0!==e?e.exports=s():void 0===(a="function"==typeof(i=s)?i.call(t,n,t,e):i)||(e.exports=a)}(0,(function(){var e="undefined"==typeof document?{body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},location:{hash:""}}:document,t="undefined"==typeof window?{document:e,navigator:{userAgent:""},location:{},history:{},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){}}:window,n=function(e){for(var t=0;t<e.length;t+=1)this[t]=e[t];return this.length=e.length,this};function i(i,a){var r=[],o=0;if(i&&!a&&i instanceof n)return i;if(i)if("string"==typeof i){var s,l,c=i.trim();if(c.indexOf("<")>=0&&c.indexOf(">")>=0){var d="div";for(0===c.indexOf("<li")&&(d="ul"),0===c.indexOf("<tr")&&(d="tbody"),0!==c.indexOf("<td")&&0!==c.indexOf("<th")||(d="tr"),0===c.indexOf("<tbody")&&(d="table"),0===c.indexOf("<option")&&(d="select"),(l=e.createElement(d)).innerHTML=c,o=0;o<l.childNodes.length;o+=1)r.push(l.childNodes[o])}else for(s=a||"#"!==i[0]||i.match(/[ .<>:~]/)?(a||e).querySelectorAll(i.trim()):[e.getElementById(i.trim().split("#")[1])],o=0;o<s.length;o+=1)s[o]&&r.push(s[o])}else if(i.nodeType||i===t||i===e)r.push(i);else if(i.length>0&&i[0].nodeType)for(o=0;o<i.length;o+=1)r.push(i[o]);return new n(r)}function a(e){for(var t=[],n=0;n<e.length;n+=1)-1===t.indexOf(e[n])&&t.push(e[n]);return t}i.fn=n.prototype,i.Class=n,i.Dom7=n;var o={addClass:function(e){if(void 0===e)return this;for(var t=e.split(" "),n=0;n<t.length;n+=1)for(var i=0;i<this.length;i+=1)void 0!==this[i].classList&&this[i].classList.add(t[n]);return this},removeClass:function(e){for(var t=e.split(" "),n=0;n<t.length;n+=1)for(var i=0;i<this.length;i+=1)void 0!==this[i].classList&&this[i].classList.remove(t[n]);return this},hasClass:function(e){return!!this[0]&&this[0].classList.contains(e)},toggleClass:function(e){for(var t=e.split(" "),n=0;n<t.length;n+=1)for(var i=0;i<this.length;i+=1)void 0!==this[i].classList&&this[i].classList.toggle(t[n]);return this},attr:function(e,t){var n=arguments;if(1===arguments.length&&"string"==typeof e)return this[0]?this[0].getAttribute(e):void 0;for(var i=0;i<this.length;i+=1)if(2===n.length)this[i].setAttribute(e,t);else for(var a in e)this[i][a]=e[a],this[i].setAttribute(a,e[a]);return this},removeAttr:function(e){for(var t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this},data:function(e,t){var n;if(void 0!==t){for(var i=0;i<this.length;i+=1)(n=this[i]).dom7ElementDataStorage||(n.dom7ElementDataStorage={}),n.dom7ElementDataStorage[e]=t;return this}if(n=this[0])return n.dom7ElementDataStorage&&e in n.dom7ElementDataStorage?n.dom7ElementDataStorage[e]:n.getAttribute("data-"+e)||void 0},transform:function(e){for(var t=0;t<this.length;t+=1){var n=this[t].style;n.webkitTransform=e,n.transform=e}return this},transition:function(e){"string"!=typeof e&&(e+="ms");for(var t=0;t<this.length;t+=1){var n=this[t].style;n.webkitTransitionDuration=e,n.transitionDuration=e}return this},on:function(){for(var e,t=[],n=arguments.length;n--;)t[n]=arguments[n];var a=t[0],r=t[1],o=t[2],s=t[3];function l(e){var t=e.target;if(t){var n=e.target.dom7EventData||[];if(n.indexOf(e)<0&&n.unshift(e),i(t).is(r))o.apply(t,n);else for(var a=i(t).parents(),s=0;s<a.length;s+=1)i(a[s]).is(r)&&o.apply(a[s],n)}}function c(e){var t=e&&e.target&&e.target.dom7EventData||[];t.indexOf(e)<0&&t.unshift(e),o.apply(this,t)}"function"==typeof t[1]&&(a=(e=t)[0],o=e[1],s=e[2],r=void 0),s||(s=!1);for(var d,u=a.split(" "),p=0;p<this.length;p+=1){var h=this[p];if(r)for(d=0;d<u.length;d+=1){var f=u[d];h.dom7LiveListeners||(h.dom7LiveListeners={}),h.dom7LiveListeners[f]||(h.dom7LiveListeners[f]=[]),h.dom7LiveListeners[f].push({listener:o,proxyListener:l}),h.addEventListener(f,l,s)}else for(d=0;d<u.length;d+=1){var g=u[d];h.dom7Listeners||(h.dom7Listeners={}),h.dom7Listeners[g]||(h.dom7Listeners[g]=[]),h.dom7Listeners[g].push({listener:o,proxyListener:c}),h.addEventListener(g,c,s)}}return this},off:function(){for(var e,t=[],n=arguments.length;n--;)t[n]=arguments[n];var i=t[0],a=t[1],r=t[2],o=t[3];"function"==typeof t[1]&&(i=(e=t)[0],r=e[1],o=e[2],a=void 0),o||(o=!1);for(var s=i.split(" "),l=0;l<s.length;l+=1)for(var c=s[l],d=0;d<this.length;d+=1){var u=this[d],p=void 0;if(!a&&u.dom7Listeners?p=u.dom7Listeners[c]:a&&u.dom7LiveListeners&&(p=u.dom7LiveListeners[c]),p&&p.length)for(var h=p.length-1;h>=0;h-=1){var f=p[h];r&&f.listener===r?(u.removeEventListener(c,f.proxyListener,o),p.splice(h,1)):r||(u.removeEventListener(c,f.proxyListener,o),p.splice(h,1))}}return this},trigger:function(){for(var n=[],i=arguments.length;i--;)n[i]=arguments[i];for(var a=n[0].split(" "),r=n[1],o=0;o<a.length;o+=1)for(var s=a[o],l=0;l<this.length;l+=1){var c=this[l],d=void 0;try{d=new t.CustomEvent(s,{detail:r,bubbles:!0,cancelable:!0})}catch(t){(d=e.createEvent("Event")).initEvent(s,!0,!0),d.detail=r}c.dom7EventData=n.filter((function(e,t){return t>0})),c.dispatchEvent(d),c.dom7EventData=[],delete c.dom7EventData}return this},transitionEnd:function(e){var t,n=["webkitTransitionEnd","transitionend"],i=this;function a(r){if(r.target===this)for(e.call(this,r),t=0;t<n.length;t+=1)i.off(n[t],a)}if(e)for(t=0;t<n.length;t+=1)i.on(n[t],a);return this},outerWidth:function(e){if(this.length>0){if(e){var t=this.styles();return this[0].offsetWidth+parseFloat(t.getPropertyValue("margin-right"))+parseFloat(t.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null},outerHeight:function(e){if(this.length>0){if(e){var t=this.styles();return this[0].offsetHeight+parseFloat(t.getPropertyValue("margin-top"))+parseFloat(t.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null},offset:function(){if(this.length>0){var n=this[0],i=n.getBoundingClientRect(),a=e.body,r=n.clientTop||a.clientTop||0,o=n.clientLeft||a.clientLeft||0,s=n===t?t.scrollY:n.scrollTop,l=n===t?t.scrollX:n.scrollLeft;return{top:i.top+s-r,left:i.left+l-o}}return null},css:function(e,n){var i;if(1===arguments.length){if("string"!=typeof e){for(i=0;i<this.length;i+=1)for(var a in e)this[i].style[a]=e[a];return this}if(this[0])return t.getComputedStyle(this[0],null).getPropertyValue(e)}if(2===arguments.length&&"string"==typeof e){for(i=0;i<this.length;i+=1)this[i].style[e]=n;return this}return this},each:function(e){if(!e)return this;for(var t=0;t<this.length;t+=1)if(!1===e.call(this[t],t,this[t]))return this;return this},html:function(e){if(void 0===e)return this[0]?this[0].innerHTML:void 0;for(var t=0;t<this.length;t+=1)this[t].innerHTML=e;return this},text:function(e){if(void 0===e)return this[0]?this[0].textContent.trim():null;for(var t=0;t<this.length;t+=1)this[t].textContent=e;return this},is:function(a){var r,o,s=this[0];if(!s||void 0===a)return!1;if("string"==typeof a){if(s.matches)return s.matches(a);if(s.webkitMatchesSelector)return s.webkitMatchesSelector(a);if(s.msMatchesSelector)return s.msMatchesSelector(a);for(r=i(a),o=0;o<r.length;o+=1)if(r[o]===s)return!0;return!1}if(a===e)return s===e;if(a===t)return s===t;if(a.nodeType||a instanceof n){for(r=a.nodeType?[a]:a,o=0;o<r.length;o+=1)if(r[o]===s)return!0;return!1}return!1},index:function(){var e,t=this[0];if(t){for(e=0;null!==(t=t.previousSibling);)1===t.nodeType&&(e+=1);return e}},eq:function(e){if(void 0===e)return this;var t,i=this.length;return new n(e>i-1?[]:e<0?(t=i+e)<0?[]:[this[t]]:[this[e]])},append:function(){for(var t,i=[],a=arguments.length;a--;)i[a]=arguments[a];for(var r=0;r<i.length;r+=1){t=i[r];for(var o=0;o<this.length;o+=1)if("string"==typeof t){var s=e.createElement("div");for(s.innerHTML=t;s.firstChild;)this[o].appendChild(s.firstChild)}else if(t instanceof n)for(var l=0;l<t.length;l+=1)this[o].appendChild(t[l]);else this[o].appendChild(t)}return this},prepend:function(t){var i,a;for(i=0;i<this.length;i+=1)if("string"==typeof t){var r=e.createElement("div");for(r.innerHTML=t,a=r.childNodes.length-1;a>=0;a-=1)this[i].insertBefore(r.childNodes[a],this[i].childNodes[0])}else if(t instanceof n)for(a=0;a<t.length;a+=1)this[i].insertBefore(t[a],this[i].childNodes[0]);else this[i].insertBefore(t,this[i].childNodes[0]);return this},next:function(e){return this.length>0?e?this[0].nextElementSibling&&i(this[0].nextElementSibling).is(e)?new n([this[0].nextElementSibling]):new n([]):this[0].nextElementSibling?new n([this[0].nextElementSibling]):new n([]):new n([])},nextAll:function(e){var t=[],a=this[0];if(!a)return new n([]);for(;a.nextElementSibling;){var r=a.nextElementSibling;e?i(r).is(e)&&t.push(r):t.push(r),a=r}return new n(t)},prev:function(e){if(this.length>0){var t=this[0];return e?t.previousElementSibling&&i(t.previousElementSibling).is(e)?new n([t.previousElementSibling]):new n([]):t.previousElementSibling?new n([t.previousElementSibling]):new n([])}return new n([])},prevAll:function(e){var t=[],a=this[0];if(!a)return new n([]);for(;a.previousElementSibling;){var r=a.previousElementSibling;e?i(r).is(e)&&t.push(r):t.push(r),a=r}return new n(t)},parent:function(e){for(var t=[],n=0;n<this.length;n+=1)null!==this[n].parentNode&&(e?i(this[n].parentNode).is(e)&&t.push(this[n].parentNode):t.push(this[n].parentNode));return i(a(t))},parents:function(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].parentNode;r;)e?i(r).is(e)&&t.push(r):t.push(r),r=r.parentNode;return i(a(t))},closest:function(e){var t=this;return void 0===e?new n([]):(t.is(e)||(t=t.parents(e).eq(0)),t)},find:function(e){for(var t=[],i=0;i<this.length;i+=1)for(var a=this[i].querySelectorAll(e),r=0;r<a.length;r+=1)t.push(a[r]);return new n(t)},children:function(e){for(var t=[],r=0;r<this.length;r+=1)for(var o=this[r].childNodes,s=0;s<o.length;s+=1)e?1===o[s].nodeType&&i(o[s]).is(e)&&t.push(o[s]):1===o[s].nodeType&&t.push(o[s]);return new n(a(t))},remove:function(){for(var e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this},add:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n,a;for(n=0;n<e.length;n+=1){var r=i(e[n]);for(a=0;a<r.length;a+=1)this[this.length]=r[a],this.length+=1}return this},styles:function(){return this[0]?t.getComputedStyle(this[0],null):{}}};Object.keys(o).forEach((function(e){i.fn[e]=o[e]}));var s,l,c,d={deleteProps:function(e){var t=e;Object.keys(t).forEach((function(e){try{t[e]=null}catch(e){}try{delete t[e]}catch(e){}}))},nextTick:function(e,t){return void 0===t&&(t=0),setTimeout(e,t)},now:function(){return Date.now()},getTranslate:function(e,n){var i,a,r;void 0===n&&(n="x");var o=t.getComputedStyle(e,null);return t.WebKitCSSMatrix?((a=o.transform||o.webkitTransform).split(",").length>6&&(a=a.split(", ").map((function(e){return e.replace(",",".")})).join(", ")),r=new t.WebKitCSSMatrix("none"===a?"":a)):i=(r=o.MozTransform||o.OTransform||o.MsTransform||o.msTransform||o.transform||o.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,")).toString().split(","),"x"===n&&(a=t.WebKitCSSMatrix?r.m41:16===i.length?parseFloat(i[12]):parseFloat(i[4])),"y"===n&&(a=t.WebKitCSSMatrix?r.m42:16===i.length?parseFloat(i[13]):parseFloat(i[5])),a||0},parseUrlQuery:function(e){var n,i,a,r,o={},s=e||t.location.href;if("string"==typeof s&&s.length)for(r=(i=(s=s.indexOf("?")>-1?s.replace(/\S*\?/,""):"").split("&").filter((function(e){return""!==e}))).length,n=0;n<r;n+=1)a=i[n].replace(/#\S+/g,"").split("="),o[decodeURIComponent(a[0])]=void 0===a[1]?void 0:decodeURIComponent(a[1])||"";return o},isObject:function(e){return"object"==(void 0===e?"undefined":r(e))&&null!==e&&e.constructor&&e.constructor===Object},extend:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var n=Object(e[0]),i=1;i<e.length;i+=1){var a=e[i];if(null!=a)for(var r=Object.keys(Object(a)),o=0,s=r.length;o<s;o+=1){var l=r[o],c=Object.getOwnPropertyDescriptor(a,l);void 0!==c&&c.enumerable&&(d.isObject(n[l])&&d.isObject(a[l])?d.extend(n[l],a[l]):!d.isObject(n[l])&&d.isObject(a[l])?(n[l]={},d.extend(n[l],a[l])):n[l]=a[l])}}return n}},u=(c=e.createElement("div"),{touch:t.Modernizr&&!0===t.Modernizr.touch||!!("ontouchstart"in t||t.DocumentTouch&&e instanceof t.DocumentTouch),pointerEvents:!(!t.navigator.pointerEnabled&&!t.PointerEvent),prefixedPointerEvents:!!t.navigator.msPointerEnabled,transition:(l=c.style,"transition"in l||"webkitTransition"in l||"MozTransition"in l),transforms3d:t.Modernizr&&!0===t.Modernizr.csstransforms3d||(s=c.style,"webkitPerspective"in s||"MozPerspective"in s||"OPerspective"in s||"MsPerspective"in s||"perspective"in s),flexbox:function(){for(var e=c.style,t="alignItems webkitAlignItems webkitBoxAlign msFlexAlign mozBoxAlign webkitFlexDirection msFlexDirection mozBoxDirection mozBoxOrient webkitBoxDirection webkitBoxOrient".split(" "),n=0;n<t.length;n+=1)if(t[n]in e)return!0;return!1}(),observer:"MutationObserver"in t||"WebkitMutationObserver"in t,passiveListener:function(){var e=!1;try{var n=Object.defineProperty({},"passive",{get:function(){e=!0}});t.addEventListener("testPassiveListener",null,n)}catch(e){}return e}(),gestures:"ongesturestart"in t}),p=function(e){void 0===e&&(e={});var t=this;t.params=e,t.eventsListeners={},t.params&&t.params.on&&Object.keys(t.params.on).forEach((function(e){t.on(e,t.params.on[e])}))},h={components:{configurable:!0}};p.prototype.on=function(e,t,n){var i=this;if("function"!=typeof t)return i;var a=n?"unshift":"push";return e.split(" ").forEach((function(e){i.eventsListeners[e]||(i.eventsListeners[e]=[]),i.eventsListeners[e][a](t)})),i},p.prototype.once=function(e,t,n){var i=this;return"function"!=typeof t?i:i.on(e,(function n(){for(var a=[],r=arguments.length;r--;)a[r]=arguments[r];t.apply(i,a),i.off(e,n)}),n)},p.prototype.off=function(e,t){var n=this;return n.eventsListeners?(e.split(" ").forEach((function(e){void 0===t?n.eventsListeners[e]=[]:n.eventsListeners[e].forEach((function(i,a){i===t&&n.eventsListeners[e].splice(a,1)}))})),n):n},p.prototype.emit=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n,i,a,r=this;return r.eventsListeners?("string"==typeof e[0]||Array.isArray(e[0])?(n=e[0],i=e.slice(1,e.length),a=r):(n=e[0].events,i=e[0].data,a=e[0].context||r),(Array.isArray(n)?n:n.split(" ")).forEach((function(e){if(r.eventsListeners&&r.eventsListeners[e]){var t=[];r.eventsListeners[e].forEach((function(e){t.push(e)})),t.forEach((function(e){e.apply(a,i)}))}})),r):r},p.prototype.useModulesParams=function(e){var t=this;t.modules&&Object.keys(t.modules).forEach((function(n){var i=t.modules[n];i.params&&d.extend(e,i.params)}))},p.prototype.useModules=function(e){void 0===e&&(e={});var t=this;t.modules&&Object.keys(t.modules).forEach((function(n){var i=t.modules[n],a=e[n]||{};i.instance&&Object.keys(i.instance).forEach((function(e){var n=i.instance[e];t[e]="function"==typeof n?n.bind(t):n})),i.on&&t.on&&Object.keys(i.on).forEach((function(e){t.on(e,i.on[e])})),i.create&&i.create.bind(t)(a)}))},h.components.set=function(e){this.use&&this.use(e)},p.installModule=function(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];var i=this;i.prototype.modules||(i.prototype.modules={});var a=e.name||Object.keys(i.prototype.modules).length+"_"+d.now();return i.prototype.modules[a]=e,e.proto&&Object.keys(e.proto).forEach((function(t){i.prototype[t]=e.proto[t]})),e.static&&Object.keys(e.static).forEach((function(t){i[t]=e.static[t]})),e.install&&e.install.apply(i,t),i},p.use=function(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];var i=this;return Array.isArray(e)?(e.forEach((function(e){return i.installModule(e)})),i):i.installModule.apply(i,[e].concat(t))},Object.defineProperties(p,h);var f={updateSize:function(){var e,t,n=this.$el;e=void 0!==this.params.width?this.params.width:n[0].clientWidth,t=void 0!==this.params.height?this.params.height:n[0].clientHeight,0===e&&this.isHorizontal()||0===t&&this.isVertical()||(e=e-parseInt(n.css("padding-left"),10)-parseInt(n.css("padding-right"),10),t=t-parseInt(n.css("padding-top"),10)-parseInt(n.css("padding-bottom"),10),d.extend(this,{width:e,height:t,size:this.isHorizontal()?e:t}))},updateSlides:function(){var e=this.params,n=this.$wrapperEl,i=this.size,a=this.rtlTranslate,r=this.wrongRTL,o=this.virtual&&e.virtual.enabled,s=o?this.virtual.slides.length:this.slides.length,l=n.children("."+this.params.slideClass),c=o?this.virtual.slides.length:l.length,p=[],h=[],f=[],g=e.slidesOffsetBefore;"function"==typeof g&&(g=e.slidesOffsetBefore.call(this));var m=e.slidesOffsetAfter;"function"==typeof m&&(m=e.slidesOffsetAfter.call(this));var v=this.snapGrid.length,w=this.snapGrid.length,b=e.spaceBetween,y=-g,_=0,S=0;if(void 0!==i){var x,k;"string"==typeof b&&b.indexOf("%")>=0&&(b=parseFloat(b.replace("%",""))/100*i),this.virtualSize=-b,a?l.css({marginLeft:"",marginTop:""}):l.css({marginRight:"",marginBottom:""}),e.slidesPerColumn>1&&(x=Math.floor(c/e.slidesPerColumn)===c/this.params.slidesPerColumn?c:Math.ceil(c/e.slidesPerColumn)*e.slidesPerColumn,"auto"!==e.slidesPerView&&"row"===e.slidesPerColumnFill&&(x=Math.max(x,e.slidesPerView*e.slidesPerColumn)));for(var C,T=e.slidesPerColumn,I=x/T,D=I-(e.slidesPerColumn*I-c),E=0;E<c;E+=1){k=0;var M=l.eq(E);if(e.slidesPerColumn>1){var A=void 0,F=void 0,P=void 0;"column"===e.slidesPerColumnFill?(P=E-(F=Math.floor(E/T))*T,(F>D||F===D&&P===T-1)&&(P+=1)>=T&&(P=0,F+=1),A=F+P*x/T,M.css({"-webkit-box-ordinal-group":A,"-moz-box-ordinal-group":A,"-ms-flex-order":A,"-webkit-order":A,order:A})):F=E-(P=Math.floor(E/I))*I,M.css("margin-"+(this.isHorizontal()?"top":"left"),0!==P&&e.spaceBetween&&e.spaceBetween+"px").attr("data-swiper-column",F).attr("data-swiper-row",P)}if("none"!==M.css("display")){if("auto"===e.slidesPerView){var L=t.getComputedStyle(M[0],null),N=M[0].style.transform,O=M[0].style.webkitTransform;N&&(M[0].style.transform="none"),O&&(M[0].style.webkitTransform="none"),k=this.isHorizontal()?M[0].getBoundingClientRect().width+parseFloat(L.getPropertyValue("margin-left"))+parseFloat(L.getPropertyValue("margin-right")):M[0].getBoundingClientRect().height+parseFloat(L.getPropertyValue("margin-top"))+parseFloat(L.getPropertyValue("margin-bottom")),N&&(M[0].style.transform=N),O&&(M[0].style.webkitTransform=O),e.roundLengths&&(k=Math.floor(k))}else k=(i-(e.slidesPerView-1)*b)/e.slidesPerView,e.roundLengths&&(k=Math.floor(k)),l[E]&&(this.isHorizontal()?l[E].style.width=k+"px":l[E].style.height=k+"px");l[E]&&(l[E].swiperSlideSize=k),f.push(k),e.centeredSlides?(y=y+k/2+_/2+b,0===_&&0!==E&&(y=y-i/2-b),0===E&&(y=y-i/2-b),Math.abs(y)<.001&&(y=0),e.roundLengths&&(y=Math.floor(y)),S%e.slidesPerGroup==0&&p.push(y),h.push(y)):(e.roundLengths&&(y=Math.floor(y)),S%e.slidesPerGroup==0&&p.push(y),h.push(y),y=y+k+b),this.virtualSize+=k+b,_=k,S+=1}}if(this.virtualSize=Math.max(this.virtualSize,i)+m,a&&r&&("slide"===e.effect||"coverflow"===e.effect)&&n.css({width:this.virtualSize+e.spaceBetween+"px"}),u.flexbox&&!e.setWrapperSize||(this.isHorizontal()?n.css({width:this.virtualSize+e.spaceBetween+"px"}):n.css({height:this.virtualSize+e.spaceBetween+"px"})),e.slidesPerColumn>1&&(this.virtualSize=(k+e.spaceBetween)*x,this.virtualSize=Math.ceil(this.virtualSize/e.slidesPerColumn)-e.spaceBetween,this.isHorizontal()?n.css({width:this.virtualSize+e.spaceBetween+"px"}):n.css({height:this.virtualSize+e.spaceBetween+"px"}),e.centeredSlides)){C=[];for(var B=0;B<p.length;B+=1){var j=p[B];e.roundLengths&&(j=Math.floor(j)),p[B]<this.virtualSize+p[0]&&C.push(j)}p=C}if(!e.centeredSlides){C=[];for(var H=0;H<p.length;H+=1){var z=p[H];e.roundLengths&&(z=Math.floor(z)),p[H]<=this.virtualSize-i&&C.push(z)}p=C,Math.floor(this.virtualSize-i)-Math.floor(p[p.length-1])>1&&p.push(this.virtualSize-i)}0===p.length&&(p=[0]),0!==e.spaceBetween&&(this.isHorizontal()?a?l.css({marginLeft:b+"px"}):l.css({marginRight:b+"px"}):l.css({marginBottom:b+"px"})),d.extend(this,{slides:l,snapGrid:p,slidesGrid:h,slidesSizesGrid:f}),c!==s&&this.emit("slidesLengthChange"),p.length!==v&&(this.params.watchOverflow&&this.checkOverflow(),this.emit("snapGridLengthChange")),h.length!==w&&this.emit("slidesGridLengthChange"),(e.watchSlidesProgress||e.watchSlidesVisibility)&&this.updateSlidesOffset()}},updateAutoHeight:function(e){var t,n=[],i=0;if("number"==typeof e?this.setTransition(e):!0===e&&this.setTransition(this.params.speed),"auto"!==this.params.slidesPerView&&this.params.slidesPerView>1)for(t=0;t<Math.ceil(this.params.slidesPerView);t+=1){var a=this.activeIndex+t;if(a>this.slides.length)break;n.push(this.slides.eq(a)[0])}else n.push(this.slides.eq(this.activeIndex)[0]);for(t=0;t<n.length;t+=1)if(void 0!==n[t]){var r=n[t].offsetHeight;i=r>i?r:i}i&&this.$wrapperEl.css("height",i+"px")},updateSlidesOffset:function(){for(var e=this.slides,t=0;t<e.length;t+=1)e[t].swiperSlideOffset=this.isHorizontal()?e[t].offsetLeft:e[t].offsetTop},updateSlidesProgress:function(e){void 0===e&&(e=this&&this.translate||0);var t=this.params,n=this.slides,i=this.rtlTranslate;if(0!==n.length){void 0===n[0].swiperSlideOffset&&this.updateSlidesOffset();var a=-e;i&&(a=e),n.removeClass(t.slideVisibleClass);for(var r=0;r<n.length;r+=1){var o=n[r],s=(a+(t.centeredSlides?this.minTranslate():0)-o.swiperSlideOffset)/(o.swiperSlideSize+t.spaceBetween);if(t.watchSlidesVisibility){var l=-(a-o.swiperSlideOffset),c=l+this.slidesSizesGrid[r];(l>=0&&l<this.size||c>0&&c<=this.size||l<=0&&c>=this.size)&&n.eq(r).addClass(t.slideVisibleClass)}o.progress=i?-s:s}}},updateProgress:function(e){void 0===e&&(e=this&&this.translate||0);var t=this.params,n=this.maxTranslate()-this.minTranslate(),i=this.progress,a=this.isBeginning,r=this.isEnd,o=a,s=r;0===n?(i=0,a=!0,r=!0):(a=(i=(e-this.minTranslate())/n)<=0,r=i>=1),d.extend(this,{progress:i,isBeginning:a,isEnd:r}),(t.watchSlidesProgress||t.watchSlidesVisibility)&&this.updateSlidesProgress(e),a&&!o&&this.emit("reachBeginning toEdge"),r&&!s&&this.emit("reachEnd toEdge"),(o&&!a||s&&!r)&&this.emit("fromEdge"),this.emit("progress",i)},updateSlidesClasses:function(){var e,t=this.slides,n=this.params,i=this.$wrapperEl,a=this.activeIndex,r=this.realIndex,o=this.virtual&&n.virtual.enabled;t.removeClass(n.slideActiveClass+" "+n.slideNextClass+" "+n.slidePrevClass+" "+n.slideDuplicateActiveClass+" "+n.slideDuplicateNextClass+" "+n.slideDuplicatePrevClass),(e=o?this.$wrapperEl.find("."+n.slideClass+'[data-swiper-slide-index="'+a+'"]'):t.eq(a)).addClass(n.slideActiveClass),n.loop&&(e.hasClass(n.slideDuplicateClass)?i.children("."+n.slideClass+":not(."+n.slideDuplicateClass+')[data-swiper-slide-index="'+r+'"]').addClass(n.slideDuplicateActiveClass):i.children("."+n.slideClass+"."+n.slideDuplicateClass+'[data-swiper-slide-index="'+r+'"]').addClass(n.slideDuplicateActiveClass));var s=e.nextAll("."+n.slideClass).eq(0).addClass(n.slideNextClass);n.loop&&0===s.length&&(s=t.eq(0)).addClass(n.slideNextClass);var l=e.prevAll("."+n.slideClass).eq(0).addClass(n.slidePrevClass);n.loop&&0===l.length&&(l=t.eq(-1)).addClass(n.slidePrevClass),n.loop&&(s.hasClass(n.slideDuplicateClass)?i.children("."+n.slideClass+":not(."+n.slideDuplicateClass+')[data-swiper-slide-index="'+s.attr("data-swiper-slide-index")+'"]').addClass(n.slideDuplicateNextClass):i.children("."+n.slideClass+"."+n.slideDuplicateClass+'[data-swiper-slide-index="'+s.attr("data-swiper-slide-index")+'"]').addClass(n.slideDuplicateNextClass),l.hasClass(n.slideDuplicateClass)?i.children("."+n.slideClass+":not(."+n.slideDuplicateClass+')[data-swiper-slide-index="'+l.attr("data-swiper-slide-index")+'"]').addClass(n.slideDuplicatePrevClass):i.children("."+n.slideClass+"."+n.slideDuplicateClass+'[data-swiper-slide-index="'+l.attr("data-swiper-slide-index")+'"]').addClass(n.slideDuplicatePrevClass))},updateActiveIndex:function(e){var t,n=this.rtlTranslate?this.translate:-this.translate,i=this.slidesGrid,a=this.snapGrid,r=this.params,o=this.activeIndex,s=this.realIndex,l=this.snapIndex,c=e;if(void 0===c){for(var u=0;u<i.length;u+=1)void 0!==i[u+1]?n>=i[u]&&n<i[u+1]-(i[u+1]-i[u])/2?c=u:n>=i[u]&&n<i[u+1]&&(c=u+1):n>=i[u]&&(c=u);r.normalizeSlideIndex&&(c<0||void 0===c)&&(c=0)}if((t=a.indexOf(n)>=0?a.indexOf(n):Math.floor(c/r.slidesPerGroup))>=a.length&&(t=a.length-1),c!==o){var p=parseInt(this.slides.eq(c).attr("data-swiper-slide-index")||c,10);d.extend(this,{snapIndex:t,realIndex:p,previousIndex:o,activeIndex:c}),this.emit("activeIndexChange"),this.emit("snapIndexChange"),s!==p&&this.emit("realIndexChange"),this.emit("slideChange")}else t!==l&&(this.snapIndex=t,this.emit("snapIndexChange"))},updateClickedSlide:function(e){var t=this.params,n=i(e.target).closest("."+t.slideClass)[0],a=!1;if(n)for(var r=0;r<this.slides.length;r+=1)this.slides[r]===n&&(a=!0);if(!n||!a)return this.clickedSlide=void 0,void(this.clickedIndex=void 0);this.clickedSlide=n,this.virtual&&this.params.virtual.enabled?this.clickedIndex=parseInt(i(n).attr("data-swiper-slide-index"),10):this.clickedIndex=i(n).index(),t.slideToClickedSlide&&void 0!==this.clickedIndex&&this.clickedIndex!==this.activeIndex&&this.slideToClickedSlide()}},g={getTranslate:function(e){void 0===e&&(e=this.isHorizontal()?"x":"y");var t=this.params,n=this.rtlTranslate,i=this.translate,a=this.$wrapperEl;if(t.virtualTranslate)return n?-i:i;var r=d.getTranslate(a[0],e);return n&&(r=-r),r||0},setTranslate:function(e,t){var n=this.rtlTranslate,i=this.params,a=this.$wrapperEl,r=this.progress,o=0,s=0;this.isHorizontal()?o=n?-e:e:s=e,i.roundLengths&&(o=Math.floor(o),s=Math.floor(s)),i.virtualTranslate||(u.transforms3d?a.transform("translate3d("+o+"px, "+s+"px, 0px)"):a.transform("translate("+o+"px, "+s+"px)")),this.previousTranslate=this.translate,this.translate=this.isHorizontal()?o:s;var l=this.maxTranslate()-this.minTranslate();(0===l?0:(e-this.minTranslate())/l)!==r&&this.updateProgress(e),this.emit("setTranslate",this.translate,t)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]}},m={slideTo:function(e,t,n,i){void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===n&&(n=!0);var a=this,r=e;r<0&&(r=0);var o=a.params,s=a.snapGrid,l=a.slidesGrid,c=a.previousIndex,d=a.activeIndex,p=a.rtlTranslate;if(a.animating&&o.preventIntercationOnTransition)return!1;var h=Math.floor(r/o.slidesPerGroup);h>=s.length&&(h=s.length-1),(d||o.initialSlide||0)===(c||0)&&n&&a.emit("beforeSlideChangeStart");var f,g=-s[h];if(a.updateProgress(g),o.normalizeSlideIndex)for(var m=0;m<l.length;m+=1)-Math.floor(100*g)>=Math.floor(100*l[m])&&(r=m);if(a.initialized&&r!==d){if(!a.allowSlideNext&&g<a.translate&&g<a.minTranslate())return!1;if(!a.allowSlidePrev&&g>a.translate&&g>a.maxTranslate()&&(d||0)!==r)return!1}return f=r>d?"next":r<d?"prev":"reset",p&&-g===a.translate||!p&&g===a.translate?(a.updateActiveIndex(r),o.autoHeight&&a.updateAutoHeight(),a.updateSlidesClasses(),"slide"!==o.effect&&a.setTranslate(g),"reset"!==f&&(a.transitionStart(n,f),a.transitionEnd(n,f)),!1):(0!==t&&u.transition?(a.setTransition(t),a.setTranslate(g),a.updateActiveIndex(r),a.updateSlidesClasses(),a.emit("beforeTransitionStart",t,i),a.transitionStart(n,f),a.animating||(a.animating=!0,a.onSlideToWrapperTransitionEnd||(a.onSlideToWrapperTransitionEnd=function(e){a&&!a.destroyed&&e.target===this&&(a.$wrapperEl[0].removeEventListener("transitionend",a.onSlideToWrapperTransitionEnd),a.$wrapperEl[0].removeEventListener("webkitTransitionEnd",a.onSlideToWrapperTransitionEnd),a.transitionEnd(n,f))}),a.$wrapperEl[0].addEventListener("transitionend",a.onSlideToWrapperTransitionEnd),a.$wrapperEl[0].addEventListener("webkitTransitionEnd",a.onSlideToWrapperTransitionEnd))):(a.setTransition(0),a.setTranslate(g),a.updateActiveIndex(r),a.updateSlidesClasses(),a.emit("beforeTransitionStart",t,i),a.transitionStart(n,f),a.transitionEnd(n,f)),!0)},slideToLoop:function(e,t,n,i){void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===n&&(n=!0);var a=e;return this.params.loop&&(a+=this.loopedSlides),this.slideTo(a,t,n,i)},slideNext:function(e,t,n){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0);var i=this.params,a=this.animating;return i.loop?!a&&(this.loopFix(),this._clientLeft=this.$wrapperEl[0].clientLeft,this.slideTo(this.activeIndex+i.slidesPerGroup,e,t,n)):this.slideTo(this.activeIndex+i.slidesPerGroup,e,t,n)},slidePrev:function(e,t,n){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0);var i=this.params,a=this.animating,r=this.snapGrid,o=this.slidesGrid,s=this.rtlTranslate;if(i.loop){if(a)return!1;this.loopFix(),this._clientLeft=this.$wrapperEl[0].clientLeft}function l(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}var c,d=l(s?this.translate:-this.translate),u=r.map((function(e){return l(e)})),p=(o.map((function(e){return l(e)})),r[u.indexOf(d)],r[u.indexOf(d)-1]);return void 0!==p&&(c=o.indexOf(p))<0&&(c=this.activeIndex-1),this.slideTo(c,e,t,n)},slideReset:function(e,t,n){return void 0===e&&(e=this.params.speed),void 0===t&&(t=!0),this.slideTo(this.activeIndex,e,t,n)},slideToClosest:function(e,t,n){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0);var i=this.activeIndex,a=Math.floor(i/this.params.slidesPerGroup);if(a<this.snapGrid.length-1){var r=this.rtlTranslate?this.translate:-this.translate,o=this.snapGrid[a];r-o>(this.snapGrid[a+1]-o)/2&&(i=this.params.slidesPerGroup)}return this.slideTo(i,e,t,n)},slideToClickedSlide:function(){var e,t=this,n=t.params,a=t.$wrapperEl,r="auto"===n.slidesPerView?t.slidesPerViewDynamic():n.slidesPerView,o=t.clickedIndex;if(n.loop){if(t.animating)return;e=parseInt(i(t.clickedSlide).attr("data-swiper-slide-index"),10),n.centeredSlides?o<t.loopedSlides-r/2||o>t.slides.length-t.loopedSlides+r/2?(t.loopFix(),o=a.children("."+n.slideClass+'[data-swiper-slide-index="'+e+'"]:not(.'+n.slideDuplicateClass+")").eq(0).index(),d.nextTick((function(){t.slideTo(o)}))):t.slideTo(o):o>t.slides.length-r?(t.loopFix(),o=a.children("."+n.slideClass+'[data-swiper-slide-index="'+e+'"]:not(.'+n.slideDuplicateClass+")").eq(0).index(),d.nextTick((function(){t.slideTo(o)}))):t.slideTo(o)}else t.slideTo(o)}},v={loopCreate:function(){var t=this,n=t.params,a=t.$wrapperEl;a.children("."+n.slideClass+"."+n.slideDuplicateClass).remove();var r=a.children("."+n.slideClass);if(n.loopFillGroupWithBlank){var o=n.slidesPerGroup-r.length%n.slidesPerGroup;if(o!==n.slidesPerGroup){for(var s=0;s<o;s+=1){var l=i(e.createElement("div")).addClass(n.slideClass+" "+n.slideBlankClass);a.append(l)}r=a.children("."+n.slideClass)}}"auto"!==n.slidesPerView||n.loopedSlides||(n.loopedSlides=r.length),t.loopedSlides=parseInt(n.loopedSlides||n.slidesPerView,10),t.loopedSlides+=n.loopAdditionalSlides,t.loopedSlides>r.length&&(t.loopedSlides=r.length);var c=[],d=[];r.each((function(e,n){var a=i(n);e<t.loopedSlides&&d.push(n),e<r.length&&e>=r.length-t.loopedSlides&&c.push(n),a.attr("data-swiper-slide-index",e)}));for(var u=0;u<d.length;u+=1)a.append(i(d[u].cloneNode(!0)).addClass(n.slideDuplicateClass));for(var p=c.length-1;p>=0;p-=1)a.prepend(i(c[p].cloneNode(!0)).addClass(n.slideDuplicateClass))},loopFix:function(){var e,t=this.params,n=this.activeIndex,i=this.slides,a=this.loopedSlides,r=this.allowSlidePrev,o=this.allowSlideNext,s=this.snapGrid,l=this.rtlTranslate;this.allowSlidePrev=!0,this.allowSlideNext=!0;var c=-s[n]-this.getTranslate();n<a?(e=i.length-3*a+n,e+=a,this.slideTo(e,0,!1,!0)&&0!==c&&this.setTranslate((l?-this.translate:this.translate)-c)):("auto"===t.slidesPerView&&n>=2*a||n>=i.length-a)&&(e=-i.length+n+a,e+=a,this.slideTo(e,0,!1,!0)&&0!==c&&this.setTranslate((l?-this.translate:this.translate)-c)),this.allowSlidePrev=r,this.allowSlideNext=o},loopDestroy:function(){var e=this.$wrapperEl,t=this.params,n=this.slides;e.children("."+t.slideClass+"."+t.slideDuplicateClass).remove(),n.removeAttr("data-swiper-slide-index")}},w={setGrabCursor:function(e){if(!(u.touch||!this.params.simulateTouch||this.params.watchOverflow&&this.isLocked)){var t=this.el;t.style.cursor="move",t.style.cursor=e?"-webkit-grabbing":"-webkit-grab",t.style.cursor=e?"-moz-grabbin":"-moz-grab",t.style.cursor=e?"grabbing":"grab"}},unsetGrabCursor:function(){u.touch||this.params.watchOverflow&&this.isLocked||(this.el.style.cursor="")}},b={appendSlide:function(e){var t=this.$wrapperEl,n=this.params;if(n.loop&&this.loopDestroy(),"object"==(void 0===e?"undefined":r(e))&&"length"in e)for(var i=0;i<e.length;i+=1)e[i]&&t.append(e[i]);else t.append(e);n.loop&&this.loopCreate(),n.observer&&u.observer||this.update()},prependSlide:function(e){var t=this.params,n=this.$wrapperEl,i=this.activeIndex;t.loop&&this.loopDestroy();var a=i+1;if("object"==(void 0===e?"undefined":r(e))&&"length"in e){for(var o=0;o<e.length;o+=1)e[o]&&n.prepend(e[o]);a=i+e.length}else n.prepend(e);t.loop&&this.loopCreate(),t.observer&&u.observer||this.update(),this.slideTo(a,0,!1)},addSlide:function(e,t){var n=this.$wrapperEl,i=this.params,a=this.activeIndex;i.loop&&(a-=this.loopedSlides,this.loopDestroy(),this.slides=n.children("."+i.slideClass));var o=this.slides.length;if(e<=0)this.prependSlide(t);else if(e>=o)this.appendSlide(t);else{for(var s=a>e?a+1:a,l=[],c=o-1;c>=e;c-=1){var d=this.slides.eq(c);d.remove(),l.unshift(d)}if("object"==(void 0===t?"undefined":r(t))&&"length"in t){for(var p=0;p<t.length;p+=1)t[p]&&n.append(t[p]);s=a>e?a+t.length:a}else n.append(t);for(var h=0;h<l.length;h+=1)n.append(l[h]);i.loop&&this.loopCreate(),i.observer&&u.observer||this.update(),i.loop?this.slideTo(s+this.loopedSlides,0,!1):this.slideTo(s,0,!1)}},removeSlide:function(e){var t=this.params,n=this.$wrapperEl,i=this.activeIndex;t.loop&&(i-=this.loopedSlides,this.loopDestroy(),this.slides=n.children("."+t.slideClass));var a,o=i;if("object"==(void 0===e?"undefined":r(e))&&"length"in e){for(var s=0;s<e.length;s+=1)a=e[s],this.slides[a]&&this.slides.eq(a).remove(),a<o&&(o-=1);o=Math.max(o,0)}else a=e,this.slides[a]&&this.slides.eq(a).remove(),a<o&&(o-=1),o=Math.max(o,0);t.loop&&this.loopCreate(),t.observer&&u.observer||this.update(),t.loop?this.slideTo(o+this.loopedSlides,0,!1):this.slideTo(o,0,!1)},removeAllSlides:function(){for(var e=[],t=0;t<this.slides.length;t+=1)e.push(t);this.removeSlide(e)}},y=function(){var n=t.navigator.userAgent,i={ios:!1,android:!1,androidChrome:!1,desktop:!1,windows:!1,iphone:!1,ipod:!1,ipad:!1,cordova:t.cordova||t.phonegap,phonegap:t.cordova||t.phonegap},a=n.match(/(Windows Phone);?[\s\/]+([\d.]+)?/),r=n.match(/(Android);?[\s\/]+([\d.]+)?/),o=n.match(/(iPad).*OS\s([\d_]+)/),s=n.match(/(iPod)(.*OS\s([\d_]+))?/),l=!o&&n.match(/(iPhone\sOS|iOS)\s([\d_]+)/);if(a&&(i.os="windows",i.osVersion=a[2],i.windows=!0),r&&!a&&(i.os="android",i.osVersion=r[2],i.android=!0,i.androidChrome=n.toLowerCase().indexOf("chrome")>=0),(o||l||s)&&(i.os="ios",i.ios=!0),l&&!s&&(i.osVersion=l[2].replace(/_/g,"."),i.iphone=!0),o&&(i.osVersion=o[2].replace(/_/g,"."),i.ipad=!0),s&&(i.osVersion=s[3]?s[3].replace(/_/g,"."):null,i.iphone=!0),i.ios&&i.osVersion&&n.indexOf("Version/")>=0&&"10"===i.osVersion.split(".")[0]&&(i.osVersion=n.toLowerCase().split("version/")[1].split(" ")[0]),i.desktop=!(i.os||i.android||i.webView),i.webView=(l||o||s)&&n.match(/.*AppleWebKit(?!.*Safari)/i),i.os&&"ios"===i.os){var c=i.osVersion.split("."),d=e.querySelector('meta[name="viewport"]');i.minimalUi=!i.webView&&(s||l)&&(1*c[0]==7?1*c[1]>=1:1*c[0]>7)&&d&&d.getAttribute("content").indexOf("minimal-ui")>=0}return i.pixelRatio=t.devicePixelRatio||1,i}();function _(){var e=this.params,t=this.el;if(!t||0!==t.offsetWidth){e.breakpoints&&this.setBreakpoint();var n=this.allowSlideNext,i=this.allowSlidePrev,a=this.snapGrid;if(this.allowSlideNext=!0,this.allowSlidePrev=!0,this.updateSize(),this.updateSlides(),e.freeMode){var r=Math.min(Math.max(this.translate,this.maxTranslate()),this.minTranslate());this.setTranslate(r),this.updateActiveIndex(),this.updateSlidesClasses(),e.autoHeight&&this.updateAutoHeight()}else this.updateSlidesClasses(),("auto"===e.slidesPerView||e.slidesPerView>1)&&this.isEnd&&!this.params.centeredSlides?this.slideTo(this.slides.length-1,0,!1,!0):this.slideTo(this.activeIndex,0,!1,!0);this.allowSlidePrev=i,this.allowSlideNext=n,this.params.watchOverflow&&a!==this.snapGrid&&this.checkOverflow()}}var S={attachEvents:function(){var n=this.params,a=this.touchEvents,r=this.el,o=this.wrapperEl;this.onTouchStart=function(n){var a=this.touchEventsData,r=this.params,o=this.touches;if(!this.animating||!r.preventIntercationOnTransition){var s=n;if(s.originalEvent&&(s=s.originalEvent),a.isTouchEvent="touchstart"===s.type,(a.isTouchEvent||!("which"in s)||3!==s.which)&&(!a.isTouched||!a.isMoved))if(r.noSwiping&&i(s.target).closest(r.noSwipingSelector?r.noSwipingSelector:"."+r.noSwipingClass)[0])this.allowClick=!0;else if(!r.swipeHandler||i(s).closest(r.swipeHandler)[0]){o.currentX="touchstart"===s.type?s.targetTouches[0].pageX:s.pageX,o.currentY="touchstart"===s.type?s.targetTouches[0].pageY:s.pageY;var l=o.currentX,c=o.currentY;if(!y.ios||y.cordova||!r.iOSEdgeSwipeDetection||!(l<=r.iOSEdgeSwipeThreshold||l>=t.screen.width-r.iOSEdgeSwipeThreshold)){if(d.extend(a,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),o.startX=l,o.startY=c,a.touchStartTime=d.now(),this.allowClick=!0,this.updateSize(),this.swipeDirection=void 0,r.threshold>0&&(a.allowThresholdMove=!1),"touchstart"!==s.type){var u=!0;i(s.target).is(a.formElements)&&(u=!1),e.activeElement&&i(e.activeElement).is(a.formElements)&&e.activeElement!==s.target&&e.activeElement.blur(),u&&this.allowTouchMove&&s.preventDefault()}this.emit("touchStart",s)}}}}.bind(this),this.onTouchMove=function(t){var n=this.touchEventsData,a=this.params,r=this.touches,o=this.rtlTranslate,s=t;if(s.originalEvent&&(s=s.originalEvent),n.isTouched){if(!n.isTouchEvent||"mousemove"!==s.type){var l="touchmove"===s.type?s.targetTouches[0].pageX:s.pageX,c="touchmove"===s.type?s.targetTouches[0].pageY:s.pageY;if(s.preventedByNestedSwiper)return r.startX=l,void(r.startY=c);if(!this.allowTouchMove)return this.allowClick=!1,void(n.isTouched&&(d.extend(r,{startX:l,startY:c,currentX:l,currentY:c}),n.touchStartTime=d.now()));if(n.isTouchEvent&&a.touchReleaseOnEdges&&!a.loop)if(this.isVertical()){if(c<r.startY&&this.translate<=this.maxTranslate()||c>r.startY&&this.translate>=this.minTranslate())return n.isTouched=!1,void(n.isMoved=!1)}else if(l<r.startX&&this.translate<=this.maxTranslate()||l>r.startX&&this.translate>=this.minTranslate())return;if(n.isTouchEvent&&e.activeElement&&s.target===e.activeElement&&i(s.target).is(n.formElements))return n.isMoved=!0,void(this.allowClick=!1);if(n.allowTouchCallbacks&&this.emit("touchMove",s),!(s.targetTouches&&s.targetTouches.length>1)){r.currentX=l,r.currentY=c;var u,p=r.currentX-r.startX,h=r.currentY-r.startY;if(void 0===n.isScrolling&&(this.isHorizontal()&&r.currentY===r.startY||this.isVertical()&&r.currentX===r.startX?n.isScrolling=!1:p*p+h*h>=25&&(u=180*Math.atan2(Math.abs(h),Math.abs(p))/Math.PI,n.isScrolling=this.isHorizontal()?u>a.touchAngle:90-u>a.touchAngle)),n.isScrolling&&this.emit("touchMoveOpposite",s),"undefined"==typeof startMoving&&(r.currentX===r.startX&&r.currentY===r.startY||(n.startMoving=!0)),n.isScrolling)n.isTouched=!1;else if(n.startMoving){this.allowClick=!1,s.preventDefault(),a.touchMoveStopPropagation&&!a.nested&&s.stopPropagation(),n.isMoved||(a.loop&&this.loopFix(),n.startTranslate=this.getTranslate(),this.setTransition(0),this.animating&&this.$wrapperEl.trigger("webkitTransitionEnd transitionend"),n.allowMomentumBounce=!1,!a.grabCursor||!0!==this.allowSlideNext&&!0!==this.allowSlidePrev||this.setGrabCursor(!0),this.emit("sliderFirstMove",s)),this.emit("sliderMove",s),n.isMoved=!0;var f=this.isHorizontal()?p:h;r.diff=f,f*=a.touchRatio,o&&(f=-f),this.swipeDirection=f>0?"prev":"next",n.currentTranslate=f+n.startTranslate;var g=!0,m=a.resistanceRatio;if(a.touchReleaseOnEdges&&(m=0),f>0&&n.currentTranslate>this.minTranslate()?(g=!1,a.resistance&&(n.currentTranslate=this.minTranslate()-1+Math.pow(-this.minTranslate()+n.startTranslate+f,m))):f<0&&n.currentTranslate<this.maxTranslate()&&(g=!1,a.resistance&&(n.currentTranslate=this.maxTranslate()+1-Math.pow(this.maxTranslate()-n.startTranslate-f,m))),g&&(s.preventedByNestedSwiper=!0),!this.allowSlideNext&&"next"===this.swipeDirection&&n.currentTranslate<n.startTranslate&&(n.currentTranslate=n.startTranslate),!this.allowSlidePrev&&"prev"===this.swipeDirection&&n.currentTranslate>n.startTranslate&&(n.currentTranslate=n.startTranslate),a.threshold>0){if(!(Math.abs(f)>a.threshold||n.allowThresholdMove))return void(n.currentTranslate=n.startTranslate);if(!n.allowThresholdMove)return n.allowThresholdMove=!0,r.startX=r.currentX,r.startY=r.currentY,n.currentTranslate=n.startTranslate,void(r.diff=this.isHorizontal()?r.currentX-r.startX:r.currentY-r.startY)}a.followFinger&&((a.freeMode||a.watchSlidesProgress||a.watchSlidesVisibility)&&(this.updateActiveIndex(),this.updateSlidesClasses()),a.freeMode&&(0===n.velocities.length&&n.velocities.push({position:r[this.isHorizontal()?"startX":"startY"],time:n.touchStartTime}),n.velocities.push({position:r[this.isHorizontal()?"currentX":"currentY"],time:d.now()})),this.updateProgress(n.currentTranslate),this.setTranslate(n.currentTranslate))}}}}else n.startMoving&&n.isScrolling&&this.emit("touchMoveOpposite",s)}.bind(this),this.onTouchEnd=function(e){var t=this,n=t.touchEventsData,i=t.params,a=t.touches,r=t.rtlTranslate,o=t.$wrapperEl,s=t.slidesGrid,l=t.snapGrid,c=e;if(c.originalEvent&&(c=c.originalEvent),n.allowTouchCallbacks&&t.emit("touchEnd",c),n.allowTouchCallbacks=!1,!n.isTouched)return n.isMoved&&i.grabCursor&&t.setGrabCursor(!1),n.isMoved=!1,void(n.startMoving=!1);i.grabCursor&&n.isMoved&&n.isTouched&&(!0===t.allowSlideNext||!0===t.allowSlidePrev)&&t.setGrabCursor(!1);var u,p=d.now(),h=p-n.touchStartTime;if(t.allowClick&&(t.updateClickedSlide(c),t.emit("tap",c),h<300&&p-n.lastClickTime>300&&(n.clickTimeout&&clearTimeout(n.clickTimeout),n.clickTimeout=d.nextTick((function(){t&&!t.destroyed&&t.emit("click",c)}),300)),h<300&&p-n.lastClickTime<300&&(n.clickTimeout&&clearTimeout(n.clickTimeout),t.emit("doubleTap",c))),n.lastClickTime=d.now(),d.nextTick((function(){t.destroyed||(t.allowClick=!0)})),!n.isTouched||!n.isMoved||!t.swipeDirection||0===a.diff||n.currentTranslate===n.startTranslate)return n.isTouched=!1,n.isMoved=!1,void(n.startMoving=!1);if(n.isTouched=!1,n.isMoved=!1,n.startMoving=!1,u=i.followFinger?r?t.translate:-t.translate:-n.currentTranslate,i.freeMode){if(u<-t.minTranslate())return void t.slideTo(t.activeIndex);if(u>-t.maxTranslate())return void(t.slides.length<l.length?t.slideTo(l.length-1):t.slideTo(t.slides.length-1));if(i.freeModeMomentum){if(n.velocities.length>1){var f=n.velocities.pop(),g=n.velocities.pop(),m=f.position-g.position,v=f.time-g.time;t.velocity=m/v,t.velocity/=2,Math.abs(t.velocity)<i.freeModeMinimumVelocity&&(t.velocity=0),(v>150||d.now()-f.time>300)&&(t.velocity=0)}else t.velocity=0;t.velocity*=i.freeModeMomentumVelocityRatio,n.velocities.length=0;var w=1e3*i.freeModeMomentumRatio,b=t.velocity*w,y=t.translate+b;r&&(y=-y);var _,S,x=!1,k=20*Math.abs(t.velocity)*i.freeModeMomentumBounceRatio;if(y<t.maxTranslate())i.freeModeMomentumBounce?(y+t.maxTranslate()<-k&&(y=t.maxTranslate()-k),_=t.maxTranslate(),x=!0,n.allowMomentumBounce=!0):y=t.maxTranslate(),i.loop&&i.centeredSlides&&(S=!0);else if(y>t.minTranslate())i.freeModeMomentumBounce?(y-t.minTranslate()>k&&(y=t.minTranslate()+k),_=t.minTranslate(),x=!0,n.allowMomentumBounce=!0):y=t.minTranslate(),i.loop&&i.centeredSlides&&(S=!0);else if(i.freeModeSticky){for(var C,T=0;T<l.length;T+=1)if(l[T]>-y){C=T;break}y=-(y=Math.abs(l[C]-y)<Math.abs(l[C-1]-y)||"next"===t.swipeDirection?l[C]:l[C-1])}if(S&&t.once("transitionEnd",(function(){t.loopFix()})),0!==t.velocity)w=r?Math.abs((-y-t.translate)/t.velocity):Math.abs((y-t.translate)/t.velocity);else if(i.freeModeSticky)return void t.slideToClosest();i.freeModeMomentumBounce&&x?(t.updateProgress(_),t.setTransition(w),t.setTranslate(y),t.transitionStart(!0,t.swipeDirection),t.animating=!0,o.transitionEnd((function(){t&&!t.destroyed&&n.allowMomentumBounce&&(t.emit("momentumBounce"),t.setTransition(i.speed),t.setTranslate(_),o.transitionEnd((function(){t&&!t.destroyed&&t.transitionEnd()})))}))):t.velocity?(t.updateProgress(y),t.setTransition(w),t.setTranslate(y),t.transitionStart(!0,t.swipeDirection),t.animating||(t.animating=!0,o.transitionEnd((function(){t&&!t.destroyed&&t.transitionEnd()})))):t.updateProgress(y),t.updateActiveIndex(),t.updateSlidesClasses()}else if(i.freeModeSticky)return void t.slideToClosest();(!i.freeModeMomentum||h>=i.longSwipesMs)&&(t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses())}else{for(var I=0,D=t.slidesSizesGrid[0],E=0;E<s.length;E+=i.slidesPerGroup)void 0!==s[E+i.slidesPerGroup]?u>=s[E]&&u<s[E+i.slidesPerGroup]&&(I=E,D=s[E+i.slidesPerGroup]-s[E]):u>=s[E]&&(I=E,D=s[s.length-1]-s[s.length-2]);var M=(u-s[I])/D;if(h>i.longSwipesMs){if(!i.longSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&(M>=i.longSwipesRatio?t.slideTo(I+i.slidesPerGroup):t.slideTo(I)),"prev"===t.swipeDirection&&(M>1-i.longSwipesRatio?t.slideTo(I+i.slidesPerGroup):t.slideTo(I))}else{if(!i.shortSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&t.slideTo(I+i.slidesPerGroup),"prev"===t.swipeDirection&&t.slideTo(I)}}}.bind(this),this.onClick=function(e){this.allowClick||(this.params.preventClicks&&e.preventDefault(),this.params.preventClicksPropagation&&this.animating&&(e.stopPropagation(),e.stopImmediatePropagation()))}.bind(this);var s="container"===n.touchEventsTarget?r:o,l=!!n.nested;if(u.touch||!u.pointerEvents&&!u.prefixedPointerEvents){if(u.touch){var c=!("touchstart"!==a.start||!u.passiveListener||!n.passiveListeners)&&{passive:!0,capture:!1};s.addEventListener(a.start,this.onTouchStart,c),s.addEventListener(a.move,this.onTouchMove,u.passiveListener?{passive:!1,capture:l}:l),s.addEventListener(a.end,this.onTouchEnd,c)}(n.simulateTouch&&!y.ios&&!y.android||n.simulateTouch&&!u.touch&&y.ios)&&(s.addEventListener("mousedown",this.onTouchStart,!1),e.addEventListener("mousemove",this.onTouchMove,l),e.addEventListener("mouseup",this.onTouchEnd,!1))}else s.addEventListener(a.start,this.onTouchStart,!1),e.addEventListener(a.move,this.onTouchMove,l),e.addEventListener(a.end,this.onTouchEnd,!1);(n.preventClicks||n.preventClicksPropagation)&&s.addEventListener("click",this.onClick,!0),this.on(y.ios||y.android?"resize orientationchange observerUpdate":"resize observerUpdate",_,!0)},detachEvents:function(){var t=this.params,n=this.touchEvents,i=this.el,a=this.wrapperEl,r="container"===t.touchEventsTarget?i:a,o=!!t.nested;if(u.touch||!u.pointerEvents&&!u.prefixedPointerEvents){if(u.touch){var s=!("onTouchStart"!==n.start||!u.passiveListener||!t.passiveListeners)&&{passive:!0,capture:!1};r.removeEventListener(n.start,this.onTouchStart,s),r.removeEventListener(n.move,this.onTouchMove,o),r.removeEventListener(n.end,this.onTouchEnd,s)}(t.simulateTouch&&!y.ios&&!y.android||t.simulateTouch&&!u.touch&&y.ios)&&(r.removeEventListener("mousedown",this.onTouchStart,!1),e.removeEventListener("mousemove",this.onTouchMove,o),e.removeEventListener("mouseup",this.onTouchEnd,!1))}else r.removeEventListener(n.start,this.onTouchStart,!1),e.removeEventListener(n.move,this.onTouchMove,o),e.removeEventListener(n.end,this.onTouchEnd,!1);(t.preventClicks||t.preventClicksPropagation)&&r.removeEventListener("click",this.onClick,!0),this.off(y.ios||y.android?"resize orientationchange observerUpdate":"resize observerUpdate",_)}},x={setBreakpoint:function(){var e=this.activeIndex,t=this.initialized,n=this.loopedSlides;void 0===n&&(n=0);var i=this.params,a=i.breakpoints;if(a&&(!a||0!==Object.keys(a).length)){var r=this.getBreakpoint(a);if(r&&this.currentBreakpoint!==r){var o=r in a?a[r]:this.originalParams,s=i.loop&&o.slidesPerView!==i.slidesPerView;d.extend(this.params,o),d.extend(this,{allowTouchMove:this.params.allowTouchMove,allowSlideNext:this.params.allowSlideNext,allowSlidePrev:this.params.allowSlidePrev}),this.currentBreakpoint=r,s&&t&&(this.loopDestroy(),this.loopCreate(),this.updateSlides(),this.slideTo(e-n+this.loopedSlides,0,!1)),this.emit("breakpoint",o)}}},getBreakpoint:function(e){if(e){var n=!1,i=[];Object.keys(e).forEach((function(e){i.push(e)})),i.sort((function(e,t){return parseInt(e,10)-parseInt(t,10)}));for(var a=0;a<i.length;a+=1){var r=i[a];r>=t.innerWidth&&!n&&(n=r)}return n||"max"}}},k=function(){return{isIE:!!t.navigator.userAgent.match(/Trident/g)||!!t.navigator.userAgent.match(/MSIE/g),isSafari:(e=t.navigator.userAgent.toLowerCase(),e.indexOf("safari")>=0&&e.indexOf("chrome")<0&&e.indexOf("android")<0),isUiWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent)};var e}(),C={init:!0,direction:"horizontal",touchEventsTarget:"container",initialSlide:0,speed:300,preventIntercationOnTransition:!1,iOSEdgeSwipeDetection:!1,iOSEdgeSwipeThreshold:20,freeMode:!1,freeModeMomentum:!0,freeModeMomentumRatio:1,freeModeMomentumBounce:!0,freeModeMomentumBounceRatio:1,freeModeMomentumVelocityRatio:1,freeModeSticky:!1,freeModeMinimumVelocity:.02,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,spaceBetween:0,slidesPerView:1,slidesPerColumn:1,slidesPerColumnFill:"column",slidesPerGroup:1,centeredSlides:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,watchOverflow:!1,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:0,touchMoveStopPropagation:!0,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,watchSlidesVisibility:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,preloadImages:!0,updateOnImagesReady:!0,loop:!1,loopAdditionalSlides:0,loopedSlides:null,loopFillGroupWithBlank:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,containerModifierClass:"swiper-container-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-invisible-blank",slideActiveClass:"swiper-slide-active",slideDuplicateActiveClass:"swiper-slide-duplicate-active",slideVisibleClass:"swiper-slide-visible",slideDuplicateClass:"swiper-slide-duplicate",slideNextClass:"swiper-slide-next",slideDuplicateNextClass:"swiper-slide-duplicate-next",slidePrevClass:"swiper-slide-prev",slideDuplicatePrevClass:"swiper-slide-duplicate-prev",wrapperClass:"swiper-wrapper",runCallbacksOnInit:!0},T={update:f,translate:g,transition:{setTransition:function(e,t){this.$wrapperEl.transition(e),this.emit("setTransition",e,t)},transitionStart:function(e,t){void 0===e&&(e=!0);var n=this.activeIndex,i=this.params,a=this.previousIndex;i.autoHeight&&this.updateAutoHeight();var r=t;if(r||(r=n>a?"next":n<a?"prev":"reset"),this.emit("transitionStart"),e&&n!==a){if("reset"===r)return void this.emit("slideResetTransitionStart");this.emit("slideChangeTransitionStart"),"next"===r?this.emit("slideNextTransitionStart"):this.emit("slidePrevTransitionStart")}},transitionEnd:function(e,t){void 0===e&&(e=!0);var n=this.activeIndex,i=this.previousIndex;this.animating=!1,this.setTransition(0);var a=t;if(a||(a=n>i?"next":n<i?"prev":"reset"),this.emit("transitionEnd"),e&&n!==i){if("reset"===a)return void this.emit("slideResetTransitionEnd");this.emit("slideChangeTransitionEnd"),"next"===a?this.emit("slideNextTransitionEnd"):this.emit("slidePrevTransitionEnd")}}},slide:m,loop:v,grabCursor:w,manipulation:b,events:S,breakpoints:x,checkOverflow:{checkOverflow:function(){var e=this.isLocked;this.isLocked=1===this.snapGrid.length,this.allowSlideNext=!this.isLocked,this.allowSlidePrev=!this.isLocked,e!==this.isLocked&&this.emit(this.isLocked?"lock":"unlock"),e&&e!==this.isLocked&&(this.isEnd=!1,this.navigation.update())}},classes:{addClasses:function(){var e=this.classNames,t=this.params,n=this.rtl,i=this.$el,a=[];a.push(t.direction),t.freeMode&&a.push("free-mode"),u.flexbox||a.push("no-flexbox"),t.autoHeight&&a.push("autoheight"),n&&a.push("rtl"),t.slidesPerColumn>1&&a.push("multirow"),y.android&&a.push("android"),y.ios&&a.push("ios"),k.isIE&&(u.pointerEvents||u.prefixedPointerEvents)&&a.push("wp8-"+t.direction),a.forEach((function(n){e.push(t.containerModifierClass+n)})),i.addClass(e.join(" "))},removeClasses:function(){var e=this.$el,t=this.classNames;e.removeClass(t.join(" "))}},images:{loadImage:function(e,n,i,a,r,o){var s;function l(){o&&o()}e.complete&&r?l():n?((s=new t.Image).onload=l,s.onerror=l,a&&(s.sizes=a),i&&(s.srcset=i),n&&(s.src=n)):l()},preloadImages:function(){var e=this;function t(){null!=e&&e&&!e.destroyed&&(void 0!==e.imagesLoaded&&(e.imagesLoaded+=1),e.imagesLoaded===e.imagesToLoad.length&&(e.params.updateOnImagesReady&&e.update(),e.emit("imagesReady")))}e.imagesToLoad=e.$el.find("img");for(var n=0;n<e.imagesToLoad.length;n+=1){var i=e.imagesToLoad[n];e.loadImage(i,i.currentSrc||i.getAttribute("src"),i.srcset||i.getAttribute("srcset"),i.sizes||i.getAttribute("sizes"),!0,t)}}}},I={},D=function(e){function t(){for(var n,a,o,s=[],l=arguments.length;l--;)s[l]=arguments[l];1===s.length&&s[0].constructor&&s[0].constructor===Object?o=s[0]:(a=(n=s)[0],o=n[1]),o||(o={}),o=d.extend({},o),a&&!o.el&&(o.el=a),e.call(this,o),Object.keys(T).forEach((function(e){Object.keys(T[e]).forEach((function(n){t.prototype[n]||(t.prototype[n]=T[e][n])}))}));var c=this;void 0===c.modules&&(c.modules={}),Object.keys(c.modules).forEach((function(e){var t=c.modules[e];if(t.params){var n=Object.keys(t.params)[0],i=t.params[n];if("object"!=(void 0===i?"undefined":r(i)))return;if(!(n in o)||!("enabled"in i))return;!0===o[n]&&(o[n]={enabled:!0}),"object"!=r(o[n])||"enabled"in o[n]||(o[n].enabled=!0),o[n]||(o[n]={enabled:!1})}}));var p=d.extend({},C);c.useModulesParams(p),c.params=d.extend({},p,I,o),c.originalParams=d.extend({},c.params),c.passedParams=d.extend({},o),c.$=i;var h=i(c.params.el);if(a=h[0]){if(h.length>1){var f=[];return h.each((function(e,n){var i=d.extend({},o,{el:n});f.push(new t(i))})),f}a.swiper=c,h.data("swiper",c);var g,m,v=h.children("."+c.params.wrapperClass);return d.extend(c,{$el:h,el:a,$wrapperEl:v,wrapperEl:v[0],classNames:[],slides:i(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:function(){return"horizontal"===c.params.direction},isVertical:function(){return"vertical"===c.params.direction},rtl:"rtl"===a.dir.toLowerCase()||"rtl"===h.css("direction"),rtlTranslate:"horizontal"===c.params.direction&&("rtl"===a.dir.toLowerCase()||"rtl"===h.css("direction")),wrongRTL:"-webkit-box"===v.css("display"),activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,allowSlideNext:c.params.allowSlideNext,allowSlidePrev:c.params.allowSlidePrev,touchEvents:(g=["touchstart","touchmove","touchend"],m=["mousedown","mousemove","mouseup"],u.pointerEvents?m=["pointerdown","pointermove","pointerup"]:u.prefixedPointerEvents&&(m=["MSPointerDown","MSPointerMove","MSPointerUp"]),c.touchEventsTouch={start:g[0],move:g[1],end:g[2]},c.touchEventsDesktop={start:m[0],move:m[1],end:m[2]},u.touch||!c.params.simulateTouch?c.touchEventsTouch:c.touchEventsDesktop),touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,formElements:"input, select, option, textarea, button, video",lastClickTime:d.now(),clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,isTouchEvent:void 0,startMoving:void 0},allowClick:!0,allowTouchMove:c.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),c.useModules(),c.params.init&&c.init(),c}}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={extendedDefaults:{configurable:!0},defaults:{configurable:!0},Class:{configurable:!0},$:{configurable:!0}};return t.prototype.slidesPerViewDynamic=function(){var e=this.params,t=this.slides,n=this.slidesGrid,i=this.size,a=this.activeIndex,r=1;if(e.centeredSlides){for(var o,s=t[a].swiperSlideSize,l=a+1;l<t.length;l+=1)t[l]&&!o&&(r+=1,(s+=t[l].swiperSlideSize)>i&&(o=!0));for(var c=a-1;c>=0;c-=1)t[c]&&!o&&(r+=1,(s+=t[c].swiperSlideSize)>i&&(o=!0))}else for(var d=a+1;d<t.length;d+=1)n[d]-n[a]<i&&(r+=1);return r},t.prototype.update=function(){var e=this;if(e&&!e.destroyed){var t=e.snapGrid,n=e.params;n.breakpoints&&e.setBreakpoint(),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.params.freeMode?(i(),e.params.autoHeight&&e.updateAutoHeight()):(("auto"===e.params.slidesPerView||e.params.slidesPerView>1)&&e.isEnd&&!e.params.centeredSlides?e.slideTo(e.slides.length-1,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0))||i(),n.watchOverflow&&t!==e.snapGrid&&e.checkOverflow(),e.emit("update")}function i(){var t=e.rtlTranslate?-1*e.translate:e.translate,n=Math.min(Math.max(t,e.maxTranslate()),e.minTranslate());e.setTranslate(n),e.updateActiveIndex(),e.updateSlidesClasses()}},t.prototype.init=function(){this.initialized||(this.emit("beforeInit"),this.params.breakpoints&&this.setBreakpoint(),this.addClasses(),this.params.loop&&this.loopCreate(),this.updateSize(),this.updateSlides(),this.params.watchOverflow&&this.checkOverflow(),this.params.grabCursor&&this.setGrabCursor(),this.params.preloadImages&&this.preloadImages(),this.params.loop?this.slideTo(this.params.initialSlide+this.loopedSlides,0,this.params.runCallbacksOnInit):this.slideTo(this.params.initialSlide,0,this.params.runCallbacksOnInit),this.attachEvents(),this.initialized=!0,this.emit("init"))},t.prototype.destroy=function(e,t){void 0===e&&(e=!0),void 0===t&&(t=!0);var n=this,i=n.params,a=n.$el,r=n.$wrapperEl,o=n.slides;return void 0===n.params||n.destroyed||(n.emit("beforeDestroy"),n.initialized=!1,n.detachEvents(),i.loop&&n.loopDestroy(),t&&(n.removeClasses(),a.removeAttr("style"),r.removeAttr("style"),o&&o.length&&o.removeClass([i.slideVisibleClass,i.slideActiveClass,i.slideNextClass,i.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index").removeAttr("data-swiper-column").removeAttr("data-swiper-row")),n.emit("destroy"),Object.keys(n.eventsListeners).forEach((function(e){n.off(e)})),!1!==e&&(n.$el[0].swiper=null,n.$el.data("swiper",null),d.deleteProps(n)),n.destroyed=!0),null},t.extendDefaults=function(e){d.extend(I,e)},n.extendedDefaults.get=function(){return I},n.defaults.get=function(){return C},n.Class.get=function(){return e},n.$.get=function(){return i},Object.defineProperties(t,n),t}(p),E={name:"device",proto:{device:y},static:{device:y}},M={name:"support",proto:{support:u},static:{support:u}},A={name:"browser",proto:{browser:k},static:{browser:k}},F={name:"resize",create:function(){var e=this;d.extend(e,{resize:{resizeHandler:function(){e&&!e.destroyed&&e.initialized&&(e.emit("beforeResize"),e.emit("resize"))},orientationChangeHandler:function(){e&&!e.destroyed&&e.initialized&&e.emit("orientationchange")}}})},on:{init:function(){t.addEventListener("resize",this.resize.resizeHandler),t.addEventListener("orientationchange",this.resize.orientationChangeHandler)},destroy:function(){t.removeEventListener("resize",this.resize.resizeHandler),t.removeEventListener("orientationchange",this.resize.orientationChangeHandler)}}},P={func:t.MutationObserver||t.WebkitMutationObserver,attach:function(e,t){void 0===t&&(t={});var n=this,i=new(0,P.func)((function(e){e.forEach((function(e){n.emit("observerUpdate",e)}))}));i.observe(e,{attributes:void 0===t.attributes||t.attributes,childList:void 0===t.childList||t.childList,characterData:void 0===t.characterData||t.characterData}),n.observer.observers.push(i)},init:function(){if(u.observer&&this.params.observer){if(this.params.observeParents)for(var e=this.$el.parents(),t=0;t<e.length;t+=1)this.observer.attach(e[t]);this.observer.attach(this.$el[0],{childList:!1}),this.observer.attach(this.$wrapperEl[0],{attributes:!1})}},destroy:function(){this.observer.observers.forEach((function(e){e.disconnect()})),this.observer.observers=[]}},L={name:"observer",params:{observer:!1,observeParents:!1},create:function(){d.extend(this,{observer:{init:P.init.bind(this),attach:P.attach.bind(this),destroy:P.destroy.bind(this),observers:[]}})},on:{init:function(){this.observer.init()},destroy:function(){this.observer.destroy()}}},N={update:function(e){var t=this,n=t.params,i=n.slidesPerView,a=n.slidesPerGroup,r=n.centeredSlides,o=t.virtual,s=o.from,l=o.to,c=o.slides,u=o.slidesGrid,p=o.renderSlide,h=o.offset;t.updateActiveIndex();var f,g,m,v=t.activeIndex||0;f=t.rtlTranslate?"right":t.isHorizontal()?"left":"top",r?(g=Math.floor(i/2)+a,m=Math.floor(i/2)+a):(g=i+(a-1),m=a);var w=Math.max((v||0)-m,0),b=Math.min((v||0)+g,c.length-1),y=(t.slidesGrid[w]||0)-(t.slidesGrid[0]||0);function _(){t.updateSlides(),t.updateProgress(),t.updateSlidesClasses(),t.lazy&&t.params.lazy.enabled&&t.lazy.load()}if(d.extend(t.virtual,{from:w,to:b,offset:y,slidesGrid:t.slidesGrid}),s===w&&l===b&&!e)return t.slidesGrid!==u&&y!==h&&t.slides.css(f,y+"px"),void t.updateProgress();if(t.params.virtual.renderExternal)return t.params.virtual.renderExternal.call(t,{offset:y,from:w,to:b,slides:function(){for(var e=[],t=w;t<=b;t+=1)e.push(c[t]);return e}()}),void _();var S=[],x=[];if(e)t.$wrapperEl.find("."+t.params.slideClass).remove();else for(var k=s;k<=l;k+=1)(k<w||k>b)&&t.$wrapperEl.find("."+t.params.slideClass+'[data-swiper-slide-index="'+k+'"]').remove();for(var C=0;C<c.length;C+=1)C>=w&&C<=b&&(void 0===l||e?x.push(C):(C>l&&x.push(C),C<s&&S.push(C)));x.forEach((function(e){t.$wrapperEl.append(p(c[e],e))})),S.sort((function(e,t){return e<t})).forEach((function(e){t.$wrapperEl.prepend(p(c[e],e))})),t.$wrapperEl.children(".swiper-slide").css(f,y+"px"),_()},renderSlide:function(e,t){var n=this.params.virtual;if(n.cache&&this.virtual.cache[t])return this.virtual.cache[t];var a=n.renderSlide?i(n.renderSlide.call(this,e,t)):i('<div class="'+this.params.slideClass+'" data-swiper-slide-index="'+t+'">'+e+"</div>");return a.attr("data-swiper-slide-index")||a.attr("data-swiper-slide-index",t),n.cache&&(this.virtual.cache[t]=a),a},appendSlide:function(e){this.virtual.slides.push(e),this.virtual.update(!0)},prependSlide:function(e){if(this.virtual.slides.unshift(e),this.params.virtual.cache){var t=this.virtual.cache,n={};Object.keys(t).forEach((function(e){n[e+1]=t[e]})),this.virtual.cache=n}this.virtual.update(!0),this.slideNext(0)}},O={name:"virtual",params:{virtual:{enabled:!1,slides:[],cache:!0,renderSlide:null,renderExternal:null}},create:function(){d.extend(this,{virtual:{update:N.update.bind(this),appendSlide:N.appendSlide.bind(this),prependSlide:N.prependSlide.bind(this),renderSlide:N.renderSlide.bind(this),slides:this.params.virtual.slides,cache:{}}})},on:{beforeInit:function(){if(this.params.virtual.enabled){this.classNames.push(this.params.containerModifierClass+"virtual");var e={watchSlidesProgress:!0};d.extend(this.params,e),d.extend(this.originalParams,e),this.virtual.update()}},setTranslate:function(){this.params.virtual.enabled&&this.virtual.update()}}},B={handle:function(n){var i=this.rtlTranslate,a=n;a.originalEvent&&(a=a.originalEvent);var r=a.keyCode||a.charCode;if(!this.allowSlideNext&&(this.isHorizontal()&&39===r||this.isVertical()&&40===r))return!1;if(!this.allowSlidePrev&&(this.isHorizontal()&&37===r||this.isVertical()&&38===r))return!1;if(!(a.shiftKey||a.altKey||a.ctrlKey||a.metaKey||e.activeElement&&e.activeElement.nodeName&&("input"===e.activeElement.nodeName.toLowerCase()||"textarea"===e.activeElement.nodeName.toLowerCase()))){if(this.params.keyboard.onlyInViewport&&(37===r||39===r||38===r||40===r)){var o=!1;if(this.$el.parents("."+this.params.slideClass).length>0&&0===this.$el.parents("."+this.params.slideActiveClass).length)return;var s=t.innerWidth,l=t.innerHeight,c=this.$el.offset();i&&(c.left-=this.$el[0].scrollLeft);for(var d=[[c.left,c.top],[c.left+this.width,c.top],[c.left,c.top+this.height],[c.left+this.width,c.top+this.height]],u=0;u<d.length;u+=1){var p=d[u];p[0]>=0&&p[0]<=s&&p[1]>=0&&p[1]<=l&&(o=!0)}if(!o)return}this.isHorizontal()?(37!==r&&39!==r||(a.preventDefault?a.preventDefault():a.returnValue=!1),(39===r&&!i||37===r&&i)&&this.slideNext(),(37===r&&!i||39===r&&i)&&this.slidePrev()):(38!==r&&40!==r||(a.preventDefault?a.preventDefault():a.returnValue=!1),40===r&&this.slideNext(),38===r&&this.slidePrev()),this.emit("keyPress",r)}},enable:function(){this.keyboard.enabled||(i(e).on("keydown",this.keyboard.handle),this.keyboard.enabled=!0)},disable:function(){this.keyboard.enabled&&(i(e).off("keydown",this.keyboard.handle),this.keyboard.enabled=!1)}},j={name:"keyboard",params:{keyboard:{enabled:!1,onlyInViewport:!0}},create:function(){d.extend(this,{keyboard:{enabled:!1,enable:B.enable.bind(this),disable:B.disable.bind(this),handle:B.handle.bind(this)}})},on:{init:function(){this.params.keyboard.enabled&&this.keyboard.enable()},destroy:function(){this.keyboard.enabled&&this.keyboard.disable()}}},H={lastScrollTime:d.now(),event:t.navigator.userAgent.indexOf("firefox")>-1?"DOMMouseScroll":function(){var t="onwheel"in e;if(!t){var n=e.createElement("div");n.setAttribute("onwheel","return;"),t="function"==typeof n.onwheel}return!t&&e.implementation&&e.implementation.hasFeature&&!0!==e.implementation.hasFeature("","")&&(t=e.implementation.hasFeature("Events.wheel","3.0")),t}()?"wheel":"mousewheel",normalize:function(e){var t=0,n=0,i=0,a=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),i=10*t,a=10*n,"deltaY"in e&&(a=e.deltaY),"deltaX"in e&&(i=e.deltaX),(i||a)&&e.deltaMode&&(1===e.deltaMode?(i*=40,a*=40):(i*=800,a*=800)),i&&!t&&(t=i<1?-1:1),a&&!n&&(n=a<1?-1:1),{spinX:t,spinY:n,pixelX:i,pixelY:a}},handleMouseEnter:function(){this.mouseEntered=!0},handleMouseLeave:function(){this.mouseEntered=!1},handle:function(e){var n=e,i=this,a=i.params.mousewheel;if(!i.mouseEntered&&!a.releaseOnEdges)return!0;n.originalEvent&&(n=n.originalEvent);var r=0,o=i.rtlTranslate?-1:1,s=H.normalize(n);if(a.forceToAxis)if(i.isHorizontal()){if(!(Math.abs(s.pixelX)>Math.abs(s.pixelY)))return!0;r=s.pixelX*o}else{if(!(Math.abs(s.pixelY)>Math.abs(s.pixelX)))return!0;r=s.pixelY}else r=Math.abs(s.pixelX)>Math.abs(s.pixelY)?-s.pixelX*o:-s.pixelY;if(0===r)return!0;if(a.invert&&(r=-r),i.params.freeMode){i.params.loop&&i.loopFix();var l=i.getTranslate()+r*a.sensitivity,c=i.isBeginning,u=i.isEnd;if(l>=i.minTranslate()&&(l=i.minTranslate()),l<=i.maxTranslate()&&(l=i.maxTranslate()),i.setTransition(0),i.setTranslate(l),i.updateProgress(),i.updateActiveIndex(),i.updateSlidesClasses(),(!c&&i.isBeginning||!u&&i.isEnd)&&i.updateSlidesClasses(),i.params.freeModeSticky&&(clearTimeout(i.mousewheel.timeout),i.mousewheel.timeout=d.nextTick((function(){i.slideToClosest()}),300)),i.emit("scroll",n),i.params.autoplay&&i.params.autoplayDisableOnInteraction&&i.autoplay.stop(),l===i.minTranslate()||l===i.maxTranslate())return!0}else{if(d.now()-i.mousewheel.lastScrollTime>60)if(r<0)if(i.isEnd&&!i.params.loop||i.animating){if(a.releaseOnEdges)return!0}else i.slideNext(),i.emit("scroll",n);else if(i.isBeginning&&!i.params.loop||i.animating){if(a.releaseOnEdges)return!0}else i.slidePrev(),i.emit("scroll",n);i.mousewheel.lastScrollTime=(new t.Date).getTime()}return n.preventDefault?n.preventDefault():n.returnValue=!1,!1},enable:function(){if(!H.event)return!1;if(this.mousewheel.enabled)return!1;var e=this.$el;return"container"!==this.params.mousewheel.eventsTarged&&(e=i(this.params.mousewheel.eventsTarged)),e.on("mouseenter",this.mousewheel.handleMouseEnter),e.on("mouseleave",this.mousewheel.handleMouseLeave),e.on(H.event,this.mousewheel.handle),this.mousewheel.enabled=!0,!0},disable:function(){if(!H.event)return!1;if(!this.mousewheel.enabled)return!1;var e=this.$el;return"container"!==this.params.mousewheel.eventsTarged&&(e=i(this.params.mousewheel.eventsTarged)),e.off(H.event,this.mousewheel.handle),this.mousewheel.enabled=!1,!0}},z={update:function(){var e=this.params.navigation;if(!this.params.loop){var t=this.navigation,n=t.$nextEl,i=t.$prevEl;i&&i.length>0&&(this.isBeginning?i.addClass(e.disabledClass):i.removeClass(e.disabledClass),i[this.params.watchOverflow&&this.isLocked?"addClass":"removeClass"](e.lockClass)),n&&n.length>0&&(this.isEnd?n.addClass(e.disabledClass):n.removeClass(e.disabledClass),n[this.params.watchOverflow&&this.isLocked?"addClass":"removeClass"](e.lockClass))}},init:function(){var e,t,n=this,a=n.params.navigation;(a.nextEl||a.prevEl)&&(a.nextEl&&(e=i(a.nextEl),n.params.uniqueNavElements&&"string"==typeof a.nextEl&&e.length>1&&1===n.$el.find(a.nextEl).length&&(e=n.$el.find(a.nextEl))),a.prevEl&&(t=i(a.prevEl),n.params.uniqueNavElements&&"string"==typeof a.prevEl&&t.length>1&&1===n.$el.find(a.prevEl).length&&(t=n.$el.find(a.prevEl))),e&&e.length>0&&e.on("click",(function(e){e.preventDefault(),n.isEnd&&!n.params.loop||n.slideNext()})),t&&t.length>0&&t.on("click",(function(e){e.preventDefault(),n.isBeginning&&!n.params.loop||n.slidePrev()})),d.extend(n.navigation,{$nextEl:e,nextEl:e&&e[0],$prevEl:t,prevEl:t&&t[0]}))},destroy:function(){var e=this.navigation,t=e.$nextEl,n=e.$prevEl;t&&t.length&&(t.off("click"),t.removeClass(this.params.navigation.disabledClass)),n&&n.length&&(n.off("click"),n.removeClass(this.params.navigation.disabledClass))}},$={update:function(){var e=this.rtl,t=this.params.pagination;if(t.el&&this.pagination.el&&this.pagination.$el&&0!==this.pagination.$el.length){var n,a=this.virtual&&this.params.virtual.enabled?this.virtual.slides.length:this.slides.length,r=this.pagination.$el,o=this.params.loop?Math.ceil((a-2*this.loopedSlides)/this.params.slidesPerGroup):this.snapGrid.length;if(this.params.loop?((n=Math.ceil((this.activeIndex-this.loopedSlides)/this.params.slidesPerGroup))>a-1-2*this.loopedSlides&&(n-=a-2*this.loopedSlides),n>o-1&&(n-=o),n<0&&"bullets"!==this.params.paginationType&&(n=o+n)):n=void 0!==this.snapIndex?this.snapIndex:this.activeIndex||0,"bullets"===t.type&&this.pagination.bullets&&this.pagination.bullets.length>0){var s,l,c,d=this.pagination.bullets;if(t.dynamicBullets&&(this.pagination.bulletSize=d.eq(0)[this.isHorizontal()?"outerWidth":"outerHeight"](!0),r.css(this.isHorizontal()?"width":"height",this.pagination.bulletSize*(t.dynamicMainBullets+4)+"px"),t.dynamicMainBullets>1&&void 0!==this.previousIndex&&(this.pagination.dynamicBulletIndex+=n-this.previousIndex,this.pagination.dynamicBulletIndex>t.dynamicMainBullets-1?this.pagination.dynamicBulletIndex=t.dynamicMainBullets-1:this.pagination.dynamicBulletIndex<0&&(this.pagination.dynamicBulletIndex=0)),s=n-this.pagination.dynamicBulletIndex,c=((l=s+(Math.min(d.length,t.dynamicMainBullets)-1))+s)/2),d.removeClass(t.bulletActiveClass+" "+t.bulletActiveClass+"-next "+t.bulletActiveClass+"-next-next "+t.bulletActiveClass+"-prev "+t.bulletActiveClass+"-prev-prev "+t.bulletActiveClass+"-main"),r.length>1)d.each((function(e,a){var r=i(a),o=r.index();o===n&&r.addClass(t.bulletActiveClass),t.dynamicBullets&&(o>=s&&o<=l&&r.addClass(t.bulletActiveClass+"-main"),o===s&&r.prev().addClass(t.bulletActiveClass+"-prev").prev().addClass(t.bulletActiveClass+"-prev-prev"),o===l&&r.next().addClass(t.bulletActiveClass+"-next").next().addClass(t.bulletActiveClass+"-next-next"))}));else if(d.eq(n).addClass(t.bulletActiveClass),t.dynamicBullets){for(var u=d.eq(s),p=d.eq(l),h=s;h<=l;h+=1)d.eq(h).addClass(t.bulletActiveClass+"-main");u.prev().addClass(t.bulletActiveClass+"-prev").prev().addClass(t.bulletActiveClass+"-prev-prev"),p.next().addClass(t.bulletActiveClass+"-next").next().addClass(t.bulletActiveClass+"-next-next")}if(t.dynamicBullets){var f=Math.min(d.length,t.dynamicMainBullets+4),g=(this.pagination.bulletSize*f-this.pagination.bulletSize)/2-c*this.pagination.bulletSize,m=e?"right":"left";d.css(this.isHorizontal()?m:"top",g+"px")}}if("fraction"===t.type&&(r.find("."+t.currentClass).text(t.formatFractionCurrent(n+1)),r.find("."+t.totalClass).text(t.formatFractionTotal(o))),"progressbar"===t.type){var v;v=t.progressbarOpposite?this.isHorizontal()?"vertical":"horizontal":this.isHorizontal()?"horizontal":"vertical";var w=(n+1)/o,b=1,y=1;"horizontal"===v?b=w:y=w,r.find("."+t.progressbarFillClass).transform("translate3d(0,0,0) scaleX("+b+") scaleY("+y+")").transition(this.params.speed)}"custom"===t.type&&t.renderCustom?(r.html(t.renderCustom(this,n+1,o)),this.emit("paginationRender",this,r[0])):this.emit("paginationUpdate",this,r[0]),r[this.params.watchOverflow&&this.isLocked?"addClass":"removeClass"](t.lockClass)}},render:function(){var e=this.params.pagination;if(e.el&&this.pagination.el&&this.pagination.$el&&0!==this.pagination.$el.length){var t=this.virtual&&this.params.virtual.enabled?this.virtual.slides.length:this.slides.length,n=this.pagination.$el,i="";if("bullets"===e.type){for(var a=this.params.loop?Math.ceil((t-2*this.loopedSlides)/this.params.slidesPerGroup):this.snapGrid.length,r=0;r<a;r+=1)e.renderBullet?i+=e.renderBullet.call(this,r,e.bulletClass):i+="<"+e.bulletElement+' class="'+e.bulletClass+'"></'+e.bulletElement+">";n.html(i),this.pagination.bullets=n.find("."+e.bulletClass)}"fraction"===e.type&&(i=e.renderFraction?e.renderFraction.call(this,e.currentClass,e.totalClass):'<span class="'+e.currentClass+'"></span> / <span class="'+e.totalClass+'"></span>',n.html(i)),"progressbar"===e.type&&(i=e.renderProgressbar?e.renderProgressbar.call(this,e.progressbarFillClass):'<span class="'+e.progressbarFillClass+'"></span>',n.html(i)),"custom"!==e.type&&this.emit("paginationRender",this.pagination.$el[0])}},init:function(){var e=this,t=e.params.pagination;if(t.el){var n=i(t.el);0!==n.length&&(e.params.uniqueNavElements&&"string"==typeof t.el&&n.length>1&&1===e.$el.find(t.el).length&&(n=e.$el.find(t.el)),"bullets"===t.type&&t.clickable&&n.addClass(t.clickableClass),n.addClass(t.modifierClass+t.type),"bullets"===t.type&&t.dynamicBullets&&(n.addClass(""+t.modifierClass+t.type+"-dynamic"),e.pagination.dynamicBulletIndex=0,t.dynamicMainBullets<1&&(t.dynamicMainBullets=1)),"progressbar"===t.type&&t.progressbarOpposite&&n.addClass(t.progressbarOppositeClass),t.clickable&&n.on("click","."+t.bulletClass,(function(t){t.preventDefault();var n=i(this).index()*e.params.slidesPerGroup;e.params.loop&&(n+=e.loopedSlides),e.slideTo(n)})),d.extend(e.pagination,{$el:n,el:n[0]}))}},destroy:function(){var e=this.params.pagination;if(e.el&&this.pagination.el&&this.pagination.$el&&0!==this.pagination.$el.length){var t=this.pagination.$el;t.removeClass(e.hiddenClass),t.removeClass(e.modifierClass+e.type),this.pagination.bullets&&this.pagination.bullets.removeClass(e.bulletActiveClass),e.clickable&&t.off("click","."+e.bulletClass)}}},G={setTranslate:function(){if(this.params.scrollbar.el&&this.scrollbar.el){var e=this.scrollbar,t=this.rtlTranslate,n=this.progress,i=e.dragSize,a=e.trackSize,r=e.$dragEl,o=e.$el,s=this.params.scrollbar,l=i,c=(a-i)*n;t?(c=-c)>0?(l=i-c,c=0):-c+i>a&&(l=a+c):c<0?(l=i+c,c=0):c+i>a&&(l=a-c),this.isHorizontal()?(u.transforms3d?r.transform("translate3d("+c+"px, 0, 0)"):r.transform("translateX("+c+"px)"),r[0].style.width=l+"px"):(u.transforms3d?r.transform("translate3d(0px, "+c+"px, 0)"):r.transform("translateY("+c+"px)"),r[0].style.height=l+"px"),s.hide&&(clearTimeout(this.scrollbar.timeout),o[0].style.opacity=1,this.scrollbar.timeout=setTimeout((function(){o[0].style.opacity=0,o.transition(400)}),1e3))}},setTransition:function(e){this.params.scrollbar.el&&this.scrollbar.el&&this.scrollbar.$dragEl.transition(e)},updateSize:function(){if(this.params.scrollbar.el&&this.scrollbar.el){var e=this.scrollbar,t=e.$dragEl,n=e.$el;t[0].style.width="",t[0].style.height="";var i,a=this.isHorizontal()?n[0].offsetWidth:n[0].offsetHeight,r=this.size/this.virtualSize,o=r*(a/this.size);i="auto"===this.params.scrollbar.dragSize?a*r:parseInt(this.params.scrollbar.dragSize,10),this.isHorizontal()?t[0].style.width=i+"px":t[0].style.height=i+"px",n[0].style.display=r>=1?"none":"",this.params.scrollbarHide&&(n[0].style.opacity=0),d.extend(e,{trackSize:a,divider:r,moveDivider:o,dragSize:i}),e.$el[this.params.watchOverflow&&this.isLocked?"addClass":"removeClass"](this.params.scrollbar.lockClass)}},setDragPosition:function(e){var t,n=this.scrollbar,i=this.rtlTranslate,a=n.$el,r=n.dragSize,o=n.trackSize;t=((this.isHorizontal()?"touchstart"===e.type||"touchmove"===e.type?e.targetTouches[0].pageX:e.pageX||e.clientX:"touchstart"===e.type||"touchmove"===e.type?e.targetTouches[0].pageY:e.pageY||e.clientY)-a.offset()[this.isHorizontal()?"left":"top"]-r/2)/(o-r),t=Math.max(Math.min(t,1),0),i&&(t=1-t);var s=this.minTranslate()+(this.maxTranslate()-this.minTranslate())*t;this.updateProgress(s),this.setTranslate(s),this.updateActiveIndex(),this.updateSlidesClasses()},onDragStart:function(e){var t=this.params.scrollbar,n=this.scrollbar,i=this.$wrapperEl,a=n.$el,r=n.$dragEl;this.scrollbar.isTouched=!0,e.preventDefault(),e.stopPropagation(),i.transition(100),r.transition(100),n.setDragPosition(e),clearTimeout(this.scrollbar.dragTimeout),a.transition(0),t.hide&&a.css("opacity",1),this.emit("scrollbarDragStart",e)},onDragMove:function(e){var t=this.scrollbar,n=this.$wrapperEl,i=t.$el,a=t.$dragEl;this.scrollbar.isTouched&&(e.preventDefault?e.preventDefault():e.returnValue=!1,t.setDragPosition(e),n.transition(0),i.transition(0),a.transition(0),this.emit("scrollbarDragMove",e))},onDragEnd:function(e){var t=this.params.scrollbar,n=this.scrollbar.$el;this.scrollbar.isTouched&&(this.scrollbar.isTouched=!1,t.hide&&(clearTimeout(this.scrollbar.dragTimeout),this.scrollbar.dragTimeout=d.nextTick((function(){n.css("opacity",0),n.transition(400)}),1e3)),this.emit("scrollbarDragEnd",e),t.snapOnRelease&&this.slideToClosest())},enableDraggable:function(){if(this.params.scrollbar.el){var t=this.scrollbar,n=this.touchEvents,i=this.touchEventsDesktop,a=this.params,r=t.$el[0],o=!(!u.passiveListener||!a.passiveListener)&&{passive:!1,capture:!1},s=!(!u.passiveListener||!a.passiveListener)&&{passive:!0,capture:!1};u.touch||!u.pointerEvents&&!u.prefixedPointerEvents?(u.touch&&(r.addEventListener(n.start,this.scrollbar.onDragStart,o),r.addEventListener(n.move,this.scrollbar.onDragMove,o),r.addEventListener(n.end,this.scrollbar.onDragEnd,s)),(a.simulateTouch&&!y.ios&&!y.android||a.simulateTouch&&!u.touch&&y.ios)&&(r.addEventListener("mousedown",this.scrollbar.onDragStart,o),e.addEventListener("mousemove",this.scrollbar.onDragMove,o),e.addEventListener("mouseup",this.scrollbar.onDragEnd,s))):(r.addEventListener(i.start,this.scrollbar.onDragStart,o),e.addEventListener(i.move,this.scrollbar.onDragMove,o),e.addEventListener(i.end,this.scrollbar.onDragEnd,s))}},disableDraggable:function(){if(this.params.scrollbar.el){var t=this.scrollbar,n=this.touchEvents,i=this.touchEventsDesktop,a=this.params,r=t.$el[0],o=!(!u.passiveListener||!a.passiveListener)&&{passive:!1,capture:!1},s=!(!u.passiveListener||!a.passiveListener)&&{passive:!0,capture:!1};u.touch||!u.pointerEvents&&!u.prefixedPointerEvents?(u.touch&&(r.removeEventListener(n.start,this.scrollbar.onDragStart,o),r.removeEventListener(n.move,this.scrollbar.onDragMove,o),r.removeEventListener(n.end,this.scrollbar.onDragEnd,s)),(a.simulateTouch&&!y.ios&&!y.android||a.simulateTouch&&!u.touch&&y.ios)&&(r.removeEventListener("mousedown",this.scrollbar.onDragStart,o),e.removeEventListener("mousemove",this.scrollbar.onDragMove,o),e.removeEventListener("mouseup",this.scrollbar.onDragEnd,s))):(r.removeEventListener(i.start,this.scrollbar.onDragStart,o),e.removeEventListener(i.move,this.scrollbar.onDragMove,o),e.removeEventListener(i.end,this.scrollbar.onDragEnd,s))}},init:function(){if(this.params.scrollbar.el){var e=this.scrollbar,t=this.$el,n=this.params.scrollbar,a=i(n.el);this.params.uniqueNavElements&&"string"==typeof n.el&&a.length>1&&1===t.find(n.el).length&&(a=t.find(n.el));var r=a.find("."+this.params.scrollbar.dragClass);0===r.length&&(r=i('<div class="'+this.params.scrollbar.dragClass+'"></div>'),a.append(r)),d.extend(e,{$el:a,el:a[0],$dragEl:r,dragEl:r[0]}),n.draggable&&e.enableDraggable()}},destroy:function(){this.scrollbar.disableDraggable()}},R={setTransform:function(e,t){var n=this.rtl,a=i(e),r=n?-1:1,o=a.attr("data-swiper-parallax")||"0",s=a.attr("data-swiper-parallax-x"),l=a.attr("data-swiper-parallax-y"),c=a.attr("data-swiper-parallax-scale"),d=a.attr("data-swiper-parallax-opacity");if(s||l?(s=s||"0",l=l||"0"):this.isHorizontal()?(s=o,l="0"):(l=o,s="0"),s=s.indexOf("%")>=0?parseInt(s,10)*t*r+"%":s*t*r+"px",l=l.indexOf("%")>=0?parseInt(l,10)*t+"%":l*t+"px",null!=d){var u=d-(d-1)*(1-Math.abs(t));a[0].style.opacity=u}if(null==c)a.transform("translate3d("+s+", "+l+", 0px)");else{var p=c-(c-1)*(1-Math.abs(t));a.transform("translate3d("+s+", "+l+", 0px) scale("+p+")")}},setTranslate:function(){var e=this,t=e.$el,n=e.slides,a=e.progress,r=e.snapGrid;t.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each((function(t,n){e.parallax.setTransform(n,a)})),n.each((function(t,n){var o=n.progress;e.params.slidesPerGroup>1&&"auto"!==e.params.slidesPerView&&(o+=Math.ceil(t/2)-a*(r.length-1)),o=Math.min(Math.max(o,-1),1),i(n).find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each((function(t,n){e.parallax.setTransform(n,o)}))}))},setTransition:function(e){void 0===e&&(e=this.params.speed),this.$el.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each((function(t,n){var a=i(n),r=parseInt(a.attr("data-swiper-parallax-duration"),10)||e;0===e&&(r=0),a.transition(r)}))}},q={getDistanceBetweenTouches:function(e){if(e.targetTouches.length<2)return 1;var t=e.targetTouches[0].pageX,n=e.targetTouches[0].pageY,i=e.targetTouches[1].pageX,a=e.targetTouches[1].pageY;return Math.sqrt(Math.pow(i-t,2)+Math.pow(a-n,2))},onGestureStart:function(e){var t=this.params.zoom,n=this.zoom,a=n.gesture;if(n.fakeGestureTouched=!1,n.fakeGestureMoved=!1,!u.gestures){if("touchstart"!==e.type||"touchstart"===e.type&&e.targetTouches.length<2)return;n.fakeGestureTouched=!0,a.scaleStart=q.getDistanceBetweenTouches(e)}a.$slideEl&&a.$slideEl.length||(a.$slideEl=i(e.target).closest(".swiper-slide"),0===a.$slideEl.length&&(a.$slideEl=this.slides.eq(this.activeIndex)),a.$imageEl=a.$slideEl.find("img, svg, canvas"),a.$imageWrapEl=a.$imageEl.parent("."+t.containerClass),a.maxRatio=a.$imageWrapEl.attr("data-swiper-zoom")||t.maxRatio,0!==a.$imageWrapEl.length)?(a.$imageEl.transition(0),this.zoom.isScaling=!0):a.$imageEl=void 0},onGestureChange:function(e){var t=this.params.zoom,n=this.zoom,i=n.gesture;if(!u.gestures){if("touchmove"!==e.type||"touchmove"===e.type&&e.targetTouches.length<2)return;n.fakeGestureMoved=!0,i.scaleMove=q.getDistanceBetweenTouches(e)}i.$imageEl&&0!==i.$imageEl.length&&(u.gestures?this.zoom.scale=e.scale*n.currentScale:n.scale=i.scaleMove/i.scaleStart*n.currentScale,n.scale>i.maxRatio&&(n.scale=i.maxRatio-1+Math.pow(n.scale-i.maxRatio+1,.5)),n.scale<t.minRatio&&(n.scale=t.minRatio+1-Math.pow(t.minRatio-n.scale+1,.5)),i.$imageEl.transform("translate3d(0,0,0) scale("+n.scale+")"))},onGestureEnd:function(e){var t=this.params.zoom,n=this.zoom,i=n.gesture;if(!u.gestures){if(!n.fakeGestureTouched||!n.fakeGestureMoved)return;if("touchend"!==e.type||"touchend"===e.type&&e.changedTouches.length<2&&!y.android)return;n.fakeGestureTouched=!1,n.fakeGestureMoved=!1}i.$imageEl&&0!==i.$imageEl.length&&(n.scale=Math.max(Math.min(n.scale,i.maxRatio),t.minRatio),i.$imageEl.transition(this.params.speed).transform("translate3d(0,0,0) scale("+n.scale+")"),n.currentScale=n.scale,n.isScaling=!1,1===n.scale&&(i.$slideEl=void 0))},onTouchStart:function(e){var t=this.zoom,n=t.gesture,i=t.image;n.$imageEl&&0!==n.$imageEl.length&&(i.isTouched||(y.android&&e.preventDefault(),i.isTouched=!0,i.touchesStart.x="touchstart"===e.type?e.targetTouches[0].pageX:e.pageX,i.touchesStart.y="touchstart"===e.type?e.targetTouches[0].pageY:e.pageY))},onTouchMove:function(e){var t=this.zoom,n=t.gesture,i=t.image,a=t.velocity;if(n.$imageEl&&0!==n.$imageEl.length&&(this.allowClick=!1,i.isTouched&&n.$slideEl)){i.isMoved||(i.width=n.$imageEl[0].offsetWidth,i.height=n.$imageEl[0].offsetHeight,i.startX=d.getTranslate(n.$imageWrapEl[0],"x")||0,i.startY=d.getTranslate(n.$imageWrapEl[0],"y")||0,n.slideWidth=n.$slideEl[0].offsetWidth,n.slideHeight=n.$slideEl[0].offsetHeight,n.$imageWrapEl.transition(0),this.rtl&&(i.startX=-i.startX,i.startY=-i.startY));var r=i.width*t.scale,o=i.height*t.scale;if(!(r<n.slideWidth&&o<n.slideHeight)){if(i.minX=Math.min(n.slideWidth/2-r/2,0),i.maxX=-i.minX,i.minY=Math.min(n.slideHeight/2-o/2,0),i.maxY=-i.minY,i.touchesCurrent.x="touchmove"===e.type?e.targetTouches[0].pageX:e.pageX,i.touchesCurrent.y="touchmove"===e.type?e.targetTouches[0].pageY:e.pageY,!i.isMoved&&!t.isScaling){if(this.isHorizontal()&&(Math.floor(i.minX)===Math.floor(i.startX)&&i.touchesCurrent.x<i.touchesStart.x||Math.floor(i.maxX)===Math.floor(i.startX)&&i.touchesCurrent.x>i.touchesStart.x))return void(i.isTouched=!1);if(!this.isHorizontal()&&(Math.floor(i.minY)===Math.floor(i.startY)&&i.touchesCurrent.y<i.touchesStart.y||Math.floor(i.maxY)===Math.floor(i.startY)&&i.touchesCurrent.y>i.touchesStart.y))return void(i.isTouched=!1)}e.preventDefault(),e.stopPropagation(),i.isMoved=!0,i.currentX=i.touchesCurrent.x-i.touchesStart.x+i.startX,i.currentY=i.touchesCurrent.y-i.touchesStart.y+i.startY,i.currentX<i.minX&&(i.currentX=i.minX+1-Math.pow(i.minX-i.currentX+1,.8)),i.currentX>i.maxX&&(i.currentX=i.maxX-1+Math.pow(i.currentX-i.maxX+1,.8)),i.currentY<i.minY&&(i.currentY=i.minY+1-Math.pow(i.minY-i.currentY+1,.8)),i.currentY>i.maxY&&(i.currentY=i.maxY-1+Math.pow(i.currentY-i.maxY+1,.8)),a.prevPositionX||(a.prevPositionX=i.touchesCurrent.x),a.prevPositionY||(a.prevPositionY=i.touchesCurrent.y),a.prevTime||(a.prevTime=Date.now()),a.x=(i.touchesCurrent.x-a.prevPositionX)/(Date.now()-a.prevTime)/2,a.y=(i.touchesCurrent.y-a.prevPositionY)/(Date.now()-a.prevTime)/2,Math.abs(i.touchesCurrent.x-a.prevPositionX)<2&&(a.x=0),Math.abs(i.touchesCurrent.y-a.prevPositionY)<2&&(a.y=0),a.prevPositionX=i.touchesCurrent.x,a.prevPositionY=i.touchesCurrent.y,a.prevTime=Date.now(),n.$imageWrapEl.transform("translate3d("+i.currentX+"px, "+i.currentY+"px,0)")}}},onTouchEnd:function(){var e=this.zoom,t=e.gesture,n=e.image,i=e.velocity;if(t.$imageEl&&0!==t.$imageEl.length){if(!n.isTouched||!n.isMoved)return n.isTouched=!1,void(n.isMoved=!1);n.isTouched=!1,n.isMoved=!1;var a=300,r=300,o=i.x*a,s=n.currentX+o,l=i.y*r,c=n.currentY+l;0!==i.x&&(a=Math.abs((s-n.currentX)/i.x)),0!==i.y&&(r=Math.abs((c-n.currentY)/i.y));var d=Math.max(a,r);n.currentX=s,n.currentY=c;var u=n.width*e.scale,p=n.height*e.scale;n.minX=Math.min(t.slideWidth/2-u/2,0),n.maxX=-n.minX,n.minY=Math.min(t.slideHeight/2-p/2,0),n.maxY=-n.minY,n.currentX=Math.max(Math.min(n.currentX,n.maxX),n.minX),n.currentY=Math.max(Math.min(n.currentY,n.maxY),n.minY),t.$imageWrapEl.transition(d).transform("translate3d("+n.currentX+"px, "+n.currentY+"px,0)")}},onTransitionEnd:function(){var e=this.zoom,t=e.gesture;t.$slideEl&&this.previousIndex!==this.activeIndex&&(t.$imageEl.transform("translate3d(0,0,0) scale(1)"),t.$imageWrapEl.transform("translate3d(0,0,0)"),t.$slideEl=void 0,t.$imageEl=void 0,t.$imageWrapEl=void 0,e.scale=1,e.currentScale=1)},toggle:function(e){var t=this.zoom;t.scale&&1!==t.scale?t.out():t.in(e)},in:function(e){var t,n,a,r,o,s,l,c,d,u,p,h,f,g,m,v,w=this.zoom,b=this.params.zoom,y=w.gesture,_=w.image;y.$slideEl||(y.$slideEl=this.clickedSlide?i(this.clickedSlide):this.slides.eq(this.activeIndex),y.$imageEl=y.$slideEl.find("img, svg, canvas"),y.$imageWrapEl=y.$imageEl.parent("."+b.containerClass)),y.$imageEl&&0!==y.$imageEl.length&&(y.$slideEl.addClass(""+b.zoomedSlideClass),void 0===_.touchesStart.x&&e?(t="touchend"===e.type?e.changedTouches[0].pageX:e.pageX,n="touchend"===e.type?e.changedTouches[0].pageY:e.pageY):(t=_.touchesStart.x,n=_.touchesStart.y),w.scale=y.$imageWrapEl.attr("data-swiper-zoom")||b.maxRatio,w.currentScale=y.$imageWrapEl.attr("data-swiper-zoom")||b.maxRatio,e?(m=y.$slideEl[0].offsetWidth,v=y.$slideEl[0].offsetHeight,a=y.$slideEl.offset().left+m/2-t,r=y.$slideEl.offset().top+v/2-n,l=y.$imageEl[0].offsetWidth,c=y.$imageEl[0].offsetHeight,d=l*w.scale,u=c*w.scale,f=-(p=Math.min(m/2-d/2,0)),g=-(h=Math.min(v/2-u/2,0)),(o=a*w.scale)<p&&(o=p),o>f&&(o=f),(s=r*w.scale)<h&&(s=h),s>g&&(s=g)):(o=0,s=0),y.$imageWrapEl.transition(300).transform("translate3d("+o+"px, "+s+"px,0)"),y.$imageEl.transition(300).transform("translate3d(0,0,0) scale("+w.scale+")"))},out:function(){var e=this.zoom,t=this.params.zoom,n=e.gesture;n.$slideEl||(n.$slideEl=this.clickedSlide?i(this.clickedSlide):this.slides.eq(this.activeIndex),n.$imageEl=n.$slideEl.find("img, svg, canvas"),n.$imageWrapEl=n.$imageEl.parent("."+t.containerClass)),n.$imageEl&&0!==n.$imageEl.length&&(e.scale=1,e.currentScale=1,n.$imageWrapEl.transition(300).transform("translate3d(0,0,0)"),n.$imageEl.transition(300).transform("translate3d(0,0,0) scale(1)"),n.$slideEl.removeClass(""+t.zoomedSlideClass),n.$slideEl=void 0)},enable:function(){var e=this.zoom;if(!e.enabled){e.enabled=!0;var t=!("touchstart"!==this.touchEvents.start||!u.passiveListener||!this.params.passiveListeners)&&{passive:!0,capture:!1};u.gestures?(this.$wrapperEl.on("gesturestart",".swiper-slide",e.onGestureStart,t),this.$wrapperEl.on("gesturechange",".swiper-slide",e.onGestureChange,t),this.$wrapperEl.on("gestureend",".swiper-slide",e.onGestureEnd,t)):"touchstart"===this.touchEvents.start&&(this.$wrapperEl.on(this.touchEvents.start,".swiper-slide",e.onGestureStart,t),this.$wrapperEl.on(this.touchEvents.move,".swiper-slide",e.onGestureChange,t),this.$wrapperEl.on(this.touchEvents.end,".swiper-slide",e.onGestureEnd,t)),this.$wrapperEl.on(this.touchEvents.move,"."+this.params.zoom.containerClass,e.onTouchMove)}},disable:function(){var e=this.zoom;if(e.enabled){this.zoom.enabled=!1;var t=!("touchstart"!==this.touchEvents.start||!u.passiveListener||!this.params.passiveListeners)&&{passive:!0,capture:!1};u.gestures?(this.$wrapperEl.off("gesturestart",".swiper-slide",e.onGestureStart,t),this.$wrapperEl.off("gesturechange",".swiper-slide",e.onGestureChange,t),this.$wrapperEl.off("gestureend",".swiper-slide",e.onGestureEnd,t)):"touchstart"===this.touchEvents.start&&(this.$wrapperEl.off(this.touchEvents.start,".swiper-slide",e.onGestureStart,t),this.$wrapperEl.off(this.touchEvents.move,".swiper-slide",e.onGestureChange,t),this.$wrapperEl.off(this.touchEvents.end,".swiper-slide",e.onGestureEnd,t)),this.$wrapperEl.off(this.touchEvents.move,"."+this.params.zoom.containerClass,e.onTouchMove)}}},W={loadInSlide:function(e,t){void 0===t&&(t=!0);var n=this,a=n.params.lazy;if(void 0!==e&&0!==n.slides.length){var r=n.virtual&&n.params.virtual.enabled?n.$wrapperEl.children("."+n.params.slideClass+'[data-swiper-slide-index="'+e+'"]'):n.slides.eq(e),o=r.find("."+a.elementClass+":not(."+a.loadedClass+"):not(."+a.loadingClass+")");!r.hasClass(a.elementClass)||r.hasClass(a.loadedClass)||r.hasClass(a.loadingClass)||(o=o.add(r[0])),0!==o.length&&o.each((function(e,o){var s=i(o);s.addClass(a.loadingClass);var l=s.attr("data-background"),c=s.attr("data-src"),d=s.attr("data-srcset"),u=s.attr("data-sizes");n.loadImage(s[0],c||l,d,u,!1,(function(){if(null!=n&&n&&(!n||n.params)&&!n.destroyed){if(l?(s.css("background-image",'url("'+l+'")'),s.removeAttr("data-background")):(d&&(s.attr("srcset",d),s.removeAttr("data-srcset")),u&&(s.attr("sizes",u),s.removeAttr("data-sizes")),c&&(s.attr("src",c),s.removeAttr("data-src"))),s.addClass(a.loadedClass).removeClass(a.loadingClass),r.find("."+a.preloaderClass).remove(),n.params.loop&&t){var e=r.attr("data-swiper-slide-index");if(r.hasClass(n.params.slideDuplicateClass)){var i=n.$wrapperEl.children('[data-swiper-slide-index="'+e+'"]:not(.'+n.params.slideDuplicateClass+")");n.lazy.loadInSlide(i.index(),!1)}else{var o=n.$wrapperEl.children("."+n.params.slideDuplicateClass+'[data-swiper-slide-index="'+e+'"]');n.lazy.loadInSlide(o.index(),!1)}}n.emit("lazyImageReady",r[0],s[0])}})),n.emit("lazyImageLoad",r[0],s[0])}))}},load:function(){var e=this,t=e.$wrapperEl,n=e.params,a=e.slides,r=e.activeIndex,o=e.virtual&&n.virtual.enabled,s=n.lazy,l=n.slidesPerView;function c(e){if(o){if(t.children("."+n.slideClass+'[data-swiper-slide-index="'+e+'"]').length)return!0}else if(a[e])return!0;return!1}function d(e){return o?i(e).attr("data-swiper-slide-index"):i(e).index()}if("auto"===l&&(l=0),e.lazy.initialImageLoaded||(e.lazy.initialImageLoaded=!0),e.params.watchSlidesVisibility)t.children("."+n.slideVisibleClass).each((function(t,n){var a=o?i(n).attr("data-swiper-slide-index"):i(n).index();e.lazy.loadInSlide(a)}));else if(l>1)for(var u=r;u<r+l;u+=1)c(u)&&e.lazy.loadInSlide(u);else e.lazy.loadInSlide(r);if(s.loadPrevNext)if(l>1||s.loadPrevNextAmount&&s.loadPrevNextAmount>1){for(var p=s.loadPrevNextAmount,h=l,f=Math.min(r+h+Math.max(p,h),a.length),g=Math.max(r-Math.max(h,p),0),m=r+l;m<f;m+=1)c(m)&&e.lazy.loadInSlide(m);for(var v=g;v<r;v+=1)c(v)&&e.lazy.loadInSlide(v)}else{var w=t.children("."+n.slideNextClass);w.length>0&&e.lazy.loadInSlide(d(w));var b=t.children("."+n.slidePrevClass);b.length>0&&e.lazy.loadInSlide(d(b))}}},U={LinearSpline:function(e,t){var n,i,a,r,o;return this.x=e,this.y=t,this.lastIndex=e.length-1,this.interpolate=function(e){return e?(o=function(e,t){for(i=-1,n=e.length;n-i>1;)e[a=n+i>>1]<=t?i=a:n=a;return n}(this.x,e),r=o-1,(e-this.x[r])*(this.y[o]-this.y[r])/(this.x[o]-this.x[r])+this.y[r]):0},this},getInterpolateFunction:function(e){this.controller.spline||(this.controller.spline=this.params.loop?new U.LinearSpline(this.slidesGrid,e.slidesGrid):new U.LinearSpline(this.snapGrid,e.snapGrid))},setTranslate:function(e,t){var n,i,a=this,r=a.controller.control;function o(e){var t=a.rtlTranslate?-a.translate:a.translate;"slide"===a.params.controller.by&&(a.controller.getInterpolateFunction(e),i=-a.controller.spline.interpolate(-t)),i&&"container"!==a.params.controller.by||(n=(e.maxTranslate()-e.minTranslate())/(a.maxTranslate()-a.minTranslate()),i=(t-a.minTranslate())*n+e.minTranslate()),a.params.controller.inverse&&(i=e.maxTranslate()-i),e.updateProgress(i),e.setTranslate(i,a),e.updateActiveIndex(),e.updateSlidesClasses()}if(Array.isArray(r))for(var s=0;s<r.length;s+=1)r[s]!==t&&r[s]instanceof D&&o(r[s]);else r instanceof D&&t!==r&&o(r)},setTransition:function(e,t){var n,i=this,a=i.controller.control;function r(t){t.setTransition(e,i),0!==e&&(t.transitionStart(),t.$wrapperEl.transitionEnd((function(){a&&(t.params.loop&&"slide"===i.params.controller.by&&t.loopFix(),t.transitionEnd())})))}if(Array.isArray(a))for(n=0;n<a.length;n+=1)a[n]!==t&&a[n]instanceof D&&r(a[n]);else a instanceof D&&t!==a&&r(a)}},V={makeElFocusable:function(e){return e.attr("tabIndex","0"),e},addElRole:function(e,t){return e.attr("role",t),e},addElLabel:function(e,t){return e.attr("aria-label",t),e},disableEl:function(e){return e.attr("aria-disabled",!0),e},enableEl:function(e){return e.attr("aria-disabled",!1),e},onEnterKey:function(e){var t=this.params.a11y;if(13===e.keyCode){var n=i(e.target);this.navigation&&this.navigation.$nextEl&&n.is(this.navigation.$nextEl)&&(this.isEnd&&!this.params.loop||this.slideNext(),this.isEnd?this.a11y.notify(t.lastSlideMessage):this.a11y.notify(t.nextSlideMessage)),this.navigation&&this.navigation.$prevEl&&n.is(this.navigation.$prevEl)&&(this.isBeginning&&!this.params.loop||this.slidePrev(),this.isBeginning?this.a11y.notify(t.firstSlideMessage):this.a11y.notify(t.prevSlideMessage)),this.pagination&&n.is("."+this.params.pagination.bulletClass)&&n[0].click()}},notify:function(e){var t=this.a11y.liveRegion;0!==t.length&&(t.html(""),t.html(e))},updateNavigation:function(){if(!this.params.loop){var e=this.navigation,t=e.$nextEl,n=e.$prevEl;n&&n.length>0&&(this.isBeginning?this.a11y.disableEl(n):this.a11y.enableEl(n)),t&&t.length>0&&(this.isEnd?this.a11y.disableEl(t):this.a11y.enableEl(t))}},updatePagination:function(){var e=this,t=e.params.a11y;e.pagination&&e.params.pagination.clickable&&e.pagination.bullets&&e.pagination.bullets.length&&e.pagination.bullets.each((function(n,a){var r=i(a);e.a11y.makeElFocusable(r),e.a11y.addElRole(r,"button"),e.a11y.addElLabel(r,t.paginationBulletMessage.replace(/{{index}}/,r.index()+1))}))},init:function(){this.$el.append(this.a11y.liveRegion);var e,t,n=this.params.a11y;this.navigation&&this.navigation.$nextEl&&(e=this.navigation.$nextEl),this.navigation&&this.navigation.$prevEl&&(t=this.navigation.$prevEl),e&&(this.a11y.makeElFocusable(e),this.a11y.addElRole(e,"button"),this.a11y.addElLabel(e,n.nextSlideMessage),e.on("keydown",this.a11y.onEnterKey)),t&&(this.a11y.makeElFocusable(t),this.a11y.addElRole(t,"button"),this.a11y.addElLabel(t,n.prevSlideMessage),t.on("keydown",this.a11y.onEnterKey)),this.pagination&&this.params.pagination.clickable&&this.pagination.bullets&&this.pagination.bullets.length&&this.pagination.$el.on("keydown","."+this.params.pagination.bulletClass,this.a11y.onEnterKey)},destroy:function(){var e,t;this.a11y.liveRegion&&this.a11y.liveRegion.length>0&&this.a11y.liveRegion.remove(),this.navigation&&this.navigation.$nextEl&&(e=this.navigation.$nextEl),this.navigation&&this.navigation.$prevEl&&(t=this.navigation.$prevEl),e&&e.off("keydown",this.a11y.onEnterKey),t&&t.off("keydown",this.a11y.onEnterKey),this.pagination&&this.params.pagination.clickable&&this.pagination.bullets&&this.pagination.bullets.length&&this.pagination.$el.off("keydown","."+this.params.pagination.bulletClass,this.a11y.onEnterKey)}},X={init:function(){if(this.params.history){if(!t.history||!t.history.pushState)return this.params.history.enabled=!1,void(this.params.hashNavigation.enabled=!0);var e=this.history;e.initialized=!0,e.paths=X.getPathValues(),(e.paths.key||e.paths.value)&&(e.scrollToSlide(0,e.paths.value,this.params.runCallbacksOnInit),this.params.history.replaceState||t.addEventListener("popstate",this.history.setHistoryPopState))}},destroy:function(){this.params.history.replaceState||t.removeEventListener("popstate",this.history.setHistoryPopState)},setHistoryPopState:function(){this.history.paths=X.getPathValues(),this.history.scrollToSlide(this.params.speed,this.history.paths.value,!1)},getPathValues:function(){var e=t.location.pathname.slice(1).split("/").filter((function(e){return""!==e})),n=e.length;return{key:e[n-2],value:e[n-1]}},setHistory:function(e,n){if(this.history.initialized&&this.params.history.enabled){var i=this.slides.eq(n),a=X.slugify(i.attr("data-history"));t.location.pathname.includes(e)||(a=e+"/"+a);var r=t.history.state;r&&r.value===a||(this.params.history.replaceState?t.history.replaceState({value:a},null,a):t.history.pushState({value:a},null,a))}},slugify:function(e){return e.toString().toLowerCase().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,"")},scrollToSlide:function(e,t,n){if(t)for(var i=0,a=this.slides.length;i<a;i+=1){var r=this.slides.eq(i);if(X.slugify(r.attr("data-history"))===t&&!r.hasClass(this.params.slideDuplicateClass)){var o=r.index();this.slideTo(o,e,n)}}else this.slideTo(0,e,n)}},Y={onHashCange:function(){var t=e.location.hash.replace("#","");t!==this.slides.eq(this.activeIndex).attr("data-hash")&&this.slideTo(this.$wrapperEl.children("."+this.params.slideClass+'[data-hash="'+t+'"]').index())},setHash:function(){if(this.hashNavigation.initialized&&this.params.hashNavigation.enabled)if(this.params.hashNavigation.replaceState&&t.history&&t.history.replaceState)t.history.replaceState(null,null,"#"+this.slides.eq(this.activeIndex).attr("data-hash")||!1);else{var n=this.slides.eq(this.activeIndex),i=n.attr("data-hash")||n.attr("data-history");e.location.hash=i||""}},init:function(){if(!(!this.params.hashNavigation.enabled||this.params.history&&this.params.history.enabled)){this.hashNavigation.initialized=!0;var n=e.location.hash.replace("#","");if(n)for(var a=0,r=this.slides.length;a<r;a+=1){var o=this.slides.eq(a);if((o.attr("data-hash")||o.attr("data-history"))===n&&!o.hasClass(this.params.slideDuplicateClass)){var s=o.index();this.slideTo(s,0,this.params.runCallbacksOnInit,!0)}}this.params.hashNavigation.watchState&&i(t).on("hashchange",this.hashNavigation.onHashCange)}},destroy:function(){this.params.hashNavigation.watchState&&i(t).off("hashchange",this.hashNavigation.onHashCange)}},J={run:function(){var e=this,t=e.slides.eq(e.activeIndex),n=e.params.autoplay.delay;t.attr("data-swiper-autoplay")&&(n=t.attr("data-swiper-autoplay")||e.params.autoplay.delay),e.autoplay.timeout=d.nextTick((function(){e.params.autoplay.reverseDirection?e.params.loop?(e.loopFix(),e.slidePrev(e.params.speed,!0,!0),e.emit("autoplay")):e.isBeginning?e.params.autoplay.stopOnLastSlide?e.autoplay.stop():(e.slideTo(e.slides.length-1,e.params.speed,!0,!0),e.emit("autoplay")):(e.slidePrev(e.params.speed,!0,!0),e.emit("autoplay")):e.params.loop?(e.loopFix(),e.slideNext(e.params.speed,!0,!0),e.emit("autoplay")):e.isEnd?e.params.autoplay.stopOnLastSlide?e.autoplay.stop():(e.slideTo(0,e.params.speed,!0,!0),e.emit("autoplay")):(e.slideNext(e.params.speed,!0,!0),e.emit("autoplay"))}),n)},start:function(){return void 0===this.autoplay.timeout&&!this.autoplay.running&&(this.autoplay.running=!0,this.emit("autoplayStart"),this.autoplay.run(),!0)},stop:function(){return!!this.autoplay.running&&void 0!==this.autoplay.timeout&&(this.autoplay.timeout&&(clearTimeout(this.autoplay.timeout),this.autoplay.timeout=void 0),this.autoplay.running=!1,this.emit("autoplayStop"),!0)},pause:function(e){this.autoplay.running&&(this.autoplay.paused||(this.autoplay.timeout&&clearTimeout(this.autoplay.timeout),this.autoplay.paused=!0,0!==e&&this.params.autoplay.waitForTransition?(this.$wrapperEl[0].addEventListener("transitionend",this.autoplay.onTransitionEnd),this.$wrapperEl[0].addEventListener("webkitTransitionEnd",this.autoplay.onTransitionEnd)):(this.autoplay.paused=!1,this.autoplay.run())))}},K={setTranslate:function(){for(var e=this.slides,t=0;t<e.length;t+=1){var n=this.slides.eq(t),i=-n[0].swiperSlideOffset;this.params.virtualTranslate||(i-=this.translate);var a=0;this.isHorizontal()||(a=i,i=0);var r=this.params.fadeEffect.crossFade?Math.max(1-Math.abs(n[0].progress),0):1+Math.min(Math.max(n[0].progress,-1),0);n.css({opacity:r}).transform("translate3d("+i+"px, "+a+"px, 0px)")}},setTransition:function(e){var t=this,n=t.slides,i=t.$wrapperEl;if(n.transition(e),t.params.virtualTranslate&&0!==e){var a=!1;n.transitionEnd((function(){if(!a&&t&&!t.destroyed){a=!0,t.animating=!1;for(var e=["webkitTransitionEnd","transitionend"],n=0;n<e.length;n+=1)i.trigger(e[n])}}))}}},Q={setTranslate:function(){var e,t=this.$el,n=this.$wrapperEl,a=this.slides,r=this.width,o=this.height,s=this.rtlTranslate,l=this.size,c=this.params.cubeEffect,d=this.isHorizontal(),u=this.virtual&&this.params.virtual.enabled,p=0;c.shadow&&(d?(0===(e=n.find(".swiper-cube-shadow")).length&&(e=i('<div class="swiper-cube-shadow"></div>'),n.append(e)),e.css({height:r+"px"})):0===(e=t.find(".swiper-cube-shadow")).length&&(e=i('<div class="swiper-cube-shadow"></div>'),t.append(e)));for(var h=0;h<a.length;h+=1){var f=a.eq(h),g=h;u&&(g=parseInt(f.attr("data-swiper-slide-index"),10));var m=90*g,v=Math.floor(m/360);s&&(m=-m,v=Math.floor(-m/360));var w=Math.max(Math.min(f[0].progress,1),-1),b=0,y=0,_=0;g%4==0?(b=4*-v*l,_=0):(g-1)%4==0?(b=0,_=4*-v*l):(g-2)%4==0?(b=l+4*v*l,_=l):(g-3)%4==0&&(b=-l,_=3*l+4*l*v),s&&(b=-b),d||(y=b,b=0);var S="rotateX("+(d?0:-m)+"deg) rotateY("+(d?m:0)+"deg) translate3d("+b+"px, "+y+"px, "+_+"px)";if(w<=1&&w>-1&&(p=90*g+90*w,s&&(p=90*-g-90*w)),f.transform(S),c.slideShadows){var x=d?f.find(".swiper-slide-shadow-left"):f.find(".swiper-slide-shadow-top"),C=d?f.find(".swiper-slide-shadow-right"):f.find(".swiper-slide-shadow-bottom");0===x.length&&(x=i('<div class="swiper-slide-shadow-'+(d?"left":"top")+'"></div>'),f.append(x)),0===C.length&&(C=i('<div class="swiper-slide-shadow-'+(d?"right":"bottom")+'"></div>'),f.append(C)),x.length&&(x[0].style.opacity=Math.max(-w,0)),C.length&&(C[0].style.opacity=Math.max(w,0))}}if(n.css({"-webkit-transform-origin":"50% 50% -"+l/2+"px","-moz-transform-origin":"50% 50% -"+l/2+"px","-ms-transform-origin":"50% 50% -"+l/2+"px","transform-origin":"50% 50% -"+l/2+"px"}),c.shadow)if(d)e.transform("translate3d(0px, "+(r/2+c.shadowOffset)+"px, "+-r/2+"px) rotateX(90deg) rotateZ(0deg) scale("+c.shadowScale+")");else{var T=Math.abs(p)-90*Math.floor(Math.abs(p)/90),I=1.5-(Math.sin(2*T*Math.PI/360)/2+Math.cos(2*T*Math.PI/360)/2),D=c.shadowScale,E=c.shadowScale/I,M=c.shadowOffset;e.transform("scale3d("+D+", 1, "+E+") translate3d(0px, "+(o/2+M)+"px, "+-o/2/E+"px) rotateX(-90deg)")}var A=k.isSafari||k.isUiWebView?-l/2:0;n.transform("translate3d(0px,0,"+A+"px) rotateX("+(this.isHorizontal()?0:p)+"deg) rotateY("+(this.isHorizontal()?-p:0)+"deg)")},setTransition:function(e){var t=this.$el;this.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),this.params.cubeEffect.shadow&&!this.isHorizontal()&&t.find(".swiper-cube-shadow").transition(e)}},Z={setTranslate:function(){for(var e=this.slides,t=this.rtlTranslate,n=0;n<e.length;n+=1){var a=e.eq(n),r=a[0].progress;this.params.flipEffect.limitRotation&&(r=Math.max(Math.min(a[0].progress,1),-1));var o=-180*r,s=0,l=-a[0].swiperSlideOffset,c=0;if(this.isHorizontal()?t&&(o=-o):(c=l,l=0,s=-o,o=0),a[0].style.zIndex=-Math.abs(Math.round(r))+e.length,this.params.flipEffect.slideShadows){var d=this.isHorizontal()?a.find(".swiper-slide-shadow-left"):a.find(".swiper-slide-shadow-top"),u=this.isHorizontal()?a.find(".swiper-slide-shadow-right"):a.find(".swiper-slide-shadow-bottom");0===d.length&&(d=i('<div class="swiper-slide-shadow-'+(this.isHorizontal()?"left":"top")+'"></div>'),a.append(d)),0===u.length&&(u=i('<div class="swiper-slide-shadow-'+(this.isHorizontal()?"right":"bottom")+'"></div>'),a.append(u)),d.length&&(d[0].style.opacity=Math.max(-r,0)),u.length&&(u[0].style.opacity=Math.max(r,0))}a.transform("translate3d("+l+"px, "+c+"px, 0px) rotateX("+s+"deg) rotateY("+o+"deg)")}},setTransition:function(e){var t=this,n=t.slides,i=t.activeIndex,a=t.$wrapperEl;if(n.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),t.params.virtualTranslate&&0!==e){var r=!1;n.eq(i).transitionEnd((function(){if(!r&&t&&!t.destroyed){r=!0,t.animating=!1;for(var e=["webkitTransitionEnd","transitionend"],n=0;n<e.length;n+=1)a.trigger(e[n])}}))}}},ee={setTranslate:function(){for(var e=this.width,t=this.height,n=this.slides,a=this.$wrapperEl,r=this.slidesSizesGrid,o=this.params.coverflowEffect,s=this.isHorizontal(),l=this.translate,c=s?e/2-l:t/2-l,d=s?o.rotate:-o.rotate,p=o.depth,h=0,f=n.length;h<f;h+=1){var g=n.eq(h),m=r[h],v=(c-g[0].swiperSlideOffset-m/2)/m*o.modifier,w=s?d*v:0,b=s?0:d*v,y=-p*Math.abs(v),_=s?0:o.stretch*v,S=s?o.stretch*v:0;Math.abs(S)<.001&&(S=0),Math.abs(_)<.001&&(_=0),Math.abs(y)<.001&&(y=0),Math.abs(w)<.001&&(w=0),Math.abs(b)<.001&&(b=0);var x="translate3d("+S+"px,"+_+"px,"+y+"px)  rotateX("+b+"deg) rotateY("+w+"deg)";if(g.transform(x),g[0].style.zIndex=1-Math.abs(Math.round(v)),o.slideShadows){var k=s?g.find(".swiper-slide-shadow-left"):g.find(".swiper-slide-shadow-top"),C=s?g.find(".swiper-slide-shadow-right"):g.find(".swiper-slide-shadow-bottom");0===k.length&&(k=i('<div class="swiper-slide-shadow-'+(s?"left":"top")+'"></div>'),g.append(k)),0===C.length&&(C=i('<div class="swiper-slide-shadow-'+(s?"right":"bottom")+'"></div>'),g.append(C)),k.length&&(k[0].style.opacity=v>0?v:0),C.length&&(C[0].style.opacity=-v>0?-v:0)}}(u.pointerEvents||u.prefixedPointerEvents)&&(a[0].style.perspectiveOrigin=c+"px 50%")},setTransition:function(e){this.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e)}},te=[E,M,A,F,L,O,j,{name:"mousewheel",params:{mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarged:"container"}},create:function(){d.extend(this,{mousewheel:{enabled:!1,enable:H.enable.bind(this),disable:H.disable.bind(this),handle:H.handle.bind(this),handleMouseEnter:H.handleMouseEnter.bind(this),handleMouseLeave:H.handleMouseLeave.bind(this),lastScrollTime:d.now()}})},on:{init:function(){this.params.mousewheel.enabled&&this.mousewheel.enable()},destroy:function(){this.mousewheel.enabled&&this.mousewheel.disable()}}},{name:"navigation",params:{navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock"}},create:function(){d.extend(this,{navigation:{init:z.init.bind(this),update:z.update.bind(this),destroy:z.destroy.bind(this)}})},on:{init:function(){this.navigation.init(),this.navigation.update()},toEdge:function(){this.navigation.update()},fromEdge:function(){this.navigation.update()},destroy:function(){this.navigation.destroy()},click:function(e){var t=this.navigation,n=t.$nextEl,a=t.$prevEl;!this.params.navigation.hideOnClick||i(e.target).is(a)||i(e.target).is(n)||(n&&n.toggleClass(this.params.navigation.hiddenClass),a&&a.toggleClass(this.params.navigation.hiddenClass))}}},{name:"pagination",params:{pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:function(e){return e},formatFractionTotal:function(e){return e},bulletClass:"swiper-pagination-bullet",bulletActiveClass:"swiper-pagination-bullet-active",modifierClass:"swiper-pagination-",currentClass:"swiper-pagination-current",totalClass:"swiper-pagination-total",hiddenClass:"swiper-pagination-hidden",progressbarFillClass:"swiper-pagination-progressbar-fill",progressbarOppositeClass:"swiper-pagination-progressbar-opposite",clickableClass:"swiper-pagination-clickable",lockClass:"swiper-pagination-lock"}},create:function(){d.extend(this,{pagination:{init:$.init.bind(this),render:$.render.bind(this),update:$.update.bind(this),destroy:$.destroy.bind(this),dynamicBulletIndex:0}})},on:{init:function(){this.pagination.init(),this.pagination.render(),this.pagination.update()},activeIndexChange:function(){(this.params.loop||void 0===this.snapIndex)&&this.pagination.update()},snapIndexChange:function(){this.params.loop||this.pagination.update()},slidesLengthChange:function(){this.params.loop&&(this.pagination.render(),this.pagination.update())},snapGridLengthChange:function(){this.params.loop||(this.pagination.render(),this.pagination.update())},destroy:function(){this.pagination.destroy()},click:function(e){this.params.pagination.el&&this.params.pagination.hideOnClick&&this.pagination.$el.length>0&&!i(e.target).hasClass(this.params.pagination.bulletClass)&&this.pagination.$el.toggleClass(this.params.pagination.hiddenClass)}}},{name:"scrollbar",params:{scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag"}},create:function(){d.extend(this,{scrollbar:{init:G.init.bind(this),destroy:G.destroy.bind(this),updateSize:G.updateSize.bind(this),setTranslate:G.setTranslate.bind(this),setTransition:G.setTransition.bind(this),enableDraggable:G.enableDraggable.bind(this),disableDraggable:G.disableDraggable.bind(this),setDragPosition:G.setDragPosition.bind(this),onDragStart:G.onDragStart.bind(this),onDragMove:G.onDragMove.bind(this),onDragEnd:G.onDragEnd.bind(this),isTouched:!1,timeout:null,dragTimeout:null}})},on:{init:function(){this.scrollbar.init(),this.scrollbar.updateSize(),this.scrollbar.setTranslate()},update:function(){this.scrollbar.updateSize()},resize:function(){this.scrollbar.updateSize()},observerUpdate:function(){this.scrollbar.updateSize()},setTranslate:function(){this.scrollbar.setTranslate()},setTransition:function(e){this.scrollbar.setTransition(e)},destroy:function(){this.scrollbar.destroy()}}},{name:"parallax",params:{parallax:{enabled:!1}},create:function(){d.extend(this,{parallax:{setTransform:R.setTransform.bind(this),setTranslate:R.setTranslate.bind(this),setTransition:R.setTransition.bind(this)}})},on:{beforeInit:function(){this.params.parallax.enabled&&(this.params.watchSlidesProgress=!0)},init:function(){this.params.parallax&&this.parallax.setTranslate()},setTranslate:function(){this.params.parallax&&this.parallax.setTranslate()},setTransition:function(e){this.params.parallax&&this.parallax.setTransition(e)}}},{name:"zoom",params:{zoom:{enabled:!1,maxRatio:3,minRatio:1,toggle:!0,containerClass:"swiper-zoom-container",zoomedSlideClass:"swiper-slide-zoomed"}},create:function(){var e=this,t={enabled:!1,scale:1,currentScale:1,isScaling:!1,gesture:{$slideEl:void 0,slideWidth:void 0,slideHeight:void 0,$imageEl:void 0,$imageWrapEl:void 0,maxRatio:3},image:{isTouched:void 0,isMoved:void 0,currentX:void 0,currentY:void 0,minX:void 0,minY:void 0,maxX:void 0,maxY:void 0,width:void 0,height:void 0,startX:void 0,startY:void 0,touchesStart:{},touchesCurrent:{}},velocity:{x:void 0,y:void 0,prevPositionX:void 0,prevPositionY:void 0,prevTime:void 0}};"onGestureStart onGestureChange onGestureEnd onTouchStart onTouchMove onTouchEnd onTransitionEnd toggle enable disable in out".split(" ").forEach((function(n){t[n]=q[n].bind(e)})),d.extend(e,{zoom:t})},on:{init:function(){this.params.zoom.enabled&&this.zoom.enable()},destroy:function(){this.zoom.disable()},touchStart:function(e){this.zoom.enabled&&this.zoom.onTouchStart(e)},touchEnd:function(e){this.zoom.enabled&&this.zoom.onTouchEnd(e)},doubleTap:function(e){this.params.zoom.enabled&&this.zoom.enabled&&this.params.zoom.toggle&&this.zoom.toggle(e)},transitionEnd:function(){this.zoom.enabled&&this.params.zoom.enabled&&this.zoom.onTransitionEnd()}}},{name:"lazy",params:{lazy:{enabled:!1,loadPrevNext:!1,loadPrevNextAmount:1,loadOnTransitionStart:!1,elementClass:"swiper-lazy",loadingClass:"swiper-lazy-loading",loadedClass:"swiper-lazy-loaded",preloaderClass:"swiper-lazy-preloader"}},create:function(){d.extend(this,{lazy:{initialImageLoaded:!1,load:W.load.bind(this),loadInSlide:W.loadInSlide.bind(this)}})},on:{beforeInit:function(){this.params.lazy.enabled&&this.params.preloadImages&&(this.params.preloadImages=!1)},init:function(){this.params.lazy.enabled&&!this.params.loop&&0===this.params.initialSlide&&this.lazy.load()},scroll:function(){this.params.freeMode&&!this.params.freeModeSticky&&this.lazy.load()},resize:function(){this.params.lazy.enabled&&this.lazy.load()},scrollbarDragMove:function(){this.params.lazy.enabled&&this.lazy.load()},transitionStart:function(){this.params.lazy.enabled&&(this.params.lazy.loadOnTransitionStart||!this.params.lazy.loadOnTransitionStart&&!this.lazy.initialImageLoaded)&&this.lazy.load()},transitionEnd:function(){this.params.lazy.enabled&&!this.params.lazy.loadOnTransitionStart&&this.lazy.load()}}},{name:"controller",params:{controller:{control:void 0,inverse:!1,by:"slide"}},create:function(){d.extend(this,{controller:{control:this.params.controller.control,getInterpolateFunction:U.getInterpolateFunction.bind(this),setTranslate:U.setTranslate.bind(this),setTransition:U.setTransition.bind(this)}})},on:{update:function(){this.controller.control&&this.controller.spline&&(this.controller.spline=void 0,delete this.controller.spline)},resize:function(){this.controller.control&&this.controller.spline&&(this.controller.spline=void 0,delete this.controller.spline)},observerUpdate:function(){this.controller.control&&this.controller.spline&&(this.controller.spline=void 0,delete this.controller.spline)},setTranslate:function(e,t){this.controller.control&&this.controller.setTranslate(e,t)},setTransition:function(e,t){this.controller.control&&this.controller.setTransition(e,t)}}},{name:"a11y",params:{a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}"}},create:function(){var e=this;d.extend(e,{a11y:{liveRegion:i('<span class="'+e.params.a11y.notificationClass+'" aria-live="assertive" aria-atomic="true"></span>')}}),Object.keys(V).forEach((function(t){e.a11y[t]=V[t].bind(e)}))},on:{init:function(){this.params.a11y.enabled&&(this.a11y.init(),this.a11y.updateNavigation())},toEdge:function(){this.params.a11y.enabled&&this.a11y.updateNavigation()},fromEdge:function(){this.params.a11y.enabled&&this.a11y.updateNavigation()},paginationUpdate:function(){this.params.a11y.enabled&&this.a11y.updatePagination()},destroy:function(){this.params.a11y.enabled&&this.a11y.destroy()}}},{name:"history",params:{history:{enabled:!1,replaceState:!1,key:"slides"}},create:function(){d.extend(this,{history:{init:X.init.bind(this),setHistory:X.setHistory.bind(this),setHistoryPopState:X.setHistoryPopState.bind(this),scrollToSlide:X.scrollToSlide.bind(this),destroy:X.destroy.bind(this)}})},on:{init:function(){this.params.history.enabled&&this.history.init()},destroy:function(){this.params.history.enabled&&this.history.destroy()},transitionEnd:function(){this.history.initialized&&this.history.setHistory(this.params.history.key,this.activeIndex)}}},{name:"hash-navigation",params:{hashNavigation:{enabled:!1,replaceState:!1,watchState:!1}},create:function(){d.extend(this,{hashNavigation:{initialized:!1,init:Y.init.bind(this),destroy:Y.destroy.bind(this),setHash:Y.setHash.bind(this),onHashCange:Y.onHashCange.bind(this)}})},on:{init:function(){this.params.hashNavigation.enabled&&this.hashNavigation.init()},destroy:function(){this.params.hashNavigation.enabled&&this.hashNavigation.destroy()},transitionEnd:function(){this.hashNavigation.initialized&&this.hashNavigation.setHash()}}},{name:"autoplay",params:{autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!0,stopOnLastSlide:!1,reverseDirection:!1}},create:function(){var e=this;d.extend(e,{autoplay:{running:!1,paused:!1,run:J.run.bind(e),start:J.start.bind(e),stop:J.stop.bind(e),pause:J.pause.bind(e),onTransitionEnd:function(t){e&&!e.destroyed&&e.$wrapperEl&&t.target===this&&(e.$wrapperEl[0].removeEventListener("transitionend",e.autoplay.onTransitionEnd),e.$wrapperEl[0].removeEventListener("webkitTransitionEnd",e.autoplay.onTransitionEnd),e.autoplay.paused=!1,e.autoplay.running?e.autoplay.run():e.autoplay.stop())}}})},on:{init:function(){this.params.autoplay.enabled&&this.autoplay.start()},beforeTransitionStart:function(e,t){this.autoplay.running&&(t||!this.params.autoplay.disableOnInteraction?this.autoplay.pause(e):this.autoplay.stop())},sliderFirstMove:function(){this.autoplay.running&&(this.params.autoplay.disableOnInteraction?this.autoplay.stop():this.autoplay.pause())},destroy:function(){this.autoplay.running&&this.autoplay.stop()}}},{name:"effect-fade",params:{fadeEffect:{crossFade:!1}},create:function(){d.extend(this,{fadeEffect:{setTranslate:K.setTranslate.bind(this),setTransition:K.setTransition.bind(this)}})},on:{beforeInit:function(){if("fade"===this.params.effect){this.classNames.push(this.params.containerModifierClass+"fade");var e={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!0};d.extend(this.params,e),d.extend(this.originalParams,e)}},setTranslate:function(){"fade"===this.params.effect&&this.fadeEffect.setTranslate()},setTransition:function(e){"fade"===this.params.effect&&this.fadeEffect.setTransition(e)}}},{name:"effect-cube",params:{cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}},create:function(){d.extend(this,{cubeEffect:{setTranslate:Q.setTranslate.bind(this),setTransition:Q.setTransition.bind(this)}})},on:{beforeInit:function(){if("cube"===this.params.effect){this.classNames.push(this.params.containerModifierClass+"cube"),this.classNames.push(this.params.containerModifierClass+"3d");var e={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0};d.extend(this.params,e),d.extend(this.originalParams,e)}},setTranslate:function(){"cube"===this.params.effect&&this.cubeEffect.setTranslate()},setTransition:function(e){"cube"===this.params.effect&&this.cubeEffect.setTransition(e)}}},{name:"effect-flip",params:{flipEffect:{slideShadows:!0,limitRotation:!0}},create:function(){d.extend(this,{flipEffect:{setTranslate:Z.setTranslate.bind(this),setTransition:Z.setTransition.bind(this)}})},on:{beforeInit:function(){if("flip"===this.params.effect){this.classNames.push(this.params.containerModifierClass+"flip"),this.classNames.push(this.params.containerModifierClass+"3d");var e={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!0};d.extend(this.params,e),d.extend(this.originalParams,e)}},setTranslate:function(){"flip"===this.params.effect&&this.flipEffect.setTranslate()},setTransition:function(e){"flip"===this.params.effect&&this.flipEffect.setTransition(e)}}},{name:"effect-coverflow",params:{coverflowEffect:{rotate:50,stretch:0,depth:100,modifier:1,slideShadows:!0}},create:function(){d.extend(this,{coverflowEffect:{setTranslate:ee.setTranslate.bind(this),setTransition:ee.setTransition.bind(this)}})},on:{beforeInit:function(){"coverflow"===this.params.effect&&(this.classNames.push(this.params.containerModifierClass+"coverflow"),this.classNames.push(this.params.containerModifierClass+"3d"),this.params.watchSlidesProgress=!0,this.originalParams.watchSlidesProgress=!0)},setTranslate:function(){"coverflow"===this.params.effect&&this.coverflowEffect.setTranslate()},setTransition:function(e){"coverflow"===this.params.effect&&this.coverflowEffect.setTransition(e)}}}];return void 0===D.use&&(D.use=D.Class.use,D.installModule=D.Class.installModule),D.use(te),D}))},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return Sn})),n.d(t,"VERSION",(function(){return a.e})),n.d(t,"restArguments",(function(){return r})),n.d(t,"isObject",(function(){return o})),n.d(t,"isNull",(function(){return s})),n.d(t,"isUndefined",(function(){return l})),n.d(t,"isBoolean",(function(){return c})),n.d(t,"isElement",(function(){return d})),n.d(t,"isString",(function(){return p})),n.d(t,"isNumber",(function(){return h})),n.d(t,"isDate",(function(){return f})),n.d(t,"isRegExp",(function(){return g})),n.d(t,"isError",(function(){return m})),n.d(t,"isSymbol",(function(){return v})),n.d(t,"isArrayBuffer",(function(){return w})),n.d(t,"isDataView",(function(){return T})),n.d(t,"isArray",(function(){return I})),n.d(t,"isFunction",(function(){return _})),n.d(t,"isArguments",(function(){return M})),n.d(t,"isFinite",(function(){return A})),n.d(t,"isNaN",(function(){return F})),n.d(t,"isTypedArray",(function(){return H})),n.d(t,"isEmpty",(function(){return R})),n.d(t,"isMatch",(function(){return q})),n.d(t,"isEqual",(function(){return X})),n.d(t,"isMap",(function(){return ie})),n.d(t,"isWeakMap",(function(){return ae})),n.d(t,"isSet",(function(){return re})),n.d(t,"isWeakSet",(function(){return oe})),n.d(t,"keys",(function(){return G})),n.d(t,"allKeys",(function(){return Y})),n.d(t,"values",(function(){return se})),n.d(t,"pairs",(function(){return le})),n.d(t,"invert",(function(){return ce})),n.d(t,"functions",(function(){return de})),n.d(t,"methods",(function(){return de})),n.d(t,"extend",(function(){return pe})),n.d(t,"extendOwn",(function(){return he})),n.d(t,"assign",(function(){return he})),n.d(t,"defaults",(function(){return fe})),n.d(t,"create",(function(){return me})),n.d(t,"clone",(function(){return ve})),n.d(t,"tap",(function(){return we})),n.d(t,"get",(function(){return Se})),n.d(t,"has",(function(){return xe})),n.d(t,"mapObject",(function(){return Ae})),n.d(t,"identity",(function(){return ke})),n.d(t,"constant",(function(){return P})),n.d(t,"noop",(function(){return Fe})),n.d(t,"toPath",(function(){return be})),n.d(t,"property",(function(){return Te})),n.d(t,"propertyOf",(function(){return Pe})),n.d(t,"matcher",(function(){return Ce})),n.d(t,"matches",(function(){return Ce})),n.d(t,"times",(function(){return Le})),n.d(t,"random",(function(){return Ne})),n.d(t,"now",(function(){return Oe})),n.d(t,"escape",(function(){return He})),n.d(t,"unescape",(function(){return ze})),n.d(t,"templateSettings",(function(){return $e})),n.d(t,"template",(function(){return Ve})),n.d(t,"result",(function(){return Xe})),n.d(t,"uniqueId",(function(){return Je})),n.d(t,"chain",(function(){return Ke})),n.d(t,"iteratee",(function(){return Ee})),n.d(t,"partial",(function(){return et})),n.d(t,"bind",(function(){return tt})),n.d(t,"bindAll",(function(){return at})),n.d(t,"memoize",(function(){return rt})),n.d(t,"delay",(function(){return ot})),n.d(t,"defer",(function(){return st})),n.d(t,"throttle",(function(){return lt})),n.d(t,"debounce",(function(){return ct})),n.d(t,"wrap",(function(){return dt})),n.d(t,"negate",(function(){return ut})),n.d(t,"compose",(function(){return pt})),n.d(t,"after",(function(){return ht})),n.d(t,"before",(function(){return ft})),n.d(t,"once",(function(){return gt})),n.d(t,"findKey",(function(){return mt})),n.d(t,"findIndex",(function(){return wt})),n.d(t,"findLastIndex",(function(){return bt})),n.d(t,"sortedIndex",(function(){return yt})),n.d(t,"indexOf",(function(){return St})),n.d(t,"lastIndexOf",(function(){return xt})),n.d(t,"find",(function(){return kt})),n.d(t,"detect",(function(){return kt})),n.d(t,"findWhere",(function(){return Ct})),n.d(t,"each",(function(){return Tt})),n.d(t,"forEach",(function(){return Tt})),n.d(t,"map",(function(){return It})),n.d(t,"collect",(function(){return It})),n.d(t,"reduce",(function(){return Et})),n.d(t,"foldl",(function(){return Et})),n.d(t,"inject",(function(){return Et})),n.d(t,"reduceRight",(function(){return Mt})),n.d(t,"foldr",(function(){return Mt})),n.d(t,"filter",(function(){return At})),n.d(t,"select",(function(){return At})),n.d(t,"reject",(function(){return Ft})),n.d(t,"every",(function(){return Pt})),n.d(t,"all",(function(){return Pt})),n.d(t,"some",(function(){return Lt})),n.d(t,"any",(function(){return Lt})),n.d(t,"contains",(function(){return Nt})),n.d(t,"includes",(function(){return Nt})),n.d(t,"include",(function(){return Nt})),n.d(t,"invoke",(function(){return Ot})),n.d(t,"pluck",(function(){return Bt})),n.d(t,"where",(function(){return jt})),n.d(t,"max",(function(){return Ht})),n.d(t,"min",(function(){return zt})),n.d(t,"shuffle",(function(){return qt})),n.d(t,"sample",(function(){return Rt})),n.d(t,"sortBy",(function(){return Wt})),n.d(t,"groupBy",(function(){return Vt})),n.d(t,"indexBy",(function(){return Xt})),n.d(t,"countBy",(function(){return Yt})),n.d(t,"partition",(function(){return Jt})),n.d(t,"toArray",(function(){return Gt})),n.d(t,"size",(function(){return Kt})),n.d(t,"pick",(function(){return Zt})),n.d(t,"omit",(function(){return en})),n.d(t,"first",(function(){return nn})),n.d(t,"head",(function(){return nn})),n.d(t,"take",(function(){return nn})),n.d(t,"initial",(function(){return tn})),n.d(t,"last",(function(){return rn})),n.d(t,"rest",(function(){return an})),n.d(t,"tail",(function(){return an})),n.d(t,"drop",(function(){return an})),n.d(t,"compact",(function(){return on})),n.d(t,"flatten",(function(){return sn})),n.d(t,"without",(function(){return cn})),n.d(t,"uniq",(function(){return dn})),n.d(t,"unique",(function(){return dn})),n.d(t,"union",(function(){return un})),n.d(t,"intersection",(function(){return pn})),n.d(t,"difference",(function(){return ln})),n.d(t,"unzip",(function(){return hn})),n.d(t,"transpose",(function(){return hn})),n.d(t,"zip",(function(){return fn})),n.d(t,"object",(function(){return gn})),n.d(t,"range",(function(){return mn})),n.d(t,"chunk",(function(){return vn})),n.d(t,"mixin",(function(){return bn}));var i={};n.r(i),n.d(i,"VERSION",(function(){return a.e})),n.d(i,"restArguments",(function(){return r})),n.d(i,"isObject",(function(){return o})),n.d(i,"isNull",(function(){return s})),n.d(i,"isUndefined",(function(){return l})),n.d(i,"isBoolean",(function(){return c})),n.d(i,"isElement",(function(){return d})),n.d(i,"isString",(function(){return p})),n.d(i,"isNumber",(function(){return h})),n.d(i,"isDate",(function(){return f})),n.d(i,"isRegExp",(function(){return g})),n.d(i,"isError",(function(){return m})),n.d(i,"isSymbol",(function(){return v})),n.d(i,"isArrayBuffer",(function(){return w})),n.d(i,"isDataView",(function(){return T})),n.d(i,"isArray",(function(){return I})),n.d(i,"isFunction",(function(){return _})),n.d(i,"isArguments",(function(){return M})),n.d(i,"isFinite",(function(){return A})),n.d(i,"isNaN",(function(){return F})),n.d(i,"isTypedArray",(function(){return H})),n.d(i,"isEmpty",(function(){return R})),n.d(i,"isMatch",(function(){return q})),n.d(i,"isEqual",(function(){return X})),n.d(i,"isMap",(function(){return ie})),n.d(i,"isWeakMap",(function(){return ae})),n.d(i,"isSet",(function(){return re})),n.d(i,"isWeakSet",(function(){return oe})),n.d(i,"keys",(function(){return G})),n.d(i,"allKeys",(function(){return Y})),n.d(i,"values",(function(){return se})),n.d(i,"pairs",(function(){return le})),n.d(i,"invert",(function(){return ce})),n.d(i,"functions",(function(){return de})),n.d(i,"methods",(function(){return de})),n.d(i,"extend",(function(){return pe})),n.d(i,"extendOwn",(function(){return he})),n.d(i,"assign",(function(){return he})),n.d(i,"defaults",(function(){return fe})),n.d(i,"create",(function(){return me})),n.d(i,"clone",(function(){return ve})),n.d(i,"tap",(function(){return we})),n.d(i,"get",(function(){return Se})),n.d(i,"has",(function(){return xe})),n.d(i,"mapObject",(function(){return Ae})),n.d(i,"identity",(function(){return ke})),n.d(i,"constant",(function(){return P})),n.d(i,"noop",(function(){return Fe})),n.d(i,"toPath",(function(){return be})),n.d(i,"property",(function(){return Te})),n.d(i,"propertyOf",(function(){return Pe})),n.d(i,"matcher",(function(){return Ce})),n.d(i,"matches",(function(){return Ce})),n.d(i,"times",(function(){return Le})),n.d(i,"random",(function(){return Ne})),n.d(i,"now",(function(){return Oe})),n.d(i,"escape",(function(){return He})),n.d(i,"unescape",(function(){return ze})),n.d(i,"templateSettings",(function(){return $e})),n.d(i,"template",(function(){return Ve})),n.d(i,"result",(function(){return Xe})),n.d(i,"uniqueId",(function(){return Je})),n.d(i,"chain",(function(){return Ke})),n.d(i,"iteratee",(function(){return Ee})),n.d(i,"partial",(function(){return et})),n.d(i,"bind",(function(){return tt})),n.d(i,"bindAll",(function(){return at})),n.d(i,"memoize",(function(){return rt})),n.d(i,"delay",(function(){return ot})),n.d(i,"defer",(function(){return st})),n.d(i,"throttle",(function(){return lt})),n.d(i,"debounce",(function(){return ct})),n.d(i,"wrap",(function(){return dt})),n.d(i,"negate",(function(){return ut})),n.d(i,"compose",(function(){return pt})),n.d(i,"after",(function(){return ht})),n.d(i,"before",(function(){return ft})),n.d(i,"once",(function(){return gt})),n.d(i,"findKey",(function(){return mt})),n.d(i,"findIndex",(function(){return wt})),n.d(i,"findLastIndex",(function(){return bt})),n.d(i,"sortedIndex",(function(){return yt})),n.d(i,"indexOf",(function(){return St})),n.d(i,"lastIndexOf",(function(){return xt})),n.d(i,"find",(function(){return kt})),n.d(i,"detect",(function(){return kt})),n.d(i,"findWhere",(function(){return Ct})),n.d(i,"each",(function(){return Tt})),n.d(i,"forEach",(function(){return Tt})),n.d(i,"map",(function(){return It})),n.d(i,"collect",(function(){return It})),n.d(i,"reduce",(function(){return Et})),n.d(i,"foldl",(function(){return Et})),n.d(i,"inject",(function(){return Et})),n.d(i,"reduceRight",(function(){return Mt})),n.d(i,"foldr",(function(){return Mt})),n.d(i,"filter",(function(){return At})),n.d(i,"select",(function(){return At})),n.d(i,"reject",(function(){return Ft})),n.d(i,"every",(function(){return Pt})),n.d(i,"all",(function(){return Pt})),n.d(i,"some",(function(){return Lt})),n.d(i,"any",(function(){return Lt})),n.d(i,"contains",(function(){return Nt})),n.d(i,"includes",(function(){return Nt})),n.d(i,"include",(function(){return Nt})),n.d(i,"invoke",(function(){return Ot})),n.d(i,"pluck",(function(){return Bt})),n.d(i,"where",(function(){return jt})),n.d(i,"max",(function(){return Ht})),n.d(i,"min",(function(){return zt})),n.d(i,"shuffle",(function(){return qt})),n.d(i,"sample",(function(){return Rt})),n.d(i,"sortBy",(function(){return Wt})),n.d(i,"groupBy",(function(){return Vt})),n.d(i,"indexBy",(function(){return Xt})),n.d(i,"countBy",(function(){return Yt})),n.d(i,"partition",(function(){return Jt})),n.d(i,"toArray",(function(){return Gt})),n.d(i,"size",(function(){return Kt})),n.d(i,"pick",(function(){return Zt})),n.d(i,"omit",(function(){return en})),n.d(i,"first",(function(){return nn})),n.d(i,"head",(function(){return nn})),n.d(i,"take",(function(){return nn})),n.d(i,"initial",(function(){return tn})),n.d(i,"last",(function(){return rn})),n.d(i,"rest",(function(){return an})),n.d(i,"tail",(function(){return an})),n.d(i,"drop",(function(){return an})),n.d(i,"compact",(function(){return on})),n.d(i,"flatten",(function(){return sn})),n.d(i,"without",(function(){return cn})),n.d(i,"uniq",(function(){return dn})),n.d(i,"unique",(function(){return dn})),n.d(i,"union",(function(){return un})),n.d(i,"intersection",(function(){return pn})),n.d(i,"difference",(function(){return ln})),n.d(i,"unzip",(function(){return hn})),n.d(i,"transpose",(function(){return hn})),n.d(i,"zip",(function(){return fn})),n.d(i,"object",(function(){return gn})),n.d(i,"range",(function(){return mn})),n.d(i,"chunk",(function(){return vn})),n.d(i,"mixin",(function(){return bn})),n.d(i,"default",(function(){return yn}));var a=n(0);function r(e,t){return t=null==t?e.length-1:+t,function(){for(var n=Math.max(arguments.length-t,0),i=Array(n),a=0;a<n;a++)i[a]=arguments[a+t];switch(t){case 0:return e.call(this,i);case 1:return e.call(this,arguments[0],i);case 2:return e.call(this,arguments[0],arguments[1],i)}var r=Array(t+1);for(a=0;a<t;a++)r[a]=arguments[a];return r[t]=i,e.apply(this,r)}}function o(e){var t=typeof e;return"function"===t||"object"===t&&!!e}function s(e){return null===e}function l(e){return void 0===e}function c(e){return!0===e||!1===e||"[object Boolean]"===a.t.call(e)}function d(e){return!(!e||1!==e.nodeType)}function u(e){var t="[object "+e+"]";return function(e){return a.t.call(e)===t}}var p=u("String"),h=u("Number"),f=u("Date"),g=u("RegExp"),m=u("Error"),v=u("Symbol"),w=u("ArrayBuffer"),b=u("Function"),y=a.p.document&&a.p.document.childNodes;"object"!=typeof Int8Array&&"function"!=typeof y&&(b=function(e){return"function"==typeof e||!1});var _=b,S=u("Object"),x=a.s&&S(new DataView(new ArrayBuffer(8))),k="undefined"!=typeof Map&&S(new Map),C=u("DataView");var T=x?function(e){return null!=e&&_(e.getInt8)&&w(e.buffer)}:C,I=a.k||u("Array");function D(e,t){return null!=e&&a.i.call(e,t)}var E=u("Arguments");!function(){E(arguments)||(E=function(e){return D(e,"callee")})}();var M=E;function A(e){return!v(e)&&Object(a.f)(e)&&!isNaN(parseFloat(e))}function F(e){return h(e)&&Object(a.g)(e)}function P(e){return function(){return e}}function L(e){return function(t){var n=e(t);return"number"==typeof n&&n>=0&&n<=a.b}}function N(e){return function(t){return null==t?void 0:t[e]}}var O=N("byteLength"),B=L(O),j=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;var H=a.r?function(e){return a.l?Object(a.l)(e)&&!T(e):B(e)&&j.test(a.t.call(e))}:P(!1),z=N("length");function $(e,t){t=function(e){for(var t={},n=e.length,i=0;i<n;++i)t[e[i]]=!0;return{contains:function(e){return!0===t[e]},push:function(n){return t[n]=!0,e.push(n)}}}(t);var n=a.n.length,i=e.constructor,r=_(i)&&i.prototype||a.c,o="constructor";for(D(e,o)&&!t.contains(o)&&t.push(o);n--;)(o=a.n[n])in e&&e[o]!==r[o]&&!t.contains(o)&&t.push(o)}function G(e){if(!o(e))return[];if(a.m)return Object(a.m)(e);var t=[];for(var n in e)D(e,n)&&t.push(n);return a.h&&$(e,t),t}function R(e){if(null==e)return!0;var t=z(e);return"number"==typeof t&&(I(e)||p(e)||M(e))?0===t:0===z(G(e))}function q(e,t){var n=G(t),i=n.length;if(null==e)return!i;for(var a=Object(e),r=0;r<i;r++){var o=n[r];if(t[o]!==a[o]||!(o in a))return!1}return!0}function W(e){return e instanceof W?e:this instanceof W?void(this._wrapped=e):new W(e)}function U(e){return new Uint8Array(e.buffer||e,e.byteOffset||0,O(e))}W.VERSION=a.e,W.prototype.value=function(){return this._wrapped},W.prototype.valueOf=W.prototype.toJSON=W.prototype.value,W.prototype.toString=function(){return String(this._wrapped)};function V(e,t,n,i){if(e===t)return 0!==e||1/e==1/t;if(null==e||null==t)return!1;if(e!=e)return t!=t;var r=typeof e;return("function"===r||"object"===r||"object"==typeof t)&&function e(t,n,i,r){t instanceof W&&(t=t._wrapped);n instanceof W&&(n=n._wrapped);var o=a.t.call(t);if(o!==a.t.call(n))return!1;if(x&&"[object Object]"==o&&T(t)){if(!T(n))return!1;o="[object DataView]"}switch(o){case"[object RegExp]":case"[object String]":return""+t==""+n;case"[object Number]":return+t!=+t?+n!=+n:0==+t?1/+t==1/n:+t==+n;case"[object Date]":case"[object Boolean]":return+t==+n;case"[object Symbol]":return a.d.valueOf.call(t)===a.d.valueOf.call(n);case"[object ArrayBuffer]":case"[object DataView]":return e(U(t),U(n),i,r)}var s="[object Array]"===o;if(!s&&H(t)){if(O(t)!==O(n))return!1;if(t.buffer===n.buffer&&t.byteOffset===n.byteOffset)return!0;s=!0}if(!s){if("object"!=typeof t||"object"!=typeof n)return!1;var l=t.constructor,c=n.constructor;if(l!==c&&!(_(l)&&l instanceof l&&_(c)&&c instanceof c)&&"constructor"in t&&"constructor"in n)return!1}r=r||[];var d=(i=i||[]).length;for(;d--;)if(i[d]===t)return r[d]===n;if(i.push(t),r.push(n),s){if((d=t.length)!==n.length)return!1;for(;d--;)if(!V(t[d],n[d],i,r))return!1}else{var u,p=G(t);if(d=p.length,G(n).length!==d)return!1;for(;d--;)if(u=p[d],!D(n,u)||!V(t[u],n[u],i,r))return!1}return i.pop(),r.pop(),!0}(e,t,n,i)}function X(e,t){return V(e,t)}function Y(e){if(!o(e))return[];var t=[];for(var n in e)t.push(n);return a.h&&$(e,t),t}function J(e){var t=z(e);return function(n){if(null==n)return!1;var i=Y(n);if(z(i))return!1;for(var a=0;a<t;a++)if(!_(n[e[a]]))return!1;return e!==te||!_(n[K])}}var K="forEach",Q=["clear","delete"],Z=["get","has","set"],ee=Q.concat(K,Z),te=Q.concat(Z),ne=["add"].concat(Q,K,"has"),ie=k?J(ee):u("Map"),ae=k?J(te):u("WeakMap"),re=k?J(ne):u("Set"),oe=u("WeakSet");function se(e){for(var t=G(e),n=t.length,i=Array(n),a=0;a<n;a++)i[a]=e[t[a]];return i}function le(e){for(var t=G(e),n=t.length,i=Array(n),a=0;a<n;a++)i[a]=[t[a],e[t[a]]];return i}function ce(e){for(var t={},n=G(e),i=0,a=n.length;i<a;i++)t[e[n[i]]]=n[i];return t}function de(e){var t=[];for(var n in e)_(e[n])&&t.push(n);return t.sort()}function ue(e,t){return function(n){var i=arguments.length;if(t&&(n=Object(n)),i<2||null==n)return n;for(var a=1;a<i;a++)for(var r=arguments[a],o=e(r),s=o.length,l=0;l<s;l++){var c=o[l];t&&void 0!==n[c]||(n[c]=r[c])}return n}}var pe=ue(Y),he=ue(G),fe=ue(Y,!0);function ge(e){if(!o(e))return{};if(a.j)return Object(a.j)(e);var t=function(){};t.prototype=e;var n=new t;return t.prototype=null,n}function me(e,t){var n=ge(e);return t&&he(n,t),n}function ve(e){return o(e)?I(e)?e.slice():pe({},e):e}function we(e,t){return t(e),e}function be(e){return I(e)?e:[e]}function ye(e){return W.toPath(e)}function _e(e,t){for(var n=t.length,i=0;i<n;i++){if(null==e)return;e=e[t[i]]}return n?e:void 0}function Se(e,t,n){var i=_e(e,ye(t));return l(i)?n:i}function xe(e,t){for(var n=(t=ye(t)).length,i=0;i<n;i++){var a=t[i];if(!D(e,a))return!1;e=e[a]}return!!n}function ke(e){return e}function Ce(e){return e=he({},e),function(t){return q(t,e)}}function Te(e){return e=ye(e),function(t){return _e(t,e)}}function Ie(e,t,n){if(void 0===t)return e;switch(null==n?3:n){case 1:return function(n){return e.call(t,n)};case 3:return function(n,i,a){return e.call(t,n,i,a)};case 4:return function(n,i,a,r){return e.call(t,n,i,a,r)}}return function(){return e.apply(t,arguments)}}function De(e,t,n){return null==e?ke:_(e)?Ie(e,t,n):o(e)&&!I(e)?Ce(e):Te(e)}function Ee(e,t){return De(e,t,1/0)}function Me(e,t,n){return W.iteratee!==Ee?W.iteratee(e,t):De(e,t,n)}function Ae(e,t,n){t=Me(t,n);for(var i=G(e),a=i.length,r={},o=0;o<a;o++){var s=i[o];r[s]=t(e[s],s,e)}return r}function Fe(){}function Pe(e){return null==e?Fe:function(t){return Se(e,t)}}function Le(e,t,n){var i=Array(Math.max(0,e));t=Ie(t,n,1);for(var a=0;a<e;a++)i[a]=t(a);return i}function Ne(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))}W.toPath=be,W.iteratee=Ee;var Oe=Date.now||function(){return(new Date).getTime()};function Be(e){var t=function(t){return e[t]},n="(?:"+G(e).join("|")+")",i=RegExp(n),a=RegExp(n,"g");return function(e){return e=null==e?"":""+e,i.test(e)?e.replace(a,t):e}}var je={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},He=Be(je),ze=Be(ce(je)),$e=W.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},Ge=/(.)^/,Re={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},qe=/\\|'|\r|\n|\u2028|\u2029/g;function We(e){return"\\"+Re[e]}var Ue=/^\s*(\w|\$)+\s*$/;function Ve(e,t,n){!t&&n&&(t=n),t=fe({},t,W.templateSettings);var i=RegExp([(t.escape||Ge).source,(t.interpolate||Ge).source,(t.evaluate||Ge).source].join("|")+"|$","g"),a=0,r="__p+='";e.replace(i,(function(t,n,i,o,s){return r+=e.slice(a,s).replace(qe,We),a=s+t.length,n?r+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":i?r+="'+\n((__t=("+i+"))==null?'':__t)+\n'":o&&(r+="';\n"+o+"\n__p+='"),t})),r+="';\n";var o,s=t.variable;if(s){if(!Ue.test(s))throw new Error("variable is not a bare identifier: "+s)}else r="with(obj||{}){\n"+r+"}\n",s="obj";r="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+r+"return __p;\n";try{o=new Function(s,"_",r)}catch(e){throw e.source=r,e}var l=function(e){return o.call(this,e,W)};return l.source="function("+s+"){\n"+r+"}",l}function Xe(e,t,n){var i=(t=ye(t)).length;if(!i)return _(n)?n.call(e):n;for(var a=0;a<i;a++){var r=null==e?void 0:e[t[a]];void 0===r&&(r=n,a=i),e=_(r)?r.call(e):r}return e}var Ye=0;function Je(e){var t=++Ye+"";return e?e+t:t}function Ke(e){var t=W(e);return t._chain=!0,t}function Qe(e,t,n,i,a){if(!(i instanceof t))return e.apply(n,a);var r=ge(e.prototype),s=e.apply(r,a);return o(s)?s:r}var Ze=r((function(e,t){var n=Ze.placeholder,i=function(){for(var a=0,r=t.length,o=Array(r),s=0;s<r;s++)o[s]=t[s]===n?arguments[a++]:t[s];for(;a<arguments.length;)o.push(arguments[a++]);return Qe(e,i,this,this,o)};return i}));Ze.placeholder=W;var et=Ze,tt=r((function(e,t,n){if(!_(e))throw new TypeError("Bind must be called on a function");var i=r((function(a){return Qe(e,i,t,this,n.concat(a))}));return i})),nt=L(z);function it(e,t,n,i){if(i=i||[],t||0===t){if(t<=0)return i.concat(e)}else t=1/0;for(var a=i.length,r=0,o=z(e);r<o;r++){var s=e[r];if(nt(s)&&(I(s)||M(s)))if(t>1)it(s,t-1,n,i),a=i.length;else for(var l=0,c=s.length;l<c;)i[a++]=s[l++];else n||(i[a++]=s)}return i}var at=r((function(e,t){var n=(t=it(t,!1,!1)).length;if(n<1)throw new Error("bindAll must be passed function names");for(;n--;){var i=t[n];e[i]=tt(e[i],e)}return e}));function rt(e,t){var n=function(i){var a=n.cache,r=""+(t?t.apply(this,arguments):i);return D(a,r)||(a[r]=e.apply(this,arguments)),a[r]};return n.cache={},n}var ot=r((function(e,t,n){return setTimeout((function(){return e.apply(null,n)}),t)})),st=et(ot,W,1);function lt(e,t,n){var i,a,r,o,s=0;n||(n={});var l=function(){s=!1===n.leading?0:Oe(),i=null,o=e.apply(a,r),i||(a=r=null)},c=function(){var c=Oe();s||!1!==n.leading||(s=c);var d=t-(c-s);return a=this,r=arguments,d<=0||d>t?(i&&(clearTimeout(i),i=null),s=c,o=e.apply(a,r),i||(a=r=null)):i||!1===n.trailing||(i=setTimeout(l,d)),o};return c.cancel=function(){clearTimeout(i),s=0,i=a=r=null},c}function ct(e,t,n){var i,a,o,s,l,c=function(){var r=Oe()-a;t>r?i=setTimeout(c,t-r):(i=null,n||(s=e.apply(l,o)),i||(o=l=null))},d=r((function(r){return l=this,o=r,a=Oe(),i||(i=setTimeout(c,t),n&&(s=e.apply(l,o))),s}));return d.cancel=function(){clearTimeout(i),i=o=l=null},d}function dt(e,t){return et(t,e)}function ut(e){return function(){return!e.apply(this,arguments)}}function pt(){var e=arguments,t=e.length-1;return function(){for(var n=t,i=e[t].apply(this,arguments);n--;)i=e[n].call(this,i);return i}}function ht(e,t){return function(){if(--e<1)return t.apply(this,arguments)}}function ft(e,t){var n;return function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}}var gt=et(ft,2);function mt(e,t,n){t=Me(t,n);for(var i,a=G(e),r=0,o=a.length;r<o;r++)if(t(e[i=a[r]],i,e))return i}function vt(e){return function(t,n,i){n=Me(n,i);for(var a=z(t),r=e>0?0:a-1;r>=0&&r<a;r+=e)if(n(t[r],r,t))return r;return-1}}var wt=vt(1),bt=vt(-1);function yt(e,t,n,i){for(var a=(n=Me(n,i,1))(t),r=0,o=z(e);r<o;){var s=Math.floor((r+o)/2);n(e[s])<a?r=s+1:o=s}return r}function _t(e,t,n){return function(i,r,o){var s=0,l=z(i);if("number"==typeof o)e>0?s=o>=0?o:Math.max(o+l,s):l=o>=0?Math.min(o+1,l):o+l+1;else if(n&&o&&l)return i[o=n(i,r)]===r?o:-1;if(r!=r)return(o=t(a.q.call(i,s,l),F))>=0?o+s:-1;for(o=e>0?s:l-1;o>=0&&o<l;o+=e)if(i[o]===r)return o;return-1}}var St=_t(1,wt,yt),xt=_t(-1,bt);function kt(e,t,n){var i=(nt(e)?wt:mt)(e,t,n);if(void 0!==i&&-1!==i)return e[i]}function Ct(e,t){return kt(e,Ce(t))}function Tt(e,t,n){var i,a;if(t=Ie(t,n),nt(e))for(i=0,a=e.length;i<a;i++)t(e[i],i,e);else{var r=G(e);for(i=0,a=r.length;i<a;i++)t(e[r[i]],r[i],e)}return e}function It(e,t,n){t=Me(t,n);for(var i=!nt(e)&&G(e),a=(i||e).length,r=Array(a),o=0;o<a;o++){var s=i?i[o]:o;r[o]=t(e[s],s,e)}return r}function Dt(e){var t=function(t,n,i,a){var r=!nt(t)&&G(t),o=(r||t).length,s=e>0?0:o-1;for(a||(i=t[r?r[s]:s],s+=e);s>=0&&s<o;s+=e){var l=r?r[s]:s;i=n(i,t[l],l,t)}return i};return function(e,n,i,a){var r=arguments.length>=3;return t(e,Ie(n,a,4),i,r)}}var Et=Dt(1),Mt=Dt(-1);function At(e,t,n){var i=[];return t=Me(t,n),Tt(e,(function(e,n,a){t(e,n,a)&&i.push(e)})),i}function Ft(e,t,n){return At(e,ut(Me(t)),n)}function Pt(e,t,n){t=Me(t,n);for(var i=!nt(e)&&G(e),a=(i||e).length,r=0;r<a;r++){var o=i?i[r]:r;if(!t(e[o],o,e))return!1}return!0}function Lt(e,t,n){t=Me(t,n);for(var i=!nt(e)&&G(e),a=(i||e).length,r=0;r<a;r++){var o=i?i[r]:r;if(t(e[o],o,e))return!0}return!1}function Nt(e,t,n,i){return nt(e)||(e=se(e)),("number"!=typeof n||i)&&(n=0),St(e,t,n)>=0}var Ot=r((function(e,t,n){var i,a;return _(t)?a=t:(t=ye(t),i=t.slice(0,-1),t=t[t.length-1]),It(e,(function(e){var r=a;if(!r){if(i&&i.length&&(e=_e(e,i)),null==e)return;r=e[t]}return null==r?r:r.apply(e,n)}))}));function Bt(e,t){return It(e,Te(t))}function jt(e,t){return At(e,Ce(t))}function Ht(e,t,n){var i,a,r=-1/0,o=-1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var s=0,l=(e=nt(e)?e:se(e)).length;s<l;s++)null!=(i=e[s])&&i>r&&(r=i);else t=Me(t,n),Tt(e,(function(e,n,i){((a=t(e,n,i))>o||a===-1/0&&r===-1/0)&&(r=e,o=a)}));return r}function zt(e,t,n){var i,a,r=1/0,o=1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var s=0,l=(e=nt(e)?e:se(e)).length;s<l;s++)null!=(i=e[s])&&i<r&&(r=i);else t=Me(t,n),Tt(e,(function(e,n,i){((a=t(e,n,i))<o||a===1/0&&r===1/0)&&(r=e,o=a)}));return r}var $t=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function Gt(e){return e?I(e)?a.q.call(e):p(e)?e.match($t):nt(e)?It(e,ke):se(e):[]}function Rt(e,t,n){if(null==t||n)return nt(e)||(e=se(e)),e[Ne(e.length-1)];var i=Gt(e),a=z(i);t=Math.max(Math.min(t,a),0);for(var r=a-1,o=0;o<t;o++){var s=Ne(o,r),l=i[o];i[o]=i[s],i[s]=l}return i.slice(0,t)}function qt(e){return Rt(e,1/0)}function Wt(e,t,n){var i=0;return t=Me(t,n),Bt(It(e,(function(e,n,a){return{value:e,index:i++,criteria:t(e,n,a)}})).sort((function(e,t){var n=e.criteria,i=t.criteria;if(n!==i){if(n>i||void 0===n)return 1;if(n<i||void 0===i)return-1}return e.index-t.index})),"value")}function Ut(e,t){return function(n,i,a){var r=t?[[],[]]:{};return i=Me(i,a),Tt(n,(function(t,a){var o=i(t,a,n);e(r,t,o)})),r}}var Vt=Ut((function(e,t,n){D(e,n)?e[n].push(t):e[n]=[t]})),Xt=Ut((function(e,t,n){e[n]=t})),Yt=Ut((function(e,t,n){D(e,n)?e[n]++:e[n]=1})),Jt=Ut((function(e,t,n){e[n?0:1].push(t)}),!0);function Kt(e){return null==e?0:nt(e)?e.length:G(e).length}function Qt(e,t,n){return t in n}var Zt=r((function(e,t){var n={},i=t[0];if(null==e)return n;_(i)?(t.length>1&&(i=Ie(i,t[1])),t=Y(e)):(i=Qt,t=it(t,!1,!1),e=Object(e));for(var a=0,r=t.length;a<r;a++){var o=t[a],s=e[o];i(s,o,e)&&(n[o]=s)}return n})),en=r((function(e,t){var n,i=t[0];return _(i)?(i=ut(i),t.length>1&&(n=t[1])):(t=It(it(t,!1,!1),String),i=function(e,n){return!Nt(t,n)}),Zt(e,i,n)}));function tn(e,t,n){return a.q.call(e,0,Math.max(0,e.length-(null==t||n?1:t)))}function nn(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[0]:tn(e,e.length-t)}function an(e,t,n){return a.q.call(e,null==t||n?1:t)}function rn(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[e.length-1]:an(e,Math.max(0,e.length-t))}function on(e){return At(e,Boolean)}function sn(e,t){return it(e,t,!1)}var ln=r((function(e,t){return t=it(t,!0,!0),At(e,(function(e){return!Nt(t,e)}))})),cn=r((function(e,t){return ln(e,t)}));function dn(e,t,n,i){c(t)||(i=n,n=t,t=!1),null!=n&&(n=Me(n,i));for(var a=[],r=[],o=0,s=z(e);o<s;o++){var l=e[o],d=n?n(l,o,e):l;t&&!n?(o&&r===d||a.push(l),r=d):n?Nt(r,d)||(r.push(d),a.push(l)):Nt(a,l)||a.push(l)}return a}var un=r((function(e){return dn(it(e,!0,!0))}));function pn(e){for(var t=[],n=arguments.length,i=0,a=z(e);i<a;i++){var r=e[i];if(!Nt(t,r)){var o;for(o=1;o<n&&Nt(arguments[o],r);o++);o===n&&t.push(r)}}return t}function hn(e){for(var t=e&&Ht(e,z).length||0,n=Array(t),i=0;i<t;i++)n[i]=Bt(e,i);return n}var fn=r(hn);function gn(e,t){for(var n={},i=0,a=z(e);i<a;i++)t?n[e[i]]=t[i]:n[e[i][0]]=e[i][1];return n}function mn(e,t,n){null==t&&(t=e||0,e=0),n||(n=t<e?-1:1);for(var i=Math.max(Math.ceil((t-e)/n),0),a=Array(i),r=0;r<i;r++,e+=n)a[r]=e;return a}function vn(e,t){if(null==t||t<1)return[];for(var n=[],i=0,r=e.length;i<r;)n.push(a.q.call(e,i,i+=t));return n}function wn(e,t){return e._chain?W(t).chain():t}function bn(e){return Tt(de(e),(function(t){var n=W[t]=e[t];W.prototype[t]=function(){var e=[this._wrapped];return a.o.apply(e,arguments),wn(this,n.apply(W,e))}})),W}Tt(["pop","push","reverse","shift","sort","splice","unshift"],(function(e){var t=a.a[e];W.prototype[e]=function(){var n=this._wrapped;return null!=n&&(t.apply(n,arguments),"shift"!==e&&"splice"!==e||0!==n.length||delete n[0]),wn(this,n)}})),Tt(["concat","join","slice"],(function(e){var t=a.a[e];W.prototype[e]=function(){var e=this._wrapped;return null!=e&&(e=t.apply(e,arguments)),wn(this,e)}}));var yn=W,_n=bn(i);_n._=_n;var Sn=_n},function(e,t,n){var i=n(67),a=n(68),r=n(69),o=n(70),s=n(71),l=n(72),c=n(73);c.alea=i,c.xor128=a,c.xorwow=r,c.xorshift7=o,c.xor4096=s,c.tychei=l,e.exports=c},function(e,t,n){"use strict";n(37),n(38),n(39),n(40),n(75),n(161),console.log("build_time: 2025/9/11 14:38:40")},function(e,t,n){"use strict";var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(){if(void 0===window.QIHOO_MONITOR){var e=["360.cn","so.com","leidian.com"],t=function(n,a){var r;!function(){r=!0;try{var e=location.protocol.toLowerCase();"http:"!=e&&"https:"!=e||(r=!1)}catch(e){}}();var o=document,s=navigator,l=n.screen,c=r?"":document.domain.toLowerCase(),d=s.userAgent.toLowerCase(),u=function(e){return e.replace(/^[\s\xa0\u3000]+|[\u3000\xa0\s]+$/g,"")},p=function(e,t,n){e.addEventListener?e&&e.addEventListener(t,n,!1):e&&e.attachEvent("on"+t,n)},h=function(e,t,n){for(n=n||5,t=t.toUpperCase();e&&n-- >0;){if(e.tagName===t)return e;e=e.parentNode}return null},f=function(e){if(!("target"in e)){var t=e.srcElement||e.target;t&&3==t.nodeType&&(t=t.parentNode),e.target=t}return e},g={isArray:function(e){return"Array"==function(e){return null!=e&&null!=e.constructor?Object.prototype.toString.call(e).slice(8,-1):""}(e)},isObject:function(e){return null!==e&&"object"==(void 0===e?"undefined":i(e))},mix:function(e,t,n){for(var i in t)(n||!e[i]&&!(i in e))&&(e[i]=t[i]);return e},encodeURIJson:function(e){var t=[];for(var n in e)null!=e[n]&&t.push(encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t.join("&")}},m=function(e){try{var t,n=new RegExp("(^| )"+e+"=([^;]*)(;|$)");return(t=o.cookie.match(n))?unescape(t[2]):""}catch(e){return""}},v=function(e,t,n){var i=(n=n||{}).expires;"number"==typeof i&&(i=new Date).setTime(i.getTime()+n.expires);try{o.cookie=e+"="+escape(t)+(i?";expires="+i.toGMTString():"")+(n.path?";path="+n.path:"")+(n.domain?"; domain="+n.domain:"")}catch(e){}},w={getColorDepth:function(){return l.colorDepth+"-bit"},getLanguage:function(){return(s.language||s.browserLanguage).toLowerCase()},getScreenSize:function(){return l.width+"x"+l.height},getProject:function(){return""},getReferrer:function(){var e=o.referrer||"";return e.indexOf("pass")>-1||e.indexOf("pwd")>-1?"403":e},getBrowser:function(){var e={"360se-ua":"360se",TT:"tencenttraveler",Maxthon:"maxthon",GreenBrowser:"greenbrowser",Sogou:"se 1.x / se 2.x",TheWorld:"theworld"};for(var t in e)if(d.indexOf(e[t])>-1)return t;var i=!1;try{+external.twGetVersion(external.twGetSecurityID(n)).replace(/\./g,"")>1013&&(i=!0)}catch(e){}if(i)return"360se-noua";var a=d.match(/(msie|chrome|safari|firefox|opera|trident)/);return"msie"==(a=a?a[0]:"")?a=d.match(/msie[^;]+/)+"":"trident"==a&&d.replace(/trident\/[0-9].*rv[ :]([0-9.]+)/gi,(function(e,t){a="msie "+t})),a},getLocation:function(){var e="";try{e=location.href}catch(t){(e=o.createElement("a")).href="",e=e.href}return e=/\.(s?htm|php)/.test(e)?e:e.replace(/\/$/,"")+"/"},hash:function(e){for(var t=0,n=0,i=e.length-1;i>=0;i--){var a=parseInt(e.charCodeAt(i),10);0!=(n=266338304&(t=(t<<6&268435455)+a+(a<<14)))&&(t^=n>>21)}return t},guid:function(){for(var e=[s.appName,s.version,s.language||s.browserLanguage,s.platform,s.userAgent,l.width,"x",l.height,l.colorDepth,o.referrer].join(""),t=e.length,i=n.history.length;i;)e+=i--^t++;return 2147483647*(Math.round(2147483647*Math.random())^w.hash(e))},getSid:function(){var e="__sid",t=m(e);t||(t=[w.hash(r?"":o.domain),w.guid(),+new Date+Math.random()].join("."));var n={expires:60*(w._activeTime||30)*1e3,path:"/"};return v(e,t,n),t},getMid:function(){try{return external.GetMID(external.GetSID(n))}catch(e){return""}},getGid:function(){var t="__gid",n=m(t);n?((n=n.split("."))[3]=(new Date).getTime(),n[4]=(parseInt(n[4])||1)+1,n=n.join(".")):n=[w.hash(r?"":o.domain),Math.floor(1e9*Math.random()),(new Date).getTime(),(new Date).getTime(),1].join(".");var i={expires:63072e6,path:"/"};if(e.length)for(var a=0;a<e.length;a++){var s=e[a],l="."+s;if(c.indexOf(l)>0&&c.lastIndexOf(l)==c.length-l.length||c==s){i.domain=l;break}}return v(t,n,i),n},getGuid:function(){var t="__guid",n=m(t);if(!n){n=[w.hash(r?"":o.domain),w.guid(),+new Date+Math.random()+Math.random()].join(".");var i={expires:2592e7,path:"/"};if(e.length)for(var a=0;a<e.length;a++){var s=e[a],l="."+s;if(c.indexOf(l)>0&&c.lastIndexOf(l)==c.length-l.length||c==s){i.domain=l;break}}v(t,n,i)}return n},getCount:function(){var e="monitor_count",t=m(e);return t=(parseInt(t)||0)+1,v(e,t,{expires:864e5,path:"/"}),function(){return t}}(),getFlashVer:function(){var e=-1;if(s.plugins&&s.mimeTypes.length){var t=s.plugins["Shockwave Flash"];t&&t.description&&(e=t.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s)+r/,".")+".0")}else if(n.ActiveXObject&&!n.opera)try{var i=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");if(i)e=i.GetVariable("$version").replace(/WIN/g,"").replace(/,/g,".")}catch(e){}return e=parseInt(e,10)},getContainerId:function(e){var t,n;for(y.areaIds&&(t=new RegExp("^("+y.areaIds.join("|")+")$","ig"));e;){if(e.attributes&&("bk"in e.attributes||"data-bk"in e.attributes)){if(n=e.getAttribute("bk")||e.getAttribute("data-bk"))return(n="bk:"+n).substr(0,100);if(e.id)return(n=e.getAttribute("data-desc")||e.id).substr(0,100)}else if(t&&e.id&&t.test(e.id))return(n=e.getAttribute("data-desc")||e.id).substr(0,100);e=e.parentNode}return""},getText:function(e){var t="";return t="input"==e.tagName.toLowerCase()?e.getAttribute("text")||e.getAttribute("data-text")||e.value||e.title||"":e.getAttribute("text")||e.getAttribute("data-text")||e.innerText||e.textContent||e.title||"",u(t).substr(0,100)},getHref:function(e){try{return e.getAttribute("data-href")||e.href||""}catch(e){return""}}},b={getBase:function(){return{p:w.getProject(),u:w.getLocation(),guid:w.getGuid(),gid:w.getGid(),sid:w.getSid(),title:document.title,mid:w.getMid()}},getTrack:function(e){var t=w.getSid()==w.getSid()?1:0,n={b:w.getBrowser(),c:w.getCount(),r:w.getReferrer(),fl:w.getFlashVer(),sd:w.getColorDepth(),sr:w.getScreenSize(),ul:w.getLanguage(),ce:t};if(e){for(var i=[],a=0,r=(e=e.split(",")).length;a<r;a++){var o=m(e[a]);i.push(e[a]+"="+encodeURIComponent(o))}n.uc=encodeURIComponent(i.join("&"))}return n},getClick:function(e){var t,n,i=(e=f(e||event)).target,a=i.tagName,r=w.getContainerId(i);if(!i.type||"submit"!=i.type&&"button"!=i.type)return"AREA"==a?{f:w.getHref(i),c:"area:"+i.parentNode.name,cId:r}:("IMG"==a&&(t=i),!!(i=h(i,"A"))&&(n=w.getText(i),{f:w.getHref(i),c:n||(t?t.src.match(/[^\/]+$/):""),cId:r}));var o=h(i,"FORM"),s={};if(o){var l=o.id||"",c=i.id;if(s={f:o.action,c:"form:"+(o.name||l),cId:r},!("search-form"!=l&&"searchForm"!=l||"searchBtn"!=c&&"search-btn"!=c)){var d=_("kw")||_("search-kw")||_("kw1");s.w=d?d.value:""}}else s={f:w.getHref(i),c:w.getText(i),cId:r};return s},getKeydown:function(e){if(13!=(e=f(e||event)).keyCode)return!1;var t=e.target,n=t.tagName,i=w.getContainerId(t);if("INPUT"==n){var a=h(t,"FORM");if(a){var r=a.id||"",o=t.id,s={f:a.action,c:"form:"+(a.name||r),cId:i};return"kw"!=o&&"search-kw"!=o&&"kw1"!=o||(s.w=t.value),s}}return!1}},y={trackUrl:null,clickUrl:null,areaIds:null},_=function(e){return document.getElementById(e)};return{version:"v1.5.0 (2016.01.25)",util:w,data:b,config:y,sendLog:(n.__qihoo_monitor_imgs={},function(e){var t="log_"+ +new Date,i=n.__qihoo_monitor_imgs[t]=new Image;i.onload=i.onerror=function(){n.__qihoo_monitor_imgs&&n.__qihoo_monitor_imgs[t]&&(n.__qihoo_monitor_imgs[t]=null,delete n.__qihoo_monitor_imgs[t])},i.src=e}),buildLog:function(){var e="";return function(t,n){if(!1!==t){t=t||{};var i=b.getBase();t=g.mix(i,t,!0);var a=n+g.encodeURIJson(t);if(a!=e){e=a,setTimeout((function(){e=""}),100);var r=g.encodeURIJson(t);r+="&t="+ +new Date,n=n.indexOf("?")>-1?n+"&"+r:n+"?"+r,this.sendLog(n)}}}}(),log:function(e,t){var n=y[(t=t||"click")+"Url"];n||alert("Error : the "+t+"url does not exist!"),this.buildLog(e,n)},setConf:function(e,t){var n={};return g.isObject(e)?n=e:n[e]=t,this.config=g.mix(this.config,n,!0),this},setUrl:function(e){return e&&(this.util.getLocation=function(){return e}),this},setProject:function(e){return e&&(this.util.getProject=function(){return e}),this},setId:function(){for(var e,t=[],n=0;e=arguments[n++];)g.isArray(e)?t=t.concat(e):t.push(e);return this.setConf("areaIds",t),this},getTrack:function(e){var t=this.data.getTrack(e);return this.log(t,"track"),this},getClickHeatmap:function(e,t){if(!this.heatmapTimer){this.heatmapTimer=!0;var n=this,i=[];e=e||10,t=t||5;var a=0,r=function r(o){if(clearTimeout(a),o||i.length>e){if(!i.length)return;return n.log({pos:i.join(","),sr:w.getScreenSize()},"clickHeatMap"),void(i=[])}a=setTimeout((function(){r(!0)}),60*t*1e3)};return p(o,"mousedown",(function(e){var t=e.pageX+"."+e.pageY;i.push(t),r()})),this}},getClickAndKeydown:function(){var e=this;return p(o,"mousedown",(function(t){var n=e.data.getClick(t);e.log(n,"click")})),p(o,"keydown",(function(t){var n=e.data.getKeydown(t);e.log(n,"click")})),t.getClickAndKeydown=function(){return e},this},setActiveTime:function(e){return w._activeTime=e,this}}}(window);t.setConf({trackUrl:"http://s.360.cn/qdas/s.htm",clickUrl:"http://s.360.cn/qdas/c.htm",clickHeatMapUrl:"http://s.360.cn/qdas/c.htm",wpoUrl:"http://s.360.cn/qdas/p.htm"}),window.QIHOO_MONITOR=t,void 0===window.monitor&&(window.monitor=t)}}()},function(e,t,n){"use strict";var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};window.se_monitor=function(e){var t={};function n(e,t,n,i){for(var a in t)(n||!e[a]&&!(a in e))&&(e[a]=t[a]);return e}var a=function(e){try{var t,n=document,i=new RegExp("(^| )"+e+"=([^;]*)(;|$)");return(t=n.cookie.match(i))?unescape(t[2]):""}catch(e){return""}},r=function(e,t,n){var i=(n=n||{}).expires,a=document;"number"==typeof i&&(i=new Date).setTime(i.getTime()+n.expires);try{a.cookie=e+"="+escape(t)+(i?";expires="+i.toGMTString():"")+(n.path?";path="+n.path:"")+(n.domain?"; domain="+n.domain:"")}catch(e){}};function o(){var i={p:e.util.getProject(),u:window.location.href,guid:e.util.getGuid(),id:e.util.getGuid(),mid:external.GetMID(external.GetSID(window)),pid:"",act:"track",ct:0};return i=n(i,t,!0)}return{init:function(n){if(!a("__mid"))try{var i=external&&external.GetMID&&external.GetSID&&external.GetMID(external.GetSID(window))||wdextcmd&&wdextcmd.GetMid&&wdextcmd.GetMid()||"";if(i){var s=new Date;s.setTime(s.getTime()+2592e7),r("__mid",i,{expires:s,path:"/"})}}catch(e){}e.setConf({trackUrl:"https://tt.browser.360.cn/t.html",clickUrl:"https://tt.browser.360.cn/c.html"}),t=n.basePar,e.setProject(n.project),e.data.getBase=o,e.getTrack(),!1!==n.isOpenClick&&e.getClickAndKeydown()},customizeLog:function(t){if(t&&"object"==(void 0===t?"undefined":i(t))){var a={};t.extendOtherData?("track"==t.extendOtherData&&(a=n(e.data.getTrack(),t.para,!0)),"click"==t.extendOtherData&&(a="hot-keyword"==t.para.pid||"newNav"==t.para.pid?n({f:t.para.f,c:t.para.c},t.para,!0):n(e.data.getClick(t.el),t.para,!0))):a=t.para,e.log(a,t.event_name)}}}}(window.monitor)},function(e,t,n){"use strict";(function(e){!function(t,n){function i(t,n,i){this.target=t,this.type=n,e.extend(this,i||{})}e.extend(i.prototype,{target:null,currentTarget:null,type:null,returnValue:void 0,preventDefault:function(){this.returnValue=!1}});var a={on:function(e,t,n){var i=e.__customListeners&&e.__customListeners[t];return i||(a.createEvents(e,t),i=e.__customListeners&&e.__customListeners[t]),i.length<2&&i.push(n),!0},un:function(e,t,n){var i=e.__customListeners&&e.__customListeners[t];if(!i)return!1;if(n){var a=[].indexOf.call(i,n);if(a<0)return!1;i.splice(a,1)}else i.length=0;return!0},fire:function(t,n,r){if(n instanceof i){var o=e.extend(n,r);n=n.type}else o=new i(t,n,r);var s=t.__customListeners&&t.__customListeners[n];s||(a.createEvents(t,n),s=t.__customListeners&&t.__customListeners[n]),"*"!=n&&(s=s.concat(t.__customListeners["*"]||[])),o.returnValue=void 0;var l=o.currentTarget=t;if(l&&l["on"+o.type])var c=l["on"+o.type].call(l,o);for(var d=0;d<s.length;d++)s[d].call(l,o);return!1!==o.returnValue&&(!1!==c||void 0!==o.returnValue)},createEvents:function(e,t){"string"==typeof(t=t||[])&&(t=t.split(","));for(var n=e.__customListeners=e.__customListeners||{},i=0;i<t.length;i++)n[t[i]]=n[t[i]]||[];return n["*"]=n["*"]||[],e}};e.extend(t,{CETH:a})}(window),function(t,n){var i=Array.prototype.slice,a=e.noop;function r(e,n,i){for(var a,r=e.split("."),o=i||t;r.length&&(a=r.shift());)r.length||void 0===n?o=a in o?o[a]:o[a]={}:o[a]=n;return o}function o(e,n){for(var i,a=e.split("."),r=n||t,o=r;a.length&&(i=a.shift());)r[i]&&(o=r,r=r[i]);delete o[i]}var s=function n(s){var l=this,c=(s=s||{}).methods||[];e.extend(l,s),"string"==typeof c&&(c=c.split(",")),c.forEach((function(e){l[e]=function(){var n=i.call(arguments,0),s=n.length&&"boolean"==typeof n[n.length-1]&&n.pop()||!1,c=n.length&&"string"==typeof n[n.length-1]&&n.pop()||"__"+ +new Date+"_"+Math.floor(1e5*Math.random()),d=n.length&&"function"==typeof n[n.length-1]&&n.pop()||a;CETH.on(l,c,(function(e){d.apply(l,e.data)})),r(c,(function(n){CETH.fire(l,"after",{methodName:e,data:n}),CETH.fire(l,c,{data:i.call(arguments,0)}),s&&o(c,t)}),t);try{CETH.fire(l,"before",{methodName:e,args:[c].concat(n)}),l.post(e,[c].concat(n))}catch(n){CETH.fire(l,"error",{methodName:e,callback:t[c]})}}})),CETH.createEvents(this,n.EVENTS)};s.EVENTS="before,after,error",s.prototype={post:function(t,i){try{var a=!1;"screenShot"==t&&"0"==e(document.body).css("opacity")&&(a=!0),a||n.send(t,i)}catch(e){}}},e.extend(t,{ChromeWebUIApis:s})}(window,window.chrome)}).call(this,n(1))},function(e,t,n){"use strict";(function(e){var t=n(2);!function(e){e.extend(e.fn,{autocomplete:function(t,n,i){var a="string"==typeof t;return(n=e.extend({},e.Autocompleter.defaults,{url:a?t:null,data:a?null:t,delay:a?e.Autocompleter.defaults.delay:10,max:n&&!n.scroll?11:150},n)).highlight=n.highlight||function(e){return e},n.formatMatch=n.formatMatch||n.formatItem,this.each((function(){new e.Autocompleter(this,n,i)}))},result:function(e){return this.bind("result",e)},search:function(e){return this.trigger("search",[e])},flushCache:function(){return this.trigger("flushCache")},setOptions:function(e){return this.trigger("setOptions",[e])},unautocomplete:function(){return this.trigger("unautocomplete")}}),e.Autocompleter=function(n,i,a){var r,o,s=38,l=40,c=9,d=13,u=27,p=188,h=33,f=34,g=8,m=e(n).attr("autocomplete","off").addClass(i.inputClass),v="",w=e.Autocompleter.Cache(i),b=0,y={mouseDownOnSelect:!1},_=e.Autocompleter.Select(i,n,k,y);function S(e,t){if(!e||!t)return!1;if((e.className.toString()||"").indexOf(t)>-1)return!0;var n=e.parentNode;return(n&&n.className?n.className.toString():"").indexOf(t)>-1||(!n||!n.className||"body"!==n.tagName.toLowerCase())&&S(n,t)}function x(e){return e.replace(/&?(adsession|key|clientkey|pass|psd|password|usr|user|username|usrname|shoujhao|mima|xingming|userid|usrid|shoujihao|addr|address|dizhi)=[^&]*(&|$)/gi,"")}function k(a,r){var o=_.selected();if(!o)return!1;var s=o.keyword||o.result;if(v=s,e(".hot-keyword").length){var l={f:o.link||"",c:o.text,pid:"hot-keyword",position:r};console.log(l,e(".ac_over").index()),t.customizeLog("click",l,a)}if(i.multiple){var c=T(m.val());if(c.length>1){var d,u=i.multipleSeparator.length,p=e(n).selection().start,h=0;e.each(c,(function(e,t){if(h+=t.length,p<=h)return d=e,!1;h+=u})),c[d]=s,s=c.join(i.multipleSeparator)}s+=i.multipleSeparator}return m.val(s),D(),m.trigger("result",[o]),!0}function C(e,t){var n=m.val();(t||n!=v)&&(v=n,(n=I(n)).length>=i.minChars?(m.addClass(i.loadingClass),i.matchCase||(n=n.toLowerCase()),M(n,E,D)):(A(),_.hide()))}function T(t){return t?i.multiple?e.map(t.split(i.multipleSeparator),(function(n){return e.trim(t).length?e.trim(n):null})):[e.trim(t)]:[""]}function I(t){if(!i.multiple)return t;var a=T(t);if(1==a.length)return a[0];var r=e(n).selection().start;return(a=r==t.length?T(t):T(t.replace(t.substring(r),"")))[a.length-1]}function D(){_.visible();_.hide(),e("#search-hotword").removeClass("open"),clearTimeout(r),A(),i.mustMatch&&m.search((function(e){if(!e)if(i.multiple){var t=T(m.val()).slice(0,-1);m.val(t.join(i.multipleSeparator)+(t.length?i.multipleSeparator:""))}else m.val(""),m.trigger("result",null)}))}function E(t,a){a&&a.length&&b?(e(".null_sug_warp").hide(),!0===i.zhida&&function(t,n){var i=t,a=n[0].value;if(i.length<2)return;/^[\x00-\xff]+$/.test(i)&&(i="");e.ajax({url:"https://gem.www.so.com/zhida",dataType:"jsonp",data:{q1:i,q2:a},success:function(e){var i;if(0===e.errno)try{i=JSON.parse(e.msg)}catch(e){}if(i&&i.SiteName){var a=i.SiteName;n[0].zhida&&n.shift(),n.unshift({data:i,result:a,value:a,link:i.Host,zhida:!0}),_.display(n,t)}}})}(t,a),A(),_.display(a,t),function(t,a){i.autoFill&&I(m.val()).toLowerCase()==t.toLowerCase()&&o!=g&&(m.val(m.val()+a.substring(I(v).length)),e(n).selection(v.length,v.length+a.length))}(t,a[0].value),_.show(),e("#search-hotword").removeClass("open")):D()}function M(t,r,o){i.matchCase||(t=t.toLowerCase());var s,l=w.load(t);if(l&&l.length)r(t,l);else if(i.url){var c={timestamp:+new Date};window.mode;e.each(i.extraParams,(function(e,t){c[e]="function"==typeof t?t():t}));var d="so",u=i.url;try{var p=e(".search-menu li");Array.from(p).forEach((function(e){var t=e.dataset.engin;"activeEnginItem"===e.className&&["sou","so"].includes(t)&&(d=t)})),u=a[d]}catch(e){}e.ajax({mode:"abort",port:"autocomplete"+n.name,dataType:i.dataType,url:u,data:e.extend({word:x((s=I(t),(s||"").replace(/\?.*$/gi,""))),limit:i.max},c),success:function(n){var a=i.parse&&i.parse(n)||function(t){for(var n=[],a=t.split("\n"),r=0;r<a.length;r++){var o=e.trim(a[r]);o&&(o=o.split("|"),n[n.length]={data:o,value:o[0],result:i.formatResult&&i.formatResult(o,o[0])||o[0]})}return n}(n);w.add(t,a),r(t,a)}})}else _.emptyList(),o(t)}function A(){m.removeClass(i.loadingClass)}e(window).on("resize",(function(){setTimeout(_.repos,10)})),"search-kw"==n.id&&(window.sugSelect=_),_.display([],""),e("#reci-auto-show").click((function(n){n.stopPropagation();var i=e(this).prop("checked");console.log("是否不显推荐",i),t.Stat.send("1549.702.gif",{_referer:i}),i?localStorage.setItem("notShowRecmdSearch",1):localStorage.setItem("notShowRecmdSearch",0)})),e(".search-setting").click((function(t){t.stopPropagation(),0!=localStorage.getItem("isShowSearchHis")&&(e(".searchHisSwitch").addClass("open"),e(".searchHisSwitch").find(".SwitchPoint").addClass("active")),0!=localStorage.getItem("isShowSearchGuess")&&(e(".guessSearchSwitch").addClass("open"),e(".guessSearchSwitch").find(".SwitchPoint").addClass("active")),e(".searchSettingContainer").addClass("show"),D()})),m.bind("input.autocomplete",(function(e){clearTimeout(r),r=setTimeout(C,i.delay)})),m.bind("keydown.autocomplete",(function(t){switch(b=1,o=t.keyCode,t.keyCode){case s:t.preventDefault(),_.visible()?_.prev():C(0,!0);break;case l:t.preventDefault(),_.visible()?_.next():C(0,!0);break;case h:t.preventDefault(),_.visible()?_.pageUp():C(0,!0);break;case f:t.preventDefault(),_.visible()?_.pageDown():C(0,!0);break;case i.multiple&&","==e.trim(i.multipleSeparator)&&p:case c:case d:if(k(t,e(".ac_over").index()))return t.preventDefault(),!0,!1;break;case u:_.hide();break;default:clearTimeout(r),r=setTimeout(C,i.delay)}})).focus((function(){b++})).blur((function(){b=0})).click((function(){b++>=1&&!_.visible()&&C(0,!0)})).bind("search",(function(){var t=arguments.length>1?arguments[1]:null;function n(e,n){var i;if(n&&n.length)for(var a=0;a<n.length;a++)if(n[a].result.toLowerCase()==e.toLowerCase()){i=n[a];break}"function"==typeof t?t(i):m.trigger("result",i&&[i.data,i.value])}e.each(T(m.val()),(function(e,t){M(t,n,n)}))})).bind("flushCache",(function(){w.flush()})).bind("setOptions",(function(){e.extend(i,arguments[1]),"data"in arguments[1]&&w.populate()})).bind("unautocomplete",(function(){_.unbind(),m.unbind(),e(n.form).unbind(".autocomplete")})),e(document.body).mousedown((function(t){b=0;e(t.target),S(t.target,"null_sug_warp");S(t.target,"null_sug_warp")||(clearTimeout(r),r=window.sug_hide_timeout=setTimeout(D,0))}))},e.Autocompleter.defaults={inputClass:"ac_input",resultsClass:"ac_results",loadingClass:"ac_loading",minChars:1,delay:200,matchCase:!1,matchSubset:!1,matchContains:!1,cacheLength:10,max:100,mustMatch:!1,extraParams:{},selectFirst:!0,formatItem:function(e){return e[0]},formatMatch:null,autoFill:!1,width:0,multiple:!1,multipleSeparator:", ",highlight:function(e,t){return e.replace(new RegExp("(?![^&;]+;)(?!<[^<>]*)("+t.replace(/([\^\$\(\)\[\]\{\}\*\.\+\?\|\\])/gi,"\\$1")+")(?![^<>]*>)(?![^&;]+;)","gi"),'<span class="no-strong">$1</span>')},scroll:!0,scrollHeight:180},e.Autocompleter.Cache=function(t){var n={},i=0;function a(e,n){t.matchCase||(e=e.toLowerCase());var i=e.indexOf(n);return"word"==t.matchContains&&(i=e.toLowerCase().search("\\b"+n.toLowerCase())),-1!=i&&(0==i||t.matchContains)}function r(e,a){i>t.cacheLength&&s(),n[e]||i++,n[e]=a}function o(){if(!t.data)return!1;var n={},i=0;t.url||(t.cacheLength=1),n[""]=[];for(var a=0,o=t.data.length;a<o;a++){var s=t.data[a];s="string"==typeof s?[s]:s;var l=t.formatMatch(s,a+1,t.data.length);if(!1!==l){var c=l.charAt(0).toLowerCase();n[c]||(n[c]=[]);var d={value:l,data:s,result:t.formatResult&&t.formatResult(s)||l};n[c].push(d),i++<t.max&&n[""].push(d)}}e.each(n,(function(e,n){t.cacheLength++,r(e,n)}))}function s(){n={},i=0}return setTimeout(o,25),{flush:s,add:r,populate:o,load:function(r){if(!t.cacheLength||!i)return null;if(!t.url&&t.matchContains){var o=[];for(var s in n)if(s.length>0){var l=n[s];e.each(l,(function(e,t){a(t.value,r)&&o.push(t)}))}return o}if(n[r])return n[r];if(t.matchSubset)for(var c=r.length-1;c>=t.minChars;c--){if(l=n[r.substr(0,c)]){o=[];return e.each(l,(function(e,t){a(t.value,r)&&(o[o.length]=t)})),o}}return null}}},e.Autocompleter.Select=function(n,i,a,r){var o,s,l,c,d,u="ac_over",p=-1,h="",f=!0;function g(e){for(var t=e.target;t&&"LI"!=t.tagName;)t=t.parentNode;return t||[]}function m(t){(o=d.find("li")).slice(p,p+1).removeClass(u),function(e){(p+=e)<0?p=o.length-1:p>=o.length&&(p=0)}(t);var a=o.slice(p,p+1).addClass(u);if(a.length>0){var r=e.data(a[0],"ac_data");r&&r.result&&e(i).val(r.result)}if(n.scroll){var s=0;o.slice(0,p).each((function(){s+=this.offsetHeight})),d[0].clientHeight>0&&s+a[0].offsetHeight-d.scrollTop()>d[0].clientHeight?d.scrollTop(s+a[0].offsetHeight-d.innerHeight()):s<d.scrollTop()&&d.scrollTop(s)}}function v(){d.empty();for(var t,i=(t=l.length,n.max&&n.max<t?n.max:t),a=0;a<i;a++)if(l[a]){var r=e("<li/>");if(e.data(r.get(0),"ac_data",l[a]),l[a].zhida){var s,c=[];(s=l[a].data.Favicon)&&c.push('<img src="'+s+'">'),c.push("<b>"+l[a].value+"</b>"),s||c.push('<span class="tag_site">官网</span>'),c.push('<span class="site_url">'+l[a].data.Host.replace(/^.*?:\/\/|\/$/g,"")+"</span>")}else if(l[a].searched)r.html('<a class="search-sug-rec">'+l[a].value+"</a>").appendTo(d)[0];else{var f=n.formatItem(l[a].data,a+1,i,l[a].value,h);if(!1===f)continue;if(l[a].resultai){var g='\n              <div class="ai-sug">\n              <span class="ai-sug-logo"></span>\n              <div class="ai-sug-container">\n                <span class="ai-sug-title">问纳米AI搜索</span>\n                <span class="ai-sug-desc">'+n.highlight(f,h)+"</span>\n              </div>\n            </div>";r.html(g).appendTo(d)[0]}else r.html(n.highlight(f,h)).addClass(a%2==0?"ac_even":"ac_odd").appendTo(d)[0]}}o=d.find("li"),n.selectFirst&&(o.slice(0,1).addClass(u),p=0),e.fn.bgiframe&&d.bgiframe()}return{display:function(o,m,w){!function(){if(f){var o=e(i).parents(".search");s=e(i).parent(".ipt"),c=e("<div/>").hide().addClass(n.resultsClass).css("position","absolute"),o.append(c),d=e("<ul/>").appendTo(c).mouseover((function(t){g(t).nodeName&&"LI"==g(t).nodeName.toUpperCase()&&(p=e("li",d).removeClass(u).index(g(t)),e(g(t)).addClass(u))})).click((function(n){var r="";switch(localStorage.getItem("flowMode")){case"newsflow_a":r="1579.6171.gif";break;case"newsflow_b":r="1579.7079.gif";break;case"newsflow_c":r="1579.8724.gif";break;case"newsflow_d":r="1579.2338.gif"}t.Stat.sendFlow(r,{_referer:"search"});var o=e(n.target);if(!o.hasClass("search-sug-delete")&&!o.hasClass("search-sug-clear")&&!o.hasClass("search-history-delete"))return e(g(n)).addClass(u),a(),i.focus(),!1})).mousedown((function(e){return r.mouseDownOnSelect=!0,!1})).mouseup((function(){r.mouseDownOnSelect=!1}));'<div class="null_sug_warp">\n\t\t\t\t\t\t\t<div class="null_sug_l">\n\t\t\t\t\t\t\t<div class="modle_head"><span class="null_so_btn search-sug-clear clear_history_btn">清空历史</span><b>搜索历史</b></div>\n\t\t\t\t\t\t\t<div class="modle_content">\n                  <div class="his_keys_wrap">\n                    <div class="his_null">\n                      <div class="his_no_data"></div>\n                    </div>\n                  </div>\n                  <div class="suggest_web_warp_hiden">\n                    <b>猜你想搜</b>\n                    <div class="suggest_web_warp">\n                    </div>\n                  </div>\n\t\t\t\t\t\t\t\t<div class="his_web_warp_hiden">\n\t\t\t\t\t\t\t\t\t<div class="his_web_warp">\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\t\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class="null_sug_r">\n\t\t\t\t\t\t\t\t<div class="modle_head">实时热搜 \n\t\t\t\t\t\t\t\t\t<div class="modle_h_btn_warp">\n\t\t\t\t\t\t\t\t\t\t<span class="null_so_btn change_hot_page_btn"><i class="hover_tip">换一换</i></span>\n\t\t\t\t\t\t\t\t\t\t<span class="null_so_btn hide_hot_recmd"><i class="hover_tip">隐藏热搜</i></span>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class="modle_content">\n\t\t\t\t\t\t\t\t\t<div class="hot_so_news_warp"></div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class=\'not_show_recmd_search\'>\n\t\t\t\t\t\t\t\t<label class="reci-set_show" for="reci-auto-show"> \n\t\t\t\t\t\t\t\t\t<input id="reci-auto-show" type="checkbox">不再自动显示 \n\t\t\t\t\t\t\t\t</label>\n                <div class="search-setting">\n                  <span></span>\n\t\t\t\t\t\t\t\t\t功能设置 \n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<span class="not_show_tip">由360搜索提供</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<p class="show_hot_recmd_btn" >\n\t\t\t\t\t\t\t\t<span class="fire_icon"></span>\n\t\t\t\t\t\t\t\t<b>热搜</b>\n\t\t\t\t\t\t\t\t<i class="hover_tip">点击开启</i>\n\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t</div>',c.append('<div class="powered">由3亿人都在使用的<i>360搜索</i>提供</div><div class="search-sug-ft"><a class="search-sug-clear">清空历史记录</a></div><div class="null_sug_warp">\n\t\t\t\t\t\t\t<div class="null_sug_l">\n\t\t\t\t\t\t\t<div class="modle_head"><span class="null_so_btn search-sug-clear clear_history_btn">清空历史</span><b>搜索历史</b></div>\n\t\t\t\t\t\t\t<div class="modle_content">\n                  <div class="his_keys_wrap">\n                    <div class="his_null">\n                      <div class="his_no_data"></div>\n                    </div>\n                  </div>\n                  <div class="suggest_web_warp_hiden">\n                    <b>猜你想搜</b>\n                    <div class="suggest_web_warp">\n                    </div>\n                  </div>\n\t\t\t\t\t\t\t\t<div class="his_web_warp_hiden">\n\t\t\t\t\t\t\t\t\t<div class="his_web_warp">\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\t\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class="null_sug_r">\n\t\t\t\t\t\t\t\t<div class="modle_head">实时热搜 \n\t\t\t\t\t\t\t\t\t<div class="modle_h_btn_warp">\n\t\t\t\t\t\t\t\t\t\t<span class="null_so_btn change_hot_page_btn"><i class="hover_tip">换一换</i></span>\n\t\t\t\t\t\t\t\t\t\t<span class="null_so_btn hide_hot_recmd"><i class="hover_tip">隐藏热搜</i></span>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class="modle_content">\n\t\t\t\t\t\t\t\t\t<div class="hot_so_news_warp"></div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class=\'not_show_recmd_search\'>\n\t\t\t\t\t\t\t\t<label class="reci-set_show" for="reci-auto-show"> \n\t\t\t\t\t\t\t\t\t<input id="reci-auto-show" type="checkbox">不再自动显示 \n\t\t\t\t\t\t\t\t</label>\n                <div class="search-setting">\n                  <span></span>\n\t\t\t\t\t\t\t\t\t功能设置 \n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<span class="not_show_tip">由360搜索提供</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<p class="show_hot_recmd_btn" >\n\t\t\t\t\t\t\t\t<span class="fire_icon"></span>\n\t\t\t\t\t\t\t\t<b>热搜</b>\n\t\t\t\t\t\t\t\t<i class="hover_tip">点击开启</i>\n\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t</div>'),n.width>0&&c.css("width",n.width),f=!1}}(),l=o,h=m,v()},next:function(){m(1)},prev:function(){m(-1)},pageUp:function(){m(0!=p&&p-9<0?-p:-9)},pageDown:function(){p!=o.length-1&&p+9>o.length?m(o.length-1-p):m(9)},hide:function(){c&&c.hide(),o&&o.removeClass(u),p=-1,e(".search-hot").removeClass("open")},visible:function(){return c&&c.is(":visible")},current:function(){return this.visible()&&(o.filter("."+u)[0]||n.selectFirst&&o[0])},show:function(e){var t=this;function i(){p=-1,e?c.attr("class",n.resultsClass+" "+e):c.attr("class",n.resultsClass),t.repos(),c.show(),n.scroll&&(d.scrollTop(0),d.css({maxHeight:n.scrollHeight,overflow:"auto"}))}n.onbeforeshow?n.onbeforeshow(i):i()},repos:function(){var e=s.position();c.css({width:"string"==typeof n.width||n.width>0?n.width:s.width(),top:e.top+s[0].offsetHeight,left:e.left})},selected:function(){var t=(o=d.find("li"))&&o.filter("."+u).removeClass(u);return t&&t.length&&e.data(t[0],"ac_data")},emptyList:function(){d&&d.empty()},unbind:function(){c&&c.remove()}}},e.fn.selection=function(e,t){if(void 0!==e)return this.each((function(){if(this.createTextRange){var n=this.createTextRange();void 0===t||e==t?(n.move("character",e),n.select()):(n.collapse(!0),n.moveStart("character",e),n.moveEnd("character",t),n.select())}else this.setSelectionRange?this.setSelectionRange(e,t):this.selectionStart&&(this.selectionStart=e,this.selectionEnd=t)}));var n=this[0];if(n.createTextRange){var i=document.selection.createRange(),a=n.value,r=i.text.length;i.text="<->";var o=n.value.indexOf("<->");return n.value=a,this.selection(o,o+r),{start:o,end:o+r}}return void 0!==n.selectionStart?{start:n.selectionStart,end:n.selectionEnd}:void 0}}(e)}).call(this,n(1))},function(e,t,n){var i;e.exports=(i=n(3),n(14),n(43),n(44),n(8),n(45),n(9),n(15),n(18),n(46),n(19),n(47),n(48),n(49),n(16),n(50),n(7),n(4),n(51),n(52),n(53),n(54),n(55),n(56),n(57),n(58),n(59),n(60),n(61),n(62),n(63),n(64),n(65),n(66),i)},function(e,t){},function(e,t,n){var i;e.exports=(i=n(3),function(){if("function"==typeof ArrayBuffer){var e=i.lib.WordArray,t=e.init;(e.init=function(e){if(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),(e instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array)&&(e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength)),e instanceof Uint8Array){for(var n=e.byteLength,i=[],a=0;a<n;a++)i[a>>>2]|=e[a]<<24-a%4*8;t.call(this,i,n)}else t.apply(this,arguments)}).prototype=e}}(),i.lib.WordArray)},function(e,t,n){var i;e.exports=(i=n(3),function(){var e=i,t=e.lib.WordArray,n=e.enc;function a(e){return e<<8&4278255360|e>>>8&16711935}n.Utf16=n.Utf16BE={stringify:function(e){for(var t=e.words,n=e.sigBytes,i=[],a=0;a<n;a+=2){var r=t[a>>>2]>>>16-a%4*8&65535;i.push(String.fromCharCode(r))}return i.join("")},parse:function(e){for(var n=e.length,i=[],a=0;a<n;a++)i[a>>>1]|=e.charCodeAt(a)<<16-a%2*16;return t.create(i,2*n)}},n.Utf16LE={stringify:function(e){for(var t=e.words,n=e.sigBytes,i=[],r=0;r<n;r+=2){var o=a(t[r>>>2]>>>16-r%4*8&65535);i.push(String.fromCharCode(o))}return i.join("")},parse:function(e){for(var n=e.length,i=[],r=0;r<n;r++)i[r>>>1]|=a(e.charCodeAt(r)<<16-r%2*16);return t.create(i,2*n)}}}(),i.enc.Utf16)},function(e,t,n){var i,a,r;e.exports=(r=n(3),a=(i=r).lib.WordArray,i.enc.Base64url={stringify:function(e,t=!0){var n=e.words,i=e.sigBytes,a=t?this._safe_map:this._map;e.clamp();for(var r=[],o=0;o<i;o+=3)for(var s=(n[o>>>2]>>>24-o%4*8&255)<<16|(n[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|n[o+2>>>2]>>>24-(o+2)%4*8&255,l=0;l<4&&o+.75*l<i;l++)r.push(a.charAt(s>>>6*(3-l)&63));var c=a.charAt(64);if(c)for(;r.length%4;)r.push(c);return r.join("")},parse:function(e,t=!0){var n=e.length,i=t?this._safe_map:this._map,r=this._reverseMap;if(!r){r=this._reverseMap=[];for(var o=0;o<i.length;o++)r[i.charCodeAt(o)]=o}var s=i.charAt(64);if(s){var l=e.indexOf(s);-1!==l&&(n=l)}return function(e,t,n){for(var i=[],r=0,o=0;o<t;o++)if(o%4){var s=n[e.charCodeAt(o-1)]<<o%4*2,l=n[e.charCodeAt(o)]>>>6-o%4*2,c=s|l;i[r>>>2]|=c<<24-r%4*8,r++}return a.create(i,r)}(e,n,r)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"},r.enc.Base64url)},function(e,t,n){var i,a,r,o,s,l;e.exports=(l=n(3),n(18),a=(i=l).lib.WordArray,r=i.algo,o=r.SHA256,s=r.SHA224=o.extend({_doReset:function(){this._hash=new a.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=o._doFinalize.call(this);return e.sigBytes-=4,e}}),i.SHA224=o._createHelper(s),i.HmacSHA224=o._createHmacHelper(s),l.SHA224)},function(e,t,n){var i,a,r,o,s,l,c,d;e.exports=(d=n(3),n(14),n(19),a=(i=d).x64,r=a.Word,o=a.WordArray,s=i.algo,l=s.SHA512,c=s.SHA384=l.extend({_doReset:function(){this._hash=new o.init([new r.init(3418070365,3238371032),new r.init(1654270250,914150663),new r.init(2438529370,812702999),new r.init(355462360,4144912697),new r.init(1731405415,4290775857),new r.init(2394180231,1750603025),new r.init(3675008525,1694076839),new r.init(1203062813,3204075428)])},_doFinalize:function(){var e=l._doFinalize.call(this);return e.sigBytes-=16,e}}),i.SHA384=l._createHelper(c),i.HmacSHA384=l._createHmacHelper(c),d.SHA384)},function(e,t,n){var i;e.exports=(i=n(3),n(14),function(e){var t=i,n=t.lib,a=n.WordArray,r=n.Hasher,o=t.x64.Word,s=t.algo,l=[],c=[],d=[];!function(){for(var e=1,t=0,n=0;n<24;n++){l[e+5*t]=(n+1)*(n+2)/2%64;var i=(2*e+3*t)%5;e=t%5,t=i}for(e=0;e<5;e++)for(t=0;t<5;t++)c[e+5*t]=t+(2*e+3*t)%5*5;for(var a=1,r=0;r<24;r++){for(var s=0,u=0,p=0;p<7;p++){if(1&a){var h=(1<<p)-1;h<32?u^=1<<h:s^=1<<h-32}128&a?a=a<<1^113:a<<=1}d[r]=o.create(s,u)}}();var u=[];!function(){for(var e=0;e<25;e++)u[e]=o.create()}();var p=s.SHA3=r.extend({cfg:r.cfg.extend({outputLength:512}),_doReset:function(){for(var e=this._state=[],t=0;t<25;t++)e[t]=new o.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(e,t){for(var n=this._state,i=this.blockSize/2,a=0;a<i;a++){var r=e[t+2*a],o=e[t+2*a+1];r=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),o=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),(D=n[a]).high^=o,D.low^=r}for(var s=0;s<24;s++){for(var p=0;p<5;p++){for(var h=0,f=0,g=0;g<5;g++)h^=(D=n[p+5*g]).high,f^=D.low;var m=u[p];m.high=h,m.low=f}for(p=0;p<5;p++){var v=u[(p+4)%5],w=u[(p+1)%5],b=w.high,y=w.low;for(h=v.high^(b<<1|y>>>31),f=v.low^(y<<1|b>>>31),g=0;g<5;g++)(D=n[p+5*g]).high^=h,D.low^=f}for(var _=1;_<25;_++){var S=(D=n[_]).high,x=D.low,k=l[_];k<32?(h=S<<k|x>>>32-k,f=x<<k|S>>>32-k):(h=x<<k-32|S>>>64-k,f=S<<k-32|x>>>64-k);var C=u[c[_]];C.high=h,C.low=f}var T=u[0],I=n[0];for(T.high=I.high,T.low=I.low,p=0;p<5;p++)for(g=0;g<5;g++){var D=n[_=p+5*g],E=u[_],M=u[(p+1)%5+5*g],A=u[(p+2)%5+5*g];D.high=E.high^~M.high&A.high,D.low=E.low^~M.low&A.low}D=n[0];var F=d[s];D.high^=F.high,D.low^=F.low}},_doFinalize:function(){var t=this._data,n=t.words,i=(this._nDataBytes,8*t.sigBytes),r=32*this.blockSize;n[i>>>5]|=1<<24-i%32,n[(e.ceil((i+1)/r)*r>>>5)-1]|=128,t.sigBytes=4*n.length,this._process();for(var o=this._state,s=this.cfg.outputLength/8,l=s/8,c=[],d=0;d<l;d++){var u=o[d],p=u.high,h=u.low;p=16711935&(p<<8|p>>>24)|4278255360&(p<<24|p>>>8),h=16711935&(h<<8|h>>>24)|4278255360&(h<<24|h>>>8),c.push(h),c.push(p)}return new a.init(c,s)},clone:function(){for(var e=r.clone.call(this),t=e._state=this._state.slice(0),n=0;n<25;n++)t[n]=t[n].clone();return e}});t.SHA3=r._createHelper(p),t.HmacSHA3=r._createHmacHelper(p)}(Math),i.SHA3)},function(e,t,n){var i;e.exports=(i=n(3),
/** @preserve
	(c) 2012 by Cédric Mesnil. All rights reserved.

	Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

	    - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
	    - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

	THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
	*/
function(e){var t=i,n=t.lib,a=n.WordArray,r=n.Hasher,o=t.algo,s=a.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),l=a.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),c=a.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),d=a.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),u=a.create([0,1518500249,1859775393,2400959708,2840853838]),p=a.create([1352829926,1548603684,1836072691,2053994217,0]),h=o.RIPEMD160=r.extend({_doReset:function(){this._hash=a.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var i=t+n,a=e[i];e[i]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8)}var r,o,h,y,_,S,x,k,C,T,I,D=this._hash.words,E=u.words,M=p.words,A=s.words,F=l.words,P=c.words,L=d.words;for(S=r=D[0],x=o=D[1],k=h=D[2],C=y=D[3],T=_=D[4],n=0;n<80;n+=1)I=r+e[t+A[n]]|0,I+=n<16?f(o,h,y)+E[0]:n<32?g(o,h,y)+E[1]:n<48?m(o,h,y)+E[2]:n<64?v(o,h,y)+E[3]:w(o,h,y)+E[4],I=(I=b(I|=0,P[n]))+_|0,r=_,_=y,y=b(h,10),h=o,o=I,I=S+e[t+F[n]]|0,I+=n<16?w(x,k,C)+M[0]:n<32?v(x,k,C)+M[1]:n<48?m(x,k,C)+M[2]:n<64?g(x,k,C)+M[3]:f(x,k,C)+M[4],I=(I=b(I|=0,L[n]))+T|0,S=T,T=C,C=b(k,10),k=x,x=I;I=D[1]+h+C|0,D[1]=D[2]+y+T|0,D[2]=D[3]+_+S|0,D[3]=D[4]+r+x|0,D[4]=D[0]+o+k|0,D[0]=I},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,i=8*e.sigBytes;t[i>>>5]|=128<<24-i%32,t[14+(i+64>>>9<<4)]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),e.sigBytes=4*(t.length+1),this._process();for(var a=this._hash,r=a.words,o=0;o<5;o++){var s=r[o];r[o]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}return a},clone:function(){var e=r.clone.call(this);return e._hash=this._hash.clone(),e}});function f(e,t,n){return e^t^n}function g(e,t,n){return e&t|~e&n}function m(e,t,n){return(e|~t)^n}function v(e,t,n){return e&n|t&~n}function w(e,t,n){return e^(t|~n)}function b(e,t){return e<<t|e>>>32-t}t.RIPEMD160=r._createHelper(h),t.HmacRIPEMD160=r._createHmacHelper(h)}(Math),i.RIPEMD160)},function(e,t,n){var i,a,r,o,s,l,c,d,u;e.exports=(u=n(3),n(15),n(16),a=(i=u).lib,r=a.Base,o=a.WordArray,s=i.algo,l=s.SHA1,c=s.HMAC,d=s.PBKDF2=r.extend({cfg:r.extend({keySize:4,hasher:l,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n=this.cfg,i=c.create(n.hasher,e),a=o.create(),r=o.create([1]),s=a.words,l=r.words,d=n.keySize,u=n.iterations;s.length<d;){var p=i.update(t).finalize(r);i.reset();for(var h=p.words,f=h.length,g=p,m=1;m<u;m++){g=i.finalize(g),i.reset();for(var v=g.words,w=0;w<f;w++)h[w]^=v[w]}a.concat(p),l[0]++}return a.sigBytes=4*d,a}}),i.PBKDF2=function(e,t,n){return d.create(n).compute(e,t)},u.PBKDF2)},function(e,t,n){var i;e.exports=(i=n(3),n(4),i.mode.CFB=function(){var e=i.lib.BlockCipherMode.extend();function t(e,t,n,i){var a,r=this._iv;r?(a=r.slice(0),this._iv=void 0):a=this._prevBlock,i.encryptBlock(a,0);for(var o=0;o<n;o++)e[t+o]^=a[o]}return e.Encryptor=e.extend({processBlock:function(e,n){var i=this._cipher,a=i.blockSize;t.call(this,e,n,a,i),this._prevBlock=e.slice(n,n+a)}}),e.Decryptor=e.extend({processBlock:function(e,n){var i=this._cipher,a=i.blockSize,r=e.slice(n,n+a);t.call(this,e,n,a,i),this._prevBlock=r}}),e}(),i.mode.CFB)},function(e,t,n){var i,a,r;e.exports=(r=n(3),n(4),r.mode.CTR=(i=r.lib.BlockCipherMode.extend(),a=i.Encryptor=i.extend({processBlock:function(e,t){var n=this._cipher,i=n.blockSize,a=this._iv,r=this._counter;a&&(r=this._counter=a.slice(0),this._iv=void 0);var o=r.slice(0);n.encryptBlock(o,0),r[i-1]=r[i-1]+1|0;for(var s=0;s<i;s++)e[t+s]^=o[s]}}),i.Decryptor=a,i),r.mode.CTR)},function(e,t,n){var i;e.exports=(i=n(3),n(4),
/** @preserve
	 * Counter block mode compatible with  Dr Brian Gladman fileenc.c
	 * derived from CryptoJS.mode.CTR
	 * Jan Hruby jhruby.web@gmail.com
	 */
i.mode.CTRGladman=function(){var e=i.lib.BlockCipherMode.extend();function t(e){if(255==(e>>24&255)){var t=e>>16&255,n=e>>8&255,i=255&e;255===t?(t=0,255===n?(n=0,255===i?i=0:++i):++n):++t,e=0,e+=t<<16,e+=n<<8,e+=i}else e+=1<<24;return e}var n=e.Encryptor=e.extend({processBlock:function(e,n){var i=this._cipher,a=i.blockSize,r=this._iv,o=this._counter;r&&(o=this._counter=r.slice(0),this._iv=void 0),function(e){0===(e[0]=t(e[0]))&&(e[1]=t(e[1]))}(o);var s=o.slice(0);i.encryptBlock(s,0);for(var l=0;l<a;l++)e[n+l]^=s[l]}});return e.Decryptor=n,e}(),i.mode.CTRGladman)},function(e,t,n){var i,a,r;e.exports=(r=n(3),n(4),r.mode.OFB=(i=r.lib.BlockCipherMode.extend(),a=i.Encryptor=i.extend({processBlock:function(e,t){var n=this._cipher,i=n.blockSize,a=this._iv,r=this._keystream;a&&(r=this._keystream=a.slice(0),this._iv=void 0),n.encryptBlock(r,0);for(var o=0;o<i;o++)e[t+o]^=r[o]}}),i.Decryptor=a,i),r.mode.OFB)},function(e,t,n){var i,a;e.exports=(a=n(3),n(4),a.mode.ECB=((i=a.lib.BlockCipherMode.extend()).Encryptor=i.extend({processBlock:function(e,t){this._cipher.encryptBlock(e,t)}}),i.Decryptor=i.extend({processBlock:function(e,t){this._cipher.decryptBlock(e,t)}}),i),a.mode.ECB)},function(e,t,n){var i;e.exports=(i=n(3),n(4),i.pad.AnsiX923={pad:function(e,t){var n=e.sigBytes,i=4*t,a=i-n%i,r=n+a-1;e.clamp(),e.words[r>>>2]|=a<<24-r%4*8,e.sigBytes+=a},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},i.pad.Ansix923)},function(e,t,n){var i;e.exports=(i=n(3),n(4),i.pad.Iso10126={pad:function(e,t){var n=4*t,a=n-e.sigBytes%n;e.concat(i.lib.WordArray.random(a-1)).concat(i.lib.WordArray.create([a<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},i.pad.Iso10126)},function(e,t,n){var i;e.exports=(i=n(3),n(4),i.pad.Iso97971={pad:function(e,t){e.concat(i.lib.WordArray.create([2147483648],1)),i.pad.ZeroPadding.pad(e,t)},unpad:function(e){i.pad.ZeroPadding.unpad(e),e.sigBytes--}},i.pad.Iso97971)},function(e,t,n){var i;e.exports=(i=n(3),n(4),i.pad.ZeroPadding={pad:function(e,t){var n=4*t;e.clamp(),e.sigBytes+=n-(e.sigBytes%n||n)},unpad:function(e){var t=e.words,n=e.sigBytes-1;for(n=e.sigBytes-1;n>=0;n--)if(t[n>>>2]>>>24-n%4*8&255){e.sigBytes=n+1;break}}},i.pad.ZeroPadding)},function(e,t,n){var i;e.exports=(i=n(3),n(4),i.pad.NoPadding={pad:function(){},unpad:function(){}},i.pad.NoPadding)},function(e,t,n){var i,a,r,o;e.exports=(o=n(3),n(4),a=(i=o).lib.CipherParams,r=i.enc.Hex,i.format.Hex={stringify:function(e){return e.ciphertext.toString(r)},parse:function(e){var t=r.parse(e);return a.create({ciphertext:t})}},o.format.Hex)},function(e,t,n){var i;e.exports=(i=n(3),n(8),n(9),n(7),n(4),function(){var e=i,t=e.lib.BlockCipher,n=e.algo,a=[],r=[],o=[],s=[],l=[],c=[],d=[],u=[],p=[],h=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var n=0,i=0;for(t=0;t<256;t++){var f=i^i<<1^i<<2^i<<3^i<<4;f=f>>>8^255&f^99,a[n]=f,r[f]=n;var g=e[n],m=e[g],v=e[m],w=257*e[f]^16843008*f;o[n]=w<<24|w>>>8,s[n]=w<<16|w>>>16,l[n]=w<<8|w>>>24,c[n]=w,w=16843009*v^65537*m^257*g^16843008*n,d[f]=w<<24|w>>>8,u[f]=w<<16|w>>>16,p[f]=w<<8|w>>>24,h[f]=w,n?(n=g^e[e[e[v^g]]],i^=e[e[i]]):n=i=1}}();var f=[0,1,2,4,8,16,32,64,128,27,54],g=n.AES=t.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,n=e.sigBytes/4,i=4*((this._nRounds=n+6)+1),r=this._keySchedule=[],o=0;o<i;o++)o<n?r[o]=t[o]:(c=r[o-1],o%n?n>6&&o%n==4&&(c=a[c>>>24]<<24|a[c>>>16&255]<<16|a[c>>>8&255]<<8|a[255&c]):(c=a[(c=c<<8|c>>>24)>>>24]<<24|a[c>>>16&255]<<16|a[c>>>8&255]<<8|a[255&c],c^=f[o/n|0]<<24),r[o]=r[o-n]^c);for(var s=this._invKeySchedule=[],l=0;l<i;l++){if(o=i-l,l%4)var c=r[o];else c=r[o-4];s[l]=l<4||o<=4?c:d[a[c>>>24]]^u[a[c>>>16&255]]^p[a[c>>>8&255]]^h[a[255&c]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,o,s,l,c,a)},decryptBlock:function(e,t){var n=e[t+1];e[t+1]=e[t+3],e[t+3]=n,this._doCryptBlock(e,t,this._invKeySchedule,d,u,p,h,r),n=e[t+1],e[t+1]=e[t+3],e[t+3]=n},_doCryptBlock:function(e,t,n,i,a,r,o,s){for(var l=this._nRounds,c=e[t]^n[0],d=e[t+1]^n[1],u=e[t+2]^n[2],p=e[t+3]^n[3],h=4,f=1;f<l;f++){var g=i[c>>>24]^a[d>>>16&255]^r[u>>>8&255]^o[255&p]^n[h++],m=i[d>>>24]^a[u>>>16&255]^r[p>>>8&255]^o[255&c]^n[h++],v=i[u>>>24]^a[p>>>16&255]^r[c>>>8&255]^o[255&d]^n[h++],w=i[p>>>24]^a[c>>>16&255]^r[d>>>8&255]^o[255&u]^n[h++];c=g,d=m,u=v,p=w}g=(s[c>>>24]<<24|s[d>>>16&255]<<16|s[u>>>8&255]<<8|s[255&p])^n[h++],m=(s[d>>>24]<<24|s[u>>>16&255]<<16|s[p>>>8&255]<<8|s[255&c])^n[h++],v=(s[u>>>24]<<24|s[p>>>16&255]<<16|s[c>>>8&255]<<8|s[255&d])^n[h++],w=(s[p>>>24]<<24|s[c>>>16&255]<<16|s[d>>>8&255]<<8|s[255&u])^n[h++],e[t]=g,e[t+1]=m,e[t+2]=v,e[t+3]=w},keySize:8});e.AES=t._createHelper(g)}(),i.AES)},function(e,t,n){var i;e.exports=(i=n(3),n(8),n(9),n(7),n(4),function(){var e=i,t=e.lib,n=t.WordArray,a=t.BlockCipher,r=e.algo,o=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],s=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],l=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],c=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],d=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],u=r.DES=a.extend({_doReset:function(){for(var e=this._key.words,t=[],n=0;n<56;n++){var i=o[n]-1;t[n]=e[i>>>5]>>>31-i%32&1}for(var a=this._subKeys=[],r=0;r<16;r++){var c=a[r]=[],d=l[r];for(n=0;n<24;n++)c[n/6|0]|=t[(s[n]-1+d)%28]<<31-n%6,c[4+(n/6|0)]|=t[28+(s[n+24]-1+d)%28]<<31-n%6;for(c[0]=c[0]<<1|c[0]>>>31,n=1;n<7;n++)c[n]=c[n]>>>4*(n-1)+3;c[7]=c[7]<<5|c[7]>>>27}var u=this._invSubKeys=[];for(n=0;n<16;n++)u[n]=a[15-n]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._subKeys)},decryptBlock:function(e,t){this._doCryptBlock(e,t,this._invSubKeys)},_doCryptBlock:function(e,t,n){this._lBlock=e[t],this._rBlock=e[t+1],p.call(this,4,252645135),p.call(this,16,65535),h.call(this,2,858993459),h.call(this,8,16711935),p.call(this,1,1431655765);for(var i=0;i<16;i++){for(var a=n[i],r=this._lBlock,o=this._rBlock,s=0,l=0;l<8;l++)s|=c[l][((o^a[l])&d[l])>>>0];this._lBlock=o,this._rBlock=r^s}var u=this._lBlock;this._lBlock=this._rBlock,this._rBlock=u,p.call(this,1,1431655765),h.call(this,8,16711935),h.call(this,2,858993459),p.call(this,16,65535),p.call(this,4,252645135),e[t]=this._lBlock,e[t+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function p(e,t){var n=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=n,this._lBlock^=n<<e}function h(e,t){var n=(this._rBlock>>>e^this._lBlock)&t;this._lBlock^=n,this._rBlock^=n<<e}e.DES=a._createHelper(u);var f=r.TripleDES=a.extend({_doReset:function(){var e=this._key.words;if(2!==e.length&&4!==e.length&&e.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var t=e.slice(0,2),i=e.length<4?e.slice(0,2):e.slice(2,4),a=e.length<6?e.slice(0,2):e.slice(4,6);this._des1=u.createEncryptor(n.create(t)),this._des2=u.createEncryptor(n.create(i)),this._des3=u.createEncryptor(n.create(a))},encryptBlock:function(e,t){this._des1.encryptBlock(e,t),this._des2.decryptBlock(e,t),this._des3.encryptBlock(e,t)},decryptBlock:function(e,t){this._des3.decryptBlock(e,t),this._des2.encryptBlock(e,t),this._des1.decryptBlock(e,t)},keySize:6,ivSize:2,blockSize:2});e.TripleDES=a._createHelper(f)}(),i.TripleDES)},function(e,t,n){var i;e.exports=(i=n(3),n(8),n(9),n(7),n(4),function(){var e=i,t=e.lib.StreamCipher,n=e.algo,a=n.RC4=t.extend({_doReset:function(){for(var e=this._key,t=e.words,n=e.sigBytes,i=this._S=[],a=0;a<256;a++)i[a]=a;a=0;for(var r=0;a<256;a++){var o=a%n,s=t[o>>>2]>>>24-o%4*8&255;r=(r+i[a]+s)%256;var l=i[a];i[a]=i[r],i[r]=l}this._i=this._j=0},_doProcessBlock:function(e,t){e[t]^=r.call(this)},keySize:8,ivSize:0});function r(){for(var e=this._S,t=this._i,n=this._j,i=0,a=0;a<4;a++){n=(n+e[t=(t+1)%256])%256;var r=e[t];e[t]=e[n],e[n]=r,i|=e[(e[t]+e[n])%256]<<24-8*a}return this._i=t,this._j=n,i}e.RC4=t._createHelper(a);var o=n.RC4Drop=a.extend({cfg:a.cfg.extend({drop:192}),_doReset:function(){a._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)r.call(this)}});e.RC4Drop=t._createHelper(o)}(),i.RC4)},function(e,t,n){var i;e.exports=(i=n(3),n(8),n(9),n(7),n(4),function(){var e=i,t=e.lib.StreamCipher,n=e.algo,a=[],r=[],o=[],s=n.Rabbit=t.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,n=0;n<4;n++)e[n]=16711935&(e[n]<<8|e[n]>>>24)|4278255360&(e[n]<<24|e[n]>>>8);var i=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],a=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];for(this._b=0,n=0;n<4;n++)l.call(this);for(n=0;n<8;n++)a[n]^=i[n+4&7];if(t){var r=t.words,o=r[0],s=r[1],c=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),d=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),u=c>>>16|4294901760&d,p=d<<16|65535&c;for(a[0]^=c,a[1]^=u,a[2]^=d,a[3]^=p,a[4]^=c,a[5]^=u,a[6]^=d,a[7]^=p,n=0;n<4;n++)l.call(this)}},_doProcessBlock:function(e,t){var n=this._X;l.call(this),a[0]=n[0]^n[5]>>>16^n[3]<<16,a[1]=n[2]^n[7]>>>16^n[5]<<16,a[2]=n[4]^n[1]>>>16^n[7]<<16,a[3]=n[6]^n[3]>>>16^n[1]<<16;for(var i=0;i<4;i++)a[i]=16711935&(a[i]<<8|a[i]>>>24)|4278255360&(a[i]<<24|a[i]>>>8),e[t+i]^=a[i]},blockSize:4,ivSize:2});function l(){for(var e=this._X,t=this._C,n=0;n<8;n++)r[n]=t[n];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<r[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<r[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<r[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<r[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<r[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<r[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<r[6]>>>0?1:0)|0,this._b=t[7]>>>0<r[7]>>>0?1:0,n=0;n<8;n++){var i=e[n]+t[n],a=65535&i,s=i>>>16,l=((a*a>>>17)+a*s>>>15)+s*s,c=((4294901760&i)*i|0)+((65535&i)*i|0);o[n]=l^c}e[0]=o[0]+(o[7]<<16|o[7]>>>16)+(o[6]<<16|o[6]>>>16)|0,e[1]=o[1]+(o[0]<<8|o[0]>>>24)+o[7]|0,e[2]=o[2]+(o[1]<<16|o[1]>>>16)+(o[0]<<16|o[0]>>>16)|0,e[3]=o[3]+(o[2]<<8|o[2]>>>24)+o[1]|0,e[4]=o[4]+(o[3]<<16|o[3]>>>16)+(o[2]<<16|o[2]>>>16)|0,e[5]=o[5]+(o[4]<<8|o[4]>>>24)+o[3]|0,e[6]=o[6]+(o[5]<<16|o[5]>>>16)+(o[4]<<16|o[4]>>>16)|0,e[7]=o[7]+(o[6]<<8|o[6]>>>24)+o[5]|0}e.Rabbit=t._createHelper(s)}(),i.Rabbit)},function(e,t,n){var i;e.exports=(i=n(3),n(8),n(9),n(7),n(4),function(){var e=i,t=e.lib.StreamCipher,n=e.algo,a=[],r=[],o=[],s=n.RabbitLegacy=t.extend({_doReset:function(){var e=this._key.words,t=this.cfg.iv,n=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],i=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(var a=0;a<4;a++)l.call(this);for(a=0;a<8;a++)i[a]^=n[a+4&7];if(t){var r=t.words,o=r[0],s=r[1],c=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),d=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),u=c>>>16|4294901760&d,p=d<<16|65535&c;for(i[0]^=c,i[1]^=u,i[2]^=d,i[3]^=p,i[4]^=c,i[5]^=u,i[6]^=d,i[7]^=p,a=0;a<4;a++)l.call(this)}},_doProcessBlock:function(e,t){var n=this._X;l.call(this),a[0]=n[0]^n[5]>>>16^n[3]<<16,a[1]=n[2]^n[7]>>>16^n[5]<<16,a[2]=n[4]^n[1]>>>16^n[7]<<16,a[3]=n[6]^n[3]>>>16^n[1]<<16;for(var i=0;i<4;i++)a[i]=16711935&(a[i]<<8|a[i]>>>24)|4278255360&(a[i]<<24|a[i]>>>8),e[t+i]^=a[i]},blockSize:4,ivSize:2});function l(){for(var e=this._X,t=this._C,n=0;n<8;n++)r[n]=t[n];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<r[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<r[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<r[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<r[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<r[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<r[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<r[6]>>>0?1:0)|0,this._b=t[7]>>>0<r[7]>>>0?1:0,n=0;n<8;n++){var i=e[n]+t[n],a=65535&i,s=i>>>16,l=((a*a>>>17)+a*s>>>15)+s*s,c=((4294901760&i)*i|0)+((65535&i)*i|0);o[n]=l^c}e[0]=o[0]+(o[7]<<16|o[7]>>>16)+(o[6]<<16|o[6]>>>16)|0,e[1]=o[1]+(o[0]<<8|o[0]>>>24)+o[7]|0,e[2]=o[2]+(o[1]<<16|o[1]>>>16)+(o[0]<<16|o[0]>>>16)|0,e[3]=o[3]+(o[2]<<8|o[2]>>>24)+o[1]|0,e[4]=o[4]+(o[3]<<16|o[3]>>>16)+(o[2]<<16|o[2]>>>16)|0,e[5]=o[5]+(o[4]<<8|o[4]>>>24)+o[3]|0,e[6]=o[6]+(o[5]<<16|o[5]>>>16)+(o[4]<<16|o[4]>>>16)|0,e[7]=o[7]+(o[6]<<8|o[6]>>>24)+o[5]|0}e.RabbitLegacy=t._createHelper(s)}(),i.RabbitLegacy)},function(e,t,n){(function(e){var i;!function(e,a,r){function o(e){var t,n=this,i=(t=4022871197,function(e){e=String(e);for(var n=0;n<e.length;n++){var i=.02519603282416938*(t+=e.charCodeAt(n));i-=t=i>>>0,t=(i*=t)>>>0,t+=4294967296*(i-=t)}return 2.3283064365386963e-10*(t>>>0)});n.next=function(){var e=2091639*n.s0+2.3283064365386963e-10*n.c;return n.s0=n.s1,n.s1=n.s2,n.s2=e-(n.c=0|e)},n.c=1,n.s0=i(" "),n.s1=i(" "),n.s2=i(" "),n.s0-=i(e),n.s0<0&&(n.s0+=1),n.s1-=i(e),n.s1<0&&(n.s1+=1),n.s2-=i(e),n.s2<0&&(n.s2+=1),i=null}function s(e,t){return t.c=e.c,t.s0=e.s0,t.s1=e.s1,t.s2=e.s2,t}function l(e,t){var n=new o(e),i=t&&t.state,a=n.next;return a.int32=function(){return 4294967296*n.next()|0},a.double=function(){return a()+11102230246251565e-32*(2097152*a()|0)},a.quick=a,i&&("object"==typeof i&&s(i,n),a.state=function(){return s(n,{})}),a}a&&a.exports?a.exports=l:n(6)&&n(11)?void 0===(i=function(){return l}.call(t,n,t,a))||(a.exports=i):this.alea=l}(0,e,n(6))}).call(this,n(10)(e))},function(e,t,n){(function(e){var i;!function(e,a,r){function o(e){var t=this,n="";t.x=0,t.y=0,t.z=0,t.w=0,t.next=function(){var e=t.x^t.x<<11;return t.x=t.y,t.y=t.z,t.z=t.w,t.w^=t.w>>>19^e^e>>>8},e===(0|e)?t.x=e:n+=e;for(var i=0;i<n.length+64;i++)t.x^=0|n.charCodeAt(i),t.next()}function s(e,t){return t.x=e.x,t.y=e.y,t.z=e.z,t.w=e.w,t}function l(e,t){var n=new o(e),i=t&&t.state,a=function(){return(n.next()>>>0)/4294967296};return a.double=function(){do{var e=((n.next()>>>11)+(n.next()>>>0)/4294967296)/(1<<21)}while(0===e);return e},a.int32=n.next,a.quick=a,i&&("object"==typeof i&&s(i,n),a.state=function(){return s(n,{})}),a}a&&a.exports?a.exports=l:n(6)&&n(11)?void 0===(i=function(){return l}.call(t,n,t,a))||(a.exports=i):this.xor128=l}(0,e,n(6))}).call(this,n(10)(e))},function(e,t,n){(function(e){var i;!function(e,a,r){function o(e){var t=this,n="";t.next=function(){var e=t.x^t.x>>>2;return t.x=t.y,t.y=t.z,t.z=t.w,t.w=t.v,(t.d=t.d+362437|0)+(t.v=t.v^t.v<<4^e^e<<1)|0},t.x=0,t.y=0,t.z=0,t.w=0,t.v=0,e===(0|e)?t.x=e:n+=e;for(var i=0;i<n.length+64;i++)t.x^=0|n.charCodeAt(i),i==n.length&&(t.d=t.x<<10^t.x>>>4),t.next()}function s(e,t){return t.x=e.x,t.y=e.y,t.z=e.z,t.w=e.w,t.v=e.v,t.d=e.d,t}function l(e,t){var n=new o(e),i=t&&t.state,a=function(){return(n.next()>>>0)/4294967296};return a.double=function(){do{var e=((n.next()>>>11)+(n.next()>>>0)/4294967296)/(1<<21)}while(0===e);return e},a.int32=n.next,a.quick=a,i&&("object"==typeof i&&s(i,n),a.state=function(){return s(n,{})}),a}a&&a.exports?a.exports=l:n(6)&&n(11)?void 0===(i=function(){return l}.call(t,n,t,a))||(a.exports=i):this.xorwow=l}(0,e,n(6))}).call(this,n(10)(e))},function(e,t,n){(function(e){var i;!function(e,a,r){function o(e){var t=this;t.next=function(){var e,n,i=t.x,a=t.i;return e=i[a],n=(e^=e>>>7)^e<<24,n^=(e=i[a+1&7])^e>>>10,n^=(e=i[a+3&7])^e>>>3,n^=(e=i[a+4&7])^e<<7,e=i[a+7&7],n^=(e^=e<<13)^e<<9,i[a]=n,t.i=a+1&7,n},function(e,t){var n,i=[];if(t===(0|t))i[0]=t;else for(t=""+t,n=0;n<t.length;++n)i[7&n]=i[7&n]<<15^t.charCodeAt(n)+i[n+1&7]<<13;for(;i.length<8;)i.push(0);for(n=0;n<8&&0===i[n];++n);for(8==n?i[7]=-1:i[n],e.x=i,e.i=0,n=256;n>0;--n)e.next()}(t,e)}function s(e,t){return t.x=e.x.slice(),t.i=e.i,t}function l(e,t){null==e&&(e=+new Date);var n=new o(e),i=t&&t.state,a=function(){return(n.next()>>>0)/4294967296};return a.double=function(){do{var e=((n.next()>>>11)+(n.next()>>>0)/4294967296)/(1<<21)}while(0===e);return e},a.int32=n.next,a.quick=a,i&&(i.x&&s(i,n),a.state=function(){return s(n,{})}),a}a&&a.exports?a.exports=l:n(6)&&n(11)?void 0===(i=function(){return l}.call(t,n,t,a))||(a.exports=i):this.xorshift7=l}(0,e,n(6))}).call(this,n(10)(e))},function(e,t,n){(function(e){var i;!function(e,a,r){function o(e){var t=this;t.next=function(){var e,n,i=t.w,a=t.X,r=t.i;return t.w=i=i+1640531527|0,n=a[r+34&127],e=a[r=r+1&127],n^=n<<13,e^=e<<17,n^=n>>>15,e^=e>>>12,n=a[r]=n^e,t.i=r,n+(i^i>>>16)|0},function(e,t){var n,i,a,r,o,s=[],l=128;for(t===(0|t)?(i=t,t=null):(t+="\0",i=0,l=Math.max(l,t.length)),a=0,r=-32;r<l;++r)t&&(i^=t.charCodeAt((r+32)%t.length)),0===r&&(o=i),i^=i<<10,i^=i>>>15,i^=i<<4,i^=i>>>13,r>=0&&(o=o+1640531527|0,a=0==(n=s[127&r]^=i+o)?a+1:0);for(a>=128&&(s[127&(t&&t.length||0)]=-1),a=127,r=512;r>0;--r)i=s[a+34&127],n=s[a=a+1&127],i^=i<<13,n^=n<<17,i^=i>>>15,n^=n>>>12,s[a]=i^n;e.w=o,e.X=s,e.i=a}(t,e)}function s(e,t){return t.i=e.i,t.w=e.w,t.X=e.X.slice(),t}function l(e,t){null==e&&(e=+new Date);var n=new o(e),i=t&&t.state,a=function(){return(n.next()>>>0)/4294967296};return a.double=function(){do{var e=((n.next()>>>11)+(n.next()>>>0)/4294967296)/(1<<21)}while(0===e);return e},a.int32=n.next,a.quick=a,i&&(i.X&&s(i,n),a.state=function(){return s(n,{})}),a}a&&a.exports?a.exports=l:n(6)&&n(11)?void 0===(i=function(){return l}.call(t,n,t,a))||(a.exports=i):this.xor4096=l}(0,e,n(6))}).call(this,n(10)(e))},function(e,t,n){(function(e){var i;!function(e,a,r){function o(e){var t=this,n="";t.next=function(){var e=t.b,n=t.c,i=t.d,a=t.a;return e=e<<25^e>>>7^n,n=n-i|0,i=i<<24^i>>>8^a,a=a-e|0,t.b=e=e<<20^e>>>12^n,t.c=n=n-i|0,t.d=i<<16^n>>>16^a,t.a=a-e|0},t.a=0,t.b=0,t.c=-1640531527,t.d=1367130551,e===Math.floor(e)?(t.a=e/4294967296|0,t.b=0|e):n+=e;for(var i=0;i<n.length+20;i++)t.b^=0|n.charCodeAt(i),t.next()}function s(e,t){return t.a=e.a,t.b=e.b,t.c=e.c,t.d=e.d,t}function l(e,t){var n=new o(e),i=t&&t.state,a=function(){return(n.next()>>>0)/4294967296};return a.double=function(){do{var e=((n.next()>>>11)+(n.next()>>>0)/4294967296)/(1<<21)}while(0===e);return e},a.int32=n.next,a.quick=a,i&&("object"==typeof i&&s(i,n),a.state=function(){return s(n,{})}),a}a&&a.exports?a.exports=l:n(6)&&n(11)?void 0===(i=function(){return l}.call(t,n,t,a))||(a.exports=i):this.tychei=l}(0,e,n(6))}).call(this,n(10)(e))},function(e,t,n){var i;!function(a,r,o){var s,l=o.pow(256,6),c=o.pow(2,52),d=2*c;function u(e,t,n){var i=[],u=f(function e(t,n){var i,a=[],r=typeof t;if(n&&"object"==r)for(i in t)try{a.push(e(t[i],n-1))}catch(e){}return a.length?a:"string"==r?t:t+"\0"}((t=1==t?{entropy:!0}:t||{}).entropy?[e,g(r)]:null==e?function(){try{var e;return s&&(e=s.randomBytes)?e=e(256):(e=new Uint8Array(256),(a.crypto||a.msCrypto).getRandomValues(e)),g(e)}catch(e){var t=a.navigator,n=t&&t.plugins;return[+new Date,a,n,a.screen,g(r)]}}():e,3),i),m=new p(i),v=function(){for(var e=m.g(6),t=l,n=0;e<c;)e=256*(e+n),t*=256,n=m.g(1);for(;e>=d;)e/=2,t/=2,n>>>=1;return(e+n)/t};return v.int32=function(){return 0|m.g(4)},v.quick=function(){return m.g(4)/4294967296},v.double=v,f(g(m.S),r),(t.pass||n||function(e,t,n,i){return i&&(i.S&&h(i,m),e.state=function(){return h(m,{})}),n?(o.random=e,t):e})(v,u,"global"in t?t.global:this==o,t.state)}function p(e){var t,n=e.length,i=this,a=0,r=i.i=i.j=0,o=i.S=[];for(n||(e=[n++]);a<256;)o[a]=a++;for(a=0;a<256;a++)o[a]=o[r=255&r+e[a%n]+(t=o[a])],o[r]=t;(i.g=function(e){for(var t,n=0,a=i.i,r=i.j,o=i.S;e--;)t=o[a=255&a+1],n=256*n+o[255&(o[a]=o[r=255&r+t])+(o[r]=t)];return i.i=a,i.j=r,n})(256)}function h(e,t){return t.i=e.i,t.j=e.j,t.S=e.S.slice(),t}function f(e,t){for(var n,i=e+"",a=0;a<i.length;)t[255&a]=255&(n^=19*t[255&a])+i.charCodeAt(a++);return g(t)}function g(e){return String.fromCharCode.apply(0,e)}if(f(o.random(),r),e.exports){e.exports=u;try{s=n(74)}catch(e){}}else void 0===(i=function(){return u}.call(t,n,t,e))||(e.exports=i)}("undefined"!=typeof self?self:this,[],Math)},function(e,t){},function(e,t,n){"use strict";(function(e){function t(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}window.time=(new Date).valueOf();var i,a=n(2),r=n(76);window.VERSION="2.10.8",a.log(),window.st=+new Date,window.loadTimeData={data:{}},i=window.onerror,window.onerror=function(e,t,n,r,o){window.onerror=i;var s="Error: "+e+"\n Script: "+t+"\n Line: "+n+":"+r+"\n version: "+window.VERSION+"\n StackTrace: "+(o?o.stack:"");return a.Stat.send("1431.6078.gif",{_referer:s}),!!i&&i.apply(this,arguments)},window.addEventListener("unhandledrejection",(function(e){var t=e.reason,n="Source: newpages\n Type: unhandledrejection\n Error: "+(t.message||t)+"\n version: "+window.VERSION+"\n StackTrace: "+(t?t.stack:"");a.Stat.send("1431.6078.gif",{_referer:n})}));var o=function(){window.console.log=function(){},window.$=void 0};!function(e){e.extend(e.fn,{swap:function(t){t=e(t)[0];var n=this[0];if(n&&t){var i=n.parentNode.insertBefore(document.createTextNode(""),n);t.parentNode.insertBefore(n,t),i.parentNode.insertBefore(t,i),i.parentNode.removeChild(i)}return this}})}(e),a.ScreenShot.safeHide();var s="";a.api.getAliveTime((function(e){console.log("当前用户浏览器安装天数: "+e),s=e})),a.api.getUserLS((function(e){console.log("output->获取ls",e),e.length>0&&(window._SearchChannel=e)})),window.openWin=function(){var e,n=Array.from(arguments),i=n&&n[0]||"",a=JSON.parse(localStorage.getItem("newpagesConfig"))||{},r=a.kuaiNewsAdsConfig||{},o=r.newUserDays||7;if(s<=o&&i.indexOf("//www.360kuai.com")>-1){var l=i.indexOf("?")>-1?i+"&nuit=1":i+"?nuit=1";n.splice(0,1,l)}(e=window).open.apply(e,t(n))},Date.prototype.Format=function(e){if(e=e||"yyyy-MM-dd hh:mm:ss","Invalid Date"==this)return"";var t={"M+":this.getMonth()+1,"d+":this.getDate(),"h+":this.getHours(),"m+":this.getMinutes(),"s+":this.getSeconds(),"q+":Math.floor((this.getMonth()+3)/3),S:this.getMilliseconds()};for(var n in/(y+)/.test(e)&&(e=e.replace(RegExp.$1,(this.getFullYear()+"").substr(4-RegExp.$1.length))),t)new RegExp("("+n+")").test(e)&&(e=e.replace(RegExp.$1,1==RegExp.$1.length?t[n]:("00"+t[n]).substr((""+t[n]).length)));return e},Date.prototype.getTimeUTC=function(){return this.getTime()+60*this.getTimezoneOffset()*1e3},String.prototype.shorting=function(e,t){return t=t||"...",this.length>e?this.substr(0,e/2)+t+this.substr(this.length-e/2):this},String.prototype.getFirstLetter=function(){var e=this.match(/[\u4E00-\u9FA5\uF900-\uFA2D]|[a-zA-Z0-9]/);return e&&e[0]||""},String.prototype.getHashCode=function(){var e,t=1315423911;for(e=this.length-1;e>=0;e--)t^=(t<<5)+this.charCodeAt(e)+(t>>2);return 2147483647&t},Array.prototype.shuffle=function(){for(var e=this.length-1;e>=0;e--){var t=Math.floor(Math.random()*(e+1)),n=this[t];this[t]=this[e],this[e]=n}return this},e(window).on("newpages:firstPageOnLoad",(function(){e(document).delegate("a","click",(function(t){if(!e(this).parents(".news-packet").hasClass("swiper-slide")){var n=e(this).data("href"),i=e(this).attr("href");(n||i&&"javascript:void(0);"!=i)&&("nav"==window.mode?a.Stat.send("1133.8925.gif"):"dial"==window.mode&&a.Stat.send("1133.4860.gif"))}})),a.Stat.init()})),e(document).on("mousedown",(function(){window._timestamp_mousedown=Date.now()})).on("mouseup",(function(){window._timestamp_mouseup=Date.now()})),a.storage.set("blank_page_options","is-blank-page",!1);var l=a.storage.get("settings")["current-mode"]||"";async function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Enterprise",n=function(e){return new Promise((function(t,n){setTimeout((function(){n("timeout")}),e)}))},i=new Promise((function(n){external.AppCmd(external.GetSID(window),t,e,"","",(function(e,t){n(t)}))}));return Promise.race([i,n(200)])}async function d(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=a.api.GetMID(),i=n.slice(-2);i=parseInt(i,16),i=Math.ceil(i/255*100),window.userId=i,o();var s=t.cubeEntry||{},l=s.forceClose,d=sessionStorage.getItem("clientLifeUsedCube"),p=a.storage.get("settings")["current-mode"]||"";if(t)if(!0===l)1==d?"cube"==p?e(".top-wrap .mode-switch .tag-cube").show():(localStorage.removeItem("lastCloseCubeTipTime"),sessionStorage.removeItem("clientLifeUsedCube")):"cube"==p&&(a.storage.set("settings","current-mode","nav"),localStorage.removeItem("lastCloseCubeTipTime"),sessionStorage.removeItem("clientLifeUsedCube"));else{var h=s.percent||0;if(i<=h||1==d){e(".top-wrap .mode-switch .tag-cube").show();var f=s.newUserDefaultOpenCube,g=s.newUserDefaultOpenCubePercent||0,m=localStorage.getItem("settings");!m&&!0===f&&i<=g&&(a.storage.set("settings","current-mode","cube"),sessionStorage.setItem("clientLifeUsedCube","1"))}else"cube"==p&&a.storage.set("settings","current-mode","nav"),localStorage.removeItem("lastCloseCubeTipTime"),sessionStorage.removeItem("clientLifeUsedCube")}else 1==d?"cube"==p?e(".top-wrap .mode-switch .tag-cube").show():(localStorage.removeItem("lastCloseCubeTipTime"),sessionStorage.removeItem("clientLifeUsedCube")):("cube"==p&&a.storage.set("settings","current-mode","nav"),localStorage.removeItem("lastCloseCubeTipTime"),sessionStorage.removeItem("clientLifeUsedCube"));var v=a.storage.get("settings")["current-mode"]||"nav";a.Stat.send("1133.1266.gif",{_referer:"cube"==v?"mydesktop":v}),a.Stat.send("1552.189.gif");var w=localStorage.getItem("isShowAIReadVisit");a.Stat.send("1651.9125.gif",{_referer:"1"==w||null===w?"1":"0"===w?"0":""});var b=v,y=v,_="",S=localStorage.getItem("dial-page-set")||0;if(window.isShowNavGrid=t&&t.navGrid&&!0===t.navGrid.show,window.isShowNavGrid){e(".mostSeeWebsiteOpen").show(),e(".mostSeeAIReadOpen").show();var x=localStorage.getItem("isForceChangedMode")||0,k=t&&t.navGrid&&t.navGrid.otherModeForceToNavPercent||-1,C=window.userId<=k,T=t&&t.navGrid&&t.navGrid.navModeDefaultOpenGridPercent||-1,I="";"nav"==b?(y="nav",I="add",window.isOpenNavGrid=window.userId<=T):C&&1!=x?(I="dial"==b?0==S?"remove":1==S?"add":2==S?"remove":"add":"remove",y="nav",a.storage.set("settings","current-mode","nav"),localStorage.setItem("isOpenNavGrid",1),localStorage.setItem("isForceChangedMode",1)):y=b,window.navGridTipType=I}else y=b;var D=await c("IsEnterpriseStatus").catch((function(e){}));if(1==D){document.documentElement.setAttribute("mode","saas");var E=a.storage.get("settings")["saas-before-mode"]||"";""==E&&(E=a.storage.get("settings")["current-mode"]||"",a.storage.set("settings","saas-before-mode",E)),y="dial",a.storage.set("settings","current-mode","dial")}else{document.documentElement.setAttribute("mode","");var M=a.storage.get("settings")["saas-before-mode"]||"";M&&(a.storage.set("settings","saas-before-mode",""),y=M,a.storage.set("settings","current-mode",M))}"nav"==y?_=1:"cube"==y?_=2:"dial"==y&&(_=0==S?3:1==S?4:2==S?5:6),a.puvDot({s:25,n:3,item_id:_}),r.init(),a.Stat.send("1174.7918.gif",{_referer:screen.width+"*"+screen.height}),u()}function u(){if(console.log("用户id: "+window.userId),!(window.userId>10)){var e=(new Date).getTime(),t=function(){var t=(new Date).getTime(),n=Math.floor((t-e)/1e3),i=0;if(n>=60){var a=n/60;i=a>=360?10:a>=120?9:a>=60?8:a>=30?7:a>=15?6:a>=5?5:4}else i=n>=30?3:n>=20?2:n>=10?1:0;return i};window.addEventListener("beforeunload",(function(e){a.Stat.send("1295.8742.gif",{_referer:t()})}))}}-1!=l.indexOf("_blank")?(a.storage.set("settings","current-mode","dial"),localStorage.setItem("dial-page-set",3)):"search"==l&&(a.storage.set("settings","current-mode","dial"),localStorage.setItem("dial-page-set",1)),Promise.all([new Promise((function(t,n){e.ajax({url:"https://browser.360.cn/newtab/config/config.html",type:"get",dataType:"jsonp",jsonp:"callback",jsonpCallback:"_cb_",timeout:1e4,success:function(e){!function(e){if(e.autoJumpConf&&e.autoJumpConf.length)for(var t=e.autoJumpConf,n=0;n<t.length;n++){var i=t[n],r=i.percent||0;if(Math.floor(99*Math.random()+1)>r)return;if(a.isInDate(i.autoJumpDate)){var o=JSON.parse(localStorage.getItem("autoJumpInfo"))||{},s=o&&o.times||0,l=new Date((new Date).setHours(0,0,0,0))/1e3;if(l*=1e3,o&&o.lastJumpTime>l){if((i.autoJumpTimes||0)>s){var c=i.autoJumpInterval||0,d=o&&o.lastJumpTime||0;if((new Date).valueOf()-Number(d)>60*c*60*1e3&&i.autoJumpUrl){s+=1,localStorage.setItem("autoJumpInfo",JSON.stringify({times:s,lastJumpTime:(new Date).valueOf()})),window.location.href=i.autoJumpUrl;break}}}else if(i.autoJumpUrl){s+=1,localStorage.setItem("autoJumpInfo",JSON.stringify({times:s,lastJumpTime:(new Date).valueOf()})),window.location.href=i.autoJumpUrl;break}}}}(e),localStorage.setItem("lastUpdateConfigTime",(new Date).valueOf()),localStorage.setItem("newpagesConfig",JSON.stringify(e))},error:function(e){var t=(new Date).valueOf(),n=localStorage.getItem("lastUpdateConfigTime")||0;t-Number(n)>=864e5&&localStorage.setItem("newpagesConfig",JSON.stringify(""))}});var i=localStorage.getItem("newpagesConfig")||"";i.length?t(JSON.parse(i)):n({})})),new Promise((function(e,t){var n=!1;try{a.ntpApis.getdefaultsearchengine((function(t){n=!0,e(t)})),setTimeout((function(){n||e("")}),50)}catch(t){e("")}}))]).then((function(e){var t=e&&e[0]||{},n=e&&e[1]||"";if(n.length)switch(n){case"so.com":window.clientSearchEngin="so";break;case"google.com":window.clientSearchEngin="google";break;case"bing.com":window.clientSearchEngin="bing";break;case"baidu.com":window.clientSearchEngin="baidu"}d(t)}),(function(e){d()}))}).call(this,n(1))},function(e,t,n){"use strict";(function(t){var i=o(n(77)),a=o(n(86)),r=o(n(88));function o(e){return e&&e.__esModule?e:{default:e}}var s=n(90),l=n(2),c=n(101),d=n(21),u=n(107),p=n(31),h=n(129),f=n(20),g=n(130),m=n(13),v=n(5),w=n(131),b=n(134),y=n(139),_=n(143),S=n(147),x=n(148),k=n(150),C=n(23),T=n(151),I=n(152),D=n(154),E=n(155),M=n(156),A=n(157),F=(n(159),n(160)),P=!1,L=!1,N=!1,O=0,B=l.api.GetVersion();l.isNewer(B,"10.0.1472.0")&&(N=!0);var j=!0,H=!0,z=[],$=[],G={title:"",url:"",pinned_type:1};function R(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"mosts";return new Promise((function(t,n){var i="customs"==e?"getCustomData":"getMostVisitedData";l.ntpApis[i]((function(n){var i=c.ThumbnailManager.setLogos(n);"customs"==e?$=i:z=i;for(var a=[],r=0;r<i.length;r++)i[r].url&&i[r].title&&a.push(i[r]);t(a)}))}))}function q(e,t){var n="customs"==e?"setCustomData":"saveMostVisitedURLs";l.ntpApis[n](JSON.stringify(t),(function(){console.log("个性化桌面设置网址 success")}))}var W=!1,U=!1,V=!1;function X(){return"saas"===document.documentElement.getAttribute("mode")}window.addEventListener("message",(function(e){if("https://browser.360.cn"===e.origin){var n=e.data||{};if("getMostVisitedData"===n.type&&R("mosts").then((function(e){l.postIframeMsg("setMostVisitedData",e)})),"removeMost"===n.type&&n.value){l.ntpApis.blacklistURLFromMostVisited(n.value);var i=function(e,t){for(var n="customs"==e?$:z,i=null,a=0;a<n.length;a++)if(n[a].url==t){i=a;break}return i}("mosts",n.value);z.splice(i,1,G),q("mosts",z)}if("addMost"===n.type&&n.value&&q("mosts",n.value),"getCustomData"===n.type&&R("customs").then((function(e){l.postIframeMsg("setCustomData",e)})),"addCustom"!==n.type&&"removeCustom"!==n.type||n.value&&q("customs",n.value),"setEdit"===n.type&&(!0===n.value?(U=!0,t(".top-line").hide()):(U=!1,V||t(".top-line").show())),"wallpaper"===n.type&&("cube"==window.mode&&(1==n.value?t("body").addClass("cube-black-bg").removeClass("cube-normal-bg"):t("body").addClass("cube-normal-bg").removeClass("cube-black-bg")),sessionStorage.setItem("isCubeBlackBg",1==n.value?"1":"0")),"onCreated"===n.type){if(W=!0,t(".cube-wrap #cube-iframe").show(),t(".cube-wrap #cube-iframe").css("opacity","1"),window.skinType){var a=window.skinType,r="";if(window.currentSkinId>=5e3&&window.currentSkinId<=5999){a=1;var o=localStorage.getItem("newpagesConfig")||"";(o=o?JSON.parse(o):"")&&o.wallpaperBg&&o.wallpaperBg[window.currentSkinId]&&(r=o.wallpaperBg[window.currentSkinId])}l.postIframeMsg("setFullScreenSkin",{type:a,isBlack:window.isBlankSkin,average:window.average,searchFontColor:r&&r.searchFontColor,buttonBg:r&&r.buttonBg,iframeBorder:r&&r.iframeBorder})}l.api.getLoginQT((function(e){l.postIframeMsg("IsLogin",e)}))}if("IsLogin"===n.type&&l.api.getLoginQT((function(e){l.postIframeMsg("IsLogin",e)})),"ReloginByManual"===n.type){l.api.login();var s=0,c=setInterval((function(){s<60?(s++,l.api.getLoginState((function(e){e&&(clearInterval(c),l.api.getLoginQT((function(e){l.postIframeMsg("ReloginByManual",e)})))}))):clearInterval(c)}),1e3)}"Logout"===n.type&&l.api.logOut((function(e){l.postIframeMsg("Logout",e)})),"scroll"===n.type&&(n.value?(V=!0,t(".top-line").hide(),t(".top-line .webSiteChoicePopup").hide()):(V=!1,U||t(".top-line").show())),"documentClick"===n.type&&(t(".top-line .webSiteChoicePopup").hide(),t(".setting-skin").removeClass("show"))}}),!1),t(window).on("resize",(function(){t(document).width()<1060?"cube"!=window.mode&&t("body").addClass("xScroll"):t("body").removeClass("xScroll")}));var Y=function(){var e=t(".setup-pop"),n=t(".setup-cls"),a=t(".search-pop-setting");e.on("click",(function(e){e.stopPropagation()})),a.on("click",(function(e){e.stopPropagation()})),t(".mode-switch li > a").on("click",(function(e){if(e.preventDefault(),t(this).hasClass("mode-other-tag"))return t(".webSiteChoicePopup1").hide(),t(".webSiteChoicePopup2").show(),void l.puvDot({s:25,n:4});var n=window.mode;if(!t(this).hasClass("current")){var i=t(this).data("mode"),a=t(this).data("title"),o="",c=localStorage.getItem("flowMode"),g="",m=document.querySelectorAll(".webSiteChoicePopup"),S=Array.from(m).findIndex((function(e){return"block"===e.style.display}));if("true"===localStorage.getItem("triggerSwitched")||c||-1!==S)S>=0?(localStorage.setItem("flowMode","-1"),localStorage.setItem("triggerSwitched","true"),l.storage.setData("hideFeedback",!0),t(".flow-feedback-button").hide()):g=c;else{var x=localStorage.getItem("dial-page-set");"nav"===i&&(g="newsflow_a",d.init(s,F)),"dial"===i&&"0"===x&&(g="newsflow_d"),g&&localStorage.setItem("flowMode",g)}i!==window.mode&&g&&ne(g),"newsflow_c"===g&&"dial"!==i&&(i="dial");var A=t(".wrap-"+i);window.mode=i,"nav"==i?(t(".mode-other-tag").css("font-weight","normal"),t(".nextPopChoiceTitle").html(""),t(".mode-other-tag .webSiteChoiceItemActiveSign").removeClass("show"),window.showFloatAds&&t("#float_ads_wrap").css({display:"block"})):(t(".mode-other-tag").css("font-weight","bold"),t(".nextPopChoiceTitle").html(a).css("font-weight","normal"),t(".mode-other-tag .webSiteChoiceItemActiveSign").addClass("show"),t("#float_ads_wrap").css({display:"none"})),t(".so-hotword-poplist-arrow").hasClass("open")&&t(".so-hotword-poplist-arrow").trigger("click"),O+=1,J(i),t(".mode-switch a").removeClass("current").filter(this).addClass("current"),t(".search-form-bg").attr("ver",i),t(".mode-container > div").hide(),A.show();var N=t(".search-pop-item-sug"),B=t("#search-hotword-update"),z="";"nav"!=window.mode&&"dial"!=window.mode||"so"!=window.clientSearchEngin&&"default"==window.pageSearchEngin&&(z="zhss_");t(this);var $=null;switch(i){case"dial":L=!1,t("#search-form").removeClass("sticky").find(':hidden[name="src"]').val(z+"se7_newtab_big"),t("body").addClass("mode-dial").removeClass("mode-nav").removeClass("mode-search").removeClass("mode-cube").removeClass("cube-black-bg").removeClass("cube-normal-bg"),t(".popup-main").hide(),n&&t(".sliders-nav .mosts").hasClass("selected")&&C.sendCoverAdsShowLog(),N.hide(),p.SugHotWords.hide(),t("body").css("overflow-y","auto"),s.wrapResize(),l.ScreenShot.capture("VersionSwitch"),o="472.8489.gif",t(".cube-wrap").css("visibility","hidden"),$="1156.5067.gif",window.interestVideoInited&&D.stopSwiperAll(),t(".search .search-btn").val("搜索"),t(".search-form-bg").hide(),t(".mode-container").hide(),t(".top-wrap .mode-switch .mode-dial-list").addClass("show");var G=localStorage.getItem("dial-page-set")||0,R=X()?".webSiteChoicePopupSaaS":".webSiteChoicePopup2";t(".top-wrap .mode-switch "+R+" .mode-dial-list .mode-dial-list-item").eq(G).trigger("click"),t("#float_fdback_wrap").hide();break;case"nav":if(t(".search-form-bg").css({top:"0",opacity:"1",transiton:"none"}).show(),t(".mode-container").css({top:"0",opacity:"1",transiton:"none"}).show(),t("#search-form").find(':hidden[name="src"]').val(z+"se7_newtab_big"),t("body").addClass("mode-nav").removeClass("mode-dial").removeClass("mode-search").removeClass("mode-cube").removeClass("cube-black-bg").removeClass("cube-normal-bg"),O&&new v.PageNavigator,N.hide(),p.SugHotWords.hide(),1==window.isShowLongStrip)t("#default-nav").css({"margin-top":"16px"}),"new-nav"==localStorage.getItem("webui")?t(".event-pendant").css({top:"-259px"}):t(".event-pendant").css({top:"-246px"});else t(".event-pendant").css({top:"-131px"}),t("#default-nav").css({"margin-top":"29px"});t("body").css("overflow-y","auto"),l.ScreenShot.capture("delete"),l.Stat.send("1173.4041.gif"),l.Stat.send("1207.1961.gif"),o="472.3554.gif",t(".cube-wrap").css("visibility","hidden"),$="1156.4274.gif",l.Stat.send("1215.4789.gif",{_referer:"info"}),t(".search .search-btn").val("搜索一下"),t(".top-wrap .mode-switch .mode-dial-list").removeClass("show"),t(".mode-dial-list-item.current").removeClass("current"),window.show_fedback_flaot&&t("#float_fdback_wrap").show(),setTimeout((function(){l.Stat.send("1549.5483.gif",{_referer:window.pageSearchEngin}),function(){if(re)return;re=!0,d.init(s,F),u.init(),P=E.init(),M.init(),_.init(),k.init();var e=localStorage.getItem("newpagesConfig")||"";e=e?JSON.parse(e):{};var n=window.userId,i=e&&e.interestingVideo&&e.interestingVideo.percent||0;n<=i?(t(".side-kx").hide(),t(".interesting-video").show(),D.init()):(t(".interesting-video").hide(),y.init());if(w.init(),new v.PageNavigator,b.init(),window.isShowNavGrid){var a="";a=t(".mostSeeSwitch").hasClass("open")?1==localStorage.getItem("isOpenNavGrid")?1:2:3,l.puvDot({s:25,n:6,item_id:a})}}()}),100),"newsflow_b"===g&&(t(".sellNav").hide(),t(".wrap-site-topBox").show());break;case"search":t("#search-form").find(':hidden[name="src"]').val(z+"se7_home_www"),t("body").addClass("mode-search").removeClass("mode-dial").removeClass("mode-nav").removeClass("mode-cube").removeClass("cube-black-bg").removeClass("cube-normal-bg"),localStorage.setItem("modeSearchTipTimes",3),t(".mode-search-tip-card").hide(),e.isTrigger||l.Stat.send("1035.6009.gif"),N.show(),setTimeout((function(){l.Stat.send("1035.3095.gif")}),500),B.hide(),setTimeout((function(){l.ScreenShot.capture("VersionSwitch")}),500),t(".cube-wrap").css("visibility","hidden"),$="1156.1206.gif",window.interestVideoInited&&D.stopSwiperAll(),t(".search .search-btn").val("搜索"),t(".top-wrap .mode-switch .mode-dial-list").removeClass("show"),t(".mode-dial-list-item.current").removeClass("current"),t("#float_fdback_wrap").hide();break;case"cube":e.isTrigger||l.puvDot({s:25,n:5,item_id:1}),t("#cube-iframe").attr("src")||(t("#cube-iframe").attr("src","https://browser.360.cn/se/newtab/index.html?version="+window.VERSION),setTimeout((function(){var e=navigator.onLine;W||(t("body").addClass("cube-normal-bg").removeClass("cube-black-bg"),sessionStorage.setItem("isCubeBlackBg","0"),t(".cube-wrap #cube-iframe").hide(),e?(t(".cube-wrap #netErrPage .imgBox").addClass("cubeImgBox"),t(".cube-wrap #netErrPage .netErrTip").html("页面出错了"),t(".cube-wrap #netErrPage .checkNetTip").html("您可以尝试刷新，或跳转到其他网页"),l.Stat.send("1133.5607.gif")):(t(".cube-wrap #netErrPage .imgBox").removeClass("cubeImgBox"),t(".cube-wrap #netErrPage .netErrTip").html("您的网络不太顺畅哦"),t(".cube-wrap #netErrPage .checkNetTip").html("请检查网络设置，或进行刷新"),l.Stat.send("1133.4868.gif")),t(".cube-wrap #netErrPage").show())}),3e3)),t("body").addClass("mode-cube").removeClass("mode-dial").removeClass("mode-nav").removeClass("mode-search"),1==sessionStorage.getItem("isCubeBlackBg")?t("body").addClass("cube-black-bg").removeClass("cube-normal-bg"):t("body").addClass("cube-normal-bg").removeClass("cube-black-bg"),t(".mode-cube-tip-card").hide(),t(".top-wrap a.mode-cube .tag-new").hide(),localStorage.setItem("lastCloseCubeTipTime",(new Date).setHours(0,0,0)),sessionStorage.setItem("clientLifeUsedCube","1"),t(".cube-wrap").css("visibility","visible"),$="1156.8174.gif",l.Stat.send("1215.4789.gif",{_referer:"mycard"}),window.interestVideoInited&&D.stopSwiperAll(),t(".top-wrap .mode-switch .mode-dial-list").removeClass("show"),t(".mode-dial-list-item.current").removeClass("current"),t("#float_fdback_wrap").hide()}if(T.init(),"nav"==window.mode)0!=localStorage.getItem("isShowModeNavMostVisit")&&(window.isModeNavMostVisitInited?(t(".navGridContainer").show(),setTimeout((function(){d.updateGridPaginationState()}),50)):d.init(s,F)),window.isShowNavGrid&&(t(".mostSeeWebsiteOpen").slideDown(),t(".mostSeeAIReadOpen").slideDown()),0==localStorage.getItem("isShowAIReadVisit")?t(".uploadAIContainer").hide():t(".uploadAIContainer").css({display:"flex"});else t(".navGridContainer").hide(),t(".uploadAIContainer").hide(),t(".mostSeeWebsiteOpen").slideUp(),t(".mostSeeAIReadOpen").slideUp();if(j&&l.api.getLoginState((function(e){l.Stat.send($,{_referer:e?"denglu":"weidenglu"})})),t(".so-hotword-action .reset")&&t(".so-hotword-action .reset").click(),"cube"==i)t(".cubeHide").hide(),t("body").removeClass("xScroll"),t(".closeBrand").hide(),t(".closeWater").hide();else{var q=localStorage.getItem("dial-page-set")||0;if(H&&("dial"!=i||3!=q)){ae();var U=!1!==l.storage.get("settings")["hotwords-show"];l.puvDot({s:25,n:2,item_id:U?1:2}),H=!1}"dial"==i&&3==q||(t(".cubeHide").show(),l.storage.get("wallpaper_options")["enable-push-wallpaper"]?f.PushData.resizeUI():f.PushData.hideCloudWallpaper()),"nav"!=i&&("dial"!=i||0!=q&&1!=q)||window.isSoInit||h.init(),t(document).width()<1060?t("body").addClass("xScroll"):t("body").removeClass("xScroll"),r.default.init(),t(".brandPaper").length&&t(".closeBrand").show(),t(".ad-bg-item").length&&t(".closeWater").show()}K(i,e.isTrigger),e.isTrigger&&o&&l.Stat.send(o),L||(l.storage.set("settings","current-mode",i),-1!=location.href.indexOf("#")&&(location.href=location.href.split("#")[0]+"#")),Q("from")&&"eore"==Q("from")&&(L=!1),t(window).trigger("resize"),setTimeout((function(){if(("nav"==i||"dial"==i)&&!window.isSearchInputShow){var e=t("#current-engine")[0].className,n={};"so"==e?n._referer="360":"google"==e?n._referer="google":"baidu"==e?n._referer="baidu":"bing"==e?n._referer="bing":"default"==e&&(n._referer="360"),l.Stat.send("963.6516.gif",n),window.isSearchInputShow=!0}}),1e3);var V=(JSON.parse(localStorage.getItem("newpagesConfig"))||{}).rightBottomAds||{};l.storage.get("blank_page_options")["is-blank-page"]?t(".rightBottomAdsContent").hide():V.mode&&V.mode.indexOf(window.mode)>-1?window.rightBottomAdsClosed?t(".rightBottomAdsContent").hide():window.rightBottomAdsInited?t(".rightBottomAdsContent").show():1==window.kpClosed&&I.init():t(".rightBottomAdsContent").hide(),j||l.Stat.send("1133.2199.gif",{_referer:"cube"==i?"mydesktop":i}),j=!1}})),t(".webSiteChoicePopupTitle .backBox").on("click",(function(e){t(".webSiteChoicePopup1").show(),t(".webSiteChoicePopup2").hide()})),t(".mostSeeSwitch").on("click",(function(e){t(this).toggleClass("open"),t(this).find(".SwitchPoint").toggleClass("active"),t(this).hasClass("open")?(localStorage.setItem("isShowModeNavMostVisit","1"),"nav"==window.mode&&(window.isModeNavMostVisitInited?t(".navGridContainer").show():d.init(s,F))):(localStorage.setItem("isShowModeNavMostVisit","0"),t(".navGridContainer").hide())})),t(".mostSeeAIReadSwitch").on("click",(function(e){t(this).toggleClass("open"),t(this).find(".SwitchPoint").toggleClass("active"),t(this).hasClass("open")?(localStorage.setItem("isShowAIReadVisit","1"),"nav"==window.mode&&(t(".uploadAIContainer").css({display:"flex"}),l.Stat.send("1651.3811.gif",{_referer:1}))):(localStorage.setItem("isShowAIReadVisit","0"),t(".uploadAIContainer").hide(),l.Stat.send("1651.3811.gif",{_referer:0}))})),t(".personalChoiceHeader").off().on("click",(function(e){t(".top-wrap .mode-option-switch .personalChoicePopup").show()})),t(".personalChoicePopupClose").off().on("click",(function(e){t(".top-wrap .mode-option-switch .personalChoicePopup").hide()})),t(".personalNewsSwitch").on("click",(function(e){t(this).toggleClass("open"),t(this).find(".SwitchPoint").toggleClass("active"),t(this).hasClass("open")?(localStorage.setItem("isShowpersonalNews","0"),P||(P=E.init()),P&&t(".cs_news_tab").show()):(localStorage.setItem("isShowpersonalNews","1"),t(".cs_news_tab").hide())})),t(".personalAdsSwitch").on("click",(function(e){t(this).toggleClass("open"),t(this).find(".SwitchPoint").toggleClass("active"),t(this).hasClass("open")?(localStorage.setItem("isShowpersonalAds","0"),Z(!1)):(localStorage.setItem("isShowpersonalAds","1"),Z(!0))})),t(".personalSearchSwitch").on("click",(function(e){t(this).toggleClass("open"),t(this).find(".SwitchPoint").toggleClass("active"),t(this).hasClass("open")?localStorage.setItem("isShowpersonalSearch","0"):localStorage.setItem("isShowpersonalSearch","1")})),t(".webSiteChoiceHeader").off().on("click",(function(e){var n="block"==t(".top-wrap .mode-switch .webSiteChoicePopup1").css("display"),i="block"==t(".top-wrap .mode-switch .webSiteChoicePopup2").css("display"),a="block"==t(".top-wrap .mode-switch .webSiteChoicePopupSaaS").css("display");n||i||a||(X()?t(".top-wrap .mode-switch .webSiteChoicePopupSaaS").show():t(".top-wrap .mode-switch .webSiteChoicePopup1").show())})),t(".webSiteChoicePopupClose").off().on("click",(function(e){t(".top-wrap .mode-switch .webSiteChoicePopup").hide()})),t(document).on("click",(function(e){e.isTrigger||e.target==t(".webSiteChoicePopup")[0]||e.target==t(".webSiteChoicePopup")[1]||t(".webSiteChoicePopup").has(e.target).length>0||e.target==t(".webSiteChoiceHeader")[0]||t(".webSiteChoiceHeader").has(e.target).length>0||t(".webSiteChoicePopup").hide(),e.isTrigger||e.target==t(".personalChoicePopup")[0]||t(".personalChoicePopup").has(e.target).length>0||e.target==t(".personalChoiceHeader")[0]||t(".personalChoiceHeader").has(e.target).length>0||t(".personalChoicePopup").hide()})),t(".mode-dial-list-item").on("click",(function(e){var n=t(this).index();if(e.isTrigger||(localStorage.setItem("flowMode","-1"),localStorage.setItem("triggerSwitched","true"),l.storage.setData("hideFeedback",!0),t(".flow-feedback-button").hide(),l.puvDot({s:25,n:5,item_id:n+2})),!t(".mode-dial-tag").hasClass("current"))return localStorage.setItem("dial-page-set",n),void t(".mode-dial-tag").trigger("click");3!=n&&(t(".cubeHide").show(),f.PushData.resizeUI());var i=null,a=0,r=0;if(window.screen.width<1600?(a="14px",r="66px"):(a="200px",r="75px"),e.isTrigger){switch(t(this).addClass("current").siblings().removeClass("current"),n){case 0:t(".mode-dial .search-form-bg").css({top:"0",opacity:"1",transiton:"none"}).show(),t(".mode-dial .mode-container").css({top:"212px",opacity:"1",transiton:"none"}).show(),t(window).resize(),i="sw";break;case 1:var o=t(window).height(),s=t(".mode-dial .mode-container").get(0).getBoundingClientRect();Math.floor((o-s.height)/2);t(".mode-dial .search-form-bg").css({top:a,opacity:"1",transiton:"none"}).show(),t(".mode-dial .mode-container").hide().css("opacity","0"),i="search";break;case 2:t(".mode-dial .mode-container").css({top:r,opacity:"1",transiton:"none"}).show(),t(".mode-dial .search-form-bg").hide().css("opacity","0"),t(window).resize(),i="website";break;case 3:t(".mode-dial .search-form-bg").hide().css("opacity","0"),t(".mode-dial .mode-container").hide().css("opacity","0"),i="blank"}l.Stat.send("1215.4789.gif",{_referer:i})}else if(!t(this).hasClass("current")){t(this).addClass("current").siblings().removeClass("current");var c=localStorage.getItem("dial-page-set")||0;switch(n){case 0:1==c?(t(".mode-dial .search-form-bg").css({top:"0",transiton:"top 0.2s"}),t(".mode-dial .mode-container").css("top","212px").show(),setTimeout((function(){t(".mode-dial .mode-container").css({opacity:"1",transiton:"opacity 0.5s"})}),200)):2==c?(t(".mode-dial .mode-container").css({top:"212px",transiton:"top 0.2s"}),t(".mode-dial .search-form-bg").css("top","0").show(),setTimeout((function(){t(".mode-dial .search-form-bg").css({opacity:"1",transiton:"opacity 0.5s"})}),100)):3==c&&(t(".mode-dial .search-form-bg").css("top","0").show(),t(".mode-dial .mode-container").css("top","212px").show(),setTimeout((function(){t(".mode-dial .search-form-bg").css({opacity:"1",transiton:"opacity 0.5s"}),t(".mode-dial .mode-container").css({opacity:"1",transiton:"opacity 0.5s"})}))),t(window).resize(),i="sw";break;case 1:0==c?(t(".mode-dial .mode-container").css({opacity:"0",transiton:"opacity 0.2s"}),setTimeout((function(){t(".mode-dial .mode-container").hide()}),200),setTimeout((function(){t(".mode-dial .search-form-bg").css({top:a,transiton:"top 0.2s"})}),100)):2==c?(t(".mode-dial .mode-container").css({opacity:"0",transiton:"opacity 0.2s"}),setTimeout((function(){t(".mode-dial .mode-container").hide()}),200),t(".mode-dial .search-form-bg").css("top",a).show(),setTimeout((function(){t(".mode-dial .search-form-bg").css({opacity:"1",transiton:"opacity 0.5s"})}),100)):3==c&&(t(".mode-dial .search-form-bg").css("top",a).show(),setTimeout((function(){t(".mode-dial .search-form-bg").css({opacity:"1",transiton:"opacity 0.5s"})}))),i="search";break;case 2:0==c?(t(".mode-dial .search-form-bg").css({opacity:"0",transiton:"opacity 0.2s"}),setTimeout((function(){t(".mode-dial .search-form-bg").hide()}),200),setTimeout((function(){t(".mode-dial .mode-container").css({top:r,transiton:"top 0.2s"})}),100)):1==c?(t(".mode-dial .search-form-bg").css({opacity:"0",transiton:"opacity 0.2s"}),setTimeout((function(){t(".mode-dial .search-form-bg").hide()}),200),t(".mode-dial .mode-container").css("top",r).show(),setTimeout((function(){t(".mode-dial .mode-container").css({opacity:"1",transiton:"opacity 0.5s"})}),100)):3==c&&(t(".mode-dial .mode-container").css("top",r).show(),setTimeout((function(){t(".mode-dial .mode-container").css({opacity:"1",transiton:"opacity 0.5s"})}))),t(window).resize(),i="website";break;case 3:0==c?(t(".mode-dial .search-form-bg").css({opacity:"0",transiton:"opacity 0.2s"}),t(".mode-dial .mode-container").css({opacity:"0",transiton:"opacity 0.2s"}),setTimeout((function(){t(".mode-dial .search-form-bg").hide(),t(".mode-dial .mode-container").hide()}),200)):1==c?(t(".mode-dial .search-form-bg").css({opacity:"0",transiton:"opacity 0.2s"}),setTimeout((function(){t(".mode-dial .search-form-bg").hide()}),200)):2==c&&(t(".mode-dial .mode-container").css({opacity:"0",transiton:"opacity 0.2s"}),setTimeout((function(){t(".mode-dial .mode-container").hide()}),200)),i="blank"}l.Stat.send("1215.4789.gif",{_referer:i})}if(3==n)t(".weatherBox").hide(),t(".popup-main").hide(),t(".kp-tab").hide(),t(".rightBottomAdsContent").hide(),f.PushData.hideCloudWallpaper(),new v.WaterMark,new v.BrandPaper,t("#cangbao_redbags").hide(),t("#cangbao_redbags .rain-redbag").css("top",t(window).height()+400);else if(0!=n&&1!=n||window.isSoInit||h.init(),H)ae(),t(".mode-switch li .mode-a.current").hasClass("hadMode")||(m.init("dial"),t(".mode-switch li .mode-a.current").addClass("hadMode")),H=!1;else{t(".weatherBox").show(),t("#cangbao_redbags").show(),window.isKpTabShow&&t(".kp-tab").show(),f.PushData.resizeUI(),new v.PaperLogic;var d=(JSON.parse(localStorage.getItem("newpagesConfig"))||{}).rightBottomAds||{};!window.rightBottomAdsClosed&&d.mode&&d.mode.indexOf(window.mode)>-1&&t(".rightBottomAdsContent").show()}[0,1].includes(n)&&l.Stat.send("1549.5483.gif",{_referer:window.pageSearchEngin}),localStorage.setItem("dial-page-set",n)})),t(".change-wallpaper").on("click",(function(n){n.stopPropagation(),n.preventDefault(),t(".webSiteChoicePopup").hide(),N?i.default.show():e.toggleClass("setup-pop-end")})),t(".enable-blank-page").change((function(e){console.log("output->3333",3333)})),t("#enable-hotwords").change((function(e){var n=t(".so-hotword-wrap");this.checked?n.show():n.hide(),l.storage.set("settings","hotwords-show",this.checked)})),t("#enable-sugwords").change((function(e){p.SugHotWords.setState(this.checked)})),n.on("click",(function(){e.removeClass("setup-pop-end")})),t(document).click((function(e){e.isTrigger||(t(e.target).hasClass("change-wallpaper")||n.click(),a.hide())})),t(document).delegate(".tile a.link","click",(function(){var e=t(this).attr("href");"file://"==e.substr(0,7)&&l.openUrl(e)}))},J=function(e){window.mode!=e&&(window.mode=e,t("body").attr("data-mode",e))},K=function(e,n){var i=t(".wrap"),a=t(".so-hotword"),r="soHotWords_top",o=l.storage.get("default_engine").webpage,s=t(".search-form-bg");"search"==e?(!n&&(s.addClass("wrap-animation"),setTimeout((function(){s.removeClass("wrap-animation")}),500)),o="so",r="soHotWords_top_search",i.addClass("wrap-mode-search")):i.removeClass("wrap-mode-search"),t(".search-menu ."+o).parent().trigger("click"),a.data("pid",r)};function Q(e){return function(){for(var e=(location.hash||"").replace(/^\#/,"").split("&"),t={},n=0;n<e.length;n++){var i=e[n].split("=");2==i.length&&(t[i[0]]=i[1])}return t}()[e]}function Z(e){t.ajax({url:"https://track.mediav.com/t?type=17&jzqchl=3&dislkchr=1&dislkrid=7",data:{mid:l.api.GetMID(),pubid:"pH23dpRBq5uG5cSmwzefJw",dislktag:e?"off":"on"},cache:!0,dataType:"jsonp",jsonp:"jsonp",timeout:3e3,success:function(e){e&&0==e.error?localStorage.removeItem("setpersonalAdsErr"):localStorage.setItem("setpersonalAdsErr",!0)},error:function(e){localStorage.setItem("setpersonalAdsErr",!0)}})}var ee=function(){var e=l.storage.get("settings"),n=e["current-mode"]||"",i=e["sugwords-show"],a=e["hotwords-show"];Q("from")&&"eore"==Q("from")?(n="nav",L=!0,l.getSwitchMode(n),t(".mode-nav").click()):-1!=n.indexOf("_blank")?(J(n),t(".enable-blank-page").attr("checked",!0).trigger("change"),l.ScreenShot.hideAndCapture("blank-mode-Rendered",!0,!0)):(0==l.getSwitchMode(n).length&&(n="nav"),l.getSwitchMode(n).trigger("click")),!1===a&&t("#enable-hotwords").attr("checked",!1),!1===i&&t("#enable-sugwords").attr("checked",!1).trigger("change")},te=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:location.href,t=arguments[1];e=e.indexOf("?")>-1?e.split("?")[1]:e;var n=new RegExp("(^|&)"+t+"=([^&]*)(&|$)"),i=e.match(n);return null!=i?decodeURIComponent(i[2]):null},ne=function(e){var t="";switch(e){case"newsflow_b":t="1579.2141.gif";break;case"newsflow_c":t="1579.6738.gif";break;case"newsflow_a":t="1579.7280.gif";break;case"newsflow_d":t="1579.3061.gif"}t&&l.Stat.send(t)},ie=!1;function ae(){if(!ie){var e=localStorage.getItem("newpagesConfig")||"";e=e?JSON.parse(e):{};var n=window.userId,i=localStorage.getItem("dial-page-set")||0;("dial"!=window.mode||2!=i&&3!=i)&&t(".search-form-bg").show(),p.SearchForm.init(),p.HotKeyword.init(t("#search-kw"));var r=e&&e.wallpaper&&!0===e.wallpaper.open,o=e&&e.wallpaper&&e.wallpaper.percent||0;r&&n<=o&&(f.PushData.init(),N||f.Wallpaper.bind()),g.init(),a.default.init(),A.init(),ie=!0}}var re=!1;e.exports={init:function(){l.api.getSlimmingBagInfo((function(e,t){i.default.init(e),Y(),function(){if("news"==location.pathname.substr(1)){setTimeout((function(){location.href="/scrolltonews"}),0),l.getSwitchMode("nav").trigger("click"),J("nav")}else J(""),Promise.race([new Promise((function(e,t){setTimeout(e,50)})),new Promise((function(e,t){l.ntpApis.GetBoxShowState((function(t){try{t=JSON.parse(t)}catch(e){t=t||{}}1==t.show_state&&l.storage.set("settings","current-mode","dial"),e()}))}))]).then((function(){ee()}))}(),s.init()})),!0!==l.storage.get("blank_page_options")["is-blank-page"]&&t(".top-wrap .mode-switch").show(),0!=localStorage.getItem("isShowModeNavMostVisit")&&(t(".mostSeeSwitch").addClass("open"),t(".mostSeeSwitch").find(".SwitchPoint").addClass("active")),0!=localStorage.getItem("isShowAIReadVisit")&&(t(".mostSeeAIReadSwitch").addClass("open"),t(".mostSeeAIReadSwitch").find(".SwitchPoint").addClass("active"));var e=localStorage.getItem("isShowpersonalNews");1!=e&&(t(".personalNewsSwitch").addClass("open"),t(".personalNewsSwitch").find(".SwitchPoint").addClass("active"));var n=localStorage.getItem("isShowpersonalAds");1!=n&&(t(".personalAdsSwitch").addClass("open"),t(".personalAdsSwitch").find(".SwitchPoint").addClass("active")),1!=localStorage.getItem("isShowpersonalSearch")&&(t(".personalSearchSwitch").addClass("open"),t(".personalSearchSwitch").find(".SwitchPoint").addClass("active")),localStorage.getItem("setpersonalAdsErr")&&Z(1==n);var a=(new Date).Format("yyyy-MM-dd"),r=localStorage.getItem("lastOpenNewTabTime")||0;if(!r||a!=new Date(Number(r)).Format("yyyy-MM-dd")){l.Stat.send("1361.3960.gif",{_referer:1!=e?1:0}),l.Stat.send("1361.5532.gif",{_referer:1!=n?1:0}),localStorage.setItem("lastOpenNewTabTime",Date.now());var o=localStorage.getItem("isShowSearchHis");l.Stat.send("1549.6167.gif",{_referer:0!=o?1:0});var c=localStorage.getItem("isShowSearchGuess");l.Stat.send("1549.7485.gif",{_referer:0!=c?1:0})}var d=te(location.href,"channel"),u=te(location.href,"ty");"ad"===d&&function(e){var t=localStorage.getItem("newpagesConfig")||"";(t=t?JSON.parse(t):{}).sceneAssistantr&&new v.SceneAssistant("https://browser.360.cn/news_popup/eject_popup.html?ty="+e).init()}(u),S.init(),x.init()}}}).call(this,n(1))},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(2)),r=n(20);var o=n(5),s={category:n(82),classic:n(83),fullscreen:n(84),error:n(85)},l={sid:function(){var e="";try{e=external.GetSID(window)}catch(e){}return e}(),GetVersion:function(){try{return external.GetVersion(external.GetSID(window))}catch(e){return""}},getWallpaperInfo:function(e){try{external.AppCmd(this.sid,"","getWallpaperInfo","","",(function(t,n){var i=JSON.parse("["+n+"]");e&&e(i)}))}catch(e){}},getWallpaperData:function(e){try{external.AppCmd(this.sid,"","getWallpaperData","","",(function(t,n){e&&e(n)}))}catch(e){}},downloadWallpaper:function(e,t,n){try{external.AppCmd(this.sid,"","downloadWallpaper",e,JSON.stringify(t),(function(e,t){n(e,t)}))}catch(e){}},selectWallpaperFile:function(e){try{external.AppCmd(this.sid,"","selectWallpaperFile","","",(function(t,n){e(t,n)}))}catch(e){}},setWallpaperData:function(e,t){try{external.AppCmd(this.sid,"","setWallpaperData",e,"",(function(e,n){t(e,n)}))}catch(e){}},InstallSkin:function(e,t,n,i){try{external.AppCmd(this.sid,"","installskin","ID:"+e+"\tVERSION:"+t+"\tURL:"+n,"0",(function(e,t){i(e,t)}))}catch(e){}},GetCurrentSkin:function(e){try{external.AppCmd(this.sid,"","currentskin","","",(function(t,n){e&&e(t,n)}))}catch(t){e&&e()}},currentWallpaper:function(e){try{external.AppCmd(this.sid,"","currentWallpaper","","",(function(t,n){e(n)}))}catch(e){}},getDarkSkinInfo:function(e){try{external.AppCmd(this.sid,"","getDarkSkinInfo","","",(function(t,n){var i=JSON.parse("["+n+"]");e&&e(i)}))}catch(e){}}},c=!1;t.default=new(function(){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this.$container=e(".setting-skin")}return i(t,[{key:"init",value:function(t){var n=this;(c=!!t)&&e(".full-screen-skin-tab").hide(),this.skinLoadComplete={},this.fullscreenPage=1,this.setPageWallpaper("init"),e(window).on("newpages:firstPageOnLoad",(function(e){n.bindEvents(),c?n.showTab(1):n.showTab(0)})),window.onWallpaperInfoChange=function(){l.getWallpaperInfo((function(t){5==t.length&&!0===t[0]&&(e("#search-form-box .before .bg").css({transform:"translate("+-t[1]+"px, "+-t[2]+"px)",width:t[3],height:t[4]}),e(".wallpaper-current").css({transform:"translate("+-t[1]+"px, "+-t[2]+"px)",width:t[3],height:t[4]}))}))},window.onSkinChange=function(){n.setPageWallpaper(),e(window).trigger("resize")},a.Stat.send("1225.4623.gif",{_referer:"标签页皮肤中心"})}},{key:"setPageWallpaper",value:function(t){var n=this;l.getWallpaperInfo((function(n){if(5==n.length&&!0===n[0]){r.MyStorage.setOption(0),r.MyStorage.setData(""),e(document.body).removeClass("dark-mode");var i="chrome://theme/IDR_THEME_NTP_BACKGROUND?"+Date.now();e("#search-form-box .before").addClass("hasBg"),e("#search-form-box .before .bg").css({"background-image":"url("+i+")",transform:"translate("+-n[1]+"px, "+-n[2]+"px)",width:n[3],height:n[4]}),e(".wallpaper-current").attr("style","").css({"background-image":"url("+i+")",transform:"translate("+-n[1]+"px, "+-n[2]+"px)",width:n[3],height:n[4]}).addClass("meng"),l.getWallpaperData((function(t){if(t){var n="data:image/png;base64,"+t,i=new Image;i.src=n,i.onload=function(t){var n=r.Wallpaper.getAverageLightness(i);n.isBlack?e(document.body).addClass("black-bg"):e(document.body).removeClass("black-bg"),window.skinType=1,window.isBlankSkin=n.isBlack,window.average=n.average,a.postIframeMsg("setFullScreenSkin",{type:window.skinType,isBlack:window.isBlankSkin,average:window.average})}}}))}else{window.skinType=2,window.isBlankSkin=!1,window.average="-1";var s=window.skinType,c="";if(window.currentSkinId>=5e3&&window.currentSkinId<=5999){s=1;var d=localStorage.getItem("newpagesConfig")||"";(d=d?JSON.parse(d):"")&&d.wallpaperBg&&d.wallpaperBg[window.currentSkinId]&&(c=d.wallpaperBg[window.currentSkinId])}a.postIframeMsg("setFullScreenSkin",{type:s,isBlack:window.isBlankSkin,average:window.average,searchFontColor:c&&c.searchFontColor,buttonBg:c&&c.buttonBg,iframeBorder:c&&c.iframeBorder}),e("#search-form-box .before").removeClass("hasBg"),e(".wallpaper-current").removeClass("meng"),l.getDarkSkinInfo((function(t){t&&!0===t[0]?(e(document.body).removeClass("black-bg"),e(document.body).addClass("dark-mode"),new o.PaperLogic):(e(document.body).removeClass("dark-mode"),(window.currentSkinId<5e3||window.currentSkinId>5999)&&e(".wallpaper-current").css({"background-image":"none"}),new o.PaperLogic,0==r.MyStorage.getOption()?((window.currentSkinId<5e3||window.currentSkinId>5999)&&e(".wallpaper-current").css({"background-image":"none"}),e(document.body).removeClass("black-bg")):r.Wallpaper.initSetWallpaper())}))}"init"!=t&&new o.PaperLogic})),this.$container.find(".skin-classic .img, .skin-fullscreen .img").removeClass("current"),l.currentWallpaper((function(e){var t=e.match(/(?!\/)[^\/]+$/);t&&t.length>0&&(e=t[0]),window.currentWallpaperUrl=e||"__noset__",n.$container.find('.skin-fullscreen li a[data-wallpaper$="'+e+'"] .img').addClass("current")})),l.GetCurrentSkin((function(t,i){if(1==t){var a=i.split("/t");if(i={},a.forEach((function(e,t){var n=e.split(":");i[n[0]]=n[1]})),window.currentSkinId=i.ID,i.ID>=5e3&&i.ID<=5999){var o=localStorage.getItem("newpagesConfig")||"",s="";(o=o?JSON.parse(o):"")&&o.wallpaperBg&&o.wallpaperBg[i.ID]&&(s=o.wallpaperBg[i.ID]),e("#search-form .search .btn").css({background:s.buttonBg}),e("#search-form .search .search-btn").css({color:s.searchFontColor}),e("#search-form .search .ipt").css({borderColor:s.borderColor}),r.MyStorage.setOption(0),r.MyStorage.setData(""),e(document.body).removeClass("dark-mode"),e(document.body).removeClass("black-bg");var l="";if(o&&o.wallpaperBg&&o.wallpaperBg[i.ID]){l=o.wallpaperBg[i.ID].wallpaper;var c=new Image,d=new Image;d.onload=function(t){e(".top-line .top-wrap .webSiteChoiceHeader .webSiteChoiceItemIcon").css({backgroundImage:"url("+o.wallpaperBg[i.ID].imgInfo+")"})},d.onerror=function(){},d.src=o.wallpaperBg[i.ID].imgInfo;var u=new Image;u.onload=function(t){e(".top-line .top-wrap .change-wallpaper .webSiteChoiceItemIcon").css({backgroundImage:"url("+o.wallpaperBg[i.ID].imgSkin+")"})},u.onerror=function(){},u.src=o.wallpaperBg[i.ID].imgSkin;var p=new Image;p.onload=function(t){e(".top-line .top-wrap .personalChoiceHeader .webSiteChoiceItemIcon").css({backgroundImage:"url("+o.wallpaperBg[i.ID].imgSetting+")"})},p.onerror=function(){},p.src=o.wallpaperBg[i.ID].imgSetting,c.onload=function(t){e(".se_logo").css({width:c.width/2,height:c.height/2,background:"url("+o.wallpaperBg[i.ID].seLogo+") center/"+c.width/2+"px no-repeat"}),e(".se_logo").addClass("bigMember"),e(".top-line").addClass("bigMember"),e("#search-form-box .before").css({background:"url("+o.wallpaperBg[i.ID].seLogo+") 16px center/"+c.width/2+"px no-repeat",backgroundColor:""+o.wallpaperBg[i.ID].stickyBg,borderBottom:o.wallpaperBg[i.ID].stickyBorderBottom})},c.onerror=function(){},c.src=o.wallpaperBg[i.ID].seLogo}l&&e(".wallpaper-current").attr("style","").css({"background-image":"url("+l+")"})}else e(".se_logo").removeClass("bigMember"),e(".top-line").removeClass("bigMember"),e(".top-line .top-wrap .change-wallpaper .webSiteChoiceItemIcon").css({backgroundImage:""}),e(".top-line .top-wrap .personalChoiceHeader .webSiteChoiceItemIcon").css({backgroundImage:""}),e(".top-line .top-wrap .webSiteChoiceHeader .webSiteChoiceItemIcon").css({backgroundImage:""}),e("#search-form-box .before").attr("style",""),e(".se_logo").attr("style",""),e("#search-form .search .btn").attr("style",""),e("#search-form .search .search-btn").attr("style",""),e("#search-form .search .ipt").attr("style","");n.$container.find('.skin-classic li a[data-skinid="'+currentSkinId+'"] .img').addClass("current")}}))}},{key:"bindEvents",value:function(){var t=this;function n(e){e.attr("state","fail"),clearTimeout(e.data("_timer"));var t=setTimeout((function(){e.attr("state","")}),2e3);e.data("_timer",t)}function i(e,t,i,r){e.find(".img").hasClass("current")||(t.$container.find(".skin-fullscreen li a[data-wallpaper]").attr("state",""),e.attr("state","installing"),l.downloadWallpaper(e.data("wallpaper"),i,(function(i,o){"Success"==o?(e.attr("state",""),t.setPageWallpaper(),t.$container.find(".skin-classic .img, .skin-fullscreen .img").removeClass("current"),e.find(".img").addClass("current"),r&&a.Stat.send("1225.9399.gif",{_referer:e.data("name")})):n(e)})))}e(document).on("click",(function(n){n.isTrigger||n.target==e(".change-wallpaper")[0]||t.$container.is(n.target)||t.$container.has(n.target).length>0||t.hide()})),this.$container.find(".close").on("click",(function(e){t.hide()})),this.$container.find(".tab-head").on("click","li a",(function(n){t.showTab(e(n.currentTarget).parent().index())})),this.$container.find(".skin-category").on("click","a",(function(n){t.$container.find(".skin-category a").removeClass("current").eq(e(n.target).index()).addClass("current"),t.getSkin(2,e(n.currentTarget).data("cid")),t.skinLoadComplete={},t.fullscreenPage=1})),this.$container.on("click",".skin-fullscreen .custom",(function(e){l.selectWallpaperFile((function(e,n){"Success"==n&&t.setPageWallpaper()}))})),this.$container.on("click",".skin-fullscreen li a[data-wallpaper]",(function(n){var r=e(n.currentTarget).find(".member-icon")[0],o=t,s=e(n.currentTarget);if(!r)return i(s,o,{need_login:!1}),void a.Stat.send("1225.5158.gif",{_referer:"no"});a.api.getLoginState((function(e){if(!e)return a.api.login("skincenter"),void(window.loginStatusUpdate=function(e){e&&i(s,o,{need_login:!0},"loginStatusUpdate"),window.loginStatusUpdate=function(){}});i(s,o,{need_login:!0}),a.Stat.send("1225.5158.gif",{_referer:"yes"})}))})),this.$container.on("click",".skin-classic li a[data-skinurl]",(function(i){var r=e(i.currentTarget),o=r.data();if(!r.find(".img").hasClass("current")){var s=t;o.skinid>=5e3&&o.skinid<=5999?a.api.getLoginState((function(e){e?a.api.getBigMemberVIP((function(e){e?c():window.openWin("https://bangong.360.cn/ai-tools/member-benefits.html#?position=Skin&flat=checkstand","_blank")})):a.api.login("bigmember=skincenter")})):c()}function c(){s.$container.find(".skin-classic li a[data-skinurl]").attr("state",""),r.attr("state","installing"),l.InstallSkin(o.skinid,o.skinversion,o.skinurl,(function(t,i){switch(t){case 0:n(r);break;case-1:break;case-2:case-3:n(r);break;case 1:r.attr("state",""),s.setPageWallpaper(),e(".skin-classic .img, .skin-fullscreen .img").removeClass("current"),r.find(".img").addClass("current")}}))}})),e(window).on("resize scroll",(function(e){t.doScroll()}));var r=this.$container.find(".tab-item").eq(0);r.on("scroll mousewheel",(function(e){var n=t.$container.find(".skin-category a.current").data("cid");!n||t.skinLoadComplete["k2_"+n]||t.skinLoading||r.scrollTop()+r.height()>r[0].scrollHeight-50&&t.getSkin(2,n,"append",++t.fullscreenPage)}))}},{key:"show",value:function(){this.dataRequested||(this.dataRequested=!0,c||this.getCategory(),this.getSkin(1)),c?this.showTab(1):(this.$container.find(".skin-category a").eq(0).trigger("click"),this.showTab(0)),this.$container.addClass("show"),this.doScroll()}},{key:"hide",value:function(){this.$container.removeClass("show"),this.doScroll()}},{key:"doScroll",value:function(){var t=e(window).scrollTop(),n=this.$container.outerHeight();this.$container.hasClass("show")?e(".ntp-body").css("min-height",n):e(".ntp-body").css("min-height","auto");var i=e(window).height();i<n?this.$container.css("top",Math.max(-t,i-n)):this.$container.css("top",0)}},{key:"showTab",value:function(e){a.storage.set("skin_option","tab_idx",e),this.$container.find(".tab-head li a").removeClass("current").eq(e).addClass("current"),this.$container.find(".tab-cont .tab-item").hide().eq(e).show()}},{key:"getCategory",value:function(){var t=this,n=this;e.ajax({url:"https://skin.se.360.cn/server/category/show",dataType:"jsonp",data:{type:2,page:1,limit:29},success:function(e){if(n.$container.find(".skin-fullscreen").next(".skin-net-error").hide(),0==e.errno){var i=t.$container.find(".skin-category");i.html(s.category(e.data)),i.find("a").eq(0).trigger("click")}},error:function(e){n.$container.find(".skin-fullscreen").next(".skin-net-error").show()}})}},{key:"getSkin",value:function(t,n,i,r){var o=this,c=this,d=1==t?s.classic:s.fullscreen,u=1==t?".skin-classic":".skin-fullscreen";this.skinLoading=!0;var p=l.GetVersion();if(a.isNewer(p,"15.0.2000.0")&&!a.isBigger(p,"15.0.9999.0")){var h=p.split(".")[2];p="15.1."+h+".64"}e.ajax({url:"https://skin.se.360.cn/server/skin/show",dataType:"jsonp",data:{ver:p,type:t,cateid:n,p:1==t?"newpages":"",page:r||1,limit:12},success:function(e){c.$container.find(u).next(".skin-net-error").hide();var r=o.$container.find(u);if(e&&e.data&&e.data.length>0||(o.skinLoadComplete["k"+t+"_"+n]=!0),e&&0==e.errno&&e.data){var s=e.data,l=a.isNewer(p,"13.1.1186.0")&&a.isNewer("13.1.2999.0",p);s.forEach((function(e){l||(e.NeedLogin=""),e.LogoUrl_162_94=a.cutImg(e.LogoUrl,"324_188_85","dm"),e.LogoUrl_162_86=a.cutImg(e.LogoUrl,"324_172_85","dm"),e.LogoUrl_1920_1080=a.cutImg(e.LogoUrl,"__88","dm")})),"append"==i?r.append(d(s)):r.html(d(s)),s.length<12&&(o.skinLoadComplete["k"+t+"_"+n]=!0,0==r.find(".custom").length&&r.append('<li><a class="custom"></a></li>'))}else"append"==i?0==r.find(".custom").length&&r.append('<li><a class="custom"></a></li>'):r.html("")},error:function(e){1==t?c.$container.find(u).next(".skin-net-error").show():"append"==i||c.$container.find(u).html(s.error())},complete:function(e){setTimeout((function(e){o.skinLoading=!1}),500)}})}}]),t}())}).call(this,n(1))},function(e,t){e.exports=function(e){for(var t,n,i="undefined"!=typeof _encodeHTML?_encodeHTML:(t={"&":"&#38;","<":"&#60;",">":"&#62;",'"':"&#34;","'":"&#39;","/":"&#47;"},n=/&(?!#?\w+;)|<|>|"|'|\//g,function(e){return e?e.toString().replace(n,(function(e){return t[e]||e})):""}),a='<div class="">',r=0;r<e.colLength;r++)if(r%2==0){a+='<div class="ad-bg-col">';var o=e.rowArrNormal;if(o)for(var s=-1,l=o.length-1;s<l;)a+="<a data-href='"+i((d=o[s+=1]).host)+"' target=\"_blank\" data-clktk='"+i(d.clktk)+'\' class="ad-bg-item" data-default="'+i(d.defaultBg)+'" data-bg="'+i(d.dataBg)+'" style="background: url('+i(d.wmBg)+') center no-repeat"></a>';a+="</div>"}else{a+='<div class="ad-bg-col">';var c=e.rowArrReverse;if(c){s=-1;for(var d,u=c.length-1;s<u;)a+="<a data-href='"+i((d=c[s+=1]).host)+"' target=\"_blank\" data-clktk='"+i(d.clktk)+'\'  class="ad-bg-item" data-default="'+i(d.defaultBg)+'" data-bg="'+i(d.dataBg)+'" style="background: url('+i(d.wmBg)+') center no-repeat"></a>'}a+="</div>"}return a+="</div>"}},function(e,t){e.exports=function(e){var t,n,i="undefined"!=typeof _encodeHTML?_encodeHTML:(t={"&":"&#38;","<":"&#60;",">":"&#62;",'"':"&#34;","'":"&#39;","/":"&#47;"},n=/&(?!#?\w+;)|<|>|"|'|\//g,function(e){return e?e.toString().replace(n,(function(e){return t[e]||e})):""}),a='<ul data-pid="topNav">',r=e;if(r)for(var o,s=-1,l=r.length-1;s<l;)a+='<li title="'+i((o=r[s+=1]).txt)+'"  data-title="'+i(o.txt)+'" data-index="'+i(s)+'"><a class="icon-box" target="_blank" href="'+i(o.href)+'"  title="'+i(o.txt)+'" data-index="'+i(s)+'"  data-title="'+i(o.txt)+'" > <img onerror="src=\''+i(o.defaultIcon)+'\'" src="'+i(o.img)+'" class="sma-icon" />\x3c!-- ',o.show&&(a+='<span class="icon-out-box"></span>'),a+=" --\x3e</a>",o.href.length>1?a+='<div><a class="'+i(o.boldClass)+'" target="_blank" class="tok-less" title="'+o.txt[0]+'" data-index="'+i(s)+'" data-title="'+o.txt[0]+'" href="'+o.href[0]+'">'+o.txt[0]+'</a><span></span><a class="'+i(o.boldClass)+'" target="_blank" class="tok-less" title="'+o.txt[1]+'" data-index="'+i(s)+'" data-title="'+o.txt[1]+'"  href="'+o.href[1]+'">'+o.txt[1]+"</a></div>":a+='<div><a class="'+i(o.boldClass)+'" target="_blank" title="'+i(o.txt)+'" data-index="'+i(s)+'" data-title="'+i(o.txt)+'" href="'+i(o.href)+'">'+i(o.txt)+"</a></div>",a+="</li>";return a+="</ul>"}},function(e,t){e.exports=function(e){var t,n,i="undefined"!=typeof _encodeHTML?_encodeHTML:(t={"&":"&#38;","<":"&#60;",">":"&#62;",'"':"&#34;","'":"&#39;","/":"&#47;"},n=/&(?!#?\w+;)|<|>|"|'|\//g,function(e){return e?e.toString().replace(n,(function(e){return t[e]||e})):""}),a='<ul  data-pid="sideNav">',r=e;if(r)for(var o,s=-1,l=r.length-1;s<l;)a+='<li><a title="'+(o=r[s+=1]).txt+'" data-title="'+o.txt+'" target="_blank" href="'+i(o.href)+'"><img onerror=\'this.style.visibility="hidden"\' src="'+i(o.img)+'" class="sma-icon" />',o.show&&(a+='<span class="icon-out-box"></span>'),a+="<p>"+i(o.txt)+"</p></a></li>";return a+="</ul>"}},function(e,t,n){e.exports=n.p+"images/601e1320.png"},function(e,t){e.exports=function(e){var t,n,i="undefined"!=typeof _encodeHTML?_encodeHTML:(t={"&":"&#38;","<":"&#60;",">":"&#62;",'"':"&#34;","'":"&#39;","/":"&#47;"},n=/&(?!#?\w+;)|<|>|"|'|\//g,function(e){return e?e.toString().replace(n,(function(e){return t[e]||e})):""}),a="",r=e;if(r)for(var o,s=-1,l=r.length-1;s<l;)a+=' <a data-cid="'+i((o=r[s+=1]).Id)+'">'+i(o.Name)+"</a>";return a}},function(e,t){e.exports=function(e){var t,n,i="undefined"!=typeof _encodeHTML?_encodeHTML:(t={"&":"&#38;","<":"&#60;",">":"&#62;",'"':"&#34;","'":"&#39;","/":"&#47;"},n=/&(?!#?\w+;)|<|>|"|'|\//g,function(e){return e?e.toString().replace(n,(function(e){return t[e]||e})):""}),a="",r=e;if(r)for(var o,s=-1,l=r.length-1;s<l;)a+='<li> <a data-skinid="'+i((o=r[s+=1]).SkinId)+'" data-skinversion="'+i(o.Version)+'" data-skinurl="'+i(o.SkinUrl)+'"> <div class="img',window.currentSkinId==o.SkinId&&(a+=" current"),a+='" style="background-image:url('+i(o.LogoUrl_162_86)+')"></div> <div class="install-state"> <div class="loading"></div> <p>安装失败</p> </div> </a> <p>'+i(o.Name)+"</p></li>";return a}},function(e,t){e.exports=function(e){var t,n,i="undefined"!=typeof _encodeHTML?_encodeHTML:(t={"&":"&#38;","<":"&#60;",">":"&#62;",'"':"&#34;","'":"&#39;","/":"&#47;"},n=/&(?!#?\w+;)|<|>|"|'|\//g,function(e){return e?e.toString().replace(n,(function(e){return t[e]||e})):""}),a="",r=e;if(r)for(var o,s=-1,l=r.length-1;s<l;)a+='<li> <a data-wallpaper="'+i((o=r[s+=1]).LogoUrl_1920_1080)+'" data-name="'+i(o.Name)+'"> <div class="img',o.LogoUrl_1920_1080.indexOf(window.currentWallpaperUrl)>0&&(a+=" current"),a+='" style="background-image:url('+i(o.LogoUrl_162_94)+')"></div> <div class="install-state"> <div class="loading"></div> <p>安装失败</p> </div> ',1==o.NeedLogin&&(a+=" <span class='member-icon skin-category-icon'></span> "),a+=" </a></li>";return a+='\x3c!-- <li> <a class="custom"></a></li> --\x3e'}},function(e,t){e.exports=function(e){return'<div class="skin-net-error fullscreen-error"> <div class="img"></div> <p>网络加载异常</p></div>'}},function(e,t,n){"use strict";(function(t){n(2);e.exports={init:function(){}}}).call(this,n(1))},function(e,t){e.exports=function(e){return'<div class="mode-search-tip-card"><span class="search-card-arrow"></span><span class="search-card-close"></span><p class="search-card-word">试试纯净搜索模式吧~</p><span class="search-card-btn">好的</span></div>'}},function(e,t,n){"use strict";(function(t){n(2);e.exports={init:function(){}}}).call(this,n(1))},function(e,t){e.exports=function(e){var t,n;return'<div class="mode-cube-tip-card"><span class="arrow"></span><div class="mode-cube-tip-content"><span class="modeCubeTipClose"></span><div class="topImg"></div><h2 class="des">'+("undefined"!=typeof _encodeHTML?_encodeHTML:(t={"&":"&#38;","<":"&#60;",">":"&#62;",'"':"&#34;","'":"&#39;","/":"&#47;"},n=/&(?!#?\w+;)|<|>|"|'|\//g,function(e){return e?e.toString().replace(n,(function(e){return t[e]||e})):""}))(e.desc)+'</h2><div class="btn">立即查看</div></div></div>'}},function(e,t,n){"use strict";(function(t){var i=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],i=!0,a=!1,r=void 0;try{for(var o,s=e[Symbol.iterator]();!(i=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);i=!0);}catch(e){a=!0,r=e}finally{try{!i&&s.return&&s.return()}finally{if(a)throw r}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};var a=n(2),r=n(21),o=n(13),s=n(97),l=n(23);n(34).reject;l.init();var c=function(){var e,n=!1;function i(){n||(n=!0,function(){t(".add-url .url-cats li").on("click",(function(){o(t(this).attr("cat-name"))})),t("input[name=add-url-q]").on("search",(function(n){var i=t(this).val();i?("custom"==t(".add-url .url-cats li.on").attr("cat-name")&&o("hot"),function(n){var i=[],a={};t.each(e,(function(e,r){t.each(r,(function(e,t){(t.title.indexOf(n)>-1||t.url.indexOf(n)>-1)&&(a[t.url]||(a[t.url]=!0,i.push(t)))}))})),i.length<=0&&t(".add-url .recommend .nodata").show();c(i)}(i)):l()})),t(".add-url .recommend .loaderror .reload").on("click",r),t(document).delegate("#add-url-form input[type=text]","keypress",(function(e){13==e.charCode&&(t("#js-addurl-url").trigger("blur"),t("#add-url-form").trigger("submit"))})).delegate(".url-often li","click",(function(e){t("#js-addurl-title").val(t(this).text().trim()),t("#js-addurl-url").val(t("a",this).attr("href")),e.preventDefault()})).delegate(".url-often li","dblclick",(function(e){t("#js-addurl-title").val(t(this).text().trim()),t("#js-addurl-url").val(t("a",this).attr("href")),t("#js-addurl-confirm").trigger("click"),e.preventDefault()})),t("#js-addurl-url").on("blur",(function(e){this.value&&!/^(https?):\/\//i.test(this.value)&&(this.value="https://"+this.value),this.value=this.value.replace(/\|/g,"%7c")}));var n=t(".url-tab li");n.click((function(){t(this).addClass("cur").siblings().removeClass("cur");var e=n.index(this);t(".url-often > ul").eq(e).show().siblings().hide()}))}(),r())}function r(){return a.DC.get("https://site.browser.360.cn/csite.php?callback=?",{version:"se62",rn:Date.now(),v:a.api.GetVersion()},(function(n){e=n&&n.data,t(document).trigger("AddUrlDlg:showtab")}),36e5,(function(){t(".add-url .recommend .loaderror .reload").show()})),!1}function o(n){if(t(".add-url .url-cats li").removeClass("on").filter("[cat-name="+n+"]").addClass("on"),"custom"==n)return t(".add-url .recommend").hide(),t(".add-url .custom").show(),void(localStorage.__addurl_default_tab="custom");t(".add-url .recommend").show(),t(".add-url .custom").hide(),localStorage.__addurl_default_tab="custom",e?l():t(document).on("AddUrlDlg:showtab",l)}function l(){var n=t(".add-url .url-cats li.on").attr("cat-name");c(e[n])}function c(e){e=e||[];var n=[];t.each(e,(function(e,t){var i=mostsUrlMap[t.url]||mostsUrlMap[t.url+"/"]||customsUrlMap[t.url]||customsUrlMap[t.url+"/"];n.push('<li class=" '+(i?"added":"")+'" url="'+a.htmlEncode(a.checkUrlProtocol(t.url))+'"> <i class=""></i><img src="'+a.htmlEncode(t.logo)+'" onerror="src=\''+s+'\'"><h4 title="'+a.htmlEncode(t.title)+'">'+a.htmlEncode(t.title)+"</h4></li>")})),e.length>0&&t(".add-url .recommend .nodata").hide(),t(".add-url .recommend .logo-list").html(n.join("")),t(".add-url .recommend .logo-list li").click((function(){window.isOftenUrl=!0,t("#js-addurl-title").val(t(this).find("h4").attr("title")),t("#js-addurl-url").val(t(this).attr("url")),t("#add-url-form").submit()})),t(".add-url .recommend .logo-list li img").on("mousedown",(function(){return!1}))}return{show:function(){i(),this.onshow()},onshow:function(){sugSelect.hide(),t("input[name=add-url-q]").val(""),t(".ipt-2+label.error").hide(),o(localStorage.__addurl_default_tab||"custom")}}}(),d=function(){var e=!0,s=0,d=a.storage.getData("qid"),u=12,p=null,h=!1,f=!1,g=!1,m=0,v=!1,w=n(99),b=n(100),y=t(".add-url");function _(e,n){var i=Math.max(document.body.clientWidth,904),a=Math.floor(.75*i);return a=a>904?a:904,a=Math.min(a,1134),t(".grid").width(a),t(".dial-meun").width(a),setTimeout((function(){z()})),a>1e3?(t(".page>.grid, .ntp-body").removeClass("w1024 w1440 __scale").addClass("w1440"),t(".page>.grid").css({"-webkit-transform":"none",left:0,top:0})):a>730?(t(".page>.grid, .ntp-body").removeClass("w1024 w1440 __scale").addClass("w1024"),t(".page>.grid").css({"-webkit-transform":"none",left:0,top:0})):t(".page>.grid, .ntp-body").removeClass("w1024 w1440").addClass("w1024 __scale"),t(".tile .box").width("auto"),setTimeout((function(){t(".tile .box").width(t(".tile .box").width())}),0),t(".tile .box, .box img").css("height",m=Math.floor(.6308*t(".tile .box").width())),v||k(),A(),_}function S(){var e=t(".setting-box");e.find("p em").text(u),e.find("li").each((function(e,t){this.className=t.value===u?"active":""}))}function x(e,t){var n=a.storage.getData("GRID_COUNT")||{};e=e||(n.local||12),d&&(n[d]=e),n.local&&d||(n.local=e),u=e,a.storage.setData("GRID_COUNT",n),S(),t&&D()}function k(e,n,i){var a=t(".wrap-dial .mosts .tile:not(draging):first");if(0!=a.length){var r=a.outerWidth(),o=a.outerHeight();t(".wrap-dial .mosts .tile").each((function(a){a>=e&&a<=n&&(a+=i);var s=t(this);s.hasClass("draging")||s.css({left:a%4*r,top:Math.floor(a/4)*o})}))}}function C(e){var n="";e.forEach((function(e,i){if(e.title){var r=t('<li><img src="chrome://favicon/size/16/'+a.htmlEncode(a.checkUrlProtocol(e.url))+'"><a href="'+a.htmlEncode(a.checkUrlProtocol(e.url))+'">'+a.htmlEncode(e.title)+"</a></li>");n+=r[0].outerHTML}})),t(".url-often ul:first").html(n)}function T(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=arguments[2],r=arguments[3];if("mosts"==e){if(setTimeout((function(){C(n)}),250),g)return;window.mostsUrlMap={},window.customsUrlMap={}}else window.customsUrlMap={};var o,s=b,c=t(".wrap-dial ."+e+" ul"),d=c.children(),u="",p=24-n.length;if(p>0)for(var h=0;h<p;h++)n.push({drag:u});n.every((function(n,i){var r;if(n.url&&"widget:"==n.url.substr(0,7)&&(n.url=""),n.url){switch(null!=n.pinned_type&&(n.pinned_type=n.pinned_type.toString()),null!=n.thumbnail_type&&(n.thumbnail_type=n.thumbnail_type.toString()),"mosts"==e?mostsUrlMap[n.url]=n:customsUrlMap[n.url]=n,n.drag=u,n.url=a.checkUrlProtocol(n.url),n.title=a.StringH.subByte(n.title,90),n.logo=void 0===n.logo?"chrome://thumb/"+n.url:n.logo,n.thumbnail_type){case 300:case 400:case 1:n.snapshot="",n.defaultlogoBg="";break;default:n.snapshot="snapshot";var l=P({title:n.title,url:n.url}),p=l.bg_idx;l.fl;n.defaultlogoBg="defaultlogo-bg-"+p}r=w(n).trim()}else r=s({drag:u}).trim();var h=d.eq(i);if(h.length>0)h.find(".link").attr("href")!=n.url||h.find(".link").find(".tile-tit").attr("title")!=n.title?h.html(t(r).children()):I(h.find(".link"),n.pinned_type);else if(o)"mosts"==e&&(r=t(r).css({left:i%4*o.w,top:Math.floor(i/4)*o.h})),c.append(r);else{c.append(r);var f=c.find(".tile:first");f.find(".box").height(.6051*f.find(".box").width()),o={w:f.outerWidth(),h:f.outerHeight()}}return i+1<24})),_(),!r&&l.setCoverAdsPosition(),i&&a.ScreenShot.hideAndCapture(e+"-Rendered",!0)}function I(e,t){e.attr("pinned_type",t),1==t?e.addClass("pinned"):e.removeClass("pinned"),e.find(".pin").attr("title",1==t?"解锁":"锁定")}function D(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"mosts",n=E(".wrap-dial ."+e+" .tile"),i=e+"UrlMap";window[i]={},n.forEach((function(e){window[i][e.url]=e})),console.log("更新九宫格数据"),Y(n),setTimeout((function(){t(".just-dragged").removeClass("just-dragged")})),a.ScreenShot.capture("DataChanged")}function E(e){var n=[];return t(e).each((function(e,i){var a=t("img",i),r=t(".link",i),o=t(".tile-tit",i),s=parseInt(r.attr("pinned_type")||1),l=parseInt(r.attr("thumbnail_type")||0),c=a&&l>=1?a.attr("src"):"";n.push({title:o.text().trim()||"",url:r.attr("href")||"",pinned_type:isNaN(s)?1:s,logo:c,thumbnail_type:isNaN(l)?1:l})})),n}function M(){var e,n,i,a,r,o,s,l,c,d,u,p,h,f,m,w,b;function y(g){if(u=g.clientX,p=g.clientY,e){var v,y=g.pageX-i,_=g.pageY-a,S=i+y+r,x=a+_+o,C=t(".page-list").offset().top+t(".page-list").height();if(a+_>=C)return;if(t(s).css({left:S+"px",top:x+"px"}),n.every((function(t){return!(g.pageX>t.left&&g.pageX<t.right&&g.pageY>t.top&&g.pageY<t.bottom)||(t.drag!==e&&(v=t.drag),!1)})),v!==l){if(l&&t(l).removeClass("pass-drag").removeClass("pass-drag-left").removeClass("pass-drag-top").removeClass("pass-drag-right").removeClass("pass-drag-bottom"),l=v,m)return b=l?t(l).index():w,k(Math.min(w,b),Math.max(w,b),b>w?-1:1),!1;if(!l)return!1;var T={left:t(e).offset().left,top:t(e).offset().top,right:t(e).offset().left+t(e).width(),bottom:t(e).offset().top+t(e).height()},I={left:t(l).offset().left,top:t(l).offset().top,right:t(l).offset().left+t(l).width(),bottom:t(l).offset().top+t(l).height()};t(l).addClass("pass-drag"),I.left>T.left?t(l).addClass("pass-drag-left"):I.left<T.left&&t(l).addClass("pass-drag-right"),I.top>T.top?t(l).addClass("pass-drag-top"):I.top<T.top&&t(l).addClass("pass-drag-bottom")}}else{if(!f)return!1;if(g.button)return!1;if(Math.max(Math.abs(u-c),Math.abs(p-d))<2)return!1;if(s)return f=!1,!1;var D=h,E=t(D);M=[],t("."+(m?"mosts":"customs")+" .tile").each((function(e,n){var i=t(n),a=i.offset();M.push(n.rect={index:e,drag:n,left:a.left,top:a.top,right:a.left+i.outerWidth(),bottom:a.top+i.outerHeight()})})),n=M,e=D,i=g.pageX,a=g.pageY,r=E.offset().left-i,o=E.offset().top-a,(s=document.createElement("div")).innerHTML=e.innerHTML,t(e).css("opacity",0).addClass("draging"),w=t(e).index(),t(s).addClass("drag-helper").css({width:E.width()+"px",height:E.height()+"px",left:E.offset().left+"px",top:E.offset().top+"px"}),E.hasClass("ui-state-disabled")&&(t(s).addClass("drag-helper-disabled"),TipsManager.showMostsDragTips()),document.body.appendChild(s)}var M}t(document).delegate(".tile .box","mousedown",(function(e){return e.altKey||(m=t("#page-mosts").is(".current"),c=e.clientX,d=e.clientY,f=!0,h=t(this).parent(".tile")[0],t(h).parent().addClass("animating"),v=!0,m&&(g=!0),t(document).on("mousemove",y)),!1})),t(document).delegate("","mouseup",(function(n){if(t(document).off("mousemove",y),f=!1,setTimeout((function(){v=g=!1,t(h).parent().removeClass("animating")}),300),e){if(Math.max(Math.abs(u-c),Math.abs(p-d))>2&&n.preventDefault(),l&&!m){t(l).removeClass("pass-drag pass-drag-left pass-drag-top pass-drag-right pass-drag-bottom"),t(l).addClass("just-dragged"),t(s).animate({left:l.rect.left+"px",top:l.rect.top+"px"},300,function(e){return function(){if(!l)return!1;s||(s=t(".drag-helper")),e.innerHTML=i.innerHTML,t(e).css("opacity",1).removeClass("draging"),l.innerHTML=s.innerHTML,t(l).css("opacity",1),document.body.removeChild(s),document.body.removeChild(i),s=null,console.log(444),D("customs")}}(e));var i=document.createElement("div");i.innerHTML=l.innerHTML,t(l).css("opacity",0),document.body.appendChild(i),t(i).addClass("drag-switcher").css({width:t(l).width()+"px",height:t(l).height()+"px",left:t(l).offset().left+"px",top:t(l).offset().top+"px"}).animate({left:t(e).offset().left+"px",top:t(e).offset().top+"px"},300)}else{var a=t(e),r=a.offset(),o=m&&l,_={left:e.offsetLeft,top:e.offsetTop};if(o){var S={w:a.outerWidth(),h:a.outerHeight()};_=Object.assign(_,{left:b%4*S.w,top:Math.floor(b/4)*S.h});var x=a.parent().offset();r={left:x.left+_.left,top:x.top+_.top},k(Math.min(w,b),Math.max(w,b),b>w?-1:1)}t(s).removeClass("drag-helper-disabled"),t(s).animate(r,300,(function(){if(o){I(a.css(_).find(".link"),1);var e=b>w?b:b-1;e<0?a.parent().prepend(a):t(".mosts .tile:eq("+e+")").after(a),console.log(555),D("mosts")}a.css({opacity:1,left:_.left,top:_.top}).removeClass("draging"),document.body.removeChild(s),s=null}))}e=null}}))}function A(){y.is(":visible")&&(y.removeAttr("style").show(),y.offset().top-t(window).scrollTop()<0&&y.css("top",-parseInt(y.css("margin-top"))))}function F(){t(".add-url,.addurl-mask").show(),A(),c.show(),t("#add-url-form input[type=text]").val("");var e="customs";t(this).parents(".grid").hasClass("mosts")&&(e="mosts"),t("#js-addurl-fortype").val(e);var n=t(this).parents("li")[0];[].slice.call(n.parentNode.children,0).every((function(e,i){return e!=n||(t("#js-addurl-foridx").val(i),!1)}))}function P(e){var t,n=e.title,i=(t=n.match(/[\u4E00-\u9FA5\uF900-\uFA2D]|[a-zA-Z0-9]/))&&t[0]||"",a=function(e){var t=1315423911,n=void 0,i=void 0;for(n=e.length-1;n>=0;n--)i=e.charCodeAt(n),t^=(t<<5)+i+(t>>2);return 2147483647&t}(e.url.replace(/\/$/,""))%9+1;return 10==a&&(a=1),{bg_idx:a,fl:i}}function L(e){t(".add-url,.addurl-mask").hide()}function N(){window.isOftenUrl=!1,t("#add-url-form").on("submit",(async function(e){e.preventDefault();var n=t("#js-addurl-fortype").val();if("mosts"!=n&&(n="customs"),""==t("#js-addurl-foridx").val()){var r=t("."+n+" li.tile div.empty:first").parent().index();t("#js-addurl-foridx").val(Math.max(r,0))}var o=t("#js-addurl-title").val().trim(),s=t("#js-addurl-url").val(),l=t("#js-addurl-foridx").val()-0,c=-1;if(!/^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z|]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i.test(s))return t("#js-addurl-url").focus(),void(s&&(0==t("#js-addurl-url").next("label").length?t("#js-addurl-url").after('<label for="js-addurl-url" generated="true" class="error" style="">网址输入有误，请确认后重试</label>'):t("#js-addurl-url").next("label").show()));"mosts"==n&&(g=!0);var d;window.isOftenUrl;if(window.isOftenUrl=!1,"mosts"==n)try{t(".wrap-dial .mosts .tile a.link").each((function(){var e=this.href;e=e.replace(/\/$/i,"");var n=s;if((n=n.replace(/\/$/i,""))==e)return d=t(this).parents(".tile"),!1}))}catch(e){}d?c=d.index():d=t(".wrap-dial ."+n+" .tile:eq("+l+")");var u=await async function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3,n=function(e){return new Promise((function(t,n){setTimeout((function(){n("timeout")}),e)}))},i=new Promise((function(t){a.ntpApis.getBigThumbnail([e],1,(function(e){e&&0!==e.length&&t(e[0])}))}));return Promise.race([i,n(t)])}(s).catch((function(e){}));console.log("getBigThumbnail 1",u);var p=u||["",""];p[0]=s;var h=!0;-1!=c?(!function(e,n){if(t(".tip_wrap").length)return!1;var i='<div class="tip_wrap" style="position:fixed; z-index:9999; bottom: 56%; width: 100%;">\n    <div class="tip" style="height:40px;width:158px;line-height:40px;color:#fff;background:rgba(0, 0, 0, 0.7);text-align:center;border-radius:5px;transition:all 0.25s;margin:0 auto;">'+e+"</div>\n    </div>";t("body").append(i),t(".tip_wrap").fadeIn();var a=setTimeout((function(){t(".tip_wrap").fadeOut().remove(),clearTimeout(a),n&&n()}),1e3)}("您添加的网址已存在"),console.log(998,c),t(d).removeClass("hideWeb").children("div.dial-grid-cover-ads-item").hide(),h=!1):(h=!0,function(e){var r=i(e,2),s=r[0],l=r[1];s=s.replace(/^https?:\/\/hao.360.cn/,"https://hao.360.com");var c=P({title:o,url:s}),u=c.bg_idx,p=(c.fl,d.html(t(w({title:a.StringH.subByte(o||s,90),thumbnail_type:l?1:0,short_url:s.shorting(50),url:s,defaultlogoBg:"defaultlogo-bg-"+u}).trim()).html()).find(".box").css("height",m));l&&p.find(".tile-logo img").attr("src","data:image/png;base64,"+l),D(n),_(),g=!1}(p)),h&&L()}))}function O(){N(),t(window).on("resize",_),t(document).on("click",(function(e){e.isTrigger||e.target==t(".setting-box")[0]||t(".setting-box").has(e.target).length>0||e.target==t(".dial-setting")[0]||t(".dial-setting").has(e.target).length>0||t(".dial-setting span").removeClass("show")})),t(document).delegate(".tile .remove","click",(function(e){return function(e,n){(e=t(e)).find(".box").addClass("empty"),e.find(".remove").hide();var i=e.find(".link .tile-logo");function r(){var e=t(this).parents(".grid"),n=(t(this).parents(".tile"),t(this).parent(".link")),i=n.attr("href");n.remove(),e.hasClass("mosts")?(console.log(222),D("mosts"),a.ntpApis.blacklistURLFromMostVisited(i)):(console.log(333),D("customs")),g=!1}t(i).parents(".grid").hasClass("mosts")&&(g=!0),n?i.addClass("hide-tit").css({position:"absolute",top:0}).animate({top:-i.height()},400,"",r):r.call(i)}(t(this).parents("li.tile"),!0),!1})).delegate(".wrap-dial .tile-add","click",F).delegate("#js-addurl-cancel, .add-url-close","click",L),t(document).on("keydown",(function(e){switch(e.keyCode){case 27:L()}})),H();var n=t(".setting-box");n.on("click","button",(function(e){H(!0)})),t(".dial-setting").on("click","span",(function(e){this.className="show"===this.className?"":"show"})),S(),n.on("click","li",(function(e){u!==this.value&&(x(this.value,"up"),n.find("p em").text(u),t(this).addClass("active").siblings().removeClass("active"),z())})),t(".page-list").on("click",".link",(function(){a.Stat.send("1215.7551.gif")})),window.loginStatusUpdate=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(console.log("loginStatusUpdate"),clearInterval(s),e)e=!1,Q(!0);else{console.log("loginStatusUpdate");var n=$(t),i=n.qid;i||(h=!1),H(),i!=d&&(d=i,j("login",!0))}},window.UpdateNewTabSyncInfo=function(e){console.log("UpdateNewTabSyncInfo",e);var n=t("button[value=userSwitch");1===e?(n.addClass("on").removeClass("off"),h=!0):(n.addClass("off").removeClass("on"),h=!1),j(e,!0,"login")}}window.importDataCaptureCount=0;var B=0;function j(e,t,n){"number"==typeof e&&(h=e,!n&&!n&&a.ntpApis.SetNewTabSyncInfo(e)),clearTimeout(B),B=setTimeout((function(){console.log("setSwitch",t,e),(t||e)&&Q(!0)}),1e3)}async function H(e){var n=t("button[value=userSwitch")[0];e?n.className.indexOf("off")>-1||n.className.indexOf("disabled")>-1?d?(n.className="on",j(1)):external.AppCmd(external.GetSID(window),"loginenrol","ReloginByManual","config","",(function(e,t){})):(n.className="off",j(0)):(n.className="off",j(0),document.getElementById("user-syc").style.display="none")}function z(){var e=t(".page-list"),n=e.find("div.mosts").find("ul[data-pid='mosts_old']"),i=n.find("li").length;if(i&&i>0){var a=n.find("li")[0].clientHeight;e.height(a*(u/4)+5)}}function $(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=decodeURIComponent(e),n=t&&a.GetQueryCookie("qid",t)||"";return a.storage.setData("qid",n),{qt:e,qid:n}}function G(){return new Promise((function(e,t){external.AppCmd(external.GetSID(window),"loginenrol","GetLoginSection","","",(function(t,n){e($(n))}))}))}var R=[],q=function(){};function W(e,t){return new Promise((function(n,i){var a=new Image;a.src=e,a.onload=function(){var e,i=document.createElement("canvas");i.width=370,i.height=224,i.getContext("2d").drawImage(a,0,0,370,224),e=i.toDataURL("image/jpeg",.5),n({src:e,url:t})},a.onerror=function(n){i({src:e,url:t})}}))}function U(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments[1],i=t('.tile a[href="'+n+'"]');i&&(e?(e=e.indexOf("data:image")>-1?e:"data:image/png;base64,"+e,i.attr("thumbnail_type","1").find("img").attr("src",e)):i.attr("thumbnail_type","0"))}function V(e){var t=[];if(e.map((async function(n){if(n.url&&(void 0===e[0].logo||n.logo.indexOf("chrome://thumb")>-1||function(e){try{if("c.ssp.360.cn"===new URL(e.url).host&&"414380a72dfb746332b28c8e35e4a283"===a.getMd5(e.logo))return!0}catch(e){}return!1}(n))){try{var i=new URL(n.url);if("c.ssp.360.cn"===i.host){var r=i.searchParams.get("url");r&&t.push(r)}}catch(e){}t.push(n.url),R.push({url:n.url,setImgUrl:U})}else if(n.logo&&n.logo.length/1024>100){var o=await W(n.logo,n.url).catch((function(e){return e}));o&&U(o.src,o.url)}})),!(t.length<=0)){var n=[];Date.now();a.ntpApis.getBigThumbnail(t,1,(function(e){n.push.apply(n,function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(e)),n.length<t.length||n.map((async function(e){var t=i(e,2),a=t[0],r=t[1];if(a||r){try{var o=new URL(a);if("c.ssp.360.cn"===o.host){var s=o.searchParams.get("url");if(s){var l=n.find((function(e){return e[0]===s}));l&&(r=l[1])}}}catch(e){}var c=await W(r,a).catch((function(e){return e})),d=function(e){for(var t=q,n=0,i=R.length;n<i;n++)if(R[n].url===e){t=R.splice(n--,1),"[object Array]"==Object.prototype.toString.call(t)&&(t=t[0]);break}return t}(a);d&&c&&d.setImgUrl(c.src,c.url),R.length<=0&&D("mosts")}}))}))}}async function X(e){var t=(await G().catch((function(e){return""}))).qt;e.startTime||(e={data:e,startTime:(new Date).getTime()}),p="userMost-"+d;var n=a.storage.get(p);if(h){var i=await a.ajaxGlobal("https://mini.browser.360.cn/his/sq/get",{mid:a.api.GetMID(),ver:a.api.GetVersion(),t:t},"","jsonp"),r=i.errno,o=void 0===r?-1:r,s=i.data,l=void 0===s?{}:s;if(0!==o||i.status)f=!1;else{var c=l.sq_data?JSON.parse(decodeURIComponent(l.sq_data)):{startTime:0};n=n.startTime&&n.startTime>c.startTime?n:c,f=!0}}return n.startTime||(n=e),x(n.GRID_COUNT),Y(n),n.data}async function Y(e){var t,n,i=(await G().catch((function(e){return""}))).qt;if(e.startTime||(e={data:e,startTime:(new Date).getTime()}),e.GRID_COUNT=u,i||d){p="userMost-"+d;var r=(t={mid:a.api.GetMID(),ver:a.api.GetVersion(),t:i,sq_data:encodeURIComponent(JSON.stringify(e))},n=new FormData,Object.keys(t).map((function(e){n.append(e,t[e])})),n);h&&f&&a.ajaxGlobal("https://mini.browser.360.cn/his/sq/up",r,"POST").then((function(e){})).catch((function(e){})),a.storage.setData(p,e)}else a.storage.setData("localMost",e),p=null}function J(e){console.log("-------",e),p="userMost-"+e,T("mosts",(e&&p?a.storage.get(p):a.storage.getData("localMost")).data,t(".wrap-dial").is(":visible"),"1"),o.showSiteUrl()}async function K(){return new Promise((async function(e,t){var n=a.storage.getData("localMost");if(d&&n){var i=await X(n);e(i),a.ntpApis.getMostVisitedData((function(e){}))}else if(n){i=await X(n.data?n.data:n);e(i)}else{var r=await new Promise((function(e,t){a.ntpApis.getCustomData((function(t){console.log("getCustomData 回调函数被调用:",+new Date-st+"ms",arguments),e(t)}))})).catch((function(e){return[]}));x(function(e){if(0===e.length)return 0;for(var t=11,n=e.length-1;n>=0;n--)if(e[n].url||e[n].title){t=n;break}return t=4*Math.ceil(t/4)}(r)+12);var o=!1;a.ntpApis.getMostVisitedData((async function(t){if(!o){o=!0,console.log("这里可以查看九宫格数据"),console.log(t);var n=t.length;n<12&&(t.length=12,t.fill({pinned_type:1,thumbnail_type:0},n,t.length));var i=t.splice(0,12);i=i.concat(r.splice(0,12)),a.storage.setData("localMost",i),i=await X(i),e(i)}}))}}))}async function Q(e,n){var i,s=(await G().catch((function(e){}))).qid;d=s||d,i=a.storage.getData("GRID_COUNT")||{},u=i[d]||i.local||12,a.Stat.send("1215.5977.gif",{_referer:u}),S(),K().then((function(i){n?r.updateGrid(i,n):!e&&O(),V(i),T("mosts",i,t(".wrap-dial").is(":visible")),o.showSiteUrl()}))}return{init:function(){try{a.ntpApis.GetNewTabSyncInfo((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;console.log("GetNewTabSyncInfo",e),h=e,a.Stat.send("1215.1758.gif",{_referer:e}),J(d)}))}catch(e){}if(M(),""==window.name){var n=0;s=setInterval((async function(){if(n++,e){console.log(n);var t=(await G().catch((function(e){return""}))).qt;(n>20||t||n>5&&!d)&&(e=!1,clearInterval(s),Q())}else clearInterval(s)}),200),window.name="isReload"}else"isReload"==window.name&&(e=!1,Q());setTimeout((function(){a.ntpApis.getCurrentURLS((function(e){var n="";e.forEach((function(e){if(e.title){var i=t('<li><img src="chrome://favicon/size/16/'+a.htmlEncode(a.checkUrlProtocol(e.url))+'"><a href="'+a.htmlEncode(a.checkUrlProtocol(e.url))+'">'+a.htmlEncode(e.title)+"</a></li>");n+=i[0].outerHTML}})),t(".url-often ul:last").html(n)}))}),250)},bindEvents:O,wrapResize:_,getMostsData:Q,setUserMosr:Y}}();e.exports=d}).call(this,n(1))},function(e,t,n){"use strict";(function(t){var i=n(2),a="",r=function(){var e={markShow:function(){i.storageTime.timeLine(a+"_show")},markClick:function(e){localStorage.setItem(a+"_click_"+e,"hadClick")},checkClick:function(e){return localStorage.getItem(a+"_click_"+e)}},n=function(e){return this.options=e||{},this.key=this.options.key,this.cid=this.options.cid,this.type=this.options.type,this.href=this.options.href,this.rainRedbag=this.options.rainRedbag,this.fixRedbag=this.options.fixRedbag,this.position=this.options.position,this.initScale=this.options.initScale,this.fixScale=this.options.fixScale,this.duration=this.options.duration,this.delay=this.options.delay,this.container=t(this.options.container),this.refContainer=t("#"+this.cid),this.$dom=null,this.init(),this};n.prototype.constructor=n,n.prototype.init=function(){(1==this.type||this.refContainer[0])&&(e.checkClick(this.cid)||(this.insert(),this.setLog(),this.adjustFixPosition(),this.bindEvt(),1!=this.type&&2!=this.type||(i.storageTime.timeCompare(a+"_show")?(this.initRainAnimation(),this.rain()):this.closeRain())))},n.prototype.buildFragment=function(){var e=1==this.type||2==this.type,t=1==this.type,n=this.fixScale>.7?"big":"small",i=this.cid||"custom";return['<div class="cangbao-item '+this.key+'" id="redbag-'+i+'">',e?'<a target="_blank" class="rain-redbag" href="'+this.href+'">':"",e?'<div class="ani-box"><img src="'+this.rainRedbag+'"></div>':"",e?"</a>":"",t?"":'<a target="_blank" class="fix-redbag pos-'+this.position+" "+n+'" href="'+this.href+'"><span class="sc-close hby-close"></span>',t?"":'<div class="ani-box"><img src="'+this.fixRedbag+'"></div>',t?"":"</a>","</div>"].join("")},n.prototype.insert=function(){var e=this.buildFragment();this.$dom=t(e),this.$dom.appendTo(this.container)},n.prototype.adjustFixPosition=function(){var n=this.$dom.find(".fix-redbag"),a=this.refContainer;switch(this.position){case"left":n.css({padding:"25px 0",left:a.offset().left+"px",top:a.offset().top+"px",transform:"translateX(-100%)"}),n.find("img").css({"transform-origin":"0 0"});break;case"topleft":n.css({"padding-right":"0px",left:a.offset().left-5+"px",top:a.offset().top+"px",transform:"translateY(-100%)"}),n.find("img").css({"transform-origin":"100% 0"});break;case"topright":n.css({"padding-right":"30px",left:a.offset().left+a.width()-100+"px",top:a.offset().top+"px",transform:"translateY(-100%)"}),n.find("img").css({"transform-origin":"100% 0"})}n.find("img").css({transform:"scale("+this.fixScale+") rotate(-35deg)"}),t("#redbag-honghong").find(".fix-redbag img").css({transform:"scale("+this.fixScale+") rotate(35deg)","transform-origin":"20% -2px 0px"});t(".hby-close").off().on("click",(function(n){n.preventDefault(),n.stopPropagation(),"redbag-longlong"==t(this).parents(".cangbao-item").attr("id")?e.markClick("longlong"):e.markClick("honghong"),i.Stat.send("801.150.gif"),t(this).parents(".cangbao-item").hide()}))},n.prototype.computeRainToFix=function(){var e,n,i=this.$dom.find(".rain-redbag"),a=this.$dom.find(".fix-redbag"),r="rainDown"+this.key;"left"==this.position?(e=a.offset().top+7,n=a.offset().left+a.width()):(e=a.offset().top+a.height()+7,n=a.offset().left);var o=["@keyframes "+r+"{","0% {transform: translate(0, 0) scale(1)}","100% {transform: translate(0, "+e+"px) scale(0.2)}","}"].join("");t("#styleSheet").append(o),i[0]&&i.css({left:n+"px","animation-name":r,"animation-delay":this.delay+"s","animation-duration":this.duration+"s"})},n.prototype.initRainAnimation=function(){var e=this.$dom.find(".rain-redbag");this.$dom.find(".fix-redbag");1!=this.type?this.computeRainToFix():e.css({left:this.options.left+"px","animation-name":"rainDown","animation-delay":this.delay+"s","animation-duration":this.duration+"s"})},n.prototype.closeRain=function(){var e=this.$dom.find(".rain-redbag");e&&e.css("animation-play-state","paused").hide(),this.showFix()},n.prototype.bindEvt=function(){var n=this.$dom.find(".fix-redbag"),a=this.$dom.find(".rain-redbag"),r=this;a[0]&&a.on("animationend",(function(){a.addClass("hide"),r.showFix(1e3)})),n[0]&&n.on("click",(function(){n.hide(),i.Stat.send("801.6949.gif"),e.markClick(r.cid)})),t(window).on("scroll",(function(e){if(n[0]){n.offset().top-t(window).scrollY-90<0?n.css("opacity","0"):n.css("opacity","1")}2==r.type&&"none"!=a[0].style.display&&r.computeRainToFix()})),t(window).on("resize",(function(){r.adjustFixPosition()}))},n.prototype.setLog=function(){var e=this.cid||"custom";window.moniter&&moniter.setId(["redbag-"+e])},n.prototype.showFix=function(e){var n=this.$dom.find(".fix-redbag"),i=this.$dom.find(".rain-redbag"),a=function(){n[0]&&n.css("visibility","visible").addClass("show"),i[0]&&i.hide()};e?setTimeout(a,e):a(),t("#cangbao_redbags .close").hide()},n.prototype.rain=function(){var e=this.$dom.find(".rain-redbag");e.find(".ani-box").css({"animation-duration":Math.random()+3.5+"s"}),e.css("visibility","visible").addClass("fly").attr("href",cangbaoRedbagConfig.href),e.on("click",(function(){i.Stat.send("801.4533.gif")}))};var r=function(){var e=t(window).height(),n=['<div class="cangbao_redbags" id="cangbao_redbags">','<div class="redbags-list"></div>',"</div>"].join(""),i=["#cangbao_redbags{","position:absolute;","top:0;","left:0;","width:100%;","z-index:410;","}","#cangbao_redbags .rain-redbag{","visibility:hidden;","position:absolute;","cursor:pointer;","top:-250px;","transform-origin:0 100%;","animation-name: rainDown;","animation-timing-function:linear;","animation-fill-mode:both;","animation-play-state:paused;","}","#cangbao_redbags .rain-redbag.fly .ani-box{","overflow:hidden;","cursor:pointer;","transform: translateX(-10px);","animation: move 3s linear infinite;","}","#cangbao_redbags .rain-redbag img{","cursor:pointer;","transform: translateY(0) scale(0.8);","}","#cangbao_redbags .rain-redbag.fly.hide img{","transition:all 1.3s;","transform: translateY(100%) scale(0.8);","}","@keyframes rainDown {","0% {","transform: translateY(0px);","}","100% {","transform: translateY("+(2*e+350)+"px);","}","}","@keyframes move {","0% {","transform: translateX(-10px);","}","50% {","transform: translateX(10px);","}","100% {","transform: translateX(-10px);","}","}","#cangbao_redbags .rain-redbag.fly{","animation-play-state:running;","}","#cangbao_redbags .fix-redbag{","position:absolute;","visibility:hidden;","overflow:hidden;","cursor:pointer;","}","#cangbao_redbags .fix-redbag.show{","transition:width 1s,height 1s;","}","#cangbao_redbags .fix-redbag.pos-topleft,#cangbao_redbags .fix-redbag.pos-topright{","height:60px;","}","#cangbao_redbags .fix-redbag.pos-left{","width:30px;","}","#cangbao_redbags .fix-redbag.small.pos-topleft,#cangbao_redbags .fix-redbag.small.pos-topright{","height:20px;","}","#cangbao_redbags .fix-redbag.small.pos-left{","width:20px;","}","#cangbao_redbags .fix-redbag.pos-topleft .ani-box,#cangbao_redbags .fix-redbag.pos-topright .ani-box{","transform: translate(0,120%);","}","#cangbao_redbags .fix-redbag.pos-left .ani-box{","transform: translate(120%,0);","}","#cangbao_redbags .fix-redbag.show .ani-box{","transform: translate(0,0);","}","#cangbao_redbags .fix-redbag.show.pos-topleft,#cangbao_redbags .fix-redbag.show.pos-topright {","width:90px;","height:70px;","text-align:right","}","#redbag-honghong .fix-redbag.show.pos-topleft,#redbag-honghong .fix-redbag.show.pos-topright {","width:90px;","height:70px;","text-align:left","}","#cangbao_redbags .fix-redbag.show.pos-topleft:hover .hby-close,#cangbao_redbags .fix-redbag.show.pos-topright:hover .hby-close{","display:block;","}","#cangbao_redbags .fix-redbag.show.pos-topleft:hover img,#cangbao_redbags .fix-redbag.show.pos-topright:hover img{","transition: transform 0.4s;","transform:scale(0.8) rotate(-35deg) translateX(-27px) translateY(-17px) !important","}","#redbag-honghong .fix-redbag.show.pos-topleft:hover img,#redbag-honghong .fix-redbag.show.pos-topright:hover img{","transition: transform 0.4s;","transform:scale(0.8) rotate(35deg) translateX(27px) translateY(-17px) !important","}","#cangbao_redbags .fix-redbag.show.pos-left:hover{","width:55px;","}","#cangbao_redbags .fix-redbag.show.small.pos-topleft:hover,#cangbao_redbags .fix-redbag.show.small.pos-topright:hover{","height:40px;","}","#cangbao_redbags .fix-redbag.show.small.pos-left:hover{","width:40px;","}","#cangbao_redbags .close{","position:fixed;","z-index:20;","width:32px;","height:32px;","top:230px;","right:20px;",'background-image:url("https://se1.360simg.com/t01e2fe9cb22dd63bfd.png");',"background-position:0 0;","}","#cangbao_redbags .close:hover{","background-position:0 -32px;","}"].join("");t("#styleSheet").append(i),t(n).appendTo(t("#doc-view-front")[0])},o=function(){for(var e=cangbaoRedbagConfig.positions,i=cangbaoRedbagConfig.rainRedbag,a=i.length,r=cangbaoRedbagConfig.count,o=7/r,s=[3,2,1,2.7,1.5,0,2.3,1.6],l=0,c=0;c<e.length;c++)e[c].animate&&l++,new n({key:"cangbao_redbag"+c,cid:e[c].cid||"",container:"#cangbao_redbags .redbags-list",type:e[c].animate?2:3,href:cangbaoRedbagConfig.href,rainRedbag:i[c%a],initScale:.8,fixRedbag:cangbaoRedbagConfig.fixRedbag,position:e[c].position||"left",fixScale:e[c].scale||1,duration:(.4*Math.random()+.6)*cangbaoRedbagConfig.duration,delay:o*s[c%s.length]});for(var d=t(t(".rain-redbag")[0]).offset().left+50,u=0;u<r-l;u++){var p=t(window).width()-100,h=parseInt(p/(r-Math.max(l-2,0)));new n({key:"cangbao_rainbag"+u,container:"#cangbao_redbags .redbags-list",type:1,left:d+h,url:cangbaoRedbagConfig.href,rainRedbag:i[u%a],initScale:.5*Math.random()+.5,fixRedbag:cangbaoRedbagConfig.fixRedbag,duration:(.4*Math.random()+.6)*cangbaoRedbagConfig.duration,delay:o*s[u%s.length]}),d+=h}},s=function(){t("#cangbao_redbags").find(".rain-redbag").hover((function(){t(this).css({"animation-play-state":"paused"})}),(function(){t(this).css({"animation-play-state":"running"})}))};return{init:function(n){t("#doc-view-front").html(""),window.cangbaoRedbagConfig=n,a=cangbaoRedbagConfig.storage,i.storageTime.timeCompare(a+"_show")&&(i.Stat.send("801.6258.gif"),localStorage.removeItem("festival_v1_click_honghong"),localStorage.removeItem("festival_v1_click_longlong")),setTimeout((function(){i.storageTime.timeCompare(a+"_show")&&e.markShow()}),0),r(),o(),s()}}}();e.exports=r}).call(this,n(1))},function(e,t){e.exports=function(e){var t,n,i="undefined"!=typeof _encodeHTML?_encodeHTML:(t={"&":"&#38;","<":"&#60;",">":"&#62;",'"':"&#34;","'":"&#39;","/":"&#47;"},n=/&(?!#?\w+;)|<|>|"|'|\//g,function(e){return e?e.toString().replace(n,(function(e){return t[e]||e})):""});return'<div class="'+i(e.class)+'" data-pid="'+i(e.pid)+'"> <a href="'+i(e.url)+'" title="'+i(e.title)+'" data-source="'+i(e.source)+'" data-click="'+i(e.click)+'" target="_blank"> <img src="'+i(e.img)+'" /> <span class="event-tag"></span> </a> <a class="event-close" data-source="'+i(e.source)+'" data-ct="1"></a></div>'}},function(e,t){e.exports=function(e){var t,n,i="undefined"!=typeof _encodeHTML?_encodeHTML:(t={"&":"&#38;","<":"&#60;",">":"&#62;",'"':"&#34;","'":"&#39;","/":"&#47;"},n=/&(?!#?\w+;)|<|>|"|'|\//g,function(e){return e?e.toString().replace(n,(function(e){return t[e]||e})):""}),a='<div class="event-banner" data-pid="'+i(e.pid)+'"><span class="event-close-btn"></span> ',r=e.data;if(r)for(var o,s=-1,l=r.length-1;s<l;)a+=' <a class="event-item" href="'+i((o=r[s+=1]).url)+'" title="'+i(o.title)+'" data-title="'+i(o.title)+'" data-source="'+i(e.source)+'" data-click="'+i(o.click)+'" target="_blank"> <img src="'+i(o.img)+'" /> </a> ';return a+="</div>"}},function(e,t){e.exports=function(e){var t,n,i="undefined"!=typeof _encodeHTML?_encodeHTML:(t={"&":"&#38;","<":"&#60;",">":"&#62;",'"':"&#34;","'":"&#39;","/":"&#47;"},n=/&(?!#?\w+;)|<|>|"|'|\//g,function(e){return e?e.toString().replace(n,(function(e){return t[e]||e})):""}),a='<div class="navGridContent">',r=e;if(r)for(var o,s=-1,l=r.length-1;s<l;)a+='<div class="nav-grid-item cursor" data-href="'+i((o=r[s+=1]).url)+'" data-randomId="'+i(o.randomId)+'" data-bgc="'+i(o.bgc)+'" data-bgw="'+i(o.bgw)+'" data-title="'+i(o.title)+'"><span class="logoBox"><span class="logoBox-span"><img class="logoSpan pic" src="'+i(o.logo)+'" onerror="this.style.display=\'none\'" alt=""><span class="logoSpan defaultSpan alignCenter" style="background-color: '+i(o.bgc)+';">'+i(o.bgw)+'</span></span></span><span class="title inlineBlock cursor alignCenter">'+i(o.title||!o.url)+'</span><span class="navGridSet cursor" data-href="'+i(o.url)+'"></span></div>';return a+='<div class="nav-grid-item cursor nav-grid-item-add"><span class="logoBox"><span class="logoSpan defaultSpan"></span></span><span class="title inlineBlock cursor alignCenter">添加</span></div></div>'}},function(e,t){e.exports=function(e){var t,n,i="undefined"!=typeof _encodeHTML?_encodeHTML:(t={"&":"&#38;","<":"&#60;",">":"&#62;",'"':"&#34;","'":"&#39;","/":"&#47;"},n=/&(?!#?\w+;)|<|>|"|'|\//g,function(e){return e?e.toString().replace(n,(function(e){return t[e]||e})):""});return'<div class="nav-grid-item slideDown cursor" data-randomId="'+i(e.randomId)+'" data-bgc="'+i(e.bgc)+'" data-bgw="'+i(e.bgw)+'" data-href="'+i(e.url)+'" data-title="'+i(e.title)+'"><span class="logoBox"><span class="logoBox-span"><img class="logoSpan pic" src="'+i(e.logo)+'" onerror="this.style.display=\'none\'" alt=""><span class="logoSpan defaultSpan alignCenter" style="background-color: '+i(e.bgc)+';">'+i(e.bgw)+'</span></span></span><span class="title inlineBlock cursor alignCenter">'+i(e.title||!e.url)+'</span><span class="navGridSet cursor" data-href="'+i(e.url)+'"></span></div>'}},function(e,t){e.exports=function(e){var t,n,i="undefined"!=typeof _encodeHTML?_encodeHTML:(t={"&":"&#38;","<":"&#60;",">":"&#62;",'"':"&#34;","'":"&#39;","/":"&#47;"},n=/&(?!#?\w+;)|<|>|"|'|\//g,function(e){return e?e.toString().replace(n,(function(e){return t[e]||e})):""}),a='<div class="content-container"><a class="close"></a><h4>'+i(e.popTitle)+"</h4>";"添加网站"==e.popTitle&&(a+=' <div class="tabs"><span data-title="most" class="active">最常访问</span><span data-title="opened">当前打开</span><span data-title="manual">手动添加</span></div><div class="net-list noData"><div class="noData-tips"><span></span><i></i></div><div class="container"><ul ></ul></div></div>'),a+='<div class="form"><label class="input-area"><p><span class="need">名称</span></p><input class="navGridPopItemTitleInput navGridPopItemInput" placeholder="输入网站名称（最多12个字）" maxlength="12" value="'+i(e.title)+'" required><span class="clear"></span></label><label class="input-area"><p><span class="need">链接</span></p><input class="navGridPopItemUrlInput navGridPopItemInput" placeholder="输入网站链接" value="'+i(e.url)+'" required><span class="clear"></span></label><div class="icon-selection"><p class="icon-p">图标样式选择</p><div style="width: 100%"><div class="img-selection selection"><label class="radio"><input type="radio" value="0"><span>在线图标</span></label><div class="imgBox"><div class="imgContainer"><img src="'+i(e.logo)+'" data-imgsrc="'+i(e.logo)+'" onerror="src=\''+i(e.errorimg)+'\'"><div class="noImg"><i></i><span>暂未获取到当前链接的图标</span></div></div></div></div><div class="color-selection selection"><label class="radio"><input type="radio" value="1"><span>纯色图标</span></label><div class="icon-selected iconSelected">',e.title?a+='<div class="icon" style="background: '+i(e.bgc)+'" data-color='+i(e.bgc)+">"+i(e.title[0])+"</div>":a+='<div class="icon">网</div>',a+='<div class="color-list"><div class="colors">';var r=e.colors;if(r)for(var o,s=-1,l=r.length-1;s<l;)a+="<span data-color="+i(o=r[s+=1])+' style="background: '+i(o)+'"></span>';return a+='</div></div></div></div></div></div><button class="navGridEditPopConfirm disabled">添加</button></div><div class="toast"></div><div class="bottom-logo"></div></div>'}},function(e,t,n){e.exports=n.p+"images/e634d10c.png"},function(e,t){e.exports=function(e){var t,n,i="undefined"!=typeof _encodeHTML?_encodeHTML:(t={"&":"&#38;","<":"&#60;",">":"&#62;",'"':"&#34;","'":"&#39;","/":"&#47;"},n=/&(?!#?\w+;)|<|>|"|'|\//g,function(e){return e?e.toString().replace(n,(function(e){return t[e]||e})):""}),a="",r=e;if(r)for(var o,s=-1,l=r.length-1;s<l;)a+='<span class="dial-grid-cover-ads-item dial-grid-cover-ads-item-'+i((o=r[s+=1]).pos)+'" data-pos="'+i(o.pos)+'"><a href="'+i(o.url)+'" class="cover-ads-item-link" target="_blank"><span class="ads-icon"></span><img src="'+i(o.img)+'" class="cover-ads-img" alt=""><div class="cover-ads-operate"><span class="cover-ads-delete"></span></div></a></span>';return a}},function(e,t){e.exports=function(e){var t,n,i="undefined"!=typeof _encodeHTML?_encodeHTML:(t={"&":"&#38;","<":"&#60;",">":"&#62;",'"':"&#34;","'":"&#39;","/":"&#47;"},n=/&(?!#?\w+;)|<|>|"|'|\//g,function(e){return e?e.toString().replace(n,(function(e){return t[e]||e})):""}),a='<li class="tile '+i(e.drag)+'"> <div class="box '+i(e.snapshot)+'"> <div class="mask"></div> <a> <div class="tile-add"></div> </a> <a class="link '+i(null==e.pinned_type||"1"==e.pinned_type?"pinned":"")+'" href="'+e.url+'" thumbnail_type="'+i(e.thumbnail_type)+'"> <div class="tile-logo"> ';return e.thumbnail_type<=0?a+=' <div class="defaultlogo '+e.defaultlogoBg+'" title="'+e.title+'">'+e.title+"</div> ":a+=' <img src="'+e.logo+'"> ',a+=' <div class="remove" title="删除"></div> <div class="tile-tit" title="'+e.title+'"> <em>'+e.title+'</em> <div class="pin" title="'+i(null==e.pinned_type||"1"==e.pinned_type?"解锁":"锁定")+'"></div> </div> </div> </a> </div></li>'}},function(e,t){e.exports=function(e){return'<li class="tile"> <div class="box empty"> <div class="mask"></div> <a> <div class="tile-add"></div> </a> </div></li>'}},function(e,t,n){"use strict";(function(t){var i=n(2),a=n(13),r=n(5),o=!1,s=n(24),l=/^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z|]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i;function c(e){var t=e.title;l.test(t);var n=t.getFirstLetter(),i=e.url.replace(/\/$/,"").getHashCode()%12+1;return 10==i&&(i=1),n?'<span class="logo-bg default-logo-bg-'+i+'"><i>'+n+"</i></span>":""}var d=function(){var e,a,r=!1,o=[],u=t(".add-url-dlg .custom form .error"),h=n(102);function f(e){t(".add-url-dlg .url-cats a").removeClass("current").filter("[data-cat="+e+"]").addClass("current"),a?g():t(d).on("loaddata",g)}function g(){var n=t(".add-url-dlg .url-cats .current").data("cat"),i=a[n];"mosts"==n&&(i=o),function(n){n=n||[];var i=[];t.each(n,(function(t,n){if(n.title&&n.url){var a,r=n.url;if(r&&"/"==r.substr(-1)&&(r=r.substr(0,r.length-1)),a="mosts"==e?p.mostsShowedMap[r]||p.mostsShowedMap[r+"/"]:p.customsShowedMap[r]||p.customsShowedMap[r+"/"],n.hasOwnProperty("logo_se82")){if(!n.logo_se82)return;n.logo=n.logo_se82||s}n.logo==s&&(n.letterLogo=c(n)),n.added=a,n.errorimg=s,i.push(n)}}));var a=h(i);r&&0==i.length&&(a='<div class="loaderror">无法连接到服务器，请检查网络后<a class="reload">点此重试</a></div>');t(".add-url-dlg .logo-list").html(a)}(i)}function m(){t(".add-url-dlg .logo-list .loaderror").hide(),i.DC.get("https://site.browser.360.cn/csite.php?callback=?",{rn:Date.now(),v:i.api.GetVersion()},(function(e){r=!1,a=e&&e.data,t(d).trigger("loaddata")}),36e5,!0,(function(){r=!0,a={},setTimeout((function(){t(".add-url-dlg .logo-list .loaderror").show()}),200)}))}function v(){t(".add-url-dlg .close").on("click",(function(){d.hide()})),t(".add-url-dlg form").on("submit",(function(e){e.preventDefault();var n=t("#addurl-title").val().trim(),i=t("#addurl-url").val();if(i&&!/^(https?):\/\//i.test(i)&&(i="http://"+i),i=i.replace(/\|/g,"%7c"),!l.test(i))return t("#addurl-url").focus(),void(""!=i&&u.html("网址输入有误，请确认后重试").show());var a=p.addTile(n,i);!0===a?d.hide():u.html(a).show()})),t("#addurl-url").on("input",(function(e){var n=t("#addurl-url").val();n&&!/^(https?):\/\//i.test(n)&&(n="http://"+n),n=n.replace(/\|/g,"%7c"),l.test(n)&&u.hide()})),t(".add-url-dlg .url-cats a").on("click",(function(){f(t(this).data("cat"))})),t(".add-url-dlg").delegate(".logo-list li","click",(function(){t("#addurl-title").val(t(this).data("title")),t("#addurl-url").val(t(this).data("url")),t(this).find("img").length>0?t("#addurl-logo").html('<img src="'+t(this).find("img").attr("src")+'">'):t("#addurl-logo").html(t(this).find(".logo-bg").clone()),t(".add-url-dlg form").submit()})).delegate(".loaderror .reload","click",m),m()}return t(window).on("newpages:firstPageOnLoad",(function(){v()})),{show:function(n){t(".add-url-dlg").is(":hidden")&&p.dontRefreshMostsCount++,e=n;var i=t(".tile.edit").find(".link");i.length>0?(t("#addurl-title").val(i.attr("title")),t("#addurl-url").val(i.attr("href")),i.find("img").length>0?t("#addurl-logo").html('<img src="'+i.find("img").attr("src")+'">'):t("#addurl-logo").html(i.find(".logo-bg").clone())):(t("#addurl-title, #addurl-url").val(""),t("#addurl-logo").html('<img src="'+s+'">')),u.hide(),f("mosts"),t(".add-url-dlg").show(),t(".ntp-body").append('<div class="mask"></div>')},hide:function(){t(".add-url-dlg").is(":hidden")||(p.dontRefreshMostsCount--,t(".ntp-body > .mask").remove(),t(".add-url-dlg").hide(),t(".tile.edit").removeClass("edit"),t(document.body).css({opacity:.99}),setTimeout((function(){t(document.body).css({opacity:1})}),0))},removeMosts:function(e){"mosts"==t(".add-url-dlg .url-cats .current").data("cat")&&t('.add-url-dlg .logo-list li[data-url="'+e+'"], .add-url-dlg .logo-list li[data-url="'+e+'/"]').remove()},reloadChecked:function(){t(".add-url-dlg .logo-list li").each((function(){var n=t(this).data("url");n&&"/"==n.substr(-1)&&(n=n.substr(0,n.length-1)),("mosts"==e?p.mostsShowedMap[n]||p.mostsShowedMap[n+"/"]:p.customsShowedMap[n]||p.customsShowedMap[n+"/"])?t(this).addClass("added"):t(this).removeClass("added")}))},set mostVisitedData(e){o=e},get mostVisitedData(){return o}}}(),u=function(){var e,n=[],r="thumbnail_cache";function o(t){e||(e=i.storage.get(r));var a=Date.now()-e.__update_time,o=a<0||a>1296e5,l=e[t]||e[t+"/"];return l&&!o||n.push(t),l&&l.logo||s}var l,c=[];function u(n){if(c.toString()==n.toString())return clearTimeout(l),void(l=setTimeout((function(){c=[]}),3e3));c=n,i.ntpApis.getSmallThumbnail(n,(function(n){0!=(n=n||[]).length&&(n.forEach((function(e){var n=e[0],a=e[1],o=e[2];if(""!=n&&i.storage.set(r,n,{logo:a,title:o}),""!=a)try{var l=t('.wrap-nav .tile .link[href="'+n+'"] img');0==l.length&&(l=t('.wrap-nav .tile .link[href="'+n.substr(0,n.length-1)+'"] img')),l.length>0?l.attr("src",a):(0==(l=t('.wrap-nav .tile .link[href="'+n+'"] .logo-bg')).length&&(l=t('.wrap-nav .tile .link[href="'+n.substr(0,n.length-1)+'"] .logo-bg')),l.replaceWith('<img src="'+a+'" onerror="src='+s+'">'))}catch(e){}})),a.showSiteUrl(),i.storage.set(r,"__update_time",Date.now()),e=i.storage.get(r),d.mostVisitedData.forEach((function(t){var n=e[t.url]&&e[t.url].logo;n?(t.logo=n,t.letterLogo=""):n=s})))}))}function p(){for(var e=0;e<Math.ceil(n.length/20);e++){u(n.slice(20*e,20*e+20))}n=[]}return{getLogo:o,setLogos:function(e){return e&&e.forEach((function(e){e.url&&(e.logo=o(e.url))})),p(),e},update:p}}(),p=function(){var e=0,o=n(24),l=n(103),p=(n(104),n(105)({errorimg:n(106)})),h={},f={};function g(n,r,d){if("mosts"==n){if(e>0)return;h={}}else f={};var u=t(".dial ul."+n);u.empty();var g=u.children(),m=0;r&&r.every((function(e,t){var a;e.url&&(e.url=i.checkUrlProtocol(e.url)),e.url&&(e.title=i.StringH.subByte(e.title,90),e.errorimg=o,e.logo==s&&(e.letterLogo=c(e)),"360搜索，SO靠谱"==e.title&&(e.title="360搜索"),null!=e.pinned_type&&(e.pinned_type=e.pinned_type.toString()),"mosts"==n?h[e.url]=e:f[e.url]=e,a=l(e).trim(),m++);var r=g.eq(t);return r.length>0?r.find(".link").attr("href")!=e.url&&r.replaceWith(a):u.append(a),m<12})),a.showSiteUrl(),m<12&&0==u.find(".tile-add").length&&u.append(p),u.is(":visible")&&i.ScreenShot.hideAndCapture(n+"-Rendered",!0,!0)}function m(e){if(d.hide(),["mosts","customs"].indexOf(e)<0){try{var n=i.storage.get("sliders"),a=n["page-list"][n.default];e=a&&a.pageId}catch(e){}["mosts","customs"].indexOf(e)<0&&(e="mosts")}t(".dial > ul").hide().filter("."+e).show(),t(".dial-nav > a").removeClass("current").filter('[data-type="'+e+'"]').addClass("current"),i.storage.set("settings","dial-current-show",e)}function v(){var n=t(".dial-menu");t(window).on("resize",(function(){n.hide()})),t(document).delegate(".dial-nav > a","click",(function(){switch(m(t(this).data("type")),t(this).data("type")){case"mosts":i.Stat.send("472.587.gif");break;case"customs":i.Stat.send("472.6958.gif")}})).delegate(".wrap-nav .tile-add","click",(function(){t(".tile.edit").removeClass("edit"),t(this).parent(".tile").addClass("edit"),d.show(t(this).parents("ul").attr("class"))})).delegate(".wrap-nav .tile-add","mousedown",(function(e){e.preventDefault()})).delegate(".dial .tile .link","contextmenu",(function(i){i.preventDefault(),e++;var a=t(this),r=t(".wrap-nav .dial").offset(),o=n.find(".pin-edit");"mosts"==a.parents("ul").attr("class")?o.text(1==a.attr("pinned_type")?"解锁":"锁定"):o.text("编辑"),n.data({target:a}).css({left:i.clientX+t("body").scrollLeft()-1-r.left,top:i.clientY+t("body").scrollTop()-1-r.top}).show()})).delegate("","mousedown",(function(){n.is(":visible")&&(n.hide(),e--)})).delegate(".dial-menu","mousedown",(function(e){e.stopPropagation()})).delegate(".dial-menu li","click",(function(a){var r=n.data("target"),o=r.parents("ul").attr("class");switch(t(this).attr("class")){case"pin-edit":"mosts"==o?w(r,1==r.attr("pinned_type")?0:1):(t(".tile.edit").removeClass("edit"),r.parent(".tile").addClass("edit"),d.show(o));break;case"remove":!function(e){var n=!1,a=!1,r=e.parents("ul").attr("class"),o=e.attr("href"),s=e.parent("li");if("mosts"==r)s.remove(),e.attr("pinned_type"),i.ntpApis.blacklistURLFromMostVisited(o),d.removeMosts(o);else{if(s.hasClass("edit")){a=!0;var l=s.next();l.length>0?l.addClass("edit"):n=!0}s.remove()}var c=t(".dial ul."+r);c.children(".tile").length<12&&0==c.find(".tile-add").length&&(c.append(p),n&&c.find(".tile.add").addClass("edit"));a&&d.show(r)}(r)}n.hide(),e--}))}function w(e,t){e.attr("pinned_type",t)}function b(e){u.setLogos(e),g("mosts",e),d.mostVisitedData=e}function y(){var n,i,a,r,o,s;function l(e){var l,c;o&&(e.preventDefault(),a?(t(a).css({left:e.pageX-o.pageX+o.position.left,top:e.pageY-o.pageY+o.position.top}),i.every((function(t){return!(e.pageX>t.left&&e.pageX<t.right&&e.pageY>t.top&&e.pageY<t.bottom)||(l=t,!1)})),l&&r!=l.drag&&(r=l.drag,o.index<l.index?t(r).after(s):t(r).before(s))):Math.max(Math.abs(o.pageX-e.pageX),Math.abs(o.pageY-e.pageY))>=5&&(a=o.target,n=t(a).parent("ul").attr("class"),c=[],t("."+n+' > li[class="tile"]').each((function(e,n){var i=t(n),a=i.offset();c.push(n.rect={index:e,drag:n,left:a.left,top:a.top,right:a.left+i.outerWidth(),bottom:a.top+i.outerHeight()})})),i=c,o.position=t(a).position(),o.index=t(a).index(),s=t(a).clone().css("visibility","hidden").addClass("drag-holder"),t(a).css({position:"absolute","z-index":1e3,left:e.pageX-o.pageX+o.position.left,top:e.pageY-o.pageY+o.position.top}),t(a).after(s)))}t(document).delegate('.dial li[class="tile"]',"mousedown",(function(n){0===n.button&&!0!==n.altKey&&(e++,(o=n).target=this,t(document).on("mousemove",l))})),t(document).on("mouseup",(function(i){t(document).off("mousemove",l),a&&(t(a).removeAttr("style"),s.after(a),s.remove(),t(a).index()!=o.index&&"mosts"==n&&w(t(a).find(".link"),1)),o&&setTimeout((function(){o=a=null,e--}),0)})),t(document).delegate('.dial li[class="tile"]',"click",(function(e){a&&e.preventDefault()}))}function _(e){b()}return{init:function(){v(),y(),m("mosts"),_(),t("#changeNav").on("click",(function(){t(this).toggleClass("default"),t(this).hasClass("default")?(t("#changeNav").text("体验新版"),i.Stat.send("864.6260.gif"),localStorage.setItem("webui","default-nav"),window.isShowLongStrip?t(".event-pendant").css({top:"-246px"}):t(".event-pendant").css({top:"-131px"})):(i.Stat.send("864.9229.gif"),t("#changeNav").hide(),localStorage.setItem("webui","new-nav"),new r.PageNavigator,window.isShowLongStrip?t(".event-pendant").css({top:"-259px"}):t(".event-pendant").css({top:"-131px"})),_()}))},addTile:function(n,a){a=a.replace(/[^\x00-\xff]+/gi,(function(e){return encodeURI(e)})),console.log("nav-grid.js->addTile");var r={title:i.StringH.subByte(n||a,90),url:a,logo:u.getLogo(a),errorimg:o,pinned_type:1};r.logo==s&&(r.letterLogo=c(r));var p=l(r).trim();u.update();var h=t(".tile.edit"),f=h.parent("ul"),g=f.attr("class");if("mosts"==g){try{var m=!1;if(t(".wrap-nav .mosts .tile a.link").each((function(){var e=this.href;e=e.replace(/\/$/i,"");var n=a;if((n=n.replace(/\/$/i,""))==e)return m=!0,h=t(this).parents(".tile"),!1})),m)return"网站已存在"}catch(e){}e++,setTimeout((function(){e--}),3e3)}if(h.find(".tile-add").length>0)h.before(p),f.children(".tile:not(.empty)").length>12&&h.remove();else{a=h.find(".link").attr("href");h.replaceWith(p)}return"mosts"==g&&setTimeout((function(){i.ntpApis.getMostVisitedData((function(e){u.setLogos(e),d.mostVisitedData=e}))}),0),!0},renderMostsData:b,get mostsShowedMap(){return h},get customsShowedMap(){return f},set dontRefreshMosts(e){e},get dontRefreshMostsCount(){return e},set dontRefreshMostsCount(t){e=t}}}();e.exports={MostVisitedDial:p,trigger:function(){o||(o=!0,p.init())},ThumbnailManager:u}}).call(this,n(1))},function(e,t){e.exports=function(e){var t,n,i="undefined"!=typeof _encodeHTML?_encodeHTML:(t={"&":"&#38;","<":"&#60;",">":"&#62;",'"':"&#34;","'":"&#39;","/":"&#47;"},n=/&(?!#?\w+;)|<|>|"|'|\//g,function(e){return e?e.toString().replace(n,(function(e){return t[e]||e})):""}),a="",r=e;if(r)for(var o,s=-1,l=r.length-1;s<l;)a+='<li class="'+i((o=r[s+=1]).added?"added":"")+'" data-title="'+i(o.title)+'" data-url="'+i(o.url)+'"> ',o.letterLogo?a+=" "+o.letterLogo+" ":a+=' <img src="'+i(o.logo)+'" onerror="src=\''+i(o.errorimg)+"'\"> ",a+=" <p>"+i(o.title)+"</p></li>";return a}},function(e,t){e.exports=function(e){var t,n,i="undefined"!=typeof _encodeHTML?_encodeHTML:(t={"&":"&#38;","<":"&#60;",">":"&#62;",'"':"&#34;","'":"&#39;","/":"&#47;"},n=/&(?!#?\w+;)|<|>|"|'|\//g,function(e){return e?e.toString().replace(n,(function(e){return t[e]||e})):""}),a='<li class="tile"> <a class="link" href="'+i(e.url)+'" pinned_type="'+i(e.pinned_type)+'" title="'+i(e.title)+'"> ';return e.letterLogo?a+=" "+e.letterLogo+" ":a+=' <img src="'+i(e.logo)+'" onerror="src=\''+i(e.errorimg)+"'\"> ",a+=" <p>"+i(e.title)+"</p> </a></li>"}},function(e,t){e.exports=function(e){return'<li class="tile empty"> <a class="link" href=""></a></li>'}},function(e,t){e.exports=function(e){var t,n;return'<li class="tile add"> <a class="tile-add"> <img src="'+("undefined"!=typeof _encodeHTML?_encodeHTML:(t={"&":"&#38;","<":"&#60;",">":"&#62;",'"':"&#34;","'":"&#39;","/":"&#47;"},n=/&(?!#?\w+;)|<|>|"|'|\//g,function(e){return e?e.toString().replace(n,(function(e){return t[e]||e})):""}))(e.errorimg)+'"> </a></li>'}},function(e,t,n){e.exports=n.p+"images/42d87ce9.png"},function(e,t,n){"use strict";(function(t,i){function a(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var r,o,s,l=n(2),c=n(108),d=n(5),u=n(109),p=n(110),h=n(13),f=(n(112),n(113),n(115)),g=((new Date).getTime(),{youlike:0,social:0,fun:0,militery:0,science:0,economy:0,car:0,sport:0,funny:0,estate:0}),m={youlike:0,social:0,fun:0,militery:0,science:0,economy:0,car:0,sport:0,funny:0,estate:0},v={tplNews0:n(118),tplNews1:n(119),tplNews3:n(120),tplAds1:n(121),tplAds2:n(122),tplAds3:n(123),tplAds4:n(124),tplAds5:n(125),tplSwiperContainer:n(126)},w=!0,b={},y={},_="__ajax_news",S={get scrollLine(){var e=t("#search-form-box").hasClass("sticky")?71:0;return t(".news-container").offset().top-e},scrollLock:!1,scrollToNews:!1},x=l.api.GetMID(),k="youlike",C=k,T={errorTimer:null,tipTimer:null,viewLogTimer:null,tabClick:null},I={},D=!0,E=!1,M={isClose:0,interval:5,first:3,tuji:[],specialAdsConfig:[]},A={curScroll:0,curHeight:0,newsPack:0,curRp:1,prePosition:0,renderedNewsCount:0,renderedAdsCount:0,totalCount:0},F={},P=[],L=null,N={},O="gYcLNC",B=[],j=[],H=[{title:"推荐",kuaiKey:"推荐",channel:"youlike",feedChannel:"youlike",isHot:!1},{title:"实时热榜",kuaiKey:"推荐",channel:"hotnews",feedChannel:"youlike",isHot:!1},{title:"国内",kuaiKey:"国内",channel:"domestic",feedChannel:"news",isHot:!1},{title:"娱乐",kuaiKey:"娱乐",channel:"fun",feedChannel:"fun",isHot:!1},{title:"汽车",kuaiKey:"汽车",channel:"car",feedChannel:"car",isHot:!1},{title:"房产",kuaiKey:"房产",channel:"estate",feedChannel:"estate",isHot:!1},{title:"健康",kuaiKey:"健康",channel:"health",feedChannel:"health",isHot:!1},{title:"星座",kuaiKey:"星座",channel:"zodiac",feedChannel:"zodiac",isHot:!1},{title:"科技",kuaiKey:"科技",channel:"science",feedChannel:"science",isHot:!1},{title:"财经",kuaiKey:"财经",channel:"economy",feedChannel:"economy",isHot:!1},{title:"体育",kuaiKey:"体育",channel:"sport",feedChannel:"sport",isHot:!1}],z=[],$={},G=t(".wrap-nav .page-area"),R={_active:!1,activeTimer:null,behaviorTimer:null,focusTime:0,lastBehaviorTime:0,isActive:!1,scrollLogTime:null,set active(e){this._active||(G.off("mouseover mouseout").off("click","a"),clearTimeout(this.activeTimer),this._active=e,this.isActive=!0,this.activeTimer=null,this.focusTime=Date.now(),Q(!0))},get active(){return this._active}},q={},W=0,U=0;function V(e,n,i,a){var o=0;if(w){for(var s=0;s<j.length;s++)j[s]&&j[s].clktk&&""!=j[s].position&&"undefined"!=j[s].position&&(j[s].webui=e[j[s].position].webui||"",e.splice(j[s].position,1,j[s]));var c="",d=b[n.cid]||[];if(o=d.length){for(var u=0;u<d.length;u++)d[u].dataType?c+='<span class="navNewsBigImgItem navNewsBigImgItem_'+u+'">\n\t\t\t\t\t\t\t\t\t\t\t<span class="hotIcon"></span>\n\t\t\t\t\t\t\t\t\t\t\t<img class="img" draggable="false" src="'+d[u].images[0]+'" onerror="src=\''+d[u].errorimg+'\'"/>\n\t\t\t\t\t\t\t\t\t\t\t<div class="desc">'+d[u].title+"</div>\n\t\t\t\t\t\t\t\t\t   </span>":c+='<span class="navNewsBigImgItem navNewBigImg_ads">\n\t\t\t\t\t\t\t\t\t\t\t<span class="ads_tag">广告</span>\n\t\t\t\t\t\t\t\t\t\t\t<img class="img" draggable="false" src="'+d[u].img+'" />\n\t\t\t\t\t\t\t\t\t\t</span>';"hotnews"==n.cid&&(c+='<div class="nav-news-hotwords-container"></div>',setTimeout((function(){X(n.cid)}))),t("#navNewsBigImgContainer-"+n.cid).html(c).addClass("navNewsBigImgContainer-active"),t(".navNewsBigImgItem").unbind().on("click",(function(e){var n=localStorage.getItem("flowMode");"newsflow_a"===n?l.Stat.sendFlow("1579.6171.gif",{_referer:"info"}):"newsflow_b"===n&&l.Stat.sendFlow("1579.7079.gif",{_referer:"info"});var i=t(this).index(),a=b[C]||[],o="";if(i&&t(this).hasClass("navNewBigImg_ads")){l.Stat.send("1359.5167.gif");for(var s=ue(t(this).get(0),e.clientX,e.clientY),c=t(this).get(0).getBoundingClientRect(),d=c.width,u=c.height,p=a[i].curl,h=a[i].clktk,f=0;f<h.length;f++){var g=h[f].replace(/__EVENT_TIME_START__/g,window._timestamp_mousedown).replace(/__EVENT_TIME_END__/g,window._timestamp_mouseup).replace("__OFFSET_X__",s.x).replace("__OFFSET_Y__",s.y).replace("__ADSPACE_W__",parseInt(d)).replace("__ADSPACE_H__",parseInt(u));(new Image).src=decodeURIComponent(g)}o=p.replace(/__EVENT_TIME_START__/g,window._timestamp_mousedown).replace(/__EVENT_TIME_END__/g,window._timestamp_mouseup).replace("__OFFSET_X__",s.x).replace("__OFFSET_Y__",s.y).replace("__ADSPACE_W__",parseInt(d)).replace("__ADSPACE_H__",parseInt(u))}else{var m=a&&a[i]&&a[i].log||"";switch(m&&r.setLog(m,"click"),l.Stat.send("1173.8412.gif"),l.Stat.send("1133.8925.gif"),l.Stat.send("1207.8589.gif",{_referer:C}),ie(2),U){case 1:l.Stat.send("1082.4676.gif",{_referer:"news"});break;case 2:l.Stat.send("1082.7183.gif",{_referer:"news"});break;case 3:l.Stat.send("1082.6254.gif",{_referer:"news"});break;case 4:l.Stat.send("1082.8198.gif",{_referer:"news"});break;case 5:l.Stat.send("1082.1508.gif",{_referer:"news"})}o=a&&a[i]&&a[i].url||""}window.openWin(o,"_blank")})),de()}else t("#navNewsBigImgContainer-"+n.cid).html(c).removeClass("navNewsBigImgContainer-active")}for(var p=t("#news-content-"+n.cid),h=[],f="",y=F[n.cid],_=(n.cid,y.newsPack,0),x="",k=i+(a||0)+o,T=[],D=[],E=[],M=[],A=0;A<e.length;A++)e[A].h&&"t"==e[A].h?(e[A].isTopData=!0,T.push(e[A])):"ads"==e[A].newsType?(E.push(A),M.push(e[A])):D.push(e[A]);t.each(M,(function(e,t){E[e]<D.length&&D.splice(E[e],0,t)})),e=[].concat(T,D);for(var P=0;P<e.length;P++)if(e[P].otherinfo){var L=e[P].otherinfo.attr&&e[P].otherinfo.attr[0]||{};e[P].isReadSeal=!0,e[P].cat=L.content?L.content:e[P].cat,e[P].catPos=L.pos?L.pos:1,e[P].color=L.color&&L.color.length?"#"+L.color:e[P].color}for(;_<e.length;){e[_].adsTag&&_<e.length-1&&e[_+1].webui&&(e[_].webui=e[_+1].webui),"ui_new"==e[_].webui&&("loadMore"==n.type?("loadMore",e[_].timeStamp=_<3?(new Date).getTime():(new Date).getTime()-25e3*_,1!=n.totalTimes&&(e[_].timeStamp=(new Date).getTime()-5e4*m[n.cid])):("refresh",0==g[n.cid]?e[_].timeStamp=_<3?(new Date).getTime():(new Date).getTime()-5e4*_:e[_].timeStamp=(new Date).getTime()),e[_].adsTag&&(e[_].icon||(e[_].iconText=e[_].source.substring(0,1),e[_].bgColor="rgb("+Math.floor(256*Math.random())+","+Math.floor(256*Math.random())+","+Math.floor(256*Math.random())+")")));var O=e[_];switch(O.id="id-"+n.cid+"-"+y.newsPack+_,O.expId=O.rc||q.exp_ids,O.tplType){case"news0":x=v.tplNews0;break;case"news1":case"news3":x=v.tplNews1;break;case"ads1":x=v.tplAds1;break;case"ads2":x=v.tplAds2;break;case"ads3":x=v.tplAds3;break;case"ads4":x=v.tplAds4,N[n.cid].push(O.id);break;case"ads5":x=v.tplAds5;break;case"game":x=v.tplAdsGame;break;case"hj1":x=v.tplHj1;break;case"hj2":x=v.tplHj2,3;break;case"swiperContainer":x=v.tplSwiperContainer;break;default:x=v.tplAds5}h.push(x(e[_])),_++,m[n.cid]++}switch(g[n.cid]++,h.length>0&&(f=h.join("")),n.type){case"refresh":for(var B=t(".news-packet"),H=0;H<B.length;H++){t(B[H]).data("istopdata")&&t(B[H]).hide()}p.prepend(f),""!=f&&k>0?(t(".news-bd-error").hide(),te("为您推荐了"+k+"条新闻","refresh")):(te("暂无更新，请稍后再试！","refresh"),ce(n.cid));break;case"loadMore":p.append(f),""==f?te("暂无更新，请稍后再试！","loadMore"):t(".news-bd-tip").hide()}l.ScreenShot.hideAndCapture("mosts-Rendered",!0),function(e,n){var i=e.length,a=I[n];if(i<1)return;for(;i--;){var r=e[i],o={id:r.id,type:r.newsType};switch(r.newsType){case"ads":o.data={source:r.newsType,title:r.title,url:r.url,type:r.tplType,log:r.imptk,imparg:r.imparg},r.showGif&&(o.data.showGif=r.showGif),r.showGif&&(o.data.clickGif=r.clickGif);break;case"game":o.data=JSON.parse(decodeURIComponent(r.log));break;case"accurate":o.data={uniquid:r.uniquid,interval:r.interval,title:r.title,type:r.tplType,url:r.url};break;case"huajiao":var s=[];r.url?s={title:r.title,url:r.url}:r.data&&t.isArray(r.data)&&r.data.forEach((function(e,t){s.push({title:e.title,url:e.url})})),o.data=s;break;case"bjtime":case"jrbd":case"llq":case"kjj":o.data={source:r.newsType,title:r.title,url:r.url,type:r.tplType,log:r.log,dot:r.dot,rc:r.rc}}o.data&&a.push(o)}}(e,n.cid),Q(),de(),ee(),F[n.cid].curHeight=p.height(),"scrolltonews"!=location.pathname.substr(1)||S.scrollToNews||(t(document).scrollTop(S.scrollLine),S.scrollToNews=!0),y.newsPack++,y.renderedNewsCount+=i,y.totalCount=y.renderedNewsCount+y.renderedAdsCount,w=!1}function X(e){if(t(".nav-news-hotwords-container").html())t(".nav-news-hotwords-container").show();else{var n="#navNewsBigImgContainer-"+e;f.init(n)}}function Y(e){setTimeout((function(){"hotnews"==C&&t(".nav-news-hotwords-container").html()&&l.puvDot({n:7,item_name:"",type:1})}))}function J(e){return t.ajax({url:e.url,type:"get",dataType:"jsonp",jsonp:e.jsonp||"callback",data:e.d||{},jsonpCallback:e.jsonpCallback,timeout:e.timeout||3e4,success:function(t){e.success(t)},error:function(t){e.fail&&e.fail()},complete:function(t,n){e.complete&&e.complete()}})}function K(e,t,n){var i=F[k],a=i.renderedAccurateCount||0,r=i.totalCount+a,o=(P.length,0);if(e&&(L={data:e,req:t,count:n}),E&&!D){for(var s=0;s<P.length;s++){var l=P[s],c="1"==l.rule?0:1;l.position-r<=L.data.length&&(2==l.news_type&&o++,L.data.splice(l.position-r-1,c,P.splice(s--,1)[0]),a++)}i.renderedAccurateCount=a,V(L.data,L.req,L.count,o)}}function Q(e){if("nav"==window.mode){for(var n=window.innerHeight,i=$[C]||[],s=e?i:I[C],c=s.length,u=[],p=l.storage.get(_),h=Date.now(),f=p.accurate||{};c--;){var g,m=s[c],v=t("#"+m.id),w=0;if(0!=v.length){if(g=v[0].getBoundingClientRect(),"ads"!=m.type&&(w=g.height),g.top+w<n){var b=null,y=null;if(!m.realShowed){switch(m.type){case"game":var S=m.data;S.setp_id=1,b=(void 0).setLog,y=[S];break;case"ads":u.push(m.data.imparg),b=d.MV.setLog,y=[m.data.log],m.data.showGif&&l.Stat.send(m.data.showGif);break;case"accurate":f[m.data.uniquid]={expire:60*m.data.interval*60*1e3+h},b=l.Stat.send,y=["599.4454.gif",{_referer:m.data.uniquid}],l.storage.set(_,"accurate",f)}R.active&&(m.realShowed=!0)}if(!e&&b&&b.apply(void 0,a(y)),"jrbd"!=m.type){var x=s.splice(c,1);R.active||i.push(x[0])}else!function(){var e=null,n=m,a=0,o=[];e=setInterval((function(){a+=100;var c=Z(n);if(c&&a>=2e3){if(n.data.log&&!n.isKuaiDoted){o.push(n.data.log),n.isKuaiDoted=!0,l.Stat.send("1173.5629.gif"),l.Stat.send("1207.4114.gif");var d=t("#"+n.id).length&&t("#"+n.id).data("isfollowed");d&&1==d||l.Stat.send("1217.6548.gif")}o.length>0&&r.setLog(o,"show",n.data.title);for(var u=0;u<s.length;u++)if(s[u].id==n.id){var p=s.splice(u,1);R.active||i.push(p[0])}n={},c=null,clearInterval(e),e=null}c||(n={},c=null,clearInterval(e),e=null)}),100)}();if(!m.AlreadyShowed){switch(U){case 1:l.Stat.send("1082.9503.gif",{_referer:"ads"==m.type?"ads":"news"});break;case 2:l.Stat.send("1082.4800.gif",{_referer:"ads"==m.type?"ads":"news"});break;case 3:l.Stat.send("1082.3662.gif",{_referer:"ads"==m.type?"ads":"news"});break;case 4:l.Stat.send("1082.2780.gif",{_referer:"ads"==m.type?"ads":"news"});break;case 5:l.Stat.send("1082.5650.gif",{_referer:"ads"==m.type?"ads":"news"})}"ads"==m.type&&l.Stat.send("1173.7731.gif"),m.AlreadyShowed=!0}}}else s.splice(c,1)}e||(u.length>0&&o.sendImpargs(u),$[C]=i)}}function Z(e){var n,i=window.innerHeight,a=e,r=t("#"+a.id),o=0;return 0!=r.length&&(n=r[0].getBoundingClientRect(),"ads"!=a.type&&(o=n.height),n.top+o<i&&n.top>0)}function ee(){for(var e=N[C],n=window.innerHeight,i=e&&e.length||0;i-- >0;){var a=t("#"+e[i]).find(".ads4-video")[0];if(a){var r=a.getBoundingClientRect();r.top+r.height/2>0&&r.top+r.height/2<n?a.play():a.pause()}else e.splice(i,1)}}function te(e,n){if(D&&t(".news-content-active").children().length>0)t(".news-loading-wrapper").hide();else{var i="news-bd-error",a=void 0;if(t("."+i).length<1){var r=document.createElement("DIV");r.className=i,t(".news-tip-wrapper").prepend(r),a=t(r).empty().append(e)}else a=t("."+i).empty().append(e);t(".news-loading-wrapper").hide(),t(a).show(),T.errorTimer&&clearTimeout(T.errorTimer),T.errorTimer=setTimeout((function(){clearTimeout(T.errorTimer),t("."+i).slideUp("fast",(function(){Q(),de()}))}),2e3)}}function ne(e){D&&(t("#page-news").hide(),t(".news-nav-wrapper").hide(),t(".news-bd-wrapper").hide(),t(".news-refresh-top-container").hide(),t(".net-error").show())}function ie(e){var n={s:25,n:13,item_id:e||1,item_name:t(".news-nav-common").find(".nav-common-item.news-active").data("title")||""};l.puvDot(n)}function ae(){var e=t(".news-bd-wrapper");t(window).on("resize",i.debounce((function(){"nav"==window.mode&&t(document).trigger("scroll")}),500)),t(document).on("scroll",(function(e){if("nav"==window.mode&&null!=t(this)){R.lastBehaviorTime=Date.now();var n=t(this),i=t("html").height(),a=(t("html").width(),n.height()),r=(n.width(),n.scrollTop()),o=(n.scrollLeft(),F[C]);r>S.scrollLine+300?t(".news-refresh-top-container").show():t(".news-refresh-top-container").hide(),o.curScroll<r&&(R.active=!0,R.lastBehaviorTime-R.scrollLogTime>=3e3&&(R.scrollLogTime=R.lastBehaviorTime));var s=t("#news-content-"+C).find(".navNewsNoData").length;if(!S.scrollLock&&!s&&(a<=i||a-i-r<=100)&&o.curScroll<r&&!D){var l=t(".news-active").data("c");if(null==l)return;le({cid:l,type:"loadMore",action:2})}!T.viewLogTimer&&o.curScroll<r&&(T.viewLogTimer=setTimeout((function(){Q(),de(),T.viewLogTimer=!1}),500)),ee(),o.curScroll=r}})),t(".news-nav-common").delegate("li","click",(function(e){var n=t(this),i=n.data("c");t("#news-content-"+i);t(".news-bd-error").hide(),t(this).find(".nav-common-item-hotSign").removeClass("show"),i==C?(le({cid:i,type:"refresh",action:4}),w=!0,t(document).scrollTop()>=S.scrollLine&&t(document).scrollTop(F[i].curScroll=S.scrollLine)):(t(".nav-common-item").removeClass("news-active"),n.addClass("news-active"),function(e){console.log("output->23333",e);var n=t("#news-content-"+e);n.length&&n.children().length&&!n.find(".navNewsNoData").length?(t(".news-content-active").removeClass("news-content-active"),n.addClass("news-content-active"),t(".navNewsBigImgContainer-active").removeClass("navNewsBigImgContainer-active"),t("#navNewsBigImgContainer-"+e).addClass("navNewsBigImgContainer-active"),X(e)):(le({cid:e,type:"refresh",action:4}),w=!0,t(document).scrollTop()>=S.scrollLine&&t(document).scrollTop(F[e].curScroll=S.scrollLine)),ie(1),Y()}(i),C=i),l.Stat.send("1207.9291.gif",{_referer:C})}));var a=JSON.parse(localStorage.getItem("newpagesConfig"))||{};function o(){R.active&&(R.focusTime=Date.now()),clearInterval(R.behaviorTimer),R.behaviorTimer=setInterval((function(){R.active&&Date.now()-R.lastBehaviorTime>=3e4&&(clearInterval(R.behaviorTimer),R.isActive=!1,R.lastBehaviorTime,R.focusTime)}),1e3)}e.delegate(".news-link","click",(async function(e){e.preventDefault();var n=t(this),i=n.data("tpl"),o=n.data("source"),s=n.data("log")||"",c=null,u=null;n.parents(".news-packet");if("game"==o){var p=JSON.parse(decodeURIComponent(s));p.setp_id=2,(void 0).setLog(p)}else"bjtime"==o?(l.Stat.send("472.9029.gif"),s&&BTime.setLog([s],"click")):"jrbd"==o&&s&&r.setLog(s,"click");if(n.addClass("news-visited"),"ads"==o){var h=n.data("clktk"),f=ue(n.parents(".news-packet").get(0),e.clientX,e.clientY),g={};g.width=n.parents(".news-packet").width(),g.height=n.parents(".news-packet").height();var m=t(this).attr("href"),v=e.target.className.toString()||"";switch(n.data("video")&&v.indexOf("news-link")>-1?console.log("点击视频触发，不手动跳转和触发点击打点"):(d.MV.setLog(h,f,g),d.MV.openUrl(m,f,g)),i){case"ads1":c="688.9239.gif",u="1207.5117.gif";break;case"ads2":c="688.7503.gif",u="1207.6006.gif";break;case"ads3":c="688.2495.gif",u="1207.6006.gif";break;case"ads4":c="688.8964.gif",u="1207.6006.gif"}c&&l.Stat.send(c),u&&l.Stat.send(u,{_referer:C}),n.data("clickgif")&&l.Stat.send(n.data("clickgif")),l.Stat.send("1173.5357.gif")}else{window.openWin(t(this).attr("href")),l.Stat.send("1173.8412.gif"),l.Stat.send("1207.8589.gif",{_referer:C}),ie(2);var w=a.new_sug_recmd,b=w.display,y=w.reopen_day,_=void 0===y?7:y,S=localStorage.getItem("not_new_recmd_date")||"2023/6/1",k=Math.floor((new Date-new Date(S))/864e5)>=_;console.log("是否符合新闻推荐条件====",b&&k,b,k),b&&k&&(t(this).parents(".packet-news1").siblings(".new_guide_like_wrap").remove(),async function(e){var n=e.data(),i=n.title,a=n.gnid;t.ajax({url:"https://api.ssl.so.com/kuaizixun_news_recommend",method:"GET",dataType:"jsonp",data:{gnid:a,title:i,src:"360se_newfeed_inline",mid:x},success:function(t){if(t.result.length){var n='<div class=\'new_guide_like_wrap\'>\n\t\t\t\t\t\t\t\t\t\t<div class="main">\n\t\t\t\t\t\t\t\t\t\t\t<p class="guide_like_t">猜您喜欢：</p>';t.result.forEach((function(e,i){n+='<a href="https://www.so.com/s?q='+decodeURI(e.query)+"&src=360se_newfeed_inline&nlpv="+t.nlpv+"&ssid="+t.ssid+(window._SearchChannel?"&ls="+window._SearchChannel:"")+'" class="tag" target="_block">'+e.query+"</a>"})),n+='</div> \n\t\t\t\t\t\t\t\t\t\t<div class="close_wrap">\n\t\t\t\t\t\t\t\t\t\t\t<p class="close_guide">\n\t\t\t\t\t\t\t\t\t\t\t\t<b class="not_remond_btn">减少此类推送</b>\n\t\t\t\t\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</div>',e.parents(".packet-news1").after(n),l.Stat.send("1495.1900.gif")}}})}(t(this)))}switch(U){case 1:l.Stat.send("1082.4676.gif",{_referer:"ads"==o?"ads":"news"});break;case 2:l.Stat.send("1082.7183.gif",{_referer:"ads"==o?"ads":"news"});break;case 3:l.Stat.send("1082.6254.gif",{_referer:"ads"==o?"ads":"news"});break;case 4:l.Stat.send("1082.8198.gif",{_referer:"ads"==o?"ads":"news"});break;case 5:l.Stat.send("1082.1508.gif",{_referer:"ads"==o?"ads":"news"})}})).delegate(".news-dislike","click",(function(e){e.preventDefault(),e.stopPropagation();var n=t(e.target).attr("class");if(n.indexOf("news-dislike")>-1||n.indexOf("dislike-pop-wrap")>-1)t(this).find(".dislike-pop-wrap").toggleClass("show");else{var i=t(this),a=1,o=null,s=null,c=i.parents(".news-packet"),u=c.data("source"),p=i.data("tpl"),h=null,f=i.data("log");if(c.slideUp(this.remove),Q(),de(),ee(),"dislike-cutdown"==n?a=1:"ads-dislike-item"==n&&(a=e.target.dataset.dislkrid,o=e.target.dataset.disliketext,s=e.target.dataset.dislikerefer),"ads"==u){switch(d.MV.setDislike2(i.data("clstk"),a,o),l.Stat.send("1076.1151.gif",{_referer:s}),p){case"ads1":h="688.499.gif";break;case"ads2":h="688.769.gif";break;case"ads3":h="688.8493.gif";break;case"ads4":h="688.2840.gif"}h&&l.Stat.send(h)}else"bjtime"==u?f&&r.setDislike&&r.setDislike(f,source):"jrbd"==u&&f&&r.setLog(f,"dislike");t(this).find(".dislike-pop-wrap").removeClass("show")}})).delegate(".tag","click",(function(e){l.Stat.send("1495.2028.gif")})).delegate(".close_guide","click",(function(e){e.preventDefault(),e.stopPropagation(),t(this).toggleClass("show")})).delegate(".not_remond_btn","click",(function(e){e.preventDefault(),e.stopPropagation(),t(this).parents(".new_guide_like_wrap").slideUp(300,(function(){t(this).remove();var e=new Date;localStorage.setItem("not_new_recmd_date",e.toLocaleDateString()),l.Stat.send("1495.5890.gif")}))})).delegate(".news4-refresh","click",(function(e){e.preventDefault();var i=t(this).parents(".news-packet"),a=i.children(".news4-bd"),o=i.data("hwid"),s=n(127),l=r.getRandomHotWords(C,o);a.empty().append(s({data:l}))})).delegate(".ads4-sound","click",(function(e){var n=t(this),i=n.parent().find(".ads4-video")[0];n.toggleClass("open"),i.muted=!i.muted})).delegate(".zmtPic , .zmtName","click",(function(e){var n=t(this).data("zmt").id||"";n&&(e.stopPropagation(),e.preventDefault(),window.openWin("https://www.360kuai.com/pc/zmt?id="+n+"&sign=360_79aabe15","_blank"))})).delegate(".follow, .followed","click",(function(e){e.stopPropagation(),e.preventDefault();var n=null,i=t(this).data("zmt");if(t(this).hasClass("follow")){for(var a=t(".follow").length,r=0;r<a;r++){var o=t(".follow").eq(r).data("zmt");i&&o&&i.name==o.name&&(t(".follow").eq(r).removeClass("followshow").parent().find(".followed").addClass("followshow"),t(".follow").eq(r).parents(".news-packet").data("isfollowed",1),setTimeout((function(e){t(".follow").eq(e).parent().find(".followed").addClass("followHide").removeClass("followshow")}),200,r),t(".nav-common-item-myFollowed .nav-common-item-hotSign").addClass("show"))}n=1,l.Stat.send("1217.4938.gif");var c=t(this).data("zmt"),d=Object.assign({},c);d.do=n,d.sign="360_79aabe15",d.scene="18007",d.refer_scene="18007",s.follow(d)}})),t(document).click((function(e){t(".dislike-pop-wrap").removeClass("show"),t(".close_guide").removeClass("show")})),t(".news-refresh").on("click",(function(e){w=!0,l.Stat.send("472.8227.gif"),le({cid:C,type:"refresh",action:3}),t(document).scrollTop(S.scrollLine)})),t(".news-top").on("click",(function(e){l.Stat.send("472.7285.gif"),t("html, body").animate({scrollTop:0},200)})),t(".net-error-refresh").on("click",(function(e){e.preventDefault(),location=location})),G.on("mouseover",(function(e){R.activeTimer=setTimeout((function(){R.active=!0}),1e3)})).on("mouseout",(function(e){clearTimeout(R.activeTimer)})).on("click","a",(function(){R.active=!0})),t(window).on("focus",(function(){o()})).on("blur",(function(e){clearInterval(R.behaviorTimer),R.active&&R.focusTime>0&&(Date.now(),R.focusTime)})),t(document).on("mousedown mousemove keydown",(function(e){R.lastBehaviorTime=Date.now(),"mousedown"==e.type||e.type,!R.isActive&&R.active&&(o(),R.isActive=!0)}))}function re(){var e=l.storage.get(_),n=(e.nav,e.news,e.adsConfig||{}),i=e.version,a=(new Date).Format("yyyyMMdd"),r=JSON.parse(localStorage.getItem("newpagesConfig"))||{},o=r.ads_feed||{},s=r.ads_event||{},c=r.ads_showcase||{},d=r.ads_transform||{},u=r.nav_news_swiper||{},p=r.nav_news_hotwords||{};!function(e){var n=e,i=[],a="";if("[object String]"==Object.prototype.toString.call(e))try{n=JSON.parse(e)||e}catch(e){return}(i=n).splice(1,0,{title:"关注",kuaiKey:"关注",channel:"myFollowed",feedChannel:"myFollowed",isHot:!1}),i.length,a+='<div class="nav-common-title"></div>';for(var r=0;r<i.length;r++){var o="";i[r].channel==k&&(o=" news-active");var s="";i[r].isHot&&(s="show");var l='<span class="nav-common-item-hotSign '+s+'"></span>';a+='<li class="nav-common-item '+o+" nav-common-item-"+i[r].channel+'" data-c="'+i[r].channel+'" data-feedc="'+i[r].feedChannel+'" data-title="'+i[r].title+'">\n\t\t\t\t\t\t\t<span class="nav-common-item-title">'+i[r].title+l+"</span>\n\t\t\t\t\t\t </li>"}t(".news-nav-common").empty().append(a)}(z=o&&o.feed_list_nav&&o.feed_list_nav.normalData||H);var h=!1;n&&n.data&&i==VERSION&&(M=n.data,oe(),ie(1),Y(),h=!0);var f=x.slice(-2);f=parseInt(f,16),f=Math.ceil(f/255*100);for(var g=o.ads_interval_config||[],m=[],v=[],w=0;w<g.length;w++)Number(g[w].percent)&&(m.push(g[w]),v.push(Number(g[w].percent)));var b=0,y=0;for(w=0;w<v.length;w++){if(f>y&&f<=v[w]+y){b=w+1;break}y+=v[w]}U=b,0==b?(M.first=o.first_position,M.interval=o.interval_count):(console.log(m[b-1]),M.first=m[b-1].first_position,M.interval=m[b-1].interval_count),M.specialAdsConfig=o.specialAdsConfig||[],M.isClose=!o.open,M.openEvent=s.open,M.mvStyle=d,M.showcaseRatio=c.percent,M.swiperState=u.open,M.hotwordsPercent=p.percent,n.date=a,n.timestamp=Date.now(),n.data=M,l.storage.set(_,"adsConfig",n),l.storage.set(_,"version",VERSION),h||(oe(),ie(1),Y())}function oe(){le({cid:k,type:"loadMore",action:5}),J({url:"https://popup.browser.360.cn/popup/info",d:{ver:l.api.GetVersion(),channel:1,mid:x},jsonp:"cb",success:function(e){var n,i,a,r;0==e.errno&&e.data&&e.data.length&&(n=e.data,i=l.storage.get(_),a=Date.now(),r=i.accurate||{},t.each(r,(function(e,t){t.expire<a&&delete r[e]})),t.each(n,(function(e,t){r[t.uniquid]||(t.newsType="accurate",t.tplType="news"+t.images.length,t.images.length>3?(t.tplType="news3",t.images.splice(4)):3==t.images.length?(t.tplType="news3",t.moreImg=!0):t.images.length>=1?(t.tplType="news1",t.images.splice(1)):(t.tplType="news0",t.images=[]),1==t.news_type&&(t.adsTag=!0),t.time=new Date(t.time).Format("MM-dd hh:mm"),P.push(t))})),P=l.quickSort(P,"position",!0),l.storage.set(_,"accurate",r))},complete:function(){E=!0,K()}}),h.init(M.openEvent),p.init(M.showcaseRatio)}function se(e){var t,n,i,a=function(e,t,n){var i=F[t.cid],a=e.length,r=n.first,o=0;"loadMore"==t.type&&(i.renderedNewsCount>n.first?r=n.interval>i.prePosition?n.interval-i.prePosition:0:i.renderedNewsCount<=n.first&&(r=n.first-i.renderedNewsCount));var s=(a-r)/n.interval;return s>(o=Math.floor(s))&&o++,o}(new Array(10),e,M),r=F[e.cid],s=(t={impct:3,reqtimes:r.newsPack+1,showid:O},i=a,(n="impct")in t?Object.defineProperty(t,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[n]=i,t);return o.getAdsData(s)}function le(e){if(!S.scrollLock){var n;S.scrollLock=!0,(e=e||{}).cid=e.cid||k,e.type=e.type||"loadMore",e.totalTimes=++W,function(e){var n=t("#news-content-"+e);if(n.length<1||!F[e]){(n=t("<ul/>")).attr("id","news-content-"+e),n.attr("data-c",e),n.attr("data-pid","channel_"+e),n.addClass("news-content-wrapper"),t(".news-bd-wrapper").append(n);var i='<div class="navNewsBigImgContainer" id="navNewsBigImgContainer-'+e+'" data-c="'+e+'" data-pid="channel_'+e+'"></div>';t(".news-bd-wrapper .news-tip-wrapper").after(i),t(".navNewsBigImgContainer-active").removeClass("navNewsBigImgContainer-active"),F[e]=t.extend({},A),N[e]=[],I[e]=[]}else{t(".navNewsBigImgContainer-active").removeClass("navNewsBigImgContainer-active"),n.find(".navNewsNoData").length||t("#navNewsBigImgContainer-"+e).addClass("navNewsBigImgContainer-active")}t(".news-content-active").removeClass("news-content-active"),n.addClass("news-content-active")}(e.cid),"refresh"==e.type&&(t(".news-bd-error").hide(),t(".news-loading-wrapper").show(),e.page="0"),t("#news-content-"+e.cid).find(".navNewsBigImgContainer").removeClass("navNewsBigImgContainer-active"),t("#news-content-"+e.cid).find(".navNewsNoData").remove();for(var i=Object.assign({},e),a=0;a<z.length;a++)if(z[a].channel==i.cid){i.cid=z[a].feedChannel;break}var c=void 0;c="myFollowed"==e.cid?s.getFollowListData(i):r.getContentData(i);var u=new Promise((function(e,t){c.done((function(t){e(t)})).fail((function(e,n){t(n)}))})).catch((function(t){if(5==e.action){var i=l.storage.get(_)["feed_cache_cat_"+e.cid];i?n=i:ne()}})),p=new Promise((function(t,n){se(e).done((function(e){t(e)})).fail((function(e,t){n(t)}))})).catch((function(e){})),h=[u];if("0"==M.isClose&&"huajiao"!=e.cid&&h.push(p),w){var f=[];if(M.specialAdsConfig&&M.specialAdsConfig.length){f=M.specialAdsConfig;for(var g=0;g<f.length;g++)f[g].showid&&(B[g]=new Promise((function(e,t){new d.MV({data:{mid:x,showid:f[g].showid,impct:f[g].impct}}).getAdsData().done((function(t){e(t)})).fail((function(e,n){t(n)}))})).catch((function(e){})));h=h.concat(B)}}Promise.all(h).then((async function(i){S.scrollLock=!1;var a=i||[],c=a[0]&&a[0]||{},d=a[1]&&a[1]||{};w&&(j=a.slice(2)||[]);var u,p=n;if(c&&(0==(u=c).code&&u.data&&u.data.options&&(t.extend(q,u.data.options),q.hasOptions=!0,q.ui_id&&"ui_default"!=q.ui_id&&G.addClass(q.ui_id),q.showid&&"showid_default"!=q.showid&&(O=q.showid)),(p="myFollowed"==e.cid?s.filterFollowListData(c,e):r.filterContentData(c,e)).length>0?l.storage.set(_,"feed_cache_cat_"+e.cid,p):5==e.action&&(p=l.storage.get(_)["feed_cache_cat_"+e.cid])),p&&p.length>0){if(w){for(var h=[],g={},m=0;m<j.length;m++){var v=o.filterAdsData(j[m]);if(f[m].showid){var C=f[m];g[m]={},g[m].data=v,g[m].conf=C}}for(var T in g)for(var I=0;I<g[T].data.length;I++){var E=g[T].conf;g[T].data[I].showid=E.showid,g[T].data[I].position=E.positions[I]+"",g[T].data[I].tplType=E.tplTypes[I]||"ads1",g[T].data[I].showGif=E.showGifs[I]||"",g[T].data[I].clickGif=E.clickGifs[I]||"",h.push(g[T].data[I])}j=h;var A={};"youlike"==e.cid&&(A=await new Promise((function(e,t){J({url:"https://show-g.mediav.com/s",d:{of:4,newf:1,type:1,showid:"oxHEuI",reqtimes:1,jqhm:1,scheme:"https",impct:1,uid:x,refurl:"newtab",mid:x},jsonp:"jsonp",success:function(t){console.log(8888,t),e(t)},fail:function(t){console.log("信息流广告报错"),e({})}})}))),b[e.cid]=[],y[e.cid]=null;for(var P=0;P<p.length&&b[e.cid].length<2;P++)p[P].images&&p[P].images.length&&(1==P&&Object.keys(A).length?b[e.cid].push(A.ads[0]):(b[e.cid].push(p[P]),p.splice(P,1)))}var L=o.filterAdsData(d||{},M.mvStyle),N=function(e,t){var n,i=F[e.cid];return"refresh"==e.type?n=t.first:"loadMore"==e.type&&(i.renderedNewsCount>t.first?n=t.interval>i.prePosition?t.interval-i.prePosition:0:i.renderedNewsCount<=t.first&&(n=t.first-i.renderedNewsCount)),n}(e,M),B=M.interval;!function(e,n,i,a,r){var o=e.length,s=F[i.cid],l=[],c=0,d=0,u=[];if(a>=o&&n.length<1)l=e,s.prePosition=e.length+s.prePosition;else{for(var p=0;p<o;p++)(a==p||(p-a)%r==0&&p>a)&&n[c]&&(l.push(n[c++]),d=p),l.push(e[p]),u.push(e[p].s_log);0!=t("#news-content-"+i.cid).children().length&&"loadMore"!=i.type||(s.prePosition=o-d,s.renderedAdsCount+=n.length)}D&&(D=!1),i.cid==k?K(l,i,o):V(l,i,o)}(p,L,e,N,B)}else te("暂无更新，请稍后再试！",e.type),"refresh"==e.type&&ce(e.cid),ne()}),(function(e){S.scrollLock=!1}))}}function ce(e){t("#news-content-"+e).find(".navNewsBigImgContainer").removeClass("navNewsBigImgContainer-active"),t("#news-content-"+e).html('<p class="navNewsNoData">暂无数据</p>')}function de(){if(!y[C]){var e=b[C]||[];if(e.length){var n,i=t("#navNewsBigImgContainer-"+C).find(".navNewsBigImgItem_0");if(i.length){n=i[0].getBoundingClientRect();var a=window.innerHeight;if(n.top+10<a){clearTimeout(o);var o=null;o=setTimeout((function(){e[1].imptk&&(e[1].imptk&&console.log("output->商业化广告展现"),e[1].imptk&&l.Stat.send("1359.2623.gif"),e[1].imptk&&l.Stat.setLog(e[1].imptk),delete e[1].imptk)}),100)}if(n.top+n.height<a){var s=null,c=0;s=setInterval((function(){c+=100;var n=function(){var e,n=t("#navNewsBigImgContainer-"+C).find(".navNewsBigImgItem_0");if(!n.length)return!1;e=n[0].getBoundingClientRect();var i=window.innerHeight;return e.top+e.height<i&&e.top>0}();if(n&&c>=2e3){if(!y[C]){for(var i=[],a=0;a<e.length;a++)e[a]&&e[a].log&&e[a].dataType&&(i.push(e[a].log),l.Stat.send("1173.5629.gif"),l.Stat.send("1207.4114.gif"));i&&r.setLog(i,"show"),y[C]=!0}n=null,clearInterval(s),s=null}n||(n=null,clearInterval(s),s=null)}),100)}}}}}function ue(e,t,n){var i=e.getBoundingClientRect();return{x:parseInt(t-i.left),y:parseInt(n-i.top)}}e.exports={init:function(){var e=l.api.GetVersion(),n=window.VERSION;l.isNewer(e,"9.2")&&l.isNewer("10.0",e)&&(O="c93JyA"),r=new c({content:{url:"https://mini.browser.360.cn/feed/list",data:{mid:x,v:1.1,scene:"newtab_feed",jrbd_scene:18007,city_code:"",cv:e,fv:n,rf_cnt:"",crec:1==localStorage.getItem("isShowpersonalNews")?1:0}},commonLogParams:{uid:x,sign:"360_79aabe15",scene:18007,version:e}}),s=new u({sign:"360_79aabe15"}),o=new d.MV({data:{mid:x,showid:O}}),C=k=r.defaultCid,I[k]=[],F[k]=t.extend({},A),"news"!=location.pathname.substr(1)&&(re(),ae(),window.onbeforeunload=function(){window.scrollTo(0,t(document).scrollTop()>=S.scrollLine?S.scrollLine:0)})}}}).call(this,n(1),n(34))},function(e,t,n){"use strict";(function(t){var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}();var a=n(2),r=n(12),o=[n(25),n(26),n(27),n(28),n(29),n(30)],s=o.length,l=0,c=function(){function e(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options={nav:{url:"https://papi.look.360.cn/mlist",data:{},count:10,exclude:[]},content:{url:"https://papi.look.360.cn/mlist",data:{page_size:10}},commonLogParams:{uid:"",sign:"360_79aabe15",market:"newpages",version:"",device:"2",net:5,stype:"portal",t:"",channel:"",sqid:1,scene:"18001",sub_scene:"1",refer_scene:"",refer_subscene:"",sid:"",where:"list"},show:{url:"https://news.qhstatic.com/srv/c2",data:{act:"real_show",func:"pc_news_realshow"}},click:{url:"https://api.look.360.cn/srv/c",data:{act:"click"}},dislike:{url:"https://api.look.360.cn/srv/c2",data:{act:"click",func:"dislike"}}},this.defaultCid="youlike",this.defaultChannelParams={requireTimes:0},this.channelParams={},t.extend(!0,this.options,n),this.channelParams[this.defaultCid]=t.extend(!0,{},this.defaultChannelParams),t.extend(!0,this.options.show.data,this.options.commonLogParams),t.extend(!0,this.options.click.data,this.options.commonLogParams),t.extend(!0,this.options.dislike.data,this.options.commonLogParams)}return i(e,[{key:"getNavData",value:function(){return t.ajax({url:this.options.nav.url,type:"get",dataType:"jsonp",jsonp:"cb",data:this.options.nav.data})}},{key:"filterNavData",value:function(e){var t=[],n=this.options.nav;return 0==e.code&&e.data?((e=e.data||[]).forEach((function(e,i){var a=Object.keys(e)[0],r=e[a];n.exclude.indexOf(a)<0&&t.push({cid:a,cname:r})})),t.slice(0,n.count)):t}},{key:"getContentData",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n={};return n.channel=e.cid||this.defaultCid,n.rf_cnt=e.totalTimes||0,n.action=e.action,this.channelParams[n.channel]||(this.channelParams[n.channel]=t.extend({},this.defaultChannelParams)),e.page&&"0"==e.page?(n.page="0",this.channelParams[n.channel].requireTimes=1):n.page=this.channelParams[n.channel].requireTimes++,n.crec=1==localStorage.getItem("isShowpersonalNews")?1:0,n=t.extend({},this.options.content.data,n),t.ajax({url:this.options.content.url,type:"get",dataType:"jsonp",jsonp:"cb",data:n})}},{key:"filterContentData",value:function(e,t){var n,i,c,d=[];if(0!=e.code||!e.data||!e.data.list)return d;n=e.data.list||[],i=e.data.options||{},c=n.length;for(var u=function(e){var c=n[e],u={exp_ids:i.exp_ids,request_id:i.request_id,doc_id:c.doc_id},p={};c.ext=c.ext||{},p.randomId="rid"+Math.random().toString(36).slice(-8),p.images=c.imgs||[],p.errorimg=r,p.title=c.title||"",p.url=c.url||"javascript:void(0);",p.url_encode=encodeURIComponent(p.url),p.source=c.from||"",p.otherinfo=c.otherinfo&&c.otherinfo.length?JSON.parse(c.otherinfo):"",p.h=c.h||"",p.dataType="news",p.zmtName=c.zmt_name||"",p.zmtPic=c.zmt_pic||"",p.zmt=c.zmt||"",p.zmtStr=JSON.stringify(p.zmt),p.images.length&&p.images&&p.images[0]||(p.images=[o[l]],l<s-1?l++:l=0),i.time&&(p.time=""),p.webui=i.ui_id||"",i.author&&(p.author=c.author||""),i.icon&&(p.icon=c.icon||""),i.cat&&(p.cat=c.c_name||"","置顶"==p.cat&&(p.color="#f34540"),"国际"!=p.cat&&"社会"!=p.cat&&"国内"!=p.cat||(p.color="#69cffa"),"科技"!=p.cat&&"教育"!=p.cat&&"财经"!=p.cat||(p.color="#498bfc"),"健康"!=p.cat&&"体育"!=p.cat&&"时尚"!=p.cat||(p.color="#27a9f4"),"美食"!=p.cat&&"旅游"!=p.cat&&"历史"!=p.cat||(p.color="#3cc24c"),"游戏"!=p.cat&&"汽车"!=p.cat&&"其他"!=p.cat||(p.color="#1bc5bb"),"星座"!=p.cat&&"家居"!=p.cat&&"军事"!=p.cat||(p.color="#fcae14"),"搞笑"!=p.cat&&"娱乐"!=p.cat&&"母婴"!=p.cat||(p.color="#ff8040"),"艺术"!=p.cat&&"动物"!=p.cat&&"文化"!=p.cat||(p.color="#f54e91"),"房产"!=p.cat&&"动漫"!=p.cat&&"彩票"!=p.cat||(p.color="#ee4b47")),""!=p.author&&null!=p.author&&i.icon&&(""!=p.icon&&null!=p.icon&&null!=p.icon||(p.icon=p.author.substring(0,1),p.bgColor="rgb("+Math.floor(256*Math.random())+","+Math.floor(256*Math.random())+","+Math.floor(256*Math.random())+")")),p.timeStamp="",p.time=c.time?a.getTimeFromNow2(1e3*c.time):"",p.log=c.ext.jrbd_dot||{},p.log.url=p.log.u,delete p.log.u,p.log.channel=t.cid,p.dot=a.parseParam(u).substr(1),p.rc=i.exp_ids||"",p.ext=a.parseParam(u).substr(1),p.newsType=c.feed_from||"",p.gnid=c.doc_id||"",p.images.length>=4?(p.tplType="news3",p.log.style=6,p.images.splice(4)):3==p.images.length?(p.tplType="news3",p.log.style=6,p.moreImg=!0):p.images.length>=1&&""!=p.images[0]?(p.tplType="news1",p.log.style=3,p.images.splice(1)):(p.tplType="news0",p.log.style=4,p.images=[]);var h="";p.otherinfo&&(h=p.otherinfo.filter||""),p.log.ext=h,p.log=encodeURIComponent(JSON.stringify(p.log)),"video"==c.channel&&c.ext.video&&c.ext.video.timelong&&(p.isVideo=!0,p.duration=c.ext.video.timelong),p.images.forEach((function(e,t){p.isVideo?p.images[t]=a.cutImg(e,"320_180_"):p.images[t]=a.setImgUrl(e,"320_180_")})),d.push(p)},p=0;p<c;p++)u(p);return d}},{key:"setLog",value:function(e,n,i){var a=this.options[n]||{};if("show"==n)if(Array.isArray(e))for(var r=0;r<e.length;r++){var o=[];o.push(e[r]),this.setShowLog(o,i)}else this.setShowLog(e,i);else{try{e=JSON.parse(decodeURIComponent(e))}catch(t){e={}}var s=Object.assign({},a.data,e);s.t=Date.now(),s.channel=e.channel,t.ajax({url:a.url,dataType:"jsonp",data:s})}}},{key:"setShowLog",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=[],i=this.options.show||{},a=Object.assign({},i.data);a.t=Date.now(),e.length&&(e.forEach((function(e){var t={};try{t=JSON.parse(decodeURIComponent(e))}catch(e){t={}}a.channel=t.channel,n.push([t.gnid||"",t.a,t.c,t.source||"",t.s,t.style,"2000",t.sid||""])})),a.n=n.length,a.url_pack=JSON.stringify(n),t.ajax({url:i.url,dataType:"jsonp",data:a}))}}]),e}();e.exports=c}).call(this,n(1))},function(e,t,n){"use strict";(function(t){var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}();var a=n(2),r=n(12),o=[n(25),n(26),n(27),n(28),n(29),n(30)],s=o.length,l=0,c=function(){function e(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.defaultParam={uid:a.api.GetMID(),token:this.getFollowToken(),f:"jsonp",num:15},t.extend(!0,this.defaultParam,n),this.reqTimes=1}return i(e,[{key:"getFollowListData",value:function(e){var n=t.extend(!0,{},this.defaultParam,{sign:e.sign,type:e.type});return"refresh"==n.type?(n.page=1,this.reqTimes=1):n.page=++this.reqTimes,t.ajax({url:"https://user.360kuai.com/following/getFollowList",dataType:"JSONP",data:n,callback:"cb",timeout:3e3})}},{key:"filterFollowListData",value:function(e,t){var n,i,c,d=[];if(0!=e.errno||!e.data||!e.data.res)return d;n=e.data.res||[],i=e.data.options||{},c=n.length;for(var u=0;u<c;u++){var p=n[u],h={exp_ids:i.exp_ids,request_id:i.request_id,doc_id:p.doc_id},f={};p.ext=p.ext||{},f.randomId="rid"+Math.random().toString(36).slice(-8),f.images=p.i&&p.i.split("|")||[],f.errorimg=r,f.title=p.t||"",f.source=p.f||"",f.url=p.pcurl||"javascript:void(0);",f.url_encode=encodeURIComponent(f.url),f.otherinfo=p.otherinfo&&p.otherinfo.length?JSON.parse(p.otherinfo):"",f.h=p.a||"",f.dataType="news",f.newsType="jrbd",f.zmtName=p.zmt_name||"",f.zmtPic=p.zmt_pic||"",f.zmt=p.zmt||"",f.zmtStr=JSON.stringify(f.zmt),f.images.length&&f.images&&f.images[0]||(f.images=[o[l]],l<s-1?l++:l=0),f.time=p.time?a.getTimeFromNow2(1e3*p.time):"",f.log={channe:p.c||"",sid:"",a:p.a||"",c:p.c||"",source:p.source||"",s:p.s||"",u:p.url||p.rawurl||"",url:p.url||p.rawurl||"",gnid:p.gnid||"",sign:this.defaultParam.sign||""},f.dot=a.parseParam(h).substr(1),f.rc=i.exp_ids||"",f.ext=a.parseParam(h).substr(1),f.images.length>=4?(f.tplType="news3",f.log.style=6,f.images.splice(4)):3==f.images.length?(f.tplType="news3",f.log.style=6,f.moreImg=!0):f.images.length>=1&&""!=f.images[0]?(f.tplType="news1",f.log.style=3,f.images.splice(1)):(f.tplType="news0",f.log.style=4,f.images=[]);var g="";f.otherinfo&&(g=f.otherinfo.filter||""),f.log.ext=g,f.log=encodeURIComponent(JSON.stringify(f.log)),d.push(f)}return d}},{key:"getFollowToken",value:function(){var e=Date.parse(new Date)/1e3,t=a.api.GetMID()+"fdasof09vni234rk23b498uvo234eo14n123b12v31v23c1y23y1u"+e;return e+"|"+a.getMd5(t)}},{key:"follow",value:function(e){var n={type:1,f:"jsonp",token:this.getFollowToken,uid:a.api.GetMID(),version:a.api.GetVersion(),device:2,net:5,where:"list"};t.ajax({url:"https://user.360kuai.com/following/add",dataType:"jsonp",timeout:3e3,data:t.extend(n,e)}).fail((function(e){console.log(e)})).done((function(e){console.log(e)}))}}]),e}();e.exports=c}).call(this,n(1))},function(e,t,n){"use strict";(function(t){var i=n(2),a=n(5),r=n(111),o="__ajax_showcase",s=null,l=i.api.GetMID(),c=null,d=t(".showcase"),u=t(".sc-list"),p=[],h=function(){var e=[];s.getAdsData({impct:12}).done((function(n){var i;0==(e=s.filterAdsData(n)).length?g():e.length<12?(i=e,t.ajax({url:"https://s3m.mediav.com/datashare/dormer.js",data:{t:(new Date).Format("yyyyMMdd")},dataType:"jsonp",jsonpCallback:"get360mvDormerAd"}).done((function(e){var t=[];for(var n in e)t=t.concat(e[n]);i=i.concat(t.shuffle().slice(0,12-i.length)),f(i)})).fail((function(e){g()}))):f(e.slice(0,12)),p=e})).fail((function(e){g()}))},f=function(e){u.html(r(e)),d.show(),t(".wrap-nav .dial").css("margin-bottom",0),m(),w()},g=function(){d.hide()},m=function(){var e=u.children().get(0);t(e).addClass("sc-active"),v()},v=function(){c=setInterval((function(){var e=t(".sc-active"),n=e.next().get(0)||u.children().get(0);e.removeClass("sc-active"),t(n).addClass("sc-active")}),3e3)},w=function(){var e=t("html").height(),n=u.get(0).getBoundingClientRect().top,i=u.height(),r=[],o=[];n>-1*(i+10)&&n<e&&(p.forEach((function(e){r.push(e.imptk),o.push(e.imparg)})),a.MV.setLog(r.join(",")),o.length>0&&s.sendImpargs(o),p=[])},b=function(){d.delegate(".sc-item","mouseenter",(function(){clearInterval(c),u.children().removeClass("sc-active"),t(this).addClass("sc-active")})).delegate(".sc-item","mouseleave",(function(){v()})).delegate(".sc-link","click",(function(e){var n=t(this),i=n.data("clktk"),r=n.attr("href");r=r.replace("__EVENT_TIME_START__",window._timestamp_mousedown).replace("__EVENT_TIME_END__",window._timestamp_mouseup),n.attr("href",r),a.MV.setLog(i)})).delegate(".sc-close","click",(function(){var e=Date.now();d.hide(),i.storage.set(o,"closeDate",e)})),t(document).on("scroll",(function(e){"nav"==window.mode&&0!=p.length&&w()}))};e.exports={init:function(e){var t=i.storage.get(o).closeDate,n=parseInt(l.slice(l.length-2),16);!(e=256*e/100)||e<n||t||(d.attr("data-pid","showcase"),s=new a.MV({url:"https://show-3.mediav.com/s",data:{uid:l,mid:l,showid:"Nl7kTw"}}),h(),b())}}}).call(this,n(1))},function(e,t){e.exports=function(e){var t,n,i="undefined"!=typeof _encodeHTML?_encodeHTML:(t={"&":"&#38;","<":"&#60;",">":"&#62;",'"':"&#34;","'":"&#39;","/":"&#47;"},n=/&(?!#?\w+;)|<|>|"|'|\//g,function(e){return e?e.toString().replace(n,(function(e){return t[e]||e})):""}),a="",r=e;if(r)for(var o,s=-1,l=r.length-1;s<l;)a+='<li class="sc-item"> <a href="'+((o=r[s+=1]).url||o.curl)+'" title="'+(o.title||o.desc)+'" data-title="'+(o.title||o.desc)+'" class="sc-link" data-source="'+i(o.newsType)+'" data-clktk="'+i(o.clktk)+'" target="_blank"> <div class="sc-pic"> <img src="'+(o.images||o.img)+'" class="sc-img" onerror="src=\''+i(o.errorimg)+'\'"> </div> <p class="sc-title">'+(o.title||o.desc)+"</p> </a></li>";return a}},function(e,t,n){"use strict";var i,a=n(1);(i=a)&&i.__esModule;var r=function(e,t){return new Promise((function(e,t){external.AppCmd(external.GetSID(window),"","canShowDiamond","","",(function(t,n){e([])}))})).then((function(e){return e})).catch((function(e){}))};e.exports={getDug:function(){return new Promise((function(e,t){external.AppCmd(external.GetSID(window),"loginenrol","IsLogin","config","",(function(n,i){"1"==i?e(Promise.all([r(),r()])):t()}))}))}}},function(e,t,n){"use strict";(function(t){var i,a,r,o,s=n(2),l=n(5),c=n(114),d=s.api.GetMID(),u=[],p=[],h=0;function f(){r.getAdsData().then((function(e){if(e&&e.length){u=e,p=p.concat(u),u.length>=2&&u.splice(2);var n=t("#news-content-youlike").offset().top,a=t(i).offset().top-n,r=((h=t(i).height()+1)-1-112)/2,l={randomId:o=Math.random().toString(36).slice(-8),mengHeight:h,mengTop:a,containerTop:r,list:e};t(".news-recommend-ads-win").append(c(l));var d,f;document.visibilityState;if("hidden"==document.visibilityState);else if("visible"==document.visibilityState){setTimeout((function(){t("#"+o).css({height:h+"px",transition:"height 0.8s"})}),50),s.Stat.send("999.8770.gif");for(var m=0;m<p.length;m++)g(p[m]);p=[]}document.addEventListener("visibilitychange",(function(){if("hidden"==document.visibilityState);else if("visible"==document.visibilityState){setTimeout((function(){t("#"+o).css({height:h+"px",transition:"height 0.8s"})}),50),p.length&&s.Stat.send("999.8770.gif");for(var e=0;e<p.length;e++)g(p[e]);p=[]}})),t(".recommend-ads-close").unbind().on("click",(function(){var e=t(this).parents(".recommend-ads-container-bgMeng");t(e).css({height:"0",transition:"height 0.8s"}),setTimeout((function(){t(e).hide()}),800),s.Stat.send("999.8069.gif")})),t(".recommend-ads-link").on("mousedown",(function(e){e.preventDefault(),e.stopPropagation(),d=(new Date).valueOf()})).on("mouseup",(function(e){if(e.preventDefault(),e.stopPropagation(),3==e.which||1==e.button)return e.preventDefault(),void e.stopPropagation();f=(new Date).valueOf();for(var n=t(this).width(),i=t(this).height(),a=t(this).offset().left,r=t(this).offset().top,o={mousedownTime:d,mouseupTime:f,width:n,height:i,offsetX:e.clientX-a,offsetY:e.clientY-r},l=t(this).attr("data-clktk").split(","),c=[],u=0;u<l.length;u++)c.push(s.replaceMacro(l[u],o));c&&s.Stat.setLog(c),s.Stat.send("999.2585.gif");var p=t(this).attr("data-href");p=s.replaceMacro(p,o),window.openWin(p,"_blank")})).on("click",(function(e){e.preventDefault(),e.stopPropagation(),t(this).addClass("recommend-ads-visited"),s.Stat.send("1133.8925.gif")}))}}),(function(e){}))}function g(e){e&&e.imptk&&s.Stat.setLog(e.imptk),e&&e.adstk&&s.Stat.setLog(e.adstk),e&&e.imparg&&e.impurl&&s.Stat.setLog(e.impurl+e.imparg)}e.exports={init:function(e,t){e&&t&&(i=e,a=t,r=new l.SW({data:{mid:d,showid:"w2i97w",queryword:a,impct:2}}),f())}}}).call(this,n(1))},function(e,t){e.exports=function(e){var t,n,i="undefined"!=typeof _encodeHTML?_encodeHTML:(t={"&":"&#38;","<":"&#60;",">":"&#62;",'"':"&#34;","'":"&#39;","/":"&#47;"},n=/&(?!#?\w+;)|<|>|"|'|\//g,function(e){return e?e.toString().replace(n,(function(e){return t[e]||e})):""}),a='<div class="recommend-ads-container-bgMeng" id="'+i(e.randomId)+'" style="top:'+i(e.mengTop)+'px;"><div class="recommend-ads-container" style="top: '+i(e.containerTop)+'px;"><div class="recommend-ads-header"><span class="recommend-ads-close"></span></div><div class="recommend-ads-content">',r=e.list;if(r)for(var o,s=-1,l=r.length-1;s<l;)o=r[s+=1],a+='<a class="recommend-ads-link clearfix recommend-ads-link-'+i(s+1)+" "+i(e.list.length>1?"recommend-ads-link-short":"recommend-ads-link-long")+'" data-title="'+i(o.desc)+'" data-ct="'+i(o.tplType)+'" data-source="'+i(o.newsType)+'" data-tpl="'+i(o.tplType)+'" data-clktk="'+i(o.clktk)+'" data-rc="'+i(o.expId)+'" data-scene="newtab_feed" data-imptk="'+i(o.imptk)+'" data-href="'+i(o.url)+'" href="'+i(o.url)+'" target="_blank"><span class="recommend-ads-img-box"><img class="recommend-ads-img" src="'+i(o.img)+'" onerror="src=\''+i(o.errorimg)+'\'"></span><div class="recommend-ads-title '+i(e.list.length>1?"recommend-ads-title-short":"recommend-ads-title-long")+'">'+i(o.desc)+'</div><span class="recommend-ads-infos">',o.seller&&(a+='<span class="recommend-ads-seller">'+i(o.seller)+"</span>"),"360搜索"!=o.source&&(a+='<span class="recommend-ads-seller recommend-ads-tag">广告</span>'),a+='</span><span class="recommend-ads-btn '+i(e.list.length>1?"recommend-ads-btn-sma":"recommend-ads-btn-big")+'">查看</span></a>';return a+="</div></div></div>"}},function(e,t,n){"use strict";(function(t){var i=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],i=!0,a=!1,r=void 0;try{for(var o,s=e[Symbol.iterator]();!(i=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);i=!0);}catch(e){a=!0,r=e}finally{try{!i&&s.return&&s.return()}finally{if(a)throw r}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};function a(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}e.exports={init:function(e){var r=n(2),o=n(5),s=n(116),l=n(117),c=(window.VERSION,r.api.GetMID(),[]),d=null,u={},p=null,h=null,f=0;function g(){t(e+" .nav-news-hotwords-container").html(""),Promise.all([new Promise((function(e,n){t.ajax({url:"https://mbsug.ssl.so.com/sug-hot?channel=type_news&src=se_newtab_hot",dataType:"JSONP",data:{realhot_limit:50},timeout:3e3}).done((function(t){var n=t&&t.data||[];n.length?e(n):e("")})).fail((function(e){n()}))})),new Promise((function(e,t){d={showid:"RqkoCX",reqtimes:1,impct:1},new o.SW({data:d}).getAdsData().then((function(t){e(t)}),(function(t){e("")}))}))]).then((function(n){var a,o=i(n,2),d=o[0],g=o[1];if(d.length){t(e+" .nav-news-hotwords-container").show();var w=(c=JSON.parse(JSON.stringify(d))).splice(0,15);w=m(w,3),g&&(w.push(g[0]),u=g[0]),f+=w.length,a=w,t(e+" .nav-news-hotwords-container").html(s(a)),function n(){t(e+" .nav-news-hotwords").unbind().on("mousedown",(function(e){e.stopPropagation(),e.preventDefault(),p=(new Date).valueOf()})).on("mouseup",(function(e){e.stopPropagation(),e.preventDefault(),h=(new Date).valueOf(),t(this).addClass("nav-news-hotwords-actived");var n=t(this).attr("data-type"),i=t(this).attr("data-href");if("ads"==n){for(var a=t(this).get(0).getBoundingClientRect(),o={mousedownTime:p,mouseupTime:h,width:a.width,height:a.height,offsetX:e.clientX-a.left,offsetY:e.clientY-a.top},s=u.clktk||[],l=[],c=0;c<s.length;c++)l.push(r.replaceMacro(s[c],o));l&&r.Stat.setLog(l),i=r.replaceMacro(i,o),r.Stat.send("1207.6948.gif")}else r.Stat.send("1207.2092.gif"),r.puvDot({s:25,n:1,item_id:4});r.Stat.send("1133.8925.gif"),window.openWin(i,"_blank")})).on("click",(function(e){e.stopPropagation(),e.preventDefault()})),t(e+" .nav-news-hotwords-box .addMoreHots").unbind().on("click",(function(i){var a=this,r=c.splice(0,5)||[];if(r&&r.length){var o=m(r,1);f+=o.length,t(this).before(l(o)),n(),f>=50&&(t(this).hide(),t(e+" .nav-news-hotwords-box").css("padding-bottom","22px"),t(e+" .nav-news-hotwords-box .nav-news-hotwords").eq(f-1).css("border-bottom","none"))}else t(this).html("没有更多数据了"),setTimeout((function(){t(a).hide(),t(e+" .nav-news-hotwords-box").css("padding-bottom","22px"),t(e+" .nav-news-hotwords-box .nav-news-hotwords").eq(f-1).css("border-bottom","none")}),1e3)}))}(),setTimeout((function(){!function(n){if(!v){var i="",a=n.updateTime||"";i=a&&a.length?r.getTimeFromNow(new Date(a).valueOf()):"3 分钟前更新",t(e+" .nav-news-hotwords-header-updateTime").html(i).show(),v=!0}}(a[0]),t(e+" .nav-news-hotwords-content").slideDown()}))}}),(function(n){t(e+" .nav-news-hotwords-container").hide()}))}function m(e,t){for(var n=0;n<e.length;n++)e[n].index=f+n,e[n].randomId="rid"+Math.random().toString(36).slice(-8),e[n].seeNum=r.formatNum(e[n].score),e[n].dataType="news";for(var i=[];i.length<t;){var a=r.getRandomNum(0,e.length-1);i.indexOf(a)<0&&i.push(a)}for(var o=0;o<i.length;o++)e[i[o]]&&(e[i[o]].isNew=!0);return e}var v=!1,w=t(window).height();t(document).scroll((function(){!function(){if(t(e).hasClass("navNewsBigImgContainer-active")){var n=t(e+" .nav-news-hotwords-content").find(".nav-news-hotwords-ads");if(n.length){var i=n.get(0).getBoundingClientRect();i.top+15<w&&i.top>0&&!u.loged&&(r.Stat.setLog([].concat(a(u.imptk),a(u.adstk),[u.impurl+u.imparg])),u.loged=!0)}}}()})),t(window).resize((function(){w=t(this).height()})),e&&g()}}}).call(this,n(1))},function(e,t){e.exports=function(e){var t,n,i="undefined"!=typeof _encodeHTML?_encodeHTML:(t={"&":"&#38;","<":"&#60;",">":"&#62;",'"':"&#34;","'":"&#39;","/":"&#47;"},n=/&(?!#?\w+;)|<|>|"|'|\//g,function(e){return e?e.toString().replace(n,(function(e){return t[e]||e})):""}),a='<div class="nav-news-hotwords-content"><div class="nav-news-hotwords-header">\x3c!-- <span class="nav-news-hotwords-header-right nav-news-hotwords-refresh">换一换</span> --\x3e<span class="nav-news-hotwords-header-updateTime">3分钟前更新</span><div class="clearfix"></div></div><div class="nav-news-hotwords-box">',r=e;if(r)for(var o,s=-1,l=r.length-1;s<l;)a+='<a href="'+i((o=r[s+=1]).url)+'" class="nav-news-hotwords nav-news-hotwords-'+i(o.dataType)+'" data-href="'+i(o.url)+'" data-type="'+i(o.dataType)+'" data-title="'+i(o.title)+'"><span class="nav-news-hotwords-sign nav-news-hotwords-sign-'+i(s+"")+'">',a+=0==s?"顶":""+i(s),a+='</span><span class="nav-news-hotwords-title nav-news-hotwords-title-'+i(s+"")+'">'+i(o.title)+"</span>",o.isNew&&(a+='<span class="nav-news-hotwords-newIcon">新</span>'),"ads"==o.dataType?"360搜索"==o.source?a+='<span class="nav-news-hotwords-seeNum nav-news-hotwords-adsIcon">精选热搜</span>':a+='<span class="nav-news-hotwords-seeNum nav-news-hotwords-adsIcon">广告 '+i(o.source)+"</span>":a+='<span class="nav-news-hotwords-seeNum">'+i(o.seeNum)+"人 在看</span>",a+='<div class="clearfix"></div></a>';return a+='<div class="addMoreHots">加载更多排行</div></div></div>'}},function(e,t){e.exports=function(e){var t,n,i="undefined"!=typeof _encodeHTML?_encodeHTML:(t={"&":"&#38;","<":"&#60;",">":"&#62;",'"':"&#34;","'":"&#39;","/":"&#47;"},n=/&(?!#?\w+;)|<|>|"|'|\//g,function(e){return e?e.toString().replace(n,(function(e){return t[e]||e})):""}),a="",r=e;if(r)for(var o,s=-1,l=r.length-1;s<l;)a+='<a href="'+i((o=r[s+=1]).url)+'" class="nav-news-hotwords nav-news-hotwords-'+i(o.dataType)+'" data-href="'+i(o.url)+'" data-type="'+i(o.dataType)+'" data-title="'+i(o.title)+'"><span class="nav-news-hotwords-sign">'+i(o.index)+'</span><span class="nav-news-hotwords-title">'+i(o.title)+"</span>",o.isNew&&(a+='<span class="nav-news-hotwords-newIcon">新</span>'),a+='<span class="nav-news-hotwords-seeNum">'+i(o.seeNum)+'人 在看</span><div class="clearfix"></div></a>';return a}},function(e,t){e.exports=function(e){var t,n,i="undefined"!=typeof _encodeHTML?_encodeHTML:(t={"&":"&#38;","<":"&#60;",">":"&#62;",'"':"&#34;","'":"&#39;","/":"&#47;"},n=/&(?!#?\w+;)|<|>|"|'|\//g,function(e){return e?e.toString().replace(n,(function(e){return t[e]||e})):""}),a='<div id="'+i(e.id)+'" class="news-packet packet-news0" data-source="'+i(e.newsType)+'" data-istopdata="'+i(e.isTopData)+'"> <a class="news-link clearfix" data-title="'+i(e.title)+'" data-ct="'+i(e.tplType)+'" data-source="'+i(e.newsType)+'" data-tpl="'+i(e.tplType)+'" data-log="'+i(e.log)+'" data-dot="'+i(e.dot)+'" data-rc="'+i(e.expId)+'" data-scene="newtab_feed" data-href="'+i(e.url_encode)+'" href="'+i(e.url)+'" target="_blank"> <h2 class="news0-h2"> <span class="news-title"> '+i(e.title)+' </span> </h2> <div class="news0-info">';return(e.cat&&e.isReadSeal&&1==e.catPos||e.cat&&!e.isReadSeal)&&(a+='<span class="news1-cat currentCat" style=\'border:1px solid '+i(e.color)+";color:"+i(e.color)+"'>"+i(e.cat)+"</span>"),a+="\x3c!-- ",e.icon&&(e.icon.indexOf(".")>0?a+='<img class="news-img-add" src=\''+i(e.icon)+"'/>":a+='<span class="news3-from currentIconText" style="background: '+i(e.bgColor)+';">'+i(e.icon)+"</span>"),a+=" ",e.author&&(a+=' <span class="news3-from currentAuther">'+i(e.author)+"</span> "),a+=" --\x3e",e.zmt&&e.zmt.pic&&(a+='<img class="zmtPic" src="'+i(e.zmt.pic)+'" data-zmt="'+i(e.zmtStr)+'" alt="">'),e.zmt&&e.zmt.name&&(a+='<span class="zmtName" data-zmt="'+i(e.zmtStr)+'">'+i(e.zmt.name)+'</span>\x3c!-- <span class="followed '+i(e.zmt&&1==e.zmt.is_followed?"followshow":"")+'" data-zmt="'+i(e.zmtStr)+'">已关注</span> --\x3e\x3c!-- 2021-03-30：不再展示列表里的 “已关注”按钮 --\x3e<span class="followed" data-zmt="'+i(e.zmtStr)+'">已关注</span><span class="follow '+i(e.zmt&&1!=e.zmt.is_followed?"followshow":"")+'" data-zmt="'+i(e.zmtStr)+'">+关注</span><span class="followLine"></span>'),a+=" ",e.time&&!e.isTopData&&(a+='<span class="news0-date currentTimeStamp">'+i(e.time)+"</span>"),e.cat&&e.isReadSeal&&2==e.catPos&&(a+='<span class="news1-cat currentCat" style=\'border:1px solid '+i(e.color)+";color:"+i(e.color)+"'>"+i(e.cat)+"</span>"),a+=" </div> </a>",e.isTopData||(a+='<a class="news-dislike" data-log='+i(e.log)+' data-dot="'+i(e.dot)+'" data-rc="'+i(e.expId)+'" href="'+i(e.url)+'" data-title="'+i(e.title)+'" data-source="'+i(e.newsType)+'" data-ct="dis-0" ><div class="dislike-pop-wrap"><div class=\'dislike-pop\'><div class="dislike-arrow"></div><p class=\'dislike-cutdown\'>减少此类推送</p></div></div></a>'),a+="</div>"}},function(e,t){e.exports=function(e){var t,n,i="undefined"!=typeof _encodeHTML?_encodeHTML:(t={"&":"&#38;","<":"&#60;",">":"&#62;",'"':"&#34;","'":"&#39;","/":"&#47;"},n=/&(?!#?\w+;)|<|>|"|'|\//g,function(e){return e?e.toString().replace(n,(function(e){return t[e]||e})):""}),a='<div id="'+i(e.id)+'" class="news-packet packet-news1" data-source="'+i(e.newsType)+'" data-istopdata="'+i(e.isTopData)+'" data-isfollowed="'+i(e.zmt&&e.zmt.is_followed)+'"><a class="news-link clearfix" data-gnid="'+i(e.gnid)+'" data-title="'+i(e.title)+'" data-ct="'+i(e.tplType)+'" data-source="'+i(e.newsType)+'" data-tpl="'+i(e.tplType)+'" data-log="'+i(e.log)+'" data-dot="'+i(e.dot)+'" data-rc="'+i(e.expId)+'" data-scene="newtab_feed" data-href="'+i(e.url_encode)+'" href="'+i(e.url)+'" target="_blank"><div class="news1-images"><span class="news1-images-link"> \x3c!-- ',r=e.images;if(r)for(var o=-1,s=r.length-1;o<s;)a+='<img class="news1-img" src="'+r[o+=1]+'" data-rate="1.77" onerror="src=\''+i(e.errorimg)+"'\"> ",e.isVideo&&(a+='<span class="news-duration">'+i(e.duration)+"</span> "),a+=" ";return a+=' --\x3e<img class="news1-img" src="'+e.images[0]+'" data-rate="1.77" onerror="src=\''+i(e.errorimg)+"'\"> ",e.isVideo&&(a+='<span class="news-duration">'+i(e.duration)+"</span> "),a+=' </span></div><div class="news1-body"><h2 class="news1-h2"><span class="news-title"> '+i(e.title)+' </span></h2><div class="news1-info">',(e.cat&&e.isReadSeal&&1==e.catPos||e.cat&&!e.isReadSeal)&&(a+='<span class="news1-cat currentCat" style=\'border:1px solid '+i(e.color)+";color:"+i(e.color)+"'>"+i(e.cat)+"</span>"),a+="\x3c!-- ",e.icon&&(e.icon.indexOf(".")>0?a+='<img class="news-img-add" src=\''+i(e.icon)+"' />":a+='<span class="news3-from currentIconText" style="background: '+i(e.bgColor)+';">'+i(e.icon)+"</span>"),e.author&&(a+='<span class="news3-from currentAuther">'+i(e.author)+"</span>"),a+=" --\x3e",e.zmt&&e.zmt.pic&&(a+='<img class="zmtPic" src="'+i(e.zmt.pic)+'" data-zmt="'+i(e.zmtStr)+'" alt="">'),e.zmt&&e.zmt.name&&(a+='<span class="zmtName" data-zmt="'+i(e.zmtStr)+'">'+i(e.zmt.name)+'</span>\x3c!-- <span class="followed '+i(e.zmt&&1==e.zmt.is_followed?"followshow":"")+'" data-zmt="'+i(e.zmtStr)+'">已关注</span> --\x3e\x3c!-- 2021-03-30：不再展示列表里的 “已关注”按钮 --\x3e<span class="followed" data-zmt="'+i(e.zmtStr)+'">已关注</span><span class="follow '+i(e.zmt&&1!=e.zmt.is_followed?"followshow":"")+'" data-zmt="'+i(e.zmtStr)+'">+关注</span><span class="followLine"></span>'),e.time&&!e.isTopData&&(a+='<span class="news0-date currentTimeStamp">'+i(e.time)+"</span>"),e.cat&&e.isReadSeal&&2==e.catPos&&(a+='<span class="news1-cat currentCat">'+i(e.cat)+"</span>"),a+="</div>",e.isTopData||(a+='<object><a class="news-dislike" data-tpl="'+i(e.tplType)+'" data-log='+i(e.log)+' data-dot="'+i(e.dot)+'" data-rc="'+i(e.expId)+'" href="'+i(e.url)+'" data-title="'+i(e.title)+'" data-source="'+i(e.newsType)+'" data-ct="dis-1"><div class="dislike-pop-wrap"><div class=\'dislike-pop\'><div class="dislike-arrow"></div><p class=\'dislike-cutdown\'>减少此类推送</p></div></div></a></object>'),a+="</div></a></div>"}},function(e,t){e.exports=function(e){var t,n,i="undefined"!=typeof _encodeHTML?_encodeHTML:(t={"&":"&#38;","<":"&#60;",">":"&#62;",'"':"&#34;","'":"&#39;","/":"&#47;"},n=/&(?!#?\w+;)|<|>|"|'|\//g,function(e){return e?e.toString().replace(n,(function(e){return t[e]||e})):""}),a='<div id="'+i(e.id)+'" class="news-packet packet-news3" data-source="'+i(e.newsType)+'" data-istopdata="'+i(e.isTopData)+'"> <a class="news-link clearfix" data-title="'+i(e.title)+'" data-ct="'+i(e.tplType)+'" data-source="'+i(e.newsType)+'" data-tpl="'+i(e.tplType)+'" data-log="'+i(e.log)+'" data-dot="'+i(e.dot)+'" data-rc="'+i(e.expId)+'" data-scene="newtab_feed" data-href="'+i(e.url_encode)+'" href="'+i(e.url)+'" target="_blank"> <h2 class="news3-h2"> <span class="news-title"> '+i(e.title)+' </span> </h2> <div class="news3-images">  ',r=e.images;if(r)for(var o=-1,s=r.length-1;o<s;)a+=' <span class="news3-images-link"> <img class="news3-img" src="'+r[o+=1]+'" data-rate="1.77"  onerror="src=\''+i(e.errorimg)+"'\">  ",e.isVideo&&(a+=' <span class="news-duration">'+i(e.duration)+"</span>  "),a+="  </span>  ";return a+='  </div> <div class="news3-info"> ',(e.cat&&e.isReadSeal&&1==e.catPos||e.cat&&!e.isReadSeal)&&(a+='<span class="news1-cat currentCat" style=\'border:1px solid '+i(e.color)+";color:"+i(e.color)+"'>"+i(e.cat)+"</span>"),a+=" \x3c!-- ",e.icon&&(a+=" ",e.icon.indexOf(".")>0?a+=' <img class="news-img-add" src=\''+i(e.icon)+"'/> ":a+=' <span class="news3-from currentIconText" style="background: '+i(e.bgColor)+';">'+i(e.icon)+"</span> ",a+=" "),a+=" ",e.author&&(a+=' <span class="news3-from currentAuther">'+i(e.author)+"</span> "),a+=" --\x3e",e.zmtPic&&(a+='<img class="zmtPic" src="'+i(e.zmtPic)+'" alt="">'),e.zmtName&&(a+='<span class="zmtName">'+i(e.zmtName)+"</span>"),a+=" ",e.time&&!e.isTopData&&(a+='<span class="news0-date currentTimeStamp">'+i(e.time)+"</span>"),e.cat&&e.isReadSeal&&2==e.catPos&&(a+='<span class="news1-cat currentCat" style=\'border:1px solid '+i(e.color)+";color:"+i(e.color)+"'>"+i(e.cat)+"</span>"),a+=" </div> </a>",e.isTopData||(a+='<a class="news-dislike" data-tpl="'+i(e.tplType)+'" data-log='+i(e.log)+' data-dot="'+i(e.dot)+'" data-rc="'+i(e.expId)+'" href="'+i(e.url)+'" data-title="'+i(e.title)+'" data-source="'+i(e.newsType)+'" data-ct="dis-3" ><div class="dislike-pop-wrap"><div class=\'dislike-pop\'><div class="dislike-arrow"></div><p class=\'dislike-cutdown\'>减少此类推送</p></div></div></a>'),a+="</div>"}},function(e,t){e.exports=function(e){var t,n,i="undefined"!=typeof _encodeHTML?_encodeHTML:(t={"&":"&#38;","<":"&#60;",">":"&#62;",'"':"&#34;","'":"&#39;","/":"&#47;"},n=/&(?!#?\w+;)|<|>|"|'|\//g,function(e){return e?e.toString().replace(n,(function(e){return t[e]||e})):""}),a='<div id="'+i(e.id)+'" class="news-packet packet-ads1" data-source="'+i(e.newsType)+'"><a class="news-link clearfix" data-title="'+i(e.title)+'" data-ct="'+i(e.tplType)+'" data-source="'+i(e.newsType)+'" data-tpl="'+i(e.tplType)+'" data-clktk="'+i(e.clktk)+'" data-rc="'+i(e.expId)+'" data-scene="newtab_feed" data-imptk="'+i(e.imptk)+'" data-href="'+i(e.url_encode)+'" href="'+i(e.url)+'" target="_blank"><div class="ads1-images"><div class="ads1-images-link"><img class="ads1-img" src="'+i(e.img)+'" onerror="src=\''+i(e.errorimg)+"'\">\x3c!-- ";return"ui_new"!=e.webui&&e.adsTag&&"360搜索推荐"!=e.source&&(a+='<span class="ads2-tag"></span>'),a+=' --\x3e</div></div><div class="ads1-body"><h2 class="ads1-h2"><span class="news-title" title="'+i(e.title)+'">'+i(e.title)+'</span></h2>\x3c!--<h5 class="ads1-desc" title="'+i(e.desc)+'">'+i(e.desc)+'</h5>--\x3e<div class="ads1-info">',"ui_new"==e.webui&&(a+=" ",e.icon?a+='<img class="news-img-add" src=\''+i(e.icon)+"' /> ":a+='<span class="news3-from currentIconText" style="background: '+i(e.bgColor)+';">'+i(e.iconText)+"</span> ",a+=" "),a+='<span class="ads1-from">'+i(e.source)+"</span> ",e.time&&(a+='<span class="news0-date currentTimeStamp">'+i(e.time)+"</span>"),"ui_new"!=e.webui&&e.adsTag&&"360搜索推荐"!=e.source&&(a+='<span class="news0-date currentAds">广告</span>'),a+='</div><object><a class="news-dislike" href="'+i(e.url)+'" data-title="'+i(e.title)+'" data-source="'+i(e.newsType)+'" data-ct="dis-1" data-tpl="'+i(e.tplType)+'" data-clstk="'+e.clstk+'" data-rc="'+i(e.expId)+'" data-log='+i(e.log)+'><div class="dislike-pop-wrap"><div class=\'dislike-pop\'><div class="dislike-arrow"></div><p class=\'ads-dislike-item\' data-dislkrid="5" data-dislikerefer="lose interest" data-disliketext="不感兴趣">不感兴趣</p><p class=\'ads-dislike-item\' data-dislkrid="1" data-dislikerefer="Inappropriate content" data-disliketext="内容不宜">内容不宜</p><p class=\'ads-dislike-item\' data-dislkrid="4" data-dislikerefer="Occlusion interference" data-disliketext="遮挡干扰">遮挡干扰</p><p class=\'ads-dislike-item\' data-dislkrid="2" data-dislikerefer="Block such advertisements" data-disliketext="屏蔽此类行业广告">屏蔽此类广告</p></div></div></a></object></div></a></div>'}},function(e,t){e.exports=function(e){var t,n,i="undefined"!=typeof _encodeHTML?_encodeHTML:(t={"&":"&#38;","<":"&#60;",">":"&#62;",'"':"&#34;","'":"&#39;","/":"&#47;"},n=/&(?!#?\w+;)|<|>|"|'|\//g,function(e){return e?e.toString().replace(n,(function(e){return t[e]||e})):""}),a='<div id="'+i(e.id)+'" class="news-packet packet-ads2 '+i(e.imgType)+'" data-source="'+i(e.newsType)+'"><div class="ads2-hd"><a class="news-link" data-title="'+i(e.title)+'" data-ct="'+i(e.tplType)+'" data-source="'+i(e.newsType)+'" data-tpl="'+i(e.tplType)+'" data-href="'+i(e.url_encode)+'" data-rc="'+i(e.expId)+'" data-scene="newtab_feed" href="'+i(e.url)+'" data-clktk="'+i(e.clktk)+'" target="_blank"><h2 class="ads2-h2"><span class="news-title"> '+i(e.title)+' </span></h2></a></div><div class="ads2-bd">',r=e.assets;if(r)for(var o,s=-1,l=r.length-1;s<l;)o=r[s+=1],a+='<a class="news-link ads2-images-link" data-title="'+i(e.title)+'" data-ct="'+i(e.tplType)+'" data-source="'+i(e.newsType)+'" data-tpl="'+i(e.tplType)+'" data-href="'+i(e.url_encode)+'" data-rc="'+i(e.expId)+'" href="'+i(o.curl)+'" data-clktk="'+i(e.clktk)+'" target="_blank"><img class="ads2-img" src="'+i(o.img)+'" onerror="src=\''+i(e.errorimg)+"'\">",e.imgType&&e.assets[s].desc&&(a+='<span class="desc">'+i(e.assets[s].desc)+"</span>"),a+="\x3c!-- ","ui_new"!=e.webui&&e.adsTag&&3==s&&"360搜索推荐"!=e.source&&(a+='<span class="ads2-tag"></span>'),a+=" --\x3e</a>";return a+='</div><div class="ads2-info"><a class="news-link" data-title="'+i(e.title)+'" data-ct="'+i(e.tplType)+'" data-source="'+i(e.newsType)+'" data-tpl="'+i(e.tplType)+'" data-href="'+i(e.url_encode)+'" data-rc="'+i(e.expId)+'" data-scene="newtab_feed" href="'+i(e.url)+'" data-clktk="'+i(e.clktk)+'" target="_blank">',"ui_new"==e.webui&&(e.icon?a+='<img class="news-img-add" src=\''+i(e.icon)+"' />":a+='<span class="news3-from currentIconText" style="background: '+i(e.bgColor)+';">'+i(e.iconText)+"</span>"),a+='<span class="ads2-from">'+i(e.source)+"</span>",e.time&&(a+='<span class="news0-date currentTimeStamp">'+i(e.time)+"</span>"),"ui_new"!=e.webui&&e.adsTag&&"360搜索推荐"!=e.source&&(a+='<span class="news0-date currentAds">广告</span>'),a+='</a></div><a class="news-dislike" href="'+i(e.url)+'" data-title="'+i(e.title)+'" data-source="'+i(e.newsType)+'" data-ct="dis-2" data-tpl="'+i(e.tplType)+'" data-clstk="'+e.clstk+'" data-rc="'+i(e.expId)+'" data-log='+i(e.log)+'><div class="dislike-pop-wrap"><div class=\'dislike-pop\'><div class="dislike-arrow"></div><p class=\'ads-dislike-item\' data-dislkrid="5" data-dislikerefer="lose interest" data-disliketext="不感兴趣">不感兴趣</p><p class=\'ads-dislike-item\' data-dislkrid="1" data-dislikerefer="Inappropriate content" data-disliketext="内容不宜">内容不宜</p><p class=\'ads-dislike-item\' data-dislkrid="4" data-dislikerefer="Occlusion interference" data-disliketext="遮挡干扰">遮挡干扰</p><p class=\'ads-dislike-item\' data-dislkrid="2" data-dislikerefer="Block such advertisements" data-disliketext="屏蔽此类行业广告">屏蔽此类广告</p></div></div></a></div>'}},function(e,t){e.exports=function(e){var t,n,i="undefined"!=typeof _encodeHTML?_encodeHTML:(t={"&":"&#38;","<":"&#60;",">":"&#62;",'"':"&#34;","'":"&#39;","/":"&#47;"},n=/&(?!#?\w+;)|<|>|"|'|\//g,function(e){return e?e.toString().replace(n,(function(e){return t[e]||e})):""}),a='<div id="'+i(e.id)+'" class="news-packet packet-ads3" data-source="'+i(e.newsType)+'"><a class="news-link" data-title="'+i(e.title)+'" data-ct="'+i(e.tplType)+'" data-source="'+i(e.newsType)+'" data-tpl="'+i(e.tplType)+'" data-href="'+i(e.url_encode)+'" data-rc="'+i(e.expId)+'" data-scene="newtab_feed" href="'+i(e.url)+'" data-clktk="'+i(e.clktk)+'" target="_blank"><div class="ads3-bd"><div class="ads3-images-link"><img class="ads3-img" src="'+i(e.img)+'" onerror="src=\''+i(e.errorimg)+"'\">\x3c!-- ";return"ui_new"!=e.webui&&e.adsTag&&"360搜索推荐"!=e.source&&(a+='<span class="ads3-tag"></span>'),a+=' --\x3e</div></div><h2 class="ads3-h2"><span class="news-title"> '+i(e.title)+' </span></h2><div class="ads3-info">',"ui_new"==e.webui&&(e.icon?a+='<img class="news-img-add" src=\''+i(e.icon)+"' />":a+='<span class="news3-from currentIconText" style="background: '+i(e.bgColor)+';">'+i(e.iconText)+"</span>"),a+='<span class="ads3-from">'+i(e.source)+"</span>",e.time&&(a+='<span class="news0-date currentTimeStamp">'+i(e.time)+"</span>"),"ui_new"!=e.webui&&e.adsTag&&"360搜索推荐"!=e.source&&(a+='<span class="news0-date currentAds">广告</span>'),a+='</div><div style="clear: both;"></div></a><a class="news-dislike" href="'+i(e.url)+'" data-title="'+i(e.title)+'" data-source="'+i(e.newsType)+'" data-ct="dis-3" data-tpl="'+i(e.tplType)+'" data-clstk="'+e.clstk+'" data-rc="'+i(e.expId)+'" data-log='+i(e.log)+'><div class="dislike-pop-wrap"><div class=\'dislike-pop\'><div class="dislike-arrow"></div><p class=\'ads-dislike-item\' data-dislkrid="5" data-dislikerefer="lose interest" data-disliketext="不感兴趣">不感兴趣</p><p class=\'ads-dislike-item\' data-dislkrid="1" data-dislikerefer="Inappropriate content" data-disliketext="内容不宜">内容不宜</p><p class=\'ads-dislike-item\' data-dislkrid="4" data-dislikerefer="Occlusion interference" data-disliketext="遮挡干扰">遮挡干扰</p><p class=\'ads-dislike-item\' data-dislkrid="2" data-dislikerefer="Block such advertisements" data-disliketext="屏蔽此类行业广告">屏蔽此类广告</p></div></div></a></div>'}},function(e,t){e.exports=function(e){var t,n,i="undefined"!=typeof _encodeHTML?_encodeHTML:(t={"&":"&#38;","<":"&#60;",">":"&#62;",'"':"&#34;","'":"&#39;","/":"&#47;"},n=/&(?!#?\w+;)|<|>|"|'|\//g,function(e){return e?e.toString().replace(n,(function(e){return t[e]||e})):""}),a='<div id="'+i(e.id)+'" class="news-packet packet-ads4" data-source="'+i(e.newsType)+'"><a class="news-link" data-randomid="'+i(e.randomId)+'" data-video="'+i(e.video)+'" data-title="'+i(e.title)+'" data-ct="'+i(e.tplType)+'" data-source="'+i(e.newsType)+'" data-tpl="'+i(e.tplType)+'" data-href="'+i(e.url_encode)+'" data-rc="'+i(e.expId)+'" data-scene="newtab_feed" href="'+i(e.url)+'" data-clktk="'+i(e.clktk)+'" target="_blank"><div class="ads4-bd"><div class="ads4-images-link"><div id="'+i(e.videoContainerId)+'"></div>\x3c!-- ';return"ui_new"!=e.webui&&e.adsTag&&"360搜索推荐"!=e.source&&(a+='<span class="ads4-tag"></span>'),a+=' --\x3e</div></div><h2 class="ads4-h2"><span class="news-title"> '+i(e.title)+' </span></h2><div class="ads4-info">',"ui_new"==e.webui&&(e.icon?a+='<img class="news-img-add" src=\''+i(e.icon)+"' />":a+='<span class="news3-from currentIconText" style="background: '+i(e.bgColor)+';">'+i(e.iconText)+"</span>"),a+='<span class="ads4-from">'+i(e.source)+"</span>",e.time&&(a+='<span class="news0-date currentTimeStamp">'+i(e.time)+"</span>"),"ui_new"!=e.webui&&e.adsTag&&"360搜索推荐"!=e.source&&(a+='<span class="news0-date currentAds">广告</span>'),a+='</div><div style="clear: both;"></div></a><a class="news-dislike" href="'+i(e.url)+'" data-title="'+i(e.title)+'" data-source="'+i(e.newsType)+'" data-ct="dis-4" data-tpl="'+i(e.tplType)+'" data-clstk="'+e.clstk+'" data-rc="'+i(e.expId)+'" data-log='+i(e.log)+'><div class="dislike-pop-wrap"><div class=\'dislike-pop\'><div class="dislike-arrow"></div><p class=\'ads-dislike-item\' data-dislkrid="5" data-dislikerefer="lose interest" data-disliketext="不感兴趣">不感兴趣</p><p class=\'ads-dislike-item\' data-dislkrid="1" data-dislikerefer="Inappropriate content" data-disliketext="内容不宜">内容不宜</p><p class=\'ads-dislike-item\' data-dislkrid="4" data-dislikerefer="Occlusion interference" data-disliketext="遮挡干扰">遮挡干扰</p><p class=\'ads-dislike-item\' data-dislkrid="2" data-dislikerefer="Block such advertisements" data-disliketext="屏蔽此类行业广告">屏蔽此类广告</p></div></div></a></div>'}},function(e,t){e.exports=function(e){var t,n,i="undefined"!=typeof _encodeHTML?_encodeHTML:(t={"&":"&#38;","<":"&#60;",">":"&#62;",'"':"&#34;","'":"&#39;","/":"&#47;"},n=/&(?!#?\w+;)|<|>|"|'|\//g,function(e){return e?e.toString().replace(n,(function(e){return t[e]||e})):""}),a='<div id="'+i(e.id)+'" class="news-packet packet-ads2 packet-ads5 '+i(e.imgType)+'" data-source="'+i(e.newsType)+'"><div class="ads2-hd ads5-hd"><a class="news-link" data-title="'+i(e.title)+'" data-ct="'+i(e.tplType)+'" data-source="'+i(e.newsType)+'" data-tpl="'+i(e.tplType)+'" data-href="'+i(e.url_encode)+'" data-rc="'+i(e.expId)+'" data-scene="newtab_feed" href="'+i(e.url)+'" data-clktk="'+i(e.clktk)+'" target="_blank"><h2 class="ads2-h2 ads5-h2"><span class="news-title"> '+i(e.title)+' </span></h2></a></div><div class="ads2-info ads5-info"><a class="news-link" data-title="'+i(e.title)+'" data-ct="'+i(e.tplType)+'" data-source="'+i(e.newsType)+'" data-tpl="'+i(e.tplType)+'" data-href="'+i(e.url_encode)+'" data-rc="'+i(e.expId)+'" data-scene="newtab_feed" href="'+i(e.url)+'" data-clktk="'+i(e.clktk)+'" target="_blank">';return"ui_new"==e.webui&&(e.icon?a+='<img class="news-img-add" src=\''+i(e.icon)+"' />":a+='<span class="news3-from currentIconText" style="background: '+i(e.bgColor)+';">'+i(e.iconText)+"</span>"),a+='<span class="ads2-from ads5-from">'+i(e.source)+"</span>",e.time&&(a+='<span class="news0-date currentTimeStamp">'+i(e.time)+"</span>"),"ui_new"!=e.webui&&e.adsTag&&"360搜索推荐"!=e.source&&(a+='<span class="news0-date currentAds">广告</span>'),a+='</a></div><a class="news-dislike" href="'+i(e.url)+'" data-title="'+i(e.title)+'" data-source="'+i(e.newsType)+'" data-ct="dis-2" data-tpl="'+i(e.tplType)+'" data-clstk="'+e.clstk+'" data-rc="'+i(e.expId)+'" data-log='+i(e.log)+'><div class="dislike-pop-wrap"><div class=\'dislike-pop\'><div class="dislike-arrow"></div><p class=\'ads-dislike-item\' data-dislkrid="5" data-dislikerefer="lose interest" data-disliketext="不感兴趣">不感兴趣</p><p class=\'ads-dislike-item\' data-dislkrid="1" data-dislikerefer="Inappropriate content" data-disliketext="内容不宜">内容不宜</p><p class=\'ads-dislike-item\' data-dislkrid="4" data-dislikerefer="Occlusion interference" data-disliketext="遮挡干扰">遮挡干扰</p><p class=\'ads-dislike-item\' data-dislkrid="2" data-dislikerefer="Block such advertisements" data-disliketext="屏蔽此类行业广告">屏蔽此类广告</p></div></div></a></div>'}},function(e,t){e.exports=function(e){var t,n;return'<div id="'+("undefined"!=typeof _encodeHTML?_encodeHTML:(t={"&":"&#38;","<":"&#60;",">":"&#62;",'"':"&#34;","'":"&#39;","/":"&#47;"},n=/&(?!#?\w+;)|<|>|"|'|\//g,function(e){return e?e.toString().replace(n,(function(e){return t[e]||e})):""}))(e.domId)+'" class="swiper-ads-container-outbox"></div>'}},function(e,t){e.exports=function(e){var t,n,i="undefined"!=typeof _encodeHTML?_encodeHTML:(t={"&":"&#38;","<":"&#60;",">":"&#62;",'"':"&#34;","'":"&#39;","/":"&#47;"},n=/&(?!#?\w+;)|<|>|"|'|\//g,function(e){return e?e.toString().replace(n,(function(e){return t[e]||e})):""}),a="",r=e.data;if(r)for(var o,s=-1,l=r.length-1;s<l;)a+='<div class="news4-item clearfix"> <a class="news-link" data-title="'+i((o=r[s+=1]).subTitle)+'" data-source="'+i(o.newsType)+'" data-tpl="'+i(o.tplType)+'" data-log="'+i(o.log)+'" href="'+i(o.url)+'" target="_blank"> <span class="news-title">'+i(o.subTitle)+"</span> ","1"==o.is_new&&(a+=' <i class="news4-tag"></i> '),a+=" </a></div>";return a}},function(e){e.exports=JSON.parse('{"default":{"type":"default","desc":"默认搜索","url":"https://www.so.com/s?ie=utf-8&src=se7_newtab_new","default_url":"https://www.so.com/?src=se7_newtab_new","key":"q","params":{"ie":"utf-8","src":"se7_newtab_new"}},"so":{"type":"so","desc":"360搜索","url":"https://www.so.com/s?ie=utf-8&src=se7_newtab_new","default_url":"https://www.so.com/?src=se7_newtab_new","key":"q","params":{"ie":"utf-8","src":"se7_newtab_new"}},"sou":{"type":"sou","desc":"纳米AI搜索","url":"https://www.n.cn/?src=360se_vip_newpage","default_url":"https://www.n.cn/?src=360se_vip_newpage","key":"q","params":{"src":"360se_vip_newpage"}},"bing":{"type":"bing","desc":"Bing","url":"http://www.bing.com/search","default_url":"http://www.bing.com/search","key":"q","params":{"ie":"utf-8"}},"baidu":{"type":"baidu","desc":"百度","url":"https://www.baidu.com/s?&ie=utf-8","key":"wd","params":{"ie":"utf-8"}},"google":{"type":"google","desc":"Google","url":"http://www.google.com.hk/search?client=aff-cs-360se&ie=UTF-8","key":"q","params":{"client":"aff-cs-360se","ie":"UTF-8"}},"news_so":{"type":"news_so","desc":"360搜索","url":"http://news.so.com/ns?ie=utf-8&tn=news&src=se7_newtab_new","default_url":"http://sh.qihoo.com/?src=se7_newtab_new","key":"q","params":{"ie":"utf-8","tn":"news","src":"se7_newtab_new"}},"news_bing":{"type":"news_bing","desc":"Bing","url":"http://www.bing.com/search","default_url":"http://www.bing.com/search","key":"q","params":{"ie":"utf-8"}},"news_baidu":{"type":"news_baidu","desc":"百度","url":"http://news.baidu.com/ns?&ie=utf-8","key":"word","params":{"ie":"utf-8"}},"news_google":{"type":"news_google","desc":"Google","url":"http://news.google.com.hk/news/search?client=aff-cs-360se&ie=UTF-8","key":"q","params":{"client":"aff-cs-360se","ie":"UTF-8"}},"video_so":{"type":"video_so","desc":"360搜索","url":"http://video.so.com/v?ie=utf-8&src=se7_newtab_new","default_url":"http://video.so.com/?src=se7_newtab_new","key":"q","params":{"ie":"utf-8","src":"se7_newtab_new"}},"video_bing":{"type":"video_bing","desc":"Bing","url":"http://www.bing.com/search","default_url":"http://www.bing.com/search","key":"q","params":{"ie":"utf-8"}},"video_baidu":{"type":"video_baidu","desc":"百度","url":"http://video.baidu.com/v?&ie=utf-8","key":"word","params":{"ie":"utf-8"}},"video_google":{"type":"video_google","desc":"Google","url":"http://www.google.com.hk/search?client=aff-cs-360se&ie=UTF-8","key":"q","params":{"tbm":"vid","client":"aff-cs-360se","ie":"UTF-8"}},"image_so":{"type":"image_so","desc":"360搜索","url":"http://image.so.com/i?ie=utf-8&src=se7_newtab_new","default_url":"http://image.so.com/?src=se7_newtab_new","key":"q","params":{"ie":"utf-8","src":"se7_newtab_new"}},"image_bing":{"type":"image_bing","desc":"Bing","url":"http://www.bing.com/search","default_url":"http://www.bing.com/search","key":"q","params":{"ie":"utf-8"}},"image_baidu":{"type":"image_baidu","desc":"百度","url":"http://image.baidu.com/i?&ie=utf-8","key":"word","params":{"ie":"utf-8"}},"image_google":{"type":"image_google","desc":"Google","url":"http://images.google.com.hk/images?client=aff-cs-360se&ie=UTF-8","key":"q","params":{"client":"aff-cs-360se","ie":"UTF-8"}},"music_so":{"type":"music_so","desc":"360搜索","url":"http://s.music.so.com/s?ie=utf-8&src=se7_newtab_new","default_url":"http://music.so.com/?src=se7_newtab_new","key":"q","params":{"ie":"utf-8","src":"se7_newtab_new"}},"music_bing":{"type":"music_bing","desc":"Bing","url":"http://www.bing.com/search","default_url":"http://www.bing.com/search","key":"q","params":{"ie":"utf-8"}},"music_baidu":{"type":"music_baidu","desc":"百度","url":"http://music.baidu.com/search?&ie=utf-8","key":"key","params":{"ie":"utf-8"}},"music_sogou":{"type":"music_sogou","desc":"搜狗","url":"http://mp3.sogou.com/music?ie=UTF-8","key":"query","params":{"ie":"UTF-8"}},"map_so":{"type":"map_so","desc":"360搜索","url":"http://map.so.com/?ie=utf-8&t=map&src=se7_newtab_new","default_url":"http://map.so.com/?src=se7_newtab_new","key":"k","params":{"ie":"utf-8","t":"map","src":"se7_newtab_new"}},"map_bing":{"type":"map_bing","desc":"Bing","url":"http://www.bing.com/search","default_url":"http://www.bing.com/search","key":"q","params":{"ie":"utf-8"}},"map_baidu":{"type":"map_baidu","desc":"百度","url":"http://map.baidu.com/m?&ie=utf-8","key":"word","params":{"ie":"utf-8"}},"map_google":{"type":"map_google","desc":"Google","url":"http://ditu.google.cn/maps?client=aff-cs-360se&ie=UTF-8","key":"q","params":{"client":"aff-cs-360se","ie":"UTF-8"}},"wenda_so":{"type":"wenda_so","desc":"360问答","url":"http://wenda.so.com/search/?ie=utf-8&src=se7_newtab_new","default_url":"http://wenda.so.com/?src=se7_newtab_new","key":"q","params":{"ie":"utf-8","src":"se7_newtab_new"}},"wenda_baidu":{"type":"wenda_baidu","desc":"百度","url":"http://zhidao.baidu.com/search?&ie=utf-8","key":"word","params":{"ie":"utf-8"}}}')},function(e,t,n){"use strict";(function(t){var i=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],i=!0,a=!1,r=void 0;try{for(var o,s=e[Symbol.iterator]();!(i=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);i=!0);}catch(e){a=!0,r=e}finally{try{!i&&s.return&&s.return()}finally{if(a)throw r}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};function a(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var r=n(2),o=n(31),s=n(5),l=n(22),c=null,d={},u=[],p={get:function(e){try{return JSON.parse(localStorage[e]||"[]")}catch(e){return{}}},set:function(e,t){localStorage[e]=JSON.stringify(t)},setsub:function(e,t,n){var i=this.get(e);i[t]=n,this.set(e,i)}},h=r.api.GetMID(),f=t("#so-hotword"),g=t(".so-hotword-wrap"),m=t("#enable-push-oftenso"),v=p.get("oftenSoDel")||[],w=t("#so-hotword-poplist"),b=function(e,n){for(var i=[],a=['<li data-from="{from}" class="oitem {className}">','   <a class="item {from}" href="{url}" target="_blank" title="{title}" data-from="{from}">',"       {icon}","       <span>{kw}</span>","   </a>",'   <a class="del"></a>',"</li>"].join(""),o=function(o,s){if(-1!=v.indexOf(e[o].text)||-1!=v.indexOf(e[o].kw))return"continue";null!=n&&n.push(e[o]);var l={};if(e[o].locked)l={url:e[o].link,kw:r.htmlEncode(e[o].text||""),icon:e[o].imgurl?'<img class="webSiteIcon '+e[o].iconCls+'" src="'+r.replaceImgHost(e[o].imgurl)+'">':"",title:r.htmlEncode(e[o].text),from:"ad_union",className:e[o].className||""};else{var d=t("body").data("mode");l={url:"https://www.so.com/s?ie=utf-8&src="+("search"==d?"se7_home_isearch":"se7_isearch_big_isearch")+(window._SearchChannel?"&ls="+window._SearchChannel:"")+"&q="+encodeURIComponent(e[o].kw||""),kw:r.htmlEncode(e[o].kw||""),icon:e[o].icon?'<img class="webSiteIcon '+e[o].iconCls+'" src="'+r.replaceImgHost(e[o].icon)+'">':"",title:r.htmlEncode(e[o].kw),from:e[o].from?e[o].from:"",className:e[o].className||""}}c=a.replace(/{([^{}]+)}/gi,(function(e,t){return l[t]||""})),i.push(c)},s=0,l=e.length;s<l;s++){var c;o(s)}return i},y=!0,_=[];function S(){setTimeout((function(){var e=k().noShowDatas,n=b(e);w.find(".so-hotword-poplist-box").html("").append(n.join("")),t(".so-hotword-poplist .oitem").length&&!1!==r.storage.get("settings")["hotwords-show"]&&t(".so-hotword-poplist-arrow").addClass("show")}))}var x=0;function k(){for(var e=[],t=[],n=document.getElementsByClassName("oitem"),i=[],a=0;a<n.length;a++)n[a].className.toString().indexOf("soHotPop-oitem")<0&&i.push(n[a]);for(var r=0;r<i.length;r++){if(i[r].offsetTop>0&&_[r]){var o=Object.assign({},_[r]);o.className="soHotPop-oitem",t.push(o)}else e.push(i[r])}return x=e.length,{showedDatas:e,noShowDatas:t}}var C=null,T=null;e.exports={init:function(){if("0"==p.get("oftenSo")&&(p.setsub("settings","hotwords-show",!1),delete localStorage.oftenSo),!1===p.get("settings")["hotwords-show"])return m.attr("checked",!0),g.hide(),void setTimeout((function(){l.updateTipPosition()}),50);window.isSoInit=!0,function(){m.on("change",(function(){this.checked?(p.setsub("settings","hotwords-show",!1),g.hide()):(p.setsub("settings","hotwords-show",!0),g.show())}));var e=t(".state-button");e.on("click",(function(e){e.stopPropagation(),e.preventDefault();var n=t(this);(g=n.parents(".so-hotword-wrap")).find(".action-content-wrap").toggle(),n.hasClass("reset")&&(n.removeClass("reset").addClass("gear"),g.find(".oitem").removeClass("del-show hover"),g.find(".action-content-wrap").hide(),n.html(""))})),t(".edit").on("click",(function(t){t.stopPropagation(),t.preventDefault(),g.find(".oitem").addClass("del-show hover"),e.removeClass("gear").addClass("reset"),e.html("完成"),g.find(".action-content-wrap").hide()})),t(".last").on("click",(function(e){e.stopPropagation(),e.preventDefault(),g.find(".action-content-wrap").hide(),g.find(".noshow-prompt").show()})),t(".noshow-prompt").on("click",".continue-use,.close",(function(e){e.stopPropagation(),e.preventDefault(),g.find(".noshow-prompt").hide()})),t(".noshow-prompt").on("click",".noshow",(function(e){e.stopPropagation(),e.preventDefault();t(".search-pop-tip");p.setsub("settings","hotwords-show",!1),g.hide(),m.attr("checked",!0),g.find(".noshow-prompt").hide(),t("#enable-hotwords").attr("checked",!1)})),t(".noshow-prompt").on("click","ui,li",(function(e){e.stopPropagation(),e.preventDefault()})),g.on("click",".del",(function(e){e.stopPropagation(),e.preventDefault();e.target;var n=t(this).parents(".oitem").find(".item").attr("title");function i(){t(".so-hotword-poplist li").length||(t(".so-hotword-poplist-arrow").removeClass("open"),t(".so-hotword-poplist").removeClass("show"),t(".so-hotword-popContent").hide())}if(t(this).parents(".so-hotword-poplist").length){for(var a=t(".so-hotword li"),r=0;r<a.length;r++){if(t(".so-hotword li").eq(r).find("a").eq(0).attr("title")==n){t(".so-hotword li").eq(r).remove();break}}t(this).parents(".oitem").remove(),i()}else{t(this).parents(".oitem").remove();var o=x;setTimeout((function(){k();for(var e=x-o+1,n=0;n<e;n++)t(".so-hotword-poplist li").eq(0).remove();i()}))}-1==v.indexOf(n)&&v.push(n),v.slice(0,30),p.set("oftenSoDel",v)})),g.delegate(".item","click",(function(e){o.HotKeyword.clearSugExpires()})),t("body").on("click",(function(e){var n=e.target;t.contains(g.find(".action-content-wrap").get(0),n)||t.contains(g.find(".so-hotword-action").get(0),n)||t(".action-content-wrap").hide(),n.className.indexOf("so-hotword-poplist")>-1||n.className.indexOf("so-hotword-poplist-arrow")>-1||n.className.indexOf("oitem")>-1||n.className.indexOf("item")>-1||!t(".so-hotword-poplist-arrow").hasClass("open")||t(".so-hotword-poplist-arrow").trigger("click")})),t(".so-hotword-poplist-arrow").on("click",(function(e){t(".so-hotword-poplist li").length&&(t(".dark-mode .webSiteIcon.defaultIcon").attr("src","https://se1.360simg.com/t01347adf0c9fbc78fa.png"),t(this).toggleClass("open"),t(".so-hotword-poplist").toggleClass("show"),t(this).hasClass("open")&&r.Stat.send("1086.3294.gif"))})),g.delegate(".so-hotword .oitem .item","click",(function(e){t(this).parents(".so-hotword-poplist").length?r.Stat.send("1086.6678.gif"):r.Stat.send("1086.4534.gif"),r.Stat.send("1207.8355.gif",{_referer:window.mode}),r.puvDot({s:25,n:1,item_id:3})}))}(),m.removeAttr("checked"),p.setsub("settings","hotwords-show",!0);var e=function(e,n){return new Promise((function(i,a){if(n)var r={url:e,dataType:"jsonp",jsonp:"cb"};else r={url:e,dataType:"jsonp",timeout:3e3,data:{mid:h,src:"qr_senewtab",guid:"",crec:1==localStorage.getItem("isShowpersonalNews")?1:0},jsonp:"callback",jsonpCallback:"__query_rec"};t.ajax(r).done((function(e){i(e)})).fail((function(e){a()}))})).then((function(e){return e})).catch((function(e){if(n)return[];g.hide()}))},n=function(){window.isSoHotAdsInit=!0,Promise.all([e("https://query.rec.360.cn/gasucs/query_rec",0),e("https://cloud.browser.360.cn/site/msgm?mt=newtabsearch",1)]).then((function(e){var n=i(e,2),a=n[0];if(0!=(o=n[1]).length)var o=o.data.newtabsearch.data;else o=o;t.each(o,(function(e,t){o[e].locked&&a.splice(e,1,o[e])})),function(e){if(!e||0==e.length)return g.hide(),void setTimeout((function(){l.updateTipPosition()}),50);for(var n=b(e,_),i=0;i<_.length;i++)_[i].iconCls="",_[i].icon||_[i].locked||(_[i].icon="https://se1.360simg.com/t014f032e0fe45ea0d0.png",_[i].iconCls="defaultIcon");f.append(n.join("")).find("li").each((function(e,n){var i=t(this);if(i.position().top>0)return i.addClass("last"),!1})),!0!==r.storage.get("blank_page_options")["is-blank-page"]&&y&&(r.Stat.send("1086.2574.gif"),y=!1),S(),u=e,window.oftenSoWordList=u}(a)}))};c={showid:"UbyKpx",reqtimes:1,impct:1},new s.SW({data:c}).getAdsData().then((function(e){if(e&&e.length){g.show();var i=e[0];d=i;var o="";o+='<span class="oftenSoInsertAds" data-randomid="'+i.randomId+'">\n\t\t\t\t\t'+i.title+"\n\t\t\t\t</span>",t(".so-hotword-wrap #so-hotword").before(o),t(".so-hotword-wrap .oftenSoInsertAds").show();var s=t(".so-hotword-wrap .oftenSoInsertAds").get(0).getBoundingClientRect();t(".so-hotword-wrap #so-hotword").css({width:"calc(100% - "+(s.width+44)+"px)",left:s.width+44+"px","padding-left":"16px"}).addClass("adsShowing"),r.Stat.setLog([].concat(a(d.imptk),a(d.adstk),[d.impurl+d.imparg])),t(".oftenSoInsertAds").unbind().on("mousedown",(function(e){e.preventDefault(),e.stopPropagation(),C=(new Date).valueOf()})).on("mouseup",(function(e){e.preventDefault(),e.stopPropagation(),T=(new Date).valueOf();var n="";switch(localStorage.getItem("flowMode")){case"newsflow_a":n="1579.6171.gif";break;case"newsflow_b":n="1579.7079.gif";break;case"newsflow_c":n="1579.8724.gif";break;case"newsflow_d":n="1579.2338.gif"}n&&r.Stat.sendFlow(n,{_referer:"search"}),r.Stat.send("1207.6271.gif");for(var i=t(this).get(0).getBoundingClientRect(),a={mousedownTime:C,mouseupTime:T,width:i.width,height:i.height,offsetX:Math.ceil(e.clientX-i.left),offsetY:Math.ceil(e.clientY-i.top)},o=d.clktk||[],s=[],l=0;l<o.length;l++)s.push(r.replaceMacro(o[l],a));s&&r.Stat.setLog(s);var c=r.replaceMacro(d.url,a);window.openWin(c,"_blank")})),setTimeout((function(){S(),n()}))}else g.show(),n()}),(function(e){g.show(),n()}))}}}).call(this,n(1))},function(e,t,n){"use strict";(function(t){var i=n(2);function a(e){console.log("==========开屏广告start====");var t=document.createElement("script");t.src="https://static-ssl.mediav.com/js/new_open_screen_ad.js",t.type="text/javascript",t.async="async",t.charset="utf-8";try{var n=document.getElementsByTagName("script")[0];n.parentElement.insertBefore(t,n);var a=function(){NEW_OPEN_SCREEN({showid:"8LjuDZ",position:"center",adOptions:{refurl:"",mid:i.api.GetMID()},onFail:function(e){},onSuccess:function(){console.log("开屏广告请求成功"),localStorage.setItem("KPdata",JSON.stringify(e)),window.showKPAds=!0,i.Stat.send("1359.9243.gif")},onClose:function(){console.log("close")},onCountDowmEnd:function(){console.log("countdown")}})};t.readyState?t.onreadystatechange=function(){"loaded"!=t.readyState&&"complete"!=t.readyState||(t.onreadystatechange=null,a())}:t.onload=function(){a()}}catch(e){}}t(document).on("click","#QIHOO__WEB__NEW_OPENSCREEN__AD",(function(e){i.Stat.send("1359.3399.gif")}));e.exports={init:function(){var e=localStorage.getItem("newpagesConfig")||"";e=e?JSON.parse(e).kpAds:{percent:[]};var n=localStorage.getItem("KPdata")||JSON.stringify({temp:"1698063572000",showNum:0}),r=JSON.parse(n),o=new Date,s=Date.parse(o),l=window.userId<=e.percent[1]&&window.userId>=e.percent[0],c=(s-r.temp)/1e3/60>=e.nextShowTimeMin,d=e.maxShow>r.showNum;"nav"==window.mode&&e&&e.open&&c&&d&&l&&t.ajax({url:"https://mini.browser.360.cn/ai/adinfo",data:{mid:i.api.GetMID(),v:i.api.GetVersion()}}).fail((function(e){r.temp=s,r.showNum++,a(r)})).done((function(e){1!==e.data.nad&&(r.temp=s,r.showNum++,a(r))}))}}}).call(this,n(1))},function(e,t,n){"use strict";(function(t){var i=n(2),a=n(132),r=(n(133),[]),o=["#FE9500","#FF6B1A","#0DC36E","#00C1C8","#2D85FA","#EE3B3B","#5E5C6C"];e.exports={init:function(){var e=localStorage.getItem("newpagesConfig")||"";e=e?JSON.parse(e).sellNav:{},r=e&&e.data||[],e&&!0===e.show&&r.length?(r=r.slice(0,12),t(".sellNav").show(),function(){for(var e=0;e<r.length;e++){var n=i.getRandomNum(0,o.length-1);r[e].img=i.replaceImgHost(r[e].img),r[e].bgc=o[n],r[e].bgw=r[e]&&r[e].title&&r[e].title.split("")[0]||""}t(".wrap-site-topBox").hide(),t(".sellNav").html(a(r)),t(".sellNavItem").click((function(){i.Stat.sendFlow("1579.6171.gif",{_referer:"bigad"})}))}(),t(".sellNav .pic , .sellNav .title , .sellNav .defaultSpan").unbind().on("click",(function(e){var n=t(this).parents(".sellNavItem").data("href"),a=t(this).parents(".sellNavItem").data("title")||"",r=t(this).parents(".sellNavItem").data("index")||0;i.puvDot({s:25,n:10,item_id:1,item_name:a}),i.Stat.send("1133.8925.gif"),i.Stat.send("1207.8984.gif"),i.Stat.send("1552.2214.gif",{_referer:"big_"+r}),window.openWin(n,"_blank")}))):(t(".sellNav").hide(),t(".wrap-topBox").addClass("allBorder"))}}}).call(this,n(1))},function(e,t){e.exports=function(e){var t,n,i="undefined"!=typeof _encodeHTML?_encodeHTML:(t={"&":"&#38;","<":"&#60;",">":"&#62;",'"':"&#34;","'":"&#39;","/":"&#47;"},n=/&(?!#?\w+;)|<|>|"|'|\//g,function(e){return e?e.toString().replace(n,(function(e){return t[e]||e})):""}),a='<div class="sellNavContent">',r=e;if(r)for(var o,s=-1,l=r.length-1;s<l;)o=r[s+=1],a+='<span class="sellNavItem inlineBlock fl cursor" data-index="'+i(s)+'" data-isads="'+i(!0===o.isAds)+'" data-href="'+i(o.href)+'" data-title="'+i(o.title)+'"><img class="pic" src="'+i(o.img)+'" onerror="this.style.display=\'none\'" alt=""><span class="defaultSpan" style="background-color: '+i(o.bgc)+';">'+i(o.bgw)+'</span><span class="title inlineBlock cursor">'+i(o.title)+"</span></span>";return a+='<span class="clearfix"></span></div><div class="line"></div>'}},function(e,t){e.exports=function(e){var t,n,i="undefined"!=typeof _encodeHTML?_encodeHTML:(t={"&":"&#38;","<":"&#60;",">":"&#62;",'"':"&#34;","'":"&#39;","/":"&#47;"},n=/&(?!#?\w+;)|<|>|"|'|\//g,function(e){return e?e.toString().replace(n,(function(e){return t[e]||e})):""}),a='<ul data-pid="topSiteNav">',r=e;if(r)for(var o,s=-1,l=r.length-1;s<l;)a+='<li title="'+i((o=r[s+=1]).title)+'"  data-title="'+i(o.title)+'" data-index="'+i(s)+'"><a class="icon-box" target="_blank" href="'+i(o.href)+'"  title="'+i(o.title)+'" data-index="'+i(s)+'"  data-title="'+i(o.title)+'" > <img onerror="src=\''+i(o.defaultIcon)+'\'" src="'+i(o.img)+'" class="sma-icon" /></a><div><a target="_blank" title="'+i(o.title)+'" data-index="'+i(s)+'" data-title="'+i(o.title)+'" href="'+i(o.href)+'">'+i(o.title)+"</a></div></li>";return a+="</ul>"}},function(e,t,n){"use strict";(function(t){var i=n(2),a=(n(5),n(135)),r=n(136),o=n(137),s=0,l=[[],[],[],[]],c={},d=n(138),u=[[],[],[],[]],p=[[],[],[],[]],h=[1,1,1,1],f=[!1,!1,!1,!1],g=["https://mbsug.ssl.so.com/sug-hot?channel=type_news&realhot_limit=15&src=se_newtab_hot","http://mini.browser.360.cn/newtab/se/ranking/video?size=18","http://mini.browser.360.cn/newtab/se/ranking/movies?size=31","http://mini.browser.360.cn/newtab/se/ranking/tv?size=31"];function m(){t(".hotspot .hotspot-loading").show(),t(".hotspot .hotspot-refresh").hide(),t(".hotspot .hotspot-nodata").hide(),t(".hotspot .pageContral").hide();var e=s;t.ajax({url:g[s],dataType:"JSONP",data:{mid:i.api.GetMID(),ver:i.api.GetVersion()},timeout:3e3}).done((function(n){if(l[e]=n&&n.data||[],l[e].length)if(0===e){for(var r=0;r<l[e].length;r++)l[e][r].num=r,l[e][r].randomId="rid"+r+Math.random().toString(36).slice(-8),0===r&&(l[e][r].seeNum=i.formatNum(l[e][r].score)),l[e][r].dataType="news";(c=l[e][0]).img=d,u[e]=l[e].slice(1,8),p[e]=l[e].slice(8,15),y=c,t(".hotspot .hotspotImgNews").html(a(y)),w(),v(u[e],".hotspot .hotspotWordList"),l[e].length>6&&(f[e]=!0,t(".hotspot .pageContral").show(),t(".hotspot .pageNum1").html(1),t(".hotspot .pageNum1").addClass("active"),t(".hotspot .pageNum2").removeClass("active"),t(".hotspot .pageRight").removeClass("disable"),t(".hotspot .pageLeft").addClass("disable"))}else if(1===e){for(var s=0;s<l[e].length;s++)l[e][s].num=s+1,l[e][s].randomId="rid"+s+Math.random().toString(36).slice(-8),l[e][s].seeNum=l[e][s].hot,l[e][s].dataType="video";u[e]=l[e].slice(0,9),p[e]=l[e].slice(9,18),v(u[e],".hotspot .hotspotVideoWordList"),l[e].length>9&&(f[e]=!0,t(".hotspot .pageContral").show(),t(".hotspot .pageNum1").addClass("active"),t(".hotspot .pageNum2").removeClass("active"),t(".hotspot .pageLeft").addClass("disable"),t(".hotspot .pageRight").removeClass("disable"),t(".hotspot .pageNum1").html(1))}else{for(var h=0;h<l[e].length;h++)l[e][h].num=h+1,l[e][h].url="https://www.so.com/s?q="+(encodeURIComponent(l[e][h].title)+encodeURIComponent(2==e?" 电影":" 电视剧"))+"&src=se_newtab_hot",l[e][h].randomId="rid"+h+Math.random().toString(36).slice(-8),l[e][h].dataType=2===e?"movie":"tv";var g=[l[e][1],l[e][0],l[e][2]],m="",b="";2===e?(m=".hotspot .hotspotMovieWordList",b=".hotspot .hotspotMovieTop3"):(m=".hotspot .hotspotTeleplayWordList",b=".hotspot .hotspotTelTop3"),function(e,n){t(n).html(o(e)),w()}(g,b),u[e]=l[e].slice(3,11),p[e]=l[e].slice(11,31),v(u[e],m),l[e].length>11&&(f[e]=!0,t(".hotspot .pageContral").show(),t(".hotspot .pageNum1").addClass("active"),t(".hotspot .pageNum2").removeClass("active"),t(".hotspot .pageLeft").addClass("disable"),t(".hotspot .pageRight").removeClass("disable"),t(".hotspot .pageNum1").html(1))}else t(".hotspot .hotspot-nodata").show();var y;t(".hotspot .hotspot-loading").hide()})).fail((function(n){t(".hotspot .hotspot-loading").hide(),e===s&&t(".hotspot .hotspot-refresh").show()}))}function v(e,n){t(n).html(r(e)),w()}function w(){t(".hotspot .pageTrans").unbind().on("click",(function(e){if(!t(this).hasClass("disable")){var n="";0===s?n=".hotspot .hotspotWordList":1===s?n=".hotspot .hotspotVideoWordList":2===s?n=".hotspot .hotspotMovieWordList":3===s&&(n=".hotspot .hotspotTeleplayWordList"),t(this).hasClass("pageLeft")?(h[s]=1,t(".hotspot .pageLeft").addClass("disable"),t(".hotspot .pageRight").removeClass("disable"),v(u[s],n),2===s?t(".hotspot .hotspotMovieTop3").show():3===s&&t(".hotspot .hotspotTelTop3").show()):(h[s]=2,t(".hotspot .pageLeft").removeClass("disable"),t(".hotspot .pageRight").addClass("disable"),2===s?t(".hotspot .hotspotMovieTop3").hide():3===s&&t(".hotspot .hotspotTelTop3").hide(),v(p[s],n)),t(".hotspot .pageNum1").html(h[s])}})),t(".hotspot .hotspot-tabs .hotspot-tabs-item").unbind().on("click",(function(e){var n=Number(t(this).data("index"));if(n!==s)if(t(".hotspot .hotspot-tabs").find("span").eq(s).removeClass("active"),t(this).addClass("active"),t(".hotspot .hotspot-list-block").find("li").eq(s).hide(),t(".hotspot .hotspot-list-block").find("li").eq(n).show(),l[s=n]&&l[s].length){if(t(".hotspot .hotspot-loading").hide(),t(".hotspot .hotspot-refresh").hide(),t(".hotspot .hotspot-nodata").hide(),f[s]){t(".hotspot .pageContral").show();var i=h[s];1===i?(t(".hotspot .pageNum1").addClass("active"),t(".hotspot .pageNum2").removeClass("active"),t(".hotspot .pageLeft").addClass("disable"),t(".hotspot .pageRight").removeClass("disable")):(t(".hotspot .pageNum2").addClass("active"),t(".hotspot .pageNum1").removeClass("active"),t(".hotspot .pageRight").addClass("disable"),t(".hotspot .pageLeft").removeClass("disable")),t(".hotspot .pageNum1").html(i)}}else m()})),t(".hotspot .hotspot-refresh .reload").unbind().on("click",(function(e){m()})),t(".hotspot .imgNewsBox, .hotspot .wordItem, .hotspot .video-item").unbind().on("click",(function(e){e.stopPropagation(),e.preventDefault();var n=function(e){if(!e)return"";for(var t={},n=0;n<l[s].length;n++)if(l[s][n].randomId==e){t=l[s][n];break}return t}(t(this).data("randomid"));i.Stat.send("1133.8925.gif"),i.Stat.send("1207.2092.gif");var a=localStorage.getItem("flowMode");if("newsflow_a"===a?i.Stat.sendFlow("1579.6171.gif",{_referer:"info"}):"newsflow_b"===a&&i.Stat.sendFlow("1579.7079.gif",{_referer:"info"}),i.puvDot({s:25,n:1,item_id:4}),n.url){var r=new Function("return "+"/(src=)([^&]*)/gi")();n.url=n.url.replace(r,"src=se_newtab_hot"),n.url.includes("src=")||(n.url+="&src=se_newtab_hot"),window.openWin(n.url,"_blank")}}))}e.exports={init:function(){var e=localStorage.getItem("newpagesConfig")||"";(e=e?JSON.parse(e).hotspot:{})&&!1===e.show?t(".hotspot").hide():m()}}}).call(this,n(1))},function(e,t){e.exports=function(e){var t,n,i="undefined"!=typeof _encodeHTML?_encodeHTML:(t={"&":"&#38;","<":"&#60;",">":"&#62;",'"':"&#34;","'":"&#39;","/":"&#47;"},n=/&(?!#?\w+;)|<|>|"|'|\//g,function(e){return e?e.toString().replace(n,(function(e){return t[e]||e})):""});return'<div class="imgNewsBox cursor" id="hotspotNews-'+i(e.randomId)+'" data-randomid="'+i(e.randomId)+'" data-type="'+i(e.dataType)+'"><a class="imgBox inlineBlock cursor" data-randomid="'+i(e.randomId)+'" data-type="'+i(e.dataType)+'"><img class="img" src="'+i(e.img)+'" alt=""></a><span class="imgNewsContent inlineBlock fl"><span class="titleBox inlineBlock fl"><span class="title inlineBlock cursor" data-randomid="'+i(e.randomId)+'" data-type="'+i(e.dataType)+'">'+i(e.title)+'</span><span class="seeNum inlineBlock cursor fl" data-randomid="'+i(e.randomId)+'" data-type="'+i(e.dataType)+'">'+i(e.seeNum)+'人 在看</span><span class="clearfix"></span></span><span class="imgNewsArrow inlineBlock cursor fr" data-randomid="'+i(e.randomId)+'" data-type="'+i(e.dataType)+'"></span></span><span class="clearfix"></span></div>'}},function(e,t){e.exports=function(e){var t,n,i="undefined"!=typeof _encodeHTML?_encodeHTML:(t={"&":"&#38;","<":"&#60;",">":"&#62;",'"':"&#34;","'":"&#39;","/":"&#47;"},n=/&(?!#?\w+;)|<|>|"|'|\//g,function(e){return e?e.toString().replace(n,(function(e){return t[e]||e})):""}),a="",r=e;if(r)for(var o,s=-1,l=r.length-1;s<l;)a+='<a class="wordItem" id="hotspotNews-'+i((o=r[s+=1]).randomId)+'" data-randomid="'+i(o.randomId)+'" data-type="'+i(o.dataType)+'"><span class="sign inlineBlock fl sign-'+i(o.num)+'">'+i(o.num)+'</span><span class="title inlineBlock fl">'+i(o.title)+"</span>",o.face&&(a+='<img class="inlineBlock fl" src="'+i(o.face)+'" alt="">'),o.seeNum&&(a+='<span class="seeNum inlineBlock fr">'+i(o.seeNum)+"</span>"),a+='<div class="clearfix"></div></a>';return a}},function(e,t){e.exports=function(e){var t,n,i="undefined"!=typeof _encodeHTML?_encodeHTML:(t={"&":"&#38;","<":"&#60;",">":"&#62;",'"':"&#34;","'":"&#39;","/":"&#47;"},n=/&(?!#?\w+;)|<|>|"|'|\//g,function(e){return e?e.toString().replace(n,(function(e){return t[e]||e})):""}),a="",r=e;if(r)for(var o,s=-1,l=r.length-1;s<l;)a+='<div class="hotspot-video-top video-top-'+i((o=r[s+=1]).num)+'"><a class="video-item" data-randomid="'+i(o.randomId)+'" data-type="'+i(o.dataType)+'"><div class="video-img-wrap"><div class="top-king top-king-"'+i(o.num)+'"></div><div class="video-img-inner video-img-def"><img class="video-img" src="'+i(o.cover)+'" alt=""><span class="video-mask-block">'+i(o.pubdate)+'</span></div></div><p class="video-title">'+i(o.title)+'</p></a><p class="video-seeNum"><span class="seeNum inlineBlock">'+i(o.pv)+"</span>",o.percent>0&&(a+='<span class="inlineBlock video-percent percent-up"></span>'),o.percent<0&&(a+='<span class="inlineBlock video-percent percent-down"></span>'),0==o.percent&&(a+='<span class="inlineBlock video-percent percent-up"></span>'),a+="</p></div>";return a}},function(e,t,n){e.exports=n.p+"images/c44c47ba.png"},function(e,t,n){"use strict";(function(t){var i=n(140);e.exports={init:function(){var e=localStorage.getItem("newpagesConfig")||"";if((e=e?JSON.parse(e).sideTab:{})&&!0===e.show){var n=e&&e.sideTabData||[];if(n.length){for(var a="",r=[],o="",s=0;s<n.length;s++){var l=n[s];!0===l.show&&l.nav&&l.nav.length&&(a+='<div class="side-kx side-kx-'+s+'">\n\t\t\t\t\t\t\t\t\t\t<div class="hotBox">\n\t\t\t\t\t\t\t\t\t\t\t<div class="hotBox-title sideTab-header" ></div>\n\t\t\t\t\t\t\t\t\t\t\t<div class="sideTab-content"></div>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</div>',r.push({parentClass:".side-kx-"+s,navs:l.nav||[],sign:"360_79aabe15",scene:l.scene||"",swiperLoopTime:l.swiperLoopTime||3}),!0!==l.isTopFixed||o||(o=".side-kx-"+s))}t(".sideTabBeforeStart").after(a),setTimeout((function(){for(var e=0;e<r.length;e++)i.renderSideTab(r[e]);t(o).get(0).getBoundingClientRect();t(document).on("scroll",(function(e){var n=t(".sideTabFixedCritical").get(0).getBoundingClientRect();t(o).next().get(0).getBoundingClientRect();n.top<0?t(o).addClass("sticky"):t(o).removeClass("sticky")}))}))}}}}}).call(this,n(1))},function(e,t,n){"use strict";(function(t){var i=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],i=!0,a=!1,r=void 0;try{for(var o,s=e[Symbol.iterator]();!(i=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);i=!0);}catch(e){a=!0,r=e}finally{try{!i&&s.return&&s.return()}finally{if(a)throw r}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};function a(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}n(2);e.exports={renderSideTab:function(e){var r=n(2),o=n(5),s=n(32).CubeListNews,l=n(141),c=n(142),d=n(33),u=(window.VERSION,r.api.GetMID(),e.parentClass),p=u+" ",h=e.navs,f=null,g=null,m=0,v=null,w=[],b=[],y=[],_=[],S=[],x=null,k=0,C=null,T={};function I(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(!e)return"";for(var n={},i=0;i<t.length;i++)if(t[i].randomId==e){n=t[i];break}return n}function D(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(!e)return"";for(var n=-1,i=0;i<t.length;i++)if(t[i].randomId==e){n=i;break}return n}function E(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"img";return new Promise((function(t,n){var i=h[m];v={showid:"img"==e?"KjN8E7":"6AmXVX",reqtimes:1,impct:"img"==e?i.imgAdsPosition.length:i.wordAdsPosition.length},new o.SW({data:v}).getAdsData().then((function(e){t(e)}),(function(e){t("")}))}))}function M(){w=[],b=[],y=[],_=[],S=[],k=0,x=null,clearTimeout(C);var n=Object.keys(T)||[];if(n.length)for(var o=0;o<n.length;o++)T[n[o]]&&clearInterval(T[n[o]]);T={},t(p+".rightCardSeeMoreBtn").hide(),t(p+".sideTab-content").html('<span class="sideTabLoading"></span>'),B(1),Promise.all([new Promise((function(e,t){var n=1==localStorage.getItem("isShowpersonalNews")?1:0;g.cubeid=n?h[m].closePersonnalCubeid:h[m].cubeid,g.c=h[m].cubeid,f.getNewsData(g).then((function(t){e(t)}),(function(t){e("")}))})),E("img"),E("word")]).then((function(n){var o=i(n,3),s=o[0],l=o[1],v=o[2],T=s&&s.data&&s.data.res||[];if(T&&T.length){var D={ext:s.ext||{},sid:s.sid||"",uid:s.uid||"",sign:g.sign||"",scene:g.scene||"",channel:h[m].cubeid||""},E=(T=f.filterNewsData(T,D)).slice(0,4),M=T.slice(4,9);if(l&&h[m].imgAdsPosition.length)for(var F=h[m].imgAdsPosition,L=0;L<F.length;L++)E[F[L]]&&l[L]&&(_.push(l[L]),E.splice(F[L],1,l[L]));for(var N=0;N<E.length;N++)"news"==E[N].dataType&&b.push(E[N]);if(v&&h[m].wordAdsPosition.length)for(var j=h[m].wordAdsPosition,G=0;G<j.length;G++)M[j[G]]&&v[G]&&(S.push(v[G]),M.splice(j[G],1,v[G]));for(var R=0;R<M.length;R++)"news"==M[R].dataType&&y.push(M[R]);w=[].concat(a(E),a(M)),t(p+".sideTab-content").html(c({channel:h[m].channel,parentClass:u.split(".")[1],img_list:E,news_list:M})),$(),setTimeout((function(){var n;t(p+".rightCardSeeMoreBtn").html("更多"+h[m].title+"新闻 >"),n=h[m].channel,x=new d(t(p+".swiper_"+n),{autoplay:{delay:1e3*e.swiperLoopTime,disableOnInteraction:!1},loop:!0,pagination:{el:t(p+".swiper_"+n).find(".swiper-pagination"),clickable:!0},navigation:{nextEl:t(p+".swiper_"+n).find(".swiper-button-next"),prevEl:t(p+".swiper_"+n).find(".swiper-button-prev")},observer:!0,observeParents:!0,on:{init:function(){A(this.activeIndex)},slideChange:function(){var e=this;clearTimeout(C),setTimeout((function(){A(e.activeIndex)}))},click:function(e){if(!(e.target.className.indexOf("soundSwitch")>-1||e.target.className.indexOf("swiper-page-button")>-1||e.target.className.indexOf("swiper-pagination-bullet")>-1||e.target.className.indexOf("swiper-pagination")>-1)){e.stopPropagation(),e.preventDefault(),H="",z=(new Date).valueOf();var i=t(p+" .swiper_"+n).find(".swiper-slide").eq(k),a=I(i.data("randomid"),w),o=a.dataType,s=a.url;if("news"==o){f.jrbdLog("click",a),r.Stat.send("1207.4806.gif",{_referer:h[m].channel});var l=localStorage.getItem("flowMode");"newsflow_a"===l?r.Stat.sendFlow("1579.6171.gif",{_referer:"info"}):"newsflow_b"===l&&r.Stat.sendFlow("1579.7079.gif",{_referer:"info"}),B(2)}else{for(var c=i.get(0).getBoundingClientRect(),d={mousedownTime:H,mouseupTime:z,width:c.width,height:c.height,offsetX:e.clientX-c.left,offsetY:e.clientY-c.top},u=a.clktk||[],g=[],v=0;v<u.length;v++)g.push(r.replaceMacro(u[v],d));g&&r.Stat.setLog(g),s=r.replaceMacro(s,d),r.Stat.send("1207.7795.gif",{_referer:h[m].channel})}r.Stat.send("1133.8925.gif"),window.openWin(s,"_blank")}},touchStart:function(){t(document).trigger("mousedown")},touchEnd:function(){t(document).trigger("mouseup")}}}),t(p+".swiper-slide").mouseenter((function(){x.autoplay.stop()})),t(p+".swiper-slide").mouseleave((function(){x.autoplay.start()})),t(p+".soundSwitch").click((function(e){e.stopPropagation();var n=t(this).parent().find("video").attr("id");t(this).hasClass("soundSwitchDefault")?(t(this).removeClass("soundSwitchDefault").addClass("soundSwitchActive"),document.getElementById(n).muted=!1):(t(this).removeClass("soundSwitchActive").addClass("soundSwitchDefault"),document.getElementById(n).muted=!0)})),P(),O()}))}else t(p+".sideTab-content").html('<p class="sideTabNoData">暂无数据</p>'),$()}))}function A(e){k=e;var n=t(p+" .swiper_"+h[m].channel).find(".swiper-slide").eq(k).data("type"),i=t(p+" .swiper_"+h[m].channel).find(".swiper-slide").eq(k).data("randomid");"ads"==n?N(i):F(i)}function F(e){if(e&&I(e,b).randomId){var n;(n=t("#sideTab-"+e)[0].getBoundingClientRect()).top+n.height<j&&n.top>=0?C=setTimeout((function(){var t=I(e,b);if(t.randomId){f.jrbdLog("show",t);var n=D(e,b);b.splice(n,1),clearTimeout(C)}}),2e3):clearTimeout(C)}}function P(){if(y.length)for(var e=0;e<y.length;e++){var n,i=y[e],a=t("#sideTab-"+i.randomId);if(a.length){(n=a[0].getBoundingClientRect()).top+n.height<j&&function(){var e=i,t=0;T[e.randomId]=setInterval((function(){t+=100;var n=L(e);if(n&&t>=2e3){if(!e.isKuaiDoted){f.jrbdLog("show",e),e.isKuaiDoted=!0;var i=D(e.randomId,y);if(i>-1){y.splice(i,1,null);for(var a=[],r=0;r<y.length;r++)y[r]&&a.push(y[r]);y=a}}e={},n=null,clearInterval(T[e.randomId]),T[e.randomId]=null}n||(e={},n=null,clearInterval(T[e.randomId]),T[e.randomId]=null)}),100)}();for(var r=[],o=0;o<y.length;o++)y[o]&&r.push(y[o]);y=r}else y.splice(e,1,null)}}function L(e){var n,i=t("#sideTab-"+e.randomId);return!!i.length&&((n=i[0].getBoundingClientRect()).top+n.height<j&&n.top>0)}function N(e){if(e){var n=I(e,_);if(n.randomId){var i;if((i=t("#sideTab-"+e)[0].getBoundingClientRect()).top<j&&i.top>0){r.Stat.setLog([].concat(a(n.imptk),a(n.adstk),[n.impurl+n.imparg])),r.Stat.send("886.6751.gif");var o=D(e,_);_.splice(o,1)}}}}function O(){if(S.length){for(var e=0;e<S.length;e++){var n,i=S[e],o=t("#sideTab-"+i.randomId);o.length?(n=o[0].getBoundingClientRect()).top<j&&n.top>0&&(r.Stat.setLog([].concat(a(i.imptk),a(i.adstk),[i.impurl+i.imparg])),S.splice(e,1,null)):S.splice(e,1,null)}for(var s=[],l=0;l<S.length;l++)S[l]&&s.push(S[l]);S=s}}function B(e){var n={s:25,n:14,item_id:e||1,item_name:t(u).find("li.active").data("title")||""};r.puvDot(n)}var j=t(window).height();t(document).scroll((function(){var e=t(p+" .swiper_"+h[m].channel).find(".swiper-slide").eq(k).data("type"),n=t(p+" .swiper_"+h[m].channel).find(".swiper-slide").eq(k).data("randomid"),i=t(p+".hotBox-swiper").length&&t(p+".hotBox-swiper").get(0).getBoundingClientRect();"ads"==e?i.top<j&&i.top>0&&N(n):i.top+i.height<=j&&i.top>0?F(n):clearTimeout(C),P(),O()})),t(window).resize((function(){j=t(this).height()}));var H="",z="";function $(){t(p+".sideTab-header li").unbind().on("click",(function(e){var n=t(this).data("index");m!=n&&(t(this).addClass("active").siblings().removeClass("active"),m=n,M()),r.Stat.send("1207.7878.gif",{_referer:h[m].channel})})),t(p+".rightCardSeeMoreBtn").unbind().on("click",(function(e){r.Stat.send("1207.1066.gif",{_referer:h[m].channel});var n=t("#news-bd-wrapper").offset().top;t("html,body").animate({scrollTop:n},200);var i=".nav-common-item-"+h[m].channel;t(i).length?t(i).trigger("click"):t(".nav-common-item-youlike").length?t(".nav-common-item-youlike").trigger("click"):t(".nav-common-item").length&&t(".nav-common-item").eq(0).trigger("click")})),t(p+".sideTabWordItem").unbind().on("mousedown",(function(e){e.stopPropagation(),e.preventDefault(),H=(new Date).valueOf()})).on("mouseup",(function(e){e.stopPropagation(),e.preventDefault(),z=(new Date).valueOf();var n=t(this).data("randomid"),i=t(this).data("type"),a=I(n,w),o=a.url;if("news"==i){f.jrbdLog("click",a),r.Stat.send("1207.4806.gif",{_referer:h[m].channel});var s=localStorage.getItem("flowMode");"newsflow_a"===s?r.Stat.sendFlow("1579.6171.gif",{_referer:"info"}):"newsflow_b"===s&&r.Stat.sendFlow("1579.7079.gif",{_referer:"info"}),B(2)}else{for(var l=t(this).get(0).getBoundingClientRect(),c={mousedownTime:H,mouseupTime:z,width:l.width,height:l.height,offsetX:e.clientX-l.left,offsetY:e.clientY-l.top},d=a.clktk||[],u=[],p=0;p<d.length;p++)u.push(r.replaceMacro(d[p],c));u&&r.Stat.setLog(u),o=r.replaceMacro(o,c),r.Stat.send("1207.917.gif",{_referer:h[m].channel})}r.Stat.send("1133.8925.gif"),window.openWin(o,"_blank")})).on("click",(function(e){e.stopPropagation(),e.preventDefault()}))}g={sign:e.sign,scene:e.scene,n:9,page:1,datafmt:"p1:i13:t,p2:i13:t,p3:i13:t,p4:i13:t,p5:l0:t,p6:l0:t,p7:l0:t,p8:l0:t,p9:l0:t"},f=new s,t(p+".sideTab-header").html(l(h)),M()}}}).call(this,n(1))},function(e,t){e.exports=function(e){var t,n,i="undefined"!=typeof _encodeHTML?_encodeHTML:(t={"&":"&#38;","<":"&#60;",">":"&#62;",'"':"&#34;","'":"&#39;","/":"&#47;"},n=/&(?!#?\w+;)|<|>|"|'|\//g,function(e){return e?e.toString().replace(n,(function(e){return t[e]||e})):""}),a="<ul>",r=e;if(r)for(var o,s=-1,l=r.length-1;s<l;)o=r[s+=1],a+=0==s?"<li class='active hadHover' data-channel='"+i(o.channel)+"' data-title=\""+i(o.title)+'" data-index="0"><span>'+i(o.title)+"</span></li>":"<li class='' data-channel='"+i(o.channel)+"' data-title=\""+i(o.title)+'" data-index="'+i(s)+'"><span>'+i(o.title)+"</span></li>";return a+="</ul>"}},function(e,t){e.exports=function(e){var t,n,i="undefined"!=typeof _encodeHTML?_encodeHTML:(t={"&":"&#38;","<":"&#60;",">":"&#62;",'"':"&#34;","'":"&#39;","/":"&#47;"},n=/&(?!#?\w+;)|<|>|"|'|\//g,function(e){return e?e.toString().replace(n,(function(e){return t[e]||e})):""}),a='<div data-channel="'+i(e.channel)+'" class="sideBox_'+i(e.channel)+' noDot"><div class="hotBox-swiper"><div class="swiper-container swiper_'+i(e.channel)+'"><span class="swiper-pagination"></span><div class="swiper-wrapper">',r=e.img_list;if(r)for(var o=-1,s=r.length-1;o<s;)a+='<div class="swiper-slide noDot news-packet" id="sideTab-'+i((c=r[o+=1]).randomId)+'" data-randomid="'+i(c.randomId)+'" data-type="'+i(c.dataType)+"\" data-pid='hot-"+i(e.channel)+"'><span class=\"swiper-slide-a swiper-a"+i("ads"==c.dataType?"-imgads":"")+'">',c.video?a+='<video class="side_tab_mp4" id="'+i(e.parentClass)+"_side_tab_mp4_"+i(o)+'" width="100%" height="100%" autoPlay loop muted><source src="'+i(c.video)+'" type="video/mp4"/><a href="https://se.360.cn" target="_blank">您的浏览器版本过低，不支持video,点击下载新版本</a></video><span class="soundSwitch soundSwitchDefault"></span>':a+='<img onerror="this.src=\'https://se1.360simg.com/t01f02fe4832104bf41.png\'" src="'+i(c.img)+'"/>',a+='<div class="swiper-title  swiper-'+i("ads"==c.dataType&&"360搜索"!=c.source?"padding-title":"")+"\"><span class='swiper-title-world'>"+i(c.title),"ads"==c.dataType&&"360搜索"!=c.source&&(a+='<span class="ads-sign"></span>'),a+="</span></div></span></div>";a+='</div><div class="swiper-button-prev swiper-page-button"></div>\x3c!--左箭头--\x3e<div class="swiper-button-next swiper-page-button"></div>\x3c!--右箭头--\x3e</div></div><div class="hotBox-news"><ul>';var l=e.news_list;if(l){o=-1;for(var c,d=l.length-1;o<d;)a+='<li class="news-packet sideTabWordItem" id="sideTab-'+i((c=l[o+=1]).randomId)+'"  data-randomid="'+i(c.randomId)+'" data-type="'+i(c.dataType)+"\" data-pid='hot-"+i(e.channel)+"'>","ads"==c.dataType?a+='<a href="'+i(c.url)+'" target="_blank" class=\'hot-ads adTag\'>':a+='<a href="'+i(c.url)+'" target="_blank" class=\'hot-news\'>',a+="<span class='hotSpan hotSpan"+(o+1)+"'></span><span class='title'>"+i(c.title)+"</span>","ads"==c.dataType&&"360搜索"!=c.source&&(a+="<span class='hot-adsTag'></span>"),a+="</a></li>"}return a+='</ul><span class="seeMoreBtn"></span></div><a class="rightCardSeeMoreBtn"></a></div>'}},function(e,t,n){"use strict";(function(t){var i=n(144),a=n(145),r=n(2),o=n(146);e.exports={init:function(){var e=localStorage.getItem("newpagesConfig")||"",n=(e=e?JSON.parse(e).NSwiper:{})&&!0===e.isShow,s="";if(n){t(".hotspot").after('<div class="n-side-swiper">\n\t\t\t\t\t\t\t\t\t<a target=\'_blank\' class="n-side-swiper-header" href="javascript:void(0);" >\n\t\t\t\t\t\t\t\t\t\t<span class="n-side-swiper-icon loading"></span>\n\t\t\t\t\t\t\t\t\t\t<span class="n-side-swiper-title"></span>\n\t\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t\t\t<div class="n-side-swiper-content">\n\t\t\t\t\t\t\t\t\t\t<span class="n-side-swiper-loading"></span>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>'),t.ajax({url:"https://browser.360.cn/se/config/nword_meta.html",dataType:"JSONP",data:{mid:r.api.GetMID(),ver:r.api.GetVersion()},jsonpCallback:"callback_cpcData",timeout:3e3,success:function(n){t(".n-side-swiper-header").html('\n\t\t\t\t<img class="n-side-swiper-icon"  onerror="src=\''+a+'\'" src="'+n.icon+'" />\n\t\t\t\t<span class="n-side-swiper-title">'+(n.title||"热门游戏")+"</span>\n\t\t\t"),n.banners&&n.banners.length?(n.banners.length>4&&(n.banners=n.banners.slice(0,4)),console.log(n.banners,"res.banners"),n.swiperLoopTime=e&&e.swiperLoopTime||3,t(".n-side-swiper-content").html(o(n))):(t(".n-side-swiper-content").html('<span class="n-side-swiper-nodata">暂无数据</span>'),n.banners=[]),i.renderSideTab(n),s=n.title_link||""},error:function(e){t(".n-side-swiper-header").html('\n\t\t\t\t<img class="n-side-swiper-icon" src="'+a+'" />\n\t\t\t\t<span class="n-side-swiper-title">热门游戏</span>\n\t\t\t'),t(".n-side-swiper-content").html('<span class="n-side-swiper-nodata">暂无数据</span>'),i.renderSideTab({banners:[]})}}),t(".n-side-swiper-header").unbind().on("mousedown",(function(e){e.stopPropagation(),e.preventDefault()})).on("mouseup",(function(e){e.stopPropagation(),e.preventDefault(),1!==e.button&&s.length&&window.open(s,"_blank")})).on("click",(function(e){e.stopPropagation(),e.preventDefault()}))}}}}).call(this,n(1))},function(e,t,n){"use strict";(function(t){e.exports={renderSideTab:function(e){var i=n(2),a=n(33),r=[],o=0,s=null;function l(n){t.ajax({url:"https://s.360.cn/qdas/c.htm",type:"get",dataType:"jsonp",data:{p:"QH_1316_1481",gid:i.api.GetMID(),sid:"",key:"360senewtabbox",title:e.title||"N世界",data_id:e.serverId||"",action:n.action,arrt:n.art,u:n.u}})}function c(e){o=e,d()}function d(){var e=t(".n-side-swiper-container").find(".swiper-slide").eq(o),n=e.data("swiper-slide-index")||0,i=e.data("link"),a=r.findIndex((function(e){return e===n}));if(-1!==a){var c;c=t(".n-side-swiper-container")[0].getBoundingClientRect(),clearTimeout(s),c.top+c.height<u&&c.top>=0&&(s=setTimeout((function(){r.splice(a,1),l({action:"show",art:n+1,u:i})}),300))}}!function(){for(var n=e.banners,d=0;d<n.length;d++)r.push(d);console.log("swiperJrbdShowLogList",r),setTimeout((function(){new a(t(".n-side-swiper-container"),{autoplay:{delay:1e3*e.swiperLoopTime,disableOnInteraction:!1},loop:e.banners.length>1,pagination:{el:t(".n-side-swiper-container").find(".swiper-pagination"),clickable:!0},observer:!0,observeParents:!0,on:{init:function(){c(this.activeIndex),e.banners.length>1&&t(".n-side-swiper-container").find(".swiper-pagination").css("display","block")},slideChange:function(){var e=this;clearTimeout(s),setTimeout((function(){c(e.activeIndex)}),500)},click:function(e){if(!(e.target.className.indexOf("swiper-pagination")>-1)){e.stopPropagation(),e.preventDefault();var n=t(".n-side-swiper-container").find(".swiper-slide").eq(o),a=n.data("link"),r=n.data("swiper-slide-index")||0;i.Stat.send("1359.665.gif"),window.openWin(a,"_blank"),l({art:r+1,action:"click",u:a});var s=localStorage.getItem("flowMode");"newsflow_a"===s?i.Stat.sendFlow("1579.6171.gif",{_referer:"info"}):"newsflow_b"===s&&i.Stat.sendFlow("1579.7079.gif",{_referer:"info"})}},touchStart:function(){t(document).trigger("mousedown")},touchEnd:function(){t(document).trigger("mouseup")}}})}))}();var u=t(window).height(),p=!1;t(document).scroll((function(){var e=t(".n-side-swiper").length&&t(".n-side-swiper").get(0).getBoundingClientRect();e.top+e.height<=u&&e.top>0?(d(),p||(p=!0,i.Stat.send("1359.4287.gif"),l({action:"show",art:0,u:"https://www.n.cn/"}))):clearTimeout(s)})),t(window).resize((function(){u=t(this).height()}))}}}).call(this,n(1))},function(e,t,n){e.exports=n.p+"images/dab12a89.png"},function(e,t){e.exports=function(e){var t,n,i="undefined"!=typeof _encodeHTML?_encodeHTML:(t={"&":"&#38;","<":"&#60;",">":"&#62;",'"':"&#34;","'":"&#39;","/":"&#47;"},n=/&(?!#?\w+;)|<|>|"|'|\//g,function(e){return e?e.toString().replace(n,(function(e){return t[e]||e})):""}),a='<div class="swiper-container n-side-swiper-container"><span class="swiper-pagination"></span><div class="swiper-wrapper">',r=e.banners;if(r)for(var o,s=-1,l=r.length-1;s<l;)a+='<div class="swiper-slide" data-link="'+i((o=r[s+=1]).link)+'"><img onerror="this.src=\'https://se1.360simg.com/t01f02fe4832104bf41.png\'" src="'+i(o.img)+'"/></div>';return a+="</div></div>"}},function(e,t,n){"use strict";(function(t){var i=n(2);e.exports={init:function(){setTimeout((function(){!function(){localStorage.getItem("hideFeedback")||!localStorage.getItem("flowMode")?t(".flow-feedback-button").hide():t(".flow-feedback-button").show();var e=t(".flow-feedback-button"),n=t(".flow-feedback-button-close-img");e.on("click",(function(){var e="https://browser.360.cn/se/newpages_flow/feedback.html?newsflow="+(localStorage.getItem("flowMode")||"newflow");window.open(e,"_blank")})),n.on("click",(function(e){e.stopPropagation(),console.log("关闭反馈入口"),t(".flow-feedback-button").hide(),i.storage.setData("hideFeedback",!0)}))}()}),500)}}}).call(this,n(1))},function(e,t,n){"use strict";(function(t){var i,a=n(149),r=(i=a)&&i.__esModule?i:{default:i};var o=n(2);e.exports={init:function(){window.onload=function(){(0,r.default)(),t("#news-content-youlike").on("click","a","",(function(){var e=localStorage.getItem("flowMode");"newsflow_a"===e?o.Stat.sendFlow("1579.6171.gif",{_referer:"info"}):"newsflow_b"===e&&o.Stat.sendFlow("1579.7079.gif",{_referer:"info"})})),t(".search-btn").on("click",(function(){var e="";switch(localStorage.getItem("flowMode")){case"newsflow_a":e="1579.6171.gif";break;case"newsflow_b":e="1579.7079.gif";break;case"newsflow_c":e="1579.8724.gif";break;case"newsflow_d":e="1579.2338.gif"}e&&o.Stat.sendFlow(e,{_referer:"search"})})),t(".tile-logo").on("click","img",(function(e){var t=JSON.parse(localStorage.settings)["current-mode"],n=localStorage.getItem("dial-page-set");if("dial"===t&&"0"===n){var i="";switch(localStorage.getItem("flowMode")){case"newsflow_a":i="1579.6171.gif";break;case"newsflow_b":i="1579.7079.gif";break;case"newsflow_c":i="1579.8724.gif";break;case"newsflow_d":i="1579.2338.gif"}o.Stat.sendFlow(i,{_referer:"site"})}})),t(".tile-logo").on("click",".tile-tit",(function(e){var t=JSON.parse(localStorage.settings)["current-mode"],n=localStorage.getItem("dial-page-set");if("dial"===t&&"0"===n){var i="";switch(localStorage.getItem("flowMode")){case"newsflow_a":i="1579.6171.gif";break;case"newsflow_b":i="1579.7079.gif";break;case"newsflow_c":i="1579.8724.gif";break;case"newsflow_d":i="1579.2338.gif"}o.Stat.sendFlow(i,{_referer:"site"})}})),t(".tile-logo").on("click",".defaultlogo",(function(e){var t=JSON.parse(localStorage.settings)["current-mode"],n=localStorage.getItem("dial-page-set");if("dial"===t&&"0"===n){var i="";switch(localStorage.getItem("flowMode")){case"newsflow_a":i="1579.6171.gif";break;case"newsflow_b":i="1579.7079.gif";break;case"newsflow_c":i="1579.8724.gif";break;case"newsflow_d":i="1579.2338.gif"}o.Stat.sendFlow(i,{_referer:"site"})}}));var e=JSON.parse(localStorage.settings)["current-mode"];t(".mode-nav-tag").on("click",(function(){"dial"===e&&(localStorage.setItem("triggerSwitched","true"),o.storage.setData("hideFeedback",!0),t(".flow-feedback-button").hide())})),t(".mode-cube-tag").on("click",(function(){localStorage.setItem("triggerSwitched","true"),o.storage.setData("hideFeedback",!0),t(".flow-feedback-button").hide()}))}}}}).call(this,n(1))},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0});var i=n(2);t.default=function(){var t=localStorage.getItem("newpagesConfig")||"{}",n=JSON.parse(t);console.log("反馈挂件",n);var a=n.feedbackFloat,r=a.display,o=a.bgImg,s=a.targetLink,l=a.percent,c=a.notTipDays,d=a.startDate,u=a.hideDate,p=a.style,h=new Date,f=Math.round(100*Math.random())<=l,g=localStorage.getItem("lastShowFdback")||"2023/01/01",m=(new Date(h.toLocaleDateString())-new Date(g))/864e5>c;if(console.log("在上次展示外",m),r&&h>=new Date(d)&&h<new Date(u)&&f&&m&&o.length&&s.length&&e("body").hasClass("mode-nav")){window.show_fedback_flaot=!0;var v=new Image;v.src=o,v.onload=function(){console.log("图片加载成功111"),e(".fdb_main").css({background:"url("+o+") 0 0 / 100% no-repeat"}).parents("#float_fdback_wrap").css(p).show()},i.Stat.send("1522.3495.gif")}else e("#float_fdback_wrap").hide();e(".close_btn").click((function(){i.Stat.send("1522.9710.gif"),e("#float_fdback_wrap").fadeOut(100),localStorage.setItem("lastShowFdback",h.toLocaleDateString())})),e(".fdb_main").click((function(t){t.stopPropagation(),i.Stat.send("1522.5408.gif"),e("#float_fdback_wrap").fadeOut(100),window.open(s,"_blank"),localStorage.setItem("lastShowFdback",h.toLocaleDateString())}))}}).call(this,n(1))},function(e,t,n){"use strict";(function(t){var i=n(2);e.exports={init:function(){var e=/^(https?):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z|]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i;t(".uploadAIContainer .wrapperOpenFile").unbind().on("click",(function(e){e.stopPropagation(),e.preventDefault();var n="",a="";t(e.target).hasClass("pdf")||t(e.target).parent().hasClass("pdf")||t(e.target).parent().parent().hasClass("pdf")?(n="pdf",a="pdf"):t(e.target).hasClass("video")||t(e.target).parent().hasClass("video")||t(e.target).parent().parent().hasClass("video")?(n="mp4,mov,mkv",a="video"):t(e.target).hasClass("audio")||t(e.target).parent().hasClass("audio")||t(e.target).parent().parent().hasClass("audio")?(n="mp3,m4a,wav,flac",a="audio"):t(e.target).hasClass("image")||t(e.target).parent().hasClass("image")||t(e.target).parent().parent().hasClass("image")?(n="jpg,jpeg,png,gif,bmp,webp",a="image"):t(e.target).hasClass("thesis")||t(e.target).parent().hasClass("thesis")||t(e.target).parent().parent().hasClass("thesis")?(n="pdf",a="thesis"):(t(e.target).hasClass("book")||t(e.target).parent().hasClass("book")||t(e.target).parent().parent().hasClass("book"))&&(n="pdf",a="book"),console.log(n,i.ntpApis.OpenFile),i.Stat.send("1651.3403.gif",{_referer:a}),i.ntpApis.OpenFile(n,"functionType="+a+"&aiPositionSrc=newpage_browserSE",(function(e){console.log(e)}))})),t(".uploadAIContainer .wrapperHtml").unbind().on("click",(function(e){e.stopPropagation(),e.preventDefault(),t(".uploadAIContainer .uploadAIHtmlMode").css({display:"flex"}),i.Stat.send("1651.3403.gif",{_referer:"html"}),t(".uploadAIHtmlMode .uploadInput").val(""),t(".uploadAIHtmlMode .enterAI").addClass("disabled"),t(".uploadAIHtmlMode .uploadcontainer").removeClass("error")})),t(".uploadAIContainer .icon-close").unbind().on("click",(function(e){e.stopPropagation(),e.preventDefault(),t(".uploadAIContainer .uploadAIHtmlMode").hide()})),t(".uploadAIContainer .cancel").unbind().on("click",(function(e){e.stopPropagation(),e.preventDefault(),t(".uploadAIContainer .uploadAIHtmlMode").hide()})),t(".uploadAIContainer .enterAI").unbind().on("click",(function(n){if(n.stopPropagation(),n.preventDefault(),!t(".uploadAIContainer .enterAI").hasClass("disabled")){var i=t(".uploadAIHtmlMode .uploadInput").val();(i=i.trim())?(/^(https?):\/\//i.test(i)||(i="https://"+i),i=i.replace(/\|/g,"%7c"),e.test(i)?(i+=(i.split("?")[1]?"&":"?")+"_autoai=1",window.openWin(i,"_blank"),t(".uploadAIContainer .uploadAIHtmlMode").hide()):t(".uploadAIHtmlMode .uploadcontainer").addClass("error")):t(".uploadAIHtmlMode .uploadcontainer").addClass("error")}})),t(".uploadAIHtmlMode .uploadInput").off().on("input propertychange change",(async function(e){t(".uploadAIHtmlMode .uploadcontainer").removeClass("error");var n=t(".uploadAIContainer .uploadInput").val();(n=n.trim())?t(".uploadAIHtmlMode .enterAI").removeClass("disabled"):t(".uploadAIHtmlMode .enterAI").addClass("disabled")}));var n=!1;function a(){var e=t(".uploadAIContainer").get(0).getBoundingClientRect().top;t(".uploadAIBorder").css({top:e-19}),t(".uploadAIModal").css({top:e-270})}t(".uploadAIContainer .uploadAISettings").unbind().on("click",(function(e){e.stopPropagation(),e.preventDefault(),n=!n,t(".uploadAIContainer .more_option").css({display:n?"flex":"none"})})),t(document).on("click",(function(e){n=!1,t(".uploadAIContainer .more_option").css({display:n?"flex":"none"})})),t(".uploadAIContainer .more_option .more_option_item").on("click",(function(e){e.stopPropagation(),e.preventDefault(),n=!1,t(".uploadAIContainer .more_option").css({display:n?"flex":"none"}),t(".top-wrap .mode-switch .webSiteChoicePopup1").show()})),localStorage.getItem("showUploadAIGuide")||window.external.AppCmd(window.external.GetSID(window),"removepopup","IsShowOtherPopup","","",(function(e,n){"0"===n&&(t(".uploadAIGuide").show(),localStorage.setItem("showUploadAIGuide","1"),setTimeout((function(){t("body").css({"overflow-y":"hidden"})})))})),t(".uploadAIGuide .uploadAIModal .close").on("click",(function(e){e.stopPropagation(),e.preventDefault(),t(".uploadAIGuide").hide(),t("body").css({"overflow-y":"auto"})})),t(".uploadAIGuide .leftContainer .bottomButton").on("click",(function(e){e.stopPropagation(),e.preventDefault(),window.open("https://shanghai.xstore.qihu.com/wenku/show_pdfs/2307.07924v4.pdf?auto=1"),i.Stat.send("1651.6992.gif",{_referer:"软件开发的通信代理"})})),t(".uploadAIGuide .rightContainer .bottomButton").on("click",(function(e){e.stopPropagation(),e.preventDefault(),window.open("https://36kr.com/p/2805108795192961?auto=1"),i.Stat.send("1651.6992.gif",{_referer:"AI大模型正改变着推荐系统的未来"})})),setTimeout(a,100),window.addEventListener("resize",a)}}}).call(this,n(1))},function(e,t,n){"use strict";(function(t){var i=n(2),a=!1;e.exports={init:function(){"nav"!=window.mode||a?t(".long-strip").hide():window.isShowLongStrip?t(".long-strip").show():function(){var e=(JSON.parse(localStorage.getItem("newpagesConfig"))||{}).longStrip||{},n=e.percent||0;if(!(Math.floor(99*Math.random()+1)>n)&&i.isInDate(e.eventDate)){var r=new Image;r.onload=function(){if(e.url){var n="";n+='<a class="longStripLink" href="'+e.url+'" target="_blank">',n+='<img class="img" src="'+e.defaultImg+'" />',e.isAds&&(n+='<span class="ads-tag"></span>'),n+="</a>",e.showClose&&(n+='<span class="longStripClose"></span>',setTimeout((function(){t(".longStripClose").on("click",(function(e){e.stopPropagation(),e.preventDefault(),t(this).parents(".long-strip").hide(),window.isShowLongStrip=!1,a=!0,t(".event-pendant").css({top:"-131px"}),t("#default-nav").css({"margin-top":"29px"})}))}))),t(".long-strip").html(n).show(),window.isShowLongStrip=!0,e.showGif&&i.Stat.send(e.showGif,{_referer:window.mode}),setTimeout((function(){t("#default-nav").css({"margin-top":"16px"}),"new-nav"==localStorage.getItem("webui")?t(".event-pendant").css({top:"-259px"}):t(".event-pendant").css({top:"-246px"}),t(".long-strip .longStripLink").on("click",(function(n){n.stopPropagation(),n.preventDefault();var a=t(this).attr("href").split("?"),r="";r=a[1]&&a[1].length?a[0]+"?"+a[1]+"&from=newtab-"+window.mode:a[0]+"?from=newtab-"+window.mode,e.clickGif&&i.Stat.send(e.clickGif,{_referer:window.mode}),window.openWin(r,"_blank")}))}));var r=new Image;r.onload=function(n){t(".long-strip .img").on("mouseenter",(function(n){t(this).attr("src",e.hoverImg)})).on("mouseleave",(function(n){t(this).attr("src",e.defaultImg)}))},r.src=e.hoverImg}},r.src=e.defaultImg}}()}}}).call(this,n(1))},function(e,t,n){"use strict";(function(t){var i=n(2),a=n(153),r={},o=0,s=0;function l(){var e,n=r||{};Object.keys(n).length&&(e=n,new Promise((function(t,n){if(e.video)t(e);else if(e.img){var i=new Image;i.onload=function(){t(e)},i.src=e.img}else n()}))).then((function(){var e,l;t(".rightBottomAds").html(a(n)),o=s=window.screen.width>1600?180:window.screen.width>=1440&&window.screen.width<=1600?140:110,t(".rightBottomAds .adsImg").css({width:o+"px",height:s+"px"}),(n.title||n.desc)&&t(".rightBottomAds .desc").css({width:o+"px"}),t(".rightBottomAds").show(),i.Stat.send("1352.9209.gif"),e=void 0,l=void 0,t(".rightBottomAds .rightBottomAdsLink").on("mousedown",(function(t){t.preventDefault(),t.stopPropagation(),e=(new Date).valueOf()})).on("mouseup",(function(n){if(n.preventDefault(),n.stopPropagation(),3==n.which||1==n.button)return n.preventDefault(),void n.stopPropagation();i.Stat.send("1352.2223.gif"),l=(new Date).valueOf();var a,c,d=t(".rightBottomAdsContent").offset().left,u=t(".rightBottomAdsContent").offset().top,p={mousedownTime:e,mouseupTime:l,width:o,height:s,offsetX:n.clientX-d,offsetY:n.clientY-u},h=t(this).attr("data-href");h=i.replaceMacro(h,p),window.openWin(h,"_blank"),r.installUrl&&r.silentCmd&&(a=r.installUrl,c=r.silentCmd,external.AppCmd(external.GetSID(window),"","silenceinstall",a,decodeURIComponent(c),(function(e,t){console.log("执行了静默安装，结果code :"+e)})))})).on("click",(function(e){e.preventDefault(),e.stopPropagation(),"nav"==window.mode?i.Stat.send("1133.8925.gif"):"dial"==window.mode&&i.Stat.send("1133.4860.gif")})),t(".rightBottomAds .rightBottomAdsClose").on("click",(function(e){e.preventDefault(),e.stopPropagation(),i.Stat.send("1127.6094.gif");var n=new Date((new Date).setHours(23,59,59,0))/1e3;n*=1e3,localStorage.setItem("rightBottomAdsCloseTime",n),window.rightBottomAdsClosed=!0,t(".rightBottomAds").hide()})),t(".rightBottomAds .soundBar").on("click",(function(e){e.stopPropagation(),e.preventDefault();var n=!1;t(this).toggleClass("open"),n=!!t(this).hasClass("open"),document.getElementById("rightBottomAdsVideo").muted=!n}))}),(function(e){}))}e.exports={init:function(){var e=localStorage.getItem("rightBottomAdsCloseTime")||0;if(!((new Date).valueOf()<e)){var t=(JSON.parse(localStorage.getItem("newpagesConfig"))||{}).newRightBottomAds||{};if(r=t.info||{},t.mode&&!(t.mode.indexOf(window.mode)<0)){var n,i,a=t&&t.percent||0;if(!(Math.floor(99*Math.random()+1)>a))if(1!=window.rightBottomAdsInited)t.info&&t.info.software?(n=t.info.software,i=l,external.AppCmd(external.GetSID(window),"","IsSoftwareInstalled",n,"",(function(e,t){1!=e&&i&&i()}))):l(),window.rightBottomAdsInited=!0}}}}}).call(this,n(1))},function(e,t){e.exports=function(e){var t,n,i="undefined"!=typeof _encodeHTML?_encodeHTML:(t={"&":"&#38;","<":"&#60;",">":"&#62;",'"':"&#34;","'":"&#39;","/":"&#47;"},n=/&(?!#?\w+;)|<|>|"|'|\//g,function(e){return e?e.toString().replace(n,(function(e){return t[e]||e})):""}),a='<div class="rightBottomAdsContent"><span class="rightBottomAdsClose"></span><a class="rightBottomAdsLink" href="'+i(e.url)+'" data-href="'+i(e.url)+'" data-title="'+i(e.title)+'" target="_blank" data-video="'+i(e.video)+'" >';return e.video?a+='<video class="adsImg adsVideo" id="rightBottomAdsVideo" autoPlay loop muted><source  src="'+i(e.video)+'" type="video/mp4" />您的浏览器版本过低，不支持video</video>':a+='<img class="adsImg" src="'+i(e.img)+'" alt="">',a+='<span class="adsTag"></span>',(e.title||e.desc)&&(a+='<div class="desc">'+i(e.title||e.desc)+"</div>"),a+="</a>",e.video&&(a+='<span class="soundBar"></span>'),a+="</div>"}},function(e,t,n){"use strict";e.exports={init:function(){},stopSwiperAll:function(){},initSwiper:function(){}}},function(e,t,n){"use strict";(function(t){var i=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],i=!0,a=!1,r=void 0;try{for(var o,s=e[Symbol.iterator]();!(i=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);i=!0);}catch(e){a=!0,r=e}finally{try{!i&&s.return&&s.return()}finally{if(a)throw r}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};function a(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var r=n(2),o=n(5),s=n(32).CubeListNews,l=[],c=[{title:"今日快讯",kuaiKey:"推荐",cubeid:"mryw",channel:"youlike",isHot:!1},{title:"国内",kuaiKey:"国内",cubeid:"xbqygnpd",channel:"domestic",isHot:!1},{title:"娱乐",kuaiKey:"娱乐",cubeid:"xbqyylpd",channel:"fun",isHot:!1},{title:"汽车",kuaiKey:"汽车",cubeid:"xbqyqcpd",channel:"car",isHot:!1},{title:"房产",kuaiKey:"房产",cubeid:"xbqyfcpd",channel:"estate",isHot:!1},{title:"健康",kuaiKey:"健康",cubeid:"xbqyjkpd",channel:"health",isHot:!1},{title:"星座",kuaiKey:"星座",cubeid:"xbqyxzpd",channel:"zodiac",isHot:!1},{title:"科技",kuaiKey:"科技",cubeid:"xbqykjpd",channel:"science",isHot:!1},{title:"财经",kuaiKey:"财经",cubeid:"xbqycjpd",channel:"economy",isHot:!0},{title:"体育",kuaiKey:"体育",cubeid:"xbqytypd",channel:"sport",isHot:!1}],d=!0,u=null,p=null,h=null,f=[],g=[],m=[],v=[],w=[],b=[],y=[],_="youlike",S="",x="",k={};function C(e){return l.find((function(t){return t.channel==e}))||{}}function T(e){for(var t="",n=0;n<l.length;n++)if(l[n].channel==e){t=l[n].cubeid;break}return p={sign:"360_79aabe15",scene:18003,n:16,page:1,datafmt:"p1:i6:t,p2:i0:t,p3:i0:t,p4:l0:t,p5:l0:t,p6:l0:t,p7:l0:t,p8:l0:t,p9:l0:t,p10:l0:t,p11:l0:t,p12:l0:t,p13:l0:t,p14:l0:t,p15:l0:t,p16:l0:t",cubeid:t,c:t},u=new s,new Promise((function(e,t){u.getNewsData(p).then((function(t){e(t)}),(function(t){e("")}))}))}function I(e){return new Promise((function(t,n){if("youlike"==e)if(d){new o.SW({data:{showid:"CcxKW0",reqtimes:1,impct:1}}).getAdsData().then((function(e){t(e)}),(function(e){t("")}))}else t("");else t("")}))}var D=!1;function E(e,n){var s;D||(D=!0,t(".cs_news_box_"+e).find(".loading").show(),t(".cs_news_box_"+e).find(".noData").hide(),Promise.all([T(e),(s=e,new Promise((function(e,t){if("youlike"==s)if(d){var n=2*l.length;h={showid:"7dHgf3",reqtimes:1,impct:n},new o.SW({data:h}).getAdsData().then((function(t){e(t)}),(function(t){e("")}))}else e("");else e("")}))),I(e)]).then((function(o){var s=i(o,3),l=s[0],c=s[1],d=s[2];D=!1,t(".cs_news_box_"+e).find(".loading").hide();var h=l&&l.data&&l.data.res||[];if(h&&h.length){var C={ext:l.ext||{},sid:l.sid||"",uid:l.uid||"",sign:p.sign||"",scene:p.scene||"",channel:p.c||""};h=u.filterNewsData(h,C),"youlike"==e&&(m=c,y=[].concat(a(d)));var T=M(m,2)[n];w=M(m,2)[n],function(e,n,i,o){var s=e[0],l=e.slice(1,3),c=e.slice(3,16),d=[],p=n||[],h=o||[],m=t(".cs_news_box_"+i).find(".cs_box_left"),C=t(".cs_news_box_"+i).find(".cs_box_right"),T="",I="",D="<div  data-index='0' class='cs_news_tag sc_bigImg_par' id='newsItem-"+s.randomId+"'>\n                        <a target='_blank' data-href='"+s.url+"'>\n\t\t\t\t\t\t\t<span class=\"sc_bigImg_hoticon\"></span>\n                            <img class='sc_bigImg' src="+s.img+"  onerror=\"src='"+s.errorimg+"'\"/>\n                            <p class='cs_bigImg_text'><span>"+(s.title||s.desc)+"</span></p>\n                        </a>\n                    </div> ";l.forEach((function(e,t){1===t&&h.length?I+=function(e,t){return"<li data-index='"+t+"' id='newsItem-"+e.randomId+"' class='cs_news_tag cs_ads_left'>\n\t\t\t\t\t<a target='_blank' data-href='"+e.url+"'>\n\t\t\t\t\t\t<img class='sc_samllImg' src="+e.img+"  onerror=\"src='"+e.errorimg+"'\"/>\n\t\t\t\t\t\t<div class='sc_text'>\n\t\t\t\t\t\t\t"+e.title+'\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class="adsleft-info">\n\t\t\t\t\t\t\t<span class="adsleft-from">'+(e.source||"")+'</span>\n\t\t\t\t\t\t\t<span class="adsleft-ads">广告</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</a>\n\t\t\t\t</li>'}(h[0],"0"):I+="<li data-index='"+(t+1)+"' class='cs_news_tag' id='newsItem-"+e.randomId+"'>\n                        <a target='_blank' data-href='"+e.url+"'>\n                            <img class='sc_samllImg' src="+e.img+"  onerror=\"src='"+e.errorimg+"'\"/>\n                            <div class='sc_text'>"+e.title+"</div>\n                        </a>\n                    </li>"})),c.forEach((function(e,t){var n="sc_small_txt",i="";0!=t&&1!=t&&5!=t&&9!=t||(n="sc_big_txt"),5!=t&&9!=t||(i='<div class="dashLine"></div>'),3==t&&p.length>0?T+=A(p[0],"0"):10==t&&p.length>1?T+=A(p[1],"1"):(d.push(e),T+=i+"\n\t\t\t\t\t\t<li data-index='"+(t+3)+"' id='newsItem-"+e.randomId+"' class='cs_news_tag "+n+"'>\n                            <a target='_blank' data-href='"+e.url+"'>\n\t\t\t\t\t\t\t\t<span class='cs_news_quety'></span>\n\t\t\t\t\t\t\t\t"+e.title+"\n\t\t\t\t\t\t\t</a>\n                        </li>")})),g=n||[],b=o||[],f=[s].concat(a(l),d),v=[s].concat(a(l),a(c)),k[_]={},k[_].imptkShowLogList=g||[],k[_].jrbdShowLogList=f||[],k[_].jrbdClickLogList=v||[],k[_].imptkLeftShowLogList=o||[],m.html(D+"<ul>"+I+"</ul>"),C.html("<ul>"+T+"</ul>"),P(),N(),O(),t(".cs_news_tag a").off("mouseup").on("mouseup",(function(e){var n=t(this).parent().data("index");!function(e,n,i){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[];if(e.preventDefault(),e.stopPropagation(),3==e.which||1==e.button)return e.preventDefault(),void e.stopPropagation();x=(new Date).valueOf();var l="",c=n;n.parent().hasClass("cs_ads_left")&&(c=n.parent());var d=Math.ceil(c.offset().left),p=Math.ceil(c.offset().top),h=c.width(),f=c.height(),g={mousedownTime:S,mouseupTime:x,width:h,height:f,offsetX:parseInt(e.clientX-d),offsetY:parseInt(e.clientY-p+t(document).scrollTop())};if(g.offsetX<=0&&(g.offsetX=0),g.offsetY<=0&&(g.offsetY=0),n.parent().hasClass("sc_small_txt_ads")){for(var m=o[i]&&o[i].clktk||[],v=[],w=0;w<m.length;w++)v.push(r.replaceMacro(m[w],g));if(v&&r.Stat.setLog(v),l=r.replaceMacro(o[i].url,g),r.Stat.send("1207.3670.gif",{_referer:_}),"youlike"==_){var b=n.parent().attr("data-index");r.Stat.send("1359.854.gif",{_referer:Number(b)+1})}}else if(n.parent().hasClass("cs_ads_left")){r.Stat.send("1359.9520.gif");var y=s[i]&&s[i].clktk||[],k=[];for(w=0;w<y.length;w++)k.push(r.replaceMacro(y[w],g));k&&r.Stat.setLog(k),l=r.replaceMacro(s[i].url,g)}else u.jrbdLog("click",a[i]),l=a[i].url,r.Stat.send("1207.8700.gif",{_referer:_}),F(2);window.openWin(l)}(e,t(this),n,v,w,y)})),t(".cs_news_tag a").off("mousedown").on("mousedown",(function(e){!function(e){e.preventDefault(),e.stopPropagation(),S=(new Date).valueOf()}(e)}))}(h,T,e,d)}else t(".cs_news_box_"+e).find(".noData").show()}),(function(n){D=!1,t(".cs_news_box_"+e).find(".loading").hide(),t(".cs_news_box_"+e).find(".noData").show()})))}function M(e,t){for(var n=0,i=[];n<e.length;)i.push(e.slice(n,n+=t));return i}function A(e,t){return"<li data-index='"+t+"' id='newsItem-"+e.randomId+"' class='cs_news_tag sc_small_txt sc_small_txt_ads'>\n\t\t\t\t\t<a target='_blank' data-href='"+e.url+"'>\n\t\t\t\t\t\t<span class='cs_news_quety'></span>\n\t\t\t\t\t\t"+e.title+"\n\t\t\t\t\t\t<span class='sc_small_txt_ads_icon'>广告</span>\n\t\t\t\t\t</a>\n\t\t\t\t</li>"}function F(e){var n={s:25,n:12,item_id:e||1,item_name:t(".cs_news_header").find(".csNewsNavItem.action").data("title")||""};r.puvDot(n)}function P(){for(var e=t(window).height(),n=0;n<f.length;n++){var i,a=f[n],o=t("#newsItem-"+a.randomId);o.length?(i=o[0].getBoundingClientRect()).top+i.height<e&&function(){var e=null,t=a,n=0;e=setInterval((function(){n+=100;var i=L(t);if(i&&n>=2e3){if(!t.isKuaiDoted){u.jrbdLog("show",t),r.Stat.send("1207.3368.gif"),t.isKuaiDoted=!0;for(var a=0;a<f.length;a++)f[a].randomId==t.randomId&&f.splice(a,1);k[_].jrbdShowLogList=f}t={},i=null,clearInterval(e),e=null}i||(t={},i=null,clearInterval(e),e=null)}),100)}():f.splice(n,1)}}function L(e){var n,i=t(window).height(),a=t("#newsItem-"+e.randomId);return!!a.length&&((n=a[0].getBoundingClientRect()).top+n.height<i&&n.top>0)}function N(){if(g&&g.length){for(var e=t(window).height(),n=0;n<g.length;n++){var i=g[n],o=t("#newsItem-"+i.randomId);o.length?o[0].getBoundingClientRect().top<e&&"ads"==i.newsType&&(r.Stat.setLog([].concat(a(i.imptk),a(i.adstk),[i.impurl+i.imparg])),g.splice(n,1,null)):g.splice(n,1,null)}for(var s=[],l=0;l<g.length;l++)g[l]&&s.push(g[l]);g=s,k[_].imptkShowLogList=g}}function O(){if(b&&b.length){for(var e=t(window).height(),n=0;n<b.length;n++){var i=b[n],o=t("#newsItem-"+i.randomId);o.length?o[0].getBoundingClientRect().top<e&&"ads"==i.newsType&&(r.Stat.send("1359.3430.gif"),r.Stat.setLog([].concat(a(i.imptk),a(i.adstk),[i.impurl+i.imparg])),console.log([].concat(a(i.imptk),a(i.adstk),[i.impurl+i.imparg]),"00000000000000000"),b.splice(n,1,null)):b.splice(n,1,null)}for(var s=[],l=0;l<b.length;l++)b[l]&&s.push(b[l]);b=s,k[_].imptkLeftShowLogList=b}}t(window).on("scroll",(function(){P(),N(),O()}));var B=!0;e.exports={init:function(){var e=1==localStorage.getItem("isShowpersonalNews")?1:0,n=localStorage.getItem("newpagesConfig")||"";return(n=n?JSON.parse(n).csNewsAds:{})&&!0===n.show&&!e?(l=n&&n.navData||c,_=l[0].channel,l[0],function(){for(var e="",n=0;n<l.length;n++){var i="",a="";l[n].isHot&&(a='<span class="csNewsNavHotSign"></span>'),l[n].navIcon&&(i='<img class="csNewsNavIcon" src="'+r.replaceImgHost(l[n].navIcon)+'" onerror="this.style.display=\'none\'"/>'),e+="<li class='csNewsNavItem' data-title='"+l[n].title+"'>\n\t\t\t\t\t<a channle='"+l[n].channel+"' href='javascript:;' data-title='"+l[n].title+"'>\n\t\t\t\t\t\t"+i+"\n\t\t\t\t\t\t"+l[n].title+"\n\t\t\t\t\t\t"+a+"\n\t\t\t\t\t</a>\n\t\t\t\t</li>"}t(".cs_news_header ul").html(e),t(".cs_news_header .csNewsNavItem").eq(0).addClass("action");var o=null;t(".cs_news_header").find("a").off("mouseenter").on("mouseenter",(function(e){var n=this;e.stopPropagation(),o=t(this).attr("channle"),setTimeout((function(e){if(e==o){t(n).parent("li").siblings("li").removeClass("action"),t(n).parent("li").addClass("action"),t(".cs_news_box").hide();var i=t(n).attr("channle");i!=_&&F(1),C(_=i),t(".cs_news_box_"+i).find(".cs_box_left").html()?(g=k[_]&&k[_].imptkShowLogList||[],b=k[_]&&k[_].imptkLeftShowLogList||[],f=k[_]&&k[_].jrbdShowLogList||[],v=k[_]&&k[_].jrbdClickLogList||[],P(),N(),O()):E(i,t(n).parent("li").index()),t(".cs_news_box_"+i).show(),t(n).find(".csNewsNavHotSign").hide()}}),300,o)})).off("mouseleave").on("mouseleave",(function(e){o=null})),t(".cs_news_header").find("a").off("click").on("click",(function(e){e.stopPropagation();var n=t(this).parent().index();t(".cs_news_box").hide();var i=t(this).attr("channle");i!=_&&F(t(this).data("title")),C(_=i),E(i,n),t(".cs_news_box_"+i).show(),t(this).find(".csNewsNavHotSign").hide(),e.isTrigger||r.Stat.send("1207.6240.gif",{_referer:_})})),t(".cs_news_refresh").off("click").on("click",(function(e){var n=this;e.stopPropagation(),t(this).find(".cs_news_refresh_icon").addClass("animate"),setTimeout((function(){t(n).find(".cs_news_refresh_icon").removeClass("animate")}),1e3),t(".cs_news_header .action").find("a").trigger("click"),r.Stat.send("1207.7228.gif",{_referer:_})})),t(".cs_readMore").off("click").on("click",(function(e){var n=t("#news-bd-wrapper").offset().top;t("html,body").animate({scrollTop:n},200),r.Stat.send("1207.1915.gif",{_referer:_});var i=".nav-common-item-"+_;t(i).length?t(i).trigger("click"):t(".nav-common-item-youlike").length?t(".nav-common-item-youlike").trigger("click"):t(".nav-common-item").length&&t(".nav-common-item").eq(0).trigger("click")})),t(".cs_news_more").off("click").on("click",(function(e){t(".cs_mews_more_num").hide(),t(".cs_news_header_more_arrow").show(),t(".cs_readMore").trigger("click"),setTimeout((function(){t(".cs_news_header_more_arrow").hide(),t(".cs_mews_more_num").show()}),12e4)}))}(),function(){if(B){B=!1;for(var e=l,n="",i=0;i<e.length;i++)n+='<div class="cs_news_box cs_news_box_'+e[i].channel+'">\n\t\t\t\t\t<div class="cs_box_left"></div>\n\t\t\t\t\t<div class="cs_box_right"></div>\n\t\t\t\t\t<p class="noData">暂无数据</p>\n\t\t\t\t\t<div class="loading"></div>\n\t\t\t\t</div>';t(".cs_news_content").append(n)}}(),E(_,0),F(1),!0):(t(".cs_news_tab").hide(),!1)}}}).call(this,n(1))},function(e,t,n){"use strict";(function(t){function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var a=n(2),r=n(5),o=[],s=[{showid:"K6oqYs",title:"推荐",queryword:"推荐",isHot:!1},{showid:"Vue5GW",title:"男装",queryword:"男装",isHot:!1},{showid:"Vue5GW",title:"女装",queryword:"女装",isHot:!1},{showid:"Vue5GW",title:"男鞋",queryword:"男鞋",isHot:!1},{showid:"Vue5GW",title:"女鞋",queryword:"女鞋",isHot:!1},{showid:"Vue5GW",title:"内衣",queryword:"内衣",isHot:!1},{showid:"Vue5GW",title:"美妆",queryword:"美妆",isHot:!1},{showid:"Vue5GW",title:"食品",queryword:"食品",isHot:!1},{showid:"Vue5GW",title:"家电",queryword:"家电",isHot:!1},{showid:"Vue5GW",title:"京东",queryword:"京东",isHot:!1}],l={},c={},d=[],u=[];function p(e){t(".good-recommend-list ul").hide(),t(".good-recommend-list .noData").hide(),t(".good-recommend-list .loading").show(),l=e,f(1),new r.WAD({data:{mid:a.api.GetMID(),showid:e.showid,queryword:e.queryword,impct:5}}).getAdsData().then((function(e){if(t(".good-recommend-list .loading").hide(),!e||!e.length)return t(".good-recommend-list ul").hide(),void t(".good-recommend-list .noData").show();var n="";d=JSON.parse(JSON.stringify(e)),u=JSON.parse(JSON.stringify(e)),e.forEach((function(e){n+='<li id="goodRecommendListItem-'+e.randomId+'" class="goodRecommendListItem" data-randomid=\''+e.randomId+"'>\n\t\t\t\t\t\t<img class=\"img\" src='"+e.img+'\' />\n\t\t\t\t\t\t<div class="desc">'+(e.title||e.desc)+'</div>\n\t\t\t\t\t\t<div class="intervalBox">\n\t\t\t\t\t\t\t<div class="intervalLine">\n\t\t\t\t\t\t\t\t<span class="tip">限时折扣中</span>\n\t\t\t\t\t\t\t\t<span class="timeSpan hour"></span>\n\t\t\t\t\t\t\t\t<em class="maohao maohao1">:</em>\n\t\t\t\t\t\t\t\t<span class="timeSpan minute"></span>\n\t\t\t\t\t\t\t\t<em class="maohao maohao2">:</em>\n\t\t\t\t\t\t\t\t<span class="timeSpan second"></span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class="intervalBtn">立即抢购</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</li>'})),n+='<div style="clear:both;"></div>',t(".good-recommend-list ul").show().html(n),setTimeout((function(){h(),b()}),1e3)}),(function(e){t(".good-recommend-list .loading").hide(),t(".good-recommend-list ul").hide(),t(".good-recommend-list .noData").show(),b()}))}function h(){for(var e=g,n=0;n<u.length;n++){var r=u[n],o=t("#goodRecommendListItem-"+r.randomId);o.length?o[0].getBoundingClientRect().top<e&&(a.Stat.setLog([].concat(i(r.imptk),i(r.adstk),[r.impurl+r.imparg])),u.splice(n,1,null)):u.splice(n,1,null)}for(var s=[],l=0;l<u.length;l++)u[l]&&s.push(u[l]);u=s}function f(e){var n={n:5,item_name:t(".good-recommend-header").find(".grNavItem.active").data("queryword")||"",type:e||1};a.puvDot(n)}var g=t(window).height();t(window).on("resize",(function(){g=t(window).height()})),t(document).scroll((function(){h()}));var m=null,v=null,w=null;function b(){t(".good-recommend-header .grNavItem").unbind().on("click",(function(e){var n=t(this).index();t(this).addClass("active").siblings().removeClass("active"),t(this).find(".grNavItemHotSign").hide(),p(o[n]),a.Stat.send("1207.5873.gif",{_referer:o[n].queryword})})),t(".good-recommend-wrap .good-recommend-baoyou").unbind().on("click",(function(e){a.Stat.send("1133.8925.gif"),window.openWin(c.url,"_blank")})),t(".goodRecommendListItem").unbind().on("mousedown",(function(e){e.stopPropagation(),m=(new Date).valueOf()})).on("mouseup",(function(e){e.stopPropagation(),v=(new Date).valueOf();for(var n=t(this).get(0).getBoundingClientRect(),i={mousedownTime:m,mouseupTime:v,width:n.width,height:n.height,offsetX:e.clientX-n.left,offsetY:e.clientY-n.top},r=function(e){if(!e)return"";for(var t={},n=0;n<d.length;n++)if(d[n].randomId==e){t=d[n];break}return t}(t(this).data("randomid")),o=r.url,s=r.clktk||[],c=[],u=0;u<s.length;u++)c.push(a.replaceMacro(s[u],i));c&&a.Stat.setLog(c),a.Stat.send("1133.8925.gif"),a.Stat.send("1207.7189.gif",{_referer:l.queryword}),"推荐"==l.queryword?a.Stat.send("1207.9636.gif",{_referer:l.queryword}):a.Stat.send("1207.1260.gif",{_referer:l.queryword}),f(2),o=a.replaceMacro(o,i),window.openWin(o,"_blank")})).on("click",(function(e){e.stopPropagation()})).on("mouseenter",(function(e){var n=this;t(this).find(".intervalBox").show();var i=1,a=30,r=59;t(this).find(".hour").html(y(i)),t(this).find(".minute").html(y(a)),t(this).find(".second").html(y(r)),w=setInterval((function(){r>0?r--:i>0||a>0?(r=59,a>0?a--:(a=59,i=0)):clearInterval(w),t(n).find(".hour").html(y(i)),t(n).find(".minute").html(y(a)),t(n).find(".second").html(y(r))}),1e3)})).on("mouseleave",(function(e){t(this).find(".intervalBox").hide(),clearInterval(w)}))}function y(e){return e>9?e:"0"+e}e.exports={init:function(){var e=localStorage.getItem("newpagesConfig")||"";(e=e?JSON.parse(e).goodRecommend:{})&&!0===e.show?(o=e&&e.navData||s,c=e&&e.excess||{},function(){for(var e="",n=0;n<o.length;n++){var i="";o[n].isHot&&(i='<span class="grNavItemHotSign"></span>'),e+="<li class='grNavItem' data-queryword=\""+o[n].queryword+'" data-showid="'+o[n].showid+'">\n\t\t\t\t\t'+o[n].title+"\n\t\t\t\t\t"+i+"\n\t\t\t\t</li>"}t(".good-recommend-header").html(e),t(".good-recommend-header .grNavItem").eq(0).addClass("active");var a=c&&c.title||"",r=c&&c.url||"";a&&r&&(t(".good-recommend-baoyou").html(c.title),c.color&&t(".good-recommend-baoyou").css("color",c.color))}(),p(o[0])):t(".good-recommend-wrap").hide()}}}).call(this,n(1))},function(e,t,n){"use strict";(function(t){var i=n(2),a=n(158);function r(e,t){try{if("undefined"!=typeof localStorage){var n=localStorage.getItem(e);return null!==n?n:t}return t}catch(e){return console.error("Error accessing localStorage:",e),t}}function o(){try{return"localhost"===window.location.hostname||"127.0.0.1"===window.location.hostname}catch(e){return!1}}var s={};try{var l=r("newpagesConfig","{}");s=JSON.parse(l)}catch(e){console.error("Error parsing newpagesConfig:",e),s={}}var c=s.Top_center_today||{name:"每日运势",data:[{title:"每日运势",url:"https://www.so.com/s?q=%E7%94%9F%E6%88%90%E4%BD%A0%E7%9A%84%E4%B8%93%E5%B1%9E%E8%BF%90%E5%8A%BF%E6%8A%A5%E5%91%8A&src=360se_newtab_ys",logo:"https://p2.ssl.qhimg.com/d/inn/0492d9e15fdc/date_fortune2x.png"}]};t(".h_date .h_date_right").html('<img src="'+c.data[0].logo+'" alt="'+c.data[0].title+'"><a  title="'+c.data[0].title+'">'+c.data[0].title+"</a>"),(s.Top_right_ai_small||[{title:"Ai双色球",url:"https://www.so.com/s?q=%E5%8F%8C%E8%89%B2%E7%90%83&src=360se_newtab_ssq",logo:"https://browser5.qhimg.com/d/inn/aea56b9e8729/shuansge.png"},{title:"旅游攻略",url:"https://www.so.com/s?q=%E6%97%85%E6%B8%B8%E8%A6%81%E6%80%8E%E4%B9%88%E8%A7%84%E5%88%92&src=360se_newtab_lvyou",logo:"https://browser5.qhimg.com/d/inn/aea56b9e8729/lvyou.png"},{title:"解梦大师",url:"https://www.so.com/s?q=%E8%A7%A3%E6%A2%A6%E5%A4%A7%E5%B8%88&src=360se_newtab_jiemeng",logo:"https://browser5.qhimg.com/d/inn/aea56b9e8729/jiemeng.png"},{title:"起名大师",url:"https://www.so.com/s?q=%E8%B5%B7%E5%90%8D%E5%A4%A7%E5%B8%88&src=360se_newtab_qiming",logo:"https://browser5.qhimg.com/d/inn/aea56b9e8729/qiming.png"},{title:"AI写作",url:"https://www.so.com/s?q=%E4%BD%9C%E6%96%87%E8%BE%85%E5%AF%BC%E5%B0%8F%E5%8A%A9%E6%89%8B&src=360se_newtab_zw",logo:"https://browser5.qhimg.com/d/inn/aea56b9e8729/xiezuo.png"},{title:"歌词助手",url:"https://www.so.com/s?q=%E6%AD%8C%E8%AF%8D%E5%8A%A9%E6%89%8B&src=360se_newtab_sing",logo:"https://browser5.qhimg.com/d/inn/1a3cccceb24f/geci.png"}]).forEach((function(e,n){t(".h_tools").append('<div><a href="'+e.url+'" target="_blank" title="'+e.title+"\"><img src='"+e.logo+"' alt=\""+e.title+'"><p>'+e.title+"</p></a></div>")})),t(".weather_wrap").click((function(e){var n=localStorage.getItem("flowMode");"newsflow_a"===n?i.Stat.sendFlow("1579.6171.gif",{_referer:"headsearch"}):"newsflow_b"===n&&i.Stat.sendFlow("1579.7079.gif",{_referer:"headsearch"}),e.preventDefault(),i.Stat.send("1498.9747.gif"),window.open("https://www.so.com/s?q="+encodeURI(t(".area_t p").text()+" 天气")+"&ie=utf-8&src=360se_newtab_weather","_blank")})),t(".h_date_right").click((function(e){var t=localStorage.getItem("flowMode");"newsflow_a"===t?i.Stat.sendFlow("1579.6171.gif",{_referer:"headsearch"}):"newsflow_b"===t&&i.Stat.sendFlow("1579.7079.gif",{_referer:"headsearch"}),e.preventDefault(),i.Stat.send("1498.7243.gif"),window.open(c.data[0].url,"_blank")})),t(".h_date_left").click((function(e){var t=localStorage.getItem("flowMode");"newsflow_a"===t?i.Stat.sendFlow("1579.6171.gif",{_referer:"headsearch"}):"newsflow_b"===t&&i.Stat.sendFlow("1579.7079.gif",{_referer:"headsearch"}),e.preventDefault(),i.Stat.send("1498.5906.gif"),window.open("https://www.so.com/s?q="+encodeURI("日历")+"&ie=utf-8&src=360se_newtab_rili","_blank")})),t(".h_tools a").click((function(e){var n=r("flowMode",null);"newsflow_a"===n?i.Stat.sendFlow("1579.6171.gif",{_referer:"headsearch"}):"newsflow_b"===n&&i.Stat.sendFlow("1579.7079.gif",{_referer:"headsearch"}),e.preventDefault(),i.Stat.send("1498.6316.gif",{_referer:t.trim(t(this).text())}),window.open(t(this).attr("href"),"_blank")})),e.exports={init:function(){i.Stat.send("1498.6137.gif"),t.ajax({dataType:"jsonp",url:o()?"https://cors-anywhere.herokuapp.com/https://open.onebox.so.com/Dataapi":"https://open.onebox.so.com/Dataapi",data:{query:"天气",type:"weather",ip:"",src:"soindex",d:"pc",url:"weather"},success:function(e){if(console.log("天气-----",e),e.weather&&e.weather.length){var n=e.weather[1],i=(e.weather[2],e.pubtime),a=t(".weather_wrap"),r=e.realtime.weather.temperature;if(t(".area_t p").text(e.pm25.cityName),t(".weather_nowtemperaty").text(r),n.info.day[5]<i&&i<n.info.night[5]){var o=n.info.day[1],s=t(".tody_weather"),l=t("<a>").text(o);o.length>4&&l.attr("title",o),s.html(l),"晴"===o?a.css({background:"linear-gradient(to bottom, #dae9ff, #ffffff)"}):"强沙暴"===o||"浮沉"===o?a.css({background:"linear-gradient(to bottom, #ffe9c9, #ffffff)"}):a.css({background:"linear-gradient(to bottom, #bac6da, #ffffff)"}),"晴"===n.info.day[1]?t(".new_today").css({background:"url(https://browser5.qhimg.com/d/inn/326e973f5e77/0_day.png) center / 56px 56px no-repeat"}):"多云"===n.info.day[1]?t(".new_today").css({background:"url(https://browser5.qhimg.com/d/inn/326e973f5e77/1_day.png) center / 56px 56px no-repeat"}):"冰霰"===n.info.day[1]?t(".new_today").css({background:"url(https://browser5.qhimg.com/d/inn/326e973f5e77/bingxain.png) center / 56px 56px no-repeat"}):t(".new_today").css({background:"url(https://browser5.qhimg.com/d/inn/326e973f5e77/"+n.info.day[0]+".png)  center / 56px 56px no-repeat"})}else{var c=n.info.night[1],d=t(".tody_weather"),u=t("<a>").text(c);c.length>4&&u.attr("title",c),d.html(u),"晴"===c?a.css({background:"linear-gradient(to bottom, #dae9ff, #ffffff)"}):"强沙暴"===c||"浮沉"===c?a.css({background:"linear-gradient(to bottom, #ffe9c9, #ffffff)"}):a.css({background:"linear-gradient(to bottom, #bac6da, #ffffff)"}),"晴"===n.info.night[1]?t(".new_today").css({background:"url(https://browser5.qhimg.com/d/inn/326e973f5e77/0_night.png) center / 56px 56px no-repeat"}):"多云"===n.info.night[1]?t(".new_today").css({background:"url(https://browser5.qhimg.com/d/inn/326e973f5e77/1_night.png) center / 56px 56px no-repeat"}):"冰霰"===n.info.night[1]?t(".new_today").css({background:"url(https://browser5.qhimg.com/d/inn/326e973f5e77/bingxain.png) center / 56px 56px no-repeat"}):t(".new_today").css({background:"url(https://browser5.qhimg.com/d/inn/326e973f5e77/"+n.info.night[0]+".png)  center / 56px 56px no-repeat"})}t(".today .temperature").find("span").eq(0).html(Math.min(n.info.day[2],n.info.night[2])+"~"+Math.max(n.info.day[2],n.info.night[2])+"℃").parents(".weather_wrap").css({visibility:"visible"})}else t(".weather_wrap").hide()},error:function(e){console.log(e),t(".weather_wrap").hide()}}),function(){var e=new Date,n=e.getFullYear(),i=e.getMonth()+1,r=e.getDate();i>=1&&i<=9&&(i="0"+i),r>=0&&r<=9&&(r="0"+r);var o,s=n+"/"+i+"/"+r,l="星期"+["日","一","二","三","四","五","六"][(new Date).getDay()],c=""+s,d=void 0,u=["","一","二","三","四","五","六","七","八","九","十","十一","十二"],p=["初","十","廿","卅","□"],h=[19416,19168,42352,21717,53856,55632,91476,22176,39632,21970,19168,42422,42192,53840,119381,46400,54944,44450,38320,84343,18800,42160,46261,27216,27968,109396,11104,38256,21234,18800,25958,54432,59984,28309,23248,11104,100067,37600,116951,51536,54432,120998,46416,22176,107956,9680,37584,53938,43344,46423,27808,46416,86869,19872,42416,83315,21168,43432,59728,27296,44710,43856,19296,43748,42352,21088,62051,55632,23383,22176,38608,19925,19152,42192,54484,53840,54616,46400,46752,103846,38320,18864,43380,42160,45690,27216,27968,44870,43872,38256,19189,18800,25776,29859,59984,27480,23232,43872,38613,37600,51552,55636,54432,55888,30034,22176,43959,9680,37584,51893,43344,46240,47780,44368,21977,19360,42416,86390,21168,43312,31060,27296,44368,23378,19296,42726,42208,53856,60005,54576,23200,30371,38608,19415,19152,42192,118966,53840,54560,56645,46496,22224,21938,18864,42359,42160,43600,111189,27936,44448,84835];function f(e){return m(e)?65536&h[e-1900]?30:29:0}function g(e){var t,n=348;for(t=32768;t>8;t>>=1)n+=h[e-1900]&t?1:0;return n+f(e)}function m(e){return 15&h[e-1900]}function v(e,t){return h[e-1900]&65536>>t?30:29}"甲乙丙丁戊己庚辛壬癸".charAt((n-4)%10),"子丑寅卯辰巳午未申酉戌亥".charAt((n-4)%12);var w,b=new function(e,t,n){var i,a,r=0,o=(Date.UTC(e,t,n)-Date.UTC(1900,0,31))/864e5;for(i=1900;i<2050&&o>0;i++)o-=r=g(i);for(o<0&&(o+=r,i--),this.year=i,a=m(i),this.isLeap=!1,i=1;i<13&&o>0;i++)a>0&&i==a+1&&0==this.isLeap?(--i,this.isLeap=!0,r=f(this.year)):r=v(this.year,i),1==this.isLeap&&i==a+1&&(this.isLeap=!1),o-=r;0==o&&a>0&&i==a+1&&(this.isLeap?this.isLeap=!1:(this.isLeap=!0,--i)),o<0&&(o+=r,--i),this.month=i,this.day=o+1}(n,i-1,r);d=1==(w=b.month)?"正":u[w],o=function(e){var t;switch(e){case 10:t="初十";break;case 20:t="二十";break;case 30:t="三十";break;default:t=p[Math.floor(e/10)],t+=u[e%10]}return t}(b.day),1==b.isLeap&&(d="闰"+d),console.log("农历日期---",d+"月"+o);var y=a.solarToLunar((new Date).getFullYear(),(new Date).getMonth()+1,(new Date).getDate()),_=y.GanZhiYear+"年 ",S=y.lunarMonthName,x=y.lunarDayName;t(".h_date_left").css({visibility:"visible"}).find("p").eq(0).text(c).next().text("·").next().text(l).next().text(_+S+x)}()}}}).call(this,n(1))},function(e,t,n){"use strict";var i,a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(){var r=function(e,t){if(e&&t&&"object"==(void 0===t?"undefined":a(t)))for(var n in t)e[n]=t[n];return e},o=function(e,t,n,i){var a=[];if(n<1)return a;for(var r=i=i||0,o=0;o<n;o++)a.push({year:e,month:t,day:r}),r++;return a},s="输入的年份超过了可查询范围，仅支持1891至2100年",l=null,c={current:"",setCurrent:function(e){this.current!=e&&(this.current=e,this.clear())},set:function(e,t){return l||(l={}),l[e]=t,l[e]},get:function(e){return l||(l={}),l[e]},clear:function(){l=null}},d=function(e,t){return"d"+(e=(e+=1)<10?"0"+e:e)+(t=t<10?"0"+t:t)},u={heavenlyStems:["甲","乙","丙","丁","戊","己","庚","辛","壬","癸"],earthlyBranches:["子","丑","寅","卯","辰","巳","午","未","申","酉","戌","亥"],zodiac:["鼠","牛","虎","兔","龙","蛇","马","羊","猴","鸡","狗","猪"],solarTerm:["小寒","大寒","立春","雨水","惊蛰","春分","清明","谷雨","立夏","小满","芒种","夏至","小暑","大暑","立秋","处暑","白露","秋分","寒露","霜降","立冬","小雪","大雪","冬至"],monthCn:["正","二","三","四","五","六","七","八","九","十","十一","十二"],dateCn:["初一","初二","初三","初四","初五","初六","初七","初八","初九","初十","十一","十二","十三","十四","十五","十六","十七","十八","十九","二十","廿一","廿二","廿三","廿四","廿五","廿六","廿七","廿八","廿九","三十","卅一"]},p={y2013:{d0101:2,d0102:2,d0103:2,d0105:1,d0106:1,d0209:2,d0210:2,d0211:2,d0212:2,d0213:2,d0214:2,d0215:2,d0216:1,d0217:1,d0404:2,d0405:2,d0406:2,d0407:1,d0427:1,d0428:1,d0429:2,d0430:2,d0501:2,d0608:1,d0609:1,d0610:2,d0611:2,d0612:2,d0919:2,d0920:2,d0921:2,d0922:1,d0929:1,d1001:2,d1002:2,d1003:2,d1004:2,d1005:2,d1006:2,d1007:2,d1012:1},y2014:{d0101:2,d0126:1,d0131:2,d0201:2,d0202:2,d0203:2,d0204:2,d0205:2,d0206:2,d0208:1,d0405:2,d0407:2,d0501:2,d0502:2,d0503:2,d0504:1,d0602:2,d0908:2,d0928:1,d1001:2,d1002:2,d1003:2,d1004:2,d1005:2,d1006:2,d1007:2,d1011:1},y2015:{d0101:2,d0102:2,d0103:2,d0104:1,d0215:1,d0218:2,d0219:2,d0220:2,d0221:2,d0222:2,d0223:2,d0228:1,d0405:2,d0406:2,d0501:2,d0502:2,d0503:2,d0620:2,d0622:2,d0903:2,d0904:2,d0905:2,d0906:1,d0927:2,d1001:2,d1002:2,d1003:2,d1004:2,d1005:2,d1006:2,d1007:2,d1010:1},y2016:{d0101:2,d0102:2,d0103:2,d0206:1,d0207:2,d0208:2,d0209:2,d0210:2,d0211:2,d0212:2,d0213:2,d0214:1,d0402:2,d0403:2,d0404:2,d0430:2,d0501:2,d0502:2,d0609:2,d0610:2,d0611:2,d0612:1,d0915:2,d0916:2,d0917:2,d0918:1,d1001:2,d1002:2,d1003:2,d1004:2,d1005:2,d1006:2,d1007:2,d1008:1,d1009:1,d1231:2},y2017:{d0101:2,d0102:2,d0127:1,d0128:2,d0129:2,d0130:2,d0132:2,d0201:2,d0202:2,d0204:1,d0401:1,d0402:2,d0403:2,d0404:2,d0429:2,d0430:2,d0501:2,d0527:1,d0528:2,d0529:2,d0530:2,d0930:1,d1001:2,d1002:2,d1003:2,d1004:2,d1005:2,d1006:2,d1007:2,d1008:2}},h={d0101:"元旦节",d0202:"世界湿地日",d0210:"国际气象节",d0214:"情人节",d0301:"国际海豹日",d0303:"全国爱耳日",d0305:"学雷锋纪念日",d0308:"妇女节",d0312:"植树节 孙中山逝世纪念日",d0314:"国际警察日",d0315:"消费者权益日",d0317:"中国国医节 国际航海日",d0321:"世界森林日 消除种族歧视国际日 世界儿歌日",d0322:"世界水日",d0323:"世界气象日",d0324:"世界防治结核病日",d0325:"全国中小学生安全教育日",d0330:"巴勒斯坦国土日",d0401:"愚人节 全国爱国卫生运动月(四月) 税收宣传月(四月)",d0407:"世界卫生日",d0422:"世界地球日",d0423:"世界图书和版权日",d0424:"亚非新闻工作者日",d0501:"劳动节",d0504:"青年节",d0505:"碘缺乏病防治日",d0508:"世界红十字日",d0512:"国际护士节",d0515:"国际家庭日",d0517:"世界电信日",d0518:"国际博物馆日",d0520:"全国学生营养日",d0522:"国际生物多样性日",d0523:"国际牛奶日",d0531:"世界无烟日",d0601:"国际儿童节",d0605:"世界环境日",d0606:"全国爱眼日",d0617:"防治荒漠化和干旱日",d0623:"国际奥林匹克日",d0625:"全国土地日",d0626:"国际禁毒日",d0701:"香港回归纪念日 中共诞辰 世界建筑日",d0702:"国际体育记者日",d0707:"抗日战争纪念日",d0711:"世界人口日",d0730:"非洲妇女日",d0801:"建军节",d0808:"中国男子节(爸爸节)",d0815:"抗日战争胜利纪念",d0908:"国际扫盲日 国际新闻工作者日",d0909:"毛泽东逝世纪念",d0910:"中国教师节",d0914:"世界清洁地球日",d0916:"国际臭氧层保护日",d0918:"九一八事变纪念日",d0920:"国际爱牙日",d0927:"世界旅游日",d0928:"孔子诞辰",d1001:"国庆节 世界音乐日 国际老人节",d1002:"国际和平与民主自由斗争日",d1004:"世界动物日",d1006:"老人节",d1008:"全国高血压日 世界视觉日",d1009:"世界邮政日 万国邮联日",d1010:"辛亥革命纪念日 世界精神卫生日",d1013:"世界保健日 国际教师节",d1014:"世界标准日",d1015:"国际盲人节(白手杖节)",d1016:"世界粮食日",d1017:"世界消除贫困日",d1022:"世界传统医药日",d1024:"联合国日 世界发展信息日",d1031:"世界勤俭日",d1107:"十月社会主义革命纪念日",d1108:"中国记者日",d1109:"全国消防安全宣传教育日",d1110:"世界青年节",d1111:"国际科学与和平周(本日所属的一周)",d1112:"孙中山诞辰纪念日",d1114:"世界糖尿病日",d1117:"国际大学生节 世界学生节",d1121:"世界问候日 世界电视日",d1129:"国际声援巴勒斯坦人民国际日",d1201:"世界艾滋病日",d1203:"世界残疾人日",d1205:"国际经济和社会发展志愿人员日",d1208:"国际儿童电视日",d1209:"世界足球日",d1210:"世界人权日",d1212:"西安事变纪念日",d1213:"南京大屠杀(1937年)纪念日！紧记血泪史！",d1220:"澳门回归纪念",d1221:"国际篮球日",d1224:"平安夜",d1225:"圣诞节",d1226:"毛泽东诞辰纪念"},f={d0101:"春节",d0115:"元宵节",d0202:"龙抬头节",d0323:"妈祖生辰",d0505:"端午节",d0707:"七夕情人节",d0715:"中元节",d0815:"中秋节",d0909:"重阳节",d1015:"下元节",d1208:"腊八节",d1223:"小年",d0100:"除夕"},g=[[2,1,21,22184],[0,2,9,21936],[6,1,30,9656],[0,2,17,9584],[0,2,6,21168],[5,1,26,43344],[0,2,13,59728],[0,2,2,27296],[3,1,22,44368],[0,2,10,43856],[8,1,30,19304],[0,2,19,19168],[0,2,8,42352],[5,1,29,21096],[0,2,16,53856],[0,2,4,55632],[4,1,25,27304],[0,2,13,22176],[0,2,2,39632],[2,1,22,19176],[0,2,10,19168],[6,1,30,42200],[0,2,18,42192],[0,2,6,53840],[5,1,26,54568],[0,2,14,46400],[0,2,3,54944],[2,1,23,38608],[0,2,11,38320],[7,2,1,18872],[0,2,20,18800],[0,2,8,42160],[5,1,28,45656],[0,2,16,27216],[0,2,5,27968],[4,1,24,44456],[0,2,13,11104],[0,2,2,38256],[2,1,23,18808],[0,2,10,18800],[6,1,30,25776],[0,2,17,54432],[0,2,6,59984],[5,1,26,27976],[0,2,14,23248],[0,2,4,11104],[3,1,24,37744],[0,2,11,37600],[7,1,31,51560],[0,2,19,51536],[0,2,8,54432],[6,1,27,55888],[0,2,15,46416],[0,2,5,22176],[4,1,25,43736],[0,2,13,9680],[0,2,2,37584],[2,1,22,51544],[0,2,10,43344],[7,1,29,46248],[0,2,17,27808],[0,2,6,46416],[5,1,27,21928],[0,2,14,19872],[0,2,3,42416],[3,1,24,21176],[0,2,12,21168],[8,1,31,43344],[0,2,18,59728],[0,2,8,27296],[6,1,28,44368],[0,2,15,43856],[0,2,5,19296],[4,1,25,42352],[0,2,13,42352],[0,2,2,21088],[3,1,21,59696],[0,2,9,55632],[7,1,30,23208],[0,2,17,22176],[0,2,6,38608],[5,1,27,19176],[0,2,15,19152],[0,2,3,42192],[4,1,23,53864],[0,2,11,53840],[8,1,31,54568],[0,2,18,46400],[0,2,7,46752],[6,1,28,38608],[0,2,16,38320],[0,2,5,18864],[4,1,25,42168],[0,2,13,42160],[10,2,2,45656],[0,2,20,27216],[0,2,9,27968],[6,1,29,44448],[0,2,17,43872],[0,2,6,38256],[5,1,27,18808],[0,2,15,18800],[0,2,4,25776],[3,1,23,27216],[0,2,10,59984],[8,1,31,27432],[0,2,19,23232],[0,2,7,43872],[5,1,28,37736],[0,2,16,37600],[0,2,5,51552],[4,1,24,54440],[0,2,12,54432],[0,2,1,55888],[2,1,22,23208],[0,2,9,22176],[7,1,29,43736],[0,2,18,9680],[0,2,7,37584],[5,1,26,51544],[0,2,14,43344],[0,2,3,46240],[4,1,23,46416],[0,2,10,44368],[9,1,31,21928],[0,2,19,19360],[0,2,8,42416],[6,1,28,21176],[0,2,16,21168],[0,2,5,43312],[4,1,25,29864],[0,2,12,27296],[0,2,1,44368],[2,1,22,19880],[0,2,10,19296],[6,1,29,42352],[0,2,17,42208],[0,2,6,53856],[5,1,26,59696],[0,2,13,54576],[0,2,3,23200],[3,1,23,27472],[0,2,11,38608],[11,1,31,19176],[0,2,19,19152],[0,2,8,42192],[6,1,28,53848],[0,2,15,53840],[0,2,4,54560],[5,1,24,55968],[0,2,12,46496],[0,2,1,22224],[2,1,22,19160],[0,2,10,18864],[7,1,30,42168],[0,2,17,42160],[0,2,6,43600],[5,1,26,46376],[0,2,14,27936],[0,2,2,44448],[3,1,23,21936],[0,2,11,37744],[8,2,1,18808],[0,2,19,18800],[0,2,8,25776],[6,1,28,27216],[0,2,15,59984],[0,2,4,27424],[4,1,24,43872],[0,2,12,43744],[0,2,2,37600],[3,1,21,51568],[0,2,9,51552],[7,1,29,54440],[0,2,17,54432],[0,2,5,55888],[5,1,26,23208],[0,2,14,22176],[0,2,3,42704],[4,1,23,21224],[0,2,11,21200],[8,1,31,43352],[0,2,19,43344],[0,2,7,46240],[6,1,27,46416],[0,2,15,44368],[0,2,5,21920],[4,1,24,42448],[0,2,12,42416],[0,2,2,21168],[3,1,22,43320],[0,2,9,26928],[7,1,29,29336],[0,2,17,27296],[0,2,6,44368],[5,1,26,19880],[0,2,14,19296],[0,2,3,42352],[4,1,24,21104],[0,2,10,53856],[8,1,30,59696],[0,2,18,54560],[0,2,7,55968],[6,1,27,27472],[0,2,15,22224],[0,2,5,19168],[4,1,25,42216],[0,2,12,42192],[0,2,1,53584],[2,1,21,55592],[0,2,9,54560]],m=[0,21208,42467,63836,85337,107014,128867,150921,173149,195551,218072,240693,263343,285989,308563,331033,353350,375494,397447,419210,440795,462224,483532,504758];function v(e){for(var t=g[e-1890],n=t[0],i=t[3].toString(2).split(""),a=0;a<16-i.length;a++)i.unshift(0);var r=n?13:12,o=0,s=[];for(a=0;a<r;a++)0==i[a]?(o+=29,s.push(29)):(o+=30,s.push(30));return{yearDays:o,monthDays:s}}function w(e,t,n){var i=g[e-1890],a=function(e,t,n,i,a,r){var o=new Date(e,t,n).getTime();return(new Date(i,a,r).getTime()-o)/864e5}(e,i[1]-1,i[2],e,t,n);return 0==a?[e,0,1]:function(e,t){for(var n=v(e),i=t>0?t:n.yearDays-Math.abs(t),a=n.monthDays,r=0,o=0,s=0;s<a.length;s++)if((r+=a[s])>i){o=s,r-=a[s];break}return[e,o,i-r+1]}(a>0?e:e-1,a)}function b(e,t){return new Date(31556925974.7*(e-1890)+6e4*m[t]+Date.UTC(1890,0,5,16,2,31)).getUTCDate()}function y(e){return u.zodiac[(e-1890+25)%12]}function _(e){return u.heavenlyStems[e%10]+u.earthlyBranches[e%12]}function S(e,t){return _(e-1890+25+(t=t||0))}function x(e,t,n){return _(12*(e-1890)+t+12+(n=n||0))}function k(e,t,n){return _(Date.UTC(e,t,n)/864e5+29219+18)}function C(e,t){return[31,T(e)?29:28,31,30,31,30,31,31,30,31,30,31][t]}function T(e){return e%4==0&&e%100!=0||e%400==0}function I(e,t,n,i){var a=arguments.length,r=new Date;return e=a?parseInt(e,10):r.getFullYear(),t=a?parseInt(t-1,10):r.getMonth(),n=a&&parseInt(n,10)||r.getDate(),e<(i||1891)||e>2100?{error:100,msg:s}:{year:e,month:t,day:n}}function D(e,t,n){var i=I(e,t,n,1890);if(i.error)return i;var a=i.year,r=i.month,o=i.day;c.setCurrent(a);var s=c.get("term2")?c.get("term2"):c.set("term2",b(a,2)),l=c.get("termList")?c.get("termList"):c.set("termList",function(e){for(var t={},n=0,i=0;i<24;i++){var a=b(e,i);i%2==0&&n++,t[d(n-1,a)]=u.solarTerm[i]}return t}(a)),m=r>1||1==r&&o>=s?a+1:a,_=o>=b(a,2*r)?r+1:r,C=w(a,r,o),T=function(e){return g[e-1890][0]}(C[0]),D="";D=T>0&&T==C[1]?"闰"+u.monthCn[C[1]-1]+"月":T>0&&C[1]>T?u.monthCn[C[1]-1]+"月":u.monthCn[C[1]]+"月";var E="",M=v(C[0]).monthDays;return E=C[1]==M.length-1&&C[2]==M[M.length-1]?f.d0100:T>0&&C[1]>T?f[d(C[1]-1,C[2])]:f[d(C[1],C[2])],{zodiac:y(m),GanZhiYear:S(m),GanZhiMonth:x(a,_),GanZhiDay:k(a,r,o),worktime:p["y"+a]&&p["y"+a][d(r,o)]?p["y"+a][d(r,o)]:0,term:l[d(r,o)],lunarYear:C[0],lunarMonth:C[1]+1,lunarDay:C[2],lunarMonthName:D,lunarDayName:u.dateCn[C[2]-1],lunarLeapMonth:T,solarFestival:h[d(r,o)],lunarFestival:E,isBigMonth:30==M[C[1]]}}function E(e,t,n){var i=I(e,t);if(i.error)return i;var a,r,s,l=i.year,c=i.month,d={firstDay:new Date(l,c,1).getDay(),monthDays:C(l,c),monthData:[]};if(d.monthData=o(l,c+1,d.monthDays,1),n){if(d.firstDay>0){var u=c-1<0?l-1:l,p=c-1<0?11:c-1;a=C(u,p),r=o(u,p+1,d.firstDay,a-d.firstDay+1),d.monthData=r.concat(d.monthData)}if(42-d.monthData.length!=0){var h=c+1>11?l+1:l,f=c+1>11?0:c+1,g=42-d.monthData.length;s=o(h,f+1,g,1),d.monthData=d.monthData.concat(s)}}return d}var M={solarToLunar:D,lunarToSolar:function(e,t,n){var i=I(e,t,n);if(i.error)return i;var a=i.year,r=function(e,t,n){for(var i=v(e).monthDays,a=0,r=0;r<i.length&&r<t;r++)a+=i[r];return a+n-1}(a,i.month,i.day),o=g[a-1890],s=o[1],l=o[2],c=new Date(a,s-1,l).getTime()+864e5*r;return{year:(c=new Date(c)).getFullYear(),month:c.getMonth()+1,day:c.getDate()}},calendar:function(e,t,n){var i=I(e,t);if(i.error)return i;for(var a=E(i.year,i.month+1,n),o=0;o<a.monthData.length;o++){var s=a.monthData[o],l=D(s.year,s.month,s.day);r(a.monthData[o],l)}return a},solarCalendar:E,setWorktime:function(e){r(p,e)},getSolarMonthDays:C};void 0===(i=function(){return M}.call(t,n,t,e))||(e.exports=i)}()},function(e,t,n){"use strict";(function(e){window.onload=async function(){var t;if(await(t="https://static-ssl.mediav.com/js/feed_float_single.js",new Promise((function(e,n){var i=document.createElement("script");i.src=t,document.getElementsByTagName("head")[0].appendChild(i);var a=setTimeout((function(){e(!1)}),1e3);i.onload=function(){clearTimeout(a),e(!0)}})))){var n=localStorage.getItem("newpagesConfig")||"{}",i=JSON.parse(n).ads_float_right,a=i.display,r=void 0!==a&&a,o=i.interval_count,s=void 0===o?0:o,l=(new Date).toLocaleDateString(),c=localStorage.getItem("ads_float_right")?JSON.parse(localStorage.getItem("ads_float_right")):{date:l,count:0},d=window.mode,u=!1;r&&c.count<s?(u=!0,c={date:l,count:new Date(l)-new Date(c.date)>0?1:1*c.count+1}):new Date(l)-new Date(c.date)>0&&(u=!0,c={date:l,count:1}),u&&"nav"==d?(console.log("加载悬浮广告"),new FEED_FLOAT_INIT({containerId:"float_ads_wrap",showid:"uel1Fb",onResponseHandler:function(t){console.log(e("#float_ads_wrap")),e("#float_ads_wrap").css({display:"block"}),window.showFloatAds=!0},onCloseHandler:function(){e("#float_ads_wrap").css({display:"none"}),window.showFloatAds=!1}}),localStorage.setItem("ads_float_right",JSON.stringify(c))):e("#float_ads_wrap").css({display:"none"});var p=null;e(window).scroll((function(){clearTimeout(p),e("#float_ads_wrap").fadeOut(),p=setTimeout((function(){e("#float_ads_wrap").fadeIn(100)}),300)}))}else console.log(" 右下角浮层广告sdk加载失败")}}).call(this,n(1))},function(e,t,n){"use strict";(function(t){var i=n(2),a=(new Date,function(){function e(e,n,i){var a=t(".nav-grid-item:not(draging):first");if(0!=a.length){var r=a.outerWidth(),o=(a.outerHeight(),t(".nav-grid-item")),s=t(".nav-grid-item:visible").length,l=0;if(s<12)l=((12-s)*r-8)/2;o.each((function(a){a>=e&&a<=n&&(a+=i);var o=t(this);o.hasClass("draging")||o.css({left:a*r+l})}))}}function n(e){var n=[];return t(e).each((function(e,i){var a=t("img",i),r=t(".title",i),o=t(i),s=a?a.attr("src"):"";n.push({title:r.text().trim()||"",url:o.attr("data-href")||"",randomId:o.attr("data-randomId"),bgc:o.attr("data-bgc"),bgw:o.attr("data-bgw"),logo:s})})),n}async function a(e){i.storage.setData("newNavGridData",e)}return{initSortable:function(r){e();var o,s,l,c,d,u,p,h,f,g,m,v,w,b,y,_,S=t(".navGridBox").width(),x=t(".navGridContent");function k(n){if(m=n.clientX,v=n.clientY,o){var i,a=n.pageX-l,r=n.pageY-c,k=l+a+d,C=c+r+u;t(p).css({left:k+"px",top:C+"px"});var T=x.css("left");if(T=parseInt(T),s.every((function(e){if(k+t(w).width()>e.left&&k-t(w).width()<e.left){if(e.absoluteLeft+T<0||e.absoluteLeft+T>=S)return!1;if(C+t(w).height()/3*2>e.top&&C-t(w).height()/3*2<e.top)return i=e.drag,!1}return!0})),i!==h&&i)h&&t(h).removeClass("pass-drag").removeClass("pass-drag-left").removeClass("pass-drag-top").removeClass("pass-drag-right").removeClass("pass-drag-bottom"),_=(h=i)?t(h).index():y,e(Math.min(y,_),Math.max(y,_),_>y?-1:1)}else{if(!b)return!1;if(n.button)return!1;if(Math.max(Math.abs(m-f),Math.abs(v-g))<2)return!1;if(p)return b=!1,!1;var I=w,D=t(I);E=[],t(".nav-grid-item:not(.nav-grid-item-add)").each((function(e,n){var i=t(n),a=i.offset();i.css("left"),E.push(n.rect={index:e,drag:n,left:a.left,top:a.top,right:a.left+i.outerWidth(),bottom:a.top+i.outerHeight(),absoluteLeft:parseInt(i.css("left"))})})),s=E,o=I,l=n.pageX,c=n.pageY,d=D.offset().left-l,u=D.offset().top-c,(p=document.createElement("div")).innerHTML=o.innerHTML,t(o).css("opacity",0).addClass("draging"),y=t(o).index(),t(p).addClass("drag-helper").css({width:D.width()+"px",height:D.height()+"px",left:D.offset().left+"px",top:D.offset().top+"px"}),D.hasClass("ui-state-disabled")&&(t(p).addClass("drag-helper-disabled"),TipsManager.showMostsDragTips()),document.body.appendChild(p)}var E}t(document).delegate(".nav-grid-item:not(.nav-grid-item-add)","mousedown",(function(e){return e.altKey||(f=e.clientX,g=e.clientY,b=!0,w=t(this)[0],t(w).parent().addClass("animating"),t(document).on("mousemove",k)),!1})),t(document).delegate("","mouseup",(function(s){if(t(document).off("mousemove",k),b=!1,setTimeout((function(){t(w).parent().removeClass("animating")}),300),o){Math.max(Math.abs(m-f),Math.abs(v-g))>2&&s.preventDefault();var l=t(o),c=l.offset(),d=h,u={left:o.offsetLeft,top:o.offsetTop};if(d){var S={w:l.outerWidth(),h:l.outerHeight()},x=t(".nav-grid-item:visible").length,C=0;if(x<12)C=((12-x)*S.w-8)/2;u=Object.assign(u,{left:_*S.w+C});var T=l.parent().offset();c={left:T.left+u.left,top:T.top},e(Math.min(y,_),Math.max(y,_),_>y?-1:1)}t(p).removeClass("drag-helper-disabled"),t(p).animate(c,300,(function(){if(d){o=l.css(u),s=1,o.attr("data-draged",s),console.log(o,"draged",1);var e=_>y?_:_-1;e<0?l.parent().prepend(l):t(".nav-grid-item:eq("+e+")").after(l),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"mosts",r=arguments[1],o=n(".nav-grid-item:not(.nav-grid-item-add)"),s=e+"UrlMap";window[s]={},o.forEach((function(e){window[s][e.url]=e})),a(o),r(o),setTimeout((function(){t(".just-dragged").removeClass("just-dragged")})),i.ScreenShot.capture("DataChanged")}("mosts",r)}var o,s;l.css({opacity:1,left:u.left}).removeClass("draging"),document.body.removeChild(p),p=null}))}o=null,h=null}))},positionTiles:e}}());e.exports=a}).call(this,n(1))},function(e,t){},function(e,t,n){"use strict";n.r(t),n.d(t,"RNG",(function(){return i})),n.d(t,"RNGFactory",(function(){return s})),n.d(t,"Random",(function(){return m}));class i{_seed(e,t){if(e===(e||0))return e;{const t=""+e;let n=0;for(let e=0;e<t.length;++e)n^=0|t.charCodeAt(e);return n}}}var a=n(35),r=n.n(a);class o extends i{constructor(e,t){super(),this.seed(e,t)}get name(){return"function"}next(){return this._rng()}seed(e,t){this._rng=e}clone(e,t){return new o(this._rng,t)}}var s=(...e)=>{const[t="default",...n]=e;switch(typeof t){case"object":if(t instanceof i)return t;break;case"function":return new o(t);case"number":case"string":return new o(r()(...n))}throw new Error(`invalid RNG "${t}"`)},l=(e,t=0,n=1)=>()=>e.next()*(n-t)+t;function c(e){return new d(e)}class d{constructor(e){this.isInt=()=>{if(Number.isInteger(this.n))return this;throw new Error("Expected number to be an integer, got "+this.n)},this.isPositive=()=>{if(this.n>0)return this;throw new Error("Expected number to be positive, got "+this.n)},this.lessThan=e=>{if(this.n<e)return this;throw new Error(`Expected number to be less than ${e}, got ${this.n}`)},this.greaterThanOrEqual=e=>{if(this.n>=e)return this;throw new Error(`Expected number to be greater than or equal to ${e}, got ${this.n}`)},this.greaterThan=e=>{if(this.n>e)return this;throw new Error(`Expected number to be greater than ${e}, got ${this.n}`)},this.n=e}}var u=(e,t=0,n=1)=>(void 0===n&&(n=void 0===t?1:t,t=0),c(t).isInt(),c(n).isInt(),()=>Math.floor(e.next()*(n-t+1)+t)),p=e=>()=>e.next()>=.5;const h=[0,0,.6931471805599453,1.791759469228055,3.1780538303479458,4.787491742782046,6.579251212010101,8.525161361065415,10.60460290274525,12.801827480081469],f=e=>h[e];class g extends i{get name(){return"default"}next(){return Math.random()}seed(e,t){}clone(){return new g}}class m{constructor(e){this._cache={},this.next=()=>this._rng.next(),this.float=(e,t)=>this.uniform(e,t)(),this.int=(e,t)=>this.uniformInt(e,t)(),this.integer=(e,t)=>this.uniformInt(e,t)(),this.bool=()=>this.uniformBoolean()(),this.boolean=()=>this.uniformBoolean()(),this.uniform=(e,t)=>this._memoize("uniform",l,e,t),this.uniformInt=(e,t)=>this._memoize("uniformInt",u,e,t),this.uniformBoolean=()=>this._memoize("uniformBoolean",p),this.normal=(e,t)=>((e,t=0,n=1)=>()=>{let i,a,r;do{i=2*e.next()-1,a=2*e.next()-1,r=i*i+a*a}while(!r||r>1);return t+n*a*Math.sqrt(-2*Math.log(r)/r)})(this,e,t),this.logNormal=(e,t)=>((e,t=0,n=1)=>{const i=e.normal(t,n);return()=>Math.exp(i())})(this,e,t),this.bernoulli=e=>((e,t=.5)=>(c(t).greaterThanOrEqual(0).lessThan(1),()=>Math.floor(e.next()+t)))(this,e),this.binomial=(e,t)=>((e,t=1,n=.5)=>(c(t).isInt().isPositive(),c(n).greaterThanOrEqual(0).lessThan(1),()=>{let i=0,a=0;for(;i++<t;)e.next()<n&&a++;return a}))(this,e,t),this.geometric=e=>((e,t=.5)=>{c(t).greaterThan(0).lessThan(1);const n=1/Math.log(1-t);return()=>Math.floor(1+Math.log(e.next())*n)})(this,e),this.poisson=e=>((e,t=1)=>{if(c(t).isPositive(),t<10){const n=Math.exp(-t);return()=>{let i=n,a=0,r=e.next();for(;r>i;)r-=i,i=t*i/++a;return a}}{const n=Math.sqrt(t),i=.931+2.53*n,a=.02483*i-.059,r=1.1239+1.1328/(i-3.4),o=.9277-3.6224/(i-2);return()=>{for(var s;;){let l,c=e.next();if(c<=.86*o)return l=c/o-.43,Math.floor((2*a/(.5-Math.abs(l))+i)*l+t+.445);c>=o?l=e.next()-.5:(l=c/o-.93,l=(l<0?-.5:.5)-l,c=e.next()*o);const d=.5-Math.abs(l);if(d<.013&&c>d)continue;const u=Math.floor((2*a/d+i)*l+t+.445);if(c=c*r/(a/(d*d)+i),u>=10){const e=(u+.5)*Math.log(t/u)-t-.9189385332046727+u-(1/12-(1/360-1/(1260*u*u))/(u*u))/u;if(Math.log(c*n)<=e)return u}else if(u>=0){const e=null!==(s=f(u))&&void 0!==s?s:0;if(Math.log(c)<=u*Math.log(t)-t-e)return u}}}}})(this,e),this.exponential=e=>((e,t=1)=>(c(t).isPositive(),()=>-Math.log(1-e.next())/t))(this,e),this.irwinHall=e=>((e,t=1)=>(c(t).isInt().greaterThanOrEqual(0),()=>{let n=0;for(let i=0;i<t;++i)n+=e.next();return n}))(this,e),this.bates=e=>((e,t=1)=>{c(t).isInt().isPositive();const n=e.irwinHall(t);return()=>n()/t})(this,e),this.pareto=e=>((e,t=1)=>{c(t).greaterThanOrEqual(0);const n=1/t;return()=>1/Math.pow(1-e.next(),n)})(this,e),e&&e instanceof i?this.use(e):this.use(new g),this._cache={}}get rng(){return this._rng}clone(...e){return e.length?new m(s(...e)):new m(this.rng.clone())}use(...e){this._rng=s(...e)}patch(){if(this._patch)throw new Error("Math.random already patched");this._patch=Math.random,Math.random=this.uniform()}unpatch(){this._patch&&(Math.random=this._patch,delete this._patch)}_memoize(e,t,...n){const i=""+n.join(";");let a=this._cache[e];return void 0!==a&&a.key===i||(a={key:i,distribution:t(this,...n)},this._cache[e]=a),a.distribution}}var v=new m;t.default=v}]);