{"version":3,"file":"react.cjs","sources":["../../../node_modules/react/cjs/react-jsx-runtime.production.js","../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../node_modules/react/jsx-runtime.js","../src/react/context/SimpleKitContext.tsx","../../../node_modules/clsx/dist/clsx.mjs","../../../node_modules/tailwind-merge/dist/bundle-mjs.mjs","../src/react/shadcn/utils.tsx","../src/react/shadcn/ui/dialog.tsx","../src/react/shadcn/ui/drawer.tsx","../src/react/shadcn/ui/scroll-area.tsx","../src/react/web3modal.tsx","../src/react/utils/adapters.ts","../src/react/hooks.tsx","../src/react/icons.tsx","../src/react/components/OptionButton.tsx","../src/react/sections/SelectETHWallet.tsx","../src/react/sections/SelectSolanaWallet.tsx","../src/react/sections/WalletQR.tsx","../../../node_modules/class-variance-authority/dist/index.mjs","../src/react/shadcn/ui/button.tsx","../src/react/sections/WalletConnecting.tsx","../src/react/sections/SwitchingChain.tsx","../../shared/src/utils/minify-address.ts","../src/react/components/OptionSkeleton.tsx","../src/react/sections/SwitchAccount.tsx","../src/react/shadcn/ui/skeleton.tsx","../src/react/components/CopyAddressButton.tsx","../../shared/src/utils/subscript.ts","../../shared/src/utils/minify-decimals.ts","../src/react/sections/Account.tsx","../src/react/components/NetworkButton.tsx","../src/react/sections/Home.tsx","../src/react/sections/SwitchChain.tsx","../src/react/sections/SwitchingAccount.tsx","../src/react/sections/Withdraw.tsx","../src/react/sections/SocialConnecting.tsx","../src/react/sections/AccountSigning.tsx","../src/react/context/SimpleKit.tsx","../src/react/web3kit.tsx","../src/react/index.tsx"],"sourcesContent":["/**\n * @license React\n * react-jsx-runtime.production.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\nvar REACT_ELEMENT_TYPE = Symbol.for(\"react.transitional.element\"),\n  REACT_FRAGMENT_TYPE = Symbol.for(\"react.fragment\");\nfunction jsxProd(type, config, maybeKey) {\n  var key = null;\n  void 0 !== maybeKey && (key = \"\" + maybeKey);\n  void 0 !== config.key && (key = \"\" + config.key);\n  if (\"key\" in config) {\n    maybeKey = {};\n    for (var propName in config)\n      \"key\" !== propName && (maybeKey[propName] = config[propName]);\n  } else maybeKey = config;\n  config = maybeKey.ref;\n  return {\n    $$typeof: REACT_ELEMENT_TYPE,\n    type: type,\n    key: key,\n    ref: void 0 !== config ? config : null,\n    props: maybeKey\n  };\n}\nexports.Fragment = REACT_FRAGMENT_TYPE;\nexports.jsx = jsxProd;\nexports.jsxs = jsxProd;\n","/**\n * @license React\n * react-jsx-runtime.development.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\n\"production\" !== process.env.NODE_ENV &&\n  (function () {\n    function getComponentNameFromType(type) {\n      if (null == type) return null;\n      if (\"function\" === typeof type)\n        return type.$$typeof === REACT_CLIENT_REFERENCE\n          ? null\n          : type.displayName || type.name || null;\n      if (\"string\" === typeof type) return type;\n      switch (type) {\n        case REACT_FRAGMENT_TYPE:\n          return \"Fragment\";\n        case REACT_PROFILER_TYPE:\n          return \"Profiler\";\n        case REACT_STRICT_MODE_TYPE:\n          return \"StrictMode\";\n        case REACT_SUSPENSE_TYPE:\n          return \"Suspense\";\n        case REACT_SUSPENSE_LIST_TYPE:\n          return \"SuspenseList\";\n        case REACT_ACTIVITY_TYPE:\n          return \"Activity\";\n      }\n      if (\"object\" === typeof type)\n        switch (\n          (\"number\" === typeof type.tag &&\n            console.error(\n              \"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.\"\n            ),\n          type.$$typeof)\n        ) {\n          case REACT_PORTAL_TYPE:\n            return \"Portal\";\n          case REACT_CONTEXT_TYPE:\n            return (type.displayName || \"Context\") + \".Provider\";\n          case REACT_CONSUMER_TYPE:\n            return (type._context.displayName || \"Context\") + \".Consumer\";\n          case REACT_FORWARD_REF_TYPE:\n            var innerType = type.render;\n            type = type.displayName;\n            type ||\n              ((type = innerType.displayName || innerType.name || \"\"),\n              (type = \"\" !== type ? \"ForwardRef(\" + type + \")\" : \"ForwardRef\"));\n            return type;\n          case REACT_MEMO_TYPE:\n            return (\n              (innerType = type.displayName || null),\n              null !== innerType\n                ? innerType\n                : getComponentNameFromType(type.type) || \"Memo\"\n            );\n          case REACT_LAZY_TYPE:\n            innerType = type._payload;\n            type = type._init;\n            try {\n              return getComponentNameFromType(type(innerType));\n            } catch (x) {}\n        }\n      return null;\n    }\n    function testStringCoercion(value) {\n      return \"\" + value;\n    }\n    function checkKeyStringCoercion(value) {\n      try {\n        testStringCoercion(value);\n        var JSCompiler_inline_result = !1;\n      } catch (e) {\n        JSCompiler_inline_result = !0;\n      }\n      if (JSCompiler_inline_result) {\n        JSCompiler_inline_result = console;\n        var JSCompiler_temp_const = JSCompiler_inline_result.error;\n        var JSCompiler_inline_result$jscomp$0 =\n          (\"function\" === typeof Symbol &&\n            Symbol.toStringTag &&\n            value[Symbol.toStringTag]) ||\n          value.constructor.name ||\n          \"Object\";\n        JSCompiler_temp_const.call(\n          JSCompiler_inline_result,\n          \"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.\",\n          JSCompiler_inline_result$jscomp$0\n        );\n        return testStringCoercion(value);\n      }\n    }\n    function getTaskName(type) {\n      if (type === REACT_FRAGMENT_TYPE) return \"<>\";\n      if (\n        \"object\" === typeof type &&\n        null !== type &&\n        type.$$typeof === REACT_LAZY_TYPE\n      )\n        return \"<...>\";\n      try {\n        var name = getComponentNameFromType(type);\n        return name ? \"<\" + name + \">\" : \"<...>\";\n      } catch (x) {\n        return \"<...>\";\n      }\n    }\n    function getOwner() {\n      var dispatcher = ReactSharedInternals.A;\n      return null === dispatcher ? null : dispatcher.getOwner();\n    }\n    function UnknownOwner() {\n      return Error(\"react-stack-top-frame\");\n    }\n    function hasValidKey(config) {\n      if (hasOwnProperty.call(config, \"key\")) {\n        var getter = Object.getOwnPropertyDescriptor(config, \"key\").get;\n        if (getter && getter.isReactWarning) return !1;\n      }\n      return void 0 !== config.key;\n    }\n    function defineKeyPropWarningGetter(props, displayName) {\n      function warnAboutAccessingKey() {\n        specialPropKeyWarningShown ||\n          ((specialPropKeyWarningShown = !0),\n          console.error(\n            \"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)\",\n            displayName\n          ));\n      }\n      warnAboutAccessingKey.isReactWarning = !0;\n      Object.defineProperty(props, \"key\", {\n        get: warnAboutAccessingKey,\n        configurable: !0\n      });\n    }\n    function elementRefGetterWithDeprecationWarning() {\n      var componentName = getComponentNameFromType(this.type);\n      didWarnAboutElementRef[componentName] ||\n        ((didWarnAboutElementRef[componentName] = !0),\n        console.error(\n          \"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.\"\n        ));\n      componentName = this.props.ref;\n      return void 0 !== componentName ? componentName : null;\n    }\n    function ReactElement(\n      type,\n      key,\n      self,\n      source,\n      owner,\n      props,\n      debugStack,\n      debugTask\n    ) {\n      self = props.ref;\n      type = {\n        $$typeof: REACT_ELEMENT_TYPE,\n        type: type,\n        key: key,\n        props: props,\n        _owner: owner\n      };\n      null !== (void 0 !== self ? self : null)\n        ? Object.defineProperty(type, \"ref\", {\n            enumerable: !1,\n            get: elementRefGetterWithDeprecationWarning\n          })\n        : Object.defineProperty(type, \"ref\", { enumerable: !1, value: null });\n      type._store = {};\n      Object.defineProperty(type._store, \"validated\", {\n        configurable: !1,\n        enumerable: !1,\n        writable: !0,\n        value: 0\n      });\n      Object.defineProperty(type, \"_debugInfo\", {\n        configurable: !1,\n        enumerable: !1,\n        writable: !0,\n        value: null\n      });\n      Object.defineProperty(type, \"_debugStack\", {\n        configurable: !1,\n        enumerable: !1,\n        writable: !0,\n        value: debugStack\n      });\n      Object.defineProperty(type, \"_debugTask\", {\n        configurable: !1,\n        enumerable: !1,\n        writable: !0,\n        value: debugTask\n      });\n      Object.freeze && (Object.freeze(type.props), Object.freeze(type));\n      return type;\n    }\n    function jsxDEVImpl(\n      type,\n      config,\n      maybeKey,\n      isStaticChildren,\n      source,\n      self,\n      debugStack,\n      debugTask\n    ) {\n      var children = config.children;\n      if (void 0 !== children)\n        if (isStaticChildren)\n          if (isArrayImpl(children)) {\n            for (\n              isStaticChildren = 0;\n              isStaticChildren < children.length;\n              isStaticChildren++\n            )\n              validateChildKeys(children[isStaticChildren]);\n            Object.freeze && Object.freeze(children);\n          } else\n            console.error(\n              \"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.\"\n            );\n        else validateChildKeys(children);\n      if (hasOwnProperty.call(config, \"key\")) {\n        children = getComponentNameFromType(type);\n        var keys = Object.keys(config).filter(function (k) {\n          return \"key\" !== k;\n        });\n        isStaticChildren =\n          0 < keys.length\n            ? \"{key: someKey, \" + keys.join(\": ..., \") + \": ...}\"\n            : \"{key: someKey}\";\n        didWarnAboutKeySpread[children + isStaticChildren] ||\n          ((keys =\n            0 < keys.length ? \"{\" + keys.join(\": ..., \") + \": ...}\" : \"{}\"),\n          console.error(\n            'A props object containing a \"key\" prop is being spread into JSX:\\n  let props = %s;\\n  <%s {...props} />\\nReact keys must be passed directly to JSX without using spread:\\n  let props = %s;\\n  <%s key={someKey} {...props} />',\n            isStaticChildren,\n            children,\n            keys,\n            children\n          ),\n          (didWarnAboutKeySpread[children + isStaticChildren] = !0));\n      }\n      children = null;\n      void 0 !== maybeKey &&\n        (checkKeyStringCoercion(maybeKey), (children = \"\" + maybeKey));\n      hasValidKey(config) &&\n        (checkKeyStringCoercion(config.key), (children = \"\" + config.key));\n      if (\"key\" in config) {\n        maybeKey = {};\n        for (var propName in config)\n          \"key\" !== propName && (maybeKey[propName] = config[propName]);\n      } else maybeKey = config;\n      children &&\n        defineKeyPropWarningGetter(\n          maybeKey,\n          \"function\" === typeof type\n            ? type.displayName || type.name || \"Unknown\"\n            : type\n        );\n      return ReactElement(\n        type,\n        children,\n        self,\n        source,\n        getOwner(),\n        maybeKey,\n        debugStack,\n        debugTask\n      );\n    }\n    function validateChildKeys(node) {\n      \"object\" === typeof node &&\n        null !== node &&\n        node.$$typeof === REACT_ELEMENT_TYPE &&\n        node._store &&\n        (node._store.validated = 1);\n    }\n    var React = require(\"react\"),\n      REACT_ELEMENT_TYPE = Symbol.for(\"react.transitional.element\"),\n      REACT_PORTAL_TYPE = Symbol.for(\"react.portal\"),\n      REACT_FRAGMENT_TYPE = Symbol.for(\"react.fragment\"),\n      REACT_STRICT_MODE_TYPE = Symbol.for(\"react.strict_mode\"),\n      REACT_PROFILER_TYPE = Symbol.for(\"react.profiler\");\n    Symbol.for(\"react.provider\");\n    var REACT_CONSUMER_TYPE = Symbol.for(\"react.consumer\"),\n      REACT_CONTEXT_TYPE = Symbol.for(\"react.context\"),\n      REACT_FORWARD_REF_TYPE = Symbol.for(\"react.forward_ref\"),\n      REACT_SUSPENSE_TYPE = Symbol.for(\"react.suspense\"),\n      REACT_SUSPENSE_LIST_TYPE = Symbol.for(\"react.suspense_list\"),\n      REACT_MEMO_TYPE = Symbol.for(\"react.memo\"),\n      REACT_LAZY_TYPE = Symbol.for(\"react.lazy\"),\n      REACT_ACTIVITY_TYPE = Symbol.for(\"react.activity\"),\n      REACT_CLIENT_REFERENCE = Symbol.for(\"react.client.reference\"),\n      ReactSharedInternals =\n        React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,\n      hasOwnProperty = Object.prototype.hasOwnProperty,\n      isArrayImpl = Array.isArray,\n      createTask = console.createTask\n        ? console.createTask\n        : function () {\n            return null;\n          };\n    React = {\n      \"react-stack-bottom-frame\": function (callStackForError) {\n        return callStackForError();\n      }\n    };\n    var specialPropKeyWarningShown;\n    var didWarnAboutElementRef = {};\n    var unknownOwnerDebugStack = React[\"react-stack-bottom-frame\"].bind(\n      React,\n      UnknownOwner\n    )();\n    var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));\n    var didWarnAboutKeySpread = {};\n    exports.Fragment = REACT_FRAGMENT_TYPE;\n    exports.jsx = function (type, config, maybeKey, source, self) {\n      var trackActualOwner =\n        1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;\n      return jsxDEVImpl(\n        type,\n        config,\n        maybeKey,\n        !1,\n        source,\n        self,\n        trackActualOwner\n          ? Error(\"react-stack-top-frame\")\n          : unknownOwnerDebugStack,\n        trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask\n      );\n    };\n    exports.jsxs = function (type, config, maybeKey, source, self) {\n      var trackActualOwner =\n        1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;\n      return jsxDEVImpl(\n        type,\n        config,\n        maybeKey,\n        !0,\n        source,\n        self,\n        trackActualOwner\n          ? Error(\"react-stack-top-frame\")\n          : unknownOwnerDebugStack,\n        trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask\n      );\n    };\n  })();\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n  module.exports = require('./cjs/react-jsx-runtime.production.js');\n} else {\n  module.exports = require('./cjs/react-jsx-runtime.development.js');\n}\n","// import { WalletAdapterNetwork } from \"@solana/wallet-adapter-base\";\r\nimport { WalletProvider } from \"@solana/wallet-adapter-react\";\r\nimport {\r\n  PhantomWalletAdapter,\r\n  SafePalWalletAdapter,\r\n  SolflareWalletAdapter,\r\n  TrustWalletAdapter,\r\n  // WalletConnectWalletAdapter,\r\n} from \"@solana/wallet-adapter-wallets\";\r\nimport { CoinbaseWalletAdapter } from \"@solana/wallet-adapter-wallets\";\r\nimport { coinbaseWallet, safe } from \"@wagmi/connectors\";\r\n// import { walletConnect } from \"@wagmi/connectors\";\r\nimport { createConfig, createStorage, http, injected } from \"@wagmi/core\";\r\nimport { cookieStorage } from \"@wagmi/core\";\r\nimport { NetworkSymbols } from \"based-auth/networks\";\r\nimport { createContext, useContext, useMemo, useRef, useState } from \"react\";\r\nimport { Chain } from \"viem\";\r\n\r\ninterface SimpleKitContextType {\r\n  chains: any[];\r\n  wagmiConfig: any;\r\n  signMessage: string;\r\n  open: boolean;\r\n  setOpen: React.Dispatch<React.SetStateAction<boolean>>;\r\n  pendingItem: any;\r\n  setPendingItem: React.Dispatch<React.SetStateAction<any>>;\r\n  router: any;\r\n  setRouter: React.Dispatch<React.SetStateAction<any>>;\r\n}\r\n\r\nexport const titles = {\r\n  home: \"Connect\",\r\n  account: \"Account\",\r\n  walletConnecting: \"Wallet Connecting\",\r\n  selectETHWallet: \"Select ETH Wallet\",\r\n  selectSolanaWallet: \"Select Solana Wallet\",\r\n  walletqr: \"Wallet QR\",\r\n  switchAccount: \"Switch Account\",\r\n  switchingAccount: \"Switching Account\",\r\n  switchChain: \"Switch Chain\",\r\n  switchingChain: \"Switching Chain\",\r\n  withdrawFunds: \"Withdraw Funds\",\r\n  withdrawingFunds: \"Withdrawing Funds\",\r\n  accountSigning: \"Account Signing\",\r\n};\r\n\r\nexport const routes = {\r\n  home: \"home\",\r\n  account: \"account\",\r\n  accountSigning: \"accountSigning\",\r\n  socialConnecting: \"socialConnecting\",\r\n  walletConnecting: \"walletConnecting\",\r\n  selectETHWallet: \"selectETHWallet\",\r\n  selectSolanaWallet: \"selectSolanaWallet\",\r\n  walletqr: \"walletqr\",\r\n  switchAccount: \"switchAccount\",\r\n  switchingAccount: \"switchingAccount\",\r\n  switchChain: \"switchChain\",\r\n  switchingChain: \"switchingChain\",\r\n  withdrawFunds: \"withdrawFunds\",\r\n  withdrawingFunds: \"withdrawingFunds\",\r\n};\r\n\r\nexport const SimpleKitContext = createContext<SimpleKitContextType>({\r\n  chains: [],\r\n  wagmiConfig: null,\r\n  signMessage: \"based.bid welcomes you!!!\",\r\n  pendingItem: null,\r\n  setPendingItem: () => {},\r\n  open: false,\r\n  setOpen: () => {},\r\n  router: routes.home,\r\n  setRouter: () => {},\r\n});\r\n\r\nexport const useSimpleKitContext = () => {\r\n  return useContext(SimpleKitContext);\r\n};\r\n\r\nexport const useSimpleKit = () => {\r\n  const { open, setOpen, ...rest } = useContext(SimpleKitContext);\r\n  return {\r\n    isOpen: open,\r\n    openModal: () => {\r\n      setOpen(true);\r\n    },\r\n    closeModal: () => {\r\n      setOpen(false);\r\n    },\r\n    ...rest,\r\n  };\r\n};\r\n\r\nexport const SimpleKitContextProvider = ({\r\n  children,\r\n  chains,\r\n  host,\r\n  name,\r\n  description,\r\n  icon,\r\n  projectId,\r\n  signMessage,\r\n}: {\r\n  children: React.ReactNode;\r\n  chains: any[];\r\n  host: string;\r\n  name: string;\r\n  description: string;\r\n  icon: string;\r\n  projectId: string;\r\n  signMessage: string;\r\n}) => {\r\n  const [open, setOpen] = useState<boolean>(false);\r\n  const [router, setRouter] = useState<any>(null);\r\n  const [pendingItem, setPendingItem] = useState<any>(null);\r\n\r\n  // const walletConnectConnector = useRef(\r\n  //   walletConnect({\r\n  //     projectId,\r\n  //     metadata: {\r\n  //       name,\r\n  //       description,\r\n  //       url: host,\r\n  //       icons: [icon],\r\n  //     },\r\n  //     showQrModal: false,\r\n  //     qrModalOptions: {\r\n  //       themeMode: \"dark\",\r\n  //     },\r\n  //   })\r\n  // );\r\n\r\n  const wagmiConfig = useMemo(() => {\r\n    const filteredChains = chains.filter(\r\n      (item) => item.network.symbol === NetworkSymbols.eth\r\n    );\r\n    const isInIframe =\r\n      !(typeof window === \"undefined\") && window?.parent !== window;\r\n    return createConfig({\r\n      chains: filteredChains as any,\r\n      connectors: [\r\n        injected({ target: \"metaMask\" }),\r\n        // walletConnectConnector.current,\r\n        coinbaseWallet({\r\n          appName: name,\r\n          appLogoUrl: icon,\r\n          overrideIsMetaMask: false,\r\n          preference: \"all\",\r\n        }),\r\n        ...(isInIframe\r\n          ? [\r\n              safe({\r\n                allowedDomains: [/gnosis-safe.io$/, /app.safe.global$/],\r\n              }),\r\n            ]\r\n          : []),\r\n      ],\r\n      storage: createStorage({\r\n        storage: cookieStorage,\r\n      }),\r\n      transports: Object.fromEntries(\r\n        filteredChains.map((chain) => [chain.id, http()])\r\n      ),\r\n    });\r\n  }, [chains]);\r\n\r\n  const solWallets = useMemo(\r\n    () => [\r\n      new CoinbaseWalletAdapter(),\r\n      new PhantomWalletAdapter(),\r\n      new SafePalWalletAdapter(),\r\n      new SolflareWalletAdapter(),\r\n      new TrustWalletAdapter(),\r\n      // new WalletConnectWalletAdapter({\r\n      //   network: WalletAdapterNetwork.Mainnet,\r\n      //   options: {\r\n      //     relayUrl: \"wss://relay.walletconnect.com\",\r\n      //     projectId,\r\n      //     metadata: {\r\n      //       name,\r\n      //       description,\r\n      //       url: host,\r\n      //       icons: [icon],\r\n      //     },\r\n      //   },\r\n      // }),\r\n    ],\r\n    []\r\n  );\r\n\r\n  return (\r\n    <SimpleKitContext.Provider\r\n      value={{\r\n        chains,\r\n        wagmiConfig,\r\n        signMessage,\r\n        open,\r\n        setOpen,\r\n        router,\r\n        setRouter,\r\n        pendingItem,\r\n        setPendingItem,\r\n      }}\r\n    >\r\n      <WalletProvider wallets={solWallets} autoConnect>\r\n        {children}\r\n      </WalletProvider>\r\n    </SimpleKitContext.Provider>\r\n  );\r\n};\r\n","function r(e){var t,f,n=\"\";if(\"string\"==typeof e||\"number\"==typeof e)n+=e;else if(\"object\"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=\" \"),n+=f)}else for(f in e)e[f]&&(n&&(n+=\" \"),n+=f);return n}export function clsx(){for(var e,t,f=0,n=\"\",o=arguments.length;f<o;f++)(e=arguments[f])&&(t=r(e))&&(n&&(n+=\" \"),n+=t);return n}export default clsx;","const CLASS_PART_SEPARATOR = '-';\nconst createClassGroupUtils = config => {\n  const classMap = createClassMap(config);\n  const {\n    conflictingClassGroups,\n    conflictingClassGroupModifiers\n  } = config;\n  const getClassGroupId = className => {\n    const classParts = className.split(CLASS_PART_SEPARATOR);\n    // Classes like `-inset-1` produce an empty string as first classPart. We assume that classes for negative values are used correctly and remove it from classParts.\n    if (classParts[0] === '' && classParts.length !== 1) {\n      classParts.shift();\n    }\n    return getGroupRecursive(classParts, classMap) || getGroupIdForArbitraryProperty(className);\n  };\n  const getConflictingClassGroupIds = (classGroupId, hasPostfixModifier) => {\n    const conflicts = conflictingClassGroups[classGroupId] || [];\n    if (hasPostfixModifier && conflictingClassGroupModifiers[classGroupId]) {\n      return [...conflicts, ...conflictingClassGroupModifiers[classGroupId]];\n    }\n    return conflicts;\n  };\n  return {\n    getClassGroupId,\n    getConflictingClassGroupIds\n  };\n};\nconst getGroupRecursive = (classParts, classPartObject) => {\n  if (classParts.length === 0) {\n    return classPartObject.classGroupId;\n  }\n  const currentClassPart = classParts[0];\n  const nextClassPartObject = classPartObject.nextPart.get(currentClassPart);\n  const classGroupFromNextClassPart = nextClassPartObject ? getGroupRecursive(classParts.slice(1), nextClassPartObject) : undefined;\n  if (classGroupFromNextClassPart) {\n    return classGroupFromNextClassPart;\n  }\n  if (classPartObject.validators.length === 0) {\n    return undefined;\n  }\n  const classRest = classParts.join(CLASS_PART_SEPARATOR);\n  return classPartObject.validators.find(({\n    validator\n  }) => validator(classRest))?.classGroupId;\n};\nconst arbitraryPropertyRegex = /^\\[(.+)\\]$/;\nconst getGroupIdForArbitraryProperty = className => {\n  if (arbitraryPropertyRegex.test(className)) {\n    const arbitraryPropertyClassName = arbitraryPropertyRegex.exec(className)[1];\n    const property = arbitraryPropertyClassName?.substring(0, arbitraryPropertyClassName.indexOf(':'));\n    if (property) {\n      // I use two dots here because one dot is used as prefix for class groups in plugins\n      return 'arbitrary..' + property;\n    }\n  }\n};\n/**\n * Exported for testing only\n */\nconst createClassMap = config => {\n  const {\n    theme,\n    prefix\n  } = config;\n  const classMap = {\n    nextPart: new Map(),\n    validators: []\n  };\n  const prefixedClassGroupEntries = getPrefixedClassGroupEntries(Object.entries(config.classGroups), prefix);\n  prefixedClassGroupEntries.forEach(([classGroupId, classGroup]) => {\n    processClassesRecursively(classGroup, classMap, classGroupId, theme);\n  });\n  return classMap;\n};\nconst processClassesRecursively = (classGroup, classPartObject, classGroupId, theme) => {\n  classGroup.forEach(classDefinition => {\n    if (typeof classDefinition === 'string') {\n      const classPartObjectToEdit = classDefinition === '' ? classPartObject : getPart(classPartObject, classDefinition);\n      classPartObjectToEdit.classGroupId = classGroupId;\n      return;\n    }\n    if (typeof classDefinition === 'function') {\n      if (isThemeGetter(classDefinition)) {\n        processClassesRecursively(classDefinition(theme), classPartObject, classGroupId, theme);\n        return;\n      }\n      classPartObject.validators.push({\n        validator: classDefinition,\n        classGroupId\n      });\n      return;\n    }\n    Object.entries(classDefinition).forEach(([key, classGroup]) => {\n      processClassesRecursively(classGroup, getPart(classPartObject, key), classGroupId, theme);\n    });\n  });\n};\nconst getPart = (classPartObject, path) => {\n  let currentClassPartObject = classPartObject;\n  path.split(CLASS_PART_SEPARATOR).forEach(pathPart => {\n    if (!currentClassPartObject.nextPart.has(pathPart)) {\n      currentClassPartObject.nextPart.set(pathPart, {\n        nextPart: new Map(),\n        validators: []\n      });\n    }\n    currentClassPartObject = currentClassPartObject.nextPart.get(pathPart);\n  });\n  return currentClassPartObject;\n};\nconst isThemeGetter = func => func.isThemeGetter;\nconst getPrefixedClassGroupEntries = (classGroupEntries, prefix) => {\n  if (!prefix) {\n    return classGroupEntries;\n  }\n  return classGroupEntries.map(([classGroupId, classGroup]) => {\n    const prefixedClassGroup = classGroup.map(classDefinition => {\n      if (typeof classDefinition === 'string') {\n        return prefix + classDefinition;\n      }\n      if (typeof classDefinition === 'object') {\n        return Object.fromEntries(Object.entries(classDefinition).map(([key, value]) => [prefix + key, value]));\n      }\n      return classDefinition;\n    });\n    return [classGroupId, prefixedClassGroup];\n  });\n};\n\n// LRU cache inspired from hashlru (https://github.com/dominictarr/hashlru/blob/v1.0.4/index.js) but object replaced with Map to improve performance\nconst createLruCache = maxCacheSize => {\n  if (maxCacheSize < 1) {\n    return {\n      get: () => undefined,\n      set: () => {}\n    };\n  }\n  let cacheSize = 0;\n  let cache = new Map();\n  let previousCache = new Map();\n  const update = (key, value) => {\n    cache.set(key, value);\n    cacheSize++;\n    if (cacheSize > maxCacheSize) {\n      cacheSize = 0;\n      previousCache = cache;\n      cache = new Map();\n    }\n  };\n  return {\n    get(key) {\n      let value = cache.get(key);\n      if (value !== undefined) {\n        return value;\n      }\n      if ((value = previousCache.get(key)) !== undefined) {\n        update(key, value);\n        return value;\n      }\n    },\n    set(key, value) {\n      if (cache.has(key)) {\n        cache.set(key, value);\n      } else {\n        update(key, value);\n      }\n    }\n  };\n};\nconst IMPORTANT_MODIFIER = '!';\nconst createParseClassName = config => {\n  const {\n    separator,\n    experimentalParseClassName\n  } = config;\n  const isSeparatorSingleCharacter = separator.length === 1;\n  const firstSeparatorCharacter = separator[0];\n  const separatorLength = separator.length;\n  // parseClassName inspired by https://github.com/tailwindlabs/tailwindcss/blob/v3.2.2/src/util/splitAtTopLevelOnly.js\n  const parseClassName = className => {\n    const modifiers = [];\n    let bracketDepth = 0;\n    let modifierStart = 0;\n    let postfixModifierPosition;\n    for (let index = 0; index < className.length; index++) {\n      let currentCharacter = className[index];\n      if (bracketDepth === 0) {\n        if (currentCharacter === firstSeparatorCharacter && (isSeparatorSingleCharacter || className.slice(index, index + separatorLength) === separator)) {\n          modifiers.push(className.slice(modifierStart, index));\n          modifierStart = index + separatorLength;\n          continue;\n        }\n        if (currentCharacter === '/') {\n          postfixModifierPosition = index;\n          continue;\n        }\n      }\n      if (currentCharacter === '[') {\n        bracketDepth++;\n      } else if (currentCharacter === ']') {\n        bracketDepth--;\n      }\n    }\n    const baseClassNameWithImportantModifier = modifiers.length === 0 ? className : className.substring(modifierStart);\n    const hasImportantModifier = baseClassNameWithImportantModifier.startsWith(IMPORTANT_MODIFIER);\n    const baseClassName = hasImportantModifier ? baseClassNameWithImportantModifier.substring(1) : baseClassNameWithImportantModifier;\n    const maybePostfixModifierPosition = postfixModifierPosition && postfixModifierPosition > modifierStart ? postfixModifierPosition - modifierStart : undefined;\n    return {\n      modifiers,\n      hasImportantModifier,\n      baseClassName,\n      maybePostfixModifierPosition\n    };\n  };\n  if (experimentalParseClassName) {\n    return className => experimentalParseClassName({\n      className,\n      parseClassName\n    });\n  }\n  return parseClassName;\n};\n/**\n * Sorts modifiers according to following schema:\n * - Predefined modifiers are sorted alphabetically\n * - When an arbitrary variant appears, it must be preserved which modifiers are before and after it\n */\nconst sortModifiers = modifiers => {\n  if (modifiers.length <= 1) {\n    return modifiers;\n  }\n  const sortedModifiers = [];\n  let unsortedModifiers = [];\n  modifiers.forEach(modifier => {\n    const isArbitraryVariant = modifier[0] === '[';\n    if (isArbitraryVariant) {\n      sortedModifiers.push(...unsortedModifiers.sort(), modifier);\n      unsortedModifiers = [];\n    } else {\n      unsortedModifiers.push(modifier);\n    }\n  });\n  sortedModifiers.push(...unsortedModifiers.sort());\n  return sortedModifiers;\n};\nconst createConfigUtils = config => ({\n  cache: createLruCache(config.cacheSize),\n  parseClassName: createParseClassName(config),\n  ...createClassGroupUtils(config)\n});\nconst SPLIT_CLASSES_REGEX = /\\s+/;\nconst mergeClassList = (classList, configUtils) => {\n  const {\n    parseClassName,\n    getClassGroupId,\n    getConflictingClassGroupIds\n  } = configUtils;\n  /**\n   * Set of classGroupIds in following format:\n   * `{importantModifier}{variantModifiers}{classGroupId}`\n   * @example 'float'\n   * @example 'hover:focus:bg-color'\n   * @example 'md:!pr'\n   */\n  const classGroupsInConflict = [];\n  const classNames = classList.trim().split(SPLIT_CLASSES_REGEX);\n  let result = '';\n  for (let index = classNames.length - 1; index >= 0; index -= 1) {\n    const originalClassName = classNames[index];\n    const {\n      modifiers,\n      hasImportantModifier,\n      baseClassName,\n      maybePostfixModifierPosition\n    } = parseClassName(originalClassName);\n    let hasPostfixModifier = Boolean(maybePostfixModifierPosition);\n    let classGroupId = getClassGroupId(hasPostfixModifier ? baseClassName.substring(0, maybePostfixModifierPosition) : baseClassName);\n    if (!classGroupId) {\n      if (!hasPostfixModifier) {\n        // Not a Tailwind class\n        result = originalClassName + (result.length > 0 ? ' ' + result : result);\n        continue;\n      }\n      classGroupId = getClassGroupId(baseClassName);\n      if (!classGroupId) {\n        // Not a Tailwind class\n        result = originalClassName + (result.length > 0 ? ' ' + result : result);\n        continue;\n      }\n      hasPostfixModifier = false;\n    }\n    const variantModifier = sortModifiers(modifiers).join(':');\n    const modifierId = hasImportantModifier ? variantModifier + IMPORTANT_MODIFIER : variantModifier;\n    const classId = modifierId + classGroupId;\n    if (classGroupsInConflict.includes(classId)) {\n      // Tailwind class omitted due to conflict\n      continue;\n    }\n    classGroupsInConflict.push(classId);\n    const conflictGroups = getConflictingClassGroupIds(classGroupId, hasPostfixModifier);\n    for (let i = 0; i < conflictGroups.length; ++i) {\n      const group = conflictGroups[i];\n      classGroupsInConflict.push(modifierId + group);\n    }\n    // Tailwind class not in conflict\n    result = originalClassName + (result.length > 0 ? ' ' + result : result);\n  }\n  return result;\n};\n\n/**\n * The code in this file is copied from https://github.com/lukeed/clsx and modified to suit the needs of tailwind-merge better.\n *\n * Specifically:\n * - Runtime code from https://github.com/lukeed/clsx/blob/v1.2.1/src/index.js\n * - TypeScript types from https://github.com/lukeed/clsx/blob/v1.2.1/clsx.d.ts\n *\n * Original code has MIT license: Copyright (c) Luke Edwards <luke.edwards05@gmail.com> (lukeed.com)\n */\nfunction twJoin() {\n  let index = 0;\n  let argument;\n  let resolvedValue;\n  let string = '';\n  while (index < arguments.length) {\n    if (argument = arguments[index++]) {\n      if (resolvedValue = toValue(argument)) {\n        string && (string += ' ');\n        string += resolvedValue;\n      }\n    }\n  }\n  return string;\n}\nconst toValue = mix => {\n  if (typeof mix === 'string') {\n    return mix;\n  }\n  let resolvedValue;\n  let string = '';\n  for (let k = 0; k < mix.length; k++) {\n    if (mix[k]) {\n      if (resolvedValue = toValue(mix[k])) {\n        string && (string += ' ');\n        string += resolvedValue;\n      }\n    }\n  }\n  return string;\n};\nfunction createTailwindMerge(createConfigFirst, ...createConfigRest) {\n  let configUtils;\n  let cacheGet;\n  let cacheSet;\n  let functionToCall = initTailwindMerge;\n  function initTailwindMerge(classList) {\n    const config = createConfigRest.reduce((previousConfig, createConfigCurrent) => createConfigCurrent(previousConfig), createConfigFirst());\n    configUtils = createConfigUtils(config);\n    cacheGet = configUtils.cache.get;\n    cacheSet = configUtils.cache.set;\n    functionToCall = tailwindMerge;\n    return tailwindMerge(classList);\n  }\n  function tailwindMerge(classList) {\n    const cachedResult = cacheGet(classList);\n    if (cachedResult) {\n      return cachedResult;\n    }\n    const result = mergeClassList(classList, configUtils);\n    cacheSet(classList, result);\n    return result;\n  }\n  return function callTailwindMerge() {\n    return functionToCall(twJoin.apply(null, arguments));\n  };\n}\nconst fromTheme = key => {\n  const themeGetter = theme => theme[key] || [];\n  themeGetter.isThemeGetter = true;\n  return themeGetter;\n};\nconst arbitraryValueRegex = /^\\[(?:([a-z-]+):)?(.+)\\]$/i;\nconst fractionRegex = /^\\d+\\/\\d+$/;\nconst stringLengths = /*#__PURE__*/new Set(['px', 'full', 'screen']);\nconst tshirtUnitRegex = /^(\\d+(\\.\\d+)?)?(xs|sm|md|lg|xl)$/;\nconst lengthUnitRegex = /\\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\\b(calc|min|max|clamp)\\(.+\\)|^0$/;\nconst colorFunctionRegex = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\\(.+\\)$/;\n// Shadow always begins with x and y offset separated by underscore optionally prepended by inset\nconst shadowRegex = /^(inset_)?-?((\\d+)?\\.?(\\d+)[a-z]+|0)_-?((\\d+)?\\.?(\\d+)[a-z]+|0)/;\nconst imageRegex = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\\(.+\\)$/;\nconst isLength = value => isNumber(value) || stringLengths.has(value) || fractionRegex.test(value);\nconst isArbitraryLength = value => getIsArbitraryValue(value, 'length', isLengthOnly);\nconst isNumber = value => Boolean(value) && !Number.isNaN(Number(value));\nconst isArbitraryNumber = value => getIsArbitraryValue(value, 'number', isNumber);\nconst isInteger = value => Boolean(value) && Number.isInteger(Number(value));\nconst isPercent = value => value.endsWith('%') && isNumber(value.slice(0, -1));\nconst isArbitraryValue = value => arbitraryValueRegex.test(value);\nconst isTshirtSize = value => tshirtUnitRegex.test(value);\nconst sizeLabels = /*#__PURE__*/new Set(['length', 'size', 'percentage']);\nconst isArbitrarySize = value => getIsArbitraryValue(value, sizeLabels, isNever);\nconst isArbitraryPosition = value => getIsArbitraryValue(value, 'position', isNever);\nconst imageLabels = /*#__PURE__*/new Set(['image', 'url']);\nconst isArbitraryImage = value => getIsArbitraryValue(value, imageLabels, isImage);\nconst isArbitraryShadow = value => getIsArbitraryValue(value, '', isShadow);\nconst isAny = () => true;\nconst getIsArbitraryValue = (value, label, testValue) => {\n  const result = arbitraryValueRegex.exec(value);\n  if (result) {\n    if (result[1]) {\n      return typeof label === 'string' ? result[1] === label : label.has(result[1]);\n    }\n    return testValue(result[2]);\n  }\n  return false;\n};\nconst isLengthOnly = value =>\n// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.\n// For example, `hsl(0 0% 0%)` would be classified as a length without this check.\n// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.\nlengthUnitRegex.test(value) && !colorFunctionRegex.test(value);\nconst isNever = () => false;\nconst isShadow = value => shadowRegex.test(value);\nconst isImage = value => imageRegex.test(value);\nconst validators = /*#__PURE__*/Object.defineProperty({\n  __proto__: null,\n  isAny,\n  isArbitraryImage,\n  isArbitraryLength,\n  isArbitraryNumber,\n  isArbitraryPosition,\n  isArbitraryShadow,\n  isArbitrarySize,\n  isArbitraryValue,\n  isInteger,\n  isLength,\n  isNumber,\n  isPercent,\n  isTshirtSize\n}, Symbol.toStringTag, {\n  value: 'Module'\n});\nconst getDefaultConfig = () => {\n  const colors = fromTheme('colors');\n  const spacing = fromTheme('spacing');\n  const blur = fromTheme('blur');\n  const brightness = fromTheme('brightness');\n  const borderColor = fromTheme('borderColor');\n  const borderRadius = fromTheme('borderRadius');\n  const borderSpacing = fromTheme('borderSpacing');\n  const borderWidth = fromTheme('borderWidth');\n  const contrast = fromTheme('contrast');\n  const grayscale = fromTheme('grayscale');\n  const hueRotate = fromTheme('hueRotate');\n  const invert = fromTheme('invert');\n  const gap = fromTheme('gap');\n  const gradientColorStops = fromTheme('gradientColorStops');\n  const gradientColorStopPositions = fromTheme('gradientColorStopPositions');\n  const inset = fromTheme('inset');\n  const margin = fromTheme('margin');\n  const opacity = fromTheme('opacity');\n  const padding = fromTheme('padding');\n  const saturate = fromTheme('saturate');\n  const scale = fromTheme('scale');\n  const sepia = fromTheme('sepia');\n  const skew = fromTheme('skew');\n  const space = fromTheme('space');\n  const translate = fromTheme('translate');\n  const getOverscroll = () => ['auto', 'contain', 'none'];\n  const getOverflow = () => ['auto', 'hidden', 'clip', 'visible', 'scroll'];\n  const getSpacingWithAutoAndArbitrary = () => ['auto', isArbitraryValue, spacing];\n  const getSpacingWithArbitrary = () => [isArbitraryValue, spacing];\n  const getLengthWithEmptyAndArbitrary = () => ['', isLength, isArbitraryLength];\n  const getNumberWithAutoAndArbitrary = () => ['auto', isNumber, isArbitraryValue];\n  const getPositions = () => ['bottom', 'center', 'left', 'left-bottom', 'left-top', 'right', 'right-bottom', 'right-top', 'top'];\n  const getLineStyles = () => ['solid', 'dashed', 'dotted', 'double', 'none'];\n  const getBlendModes = () => ['normal', 'multiply', 'screen', 'overlay', 'darken', 'lighten', 'color-dodge', 'color-burn', 'hard-light', 'soft-light', 'difference', 'exclusion', 'hue', 'saturation', 'color', 'luminosity'];\n  const getAlign = () => ['start', 'end', 'center', 'between', 'around', 'evenly', 'stretch'];\n  const getZeroAndEmpty = () => ['', '0', isArbitraryValue];\n  const getBreaks = () => ['auto', 'avoid', 'all', 'avoid-page', 'page', 'left', 'right', 'column'];\n  const getNumberAndArbitrary = () => [isNumber, isArbitraryValue];\n  return {\n    cacheSize: 500,\n    separator: ':',\n    theme: {\n      colors: [isAny],\n      spacing: [isLength, isArbitraryLength],\n      blur: ['none', '', isTshirtSize, isArbitraryValue],\n      brightness: getNumberAndArbitrary(),\n      borderColor: [colors],\n      borderRadius: ['none', '', 'full', isTshirtSize, isArbitraryValue],\n      borderSpacing: getSpacingWithArbitrary(),\n      borderWidth: getLengthWithEmptyAndArbitrary(),\n      contrast: getNumberAndArbitrary(),\n      grayscale: getZeroAndEmpty(),\n      hueRotate: getNumberAndArbitrary(),\n      invert: getZeroAndEmpty(),\n      gap: getSpacingWithArbitrary(),\n      gradientColorStops: [colors],\n      gradientColorStopPositions: [isPercent, isArbitraryLength],\n      inset: getSpacingWithAutoAndArbitrary(),\n      margin: getSpacingWithAutoAndArbitrary(),\n      opacity: getNumberAndArbitrary(),\n      padding: getSpacingWithArbitrary(),\n      saturate: getNumberAndArbitrary(),\n      scale: getNumberAndArbitrary(),\n      sepia: getZeroAndEmpty(),\n      skew: getNumberAndArbitrary(),\n      space: getSpacingWithArbitrary(),\n      translate: getSpacingWithArbitrary()\n    },\n    classGroups: {\n      // Layout\n      /**\n       * Aspect Ratio\n       * @see https://tailwindcss.com/docs/aspect-ratio\n       */\n      aspect: [{\n        aspect: ['auto', 'square', 'video', isArbitraryValue]\n      }],\n      /**\n       * Container\n       * @see https://tailwindcss.com/docs/container\n       */\n      container: ['container'],\n      /**\n       * Columns\n       * @see https://tailwindcss.com/docs/columns\n       */\n      columns: [{\n        columns: [isTshirtSize]\n      }],\n      /**\n       * Break After\n       * @see https://tailwindcss.com/docs/break-after\n       */\n      'break-after': [{\n        'break-after': getBreaks()\n      }],\n      /**\n       * Break Before\n       * @see https://tailwindcss.com/docs/break-before\n       */\n      'break-before': [{\n        'break-before': getBreaks()\n      }],\n      /**\n       * Break Inside\n       * @see https://tailwindcss.com/docs/break-inside\n       */\n      'break-inside': [{\n        'break-inside': ['auto', 'avoid', 'avoid-page', 'avoid-column']\n      }],\n      /**\n       * Box Decoration Break\n       * @see https://tailwindcss.com/docs/box-decoration-break\n       */\n      'box-decoration': [{\n        'box-decoration': ['slice', 'clone']\n      }],\n      /**\n       * Box Sizing\n       * @see https://tailwindcss.com/docs/box-sizing\n       */\n      box: [{\n        box: ['border', 'content']\n      }],\n      /**\n       * Display\n       * @see https://tailwindcss.com/docs/display\n       */\n      display: ['block', 'inline-block', 'inline', 'flex', 'inline-flex', 'table', 'inline-table', 'table-caption', 'table-cell', 'table-column', 'table-column-group', 'table-footer-group', 'table-header-group', 'table-row-group', 'table-row', 'flow-root', 'grid', 'inline-grid', 'contents', 'list-item', 'hidden'],\n      /**\n       * Floats\n       * @see https://tailwindcss.com/docs/float\n       */\n      float: [{\n        float: ['right', 'left', 'none', 'start', 'end']\n      }],\n      /**\n       * Clear\n       * @see https://tailwindcss.com/docs/clear\n       */\n      clear: [{\n        clear: ['left', 'right', 'both', 'none', 'start', 'end']\n      }],\n      /**\n       * Isolation\n       * @see https://tailwindcss.com/docs/isolation\n       */\n      isolation: ['isolate', 'isolation-auto'],\n      /**\n       * Object Fit\n       * @see https://tailwindcss.com/docs/object-fit\n       */\n      'object-fit': [{\n        object: ['contain', 'cover', 'fill', 'none', 'scale-down']\n      }],\n      /**\n       * Object Position\n       * @see https://tailwindcss.com/docs/object-position\n       */\n      'object-position': [{\n        object: [...getPositions(), isArbitraryValue]\n      }],\n      /**\n       * Overflow\n       * @see https://tailwindcss.com/docs/overflow\n       */\n      overflow: [{\n        overflow: getOverflow()\n      }],\n      /**\n       * Overflow X\n       * @see https://tailwindcss.com/docs/overflow\n       */\n      'overflow-x': [{\n        'overflow-x': getOverflow()\n      }],\n      /**\n       * Overflow Y\n       * @see https://tailwindcss.com/docs/overflow\n       */\n      'overflow-y': [{\n        'overflow-y': getOverflow()\n      }],\n      /**\n       * Overscroll Behavior\n       * @see https://tailwindcss.com/docs/overscroll-behavior\n       */\n      overscroll: [{\n        overscroll: getOverscroll()\n      }],\n      /**\n       * Overscroll Behavior X\n       * @see https://tailwindcss.com/docs/overscroll-behavior\n       */\n      'overscroll-x': [{\n        'overscroll-x': getOverscroll()\n      }],\n      /**\n       * Overscroll Behavior Y\n       * @see https://tailwindcss.com/docs/overscroll-behavior\n       */\n      'overscroll-y': [{\n        'overscroll-y': getOverscroll()\n      }],\n      /**\n       * Position\n       * @see https://tailwindcss.com/docs/position\n       */\n      position: ['static', 'fixed', 'absolute', 'relative', 'sticky'],\n      /**\n       * Top / Right / Bottom / Left\n       * @see https://tailwindcss.com/docs/top-right-bottom-left\n       */\n      inset: [{\n        inset: [inset]\n      }],\n      /**\n       * Right / Left\n       * @see https://tailwindcss.com/docs/top-right-bottom-left\n       */\n      'inset-x': [{\n        'inset-x': [inset]\n      }],\n      /**\n       * Top / Bottom\n       * @see https://tailwindcss.com/docs/top-right-bottom-left\n       */\n      'inset-y': [{\n        'inset-y': [inset]\n      }],\n      /**\n       * Start\n       * @see https://tailwindcss.com/docs/top-right-bottom-left\n       */\n      start: [{\n        start: [inset]\n      }],\n      /**\n       * End\n       * @see https://tailwindcss.com/docs/top-right-bottom-left\n       */\n      end: [{\n        end: [inset]\n      }],\n      /**\n       * Top\n       * @see https://tailwindcss.com/docs/top-right-bottom-left\n       */\n      top: [{\n        top: [inset]\n      }],\n      /**\n       * Right\n       * @see https://tailwindcss.com/docs/top-right-bottom-left\n       */\n      right: [{\n        right: [inset]\n      }],\n      /**\n       * Bottom\n       * @see https://tailwindcss.com/docs/top-right-bottom-left\n       */\n      bottom: [{\n        bottom: [inset]\n      }],\n      /**\n       * Left\n       * @see https://tailwindcss.com/docs/top-right-bottom-left\n       */\n      left: [{\n        left: [inset]\n      }],\n      /**\n       * Visibility\n       * @see https://tailwindcss.com/docs/visibility\n       */\n      visibility: ['visible', 'invisible', 'collapse'],\n      /**\n       * Z-Index\n       * @see https://tailwindcss.com/docs/z-index\n       */\n      z: [{\n        z: ['auto', isInteger, isArbitraryValue]\n      }],\n      // Flexbox and Grid\n      /**\n       * Flex Basis\n       * @see https://tailwindcss.com/docs/flex-basis\n       */\n      basis: [{\n        basis: getSpacingWithAutoAndArbitrary()\n      }],\n      /**\n       * Flex Direction\n       * @see https://tailwindcss.com/docs/flex-direction\n       */\n      'flex-direction': [{\n        flex: ['row', 'row-reverse', 'col', 'col-reverse']\n      }],\n      /**\n       * Flex Wrap\n       * @see https://tailwindcss.com/docs/flex-wrap\n       */\n      'flex-wrap': [{\n        flex: ['wrap', 'wrap-reverse', 'nowrap']\n      }],\n      /**\n       * Flex\n       * @see https://tailwindcss.com/docs/flex\n       */\n      flex: [{\n        flex: ['1', 'auto', 'initial', 'none', isArbitraryValue]\n      }],\n      /**\n       * Flex Grow\n       * @see https://tailwindcss.com/docs/flex-grow\n       */\n      grow: [{\n        grow: getZeroAndEmpty()\n      }],\n      /**\n       * Flex Shrink\n       * @see https://tailwindcss.com/docs/flex-shrink\n       */\n      shrink: [{\n        shrink: getZeroAndEmpty()\n      }],\n      /**\n       * Order\n       * @see https://tailwindcss.com/docs/order\n       */\n      order: [{\n        order: ['first', 'last', 'none', isInteger, isArbitraryValue]\n      }],\n      /**\n       * Grid Template Columns\n       * @see https://tailwindcss.com/docs/grid-template-columns\n       */\n      'grid-cols': [{\n        'grid-cols': [isAny]\n      }],\n      /**\n       * Grid Column Start / End\n       * @see https://tailwindcss.com/docs/grid-column\n       */\n      'col-start-end': [{\n        col: ['auto', {\n          span: ['full', isInteger, isArbitraryValue]\n        }, isArbitraryValue]\n      }],\n      /**\n       * Grid Column Start\n       * @see https://tailwindcss.com/docs/grid-column\n       */\n      'col-start': [{\n        'col-start': getNumberWithAutoAndArbitrary()\n      }],\n      /**\n       * Grid Column End\n       * @see https://tailwindcss.com/docs/grid-column\n       */\n      'col-end': [{\n        'col-end': getNumberWithAutoAndArbitrary()\n      }],\n      /**\n       * Grid Template Rows\n       * @see https://tailwindcss.com/docs/grid-template-rows\n       */\n      'grid-rows': [{\n        'grid-rows': [isAny]\n      }],\n      /**\n       * Grid Row Start / End\n       * @see https://tailwindcss.com/docs/grid-row\n       */\n      'row-start-end': [{\n        row: ['auto', {\n          span: [isInteger, isArbitraryValue]\n        }, isArbitraryValue]\n      }],\n      /**\n       * Grid Row Start\n       * @see https://tailwindcss.com/docs/grid-row\n       */\n      'row-start': [{\n        'row-start': getNumberWithAutoAndArbitrary()\n      }],\n      /**\n       * Grid Row End\n       * @see https://tailwindcss.com/docs/grid-row\n       */\n      'row-end': [{\n        'row-end': getNumberWithAutoAndArbitrary()\n      }],\n      /**\n       * Grid Auto Flow\n       * @see https://tailwindcss.com/docs/grid-auto-flow\n       */\n      'grid-flow': [{\n        'grid-flow': ['row', 'col', 'dense', 'row-dense', 'col-dense']\n      }],\n      /**\n       * Grid Auto Columns\n       * @see https://tailwindcss.com/docs/grid-auto-columns\n       */\n      'auto-cols': [{\n        'auto-cols': ['auto', 'min', 'max', 'fr', isArbitraryValue]\n      }],\n      /**\n       * Grid Auto Rows\n       * @see https://tailwindcss.com/docs/grid-auto-rows\n       */\n      'auto-rows': [{\n        'auto-rows': ['auto', 'min', 'max', 'fr', isArbitraryValue]\n      }],\n      /**\n       * Gap\n       * @see https://tailwindcss.com/docs/gap\n       */\n      gap: [{\n        gap: [gap]\n      }],\n      /**\n       * Gap X\n       * @see https://tailwindcss.com/docs/gap\n       */\n      'gap-x': [{\n        'gap-x': [gap]\n      }],\n      /**\n       * Gap Y\n       * @see https://tailwindcss.com/docs/gap\n       */\n      'gap-y': [{\n        'gap-y': [gap]\n      }],\n      /**\n       * Justify Content\n       * @see https://tailwindcss.com/docs/justify-content\n       */\n      'justify-content': [{\n        justify: ['normal', ...getAlign()]\n      }],\n      /**\n       * Justify Items\n       * @see https://tailwindcss.com/docs/justify-items\n       */\n      'justify-items': [{\n        'justify-items': ['start', 'end', 'center', 'stretch']\n      }],\n      /**\n       * Justify Self\n       * @see https://tailwindcss.com/docs/justify-self\n       */\n      'justify-self': [{\n        'justify-self': ['auto', 'start', 'end', 'center', 'stretch']\n      }],\n      /**\n       * Align Content\n       * @see https://tailwindcss.com/docs/align-content\n       */\n      'align-content': [{\n        content: ['normal', ...getAlign(), 'baseline']\n      }],\n      /**\n       * Align Items\n       * @see https://tailwindcss.com/docs/align-items\n       */\n      'align-items': [{\n        items: ['start', 'end', 'center', 'baseline', 'stretch']\n      }],\n      /**\n       * Align Self\n       * @see https://tailwindcss.com/docs/align-self\n       */\n      'align-self': [{\n        self: ['auto', 'start', 'end', 'center', 'stretch', 'baseline']\n      }],\n      /**\n       * Place Content\n       * @see https://tailwindcss.com/docs/place-content\n       */\n      'place-content': [{\n        'place-content': [...getAlign(), 'baseline']\n      }],\n      /**\n       * Place Items\n       * @see https://tailwindcss.com/docs/place-items\n       */\n      'place-items': [{\n        'place-items': ['start', 'end', 'center', 'baseline', 'stretch']\n      }],\n      /**\n       * Place Self\n       * @see https://tailwindcss.com/docs/place-self\n       */\n      'place-self': [{\n        'place-self': ['auto', 'start', 'end', 'center', 'stretch']\n      }],\n      // Spacing\n      /**\n       * Padding\n       * @see https://tailwindcss.com/docs/padding\n       */\n      p: [{\n        p: [padding]\n      }],\n      /**\n       * Padding X\n       * @see https://tailwindcss.com/docs/padding\n       */\n      px: [{\n        px: [padding]\n      }],\n      /**\n       * Padding Y\n       * @see https://tailwindcss.com/docs/padding\n       */\n      py: [{\n        py: [padding]\n      }],\n      /**\n       * Padding Start\n       * @see https://tailwindcss.com/docs/padding\n       */\n      ps: [{\n        ps: [padding]\n      }],\n      /**\n       * Padding End\n       * @see https://tailwindcss.com/docs/padding\n       */\n      pe: [{\n        pe: [padding]\n      }],\n      /**\n       * Padding Top\n       * @see https://tailwindcss.com/docs/padding\n       */\n      pt: [{\n        pt: [padding]\n      }],\n      /**\n       * Padding Right\n       * @see https://tailwindcss.com/docs/padding\n       */\n      pr: [{\n        pr: [padding]\n      }],\n      /**\n       * Padding Bottom\n       * @see https://tailwindcss.com/docs/padding\n       */\n      pb: [{\n        pb: [padding]\n      }],\n      /**\n       * Padding Left\n       * @see https://tailwindcss.com/docs/padding\n       */\n      pl: [{\n        pl: [padding]\n      }],\n      /**\n       * Margin\n       * @see https://tailwindcss.com/docs/margin\n       */\n      m: [{\n        m: [margin]\n      }],\n      /**\n       * Margin X\n       * @see https://tailwindcss.com/docs/margin\n       */\n      mx: [{\n        mx: [margin]\n      }],\n      /**\n       * Margin Y\n       * @see https://tailwindcss.com/docs/margin\n       */\n      my: [{\n        my: [margin]\n      }],\n      /**\n       * Margin Start\n       * @see https://tailwindcss.com/docs/margin\n       */\n      ms: [{\n        ms: [margin]\n      }],\n      /**\n       * Margin End\n       * @see https://tailwindcss.com/docs/margin\n       */\n      me: [{\n        me: [margin]\n      }],\n      /**\n       * Margin Top\n       * @see https://tailwindcss.com/docs/margin\n       */\n      mt: [{\n        mt: [margin]\n      }],\n      /**\n       * Margin Right\n       * @see https://tailwindcss.com/docs/margin\n       */\n      mr: [{\n        mr: [margin]\n      }],\n      /**\n       * Margin Bottom\n       * @see https://tailwindcss.com/docs/margin\n       */\n      mb: [{\n        mb: [margin]\n      }],\n      /**\n       * Margin Left\n       * @see https://tailwindcss.com/docs/margin\n       */\n      ml: [{\n        ml: [margin]\n      }],\n      /**\n       * Space Between X\n       * @see https://tailwindcss.com/docs/space\n       */\n      'space-x': [{\n        'space-x': [space]\n      }],\n      /**\n       * Space Between X Reverse\n       * @see https://tailwindcss.com/docs/space\n       */\n      'space-x-reverse': ['space-x-reverse'],\n      /**\n       * Space Between Y\n       * @see https://tailwindcss.com/docs/space\n       */\n      'space-y': [{\n        'space-y': [space]\n      }],\n      /**\n       * Space Between Y Reverse\n       * @see https://tailwindcss.com/docs/space\n       */\n      'space-y-reverse': ['space-y-reverse'],\n      // Sizing\n      /**\n       * Width\n       * @see https://tailwindcss.com/docs/width\n       */\n      w: [{\n        w: ['auto', 'min', 'max', 'fit', 'svw', 'lvw', 'dvw', isArbitraryValue, spacing]\n      }],\n      /**\n       * Min-Width\n       * @see https://tailwindcss.com/docs/min-width\n       */\n      'min-w': [{\n        'min-w': [isArbitraryValue, spacing, 'min', 'max', 'fit']\n      }],\n      /**\n       * Max-Width\n       * @see https://tailwindcss.com/docs/max-width\n       */\n      'max-w': [{\n        'max-w': [isArbitraryValue, spacing, 'none', 'full', 'min', 'max', 'fit', 'prose', {\n          screen: [isTshirtSize]\n        }, isTshirtSize]\n      }],\n      /**\n       * Height\n       * @see https://tailwindcss.com/docs/height\n       */\n      h: [{\n        h: [isArbitraryValue, spacing, 'auto', 'min', 'max', 'fit', 'svh', 'lvh', 'dvh']\n      }],\n      /**\n       * Min-Height\n       * @see https://tailwindcss.com/docs/min-height\n       */\n      'min-h': [{\n        'min-h': [isArbitraryValue, spacing, 'min', 'max', 'fit', 'svh', 'lvh', 'dvh']\n      }],\n      /**\n       * Max-Height\n       * @see https://tailwindcss.com/docs/max-height\n       */\n      'max-h': [{\n        'max-h': [isArbitraryValue, spacing, 'min', 'max', 'fit', 'svh', 'lvh', 'dvh']\n      }],\n      /**\n       * Size\n       * @see https://tailwindcss.com/docs/size\n       */\n      size: [{\n        size: [isArbitraryValue, spacing, 'auto', 'min', 'max', 'fit']\n      }],\n      // Typography\n      /**\n       * Font Size\n       * @see https://tailwindcss.com/docs/font-size\n       */\n      'font-size': [{\n        text: ['base', isTshirtSize, isArbitraryLength]\n      }],\n      /**\n       * Font Smoothing\n       * @see https://tailwindcss.com/docs/font-smoothing\n       */\n      'font-smoothing': ['antialiased', 'subpixel-antialiased'],\n      /**\n       * Font Style\n       * @see https://tailwindcss.com/docs/font-style\n       */\n      'font-style': ['italic', 'not-italic'],\n      /**\n       * Font Weight\n       * @see https://tailwindcss.com/docs/font-weight\n       */\n      'font-weight': [{\n        font: ['thin', 'extralight', 'light', 'normal', 'medium', 'semibold', 'bold', 'extrabold', 'black', isArbitraryNumber]\n      }],\n      /**\n       * Font Family\n       * @see https://tailwindcss.com/docs/font-family\n       */\n      'font-family': [{\n        font: [isAny]\n      }],\n      /**\n       * Font Variant Numeric\n       * @see https://tailwindcss.com/docs/font-variant-numeric\n       */\n      'fvn-normal': ['normal-nums'],\n      /**\n       * Font Variant Numeric\n       * @see https://tailwindcss.com/docs/font-variant-numeric\n       */\n      'fvn-ordinal': ['ordinal'],\n      /**\n       * Font Variant Numeric\n       * @see https://tailwindcss.com/docs/font-variant-numeric\n       */\n      'fvn-slashed-zero': ['slashed-zero'],\n      /**\n       * Font Variant Numeric\n       * @see https://tailwindcss.com/docs/font-variant-numeric\n       */\n      'fvn-figure': ['lining-nums', 'oldstyle-nums'],\n      /**\n       * Font Variant Numeric\n       * @see https://tailwindcss.com/docs/font-variant-numeric\n       */\n      'fvn-spacing': ['proportional-nums', 'tabular-nums'],\n      /**\n       * Font Variant Numeric\n       * @see https://tailwindcss.com/docs/font-variant-numeric\n       */\n      'fvn-fraction': ['diagonal-fractions', 'stacked-fractions'],\n      /**\n       * Letter Spacing\n       * @see https://tailwindcss.com/docs/letter-spacing\n       */\n      tracking: [{\n        tracking: ['tighter', 'tight', 'normal', 'wide', 'wider', 'widest', isArbitraryValue]\n      }],\n      /**\n       * Line Clamp\n       * @see https://tailwindcss.com/docs/line-clamp\n       */\n      'line-clamp': [{\n        'line-clamp': ['none', isNumber, isArbitraryNumber]\n      }],\n      /**\n       * Line Height\n       * @see https://tailwindcss.com/docs/line-height\n       */\n      leading: [{\n        leading: ['none', 'tight', 'snug', 'normal', 'relaxed', 'loose', isLength, isArbitraryValue]\n      }],\n      /**\n       * List Style Image\n       * @see https://tailwindcss.com/docs/list-style-image\n       */\n      'list-image': [{\n        'list-image': ['none', isArbitraryValue]\n      }],\n      /**\n       * List Style Type\n       * @see https://tailwindcss.com/docs/list-style-type\n       */\n      'list-style-type': [{\n        list: ['none', 'disc', 'decimal', isArbitraryValue]\n      }],\n      /**\n       * List Style Position\n       * @see https://tailwindcss.com/docs/list-style-position\n       */\n      'list-style-position': [{\n        list: ['inside', 'outside']\n      }],\n      /**\n       * Placeholder Color\n       * @deprecated since Tailwind CSS v3.0.0\n       * @see https://tailwindcss.com/docs/placeholder-color\n       */\n      'placeholder-color': [{\n        placeholder: [colors]\n      }],\n      /**\n       * Placeholder Opacity\n       * @see https://tailwindcss.com/docs/placeholder-opacity\n       */\n      'placeholder-opacity': [{\n        'placeholder-opacity': [opacity]\n      }],\n      /**\n       * Text Alignment\n       * @see https://tailwindcss.com/docs/text-align\n       */\n      'text-alignment': [{\n        text: ['left', 'center', 'right', 'justify', 'start', 'end']\n      }],\n      /**\n       * Text Color\n       * @see https://tailwindcss.com/docs/text-color\n       */\n      'text-color': [{\n        text: [colors]\n      }],\n      /**\n       * Text Opacity\n       * @see https://tailwindcss.com/docs/text-opacity\n       */\n      'text-opacity': [{\n        'text-opacity': [opacity]\n      }],\n      /**\n       * Text Decoration\n       * @see https://tailwindcss.com/docs/text-decoration\n       */\n      'text-decoration': ['underline', 'overline', 'line-through', 'no-underline'],\n      /**\n       * Text Decoration Style\n       * @see https://tailwindcss.com/docs/text-decoration-style\n       */\n      'text-decoration-style': [{\n        decoration: [...getLineStyles(), 'wavy']\n      }],\n      /**\n       * Text Decoration Thickness\n       * @see https://tailwindcss.com/docs/text-decoration-thickness\n       */\n      'text-decoration-thickness': [{\n        decoration: ['auto', 'from-font', isLength, isArbitraryLength]\n      }],\n      /**\n       * Text Underline Offset\n       * @see https://tailwindcss.com/docs/text-underline-offset\n       */\n      'underline-offset': [{\n        'underline-offset': ['auto', isLength, isArbitraryValue]\n      }],\n      /**\n       * Text Decoration Color\n       * @see https://tailwindcss.com/docs/text-decoration-color\n       */\n      'text-decoration-color': [{\n        decoration: [colors]\n      }],\n      /**\n       * Text Transform\n       * @see https://tailwindcss.com/docs/text-transform\n       */\n      'text-transform': ['uppercase', 'lowercase', 'capitalize', 'normal-case'],\n      /**\n       * Text Overflow\n       * @see https://tailwindcss.com/docs/text-overflow\n       */\n      'text-overflow': ['truncate', 'text-ellipsis', 'text-clip'],\n      /**\n       * Text Wrap\n       * @see https://tailwindcss.com/docs/text-wrap\n       */\n      'text-wrap': [{\n        text: ['wrap', 'nowrap', 'balance', 'pretty']\n      }],\n      /**\n       * Text Indent\n       * @see https://tailwindcss.com/docs/text-indent\n       */\n      indent: [{\n        indent: getSpacingWithArbitrary()\n      }],\n      /**\n       * Vertical Alignment\n       * @see https://tailwindcss.com/docs/vertical-align\n       */\n      'vertical-align': [{\n        align: ['baseline', 'top', 'middle', 'bottom', 'text-top', 'text-bottom', 'sub', 'super', isArbitraryValue]\n      }],\n      /**\n       * Whitespace\n       * @see https://tailwindcss.com/docs/whitespace\n       */\n      whitespace: [{\n        whitespace: ['normal', 'nowrap', 'pre', 'pre-line', 'pre-wrap', 'break-spaces']\n      }],\n      /**\n       * Word Break\n       * @see https://tailwindcss.com/docs/word-break\n       */\n      break: [{\n        break: ['normal', 'words', 'all', 'keep']\n      }],\n      /**\n       * Hyphens\n       * @see https://tailwindcss.com/docs/hyphens\n       */\n      hyphens: [{\n        hyphens: ['none', 'manual', 'auto']\n      }],\n      /**\n       * Content\n       * @see https://tailwindcss.com/docs/content\n       */\n      content: [{\n        content: ['none', isArbitraryValue]\n      }],\n      // Backgrounds\n      /**\n       * Background Attachment\n       * @see https://tailwindcss.com/docs/background-attachment\n       */\n      'bg-attachment': [{\n        bg: ['fixed', 'local', 'scroll']\n      }],\n      /**\n       * Background Clip\n       * @see https://tailwindcss.com/docs/background-clip\n       */\n      'bg-clip': [{\n        'bg-clip': ['border', 'padding', 'content', 'text']\n      }],\n      /**\n       * Background Opacity\n       * @deprecated since Tailwind CSS v3.0.0\n       * @see https://tailwindcss.com/docs/background-opacity\n       */\n      'bg-opacity': [{\n        'bg-opacity': [opacity]\n      }],\n      /**\n       * Background Origin\n       * @see https://tailwindcss.com/docs/background-origin\n       */\n      'bg-origin': [{\n        'bg-origin': ['border', 'padding', 'content']\n      }],\n      /**\n       * Background Position\n       * @see https://tailwindcss.com/docs/background-position\n       */\n      'bg-position': [{\n        bg: [...getPositions(), isArbitraryPosition]\n      }],\n      /**\n       * Background Repeat\n       * @see https://tailwindcss.com/docs/background-repeat\n       */\n      'bg-repeat': [{\n        bg: ['no-repeat', {\n          repeat: ['', 'x', 'y', 'round', 'space']\n        }]\n      }],\n      /**\n       * Background Size\n       * @see https://tailwindcss.com/docs/background-size\n       */\n      'bg-size': [{\n        bg: ['auto', 'cover', 'contain', isArbitrarySize]\n      }],\n      /**\n       * Background Image\n       * @see https://tailwindcss.com/docs/background-image\n       */\n      'bg-image': [{\n        bg: ['none', {\n          'gradient-to': ['t', 'tr', 'r', 'br', 'b', 'bl', 'l', 'tl']\n        }, isArbitraryImage]\n      }],\n      /**\n       * Background Color\n       * @see https://tailwindcss.com/docs/background-color\n       */\n      'bg-color': [{\n        bg: [colors]\n      }],\n      /**\n       * Gradient Color Stops From Position\n       * @see https://tailwindcss.com/docs/gradient-color-stops\n       */\n      'gradient-from-pos': [{\n        from: [gradientColorStopPositions]\n      }],\n      /**\n       * Gradient Color Stops Via Position\n       * @see https://tailwindcss.com/docs/gradient-color-stops\n       */\n      'gradient-via-pos': [{\n        via: [gradientColorStopPositions]\n      }],\n      /**\n       * Gradient Color Stops To Position\n       * @see https://tailwindcss.com/docs/gradient-color-stops\n       */\n      'gradient-to-pos': [{\n        to: [gradientColorStopPositions]\n      }],\n      /**\n       * Gradient Color Stops From\n       * @see https://tailwindcss.com/docs/gradient-color-stops\n       */\n      'gradient-from': [{\n        from: [gradientColorStops]\n      }],\n      /**\n       * Gradient Color Stops Via\n       * @see https://tailwindcss.com/docs/gradient-color-stops\n       */\n      'gradient-via': [{\n        via: [gradientColorStops]\n      }],\n      /**\n       * Gradient Color Stops To\n       * @see https://tailwindcss.com/docs/gradient-color-stops\n       */\n      'gradient-to': [{\n        to: [gradientColorStops]\n      }],\n      // Borders\n      /**\n       * Border Radius\n       * @see https://tailwindcss.com/docs/border-radius\n       */\n      rounded: [{\n        rounded: [borderRadius]\n      }],\n      /**\n       * Border Radius Start\n       * @see https://tailwindcss.com/docs/border-radius\n       */\n      'rounded-s': [{\n        'rounded-s': [borderRadius]\n      }],\n      /**\n       * Border Radius End\n       * @see https://tailwindcss.com/docs/border-radius\n       */\n      'rounded-e': [{\n        'rounded-e': [borderRadius]\n      }],\n      /**\n       * Border Radius Top\n       * @see https://tailwindcss.com/docs/border-radius\n       */\n      'rounded-t': [{\n        'rounded-t': [borderRadius]\n      }],\n      /**\n       * Border Radius Right\n       * @see https://tailwindcss.com/docs/border-radius\n       */\n      'rounded-r': [{\n        'rounded-r': [borderRadius]\n      }],\n      /**\n       * Border Radius Bottom\n       * @see https://tailwindcss.com/docs/border-radius\n       */\n      'rounded-b': [{\n        'rounded-b': [borderRadius]\n      }],\n      /**\n       * Border Radius Left\n       * @see https://tailwindcss.com/docs/border-radius\n       */\n      'rounded-l': [{\n        'rounded-l': [borderRadius]\n      }],\n      /**\n       * Border Radius Start Start\n       * @see https://tailwindcss.com/docs/border-radius\n       */\n      'rounded-ss': [{\n        'rounded-ss': [borderRadius]\n      }],\n      /**\n       * Border Radius Start End\n       * @see https://tailwindcss.com/docs/border-radius\n       */\n      'rounded-se': [{\n        'rounded-se': [borderRadius]\n      }],\n      /**\n       * Border Radius End End\n       * @see https://tailwindcss.com/docs/border-radius\n       */\n      'rounded-ee': [{\n        'rounded-ee': [borderRadius]\n      }],\n      /**\n       * Border Radius End Start\n       * @see https://tailwindcss.com/docs/border-radius\n       */\n      'rounded-es': [{\n        'rounded-es': [borderRadius]\n      }],\n      /**\n       * Border Radius Top Left\n       * @see https://tailwindcss.com/docs/border-radius\n       */\n      'rounded-tl': [{\n        'rounded-tl': [borderRadius]\n      }],\n      /**\n       * Border Radius Top Right\n       * @see https://tailwindcss.com/docs/border-radius\n       */\n      'rounded-tr': [{\n        'rounded-tr': [borderRadius]\n      }],\n      /**\n       * Border Radius Bottom Right\n       * @see https://tailwindcss.com/docs/border-radius\n       */\n      'rounded-br': [{\n        'rounded-br': [borderRadius]\n      }],\n      /**\n       * Border Radius Bottom Left\n       * @see https://tailwindcss.com/docs/border-radius\n       */\n      'rounded-bl': [{\n        'rounded-bl': [borderRadius]\n      }],\n      /**\n       * Border Width\n       * @see https://tailwindcss.com/docs/border-width\n       */\n      'border-w': [{\n        border: [borderWidth]\n      }],\n      /**\n       * Border Width X\n       * @see https://tailwindcss.com/docs/border-width\n       */\n      'border-w-x': [{\n        'border-x': [borderWidth]\n      }],\n      /**\n       * Border Width Y\n       * @see https://tailwindcss.com/docs/border-width\n       */\n      'border-w-y': [{\n        'border-y': [borderWidth]\n      }],\n      /**\n       * Border Width Start\n       * @see https://tailwindcss.com/docs/border-width\n       */\n      'border-w-s': [{\n        'border-s': [borderWidth]\n      }],\n      /**\n       * Border Width End\n       * @see https://tailwindcss.com/docs/border-width\n       */\n      'border-w-e': [{\n        'border-e': [borderWidth]\n      }],\n      /**\n       * Border Width Top\n       * @see https://tailwindcss.com/docs/border-width\n       */\n      'border-w-t': [{\n        'border-t': [borderWidth]\n      }],\n      /**\n       * Border Width Right\n       * @see https://tailwindcss.com/docs/border-width\n       */\n      'border-w-r': [{\n        'border-r': [borderWidth]\n      }],\n      /**\n       * Border Width Bottom\n       * @see https://tailwindcss.com/docs/border-width\n       */\n      'border-w-b': [{\n        'border-b': [borderWidth]\n      }],\n      /**\n       * Border Width Left\n       * @see https://tailwindcss.com/docs/border-width\n       */\n      'border-w-l': [{\n        'border-l': [borderWidth]\n      }],\n      /**\n       * Border Opacity\n       * @see https://tailwindcss.com/docs/border-opacity\n       */\n      'border-opacity': [{\n        'border-opacity': [opacity]\n      }],\n      /**\n       * Border Style\n       * @see https://tailwindcss.com/docs/border-style\n       */\n      'border-style': [{\n        border: [...getLineStyles(), 'hidden']\n      }],\n      /**\n       * Divide Width X\n       * @see https://tailwindcss.com/docs/divide-width\n       */\n      'divide-x': [{\n        'divide-x': [borderWidth]\n      }],\n      /**\n       * Divide Width X Reverse\n       * @see https://tailwindcss.com/docs/divide-width\n       */\n      'divide-x-reverse': ['divide-x-reverse'],\n      /**\n       * Divide Width Y\n       * @see https://tailwindcss.com/docs/divide-width\n       */\n      'divide-y': [{\n        'divide-y': [borderWidth]\n      }],\n      /**\n       * Divide Width Y Reverse\n       * @see https://tailwindcss.com/docs/divide-width\n       */\n      'divide-y-reverse': ['divide-y-reverse'],\n      /**\n       * Divide Opacity\n       * @see https://tailwindcss.com/docs/divide-opacity\n       */\n      'divide-opacity': [{\n        'divide-opacity': [opacity]\n      }],\n      /**\n       * Divide Style\n       * @see https://tailwindcss.com/docs/divide-style\n       */\n      'divide-style': [{\n        divide: getLineStyles()\n      }],\n      /**\n       * Border Color\n       * @see https://tailwindcss.com/docs/border-color\n       */\n      'border-color': [{\n        border: [borderColor]\n      }],\n      /**\n       * Border Color X\n       * @see https://tailwindcss.com/docs/border-color\n       */\n      'border-color-x': [{\n        'border-x': [borderColor]\n      }],\n      /**\n       * Border Color Y\n       * @see https://tailwindcss.com/docs/border-color\n       */\n      'border-color-y': [{\n        'border-y': [borderColor]\n      }],\n      /**\n       * Border Color S\n       * @see https://tailwindcss.com/docs/border-color\n       */\n      'border-color-s': [{\n        'border-s': [borderColor]\n      }],\n      /**\n       * Border Color E\n       * @see https://tailwindcss.com/docs/border-color\n       */\n      'border-color-e': [{\n        'border-e': [borderColor]\n      }],\n      /**\n       * Border Color Top\n       * @see https://tailwindcss.com/docs/border-color\n       */\n      'border-color-t': [{\n        'border-t': [borderColor]\n      }],\n      /**\n       * Border Color Right\n       * @see https://tailwindcss.com/docs/border-color\n       */\n      'border-color-r': [{\n        'border-r': [borderColor]\n      }],\n      /**\n       * Border Color Bottom\n       * @see https://tailwindcss.com/docs/border-color\n       */\n      'border-color-b': [{\n        'border-b': [borderColor]\n      }],\n      /**\n       * Border Color Left\n       * @see https://tailwindcss.com/docs/border-color\n       */\n      'border-color-l': [{\n        'border-l': [borderColor]\n      }],\n      /**\n       * Divide Color\n       * @see https://tailwindcss.com/docs/divide-color\n       */\n      'divide-color': [{\n        divide: [borderColor]\n      }],\n      /**\n       * Outline Style\n       * @see https://tailwindcss.com/docs/outline-style\n       */\n      'outline-style': [{\n        outline: ['', ...getLineStyles()]\n      }],\n      /**\n       * Outline Offset\n       * @see https://tailwindcss.com/docs/outline-offset\n       */\n      'outline-offset': [{\n        'outline-offset': [isLength, isArbitraryValue]\n      }],\n      /**\n       * Outline Width\n       * @see https://tailwindcss.com/docs/outline-width\n       */\n      'outline-w': [{\n        outline: [isLength, isArbitraryLength]\n      }],\n      /**\n       * Outline Color\n       * @see https://tailwindcss.com/docs/outline-color\n       */\n      'outline-color': [{\n        outline: [colors]\n      }],\n      /**\n       * Ring Width\n       * @see https://tailwindcss.com/docs/ring-width\n       */\n      'ring-w': [{\n        ring: getLengthWithEmptyAndArbitrary()\n      }],\n      /**\n       * Ring Width Inset\n       * @see https://tailwindcss.com/docs/ring-width\n       */\n      'ring-w-inset': ['ring-inset'],\n      /**\n       * Ring Color\n       * @see https://tailwindcss.com/docs/ring-color\n       */\n      'ring-color': [{\n        ring: [colors]\n      }],\n      /**\n       * Ring Opacity\n       * @see https://tailwindcss.com/docs/ring-opacity\n       */\n      'ring-opacity': [{\n        'ring-opacity': [opacity]\n      }],\n      /**\n       * Ring Offset Width\n       * @see https://tailwindcss.com/docs/ring-offset-width\n       */\n      'ring-offset-w': [{\n        'ring-offset': [isLength, isArbitraryLength]\n      }],\n      /**\n       * Ring Offset Color\n       * @see https://tailwindcss.com/docs/ring-offset-color\n       */\n      'ring-offset-color': [{\n        'ring-offset': [colors]\n      }],\n      // Effects\n      /**\n       * Box Shadow\n       * @see https://tailwindcss.com/docs/box-shadow\n       */\n      shadow: [{\n        shadow: ['', 'inner', 'none', isTshirtSize, isArbitraryShadow]\n      }],\n      /**\n       * Box Shadow Color\n       * @see https://tailwindcss.com/docs/box-shadow-color\n       */\n      'shadow-color': [{\n        shadow: [isAny]\n      }],\n      /**\n       * Opacity\n       * @see https://tailwindcss.com/docs/opacity\n       */\n      opacity: [{\n        opacity: [opacity]\n      }],\n      /**\n       * Mix Blend Mode\n       * @see https://tailwindcss.com/docs/mix-blend-mode\n       */\n      'mix-blend': [{\n        'mix-blend': [...getBlendModes(), 'plus-lighter', 'plus-darker']\n      }],\n      /**\n       * Background Blend Mode\n       * @see https://tailwindcss.com/docs/background-blend-mode\n       */\n      'bg-blend': [{\n        'bg-blend': getBlendModes()\n      }],\n      // Filters\n      /**\n       * Filter\n       * @deprecated since Tailwind CSS v3.0.0\n       * @see https://tailwindcss.com/docs/filter\n       */\n      filter: [{\n        filter: ['', 'none']\n      }],\n      /**\n       * Blur\n       * @see https://tailwindcss.com/docs/blur\n       */\n      blur: [{\n        blur: [blur]\n      }],\n      /**\n       * Brightness\n       * @see https://tailwindcss.com/docs/brightness\n       */\n      brightness: [{\n        brightness: [brightness]\n      }],\n      /**\n       * Contrast\n       * @see https://tailwindcss.com/docs/contrast\n       */\n      contrast: [{\n        contrast: [contrast]\n      }],\n      /**\n       * Drop Shadow\n       * @see https://tailwindcss.com/docs/drop-shadow\n       */\n      'drop-shadow': [{\n        'drop-shadow': ['', 'none', isTshirtSize, isArbitraryValue]\n      }],\n      /**\n       * Grayscale\n       * @see https://tailwindcss.com/docs/grayscale\n       */\n      grayscale: [{\n        grayscale: [grayscale]\n      }],\n      /**\n       * Hue Rotate\n       * @see https://tailwindcss.com/docs/hue-rotate\n       */\n      'hue-rotate': [{\n        'hue-rotate': [hueRotate]\n      }],\n      /**\n       * Invert\n       * @see https://tailwindcss.com/docs/invert\n       */\n      invert: [{\n        invert: [invert]\n      }],\n      /**\n       * Saturate\n       * @see https://tailwindcss.com/docs/saturate\n       */\n      saturate: [{\n        saturate: [saturate]\n      }],\n      /**\n       * Sepia\n       * @see https://tailwindcss.com/docs/sepia\n       */\n      sepia: [{\n        sepia: [sepia]\n      }],\n      /**\n       * Backdrop Filter\n       * @deprecated since Tailwind CSS v3.0.0\n       * @see https://tailwindcss.com/docs/backdrop-filter\n       */\n      'backdrop-filter': [{\n        'backdrop-filter': ['', 'none']\n      }],\n      /**\n       * Backdrop Blur\n       * @see https://tailwindcss.com/docs/backdrop-blur\n       */\n      'backdrop-blur': [{\n        'backdrop-blur': [blur]\n      }],\n      /**\n       * Backdrop Brightness\n       * @see https://tailwindcss.com/docs/backdrop-brightness\n       */\n      'backdrop-brightness': [{\n        'backdrop-brightness': [brightness]\n      }],\n      /**\n       * Backdrop Contrast\n       * @see https://tailwindcss.com/docs/backdrop-contrast\n       */\n      'backdrop-contrast': [{\n        'backdrop-contrast': [contrast]\n      }],\n      /**\n       * Backdrop Grayscale\n       * @see https://tailwindcss.com/docs/backdrop-grayscale\n       */\n      'backdrop-grayscale': [{\n        'backdrop-grayscale': [grayscale]\n      }],\n      /**\n       * Backdrop Hue Rotate\n       * @see https://tailwindcss.com/docs/backdrop-hue-rotate\n       */\n      'backdrop-hue-rotate': [{\n        'backdrop-hue-rotate': [hueRotate]\n      }],\n      /**\n       * Backdrop Invert\n       * @see https://tailwindcss.com/docs/backdrop-invert\n       */\n      'backdrop-invert': [{\n        'backdrop-invert': [invert]\n      }],\n      /**\n       * Backdrop Opacity\n       * @see https://tailwindcss.com/docs/backdrop-opacity\n       */\n      'backdrop-opacity': [{\n        'backdrop-opacity': [opacity]\n      }],\n      /**\n       * Backdrop Saturate\n       * @see https://tailwindcss.com/docs/backdrop-saturate\n       */\n      'backdrop-saturate': [{\n        'backdrop-saturate': [saturate]\n      }],\n      /**\n       * Backdrop Sepia\n       * @see https://tailwindcss.com/docs/backdrop-sepia\n       */\n      'backdrop-sepia': [{\n        'backdrop-sepia': [sepia]\n      }],\n      // Tables\n      /**\n       * Border Collapse\n       * @see https://tailwindcss.com/docs/border-collapse\n       */\n      'border-collapse': [{\n        border: ['collapse', 'separate']\n      }],\n      /**\n       * Border Spacing\n       * @see https://tailwindcss.com/docs/border-spacing\n       */\n      'border-spacing': [{\n        'border-spacing': [borderSpacing]\n      }],\n      /**\n       * Border Spacing X\n       * @see https://tailwindcss.com/docs/border-spacing\n       */\n      'border-spacing-x': [{\n        'border-spacing-x': [borderSpacing]\n      }],\n      /**\n       * Border Spacing Y\n       * @see https://tailwindcss.com/docs/border-spacing\n       */\n      'border-spacing-y': [{\n        'border-spacing-y': [borderSpacing]\n      }],\n      /**\n       * Table Layout\n       * @see https://tailwindcss.com/docs/table-layout\n       */\n      'table-layout': [{\n        table: ['auto', 'fixed']\n      }],\n      /**\n       * Caption Side\n       * @see https://tailwindcss.com/docs/caption-side\n       */\n      caption: [{\n        caption: ['top', 'bottom']\n      }],\n      // Transitions and Animation\n      /**\n       * Tranisition Property\n       * @see https://tailwindcss.com/docs/transition-property\n       */\n      transition: [{\n        transition: ['none', 'all', '', 'colors', 'opacity', 'shadow', 'transform', isArbitraryValue]\n      }],\n      /**\n       * Transition Duration\n       * @see https://tailwindcss.com/docs/transition-duration\n       */\n      duration: [{\n        duration: getNumberAndArbitrary()\n      }],\n      /**\n       * Transition Timing Function\n       * @see https://tailwindcss.com/docs/transition-timing-function\n       */\n      ease: [{\n        ease: ['linear', 'in', 'out', 'in-out', isArbitraryValue]\n      }],\n      /**\n       * Transition Delay\n       * @see https://tailwindcss.com/docs/transition-delay\n       */\n      delay: [{\n        delay: getNumberAndArbitrary()\n      }],\n      /**\n       * Animation\n       * @see https://tailwindcss.com/docs/animation\n       */\n      animate: [{\n        animate: ['none', 'spin', 'ping', 'pulse', 'bounce', isArbitraryValue]\n      }],\n      // Transforms\n      /**\n       * Transform\n       * @see https://tailwindcss.com/docs/transform\n       */\n      transform: [{\n        transform: ['', 'gpu', 'none']\n      }],\n      /**\n       * Scale\n       * @see https://tailwindcss.com/docs/scale\n       */\n      scale: [{\n        scale: [scale]\n      }],\n      /**\n       * Scale X\n       * @see https://tailwindcss.com/docs/scale\n       */\n      'scale-x': [{\n        'scale-x': [scale]\n      }],\n      /**\n       * Scale Y\n       * @see https://tailwindcss.com/docs/scale\n       */\n      'scale-y': [{\n        'scale-y': [scale]\n      }],\n      /**\n       * Rotate\n       * @see https://tailwindcss.com/docs/rotate\n       */\n      rotate: [{\n        rotate: [isInteger, isArbitraryValue]\n      }],\n      /**\n       * Translate X\n       * @see https://tailwindcss.com/docs/translate\n       */\n      'translate-x': [{\n        'translate-x': [translate]\n      }],\n      /**\n       * Translate Y\n       * @see https://tailwindcss.com/docs/translate\n       */\n      'translate-y': [{\n        'translate-y': [translate]\n      }],\n      /**\n       * Skew X\n       * @see https://tailwindcss.com/docs/skew\n       */\n      'skew-x': [{\n        'skew-x': [skew]\n      }],\n      /**\n       * Skew Y\n       * @see https://tailwindcss.com/docs/skew\n       */\n      'skew-y': [{\n        'skew-y': [skew]\n      }],\n      /**\n       * Transform Origin\n       * @see https://tailwindcss.com/docs/transform-origin\n       */\n      'transform-origin': [{\n        origin: ['center', 'top', 'top-right', 'right', 'bottom-right', 'bottom', 'bottom-left', 'left', 'top-left', isArbitraryValue]\n      }],\n      // Interactivity\n      /**\n       * Accent Color\n       * @see https://tailwindcss.com/docs/accent-color\n       */\n      accent: [{\n        accent: ['auto', colors]\n      }],\n      /**\n       * Appearance\n       * @see https://tailwindcss.com/docs/appearance\n       */\n      appearance: [{\n        appearance: ['none', 'auto']\n      }],\n      /**\n       * Cursor\n       * @see https://tailwindcss.com/docs/cursor\n       */\n      cursor: [{\n        cursor: ['auto', 'default', 'pointer', 'wait', 'text', 'move', 'help', 'not-allowed', 'none', 'context-menu', 'progress', 'cell', 'crosshair', 'vertical-text', 'alias', 'copy', 'no-drop', 'grab', 'grabbing', 'all-scroll', 'col-resize', 'row-resize', 'n-resize', 'e-resize', 's-resize', 'w-resize', 'ne-resize', 'nw-resize', 'se-resize', 'sw-resize', 'ew-resize', 'ns-resize', 'nesw-resize', 'nwse-resize', 'zoom-in', 'zoom-out', isArbitraryValue]\n      }],\n      /**\n       * Caret Color\n       * @see https://tailwindcss.com/docs/just-in-time-mode#caret-color-utilities\n       */\n      'caret-color': [{\n        caret: [colors]\n      }],\n      /**\n       * Pointer Events\n       * @see https://tailwindcss.com/docs/pointer-events\n       */\n      'pointer-events': [{\n        'pointer-events': ['none', 'auto']\n      }],\n      /**\n       * Resize\n       * @see https://tailwindcss.com/docs/resize\n       */\n      resize: [{\n        resize: ['none', 'y', 'x', '']\n      }],\n      /**\n       * Scroll Behavior\n       * @see https://tailwindcss.com/docs/scroll-behavior\n       */\n      'scroll-behavior': [{\n        scroll: ['auto', 'smooth']\n      }],\n      /**\n       * Scroll Margin\n       * @see https://tailwindcss.com/docs/scroll-margin\n       */\n      'scroll-m': [{\n        'scroll-m': getSpacingWithArbitrary()\n      }],\n      /**\n       * Scroll Margin X\n       * @see https://tailwindcss.com/docs/scroll-margin\n       */\n      'scroll-mx': [{\n        'scroll-mx': getSpacingWithArbitrary()\n      }],\n      /**\n       * Scroll Margin Y\n       * @see https://tailwindcss.com/docs/scroll-margin\n       */\n      'scroll-my': [{\n        'scroll-my': getSpacingWithArbitrary()\n      }],\n      /**\n       * Scroll Margin Start\n       * @see https://tailwindcss.com/docs/scroll-margin\n       */\n      'scroll-ms': [{\n        'scroll-ms': getSpacingWithArbitrary()\n      }],\n      /**\n       * Scroll Margin End\n       * @see https://tailwindcss.com/docs/scroll-margin\n       */\n      'scroll-me': [{\n        'scroll-me': getSpacingWithArbitrary()\n      }],\n      /**\n       * Scroll Margin Top\n       * @see https://tailwindcss.com/docs/scroll-margin\n       */\n      'scroll-mt': [{\n        'scroll-mt': getSpacingWithArbitrary()\n      }],\n      /**\n       * Scroll Margin Right\n       * @see https://tailwindcss.com/docs/scroll-margin\n       */\n      'scroll-mr': [{\n        'scroll-mr': getSpacingWithArbitrary()\n      }],\n      /**\n       * Scroll Margin Bottom\n       * @see https://tailwindcss.com/docs/scroll-margin\n       */\n      'scroll-mb': [{\n        'scroll-mb': getSpacingWithArbitrary()\n      }],\n      /**\n       * Scroll Margin Left\n       * @see https://tailwindcss.com/docs/scroll-margin\n       */\n      'scroll-ml': [{\n        'scroll-ml': getSpacingWithArbitrary()\n      }],\n      /**\n       * Scroll Padding\n       * @see https://tailwindcss.com/docs/scroll-padding\n       */\n      'scroll-p': [{\n        'scroll-p': getSpacingWithArbitrary()\n      }],\n      /**\n       * Scroll Padding X\n       * @see https://tailwindcss.com/docs/scroll-padding\n       */\n      'scroll-px': [{\n        'scroll-px': getSpacingWithArbitrary()\n      }],\n      /**\n       * Scroll Padding Y\n       * @see https://tailwindcss.com/docs/scroll-padding\n       */\n      'scroll-py': [{\n        'scroll-py': getSpacingWithArbitrary()\n      }],\n      /**\n       * Scroll Padding Start\n       * @see https://tailwindcss.com/docs/scroll-padding\n       */\n      'scroll-ps': [{\n        'scroll-ps': getSpacingWithArbitrary()\n      }],\n      /**\n       * Scroll Padding End\n       * @see https://tailwindcss.com/docs/scroll-padding\n       */\n      'scroll-pe': [{\n        'scroll-pe': getSpacingWithArbitrary()\n      }],\n      /**\n       * Scroll Padding Top\n       * @see https://tailwindcss.com/docs/scroll-padding\n       */\n      'scroll-pt': [{\n        'scroll-pt': getSpacingWithArbitrary()\n      }],\n      /**\n       * Scroll Padding Right\n       * @see https://tailwindcss.com/docs/scroll-padding\n       */\n      'scroll-pr': [{\n        'scroll-pr': getSpacingWithArbitrary()\n      }],\n      /**\n       * Scroll Padding Bottom\n       * @see https://tailwindcss.com/docs/scroll-padding\n       */\n      'scroll-pb': [{\n        'scroll-pb': getSpacingWithArbitrary()\n      }],\n      /**\n       * Scroll Padding Left\n       * @see https://tailwindcss.com/docs/scroll-padding\n       */\n      'scroll-pl': [{\n        'scroll-pl': getSpacingWithArbitrary()\n      }],\n      /**\n       * Scroll Snap Align\n       * @see https://tailwindcss.com/docs/scroll-snap-align\n       */\n      'snap-align': [{\n        snap: ['start', 'end', 'center', 'align-none']\n      }],\n      /**\n       * Scroll Snap Stop\n       * @see https://tailwindcss.com/docs/scroll-snap-stop\n       */\n      'snap-stop': [{\n        snap: ['normal', 'always']\n      }],\n      /**\n       * Scroll Snap Type\n       * @see https://tailwindcss.com/docs/scroll-snap-type\n       */\n      'snap-type': [{\n        snap: ['none', 'x', 'y', 'both']\n      }],\n      /**\n       * Scroll Snap Type Strictness\n       * @see https://tailwindcss.com/docs/scroll-snap-type\n       */\n      'snap-strictness': [{\n        snap: ['mandatory', 'proximity']\n      }],\n      /**\n       * Touch Action\n       * @see https://tailwindcss.com/docs/touch-action\n       */\n      touch: [{\n        touch: ['auto', 'none', 'manipulation']\n      }],\n      /**\n       * Touch Action X\n       * @see https://tailwindcss.com/docs/touch-action\n       */\n      'touch-x': [{\n        'touch-pan': ['x', 'left', 'right']\n      }],\n      /**\n       * Touch Action Y\n       * @see https://tailwindcss.com/docs/touch-action\n       */\n      'touch-y': [{\n        'touch-pan': ['y', 'up', 'down']\n      }],\n      /**\n       * Touch Action Pinch Zoom\n       * @see https://tailwindcss.com/docs/touch-action\n       */\n      'touch-pz': ['touch-pinch-zoom'],\n      /**\n       * User Select\n       * @see https://tailwindcss.com/docs/user-select\n       */\n      select: [{\n        select: ['none', 'text', 'all', 'auto']\n      }],\n      /**\n       * Will Change\n       * @see https://tailwindcss.com/docs/will-change\n       */\n      'will-change': [{\n        'will-change': ['auto', 'scroll', 'contents', 'transform', isArbitraryValue]\n      }],\n      // SVG\n      /**\n       * Fill\n       * @see https://tailwindcss.com/docs/fill\n       */\n      fill: [{\n        fill: [colors, 'none']\n      }],\n      /**\n       * Stroke Width\n       * @see https://tailwindcss.com/docs/stroke-width\n       */\n      'stroke-w': [{\n        stroke: [isLength, isArbitraryLength, isArbitraryNumber]\n      }],\n      /**\n       * Stroke\n       * @see https://tailwindcss.com/docs/stroke\n       */\n      stroke: [{\n        stroke: [colors, 'none']\n      }],\n      // Accessibility\n      /**\n       * Screen Readers\n       * @see https://tailwindcss.com/docs/screen-readers\n       */\n      sr: ['sr-only', 'not-sr-only'],\n      /**\n       * Forced Color Adjust\n       * @see https://tailwindcss.com/docs/forced-color-adjust\n       */\n      'forced-color-adjust': [{\n        'forced-color-adjust': ['auto', 'none']\n      }]\n    },\n    conflictingClassGroups: {\n      overflow: ['overflow-x', 'overflow-y'],\n      overscroll: ['overscroll-x', 'overscroll-y'],\n      inset: ['inset-x', 'inset-y', 'start', 'end', 'top', 'right', 'bottom', 'left'],\n      'inset-x': ['right', 'left'],\n      'inset-y': ['top', 'bottom'],\n      flex: ['basis', 'grow', 'shrink'],\n      gap: ['gap-x', 'gap-y'],\n      p: ['px', 'py', 'ps', 'pe', 'pt', 'pr', 'pb', 'pl'],\n      px: ['pr', 'pl'],\n      py: ['pt', 'pb'],\n      m: ['mx', 'my', 'ms', 'me', 'mt', 'mr', 'mb', 'ml'],\n      mx: ['mr', 'ml'],\n      my: ['mt', 'mb'],\n      size: ['w', 'h'],\n      'font-size': ['leading'],\n      'fvn-normal': ['fvn-ordinal', 'fvn-slashed-zero', 'fvn-figure', 'fvn-spacing', 'fvn-fraction'],\n      'fvn-ordinal': ['fvn-normal'],\n      'fvn-slashed-zero': ['fvn-normal'],\n      'fvn-figure': ['fvn-normal'],\n      'fvn-spacing': ['fvn-normal'],\n      'fvn-fraction': ['fvn-normal'],\n      'line-clamp': ['display', 'overflow'],\n      rounded: ['rounded-s', 'rounded-e', 'rounded-t', 'rounded-r', 'rounded-b', 'rounded-l', 'rounded-ss', 'rounded-se', 'rounded-ee', 'rounded-es', 'rounded-tl', 'rounded-tr', 'rounded-br', 'rounded-bl'],\n      'rounded-s': ['rounded-ss', 'rounded-es'],\n      'rounded-e': ['rounded-se', 'rounded-ee'],\n      'rounded-t': ['rounded-tl', 'rounded-tr'],\n      'rounded-r': ['rounded-tr', 'rounded-br'],\n      'rounded-b': ['rounded-br', 'rounded-bl'],\n      'rounded-l': ['rounded-tl', 'rounded-bl'],\n      'border-spacing': ['border-spacing-x', 'border-spacing-y'],\n      'border-w': ['border-w-s', 'border-w-e', 'border-w-t', 'border-w-r', 'border-w-b', 'border-w-l'],\n      'border-w-x': ['border-w-r', 'border-w-l'],\n      'border-w-y': ['border-w-t', 'border-w-b'],\n      'border-color': ['border-color-s', 'border-color-e', 'border-color-t', 'border-color-r', 'border-color-b', 'border-color-l'],\n      'border-color-x': ['border-color-r', 'border-color-l'],\n      'border-color-y': ['border-color-t', 'border-color-b'],\n      'scroll-m': ['scroll-mx', 'scroll-my', 'scroll-ms', 'scroll-me', 'scroll-mt', 'scroll-mr', 'scroll-mb', 'scroll-ml'],\n      'scroll-mx': ['scroll-mr', 'scroll-ml'],\n      'scroll-my': ['scroll-mt', 'scroll-mb'],\n      'scroll-p': ['scroll-px', 'scroll-py', 'scroll-ps', 'scroll-pe', 'scroll-pt', 'scroll-pr', 'scroll-pb', 'scroll-pl'],\n      'scroll-px': ['scroll-pr', 'scroll-pl'],\n      'scroll-py': ['scroll-pt', 'scroll-pb'],\n      touch: ['touch-x', 'touch-y', 'touch-pz'],\n      'touch-x': ['touch'],\n      'touch-y': ['touch'],\n      'touch-pz': ['touch']\n    },\n    conflictingClassGroupModifiers: {\n      'font-size': ['leading']\n    }\n  };\n};\n\n/**\n * @param baseConfig Config where other config will be merged into. This object will be mutated.\n * @param configExtension Partial config to merge into the `baseConfig`.\n */\nconst mergeConfigs = (baseConfig, {\n  cacheSize,\n  prefix,\n  separator,\n  experimentalParseClassName,\n  extend = {},\n  override = {}\n}) => {\n  overrideProperty(baseConfig, 'cacheSize', cacheSize);\n  overrideProperty(baseConfig, 'prefix', prefix);\n  overrideProperty(baseConfig, 'separator', separator);\n  overrideProperty(baseConfig, 'experimentalParseClassName', experimentalParseClassName);\n  for (const configKey in override) {\n    overrideConfigProperties(baseConfig[configKey], override[configKey]);\n  }\n  for (const key in extend) {\n    mergeConfigProperties(baseConfig[key], extend[key]);\n  }\n  return baseConfig;\n};\nconst overrideProperty = (baseObject, overrideKey, overrideValue) => {\n  if (overrideValue !== undefined) {\n    baseObject[overrideKey] = overrideValue;\n  }\n};\nconst overrideConfigProperties = (baseObject, overrideObject) => {\n  if (overrideObject) {\n    for (const key in overrideObject) {\n      overrideProperty(baseObject, key, overrideObject[key]);\n    }\n  }\n};\nconst mergeConfigProperties = (baseObject, mergeObject) => {\n  if (mergeObject) {\n    for (const key in mergeObject) {\n      const mergeValue = mergeObject[key];\n      if (mergeValue !== undefined) {\n        baseObject[key] = (baseObject[key] || []).concat(mergeValue);\n      }\n    }\n  }\n};\nconst extendTailwindMerge = (configExtension, ...createConfig) => typeof configExtension === 'function' ? createTailwindMerge(getDefaultConfig, configExtension, ...createConfig) : createTailwindMerge(() => mergeConfigs(getDefaultConfig(), configExtension), ...createConfig);\nconst twMerge = /*#__PURE__*/createTailwindMerge(getDefaultConfig);\nexport { createTailwindMerge, extendTailwindMerge, fromTheme, getDefaultConfig, mergeConfigs, twJoin, twMerge, validators };\n//# sourceMappingURL=bundle-mjs.mjs.map\n","import { clsx } from \"clsx\";\r\nimport { twMerge } from \"tailwind-merge\";\r\n\r\nexport function cn(...inputs: any[]) {\r\n  return twMerge(clsx(inputs));\r\n}\r\n","import * as React from \"react\";\r\nimport * as DialogPrimitive from \"@radix-ui/react-dialog\";\r\nimport { X } from \"lucide-react\";\r\n\r\nimport { cn } from \"@/react/shadcn/utils\";\r\n\r\nconst Dialog = DialogPrimitive.Root;\r\n\r\nconst DialogTrigger = DialogPrimitive.Trigger;\r\n\r\nconst DialogPortal = DialogPrimitive.Portal;\r\n\r\nconst DialogClose = DialogPrimitive.Close;\r\n\r\nconst DialogOverlay = React.forwardRef<\r\n  HTMLDivElement,\r\n  React.ComponentPropsWithoutRef<typeof DialogPrimitive.Overlay> & {\r\n    className?: string;\r\n  }\r\n>(({ className, ...props }, ref) => (\r\n  <DialogPrimitive.Overlay\r\n    ref={ref}\r\n    className={cn(\r\n      \"web3kit-fixed web3kit-inset-0 web3kit-z-20 web3kit-bg-white/20 data-[state=open]:web3kit-animate-in data-[state=closed]:web3kit-animate-out data-[state=closed]:web3kit-fade-out-0 data-[state=open]:web3kit-fade-in-0\",\r\n      className\r\n    )}\r\n    {...props}\r\n  />\r\n));\r\nDialogOverlay.displayName = DialogPrimitive.Overlay.displayName;\r\n\r\nconst DialogContent = React.forwardRef<\r\n  HTMLDivElement,\r\n  React.ComponentPropsWithoutRef<typeof DialogPrimitive.Content> & {\r\n    className?: string;\r\n  }\r\n>(({ className, children, ...props }, ref) => (\r\n  <DialogPortal>\r\n    <DialogOverlay className=\"DialogContent\" />\r\n    <DialogPrimitive.Content\r\n      ref={ref}\r\n      className={cn(\r\n        \"web3kit-fixed web3kit-left-[50%] web3kit-top-[50%] web3kit-z-20 web3kit-grid web3kit-w-full web3kit-max-w-lg web3kit-translate-x-[-50%] web3kit-translate-y-[-50%] web3kit-gap-4 web3kit-border web3kit-bg-background web3kit-p-6 web3kit-shadow-lg web3kit-duration-200 data-[state=open]:web3kit-animate-in data-[state=closed]:web3kit-animate-out data-[state=closed]:web3kit-fade-out-0 data-[state=open]:web3kit-fade-in-0 data-[state=closed]:web3kit-zoom-out-95 data-[state=open]:web3kit-zoom-in-95 data-[state=closed]:web3kit-slide-out-to-left-1/2 data-[state=closed]:web3kit-slide-out-to-top-[48%] data-[state=open]:web3kit-slide-in-from-left-1/2 data-[state=open]:web3kit-slide-in-from-top-[48%] sm:web3kit-rounded-lg\",\r\n        className\r\n      )}\r\n      {...props}\r\n    >\r\n      {children}\r\n      <DialogPrimitive.Close className=\"web3kit-absolute web3kit-right-4 web3kit-top-4 web3kit-rounded-sm web3kit-opacity-70 web3kit-ring-offset-background web3kit-transition-opacity hover:web3kit-opacity-100 focus:web3kit-outline-none focus:web3kit-ring-2 focus:web3kit-ring-ring focus:web3kit-ring-offset-2 disabled:web3kit-pointer-events-none data-[state=open]:web3kit-bg-accent data-[state=open]:web3kit-text-muted-foreground\">\r\n        <X className=\"web3kit-h-4 web3kit-w-4\" />\r\n        <span className=\"web3kit-sr-only\">Close</span>\r\n      </DialogPrimitive.Close>\r\n    </DialogPrimitive.Content>\r\n  </DialogPortal>\r\n));\r\nDialogContent.displayName = DialogPrimitive.Content.displayName;\r\n\r\nconst DialogHeader = React.forwardRef<\r\n  HTMLDivElement,\r\n  React.HTMLAttributes<HTMLDivElement> & { className?: string }\r\n>(({ className, ...props }, ref) => (\r\n  <div\r\n    ref={ref}\r\n    className={cn(\r\n      \"web3kit-flex web3kit-flex-col web3kit-space-y-1.5 web3kit-text-center sm:web3kit-text-left\",\r\n      className\r\n    )}\r\n    {...props}\r\n  />\r\n));\r\nDialogHeader.displayName = \"DialogHeader\";\r\n\r\nconst DialogFooter = React.forwardRef<\r\n  HTMLDivElement,\r\n  React.HTMLAttributes<HTMLDivElement> & { className?: string }\r\n>(({ className, ...props }, ref) => (\r\n  <div\r\n    ref={ref}\r\n    className={cn(\r\n      \"web3kit-flex web3kit-flex-col-reverse sm:web3kit-flex-row sm:web3kit-justify-end sm:web3kit-space-x-2\",\r\n      className\r\n    )}\r\n    {...props}\r\n  />\r\n));\r\nDialogFooter.displayName = \"DialogFooter\";\r\n\r\nconst DialogTitle = React.forwardRef<\r\n  HTMLHeadingElement,\r\n  React.ComponentPropsWithoutRef<typeof DialogPrimitive.Title> & {\r\n    className?: string;\r\n  }\r\n>(({ className, ...props }, ref) => (\r\n  <DialogPrimitive.Title\r\n    ref={ref}\r\n    className={cn(\r\n      \"web3kit-text-lg web3kit-font-semibold web3kit-leading-none web3kit-tracking-tight\",\r\n      className\r\n    )}\r\n    {...props}\r\n  />\r\n));\r\nDialogTitle.displayName = DialogPrimitive.Title.displayName;\r\n\r\nconst DialogDescription = React.forwardRef<\r\n  HTMLParagraphElement,\r\n  React.ComponentPropsWithoutRef<typeof DialogPrimitive.Description> & {\r\n    className?: string;\r\n  }\r\n>(({ className, ...props }, ref) => (\r\n  <DialogPrimitive.Description\r\n    ref={ref}\r\n    className={cn(\"web3kit-text-sm web3kit-text-muted-foreground\", className)}\r\n    {...props}\r\n  />\r\n));\r\nDialogDescription.displayName = DialogPrimitive.Description.displayName;\r\n\r\nexport {\r\n  Dialog,\r\n  DialogPortal,\r\n  DialogOverlay,\r\n  DialogTrigger,\r\n  DialogClose,\r\n  DialogContent,\r\n  DialogHeader,\r\n  DialogFooter,\r\n  DialogTitle,\r\n  DialogDescription,\r\n};\r\n","import * as React from \"react\";\r\nimport { Drawer as DrawerPrimitive } from \"vaul\";\r\n\r\nimport { cn } from \"@/react/shadcn/utils\";\r\n\r\nconst Drawer = ({ shouldScaleBackground = true, ...props }) => (\r\n  <DrawerPrimitive.Root\r\n    shouldScaleBackground={shouldScaleBackground}\r\n    {...props}\r\n  />\r\n);\r\nDrawer.displayName = \"Drawer\";\r\n\r\nconst DrawerTrigger = DrawerPrimitive.Trigger;\r\n\r\nconst DrawerPortal = DrawerPrimitive.Portal;\r\n\r\nconst DrawerClose = DrawerPrimitive.Close;\r\n\r\nconst DrawerOverlay = React.forwardRef<\r\n  HTMLDivElement,\r\n  React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Overlay> & {\r\n    className?: string;\r\n  }\r\n>(({ className, ...props }, ref) => (\r\n  <DrawerPrimitive.Overlay\r\n    ref={ref}\r\n    className={cn(\r\n      \"web3kit-fixed web3kit-inset-0 web3kit-z-20 web3kit-bg-black/80\",\r\n      className\r\n    )}\r\n    {...props}\r\n  />\r\n));\r\nDrawerOverlay.displayName =\r\n  DrawerPrimitive.Overlay?.displayName || \"DrawerOverlay\";\r\n\r\nconst DrawerContent = React.forwardRef<\r\n  HTMLDivElement,\r\n  React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Content> & {\r\n    className?: string;\r\n  }\r\n>(({ className, children, ...props }, ref) => (\r\n  <DrawerPortal>\r\n    <DrawerOverlay />\r\n    <DrawerPrimitive.Content\r\n      ref={ref}\r\n      className={cn(\r\n        \"web3kit-fixed web3kit-inset-x-0 web3kit-bottom-0 web3kit-z-20 web3kit-mt-24 web3kit-flex web3kit-h-auto web3kit-flex-col web3kit-rounded-t-[10px] web3kit-border web3kit-bg-background\",\r\n        className\r\n      )}\r\n      {...props}\r\n    >\r\n      <div className=\"web3kit-mx-auto web3kit-mt-4 web3kit-h-2 web3kit-w-[100px] web3kit-rounded-full web3kit-bg-muted\" />\r\n      {children}\r\n    </DrawerPrimitive.Content>\r\n  </DrawerPortal>\r\n));\r\nDrawerContent.displayName = \"DrawerContent\";\r\n\r\nconst DrawerHeader = ({\r\n  className,\r\n  ...props\r\n}: {\r\n  className: string;\r\n  props: any;\r\n}) => (\r\n  <div\r\n    className={cn(\r\n      \"web3kit-grid web3kit-gap-1.5 web3kit-p-4 web3kit-text-center sm:web3kit-text-left\",\r\n      className\r\n    )}\r\n    {...props}\r\n  />\r\n);\r\nDrawerHeader.displayName = \"DrawerHeader\";\r\n\r\nconst DrawerFooter = ({\r\n  className,\r\n  ...props\r\n}: {\r\n  className: string;\r\n  props: any;\r\n}) => (\r\n  <div\r\n    className={cn(\r\n      \"web3kit-mt-auto web3kit-flex web3kit-flex-col web3kit-gap-2 web3kit-p-4\",\r\n      className\r\n    )}\r\n    {...props}\r\n  />\r\n);\r\nDrawerFooter.displayName = \"DrawerFooter\";\r\n\r\nconst DrawerTitle = React.forwardRef<\r\n  HTMLHeadingElement,\r\n  React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Title> & {\r\n    className?: string;\r\n  }\r\n>(({ className, ...props }, ref) => (\r\n  <DrawerPrimitive.Title\r\n    ref={ref}\r\n    className={cn(\r\n      \"web3kit-text-lg web3kit-font-semibold web3kit-leading-none web3kit-tracking-tight\",\r\n      className\r\n    )}\r\n    {...props}\r\n  />\r\n));\r\nDrawerTitle.displayName = DrawerPrimitive.Title?.displayName || \"DrawerTitle\";\r\n\r\nconst DrawerDescription = React.forwardRef<\r\n  HTMLParagraphElement,\r\n  React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Description> & {\r\n    className?: string;\r\n  }\r\n>(({ className, ...props }, ref) => (\r\n  <DrawerPrimitive.Description\r\n    ref={ref}\r\n    className={cn(\"web3kit-text-sm web3kit-text-muted-foreground\", className)}\r\n    {...props}\r\n  />\r\n));\r\nDrawerDescription.displayName =\r\n  DrawerPrimitive.Description?.displayName || \"DrawerDescription\";\r\n\r\nexport {\r\n  Drawer,\r\n  DrawerPortal,\r\n  DrawerOverlay,\r\n  DrawerTrigger,\r\n  DrawerClose,\r\n  DrawerContent,\r\n  DrawerHeader,\r\n  DrawerFooter,\r\n  DrawerTitle,\r\n  DrawerDescription,\r\n};\r\n","import * as React from \"react\";\r\nimport * as ScrollAreaPrimitive from \"@radix-ui/react-scroll-area\";\r\n\r\nimport { cn } from \"@/react/shadcn/utils\";\r\n\r\nconst ScrollArea = React.forwardRef<\r\n  React.ElementRef<typeof ScrollAreaPrimitive.Root>,\r\n  React.ComponentPropsWithoutRef<typeof ScrollAreaPrimitive.Root> & {\r\n    className?: string;\r\n  }\r\n>(({ className, children, ...props }, ref) => (\r\n  <ScrollAreaPrimitive.Root\r\n    ref={ref}\r\n    className={cn(\"web3kit-relative web3kit-overflow-hidden\", className)}\r\n    {...props}\r\n  >\r\n    <ScrollAreaPrimitive.Viewport className=\"web3kit-h-full web3kit-w-full web3kit-rounded-[inherit]\">\r\n      {children}\r\n    </ScrollAreaPrimitive.Viewport>\r\n    <ScrollBar />\r\n    <ScrollAreaPrimitive.Corner />\r\n  </ScrollAreaPrimitive.Root>\r\n));\r\nScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;\r\n\r\nconst ScrollBar = React.forwardRef<\r\n  React.ElementRef<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>,\r\n  React.ComponentPropsWithoutRef<\r\n    typeof ScrollAreaPrimitive.ScrollAreaScrollbar\r\n  > & { className?: string }\r\n>(({ className, orientation = \"vertical\", ...props }, ref) => (\r\n  <ScrollAreaPrimitive.ScrollAreaScrollbar\r\n    ref={ref}\r\n    orientation={orientation}\r\n    className={cn(\r\n      \"web3kit-flex web3kit-touch-none web3kit-select-none web3kit-transition-colors\",\r\n      orientation === \"vertical\" &&\r\n        \"web3kit-h-full web3kit-w-2.5 web3kit-border-l web3kit-border-l-transparent web3kit-p-[1px]\",\r\n      orientation === \"horizontal\" &&\r\n        \"web3kit-h-2.5 web3kit-flex-col web3kit-border-t web3kit-border-t-transparent web3kit-p-[1px]\",\r\n      className\r\n    )}\r\n    {...props}\r\n  >\r\n    <ScrollAreaPrimitive.ScrollAreaThumb className=\"web3kit-relative web3kit-flex-1 web3kit-rounded-full web3kit-bg-border\" />\r\n  </ScrollAreaPrimitive.ScrollAreaScrollbar>\r\n));\r\nScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;\r\n\r\nexport { ScrollArea, ScrollBar };\r\n","import * as React from \"react\";\r\n\r\nimport { cn } from \"./shadcn/utils\";\r\nimport {\r\n  Dialog,\r\n  DialogClose,\r\n  DialogContent,\r\n  DialogDescription,\r\n  DialogFooter,\r\n  DialogHeader,\r\n  DialogTitle,\r\n  DialogTrigger,\r\n} from \"./shadcn/ui/dialog\";\r\nimport {\r\n  Drawer,\r\n  DrawerClose,\r\n  DrawerContent,\r\n  DrawerDescription,\r\n  DrawerFooter,\r\n  DrawerHeader,\r\n  DrawerTitle,\r\n  DrawerTrigger,\r\n} from \"./shadcn/ui/drawer\";\r\nimport { ScrollArea } from \"./shadcn/ui/scroll-area\";\r\n\r\nconst desktop = \"(min-width: 768px)\";\r\n\r\nconst SimpleKitModal = ({ className, children, ...props }: any) => {\r\n  const isDesktop = useMediaQuery(desktop);\r\n  const KitModal = isDesktop ? Dialog : Drawer;\r\n\r\n  return (\r\n    <KitModal\r\n      {...props}\r\n      className={cn(\r\n        \"web3kit-transition-transform web3kit-duration-300\",\r\n        className\r\n      )}\r\n    >\r\n      {children}\r\n    </KitModal>\r\n  );\r\n};\r\n\r\nconst SimpleKitModalTrigger = ({ className, children, ...props }: any) => {\r\n  const isDesktop = useMediaQuery(desktop);\r\n  const ModalTrigger = isDesktop ? DialogTrigger : DrawerTrigger;\r\n\r\n  return (\r\n    <ModalTrigger className={className} {...props}>\r\n      {children}\r\n    </ModalTrigger>\r\n  );\r\n};\r\n\r\nconst SimpleKitModalClose = ({ className, children, ...props }: any) => {\r\n  const isDesktop = useMediaQuery(desktop);\r\n  const ModalClose = isDesktop ? DialogClose : DrawerClose;\r\n\r\n  return (\r\n    <ModalClose\r\n      className={cn(\"hover:web3kit-bg-accent web3kit-p-2\", className)}\r\n      {...props}\r\n    >\r\n      {children}\r\n    </ModalClose>\r\n  );\r\n};\r\n\r\nconst SimpleKitModalContent = ({ className, children, ...props }: any) => {\r\n  const isDesktop = useMediaQuery(desktop);\r\n  const ModalContent = isDesktop ? DialogContent : DrawerContent;\r\n\r\n  return (\r\n    <ModalContent\r\n      className={cn(\r\n        \"web3kit-bg-card web3kit-text-card-foreground !web3kit-border-0 !web3kit-rounded-3xl md:web3kit-max-w-[380px] [&>button]:web3kit-right-[26px] [&>button]:web3kit-top-[26px] web3kit-transition-transform web3kit-duration-300 web3kit-z-[60]\",\r\n        className\r\n      )}\r\n      onOpenAutoFocus={(e) => e.preventDefault()}\r\n      {...props}\r\n    >\r\n      {children}\r\n    </ModalContent>\r\n  );\r\n};\r\n\r\nconst SimpleKitModalDescription = ({ className, children, ...props }: any) => {\r\n  const isDesktop = useMediaQuery(desktop);\r\n  const ModalDescription = isDesktop ? DialogDescription : DrawerDescription;\r\n\r\n  return (\r\n    <ModalDescription className={className} {...props}>\r\n      {children}\r\n    </ModalDescription>\r\n  );\r\n};\r\n\r\nconst SimpleKitModalHeader = ({ className, children, ...props }: any) => {\r\n  const isDesktop = useMediaQuery(desktop);\r\n  const ModalHeader = isDesktop ? DialogHeader : DrawerHeader;\r\n\r\n  return (\r\n    <ModalHeader\r\n      className={cn(\r\n        \"web3kit-space-y-0 web3kit-pb-6 md:web3kit-pb-3\",\r\n        className\r\n      )}\r\n      {...props}\r\n    >\r\n      {children}\r\n    </ModalHeader>\r\n  );\r\n};\r\n\r\nconst SimpleKitModalTitle = ({ className, children, ...props }: any) => {\r\n  const isDesktop = useMediaQuery(desktop);\r\n  const ModalTitle = isDesktop ? DialogTitle : DrawerTitle;\r\n  return (\r\n    <ModalTitle\r\n      className={cn(\"web3kit-text-center web3kit-py-2\", className)}\r\n      {...props}\r\n    >\r\n      {children}\r\n    </ModalTitle>\r\n  );\r\n};\r\n\r\nconst SimpleKitModalBody = ({ className, children, ...props }: any) => {\r\n  return (\r\n    <ScrollArea\r\n      className={cn(\r\n        \"web3kit-h-[260px] web3kit-max-h-[350px] web3kit-px-6 md:web3kit-h-full md:web3kit-min-h-[260px] md:web3kit-px-0\",\r\n        className\r\n      )}\r\n      {...props}\r\n    >\r\n      <div className=\"web3kit-space-y-2\">{children}</div>\r\n    </ScrollArea>\r\n  );\r\n};\r\n\r\nconst SimpleKitModalFooter = ({ className, children, ...props }: any) => {\r\n  const isDesktop = useMediaQuery(desktop);\r\n  const ModalFooter = isDesktop ? DialogFooter : DrawerFooter;\r\n\r\n  return (\r\n    <ModalFooter\r\n      className={cn(\"web3kit-py-3.5 md:web3kit-py-0\", className)}\r\n      {...props}\r\n    >\r\n      <div className=\"web3kit-flex web3kit-flex-col web3kit-gap-y-4 web3kit-w-full\">\r\n        {children}\r\n      </div>\r\n    </ModalFooter>\r\n  );\r\n};\r\n\r\nexport {\r\n  SimpleKitModal,\r\n  SimpleKitModalTrigger,\r\n  SimpleKitModalClose,\r\n  SimpleKitModalContent,\r\n  SimpleKitModalDescription,\r\n  SimpleKitModalHeader,\r\n  SimpleKitModalTitle,\r\n  SimpleKitModalBody,\r\n  SimpleKitModalFooter,\r\n};\r\n\r\nfunction useMediaQuery(query: string) {\r\n  const [matches, setMatches] = React.useState(false);\r\n\r\n  React.useEffect(() => {\r\n    const mediaQueryList = matchMedia(query);\r\n\r\n    setMatches(mediaQueryList.matches);\r\n\r\n    const updateMatch = (event: MediaQueryListEvent) =>\r\n      setMatches(event.matches);\r\n\r\n    mediaQueryList.addEventListener(\"change\", updateMatch);\r\n\r\n    return () => mediaQueryList.removeEventListener(\"change\", updateMatch);\r\n  }, [query]);\r\n\r\n  return matches;\r\n}\r\n","import { type Config, getClient, getConnectorClient } from \"@wagmi/core\";\r\nimport {\r\n  BrowserProvider,\r\n  FallbackProvider,\r\n  JsonRpcProvider,\r\n  JsonRpcSigner,\r\n} from \"ethers\";\r\nimport type { Account, Chain, Client, Transport } from \"viem\";\r\n\r\nfunction clientToProvider(client: Client<Transport, Chain>) {\r\n  const { chain, transport } = client;\r\n  const network = {\r\n    chainId: chain.id,\r\n    name: chain.name,\r\n    ensAddress: chain.contracts?.ensRegistry?.address,\r\n  };\r\n  if (transport.type === \"fallback\") {\r\n    const providers = (transport.transports as ReturnType<Transport>[]).map(\r\n      ({ value }) => new JsonRpcProvider(value?.url, network)\r\n    );\r\n    if (providers.length === 1) return providers[0];\r\n    return new FallbackProvider(providers);\r\n  }\r\n  return new JsonRpcProvider(transport.url, network);\r\n}\r\n\r\nfunction clientToSigner(client: Client<Transport, Chain, Account>) {\r\n  const { account, chain, transport } = client;\r\n  const network = {\r\n    chainId: chain.id,\r\n    name: chain.name,\r\n    ensAddress: chain.contracts?.ensRegistry?.address,\r\n  };\r\n  const provider = new BrowserProvider(transport, network);\r\n  const signer = new JsonRpcSigner(provider, account.address);\r\n  return signer;\r\n}\r\n\r\nexport function getEthersProvider(\r\n  config: Config,\r\n  { chainId }: { chainId?: number } = {}\r\n) {\r\n  const client = getClient(config, { chainId });\r\n  if (!client) return;\r\n  return clientToProvider(client as any);\r\n}\r\n\r\nexport async function getEthersSigner(\r\n  config: Config,\r\n  { chainId }: { chainId?: number } = {}\r\n) {\r\n  const client = await getConnectorClient(config, { chainId });\r\n  return clientToSigner(client as any);\r\n}\r\n","import { useQuery, useMutation } from \"@tanstack/react-query\";\r\nimport { Contract, JsonRpcProvider, FallbackProvider } from \"ethers\";\r\nimport { erc20Abi } from \"viem\";\r\n\r\nimport { toast } from \"sonner\";\r\n// import { solanaWallets } from \"./utils/solana-adapter\";\r\nimport {\r\n  PublicKey as SolanaPublicKey,\r\n  ComputeBudgetProgram,\r\n  Transaction as SolanaTransaction,\r\n  AddressLookupTableProgram,\r\n  TransactionMessage,\r\n  VersionedTransaction,\r\n  Connection,\r\n  clusterApiUrl,\r\n  TransactionInstruction as SolanaTransactionInstruction,\r\n  SystemProgram,\r\n  Keypair as SolanaKeypair,\r\n} from \"@solana/web3.js\";\r\nimport { AnchorProvider, BN, Idl, Program } from \"@coral-xyz/anchor\";\r\nimport { isMainnet } from \"based-shared/constants\";\r\nimport { getProviders, signIn, signOut, useSession } from \"next-auth/react\";\r\nimport {\r\n  WalletAdapterNetwork,\r\n  WalletName,\r\n  WalletReadyState,\r\n} from \"@solana/wallet-adapter-base\";\r\nimport { NetworkSymbols } from \"based-auth/networks\";\r\nimport { routes, useSimpleKitContext } from \"./context/SimpleKitContext\";\r\nimport { IChain } from \"based-auth/chains\";\r\nimport { getEthersProvider } from \"./utils/adapters\";\r\nimport {\r\n  connect as wagmiConnect,\r\n  getAccount as wagmiGetAccount,\r\n  getChainId as wagmiGetChainId,\r\n  disconnect as wagmiDisconnect,\r\n  switchChain as wagmiSwitchChain,\r\n  signMessage as wagmiSignMessage,\r\n  getConnectors as wagmiGetConnectors,\r\n  writeContract as wagmiWriteContract,\r\n  ConnectorAlreadyConnectedError,\r\n} from \"@wagmi/core\";\r\nimport { WrongChainLogo } from \"based-assets\";\r\nimport { useWallet } from \"@solana/wallet-adapter-react\";\r\nimport type { UseMutationResult, UseQueryResult } from \"@tanstack/react-query\";\r\nimport { MetaMaskLogo, CoinbaseLogo, WalletConnectLogo } from \"based-assets\";\r\nimport { deserialize, serialize } from \"based-auth/utils\";\r\nimport { useEffect } from \"react\";\r\nimport { Wallet } from \"@solana/wallet-adapter-react\";\r\n\r\ntype CustomUser = {\r\n  address?: string;\r\n  chainId?: number;\r\n  social?: string;\r\n  image?: string;\r\n  name?: string;\r\n  role?: string;\r\n  network?: string;\r\n  provider?: string;\r\n  users?: any[];\r\n};\r\n\r\nconst maxTxSize = 1232;\r\nconst limitOnTable = 27;\r\n\r\nfunction estimateTransactionSize(tx: SolanaTransaction): number {\r\n  const messageBytes = tx.serializeMessage(); // No signature\r\n  const numSignatures = tx.signatures.length || 1; // 1 or more\r\n  const SIGNATURE_SIZE = 64; // Each signature is 64 bytes\r\n  const SIGNATURE_HEADER_SIZE = 1; // Compact-u16 length prefix\r\n\r\n  return (\r\n    SIGNATURE_HEADER_SIZE + numSignatures * SIGNATURE_SIZE + messageBytes.length\r\n  );\r\n}\r\n``;\r\nexport function useAccount(): {\r\n  chainId: number;\r\n  network: string;\r\n  address: string;\r\n  social: string;\r\n  name: string;\r\n  image: string;\r\n  role: string;\r\n  provider: string;\r\n  users: any[];\r\n  chain: IChain;\r\n  switchChain: (chainId: number) => Promise<void>;\r\n  switchAccount: (network: string, address: string) => Promise<void>;\r\n} {\r\n  const { chains } = useSimpleKitContext();\r\n  const { data: session, update } = useSession();\r\n  const {\r\n    chainId = 0,\r\n    network = \"\",\r\n    address = \"\",\r\n    social = \"\",\r\n    name = \"\",\r\n    image = \"\",\r\n    role = \"\",\r\n    provider = \"\",\r\n    users = [],\r\n  } = (session?.user as CustomUser) || {};\r\n  const chain = chains.find((item) => item.id === chainId);\r\n  return {\r\n    address,\r\n    chainId,\r\n    social,\r\n    image,\r\n    name,\r\n    role,\r\n    network,\r\n    provider,\r\n    users,\r\n    chain,\r\n    switchChain: async (chainId: number) => {\r\n      await update({\r\n        id: \"switchChain\",\r\n        chainId,\r\n      });\r\n    },\r\n    switchAccount: async (network: string, address: string) => {\r\n      await update({\r\n        id: \"switchAccount\",\r\n        network,\r\n        address,\r\n      });\r\n    },\r\n  };\r\n}\r\n\r\nexport function useChainInfo() {\r\n  const { chainId } = useAccount();\r\n  const { chains } = useSimpleKitContext();\r\n  const chain = chains.find((item) => item.id === chainId);\r\n  return {\r\n    chainLogo: chain?.logo || WrongChainLogo,\r\n    networkLogo: chain?.network?.logo || WrongChainLogo,\r\n    nativeSymbol: chain?.nativeCurrency?.symbol || \"\",\r\n    nativeDecimals: chain?.nativeCurrency?.decimals || 18,\r\n    txExplorer: chain?.blockExplorers?.default.hash || \"\",\r\n    addressExplorer: chain?.blockExplorers?.default.address || \"\",\r\n  };\r\n}\r\n\r\nexport function useSocialProviders(): UseQueryResult<any, unknown> {\r\n  return useQuery({\r\n    queryKey: [\"use-social-providers\"],\r\n    queryFn: async () => {\r\n      const connectors = await getProviders();\r\n      return Object.values(connectors || {}).filter(\r\n        (provider) => provider.id !== \"credentials\"\r\n      );\r\n    },\r\n  });\r\n}\r\n\r\nexport function useEthWallets(): UseQueryResult<any, unknown> {\r\n  const { wagmiConfig } = useSimpleKitContext();\r\n  const { data, ...rest } = useQuery({\r\n    queryKey: [\"use-eth-wallets\"],\r\n    queryFn: async () => {\r\n      const ethWalletLogos = {\r\n        metaMask: MetaMaskLogo,\r\n        walletConnect: WalletConnectLogo,\r\n        coinbaseWalletSDK: CoinbaseLogo,\r\n      };\r\n      const connectors = await wagmiGetConnectors(wagmiConfig);\r\n      return (\r\n        connectors\r\n          .map((item: any) => {\r\n            item.isInstalled =\r\n              item.type === \"mock\" ||\r\n              (item.type === \"injected\" && item.id !== \"metaMask\") ||\r\n              item.id === \"coinbaseWalletSDK\";\r\n            item.icon =\r\n              ethWalletLogos[item.id as keyof typeof ethWalletLogos] ||\r\n              item.icon;\r\n            return item;\r\n          })\r\n          // remove duplicate ids\r\n          .filter(\r\n            (wallet: any, index: number, self: any) =>\r\n              self.findIndex((w: any) => w.id === wallet.id) === index\r\n          )\r\n          // Replace walletConnect's name with the one from options\r\n          .map((wallet: any) => {\r\n            if (wallet.id === \"walletConnect\") {\r\n              return {\r\n                ...wallet,\r\n                name: \"WalletConnect\",\r\n              };\r\n            }\r\n            return wallet;\r\n          })\r\n          // remove wallet with id coinbaseWalletSDK if wallet with id 'com.coinbase.wallet' exists\r\n          .filter(\r\n            (wallet: any, index: number, self: any) =>\r\n              !(\r\n                wallet.id === \"coinbaseWalletSDK\" &&\r\n                self.find((w: any) => w.id === \"com.coinbase.wallet\")\r\n              )\r\n          )\r\n          .filter(\r\n            (wallet: any, index: number, self: any) =>\r\n              !(\r\n                (wallet.id === \"metaMaskSDK\" || wallet.id === \"metaMask\") &&\r\n                self.find(\r\n                  (w: any) =>\r\n                    w.id === \"io.metamask\" || w.id === \"io.metamask.mobile\"\r\n                )\r\n              )\r\n          )\r\n          // order by isInstalled injected connectors first\r\n          .sort((a: any, b: any) => {\r\n            const AisInstalled = a.isInstalled && a.type === \"injected\";\r\n            const BisInstalled = b.isInstalled && b.type === \"injected\";\r\n\r\n            if (AisInstalled && !BisInstalled) return -1;\r\n            if (!AisInstalled && BisInstalled) return 1;\r\n            return 0;\r\n          })\r\n          // move walletConnect to the end\r\n          .sort((a: any, b: any) => {\r\n            if (a.id === \"walletConnect\") return 1;\r\n            if (b.id === \"walletConnect\") return -1;\r\n            return 0;\r\n          })\r\n      );\r\n    },\r\n  });\r\n  return { ...rest, data: data || [] };\r\n}\r\n\r\nexport function useSolanaWallet() {\r\n  const {\r\n    wallet,\r\n    publicKey,\r\n    wallets: solWallets,\r\n    connect: solConnect,\r\n    disconnect: solDisconnect,\r\n    select: solSelect,\r\n    signMessage: solSignMessage,\r\n    signTransaction: solSignTransaction,\r\n    signAllTransactions: solSignAllTransactions,\r\n  } = useWallet();\r\n  return {\r\n    wallet: wallet as Wallet,\r\n    publicKey,\r\n    solConnect,\r\n    solDisconnect,\r\n    solSelect,\r\n    solSignMessage,\r\n    solSignTransaction,\r\n    solSignAllTransactions,\r\n    solWallets: solWallets\r\n      .filter(\r\n        (item: any) =>\r\n          item.readyState === WalletReadyState.Installed ||\r\n          item.readyState === WalletReadyState.Loadable\r\n      )\r\n      .sort((_, cur: any) =>\r\n        cur.readyState === WalletReadyState.Installed ? 1 : -1\r\n      )\r\n      .map((item) => item.adapter),\r\n  };\r\n}\r\n\r\nexport function getProvider(\r\n  chainId: number,\r\n  chains: IChain[],\r\n  wagmiConfig?: any,\r\n  isSignedIn?: boolean\r\n): JsonRpcProvider | FallbackProvider | Connection | undefined {\r\n  const chain = chains.find((item) => item.id === chainId);\r\n\r\n  if (!chain) {\r\n    throw new Error(\"Chain not found\");\r\n  }\r\n\r\n  let provider: JsonRpcProvider | FallbackProvider | Connection | undefined;\r\n\r\n  switch (chain.network.symbol) {\r\n    case NetworkSymbols.eth:\r\n      provider = !isSignedIn\r\n        ? new JsonRpcProvider(chain.rpcUrls.default.http[0])\r\n        : getEthersProvider(wagmiConfig, { chainId });\r\n      break;\r\n    case NetworkSymbols.sol:\r\n      provider = new Connection(\r\n        clusterApiUrl(\r\n          isMainnet ? WalletAdapterNetwork.Mainnet : WalletAdapterNetwork.Devnet\r\n        ),\r\n        \"confirmed\"\r\n      );\r\n      break;\r\n  }\r\n  return provider;\r\n}\r\n\r\nexport function useBalance({\r\n  address: queryAddress,\r\n  chainId: queryChainId,\r\n}: {\r\n  address?: string;\r\n  chainId?: number;\r\n} = {}): UseQueryResult<bigint, unknown> {\r\n  const { chainId: accountChainId, address: accountAddress } = useAccount();\r\n  const { chains, wagmiConfig } = useSimpleKitContext();\r\n  const chainId = queryChainId || accountChainId;\r\n  const chain = chains.find((item) => item.id === chainId);\r\n\r\n  const address = queryAddress || accountAddress;\r\n  const { data: balance = 0n, ...rest } = useQuery({\r\n    queryKey: [\r\n      \"use-account-balance\",\r\n      {\r\n        chainId,\r\n        address,\r\n      },\r\n    ],\r\n    queryFn: async function () {\r\n      if (!address) {\r\n        return 0n;\r\n      }\r\n      if (!chain) {\r\n        throw new Error(\"Chain not found\");\r\n      }\r\n      const provider = getProvider(\r\n        chainId,\r\n        chains,\r\n        wagmiConfig,\r\n        address !== \"\"\r\n      );\r\n      switch (chain.network.symbol) {\r\n        case NetworkSymbols.eth:\r\n          if (\r\n            provider instanceof JsonRpcProvider ||\r\n            provider instanceof FallbackProvider\r\n          ) {\r\n            return await provider.getBalance(address);\r\n          }\r\n          return 0n;\r\n        case NetworkSymbols.sol:\r\n          if (provider instanceof Connection) {\r\n            const lamports = await provider.getBalance(\r\n              new SolanaPublicKey(address)\r\n            );\r\n            return BigInt(lamports);\r\n          }\r\n          return 0n;\r\n        default:\r\n          return 0n;\r\n      }\r\n    },\r\n  });\r\n\r\n  return { ...rest, data: balance } as UseQueryResult<bigint, unknown>;\r\n}\r\n\r\nexport function useTokenBalance({\r\n  address: queryAddress,\r\n  tokenAddress,\r\n  chainId: queryChainId,\r\n}: {\r\n  address?: string;\r\n  tokenAddress: string;\r\n  chainId?: number;\r\n}): UseQueryResult<bigint, unknown> {\r\n  const { chainId: accountChainId, address: accountAddress } = useAccount();\r\n  const { chains, wagmiConfig } = useSimpleKitContext();\r\n  const chainId = queryChainId || accountChainId;\r\n  const chain = chains.find((item) => item.id === chainId);\r\n\r\n  const address = queryAddress || accountAddress;\r\n\r\n  const { data: balance = 0n, ...rest } = useQuery({\r\n    queryKey: [\r\n      \"use-token-balance\",\r\n      {\r\n        chainId,\r\n        address,\r\n        tokenAddress,\r\n      },\r\n    ],\r\n    queryFn: async function () {\r\n      if (!address) {\r\n        return 0n;\r\n      }\r\n      if (!chain) {\r\n        throw new Error(\"Chain not found\");\r\n      }\r\n      const provider = getProvider(\r\n        chainId,\r\n        chains,\r\n        wagmiConfig,\r\n        address !== \"\"\r\n      );\r\n      switch (chain.network.symbol) {\r\n        case NetworkSymbols.eth:\r\n          if (\r\n            provider instanceof JsonRpcProvider ||\r\n            provider instanceof FallbackProvider\r\n          ) {\r\n            const contract = new Contract(tokenAddress, erc20Abi, provider);\r\n            return await contract.balanceOf(address);\r\n          }\r\n          return 0n;\r\n        case NetworkSymbols.sol:\r\n          if (provider instanceof Connection) {\r\n            const tokenAccount = await provider.getTokenAccountsByOwner(\r\n              new SolanaPublicKey(address),\r\n              { mint: new SolanaPublicKey(tokenAddress) }\r\n            );\r\n            if (tokenAccount.value.length === 0) return 0n;\r\n            const accountInfo = await provider.getTokenAccountBalance(\r\n              tokenAccount.value[0].pubkey\r\n            );\r\n            return BigInt(accountInfo.value.amount);\r\n          }\r\n          return 0n;\r\n        default:\r\n          return 0n;\r\n      }\r\n    },\r\n  });\r\n\r\n  return { ...rest, data: balance };\r\n}\r\n\r\nexport function useConnectAccount() {\r\n  const { chains, pendingItem, wagmiConfig, setRouter, setPendingItem } =\r\n    useSimpleKitContext();\r\n\r\n  const { solWallets } = useSolanaWallet();\r\n  const { data: ethWallets } = useEthWallets();\r\n  const { data: socialProviders } = useSocialProviders();\r\n\r\n  return useMutation({\r\n    mutationKey: [\r\n      \"use-connect\",\r\n      {\r\n        id: pendingItem?.id,\r\n        network: pendingItem?.network,\r\n      },\r\n    ],\r\n    mutationFn: async () => {\r\n      if (!pendingItem) {\r\n        return;\r\n      }\r\n      if (pendingItem.network === NetworkSymbols.eth) {\r\n        const connector = ethWallets.find((w: any) => w.id === pendingItem.id);\r\n        if (!connector) {\r\n          throw new Error(`Wallet ${pendingItem.id} not found`);\r\n        }\r\n        try {\r\n          await wagmiDisconnect(wagmiConfig, {\r\n            connector,\r\n          });\r\n        } catch {}\r\n\r\n        let result: {\r\n          chainId: number;\r\n          accounts: string[];\r\n        } | null = null;\r\n        try {\r\n          const connectResult = await wagmiConnect(wagmiConfig, {\r\n            connector,\r\n          });\r\n          result = {\r\n            chainId: connectResult.chainId,\r\n            accounts: Array.from(connectResult.accounts),\r\n          };\r\n        } catch (error) {\r\n          if (!(error instanceof ConnectorAlreadyConnectedError)) {\r\n            console.log(\"error\", error);\r\n            throw error;\r\n          }\r\n        }\r\n\r\n        if (!result) {\r\n          const chainId = wagmiGetChainId(wagmiConfig);\r\n          const accountResult = wagmiGetAccount(wagmiConfig);\r\n          result = {\r\n            chainId,\r\n            accounts: accountResult?.address ? [accountResult.address] : [],\r\n          };\r\n        }\r\n\r\n        if (!result?.chainId) {\r\n          throw new Error(\"Failed to connect to wallet\");\r\n        }\r\n\r\n        const chain = chains.find((c) => c.id === result!.chainId);\r\n\r\n        if (!chain) {\r\n          const newChain = chains.find(\r\n            (c) => c.network.symbol === NetworkSymbols.eth\r\n          );\r\n          if (!newChain) {\r\n            throw new Error(\"Chain not found\");\r\n          }\r\n          await wagmiSwitchChain(wagmiConfig, {\r\n            connector,\r\n            chainId: newChain.id,\r\n          });\r\n        }\r\n\r\n        setRouter(() => {\r\n          setPendingItem({\r\n            id: connector?.id,\r\n            name: connector?.name,\r\n            logo: connector?.icon,\r\n            network: NetworkSymbols.eth,\r\n            chainId: chain!.id,\r\n            address: result?.accounts?.[0],\r\n          });\r\n          return routes.accountSigning;\r\n        });\r\n      } else if (pendingItem.network === NetworkSymbols.sol) {\r\n        const connector = solWallets.find(\r\n          (w: any) => w.name === pendingItem.id\r\n        );\r\n        if (!connector) {\r\n          throw new Error(`Wallet ${pendingItem.id} not found`);\r\n        }\r\n        if (connector.connected) {\r\n          await connector.disconnect();\r\n        }\r\n        await connector.connect();\r\n      } else {\r\n        const provider = socialProviders.find(\r\n          (p: any) => p.id === pendingItem.id\r\n        );\r\n        if (!provider) {\r\n          throw new Error(`Provider ${pendingItem.id} not found`);\r\n        }\r\n        // const authWindow = popupWindow(\r\n        //   `/auth/${provider.id}`,\r\n        //   \"Connect Social Wallet\"\r\n        // );\r\n        // if (!authWindow) {\r\n        //   throw new Error(\"Popup blocked\");\r\n        // }\r\n        // await new Promise((resolve) => {\r\n        //   const checkClosed = setInterval(() => {\r\n        //     if (authWindow.closed) {\r\n        //       clearInterval(checkClosed);\r\n        //       resolve(true);\r\n        //     }\r\n        //   }, 500);\r\n        // });\r\n        await signIn(provider.id);\r\n        toast.success(\"Redirecting to oauth provider\");\r\n      }\r\n    },\r\n    onSuccess: () => {\r\n      toast.success(\"Connected to wallet\");\r\n    },\r\n    onError: (error: any) => {\r\n      console.log(\"connect error\", error);\r\n      throw error;\r\n    },\r\n  });\r\n}\r\n\r\nexport function useSwitchChain(): UseMutationResult<void, unknown, number> {\r\n  const {\r\n    address,\r\n    social,\r\n    chain,\r\n    network,\r\n    provider,\r\n    switchChain: switchChainAccount,\r\n  } = useAccount();\r\n\r\n  const { wagmiConfig } = useSimpleKitContext();\r\n  const { data: ethWallets } = useEthWallets();\r\n\r\n  return useMutation({\r\n    mutationKey: [\r\n      \"use-switch-chain\",\r\n      { social, network: chain?.network?.symbol },\r\n    ],\r\n    mutationFn: async (chainId: number) => {\r\n      if (!address) {\r\n        return;\r\n      }\r\n      if (!social) {\r\n        if (network === NetworkSymbols.eth) {\r\n          const connector = ethWallets.find((w: any) => w.id === provider);\r\n          if (!connector) {\r\n            throw new Error(`Wallet ${provider} not found`);\r\n          }\r\n          await wagmiSwitchChain(wagmiConfig, {\r\n            connector,\r\n            chainId,\r\n          });\r\n        } else if (network === NetworkSymbols.sol) {\r\n          throw new Error(\"Solana wallet does not support chain switching\");\r\n        } else {\r\n          throw new Error(\"Unknown network\");\r\n        }\r\n      } else {\r\n        await switchChainAccount(chainId);\r\n      }\r\n    },\r\n    onSuccess: () => {\r\n      toast.success(\"Switched to chain\");\r\n    },\r\n    onError: (error: any) => {\r\n      console.log(\"switch chain error\", error);\r\n      throw error;\r\n    },\r\n  });\r\n}\r\n\r\nexport function useSignAccount(): UseMutationResult<void, unknown, void> {\r\n  const { pendingItem, wagmiConfig, signMessage } = useSimpleKitContext();\r\n\r\n  const { solWallets } = useSolanaWallet();\r\n  const { data: ethWallets } = useEthWallets();\r\n\r\n  return useMutation({\r\n    mutationKey: [\r\n      \"use-sign-account\",\r\n      {\r\n        id: pendingItem?.id,\r\n        network: pendingItem?.network,\r\n      },\r\n    ],\r\n    mutationFn: async () => {\r\n      if (!pendingItem) {\r\n        return;\r\n      }\r\n      let signature;\r\n      if (pendingItem.network === NetworkSymbols.eth) {\r\n        const connector = ethWallets.find((w: any) => w.id === pendingItem.id);\r\n        if (!connector) {\r\n          throw new Error(`Wallet ${pendingItem.id} not found`);\r\n        }\r\n\r\n        signature = await wagmiSignMessage(wagmiConfig, {\r\n          connector,\r\n          message: signMessage,\r\n        });\r\n      } else if (pendingItem.network === NetworkSymbols.sol) {\r\n        const connector: any = solWallets.find(\r\n          (w: any) => w.name === pendingItem.id\r\n        );\r\n        if (!connector) {\r\n          throw new Error(`Wallet ${pendingItem.id} not found`);\r\n        }\r\n        const signatureContent = await connector.signMessage(\r\n          Buffer.from(signMessage)\r\n        );\r\n\r\n        signature = Buffer.from(signatureContent).toString(\"base64\");\r\n      } else {\r\n        throw new Error(\"Unknown network\");\r\n      }\r\n      await signIn(\"credentials\", {\r\n        redirect: false,\r\n        signature,\r\n        provider: pendingItem.id,\r\n        chainId: pendingItem.chainId,\r\n        address: pendingItem.address,\r\n        message: signMessage,\r\n      });\r\n    },\r\n    onSuccess: () => {\r\n      toast.success(\"Signed in\");\r\n    },\r\n    onError: (error: any) => {\r\n      console.log(\"sign account error\", error);\r\n      throw error;\r\n    },\r\n  });\r\n}\r\n\r\nexport function useSwitchAccount(): UseMutationResult<\r\n  void,\r\n  unknown,\r\n  { network: string; address: string }\r\n> {\r\n  const { pendingItem, setRouter, setPendingItem } = useSimpleKitContext();\r\n  const { users } = useAccount();\r\n  const { solWallets } = useSolanaWallet();\r\n  const { data: ethWallets } = useEthWallets();\r\n\r\n  return useMutation({\r\n    mutationKey: [\r\n      \"use-sign-account\",\r\n      {\r\n        id: pendingItem?.id,\r\n        network: pendingItem?.network,\r\n      },\r\n    ],\r\n    mutationFn: async ({\r\n      network,\r\n      address,\r\n    }: {\r\n      network: string;\r\n      address: string;\r\n    }) => {\r\n      if (!pendingItem) {\r\n        return;\r\n      }\r\n      const user = users.find(\r\n        (user) => user.network === network && user.address === address\r\n      );\r\n      if (!user) {\r\n        throw new Error(\"User not found\");\r\n      }\r\n      if (!user.social) {\r\n        if (user.network === NetworkSymbols.eth) {\r\n          const connector = ethWallets.find((w: any) => w.id === user.provider);\r\n          if (!connector) {\r\n            throw new Error(`Wallet ${user.provider} not found`);\r\n          }\r\n          setRouter(() => {\r\n            setPendingItem({\r\n              id: connector.id,\r\n              logo: connector.icon,\r\n              network: NetworkSymbols.eth,\r\n              description: `Open the ${connector.name} browser extension to connect your wallet.`,\r\n            });\r\n            return routes.walletConnecting;\r\n          });\r\n        } else {\r\n          const connector = solWallets.find(\r\n            (w: any) => w.name === user.provider\r\n          );\r\n          if (!connector) {\r\n            throw new Error(`Wallet ${user.provider} not found`);\r\n          }\r\n          setRouter(() => {\r\n            setPendingItem({\r\n              id: connector.name,\r\n              logo: connector.icon,\r\n              network: NetworkSymbols.sol,\r\n              description: `Open the ${connector.name} browser extension to connect your wallet.`,\r\n            });\r\n            return routes.walletConnecting;\r\n          });\r\n        }\r\n      } else {\r\n        setRouter(() => {\r\n          setPendingItem({\r\n            id: user.provider,\r\n            logo: user.image,\r\n            network: \"\",\r\n            description: `We connect your \"${user.name}\" account to our platform.`,\r\n          });\r\n          return routes.socialConnecting;\r\n        });\r\n      }\r\n    },\r\n    onSuccess: () => {\r\n      // toast.success(\"Account switched\");\r\n    },\r\n    onError: (error: any) => {\r\n      console.log(\"switch account error\", error);\r\n      throw error;\r\n    },\r\n  });\r\n}\r\n\r\nexport function useDisconnectAccount(): UseMutationResult<void, unknown, void> {\r\n  const { wagmiConfig } = useSimpleKitContext();\r\n  const { data: ethWallets } = useEthWallets();\r\n  const { solWallets, solDisconnect } = useSolanaWallet();\r\n  const { provider, social, address, network } = useAccount();\r\n  return useMutation({\r\n    mutationKey: [\r\n      \"use-disconnect-account\",\r\n      {\r\n        social,\r\n        address,\r\n        network,\r\n      },\r\n    ],\r\n    mutationFn: async () => {\r\n      if (!social) {\r\n        if (network === NetworkSymbols.eth) {\r\n          const connector = ethWallets.find((w: any) => w.id === provider);\r\n          if (!connector) {\r\n            throw new Error(`Wallet ${provider} not found`);\r\n          }\r\n\r\n          await wagmiDisconnect(wagmiConfig, {\r\n            connector,\r\n          });\r\n        } else if (network === NetworkSymbols.sol) {\r\n          const connector = solWallets.find((w: any) => w.name === provider);\r\n          if (!connector) {\r\n            throw new Error(`Wallet ${provider} not found`);\r\n          }\r\n          await solDisconnect();\r\n        } else {\r\n          throw new Error(\"Unknown network\");\r\n        }\r\n      }\r\n      await signOut({\r\n        redirect: false,\r\n      });\r\n    },\r\n    onSuccess: () => {\r\n      toast.success(\"Signed out\");\r\n    },\r\n    onError: (error: any) => {\r\n      console.log(\"disconnect account error\", error);\r\n      throw error;\r\n    },\r\n  });\r\n}\r\n\r\nexport function useBalanceAsync({\r\n  address: queryAddress,\r\n  chainId: queryChainId,\r\n}: {\r\n  address?: string;\r\n  chainId?: number;\r\n} = {}): UseMutationResult<bigint, unknown, void> {\r\n  const { chainId: accountChainId, address: accountAddress } = useAccount();\r\n  const { chains, wagmiConfig } = useSimpleKitContext();\r\n  const chainId = queryChainId || accountChainId;\r\n  const chain = chains.find((item) => item.id === chainId);\r\n  if (!chain) {\r\n    throw new Error(\"Chain not found\");\r\n  }\r\n  const network = chain.network.symbol;\r\n  const address = queryAddress || accountAddress;\r\n\r\n  return useMutation({\r\n    mutationKey: [\r\n      \"use-balance-async\",\r\n      {\r\n        chainId,\r\n        address,\r\n      },\r\n    ],\r\n    mutationFn: async function () {\r\n      let balance: bigint = 0n;\r\n      const provider = getProvider(\r\n        chainId,\r\n        chains,\r\n        wagmiConfig,\r\n        address !== \"\"\r\n      );\r\n      switch (network) {\r\n        case NetworkSymbols.eth:\r\n          if (\r\n            provider instanceof JsonRpcProvider ||\r\n            provider instanceof FallbackProvider\r\n          ) {\r\n            balance = await provider.getBalance(address);\r\n          }\r\n          break;\r\n        case NetworkSymbols.sol:\r\n          if (provider instanceof Connection) {\r\n            const lamports = await provider.getBalance(\r\n              new SolanaPublicKey(address)\r\n            );\r\n            balance = BigInt(lamports);\r\n          }\r\n          break;\r\n        default:\r\n          break;\r\n      }\r\n      return balance;\r\n    },\r\n    onError: (error: any) => {\r\n      console.log(error);\r\n    },\r\n  });\r\n}\r\n\r\nexport function useTokenBalanceAsync({\r\n  address: queryAddress,\r\n  chainId: queryChainId,\r\n}: {\r\n  address?: string;\r\n  chainId?: number;\r\n} = {}): UseMutationResult<bigint, unknown, string> {\r\n  const { chainId: accountChainId, address: accountAddress } = useAccount();\r\n  const { chains, wagmiConfig } = useSimpleKitContext();\r\n  const chainId = queryChainId || accountChainId;\r\n  const chain = chains.find((item) => item.id === chainId);\r\n  if (!chain) {\r\n    throw new Error(\"Chain not found\");\r\n  }\r\n  const address = queryAddress || accountAddress;\r\n\r\n  return useMutation({\r\n    mutationKey: [\r\n      \"use-token-balance-async\",\r\n      {\r\n        chainId,\r\n        address,\r\n      },\r\n    ],\r\n    mutationFn: async function (tokenAddress: string) {\r\n      if (!address) {\r\n        return 0n;\r\n      }\r\n      if (!chain) {\r\n        throw new Error(\"Chain not found\");\r\n      }\r\n      const provider = getProvider(\r\n        chainId,\r\n        chains,\r\n        wagmiConfig,\r\n        address !== \"\"\r\n      );\r\n      switch (chain.network.symbol) {\r\n        case NetworkSymbols.eth:\r\n          if (\r\n            provider instanceof JsonRpcProvider ||\r\n            provider instanceof FallbackProvider\r\n          ) {\r\n            const contract = new Contract(tokenAddress, erc20Abi, provider);\r\n            return await contract.balanceOf(address);\r\n          }\r\n          return 0n;\r\n        case NetworkSymbols.sol:\r\n          if (provider instanceof Connection) {\r\n            const tokenAccount = await provider.getTokenAccountsByOwner(\r\n              new SolanaPublicKey(address),\r\n              { mint: new SolanaPublicKey(tokenAddress) }\r\n            );\r\n            if (tokenAccount.value.length === 0) return 0n;\r\n            const accountInfo = await provider.getTokenAccountBalance(\r\n              tokenAccount.value[0].pubkey\r\n            );\r\n            return BigInt(accountInfo.value.amount);\r\n          }\r\n          return 0n;\r\n        default:\r\n          return 0n;\r\n      }\r\n    },\r\n    onError: (error: any) => {\r\n      console.log(error);\r\n    },\r\n  });\r\n}\r\n\r\nexport function useTransferAsync(): UseMutationResult<\r\n  any,\r\n  unknown,\r\n  { address: string; value: bigint }\r\n> {\r\n  const { chainId, social } = useAccount();\r\n  const { chains } = useSimpleKitContext();\r\n  return useMutation({\r\n    mutationKey: [\"use-send-transaction-async\", { chainId, social }],\r\n    mutationFn: async ({ address, value }: any) => {\r\n      const chain = chains.find((c) => c.id === chainId);\r\n      if (!chain) {\r\n        throw new Error(\"Chain not found\");\r\n      }\r\n      const network = chain.network.symbol;\r\n      if (social) {\r\n        const serialized = serialize(network, { address, value });\r\n        const response = await fetch(\"/api/based-auth/transfer\", {\r\n          method: \"POST\",\r\n          body: JSON.stringify(serialized),\r\n        });\r\n        if (!response.ok) {\r\n          const error = await response.json();\r\n          throw new Error(error.message);\r\n        }\r\n        return response.json();\r\n      } else {\r\n        throw new Error(\r\n          \"This feature is not available for only social wallets\"\r\n        );\r\n      }\r\n    },\r\n    onError: (error: any) => {\r\n      toast.error(error.message);\r\n      throw error;\r\n    },\r\n    onSuccess: () => {\r\n      toast.success(\"Balance transferred\");\r\n    },\r\n  });\r\n}\r\n\r\nexport function useReadContractAsync({\r\n  chainId: queryChainId,\r\n}: {\r\n  chainId?: number;\r\n} = {}): UseMutationResult<any, unknown, any> {\r\n  const { chainId: accountChainId, social, switchChain } = useAccount();\r\n  const { data: ethWallets } = useEthWallets();\r\n  const { solWallets } = useSolanaWallet();\r\n  const { chains, wagmiConfig } = useSimpleKitContext();\r\n\r\n  const chainId = queryChainId || accountChainId;\r\n\r\n  return useMutation({\r\n    mutationKey: [\r\n      \"use-read-contract-async\",\r\n      {\r\n        chainId,\r\n        social,\r\n        wallets: [\r\n          ...ethWallets.map((w: any) => w.id),\r\n          ...solWallets.map((w: any) => w.name),\r\n        ],\r\n      },\r\n    ],\r\n    mutationFn: async (payload: any) => {\r\n      const chain = chains.find((c) => c.id === chainId);\r\n      if (!chain) {\r\n        throw new Error(\"Chain not found\");\r\n      }\r\n      const network = chain.network.symbol;\r\n      if (social) {\r\n        if (accountChainId !== chainId) {\r\n          await switchChain(chainId);\r\n        }\r\n        const response = await fetch(\"/api/based-auth/read-contract\", {\r\n          method: \"POST\",\r\n          body: serialize(network, payload),\r\n        });\r\n        if (!response.ok) {\r\n          const error = await response.json();\r\n          throw new Error(error.message);\r\n        }\r\n        const data = await response.json();\r\n        return deserialize(data);\r\n      }\r\n\r\n      if (network === NetworkSymbols.eth) {\r\n        const provider = getEthersProvider(wagmiConfig, {\r\n          chainId,\r\n        });\r\n        const contract = new Contract(payload.address, payload.abi, provider);\r\n        const data = await contract[payload.functionName](...payload.args);\r\n        return deserialize(serialize(network, data));\r\n      }\r\n      throw new Error(\"Unknown network\");\r\n    },\r\n    onError: (error: any) => {\r\n      console.log(error);\r\n      throw error;\r\n    },\r\n  });\r\n}\r\n\r\nexport function useWriteContractAsync({\r\n  key,\r\n  chainId: queryChainId,\r\n}: {\r\n  key?: string;\r\n  chainId?: number;\r\n} = {}): UseMutationResult<any, unknown, any> {\r\n  const {\r\n    chainId: accountChainId,\r\n    social,\r\n    provider,\r\n    switchChain,\r\n    address: account,\r\n  } = useAccount();\r\n  const { chains, wagmiConfig } = useSimpleKitContext();\r\n  const { data: ethWallets } = useEthWallets();\r\n  const { solWallets, solSelect } = useSolanaWallet();\r\n\r\n  useEffect(() => {\r\n    if (solWallets.some((w) => w.name === provider)) {\r\n      solSelect(provider as WalletName);\r\n    }\r\n  }, [provider, solWallets]);\r\n\r\n  const chainId = queryChainId || accountChainId;\r\n\r\n  type Payload = {\r\n    abi: any;\r\n    chainId: number;\r\n    address: string;\r\n    functionName: `0x${string}`;\r\n    args: any[];\r\n    // Ethereum Special\r\n    value?: bigint;\r\n    // Solana Special\r\n    signers?: string[];\r\n    accounts?: Record<string, SolanaPublicKey>;\r\n    preInstructions?: (SolanaTransactionInstruction & {\r\n      functionName?: string;\r\n      args?: any[];\r\n      accounts?: Record<string, SolanaPublicKey>;\r\n    })[];\r\n    remainingAccounts?: SolanaPublicKey[];\r\n  };\r\n\r\n  return useMutation({\r\n    mutationKey: [\r\n      \"use-write-contract-async\",\r\n      {\r\n        key,\r\n        chainId,\r\n        social,\r\n        account,\r\n        wallets: [\r\n          ...ethWallets.map((w: any) => w.id),\r\n          ...solWallets.map((w: any) => w.name),\r\n        ],\r\n        provider,\r\n      },\r\n    ],\r\n    mutationFn: async (payload: Payload) => {\r\n      const chain = chains.find((c) => c.id === chainId);\r\n      if (!chain) {\r\n        throw new Error(\"Chain not found\");\r\n      }\r\n      const network = chain.network.symbol;\r\n\r\n      const serialized = serialize(network, payload);\r\n      if (social) {\r\n        if (chainId !== payload.chainId) {\r\n          await switchChain(payload.chainId);\r\n        }\r\n        const response = await fetch(\"/api/based-auth/write-contract\", {\r\n          method: \"POST\",\r\n          body: JSON.stringify(serialized),\r\n        });\r\n        if (!response.ok) {\r\n          const error = await response.json();\r\n          console.log(error);\r\n          throw new Error(error.message);\r\n        }\r\n        return response.json();\r\n      } else if (network === NetworkSymbols.eth) {\r\n        const connector = ethWallets.find((w: any) => w.id === provider);\r\n        if (!connector) {\r\n          throw new Error(`Wallet ${provider} not found`);\r\n        }\r\n        try {\r\n          const { abi, functionName, address, value = 0n, args } = payload;\r\n\r\n          const tx = await wagmiWriteContract(wagmiConfig, {\r\n            abi,\r\n            args,\r\n            chainId,\r\n            connector,\r\n            value,\r\n            functionName,\r\n            address: address as `0x${string}`,\r\n          });\r\n          return tx;\r\n        } catch (err: any) {\r\n          console.log(err);\r\n          throw new Error(err.shortMessage);\r\n        }\r\n      } else if (network === NetworkSymbols.sol) {\r\n        const connector:\r\n          | {\r\n              publicKey: SolanaPublicKey;\r\n              signTransaction: (\r\n                tx: SolanaTransaction\r\n              ) => Promise<VersionedTransaction>;\r\n              signAllTransactions: (\r\n                txs: SolanaTransaction[]\r\n              ) => Promise<VersionedTransaction[]>;\r\n            }\r\n          | undefined = solWallets.find((w: any) => w.name === provider) as any;\r\n        if (!connector) {\r\n          throw new Error(`Wallet ${provider} not found`);\r\n        }\r\n\r\n        const {\r\n          abi,\r\n          address,\r\n          functionName,\r\n          args,\r\n          accounts = {},\r\n          preInstructions = [],\r\n          signers = [],\r\n          remainingAccounts = [],\r\n        }: Payload = deserialize(serialized);\r\n\r\n        const connection = getProvider(chainId, chains) as Connection;\r\n\r\n        const anchorProvider = new AnchorProvider(\r\n          connection,\r\n          connector as any,\r\n          {}\r\n        );\r\n\r\n        const program = new Program(\r\n          abi as Idl,\r\n          new SolanaPublicKey(address),\r\n          anchorProvider\r\n        );\r\n\r\n        try {\r\n          const ixs = await Promise.all([\r\n            Promise.resolve(\r\n              ComputeBudgetProgram.setComputeUnitLimit({\r\n                units: 400000,\r\n              })\r\n            ),\r\n            Promise.resolve(\r\n              ComputeBudgetProgram.setComputeUnitPrice({\r\n                microLamports: 100000,\r\n              })\r\n            ),\r\n            ...preInstructions.map((i) =>\r\n              i.programId.toBase58() !== program.programId.toBase58()\r\n                ? Promise.resolve(i)\r\n                : program.methods[i.functionName as string](...(i.args || []))\r\n                    .accounts(i.accounts || {})\r\n                    .instruction()\r\n            ),\r\n          ]);\r\n          const tx = await program.methods[functionName](...args)\r\n            .accounts(accounts)\r\n            .preInstructions(ixs)\r\n            .remainingAccounts(\r\n              remainingAccounts.map((item: SolanaPublicKey) => ({\r\n                isWritable: false,\r\n                isSigner: false,\r\n                pubkey: item,\r\n              }))\r\n            )\r\n            .transaction();\r\n\r\n          tx.recentBlockhash = (\r\n            await connection.getLatestBlockhash()\r\n          ).blockhash;\r\n\r\n          tx.feePayer = connector.publicKey as SolanaPublicKey;\r\n\r\n          if (signers.length > 0) {\r\n            tx.partialSign(\r\n              ...signers.map((signer: string) =>\r\n                SolanaKeypair.fromSecretKey(\r\n                  Buffer.from(signer, \"hex\") as Uint8Array\r\n                )\r\n              )\r\n            );\r\n          }\r\n\r\n          const size = estimateTransactionSize(tx);\r\n\r\n          if (size < maxTxSize) {\r\n            const signature = await anchorProvider.sendAndConfirm(tx);\r\n            return signature;\r\n          }\r\n\r\n          const [lookupTableInstruction, lookupTableAddress] =\r\n            AddressLookupTableProgram.createLookupTable({\r\n              authority: connector.publicKey,\r\n              payer: connector.publicKey,\r\n              recentSlot: await connection.getSlot(),\r\n            });\r\n          const extendInstruction = AddressLookupTableProgram.extendLookupTable(\r\n            {\r\n              payer: connector.publicKey,\r\n              authority: connector.publicKey,\r\n              lookupTable: lookupTableAddress,\r\n              addresses: Object.values(accounts).slice(0, limitOnTable),\r\n            }\r\n          );\r\n\r\n          const lookupTableTx = new SolanaTransaction().add(\r\n            ComputeBudgetProgram.setComputeUnitLimit({\r\n              units: 400000,\r\n            }),\r\n            ComputeBudgetProgram.setComputeUnitPrice({\r\n              microLamports: 100000,\r\n            }),\r\n            lookupTableInstruction,\r\n            extendInstruction\r\n          );\r\n          await anchorProvider.sendAndConfirm(lookupTableTx);\r\n\r\n          const lookupTableAccount = await connection.getAddressLookupTable(\r\n            lookupTableAddress,\r\n            {\r\n              commitment: \"confirmed\",\r\n            }\r\n          );\r\n\r\n          if (!lookupTableAccount.value) {\r\n            throw new Error(\"Lookup table account not found\");\r\n          }\r\n\r\n          const uploadedAddresses = lookupTableAccount.value.state.addresses;\r\n          if (!uploadedAddresses || uploadedAddresses.length === 0) {\r\n            throw new Error(\"Lookup table is empty\");\r\n          }\r\n\r\n          const ix = await program.methods[functionName](...args)\r\n            .accounts(accounts)\r\n            .remainingAccounts(\r\n              remainingAccounts.map((item: SolanaPublicKey) => ({\r\n                isWritable: false,\r\n                isSigner: false,\r\n                pubkey: item,\r\n              }))\r\n            )\r\n            .instruction();\r\n\r\n          const messageV0 = new TransactionMessage({\r\n            payerKey: connector.publicKey,\r\n            recentBlockhash: (await connection.getLatestBlockhash()).blockhash,\r\n            instructions: [...ixs, ix],\r\n          }).compileToV0Message([lookupTableAccount.value]);\r\n\r\n          const transaction = new VersionedTransaction(messageV0);\r\n\r\n          const signature = await anchorProvider.sendAndConfirm(transaction);\r\n\r\n          return signature;\r\n        } catch (err: any) {\r\n          console.log(err);\r\n          throw new Error(err.transactionMessage || err.message);\r\n        }\r\n\r\n        // const instructions = await Promise.all(\r\n        //   (deserialized.instructions || []).map(async (item) => {\r\n        //     console.log(item);\r\n        //     const ix = await program.methods[item.functionName](...item.args)\r\n        //       .accounts({\r\n        //         ...item.accounts,\r\n        //         systemProgram: SystemProgram.programId,\r\n        //         signer: connector.publicKey as SolanaPublicKey,\r\n        //       })\r\n        //       .instruction();\r\n\r\n        //     return ix;\r\n        //   })\r\n        // );\r\n\r\n        // transaction = new SolanaTransaction();\r\n        // transaction.add(...prependInstructions, ...instructions);\r\n\r\n        // try {\r\n        //   signature = await connector.sendTransaction(transaction, connection);\r\n        // } catch (err: any) {\r\n        //   if (\r\n        //     err.name === \"WalletSendTransactionError\" &&\r\n        //     err.message?.startsWith(\"Transaction too large\")\r\n        //   ) {\r\n        //     const reducedAccounts = {\r\n        //       ...(deserialized.instructions || []).reduce(\r\n        //         (acc: Record<string, SolanaPublicKey>, item: any) => ({\r\n        //           ...acc,\r\n        //           ...item.accounts,\r\n        //         }),\r\n        //         {}\r\n        //       ),\r\n        //       signer: connector.publicKey,\r\n        //       systemProgram: SystemProgram.programId,\r\n        //     };\r\n\r\n        //     const [lookupTableInst, lookupTableAddress] =\r\n        //       AddressLookupTableProgram.createLookupTable({\r\n        //         authority: connector.publicKey as SolanaPublicKey,\r\n        //         payer: connector.publicKey as SolanaPublicKey,\r\n        //         recentSlot: await connection.getSlot(),\r\n        //       });\r\n\r\n        //     const lookupKeys = Object.keys(reducedAccounts).slice(0, 20);\r\n\r\n        //     const extendInstruction =\r\n        //       AddressLookupTableProgram.extendLookupTable({\r\n        //         payer: connector.publicKey as SolanaPublicKey,\r\n        //         authority: connector.publicKey as SolanaPublicKey,\r\n        //         lookupTable: lookupTableAddress,\r\n        //         addresses: Object.values(reducedAccounts).slice(\r\n        //           0,\r\n        //           20\r\n        //         ) as SolanaPublicKey[],\r\n        //       });\r\n\r\n        //     let tx = new SolanaTransaction();\r\n        //     tx.add(...prependInstructions, lookupTableInst, extendInstruction);\r\n\r\n        //     signature = await connector.sendTransaction(tx, connection);\r\n        //     await connection.confirmTransaction(signature, \"confirmed\");\r\n\r\n        //     const lookupTableAccount = (\r\n        //       await connection.getAddressLookupTable(lookupTableAddress, {\r\n        //         commitment: \"confirmed\",\r\n        //       })\r\n        //     ).value;\r\n\r\n        //     const uploadedAddresses = lookupTableAccount?.state?.addresses;\r\n        //     if (!uploadedAddresses) {\r\n        //       throw new Error(\"Lookup table not found\");\r\n        //     }\r\n\r\n        //     const instructions = await Promise.all(\r\n        //       (deserialized.instructions || []).map(async (item: any) => {\r\n        //         const ix = await program.methods[item.functionName](\r\n        //           ...item.args\r\n        //         )\r\n        //           .accounts(\r\n        //             Object.fromEntries(\r\n        //               Object.keys(item.accounts)\r\n        //                 .map((key) => [\r\n        //                   key,\r\n        //                   lookupKeys.findIndex((cur) => cur === key) > -1\r\n        //                     ? uploadedAddresses[\r\n        //                         lookupKeys.findIndex((cur) => cur === key)\r\n        //                       ]\r\n        //                     : (reducedAccounts[\r\n        //                         key as keyof typeof reducedAccounts\r\n        //                       ] as SolanaPublicKey),\r\n        //                 ])\r\n        //                 .concat([\r\n        //                   ...[\"signer\", \"systemProgram\"].map((key) => [\r\n        //                     key,\r\n        //                     lookupKeys.findIndex((cur) => cur === key) > -1\r\n        //                       ? uploadedAddresses[\r\n        //                           lookupKeys.findIndex((cur) => cur === key)\r\n        //                         ]\r\n        //                       : (reducedAccounts[\r\n        //                           key as keyof typeof reducedAccounts\r\n        //                         ] as SolanaPublicKey),\r\n        //                   ]),\r\n        //                 ])\r\n        //             )\r\n        //           )\r\n        //           .remainingAccounts(\r\n        //             (item.remainingAccounts || []).map(\r\n        //               (item: SolanaPublicKey) => ({\r\n        //                 isWritable: false,\r\n        //                 isSigner: false,\r\n        //                 pubkey: item,\r\n        //               })\r\n        //             )\r\n        //           )\r\n        //           .instruction();\r\n        //         return ix;\r\n        //       })\r\n        //     );\r\n\r\n        //     const blockhash = (await connection.getLatestBlockhash()).blockhash;\r\n\r\n        //     const messageV0 = new TransactionMessage({\r\n        //       payerKey: connector.publicKey as SolanaPublicKey,\r\n        //       recentBlockhash: blockhash,\r\n        //       instructions: [...prependInstructions, ...instructions],\r\n        //     }).compileToV0Message([lookupTableAccount]);\r\n\r\n        //     transaction = new VersionedTransaction(messageV0) as any;\r\n\r\n        //     (connector as any).signTransaction(transaction);\r\n        //     signature = await connector.sendTransaction(\r\n        //       transaction,\r\n        //       connection\r\n        //     );\r\n        //   } else {\r\n        //     throw new Error(err.meesage);\r\n        //   }\r\n        // }\r\n        // await connection.confirmTransaction(signature, \"confirmed\");\r\n        // const receipt = await connection.getParsedTransaction(signature, {\r\n        //   commitment: \"confirmed\",\r\n        //   maxSupportedTransactionVersion: 0,\r\n        // });\r\n\r\n        // return receipt;\r\n      }\r\n\r\n      return;\r\n    },\r\n  });\r\n}\r\n","import { cn } from \"./shadcn/utils\";\r\n\r\n// export function LoaderSVG({ className }: { className?: string }) {\r\n//   return (\r\n//     <img\r\n//       src={loaderSVG}\r\n//       alt=\"loader\"\r\n//       className={cn(\r\n//         \"web3kit-w-4 web3kit-h-4 web3kit-text-foreground\",\r\n//         className\r\n//       )}\r\n//     />\r\n//   );\r\n// }\r\n\r\nexport const MenuIcon = () => (\r\n  <svg\r\n    width=\"15\"\r\n    height=\"15\"\r\n    viewBox=\"0 0 15 15\"\r\n    fill=\"none\"\r\n    xmlns=\"http://www.w3.org/2000/svg\"\r\n  >\r\n    <path\r\n      d=\"M1.5 3C1.22386 3 1 3.22386 1 3.5C1 3.77614 1.22386 4 1.5 4H13.5C13.7761 4 14 3.77614 14 3.5C14 3.22386 13.7761 3 13.5 3H1.5ZM1 7.5C1 7.22386 1.22386 7 1.5 7H13.5C13.7761 7 14 7.22386 14 7.5C14 7.77614 13.7761 8 13.5 8H1.5C1.22386 8 1 7.77614 1 7.5ZM1 11.5C1 11.2239 1.22386 11 1.5 11H13.5C13.7761 11 14 11.2239 14 11.5C14 11.7761 13.7761 12 13.5 12H1.5C1.22386 12 1 11.7761 1 11.5Z\"\r\n      fill=\"currentColor\"\r\n      fillRule=\"evenodd\"\r\n      clipRule=\"evenodd\"\r\n    ></path>\r\n  </svg>\r\n);\r\n\r\nexport const Unsupported = ({ className }: { className?: string }) => (\r\n  <svg\r\n    width=\"13\"\r\n    height=\"12\"\r\n    viewBox=\"0 0 13 12\"\r\n    fill=\"none\"\r\n    xmlns=\"http://www.w3.org/2000/svg\"\r\n    className={className}\r\n  >\r\n    <path\r\n      d=\"M2.61317 11.2501H9.46246C10.6009 11.2501 11.3256 10.3506 11.3256 9.3549C11.3256 9.05145 11.255 8.73244 11.0881 8.43303L7.65903 2.14708C7.659 2.14702 7.65897 2.14696 7.65893 2.1469C7.65889 2.14682 7.65884 2.14673 7.65879 2.14664C7.31045 1.50746 6.6741 1.17871 6.04 1.17871C5.41478 1.17871 4.763 1.50043 4.41518 2.14968L0.993416 8.43476C0.828865 8.72426 0.75 9.04297 0.75 9.3549C0.75 10.3506 1.47471 11.2501 2.61317 11.2501Z\"\r\n      fill=\"currentColor\"\r\n      stroke=\"var(--web3kit-body-background, #fff)\"\r\n      strokeWidth=\"1.5\"\r\n    />\r\n    <path\r\n      d=\"M6.03258 7.43916C5.77502 7.43916 5.63096 7.29153 5.62223 7.02311L5.55675 4.96973C5.54802 4.69684 5.74446 4.5 6.02821 4.5C6.3076 4.5 6.51277 4.70131 6.50404 4.9742L6.43856 7.01864C6.42546 7.29153 6.2814 7.43916 6.03258 7.43916ZM6.03258 9.11676C5.7401 9.11676 5.5 8.9065 5.5 8.60677C5.5 8.30704 5.7401 8.09678 6.03258 8.09678C6.32506 8.09678 6.56515 8.30256 6.56515 8.60677C6.56515 8.91097 6.32069 9.11676 6.03258 9.11676Z\"\r\n      fill=\"white\"\r\n    />\r\n  </svg>\r\n);\r\n\r\nexport const Spinner = ({ className }: { className?: string }) => (\r\n  <svg\r\n    aria-hidden=\"true\"\r\n    width=\"102\"\r\n    height=\"102\"\r\n    viewBox=\"0 0 102 102\"\r\n    fill=\"none\"\r\n    xmlns=\"http://www.w3.org/2000/svg\"\r\n    className={className}\r\n  >\r\n    <path\r\n      d=\"M52 100C24.3858 100 2 77.6142 2 50\"\r\n      stroke=\"url(#paint0_linear_1943_4139)\"\r\n      strokeWidth=\"3.5\"\r\n      strokeLinecap=\"round\"\r\n      strokeLinejoin=\"round\"\r\n    />\r\n    <defs>\r\n      <linearGradient\r\n        id=\"paint0_linear_1943_4139\"\r\n        x1=\"2\"\r\n        y1=\"48.5\"\r\n        x2=\"53\"\r\n        y2=\"100\"\r\n        gradientUnits=\"userSpaceOnUse\"\r\n      >\r\n        <stop stopColor=\"currentColor\" />\r\n        <stop offset=\"1\" stopColor=\"currentColor\" stopOpacity=\"0\" />\r\n      </linearGradient>\r\n    </defs>\r\n  </svg>\r\n);\r\n\r\nexport function Loader({ className }: { className?: string }) {\r\n  return (\r\n    <span className={cn(\"inline-flex justify-center text-primary\", className)}>\r\n      <svg\r\n        xmlns=\"http://www.w3.org/2000/svg\"\r\n        width=\"2rem\"\r\n        height=\"2rem\"\r\n        viewBox=\"0 0 200 200\"\r\n      >\r\n        <circle\r\n          fill=\"currentColor\"\r\n          stroke=\"currentColor\"\r\n          strokeWidth=\"15\"\r\n          r=\"15\"\r\n          cx=\"35\"\r\n          cy=\"100\"\r\n        >\r\n          <animate\r\n            attributeName=\"cx\"\r\n            calcMode=\"spline\"\r\n            dur=\"0.9\"\r\n            values=\"35;165;165;35;35\"\r\n            keySplines=\"0 .1 .5 1;0 .1 .5 1;0 .1 .5 1;0 .1 .5 1\"\r\n            repeatCount=\"indefinite\"\r\n            begin=\"0\"\r\n          ></animate>\r\n        </circle>\r\n        <circle\r\n          fill=\"currentColor\"\r\n          stroke=\"currentColor\"\r\n          strokeWidth=\"15\"\r\n          opacity=\".8\"\r\n          r=\"15\"\r\n          cx=\"35\"\r\n          cy=\"100\"\r\n        >\r\n          <animate\r\n            attributeName=\"cx\"\r\n            calcMode=\"spline\"\r\n            dur=\"0.9\"\r\n            values=\"35;165;165;35;35\"\r\n            keySplines=\"0 .1 .5 1;0 .1 .5 1;0 .1 .5 1;0 .1 .5 1\"\r\n            repeatCount=\"indefinite\"\r\n            begin=\"0.05\"\r\n          ></animate>\r\n        </circle>\r\n        <circle\r\n          fill=\"currentColor\"\r\n          stroke=\"currentColor\"\r\n          strokeWidth=\"15\"\r\n          opacity=\".6\"\r\n          r=\"15\"\r\n          cx=\"35\"\r\n          cy=\"100\"\r\n        >\r\n          <animate\r\n            attributeName=\"cx\"\r\n            calcMode=\"spline\"\r\n            dur=\"0.9\"\r\n            values=\"35;165;165;35;35\"\r\n            keySplines=\"0 .1 .5 1;0 .1 .5 1;0 .1 .5 1;0 .1 .5 1\"\r\n            repeatCount=\"indefinite\"\r\n            begin=\".1\"\r\n          ></animate>\r\n        </circle>\r\n        <circle\r\n          fill=\"currentColor\"\r\n          stroke=\"currentColor\"\r\n          strokeWidth=\"15\"\r\n          opacity=\".4\"\r\n          r=\"15\"\r\n          cx=\"35\"\r\n          cy=\"100\"\r\n        >\r\n          <animate\r\n            attributeName=\"cx\"\r\n            calcMode=\"spline\"\r\n            dur=\"0.9\"\r\n            values=\"35;165;165;35;35\"\r\n            keySplines=\"0 .1 .5 1;0 .1 .5 1;0 .1 .5 1;0 .1 .5 1\"\r\n            repeatCount=\"indefinite\"\r\n            begin=\".15\"\r\n          ></animate>\r\n        </circle>\r\n        <circle\r\n          fill=\"currentColor\"\r\n          stroke=\"currentColor\"\r\n          strokeWidth=\"15\"\r\n          opacity=\".2\"\r\n          r=\"15\"\r\n          cx=\"35\"\r\n          cy=\"100\"\r\n        >\r\n          <animate\r\n            attributeName=\"cx\"\r\n            calcMode=\"spline\"\r\n            dur=\"0.9\"\r\n            values=\"35;165;165;35;35\"\r\n            keySplines=\"0 .1 .5 1;0 .1 .5 1;0 .1 .5 1;0 .1 .5 1\"\r\n            repeatCount=\"indefinite\"\r\n            begin=\".2\"\r\n          ></animate>\r\n        </circle>\r\n      </svg>\r\n    </span>\r\n  );\r\n}\r\n","import React from \"react\";\r\nimport { motion } from \"framer-motion\";\r\nimport { cn } from \"../shadcn/utils\";\r\nimport { Spinner } from \"@/react/icons\";\r\n\r\nexport function OptionButton({\r\n  className,\r\n  index = 0,\r\n  onClick,\r\n  logo,\r\n  logoKey,\r\n  children,\r\n  disabled = false,\r\n  ...props\r\n}: {\r\n  className?: string;\r\n  index?: number;\r\n  onClick?: () => void;\r\n  logo?: string;\r\n  logoKey?: string;\r\n  children?: React.ReactNode;\r\n  disabled?: boolean;\r\n}) {\r\n  return (\r\n    <motion.button\r\n      initial={{ opacity: 0, y: 20 }}\r\n      animate={{ opacity: 1, y: 0 }}\r\n      transition={{ delay: 0.1 * (index + 1) }}\r\n      onClick={onClick}\r\n      className={cn(\r\n        \"web3kit-flex web3kit-justify-between web3kit-h-12 web3kit-items-center web3kit-rounded-xl web3kit-px-4 web3kit-py-2 web3kit-text-lg web3kit-font-semibold web3kit-shadow-md web3kit-bg-muted web3kit-gap-x-2 web3kit-w-full\",\r\n        disabled\r\n          ? \"web3kit-bg-muted web3kit-text-muted-foreground\"\r\n          : \"hover:web3kit-bg-accent hover:web3kit-shadow-xl\",\r\n        className\r\n      )}\r\n      disabled={disabled}\r\n      {...props}\r\n    >\r\n      <div className=\"web3kit-leading-none\">{children}</div>\r\n      {disabled ? (\r\n        <Spinner className=\"web3kit-size-8 web3kit-animate-spin\" />\r\n      ) : typeof logo === \"string\" ? (\r\n        <motion.img\r\n          key={logoKey || logo}\r\n          src={logo}\r\n          alt={`${index} logo`}\r\n          className=\"web3kit-size-8 web3kit-overflow-hidden web3kit-rounded-lg\"\r\n          initial={{ opacity: 0, scale: 0.8 }}\r\n          animate={{ opacity: 1, scale: 1 }}\r\n          exit={{ opacity: 0, scale: 0.8 }}\r\n          transition={{\r\n            duration: 0.3,\r\n            ease: \"easeInOut\",\r\n          }}\r\n        />\r\n      ) : (\r\n        logo\r\n      )}\r\n    </motion.button>\r\n  );\r\n}\r\n","import { useAccount, useEthWallets } from \"@/react/hooks\";\r\nimport { OptionButton } from \"@/react/components/OptionButton\";\r\nimport { routes, useSimpleKitContext } from \"@/react/context/SimpleKitContext\";\r\nimport { NetworkSymbols } from \"based-auth/networks\";\r\nimport { useEffect } from \"react\";\r\n\r\n// function ETHWalletOption({\r\n//   index,\r\n//   connector,\r\n// }: {\r\n//   index: number;\r\n//   connector: any;\r\n// }) {\r\n//   const { setPendingItem, setRouter } = useSimpleKitContext();\r\n//   const [ready, setReady] = useState(false);\r\n\r\n//   useEffect(() => {\r\n//     (async () => {\r\n//       if (connector.getProvider) {\r\n//         await connector.getProvider();\r\n//       } else if (connector.connecting) {\r\n//         await new Promise<void>((resolve) => {\r\n//           const interval = setInterval(() => {\r\n//             if (!connector.connecting) {\r\n//               clearInterval(interval);\r\n//               resolve();\r\n//             }\r\n//           }, 1000);\r\n//         });\r\n//       }\r\n//       setReady(true);\r\n//     })();\r\n//   }, []);\r\n\r\n//   if (!ready) {\r\n//     return <WalletSkeleton />;\r\n//   }\r\n\r\n//   return (\r\n//     <OptionButton\r\n//       index={index}\r\n//       className=\"web3kit-w-full\"\r\n//       logo={connector.logo}\r\n//     >\r\n//       <div className=\"web3kit-text-lg\">{connector.name}</div>\r\n//     </OptionButton>\r\n//   );\r\n// }\r\n\r\nexport function SelectETHWallet() {\r\n  const { setPendingItem, setRouter } = useSimpleKitContext();\r\n  const { users } = useAccount();\r\n  const { data: ethWallets } = useEthWallets();\r\n\r\n  useEffect(() => {\r\n    setPendingItem(null);\r\n  }, []);\r\n\r\n  return (\r\n    <div className=\"web3kit-space-y-2\">\r\n      {ethWallets\r\n        .filter(\r\n          (wallet: any) =>\r\n            !users.find(\r\n              (user: any) =>\r\n                user.provider === wallet.id &&\r\n                user.network === NetworkSymbols.eth\r\n            )\r\n        )\r\n        .map((wallet: any, index: number) => (\r\n          <OptionButton\r\n            key={wallet.id}\r\n            index={index}\r\n            logo={wallet.icon}\r\n            onClick={() => {\r\n              setRouter(() => {\r\n                setPendingItem({\r\n                  id: wallet.id,\r\n                  logo: wallet.icon,\r\n                  network: NetworkSymbols.eth,\r\n                  description: `Open the ${wallet.name} browser extension to connect your wallet.`,\r\n                });\r\n                return routes.walletConnecting;\r\n              });\r\n            }}\r\n          >\r\n            {wallet.name}\r\n          </OptionButton>\r\n        ))}\r\n    </div>\r\n  );\r\n}\r\n","import { OptionButton } from \"@/react/components/OptionButton\";\r\nimport { useSimpleKitContext, routes } from \"@/react/context/SimpleKitContext\";\r\nimport { useAccount, useSolanaWallet } from \"@/react/hooks\";\r\nimport { NetworkSymbols } from \"based-auth/networks\";\r\nimport { useEffect } from \"react\";\r\n\r\nexport function SelectSolanaWallet() {\r\n  const { solWallets } = useSolanaWallet();\r\n  const { users } = useAccount();\r\n  const { setPendingItem, setRouter } = useSimpleKitContext();\r\n\r\n  useEffect(() => {\r\n    setPendingItem(null);\r\n  }, []);\r\n\r\n  return (\r\n    <div className=\"web3kit-space-y-2\">\r\n      {solWallets\r\n        .filter(\r\n          (wallet) =>\r\n            !users.find(\r\n              (user) =>\r\n                user.provider === wallet.name &&\r\n                user.network === NetworkSymbols.sol\r\n            )\r\n        )\r\n        .map((wallet: any, index: number) => (\r\n          <OptionButton\r\n            key={index}\r\n            index={index}\r\n            logo={wallet.icon}\r\n            onClick={() => {\r\n              setRouter(() => {\r\n                setPendingItem({\r\n                  id: wallet.name,\r\n                  logo: wallet.icon,\r\n                  network: NetworkSymbols.sol,\r\n                  description: `Open the ${wallet.name} browser extension to connect your wallet.`,\r\n                });\r\n                return routes.walletConnecting;\r\n              });\r\n            }}\r\n          >\r\n            {wallet.name}\r\n          </OptionButton>\r\n        ))}\r\n    </div>\r\n  );\r\n}\r\n","import { useAccount } from \"@/react/hooks\";\r\nimport { motion } from \"framer-motion\";\r\nimport { QRCodeSVG } from \"qrcode.react\";\r\n\r\nexport function WalletQR() {\r\n  const { address } = useAccount();\r\n  const qrCodeSize = 200;\r\n\r\n  return (\r\n    <div className=\"web3kit-flex web3kit-flex-col web3kit-items-center web3kit-gap-4\">\r\n      <div className=\"web3kit-text-center\">\r\n        <p className=\"web3kit-text-sm web3kit-text-muted-foreground\">\r\n          Scan this QR code to send funds to your wallet\r\n        </p>\r\n      </div>\r\n\r\n      <motion.div\r\n        initial={{ scale: 0.8, opacity: 0 }}\r\n        animate={{ scale: 1, opacity: 1 }}\r\n        transition={{\r\n          duration: 0.3,\r\n        }}\r\n        className=\"web3kit-flex web3kit-items-center web3kit-justify-center web3kit-p-4 web3kit-bg-white web3kit-rounded-lg\"\r\n      >\r\n        <QRCodeSVG\r\n          value={address}\r\n          size={qrCodeSize}\r\n          level=\"H\"\r\n          marginSize={1}\r\n          className=\"web3kit-border web3kit-rounded-lg\"\r\n        />\r\n      </motion.div>\r\n    </div>\r\n  );\r\n}\r\n","/**\n * Copyright 2022 Joe Bell. All rights reserved.\n *\n * This file is licensed to you under the Apache License, Version 2.0\n * (the \"License\"); you may not use this file except in compliance with the\n * License. You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR REPRESENTATIONS OF ANY KIND, either express or implied. See the\n * License for the specific language governing permissions and limitations under\n * the License.\n */ import { clsx } from \"clsx\";\nconst falsyToString = (value)=>typeof value === \"boolean\" ? `${value}` : value === 0 ? \"0\" : value;\nexport const cx = clsx;\nexport const cva = (base, config)=>(props)=>{\n        var _config_compoundVariants;\n        if ((config === null || config === void 0 ? void 0 : config.variants) == null) return cx(base, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);\n        const { variants, defaultVariants } = config;\n        const getVariantClassNames = Object.keys(variants).map((variant)=>{\n            const variantProp = props === null || props === void 0 ? void 0 : props[variant];\n            const defaultVariantProp = defaultVariants === null || defaultVariants === void 0 ? void 0 : defaultVariants[variant];\n            if (variantProp === null) return null;\n            const variantKey = falsyToString(variantProp) || falsyToString(defaultVariantProp);\n            return variants[variant][variantKey];\n        });\n        const propsWithoutUndefined = props && Object.entries(props).reduce((acc, param)=>{\n            let [key, value] = param;\n            if (value === undefined) {\n                return acc;\n            }\n            acc[key] = value;\n            return acc;\n        }, {});\n        const getCompoundVariantClassNames = config === null || config === void 0 ? void 0 : (_config_compoundVariants = config.compoundVariants) === null || _config_compoundVariants === void 0 ? void 0 : _config_compoundVariants.reduce((acc, param)=>{\n            let { class: cvClass, className: cvClassName, ...compoundVariantOptions } = param;\n            return Object.entries(compoundVariantOptions).every((param)=>{\n                let [key, value] = param;\n                return Array.isArray(value) ? value.includes({\n                    ...defaultVariants,\n                    ...propsWithoutUndefined\n                }[key]) : ({\n                    ...defaultVariants,\n                    ...propsWithoutUndefined\n                })[key] === value;\n            }) ? [\n                ...acc,\n                cvClass,\n                cvClassName\n            ] : acc;\n        }, []);\n        return cx(base, getVariantClassNames, getCompoundVariantClassNames, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);\n    };\n\n","import * as React from \"react\";\r\nimport { Slot } from \"@radix-ui/react-slot\";\r\nimport { cva, type VariantProps } from \"class-variance-authority\";\r\n\r\nimport { cn } from \"@/react/shadcn/utils\";\r\n\r\nconst buttonVariants = cva(\r\n  \"web3kit-inline-flex web3kit-items-center web3kit-justify-center web3kit-gap-2 web3kit-whitespace-nowrap web3kit-rounded-md web3kit-text-sm web3kit-font-medium web3kit-transition-colors focus-visible:web3kit-outline-none focus-visible:web3kit-ring-1 focus-visible:web3kit-ring-ring disabled:web3kit-pointer-events-none disabled:web3kit-opacity-50 [&_svg]:web3kit-pointer-events-none [&_svg]:web3kit-size-4 [&_svg]:web3kit-shrink-0\",\r\n  {\r\n    variants: {\r\n      variant: {\r\n        default:\r\n          \"web3kit-bg-primary web3kit-text-primary-foreground web3kit-shadow hover:web3kit-bg-primary/90\",\r\n        destructive:\r\n          \"web3kit-bg-destructive web3kit-text-destructive-foreground web3kit-shadow-sm hover:web3kit-bg-destructive/90\",\r\n        outline:\r\n          \"web3kit-border web3kit-border-input web3kit-bg-background web3kit-shadow-sm hover:web3kit-bg-accent hover:web3kit-text-accent-foreground\",\r\n        secondary:\r\n          \"web3kit-bg-secondary web3kit-text-secondary-foreground web3kit-shadow-sm hover:web3kit-bg-secondary/80\",\r\n        ghost: \"hover:web3kit-bg-accent hover:web3kit-text-accent-foreground\",\r\n        link: \"web3kit-text-primary web3kit-underline-offset-4 hover:web3kit-underline\",\r\n      },\r\n      size: {\r\n        default: \"web3kit-h-9 web3kit-px-4 web3kit-py-2\",\r\n        sm: \"web3kit-h-8 web3kit-rounded-md web3kit-px-3 web3kit-text-xs\",\r\n        lg: \"web3kit-h-10 web3kit-rounded-md web3kit-px-8\",\r\n        icon: \"web3kit-h-9 web3kit-w-9\",\r\n      },\r\n    },\r\n    defaultVariants: {\r\n      variant: \"default\",\r\n      size: \"default\",\r\n    },\r\n  }\r\n);\r\n\r\ntype ButtonProps = React.ButtonHTMLAttributes<HTMLButtonElement> &\r\n  VariantProps<typeof buttonVariants> & {\r\n    asChild?: boolean;\r\n    className?: string;\r\n  };\r\n\r\nconst Button = React.forwardRef<HTMLButtonElement, ButtonProps>(\r\n  ({ className, variant, size, asChild = false, ...props }, ref) => {\r\n    const Comp = asChild ? Slot : \"button\";\r\n    return (\r\n      <Comp\r\n        className={cn(buttonVariants({ variant, size }), className)}\r\n        ref={ref}\r\n        {...props}\r\n      />\r\n    );\r\n  }\r\n);\r\nButton.displayName = \"Button\";\r\n\r\nexport { Button, buttonVariants };\r\n","import { useSimpleKitContext } from \"@/react/context/SimpleKitContext\";\r\nimport { useConnectAccount } from \"@/react/hooks\";\r\nimport { Spinner } from \"@/react/icons\";\r\nimport { Button } from \"@/react/shadcn/ui/button\";\r\nimport { cn } from \"@/react/shadcn/utils\";\r\nimport { RotateCcw } from \"lucide-react\";\r\nimport { useEffect } from \"react\";\r\n\r\nexport function WalletConnecting() {\r\n  const { pendingItem } = useSimpleKitContext();\r\n\r\n  const {\r\n    mutateAsync: connectAccount,\r\n    isError,\r\n    error,\r\n    isPending,\r\n  } = useConnectAccount();\r\n\r\n  function onDisplayUri(uri: string) {\r\n    console.log(\"display_uri\", uri);\r\n    window.location.href = uri;\r\n  }\r\n\r\n  useEffect(() => {\r\n    connectAccount();\r\n  }, [pendingItem]);\r\n\r\n  if (!pendingItem) {\r\n    return null;\r\n  }\r\n\r\n  return (\r\n    <div className=\"web3kit-flex web3kit-w-full web3kit-flex-col web3kit-items-center web3kit-justify-center web3kit-gap-9 md:web3kit-pt-5\">\r\n      <div\r\n        className={cn(\r\n          \"web3kit-relative web3kit-size-28 web3kit-flex web3kit-items-center web3kit-justify-center web3kit-rounded-2xl web3kit-p-3\"\r\n        )}\r\n      >\r\n        <img\r\n          src={pendingItem.logo}\r\n          alt={pendingItem.name}\r\n          className=\"web3kit-size-16 web3kit-overflow-hidden web3kit-rounded-2xl\"\r\n        />\r\n\r\n        {!isPending && isError ? (\r\n          <Button\r\n            size=\"icon\"\r\n            variant=\"ghost\"\r\n            className=\"web3kit-group web3kit-absolute -web3kit-bottom-2 -web3kit-right-2 web3kit-rounded-full web3kit-bg-muted web3kit-p-1.5 web3kit-shadow\"\r\n            onClick={() => {\r\n              connectAccount();\r\n            }}\r\n          >\r\n            <RotateCcw className=\"web3kit-size-4 web3kit-transition-transform group-hover:-web3kit-rotate-45\" />\r\n          </Button>\r\n        ) : (\r\n          <Spinner className=\"web3kit-absolute web3kit-w-full web3kit-h-full web3kit-text-primary web3kit-animate-spin\" />\r\n        )}\r\n      </div>\r\n\r\n      <div className=\"web3kit-space-y-3.5 web3kit-px-3.5 web3kit-text-center sm:web3kit-px-0\">\r\n        <h1 className=\"web3kit-text-xl web3kit-font-semibold\">\r\n          {isError || error ? \"Request Error\" : \"Requesting Connection\"}\r\n        </h1>\r\n        <p className=\"web3kit-text-balance web3kit-text-sm web3kit-text-muted-foreground\">\r\n          {isError || error\r\n            ? \"There was an error with the request. Click above to try again.\"\r\n            : pendingItem.description}\r\n        </p>\r\n      </div>\r\n    </div>\r\n  );\r\n}\r\n","import { routes, useSimpleKitContext } from \"@/react/context/SimpleKitContext\";\r\nimport { useAccount, useSwitchChain } from \"@/react/hooks\";\r\nimport { Spinner } from \"@/react/icons\";\r\nimport { Button } from \"@/react/shadcn/ui/button\";\r\nimport { cn } from \"@/react/shadcn/utils\";\r\nimport { RotateCcw } from \"lucide-react\";\r\nimport { useEffect } from \"react\";\r\n\r\nexport function SwitchingChain() {\r\n  const { pendingItem, setRouter } = useSimpleKitContext();\r\n\r\n  const { mutateAsync: switchChain, isError, isPending } = useSwitchChain();\r\n\r\n  useEffect(() => {\r\n    if (pendingItem) {\r\n      switchChain(...(pendingItem.args as [number]));\r\n    } else {\r\n      setRouter(routes.account);\r\n    }\r\n  }, []);\r\n\r\n  if (!pendingItem) {\r\n    return null;\r\n  }\r\n\r\n  return (\r\n    <div className=\"web3kit-flex web3kit-w-full web3kit-flex-col web3kit-items-center web3kit-justify-center web3kit-gap-9 md:web3kit-pt-5\">\r\n      <div\r\n        className={cn(\r\n          \"web3kit-relative web3kit-size-28 web3kit-flex web3kit-items-center web3kit-justify-center web3kit-rounded-2xl web3kit-p-3\"\r\n        )}\r\n      >\r\n        <img\r\n          src={pendingItem.logo}\r\n          alt={pendingItem.name}\r\n          className=\"web3kit-size-16 web3kit-overflow-hidden web3kit-rounded-2xl\"\r\n        />\r\n\r\n        {!isPending && isError ? (\r\n          <Button\r\n            size=\"icon\"\r\n            variant=\"ghost\"\r\n            className=\"web3kit-group web3kit-absolute -web3kit-bottom-2 -web3kit-right-2 web3kit-rounded-full web3kit-bg-muted web3kit-p-1.5 web3kit-shadow\"\r\n            onClick={() => {\r\n              switchChain(...(pendingItem.args as [number]));\r\n            }}\r\n          >\r\n            <RotateCcw className=\"web3kit-size-4 web3kit-transition-transform group-hover:-web3kit-rotate-45\" />\r\n          </Button>\r\n        ) : (\r\n          <Spinner className=\"web3kit-absolute web3kit-w-full web3kit-h-full web3kit-text-primary web3kit-animate-spin\" />\r\n        )}\r\n      </div>\r\n\r\n      <div className=\"web3kit-space-y-3.5 web3kit-px-3.5 web3kit-text-center sm:web3kit-px-0\">\r\n        <h1 className=\"web3kit-text-xl web3kit-font-semibold\">\r\n          {isError ? \"Request Error\" : \"Requesting Connection\"}\r\n        </h1>\r\n        <p className=\"web3kit-text-balance web3kit-text-sm web3kit-text-muted-foreground\">\r\n          {isError\r\n            ? \"There was an error with the request. Click above to try again.\"\r\n            : `We change your chain to \"${pendingItem.name}\".`}\r\n        </p>\r\n      </div>\r\n    </div>\r\n  );\r\n}\r\n","export function minifyAddress(address: string, len = 4) {\r\n  const isEthereumAddress = address?.startsWith(\"0x\");\r\n  return `${address?.slice(\r\n    0,\r\n    (isEthereumAddress ? 2 : 0) + len\r\n  )}...${address?.slice(-len)}`;\r\n}\r\n","import { motion } from \"framer-motion\";\r\nimport { cn } from \"@/react/shadcn/utils\";\r\n\r\nexport function OptionSkeleton({\r\n  index,\r\n  className,\r\n}: {\r\n  index: number;\r\n  className?: string;\r\n}) {\r\n  return (\r\n    <motion.div\r\n      className={cn(\r\n        \"web3kit-animate-pulse web3kit-rounded-md web3kit-bg-foreground/10 web3kit-w-full\",\r\n        className\r\n      )}\r\n      initial={{ opacity: 0 }}\r\n      animate={{ opacity: 1 }}\r\n      exit={{ opacity: 0 }}\r\n      transition={{ duration: 0.3 * (index + 1) }}\r\n    />\r\n  );\r\n}\r\n","import { OptionButton } from \"@/react/components/OptionButton\";\r\nimport { useAccount, useSocialProviders } from \"../hooks\";\r\nimport { minifyAddress } from \"based-shared/utils/minify-address\";\r\nimport { useSimpleKitContext } from \"@/react/context/SimpleKitContext\";\r\nimport { routes } from \"@/react/context/SimpleKitContext\";\r\nimport { OptionSkeleton } from \"@/react/components/OptionSkeleton\";\r\n\r\nexport function SwitchAccount() {\r\n  const { address, network, users } = useAccount();\r\n  const { isPending } = useSocialProviders();\r\n  const { setPendingItem, setRouter } = useSimpleKitContext();\r\n\r\n  if (isPending) {\r\n    return (\r\n      <div className=\"web3kit-space-y-2\">\r\n        {Array.from({ length: 3 }).map((_, index) => (\r\n          <OptionSkeleton key={index} index={index} className=\"web3kit-h-12\" />\r\n        ))}\r\n      </div>\r\n    );\r\n  }\r\n\r\n  return (\r\n    <div className=\"web3kit-space-y-2\">\r\n      {users\r\n        .filter(\r\n          (user) => !(user.address === address && user.network === network)\r\n        )\r\n        .map((user, index) => (\r\n          <OptionButton\r\n            key={index}\r\n            index={index}\r\n            logo={user.image}\r\n            onClick={() => {\r\n              setPendingItem(() => {\r\n                setRouter(routes.switchingAccount);\r\n                return {\r\n                  name: user.name,\r\n                  logo: user.image,\r\n                  args: [\r\n                    {\r\n                      network: user.network,\r\n                      address: user.address,\r\n                    },\r\n                  ],\r\n                  description: `We change your account to \"${user.name}\".`,\r\n                };\r\n              });\r\n            }}\r\n          >\r\n            {minifyAddress(user.address)}\r\n          </OptionButton>\r\n        ))}\r\n    </div>\r\n  );\r\n}\r\n","import React from \"react\";\r\nimport { cn } from \"@/react/shadcn/utils\";\r\n\r\nfunction Skeleton({\r\n  className,\r\n  ...props\r\n}: React.ComponentPropsWithoutRef<\"div\"> & { className?: string }) {\r\n  return (\r\n    <div\r\n      className={cn(\r\n        \"web3kit-animate-pulse web3kit-rounded-md web3kit-bg-foreground/10\",\r\n        className\r\n      )}\r\n      {...props}\r\n    />\r\n  );\r\n}\r\n\r\nexport { Skeleton };\r\n","import { useState, useEffect } from \"react\";\r\nimport { CheckIcon, CopyIcon } from \"lucide-react\";\r\n\r\nexport function CopyAddressButton({ address }: { address: string }) {\r\n  const [copied, setCopied] = useState(false);\r\n\r\n  useEffect(() => {\r\n    const timeout = setTimeout(() => {\r\n      if (copied) setCopied(false);\r\n    }, 1000);\r\n    return () => clearTimeout(timeout);\r\n  }, [copied, setCopied]);\r\n\r\n  async function handleCopy() {\r\n    setCopied(true);\r\n    await navigator.clipboard.writeText(address);\r\n  }\r\n\r\n  return (\r\n    <button\r\n      className=\"web3kit-cursor-pointer hover:web3kit-text-foreground web3kit-text-muted-foreground\"\r\n      onClick={handleCopy}\r\n    >\r\n      {copied ? (\r\n        <CheckIcon className=\"web3kit-size-4\" />\r\n      ) : (\r\n        <CopyIcon className=\"web3kit-size-4\" />\r\n      )}\r\n    </button>\r\n  );\r\n}\r\n","export function subscript(num: number) {\r\n  let result = \"\";\r\n  while (num >= 10) {\r\n    result = String.fromCharCode(0x2080 + (num % 10)) + result;\r\n    num = Math.floor(num / 10);\r\n  }\r\n  return String.fromCharCode(0x2080 + num) + result;\r\n}\r\n","import { subscript } from \"./subscript\";\r\n\r\nexport function minifyDecimals(number: string | number, decimals = 3) {\r\n  number = +number;\r\n  if (number !== 0 && number < Number(`1e-${decimals}`)) {\r\n    const str = number.toExponential(decimals - 1);\r\n    const remains = str.replace(/(\\.|e-\\d+$)/gi, \"\").replace(/0+$/, \"\");\r\n    const zeros = Number(str.split(\"e-\")[1]);\r\n    return \"0.0\" + subscript(zeros - 1) + remains;\r\n  }\r\n  number = +(+number).toFixed(decimals);\r\n  return number.toString().replace(/(\\d)(?=(\\d{3})+(?!\\d))/g, \"$1,\");\r\n}\r\n","import { OptionButton } from \"@/react/components/OptionButton\";\r\n\r\nimport { routes, useSimpleKitContext } from \"@/react/context/SimpleKitContext\";\r\nimport { useAccount, useBalance, useChainInfo } from \"@/react/hooks\";\r\nimport { Skeleton } from \"@/react/shadcn/ui/skeleton\";\r\nimport { cn } from \"@/react/shadcn/utils\";\r\nimport { motion } from \"framer-motion\";\r\nimport { AccountLogo, WithdrawLogo, WrongChainLogo } from \"based-assets/index\";\r\nimport { CopyAddressButton } from \"@/react/components/CopyAddressButton\";\r\nimport { minifyAddress } from \"based-shared/utils/minify-address\";\r\nimport { QrCodeIcon } from \"lucide-react\";\r\nimport { formatUnits } from \"ethers\";\r\nimport { minifyDecimals } from \"based-shared/utils/minify-decimals\";\r\n\r\nexport function Account({ className = \"\" }: { className?: string }) {\r\n  const { chains, setRouter } = useSimpleKitContext();\r\n  const { chainId, address, network, social, image, users } = useAccount();\r\n\r\n  const { chainLogo, nativeSymbol, addressExplorer } = useChainInfo();\r\n  const { data: balance, isPending } = useBalance();\r\n\r\n  const canSwitchChain =\r\n    chains\r\n      .filter((item: any) => item.id !== chainId)\r\n      .filter((item: any) => social || item.network.symbol === network).length >\r\n    0;\r\n\r\n  const canAddAccount = true;\r\n\r\n  const buttons: {\r\n    label: string;\r\n    logo: string;\r\n    onClick: () => void;\r\n  }[] = [\r\n    users.length > 1 && {\r\n      label: \"Switch Account\",\r\n      logo: AccountLogo,\r\n      onClick: () => {\r\n        setRouter(\"switchAccount\");\r\n      },\r\n    },\r\n    canSwitchChain && {\r\n      label: \"Switch Chain\",\r\n      logo: chainLogo || WrongChainLogo,\r\n      onClick: () => {\r\n        setRouter(routes.switchChain);\r\n      },\r\n    },\r\n    canAddAccount && {\r\n      label: \"Add Account\",\r\n      logo: AccountLogo,\r\n      onClick: () => {\r\n        setRouter(routes.home);\r\n      },\r\n    },\r\n    social && {\r\n      label: \"Withdraw\",\r\n      logo: WithdrawLogo,\r\n      onClick: () => {\r\n        setRouter(routes.withdrawFunds);\r\n      },\r\n    },\r\n  ].filter(Boolean) as {\r\n    label: string;\r\n    logo: string;\r\n    onClick: () => void;\r\n  }[];\r\n\r\n  return (\r\n    <div className={cn(\"web3kit-space-y-4 web3kit-text-center\", className)}>\r\n      <motion.img\r\n        initial={{ scale: 0.5, opacity: 0 }}\r\n        animate={{ scale: 1, opacity: 1 }}\r\n        transition={{\r\n          duration: 0.5,\r\n          ease: [0.4, 0, 0.2, 1],\r\n          delay: 0.1,\r\n        }}\r\n        src={typeof image === \"string\" ? image : undefined}\r\n        alt={`avatar for ${address}`}\r\n        className=\"web3kit-size-24 web3kit-rounded-full web3kit-mx-auto\"\r\n      />\r\n      <div className=\"web3kit-flex web3kit-items-end web3kit-gap-2 web3kit-justify-center\">\r\n        <div className=\"web3kit-text-sm web3kit-leading-none\">\r\n          {isPending ? (\r\n            <Skeleton className=\"web3kit-h-4 web3kit-w-[50px]\" />\r\n          ) : (\r\n            `${minifyDecimals(formatUnits(balance || 0n, 18))} ${nativeSymbol}`\r\n          )}\r\n        </div>\r\n        <a\r\n          target=\"_blank\"\r\n          rel=\"noopener noreferrer\"\r\n          href={addressExplorer.replace(\"{{addr}}\", address)}\r\n          className=\"web3kit-leading-none web3kit-text-primary\"\r\n        >\r\n          {minifyAddress(address)}\r\n        </a>\r\n        <CopyAddressButton address={address} />\r\n        <QrCodeIcon\r\n          className=\"web3kit-size-4 web3kit-cursor-pointer hover:web3kit-text-foreground\"\r\n          onClick={() => {\r\n            setRouter(routes.walletqr);\r\n          }}\r\n        />\r\n      </div>\r\n      <div className=\"web3kit-space-y-2\">\r\n        {buttons.map((item, index) => (\r\n          <OptionButton\r\n            key={index}\r\n            index={index}\r\n            className=\"web3kit-w-full\"\r\n            logo={item.logo}\r\n            onClick={item.onClick}\r\n          >\r\n            <div className=\"web3kit-text-lg\">{item.label}</div>\r\n          </OptionButton>\r\n        ))}\r\n      </div>\r\n    </div>\r\n  );\r\n}\r\n","import { useState, useEffect } from \"react\";\r\nimport { useSimpleKitContext } from \"@/react/context/SimpleKitContext\";\r\nimport { OptionButton } from \"@/react/components/OptionButton\";\r\nimport { INetwork } from \"based-auth/networks\";\r\n\r\nexport function NetworkButton({\r\n  index,\r\n  network,\r\n  onClick,\r\n}: {\r\n  index: number;\r\n  network: INetwork;\r\n  onClick: () => void;\r\n}) {\r\n  const [logoIndex, setLogoIndex] = useState(-1);\r\n  const { chains } = useSimpleKitContext();\r\n  const selectedChains = chains.filter(\r\n    (i) => i.network.symbol === network.symbol\r\n  );\r\n\r\n  useEffect((): any => {\r\n    if (selectedChains.length > 1) {\r\n      const interval = setInterval(() => {\r\n        setLogoIndex((prev) => (prev + 1) % selectedChains.length);\r\n      }, 2000);\r\n      return () => clearInterval(interval);\r\n    }\r\n  }, []);\r\n\r\n  const currentLogo =\r\n    logoIndex === -1 ? network.logo : selectedChains[logoIndex]?.logo;\r\n  const logoKey = `${network.symbol}-${logoIndex}`;\r\n\r\n  return (\r\n    <OptionButton\r\n      index={index}\r\n      logo={currentLogo}\r\n      logoKey={logoKey}\r\n      onClick={onClick}\r\n    >\r\n      {network.name}\r\n    </OptionButton>\r\n  );\r\n}\r\n","import { useSocialProviders } from \"@/react/hooks\";\r\nimport { OptionButton } from \"@/react/components/OptionButton\";\r\nimport { OptionSkeleton } from \"@/react/components/OptionSkeleton\";\r\nimport { routes, useSimpleKitContext } from \"@/react/context/SimpleKitContext\";\r\nimport { INetwork, NetworkSymbols } from \"based-auth/networks\";\r\nimport { IChain } from \"based-auth/chains\";\r\nimport { useEffect } from \"react\";\r\nimport {\r\n  DiscordLogo,\r\n  GithubLogo,\r\n  GoogleLogo,\r\n  TwitterLogo,\r\n  WrongChainLogo,\r\n} from \"based-assets\";\r\nimport { useAccount } from \"@/react/hooks\";\r\nimport { NetworkButton } from \"@/react/components/NetworkButton\";\r\n\r\nconst socialIcons = {\r\n  google: GoogleLogo,\r\n  github: GithubLogo,\r\n  twitter: TwitterLogo,\r\n  discord: DiscordLogo,\r\n};\r\n\r\nexport function Home() {\r\n  const { data: socialProviders, isPending } = useSocialProviders();\r\n  const { chains, setPendingItem, setRouter } = useSimpleKitContext();\r\n  const { users } = useAccount();\r\n\r\n  const networks: INetwork[] = Object.values(\r\n    chains.reduce((acc: any, chain: IChain) => {\r\n      acc[chain.network.symbol] = chain.network;\r\n      return acc;\r\n    }, {})\r\n  );\r\n\r\n  useEffect(() => {\r\n    setPendingItem(null);\r\n  }, []);\r\n\r\n  if (isPending) {\r\n    return (\r\n      <div className=\"web3kit-space-y-2\">\r\n        {Array.from({ length: 3 }).map((_, index) => (\r\n          <OptionSkeleton key={index} index={index} className=\"web3kit-h-12\" />\r\n        ))}\r\n      </div>\r\n    );\r\n  }\r\n\r\n  return (\r\n    <div className=\"web3kit-space-y-2\">\r\n      <div className=\"web3kit-flex web3kit-items-center web3kit-gap-2\">\r\n        {networks.map((network: INetwork, index: number) => {\r\n          return (\r\n            <NetworkButton\r\n              index={index}\r\n              network={network}\r\n              key={network.symbol}\r\n              onClick={() => {\r\n                switch (network.symbol) {\r\n                  case NetworkSymbols.eth:\r\n                    setRouter(routes.selectETHWallet);\r\n                    break;\r\n                  case NetworkSymbols.sol:\r\n                    setRouter(routes.selectSolanaWallet);\r\n                    break;\r\n                }\r\n              }}\r\n            />\r\n          );\r\n        })}\r\n      </div>\r\n      {socialProviders\r\n        .filter(\r\n          (provider: any) =>\r\n            !users.some((user) => user.provider === provider.id)\r\n        )\r\n        .map((provider: any, index: number) => {\r\n          const Logo =\r\n            socialIcons[provider.id as keyof typeof socialIcons] ||\r\n            WrongChainLogo;\r\n          return (\r\n            <OptionButton\r\n              key={provider.id}\r\n              index={index}\r\n              logo={Logo}\r\n              onClick={() => {\r\n                setRouter(() => {\r\n                  setPendingItem({\r\n                    id: provider.id,\r\n                    chainId: chains[0].id,\r\n                    logo: Logo,\r\n                    network: \"\",\r\n                    description: `We connect your \"${provider.name}\" account to our platform.`,\r\n                  });\r\n                  return routes.socialConnecting;\r\n                });\r\n              }}\r\n            >\r\n              {provider.name}\r\n            </OptionButton>\r\n          );\r\n        })}\r\n    </div>\r\n  );\r\n}\r\n","import { useAccount } from \"../hooks\";\r\nimport { OptionButton } from \"@/react/components/OptionButton\";\r\nimport { routes, useSimpleKitContext } from \"@/react/context/SimpleKitContext\";\r\n\r\nexport function SwitchChain() {\r\n  const { chainId, network, social } = useAccount();\r\n  const { chains, setPendingItem, setRouter } = useSimpleKitContext();\r\n\r\n  return (\r\n    <div className=\"web3kit-space-y-2\">\r\n      {chains\r\n        .filter((item: any) => item.id !== chainId)\r\n        .filter((item: any) => social || item.network.symbol === network)\r\n        .map((item: any, index: number) => (\r\n          <OptionButton\r\n            key={index}\r\n            index={index}\r\n            logo={item.logo}\r\n            onClick={() => {\r\n              setPendingItem(() => {\r\n                setRouter(routes.switchingChain);\r\n                return {\r\n                  name: item.name,\r\n                  logo: item.logo,\r\n                  args: [item.id],\r\n                };\r\n              });\r\n            }}\r\n            className=\"web3kit-w-full\"\r\n          >\r\n            {item.name}\r\n          </OptionButton>\r\n        ))}\r\n    </div>\r\n  );\r\n}\r\n","import { useEffect } from \"react\";\r\nimport { routes, useSimpleKitContext } from \"@/react/context/SimpleKitContext\";\r\nimport { useSwitchAccount } from \"@/react/hooks\";\r\nimport { Spinner } from \"@/react/icons\";\r\nimport { cn } from \"@/react/shadcn/utils\";\r\nimport { Button } from \"@/react/shadcn/ui/button\";\r\nimport { RotateCcw } from \"lucide-react\";\r\n\r\nexport function SwitchingAccount() {\r\n  const { pendingItem, setRouter } = useSimpleKitContext();\r\n\r\n  const { mutateAsync: switchAccount, isError, isPending } = useSwitchAccount();\r\n\r\n  useEffect(() => {\r\n    if (pendingItem) {\r\n      switchAccount(\r\n        ...(pendingItem.args as [{ network: string; address: string }])\r\n      );\r\n    } else {\r\n      setRouter(routes.account);\r\n    }\r\n  }, []);\r\n\r\n  if (!pendingItem) {\r\n    return null;\r\n  }\r\n\r\n  return (\r\n    <div className=\"web3kit-flex web3kit-w-full web3kit-flex-col web3kit-items-center web3kit-justify-center web3kit-gap-9 md:web3kit-pt-5\">\r\n      <div\r\n        className={cn(\r\n          \"web3kit-relative web3kit-size-28 web3kit-flex web3kit-items-center web3kit-justify-center web3kit-rounded-2xl web3kit-p-3\"\r\n        )}\r\n      >\r\n        <img\r\n          src={pendingItem.logo}\r\n          alt={pendingItem.name}\r\n          className=\"web3kit-size-16 web3kit-overflow-hidden web3kit-rounded-2xl\"\r\n        />\r\n\r\n        {!isPending && isError ? (\r\n          <Button\r\n            size=\"icon\"\r\n            variant=\"ghost\"\r\n            className=\"web3kit-group web3kit-absolute -web3kit-bottom-2 -web3kit-right-2 web3kit-rounded-full web3kit-bg-muted web3kit-p-1.5 web3kit-shadow\"\r\n            onClick={() => {\r\n              switchAccount(\r\n                ...(pendingItem.args as [{ network: string; address: string }])\r\n              );\r\n            }}\r\n          >\r\n            <RotateCcw className=\"web3kit-size-4 web3kit-transition-transform group-hover:-web3kit-rotate-45\" />\r\n          </Button>\r\n        ) : (\r\n          <Spinner className=\"web3kit-absolute web3kit-w-full web3kit-h-full web3kit-text-primary web3kit-animate-spin\" />\r\n        )}\r\n      </div>\r\n\r\n      <div className=\"web3kit-space-y-3.5 web3kit-px-3.5 web3kit-text-center sm:web3kit-px-0\">\r\n        <h1 className=\"web3kit-text-xl web3kit-font-semibold\">\r\n          {isError ? \"Request Error\" : \"Requesting Connection\"}\r\n        </h1>\r\n        <p className=\"web3kit-text-balance web3kit-text-sm web3kit-text-muted-foreground\">\r\n          {isError\r\n            ? \"There was an error with the request. Click above to try again.\"\r\n            : `We change your account to \"${pendingItem.name}\".`}\r\n        </p>\r\n      </div>\r\n    </div>\r\n  );\r\n}\r\n","import { OptionButton } from \"@/react/components/OptionButton\";\r\nimport {\r\n  useChainInfo,\r\n  useBalanceAsync,\r\n  useTransferAsync,\r\n  useTokenBalanceAsync,\r\n  // useWriteContractAsync,\r\n  useAccount,\r\n  getProvider,\r\n} from \"@/react/hooks\";\r\nimport { Spinner } from \"@/react/icons\";\r\nimport { WithdrawLogo } from \"based-assets/index\";\r\nimport { NetworkSymbols } from \"based-auth/networks\";\r\nimport {\r\n  FallbackProvider,\r\n  formatUnits,\r\n  JsonRpcProvider,\r\n  parseUnits,\r\n} from \"ethers\";\r\nimport { motion } from \"framer-motion\";\r\nimport { useRef, useState } from \"react\";\r\nimport { useSimpleKitContext } from \"../context/SimpleKitContext\";\r\n\r\nexport function WithdrawFunds() {\r\n  const amountRef = useRef<HTMLInputElement>(null);\r\n  const tokenRef = useRef<HTMLInputElement>(null);\r\n\r\n  const [type, setType] = useState<string>(\"native\");\r\n  const { nativeSymbol, nativeDecimals } = useChainInfo();\r\n  const { chainId, address, network } = useAccount();\r\n  const { chains, wagmiConfig } = useSimpleKitContext();\r\n\r\n  const { mutateAsync: fetchTokenBalance, isPending: fetchingTokenBalance } =\r\n    useTokenBalanceAsync();\r\n  const { mutateAsync: fetchBalance, isPending: fetchingBalance } =\r\n    useBalanceAsync();\r\n\r\n  const { mutateAsync: transferAsync, isPending: isTransferring } =\r\n    useTransferAsync();\r\n\r\n  async function submit(e: React.FormEvent<HTMLFormElement>) {\r\n    e.preventDefault();\r\n\r\n    const formData = new FormData(e.target as HTMLFormElement);\r\n    const type = formData.get(\"type\");\r\n    const token = formData.get(\"token\");\r\n    const amount = formData.get(\"amount\");\r\n    const recepient = formData.get(\"recepient\");\r\n\r\n    if (type === \"native\") {\r\n      await transferAsync({\r\n        address: recepient as string,\r\n        value: parseUnits(amount as string, nativeDecimals),\r\n      });\r\n    } else {\r\n      throw new Error(\"Not implemented yet\");\r\n    }\r\n  }\r\n\r\n  const handleMaxAmount = async (e: React.MouseEvent<HTMLButtonElement>) => {\r\n    e.preventDefault();\r\n    if (amountRef.current) {\r\n      let fee = 0n;\r\n      const provider = getProvider(\r\n        chainId,\r\n        chains,\r\n        wagmiConfig,\r\n        address !== \"\"\r\n      );\r\n      if (network === NetworkSymbols.eth) {\r\n        const baseFee = 11n;\r\n        const estimatedGasLimit = 21000n;\r\n        if (\r\n          !provider ||\r\n          !(\r\n            provider instanceof JsonRpcProvider ||\r\n            provider instanceof FallbackProvider\r\n          )\r\n        ) {\r\n          throw new Error(\"Provider not found\");\r\n        }\r\n        const gasPrice = (await provider.getFeeData()).gasPrice;\r\n        console.log({ gasPrice });\r\n        if (!gasPrice) {\r\n          throw new Error(\"Failed to get gas price\");\r\n        }\r\n        fee = baseFee * gasPrice * estimatedGasLimit;\r\n      } else if (network === NetworkSymbols.sol) {\r\n        fee = 5000n;\r\n      } else {\r\n        throw new Error(\"Invalid network\");\r\n      }\r\n\r\n      if (type === \"token\") {\r\n        const tokenBalance = await fetchTokenBalance(\r\n          tokenRef.current?.value as string\r\n        );\r\n        amountRef.current.value = formatUnits(tokenBalance, nativeDecimals);\r\n      } else {\r\n        const balance = await fetchBalance();\r\n        amountRef.current.value = Number(\r\n          formatUnits(balance <= fee ? 0n : balance - fee, nativeDecimals)\r\n        ).toString();\r\n      }\r\n    }\r\n  };\r\n\r\n  return (\r\n    <form\r\n      className=\"web3kit-flex web3kit-flex-col web3kit-justify-between web3kit-items-center web3kit-gap-y-4\"\r\n      onSubmit={submit}\r\n    >\r\n      <motion.select\r\n        initial={{ opacity: 0, y: 20 }}\r\n        animate={{ opacity: 1, y: 0 }}\r\n        className=\"web3kit-bg-background web3kit-rounded-md web3kit-border web3kit-border-input web3kit-text-sm web3kit-ring-offset-background web3kit-focus:web3kit-ring-ring web3kit-focus:web3kit-ring-offset-2 web3kit-disabled:web3kit-cursor-not-allowed web3kit-disabled:web3kit-opacity-50 web3kit-px-4 web3kit-py-2 web3kit-w-full\"\r\n        name=\"type\"\r\n        onChange={(e) => setType(e.target.value)}\r\n      >\r\n        <motion.option value=\"native\" className=\"web3kit-text-sm\">\r\n          {nativeSymbol}\r\n        </motion.option>\r\n        <motion.option value=\"token\" className=\"web3kit-text-sm\">\r\n          Token\r\n        </motion.option>\r\n      </motion.select>\r\n\r\n      {type === \"token\" && (\r\n        <motion.input\r\n          initial={{ opacity: 0, y: 20 }}\r\n          animate={{ opacity: 1, y: 0 }}\r\n          className=\"web3kit-bg-background web3kit-rounded-md web3kit-border web3kit-border-input web3kit-text-sm web3kit-ring-offset-background web3kit-focus:web3kit-ring-ring web3kit-focus:web3kit-ring-offset-2 web3kit-disabled:web3kit-cursor-not-allowed web3kit-disabled:web3kit-opacity-50 web3kit-px-4 web3kit-py-2 web3kit-w-full\"\r\n          name=\"token\"\r\n          placeholder=\"Token Address\"\r\n          ref={tokenRef}\r\n        />\r\n      )}\r\n\r\n      <div className=\"web3kit-relative web3kit-w-full\">\r\n        <motion.input\r\n          initial={{ opacity: 0, y: 20 }}\r\n          animate={{ opacity: 1, y: 0 }}\r\n          className=\"web3kit-bg-background web3kit-rounded-md web3kit-border web3kit-border-input web3kit-text-sm web3kit-ring-offset-background web3kit-focus:web3kit-ring-ring web3kit-focus:web3kit-ring-offset-2 web3kit-disabled:web3kit-cursor-not-allowed web3kit-disabled:web3kit-opacity-50 web3kit-px-4 web3kit-py-2 web3kit-w-full\"\r\n          name=\"amount\"\r\n          placeholder=\"Amount\"\r\n          ref={amountRef}\r\n        />\r\n        <motion.button\r\n          className=\"web3kit-absolute web3kit-right-2 web3kit-top-1/2 web3kit-text-xs web3kit-text-muted-foreground web3kit-font-medium web3kit-bg-background web3kit-rounded-md web3kit-px-2 web3kit-py-1 web3kit-translate-y-[-50%]\"\r\n          onClick={handleMaxAmount}\r\n          disabled={fetchingTokenBalance || fetchingBalance}\r\n        >\r\n          {fetchingTokenBalance || fetchingBalance ? (\r\n            <Spinner className=\"web3kit-size-6 web3kit-animate-spin\" />\r\n          ) : (\r\n            \"MAX\"\r\n          )}\r\n        </motion.button>\r\n      </div>\r\n\r\n      <motion.input\r\n        initial={{ opacity: 0, y: 20 }}\r\n        animate={{ opacity: 1, y: 0 }}\r\n        className=\"web3kit-bg-background web3kit-rounded-md web3kit-border web3kit-border-input web3kit-text-sm web3kit-ring-offset-background web3kit-focus:web3kit-ring-ring web3kit-focus:web3kit-ring-offset-2 web3kit-disabled:web3kit-cursor-not-allowed web3kit-disabled:web3kit-opacity-50 web3kit-px-4 web3kit-py-2 web3kit-w-full\"\r\n        name=\"recepient\"\r\n        placeholder=\"Recepient Address\"\r\n      />\r\n\r\n      <OptionButton disabled={isTransferring} logo={WithdrawLogo}>\r\n        {isTransferring ? \"Withdrawing\" : \"Withdraw\"}\r\n      </OptionButton>\r\n    </form>\r\n  );\r\n}\r\n","import { useSimpleKitContext } from \"@/react/context/SimpleKitContext\";\r\nimport { useConnectAccount } from \"@/react/hooks\";\r\nimport { Spinner } from \"@/react/icons\";\r\nimport { Button } from \"@/react/shadcn/ui/button\";\r\nimport { cn } from \"@/react/shadcn/utils\";\r\nimport { RotateCcw } from \"lucide-react\";\r\nimport { useEffect } from \"react\";\r\n\r\nexport function SocialConnecting() {\r\n  const { pendingItem } = useSimpleKitContext();\r\n\r\n  const {\r\n    mutateAsync: connectAccount,\r\n    isError,\r\n    error,\r\n    isPending,\r\n  } = useConnectAccount();\r\n\r\n  useEffect(() => {\r\n    connectAccount();\r\n  }, [pendingItem]);\r\n\r\n  if (!pendingItem) {\r\n    return null;\r\n  }\r\n\r\n  return (\r\n    <div className=\"web3kit-flex web3kit-w-full web3kit-flex-col web3kit-items-center web3kit-justify-center web3kit-gap-9 md:web3kit-pt-5\">\r\n      <div\r\n        className={cn(\r\n          \"web3kit-relative web3kit-size-28 web3kit-flex web3kit-items-center web3kit-justify-center web3kit-rounded-2xl web3kit-p-3\"\r\n        )}\r\n      >\r\n        <img\r\n          src={pendingItem.logo}\r\n          alt={pendingItem.name}\r\n          className=\"web3kit-size-16 web3kit-overflow-hidden web3kit-rounded-2xl\"\r\n        />\r\n\r\n        {!isPending && isError ? (\r\n          <Button\r\n            size=\"icon\"\r\n            variant=\"ghost\"\r\n            className=\"web3kit-group web3kit-absolute -web3kit-bottom-2 -web3kit-right-2 web3kit-rounded-full web3kit-bg-muted web3kit-p-1.5 web3kit-shadow\"\r\n            onClick={() => {\r\n              connectAccount();\r\n            }}\r\n          >\r\n            <RotateCcw className=\"web3kit-size-4 web3kit-transition-transform group-hover:-web3kit-rotate-45\" />\r\n          </Button>\r\n        ) : (\r\n          <Spinner className=\"web3kit-absolute web3kit-w-full web3kit-h-full web3kit-text-primary web3kit-animate-spin\" />\r\n        )}\r\n      </div>\r\n\r\n      <div className=\"web3kit-space-y-3.5 web3kit-px-3.5 web3kit-text-center sm:web3kit-px-0\">\r\n        <h1 className=\"web3kit-text-xl web3kit-font-semibold\">\r\n          {isError || error ? \"Request Error\" : \"Requesting Connection\"}\r\n        </h1>\r\n        <p className=\"web3kit-text-balance web3kit-text-sm web3kit-text-muted-foreground\">\r\n          {isError || error\r\n            ? \"There was an error with the request. Click above to try again.\"\r\n            : pendingItem.description}\r\n        </p>\r\n      </div>\r\n    </div>\r\n  );\r\n}\r\n","import { useSimpleKitContext } from \"@/react/context/SimpleKitContext\";\r\nimport { useSignAccount } from \"@/react/hooks\";\r\nimport { Spinner } from \"@/react/icons\";\r\nimport { Button } from \"@/react/shadcn/ui/button\";\r\nimport { cn } from \"@/react/shadcn/utils\";\r\nimport { RotateCcw } from \"lucide-react\";\r\nimport { useEffect } from \"react\";\r\n\r\nexport function AccountSigning() {\r\n  const { pendingItem } = useSimpleKitContext();\r\n\r\n  const {\r\n    error,\r\n    isError,\r\n    isPending,\r\n    mutateAsync: signAccount,\r\n  } = useSignAccount();\r\n\r\n  useEffect(() => {\r\n    signAccount();\r\n  }, [pendingItem]);\r\n\r\n  if (!pendingItem) {\r\n    return null;\r\n  }\r\n\r\n  return (\r\n    <div className=\"web3kit-flex web3kit-w-full web3kit-flex-col web3kit-items-center web3kit-justify-center web3kit-gap-9 md:web3kit-pt-5\">\r\n      <div\r\n        className={cn(\r\n          \"web3kit-relative web3kit-size-28 web3kit-flex web3kit-items-center web3kit-justify-center web3kit-rounded-2xl web3kit-p-3\"\r\n        )}\r\n      >\r\n        <img\r\n          src={pendingItem.logo}\r\n          alt={pendingItem.name}\r\n          className=\"web3kit-size-16 web3kit-overflow-hidden web3kit-rounded-2xl\"\r\n        />\r\n\r\n        {!isPending && isError ? (\r\n          <Button\r\n            size=\"icon\"\r\n            variant=\"ghost\"\r\n            className=\"web3kit-group web3kit-absolute -web3kit-bottom-2 -web3kit-right-2 web3kit-rounded-full web3kit-bg-muted web3kit-p-1.5 web3kit-shadow\"\r\n            onClick={() => {\r\n              signAccount();\r\n            }}\r\n          >\r\n            <RotateCcw className=\"web3kit-size-4 web3kit-transition-transform group-hover:-web3kit-rotate-45\" />\r\n          </Button>\r\n        ) : (\r\n          <Spinner className=\"web3kit-absolute web3kit-w-full web3kit-h-full web3kit-text-primary web3kit-animate-spin\" />\r\n        )}\r\n      </div>\r\n\r\n      <div className=\"web3kit-space-y-3.5 web3kit-px-3.5 web3kit-text-center sm:web3kit-px-0\">\r\n        <h1 className=\"web3kit-text-xl web3kit-font-semibold\">\r\n          {isError || error ? \"Request Error\" : \"Requesting Connection\"}\r\n        </h1>\r\n        <p className=\"web3kit-text-balance web3kit-text-sm web3kit-text-muted-foreground\">\r\n          {isError || error\r\n            ? \"There was an error with the request. Click above to try again.\"\r\n            : `We're verifying your ${pendingItem.id} account.`}\r\n        </p>\r\n      </div>\r\n    </div>\r\n  );\r\n}\r\n","import { useEffect } from \"react\";\r\nimport { routes, useSimpleKitContext } from \"./SimpleKitContext\";\r\nimport { NetworkSymbols } from \"based-auth/networks\";\r\nimport { useSolanaWallet } from \"@/react/hooks\";\r\nimport { chainSol, chainSolDevnet, isMainnet } from \"based-auth/chains\";\r\nimport { useQueryClient } from \"@tanstack/react-query\";\r\n\r\nexport function SimpleKit() {\r\n  const { setRouter, setPendingItem } = useSimpleKitContext();\r\n  const { solWallets } = useSolanaWallet();\r\n  const queryClient = useQueryClient();\r\n\r\n  // useEffect(() => {\r\n  //   const unwatchWagmiAccount = wagmiWatchAccount(wagmiConfig, {\r\n  //     async onChange(data) {\r\n  //       const { address, chainId, cchain, connector } = data;\r\n  //       console.log(\"wagmiWatchAccount change\", data);\r\n  //       if (!address) {\r\n  //         return;\r\n  //       }\r\n  //       if (!chain) {\r\n  //         const newChain = chains.find(\r\n  //           (c) => c.network.symbol === NetworkSymbols.eth\r\n  //         );\r\n  //         if (!newChain) {\r\n  //           throw new Error(\"No eth chain found\");\r\n  //         }\r\n  //         try {\r\n  //           await wagmiSwitchChain(wagmiConfig, {\r\n  //             connector,\r\n  //             chainId: newChain.id,\r\n  //           });\r\n  //         } catch {\r\n  //           setPendingItem(() => {\r\n  //             setRouter(routes.selectETHWallet);\r\n  //             return null;\r\n  //           });\r\n  //           return;\r\n  //         }\r\n  //       }\r\n  //       setRouter(() => {\r\n  //         setPendingItem({\r\n  //           id: connector?.id,\r\n  //           logo: connector?.icon,\r\n  //           network: NetworkSymbols.eth,\r\n  //           chainId,\r\n  //           address: address,\r\n  //         });\r\n  //         return routes.accountSigning;\r\n  //       });\r\n  //     },\r\n  //   });\r\n\r\n  //   ethWallets.forEach((connector) => {\r\n  //     connector.emitter.on(\"connect\", async (connectInfo: any) => {\r\n  //       const { accounts, chainId } = connectInfo;\r\n  //       setRouter(() => {\r\n  //         setPendingItem({\r\n  //           id: connector.id,\r\n  //           logo: connector.icon,\r\n  //           network: NetworkSymbols.eth,\r\n  //           chainId,\r\n  //           address: accounts[0],\r\n  //         });\r\n  //         return routes.accountSigning;\r\n  //       });\r\n  //     });\r\n  //     connector.emitter.on(\"change\", async (changeInfo: any) => {\r\n  //       const { chainId } = changeInfo;\r\n  //       console.log(\"change\", changeInfo, connector.id, connector.name);\r\n  //       if (!chains.find((c) => c.id === chainId)) {\r\n  //         const chain = chains.find(\r\n  //           (c) => c.network.symbol === NetworkSymbols.eth\r\n  //         );\r\n  //         if (!chain) {\r\n  //           throw new Error(\"No eth chain found\");\r\n  //         }\r\n  //         setRouter(() => {\r\n  //           setPendingItem({\r\n  //             name: chain.name,\r\n  //             logo: chain.logo,\r\n  //             args: [chain.id],\r\n  //           });\r\n  //           return routes.switchingChain;\r\n  //         });\r\n  //       }\r\n  //     });\r\n  //     connector.emitter.on(\"display_uri\", (uri: any) => {\r\n  //       console.log(\"display_uri\", uri, connector.id, connector.name);\r\n  //     });\r\n  //     connector.emitter.on(\"error\", (error: any) => {\r\n  //       console.log(\"error\", error, connector.id, connector.name);\r\n  //     });\r\n  //   });\r\n  //   return () => {\r\n  //     unwatchWagmiAccount();\r\n  //   };\r\n  // }, [ethWallets]);\r\n\r\n  useEffect(() => {\r\n    solWallets.forEach((connector) => {\r\n      connector.on(\"connect\", async (publicKey) => {\r\n        setRouter(() => {\r\n          setPendingItem({\r\n            id: connector.name,\r\n            logo: connector.icon,\r\n            network: NetworkSymbols.sol,\r\n            chainId: isMainnet ? chainSol.id : chainSolDevnet.id,\r\n            address: publicKey.toBase58(),\r\n          });\r\n          return routes.accountSigning;\r\n        });\r\n      });\r\n      connector.on(\"error\", (error: any) => {\r\n        console.log(\"error\", error, connector.name);\r\n      });\r\n      connector.on(\"disconnect\", async () => {\r\n        console.log(\"disconnect\", connector.name);\r\n      });\r\n    });\r\n    return () => {\r\n      solWallets.forEach((connector) => {\r\n        connector.off(\"connect\");\r\n        connector.off(\"error\");\r\n        connector.off(\"disconnect\");\r\n      });\r\n    };\r\n  }, [solWallets]);\r\n\r\n  useEffect(() => {\r\n    queryClient.fetchQuery({\r\n      queryKey: [\"use-social-providers\"],\r\n    });\r\n  }, []);\r\n\r\n  return <></>;\r\n}\r\n","import { ChevronLeft } from \"lucide-react\";\r\nimport {\r\n  SimpleKitModal,\r\n  SimpleKitModalBody,\r\n  SimpleKitModalContent,\r\n  SimpleKitModalDescription,\r\n  SimpleKitModalFooter,\r\n  SimpleKitModalHeader,\r\n  SimpleKitModalTitle,\r\n} from \"./web3modal\";\r\nimport { useAccount, useDisconnectAccount } from \"./hooks\";\r\nimport { OptionButton } from \"./components/OptionButton\";\r\nimport { LogoutLogo } from \"based-assets\";\r\nimport {\r\n  titles,\r\n  routes,\r\n  useSimpleKitContext,\r\n} from \"./context/SimpleKitContext\";\r\nimport { SelectETHWallet } from \"./sections/SelectETHWallet\";\r\nimport { SelectSolanaWallet } from \"./sections/SelectSolanaWallet\";\r\nimport { WalletQR } from \"./sections/WalletQR\";\r\nimport { WalletConnecting } from \"./sections/WalletConnecting\";\r\nimport { SwitchingChain } from \"./sections/SwitchingChain\";\r\nimport { SwitchAccount } from \"./sections/SwitchAccount\";\r\nimport { Account } from \"./sections/Account\";\r\nimport { Home } from \"./sections/Home\";\r\nimport { NetworkSymbols } from \"based-auth/networks\";\r\nimport { SwitchChain } from \"./sections/SwitchChain\";\r\nimport { SwitchingAccount } from \"./sections/SwitchingAccount\";\r\nimport { WithdrawFunds } from \"./sections/Withdraw\";\r\nimport { useEffect } from \"react\";\r\nimport { SocialConnecting } from \"./sections/SocialConnecting\";\r\nimport { AccountSigning } from \"./sections/AccountSigning\";\r\nimport { SimpleKit } from \"./context/SimpleKit\";\r\n\r\nconst pages = {\r\n  [routes.home]: <Home />,\r\n  [routes.account]: <Account />,\r\n  [routes.accountSigning]: <AccountSigning />,\r\n  [routes.switchChain]: <SwitchChain />,\r\n  [routes.switchingChain]: <SwitchingChain />,\r\n  [routes.switchAccount]: <SwitchAccount />,\r\n  [routes.switchingAccount]: <SwitchingAccount />,\r\n  [routes.selectETHWallet]: <SelectETHWallet />,\r\n  [routes.selectSolanaWallet]: <SelectSolanaWallet />,\r\n  [routes.walletConnecting]: <WalletConnecting />,\r\n  [routes.socialConnecting]: <SocialConnecting />,\r\n  [routes.walletqr]: <WalletQR />,\r\n  [routes.withdrawFunds]: <WithdrawFunds />,\r\n};\r\n\r\nexport function SimpleKitModalProvider(props: any) {\r\n  const { address, chainId } = useAccount();\r\n\r\n  const { router, setRouter, open, setOpen, pendingItem, setPendingItem } =\r\n    useSimpleKitContext();\r\n\r\n  useEffect(() => {\r\n    setOpen(false);\r\n    setPendingItem(null);\r\n    setRouter(address ? routes.account : routes.home);\r\n  }, [address, chainId]);\r\n\r\n  useEffect(() => {\r\n    if (!open) {\r\n      setRouter(address ? routes.account : routes.home);\r\n    }\r\n  }, [open]);\r\n\r\n  useEffect(() => {\r\n    const observer = new MutationObserver((mutations) => {\r\n      mutations.forEach((mutation) => {\r\n        if (\r\n          mutation.type === \"attributes\" &&\r\n          mutation.attributeName === \"style\"\r\n        ) {\r\n          const pointerEvents = document.body.style.pointerEvents;\r\n          if (pointerEvents === \"none\" && !open) {\r\n            console.log(\"pointerEvents removed\");\r\n            document.body.style.pointerEvents = \"\";\r\n          }\r\n        }\r\n      });\r\n    });\r\n\r\n    observer.observe(document.body, {\r\n      attributes: true,\r\n      attributeFilter: [\"style\"],\r\n    });\r\n\r\n    return () => {\r\n      observer.disconnect();\r\n    };\r\n  }, []);\r\n\r\n  return (\r\n    <>\r\n      {props.children}\r\n      <SimpleKit />\r\n      <SimpleKitModal open={open} onOpenChange={setOpen}>\r\n        <SimpleKitModalContent>\r\n          <SimpleKitModalHeader>\r\n            <BackChevron />\r\n            <SimpleKitModalTitle>\r\n              {router && router in titles\r\n                ? titles[router as keyof typeof titles]\r\n                : \"Login\"}\r\n            </SimpleKitModalTitle>\r\n            <SimpleKitModalDescription className=\"web3kit-sr-only\">\r\n              Connect your Web3 wallet or create a new one.\r\n            </SimpleKitModalDescription>\r\n          </SimpleKitModalHeader>\r\n          <SimpleKitModalBody>\r\n            {pages[router] || <>{!address ? <Home /> : <Account />}</>}\r\n          </SimpleKitModalBody>\r\n          <SimpleKitModalFooter>\r\n            <SimpleKitModalFooterContent />\r\n          </SimpleKitModalFooter>\r\n        </SimpleKitModalContent>\r\n      </SimpleKitModal>\r\n    </>\r\n  );\r\n}\r\n\r\nfunction SimpleKitModalFooterContent() {\r\n  const { address } = useAccount();\r\n  const { pendingItem } = useSimpleKitContext();\r\n\r\n  return <>{address && !pendingItem && <DisAccountButton />}</>;\r\n}\r\n\r\nfunction DisAccountButton() {\r\n  const { mutateAsync: disconnectAccount, isPending } = useDisconnectAccount();\r\n\r\n  return (\r\n    <OptionButton\r\n      logo={LogoutLogo}\r\n      disabled={isPending}\r\n      onClick={() => disconnectAccount()}\r\n    >\r\n      {isPending ? \"Signing out\" : \"Logout\"}\r\n    </OptionButton>\r\n  );\r\n}\r\n\r\nfunction BackChevron() {\r\n  const { address } = useAccount();\r\n  const { router, setRouter, pendingItem, setPendingItem } =\r\n    useSimpleKitContext();\r\n\r\n  if (!router) {\r\n    return null;\r\n  }\r\n\r\n  if (router === routes.home && !address) {\r\n    return null;\r\n  }\r\n\r\n  if (router === routes.account && address) {\r\n    return null;\r\n  }\r\n\r\n  function handleClick() {\r\n    if (pendingItem) {\r\n      setPendingItem(() => {\r\n        setRouter(!address ? routes.home : routes.account);\r\n        return null;\r\n      });\r\n      return;\r\n    }\r\n\r\n    switch (router) {\r\n      case routes.home:\r\n      case routes.switchChain:\r\n      case routes.switchAccount:\r\n      case routes.walletqr:\r\n      case routes.withdrawFunds:\r\n        setRouter(routes.account);\r\n        break;\r\n      default:\r\n        setRouter(routes.home);\r\n    }\r\n  }\r\n\r\n  return (\r\n    <button\r\n      className=\"web3kit-absolute web3kit-left-[26px] web3kit-top-[42px] web3kit-z-20 web3kit-rounded-sm web3kit-opacity-70 web3kit-ring-offset-background web3kit-transition-opacity hover:web3kit-opacity-100 focus:web3kit-outline-none focus:web3kit-ring-2 focus:web3kit-ring-ring focus:web3kit-ring-offset-2 disabled:web3kit-pointer-events-none data-[state=open]:web3kit-bg-accent data-[state=open]:web3kit-text-muted-foreground md:web3kit-top-[26px]\"\r\n      onClick={handleClick}\r\n    >\r\n      <ChevronLeft className=\"web3kit-h-4 web3kit-w-4\" />\r\n      <span className=\"web3kit-sr-only\">Cancel connection</span>\r\n    </button>\r\n  );\r\n}\r\n","import \"./global.css\";\r\nimport { SimpleKitContextProvider } from \"./context/SimpleKitContext\";\r\nimport { SimpleKitModalProvider } from \"./web3kit\";\r\n\r\nexport { useSimpleKit } from \"./context/SimpleKitContext\";\r\nexport {\r\n  useAccount,\r\n  useChainInfo,\r\n  useBalance,\r\n  useTokenBalance,\r\n  useBalanceAsync,\r\n  useTokenBalanceAsync,\r\n  useDisconnectAccount,\r\n  useReadContractAsync,\r\n  useWriteContractAsync,\r\n} from \"./hooks\";\r\n\r\nexport function SimpleKitProvider({\r\n  chains,\r\n  host,\r\n  name,\r\n  description,\r\n  icon,\r\n  projectId,\r\n  children,\r\n  signMessage,\r\n}: {\r\n  chains: any;\r\n  host: string;\r\n  name: string;\r\n  description: string;\r\n  icon: string;\r\n  projectId: string;\r\n  signMessage: string;\r\n  children: any;\r\n}) {\r\n  return (\r\n    <SimpleKitContextProvider\r\n      chains={chains}\r\n      host={host}\r\n      name={name}\r\n      description={description}\r\n      icon={icon}\r\n      projectId={projectId}\r\n      signMessage={signMessage}\r\n    >\r\n      <SimpleKitModalProvider>{children}</SimpleKitModalProvider>\r\n    </SimpleKitContextProvider>\r\n  );\r\n}\r\n"],"names":["REACT_ELEMENT_TYPE","REACT_FRAGMENT_TYPE","jsxProd","type","config","maybeKey","key","propName","reactJsxRuntime_production","getComponentNameFromType","REACT_CLIENT_REFERENCE","REACT_PROFILER_TYPE","REACT_STRICT_MODE_TYPE","REACT_SUSPENSE_TYPE","REACT_SUSPENSE_LIST_TYPE","REACT_ACTIVITY_TYPE","REACT_PORTAL_TYPE","REACT_CONTEXT_TYPE","REACT_CONSUMER_TYPE","REACT_FORWARD_REF_TYPE","innerType","REACT_MEMO_TYPE","REACT_LAZY_TYPE","testStringCoercion","value","checkKeyStringCoercion","JSCompiler_inline_result","JSCompiler_temp_const","JSCompiler_inline_result$jscomp$0","getTaskName","name","getOwner","dispatcher","ReactSharedInternals","UnknownOwner","hasValidKey","hasOwnProperty","getter","defineKeyPropWarningGetter","props","displayName","warnAboutAccessingKey","specialPropKeyWarningShown","elementRefGetterWithDeprecationWarning","componentName","didWarnAboutElementRef","ReactElement","self","source","owner","debugStack","debugTask","jsxDEVImpl","isStaticChildren","children","isArrayImpl","validateChildKeys","keys","k","didWarnAboutKeySpread","node","React","require$$0","createTask","callStackForError","unknownOwnerDebugStack","unknownOwnerDebugTask","reactJsxRuntime_development","trackActualOwner","jsxRuntimeModule","require$$1","titles","routes","SimpleKitContext","createContext","useSimpleKitContext","useContext","useSimpleKit","open","setOpen","rest","SimpleKitContextProvider","chains","host","description","icon","projectId","signMessage","useState","router","setRouter","pendingItem","setPendingItem","wagmiConfig","useMemo","filteredChains","item","NetworkSymbols","isInIframe","createConfig","injected","coinbaseWallet","safe","createStorage","cookieStorage","chain","http","solWallets","CoinbaseWalletAdapter","PhantomWalletAdapter","SafePalWalletAdapter","SolflareWalletAdapter","TrustWalletAdapter","jsx","WalletProvider","r","f","n","o","clsx","CLASS_PART_SEPARATOR","createClassGroupUtils","classMap","createClassMap","conflictingClassGroups","conflictingClassGroupModifiers","className","classParts","getGroupRecursive","getGroupIdForArbitraryProperty","classGroupId","hasPostfixModifier","conflicts","classPartObject","currentClassPart","nextClassPartObject","classGroupFromNextClassPart","classRest","_a","validator","arbitraryPropertyRegex","arbitraryPropertyClassName","property","theme","prefix","getPrefixedClassGroupEntries","classGroup","processClassesRecursively","classDefinition","classPartObjectToEdit","getPart","isThemeGetter","path","currentClassPartObject","pathPart","func","classGroupEntries","prefixedClassGroup","createLruCache","maxCacheSize","cacheSize","cache","previousCache","update","IMPORTANT_MODIFIER","createParseClassName","separator","experimentalParseClassName","isSeparatorSingleCharacter","firstSeparatorCharacter","separatorLength","parseClassName","modifiers","bracketDepth","modifierStart","postfixModifierPosition","index","currentCharacter","baseClassNameWithImportantModifier","hasImportantModifier","baseClassName","maybePostfixModifierPosition","sortModifiers","sortedModifiers","unsortedModifiers","modifier","createConfigUtils","SPLIT_CLASSES_REGEX","mergeClassList","classList","configUtils","getClassGroupId","getConflictingClassGroupIds","classGroupsInConflict","classNames","result","originalClassName","variantModifier","modifierId","classId","conflictGroups","i","group","twJoin","argument","resolvedValue","string","toValue","mix","createTailwindMerge","createConfigFirst","createConfigRest","cacheGet","cacheSet","functionToCall","initTailwindMerge","previousConfig","createConfigCurrent","tailwindMerge","cachedResult","fromTheme","themeGetter","arbitraryValueRegex","fractionRegex","stringLengths","tshirtUnitRegex","lengthUnitRegex","colorFunctionRegex","shadowRegex","imageRegex","isLength","isNumber","isArbitraryLength","getIsArbitraryValue","isLengthOnly","isArbitraryNumber","isInteger","isPercent","isArbitraryValue","isTshirtSize","sizeLabels","isArbitrarySize","isNever","isArbitraryPosition","imageLabels","isArbitraryImage","isImage","isArbitraryShadow","isShadow","isAny","label","testValue","getDefaultConfig","colors","spacing","blur","brightness","borderColor","borderRadius","borderSpacing","borderWidth","contrast","grayscale","hueRotate","invert","gap","gradientColorStops","gradientColorStopPositions","inset","margin","opacity","padding","saturate","scale","sepia","skew","space","translate","getOverscroll","getOverflow","getSpacingWithAutoAndArbitrary","getSpacingWithArbitrary","getLengthWithEmptyAndArbitrary","getNumberWithAutoAndArbitrary","getPositions","getLineStyles","getBlendModes","getAlign","getZeroAndEmpty","getBreaks","getNumberAndArbitrary","twMerge","cn","inputs","Dialog","DialogPrimitive","DialogPortal","DialogOverlay","ref","DialogContent","jsxs","X","DialogHeader","DialogFooter","DialogTitle","DialogDescription","Drawer","shouldScaleBackground","DrawerPrimitive","DrawerPortal","DrawerOverlay","DrawerContent","DrawerHeader","DrawerFooter","DrawerTitle","DrawerDescription","ScrollArea","ScrollAreaPrimitive","ScrollBar","orientation","desktop","SimpleKitModal","KitModal","useMediaQuery","SimpleKitModalContent","ModalContent","e","SimpleKitModalDescription","ModalDescription","SimpleKitModalHeader","ModalHeader","SimpleKitModalTitle","ModalTitle","SimpleKitModalBody","SimpleKitModalFooter","ModalFooter","query","matches","setMatches","mediaQueryList","updateMatch","event","clientToProvider","client","transport","network","_b","providers","JsonRpcProvider","FallbackProvider","getEthersProvider","chainId","getClient","maxTxSize","limitOnTable","estimateTransactionSize","tx","messageBytes","useAccount","session","useSession","address","social","image","role","provider","users","useChainInfo","WrongChainLogo","_c","_d","_e","useSocialProviders","useQuery","connectors","getProviders","useEthWallets","data","ethWalletLogos","MetaMaskLogo","WalletConnectLogo","CoinbaseLogo","wagmiGetConnectors","wallet","w","a","b","AisInstalled","BisInstalled","useSolanaWallet","publicKey","solConnect","solDisconnect","solSelect","solSignMessage","solSignTransaction","solSignAllTransactions","useWallet","WalletReadyState","_","cur","getProvider","isSignedIn","Connection","clusterApiUrl","isMainnet","WalletAdapterNetwork","useBalance","queryAddress","queryChainId","accountChainId","accountAddress","balance","lamports","SolanaPublicKey","useTokenBalance","tokenAddress","Contract","erc20Abi","tokenAccount","accountInfo","useConnectAccount","ethWallets","socialProviders","useMutation","connector","wagmiDisconnect","connectResult","wagmiConnect","error","ConnectorAlreadyConnectedError","wagmiGetChainId","accountResult","wagmiGetAccount","c","newChain","wagmiSwitchChain","p","signIn","toast","useSwitchChain","switchChainAccount","useSignAccount","signature","wagmiSignMessage","signatureContent","useSwitchAccount","user","useDisconnectAccount","signOut","useBalanceAsync","useTokenBalanceAsync","useTransferAsync","serialized","serialize","response","useReadContractAsync","switchChain","payload","deserialize","useWriteContractAsync","account","useEffect","abi","functionName","args","wagmiWriteContract","err","accounts","preInstructions","signers","remainingAccounts","connection","anchorProvider","AnchorProvider","program","Program","ixs","ComputeBudgetProgram","signer","SolanaKeypair","lookupTableInstruction","lookupTableAddress","AddressLookupTableProgram","extendInstruction","lookupTableTx","SolanaTransaction","lookupTableAccount","uploadedAddresses","ix","messageV0","TransactionMessage","transaction","VersionedTransaction","Spinner","OptionButton","onClick","logo","logoKey","disabled","motion","SelectETHWallet","SelectSolanaWallet","WalletQR","QRCodeSVG","falsyToString","cx","cva","base","_config_compoundVariants","variants","defaultVariants","getVariantClassNames","variant","variantProp","defaultVariantProp","variantKey","propsWithoutUndefined","acc","param","getCompoundVariantClassNames","cvClass","cvClassName","compoundVariantOptions","buttonVariants","Button","size","asChild","Comp","Slot","WalletConnecting","connectAccount","isError","isPending","RotateCcw","SwitchingChain","minifyAddress","len","isEthereumAddress","OptionSkeleton","SwitchAccount","Skeleton","CopyAddressButton","copied","setCopied","timeout","handleCopy","CheckIcon","CopyIcon","subscript","num","minifyDecimals","number","decimals","str","remains","zeros","Account","chainLogo","nativeSymbol","addressExplorer","canSwitchChain","buttons","AccountLogo","WithdrawLogo","formatUnits","QrCodeIcon","NetworkButton","logoIndex","setLogoIndex","selectedChains","interval","prev","currentLogo","socialIcons","GoogleLogo","GithubLogo","TwitterLogo","DiscordLogo","Home","networks","Logo","SwitchChain","SwitchingAccount","switchAccount","WithdrawFunds","amountRef","useRef","tokenRef","setType","nativeDecimals","fetchTokenBalance","fetchingTokenBalance","fetchBalance","fetchingBalance","transferAsync","isTransferring","submit","formData","amount","recepient","parseUnits","handleMaxAmount","fee","baseFee","estimatedGasLimit","gasPrice","tokenBalance","SocialConnecting","AccountSigning","signAccount","SimpleKit","queryClient","useQueryClient","chainSol","chainSolDevnet","Fragment","pages","SimpleKitModalProvider","observer","mutations","mutation","BackChevron","SimpleKitModalFooterContent","DisAccountButton","disconnectAccount","LogoutLogo","handleClick","ChevronLeft","SimpleKitProvider"],"mappings":";;;;;;;;6CAWA,IAAIA,EAAqB,OAAO,IAAI,4BAA4B,EAC9DC,EAAsB,OAAO,IAAI,gBAAgB,EACnD,SAASC,EAAQC,EAAMC,EAAQC,EAAU,CACvC,IAAIC,EAAM,KAGV,GAFWD,IAAX,SAAwBC,EAAM,GAAKD,GACxBD,EAAO,MAAlB,SAA0BE,EAAM,GAAKF,EAAO,KACxC,QAASA,EAAQ,CACnBC,EAAW,CAAE,EACb,QAASE,KAAYH,EACTG,IAAV,QAAuBF,EAASE,CAAQ,EAAIH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