(window.webpackJsonp=window.webpackJsonp||[]).push([[42],{102:function(t,e,n){"use strict";n.d(e,"a",(function(){return w})),n.d(e,"b",(function(){return h}));var r,o=n(70),c=n.n(o);function f(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var d=1,l=2;f(r={},0,{chrome:">=80",firefox:">=80",safari:">=12"}),f(r,d,{chrome:">=80",firefox:">=80",safari:">=12"}),f(r,l,{chrome:">=80",firefox:">=80",safari:">=12"});var v=c.a.PLATFORMS_MAP,w=function(){var t=(window.navigator||{}).userAgent,e=void 0===t?{}:t;return window.navigator.brave?"Brave":c.a.getParser(e).getBrowserName()},h=function(){var t=(window.navigator||{}).userAgent,e=void 0===t?{}:t,n=c.a.getParser(e).getPlatformType(e);return[v.tablet,v.mobile].includes(n)?"h5":"web"}},122:function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}n.d(e,"a",(function(){return r}))},15:function(t,e,n){"use strict";n.d(e,"k",(function(){return I})),n.d(e,"e",(function(){return E})),n.d(e,"b",(function(){return P})),n.d(e,"c",(function(){return Y})),n.d(e,"f",(function(){return M})),n.d(e,"d",(function(){return U})),n.d(e,"a",(function(){return k})),n.d(e,"g",(function(){return D})),n.d(e,"j",(function(){return R})),n.d(e,"h",(function(){return B})),n.d(e,"i",(function(){return N}));var r={set:function(t,e){return"undefined"!=typeof window&&window.localStorage?void 0===e?localStorage.removeItem(t):localStorage.setItem(t,e):null},setObject:function(t,e){return this.set(t,JSON.stringify(e))},get:function(t){if("undefined"!=typeof window&&window.localStorage)try{return localStorage.getItem(t)}catch(t){return null}return""},getObject:function(t){try{return JSON.parse(this.get(t))}catch(t){return{}}},remove:function(t){"undefined"!=typeof window&&window.localStorage&&localStorage.removeItem(t)}},o=n(735),c=n(248);function f(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}var d=n(95);function l(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function v(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}function w(t){for(var i=1;i=200&&t<300},T=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};h(this,t),this.defaultOpts=w(w({},m),e),this.timeout=n.timeout||3e4,this.validateStatus=n.validateStatus||j,this.defaultRespType=n.defaultRespType||"json",this.interceptors={response:[],request:[],errorHandler:[],finally:[]}}var e,n,r;return e=t,(n=[{key:"get",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=t;if(e.body){var o=e.body,c=Object.keys(o);c.forEach((function(t){var param="".concat(t,"=").concat(o[t]);r=r.indexOf("?")>-1?"".concat(r,"&").concat(param):"".concat(r,"?").concat(param)})),delete e.body}return this.fetch(r,w(w({},e),{},{method:"get"}),n)}},{key:"post",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return this.fetch(t,w(w({},e),{},{method:"post"}),n)}},{key:"delete",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return this.fetch(t,w(w({},e),{},{method:"delete"}),n)}},{key:"put",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return this.fetch(t,w(w({},e),{},{method:"put"}),n)}},{key:"fetch",value:function(t){function e(e){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}((function(t){var e,n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2?arguments[2]:void 0,c=o||this.defaultRespType,f=w(w(w({url:t},this.defaultOpts),r),{},{headers:w(w({},this.defaultOpts.headers),r.headers)}),d=this.interceptors.request.reduce((function(e,n){return n(e,t)}),f),l=O?new AbortController:{};d.signal=l.signal;var v=new Promise((function(t,r){e=setTimeout((function(){r({ret_code:9000001,ret_msg:"Request timeout, please re-try!"}),O&&l.abort()}),n.timeout)})),h=fetch(t,d);return Promise.race([h,v]).then((function(t){return clearTimeout(e),t})).then((function(t){return n.validateStatus(t.status)?t.ok?new Promise((function(e){t[_(c)]().then((function(n){e({headers:t.headers,data:n})}))})):{headers:{},data:{}}:Promise.reject({status:t.status,statusText:t.statusText})})).then((function(e){var data=e.data,r=e.headers;return n.interceptors.response.reduce((function(t,e){return t.then(e)}),Promise.resolve({headers:r,data:data,config:d,url:t}))})).catch((function(r){return clearTimeout(e),n.interceptors.errorHandler.forEach((function(e){return e(r,d,t)})),Promise.reject(r)})).finally((function(){n.interceptors.finally.forEach((function(e){return e(d,t)}))}))}))}])&&y(e.prototype,n),r&&y(e,r),t}(),S=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("undefined"==typeof window||!("fetch"in window))return console.error("fetch function doesn't detected in you environment"),null;var n=new T(t,e),r=n.fetch.bind(n);return r.get=n.get.bind(n),r.post=n.post.bind(n),r.put=n.put.bind(n),r.delete=n.delete.bind(n),r.interceptors=n.interceptors,r},A=n(87);function I(){var t=[];return function(){var link=window.location.href;return t[link]||(t[link]=Object(c.b)(window.location)),t[link]}}function E(){return"".concat(String(Date.now()),"-").concat(String(Math.random()))}function B(){return r.get("BYBIT_GA_UID")||""}function D(){return r.get("BYBIT_TDID_V2")||""}function N(){var t;return t=r.get("BYBIT_GA_UID"),window.GA_UID&&t!==window.GA_UID&&r.set("BYBIT_GA_UID",window.GA_UID),window.GA_UID||0}function R(){if(window.OpenID||(window.OpenID={getIds:function(){var data=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};data.TDID&&r.set("BYBIT_TDID_V2",data.TDID)}}),!D()&&!document.getElementById("bybit_tdid_js")){var t=document.createElement("script");t.setAttribute("id","bybit_tdid_js"),t.src="https://match.adsrvr.org/track/rid?ttd_pid=39yincw&v=1.0.0",document.getElementsByTagName("head")[0].appendChild(t)}}function P(){if(window.ga){var t=window.ga.getAll&&window.ga.getAll()||[];if(t.length)return t[0].get("clientId")}var e=Object(o.b)("_ga");return e?e.slice(6):"none client id"}function U(){var t=S({headers:{"Content-Type":"application/json"}});return t.interceptors.response.push((function(t){var e;return t&&"OK"===(null==t||null===(e=t.data)||void 0===e?void 0:e.ret_msg)?Promise.resolve():Promise.reject("Non Response!")})),t}function M(){return"https://api.ffbbbdc6d3c353211fe2ba39c9f744cd.com/p/report?env=".concat(A.c)}var L=function(){return-1!==A.f.indexOf("localhost")?"localhost":A.f.replace(/^(www|m|testnet|blog-test)/,"")},k=function(t,content){var e=L();Object(o.a)(t,JSON.stringify(content),e,"/",43200)},Y=function(){var t=Object(o.b)(d.a);return t&&36===t.length||(t="".concat(f()).concat(f(),"-").concat(f(),"-").concat(f(),"-").concat(f(),"-").concat(f()).concat(f()).concat(f())),Object(o.a)(d.a,t,L(),"/",172800),t}},184:function(t,e,n){"use strict";function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);it.length)&&(e=t.length);for(var i=0,n=new Array(e);i0&&void 0!==arguments[0]?arguments[0]:{},e=t.search;return e?e.slice(1).split("&").reduce((function(t,e){var n=d(e.split("="),2),o=n[0],f=n[1];return c(c({},t),{},r({},o,decodeURIComponent(f)))}),{}):{}},v=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.href.split("?"),n=d(e,2),o=n[1];return o?o.split("&").reduce((function(t,e){var n=d(e.split("="),2),o=n[0],f=n[1];return c(c({},t),{},r({},o,decodeURIComponent(f)))}),{}):{}},w=function(t){var e;try{e=new URL(t)}catch(t){console.warn(t)}return e},h=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=t.split(".");return e.slice(-(e.length-1)).join(".")},y=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=h(t),r=h(e);return n===r}},31:function(t,e,n){"use strict";(function(t){n.d(e,"i",(function(){return f})),n.d(e,"h",(function(){return d})),n.d(e,"a",(function(){return y})),n.d(e,"b",(function(){return O})),n.d(e,"g",(function(){return P})),n.d(e,"d",(function(){return H})),n.d(e,"c",(function(){return V})),n.d(e,"f",(function(){return J})),n.d(e,"e",(function(){return W})),n.d(e,"j",(function(){return K}));var r="undefined"!=typeof window?window.location:{},o=r.hostname,c=(r.protocol,/^[^.]+\.[^.]+\.[^.]+$/.test(o)),f=c&&/^[^.]*testnet[^.]*\./.test(o),d=c&&!f,l=!f&&!d,v="undefined"!=typeof window&&window.__BYBIT_GLOBAL_CONFIG__||{},w=v.enableAutoman&&v.automan||{},h=w.AUTOMAN_RUNTIME_ENV,y=w.AUTOMAN_API2_HOST,O=w.AUTOMAN_WS2_HOST,m=w.AUTOMAN_TMS_HOST,_=w.AUTOMAN_TMS_PATH,j=w.AUTOMAN_TMS_FULL_PATH,T=w.AUTOMAN_SERVICE_DOMAINS,S=(w.AUTOMAN_APM_ENABLED,w.AUTOMAN_APM_URL),A=(w.AUTOMAN_SENTRY_ENABLED,w.AUTOMAN_SENTRY_DSN),I=w.AUTOMAN_LOGGER_ENABLED,E=w.AUTOMAN_LOGGER_URL,B=w.AUTOMAN_METRIC_URL,D=w.AUTOMAN_METRIC_ENABLED,N=w.AUTOMAN_SENSORS_URL,R=(w.AUTOMAN_SENSORS_ENABLED,"local");f?R="testnet":d?R="prod":l&&(R="test");var P=h||R,U=l?"https://tms.ffe390afd658c19dcbf707e0597b846d.de":"",M=t.env.BYBIT_TMS_HOST||m||U,L=l?"/download/{{projectId}}/{{ns}}/{{lng}}/":"/translations/{{projectId}}/{{lng}}/{{ns}}.json",k=t.env.BYBIT_I18N_SOURCE_URL||_||L,Y=(j||"".concat(M).concat(k),"");f?Y="bybitglobal.com":d?Y="bycbe.com, byapis.com":l&&(Y="bybit-cn.com");t.env.BYBIT_SERVICE_DOMAINS;var G=(d?"https://apm.ffbbbdc6d3c353211fe2ba39c9f744cd.com":f&&"https://apm-testnet.ffbbbdc6d3c353211fe2ba39c9f744cd.com")||l&&"http://10.110.185.208:30859"||"http://10.120.140.129:30859",x=(t.env.BYBIT_APM_URL,"true"===t.env.BYBIT_APM_DISABLED),C=(t.env.BYBIT_APM_DISABLED,t.env.BYBIT_SENTRY_DSN,t.env.BYBIT_SENTRY_DISABLED,d?"https://api.ffbbbdc6d3c353211fe2ba39c9f744cd.com/p/front":"https://api.ffbbbdc6d3c353211fe2ba39c9f744cd.com/p/front-testnet"),H=t.env.BYBIT_LOGGER_URL||E||C,F="true"===t.env.BYBIT_LOGGER_DISABLED,V=I||!F,J=t.env.BYBIT_METRIC_URL||B||"/v2/public/metrics",$="true"===t.env.BYBIT_METRIC_DISABLED,W=D||!$,z=d?"https://sc-datasink.ffe390afd658c19dcbf707e0597b846d.de/sa?project=production":"https://sc-datasink.ffe390afd658c19dcbf707e0597b846d.de/sa?project=default",K=(t.env.BYBIT_SENSORS_URL,t.env.BYBIT_SENSORS_DISABLED,o),X=["cloud","announcements","sandbox","blog","newblog","learn"];if(o&&X.some((function(t){return o.includes(t)}))){var Z=new RegExp("(?:(?:".concat(X.join("|"),")-testnet|testnet-(?:").concat(X.join("|"),"))"),"g"),Q=new RegExp("^(?:".concat(X.join("|"),")(?=.)"),"g");K=o.replace(Z,"testnet").replace(Q,"www")}}).call(this,n(34))},319:function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return L})),n.d(e,"b",(function(){return x}));var r=n(195),o=n(87),c=t.env.BYBIT_COOKIE_DOMAIN,f=t.env.BYBIT_API2_HOST,d=t.env.BYBIT_WS2_HOST,l="https:"===o.e?"wss:":"ws:",v=!0,w="public-test-1",h="bybit",y="com",O="";v=!1;var m=o.f?o.f.split("."):[];if(3===m.length){var _=Object(r.a)(m,3);w=_[0],h=_[1],y=_[2]}if(4===m.length)if(o.d){var j=Object(r.a)(m,4);w=j[0],h=j[1],y=j[2],O=j[3],y="".concat(y,".").concat(O)}else{var T=Object(r.a)(m,4);w=T[1],h=T[2],y=T[3]}if(5===m.length){var S=Object(r.a)(m,5);w=S[1],h=S[2],y=S[3],O=S[4],y="".concat(y,".").concat(O)}var A=v&&("dev-3"===w||"test-3"===w),I=/^(www|m)$/,E="testnet"===w||"m-testnet"===w,B=E?"t1.bycsi.com":"s1.bycsi.com",D=/^(www|m|testnet|m-testnet)$/.test(w),N=("".concat(h,".").concat(y),"api2.".concat(I.test(w)?"":"".concat(w,"."))),R="ws2.".concat(I.test(w)?"":"".concat(w,".")),P="chat.".concat(I.test(w)?"":"".concat(w,".")),U="affiliates.";E&&(N="api2-testnet.",P="chat-testnet.",R="ws2-testnet.",U="affiliates-testnet.");var M="";D||(M="https://tms.ffe390afd658c19dcbf707e0597b846d.de",U="affiliates.".concat(w,"."));var L="https://".concat(U).concat(h,".").concat(y),k=N,Y=R,G=(c||"b_t_c_k".concat(I.test(w)?"":"_".concat(w)),"https://".concat("s1.bycsi.com"),"https://".concat(B),"".concat(o.e,"//").concat(P).concat(h,".").concat(y,"/chat/by-chat-widget.js"),A||o.e,A?"wss:":l),x=f||o.a||"".concat(o.e,"//").concat(k).concat(h,".").concat(y),C=(d||o.b||"".concat(G,"//").concat(Y).concat(h,".").concat(y),"".concat(o.e,"//infra-gateway.").concat(w,".").concat(h,".").concat(y),"".concat(G,"//www.").concat(w,".").concat(h,".").concat(y),I.test(w)||"_".concat(w),t.env.BYBIT_TMS_HOST,"https://help.".concat(h,".com"));"https://blog.".concat(h,".com"),"".concat(C,"/hc"),D||t.env.BYBIT_EXPORT_URL}).call(this,n(34))},341:function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n(184);var o=n(230);function c(t){return function(t){if(Array.isArray(t))return Object(r.a)(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||Object(o.a)(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},346:function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return O}));n(341);var r=n(122),o=Object.prototype,c="object"==(void 0===t?"undefined":Object(r.a)(t))&&t&&t.Object===Object&&t,f="object"==("undefined"==typeof self?"undefined":Object(r.a)(self))&&self&&self.Object===Object&&self,d=((c||f||Function("return this")()).isFinite,Symbol?Symbol.toStringTag:void 0),l=(Symbol&&Symbol.isConcatSpreadable,o.toString),v=o.propertyIsEnumerable,w=o.hasOwnProperty,h=(parseInt,o.toString),y=function(t){return!!t&&"object"==Object(r.a)(t)},O=function(t,e){return e.reduce((function(e,n){return n in t&&(e[n]=t[n]),e}),{})};function m(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":d&&d in Object(t)?function(t){var e=w.call(t,d),n=t[d];try{t[d]=void 0;var r=!0}catch(t){}var o=l.call(t);return r&&(e?t[d]=n:delete t[d]),o}(t):h(t)}function _(t){return y(t)&&"[object Arguments]"==m(t)}_(function(){return arguments}())}).call(this,n(23))},350:function(t,e,n){"use strict";n.d(e,"b",(function(){return x}));var r=n(69),o=n(248),c=n(102),f=n(20);function d(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){for(var i=0;i=0||(n[e]=source[e]);return n}(source,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(source);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(source,e)&&(n[e]=source[e])}return n}var I=["eventAction","eventCategory","eventLabel"],E=function(t){h(n,t);var e=_(n);function n(){return d(this,n),e.apply(this,arguments)}return v(n,[{key:"execute",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.proxyDataLayerPush(),this.opts=t}},{key:"proxyDataLayerPush",value:function(){var t=this;window.dataLayer=window.dataLayer||[];var e=window.dataLayer.push.bind(window.dataLayer);window.dataLayer.push=function(n){var r=n.eventAction,o=n.eventCategory,c=n.eventLabel,d=A(n,I);r&&t.notifyObservers(Object(f.a)({action:r,category:o,label:c,dt:void 0,duration:d.duration},t.opts)),e(Object(f.a)({event:"GAEvent",eventAction:r,eventCategory:o,eventLabel:c},d))}}}]),n}(T),B=n(137),D=function(){function t(e,n){if(d(this,t),!e||!n)throw new Error("缺少初始化配置参数");this.logger=new B.a(e,n),this.logger.init()}return v(t,[{key:"update",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger.log(t)}}]),t}(),N=function(t){h(n,t);var e=_(n);function n(t,r){var o;if(d(this,n),o=e.call(this),!t||!r)throw new Error("缺少初始化配置参数");return o.logger=new B.a(t,r),o.logger.init(),o}return v(n,[{key:"update",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger.log(t)}}]),n}(j),R=n(15),P=Object(R.k)(),U=Object(R.f)(),M=new N({logTable:r.a.STORE_PV,keepAliveInBackground:!0,noBackgroundTasks:!0,reportInterval:-1,reportDelay:2e3,reportUrl:U,extendFields:!0,getGuid:R.c,getUid:R.i},{act:"track_pageview",time:function(){return(new Date).getTime()},id:R.e,app_id:function(){return window.APP_ID||1e4},ga_id:R.b,p:c.b,url:function(){return window.location.href},referer:function(){return document.referrer},screen_width:function(){return window.innerWidth},screen_height:function(){return window.innerHeight},medium:function(){return P().medium},source:function(){return P().source},campaign:function(){return P().campaign},stage:function(){return P().stage},content:function(){return P().content},term:function(){return P().term},lang:function(){return window.navigator.language},net_t:function(){var t,e,n;return null===(t=window)||void 0===t||null===(e=t.navigator)||void 0===e||null===(n=e.connection)||void 0===n?void 0:n.effectiveType},sys_mem:function(){var t,e,n;return null===(t=window)||void 0===t||null===(e=t.performance)||void 0===e||null===(n=e.memory)||void 0===n?void 0:n.jsHeapSizeLimit},resolution:function(){return window.devicePixelRatio},sys_cc:function(){return window.navigator.hardwareConcurrency||0},f_java:function(){var t,e;return!!(null===(t=window.navigator)||void 0===t||null===(e=t.javaEnabled)||void 0===e?void 0:e.call(t))},f_cookie:function(){return!!window.navigator.cookieEnabled},f_ls:function(){return!!window.localStorage},f_ss:function(){return!!window.sessionStorage},f_idb:function(){return!!window.indexedDB},screen_aw:function(){return window.screen.availWidth},screen_ah:function(){return window.screen.availHeight},screen_cd:function(){return window.screen.colorDepth},webdriver:function(){return window.navigator.webdriver},tz:function(){var t,e,n,r,o;return null===(t=window)||void 0===t||null===(e=t.Intl)||void 0===e||null===(n=e.DateTimeFormat)||void 0===n||null===(r=n.call(e))||void 0===r||null===(o=r.resolvedOptions())||void 0===o?void 0:o.timeZone},plugins:function(){for(var t,e,n=(null===(t=window)||void 0===t||null===(e=t.navigator)||void 0===e?void 0:e.plugins)||[],r=n.length,o=r<=3?r:3,c=[],i=0;i0&&void 0!==arguments[0]?arguments[0]:{};G.update(t)},C={start:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Object(R.j)();var e=t.pageViewOpts,n=void 0===e?{ignore:!1}:e,r=t.dataLayerOpts,o=void 0===r?{}:r;n.ignore||L.execute(n),Y.execute(o)}};e.a=C},473:function(t,e,n){"use strict";n.d(e,"a",(function(){return A})),n.d(e,"b",(function(){return I}));var r=n(20),o=n(735),c=n(248),f=n(346),d=n(137),l=n(69),v=n(319),w=n(102),h=n(15),y=Object(h.d)(),O=Object(h.f)(),m=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"local";return"production"===t?"BYBIT_REG_REF":"BYBIT_REG_REF_".concat(t)},_="".concat(v.b,"/s1/affiliate/click/add"),j="".concat(v.a,"/apiv2/click/add"),T=new d.a({logTable:l.a.STORE_SIGNUP,noBackgroundTasks:!0,keepAliveInBackground:!0,reportInterval:-1,reportDelay:2e3,reportUrl:O,extendFields:!0,getGuid:h.c,getUid:h.i},{act:"channel_attr",t:"traffic",p:w.b,app_id:function(){return window.APP_ID||1e4},url:function(){return window.location.href},time:function(){return(new Date).getTime()},tdid:h.g,u_cache:h.h});T.init();var S=function(t){if(t){var e=t.hostname,n=t.pathname,r=t.search;return{referrer:"".concat(e).concat(n).concat(r),source:Object(c.a)(e)}}return{}},A=function(t){if("undefined"==typeof window)return"";var e=m(t),n=Object(o.b)(e),r={};try{r=JSON.parse(n)||{}}catch(t){console.warn(t)}return r},I=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("undefined"!=typeof window){Object(h.j)();var o=Object(c.d)(document.referrer),d=window.location.hostname,l=o&&Object(c.e)(d,o.hostname),v=A(t)||{},w=v.affiliate_id,O=v.ref,I=Object(c.c)(window.location),E=I.affiliate_id,B=I.ref,D=I.utmsource,N=w===E,R=O===B,P="impact"!==D,U=window===top.window,M=0!==Object.keys(v).length;if(!(U&&l&&M&&N&&R&&P)){var L,k=m(t),Y=I.source,source=void 0===Y?e.source:Y,G=I.medium,x=void 0===G?e.medium:G,C=I.campaign,H=void 0===C?e.campaign:C,F={stage:I.stage,lang:I.language||navigator.language,regist_channel:I.regist_channel,term:I.term,g:Object(h.c)()};if(E){if(N)return;var V=Object(r.a)(Object(r.a)(Object(r.a)({},F),S(o)),{},{medium:"affiliate"}),J=Object(f.a)(I,["affiliate_id","group_id","group_type"]),$=Object(r.a)(Object(r.a)(Object(r.a)({},V),J),{},{url:window.location.href});if(L=Object(r.a)(Object(r.a)({},V),{},{su:$.affiliate_id})){var W=n?j:_;y.post(W,{body:JSON.stringify(J)}).catch()}Object(h.a)(k,$)}else if(B){if(R)return;var z=Object(r.a)(Object(r.a)(Object(r.a)({},F),S(o)),{},{medium:"referral"}),K=Object(r.a)(Object(r.a)(Object(r.a)({},z),Object(f.a)(I,["ref"])),{},{url:window.location.href});L=Object(r.a)(Object(r.a)({},z),{},{su:K.ref}),v.affiliate_id||Object(h.a)(k,K)}else if(D){var X=Object(r.a)(Object(r.a)(Object(r.a)({},F),{medium:D,utm_url:window.location.href,utm_data:Math.floor((new Date).getTime()/1e3)}),{},{referrer:S(o).referrer,url:window.location.href});L=X,v.affiliate_id||v.ref||Object(h.a)(k,X)}else if(source&&x){var Z=Object(r.a)(Object(r.a)(Object(r.a)({},F),Object(f.a)(I,["content"])),{},{source:source,medium:x,campaign:H,referrer:S(o).referrer,url:window.location.href});L=Z,v.affiliate_id||v.ref||"impact"===v.medium||Object(h.a)(k,Z)}else{var Q=S(o),tt=Q.referrer,et=Q.source,nt=Object(r.a)(Object(r.a)({},F),{},{referrer:tt,source:et,medium:tt?"other":"direct",url:window.location.href});if(L=nt,!tt&&"other"===v.medium)return;v.affiliate_id||v.ref||v.source||"impact"===v.medium||Object(h.a)(k,nt)}L&&T.log(L)}}}},735:function(t,e,n){"use strict";function r(t,e,n,path,r){var o=e;-1!==e.indexOf(";")&&(o=escape(e));var c="".concat(t,"=").concat(o);if(n&&(c+="; domain=".concat(n)),path&&(c+="; path=".concat(path)),r>0){var f=new Date;f.setTime(f.getTime()+60*r*1e3),c+=";expires=".concat(f.toGMTString())}"undefined"!=typeof window&&(document.cookie=c)}function o(t){if("undefined"!=typeof window){var e=document.cookie.match("(^|;) ?".concat(t,"=([^;]*)(;|$)"));return e?unescape(e[2]):null}return null}n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return o}))},87:function(t,e,n){"use strict";(function(t){var r;n.d(e,"d",(function(){return f})),n.d(e,"e",(function(){return w})),n.d(e,"a",(function(){return O})),n.d(e,"b",(function(){return m})),n.d(e,"c",(function(){return R})),n.d(e,"f",(function(){return H}));var o="",c={};"undefined"!=typeof window&&(r=window.location.hostname,o=window.location.protocol,c=window.__BYBIT_GLOBAL_CONFIG__||{});var f=/^[^.]+\.[^.]+\.[^.]+$/.test(r)||/^[^.]+\.[^.]+\.[^.]+\.(hk|uae|us|uk|jp|fr|de|au|ca|br|in|ru)$/.test(r),d=f&&/^[^.]*testnet[^.]*\./.test(r),l=f&&!d,v=!d&&!l,w=o,h=c.enableAutoman&&c.automan||{},y=h.AUTOMAN_RUNTIME_ENV,O=h.AUTOMAN_API2_HOST,m=h.AUTOMAN_WS2_HOST,_=h.AUTOMAN_TMS_HOST,j=h.AUTOMAN_TMS_PATH,T=h.AUTOMAN_TMS_FULL_PATH,S=h.AUTOMAN_SERVICE_DOMAINS,A=(h.AUTOMAN_APM_ENABLED,h.AUTOMAN_APM_URL),I=(h.AUTOMAN_SENTRY_ENABLED,h.AUTOMAN_SENTRY_DSN),E=(h.AUTOMAN_LOGGER_ENABLED,h.AUTOMAN_LOGGER_URL),B=h.AUTOMAN_METRIC_URL,D=(h.AUTOMAN_METRIC_ENABLED,h.AUTOMAN_SENSORS_URL),N=(h.AUTOMAN_SENSORS_ENABLED,"local");d?N="testnet":l?N="prod":v&&(N="test");var R=y||N,P=v?"https://tms.ffe390afd658c19dcbf707e0597b846d.de":"",U=t.env.BYBIT_TMS_HOST||_||P,M=v?"/download/{{projectId}}/{{ns}}/{{lng}}/":"/translations/{{projectId}}/{{lng}}/{{ns}}.json",L=t.env.BYBIT_I18N_SOURCE_URL||j||M,k=(T||"".concat(U).concat(L),"");d?k="bybitglobal.com":l?k="bycbe.com, byapis.com":v&&(k="bybit-cn.com");t.env.BYBIT_SERVICE_DOMAINS;var Y=(l?"https://apm.ffbbbdc6d3c353211fe2ba39c9f744cd.com":d&&"https://apm-testnet.ffbbbdc6d3c353211fe2ba39c9f744cd.com")||v&&"http://10.110.185.208:30859"||"http://10.120.140.129:30859",G=(t.env.BYBIT_APM_URL,"true"===t.env.BYBIT_APM_DISABLED),x=(t.env.BYBIT_APM_DISABLED,t.env.BYBIT_SENTRY_DSN,t.env.BYBIT_SENTRY_DISABLED,l?"https://api.ffbbbdc6d3c353211fe2ba39c9f744cd.com/p/front":"https://api.ffbbbdc6d3c353211fe2ba39c9f744cd.com/p/front-testnet"),C=(t.env.BYBIT_LOGGER_URL,t.env.BYBIT_LOGGER_DISABLED,t.env.BYBIT_METRIC_URL,t.env.BYBIT_METRIC_DISABLED,l?"https://sc-datasink.ffe390afd658c19dcbf707e0597b846d.de/sa?project=production":"https://sc-datasink.ffe390afd658c19dcbf707e0597b846d.de/sa?project=default"),H=(t.env.BYBIT_SENSORS_URL,t.env.BYBIT_SENSORS_DISABLED,r),F=["cloud","announcements","sandbox","blog","newblog","learn"];if(r&&F.some((function(t){return r.includes(t)}))){var V=new RegExp("(?:(?:".concat(F.join("|"),")-testnet|testnet-(?:").concat(F.join("|"),"))"),"g"),J=new RegExp("^(?:".concat(F.join("|"),")(?=.)"),"g");H=r.replace(V,"testnet").replace(J,"www")}}).call(this,n(34))}}]);