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,UAAY+D,EAAK/D,WAAavQ,EAAMgU,KAAKzD,SAAU,MACrF,CAGA8D,EAASH,EAAkBlU,EAAMgU,MAEnC,CACF,GACF,C,qEC/EA,IAAIS,EAAM,CACT,kBAAmB,KACnB,cAAe,MACf,eAAgB,MAChB,sBAAuB,MACvB,gBAAiB,MACjB,eAAgB,MAChB,sBAAuB,OAIxB,SAASC,EAAeC,GACvB,IAAIrY,EAAKsY,EAAsBD,GAC/B,OAAOE,EAAoBvY,EAC5B,CACA,SAASsY,EAAsBD,GAC9B,IAAIE,EAAoBpZ,EAAEgZ,EAAKE,GAAM,CACpC,IAAIha,EAAI,IAAIma,MAAM,uBAAyBH,EAAM,KAEjD,MADAha,EAAEoa,KAAO,mBACHpa,CACP,CACA,OAAO8Z,EAAIE,EACZ,CACAD,EAAeM,KAAO,WACrB,OAAOza,OAAOya,KAAKP,EACpB,EACAC,EAAeO,QAAUL,EACzBM,EAAOC,QAAUT,EACjBA,EAAepY,GAAK,K","sources":["constants/assets/icon_oracle_dexv2_uni.svg","constants/assets/icon_pancakeswap.svg","constants/assets/icon_sushiswap.svg","components/MediaQuery/index.tsx","assets/svg/icon_info.svg","components/ToolTip/IconToolTip/index.tsx","components/ToolTip/ResponsiveTooltip/index.tsx","configs/chain/index.ts","connectors/WebSocketConnector/ReconnectingWebSocketProvider.ts","constants/api.ts","constants/index.ts","constants/mock.ts","constants/number.ts","constants/rpc.ts","constants/tx.ts","entities/SocketService.ts","entities/WrappedBigNumber.tsx","entities/WrappedQuote.ts","entities/WrappedToken.ts","types/worker.ts","utils/SymmetricEncryption.ts","utils/chainConfig.tsx","utils/log.ts","utils/transform/pair.ts","utils/transform/transformId.ts","worker/ChainContextWorker.ts","worker/helper.ts","configs/chain|sync|/^/.//.*/.json$"],"sourcesContent":["var _path, _path2, _path3, _path4, _path5, _path6, _path7, _path8, _path9;\nconst _excluded = [\"title\", \"titleId\"];\nfunction _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }\nfunction _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }\nfunction _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }\nimport * as React from \"react\";\nimport { forwardRef } from \"react\";\nconst SvgIconOracleDexv2Uni = (_ref, ref) => {\n let {\n title,\n titleId\n } = _ref,\n props = _objectWithoutProperties(_ref, _excluded);\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 16 16\",\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\",\n ref: ref,\n \"aria-labelledby\": titleId\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", {\n id: titleId\n }, title) : null, _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M0.941552 0.425771C2.67321 2.51469 4.00289 3.68845 4.64071 4.25147C4.85809 4.44336 4.99511 4.56431 5.04028 4.62636C5.18701 4.82796 5.13179 5.0092 4.88042 5.15124C4.74063 5.23021 4.45323 5.31022 4.30934 5.31022C4.1466 5.31022 4.09071 5.24783 4.09071 5.24783C4.07927 5.23704 4.06842 5.22778 4.05735 5.21832C3.97711 5.14983 3.88442 5.07071 3.45861 4.31949C2.78584 3.28191 2.22281 2.4212 2.20745 2.40678C2.17193 2.37346 2.17254 2.37458 3.39001 4.53968C3.54645 4.89854 3.47881 5.07678 3.44456 5.16705C3.43574 5.19028 3.42913 5.20769 3.42913 5.22085C3.42913 5.35159 3.39325 5.42032 3.23097 5.60022C2.96045 5.90017 2.83953 6.2372 2.75223 6.93471C2.65437 7.71661 2.37919 8.26892 1.61658 9.21422C1.17017 9.76757 1.09712 9.86899 0.984483 10.092C0.842602 10.3729 0.80359 10.5302 0.787778 10.8848C0.771066 11.2598 0.803614 11.5021 0.918878 11.8606C1.01979 12.1745 1.12512 12.3817 1.39439 12.7962C1.62677 13.1539 1.76057 13.4198 1.76057 13.5238C1.76057 13.6065 1.77647 13.6066 2.13656 13.5258C2.99831 13.3324 3.69804 12.9922 4.09158 12.5753C4.33514 12.3173 4.39232 12.1748 4.39418 11.8213C4.3954 11.59 4.38721 11.5415 4.32431 11.4085C4.22192 11.1919 4.03552 11.0119 3.62467 10.7328C3.08637 10.367 2.85645 10.0725 2.79294 9.66761C2.74084 9.33535 2.80128 9.10092 3.09908 8.48058C3.40731 7.83847 3.4837 7.56484 3.53537 6.91762C3.56874 6.49947 3.61496 6.33457 3.73583 6.20219C3.86191 6.06417 3.9754 6.01742 4.28739 5.97505C4.79604 5.90599 5.11993 5.7752 5.38615 5.53137C5.6171 5.31983 5.71375 5.11602 5.72857 4.8092L5.73984 4.57664L5.61077 4.42709C5.14339 3.88545 0.62855 0 0.599787 0C0.593643 0 0.747444 0.19161 0.941552 0.425771ZM2.02294 11.3091C2.12861 11.1231 2.07246 10.884 1.8957 10.7671C1.72869 10.6568 1.46924 10.7088 1.46924 10.8526C1.46924 10.8965 1.49366 10.9285 1.54869 10.9566C1.64137 11.004 1.64809 11.0573 1.57518 11.1662C1.50134 11.2765 1.5073 11.3736 1.592 11.4394C1.7285 11.5456 1.92174 11.4872 2.02294 11.3091Z\",\n fill: \"#FC74FE\"\n })), _path2 || (_path2 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M5.20336 1.16586C4.99485 1.13371 4.98606 1.12994 5.08418 1.11495C5.27222 1.08621 5.71625 1.12539 6.02223 1.19769C6.73656 1.36646 7.38655 1.79878 8.08039 2.56658L8.26472 2.77056L8.52841 2.72843C9.6393 2.55099 10.7694 2.69201 11.7146 3.12601C11.9747 3.2454 12.3847 3.48308 12.4359 3.54416C12.4522 3.56362 12.4822 3.68891 12.5025 3.82261C12.5727 4.28517 12.5375 4.63973 12.3952 4.90455C12.3177 5.04865 12.3134 5.09433 12.3655 5.21765C12.4071 5.31607 12.523 5.38891 12.6377 5.38875C12.8726 5.38843 13.1255 5.01103 13.2426 4.4859L13.2892 4.27732L13.3813 4.3811C13.8869 4.95048 14.2841 5.72698 14.3523 6.2797L14.3701 6.42381L14.2851 6.2928C14.1389 6.06737 13.9918 5.9139 13.8037 5.79013C13.4644 5.56702 13.1057 5.4911 12.1557 5.44133C11.2977 5.3964 10.8121 5.32357 10.3306 5.16751C9.51138 4.90203 9.0984 4.54847 8.12525 3.27949C7.69302 2.71585 7.42586 2.40401 7.16011 2.15287C6.55625 1.58222 5.9629 1.28295 5.20336 1.16586Z\",\n fill: \"#FC74FE\"\n })), _path3 || (_path3 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12.63 2.42405C12.6516 2.04637 12.7031 1.79725 12.8068 1.56974C12.8478 1.47969 12.8862 1.40599 12.8921 1.40599C12.898 1.40599 12.8802 1.47245 12.8525 1.55368C12.7772 1.77447 12.7647 2.07647 12.8166 2.42783C12.8825 2.87365 12.92 2.93797 13.3941 3.41955C13.6164 3.64544 13.8751 3.93032 13.9688 4.05263L14.1394 4.27503L13.9688 4.11609C13.7604 3.92172 13.2809 3.54267 13.175 3.48848C13.1039 3.45215 13.0934 3.45278 13.0496 3.49611C13.0092 3.53604 13.0007 3.59604 12.9952 3.8797C12.9864 4.3218 12.9257 4.60556 12.7795 4.88928C12.7003 5.04274 12.6878 5.00999 12.7594 4.83678C12.8129 4.70745 12.8183 4.6506 12.818 4.22262C12.8171 3.36272 12.7144 3.15599 12.1121 2.80185C11.9595 2.71214 11.708 2.58276 11.5533 2.51432C11.3986 2.44589 11.2758 2.38628 11.2802 2.38182C11.2973 2.36495 11.8847 2.53536 12.1212 2.62576C12.4729 2.76022 12.5309 2.77765 12.5736 2.76142C12.6023 2.75055 12.6162 2.66767 12.63 2.42405Z\",\n fill: \"#FC74FE\"\n })), _path4 || (_path4 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M4.98061 1.76368C4.92391 2.42757 5.18582 3.31566 5.60913 3.89489C5.93728 4.34391 6.44596 4.69283 6.82148 4.72652C7.06738 4.74859 7.14127 4.67208 7.03003 4.51062C6.87559 4.28645 6.68564 3.94127 6.63538 3.7935C6.60415 3.70169 6.53629 3.4305 6.48457 3.19086C6.308 2.37273 6.13443 2.05412 5.73353 1.81213C5.58744 1.72393 5.27545 1.60851 5.0945 1.57572L4.99814 1.55824L4.98061 1.76368Z\",\n fill: \"#FC74FE\"\n })), _path5 || (_path5 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12.1166 8.20593C10.1384 7.41428 9.44164 6.72712 9.44164 5.56769C9.44164 5.39706 9.44755 5.25746 9.45474 5.25746C9.46195 5.25746 9.53849 5.31377 9.62483 5.38261C10.026 5.70239 10.4752 5.83898 11.7187 6.01929C12.4506 6.12541 12.8624 6.21112 13.2423 6.33633C14.4497 6.73433 15.1967 7.54201 15.3749 8.64212C15.4266 8.96178 15.3963 9.56124 15.3123 9.87717C15.2461 10.1267 15.0439 10.5765 14.9902 10.5938C14.9754 10.5986 14.9608 10.5419 14.9569 10.4648C14.9367 10.0517 14.7266 9.64959 14.3739 9.34833C13.9729 9.00583 13.4341 8.73312 12.1166 8.20593Z\",\n fill: \"#FC74FE\"\n })), _path6 || (_path6 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10.6315 8.11947C10.6592 8.20169 10.7022 8.38891 10.727 8.5355C10.8854 9.47277 10.3905 10.23 9.42758 10.5234C9.32561 10.5545 8.92407 10.6325 8.53525 10.697C7.74814 10.8272 7.39683 10.9194 7.04393 11.0884C6.79364 11.2082 6.49062 11.3878 6.50863 11.4056C6.51443 11.4114 6.57157 11.3977 6.63555 11.3754C7.08061 11.2201 7.57591 11.1397 8.32846 11.1008C8.62707 11.0854 8.96674 11.0608 9.08328 11.0462C9.75372 10.9623 10.2183 10.7599 10.5797 10.3944C10.7808 10.191 10.9006 10.0015 10.9972 9.73425C11.0584 9.56479 11.0667 9.50182 11.0672 9.20145C11.0677 8.8955 11.0603 8.83951 10.9939 8.65123C10.907 8.40454 10.8045 8.21932 10.6748 8.07459L10.581 7.97L10.6315 8.11947Z\",\n fill: \"#FC74FE\"\n })), _path7 || (_path7 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11.6339 10.1355C11.3711 9.57395 11.3107 9.03174 11.4548 8.52608C11.4702 8.47205 11.4949 8.42783 11.5098 8.42783C11.5247 8.42783 11.5867 8.46115 11.6476 8.50187C11.7688 8.58291 12.0117 8.7194 12.6588 9.0701C13.4664 9.50772 13.9269 9.84657 14.24 10.2337C14.5142 10.5727 14.6839 10.9589 14.7656 11.4299C14.8118 11.6965 14.7847 12.3383 14.7158 12.6069C14.4987 13.4538 13.9941 14.119 13.2743 14.5072C13.1689 14.5641 13.0742 14.6108 13.064 14.611C13.0537 14.6112 13.0922 14.5141 13.1494 14.3952C13.3914 13.8921 13.419 13.4028 13.236 12.8581C13.1239 12.5246 12.8953 12.1177 12.434 11.4299C11.8974 10.6303 11.7659 10.4175 11.6339 10.1355Z\",\n fill: \"#FC74FE\"\n })), _path8 || (_path8 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M6.68329 11.9774C5.85126 12.1118 4.93785 12.5494 4.20374 13.1655L3.98518 13.3489L4.17725 13.3787C5.17958 13.5342 5.44949 13.6721 6.14475 14.384C6.54486 14.7936 6.67999 14.8847 7.01185 14.969C7.49928 15.0926 7.97978 14.8654 8.14456 14.4332C8.2182 14.2402 8.2084 13.9204 8.12394 13.7598C7.92291 13.3775 7.33751 13.254 7.05441 13.534C6.81861 13.7673 6.88732 14.1187 7.18058 14.1791C7.24772 14.1929 7.24581 14.1901 7.16347 14.153C7.03512 14.0953 6.97937 14.0154 6.97866 13.8881C6.97702 13.5896 7.32058 13.4221 7.64021 13.5655C7.87423 13.6705 7.96719 13.8076 7.96719 14.048C7.96719 14.4183 7.65013 14.6972 7.28119 14.6516C7.08399 14.6272 6.84282 14.5019 6.71349 14.3565C6.38809 13.9908 6.51485 13.4138 6.96918 13.1923C7.31505 13.0238 7.7748 13.0654 8.1313 13.2973C8.54094 13.564 8.71515 13.8076 9.06797 14.6074C9.18285 14.8679 9.33065 15.1609 9.39641 15.2589C9.73057 15.7562 10.131 16 10.6134 16C10.8794 16 11.0795 15.9517 11.3313 15.8267C11.5184 15.7338 11.7836 15.5574 11.7644 15.5385C11.759 15.5331 11.6814 15.557 11.592 15.5917C11.0654 15.7959 10.53 15.7819 10.2191 15.5557C10.0233 15.4132 9.86538 15.1297 9.7842 14.7749C9.77016 14.7134 9.72379 14.4423 9.68115 14.1722C9.57306 13.4876 9.46924 13.1799 9.22725 12.8269C8.97964 12.4656 8.50352 12.1624 7.97127 12.027C7.63922 11.9425 7.04188 11.9195 6.68329 11.9774Z\",\n fill: \"#FC74FE\"\n })), _path9 || (_path9 = /*#__PURE__*/React.createElement(\"path\", {\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M5.51768 6.68506C5.58953 6.42132 5.82165 6.16978 6.06044 6.09689C6.21228 6.05057 6.52612 6.08014 6.6737 6.15469C6.95969 6.29921 7.16731 6.62841 7.12226 6.86596C7.0673 7.15574 6.59456 7.38754 6.05077 7.39131C5.77302 7.39325 5.67044 7.35616 5.56437 7.21537C5.49872 7.12821 5.47385 6.84596 5.51768 6.68506ZM6.60068 6.25795C6.7433 6.34452 6.77999 6.47251 6.69613 6.59095C6.63837 6.67253 6.45954 6.74998 6.32886 6.74998C6.13254 6.74998 5.91834 6.61148 5.91834 6.48454C5.91834 6.22952 6.32907 6.09312 6.60068 6.25795Z\",\n fill: \"#FC74FE\"\n })));\n};\nconst ForwardRef = /*#__PURE__*/forwardRef(SvgIconOracleDexv2Uni);\nexport { ForwardRef as ReactComponent };\nexport default __webpack_public_path__ + \"static/media/icon_oracle_dexv2_uni.8233b883749d55e0270866873c9a9d07.svg\";","var _path, _path2, _path3, _path4, _path5;\nconst _excluded = [\"title\", \"titleId\"];\nfunction _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }\nfunction _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }\nfunction _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }\nimport * as React from \"react\";\nimport { forwardRef } from \"react\";\nconst SvgIconPancakeswap = (_ref, ref) => {\n let {\n title,\n titleId\n } = _ref,\n props = _objectWithoutProperties(_ref, _excluded);\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 16 16\",\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\",\n ref: ref,\n \"aria-labelledby\": titleId\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", {\n id: titleId\n }, title) : null, _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M3.51735 3.1875C3.29653 2.05 4.17981 1 5.32808 1C6.34385 1 7.18297 1.83125 7.18297 2.8375V5.1125C7.44795 5.1125 7.71293 5.06875 7.97792 5.06875C8.2429 5.06875 8.46372 5.06875 8.72871 5.1125V2.8375C8.72871 1.83125 9.56782 1 10.5836 1C11.7319 1 12.6151 2.05 12.4385 3.1875L11.9527 5.85625C13.6751 6.6 15 7.9125 15 9.53125V10.5375C15 11.8937 14.1167 13.0312 12.836 13.775C11.5552 14.5625 9.87697 15 7.97792 15C6.07886 15 4.40063 14.5625 3.11987 13.775C1.88328 13.0312 1 11.8937 1 10.5375V9.53125C1 7.9125 2.28076 6.6 4.00315 5.85625L3.51735 3.1875ZM11.2902 6.20625L11.8644 3.05625C11.9968 2.26875 11.4227 1.525 10.5836 1.525C9.87697 1.525 9.30284 2.09375 9.30284 2.79375V5.68125C9.12618 5.6375 8.90536 5.6375 8.72871 5.6375C8.46372 5.6375 8.2429 5.59375 7.97792 5.59375C7.71293 5.59375 7.44795 5.59375 7.18297 5.6375C7.00631 5.6375 6.78549 5.68125 6.60883 5.68125V2.8375C6.60883 2.1375 6.0347 1.56875 5.32808 1.56875C4.53312 1.56875 3.91483 2.3125 4.09148 3.1L4.66562 6.25C2.81073 6.95 1.57413 8.175 1.57413 9.575V10.5813C1.57413 12.725 4.4448 14.475 7.97792 14.475C11.511 14.475 14.3817 12.725 14.3817 10.5813V9.575C14.4259 8.13125 13.1893 6.90625 11.2902 6.20625Z\",\n fill: \"#633001\"\n })), _path2 || (_path2 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M13.9588 10.8214C13.9588 12.5714 11.2784 14 7.97938 14C4.68041 14 2 12.5714 2 10.8214V10H14V10.8214H13.9588Z\",\n fill: \"#FEDC90\"\n })), _path3 || (_path3 = /*#__PURE__*/React.createElement(\"path\", {\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M4.31724 3.41544C4.15172 2.6875 4.73103 2 5.47586 2C6.13793 2 6.67586 2.52574 6.67586 3.17279V5.84191C7.08966 5.80147 7.50345 5.76103 7.95862 5.76103C8.37241 5.76103 8.78621 5.80147 9.2 5.84191V3.17279C9.2 2.52574 9.73793 2 10.4 2C11.1448 2 11.7241 2.6875 11.6 3.41544L11.0621 6.32721C12.8 6.97426 14 8.10662 14 9.40074C14 11.3824 11.3103 13 8 13C4.68966 13 2 11.3824 2 9.40074C2 8.10662 3.15862 6.97426 4.89655 6.32721L4.31724 3.41544Z\",\n fill: \"#D1884F\"\n })), _path4 || (_path4 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M6 9C6 9.54167 5.78125 10 5.5 10C5.21875 10 5 9.54167 5 9C5 8.45833 5.21875 8 5.5 8C5.78125 8 6 8.45833 6 9Z\",\n fill: \"#633001\"\n })), _path5 || (_path5 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 9C11 9.54167 10.7812 10 10.5 10C10.2187 10 10 9.54167 10 9C10 8.45833 10.2187 8 10.5 8C10.7812 8 11 8.45833 11 9Z\",\n fill: \"#633001\"\n })));\n};\nconst ForwardRef = /*#__PURE__*/forwardRef(SvgIconPancakeswap);\nexport { ForwardRef as ReactComponent };\nexport default __webpack_public_path__ + \"static/media/icon_pancakeswap.966d5ac96182fc78eda5d6154dcb08b0.svg\";","var _path, _g, _defs;\nconst _excluded = [\"title\", \"titleId\"];\nfunction _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }\nfunction _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }\nfunction _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }\nimport * as React from \"react\";\nimport { forwardRef } from \"react\";\nconst SvgIconSushiswap = (_ref, ref) => {\n let {\n title,\n titleId\n } = _ref,\n props = _objectWithoutProperties(_ref, _excluded);\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 24 24\",\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\",\n ref: ref,\n \"aria-labelledby\": titleId\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", {\n id: titleId\n }, title) : null, /*#__PURE__*/React.createElement(\"mask\", {\n id: \"mask0_45318_133182\",\n style: {\n maskType: \"luminance\"\n },\n maskUnits: \"userSpaceOnUse\",\n x: 1,\n y: 1,\n width: 22,\n height: 22\n }, _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23 1H1V23H23V1Z\",\n fill: \"white\"\n }))), _g || (_g = /*#__PURE__*/React.createElement(\"g\", {\n mask: \"url(#mask0_45318_133182)\"\n }, /*#__PURE__*/React.createElement(\"path\", {\n d: \"M5.58337 3.1084L22.6334 14.7501L18.4167 20.9834L1.3667 9.25007L5.58337 3.1084Z\",\n fill: \"url(#paint0_linear_45318_133182)\"\n }), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22.6332 14.7501C21.1665 16.8585 16.2165 16.0335 11.5415 12.7335C6.77485 9.52512 4.20818 5.21679 5.58318 3.10845C7.04985 1.00012 11.9998 1.82512 16.6748 5.12512C21.4415 8.24179 24.0082 12.6418 22.6332 14.7501Z\",\n fill: \"url(#paint1_linear_45318_133182)\"\n }), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18.4166 20.8921C16.95 23.0004 12 22.1754 7.32496 18.8754C2.64996 15.5754 -0.00837681 11.3587 1.45829 9.15875C2.92496 7.05041 7.87496 7.87541 12.55 11.1754C17.225 14.4754 19.7916 18.7837 18.4166 20.8921Z\",\n fill: \"url(#paint2_linear_45318_133182)\"\n }), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22.6333 14.75L18.4166 20.9834C16.95 23.0917 12 22.175 7.32497 18.9667C6.4083 18.325 5.5833 17.6834 4.7583 16.95C5.39997 16.8584 6.22497 16.4917 7.04997 15.575C8.51663 14.0167 9.24997 13.65 9.89163 13.7417C10.5333 13.7417 11.2666 14.3834 12.4583 15.9417C13.65 17.5 15.3 17.9584 16.3083 17.1334C16.4 17.0417 16.4916 17.0417 16.5833 16.95C17.4083 16.3084 17.6833 16.0334 19.2416 13.1C19.6083 12.3667 20.8916 11.175 22.6333 11.725C23.0916 12.9167 23.0916 13.925 22.6333 14.75Z\",\n fill: \"#0E0F23\"\n }), /*#__PURE__*/React.createElement(\"path\", {\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M21.9915 14.3836C20.7082 16.2169 16.2165 15.3003 11.9082 12.2753C7.50822 9.25027 4.94155 5.40027 6.22488 3.56694C7.50822 1.7336 11.9999 2.65027 16.3082 5.67527C20.6166 8.70027 23.1832 12.5503 21.9915 14.3836ZM17.9582 11.6336C17.3165 12.5503 15.1166 12.0919 12.9166 10.6253C10.8082 9.1586 9.52488 7.2336 10.1666 6.31694C10.8082 5.40027 13.0082 5.8586 15.2082 7.32527C17.3165 8.79194 18.5999 10.7169 17.9582 11.6336Z\",\n fill: \"white\"\n }), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M5.21652 5.21704C5.21652 5.12537 5.12485 5.03371 5.03319 5.12537C4.94152 5.21704 4.84985 5.21704 4.84985 5.30871C4.94152 5.58371 5.03319 5.76704 5.03319 5.95037C5.03319 6.04204 5.12485 6.13371 5.21652 6.04204C5.30819 6.04204 5.39985 5.95037 5.30819 5.85871C5.30819 5.67537 5.30819 5.49204 5.21652 5.21704Z\",\n fill: \"white\"\n }), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M5.6749 6.68335C5.6749 6.59168 5.58324 6.50001 5.49157 6.59168C5.3999 6.68335 5.3999 6.68335 5.3999 6.77501C6.40824 9.06668 8.51657 11.5417 11.2666 13.375C11.3582 13.4667 11.4499 13.375 11.5416 13.375C11.6332 13.2833 11.5416 13.1917 11.5416 13.1C8.6999 11.2667 6.68324 8.88335 5.6749 6.68335Z\",\n fill: \"white\"\n }), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16.7666 15.6665C16.6749 15.6665 16.5833 15.6665 16.5833 15.7582C16.5833 15.8498 16.5833 15.9415 16.6749 15.9415C16.9499 16.0332 17.3166 16.1248 17.5916 16.2165C17.6833 16.2165 17.7749 16.2165 17.7749 16.1248C17.7749 16.0332 17.7749 15.9415 17.6833 15.9415C17.4083 15.8498 17.0416 15.7582 16.7666 15.6665Z\",\n fill: \"white\"\n }), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18.4165 16.0337C18.3248 16.0337 18.2332 16.1254 18.2332 16.217C18.2332 16.3087 18.3248 16.4004 18.4165 16.4004C19.1498 16.492 19.9748 16.5837 20.6165 16.492C20.7082 16.492 20.7998 16.4004 20.7998 16.3087C20.7998 16.217 20.7082 16.1254 20.6165 16.1254C19.8832 16.217 19.1498 16.1254 18.4165 16.0337Z\",\n fill: \"white\"\n }))), _defs || (_defs = /*#__PURE__*/React.createElement(\"defs\", null, /*#__PURE__*/React.createElement(\"linearGradient\", {\n id: \"paint0_linear_45318_133182\",\n x1: 8.92388,\n y1: 1.45317,\n x2: 12.3051,\n y2: 13.0639,\n gradientUnits: \"userSpaceOnUse\"\n }, /*#__PURE__*/React.createElement(\"stop\", {\n stopColor: \"#03B8FF\"\n }), /*#__PURE__*/React.createElement(\"stop\", {\n offset: 1,\n stopColor: \"#FA52A0\"\n })), /*#__PURE__*/React.createElement(\"linearGradient\", {\n id: \"paint1_linear_45318_133182\",\n x1: 11.7082,\n y1: 0.642253,\n x2: 15.0895,\n y2: 12.253,\n gradientUnits: \"userSpaceOnUse\"\n }, /*#__PURE__*/React.createElement(\"stop\", {\n stopColor: \"#03B8FF\"\n }), /*#__PURE__*/React.createElement(\"stop\", {\n offset: 1,\n stopColor: \"#FA52A0\"\n })), /*#__PURE__*/React.createElement(\"linearGradient\", {\n id: \"paint2_linear_45318_133182\",\n x1: 6.14796,\n y1: 2.26184,\n x2: 9.52927,\n y2: 13.8726,\n gradientUnits: \"userSpaceOnUse\"\n }, /*#__PURE__*/React.createElement(\"stop\", {\n stopColor: \"#03B8FF\"\n }), /*#__PURE__*/React.createElement(\"stop\", {\n offset: 1,\n stopColor: \"#FA52A0\"\n })))));\n};\nconst ForwardRef = /*#__PURE__*/forwardRef(SvgIconSushiswap);\nexport { ForwardRef as ReactComponent };\nexport default __webpack_public_path__ + \"static/media/icon_sushiswap.21cc3fea20b239d349c74cfab5f00490.svg\";","import { useMemo } from 'react';\nimport { useMediaQuery } from 'react-responsive';\n\n/**\n * Desktop or laptop\n */\nconst Desktop = ({ children }: { children: JSX.Element }): JSX.Element | null => {\n const isDesktop = useMediaQuery({ minWidth: 1280 });\n return isDesktop ? children : null;\n};\n\n/**\n * Tablet\n */\nconst Tablet = ({ children }: { children: JSX.Element }): JSX.Element | null => {\n const isTablet = useMediaQuery({ minWidth: 768, maxWidth: 1279 });\n return isTablet ? children : null;\n};\n\n/**\n * Mobile\n */\nconst Mobile = ({ children }: { children: JSX.Element }): JSX.Element | null => {\n const isMobile = useMediaQuery({ maxWidth: 767 });\n return isMobile ? children : null;\n};\n\n/**\n * Not mobile (desktop or laptop or tablet)\n */\nconst Default = ({ children }: { children: JSX.Element }): JSX.Element | null => {\n const isNotMobile = useMediaQuery({ minWidth: 768 });\n return isNotMobile ? children : null;\n};\n\nexport { Default, Desktop, Mobile, Tablet };\n\n/**\n * get device\n * @returns\n */\nexport function useMediaQueryDevice(): {\n isDesktop: boolean;\n isBigScreen: boolean;\n isTablet: boolean;\n isPortrait: boolean;\n isRetina: boolean;\n isMobile: boolean;\n isNotMobile: boolean;\n deviceType: string;\n} {\n const isDesktop = useMediaQuery({ minWidth: 1279 });\n const isBigScreen = useMediaQuery({ query: '(min-width: 1824px)' });\n const isTablet = useMediaQuery({ minWidth: 768, maxWidth: 1279 });\n const isPortrait = useMediaQuery({ query: '(orientation: portrait)' });\n const isRetina = useMediaQuery({ query: '(min-resolution: 2dppx)' });\n const isMobile = useMediaQuery({ maxWidth: 767 });\n const isNotMobile = useMediaQuery({ minWidth: 768 });\n\n const deviceType = useMemo(() => {\n if (isMobile) return 'mobile';\n else if (isTablet) return 'tablet';\n else if (isDesktop) return 'desktop';\n return '';\n }, [isDesktop, isMobile, isTablet]);\n return { isDesktop, isBigScreen, isTablet, isPortrait, isRetina, isMobile, isNotMobile, deviceType };\n}\n","var _path;\nconst _excluded = [\"title\", \"titleId\"];\nfunction _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }\nfunction _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }\nfunction _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }\nimport * as React from \"react\";\nimport { forwardRef } from \"react\";\nconst SvgIconInfo = (_ref, ref) => {\n let {\n title,\n titleId\n } = _ref,\n props = _objectWithoutProperties(_ref, _excluded);\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 16 16\",\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\",\n ref: ref,\n \"aria-labelledby\": titleId\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", {\n id: titleId\n }, title) : null, _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M8 15C11.9 15 15 11.9 15 8C15 4.1 11.9 1 8 1C4.1 1 1 4.1 1 8C1 11.9 4.1 15 8 15ZM7.2 4.2C7.3 4.1 7.5 4 7.7 4H8C8.2 4 8.3 4.1 8.5 4.2C8.6 4.3 8.7 4.5 8.7 4.7C8.7 4.9 8.6 5 8.5 5.2C8.3 5.3 8.2 5.3 8 5.3H7.7C7.5 5.3 7.4 5.2 7.2 5.1C7.1 5 7 4.8 7 4.7C7 4.5 7.1 4.3 7.2 4.2ZM6.2 6.9C6.3 6.8 6.5 6.7 6.7 6.7H8C8.2 6.7 8.3 6.8 8.5 6.9C8.6 7 8.7 7.2 8.7 7.3V10H9.4C9.6 10 9.7 10.1 9.9 10.2C10 10.3 10.1 10.5 10.1 10.7C10.1 10.9 10 11 9.9 11.2C9.8 11.3 9.6 11.4 9.4 11.4H6.7C6.5 11.4 6.4 11.3 6.2 11.2C6.1 11 6 10.8 6 10.7C6 10.5 6.1 10.4 6.2 10.2C6.3 10.1 6.5 10 6.7 10H7.4V8H6.7C6.5 8 6.3 7.9 6.2 7.8C6.1 7.7 6 7.5 6 7.3C6 7.2 6.1 7 6.2 6.9Z\",\n fill: \"#29B5BC\"\n })));\n};\nconst ForwardRef = /*#__PURE__*/forwardRef(SvgIconInfo);\nexport { ForwardRef as ReactComponent };\nexport default __webpack_public_path__ + \"static/media/icon_info.c8781ee21dbb3b7e4fce7aeca39b8096.svg\";","/**\n * @description Component-\n */\nimport './index.less';\n\nimport { Tooltip, TooltipProps } from 'antd';\nimport React, { FC, memo } from 'react';\n\nimport { ReactComponent as IconInfo } from '@/assets/svg/icon_info.svg';\nimport { useMediaQueryDevice } from '@/components/MediaQuery';\n\nconst IconToolTip: FC = function (props) {\n const { isMobile } = useMediaQueryDevice();\n return isMobile ? (\n <>\n ) : (\n \n {props.icon ? (\n props.icon\n ) : (\n {\n e.stopPropagation();\n }}\n className=\"syn-icon-tooltip\"\n />\n )}\n \n );\n};\n\nexport default memo(IconToolTip);\n","import { Tooltip, TooltipProps } from 'antd';\nimport { FC, memo } from 'react';\n\nimport { useMediaQueryDevice } from '@/components/MediaQuery';\nimport { mockOpenTooltip } from '@/constants/mock';\n\nconst ResponsiveTooltip: FC = function (props) {\n const { isMobile } = useMediaQueryDevice();\n return isMobile && !props.showOnMobile ? (\n <> {props.children}\n ) : (\n \n );\n};\n\nexport default memo(ResponsiveTooltip);\n","import { CHAIN_ID } from '@derivation-tech/context';\n\nimport { IDappChainConfig } from '@/types/chain';\nimport { Chain } from 'viem';\n\nfunction jsonFileMapping(chainId: CHAIN_ID): string | undefined {\n switch (chainId as number) {\n case CHAIN_ID.GOERLI:\n return 'goerli';\n case CHAIN_ID.LINEA:\n return 'linea';\n case CHAIN_ID.ARBITRUM:\n return 'arbitrum';\n case CHAIN_ID.BLASTSEPOLIA:\n return 'blastSepolia';\n case CHAIN_ID.BLAST:\n return 'blast';\n case CHAIN_ID.BASE:\n return 'base';\n }\n}\n\nexport function getDappChainConfig(chainId: CHAIN_ID, wagmiChain: Chain): IDappChainConfig {\n // eslint-disable-next-line @typescript-eslint/no-var-requires\n const chainConfig = require(`./${jsonFileMapping(chainId)}.json`) as IDappChainConfig;\n let config = chainConfig;\n\n if (chainConfig) {\n config = JSON.parse(JSON.stringify(chainConfig)) as IDappChainConfig;\n config.wagmiChain = wagmiChain;\n }\n return config;\n}\n","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { providers } from 'ethers';\nimport { debounce } from 'lodash';\n\n// Used to \"trick\" TypeScript into treating a Proxy as the intended proxied class\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport const fakeBaseClass = (): new () => Pick => class {} as any;\n\n// const EXPECTED_PONG_BACK = 15000;\n// const KEEP_ALIVE_CHECK_INTERVAL = 8000;\n\n// let keepAliveInterval: NodeJS.Timeout | null = null;\n// let pingTimeout: NodeJS.Timeout | null = null;\n// let reConnectTimeout: NodeJS.Timeout | null = null;\n\nexport class ReconnectingWebSocketProvider extends fakeBaseClass() {\n private static instances: Record = {};\n private underlyingProvider?: providers.WebSocketProvider;\n events: providers.WebSocketProvider['_events'] = [];\n requests: providers.WebSocketProvider['_requests'] = {};\n\n // Define a handler that forwards all \"get\" access to the underlying provider\n private handler = {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n get(target: ReconnectingWebSocketProvider, prop: string, receiver: any) {\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n return Reflect.get(target.underlyingProvider!, prop, receiver);\n },\n };\n\n public static getInstance(chainId: number, url: string): ReconnectingWebSocketProvider {\n let instance = this.instances[chainId];\n if (!instance) {\n instance = new ReconnectingWebSocketProvider(url, chainId);\n this.instances[chainId] = instance;\n }\n return instance;\n }\n\n constructor(private url: string, private networkConfig?: providers.Networkish | undefined) {\n super();\n this.connect();\n\n return new Proxy(this, this.handler);\n }\n\n private async connect() {\n if (this.underlyingProvider) {\n this.events = [...this.events, ...this.underlyingProvider._events];\n\n this.requests = { ...this.requests, ...this.underlyingProvider._requests };\n // destroy old connect\n\n await this.underlyingProvider.destroy();\n await new Promise((r) => setTimeout(r, 2000));\n console.record('websocket', 'Destroy websocket connection', undefined, {\n provider: this.underlyingProvider,\n url: this.url,\n networkConfig: this.networkConfig,\n });\n }\n // Instantiate new provider with same url\n try {\n this.underlyingProvider = new providers.WebSocketProvider(this.url, this.networkConfig);\n console.record('websocket', 'Create websocket connection', this.underlyingProvider, {\n url: this.url,\n networkConfig: this.networkConfig,\n });\n\n this.keepAlive({\n onDisconnect: debounce((err) => {\n console.record('websocket', 'on disconnect websocket connection', err, {\n url: this.url,\n networkConfig: this.networkConfig,\n });\n // if (keepAliveInterval) clearInterval(keepAliveInterval);\n // if (pingTimeout) clearTimeout(pingTimeout);\n // if (reConnectTimeout) clearTimeout(reConnectTimeout);\n // setTimeout(() => {\n this.connect();\n // }, 3000);\n\n console.error('The ws connection was closed', JSON.stringify(err, null, 2));\n }, 500),\n });\n } catch (error) {\n console.error(\n '🚀 ~ file: ReconnectingWebSocketProvider.ts:59 ~ ReconnectingWebSocketProvider ~ connect ~ error:',\n error,\n );\n }\n }\n\n keepAlive = ({\n onDisconnect,\n }: // expectedPongBack = 5000,\n {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n onDisconnect: (err?: any) => void;\n expectedPongBack?: number;\n checkInterval?: number;\n }): void => {\n try {\n // if (pingTimeout) clearTimeout(pingTimeout);\n // if (keepAliveInterval) clearInterval(keepAliveInterval);\n if (!this.underlyingProvider) return;\n // reConnectTimeout = setTimeout(() => {\n // onDisconnect();\n // }, KEEP_ALIVE_CHECK_INTERVAL);\n const onopen = this.underlyingProvider._websocket.onopen;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n this.underlyingProvider._websocket.onopen = (...args: any[]) => {\n if (!this.underlyingProvider) return;\n console.record('websocket', 'on open websocket connection', undefined, {\n url: this.url,\n networkConfig: this.networkConfig,\n args,\n provider: this.underlyingProvider,\n });\n // reConnectTimeout && clearTimeout(reConnectTimeout);\n // clear temporary events and requests\n let event;\n while ((event = this.events.pop())) {\n this.underlyingProvider?._events.push(event);\n this.underlyingProvider?._startEvent(event);\n }\n\n for (const key in this.requests) {\n if (this.requests[key]) {\n this.underlyingProvider._requests[key] = this.requests[key];\n this.underlyingProvider?._websocket.send(this.requests[key].payload);\n delete this.requests[key];\n }\n }\n\n onopen?.call(this.underlyingProvider?._websocket, ...args);\n\n // keepAliveInterval = setInterval(() => {\n // // // call provider for keep alive\n // // this.underlyingProvider?._websocket?.send('');\n // // pingTimeout = setTimeout(() => {\n // // console.record(\n // // 'websocket',\n // // `on websocket connection detection heartbeat expired[${KEEP_ALIVE_CHECK_INTERVAL}s]`,\n // // undefined,\n // // {\n // // url: this.url,\n // // networkConfig: this.networkConfig,\n // // provider: this.underlyingProvider,\n // // KEEP_ALIVE_CHECK_INTERVAL,\n // // },\n // // );\n // // // onDisconnect();\n // // }, expectedPongBack);\n // // if (this.underlyingProvider) {\n // // if (this.underlyingProvider._websocket.readyState === WebSocket.OPEN) return;\n // // this.underlyingProvider._websocket.close();\n // // }\n // }, KEEP_ALIVE_CHECK_INTERVAL);\n };\n\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n this.underlyingProvider._websocket.onclose = (err: any) => {\n console.record('websocket', 'on websocket connection closed', err, {\n url: this.url,\n networkConfig: this.networkConfig,\n provider: this.underlyingProvider,\n });\n onDisconnect(err);\n };\n try {\n const onMessage = this.underlyingProvider._websocket.onmessage;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n this.underlyingProvider._websocket.onmessage = (...args: any[]) => {\n // console.log('🚀 onmessage', args);\n // reConnectTimeout && clearTimeout(reConnectTimeout);\n // if (pingTimeout) clearTimeout(pingTimeout);\n try {\n onMessage && onMessage.call(this.underlyingProvider?._websocket, ...args);\n } catch (error) {}\n };\n } catch (error) {\n console.log('🚀 ~ file: ReconnectingWebSocketProvider.ts:162 ~ ReconnectingWebSocketProvider ~ error:', error);\n }\n\n // }, 1000);\n } catch (error) {\n console.log('🚀 ~ file: ReconnectingWebSocketProvider.ts:142 ~ keepAlive ~ error:', error);\n }\n };\n}\n","export const SOCKET_URL = 'https://ws.synfutures.com/public';\n","import { BigNumber } from 'ethers';\n\n// empty balance account just for no wallet view\nexport { DEFAULT_EMPTY_ACCOUNT } from './global';\nexport { OPERATION_TX_TYPE } from './tx';\n\nexport const INTERCOM_APP_ID = 'ms7pdxxd';\n\n/**\n * default display decimals places\n */\nexport const DEFAULT_DECIMAL_PLACES = 4;\n\nexport const ETH_DECIMALS_PLACES = 18;\n\n/**\n * fetching status\n */\nexport enum FETCHING_STATUS {\n INIT = 0,\n FETCHING = 1, // >0 display loading\n DONE = -1,\n}\n\n/**\n * gas price type\n */\nexport enum GAS_PRICE_TYPE {\n SLOW = 'Slow',\n Standard = 'Standard',\n FAST = 'Fast',\n INSTANT = 'Instant',\n}\n\n// trade direction\nexport enum TRADE_DIRECTION {\n LONG = 'Long',\n SHORT = 'Short',\n}\n\nexport enum GlobalModalType {\n Account = 'Account',\n INITIAL_CHAIN_SWITCH = 'INITIAL_CHAIN_SWITCH',\n Wallet = 'Wallet',\n IpBlocked = 'IpBlocked',\n Emergency = 'Emergency',\n WrongNetwork = 'WrongNetwork',\n Deposit = 'Deposit',\n Withdraw = 'Withdraw',\n SignedUp = 'SignedUp',\n SignUp = 'SignUp',\n Leadership = 'Leadership',\n Term = 'Term',\n Boost = 'Boost',\n Team = 'Team',\n TradeGuidance = 'Trade Guidance',\n EarnGuidance = 'Earn Guidance',\n ACCOUNT_TABLE = 'Account Table',\n SETTLE = 'Settle',\n CREATE_POOL = 'Create Pool',\n PAIR_NOT_FOUND = 'Pair not found',\n TRADE_MOBILE = 'TRADE_MOBILE',\n MYSTERY_BOX = 'mystery_box',\n SPIN_WHEEL = 'spin_wheel',\n PROVIDE_LIQUIDITY = 'provide_liquidity',\n INVITE_FRIEND = 'invite_friend',\n SQUAD_REWARD = 'squad_reward',\n SQUAD_MEMBER = 'squad_member',\n LUCKY_DRAW = 'lucky_draw',\n LUCK_TICKET = 'lucky_ticket',\n LUCKY_CLAIM = 'lucky_claim',\n CLAIM_TOKEN = 'claim_token',\n MOBILE_TRADE = 'mobile_trade',\n MOBILE_EARN = 'mobile_earn',\n ORDER_PREVIEW = 'order_preview',\n}\n\nexport enum SecondGlobalModalType {\n HIGH_RISK_LIQUIDITY = 'HIGH_RISK_LIQUIDITY',\n PNL_SHARE = 'PNL_SHARE',\n PNL_SHARE_NOTIFICATION = 'PNL_SHARE_NOTIFICATION',\n CAMPAIGN_LEADERBOARD = 'CAMPAIGN_LEADERBOARD',\n SYN_SCORE_2024 = 'SYN_SCORE_2024',\n}\n\nexport enum ThirdGlobalModalType {\n TOKEN_EXCHANGE = 'TOKEN_EXCHANGE',\n}\n\nexport enum TabType {\n Trade = 'trade',\n Earn = 'earn',\n}\n\nexport enum EVENT_SOURCE_TYPE {\n ETHERS = 'ethers',\n GRAPH = 'graph',\n}\n\n// theme key\nexport enum THEME_ENUM {\n DARK = 'dark-theme',\n LIGHT = 'light-theme',\n}\nexport type SystemPrefersColorScheme = 'auto' | THEME_ENUM;\n\nexport enum TRADE_FORM_TYPE {\n TradeForm = 'TradeForm',\n ClosePosition = 'ClosePosition',\n}\n\nexport enum WEB3_NETWORK_TYPE {\n Dapp = 'Dapp',\n Wallet = 'Wallet',\n}\n\nexport enum BALANCE_TYPE {\n WITHDRAW = 'WITHDRAW',\n DEPOSIT = 'DEPOSIT',\n}\n\nexport const WAD = BigNumber.from(String(10 ** 18));\nexport const ZERO = BigNumber.from(0);\nexport const ONE = BigNumber.from(1);\nexport const TWO = BigNumber.from(2);\nexport enum FILTER_GROUP_ENUM {\n EXPIRY = 1,\n FAVORITE = 2,\n}\n\nexport const FULL_WIDTH_ROUTES = ['campaigns', 'tell-a-friend', 'portfolio', 'odyssey', 'tgp'];\n\n//Expiry\nexport const PERP = 'Perpetual';\n\nexport const enum PAIR_COLOR_TYPE {\n InPosition = '#00BFBF',\n InRange = '#99BBFF',\n InOrder = '#30E84F',\n InAccount = '#66CCFF',\n InWithdrawPendingLock = '#00AAFF',\n Others = '#E2E7E9',\n}\n\nexport enum AVAILABLE_LANGS {\n ENGLISH = 'en',\n TURKEY = 'tr',\n VIETNAMESE = 'vi',\n KOREAN = 'kr',\n Spanish = 'es',\n French = 'fr',\n Japanese = 'ja',\n Thai = 'th',\n\n // VIETNAM = 'vn',\n}\nexport const LANGUAGE_KEY = 'LANGUAGE_CHOSEN';\n\nexport const DEFAULT_THEME = THEME_ENUM.LIGHT;\n","export const mockOpenTooltip = false;\nexport const mockOpenDropdown = false;\nexport const mockNotiDontClose = false;\n","export const decimalShortFormSymbolMap: {\n [id in number]: string;\n} = {\n 1: '₁',\n 2: '₂',\n 3: '₃',\n 4: '₄',\n 5: '₅',\n 6: '₆',\n 7: '₇',\n 8: '₈',\n 9: '₉',\n 10: '₁₀',\n 11: '₁₁',\n 12: '₁₂',\n 13: '₁₃',\n 14: '₁₄',\n 15: '₁₅',\n 16: '₁₆',\n 17: '₁₇',\n 18: '₁₈',\n 19: '₁₉',\n 20: '₂₀',\n};\n\n// when num = 0.000999 -> 0.0_3_999\n// if num = 0.001, it won't be short form since 0.001 exclusive\nexport const minExclusiveNumToShowShortDecimal = 0.001;\n","import { CHAIN_ID } from '@derivation-tech/context';\n\nexport const CHAIN_HTTP_RPC_URLS: { [chainId: number]: string[] } = {\n [CHAIN_ID.BLASTSEPOLIA]: [`https://sepolia.blast.io`],\n [CHAIN_ID.BASE]: [\n `https://api.synfutures.com/rpc/public/base`,\n // `https://mainnet.base.org`,\n // `https://rpc.ankr.com/base`,\n // 'https://base-mainnet.public.blastapi.io',\n // `https://base-pokt.nodies.app`,\n // `https://base.meowrpc.com`,\n // `https://base.rpc.subquery.network/public`,\n ],\n [CHAIN_ID.BLAST]: [\n `https://api.synfutures.com/rpc/public/blast`,\n // 'https://blastl2-mainnet.public.blastapi.io',\n // 'https://endpoints.omniatech.io/v1/blast/mainnet/public',\n // 'https://rpc.ankr.com/blast',\n // 'https://blast.din.dev/rpc',\n // 'https://blast-rpc.publicnode.com',\n ],\n};\n\nexport const CHAIN_WSS_RPC_URLS: { [chainId: number]: string[] } = {\n [CHAIN_ID.GOERLI]: [\n process.env.REACT_APP_GOERLI_WSS || '',\n `wss://dark-crimson-night.ethereum-goerli.quiknode.pro/0630f179916b7122fce747ae37ad697856295c62/`,\n ],\n [CHAIN_ID.POLYGON]: [\n process.env.REACT_APP_POLYGON_WSS_RPC || '',\n `wss://wandering-blue-voice.matic.quiknode.pro/922dec71ad2bc92b7a6e64570721cf2b510bb31d/`,\n ].filter((url) => !!url),\n [CHAIN_ID.LINEA]: [\n process.env.REACT_APP_LINEA_WSS_RPC || '',\n `wss://lb.drpc.org/ogws?network=linea&dkey=AkhFZI-RCESCrQorQTqO09TKarNQfTER7qRoxqxINsn1`,\n ].filter((url) => !!url),\n [CHAIN_ID.ARBITRUM]: [\n process.env.REACT_APP_ARBITRUM_WSS_RPC || '',\n `wss://boldest-tiniest-tent.arbitrum-mainnet.quiknode.pro/c92b4b64a2156a038a0a9d846ca8f79c70fad7cf/`,\n ].filter((url) => !!url),\n [CHAIN_ID.BLASTSEPOLIA]: [process.env.REACT_APP_BLASTSEPOLIA_WSS_RPC || '', `wss://blast-sepolia.drpc.org`].filter(\n (url) => !!url,\n ),\n // [CHAIN_ID.BLAST]: [\n // process.env.REACT_APP_BLAST_WSS_RPC || '',\n // `wss://solitary-green-thunder.blast-mainnet.quiknode.pro/eebd94ea96fbb624a887ea240e09c900230c057a/`,\n // ].filter((url) => !!url),\n // [CHAIN_ID.BASE]: [\n // process.env.REACT_APP_BASE_WSS_RPC || '',\n // `wss://base-mainnet.blastapi.io/63f76456-80db-4cd9-9b97-36a757c2bc00`,\n // ].filter((url) => !!url),\n};\n","import { ERC20__factory, WrappedNative__factory } from '@derivation-tech/contracts';\nimport { OysterAggregator__factory } from '@synfutures/sdks-aggregator/dist/typechain';\nimport { Vault__factory } from '@synfutures/sdks-perp-launchpad/dist/typechain';\nimport { Gate__factory, Instrument__factory } from '@synfutures/sdks-perp/dist/typechain';\n\nimport { Interface } from 'ethers/lib/utils';\nexport enum TX_TRANSFORM_TARGET {\n NOTIFICATION = 'NOTIFICATION',\n HISTORY = 'HISTORY',\n}\n\n/**\n * send tx operation type, or page operation type\n */\nexport enum OPERATION_TX_TYPE {\n APPROVE = 'approve',\n DEPOSIT = 'deposit',\n WITHDRAW = 'withdraw',\n TRADE = 'trade',\n PLACE_ORDER = 'placeOrder',\n CANCEL_ORDER = 'cancelOrder',\n FILL_ORDER = 'fillOrder',\n ADJUST_MARGIN = 'adjustMargin',\n ADD_LIQUIDITY = 'addLiquidity',\n REMOVE_LIQUIDITY = 'removeLiquidity',\n SETTLE = 'settle',\n CREATE = 'create',\n // only for Goerli\n MINT = 'mint',\n // campaign center operations\n ACCEPT_INVITE = 'acceptInvite',\n CREATE_TEAM = 'createTeam',\n CLAIM_REWARDS = 'claimRewards',\n CLAIM_WITHDRAW = 'claimWithdraw',\n CLAIM_OO_TOKEN = 'claimOOToken',\n BATCH_PLACE_SCALED_ORDER = 'placeScaledOrder',\n PLACE_CROSS_MARKET_ORDER = 'placeCrossMarketOrder',\n // for vault\n VAULT_DEPOSIT = 'vaultDeposit',\n VAULT_WITHDRAW = 'vaultWithdraw',\n VAULT_CLAIM = 'vaultClaim',\n // for aggregator\n SWAP = 'swap',\n NATIVE_SWAP = 'native_swap',\n}\n\n// /**\n// * is need use new version to parse revert reason\n// */\n// export const NEED_PARSE_NEW_REVERT: {\n// [type in OPERATION_TX_TYPE]?: true;\n// } = {\n// [OPERATION_TX_TYPE.ACCEPT_INVITE]: true,\n// [OPERATION_TX_TYPE.CREATE_TEAM]: true,\n// [OPERATION_TX_TYPE.CLAIM_REWARDS]: true,\n// };\n\n/**\n * Synfutures interfaces\n */\nexport const SYN_INTERFACE = {\n InstrumentInterface: Instrument__factory.createInterface(),\n GateInterface: Gate__factory.createInterface(),\n VaultInterface: Vault__factory.createInterface(),\n Erc20Interface: ERC20__factory.createInterface(),\n WrappedNativeInterface: WrappedNative__factory.createInterface(),\n // CampaignCenterInterface: CampaignCenter__factory.createInterface(),\n OysterAggregatorInterface: OysterAggregator__factory.createInterface(),\n};\n\n/**\n * tx operation interface mapping\n */\nexport const TX_INTERFACE_MAPPING: {\n [type in OPERATION_TX_TYPE]?: Interface[];\n} = {\n // primary interfaces\n [OPERATION_TX_TYPE.DEPOSIT]: [SYN_INTERFACE.GateInterface],\n [OPERATION_TX_TYPE.WITHDRAW]: [SYN_INTERFACE.GateInterface],\n [OPERATION_TX_TYPE.TRADE]: [SYN_INTERFACE.InstrumentInterface],\n [OPERATION_TX_TYPE.ADD_LIQUIDITY]: [SYN_INTERFACE.InstrumentInterface],\n [OPERATION_TX_TYPE.REMOVE_LIQUIDITY]: [SYN_INTERFACE.InstrumentInterface],\n [OPERATION_TX_TYPE.CREATE]: [SYN_INTERFACE.InstrumentInterface, SYN_INTERFACE.GateInterface],\n [OPERATION_TX_TYPE.ADJUST_MARGIN]: [SYN_INTERFACE.InstrumentInterface],\n [OPERATION_TX_TYPE.CANCEL_ORDER]: [SYN_INTERFACE.InstrumentInterface],\n [OPERATION_TX_TYPE.FILL_ORDER]: [SYN_INTERFACE.InstrumentInterface],\n [OPERATION_TX_TYPE.PLACE_ORDER]: [SYN_INTERFACE.InstrumentInterface],\n [OPERATION_TX_TYPE.SETTLE]: [SYN_INTERFACE.InstrumentInterface, SYN_INTERFACE.GateInterface],\n [OPERATION_TX_TYPE.BATCH_PLACE_SCALED_ORDER]: [SYN_INTERFACE.InstrumentInterface, SYN_INTERFACE.GateInterface],\n [OPERATION_TX_TYPE.PLACE_CROSS_MARKET_ORDER]: [SYN_INTERFACE.InstrumentInterface],\n // vault interfaces\n [OPERATION_TX_TYPE.VAULT_DEPOSIT]: [SYN_INTERFACE.VaultInterface],\n [OPERATION_TX_TYPE.VAULT_WITHDRAW]: [SYN_INTERFACE.VaultInterface],\n [OPERATION_TX_TYPE.VAULT_CLAIM]: [SYN_INTERFACE.VaultInterface],\n [OPERATION_TX_TYPE.SWAP]: [SYN_INTERFACE.OysterAggregatorInterface],\n [OPERATION_TX_TYPE.NATIVE_SWAP]: [SYN_INTERFACE.WrappedNativeInterface],\n};\n","import { SOCKET_URL } from '@/constants/api';\nimport { io, Socket } from 'socket.io-client';\n\nexport class SocketService {\n private static instance: SocketService;\n public socket: Socket | null = null;\n public url: string;\n // Store pending events for re-emission\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n private eventQueue: Map = new Map();\n\n public constructor() {\n this.url = SOCKET_URL;\n }\n\n public static getInstance(): SocketService {\n if (!SocketService.instance) {\n SocketService.instance = new SocketService();\n }\n return SocketService.instance;\n }\n\n public connect(url: string = this.url): SocketService {\n if (!this.socket) {\n this.socket = io(url, {\n reconnection: true,\n reconnectionAttempts: Infinity,\n reconnectionDelay: 1000,\n reconnectionDelayMax: 5000,\n randomizationFactor: 0.5,\n path: '/ws',\n });\n\n this.setupSocketListeners();\n }\n return this;\n }\n\n private setupSocketListeners(): void {\n if (!this.socket) return;\n\n this.socket.on('connect', () => {\n console.record('socket', 'Connected to server');\n // Re-emit all cached events after reconnection\n setTimeout(() => {\n this.eventQueue.forEach((args, event) => {\n this.socket?.emit(event, ...args);\n });\n }, 500);\n });\n\n this.socket.on('disconnect', () => {\n console.record('socket', 'Disconnected from server');\n });\n\n this.socket.on('reconnect_attempt', (attempt) => {\n console.record('socket', `Reconnection attempt #${attempt}`);\n });\n\n this.socket.on('reconnect', (attempt) => {\n console.record('socket', `Successfully reconnected after ${attempt} attempts`);\n });\n\n this.socket.on('reconnect_error', (error) => {\n console.error('Reconnection error:', error);\n });\n\n this.socket.on('reconnect_failed', () => {\n console.error('Failed to reconnect');\n });\n }\n\n public disconnect(): void {\n if (this.socket) {\n this.socket.disconnect();\n this.socket = null;\n this.eventQueue.clear(); // Clear event queue when disconnecting\n }\n }\n\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n public emit(ev: string, ...args: any[]): void {\n if (this.socket) {\n this.socket.emit(ev, ...args);\n // Record emitted messages\n this.eventQueue.set(ev, args);\n }\n }\n\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n public on(ev: string, cb: (...args: any[]) => void): void {\n if (this.socket) {\n this.socket.on(ev, cb);\n }\n }\n\n public off(ev: string): void {\n if (this.socket) {\n this.socket.off(ev);\n // Remove event from queue when unsubscribing\n this.eventQueue.delete(ev);\n }\n }\n}\n\nexport default SocketService;\n","import BN from 'bignumber.js';\nimport { BigNumber } from 'ethers';\nimport { has as _has } from 'lodash';\nimport { ReactNode } from 'react';\n\nimport {\n formatLiqPriceNumberWithTooltip,\n formatNumberWithTooltip,\n FormatNumberWithTooltipType,\n formatPercentage,\n formatPriceNumberWithTooltip,\n} from '@/components/NumberFormat';\nimport { DEFAULT_DECIMAL_PLACES } from '@/constants';\nimport { SIGNIFICANT_DIGITS } from '@/constants/global';\nimport {\n formatDisplayNumber,\n formatEther,\n formatNumber,\n formatPercentageString,\n inputNumChecker,\n toWad,\n} from '@/utils/numberUtil';\n\n// BN decimal config\nBN.config({ DECIMAL_PLACES: 18 });\n\nexport type WrappedBigNumberLike = WrappedBigNumber | BigNumber | string | number | BN;\n\n/**\n * BigNumber Wrapper\n * include ethers.BigNumber and BN with decimal places\n * and a lot of format func\n */\nexport class WrappedBigNumber extends BN {\n constructor(value: BigNumber | number | string | BN) {\n if (value instanceof BN) {\n super(value);\n } else if (value instanceof BigNumber) {\n super(formatEther(value));\n } else if (_has(value, '_hex')) {\n super(formatEther(BigNumber.from(value)));\n } else {\n super(value?.toString() || '');\n }\n }\n\n /**\n * zero of wrapped type\n */\n static get ZERO(): WrappedBigNumber {\n return new WrappedBigNumber(0);\n }\n\n static get ONE(): WrappedBigNumber {\n return new WrappedBigNumber(1);\n }\n\n static from(value: WrappedBigNumberLike): WrappedBigNumber {\n if (value instanceof WrappedBigNumber) {\n return value;\n }\n return new WrappedBigNumber(value);\n }\n\n get wadValue(): BigNumber {\n return toWad(this.toString());\n }\n\n get displayValue(): string {\n return formatDisplayNumber({ num: this });\n }\n get stringValue(): string {\n return this.toString();\n }\n get sqrtVal(): WrappedBigNumber {\n return WrappedBigNumber.from(this.sqrt());\n }\n\n get reciprocal(): WrappedBigNumber {\n return WrappedBigNumber.from(1).div(this);\n }\n\n decimalValue(decimal: number): WrappedBigNumber {\n return WrappedBigNumber.from(inputNumChecker(this.stringValue, decimal));\n }\n\n // TODO: add plus/minus/times/div wrapper\n abs(): WrappedBigNumber {\n return WrappedBigNumber.from(super.abs());\n }\n\n add(n: WrappedBigNumberLike): WrappedBigNumber {\n return WrappedBigNumber.from(super.plus(WrappedBigNumber.from(n)));\n }\n\n min(n: WrappedBigNumberLike): WrappedBigNumber {\n return WrappedBigNumber.from(super.minus(WrappedBigNumber.from(n)));\n }\n\n mul(n: WrappedBigNumberLike): WrappedBigNumber {\n return WrappedBigNumber.from(super.multipliedBy(WrappedBigNumber.from(n)));\n }\n divBy(n: WrappedBigNumberLike): WrappedBigNumber {\n return WrappedBigNumber.from(super.dividedBy(WrappedBigNumber.from(n)));\n }\n\n div(n: BN.Value): WrappedBigNumber {\n return WrappedBigNumber.from(super.div(n));\n }\n\n gte(n: BN.Value): boolean {\n return super.isGreaterThanOrEqualTo(n);\n }\n\n /**\n *\n * @returns 0 if this < 0\n */\n keepPositive(): WrappedBigNumber {\n return this.lt(0) ? WrappedBigNumber.from(0) : this;\n }\n\n notEq(n: BN.Value): boolean {\n return !this.eq(n);\n }\n\n formatWithToolTip(): ReactNode {\n return formatNumberWithTooltip({ num: this });\n }\n\n formatPriceNumberWithTooltip({\n isStablePair,\n roundingMode,\n ...options\n }: Omit & {\n isStablePair?: boolean;\n roundingMode?: BN.RoundingMode;\n } = {}): ReactNode {\n return formatPriceNumberWithTooltip({\n num: this,\n ...options,\n roundingMode,\n significantDigits: isStablePair ? SIGNIFICANT_DIGITS + 1 : SIGNIFICANT_DIGITS,\n });\n }\n\n formatPriceString({\n isStablePair,\n roundingMode,\n ...options\n }: Omit & {\n isStablePair?: boolean;\n roundingMode?: BN.RoundingMode;\n } = {}): string {\n return formatDisplayNumber({\n num: this,\n ...options,\n type: 'price',\n roundingMode,\n significantDigits: isStablePair ? SIGNIFICANT_DIGITS + 1 : SIGNIFICANT_DIGITS,\n });\n }\n\n formatLiqPriceNumberWithTooltip(options: Omit = {}): ReactNode {\n return formatLiqPriceNumberWithTooltip({ num: this, ...options });\n }\n\n formatLiqPriceString(options: Omit = {}): string {\n let num: WrappedBigNumber | undefined = undefined;\n let formattedNumStr = '';\n if (!this.eq(0)) {\n if (this.abs().gte(1e6)) {\n num = WrappedBigNumber.from(Infinity);\n } else if (this.lt(0)) {\n num = WrappedBigNumber.ZERO;\n }\n formattedNumStr = formatDisplayNumber({ ...options, num: num || this, type: 'price' });\n }\n return formattedNumStr;\n }\n\n formatLeverageString(): string {\n if (this.lt(0)) return '-';\n return `${this.eq(0) ? 0 : this.eq(0) ? 0 : this?.lt(0.1) ? <>< 0.1 : formatNumber(this, 1)}x`;\n }\n\n formatLeverageWithTooltip(): ReactNode {\n if (this.lt(0)) return <>-;\n return (\n \n {this.eq(0) ? 0 : this.eq(0) ? 0 : this?.lt(0.1) ? <>< 0.1 : formatNumber(this, 1)}x\n \n );\n }\n\n formatNumberWithTooltip(options: Omit = {}): ReactNode {\n return formatNumberWithTooltip({\n num: this,\n ...options,\n });\n }\n formatDisplayNumber(\n options: {\n isShowSeparator?: boolean;\n type?: 'price' | 'normal';\n isOperateNum?: boolean;\n isShowTBMK?: boolean;\n roundingMode?: BN.RoundingMode;\n isShowApproximatelyEqualTo?: boolean;\n significantDigits?: number;\n } = {},\n ): string {\n return formatDisplayNumber({\n num: this,\n ...options,\n });\n }\n\n formatPercentage(options?: Omit[0], 'percentage'>): ReactNode {\n return formatPercentage({\n percentage: this.toString(10),\n ...options,\n });\n }\n\n formatPercentageString(hundredfold = true, decimals = 2, roundingMode: BN.RoundingMode = BN.ROUND_DOWN): string {\n return formatPercentageString({ percentage: this.toString(10), hundredfold, decimals, roundingMode });\n }\n\n formatNormalNumberString(\n decimals: number = DEFAULT_DECIMAL_PLACES,\n isShowSeparator = true,\n roundingMode: BN.RoundingMode = BN.ROUND_DOWN,\n isRemoveTrailingZeros = false,\n ): string {\n return formatNumber(this, decimals, isShowSeparator, roundingMode, isRemoveTrailingZeros);\n }\n\n toDisplayJSON(): {\n wadValue: BigNumber;\n numStr: string;\n displayValue: string;\n stringValue: string;\n } {\n return {\n wadValue: this.wadValue,\n numStr: this.toString(10),\n displayValue: this.displayValue,\n stringValue: this.stringValue,\n };\n }\n\n valueOf(): string {\n return JSON.stringify(this.toDisplayJSON());\n }\n\n toJSON(): string {\n return this.valueOf();\n }\n\n toString(base?: number | undefined): string {\n return super.toString(base || 10);\n }\n}\n","import { CHAIN_ID } from '@derivation-tech/context';\nimport { QuoteParam } from '@synfutures/sdks-perp';\nimport _ from 'lodash';\n\nimport { TokenInfo } from '@/types/token';\nimport { bigNumberObjectCheck } from '@/utils';\n\nimport { WrappedBigNumber } from './WrappedBigNumber';\nimport { WrappedToken } from './WrappedToken';\n\nexport class WrappedQuote extends WrappedToken {\n static instances: { [chainId: number]: { [quoteId: string]: WrappedQuote } } = {}; // chainId -> quoteId -> WrappedQuote\n quoteParam?: QuoteParam;\n constructor({\n chainId,\n symbol,\n address,\n decimals,\n name,\n id,\n }: {\n chainId: CHAIN_ID;\n symbol: string;\n address: string;\n decimals: number;\n name?: string;\n id: string;\n }) {\n super({ chainId, symbol, address, decimals, name, id });\n }\n\n static getInstance(quoteId: string | undefined, chainId: CHAIN_ID | undefined): WrappedQuote | undefined {\n return quoteId && chainId ? _.get(WrappedQuote.instances, [chainId, quoteId]) : undefined;\n }\n\n static wrapInstance({ metaToken, chainId }: { metaToken: TokenInfo; chainId: CHAIN_ID }): WrappedQuote {\n let quote = WrappedQuote.getInstance(metaToken.id, chainId);\n if (quote) {\n // quote.fillField(bigNumberObjectCheck(metaToken));\n } else {\n quote = new WrappedQuote(bigNumberObjectCheck(metaToken));\n _.set(WrappedQuote.instances, [chainId, metaToken.id], quote);\n }\n return quote;\n }\n static getInstanceMap(chainId: CHAIN_ID | undefined): { [quoteId: string]: WrappedQuote } | undefined {\n return chainId ? _.get(WrappedQuote.instances, [chainId], undefined) : undefined;\n }\n\n setTokenPrice(priceInfo: { current: number; priceChangePercentage24h: number }): void {\n if (priceInfo) {\n this.price = WrappedBigNumber.from(priceInfo.current);\n this.price_change_percentage_24h = WrappedBigNumber.from(priceInfo.priceChangePercentage24h);\n }\n }\n\n setQuoteParam(quoteParam: QuoteParam | undefined): void {\n if (quoteParam) {\n this.quoteParam = quoteParam;\n }\n }\n\n toJSON(): TokenInfo & {\n price?: WrappedBigNumber;\n quoteParam?: QuoteParam;\n } {\n return {\n id: this.id,\n chainId: this.chainId,\n symbol: this.symbol,\n address: this.address,\n decimals: this.decimals,\n name: this.name,\n price: this.price,\n quoteParam: this.quoteParam,\n };\n }\n\n toString(): string {\n return JSON.stringify(this.toJSON());\n }\n}\n","import { CHAIN_ID } from '@derivation-tech/context';\n\nimport { TokenInfo } from '@/types/token';\n\nimport { WrappedBigNumber } from './WrappedBigNumber';\n\nexport class WrappedToken implements TokenInfo {\n static instances: { [chainId: number]: { [quoteId: string]: WrappedToken } } = {}; // chainId -> quoteId -> WrappedToken\n id: string;\n chainId: CHAIN_ID;\n name?: string;\n symbol: string;\n address: string;\n decimals: number;\n price?: WrappedBigNumber;\n price_change_percentage_24h?: WrappedBigNumber;\n color?: string;\n constructor({\n chainId,\n symbol,\n address,\n decimals,\n name,\n id,\n }: {\n chainId: CHAIN_ID;\n symbol: string;\n address: string;\n decimals: number;\n name?: string;\n id: string;\n }) {\n this.chainId = chainId;\n this.symbol = symbol;\n this.address = address.toLowerCase();\n this.decimals = decimals;\n this.name = name;\n this.id = id;\n }\n\n setTokenPrice(priceInfo: { current: number; priceChangePercentage24h: number }): void {\n if (priceInfo) {\n this.price = WrappedBigNumber.from(priceInfo.current);\n this.price_change_percentage_24h = WrappedBigNumber.from(priceInfo.priceChangePercentage24h);\n }\n }\n\n toJSON(): TokenInfo & {\n price?: WrappedBigNumber;\n } {\n return {\n id: this.id,\n chainId: this.chainId,\n symbol: this.symbol,\n address: this.address,\n decimals: this.decimals,\n name: this.name,\n price: this.price,\n };\n }\n\n toString(): string {\n return JSON.stringify(this.toJSON());\n }\n}\n","import { TokenInfo as Token } from '@derivation-tech/context';\nimport type { BigNumber } from 'ethers';\n\nimport { Amm, Instrument } from '@synfutures/sdks-perp';\nimport type { IAccountRecords } from './account';\nimport { IInstrumentRecord, IMarketPair } from './pair';\nimport { ISpotState } from './spot';\n\nexport enum WorkerEventNames {\n NativeBalanceEvent = 'NativeBalanceEvent',\n BalanceEvent = 'BalanceEvent',\n ApprovalEvent = 'ApprovalEvent',\n MulticallTokensAllowance = 'MulticallTokensAllowance',\n MulticallBalance = 'MulticallBalance',\n FetchPair = 'FetchPair',\n BatchPairs = 'BatchPairs',\n FetchPortfolio = 'FetchPortfolio',\n FetchPortfolioList = 'FetchPortfolioList',\n FetchGateBalance = 'FetchGateBalance',\n CallFuturesList = 'CallFuturesList',\n CallGateBalance = 'CallGateBalance',\n WatchGateEvent = 'GateBalanceEvent',\n UpdateFuturesEvent = 'UpdateFuturesEvent',\n InstrumentUpdateEvent = 'InstrumentUpdateEvent',\n RemoveAllInstrumentEventListener = 'RemoveAllEventListener',\n RemoveAllGateEventListener = 'RemoveAllGateEventListener',\n OnInstrumentOrderUpdateEvent = 'OnInstrumentOrderUpdateEvent',\n FetchInstrumentSpotState = 'FetchInstrumentSpotState',\n PollingFetchInstrument = 'PollingFetchInstrument',\n UpdateSpotStateEvent = 'UpdateSpotStateEvent',\n UpdateRawSpotPriceEvent = 'UpdateRawSpotPriceEvent',\n UpdatePortfolioEvent = 'UpdatePortfolioEvent',\n UpdateGateBalanceEvent = 'UpdateGateBalanceEvent',\n UpdateTokenAllowanceEvent = 'UpdateTokenAllowanceEvent',\n RemoveAllSocketEventListener = 'RemoveAllSocketEventListener',\n UpdateMarketPairInfoEvent = 'UpdateMarketPairInfoEvent',\n DispatchInstrumentUpdateEvent = 'DispatchInstrumentUpdateEvent',\n DispatchPortfolioUpdateEvent = 'DispatchPortfolioUpdateEvent',\n DispatchGateUpdateEvent = 'DispatchGateUpdateEvent',\n}\n\nexport type BlockyResult = {\n block: number;\n data: T;\n};\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport type WorkerEvent = { eventName: WorkerEventNames; data: any };\n\nexport type WorkerResultBase = {\n chainId: number;\n userAddr: string;\n block: number;\n};\n\nexport type WorkerBalanceEventResult = WorkerResultBase & {\n balanceInfo: {\n balance: BigNumber;\n block: number;\n };\n token: Token;\n};\n\nexport type WorkerMulticallBalanceResult = WorkerResultBase & {\n balanceInfos: {\n token: Token;\n balance: BigNumber;\n block: number;\n }[];\n};\n\nexport type WorkerAllowanceResult = WorkerResultBase & {\n allowanceInfo: {\n spender: string;\n allowance: BigNumber;\n };\n token: Token;\n};\n\nexport type WorkerPairResult = Omit & {\n pairInfo: {\n pair: Amm;\n };\n};\n\nexport type WorkerPairListResult = Omit & {\n pairList: Amm[];\n};\n\nexport type WorkerFuturesListResult = Omit & {\n futuresMap: Record;\n};\n\nexport type WorkerGateBalanceResult = WorkerResultBase & {\n gateBalance: BigNumber;\n token: Token;\n};\n\nexport type WorkerFuturesResult = Omit & {\n futures: Instrument;\n pairList: Amm[];\n futuresRecord: IInstrumentRecord;\n};\n\nexport type WorkerPortfolioResult = WorkerResultBase & {\n reducedPortfolio: IAccountRecords;\n instrumentAddr: string;\n expiry: number;\n};\n\nexport type WorkerOnInstrumentOrderUpdateResult = WorkerResultBase & {\n eventName: string;\n instrumentAddr: string;\n expiry: number;\n transactionHash: string;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n eventArgs: any;\n};\n\nexport type WorkerInstrumentSpotStateMapResult = Omit & {\n instrumentSpotStateMap: { [instrumentAddr: string]: BlockyResult }; // instrument address => spot state\n};\n\nexport type WorkerInstrumentSpotRawPriceMapResult = Omit & {\n instrumentSpotRawPriceMap: { [instrumentAddr: string]: BlockyResult }; // instrument address => spot raw price\n};\n\nexport type WorkerMarketPairInfoResult = Omit & {\n pairInfo: IMarketPair;\n};\n\nexport type WorkerDispatchInstrumentEventResult = Omit & {\n eventName: string;\n instrumentAddr: string;\n expiry?: number;\n transactionHash: string;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n eventArgs: any;\n trader?: string;\n};\n\nexport type WorkerDispatchPortfolioEventResult = Omit & {\n eventName: string;\n instrumentAddr: string;\n expiry?: number;\n transactionHash: string;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n eventArgs: any;\n trader?: string;\n};\n\nexport type WorkerDispatchGateEventResult = WorkerResultBase & {\n eventName: string;\n transactionHash: string;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n eventArgs: any;\n};\n","import { Buffer } from 'buffer';\nimport CryptoJS from 'crypto-js';\nimport cryptoRandomString from 'crypto-random-string';\nimport { ethers } from 'ethers';\nimport _ from 'lodash';\n\nexport class SymmetricEncryption {\n private readonly key: string;\n private readonly iv: string;\n private readonly nonce: string;\n\n constructor(nonce?: string) {\n if (nonce) {\n this.nonce = nonce;\n } else {\n this.nonce = cryptoRandomString({ length: 48, type: 'alphanumeric' });\n }\n const hashBuffer = Buffer.from(ethers.utils.keccak256(ethers.utils.toUtf8Bytes(this.nonce)).slice(2), 'hex');\n this.key = ethers.utils.hexlify(hashBuffer.subarray(0, 32), { allowMissingPrefix: false }).replace('0x', '');\n this.iv = ethers.utils\n .hexlify(hashBuffer.subarray(hashBuffer.length - 16), {\n allowMissingPrefix: false,\n })\n .replace('0x', '');\n }\n\n sign(params: { uri: string; ts: number; body?: object; authorization?: string }): {\n 'X-Api-Nonce': string;\n 'X-Api-Sign': string;\n 'X-Api-Ts': number;\n } {\n const body = params.body ? JSON.stringify(_.fromPairs(_.sortBy(_.toPairs(params.body), 0))) : undefined;\n const plaintext = JSON.stringify({\n uri: params.uri,\n body,\n nonce: this.nonce,\n ts: params.ts,\n authorization: params.authorization || undefined,\n });\n const encrypted = CryptoJS.AES.encrypt(plaintext, CryptoJS.enc.Hex.parse(this.key), {\n iv: CryptoJS.enc.Hex.parse(this.iv),\n mode: CryptoJS.mode.CBC,\n padding: CryptoJS.pad.Pkcs7,\n });\n const sign = ethers.utils\n .keccak256(ethers.utils.toUtf8Bytes(CryptoJS.enc.Base64.stringify(CryptoJS.enc.Utf8.parse(encrypted.toString()))))\n .replace('0x', '');\n return {\n 'X-Api-Nonce': this.nonce,\n 'X-Api-Sign': sign,\n 'X-Api-Ts': params.ts,\n };\n }\n}\n\nexport function getEncryptedHeader({\n uri,\n authorization,\n body,\n}: {\n uri: string;\n authorization?: string;\n body?: object;\n}): {\n 'X-Api-Nonce': string;\n 'X-Api-Sign': string;\n 'X-Api-Ts': number;\n} {\n const params = {\n uri,\n body,\n ts: new Date().getTime(),\n authorization,\n };\n const symmetricEncryption = new SymmetricEncryption();\n const encrypted = symmetricEncryption.sign(params);\n return encrypted;\n}\n\n// // Example usage:\n// const result = getEncryptedData({\n// uri: 'v3/api/checkIp',\n// authorization:\n// 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhZGRyZXNzIjoiMHg1MDYzN2VjOTJiN2E1ZWVhMDQyMjBkNDA4OTkxMTk0MGQzM2UyOTI1Iiwibm9uY2UiOjE3MzI3ODM1MDI3NzEsInNvdXJjZSI6IjEiLCJpYXQiOjE3MzI4NTEwMTUsImV4cCI6MTczNTQ0MzAxNX0.vmkfnDsufyo68V5WbrOjw3ExqYRRR7fS9b8p0xRuSII',\n// });\n// console.log('Encrypted data:', result);\n","import { CHAIN_ID, ChainInfo, getChainInfo } from '@derivation-tech/context';\n\nimport { IChainInfo, ISynfConfigInfo } from '@/types/chain';\n\nimport { getTokenInfo } from './token';\n/**\n * read chainConfig from sdk repo config, https://github.com/SynFutures/v2-sdk\n * @param chainId\n * @returns\n */\nexport function getChainConfigInfo(chainId: CHAIN_ID, chainInfo?: ChainInfo): IChainInfo {\n if (!chainInfo) chainInfo = getChainInfo(chainId);\n const wrappedNativeToken = getTokenInfo(chainInfo.wrappedNativeToken, chainId);\n const nativeToken = getTokenInfo(chainInfo.nativeToken, chainId);\n\n const newConfig = {\n ...chainInfo,\n nativeToken,\n wrappedNativeToken: wrappedNativeToken,\n // marketConfig: marketConfig,\n } as ISynfConfigInfo;\n\n return newConfig;\n}\n","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport _ from 'lodash';\nimport moment from 'moment';\n\nimport { getChainName } from './chain';\nconst LogRecordTypes = [\n 'event',\n 'syn',\n 'tx',\n 'graph',\n 'websocket',\n 'other',\n 'campaign',\n 'ERC',\n 'wallet',\n 'simulate',\n 'web3',\n 'socket',\n];\n\nconst enableLogTypes = ['wallet', 'simulate', 'web3', 'socket'];\n\nconst LogRecordTypeColors = [\n '#8572e3',\n '#1f8599',\n '#f5841f',\n '#124e59',\n '#434343',\n '#434343',\n '#cb8700',\n '#363636',\n '#f5841f',\n '#2b4ace',\n '#2c8747',\n];\nexport declare type LogRecordType = (typeof LogRecordTypes)[number];\n\nconst PREFIX = '├─';\n// const PREFIX_SUB = '├───';\n// const RIGHT_ARROW = '=>';\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nconst consoleRecord = (\n type: LogRecordType,\n title?: string,\n result?: any,\n params?: any,\n ...optionalParams: any[]\n): void => {\n try {\n if (!enableLogTypes.includes(type)) {\n return;\n }\n const logArgs = [];\n if (title) {\n let color = LogRecordTypeColors[LogRecordTypes.indexOf(type) || 0];\n if (type === 'tx') {\n if (result?.receipt) {\n if (result?.receipt?.status === 1) {\n color = '#1f9933';\n } else {\n color = '#ff4d6a';\n }\n }\n }\n console.group(\n `%c ${_.padEnd(_.upperFirst(type), 8)} `,\n `color: white; background-color: ${color}`,\n PREFIX + '─'.repeat(5),\n\n title,\n '─'.repeat(5),\n );\n }\n\n logArgs.push(' '.repeat(10) + '| ' + `[Time: ${moment().format('YYYY-MM-DD HH:mm:ss')}]`);\n if (params?.chainId) {\n logArgs.push(` [Chain: ${getChainName(params.chainId)}]`);\n }\n if (params?.userAddr) {\n logArgs.push(` [User: ${params?.userAddr}]`);\n }\n if (params?.underlying?.symbol) {\n logArgs.push(` [Symbol: ${params?.underlying?.symbol}]`);\n }\n if (params?.txHash) {\n logArgs.push(` [txHash: ${params?.txHash}]`);\n }\n\n if (params) {\n logArgs.push('\\n' + ' '.repeat(10) + '| ' + 'params:', params);\n }\n if (result) {\n logArgs.push('\\n' + ' '.repeat(10) + '| ' + 'result:', result);\n }\n\n console.log(...logArgs, ...optionalParams);\n console.groupEnd();\n } catch (error) {\n console.error('🚀 ~ file: log.ts:23 ~ error:', error);\n }\n};\n\nconsole.record = consoleRecord;\n\nif (self) {\n self.console.record = consoleRecord;\n}\n\nexport {};\n","import { BlockInfo, CHAIN_ID } from '@derivation-tech/context';\n\nimport { IMetaInstrument, IMetaPair } from '@/types/pair';\n\nimport { ADDRESS_ZERO, Amm, Instrument, MarketType, ZERO } from '@synfutures/sdks-perp';\nimport { mappingToken } from '../token';\nimport { getPairId } from './transformId';\n\nexport function transformToMetaFutures(instrument: Instrument, chainId: CHAIN_ID): IMetaInstrument {\n const instrumentAddr = instrument.instrumentAddr.toLowerCase();\n let base = instrument.base;\n // adapt for missing base token\n if (!base && instrument?.symbol) {\n const baseSymbol = instrument?.symbol.split('-')[0];\n base = {\n name: baseSymbol,\n symbol: baseSymbol,\n address: ADDRESS_ZERO,\n decimals: 0,\n };\n instrument.base = base;\n }\n return {\n ...instrument,\n instrumentAddr,\n id: instrumentAddr,\n baseToken: mappingToken({\n token: instrument.base,\n marketType: (instrument.market?.info?.type as MarketType) || MarketType.LINK,\n chainId: chainId,\n }),\n quoteToken: mappingToken({\n token: instrument.quote,\n // marketType: (futures.market?.info?.type as MarketType) || MarketType.LINK,\n chainId: chainId,\n }),\n };\n}\n\nexport function transformToMetaPair({\n amm,\n futures,\n blockInfo,\n}: {\n amm: Amm;\n futures: Instrument;\n blockInfo?: BlockInfo;\n}): IMetaPair {\n const pairId = getPairId(futures.instrumentAddr, amm.expiry);\n return {\n ...amm,\n id: pairId,\n instrumentId: futures.instrumentAddr.toLowerCase(),\n markPrice: amm.markPrice || ZERO,\n blockInfo: blockInfo ||\n futures.blockInfo || {\n height: 0,\n timestamp: 0,\n },\n };\n}\n","export function getPairId(instrumentAddr: string, expiry: number): string {\n return `${instrumentAddr}-${expiry}`.toLowerCase();\n}\nexport function getAccountId(userAddr: string, instrumentAddr: string): string {\n return `${userAddr}-${instrumentAddr}`.toLowerCase();\n}\n\nexport function getPortfolioId(accountId: string, expiry: number): string {\n return `${accountId}-${expiry}`.toLowerCase();\n}\n\nexport function getOrderId(portfolioId: string, oid: number): string {\n return `${portfolioId}-${oid}`.toLowerCase();\n}\n\nexport function getRangeId(portfolioId: string, rid: number): string {\n return `${portfolioId}-${rid}`.toLowerCase();\n}\n","import { CHAIN_ID, ChainInfo, Context } from '@derivation-tech/context';\nimport { JsonRpcProvider } from '@ethersproject/providers';\n\nimport { ReconnectingWebSocketProvider } from '@/connectors/WebSocketConnector/ReconnectingWebSocketProvider';\nimport { CHAIN_HTTP_RPC_URLS, CHAIN_WSS_RPC_URLS } from '@/constants/rpc';\nimport { getFallbackProvider, getProviderFromLocalOrSetting } from '@/utils/chain';\n\nexport class ChainContextWorker {\n private static instances: Map = new Map();\n chainId: number;\n chainContext: Context;\n constructor(chainId: CHAIN_ID, provider: JsonRpcProvider) {\n this.chainId = chainId;\n this.chainContext = new Context(chainId);\n this.chainContext.info.isOpSdkCompatible = false;\n this.chainContext.setProvider(provider);\n }\n\n public static getInstance(chainId: CHAIN_ID): ChainContextWorker {\n let instance = this.instances.get(chainId);\n if (!instance) {\n let provider: JsonRpcProvider | undefined = undefined;\n\n if (CHAIN_WSS_RPC_URLS?.[chainId]?.[0])\n provider = new ReconnectingWebSocketProvider(CHAIN_WSS_RPC_URLS?.[chainId]?.[0], chainId);\n if (!provider) {\n provider = getFallbackProvider(chainId, CHAIN_HTTP_RPC_URLS?.[chainId]) as unknown as JsonRpcProvider;\n }\n\n instance = new ChainContextWorker(chainId, provider);\n this.instances.set(chainId, instance);\n }\n return instance;\n }\n\n get chainInfo(): ChainInfo {\n return this.chainContext.info;\n }\n\n get provider(): JsonRpcProvider {\n return this.chainContext.provider as JsonRpcProvider;\n }\n\n readProviderFromLocalOrSetting = async (): Promise => {\n const rpcSetting = await getProviderFromLocalOrSetting(this.chainId);\n this.chainContext.setProvider(rpcSetting.provider);\n };\n}\n","import { CHAIN_ID } from '@derivation-tech/context';\n\nimport { WorkerEvent, WorkerEventNames } from '@/types/worker';\nimport { bigNumberObjectCheck } from '@/utils';\n\nexport function emitWorkerEvent(eventName: WorkerEventNames, data: T): void {\n self && self.postMessage({ eventName, data });\n}\n\nexport function requestFromWorker({\n worker,\n eventName,\n requestParams,\n}: {\n worker: Worker;\n eventName: WorkerEventNames;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n requestParams: any;\n}): Promise {\n return new Promise((resolve) => {\n worker.postMessage({\n eventName: eventName,\n data: requestParams,\n });\n worker.addEventListener('message', (e) => {\n const event = e.data as WorkerEvent;\n if (event.eventName === eventName) {\n resolve(parsingWorkerData(event.data) as T);\n }\n });\n });\n}\n\n// check BigNumber object\nexport function parsingWorkerData(data: T): T {\n return bigNumberObjectCheck(data);\n}\n\nexport const getWatchWorkerEventCallback = (\n e: MessageEvent,\n worker: Worker,\n eventName: WorkerEventNames,\n callback: (data: T) => void,\n deps?: { chainId?: CHAIN_ID; userAddr?: string },\n) => {\n const event = e.data as WorkerEvent;\n if (event.eventName === eventName) {\n // check for right result from worker event\n if (deps) {\n if (deps.chainId && event.data.chainId && deps.chainId !== event.data.chainId) return;\n if (deps.userAddr && event.data.userAddr && deps.userAddr !== event.data.userAddr) return;\n }\n console.record('event', `Trigger [Worker] [${eventName}] event listener`, event.data);\n\n callback(parsingWorkerData(event.data));\n //\n }\n};\n\nexport function watchWorkerEvent(\n worker: Worker,\n eventName: WorkerEventNames,\n callback: (data: T) => void,\n deps?: { chainId?: CHAIN_ID; userAddr?: string },\n): void {\n worker.addEventListener('message', (e) => {\n const event = e.data as WorkerEvent;\n if (event.eventName === eventName) {\n // check for right result from worker event\n if (deps) {\n if (deps.chainId && event.data.chainId && deps.chainId !== event.data.chainId) return;\n if (deps.userAddr && event.data.userAddr && deps.userAddr !== event.data.userAddr) return;\n }\n console.record('event', `Trigger [Worker] [${eventName}] event listener`, event.data);\n\n callback(parsingWorkerData(event.data));\n //\n }\n });\n}\n","var map = {\n\t\"./arbitrum.json\": 4533,\n\t\"./base.json\": 13789,\n\t\"./blast.json\": 31286,\n\t\"./blastSepolia.json\": 29439,\n\t\"./goerli.json\": 75513,\n\t\"./linea.json\": 73732,\n\t\"./monadTestnet.json\": 16604\n};\n\n\nfunction webpackContext(req) {\n\tvar id = webpackContextResolve(req);\n\treturn __webpack_require__(id);\n}\nfunction webpackContextResolve(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t}\n\treturn map[req];\n}\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = 54762;"],"names":["Desktop","_ref","children","useMediaQuery","minWidth","Mobile","_ref3","maxWidth","Default","_ref4","useMediaQueryDevice","isDesktop","isBigScreen","query","isTablet","isPortrait","isRetina","isMobile","isNotMobile","deviceType","useMemo","_path","_excluded","_extends","Object","assign","bind","n","e","arguments","length","t","r","hasOwnProperty","call","apply","ForwardRef","forwardRef","ref","title","titleId","props","o","i","includes","_objectWithoutPropertiesLoose","getOwnPropertySymbols","s","propertyIsEnumerable","_objectWithoutProperties","width","height","viewBox","fill","xmlns","id","fillRule","clipRule","d","memo","_jsx","_Fragment","Tooltip","_objectSpread","icon","IconInfo","onClick","stopPropagation","className","ResponsiveTooltip","showOnMobile","_jsxs","open","mockOpenTooltip","getDappChainConfig","chainId","wagmiChain","chainConfig","require","concat","CHAIN_ID","jsonFileMapping","config","JSON","parse","stringify","ReconnectingWebSocketProvider","_fakeBaseClass","_inherits","_super","_createSuper","url","networkConfig","_this","_classCallCheck","underlyingProvider","events","requests","handler","get","target","prop","receiver","Reflect","keepAlive","onDisconnect","onopen","_websocket","_this$underlyingProvi4","_len","args","Array","_key","event","pop","_this$underlyingProvi","_this$underlyingProvi2","_events","push","_startEvent","key","_this$underlyingProvi3","_requests","send","payload","onclose","err","onMessage","onmessage","_this$underlyingProvi5","_len2","_key2","error","connect","_possibleConstructorReturn","Proxy","_assertThisInitialized","_createClass","value","_connect","_asyncToGenerator","_regeneratorRuntime","mark","_callee","_this2","wrap","_context","prev","next","this","_toConsumableArray","destroy","Promise","setTimeout","providers","debounce","stop","instance","instances","_class","SOCKET_URL","DEFAULT_DECIMAL_PLACES","ETH_DECIMALS_PLACES","FETCHING_STATUS","GAS_PRICE_TYPE","GlobalModalType","SecondGlobalModalType","ThirdGlobalModalType","TabType","THEME_ENUM","WEB3_NETWORK_TYPE","BALANCE_TYPE","ZERO","BigNumber","String","Math","pow","FULL_WIDTH_ROUTES","PERP","AVAILABLE_LANGS","LANGUAGE_KEY","DEFAULT_THEME","LIGHT","mockOpenDropdown","mockNotiDontClose","decimalShortFormSymbolMap","minExclusiveNumToShowShortDecimal","CHAIN_HTTP_RPC_URLS","_CHAIN_HTTP_RPC_URLS","_defineProperty","CHAIN_WSS_RPC_URLS","_CHAIN_WSS_RPC_URLS","process","REACT_APP_POLYGON_WSS_RPC","filter","REACT_APP_ARBITRUM_WSS_RPC","REACT_APP_BLASTSEPOLIA_WSS_RPC","OPERATION_TX_TYPE","SYN_INTERFACE","InstrumentInterface","Instrument__factory","GateInterface","Gate__factory","VaultInterface","Vault__factory","Erc20Interface","ERC20__factory","WrappedNativeInterface","WrappedNative__factory","OysterAggregatorInterface","OysterAggregator__factory","TX_INTERFACE_MAPPING","_TX_INTERFACE_MAPPING","DEPOSIT","WITHDRAW","TRADE","ADD_LIQUIDITY","REMOVE_LIQUIDITY","CREATE","ADJUST_MARGIN","CANCEL_ORDER","FILL_ORDER","PLACE_ORDER","SETTLE","BATCH_PLACE_SCALED_ORDER","PLACE_CROSS_MARKET_ORDER","VAULT_DEPOSIT","VAULT_WITHDRAW","VAULT_CLAIM","SWAP","NATIVE_SWAP","SocketService","socket","eventQueue","Map","undefined","io","reconnection","reconnectionAttempts","Infinity","reconnectionDelay","reconnectionDelayMax","randomizationFactor","path","setupSocketListeners","on","forEach","_this$socket","emit","attempt","disconnect","clear","ev","_this$socket2","set","cb","off","delete","BN","DECIMAL_PLACES","WrappedBigNumber","_BN","formatEther","_has","toString","toWad","formatDisplayNumber","num","from","sqrt","div","decimal","inputNumChecker","stringValue","_get","_getPrototypeOf","prototype","lt","eq","formatNumberWithTooltip","isStablePair","roundingMode","options","formatPriceNumberWithTooltip","significantDigits","SIGNIFICANT_DIGITS","_ref2","_excluded2","type","formatLiqPriceNumberWithTooltip","formattedNumStr","abs","gte","formatNumber","formatPercentage","percentage","hundredfold","decimals","formatPercentageString","isShowSeparator","isRemoveTrailingZeros","wadValue","numStr","displayValue","toDisplayJSON","valueOf","base","WrappedQuote","_WrappedToken","symbol","address","name","quoteParam","priceInfo","price","current","price_change_percentage_24h","priceChangePercentage24h","toJSON","quoteId","_","metaToken","quote","getInstance","bigNumberObjectCheck","WrappedToken","color","toLowerCase","WorkerEventNames","SymmetricEncryption","nonce","iv","cryptoRandomString","hashBuffer","Buffer","ethers","slice","subarray","allowMissingPrefix","replace","params","body","plaintext","uri","ts","authorization","encrypted","CryptoJS","mode","padding","sign","getEncryptedHeader","Date","getTime","getChainConfigInfo","chainInfo","getChainInfo","wrappedNativeToken","getTokenInfo","nativeToken","LogRecordTypes","enableLogTypes","consoleRecord","result","_params$underlying","_console","_params$underlying2","logArgs","_result$receipt","indexOf","receipt","status","repeat","moment","format","getChainName","userAddr","underlying","txHash","optionalParams","console","log","record","self","transformToMetaFutures","instrument","_instrument$market","_instrument$market$in","instrumentAddr","baseSymbol","split","ADDRESS_ZERO","baseToken","mappingToken","token","marketType","market","info","MarketType","quoteToken","transformToMetaPair","amm","futures","blockInfo","pairId","getPairId","expiry","instrumentId","markPrice","timestamp","getAccountId","getPortfolioId","accountId","getOrderId","portfolioId","oid","getRangeId","rid","ChainContextWorker","provider","chainContext","readProviderFromLocalOrSetting","rpcSetting","getProviderFromLocalOrSetting","sent","setProvider","Context","isOpSdkCompatible","_CHAIN_WSS_RPC_URLS$c","_CHAIN_WSS_RPC_URLS$c2","getFallbackProvider","emitWorkerEvent","eventName","data","postMessage","parsingWorkerData","getWatchWorkerEventCallback","worker","callback","deps","watchWorkerEvent","addEventListener","map","webpackContext","req","webpackContextResolve","__webpack_require__","Error","code","keys","resolve","module","exports"],"sourceRoot":""}