/*! For license information please see LICENSES */
(window.webpackJsonp=window.webpackJsonp||[]).push([[43],{1138:function(e,t,n){"use strict";n(0)(t,"__esModule",{value:!0}),t.default=void 0;t.default=[{path:"",oldAppObj:{method:"goRootController",param:"home"}},{path:"login",oldAppObj:{method:"goLogin",param:"login"},newAppObj:{func:"gotoLogin"}},{path:"register",oldAppObj:{method:"gotoRegPage",param:null}},{path:"asset/recharge",oldAppObj:{method:"goRootController",param:"asset"},newAppObj:{func:"gotoAssetRecharge",coinId:""}},{path:"share",oldAppObj:{method:"gotoShare",param:null}},{path:"kyc",oldAppObj:{method:"goRealName",param:""}},{path:"asset/transfer",oldAppObj:{method:"gotoTransfer",param:null}},{path:"futures/BTC-USDT",oldAppObj:{method:"goRootController",param:"newContract"}}]},1172:function(e,t,n){"use strict";var r,o,l,c,d=n(1),f=d(n(12)),h=d(n(15));l=void 0,c=function(){var e=function(e,t){e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]],t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]];var n=[0,0,0,0];return n[3]+=e[3]+t[3],n[2]+=n[3]>>>16,n[3]&=65535,n[2]+=e[2]+t[2],n[1]+=n[2]>>>16,n[2]&=65535,n[1]+=e[1]+t[1],n[0]+=n[1]>>>16,n[1]&=65535,n[0]+=e[0]+t[0],n[0]&=65535,[n[0]<<16|n[1],n[2]<<16|n[3]]},t=function(e,t){e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]],t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]];var n=[0,0,0,0];return n[3]+=e[3]*t[3],n[2]+=n[3]>>>16,n[3]&=65535,n[2]+=e[2]*t[3],n[1]+=n[2]>>>16,n[2]&=65535,n[2]+=e[3]*t[2],n[1]+=n[2]>>>16,n[2]&=65535,n[1]+=e[1]*t[3],n[0]+=n[1]>>>16,n[1]&=65535,n[1]+=e[2]*t[2],n[0]+=n[1]>>>16,n[1]&=65535,n[1]+=e[3]*t[1],n[0]+=n[1]>>>16,n[1]&=65535,n[0]+=e[0]*t[3]+e[1]*t[2]+e[2]*t[1]+e[3]*t[0],n[0]&=65535,[n[0]<<16|n[1],n[2]<<16|n[3]]},n=function(e,t){return 32==(t%=64)?[e[1],e[0]]:t<32?[e[0]<<t|e[1]>>>32-t,e[1]<<t|e[0]>>>32-t]:(t-=32,[e[1]<<t|e[0]>>>32-t,e[0]<<t|e[1]>>>32-t])},r=function(e,t){return 0==(t%=64)?e:t<32?[e[0]<<t|e[1]>>>32-t,e[1]<<t]:[e[1]<<t-32,0]},o=function(e,t){return[e[0]^t[0],e[1]^t[1]]},l=function(e){return e=o(e,[0,e[0]>>>1]),e=t(e,[4283543511,3981806797]),e=o(e,[0,e[0]>>>1]),e=t(e,[3301882366,444984403]),e=o(e,[0,e[0]>>>1])},c=function(c,d){d=d||0;for(var f=(c=c||"").length%16,h=c.length-f,h1=[0,d],h2=[0,d],m=[0,0],v=[0,0],w=[2277735313,289559509],_=[1291169091,658871167],i=0;i<h;i+=16)m=[255&c.charCodeAt(i+4)|(255&c.charCodeAt(i+5))<<8|(255&c.charCodeAt(i+6))<<16|(255&c.charCodeAt(i+7))<<24,255&c.charCodeAt(i)|(255&c.charCodeAt(i+1))<<8|(255&c.charCodeAt(i+2))<<16|(255&c.charCodeAt(i+3))<<24],v=[255&c.charCodeAt(i+12)|(255&c.charCodeAt(i+13))<<8|(255&c.charCodeAt(i+14))<<16|(255&c.charCodeAt(i+15))<<24,255&c.charCodeAt(i+8)|(255&c.charCodeAt(i+9))<<8|(255&c.charCodeAt(i+10))<<16|(255&c.charCodeAt(i+11))<<24],m=t(m,w),m=n(m,31),m=t(m,_),h1=o(h1,m),h1=n(h1,27),h1=e(h1,h2),h1=e(t(h1,[0,5]),[0,1390208809]),v=t(v,_),v=n(v,33),v=t(v,w),h2=o(h2,v),h2=n(h2,31),h2=e(h2,h1),h2=e(t(h2,[0,5]),[0,944331445]);switch(m=[0,0],v=[0,0],f){case 15:v=o(v,r([0,c.charCodeAt(i+14)],48));case 14:v=o(v,r([0,c.charCodeAt(i+13)],40));case 13:v=o(v,r([0,c.charCodeAt(i+12)],32));case 12:v=o(v,r([0,c.charCodeAt(i+11)],24));case 11:v=o(v,r([0,c.charCodeAt(i+10)],16));case 10:v=o(v,r([0,c.charCodeAt(i+9)],8));case 9:v=o(v,[0,c.charCodeAt(i+8)]),v=t(v,_),v=n(v,33),v=t(v,w),h2=o(h2,v);case 8:m=o(m,r([0,c.charCodeAt(i+7)],56));case 7:m=o(m,r([0,c.charCodeAt(i+6)],48));case 6:m=o(m,r([0,c.charCodeAt(i+5)],40));case 5:m=o(m,r([0,c.charCodeAt(i+4)],32));case 4:m=o(m,r([0,c.charCodeAt(i+3)],24));case 3:m=o(m,r([0,c.charCodeAt(i+2)],16));case 2:m=o(m,r([0,c.charCodeAt(i+1)],8));case 1:m=o(m,[0,c.charCodeAt(i)]),m=t(m,w),m=n(m,31),m=t(m,_),h1=o(h1,m)}return h1=o(h1,[0,c.length]),h2=o(h2,[0,c.length]),h1=e(h1,h2),h2=e(h2,h1),h1=l(h1),h2=l(h2),h1=e(h1,h2),h2=e(h2,h1),("00000000"+(h1[0]>>>0).toString(16)).slice(-8)+("00000000"+(h1[1]>>>0).toString(16)).slice(-8)+("00000000"+(h2[0]>>>0).toString(16)).slice(-8)+("00000000"+(h2[1]>>>0).toString(16)).slice(-8)},d={preprocessor:null,audio:{timeout:1e3,excludeIOS11:!0},fonts:{swfContainerId:"fingerprintjs2",swfPath:"flash/compiled/FontList.swf",userDefinedFonts:[],extendedJsFonts:!1},screen:{detectScreenOrientation:!0},plugins:{sortPluginsFor:[/palemoon/i],excludeIE:!1},extraComponents:[],excludes:{enumerateDevices:!0,pixelRatio:!0,doNotTrack:!0,fontsFlash:!0},NOT_AVAILABLE:"not available",ERROR:"error",EXCLUDED:"excluded"},m=function(e,t){if(Array.prototype.forEach&&e.forEach===Array.prototype.forEach)e.forEach(t);else if(e.length===+e.length)for(var i=0,n=e.length;i<n;i++)t(e[i],i,e);else for(var r in e)e.hasOwnProperty(r)&&t(e[r],r,e)},map=function(e,t){var n=[];return null==e?n:Array.prototype.map&&e.map===Array.prototype.map?e.map(t):(m(e,(function(e,r,o){n.push(t(e,r,o))})),n)},v=function(){return navigator.mediaDevices&&navigator.mediaDevices.enumerateDevices},w=function(e){var t=[window.screen.width,window.screen.height];return e.screen.detectScreenOrientation&&t.sort().reverse(),t},_=function(e){if(window.screen.availWidth&&window.screen.availHeight){var t=[window.screen.availHeight,window.screen.availWidth];return e.screen.detectScreenOrientation&&t.sort().reverse(),t}return e.NOT_AVAILABLE},y=function(e){if(null==navigator.plugins)return e.NOT_AVAILABLE;for(var t=[],i=0,n=navigator.plugins.length;i<n;i++)navigator.plugins[i]&&t.push(navigator.plugins[i]);return T(e)&&(t=t.sort((function(a,b){return a.name>b.name?1:a.name<b.name?-1:0}))),map(t,(function(p){var e=map(p,(function(e){return[e.type,e.suffixes]}));return[p.name,p.description,e]}))},C=function(e){var t=[];return f.default&&(0,f.default)(window,"ActiveXObject")||"ActiveXObject"in window?t=map(["AcroPDF.PDF","Adodb.Stream","AgControl.AgControl","DevalVRXCtrl.DevalVRXCtrl.1","MacromediaFlashPaper.MacromediaFlashPaper","Msxml2.DOMDocument","Msxml2.XMLHTTP","PDF.PdfCtrl","QuickTime.QuickTime","QuickTimeCheckObject.QuickTimeCheck.1","RealPlayer","RealPlayer.RealPlayer(tm) ActiveX Control (32-bit)","RealVideo.RealVideo(tm) ActiveX Control (32-bit)","Scripting.Dictionary","SWCtl.SWCtl","Shell.UIHelper","ShockwaveFlash.ShockwaveFlash","Skype.Detection","TDCCtl.TDCCtl","WMPlayer.OCX","rmocx.RealPlayer G2 Control","rmocx.RealPlayer G2 Control.1"],(function(t){try{return new window.ActiveXObject(t),t}catch(t){return e.ERROR}})):t.push(e.NOT_AVAILABLE),navigator.plugins&&(t=t.concat(y(e))),t},T=function(e){for(var t=!1,i=0,n=e.plugins.sortPluginsFor.length;i<n;i++){var r=e.plugins.sortPluginsFor[i];if(navigator.userAgent.match(r)){t=!0;break}}return t},S=function(e){try{return!!window.sessionStorage}catch(t){return e.ERROR}},k=function(e){try{return!!window.localStorage}catch(t){return e.ERROR}},E=function(e){try{return!!window.indexedDB}catch(t){return e.ERROR}},x=function(e){return navigator.hardwareConcurrency?navigator.hardwareConcurrency:e.NOT_AVAILABLE},L=function(e){return navigator.cpuClass||e.NOT_AVAILABLE},A=function(e){return navigator.platform?navigator.platform:e.NOT_AVAILABLE},P=function(e){return navigator.doNotTrack?navigator.doNotTrack:navigator.msDoNotTrack?navigator.msDoNotTrack:window.doNotTrack?window.doNotTrack:e.NOT_AVAILABLE},O=function(){var e,t=0;void 0!==navigator.maxTouchPoints?t=navigator.maxTouchPoints:void 0!==navigator.msMaxTouchPoints&&(t=navigator.msMaxTouchPoints);try{document.createEvent("TouchEvent"),e=!0}catch(t){e=!1}return[t,e,"ontouchstart"in window]},I=function(e){var t=[],canvas=document.createElement("canvas");canvas.width=2e3,canvas.height=200,canvas.style.display="inline";var n=canvas.getContext("2d");return n.rect(0,0,10,10),n.rect(2,2,6,6),t.push("canvas winding:"+(!1===n.isPointInPath(5,5,"evenodd")?"yes":"no")),n.textBaseline="alphabetic",n.fillStyle="#f60",n.fillRect(125,1,62,20),n.fillStyle="#069",e.dontUseFakeFontInCanvas?n.font="11pt Arial":n.font="11pt no-real-font-123",n.fillText("Cwm fjordbank glyphs vext quiz, 😃",2,15),n.fillStyle="rgba(102, 204, 0, 0.2)",n.font="18pt Arial",n.fillText("Cwm fjordbank glyphs vext quiz, 😃",4,45),n.globalCompositeOperation="multiply",n.fillStyle="rgb(255,0,255)",n.beginPath(),n.arc(50,50,50,0,2*Math.PI,!0),n.closePath(),n.fill(),n.fillStyle="rgb(0,255,255)",n.beginPath(),n.arc(100,50,50,0,2*Math.PI,!0),n.closePath(),n.fill(),n.fillStyle="rgb(255,255,0)",n.beginPath(),n.arc(75,100,50,0,2*Math.PI,!0),n.closePath(),n.fill(),n.fillStyle="rgb(255,0,255)",n.arc(75,75,75,0,2*Math.PI,!0),n.arc(75,75,25,0,2*Math.PI,!0),n.fill("evenodd"),canvas.toDataURL&&t.push("canvas fp:"+canvas.toDataURL()),t},R=function(){var e,t=function(t){return e.clearColor(0,0,0,1),e.enable(e.DEPTH_TEST),e.depthFunc(e.LEQUAL),e.clear(e.COLOR_BUFFER_BIT|e.DEPTH_BUFFER_BIT),"["+t[0]+", "+t[1]+"]"};if(!(e=G()))return null;var n=[],r=e.createBuffer();e.bindBuffer(e.ARRAY_BUFFER,r);var o=new Float32Array([-.2,-.9,0,.4,-.26,0,0,.732134444,0]);e.bufferData(e.ARRAY_BUFFER,o,e.STATIC_DRAW),r.itemSize=3,r.numItems=3;var l=e.createProgram(),c=e.createShader(e.VERTEX_SHADER);e.shaderSource(c,"attribute vec2 attrVertex;varying vec2 varyinTexCoordinate;uniform vec2 uniformOffset;void main(){varyinTexCoordinate=attrVertex+uniformOffset;gl_Position=vec4(attrVertex,0,1);}"),e.compileShader(c);var d=e.createShader(e.FRAGMENT_SHADER);e.shaderSource(d,"precision mediump float;varying vec2 varyinTexCoordinate;void main() {gl_FragColor=vec4(varyinTexCoordinate,0,1);}"),e.compileShader(d),e.attachShader(l,c),e.attachShader(l,d),e.linkProgram(l),e.useProgram(l),l.vertexPosAttrib=e.getAttribLocation(l,"attrVertex"),l.offsetUniform=e.getUniformLocation(l,"uniformOffset"),e.enableVertexAttribArray(l.vertexPosArray),e.vertexAttribPointer(l.vertexPosAttrib,r.itemSize,e.FLOAT,!1,0,0),e.uniform2f(l.offsetUniform,1,1),e.drawArrays(e.TRIANGLE_STRIP,0,r.numItems);try{n.push(e.canvas.toDataURL())}catch(e){}n.push("extensions:"+(e.getSupportedExtensions()||[]).join(";")),n.push("webgl aliased line width range:"+t(e.getParameter(e.ALIASED_LINE_WIDTH_RANGE))),n.push("webgl aliased point size range:"+t(e.getParameter(e.ALIASED_POINT_SIZE_RANGE))),n.push("webgl alpha bits:"+e.getParameter(e.ALPHA_BITS)),n.push("webgl antialiasing:"+(e.getContextAttributes().antialias?"yes":"no")),n.push("webgl blue bits:"+e.getParameter(e.BLUE_BITS)),n.push("webgl depth bits:"+e.getParameter(e.DEPTH_BITS)),n.push("webgl green bits:"+e.getParameter(e.GREEN_BITS)),n.push("webgl max anisotropy:"+function(e){var t=e.getExtension("EXT_texture_filter_anisotropic")||e.getExtension("WEBKIT_EXT_texture_filter_anisotropic")||e.getExtension("MOZ_EXT_texture_filter_anisotropic");if(t){var n=e.getParameter(t.MAX_TEXTURE_MAX_ANISOTROPY_EXT);return 0===n&&(n=2),n}return null}(e)),n.push("webgl max combined texture image units:"+e.getParameter(e.MAX_COMBINED_TEXTURE_IMAGE_UNITS)),n.push("webgl max cube map texture size:"+e.getParameter(e.MAX_CUBE_MAP_TEXTURE_SIZE)),n.push("webgl max fragment uniform vectors:"+e.getParameter(e.MAX_FRAGMENT_UNIFORM_VECTORS)),n.push("webgl max render buffer size:"+e.getParameter(e.MAX_RENDERBUFFER_SIZE)),n.push("webgl max texture image units:"+e.getParameter(e.MAX_TEXTURE_IMAGE_UNITS)),n.push("webgl max texture size:"+e.getParameter(e.MAX_TEXTURE_SIZE)),n.push("webgl max varying vectors:"+e.getParameter(e.MAX_VARYING_VECTORS)),n.push("webgl max vertex attribs:"+e.getParameter(e.MAX_VERTEX_ATTRIBS)),n.push("webgl max vertex texture image units:"+e.getParameter(e.MAX_VERTEX_TEXTURE_IMAGE_UNITS)),n.push("webgl max vertex uniform vectors:"+e.getParameter(e.MAX_VERTEX_UNIFORM_VECTORS)),n.push("webgl max viewport dims:"+t(e.getParameter(e.MAX_VIEWPORT_DIMS))),n.push("webgl red bits:"+e.getParameter(e.RED_BITS)),n.push("webgl renderer:"+e.getParameter(e.RENDERER)),n.push("webgl shading language version:"+e.getParameter(e.SHADING_LANGUAGE_VERSION)),n.push("webgl stencil bits:"+e.getParameter(e.STENCIL_BITS)),n.push("webgl vendor:"+e.getParameter(e.VENDOR)),n.push("webgl version:"+e.getParameter(e.VERSION));try{var f=e.getExtension("WEBGL_debug_renderer_info");f&&(n.push("webgl unmasked vendor:"+e.getParameter(f.UNMASKED_VENDOR_WEBGL)),n.push("webgl unmasked renderer:"+e.getParameter(f.UNMASKED_RENDERER_WEBGL)))}catch(e){}return e.getShaderPrecisionFormat?(m(["FLOAT","INT"],(function(t){m(["VERTEX","FRAGMENT"],(function(r){m(["HIGH","MEDIUM","LOW"],(function(o){m(["precision","rangeMin","rangeMax"],(function(l){var c=e.getShaderPrecisionFormat(e[r+"_SHADER"],e[o+"_"+t])[l];"precision"!==l&&(l="precision "+l);var line=["webgl ",r.toLowerCase()," shader ",o.toLowerCase()," ",t.toLowerCase()," ",l,":",c].join("");n.push(line)}))}))}))})),n):n},B=function(){try{var e=G(),t=e.getExtension("WEBGL_debug_renderer_info");return e.getParameter(t.UNMASKED_VENDOR_WEBGL)+"~"+e.getParameter(t.UNMASKED_RENDERER_WEBGL)}catch(e){return null}},M=function(){var e=document.createElement("div");e.innerHTML="&nbsp;",e.className="adsbox";var t=!1;try{document.body.appendChild(e),t=0===document.getElementsByClassName("adsbox")[0].offsetHeight,document.body.removeChild(e)}catch(e){t=!1}return t},N=function(){if(void 0!==navigator.languages)try{if(navigator.languages[0].substr(0,2)!==navigator.language.substr(0,2))return!0}catch(e){return!0}return!1},D=function(){return window.screen.width<window.screen.availWidth||window.screen.height<window.screen.availHeight},F=function(){var e,t=navigator.userAgent.toLowerCase(),n=navigator.oscpu,r=navigator.platform.toLowerCase();if(e=t.indexOf("windows phone")>=0?"Windows Phone":t.indexOf("win")>=0?"Windows":t.indexOf("android")>=0?"Android":t.indexOf("linux")>=0||t.indexOf("cros")>=0?"Linux":t.indexOf("iphone")>=0||t.indexOf("ipad")>=0?"iOS":t.indexOf("mac")>=0?"Mac":"Other",("ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0)&&"Windows Phone"!==e&&"Android"!==e&&"iOS"!==e&&"Other"!==e)return!0;if(void 0!==n){if((n=n.toLowerCase()).indexOf("win")>=0&&"Windows"!==e&&"Windows Phone"!==e)return!0;if(n.indexOf("linux")>=0&&"Linux"!==e&&"Android"!==e)return!0;if(n.indexOf("mac")>=0&&"Mac"!==e&&"iOS"!==e)return!0;if((-1===n.indexOf("win")&&-1===n.indexOf("linux")&&-1===n.indexOf("mac"))!=("Other"===e))return!0}return r.indexOf("win")>=0&&"Windows"!==e&&"Windows Phone"!==e||(r.indexOf("linux")>=0||r.indexOf("android")>=0||r.indexOf("pike")>=0)&&"Linux"!==e&&"Android"!==e||(r.indexOf("mac")>=0||r.indexOf("ipad")>=0||r.indexOf("ipod")>=0||r.indexOf("iphone")>=0)&&"Mac"!==e&&"iOS"!==e||(r.indexOf("win")<0&&r.indexOf("linux")<0&&r.indexOf("mac")<0&&r.indexOf("iphone")<0&&r.indexOf("ipad")<0)!=("Other"===e)||void 0===navigator.plugins&&"Windows"!==e&&"Windows Phone"!==e},U=function(){var e,t=navigator.userAgent.toLowerCase(),n=navigator.productSub;if(("Chrome"==(e=t.indexOf("firefox")>=0?"Firefox":t.indexOf("opera")>=0||t.indexOf("opr")>=0?"Opera":t.indexOf("chrome")>=0?"Chrome":t.indexOf("safari")>=0?"Safari":t.indexOf("trident")>=0?"Internet Explorer":"Other")||"Safari"===e||"Opera"===e)&&"20030107"!==n)return!0;var r,o=eval.toString().length;if(37===o&&"Safari"!==e&&"Firefox"!==e&&"Other"!==e)return!0;if(39===o&&"Internet Explorer"!==e&&"Other"!==e)return!0;if(33===o&&"Chrome"!==e&&"Opera"!==e&&"Other"!==e)return!0;try{throw"a"}catch(e){try{e.toSource(),r=!0}catch(e){r=!1}}return r&&"Firefox"!==e&&"Other"!==e},W=function(){var e=document.createElement("canvas");return!(!e.getContext||!e.getContext("2d"))},H=function(){if(!W())return!1;var e=G();return!!window.WebGLRenderingContext&&!!e},V=function(){return"Microsoft Internet Explorer"===navigator.appName||!("Netscape"!==navigator.appName||!/Trident/.test(navigator.userAgent))},z=function(){return void 0!==window.swfobject},$=function(){return window.swfobject.hasFlashPlayerVersion("9.0.0")},j=function(e,t){var n="___fp_swf_loaded";window[n]=function(t){e(t)};var r=t.fonts.swfContainerId;!function(e){var t=document.createElement("div");t.setAttribute("id",e.fonts.swfContainerId),document.body.appendChild(t)}();var o={onReady:n};window.swfobject.embedSWF(t.fonts.swfPath,r,"1","1","9.0.0",!1,o,{allowScriptAccess:"always",menu:"false"},{})},G=function(){var canvas=document.createElement("canvas"),e=null;try{e=canvas.getContext("webgl")||canvas.getContext("experimental-webgl")}catch(e){}return e||(e=null),e},K=[{key:"userAgent",getData:function(e){e(navigator.userAgent)}},{key:"webdriver",getData:function(e,t){e(null==navigator.webdriver?t.NOT_AVAILABLE:navigator.webdriver)}},{key:"language",getData:function(e,t){e(navigator.language||navigator.userLanguage||navigator.browserLanguage||navigator.systemLanguage||t.NOT_AVAILABLE)}},{key:"colorDepth",getData:function(e,t){e(window.screen.colorDepth||t.NOT_AVAILABLE)}},{key:"deviceMemory",getData:function(e,t){e(navigator.deviceMemory||t.NOT_AVAILABLE)}},{key:"pixelRatio",getData:function(e,t){e(window.devicePixelRatio||t.NOT_AVAILABLE)}},{key:"hardwareConcurrency",getData:function(e,t){e(x(t))}},{key:"screenResolution",getData:function(e,t){e(w(t))}},{key:"availableScreenResolution",getData:function(e,t){e(_(t))}},{key:"timezoneOffset",getData:function(e){e((new Date).getTimezoneOffset())}},{key:"timezone",getData:function(e,t){window.Intl&&window.Intl.DateTimeFormat?e((new window.Intl.DateTimeFormat).resolvedOptions().timeZone):e(t.NOT_AVAILABLE)}},{key:"sessionStorage",getData:function(e,t){e(S(t))}},{key:"localStorage",getData:function(e,t){e(k(t))}},{key:"indexedDb",getData:function(e,t){e(E(t))}},{key:"addBehavior",getData:function(e){e(!(!document.body||!document.body.addBehavior))}},{key:"openDatabase",getData:function(e){e(!!window.openDatabase)}},{key:"cpuClass",getData:function(e,t){e(L(t))}},{key:"platform",getData:function(e,t){e(A(t))}},{key:"doNotTrack",getData:function(e,t){e(P(t))}},{key:"plugins",getData:function(e,t){V()?t.plugins.excludeIE?e(t.EXCLUDED):e(C(t)):e(y(t))}},{key:"canvas",getData:function(e,t){W()?e(I(t)):e(t.NOT_AVAILABLE)}},{key:"webgl",getData:function(e,t){H()?e(R()):e(t.NOT_AVAILABLE)}},{key:"webglVendorAndRenderer",getData:function(e){H()?e(B()):e()}},{key:"adBlock",getData:function(e){e(M())}},{key:"hasLiedLanguages",getData:function(e){e(N())}},{key:"hasLiedResolution",getData:function(e){e(D())}},{key:"hasLiedOs",getData:function(e){e(F())}},{key:"hasLiedBrowser",getData:function(e){e(U())}},{key:"touchSupport",getData:function(e){e(O())}},{key:"fonts",getData:function(e,t){var n=["monospace","sans-serif","serif"],r=["Andale Mono","Arial","Arial Black","Arial Hebrew","Arial MT","Arial Narrow","Arial Rounded MT Bold","Arial Unicode MS","Bitstream Vera Sans Mono","Book Antiqua","Bookman Old Style","Calibri","Cambria","Cambria Math","Century","Century Gothic","Century Schoolbook","Comic Sans","Comic Sans MS","Consolas","Courier","Courier New","Geneva","Georgia","Helvetica","Helvetica Neue","Impact","Lucida Bright","Lucida Calligraphy","Lucida Console","Lucida Fax","LUCIDA GRANDE","Lucida Handwriting","Lucida Sans","Lucida Sans Typewriter","Lucida Sans Unicode","Microsoft Sans Serif","Monaco","Monotype Corsiva","MS Gothic","MS Outlook","MS PGothic","MS Reference Sans Serif","MS Sans Serif","MS Serif","MYRIAD","MYRIAD PRO","Palatino","Palatino Linotype","Segoe Print","Segoe Script","Segoe UI","Segoe UI Light","Segoe UI Semibold","Segoe UI Symbol","Tahoma","Times","Times New Roman","Times New Roman PS","Trebuchet MS","Verdana","Wingdings","Wingdings 2","Wingdings 3"];t.fonts.extendedJsFonts&&(r=r.concat(["Abadi MT Condensed Light","Academy Engraved LET","ADOBE CASLON PRO","Adobe Garamond","ADOBE GARAMOND PRO","Agency FB","Aharoni","Albertus Extra Bold","Albertus Medium","Algerian","Amazone BT","American Typewriter","American Typewriter Condensed","AmerType Md BT","Andalus","Angsana New","AngsanaUPC","Antique Olive","Aparajita","Apple Chancery","Apple Color Emoji","Apple SD Gothic Neo","Arabic Typesetting","ARCHER","ARNO PRO","Arrus BT","Aurora Cn BT","AvantGarde Bk BT","AvantGarde Md BT","AVENIR","Ayuthaya","Bandy","Bangla Sangam MN","Bank Gothic","BankGothic Md BT","Baskerville","Baskerville Old Face","Batang","BatangChe","Bauer Bodoni","Bauhaus 93","Bazooka","Bell MT","Bembo","Benguiat Bk BT","Berlin Sans FB","Berlin Sans FB Demi","Bernard MT Condensed","BernhardFashion BT","BernhardMod BT","Big Caslon","BinnerD","Blackadder ITC","BlairMdITC TT","Bodoni 72","Bodoni 72 Oldstyle","Bodoni 72 Smallcaps","Bodoni MT","Bodoni MT Black","Bodoni MT Condensed","Bodoni MT Poster Compressed","Bookshelf Symbol 7","Boulder","Bradley Hand","Bradley Hand ITC","Bremen Bd BT","Britannic Bold","Broadway","Browallia New","BrowalliaUPC","Brush Script MT","Californian FB","Calisto MT","Calligrapher","Candara","CaslonOpnface BT","Castellar","Centaur","Cezanne","CG Omega","CG Times","Chalkboard","Chalkboard SE","Chalkduster","Charlesworth","Charter Bd BT","Charter BT","Chaucer","ChelthmITC Bk BT","Chiller","Clarendon","Clarendon Condensed","CloisterBlack BT","Cochin","Colonna MT","Constantia","Cooper Black","Copperplate","Copperplate Gothic","Copperplate Gothic Bold","Copperplate Gothic Light","CopperplGoth Bd BT","Corbel","Cordia New","CordiaUPC","Cornerstone","Coronet","Cuckoo","Curlz MT","DaunPenh","Dauphin","David","DB LCD Temp","DELICIOUS","Denmark","DFKai-SB","Didot","DilleniaUPC","DIN","DokChampa","Dotum","DotumChe","Ebrima","Edwardian Script ITC","Elephant","English 111 Vivace BT","Engravers MT","EngraversGothic BT","Eras Bold ITC","Eras Demi ITC","Eras Light ITC","Eras Medium ITC","EucrosiaUPC","Euphemia","Euphemia UCAS","EUROSTILE","Exotc350 Bd BT","FangSong","Felix Titling","Fixedsys","FONTIN","Footlight MT Light","Forte","FrankRuehl","Fransiscan","Freefrm721 Blk BT","FreesiaUPC","Freestyle Script","French Script MT","FrnkGothITC Bk BT","Fruitger","FRUTIGER","Futura","Futura Bk BT","Futura Lt BT","Futura Md BT","Futura ZBlk BT","FuturaBlack BT","Gabriola","Galliard BT","Gautami","Geeza Pro","Geometr231 BT","Geometr231 Hv BT","Geometr231 Lt BT","GeoSlab 703 Lt BT","GeoSlab 703 XBd BT","Gigi","Gill Sans","Gill Sans MT","Gill Sans MT Condensed","Gill Sans MT Ext Condensed Bold","Gill Sans Ultra Bold","Gill Sans Ultra Bold Condensed","Gisha","Gloucester MT Extra Condensed","GOTHAM","GOTHAM BOLD","Goudy Old Style","Goudy Stout","GoudyHandtooled BT","GoudyOLSt BT","Gujarati Sangam MN","Gulim","GulimChe","Gungsuh","GungsuhChe","Gurmukhi MN","Haettenschweiler","Harlow Solid Italic","Harrington","Heather","Heiti SC","Heiti TC","HELV","Herald","High Tower Text","Hiragino Kaku Gothic ProN","Hiragino Mincho ProN","Hoefler Text","Humanst 521 Cn BT","Humanst521 BT","Humanst521 Lt BT","Imprint MT Shadow","Incised901 Bd BT","Incised901 BT","Incised901 Lt BT","INCONSOLATA","Informal Roman","Informal011 BT","INTERSTATE","IrisUPC","Iskoola Pota","JasmineUPC","Jazz LET","Jenson","Jester","Jokerman","Juice ITC","Kabel Bk BT","Kabel Ult BT","Kailasa","KaiTi","Kalinga","Kannada Sangam MN","Kartika","Kaufmann Bd BT","Kaufmann BT","Khmer UI","KodchiangUPC","Kokila","Korinna BT","Kristen ITC","Krungthep","Kunstler Script","Lao UI","Latha","Leelawadee","Letter Gothic","Levenim MT","LilyUPC","Lithograph","Lithograph Light","Long Island","Lydian BT","Magneto","Maiandra GD","Malayalam Sangam MN","Malgun Gothic","Mangal","Marigold","Marion","Marker Felt","Market","Marlett","Matisse ITC","Matura MT Script Capitals","Meiryo","Meiryo UI","Microsoft Himalaya","Microsoft JhengHei","Microsoft New Tai Lue","Microsoft PhagsPa","Microsoft Tai Le","Microsoft Uighur","Microsoft YaHei","Microsoft Yi Baiti","MingLiU","MingLiU_HKSCS","MingLiU_HKSCS-ExtB","MingLiU-ExtB","Minion","Minion Pro","Miriam","Miriam Fixed","Mistral","Modern","Modern No. 20","Mona Lisa Solid ITC TT","Mongolian Baiti","MONO","MoolBoran","Mrs Eaves","MS LineDraw","MS Mincho","MS PMincho","MS Reference Specialty","MS UI Gothic","MT Extra","MUSEO","MV Boli","Nadeem","Narkisim","NEVIS","News Gothic","News GothicMT","NewsGoth BT","Niagara Engraved","Niagara Solid","Noteworthy","NSimSun","Nyala","OCR A Extended","Old Century","Old English Text MT","Onyx","Onyx BT","OPTIMA","Oriya Sangam MN","OSAKA","OzHandicraft BT","Palace Script MT","Papyrus","Parchment","Party LET","Pegasus","Perpetua","Perpetua Titling MT","PetitaBold","Pickwick","Plantagenet Cherokee","Playbill","PMingLiU","PMingLiU-ExtB","Poor Richard","Poster","PosterBodoni BT","PRINCETOWN LET","Pristina","PTBarnum BT","Pythagoras","Raavi","Rage Italic","Ravie","Ribbon131 Bd BT","Rockwell","Rockwell Condensed","Rockwell Extra Bold","Rod","Roman","Sakkal Majalla","Santa Fe LET","Savoye LET","Sceptre","Script","Script MT Bold","SCRIPTINA","Serifa","Serifa BT","Serifa Th BT","ShelleyVolante BT","Sherwood","Shonar Bangla","Showcard Gothic","Shruti","Signboard","SILKSCREEN","SimHei","Simplified Arabic","Simplified Arabic Fixed","SimSun","SimSun-ExtB","Sinhala Sangam MN","Sketch Rockwell","Skia","Small Fonts","Snap ITC","Snell Roundhand","Socket","Souvenir Lt BT","Staccato222 BT","Steamer","Stencil","Storybook","Styllo","Subway","Swis721 BlkEx BT","Swiss911 XCm BT","Sylfaen","Synchro LET","System","Tamil Sangam MN","Technical","Teletype","Telugu Sangam MN","Tempus Sans ITC","Terminal","Thonburi","Traditional Arabic","Trajan","TRAJAN PRO","Tristan","Tubular","Tunga","Tw Cen MT","Tw Cen MT Condensed","Tw Cen MT Condensed Extra Bold","TypoUpright BT","Unicorn","Univers","Univers CE 55 Medium","Univers Condensed","Utsaah","Vagabond","Vani","Vijaya","Viner Hand ITC","VisualUI","Vivaldi","Vladimir Script","Vrinda","Westminster","WHITNEY","Wide Latin","ZapfEllipt BT","ZapfHumnst BT","ZapfHumnst Dm BT","Zapfino","Zurich BlkEx BT","Zurich Ex BT","ZWAdobeF"])),r=(r=r.concat(t.fonts.userDefinedFonts)).filter((function(e,t){return r.indexOf(e)===t}));var o=document.getElementsByTagName("body")[0],l=document.createElement("div"),c=document.createElement("div"),d={},f={},h=function(){var s=document.createElement("span");return s.style.position="absolute",s.style.left="-9999px",s.style.fontSize="72px",s.style.fontStyle="normal",s.style.fontWeight="normal",s.style.letterSpacing="normal",s.style.lineBreak="auto",s.style.lineHeight="normal",s.style.textTransform="none",s.style.textAlign="left",s.style.textDecoration="none",s.style.textShadow="none",s.style.whiteSpace="normal",s.style.wordBreak="normal",s.style.wordSpacing="normal",s.innerHTML="mmmmmmmmmmlli",s},m=function(e,t){var s=h();return s.style.fontFamily="'"+e+"',"+t,s},v=function(e){for(var t=!1,i=0;i<n.length;i++)if(t=e[i].offsetWidth!==d[n[i]]||e[i].offsetHeight!==f[n[i]])return t;return t},w=function(){for(var e=[],t=0,r=n.length;t<r;t++){var s=h();s.style.fontFamily=n[t],l.appendChild(s),e.push(s)}return e}();o.appendChild(l);for(var _=0,y=n.length;_<y;_++)d[n[_]]=w[_].offsetWidth,f[n[_]]=w[_].offsetHeight;var C=function(){for(var e={},i=0,t=r.length;i<t;i++){for(var o=[],l=0,d=n.length;l<d;l++){var s=m(r[i],n[l]);c.appendChild(s),o.push(s)}e[r[i]]=o}return e}();o.appendChild(c);for(var T=[],i=0,S=r.length;i<S;i++)v(C[r[i]])&&T.push(r[i]);o.removeChild(c),o.removeChild(l),e(T)},pauseBefore:!0},{key:"fontsFlash",getData:function(e,t){return z()?$()?t.fonts.swfPath?void j((function(t){e(t)}),t):e("missing options.fonts.swfPath"):e("flash not installed"):e("swf object not loaded")},pauseBefore:!0},{key:"audio",getData:function(e,t){var n=t.audio;if(n.excludeIOS11&&navigator.userAgent.match(/OS 11.+Version\/11.+Safari/))return e(t.EXCLUDED);var r=window.OfflineAudioContext||window.webkitOfflineAudioContext;if(null==r)return e(t.NOT_AVAILABLE);var o=new r(1,44100,44100),l=o.createOscillator();l.type="triangle",l.frequency.setValueAtTime(1e4,o.currentTime);var c=o.createDynamicsCompressor();m([["threshold",-50],["knee",40],["ratio",12],["reduction",-20],["attack",0],["release",.25]],(function(e){void 0!==c[e[0]]&&"function"==typeof c[e[0]].setValueAtTime&&c[e[0]].setValueAtTime(e[1],o.currentTime)})),l.connect(c),c.connect(o.destination),l.start(0),o.startRendering();var d=setTimeout((function(){return o.oncomplete=function(){},o=null,e("audioTimeout")}),n.timeout);o.oncomplete=function(t){var n;try{clearTimeout(d),n=t.renderedBuffer.getChannelData(0).slice(4500,5e3).reduce((function(e,t){return e+Math.abs(t)}),0).toString(),l.disconnect(),c.disconnect()}catch(t){return void e(t)}e(n)}}},{key:"enumerateDevices",getData:function(e,t){if(!v())return e(t.NOT_AVAILABLE);navigator.mediaDevices.enumerateDevices().then((function(t){e(t.map((function(e){return"id="+e.deviceId+";gid="+e.groupId+";"+e.kind+";"+e.label})))})).catch((function(t){e(t)}))}}],X=function(e){throw new Error("'new Fingerprint()' is deprecated, see https://github.com/Valve/fingerprintjs2#upgrade-guide-from-182-to-200")};return X.get=function(e,t){t?e||(e={}):(t=e,e={}),function(e,source){if(null==source)return e;var t,n;for(n in source)null==(t=source[n])||Object.prototype.hasOwnProperty.call(e,n)||(e[n]=t)}(e,d),e.components=e.extraComponents.concat(K);var n={data:[],addPreprocessedComponent:function(t,r){"function"==typeof e.preprocessor&&(r=e.preprocessor(t,r)),n.data.push({key:t,value:r})}},i=-1,r=function(o){if((i+=1)>=e.components.length)t(n.data);else{var component=e.components[i];if(e.excludes[component.key])r(!1);else{if(!o&&component.pauseBefore)return i-=1,void setTimeout((function(){r(!0)}),1);try{component.getData((function(e){n.addPreprocessedComponent(component.key,e),r(!1)}),e)}catch(e){n.addPreprocessedComponent(component.key,String(e)),r(!1)}}}};r(!1)},X.getPromise=function(e){return new h.default((function(t,n){X.get(e,t)}))},X.getV18=function(e,t){return null==t&&(t=e,e={}),X.get(e,(function(n){for(var r=[],i=0;i<n.length;i++){var component=n[i];if(component.value===(e.NOT_AVAILABLE||"not available"))r.push({key:component.key,value:"unknown"});else if("plugins"===component.key)r.push({key:"plugins",value:map(component.value,(function(p){var e=map(p[2],(function(e){return e.join?e.join("~"):e})).join(",");return[p[0],p[1],e].join("::")}))});else if(-1!==["canvas","webgl"].indexOf(component.key))r.push({key:component.key,value:component.value.join("~")});else if(-1!==["sessionStorage","localStorage","indexedDb","addBehavior","openDatabase"].indexOf(component.key)){if(!component.value)continue;r.push({key:component.key,value:1})}else component.value?r.push(component.value.join?{key:component.key,value:component.value.join(";")}:component):r.push({key:component.key,value:component.value})}var o=c(map(r,(function(component){return component.value})).join("~~~"),31);t(o,r)}))},X.x64hash128=c,X.VERSION="2.1.0",X},"undefined"!=typeof window&&n(1173)?void 0===(o="function"==typeof(r=c)?r.call(t,n,t,e):r)||(e.exports=o):e.exports?e.exports=c():l.exports?l.exports=c():l.Fingerprint2=c()},1174:function(e,t,n){"use strict";(function(e){var r,o=n(1)(n(14));!function(l,c){var d="function",f="undefined",h="object",m="model",v="name",w="type",_="vendor",y="version",C="architecture",T="console",S="mobile",k="tablet",E="smarttv",x="wearable",L={extend:function(e,t){var n={};for(var i in e)t[i]&&t[i].length%2==0?n[i]=t[i].concat(e[i]):n[i]=e[i];return n},has:function(e,t){return"string"==typeof e&&-1!==t.toLowerCase().indexOf(e.toLowerCase())},lowerize:function(e){return e.toLowerCase()},major:function(e){return"string"===(0,o.default)(e)?e.replace(/[^\d\.]/g,"").split(".")[0]:c},trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},A={rgx:function(e,t){for(var n,r,p,q,l,f,i=0;i<t.length&&!l;){var m=t[i],v=t[i+1];for(n=r=0;n<m.length&&!l;)if(l=m[n++].exec(e))for(p=0;p<v.length;p++)f=l[++r],q=v[p],(0,o.default)(q)===h&&q.length>0?2==q.length?(0,o.default)(q[1])==d?this[q[0]]=q[1].call(this,f):this[q[0]]=q[1]:3==q.length?(0,o.default)(q[1])!==d||q[1].exec&&q[1].test?this[q[0]]=f?f.replace(q[1],q[2]):c:this[q[0]]=f?q[1].call(this,f,q[2]):c:4==q.length&&(this[q[0]]=f?q[3].call(this,f.replace(q[1],q[2])):c):this[q]=f||c;i+=2}},str:function(e,map){for(var i in map)if((0,o.default)(map[i])===h&&map[i].length>0){for(var t=0;t<map[i].length;t++)if(L.has(map[i][t],e))return"?"===i?c:i}else if(L.has(map[i],e))return"?"===i?c:i;return e}},P={browser:{oldsafari:{version:{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}}},device:{amazon:{model:{"Fire Phone":["SD","KF"]}},sprint:{model:{"Evo Shift 4G":"7373KT"},vendor:{HTC:"APA",Sprint:"Sprint"}}},os:{windows:{version:{ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"}}}},O={browser:[[/(opera\smini)\/([\w\.-]+)/i,/(opera\s[mobiletab]+).+version\/([\w\.-]+)/i,/(opera).+version\/([\w\.]+)/i,/(opera)[\/\s]+([\w\.]+)/i],[v,y],[/(opios)[\/\s]+([\w\.]+)/i],[[v,"Opera Mini"],y],[/\s(opr)\/([\w\.]+)/i],[[v,"Opera"],y],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/\s]?([\w\.]*)/i,/(avant\s|iemobile|slim)(?:browser)?[\/\s]?([\w\.]*)/i,/(bidubrowser|baidubrowser)[\/\s]?([\w\.]+)/i,/(?:ms|\()(ie)\s([\w\.]+)/i,/(rekonq)\/([\w\.]*)/i,/(chromium|flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon)\/([\w\.-]+)/i],[v,y],[/(konqueror)\/([\w\.]+)/i],[[v,"Konqueror"],y],[/(trident).+rv[:\s]([\w\.]+).+like\sgecko/i],[[v,"IE"],y],[/(edge|edgios|edga|edg)\/((\d+)?[\w\.]+)/i],[[v,"Edge"],y],[/(yabrowser)\/([\w\.]+)/i],[[v,"Yandex"],y],[/(Avast)\/([\w\.]+)/i],[[v,"Avast Secure Browser"],y],[/(AVG)\/([\w\.]+)/i],[[v,"AVG Secure Browser"],y],[/(puffin)\/([\w\.]+)/i],[[v,"Puffin"],y],[/(focus)\/([\w\.]+)/i],[[v,"Firefox Focus"],y],[/(opt)\/([\w\.]+)/i],[[v,"Opera Touch"],y],[/((?:[\s\/])uc?\s?browser|(?:juc.+)ucweb)[\/\s]?([\w\.]+)/i],[[v,"UCBrowser"],y],[/(comodo_dragon)\/([\w\.]+)/i],[[v,/_/g," "],y],[/(windowswechat qbcore)\/([\w\.]+)/i],[[v,"WeChat(Win) Desktop"],y],[/(micromessenger)\/([\w\.]+)/i],[[v,"WeChat"],y],[/(brave)\/([\w\.]+)/i],[[v,"Brave"],y],[/(qqbrowserlite)\/([\w\.]+)/i],[v,y],[/(QQ)\/([\d\.]+)/i],[v,y],[/m?(qqbrowser)[\/\s]?([\w\.]+)/i],[v,y],[/(baiduboxapp)[\/\s]?([\w\.]+)/i],[v,y],[/(2345Explorer)[\/\s]?([\w\.]+)/i],[v,y],[/(MetaSr)[\/\s]?([\w\.]+)/i],[v],[/(LBBROWSER)/i],[v],[/xiaomi\/miuibrowser\/([\w\.]+)/i],[y,[v,"MIUI Browser"]],[/;fbav\/([\w\.]+);/i],[y,[v,"Facebook"]],[/safari\s(line)\/([\w\.]+)/i,/android.+(line)\/([\w\.]+)\/iab/i],[v,y],[/headlesschrome(?:\/([\w\.]+)|\s)/i],[y,[v,"Chrome Headless"]],[/\swv\).+(chrome)\/([\w\.]+)/i],[[v,/(.+)/,"$1 WebView"],y],[/((?:oculus|samsung)browser)\/([\w\.]+)/i],[[v,/(.+(?:g|us))(.+)/,"$1 $2"],y],[/android.+version\/([\w\.]+)\s+(?:mobile\s?safari|safari)*/i],[y,[v,"Android Browser"]],[/(sailfishbrowser)\/([\w\.]+)/i],[[v,"Sailfish Browser"],y],[/(chrome|omniweb|arora|[tizenoka]{5}\s?browser)\/v?([\w\.]+)/i],[v,y],[/(dolfin)\/([\w\.]+)/i],[[v,"Dolphin"],y],[/(qihu|qhbrowser|qihoobrowser|360browser)/i],[[v,"360 Browser"]],[/((?:android.+)crmo|crios)\/([\w\.]+)/i],[[v,"Chrome"],y],[/(coast)\/([\w\.]+)/i],[[v,"Opera Coast"],y],[/fxios\/([\w\.-]+)/i],[y,[v,"Firefox"]],[/version\/([\w\.]+).+?mobile\/\w+\s(safari)/i],[y,[v,"Mobile Safari"]],[/version\/([\w\.]+).+?(mobile\s?safari|safari)/i],[y,v],[/webkit.+?(gsa)\/([\w\.]+).+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[[v,"GSA"],y],[/webkit.+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[v,[y,A.str,P.browser.oldsafari.version]],[/(webkit|khtml)\/([\w\.]+)/i],[v,y],[/(navigator|netscape)\/([\w\.-]+)/i],[[v,"Netscape"],y],[/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo\sbrowser|minimo|conkeror)[\/\s]?([\w\.\+]+)/i,/(firefox|seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([\w\.-]+)$/i,/(mozilla)\/([\w\.]+).+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir)[\/\s]?([\w\.]+)/i,/(links)\s\(([\w\.]+)/i,/(gobrowser)\/?([\w\.]*)/i,/(ice\s?browser)\/v?([\w\._]+)/i,/(mosaic)[\/\s]([\w\.]+)/i],[v,y]],cpu:[[/(?:(amd|x(?:(?:86|64)[_-])?|wow|win)64)[;\)]/i],[[C,"amd64"]],[/(ia32(?=;))/i],[[C,L.lowerize]],[/((?:i[346]|x)86)[;\)]/i],[[C,"ia32"]],[/windows\s(ce|mobile);\sppc;/i],[[C,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?:\smac|;|\))/i],[[C,/ower/,"",L.lowerize]],[/(sun4\w)[;\)]/i],[[C,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|arm(?:64|(?=v\d+[;l]))|(?=atmel\s)avr|(?:irix|mips|sparc)(?:64)?(?=;)|pa-risc)/i],[[C,L.lowerize]]],device:[[/\((ipad|playbook);[\w\s\),;-]+(rim|apple)/i],[m,_,[w,k]],[/applecoremedia\/[\w\.]+ \((ipad)/],[m,[_,"Apple"],[w,k]],[/(apple\s{0,1}tv)/i],[[m,"Apple TV"],[_,"Apple"],[w,E]],[/(archos)\s(gamepad2?)/i,/(hp).+(touchpad)/i,/(hp).+(tablet)/i,/(kindle)\/([\w\.]+)/i,/\s(nook)[\w\s]+build\/(\w+)/i,/(dell)\s(strea[kpr\s\d]*[\dko])/i],[_,m,[w,k]],[/(kf[A-z]+)\sbuild\/.+silk\//i],[m,[_,"Amazon"],[w,k]],[/(sd|kf)[0349hijorstuw]+\sbuild\/.+silk\//i],[[m,A.str,P.device.amazon.model],[_,"Amazon"],[w,S]],[/android.+aft([bms])\sbuild/i],[m,[_,"Amazon"],[w,E]],[/\((ip[honed|\s\w*]+);.+(apple)/i],[m,_,[w,S]],[/\((ip[honed|\s\w*]+);/i],[m,[_,"Apple"],[w,S]],[/(blackberry)[\s-]?(\w+)/i,/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[\s_-]?([\w-]*)/i,/(hp)\s([\w\s]+\w)/i,/(asus)-?(\w+)/i],[_,m,[w,S]],[/\(bb10;\s(\w+)/i],[m,[_,"BlackBerry"],[w,S]],[/android.+(transfo[prime\s]{4,10}\s\w+|eeepc|slider\s\w+|nexus 7|padfone|p00c)/i],[m,[_,"Asus"],[w,k]],[/(sony)\s(tablet\s[ps])\sbuild\//i,/(sony)?(?:sgp.+)\sbuild\//i],[[_,"Sony"],[m,"Xperia Tablet"],[w,k]],[/android.+\s([c-g]\d{4}|so[-l]\w+)(?=\sbuild\/|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[m,[_,"Sony"],[w,S]],[/\s(ouya)\s/i,/(nintendo)\s([wids3u]+)/i],[_,m,[w,T]],[/android.+;\s(shield)\sbuild/i],[m,[_,"Nvidia"],[w,T]],[/(playstation\s[34portablevi]+)/i],[m,[_,"Sony"],[w,T]],[/(sprint\s(\w+))/i],[[_,A.str,P.device.sprint.vendor],[m,A.str,P.device.sprint.model],[w,S]],[/(htc)[;_\s-]+([\w\s]+(?=\)|\sbuild)|\w+)/i,/(zte)-(\w*)/i,/(alcatel|geeksphone|nexian|panasonic|(?=;\s)sony)[_\s-]?([\w-]*)/i],[_,[m,/_/g," "],[w,S]],[/(nexus\s9)/i],[m,[_,"HTC"],[w,k]],[/d\/huawei([\w\s-]+)[;\)]/i,/(nexus\s6p|vog-l29|ane-lx1|eml-l29)/i],[m,[_,"Huawei"],[w,S]],[/android.+(bah2?-a?[lw]\d{2})/i],[m,[_,"Huawei"],[w,k]],[/(microsoft);\s(lumia[\s\w]+)/i],[_,m,[w,S]],[/[\s\(;](xbox(?:\sone)?)[\s\);]/i],[m,[_,"Microsoft"],[w,T]],[/(kin\.[onetw]{3})/i],[[m,/\./g," "],[_,"Microsoft"],[w,S]],[/\s(milestone|droid(?:[2-4x]|\s(?:bionic|x2|pro|razr))?:?(\s4g)?)[\w\s]+build\//i,/mot[\s-]?(\w*)/i,/(XT\d{3,4}) build\//i,/(nexus\s6)/i],[m,[_,"Motorola"],[w,S]],[/android.+\s(mz60\d|xoom[\s2]{0,2})\sbuild\//i],[m,[_,"Motorola"],[w,k]],[/hbbtv\/\d+\.\d+\.\d+\s+\([\w\s]*;\s*(\w[^;]*);([^;]*)/i],[[_,L.trim],[m,L.trim],[w,E]],[/hbbtv.+maple;(\d+)/i],[[m,/^/,"SmartTV"],[_,"Samsung"],[w,E]],[/\(dtv[\);].+(aquos)/i],[m,[_,"Sharp"],[w,E]],[/android.+((sch-i[89]0\d|shw-m380s|gt-p\d{4}|gt-n\d+|sgh-t8[56]9|nexus 10))/i,/((SM-T\w+))/i],[[_,"Samsung"],m,[w,k]],[/smart-tv.+(samsung)/i],[_,[w,E],m],[/((s[cgp]h-\w+|gt-\w+|galaxy\snexus|sm-\w[\w\d]+))/i,/(sam[sung]*)[\s-]*(\w+-?[\w-]*)/i,/sec-((sgh\w+))/i],[[_,"Samsung"],m,[w,S]],[/sie-(\w*)/i],[m,[_,"Siemens"],[w,S]],[/(maemo|nokia).*(n900|lumia\s\d+)/i,/(nokia)[\s_-]?([\w-]*)/i],[[_,"Nokia"],m,[w,S]],[/android[x\d\.\s;]+\s([ab][1-7]\-?[0178a]\d\d?)/i],[m,[_,"Acer"],[w,k]],[/android.+([vl]k\-?\d{3})\s+build/i],[m,[_,"LG"],[w,k]],[/android\s3\.[\s\w;-]{10}(lg?)-([06cv9]{3,4})/i],[[_,"LG"],m,[w,k]],[/(lg) netcast\.tv/i],[_,m,[w,E]],[/(nexus\s[45])/i,/lg[e;\s\/-]+(\w*)/i,/android.+lg(\-?[\d\w]+)\s+build/i],[m,[_,"LG"],[w,S]],[/(lenovo)\s?(s(?:5000|6000)(?:[\w-]+)|tab(?:[\s\w]+))/i],[_,m,[w,k]],[/android.+(ideatab[a-z0-9\-\s]+)/i],[m,[_,"Lenovo"],[w,k]],[/(lenovo)[_\s-]?([\w-]+)/i],[_,m,[w,S]],[/linux;.+((jolla));/i],[_,m,[w,S]],[/((pebble))app\/[\d\.]+\s/i],[_,m,[w,x]],[/android.+;\s(oppo)\s?([\w\s]+)\sbuild/i],[_,m,[w,S]],[/crkey/i],[[m,"Chromecast"],[_,"Google"],[w,E]],[/android.+;\s(glass)\s\d/i],[m,[_,"Google"],[w,x]],[/android.+;\s(pixel c)[\s)]/i],[m,[_,"Google"],[w,k]],[/android.+;\s(pixel( [23])?( xl)?)[\s)]/i],[m,[_,"Google"],[w,S]],[/android.+;\s(\w+)\s+build\/hm\1/i,/android.+(hm[\s\-_]*note?[\s_]*(?:\d\w)?)\s+build/i,/android.+(mi[\s\-_]*(?:a\d|one|one[\s_]plus|note lte)?[\s_]*(?:\d?\w?)[\s_]*(?:plus)?)\s+build/i,/android.+(redmi[\s\-_]*(?:note)?(?:[\s_]*[\w\s]+))\s+build/i],[[m,/_/g," "],[_,"Xiaomi"],[w,S]],[/android.+(mi[\s\-_]*(?:pad)(?:[\s_]*[\w\s]+))\s+build/i],[[m,/_/g," "],[_,"Xiaomi"],[w,k]],[/android.+;\s(m[1-5]\snote)\sbuild/i],[m,[_,"Meizu"],[w,S]],[/(mz)-([\w-]{2,})/i],[[_,"Meizu"],m,[w,S]],[/android.+a000(1)\s+build/i,/android.+oneplus\s(a\d{4})[\s)]/i],[m,[_,"OnePlus"],[w,S]],[/android.+[;\/]\s*(RCT[\d\w]+)\s+build/i],[m,[_,"RCA"],[w,k]],[/android.+[;\/\s]+(Venue[\d\s]{2,7})\s+build/i],[m,[_,"Dell"],[w,k]],[/android.+[;\/]\s*(Q[T|M][\d\w]+)\s+build/i],[m,[_,"Verizon"],[w,k]],[/android.+[;\/]\s+(Barnes[&\s]+Noble\s+|BN[RT])(V?.*)\s+build/i],[[_,"Barnes & Noble"],m,[w,k]],[/android.+[;\/]\s+(TM\d{3}.*\b)\s+build/i],[m,[_,"NuVision"],[w,k]],[/android.+;\s(k88)\sbuild/i],[m,[_,"ZTE"],[w,k]],[/android.+[;\/]\s*(gen\d{3})\s+build.*49h/i],[m,[_,"Swiss"],[w,S]],[/android.+[;\/]\s*(zur\d{3})\s+build/i],[m,[_,"Swiss"],[w,k]],[/android.+[;\/]\s*((Zeki)?TB.*\b)\s+build/i],[m,[_,"Zeki"],[w,k]],[/(android).+[;\/]\s+([YR]\d{2})\s+build/i,/android.+[;\/]\s+(Dragon[\-\s]+Touch\s+|DT)(\w{5})\sbuild/i],[[_,"Dragon Touch"],m,[w,k]],[/android.+[;\/]\s*(NS-?\w{0,9})\sbuild/i],[m,[_,"Insignia"],[w,k]],[/android.+[;\/]\s*((NX|Next)-?\w{0,9})\s+build/i],[m,[_,"NextBook"],[w,k]],[/android.+[;\/]\s*(Xtreme\_)?(V(1[045]|2[015]|30|40|60|7[05]|90))\s+build/i],[[_,"Voice"],m,[w,S]],[/android.+[;\/]\s*(LVTEL\-)?(V1[12])\s+build/i],[[_,"LvTel"],m,[w,S]],[/android.+;\s(PH-1)\s/i],[m,[_,"Essential"],[w,S]],[/android.+[;\/]\s*(V(100MD|700NA|7011|917G).*\b)\s+build/i],[m,[_,"Envizen"],[w,k]],[/android.+[;\/]\s*(Le[\s\-]+Pan)[\s\-]+(\w{1,9})\s+build/i],[_,m,[w,k]],[/android.+[;\/]\s*(Trio[\s\-]*.*)\s+build/i],[m,[_,"MachSpeed"],[w,k]],[/android.+[;\/]\s*(Trinity)[\-\s]*(T\d{3})\s+build/i],[_,m,[w,k]],[/android.+[;\/]\s*TU_(1491)\s+build/i],[m,[_,"Rotor"],[w,k]],[/android.+(KS(.+))\s+build/i],[m,[_,"Amazon"],[w,k]],[/android.+(Gigaset)[\s\-]+(Q\w{1,9})\s+build/i],[_,m,[w,k]],[/\s(tablet|tab)[;\/]/i,/\s(mobile)(?:[;\/]|\ssafari)/i],[[w,L.lowerize],_,m],[/[\s\/\(](smart-?tv)[;\)]/i],[[w,E]],[/(android[\w\.\s\-]{0,9});.+build/i],[m,[_,"Generic"]]],engine:[[/windows.+\sedge\/([\w\.]+)/i],[y,[v,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[y,[v,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/(khtml|tasman|links)[\/\s]\(?([\w\.]+)/i,/(icab)[\/\s]([23]\.[\d\.]+)/i],[v,y],[/rv\:([\w\.]{1,9}).+(gecko)/i],[y,v]],os:[[/microsoft\s(windows)\s(vista|xp)/i],[v,y],[/(windows)\snt\s6\.2;\s(arm)/i,/(windows\sphone(?:\sos)*)[\s\/]?([\d\.\s\w]*)/i,/(windows\smobile|windows)[\s\/]?([ntce\d\.\s]+\w)/i],[v,[y,A.str,P.os.windows.version]],[/(win(?=3|9|n)|win\s9x\s)([nt\d\.]+)/i],[[v,"Windows"],[y,A.str,P.os.windows.version]],[/\((bb)(10);/i],[[v,"BlackBerry"],y],[/(blackberry)\w*\/?([\w\.]*)/i,/(tizen|kaios)[\/\s]([\w\.]+)/i,/(android|webos|palm\sos|qnx|bada|rim\stablet\sos|meego|sailfish|contiki)[\/\s-]?([\w\.]*)/i],[v,y],[/(symbian\s?os|symbos|s60(?=;))[\/\s-]?([\w\.]*)/i],[[v,"Symbian"],y],[/\((series40);/i],[v],[/mozilla.+\(mobile;.+gecko.+firefox/i],[[v,"Firefox OS"],y],[/(nintendo|playstation)\s([wids34portablevu]+)/i,/(mint)[\/\s\(]?(\w*)/i,/(mageia|vectorlinux)[;\s]/i,/(joli|[kxln]?ubuntu|debian|suse|opensuse|gentoo|(?=\s)arch|slackware|fedora|mandriva|centos|pclinuxos|redhat|zenwalk|linpus)[\/\s-]?(?!chrom)([\w\.-]*)/i,/(hurd|linux)\s?([\w\.]*)/i,/(gnu)\s?([\w\.]*)/i],[v,y],[/(cros)\s[\w]+\s([\w\.]+\w)/i],[[v,"Chromium OS"],y],[/(sunos)\s?([\w\.\d]*)/i],[[v,"Solaris"],y],[/\s([frentopc-]{0,4}bsd|dragonfly)\s?([\w\.]*)/i],[v,y],[/(haiku)\s(\w+)/i],[v,y],[/cfnetwork\/.+darwin/i,/ip[honead]{2,4}(?:.*os\s([\w]+)\slike\smac|;\sopera)/i],[[y,/_/g,"."],[v,"iOS"]],[/(mac\sos\sx)\s?([\w\s\.]*)/i,/(macintosh|mac(?=_powerpc)\s)/i],[[v,"Mac OS"],[y,/_/g,"."]],[/((?:open)?solaris)[\/\s-]?([\w\.]*)/i,/(aix)\s((\d)(?=\.|\)|\s)[\w\.])*/i,/(plan\s9|minix|beos|os\/2|amigaos|morphos|risc\sos|openvms|fuchsia)/i,/(unix)\s?([\w\.]*)/i],[v,y]]},I=function(e,t){if("object"===(0,o.default)(e)&&(t=e,e=c),!(this instanceof I))return new I(e,t).getResult();var n=e||(l&&l.navigator&&l.navigator.userAgent?l.navigator.userAgent:""),r=t?L.extend(O,t):O;return this.getBrowser=function(){var e={name:c,version:c};return A.rgx.call(e,n,r.browser),e.major=L.major(e.version),e},this.getCPU=function(){var e={architecture:c};return A.rgx.call(e,n,r.cpu),e},this.getDevice=function(){var e={vendor:c,model:c,type:c};return A.rgx.call(e,n,r.device),e},this.getEngine=function(){var e={name:c,version:c};return A.rgx.call(e,n,r.engine),e},this.getOS=function(){var e={name:c,version:c};return A.rgx.call(e,n,r.os),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return n},this.setUA=function(e){return n=e,this},this};I.VERSION="0.7.21",I.BROWSER={NAME:v,MAJOR:"major",VERSION:y},I.CPU={ARCHITECTURE:C},I.DEVICE={MODEL:m,VENDOR:_,TYPE:w,CONSOLE:T,MOBILE:S,SMARTTV:E,TABLET:k,WEARABLE:x,EMBEDDED:"embedded"},I.ENGINE={NAME:v,VERSION:y},I.OS={NAME:v,VERSION:y},(0,o.default)(t)!==f?((0,o.default)(e)!==f&&e.exports&&(t=e.exports=I),t.UAParser=I):(r=function(){return I}.call(t,n,t,e))===c||(e.exports=r);var R=l&&(l.jQuery||l.Zepto);if(R&&!R.ua){var B=new I;R.ua=B.getResult(),R.ua.get=function(){return B.getUA()},R.ua.set=function(e){B.setUA(e);var t=B.getResult();for(var n in t)R.ua[n]=t[n]}}}("object"===("undefined"==typeof window?"undefined":(0,o.default)(window))?window:void 0)}).call(this,n(192)(e))},1177:function(e,t,n){"use strict";var r=n(0),o=n(1);r(t,"__esModule",{value:!0}),t.formatUserInfo=void 0;var l=o(n(52));t.formatUserInfo=function(e){var t=e.userInfo,n=e.settings,r={loginName:e.loginName||"",phone:1===n.mbf?t.mobile:"",email:1===n.ebf?t.email:"",bindPhone:Boolean(n.mbf),bindEmail:Boolean(n.ebf),bindGoogle:Boolean(n.gbf),isFund:Boolean(n.tbf),fundValue:n.tpi,fundDisabled:Boolean(n.tpl),antiPhishingCode:t.antiPhishingCode,hasRealValidate:2==n.kf,openOtc:Boolean(n.oo),openContract:Boolean(n.oc),identityLevel:n.kf,openGtFees:Boolean(n.ob),realName:t.realName,emailEnable:Boolean(n.eef),phoneEnable:Boolean(n.mef),googleEnable:Boolean(n.gef),newDeviceFlag:Boolean(n.ndt),canWithDraw:1==n.cc};return(0,l.default)({},t,r)}},1219:function(e,t,n){"use strict";var r=n(0),o=n(1);r(t,"__esModule",{value:!0}),t.default=void 0;var l=o(n(2)),c=o(n(3)),d=function(){return(0,c.default)((function e(){(0,l.default)(this,e),this.timerId=null,this.callback=null,this.timeout=0}),[{key:"start",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3e4;this.timerId&&this.clear(),this.timeout=n,this.callback=e,this.timerId=setTimeout((function(){t.callback(),t.timerId=null,t.reset()}),this.timeout)}},{key:"clear",value:function(){this.timerId&&(clearTimeout(this.timerId),this.timerId=null)}},{key:"reset",value:function(){this.timerId&&this.clear(),this.callback&&this.start(this.callback,this.timeout)}}])}();t.default=d},1233:function(e,t,n){"use strict";var r=n(0),o=n(1);r(t,"__esModule",{value:!0}),t.monitorWindowsNew=t.monitorWindows=t.goH5=t.getDevice=t.getBrowserType=t.addCommas=void 0;var l=o(n(52)),c=(t.monitorWindows=function(){return setTimeout((function(e){d(),window.onresize=null,window.onresize=function(){d()}}))},t.monitorWindowsNew=function(){return setTimeout((function(e){c(),window.onresize=function(){c()}})),null},t.getDevice=function(){var e="mobile";return e=window.innerWidth<769?"mobile":window.innerWidth>=769&&window.innerWidth<1200?"pad":"web",window.$nuxt.$store.commit("SET_DEVICE",e),e}),d=t.goH5=function(){if(document.body.clientWidth<768){var e=location.href,t=location.host,n=location.protocol,r=location.pathname,o="";window.$nuxt.$store.state.locales.find((function(e){return r.indexOf("/".concat(e))>-1}))||(r="/en"+r),e.indexOf("http://localhost")>-1||e.indexOf("weextest")>-1?(o="https://test-h5.weex.tech"+location.pathname,window.location.href=o):e.indexOf("www.")>-1?(o=e.replace("www.","h5."),window.location.href=o):(o=n+"//h5."+t+r,window.location.href=o)}};t.getBrowserType=function(){var e=navigator.userAgent.toLowerCase(),t=function(t){return t.test(e)},n=function(t){return e.match(t).toString().replace(/[^0-9|_.]/g,"").replace(/_/g,".")},r="unknow";t(/windows|win32|win64|wow32|wow64/g)?r="windows":t(/macintosh|macintel/g)?r="macos":t(/x11/g)?r="linux":t(/android|adr/g)?r="android":t(/ios|iphone|ipad|ipod|iwatch/g)&&(r="ios");var o="unknow";"windows"===r?t(/windows nt 5.0|windows 2000/g)?o="2000":t(/windows nt 5.1|windows xp/g)?o="xp":t(/windows nt 5.2|windows 2003/g)?o="2003":t(/windows nt 6.0|windows vista/g)?o="vista":t(/windows nt 6.1|windows 7/g)?o="7":t(/windows nt 6.2|windows 8/g)?o="8":t(/windows nt 6.3|windows 8.1/g)?o="8.1":t(/windows nt 10.0|windows 10/g)&&(o="10"):"macos"===r?o=n(/os x [\d._]+/g):"android"===r?o=n(/android [\d._]+/g):"ios"===r&&(o=n(/os [\d._]+/g));var c="unknow";"windows"===r||"macos"===r||"linux"===r?c="desktop":("android"===r||"ios"===r||t(/mobile/g))&&(c="mobile");var d="unknow",f="unknow";t(/applewebkit/g)?(d="webkit",t(/edge/g)?f="edge":t(/opr/g)?f="opera":t(/chrome/g)&&t(/safari/g)||t(/chrome/g)?f="chrome":t(/safari/g)&&(f="safari")):t(/gecko/g)&&t(/firefox/g)?(d="gecko",f="firefox"):t(/presto/g)?(d="presto",f="opera"):t(/trident|compatible|msie/g)&&(d="trident",f="iexplore");var h="unknow";"webkit"===d?h=n(/applewebkit\/[\d._]+/g):"gecko"===d?h=n(/gecko\/[\d._]+/g):"presto"===d?h=n(/presto\/[\d._]+/g):"trident"===d&&(h=n(/trident\/[\d._]+/g));var m="none",v="unknow";return t(/micromessenger/g)?(m="wechat",v=n(/micromessenger\/[\d._]+/g)):t(/qqbrowser/g)?(m="qq",v=n(/qqbrowser\/[\d._]+/g)):t(/ucbrowser/g)?(m="uc",v=n(/ucbrowser\/[\d._]+/g)):t(/qihu 360se/g)?m="360":t(/2345explorer/g)?(m="2345",v=n(/2345explorer\/[\d._]+/g)):t(/metasr/g)?m="sougou":t(/lbbrowser/g)?m="liebao":t(/maxthon/g)&&(m="maxthon",v=n(/maxthon\/[\d._]+/g)),(0,l.default)({engine:d,engineVs:h,platform:c,supporter:f,system:r,systemVs:o},"none"===m?{}:{shell:m,shellVs:v})},t.addCommas=function(e){return e.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,")}},1449:function(e,t,n){"use strict";var r=n(0),o=n(1);r(t,"__esModule",{value:!0}),t.default=void 0;var l=o(n(15)),c=o(n(44)),d=o(n(32)),f=o(n(33)),h=o(n(2)),m=o(n(3)),v=o(n(13)),w=o(n(840)),_=n(1451),y=o(n(131)),C=(n(62),n(16));t.default=function(){return(0,m.default)((function e(t){(0,h.default)(this,e),(0,v.default)(this,"_store",null),(0,v.default)(this,"_domain",{}),(0,v.default)(this,"_domains",[]),this._store=t,this.init()}),[{key:"domain",get:function(){return this._domain},set:function(e){this._store.commit("SET_DOMAIN",e),this._domain=e}},{key:"domains",get:function(){return this._domains},set:function(e){this._store.commit("SET_DOMAINS",e),this._domains=e}},{key:"init",value:(t=(0,f.default)(d.default.mark((function e(){var t,n;return d.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=!!C.isClient&&location.host.match(/(weex.com|weex.tech)$/),!C.isTest&&!C.isStaging){e.next=5;break}e.t0=["weex.tech"],e.next=8;break;case 5:return e.next=7,(0,_.getAPIDomains)(t);case 7:e.t0=e.sent;case 8:if(n=e.t0,0!==this.domains.length){e.next=13;break}return this.domains=n.map((function(e,i){return{domain:e,speed:9999,index:i+1}})),e.next=13,this.detect();case 13:this.domain=(0,w.default)(this.domains,(function(e){return e.speed}));case 14:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"detect",value:(e=(0,f.default)(d.default.mark((function e(){var t,n=this;return d.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.domains.map((function(e){return n.detectDomain(e)})),e.next=3,l.default.all(t);case 3:this.domains=e.sent;case 4:case"end":return e.stop()}}),e,this)}))),function(){return e.apply(this,arguments)})},{key:"detectDomain",value:function(e){return new l.default((function(t){var n=(0,c.default)();y.default.get("https://".concat("gateway1",".").concat(e.domain,"/v1/if/health"),{timeout:2e4}).then((function(r){var o=(0,c.default)();e.speed=o-n,t(e)})).catch((function(n){e.speed=9999,t(e)}))}))}}]);var e,t}()},1451:function(e,t,n){"use strict";var r=n(0),o=n(1);r(t,"__esModule",{value:!0}),t.getSiteCheckInfo=t.getAuditData=t.getAgencyOrientedDomains=t.getAffiliateDomains=t.getAPIDomains=void 0;var l=o(n(32)),c=o(n(33)),d=o(n(842)),f=o(n(557)),h=o(n(131)),m=n(759),v=n(16),w=n(62),_=function(){var e=(0,c.default)(l.default.mark((function e(t,n){var r,o;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r="",o=(0,w.isOversea)()?[n,t]:[t,n],!(0,f.default)(o[0])){e.next=4;break}return e.abrupt("return",r);case 4:return e.next=6,h.default.get("".concat(o[0],"?v=").concat((new Date).getTime())).then((function(e){return e.data})).catch((function(e){}));case 6:if(r=e.sent,!(0,d.default)(r)){e.next=11;break}return e.next=10,h.default.get("".concat(o[1],"?v=").concat((new Date).getTime())).then((function(e){return e.data})).catch((function(e){}));case 10:r=e.sent;case 11:return e.abrupt("return",r);case 12:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}();t.getAPIDomains=function(){var e=(0,c.default)(l.default.mark((function e(){var t,n,r,o=arguments;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t="https://httpdns.cdn.bcebos.com/web_base.txt",n="https://dswcnhr3lpzog.cloudfront.net/web_base.txt",o.length>0&&void 0!==o[0]&&o[0]&&(t=t.replace("web_base","web_abroad"),n=n.replace("web_base","web_abroad")),e.next=6,_(t,n).then((function(e){return(0,m.AES_CBC_DECRYPT)(e).split(",").map((function(e){return e.trim()}))})).catch((function(e){return null}));case 6:return r=e.sent,v.isClient&&window.$nuxt&&window.$nuxt.$store.commit("SET_API_DOMAINS",r),e.abrupt("return",r);case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),t.getSiteCheckInfo=function(){var e=(0,c.default)(l.default.mark((function e(){var t;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,_("https://httpdns.cdn.bcebos.com/verify.txt","https://dswcnhr3lpzog.cloudfront.net/verify.txt").then((function(e){return(0,m.AES_CBC_DECRYPT)(e).split(",").map((function(e){return e.trim()}))})).catch((function(e){return null}));case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),t.getAgencyOrientedDomains=function(){var e=(0,c.default)(l.default.mark((function e(){var t;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,_("https://httpdns.cdn.bcebos.com/www.txt","https://dswcnhr3lpzog.cloudfront.net/www.txt").then((function(e){var t=(0,m.AES_CBC_DECRYPT)(e).split(",").map((function(e){return e.trim()})),n="";if(t){var r=t.length;n=t[Math.floor(Math.random()*r)]}return"https://".concat(n)})).catch((function(e){return null}));case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),t.getAffiliateDomains=function(){var e=(0,c.default)(l.default.mark((function e(){var t;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,_("https://httpdns.cdn.bcebos.com/agency3.txt","https://dswcnhr3lpzog.cloudfront.net/agency3.txt").then((function(e){var t=(0,m.AES_CBC_DECRYPT)(e).split(",").map((function(e){return e.trim()})),n="";if(t){var r=t.length;n=t[Math.floor(Math.random()*r)]}return"https://".concat(n)})).catch((function(e){return null}));case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),t.getAuditData=function(){var e=(0,c.default)(l.default.mark((function e(){var t;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,_("https://httpdns.cdn.bcebos.com/audit.txt","https://dswcnhr3lpzog.cloudfront.net/audit.txt").then((function(e){return(0,m.AES_CBC_DECRYPT)(e)})).catch((function(e){return null}));case 2:return t=e.sent,v.isClient&&window.$nuxt&&window.$nuxt.$store.commit("SET_AUDIT_DATA",t),e.abrupt("return",t);case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()},153:function(e,t,n){"use strict";var r=n(0),o=n(1);r(t,"__esModule",{value:!0}),t.getParser=t.getFinger=t.checkIsCrawlerBot=void 0;var l=o(n(1172)),c=o(n(1174)),d=n(60);t.getParser=function(){var e=new c.default(navigator.userAgent);return{os:e.getOS(),browser:e.getBrowser()}},t.checkIsCrawlerBot=function(){var e=new RegExp("((".concat(d.CRAWLER_UA_TOKENS.map((function(e){return e})).join("|"),"))")),t=new c.default(navigator.userAgent).getUA();return e.test(t)};function f(e){return l.default.x64hash128(e,31)}t.getFinger=function(e){window.requestIdleCallback?requestIdleCallback((function(){l.default.get((function(t){var n=f(t.map((function(component){return component.value})).join(""));e&&e(n)}))})):setTimeout((function(){l.default.get((function(t){var n=f(t.map((function(component){return component.value})).join(""));e&&e(n)}))}),500)}},16:function(e,t,n){"use strict";n(0)(t,"__esModule",{value:!0}),t.localIpRegex=t.isTest=t.isStaging=t.isRC=t.isProduction=t.isLocal=t.isDev=t.isClient=t.TVDebugMode=void 0;var r=t.localIpRegex=/^(127\.0\.0\.1|192\.168\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)|localhost)$/,o=(t.isProduction=!0,t.isRC=!1,t.isStaging=!1,t.isTest=!1,t.isDev=!1,t.isClient="undefined"!=typeof window);t.TVDebugMode="false",t.isLocal=o&&r.test(window.location.hostname)},2252:function(e,t,n){"use strict";n(0)(t,"__esModule",{value:!0}),t.default=void 0;function r(){this.sd=null,this.start_time=+new Date,this.page_show_status=!0,this.page_hidden_status=!1,this._={},this.timer=null,this.current_page_url=document.referrer,this.url=location.href,this.title=document.title||"",this.option={},this.heartbeat_interval_time=5e3,this.heartbeat_interval_timer=null,this.page_id=null,this.storage_name="sawebjssdkpageleave",this.max_duration=432e3}r.prototype.init=function(e,t){if(e){if(this.sd=e,this._=this.sd._,t){this.option=t;var a=t.heartbeat_interval_time;a&&(this._.isNumber(a)||this._.isNumber(1*a))&&1*a>0&&(this.heartbeat_interval_time=1e3*a);var i=t.max_duration;i&&(this._.isNumber(i)||this._.isNumber(1*i))&&1*i>0&&(this.max_duration=i)}this.page_id=Number(String(this._.getRandom()).slice(2,5)+String(this._.getRandom()).slice(2,4)+String((new Date).getTime()).slice(-4)),this.addEventListener(),!0===document.hidden?this.page_show_status=!1:this.addHeartBeatInterval(),this.log("PageLeave初始化完毕")}else this.log("神策JS SDK未成功引入")},r.prototype.log=function(e){this.sd&&this.sd.log(e)},r.prototype.refreshPageEndTimer=function(){var e=this;this.timer&&(clearTimeout(this.timer),this.timer=null),this.timer=setTimeout((function(){e.page_hidden_status=!1}),5e3)},r.prototype.hiddenStatusHandler=function(){clearTimeout(this.timer),this.timer=null,this.page_hidden_status=!1},r.prototype.pageStartHandler=function(){this.start_time=+new Date,1==!document.hidden?this.page_show_status=!0:this.page_show_status=!1,this.url=location.href,this.title=document.title},r.prototype.pageEndHandler=function(){if(!0!==this.page_hidden_status){var e=this.getPageLeaveProperties();!1===this.page_show_status&&delete e.event_duration,this.page_show_status=!1,this.page_hidden_status=!0,this.isCollectUrl(this.url)&&this.sd.track("$WebPageLeave",e),this.refreshPageEndTimer(),this.delHeartBeatData()}},r.prototype.addEventListener=function(){this.addPageStartListener(),this.addPageSwitchListener(),this.addSinglePageListener(),this.addPageEndListener()},r.prototype.addPageStartListener=function(){var e=this;"onpageshow"in window&&this._.addEvent(window,"pageshow",(function(){e.pageStartHandler(),e.hiddenStatusHandler()}))},r.prototype.isCollectUrl=function(e){return"function"!=typeof this.option.isCollectUrl||"string"!=typeof e||""===e||this.option.isCollectUrl(e)},r.prototype.addSinglePageListener=function(){var e=this;this.sd.ee&&this.sd.ee.spa.prepend("switch",(function(t){t!==location.href&&(e.url=t,e.pageEndHandler(),e.stopHeartBeatInterval(),e.current_page_url=e.url,e.pageStartHandler(),e.hiddenStatusHandler(),e.addHeartBeatInterval())}))},r.prototype.addPageEndListener=function(){var e=this;this._.each(["pagehide","beforeunload","unload"],(function(t){"on"+t in window&&e._.addEvent(window,t,(function(){e.pageEndHandler(),e.stopHeartBeatInterval()}))}))},r.prototype.addPageSwitchListener=function(){var e=this;this._.listenPageState({visible:function(){e.pageStartHandler(),e.hiddenStatusHandler(),e.addHeartBeatInterval()},hidden:function(){e.url=location.href,e.title=document.title,e.pageEndHandler(),e.stopHeartBeatInterval()}})},r.prototype.addHeartBeatInterval=function(){this._.localStorage.isSupport()&&this.startHeartBeatInterval()},r.prototype.startHeartBeatInterval=function(){var e=this;this.heartbeat_interval_timer&&this.stopHeartBeatInterval();var t=!0;this.isCollectUrl(this.url)||(t=!1),this.heartbeat_interval_timer=setInterval((function(){t&&e.saveHeartBeatData()}),this.heartbeat_interval_time),t&&this.saveHeartBeatData("is_first_heartbeat"),this.reissueHeartBeatData()},r.prototype.stopHeartBeatInterval=function(){clearInterval(this.heartbeat_interval_timer),this.heartbeat_interval_timer=null},r.prototype.saveHeartBeatData=function(e){var t=this.getPageLeaveProperties(),a=new Date;t.$time=a,"is_first_heartbeat"===e&&(t.event_duration=3.14);var i=this.sd.kit.buildData({type:"track",event:"$WebPageLeave",properties:t});i.heartbeat_interval_time=this.heartbeat_interval_time,this.sd.store.saveObjectVal(this.storage_name+"-"+this.page_id,i)},r.prototype.delHeartBeatData=function(e){this._.localStorage.isSupport()&&this._.localStorage.remove(e||this.storage_name+"-"+this.page_id)},r.prototype.reissueHeartBeatData=function(){for(var e=window.localStorage.length-1;e>=0;e--){var t=window.localStorage.key(e);if(t&&t!==this.storage_name+"-"+this.page_id&&0===t.indexOf(this.storage_name+"-")){var a=this.sd.store.readObjectVal(t);this._.isObject(a)&&1*new Date-a.time>a.heartbeat_interval_time+5e3&&(delete a.heartbeat_interval_time,a._flush_time=(new Date).getTime(),this.sd.kit.sendData(a),this.delHeartBeatData(t))}}},r.prototype.getPageLeaveProperties=function(){var e=(+new Date-this.start_time)/1e3;(isNaN(e)||e<0||e>this.max_duration)&&(e=0),e=Number(e.toFixed(3));var t=this._.getReferrer(this.current_page_url),a=document.documentElement&&document.documentElement.scrollTop||window.pageYOffset||document.body&&document.body.scrollTop||0;a=Math.round(a)||0;var i={$title:this.title,$url:this._.getURL(this.url),$url_path:this._.getURLPath(this._.URL(this.url).pathname),$referrer_host:t?this._.getHostname(t):"",$referrer:t,$viewport_position:a};return 0!==e&&(i.event_duration=e),this._.extend(i,this.option.custom_props)};var o,l=new r,c=(function(e,t,a){if(t&&(e.plugin_name=t),a&&e.init){var i=e.init;e.init=function(n,r){if(function(e,t,a){function i(t,i){e.logger?e.logger.msg.apply(e.logger,i).module(a+""||"").level(t).log():e.log&&e.log.apply(e,i)}t.log=function(){i("log",arguments)},t.warn=function(){i("warn",arguments)},t.error=function(){i("error",arguments)}}(n,e,t),n.readyState&&n.readyState.state>=3||!n.on)return s();function s(){i.call(e,n,r)}n.on(a,s)}}}(o=l,"PageLeave","sdkReady"),o.plugin_version="1.26.4",o);t.default=c},2253:function(e,t,n){"use strict";n(0)(t,"__esModule",{value:!0}),t.default=void 0;var r,o=!1,l={init:function(e,t){function n(){var r=0,l=window.performance||window.webkitPerformance||window.msPerformance||window.mozPerformance,i={$url:e._.getURL(),$title:document.title,$url_path:e._.getURLPath(),$referrer:e._.getReferrer(null,!0)};if(l?(r=function(t){var n=0;return e._.isFunction(t.getEntriesByType)&&(n=((t.getEntriesByType("navigation")||[{}])[0]||{}).domContentLoadedEventEnd||0),n}(l)||function(t){var n=0;if(t.timing){var r=t.timing;0!==r.fetchStart&&e._.isNumber(r.fetchStart)&&0!==r.domContentLoadedEventEnd&&e._.isNumber(r.domContentLoadedEventEnd)?n=r.domContentLoadedEventEnd-r.fetchStart:e.log("performance 数据获取异常")}return n}(l),function(t,n){if(t.getEntries&&"function"==typeof t.getEntries){for(var r=t.getEntries(),o=null,i=0;i<r.length;i++)"transferSize"in r[i]&&(o+=r[i].transferSize);e._.isNumber(o)&&o>=0&&o<10737418240&&(n.$page_resource_size=Number((o/1024).toFixed(3)))}}(l,i)):e.log("浏览器未支持 performance API."),r>0){var a=e._.isObject(t)&&t.max_duration||1800;r=Number((r/1e3).toFixed(3)),(!e._.isNumber(a)||a<=0||r<=a)&&(i.event_duration=r)}o||(e.track("$WebPageLoad",i),o=!0),window.removeEventListener?window.removeEventListener("load",n):window.detachEvent&&window.detachEvent("onload",n)}"complete"==document.readyState?n():window.addEventListener?window.addEventListener("load",n):window.attachEvent&&window.attachEvent("onload",n)}},c=(function(e,t,n){if(t&&(e.plugin_name=t),n&&e.init){var r=e.init;e.init=function(o,i){if(function(e,t,n){function r(t,r){e.logger?e.logger.msg.apply(e.logger,r).module(n+""||"").level(t).log():e.log&&e.log.apply(e,r)}t.log=function(){r("log",arguments)},t.warn=function(){r("warn",arguments)},t.error=function(){r("error",arguments)}}(o,e,t),o.readyState&&o.readyState.state>=3||!o.on)return a();function a(){r.call(e,o,i)}o.on(n,a)}}}(r=l,"PageLoad","sdkReady"),r.plugin_version="1.26.5",r);t.default=c},2255:function(e,t,n){"use strict";var r=n(14),o=n(18),l=n(0),c=n(12),d=n(1);l(t,"__esModule",{value:!0}),t.default=void 0;var f=d(n(2)),h=d(n(3)),m=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=r(e)&&"function"!=typeof e)return{default:e};var n=v(t);if(n&&n.has(e))return n.get(e);var o={__proto__:null},a=l&&c;for(var u in e)if("default"!==u&&{}.hasOwnProperty.call(e,u)){var i=a?c(e,u):null;i&&(i.get||i.set)?l(o,u,i):o[u]=e[u]}return o.default=e,n&&n.set(e,o),o}(n(2256));function v(e){if("function"!=typeof o)return null;var t=new o,n=new o;return(v=function(e){return e?n:t})(e)}t.default=function(){return(0,h.default)((function e(){(0,f.default)(this,e)}),null,[{key:"install",value:function(e,t){e.prototype.TradingView=m}}])}()},2256:function(e,t,n){"use strict";var r,o,l,c,d=n(17),f=n(20),h=n(12),m=n(21),v=n(22),w=n(0),_=n(85),y=n(86),C=n(87),T=n(61),S=n(1),k=S(n(61)),E=S(n(15)),x=S(n(56)),L=S(n(0)),A=S(n(35)),P=S(n(2)),O=S(n(3)),I=S(n(13)),R=S(n(14));function B(e,t){var n=void 0!==y&&e[C]||e["@@iterator"];if(!n){if(T(e)||(n=function(e,a){if(e){if("string"==typeof e)return M(e,a);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?_(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?M(e,a):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var l,a=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,l=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw l}}}}function M(e,a){(null==a||a>e.length)&&(a=e.length);for(var t=0,n=Array(a);t<a;t++)n[t]=e[t];return n}function N(e,t){var n=d(e);if(f){var r=f(e);t&&(r=r.filter((function(t){return h(e,t).enumerable}))),n.push.apply(n,r)}return n}c=function(e){function t(e,n){var i=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?N(Object(n),!0).forEach((function(t){(0,I.default)(e,t,n[t])})):m?v(e,m(n)):N(Object(n)).forEach((function(t){w(e,t,h(n,t))}))}return e}({},e);for(var r in n)"object"!=(0,R.default)(e[r])||null===e[r]||(0,k.default)(e[r])?void 0!==n[r]&&(i[r]=n[r]):i[r]=t(e[r],n[r]);return i}var n={width:800,height:500,interval:"1D",timezone:"Etc/UTC",container:"",library_path:"",locale:"en",widgetbar:{details:!1,watchlist:!1,news:!1,datawindow:!1,watchlist_settings:{default_symbols:[]}},overrides:{"mainSeriesProperties.showCountdown":!1},studies_overrides:{},trading_customization:{position:{},order:{}},brokerConfig:{configFlags:{}},fullscreen:!1,autosize:!1,disabled_features:[],enabled_features:[],debug:!1,logo:{},time_frames:[{text:"5y",resolution:"1W"},{text:"1y",resolution:"1W"},{text:"6m",resolution:"120"},{text:"3m",resolution:"60"},{text:"1m",resolution:"30"},{text:"5d",resolution:"5"},{text:"1d",resolution:"1"}],client_id:"0",user_id:"0",charts_storage_api_version:"1.0",favorites:{intervals:[],chartTypes:[],indicators:[],drawingTools:[]}},i=JSON.parse('[{"iso":"ar","dir":"rtl","language":"ar"},{"iso":"pt","dir":"ltr","language":"pt"},{"iso":"ca","dir":"ltr","language":"ca_ES"},{"iso":"cs","dir":"ltr","language":"cs"},{"iso":"de","dir":"ltr","language":"de"},{"iso":"en","dir":"ltr","language":"en"},{"iso":"es","dir":"ltr","language":"es"},{"iso":"fa","dir":"rtl","language":"fa"},{"iso":"fr","dir":"ltr","language":"fr"},{"iso":"he","dir":"rtl","language":"he_IL"},{"iso":"hu","dir":"ltr","language":"hu_HU"},{"iso":"id","dir":"ltr","language":"id_ID"},{"iso":"en","dir":"ltr","language":"en"},{"iso":"it","dir":"ltr","language":"it"},{"iso":"ja","dir":"ltr","language":"ja"},{"iso":"ko","dir":"ltr","language":"ko"},{"iso":"ms","dir":"ltr","language":"ms_MY"},{"iso":"pl","dir":"ltr","language":"pl"},{"iso":"ru","dir":"ltr","language":"ru"},{"iso":"sv","dir":"ltr","language":"sv"},{"iso":"th","dir":"ltr","language":"th"},{"iso":"tr","dir":"ltr","language":"tr"},{"iso":"vi","dir":"ltr","language":"vi"},{"iso":"zh-Hans","dir":"ltr","language":"zh"},{"iso":"zh-Hant","dir":"ltr","language":"zh_TW"},{"iso":"el","dir":"ltr","language":"el"},{"iso":"nl","dir":"ltr","language":"nl_NL"},{"iso":"ro","dir":"ltr","language":"ro"}]'),r=!1;function s(){return"CL v27.005 (internal id d937bee0 @ 2024-05-07T15:20:48.667Z)"}var o=function(){return(0,O.default)((function e(o){var i,s;if((0,P.default)(this,e),this._id="tradingview_".concat((1048576*(1+Math.random())|0).toString(16).substring(1)),this._ready=!1,this._readyHandlers=[],this._onWindowResize=this._autoResizeChart.bind(this),!o.datafeed)throw new Error("Datafeed is not defined");(null===(i=o.overrides)||void 0===i?void 0:i["mainSeriesProperties.priceAxisProperties.lockScale"])&&delete o.overrides["mainSeriesProperties.priceAxisProperties.lockScale"],this._options=t(n,o),"dark"===(null!==(s=this._options.theme)&&void 0!==s?s:"light").toLowerCase()&&void 0===this._options.loading_screen&&(this._options.loading_screen={backgroundColor:"#131722"}),this._options.debug&&(r||(r=!0)),this._create()}),[{key:"setDebugMode",value:function(e){this._innerAPI().setDebugMode(e)}},{key:"onChartReady",value:function(e){this._ready?e.call(this):this._readyHandlers.push(e)}},{key:"headerReady",value:function(){var e=this;return this._innerWindowLoaded.then((function(){return e._innerWindow().headerReady()}))}},{key:"onGrayedObjectClicked",value:function(e){this._doWhenInnerApiLoaded((function(t){t.onGrayedObjectClicked(e)}))}},{key:"onShortcut",value:function(e,t){this._doWhenInnerWindowLoaded((function(n){n.createShortcutAction(e,t)}))}},{key:"subscribe",value:function(e,t){this._doWhenInnerApiLoaded((function(n){n.subscribe(e,t)}))}},{key:"unsubscribe",value:function(e,t){this._doWhenInnerApiLoaded((function(n){n.unsubscribe(e,t)}))}},{key:"chart",value:function(e){return this._innerAPI().chart(e)}},{key:"getLanguage",value:function(){return this._options.locale}},{key:"setSymbol",value:function(e,t,n){this._innerAPI().changeSymbol(e,t,n)}},{key:"remove",value:function(){window.removeEventListener("resize",this._onWindowResize),this._readyHandlers.splice(0,this._readyHandlers.length),delete window[this._id],this._iFrame.parentNode&&this._iFrame.parentNode.removeChild(this._iFrame)}},{key:"closePopupsAndDialogs",value:function(){this._doWhenInnerApiLoaded((function(e){e.closePopupsAndDialogs()}))}},{key:"selectLineTool",value:function(e,t){this._innerAPI().selectLineTool(e,t)}},{key:"selectedLineTool",value:function(){return this._innerAPI().selectedLineTool()}},{key:"save",value:function(e,t){this._innerAPI().saveChart(e,t)}},{key:"load",value:function(e,t){this._innerAPI().loadChart({json:e,extendedData:t})}},{key:"getSavedCharts",value:function(e){this._innerAPI().getSavedCharts(e)}},{key:"loadChartFromServer",value:function(e){this._innerAPI().loadChartFromServer(e)}},{key:"saveChartToServer",value:function(e,t,n){this._innerAPI().saveChartToServer(e,t,n)}},{key:"removeChartFromServer",value:function(e,t){this._innerAPI().removeChartFromServer(e,t)}},{key:"onContextMenu",value:function(e){this._doWhenInnerApiLoaded((function(t){t.onContextMenu(e)}))}},{key:"createButton",value:function(e){return this._innerWindow().createButton(e)}},{key:"createDropdown",value:function(e){return this._innerWindow().createDropdown(e)}},{key:"showNoticeDialog",value:function(e){this._doWhenInnerApiLoaded((function(t){t.showNoticeDialog(e)}))}},{key:"showConfirmDialog",value:function(e){this._doWhenInnerApiLoaded((function(t){t.showConfirmDialog(e)}))}},{key:"showLoadChartDialog",value:function(){this._innerAPI().showLoadChartDialog()}},{key:"showSaveAsChartDialog",value:function(){this._innerAPI().showSaveAsChartDialog()}},{key:"symbolInterval",value:function(){return this._innerAPI().getSymbolInterval()}},{key:"mainSeriesPriceFormatter",value:function(){return this._innerAPI().mainSeriesPriceFormatter()}},{key:"getIntervals",value:function(){return this._innerAPI().getIntervals()}},{key:"getStudiesList",value:function(){return this._innerAPI().getStudiesList()}},{key:"getStudyInputs",value:function(e){return this._innerAPI().getStudyInputs(e)}},{key:"getStudyStyles",value:function(e){return this._innerAPI().getStudyStyles(e)}},{key:"addCustomCSSFile",value:function(e){this._innerWindow().addCustomCSSFile(e)}},{key:"applyOverrides",value:function(e){this._options=t(this._options,{overrides:e}),this._doWhenInnerWindowLoaded((function(t){t.applyOverrides(e)}))}},{key:"applyStudiesOverrides",value:function(e){this._doWhenInnerWindowLoaded((function(t){t.applyStudiesOverrides(e)}))}},{key:"watchList",value:function(){return this._innerAPI().watchlist()}},{key:"news",value:function(){return this._innerAPI().news()}},{key:"widgetbar",value:function(){return this._innerAPI().widgetbar()}},{key:"activeChart",value:function(){return this._innerAPI().activeChart()}},{key:"activeChartIndex",value:function(){return this._innerAPI().activeChartIndex()}},{key:"setActiveChart",value:function(e){return this._innerAPI().setActiveChart(e)}},{key:"chartsCount",value:function(){return this._innerAPI().chartsCount()}},{key:"layout",value:function(){return this._innerAPI().layout()}},{key:"setLayout",value:function(e){this._innerAPI().setLayout(e)}},{key:"layoutName",value:function(){return this._innerAPI().layoutName()}},{key:"resetLayoutSizes",value:function(e){this._innerAPI().resetLayoutSizes(e)}},{key:"changeTheme",value:function(e,t){return this._innerWindow().changeTheme(e,t)}},{key:"getTheme",value:function(){return this._innerWindow().getTheme()}},{key:"takeScreenshot",value:function(){this._doWhenInnerApiLoaded((function(e){e.takeScreenshot()}))}},{key:"lockAllDrawingTools",value:function(){return this._innerAPI().lockAllDrawingTools()}},{key:"hideAllDrawingTools",value:function(){return this._innerAPI().hideAllDrawingTools()}},{key:"drawOnAllChartsEnabled",value:function(){return this._innerAPI().drawOnAllChartsEnabled()}},{key:"drawOnAllCharts",value:function(e){this._innerAPI().drawOnAllCharts(e)}},{key:"magnetEnabled",value:function(){return this._innerAPI().magnetEnabled()}},{key:"magnetMode",value:function(){return this._innerAPI().magnetMode()}},{key:"undoRedoState",value:function(){return this._innerAPI().undoRedoState()}},{key:"setIntervalLinkingEnabled",value:function(e){this._innerAPI().setIntervalLinkingEnabled(e)}},{key:"setDateRangeLinkingEnabled",value:function(e){this._innerAPI().setDateRangeLinkingEnabled(e)}},{key:"setTimeFrame",value:function(e){this._innerAPI().setTimeFrame(e)}},{key:"symbolSync",value:function(){return this._innerAPI().symbolSync()}},{key:"intervalSync",value:function(){return this._innerAPI().intervalSync()}},{key:"crosshairSync",value:function(){return this._innerAPI().crosshairSync()}},{key:"timeSync",value:function(){return this._innerAPI().timeSync()}},{key:"dateRangeSync",value:function(){return this._innerAPI().dateRangeSync()}},{key:"setFeatureEnabled",value:function(e,t){this._innerAPI().setFeatureEnabled(e,t)}},{key:"getAllFeatures",value:function(){return this._innerWindow().getAllFeatures()}},{key:"clearUndoHistory",value:function(){return this._innerAPI().clearUndoHistory()}},{key:"undo",value:function(){return this._innerAPI().undo()}},{key:"redo",value:function(){return this._innerAPI().redo()}},{key:"startFullscreen",value:function(){this._innerAPI().startFullscreen()}},{key:"exitFullscreen",value:function(){this._innerAPI().exitFullscreen()}},{key:"takeClientScreenshot",value:function(e){return this._innerAPI().takeClientScreenshot(e)}},{key:"navigationButtonsVisibility",value:function(){return this._innerWindow().getNavigationButtonsVisibility()}},{key:"paneButtonsVisibility",value:function(){return this._innerWindow().getPaneButtonsVisibility()}},{key:"dateFormat",value:function(){return this._innerWindow().getDateFormat()}},{key:"timeHoursFormat",value:function(){return this._innerWindow().getTimeHoursFormat()}},{key:"currencyAndUnitVisibility",value:function(){return this._innerWindow().getCurrencyAndUnitVisibility()}},{key:"supportedChartTypes",value:function(){return this._innerAPI().supportedChartTypes()}},{key:"watermark",value:function(){return this._innerAPI().watermark()}},{key:"customSymbolStatus",value:function(){return this._innerWindow().customSymbolStatus()}},{key:"setCSSCustomProperty",value:function(e,t){if(!1===e.startsWith("--"))throw new Error("customPropertyName should begin with a double hyphen");this._innerWindow().document.body.style.setProperty(e,t)}},{key:"getCSSCustomPropertyValue",value:function(e){if(!1===e.startsWith("--"))throw new Error("customPropertyName should begin with a double hyphen");var t=this._innerWindow().document.body,n=t.style.getPropertyValue(e);return n||getComputedStyle(t).getPropertyValue(e)}},{key:"unloadUnusedCharts",value:function(){this._innerAPI().unloadUnusedCharts()}},{key:"linking",value:function(){return this._innerAPI().linking}},{key:"_innerAPI",value:function(){return this._innerWindow().tradingViewApi}},{key:"_innerWindow",value:function(){return this._iFrame.contentWindow}},{key:"_doWhenInnerWindowLoaded",value:function(e){var t=this;this._ready?e(this._innerWindow()):this._innerWindowLoaded.then((function(){e(t._innerWindow())}))}},{key:"_doWhenInnerApiLoaded",value:function(e){var t=this;this._doWhenInnerWindowLoaded((function(n){n.doWhenApiIsReady((function(){return e(t._innerAPI())}))}))}},{key:"_autoResizeChart",value:function(){var e=this;this._options.fullscreen&&(this._iFrame.style.height=window.innerHeight+"px",a&&setTimeout((function(){e._iFrame.style.height=window.innerHeight+"px"}),30))}},{key:"_create",value:function(){var e,t,n=this,r=null!==(t=null===(e=this._options.enabled_features)||void 0===e?void 0:e.includes("iframe_loading_compatibility_mode"))&&void 0!==t&&t,o=this._render(!r),l=(0,A.default)(o,2),i=l[0],c=l[1],s=this._options.container,d="string"==typeof s?document.getElementById(s):s;if(null===d)throw new Error("There is no such element - #".concat(this._options.container));d.innerHTML=i,this._iFrame=d.querySelector("#".concat(this._id));var a=this._iFrame;this._innerWindowLoaded=new E.default((function(e){var t=function(){a.removeEventListener("load",t,!1),e()};a.addEventListener("load",t,!1)})),r&&a.contentWindow&&(a.contentWindow.document.open(),a.contentWindow.document.write(c),a.contentWindow.document.close()),(this._options.autosize||this._options.fullscreen)&&(a.style.width="100%",this._options.fullscreen||(a.style.height="100%")),window.addEventListener("resize",this._onWindowResize),this._onWindowResize(),this._innerWindowLoaded.then((function(){try{n._innerWindow().widgetReady((function(){n._ready=!0;var e,t=B(n._readyHandlers);try{for(t.s();!(e=t.n()).done;){var r=e.value;try{r.call(n)}catch(e){}}}catch(e){t.e(e)}finally{t.f()}n._innerWindow().initializationFinished()}))}catch(e){if(e instanceof Error&&/widgetReady is not a function/.test(e.message))throw new Error("There was an error when loading the library. Usually this error means the library failed to load its static files. Check that the library files are available at ".concat(window.location.host,"/").concat(n._options.library_path||""," or correct the library_path option."))}}))}},{key:"_render",value:function(e){var t=window;if(t[this._id]={datafeed:this._options.datafeed,customFormatters:this._options.custom_formatters,brokerFactory:this._options.broker_factory,overrides:this._options.overrides,studiesOverrides:this._options.studies_overrides,tradingCustomization:this._options.trading_customization,disabledFeatures:this._options.disabled_features,enabledFeatures:this._options.enabled_features,brokerConfig:this._options.broker_config||this._options.brokerConfig,restConfig:this._options.restConfig,favorites:this._options.favorites,logo:this._options.logo,numeric_formatting:this._options.numeric_formatting,rss_news_feed:this._options.rss_news_feed,rss_news_title:this._options.rss_news_title,newsProvider:this._options.news_provider,loadLastChart:this._options.load_last_chart,saveLoadAdapter:this._options.save_load_adapter,loading_screen:this._options.loading_screen,settingsAdapter:this._options.settings_adapter,getCustomIndicators:this._options.custom_indicators_getter,additionalSymbolInfoFields:this._options.additional_symbol_info_fields,headerWidgetButtonsMode:this._options.header_widget_buttons_mode,customTranslateFunction:this._options.custom_translate_function,symbolSearchComplete:this._options.symbol_search_complete,contextMenu:this._options.context_menu,settingsOverrides:this._options.settings_overrides,timeframe:this._options.timeframe,customTimezones:this._options.custom_timezones,customChartDescriptionFunction:this._options.custom_chart_description_function},this._options.saved_data)t[this._id].chartContent={json:this._options.saved_data},this._options.saved_data_meta_info&&(t[this._id].chartContentExtendedData=this._options.saved_data_meta_info);else if(!this._options.load_last_chart&&!this._options.symbol)throw new Error("Symbol is not defined: either 'symbol' or 'load_last_chart' option must be set");if(this._options.library_path&&this._options.library_path.endsWith("/"),this._options.locale){var n=encodeURIComponent(this._options.locale);i.findIndex((function(e){return e.language===n}))>=0||(this._options.locale="en")}var r=function(e,t){var n,r,o=new URL("".concat(e||""),location.href).href,s=JSON.parse('["bundles/runtime.1f6691a05496db116913.js","bundles/__LANG__.4716.e4ac74dfc9ec5374b00c.js","bundles/6150.bda60280b05cea478076.css","bundles/5142.2c34c8656148cc5203b7.js","bundles/library.53d7b371803f8096a4cd.js"]'),l=encodeURIComponent(t),a=null!==(n=i.find((function(e){return e.language===l})))&&void 0!==n?n:{iso:"en",dir:"ltr"},c='lang="'.concat(a.iso,'" dir="').concat(a.dir,'"'),d="\n".concat(function(e,t,n){if(void 0===e)return"";var r,i=[],o=[],l=B(e);try{for(l.s();!(r=l.n()).done;){var c=r.value;c.endsWith(".js")?i.push('<script defer crossorigin="anonymous" src="'.concat(c.replace("__LANG__",n),'"><\/script>')):c.endsWith(".css")&&o.push('<link type="text/css" href="'.concat(t?c.replace(/\.css$/i,".rtl.css"):c,'" rel="stylesheet"/>'))}}catch(e){l.e(e)}finally{l.f()}return[].concat(i,o).join("\n")}(s,"rtl"===a.dir,l),"\n");return"<!DOCTYPE html><html ".concat((r={bundles:d,localeLanguage:l,htmlAttrs:c,libraryPath:o}).htmlAttrs,'><head><base href="').concat(r.libraryPath,'"><meta charset="utf-8"><script>window===window.parent&&(location.href="about:blank")<\/script> ').concat(r.bundles,' </head><body class="chart-page unselectable on-widget"><div class="loading-indicator" id="loading-indicator"></div><script>var JSServer={},__initialEnabledFeaturesets=["charting_library"]<\/script><script>(function() {\n\t\twindow.urlParams = (function () {\n\t\t\tvar match,\n\t\t\t\tpl\t = /\\+/g,  // Regex for replacing addition symbol with a space\n\t\t\t\tsearch = /([^&=]+)=?([^&]*)/g,\n\t\t\t\tdecode = function (s) { return decodeURIComponent(s.replace(pl, \' \')).replace(/<\\/?[^>]+(>|$)/g, \'\'); },\n\t\t\t\tquery = function() {\n\t\t\t\t\t// We don\'t use hash on the url because: safari 13 throws an error if you attempt this\n\t\t\t\t\t// on a blob, and safari 14 will strip hash from blob urls.\n\t\t\t\t\tif (frameElement && frameElement.dataset.widgetOptions) {\n\t\t\t\t\t\treturn frameElement.dataset.widgetOptions;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tthrow "Unexpected use of this page";\n\t\t\t\t\t}\n\t\t\t\t}(),\n\t\t\t\tresult = {};\n\n\t\t\twhile (match = search.exec(query)) {\n\t\t\t\tresult[decode(match[1])] = decode(match[2]);\n\t\t\t}\n\n\t\t\tvar additionalSettingsObject = window.parent[result.uid];\n\n\t\t\tvar customObjectNames = [\'datafeed\', \'customFormatters\', \'brokerFactory\', \'save_load_adapter\', \'customTranslateFunction\', \'contextMenu\'];\n\n\t\t\tfor (var p in additionalSettingsObject) {\n\t\t\t\tif (customObjectNames.indexOf(p) === -1) {\n\t\t\t\t\tresult[p] = JSON.stringify(additionalSettingsObject[p]);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn result;\n\t\t})();\n\n\t\twindow.locale = urlParams.locale;\n\t\twindow.language = urlParams.locale; // a very big attention needed here\n\t\twindow.customTranslateFunction = window.parent[urlParams.uid].customTranslateFunction;\n\t\twindow.customChartDescriptionFunction = window.parent[urlParams.uid].customChartDescriptionFunction;\n\n\t\twindow.addCustomCSSFile = function(href) {\n\t\t\tvar link = document.createElement(\'link\');\n\t\t\tlink.setAttribute(\'type\', \'text/css\');\n\t\t\tlink.setAttribute(\'rel\', \'stylesheet\');\n\t\t\tlink.setAttribute(\'href\', href);\n\t\t\tlink.setAttribute(\'cross-origin\', \'anonymous\');\n\n\t\t\twindow.loadedCustomCss = new Promise((resolve) => {\n\t\t\t\tlink.onload = resolve;\n\t\t\t\tlink.onerror = resolve;\n\t\t\t});\n\t\t\tdocument.body.appendChild(link);\n\t\t};\n\n\t\twindow.loadedCustomCss = Promise.resolve();\n\t\tif (!!urlParams.customCSS) {\n\t\t\twindow.addCustomCSSFile(urlParams.customCSS);\n\t\t}\n\n\t\tvar loadingScreenParams = {};\n\n\t\tif (typeof urlParams.loading_screen === \'string\') {\n\t\t\ttry {\n\t\t\t\tloadingScreenParams = JSON.parse(urlParams.loading_screen);\n\t\t\t} catch(e) {}\n\t\t}\n\n\t\tvar loadingIndicatorElement = document.getElementById(\'loading-indicator\');\n\n\t\tif (loadingScreenParams.backgroundColor) {\n\t\t\tloadingIndicatorElement.style = \'background-color: \' + loadingScreenParams.backgroundColor;\n\t\t}\n\n\t\t!function(){"use strict";var t,e=new WeakMap;!function(t){t[t.Element=1]="Element",t[t.Document=9]="Document"}(t||(t={}));var n={mini:"xsmall",xxsmall:"xxsmall",xsmall:"xsmall",small:"small",medium:"medium",large:"large"};var s,i,o,r,l,c=(void 0===l&&(l=""),s=\'<div class="tv-spinner \'.concat(l,\'" role="progressbar"></div>\'),o=function(n,s){var i,o;return i=null==s?document.documentElement:s.nodeType===t.Document?s.documentElement:s,e&&(o=e.get(i)),o||((o=i.ownerDocument.createRange()).selectNodeContents(i),e&&e.set(i,o)),o.createContextualFragment(n)}(s,i),null!==(r=o.firstElementChild)&&o.removeChild(r),r),a=function(){function t(t){this._shown=!1,this._el=c.cloneNode(!0),this.setSize(n[t||"large"])}return t.prototype.spin=function(t){return this._el.classList.add("tv-spinner--shown"),void 0===this._container&&(this._container=t,void 0!==t&&t.appendChild(this._el)),this._shown=!0,this},t.prototype.stop=function(t){return t&&void 0!==this._container&&this._container.removeChild(this._el),this._el&&this._el.classList.remove("tv-spinner--shown"),this._shown=!1,this},t.prototype.setStyle=function(t){var e=this;return Object.keys(t).forEach((function(n){var s=t[n];void 0!==s&&e._el.style.setProperty(n,s)})),this},t.prototype.style=function(){return this._el.style},t.prototype.setSize=function(t){var e=void 0!==t?"tv-spinner--size_".concat(t):"";return this._el.className="tv-spinner ".concat(e," ").concat(this._shown?"tv-spinner--shown":""),this},t.prototype.getEl=function(){return this._el},t.prototype.destroy=function(){this.stop(),delete this._el,delete this._container},t}();window.Spinner=a}();\n\n\n\t\tvar spinnerColor = (loadingScreenParams.foregroundColor) ? loadingScreenParams.foregroundColor : undefined;\n\n\t\tvar loadingSpinner = new Spinner(\'large\').setStyle({\n\t\t\t\'--tv-spinner-color\': spinnerColor,\n\t\t\tzIndex: String(2e9),\n\t\t});\n\t\tloadingSpinner.getEl().classList.add(\'spinner\');\n\t\tloadingSpinner.spin(loadingIndicatorElement);\n\t})();<\/script></body></html>')}(this._options.library_path||"",this._options.locale),o=new URL("about:blank");if(e){var l=new Blob([r],{type:"text/html"}),c=URL.createObjectURL(l);o=new URL(c)}var s="symbol="+encodeURIComponent(this._options.symbol||"")+"&interval="+encodeURIComponent(this._options.interval)+(this._options.toolbar_bg?"&toolbarbg="+encodeURIComponent(this._options.toolbar_bg.replace("#","")):"")+(this._options.studies_access?"&studiesAccess="+encodeURIComponent((0,x.default)(this._options.studies_access)):"")+"&widgetbar="+encodeURIComponent((0,x.default)(this._options.widgetbar))+(this._options.drawings_access?"&drawingsAccess="+encodeURIComponent((0,x.default)(this._options.drawings_access)):"")+"&timeFrames="+encodeURIComponent((0,x.default)(this._options.time_frames))+"&locale="+encodeURIComponent(this._options.locale)+"&uid="+encodeURIComponent(this._id)+"&clientId="+encodeURIComponent(String(this._options.client_id))+"&userId="+encodeURIComponent(String(this._options.user_id))+(this._options.charts_storage_url?"&chartsStorageUrl="+encodeURIComponent(this._options.charts_storage_url):"")+(this._options.charts_storage_api_version?"&chartsStorageVer="+encodeURIComponent(this._options.charts_storage_api_version):"")+(this._options.custom_css_url?"&customCSS="+encodeURIComponent(this._options.custom_css_url):"")+(this._options.custom_font_family?"&customFontFamily="+encodeURIComponent(this._options.custom_font_family):"")+(this._options.auto_save_delay?"&autoSaveDelay="+encodeURIComponent(String(this._options.auto_save_delay)):"")+"&debug="+encodeURIComponent(String(this._options.debug))+(this._options.snapshot_url?"&snapshotUrl="+encodeURIComponent(this._options.snapshot_url):"")+(this._options.timezone?"&timezone="+encodeURIComponent(this._options.timezone):"")+(this._options.study_count_limit?"&studyCountLimit="+encodeURIComponent(String(this._options.study_count_limit)):"")+(this._options.symbol_search_request_delay?"&ssreqdelay="+encodeURIComponent(String(this._options.symbol_search_request_delay)):"")+(this._options.compare_symbols?"&compareSymbols="+encodeURIComponent((0,x.default)(this._options.compare_symbols)):"")+(this._options.theme?"&theme="+encodeURIComponent(String(this._options.theme)):"")+(this._options.header_widget_buttons_mode?"&header_widget_buttons_mode="+encodeURIComponent(String(this._options.header_widget_buttons_mode)):"")+(this._options.time_scale?"&time_scale="+encodeURIComponent((0,x.default)(this._options.time_scale)):"");return['<iframe\n\t\tid="'.concat(this._id,'" name="').concat(this._id,'" src="').concat(o.href,'" data-widget-options="').concat(s,'"\n\t\t').concat(this._options.autosize||this._options.fullscreen?"":'width="'.concat(this._options.width,'" height="').concat(this._options.height,'"'),' title="Financial Chart" frameborder="0" allowTransparency="true" scrolling="no" allowfullscreen style="display:block;">\n\t</iframe>'),r]}}])}();"undefined"!=typeof window&&(window.TradingView=window.TradingView||{},window.TradingView.version=s);var a=!("undefined"==typeof window||!window.navigator||!window.navigator.userAgent)&&window.navigator.userAgent.includes("CriOS");e.version=s,e.widget=o,(0,L.default)(e,"__esModule",{value:!0})},"object"==(0,R.default)(t)&&void 0!==e?c(t):(o=[t],void 0===(l="function"==typeof(r=c)?r.apply(t,o):r)||(e.exports=l))},2354:function(e,t,n){"use strict";var r=n(85),o=n(86),l=n(87),c=n(61);n(0)(t,"__esModule",{value:!0}),t.findFaRouteConfig=function(path){var e,t="/"+f.languageKeyMap.fa,n=path.replace(t,"").split("?")[0],r=h(d.faConfig);try{for(r.s();!(e=r.n()).done;){var o=e.value;if(""===n)return d.faConfig.find((function(e){return"/"===e.path}));if(n.startsWith(o.path)&&"/"!==o.path)return o}}catch(e){r.e(e)}finally{r.f()}return null},t.matchFaRoute=v,t.matchFaRouteWithFaConfig=function(path){return v(d.faConfig,path)};var d=n(534),f=n(55);function h(e,t){var n=void 0!==o&&e[l]||e["@@iterator"];if(!n){if(c(e)||(n=function(e,a){if(e){if("string"==typeof e)return m(e,a);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?r(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?m(e,a):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var d=0,f=function(){};return{s:f,n:function(){return d>=e.length?{done:!0}:{done:!1,value:e[d++]}},e:function(e){throw e},f:f}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var h,a=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,h=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw h}}}}function m(e,a){(null==a||a>e.length)&&(a=e.length);for(var t=0,n=Array(a);t<a;t++)n[t]=e[t];return n}function v(e,path){var t,n="/"+f.languageKeyMap.fa,r=path.replace(n,"").split("?")[0],o=h(e);try{for(o.s();!(t=o.n()).done;){var l=t.value;if(""===r)return e.some((function(e){return"/"===e.path}));if(r.startsWith(l.path)&&"/"!==l.path)return!0}}catch(e){o.e(e)}finally{o.f()}return!1}},2355:function(e,t,n){"use strict";var r=n(14),o=n(18),l=n(0),c=n(12),d=n(1);l(t,"__esModule",{value:!0}),t.WebsocketProvider=t.WEBSOCKET_PROVIDER_ENUM=void 0;var f=d(n(56)),h=d(n(44)),m=d(n(32)),v=d(n(14));d(n(407));n(328);var w=d(n(408)),_=d(n(94)),y=d(n(33)),C=d(n(2)),T=d(n(3)),S=d(n(13)),k=n(337),E=n(62),x=n(26),L=n(737),A=d(n(66)),P=B(n(54)),O=B(n(39)),I=n(2356);function R(e){if("function"!=typeof o)return null;var t=new o,n=new o;return(R=function(e){return e?n:t})(e)}function B(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=r(e)&&"function"!=typeof e)return{default:e};var n=R(t);if(n&&n.has(e))return n.get(e);var o={__proto__:null},a=l&&c;for(var u in e)if("default"!==u&&{}.hasOwnProperty.call(e,u)){var i=a?c(e,u):null;i&&(i.get||i.set)?l(o,u,i):o[u]=e[u]}return o.default=e,n&&n.set(e,o),o}var M=n(334),N=0,D=(t.WebsocketProvider=function(){function e(t){for(var n in(0,C.default)(this,e),(0,S.default)(this,"_websocketUrl",void 0),(0,S.default)(this,"_connection",void 0),(0,S.default)(this,"_executeQueue",void 0),(0,S.default)(this,"_listeners",void 0),(0,S.default)(this,"_heartbeatCounter",void 0),(0,S.default)(this,"_heartbeatTime",void 0),(0,S.default)(this,"_customLifeCycleCallbacks",void 0),(0,S.default)(this,"_subscribeActionRecords",void 0),(0,S.default)(this,"_closeFlag",void 0),(0,S.default)(this,"_reconnectFlag",void 0),(0,S.default)(this,"_reconnectTimer",void 0),(0,S.default)(this,"_connectTimeoutSec",void 0),(0,S.default)(this,"_option",void 0),(0,S.default)(this,"socketCompress",void 0),(0,S.default)(this,"needReport",void 0),(0,S.default)(this,"currentSocketIndex",void 0),(0,S.default)(this,"socketScoreBoard",void 0),(0,S.default)(this,"timeBoard",void 0),(0,S.default)(this,"messageLength",void 0),(0,S.default)(this,"messageBegin",void 0),(0,S.default)(this,"messageEnd",void 0),(0,S.default)(this,"_reconnectBeginTime",void 0),(0,S.default)(this,"_reconnectEndTime",void 0),(0,S.default)(this,"showErr1007",void 0),(0,S.default)(this,"_sensorsReportInterval",void 0),(0,S.default)(this,"_heartbeatTimes",void 0),(0,S.default)(this,"sensorsReport",void 0),this._websocketUrl=t,this.socketCompress=!0,this._listeners={},this._executeQueue=[],this._customLifeCycleCallbacks={},this._option={debug:"false"},this.needReport=M.bbSocketReport,D)D.hasOwnProperty(n)&&(this._customLifeCycleCallbacks[n]=[]);this._subscribeActionRecords={},this._connectTimeoutSec=5e3,this._sensorsReportInterval=6e4,this._heartbeatTimes=[],this._initStatisticData(),this.needReport&&(this.socketScoreBoard=JSON.parse(localStorage.getItem("weex::bbSocket::score")||"[]"),this.currentSocketIndex=-1)}return(0,T.default)(e,[{key:"_initStatisticData",value:function(){this.timeBoard={},this.messageLength=0,this.messageBegin=this.messageEnd=!1}},{key:"_getUrl",value:(t=(0,y.default)(m.default.mark((function e(){return m.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,E.getStreamWSUrl)();case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),function(){return t.apply(this,arguments)})},{key:"_notify",value:function(e,data){this._listeners[e]&&this._listeners[e].forEach((function(e){"function"==typeof e&&e(data)}))}},{key:"_clearSensorsReportTimer",value:function(){this.sensorsReport&&clearInterval(this.sensorsReport),this._heartbeatTimes.length>0&&((0,A.default)("ws_response_time",this._websocketUrl,{ext:this._heartbeatTimes.join(",")}),this._heartbeatTimes=[])}},{key:"_beginHeartbeat",value:function(){var e=this,t="requestTheheartbeat",n=0;this._clearSensorsReportTimer();var r=function(){if(n&&clearTimeout(n),(new Date).getTime()-e._heartbeatTime>5e3)return e.reconnect(),void e._clearSensorsReportTimer();e.isConnected()?(e._time("ping"),e.sendMsg((0,f.default)({action:t,id:t+"|ping|"+(new Date).getTime()})),n=setTimeout(r,e._connectTimeoutSec)):e._clearSensorsReportTimer()};r(),this.sensorsReport=setInterval((function(){(0,A.default)("ws_response_time",e._websocketUrl,{ext:e._heartbeatTimes.join(",")}),e._heartbeatTimes=[]}),this._sensorsReportInterval)}},{key:"_executeCustomLifeCycleCallback",value:function(e,t){D.hasOwnProperty(e)&&this._customLifeCycleCallbacks[e].forEach((function(e){e.apply(void 0,(0,_.default)(t))}))}},{key:"isConnected",value:function(){return this._connection&&1===this._connection.readyState}},{key:"isConnecting",value:function(){return this._connection&&0===this._connection.readyState}},{key:"_time",value:function(label){this.timeBoard[label]=(0,h.default)()}},{key:"_timeEnd",value:function(label){return this.timeBoard[label]?(0,h.default)()-this.timeBoard[label]:0}},{key:"_updateSocketRecord",value:function(e,t){var n=this.socketScoreBoard[this.currentSocketIndex];n.hasOwnProperty(e)&&(["errorCount"].indexOf(e)>-1?(n[e]=Number(n[e])+t,this._saveSocketRecord(!0)):n[e]=t)}},{key:"_insertSocketRecord",value:function(e,t){this.currentSocketIndex<0||(this.socketScoreBoard[this.currentSocketIndex]={name:e,url:t,score:0,errorCount:0,avgSpeed:0,time:(0,h.default)(),connectTime:0,messageLength:0,messageTime:0})}},{key:"_saveSocketRecord",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.socketScoreBoard[this.currentSocketIndex];t.connectTime?t.score=t.avgSpeed/(t.connectTime*(t.errorCount+1)):t.score=-1,e&&(t.score=-1,t.connectTime=0,t.messageLength=0,t.messageTime=0),localStorage.setItem("weex::bbSocket::score",(0,f.default)(this.socketScoreBoard))}},{key:"_getRecordsByMsg",value:function(e){var t=this._subscribeActionRecords[e];return t=this._updateRecordToken(t)}},{key:"_updateRecordToken",value:function(e){try{var t=JSON.parse(e);(0,I.isNeedUpdateTradeToken)(null==t?void 0:t.action)&&(t.token=O.default.get(O.TokenKey.R_TOKEN),e=(0,f.default)(t))}catch(e){}return e}},{key:"connect",value:function(){var e=this;this.isConnected()||(this._executeCustomLifeCycleCallback(D.BEFORE_OPEN),this._getUrl().then((function(t){e.needReport&&e._time("connect");var n=(0,E.getTokenData)(t);n=(0,x.removeTailRecursive)(n,"=");var r=new WebSocket(t,n);setTimeout((function(){e.isConnected()||(e._reconnectFlag=!1,e.reconnect(!0))}),e._connectTimeoutSec),r.onopen=function(){if(N=0,e._reconnectFlag&&clearTimeout(),e.needReport){var time=e._timeEnd("connect");e._updateSocketRecord("connectTime",time)}if(e._executeCustomLifeCycleCallback(D.ON_OPEN),setInterval((function(){if(e._executeQueue.length>0){var t=e._executeQueue.pop();e.sendMsg(t,!0)}}),100),e._reconnectFlag)for(var t in e._subscribeActionRecords)if(e._subscribeActionRecords.hasOwnProperty(t)&&e._subscribeActionRecords.hasOwnProperty(t)){var n=e._getRecordsByMsg(t);e.sendMsg(n)}e._beginHeartbeat(),e._reconnectFlag=!1},r.onerror=function(t){e._executeCustomLifeCycleCallback(D.ON_ERROR,t),e._reconnectFlag=!0,e.reconnect(!0)},r.onmessage=function(t){e._executeCustomLifeCycleCallback(D.ON_MESSAGE,t);var n=t.data;e.socketCompress?e._inflateMessage(n):e._dispatchMessage(n)},r.onclose=function(t){e._executeCustomLifeCycleCallback(D.ON_CLOSE,t),(null==t?void 0:t.code)===L.CONNECTION_ERROR_CODE.E1007?e.msgBoxE1007():e.reconnect()},e._connection=r})))}},{key:"msgBoxE1007",value:function(){var e=this;this.showErr1007=!0;var t="white"==(P.default.get(P.CookieKey.GLOBAL_THEME)||"black")?"big-icon-confirm single":"big-icon-confirm single black",r=n(65)();w.default.alert('<div class="forbidden-content center">'.concat(r.wsErr1007,"</div>"),"",{confirmButtonText:r.resetBtn,dangerouslyUseHTMLString:!0,customClass:t,type:"warning",title:"",center:!0,iconClass:"iconfont icon-tishi",closeOnClickModal:!1,closeOnPressEscape:!1,showCancelButton:!1}).then((function(){e.showErr1007=!1,e.reconnect()}))}},{key:"_inflateMessage",value:function(e){if(e instanceof Blob){var t=new FileReader,n=this;t.addEventListener("loadend",(function(){var e=(0,k.inflate)(t.result,{to:"string"});n._dispatchMessage(e)})),t.onerror=function(e){},t.readAsArrayBuffer(e)}else this._dispatchMessage(e)}},{key:"_debug",value:function(){if(this._option.debug)for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n]}},{key:"_dispatchMessage",value:function(e){try{var t=JSON.parse(String(e)),n=t.action;if("requestTheheartbeat"===n){this._heartbeatTime=(new Date).getTime();var time=this._timeEnd("ping");this._heartbeatTimes.push(time)}localStorage.getItem("bb::socket::debug");if(t.hasOwnProperty("action")&&this.needReport&&!this.messageEnd&&(this.messageLength+=String(e).length,"klineInit"===t.action)){var r=this._timeEnd("message");this._updateSocketRecord("messageLength",this.messageLength),this._updateSocketRecord("messageTime",r),this._updateSocketRecord("avgSpeed",this.messageLength/r),this.messageEnd=!0,this._saveSocketRecord()}this._notify(n,t)}catch(t){this._debug("data is not json:",e)}}},{key:"reconnect",value:function(e){var t=this;if(!this.showErr1007){if(this.isConnected()||this._reconnectFlag)return this._debug("isError1",e),void this._debug("this._reconnectFlag1",this._reconnectFlag);this._debug("isError2",e),this._debug("this._reconnectFlag2",this._reconnectFlag),this._executeCustomLifeCycleCallback(D.BEFORE_RECONNECT),this._reconnectFlag=!0,N++>=50&&(this._reconnectFlag=!1,clearTimeout(this._reconnectTimer),window.location.reload()),this._reconnectTimer&&clearTimeout(this._reconnectTimer),this.needReport&&e&&this._updateSocketRecord("errorCount",1),this._reconnectBeginTime=(new Date).getTime(),this._reconnectTimer=setTimeout((function(){t.connect(),t._reconnectEndTime=(new Date).getTime()}),(0,x.getWSTimoutMilliSecs)(N))}}},{key:"close",value:function(e){this._debug("close",e?"forced":"normal"),this._executeQueue.length=0,this._listeners={},this._executeCustomLifeCycleCallback(D.BEFORE_CLOSE),this._reconnectTimer&&clearTimeout(this._reconnectTimer)||(this._reconnectTimer=null),this._connection.onopen=function(){},this._connection.onclose=function(){},this._connection.onerror=function(){},this._connection.onmessage=function(){},this._connection.close()}},{key:"registerListener",value:function(e,t){var n=0;return this._listeners[e]?n=this._listeners[e].push(t)-1:this._listeners[e]=[t],n}},{key:"unregisterListener",value:function(e,t){this._listeners[e]&&this._listeners[e].splice(t,1)}},{key:"sendMsg",value:function(e){var t,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r="";if(this._debug("sendMsg",e),"string"==typeof e)r=String(e);else{if("object"!==(0,v.default)(e))return;r=(0,f.default)(e),e.hasOwnProperty("action")&&(this._subscribeActionRecords[e.action]=r)}this.isConnected()?(this.needReport&&(this.messageBegin||(this._time("message"),this.messageBegin=!0)),this._connection.send(r),"requestTheheartbeat"!==(null===(t=JSON.parse(r))||void 0===t?void 0:t.action)&&(0,A.default)("ws_trade_content",this._websocketUrl,{ext:r})):(this._executeQueue.push(r),n||this.connect())}},{key:"on",value:function(e,t){D.hasOwnProperty(e)&&"function"==typeof t&&this._customLifeCycleCallbacks[e].push(t)}}],[{key:"install",value:function(t,n){(0,E.getStreamWSUrl)().then((function(n){t.prototype.$websocket=new e(n),t.prototype.$websocketProviderEnmu=D}))}}]);var t}(),t.WEBSOCKET_PROVIDER_ENUM={BEFORE_OPEN:"BEFORE_OPEN",ON_OPEN:"ON_OPEN",ON_MESSAGE:"ON_MESSAGE",ON_ERROR:"ON_ERROR",BEFORE_CLOSE:"BEFORE_CLOSE",ON_CLOSE:"ON_CLOSE",BEFORE_RECONNECT:"BEFORE_RECONNECT"})},2356:function(e,t,n){"use strict";n(0)(t,"__esModule",{value:!0}),t.isNeedUpdateTradeToken=void 0;var r=n(974);t.isNeedUpdateTradeToken=function(e){return[r.TRADE_TOPICS.BALANCE,r.TRADE_TOPICS.ENTRUST_CHANGE].includes(e)}},26:function(e,t,n){"use strict";var r=n(14),o=n(18),l=n(0),c=n(12),d=n(1);l(t,"__esModule",{value:!0}),t.getCookieDomain=t.getCookie=t.getBrowerInfo=t.getBasicDomain=t.getAppInfo=t.generateRandomString=t.fuzzySearch=t.formatnumber=t.formatTradeCoinCode=t.formatTimestamp=t.formatNumberWithUnit=t.formatNumberUnit=t.formatExchangeName=t.formatDate=t.fixedDisplay=t.delLoginCookie=t.delCookie=t.debounce=t.countDownForDay=t.countDown=t.convertToBlob=t.convertToBase64=t.contractInfoNew=t.compareVersions=t.clearLauncher=t.checkTradeDoamin=t.checkSizeNewReg=t.checkPriceNewReg=t.callAppMethod=t.calculateLocalTimeWithUserTimeZone=t.calculateCountdown=t.calUsdtSize=t.calTickSize=t.calStepSizeByContactId=t.calStepSize=t.calSizeByUnitType=t.calRecordSizeByUnitType=t.blobToBase64=t.Languages=t.DirectionsColorMap=void 0,t.getCountryCode=function(){return D.apply(this,arguments)},t.urlToBase64=t.truncateNumber=t.tradeUnitDisplay=t.touchSlide=t.toThousands=t.throttle=t.symbolToProductCode=t.stepPlace=t.settlePromises=t.setCookie=t.scientificToDecimal=t.replaceZeroWithDash=t.removeTailRecursive=t.productCodeToSymbol=t.otcLinkReturn=t.otcLink=t.openFollow=t.openCopyFollow=t.mixLink=t.loadJs=t.loadImage=t.isOpenFollow=t.isOpenCopyFollow=t.isMultiple=t.isHome=t.isBrowserH5=t.isAndroidIosWebView=t.ipRegex=t.hideGlobalLoading=t.gotoMobilePath=t.goGlobalPath=t.getWSTimoutMilliSecs=t.getTradeDomain=t.getTicker=t.getSourceType=t.getSecure=t.getResolution=t.getPrevResolution=t.getLeverage=t.getLens=t.getLangUrl=t.getDomain=t.getDeviceInfo=t.getCurrentTime=t.getCurrentResolution=void 0;var f=d(n(32)),h=d(n(95)),m=d(n(484)),v=d(n(44)),w=d(n(56)),_=d(n(15)),y=d(n(33)),C=d(n(35)),T=d(n(772)),S=n(60),k=d(n(1138)),E=n(16),x=d(n(131)),L=d(n(173)),A=n(329),P=n(758),O=n(40),I=d(n(560)),R=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=r(e)&&"function"!=typeof e)return{default:e};var n=B(t);if(n&&n.has(e))return n.get(e);var o={__proto__:null},a=l&&c;for(var u in e)if("default"!==u&&{}.hasOwnProperty.call(e,u)){var i=a?c(e,u):null;i&&(i.get||i.set)?l(o,u,i):o[u]=e[u]}o.default=e,n&&n.set(e,o)}(n(39)),n(27));function B(e){if("function"!=typeof o)return null;var t=new o,n=new o;return(B=function(e){return e?n:t})(e)}t.ipRegex=/^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/,t.checkTradeDoamin=function(){if(E.isClient){var e=window.location.hostname,t=window.location.port;return E.isLocal?"3001"===t:e.includes("trade")}},t.getTradeDomain=function(){var e=window.location.protocol,t=window.location.hostname,n=window.location.port;return E.isLocal?n="3001":t=t.includes("weex.tech")||"www"===t.split(".")[0]?t.replace("www","trade"):"trade.".concat(t),"".concat(e,"//").concat(t).concat(n?":"+n:"")},t.getBasicDomain=function(){var e=window.location.protocol,t=window.location.hostname,n=window.location.port;return E.isLocal?n="3000":t=t.includes("weex.tech")||"trade"===t.split(".")[0]?t.replace("trade","www"):"www.".concat(t),"".concat(e,"//").concat(t).concat(n?":"+n:"")},t.getCookieDomain=function(){var e=E.isClient?window.location.hostname:"";if(E.isLocal)return e.split(":")[0];var t=e.split(".");return 2===t.length?"."+e:"."+t.slice(-2).join(".")},t.getDomain=function(e){var t="",n=e.hostname,r=n.split(".");"www"===r[0]?t="."+r.filter((function(e,t){return t>0})).join("."):t="."+(n=n.replace(/-web-separation/,"www"));return t},t.getSecure=function(e){return!!e.app.proxy&&"https"===(e.get("X-Forwarded-Proto")||"http").split(/\s*,\s*/)[0]},t.getCookie=function(e){L.default.get(e)},t.setCookie=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};n&&!n.expires&&(n.expires=7),L.default.set(e,t,n)};var M=t.delCookie=function(e){L.default.remove(e)};t.delLoginCookie=function(){M("bt_rtoken")},t.hideGlobalLoading=function(){E.isClient&&(document.getElementById("all-loading")&&(document.getElementById("all-loading").style.display="none"),window.scrollTo(0,0),window.isReady=!0)},t.loadJs=function(e,t){if(E.isClient){var script=document.createElement("script");script.type="text/javascript",void 0!==t&&(script.readyState?script.onreadystatechange=function(){"loaded"!==script.readyState&&"complete"!==script.readyState||(script.onreadystatechange=null,t&&t())}:script.onload=function(){t&&t()}),script.src=e,document.body.appendChild(script)}},t.countDown=function(e,t,n){var r=setInterval((function(){e<1e3&&(n(),clearInterval(r));var o=(0,h.default)(e/36e5),l=(0,h.default)(e%36e5/6e4),c=Math.floor(e%6e4/1e3);o<=9&&(o="0"+o),l<=9&&(l="0"+l),c<=9&&(c="0"+c),e-=1e3,t({timer:r,hours:o,minutes:l,seconds:c})}),1e3)},t.countDownForDay=function(e,t,n){var r=setInterval((function(){e<1e3&&(n(),clearInterval(r));var o=(0,h.default)(e/864e5),l=(0,h.default)(e%864e5/36e5),c=(0,h.default)(e%36e5/6e4),d=Math.floor(e%6e4/1e3);o<=9&&(o="0"+o),l<=9&&(l="0"+l),c<=9&&(c="0"+c),d<=9&&(d="0"+d),e-=1e3,t({timer:r,days:o,hours:l,minutes:c,seconds:d})}),1e3);return r},t.clearLauncher=function(){try{var e=document.getElementById("launcher");e&&(e.style.display="none"),setTimeout((function(){var e=document.getElementById("launcher");e&&(e.style.display="none")}),3e3)}catch(e){}},t.getLens=function(e){return null==e?0:("string"!=typeof e&&(e+=""),e.replace(/[^\x00-\xff]/g,"01").length)},t.otcLink=function(e){if(e){"/"!==e.substring(0,1)&&(e="/"+e);var t=location.origin,n="";return"https"===location.protocol.replace(/:/g,"")?(n=t+e,location.href=n,!1):t.indexOf("3000")>0?(n=t.replace("3000","3100")+e,location.href=n,!1):t.indexOf("itssofast")>0?(n=t+e,location.href=n,!1):void 0}},t.otcLinkReturn=function(e){if(!e)return"";"/"!==e.substring(0,1)&&(e="/"+e);var t=location.origin;return"https"===location.protocol.replace(/:/g,"")?t+e:t.indexOf("3000")>0?t.replace("3000","3100")+e:t.indexOf("itssofast")>0?t+e:void 0},t.mixLink=function(e){if(!e)return"";"/"!==e.substring(0,1)&&(e="/"+e);var t=location.origin;return"https"===location.protocol.replace(/:/g,"")?t+e:t.indexOf("3000")>0?t.replace("3000","3300")+e:t.indexOf("itssofast")>0?t+e:void 0},t.formatDate=function(e,t){if(!e)return"";e.toString().indexOf("-")>=1&&(e=e.replace(/-/g,"/"));var n=new Date(Number(e));if(isNaN(n))return e;var r={"M+":n.getMonth()+1,"d+":n.getDate(),"h+":n.getHours(),"H+":n.getHours(),"m+":n.getMinutes(),"s+":n.getSeconds(),"q+":Math.floor((n.getMonth()+3)/3),S:n.getMilliseconds()};for(var o in/(y+)/.test(t)&&(t=t.replace(RegExp.$1,(n.getFullYear()+"").substr(4-RegExp.$1.length))),r)new RegExp("("+o+")").test(t)&&(t=t.replace(RegExp.$1,1===RegExp.$1.length?r[o]:("00"+r[o]).substr((""+r[o]).length)));return t},t.toThousands=function(e){if(!e)return e;for(var t=(e=e.toString()).split("."),n=(0,C.default)(t,2),r=n[0],o=n[1],l="",c=r;c.length>3;)l=","+c.slice(-3)+l,c=c.slice(0,c.length-3);return c+l+(o?".".concat(o):"")};var N=function(){var path=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=S.locales.map((function(e){return"/"+e+"/"+path}));return function(t){return e.some((function(e){return e===t}))}}("");t.isHome=function(e){return N(e)},t.formatExchangeName=function(e){return e?e.indexOf("_")>0?e.split("_")[0].trim().toUpperCase()+"/"+e.split("_")[1].trim().toUpperCase():e.indexOf("/")>0?e.split("/")[0].trim().toUpperCase()+"/"+e.split("/")[1].trim().toUpperCase():e:""},t.openFollow=function(){R.FuturesLocal.OPEN_FOLLOW_TIP="1"},t.isOpenFollow=function(){return!!E.isClient&&!!R.FuturesLocal.OPEN_FOLLOW_TIP},t.openCopyFollow=function(e){R.FuturesLocal.SET_OPEN_COPY_FOLLOW_TIP({userid:e,value:"1"})},t.isOpenCopyFollow=function(e){return!!E.isClient&&!!R.FuturesLocal.GET_OPEN_COPY_FOLLOW_TIP({userid:e})},t.DirectionsColorMap=function(e){return[1,4,6,8,10,12,14,20,21,23,25].includes(Number(e))?"#28C452":"#EC4551"},t.getWSTimoutMilliSecs=function(e){var t=0;switch(!0){case e<=0:t=0;break;case e<=4:t=1e3;break;case e<=8:t=2e3;break;default:t=5e3}return t};function D(){return(D=(0,y.default)(f.default.mark((function e(){var t;return f.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,x.default.get("https://geolocation-db.com/json/").then((function(e){return e.data.country_code})).catch((function(e){}));case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var F=t.removeTailRecursive=function(content,e){return content[content.length-1]!==e?content:F(content.slice(0,-1),e)};t.generateRandomString=function(e){for(var t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",i=0;i<e;i++)t+=n.charAt(Math.floor(62*Math.random()));return t=U(t,1,"5"),t=U(t,3,"7"),t=U(t,7,"8"),t=U(t,14,"9"),t=U(t,20,"7"),t=U(t,29,"6")};function U(e,t,n){return e.substr(0,t)+n+e.substr(t+1)}t.getCurrentTime=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"yyyy-MM-dd HH:mm:ss.SSS";return A.DateTime.now().toFormat(e)},t.getResolution=function(e){var t=(0,m.default)(P.RESOLUTION_TO_NEW_CONTRACT)[Number(e-1)<0?0:Number(e-1)];return t?{key:t[0],value:t[1]}:{key:"1",value:"MINUTE_1"}},t.getCurrentResolution=function(){var e=E.isClient?R.FuturesLocal.USER_INTERVAL:1,t=(0,m.default)(P.RESOLUTION_TO_NEW_CONTRACT)[Number(e-1)<0?0:Number(e-1)];return t?{key:t[0],value:t[1]}:{key:"1",value:"MINUTE_1"}},t.getPrevResolution=function(){var e=R.FuturesLocal.USER_PREV_INTERVAL||1,t=(0,m.default)(P.RESOLUTION_TO_NEW_CONTRACT)[Number(e-1)<0?0:Number(e-1)];return t?{key:t[0],value:t[1]}:{key:"1",value:"MINUTE_1"}};var W=t.formatnumber=function(e,t){var a,b,n,i;if(b=(a=e.toString()).indexOf("."),n=a.length,0==t)-1!==b&&(a=a.substring(0,b));else if(-1==b)for(a+=".",i=1;i<=t;i++)a+="0";else for(a=a.substring(0,b+t+1),i=n;i<=b+t;i++)a+="0";return a},H=t.calStepSize=function(e,t,n,r){var o=Number(1===t?n:r),l=j(o),c=Math.pow(10,l),d=O.Decimal.mul(e,c).floor().div(c);return Number(W(d,l))},V=(t.calStepSizeByContactId=function(e,t,n){var r=window.$nuxt.$store.state.newTrading.contractList.find((function(e){return e.contractId==n}))||{},o=Number(1===t?null==r?void 0:r.tickSize:null==r?void 0:r.stepSize),l=j(o),c=Math.pow(10,l),d=Math.floor(e*c)/c;return Number(W(d,l))},t.calUsdtSize=function(e){var t=Math.pow(10,4),n=Math.floor(e*t)/t;return W(n,4)}),z=(t.getSourceType=function(e){return"".concat({UNKNOWN_ORDER_SOURCE:"entrust_source_3",WEB:"entrust_source_1",APP:"entrust_source_2",API:"entrust_source_3",SYS:"entrust_source_4",PLAN:"entrust_source_5",STOP_PROFIT:"entrust_source_6",STOP_LOSS:"entrust_source_7",STOP_PROFIT_CHASE:"entrust_source_8",STOP_LOSS_CHASE:"entrust_source_9",TRADER_DELEGATE:"entrust_source_12",TRADER_STOP_PROFIT:"entrust_source_13",TRADER_STOP_LOSS:"entrust_source_14",FOLLOWER_DELEGATE:"entrust_source_15",BACKHAND:"entrust_source_16",CLOSE_ALL_POSITION:"entrust_source_1"}[e])},t.checkPriceNewReg=function(e,t){var n=window.$nuxt.$store.state.newTrading.contractList.find((function(e){return e.contractId==t}))||{},r="^(0|[1-9]\\d*)(\\.\\d{0,".concat(j(n.tickSize),"})?$");return new RegExp(r).test(e)},t.checkSizeNewReg=function(e,t){var n,r=(null===(n=(window.$nuxt.$store.state.newTrading.contractList.find((function(e){return e.contractId==t}))||{}).stepSize)||void 0===n||null===(n=n.toString().split(".")[1])||void 0===n?void 0:n.length)||0,o="^(0|[1-9]\\d*)(\\.\\d{0,".concat(r,"})?$");return new RegExp(o).test(e)},t.isMultiple=function(a,b){var e=1/1e-10;return Math.round(a*e)%Math.round(b*e)==0},t.Languages=["en","zh-CN",void 0,"ko","vi","zh-TW"]),$=(t.getLangUrl=function(e,path){var t=window.$nuxt.$store.state.locales.find((function(e){return path.indexOf("/".concat(e))>-1})),n=z.findIndex((function(e){return path.indexOf("/".concat(e))>-1}));if(path.split("?")[1]){var r=I.default.parse(path.split("?")[1]);void 0!==r.languageType&&(n=r.languageType)}var o=z.indexOf(e)||0;path=path.replace("languageType="+n,"languageType="+o);var l="en"!==e?"/"+e:"";return t?path.replace(/^\/[^\/]+/,"".concat(l)):"".concat(l).concat(path)},t.scientificToDecimal=function(e){var t=Math.sign(e);if(e=Math.abs(e),/\d+\.?\d*e[\+\-]*\d+/i.test(e)){var n=String(e).toLowerCase().split("e"),r=n.pop(),o=Math.abs(r),l=r/o,c=n[0].split(".");if(-1===l){var d=o-c[0].length;e=d<0?c[0].slice(0,d)+"."+c[0].slice(d)+(2===c.length?c[1]:""):"0."+new Array(d+1).join("0")+c.join("")}else{var f=c[1],h=0;f&&(h=o-f.length),e=h<0?c[0]+f.slice(0,h)+"."+f.slice(h):c.join("")+new Array(h+1).join("0")}}return t<0?"-"+e:e}),j=(t.touchSlide=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{touchLeft:function(){},touchRight:function(){}},n=0,r=0,o=function(){n=0,r=0},l=function(e){return"[object Function]"==Object.prototype.toString.call(e)};e.addEventListener("touchstart",(function(e){n=e.changedTouches[0].pageX})),e.addEventListener("touchmove",(function(e){r=e.changedTouches[0].pageX})),e.addEventListener("touchend",(function(e){if(0!=r&&n-r!=0)return n-r>10?(o(),void(l(t.touchLeft)&&t.touchLeft())):n-r<-10?(o(),void(l(t.touchRight)&&t.touchRight())):void 0;o()}))},t.contractInfoNew=function(e){return window.$nuxt.$store.state.newTrading.contractList.find((function(t){return t.contractId==e}))||{}},t.getTicker=function(e){return window.$nuxt.$store.state.newTrading.newAllTicker[e]},t.getLeverage=function(){var e={longLeverage:20,shortLeverage:20};if(!window.$nuxt.$store.getters.isLogin)return e;try{var t=window.$nuxt.$store.state.newTrading.currentContractMode,n="ISOLATED"===(null==t?void 0:t.marginMode),r=window.$nuxt.$store.state.newTrading.currentContractId;if(r){var o=window.$nuxt.$store.state.newTrading.userInfo;if(o&&o.contractIdToLeverageSettingMap){var l,c=null===(l=window.$nuxt.$store.state.newTrading.userInfo)||void 0===l?void 0:l.contractIdToLeverageSettingMap[r];c&&(e.longLeverage=Number(n?c.isolatedLongLeverage:c.sharedLeverage),e.shortLeverage=Number(n?c.isolatedShortLeverage:c.sharedLeverage))}}return e}catch(t){return e}},t.fixedDisplay=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";try{return e=new O.Decimal(e),"".concat(e.toFixed(t,n)," ").concat(r)}catch(e){return"- ".concat(r)}},t.replaceZeroWithDash=function(e){return isNaN(e)?e:0===Number(e)?"-":e},t.calTickSize=function(e,t){return(Math.floor(e/t)*t).toFixed(j(t))},t.stepPlace=function(e){var t;return(null===(t=$(e))||void 0===t||null===(t=t.toString().split(".")[1])||void 0===t?void 0:t.length)||0}),G=(t.truncateNumber=function(e,t){var n=Math.pow(10,t);return Math.trunc(e*n)/n},t.formatNumberUnit=function(e,t){var n=Math.abs(e);return 0===n?"-":n>=1e9?(n/1e9).toFixed(t)+"B":n>=1e6?(n/1e6).toFixed(t)+"M":n>=1e3?(n/1e3).toFixed(t)+"K":n.toString()},t.calculateCountdown=function(){var e=setInterval((function(){var t=(0,v.default)(),n=endTime-t;if(n<=0)clearInterval(e),callback({D:0,H:0,M:0,S:0,isEnd:!0});else{var r=Math.floor(n/864e5),o=Math.floor(n%864e5/36e5),l=Math.floor(n%36e5/6e4),c=Math.floor(n%6e4/1e3);callback({timer:e,D:r,H:o,M:l,S:c,isEnd:!1})}}),1e3)},t.formatNumberWithUnit=function(e){return Math.abs(e)>=1e15?(e/1e15).toFixed(1)+"P":Math.abs(e)>=1e12?(e/1e12).toFixed(1)+"T":Math.abs(e)>=1e9?(e/1e9).toFixed(1)+"B":Math.abs(e)>=1e6?(e/1e6).toFixed(1)+"M":Math.abs(e)>=1e3?(e/1e3).toFixed(1)+"K":e.toString()},t.formatTimestamp=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"YYYY-MM-DD HH:mm:ss",n=new Date(e),r=n.getFullYear(),o=("0"+(n.getMonth()+1)).slice(-2),l=("0"+n.getDate()).slice(-2),c=("0"+n.getHours()).slice(-2),d=("0"+n.getMinutes()).slice(-2),f=("0"+n.getSeconds()).slice(-2);return t.replace("YYYY",r).replace("MM",o).replace("DD",l).replace("HH",c).replace("mm",d).replace("ss",f)},t.calculateLocalTimeWithUserTimeZone=function(e){var t=new Date(e),n=Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),r=e+60*-new Date(n).getTimezoneOffset()*1e3,o=A.DateTime.fromMillis(r,{zone:"utc"}).zoneName;return new Date(r).toLocaleString("default",{timeZone:o,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1}).replace(/\//g,"-")},t.getBrowerInfo=function(){var e=window.navigator.userAgent.toLowerCase(),t=/Android/i.test(e);return{isIOS:/iPhone|iPad|iPod/i.test(e),isAndroid:t}}),K=t.compareVersions=function(e,t){for(var n=e.split(".").map((function(e){return(0,h.default)(e,10)})),r=t.split(".").map((function(e){return(0,h.default)(e,10)})),o=Math.max(n.length,r.length),i=0;i<o;i++){var l=n[i]||0,c=r[i]||0;if(l>c)return!0;if(l<c)return!1}return!0},X=t.isAndroidIosWebView=function(){var e,t,n=!1;return(null!==(e=window)&&void 0!==e&&null!==(e=e.webkit)&&void 0!==e&&null!==(e=e.messageHandlers)&&void 0!==e&&e.sendTokenToWeb||null!==(t=window)&&void 0!==t&&null!==(t=t.control)&&void 0!==t&&t.sendTokenToWeb)&&(n=!0),n},Y=(t.isBrowserH5=function(){var e,t,n=!1,r=G(),o=r.isAndroid,l=r.isIOS;o||l?n=!(null!==(e=window)&&void 0!==e&&null!==(e=e.webkit)&&void 0!==e&&null!==(e=e.messageHandlers)&&void 0!==e&&e.sendTokenToWeb||null!==(t=window)&&void 0!==t&&null!==(t=t.control)&&void 0!==t&&t.sendTokenToWeb):n=!1;return n},t.callAppMethod=function(e,t){({ios:function(){return null===t?window.webkit.messageHandlers[e].postMessage(null):window.webkit.messageHandlers[e].postMessage(t)},android:function(){return null===t?window.control[e]():window.control[e](t)}})[G().isIOS?"ios":"android"]()}),Z=(t.calSizeByUnitType=function(e,t,n){var r=window.$nuxt.$store.state.newTrading.contractList.find((function(e){return e.contractId==t}))||{},o=Number(r.stepSize),l=Number(r.tickSize),c=Number(e),d=Number(n);switch(window.$nuxt.$store.state.newTrading.unitType){case 0:return 0===o?0:(0,h.default)(c/o);case 1:return H(c,2,l,o);case 2:return V(c*d)}},t.calRecordSizeByUnitType=function(e,t,n){var r=Number(e),o=Number(t),l=Number(n);switch(window.$nuxt.$store.state.newTrading.unitType){case 0:return 0===o?0:(0,h.default)(r/o);case 1:return Number(r);case 2:return V(Number(l))}},t.tradeUnitDisplay=function(e,t){switch(window.$nuxt.$store.state.newTrading.unitType){case 0:return t;case 1:return e.split("/")[0];case 2:return e.split("/")[1]}},t.gotoMobilePath=function(path){var e=J(),t=k.default.find((function(e){return e.path==path})),n=K(e.appVersion,"3.3.0");t.newAppObj||(n=!1);var r=n?(0,w.default)(t.newAppObj):t.oldAppObj.param,o=n?"jsCallAPP":t.oldAppObj.method;Y(o,r)}),J=(t.goGlobalPath=function(path){if(X())try{Z(path)}catch(e){}else{var e=window.$nuxt.$i18n.path(path);window.$nuxt.$router.push(e)}},t.getAppInfo=function(){try{var e=R.BaseLocal.APP_INFO;return e?e=JSON.parse(e):{appVersion:"",uid:"",uToken:void 0}}catch(e){alert(e)}}),Q=(t.loadImage=function(){var e=(0,y.default)(f.default.mark((function e(t){var n,r;return f.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,x.default.get(t,{responseType:"blob"});case 3:return n=e.sent,r=n.data,e.abrupt("return",URL.createObjectURL(r));case 8:e.prev=8,e.t0=e.catch(0);case 11:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(t){return e.apply(this,arguments)}}(),t.urlToBase64=function(){var e=(0,y.default)(f.default.mark((function e(t){return f.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new _.default((function(e,n){var image=new Image;image.onload=function(){var canvas=document.createElement("canvas");canvas.width=this.naturalWidth,canvas.height=this.naturalHeight,canvas.getContext("2d").drawImage(image,0,0),e(canvas.toDataURL("image/png"))},image.setAttribute("crossOrigin","Anonymous"),image.src="".concat(t,"?").concat((new Date).getTime()),image.onerror=function(){n(new Error("urlToBase64 error"))}})));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),t.blobToBase64=function(){var e=(0,y.default)(f.default.mark((function e(t){return f.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new _.default((function(e,n){var r=new FileReader;r.onload=function(){var t=r.result.split(",")[1];e(t)},r.onerror=n,r.readAsDataURL(t)})));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),ee=(t.convertToBase64=function(){var e=(0,y.default)(f.default.mark((function e(t,n){return f.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ee(t,function(){var e=(0,y.default)(f.default.mark((function e(t){var r;return f.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Q(t);case 2:r=e.sent,n(r);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),t.convertToBlob=function(){var e=(0,y.default)(f.default.mark((function e(t,n){var img,canvas,r;return f.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(img=t).crossOrigin="anonymous",canvas=document.createElement("canvas"),r=canvas.getContext("2d"),canvas.width=img.width,canvas.height=img.height,r.drawImage(img,0,0),canvas.toBlob((function(e){n(e)}),"image/png");case 8:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}());t.fuzzySearch=function(e,t){var n=t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");return new RegExp(n.split("").join(".*"),"i").test(e)},t.debounce=function(e,t){var n,r=function(){for(var r=arguments.length,o=new Array(r),l=0;l<r;l++)o[l]=arguments[l];var c=this;clearTimeout(n),n=setTimeout((function(){e.apply(c,o)}),t)};return r.cancel=function(){return clearTimeout(n)},r},t.throttle=function(e,t){var n,r=function(){if(!n){for(var r=arguments.length,o=new Array(r),l=0;l<r;l++)o[l]=arguments[l];e.apply(this,o),n=setTimeout((function(){n=null}),t)}};return r.cancel=function(){return clearTimeout(n)},r},t.settlePromises=function(e){return _.default.all((0,T.default)(e,(function(e){return e.then((function(e){return{status:"fulfilled",value:e}}),(function(e){return{status:"rejected",reason:e}}))})))},t.getDeviceInfo=function(){var e=navigator.platform.toLowerCase(),t=navigator.userAgent.toLowerCase();return e.includes("win")?"Windows":e.includes("mac")?"MacOS":/android/.test(t)?"Android":/iphone|ipad|ipod/.test(t)?"IOS":null},t.symbolToProductCode=function(symbol){if(!symbol)return"";if(!symbol.includes("-"))return symbol;var e=symbol.split("-");return"USD"===e[1]?"".concat(e.join("").toLowerCase()):"cmt_".concat(e.join("").toLowerCase())},t.productCodeToSymbol=function(e){var t,n,r,o=/^cmt_([a-zA-Z0-9]+)(usdt)$/,l=/^([a-zA-Z0-9]+)(usd)$/,c=/^cmt_([a-zA-Z0-9]+)(susdt)$/,d=null;if(arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&c.test(e))d=e.match(c);else if(o.test(e))d=e.match(o);else{if(!l.test(e))return"BTC-USDT";d=e.match(l)}if(null===(t=d)||void 0===t||!t.length)return"BTC-USDT";var f=null===(n=d[1])||void 0===n?void 0:n.toUpperCase(),h=null===(r=d[2])||void 0===r?void 0:r.toUpperCase();return"".concat(f,"-").concat(h)},t.formatTradeCoinCode=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return arguments.length>1&&void 0!==arguments[1]&&arguments[1]?e.toLowerCase().replace("-","_"):e.toUpperCase().replace("_","-")}},330:function(e,t,n){"use strict";var r=n(0),o=n(1);r(t,"__esModule",{value:!0}),t.CacheApi=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v;if(0===e)return T(_);return T(e)},t.cacheApiFunc=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.interval,r=void 0===n?v:n;if(0===r)return k(_,e);return k(r,e)};var l,c=o(n(32)),d=o(n(325)),f=o(n(56)),h=o(n(33)),m=n(16),v=3e3,w="false",_=null!==(l=Number("216000"))&&void 0!==l?l:216e3,y=new d.default;function C(){w&&m.isClient&&!window.getCacheForDebug&&(window.getCacheForDebug=function(){return y})}function T(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v;return function(t,n,r){var o=r.value,l=new d.default,f=e;return w&&(C(),y.set(n,l)),r.value=(0,h.default)(c.default.mark((function e(){var t,n,r,d=arguments;return c.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(t=d.length,n=new Array(t),r=0;r<t;r++)n[r]=d[r];return e.abrupt("return",S.call(this,o,l,f,n));case 2:case"end":return e.stop()}}),e,this)}))),r}}function S(e,t,n,r){var o,l=m.isClient&&(null===(o=window)||void 0===o||null===(o=o.$nuxt)||void 0===o||null===(o=o.$store)||void 0===o||null===(o=o.state)||void 0===o?void 0:o.locale)||"en",c="".concat((0,f.default)(r),"_").concat(l),d=(new Date).getTime();if(t.has(c)){var h=t.get(c),v=h.timestamp,w=h.promise;if(d-v<n)return w}var _=e.apply(this,r);return t.set(c,{timestamp:d,promise:_}),_}function k(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v,t=arguments.length>1?arguments[1]:void 0,n=new d.default,r=e;return w&&(C(),y.set(t,n)),(0,h.default)(c.default.mark((function e(){var o,l,d,f=arguments;return c.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(o=f.length,l=new Array(o),d=0;d<o;d++)l[d]=f[d];return e.abrupt("return",S(t,n,r,l));case 2:case"end":return e.stop()}}),e)})))}},39:function(e,t,n){"use strict";var r=n(0),o=n(1);r(t,"__esModule",{value:!0}),t.default=t.TokenKey=t.TokenCookieKey=void 0;var l=o(n(56)),c=o(n(52)),d=o(n(13)),f=o(n(173)),h=n(26),m=t.TokenCookieKey="WEEX_TOKEN_COOKIE_".concat("production".toUpperCase()),v=t.TokenKey={CC_TOKEN:"bt_ccToken",CC_TOKEN_EXPIRE:"bt_ccToken_expire",R_TOKEN:"bt_rToken",REFRESH_TOKEN:"refresh_token",REFRESH_TOKEN_EXPIRE:"refresh_token_expire"},w={ready:!1,data:(0,d.default)((0,d.default)((0,d.default)((0,d.default)((0,d.default)({},v.CC_TOKEN,""),v.CC_TOKEN_EXPIRE,0),v.R_TOKEN,""),v.REFRESH_TOKEN,""),v.REFRESH_TOKEN_EXPIRE,0),init:function(){try{var e=f.default.get(m),t=e?JSON.parse(e):"";t&&(0,c.default)(this.data,t)}catch(e){}finally{this.ready=!0}},get:function(e){return this.ready||this.init(),this.data[e]},set:function(e,t){if(e&&(this.ready||this.init(),this.data[e]!==t)){this.data[e]=t;try{var n=(0,h.getCookieDomain)();f.default.set(m,(0,l.default)(this.data),{expires:365,domain:n,secure:!0,sameSite:"Lax"})}catch(e){}}},remove:function(e){if(e&&(this.ready||this.init(),""!==this.data[e])){this.data[e]="";try{var t=(0,h.getCookieDomain)();f.default.set(m,(0,l.default)(this.data),{expires:365,domain:t,secure:!0,sameSite:"Lax"})}catch(e){}}}};t.default=w},48:function(e,t,n){"use strict";var r=n(14),o=n(18),l=n(0),c=n(12),d=n(1);l(t,"__esModule",{value:!0}),t.getTradingViewLanByLanguage=t.getSupportLocaleByLanguageType=t.getSortByPriority=t.getLanguageSetAreaCode=t.getLanguageListByRoute=t.getLanguageKeyByLangCode=t.getLanguageKey=t.getLanguageByPath=t.getLangCodeByLocaleCode=t.getLangCodeByLang=t.getLangByUserCountry=t.getLangByLocaleCode=t.getLangByBrowserLanguage=t.getGeeTestLocale=t.getDirValue=t.getCmsLocaleByLangCode=t.getBackendLocaleCodeByLocaleCode=t.getBackendLocaleCode=t.enabledLanguageMapping=t.defaultMapping=t.checkLan=t.changeUrlLanguage=t.LanguageList=void 0,t.isRtl=x,t.isRtlLanguage=void 0,t.isShowFA=A,t.removeUrlLanguage=t.mainAreaCode=t.isSimplifiedOrTraditionalChinese=void 0;var f,h=d(n(1013)),m=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=r(e)&&"function"!=typeof e)return{default:e};var n=_(t);if(n&&n.has(e))return n.get(e);var o={__proto__:null},a=l&&c;for(var u in e)if("default"!==u&&{}.hasOwnProperty.call(e,u)){var i=a?c(e,u):null;i&&(i.get||i.set)?l(o,u,i):o[u]=e[u]}return o.default=e,n&&n.set(e,o),o}(n(55)),v=n(534),w=n(16);function _(e){if("function"!=typeof o)return null;var t=new o,n=new o;return(_=function(e){return e?n:t})(e)}t.mainAreaCode="1";var y=t.enabledLanguageMapping=m.default.filter((function(e){return e.enabled})),C=(t.getSortByPriority=function(){return y.sort((function(a,b){return a.sortPirority-b.sortPirority}))},t.defaultMapping=y.find((function(e){return!0===e.default}))),T=function(e,t){return 0===e.localeCompare(t,void 0,{sensitivity:"accent"})},S=(t.getGeeTestLocale=function(e){var t,n=y.find((function(t){return(0,h.default)(t.localeCodes,(function(t){return T(t,e)}))}));return n?n.geeTestLocale:null!==(t=null==C?void 0:C.geeTestLocale)&&void 0!==t?t:"en"},t.getSupportLocaleByLanguageType=function(e){var t,n=y.find((function(t){return(0,h.default)(t.localeCodes,(function(t){return T(t,e)}))}));return n?n.supportLocale:null!==(t=null==C?void 0:C.supportLocale)&&void 0!==t?t:"en-us"},t.getLangByLocaleCode=function(e){var t;if(/^(en|zh-TW|zh-CN|ko|vi|fa)$/.test(e))return e;var n=y.find((function(t){return(0,h.default)(t.localeCodes,(function(t){return T(t,e)}))}));return n?n.language:null!==(t=null==C?void 0:C.language)&&void 0!==t?t:"en"}),k=(t.getBackendLocaleCodeByLocaleCode=function(e){var t,n=y.find((function(t){return(0,h.default)(t.localeCodes,(function(t){return T(t,e)}))}));return n?n.backendLocaleCode:null!==(t=null==C?void 0:C.backendLocaleCode)&&void 0!==t?t:"en_US"},t.getLangByBrowserLanguage=function(){var e=navigator.languages&&navigator.languages.length?navigator.languages[0]:navigator.language;return S(e)}),E=(t.getLangByUserCountry=function(e){var t,n=y.find((function(t){return(0,h.default)(t.countryCodes,(function(t){return T(t,e)}))}));return n?n.language:null!==(t=null==C?void 0:C.language)&&void 0!==t?t:"en"},t.getLangCodeByLang=function(e){var t,n=y.find((function(t){return t.localeCodes.some((function(i){return T(i,e)}))}));return n?n.langCode:null!==(t=null==C?void 0:C.langCode)&&void 0!==t?t:0},t.getLangCodeByLocaleCode=function(e){var t,n=y.find((function(t){return(0,h.default)(t.localeCodes,(function(t){return T(t,e)}))}));return n?n.langCode:null!==(t=null==C?void 0:C.langCode)&&void 0!==t?t:0},t.getLanguageSetAreaCode=function(e){var t,n=e||k(),r=y.find((function(e){return T(e.language,n)})),o=r?r.areaCode:null!==(t=null==C?void 0:C.areaCode)&&void 0!==t?t:"1";return"886"===o&&(o="86"),o},t.isRtlLanguage=function(path,e){return x({path:path,faConfig:v.faConfig,isClient:!!e||w.isClient})});function x(e){var t,path=e.path,n=e.faConfig;if(!e.isClient)return!1;if(!path.startsWith("/".concat(m.languageKeyMap.fa)))return!1;var r=function(path,e){var t="/"===path;return e.find((function(e){return"/"===e.path?t:null==path?void 0:path.startsWith(e.path)}))}(B(path),n);return null!==(t=null==r?void 0:r.rtl)&&void 0!==t&&t}t.getDirValue=function(path){return E(path,!0)?"rtl":"ltr"};var L=t.LanguageList=y.map((function(e){return e.language}));t.getLanguageKey=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en",n=y.find((function(t){return t.reg.test(e)}));return n?n.language:null!=t?t:"en"},t.getLanguageListByRoute=function(path){return A(path,L,v.faConfig)?y:y.filter((function(e){return e.langCode!==m.langCodeMap.fa}))};function A(path,e,t){var n="/"===path||e.some((function(e){return path==="/".concat(e)})),r=B(path);return t.some((function(e){return"/"===e.path?n:null==r?void 0:r.startsWith(e.path)}))}var P=function(e,code){var t,n;return null!==(t=null===m.default||void 0===m.default||null===(n=m.default.find((function(e){return e.langCode==code})))||void 0===n||null===(n=n.localeCodes)||void 0===n?void 0:n.includes(e))&&void 0!==t&&t},O=t.getLanguageKeyByLangCode=function(e){var t,n;return null!==(t=null===m.default||void 0===m.default||null===(n=m.default.find((function(t){return t.langCode==e})))||void 0===n?void 0:n.language)&&void 0!==t?t:m.languageKeyMap.en},I=(t.checkLan={isEn:function(e){return P(e,m.langCodeMap.en)},isZhCN:function(e){return P(e,m.langCodeMap.zhCN)},isKo:function(e){return P(e,m.langCodeMap.ko)},isVi:function(e){return P(e,m.langCodeMap.vi)},isZhTW:function(e){return P(e,m.langCodeMap.zhTW)},isFa:function(e){return P(e,m.langCodeMap.fa)}},null===m.default||void 0===m.default||null===(f=m.default.find((function(e){return e.default})))||void 0===f?void 0:f.backendLocaleCode),R=(t.getBackendLocaleCode=function(e){var t,n;return null!==(t=null===m.default||void 0===m.default||null===(n=m.default.find((function(t){return t.langCode==e})))||void 0===n?void 0:n.backendLocaleCode)&&void 0!==t?t:I},t.getCmsLocaleByLangCode=function(e){var t,n=m.default.find((function(t){return t.langCode===e}));return n?n.cmsLocale:null!==(t=null==C?void 0:C.cmsLocale)&&void 0!==t?t:"en"},t.getTradingViewLanByLanguage=function(e){var t,n,r=y.find((function(t){return T(t.language,e)}));return null!==(t=null!==(n=null==r?void 0:r.tradingViewLan)&&void 0!==n?n:null==C?void 0:C.tradingViewLan)&&void 0!==t?t:null==C?void 0:C.language},t.getLanguageByPath=function(path){var e,t=null==path||null===(e=path.split("/"))||void 0===e?void 0:e[1];return m.default.find((function(e){return e.localeCodes.some((function(code){return T(code,t)}))}))}),B=t.removeUrlLanguage=function(path){return R(path)?"/"+path.split("/").slice(2).join("/"):path};t.changeUrlLanguage=function(path,e){var t=O(e),n=B(path);return e===m.langCodeMap.en?n:"/".concat(t).concat(n)},t.isSimplifiedOrTraditionalChinese=function(e){return!(!e||"string"!=typeof e)&&(T(e,m.languageKeyMap.zhCN)||T(e,m.languageKeyMap.zhTW))}},54:function(e,t,n){"use strict";var r=n(0),o=n(1);r(t,"__esModule",{value:!0}),t.default=t.LocalCookieKey=t.CookieKey=void 0;var l=o(n(56)),c=o(n(52)),d=o(n(13)),f=o(n(173)),h=n(60),m=n(26),v=t.LocalCookieKey="WEEX_LOCAL_COOKIE",w=t.CookieKey={LANG:"weex_lang",UNIT:"weex_unit",SHOWASSET:"weeex_showasset",VALUATIONUNIT:"weex_valuationunit",THEME:"weex_theme",LAYOUT:"weex_layout",LOGIN:"weex_login",GLOBAL_THEME:"global_theme",GLOBAL_THEME_NEW:"global_theme_new"},_={ready:!1,data:(0,d.default)((0,d.default)((0,d.default)((0,d.default)((0,d.default)((0,d.default)((0,d.default)((0,d.default)((0,d.default)({},w.LANG,"en"),w.UNIT,"CNY"),w.SHOWASSET,!1),w.THEME,"dark"),w.LAYOUT,"right"),w.VALUATIONUNIT,1),w.LOGIN,!1),w.GLOBAL_THEME,h.SUPPORTED_THEME[0]),w.GLOBAL_THEME_NEW,h.SUPPORTED_THEME[0]),init:function(){try{var e=f.default.get(v),t=e?JSON.parse(e):"";t&&(0,c.default)(this.data,t)}catch(e){}finally{this.ready=!0}},get:function(e){return this.ready||this.init(),this.data[e]},set:function(e,t){if(e&&(this.ready||this.init(),this.data[e]!==t)){this.data[e]=t;try{var n=(0,m.getCookieDomain)();f.default.set(v,(0,l.default)(this.data),{expires:365,domain:n,secure:!0,sameSite:"Lax"})}catch(e){}}}};t.default=_},605:function(e,t,n){"use strict";n(0)(t,"__esModule",{value:!0}),t.setZEListening=t.serviceBtnClick=t.editZendeskDomAction2=t.editZendeskDomAction=t.editZendeskDom=void 0;var r=n(1241),o=n(322),l=n(16),c=t.editZendeskDom=function(){var e=document&&document.getElementById("zendesk-launcher-icon");if(e)setTimeout((function(t){f(null,e)}));else var t=0,n=setInterval((function(e){d(n),++t>=50&&clearInterval(n)}),200)},d=t.editZendeskDomAction=function(e){if(l.isClient)for(var t=document.getElementsByTagName("iframe"),i=0;i<t.length;i++)"傳訊視窗"===t[i].title&&zE("messenger","close")},f=t.editZendeskDomAction2=function(e,t){if(l.isClient){var n=window.$nuxt.$store.state.zendeskLauncherParams,r=t.contentWindow.document.getElementsByTagName("html"),o=t.contentWindow.document.getElementsByTagName("button"),c=o[0].parentNode,d=o[0].childNodes[0]||null,f=o[0].childNodes[1]||null;c&&(t.id="zendesk-launcher-icon",n.width&&(t.style.width=n.width),n.height&&(t.style.height=n.height),n.position&&(n.position.top&&(t.style.top=n.position.top),n.position.right&&(t.style.right=n.position.right),n.position.bottom&&(t.style.bottom=n.position.bottom),n.position.left&&(t.style.left=n.position.left)),c.setAttribute("style","background-color: transparent !important;width: "+n.width+" !important;height: "+n.height+" !important;"),d&&(d.innerHTML='<img style="width: 100%;height: 100%;" src="'.concat(n.icon,'" onmouseover="this.src=\'').concat(n.hoverIcon||n.icon,"'\" onmouseout=\"this.src='").concat(n.icon,"'\" />")),f&&(f.innerHTML='<img style="width: 100%;height: 100%;" src="'.concat(n.hoverIcon,'" />')),r&&r.length>0&&(r[0].style.background="transparent"),o&&o.length>0&&(o[0].style.background="transparent",o[0].addEventListener("click",m)),e&&clearInterval(e),h())}},h=t.setZEListening=function(){l.isClient&&(!1===window.$nuxt.$store.state.isListeningZendesk&&zE&&zE("messenger:on","close",(function(e){window.$nuxt.$store.commit("SET_IS_LISTENING_ZENDESK",!0),c()})))},m=t.serviceBtnClick=function(){(0,r.logEvent)((0,r.getAnalytics)(o.firebaseApp),"customServiceBtnClick_event",{platform:"web"})}},62:function(e,t,n){"use strict";(function(e){var r=n(14),o=n(18),l=n(0),c=n(12),d=n(1);l(t,"__esModule",{value:!0}),t.isURL=t.isPath=t.isOversea=t.getWSQueryObjNew=t.getWSDomain=t.getTokenDataNew=t.getTokenData=t.getStreamWSUrl=t.getS3ReverseProxyPath=t.getNewContractWSUrl=t.getNewAPIUrl=t.getCurrentPathObj=t.getContractWSUrl=t.getAPIUrl=void 0;var f=d(n(56)),h=d(n(44)),m=d(n(32)),v=d(n(783)),w=d(n(33)),_=d(n(557)),y=d(n(242)),C=d(n(244)),T=n(26),S=n(16),k=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=r(e)&&"function"!=typeof e)return{default:e};var n=E(t);if(n&&n.has(e))return n.get(e);var o={__proto__:null},a=l&&c;for(var u in e)if("default"!==u&&{}.hasOwnProperty.call(e,u)){var i=a?c(e,u):null;i&&(i.get||i.set)?l(o,u,i):o[u]=e[u]}return o.default=e,n&&n.set(e,o),o}(n(39));function E(e){if("function"!=typeof o)return null;var t=new o,n=new o;return(E=function(e){return e?n:t})(e)}t.isOversea=function(e){var t={abroad:"0"},n="";if(!e&&S.isClient){var r=location,o=r.search;n=r.hostname,t=C.default.parse(o)}return t.abroad&&"1"===t.abroad||n.includes("weex.com")};var x=t.getWSDomain=function(){var e=(0,w.default)(m.default.mark((function e(){var t,n,r,o,l,c;return m.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((r=S.isClient&&(null===(t=window.$nuxt)||void 0===t||null===(t=t.$detectSpeed.domain)||void 0===t?void 0:t.domain)||"")&&0!==(null===(n=r)||void 0===n?void 0:n.length)){e.next=6;break}if(!S.isClient||null===(o=window.$nuxt)||void 0===o||!o.$detectSpeed){e.next=6;break}return e.next=5,null===(l=window.$nuxt)||void 0===l?void 0:l.$detectSpeed.init();case 5:r=null===(c=window.$nuxt)||void 0===c||null===(c=c.$detectSpeed.domain)||void 0===c?void 0:c.domain;case 6:return e.abrupt("return",r||"weex.com");case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),L=(t.getNewContractWSUrl=function(){var e=(0,w.default)(m.default.mark((function e(t){var n,r,o,l,c,d,f;return m.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=S.isClient&&(null===(n=k.default.get(k.TokenKey.R_TOKEN))||void 0===n?void 0:n.length)>0,o="",l=new URL(!t&&r?"wss://ws-gateway2.weex.com/api/v1/private/ws":"wss://ws-gateway1.weex.com/api/v1/public/ws"),c=l.hostname.split("."),!S.isProduction&&!S.isRC){e.next=16;break}if(!((null==c?void 0:c.length)>2)){e.next=14;break}return e.next=8,x();case 8:d=e.sent,f=null==d?void 0:d.split("."),c[1]=f[0],c[2]=f[1],c[0]=r?"ws-gateway2":"ws-gateway1",o=c.join(".")+l.pathname;case 14:e.next=17;break;case 16:o=l.toString();case 17:return o.startsWith("wss://")||(o="wss://".concat(o)),e.abrupt("return","".concat(o,"?vs=").concat((0,T.generateRandomString)(32)).concat("").concat(L()));case 19:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),function(){var e=C.default.parse(window.location.search).compress;return isNaN(e)?"&compress=1":"&compress=".concat(Number(e))}),A=function(){var e=C.default.parse(window.location.search).compress;return isNaN(e)?"&compress=true":"&compress=".concat(Boolean(Number(e)).toString())},P=(t.getContractWSUrl=function(){var e=(0,w.default)(m.default.mark((function e(){var t,n,r,o,l,c;return m.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=new URL("wss://contract.weex.com/websocket"),n=t.hostname.split("."),!S.isProduction&&!S.isRC){e.next=18;break}if(!((null==n?void 0:n.length)>2)){e.next=18;break}if(!S.isClient){e.next=10;break}return e.next=7,x();case 7:e.t0=e.sent,e.next=11;break;case 10:e.t0="";case 11:o=e.t0,l=o.split("."),n[1]=l[0],n[2]=l[1],c=S.isClient&&(null===(r=k.default.get(k.TokenKey.R_TOKEN))||void 0===r?void 0:r.length)>0,n[0]=c?"contract2":"contract1",t.hostname=n.join(".");case 18:return t.toString().startsWith("wss://")||("wss://".concat(t),(0,v.default)("url")),e.abrupt("return","".concat(t,"?vs=").concat((0,T.generateRandomString)(32)).concat("").concat(A()));case 20:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),t.getStreamWSUrl=function(){var e=(0,w.default)(m.default.mark((function e(){var t,n,r,o;return m.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=S.isClient?new URL("wss://stream-rest.weex.com/v1/stream"):"",n=t.hostname.split("."),!S.isProduction&&!S.isRC){e.next=16;break}if(!((null==n?void 0:n.length)>2)){e.next=15;break}if(!S.isClient){e.next=10;break}return e.next=7,x();case 7:e.t0=e.sent,e.next=11;break;case 10:e.t0="";case 11:r=e.t0,o=null==r?void 0:r.split("."),n[1]=o[0],n[2]=o[1];case 15:t.hostname=n.join(".");case 16:return t.toString().startsWith("wss://")||(t="wss://".concat(t)),e.abrupt("return","".concat(t,"?uuid=").concat(740*(new Date).getTime()+"","&vs=").concat((0,T.generateRandomString)(32)).concat(A()));case 18:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),t.getNewAPIUrl=function(){var e=(0,w.default)(m.default.mark((function e(t){var n,r,o,l,c,d,f,h,v,w,y,C,T;return m.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=S.isClient&&(null===(n=window.$nuxt)||void 0===n||null===(n=n.$detectSpeed.domain)||void 0===n?void 0:n.domain)||"",!(0,_.default)(r)&&0!==r.length){e.next=9;break}if(!S.isClient||!S.isProduction&&!S.isRC){e.next=8;break}return e.next=5,null===(o=window.$nuxt)||void 0===o?void 0:o.$detectSpeed.init();case 5:r=null===(l=window.$nuxt)||void 0===l||null===(l=l.$detectSpeed.domain)||void 0===l?void 0:l.domain,e.next=9;break;case 8:r="https://http-gateway1.weex.com/";case 9:return r=r.startsWith("https://")?r:r.length>1?"https://".concat(r):"",(S.isProduction||S.isRC)&&(f=new URL(r),h=f.hostname,v=f.port,w=h.split("."),y=[],C=S.isClient?(null===(c=k.default.get(k.TokenKey.R_TOKEN))||void 0===c?void 0:c.length)>0:null==t||null===(d=t.$store)||void 0===d||null===(d=d.getters)||void 0===d?void 0:d.isLogin,w&&(null==w?void 0:w.length)>=2&&(T=C?"http-gateway2":"http-gateway1",y[0]=T,y[1]=w[2===w.length?0:1],y[2]=w[2===w.length?1:2],r="https://"+y.join("."),v&&(r+=":".concat(v)))),S.isClient&&window.$nuxt.$store.commit("newTrading/SET_APIBASEURL",r),e.abrupt("return",r);case 13:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),t.getAPIUrl=function(){var e=(0,w.default)(m.default.mark((function e(t){var n,r,o,l,c,d,f,h,v,w,y,C,T;return m.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=S.isClient&&(null===(n=window.$nuxt)||void 0===n||null===(n=n.$detectSpeed.domain)||void 0===n?void 0:n.domain)||"",!(0,_.default)(r)&&0!==r.length){e.next=9;break}if(!S.isClient||!S.isProduction&&!S.isRC){e.next=8;break}return e.next=5,null===(o=window.$nuxt)||void 0===o?void 0:o.$detectSpeed.init();case 5:r=null===(l=window.$nuxt)||void 0===l||null===(l=l.$detectSpeed.domain)||void 0===l?void 0:l.domain,e.next=9;break;case 8:r="https://gateway1.weex.com/";case 9:return r=r.startsWith("https://")?r:r.length>1?"https://".concat(r):"",(S.isProduction||S.isRC)&&(f=new URL(r),h=f.hostname,v=f.port,w=h.split("."),y=[],C=S.isClient?(null===(c=k.default.get(k.TokenKey.R_TOKEN))||void 0===c?void 0:c.length)>0:null==t||null===(d=t.$store)||void 0===d||null===(d=d.getters)||void 0===d?void 0:d.isLogin,w&&w.length>=2&&(T=C?"gateway2":"gateway1",y[0]=T,y[1]=w[2===w.length?0:1],y[2]=w[2===w.length?1:2],r="https://"+y.join("."),v&&(r+=":".concat(v)))),S.isClient&&window.$nuxt.$store.commit("future/SET_APIBASEURL",r),e.abrupt("return",r);case 13:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),t.getTokenData=function(t){return e.from((0,f.default)(P(t))).toString("base64")},t.getTokenDataNew=function(t){var n=O(t);return e.from((0,f.default)(n)).toString("base64")},function(e){var t=(0,h.default)(),n="1.1.0",r=C.default.parse(new URL(e).search).vs||"",o=S.isClient&&k.default.get(k.TokenKey.CC_TOKEN)||"",l=S.isClient&&k.default.get(k.TokenKey.R_TOKEN)||"",c="weex".concat(t).concat(r).concat("web").concat(n).concat(l);return{"CC-TOKEN":o,"X-TOKEN":l,"X-CLIENT-TYPE":"web","X-CLIENT-VERSION":n,"X-TIMESTAMP":t,vs:r,"X-SIG":y.default.MD5(c).toString()}}),O=t.getWSQueryObjNew=function(e){var t=(0,h.default)(),n=new URL(e),r=n.hostname,o=n.search,l="weex".concat(r).concat(t.toString()),c=S.isClient&&k.default.get(k.TokenKey.CC_TOKEN)||"",d=S.isClient&&k.default.get(k.TokenKey.R_TOKEN)||"",f=C.default.parse(o),m=f.compress?"1"===f.compress?"1":"0":"1";return{"CC-TOKEN":c,"X-TOKEN":d,"X-CLIENT-TYPE":"web","X-CLIENT-VERSION":"1.0.0","X-TIMESTAMP":t,"X-SIG":y.default.MD5(l).toString(),compress:m}},I=(t.getCurrentPathObj=function(){var path=S.isClient?window.location.pathname:"";return{isContract:path.includes("/contract/"),isContractProIntroduction:path.includes("/futures/introduction/futures-pro"),isCopyTrading:path.includes("/copytrading/"),isCopyTradingIndex:path.includes("/copytrading"),isDelivery:path.includes("/futures/classic/")&&path.endsWith("-USD"),isGame:path.includes("/futures/mock-trading/"),isKline:path.includes("/kline/"),isProGame:path.includes("/futures/demo-trading/"),isSpot:path.includes("/trade/"),isSwap:path.includes("/futures/classic/")&&path.endsWith("-USDT"),isSwapNew:path.includes("/futures/")&&!path.includes("/futures/classic/")&&!path.includes("/futures/mock-trading/")&&!path.includes("/futures/demo-trading/")&&!path.includes("/futures/introduction/futures-pro"),isWXT:path.includes("/wxt/"),isCopyTradingPro:path.includes("/copy-trading/"),isCopyTradingProIndex:path.includes("/copy-trading"),isWXTUnlock:path.includes("/wxtUnlock"),isLaunchPad:path.includes("/launchpool"),isMarket:path.includes("/markets")}},t.isURL=function(e){return!!new RegExp("^(https?:\\/\\/)((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.?)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[-a-z\\d_]*)?$","i").test(e)}),R=t.isPath=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.startsWith("/")||e.startsWith("\\")};t.getS3ReverseProxyPath=function(e){var path=R(e)?e:I(e)?new URL(e).pathname:"";return path="".concat(path.toLowerCase().includes("/s3".toLowerCase())?"":"/s3").concat(path),!S.isProduction&&!S.isRC||S.isDev?e:path}}).call(this,n(194).Buffer)},66:function(e,t,n){"use strict";var r=n(14),o=n(17),l=n(20),c=n(12),d=n(21),f=n(22),h=n(0),m=n(18),v=n(1);h(t,"__esModule",{value:!0}),t.default=t.TransferFinish=t.TransferDetailView=t.SubRegister=t.SignResult=t.RegisterResult=t.RechargeDetailView=t.PopupExposure=t.PopupClick=t.PC_TradePairClick=t.PC_ButtonClick=t.PC_BannerClick=t.Futures_Position_SetTPSL=t.Futures_Position_ConfirmSetTPSL=t.Futures_PositionDisplay=t.Futures_Open_PreSetTPSL=t.Futures_Open_ConfirmPreSetTPSL=t.Futures_ConfirmUnit=t.Futures_ChangeUnit=t.ExtractFinish=t.ExtractDetailView=t.ErrorLog=t.CodeResult=t.ClickSpotSector=t.ClickSpotPair=t.ClickSign=t.ClickRegister=t.ClickFuturesConfirmChangeOrder=t.ClickFuturesChangeOrder=t.ClickFutureSector=t.ClickFuturePair=t.ClickFutureList=t.CT_SubSellInfo=t.CT_SubBuyInfo=t.CT_SellFinish=t.CT_CoinDetailView=t.CT_BuyFinish=t.BB_SellFinish=t.BB_CoinDetailView=t.BB_BuyFinish=void 0;var w=v(n(32)),_=v(n(13)),y=v(n(33)),C=n(16),T=n(153),S=n(329),k=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=r(e)&&"function"!=typeof e)return{default:e};var n=L(t);if(n&&n.has(e))return n.get(e);var o={__proto__:null},a=h&&c;for(var u in e)if("default"!==u&&{}.hasOwnProperty.call(e,u)){var i=a?c(e,u):null;i&&(i.get||i.set)?h(o,u,i):o[u]=e[u]}return o.default=e,n&&n.set(e,o),o}(n(39)),E=n(26),x=n(27);function L(e){if("function"!=typeof m)return null;var t=new m,n=new m;return(L=function(e){return e?n:t})(e)}function A(e,t){var n=o(e);if(l){var r=l(e);t&&(r=r.filter((function(t){return c(e,t).enumerable}))),n.push.apply(n,r)}return n}function P(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?A(Object(n),!0).forEach((function(t){(0,_.default)(e,t,n[t])})):d?f(e,d(n)):A(Object(n)).forEach((function(t){h(e,t,c(n,t))}))}return e}var O=function(){var e=(0,y.default)(w.default.mark((function e(t,n){var r,o,l,c,d,f,h,m=arguments;return w.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=m.length>2&&void 0!==m[2]?m[2]:{},C.isClient&&window.location.hostname,!C.isClient||!window.$nuxt){e.next=14;break}if(!C.isLocal){e.next=6;break}return e.abrupt("return");case 6:o=window.$nuxt.$store.state.user.userId||"",(l=x.BaseLocal.TERMINAL_CODE)||(0,T.getFinger)((function(e){l=e})),c=k.default.get(k.TokenKey.R_TOKEN)||"",d=S.DateTime.now().toFormat("yyyy/MM/dd HH:mm:ss.SSS"),f=S.DateTime.utc().toFormat("yyyy/MM/dd HH:mm:ss.SSS"),h=window.$nuxt.$i18n.locale,window.$nuxt.$sensors.track(t,P({userId:o,deviceId:l,userToken:c,localTime:d,utcTime:f,language:h,value:n},r));case 14:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}();t.default=O,t.ClickRegister=function(){O("ClickRegister","")},t.SubRegister=function(e){var t=e.register,n=e.invite_code;O("SubRegister","",{register:t,invite_code:void 0===n?"无":n})},t.CodeResult=function(e){var t=e.Business_scene,n=e.code_type,r=e.is_success,o=e.fail_reason;O("CodeResult","",{Business_scene:t,code_type:n,is_success:r,fail_reason:o})},t.RegisterResult=function(e){var t=e.register,n=e.invite_code,r=void 0===n?"无":n,o=e.is_success,l=e.fail_reason;O("RegisterResult","",{register:t,invite_code:r,is_success:o,fail_reason:l})},t.ClickSign=function(){O("ClickSign","")},t.SignResult=function(e){var t=e.sign_type,n=e.is_success,r=e.fail_reason;O("SignResult","",{sign_type:t,is_success:n,fail_reason:r})},t.PopupExposure=function(e){var t=e.commonName,n=e.popup_id;O("PopupExposure","",{commonName:t,popup_id:n})},t.PopupClick=function(e){var t=e.commonName,n=e.popup_id,r=e.click_action;O("PopupClick","",{commonName:t,popup_id:n,click_action:r})},t.PC_ButtonClick=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=(0,E.isBrowserH5)()?"h5":"web";O("PC_ButtonClick",e,{platform_type:t})},t.PC_BannerClick=function(e,t,n,r){var o=(0,E.isBrowserH5)()?"h5":"web";O("PC_BannerClick","",{banner_name:e,banner_position:t,banner_value:n,sector_name:r,platform_type:o})},t.PC_TradePairClick=function(e){O("PC_TradePairClick","",{tradepair_name:e})},t.RechargeDetailView=function(e){O("RechargeDetailView","",{tradepair_name:e})},t.ExtractDetailView=function(e){O("ExtractDetailView","",{tradepair_name:e})},t.ExtractFinish=function(e){var t=e.is_success,n=e.fail_reason,r=e.link_name,o=e.tradepair_name,l=e.tradeamount;O("ExtractFinish","",{is_success:t,fail_reason:n,link_name:r,tradepair_name:o,tradeamount:l})},t.TransferDetailView=function(){O("TransferDetailView","")},t.TransferFinish=function(e){var t=e.is_success,n=e.fail_reason,r=e.original_account,o=e.dest_account,l=e.tradepair_name,c=e.tradeamount;O("TransferFinish","",{is_success:t,fail_reason:n,original_account:r,dest_account:o,tradepair_name:l,tradeamount:c})},t.BB_CoinDetailView=function(e){O("BB_CoinDetailView","",{tradepair_name:e})},t.BB_BuyFinish=function(e){var t=e.is_success,n=e.symbolId,r=e.orderType,o=e.delegatePrice,l=e.tradeAmount,c=e.fail_reason;O("BB_BuyFinish","",{is_success:t,tradepair_name:n,trademode:0===r?"Limit":"Market",tradeprice:o,tradeamount:l,fail_reason:c})},t.BB_SellFinish=function(e){var t=e.is_success,n=e.symbolId,r=e.orderType,o=e.delegatePrice,l=e.tradeAmount,c=e.fail_reason;O("BB_SellFinish","",{is_success:t,tradepair_name:n,trademode:0===r?"Limit":"Market",tradeprice:o,tradeamount:l,fail_reason:c})},t.CT_CoinDetailView=function(e){O("CT_CoinDetailView","",{tradepair_name:e})},t.CT_SubBuyInfo=function(e){var t=e.productCode,n=e.delegateType,r=e.tradePrice,o=e.amount,l=e.triggerPrice,c="";switch(e.timeInForce){case 1:c="Maker";break;case 3:c="IOC";break;case 2:c="FOK"}O("CT_SubBuyInfo","",{tradepair_name:t,trademode:3===n?"Plan":"Limit",ordertype:1==n?c:"",tradeprice:r,tradeamount:o,trigger_price:3===n?l:""})},t.CT_SubSellInfo=function(e){var t=e.productCode,n=e.delegateType,r=e.tradePrice,o=e.amount,l=e.triggerPrice,c="";switch(e.timeInForce){case 1:c="Maker";break;case 3:c="IOC";break;case 2:c="FOK"}O("CT_SubSellInfo","",{tradepair_name:t,trademode:3===n?"Plan":"Limit",ordertype:1==n?c:"",tradeprice:r,tradeamount:o,trigger_price:3===n?l:""})},t.CT_BuyFinish=function(e){var t=e.is_success,n=e.fail_reason,r=e.productCode,o=e.delegateType,l=e.tradePrice,c=e.amount,d=e.triggerPrice,f="";switch(e.timeInForce){case 1:f="Maker";break;case 3:f="IOC";break;case 2:f="FOK"}O("CT_BuyFinish","",{is_success:t,fail_reason:n||"",tradepair_name:r,trademode:3===o?"Plan":"Limit",ordertype:1==o?f:"",tradeprice:l,tradeamount:c,trigger_price:3===o?d:""})},t.CT_SellFinish=function(e){var t=e.is_success,n=e.fail_reason,r=e.productCode,o=e.delegateType,l=e.tradePrice,c=e.amount,d=e.triggerPrice,f="";switch(e.timeInForce){case 1:f="Maker";break;case 3:f="IOC";break;case 2:f="FOK"}O("CT_SellFinish","",{is_success:t,fail_reason:n||"",tradepair_name:r,trademode:3===o?"Plan":"Limit",ordertype:1==o?f:"",tradeprice:l,tradeamount:c,trigger_price:3===o?d:""})},t.ErrorLog=function(e){O("ErrorLog",e)},t.ClickFutureList=function(){O("Futures_FutureList","")},t.ClickFutureSector=function(e){O("Futures_FutureSector","",{sector_name:e})},t.ClickFuturePair=function(e,t,n){O("ClickFuturePair","",{future_name:e,future_tag:t,forward_entry_source:n})},t.Futures_Open_PreSetTPSL=function(){O("Futures_Open_PreSetTPSL","")},t.Futures_Open_ConfirmPreSetTPSL=function(e,t){O("Futures_Open_ConfirmPreSetTPSL",{setting_type:e,direction:t})},t.Futures_Position_SetTPSL=function(e){O("Futures_Position_SetTPSL",{tpsl_type:e})},t.Futures_Position_ConfirmSetTPSL=function(e,t){O("Futures_Position_ConfirmSetTPSL",{forward_entry_source:e,setting_type:t})},t.ClickFuturesChangeOrder=function(e){O("Futures_OpenOrders_ChangeOrder","",{forward_entry_source:e})},t.ClickFuturesConfirmChangeOrder=function(e,t){O("Futures_OpenOrders_ConfirmChangeOrder","",{amount_type:e,forward_entry_source:t})},t.ClickSpotSector=function(e){O("Spot_SpotSector","",{sector_name:e})},t.ClickSpotPair=function(e,t){O("Spot_SpotPair","",{spot_name:e,forward_entry_source:t})},t.Futures_PositionDisplay=function(e){O("Futures_PositionDisplay",{type:e})},t.Futures_ChangeUnit=function(e){O("Futures_ChangeUnit","",{platform_type:e})},t.Futures_ConfirmUnit=function(e,t,n){O("Futures_ConfirmUnit","",{platform_type:e,futures_unit:t,ordertype:n})}},759:function(e,t,n){"use strict";var r=n(0),o=n(1);r(t,"__esModule",{value:!0}),t.cryptoObjTime=t.cryptoObj=t.AES_CBC_DECRYPT=void 0,t.md5=function(e){return h(e)};var l=o(n(44)),c=o(n(1452)),d=n(1463),f=o(n(242));function h(e){return e?(new c.default).update(e).digest("base64"):e}t.cryptoObj=function(e,t){if(e){var n=(0,l.default)(),r={cryptoStr:h(e),currTime:n};(0,d.getCurrentTime)().then((function(n){"00000"===n.code&&n.data.t?(r.currTime=n.data.t,r.cryptoStr=h(e),t&&t(r)):t&&t(r)})).catch((function(e){t&&t(r)}))}},t.cryptoObjTime=function(e,t){if(e){var n=(0,l.default)(),r={cryptoStr:h(h(e)+n),currTime:n};(0,d.getCurrentTime)().then((function(n){"00000"==n.code&&n.data.t?(r.currTime=n.data.t,r.cryptoStr=h(h(e)+n.data.t),t&&t(r)):t&&t(r)})).catch((function(e){t&&t(r)}))}},t.AES_CBC_DECRYPT=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return f.default.AES.decrypt(e,f.default.enc.Utf8.parse(t||"MwxmPJJHmXasfr45"),{iv:f.default.enc.Utf8.parse(n||"yRKXEEPaEbHAbCPy")}).toString(f.default.enc.Utf8)}},88:function(e,t,n){"use strict";var r=n(14),o=n(18),l=n(0),c=n(12),d=n(1);l(t,"__esModule",{value:!0}),t.post=t.getInstance=t.baseRequest=void 0;var f=d(n(15)),h=d(n(44)),m=d(n(56)),v=d(n(32)),w=d(n(52)),_=d(n(33)),y=P(n(131)),C=d(n(117)),T=n(26),S=n(16),k=n(62),E=P(n(798)),x=d(n(66)),L=n(48);function A(e){if("function"!=typeof o)return null;var t=new o,n=new o;return(A=function(e){return e?n:t})(e)}function P(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=r(e)&&"function"!=typeof e)return{default:e};var n=A(t);if(n&&n.has(e))return n.get(e);var o={__proto__:null},a=l&&c;for(var u in e)if("default"!==u&&{}.hasOwnProperty.call(e,u)){var i=a?c(e,u):null;i&&(i.get||i.set)?l(o,u,i):o[u]=e[u]}return o.default=e,n&&n.set(e,o),o}var O=y.default.create({timeout:2e4});O.interceptors.request.use(function(){var e=(0,_.default)(v.default.mark((function e(t){return v.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!S.isProduction&&!S.isRC){e.next=6;break}return e.next=3,(0,k.getAPIUrl)();case 3:e.t0=e.sent,e.next=7;break;case 6:e.t0="https://gateway1.weex.com/";case 7:return t.baseURL=e.t0,e.next=10,(0,E.default)(t);case 10:return e.abrupt("return",e.sent);case 11:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),(function(e){var t,r=n(65)(S.isClient&&(null===(t=window)||void 0===t||null===(t=t.$nuxt)||void 0===t||null===(t=t.$i18n)||void 0===t?void 0:t.locale)||"en");return(0,C.default)({type:"error",message:r.timeout}),f.default.resolve(e)})),O.interceptors.response.use((function(data){var e,t=(0,h.default)()-data.config.startTime;(0,x.default)("ajax_response_time",data.request.responseURL,{duration:t});var r=n(65)(S.isClient&&(null===(e=window)||void 0===e||null===(e=e.$nuxt)||void 0===e||null===(e=e.$i18n)||void 0===e?void 0:e.locale)||"en");if(200===(null==data?void 0:data.status)){var o,l,c=S.isClient&&window.$nuxt.context;S.isClient&&window.$nuxt.$store.getters.isLogin;if(["00004","20906","20205"].includes(null==data||null===(o=data.data)||void 0===o?void 0:o.code))return E.forceLoginWhiteList.find((function(e){return data.config.url.indexOf(e)>-1}))?window.$nuxt.$logout(c).then((function(){data.config.url.includes("https://".concat("gateway2"))&&(0,T.goGlobalPath)("login")})):((0,C.default)({type:"error",message:r.expired}),window.$nuxt.$logout(c).then((function(){(0,T.goGlobalPath)("login")}))),{data:{}};if("error"===(null==data||null===(l=data.data)||void 0===l?void 0:l.status))return(0,x.default)("ajax_error",data.request.responseURL,{ext:data.data.msg}),(0,C.default)({type:"error",message:data.data.msg}),{data:{}};if(600==+data.data.code)return(0,x.default)("ajax_error",data.request.responseURL,{ext:data.data.msg}),(data.config.url.indexOf("/v1/user/overview/userinfo")>-1||data.config.url.indexOf("/v1/mix/index/userSelectedList")>-1)&&window.$nuxt.$logout(c).then((function(){data.config.url.includes("https://".concat("gateway2"))&&(0,T.goGlobalPath)("login")})),{data:{}}}return data}),(function(e){var t,r,o,l,c=e&&e.response?null===(t=e.response.request)||void 0===t?void 0:t.responseURL:null===(r=e.config)||void 0===r?void 0:r.url,d=e&&e.response?(0,m.default)(null===(o=e.response)||void 0===o?void 0:o.data):e.code;(0,x.default)("ajax_error",c,{ext:d});var h=n(65)(S.isClient&&(null===(l=window)||void 0===l||null===(l=l.$nuxt)||void 0===l||null===(l=l.$i18n)||void 0===l?void 0:l.locale)||"en");if(e.response){switch(e.response.status){case 504:case 404:(0,C.default)({type:"error",message:h.notfound});break;case 403:(0,C.default)({type:"error",message:h.forbidden});break;default:(0,C.default)({type:"error",message:h.unknow})}e.response.config&&e.response.config.url}else{var v;try{var w;if(null!=e&&null!==(w=e.config)&&void 0!==w&&w.url);}catch(e){}"ECONNABORTED"===e.code&&null!=e&&null!==(v=e.message)&&void 0!==v&&v.includes("timeout")&&(0,C.default)({type:"error",message:h.timeout})}return f.default.reject(e.message)}));t.post=function(e,param){return O.post(e,param)};var I=t.getInstance=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/btapi";function t(data){var e={},t=(0,L.getBackendLocaleCode)(data.languageType);e.locale=t,e.language=t;var n=(0,T.getCookie)("C-TOKEN-KEY")||"",r=(0,T.getCookie)("C-TOKEN-VALUE")||"";return n&&r&&(e[n]=r),data.accessToken&&(e["u-token"]=data.accessToken),data.vToken&&(e["v-token"]=data.vToken),data.terminalCode&&(e.terminalCode=data.terminalCode),data.contentType&&(e["Content-Type"]=data.contentType),data.refreshToken&&(e["refresh-token"]=data.refreshToken),data.locale&&(e.locale=data.locale),data.language&&(e.language=data.language),e}function r(){return o.apply(this,arguments)}function o(){return o=(0,_.default)(v.default.mark((function r(){var o,l,c,data,d,h,m,_,y=arguments;return v.default.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return l=y.length>0&&void 0!==y[0]?y[0]:"post",c=y.length>1?y[1]:void 0,data=y.length>2&&void 0!==y[2]?y[2]:{},d=y.length>3&&void 0!==y[3]&&y[3],h=n(65)(S.isClient&&(null===(o=window)||void 0===o||null===(o=o.$nuxt)||void 0===o||null===(o=o.$i18n)||void 0===o?void 0:o.locale)||"en"),m=e+c,"languageType"in data||(data=(0,w.default)({},data,{languageType:h.lang})),_={},data.headers?(_=t(data.headers),data=data.data):_=t(data),r.abrupt("return",O.request({url:m,method:l,headers:_,params:"get"===l?data:{},data:"post"===l?data:{}}).then((function(e){var data=e.data;return d?0==+data.code||200===Number(data.code)?f.default.resolve(data):void(data.msg&&(0,C.default)(data.msg)):f.default.resolve(data)})).catch((function(e){return f.default.reject(e)})));case 10:case"end":return r.stop()}}),r)}))),o.apply(this,arguments)}return{post:function(e,data,t){return r("post",e,data,t)},get:function(e,data,t){return r("get",e,data,t)}}};t.baseRequest=I("")}}]);
//# sourceMappingURL=2e1962b.js.map