(window.webpackJsonp=window.webpackJsonp||[]).push([[27],{1302:function(t,e,r){"use strict";var n=r(1303).has;t.exports=function(t){return n(t),t}},1303:function(t,e,r){"use strict";var n=r(14),o=Set.prototype;t.exports={Set:Set,add:n(o.add),has:n(o.has),remove:n(o.delete),proto:o}},1304:function(t,e,r){"use strict";r(10),r(110);var n={props:{tooltip:{type:Boolean,default:!1},value:{type:[Number,String],default:""},underline:{type:Boolean,default:!1}},computed:{numParts(){return this.value?this.value.match(/^(-?0\.)(0{5,})([^0][0-9]*)$/):null}}},o=(r(1320),r(0)),component=Object(o.a)(n,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-common-sub-num"},[e("via-tooltip",{attrs:{disabled:!t.numParts||!t.tooltip,"popper-class":"c-common-sub-num-tooltip",content:t.value}},[e("div",{staticClass:"inline"},[t.numParts?e("div",t._g({staticClass:"inline whitespace-nowrap rtl:unicode-plain num-class"},t.$listeners),[e("span",[t._v(t._s(t.numParts[1])+"0")]),t._v(" "),e("sub",{staticClass:"sub-num",class:t.underline&&"underline-dashed"},[t._v(t._s(t.numParts[2].length))]),t._v(" "),e("span",[t._v(t._s(t.numParts[3]))])]):[e("span",t._g({},t.$listeners),[t._v(t._s(t.value||"--"))])],t._v(" "),t._t("default")],2)])],1)}),[],!1,null,null,null);e.a=component.exports},1305:function(t,e,r){"use strict";var n=r(14),o=r(679),c=r(1303),l=c.Set,d=c.proto,h=n(d.forEach),f=n(d.keys),v=f(new l).next;t.exports=function(t,e,r){return r?o({iterator:f(t),next:v},e):h(t,e)}},1310:function(t,e,r){"use strict";var n=r(91),o=r(25),c=r(1434),l=r(48),d=n("Set");t.exports=function(t){return function(t){return l(t)&&"number"==typeof t.size&&o(t.has)&&o(t.keys)}(t)?t:c(t)?new d(t):t}},1311:function(t,e,r){"use strict";var n=r(52),o=r(38),c=r(27),l=r(79),d=r(1436),h="Invalid size",f=RangeError,v=TypeError,m=Math.max,_=function(t,e,r,n){this.set=t,this.size=e,this.has=r,this.keys=n};_.prototype={getIterator:function(){return d(o(c(this.keys,this.set)))},includes:function(t){return c(this.has,this.set,t)}},t.exports=function(t){o(t);var e=+t.size;if(e!=e)throw new v(h);var r=l(e);if(r<0)throw new f(h);return new _(t,m(r,0),n(t.has),n(t.keys))}},1313:function(t,e,r){var content=r(1321);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,r(6).default)("58e5aaba",content,!0,{sourceMap:!1})},1314:function(t,e,r){"use strict";var n=r(682),o=r(1303);t.exports=n(o.proto,"size","get")||function(t){return t.size}},1316:function(t,e,r){"use strict";r.r(e);var n=r(3),o=r(1300);function c(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function l(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?c(Object(r),!0).forEach((function(e){Object(n.a)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var d={components:{},props:{tagName:{type:String,default:"div"},refClass:{type:String,default:""},popperClass:{type:String,default:""},placement:{type:String,default:"auto"},options:{type:Object,default:()=>({})},value:{type:Boolean,default:!1},hasArrow:{type:Boolean,default:!1},sameWidth:{type:Boolean,default:!1},offset:{type:[Array,Function],default:()=>null},clickout:{type:Boolean,default:!0},delay:{type:Number,default:0},appendToBody:{type:Boolean,default:!1},useHover:{type:Boolean,default:!1},clickHideDelay:{type:Number,default:0}},data(){return{visible:this.value,hideDelay:200}},computed:{modifiers(){var t=this.options&&this.options.modifiers||[];return t.find((t=>"offset"===t.name))||!this.offset&&!this.hasArrow||t.push({name:"offset",options:{offset:this.offset||[0,6]}}),this.hasArrow&&t.push({name:"arrow",options:{padding:6}}),this.sameWidth&&t.push({name:"sameWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:t=>{var{state:e}=t;e.styles.popper.width="".concat(e.rects.reference.width,"px")},effect:t=>{var{state:e}=t;e.elements.popper.style.width="".concat(e.elements.reference.offsetWidth,"px")}}),t}},watch:{value:{immediate:!0,handler(t){this.visible=t,this.$emit("input",t)}},visible(t){this.clickout&&this.removeListenClickout(),t&&(setTimeout((()=>{this.updatePopper()}),this.delay),this.clickout&&this.listenClickout())}},mounted(){this.updatePopper(),this.appendToBody&&document.body.appendChild(this.$refs.popper)},beforeDestroy(){this.clickout&&this.removeListenClickout(),this.destoryPopper(),this.removeMouseTimer()},methods:{createPopper(){if(!this.popper){var t=this.$refs.reference,e=this.$refs.popper;if(t&&e){var r=this.options||{};this.appendToBody&&document.body.appendChild(e),this.popper=Object(o.a)(t,e,l(l({},r),{},{placement:this.placement||r.placement,modifiers:this.modifiers}))}}},updatePopper(){var t=this.popper;t?t.update():this.createPopper()},destoryPopper(){if(this.popper&&(this.popper.destroy(),this.popper=null),this.appendToBody){var t=this.$refs.popper;t&&t.parentNode.removeChild(t)}},listenClickout(){window.document.addEventListener("click",this.handleDocumentClick)},removeListenClickout(){window.document.removeEventListener("click",this.handleDocumentClick)},handleDocumentClick(t){var e=this.$refs.reference,r=this.$refs.popper,n=this.$refs.container;n&&e&&!this.elementContains(n,t.target)&&!this.elementContains(e,t.target)&&r&&!this.elementContains(r,t.target)&&(this.hideTimer=setTimeout((()=>{this.setVisible(!1),this.hideTimer=null}),this.clickHideDelay))},stopHide(){clearTimeout(this.hideTimer),this.hideTimer=null},elementContains:(t,e)=>"function"==typeof t.contains&&t.contains(e),removeMouseTimer(){this.timer&&(window.clearTimeout(this.timer),this.timer=null)},handleMouseEnter(){this.useHover&&(this.removeMouseTimer(),this.setVisible(!0))},handleMouseleave(){this.useHover&&(this.removeMouseTimer(),this.timer=setTimeout((()=>{this.timer=null,this.setVisible(!1)}),this.hideDelay))},setVisible(t){this.visible=t,this.$emit("input",t)}}},h=d,f=(r(1425),r(0)),component=Object(f.a)(h,(function(){var t=this,e=t._self._c;return e(t.tagName,{ref:"container",tag:"component",staticClass:"c-common-popper",on:{"&mouseenter":function(e){return t.handleMouseEnter.apply(null,arguments)},"&mouseleave":function(e){return t.handleMouseleave.apply(null,arguments)}}},[e("div",{ref:"reference",class:t.refClass},[t._t("default")],2),t._v(" "),e("div",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],ref:"popper",staticClass:"c-common-popper-container",class:t.popperClass},[t.hasArrow?e("div",{staticClass:"popper-arrow",attrs:{"data-popper-arrow":""}}):t._e(),t._v(" "),t._t("popper")],2)])}),[],!1,null,null,null);e.default=component.exports},1320:function(t,e,r){"use strict";r(1313)},1321:function(t,e,r){var n=r(5)((function(i){return i[1]}));n.push([t.i,'.c-common-sub-num .num-class .sub-num{color:var(--text-707580);display:inline-flex;font-size:100%;margin:0 -.35em;position:relative;transform:scale(.6)}.c-common-sub-num .num-class .sub-num.underline-dashed:after{border-bottom:1px dashed var(--border-707580);bottom:-.6em;content:"";position:absolute;width:.6em}.theme-night .c-common-sub-num .num-class .sub-num{color:#909399}',""]),n.locals={},t.exports=n},1322:function(t,e,r){"use strict";var n=r(12),o=r(1302),c=r(1303).add;n({target:"Set",proto:!0,real:!0,forced:!0},{addAll:function(){for(var t=o(this),e=0,r=arguments.length;e<r;e++)c(t,arguments[e]);return t}})},1323:function(t,e,r){"use strict";var n=r(12),o=r(1302),c=r(1303).remove;n({target:"Set",proto:!0,real:!0,forced:!0},{deleteAll:function(){for(var t,e=o(this),r=!0,n=0,l=arguments.length;n<l;n++)t=c(e,arguments[n]),r=r&&t;return!!r}})},1324:function(t,e,r){"use strict";var n=r(12),o=r(27),c=r(1310),l=r(1435);n({target:"Set",proto:!0,real:!0,forced:!0},{difference:function(t){return o(l,this,c(t))}})},1325:function(t,e,r){"use strict";var n=r(12),o=r(47),c=r(1302),l=r(1305);n({target:"Set",proto:!0,real:!0,forced:!0},{every:function(t){var e=c(this),r=o(t,arguments.length>1?arguments[1]:void 0);return!1!==l(e,(function(t){if(!r(t,t,e))return!1}),!0)}})},1326:function(t,e,r){"use strict";var n=r(12),o=r(47),c=r(1302),l=r(1303),d=r(1305),h=l.Set,f=l.add;n({target:"Set",proto:!0,real:!0,forced:!0},{filter:function(t){var e=c(this),r=o(t,arguments.length>1?arguments[1]:void 0),n=new h;return d(e,(function(t){r(t,t,e)&&f(n,t)})),n}})},1327:function(t,e,r){"use strict";var n=r(12),o=r(47),c=r(1302),l=r(1305);n({target:"Set",proto:!0,real:!0,forced:!0},{find:function(t){var e=c(this),r=o(t,arguments.length>1?arguments[1]:void 0),n=l(e,(function(t){if(r(t,t,e))return{value:t}}),!0);return n&&n.value}})},1328:function(t,e,r){"use strict";var n=r(12),o=r(27),c=r(1310),l=r(1437);n({target:"Set",proto:!0,real:!0,forced:!0},{intersection:function(t){return o(l,this,c(t))}})},1329:function(t,e,r){"use strict";var n=r(12),o=r(27),c=r(1310),l=r(1438);n({target:"Set",proto:!0,real:!0,forced:!0},{isDisjointFrom:function(t){return o(l,this,c(t))}})},1330:function(t,e,r){"use strict";var n=r(12),o=r(27),c=r(1310),l=r(1439);n({target:"Set",proto:!0,real:!0,forced:!0},{isSubsetOf:function(t){return o(l,this,c(t))}})},1331:function(t,e,r){"use strict";var n=r(12),o=r(27),c=r(1310),l=r(1440);n({target:"Set",proto:!0,real:!0,forced:!0},{isSupersetOf:function(t){return o(l,this,c(t))}})},1332:function(t,e,r){"use strict";var n=r(12),o=r(14),c=r(1302),l=r(1305),d=r(37),h=o([].join),f=o([].push);n({target:"Set",proto:!0,real:!0,forced:!0},{join:function(t){var e=c(this),r=void 0===t?",":d(t),n=[];return l(e,(function(t){f(n,t)})),h(n,r)}})},1333:function(t,e,r){"use strict";var n=r(12),o=r(47),c=r(1302),l=r(1303),d=r(1305),h=l.Set,f=l.add;n({target:"Set",proto:!0,real:!0,forced:!0},{map:function(t){var e=c(this),r=o(t,arguments.length>1?arguments[1]:void 0),n=new h;return d(e,(function(t){f(n,r(t,t,e))})),n}})},1334:function(t,e,r){"use strict";var n=r(12),o=r(52),c=r(1302),l=r(1305),d=TypeError;n({target:"Set",proto:!0,real:!0,forced:!0},{reduce:function(t){var e=c(this),r=arguments.length<2,n=r?void 0:arguments[1];if(o(t),l(e,(function(o){r?(r=!1,n=o):n=t(n,o,o,e)})),r)throw new d("Reduce of empty set with no initial value");return n}})},1335:function(t,e,r){"use strict";var n=r(12),o=r(47),c=r(1302),l=r(1305);n({target:"Set",proto:!0,real:!0,forced:!0},{some:function(t){var e=c(this),r=o(t,arguments.length>1?arguments[1]:void 0);return!0===l(e,(function(t){if(r(t,t,e))return!0}),!0)}})},1336:function(t,e,r){"use strict";var n=r(12),o=r(27),c=r(1310),l=r(1441);n({target:"Set",proto:!0,real:!0,forced:!0},{symmetricDifference:function(t){return o(l,this,c(t))}})},1337:function(t,e,r){"use strict";var n=r(12),o=r(27),c=r(1310),l=r(1442);n({target:"Set",proto:!0,real:!0,forced:!0},{union:function(t){return o(l,this,c(t))}})},1352:function(t,e,r){"use strict";var n=r(1303),o=r(1305),c=n.Set,l=n.add;t.exports=function(t){var e=new c;return o(t,(function(t){l(e,t)})),e}},1357:function(t,e,r){var content=r(1426);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,r(6).default)("8107b6ec",content,!0,{sourceMap:!1})},1425:function(t,e,r){"use strict";r(1357)},1426:function(t,e,r){var n=r(5)((function(i){return i[1]}));n.push([t.i,'.c-common-popper-container{transition:display .4s;z-index:99}.c-common-popper-container .popper-arrow{border:6px solid transparent;filter:drop-shadow(0 2px 12px rgba(0,0,0,.03));height:0;width:0}.c-common-popper-container .popper-arrow:after{border:6px solid transparent;content:" ";display:block;height:0;position:absolute;width:0}.c-common-popper-container[data-popper-placement^=top] .popper-arrow{border-bottom-width:0;border-top-color:var(--border-e0e3ed);bottom:-6px}.c-common-popper-container[data-popper-placement^=top] .popper-arrow:after{border-bottom-width:0;border-top-color:var(--border-ffffff);bottom:1px;margin-inline-start:-6px}.c-common-popper-container[data-popper-placement^=bottom] .popper-arrow{border-bottom-color:var(--border-e0e3ed);border-top-width:0;top:-6px}.c-common-popper-container[data-popper-placement^=bottom] .popper-arrow:after{border-bottom-color:var(--border-ffffff);border-top-width:0;margin-inline-start:-6px;top:1px}.c-common-popper-container[data-popper-placement^=right] .popper-arrow{border-inline-end-color:var(--border-e0e3ed);border-inline-start-width:0;inset-inline-start:-6px}.c-common-popper-container[data-popper-placement^=right] .popper-arrow:after{border-inline-end-color:var(--border-ffffff);border-inline-start-width:0;left:1px;margin-top:-6px}.c-common-popper-container[data-popper-placement^=left] .popper-arrow{border-inline-end-width:0;border-inline-start-color:var(--border-e0e3ed);inset-inline-end:-6px}.c-common-popper-container[data-popper-placement^=left] .popper-arrow:after{border-inline-end-width:0;border-inline-start-color:var(--border-ffffff);inset-inline-end:1px;margin-top:-6px}',""]),n.locals={},t.exports=n},1434:function(t,e,r){"use strict";var n=r(92),o=r(46),c=r(89),l=r(32),d=r(160),h=l("iterator"),f=Object;t.exports=function(t){if(c(t))return!1;var e=f(t);return void 0!==e[h]||"@@iterator"in e||o(d,n(e))}},1435:function(t,e,r){"use strict";var n=r(1302),o=r(1303),c=r(1352),l=r(1314),d=r(1311),h=r(1305),f=r(679),v=o.has,m=o.remove;t.exports=function(t){var e=n(this),r=d(t),o=c(e);return l(e)<=r.size?h(e,(function(t){r.includes(t)&&m(o,t)})):f(r.getIterator(),(function(t){v(e,t)&&m(o,t)})),o}},1436:function(t,e,r){"use strict";t.exports=function(t){return{iterator:t,next:t.next,done:!1}}},1437:function(t,e,r){"use strict";var n=r(1302),o=r(1303),c=r(1314),l=r(1311),d=r(1305),h=r(679),f=o.Set,v=o.add,m=o.has;t.exports=function(t){var e=n(this),r=l(t),o=new f;return c(e)>r.size?h(r.getIterator(),(function(t){m(e,t)&&v(o,t)})):d(e,(function(t){r.includes(t)&&v(o,t)})),o}},1438:function(t,e,r){"use strict";var n=r(1302),o=r(1303).has,c=r(1314),l=r(1311),d=r(1305),h=r(679),f=r(400);t.exports=function(t){var e=n(this),r=l(t);if(c(e)<=r.size)return!1!==d(e,(function(t){if(r.includes(t))return!1}),!0);var v=r.getIterator();return!1!==h(v,(function(t){if(o(e,t))return f(v,"normal",!1)}))}},1439:function(t,e,r){"use strict";var n=r(1302),o=r(1314),c=r(1305),l=r(1311);t.exports=function(t){var e=n(this),r=l(t);return!(o(e)>r.size)&&!1!==c(e,(function(t){if(!r.includes(t))return!1}),!0)}},1440:function(t,e,r){"use strict";var n=r(1302),o=r(1303).has,c=r(1314),l=r(1311),d=r(679),h=r(400);t.exports=function(t){var e=n(this),r=l(t);if(c(e)<r.size)return!1;var f=r.getIterator();return!1!==d(f,(function(t){if(!o(e,t))return h(f,"normal",!1)}))}},1441:function(t,e,r){"use strict";var n=r(1302),o=r(1303),c=r(1352),l=r(1311),d=r(679),h=o.add,f=o.has,v=o.remove;t.exports=function(t){var e=n(this),r=l(t).getIterator(),o=c(e);return d(r,(function(t){f(e,t)?v(o,t):h(o,t)})),o}},1442:function(t,e,r){"use strict";var n=r(1302),o=r(1303).add,c=r(1352),l=r(1311),d=r(679);t.exports=function(t){var e=n(this),r=l(t).getIterator(),h=c(e);return d(r,(function(t){o(h,t)})),h}},1478:function(t,e,r){"use strict";function n(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"index";if(t&&t.dataset)return t.dataset[e]||n(t.parentNode)}r.d(e,"a",(function(){return n}))},1563:function(t,e,r){var content=r(1830);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,r(6).default)("7c40a600",content,!0,{sourceMap:!1})},1759:function(t,e,r){"use strict";var n=r(12),o=r(1985).start;n({target:"String",proto:!0,forced:r(1986)},{padStart:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},1829:function(t,e,r){"use strict";r(1563)},1830:function(t,e,r){var n=r(5)((function(i){return i[1]}));n.push([t.i,".c-common-rank-index{display:inline-block;height:20px;line-height:20px;position:relative;text-align:center;width:20px}.c-common-rank-index img{height:20px;inset-inline-start:2px;position:absolute;top:0;width:15px}.c-common-rank-index span{color:var(--text-aeb0b3);font-weight:700}",""]),n.locals={},t.exports=n},1864:function(t,e,r){"use strict";r(1759);var n={props:{index:{type:Number,default:1}},computed:{_index(){return String(this.index).padStart(2,"0")}}},o=(r(1829),r(0)),component=Object(o.a)(n,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-common-rank-index"},[1===t.index?e("img",{attrs:{src:"/assets/img/common/rank1.svg"}}):t._e(),t._v(" "),2===t.index?e("img",{attrs:{src:"/assets/img/common/rank2.svg"}}):t._e(),t._v(" "),3===t.index?e("img",{attrs:{src:"/assets/img/common/rank3.svg"}}):t._e(),t._v(" "),e("span",{staticClass:"font-w700",class:{"text-db5541":1===t.index||2===t.index,"text-f38b2c":3===t.index}},[t._v(t._s(t._index))])])}),[],!1,null,null,null);e.a=component.exports},1985:function(t,e,r){"use strict";var n=r(14),o=r(69),c=r(37),l=r(688),d=r(58),h=n(l),f=n("".slice),v=Math.ceil,m=function(t){return function(e,r,n){var l,m,_=c(d(e)),x=o(r),y=_.length,k=void 0===n?" ":c(n);return x<=y||""===k?_:((m=h(k,v((l=x-y)/k.length))).length>l&&(m=f(m,0,l)),t?_+m:m+_)}};t.exports={start:m(!1),end:m(!0)}},1986:function(t,e,r){"use strict";var n=r(113);t.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(n)},2391:function(t,e,r){"use strict";var n=r(1),o=r(3),c=(r(29),r(8));function l(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function d(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?l(Object(r),!0).forEach((function(e){Object(o.a)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var h={props:{coin:{type:String,default:""}},data:()=>({loading:!1}),computed:d(d({},Object(c.d)(["markets"])),{},{isCopyTrading(){return this.$isCopyTrading.contract},favDict(){return(this.$utils._get(this.markets,"favTokenArr")||[]).reduce(((t,e)=>(t[e.asset]=!0,t)),{})}}),mounted(){this.debounceFollow=this.$utils._debounce((t=>{this.toggleFav(t)}),500,{leading:!0,trailing:!1})},methods:{toggleFav(t){var e=this;return Object(n.a)((function*(){if(e.$logined){if(!e.loading){e.loading=!0;var r=null;r=!e.isFav(t)?e.$api.quotes.favorite.putAssets({assets:[t]}):e.$api.quotes.favorite.deleteAssets({asset:t});try{var{data:data}=yield r;0===data.code?(yield e.$store.dispatch("markets/updateFavTokens"),e.$store.dispatch("market/common/getFollowMarket",{trade_type:"spot",isCopyTrading:e.isCopyTrading}),e.$store.dispatch("market/common/getFollowMarket",{trade_type:"direct_perpetual",isCopyTrading:e.isCopyTrading})):e.$viaTip.error(data.message),e.loading=!1}catch(t){e.loading=!1,e.$viaTip.error({message:e.$globalT("busy"),showId:"busy"})}}}else e.$router.redirectSign()}))()},isFav(t){return!!(this.favDict||{})[t]}}},f=(r(6521),r(0)),component=Object(f.a)(h,(function(){var t=this,e=t._self._c;return e("span",{staticClass:"c-market-follow-icon"},[e("i",{staticClass:"iconfont icon-star text-16 cursor-pointer",class:t.isFav(t.coin)?"active":"text-f2f2f2",on:{click:function(e){return e.preventDefault(),e.stopPropagation(),t.debounceFollow(t.coin)}}})])}),[],!1,null,null,null);e.a=component.exports},2851:function(t,e,r){"use strict";var n=r(3),o=(r(18),r(1322),r(1323),r(1324),r(1325),r(1326),r(1327),r(1328),r(1329),r(1330),r(1331),r(1332),r(1333),r(1334),r(1335),r(1336),r(1337),r(20),r(9),r(8)),c=r(1316),l=r(1),d=r(1864),h=r(2391),f=r(6523);function v(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}var m={components:{RankIndex:d.a,FollowIcon:h.a},data:()=>({trending:[],submitting:!1}),computed:function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?v(Object(r),!0).forEach((function(e){Object(n.a)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):v(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},Object(o.d)({assetInfoDict:t=>t.asset.assetInfoDict||{}})),mounted(){this.getTrending(),this.$logined&&this.$store.dispatch("markets/updateFavTokens")},methods:{getTrending(){var t=this;return Object(l.a)((function*(){try{var e,r,n=yield t.$api.quotes.asset.getTrending();0===(null==n||null===(e=n.data)||void 0===e?void 0:e.code)?t.trending=n.data.data.slice(0,12):null!=n&&null!==(r=n.data)&&void 0!==r&&r.message&&t.$viaTip.error(n.data.message)}catch(e){t.$viaTip.error({message:t.$globalT("busy"),showId:"busy"})}}))()},getFullName(t){var e;return(null===(e=this.assetInfoDict)||void 0===e||null===(e=e[t])||void 0===e?void 0:e.fullName)||""},handleClickItem(t){this.$store.dispatch("quotes/postClick",{value:t.asset,search_type:"asset"}),this.$router.push("/info/".concat(t.asset)),this.$emit("onClickItem"),"markets-type"===this.$route.name&&this.$viaTrack.send("hot-coin-search-click")}}};m.methods?Object.assign(m.methods,{$VCoinTrending(t,e){var r=f;if(!this.$lang&&!r.zh_Hans_CN)return e||t;var n=r[this.$lang]||r.zh_Hans_CN||{};return void 0===n[t]?e||t:n[t]}}):m.methods={$VCoinTrending(t,e){var r=f;if(!this.$lang&&!r.zh_Hans_CN)return e||t;var n=r[this.$lang]||r.zh_Hans_CN||{};return void 0===n[t]?e||t:n[t]}};var _=m,x=(r(6524),r(0)),y=Object(x.a)(_,(function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"c-market-coin-trending"},[e("div",{staticClass:"px-15 py-10 flex items-center"},[e("i",{staticClass:"iconfont icon-fire text-f38b2c"}),t._v(" "),e("span",{staticClass:"text-27282c font-w500 ms-5"},[t._v(t._s(t.$VCoinTrending("热门搜索")))])]),t._v(" "),e("div",{staticClass:"pb-10"},t._l(t.trending,(function(r){return e("div",{key:r.asset,staticClass:"coin-item",on:{click:function(e){return t.handleClickItem(r)}}},[e("RankIndex",{attrs:{index:r.rank}}),t._v(" "),e("span",{staticClass:"ms-15 text-27282c"},[t._v(t._s(r.asset))]),t._v(" "),e("span",{staticClass:"asset-full-name"},[t._v(t._s(t.getFullName(r.asset)))]),t._v(" "),e("FollowIcon",{attrs:{coin:r.asset}})],1)})),0)])}),[],!1,null,null,null).exports,k=r(394),w=r(1478),C=r(1304),O=r(6526);function S(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function j(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?S(Object(r),!0).forEach((function(e){Object(n.a)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):S(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var $={components:{Popper:c.default,CoinTrending:y,CoinLogo:k.a,SubNum:C.a},data:()=>({visible:!1,searchValue:"",inputActive:!1,tab:"coin"}),computed:j(j(j(j({},Object(o.d)(["asset","coin"])),Object(o.d)({isMobile:t=>{var e;return null===(e=t.responsive)||void 0===e||null===(e=e.screens)||void 0===e?void 0:e.md}})),Object(o.d)({asset:t=>t.asset,coin:t=>t.coin,markets:t=>{var e;return(null===(e=t.market)||void 0===e||null===(e=e.spot)||void 0===e?void 0:e.markets)||[]},marketInfoDict:t=>{var e;return(null===(e=t.market)||void 0===e||null===(e=e.spot)||void 0===e?void 0:e.infoDict)||{}},marketStatus:t=>{var e;return(null===(e=t.market)||void 0===e||null===(e=e.spot)||void 0===e?void 0:e.status)||{}},futureMarkets:t=>{var e;return(null===(e=t.market)||void 0===e||null===(e=e.contract)||void 0===e?void 0:e.markets)||[]},futureMarketStatus:t=>{var e;return(null===(e=t.market)||void 0===e||null===(e=e.contract)||void 0===e?void 0:e.status)||{}}})),{},{coinFilter(){var t=this.searchValue.toUpperCase();if(!t)return[];var e=this.asset.assetTypes||[],r=this.coin.idmap||{},n=e.filter((e=>e[0]&&r[e[0]]&&-1!==e[0].indexOf(t))),o=new Set(n.map((t=>t[0]))),c=e.filter((e=>!(!e[0]||!e[1])&&(r[e[0]]&&!o.has(e[0])&&-1!==e[1].toUpperCase().indexOf(t))));return this.$helpers.market.searchListSort(n,t,0).concat(this.$helpers.market.searchListSort(c,t,1))},spotFilter(){var t=this.searchValue.toUpperCase();if(!t)return[];var e=this.markets.map((t=>j(j({},this.marketInfoDict[t]),this.marketStatus[t]))).filter((e=>-1!==e.sell_asset_type.toUpperCase().indexOf(t)));return this.$helpers.market.searchListSort(e,t,"sell_asset_type")},futuresFilter(){var t=this.searchValue.toUpperCase();if(!t)return[];var e=this.futureMarkets.map((t=>j(j({},t),this.futureMarketStatus[t.name]))).filter((e=>-1!==e.stock.toUpperCase().indexOf(t)));return this.$helpers.market.searchListSort(e,t,"stock")}}),watch:{visible(t){t||this.inputActive||(this.searchValue=""),t||this.$emit("hiddenPopper")},searchValue(t){t&&(this.visible=!0)}},created(){this.visible=!1},mounted(){var t;null!==(t=this.asset)&&void 0!==t&&null!==(t=t.assetTypes)&&void 0!==t&&t.length||this.$store.dispatch("asset/updateAssetSetting").catch((()=>{})),this.coin.idmap||this.$store.dispatch("coin/updateCoinIdmap").catch((()=>{})),this.$store.dispatch("market/spot/initConfig"),this.futureMarkets.length||this.$store.dispatch("market/contract/updateMarkets")},methods:{onBlur(){this.inputActive=!1},onFocus(){console.log(this.visible,"visible"),this.inputActive=!0,this.visible=!0},handleTabChange(t){this.tab=t,this.$refs.refWrapper.scrollTop=0},handleClickCoin(t){var e=Object(w.a)(t.target);if(e){"markets-type"===this.$route.name&&this.$viaTrack.send("hot-coin-search-click");var r=this.coinFilter[e][0];r&&(this.$helpers.trade.analytics.reportBrowserBehavior({asset:[r],type:"info",scene:"click"}),this.visible=!1,this.$store.dispatch("quotes/postClick",{value:r,search_type:"asset"}),this.$router.push("/info/".concat(r)))}},handleClickSpot(t){var e=Object(w.a)(t.target);if(e){var r=this.spotFilter[e],base=r.sell_asset_type.toLowerCase(),n=r.buy_asset_type.toLowerCase();this.$helpers.trade.analytics.reportBrowserBehavior({asset:[base,n],type:"spot",scene:"click"}),this.visible=!1,this.$router.push("/exchange/".concat(base,"-").concat(n))}},handleClickFuture(t){var e=Object(w.a)(t.target);if(e){var r=this.futuresFilter[e],base=r.stock.toLowerCase(),n=r.money.toLowerCase();this.$helpers.trade.analytics.reportBrowserBehavior({asset:[base,n],type:"perpetual",scene:"click"}),this.visible=!1,this.$router.push("/futures/".concat(base,"-").concat(n))}},getChangeRateClass(t){var e=t?t.decimalCmp(0):0;return e>0?"text-0ead98":e<0?"text-db5541":"text-b4b7bd"}}};$.methods?Object.assign($.methods,{$VSearch(t,e){var r=O;if(!this.$lang&&!r.zh_Hans_CN)return e||t;var n=r[this.$lang]||r.zh_Hans_CN||{};return void 0===n[t]?e||t:n[t]}}):$.methods={$VSearch(t,e){var r=O;if(!this.$lang&&!r.zh_Hans_CN)return e||t;var n=r[this.$lang]||r.zh_Hans_CN||{};return void 0===n[t]?e||t:n[t]}};var T=$,P=(r(6527),Object(x.a)(T,(function(){var t=this,e=t._self._c;t._self._setupProxy;return e("Popper",{staticClass:"c-market-search",attrs:{"same-width":t.isMobile,delay:500,placement:"bottom"},model:{value:t.visible,callback:function(e){t.visible=e},expression:"visible"}},[e("via-input",{ref:"refInput",staticClass:"search-input dark:shadow-none",class:{"input-active":t.visible},attrs:{placeholder:t.$VSearch("搜索"),clearable:""},on:{blur:t.onBlur,focus:t.onFocus},model:{value:t.searchValue,callback:function(e){t.searchValue=e},expression:"searchValue"}},[e("i",{staticClass:"iconfont icon-search2 text-24 text-707580",attrs:{slot:"prefix"},slot:"prefix"})]),t._v(" "),e("div",{staticClass:"popper-content",attrs:{slot:"popper"},slot:"popper"},[t.searchValue?[e("div",{staticClass:"tabs-wrapper"},[e("div",{staticClass:"tab",class:{active:"coin"===t.tab},on:{click:function(e){return t.handleTabChange("coin")}}},[e("span",[t._v(t._s(t.$VSearch("币种")))]),e("span",[t._v("("+t._s(t.coinFilter.length)+")")])]),t._v(" "),e("div",{staticClass:"tab",class:{active:"spot"===t.tab},on:{click:function(e){return t.handleTabChange("spot")}}},[e("span",[t._v(t._s(t.$VSearch("币币")))]),e("span",[t._v("("+t._s(t.spotFilter.length)+")")])]),t._v(" "),e("div",{staticClass:"tab",class:{active:"futures"===t.tab},on:{click:function(e){return t.handleTabChange("futures")}}},[e("span",[t._v(t._s(t.$VSearch("合约")))]),e("span",[t._v("("+t._s(t.futuresFilter.length)+")")])])]),t._v(" "),e("div",{ref:"refWrapper",staticClass:"list-wrapper"},["coin"===t.tab?[t.coinFilter.length>0?e("div",{on:{click:t.handleClickCoin}},t._l(t.coinFilter,(function(r,n){return e("div",{key:r[0],staticClass:"search-item flex items-center",attrs:{"data-index":n}},[e("CoinLogo",{attrs:{coin:r[0],size:24}}),t._v(" "),e("span",{staticClass:"ms-8 font-w700"},[t._v(t._s(r[0]))]),t._v(" "),e("span",{staticClass:"ms-12 text-b4b7bd text-12 truncate"},[t._v(t._s(r[1]))])],1)})),0):e("div",{staticClass:"coin-empty-tip"},[e("p",{staticClass:"text-27282c text-14 px-10 text-center"},[t._v(t._s(t.$VSearch("未搜索到相关币种")))]),t._v(" "),e("via-link",{attrs:{to:"/apply/create",target:"_blank",rel:"noopener noreferrer"}},[e("via-button",{staticClass:"mt-8",staticStyle:{"min-width":"78px"}},[t._v(t._s(t.$VSearch("申请上币")))])],1)],1)]:t._e(),t._v(" "),"spot"===t.tab?e("div",{on:{click:t.handleClickSpot}},t._l(t.spotFilter,(function(r,n){return e("div",{key:r.market,staticClass:"search-item flex items-center justify-between",attrs:{"data-index":n}},[e("div",{staticClass:"font-w700"},[e("span",[t._v(t._s(r.sell_asset_type))]),t._v("/"),e("span",{staticClass:"text-707580"},[t._v(t._s(r.buy_asset_type))])]),t._v(" "),e("div",{staticClass:"text-end"},[r.last?e("SubNum",{staticClass:"font-w700",attrs:{value:r.last.decimalRound(r.buy_asset_type_places||8,!0).decimalComma()}}):e("div",[t._v("--")]),t._v(" "),r.change?e("div",{staticClass:"text-12 rtl:unicode-plain",class:t.getChangeRateClass(r.change)},[t._v("\n                "+t._s(r.change.decimalPercent(2,!0,0,!0))+"\n              ")]):e("div",[t._v("--")])],1)])})),0):t._e(),t._v(" "),"futures"===t.tab?e("div",{on:{click:t.handleClickFuture}},t._l(t.futuresFilter,(function(r,n){return e("div",{key:r.name,staticClass:"search-item flex items-center justify-between",attrs:{"data-index":n}},[e("div",{staticClass:"font-w700"},[e("span",[t._v(t._s(r.name))])]),t._v(" "),e("div",{staticClass:"text-end"},[r.last?e("SubNum",{staticClass:"font-w700",attrs:{value:r.last.decimalRound(r.money_prec||8,!0).decimalComma()}}):e("div",[t._v("--")]),t._v(" "),r.change?e("div",{staticClass:"text-12 rtl:unicode-plain",class:t.getChangeRateClass(r.change)},[t._v("\n                "+t._s(r.change.decimalPercent(2,!0,0,!0))+"\n              ")]):e("div",[t._v("--")])],1)])})),0):t._e()],2)]:t._e(),t._v(" "),e("CoinTrending",{directives:[{name:"show",rawName:"v-show",value:!t.searchValue,expression:"!searchValue"}],on:{onClickItem:function(e){t.visible=!1}}})],2)],1)}),[],!1,null,null,null));e.a=P.exports},3732:function(t,e,r){var content=r(6522);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,r(6).default)("7a7cee0c",content,!0,{sourceMap:!1})},3733:function(t,e,r){var content=r(6525);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,r(6).default)("1b46233a",content,!0,{sourceMap:!1})},3734:function(t,e,r){var content=r(6528);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,r(6).default)("c3d12834",content,!0,{sourceMap:!1})},6521:function(t,e,r){"use strict";r(3732)},6522:function(t,e,r){var n=r(5)((function(i){return i[1]}));n.push([t.i,".c-market-follow-icon i.iconfont{color:var(--text-f2f2f2);cursor:pointer}.c-market-follow-icon i.iconfont.active{color:var(--text-f38b2c)}",""]),n.locals={},t.exports=n},6523:function(t){t.exports=JSON.parse('{"ach_UG":{"热门搜索":"热门搜索"},"ar_AE":{"热门搜索":"أهم عمليات البحث"},"de_DE":{"热门搜索":"Top Suchanfragen"},"en_US":{"热门搜索":"Top Searches"},"es_ES":{"热门搜索":"Principales búsquedas"},"fa_IR":{"热门搜索":"جستجوهای برتر"},"fr_FR":{"热门搜索":"Top Recherches"},"id_ID":{"热门搜索":"Terpopuler"},"it_IT":{"热门搜索":"Ricerche popolari"},"ja_JP":{"热门搜索":"検索トップ"},"ko_KP":{"热门搜索":"인기 검색"},"pl_PL":{"热门搜索":"Najczęściej wyszukiwane"},"pt_PT":{"热门搜索":"Mais buscados"},"ru_KZ":{"热门搜索":"В тренде"},"th_TH":{"热门搜索":"การค้นหายอดนิยม"},"tr_TR":{"热门搜索":"Popüler Aramalar"},"vi_VN":{"热门搜索":"Tìm kiếm hàng đầu"},"zh_Hans_CN":{"热门搜索":"热门搜索"},"zh_Hant_HK":{"热门搜索":"熱門搜索"}}')},6524:function(t,e,r){"use strict";r(3733)},6525:function(t,e,r){var n=r(5)((function(i){return i[1]}));n.push([t.i,".c-market-coin-trending{border-radius:4px;width:260px}.c-market-coin-trending .coin-item{align-items:center;cursor:pointer;display:flex;padding:7px 15px;padding-inline-end:40px;position:relative}.c-market-coin-trending .coin-item:hover{background:var(--text-f7f8fa)}.c-market-coin-trending .coin-item .asset-full-name{color:var(--text-aeb0b3);font-size:12px;margin-inline-start:20px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.c-market-coin-trending .coin-item .icon-star{color:var(--text-f2f2f2);inset-inline-end:15px;position:absolute;top:0}.c-market-coin-trending .coin-item .icon-star.active{color:var(--text-f38b2c)}",""]),n.locals={},t.exports=n},6526:function(t){t.exports=JSON.parse('{"ach_UG":{"合约":"合约","币币":"币币","币种":"币种","搜索":"搜索","未搜索到相关币种":"未搜索到相关币种","申请上币":"申请上币"},"ar_AE":{"合约":"العقود الآجلة","币币":"فوري","币种":"العملة","搜索":"بحث","未搜索到相关币种":"لم يتم العثور على عملة ذات صلة","申请上币":"تقدم بطلب للإدراج"},"de_DE":{"合约":"Futures","币币":"Spot","币种":"Coin","搜索":"Suche","未搜索到相关币种":"Es wurde kein passender Coin oder Token gefunden","申请上币":"Listing beantragen"},"en_US":{"合约":"Futures","币币":"Spot","币种":"Coin","搜索":"Search","未搜索到相关币种":"No relevant coin or token was found","申请上币":"Apply for Listing"},"es_ES":{"合约":"Futuros","币币":"Spot","币种":"Moneda","搜索":"Buscar","未搜索到相关币种":"No se encuentró ninguna moneda o token relacionado","申请上币":"Solicitud de listado"},"fa_IR":{"合约":"بازار","币币":"اسپات","币种":"کوین","搜索":"جستجو","未搜索到相关币种":"کوین مربوطه پیدا نشد","申请上币":"درخواست لیست توکن"},"fr_FR":{"合约":"Futures","币币":"Spot","币种":"Devises","搜索":"Rechercher","未搜索到相关币种":"Aucune devise pertinente n\'a été trouvée","申请上币":"Demande de mise en ligne de la devise"},"id_ID":{"合约":"Futures","币币":"Spot","币种":"Koin","搜索":"Cari","未搜索到相关币种":"Tidak ada koin atau token yang relevan","申请上币":"Ajukan pendaftaran"},"it_IT":{"合约":"Futures","币币":"Spot","币种":"Moneta","搜索":"Cerca","未搜索到相关币种":"Non è stato trovato nessun token o moneta pertinente","申请上币":"Fai richiesta di quotazione"},"ja_JP":{"合约":"先物","币币":"取引","币种":"コインリスト","搜索":"検索する","未搜索到相关币种":"関連通貨を検索できない","申请上币":"上場申請"},"ko_KP":{"合约":"선물","币币":"현물","币种":"코인","搜索":"검색","未搜索到相关币种":"관련 코인이나 토큰이 없습니다.","申请上币":"상장 신청"},"pl_PL":{"合约":"Futures","币币":"Spot","币种":"Moneta","搜索":"Szukaj","未搜索到相关币种":"Nie znaleziono stosownej monety lub tokena.","申请上币":"Złóż wniosek o notowanie"},"pt_PT":{"合约":"Futuros","币币":"Spot","币种":"Cripto","搜索":"Pesquisar","未搜索到相关币种":"Cripto relacionada não foi encontrada","申请上币":"Candidate-se à Lista"},"ru_KZ":{"合约":"Фьючерсы","币币":"Спот","币种":"Монета","搜索":"Поиск","未搜索到相关币种":"Соответствующий актив не найден","申请上币":"Подать заявку на листинг"},"th_TH":{"合约":"Futures","币币":"Spot","币种":"สกุลเงิน","搜索":"ค้นหา","未搜索到相关币种":"ไม่พบสกุลเงินที่เกี่ยวข้อง","申请上币":"สมัครลิสต์เหรียญ"},"tr_TR":{"合约":"Vadeli","币币":"Spot","币种":"Coinler","搜索":"Ara","未搜索到相关币种":"İlgili coin/token bulunamadı","申请上币":"Listeleme için başvur"},"vi_VN":{"合约":"Futures","币币":"Spot","币种":"Loại coin","搜索":"Tìm","未搜索到相关币种":"Không tìm thấy loại tiền tệ liên quan","申请上币":"Yêu cầu lên sàn"},"zh_Hans_CN":{"合约":"合约","币币":"币币","币种":"币种","搜索":"搜索","未搜索到相关币种":"未搜索到相关币种","申请上币":"申请上币"},"zh_Hant_HK":{"合约":"合約","币币":"幣幣","币种":"幣種","搜索":"搜索","未搜索到相关币种":"未搜索到相關幣種","申请上币":"申請上幣"}}')},6527:function(t,e,r){"use strict";r(3734)},6528:function(t,e,r){var n=r(5)((function(i){return i[1]}));n.push([t.i,".c-market-search{position:relative}.c-market-search .search-input{border:1px solid transparent!important;border-radius:8px!important;box-shadow:0 4px 8px rgba(198,203,216,.2);transition:all .2s;width:300px}.c-market-search .search-input.input-active,.c-market-search .search-input:hover{border:1px solid var(--text-0ead98)!important}.c-market-search .search-input.input-active{width:320px}@media (max-width:768px){.c-market-search .search-input,.c-market-search .search-input.input-active{width:100%}}.c-market-search .c-common-popper-container{inset:auto!important;inset-inline-end:0!important;transform:translate(0)!important;width:320px!important}@media (max-width:768px){.c-market-search .c-common-popper-container{width:100%!important}}.c-market-search .popper-content{background:var(--bg-ffffff);border-radius:8px;box-shadow:0 8px 12px rgba(49,50,55,.05)!important;max-height:476px;overflow:hidden auto}@media (max-width:768px){.c-market-search .popper-content{width:auto}}.c-market-search .tabs-wrapper{align-items:center;border-bottom:1px solid var(--border-e6e7eb);display:flex;height:47px;justify-content:space-between;padding:0 20px}.c-market-search .tabs-wrapper .tab{color:var(--text-707580);cursor:pointer}.c-market-search .tabs-wrapper .tab.active{color:var(--text-3a3d42);font-weight:700}.c-market-search .list-wrapper{height:300px;overflow-y:auto}.c-market-search .search-item{color:var(--text-161719);cursor:pointer;height:50px;padding:0 20px}.c-market-search .search-item:hover{background:var(--text-f7f8fa)}.c-market-search .coin-empty-tip{align-items:center;display:flex;flex-direction:column;justify-content:center;min-height:150px}.c-market-search .c-market-coin-trending{max-height:none;width:auto}.theme-night .c-market-search .popper-content{background:#2c3038}",""]),n.locals={},t.exports=n}}]);