PageSourceSearch

https://www.okx.com/cdn/assets/okfe/login/contentweb/2172/index.54ccbedb.js

js okx.com collected 2026-10-01 09:04:34 UTC 32,252 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunklogin=self.webpackChunklogin||[]).push([[2172,3945],{30714:(e,o,t)=>{t.d(o,{Pv:()=>n,_b:()=>r,ov:()=>a});var r=function(e){return e.LINK="okds-link",e.MAIL="okds-mail",e.COMPUTER_OUTLINE="okds-computer-outline",e.FIRE_FLAME_FILLED="okds-fire-flame_filled",e.TRASH="okds-trash",e.LOCKED="okds-locked",e.UNLOCKED="okds-unlocked",e.VERIFIED_FILLED="okds-verified-filled",e.TRENDING_UP="okds-trending-up",e.TOGGLE_UNITS="okds-toggle-units",e.CHEVRON_RIGHT_TEXT_BUTTON="okds-chevron-right-text-button",e.CALENDAR="okds-calendar",e.P2P="okds-p2p",e.EXPRESS_BUY="okds-express-buy",e.CASH_FIAT="okds-cash-fiat",e.CHEVRON_DOWN="okds-chevron-down",e.CHEVRON_UP="okds-chevron-up",e.XBTC="okds-xbtc",e.SELECTED="okds-selected",e.UNSELECTED="okds-unselected",e.CHECKMARK="okds-checkmark",e.REFRESH="okds-refresh",e.DRAW="okds-draw",e.SUN="okds-sun",e.MOON="okds-moon",e.CLEAR="okds-clear",e.THUMB_UP="okds-thumb_up",e.THUMB_DOWN="okds-thumb_down",e.ZOOM_OUT="okds-zoom-out",e.ZOOM_IN="okds-zoom-in",e.INFORMATION_CIRCLE="okds-information-circle",e.WARNING_CIRCLE_FILL="okds-warning-circle-fill",e.SUCCESS_CIRCLE_FILL="okds-success-circle-fill",e.INFORMATION_CIRCLE_FILL="okds-information-circle-fill",e.FAIL_CIRCLE_FILL="okds-fail-circle-fill",e.ARROW_CHEVRON_RIGHT_CENTERED_XS="okds-arrow-chevron-right-centered-xs",e.ARROW_CHEVRON_RIGHT_CENTERED_SM="okds-arrow-chevron-right-centered-sm",e.ARROW_CHEVRON_RIGHT_CENTERED_MD="okds-arrow-chevron-right-centered-md",e.ARROW_POINTER_RIGHT_XS="okds-arrow-pointer-right-xs",e.ARROW_POINTER_RIGHT_SM="okds-arrow-pointer-right-sm",e.ARROW_POINTER_RIGHT_MD="okds-arrow-pointer-right-md",e.USER="okds-user",e.PLUS_CIRCLE_FILLED="okds-plus-circle-filled",e.INTERMEDIATE="okds-intermediate",e.ARROW_CHEVRON_LEFT_CENTERED_SM="okds-arrow-chevron-left-centered-sm",e.EYE_HIDE="okds-eye-hide",e.EYE_SHOW="okds-eye-show",e.COPY="okds-copy",e.HISTORY="okds-history",e.BACK_TO_TOP="okds-back-to-top",e.CLOCK="okds-clock",e.HAMBURGER_SETTING="okds-hamburger-setting",e.FEES="okds-fees",e.OPEN_LINK="okds-open-link",e.SETTING="okds-setting",e.CROWN="okds-crown",e.SHARE="okds-share",e.SUPPORT="okds-support",e.ANALYSIS="okds-analysis",e.ACADEMY="okds-academy",e.ACTION_REVERSE="okds-action-reverse",e.AED="okds-aed",e.ARROW_CHEVERON_ALIGNLEFT_MD="okds-arrow-cheveron-alignleft-md",e.ARROW_CHEVERON_FIRST_MD="okds-arrow-cheveron-first-md",e.ARROW_CHEVERON_LAST_MD="okds-arrow-cheveron-last-md",e.ARROW_CHEVRON_DOWN_MD="okds-arrow-chevron-down-md",e.ARROW_CHEVRON_DOWN_SM="okds-arrow-chevron-down-sm",e.ARROW_POINTER_DOWN_MD="okds-arrow-pointer-down-md",e.ARROW_POINTER_DOWN_SM="okds-arrow-pointer-down-sm",e.ARROW_POINTER_LEFT_MD="okds-arrow-pointer-left-md",e.ARROW_POINTER_LEFT_SM="okds-arrow-pointer-left-sm",e.ARROW_POINTER_UP_MD="okds-arrow-pointer-up-md",e.ARROW_POINTER_UP_SM="okds-arrow-pointer-up-sm",e.ARROW_CHEVRON_UP_MD="okds-arrow-chevron-up-md",e.ARROW_CHEVRON_LEFT_CENTERED_MD="okds-arrow-chevron-left-centered-md",e.ARROW_CHEVRON_UP_SM="okds-arrow-chevron-up-sm",e.BELL="okds-bell",e.AUTHENTICATOR="okds-authenticator",e.BORROW="okds-borrow",e.BRL="okds-brl",e.BRUSH="okds-brush",e.CANCEL_ORDER="okds-cancel-order",e.CANDLESTICK="okds-candlestick",e.CARETS_FILLED_DOWN="okds-carets-filled-down",e.CHAT_BUBBLE="okds-chat-bubble",e.CARETS_FILLED_UP="okds-carets-filled-up",e.CLEAR_FILL="okds-clear-fill",e.ASSETS="okds-assets",e.BANK="okds-bank",e.CLOCK_FILLED="okds-clock-filled",e.CLOCK_OUTLINE="okds-clock-outline",e.CLOSE="okds-close",e.COMMUNICATION_CALL="okds-communication-call",e.COMMUNICATION_IDCARD="okds-communication-idcard",e.COMMUNICATION_IMG_FAILED="okds-communication-img-failed",e.COMMUNICATIONS_FACEID="okds-communications-faceid",e.EYE_SHOW_FILLED="okds-eye-show-filled",e.COMMUNICATION_IMG="okds-communication-img",e.CONVERTOKB="okds-convertokb",e.CURSOR_DRAG="okds-cursor-drag",e.DATA_LINE_CHART="okds-data-line-chart",e.DEPOSIT="okds-deposit",e.CURSOR_ZOOM="okds-cursor-zoom",e.DOWNLOAD="okds-download",e.EXCHANGE="okds-exchange",e.DEVELOPERS="okds-developers",e.EUR="okds-eur",e.EDIT="okds-edit",e.EXPAND="okds-expand",e.EYE_HIDE_FILLED="okds-eye-hide-filled",e.FAIL_CIRCLE="okds-fail-circle",e.FILTER="okds-filter",e.FINANCE_BANK="okds-finance-bank",e.FINANCE_SEAGULL="okds-finance-seagull",e.FINANCE_EARN="okds-finance-earn",e.FUTURES="okds-futures",e.FUNDING_RATES="okds-funding-rates",e.GBP="okds-gbp",e.GUIDE="okds-guide",e.HAMBURGER_EDIT="okds-hamburger-edit",e.HAMBURGER_SEARCH="okds-hamburger-search",e.HAMBURGER="okds-hamburger",e.HIERACHY="okds-hierachy",e.ID_CARD="okds-id-card",e.IMG="okds-img",e.INSURANCE_FUND="okds-insurance-fund",e.LANGUAGE="okds-language",e.MARGIN="okds-margin",e.LOGOUT="okds-logout",e.MINUS="okds-minus",e.MORE="okds-more",e.NETWORK_FEE_STANDARD="okds-network-fee-standard",e.OPTION="okds-option",e.ORDERS="okds-orders",e.PENDING_CIRCLE="okds-pending-circle",e.PIE_CHART="okds-pie-chart",e.PLACE_ORDER="okds-place-order",e.PLAY="okds-play",e.PLUS_CIRCLE="okds-plus-circle",e.PLUS="okds-plus",e.PROFILE="okds-profile",e.QRCODE="okds-qrcode",e.QUESTION_MARK_CIRCLE_FILL="okds-question-mark-circle-fill",e.QUESTION_MARK_CIRCLE="okds-question-mark-circle",e.SORT_UP_CENTER_ALIGNED="okds-sort-up-center-aligned",e.RECORDS="okds-records",e.RED_PACKE="okds-red-packe",e.SCAN="okds-scan",e.REPORT_CENTRE="okds-report-centre",e.SECURITY_FILL="okds-security-fill",e.SEARCH="okds-search",e.SECURITY="okds-security",e.TRANSFER="okds-transfer",e.SETTLEMENT_HISTORY="okds-settlement-history",e.TRENDS="okds-trends",e.SORT_DEFAULT_CENTER_ALIGNED="okds-sort-default-center-aligned",e.SORT_DEFAULT="okds-sort-default",e.SORT_DOWN_CENT
1ER_ALIGNED_SVG="okds-sort-down-center-aligned-svg",e.WITHDRAW="okds-withdraw",e.SORT_DOWN="okds-sort-down",e.SORT_UP="okds-sort-up",e.STAR_FILLED="okds-star-filled",e.STAR="okds-star",e.STRONG_ALERT="okds-strong-alert",e.SUCCESS_CIRCLE="okds-success-circle",e.TRADE_1="okds-trade-1",e.TRANSFER_CIRCLE="okds-transfer-circle",e.UNLINK="okds-unlink",e.USD="okds-usd",e.WARNING_CIRCLE="okds-warning-circle",e}({}),a=function(e){return e.TELEGRAM="okx-aas-Telegram",e.CALL="okx-aas-call",e.AUTO_EARN="okx-aas-auto-earn",e.CLOCK_FILLED="okx-aas-clock-filled",e.TOGGLE_UNITS="okx-aas-toggle-units",e.CHART_SETTINGS="okx-aas-chart-settings",e.NETWORK_FEE_FAST="okx-aas-network-fee-fast",e.STRUCTURED_PRODUCT="okx-aas-structured-product",e.EXCHANGE_TAB_OUTLINE="okx-aas-exchange-tab-outline",e.DIP_SNIPER="okx-aas-dip-sniper",e.WINDOWS="okx-aas-windows",e.FUTURES_DCA="okx-aas-futures-DCA",e.EARN_OUTLINE="okx-aas-earn-outline",e.SPOT_GRID="okx-aas-spot-grid",e.ANALYSIS="okx-aas-analysis",e.BROWSE_HISTORY="okx-aas-browse-history",e.BULB="okx-aas-bulb",e.MARGIN="okx-aas-margin",e.SETTING="okx-aas-setting",e.COPIERS="okx-aas-copiers",e.COPIERS_FILLED="okx-aas-copiers-filled",e.API_KEYS="okx-aas-api-keys",e.REACTIVATE_ACCOUNT="okx-aas-reactivate-account",e.FORWARD="okx-aas-forward",e.HAMBURGER_SEARCH="okx-aas-hamburger-search",e.SWITCH_ACCOUNT_FILLED="okx-aas-switch-account-filled",e.SWITCH_ACCOUNT_OUTLINE="okx-aas-switch-account-outline",e.ANTI_PHISHING="okx-aas-anti-phishing",e.WEB3_CAUTION="okx-aas-web3-caution",e.PASSKEY="okx-aas-passkey",e.SPOT_DCA="okx-aas-spot-DCA",e.WEB3_REPORT_FILLED="okx-aas-web3-report-filled",e.NAV_TRADE_SIMPLE="okx-aas-nav-trade-simple",e.ADJUST_CURRENCY_OUTLINE="okx-aas-adjust-currency-outline",e.WEB3_24H_TURNOVER="okx-aas-web3-24h-turnover",e.CANDLE_CHART_INDICATOR="okx-aas-candle-chart-indicator",e.KLINE_STYLE="okx-aas-kline-style",e.GLOBE="okx-aas-globe",e.APP_AUTHENTICATION="okx-aas-app-authentication",e.ADDRESS="okx-aas-address",e.DESKTOP_KEY="okx-aas-desktop-key",e.UNFOLLOW="okx-aas-unfollow",e.FREEZE_ACCOUNT="okx-aas-freeze-account",e.TIPS="okx-aas-tips",e.ROTATE="okx-aas-rotate",e.CLOSE_OUTLINE="okx-aas-close-outline",e.SHARE="okx-aas-share",e.CLEAR="okx-aas-clear",e.BELL="okx-aas-bell",e.SELECTED_OUTLINED="okx-aas-selected-outlined",e.EXPAND="okx-aas-expand",e.REVERSED="okx-aas-reversed",e.DOWNLOAD="okx-aas-download",e.CLEAR_FILLED="okx-aas-clear-filled",e.OPEN_LINK="okx-aas-open-link",e.FILTER="okx-aas-filter",e.FILTERED="okx-aas-filtered",e.SEARCH="okx-aas-search",e.CHEVRON_LEFT_ALIGNLEFT="okx-aas-chevron-left_alignleft",e.EDIT="okx-aas-edit",e.WARNING_FILLED="okx-aas-warning-filled",e.CLOCK="okx-aas-clock",e.SELECTED="okx-aas-selected",e.ACTION_REVERSE="okx-aas-action-reverse",e.LOCKED_FILLED="okx-aas-locked-filled",e.TRASH="okx-aas-trash",e.PLUS="okx-aas-plus",e.INFORMATION_FILLED="okx-aas-information-filled",e.CHEVRON_LEFT="okx-aas-chevron-left",e.CHEVRON_RIGHT_ALIGNRIGHT="okx-aas-chevron-right_alignright",e.CHEVRON_DOWN="okx-aas-chevron-down",e.HISTORY="okx-aas-history",e.MORE="okx-aas-more",e.CHECKMARK="okx-aas-checkmark",e.SAFE="okx-aas-safe",e.EASY_CONVERT="okx-aas-easy-convert",e.CONVERT="okx-aas-convert",e.TRANSFER="okx-aas-transfer",e.DEPOSIT="okx-aas-deposit",e.COPY="okx-aas-copy",e.CLOCK_CANCELLATION_OUTLINE="okx-aas-clock-cancellation_outline",e.POINTER_DOWN="okx-aas-pointer-down",e.OKDS_POINTER_UP="okx-aas-okds-pointer_up",e.POINTER_RIGHT="okx-aas-pointer-right",e.POINTER_LEFT="okx-aas-pointer-left",e.LOAN="okx-aas-loan",e.UNLOCK="okx-aas-unlock",e.LIMIT_DOWN_OUTLINE="okx-aas-limit-down-outline",e.UNLINK="okx-aas-unlink",e.CHEVRON_RIGHT="okx-aas-chevron-right",e.MAIL="okx-aas-mail",e.LINK="okx-aas-link",e.COMPUTER_OUTLINE="okx-aas-computer-outline",e.VERIFIED_FILLED="okx-aas-verified-filled",e.CALENDAR="okx-aas-calendar",e.WARNING="okx-aas-warning",e.VIDEO_ON="okx-aas-video-on",e.ORDERS="okx-aas-orders",e.SECURITYKEY="okx-aas-securitykey",e.INFORMATION="okx-aas-information",e.LOCKED_NEW="okx-aas-locked-new",e.WEB3_SECURITY_FILLED="okx-aas-web3-security-filled",e.WEB3_CAUTION_FILLED="okx-aas-web3-caution-filled",e.VIP_FILLED="okx-aas-vip-filled",e.NAV_REWARDS="okx-aas-nav-rewards",e.ASSETS="okx-aas-assets",e.OKX_FILLED="okx-aas-okx-filled",e.TASK_CENTER="okx-aas-task-center",e.SETTING_CURRENCY="okx-aas-setting-currency",e.COLLATERAL_COIN="okx-aas-collateral-coin",e.CASH_FIAT="okx-aas-cash-fiat",e.FREEZE_ACCOUNT_FILLED="okx-aas-freeze-account-filled",e.ACCOUNTS_FILLED="okx-aas-accounts-filled",e.BOOK_FILLED="okx-aas-book-filled",e.LOCATION_OUTLINE="okx-aas-location-outline",e.LOCATION_FILLED="okx-aas-location-filled",e.LOCKED="okx-aas-locked",e.CONFIRM_CURRENCY_OUTLINE="okx-aas-confirm-currency-outline",e.PROOF_OF_ADDRESS="okx-aas-proof-of-address",e.PASSWORD="okx-aas-password",e.INFO_CIRCLE="okx-aas-info-circle",e.P2P="okx-aas-p2p",e.EXPRESSBUY="okx-aas-expressbuy",e.REFERRAL="okx-aas-referral",e.FIAT_TURKEY="okx-aas-fiat-turkey",e.CHANGE="okx-aas-change",e.DRAW="okx-aas-draw",e.INTERMEDIATE="okx-aas-intermediate",e.EYE_HIDE="okx-aas-eye-hide",e.EYE_SHOW="okx-aas-eye-show",e.TRADE_RULES="okx-aas-trade-rules",e.TRANSLATION_OFF="okx-aas-translation-off",e.EXPRESS_BUY="okx-aas-express-buy",e.AUTHENTICATION_DEVICE="okx-aas-authentication-device",e.ANTIPHISHING="okx-aas-antiphishing",e.AUTHENTICATION_EMAIL="okx-aas-authentication-email",e.CLOSE="okx-aas-close",e.COMPUTER="okx-aas-computer",e.DEVICEMGMT="okx-aas-devicemgmt",e.FIBONACCI_RETRACEMENTS="okx-aas-fibonacci-retracements",e.FIDO_COMPUTERKEY="okx-aas-fido-computerkey",e.REMIND="okx-aas-remind",e.FIDO_MOBILEKEY="okx-aas-fido-mobilekey",e.AUTHENTICATION_CALL="okx-aas-authentication-call",e.FINGERPRINT="okx-aas-fingerprint",e.FREEZE="okx-aas-freeze",e.GOOGLEAUTH="okx-aas-googleauth",e.KEY="okx-aas-key",e.MOBILE="okx-aas-mobile",e.RECEIPT="okx-aas-receipt",e.PASSKEYS="okx-aas-passkeys",e.TRADE="okx-aas-trade",e.UNFINISHED="okx-aas-unfinished",e.WHATSAPP="okx-aas-whatsapp",e.PORTFOLIO="okx-aas-portfolio",e.ADDRESSBOOK="okx-aas-addressbook",e}({}),n=function(e){return e.UNOFFICIAL="iconunofficial",e.YOUJIANTOU="iconyoujiantou",e.YOUJIAN="iconyoujian",e.SHEBEI="iconshebei",e.SHOUJI="iconshouji",e.LOADING="iconLoading",e.ICN_CHAIN_OUTLINE_MD="iconicn-chain-outline-md",e.OVERVIEW_EYE_SLASH="iconoverview_eye_slash",e.UNFOLD="iconUnfold",e.GOOGLE_FORWARD1="icongoogle-forward1",e.TELEGRAM="iconTelegram",e.ICN_EYE_SLASH="iconicn-eye-slash",e.ICN_EYE="iconicn-eye",e.ICN_GOOGLE="iconicn-google",e.ICN_NEW_ACCOUNT="iconicn-new-account",e.ICN_ACCOUNT_LINKED="iconicn-account-linked",e.ASSETS_DISPLAY="iconassets_display",e.CLOSE_CIRCLE="iconclose-circle",e.ICON_AUTHORIZE="iconicon_authorize",e.SEARCH="iconsearch",e.SELECT="iconselect",e.DROPDOWN_CELL="icondropdown-cell",e.DROPDOWN_MAIL="icondropdown-mail",e.DROPDOWN_SWITCH="iconDropdown_switch",e.ICON_OKEX="iconicon_okex",e.ICON__OKCOIN="iconicon__okcoin",e}({})},90373:(e,o,t)=>{t.d(o,{LW:()=>a,qI:()=>n});t(91147),t(12817);var r=t(33122);function a(){switch((new r._).get("workspace")){case"trading-oauth":default:return"atk_advance";case"trading-oauth-simple":return"atk_simple";case"growth-affiliate-mcp":return"affiliate"}}function n(e){return e?"read":"none"}},75388:(e,o,t)=>{t.d(o,{Nb:()=>r,Nf:()=>i,e2:()=>a,f2:()=>s,gF:()=>n});var r=6;function a(e){return/^[0-9]+$/.test(e)}function n(e){return/^[A-Z0-9]+$/i.test(e)}
1function s(e){var o=e.join("");return o.length===r&&a(o)}function i(e,o){var t=o;if(e&&e.length>0){var r=e.charAt(0);r===o.charAt(0)?t=o.charAt(1):r===o.charAt(1)&&(t=o.charAt(0))}return t}},68930:(e,o,t)=>{t.d(o,{n4:()=>F});var r,a,n,s=t(90675),i=t(10467),c=t(23029),u=t(92901),d=t(56822),l=t(53954),E=t(85501),k=t(793),A=t(5344),_=t(25136),R=t(32096),f=t.n(R),h=t(47185),I=t.n(h),O=t(86763),N=t(78561),C=t(36447),p=t(89185),v=t(83834),T=t(33122),L=t(95528),S=t(7213),x=t(30996),D=t(9165),m=t(95094),g=t(70091),U=t(84101),w=t(37399),y=t(73773);var F=function(e){return e.Code="code",e.Device="device",e}({}),b=function(e){return null!==e&&void 0!==e?e:{}},P=(r=(0,x.eu)(),a=(0,x.eu)(),n=function(e){function o(){var e,t,r,a,n;return(0,c.A)(this,o),r=this,a=o,n=["McpOAuthStore"],a=(0,l.A)(a),(t=(0,d.A)(r,function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){return!1}}()?Reflect.construct(a,n||[],(0,l.A)(r).constructor):a.apply(r,n))).step="loading",t.deviceInfo=void 0,t.accountName=void 0,t.isSubAccount=!1,t.confirmResult=void 0,t.confirmErrorMessage=void 0,t.resolvedUserCode=void 0,t.cancelReason=void 0,t.showOverrideDialog=!1,t.pendingScope=void 0,t.precheckClientName=void 0,t.mfaSessionId=void 0,t.availableScopes=[],t.strategy=new O.K,t.mfaInstance=void 0,t.query=new T._,t.flow=void 0,t.authLogout=void 0,t.flow=t.query.get("flow"),t.resolvedUserCode=null!==(e=t.query.get("userCode"))&&void 0!==e?e:void 0,t.authLogout=t.strategy.requiresLogoutOnComplete(),(0,x.f0)(t),t}return(0,E.A)(o,e),(0,u.A)(o,[{key:"clientName",get:function(){var e,o,t;return null!==(e=null!==(o=null===(t=this.deviceInfo)||void 0===t?void 0:t.clientName)&&void 0!==o?o:this.precheckClientName)&&void 0!==e?e:""}},{key:"persistResultAndLogout",value:function(e){var o=this;if(U.S.clearDeviceFlowCache(),L.S.isApp()||!this.authLogout)return e.redirectUri||(U.S.saveResult(e),this.query.setInUrl("oauth_result",e.status)),e.redirectUri?void g.TC.pureNavigate(e.redirectUri):void(0,A.h5)(function(){var t,r;"success"===e.status?(o.confirmResult="success",o.step="authorise"):(o.cancelReason=e.cancelReason,o.step="cancelled"),o.precheckClientName=e.clientName,o.accountName=null!==(t=e.accountName)&&void 0!==t?t:o.accountName,o.isSubAccount=null!==(r=e.isSubAccount)&&void 0!==r?r:o.isSubAccount});"success"===e.status&&e.redirectUri?S.A.logout(function(){setTimeout(function(){g.TC.pureNavigate(e.redirectUri)})}):(U.S.saveResult(e),S.A.logout(function(){g.TC.navigate("oauth",{keepSearchParam:!0,extraSearchParam:{oauth_result:e.status}})}))}},{key:"handleQueryResult",value:function(){var e=this,o=this.query.get("oauth_result");if("success"!==o&&"cancelled"!==o)return!1;var t=U.S.getPersistedResult();return U.S.clearPendingResult(),U.S.clearDeviceFlowCache(),this.authLogout&&S.A.logout(),(0,A.h5)(function(){var r,a;"success"===o?(e.confirmResult="success",e.step="authorise"):(e.cancelReason=null===t||void 0===t?void 0:t.cancelReason,e.step="c
1ancelled"),e.precheckClientName=null!==(r=null===t||void 0===t?void 0:t.clientName)&&void 0!==r?r:"",e.accountName=null===t||void 0===t?void 0:t.accountName,e.isSubAccount=null!==(a=null===t||void 0===t?void 0:t.isSubAccount)&&void 0!==a&&a}),!0}},{key:"initUserProfile",value:function(){var e=(0,i.A)((0,s.A)().mark(function e(){var o,t,r,a=this;return(0,s.A)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,m.D.getUserProfile();case 1:if(!((t=e.sent).data.kycLevel<2)){e.next=2;break}return f().showKycDialog({onClose:function(){a.persistResultAndLogout({status:"cancelled",clientName:a.clientName,accountName:a.accountName,cancelReason:"kyc",isSubAccount:a.isSubAccount})}}),(0,A.h5)(function(){a.step=null}),e.abrupt("return",!1);case 2:return r=null!==(o=t.data.currentIsSub)&&void 0!==o&&o,(0,A.h5)(function(){var e;a.accountName=null!==(e=L.S.isApp()?v.m.getAppWebviewDisplayLoginName(t.data):v.m.getDisplayLoginName())&&void 0!==e?e:void 0,a.isSubAccount=r}),e.abrupt("return",!0);case 3:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}()},{key:"initDeviceFlow",value:function(){var e=(0,i.A)((0,s.A)().mark(function e(){var o,t,r,a,n,i=this;return(0,s.A)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if((0,A.h5)(function(){i.availableScopes=(0,N.fh)()}),this.resolvedUserCode){e.next=2;break}if(!(o=U.S.getDeviceFlowCache())){e.next=1;break}(0,A.h5)(function(){i.resolvedUserCode=o.userCode,o.deviceInfo&&(i.deviceInfo=o.deviceInfo)}),e.next=2;break;case 1:return(0,A.h5)(function(){i.step="userCode"}),e.abrupt("return");case 2:return e.prev=2,e.next=3,(0,D.NW)(null!==(t=this.resolvedUserCode)&&void 0!==t?t:"");case 3:if(a=e.sent,n=a.data,(0,A.h5)(function(){i.deviceInfo=n}),U.S.saveDeviceFlowCache(null!==(r=this.resolvedUserCode)&&void 0!==r?r:"",n),"authorized"!==n.status&&"completed"!==n.status){e.next=4;break}return this.authLogout&&S.A.logout(),(0,A.h5)(function(){i.confirmResult="success",i.step="authorise"}),e.abrupt("return");case 4:if("denied"!==n.status){e.next=5;break}return this.authLogout&&S.A.logout(),(0,A.h5)(function(){i.step="cancelled"}),e.abrupt("return");case 5:e.next=7;break;case 6:e.prev=6,e.catch(2);case 7:(0,A.h5)(function(){i.step="authorise"});case 8:case"end":return e.stop()}},e,this,[[2,6]])}));return function(){return e.apply(this,arguments)}}()},{key:"initCodeFlow",value:function(){var e=(0,i.A)((0,s.A)().mark(function e(){var o,t,r,a,n=this;return(0,s.A)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=1,(0,D.Ju)(null!==(o=this.query.get("client_id"))&&void 0!==o?o:"",null!==(t=this.query.get("code_challenge"))&&void 0!==t?t:"");case 1:if(r=e.sent,a=r.data,(0,A.h5)(function(){n.precheckClientName=a.clientName,n.availableScopes=(0,N.fh)()}),"authorized"!==a.status){e.next=2;break}return this.authLogout&&S.A.logout(),(0,A.h5)(function(){n.confirmResult="success",n.step="authorise"}),e.abrupt("return");case 2:if("denied"!==a.status){e.next=3;break}return this.authLogout&&S.A.logout(),(0,A.h5)(function(){n.step="cancelled"}),e.abrupt("return");case 3:e.next=5;break;case 4:return e.prev=4,e.catch(0),(0,A.h5)(function(){n.confirmResult="error",n.step="authorise"}),e.abrupt("return");case 5:(0,A.h5)(function(){n.step="authorise"});case 6:case"end":return e.stop()}},e,this,[[0,4]])}));return function(){return e.apply(this,arguments)}}()},{key:"onMount",value:function(){var e=(0,i.A)((0,s.A)().mark(function e(){var o=this;return(0,s.A)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.handleQueryResult()){e.next=1;break}return e.abrupt("return");case 1:return e.next=2,I().checkIsLogin();case 2:if(e.sent){e.next=3;break}return S.A.toAuthLogin(),e.abrupt("return");case 3:return e.next=4,this.initUserProfile();case 4:if(e.sent){e.next=5;break}return e.abrupt("return");case 5:if(this.flow!==F.Device){e.next=7;break}return e.next=6,this.initDeviceFlow();case 6:return e.abrupt("return");case 7:if(this.flow!==F.Code){e.next=9;break}return e.next=8,this.initCodeFlow();case 8:return e.abrupt("return");case 9:(0,A.h5)(function(){o.step="authorise"});case 10:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}()},{key:"onUnmount",value:function(){var e;null===(e=this.mfaInstance)||void 0===e||e.destroy(),this.mfaInstance=void 0}},{key:"fetchDialogDeviceInfo",value:function(){var e=(0,i.A)((0,s.A)().mark(function e(o){var t,r,a=this;return(0,s.A)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,(0,D.NW)(o);case 1:return t=e.sent,(r=t.data)&&((0,A.h5)(function(){a.deviceInfo=r,a.resolvedUserCode=o}),U.S.saveDeviceFlowCache(o,r)),e.abrupt("return",r);case 2:case"end":return e.stop()}},e)}));return function(o){return e.apply(this,arguments)}}()},{key:"handleCodeDialogConfirm",value:function(e,o){this.deviceInfo=o,this.resolvedUserCode=e,this.availableScopes=(0,N.fh)(),this.step="authorise"}},{key:"handleCodeDialogCancel",value:function(){var e=(0,i.A)((0,s.A)().mark(function e(){var o;return(0,s.A)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return U.S.clearDeviceFlowCache(),e.prev=1,e.next=2,this.strategy.confirmDevice({userCode:null!==(o=this.resolvedUserCode)&&void 0!==o?o:"",approved:!1,scope:""});case 2:e.next=4;break;case 3:e.prev=3,e.catch(1);case 4:this.authLogout?S.A.logout(function(){g.TC.navigate("authLogin",{keepSearchParam:!0})}):g.TC.navigate("overview");case 5:case"end":return e.stop()}},e,this,[[1,3]])}
1));return function(){return e.apply(this,arguments)}}()},{key:"handleCancel",value:function(){var e=(0,i.A)((0,s.A)().mark(function e(){var o,t,r,a;return(0,s.A)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this.flow!==F.Device){e.next=5;break}return e.prev=1,e.next=2,this.strategy.confirmDevice({userCode:null!==(o=this.resolvedUserCode)&&void 0!==o?o:"",approved:!1,scope:""});case 2:e.next=4;break;case 3:e.prev=3,e.catch(1);case 4:e.next=9;break;case 5:if(this.flow!==F.Code){e.next=9;break}return e.prev=6,e.next=7,this.strategy.confirmToken({clientId:null!==(t=this.query.get("client_id"))&&void 0!==t?t:"",redirectUri:null!==(r=this.query.getDecoded("redirect_uri"))&&void 0!==r?r:"",scope:"",codeChallenge:null!==(a=this.query.get("code_challenge"))&&void 0!==a?a:"",approved:!1});case 7:e.next=9;break;case 8:e.prev=8,e.catch(6);case 9:this.persistResultAndLogout({status:"cancelled",clientName:this.clientName,accountName:this.accountName,isSubAccount:this.isSubAccount});case 10:case"end":return e.stop()}},e,this,[[1,3],[6,8]])}));return function(){return e.apply(this,arguments)}}()},{key:"handleConfirm",value:function(){var e=(0,i.A)((0,s.A)().mark(function e(o){var t,r,a=this;return(0,s.A)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this.confirmResult=void 0,e.prev=1,e.next=2,this.runMfaInit();case 2:return e.next=3,this.executeConfirm(o);case 3:e.next=7;break;case 4:if(e.prev=4,r=e.catch(1),"mfa_dismissed"!==(t=b(r)).message){e.next=5;break}return e.abrupt("return");case 5:if(t.code!==C.V.MCP_AUTH_CLIENT_ALREADY_LINKED){e.next=6;break}return(0,A.h5)(function(){a.showOverrideDialog=!0,a.pendingScope=o}),e.abrupt("return");case 6:this.handleConfirmFallbackError(r);case 7:case"end":return e.stop()}},e,this,[[1,4]])}));return function(o){return e.apply(this,arguments)}}()},{key:"handleOverrideConfirm",value:function(){var e=(0,i.A)((0,s.A)().mark(function e(){var o,t;return(0,s.A)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this.showOverrideDialog=!1,o=this.pendingScope,this.pendingScope=void 0,o){e.next=1;break}return e.abrupt("return");case 1:return e.prev=1,e.next=2,this.executeConfirm(o,!0);case 2:e.next=4;break;case 3:e.prev=3,t=e.catch(1),this.handleConfirmFallbackError(t);case 4:case"end":return e.stop()}},e,this,[[1,3]])}));return function(){return e.apply(this,arguments)}}()},{key:"handleOverrideDismiss",value:function(){this.showOverrideDialog=!1,this.pendingScope=void 0}},{key:"handleMFAVerification",value:function(e){var o=this;return new Promise(function(r,a){var n=new _.TX({moduleType:_.nz.POST_LOGIN,mfaSessionId:function(){var o=(0,i.A)((0,s.A)().mark(function o(){var t,r;return(0,s.A)().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=1,p.q.createSession({business:e});case 1:return t=o.sent,r=t.data,o.abrupt("return",r.sessionId);case 2:case"end":return o.stop()}},o)}));return function(){return o.apply(this,arguments)}}(),onSuccess:function(){var e=(0,i.A)((0,s.A)().mark(function e(t){var a;return(0,s.A)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:a=t.sessionId,(0,A.h5)(function(){o.mfaSessionId=a}),r();case 1:case"end":return e.stop()}},e)}));return function(o){return e.apply(this,arguments)}}(),onClose:function(){a(new Error("mfa_dismissed"))},onTimeout:_.es.EXIT,onRetryLimitError:function(){a(new Error("mfa_dismissed"))},KYCDialog:function(){return t.e(1899).then(t.t.bind(t,61899,23))}});o.mfaInstance=n,n.show()})}},{key:"handleConfirmFallbackError",value:function(e){var o=this,t=b(e);t.code!==C.V.MCP_AUTH_SESSION_ALREADY_APPROVED?t.code!==C.V.MCP_AUTH_SESSION_ALREADY_DENIED?(U.S.clearDeviceFlowCache(),(0,A.h5)(function(){o.confirmResult="error",o.confirmErrorMessage=t.message||t.error_message||t.msg})):U.S.clearDeviceFlowCache():this.persistResultAndLogout({status:"success",clientName:this.clientName,accountName:this.accountName,isSubAccount:this.isSubAccount})}},{key:"runMfaInit",value:function(){var e=(0,i.A)((0,s.A)().mark(function e(){var o,t,r,a;return(0,s.A)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,this.strategy.init({flowType:this.flow===F.Code?"pkce":"device",clientId:null!==(o=this.query.get("client_id"))&&void 0!==o?o:void 0,state:null!==(t=this.query.get("state"))&&void 0!==t?t:void 0,codeChallenge:null!==(r=this.query.get("code_challenge"))&&void 0!==r?r:void 0,userCode:this.flow===F.Device?this.resolvedUserCode:void 0});case 1:if("MFA_VERIFICATION"!==(a=e.sent).nextStep){e.next=2;break}return e.next=2,this.handleMFAVerification(a.business);case 2:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}()},{key:"executeConfirm",value:function(){var e=(0,i.A)((0,s.A)().mark(function e(o,t){var r,a,n,i,c,u,d;return(0,s.A)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this.flow!==F.Code){e.next=2;break}return e.next=1,this.strategy.confirmToken({clientId:null!==(r=this.query.get("client_id"))&&void 0!==r?r:"",redirectUri:null!==(a=this.query.getDecoded("redirect_uri"))&&void 0!==a?a:"",scope:o,codeChallenge:null!==(n=this.query.get("code_challenge"))&&void 0!==n?n:"",state:null!==(i=this.query.get("state"))&&void 0!==i?i:void 0,resource:null!==(c=this.query.getDecoded("resource"))&&void 0!==c?c:void 0,overwriteLinkage:t,approved:!0,mfaSessionId:this.mfaSessionId});case 1:(u=e.sent)&&this.persistResultAndLogout({status:"success",clientName:this.clientName,accountName:this.accountName,isSubAccount:this.isSubAccount,redirectUri:u}),e.next=4;break;case 2:if(this.flow!==F.Device){e.next=4;break}return e.next=3,this.strategy.confirmDevice({userCode:null!==(d=this.resolvedUserCode)&&void 0!==d?d:"",approved:!0,scope:o,overwriteLinkage:t,mfaSessionId:this.mfaSessionId});case 3:this.persistResultAndLogout({status:"success",clientName:this.clientName,accountName:this.accountName,isSubAccount:this.isSubAccount});case 4:case"end":return e.stop()}},e,this)}));return function(o,t){return e.apply(this,arguments)}}()}])}(x.at),(0,k.A)(n.prototype,"handleConfirm",[r],Object.getOwnPropertyDescriptor(n.prototype,"handleConfirm"),n.prototype),(0,k.A)(n.prototype,"handleOverrideConfirm",[a],Object.getOwnPropertyDescriptor(n.prototype,"handleOverrideConfirm"),n.prototype),n);(0,x.rR)(y.y,function(){return new P},w.j)},58946:(e,o,t)=>{t.d(o,{f:()=>u});var r=t(90675),a=t(10467),n=t(23029),s=t(92901),i=t(70732),c=t(85610),u=function(){return(0,s.A)(function e(){(0,n.A)(this,e)},null,[{key:"createSession",value:function(){var e=(0,a.A)((0,r.A)().mark(function e(o){return(0,r.A)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",c.A.get(i.y.COMMON_NON_AUTH_FACE_VERIFY_OVERSEAS_CREATE,{params:o}));case 1:case"end":return e.stop()}},e)}));return function(o){return e.apply(this,arguments)}}()},{key:"createSessionAuth",value:function(){var e=(0,a.A)((0,r.A)().mark(function e(o,t){return(0,r.A)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",c.A.post(i.y.COMMON_FACE_VERIFY_OVERSEAS_CREATE,o,{headers:{Authorization:t}}));case 1:case"end":return e.stop()}},e)}));return function(o,t){return e.apply(this,arguments)}}()},{key:"notifyResult",value:function(){var e=(0,a.A)((0,r.A)().mark(function e(o){return(0,r.A)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",c.A.post(i.y.COMMON_NON_AUTH_FACE_VERIFY_OVERSEAS_RESULT,o));case 1:case"end":return e.stop()}},e)}));return function(o){return e.apply(this,arguments)}}()},{key:"notifyResultAuth",value:function(){var e=(0,a.A)((0,r.A)().mark(function e(o,t){return(0,r.A)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",c.A.post(i.y.COMMON_FACE_VERIFY_OVERSEAS_RESULT,o,{headers:{Authorization:t}}));case 1:case"end":return e.stop()}},e)}));return function(o,t){return e.apply(this,arguments)}}()},{key:"checkResult",value:function(){var e=(0,a.A)((0,r.A)().mark(function e(o){return(0,r.A)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",c.A.post(i.y.V3_COMP_FACIALVERFICATION_RESULT,o));case 1:case"end":return e.stop()}},e)}));return function(o){return e.apply(this,arguments)}}()}])}()},84724:(e,o,t)=>{t.d(o,{r:()=>r});var r=function(e){return e[e.INITIALIZED=0]="INITIALIZED",e[e.PENDING=1]="PEND
1ING",e[e.SUCCESS=2]="SUCCESS",e[e.FAILURE=3]="FAILURE",e[e.EXPIRED=6]="EXPIRED",e}({})},91147:(e,o,t)=>{t.d(o,{v:()=>r});var r=function(e){return e.OKX_US="OKX_US",e.OKX_TR="OKX_TR",e.OKX_HK="OKX_HK",e.OKX_GLOBAL="OKX_GLOBAL",e.OKX_EUR="OKX_EUR",e}({})},12817:(e,o,t)=>{t.d(o,{B:()=>d});var r=t(23029),a=t(92901),n=t(99692),s=t(28667),i=t(91147),c=t(95305),u=t(95528),d=function(){function e(){(0,r.A)(this,e)}return(0,a.A)(e,null,[{key:"getHostname",value:function(){return(0,n.f)()?(0,s.A)().host:window.location.hostname}},{key:"isOKXDomain",value:function(){return!u.S.isProduction()||e.getHostname().split(".").slice(-2).join(".")===e.DOMAIN}},{key:"getUserSiteByHostname",value:function(){var o=e.getHostname();switch(o){case e.TURKEY_DOMAIN:return i.v.OKX_TR;case e.EEA_DOMAIN:return i.v.OKX_EUR;case e.US_DOMAIN:return i.v.OKX_US;case e.GLOBAL_DOMAIN:case e.GLOBAL_BETA_DOMAIN:return i.v.OKX_GLOBAL;default:return c.r.warn({action:"DomainUtil.getUserSite - unknown domain",errorMessage:"Domain not recognised: ".concat(o),errorCode:"JAVASCRIPT_ERROR"}),u.S.getUserSite()}}}])}();d.DOMAIN="okx.com",d.GLOBAL_DOMAIN="www.okx.com",d.GLOBAL_BETA_DOMAIN="beta.okex.org",d.TURKEY_DOMAIN="tr.okx.com",d.EEA_DOMAIN="my.okx.com",d.US_DOMAIN="app.okx.com"},824:(e,o,t)=>{t.d(o,{m:()=>a});var r=t(77059);function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default";return r.$.loadingStore.getLoading(e)}},72397:(e,o,t)=>{t.d(o,{x:()=>n});var r=t(31720),a=t(77059);function n(e){return(0,r.q3)(function(){return a.$.countdownStore.get(e)})}},9898:(e,o,t)=>{t.d(o,{Ro:()=>n,U8:()=>s,wJ:()=>i});var r=t(4536),a=t(22471);function n(e){return/^([a-zA-Z0-9_\-\.\+]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([a-zA-Z0-9\-]+\.)+))([a-zA-Z]{2,20}|[0-9]{1,3})(\]?)$/.test(e)}function s(e){return n(e)?a.e8.EMAIL:/^\d+(\.\d+)?$/.test(o=e)||/^(-(([0-9]+\.[0-9]*[1-9][0-9]*)|([0-9]*[1-9][0-9]*\.[0-9]+)|([0-9]*[1-9][0-9]*)))$/.test(o)?a.e8.PHONE:a.e8.CHILD;var o}function i(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:8,t="";return e&&0!==e.length?(e.length<o||e.length>32)&&(t=(0,r.kW)("authlogin_mid_errortip_password_length")):t=(0,r.kW)("authlogin_mid_input_password_placeholder"),t}},75200:()=>{},97580:()=>{},30871:()=>{}}]);
2//# sourceMappingURL=https://static-daily.okg.com/crash/okfe/login/2172/index.54ccbedb.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.