!function(){window.SinaFinance&&window.SinaFinance.Widgets&&window.SinaFinance.Widgets.Hq||(window.SinaFinance=window.SinaFinance||{},window.SinaFinance.Widgets=window.SinaFinance.Widgets||{},function(){function e(){this.hqItems=[],this.hqKeys=[],this.aidedHqKeys=[],this.pollingIndex=null,this._handlers=[],this.defer=null}function n(){var e,n,t,i=[];for(e=0,n=x.length;n>e;e++)t=x[e],t&&(S=Math.min(S,t.defer),i.push(t.hqKeys,t.aidedHqKeys));z=b(i).str}function t(e){e?(clearInterval(k),k=setInterval(i,S),i()):clearInterval(k)}function i(){a(null,function(e,n){var t,i;if(n=+n,n>q)for(q=n,t=0,i=x.length;i>t;t++)x[t]&&x[t].emit("success",e)},function(){var e,n;for(e=0,n=x.length;n>e;e++)x[e]&&x[e].emit("fail","\u8f6e\u8be2\u5931\u8d25")},z)}function a(e,n,t,i){var a,s,o,c;if(a=e&&[].concat(e),!i){for(i="",s=0,o=a.length;o>s;s++)c=a[s],i+=","+c.key+(c.aidedKey?","+c.aidedKey:"");i=i.substring(1)}g(C+"?list="+i,function(e){var t=a&&r(a);n(t,e)},t)}function s(e){var n;switch(e.type){case"sh":e.key=e.type+e.code;break;case"sz":e.key=e.type+e.code;break;case"hk":n="hk"+e.code.toUpperCase(),e.key=n,e.aidedKey=n+"_i";break;case"us":n="gb_"+e.code.replace(".","$").toLowerCase(),e.key=n,e.aidedKey=n+"_i";break;case"of":e.key="f_"+e.code;break;case"fe":e.key=e.code.toUpperCase();break;case"znb_":e.key=e.type+e.code;break;case"hf":e.key=e.type+"_"+e.code;break;case"nf":e.key=e.type+"_"+e.code;break;case"fx":e.key=e.type+"_"+e.code;break;default:e.key=e.code}}function r(e,n){for(var t,i,a=0,s=e.length;s>a;a++)switch(t=e[a],i=_["hq_str_"+t.key],t.type){case"sh":t.info=o(i,n);break;case"sz":t.info=o(i,n);break;case"hk":t.info=c(i,n,_["hq_str_"+t.key+"_i"]);break;case"us":t.info=d(i,n,_["hq_str_"+t.key+"_i"]);break;case"of":t.info=l(i,n);break;case"fe":t.info=h(i,n);break;case"znb_":t.info=u(i,n);break;case"hf":t.info=m(i,n);break;case"nf":t.info=p(i,n);break;case"fx":t.info=f(i,n);break;default:t.info={}}return e}function o(e,n){var t;if(!e)return null;t=e.split(",");var i,a,s,r,o,c,d=t[0].replace(/\s*/g,""),l=t[32],h=t[30]+" "+t[31];switch(""!==t[2]&&(i=+t[2]),""!==t[3]&&(a=+t[3]),void 0!==i&&void 0!==a&&(s=a-i),i&&void 0!==s&&(r=s/i*100),0===a&&(a=i,s=0,r=0),void 0!==s&&(o=s>0?1:0>s?-1:0),void 0!==n&&(void 0!==i&&(i=v(i,n).str),void 0!==a&&(a=v(a,n).str),void 0!==s&&(s=v(s,n).str),void 0!==r&&(r=v(r,n).str)),void 0!==r&&(r+="%"),l){case"00":c="";break;case"01":case"04":case"05":c="\u4e34\u65f6\u505c\u724c";break;case"02":case"03":case"07":c="\u505c\u724c";break;case"-1":c="\u65e0\u8be5\u8bb0\u5f55";break;case"-2":c="\u672a\u4e0a\u5e02";break;case"-3":c="\u9000\u5e02"}return{cn:d,yp:i,p:a,ca:s,cp:r,trend:o,time:h,status:c,statusCode:l}}function c(e,n,t){var i;if(!e)return null;i=e.split(",");var a,s,r,o,c,d,l,h=i[1].replace(/\s*/g,""),u=i[0],m=i[17]+" "+i[18];if(""!==i[3]&&(a=+i[3]),""!==i[6]&&(s=+i[6]),""!==i[7]&&(r=+i[7]),""!==i[8]&&(o=+i[8]),0===s&&(s=a,r=0,o=0),void 0!==r&&(c=r>0?1:0>r?-1:0),void 0!==n&&(void 0!==a&&(a=v(a,n).str),void 0!==s&&(s=v(s,n).str),void 0!==r&&(r=v(r,n).str),void 0!==o&&(o=v(o,n).str)),void 0!==o&&(o+="%"),t)switch(l=t.split(",")[14]){case"0":d="\u9000\u5e02";break;case"1":d="";break;case"2":d="\u4f8b\u884c\u6027\u505c\u724c";break;case"3":d="\u8b66\u793a\u6027\u505c\u724c;";break;case"4":d="\u505c\u724c";break;case"5":d="\u5f85\u4e0a\u5e02";break;case"6":d="\u4e0a\u5e02\u524d\u53d6\u6d88\u4e0a\u5e02\u5730\u4f4d"}return{cn:h,en:u,yp:a,p:s,ca:r,cp:o,trend:c,time:m,status:d,statusCode:l}}function d(e,n,t){var i;if(!e)return null;i=e.split(",");var a,s,r,o,c,d,l,h=i[0].replace(/\s*/g,""),u=i[25];if(""!==i[26]&&(a=+i[26]),""!==i[1]&&(s=+i[1]),""!==i[4]&&(r=+i[4]),""!==i[2]&&(o=+i[2]),void 0!==r&&(c=r>0?1:0>r?-1:0),void 0!==n&&(void 0!==a&&(a=v(a,n).str),void 0!==s&&(s=v(s,n).str),void 0!==r&&(r=v(r,n).str),void 0!==o&&(o=v(o,n).str)),void 0!==o&&(o+="%"),t)switch(l=t.split(",")[3]){case"0":d="";break;case"1":d="\u9000\u5e02";break;case"2":d="";break;case"3":d="\u62df\u4e0a\u5e02;"}return{cn:h,yp:a,p:s,ca:r,cp:o,trend:c,time:u,status:d,statusCode:l}}function l(e,n){var t;if(!e)return null;t=e.split(",");var i,a,s,r,o,c,d,l=t[0].replace(/\s*/g,""),h=t[4];return""===t[3]?(""!==t[1]&&(o=+t[1]),""!==t[2]&&(c=+t[2]),void 0!==c&&(d=c>0?1:0>c?-1:0),void 0!==n&&(void 0!==o&&(o=v(o,n).str),void 0!==c&&(c=v(c,n).str)),void 0!==c&&(c+="%")):(""!==t[3]&&(a=+t[3]),""!==t[1]&&(i=+t[1]),void 0!==a&&void 0!==i&&(s=i-a),a&&void 0!==s&&(r=s/a*100),void 0!==s&&(d=s>0?1:0>s?-1:0),void 0!==n&&(void 0!==a&&(a=v(a,n).str),void 0!==i&&(i=v(i,n).str),void 0!==s&&(s=v(s,n).str),void 0!==r&&(r=v(r,n).str)),void 0!==r&&(r+="%")),{cn:l,ln:i,yn:a,ca:s,cp:r,pou:o,cy:c,trend:d,time:h}}function h(e,n){var t;if(!e)return null;t=e.split(",");var i,a,s,r,o,c=t[9].replace(/\s*/g,""),d=t[10]+" "+t[0];return""!==t[3]&&(i=+t[3]),""!==t[8]&&(a=+t[8]),void 0!==i&&void 0!==a&&(s=a-i),i&&void 0!==s&&(r=s/i*100),void 0!==s&&(o=s>0?1:0>s?-1:0),void 0!==n&&(void 0!==i&&(i=v(i,n).str),void 0!==a&&(a=v(a,n).str),void 0!==s&&(s=v(s,n).str),void 0!==r&&(r=v(r,n).str)),void 0!==r&&(r+="%"),{cn:c,yp:i,p:a,ca:s,cp:r,trend:o,time:d}}function u(e,n){var t;if(!e)return null;t=e.split(",");var i,a,s,r,o,c=t[0].replace(/\s*/g,""),d=t[6]+" "+t[7];return""!==t[9]&&(i=+(1*t[9]).toFixed(2)),""!==t[2]&&(s=+t[2]),""!==t[1]&&(a=+t[1]),""!==t[3]&&(r=+t[3]+"%"),void 0!==s&&(o=s>0?1:0>s?-1:0),{cn:c,yp:i,p:a,ca:s,cp:r,trend:o,time:d}}function m(e,n){var t;if(!e)return null;t=e.split(",");var i,a,s,r,o,c,d=t[13].replace(/\s*/g,""),l=t[12]+" "+t[6];return""!==t[7]&&(i=+t[7]),""!==t[0]&&(a=+t[0]),void 0!==i&&void 0!==a&&(s=a-i),i&&void 0!==s&&(r=s/i*100),0===a&&(a=i,s=0,r=0),void 0!==s&&(o=s>0?1:0>s?-1:0),void 0!==n&&(void 0!==i&&(i=v(i,n).str),void 0!==a&&(a=v(a,n).str),void 0!==s&&(s=v(s,n).str),void 0!==r&&(r=v(r,n).str)),void 0!==r&&(r+="%"),c="",{cn:d,yp:i,p:a,ca:s,cp:r,trend:o,time:l,status:c}}function p(e,n){var t;if(!e)return null;t=e.split(",");var i,a,s,r,o,c,d=t[0].replace(/\s*/g,""),l=t[17]||"";return""!==t[10]&&(i=+t[10]),""!==t[8]&&(a=+t[8]),void 0!==i&&void 0!==a&&(s=a-i),i&&void 0!==s&&(r=s/i*100),0===a&&(a=i,s=0,r=0),void 0!==s&&(o=s>0?1:0>s?-1:0),void 0!==n&&(void 0!==i&&(i=v(i,n).str),void 0!==a&&(a=v(a,n).str),void 0!==s&&(s=v(s,n).str),void 0!==r&&(r=v(r,n).str)),void 0!==r&&(r+="%"),c="",{cn:d,yp:i,p:a,ca:s,cp:r,trend:o,time:l,status:c}}function f(e,n){var t;if(n=4,!e)return null;t=e.split(",");var i,a,s,r,o,c,d=t[9].replace(/\s*/g,""),l=t[17]+" "+t[0];return""!==t[3]&&(i=+t[3]),""!==t[8]&&(a=+t[8]),void 0!==i&&void 0!==a&&(s=a-i),i&&void 0!==s&&(r=s/i*100),0===a&&(a=i,s=0,r=0),void 0!==s&&(o=s>0?1:0>s?-1:0),void 0!==n&&(void 0!==i&&(i=v(i,n).str),void 0!==a&&(a=v(a,n).str),void 0!==s&&(s=v(s,n).str),void 0!==r&&(r=v(r,n).str)),void 0!==r&&(r+="%"),c="",{cn:d,yp:i,p:a,ca:s,cp:r,trend:o,time:l,status:c}}function g(e,n,t){var i=document.createElement("script"),a=document.getElementsByTagName("head")[0]||document.documentElement,s=a.getElementsByTagName("base")[0],r=/^(?:loaded|complete|undefined)/;i.type="text/javascript",i.src=e,i.async=!0,i.defer=!0,i.charset="utf-8",i.timestamp=Date.now(),i.onload=i.onreadystatechange=function(){r.test(i.readyState)&&(n&&n(i.timestamp),a.removeChild(i),i=i.onload=i.onreadystatechange=null)},i.onerror=function(){a.removeChild(i),t&&t(i.timestamp)},s?a.insertBefore(i,s):a.appendChild(i)}function v(e,n){var t,i,a,s,r,o,c,d=n;return void 0===n?{num:e,str:e+""}:(t=Math.abs(+e),i=t*Math.pow(10,d)|0,a=t*Math.pow(10,d+1)|0,s=a-10*i>4?(i+1)/Math.pow(10,d):i/Math.pow(10,d),s=(0>e?-1:1)*s,r=s+"",d>0&&(o=r.indexOf("."),0>o?(r+=".",c=d):c=d-r.substring(o+1).length,r+=(Math.pow(10,c)+"").substring(1)),{num:s,str:r})}function b(e){var n,t,i,a=[],s=[];for(n=0,t=e.length;t>n;n++)a=a.concat(e[n]);for(n=0,t=a.length;t>n;n++)i=a[n],i&&!w(s,i)&&s.push(i);return{str:s.join(","),arr:s}}function w(e,n,t){var i,a=e.length||0;if(0===a)return!1;for(t=t||0,0>t&&(t=a+t,0>t&&(t=0));a>t;){if(i=e[t],n===i||n!==n&&i!==i)return!0;t++}return!1}var k,y={name:"Hq",version:2},_=window,x=[],C="//hq.sinajs.cn",z="",S=1e4,q=0;e.prototype={constructor:e,init:function(e){return this.defer=e.defer||1e4,this.decimalPlaceCount=e.decimalPlaceCount,this},emit:function(e,n){var t,i,a,s=this._handlers;for(n||"success"!==e||(n=r(this.hqItems,this.decimalPlaceCount)),t=0,i=s.length;i>t;t++)a=s[t],a[e]&&a[e].call(a.context,n)},on:function(e,n,t){var i;return i={context:t||_,success:e,fail:n,subId:this._handlers.length},this._handlers.push(i),i.subId},un:function(e){return this._handlers[e]?(this._handlers[e]=null,!0):!1},add:function(e){var t,i,a,r=this.hqKeys,o=this.aidedHqKeys,c=this.hqItems,d=0;for(t=[].concat(e),i=t.length;i>d;d++)a=t[d],s(a),w(r,a.key)||(r.push(a.key),o.push(a.aidedKey),c.push(a));return null!==this.pollingIndex&&n(),this},"delete":function(e){var t,i,a,s,r=this.hqKeys,o=this.aidedHqKeys,c=this.hqItems,d=0,l=0,h=0,u=r.length,m=o.length;for(t=[].concat(e),i=t.length;i>d;d++){for(a=t[d],s=a.key;u>l;l++)r[l]===s&&(r.splice(l,1),c.splice(l,1),l--);if(s=a.aidedKey)for(;m>h;h++)o[h]===s&&(o.splice(h,1),h--)}return null!==this.pollingIndex&&n(),this},clear:function(){return this.hqKeys.length=0,this.aidedHqKeys.length=0,this.hqItems.length=0,null!==this.pollingIndex&&n(),this},fetch:function(){var e=this;return a(this.hqItems,function(n){e.emit("success",n)},function(){e.emit("fail","\u5355\u6b21\u8bf7\u6c42\u5931\u8d25")},this.hqKeys.join(",")),this},listenHq:function(){return null!==this.pollingIndex?this:(this.pollingIndex=x.length,x.push(this),n(),t(!0),this)},cancelListenHq:function(){var e,i;if(null===this.pollingIndex)return this;for(x.splice(this.pollingIndex,1),n(),e=this.pollingIndex,i=x.length;i>e;e++)x[e].pollingIndex--;return this.pollingIndex=null,x.length||t(!1),this},destroy:function(){this.clear(),this.cancelListenHq(),this._handlers=null}},y.fetch=function(e,n,t){var i,r,o=0;for(i=[].concat(e),r=i.length;r>o;o++)s(i[o]);a(i,n,t,null)},y.createNew=function(n){var t=new e;return t.init(n),t},window.SinaFinance?window.SinaFinance.Widgets=window.SinaFinance.Widgets||{}:window.SinaFinance={Widgets:{}},window.SinaFinance.Widgets[y.name]=y}())}(),function(e){function n(e,t,i){e(t,function(){t>1?n(e,--t,i):i&&i.apply(this,arguments)})}var t=e.jQuery,i={},a="//search.cj.sina.cn/news/get_list",s="//suggest3.sinajs.cn/suggest/",r="//guba.sina.cn/api/";i.getSuggestionForSearchingNews=function(e,i,s,r,o){e.format="jsonp",e.idx="news",n(function(n,s){t.ajax({url:a,dataType:"jsonp",data:e}).done(i).fail(s).always(r)},o||1,s||function(){})},i.getSuggestionForSearchingStock=function(e,i,a,r,o){var c,d=e.type;if("stock"===d)c="11,12,31,32,33,41,71,73,81,85,86,88,100,102,103,114,120,203,204";else if("fund"===d)c="21,22,23,24,25,26";else{if("fe"!==d)return!1;c="71"}e.type=void 0,n(function(n,a){t.ajax({url:s+"?type="+c,dataType:"script",data:e}).done(i).fail(a).always(r)},o||1,a||function(){})},i.getSuggestionForSearchingBar=function(e,i,a,r,o){var c=e.type||"1";e.type=void 0,n(function(n,a){t.ajax({url:s+"?type="+c,dataType:"script",data:e}).done(i).fail(a).always(r)},o||1,a||function(){})},i.getSearchZHB=function(e,i,a,s,r){e.type="11,12,31,32,33,41,71,73,81,85,86,88,100,102,103,114,120,203,204",n(function(n,a){t.ajax({url:"https://recommend.cj.sina.cn/wap/v1/search/search_intermediary",dataType:"jsonp",data:e}).done(i).fail(a).always(s)},r||1,a||function(){})},i.getHotBar=function(e,i,a,s,o){e.s="h5bar",e.a="getHotBar",n(function(n,a){t.ajax({url:r,dataType:"jsonp",jsonpCallback:"hotbar_"+Date.now(),data:e}).done(i).fail(a).always(s)},o||1,a||function(){})},e.SearchPopupAPI=i}(window),function(e){function n(e,n){var i=t(e);try{return new Function("data",i)(n)}catch(a){return""}}function t(e){var n=i(e),t="var out = []; var it = data;\n";return t+=a(n),t+='return out.join("");\n'}function i(e){for(var n,t=[],i=/\{\{(~\s*it\s*:\w+:\w+|~|=[\s\S]*?|\?[\s\S]*?)\}\}/g,a=0;null!==(n=i.exec(e));){n.index>a&&t.push({type:"literal",value:e.slice(a,n.index)});var s=n[1].trim();if("~"===s)t.push({type:"loop_end"});else if(/^~\s*it\s*:(\w+):(\w+)/.test(s)){var r=s.match(/^~\s*it\s*:(\w+):(\w+)/);t.push({type:"loop_start",item:r[1],index:r[2]})}else if("="===s.charAt(0))t.push({type:"expr",value:s.slice(1).trim()});else if("?"===s.charAt(0)){var o=s.slice(1).trim();""===o?t.push({type:"if_end"}):t.push({type:"if_start",cond:o})}a=i.lastIndex}return a{{= index + 1}}
{{=item.name}}
{{=item.showCode || item.symbol}}
--
--
{{? item.type !== \'fx\' && item.type !== \'fe\'}}
--
{{?}}
{{? item.news && item.news.title}}
\u70ed\u70b9{{=item.news.title}}
{{?}}
{{~}}',d='
',l='{{~ it :item:index}}
{{= index + 1}}
{{= item.title}}{{? item.tag}}{{= item.tag_text}}{{?}}
{{~}}',h='
A\u80a1\u671f\u8d27\u7f8e\u80a1\u6e2f\u80a1\u6307\u6570
\u6392\u540d
\u540d\u79f0/\u4ee3\u7801
\u73b0\u4ef7
\u6da8\u8dcc\u5e45
\u8ba8\u8bba\u6570
',u='{{~ it :item:index}}
{{= index + 1}}
{{=item.name}}
{{=item.showCode}}
{{=item.price || \'--\'}}
{{=item.change || \'--\'}}
{{=item.discussCount || \'--\'}}
{{~}}',m='
\u573a\u5185\u57fa\u91d1\u573a\u5916\u57fa\u91d1
',p='
\u6392\u540d
\u540d\u79f0/\u4ee3\u7801
\u73b0\u4ef7
\u6da8\u8dcc\u5e45
\u6210\u4ea4\u989d
',f='{{~ it :item:index}}
{{= index + 1}}
{{=item.name}}
{{=item.symbol}}
{{=item.price || \'--\'}}
{{=item.percentage || \'--\'}}
{{=item.amount || \'--\'}}
{{~}}',g='
\u9500\u91cf\u699c

\u57fa\u91d1\u9500\u91cf\u699c\u4f53\u73b0\u57fa\u91d1\u8fc7\u53bb\u4e00\u5468\u53d7\u5230\u6295\u8d44\u8005\u5173\u6ce8\u548c\u8d2d\u4e70\u7684\u60c5\u51b5\u3002

',v='{{~ it :item:index}}
{{=item.name}}
{{=item.percentage}}
{{=item.timeLabel}}
{{=item.details}}
{{~}}',b='{{~ it :item:index}}
{{=item.rank}}
{{=item.percentage}}
{{=item.timeLabel}}
{{=item.name}}
{{=item.details}}
{{~}}';e.SearchPopupTpls={TPL_Search:r,TPL_Stock_Category_Tabs:o,TPL_Stock_Item:c,TPL_News_List:d,TPL_News_Item:l,TPL_Bar_Category_Tabs:h,TPL_Bar_Stock_Item:u,TPL_Fund_Category_Tabs:m,TPL_OnExchange_Fund_Container:p,TPL_OnExchange_Fund_Item:f,TPL_OffExchange_Fund_Container:g,TPL_OffExchange_Fund_Top3_Card:v,TPL_OffExchange_Fund_Item:b,render:s}}(window),function(e){function n(e,n){this._scrollBox=e||window,this._loadFn=n,this._loading=!1,this._disabled=!1,this._noMore=!1,this._handler=null,this._attach()}function t(e){this._$root=a(e.root),this.page=1,this._hasLoaded=!1,this._processPause=!1,this.inputVal=e.inputVal,this.API=e.API,this.type=e.type,this._loader=null}function i(e){var n=new Date(e),t=new Date,i=t-n;if(6e4>i)return"\u521a\u521a";if(36e5>i)return Math.floor(i/6e4)+"\u5206\u949f\u524d";if(864e5>i)return Math.floor(i/36e5)+"\u5c0f\u65f6\u524d";var a=n.getMonth()+1,s=n.getDate();return a+"-"+s}var a=e.jQuery,s=10;n.prototype={_attach:function(){var e=this;e._handler=function(){if(!(e._disabled||e._loading||e._noMore)){var n=e._scrollBox===window?document.documentElement:e._scrollBox,t=e._scrollBox===window?window.pageYOffset||document.documentElement.scrollTop:n.scrollTop,i=e._scrollBox===window?window.innerHeight:n.clientHeight,a=n.scrollHeight;t+i>=a-100&&e._load()}},a(e._scrollBox).on("scroll.searchfeed",e._handler)},_load:function(){var e=this;e._loading=!0,e._loadFn(function(n){e._loading=!1,n||(e._noMore=!0)},function(){e._loading=!1},function(){})},enable:function(){this._disabled=!1,this._noMore=!1},disable:function(){this._disabled=!0},refresh:function(){this._loading=!1,this._noMore=!1,this._disabled=!1,this._load()},destroy:function(){a(this._scrollBox).off("scroll.searchfeed",this._handler)}},t.prototype={constructor:t,_init:function(){this._createEls();var e=this,t=document.querySelector(".view-search")||window;this._loader=new n(t,function(n,t,i){"stock"===e.type||"fund"===e.type?e._queryStockList(n,t,i):"bar"===e.type?e._queryBarList(n,t,i):e._queryNewsList(n,t,i)}),this._firstLoad()},_createEls:function(){this._$root.html('
\u6b63\u5728\u52a0\u8f7d...
\u52a0\u8f7d\u5931\u8d25\uff0c\u70b9\u51fb\u91cd\u65b0\u52a0\u8f7d
\u6ca1\u6709\u66f4\u591a\u4e86
\u6682\u65e0\u5185\u5bb9
')},_firstLoad:function(){var e=this,n=null;n="stock"===this.type||"fund"===this.type?function(n,t,i){e._queryStockList(n,t,i)}:"bar"===this.type?function(n,t,i){e._queryBarList(n,t,i)}:function(n,t,i){e._queryNewsList(n,t,i)},e._$root.find(".feed-loading").show(),n(function(n){e._$root.find(".feed-loading").hide(),n?(e._$root.find(".feed-box").append(n),e._$root.find(".feed-empty").hide(),e._bindItemClick()):e._$root.find(".feed-empty").show(),e._hasLoaded=!0},function(){e._$root.find(".feed-loading").hide(),e._$root.find(".feed-empty").show()},function(){})},_queryNewsList:function(e,n,t){var i=this;this.API.getSuggestionForSearchingNews({q:i.inputVal,page:i.page,num:s,where:"(copyright=6 or copyright<3)"},function(a){var s=a&&a.result;if(s&&0==s.status.code){i.page++;var r=i._adapterNews(s);e(r)}else n();t&&t()},function(){n(),t&&t()},t,3)},_adapterNews:function(e){var n=this,t=e.data||[],a="";return t.forEach(function(e,t){var r,o=e.title.replace(new RegExp(n.inputVal.replace(/\*/g,"\\*"),"gi"),function(e){return''+e+""}).replace(/^\s+|\s+$/g,""),c=encodeURIComponent(e.title),d=e.url||"";r=d.indexOf("/articles/view/")>=0?d.replace(/^https?:/,"")+"?recommend=cj1&t="+Date.now():"//cj.sina.cn/article/norm_detail?url="+encodeURIComponent(d)+"&t="+Date.now();var l=e.thumb||(e.thumbs&&e.thumbs.length>0?e.thumbs[0]:""),h=l?'
':"",u=e.author||e.media||"",m=e.ctime?i(1e3*e.ctime):"",p=e.comment_count||0,f=p>0?''+p+"\u6761\u8bc4\u8bba":"",g=(n.page-2)*s+t+1;a+='
'+h+'

'+o+'

"}),a},_queryStockList:function(n,t,i){var a=this,r="suggest3_"+Date.now();this.API.getSuggestionForSearchingStock({key:a.inputVal.toLowerCase(),name:r,type:a.type},function(){if(a.page++,a.page>2)return n(""),void(i&&i());var t=e[r],o="",c=a.inputVal,d=e.encodeURIComponent;t&&t.split(";").forEach(function(e,n){var t,i,r,l=e.split(","),h=l[1],u=l[2],m=l[3],p=l[4],f=d(p),g="",v=p.toUpperCase().replace(new RegExp(c.replace(/\*/g,"\\*"),"gi"),function(e){return''+e+""}).replace(/^\s+|\s+$/g,""),b=m.toUpperCase().replace(new RegExp(c.replace(/\*/g,"\\*"),"gi"),function(e){return''+e+""}).replace(/^\s+|\s+$/g,"");if("stock"===a.type){switch(h){case"11":case"12":t=m.substring(0,2),g="bj"===t?"\u4eac":"sh"===t?"\u6caa":"\u6df1",i="//quotes.sina.cn/hs/company/quotes/view/"+m;break;case"31":case"32":case"33":t="hk",g="hsi"===m?"\u6307":"HK",i="//quotes.sina.cn/hk/company/quotes/view/"+u;break;case"41":t="us",g="US",i="//gu.sina.cn/us/hq/quotes.php?code="+u;break;case"71":t="fe",g="\u6c47",i="//gu.sina.cn/fx/hq/quotes.php?code="+u;break;case"73":t="sb",g="\u4e09\u677f",i="//gu.sina.cn/tm/hq/quotes.php?code="+u;break;case"81":t=m.substring(0,2),g="\u503a",i="//gu.sina.cn/bd/hq/quotes.php?symbol="+m;break;case"85":case"86":case"88":t="ft",g="\u671f",i="//gu.sina.cn/ft/hq/nf.php?symbol="+m;break;case"100":t="hq",g="\u6307",i="//quotes.sina.cn/global/hq/quotes.php?code="+u;break;case"102":t="ban",g="\u677f",i="//quotes.sina.cn/global/hq/quotes.php?code="+u;break;case"103":t="uk",g="UK",i="//quotes.sina.cn/lse/hq/quotes.php?symbol="+u;break;case"114":t="zhai",g="\u503a",i="//quotes.sina.cn/bd/hq/globalbd.php?symbol=globalbd_"+m;break;case"120":t=m.substring(0,2),g="\u503a",i="//gu.sina.cn/bd/hq/quotes.php?symbol="+m;break;case"203":case"204":t=m.substring(0,2),g="\u57fa",i="//quotes.sina.cn/hs/company/quotes/view/"+m;break;default:t="\u5176\u4ed6"}r='
'+g+'

'+v+'

'+b+"

"}else if("fund"===a.type){switch(h){case"21":t="\u5f00\u57fa";break;case"22":t="ETF";break;case"23":t="LOF";break;case"24":t="\u8d27\u57fa";break;case"25":t="QDII";break;case"26":t="\u5c01\u57fa";break;default:t="\u5176\u4ed6"}i="//stocks.sina.cn/fund/?code="+u,r='
\u57fa

'+v+'

'+b+"

"}i=i||"//stock1.sina.cn/prog/wapsite/stock/v2/search.php?type=1&keyword="+f;var w=(a.page-2)*s+n+1;o+='
'+r+"
"}),n(o),i&&i()},function(){t(),i&&i()},i,3)},_queryBarList:function(n,t,i){var a=this,r="suggest3_"+Date.now();this.API.getSuggestionForSearchingBar({key:a.inputVal.toLowerCase(),name:r,type:"1"},function(){if(a.page++,a.page>2)return n(""),void(i&&i());var t=e[r],o="",c=a.inputVal;t&&t.split(";").forEach(function(e,n){var t=e.split(","),i=t[1],r=t[3],d=t[4],l=encodeURIComponent(d),h="1"===i?"//guba.sina.cn/list_"+r+".html":"",u=d.toUpperCase().replace(new RegExp(c.replace(/\*/g,"\\*"),"gi"),function(e){return''+e+""}).replace(/^\s+|\s+$/g,""),m=r.toUpperCase().replace(new RegExp(c.replace(/\*/g,"\\*"),"gi"),function(e){return''+e+""}).replace(/^\s+|\s+$/g,""),p='

'+u+'

'+m+"

",f=(a.page-2)*s+n+1;o+='
'+p+"
"}),n(o),i&&i()},function(){t(),i&&i()},i,3)},_bindItemClick:function(){this._$root.on("click",".js-jump",function(){var e=this.getAttribute("open-url");return e&&window.open(e,"_self"),!1})},enable:function(){this._loader&&this._loader.enable(),this._processPause=!1},disable:function(){this._loader&&this._loader.disable(),this._processPause=!0},refresh:function(e){e!==this.inputVal&&(this.page=1,this.inputVal=e,this._$root.find(".feed-box").html(""),this._$root.find(".feed-empty").hide(),this._loader&&this._loader.enable(),this._firstLoad())},destroy:function(){this._loader&&this._loader.destroy(),this._$root.off()}},e.SearchPopupFeed={createNew:function(e){var n=new t(e);return n._init(),n}}}(window),function(e){function n(e,n){var t=null;return function(){var i=this,a=arguments;t||(t=setTimeout(function(){e.apply(i,a),t=null},n||100))}}function t(e){return String(e).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}function i(){this.nodes={},this.events={extend:[]},this.listenPopstate=!1,this.feednews=null,this.feedstock=null,this.feedfund=null,this.feedbar=null,this.feedzh=null}var a=e.jQuery,s=e.SearchPopupAPI,r=e.SearchPopupTpls,o=function(){var e="search_popup_";return{get:function(n){try{return localStorage.getItem(e+n)||""}catch(t){return""}},set:function(n,t){try{return localStorage.setItem(e+n,t),!0}catch(i){return!1}},remove:function(n){try{localStorage.removeItem(e+n)}catch(t){}}}}();i.prototype={constructor:i,_buildOpenUrl:function(e,n,t,i){var a={sz:"//quotes.sina.cn/hs/company/quotes/view/"+n,sh:"//quotes.sina.cn/hs/company/quotes/view/"+n,cn:"//quotes.sina.cn/hs/company/quotes/view/"+n,hk:"//quotes.sina.cn/hk/company/quotes/view/"+n,us:"//gu.sina.cn/quotes/us/"+n,global:"//gu.sina.cn/ft/hq/"+t+".php?symbol="+n,commodity:"//gu.sina.cn/ft/hq/"+t+".php?symbol="+n,wh:"//gu.sina.cn/quotes/fx/"+n,fx:"//gu.sina.cn/quotes/fx/"+n,worldIndex:"//quotes.sina.cn/global/hq/quotes.php?code="+i,ft:"//stocks.sina.cn/fund/?code="+n};return a[e]||""},_stockMessage:function(e,n,t){var i="",a="",s="";switch(e){case"1":s="//guba.sina.cn/list_"+n+".html";break;case"11":case"12":i=n.substring(0,2),a="bj"===i?"\u4eac":"sh"===i?"\u6caa":"\u6df1",s="//quotes.sina.cn/hs/company/quotes/view/"+n;break;case"31":case"32":case"33":i="hk",a="hsi"===n?"\u6307":"HK",s="//quotes.sina.cn/hk/company/quotes/view/"+t;break;case"41":i="us",a="US",s="//gu.sina.cn/us/hq/quotes.php?code="+t;break;case"71":i="fe",a="\u6c47",s="//gu.sina.cn/fx/hq/quotes.php?code="+t;break;case"73":i="sb",a="\u4e09\u677f",s="//gu.sina.cn/tm/hq/quotes.php?code="+t;break;case"81":i=n.substring(0,2),a="\u503a",s="//gu.sina.cn/bd/hq/quotes.php?symbol="+n;break;case"85":case"86":case"88":i="ft",a="\u671f",s="//gu.sina.cn/ft/hq/nf.php?symbol="+n;break;case"100":i="hq",a="\u6307",s="//quotes.sina.cn/global/hq/quotes.php?code="+t;break;case"102":i="ban",a="\u677f",s="//quotes.sina.cn/hs/company/quotes/view/"+t;break;case"103":i="uk",a="UK",s="//quotes.sina.cn/lse/hq/quotes.php?symbol="+t;break;case"114":i="zhai",a="\u503a",s="//quotes.sina.cn/bd/hq/globalbd.php?symbol=globalbd_"+n;break;case"120":i=n.substring(0,2),a="\u503a",s="//gu.sina.cn/bd/hq/quotes.php?symbol="+n;break;case"203":case"204":i=n.substring(0,2),a="\u57fa",s="//quotes.sina.cn/hs/company/quotes/view/"+n;break;default:i="\u5176\u4ed6"}return{type:i,showMarket:a,openUrl:s}},init:function(n){n=n||{},this.afterOpen=n.afterOpen,this.afterClose=n.afterClose,this.onLog=n.onLog||null,this.searchTypeCfg={stock:{name:"stock",placeholder:"\u7b80\u79f0/\u4ee3\u7801/\u62fc\u97f3",customized:'
\u70ed\u95e8\u80a1\u7968
',historyKey:"stockSearch",apiUrl:"//quotes.sina.cn/cn/api/openapi.php/StockSelectionService.getHotStocks?market=cn&num=10&pageSize=10&page=1&type=d&version=9.5.0.1",currentType:"cn",processData:function(e){var n=e.symbol||"",t=e.market,i="",a="",s="",r="",o="";switch(t){case"cn":r=n.substring(0,2),i=n.substring(2),s=n,a=n,o="hs";break;case"hk":case"us":r=t,i=n,s=n,a=n.toUpperCase(),o=t;break;case"global":case"commodity":r=n.substring(0,2),i=n.substring(3),s=i,a=i.toUpperCase(),o="ft";break;case"fx":0===n.indexOf("fx_")?(r="fx",i=n.substring(3),s=n.substring(4),a=s.toUpperCase(),o="fx"):(r="fe",i=n,s=n,a=n.toUpperCase(),o="fx")}var c=e.name||a||"",d=c.length,l=4>=d?"":6>=d?"name-medium":"name-small";return{type:r,code:i,cn:c,showCode:a,symbol:s,name:c,news:e.news||null,fund_txt:e.fund_txt||"",nameSizeClass:l,openUrl:this._buildOpenUrl(t,s,r,i),sudaVal:o}}.bind(this)},news:{name:"news",placeholder:"\u8bf7\u8f93\u5165\u5173\u952e\u5b57",customized:"",historyKey:"newsSearch",historyCount:10,apiUrl:"https://app.cj.sina.com.cn/apps/api/app_hot_news/news_rank?gray=1&pageSize=10&page=1&type=all", processData:function(e){var n={0:"",1:"new",2:"hot",4:"boiling",5:"new"},t={0:"",1:"\u65b0",2:"\u70ed",4:"\u6c38",5:"\u65b0"},i=e.url||"",a=i?"https://cj.sina.cn/article/norm_detail?url="+encodeURIComponent(i):"";return{id:e.docid,title:e.title,tag:n[e.icon]||"",tag_text:t[e.icon]||"",url:a}}},fund:{name:"fund",placeholder:"\u7b80\u79f0/\u4ee3\u7801/\u62fc\u97f3",customized:'
\u70ed\u95e8\u57fa\u91d1
',currentType:"on-exchange",onExchangeApiUrl:"https://quotes.sina.cn/cn/api/openapi.php/CN_ETFService.getETFRankList?asc=0&filter=&pageIndex=1&pageSize=10&sort=change&type=all",offExchangeApiUrl:"https://fund.sina.com.cn/fund/api/saleRank?page=1&page_size=10",processOnExchangeData:function(e,n){var t=parseFloat(e.change)||0,i=t>=0?"+"+t+"%":t+"%",a=parseFloat(e.amount)||0,s=a>0?(a/1e8).toFixed(2)+"\u4ebf":"--",r=e.name||"",o=r.length,c=4>=o?"":6>=o?"name-medium":"name-small",d=e.symbol||"",l=d.substring(0,2),h=d.substring(2);return{rank:n+1,name:r,symbol:d,price:e.price||"--",percentage:i,amount:s,nameSizeClass:c,openUrl:this._buildOpenUrl("cn",d,l,h)}}.bind(this),processOffExchangeData:function(e,n){var t=parseFloat(e.rate)||0,i=t>=0?"+"+t.toFixed(2)+"%":t.toFixed(2)+"%",a={1:"\u4f4e\u98ce\u9669",2:"\u4e2d\u4f4e\u98ce\u9669",3:"\u4e2d\u98ce\u9669",4:"\u4e2d\u9ad8\u98ce\u9669",5:"\u9ad8\u98ce\u9669"},s=a[e.fund_risk_level]||"\u672a\u77e5",r=s+" | "+(e.type_name||"\u672a\u77e5")+" | "+(e.min_value||"1.00")+"\u5143\u8d77\u8d2d";return{rank:n+1,name:e.fund_name||"",code:e.fund_code||"",percentage:i,timeLabel:e.value_title||"\u6210\u7acb\u4ee5\u6765\u6da8\u5e45",details:r}}},bar:{name:"bar",placeholder:"\u7b80\u79f0/\u4ee3\u7801/\u62fc\u97f3",customized:'
\u70ed\u8bae\u80a1\u7968
',hotCount:10,currentType:"cn",apiUrl:"https://guba.sina.cn/api/?s=community&a=get_hot_stock_list&num=10&pageSize=10&page=1&type=cn",processData:function(e){var n=e.name||"",t=n.length,i=4>=t?"":6>=t?"name-medium":"name-small",a=e.symbol||"",s=e.market,r="",o="",c="",d="",l="";switch(s){case"sh":case"sz":case"cn":r=a.substring(0,2),o=a.substring(2),c=a,d=a,l="hs";break;case"hk":case"us":r=s,o=a.replace(".",""),c=o,d=o.toUpperCase(),l=s;break;case"worldIndex":r="znb_",o=a.replace(r,""),c=a,d=o.toUpperCase(),l="index";break;case"ft":r=a.substring(0,2),o=a.substring(3),c=o,d=o.toUpperCase(),l="ft";break;default:r=s,o=a,c=a,d=a}return{type:r,symbol:c,code:o,showCode:d,cn:n,name:n,nameSizeClass:i,price:e.price||"--",change:e.range||"--",discussCount:e.pnum||"--",openUrl:e.h5_url||this._buildOpenUrl(s,c,r,o),sudaVal:l}}.bind(this)}},this._createDom(),this._initSearchType(),this._bindEvents();var t=this;a(function(){var n=a("#actionSearch");n.length&&(n.off(),n.on("tap click",function(){return t._log("wap_cs_page","cs_search"),e.SinaFinance_SearchPopup.open(),!1}))})},_createDom:function(){var e,n=this.nodes,t=a(".view-search");t.length?(e=t.first(),e.off()):(e=a(r.TPL_Search),a("body").append(e)),n.root=e,n.moduleCustomized=e.find(".submodule-customized"),n.moduleResult=e.find(".submodule-result"),n.moduleCustomizedList=n.moduleCustomized.find(".customized-list"),n.moduleCustomizedName=n.moduleCustomized.find(".customized-name"),n.iptSearch=e.find(".ipt-search"),n.moduleRealtime=e.find(".submodule-realtime"),n.moduleType=e.find(".submodule-type")},_initSearchType:function(){var e,n,t=this.nodes,i=o.get("searchType")||"stock",a=this.searchTypeCfg;this.searchType=i,t.moduleCustomizedName.html(a[i]?a[i].customized:""),t.iptSearch.attr("placeholder",a[i]?a[i].placeholder:""),t.moduleType.children(".u-type").each(function(n){var t=this.getAttribute("action");a[t]&&(a[t].index=n),i===t&&(e=this)}),e||(e=t.moduleType.children(".u-type")[0],i=e.getAttribute("action")),e.classList.add("selected"),n=t.root.find('.m-result-con[action="'+i+'"]')[0],n&&n.classList.add("selected"),this.selectedTypeEl=e,this.selectedTypeResCon=n},_changeSearchType:function(e){var n=this.nodes;this["feed"+this.searchType]&&this["feed"+this.searchType].disable(),n.moduleResult.hide(),n.iptSearch.attr("placeholder",this.searchTypeCfg[e].placeholder),n.moduleCustomizedName.html(this.searchTypeCfg[e].customized),n.moduleCustomizedList.html(""),n.moduleCustomized.show(),this.searchType&&this["_disableType_"+this.searchType](),this["_enableType_"+e](),this._realTimeSearch(n.iptSearch.val(),e,"click"),this.searchType=e,o.set("searchType",e)},_enableType_stock:function(){this._renderCustomized_stock()},_enableType_news:function(){this._renderCustomized_news()},_enableType_fund:function(){this._renderCustomized_fund()},_enableType_bar:function(){this._renderCustomized_bar()},_disableType_stock:function(){var e=this.searchTypeCfg.stock;e.hq&&e.hq.cancelListenHq&&e.hq.cancelListenHq()},_disableType_news:function(){},_disableType_fund:function(){var e=this.searchTypeCfg.fund;e.hq&&e.hq.cancelListenHq&&e.hq.cancelListenHq()},_disableType_bar:function(){var e=this.searchTypeCfg.bar;e.hq&&e.hq.cancelListenHq&&e.hq.cancelListenHq()},_updateStockHq:function(e,n){var t=this;if(n&&n.length&&e&&e.length){var i={};e.forEach(function(e){e&&e.symbol&&(i[e.symbol]=e)}),n.forEach(function(e){var n=e.info;if(n&&!n.status){var i=e.symbol,a=t.nodes.moduleCustomizedList.find('.j-stock-row[data-symbol="'+i+'"]');if(a.length){var s=n.trend,r=1===s?"red":-1===s?"green":"",o="--";void 0!==n.cp&&null!==n.cp&&""!==n.cp&&(o=(1===s?"+":"")+n.cp,-1===String(o).indexOf("%")&&(o+="%"));var c="--";void 0!==n.ca&&null!==n.ca&&""!==n.ca&&(c=(1===s?"+":"")+n.ca),a.find(".j-sname").text(n.cn||""),a.find(".j-price").removeClass("red green").addClass(r).text(n.p||"--"),a.find(".j-change").removeClass("red green").addClass(r).text(o),a.find(".j-extra").removeClass("red green").addClass(r).text(c)}}})}},_updateBarHq:function(e,n){var t=this;if(n&&n.length&&e&&e.length){var i={};e.forEach(function(e){e&&e.symbol&&(i[e.symbol]=e)}),n.forEach(function(e){var n=e.info;if(n&&!n.status){var i=e.symbol,a=t.nodes.moduleCustomizedList.find('.j-bar-row[data-symbol="'+i+'"]');if(a.length){var s=n.trend,r=1===s?"red":-1===s?"green":"",o=1===s?void 0!==n.cp?"+"+n.cp:"--":-1===s?void 0!==n.cp?n.cp:"--":void 0!==n.cp?n.cp:"--";a.find(".j-price").removeClass("red green").addClass(r).text(n.p||"--"),a.find(".j-change").removeClass("red green").addClass(r).text(o)}}})}},_renderCustomized_stock:function(){this.nodes.moduleCustomizedList.html(r.TPL_Stock_Category_Tabs),this._bindStockCategoryTabs(),this._fetchAndRenderStockList()},_renderCustomized_news:function(){this.nodes.moduleCustomizedList.html(r.TPL_News_List),this._fetchAndRenderNewsList()},_renderCustomized_fund:function(){this.nodes.moduleCustomizedList.html(r.TPL_Fund_Category_Tabs),this._bindFundCategoryTabs(),this._fetchAndRenderFundList("on-exchange")},_renderCustomized_bar:function(){this.nodes.moduleCustomizedList.html(r.TPL_Bar_Category_Tabs),this._bindBarCategoryTabs(),this._fetchAndRenderBarList("cn")},_bindStockCategoryTabs:function(){var e=this;e.nodes.moduleCustomizedList.find(".j-stock-tab").on("click",function(){var n=a(this),t=n.data("type");e.nodes.moduleCustomizedList.find(".j-stock-tab").removeClass("active"),n.addClass("active");var i=e.nodes.moduleCustomizedList.find(".stock-table-header"),s=e.nodes.moduleCustomizedList.find(".j-stock-list");"wh"===t?(i.addClass("hide-amount"),i.find(".j-amount-header").hide(),s.addClass("hide-amount")):(i.removeClass("hide-amount"),i.find(".j-amount-header").show(),s.removeClass("hide-amount")),e._fetchAndRenderStockList(t),e._log("wap_search_page","cn"===t?"stock_tab_hs":"wh"===t?"stock_tab_fx":"stock_tab_"+t)})},_bindBarCategoryTabs:function(){var e=this;e.nodes.moduleCustomizedList.find(".j-bar-tab").on("click",function(){var n=a(this),t=n.data("type");e.nodes.moduleCustomizedList.find(".j-bar-tab").removeClass("active"),n.addClass("active"),e._fetchAndRenderBarList(t)})},_bindFundCategoryTabs:function(){var e=this;e.nodes.moduleCustomizedList.on("click",".j-fund-tab",function(){var n=a(this),t=n.data("type");e.nodes.moduleCustomizedList.find(".j-fund-tab").removeClass("active"),n.addClass("active"),e._fetchAndRenderFundList(t)})},_fetchAndRenderStockList:function(e){var n=this,t=n.searchTypeCfg.stock;e=e||"cn";var i=t.apiUrl.replace(/market=[^&]*/,"market="+e);a.ajax({url:i,type:"GET",dataType:"jsonp",success:function(e){if(e.result&&e.result.status&&0===e.result.status.code&&e.result.data&&e.result.data.length>0){var i=e.result.data.map(t.processData);n._renderStockList(i),n._listenHq(t,i)}}})},_renderStockList:function(e){var n=this.nodes.moduleCustomizedList.find("#stock-list");n.length&&(n.html(r.render(r.TPL_Stock_Item,e)),this._bindStockItemClick())},_listenHq:function(n,t){var i=this,a=e.SinaFinance&&e.SinaFinance.Widgets&&e.SinaFinance.Widgets.Hq;a&&t&&t.length&&(n._listenList=t,n.hq||(n.hq=a.createNew({defer:3e3,decimalPlaceCount:2}),n.hq.on(function(e){var t=n._listenList;t&&t.length&&("bar"===n.name?i._updateBarHq(t,e):i._updateStockHq(t,e))},function(){},i)),n.hq.cancelListenHq&&n.hq.cancelListenHq(),n.hq.add(t),n.hq.listenHq())},_bindStockItemClick:function(){var e=this;e.nodes.moduleCustomizedList.find(".j-stock-row").on("click",function(n){var t=a(n.target).closest(".j-news-tags");if(t.length){var i=t.attr("data-newsurl");if(i)return void(location.href=i)}var s=a(this).attr("open-url"),r=a(this).attr("data-sudaval");e._log("wap_search_page","stock_tab_"+r+"feed"),s&&(location.href=s)})},_fetchAndRenderNewsList:function(){var e=this,n=e.searchTypeCfg.news;a.ajax({url:n.apiUrl,type:"GET",dataType:"json",success:function(t){if(t.result&&t.result.status&&0===t.result.status.code&&t.result.data&&t.result.data.length>0){var i=t.result.data.slice(0,10).map(n.processData);e._renderNewsList(i)}}})},_renderNewsList:function(e){var n=this.nodes.moduleCustomizedList.find("#news-list");n.length&&(n.html(r.render(r.TPL_News_Item,e)),this._bindNewsItemClick())},_bindNewsItemClick:function(){var e=this;e.nodes.moduleCustomizedList.find(".j-news-item").on("click",function(){e._log("wap_search_page","news_tab_feed")})},_fetchAndRenderBarList:function(e){var n=this,t=n.searchTypeCfg.bar,i="index"===e?"https://guba.sina.cn/api/?s=community&a=get_hot_index_list&num=20&pageSize=20&page=1&version=9.5.0.1":t.apiUrl.replace(/type=[^&]*/,"type="+e);a.ajax({url:i,type:"GET",dataType:"jsonp",success:function(e){if(e.result&&e.result.data&&e.result.data.length>0){var i=e.result.data.map(t.processData);n._renderBarList(i),n._listenHq(t,i)}}})},_renderBarList:function(e){var n=this.nodes.moduleCustomizedList.find("#bar-stock-list");n.length&&(n.html(r.render(r.TPL_Bar_Stock_Item,e)),this._bindBarItemClick())},_bindBarItemClick:function(){var e=this;e.nodes.moduleCustomizedList.find(".j-bar-row").on("click",function(){var n=a(this).attr("open-url"),t=a(this).attr("data-sudaval");e._log("wap_search_page","guab_tab_"+t+"feed"),n&&(location.href=n)})},_fetchAndRenderFundList:function(e){var n=this,t=n.searchTypeCfg.fund,i="on-exchange"===e?r.TPL_OnExchange_Fund_Container:r.TPL_OffExchange_Fund_Container,s=n.nodes.moduleCustomizedList.find(".category-tabs");s.nextAll().remove(),s.after(i);var o="on-exchange"===e?t.onExchangeApiUrl:t.offExchangeApiUrl,c="on-exchange"===e?t.processOnExchangeData:t.processOffExchangeData;a.ajax({url:o,type:"GET",dataType:"jsonp",success:function(t){var i=null;"on-exchange"===e?t.result&&t.result.data&&t.result.data.data&&t.result.data.data.length>0&&(i=t.result.data.data):t.data&&t.data.items&&t.data.items.length>0&&(i=t.data.items),i&&n._renderFundList(i.map(c),e)}})},_renderFundList:function(e,n){var t=this;if("on-exchange"===n){var i=t.nodes.moduleCustomizedList.find("#on-exchange-fund-list");if(!i.length)return;i.html(r.render(r.TPL_OnExchange_Fund_Item,e))}else{var a=t.nodes.moduleCustomizedList.find("#off-exchange-fund-list");if(!a.length)return;var s="";e.length>0&&(s+=r.render(r.TPL_OffExchange_Fund_Top3_Card,e.slice(0,3))),e.length>3&&(s+=r.render(r.TPL_OffExchange_Fund_Item,e.slice(3))),a.html(s)}t._bindFundItemClick()},_bindFundItemClick:function(){var e=this;e.nodes.moduleCustomizedList.find(".j-etf-row, .j-fund-row").on("click",function(){var n=a(this).attr("open-url");e._log("wap_search_page",a(this).hasClass("j-etf-row")?"fund_tab_cnfeed":"fund_tab_cwfeed"),n&&(location.href=n)})},_realTimeSearch:function(e,n,t){var i=this.nodes;e=a.trim(e),e?(i.moduleCustomized.hide(),"news"===n?this._realTimeSearchNews(e):"stock"===n?this._realTimeSearchStock(e,n):"fund"===n?this._realTimeSearchFund(e,n):"bar"===n&&this._realTimeSearchBar(e,n)):(i.moduleRealtime.hide(),i.moduleResult.hide(),i.moduleCustomized.show(),i.moduleType.show())},_realTimeSearchNews:function(n){var t=e.SearchPopupFeed;t&&(this.feednews?(this.feednews.refresh(n),this.feednews.enable()):this.feednews=t.createNew({root:this.nodes.root.find(".module-news")[0],inputVal:n,API:s,type:"news"}))},_realTimeSearchStock:function(n,t){var i=e.SearchPopupFeed;i&&(this.feedstock?(this.feedstock.refresh(n),this.feedstock.enable()):this.feedstock=i.createNew({root:this.nodes.root.find(".module-stock")[0],inputVal:n,API:s,type:t}))},_realTimeSearchFund:function(n,t){var i=e.SearchPopupFeed;i&&(this.feedfund?(this.feedfund.refresh(n),this.feedfund.enable()):this.feedfund=i.createNew({root:this.nodes.root.find(".module-fund")[0],inputVal:n,API:s,type:t}))},_realTimeSearchBar:function(n,t){var i=e.SearchPopupFeed;i&&(this.feedbar?(this.feedbar.refresh(n),this.feedbar.enable()):this.feedbar=i.createNew({root:this.nodes.root.find(".module-bar")[0],inputVal:n,API:s,type:t}))},_realTimeSearchStockZh:function(n){var t=this,i="suggest3_"+Date.now();s.getSuggestionForSearchingStock({key:n.toLowerCase(),name:i,type:"stock"},function(){t._renderStockResultZh(e[i],n)},function(){t._renderStockResultZh(null,n)},function(){e[i]=null})},_realTimeSearchStockZhB:function(e){var n=this;s.getSearchZHB({key:e.toLowerCase()},function(t){t&&t.result&&t.result.data&&n._renderStockResultZhB(t.result.data,e)},function(){},function(){})},_renderStockResultZh:function(e,n){var t=this,i="";e&&e.split(";").forEach(function(e,a){if(!(a>5)){var s=e.split(","),r=s[1],o=s[2],c=s[3],d=s[4],l=encodeURIComponent(d),h=t._stockMessage(r,c,o),u=d.toUpperCase().replace(new RegExp(n.replace(/\*/g,"\\*"),"gi"),function(e){return''+e+""}),m=c.toUpperCase().replace(new RegExp(n.replace(/\*/g,"\\*"),"gi"),function(e){return''+e+""}),p='
'+h.showMarket+'

'+u+'

'+m+"

",f=h.openUrl||"//stock1.sina.cn/prog/wapsite/stock/v2/search.php?type=1&keyword="+l;i+='
'+p+"
"}}),t.nodes.moduleResult.show().find(".module-zh").html(i)},_renderStockResultZhB:function(e,n){for(var i=this,a="",s=e.suggest||[],r=e.keywords||[],o=e.news||{count:0,details:[]},c=0;c=10){a+='
\u66f4\u591a\u76f8\u5173\u80a1\u7968
';break}var d=s[c],l=i._stockMessage(d.type_code,d.symbol,d.code),h=d.name,u=encodeURIComponent(h),m=h.toUpperCase().replace(new RegExp(n.replace(/\*/g,"\\*"),"gi"),function(e){return''+e+""}),p=d.symbol.toUpperCase().replace(new RegExp(n.replace(/\*/g,"\\*"),"gi"),function(e){return''+e+""}),f='
'+l.showMarket+'

'+m+'

'+p+"

",g=l.openUrl||"//stock1.sina.cn/prog/wapsite/stock/v2/search.php?type=1&keyword="+u;a+='
'+f+"
"}a+='

\u641c\u7d22\uff1a'+t(n)+"

\u67e5\u770b\u5168\u90e8\u7ed3\u679c

";for(var v=0;v'+t(r[v].word)+"";if(o.count>=1){for(var b=0;bb;b++){var w=o.details[b];a+='
'+t(w.title)+"
"}o.count>6&&(a+='
\u66f4\u591a\u76f8\u5173\u65b0\u95fb
')}i.nodes.moduleRealtime.html(a).show(),i.nodes.moduleType.hide()},_triggerSearch:function(e,n){var t;switch(e){case"stock":case"fund":t="//stock1.sina.cn/prog/wapsite/stock/v2/search.php?type=1&keyword="+encodeURIComponent(n);break;case"bar":t="//stock1.sina.cn/dpool/stockv2/bar/bar_search.php?key="+encodeURIComponent(n);break;case"news":t="//cj.sina.cn/person_menu/view/"+encodeURIComponent(n)}this._log("wap_search_trigger",e),t&&(location.href=t)},_updateHistory:function(e,n){if(n){var t=this.searchTypeCfg[e];if(t&&t.historyKey){var i=t.historyKey,a=t.historyCount||10,s=o.get(i)||"";if(s.indexOf(n)<0){var r=s?s.split(","):[];r.length>=a&&r.pop(),r.unshift(n),o.set(i,r.join(","))}else s=s.replace(new RegExp(n+",*"),"").replace(/,$/,""),o.set(i,n+(s?","+s:""))}}},_bindEvents:function(){var e=this,t=e.nodes,i=this.selectedTypeEl,s=this.selectedTypeResCon;t.root.find(".btn-cancel").on("tap click",function(){return e.close(),!1}),t.moduleType.on("tap click",".u-type",function(){if(!this.classList.contains("selected")){i.classList.remove("selected"),i=this,i.classList.add("selected");var n=this.getAttribute("action");s.classList.remove("selected"),s=t.root.find('.m-result-con[action="'+n+'"]')[0],s&&s.classList.add("selected");var a="bar"===n?"guba_tab_click":n+"_tab_click";e._log("wap_search_page",a),e._changeSearchType(n)}return!1}),t.iptSearch.on("input",n(function(){e._realTimeSearch(this.value,e.searchType)},100)),t.iptSearch.on("keydown",function(n){if("stock"!==e.searchType&&"bar"!==e.searchType&&n.originalEvent&&13===n.originalEvent.keyCode){var i=a.trim(t.iptSearch.val());return i&&(e._updateHistory(e.searchType,encodeURIComponent(i)),e._triggerSearch(e.searchType,i)),!1}}),t.root.on("tap click",".js-jump",function(){var n=this.getAttribute("history-value"),t=this.getAttribute("open-url");return n&&e._updateHistory(e.searchType,n),t&&(location.href=t),!1}),t.root.on("click",".js-realtime-btn",function(){t.moduleRealtime.html("").hide(),t.moduleType.show();var n=this.getAttribute("action"),a=this.getAttribute("keywords");a&&t.iptSearch.val(a),i.classList.remove("selected");var r="news"===n?1:0;return i=t.moduleType.children(".u-type")[r],i||(i=t.moduleType.children(".u-type")[0]),i.classList.add("selected"),s&&s.classList.remove("selected"),s=t.root.find('.m-result-con[action="'+n+'"]')[0],s&&s.classList.add("selected"),e._changeSearchType(n),!1}),this._popstateHandler=function(){e.close(!0)}},_log:function(e,n){if(this.onLog)this.onLog(e,n);else{var t=window.SUDA;t&&(e?t.uaTrack(e,n):t.log())}},open:function(){var e=this.nodes,n=/iphone|ipad/i.test(navigator.userAgent);n||"complete"!==document.readyState||(window.removeEventListener("popstate",this._popstateHandler),location.hash=Date.now().toString(),window.addEventListener("popstate",this._popstateHandler),this.listenPopstate=!0),e.root.addClass("active"),this._scrollY=window.scrollY||window.pageYOffset||0,window.scrollTo(0,0),e.iptSearch.focus(),e.moduleCustomized.show(),this["_enableType_"+this.searchType](),this.afterOpen&&this.afterOpen()},close:function(e){var n=this.nodes,t=/iphone|ipad/i.test(navigator.userAgent);!t&&"complete"===document.readyState&&this.listenPopstate&&(window.removeEventListener("popstate",this._popstateHandler),e||window.history.back(),this.listenPopstate=!1),n.root.removeClass("active"),window.scrollTo(0,this._scrollY||0),n.iptSearch.blur().val(""),n.moduleResult.hide(),n.moduleType.show(),n.moduleCustomizedList.html(""),n.moduleCustomized.hide(),n.moduleRealtime.html("").hide(),this["_disableType_"+this.searchType](),this.afterClose&&this.afterClose()},destroy:function(){var e=this.nodes;e.root.off(),e.iptSearch.off(),e.moduleCustomizedList.off(),e.moduleType.off(),this.nodes=this.events=null}},e.SearchPopupCore={createNew:function(e){var n=new i;return n.init(e),n}}}(window),function(e){var n=e.SearchPopupCore,t=e.__SearchPopupConfig||{},i=n.createNew(t);e.SinaFinance_SearchPopup=i}(window),function(){if("undefined"!=typeof document){var e=document.createElement("style");e.setAttribute("data-search-popup","1"),e.textContent='html {\n height: 100%;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0.2);\n}\n@font-face {\n font-family: DinBold;\n src: url(https://n.sinaimg.cn/edu/cece9e13/20260330/DIN_Alternate_Bold.4e108ee.ttf);\n font-weight: 700;\n font-style: normal;\n}\nhtml,\nbody,\ndiv,\nspan,\napplet,\nobject,\niframe,\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\np,\nblockquote,\npre,\na,\nabbr,\nacronym,\naddress,\nbig,\ncite,\ncode,\ndel,\ndfn,\nem,\nimg,\nins,\nkbd,\nq,\ns,\nsamp,\nsmall,\nstrike,\nstrong,\nsub,\nsup,\ntt,\nvar,\nb,\nu,\ni,\ncenter,\ndl,\ndt,\ndd,\nol,\nul,\nli,\nfieldset,\nform,\nlabel,\nlegend,\ntable,\ncaption,\ntbody,\ntfoot,\nthead,\ntr,\nth,\ntd,\narticle,\naside,\ncanvas,\ndetails,\nfigcaption,\nfigure,\nfooter,\nheader,\nhgroup,\nmenu,\nnav,\nsection,\nsummary,\ntime,\nmark,\naudio,\nvideo {\n border: 0;\n outline: 0;\n}\nbody {\n position: relative;\n min-height: 100%;\n}\n.view-search {\n display: none;\n position: fixed;\n z-index: 100011;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background-color: #ffffff;\n max-width: var(--page-max-width);\n overflow-y: auto;\n -webkit-overflow-scrolling: touch;\n}\n.view-search.active {\n display: block;\n}\n.view-search .module-search-header {\n position: fixed;\n z-index: 2;\n width: 100%;\n line-height: 1rem;\n max-width: var(--page-max-width);\n}\n.view-search .submodule-search {\n width: 100%;\n height: 1rem;\n line-height: 1rem;\n background-color: #ffffff;\n display: flex;\n}\n.view-search .search-box {\n position: relative;\n height: 0.6rem;\n margin-top: 0.23rem;\n background: #f5f5fc;\n border-radius: 6px;\n flex:1;\n display: flex;\n margin-right: .4rem;\n overflow: hidden;\n}\n.view-search .search-box:before {\n content: "";\n position: absolute;\n top: 0;\n left: 0;\n clear: both;\n width: 0.68rem;\n height: 100%;\n background: url("//n.sinaimg.cn/finance/finance_home/img/search-icon-sign2.png") no-repeat center center;\n background-size: 0.3rem auto;\n}\n.view-search .ipt-search {\n display: block;\n margin-left: 0.68rem;\n flex: 1;\n height: 0.6rem;\n line-height: 0.6rem;\n border: none;\n font-size: 16px;\n color: #333333;\n caret-color: #508cee;\n background: #f5f5fc;\n}\n.view-search .ipt-search::-webkit-input-placeholder {\n color: #c5c5c5;\n font-size: 14px;\n}\n.view-search .btn-cancel {\n width: 0.82rem;\n height: 100%;\n color: #2b2b2b;\n background: url("//n.sinaimg.cn/finance/finance_home/img/search-btn-cancel2.png") no-repeat center center;\n background-size: 0.17rem auto;\n}\n.view-search .btn-search {\n display: block !important;\n width: 1.3rem;\n height: 100%;\n text-align: center;\n font-size: 16px;\n color: #1179ca;\n}\n.view-search .submodule-type {\n display: flex;\n padding: 0.3rem!important;\n gap: 0.2rem;\n background: white;\n position: sticky;\n top: 0;\n z-index: 100;\n}\n.view-search .section-header {\n display: flex;\n align-items: center;\n font-size: 0.34rem;\n line-height: .34rem;\n font-weight: 500;\n color: #333;\n padding-top: .1rem;\n}\n.view-search .fire-icon {\n width: 0.34rem;\n height: 0.34rem;\n margin-right: 0.08rem;\n}\n.view-search .u-type {\n width: 1.54rem;\n height: 0.62rem;\n border-radius: 0.08rem;\n font-size: 0.3rem;\n color: #666666;\n background: #F7F9F9;\n border: none;\n cursor: pointer;\n transition: all 0.3s;\n}\n.view-search .u-type.selected {\n background: rgba(80, 140, 238, 0.2);\n color: #508cee;\n font-weight: bold;\n}\n.view-search .m-result-con {\n display: none;\n}\n.view-search .m-result-con.selected {\n display: block;\n}\n.view-search .type-words {\n height: 0.62rem;\n line-height: 0.62rem;\n text-align: center;\n font-size: 0.3rem;\n}\n.view-search .submodule-result,\n.view-search .submodule-customized {\n position: relative;\n display: none;\n margin-top: 2.22rem;\n}\n.view-search .customized-name {\n position: relative;\n padding-left: 0.24rem;\n /* height: 0.9rem; */\n /* line-height: 0.9rem; */\n color: #1179ca;\n font-family: PingFangSC-Medium;\n font-size: 0.3rem;\n color: #808595;\n font-weight: 500;\n text-align: left;\n margin-bottom: .12rem;\n}\n.view-search .customized-name .u-delete {\n display: block;\n position: absolute;\n top: 0;\n right: 0;\n width: 0.9rem;\n height: 0.9rem;\n background: url("//n.sinaimg.cn/finance/finance_home/img/search-btn-delete.png") no-repeat center center;\n background-size: 0.2rem auto;\n}\n.view-search .m-zh-list {\n display: flex;\n flex-wrap: wrap;\n margin-right: 0.18rem;\n}\n.view-search .m-news-history-tag {\n display: flex;\n}\n.view-search .item {\n margin-left: 0.3rem;\n margin-right: 0.3rem;\n height: 1.1rem;\n line-height: 1.1rem;\n font-size: 17px;\n color: #2b2b2b;\n border: none;\n}\n.view-search .item .htitle {\n width: 90%;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n.view-search .item:after {\n content: "";\n display: block;\n height: 1px;\n background-color: #e5e5e5;\n clear: both;\n transform: scale(1, 0.5);\n}\n.view-search .item .green {\n color: #117e09;\n}\n.view-search .item .red {\n color: #fe4444;\n}\n.view-search .zh-item {\n position: relative;\n margin-left: 0.18rem;\n margin-bottom: 0.18rem;\n padding: 0 0.18rem;\n height: 0.58rem;\n line-height: 0.58rem;\n font-family: PingFangSC-Medium;\n font-size: 0.26rem;\n color: #508cee;\n font-weight: 500;\n background: #f5f7fb;\n border-radius: 0.06rem;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n.view-search .zh-item:after {\n content: " ";\n position: absolute;\n left: 0;\n top: 0;\n width: 200%;\n height: 200%;\n box-sizing: border-box;\n border: 1px solid #e5e6f2;\n transform-origin: 0 0;\n transform: scale(0.5, 0.5);\n border-radius: 0.06rem;\n}\n.view-search .zh-item .green {\n color: #117e09;\n}\n.view-search .zh-item .red {\n color: #fe4444;\n}\n.view-search .result-stock {\n height: 1.2rem;\n line-height: 1.2rem;\n color: #333;\n border: none;\n}\n.view-search .result-stock:after {\n content: "";\n display: block;\n height: 1px;\n background-color: #E5E6F2;\n clear: both;\n transform: scale(1, 0.5);\n}\n.view-search .result-stock .code {\n font-size: 12px;\n color: #9a9ead;\n line-height: 0.2rem;\n}\n.view-search .result-stock .stock-type {\n margin: 0.3rem 0.16rem 0 0.3rem;\n float: left;\n}\n.view-search .result-stock .m-stock {\n margin: 0.28rem 0;\n float: left;\n}\n.view-search .result-stock .stock-market {\n display: block;\n padding: 0.02rem 0.04rem;\n line-height: 0.3rem;\n border-radius: 2px;\n color: #fff;\n font-family: PingFangSC-Medium;\n font-size: 0.22rem;\n text-align: center;\n font-weight: 500;\n}\n.view-search .result-stock .stock-market.stock-sh {\n background: #a88e41;\n}\n.view-search .result-stock .stock-market.stock-sz {\n background: #5387eb;\n}\n.view-search .result-stock .stock-market.stock-bj {\n background: #91a3c7;\n}\n.view-search .result-stock .stock-market.stock-hk {\n background: #ff8e4d;\n}\n.view-search .result-stock .stock-market.stock-us {\n background: #55c9f8;\n}\n.view-search .result-stock .stock-market.stock-fe {\n background: #ab71e2;\n}\n.view-search .result-stock .stock-market.stock-sb {\n background: #d0021b;\n}\n.view-search .result-stock .stock-market.stock-ft {\n background: #fe5544;\n}\n.view-search .result-stock .stock-market.stock-hq {\n background: #5d2d26;\n}\n.view-search .result-stock .stock-market.stock-uk {\n background: #0051b3;\n}\n.view-search .result-stock .stock-market.stock-ban {\n background: #178c47;\n}\n.view-search .result-stock .stock-market.stock-zhai {\n background: #de881c;\n}\n.view-search .result-stock .stock-market.stock-of {\n background: #53d1b8;\n}\n.view-search .result-stock .stock-name {\n line-height: 0.32rem;\n margin-bottom: 0.08rem;\n font-family: PingFangSC-Medium;\n font-size: 16px;\n color: #333333;\n font-weight: 500;\n max-width: 6.6rem;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n.view-search .result-stock .u-empty {\n text-align: center;\n}\n.view-search .nowrap {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n.view-search .hq-item .cn {\n display: inline-block;\n color: #2b2b2b;\n max-width: 6em;\n vertical-align: middle;\n}\n.view-search .hq-item .code {\n padding-left: 0.12rem;\n font-size: 12px;\n color: #999999;\n}\n.view-search .hq-item .price {\n float: right;\n width: 2.1rem;\n}\n.view-search .hq-item .change {\n float: right;\n width: 1.3rem;\n margin-right: 0.1rem;\n font-size: 14px;\n}\n.view-search .hq-item .profit {\n float: right;\n width: 2.6rem;\n margin-left: 0.5rem;\n font-size: 13px;\n color: #999999;\n}\n.view-search .bar-item .count {\n float: right;\n width: 2rem;\n margin-left: 0.5rem;\n font-size: 13px;\n color: #999999;\n}\n.view-search .remove {\n float: right;\n width: 1rem;\n height: 1rem;\n background: url("//n.sinaimg.cn/finance/finance_home/img/search-btn-remove.png") no-repeat center center;\n background-size: 0.23rem auto;\n}\n.view-search .empty {\n margin-top: 1.6rem;\n height: 2.5rem;\n line-height: 2rem;\n font-size: 14px;\n text-align: center;\n color: #acacac;\n background: url("//n.sinaimg.cn/finance/finance_home/img/search-bg-empty.png") no-repeat center top;\n background-size: 2.51rem auto;\n}\n.view-search .m-article-w {\n margin: 0 0.2rem;\n height: auto;\n}\n.view-search .m-article {\n white-space: normal;\n margin: 0.3rem 0;\n}\n.view-search .m-article:after {\n content: "\\200B";\n display: block;\n height: 0;\n clear: both;\n visibility: hidden;\n}\n.view-search .m-article .pic {\n position: relative;\n float: right;\n margin-left: 0.24rem;\n width: 2.3rem;\n height: 1.54rem;\n border-radius: 4px;\n overflow: hidden;\n}\n.view-search .m-article .pic .img {\n display: block;\n width: 100%;\n height: 100%;\n}\n.view-search .m-article .title {\n min-height: 0.9rem;\n color: #333;\n font-size: 17px;\n line-height: 1.4;\n word-break: break-all;\n word-wrap: break-word;\n text-overflow: ellipsis;\n display: -webkit-box;\n -webkit-line-clamp: 3;\n -webkit-box-orient: vertical;\n overflow: hidden;\n font-family: PingFangSC-Medium;\n}\n.view-search .m-article .footer {\n display: flex;\n margin-top: 0.2rem;\n height: 0.3rem;\n line-height: 0.3rem;\n font-size: 12px;\n color: #9a9ead;\n}\n.view-search .m-article .source {\n display: inline-block;\n margin-right: 0.2rem;\n max-width: 8em;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n vertical-align: top;\n}\n.view-search .m-article .time {\n display: inline-block;\n margin-right: 0.2rem;\n}\n.view-search .m-article .comments {\n margin-right: 0.12rem;\n}\n.view-search .m-zh-stock-part {\n border-bottom: 0.1rem solid #f5f7fb;\n}\n.view-search .m-zh-stock-part .u-more {\n display: flex;\n justify-content: center;\n align-items: center;\n font-family: PingFangSC-Medium;\n font-size: 14px;\n color: #808595;\n height: 0.92rem;\n line-height: 0.92rem;\n font-weight: 500;\n text-align: center;\n}\n.view-search .m-zh-stock-part .u-more .num {\n color: #508cee;\n}\n.view-search .m-zh-stock-part .u-more .icon {\n display: block;\n width: 0.24rem;\n height: 0.92rem;\n background: url("//n.sinaimg.cn/finance/finance_home/img/search-btn-more.png") no-repeat center center;\n background-size: 0.24rem auto;\n}\n.view-search .highlight {\n color: #508cee !important;\n}\n.view-search .submodule-realtime {\n display: none;\n position: absolute;\n top: 1rem;\n left: 0;\n width: 100%;\n z-index: 1;\n background: #fff;\n}\n.view-search .u-tstock-more {\n border-bottom: 0.2rem solid #F5F7FB;\n position: relative;\n padding-left: 0.79rem;\n font-family: PingFangSC-Regular;\n font-size: 0.28rem;\n color: #9A9EAD;\n line-height: 0.76rem;\n font-weight: 400;\n background: url("//n.sinaimg.cn/finance/finance_home/img/search-icon-sign3.png") no-repeat 0.29rem center;\n background-size: 0.28rem auto;\n}\n.view-search .u-tstock-more:after {\n position: absolute;\n top: 0;\n right: 0.24rem;\n content: "";\n width: 0.24rem;\n height: 100%;\n background: url("//n.sinaimg.cn/finance/finance_home/img/search-btn-more2.png") no-repeat center center;\n background-size: 0.24rem auto;\n}\n.view-search .m-realtime-tip1 {\n position: relative;\n padding: 0.24rem;\n border-bottom: 1px solid #E5E6F2;\n}\n.view-search .m-realtime-tip1:after {\n position: absolute;\n top: 0;\n right: 0.24rem;\n content: "";\n width: 0.24rem;\n height: 100%;\n background: url("//n.sinaimg.cn/finance/finance_home/img/search-btn-more2.png") no-repeat center center;\n background-size: 0.24rem auto;\n}\n.view-search .m-realtime-tip1 h4 {\n margin-bottom: 0.14rem;\n font-family: PingFangSC-Medium;\n font-size: 0.32rem;\n color: #333333;\n line-height: 0.32rem;\n font-weight: 500;\n}\n.view-search .m-realtime-tip1 p {\n font-family: PingFangSC-Regular;\n font-size: 0.24rem;\n color: #9A9EAD;\n line-height: 0.24rem;\n font-weight: 400;\n}\n.view-search .m-realtime-keywords {\n position: relative;\n margin-left: 0.29rem;\n border-bottom: 1px solid #E5E6F2;\n padding: 0 0.64rem 0 0.5rem;\n height: 0.88rem;\n line-height: 0.88rem;\n font-family: PingFangSC-Regular;\n font-size: 0.32rem;\n color: #333333;\n font-weight: 400;\n background: url("//n.sinaimg.cn/finance/finance_home/img/search-icon-sign3.png") no-repeat left center;\n background-size: 0.28rem auto;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n.view-search .m-realtime-keywords:after {\n position: absolute;\n top: 0;\n right: 0.24rem;\n content: "";\n width: 0.24rem;\n height: 100%;\n background: url("//n.sinaimg.cn/finance/finance_home/img/search-btn-more2.png") no-repeat center center;\n background-size: 0.24rem auto;\n}\n@media only screen and (-webkit-min-device-pixel-ratio: 2) {\n .m-view-search .search-box:after {\n transform: scale(0.5, 1);\n }\n .m-view-search .item {\n border: none;\n }\n .m-view-search .item:after {\n content: "";\n display: block;\n height: 1px;\n background-color: #e5e5e5;\n clear: both;\n transform: scale(1, 0.5);\n }\n}\n.m-mode-search .module-feed {\n display: none;\n}\n.m-mode-search .feed_list {\n display: none;\n}\n.m-view-search {\n font-size: 14px;\n line-height: 14px;\n}\n.module-search {\n font-size: 14px;\n line-height: 14px;\n height: 0.56rem;\n line-height: 0.56rem;\n overflow: hidden;\n}\n.module-search.logged-out .search-box {\n width: 4.34rem;\n}\n.module-search.logged-out .link-logout {\n display: none;\n}\n.module-search .link-box {\n float: right;\n}\n.module-search .link {\n font-size: 13px;\n color: #1179ca;\n}\n.module-search .link-dashuju {\n display: block;\n float: right;\n position: relative;\n margin-right: 0.3rem;\n}\n.module-search .link-dashuju .tip {\n display: block;\n position: absolute;\n top: 0.1rem;\n right: -0.08rem;\n width: 0.08rem;\n height: 0.08rem;\n border-radius: 9999px;\n background: red;\n}\n.module-search .link-24hours {\n float: left;\n display: inline-block;\n margin-right: 0.2rem;\n width: 1.4rem;\n height: 0.56rem;\n font-size: 0;\n background: url("//n.sinaimg.cn/finance/finance_home/img/24hours.png") no-repeat center center;\n background-size: 1.4rem auto;\n}\n.module-search .link-optionalstock {\n float: right;\n display: block;\n padding-right: 0.3rem;\n height: 0.56rem;\n line-height: 0.56rem;\n}\n.module-search .link-optionalstock2 {\n float: right;\n display: block;\n padding-right: 0.3rem;\n height: 0.56rem;\n line-height: 0.56rem;\n}\n.module-search .link-logout {\n margin-left: 10px;\n color: #888888;\n}\n.module-search .split {\n display: inline-block;\n margin: 0 0.1rem;\n width: 1px;\n height: 15px;\n vertical-align: middle;\n background-color: #1179ca;\n}\n.module-search .search-box {\n margin-left: 0.2rem;\n width: 6.86rem;\n color: #c5c5c5;\n background: url("//n.sinaimg.cn/finance/finance_home/img/search-icon-sign.png") no-repeat 0.3rem center;\n background-size: 0.27rem auto;\n background-color: #ffffff;\n border-radius: 0.06rem;\n text-indent: 0.7rem;\n -webkit-transition: width 0.35s;\n transition: width 0.35s;\n}\n\n/* Stock Category Tabs Styles */\n\n.view-search .category-tabs {\n display: flex;\n gap: 0.4rem;\n padding: 0 0.3rem;\n border-bottom: 0.01rem solid #F4F4F4;\n position: relative;\n}\n.view-search .category-tab,\n.view-search .stock-category-tab,\n.view-search .bar-category-tab,\n.view-search .fund-category-tab {\n padding: 0.28rem 0;\n font-size: 0.32rem;\n color: #666;\n text-decoration: none;\n -webkit-tap-highlight-color: transparent;\n cursor: pointer;\n position: relative;\n transition: color 0.3s;\n}\n.view-search .category-tab.active,\n.view-search .stock-category-tab.active,\n.view-search .bar-category-tab.active,\n.view-search .fund-category-tab.active {\n color: #333;\n font-weight: 500;\n}\n.view-search .category-tab.active::after,\n.view-search .stock-category-tab.active::after,\n.view-search .bar-category-tab.active::after,\n.view-search .fund-category-tab.active::after {\n content: \'\';\n position: absolute;\n bottom: -0.02rem;\n left: 50%;\n transform: translateX(-50%);\n width: 0.26rem;\n height: 0.06rem;\n background: #508CEE;\n border-radius: 0.03rem;\n}\n.view-search .table-header {\n display: grid;\n grid-template-columns: .64rem 1fr 1.9rem 1.9rem 1.3rem;\n padding: 0.18rem 0;\n margin: 0 .3rem;\n font-size: 0.24rem;\n color: #999;\n border-bottom: .01rem solid #F4F4F4;\n}\n.view-search .table-header.stock-table-header{\n grid-template-columns: .64rem 1fr 1.8rem 1.8rem 1.3rem;\n}\n.view-search .table-header.stock-table-header.hide-amount{\n grid-template-columns: .64rem 1fr 1.8rem 1.8rem;\n}\n.view-search .table-header.bar-table-header{\n grid-template-columns: .64rem 1fr 1.8rem 1.8rem 1.3rem;\n}\n.view-search .table-header.fund-table-header{\n grid-template-columns: .64rem 1fr 1.2rem 1.8rem 1.3rem;\n}\n.view-search .th-left {\n text-align: left;\n}\n.view-search .th-right {\n text-align: right;\n}\n.view-search .stock-list,\n.view-search .hot-bar-list,\n.view-search .etf-fund-list {\n padding: 0 0.3rem;\n}\n\n/* \u901a\u7528\u5217\u8868\u884c\u6837\u5f0f\uff08\u80a1\u7968/\u70ed\u8bae\u80a1\u7968/\u573a\u5185\u57fa\u91d1\uff09 */\n.view-search .list-item,\n.view-search .hot-bar-item,\n.view-search .etf-fund-item {\n display: grid;\n border-bottom: 0.02rem solid #f5f5f5;\n align-items: center;\n cursor: pointer;\n position: relative;\n}\n\n/* \u5404\u6a21\u5757\u5217\u5bbd\u5dee\u5f02 */\n.view-search .list-item {\n grid-template-columns: .64rem 1fr 1.8rem 1.8rem 1.3rem;\n padding: 0.2rem 0;\n}\n.view-search .list-item.hide-amount {\n grid-template-columns: .64rem 1fr;\n}\n.view-search .hot-bar-item {\n grid-template-columns: .64rem 1fr 1.8rem 1.8rem 1.3rem;\n height: 1.05rem;\n}\n.view-search .etf-fund-item {\n grid-template-columns: .64rem 1fr 1.2rem 1.8rem 1.3rem;\n height: 1.05rem;\n}\n.view-search .stock-list .list-item {\n grid-template-columns: .64rem 1fr;\n}\n/* \u901a\u7528rank\u6837\u5f0f */\n.view-search .rank {\n font-size: 0.36rem;\n \n color: #9A9EAD;\n padding-left: 0.1rem;\n}\n.view-search .rank.top-1 { color: #FB2F3B; }\n.view-search .rank.top-2 { color: #FF7500; }\n.view-search .rank.top-3 { color: #FFB237; }\n\n/* \u901a\u7528info\u5757\u6837\u5f0f\uff08\u4e24\u79cd\u547d\u540d\u90fd\u517c\u5bb9\uff0c\u907f\u514d\u5927\u6539\u6a21\u677f\uff09 */\n.view-search .stock-detail,\n.view-search .stock-info {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n overflow: hidden;\n max-width: 100%;\n}\n\n.view-search .stock-detail *,\n.view-search .stock-info * {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.view-search .list-item-right{\n\n}\n.view-search .stock-nums{\n display: grid;\n align-items: center;\n grid-template-columns: 1fr 1.8rem 1.8rem 1.3rem;\n}\n.view-search .stock-list.hide-amount .stock-nums{\n grid-template-columns: 1fr 1.2rem 1.8rem;\n}\n\n.view-search .stock-name {\n font-size: 0.30rem;\n font-weight: 500;\n color: #333;\n white-space: nowrap;\n width: 100%;\n}\n.view-search .stock-code {\n margin-top: .1rem;\n font-size: 0.24rem;\n color: #999;\n}\n\n/* \u80a1\u7968\u70ed\u70b9\u6807\u7b7e\uff08\u4ec5\u80a1\u7968\u5217\u8868\u4f7f\u7528\uff09 */\n.view-search .stock-tags {\n display: flex;\n flex-wrap: wrap;\n gap: 0.08rem;\n align-items: center;\n margin-top: .12rem;\n}\n.view-search .hot-tag {\n display: inline-block;\n text-align: center;\n border: 0.01rem solid #EB3F2E;\n border-radius: 0.04rem;\n font-size: 0.18rem;\n color: #EB3F2E;\n width: .48rem;\n height: .26rem;\n line-height: .26rem;\n}\n.view-search .stock-desc {\n font-size: 0.24rem;\n color: #999;\n max-width: 5.45rem;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n/* \u901a\u7528\u6570\u503c\u5217\u6837\u5f0f */\n.view-search .stock-price,\n.view-search .stock-change,\n.view-search .stock-amount {\n font-size: 0.32rem;\n font-weight: 500;\n color: #ff5252;\n text-align: right;\n}\n\n/* \u884c\u60c5\u6da8\u8dcc\u989c\u8272\uff08\u80a1\u7968\u5217\u8868\u4e5f\u4f1a\u7528\u5230\uff09 */\n.view-search .stock-price.red,\n.view-search .stock-change.red,\n.view-search .stock-amount.red {\n color: #ff5252;\n}\n.view-search .stock-price.green,\n.view-search .stock-change.green,\n.view-search .stock-amount.green {\n color: #05AA3B;\n}\n\n/* News List Styles */\n.view-search .news-list {\n padding: 0 0.24rem;\n}\n.view-search .news-item {\n border-bottom: 0.02rem solid #f5f5f5;\n cursor: pointer;\n position: relative;\n}\n.view-search .news-item:last-child {\n border-bottom: none;\n}\n.view-search .news-item .content-wrap {\n display: flex;\n align-items: center;\n height: 1.24rem;\n}\n.view-search .news-rank {\n margin-right: .24rem;\n flex-shrink: 0;\n font-size: 0.36rem;\n font-weight: bold;\n color: #9A9EAD;\n}\n.view-search .news-rank.top-1 {\n color: #FB2F3B;\n}\n.view-search .news-rank.top-2 {\n color: #FF7500;\n}\n.view-search .news-rank.top-3 {\n color: #FFB237;\n}\n.view-search .news-content {\n flex: 1;\n display: flex;\n align-items: center;\n justify-content: space-between;\n}\n.view-search .news-title {\n font-size: 0.3rem;\n line-height: .46rem;\n color: #333;\n position: relative;\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n overflow: hidden;\n width: 5.7rem;\n text-decoration: none;\n -webkit-tap-highlight-color: transparent;\n}\n.view-search .news-title:visited {\n color: #666;\n}\n.view-search .news-badge {\n width: .3rem;\n height: .3rem;\n border-radius: 0.06rem;\n font-size: 0.22rem;\n font-weight: 500;\n color: white;\n text-align: center;\n line-height: .3rem;\n flex-shrink: 0;\n}\n.view-search .badge-new {\n background: #5b8ff9;\n}\n.view-search .badge-hot {\n background: #ff6b35;\n}\n.view-search .badge-boiling {\n background: #ff9800;\n}\n\n/* Hot Bar / ETF - \u4ec5\u4fdd\u7559\u5dee\u5f02\u5316\u6837\u5f0f */\n.view-search .stock-name.name-medium,\n.view-search .stock-name.name-medium {\n font-size: 0.26rem;\n}\n.view-search .stock-name.name-small,\n.view-search .stock-name.name-small {\n font-size: 0.22rem;\n}\n/* \u884c\u60c5\u6da8\u8dcc\u989c\u8272 */\n.view-search .hot-bar-item .stock-price.red,\n.view-search .hot-bar-item .stock-change.red {\n color: #ff5252;\n}\n.view-search .hot-bar-item .stock-price.green,\n.view-search .hot-bar-item .stock-change.green {\n color: #05AA3B;\n}\n\n/* ==================== \u573a\u5916\u57fa\u91d1\u6837\u5f0f ==================== */\n.view-search .ranking-header {\n text-align: center;\n margin: 0.4rem 0;\n}\n\n\n.ranking-header .title{text-align:center;}\n.ranking-header .title i{width:1.54rem;height:.24rem;display:inline-block;vertical-align:top;margin-top:.12rem;background-size:100% auto;background-repeat:no-repeat;background-position:50%;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJoAAAAYCAMAAAA1WRT2AAAAaVBMVEVHcEz/qIT/vKD/mnD/VSL/hlT/oHr/VRX/VRL/VBP/fEj/ro7/9O7/ajD/5tz/Vhb/cDj/XiD/tJj/zrr/wqr/yLL/jF7/7ub/3ND/kmb/0sL/ZCj/4tb/dkD/+vb/////2Mj/VRT/VBJgXBL1AAAAInRSTlMAf39/D39/DMPIf39/f39/f39/f39/f39/f39/f39/f38/nF/CfAAAALdJREFUSMft11sOwiAQhWG0VVq8tNa7ItDuf5GeCSUSo4kPPhwT/xV8CQFmlGJKa0WarirNKhsGTpvIOG1RxmhLMj5blNU1n22UlSWdLcmUYrM9ZGy2XJbbvPfOuaV0RGvJWntCIYQL2qI92qGp1KGFNJHmUiGd0QHNYgbdUItW0hVtpAb1b2SZ7QXNfoVmzGhrky3Rmg9pxAf6vwa/+ngwP7nMHxXz9848FDGPkswDOPPa8rTs3QHn7iWW9e/ZhAAAAABJRU5ErkJggg==)}\n.ranking-header .title i:last-child{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJoAAAAYCAMAAAA1WRT2AAAAaVBMVEVHcEz/qIT/vKD/mnD/VSL/hlT/oHr/VRX/VRL/VBP/fEj/ro7/9O7/ajD/5tz/Vhb/cDj/XiD/tJj/zrr/wqr/yLL/jF7/7ub/3ND/kmb/0sL/ZCj/4tb/dkD/+vb/////2Mj/VRT/VBJgXBL1AAAAInRSTlMAf39/D39/DMPIf39/f39/f39/f39/f39/f39/f39/f38/nF/CfAAAALVJREFUSMfN11sOgjAQheFR0UK9gApea1vZ/yI9k0KKCQ8mvpx/BV/StJ0RyRkjpJmyNKyyvue0qYzTlmSMtlHGZ0uyquKzDbKioLONMhE2W5ax2aYyLtu3bMb2rtFRe6K91qAXsmiduqA7WmkbbaFttRNaai3q0Bk9UIzxhpxzB+2Kdpr3PoTwI62e0pqBZm22/UlzczTiA2W+BsyPB/OTy/xRMX/vzEMR8yjJPIAzry10y94HcZ4llt+8rOgAAAAASUVORK5CYII=)}\n.ranking-header .title span{margin:0 .2rem;width:1.48rem;height:.46rem;text-indent:-9.99rem;display:inline-block;background-size:100% auto;background-repeat:no-repeat;background-position:50%}\n.ranking-header .title span.title1{\n background-image: url(//fund.sina.com.cn/fund/wap/fund_static/img/title_1.00ac63a.png);\n}\n.view-search .ranking-title {\n display: flex;\n justify-content: center;\n align-items: center;\n gap: 0.24rem;\n color: #ff5252;\n font-size: 0.52rem;\n font-weight: bold;\n}\n.view-search .ranking-title::before,\n.view-search .ranking-title::after {\n content: \'\';\n width: 1.4rem;\n height: 0.02rem;\n background: linear-gradient(to right, transparent, #ff9999);\n}\n.view-search .ranking-title::after {\n background: linear-gradient(to left, transparent, #ff9999);\n}\n.view-search .diamond {\n display: inline-block;\n width: 0.2rem;\n height: 0.2rem;\n background: #ff5252;\n transform: rotate(45deg);\n}\n.view-search .fund-list {\n display: flex;\n flex-direction: column;\n margin: 0 .3rem;\n}\n.view-search .fund-card {\n position: relative;\n margin-top: 0.3rem;\n padding: 0.2rem 2.2rem 0.3rem 0.5rem;\n border-radius: 0.2rem;\n box-shadow: 0 0.05rem 0.36rem 0 hsla(0, 4%, 48%, 0.2);\n}\n.view-search .fund-card.rank-1 {\n margin-top: 0;\n background-image: linear-gradient(-177deg, #ffb100, #ff8b00 65%);\n}\n.view-search .fund-card.rank-2 {\n background-image: linear-gradient(-179deg, #fe8c3b, #fe503b 68%);\n}\n.view-search .fund-card.rank-3 {\n background-image: linear-gradient(2deg, #ff3c49 47%, #ff5e8d);\n}\n.view-search .card-content {\n position: relative;\n z-index: 1;\n}\n.view-search .fund-name {\n font-size: 0.32rem;\n color: #fff;\n line-height: 0.52rem;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.view-search .card-content .fund-percentage {\n font-family: DinBold;\n font-size: 0.7rem;\n height: 0.9rem;\n line-height: 0.9rem;\n color: #fff;\n}\n.view-search .fund-time-label {\n font-size: 0.24rem;\n line-height: 0.26rem;\n color: #fff;\n margin-top: 0.06rem;\n}\n.view-search .fund-details {\n font-size: 0.24rem;\n line-height: 0.26rem;\n color: #fff;\n margin-top: 0.1rem;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.view-search .medal {\n position: absolute;\n right: 0.6rem;\n top: 0.42rem;\n width: 1.5rem;\n height: 1.74rem;\n background-size: cover;\n background-repeat: no-repeat;\n background-position: 50%;\n}\n.view-search .rank-1 .medal {\n background-image: url(https://fund.sina.com.cn/fund/wap/fund_static/img/jp_1_2.05fad71.png);\n}\n.view-search .rank-2 .medal {\n background-image: url(https://fund.sina.com.cn/fund/wap/fund_static/img/jp_2_2.a70cdf0.png);\n}\n.view-search .rank-3 .medal {\n background-image: url(https://fund.sina.com.cn/fund/wap/fund_static/img/jp_3_2.3e66b2c.png);\n}\n.view-search .fund-item {\n display: flex;\n align-items: center;\n padding: 0.4rem 0;\n border-bottom: 0.02rem solid #f0f0f0;\n}\n.view-search .fund-item .rank-number {\n width: 1.04rem;\n text-align: center;\n line-height: 0.6rem;\n font-size: 0.4rem;\n margin-top: 0.44rem;\n color: #bdbdbd;\n}\n.view-search .fund-item .item-info {\n position: relative;\n width: 1.96rem;\n padding-top: 0.3rem;\n}\n.view-search .fund-item .item-info::after {\n right: 0;\n top: 0.35rem;\n bottom: 0.35rem;\n width: 1px;\n content: " ";\n position: absolute;\n z-index: 1;\n background-color: #e6e6e6;\n border: 0;\n}\n@media only screen and (-webkit-min-device-pixel-ratio: 2) {\n .view-search .fund-item .item-info::after {\n transform-origin: 100% 0;\n -webkit-transform-origin: 100% 0;\n transform: scaleX(0.5);\n -webkit-transform: scaleX(0.5);\n }\n}\n.view-search .fund-item .item-percentage {\n font-size: 0.36rem;\n line-height: 0.42rem;\n color: #ff4d00;\n}\n.view-search .fund-item .item-time {\n line-height: 0.36rem;\n font-size: 0.26rem;\n margin-top: 0.1rem;\n color: #939393;\n}\n.view-search .item-fund {\n flex: 1.2;\n padding-left: 0.4rem;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n.view-search .item-fund-name {\n font-size: 0.32rem;\n color: #333;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.view-search .item-details {\n font-size: 0.24rem;\n line-height: 0.26rem;\n color: #939393;\n margin-top: 0.2rem;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.view-search .item-separator {\n width: 0.02rem;\n height: 0.2rem;\n background: #ddd;\n display: inline-block;\n}\n.view-search .md-copy {\n text-align: center;\n padding: 0.64rem 0.4rem;\n color: #d1d2d5;\n font-size: 0.24rem;\n line-height: 0.36rem;\n}\n', (document.head||document.getElementsByTagName("head")[0]).appendChild(e)}}();