From 21b4f1c35a12a57c1837c4fe7dc38acd03f55bd1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jann=20M=C3=BCller?= Date: Mon, 6 Jan 2025 19:13:39 +0000 Subject: [PATCH 01/10] Add script target parameter (debug / production) (#37) * Add ScriptTarget flag * Add build target in one place * WIP - script dependencies * Fix build error * Use scripts from env everywhere * Parameterise tests by script target * Delete node params (not required anymore) * Add filter for NFT to globalParamsNode * 10x ex units and memory for testing * Rename workflow * github action: Fix concurrency group --- .github/workflows/ci-compiled-scripts.yaml | 4 +- src/lib/SmartTokens/Core/Scripts.hs | 36 +++- src/lib/Wst/Cli.hs | 3 +- src/lib/Wst/Offchain/BuildTx/DirectorySet.hs | 17 +- .../Wst/Offchain/BuildTx/ProgrammableLogic.hs | 78 ++------ .../Wst/Offchain/BuildTx/ProtocolParams.hs | 17 +- src/lib/Wst/Offchain/BuildTx/TransferLogic.hs | 18 +- src/lib/Wst/Offchain/Endpoints/Deployment.hs | 25 ++- src/lib/Wst/Offchain/Env.hs | 152 +++++++++++---- src/lib/Wst/Offchain/Query.hs | 15 +- src/lib/Wst/Offchain/Scripts.hs | 89 ++++----- src/lib/Wst/Server.hs | 29 +-- src/lib/Wst/Server/Endpoints.hs | 31 --- src/test/unit/Wst/Test/UnitTest.hs | 183 +++++++++--------- src/wst-poc.cabal | 1 - 15 files changed, 352 insertions(+), 346 deletions(-) delete mode 100644 src/lib/Wst/Server/Endpoints.hs diff --git a/.github/workflows/ci-compiled-scripts.yaml b/.github/workflows/ci-compiled-scripts.yaml index 77270ee..e997d0f 100644 --- a/.github/workflows/ci-compiled-scripts.yaml +++ b/.github/workflows/ci-compiled-scripts.yaml @@ -1,4 +1,4 @@ -name: ci-linux +name: ci-check-generated-code on: push: branches: @@ -6,7 +6,7 @@ on: pull_request: concurrency: - group: ${{ github.ref }} + group: "check-generated-code ${{ github.ref }}" cancel-in-progress: true jobs: diff --git a/src/lib/SmartTokens/Core/Scripts.hs b/src/lib/SmartTokens/Core/Scripts.hs index 6fcad66..96202af 100644 --- a/src/lib/SmartTokens/Core/Scripts.hs +++ b/src/lib/SmartTokens/Core/Scripts.hs @@ -1,18 +1,46 @@ module SmartTokens.Core.Scripts ( + -- * Build targets + ScriptTarget(..), + targetConfig, + + -- * Compile functions tryCompile, tryCompileTracingAndBinds, tryCompileNoTracing, ) where +import Data.Aeson (FromJSON, ToJSON) +import GHC.Generics (Generic) import Plutarch -tryCompile :: Config -> ClosedTerm a -> Script -tryCompile cfg x = case compile cfg x of +{-| Script target environment +-} +data ScriptTarget + = Debug -- ^ Include debug symbols + | Production -- ^ No debug symbols + deriving stock (Eq, Ord, Show, Generic) + deriving anyclass (ToJSON, FromJSON) + +{-| The plutarch 'Config' for the target +-} +targetConfig :: ScriptTarget -> Config +targetConfig = \case + Debug -> tracingAndBindsConfig + Production -> prodConfig + +tryCompile :: ScriptTarget -> ClosedTerm a -> Script +tryCompile tgt x = case compile (targetConfig tgt) x of Left e -> error $ "Compilation failed: " <> show e Right s -> s tryCompileTracingAndBinds :: ClosedTerm a -> Script -tryCompileTracingAndBinds = tryCompile (Tracing LogInfo DoTracingAndBinds) +tryCompileTracingAndBinds = tryCompile Debug tryCompileNoTracing :: ClosedTerm a -> Script -tryCompileNoTracing = tryCompile NoTracing +tryCompileNoTracing = tryCompile Production + +tracingAndBindsConfig :: Config +tracingAndBindsConfig = Tracing LogInfo DoTracingAndBinds + +prodConfig :: Config +prodConfig = NoTracing diff --git a/src/lib/Wst/Cli.hs b/src/lib/Wst/Cli.hs index 81070cf..aa7db85 100644 --- a/src/lib/Wst/Cli.hs +++ b/src/lib/Wst/Cli.hs @@ -12,6 +12,7 @@ import Data.Proxy (Proxy) import Data.String (IsString (..)) import Options.Applicative (customExecParser, disambiguate, helper, idm, info, prefs, showHelpOnEmpty, showHelpOnError) +import SmartTokens.Core.Scripts (ScriptTarget (Production)) import Wst.App (runWstApp) import Wst.Cli.Command (Command (..), ManageCommand (StartServer, Status), parseCommand) @@ -32,7 +33,7 @@ runCommand com = do result <- case com of Deploy config -> runWstApp env (deploy config) Manage txIn com_ -> do - let env' = Env.addDirectoryEnvFor txIn env + let env' = Env.addDirectoryEnvFor (Env.DirectoryScriptRoot txIn Production) env runWstApp env' $ case com_ of Status -> do -- TODO: status check (call the query endpoints and print out a summary of the results) diff --git a/src/lib/Wst/Offchain/BuildTx/DirectorySet.hs b/src/lib/Wst/Offchain/BuildTx/DirectorySet.hs index 17c6923..39dab87 100644 --- a/src/lib/Wst/Offchain/BuildTx/DirectorySet.hs +++ b/src/lib/Wst/Offchain/BuildTx/DirectorySet.hs @@ -36,8 +36,7 @@ import SmartTokens.Types.ProtocolParams (ProgrammableLogicGlobalParams) import SmartTokens.Types.PTokenDirectory (DirectorySetNode (..)) import Wst.Offchain.Env qualified as Env import Wst.Offchain.Query (UTxODat (..)) -import Wst.Offchain.Scripts (directoryNodeMintingScript, - directoryNodeSpendingScript, scriptPolicyIdV3) +import Wst.Offchain.Scripts (scriptPolicyIdV3) _unused :: String _unused = _printTerm $ unsafeEvalTerm NoTracing (pconstantData initialNode) @@ -57,22 +56,21 @@ initialNode = DirectorySetNode initDirectorySet :: forall era env m. (MonadReader env m, Env.HasDirectoryEnv env, C.IsBabbageBasedEra era, MonadBlockchain era m, C.HasScriptLanguageInEra C.PlutusScriptV3 era, MonadBuildTx era m) => m () initDirectorySet = Utils.inBabbage @era $ do - txIn <- asks (Env.dsTxIn . Env.directoryEnv) - paramsPolicyId <- asks (Env.protocolParamsPolicyId . Env.directoryEnv) netId <- queryNetworkId - let mintingScript = directoryNodeMintingScript txIn + directoryMintingScript <- asks (Env.dsDirectoryMintingScript . Env.directoryEnv) + directorySpendingScript <- asks (Env.dsDirectorySpendingScript . Env.directoryEnv) - mintPlutus mintingScript InitDirectory (unTransAssetName directoryNodeToken) 1 + mintPlutus directoryMintingScript InitDirectory (unTransAssetName directoryNodeToken) 1 let val = C.TxOutValueShelleyBased C.shelleyBasedEra $ C.toLedgerValue @era C.maryBasedEra - $ fromList [(C.AssetId (scriptPolicyIdV3 mintingScript) (unTransAssetName directoryNodeToken), 1)] + $ fromList [(C.AssetId (scriptPolicyIdV3 directoryMintingScript) (unTransAssetName directoryNodeToken), 1)] addr = C.makeShelleyAddressInEra C.shelleyBasedEra netId - (C.PaymentCredentialByScript $ C.hashScript $ C.PlutusScript C.PlutusScriptV3 $ directoryNodeSpendingScript paramsPolicyId) + (C.PaymentCredentialByScript $ C.hashScript $ C.PlutusScript C.PlutusScriptV3 directorySpendingScript) C.NoStakeAddress dat = C.TxOutDatumInline C.babbageBasedEra $ toHashableScriptData initialNode @@ -95,7 +93,6 @@ data InsertNodeArgs = insertDirectoryNode :: forall era env m. (MonadReader env m, Env.HasDirectoryEnv env, C.IsBabbageBasedEra era, MonadBuildTx era m, C.HasScriptLanguageInEra C.PlutusScriptV3 era, MonadBlockchain era m) => UTxODat era ProgrammableLogicGlobalParams -> UTxODat era DirectorySetNode -> InsertNodeArgs -> m () insertDirectoryNode UTxODat{uIn=paramsRef} UTxODat{uIn, uOut=firstTxOut, uDatum=firstTxData} InsertNodeArgs{inaNewKey, inaTransferLogic, inaIssuerLogic} = Utils.inBabbage @era $ do netId <- queryNetworkId - paramsPolicyId <- asks (Env.protocolParamsPolicyId . Env.directoryEnv) directorySpendingScript <- asks (Env.dsDirectorySpendingScript . Env.directoryEnv) directoryMintingScript <- asks (Env.dsDirectoryMintingScript . Env.directoryEnv) let @@ -115,7 +112,7 @@ insertDirectoryNode UTxODat{uIn=paramsRef} UTxODat{uIn, uOut=firstTxOut, uDatum= C.makeShelleyAddressInEra C.shelleyBasedEra netId - (C.PaymentCredentialByScript $ C.hashScript $ C.PlutusScript C.PlutusScriptV3 $ directoryNodeSpendingScript paramsPolicyId ) + (C.PaymentCredentialByScript $ C.hashScript $ C.PlutusScript C.PlutusScriptV3 directorySpendingScript) C.NoStakeAddress dsn = DirectorySetNode diff --git a/src/lib/Wst/Offchain/BuildTx/ProgrammableLogic.hs b/src/lib/Wst/Offchain/BuildTx/ProgrammableLogic.hs index 0eae8de..6ec25f2 100644 --- a/src/lib/Wst/Offchain/BuildTx/ProgrammableLogic.hs +++ b/src/lib/Wst/Offchain/BuildTx/ProgrammableLogic.hs @@ -6,13 +6,7 @@ {-# HLINT ignore "Use second" #-} module Wst.Offchain.BuildTx.ProgrammableLogic - ( - IssueNewTokenArgs (..), - alwaysSucceedsArgs, - fromTransferEnv, - programmableTokenMintingScript, - programmableTokenAssetId, - issueProgrammableToken, + ( issueProgrammableToken, transferProgrammableToken, seizeProgrammableToken, ) @@ -21,6 +15,7 @@ where import Cardano.Api qualified as C import Cardano.Api.Shelley qualified as C import Control.Lens ((^.)) +import Control.Monad (unless) import Control.Monad.Reader (MonadReader, asks) import Convex.BuildTx (MonadBuildTx, addReference, addWithdrawalWithTxBody, buildScriptWitness, findIndexReference, @@ -28,10 +23,8 @@ import Convex.BuildTx (MonadBuildTx, addReference, addWithdrawalWithTxBody, spendPlutusInlineDatum) import Convex.CardanoApi.Lenses as L import Convex.Class (MonadBlockchain (queryNetworkId)) -import Convex.PlutusLedger.V1 (transPolicyId, unTransCredential, - unTransPolicyId) +import Convex.PlutusLedger.V1 (transPolicyId) import Convex.Utils qualified as Utils -import Data.Either (fromRight) import Data.Foldable (find, maximumBy, traverse_) import Data.Function (on) import Data.List (partition) @@ -48,59 +41,26 @@ import Wst.Offchain.BuildTx.DirectorySet (InsertNodeArgs (..), import Wst.Offchain.Env (TransferLogicEnv (..)) import Wst.Offchain.Env qualified as Env import Wst.Offchain.Query (UTxODat (..)) -import Wst.Offchain.Scripts (alwaysSucceedsScript, - programmableLogicMintingScript) - -data IssueNewTokenArgs = IssueNewTokenArgs - { intaMintingLogic :: C.PlutusScript C.PlutusScriptV3, -- TODO: We could add a parameter for the script 'lang' instead of fixing it to PlutusV3 - intaTransferLogic :: C.PlutusScript C.PlutusScriptV3, - intaIssuerLogic :: C.PlutusScript C.PlutusScriptV3 - } - -{-| 'IssueNewTokenArgs' for the policy that always succeeds (no checks) --} -alwaysSucceedsArgs :: IssueNewTokenArgs -alwaysSucceedsArgs = - IssueNewTokenArgs - { intaMintingLogic = alwaysSucceedsScript - , intaTransferLogic = alwaysSucceedsScript - , intaIssuerLogic = alwaysSucceedsScript - } - -{-| 'IssueNewTokenArgs' for the transfer logic --} -fromTransferEnv :: TransferLogicEnv -> IssueNewTokenArgs -fromTransferEnv TransferLogicEnv{tleMintingScript, tleTransferScript, tleIssuerScript} = - IssueNewTokenArgs - { intaMintingLogic = tleMintingScript - , intaTransferLogic = tleTransferScript - , intaIssuerLogic = tleIssuerScript - } - -{-| The minting script for a programmable token that uses the global parameters --} -programmableTokenMintingScript :: ProgrammableLogicGlobalParams -> IssueNewTokenArgs -> C.PlutusScript C.PlutusScriptV3 -programmableTokenMintingScript ProgrammableLogicGlobalParams {progLogicCred, directoryNodeCS} IssueNewTokenArgs{intaMintingLogic} = - let progLogicScriptCredential = fromRight (error "could not parse protocol params") $ unTransCredential progLogicCred - directoryNodeSymbol = fromRight (error "could not parse protocol params") $ unTransPolicyId directoryNodeCS - in programmableLogicMintingScript progLogicScriptCredential (C.StakeCredentialByScript $ C.hashScript $ C.PlutusScript C.plutusScriptVersion intaMintingLogic) directoryNodeSymbol - -{-| 'C.AssetId' of the programmable tokens --} -programmableTokenAssetId :: ProgrammableLogicGlobalParams -> IssueNewTokenArgs -> C.AssetName -> C.AssetId -programmableTokenAssetId params inta = - C.AssetId - (C.scriptPolicyId $ C.PlutusScript C.plutusScriptVersion $ programmableTokenMintingScript params inta) - {- Issue a programmable token and register it in the directory set if necessary. The caller should ensure that the specific minting logic stake script witness is included in the final transaction. - If the programmable token is not in the directory, then it is registered - If the programmable token is in the directory, then it is minted -} -issueProgrammableToken :: forall era env m. (MonadReader env m, Env.HasDirectoryEnv env, C.IsBabbageBasedEra era, MonadBlockchain era m, C.HasScriptLanguageInEra C.PlutusScriptV3 era, MonadBuildTx era m) => UTxODat era ProgrammableLogicGlobalParams -> (C.AssetName, C.Quantity) -> IssueNewTokenArgs -> [UTxODat era DirectorySetNode] -> m C.PolicyId -issueProgrammableToken paramsTxOut (an, q) inta@IssueNewTokenArgs{intaTransferLogic, intaIssuerLogic} directoryList = Utils.inBabbage @era $ do - let mintingScript = programmableTokenMintingScript (uDatum paramsTxOut) inta +issueProgrammableToken :: forall era env m. (MonadReader env m, Env.HasDirectoryEnv env, Env.HasTransferLogicEnv env, C.IsBabbageBasedEra era, MonadBlockchain era m, C.HasScriptLanguageInEra C.PlutusScriptV3 era, MonadBuildTx era m) => UTxODat era ProgrammableLogicGlobalParams -> (C.AssetName, C.Quantity) -> [UTxODat era DirectorySetNode] -> m C.PolicyId +issueProgrammableToken paramsTxOut (an, q) directoryList = Utils.inBabbage @era $ do + inta@TransferLogicEnv{tleTransferScript, tleIssuerScript} <- asks Env.transferLogicEnv + glParams <- asks (Env.globalParams . Env.directoryEnv) + dir <- asks Env.directoryEnv + + -- The global params in the UTxO need to match those in our 'DirectoryEnv'. + -- If they don't, we get a script error when trying to balance the transaction. + -- To avoid this we check for equality here and fail early. + unless (glParams == uDatum paramsTxOut) $ + -- FIXME: Error handling + error "Global params do not match" + + let mintingScript = Env.programmableTokenMintingScript dir inta issuedPolicyId = C.scriptPolicyId $ C.PlutusScript C.PlutusScriptV3 mintingScript issuedSymbol = transPolicyId issuedPolicyId @@ -115,8 +75,8 @@ issueProgrammableToken paramsTxOut (an, q) inta@IssueNewTokenArgs{intaTransferLo let nodeArgs = InsertNodeArgs { inaNewKey = issuedSymbol - , inaTransferLogic = C.StakeCredentialByScript $ C.hashScript $ C.PlutusScript C.plutusScriptVersion intaTransferLogic - , inaIssuerLogic = C.StakeCredentialByScript $ C.hashScript $ C.PlutusScript C.plutusScriptVersion intaIssuerLogic + , inaTransferLogic = C.StakeCredentialByScript $ C.hashScript $ C.PlutusScript C.plutusScriptVersion tleTransferScript + , inaIssuerLogic = C.StakeCredentialByScript $ C.hashScript $ C.PlutusScript C.plutusScriptVersion tleIssuerScript } mintPlutus mintingScript RegisterPToken an q diff --git a/src/lib/Wst/Offchain/BuildTx/ProtocolParams.hs b/src/lib/Wst/Offchain/BuildTx/ProtocolParams.hs index 79efd70..a66254d 100644 --- a/src/lib/Wst/Offchain/BuildTx/ProtocolParams.hs +++ b/src/lib/Wst/Offchain/BuildTx/ProtocolParams.hs @@ -1,3 +1,4 @@ +{-# LANGUAGE NamedFieldPuns #-} module Wst.Offchain.BuildTx.ProtocolParams ( mintProtocolParams, getProtocolParamsGlobalInline @@ -15,9 +16,9 @@ import Convex.Utils qualified as Utils import GHC.Exts (IsList (..)) import SmartTokens.Types.Constants (protocolParamsToken) import SmartTokens.Types.ProtocolParams (ProgrammableLogicGlobalParams) +import Wst.Offchain.Env (DirectoryEnv (..)) import Wst.Offchain.Env qualified as Env -import Wst.Offchain.Scripts (protocolParamsMintingScript, - protocolParamsSpendingScript, scriptPolicyIdV3) +import Wst.Offchain.Scripts (scriptPolicyIdV3) protocolParamsTokenC :: C.AssetName protocolParamsTokenC = unTransAssetName protocolParamsToken @@ -26,13 +27,11 @@ protocolParamsTokenC = unTransAssetName protocolParamsToken -} mintProtocolParams :: forall era env m. (MonadReader env m, Env.HasDirectoryEnv env, C.IsBabbageBasedEra era, MonadBuildTx era m, C.HasScriptLanguageInEra C.PlutusScriptV3 era, MonadBlockchain era m) => m () mintProtocolParams = Utils.inBabbage @era $ do - txIn <- asks (Env.dsTxIn . Env.directoryEnv) + txIn <- asks (Env.srTxIn . Env.dsScriptRoot . Env.directoryEnv) params <- asks (Env.globalParams . Env.directoryEnv) netId <- queryNetworkId - let - mintingScript = protocolParamsMintingScript txIn - - policyId = scriptPolicyIdV3 mintingScript + DirectoryEnv{dsProtocolParamsMintingScript, dsProtocolParamsSpendingScript} <- asks Env.directoryEnv + let policyId = scriptPolicyIdV3 dsProtocolParamsMintingScript val = C.TxOutValueShelleyBased C.shelleyBasedEra $ C.toLedgerValue @era C.maryBasedEra $ fromList [(C.AssetId policyId protocolParamsTokenC, 1)] @@ -41,7 +40,7 @@ mintProtocolParams = Utils.inBabbage @era $ do C.makeShelleyAddressInEra C.shelleyBasedEra netId - (C.PaymentCredentialByScript $ C.hashScript $ C.PlutusScript C.PlutusScriptV3 protocolParamsSpendingScript) + (C.PaymentCredentialByScript $ C.hashScript $ C.PlutusScript C.PlutusScriptV3 dsProtocolParamsSpendingScript) C.NoStakeAddress -- Should contain directoryNodeCS and progLogicCred fields @@ -51,7 +50,7 @@ mintProtocolParams = Utils.inBabbage @era $ do output = C.TxOut addr val dat C.ReferenceScriptNone spendPublicKeyOutput txIn - mintPlutus mintingScript () protocolParamsTokenC 1 + mintPlutus dsProtocolParamsMintingScript () protocolParamsTokenC 1 prependTxOut output getProtocolParamsGlobalInline :: C.InAnyCardanoEra (C.TxOut C.CtxTx) -> Maybe ProgrammableLogicGlobalParams diff --git a/src/lib/Wst/Offchain/BuildTx/TransferLogic.hs b/src/lib/Wst/Offchain/BuildTx/TransferLogic.hs index bf080f8..6455c53 100644 --- a/src/lib/Wst/Offchain/BuildTx/TransferLogic.hs +++ b/src/lib/Wst/Offchain/BuildTx/TransferLogic.hs @@ -44,24 +44,13 @@ import SmartTokens.Types.ProtocolParams import SmartTokens.Types.PTokenDirectory (BlacklistNode (..), DirectorySetNode (..)) import Wst.AppError (AppError (TransferBlacklistedCredential)) -import Wst.Offchain.BuildTx.ProgrammableLogic (IssueNewTokenArgs (..), - issueProgrammableToken, +import Wst.Offchain.BuildTx.ProgrammableLogic (issueProgrammableToken, seizeProgrammableToken, transferProgrammableToken) import Wst.Offchain.Env qualified as Env import Wst.Offchain.Query (UTxODat (..)) import Wst.Offchain.Scripts (scriptPolicyIdV3) -intaFromEnv :: forall env m. (MonadReader env m, Env.HasTransferLogicEnv env)=> m IssueNewTokenArgs -intaFromEnv = do - Env.TransferLogicEnv{Env.tleIssuerScript, Env.tleMintingScript, Env.tleTransferScript} <- asks Env.transferLogicEnv - pure $ IssueNewTokenArgs - { intaTransferLogic= tleTransferScript - , intaMintingLogic= tleMintingScript - , intaIssuerLogic= tleIssuerScript - } - - {- >>> _printTerm $ unsafeEvalTerm NoTracing (pconstant blacklistInitialNode) "program\n 1.0.0\n (List [B #, B #ffffffffffffffffffffffffffffffffffffffffffffffffffffffff])" @@ -157,10 +146,7 @@ paySmartTokensToDestination (an, q) issuedPolicyId destinationCred = Utils.inBab issueSmartTokens :: forall era env m. (MonadReader env m, Env.HasTransferLogicEnv env, Env.HasDirectoryEnv env, C.IsBabbageBasedEra era, MonadBlockchain era m, C.HasScriptLanguageInEra C.PlutusScriptV3 era, MonadBuildTx era m, Env.HasOperatorEnv era env) => UTxODat era ProgrammableLogicGlobalParams -> (C.AssetName, C.Quantity) -> [UTxODat era DirectorySetNode] -> C.PaymentCredential -> m C.AssetId issueSmartTokens paramsTxOut (an, q) directoryList destinationCred = Utils.inBabbage @era $ do - inta <- intaFromEnv - issuedPolicyId <- issueProgrammableToken paramsTxOut (an, q) inta directoryList - - + issuedPolicyId <- issueProgrammableToken paramsTxOut (an, q) directoryList addIssueWitness -- payToAddress addr value paySmartTokensToDestination (an, q) issuedPolicyId destinationCred diff --git a/src/lib/Wst/Offchain/Endpoints/Deployment.hs b/src/lib/Wst/Offchain/Endpoints/Deployment.hs index 58c7c91..0c74a95 100644 --- a/src/lib/Wst/Offchain/Endpoints/Deployment.hs +++ b/src/lib/Wst/Offchain/Endpoints/Deployment.hs @@ -1,3 +1,4 @@ +{-# LANGUAGE NamedFieldPuns #-} {-| Deploy the directory and global params -} module Wst.Offchain.Endpoints.Deployment( @@ -22,6 +23,7 @@ import Convex.Class (MonadBlockchain, MonadUtxoQuery) import Convex.CoinSelection qualified import Data.Foldable (maximumBy) import Data.Function (on) +import SmartTokens.Core.Scripts (ScriptTarget (..)) import SmartTokens.Types.PTokenDirectory (DirectorySetNode (..)) import Wst.AppError (AppError) import Wst.Offchain.BuildTx.DirectorySet (InsertNodeArgs (inaNewKey)) @@ -29,6 +31,7 @@ import Wst.Offchain.BuildTx.DirectorySet qualified as BuildTx import Wst.Offchain.BuildTx.ProgrammableLogic qualified as BuildTx import Wst.Offchain.BuildTx.ProtocolParams qualified as BuildTx import Wst.Offchain.BuildTx.TransferLogic qualified as BuildTx +import Wst.Offchain.Env (DirectoryScriptRoot (..)) import Wst.Offchain.Env qualified as Env import Wst.Offchain.Query (UTxODat (..)) import Wst.Offchain.Query qualified as Query @@ -36,14 +39,15 @@ import Wst.Offchain.Query qualified as Query {-| Build a transaction that deploys the directory and global params. Returns the transaction and the 'TxIn' that was selected for the one-shot NFTs. -} -deployTx :: (MonadReader env m, Env.HasOperatorEnv era env, MonadBlockchain era m, MonadError (AppError era) m, C.IsBabbageBasedEra era, C.HasScriptLanguageInEra C.PlutusScriptV3 era) => m (C.Tx era, C.TxIn) -deployTx = do +deployTx :: (MonadReader env m, Env.HasOperatorEnv era env, MonadBlockchain era m, MonadError (AppError era) m, C.IsBabbageBasedEra era, C.HasScriptLanguageInEra C.PlutusScriptV3 era) => ScriptTarget -> m (C.Tx era, DirectoryScriptRoot) +deployTx target = do (txi, _) <- Env.selectOperatorOutput opEnv <- asks Env.operatorEnv - (tx, _) <- Env.withEnv $ Env.withOperator opEnv $ Env.withDirectoryFor txi + let root = DirectoryScriptRoot txi target + (tx, _) <- Env.withEnv $ Env.withOperator opEnv $ Env.withDirectoryFor root $ Env.balanceTxEnv_ $ BuildTx.mintProtocolParams >> BuildTx.initDirectorySet - pure (Convex.CoinSelection.signBalancedTxBody [] tx, txi) + pure (Convex.CoinSelection.signBalancedTxBody [] tx, root) {-| Build a transaction that inserts a node into the directory -} @@ -68,25 +72,26 @@ issueProgrammableTokenTx :: forall era env m. ( MonadReader env m , Env.HasOperatorEnv era env , Env.HasDirectoryEnv env + , Env.HasTransferLogicEnv env , MonadBlockchain era m , MonadError (AppError era) m , C.IsBabbageBasedEra era , C.HasScriptLanguageInEra C.PlutusScriptV3 era , MonadUtxoQuery m ) - => BuildTx.IssueNewTokenArgs -- ^ credentials of the token - -> C.AssetName -- ^ Name of the asset + => C.AssetName -- ^ Name of the asset -> Quantity -- ^ Amount of tokens to be minted -> m (C.Tx era) -issueProgrammableTokenTx issueTokenArgs assetName quantity = do +issueProgrammableTokenTx assetName quantity = do directory <- Query.registryNodes @era paramsNode <- Query.globalParamsNode @era + Env.TransferLogicEnv{Env.tleMintingScript} <- asks Env.transferLogicEnv (tx, _) <- Env.balanceTxEnv_ $ do - polId <- BuildTx.issueProgrammableToken paramsNode (assetName, quantity) issueTokenArgs directory + polId <- BuildTx.issueProgrammableToken paramsNode (assetName, quantity) directory Env.operatorPaymentCredential >>= BuildTx.paySmartTokensToDestination (assetName, quantity) polId - let hsh = C.hashScript (C.PlutusScript C.plutusScriptVersion $ BuildTx.intaMintingLogic issueTokenArgs) - BuildTx.addScriptWithdrawal hsh 0 $ BuildTx.buildScriptWitness (BuildTx.intaMintingLogic issueTokenArgs) C.NoScriptDatumForStake () + let hsh = C.hashScript (C.PlutusScript C.plutusScriptVersion tleMintingScript) + BuildTx.addScriptWithdrawal hsh 0 $ BuildTx.buildScriptWitness tleMintingScript C.NoScriptDatumForStake () pure (Convex.CoinSelection.signBalancedTxBody [] tx) deployBlacklistTx :: (MonadReader env m, Env.HasOperatorEnv era env, MonadBlockchain era m, MonadError (AppError era) m, C.IsBabbageBasedEra era, C.HasScriptLanguageInEra C.PlutusScriptV3 era, Env.HasDirectoryEnv env) => m (C.Tx era) diff --git a/src/lib/Wst/Offchain/Env.hs b/src/lib/Wst/Offchain/Env.hs index 2555a6e..f653e77 100644 --- a/src/lib/Wst/Offchain/Env.hs +++ b/src/lib/Wst/Offchain/Env.hs @@ -19,10 +19,13 @@ module Wst.Offchain.Env( balanceTxEnv, balanceTxEnv_, - -- * Directory environment + -- * On-chain scripts + + -- ** Directory environment + DirectoryScriptRoot(..), + mkDirectoryEnv, HasDirectoryEnv(..), DirectoryEnv(..), - mkDirectoryEnv, programmableLogicStakeCredential, programmableLogicBaseCredential, directoryNodePolicyId, @@ -30,15 +33,22 @@ module Wst.Offchain.Env( globalParams, getGlobalParams, - -- * Transfer logic environment + -- ** Transfer logic environment + BlacklistTransferLogicScriptRoot(..), + mkTransferLogicEnv, TransferLogicEnv(..), + transferLogicForDirectory, + alwaysSucceedsTransferLogic, HasTransferLogicEnv(..), - mkTransferLogicEnv, addTransferEnv, withTransfer, withTransferFor, withTransferFromOperator, + -- ** Minting tokens + programmableTokenMintingScript, + programmableTokenAssetId, + -- * Runtime data RuntimeEnv(..), HasRuntimeEnv(..), @@ -76,26 +86,32 @@ import Convex.BuildTx qualified as BuildTx import Convex.Class (MonadBlockchain, MonadUtxoQuery (..), queryProtocolParameters, utxosByPaymentCredential) import Convex.CoinSelection qualified as CoinSelection -import Convex.PlutusLedger.V1 (transCredential, transPolicyId) +import Convex.PlutusLedger.V1 (transCredential, transPolicyId, + unTransCredential, unTransPolicyId) import Convex.Utils (mapError) import Convex.Utxos (BalanceChanges) import Convex.Utxos qualified as Utxos import Convex.Wallet.Operator (returnOutputFor) +import Data.Either (fromRight) import Data.Functor.Identity (Identity (..)) import Data.Map qualified as Map import Data.Maybe (listToMaybe) import Data.Proxy (Proxy (..)) import Data.Text qualified as Text +import SmartTokens.Core.Scripts (ScriptTarget) import SmartTokens.Types.ProtocolParams (ProgrammableLogicGlobalParams (..)) import System.Environment qualified import Wst.AppError (AppError (..)) -import Wst.Offchain.Scripts (blacklistMintingScript, blacklistSpendingScript, +import Wst.Offchain.Scripts (alwaysSucceedsScript, blacklistMintingScript, + blacklistSpendingScript, directoryNodeMintingScript, directoryNodeSpendingScript, freezeTransferScript, permissionedTransferScript, programmableLogicBaseScript, programmableLogicGlobalScript, - protocolParamsMintingScript, scriptPolicyIdV3) + programmableLogicMintingScript, + protocolParamsMintingScript, + protocolParamsSpendingScript, scriptPolicyIdV3) {-| Environments that have an 'OperatorEnv' -} @@ -164,6 +180,16 @@ balanceTxEnv btx = do (balBody, balChanges) <- mapError BalancingError (CoinSelection.balanceTx mempty output (Utxos.fromApiUtxo bteOperatorUtxos) txBuilder CoinSelection.TrailingChange) pure ((balBody, balChanges), r) +{-| Data that completely determines the on-chain scripts of the programmable +token directory, and their hashes. Any information that results in different +script hashes should go in here. We should be able to write a function +'DirectoryScriptRoot -> script' for all of the directory scripts. +-} +data DirectoryScriptRoot = + DirectoryScriptRoot + { srTxIn :: C.TxIn + , srTarget :: ScriptTarget + } class HasDirectoryEnv e where directoryEnv :: e -> DirectoryEnv @@ -176,25 +202,28 @@ All of the scripts and their hashes are determined by the 'TxIn'. -} data DirectoryEnv = DirectoryEnv - { dsTxIn :: C.TxIn -- ^ The 'txIn' that we spend when deploying the protocol params and directory set + { dsScriptRoot :: DirectoryScriptRoot , dsDirectoryMintingScript :: PlutusScript PlutusScriptV3 , dsDirectorySpendingScript :: PlutusScript PlutusScriptV3 , dsProtocolParamsMintingScript :: PlutusScript PlutusScriptV3 + , dsProtocolParamsSpendingScript :: PlutusScript PlutusScriptV3 , dsProgrammableLogicBaseScript :: PlutusScript PlutusScriptV3 , dsProgrammableLogicGlobalScript :: PlutusScript PlutusScriptV3 } -mkDirectoryEnv :: C.TxIn -> DirectoryEnv -mkDirectoryEnv dsTxIn = - let dsDirectoryMintingScript = directoryNodeMintingScript dsTxIn - dsProtocolParamsMintingScript = protocolParamsMintingScript dsTxIn - dsDirectorySpendingScript = directoryNodeSpendingScript (protocolParamsPolicyId result) - dsProgrammableLogicBaseScript = programmableLogicBaseScript (programmableLogicStakeCredential result) -- Parameterized by the stake cred of the global script - dsProgrammableLogicGlobalScript = programmableLogicGlobalScript (protocolParamsPolicyId result) -- Parameterized by the CS holding protocol params datum +mkDirectoryEnv :: DirectoryScriptRoot -> DirectoryEnv +mkDirectoryEnv dsScriptRoot@DirectoryScriptRoot{srTxIn, srTarget} = + let dsDirectoryMintingScript = directoryNodeMintingScript srTarget srTxIn + dsProtocolParamsMintingScript = protocolParamsMintingScript srTarget srTxIn + dsProtocolParamsSpendingScript = protocolParamsSpendingScript srTarget + dsDirectorySpendingScript = directoryNodeSpendingScript srTarget (protocolParamsPolicyId result) + dsProgrammableLogicBaseScript = programmableLogicBaseScript srTarget (programmableLogicStakeCredential result) -- Parameterized by the stake cred of the global script + dsProgrammableLogicGlobalScript = programmableLogicGlobalScript srTarget (protocolParamsPolicyId result) -- Parameterized by the CS holding protocol params datum result = DirectoryEnv - { dsTxIn + { dsScriptRoot , dsDirectoryMintingScript , dsProtocolParamsMintingScript + , dsProtocolParamsSpendingScript , dsProgrammableLogicBaseScript , dsProgrammableLogicGlobalScript , dsDirectorySpendingScript @@ -230,11 +259,23 @@ getGlobalParams = asks (globalParams . directoryEnv) data TransferLogicEnv = TransferLogicEnv - { tleBlacklistMintingScript :: PlutusScript PlutusScriptV3 + { tleBlacklistMintingScript :: PlutusScript PlutusScriptV3 , tleBlacklistSpendingScript :: PlutusScript PlutusScriptV3 - , tleMintingScript :: PlutusScript PlutusScriptV3 - , tleTransferScript :: PlutusScript PlutusScriptV3 - , tleIssuerScript :: PlutusScript PlutusScriptV3 + , tleMintingScript :: PlutusScript PlutusScriptV3 + , tleTransferScript :: PlutusScript PlutusScriptV3 + , tleIssuerScript :: PlutusScript PlutusScriptV3 + } + +{-| 'IssueNewTokenArgs' for the policy that always succeeds (no checks) +-} +alwaysSucceedsTransferLogic :: ScriptTarget -> TransferLogicEnv +alwaysSucceedsTransferLogic target = + TransferLogicEnv + { tleBlacklistMintingScript = alwaysSucceedsScript target + , tleBlacklistSpendingScript = alwaysSucceedsScript target + , tleMintingScript = alwaysSucceedsScript target + , tleTransferScript = alwaysSucceedsScript target + , tleIssuerScript = alwaysSucceedsScript target } class HasTransferLogicEnv e where @@ -243,20 +284,31 @@ class HasTransferLogicEnv e where instance HasTransferLogicEnv TransferLogicEnv where transferLogicEnv = id -{-| The 'TransferLogicEnv' with scripts that allow the given payment credential -to manage the blacklist and issue / burn tokens +{-| Data that completely determines the on-chain scripts of the blacklist +transfer logic, and their hashes. Any information that results in different +script hashes should go in here. We should be able to write a function +'BlacklistTransferLogicScriptRoot -> script' for all of the blacklist transfer +logic scripts. -} -mkTransferLogicEnv :: C.PaymentCredential -> C.Hash C.PaymentKey -> TransferLogicEnv -mkTransferLogicEnv progLogicBaseCred cred = - let blacklistMinting = blacklistMintingScript cred +data BlacklistTransferLogicScriptRoot = + BlacklistTransferLogicScriptRoot + { tlrTarget :: ScriptTarget + , tlrDirEnv :: DirectoryEnv + , tlrIssuer :: C.Hash C.PaymentKey + } + +mkTransferLogicEnv :: BlacklistTransferLogicScriptRoot -> TransferLogicEnv +mkTransferLogicEnv BlacklistTransferLogicScriptRoot{tlrTarget, tlrDirEnv, tlrIssuer} = + let blacklistMinting = blacklistMintingScript tlrTarget tlrIssuer blacklistPolicy = scriptPolicyIdV3 blacklistMinting + progLogicBaseCred = programmableLogicBaseCredential tlrDirEnv in TransferLogicEnv { tleBlacklistMintingScript = blacklistMinting - , tleBlacklistSpendingScript = blacklistSpendingScript cred - , tleMintingScript = permissionedTransferScript cred - , tleTransferScript = freezeTransferScript progLogicBaseCred blacklistPolicy - , tleIssuerScript = permissionedTransferScript cred + , tleBlacklistSpendingScript = blacklistSpendingScript tlrTarget tlrIssuer + , tleMintingScript = permissionedTransferScript tlrTarget tlrIssuer + , tleTransferScript = freezeTransferScript tlrTarget progLogicBaseCred blacklistPolicy + , tleIssuerScript = permissionedTransferScript tlrTarget tlrIssuer } blacklistNodePolicyId :: TransferLogicEnv -> C.PolicyId @@ -333,8 +385,8 @@ instance HasLogger (CombinedEnv o d t Identity era) where {-| Add a 'DirectoryEnv' for the 'C.TxIn' in to the environment -} -addDirectoryEnvFor :: C.TxIn -> CombinedEnv o d t r era -> CombinedEnv o Identity t r era -addDirectoryEnvFor txi = addDirectoryEnv (mkDirectoryEnv txi) +addDirectoryEnvFor :: DirectoryScriptRoot -> CombinedEnv o d t r era -> CombinedEnv o Identity t r era +addDirectoryEnvFor = addDirectoryEnv . mkDirectoryEnv {-| Add a 'DirectoryEnv' for the 'C.TxIn' in to the environment -} @@ -347,8 +399,8 @@ withDirectory dir action = do asks (addDirectoryEnv dir) >>= runReaderT action -withDirectoryFor :: MonadReader (CombinedEnv o d t r era) m => C.TxIn -> ReaderT (CombinedEnv o Identity t r era) m a -> m a -withDirectoryFor txi = withDirectory (mkDirectoryEnv txi) +withDirectoryFor :: MonadReader (CombinedEnv o d t r era) m => DirectoryScriptRoot -> ReaderT (CombinedEnv o Identity t r era) m a -> m a +withDirectoryFor = withDirectory . mkDirectoryEnv {-| Add a 'TransferLogicEnv' for the 'C.Hash C.PaymentKey' corresponding to the admin hash @@ -362,15 +414,41 @@ withTransfer dir action = do asks (addTransferEnv dir) >>= runReaderT action -withTransferFor :: MonadReader (CombinedEnv o Identity t r era) m => C.PaymentCredential -> C.Hash C.PaymentKey -> ReaderT (CombinedEnv o Identity Identity r era) m a -> m a -withTransferFor plbBaseCred opPKH = withTransfer $ mkTransferLogicEnv plbBaseCred opPKH +withTransferFor :: MonadReader (CombinedEnv o Identity t r era) m => BlacklistTransferLogicScriptRoot -> ReaderT (CombinedEnv o Identity Identity r era) m a -> m a +withTransferFor = withTransfer . mkTransferLogicEnv + +{-| Transfer logic scripts for the blacklist managed by the given 'C.PaymentKey' hash +-} +transferLogicForDirectory :: (HasDirectoryEnv env, MonadReader env m) => C.Hash C.PaymentKey -> m TransferLogicEnv +transferLogicForDirectory pkh = do + env <- ask + let dirEnv = directoryEnv env + pure (mkTransferLogicEnv $ BlacklistTransferLogicScriptRoot (srTarget $ dsScriptRoot dirEnv) dirEnv pkh) withTransferFromOperator :: (MonadReader (CombinedEnv Identity Identity t r era) m) => ReaderT (CombinedEnv Identity Identity Identity r era) m a -> m a withTransferFromOperator action = do env <- ask let opPkh = fst . bteOperator . operatorEnv $ env - programmableBaseLogicCred = programmableLogicBaseCredential . directoryEnv $ env - runReaderT action (addTransferEnv (mkTransferLogicEnv programmableBaseLogicCred opPkh) env) + root <- transferLogicForDirectory opPkh + runReaderT action (addTransferEnv root env) + +{-| The minting script for a programmable token that uses the global parameters +-} +programmableTokenMintingScript :: DirectoryEnv -> TransferLogicEnv -> C.PlutusScript C.PlutusScriptV3 +programmableTokenMintingScript dirEnv@DirectoryEnv{dsScriptRoot} TransferLogicEnv{tleMintingScript} = + let ProgrammableLogicGlobalParams {progLogicCred, directoryNodeCS} = globalParams dirEnv + DirectoryScriptRoot{srTarget} = dsScriptRoot + progLogicScriptCredential = fromRight (error "could not parse protocol params") $ unTransCredential progLogicCred + directoryNodeSymbol = fromRight (error "could not parse protocol params") $ unTransPolicyId directoryNodeCS + in programmableLogicMintingScript srTarget progLogicScriptCredential (C.StakeCredentialByScript $ C.hashScript $ C.PlutusScript C.plutusScriptVersion tleMintingScript) directoryNodeSymbol + +{-| 'C.AssetId' of the programmable tokens +-} +programmableTokenAssetId :: DirectoryEnv -> TransferLogicEnv -> C.AssetName -> C.AssetId +programmableTokenAssetId dirEnv inta = + C.AssetId + (C.scriptPolicyId $ C.PlutusScript C.plutusScriptVersion $ programmableTokenMintingScript dirEnv inta) + {-| Add a 'DirectoryEnv' for the 'C.TxIn' in to the environment and run the action with the modified environment diff --git a/src/lib/Wst/Offchain/Query.hs b/src/lib/Wst/Offchain/Query.hs index 788cab9..d293e3e 100644 --- a/src/lib/Wst/Offchain/Query.hs +++ b/src/lib/Wst/Offchain/Query.hs @@ -34,12 +34,11 @@ import PlutusTx qualified import SmartTokens.Types.ProtocolParams (ProgrammableLogicGlobalParams) import SmartTokens.Types.PTokenDirectory (BlacklistNode, DirectorySetNode (..)) import Wst.AppError (AppError (GlobalParamsNodeNotFound)) -import Wst.Offchain.Env (DirectoryEnv (dsDirectorySpendingScript, dsProgrammableLogicBaseScript), - HasDirectoryEnv (directoryEnv), +import Wst.Offchain.Env (DirectoryEnv (..), HasDirectoryEnv (directoryEnv), HasTransferLogicEnv (transferLogicEnv), TransferLogicEnv (tleBlacklistSpendingScript), - blacklistNodePolicyId, directoryNodePolicyId) -import Wst.Offchain.Scripts (protocolParamsSpendingScript) + blacklistNodePolicyId, directoryNodePolicyId, + protocolParamsPolicyId) -- TODO: We should probably filter the UTxOs to check that they have the correct NFTs @@ -83,11 +82,13 @@ userProgrammableOutputs userCred = do {-| Find the UTxO with the global params -} -globalParamsNode :: forall era m. (MonadUtxoQuery m, C.IsBabbageBasedEra era, MonadError (AppError era) m) => m (UTxODat era ProgrammableLogicGlobalParams) +globalParamsNode :: forall era env m. (MonadReader env m, HasDirectoryEnv env, MonadUtxoQuery m, C.IsBabbageBasedEra era, MonadError (AppError era) m) => m (UTxODat era ProgrammableLogicGlobalParams) globalParamsNode = do - let cred = C.PaymentCredentialByScript . C.hashScript . C.PlutusScript C.PlutusScriptV3 $ protocolParamsSpendingScript + env@DirectoryEnv{dsProtocolParamsSpendingScript} <- asks directoryEnv + let cred = C.PaymentCredentialByScript . C.hashScript $ C.PlutusScript C.PlutusScriptV3 dsProtocolParamsSpendingScript + hasNft = utxoHasPolicyId (protocolParamsPolicyId env) utxosByPaymentCredential cred - >>= maybe (throwError GlobalParamsNodeNotFound) pure . listToMaybe . extractUTxO @era + >>= maybe (throwError GlobalParamsNodeNotFound) pure . listToMaybe . filter hasNft . extractUTxO @era {-| Outputs that are locked by the programmable logic base script. -} diff --git a/src/lib/Wst/Offchain/Scripts.hs b/src/lib/Wst/Offchain/Scripts.hs index 995911e..a815cd0 100644 --- a/src/lib/Wst/Offchain/Scripts.hs +++ b/src/lib/Wst/Offchain/Scripts.hs @@ -3,6 +3,7 @@ {-# OPTIONS_GHC -Wno-unused-top-binds #-} module Wst.Offchain.Scripts ( + -- * Core scripts protocolParamsMintingScript, protocolParamsSpendingScript, directoryNodeMintingScript, @@ -11,7 +12,7 @@ module Wst.Offchain.Scripts ( programmableLogicBaseScript, programmableLogicGlobalScript, - -- Transfer logic + -- * Transfer logic permissionedTransferScript, freezeTransferScript, blacklistMintingScript, @@ -30,7 +31,7 @@ import Cardano.Api.Shelley qualified as C import Convex.PlutusLedger.V1 (transCredential, transPolicyId, transPubKeyHash, transStakeCredential) import Convex.PlutusLedger.V3 (transTxOutRef) -import Plutarch (ClosedTerm, Config (..), LogLevel (..), TracingMode (..), (#)) +import Plutarch (ClosedTerm, (#)) import Plutarch.Builtin (pdata, pforgetData) import Plutarch.ByteString (PByteString) import Plutarch.Lift (pconstant) @@ -44,94 +45,86 @@ import SmartTokens.Contracts.ProgrammableLogicBase (mkProgrammableLogicBase, import SmartTokens.Contracts.ProtocolParams (alwaysFailScript, mkPermissionedMinting, mkProtocolParametersMinting) -import SmartTokens.Core.Scripts (tryCompile) +import SmartTokens.Core.Scripts (ScriptTarget (..)) +import SmartTokens.Core.Scripts qualified as Scripts import SmartTokens.LinkedList.MintDirectory (mkDirectoryNodeMP) import SmartTokens.LinkedList.SpendDirectory (pmkDirectorySpending) -tracingConfig :: Config -tracingConfig = Tracing LogInfo DoTracing - -tracingAndBindsConfig :: Config -tracingAndBindsConfig = Tracing LogInfo DoTracingAndBinds - -prodConfig :: Config -prodConfig = NoTracing - -- Protocol params -- | The minting script for the protocol parameters NFT, takes initial TxIn for -- one shot mint -protocolParamsMintingScript :: C.TxIn -> C.PlutusScript C.PlutusScriptV3 -protocolParamsMintingScript txIn = - let script = tryCompile tracingConfig $ mkProtocolParametersMinting # pdata (pconstant $ transTxOutRef txIn) +protocolParamsMintingScript :: ScriptTarget -> C.TxIn -> C.PlutusScript C.PlutusScriptV3 +protocolParamsMintingScript target txIn = + let script = Scripts.tryCompile target $ mkProtocolParametersMinting # pdata (pconstant $ transTxOutRef txIn) in C.PlutusScriptSerialised $ serialiseScript script -- | The spending script for the protocol parameters NFT parameterized by "" -- nonce -protocolParamsSpendingScript :: C.PlutusScript C.PlutusScriptV3 -protocolParamsSpendingScript = - let script = tryCompile tracingConfig $ alwaysFailScript # pforgetData (pdata (pconstant "" :: ClosedTerm PByteString)) +protocolParamsSpendingScript :: ScriptTarget -> C.PlutusScript C.PlutusScriptV3 +protocolParamsSpendingScript target = + let script = Scripts.tryCompile target $ alwaysFailScript # pforgetData (pdata (pconstant "" :: ClosedTerm PByteString)) in C.PlutusScriptSerialised $ serialiseScript script -- | The minting script for the directory node tokens, takes initial TxIn for -- symbol uniqueness across instances -directoryNodeMintingScript :: C.TxIn -> C.PlutusScript C.PlutusScriptV3 -directoryNodeMintingScript txIn = - let script = tryCompile tracingConfig $ mkDirectoryNodeMP # pdata (pconstant $ transTxOutRef txIn) +directoryNodeMintingScript :: ScriptTarget -> C.TxIn -> C.PlutusScript C.PlutusScriptV3 +directoryNodeMintingScript target txIn = + let script = Scripts.tryCompile target $ mkDirectoryNodeMP # pdata (pconstant $ transTxOutRef txIn) in C.PlutusScriptSerialised $ serialiseScript script -- | The spending script for the directory node tokens, parameterized by the -- policy id of the protocol parameters NFT. -directoryNodeSpendingScript :: C.PolicyId -> C.PlutusScript C.PlutusScriptV3 -directoryNodeSpendingScript paramsPolId = - let script = tryCompile tracingConfig $ pmkDirectorySpending # pdata (pconstant $ transPolicyId paramsPolId) +directoryNodeSpendingScript :: ScriptTarget -> C.PolicyId -> C.PlutusScript C.PlutusScriptV3 +directoryNodeSpendingScript target paramsPolId = + let script = Scripts.tryCompile target $ pmkDirectorySpending # pdata (pconstant $ transPolicyId paramsPolId) in C.PlutusScriptSerialised $ serialiseScript script -- TODO: can we change the signature to just take the param policy id? -programmableLogicMintingScript :: C.PaymentCredential -> C.StakeCredential -> C.PolicyId -> C.PlutusScript C.PlutusScriptV3 -programmableLogicMintingScript progLogicBaseSpndingCred mintingCred nodePolId = - let script = tryCompile tracingConfig +programmableLogicMintingScript :: ScriptTarget -> C.PaymentCredential -> C.StakeCredential -> C.PolicyId -> C.PlutusScript C.PlutusScriptV3 +programmableLogicMintingScript target progLogicBaseSpndingCred mintingCred nodePolId = + let script = Scripts.tryCompile target $ mkProgrammableLogicMinting # pdata (pconstant $ transCredential progLogicBaseSpndingCred) # pdata (pconstant $ transPolicyId nodePolId) # pdata (pconstant $ transStakeCredential mintingCred) in C.PlutusScriptSerialised $ serialiseScript script -programmableLogicBaseScript :: C.StakeCredential -> C.PlutusScript C.PlutusScriptV3 -- Parameterized by the stake cred of the global script -programmableLogicBaseScript globalCred = - let script = tryCompile tracingConfig $ mkProgrammableLogicBase # pdata (pconstant $ transStakeCredential globalCred) +programmableLogicBaseScript :: ScriptTarget -> C.StakeCredential -> C.PlutusScript C.PlutusScriptV3 -- Parameterized by the stake cred of the global script +programmableLogicBaseScript target globalCred = + let script = Scripts.tryCompile target $ mkProgrammableLogicBase # pdata (pconstant $ transStakeCredential globalCred) in C.PlutusScriptSerialised $ serialiseScript script -programmableLogicGlobalScript :: C.PolicyId -> C.PlutusScript C.PlutusScriptV3 -- Parameterized by the CS holding protocol params datum -programmableLogicGlobalScript paramsPolId = - let script = tryCompile tracingConfig $ mkProgrammableLogicGlobal # pdata (pconstant $ transPolicyId paramsPolId) +programmableLogicGlobalScript :: ScriptTarget -> C.PolicyId -> C.PlutusScript C.PlutusScriptV3 -- Parameterized by the CS holding protocol params datum +programmableLogicGlobalScript target paramsPolId = + let script = Scripts.tryCompile target $ mkProgrammableLogicGlobal # pdata (pconstant $ transPolicyId paramsPolId) in C.PlutusScriptSerialised $ serialiseScript script -permissionedTransferScript :: C.Hash C.PaymentKey -> C.PlutusScript C.PlutusScriptV3 -permissionedTransferScript cred = - let script = tryCompile tracingConfig $ mkPermissionedTransfer # pdata (pconstant $ transPubKeyHash cred) +permissionedTransferScript :: ScriptTarget -> C.Hash C.PaymentKey -> C.PlutusScript C.PlutusScriptV3 +permissionedTransferScript target cred = + let script = Scripts.tryCompile target $ mkPermissionedTransfer # pdata (pconstant $ transPubKeyHash cred) in C.PlutusScriptSerialised $ serialiseScript script -freezeTransferScript :: C.PaymentCredential -> C.PolicyId -> C.PlutusScript C.PlutusScriptV3 -freezeTransferScript progLogicBaseSpndingCred blacklistPolicyId = - let script = tryCompile tracingConfig $ mkFreezeAndSeizeTransfer # pdata (pconstant $ transCredential progLogicBaseSpndingCred) # pdata (pconstant $ transPolicyId blacklistPolicyId) +freezeTransferScript :: ScriptTarget -> C.PaymentCredential -> C.PolicyId -> C.PlutusScript C.PlutusScriptV3 +freezeTransferScript target progLogicBaseSpndingCred blacklistPolicyId = + let script = Scripts.tryCompile target $ mkFreezeAndSeizeTransfer # pdata (pconstant $ transCredential progLogicBaseSpndingCred) # pdata (pconstant $ transPolicyId blacklistPolicyId) in C.PlutusScriptSerialised $ serialiseScript script -blacklistMintingScript :: C.Hash C.PaymentKey -> C.PlutusScript C.PlutusScriptV3 -blacklistMintingScript cred = - let script = tryCompile tracingConfig $ mkPermissionedMinting # pdata (pconstant $ transPubKeyHash cred) +blacklistMintingScript :: ScriptTarget -> C.Hash C.PaymentKey -> C.PlutusScript C.PlutusScriptV3 +blacklistMintingScript target cred = + let script = Scripts.tryCompile target $ mkPermissionedMinting # pdata (pconstant $ transPubKeyHash cred) in C.PlutusScriptSerialised $ serialiseScript script -blacklistSpendingScript :: C.Hash C.PaymentKey -> C.PlutusScript C.PlutusScriptV3 -blacklistSpendingScript cred = - let script = tryCompile tracingConfig $ mkPermissionedTransfer # pdata (pconstant $ transPubKeyHash cred) +blacklistSpendingScript :: ScriptTarget -> C.Hash C.PaymentKey -> C.PlutusScript C.PlutusScriptV3 +blacklistSpendingScript target cred = + let script = Scripts.tryCompile target $ mkPermissionedTransfer # pdata (pconstant $ transPubKeyHash cred) in C.PlutusScriptSerialised $ serialiseScript script {-| 'C.PlutusScript C.PlutusScriptV3' that always succeeds. Can be used for minting, withdrawal, spending, etc. -} -alwaysSucceedsScript :: C.PlutusScript C.PlutusScriptV3 -alwaysSucceedsScript = - C.PlutusScriptSerialised $ serialiseScript $ tryCompile tracingConfig palwaysSucceed +alwaysSucceedsScript :: ScriptTarget -> C.PlutusScript C.PlutusScriptV3 +alwaysSucceedsScript target = + C.PlutusScriptSerialised $ serialiseScript $ Scripts.tryCompile target palwaysSucceed -- Utilities scriptPolicyIdV3 :: C.PlutusScript C.PlutusScriptV3 -> C.PolicyId diff --git a/src/lib/Wst/Server.hs b/src/lib/Wst/Server.hs index f3cdcc7..35b3c39 100644 --- a/src/lib/Wst/Server.hs +++ b/src/lib/Wst/Server.hs @@ -24,9 +24,6 @@ import Servant.Server (hoistServer, serve) import SmartTokens.Types.PTokenDirectory (blnKey) import Wst.App (WstApp, runWstAppServant) import Wst.AppError (AppError) -import Wst.Offchain.BuildTx.ProgrammableLogic (alwaysSucceedsArgs, - fromTransferEnv, - programmableTokenAssetId) import Wst.Offchain.Endpoints.Deployment qualified as Endpoints import Wst.Offchain.Env qualified as Env import Wst.Offchain.Query (UTxODat (uDatum)) @@ -90,9 +87,8 @@ queryBlacklistedNodes :: forall era env m. -> SerialiseAddress (C.Address C.ShelleyAddr) -> m [C.Hash C.PaymentKey] queryBlacklistedNodes _ (SerialiseAddress addr) = do - programmableBaseLogicCred <- asks (Env.programmableLogicBaseCredential . Env.directoryEnv) - let transferLogic = Env.mkTransferLogicEnv programmableBaseLogicCred (paymentKeyHashFromAddress addr) - getHash = + transferLogic <- Env.transferLogicForDirectory (paymentKeyHashFromAddress addr) + let getHash = either (error "deserialiseFromRawBytes failed") id . C.deserialiseFromRawBytes (C.proxyToAsType $ Proxy @(C.Hash C.PaymentKey)) . P.fromBuiltin @@ -139,11 +135,9 @@ issueProgrammableTokenEndpoint :: forall era env m. issueProgrammableTokenEndpoint IssueProgrammableTokenArgs{itaAssetName, itaQuantity, itaIssuer} = do operatorEnv <- Env.loadOperatorEnvFromAddress itaIssuer dirEnv <- asks Env.directoryEnv - - -- FIXME: Replace alwaysSucceedsArgs with blacklist monetary policy as soon as it is finished - let tokenArgs = alwaysSucceedsArgs - Env.withEnv $ Env.withOperator operatorEnv $ Env.withDirectory dirEnv $ do - TextEnvelopeJSON <$> Endpoints.issueProgrammableTokenTx tokenArgs itaAssetName itaQuantity + logic <- Env.transferLogicForDirectory (paymentKeyHashFromAddress itaIssuer) + Env.withEnv $ Env.withOperator operatorEnv $ Env.withDirectory dirEnv $ Env.withTransfer logic $ do + TextEnvelopeJSON <$> Endpoints.issueProgrammableTokenTx itaAssetName itaQuantity paymentCredentialFromAddress :: C.Address C.ShelleyAddr -> C.PaymentCredential paymentCredentialFromAddress = \case @@ -167,10 +161,9 @@ transferProgrammableTokenEndpoint :: forall era env m. transferProgrammableTokenEndpoint TransferProgrammableTokenArgs{ttaSender, ttaRecipient, ttaAssetName, ttaQuantity, ttaIssuer} = do operatorEnv <- Env.loadOperatorEnvFromAddress ttaSender dirEnv <- asks Env.directoryEnv - programmableBaseLogicCred <- asks (Env.programmableLogicBaseCredential . Env.directoryEnv) - let transferLogic = Env.mkTransferLogicEnv programmableBaseLogicCred (paymentKeyHashFromAddress ttaIssuer) - assetId <- programmableTokenAssetId <$> Env.getGlobalParams <*> pure (fromTransferEnv transferLogic) <*> pure ttaAssetName - Env.withEnv $ Env.withOperator operatorEnv $ Env.withDirectory dirEnv $ Env.withTransfer transferLogic $ do + logic <- Env.transferLogicForDirectory (paymentKeyHashFromAddress ttaIssuer) + assetId <- Env.programmableTokenAssetId dirEnv <$> Env.transferLogicForDirectory (paymentKeyHashFromAddress ttaIssuer) <*> pure ttaAssetName + Env.withEnv $ Env.withOperator operatorEnv $ Env.withDirectory dirEnv $ Env.withTransfer logic $ do TextEnvelopeJSON <$> Endpoints.transferSmartTokensTx assetId ttaQuantity (paymentCredentialFromAddress ttaRecipient) addToBlacklistEndpoint :: forall era env m. @@ -187,8 +180,7 @@ addToBlacklistEndpoint AddToBlacklistArgs{atbIssuer, atbBlacklistAddress} = do let badCred = paymentCredentialFromAddress atbBlacklistAddress operatorEnv <- Env.loadOperatorEnvFromAddress atbIssuer dirEnv <- asks Env.directoryEnv - programmableBaseLogicCred <- asks (Env.programmableLogicBaseCredential . Env.directoryEnv) - let transferLogic = Env.mkTransferLogicEnv programmableBaseLogicCred (paymentKeyHashFromAddress atbIssuer) + transferLogic <- Env.transferLogicForDirectory (paymentKeyHashFromAddress atbIssuer) Env.withEnv $ Env.withOperator operatorEnv $ Env.withDirectory dirEnv $ Env.withTransfer transferLogic $ do TextEnvelopeJSON <$> Endpoints.blacklistCredentialTx badCred @@ -206,7 +198,6 @@ seizeAssetsEndpoint SeizeAssetsArgs{saIssuer, saTarget} = do let badCred = paymentCredentialFromAddress saTarget operatorEnv <- Env.loadOperatorEnvFromAddress saIssuer dirEnv <- asks Env.directoryEnv - programmableBaseLogicCred <- asks (Env.programmableLogicBaseCredential . Env.directoryEnv) - let transferLogic = Env.mkTransferLogicEnv programmableBaseLogicCred (paymentKeyHashFromAddress saIssuer) + transferLogic <- Env.transferLogicForDirectory (paymentKeyHashFromAddress saIssuer) Env.withEnv $ Env.withOperator operatorEnv $ Env.withDirectory dirEnv $ Env.withTransfer transferLogic $ do TextEnvelopeJSON <$> Endpoints.seizeCredentialAssetsTx badCred diff --git a/src/lib/Wst/Server/Endpoints.hs b/src/lib/Wst/Server/Endpoints.hs deleted file mode 100644 index 8949dfd..0000000 --- a/src/lib/Wst/Server/Endpoints.hs +++ /dev/null @@ -1,31 +0,0 @@ - -{- | This module contains the endpoints of the server. --} -module Wst.Server.Endpoints ( - healthcheck, - -- * Query endpoints - queryGlobalParams, - - -- * Build tx endpoints - issueProgrammableTokens -) where - -import Cardano.Api qualified as C -import Control.Monad.Except (MonadError) -import Convex.Class (MonadUtxoQuery) -import Servant (Handler) -import Servant.API (NoContent (..)) -import SmartTokens.Types.ProtocolParams (ProgrammableLogicGlobalParams) -import Wst.AppError (AppError) -import Wst.Offchain.Query (UTxODat) -import Wst.Offchain.Query qualified as Query -import Wst.Server.Types (IssueProgrammableTokenArgs, TextEnvelopeJSON) - -healthcheck :: Handler NoContent -healthcheck = pure NoContent - -queryGlobalParams :: forall era m. (MonadUtxoQuery m, C.IsBabbageBasedEra era, MonadError (AppError era) m) => m (UTxODat era ProgrammableLogicGlobalParams) -queryGlobalParams = Query.globalParamsNode - -issueProgrammableTokens :: forall era m. IssueProgrammableTokenArgs -> m (TextEnvelopeJSON (C.Tx era)) -issueProgrammableTokens = undefined diff --git a/src/test/unit/Wst/Test/UnitTest.hs b/src/test/unit/Wst/Test/UnitTest.hs index 73a5f2c..708adb3 100644 --- a/src/test/unit/Wst/Test/UnitTest.hs +++ b/src/test/unit/Wst/Test/UnitTest.hs @@ -6,124 +6,112 @@ module Wst.Test.UnitTest( import Cardano.Api qualified as C import Cardano.Api.Shelley qualified as C import Cardano.Ledger.Api qualified as Ledger -import Cardano.Ledger.Plutus.ExUnits qualified as Ledger +import Cardano.Ledger.Plutus.ExUnits (ExUnits (..)) import Cardano.Ledger.Shelley.TxCert qualified as TxCert -import Control.Exception (try) -import Control.Lens (set, (%~), (&), (^.)) +import Control.Lens ((%~), (&), (^.)) import Control.Monad (void) -import Control.Monad.Reader (asks) -import Control.Monad.Reader.Class (MonadReader) +import Control.Monad.Reader (MonadReader (ask), ReaderT (runReaderT), asks) import Convex.BuildTx (MonadBuildTx, addCertificate) import Convex.BuildTx qualified as BuildTx import Convex.Class (MonadBlockchain (queryProtocolParameters, sendTx), MonadMockchain, MonadUtxoQuery) import Convex.CoinSelection (ChangeOutputPosition (TrailingChange)) -import Convex.MockChain +import Convex.MockChain (MockchainT) import Convex.MockChain.CoinSelection (tryBalanceAndSubmit) import Convex.MockChain.Defaults qualified as Defaults -import Convex.MockChain.Utils (mockchainFails, mockchainSucceeds) +import Convex.MockChain.Utils (mockchainFails, mockchainSucceedsWith) import Convex.NodeParams (NodeParams, ledgerProtocolParameters, protocolParameters) import Convex.Utils (failOnError) import Convex.Wallet.MockWallet qualified as Wallet import Convex.Wallet.Operator (signTxOperator) +import Convex.Wallet.Operator qualified as Operator import Data.List (isPrefixOf) -import Data.Word (Word32) +import Data.String (IsString (..)) import GHC.Exception (SomeException, throw) +import SmartTokens.Core.Scripts (ScriptTarget (Debug, Production)) import Test.Tasty (TestTree, testGroup) import Test.Tasty.HUnit (Assertion, testCase) import Wst.Offchain.BuildTx.DirectorySet (InsertNodeArgs (..)) -import Wst.Offchain.BuildTx.ProgrammableLogic (alwaysSucceedsArgs) import Wst.Offchain.Endpoints.Deployment qualified as Endpoints +import Wst.Offchain.Env (DirectoryScriptRoot) import Wst.Offchain.Env qualified as Env import Wst.Offchain.Query qualified as Query import Wst.Offchain.Scripts qualified as Scripts import Wst.Test.Env (admin, asAdmin, asWallet, user) -testTxSize :: Word32 -testTxSize = 16384 - -testNodeParams :: NodeParams C.ConwayEra -testNodeParams = - -- restrict script bugdet to current value on mainnet - let newExUnits = Ledger.ExUnits {Ledger.exUnitsSteps = 10_000_000_000, Ledger.exUnitsMem = 14_000_000} - npsTx = Defaults.nodeParams & set (ledgerProtocolParameters . protocolParameters . Ledger.ppMaxTxSizeL) testTxSize - in npsTx & set (ledgerProtocolParameters . protocolParameters . Ledger.ppMaxTxExUnitsL) newExUnits - --- | Run the 'Mockchain' action with modified node parameters to allow larger-than-usual --- transactions. This is useful for showing debug output from the scripts and fail if there is an error -mockchainSucceedsWithLargeTx :: MockchainIO C.ConwayEra a -> Assertion -mockchainSucceedsWithLargeTx action = - let params' = testNodeParams & ledgerProtocolParameters . protocolParameters . Ledger.ppMaxTxSizeL %~ (*10) - in try @SomeException (runMockchain0IOWith Wallet.initialUTxOs params' action) >>= \case - Right{} -> pure () - Left err -> fail (show err) - tests :: TestTree tests = testGroup "unit tests" - [ testCase "deploy directory and global params" (mockchainSucceedsWithLargeTx deployDirectorySet) - , testCase "insert directory node" (mockchainSucceeds insertDirectoryNode) - , testGroup "issue programmable tokens" - [ testCase "always succeeds validator" (mockchainSucceeds issueAlwaysSucceedsValidator) - , testCase "smart token issuance" (mockchainSucceeds issueSmartTokensScenario) - , testCase "smart token transfer" (mockchainSucceeds transferSmartTokens) - , testCase "blacklist credential" (mockchainSucceeds (void blacklistCredential)) - , testCase "blacklisted transfer" (mockchainFails blacklistTransfer assertBlacklistedAddressException) - , testCase "seize user output" (mockchainSucceeds seizeUserOutput) - ] + [ scriptTargetTests Debug + , scriptTargetTests Production ] -deployDirectorySet :: (MonadUtxoQuery m, MonadBlockchain C.ConwayEra m, MonadFail m) => m C.TxIn -deployDirectorySet = failOnError $ Env.withEnv $ asAdmin @C.ConwayEra $ do - (tx, txI) <- Endpoints.deployTx - void $ sendTx $ signTxOperator admin tx - Env.withDirectoryFor txI $ do - Query.registryNodes @C.ConwayEra - >>= void . expectSingleton "registry output" - void $ Query.globalParamsNode @C.ConwayEra - pure txI - -insertDirectoryNode :: (MonadUtxoQuery m, MonadBlockchain C.ConwayEra m, MonadFail m) => m () -insertDirectoryNode = failOnError $ Env.withEnv $ do - txI <- deployDirectorySet - asAdmin @C.ConwayEra $ Env.withDirectoryFor txI $ do +scriptTargetTests :: ScriptTarget -> TestTree +scriptTargetTests target = + testGroup (fromString $ show target) + [ testCase "deploy directory and global params" (mockchainSucceedsWithTarget target deployDirectorySet) + , testCase "insert directory node" (mockchainSucceedsWithTarget target $ deployDirectorySet >>= insertDirectoryNode) + , testGroup "issue programmable tokens" + [ testCase "always succeeds validator" (mockchainSucceedsWithTarget target $ deployDirectorySet >>= issueAlwaysSucceedsValidator) + , testCase "smart token issuance" (mockchainSucceedsWithTarget target issueSmartTokensScenario) + , testCase "smart token transfer" (mockchainSucceedsWithTarget target $ deployDirectorySet >>= transferSmartTokens) + , testCase "blacklist credential" (mockchainSucceedsWithTarget target $ void $ deployDirectorySet >>= blacklistCredential) + , testCase "blacklisted transfer" (mockchainFails blacklistTransfer assertBlacklistedAddressException) + , testCase "seize user output" (mockchainSucceedsWithTarget target $ deployDirectorySet >>= seizeUserOutput) + ] + ] + +deployDirectorySet :: (MonadReader ScriptTarget m, MonadUtxoQuery m, MonadBlockchain C.ConwayEra m, MonadFail m) => m DirectoryScriptRoot +deployDirectorySet = do + target <- ask + failOnError $ Env.withEnv $ asAdmin @C.ConwayEra $ do + (tx, scriptRoot) <- Endpoints.deployTx target + void $ sendTx $ signTxOperator admin tx + Env.withDirectoryFor scriptRoot $ do + Query.registryNodes @C.ConwayEra + >>= void . expectSingleton "registry output" + void $ Query.globalParamsNode @C.ConwayEra + pure scriptRoot + +insertDirectoryNode :: (MonadUtxoQuery m, MonadBlockchain C.ConwayEra m, MonadFail m) => DirectoryScriptRoot -> m () +insertDirectoryNode scriptRoot = failOnError $ Env.withEnv $ do + asAdmin @C.ConwayEra $ Env.withDirectoryFor scriptRoot $ do Endpoints.insertNodeTx dummyNodeArgs >>= void . sendTx . signTxOperator admin Query.registryNodes @C.ConwayEra >>= void . expectN 2 "registry outputs" {-| Issue some tokens with the "always succeeds" validator -} -issueAlwaysSucceedsValidator :: (MonadUtxoQuery m, MonadFail m, MonadMockchain C.ConwayEra m) => m () -issueAlwaysSucceedsValidator = failOnError $ Env.withEnv $ do +issueAlwaysSucceedsValidator :: (MonadUtxoQuery m, MonadFail m, MonadMockchain C.ConwayEra m) => DirectoryScriptRoot -> m () +issueAlwaysSucceedsValidator scriptRoot = failOnError $ Env.withEnv $ do -- Register the stake validator -- Oddly, the tests passes even if we don't do this. -- But I'll leave it in because it seems right. registerAlwaysSucceedsStakingCert - txI <- deployDirectorySet - asAdmin @C.ConwayEra $ Env.withDirectoryFor txI $ do - Endpoints.issueProgrammableTokenTx alwaysSucceedsArgs "dummy asset" 100 + asAdmin @C.ConwayEra $ Env.withDirectoryFor scriptRoot $ Env.withTransfer (Env.alwaysSucceedsTransferLogic Production) $ do + Endpoints.issueProgrammableTokenTx "dummy asset" 100 >>= void . sendTx . signTxOperator admin Query.registryNodes @C.ConwayEra >>= void . expectN 2 "registry outputs" Query.programmableLogicOutputs @C.ConwayEra >>= void . expectN 1 "programmable logic outputs" -issueSmartTokensScenario :: (MonadUtxoQuery m, MonadFail m, MonadMockchain C.ConwayEra m) => m C.AssetId +issueSmartTokensScenario :: (MonadReader ScriptTarget m, MonadUtxoQuery m, MonadFail m, MonadMockchain C.ConwayEra m) => m C.AssetId issueSmartTokensScenario = deployDirectorySet >>= issueTransferLogicProgrammableToken {-| Issue some tokens with the smart stabelcoin transfer logic validator -} -issueTransferLogicProgrammableToken :: (MonadUtxoQuery m, MonadFail m, MonadMockchain C.ConwayEra m) => C.TxIn -> m C.AssetId -issueTransferLogicProgrammableToken txI = failOnError $ Env.withEnv $ do +issueTransferLogicProgrammableToken :: (MonadUtxoQuery m, MonadFail m, MonadMockchain C.ConwayEra m) => DirectoryScriptRoot -> m C.AssetId +issueTransferLogicProgrammableToken scriptRoot = failOnError $ Env.withEnv $ do - asAdmin @C.ConwayEra $ Env.withDirectoryFor txI $ Env.withTransferFromOperator $ do + asAdmin @C.ConwayEra $ Env.withDirectoryFor scriptRoot $ Env.withTransferFromOperator $ do opPkh <- asks (fst . Env.bteOperator . Env.operatorEnv) -- register programmable global stake script void $ registerTransferScripts opPkh - asAdmin @C.ConwayEra $ Env.withDirectoryFor txI $ Env.withTransferFromOperator $ do + asAdmin @C.ConwayEra $ Env.withDirectoryFor scriptRoot $ Env.withTransferFromOperator $ do opPkh <- asks (fst . Env.bteOperator . Env.operatorEnv) (balTx, aid) <- Endpoints.issueSmartTokensTx "dummy asset" 100 (C.PaymentCredentialByKey opPkh) @@ -137,20 +125,19 @@ issueTransferLogicProgrammableToken txI = failOnError $ Env.withEnv $ do {-| Issue some tokens with the smart stabelcoin transfer logic validator -} -transferSmartTokens :: (MonadUtxoQuery m, MonadFail m, MonadMockchain C.ConwayEra m) => m () -transferSmartTokens = failOnError $ Env.withEnv $ do +transferSmartTokens :: (MonadUtxoQuery m, MonadFail m, MonadMockchain C.ConwayEra m) => DirectoryScriptRoot -> m () +transferSmartTokens scriptRoot = failOnError $ Env.withEnv $ do userPkh <- asWallet Wallet.w2 $ asks (fst . Env.bteOperator . Env.operatorEnv) - txI <- deployDirectorySet - asAdmin @C.ConwayEra $ Env.withDirectoryFor txI $ Env.withTransferFromOperator $ do + asAdmin @C.ConwayEra $ Env.withDirectoryFor scriptRoot $ Env.withTransferFromOperator $ do Endpoints.deployBlacklistTx >>= void . sendTx . signTxOperator admin Query.blacklistNodes @C.ConwayEra >>= void . expectSingleton "blacklist output" - aid <- issueTransferLogicProgrammableToken txI + aid <- issueTransferLogicProgrammableToken scriptRoot - asAdmin @C.ConwayEra $ Env.withDirectoryFor txI $ Env.withTransferFromOperator $ do + asAdmin @C.ConwayEra $ Env.withDirectoryFor scriptRoot $ Env.withTransferFromOperator $ do opPkh <- asks (fst . Env.bteOperator . Env.operatorEnv) Endpoints.transferSmartTokensTx aid 80 (C.PaymentCredentialByKey userPkh) @@ -163,20 +150,18 @@ transferSmartTokens = failOnError $ Env.withEnv $ do Query.userProgrammableOutputs (C.PaymentCredentialByKey opPkh) >>= void . expectN 1 "user programmable outputs" -blacklistCredential :: (MonadUtxoQuery m, MonadFail m, MonadMockchain C.ConwayEra m) => m C.PaymentCredential -blacklistCredential = failOnError $ Env.withEnv $ do +blacklistCredential :: (MonadUtxoQuery m, MonadFail m, MonadMockchain C.ConwayEra m) => DirectoryScriptRoot -> m C.PaymentCredential +blacklistCredential scriptRoot = failOnError $ Env.withEnv $ do userPkh <- asWallet Wallet.w2 $ asks (fst . Env.bteOperator . Env.operatorEnv) let paymentCred = C.PaymentCredentialByKey userPkh - txIn <- deployDirectorySet - - asAdmin @C.ConwayEra $ Env.withDirectoryFor txIn $ Env.withTransferFromOperator $ do + asAdmin @C.ConwayEra $ Env.withDirectoryFor scriptRoot $ Env.withTransferFromOperator $ do Endpoints.deployBlacklistTx >>= void . sendTx . signTxOperator admin Query.blacklistNodes @C.ConwayEra >>= void . expectSingleton "blacklist output" - asAdmin @C.ConwayEra $ Env.withDirectoryFor txIn $ Env.withTransferFromOperator $ do + asAdmin @C.ConwayEra $ Env.withDirectoryFor scriptRoot $ Env.withTransferFromOperator $ do Endpoints.blacklistCredentialTx paymentCred >>= void . sendTx . signTxOperator admin @@ -187,47 +172,44 @@ blacklistCredential = failOnError $ Env.withEnv $ do blacklistTransfer :: (MonadUtxoQuery m, MonadFail m, MonadMockchain C.ConwayEra m) => m () blacklistTransfer = failOnError $ Env.withEnv $ do + scriptRoot <- runReaderT deployDirectorySet Production userPkh <- asWallet Wallet.w2 $ asks (fst . Env.bteOperator . Env.operatorEnv) let userPaymentCred = C.PaymentCredentialByKey userPkh - txIn <- deployDirectorySet - aid <- issueTransferLogicProgrammableToken txIn + aid <- issueTransferLogicProgrammableToken scriptRoot - asAdmin @C.ConwayEra $ Env.withDirectoryFor txIn $ Env.withTransferFromOperator $ do + asAdmin @C.ConwayEra $ Env.withDirectoryFor scriptRoot $ Env.withTransferFromOperator $ do Endpoints.deployBlacklistTx >>= void . sendTx . signTxOperator admin - opPkh <- asAdmin @C.ConwayEra $ Env.withDirectoryFor txIn $ Env.withTransferFromOperator $ do + opPkh <- asAdmin @C.ConwayEra $ Env.withDirectoryFor scriptRoot $ Env.withTransferFromOperator $ do opPkh <- asks (fst . Env.bteOperator . Env.operatorEnv) Endpoints.transferSmartTokensTx aid 50 (C.PaymentCredentialByKey userPkh) >>= void . sendTx . signTxOperator admin pure opPkh - progLogicCred <- asAdmin @C.ConwayEra $ Env.withDirectoryFor txIn $ Env.withTransferFromOperator $ do - cred <- asks Env.directoryEnv - pure $ Env.programmableLogicBaseCredential cred + transferLogic <- Env.withDirectoryFor scriptRoot $ Env.transferLogicForDirectory (C.verificationKeyHash . Operator.verificationKey . Operator.oPaymentKey $ admin) - asAdmin @C.ConwayEra $ Env.withDirectoryFor txIn $ Env.withTransferFromOperator $ do + asAdmin @C.ConwayEra $ Env.withDirectoryFor scriptRoot $ Env.withTransferFromOperator $ do Endpoints.blacklistCredentialTx userPaymentCred >>= void . sendTx . signTxOperator admin - asWallet Wallet.w2 $ Env.withDirectoryFor txIn $ Env.withTransferFor progLogicCred opPkh $ do + asWallet Wallet.w2 $ Env.withDirectoryFor scriptRoot $ Env.withTransfer transferLogic $ do Endpoints.transferSmartTokensTx aid 30 (C.PaymentCredentialByKey opPkh) >>= void . sendTx . signTxOperator (user Wallet.w2) -seizeUserOutput :: (MonadUtxoQuery m, MonadFail m, MonadMockchain C.ConwayEra m) => m () -seizeUserOutput = failOnError $ Env.withEnv $ do +seizeUserOutput :: (MonadUtxoQuery m, MonadFail m, MonadMockchain C.ConwayEra m) => DirectoryScriptRoot -> m () +seizeUserOutput scriptRoot = failOnError $ Env.withEnv $ do userPkh <- asWallet Wallet.w2 $ asks (fst . Env.bteOperator . Env.operatorEnv) let userPaymentCred = C.PaymentCredentialByKey userPkh - txIn <- deployDirectorySet - aid <- issueTransferLogicProgrammableToken txIn + aid <- issueTransferLogicProgrammableToken scriptRoot - asAdmin @C.ConwayEra $ Env.withDirectoryFor txIn $ Env.withTransferFromOperator $ do + asAdmin @C.ConwayEra $ Env.withDirectoryFor scriptRoot $ Env.withTransferFromOperator $ do Endpoints.deployBlacklistTx >>= void . sendTx . signTxOperator admin - asAdmin @C.ConwayEra $ Env.withDirectoryFor txIn $ Env.withTransferFromOperator $ do + asAdmin @C.ConwayEra $ Env.withDirectoryFor scriptRoot $ Env.withTransferFromOperator $ do Endpoints.transferSmartTokensTx aid 50 (C.PaymentCredentialByKey userPkh) >>= void . sendTx . signTxOperator admin Query.programmableLogicOutputs @C.ConwayEra @@ -235,7 +217,7 @@ seizeUserOutput = failOnError $ Env.withEnv $ do Query.userProgrammableOutputs (C.PaymentCredentialByKey userPkh) >>= void . expectN 1 "user programmable outputs" - asAdmin @C.ConwayEra $ Env.withDirectoryFor txIn $ Env.withTransferFromOperator $ do + asAdmin @C.ConwayEra $ Env.withDirectoryFor scriptRoot $ Env.withTransferFromOperator $ do opPkh <- asks (fst . Env.bteOperator . Env.operatorEnv) Endpoints.seizeCredentialAssetsTx userPaymentCred >>= void . sendTx . signTxOperator admin @@ -260,11 +242,11 @@ dummyNodeArgs = registerAlwaysSucceedsStakingCert :: (MonadUtxoQuery m, MonadFail m, MonadMockchain C.ConwayEra m) => m () registerAlwaysSucceedsStakingCert = failOnError $ do pp <- fmap C.unLedgerProtocolParameters queryProtocolParameters - let script = C.PlutusScript C.plutusScriptVersion Scripts.alwaysSucceedsScript + let script = C.PlutusScript C.plutusScriptVersion $ Scripts.alwaysSucceedsScript Production hsh = C.hashScript script cred = C.StakeCredentialByScript hsh txBody <- BuildTx.execBuildTxT $ do - BuildTx.addStakeScriptWitness cred Scripts.alwaysSucceedsScript () + BuildTx.addStakeScriptWitness cred (Scripts.alwaysSucceedsScript Production) () BuildTx.addConwayStakeCredentialRegistrationCertificate cred (pp ^. Ledger.ppKeyDepositL) void (tryBalanceAndSubmit mempty Wallet.w1 txBody TrailingChange []) @@ -325,3 +307,20 @@ assertBlacklistedAddressException :: SomeException -> Assertion assertBlacklistedAddressException ex | "user error (TransferBlacklistedCredential (PubKeyCredential" `isPrefixOf` show ex = pure () | otherwise = throw ex + +nodeParamsFor :: ScriptTarget -> NodeParams C.ConwayEra +nodeParamsFor = \case + -- Run the 'Mockchain' action with modified node parameters to allow larger-than-usual + -- transactions. This is useful for showing debug output from the scripts and fail if there is an error + Debug -> + let tenX ExUnits{exUnitsSteps=steps, exUnitsMem=mem} = + ExUnits{exUnitsSteps = 10 * steps, exUnitsMem = 10 * mem} + in Defaults.nodeParams + & ledgerProtocolParameters . protocolParameters . Ledger.ppMaxTxSizeL %~ (*10) + & ledgerProtocolParameters . protocolParameters . Ledger.ppMaxTxExUnitsL %~ tenX + Production -> Defaults.nodeParams + +mockchainSucceedsWithTarget :: ScriptTarget -> ReaderT ScriptTarget (MockchainT C.ConwayEra IO) a -> Assertion +mockchainSucceedsWithTarget target = + mockchainSucceedsWith (nodeParamsFor target) . flip runReaderT target + diff --git a/src/wst-poc.cabal b/src/wst-poc.cabal index f6a840b..e3eba06 100644 --- a/src/wst-poc.cabal +++ b/src/wst-poc.cabal @@ -84,7 +84,6 @@ library Wst.Offchain.Query Wst.Offchain.Scripts Wst.Server - Wst.Server.Endpoints Wst.Server.Types hs-source-dirs: lib From a334b299cc99f0ddc7d03c31ff7993c2ea83ebb1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jann=20M=C3=BCller?= Date: Tue, 7 Jan 2025 09:57:02 +0000 Subject: [PATCH 02/10] OpenAPI schema (#39) * Add OpenAPI schema * Nicer CLI, add generated API --- generated/openapi/schema.json | 447 ++++++++++++++++++++ src/exe/write-openapi-schema/Main.hs | 16 + src/lib/SmartTokens/Types/ProtocolParams.hs | 32 +- src/lib/Wst/JSON/Utils.hs | 11 + src/lib/Wst/Offchain/Query.hs | 22 +- src/lib/Wst/Orphans.hs | 107 +++++ src/lib/Wst/Server/Types.hs | 80 +++- src/test/lib/Wst/Test/Gen.hs | 18 +- src/test/unit/Wst/Test/UnitTest.hs | 1 - src/wst-poc.cabal | 14 + 10 files changed, 740 insertions(+), 8 deletions(-) create mode 100644 generated/openapi/schema.json create mode 100644 src/exe/write-openapi-schema/Main.hs create mode 100644 src/lib/Wst/JSON/Utils.hs create mode 100644 src/lib/Wst/Orphans.hs diff --git a/generated/openapi/schema.json b/generated/openapi/schema.json new file mode 100644 index 0000000..697c6db --- /dev/null +++ b/generated/openapi/schema.json @@ -0,0 +1,447 @@ +{ + "components": { + "schemas": { + "AddToBlacklistArgs": { + "properties": { + "blacklist_address": { + "$ref": "#/components/schemas/Address" + }, + "issuer": { + "$ref": "#/components/schemas/Address" + } + }, + "required": [ + "issuer", + "blacklist_address" + ], + "type": "object" + }, + "Address": { + "description": "bech32-encoded cardano address", + "example": "addr_test1qpju2uhn72ur6j5alln6nz7dqcgcjal7xjaw7lwdjdaex4qhr3xpz63fjwvlpsnu8efnhfdja78d3vkv8ks6ac09g3usemu2yl", + "type": "string" + }, + "Asset name": { + "type": "string" + }, + "Hash PaymentKey": { + "description": "Hash of a payment key", + "example": "f6ac5676b58d8ce280c1f09af4a2e82dd58c1aa2fb075aa005afa1da", + "type": "string" + }, + "IssueProgrammableTokenArgs": { + "properties": { + "asset_name": { + "$ref": "#/components/schemas/Asset name" + }, + "issuer": { + "$ref": "#/components/schemas/Address" + }, + "quantity": { + "$ref": "#/components/schemas/Quantity" + } + }, + "required": [ + "issuer", + "asset_name", + "quantity" + ], + "type": "object" + }, + "ProgrammableLogicGlobalParams": { + "description": "Global parameters of the programmable token directory", + "properties": { + "directory_node_currency_symbol": { + "description": "base16-encoded script payment credential of the programmable logic script", + "example": "0xc0000000000000000000000000000000000000000000000000000000", + "type": "string" + }, + "programmable_logic_credential": { + "description": "plutus-data-encoded payment credential of the programmable logic", + "example": [ + 0, + [ + "0x0a0eb28fbaec9e61d20e9fe4c6ac5e5ee4520bb274b1e3292721d26f" + ] + ], + "type": "array" + } + }, + "type": "object" + }, + "Quantity": { + "type": "integer" + }, + "SeizeAssetsArgs": { + "properties": { + "issuer": { + "$ref": "#/components/schemas/Address" + }, + "target": { + "$ref": "#/components/schemas/Address" + } + }, + "required": [ + "issuer", + "target" + ], + "type": "object" + }, + "TextEnvelopeJSON": { + "description": "Text envelope", + "properties": { + "cborHex": { + "description": "The CBOR-serialised value, base-16 encoded", + "type": "string" + }, + "description": { + "description": "Description of the serialised value", + "type": "string" + }, + "type": { + "description": "Type of the serialised value", + "type": "string" + } + }, + "type": "object" + }, + "TransferProgrammableTokenArgs": { + "properties": { + "asset_name": { + "$ref": "#/components/schemas/Asset name" + }, + "issuer": { + "$ref": "#/components/schemas/Address" + }, + "quantity": { + "$ref": "#/components/schemas/Quantity" + }, + "recipient": { + "$ref": "#/components/schemas/Address" + }, + "sender": { + "$ref": "#/components/schemas/Address" + } + }, + "required": [ + "sender", + "recipient", + "issuer", + "asset_name", + "quantity" + ], + "type": "object" + }, + "TxIn": { + "description": "TxIn consisting of (Transaction hash + # + index)", + "example": "01f4b788593d4f70de2a45c2e1e87088bfbdfa29577ae1b62aba60e095e3ab53#2", + "type": "string" + }, + "TxOut": { + "description": "Global parameters of the programmable token directory", + "properties": { + "address": { + "description": "bech32-encoded cardano address", + "example": "addr_test1qpju2uhn72ur6j5alln6nz7dqcgcjal7xjaw7lwdjdaex4qhr3xpz63fjwvlpsnu8efnhfdja78d3vkv8ks6ac09g3usemu2yl", + "type": "string" + }, + "datum": { + "description": "the datum of the output (if any)", + "type": "object" + }, + "inlineDatum": { + "description": "the inline datum of the output (if any)", + "type": "object" + }, + "inlineDatumRaw": { + "description": "the inline datum of the output (if any), CBOR serialised and base-16 encoded", + "type": "object" + }, + "inlineDatumhash": { + "description": "hash of the inline datum of the output (if it exists)", + "type": "string" + }, + "referenceScript": { + "description": "reference script (if any), text envelope format", + "type": "object" + }, + "value": { + "description": "Value locked in the output. Always includes a 'lovelace' key, may include other keys if non-Ada assets are present.", + "properties": { + "lovelace": { + "type": "integer" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "UTxODat_ConwayEra_ProgrammableLogicGlobalParams": { + "properties": { + "atum": { + "$ref": "#/components/schemas/ProgrammableLogicGlobalParams" + }, + "n": { + "$ref": "#/components/schemas/TxIn" + }, + "ut": { + "$ref": "#/components/schemas/TxOut" + } + }, + "required": [ + "n", + "ut", + "atum" + ], + "type": "object" + }, + "Value": { + "description": "Value locked in the output. Always includes a 'lovelace' key, may include other keys if non-Ada assets are present.", + "properties": { + "lovelace": { + "type": "integer" + } + }, + "type": "object" + } + } + }, + "info": { + "title": "", + "version": "" + }, + "openapi": "3.0.0", + "paths": { + "/healthcheck": { + "get": { + "description": "Is the server alive?", + "responses": { + "200": { + "content": { + "application/json;charset=utf-8": {} + }, + "description": "" + } + } + } + }, + "/query/all-funds": { + "get": { + "description": "Total value of all programmable tokens", + "responses": { + "200": { + "content": { + "application/json;charset=utf-8": { + "schema": { + "$ref": "#/components/schemas/Value" + } + } + }, + "description": "" + } + } + } + }, + "/query/blacklist/{address}": { + "get": { + "description": "The list of addresses that have been blacklisted", + "parameters": [ + { + "in": "path", + "name": "address", + "required": true, + "schema": { + "description": "bech32-serialised cardano address", + "example": "addr1q9d42egme33z960rr8vlnt69lpmythdpm7ydk2e6k5nj5ghay9rg60vw49kejfah76sqeh4yshlsntgg007y0wgjlfwju6eksr", + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json;charset=utf-8": { + "schema": { + "items": { + "$ref": "#/components/schemas/Hash PaymentKey" + }, + "type": "array" + } + } + }, + "description": "" + }, + "404": { + "description": "`address` not found" + } + } + } + }, + "/query/global-params": { + "get": { + "description": "The UTxO with the global parameters", + "responses": { + "200": { + "content": { + "application/json;charset=utf-8": { + "schema": { + "$ref": "#/components/schemas/UTxODat_ConwayEra_ProgrammableLogicGlobalParams" + } + } + }, + "description": "" + } + } + } + }, + "/query/user-funds/{address}": { + "get": { + "description": "Total value locked in programmable token outputs addressed to the user", + "parameters": [ + { + "in": "path", + "name": "address", + "required": true, + "schema": { + "description": "bech32-serialised cardano address", + "example": "addr1q9d42egme33z960rr8vlnt69lpmythdpm7ydk2e6k5nj5ghay9rg60vw49kejfah76sqeh4yshlsntgg007y0wgjlfwju6eksr", + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json;charset=utf-8": { + "schema": { + "$ref": "#/components/schemas/Value" + } + } + }, + "description": "" + }, + "404": { + "description": "`address` not found" + } + } + } + }, + "/tx/programmable-token/blacklist": { + "post": { + "description": "Add a credential to the blacklist", + "requestBody": { + "content": { + "application/json;charset=utf-8": { + "schema": { + "$ref": "#/components/schemas/AddToBlacklistArgs" + } + } + } + }, + "responses": { + "200": { + "content": { + "application/json;charset=utf-8": { + "schema": { + "$ref": "#/components/schemas/TextEnvelopeJSON" + } + } + }, + "description": "" + }, + "400": { + "description": "Invalid `body`" + } + } + } + }, + "/tx/programmable-token/issue": { + "post": { + "description": "Create some programmable tokens", + "requestBody": { + "content": { + "application/json;charset=utf-8": { + "schema": { + "$ref": "#/components/schemas/IssueProgrammableTokenArgs" + } + } + } + }, + "responses": { + "200": { + "content": { + "application/json;charset=utf-8": { + "schema": { + "$ref": "#/components/schemas/TextEnvelopeJSON" + } + } + }, + "description": "" + }, + "400": { + "description": "Invalid `body`" + } + } + } + }, + "/tx/programmable-token/seize": { + "post": { + "description": "Seize a user's funds", + "requestBody": { + "content": { + "application/json;charset=utf-8": { + "schema": { + "$ref": "#/components/schemas/SeizeAssetsArgs" + } + } + } + }, + "responses": { + "200": { + "content": { + "application/json;charset=utf-8": { + "schema": { + "$ref": "#/components/schemas/TextEnvelopeJSON" + } + } + }, + "description": "" + }, + "400": { + "description": "Invalid `body`" + } + } + } + }, + "/tx/programmable-token/transfer": { + "post": { + "description": "Transfer programmable tokens from one address to another", + "requestBody": { + "content": { + "application/json;charset=utf-8": { + "schema": { + "$ref": "#/components/schemas/TransferProgrammableTokenArgs" + } + } + } + }, + "responses": { + "200": { + "content": { + "application/json;charset=utf-8": { + "schema": { + "$ref": "#/components/schemas/TextEnvelopeJSON" + } + } + }, + "description": "" + }, + "400": { + "description": "Invalid `body`" + } + } + } + } + } +} \ No newline at end of file diff --git a/src/exe/write-openapi-schema/Main.hs b/src/exe/write-openapi-schema/Main.hs new file mode 100644 index 0000000..45036ab --- /dev/null +++ b/src/exe/write-openapi-schema/Main.hs @@ -0,0 +1,16 @@ +module Main where + +import Data.Aeson.Encode.Pretty (encodePretty) +import Data.ByteString.Lazy qualified as BSL +import Data.Proxy (Proxy (..)) +import Servant.OpenApi (toOpenApi) +import System.Environment qualified +import Wst.Server.Types (APIInEra) + +main :: IO () +main = System.Environment.getArgs >>= \case + [fp] -> do + putStrLn $ "Writing OpenAPI schema to " <> fp + BSL.writeFile fp $ encodePretty $ toOpenApi $ Proxy @APIInEra + _ -> putStrLn "usage: write-openapi-schema OUT_FILE_PATH" + diff --git a/src/lib/SmartTokens/Types/ProtocolParams.hs b/src/lib/SmartTokens/Types/ProtocolParams.hs index bdc8dbb..3e8c01f 100644 --- a/src/lib/SmartTokens/Types/ProtocolParams.hs +++ b/src/lib/SmartTokens/Types/ProtocolParams.hs @@ -1,8 +1,8 @@ {-# LANGUAGE NamedFieldPuns #-} +{-# LANGUAGE OverloadedLists #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE UndecidableInstances #-} {-# OPTIONS_GHC -Wno-deferred-type-errors #-} -{-# LANGUAGE InstanceSigs #-} module SmartTokens.Types.ProtocolParams ( ProgrammableLogicGlobalParams (..), @@ -10,9 +10,16 @@ module SmartTokens.Types.ProtocolParams ( ) where import Cardano.Api.Shelley qualified as C +import Control.Lens ((&), (.~), (?~)) import Data.Aeson (FromJSON (..), ToJSON (..), object, withObject, (.:), (.=)) import Data.Aeson qualified as Aeson import Data.Bifunctor (Bifunctor (..)) +import Data.OpenApi.Internal (OpenApiType (OpenApiArray, OpenApiObject, OpenApiString), + Referenced (Inline)) +import Data.OpenApi.Lens qualified as L +import Data.OpenApi.ParamSchema (ToParamSchema (..)) +import Data.OpenApi.Schema (ToSchema (..), defaultSchemaOptions, + paramSchemaToNamedSchema) import Generics.SOP qualified as SOP import Plutarch.Core.PlutusDataList (DerivePConstantViaDataList (..), PlutusTypeDataList, ProductIsData (..)) @@ -80,3 +87,26 @@ instance FromJSON ProgrammableLogicGlobalParams where ProgrammableLogicGlobalParams <$> (obj .: "directory_node_currency_symbol" >>= either fail pure . plutusDataFromJSON) <*> (obj .: "programmable_logic_credential" >>= either fail pure . plutusDataFromJSON) + +instance ToParamSchema ProgrammableLogicGlobalParams where + toParamSchema _proxy = + mempty + & L.type_ ?~ OpenApiObject + & L.description ?~ "Global parameters of the programmable token directory" + & L.properties .~ + [ ( "directory_node_currency_symbol" + , Inline $ mempty + & L.type_ ?~ OpenApiString + & L.description ?~ "base16-encoded script payment credential of the programmable logic script" + & L.example ?~ "0xc0000000000000000000000000000000000000000000000000000000" + ) + , ( "programmable_logic_credential" + , Inline $ mempty + & L.type_ ?~ OpenApiArray + & L.description ?~ "plutus-data-encoded payment credential of the programmable logic" + & L.example ?~ toJSON @[Aeson.Value] [toJSON @Int 0, toJSON @[String] ["0x0a0eb28fbaec9e61d20e9fe4c6ac5e5ee4520bb274b1e3292721d26f"]] + ) + ] + +instance ToSchema ProgrammableLogicGlobalParams where + declareNamedSchema = pure . paramSchemaToNamedSchema defaultSchemaOptions diff --git a/src/lib/Wst/JSON/Utils.hs b/src/lib/Wst/JSON/Utils.hs new file mode 100644 index 0000000..c13b397 --- /dev/null +++ b/src/lib/Wst/JSON/Utils.hs @@ -0,0 +1,11 @@ +{-| JSON utility functions +-} +module Wst.JSON.Utils( + customJsonOptions +) where + +import Data.Aeson qualified as JSON + +-- | JSON options that drop @n@ characters and then apply @JSON.camel2@ to the rest +customJsonOptions :: Int -> JSON.Options +customJsonOptions i = JSON.defaultOptions{JSON.fieldLabelModifier= JSON.camelTo2 '_' . drop i } diff --git a/src/lib/Wst/Offchain/Query.hs b/src/lib/Wst/Offchain/Query.hs index d293e3e..4347e60 100644 --- a/src/lib/Wst/Offchain/Query.hs +++ b/src/lib/Wst/Offchain/Query.hs @@ -26,19 +26,26 @@ import Convex.PlutusLedger.V1 (transCredential, unTransStakeCredential) import Convex.Scripts (fromHashableScriptData) import Convex.Utxos (UtxoSet, toApiUtxo) import Data.Aeson (FromJSON, ToJSON) +import Data.Aeson qualified as JSON import Data.Map qualified as Map import Data.Maybe (listToMaybe, mapMaybe) +import Data.OpenApi.Schema (ToSchema (..)) +import Data.OpenApi.Schema qualified as Schema +import Data.OpenApi.SchemaOptions qualified as SchemaOptions +import Data.Typeable (Typeable) import GHC.Exts (IsList (..)) import GHC.Generics (Generic) import PlutusTx qualified import SmartTokens.Types.ProtocolParams (ProgrammableLogicGlobalParams) import SmartTokens.Types.PTokenDirectory (BlacklistNode, DirectorySetNode (..)) import Wst.AppError (AppError (GlobalParamsNodeNotFound)) +import Wst.JSON.Utils qualified as JSON import Wst.Offchain.Env (DirectoryEnv (..), HasDirectoryEnv (directoryEnv), HasTransferLogicEnv (transferLogicEnv), TransferLogicEnv (tleBlacklistSpendingScript), blacklistNodePolicyId, directoryNodePolicyId, protocolParamsPolicyId) +import Wst.Orphans () -- TODO: We should probably filter the UTxOs to check that they have the correct NFTs @@ -51,7 +58,20 @@ data UTxODat era a = , uDatum :: a } deriving stock (Eq, Show, Generic) - deriving anyclass (ToJSON, FromJSON) + +-- | Aeson options for the UTxODat type. Used to derive JSON instances and ToSchema +utxoDatOptions :: JSON.Options +utxoDatOptions = JSON.customJsonOptions 2 + +instance (C.IsCardanoEra era, ToJSON a) => ToJSON (UTxODat era a) where + toJSON = JSON.genericToJSON utxoDatOptions + toEncoding = JSON.genericToEncoding utxoDatOptions + +instance (C.IsCardanoEra era, FromJSON a, C.IsShelleyBasedEra era) => FromJSON (UTxODat era a) where + parseJSON = JSON.genericParseJSON utxoDatOptions + +instance (Typeable a, ToSchema a, Typeable era) => ToSchema (UTxODat era a) where + declareNamedSchema = Schema.genericDeclareNamedSchema (SchemaOptions.fromAesonOptions utxoDatOptions) {-| Find all UTxOs that make up the registry -} diff --git a/src/lib/Wst/Orphans.hs b/src/lib/Wst/Orphans.hs new file mode 100644 index 0000000..73ffbab --- /dev/null +++ b/src/lib/Wst/Orphans.hs @@ -0,0 +1,107 @@ +{-# LANGUAGE FlexibleInstances #-} +{-# LANGUAGE OverloadedLists #-} +{-# OPTIONS_GHC -Wno-orphans #-} +{-# LANGUAGE OverloadedStrings #-} +{-| Orphan instances +-} +module Wst.Orphans() where + +import Cardano.Api qualified as C +import Control.Lens ((&), (.~), (?~)) +import Data.OpenApi.Internal (NamedSchema (..), + OpenApiType (OpenApiInteger, OpenApiObject, OpenApiString), + Referenced (Inline), Schema) +import Data.OpenApi.Lens qualified as L +import Data.OpenApi.Schema (ToSchema (..)) +import Data.Typeable (Typeable) + +instance (Typeable ctx, Typeable era) => ToSchema (C.TxOut ctx era) where + declareNamedSchema _ = pure + $ NamedSchema (Just "TxOut") + $ mempty + & L.type_ ?~ OpenApiObject + & L.description ?~ "Global parameters of the programmable token directory" + & L.properties .~ + [ ( "address" + , Inline addrSchema + ) + , ( "datum" + , Inline $ mempty + & L.type_ ?~ OpenApiObject + & L.description ?~ "the datum of the output (if any)" + ) + , ( "inlineDatum" + , Inline $ mempty + & L.type_ ?~ OpenApiObject + & L.description ?~ "the inline datum of the output (if any)" + ) + , ( "inlineDatumRaw" + , Inline $ mempty + & L.type_ ?~ OpenApiObject + & L.description ?~ "the inline datum of the output (if any), CBOR serialised and base-16 encoded" + ) + , ( "inlineDatumhash" + , Inline $ mempty + & L.type_ ?~ OpenApiString + & L.description ?~ "hash of the inline datum of the output (if it exists)" + ) + , ( "referenceScript" + , Inline $ mempty + & L.type_ ?~ OpenApiObject + & L.description ?~ "reference script (if any), text envelope format" + ) + , ( "value" + , Inline valueSchema + ) + ] + +instance ToSchema C.TxIn where + declareNamedSchema _ = pure + $ NamedSchema (Just "TxIn") + $ mempty + & L.type_ ?~ OpenApiString + & L.description ?~ "TxIn consisting of (Transaction hash + # + index)" + & L.example ?~ "01f4b788593d4f70de2a45c2e1e87088bfbdfa29577ae1b62aba60e095e3ab53#2" + +instance ToSchema (C.Hash C.PaymentKey) where + declareNamedSchema _ = pure + $ NamedSchema (Just "Hash PaymentKey") + $ mempty + & L.type_ ?~ OpenApiString + & L.description ?~ "Hash of a payment key" + & L.example ?~ "f6ac5676b58d8ce280c1f09af4a2e82dd58c1aa2fb075aa005afa1da" + +valueSchema :: Schema +valueSchema = mempty + & L.type_ ?~ OpenApiObject + & L.description ?~ "Value locked in the output. Always includes a 'lovelace' key, may include other keys if non-Ada assets are present." + & L.properties .~ + [ ("lovelace", Inline $ mempty & L.type_ ?~ OpenApiInteger) + ] + +instance ToSchema C.Value where + declareNamedSchema _ = pure + $ NamedSchema (Just "Value") valueSchema + +addrSchema :: Schema +addrSchema = mempty + & L.type_ ?~ OpenApiString + & L.description ?~ "bech32-encoded cardano address" + & L.example ?~ "addr_test1qpju2uhn72ur6j5alln6nz7dqcgcjal7xjaw7lwdjdaex4qhr3xpz63fjwvlpsnu8efnhfdja78d3vkv8ks6ac09g3usemu2yl" + +instance ToSchema (C.Address C.ShelleyAddr) where + declareNamedSchema _ = pure + $ NamedSchema (Just "Address") addrSchema + +instance ToSchema C.AssetName where + declareNamedSchema _ = pure + $ NamedSchema (Just "Asset name") + $ mempty + & L.type_ ?~ OpenApiString + +instance ToSchema C.Quantity where + declareNamedSchema _ = pure + $ NamedSchema (Just "Quantity") + $ mempty + & L.type_ ?~ OpenApiInteger + diff --git a/src/lib/Wst/Server/Types.hs b/src/lib/Wst/Server/Types.hs index c8f5f5c..c209bfc 100644 --- a/src/lib/Wst/Server/Types.hs +++ b/src/lib/Wst/Server/Types.hs @@ -1,6 +1,7 @@ {-# LANGUAGE DataKinds #-} {-# LANGUAGE DeriveAnyClass #-} {-# LANGUAGE DerivingStrategies #-} +{-# LANGUAGE OverloadedLists #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE TypeOperators #-} @@ -26,13 +27,23 @@ module Wst.Server.Types ( import Cardano.Api (AssetName, Quantity) import Cardano.Api qualified as C +import Control.Lens ((&), (.~), (?~)) import Data.Aeson (FromJSON (..), ToJSON (..)) +import Data.Aeson qualified as JSON +import Data.OpenApi (NamedSchema (..), OpenApiType (OpenApiObject), + Referenced (Inline), ToSchema (..)) +import Data.OpenApi.Internal (OpenApiType (OpenApiString)) +import Data.OpenApi.Lens qualified as L +import Data.OpenApi.ParamSchema (ToParamSchema (..)) +import Data.OpenApi.Schema qualified as Schema +import Data.OpenApi.SchemaOptions qualified as SchemaOptions import Data.Proxy (Proxy (..)) import GHC.Generics (Generic) import Servant (FromHttpApiData (..), ToHttpApiData (toUrlPiece)) import Servant.API (Capture, Description, Get, JSON, NoContent, Post, ReqBody, type (:>), (:<|>) (..)) import SmartTokens.Types.ProtocolParams (ProgrammableLogicGlobalParams) +import Wst.JSON.Utils qualified as JSON import Wst.Offchain.Query (UTxODat (..)) type APIInEra = API C.ConwayEra @@ -45,8 +56,27 @@ instance C.HasTextEnvelope a => ToJSON (TextEnvelopeJSON a) where instance C.HasTextEnvelope a => FromJSON (TextEnvelopeJSON a) where parseJSON val = parseJSON val >>= either (fail . show) (pure . TextEnvelopeJSON) . C.deserialiseFromTextEnvelope (C.proxyToAsType Proxy) +instance C.HasTextEnvelope a => ToSchema (TextEnvelopeJSON a) where + declareNamedSchema _ = pure + $ NamedSchema (Just "TextEnvelopeJSON") + $ mempty + & L.type_ ?~ OpenApiObject + & L.description ?~ "Text envelope" + & L.properties .~ + [ ("cborHex", Inline $ mempty & L.type_ ?~ OpenApiString & L.description ?~ "The CBOR-serialised value, base-16 encoded") + , ("description", Inline $ mempty & L.type_ ?~ OpenApiString & L.description ?~ "Description of the serialised value") + , ("type", Inline $ mempty & L.type_ ?~ OpenApiString & L.description ?~ "Type of the serialised value") + ] + newtype SerialiseAddress a = SerialiseAddress{unSerialiseAddress :: a } +instance ToParamSchema (SerialiseAddress a) where + toParamSchema _proxy = + mempty + & L.type_ ?~ OpenApiString + & L.description ?~ "bech32-serialised cardano address" + & L.example ?~ "addr1q9d42egme33z960rr8vlnt69lpmythdpm7ydk2e6k5nj5ghay9rg60vw49kejfah76sqeh4yshlsntgg007y0wgjlfwju6eksr" + instance C.SerialiseAddress a => FromHttpApiData (SerialiseAddress a) where parseUrlPiece = maybe (Left "Failed to deserialise address") (Right . SerialiseAddress) . C.deserialiseAddress (C.proxyToAsType Proxy) @@ -74,7 +104,22 @@ data IssueProgrammableTokenArgs = , itaQuantity :: Quantity } deriving stock (Eq, Show, Generic) - deriving anyclass (ToJSON, FromJSON) + +jsonOptions3 :: JSON.Options +jsonOptions3 = JSON.customJsonOptions 3 + +jsonOptions2 :: JSON.Options +jsonOptions2 = JSON.customJsonOptions 2 + +instance ToJSON IssueProgrammableTokenArgs where + toJSON = JSON.genericToJSON jsonOptions3 + toEncoding = JSON.genericToEncoding jsonOptions3 + +instance FromJSON IssueProgrammableTokenArgs where + parseJSON = JSON.genericParseJSON jsonOptions3 + +instance ToSchema IssueProgrammableTokenArgs where + declareNamedSchema = Schema.genericDeclareNamedSchema (SchemaOptions.fromAesonOptions jsonOptions3) data TransferProgrammableTokenArgs = TransferProgrammableTokenArgs @@ -85,7 +130,16 @@ data TransferProgrammableTokenArgs = , ttaQuantity :: Quantity } deriving stock (Eq, Show, Generic) - deriving anyclass (ToJSON, FromJSON) + +instance ToJSON TransferProgrammableTokenArgs where + toJSON = JSON.genericToJSON jsonOptions3 + toEncoding = JSON.genericToEncoding jsonOptions3 + +instance FromJSON TransferProgrammableTokenArgs where + parseJSON = JSON.genericParseJSON jsonOptions3 + +instance ToSchema TransferProgrammableTokenArgs where + declareNamedSchema = Schema.genericDeclareNamedSchema (SchemaOptions.fromAesonOptions jsonOptions3) data AddToBlacklistArgs = AddToBlacklistArgs @@ -93,7 +147,16 @@ data AddToBlacklistArgs = , atbBlacklistAddress :: C.Address C.ShelleyAddr } deriving stock (Eq, Show, Generic) - deriving anyclass (ToJSON, FromJSON) + +instance ToJSON AddToBlacklistArgs where + toJSON = JSON.genericToJSON jsonOptions3 + toEncoding = JSON.genericToEncoding jsonOptions3 + +instance FromJSON AddToBlacklistArgs where + parseJSON = JSON.genericParseJSON jsonOptions3 + +instance ToSchema AddToBlacklistArgs where + declareNamedSchema = Schema.genericDeclareNamedSchema (SchemaOptions.fromAesonOptions jsonOptions3) data SeizeAssetsArgs = SeizeAssetsArgs @@ -101,7 +164,16 @@ data SeizeAssetsArgs = , saTarget :: C.Address C.ShelleyAddr } deriving stock (Eq, Show, Generic) - deriving anyclass (ToJSON, FromJSON) + +instance ToJSON SeizeAssetsArgs where + toJSON = JSON.genericToJSON jsonOptions2 + toEncoding = JSON.genericToEncoding jsonOptions2 + +instance FromJSON SeizeAssetsArgs where + parseJSON = JSON.genericParseJSON jsonOptions2 + +instance ToSchema SeizeAssetsArgs where + declareNamedSchema = Schema.genericDeclareNamedSchema (SchemaOptions.fromAesonOptions jsonOptions2) type BuildTxAPI era = "programmable-token" :> diff --git a/src/test/lib/Wst/Test/Gen.hs b/src/test/lib/Wst/Test/Gen.hs index 1ddd542..0658b11 100644 --- a/src/test/lib/Wst/Test/Gen.hs +++ b/src/test/lib/Wst/Test/Gen.hs @@ -3,6 +3,10 @@ module Wst.Test.Gen( genGlobalParams, genUTxODat, + genUTxO, + genTxIn, + genAddress, + genPaymentKeyHash, -- * Plutus types -- TODO: move to sc-tools? @@ -36,5 +40,17 @@ genUTxODat :: C.IsShelleyBasedEra era => Gen a -> Gen (UTxODat era a) genUTxODat a = UTxODat <$> hedgehog Gen.genTxIn - <*> hedgehog (Gen.genTxOutUTxOContext C.shelleyBasedEra) + <*> genUTxO <*> a + +genUTxO :: C.IsShelleyBasedEra era => Gen (C.TxOut C.CtxUTxO era) +genUTxO = hedgehog (Gen.genTxOutUTxOContext C.shelleyBasedEra) + +genTxIn :: Gen C.TxIn +genTxIn = hedgehog Gen.genTxIn + +genAddress :: Gen (C.Address C.ShelleyAddr) +genAddress = hedgehog Gen.genAddressShelley + +genPaymentKeyHash :: Gen (C.Hash C.PaymentKey) +genPaymentKeyHash = hedgehog (Gen.genVerificationKeyHash C.AsPaymentKey) diff --git a/src/test/unit/Wst/Test/UnitTest.hs b/src/test/unit/Wst/Test/UnitTest.hs index 708adb3..c072ffc 100644 --- a/src/test/unit/Wst/Test/UnitTest.hs +++ b/src/test/unit/Wst/Test/UnitTest.hs @@ -323,4 +323,3 @@ nodeParamsFor = \case mockchainSucceedsWithTarget :: ScriptTarget -> ReaderT ScriptTarget (MockchainT C.ConwayEra IO) a -> Assertion mockchainSucceedsWithTarget target = mockchainSucceedsWith (nodeParamsFor target) . flip runReaderT target - diff --git a/src/wst-poc.cabal b/src/wst-poc.cabal index e3eba06..dfcab62 100644 --- a/src/wst-poc.cabal +++ b/src/wst-poc.cabal @@ -74,6 +74,7 @@ library Wst.Cli Wst.Cli.Command Wst.Client + Wst.JSON.Utils Wst.Offchain.BuildTx.DirectorySet Wst.Offchain.BuildTx.LinkedList Wst.Offchain.BuildTx.ProgrammableLogic @@ -83,6 +84,7 @@ library Wst.Offchain.Env Wst.Offchain.Query Wst.Offchain.Scripts + Wst.Orphans Wst.Server Wst.Server.Types @@ -104,6 +106,7 @@ library , generics-sop , lens , mtl + , openapi3 , optparse-applicative , plutarch , plutarch-ledger-api @@ -197,3 +200,14 @@ executable wst-poc-mock-server build-depends: , base , wst-poc:test-lib + +executable write-openapi-schema + import: lang + main-is: Main.hs + hs-source-dirs: exe/write-openapi-schema + build-depends: + , aeson-pretty + , base + , bytestring + , servant-openapi3 + , wst-poc From 1b526b737963647b2c664f1c541a6f43c02509c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jann=20M=C3=BCller?= Date: Tue, 7 Jan 2025 10:34:48 +0000 Subject: [PATCH 03/10] API: Compute programmable token address (#43) --- generated/openapi/schema.json | 32 +++++++++++++++++++ src/lib/Wst/Offchain/BuildTx/TransferLogic.hs | 8 +---- src/lib/Wst/Offchain/Env.hs | 16 ++++++++-- src/lib/Wst/Server.hs | 19 +++++++++++ src/lib/Wst/Server/Types.hs | 7 +++- src/test/lib/Wst/Test/MockServer.hs | 1 + 6 files changed, 73 insertions(+), 10 deletions(-) diff --git a/generated/openapi/schema.json b/generated/openapi/schema.json index 697c6db..077eb34 100644 --- a/generated/openapi/schema.json +++ b/generated/openapi/schema.json @@ -226,6 +226,38 @@ } } }, + "/query/address/{address}": { + "get": { + "description": "The user's receiving address for programmable tokens", + "parameters": [ + { + "in": "path", + "name": "address", + "required": true, + "schema": { + "description": "bech32-serialised cardano address", + "example": "addr1q9d42egme33z960rr8vlnt69lpmythdpm7ydk2e6k5nj5ghay9rg60vw49kejfah76sqeh4yshlsntgg007y0wgjlfwju6eksr", + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json;charset=utf-8": { + "schema": { + "$ref": "#/components/schemas/Address" + } + } + }, + "description": "" + }, + "404": { + "description": "`address` not found" + } + } + } + }, "/query/all-funds": { "get": { "description": "Total value of all programmable tokens", diff --git a/src/lib/Wst/Offchain/BuildTx/TransferLogic.hs b/src/lib/Wst/Offchain/BuildTx/TransferLogic.hs index 6455c53..2b23018 100644 --- a/src/lib/Wst/Offchain/BuildTx/TransferLogic.hs +++ b/src/lib/Wst/Offchain/BuildTx/TransferLogic.hs @@ -134,14 +134,8 @@ addressed to the payment credential -} paySmartTokensToDestination :: forall era env m. (MonadBuildTx era m, MonadReader env m, Env.HasDirectoryEnv env, MonadBlockchain era m, C.IsBabbageBasedEra era) => (C.AssetName, C.Quantity) -> C.PolicyId -> C.PaymentCredential -> m () paySmartTokensToDestination (an, q) issuedPolicyId destinationCred = Utils.inBabbage @era $ do - nid <- queryNetworkId - -- TODO: check if there is a better way to achieve: C.PaymentCredential -> C.StakeCredential - stakeCred <- either (error . ("Could not unTrans credential: " <>) . show) pure $ unTransStakeCredential $ transCredential destinationCred - directoryEnv <- asks Env.directoryEnv - let progLogicBaseCred = Env.programmableLogicBaseCredential directoryEnv let value = fromList [(C.AssetId issuedPolicyId an, q)] - addr = C.makeShelleyAddressInEra C.shelleyBasedEra nid progLogicBaseCred (C.StakeAddressByValue stakeCred) - + addr <- Env.programmableTokenReceivingAddress destinationCred payToAddress addr value issueSmartTokens :: forall era env m. (MonadReader env m, Env.HasTransferLogicEnv env, Env.HasDirectoryEnv env, C.IsBabbageBasedEra era, MonadBlockchain era m, C.HasScriptLanguageInEra C.PlutusScriptV3 era, MonadBuildTx era m, Env.HasOperatorEnv era env) => UTxODat era ProgrammableLogicGlobalParams -> (C.AssetName, C.Quantity) -> [UTxODat era DirectorySetNode] -> C.PaymentCredential -> m C.AssetId diff --git a/src/lib/Wst/Offchain/Env.hs b/src/lib/Wst/Offchain/Env.hs index f653e77..9517f2e 100644 --- a/src/lib/Wst/Offchain/Env.hs +++ b/src/lib/Wst/Offchain/Env.hs @@ -48,6 +48,7 @@ module Wst.Offchain.Env( -- ** Minting tokens programmableTokenMintingScript, programmableTokenAssetId, + programmableTokenReceivingAddress, -- * Runtime data RuntimeEnv(..), @@ -83,11 +84,12 @@ import Control.Monad.Except (MonadError, throwError) import Control.Monad.Reader (MonadReader, ReaderT, ask, asks, runReaderT) import Convex.BuildTx (BuildTxT) import Convex.BuildTx qualified as BuildTx -import Convex.Class (MonadBlockchain, MonadUtxoQuery (..), +import Convex.Class (MonadBlockchain (queryNetworkId), MonadUtxoQuery (..), queryProtocolParameters, utxosByPaymentCredential) import Convex.CoinSelection qualified as CoinSelection import Convex.PlutusLedger.V1 (transCredential, transPolicyId, - unTransCredential, unTransPolicyId) + unTransCredential, unTransPolicyId, + unTransStakeCredential) import Convex.Utils (mapError) import Convex.Utxos (BalanceChanges) import Convex.Utxos qualified as Utxos @@ -254,6 +256,16 @@ globalParams scripts = getGlobalParams :: (MonadReader e m, HasDirectoryEnv e) => m ProgrammableLogicGlobalParams getGlobalParams = asks (globalParams . directoryEnv) +{-| Compute the receiving address for a payment credential and network ID +-} +programmableTokenReceivingAddress :: forall era env m. (MonadReader env m, HasDirectoryEnv env, C.IsShelleyBasedEra era, MonadBlockchain era m) => C.PaymentCredential -> m (C.AddressInEra era) +programmableTokenReceivingAddress destinationCred = do + nid <- queryNetworkId + -- TODO: check if there is a better way to achieve: C.PaymentCredential -> C.StakeCredential + stakeCred <- either (error . ("Could not unTrans credential: " <>) . show) pure $ unTransStakeCredential $ transCredential destinationCred + progLogicBaseCred <- asks (programmableLogicBaseCredential . directoryEnv) + return $ C.makeShelleyAddressInEra C.shelleyBasedEra nid progLogicBaseCred (C.StakeAddressByValue stakeCred) + {-| Scripts related to managing the specific transfer logic -} diff --git a/src/lib/Wst/Server.hs b/src/lib/Wst/Server.hs index 35b3c39..10ca11d 100644 --- a/src/lib/Wst/Server.hs +++ b/src/lib/Wst/Server.hs @@ -69,6 +69,7 @@ queryApi = :<|> queryBlacklistedNodes (Proxy @C.ConwayEra) :<|> queryUserFunds @C.ConwayEra @env (Proxy @C.ConwayEra) :<|> queryAllFunds @C.ConwayEra @env (Proxy @C.ConwayEra) + :<|> computeUserAddress (Proxy @C.ConwayEra) txApi :: forall env. (Env.HasDirectoryEnv env) => ServerT (BuildTxAPI C.ConwayEra) (WstApp env C.ConwayEra) txApi = @@ -77,6 +78,24 @@ txApi = :<|> addToBlacklistEndpoint :<|> seizeAssetsEndpoint +computeUserAddress :: forall era env m. + ( MonadReader env m + , Env.HasDirectoryEnv env + , C.IsShelleyBasedEra era + , MonadBlockchain era m + ) + => Proxy era + -> SerialiseAddress (C.Address C.ShelleyAddr) + -> m (C.Address C.ShelleyAddr) +computeUserAddress _ (SerialiseAddress addr) = do + let C.ShelleyAddress _ paymentCredential _stakeCredential = addr + Env.programmableTokenReceivingAddress @era (C.fromShelleyPaymentCredential paymentCredential) >>= \case + C.AddressInEra (C.ShelleyAddressInEra _) addr_ -> pure addr_ + + -- This is impossible as we construct the address with makeShelleyAddressInEra + -- But the compiler doesn't realise that. + C.AddressInEra C.ByronAddressInAnyEra _ -> error "Unexpected byron address" + queryBlacklistedNodes :: forall era env m. ( MonadUtxoQuery m , C.IsBabbageBasedEra era diff --git a/src/lib/Wst/Server/Types.hs b/src/lib/Wst/Server/Types.hs index c209bfc..fbb58ca 100644 --- a/src/lib/Wst/Server/Types.hs +++ b/src/lib/Wst/Server/Types.hs @@ -1,6 +1,6 @@ {-# LANGUAGE DataKinds #-} -{-# LANGUAGE DeriveAnyClass #-} {-# LANGUAGE DerivingStrategies #-} +{-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE OverloadedLists #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE TypeOperators #-} @@ -70,6 +70,10 @@ instance C.HasTextEnvelope a => ToSchema (TextEnvelopeJSON a) where newtype SerialiseAddress a = SerialiseAddress{unSerialiseAddress :: a } +deriving newtype instance ToJSON (SerialiseAddress (C.Address C.ShelleyAddr)) +deriving newtype instance FromJSON (SerialiseAddress (C.Address C.ShelleyAddr)) +deriving newtype instance ToSchema (SerialiseAddress (C.Address C.ShelleyAddr)) + instance ToParamSchema (SerialiseAddress a) where toParamSchema _proxy = mempty @@ -94,6 +98,7 @@ type QueryAPI era = :<|> "blacklist" :> Description "The list of addresses that have been blacklisted" :> Capture "address" (SerialiseAddress (C.Address C.ShelleyAddr)) :> Get '[JSON] [C.Hash C.PaymentKey] :<|> "user-funds" :> Description "Total value locked in programmable token outputs addressed to the user" :> Capture "address" (SerialiseAddress (C.Address C.ShelleyAddr)) :> Get '[JSON] C.Value :<|> "all-funds" :> Description "Total value of all programmable tokens" :> Get '[JSON] C.Value + :<|> "address" :> Description "The user's receiving address for programmable tokens" :> Capture "address" (SerialiseAddress (C.Address C.ShelleyAddr)) :> Get '[JSON] (C.Address C.ShelleyAddr) {-| Arguments for the programmable-token endpoint. The asset name can be something like "USDW" for the regulated stablecoin. -} diff --git a/src/test/lib/Wst/Test/MockServer.hs b/src/test/lib/Wst/Test/MockServer.hs index 5e2f8ac..9685540 100644 --- a/src/test/lib/Wst/Test/MockServer.hs +++ b/src/test/lib/Wst/Test/MockServer.hs @@ -31,6 +31,7 @@ mockQueryApi = :<|> (\_ -> liftIO $ QC.generate $ Gen.listOf (hedgehog $ Gen.genVerificationKeyHash (C.proxyToAsType Proxy))) :<|> (\_ -> liftIO $ fmap (C.fromLedgerValue C.ShelleyBasedEraConway) $ QC.generate $ hedgehog $ Gen.genValue C.MaryEraOnwardsConway Gen.genAssetId Gen.genPositiveQuantity) :<|> liftIO (fmap (C.fromLedgerValue C.ShelleyBasedEraConway) $ QC.generate $ hedgehog $ Gen.genValue C.MaryEraOnwardsConway Gen.genAssetId Gen.genPositiveQuantity) + :<|> (\_ -> liftIO $ QC.generate Gen.genAddress) genTx :: MonadIO m => m (TextEnvelopeJSON (C.Tx C.ConwayEra)) genTx = liftIO $ fmap TextEnvelopeJSON $ QC.generate $ hedgehog $ Gen.genTx C.shelleyBasedEra From a7b81ce9e47756c83208d4446d833cf735805e02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jann=20M=C3=BCller?= Date: Tue, 7 Jan 2025 11:44:21 +0000 Subject: [PATCH 04/10] API: Serve static files (#45) * API: Serve static files * Add api/v1 prefix to endpoints * Small patch to correct the parser for static files (#48) * Fix build, add test for schema --------- Co-authored-by: Christian Hoener zu Siederdissen --- .github/workflows/ci-compiled-scripts.yaml | 1 + generated/openapi/schema.json | 20 ++++++++++---------- src/lib/Wst/Cli.hs | 5 +++-- src/lib/Wst/Cli/Command.hs | 3 ++- src/lib/Wst/Server.hs | 16 +++++++++++++--- src/lib/Wst/Server/Types.hs | 2 +- 6 files changed, 30 insertions(+), 17 deletions(-) diff --git a/.github/workflows/ci-compiled-scripts.yaml b/.github/workflows/ci-compiled-scripts.yaml index e997d0f..3038ac2 100644 --- a/.github/workflows/ci-compiled-scripts.yaml +++ b/.github/workflows/ci-compiled-scripts.yaml @@ -45,4 +45,5 @@ jobs: # git diff --quiet implies --exit-code run: | cabal run export-smart-tokens + cabal run write-openapi-schema -- generated/openapi/schema.json git diff --quiet diff --git a/generated/openapi/schema.json b/generated/openapi/schema.json index 077eb34..f08f0ad 100644 --- a/generated/openapi/schema.json +++ b/generated/openapi/schema.json @@ -213,7 +213,7 @@ }, "openapi": "3.0.0", "paths": { - "/healthcheck": { + "/api/v1/healthcheck": { "get": { "description": "Is the server alive?", "responses": { @@ -226,7 +226,7 @@ } } }, - "/query/address/{address}": { + "/api/v1/query/address/{address}": { "get": { "description": "The user's receiving address for programmable tokens", "parameters": [ @@ -258,7 +258,7 @@ } } }, - "/query/all-funds": { + "/api/v1/query/all-funds": { "get": { "description": "Total value of all programmable tokens", "responses": { @@ -275,7 +275,7 @@ } } }, - "/query/blacklist/{address}": { + "/api/v1/query/blacklist/{address}": { "get": { "description": "The list of addresses that have been blacklisted", "parameters": [ @@ -310,7 +310,7 @@ } } }, - "/query/global-params": { + "/api/v1/query/global-params": { "get": { "description": "The UTxO with the global parameters", "responses": { @@ -327,7 +327,7 @@ } } }, - "/query/user-funds/{address}": { + "/api/v1/query/user-funds/{address}": { "get": { "description": "Total value locked in programmable token outputs addressed to the user", "parameters": [ @@ -359,7 +359,7 @@ } } }, - "/tx/programmable-token/blacklist": { + "/api/v1/tx/programmable-token/blacklist": { "post": { "description": "Add a credential to the blacklist", "requestBody": { @@ -388,7 +388,7 @@ } } }, - "/tx/programmable-token/issue": { + "/api/v1/tx/programmable-token/issue": { "post": { "description": "Create some programmable tokens", "requestBody": { @@ -417,7 +417,7 @@ } } }, - "/tx/programmable-token/seize": { + "/api/v1/tx/programmable-token/seize": { "post": { "description": "Seize a user's funds", "requestBody": { @@ -446,7 +446,7 @@ } } }, - "/tx/programmable-token/transfer": { + "/api/v1/tx/programmable-token/transfer": { "post": { "description": "Transfer programmable tokens from one address to another", "requestBody": { diff --git a/src/lib/Wst/Cli.hs b/src/lib/Wst/Cli.hs index aa7db85..3424892 100644 --- a/src/lib/Wst/Cli.hs +++ b/src/lib/Wst/Cli.hs @@ -8,6 +8,7 @@ import Control.Monad.IO.Class (MonadIO (..)) import Convex.Wallet.Operator (OperatorConfigSigning) import Convex.Wallet.Operator qualified as Operator import Data.Functor.Identity (Identity) +import Data.Maybe (fromMaybe) import Data.Proxy (Proxy) import Data.String (IsString (..)) import Options.Applicative (customExecParser, disambiguate, helper, idm, info, @@ -55,6 +56,6 @@ deploy config = do pure () startServer :: (MonadIO m, MonadLogger m) => Env.CombinedEnv Proxy Identity Proxy Identity w -> Server.ServerArgs -> m () -startServer env' serverArgs@ServerArgs{saPort} = do - logInfo $ "starting server" :# ["port" .= saPort] +startServer env' serverArgs@ServerArgs{saPort, saStaticFiles} = do + logInfo $ "starting server" :# ["port" .= saPort, "static_files" .= fromMaybe "(no static files)" saStaticFiles] liftIO (Server.runServer env' serverArgs) diff --git a/src/lib/Wst/Cli/Command.hs b/src/lib/Wst/Cli/Command.hs index b11b641..3e3326e 100644 --- a/src/lib/Wst/Cli/Command.hs +++ b/src/lib/Wst/Cli/Command.hs @@ -15,6 +15,7 @@ import Options.Applicative (CommandFields, Mod, Parser, ReadM, argument, auto, command, eitherReader, fullDesc, help, info, long, metavar, option, optional, progDesc, short, subparser, value) +import Options.Applicative.Builder (strOption) import Text.Read (readMaybe) import Wst.Server (ServerArgs (..)) @@ -64,7 +65,7 @@ parseServerArgs :: Parser ServerArgs parseServerArgs = ServerArgs <$> option auto (help "The port" <> value 8080 <> long "port" <> short 'p') - <*> optional (option auto (help "Folder to serve static files from" <> long "static-files")) + <*> optional (strOption (help "Folder to serve static files from" <> long "static-files")) parseTxIn :: Parser TxIn parseTxIn = diff --git a/src/lib/Wst/Server.hs b/src/lib/Wst/Server.hs index 10ca11d..2ee272d 100644 --- a/src/lib/Wst/Server.hs +++ b/src/lib/Wst/Server.hs @@ -6,6 +6,7 @@ module Wst.Server( runServer, ServerArgs(..), + CombinedAPI, defaultServerArgs ) where @@ -19,8 +20,9 @@ import Data.Data (Proxy (..)) import Network.Wai.Handler.Warp qualified as Warp import PlutusTx.Prelude qualified as P import Servant (Server, ServerT) -import Servant.API (NoContent (..), (:<|>) (..)) +import Servant.API (NoContent (..), Raw, (:<|>) (..)) import Servant.Server (hoistServer, serve) +import Servant.Server.StaticFiles (serveDirectoryWebApp) import SmartTokens.Types.PTokenDirectory (blnKey) import Wst.App (WstApp, runWstAppServant) import Wst.AppError (AppError) @@ -34,6 +36,12 @@ import Wst.Server.Types (APIInEra, AddToBlacklistArgs (..), BuildTxAPI, TextEnvelopeJSON (..), TransferProgrammableTokenArgs (..)) +-- | Rest API combined with a Raw endpoint +-- for static files +type CombinedAPI = + APIInEra + :<|> Raw + data ServerArgs = ServerArgs { saPort :: !Int @@ -49,8 +57,10 @@ defaultServerArgs = } runServer :: (Env.HasRuntimeEnv env, Env.HasDirectoryEnv env) => env -> ServerArgs -> IO () -runServer env ServerArgs{saPort} = do - let app = serve (Proxy @APIInEra) (server env) +runServer env ServerArgs{saPort, saStaticFiles} = do + let app = case saStaticFiles of + Nothing -> serve (Proxy @APIInEra) (server env) + Just fp -> serve (Proxy @CombinedAPI) (server env :<|> serveDirectoryWebApp fp) port = saPort Warp.run port app diff --git a/src/lib/Wst/Server/Types.hs b/src/lib/Wst/Server/Types.hs index fbb58ca..b145cb2 100644 --- a/src/lib/Wst/Server/Types.hs +++ b/src/lib/Wst/Server/Types.hs @@ -46,7 +46,7 @@ import SmartTokens.Types.ProtocolParams (ProgrammableLogicGlobalParams) import Wst.JSON.Utils qualified as JSON import Wst.Offchain.Query (UTxODat (..)) -type APIInEra = API C.ConwayEra +type APIInEra = "api" :> "v1" :> API C.ConwayEra newtype TextEnvelopeJSON a = TextEnvelopeJSON{ unTextEnvelopeJSON :: a } From 076b671fb5317b4361dd676d5499670bf7f2cb66 Mon Sep 17 00:00:00 2001 From: Christian Hoener zu Siederdissen Date: Tue, 7 Jan 2025 09:58:10 +0100 Subject: [PATCH 05/10] Multi-layer image with static assets and binary * Construct layer with the wst-poc binary * Construct second layer with static html assets * Currently second layer contains bash, etc for interaction. Can be removed to further shrink the container --- flake.lock | 55 +++++++++++++++++++++++++++ flake.nix | 5 +++ generated/html/index.html | 10 +++++ nix/containers.nix | 78 ++++++++++++++++++++++++++++++++++----- 4 files changed, 139 insertions(+), 9 deletions(-) create mode 100644 generated/html/index.html diff --git a/flake.lock b/flake.lock index e7ae139..138d92d 100644 --- a/flake.lock +++ b/flake.lock @@ -556,6 +556,24 @@ "type": "github" } }, + "flake-utils_4": { + "inputs": { + "systems": "systems_4" + }, + "locked": { + "lastModified": 1710146030, + "narHash": "sha256-SZ5L6eA7HJ/nmkzGG7/ISclqe6oZdOZTNoesiInkXPQ=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "b1d9ab70662946ef0850d488da1c9019f3a9752a", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "flake-utils", + "type": "github" + } + }, "ghc-8.6.5-iohk": { "flake": false, "locked": { @@ -1396,6 +1414,27 @@ "type": "github" } }, + "n2c": { + "inputs": { + "flake-utils": "flake-utils_4", + "nixpkgs": [ + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1730479402, + "narHash": "sha256-79NLeNjpCa4mSasmFsE3QA6obURezF0TUO5Pm+1daog=", + "owner": "nlewo", + "repo": "nix2container", + "rev": "5fb215a1564baa74ce04ad7f903d94ad6617e17a", + "type": "github" + }, + "original": { + "owner": "nlewo", + "repo": "nix2container", + "type": "github" + } + }, "nix": { "inputs": { "lowdown-src": "lowdown-src", @@ -2086,6 +2125,7 @@ "hackage": "hackage", "haskell-nix": "haskell-nix", "iogx": "iogx", + "n2c": "n2c", "nixpkgs": [ "haskell-nix", "nixpkgs" @@ -2254,6 +2294,21 @@ "type": "github" } }, + "systems_4": { + "locked": { + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "owner": "nix-systems", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default", + "type": "github" + } + }, "treefmt-nix": { "inputs": { "nixpkgs": [ diff --git a/flake.nix b/flake.nix index 188b08d..40481fb 100644 --- a/flake.nix +++ b/flake.nix @@ -33,6 +33,11 @@ plutarch = { url = "github:colll78/plutarch-plutus/b2379767c7f1c70acf28206bf922f128adc02f28"; }; + + n2c = { + url = "github:nlewo/nix2container"; + inputs.nixpkgs.follows = "nixpkgs"; + }; }; outputs = inputs: inputs.iogx.lib.mkFlake { diff --git a/generated/html/index.html b/generated/html/index.html new file mode 100644 index 0000000..22acad4 --- /dev/null +++ b/generated/html/index.html @@ -0,0 +1,10 @@ + + + + Placeholder title! + + +

Placeholder for generated/html/index.html

+ + + diff --git a/nix/containers.nix b/nix/containers.nix index ab948bb..1bf4c1e 100644 --- a/nix/containers.nix +++ b/nix/containers.nix @@ -1,18 +1,78 @@ -{ repoRoot, inputs, pkgs, lib, system }: -{ +{ repoRoot, inputs, pkgs, lib, system }: let + +staticFilesDerivation = pkgs.stdenv.mkDerivation { + name = "staticFiles"; + src = ../generated; + unpackPhase = "true"; + installPhase = '' + ls -alh "$src" + mkdir -p "$out" + cp -r $src/html $out + ls -alh $out + ''; +}; + +staticFiles = pkgs.buildEnv { + name = "staticFiles"; + paths = [ + # the actual payload we want + staticFilesDerivation + # allow interactivity with the image + pkgs.bashInteractive + pkgs.coreutils + ]; + pathsToLink = [ "/html" "/bin" ]; + extraOutputsToInstall = [ "/html" ]; +}; + +in rec { # Builds a docker container for the cabal executable given as input. First we # build the container json itself. Note the explicit architecture. # - # $ nix build .#containers.x86_64-linux.wst + # NOTE: The following commands produce a nice test environment for the container + # Build via nix first + # + #$ nix build --accept-flake-config .#containers.x86_64-linux.wst.copyTo + # + # Instead of generating a container, generate into a directory + # + #$ ./result/bin/copy-to dir:./tmp + # + # Now we can run the container (the tx is just some random I copied from the explorer) + #$ podman run --publish 8080:8080 --env WST_BLOCKFROST_TOKEN=REPLACE_ME_APIKEY dir:./tmp manage 76e2cfb0b087873ef50a3f709fa6ab3df21bdd5b67c1254837cc353613524251.0 start --static-files /html + # + # NOTE: To build the oci container image run: # - wst = lib.iogx.mkContainerFromCabalExe { - exe = inputs.self.packages.wst-poc-cli; - name = "wst-poc"; - description = "WST Proof of Concept"; - packages = [ ]; - sourceUrl = "https://github.com/input-output-hk/wsc-poc"; + #$ ./result/bin/copy-to oci-archive:oci.tar + # + wst = inputs.n2c.packages.nix2container.buildImage { + name = "wst"; + config = { + Entrypoint = lib.singleton (lib.getExe inputs.self.packages.wst-poc-cli); + }; + layers = [ + (inputs.n2c.packages.nix2container.buildLayer { + copyToRoot = [staticFiles]; + }) + ]; }; + # NOTE: I don't think iogx.mkContainerFromCabalExe enables linking in the base image correctly. Hence the more manual construction above. + # TODO: Consider patching iogx if that is the case? + + # Builds a docker container for the cabal executable given as input. First we + # build the container json itself. Note the explicit architecture. + # + # $ nix build .#containers.x86_64-linux.wstBinary + # + # wstBinary = lib.iogx.mkContainerFromCabalExe { + # exe = inputs.self.packages.wst-poc-cli; + # name = "wst-poc"; + # description = "WST Proof of Concept"; + # # packages = [ staticFiles staticFilesDerivation ]; + # sourceUrl = "https://github.com/input-output-hk/wsc-poc"; + # }; + } From 32f8c3be120a0c85eb5384006e2af99f47f84e0c Mon Sep 17 00:00:00 2001 From: Kat Date: Tue, 7 Jan 2025 08:08:46 -0600 Subject: [PATCH 06/10] Add Frontend Code (#47) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * add fe code * Update README.md * Add proxy for dev server * fix fe theme bug --------- Co-authored-by: Jann Müller --- frontend/.eslintrc.json | 3 + frontend/.gitignore | 36 + frontend/README.md | 52 + frontend/next.config.mjs | 13 + frontend/package-lock.json | 5817 +++++++++++++++++ frontend/package.json | 32 + frontend/public/assets/WST_logo.png | Bin 0 -> 4449 bytes frontend/src/app/components/AlertBar.tsx | 35 + frontend/src/app/components/Card.tsx | 57 + frontend/src/app/components/ContentTabs.tsx | 28 + frontend/src/app/components/CopyTextField.tsx | 46 + frontend/src/app/components/NavDrawer.tsx | 77 + .../src/app/components/ProfileSwitcher.tsx | 52 + frontend/src/app/components/WSTAppBar.tsx | 32 + .../src/app/components/WSTCommonButton.tsx | 18 + frontend/src/app/components/WSTIconButton.tsx | 19 + frontend/src/app/components/WSTTable.tsx | 68 + frontend/src/app/components/WSTTextField.tsx | 76 + frontend/src/app/favicon.ico | Bin 0 -> 11163 bytes frontend/src/app/layout.tsx | 45 + frontend/src/app/page.module.css | 165 + frontend/src/app/page.tsx | 235 + frontend/src/app/store/store.tsx | 53 + frontend/src/app/store/types.ts | 2 + frontend/src/app/styles/app.module.css | 64 + frontend/src/app/styles/globals.css | 51 + frontend/src/app/styles/mui_style.d.ts | 63 + frontend/src/app/styles/palette.ts | 72 + frontend/src/app/styles/theme.tsx | 375 ++ frontend/src/app/styles/themeContext.tsx | 23 + frontend/tsconfig.json | 26 + 31 files changed, 7635 insertions(+) create mode 100644 frontend/.eslintrc.json create mode 100644 frontend/.gitignore create mode 100644 frontend/README.md create mode 100644 frontend/next.config.mjs create mode 100644 frontend/package-lock.json create mode 100644 frontend/package.json create mode 100644 frontend/public/assets/WST_logo.png create mode 100644 frontend/src/app/components/AlertBar.tsx create mode 100644 frontend/src/app/components/Card.tsx create mode 100644 frontend/src/app/components/ContentTabs.tsx create mode 100644 frontend/src/app/components/CopyTextField.tsx create mode 100644 frontend/src/app/components/NavDrawer.tsx create mode 100644 frontend/src/app/components/ProfileSwitcher.tsx create mode 100644 frontend/src/app/components/WSTAppBar.tsx create mode 100644 frontend/src/app/components/WSTCommonButton.tsx create mode 100644 frontend/src/app/components/WSTIconButton.tsx create mode 100644 frontend/src/app/components/WSTTable.tsx create mode 100644 frontend/src/app/components/WSTTextField.tsx create mode 100644 frontend/src/app/favicon.ico create mode 100644 frontend/src/app/layout.tsx create mode 100644 frontend/src/app/page.module.css create mode 100644 frontend/src/app/page.tsx create mode 100644 frontend/src/app/store/store.tsx create mode 100644 frontend/src/app/store/types.ts create mode 100644 frontend/src/app/styles/app.module.css create mode 100644 frontend/src/app/styles/globals.css create mode 100644 frontend/src/app/styles/mui_style.d.ts create mode 100644 frontend/src/app/styles/palette.ts create mode 100644 frontend/src/app/styles/theme.tsx create mode 100644 frontend/src/app/styles/themeContext.tsx create mode 100644 frontend/tsconfig.json diff --git a/frontend/.eslintrc.json b/frontend/.eslintrc.json new file mode 100644 index 0000000..2d89aba --- /dev/null +++ b/frontend/.eslintrc.json @@ -0,0 +1,3 @@ +{ + "extends": ["next/core-web-vitals", "next/typescript"] +} diff --git a/frontend/.gitignore b/frontend/.gitignore new file mode 100644 index 0000000..04d5360 --- /dev/null +++ b/frontend/.gitignore @@ -0,0 +1,36 @@ +# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. + +# dependencies +/node_modules +/.pnp +.pnp.js +.yarn/install-state.gz + +# testing +/coverage + +# next.js +/.next/ +/out/ + +# production +/build + +# misc +.DS_Store +*.pem + +# debug +npm-debug.log* +yarn-debug.log* +yarn-error.log* + +# local env files +.env*.local + +# vercel +.vercel + +# typescript +*.tsbuildinfo +next-env.d.ts diff --git a/frontend/README.md b/frontend/README.md new file mode 100644 index 0000000..ee9866e --- /dev/null +++ b/frontend/README.md @@ -0,0 +1,52 @@ +# Front-End Guide + +This is a front-end web application for the Cardano Wyoming stable token poc that was built using [Next.js](https://nextjs.org/), TypeScript, MUI, and Zustand. + +## Getting Started + +### Running the Application + +To get the application running, follow these steps: + +1. Clone the repository: + ```bash + git clone https://github.com/yourusername/yourrepository.git + ``` + +2. Navigate to the `frontend` folder: + ```bash + cd yourrepository/frontend + ``` + +3. Install the necessary packages: + ```bash + npm install + ``` + +4. First, run the development server: + ```bash + npm run dev + ``` + Open [http://localhost:3000](http://localhost:3000) with your browser to see the result. + +### Project Structure + +The template is organized as follows: + +- **`frontend`**: The main application directory. + - **`public`**: Contains public assets like HTML and images. + - **`src/app`**: Contains the main source code for the application. + - **`components`**: Reusable React components. + - **`styles`**: Global styles and theme configuration. + - **`store`**: Minimal lightweight store for global variables, functions, and types. + + +### Deploy on Vercel (optional) + +The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js. + +Check out the [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details. + +### Contributing + +If you have any suggestions or improvements, feel free to open an issue or create a pull request. Contributions are always welcome! diff --git a/frontend/next.config.mjs b/frontend/next.config.mjs new file mode 100644 index 0000000..ce62d0d --- /dev/null +++ b/frontend/next.config.mjs @@ -0,0 +1,13 @@ +/** @type {import('next').NextConfig} */ +const nextConfig = + { async rewrites() { + return [ + { + source: '/api/v1/:path*', + destination: 'http://localhost:8080/:path*' // Proxy to Backend + } + ] + } + }; + +export default nextConfig; diff --git a/frontend/package-lock.json b/frontend/package-lock.json new file mode 100644 index 0000000..8c26a3a --- /dev/null +++ b/frontend/package-lock.json @@ -0,0 +1,5817 @@ +{ + "name": "starter_app", + "version": "0.1.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "starter_app", + "version": "0.1.0", + "dependencies": { + "@emotion/cache": "^11.14.0", + "@emotion/react": "^11.14.0", + "@emotion/styled": "^11.14.0", + "@mui/icons-material": "^6.3.0", + "@mui/material": "^6.3.0", + "@mui/material-nextjs": "^6.3.0", + "axios": "^1.7.9", + "next": "^14.2.21", + "react": "^18", + "react-dom": "^18", + "zustand": "^5.0.2" + }, + "devDependencies": { + "@types/node": "^20", + "@types/react": "^18", + "@types/react-dom": "^18", + "eslint": "^8", + "eslint-config-next": "14.2.21", + "typescript": "^5" + } + }, + "node_modules/@babel/code-frame": { + "version": "7.26.2", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.26.2.tgz", + "integrity": "sha512-RJlIHRueQgwWitWgF8OdFYGZX328Ax5BCemNGlqHfplnRT9ESi8JkFlvaVYbS+UubVY6dpv87Fs2u5M29iNFVQ==", + "license": "MIT", + "dependencies": { + "@babel/helper-validator-identifier": "^7.25.9", + "js-tokens": "^4.0.0", + "picocolors": "^1.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/generator": { + "version": "7.26.3", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.26.3.tgz", + "integrity": "sha512-6FF/urZvD0sTeO7k6/B15pMLC4CHUv1426lzr3N01aHJTl046uCAh9LXW/fzeXXjPNCJ6iABW5XaWOsIZB93aQ==", + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.26.3", + "@babel/types": "^7.26.3", + "@jridgewell/gen-mapping": "^0.3.5", + "@jridgewell/trace-mapping": "^0.3.25", + "jsesc": "^3.0.2" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-imports": { + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.25.9.tgz", + "integrity": "sha512-tnUA4RsrmflIM6W6RFTLFSXITtl0wKjgpnLgXyowocVPrbYrLUXSBXDgTs8BlbmIzIdlBySRQjINYs2BAkiLtw==", + "license": "MIT", + "dependencies": { + "@babel/traverse": "^7.25.9", + "@babel/types": "^7.25.9" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-string-parser": { + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.25.9.tgz", + "integrity": "sha512-4A/SCr/2KLd5jrtOMFzaKjVtAei3+2r/NChoBNoZ3EyP/+GlhoaEGoWOZUmFmoITP7zOJyHIMm+DYRd8o3PvHA==", + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-identifier": { + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.25.9.tgz", + "integrity": "sha512-Ed61U6XJc3CVRfkERJWDz4dJwKe7iLmmJsbOGu9wSloNSFttHV0I8g6UAgb7qnK5ly5bGLPd4oXZlxCdANBOWQ==", + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/parser": { + "version": "7.26.3", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.26.3.tgz", + "integrity": "sha512-WJ/CvmY8Mea8iDXo6a7RK2wbmJITT5fN3BEkRuFlxVyNx8jOKIIhmC4fSkTcPcf8JyavbBwIe6OpiCOBXt/IcA==", + "license": "MIT", + "dependencies": { + "@babel/types": "^7.26.3" + }, + "bin": { + "parser": "bin/babel-parser.js" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/runtime": { + "version": "7.26.0", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.26.0.tgz", + "integrity": "sha512-FDSOghenHTiToteC/QRlv2q3DhPZ/oOXTBoirfWNx1Cx3TMVcGWQtMMmQcSvb/JjpNeGzx8Pq/b4fKEJuWm1sw==", + "license": "MIT", + "dependencies": { + "regenerator-runtime": "^0.14.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/template": { + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.25.9.tgz", + "integrity": "sha512-9DGttpmPvIxBb/2uwpVo3dqJ+O6RooAFOS+lB+xDqoE2PVCE8nfoHMdZLpfCQRLwvohzXISPZcgxt80xLfsuwg==", + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.25.9", + "@babel/parser": "^7.25.9", + "@babel/types": "^7.25.9" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/traverse": { + "version": "7.26.4", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.26.4.tgz", + "integrity": "sha512-fH+b7Y4p3yqvApJALCPJcwb0/XaOSgtK4pzV6WVjPR5GLFQBRI7pfoX2V2iM48NXvX07NUxxm1Vw98YjqTcU5w==", + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.26.2", + "@babel/generator": "^7.26.3", + "@babel/parser": "^7.26.3", + "@babel/template": "^7.25.9", + "@babel/types": "^7.26.3", + "debug": "^4.3.1", + "globals": "^11.1.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/types": { + "version": "7.26.3", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.26.3.tgz", + "integrity": "sha512-vN5p+1kl59GVKMvTHt55NzzmYVxprfJD+ql7U9NFIfKCBkYE55LYtS+WtPlaYOyzydrKI8Nezd+aZextrd+FMA==", + "license": "MIT", + "dependencies": { + "@babel/helper-string-parser": "^7.25.9", + "@babel/helper-validator-identifier": "^7.25.9" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@emotion/babel-plugin": { + "version": "11.13.5", + "resolved": "https://registry.npmjs.org/@emotion/babel-plugin/-/babel-plugin-11.13.5.tgz", + "integrity": "sha512-pxHCpT2ex+0q+HH91/zsdHkw/lXd468DIN2zvfvLtPKLLMo6gQj7oLObq8PhkrxOZb/gGCq03S3Z7PDhS8pduQ==", + "license": "MIT", + "dependencies": { + "@babel/helper-module-imports": "^7.16.7", + "@babel/runtime": "^7.18.3", + "@emotion/hash": "^0.9.2", + "@emotion/memoize": "^0.9.0", + "@emotion/serialize": "^1.3.3", + "babel-plugin-macros": "^3.1.0", + "convert-source-map": "^1.5.0", + "escape-string-regexp": "^4.0.0", + "find-root": "^1.1.0", + "source-map": "^0.5.7", + "stylis": "4.2.0" + } + }, + "node_modules/@emotion/cache": { + "version": "11.14.0", + "resolved": "https://registry.npmjs.org/@emotion/cache/-/cache-11.14.0.tgz", + "integrity": "sha512-L/B1lc/TViYk4DcpGxtAVbx0ZyiKM5ktoIyafGkH6zg/tj+mA+NE//aPYKG0k8kCHSHVJrpLpcAlOBEXQ3SavA==", + "license": "MIT", + "dependencies": { + "@emotion/memoize": "^0.9.0", + "@emotion/sheet": "^1.4.0", + "@emotion/utils": "^1.4.2", + "@emotion/weak-memoize": "^0.4.0", + "stylis": "4.2.0" + } + }, + "node_modules/@emotion/hash": { + "version": "0.9.2", + "resolved": "https://registry.npmjs.org/@emotion/hash/-/hash-0.9.2.tgz", + "integrity": "sha512-MyqliTZGuOm3+5ZRSaaBGP3USLw6+EGykkwZns2EPC5g8jJ4z9OrdZY9apkl3+UP9+sdz76YYkwCKP5gh8iY3g==", + "license": "MIT" + }, + "node_modules/@emotion/is-prop-valid": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/@emotion/is-prop-valid/-/is-prop-valid-1.3.1.tgz", + "integrity": "sha512-/ACwoqx7XQi9knQs/G0qKvv5teDMhD7bXYns9N/wM8ah8iNb8jZ2uNO0YOgiq2o2poIvVtJS2YALasQuMSQ7Kw==", + "license": "MIT", + "dependencies": { + "@emotion/memoize": "^0.9.0" + } + }, + "node_modules/@emotion/memoize": { + "version": "0.9.0", + "resolved": "https://registry.npmjs.org/@emotion/memoize/-/memoize-0.9.0.tgz", + "integrity": "sha512-30FAj7/EoJ5mwVPOWhAyCX+FPfMDrVecJAM+Iw9NRoSl4BBAQeqj4cApHHUXOVvIPgLVDsCFoz/hGD+5QQD1GQ==", + "license": "MIT" + }, + "node_modules/@emotion/react": { + "version": "11.14.0", + "resolved": "https://registry.npmjs.org/@emotion/react/-/react-11.14.0.tgz", + "integrity": "sha512-O000MLDBDdk/EohJPFUqvnp4qnHeYkVP5B0xEG0D/L7cOKP9kefu2DXn8dj74cQfsEzUqh+sr1RzFqiL1o+PpA==", + "license": "MIT", + "dependencies": { + "@babel/runtime": "^7.18.3", + "@emotion/babel-plugin": "^11.13.5", + "@emotion/cache": "^11.14.0", + "@emotion/serialize": "^1.3.3", + "@emotion/use-insertion-effect-with-fallbacks": "^1.2.0", + "@emotion/utils": "^1.4.2", + "@emotion/weak-memoize": "^0.4.0", + "hoist-non-react-statics": "^3.3.1" + }, + "peerDependencies": { + "react": ">=16.8.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@emotion/serialize": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/@emotion/serialize/-/serialize-1.3.3.tgz", + "integrity": "sha512-EISGqt7sSNWHGI76hC7x1CksiXPahbxEOrC5RjmFRJTqLyEK9/9hZvBbiYn70dw4wuwMKiEMCUlR6ZXTSWQqxA==", + "license": "MIT", + "dependencies": { + "@emotion/hash": "^0.9.2", + "@emotion/memoize": "^0.9.0", + "@emotion/unitless": "^0.10.0", + "@emotion/utils": "^1.4.2", + "csstype": "^3.0.2" + } + }, + "node_modules/@emotion/sheet": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/@emotion/sheet/-/sheet-1.4.0.tgz", + "integrity": "sha512-fTBW9/8r2w3dXWYM4HCB1Rdp8NLibOw2+XELH5m5+AkWiL/KqYX6dc0kKYlaYyKjrQ6ds33MCdMPEwgs2z1rqg==", + "license": "MIT" + }, + "node_modules/@emotion/styled": { + "version": "11.14.0", + "resolved": "https://registry.npmjs.org/@emotion/styled/-/styled-11.14.0.tgz", + "integrity": "sha512-XxfOnXFffatap2IyCeJyNov3kiDQWoR08gPUQxvbL7fxKryGBKUZUkG6Hz48DZwVrJSVh9sJboyV1Ds4OW6SgA==", + "license": "MIT", + "dependencies": { + "@babel/runtime": "^7.18.3", + "@emotion/babel-plugin": "^11.13.5", + "@emotion/is-prop-valid": "^1.3.0", + "@emotion/serialize": "^1.3.3", + "@emotion/use-insertion-effect-with-fallbacks": "^1.2.0", + "@emotion/utils": "^1.4.2" + }, + "peerDependencies": { + "@emotion/react": "^11.0.0-rc.0", + "react": ">=16.8.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@emotion/unitless": { + "version": "0.10.0", + "resolved": "https://registry.npmjs.org/@emotion/unitless/-/unitless-0.10.0.tgz", + "integrity": "sha512-dFoMUuQA20zvtVTuxZww6OHoJYgrzfKM1t52mVySDJnMSEa08ruEvdYQbhvyu6soU+NeLVd3yKfTfT0NeV6qGg==", + "license": "MIT" + }, + "node_modules/@emotion/use-insertion-effect-with-fallbacks": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@emotion/use-insertion-effect-with-fallbacks/-/use-insertion-effect-with-fallbacks-1.2.0.tgz", + "integrity": "sha512-yJMtVdH59sxi/aVJBpk9FQq+OR8ll5GT8oWd57UpeaKEVGab41JWaCFA7FRLoMLloOZF/c/wsPoe+bfGmRKgDg==", + "license": "MIT", + "peerDependencies": { + "react": ">=16.8.0" + } + }, + "node_modules/@emotion/utils": { + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/@emotion/utils/-/utils-1.4.2.tgz", + "integrity": "sha512-3vLclRofFziIa3J2wDh9jjbkUz9qk5Vi3IZ/FSTKViB0k+ef0fPV7dYrUIugbgupYDx7v9ud/SjrtEP8Y4xLoA==", + "license": "MIT" + }, + "node_modules/@emotion/weak-memoize": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/@emotion/weak-memoize/-/weak-memoize-0.4.0.tgz", + "integrity": "sha512-snKqtPW01tN0ui7yu9rGv69aJXr/a/Ywvl11sUjNtEcRc+ng/mQriFL0wLXMef74iHa/EkftbDzU9F8iFbH+zg==", + "license": "MIT" + }, + "node_modules/@eslint-community/eslint-utils": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.1.tgz", + "integrity": "sha512-s3O3waFUrMV8P/XaF/+ZTp1X9XBZW1a4B97ZnjQF2KYWaFD2A8KyFBsrsfSjEmjn3RGWAIuvlneuZm3CUK3jbA==", + "dev": true, + "license": "MIT", + "dependencies": { + "eslint-visitor-keys": "^3.4.3" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + }, + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" + } + }, + "node_modules/@eslint-community/regexpp": { + "version": "4.12.1", + "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.12.1.tgz", + "integrity": "sha512-CCZCDJuduB9OUkFkY2IgppNZMi2lBQgD2qzwXkEia16cge2pijY/aXi96CJMquDMn3nJdlPV1A5KrJEXwfLNzQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^12.0.0 || ^14.0.0 || >=16.0.0" + } + }, + "node_modules/@eslint/eslintrc": { + "version": "2.1.4", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.1.4.tgz", + "integrity": "sha512-269Z39MS6wVJtsoUl10L60WdkhJVdPG24Q4eZTH3nnF6lpvSShEK3wQjDX9JRWAUPvPh7COouPpU9IrqaZFvtQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "ajv": "^6.12.4", + "debug": "^4.3.2", + "espree": "^9.6.0", + "globals": "^13.19.0", + "ignore": "^5.2.0", + "import-fresh": "^3.2.1", + "js-yaml": "^4.1.0", + "minimatch": "^3.1.2", + "strip-json-comments": "^3.1.1" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/@eslint/eslintrc/node_modules/globals": { + "version": "13.24.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.24.0.tgz", + "integrity": "sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "type-fest": "^0.20.2" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@eslint/js": { + "version": "8.57.1", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.57.1.tgz", + "integrity": "sha512-d9zaMRSTIKDLhctzH12MtXvJKSSUhaHcjV+2Z+GK+EEY7XKpP5yR4x+N3TAcHTcu963nIr+TMcCb4DBCYX1z6Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + } + }, + "node_modules/@humanwhocodes/config-array": { + "version": "0.13.0", + "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.13.0.tgz", + "integrity": "sha512-DZLEEqFWQFiyK6h5YIeynKx7JlvCYWL0cImfSRXZ9l4Sg2efkFGTuFf6vzXjK1cq6IYkU+Eg/JizXw+TD2vRNw==", + "deprecated": "Use @eslint/config-array instead", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@humanwhocodes/object-schema": "^2.0.3", + "debug": "^4.3.1", + "minimatch": "^3.0.5" + }, + "engines": { + "node": ">=10.10.0" + } + }, + "node_modules/@humanwhocodes/module-importer": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", + "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=12.22" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" + } + }, + "node_modules/@humanwhocodes/object-schema": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-2.0.3.tgz", + "integrity": "sha512-93zYdMES/c1D69yZiKDBj0V24vqNzB/koF26KPaagAfd3P/4gUlh3Dys5ogAK+Exi9QyzlD8x/08Zt7wIKcDcA==", + "deprecated": "Use @eslint/object-schema instead", + "dev": true, + "license": "BSD-3-Clause" + }, + "node_modules/@isaacs/cliui": { + "version": "8.0.2", + "resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz", + "integrity": "sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==", + "dev": true, + "license": "ISC", + "dependencies": { + "string-width": "^5.1.2", + "string-width-cjs": "npm:string-width@^4.2.0", + "strip-ansi": "^7.0.1", + "strip-ansi-cjs": "npm:strip-ansi@^6.0.1", + "wrap-ansi": "^8.1.0", + "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/@isaacs/cliui/node_modules/ansi-regex": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.1.0.tgz", + "integrity": "sha512-7HSX4QQb4CspciLpVFwyRe79O3xsIZDDLER21kERQ71oaPodF8jL725AgJMFAYbooIqolJoRLuM81SpeUkpkvA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-regex?sponsor=1" + } + }, + "node_modules/@isaacs/cliui/node_modules/strip-ansi": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz", + "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-regex": "^6.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/strip-ansi?sponsor=1" + } + }, + "node_modules/@jridgewell/gen-mapping": { + "version": "0.3.8", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.8.tgz", + "integrity": "sha512-imAbBGkb+ebQyxKgzv5Hu2nmROxoDOXHh80evxdoXNOrvAnVx7zimzc1Oo5h9RlfV4vPXaE2iM5pOFbvOCClWA==", + "license": "MIT", + "dependencies": { + "@jridgewell/set-array": "^1.2.1", + "@jridgewell/sourcemap-codec": "^1.4.10", + "@jridgewell/trace-mapping": "^0.3.24" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/resolve-uri": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", + "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", + "license": "MIT", + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/set-array": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.2.1.tgz", + "integrity": "sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==", + "license": "MIT", + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.0.tgz", + "integrity": "sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ==", + "license": "MIT" + }, + "node_modules/@jridgewell/trace-mapping": { + "version": "0.3.25", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.25.tgz", + "integrity": "sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==", + "license": "MIT", + "dependencies": { + "@jridgewell/resolve-uri": "^3.1.0", + "@jridgewell/sourcemap-codec": "^1.4.14" + } + }, + "node_modules/@mui/core-downloads-tracker": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/@mui/core-downloads-tracker/-/core-downloads-tracker-6.3.1.tgz", + "integrity": "sha512-2OmnEyoHpj5//dJJpMuxOeLItCCHdf99pjMFfUFdBteCunAK9jW+PwEo4mtdGcLs7P+IgZ+85ypd52eY4AigoQ==", + "license": "MIT", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/mui-org" + } + }, + "node_modules/@mui/icons-material": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/@mui/icons-material/-/icons-material-6.3.1.tgz", + "integrity": "sha512-nJmWj1PBlwS3t1PnoqcixIsftE+7xrW3Su7f0yrjPw4tVjYrgkhU0hrRp+OlURfZ3ptdSkoBkalee9Bhf1Erfw==", + "license": "MIT", + "dependencies": { + "@babel/runtime": "^7.26.0" + }, + "engines": { + "node": ">=14.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/mui-org" + }, + "peerDependencies": { + "@mui/material": "^6.3.1", + "@types/react": "^17.0.0 || ^18.0.0 || ^19.0.0", + "react": "^17.0.0 || ^18.0.0 || ^19.0.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@mui/material": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/@mui/material/-/material-6.3.1.tgz", + "integrity": "sha512-ynG9ayhxgCsHJ/dtDcT1v78/r2GwQyP3E0hPz3GdPRl0uFJz/uUTtI5KFYwadXmbC+Uv3bfB8laZ6+Cpzh03gA==", + "license": "MIT", + "dependencies": { + "@babel/runtime": "^7.26.0", + "@mui/core-downloads-tracker": "^6.3.1", + "@mui/system": "^6.3.1", + "@mui/types": "^7.2.21", + "@mui/utils": "^6.3.1", + "@popperjs/core": "^2.11.8", + "@types/react-transition-group": "^4.4.12", + "clsx": "^2.1.1", + "csstype": "^3.1.3", + "prop-types": "^15.8.1", + "react-is": "^19.0.0", + "react-transition-group": "^4.4.5" + }, + "engines": { + "node": ">=14.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/mui-org" + }, + "peerDependencies": { + "@emotion/react": "^11.5.0", + "@emotion/styled": "^11.3.0", + "@mui/material-pigment-css": "^6.3.1", + "@types/react": "^17.0.0 || ^18.0.0 || ^19.0.0", + "react": "^17.0.0 || ^18.0.0 || ^19.0.0", + "react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0" + }, + "peerDependenciesMeta": { + "@emotion/react": { + "optional": true + }, + "@emotion/styled": { + "optional": true + }, + "@mui/material-pigment-css": { + "optional": true + }, + "@types/react": { + "optional": true + } + } + }, + "node_modules/@mui/material-nextjs": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/@mui/material-nextjs/-/material-nextjs-6.3.1.tgz", + "integrity": "sha512-14Y9wHdGsxI7u9XiMlpK5L6+MTsGo3Pod0EqwEde3jMx6dv63uqnMokhC1mzIJ3PjWtG8FwJkDsl57O9H6d+gQ==", + "license": "MIT", + "dependencies": { + "@babel/runtime": "^7.26.0" + }, + "engines": { + "node": ">=14.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/mui-org" + }, + "peerDependencies": { + "@emotion/cache": "^11.11.0", + "@emotion/react": "^11.11.4", + "@emotion/server": "^11.11.0", + "@types/react": "^17.0.0 || ^18.0.0 || ^19.0.0", + "next": "^13.0.0 || ^14.0.0 || ^15.0.0", + "react": "^17.0.0 || ^18.0.0 || ^19.0.0" + }, + "peerDependenciesMeta": { + "@emotion/cache": { + "optional": true + }, + "@emotion/server": { + "optional": true + }, + "@types/react": { + "optional": true + } + } + }, + "node_modules/@mui/private-theming": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/@mui/private-theming/-/private-theming-6.3.1.tgz", + "integrity": "sha512-g0u7hIUkmXmmrmmf5gdDYv9zdAig0KoxhIQn1JN8IVqApzf/AyRhH3uDGx5mSvs8+a1zb4+0W6LC260SyTTtdQ==", + "license": "MIT", + "dependencies": { + "@babel/runtime": "^7.26.0", + "@mui/utils": "^6.3.1", + "prop-types": "^15.8.1" + }, + "engines": { + "node": ">=14.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/mui-org" + }, + "peerDependencies": { + "@types/react": "^17.0.0 || ^18.0.0 || ^19.0.0", + "react": "^17.0.0 || ^18.0.0 || ^19.0.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@mui/styled-engine": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/@mui/styled-engine/-/styled-engine-6.3.1.tgz", + "integrity": "sha512-/7CC0d2fIeiUxN5kCCwYu4AWUDd9cCTxWCyo0v/Rnv6s8uk6hWgJC3VLZBoDENBHf/KjqDZuYJ2CR+7hD6QYww==", + "license": "MIT", + "dependencies": { + "@babel/runtime": "^7.26.0", + "@emotion/cache": "^11.13.5", + "@emotion/serialize": "^1.3.3", + "@emotion/sheet": "^1.4.0", + "csstype": "^3.1.3", + "prop-types": "^15.8.1" + }, + "engines": { + "node": ">=14.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/mui-org" + }, + "peerDependencies": { + "@emotion/react": "^11.4.1", + "@emotion/styled": "^11.3.0", + "react": "^17.0.0 || ^18.0.0 || ^19.0.0" + }, + "peerDependenciesMeta": { + "@emotion/react": { + "optional": true + }, + "@emotion/styled": { + "optional": true + } + } + }, + "node_modules/@mui/system": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/@mui/system/-/system-6.3.1.tgz", + "integrity": "sha512-AwqQ3EAIT2np85ki+N15fF0lFXX1iFPqenCzVOSl3QXKy2eifZeGd9dGtt7pGMoFw5dzW4dRGGzRpLAq9rkl7A==", + "license": "MIT", + "dependencies": { + "@babel/runtime": "^7.26.0", + "@mui/private-theming": "^6.3.1", + "@mui/styled-engine": "^6.3.1", + "@mui/types": "^7.2.21", + "@mui/utils": "^6.3.1", + "clsx": "^2.1.1", + "csstype": "^3.1.3", + "prop-types": "^15.8.1" + }, + "engines": { + "node": ">=14.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/mui-org" + }, + "peerDependencies": { + "@emotion/react": "^11.5.0", + "@emotion/styled": "^11.3.0", + "@types/react": "^17.0.0 || ^18.0.0 || ^19.0.0", + "react": "^17.0.0 || ^18.0.0 || ^19.0.0" + }, + "peerDependenciesMeta": { + "@emotion/react": { + "optional": true + }, + "@emotion/styled": { + "optional": true + }, + "@types/react": { + "optional": true + } + } + }, + "node_modules/@mui/types": { + "version": "7.2.21", + "resolved": "https://registry.npmjs.org/@mui/types/-/types-7.2.21.tgz", + "integrity": "sha512-6HstngiUxNqLU+/DPqlUJDIPbzUBxIVHb1MmXP0eTWDIROiCR2viugXpEif0PPe2mLqqakPzzRClWAnK+8UJww==", + "license": "MIT", + "peerDependencies": { + "@types/react": "^17.0.0 || ^18.0.0 || ^19.0.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@mui/utils": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/@mui/utils/-/utils-6.3.1.tgz", + "integrity": "sha512-sjGjXAngoio6lniQZKJ5zGfjm+LD2wvLwco7FbKe1fu8A7VIFmz2SwkLb+MDPLNX1lE7IscvNNyh1pobtZg2tw==", + "license": "MIT", + "dependencies": { + "@babel/runtime": "^7.26.0", + "@mui/types": "^7.2.21", + "@types/prop-types": "^15.7.14", + "clsx": "^2.1.1", + "prop-types": "^15.8.1", + "react-is": "^19.0.0" + }, + "engines": { + "node": ">=14.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/mui-org" + }, + "peerDependencies": { + "@types/react": "^17.0.0 || ^18.0.0 || ^19.0.0", + "react": "^17.0.0 || ^18.0.0 || ^19.0.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@next/env": { + "version": "14.2.22", + "resolved": "https://registry.npmjs.org/@next/env/-/env-14.2.22.tgz", + "integrity": "sha512-EQ6y1QeNQglNmNIXvwP/Bb+lf7n9WtgcWvtoFsHquVLCJUuxRs+6SfZ5EK0/EqkkLex4RrDySvKgKNN7PXip7Q==", + "license": "MIT" + }, + "node_modules/@next/eslint-plugin-next": { + "version": "14.2.21", + "resolved": "https://registry.npmjs.org/@next/eslint-plugin-next/-/eslint-plugin-next-14.2.21.tgz", + "integrity": "sha512-bxfiExnMkpwo4bBhCqnDhdgFyxSp6Xt6xu4Ne7En6MpgqwiER95Or+q1WDUDX4e888taeIAdPIAVaY+Wv0kiwQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "glob": "10.3.10" + } + }, + "node_modules/@next/swc-darwin-arm64": { + "version": "14.2.22", + "resolved": "https://registry.npmjs.org/@next/swc-darwin-arm64/-/swc-darwin-arm64-14.2.22.tgz", + "integrity": "sha512-HUaLiehovgnqY4TMBZJ3pDaOsTE1spIXeR10pWgdQVPYqDGQmHJBj3h3V6yC0uuo/RoY2GC0YBFRkOX3dI9WVQ==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@next/swc-darwin-x64": { + "version": "14.2.22", + "resolved": "https://registry.npmjs.org/@next/swc-darwin-x64/-/swc-darwin-x64-14.2.22.tgz", + "integrity": "sha512-ApVDANousaAGrosWvxoGdLT0uvLBUC+srqOcpXuyfglA40cP2LBFaGmBjhgpxYk5z4xmunzqQvcIgXawTzo2uQ==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@next/swc-linux-arm64-gnu": { + "version": "14.2.22", + "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-14.2.22.tgz", + "integrity": "sha512-3O2J99Bk9aM+d4CGn9eEayJXHuH9QLx0BctvWyuUGtJ3/mH6lkfAPRI4FidmHMBQBB4UcvLMfNf8vF0NZT7iKw==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@next/swc-linux-arm64-musl": { + "version": "14.2.22", + "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-14.2.22.tgz", + "integrity": "sha512-H/hqfRz75yy60y5Eg7DxYfbmHMjv60Dsa6IWHzpJSz4MRkZNy5eDnEW9wyts9bkxwbOVZNPHeb3NkqanP+nGPg==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@next/swc-linux-x64-gnu": { + "version": "14.2.22", + "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-14.2.22.tgz", + "integrity": "sha512-LckLwlCLcGR1hlI5eiJymR8zSHPsuruuwaZ3H2uudr25+Dpzo6cRFjp/3OR5UYJt8LSwlXv9mmY4oI2QynwpqQ==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@next/swc-linux-x64-musl": { + "version": "14.2.22", + "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-14.2.22.tgz", + "integrity": "sha512-qGUutzmh0PoFU0fCSu0XYpOfT7ydBZgDfcETIeft46abPqP+dmePhwRGLhFKwZWxNWQCPprH26TjaTxM0Nv8mw==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@next/swc-win32-arm64-msvc": { + "version": "14.2.22", + "resolved": "https://registry.npmjs.org/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-14.2.22.tgz", + "integrity": "sha512-K6MwucMWmIvMb9GlvT0haYsfIPxfQD8yXqxwFy4uLFMeXIb2TcVYQimxkaFZv86I7sn1NOZnpOaVk5eaxThGIw==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@next/swc-win32-ia32-msvc": { + "version": "14.2.22", + "resolved": "https://registry.npmjs.org/@next/swc-win32-ia32-msvc/-/swc-win32-ia32-msvc-14.2.22.tgz", + "integrity": "sha512-5IhDDTPEbzPR31ZzqHe90LnNe7BlJUZvC4sA1thPJV6oN5WmtWjZ0bOYfNsyZx00FJt7gggNs6SrsX0UEIcIpA==", + "cpu": [ + "ia32" + ], + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@next/swc-win32-x64-msvc": { + "version": "14.2.22", + "resolved": "https://registry.npmjs.org/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-14.2.22.tgz", + "integrity": "sha512-nvRaB1PyG4scn9/qNzlkwEwLzuoPH3Gjp7Q/pLuwUgOTt1oPMlnCI3A3rgkt+eZnU71emOiEv/mR201HoURPGg==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@nodelib/fs.scandir": { + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", + "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@nodelib/fs.stat": "2.0.5", + "run-parallel": "^1.1.9" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.stat": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", + "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.walk": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", + "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@nodelib/fs.scandir": "2.1.5", + "fastq": "^1.6.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nolyfill/is-core-module": { + "version": "1.0.39", + "resolved": "https://registry.npmjs.org/@nolyfill/is-core-module/-/is-core-module-1.0.39.tgz", + "integrity": "sha512-nn5ozdjYQpUCZlWGuxcJY/KpxkWQs4DcbMCmKojjyrYDEAGy4Ce19NN4v5MduafTwJlbKc99UA8YhSVqq9yPZA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12.4.0" + } + }, + "node_modules/@pkgjs/parseargs": { + "version": "0.11.0", + "resolved": "https://registry.npmjs.org/@pkgjs/parseargs/-/parseargs-0.11.0.tgz", + "integrity": "sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==", + "dev": true, + "license": "MIT", + "optional": true, + "engines": { + "node": ">=14" + } + }, + "node_modules/@popperjs/core": { + "version": "2.11.8", + "resolved": "https://registry.npmjs.org/@popperjs/core/-/core-2.11.8.tgz", + "integrity": "sha512-P1st0aksCrn9sGZhp8GMYwBnQsbvAWsZAX44oXNNvLHGqAOcoVxmjZiohstwQ7SqKnbR47akdNi+uleWD8+g6A==", + "license": "MIT", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/popperjs" + } + }, + "node_modules/@rtsao/scc": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@rtsao/scc/-/scc-1.1.0.tgz", + "integrity": "sha512-zt6OdqaDoOnJ1ZYsCYGt9YmWzDXl4vQdKTyJev62gFhRGKdx7mcT54V9KIjg+d2wi9EXsPvAPKe7i7WjfVWB8g==", + "dev": true, + "license": "MIT" + }, + "node_modules/@rushstack/eslint-patch": { + "version": "1.10.4", + "resolved": "https://registry.npmjs.org/@rushstack/eslint-patch/-/eslint-patch-1.10.4.tgz", + "integrity": "sha512-WJgX9nzTqknM393q1QJDJmoW28kUfEnybeTfVNcNAPnIx210RXm2DiXiHzfNPJNIUUb1tJnz/l4QGtJ30PgWmA==", + "dev": true, + "license": "MIT" + }, + "node_modules/@swc/counter": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/@swc/counter/-/counter-0.1.3.tgz", + "integrity": "sha512-e2BR4lsJkkRlKZ/qCHPw9ZaSxc0MVUd7gtbtaB7aMvHeJVYe8sOB8DBZkP2DtISHGSku9sCK6T6cnY0CtXrOCQ==", + "license": "Apache-2.0" + }, + "node_modules/@swc/helpers": { + "version": "0.5.5", + "resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.5.tgz", + "integrity": "sha512-KGYxvIOXcceOAbEk4bi/dVLEK9z8sZ0uBB3Il5b1rhfClSpcX0yfRO0KmTkqR2cnQDymwLB+25ZyMzICg/cm/A==", + "license": "Apache-2.0", + "dependencies": { + "@swc/counter": "^0.1.3", + "tslib": "^2.4.0" + } + }, + "node_modules/@types/json5": { + "version": "0.0.29", + "resolved": "https://registry.npmjs.org/@types/json5/-/json5-0.0.29.tgz", + "integrity": "sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/node": { + "version": "20.17.12", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.17.12.tgz", + "integrity": "sha512-vo/wmBgMIiEA23A/knMfn/cf37VnuF52nZh5ZoW0GWt4e4sxNquibrMRJ7UQsA06+MBx9r/H1jsI9grYjQCQlw==", + "dev": true, + "license": "MIT", + "dependencies": { + "undici-types": "~6.19.2" + } + }, + "node_modules/@types/parse-json": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@types/parse-json/-/parse-json-4.0.2.tgz", + "integrity": "sha512-dISoDXWWQwUquiKsyZ4Ng+HX2KsPL7LyHKHQwgGFEA3IaKac4Obd+h2a/a6waisAoepJlBcx9paWqjA8/HVjCw==", + "license": "MIT" + }, + "node_modules/@types/prop-types": { + "version": "15.7.14", + "resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.14.tgz", + "integrity": "sha512-gNMvNH49DJ7OJYv+KAKn0Xp45p8PLl6zo2YnvDIbTd4J6MER2BmWN49TG7n9LvkyihINxeKW8+3bfS2yDC9dzQ==", + "license": "MIT" + }, + "node_modules/@types/react": { + "version": "18.3.18", + "resolved": "https://registry.npmjs.org/@types/react/-/react-18.3.18.tgz", + "integrity": "sha512-t4yC+vtgnkYjNSKlFx1jkAhH8LgTo2N/7Qvi83kdEaUtMDiwpbLAktKDaAMlRcJ5eSxZkH74eEGt1ky31d7kfQ==", + "license": "MIT", + "dependencies": { + "@types/prop-types": "*", + "csstype": "^3.0.2" + } + }, + "node_modules/@types/react-dom": { + "version": "18.3.5", + "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-18.3.5.tgz", + "integrity": "sha512-P4t6saawp+b/dFrUr2cvkVsfvPguwsxtH6dNIYRllMsefqFzkZk5UIjzyDOv5g1dXIPdG4Sp1yCR4Z6RCUsG/Q==", + "dev": true, + "license": "MIT", + "peerDependencies": { + "@types/react": "^18.0.0" + } + }, + "node_modules/@types/react-transition-group": { + "version": "4.4.12", + "resolved": "https://registry.npmjs.org/@types/react-transition-group/-/react-transition-group-4.4.12.tgz", + "integrity": "sha512-8TV6R3h2j7a91c+1DXdJi3Syo69zzIZbz7Lg5tORM5LEJG7X/E6a1V3drRyBRZq7/utz7A+c4OgYLiLcYGHG6w==", + "license": "MIT", + "peerDependencies": { + "@types/react": "*" + } + }, + "node_modules/@typescript-eslint/eslint-plugin": { + "version": "8.19.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.19.0.tgz", + "integrity": "sha512-NggSaEZCdSrFddbctrVjkVZvFC6KGfKfNK0CU7mNK/iKHGKbzT4Wmgm08dKpcZECBu9f5FypndoMyRHkdqfT1Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "@eslint-community/regexpp": "^4.10.0", + "@typescript-eslint/scope-manager": "8.19.0", + "@typescript-eslint/type-utils": "8.19.0", + "@typescript-eslint/utils": "8.19.0", + "@typescript-eslint/visitor-keys": "8.19.0", + "graphemer": "^1.4.0", + "ignore": "^5.3.1", + "natural-compare": "^1.4.0", + "ts-api-utils": "^1.3.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "@typescript-eslint/parser": "^8.0.0 || ^8.0.0-alpha.0", + "eslint": "^8.57.0 || ^9.0.0", + "typescript": ">=4.8.4 <5.8.0" + } + }, + "node_modules/@typescript-eslint/parser": { + "version": "8.19.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.19.0.tgz", + "integrity": "sha512-6M8taKyOETY1TKHp0x8ndycipTVgmp4xtg5QpEZzXxDhNvvHOJi5rLRkLr8SK3jTgD5l4fTlvBiRdfsuWydxBw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/scope-manager": "8.19.0", + "@typescript-eslint/types": "8.19.0", + "@typescript-eslint/typescript-estree": "8.19.0", + "@typescript-eslint/visitor-keys": "8.19.0", + "debug": "^4.3.4" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.57.0 || ^9.0.0", + "typescript": ">=4.8.4 <5.8.0" + } + }, + "node_modules/@typescript-eslint/scope-manager": { + "version": "8.19.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.19.0.tgz", + "integrity": "sha512-hkoJiKQS3GQ13TSMEiuNmSCvhz7ujyqD1x3ShbaETATHrck+9RaDdUbt+osXaUuns9OFwrDTTrjtwsU8gJyyRA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/types": "8.19.0", + "@typescript-eslint/visitor-keys": "8.19.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/type-utils": { + "version": "8.19.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.19.0.tgz", + "integrity": "sha512-TZs0I0OSbd5Aza4qAMpp1cdCYVnER94IziudE3JU328YUHgWu9gwiwhag+fuLeJ2LkWLXI+F/182TbG+JaBdTg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/typescript-estree": "8.19.0", + "@typescript-eslint/utils": "8.19.0", + "debug": "^4.3.4", + "ts-api-utils": "^1.3.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.57.0 || ^9.0.0", + "typescript": ">=4.8.4 <5.8.0" + } + }, + "node_modules/@typescript-eslint/types": { + "version": "8.19.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.19.0.tgz", + "integrity": "sha512-8XQ4Ss7G9WX8oaYvD4OOLCjIQYgRQxO+qCiR2V2s2GxI9AUpo7riNwo6jDhKtTcaJjT8PY54j2Yb33kWtSJsmA==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/typescript-estree": { + "version": "8.19.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.19.0.tgz", + "integrity": "sha512-WW9PpDaLIFW9LCbucMSdYUuGeFUz1OkWYS/5fwZwTA+l2RwlWFdJvReQqMUMBw4yJWJOfqd7An9uwut2Oj8sLw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/types": "8.19.0", + "@typescript-eslint/visitor-keys": "8.19.0", + "debug": "^4.3.4", + "fast-glob": "^3.3.2", + "is-glob": "^4.0.3", + "minimatch": "^9.0.4", + "semver": "^7.6.0", + "ts-api-utils": "^1.3.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "typescript": ">=4.8.4 <5.8.0" + } + }, + "node_modules/@typescript-eslint/typescript-estree/node_modules/brace-expansion": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", + "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch": { + "version": "9.0.5", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", + "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", + "dev": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/@typescript-eslint/utils": { + "version": "8.19.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.19.0.tgz", + "integrity": "sha512-PTBG+0oEMPH9jCZlfg07LCB2nYI0I317yyvXGfxnvGvw4SHIOuRnQ3kadyyXY6tGdChusIHIbM5zfIbp4M6tCg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@eslint-community/eslint-utils": "^4.4.0", + "@typescript-eslint/scope-manager": "8.19.0", + "@typescript-eslint/types": "8.19.0", + "@typescript-eslint/typescript-estree": "8.19.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.57.0 || ^9.0.0", + "typescript": ">=4.8.4 <5.8.0" + } + }, + "node_modules/@typescript-eslint/visitor-keys": { + "version": "8.19.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.19.0.tgz", + "integrity": "sha512-mCFtBbFBJDCNCWUl5y6sZSCHXw1DEFEk3c/M3nRK2a4XUB8StGFtmcEMizdjKuBzB6e/smJAAWYug3VrdLMr1w==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/types": "8.19.0", + "eslint-visitor-keys": "^4.2.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/visitor-keys/node_modules/eslint-visitor-keys": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.0.tgz", + "integrity": "sha512-UyLnSehNt62FFhSwjZlHmeokpRK59rcz29j+F1/aDgbkbRTk7wIc9XzdoasMUbRNKDM0qQt/+BJ4BrpFeABemw==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/@ungap/structured-clone": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.2.1.tgz", + "integrity": "sha512-fEzPV3hSkSMltkw152tJKNARhOupqbH96MZWyRjNaYZOMIzbrTeQDG+MTc6Mr2pgzFQzFxAfmhGDNP5QK++2ZA==", + "dev": true, + "license": "ISC" + }, + "node_modules/acorn": { + "version": "8.14.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.14.0.tgz", + "integrity": "sha512-cl669nCJTZBsL97OF4kUQm5g5hC2uihk0NxY3WENAC0TYdILVkAyHymAntgxGkl7K+t0cXIrH5siy5S4XkFycA==", + "dev": true, + "license": "MIT", + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/acorn-jsx": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", + "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", + "dev": true, + "license": "MIT", + "peerDependencies": { + "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" + } + }, + "node_modules/ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "dev": true, + "license": "MIT", + "dependencies": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "license": "MIT", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "dev": true, + "license": "Python-2.0" + }, + "node_modules/aria-query": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/aria-query/-/aria-query-5.3.2.tgz", + "integrity": "sha512-COROpnaoap1E2F000S62r6A60uHZnmlvomhfyT2DlTcrY1OrBKn2UhH7qn5wTC9zMvD0AY7csdPSNwKP+7WiQw==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/array-buffer-byte-length": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/array-buffer-byte-length/-/array-buffer-byte-length-1.0.2.tgz", + "integrity": "sha512-LHE+8BuR7RYGDKvnrmcuSq3tDcKv9OFEXQt/HpbZhY7V6h0zlUXutnAD82GiFx9rdieCMjkvtcsPqBwgUl1Iiw==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.3", + "is-array-buffer": "^3.0.5" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/array-includes": { + "version": "3.1.8", + "resolved": "https://registry.npmjs.org/array-includes/-/array-includes-3.1.8.tgz", + "integrity": "sha512-itaWrbYbqpGXkGhZPGUulwnhVf5Hpy1xiCFsGqyIGglbBxmG5vSjxQen3/WGOjPpNEv1RtBLKxbmVXm8HpJStQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.7", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.2", + "es-object-atoms": "^1.0.0", + "get-intrinsic": "^1.2.4", + "is-string": "^1.0.7" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/array.prototype.findlast": { + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/array.prototype.findlast/-/array.prototype.findlast-1.2.5.tgz", + "integrity": "sha512-CVvd6FHg1Z3POpBLxO6E6zr+rSKEQ9L6rZHAaY7lLfhKsWYUBBOuMs0e9o24oopj6H+geRCX0YJ+TJLBK2eHyQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.7", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.2", + "es-errors": "^1.3.0", + "es-object-atoms": "^1.0.0", + "es-shim-unscopables": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/array.prototype.findlastindex": { + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/array.prototype.findlastindex/-/array.prototype.findlastindex-1.2.5.tgz", + "integrity": "sha512-zfETvRFA8o7EiNn++N5f/kaCw221hrpGsDmcpndVupkPzEc1Wuf3VgC0qby1BbHs7f5DVYjgtEU2LLh5bqeGfQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.7", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.2", + "es-errors": "^1.3.0", + "es-object-atoms": "^1.0.0", + "es-shim-unscopables": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/array.prototype.flat": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/array.prototype.flat/-/array.prototype.flat-1.3.3.tgz", + "integrity": "sha512-rwG/ja1neyLqCuGZ5YYrznA62D4mZXg0i1cIskIUKSiqF3Cje9/wXAls9B9s1Wa2fomMsIv8czB8jZcPmxCXFg==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.8", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.5", + "es-shim-unscopables": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/array.prototype.flatmap": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/array.prototype.flatmap/-/array.prototype.flatmap-1.3.3.tgz", + "integrity": "sha512-Y7Wt51eKJSyi80hFrJCePGGNo5ktJCslFuboqJsbf57CCPcm5zztluPlc4/aD8sWsKvlwatezpV4U1efk8kpjg==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.8", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.5", + "es-shim-unscopables": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/array.prototype.tosorted": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/array.prototype.tosorted/-/array.prototype.tosorted-1.1.4.tgz", + "integrity": "sha512-p6Fx8B7b7ZhL/gmUsAy0D15WhvDccw3mnGNbZpi3pmeJdxtWsj2jEaI4Y6oo3XiHfzuSgPwKc04MYt6KgvC/wA==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.7", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.3", + "es-errors": "^1.3.0", + "es-shim-unscopables": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/arraybuffer.prototype.slice": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/arraybuffer.prototype.slice/-/arraybuffer.prototype.slice-1.0.4.tgz", + "integrity": "sha512-BNoCY6SXXPQ7gF2opIP4GBE+Xw7U+pHMYKuzjgCN3GwiaIR09UUeKfheyIry77QtrCBlC0KK0q5/TER/tYh3PQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "array-buffer-byte-length": "^1.0.1", + "call-bind": "^1.0.8", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.5", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.6", + "is-array-buffer": "^3.0.4" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/ast-types-flow": { + "version": "0.0.8", + "resolved": "https://registry.npmjs.org/ast-types-flow/-/ast-types-flow-0.0.8.tgz", + "integrity": "sha512-OH/2E5Fg20h2aPrbe+QL8JZQFko0YZaF+j4mnQ7BGhfavO7OpSLa8a0y9sBwomHdSbkhTS8TQNayBfnW5DwbvQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/asynckit": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", + "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==", + "license": "MIT" + }, + "node_modules/available-typed-arrays": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.7.tgz", + "integrity": "sha512-wvUjBtSGN7+7SjNpq/9M2Tg350UZD3q62IFZLbRAR1bSMlCo1ZaeW+BJ+D090e4hIIZLBcTDWe4Mh4jvUDajzQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "possible-typed-array-names": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/axe-core": { + "version": "4.10.2", + "resolved": "https://registry.npmjs.org/axe-core/-/axe-core-4.10.2.tgz", + "integrity": "sha512-RE3mdQ7P3FRSe7eqCWoeQ/Z9QXrtniSjp1wUjt5nRC3WIpz5rSCve6o3fsZ2aCpJtrZjSZgjwXAoTO5k4tEI0w==", + "dev": true, + "license": "MPL-2.0", + "engines": { + "node": ">=4" + } + }, + "node_modules/axios": { + "version": "1.7.9", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.7.9.tgz", + "integrity": "sha512-LhLcE7Hbiryz8oMDdDptSrWowmB4Bl6RCt6sIJKpRB4XtVf0iEgewX3au/pJqm+Py1kCASkb/FFKjxQaLtxJvw==", + "license": "MIT", + "dependencies": { + "follow-redirects": "^1.15.6", + "form-data": "^4.0.0", + "proxy-from-env": "^1.1.0" + } + }, + "node_modules/axobject-query": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/axobject-query/-/axobject-query-4.1.0.tgz", + "integrity": "sha512-qIj0G9wZbMGNLjLmg1PT6v2mE9AH2zlnADJD/2tC6E00hgmhUOfEB6greHPAfLRSufHqROIUTkw6E+M3lH0PTQ==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/babel-plugin-macros": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/babel-plugin-macros/-/babel-plugin-macros-3.1.0.tgz", + "integrity": "sha512-Cg7TFGpIr01vOQNODXOOaGz2NpCU5gl8x1qJFbb6hbZxR7XrcE2vtbAsTAbJ7/xwJtUuJEw8K8Zr/AE0LHlesg==", + "license": "MIT", + "dependencies": { + "@babel/runtime": "^7.12.5", + "cosmiconfig": "^7.0.0", + "resolve": "^1.19.0" + }, + "engines": { + "node": ">=10", + "npm": ">=6" + } + }, + "node_modules/balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", + "dev": true, + "license": "MIT" + }, + "node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/braces": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", + "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", + "dev": true, + "license": "MIT", + "dependencies": { + "fill-range": "^7.1.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/busboy": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/busboy/-/busboy-1.6.0.tgz", + "integrity": "sha512-8SFQbg/0hQ9xy3UNTB0YEnsNBbWfhf7RtnzpL7TkBiTBRfrQ9Fxcnz7VJsleJpyp6rVLvXiuORqjlHi5q+PYuA==", + "dependencies": { + "streamsearch": "^1.1.0" + }, + "engines": { + "node": ">=10.16.0" + } + }, + "node_modules/call-bind": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.8.tgz", + "integrity": "sha512-oKlSFMcMwpUg2ednkhQ454wfWiU/ul3CkJe/PEHcTKuiX6RpbehUiFMXu13HalGZxfUwCQzZG747YXBn1im9ww==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.0", + "es-define-property": "^1.0.0", + "get-intrinsic": "^1.2.4", + "set-function-length": "^1.2.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/call-bind-apply-helpers": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.1.tgz", + "integrity": "sha512-BhYE+WDaywFg2TBWYNXAE+8B1ATnThNBqXHP5nQu0jWJdVvY2hvkpyB3qOmtmDePiS5/BDQ8wASEWGMWRG148g==", + "dev": true, + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/call-bound": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.3.tgz", + "integrity": "sha512-YTd+6wGlNlPxSuri7Y6X8tY2dmm12UMH66RpKMhiX6rsk5wXXnYgbUcOt8kiS31/AjfoTOvCsE+w8nZQLQnzHA==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.1", + "get-intrinsic": "^1.2.6" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/callsites": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", + "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/caniuse-lite": { + "version": "1.0.30001690", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001690.tgz", + "integrity": "sha512-5ExiE3qQN6oF8Clf8ifIDcMRCRE/dMGcETG/XGMD8/XiXm6HXQgQTh1yZYLXXpSOsEUlJm1Xr7kGULZTuGtP/w==", + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/caniuse-lite" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "CC-BY-4.0" + }, + "node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/client-only": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/client-only/-/client-only-0.0.1.tgz", + "integrity": "sha512-IV3Ou0jSMzZrd3pZ48nLkT9DA7Ag1pnPzaiQhpW7c3RbcqqzvzzVu+L8gfqMp/8IM2MQtSiqaCxrrcfu8I8rMA==", + "license": "MIT" + }, + "node_modules/clsx": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/clsx/-/clsx-2.1.1.tgz", + "integrity": "sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA==", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true, + "license": "MIT" + }, + "node_modules/combined-stream": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", + "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", + "license": "MIT", + "dependencies": { + "delayed-stream": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", + "dev": true, + "license": "MIT" + }, + "node_modules/convert-source-map": { + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.9.0.tgz", + "integrity": "sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A==", + "license": "MIT" + }, + "node_modules/cosmiconfig": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-7.1.0.tgz", + "integrity": "sha512-AdmX6xUzdNASswsFtmwSt7Vj8po9IuqXm0UXz7QKPuEUmPB4XyjGfaAr2PSuELMwkRMVH1EpIkX5bTZGRB3eCA==", + "license": "MIT", + "dependencies": { + "@types/parse-json": "^4.0.0", + "import-fresh": "^3.2.1", + "parse-json": "^5.0.0", + "path-type": "^4.0.0", + "yaml": "^1.10.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/cross-spawn": { + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", + "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", + "dev": true, + "license": "MIT", + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/csstype": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.3.tgz", + "integrity": "sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==", + "license": "MIT" + }, + "node_modules/damerau-levenshtein": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/damerau-levenshtein/-/damerau-levenshtein-1.0.8.tgz", + "integrity": "sha512-sdQSFB7+llfUcQHUQO3+B8ERRj0Oa4w9POWMI/puGtuf7gFywGmkaLCElnudfTiKZV+NvHqL0ifzdrI8Ro7ESA==", + "dev": true, + "license": "BSD-2-Clause" + }, + "node_modules/data-view-buffer": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/data-view-buffer/-/data-view-buffer-1.0.2.tgz", + "integrity": "sha512-EmKO5V3OLXh1rtK2wgXRansaK1/mtVdTUEiEI0W8RkvgT05kfxaH29PliLnpLP73yYO6142Q72QNa8Wx/A5CqQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.3", + "es-errors": "^1.3.0", + "is-data-view": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/data-view-byte-length": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/data-view-byte-length/-/data-view-byte-length-1.0.2.tgz", + "integrity": "sha512-tuhGbE6CfTM9+5ANGf+oQb72Ky/0+s3xKUpHvShfiz2RxMFgFPjsXuRLBVMtvMs15awe45SRb83D6wH4ew6wlQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.3", + "es-errors": "^1.3.0", + "is-data-view": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/inspect-js" + } + }, + "node_modules/data-view-byte-offset": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/data-view-byte-offset/-/data-view-byte-offset-1.0.1.tgz", + "integrity": "sha512-BS8PfmtDGnrgYdOonGZQdLZslWIeCGFP9tpan0hi1Co2Zr2NKADsvGYA8XxuG/4UWgJ6Cjtv+YJnB6MM69QGlQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.2", + "es-errors": "^1.3.0", + "is-data-view": "^1.0.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/debug": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.0.tgz", + "integrity": "sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA==", + "license": "MIT", + "dependencies": { + "ms": "^2.1.3" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/deep-is": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", + "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/define-data-property": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.4.tgz", + "integrity": "sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==", + "dev": true, + "license": "MIT", + "dependencies": { + "es-define-property": "^1.0.0", + "es-errors": "^1.3.0", + "gopd": "^1.0.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/define-properties": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.2.1.tgz", + "integrity": "sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg==", + "dev": true, + "license": "MIT", + "dependencies": { + "define-data-property": "^1.0.1", + "has-property-descriptors": "^1.0.0", + "object-keys": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/delayed-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", + "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", + "license": "MIT", + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/doctrine": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", + "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "esutils": "^2.0.2" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/dom-helpers": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/dom-helpers/-/dom-helpers-5.2.1.tgz", + "integrity": "sha512-nRCa7CK3VTrM2NmGkIy4cbK7IZlgBE/PYMn55rrXefr5xXDP0LdtfPnblFDoVdcAfslJ7or6iqAUnx0CCGIWQA==", + "license": "MIT", + "dependencies": { + "@babel/runtime": "^7.8.7", + "csstype": "^3.0.2" + } + }, + "node_modules/dunder-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz", + "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.1", + "es-errors": "^1.3.0", + "gopd": "^1.2.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/eastasianwidth": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz", + "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==", + "dev": true, + "license": "MIT" + }, + "node_modules/emoji-regex": { + "version": "9.2.2", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", + "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==", + "dev": true, + "license": "MIT" + }, + "node_modules/enhanced-resolve": { + "version": "5.18.0", + "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.18.0.tgz", + "integrity": "sha512-0/r0MySGYG8YqlayBZ6MuCfECmHFdJ5qyPh8s8wa5Hnm6SaFLSK1VYCbj+NKp090Nm1caZhD+QTnmxO7esYGyQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "graceful-fs": "^4.2.4", + "tapable": "^2.2.0" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/error-ex": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", + "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", + "license": "MIT", + "dependencies": { + "is-arrayish": "^0.2.1" + } + }, + "node_modules/es-abstract": { + "version": "1.23.9", + "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.23.9.tgz", + "integrity": "sha512-py07lI0wjxAC/DcfK1S6G7iANonniZwTISvdPzk9hzeH0IZIshbuuFxLIU96OyF89Yb9hiqWn8M/bY83KY5vzA==", + "dev": true, + "license": "MIT", + "dependencies": { + "array-buffer-byte-length": "^1.0.2", + "arraybuffer.prototype.slice": "^1.0.4", + "available-typed-arrays": "^1.0.7", + "call-bind": "^1.0.8", + "call-bound": "^1.0.3", + "data-view-buffer": "^1.0.2", + "data-view-byte-length": "^1.0.2", + "data-view-byte-offset": "^1.0.1", + "es-define-property": "^1.0.1", + "es-errors": "^1.3.0", + "es-object-atoms": "^1.0.0", + "es-set-tostringtag": "^2.1.0", + "es-to-primitive": "^1.3.0", + "function.prototype.name": "^1.1.8", + "get-intrinsic": "^1.2.7", + "get-proto": "^1.0.0", + "get-symbol-description": "^1.1.0", + "globalthis": "^1.0.4", + "gopd": "^1.2.0", + "has-property-descriptors": "^1.0.2", + "has-proto": "^1.2.0", + "has-symbols": "^1.1.0", + "hasown": "^2.0.2", + "internal-slot": "^1.1.0", + "is-array-buffer": "^3.0.5", + "is-callable": "^1.2.7", + "is-data-view": "^1.0.2", + "is-regex": "^1.2.1", + "is-shared-array-buffer": "^1.0.4", + "is-string": "^1.1.1", + "is-typed-array": "^1.1.15", + "is-weakref": "^1.1.0", + "math-intrinsics": "^1.1.0", + "object-inspect": "^1.13.3", + "object-keys": "^1.1.1", + "object.assign": "^4.1.7", + "own-keys": "^1.0.1", + "regexp.prototype.flags": "^1.5.3", + "safe-array-concat": "^1.1.3", + "safe-push-apply": "^1.0.0", + "safe-regex-test": "^1.1.0", + "set-proto": "^1.0.0", + "string.prototype.trim": "^1.2.10", + "string.prototype.trimend": "^1.0.9", + "string.prototype.trimstart": "^1.0.8", + "typed-array-buffer": "^1.0.3", + "typed-array-byte-length": "^1.0.3", + "typed-array-byte-offset": "^1.0.4", + "typed-array-length": "^1.0.7", + "unbox-primitive": "^1.1.0", + "which-typed-array": "^1.1.18" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/es-define-property": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz", + "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-errors": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", + "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-iterator-helpers": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/es-iterator-helpers/-/es-iterator-helpers-1.2.1.tgz", + "integrity": "sha512-uDn+FE1yrDzyC0pCo961B2IHbdM8y/ACZsKD4dG6WqrjV53BADjwa7D+1aom2rsNVfLyDgU/eigvlJGJ08OQ4w==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.8", + "call-bound": "^1.0.3", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.6", + "es-errors": "^1.3.0", + "es-set-tostringtag": "^2.0.3", + "function-bind": "^1.1.2", + "get-intrinsic": "^1.2.6", + "globalthis": "^1.0.4", + "gopd": "^1.2.0", + "has-property-descriptors": "^1.0.2", + "has-proto": "^1.2.0", + "has-symbols": "^1.1.0", + "internal-slot": "^1.1.0", + "iterator.prototype": "^1.1.4", + "safe-array-concat": "^1.1.3" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-object-atoms": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.0.0.tgz", + "integrity": "sha512-MZ4iQ6JwHOBQjahnjwaC1ZtIBH+2ohjamzAO3oaHcXYup7qxjF2fixyH+Q71voWHeOkI2q/TnJao/KfXYIZWbw==", + "dev": true, + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-set-tostringtag": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.1.0.tgz", + "integrity": "sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==", + "dev": true, + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.6", + "has-tostringtag": "^1.0.2", + "hasown": "^2.0.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-shim-unscopables": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/es-shim-unscopables/-/es-shim-unscopables-1.0.2.tgz", + "integrity": "sha512-J3yBRXCzDu4ULnQwxyToo/OjdMx6akgVC7K6few0a7F/0wLtmKKN7I73AH5T2836UuXRqN7Qg+IIUw/+YJksRw==", + "dev": true, + "license": "MIT", + "dependencies": { + "hasown": "^2.0.0" + } + }, + "node_modules/es-to-primitive": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.3.0.tgz", + "integrity": "sha512-w+5mJ3GuFL+NjVtJlvydShqE1eN3h3PbI7/5LAsYJP/2qtuMXjfL2LpHSRqo4b4eSF5K/DH1JXKUAHSB2UW50g==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-callable": "^1.2.7", + "is-date-object": "^1.0.5", + "is-symbol": "^1.0.4" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/escape-string-regexp": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", + "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint": { + "version": "8.57.1", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.57.1.tgz", + "integrity": "sha512-ypowyDxpVSYpkXr9WPv2PAZCtNip1Mv5KTW0SCurXv/9iOpcrH9PaqUElksqEB6pChqHGDRCFTyrZlGhnLNGiA==", + "deprecated": "This version is no longer supported. Please see https://eslint.org/version-support for other options.", + "dev": true, + "license": "MIT", + "dependencies": { + "@eslint-community/eslint-utils": "^4.2.0", + "@eslint-community/regexpp": "^4.6.1", + "@eslint/eslintrc": "^2.1.4", + "@eslint/js": "8.57.1", + "@humanwhocodes/config-array": "^0.13.0", + "@humanwhocodes/module-importer": "^1.0.1", + "@nodelib/fs.walk": "^1.2.8", + "@ungap/structured-clone": "^1.2.0", + "ajv": "^6.12.4", + "chalk": "^4.0.0", + "cross-spawn": "^7.0.2", + "debug": "^4.3.2", + "doctrine": "^3.0.0", + "escape-string-regexp": "^4.0.0", + "eslint-scope": "^7.2.2", + "eslint-visitor-keys": "^3.4.3", + "espree": "^9.6.1", + "esquery": "^1.4.2", + "esutils": "^2.0.2", + "fast-deep-equal": "^3.1.3", + "file-entry-cache": "^6.0.1", + "find-up": "^5.0.0", + "glob-parent": "^6.0.2", + "globals": "^13.19.0", + "graphemer": "^1.4.0", + "ignore": "^5.2.0", + "imurmurhash": "^0.1.4", + "is-glob": "^4.0.0", + "is-path-inside": "^3.0.3", + "js-yaml": "^4.1.0", + "json-stable-stringify-without-jsonify": "^1.0.1", + "levn": "^0.4.1", + "lodash.merge": "^4.6.2", + "minimatch": "^3.1.2", + "natural-compare": "^1.4.0", + "optionator": "^0.9.3", + "strip-ansi": "^6.0.1", + "text-table": "^0.2.0" + }, + "bin": { + "eslint": "bin/eslint.js" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint-config-next": { + "version": "14.2.21", + "resolved": "https://registry.npmjs.org/eslint-config-next/-/eslint-config-next-14.2.21.tgz", + "integrity": "sha512-bi1Mn6LxWdQod9qvOBuhBhN4ZpBYH5DuyDunbZt6lye3zlohJyM0T5/oFokRPNl2Mqt3/+uwHxr8XKOkPe852A==", + "dev": true, + "license": "MIT", + "dependencies": { + "@next/eslint-plugin-next": "14.2.21", + "@rushstack/eslint-patch": "^1.3.3", + "@typescript-eslint/eslint-plugin": "^5.4.2 || ^6.0.0 || ^7.0.0 || ^8.0.0", + "@typescript-eslint/parser": "^5.4.2 || ^6.0.0 || ^7.0.0 || ^8.0.0", + "eslint-import-resolver-node": "^0.3.6", + "eslint-import-resolver-typescript": "^3.5.2", + "eslint-plugin-import": "^2.28.1", + "eslint-plugin-jsx-a11y": "^6.7.1", + "eslint-plugin-react": "^7.33.2", + "eslint-plugin-react-hooks": "^4.5.0 || 5.0.0-canary-7118f5dd7-20230705" + }, + "peerDependencies": { + "eslint": "^7.23.0 || ^8.0.0", + "typescript": ">=3.3.1" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/eslint-import-resolver-node": { + "version": "0.3.9", + "resolved": "https://registry.npmjs.org/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.9.tgz", + "integrity": "sha512-WFj2isz22JahUv+B788TlO3N6zL3nNJGU8CcZbPZvVEkBPaJdCV4vy5wyghty5ROFbCRnm132v8BScu5/1BQ8g==", + "dev": true, + "license": "MIT", + "dependencies": { + "debug": "^3.2.7", + "is-core-module": "^2.13.0", + "resolve": "^1.22.4" + } + }, + "node_modules/eslint-import-resolver-node/node_modules/debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "ms": "^2.1.1" + } + }, + "node_modules/eslint-import-resolver-typescript": { + "version": "3.7.0", + "resolved": "https://registry.npmjs.org/eslint-import-resolver-typescript/-/eslint-import-resolver-typescript-3.7.0.tgz", + "integrity": "sha512-Vrwyi8HHxY97K5ebydMtffsWAn1SCR9eol49eCd5fJS4O1WV7PaAjbcjmbfJJSMz/t4Mal212Uz/fQZrOB8mow==", + "dev": true, + "license": "ISC", + "dependencies": { + "@nolyfill/is-core-module": "1.0.39", + "debug": "^4.3.7", + "enhanced-resolve": "^5.15.0", + "fast-glob": "^3.3.2", + "get-tsconfig": "^4.7.5", + "is-bun-module": "^1.0.2", + "is-glob": "^4.0.3", + "stable-hash": "^0.0.4" + }, + "engines": { + "node": "^14.18.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/unts/projects/eslint-import-resolver-ts" + }, + "peerDependencies": { + "eslint": "*", + "eslint-plugin-import": "*", + "eslint-plugin-import-x": "*" + }, + "peerDependenciesMeta": { + "eslint-plugin-import": { + "optional": true + }, + "eslint-plugin-import-x": { + "optional": true + } + } + }, + "node_modules/eslint-module-utils": { + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.12.0.tgz", + "integrity": "sha512-wALZ0HFoytlyh/1+4wuZ9FJCD/leWHQzzrxJ8+rebyReSLk7LApMyd3WJaLVoN+D5+WIdJyDK1c6JnE65V4Zyg==", + "dev": true, + "license": "MIT", + "dependencies": { + "debug": "^3.2.7" + }, + "engines": { + "node": ">=4" + }, + "peerDependenciesMeta": { + "eslint": { + "optional": true + } + } + }, + "node_modules/eslint-module-utils/node_modules/debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "ms": "^2.1.1" + } + }, + "node_modules/eslint-plugin-import": { + "version": "2.31.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.31.0.tgz", + "integrity": "sha512-ixmkI62Rbc2/w8Vfxyh1jQRTdRTF52VxwRVHl/ykPAmqG+Nb7/kNn+byLP0LxPgI7zWA16Jt82SybJInmMia3A==", + "dev": true, + "license": "MIT", + "dependencies": { + "@rtsao/scc": "^1.1.0", + "array-includes": "^3.1.8", + "array.prototype.findlastindex": "^1.2.5", + "array.prototype.flat": "^1.3.2", + "array.prototype.flatmap": "^1.3.2", + "debug": "^3.2.7", + "doctrine": "^2.1.0", + "eslint-import-resolver-node": "^0.3.9", + "eslint-module-utils": "^2.12.0", + "hasown": "^2.0.2", + "is-core-module": "^2.15.1", + "is-glob": "^4.0.3", + "minimatch": "^3.1.2", + "object.fromentries": "^2.0.8", + "object.groupby": "^1.0.3", + "object.values": "^1.2.0", + "semver": "^6.3.1", + "string.prototype.trimend": "^1.0.8", + "tsconfig-paths": "^3.15.0" + }, + "engines": { + "node": ">=4" + }, + "peerDependencies": { + "eslint": "^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0 || ^8 || ^9" + } + }, + "node_modules/eslint-plugin-import/node_modules/debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "ms": "^2.1.1" + } + }, + "node_modules/eslint-plugin-import/node_modules/doctrine": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz", + "integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "esutils": "^2.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/eslint-plugin-import/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/eslint-plugin-jsx-a11y": { + "version": "6.10.2", + "resolved": "https://registry.npmjs.org/eslint-plugin-jsx-a11y/-/eslint-plugin-jsx-a11y-6.10.2.tgz", + "integrity": "sha512-scB3nz4WmG75pV8+3eRUQOHZlNSUhFNq37xnpgRkCCELU3XMvXAxLk1eqWWyE22Ki4Q01Fnsw9BA3cJHDPgn2Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "aria-query": "^5.3.2", + "array-includes": "^3.1.8", + "array.prototype.flatmap": "^1.3.2", + "ast-types-flow": "^0.0.8", + "axe-core": "^4.10.0", + "axobject-query": "^4.1.0", + "damerau-levenshtein": "^1.0.8", + "emoji-regex": "^9.2.2", + "hasown": "^2.0.2", + "jsx-ast-utils": "^3.3.5", + "language-tags": "^1.0.9", + "minimatch": "^3.1.2", + "object.fromentries": "^2.0.8", + "safe-regex-test": "^1.0.3", + "string.prototype.includes": "^2.0.1" + }, + "engines": { + "node": ">=4.0" + }, + "peerDependencies": { + "eslint": "^3 || ^4 || ^5 || ^6 || ^7 || ^8 || ^9" + } + }, + "node_modules/eslint-plugin-react": { + "version": "7.37.3", + "resolved": "https://registry.npmjs.org/eslint-plugin-react/-/eslint-plugin-react-7.37.3.tgz", + "integrity": "sha512-DomWuTQPFYZwF/7c9W2fkKkStqZmBd3uugfqBYLdkZ3Hii23WzZuOLUskGxB8qkSKqftxEeGL1TB2kMhrce0jA==", + "dev": true, + "license": "MIT", + "dependencies": { + "array-includes": "^3.1.8", + "array.prototype.findlast": "^1.2.5", + "array.prototype.flatmap": "^1.3.3", + "array.prototype.tosorted": "^1.1.4", + "doctrine": "^2.1.0", + "es-iterator-helpers": "^1.2.1", + "estraverse": "^5.3.0", + "hasown": "^2.0.2", + "jsx-ast-utils": "^2.4.1 || ^3.0.0", + "minimatch": "^3.1.2", + "object.entries": "^1.1.8", + "object.fromentries": "^2.0.8", + "object.values": "^1.2.1", + "prop-types": "^15.8.1", + "resolve": "^2.0.0-next.5", + "semver": "^6.3.1", + "string.prototype.matchall": "^4.0.12", + "string.prototype.repeat": "^1.0.0" + }, + "engines": { + "node": ">=4" + }, + "peerDependencies": { + "eslint": "^3 || ^4 || ^5 || ^6 || ^7 || ^8 || ^9.7" + } + }, + "node_modules/eslint-plugin-react-hooks": { + "version": "5.0.0-canary-7118f5dd7-20230705", + "resolved": "https://registry.npmjs.org/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-5.0.0-canary-7118f5dd7-20230705.tgz", + "integrity": "sha512-AZYbMo/NW9chdL7vk6HQzQhT+PvTAEVqWk9ziruUoW2kAOcN5qNyelv70e0F1VNQAbvutOC9oc+xfWycI9FxDw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "peerDependencies": { + "eslint": "^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0" + } + }, + "node_modules/eslint-plugin-react/node_modules/doctrine": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz", + "integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "esutils": "^2.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/eslint-plugin-react/node_modules/resolve": { + "version": "2.0.0-next.5", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-2.0.0-next.5.tgz", + "integrity": "sha512-U7WjGVG9sH8tvjW5SmGbQuui75FiyjAX72HX15DwBBwF9dNiQZRQAg9nnPhYy+TUnE0+VcrttuvNI8oSxZcocA==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-core-module": "^2.13.0", + "path-parse": "^1.0.7", + "supports-preserve-symlinks-flag": "^1.0.0" + }, + "bin": { + "resolve": "bin/resolve" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/eslint-plugin-react/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/eslint-scope": { + "version": "7.2.2", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.2.tgz", + "integrity": "sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "esrecurse": "^4.3.0", + "estraverse": "^5.2.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint-visitor-keys": { + "version": "3.4.3", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", + "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint/node_modules/globals": { + "version": "13.24.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.24.0.tgz", + "integrity": "sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "type-fest": "^0.20.2" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/espree": { + "version": "9.6.1", + "resolved": "https://registry.npmjs.org/espree/-/espree-9.6.1.tgz", + "integrity": "sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "acorn": "^8.9.0", + "acorn-jsx": "^5.3.2", + "eslint-visitor-keys": "^3.4.1" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/esquery": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.6.0.tgz", + "integrity": "sha512-ca9pw9fomFcKPvFLXhBKUK90ZvGibiGOvRJNbjljY7s7uq/5YO4BOzcYtJqExdx99rF6aAcnRxHmcUHcz6sQsg==", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "estraverse": "^5.1.0" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/esrecurse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", + "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "estraverse": "^5.2.0" + }, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">=4.0" + } + }, + "node_modules/esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "dev": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/fast-deep-equal": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", + "dev": true, + "license": "MIT" + }, + "node_modules/fast-glob": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.3.tgz", + "integrity": "sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@nodelib/fs.stat": "^2.0.2", + "@nodelib/fs.walk": "^1.2.3", + "glob-parent": "^5.1.2", + "merge2": "^1.3.0", + "micromatch": "^4.0.8" + }, + "engines": { + "node": ">=8.6.0" + } + }, + "node_modules/fast-glob/node_modules/glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dev": true, + "license": "ISC", + "dependencies": { + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/fast-json-stable-stringify": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", + "dev": true, + "license": "MIT" + }, + "node_modules/fast-levenshtein": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", + "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", + "dev": true, + "license": "MIT" + }, + "node_modules/fastq": { + "version": "1.18.0", + "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.18.0.tgz", + "integrity": "sha512-QKHXPW0hD8g4UET03SdOdunzSouc9N4AuHdsX8XNcTsuz+yYFILVNIX4l9yHABMhiEI9Db0JTTIpu0wB+Y1QQw==", + "dev": true, + "license": "ISC", + "dependencies": { + "reusify": "^1.0.4" + } + }, + "node_modules/file-entry-cache": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", + "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==", + "dev": true, + "license": "MIT", + "dependencies": { + "flat-cache": "^3.0.4" + }, + "engines": { + "node": "^10.12.0 || >=12.0.0" + } + }, + "node_modules/fill-range": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", + "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", + "dev": true, + "license": "MIT", + "dependencies": { + "to-regex-range": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/find-root": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/find-root/-/find-root-1.1.0.tgz", + "integrity": "sha512-NKfW6bec6GfKc0SGx1e07QZY9PE99u0Bft/0rzSD5k3sO/vwkVUpDUKVm5Gpp5Ue3YfShPFTX2070tDs5kB9Ng==", + "license": "MIT" + }, + "node_modules/find-up": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", + "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", + "dev": true, + "license": "MIT", + "dependencies": { + "locate-path": "^6.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/flat-cache": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.2.0.tgz", + "integrity": "sha512-CYcENa+FtcUKLmhhqyctpclsq7QF38pKjZHsGNiSQF5r4FtoKDWabFDl3hzaEQMvT1LHEysw5twgLvpYYb4vbw==", + "dev": true, + "license": "MIT", + "dependencies": { + "flatted": "^3.2.9", + "keyv": "^4.5.3", + "rimraf": "^3.0.2" + }, + "engines": { + "node": "^10.12.0 || >=12.0.0" + } + }, + "node_modules/flatted": { + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.3.2.tgz", + "integrity": "sha512-AiwGJM8YcNOaobumgtng+6NHuOqC3A7MixFeDafM3X9cIUM+xUXoS5Vfgf+OihAYe20fxqNM9yPBXJzRtZ/4eA==", + "dev": true, + "license": "ISC" + }, + "node_modules/follow-redirects": { + "version": "1.15.9", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.9.tgz", + "integrity": "sha512-gew4GsXizNgdoRyqmyfMHyAmXsZDk6mHkSxZFCzW9gwlbtOW44CDtYavM+y+72qD/Vq2l550kMF52DT8fOLJqQ==", + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/RubenVerborgh" + } + ], + "license": "MIT", + "engines": { + "node": ">=4.0" + }, + "peerDependenciesMeta": { + "debug": { + "optional": true + } + } + }, + "node_modules/for-each": { + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.3.tgz", + "integrity": "sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-callable": "^1.1.3" + } + }, + "node_modules/foreground-child": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.3.0.tgz", + "integrity": "sha512-Ld2g8rrAyMYFXBhEqMz8ZAHBi4J4uS1i/CxGMDnjyFWddMXLVcDp051DZfu+t7+ab7Wv6SMqpWmyFIj5UbfFvg==", + "dev": true, + "license": "ISC", + "dependencies": { + "cross-spawn": "^7.0.0", + "signal-exit": "^4.0.1" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/form-data": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.1.tgz", + "integrity": "sha512-tzN8e4TX8+kkxGPK8D5u0FNmjPUjw3lwC9lSLxxoB/+GtsJG91CO8bSWy73APlgAZzZbXEYZJuxjkHH2w+Ezhw==", + "license": "MIT", + "dependencies": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "mime-types": "^2.1.12" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", + "dev": true, + "license": "ISC" + }, + "node_modules/function-bind": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", + "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/function.prototype.name": { + "version": "1.1.8", + "resolved": "https://registry.npmjs.org/function.prototype.name/-/function.prototype.name-1.1.8.tgz", + "integrity": "sha512-e5iwyodOHhbMr/yNrc7fDYG4qlbIvI5gajyzPnb5TCwyhjApznQh1BMFou9b30SevY43gCJKXycoCBjMbsuW0Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.8", + "call-bound": "^1.0.3", + "define-properties": "^1.2.1", + "functions-have-names": "^1.2.3", + "hasown": "^2.0.2", + "is-callable": "^1.2.7" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/functions-have-names": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/functions-have-names/-/functions-have-names-1.2.3.tgz", + "integrity": "sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/get-intrinsic": { + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.7.tgz", + "integrity": "sha512-VW6Pxhsrk0KAOqs3WEd0klDiF/+V7gQOpAvY1jVU/LHmaD/kQO4523aiJuikX/QAKYiW6x8Jh+RJej1almdtCA==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.1", + "es-define-property": "^1.0.1", + "es-errors": "^1.3.0", + "es-object-atoms": "^1.0.0", + "function-bind": "^1.1.2", + "get-proto": "^1.0.0", + "gopd": "^1.2.0", + "has-symbols": "^1.1.0", + "hasown": "^2.0.2", + "math-intrinsics": "^1.1.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/get-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz", + "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==", + "dev": true, + "license": "MIT", + "dependencies": { + "dunder-proto": "^1.0.1", + "es-object-atoms": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/get-symbol-description": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/get-symbol-description/-/get-symbol-description-1.1.0.tgz", + "integrity": "sha512-w9UMqWwJxHNOvoNzSJ2oPF5wvYcvP7jUvYzhp67yEhTi17ZDBBC1z9pTdGuzjD+EFIqLSYRweZjqfiPzQ06Ebg==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.3", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.6" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/get-tsconfig": { + "version": "4.8.1", + "resolved": "https://registry.npmjs.org/get-tsconfig/-/get-tsconfig-4.8.1.tgz", + "integrity": "sha512-k9PN+cFBmaLWtVz29SkUoqU5O0slLuHJXt/2P+tMVFT+phsSGXGkp9t3rQIqdz0e+06EHNGs3oM6ZX1s2zHxRg==", + "dev": true, + "license": "MIT", + "dependencies": { + "resolve-pkg-maps": "^1.0.0" + }, + "funding": { + "url": "https://github.com/privatenumber/get-tsconfig?sponsor=1" + } + }, + "node_modules/glob": { + "version": "10.3.10", + "resolved": "https://registry.npmjs.org/glob/-/glob-10.3.10.tgz", + "integrity": "sha512-fa46+tv1Ak0UPK1TOy/pZrIybNNt4HCv7SDzwyfiOZkvZLEbjsZkJBPtDHVshZjbecAoAGSC20MjLDG/qr679g==", + "dev": true, + "license": "ISC", + "dependencies": { + "foreground-child": "^3.1.0", + "jackspeak": "^2.3.5", + "minimatch": "^9.0.1", + "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0", + "path-scurry": "^1.10.1" + }, + "bin": { + "glob": "dist/esm/bin.mjs" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/glob-parent": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", + "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", + "dev": true, + "license": "ISC", + "dependencies": { + "is-glob": "^4.0.3" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/glob/node_modules/brace-expansion": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", + "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/glob/node_modules/minimatch": { + "version": "9.0.5", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", + "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", + "dev": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/globals": { + "version": "11.12.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", + "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/globalthis": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/globalthis/-/globalthis-1.0.4.tgz", + "integrity": "sha512-DpLKbNU4WylpxJykQujfCcwYWiV/Jhm50Goo0wrVILAv5jOr9d+H+UR3PhSCD2rCCEIg0uc+G+muBTwD54JhDQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "define-properties": "^1.2.1", + "gopd": "^1.0.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/gopd": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz", + "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/graceful-fs": { + "version": "4.2.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", + "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", + "license": "ISC" + }, + "node_modules/graphemer": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz", + "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==", + "dev": true, + "license": "MIT" + }, + "node_modules/has-bigints": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.1.0.tgz", + "integrity": "sha512-R3pbpkcIqv2Pm3dUwgjclDRVmWpTJW2DcMzcIhEXEx1oh/CEMObMm3KLmRJOdvhM7o4uQBnwr8pzRK2sJWIqfg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/has-property-descriptors": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz", + "integrity": "sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==", + "dev": true, + "license": "MIT", + "dependencies": { + "es-define-property": "^1.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-proto": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.2.0.tgz", + "integrity": "sha512-KIL7eQPfHQRC8+XluaIw7BHUwwqL19bQn4hzNgdr+1wXoU0KKj6rufu47lhY7KbJR2C6T6+PfyN0Ea7wkSS+qQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "dunder-proto": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-symbols": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz", + "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-tostringtag": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz", + "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==", + "dev": true, + "license": "MIT", + "dependencies": { + "has-symbols": "^1.0.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/hasown": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", + "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", + "license": "MIT", + "dependencies": { + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/hoist-non-react-statics": { + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/hoist-non-react-statics/-/hoist-non-react-statics-3.3.2.tgz", + "integrity": "sha512-/gGivxi8JPKWNm/W0jSmzcMPpfpPLc3dY/6GxhX2hQ9iGj3aDfklV4ET7NjKpSinLpJ5vafa9iiGIEZg10SfBw==", + "license": "BSD-3-Clause", + "dependencies": { + "react-is": "^16.7.0" + } + }, + "node_modules/hoist-non-react-statics/node_modules/react-is": { + "version": "16.13.1", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz", + "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==", + "license": "MIT" + }, + "node_modules/ignore": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz", + "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 4" + } + }, + "node_modules/import-fresh": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", + "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", + "license": "MIT", + "dependencies": { + "parent-module": "^1.0.0", + "resolve-from": "^4.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/imurmurhash": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.8.19" + } + }, + "node_modules/inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", + "deprecated": "This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.", + "dev": true, + "license": "ISC", + "dependencies": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "node_modules/inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", + "dev": true, + "license": "ISC" + }, + "node_modules/internal-slot": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.1.0.tgz", + "integrity": "sha512-4gd7VpWNQNB4UKKCFFVcp1AVv+FMOgs9NKzjHKusc8jTMhd5eL1NqQqOpE0KzMds804/yHlglp3uxgluOqAPLw==", + "dev": true, + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "hasown": "^2.0.2", + "side-channel": "^1.1.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/is-array-buffer": { + "version": "3.0.5", + "resolved": "https://registry.npmjs.org/is-array-buffer/-/is-array-buffer-3.0.5.tgz", + "integrity": "sha512-DDfANUiiG2wC1qawP66qlTugJeL5HyzMpfr8lLK+jMQirGzNod0B12cFB/9q838Ru27sBwfw78/rdoU7RERz6A==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.8", + "call-bound": "^1.0.3", + "get-intrinsic": "^1.2.6" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-arrayish": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", + "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==", + "license": "MIT" + }, + "node_modules/is-async-function": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-async-function/-/is-async-function-2.1.0.tgz", + "integrity": "sha512-GExz9MtyhlZyXYLxzlJRj5WUCE661zhDa1Yna52CN57AJsymh+DvXXjyveSioqSRdxvUrdKdvqB1b5cVKsNpWQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.3", + "get-proto": "^1.0.1", + "has-tostringtag": "^1.0.2", + "safe-regex-test": "^1.1.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-bigint": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-bigint/-/is-bigint-1.1.0.tgz", + "integrity": "sha512-n4ZT37wG78iz03xPRKJrHTdZbe3IicyucEtdRsV5yglwc3GyUfbAfpSeD0FJ41NbUNSt5wbhqfp1fS+BgnvDFQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "has-bigints": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-boolean-object": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.2.1.tgz", + "integrity": "sha512-l9qO6eFlUETHtuihLcYOaLKByJ1f+N4kthcU9YjHy3N+B3hWv0y/2Nd0mu/7lTFnRQHTrSdXF50HQ3bl5fEnng==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.2", + "has-tostringtag": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-bun-module": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/is-bun-module/-/is-bun-module-1.3.0.tgz", + "integrity": "sha512-DgXeu5UWI0IsMQundYb5UAOzm6G2eVnarJ0byP6Tm55iZNKceD59LNPA2L4VvsScTtHcw0yEkVwSf7PC+QoLSA==", + "dev": true, + "license": "MIT", + "dependencies": { + "semver": "^7.6.3" + } + }, + "node_modules/is-callable": { + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz", + "integrity": "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-core-module": { + "version": "2.16.1", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.16.1.tgz", + "integrity": "sha512-UfoeMA6fIJ8wTYFEUjelnaGI67v6+N7qXJEvQuIGa99l4xsCruSYOVSQ0uPANn4dAzm8lkYPaKLrrijLq7x23w==", + "license": "MIT", + "dependencies": { + "hasown": "^2.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-data-view": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-data-view/-/is-data-view-1.0.2.tgz", + "integrity": "sha512-RKtWF8pGmS87i2D6gqQu/l7EYRlVdfzemCJN/P3UOs//x1QE7mfhvzHIApBTRf7axvT6DMGwSwBXYCT0nfB9xw==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.2", + "get-intrinsic": "^1.2.6", + "is-typed-array": "^1.1.13" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-date-object": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.1.0.tgz", + "integrity": "sha512-PwwhEakHVKTdRNVOw+/Gyh0+MzlCl4R6qKvkhuvLtPMggI1WAHt9sOwZxQLSGpUaDnrdyDsomoRgNnCfKNSXXg==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.2", + "has-tostringtag": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-finalizationregistry": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/is-finalizationregistry/-/is-finalizationregistry-1.1.1.tgz", + "integrity": "sha512-1pC6N8qWJbWoPtEjgcL2xyhQOP491EQjeUo3qTKcmV8YSDDJrOepfG8pcC7h/QgnQHYSv0mJ3Z/ZWxmatVrysg==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/is-generator-function": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-generator-function/-/is-generator-function-1.1.0.tgz", + "integrity": "sha512-nPUB5km40q9e8UfN/Zc24eLlzdSf9OfKByBw9CIdw4H1giPMeA0OIJvbchsCu4npfI2QcMVBsGEBHKZ7wLTWmQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.3", + "get-proto": "^1.0.0", + "has-tostringtag": "^1.0.2", + "safe-regex-test": "^1.1.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-glob": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", + "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-extglob": "^2.1.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-map": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/is-map/-/is-map-2.0.3.tgz", + "integrity": "sha512-1Qed0/Hr2m+YqxnM09CjA2d/i6YZNfF6R2oRAOj36eUdS6qIV/huPJNSEpKbupewFs+ZsJlxsjjPbc0/afW6Lw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.12.0" + } + }, + "node_modules/is-number-object": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/is-number-object/-/is-number-object-1.1.1.tgz", + "integrity": "sha512-lZhclumE1G6VYD8VHe35wFaIif+CTy5SJIi5+3y4psDgWu4wPDoBhF8NxUOinEc7pHgiTsT6MaBb92rKhhD+Xw==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.3", + "has-tostringtag": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-path-inside": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz", + "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/is-regex": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.2.1.tgz", + "integrity": "sha512-MjYsKHO5O7mCsmRGxWcLWheFqN9DJ/2TmngvjKXihe6efViPqc274+Fx/4fYj/r03+ESvBdTXK0V6tA3rgez1g==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.2", + "gopd": "^1.2.0", + "has-tostringtag": "^1.0.2", + "hasown": "^2.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-set": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/is-set/-/is-set-2.0.3.tgz", + "integrity": "sha512-iPAjerrse27/ygGLxw+EBR9agv9Y6uLeYVJMu+QNCoouJ1/1ri0mGrcWpfCqFZuzzx3WjtwxG098X+n4OuRkPg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-shared-array-buffer": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.4.tgz", + "integrity": "sha512-ISWac8drv4ZGfwKl5slpHG9OwPNty4jOWPRIhBpxOoD+hqITiwuipOQ2bNthAzwA3B4fIjO4Nln74N0S9byq8A==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-string": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.1.1.tgz", + "integrity": "sha512-BtEeSsoaQjlSPBemMQIrY1MY0uM6vnS1g5fmufYOtnxLGUZM2178PKbhsk7Ffv58IX+ZtcvoGwccYsh0PglkAA==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.3", + "has-tostringtag": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-symbol": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.1.1.tgz", + "integrity": "sha512-9gGx6GTtCQM73BgmHQXfDmLtfjjTUDSyoxTCbp5WtoixAhfgsDirWIcVQ/IHpvI5Vgd5i/J5F7B9cN/WlVbC/w==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.2", + "has-symbols": "^1.1.0", + "safe-regex-test": "^1.1.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-typed-array": { + "version": "1.1.15", + "resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.15.tgz", + "integrity": "sha512-p3EcsicXjit7SaskXHs1hA91QxgTw46Fv6EFKKGS5DRFLD8yKnohjF3hxoju94b/OcMZoQukzpPpBE9uLVKzgQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "which-typed-array": "^1.1.16" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-weakmap": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/is-weakmap/-/is-weakmap-2.0.2.tgz", + "integrity": "sha512-K5pXYOm9wqY1RgjpL3YTkF39tni1XajUIkawTLUo9EZEVUFga5gSQJF8nNS7ZwJQ02y+1YCNYcMh+HIf1ZqE+w==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-weakref": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-weakref/-/is-weakref-1.1.0.tgz", + "integrity": "sha512-SXM8Nwyys6nT5WP6pltOwKytLV7FqQ4UiibxVmW+EIosHcmCqkkjViTb5SNssDlkCiEYRP1/pdWUKVvZBmsR2Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-weakset": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/is-weakset/-/is-weakset-2.0.4.tgz", + "integrity": "sha512-mfcwb6IzQyOKTs84CQMrOwW4gQcaTOAWJ0zzJCl2WSPDrWk/OzDaImWFH3djXhb24g4eudZfLRozAvPGw4d9hQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.3", + "get-intrinsic": "^1.2.6" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/isarray": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz", + "integrity": "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==", + "dev": true, + "license": "MIT" + }, + "node_modules/isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", + "dev": true, + "license": "ISC" + }, + "node_modules/iterator.prototype": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/iterator.prototype/-/iterator.prototype-1.1.5.tgz", + "integrity": "sha512-H0dkQoCa3b2VEeKQBOxFph+JAbcrQdE7KC0UkqwpLmv2EC4P41QXP+rqo9wYodACiG5/WM5s9oDApTU8utwj9g==", + "dev": true, + "license": "MIT", + "dependencies": { + "define-data-property": "^1.1.4", + "es-object-atoms": "^1.0.0", + "get-intrinsic": "^1.2.6", + "get-proto": "^1.0.0", + "has-symbols": "^1.1.0", + "set-function-name": "^2.0.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/jackspeak": { + "version": "2.3.6", + "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-2.3.6.tgz", + "integrity": "sha512-N3yCS/NegsOBokc8GAdM8UcmfsKiSS8cipheD/nivzr700H+nsMOxJjQnvwOcRYVuFkdH0wGUvW2WbXGmrZGbQ==", + "dev": true, + "license": "BlueOak-1.0.0", + "dependencies": { + "@isaacs/cliui": "^8.0.2" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + }, + "optionalDependencies": { + "@pkgjs/parseargs": "^0.11.0" + } + }, + "node_modules/js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "license": "MIT" + }, + "node_modules/js-yaml": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", + "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", + "dev": true, + "license": "MIT", + "dependencies": { + "argparse": "^2.0.1" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/jsesc": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz", + "integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==", + "license": "MIT", + "bin": { + "jsesc": "bin/jsesc" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/json-buffer": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", + "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/json-parse-even-better-errors": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", + "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==", + "license": "MIT" + }, + "node_modules/json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true, + "license": "MIT" + }, + "node_modules/json-stable-stringify-without-jsonify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", + "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", + "dev": true, + "license": "MIT" + }, + "node_modules/json5": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz", + "integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==", + "dev": true, + "license": "MIT", + "dependencies": { + "minimist": "^1.2.0" + }, + "bin": { + "json5": "lib/cli.js" + } + }, + "node_modules/jsx-ast-utils": { + "version": "3.3.5", + "resolved": "https://registry.npmjs.org/jsx-ast-utils/-/jsx-ast-utils-3.3.5.tgz", + "integrity": "sha512-ZZow9HBI5O6EPgSJLUb8n2NKgmVWTwCvHGwFuJlMjvLFqlGG6pjirPhtdsseaLZjSibD8eegzmYpUZwoIlj2cQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "array-includes": "^3.1.6", + "array.prototype.flat": "^1.3.1", + "object.assign": "^4.1.4", + "object.values": "^1.1.6" + }, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/keyv": { + "version": "4.5.4", + "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz", + "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==", + "dev": true, + "license": "MIT", + "dependencies": { + "json-buffer": "3.0.1" + } + }, + "node_modules/language-subtag-registry": { + "version": "0.3.23", + "resolved": "https://registry.npmjs.org/language-subtag-registry/-/language-subtag-registry-0.3.23.tgz", + "integrity": "sha512-0K65Lea881pHotoGEa5gDlMxt3pctLi2RplBb7Ezh4rRdLEOtgi7n4EwK9lamnUCkKBqaeKRVebTq6BAxSkpXQ==", + "dev": true, + "license": "CC0-1.0" + }, + "node_modules/language-tags": { + "version": "1.0.9", + "resolved": "https://registry.npmjs.org/language-tags/-/language-tags-1.0.9.tgz", + "integrity": "sha512-MbjN408fEndfiQXbFQ1vnd+1NoLDsnQW41410oQBXiyXDMYH5z505juWa4KUE1LqxRC7DgOgZDbKLxHIwm27hA==", + "dev": true, + "license": "MIT", + "dependencies": { + "language-subtag-registry": "^0.3.20" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/levn": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", + "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "prelude-ls": "^1.2.1", + "type-check": "~0.4.0" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/lines-and-columns": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz", + "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==", + "license": "MIT" + }, + "node_modules/locate-path": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", + "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", + "dev": true, + "license": "MIT", + "dependencies": { + "p-locate": "^5.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/lodash.merge": { + "version": "4.6.2", + "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", + "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/loose-envify": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", + "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==", + "license": "MIT", + "dependencies": { + "js-tokens": "^3.0.0 || ^4.0.0" + }, + "bin": { + "loose-envify": "cli.js" + } + }, + "node_modules/lru-cache": { + "version": "10.4.3", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.4.3.tgz", + "integrity": "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==", + "dev": true, + "license": "ISC" + }, + "node_modules/math-intrinsics": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz", + "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/merge2": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", + "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 8" + } + }, + "node_modules/micromatch": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz", + "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==", + "dev": true, + "license": "MIT", + "dependencies": { + "braces": "^3.0.3", + "picomatch": "^2.3.1" + }, + "engines": { + "node": ">=8.6" + } + }, + "node_modules/mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime-types": { + "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "license": "MIT", + "dependencies": { + "mime-db": "1.52.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/minimist": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", + "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/minipass": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.2.tgz", + "integrity": "sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==", + "dev": true, + "license": "ISC", + "engines": { + "node": ">=16 || 14 >=14.17" + } + }, + "node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "license": "MIT" + }, + "node_modules/nanoid": { + "version": "3.3.8", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.8.tgz", + "integrity": "sha512-WNLf5Sd8oZxOm+TzppcYk8gVOgP+l58xNy58D0nbUnOxOWRWvlcCV4kUF7ltmI6PsrLl/BgKEyS4mqsGChFN0w==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "bin": { + "nanoid": "bin/nanoid.cjs" + }, + "engines": { + "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" + } + }, + "node_modules/natural-compare": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", + "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", + "dev": true, + "license": "MIT" + }, + "node_modules/next": { + "version": "14.2.22", + "resolved": "https://registry.npmjs.org/next/-/next-14.2.22.tgz", + "integrity": "sha512-Ps2caobQ9hlEhscLPiPm3J3SYhfwfpMqzsoCMZGWxt9jBRK9hoBZj2A37i8joKhsyth2EuVKDVJCTF5/H4iEDw==", + "license": "MIT", + "dependencies": { + "@next/env": "14.2.22", + "@swc/helpers": "0.5.5", + "busboy": "1.6.0", + "caniuse-lite": "^1.0.30001579", + "graceful-fs": "^4.2.11", + "postcss": "8.4.31", + "styled-jsx": "5.1.1" + }, + "bin": { + "next": "dist/bin/next" + }, + "engines": { + "node": ">=18.17.0" + }, + "optionalDependencies": { + "@next/swc-darwin-arm64": "14.2.22", + "@next/swc-darwin-x64": "14.2.22", + "@next/swc-linux-arm64-gnu": "14.2.22", + "@next/swc-linux-arm64-musl": "14.2.22", + "@next/swc-linux-x64-gnu": "14.2.22", + "@next/swc-linux-x64-musl": "14.2.22", + "@next/swc-win32-arm64-msvc": "14.2.22", + "@next/swc-win32-ia32-msvc": "14.2.22", + "@next/swc-win32-x64-msvc": "14.2.22" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.1.0", + "@playwright/test": "^1.41.2", + "react": "^18.2.0", + "react-dom": "^18.2.0", + "sass": "^1.3.0" + }, + "peerDependenciesMeta": { + "@opentelemetry/api": { + "optional": true + }, + "@playwright/test": { + "optional": true + }, + "sass": { + "optional": true + } + } + }, + "node_modules/object-assign": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", + "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object-inspect": { + "version": "1.13.3", + "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.3.tgz", + "integrity": "sha512-kDCGIbxkDSXE3euJZZXzc6to7fCrKHNI/hSRQnRuQ+BWjFNzZwiFF8fj/6o2t2G9/jTj8PSIYTfCLelLZEeRpA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/object-keys": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", + "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/object.assign": { + "version": "4.1.7", + "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.7.tgz", + "integrity": "sha512-nK28WOo+QIjBkDduTINE4JkF/UJJKyf2EJxvJKfblDpyg0Q+pkOHNTL0Qwy6NP6FhE/EnzV73BxxqcJaXY9anw==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.8", + "call-bound": "^1.0.3", + "define-properties": "^1.2.1", + "es-object-atoms": "^1.0.0", + "has-symbols": "^1.1.0", + "object-keys": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/object.entries": { + "version": "1.1.8", + "resolved": "https://registry.npmjs.org/object.entries/-/object.entries-1.1.8.tgz", + "integrity": "sha512-cmopxi8VwRIAw/fkijJohSfpef5PdN0pMQJN6VC/ZKvn0LIknWD8KtgY6KlQdEc4tIjcQ3HxSMmnvtzIscdaYQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.7", + "define-properties": "^1.2.1", + "es-object-atoms": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/object.fromentries": { + "version": "2.0.8", + "resolved": "https://registry.npmjs.org/object.fromentries/-/object.fromentries-2.0.8.tgz", + "integrity": "sha512-k6E21FzySsSK5a21KRADBd/NGneRegFO5pLHfdQLpRDETUNJueLXs3WCzyQ3tFRDYgbq3KHGXfTbi2bs8WQ6rQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.7", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.2", + "es-object-atoms": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/object.groupby": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/object.groupby/-/object.groupby-1.0.3.tgz", + "integrity": "sha512-+Lhy3TQTuzXI5hevh8sBGqbmurHbbIjAi0Z4S63nthVLmLxfbj4T54a4CfZrXIrt9iP4mVAPYMo/v99taj3wjQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.7", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/object.values": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/object.values/-/object.values-1.2.1.tgz", + "integrity": "sha512-gXah6aZrcUxjWg2zR2MwouP2eHlCBzdV4pygudehaKXSGW4v2AsRQUK+lwwXhii6KFZcunEnmSUoYp5CXibxtA==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.8", + "call-bound": "^1.0.3", + "define-properties": "^1.2.1", + "es-object-atoms": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", + "dev": true, + "license": "ISC", + "dependencies": { + "wrappy": "1" + } + }, + "node_modules/optionator": { + "version": "0.9.4", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz", + "integrity": "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==", + "dev": true, + "license": "MIT", + "dependencies": { + "deep-is": "^0.1.3", + "fast-levenshtein": "^2.0.6", + "levn": "^0.4.1", + "prelude-ls": "^1.2.1", + "type-check": "^0.4.0", + "word-wrap": "^1.2.5" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/own-keys": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/own-keys/-/own-keys-1.0.1.tgz", + "integrity": "sha512-qFOyK5PjiWZd+QQIh+1jhdb9LpxTF0qs7Pm8o5QHYZ0M3vKqSqzsZaEB6oWlxZ+q2sJBMI/Ktgd2N5ZwQoRHfg==", + "dev": true, + "license": "MIT", + "dependencies": { + "get-intrinsic": "^1.2.6", + "object-keys": "^1.1.1", + "safe-push-apply": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/p-limit": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "yocto-queue": "^0.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-locate": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", + "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", + "dev": true, + "license": "MIT", + "dependencies": { + "p-limit": "^3.0.2" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/parent-module": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", + "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", + "license": "MIT", + "dependencies": { + "callsites": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/parse-json": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz", + "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==", + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.0.0", + "error-ex": "^1.3.1", + "json-parse-even-better-errors": "^2.3.0", + "lines-and-columns": "^1.1.6" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/path-is-absolute": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/path-parse": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", + "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", + "license": "MIT" + }, + "node_modules/path-scurry": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-1.11.1.tgz", + "integrity": "sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==", + "dev": true, + "license": "BlueOak-1.0.0", + "dependencies": { + "lru-cache": "^10.2.0", + "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0" + }, + "engines": { + "node": ">=16 || 14 >=14.18" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/path-type": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", + "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/picocolors": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", + "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", + "license": "ISC" + }, + "node_modules/picomatch": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/possible-typed-array-names": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/possible-typed-array-names/-/possible-typed-array-names-1.0.0.tgz", + "integrity": "sha512-d7Uw+eZoloe0EHDIYoe+bQ5WXnGMOpmiZFTuMWCwpjzzkL2nTjcKiAk4hh8TjnGye2TwWOk3UXucZ+3rbmBa8Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/postcss": { + "version": "8.4.31", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.31.tgz", + "integrity": "sha512-PS08Iboia9mts/2ygV3eLpY5ghnUcfLV/EXTOW1E2qYxJKGGBUtNjN76FYHnMs36RmARn41bC0AZmn+rR0OVpQ==", + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/postcss" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "nanoid": "^3.3.6", + "picocolors": "^1.0.0", + "source-map-js": "^1.0.2" + }, + "engines": { + "node": "^10 || ^12 || >=14" + } + }, + "node_modules/prelude-ls": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", + "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/prop-types": { + "version": "15.8.1", + "resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.8.1.tgz", + "integrity": "sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==", + "license": "MIT", + "dependencies": { + "loose-envify": "^1.4.0", + "object-assign": "^4.1.1", + "react-is": "^16.13.1" + } + }, + "node_modules/prop-types/node_modules/react-is": { + "version": "16.13.1", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz", + "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==", + "license": "MIT" + }, + "node_modules/proxy-from-env": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz", + "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==", + "license": "MIT" + }, + "node_modules/punycode": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", + "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/queue-microtask": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", + "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT" + }, + "node_modules/react": { + "version": "18.3.1", + "resolved": "https://registry.npmjs.org/react/-/react-18.3.1.tgz", + "integrity": "sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ==", + "license": "MIT", + "dependencies": { + "loose-envify": "^1.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/react-dom": { + "version": "18.3.1", + "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-18.3.1.tgz", + "integrity": "sha512-5m4nQKp+rZRb09LNH59GM4BxTh9251/ylbKIbpe7TpGxfJ+9kv6BLkLBXIjjspbgbnIBNqlI23tRnTWT0snUIw==", + "license": "MIT", + "dependencies": { + "loose-envify": "^1.1.0", + "scheduler": "^0.23.2" + }, + "peerDependencies": { + "react": "^18.3.1" + } + }, + "node_modules/react-is": { + "version": "19.0.0", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-19.0.0.tgz", + "integrity": "sha512-H91OHcwjZsbq3ClIDHMzBShc1rotbfACdWENsmEf0IFvZ3FgGPtdHMcsv45bQ1hAbgdfiA8SnxTKfDS+x/8m2g==", + "license": "MIT" + }, + "node_modules/react-transition-group": { + "version": "4.4.5", + "resolved": "https://registry.npmjs.org/react-transition-group/-/react-transition-group-4.4.5.tgz", + "integrity": "sha512-pZcd1MCJoiKiBR2NRxeCRg13uCXbydPnmB4EOeRrY7480qNWO8IIgQG6zlDkm6uRMsURXPuKq0GWtiM59a5Q6g==", + "license": "BSD-3-Clause", + "dependencies": { + "@babel/runtime": "^7.5.5", + "dom-helpers": "^5.0.1", + "loose-envify": "^1.4.0", + "prop-types": "^15.6.2" + }, + "peerDependencies": { + "react": ">=16.6.0", + "react-dom": ">=16.6.0" + } + }, + "node_modules/reflect.getprototypeof": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/reflect.getprototypeof/-/reflect.getprototypeof-1.0.10.tgz", + "integrity": "sha512-00o4I+DVrefhv+nX0ulyi3biSHCPDe+yLv5o/p6d/UVlirijB8E16FtfwSAi4g3tcqrQ4lRAqQSoFEZJehYEcw==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.8", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.9", + "es-errors": "^1.3.0", + "es-object-atoms": "^1.0.0", + "get-intrinsic": "^1.2.7", + "get-proto": "^1.0.1", + "which-builtin-type": "^1.2.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/regenerator-runtime": { + "version": "0.14.1", + "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.14.1.tgz", + "integrity": "sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw==", + "license": "MIT" + }, + "node_modules/regexp.prototype.flags": { + "version": "1.5.4", + "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.5.4.tgz", + "integrity": "sha512-dYqgNSZbDwkaJ2ceRd9ojCGjBq+mOm9LmtXnAnEGyHhN/5R7iDW2TRw3h+o/jCFxus3P2LfWIIiwowAjANm7IA==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.8", + "define-properties": "^1.2.1", + "es-errors": "^1.3.0", + "get-proto": "^1.0.1", + "gopd": "^1.2.0", + "set-function-name": "^2.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/resolve": { + "version": "1.22.10", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.10.tgz", + "integrity": "sha512-NPRy+/ncIMeDlTAsuqwKIiferiawhefFJtkNSW0qZJEqMEb+qBt/77B/jGeeek+F0uOeN05CDa6HXbbIgtVX4w==", + "license": "MIT", + "dependencies": { + "is-core-module": "^2.16.0", + "path-parse": "^1.0.7", + "supports-preserve-symlinks-flag": "^1.0.0" + }, + "bin": { + "resolve": "bin/resolve" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/resolve-from": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", + "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/resolve-pkg-maps": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/resolve-pkg-maps/-/resolve-pkg-maps-1.0.0.tgz", + "integrity": "sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://github.com/privatenumber/resolve-pkg-maps?sponsor=1" + } + }, + "node_modules/reusify": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", + "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", + "dev": true, + "license": "MIT", + "engines": { + "iojs": ">=1.0.0", + "node": ">=0.10.0" + } + }, + "node_modules/rimraf": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", + "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", + "deprecated": "Rimraf versions prior to v4 are no longer supported", + "dev": true, + "license": "ISC", + "dependencies": { + "glob": "^7.1.3" + }, + "bin": { + "rimraf": "bin.js" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/rimraf/node_modules/glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "deprecated": "Glob versions prior to v9 are no longer supported", + "dev": true, + "license": "ISC", + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/run-parallel": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", + "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT", + "dependencies": { + "queue-microtask": "^1.2.2" + } + }, + "node_modules/safe-array-concat": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/safe-array-concat/-/safe-array-concat-1.1.3.tgz", + "integrity": "sha512-AURm5f0jYEOydBj7VQlVvDrjeFgthDdEF5H1dP+6mNpoXOMo1quQqJ4wvJDyRZ9+pO3kGWoOdmV08cSv2aJV6Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.8", + "call-bound": "^1.0.2", + "get-intrinsic": "^1.2.6", + "has-symbols": "^1.1.0", + "isarray": "^2.0.5" + }, + "engines": { + "node": ">=0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/safe-push-apply": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/safe-push-apply/-/safe-push-apply-1.0.0.tgz", + "integrity": "sha512-iKE9w/Z7xCzUMIZqdBsp6pEQvwuEebH4vdpjcDWnyzaI6yl6O9FHvVpmGelvEHNsoY6wGblkxR6Zty/h00WiSA==", + "dev": true, + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "isarray": "^2.0.5" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/safe-regex-test": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/safe-regex-test/-/safe-regex-test-1.1.0.tgz", + "integrity": "sha512-x/+Cz4YrimQxQccJf5mKEbIa1NzeCRNI5Ecl/ekmlYaampdNLPalVyIcCZNNH3MvmqBugV5TMYZXv0ljslUlaw==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.2", + "es-errors": "^1.3.0", + "is-regex": "^1.2.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/scheduler": { + "version": "0.23.2", + "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.23.2.tgz", + "integrity": "sha512-UOShsPwz7NrMUqhR6t0hWjFduvOzbtv7toDH1/hIrfRNIDBnnBWd0CwJTGvTpngVlmwGCdP9/Zl/tVrDqcuYzQ==", + "license": "MIT", + "dependencies": { + "loose-envify": "^1.1.0" + } + }, + "node_modules/semver": { + "version": "7.6.3", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz", + "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/set-function-length": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.2.tgz", + "integrity": "sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==", + "dev": true, + "license": "MIT", + "dependencies": { + "define-data-property": "^1.1.4", + "es-errors": "^1.3.0", + "function-bind": "^1.1.2", + "get-intrinsic": "^1.2.4", + "gopd": "^1.0.1", + "has-property-descriptors": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/set-function-name": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/set-function-name/-/set-function-name-2.0.2.tgz", + "integrity": "sha512-7PGFlmtwsEADb0WYyvCMa1t+yke6daIG4Wirafur5kcf+MhUnPms1UeR0CKQdTZD81yESwMHbtn+TR+dMviakQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "define-data-property": "^1.1.4", + "es-errors": "^1.3.0", + "functions-have-names": "^1.2.3", + "has-property-descriptors": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/set-proto": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/set-proto/-/set-proto-1.0.0.tgz", + "integrity": "sha512-RJRdvCo6IAnPdsvP/7m6bsQqNnn1FCBX5ZNtFL98MmFF/4xAIJTIg1YbHW5DC2W5SKZanrC6i4HsJqlajw/dZw==", + "dev": true, + "license": "MIT", + "dependencies": { + "dunder-proto": "^1.0.1", + "es-errors": "^1.3.0", + "es-object-atoms": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "dev": true, + "license": "MIT", + "dependencies": { + "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/side-channel": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.0.tgz", + "integrity": "sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==", + "dev": true, + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "object-inspect": "^1.13.3", + "side-channel-list": "^1.0.0", + "side-channel-map": "^1.0.1", + "side-channel-weakmap": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/side-channel-list": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.0.tgz", + "integrity": "sha512-FCLHtRD/gnpCiCHEiJLOwdmFP+wzCmDEkc9y7NsYxeF4u7Btsn1ZuwgwJGxImImHicJArLP4R0yX4c2KCrMrTA==", + "dev": true, + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "object-inspect": "^1.13.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/side-channel-map": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/side-channel-map/-/side-channel-map-1.0.1.tgz", + "integrity": "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.2", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.5", + "object-inspect": "^1.13.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/side-channel-weakmap": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz", + "integrity": "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.2", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.5", + "object-inspect": "^1.13.3", + "side-channel-map": "^1.0.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/signal-exit": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", + "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", + "dev": true, + "license": "ISC", + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/source-map": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", + "integrity": "sha512-LbrmJOMUSdEVxIKvdcJzQC+nQhe8FUZQTXQy6+I75skNgn3OoQ0DZA8YnFa7gp8tqtL3KPf1kmo0R5DoApeSGQ==", + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/source-map-js": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz", + "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==", + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/stable-hash": { + "version": "0.0.4", + "resolved": "https://registry.npmjs.org/stable-hash/-/stable-hash-0.0.4.tgz", + "integrity": "sha512-LjdcbuBeLcdETCrPn9i8AYAZ1eCtu4ECAWtP7UleOiZ9LzVxRzzUZEoZ8zB24nhkQnDWyET0I+3sWokSDS3E7g==", + "dev": true, + "license": "MIT" + }, + "node_modules/streamsearch": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/streamsearch/-/streamsearch-1.1.0.tgz", + "integrity": "sha512-Mcc5wHehp9aXz1ax6bZUyY5afg9u2rv5cqQI3mRrYkGC8rW2hM02jWuwjtL++LS5qinSyhj2QfLyNsuc+VsExg==", + "engines": { + "node": ">=10.0.0" + } + }, + "node_modules/string-width": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz", + "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==", + "dev": true, + "license": "MIT", + "dependencies": { + "eastasianwidth": "^0.2.0", + "emoji-regex": "^9.2.2", + "strip-ansi": "^7.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/string-width-cjs": { + "name": "string-width", + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dev": true, + "license": "MIT", + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/string-width-cjs/node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "dev": true, + "license": "MIT" + }, + "node_modules/string-width/node_modules/ansi-regex": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.1.0.tgz", + "integrity": "sha512-7HSX4QQb4CspciLpVFwyRe79O3xsIZDDLER21kERQ71oaPodF8jL725AgJMFAYbooIqolJoRLuM81SpeUkpkvA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-regex?sponsor=1" + } + }, + "node_modules/string-width/node_modules/strip-ansi": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz", + "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-regex": "^6.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/strip-ansi?sponsor=1" + } + }, + "node_modules/string.prototype.includes": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/string.prototype.includes/-/string.prototype.includes-2.0.1.tgz", + "integrity": "sha512-o7+c9bW6zpAdJHTtujeePODAhkuicdAryFsfVKwA+wGw89wJ4GTY484WTucM9hLtDEOpOvI+aHnzqnC5lHp4Rg==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.7", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.3" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/string.prototype.matchall": { + "version": "4.0.12", + "resolved": "https://registry.npmjs.org/string.prototype.matchall/-/string.prototype.matchall-4.0.12.tgz", + "integrity": "sha512-6CC9uyBL+/48dYizRf7H7VAYCMCNTBeM78x/VTUe9bFEaxBepPJDa1Ow99LqI/1yF7kuy7Q3cQsYMrcjGUcskA==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.8", + "call-bound": "^1.0.3", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.6", + "es-errors": "^1.3.0", + "es-object-atoms": "^1.0.0", + "get-intrinsic": "^1.2.6", + "gopd": "^1.2.0", + "has-symbols": "^1.1.0", + "internal-slot": "^1.1.0", + "regexp.prototype.flags": "^1.5.3", + "set-function-name": "^2.0.2", + "side-channel": "^1.1.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/string.prototype.repeat": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/string.prototype.repeat/-/string.prototype.repeat-1.0.0.tgz", + "integrity": "sha512-0u/TldDbKD8bFCQ/4f5+mNRrXwZ8hg2w7ZR8wa16e8z9XpePWl3eGEcUD0OXpEH/VJH/2G3gjUtR3ZOiBe2S/w==", + "dev": true, + "license": "MIT", + "dependencies": { + "define-properties": "^1.1.3", + "es-abstract": "^1.17.5" + } + }, + "node_modules/string.prototype.trim": { + "version": "1.2.10", + "resolved": "https://registry.npmjs.org/string.prototype.trim/-/string.prototype.trim-1.2.10.tgz", + "integrity": "sha512-Rs66F0P/1kedk5lyYyH9uBzuiI/kNRmwJAR9quK6VOtIpZ2G+hMZd+HQbbv25MgCA6gEffoMZYxlTod4WcdrKA==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.8", + "call-bound": "^1.0.2", + "define-data-property": "^1.1.4", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.5", + "es-object-atoms": "^1.0.0", + "has-property-descriptors": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/string.prototype.trimend": { + "version": "1.0.9", + "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.9.tgz", + "integrity": "sha512-G7Ok5C6E/j4SGfyLCloXTrngQIQU3PWtXGst3yM7Bea9FRURf1S42ZHlZZtsNque2FN2PoUhfZXYLNWwEr4dLQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.8", + "call-bound": "^1.0.2", + "define-properties": "^1.2.1", + "es-object-atoms": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/string.prototype.trimstart": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.8.tgz", + "integrity": "sha512-UXSH262CSZY1tfu3G3Secr6uGLCFVPMhIqHjlgCUtCCcgihYc/xKs9djMTMUOb2j1mVSeU8EU6NWc/iQKU6Gfg==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.7", + "define-properties": "^1.2.1", + "es-object-atoms": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-ansi-cjs": { + "name": "strip-ansi", + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-bom": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", + "integrity": "sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/strip-json-comments": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", + "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/styled-jsx": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/styled-jsx/-/styled-jsx-5.1.1.tgz", + "integrity": "sha512-pW7uC1l4mBZ8ugbiZrcIsiIvVx1UmTfw7UkC3Um2tmfUq9Bhk8IiyEIPl6F8agHgjzku6j0xQEZbfA5uSgSaCw==", + "license": "MIT", + "dependencies": { + "client-only": "0.0.1" + }, + "engines": { + "node": ">= 12.0.0" + }, + "peerDependencies": { + "react": ">= 16.8.0 || 17.x.x || ^18.0.0-0" + }, + "peerDependenciesMeta": { + "@babel/core": { + "optional": true + }, + "babel-plugin-macros": { + "optional": true + } + } + }, + "node_modules/stylis": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/stylis/-/stylis-4.2.0.tgz", + "integrity": "sha512-Orov6g6BB1sDfYgzWfTHDOxamtX1bE/zo104Dh9e6fqJ3PooipYyfJ0pUmrZO2wAvO8YbEyeFrkV91XTsGMSrw==", + "license": "MIT" + }, + "node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/supports-preserve-symlinks-flag": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", + "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/tapable": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.2.1.tgz", + "integrity": "sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/text-table": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", + "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==", + "dev": true, + "license": "MIT" + }, + "node_modules/to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-number": "^7.0.0" + }, + "engines": { + "node": ">=8.0" + } + }, + "node_modules/ts-api-utils": { + "version": "1.4.3", + "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-1.4.3.tgz", + "integrity": "sha512-i3eMG77UTMD0hZhgRS562pv83RC6ukSAC2GMNWc+9dieh/+jDM5u5YG+NHX6VNDRHQcHwmsTHctP9LhbC3WxVw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=16" + }, + "peerDependencies": { + "typescript": ">=4.2.0" + } + }, + "node_modules/tsconfig-paths": { + "version": "3.15.0", + "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.15.0.tgz", + "integrity": "sha512-2Ac2RgzDe/cn48GvOe3M+o82pEFewD3UPbyoUHHdKasHwJKjds4fLXWf/Ux5kATBKN20oaFGu+jbElp1pos0mg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/json5": "^0.0.29", + "json5": "^1.0.2", + "minimist": "^1.2.6", + "strip-bom": "^3.0.0" + } + }, + "node_modules/tslib": { + "version": "2.8.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz", + "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==", + "license": "0BSD" + }, + "node_modules/type-check": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", + "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", + "dev": true, + "license": "MIT", + "dependencies": { + "prelude-ls": "^1.2.1" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/type-fest": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", + "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", + "dev": true, + "license": "(MIT OR CC0-1.0)", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/typed-array-buffer": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/typed-array-buffer/-/typed-array-buffer-1.0.3.tgz", + "integrity": "sha512-nAYYwfY3qnzX30IkA6AQZjVbtK6duGontcQm1WSG1MD94YLqK0515GNApXkoxKOWMusVssAHWLh9SeaoefYFGw==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.3", + "es-errors": "^1.3.0", + "is-typed-array": "^1.1.14" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/typed-array-byte-length": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/typed-array-byte-length/-/typed-array-byte-length-1.0.3.tgz", + "integrity": "sha512-BaXgOuIxz8n8pIq3e7Atg/7s+DpiYrxn4vdot3w9KbnBhcRQq6o3xemQdIfynqSeXeDrF32x+WvfzmOjPiY9lg==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.8", + "for-each": "^0.3.3", + "gopd": "^1.2.0", + "has-proto": "^1.2.0", + "is-typed-array": "^1.1.14" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/typed-array-byte-offset": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/typed-array-byte-offset/-/typed-array-byte-offset-1.0.4.tgz", + "integrity": "sha512-bTlAFB/FBYMcuX81gbL4OcpH5PmlFHqlCCpAl8AlEzMz5k53oNDvN8p1PNOWLEmI2x4orp3raOFB51tv9X+MFQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "available-typed-arrays": "^1.0.7", + "call-bind": "^1.0.8", + "for-each": "^0.3.3", + "gopd": "^1.2.0", + "has-proto": "^1.2.0", + "is-typed-array": "^1.1.15", + "reflect.getprototypeof": "^1.0.9" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/typed-array-length": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/typed-array-length/-/typed-array-length-1.0.7.tgz", + "integrity": "sha512-3KS2b+kL7fsuk/eJZ7EQdnEmQoaho/r6KUef7hxvltNA5DR8NAUM+8wJMbJyZ4G9/7i3v5zPBIMN5aybAh2/Jg==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.7", + "for-each": "^0.3.3", + "gopd": "^1.0.1", + "is-typed-array": "^1.1.13", + "possible-typed-array-names": "^1.0.0", + "reflect.getprototypeof": "^1.0.6" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/typescript": { + "version": "5.7.2", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.7.2.tgz", + "integrity": "sha512-i5t66RHxDvVN40HfDd1PsEThGNnlMCMT3jMUuoh9/0TaqWevNontacunWyN02LA9/fIbEWlcHZcgTKb9QoaLfg==", + "dev": true, + "license": "Apache-2.0", + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + }, + "node_modules/unbox-primitive": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.1.0.tgz", + "integrity": "sha512-nWJ91DjeOkej/TA8pXQ3myruKpKEYgqvpw9lz4OPHj/NWFNluYrjbz9j01CJ8yKQd2g4jFoOkINCTW2I5LEEyw==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.3", + "has-bigints": "^1.0.2", + "has-symbols": "^1.1.0", + "which-boxed-primitive": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/undici-types": { + "version": "6.19.8", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.19.8.tgz", + "integrity": "sha512-ve2KP6f/JnbPBFyobGHuerC9g1FYGn/F8n1LWTwNxCEzd6IfqTwUQcNXgEtmmQ6DlRrC1hrSrBnCZPokRrDHjw==", + "dev": true, + "license": "MIT" + }, + "node_modules/uri-js": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", + "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "punycode": "^2.1.0" + } + }, + "node_modules/which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, + "license": "ISC", + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/which-boxed-primitive": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/which-boxed-primitive/-/which-boxed-primitive-1.1.1.tgz", + "integrity": "sha512-TbX3mj8n0odCBFVlY8AxkqcHASw3L60jIuF8jFP78az3C2YhmGvqbHBpAjTRH2/xqYunrJ9g1jSyjCjpoWzIAA==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-bigint": "^1.1.0", + "is-boolean-object": "^1.2.1", + "is-number-object": "^1.1.1", + "is-string": "^1.1.1", + "is-symbol": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/which-builtin-type": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/which-builtin-type/-/which-builtin-type-1.2.1.tgz", + "integrity": "sha512-6iBczoX+kDQ7a3+YJBnh3T+KZRxM/iYNPXicqk66/Qfm1b93iu+yOImkg0zHbj5LNOcNv1TEADiZ0xa34B4q6Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.2", + "function.prototype.name": "^1.1.6", + "has-tostringtag": "^1.0.2", + "is-async-function": "^2.0.0", + "is-date-object": "^1.1.0", + "is-finalizationregistry": "^1.1.0", + "is-generator-function": "^1.0.10", + "is-regex": "^1.2.1", + "is-weakref": "^1.0.2", + "isarray": "^2.0.5", + "which-boxed-primitive": "^1.1.0", + "which-collection": "^1.0.2", + "which-typed-array": "^1.1.16" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/which-collection": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/which-collection/-/which-collection-1.0.2.tgz", + "integrity": "sha512-K4jVyjnBdgvc86Y6BkaLZEN933SwYOuBFkdmBu9ZfkcAbdVbpITnDmjvZ/aQjRXQrv5EPkTnD1s39GiiqbngCw==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-map": "^2.0.3", + "is-set": "^2.0.3", + "is-weakmap": "^2.0.2", + "is-weakset": "^2.0.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/which-typed-array": { + "version": "1.1.18", + "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.18.tgz", + "integrity": "sha512-qEcY+KJYlWyLH9vNbsr6/5j59AXk5ni5aakf8ldzBvGde6Iz4sxZGkJyWSAueTG7QhOvNRYb1lDdFmL5Td0QKA==", + "dev": true, + "license": "MIT", + "dependencies": { + "available-typed-arrays": "^1.0.7", + "call-bind": "^1.0.8", + "call-bound": "^1.0.3", + "for-each": "^0.3.3", + "gopd": "^1.2.0", + "has-tostringtag": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/word-wrap": { + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz", + "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/wrap-ansi": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.1.0.tgz", + "integrity": "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-styles": "^6.1.0", + "string-width": "^5.0.1", + "strip-ansi": "^7.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, + "node_modules/wrap-ansi-cjs": { + "name": "wrap-ansi", + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, + "node_modules/wrap-ansi-cjs/node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "dev": true, + "license": "MIT" + }, + "node_modules/wrap-ansi-cjs/node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dev": true, + "license": "MIT", + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/wrap-ansi/node_modules/ansi-regex": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.1.0.tgz", + "integrity": "sha512-7HSX4QQb4CspciLpVFwyRe79O3xsIZDDLER21kERQ71oaPodF8jL725AgJMFAYbooIqolJoRLuM81SpeUkpkvA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-regex?sponsor=1" + } + }, + "node_modules/wrap-ansi/node_modules/ansi-styles": { + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.1.tgz", + "integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/wrap-ansi/node_modules/strip-ansi": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz", + "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-regex": "^6.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/strip-ansi?sponsor=1" + } + }, + "node_modules/wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", + "dev": true, + "license": "ISC" + }, + "node_modules/yaml": { + "version": "1.10.2", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-1.10.2.tgz", + "integrity": "sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==", + "license": "ISC", + "engines": { + "node": ">= 6" + } + }, + "node_modules/yocto-queue": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", + "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/zustand": { + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/zustand/-/zustand-5.0.2.tgz", + "integrity": "sha512-8qNdnJVJlHlrKXi50LDqqUNmUbuBjoKLrYQBnoChIbVph7vni+sY+YpvdjXG9YLd/Bxr6scMcR+rm5H3aSqPaw==", + "license": "MIT", + "engines": { + "node": ">=12.20.0" + }, + "peerDependencies": { + "@types/react": ">=18.0.0", + "immer": ">=9.0.6", + "react": ">=18.0.0", + "use-sync-external-store": ">=1.2.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "immer": { + "optional": true + }, + "react": { + "optional": true + }, + "use-sync-external-store": { + "optional": true + } + } + } + } +} diff --git a/frontend/package.json b/frontend/package.json new file mode 100644 index 0000000..b878a44 --- /dev/null +++ b/frontend/package.json @@ -0,0 +1,32 @@ +{ + "name": "starter_app", + "version": "0.1.0", + "private": true, + "scripts": { + "dev": "next dev -p 9000", + "build": "next build", + "start": "next start", + "lint": "next lint" + }, + "dependencies": { + "@emotion/cache": "^11.14.0", + "@emotion/react": "^11.14.0", + "@emotion/styled": "^11.14.0", + "@mui/icons-material": "^6.3.0", + "@mui/material": "^6.3.0", + "@mui/material-nextjs": "^6.3.0", + "axios": "^1.7.9", + "next": "^14.2.21", + "react": "^18", + "react-dom": "^18", + "zustand": "^5.0.2" + }, + "devDependencies": { + "@types/node": "^20", + "@types/react": "^18", + "@types/react-dom": "^18", + "eslint": "^8", + "eslint-config-next": "14.2.21", + "typescript": "^5" + } +} diff --git a/frontend/public/assets/WST_logo.png b/frontend/public/assets/WST_logo.png new file mode 100644 index 0000000000000000000000000000000000000000..a41cab55337529cee45f00a56fd6256b72a1cb05 GIT binary patch literal 4449 zcmV-n5uWaeP)4+G8b}9*9Ri#QTiertGPH+MmeLuf%g_SD(mAK6 zQy5w@44gAFAv9$x1ZWdTAi+tT#Bsc@vTS+LYVCS@?>ARw{+>T71v)+c&e4&hJUzYN zefNI%yWj5tt60SM%17Dhi@j z5u4g)9p8N77F^_P7jY3$e8;0VO&@sfmvL`@iKr-COI%0J9HWY4!m<5YwKND+ib@0xD0Oc1PHh|;4C*j`0eNiul`E%4x2Y^sN>X-P;N7W(+Y@$vxr18&|5SZ8=66)=Y6C- zLogWh(3!Ou8JmH@ETF<_gTzVTMKvbJ=F!ns4TY(YiG=v&;lB0h;gPS1w|?hc>Em~z zC@=~i7{<7&dG34uH=lo66JJzqXluaytQV~<)i7DrnDvH{hyyco3pjaxnik4K@YNNbrO9#_$ z?@OV8D0rQkZ@&Nb_@P&REiMOCWsV|TdHH6f(=wKpBbb<4z>GJ5NHmEuivf)-&5($4 zMP3I{l#$J*z;hxbfwDx-!Z)*kkqI9->R6SfB`9@SP*!3X9-KeDBW2V(|2ES zEPBu1?8Hqs$tVyC8koj^dcAStg-1StXQ;THG9?s_BAxWZ;dEerDUMlR5LTNJ8(Qj- zRT~hP575FCEQMo~H53pj0X4O2tzHk&ScGDe4knHQgkc!eK{Ml@0E4C;Bc- zVwM8a++2x<4Qmma4I&+qFg894@7yvH;UvQGTnVL!dy)u*;|RfgvvzmZR`^g4n*L0dYkIy-GlT-!SH53XBa~p+rLv+jpa6_qC7|86~$q zf@FU$+?U^s`AiXf=X+q*b4c?7Iycr~a%zT3i@|QO;LF>aaPG_m43t@+r3FzeDc_p8 z?c57E^5eX-rXYc7f1atP-}wIP8PB+N_l_pG9U_JXd@$K`IMX+Sj!jKS8;#)NY4n^N zhpJ&4)U97d(sQ0fO*fS5zXgE;n4X=4{PiEe*xH7r|9B3X>+gZsxf{!Uz2HJiNQpe! z)>RU52QWG_4@TUxt)q^JTa8#YgV4aZv#cJy(NiA`BTw)s0LDIfYG-Qfe3jiIU}y7nd+FJPlpTWk^?dK@QC$o0g#7u@`(+hn((ZTpAo@O?1r$ zn6B9i`QrnS-SxnoKgGPN6j37Xg=H1mHa8%fQ4pushdpDsFfxZ^l$ug%nG2u&__jU! z_vd}X3y?946U@&&njPW?fVNL|jPS3#}f=(pv@B}dzV*hg5v~1UZ$#;D{gPLM>{V%i%pb2#Z>cUAr17`#8E8{g4vVeB#W}U36&| zkO%S(jNfy7y%d~v%2^q69xv+GxG?33Q0rAtVlP54#bJ8h5A*&10JKocXtzbL51@pv&0pEUS}mz zr63i%fbPFS#8C!WrA2ab5CV+@a?WC)uqe69P^gh)HDHR4><3|GhRQn2k(FgSml_$~ z08Ud3WA!FP7b92<#VHWgD;lV>#D;O=uWF~3xJpJQ8fwTXaO8n}GlokoM=E6|vw{9; zPMx7UXy!@1YH98f5Q`@%33!+&Q{ucHf}GQ-95^2ZPV0h-{x3_xkwtouV9Uja@jR53 zfYBJPGeK=F1t$ea%TT5XB4u1PrusgFrmPedwxSge=f&S1Uit18x;bKQMe(%D@$!3m z5;SrAiO4rFOisovyuf2yXA4D1hS91=CNT?ljS~{Dz!!<3$Vr(KoTjx3BuqtQf_^Zg z35pz~U@@pA`aGM2EXSY=&r(asMTmo_q>&vIl7}Rc^lGk&xnaKHy7T zYf(ibgKsGSg;G_KC0&W1X}-w7KuKlPOqLLfWni=DNX~1>ZpyA`i;P6Pkj!B5;J<^t zaUd5*`U1^Hi4bJXBrQ;vI|D720>LGLSOn>3?)$8)xLkQE?Fa?SNdL|SOhp1u zqVEWZ(=+0kyLf=ccV<9V_+GzDhND50;v7qo7P3Oo==r<`%6!R} z6D_7-?ld~R8m@|B(i2+fENXaXm!PAPuvqj+CW6Ez8Y(RvnN&ouw1`Y}8DY{VAwiE2 z*$Qz^wQ@Nt#|auDTP#YnRV3?>ao(2;zH6Dhu%tDqz9G>|o5~NCbDg~JqmI-+1?voCoW|Jim z#_38RlcwQlF&t&ZXH=UjCuQZc+&iCp&q|Q8Y4D_Da;3${?BXWQ!cCl|(~!60SpZLo zp)(S%kzDwsXNcZeu7}T0-TCFboV~o;wW^}EPgUebG#18*V{jbp?0f~z*BOp8e4$2xQrG`K2JOV z%TzC-AMZy|SsBVLMvP4Qa+?dV+l^>%D#cfKY{;FBI+?RCUqdBtj%lu2H{9#2^u)sx zRc)JVv7yd}v!^GBX9Rerys%YNp|ZRbqeCA-9UP|$&>%(RnJWeTzy27k$Oc7kf#RQ{ zt`-KHIR`#N&4h?M6`2J~)8EhD14YO}nV*A6oj^uqr5mtBL7{HAr5OgA*e7Nd@z&u% zx)TNn4)-yNbY2s7-WhY`yF0_MmH$3xOZt2P>PloTSxQjlc91dUhfO2F=x|WC5NUwi z2Gid?4dM0&psH>{;?qx|K7Ini`|l!i;uwiT0UE0bVx<%2hFZwv=$Y^OM`#~@0@e5a z5E_FTYnrOyvY0VA>Vb*uP!n~)!-xBjC0AJ`YM?H2MNOMJK17}vYk4I9ho!llI?IQ(q*mCsx6Q- zX(+e-6jDPMl>Se_H<0yt^S7X-Oj`Ko@1UxfT0OaY3aQ@7i8<6%+o{9HaOqdtac+19 zvw;W<>o0kIao^+rhCERa+hOjhTR$;&{&im2vU%yVackIAG$ za^NJwJ|D7?MWhxzkb^$N2TnniT!w1;EXw#8T(xe}CFH>nnIAsVL$eT%?kz23s%tPb zGL0D1;l#-a2)6QQ=^YPT_1*4u1=-&&=q^FWgZrEp-rCof9y)68>Z~U64Wnyo9r}Cc zkWq7_jJ?Rsifyg+usU6sonIsZAD4WbEyWtx@^uGMmPf#EfcwdQerT08~S?Kkb4`%1R z`bHWL3=|MM?FCJeyI*29qoG^S#tC;HJy{!1_>!50p}yyN=)kw3nAOQE(-E*h%teexS(NnMKP zc(!}%2DbZ4&8)&*%&yzr!9<>8$1_ zt&Ls2b2Ae~H7ma9Zsxe}6&j+%+?2^U`b^(-&7qC^&R9@jT(lYLR>#MkB=RLSUuj8fw;H$UBR* zHC9afA~-u70Lvy$8yg*=WTl*Je-cl+rz#Y z=h*lhO*%XcdJ<}A*mRM}^t<=YQAt#ijHf*&EeDfHd>Fm;VbFEigI6PrX0W_SnJyB%9luTwL53 z2`maS*#&l!fG|mYuWuQf8r->^M3{;+WRk0J^5hu0x7X6%Q4GaSHS|RWoIW*0Tf7k( zr>u&)c}s8cRd??RzVx$~r;fa&;Quwqe|3NV=c( zesD#0e)_Uhc)V4K#MdaPl!ye`C%NHLO}>nY<{qOXAQ+3zpxAZ7b?IdX#~!)kEIxZm z?{n!qU(i#VIR~GE?Kj7a+~lYep@lMac+sp&Ga+p*O=itnzht-h)=TcCBR|@i{omvN nyj$@qR { + setAlertStatus(false); +}; + + return ( + + + {message} + + + ); +} diff --git a/frontend/src/app/components/Card.tsx b/frontend/src/app/components/Card.tsx new file mode 100644 index 0000000..f225390 --- /dev/null +++ b/frontend/src/app/components/Card.tsx @@ -0,0 +1,57 @@ +'use client' +//React imports +import React, { useState } from 'react'; + +//MUI imports +import {Box} from '@mui/material'; + +//Local imports +import ContentTabs from './ContentTabs'; +import WSTCommonButton from './WSTCommonButton'; + +interface TabContent { + label: string + content: React.ReactNode + buttonLabel?: string + onAction?: () => void +} + +interface WalletCardProps { + tabs: TabContent[] +} + +export default function WalletCard({ tabs }: WalletCardProps) { + const [tabValue, setTabValue] = useState(0); + + const handleTabChange = (event: React.SyntheticEvent, newValue: number) => { + setTabValue(newValue); + }; + + const { content, buttonLabel, onAction } = tabs[tabValue] + + return ( +
+ + + tab.label)} + value={tabValue} + onChange={handleTabChange} + /> + + {content} + + + + {buttonLabel && ( + + )} + +
+ ); +} diff --git a/frontend/src/app/components/ContentTabs.tsx b/frontend/src/app/components/ContentTabs.tsx new file mode 100644 index 0000000..8bf91ab --- /dev/null +++ b/frontend/src/app/components/ContentTabs.tsx @@ -0,0 +1,28 @@ +'use client'; + +//React imports +import * as React from 'react'; + +//Mui imports +import Tabs from '@mui/material/Tabs'; +import Tab from '@mui/material/Tab'; + +interface ContentTabsProps { + value: number; + onChange: (event: React.SyntheticEvent, newValue: number) => void; + tabLabels: string[]; +} + +export default function ContentTabs({ value, onChange, tabLabels }: ContentTabsProps) { + + return ( + + {tabLabels.map((label, index) => + + )} + + ); +}; \ No newline at end of file diff --git a/frontend/src/app/components/CopyTextField.tsx b/frontend/src/app/components/CopyTextField.tsx new file mode 100644 index 0000000..3d8b539 --- /dev/null +++ b/frontend/src/app/components/CopyTextField.tsx @@ -0,0 +1,46 @@ +'use client'; +//React Imports +import * as React from 'react'; + +//Mui imports +import TextField, { TextFieldProps } from '@mui/material/TextField'; +import { InputAdornment } from '@mui/material'; +import ContentCopyIcon from '@mui/icons-material/ContentCopy'; + +//local components +import IconButton from './WSTIconButton'; + +interface PHATextFieldProps { + value: TextFieldProps['defaultValue']; + fullWidth?: TextFieldProps['fullWidth']; + label: TextFieldProps['label']; +} + +export default function CopyTextField({value, fullWidth, label}: PHATextFieldProps) { + const inputRef = React.useRef(null); + + const copyToClipboard = () => { + if (inputRef.current) { + inputRef.current.select(); + navigator.clipboard.writeText(inputRef.current.value); + } + } + + return ( + + } /> + + )} + }} + /> + ); +} diff --git a/frontend/src/app/components/NavDrawer.tsx b/frontend/src/app/components/NavDrawer.tsx new file mode 100644 index 0000000..eb1129e --- /dev/null +++ b/frontend/src/app/components/NavDrawer.tsx @@ -0,0 +1,77 @@ +'use client' +//React Imports +import * as React from 'react'; + +//Mui imports +import Drawer from '@mui/material/Drawer'; +import List from '@mui/material/List'; +import ListItem from '@mui/material/ListItem'; +import ListItemButton from '@mui/material/ListItemButton'; +import ListItemIcon from '@mui/material/ListItemIcon'; +import ListItemText from '@mui/material/ListItemText'; +import ImportExportIcon from '@mui/icons-material/ImportExport'; +import FormatListBulletedIcon from '@mui/icons-material/FormatListBulleted'; +import AccountBalanceWalletIcon from '@mui/icons-material/AccountBalanceWallet'; + +//Local Imports +import useStore from '../store/store'; +import { MenuTab } from '../store/types'; + +const drawerWidth = 200; + +const iconMapping = { + 'Mint Actions': , + 'Accounts': , + 'Wallet': +}; + +export default function NavDrawer() { + const { currentUser, selectTab, selectedTab } = useStore(); + + // Define list items based on the current user + const listItems: MenuTab[] = currentUser === 'Mint Authority' ? + ['Mint Actions', 'Accounts'] : + ['Wallet']; + + const handleListItemClick = (item: MenuTab) => { + selectTab(item); + }; + + return ( + <> + + + {listItems.map((text) => ( + + handleListItemClick(text)} + disableRipple + disableTouchRipple + selected={selectedTab === text}> + + {iconMapping[text]} + + + + + ))} + + + + ); +} diff --git a/frontend/src/app/components/ProfileSwitcher.tsx b/frontend/src/app/components/ProfileSwitcher.tsx new file mode 100644 index 0000000..2a8db4d --- /dev/null +++ b/frontend/src/app/components/ProfileSwitcher.tsx @@ -0,0 +1,52 @@ +//React Imports +import * as React from 'react'; + +//MUI Imports +import Chip from '@mui/material/Chip'; +import Menu from '@mui/material/Menu'; +import MenuItem from '@mui/material/MenuItem'; +import KeyboardArrowDownIcon from '@mui/icons-material/KeyboardArrowDown'; + +//Local Imports +import useStore from '../store/store'; +import { UserName } from '../store/types'; + +export default function ProfileSwitcher() { + const [anchorEl, setAnchorEl] = React.useState(null); + const currentUser = useStore(state => state.currentUser); + const changeUserAccount = useStore(state => state.changeUserAccount); + + const handleClick = (event: React.MouseEvent) => { + setAnchorEl(event.currentTarget as HTMLElement); + }; + + const handleClose = () => { + setAnchorEl(null); + }; + + const handleSelect = (user: UserName) => { + changeUserAccount(user); + handleClose(); + }; + + return ( + <> + } + onDelete={handleClick} + /> + + handleSelect('Mint Authority')}>Mint Authority + handleSelect('User A')}>User A + handleSelect('User B')}>User B + + + ); +} diff --git a/frontend/src/app/components/WSTAppBar.tsx b/frontend/src/app/components/WSTAppBar.tsx new file mode 100644 index 0000000..7d89090 --- /dev/null +++ b/frontend/src/app/components/WSTAppBar.tsx @@ -0,0 +1,32 @@ +'use client' +//NextJS Imports +import Image from 'next/image'; + +//MUI Imports +import { Box, Typography } from '@mui/material'; +import AppBar from '@mui/material/AppBar'; +import Toolbar from '@mui/material/Toolbar'; + +//Local file +import ProfileSwitcher from './ProfileSwitcher'; + +export default function WSTAppBar() { + return ( + <> + + + + Logo for Wyoming Stable Token + Wyoming Stable Token + + + + + + ); +}; diff --git a/frontend/src/app/components/WSTCommonButton.tsx b/frontend/src/app/components/WSTCommonButton.tsx new file mode 100644 index 0000000..e9f8a8f --- /dev/null +++ b/frontend/src/app/components/WSTCommonButton.tsx @@ -0,0 +1,18 @@ +//Mui imports +import Button, { ButtonProps } from '@mui/material/Button'; + +interface PHAButtonProps { + disabled?: boolean; + size?: ButtonProps['size']; + fullWidth?: boolean; + startIcon?: React.ReactNode; + variant?: ButtonProps['variant']; + text?: string; + onClick?: React.MouseEventHandler; + } + + export default function WSTCommonButton({ disabled, size='medium', fullWidth, startIcon, variant='contained', text, onClick }: PHAButtonProps) { + return ( + + ); + } \ No newline at end of file diff --git a/frontend/src/app/components/WSTIconButton.tsx b/frontend/src/app/components/WSTIconButton.tsx new file mode 100644 index 0000000..be88023 --- /dev/null +++ b/frontend/src/app/components/WSTIconButton.tsx @@ -0,0 +1,19 @@ +//Mui imports +import IconButton, { IconButtonProps } from '@mui/material/IconButton'; + +interface PHAButtonsProps { + icon: React.ReactNode; + color?: 'default' | 'success' | 'primary' | 'secondary'; + disabled?: boolean; + size?: IconButtonProps['size']; + onClick?: React.MouseEventHandler; + onMouseDown?: React.MouseEventHandler; + } + +export default function WSTIconButton({ icon, color='primary', disabled, size='medium', onClick, onMouseDown }: PHAButtonsProps) { + return ( + + {icon} + + ); +} diff --git a/frontend/src/app/components/WSTTable.tsx b/frontend/src/app/components/WSTTable.tsx new file mode 100644 index 0000000..8893a7e --- /dev/null +++ b/frontend/src/app/components/WSTTable.tsx @@ -0,0 +1,68 @@ +//Mui imports +import TableContainer from "@mui/material/TableContainer"; +import Table from "@mui/material/Table"; +import TableBody from "@mui/material/TableBody"; +import TableCell from "@mui/material/TableCell"; +import TableHead from "@mui/material/TableHead"; +import TableRow from "@mui/material/TableRow"; +import Paper from "@mui/material/Paper"; + +const Field = [ + { + account: 'addr_sdfah35gd808xxx', + status: 'Frozen', + balance: 1000 + }, + { + account: 'addr_sdfah35gd808xxx', + status: 'Active', + balance: 1000 + }, + { + account: 'addr_sdfah35gd808xxx', + status: 'Active', + balance: 1000 + }, + { + account: 'addr_sdfah35gd808xxx', + status: 'Frozen', + balance: 1000 + }, + { + account: 'addr_sdfah35gd808xxx', + status: 'Active', + balance: 1000 + } +] + +export default function WSTTable() { + + return ( + + + + + Address + Account Status + Account Balance + + + + {Field.map((field, fieldIndex) => ( + + + {field.account} + + + {field.status} + + + {`${field.balance} WST`} + + + ))} + +
+
+ ); +} \ No newline at end of file diff --git a/frontend/src/app/components/WSTTextField.tsx b/frontend/src/app/components/WSTTextField.tsx new file mode 100644 index 0000000..1edc8c0 --- /dev/null +++ b/frontend/src/app/components/WSTTextField.tsx @@ -0,0 +1,76 @@ +'use client'; +//React Imports +import * as React from 'react'; + +//Mui imports +import TextField, { TextFieldProps } from '@mui/material/TextField'; +import { InputAdornment } from '@mui/material'; +import CancelOutlinedIcon from '@mui/icons-material/CancelOutlined'; +import ErrorOutlineOutlinedIcon from '@mui/icons-material/ErrorOutlineOutlined'; +import Tooltip from '@mui/material/Tooltip'; + +//local components +import IconButton from './WSTIconButton'; + +interface PHATextFieldProps { + value: TextFieldProps['value']; + onChange: (event: React.ChangeEvent) => void; + error?: TextFieldProps['error']; + fullWidth?: TextFieldProps['fullWidth']; + helperText?: TextFieldProps['helperText']; + label: TextFieldProps['label']; + multiline?: TextFieldProps['multiline']; + minRows?: number; + maxRows?: number; +} + +export default function WSTTextField({value, onChange, error, fullWidth, multiline, minRows, maxRows, helperText, label}: PHATextFieldProps) { + const [isFocused, setIsFocused] = React.useState(false); + const inputRef = React.useRef(null); + + const handleFocus = () => { + setIsFocused(true); + }; + + const handleBlur = () => { + setIsFocused(false); + }; + + const handleClear = () => { + onChange({ target: { value: '' } } as React.ChangeEvent); + setTimeout(() => { + if (inputRef.current) { + inputRef.current.focus(); + } + }, 0); + }; + + return ( + + {error && !isFocused ? ( + + ) : } onMouseDown={handleClear} size="small" color='success' />} + + )} + }} + /> + ); +} diff --git a/frontend/src/app/favicon.ico b/frontend/src/app/favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..3e0ef19f49bf1c2834481a01eb3353352e55a469 GIT binary patch literal 11163 zcmYM41yCDpxVD446oON{cyXr`cemmccXti$Uc9&mic2B5Td_iLEyeZ2CCH)Y{4;-c zc6MiWvb(eUCeQQU*98E;y)FMfZ~!Vm1PcH___iOTrXq`lPKy4vizP27rSb3RzZDhv zZDZ&LwtCy3xyb3c0{|HK|5iA__grGY+Zp7g#I<~KPXp1i28a1#POt=bTToA#0kRpM^C>UT53&T<_{bB|JN$h>HCeo`C9 z^D>QpHY-O8`WRW-F|$FrDL~P*M2-p9$TR`D)2!yWP<(eEytu8HF2bPv#|IALkP=Pr zV}r}d{EW>}XSzhpZqC(Npm1)Xxkjl9|M5%0BZQN<+mz1!Wqx^Y+_5Wn31u{o#qJZ2 z75DDG#5uOeeqidOFBh>iTt#N;&x(N6o@o`zdozyr9pI|`gs(-QDa_$_2U%0Z_ldkp z_WY2h!MyS%7QxRcQ@N|PdF%O)%iPRBZ4uILr&8|L(Xl0|Ghn)c;H`j&eCctIvIr$H zL8z31N3y|hq8-FF*)zZd>)lv{iIR3w`y6;5g|@u+cV4bVD$DZ{8+>jIt@O($lQhiS zWrkVLMG_|aZe;wN!w|QI+RW)w(od2{zJt-EkxL_^=P*0L7(#Vb3#%9m@p1ipIqPrp z^M8}d^1oo7nznk+x@k(NsTx}K@<`KOa@DtKPIE;@f)!#hcIX;L8JM}Xgpd>t+poa; zWRmzEeD*!Zxh(b^g4w%*ii5luU}m-)#j&2Dovsgq7F3lq!jwli=BC z4jF)~ATg@&4-j9po2NRHrBfV5w}yNA)aY%h*)d3e{e-}E*SXD!JqKEr5+|Dbw-t6~ zc$vmMvM8Y=HBk@xD{h))Oe_=dGwlNSNc~O}ZBAeOxjtKof86M>O2z8A5(>go)cR24 zzC-0)1{zheq8`ud^@{$b22-r2(pg}^V;z``$CS3GVPY$}&C%_xT;G=y>q5o9cW!dWYbZ}f z;kx9O`=h$0{-WF8$^Z1yf1Zpr@vT1m_qfR~C@Se_9l(UWZ4tM!*&OOVHU0ag@xMN_ zA6G&_gtW%S%1+jABUfSyUjTEUS~$)VHa?&t!gX8jSO7Ev=>I%x624%gayU~g<=)qT zQ8LYZXEN0{;PD|Q=sOZ7B=CG;1@U@NL%LimN|=(HRmyKA@yM%=;y|X;>?rKbBg&2q z*8FGn6$?%+C`rbLowk*yZhz#5N9whhNq5pmhSq6*WpzzKKX}O#^KGg<*FPT< zrY`h8e|nulb|YKA?{29%fafrBplzK?FfVr)wZCF}V4dpm{R~OywvAn6me7-Pf}PV* zo&fGg2YHe5Y*uTZ^^s@UDB5~A+TDYUJ1$Sqyp~9*W$=Ay~v%6dXtLFW>cau28(pGQ-+o-Rtp@+qJ5rjnVI-Ck+f|Gl`-t}?9svF6rS9b3*;0rBC>uLjS70^@|+yCAl=!c=^_ zDi#c~gNBjN!$i8*m`cU}!%THQffDYwC9Kr8U9P=c<#l4j^9~2(lfyo%e}-q3yCAcB z{fHLh@!Sfr$4Na*EpI84O!9pdKOK4D82l`=G3aqAZoyTeq&Weur3hke5%!NvX+-{p zLy<~?K+41!yiy=iWG-Y*r#qZ8h8a7XDTQL!^F<<)dM+t-cxujMCTn5|w`L^XV)6p| zVg#IBS_PxTjm0xL7vG+Tf{)lSlVSo>Nrd}bg|2M`QdXv~dYuY5YAT^&gBHWN zbARli8z5jVq49OtfW>gZVf!)o`585LrQ=L-ww~}ZBnFk8q`8+uplX?d&nrFfDwU^}O{{OFv0m2yITDo26Y&bA@dU|2N)OiPO7+evTo@oiIE&W3PQ0Sc$YO%SvJL zE<2@DEjVJUGiOg2Nz(~Q+nwm7J}7X6#*NIg{2KBH3OetVv+6F`;(jew5^aX6*D!_i zk{O)FIVHW4;W|I?=B&l}HTLS3Q5Y&X{pbePptftmL^ocXXK^AoI$gv{N^na1*JXTq4qsiT1B^o1HIG^}ksD3nb4F(M@)Nr_MNOULD@VjsIc4V!Qdd zQBW(&pw+iv|3aWOG_(Z77}#L1mq)o9gQm%&vFQVhJ`bu}s`vcL_;V`_Zu`TKT9b{e zjY_L}5w9Mb0Jd6Iq%CinwuYgTaBXq-As9E$0sRKY1!2Vt#c@P0ko3gT9vbT0tMSle z`_jcU~FT^sq6->~nEYJZm1zvZ~5C(_aDwlNkfv=)^>RM6W z2B)q4^KiBD)GB13R#Eblw#}l&?>}}Tm)ZIg372#4B-SR`SH~`HLSlR%auEi{je9Js z^6{x!ZcnOSP}Q0lIbDxj-2taGuB^5|(ymb2VVQTdk7VNX& zLGF;|s@zz?=7LQRuXUWg70t_8T@(MRXh%z9oU;os2C^NQ=YPAph~rGtsvhA+#8KYd z8ZnKe^U{`l`ZY6O2~?|M{)xzBe=d)WP1$JF*=WKOrI3 zvX^Z+tI8N5qi`Z9nD@~5+S-%-@cu^G=g&Gjxbm&9pzca1!Ko@&mRycr`SPKhTmBV8 zOrcX1gg_x6f6?jhBzIUdaiGcTND3i<{;X1a{IBCBS5)r`>*2Yl;1RhKce9Q;m=U?9 zMo9!sn~oq{o%ucTpMif>^}kL4ozf5fmJ8zt*&+R_i*r{mvbnrEM)bDNc%fF3Has;H z8{UBOdtt~QikL0q1};s+o`I@%7JhZzaPvws8P*2&9{-fUm&vPN-`c|LxAfcSYuB|` z00!U@TGVZ@ZkYqDA9XBE{wruY^~(FmDUii976BRwqlOQOpfG_V1osfP^@6q&Ja0ok zWd{ljjNCS#oBu+n;TSwWy1RGV_wLxmGnq(nyuUxTr`=pDRinba^Yzw(57txodN$*} z!Jke9a3C2?U<(o07}qX{Fc(V;TjA>omt)|$yvkGUfQyq#ic(ZP5Fa}$PMX(@G5yf0r!-%zq!11+^!e(a7tMWgG301LBfd8_cYRm*7?j6*e2$L)t#G z(QQyuQHVY~+6p;p85#c=peFX{z#HfPZI0u3in$w5T8#q6N?=Jh(u@x+Xa=>?b6(>lfIYWL@87WduMY ztSx>D<|P()im+1-1xgbEzC3HwGGoViLWYWGVCq4kqyxh>=xblAVMm^+XhJHlyWY8d73neOKaUbfbhFmG*xWkpxn$! zC=y7bdr)@&g`^i55lQnHZ$iUl>zWA+m<6W8c`?z|$yvcbx}Yr$KiV65JmW8|&3@nS z!5{8sw`iVcG$_x?umc)*I{1X}qhfXtjskJ0%w~`NEaB^ZD8TxGzF%RgPeh~-peW^2 z^Zxv}qW={?D6&QQf%GptW-kN|;OM!6jM~A=OTmS`+_TS6x$Pz%nV$4 zhBnw1Szn_{2muFCDP$Fbih+`eKE5rpo_s)cUUYb;5P9;72(0F34U#aF;X1ZMAy=k* z^sq?1yReeh*YX2Z$E-6csyg6W&C&^8Ap8I_d;(-qI10n>L<3;O& zbNO#R{mwDlNO69BYqiJ$TD1C>4}Eh%dKCd!QU?QrJ9-bh)l?)D^qq7^@fyH`2_!EZ z=#`W`4X%L2qpKq!;Ml^ggl4d3@@9|j*TRV_-LEb~bJrA}zZ%JGYI#vBul4mVWh-|< z8TUJvel(#-@qQqwki3bN)X&0j9Nax+e2fZG<;&F%cAJNzKYDx$y(4lrVQaR)uyMgB z*|`2O$=>a4Pja@mPR$r1{_zU00e=c!%Ra$V9%Z7@3bR+gb=5|$UsCR`U- zUs-BJhMI+hcJQG%v1rMYdOOAO2O)3+e>ETp;d_?Y<+E7+1l6F<%k>dyE$X#|=Gwd$ zT(lO9JSs086zDx=deQIjGd=!7R zj(iI3aZ1}chKcQM2-hB!nlzb}L~v+iH9JR{df%Do;23NL^u}HN(dpbDp{>|(7IGrI zN9^az_ao1iy^K!V3b(DP;ET>KSc3n%x{gyX(tR;KBrSINPN5f+^cR=m4=8NKE#dFe zzqxa?kSP|X86kBzr`C{Aa{cuYN)G&3Occ#Ule4p0Ezq#3a{eKlQ8o#_{A+BOin7>S zlJQ!^A6cnD_um$=^I9|EzOLh(=^tFwC^Oe!DMF3J0meviPAKKhxr__m;&^O&Kk`zj z0BYlV#grGbjPy-Ol&u0g6VxU|xiB)MqGmA512qe{>z2n*@ zZL?m3B_Rk?Ddp9wVsD8-!QklqQN3Gn4=G!5~#{j{HkgRT1-{EUt%7B!==(h5<12Vbh0dMU6z}I z*iVckVh1xXI5>C`ieb}4DrsU$5^bsPL=NVH5wh5xtZydmmMF#?x!fL#A`Xa9`P{y# zM)M5K=>m)y`00iR-|6Eo3gO@~Xk@s2 zKvcKR7L1I*YUUB=v7KnWn+li^XmRg3--bk}Uw+Eo65NXfR(X1GEF;q0y_`;6*sI|} ztjG14cZ){f{T0NS2q#+3N2loEtck1td*r z*S)LGI)tHS{Jyk?k@^dq2eN`lOkd0}fj9e4lu?M|xM1xFLxRmhIWDS(0mN|AaUF3sAN##BypIJBz24_p{>j6 zG1H;CyV?q${jLwDif@yy9K7>bBIewH8M>I8UpY-L-lkR=RrjIAwxSj+v*p5{ROAaR z%@V?En0LKQ9Tj1Sh?-a&BDsp1OGLlyZvC#8Fg3mRs#qrC&?5U&@`j|%r^lrA*`Fkq{ls|fX%8t`l}9puX=_r z>|+pX;G4OF-6I070{wRpHcZ6VrVn}^=9=!{-(SJ?JK1B$qcc*P^usp1SPsxn_l0OZ zUJ>PNa1o`b=r*$j!x^5C;V84gUK0pgi~`Xmvin6nDUhFRdY6BTd_pV1Wz`tlN0B14KaQSvUPn z_AdSyN=CA1lOatMt;5zJBcuNa^O-I#Ios|MfjhD7nqvqtq9+RNKCxQG+ug{Tm|R?n=#;qm`zbZ z$U_*ri7YIHq;x;eHz@t|IQ9_pb0}=v|I9HVe+$Zz|M!FLRiByRgk#K1>Y@mcNG`D8 zureK=e!bg;r=nLU!_(RJpSNfDBOxZ}4&3Q;+0@)4`22bc|HPJof|2ibC;HA8KwF6w z!`O1EVXzL6YELOi49z@_;vYKdAi4|n@9+9U;aaC>g2_Rc z{M^5!wyMum%~fL$;mtxGt3u_UsR7s~}scxO9bK5W&oqB&{Uz}-|P~ z^NwJx455w9Kuclj9+5r7AU5kslW(MX*4e8W2};z{>;-DPCUFy>Da)~+4`I5 z)8leYnR8c>I0|)aA%_iAVb>lf(96=~t*5G|@*^v*Cfw#2{n)E(K7o?x@N+uWWK+tH zl<`!`wSiQTwn{| z=CXRym&|92d;hn*y`b$VhVtHcZfLTAx|CA$so8{=?9TMpqxe_%3{DUus{XqZ9gjjfg(W7bcd|yqY2|Pbf z)9t#Zt5!k`gXKGZinRQv*dJ!^O7akNN4P{d+zf&;1jH=#={XM5WF5;&LOlo!1L;i0OCy)q4%0 z&2mZ&mJ_B0CMMKESA{cA_6~RTgGK4`;&I|F?jiPMM1r!}L$^7OA#e#1K=Zodt#i#d zq8d%qgs5a~zUsBvQcIArJAnDVhERNE0(a9At1k=uzdrZ9=0Y|!@=)cPoe`<3@e9Q0 z+W=r{+Py9=AhI6L@@qOLFdLUPblyh_`Ww~TYC&Tj7BIG z$fg4|9WJ`ENsbL33Hq5vP?5CIE2mi`WW9HyqP!sbQGr4JYv7L${2R31W0irJr$P&Fd)}T&u(& zNnlpZ5OUJgS0K+dWGgn z$}{CxihIw@>J80rTEyS#DKgBNGfq5)iG`4e-3Pza518FhBYj`!k|qkSD)q#M6e&ez zV(Ssx*s)o3Y1O^AaMw&bb~8&vRJE2wa)Vyg$XP?O44j_+3h+eG3VoT5JwUG-6|3*fkyA8}#TiwY7 zV;idOATnI+) zH+_ND)j+4^ix}Dh&%XtkC@XrX9U*Tlqm?13ZCOvr9nN589FxnIXr03G-Hb#B#oGS* zXI1V|#y~x%*PfzI0N|1mB<9p6`*OW7teT?@^b6J*Dpf<2msi7*q3rr~uCKN5ba&;H ze|~_my;4ujreUbFxvHgwM&f?b57)9q@k$wfY%4>`z@?srH>Q~jF)IA4RfCxJv z_z7vQ(zzFddY}eABi?MUq-tl?-mO-BwMyn9k$oSf*o)NVE-NXWVq-4INY?4?QZ#ba zp&i3gw751|#X09lg;mynbqc8z0`aRpHF*cB^S-Ammtqda$8)U~*gCXgc$<)-{m3hs zbEgS#AOgOVW6SVC(k|hqEfloLS~yFc%Vvie19FXmZ4*km-?4Xsd{QGc&-~t`0G59) zK&syna&A${@`sj$w6{?u7u2D>B>vxZjiA9v!RD7`47#+O%UuJp^#>ur5wN4yj{65e z(HYJUQwv)%pWdbW$pubQph zX3pT2+lQ0pN$fZ6AQc)3cXXvR5^8S7Qx-pB?$1~GJ-O0Pop_&W*D>`@8=n=$$Qs6Y zm`oIDFq1GbdY{E@b-=L#R5)A!H&~p{_<8}x8oo_pEbMGe35?3WMRE60guH*{QUx7; zzRWRuq?rwU?yoCEOZ`?nf43a;dGzBD@gte}W04&woXq%{ig|y1f^|1B(4%k)$3xCq zC8V7AW|FguyU8Q-?P(`A(bJCn!=NE=@6I%q3Cd68x&3s%VEz5HLDS%b-^$TV%a7{u z-Cir-PTNzlt+o#-3|uG6u(`iOY{JSxKdS7K%4%KpTTah8V*5$#Ew~p83{$74_x>V0 zGx@t;sQh~MH!&)UBdNBx;*|}B#5=u~IJ_%4iCOk$BtUQ@*5#uO z!d}HB;fwN&5X}0FH?cZwUMPV4-aFsbrU!4e-Iq(kJMLYyPJ0RU~Qy;dkcIRQ@s0TMv@FX$ngnwCy5J{#NH zp+u;p`9GG%mRPQk#4+F;mn#cOrqY~W{q8Lu2!p*;%x3Dq&Y#f3RSI;(RD@amserL6 zLTb`>2JfOp7srR-WYffBWAEH)D0N}FSZ+nUa6N(cO#C$&c@!`0YO*T&dwrQ zY#9T5J9Jt&MhEqVH>Z?*e#f6X<V;zalo(VZfvdXRCcl9n5)9aFN zh;2LmnCL0hG`0mAhDWfCCGZwMia4Aw%a+uC8xm+ZSijyuw`O$_Qb!Xm)UYibY**>B zdgX4}qzsXIOCXLyOu1OXwwdjMyx|g&Ack3EnCU77qQ&MtW(QECCsErSl}m9muD@eO z{~(*MIPu}c$Nyu9@M+1@)|BaB$c6kMJLakq&2M`?07D3?%tqURn@+k8IHR6d}!@puc!6*qe6kKQOK zt^C}I86DY6-b#|9#F{6U_IqJiTReiQJ0-d+w+@y+jRdjnkt1(O9gu=cWpVqHFD>k1Y#uJ{`z|ie;L^%cT zDUf&R&8$YjWw(oJfEzqo%hL*q9jg0r*pM~|RBY?Z?!|8NoQDyea_~qv^#2KXxj^ul z0Te{ayi?JOdl`ZqjH7C(>B8l-3iPHgM9T8E~F(6$x|UVvys z<1DaM17>|M1`<e_mHcBp3L0k2{10#6ba;6E#fHTjKL)=3^_f);VIZSg+Nhg+F17@k`s$aKK_oj*99rdxN8@+iD|Ez|T1__LM@sclg zEJrbkomHqmG+iqPm#`_iX7lws=1H!I${p(2NlG^v;+PZCTB_Y!C(xiTa-rCVkFOcR zA(K#?A`Mh!32j3msc93F-00|@l!<_X6&(2#IqUZNDi`1A)(Qpt+Kd`lGp5OKJZwfM zY~{5Xph5B1?Gsp7HvX%T2ORO6Dc~mjS82ktbW{_T_a!;Z4Qoogl2TZo>B{_}#XAu-cz*OJP!Oh1rWMUT-OBY`%=W3EnViX&O zHg}|aDw`scp8Zg>_Bl}El_OipQ)p!6f7v?&p;$hkG^LV~Iki$s^JLfkCD=5}Q#3hj zRpP}ZdqRR|$VyOWy7)FzxA=d>panb52T3a~qv-zp*y&RovNyr!>#oUkDQHQ_3VUD6 zLHjF&nkXbF?Z@d4(oY`rbMLOA^P($W>Q`xXg5#pIJO()nh>_D-?3}^6#E0#a3`+JQ z&lVQ2>{%gF~3=sVKb1ibREFU;AUYKj&(vW_Z$owA`z0R&WG&PLGx!4?s zbX{%QTZUrvyipNC&BTr9l|5<@*AUM|*kxBBpBnY6)(b zW^^_vh7?#4pIP$sJHikkG+4vQ#2p~<;~#=$e)FmjgV`j@Dfds1l^VkQ%s6k#1OA@N zfaE=I?#(OTOe_<++3eS}ju3A!1Bs?8X}M2bRmVO1k?%MvftNqj_SeS^p(C^rXxQw< zqJpuq2seo(qF)1bFD+512oyhAemL-Q?!T1({b#%hu)u};FpQ=dzi7h6^-B(NugdrB zX0s?i2va#(&U$KhF7zJ%_j4kXE8k6kxeYoi;^<9zK6oPd{bn<1yhk}HC)JVQ@C=0) zOiII$P85svDCQSyO1X_xa8l9@aejz=s@$T{7>4*Y-xWuUsr8jmu87 zm<>l?wyz+52mi(qw}g0<#~x5{EdMVlLLOs51XDimw}mn2RhT-pz#AuZqsfyWHxd`= zLeQe$U1FD5Ib&kF;5~Zi1)F#%Sz`_WRmbHasVhuos+uRBmwdC??!GzGGw20p=o;Hb zge+Kz#EOt!m6X?0kllGZySk_~atULVA0G&5L{(*&bU>x;VC}N_JqevVbA% z57~RaDcD|7UdT<=+It5EZ#HEnqH#yJc=|8d3t0bbGU#+dA1b+<8RfZLcEw;|?$@o- zJ#?Gnk^+k1$bX)rB@***>0;4HwbZm6Jw;_I8O8C)BgW+<$U0r`&VC6!r*b5rFIoiql$dKXGtq}SEpcaihH?{n z86-;k3j4l;Nyj43V1z#2<1CH?qrHB2Vf~c%^x7!8PbV-Ibo_+9@2z*Y?X8o&(4sBx i3RgRZ#Z{d2iX)GVJxG}%!T;vf0_3Gtq-rHhLjMOv%c0)@ literal 0 HcmV?d00001 diff --git a/frontend/src/app/layout.tsx b/frontend/src/app/layout.tsx new file mode 100644 index 0000000..9aa7f11 --- /dev/null +++ b/frontend/src/app/layout.tsx @@ -0,0 +1,45 @@ +//NextJS Imports +import type { Metadata } from "next"; + +//Mui imports +import { AppRouterCacheProvider } from '@mui/material-nextjs/v15-appRouter'; +import NavDrawer from './components/NavDrawer'; + +//Local file +import { ThemeModeProvider } from "./styles/themeContext"; +import "./styles/globals.css"; +import WSTAppBar from "./components/WSTAppBar"; + +export const metadata: Metadata = { + title: "Wyoming Stable Token", + description: "Created by the djed team at IOG", +}; + +export default function RootLayout({ + children, +}: Readonly<{ + children: React.ReactNode; +}>) { + return ( + + + + + + + + + +
+ + +
+ {children} +
+
+
+
+ + + ); +} diff --git a/frontend/src/app/page.module.css b/frontend/src/app/page.module.css new file mode 100644 index 0000000..acfb257 --- /dev/null +++ b/frontend/src/app/page.module.css @@ -0,0 +1,165 @@ +.page { + --gray-rgb: 0, 0, 0; + --gray-alpha-200: rgba(var(--gray-rgb), 0.08); + --gray-alpha-100: rgba(var(--gray-rgb), 0.05); + + --button-primary-hover: #383838; + --button-secondary-hover: #f2f2f2; + + display: grid; + grid-template-rows: 20px 1fr 20px; + align-items: center; + justify-items: center; + min-height: 100svh; + padding: 80px; + gap: 64px; + font-family: var(--font-geist-sans); +} + +@media (prefers-color-scheme: dark) { + .page { + --gray-rgb: 255, 255, 255; + --gray-alpha-200: rgba(var(--gray-rgb), 0.145); + --gray-alpha-100: rgba(var(--gray-rgb), 0.06); + + --button-primary-hover: #ccc; + --button-secondary-hover: #1a1a1a; + } +} + +.main { + display: flex; + flex-direction: column; + gap: 32px; + grid-row-start: 2; +} + +.main ol { + font-family: var(--font-geist-mono); + padding-left: 0; + margin: 0; + font-size: 14px; + line-height: 24px; + letter-spacing: -0.01em; + list-style-position: inside; +} + +.main li:not(:last-of-type) { + margin-bottom: 8px; +} + +.main code { + font-family: inherit; + background: var(--gray-alpha-100); + padding: 2px 4px; + border-radius: 4px; + font-weight: 600; +} + +.ctas { + display: flex; + gap: 16px; +} + +.ctas a { + appearance: none; + border-radius: 128px; + height: 48px; + padding: 0 20px; + border: none; + border: 1px solid transparent; + transition: background 0.2s, color 0.2s, border-color 0.2s; + cursor: pointer; + display: flex; + align-items: center; + justify-content: center; + font-size: 16px; + line-height: 20px; + font-weight: 500; +} + +a.primary { + background: var(--foreground); + color: var(--background); + gap: 8px; +} + +a.secondary { + border-color: var(--gray-alpha-200); + min-width: 180px; +} + +.footer { + grid-row-start: 3; + display: flex; + gap: 24px; +} + +.footer a { + display: flex; + align-items: center; + gap: 8px; +} + +.footer img { + flex-shrink: 0; +} + +/* Enable hover only on non-touch devices */ +@media (hover: hover) and (pointer: fine) { + a.primary:hover { + background: var(--button-primary-hover); + border-color: transparent; + } + + a.secondary:hover { + background: var(--button-secondary-hover); + border-color: transparent; + } + + .footer a:hover { + text-decoration: underline; + text-underline-offset: 4px; + } +} + +@media (max-width: 600px) { + .page { + padding: 32px; + padding-bottom: 80px; + } + + .main { + align-items: center; + } + + .main ol { + text-align: center; + } + + .ctas { + flex-direction: column; + } + + .ctas a { + font-size: 14px; + height: 40px; + padding: 0 16px; + } + + a.secondary { + min-width: auto; + } + + .footer { + flex-wrap: wrap; + align-items: center; + justify-content: center; + } +} + +@media (prefers-color-scheme: dark) { + .logo { + filter: invert(); + } +} diff --git a/frontend/src/app/page.tsx b/frontend/src/app/page.tsx new file mode 100644 index 0000000..2072f9b --- /dev/null +++ b/frontend/src/app/page.tsx @@ -0,0 +1,235 @@ +'use client'; +//React imports +import React, { useState } from 'react'; +import axios from 'axios'; + +//Mui imports +import { Box, Typography } from '@mui/material'; +import Checkbox from '@mui/material/Checkbox'; +import FormControlLabel from '@mui/material/FormControlLabel'; + +//Local components +import useStore from './store/store'; +import WalletCard from './components/Card'; +import WSTTextField from './components/WSTTextField'; +import CopyTextField from './components/CopyTextField'; +import WSTTable from './components/WSTTable'; +import AlertBar from './components/AlertBar'; + +export default function Home() { + const { mintAccount, selectedTab, errorMessage, setAlertStatus } = useStore(); + const [addressCleared, setAddressCleared] = useState(false); + + // temp state for each text field + const [mintTokens, setMintTokens] = useState(36); + const [recipientAddress, setRecipientAddress] = useState('addr_sdfah35gd808xxx'); + const [accountNumber, setAccountNumber] = useState('addr_sdfah35gd808xxx'); + const [reason, setReason] = useState('Enter reason here'); + + const handleAddressClearedChange = (event: { target: { checked: boolean | ((prevState: boolean) => boolean); }; }) => { + setAddressCleared(event.target.checked); + }; + + const onMint = async () => { + const requestData = { + asset_name: 'WST', + issuer: mintAccount, + amount: mintTokens, + }; + + try { + const response = await axios.post( + 'http://localhost:9000/api/tx/programmable-token/issue', + requestData, + { + headers: { + 'Content-Type': 'application/json;charset=utf-8', + }, + } + ); + + console.log('Mint response:', response.data); + } catch (error) { + console.error('Minting failed:', error); + } + }; + + const onFreeze = () => { + console.log('freeze an account'); + }; + + const onSeize = () => { + console.log('freeze an account'); + }; + + const onSend = () => { + console.log('send tokens'); + setAlertStatus(true); + }; + + const mintContent = + setMintTokens(Number(e.target.value))} + label="Number of Tokens to Mint" + fullWidth={true} + /> + setRecipientAddress(e.target.value)} + label="Recipient’s Address" + fullWidth={true} + /> + } + label="Address has been cleared" + sx={{ mb: 2 }} + /> + ; + + const freezeContent = + setAccountNumber(e.target.value)} + label="Account Number" + fullWidth={true} + /> + setReason(e.target.value)} + label="Reason" + fullWidth={true} + multiline={true} + minRows={2} + maxRows={3} + /> + + +const seizeContent = + setAccountNumber(e.target.value)} +label="Account Number" +fullWidth={true} +/> + setReason(e.target.value)} +label="Reason" +fullWidth={true} +multiline={true} +minRows={2} +maxRows={3} +/> + + + const sendContent = + setMintTokens(Number(e.target.value))} + label="Number of Tokens to Mint" + fullWidth={true} + /> + setRecipientAddress(e.target.value)} + label="Recipient’s Address" + fullWidth={true} + /> + ; + + const receiveContent = + + ; + + const getContentComponent = () => { + switch (selectedTab) { + case 'Mint Actions': + return <> + + + Mint Balance + 1,000,000 WST + + UserID: xxxxxxx7850 + +
+ + +
+ ; + case 'Accounts': + return <> + + User Accounts + + + ; + case 'Wallet': + return <> + + + Account Balance + 3,478 WST + + UserID: xxxxxxx7850 + +
+ +
+ ; + } + }; + + return ( +
+ {getContentComponent()} + +
+ ); +} diff --git a/frontend/src/app/store/store.tsx b/frontend/src/app/store/store.tsx new file mode 100644 index 0000000..1707828 --- /dev/null +++ b/frontend/src/app/store/store.tsx @@ -0,0 +1,53 @@ +//Zustand Imports +import { create } from "zustand"; + +//Local Imports +import { UserName, MenuTab } from "./types"; + +export type State = { + mintAccount: string; + currentUser: UserName; + selectedTab: MenuTab; + alertOpen: boolean; + errorMessage: boolean; +}; + +export type Actions = { + changeUserAccount: (newUser: UserName) => void; + selectTab: (tab: MenuTab) => void; + setAlertStatus: (status: boolean) => void; +}; + +const useStore = create((set) => ({ + mintAccount: 'addr_test1qpju2uhn72ur6j5alln6nz7dqcgcjal7xjaw7lwdjdaex4qhr3xpz63fjwvlpsnu8efnhfdja78d3vkv8ks6ac09g3usemu2yl', + currentUser: 'Mint Authority', + selectedTab: 'Mint Actions', + alertOpen: false, + errorMessage: false, + + changeUserAccount: (newUser: UserName) => { + let firstAccessibleTab: MenuTab; + switch (newUser) { + case 'Mint Authority': + firstAccessibleTab = 'Mint Actions'; + break; + case 'User A': + case 'User B': + firstAccessibleTab = 'Wallet'; + break; + default: + firstAccessibleTab = 'Mint Actions'; + } + set({ currentUser: newUser, selectedTab: firstAccessibleTab }); + }, + + selectTab: (tab: MenuTab) => { + set({ selectedTab: tab }); + }, + + setAlertStatus: (status: boolean) => { + set({ alertOpen: status }); + }, +})); + +export default useStore; diff --git a/frontend/src/app/store/types.ts b/frontend/src/app/store/types.ts new file mode 100644 index 0000000..025e9c1 --- /dev/null +++ b/frontend/src/app/store/types.ts @@ -0,0 +1,2 @@ +export type UserName = 'Mint Authority' | 'User A' | 'User B'; +export type MenuTab = 'Mint Actions' | 'Accounts' | 'Wallet'; \ No newline at end of file diff --git a/frontend/src/app/styles/app.module.css b/frontend/src/app/styles/app.module.css new file mode 100644 index 0000000..50ea3eb --- /dev/null +++ b/frontend/src/app/styles/app.module.css @@ -0,0 +1,64 @@ +/* Main page styles */ + +.main { + min-height: 100vh; + } + + /* App loader styles */ + + .mainLoadingContainer { + font-size: 50px; + display: flex; + justify-content: center; + align-items: center; + height: 80vh; + } + + .mainLoader { + border: .15em solid currentcolor; + border-radius: 50%; + animation: mainLoader 1.5s ease-out infinite; + display: inline-block; + width: 1em; + height: 1em; + color: inherit; + vertical-align: middle; + pointer-events: none; + } + + @keyframes mainLoader { + 0% { + transform: scale(0); + opacity: 0; + } + 50% { + opacity: 1; + } + 100% { + transform: scale(1); + opacity: 0; + } + } + + /* 404 page styles */ + .notFoundContainer { + display: flex; + justify-content: center; + align-items: center; + flex-direction: column; + height: 80vh; + } + + .statusCode { + font-size: 6rem; + } + + .description { + font-size: 2rem; + } + + /* Coming soon styles */ + + .comingSoonTitle { + font-size: 4rem; + } \ No newline at end of file diff --git a/frontend/src/app/styles/globals.css b/frontend/src/app/styles/globals.css new file mode 100644 index 0000000..88fec0a --- /dev/null +++ b/frontend/src/app/styles/globals.css @@ -0,0 +1,51 @@ +* { + box-sizing: border-box; + padding: 0; + margin: 0; +} + +main { + display: flex; + height: 100vh; + width: 100vw; +} + +a { + color: inherit; + text-decoration: none; +} + +.contentSection { + flex-grow: 1; + padding: 36px; + margin-top: 36px; + background-color: rgba(57, 82, 205, .04); +} + +.page { + width: 100%; + height: 100%; +} + +.cardWrapperParent { + display: flex; + justify-content: space-between; + gap: 32px; +} + +.cardWrapper { + background-color: white; + padding: 24px; + border-radius: 8px; + border: 1px solid #C9C6C6; + flex-basis: 50%; + height: 365px; + display: flex; + flex-direction: column; +} + +.card { + height: 100%; +} + + diff --git a/frontend/src/app/styles/mui_style.d.ts b/frontend/src/app/styles/mui_style.d.ts new file mode 100644 index 0000000..2ccf9be --- /dev/null +++ b/frontend/src/app/styles/mui_style.d.ts @@ -0,0 +1,63 @@ +//Mui imports +import "@mui/material"; + +declare module "@mui/material/styles" { + interface Components { + MuiTableBoxContainer?: { + root?: React.CSSProperties; + styleOverrides?: ComponentsOverrides['MuiTableBoxContainer']; + } + } + + interface Palette { + tertiary: Palette["primary"]; + surfaceDim: Palette["primary"]; + surface: Palette["primary"]; + surfaceBright: Palette["primary"]; + containerLowest: Palette["primary"]; + containerLow: Palette["primary"]; + container: Palette["primary"]; + containerHigh: Palette["primary"]; + containerHighest: Palette["primary"]; + onSurface: Palette["primary"]; + onVariant: Palette["primary"]; + outline: Palette["primary"]; + outlineVariant: Palette["primary"]; + } + + interface PaletteOptions { + tertiary: PaletteOptions["primary"]; + surfaceDim: PaletteOptions["primary"]; + surface: PaletteOptions["primary"]; + surfaceBright: PaletteOptions["primary"]; + containerLowest: PaletteOptions["primary"]; + containerLow: PaletteOptions["primary"]; + container: PaletteOptions["primary"]; + containerHigh: PaletteOptions["primary"]; + containerHighest: PaletteOptions["primary"]; + onSurface: PaletteOptions["primary"]; + onVariant: PaletteOptions["primary"]; + outline: PaletteOptions["primary"]; + outlineVariant: PaletteOptions["primary"]; + } + + interface PaletteColor { + onMain?: string; + mainOpacity1?: string; + mainOpacity2?: string; + container?: string; + conOpacity1?: string; + conOpacity2?: string; + onContainer?: string; + } + + interface SimplePaletteColorOptions { + onMain?: string; + mainOpacity1?: string; + mainOpacity2?: string; + container?: string; + conOpacity1?: string; + conOpacity2?: string; + onContainer?: string; + } +} \ No newline at end of file diff --git a/frontend/src/app/styles/palette.ts b/frontend/src/app/styles/palette.ts new file mode 100644 index 0000000..35b9720 --- /dev/null +++ b/frontend/src/app/styles/palette.ts @@ -0,0 +1,72 @@ +//Mui imports +import { PaletteOptions } from "@mui/material"; + +export const lightModePalette: PaletteOptions = { + primary: { + main: "#3952CD", + mainOpacity1: "rgba(57, 82, 205, 0.08)", + mainOpacity2: "rgba(57, 82, 205, 0.12)", + container: "#DEE0FF", + onContainer: "#00105B", + conOpacity1: "rgba(222, 224, 255, 0.08)", + conOpacity2: "rgba(222, 224, 255, 0.12)", + }, + secondary: { + main: "#B32A00", + mainOpacity1: "rgba(179, 42, 0, .08)", + mainOpacity2: "rgba(179, 42, 0, .12)", + container: "#FFDBD2", + onContainer: "#3C0800", + }, + tertiary: { + main: "#6B5F00", + container: "#F5E47F", + onContainer: "#201C00", + }, + error: { + main: "#BA1A1A", + container: "#FFDAD5", + onContainer: "#410002", + }, + success: { + main: "#14893B" + }, + surfaceDim: { + main: "#DAD9E3", + }, + surface: { + main: "#FDF8F8", + }, + surfaceBright: { + main: "#FDF8F8", + }, + containerLowest: { + main: "#FFF", + }, + containerLow: { + main: "#F4F2FD", + }, + container: { + main: "#EEEDF7", + }, + containerHigh: { + main: "#E8E7F2", + }, + containerHighest: { + main: "#E5E2E1", + }, + onSurface: { + main: "#1C1B1B", + mainOpacity1: "rgba(28, 27, 27, 0.08)", + mainOpacity2: "rgba(28, 27, 27, 0.12)", + }, + onVariant: { + main: "#474647", + }, + outline: { + main: "#787677", + }, + outlineVariant: { + main: "#C9C6C6", + }, + }; \ No newline at end of file diff --git a/frontend/src/app/styles/theme.tsx b/frontend/src/app/styles/theme.tsx new file mode 100644 index 0000000..29907f8 --- /dev/null +++ b/frontend/src/app/styles/theme.tsx @@ -0,0 +1,375 @@ +'use client'; +//Mui imports +import { createTheme } from "@mui/material/styles"; + +//Local file +import { lightModePalette } from "./palette"; + +export const getTheme = (mode: 'light') => createTheme({ + palette: { + mode, + ...lightModePalette, + }, + typography: { + fontFamily: ['Roboto', 'sans-serif',].join(','), + fontSize: 16, + h1: { + fontSize: "2.074rem", + }, + h2: { + fontSize: "1.728rem", + }, + h3: { + fontSize: "1.2rem", + }, + h4: { + fontSize: "16px", + }, + h5: { + fontSize: "16px", + }, + h6: { + fontSize: "1.2rem", + }, + body1: { + fontSize: '16px', + }, + }, + components: { + MuiTypography: { + styleOverrides: { + h1: ({theme}) => ({ + color: theme.palette.primary.onContainer, + fontWeight: 600, + }), + h2: ({theme}) => ({ + color: theme.palette.onVariant.main, + fontWeight: 500, + }), + h3: ({theme}) => ({ + color: theme.palette.primary.onContainer, + fontWeight: 400, + }), + h4: ({theme}) => ({ + color: theme.palette.primary.onContainer, + fontWeight: 500, + marginBottom: '8px', + }), + h5: ({theme}) => ({ + color: theme.palette.primary.onContainer, + }), + body1: ({theme}) => ({ + color: theme.palette.onVariant.main, + }), + }, + }, + MuiButton: { + styleOverrides: { + root: { + lineHeight: 1.25, + minWidth: '90px', + borderRadius: 100, + textTransform: "none", + boxShadow: "none", + padding: "6px 10px", + }, + contained: ({ theme }) => ({ + backgroundColor: theme.palette.primary.main, + '&:hover': { + background: `linear-gradient( + 0deg, + ${theme.palette.primary.conOpacity1}, + ${theme.palette.primary.conOpacity1} + ), ${theme.palette.primary.main}`, + boxShadow: ` + 0px 1px 2px rgb(0, 0, 0, .3), + 0px 1px 3px 1px rgb(0, 0, 0, .15)} + `, + '&:active': { + background: `linear-gradient( + 0deg, + ${theme.palette.primary.conOpacity2}, + ${theme.palette.primary.conOpacity2} + ), ${theme.palette.primary.main}`, + boxShadow: "none !important", + }, + }, + '&:focus': { + background: `linear-gradient( + 0deg, + ${theme.palette.primary.conOpacity2}, + ${theme.palette.primary.conOpacity2} + ), ${theme.palette.primary.main}`, + boxShadow: "none !important", + }, + }), + outlined: ({ theme }) => ({ + border: `1px solid ${theme.palette.primary.main}`, + color: `${theme.palette.primary.main}`, + '&:hover': { + background: `linear-gradient( + 0deg, + ${theme.palette.primary.mainOpacity1}, + ${theme.palette.primary.mainOpacity1} + )`, + '&:active': { + background: `linear-gradient( + 0deg, + ${theme.palette.primary.mainOpacity2}, + ${theme.palette.primary.mainOpacity2} + )`, + }, + }, + '&:focus': { + background: `linear-gradient( + 0deg, + ${theme.palette.primary.mainOpacity2}, + ${theme.palette.primary.mainOpacity2} + )`, + } + }), + text: ({ theme }) => ({ + color: `${theme.palette.onVariant.main}`, + '&:hover': { + color: `${theme.palette.secondary.main}`, + background: `linear-gradient( + 0deg, + ${theme.palette.secondary.mainOpacity1}, + ${theme.palette.secondary.mainOpacity1} + )`, + '&:active': { + color: `${theme.palette.secondary.main}`, + background: `linear-gradient( + 0deg, + ${theme.palette.secondary.mainOpacity2}, + ${theme.palette.secondary.mainOpacity2} + )`, + }, + }, + '&:focus': { + background: `linear-gradient( + 0deg, + ${theme.palette.secondary.mainOpacity2}, + ${theme.palette.secondary.mainOpacity2} + )`, + } + }), + }, + }, + MuiIconButton: { + styleOverrides: { + root: ({ theme }) => ({ + color: `${theme.palette.onVariant.main}`, + }), + colorSuccess: ({ theme }) => ({ + color: `${theme.palette.onVariant.main}`, + '&:hover': { + backgroundColor: 'transparent', + }, + '&:focus': { + background: 'transparent !important', + }, + '&:active': { + backgroundColor: 'transparent', + }, + }), + colorPrimary: ({ theme }) => ({ + '&:hover': { + backgroundColor: `${theme.palette.primary.mainOpacity1}`, + }, + '&:focus': { + backgroundColor: `${theme.palette.primary.mainOpacity2}`, + }, + '&:active': { + backgroundColor: `${theme.palette.primary.mainOpacity2}`, + }, + }), + colorSecondary: ({ theme }) => ({ + color: `${theme.palette.onVariant.main}`, + '&:hover': { + backgroundColor: `${theme.palette.onSurface.mainOpacity1}`, + }, + '&:focus': { + backgroundColor: `${theme.palette.onSurface.mainOpacity2}`, + }, + '&:active': { + backgroundColor: `${theme.palette.onSurface.mainOpacity2}`, + }, + }), + }, + }, + MuiSvgIcon: { + defaultProps: { + fontSize: 'small', + }, + styleOverrides: { + colorAction: ({ theme }) => ({ + color: `${theme.palette.onVariant.main}`, + }), + }, + }, + MuiInputBase: { + styleOverrides: { + root: ({ theme }) => ({ + color: `${theme.palette.onSurface.main}`, + fontSize: '1rem', + '&.Mui-error .MuiInputAdornment-root': { + color: `${theme.palette.error.main}`, + }, + }), + }, + }, + MuiOutlinedInput: { + styleOverrides: { + root: ({ theme }) => ({ + ".MuiOutlinedInput-notchedOutline": { + border: `1px solid ${theme.palette.outline.main}`, + }, + ":hover .MuiOutlinedInput-notchedOutline": { + borderColor: `${theme.palette.onSurface.main}`, + }, + "&.Mui-focused .MuiOutlinedInput-notchedOutline": { + borderColor: `${theme.palette.primary.main}`, + }, + "&.Mui-error .MuiOutlinedInput-notchedOutline": { + borderColor: `${theme.palette.error.main}`, + }, + }), + }, + }, + MuiInputLabel: { + styleOverrides: { + root: ({ theme }) => ({ + color: theme.palette.primary.main, + fontSize: '1rem !important', + }), + }, + }, + MuiFormHelperText: { + styleOverrides: { + root: ({ theme }) => ({ + fontSize: '.75rem !important', + marginLeft: '10px', + color: `${theme.palette.onVariant.main}`, + }), + }, + }, + MuiTooltip: { + styleOverrides: { + tooltip: ({ theme }) => ({ + backgroundColor: `${theme.palette.onVariant.main}`, + }) + }, + }, + MuiDivider: { + styleOverrides: { + root: ({ theme }) => ({ + borderColor: `${theme.palette.outlineVariant.main} !important`, + }) + }, + }, + MuiAppBar: { + styleOverrides: { + root: ({ theme }) => ({ + backgroundColor: `${theme.palette.containerLowest.main}`, + boxShadow: 'none', + }) + }, + }, + MuiToolbar: { + styleOverrides: { + root: ({theme}) => ({ + borderBottom: `1px solid ${theme.palette.outlineVariant.main}`, + paddingLeft: '0px !important', + paddingRight: '16px !important', + height: '48px !important', + minHeight: '48px !important', + justifyContent: 'space-between', + }), + }, + }, + MuiDrawer: { + styleOverrides: { + paper: ({theme}) => ({ + backgroundColor: theme.palette.containerLowest.main, + borderRight: `1px solid ${theme.palette.outlineVariant.main}`, + }), + }, + }, + MuiTab: { + styleOverrides: { + root: ({ theme }) => ({ + textTransform: 'none', + color: `${theme.palette.onVariant.main}`, + ":hover": { + background: `${theme.palette.primary.mainOpacity1}`, + }, + ":focus": { + background: 'none', + }, + }), + }, + }, + MuiListItemIcon: { + styleOverrides: { + root: ({theme}) => ({ + minWidth: '40px', + color: theme.palette.onVariant.main, + }), + }, + }, + MuiListItemButton: { + styleOverrides: { + root: ({ theme }) => ({ + ":hover": { + background: `${theme.palette.primary.mainOpacity1}`, + }, + ":focus": { + background: `${theme.palette.primary.mainOpacity2}`, + }, + }), + }, + }, + MuiTableContainer: { + styleOverrides: { + root: ({theme}) => ({ + backgroundColor: theme.palette.containerLowest.main, + boxShadow: 'none', + minHeight: '80%', + border: '1px solid #C9C6C6', + }), + }, + }, + MuiTableRow: { + styleOverrides: { + hover: () => ({ + backgroundColor: 'rgba(27, 27, 31, 0.1)', + }), + }, + }, + MuiTableCell: { + styleOverrides: { + stickyHeader: () => ({ + backgroundColor: 'rgba(57,82,205,0.12)', + fontSize: '14px', + }), + body: () => ({ + fontSize: '14px', + color: '#46464F', + }), + }, + }, + MuiAlert: { + styleOverrides: { + filledSuccess: () => ({ + backgroundColor: '#BAC3FF', + color: '#00105B', + }), + filledError: () => ({ + backgroundColor: '#FFDBD2', + color: '#3C0800', + }), + }, + }, + }, + }); \ No newline at end of file diff --git a/frontend/src/app/styles/themeContext.tsx b/frontend/src/app/styles/themeContext.tsx new file mode 100644 index 0000000..de29447 --- /dev/null +++ b/frontend/src/app/styles/themeContext.tsx @@ -0,0 +1,23 @@ +'use client'; +//React Imports +import React, { useMemo, ReactNode } from 'react'; + +//Mui imports +import { ThemeProvider as MUIThemeProvider } from '@mui/material/styles'; +import CssBaseline from '@mui/material/CssBaseline'; + +//Local file +import { getTheme } from './theme'; + + +export const ThemeModeProvider = ({ children }: { children: ReactNode }) => { + const theme = useMemo(() => getTheme('light'), []); + + return ( + + {/* CssBaseline kickstart an elegant, consistent, and simple baseline to build upon. */} + + {children} + + ); + }; \ No newline at end of file diff --git a/frontend/tsconfig.json b/frontend/tsconfig.json new file mode 100644 index 0000000..a992e12 --- /dev/null +++ b/frontend/tsconfig.json @@ -0,0 +1,26 @@ +{ + "compilerOptions": { + "lib": ["dom", "dom.iterable", "esnext"], + "allowJs": true, + "skipLibCheck": true, + "strict": true, + "noEmit": true, + "esModuleInterop": true, + "module": "esnext", + "moduleResolution": "bundler", + "resolveJsonModule": true, + "isolatedModules": true, + "jsx": "preserve", + "incremental": true, + "plugins": [ + { + "name": "next" + } + ], + "paths": { + "@/*": ["./src/*"] + } + }, + "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"], + "exclude": ["node_modules"] +} From f0286ca8693457bbe7f4e20182cd29c46cab447a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jann=20M=C3=BCller?= Date: Tue, 7 Jan 2025 14:09:30 +0000 Subject: [PATCH 07/10] Add mockserver container (#52) --- nix/containers.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/nix/containers.nix b/nix/containers.nix index 1bf4c1e..0e8ff68 100644 --- a/nix/containers.nix +++ b/nix/containers.nix @@ -74,5 +74,14 @@ in rec { # sourceUrl = "https://github.com/input-output-hk/wsc-poc"; # }; + mockserver = lib.iogx.mkContainerFromCabalExe { + exe = inputs.self.packages.wst-poc-mock-server; + name = "wst-poc-mock-server"; + description = "WST mockserver"; + packages = [ ]; + sourceUrl = "https://github.com/input-output-hk/wsc-poc"; + }; + + } From 52c6ed21164438c3df88551412160cdc2cadead0 Mon Sep 17 00:00:00 2001 From: colll78 Date: Wed, 8 Jan 2025 01:23:17 -0800 Subject: [PATCH 08/10] Add cors headers (#55) --- src/lib/Wst/Server.hs | 3 ++- src/test/lib/Wst/Test/MockServer.hs | 3 ++- src/wst-poc.cabal | 2 ++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/lib/Wst/Server.hs b/src/lib/Wst/Server.hs index 2ee272d..856602a 100644 --- a/src/lib/Wst/Server.hs +++ b/src/lib/Wst/Server.hs @@ -18,6 +18,7 @@ import Convex.CardanoApi.Lenses qualified as L import Convex.Class (MonadBlockchain, MonadUtxoQuery) import Data.Data (Proxy (..)) import Network.Wai.Handler.Warp qualified as Warp +import Network.Wai.Middleware.Cors import PlutusTx.Prelude qualified as P import Servant (Server, ServerT) import Servant.API (NoContent (..), Raw, (:<|>) (..)) @@ -58,7 +59,7 @@ defaultServerArgs = runServer :: (Env.HasRuntimeEnv env, Env.HasDirectoryEnv env) => env -> ServerArgs -> IO () runServer env ServerArgs{saPort, saStaticFiles} = do - let app = case saStaticFiles of + let app = cors (const $ Just simpleCorsResourcePolicy) $ case saStaticFiles of Nothing -> serve (Proxy @APIInEra) (server env) Just fp -> serve (Proxy @CombinedAPI) (server env :<|> serveDirectoryWebApp fp) port = saPort diff --git a/src/test/lib/Wst/Test/MockServer.hs b/src/test/lib/Wst/Test/MockServer.hs index 9685540..4115d82 100644 --- a/src/test/lib/Wst/Test/MockServer.hs +++ b/src/test/lib/Wst/Test/MockServer.hs @@ -9,6 +9,7 @@ import Cardano.Api qualified as C import Control.Monad.IO.Class (MonadIO (..)) import Data.Proxy (Proxy (..)) import Network.Wai.Handler.Warp qualified as Warp +import Network.Wai.Middleware.Cors import Servant (Server) import Servant.API (NoContent (..), (:<|>) (..)) import Servant.Server (serve) @@ -46,7 +47,7 @@ mockTxApi = -- | Start the mock server runMockServer :: IO () runMockServer = do - let app = serve (Proxy @APIInEra) mockServer + let app = simpleCors $ serve (Proxy @APIInEra) mockServer port = 8080 putStrLn $ "Starting mock server on port " <> show port Warp.run port app diff --git a/src/wst-poc.cabal b/src/wst-poc.cabal index dfcab62..4326791 100644 --- a/src/wst-poc.cabal +++ b/src/wst-poc.cabal @@ -119,6 +119,7 @@ library , servant-client-core , servant-server , text + , wai-cors , warp hs-source-dirs: lib @@ -165,6 +166,7 @@ library test-lib , QuickCheck , servant , servant-server + , wai-cors , warp , wst-poc From a313175b72fd85fc2aff96727c42551ef9693078 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jann=20M=C3=BCller?= Date: Wed, 8 Jan 2025 19:00:34 +0100 Subject: [PATCH 09/10] Publish images to ghcr.io (#58) * Login to ghcr.io using podman * Publish images with tags for PR and release --- .github/workflows/ci-oci.yaml | 48 +++++++++++++++++++++++++++++++---- nix/containers.nix | 12 ++++++--- 2 files changed, 52 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci-oci.yaml b/.github/workflows/ci-oci.yaml index f8805bb..2c61dfd 100644 --- a/.github/workflows/ci-oci.yaml +++ b/.github/workflows/ci-oci.yaml @@ -6,8 +6,16 @@ name: "ci-oci" on: pull_request: push: - branches: - - main + tags: + - "v*" + +permissions: + packages: write + +env: + REGISTRY_USER: ${{ github.actor }} + REGISTRY_PASSWORD: ${{ github.token }} + IMAGE_REGISTRY: ghcr.io/${{ github.repository_owner }} concurrency: group: "ci-oci-${{ github.ref }}" @@ -15,9 +23,31 @@ concurrency: jobs: tests: + strategy: + matrix: + image: [wst, wst-poc-mock-server] runs-on: ubuntu-latest steps: + - name: Determine image tag for git tag + if: ${{ github.event_name == 'push' }} + run: | + IMAGE_TAG=$(git rev-parse --abbrev-ref "${{ github.event.push.ref }}") + echo "IMAGE_TAG=${IMAGE_TAG}" >> $GITHUB_ENV + + - name: Determine image tag for PR + if: ${{ github.event_name == 'pull_request' }} + run: | + IMAGE_TAG=pr-${{ github.event.pull_request.number }} + echo "IMAGE_TAG=${IMAGE_TAG}" >> $GITHUB_ENV + + - name: Log in to ghcr.io + uses: redhat-actions/podman-login@v1 + with: + username: ${{ env.REGISTRY_USER }} + password: ${{ env.REGISTRY_PASSWORD }} + registry: ${{ env.IMAGE_REGISTRY }} + - uses: actions/checkout@v4 - name: Install nix @@ -44,7 +74,15 @@ jobs: # except the version with the `primary-key`, if it exists purge-primary-key: never - - run: nix build --accept-flake-config .#containers.x86_64-linux.wst.copyTo - - run: ./result/bin/copy-to oci-archive:oci.tar - - run: ls -alh oci.tar + # TODO: matrix build for two images (mock server and wst) + - name: Build image with nix + run: nix build --accept-flake-config .#containers.x86_64-linux.${{ matrix.image }}.copyTo + - name: Publish tagged image with podman + run: | + IMAGE_NAME=ghcr.io/${{github.repository_owner}}/${{ matrix.image }}:$IMAGE_TAG + ./result/bin/copy-to oci-archive:oci.tar + IMAGE_HASH=$(podman load --quiet -i oci.tar | sed 's/.*sha256://') + podman tag $IMAGE_HASH $IMAGE_NAME + podman push $IMAGE_NAME + diff --git a/nix/containers.nix b/nix/containers.nix index 0e8ff68..10b0c2d 100644 --- a/nix/containers.nix +++ b/nix/containers.nix @@ -18,8 +18,10 @@ staticFiles = pkgs.buildEnv { # the actual payload we want staticFilesDerivation # allow interactivity with the image - pkgs.bashInteractive - pkgs.coreutils + # NOTE: Uncomment the lines below if you need a shell inside the image + # (for example when debugging the image contents) + # pkgs.bashInteractive + # pkgs.coreutils ]; pathsToLink = [ "/html" "/bin" ]; extraOutputsToInstall = [ "/html" ]; @@ -50,6 +52,10 @@ in rec { name = "wst"; config = { Entrypoint = lib.singleton (lib.getExe inputs.self.packages.wst-poc-cli); + Labels = { + "org.opencontainers.image.source" = "https://github.com/input-output-hk/wsc-poc"; + "org.opencontainers.image.description" = "Programmable token and regulated stablecoin proof-of-concept"; + }; }; layers = [ (inputs.n2c.packages.nix2container.buildLayer { @@ -74,7 +80,7 @@ in rec { # sourceUrl = "https://github.com/input-output-hk/wsc-poc"; # }; - mockserver = lib.iogx.mkContainerFromCabalExe { + wst-poc-mock-server = lib.iogx.mkContainerFromCabalExe { exe = inputs.self.packages.wst-poc-mock-server; name = "wst-poc-mock-server"; description = "WST mockserver"; From 7ae90f270ec6292e339e68360cb88cdb233dcb9a Mon Sep 17 00:00:00 2001 From: Christian Hoener zu Siederdissen Date: Tue, 7 Jan 2025 14:32:40 +0100 Subject: [PATCH 10/10] Build the frontend with nix and add to container --- frontend/next.config.mjs | 3 ++- nix/containers.nix | 54 ++++++++++++---------------------------- 2 files changed, 18 insertions(+), 39 deletions(-) diff --git a/frontend/next.config.mjs b/frontend/next.config.mjs index ce62d0d..7aad706 100644 --- a/frontend/next.config.mjs +++ b/frontend/next.config.mjs @@ -7,7 +7,8 @@ const nextConfig = destination: 'http://localhost:8080/:path*' // Proxy to Backend } ] - } + }, + output: 'export' }; export default nextConfig; diff --git a/nix/containers.nix b/nix/containers.nix index 10b0c2d..d1ffd04 100644 --- a/nix/containers.nix +++ b/nix/containers.nix @@ -1,30 +1,19 @@ { repoRoot, inputs, pkgs, lib, system }: let -staticFilesDerivation = pkgs.stdenv.mkDerivation { - name = "staticFiles"; - src = ../generated; - unpackPhase = "true"; +frontendNpm = pkgs.buildNpmPackage rec { + name = "frontend"; + src = ../frontend; + npmDepsHash = "sha256-Oz7pdTMJVgGj5rzjIMvDjaOV7JU+hYLHoSSb+OcJARk="; + npmPackFlags = [ "--ignore-scripts" ]; installPhase = '' - ls -alh "$src" - mkdir -p "$out" - cp -r $src/html $out - ls -alh $out + mkdir -p $out/frontend + cp -r out/* $out/frontend ''; }; -staticFiles = pkgs.buildEnv { - name = "staticFiles"; - paths = [ - # the actual payload we want - staticFilesDerivation - # allow interactivity with the image - # NOTE: Uncomment the lines below if you need a shell inside the image - # (for example when debugging the image contents) - # pkgs.bashInteractive - # pkgs.coreutils - ]; - pathsToLink = [ "/html" "/bin" ]; - extraOutputsToInstall = [ "/html" ]; +frontend = pkgs.buildEnv { + name = "frontend"; + paths = [ frontendNpm ]; }; in rec { @@ -32,6 +21,9 @@ in rec { # Builds a docker container for the cabal executable given as input. First we # build the container json itself. Note the explicit architecture. # + # NOTE: I don't think iogx.mkContainerFromCabalExe enables linking in the base image correctly. Hence the more manual construction below. + # TODO: Consider patching iogx if that is the case? + # # NOTE: The following commands produce a nice test environment for the container # Build via nix first # @@ -42,7 +34,7 @@ in rec { #$ ./result/bin/copy-to dir:./tmp # # Now we can run the container (the tx is just some random I copied from the explorer) - #$ podman run --publish 8080:8080 --env WST_BLOCKFROST_TOKEN=REPLACE_ME_APIKEY dir:./tmp manage 76e2cfb0b087873ef50a3f709fa6ab3df21bdd5b67c1254837cc353613524251.0 start --static-files /html + #$ podman run --publish 8080:8080 --env WST_BLOCKFROST_TOKEN=REPLACE_ME_APIKEY dir:./tmp manage 76e2cfb0b087873ef50a3f709fa6ab3df21bdd5b67c1254837cc353613524251.0 start --static-files /frontend # # NOTE: To build the oci container image run: # @@ -58,27 +50,13 @@ in rec { }; }; layers = [ + # npm-created data for frontend (inputs.n2c.packages.nix2container.buildLayer { - copyToRoot = [staticFiles]; + copyToRoot = [frontend]; }) ]; }; - # NOTE: I don't think iogx.mkContainerFromCabalExe enables linking in the base image correctly. Hence the more manual construction above. - # TODO: Consider patching iogx if that is the case? - - # Builds a docker container for the cabal executable given as input. First we - # build the container json itself. Note the explicit architecture. - # - # $ nix build .#containers.x86_64-linux.wstBinary - # - # wstBinary = lib.iogx.mkContainerFromCabalExe { - # exe = inputs.self.packages.wst-poc-cli; - # name = "wst-poc"; - # description = "WST Proof of Concept"; - # # packages = [ staticFiles staticFilesDerivation ]; - # sourceUrl = "https://github.com/input-output-hk/wsc-poc"; - # }; wst-poc-mock-server = lib.iogx.mkContainerFromCabalExe { exe = inputs.self.packages.wst-poc-mock-server;