diff --git a/.vocs/search-index-46fc7e51.json b/.vocs/search-index-46fc7e51.json new file mode 100644 index 00000000..a0f0db1d --- /dev/null +++ b/.vocs/search-index-46fc7e51.json @@ -0,0 +1 @@ +{"documentCount":23,"nextId":23,"documentIds":{"0":"docs/pages/client.md#polkadotclient","1":"docs/pages/codegen.md#codegen","2":"docs/pages/codegen.md#contents","3":"docs/pages/codegen.md#usage","4":"docs/pages/providers.md#providers","5":"docs/pages/providers.md#logs-provider","6":"docs/pages/signers.md#signers","7":"docs/pages/signers.md#polkadotsigner-from-a-browser-extension","8":"docs/pages/signers.md#polkadotsigner-from-generic-signing-function","9":"docs/pages/typed.md#typedapi","10":"docs/pages/typed.md#iscompatible","11":"docs/pages/types.mdx#types","12":"docs/pages/types.mdx#ss58string","13":"docs/pages/types.mdx#hexstring","14":"docs/pages/types.mdx#enum","15":"docs/pages/types.mdx#binary","16":"docs/pages/types.mdx#fixedsizebinaryl","17":"docs/pages/types.mdx#fixedsizearrayl-t","18":"docs/pages/types.mdx#interface-types","19":"docs/pages/recipes/upgrade.md#preparing-for-a-runtime-upgrade","20":"docs/pages/typed/queries.md#storage-queries","21":"docs/pages/typed/queries.md#entries-without-keys","22":"docs/pages/typed/queries.md#entries-with-keys"},"fieldIds":{"title":0,"titles":1,"text":2},"fieldLength":{"0":[1,1,240],"1":[1,1,166],"2":[1,1,105],"3":[1,1,68],"4":[1,1,99],"5":[2,1,79],"6":[1,1,70],"7":[5,1,57],"8":[5,1,66],"9":[1,1,116],"10":[1,1,128],"11":[1,1,29],"12":[1,1,84],"13":[1,1,27],"14":[1,1,167],"15":[1,1,42],"16":[5,1,19],"17":[6,1,32],"18":[2,1,67],"19":[5,1,206],"20":[2,1,20],"21":[3,2,76],"22":[3,2,126]},"averageFieldLength":[2.217391304347826,1.0869565217391304,90.82608695652173],"storedFields":{"0":{"href":"/client#polkadotclient","html":"\n

PolkadotClient interface shapes the top-level API for polkadot-api. Once we get a client using createClient function, we'll find the following:

\n
interface PolkadotClient {\n  /**\n   * Retrieve the ChainSpecData as it comes from the\n   * [JSON-RPC spec](https://paritytech.github.io/json-rpc-interface-spec/api/chainSpec.html)\n   */\n  getChainSpecData: () => Promise<ChainSpecData>\n \n  /**\n   * Observable that emits `BlockInfo` from the latest known finalized block.\n   * It's a multicast and stateful observable, that will synchronously replay\n   * its latest known state.\n   */\n  finalizedBlock$: Observable<BlockInfo>\n  /**\n   * @returns Latest known finalized block.\n   */\n  getFinalizedBlock: () => Promise<BlockInfo>\n \n  /**\n   * Observable that emits an Array of `BlockInfo`, being the first element the\n   * latest known best block, and the last element the latest known finalized\n   * block. It's a multicast and stateful observable, that will synchronously\n   * replay its latest known state. This array is an immutable data structure;\n   * i.e. a new array is emitted at every event but the reference to its\n   * children are stable if the children didn't change.\n   *\n   * Note that subscribing to this observable already supersedes the need of\n   * subscribing to `finalizedBlock$`, since the last element of the array will\n   * be the latest known finalized block.\n   */\n  bestBlocks$: Observable<BlockInfo[]>\n  /**\n   * @returns Array of `BlockInfo`, being the first element the latest\n   *          known best block, and the last element the latest known\n   *          finalized block.\n   */\n  getBestBlocks: () => Promise<BlockInfo[]>\n \n  /**\n   * Observable to watch Block Body.\n   *\n   * @param hash  It can be a block hash, `"finalized"`, or `"best"`\n   * @returns Observable to watch a block body. There'll be just one event\n   *          with the payload and the observable will complete.\n   */\n  watchBlockBody: (hash: string) => Observable<HexString[]>\n  /**\n   * Get Block Body (Promise-based)\n   *\n   * @param hash  It can be a block hash, `"finalized"`, or `"best"`\n   * @returns Block body.\n   */\n  getBlockBody: (hash: string) => Promise<HexString[]>\n \n  /**\n   * Get Block Header (Promise-based)\n   *\n   * @param hash  It can be a block hash, `"finalized"` (default), or\n   *              `"best"`\n   * @returns Block hash.\n   */\n  getBlockHeader: (hash?: string) => Promise<BlockHeader>\n \n  /**\n   * Broadcast a transaction (Promise-based)\n   *\n   * @param transaction  SCALE-encoded tx to broadcast.\n   * @param at           It can be a block hash, `"finalized"`, or `"best"`.\n   *                     That block will be used to verify the validity of\n   *                     the tx, retrieve the next nonce,\n   *                     and create the mortality taking that block into\n   *                     account.\n   */\n  submit: (\n    transaction: HexString,\n    at?: HexString,\n  ) => Promise<TxFinalizedPayload>\n  /**\n   * Broadcast a transaction and returns an Observable. The observable will\n   * complete as soon as the transaction is in a finalized block.\n   *\n   * @param transaction  SCALE-encoded tx to broadcast.\n   * @param at           It can be a block hash, `"finalized"`, or `"best"`.\n   *                     That block will be used to verify the validity of\n   *                     the tx, retrieve the next nonce,\n   *                     and create the mortality taking that block into\n   *                     account.\n   */\n  submitAndWatch: (\n    transaction: HexString,\n    at?: HexString,\n  ) => Observable<TxBroadcastEvent>\n \n  /**\n   * Returns an instance of a `TypedApi`\n   *\n   * @param descriptors  Pass descriptors from `@polkadot-api/descriptors`\n   *                     generated by `papi` CLI.\n   */\n  getTypedApi: <D extends Descriptors>(descriptors: D) => TypedApi<D>\n \n  /**\n   * This will `unfollow` the provider, disconnect and error every subscription.\n   * After calling it nothing can be done with the client.\n   */\n  destroy: () => void\n \n  /**\n   * This API is meant as an "escape hatch" to allow access to debug endpoints\n   * such as `system_version`, and other useful endpoints that are not spec\n   * compliant.\n   *\n   * @example\n   *\n   *   const systemVersion = await client._request<string>("system_version", [])\n   *   const myFancyThhing = await client._request<\n   *     { value: string },\n   *     [id: number]\n   *   >("very_fancy", [1714])\n   *\n   */\n  _request: <Reply = any, Params extends Array<any> = any[]>(\n    method: string,\n    params: Params,\n  ) => Promise<Reply>\n}
\n

As one can note, PolkadotClient heavily relies on rxjs' Observable, used as well under the hood of Promise-based methods. Every method is fairly straight-forward and already documented exhaustively, except for getTypedApi. Let's dive into it.

","isPage":true,"text":"\nPolkadotClient interface shapes the top-level API for polkadot-api. Once we get a client using createClient function, we'll find the following:\ninterface PolkadotClient {\n /**\n * Retrieve the ChainSpecData as it comes from the\n * [JSON-RPC spec](https://paritytech.github.io/json-rpc-interface-spec/api/chainSpec.html)\n */\n getChainSpecData: () => Promise<ChainSpecData>\n \n /**\n * Observable that emits `BlockInfo` from the latest known finalized block.\n * It's a multicast and stateful observable, that will synchronously replay\n * its latest known state.\n */\n finalizedBlock$: Observable<BlockInfo>\n /**\n * @returns Latest known finalized block.\n */\n getFinalizedBlock: () => Promise<BlockInfo>\n \n /**\n * Observable that emits an Array of `BlockInfo`, being the first element the\n * latest known best block, and the last element the latest known finalized\n * block. It's a multicast and stateful observable, that will synchronously\n * replay its latest known state. This array is an immutable data structure;\n * i.e. a new array is emitted at every event but the reference to its\n * children are stable if the children didn't change.\n *\n * Note that subscribing to this observable already supersedes the need of\n * subscribing to `finalizedBlock$`, since the last element of the array will\n * be the latest known finalized block.\n */\n bestBlocks$: Observable<BlockInfo[]>\n /**\n * @returns Array of `BlockInfo`, being the first element the latest\n * known best block, and the last element the latest known\n * finalized block.\n */\n getBestBlocks: () => Promise<BlockInfo[]>\n \n /**\n * Observable to watch Block Body.\n *\n * @param hash It can be a block hash, `"finalized"`, or `"best"`\n * @returns Observable to watch a block body. There'll be just one event\n * with the payload and the observable will complete.\n */\n watchBlockBody: (hash: string) => Observable<HexString[]>\n /**\n * Get Block Body (Promise-based)\n *\n * @param hash It can be a block hash, `"finalized"`, or `"best"`\n * @returns Block body.\n */\n getBlockBody: (hash: string) => Promise<HexString[]>\n \n /**\n * Get Block Header (Promise-based)\n *\n * @param hash It can be a block hash, `"finalized"` (default), or\n * `"best"`\n * @returns Block hash.\n */\n getBlockHeader: (hash?: string) => Promise<BlockHeader>\n \n /**\n * Broadcast a transaction (Promise-based)\n *\n * @param transaction SCALE-encoded tx to broadcast.\n * @param at It can be a block hash, `"finalized"`, or `"best"`.\n * That block will be used to verify the validity of\n * the tx, retrieve the next nonce,\n * and create the mortality taking that block into\n * account.\n */\n submit: (\n transaction: HexString,\n at?: HexString,\n ) => Promise<TxFinalizedPayload>\n /**\n * Broadcast a transaction and returns an Observable. The observable will\n * complete as soon as the transaction is in a finalized block.\n *\n * @param transaction SCALE-encoded tx to broadcast.\n * @param at It can be a block hash, `"finalized"`, or `"best"`.\n * That block will be used to verify the validity of\n * the tx, retrieve the next nonce,\n * and create the mortality taking that block into\n * account.\n */\n submitAndWatch: (\n transaction: HexString,\n at?: HexString,\n ) => Observable<TxBroadcastEvent>\n \n /**\n * Returns an instance of a `TypedApi`\n *\n * @param descriptors Pass descriptors from `@polkadot-api/descriptors`\n * generated by `papi` CLI.\n */\n getTypedApi: <D extends Descriptors>(descriptors: D) => TypedApi<D>\n \n /**\n * This will `unfollow` the provider, disconnect and error every subscription.\n * After calling it nothing can be done with the client.\n */\n destroy: () => void\n \n /**\n * This API is meant as an "escape hatch" to allow access to debug endpoints\n * such as `system_version`, and other useful endpoints that are not spec\n * compliant.\n *\n * @example\n *\n * const systemVersion = await client._request<string>("system_version", [])\n * const myFancyThhing = await client._request<\n * { value: string },\n * [id: number]\n * >("very_fancy", [1714])\n *\n */\n _request: <Reply = any, Params extends Array<any> = any[]>(\n method: string,\n params: Params,\n ) => Promise<Reply>\n}\nAs one can note, PolkadotClient heavily relies on rxjs' Observable, used as well under the hood of Promise-based methods. Every method is fairly straight-forward and already documented exhaustively, except for getTypedApi. Let's dive into it.","title":"PolkadotClient","titles":[]},"1":{"href":"/codegen#codegen","html":"\n

Technically, to connect to a chain, all you need is just the provider. But to interact with it, you need to know the list of storage, runtime, and transaction calls and their types.

\n

During runtime, the library can request the metadata for the chain it's connected to, and from this, it generates all the codecs to interact with it. But as a developer, you need to get that information beforehand.

\n

Polkadot-API has a CLI that downloads the metadata for a chain and then uses that metadata to generate all the type descriptors.

\n
> npx papi add --help\nUsage: polkadot-api add [options] <key>\n \nAdd a new chain spec to the list\n \nArguments:\n  key                         Key identifier for the chain spec\n \nOptions:\n  --config <filename>         Source for the config file\n  -f, --file <filename>       Source from metadata encoded file\n  -w, --wsUrl <URL>           Source from websocket URL\n  -c, --chainSpec <filename>  Source from chain spec file\n  -n, --name <name>           Source from a well-known chain (choices: "polkadot", "ksmcc3", "rococo_v2_2", "westend2")\n  --no-persist                Do not persist the metadata as a file\n  -h, --help                  display help for command
\n

papi add registers a new chain. It requires a key, which is the JS variable name the codegen will create, and a source (-f, -w, -c, or -n). The command stores this information for later use into a configuration file polkadot-api.json and then downloads the fresh metadata into a file ${key}.scale.

\n

You can add as many chains as you want, but each has to have a unique key (which must be a valid JS variable name).

\n

The CLI can then be used to generate the type descriptors for all of the added chains through the generate command.

\n
npx papi generate\n# `generate` is the default command, so you can just run\nnpx papi
\n

It's recommended to add papi to the postinstall script in package.json to have it automatically generate the code after installation:

\n
{\n  // ...\n  "scripts": {\n    // ...\n    "postinstall": "papi"\n  }\n}
\n

The code is generated into the @polkadot-api/descriptors node modules package

\n\n","isPage":true,"text":"\nTechnically, to connect to a chain, all you need is just the provider. But to interact with it, you need to know the list of storage, runtime, and transaction calls and their types.\nDuring runtime, the library can request the metadata for the chain it's connected to, and from this, it generates all the codecs to interact with it. But as a developer, you need to get that information beforehand.\nPolkadot-API has a CLI that downloads the metadata for a chain and then uses that metadata to generate all the type descriptors.\n> npx papi add --help\nUsage: polkadot-api add [options] <key>\n \nAdd a new chain spec to the list\n \nArguments:\n key Key identifier for the chain spec\n \nOptions:\n --config <filename> Source for the config file\n -f, --file <filename> Source from metadata encoded file\n -w, --wsUrl <URL> Source from websocket URL\n -c, --chainSpec <filename> Source from chain spec file\n -n, --name <name> Source from a well-known chain (choices: "polkadot", "ksmcc3", "rococo_v2_2", "westend2")\n --no-persist Do not persist the metadata as a file\n -h, --help display help for command\npapi add registers a new chain. It requires a key, which is the JS variable name the codegen will create, and a source (-f, -w, -c, or -n). The command stores this information for later use into a configuration file polkadot-api.json and then downloads the fresh metadata into a file ${key}.scale.\nYou can add as many chains as you want, but each has to have a unique key (which must be a valid JS variable name).\nThe CLI can then be used to generate the type descriptors for all of the added chains through the generate command.\nnpx papi generate\n# `generate` is the default command, so you can just run\nnpx papi\nIt's recommended to add papi to the postinstall script in package.json to have it automatically generate the code after installation:\n{\n // ...\n "scripts": {\n // ...\n "postinstall": "papi"\n }\n}\nThe code is generated into the @polkadot-api/descriptors node modules package\nSome package managers clean the node_modules folder after installing or removing dependencies. When that happens, run the codegen again.\n","title":"Codegen","titles":[]},"2":{"href":"/codegen#contents","html":"\n

The generated code contains all of the types extracted from the metadata of all chains:

\n\n

These are consumed by getTypedApi(), which allows the IDE to reference any of these calls with autocompletion, etc. At runtime, it also contains the checksum of each of these calls, so that it can detect incompatibilities with the chain it's connected to.

\n

The types are anonymous (they don't have a name in the metadata), but PolkadotAPI has a directory of well-known types for some of the most widely used Enums. If a chain is using one of these well-known types, it's also generated and exported.

\n

In the event that there are two chains with the two well-known types that have the same name but they are different, then the key is appended at the beginning of the type. For instance, if two chains dot and ksm might have a slightly different PreimageRequestStatus, in that case, the codegen exports DotPreimageRequestStatus and KsmPreimageRequestStatus.

\n","isPage":false,"text":"\nThe generated code contains all of the types extracted from the metadata of all chains:\n\nFor every pallet:\n\nStorage queries\nTransactions\nEvents\nErrors\nConstants\n\n\nEvery runtime call\n\nThese are consumed by getTypedApi(), which allows the IDE to reference any of these calls with autocompletion, etc. At runtime, it also contains the checksum of each of these calls, so that it can detect incompatibilities with the chain it's connected to.\nThe types are anonymous (they don't have a name in the metadata), but PolkadotAPI has a directory of well-known types for some of the most widely used Enums. If a chain is using one of these well-known types, it's also generated and exported.\nIn the event that there are two chains with the two well-known types that have the same name but they are different, then the key is appended at the beginning of the type. For instance, if two chains dot and ksm might have a slightly different PreimageRequestStatus, in that case, the codegen exports DotPreimageRequestStatus and KsmPreimageRequestStatus.\n","title":"Contents","titles":["Codegen"]},"3":{"href":"/codegen#usage","html":"\n

Import from @polkadot-api/descriptors every chain and type that you need, then use it through getTypedApi().

\n
import {\n  dot,\n  ksm,\n  XcmVersionedMultiLocation,\n  XcmVersionedXcm,\n  XcmV2Instruction,\n  XcmV2MultilocationJunctions,\n} from "@polkadot-api/descriptors"\n \n// ...\n \nconst dotClient = createClient(scProvider(WellKnownChain.polkadot).relayChain)\nconst ksmClient = createClient(scProvider(WellKnownChain.ksmcc3).relayChain)\n \nconst dotApi = dotClient.getTypedApi(dot)\nconst ksmApi = ksmClient.getTypedApi(ksm)\n \nconst xcmSendTx = dotApi.tx.XcmPallet.send({\n  dest: XcmVersionedMultiLocation.V2({\n    parents: 0,\n    interior: XcmV2MultilocationJunctions.Here(),\n  }),\n  message: XcmVersionedXcm.V2([XcmV2Instruction.ClearOrigin()]),\n})\n \nconst encodedData = await xcmSendTx.getEncodedData()\n \nconst finalizedCall = await xcmSendTx.signAndSubmit(signer)
\n","isPage":false,"text":"\nImport from @polkadot-api/descriptors every chain and type that you need, then use it through getTypedApi().\nimport {\n dot,\n ksm,\n XcmVersionedMultiLocation,\n XcmVersionedXcm,\n XcmV2Instruction,\n XcmV2MultilocationJunctions,\n} from "@polkadot-api/descriptors"\n \n// ...\n \nconst dotClient = createClient(scProvider(WellKnownChain.polkadot).relayChain)\nconst ksmClient = createClient(scProvider(WellKnownChain.ksmcc3).relayChain)\n \nconst dotApi = dotClient.getTypedApi(dot)\nconst ksmApi = ksmClient.getTypedApi(ksm)\n \nconst xcmSendTx = dotApi.tx.XcmPallet.send({\n dest: XcmVersionedMultiLocation.V2({\n parents: 0,\n interior: XcmV2MultilocationJunctions.Here(),\n }),\n message: XcmVersionedXcm.V2([XcmV2Instruction.ClearOrigin()]),\n})\n \nconst encodedData = await xcmSendTx.getEncodedData()\n \nconst finalizedCall = await xcmSendTx.signAndSubmit(signer)\ngetTypedApi has nearly no cost at runtime, so it can be safely called many times.","title":"Usage","titles":["Codegen"]},"4":{"href":"/providers#providers","html":"\n

The entry point of Polkadot-API, createClient(provider) requires one JsonRpcProvider, which lets Polkadot-API communicate with a node. It's a function with the following shape:

\n
interface JsonRpcProvider {\n    (onMessage: (message: string) => void) => JsonRpcConnection;\n}\n \ninterface JsonRpcConnection {\n    send: (message: string) => void;\n    disconnect: () => void;\n}
\n

Calling it will initiate a connection. Messages coming from the service will come through the onMessage call, and the returned connection handle can be used to send messages or terminate the connection.

\n

Polkadot-API offers a couple of providers for some of the most used ways of connecting to a chain:

\n\n

The JsonRpcProvider interface is designed so that it can be easily enhanced: You can wrap any JsonRpcProvider with another one that adds in more features, such as logging, statistics, or error recovery.

\n","isPage":true,"text":"\nThe entry point of Polkadot-API, createClient(provider) requires one JsonRpcProvider, which lets Polkadot-API communicate with a node. It's a function with the following shape:\ninterface JsonRpcProvider {\n (onMessage: (message: string) => void) => JsonRpcConnection;\n}\n \ninterface JsonRpcConnection {\n send: (message: string) => void;\n disconnect: () => void;\n}\nCalling it will initiate a connection. Messages coming from the service will come through the onMessage call, and the returned connection handle can be used to send messages or terminate the connection.\nPolkadot-API offers a couple of providers for some of the most used ways of connecting to a chain:\n\nWebSocketProvider(uri: string) from polkadot-api/ws-provider/web or polkadot-api/ws-provider/node to connect through WebSocket.\ngetSmProvider(chain: smoldot.Chain) from polkadot-api/sm-provider to connect through Smoldot.\n\nThe JsonRpcProvider interface is designed so that it can be easily enhanced: You can wrap any JsonRpcProvider with another one that adds in more features, such as logging, statistics, or error recovery.\n","title":"Providers","titles":[]},"5":{"href":"/providers#logs-provider","html":"\n

Polkadot-API has a subpackage polkadot-api/logs-provider that can be used to create a provider that will replay node messages from a log file (logsProvider), along with a provider enhancer that can be used to generate the logs consumed by logsProvider: withLogsRecorder.

\n
// 1. recording logs\nimport { createClient } from "polkadot-api"\nimport { withLogsRecorder } from "polkadot-api/logs-provider"\nimport { WebSocketProvider } from "polkadot-api/ws-provider/node"\n \nconst wsProvider = WebSocketProvider("wss://example.url")\n// Using console.log to output each line, but you could e.g. write it directly to a\n// file or push into an array\nconst provider = withLogsRecorder((line) => console.log(line), wsProvider)\nconst client = createClient(provider)
\n
// 2. replaying logs\nimport { createClient } from "polkadot-api"\nimport { logsProvider } from "polkadot-api/logs-provider"\nimport logs from "./readLogs"\n \nconst provider = logsProvider(logs)\nconst client = createClient(provider)
\n

This can be useful to debug specific scenarios without needing to depend on an external source.

","isPage":false,"text":"\nPolkadot-API has a subpackage polkadot-api/logs-provider that can be used to create a provider that will replay node messages from a log file (logsProvider), along with a provider enhancer that can be used to generate the logs consumed by logsProvider: withLogsRecorder.\n// 1. recording logs\nimport { createClient } from "polkadot-api"\nimport { withLogsRecorder } from "polkadot-api/logs-provider"\nimport { WebSocketProvider } from "polkadot-api/ws-provider/node"\n \nconst wsProvider = WebSocketProvider("wss://example.url")\n// Using console.log to output each line, but you could e.g. write it directly to a\n// file or push into an array\nconst provider = withLogsRecorder((line) => console.log(line), wsProvider)\nconst client = createClient(provider)\n// 2. replaying logs\nimport { createClient } from "polkadot-api"\nimport { logsProvider } from "polkadot-api/logs-provider"\nimport logs from "./readLogs"\n \nconst provider = logsProvider(logs)\nconst client = createClient(provider)\nThis can be useful to debug specific scenarios without needing to depend on an external source.","title":"Logs provider","titles":["Providers"]},"6":{"href":"/signers#signers","html":"\n

For transactions, the generated descriptors and its corresponding typed API are needed to create the transaction extrinsics, but for these transactions to be signed, we also need a signer, which is the responsible of taking it the call data and signing it.

\n

Every method on Polkadot-API that needs to sign something, takes in a signer with the following interface:

\n
interface PolkadotSigner {\n  publicKey: Uint8Array\n  sign: (\n    callData: Uint8Array,\n    signedExtensions: Record<\n      string,\n      {\n        identifier: string\n        value: Uint8Array\n        additionalSigned: Uint8Array\n      }\n    >,\n    metadata: Uint8Array,\n    atBlockNumber: number,\n    hasher?: (data: Uint8Array) => Uint8Array,\n  ) => Promise<Uint8Array>\n}
\n

This interface is generic to signing transactions for the chain.

\n","isPage":true,"text":"\nFor transactions, the generated descriptors and its corresponding typed API are needed to create the transaction extrinsics, but for these transactions to be signed, we also need a signer, which is the responsible of taking it the call data and signing it.\nEvery method on Polkadot-API that needs to sign something, takes in a signer with the following interface:\ninterface PolkadotSigner {\n publicKey: Uint8Array\n sign: (\n callData: Uint8Array,\n signedExtensions: Record<\n string,\n {\n identifier: string\n value: Uint8Array\n additionalSigned: Uint8Array\n }\n >,\n metadata: Uint8Array,\n atBlockNumber: number,\n hasher?: (data: Uint8Array) => Uint8Array,\n ) => Promise<Uint8Array>\n}\nThis interface is generic to signing transactions for the chain.\n","title":"Signers","titles":[]},"7":{"href":"/signers#polkadotsigner-from-a-browser-extension","html":"\n

If you want to use a compatible extension as a signer, Polkadot-API has a subpath with a couple of utilities to help with this: polkadot-api/pjs-signer.

\n
import {\n  getInjectedExtensions,\n  connectInjectedExtension,\n} from "polkadot-api/pjs-signer"\n \n// Get the list of installed extensions\nconst extensions: string[] = getInjectedExtensions()\n \n// Connect to an extension\nconst selectedExtension: InjectedExtension = await connectInjectedExtension(\n  extensions[0],\n)\n \n// Get accounts registered in the extension\nconst accounts: InjectedPolkadotAccount[] = selectedExtension.getAccounts()\n \n// The signer for each account is in the `polkadotSigner` property of `InjectedPolkadotAccount`\nconst polkadotSigner = accounts[0].polkadotSigner
\n","isPage":false,"text":"\nIf you want to use a compatible extension as a signer, Polkadot-API has a subpath with a couple of utilities to help with this: polkadot-api/pjs-signer.\nimport {\n getInjectedExtensions,\n connectInjectedExtension,\n} from "polkadot-api/pjs-signer"\n \n// Get the list of installed extensions\nconst extensions: string[] = getInjectedExtensions()\n \n// Connect to an extension\nconst selectedExtension: InjectedExtension = await connectInjectedExtension(\n extensions[0],\n)\n \n// Get accounts registered in the extension\nconst accounts: InjectedPolkadotAccount[] = selectedExtension.getAccounts()\n \n// The signer for each account is in the `polkadotSigner` property of `InjectedPolkadotAccount`\nconst polkadotSigner = accounts[0].polkadotSigner\n","title":"PolkadotSigner from a browser extension","titles":["Signers"]},"8":{"href":"/signers#polkadotsigner-from-generic-signing-function","html":"\n

If you have a signer which takes some arbitrary data and just signs it with one of the supported algorithms, you can create a PolkadotSigner with the function getPolkadotSigner from polkadot-api/signer:

\n
export function getPolkadotSigner(\n  publicKey: Uint8Array,\n  signingType: "Ecdsa" | "Ed25519" | "Sr25519",\n  sign: (input: Uint8Array) => Promise<Uint8Array> | Uint8Array,\n): PolkadotSigner
\n

For example, using hdkd from @polkadot-labs:

\n
import { sr25519CreateDerive } from "@polkadot-labs/hdkd"\nimport {\n  sr25519,\n  DEV_PHRASE,\n  entropyToMiniSecret,\n  mnemonicToEntropy,\n} from "@polkadot-labs/hdkd-helpers"\n \nconst entropy = mnemonicToEntropy(MNEMONIC)\nconst miniSecret = entropyToMiniSecret(entropy)\nconst derive = sr25519CreateDerive(miniSecret)\nconst keypair = derive("//Alice")\n \nconst polkadotSigner = getPolkadotSigner(\n  hdkdKeyPair.publicKey,\n  "Sr25519",\n  hdkdKeyPair.sign,\n)
","isPage":false,"text":"\nIf you have a signer which takes some arbitrary data and just signs it with one of the supported algorithms, you can create a PolkadotSigner with the function getPolkadotSigner from polkadot-api/signer:\nexport function getPolkadotSigner(\n publicKey: Uint8Array,\n signingType: "Ecdsa" | "Ed25519" | "Sr25519",\n sign: (input: Uint8Array) => Promise<Uint8Array> | Uint8Array,\n): PolkadotSigner\nFor example, using hdkd from @polkadot-labs:\nimport { sr25519CreateDerive } from "@polkadot-labs/hdkd"\nimport {\n sr25519,\n DEV_PHRASE,\n entropyToMiniSecret,\n mnemonicToEntropy,\n} from "@polkadot-labs/hdkd-helpers"\n \nconst entropy = mnemonicToEntropy(MNEMONIC)\nconst miniSecret = entropyToMiniSecret(entropy)\nconst derive = sr25519CreateDerive(miniSecret)\nconst keypair = derive("//Alice")\n \nconst polkadotSigner = getPolkadotSigner(\n hdkdKeyPair.publicKey,\n "Sr25519",\n hdkdKeyPair.sign,\n)","title":"PolkadotSigner from generic signing function","titles":["Signers"]},"9":{"href":"/typed#typedapi","html":"\n

The TypedApi allows to interact with the runtime metadata easily and with a great developer experience. It'll allow to make storage calls, create transactions, etc. It uses the descriptors generated by PAPI CLI (see Codegen section for a deeper explanation) to generate the types used at devel time. TypedApi object looks like:

\n
type TypedApi = {\n  query: StorageApi\n  tx: TxApi\n  event: EvApi\n  apis: RuntimeCallsApi\n  constants: ConstApi\n  runtime: RuntimeApi\n}
\n

Let's start with the simplest one, runtime field. It's just:

\n
type RuntimeApi = Observable<Runtime> & {\n  latest: () => Promise<Runtime>\n}
\n

It's an observable that holds the current runtime information for that specific client, with a latest function to be able to wait for the runtime to load (it'll be helpful for some functions that need a Runtime, see this recipe).

\n

All the other fields are a Record<string, Record<string, ???>>. The first index defines the pallet that we're looking for, and the second one defines which query/tx/event/api/constant are we looking for inside that pallet. Let's see, one by one, what do we find inside of it!

\n","isPage":true,"text":"\nThe TypedApi allows to interact with the runtime metadata easily and with a great developer experience. It'll allow to make storage calls, create transactions, etc. It uses the descriptors generated by PAPI CLI (see Codegen section for a deeper explanation) to generate the types used at devel time. TypedApi object looks like:\ntype TypedApi = {\n query: StorageApi\n tx: TxApi\n event: EvApi\n apis: RuntimeCallsApi\n constants: ConstApi\n runtime: RuntimeApi\n}\nLet's start with the simplest one, runtime field. It's just:\ntype RuntimeApi = Observable<Runtime> & {\n latest: () => Promise<Runtime>\n}\nIt's an observable that holds the current runtime information for that specific client, with a latest function to be able to wait for the runtime to load (it'll be helpful for some functions that need a Runtime, see this recipe).\nAll the other fields are a Record<string, Record<string, ???>>. The first index defines the pallet that we're looking for, and the second one defines which query/tx/event/api/constant are we looking for inside that pallet. Let's see, one by one, what do we find inside of it!\n","title":"TypedApi","titles":[]},"10":{"href":"/typed#iscompatible","html":"\n

First of all, let's understand isCompatible field. It's under each query/tx/event/api/constant in any runtime. After generating the descriptors (see Codegen section), we have a typed interface to every interaction with the chain. Nevertheless, breaking runtime upgrades might hit the runtime between developing and the runtime execution of your app. isCompatible enables you to check on runtime if there was a breaking upgrade that hit your particular method.

\n

Let's see its interface, and an example.

\n
interface IsCompatible {\n  (): Promise<boolean>\n  (runtime: Runtime): boolean\n}
\n

For example, let's use typedApi.query.System.Number. It's a simple query, we'll see in the next pages how to interact with it. We're only interested on isCompatible.

\n
const query = typedApi.query.System.Number\nconst runtime = await typedApi.runtime.latest() // we already learnt about it!\n \n// in this case `isCompatible` returns a Promise<boolean>\nif (await query.isCompatible()) {\n  // do your stuff, the query is compatible\n} else {\n  // the call is not compatible!\n  // keep an eye on what you do\n}\n \n// another option would be to use the already loaded runtime\n// in this case, `isCompatible` is sync, and returns a boolean\nif (query.isCompatible(runtime)) {\n  // do your stuff, the query is compatible\n} else {\n  // the call is not compatible!\n  // keep an eye on what you do\n}
\n

As you can see, isCompatible is really powerful since we can prepare for runtime upgrades seamlessly using PAPI. See this recipe for an example!

\n

Let's continue with the rest of the fields!

","isPage":false,"text":"\nFirst of all, let's understand isCompatible field. It's under each query/tx/event/api/constant in any runtime. After generating the descriptors (see Codegen section), we have a typed interface to every interaction with the chain. Nevertheless, breaking runtime upgrades might hit the runtime between developing and the runtime execution of your app. isCompatible enables you to check on runtime if there was a breaking upgrade that hit your particular method.\nLet's see its interface, and an example.\ninterface IsCompatible {\n (): Promise<boolean>\n (runtime: Runtime): boolean\n}\nFor example, let's use typedApi.query.System.Number. It's a simple query, we'll see in the next pages how to interact with it. We're only interested on isCompatible.\nconst query = typedApi.query.System.Number\nconst runtime = await typedApi.runtime.latest() // we already learnt about it!\n \n// in this case `isCompatible` returns a Promise<boolean>\nif (await query.isCompatible()) {\n // do your stuff, the query is compatible\n} else {\n // the call is not compatible!\n // keep an eye on what you do\n}\n \n// another option would be to use the already loaded runtime\n// in this case, `isCompatible` is sync, and returns a boolean\nif (query.isCompatible(runtime)) {\n // do your stuff, the query is compatible\n} else {\n // the call is not compatible!\n // keep an eye on what you do\n}\nAs you can see, isCompatible is really powerful since we can prepare for runtime upgrades seamlessly using PAPI. See this recipe for an example!\nLet's continue with the rest of the fields!","title":"isCompatible","titles":["TypedApi"]},"11":{"href":"/types#types","html":"\n

All the types defined in the metadata of a chain are anonymous: They represent the structure of the data, down to the primitive types.

\n

Polkadot-API has some types defined that make it easier working with chain data.

\n","isPage":true,"text":"\nAll the types defined in the metadata of a chain are anonymous: They represent the structure of the data, down to the primitive types.\nPolkadot-API has some types defined that make it easier working with chain data.\n","title":"Types","titles":[]},"12":{"href":"/types#ss58string","html":"\n

Binary values tagged as a accounts are abstracted as SS58String. The type SS58String exported by Polkadot-API is an alias of string, but it's indicative that the string that it expects is an SS58-formatted string. The value will be encoded to the public address in binary.

\n

When PolkadotAPI receives an SS58String as a parameter, it can be in any valid format. But the SS58String returned from any of the methods will always be in the format declared by the chain's metadata.

\n
const dotApi = client.getTypedApi(dot)\n \nconst [proxies, deposit] = await dotApi.query.Proxy.Proxies.getValue(\n  // HDX format (for demo purposes that it accepts any SS58 string, regardless of the chain)\n  "7LE64AxmGixNsxFs1rdsDkER5nuuQ28MbrSS7JtHwRmdcdam",\n)\n \nconsole.log(proxies[0].delegate)\n// "12R1XCdgkHysv8Y4ntiXguo4eUYHXjQTmfRjL8FbmezsG71j", which is polkadot's format
\n","isPage":false,"text":"\nBinary values tagged as a accounts are abstracted as SS58String. The type SS58String exported by Polkadot-API is an alias of string, but it's indicative that the string that it expects is an SS58-formatted string. The value will be encoded to the public address in binary.\nWhen PolkadotAPI receives an SS58String as a parameter, it can be in any valid format. But the SS58String returned from any of the methods will always be in the format declared by the chain's metadata.\nconst dotApi = client.getTypedApi(dot)\n \nconst [proxies, deposit] = await dotApi.query.Proxy.Proxies.getValue(\n // HDX format (for demo purposes that it accepts any SS58 string, regardless of the chain)\n "7LE64AxmGixNsxFs1rdsDkER5nuuQ28MbrSS7JtHwRmdcdam",\n)\n \nconsole.log(proxies[0].delegate)\n// "12R1XCdgkHysv8Y4ntiXguo4eUYHXjQTmfRjL8FbmezsG71j", which is polkadot's format\n","title":"SS58String","titles":["Types"]},"13":{"href":"/types#hexstring","html":"\n

Another alias of string, but indicates that the value is a valid hexadecimal string. It accepts the string with or without the 0x prefix, but HexString returned from methods always have 0x.

\n","isPage":false,"text":"\nAnother alias of string, but indicates that the value is a valid hexadecimal string. It accepts the string with or without the 0x prefix, but HexString returned from methods always have 0x.\n","title":"HexString","titles":["Types"]},"14":{"href":"/types#enum","html":"\n

Enums in the chain are represented as { type: string, value: T }. As many of the types have nested enums that would make it hard to work with (both creating these types and also reading them), Polkadot-API helps through a set of utilites.

\n

First of all, the Enums that are widely used across multiple chains are in a directory of well-known types, and they are represented with a descriptive name. A few examples: MultiAddress, BalanceStatus, IdentityJudgement, and many of the XCM pallet types: XcmV3Junction, XcmV3MultiassetFungibility, etc.

\n

For these types, you can import them directly from the generated code and use them by calling their type. The call signature shown by an IDE will tell you exactly which enum types you should use to write your value. The following video shows how it might look like:

\n\n

The enums that are not well-known types, they are anonymous. In that case, you will find something like the following in the call signature:

\n
(value: IEnum<{\n    transfer_allow_death: {\n        dest: MultiAddress;\n        value: bigint;\n    };\n    force_transfer: {\n        dest: MultiAddress;\n        value: bigint;\n        source: MultiAddress;\n    };\n    ... 4 more ...;\n    force_set_balance: {\n        ...;\n    };\n}>) => PolkadotRuntimeRuntimeCall
\n

This indicates that the parameter value is an enum, whose key will be either one of the keys of the object type (i.e. transfer_allow_death, force_transfer, ..., force_set_balance), and the type will be the value for that particular key.

\n

For these cases, you should use the function Enum(type, value), imported from polkadot-api. This has full type inference support, and creates an Enum object that can be used as a parameter of a call:

\n
dotApi.apis.TransactionPaymentCallApi.query_call_info(\n  PolkadotRuntimeRuntimeCall.Balances(\n    Enum("transfer_allow_death", { dest: MultiAddress.Id(address), value: 3n }),\n  ),\n  10,\n)
\n

When reading from Enums, these are objects with { type: string, value: unknown } with discriminated types based on the type (so if you do switch (enum.type) { you will have the correct value for the type).

\n","isPage":false,"text":"\nEnums in the chain are represented as { type: string, value: T }. As many of the types have nested enums that would make it hard to work with (both creating these types and also reading them), Polkadot-API helps through a set of utilites.\nFirst of all, the Enums that are widely used across multiple chains are in a directory of well-known types, and they are represented with a descriptive name. A few examples: MultiAddress, BalanceStatus, IdentityJudgement, and many of the XCM pallet types: XcmV3Junction, XcmV3MultiassetFungibility, etc.\nFor these types, you can import them directly from the generated code and use them by calling their type. The call signature shown by an IDE will tell you exactly which enum types you should use to write your value. The following video shows how it might look like:\n\nThe enums that are not well-known types, they are anonymous. In that case, you will find something like the following in the call signature:\n(value: IEnum<{\n transfer_allow_death: {\n dest: MultiAddress;\n value: bigint;\n };\n force_transfer: {\n dest: MultiAddress;\n value: bigint;\n source: MultiAddress;\n };\n ... 4 more ...;\n force_set_balance: {\n ...;\n };\n}>) => PolkadotRuntimeRuntimeCall\nThis indicates that the parameter value is an enum, whose key will be either one of the keys of the object type (i.e. transfer_allow_death, force_transfer, ..., force_set_balance), and the type will be the value for that particular key.\nFor these cases, you should use the function Enum(type, value), imported from polkadot-api. This has full type inference support, and creates an Enum object that can be used as a parameter of a call:\ndotApi.apis.TransactionPaymentCallApi.query_call_info(\n PolkadotRuntimeRuntimeCall.Balances(\n Enum("transfer_allow_death", { dest: MultiAddress.Id(address), value: 3n }),\n ),\n 10,\n)\nWhen reading from Enums, these are objects with { type: string, value: unknown } with discriminated types based on the type (so if you do switch (enum.type) { you will have the correct value for the type).\n","title":"Enum","titles":["Types"]},"15":{"href":"/types#binary","html":"\n

Any array of u8's is represented as Binary. This is a utility type that has a few functions to easily create binary data:

\n
Binary.fromBytes(new Uint8Array())\nBinary.fromHex("0b187a23c4f65d86c9a324b56f7e81aa")\nconst binary = Binary.fromText("Text that will be turned into binary")\n \nbinary.asBytes() // Uint8Array\nbinary.asHex() // "0x5465787420746861742077696c6c206265207475726e656420696e746f2062696e617279"\nbinary.asText() // "Text that will be turned into binary"
\n","isPage":false,"text":"\nAny array of u8's is represented as Binary. This is a utility type that has a few functions to easily create binary data:\nBinary.fromBytes(new Uint8Array())\nBinary.fromHex("0b187a23c4f65d86c9a324b56f7e81aa")\nconst binary = Binary.fromText("Text that will be turned into binary")\n \nbinary.asBytes() // Uint8Array\nbinary.asHex() // "0x5465787420746861742077696c6c206265207475726e656420696e746f2062696e617279"\nbinary.asText() // "Text that will be turned into binary"\n","title":"Binary","titles":["Types"]},"16":{"href":"/types#fixedsizebinaryl","html":"\n

Same as Binary, but when the chain metadata specifies a length. The length is shown as a type parameter, for reference.

\n","isPage":false,"text":"\nSame as Binary, but when the chain metadata specifies a length. The length is shown as a type parameter, for reference.\n","title":"FixedSizeBinary<L>","titles":["Types"]},"17":{"href":"/types#fixedsizearrayl-t","html":"\n

When the metadata has a type that's an array of a specific length, that's also shown as a FixedSizeArray<L, T>, which is a superset of Array<T>, except that it checks that the length must be L.

\n","isPage":false,"text":"\nWhen the metadata has a type that's an array of a specific length, that's also shown as a FixedSizeArray<L, T>, which is a superset of Array<T>, except that it checks that the length must be L.\n","title":"FixedSizeArray<L, T>","titles":["Types"]},"18":{"href":"/types#interface-types","html":"\n

The types returned from any call are available through the top-level exports

\n
import {\n  dot,\n  DotQueries,\n  DotCalls,\n  DotConstants,\n  DotErrors,\n  DotEvents,\n} from "@polkadot-api/descriptors"\n \n// Storage queries\nfunction processAccount(account: DotQueries["System"]["Account"]["Value"]) {\n  // ...\n}\nprocessAccount(await dotApi.query.System.Account.getValue("SS58Account"))\n \n// Constants\nfunction formatSS58Account(\n  value: DotConstants["System"]["SS58Prefix"],\n  account: Uint8Array,\n) {\n  // ...\n}\nformatSS58Account(await dotApi.constants.System.SS58Prefix(), new Uint8Array())\n \n// Transactions\nfunction performTransfer(\n  transfer: DotCalls["Balances"]["transfer_allow_death"],\n) {\n  return dotApi.tx.Balances.transfer_allow_death(transfer).signAndSubmit(signer)\n}\nperformTransfer({\n  dest: MultiAddress.Id("SS58Account"),\n  value: 100n,\n})\n \n// Events\nfunction reactToNewAccount(event: DotEvents["System"]["NewAccount"]) {\n  // ...\n}\n \n// Errors\nfunction logError(error: DotErrors["System"]["InvalidSpecName"]) {\n  // ...\n}
","isPage":false,"text":"\nThe types returned from any call are available through the top-level exports\nimport {\n dot,\n DotQueries,\n DotCalls,\n DotConstants,\n DotErrors,\n DotEvents,\n} from "@polkadot-api/descriptors"\n \n// Storage queries\nfunction processAccount(account: DotQueries["System"]["Account"]["Value"]) {\n // ...\n}\nprocessAccount(await dotApi.query.System.Account.getValue("SS58Account"))\n \n// Constants\nfunction formatSS58Account(\n value: DotConstants["System"]["SS58Prefix"],\n account: Uint8Array,\n) {\n // ...\n}\nformatSS58Account(await dotApi.constants.System.SS58Prefix(), new Uint8Array())\n \n// Transactions\nfunction performTransfer(\n transfer: DotCalls["Balances"]["transfer_allow_death"],\n) {\n return dotApi.tx.Balances.transfer_allow_death(transfer).signAndSubmit(signer)\n}\nperformTransfer({\n dest: MultiAddress.Id("SS58Account"),\n value: 100n,\n})\n \n// Events\nfunction reactToNewAccount(event: DotEvents["System"]["NewAccount"]) {\n // ...\n}\n \n// Errors\nfunction logError(error: DotErrors["System"]["InvalidSpecName"]) {\n // ...\n}","title":"Interface types","titles":["Types"]},"19":{"href":"/recipes/upgrade#preparing-for-a-runtime-upgrade","html":"\n

With Polkadot-API's support for multiple chains, you can make your dApp prepare for an upcoming runtime upgrade on a chain as long as you can get the metadata for that upgrade.

\n

As an example, let's imagine we have already set up the polkadot relay chain for our dApp

\n
npx papi add dot -n polkadot
\n

If you know of a node available through a websocket that has the runtime upgrade, you can download that metadata with the CLI:

\n
npx papi add nextDot -w wss://rpc-polkadot.exampleupdate.io/\nnpx papi generate
\n\n

Now on the code you can create two typed APIs for the same chain, and then use the compatibility check to use one or the other.

\n

To make it clear, the client is connected to one chain that's using one specific version of the runtime. You can create multiple typedApis for that connection, which just give you the types for each possible version of the runtime. Then you can use runtime compatibility checks to perform the operation on the correct descriptor.

\n
import { createClient } from "polkadot-api"\nimport { dot, nextDot, MultiAddress } from "@polkadot-api/descriptors"\nimport { chainSpec } from "polkadot-api/chains/polkadot"\nimport { startFromWorker } from "polkadot-api/smoldot/from-worker"\nimport SmWorker from "polkadot-api/smoldot/worker?worker"\n \nconst smoldot = startFromWorker(new SmWorker())\nconst chain = await smoldot.addChain({ chainSpec })\nconst client = createClient(getSmProvider(chain))\n \nconst dotApi = client.getTypedApi(dot)\nconst nextApi = client.getTypedApi(nextDot)\n \nfunction performTransfer() {\n  // check if we're running on the next version to run that first\n  if (await nextApi.tx.Balances.new_fancy_transfer.isCompatible()) {\n    nextApi.tx.Balances.new_fancy_transfer({\n      dest: MultiAddress.Id("addr"),\n      value: 5n,\n    })\n  } else {\n    // Otherwise perform the transfer the old way with the old descriptors\n    dotApi.tx.Balances.transfer_keep_alive({\n      dest: MultiAddress.Id("addr"),\n      value: 5n,\n    })\n  }\n}
\n

Furthermore, the runtime upgrade might happen while the dApp is running, and this will still work without needing to redo the connection. As soon as the upgrade is received, the compatible check will work as expected and the dApp will start using the next runtime.

\n

As a note, isCompatible is a function available on every interaction on the typedApi (queries, apis, constants, events, transactions). If used without any parameter it will return a Promise<boolean>, because it needs to wait for the runtime to be loaded before it can tell whether it's compatible or not.

\n

If you have multiple isCompatible checks that you don't want to wait for each one of them, you can first wait for the runtime to be loaded with await dotApi.runtime.latest(), and then pass this to isCompatible as a paramter. This will make isCompatible return synchronously.

","isPage":true,"text":"\nWith Polkadot-API's support for multiple chains, you can make your dApp prepare for an upcoming runtime upgrade on a chain as long as you can get the metadata for that upgrade.\nAs an example, let's imagine we have already set up the polkadot relay chain for our dApp\nnpx papi add dot -n polkadot\nIf you know of a node available through a websocket that has the runtime upgrade, you can download that metadata with the CLI:\nnpx papi add nextDot -w wss://rpc-polkadot.exampleupdate.io/\nnpx papi generate\nWe have in our roadmap to support downloading an upcoming metadata from a referenda link\nNow on the code you can create two typed APIs for the same chain, and then use the compatibility check to use one or the other.\nTo make it clear, the client is connected to one chain that's using one specific version of the runtime. You can create multiple typedApis for that connection, which just give you the types for each possible version of the runtime. Then you can use runtime compatibility checks to perform the operation on the correct descriptor.\nimport { createClient } from "polkadot-api"\nimport { dot, nextDot, MultiAddress } from "@polkadot-api/descriptors"\nimport { chainSpec } from "polkadot-api/chains/polkadot"\nimport { startFromWorker } from "polkadot-api/smoldot/from-worker"\nimport SmWorker from "polkadot-api/smoldot/worker?worker"\n \nconst smoldot = startFromWorker(new SmWorker())\nconst chain = await smoldot.addChain({ chainSpec })\nconst client = createClient(getSmProvider(chain))\n \nconst dotApi = client.getTypedApi(dot)\nconst nextApi = client.getTypedApi(nextDot)\n \nfunction performTransfer() {\n // check if we're running on the next version to run that first\n if (await nextApi.tx.Balances.new_fancy_transfer.isCompatible()) {\n nextApi.tx.Balances.new_fancy_transfer({\n dest: MultiAddress.Id("addr"),\n value: 5n,\n })\n } else {\n // Otherwise perform the transfer the old way with the old descriptors\n dotApi.tx.Balances.transfer_keep_alive({\n dest: MultiAddress.Id("addr"),\n value: 5n,\n })\n }\n}\nFurthermore, the runtime upgrade might happen while the dApp is running, and this will still work without needing to redo the connection. As soon as the upgrade is received, the compatible check will work as expected and the dApp will start using the next runtime.\nAs a note, isCompatible is a function available on every interaction on the typedApi (queries, apis, constants, events, transactions). If used without any parameter it will return a Promise<boolean>, because it needs to wait for the runtime to be loaded before it can tell whether it's compatible or not.\nIf you have multiple isCompatible checks that you don't want to wait for each one of them, you can first wait for the runtime to be loaded with await dotApi.runtime.latest(), and then pass this to isCompatible as a paramter. This will make isCompatible return synchronously.","title":"Preparing for a runtime upgrade","titles":[]},"20":{"href":"/typed/queries#storage-queries","html":"\n

For query we have mainly two different situations. There're two kinds of storage entries: entries with and without keys.

\n","isPage":true,"text":"\nFor query we have mainly two different situations. There're two kinds of storage entries: entries with and without keys.\n","title":"Storage queries","titles":[]},"21":{"href":"/typed/queries#entries-without-keys","html":"\n

For example, System.Number query (it returns the block number) has no keys to index it with. Therefore, under typedApi.System.Number we have the following structure:

\n
type CallOptions = Partial<{\n  at: string\n  signal: AbortSignal\n}>\n \ntype StorageEntryWithoutKeys<Payload> = {\n  isCompatible: IsCompatible\n  getValue: (options?: CallOptions) => Promise<Payload>\n  watchValue: (bestOrFinalized?: "best" | "finalized") => Observable<Payload>\n}
\n

As you might expect, getValue returns you the Payload for that particular query, allowing you to choose which block to query (at can be a blockHash, "finalized" (the default), or "best").

\n

On the other hand, watchValue function returns an Observable allows you to check the changes of a particular storage entry in "best" or "finalized" (the default) block.

\n","isPage":false,"text":"\nFor example, System.Number query (it returns the block number) has no keys to index it with. Therefore, under typedApi.System.Number we have the following structure:\ntype CallOptions = Partial<{\n at: string\n signal: AbortSignal\n}>\n \ntype StorageEntryWithoutKeys<Payload> = {\n isCompatible: IsCompatible\n getValue: (options?: CallOptions) => Promise<Payload>\n watchValue: (bestOrFinalized?: "best" | "finalized") => Observable<Payload>\n}\nAs you might expect, getValue returns you the Payload for that particular query, allowing you to choose which block to query (at can be a blockHash, "finalized" (the default), or "best").\nOn the other hand, watchValue function returns an Observable allows you to check the changes of a particular storage entry in "best" or "finalized" (the default) block.\n","title":"Entries without keys","titles":["Storage queries"]},"22":{"href":"/typed/queries#entries-with-keys","html":"\n

Similarely, we'll use the example of System.Account query (it returns the information of a particular Account). In this case, this storage query has a key to index it with, and therefore we find the following structure:

\n
type StorageEntryWithKeys<Args, Payload> = {\n  isCompatible: IsCompatible\n  getValue: (...args: [...Args, options?: CallOptions]) => Promise<Payload>\n  watchValue: (\n    ...args: [...Args, bestOrFinalized?: "best" | "finalized"]\n  ) => Observable<Payload>\n  getValues: (\n    keys: Array<[...Args]>,\n    options?: CallOptions,\n  ) => Promise<Array<Payload>>\n  getEntries: (\n    ...args: [PossibleParents<Args>, options?: CallOptions]\n  ) => Promise<\n    Array<{\n      keyArgs: Args\n      value: NonNullable<Payload>\n    }>\n  >\n}
\n

Both getValue and watchValue have the same behaviour as in the previous case, but they require you to pass all keys required for that storage query (in our example, an address). The same function arguments that are found in the no-keys situation can be passed at the end of the call to modify which block to query, etc. For example, a query with 3 args:

\n
typedApi.query.Pallet.Query.getValue(arg1, arg2, arg3, { at: "best" })
\n

getValues, instead, allows you to pass several keys (addresses in this case) to get a bunch of entries at the same time.

\n

getEntries allows you to get all entries without passing the keys. It has also the option to pass a subset of them. For example, imagine a query with 3 keys. You would have three options to call it:

\n
typedApi.query.Pallet.Query.getEntries({ at: "best" }) // no keys\ntypedApi.query.Pallet.Query.getEntries(arg1, { at: "finalized" }) // 1/3 keys\ntypedApi.query.Pallet.Query.getEntries(arg1, arg2, { at: "0x12345678" }) // 2/3 keys
","isPage":false,"text":"\nSimilarely, we'll use the example of System.Account query (it returns the information of a particular Account). In this case, this storage query has a key to index it with, and therefore we find the following structure:\ntype StorageEntryWithKeys<Args, Payload> = {\n isCompatible: IsCompatible\n getValue: (...args: [...Args, options?: CallOptions]) => Promise<Payload>\n watchValue: (\n ...args: [...Args, bestOrFinalized?: "best" | "finalized"]\n ) => Observable<Payload>\n getValues: (\n keys: Array<[...Args]>,\n options?: CallOptions,\n ) => Promise<Array<Payload>>\n getEntries: (\n ...args: [PossibleParents<Args>, options?: CallOptions]\n ) => Promise<\n Array<{\n keyArgs: Args\n value: NonNullable<Payload>\n }>\n >\n}\nBoth getValue and watchValue have the same behaviour as in the previous case, but they require you to pass all keys required for that storage query (in our example, an address). The same function arguments that are found in the no-keys situation can be passed at the end of the call to modify which block to query, etc. For example, a query with 3 args:\ntypedApi.query.Pallet.Query.getValue(arg1, arg2, arg3, { at: "best" })\ngetValues, instead, allows you to pass several keys (addresses in this case) to get a bunch of entries at the same time.\ngetEntries allows you to get all entries without passing the keys. It has also the option to pass a subset of them. For example, imagine a query with 3 keys. You would have three options to call it:\ntypedApi.query.Pallet.Query.getEntries({ at: "best" }) // no keys\ntypedApi.query.Pallet.Query.getEntries(arg1, { at: "finalized" }) // 1/3 keys\ntypedApi.query.Pallet.Query.getEntries(arg1, arg2, { at: "0x12345678" }) // 2/3 keys","title":"Entries with keys","titles":["Storage queries"]}},"dirtCount":0,"index":[["3",{"2":{"22":4}}],["3n",{"2":{"14":1}}],["5n",{"2":{"19":2}}],["4",{"2":{"14":1}}],["7le64axmgixnsxfs1rdsdker5nuuq28mbrss7jthwrmdcdam",{"2":{"12":1}}],["|",{"2":{"8":3,"21":1,"22":1}}],["100n",{"2":{"18":1}}],["10",{"2":{"14":1}}],["12r1xcdgkhysv8y4ntixguo4euyhxjqtmfrjl8fbmezsg71j",{"2":{"12":1}}],["1",{"2":{"5":1,"22":1}}],["1714",{"2":{"0":1}}],["0b187a23c4f65d86c9a324b56f7e81aa",{"2":{"15":1}}],["0x12345678",{"2":{"22":1}}],["0x5465787420746861742077696c6c206265207475726e656420696e746f2062696e617279",{"2":{"15":1}}],["0x",{"2":{"13":2}}],["0",{"2":{"3":1,"7":2,"12":1}}],["xcm",{"2":{"14":1}}],["xcmpallet",{"2":{"3":1}}],["xcmsendtx",{"2":{"3":3}}],["xcmv3multiassetfungibility",{"2":{"14":1}}],["xcmv3junction",{"2":{"14":1}}],["xcmv2multilocationjunctions",{"2":{"3":2}}],["xcmv2instruction",{"2":{"3":2}}],["xcmversionedxcm",{"2":{"3":2}}],["xcmversionedmultilocation",{"2":{"3":2}}],["x27",{"2":{"0":7,"1":2,"2":3,"4":1,"9":7,"10":8,"12":3,"15":1,"17":2,"19":6,"20":1,"22":1}}],["query",{"2":{"9":2,"10":9,"12":1,"14":1,"18":1,"20":1,"21":3,"22":14}}],["queries",{"0":{"20":1},"1":{"21":1,"22":1},"2":{"2":1,"18":1,"19":1}}],["quot",{"2":{"0":26,"1":14,"3":2,"5":14,"7":2,"8":14,"12":4,"14":2,"15":8,"18":28,"19":14,"21":12,"22":12}}],["$",{"2":{"1":1}}],["2",{"2":{"1":1,"5":1,"22":1}}],["kinds",{"2":{"20":1}}],["keep",{"2":{"10":2,"19":1}}],["keyargs",{"2":{"22":1}}],["keys",{"0":{"21":1,"22":1},"2":{"14":1,"20":1,"21":1,"22":9}}],["keypair",{"2":{"8":1}}],["key",{"2":{"1":6,"2":1,"14":2,"22":1}}],["ksmapi",{"2":{"3":1}}],["ksmclient",{"2":{"3":2}}],["ksmcc3",{"2":{"1":1,"3":1}}],["ksmpreimagerequeststatus",{"2":{"2":1}}],["ksm",{"2":{"2":1,"3":2}}],["know",{"2":{"1":1,"19":1}}],["known",{"2":{"0":9,"1":1,"2":3,"14":2}}],["your",{"2":{"10":4,"14":1,"19":1}}],["you",{"2":{"1":6,"3":1,"4":1,"5":1,"7":1,"8":2,"10":4,"14":7,"19":11,"21":4,"22":4}}],["up",{"2":{"19":1}}],["upcoming",{"2":{"19":2}}],["upgrade",{"0":{"19":1},"2":{"10":1,"19":5}}],["upgrades",{"2":{"10":2}}],["u8",{"2":{"15":1}}],["utility",{"2":{"15":1}}],["utilites",{"2":{"14":1}}],["utilities",{"2":{"7":1}}],["uint8array",{"2":{"6":8,"8":4,"15":2,"18":2}}],["uri",{"2":{"4":1}}],["url",{"2":{"1":2,"5":1}}],["unknown",{"2":{"14":1}}],["unique",{"2":{"1":1}}],["understand",{"2":{"10":1}}],["under",{"2":{"0":1,"10":1,"21":1}}],["usage",{"0":{"3":1},"2":{"1":1}}],["use",{"2":{"1":1,"3":1,"7":1,"10":2,"14":3,"19":3,"22":1}}],["uses",{"2":{"1":1,"9":1}}],["useful",{"2":{"0":1,"5":1}}],["used",{"2":{"0":3,"1":1,"2":1,"4":2,"5":2,"9":1,"14":2,"19":1}}],["using",{"2":{"0":1,"2":1,"5":1,"8":1,"10":1,"19":2}}],["mainly",{"2":{"20":1}}],["make",{"2":{"9":1,"11":1,"14":1,"19":3}}],["managers",{"2":{"1":1}}],["many",{"2":{"1":1,"3":1,"14":2}}],["minisecret",{"2":{"8":2}}],["might",{"2":{"2":1,"10":1,"14":1,"19":1,"21":1}}],["mnemonic",{"2":{"8":1}}],["mnemonictoentropy",{"2":{"8":2}}],["modify",{"2":{"22":1}}],["modules",{"2":{"1":2}}],["more",{"2":{"4":1,"14":1}}],["mortality",{"2":{"0":2}}],["most",{"2":{"2":1,"4":1}}],["multiaddress",{"2":{"14":5,"18":1,"19":3}}],["multiple",{"2":{"14":1,"19":3}}],["multicast",{"2":{"0":2}}],["must",{"2":{"1":1,"17":1}}],["messages",{"2":{"4":2,"5":1}}],["message",{"2":{"3":1,"4":2}}],["metadata",{"2":{"1":6,"2":2,"6":1,"9":1,"11":1,"12":1,"16":1,"17":1,"19":3}}],["methods",{"2":{"0":1,"12":1,"13":1}}],["method",{"2":{"0":2,"6":1,"10":1}}],["meant",{"2":{"0":1}}],["myfancythhing",{"2":{"0":1}}],["video",{"2":{"14":1}}],["variable",{"2":{"1":2}}],["valid",{"2":{"1":1,"12":1,"13":1}}],["validity",{"2":{"0":2}}],["values",{"2":{"12":1}}],["value",{"2":{"0":1,"6":1,"12":1,"13":1,"14":11,"18":3,"19":2,"22":1}}],["v2",{"2":{"1":1,"3":2}}],["very",{"2":{"0":1}}],["version",{"2":{"0":1,"19":3}}],["version`",{"2":{"0":1}}],["verify",{"2":{"0":2}}],["void",{"2":{"0":1,"4":3}}],["js",{"2":{"1":2}}],["jsonrpcconnection",{"2":{"4":2}}],["jsonrpcprovider",{"2":{"4":4}}],["json",{"2":{"0":2,"1":2}}],["just",{"2":{"0":1,"1":2,"8":1,"9":1,"19":1}}],["hdx",{"2":{"12":1}}],["hdkdkeypair",{"2":{"8":2}}],["hdkd",{"2":{"8":3}}],["hit",{"2":{"10":2}}],["how",{"2":{"10":1,"14":1}}],["holds",{"2":{"9":1}}],["hood",{"2":{"0":1}}],["h",{"2":{"1":1}}],["hand",{"2":{"21":1}}],["handle",{"2":{"4":1}}],["happen",{"2":{"19":1}}],["happens",{"2":{"1":1}}],["hard",{"2":{"14":1}}],["have",{"2":{"1":2,"2":3,"8":1,"10":1,"13":1,"14":2,"19":3,"20":1,"21":1,"22":2}}],["has",{"2":{"1":2,"2":1,"3":1,"5":1,"7":1,"11":1,"14":1,"15":1,"17":1,"19":1,"21":1,"22":2}}],["hasher",{"2":{"6":1}}],["hash",{"2":{"0":12}}],["hatch",{"2":{"0":1}}],["hexadecimal",{"2":{"13":1}}],["hexstring",{"0":{"13":1},"2":{"0":6,"13":1}}],["here",{"2":{"3":1}}],["helps",{"2":{"14":1}}],["helpful",{"2":{"9":1}}],["helpers",{"2":{"8":1}}],["help",{"2":{"1":3,"7":1}}],["heavily",{"2":{"0":1}}],["header",{"2":{"0":1}}],["html",{"2":{"0":1}}],["https",{"2":{"0":1}}],["`iscompatible`",{"2":{"10":2}}],["`injectedpolkadotaccount`",{"2":{"7":1}}],["`polkadotsigner`",{"2":{"7":1}}],["`papi`",{"2":{"0":1}}],["`generate`",{"2":{"1":1}}],["`system",{"2":{"0":1}}],["`unfollow`",{"2":{"0":1}}],["`typedapi`",{"2":{"0":1}}],["`",{"2":{"0":21}}],["`finalizedblock$`",{"2":{"0":1}}],["`blockinfo`",{"2":{"0":3}}],["name",{"2":{"1":4,"2":2,"14":1}}],["n",{"2":{"1":2,"19":1}}],["npx",{"2":{"1":3,"19":3}}],["number",{"2":{"0":1,"6":1,"10":2,"21":3}}],["nonnullable",{"2":{"22":1}}],["nonce",{"2":{"0":2}}],["now",{"2":{"19":1}}],["node",{"2":{"1":2,"4":2,"5":2,"19":1}}],["no",{"2":{"1":1,"3":1,"21":1,"22":2}}],["not",{"2":{"0":1,"1":1,"10":2,"14":1,"19":1}}],["nothing",{"2":{"0":1}}],["note",{"2":{"0":2,"19":1}}],["nested",{"2":{"14":1}}],["nevertheless",{"2":{"10":1}}],["nearly",{"2":{"3":1}}],["nextapi",{"2":{"19":3}}],["nextdot",{"2":{"19":3}}],["next",{"2":{"0":2,"10":1,"19":2}}],["needs",{"2":{"6":1,"19":1}}],["needed",{"2":{"6":1}}],["needing",{"2":{"5":1,"19":1}}],["need",{"2":{"0":1,"1":3,"3":1,"6":1,"9":1}}],["newaccount",{"2":{"18":1}}],["new",{"2":{"0":1,"1":2,"15":1,"18":1,"19":3}}],["dapp",{"2":{"19":4}}],["data",{"2":{"0":1,"6":2,"8":1,"11":2,"15":1}}],["during",{"2":{"1":1}}],["downloading",{"2":{"19":1}}],["download",{"2":{"19":1}}],["downloads",{"2":{"1":2}}],["down",{"2":{"11":1}}],["dotevents",{"2":{"18":2}}],["doterrors",{"2":{"18":2}}],["dotconstants",{"2":{"18":2}}],["dotcalls",{"2":{"18":2}}],["dotclient",{"2":{"3":2}}],["dotqueries",{"2":{"18":2}}],["dotapi",{"2":{"3":2,"12":2,"14":1,"18":3,"19":3}}],["dotpreimagerequeststatus",{"2":{"2":1}}],["dot",{"2":{"2":1,"3":2,"12":1,"18":1,"19":3}}],["don",{"2":{"2":1,"19":1}}],["done",{"2":{"0":1}}],["do",{"2":{"1":1,"9":1,"10":4,"14":1}}],["documented",{"2":{"0":1}}],["directly",{"2":{"5":1,"14":1}}],["directory",{"2":{"2":1,"14":1}}],["different",{"2":{"2":2,"20":1}}],["discriminated",{"2":{"14":1}}],["disconnect",{"2":{"0":1,"4":1}}],["display",{"2":{"1":1}}],["dive",{"2":{"0":1}}],["didn",{"2":{"0":1}}],["d",{"2":{"0":3}}],["death",{"2":{"14":3,"18":2}}],["delegate",{"2":{"12":1}}],["demo",{"2":{"12":1}}],["deposit",{"2":{"12":1}}],["depend",{"2":{"5":1}}],["dependencies",{"2":{"1":1}}],["declared",{"2":{"12":1}}],["defined",{"2":{"11":2}}],["defines",{"2":{"9":2}}],["default",{"2":{"0":1,"1":1,"21":2}}],["deeper",{"2":{"9":1}}],["derive",{"2":{"8":2}}],["developing",{"2":{"10":1}}],["developer",{"2":{"1":1,"9":1}}],["devel",{"2":{"9":1}}],["dev",{"2":{"8":1}}],["detect",{"2":{"2":1}}],["debug",{"2":{"0":1,"5":1}}],["descriptor",{"2":{"19":1}}],["descriptors`",{"2":{"0":1}}],["descriptors",{"2":{"0":4,"1":3,"3":2,"6":1,"9":1,"10":1,"18":1,"19":2}}],["descriptive",{"2":{"14":1}}],["designed",{"2":{"4":1}}],["dest",{"2":{"3":1,"14":3,"18":1,"19":2}}],["destroy",{"2":{"0":1}}],["either",{"2":{"14":1}}],["eye",{"2":{"10":2}}],["else",{"2":{"10":2,"19":1}}],["element",{"2":{"0":5}}],["evapi",{"2":{"9":1}}],["events",{"2":{"2":1,"18":1,"19":1}}],["event",{"2":{"0":2,"2":1,"9":2,"10":1,"18":1}}],["every",{"2":{"0":3,"2":2,"3":1,"6":1,"10":1,"19":1}}],["ed25519",{"2":{"8":1}}],["ecdsa",{"2":{"8":1}}],["easier",{"2":{"11":1}}],["easily",{"2":{"4":1,"9":1,"15":1}}],["each",{"2":{"1":1,"2":1,"5":1,"7":1,"10":1,"19":2}}],["etc",{"2":{"2":1,"9":1,"14":1,"22":1}}],["exactly",{"2":{"14":1}}],["exampleupdate",{"2":{"19":1}}],["examples",{"2":{"14":1}}],["example",{"2":{"0":1,"5":1,"8":1,"10":3,"19":1,"21":1,"22":4}}],["execution",{"2":{"10":1}}],["expect",{"2":{"21":1}}],["expected",{"2":{"19":1}}],["expects",{"2":{"12":1}}],["experience",{"2":{"9":1}}],["explanation",{"2":{"9":1}}],["export",{"2":{"8":1}}],["exports",{"2":{"2":1,"18":1}}],["exported",{"2":{"2":1,"12":1}}],["extrinsics",{"2":{"6":1}}],["extracted",{"2":{"2":1}}],["extensions",{"2":{"7":3}}],["extension",{"0":{"7":1},"2":{"7":3}}],["extends",{"2":{"0":2}}],["external",{"2":{"5":1}}],["except",{"2":{"0":1,"17":1}}],["exhaustively",{"2":{"0":1}}],["end",{"2":{"22":1}}],["endpoints",{"2":{"0":2}}],["enum",{"0":{"14":1},"2":{"14":6}}],["enums",{"2":{"2":1,"14":5}}],["enables",{"2":{"10":1}}],["entries",{"0":{"21":1,"22":1},"2":{"20":2,"22":2}}],["entropy",{"2":{"8":2}}],["entropytominisecret",{"2":{"8":2}}],["entry",{"2":{"4":1,"21":1}}],["enhancer",{"2":{"5":1}}],["enhanced",{"2":{"4":1}}],["encodeddata",{"2":{"3":1}}],["encoded",{"2":{"0":2,"1":1,"12":1}}],["escape",{"2":{"0":1}}],["errors",{"2":{"2":1,"18":1}}],["error",{"2":{"0":1,"4":1,"18":1}}],["emitted",{"2":{"0":1}}],["emits",{"2":{"0":2}}],["e",{"2":{"0":1,"5":1,"14":1}}],["bunch",{"2":{"22":1}}],["but",{"2":{"0":1,"1":3,"2":2,"5":1,"6":1,"12":2,"13":2,"16":1,"22":1}}],["bigint",{"2":{"14":2}}],["binary",{"0":{"15":1},"2":{"12":2,"15":11,"16":1}}],["balances",{"2":{"14":1,"18":2,"19":3}}],["balancestatus",{"2":{"14":1}}],["balance",{"2":{"14":2}}],["based",{"2":{"0":4,"14":1}}],["both",{"2":{"14":1,"22":1}}],["boolean",{"2":{"10":4,"19":1}}],["body",{"2":{"0":4}}],["breaking",{"2":{"10":2}}],["browser",{"0":{"7":1}}],["broadcast",{"2":{"0":4}}],["by",{"2":{"0":1,"2":1,"5":1,"9":2,"12":2,"14":2}}],["behaviour",{"2":{"22":1}}],["before",{"2":{"19":1}}],["beforehand",{"2":{"1":1}}],["because",{"2":{"19":1}}],["between",{"2":{"10":1}}],["beginning",{"2":{"2":1}}],["be",{"2":{"0":10,"1":2,"3":1,"4":2,"5":3,"6":1,"9":2,"10":1,"12":3,"14":3,"15":2,"17":1,"19":2,"21":1,"22":1}}],["bestorfinalized",{"2":{"21":1,"22":1}}],["bestblocks$",{"2":{"0":1}}],["best",{"2":{"0":7,"21":3,"22":3}}],["being",{"2":{"0":2}}],["blockhash",{"2":{"21":1}}],["blockheader",{"2":{"0":1}}],["blockinfo",{"2":{"0":4}}],["block",{"2":{"0":23,"21":3,"22":1}}],["worker",{"2":{"19":3}}],["work",{"2":{"14":1,"19":2}}],["working",{"2":{"11":1}}],["would",{"2":{"10":1,"14":1,"22":1}}],["write",{"2":{"5":1,"14":1}}],["wrap",{"2":{"4":1}}],["wss",{"2":{"5":1,"19":1}}],["wsprovider",{"2":{"5":2}}],["ws",{"2":{"4":2,"5":1}}],["wsurl",{"2":{"1":1}}],["whether",{"2":{"19":1}}],["when",{"2":{"1":1,"12":1,"14":1,"16":1,"17":1}}],["while",{"2":{"19":1}}],["which",{"2":{"1":2,"2":1,"4":1,"6":1,"8":1,"9":1,"12":1,"14":1,"17":1,"19":1,"21":1,"22":1}}],["whose",{"2":{"14":1}}],["what",{"2":{"9":1,"10":2}}],["way",{"2":{"19":1}}],["ways",{"2":{"4":1}}],["was",{"2":{"10":1}}],["wait",{"2":{"9":1,"19":3}}],["want",{"2":{"1":1,"7":1,"19":1}}],["watchvalue",{"2":{"21":2,"22":2}}],["watchblockbody",{"2":{"0":1}}],["watch",{"2":{"0":2}}],["w",{"2":{"1":2,"19":1}}],["widely",{"2":{"2":1,"14":1}}],["without",{"0":{"21":1},"2":{"5":1,"13":1,"19":2,"20":1,"22":1}}],["withlogsrecorder",{"2":{"5":3}}],["with",{"0":{"22":1},"2":{"0":2,"1":2,"2":3,"4":3,"5":1,"6":1,"7":2,"8":2,"9":4,"10":3,"11":1,"13":1,"14":4,"19":4,"20":1,"21":1,"22":3}}],["will",{"2":{"0":8,"1":1,"4":2,"5":1,"12":2,"14":5,"15":2,"19":5}}],["web",{"2":{"4":1}}],["websocketprovider",{"2":{"4":1,"5":2}}],["websocket",{"2":{"1":1,"4":1,"19":1}}],["westend2",{"2":{"1":1}}],["wellknownchain",{"2":{"3":2}}],["well",{"2":{"0":1,"1":1,"2":3,"14":2}}],["we",{"2":{"0":2,"6":1,"9":3,"10":5,"19":3,"20":1,"21":1,"22":2}}],["old",{"2":{"19":2}}],["operation",{"2":{"19":1}}],["option",{"2":{"10":1,"22":1}}],["options",{"2":{"1":2,"21":1,"22":4}}],["our",{"2":{"19":2,"22":1}}],["output",{"2":{"5":1}}],["objects",{"2":{"14":1}}],["object",{"2":{"9":1,"14":2}}],["observable",{"2":{"0":15,"9":2,"21":2,"22":1}}],["otherwise",{"2":{"19":1}}],["other",{"2":{"0":1,"9":1,"19":1,"21":1}}],["only",{"2":{"10":1}}],["onmessage",{"2":{"4":2}}],["on",{"2":{"0":1,"5":1,"6":1,"10":4,"14":1,"19":6,"21":1}}],["one",{"2":{"0":2,"2":1,"4":2,"8":1,"9":4,"14":1,"19":4}}],["once",{"2":{"0":1}}],["or",{"2":{"0":5,"1":2,"4":3,"5":1,"13":1,"19":2,"21":2}}],["offers",{"2":{"4":1}}],["of",{"2":{"0":8,"1":2,"2":9,"4":4,"6":1,"7":3,"8":1,"9":1,"10":3,"11":2,"12":3,"13":1,"14":8,"15":1,"17":2,"19":4,"20":1,"21":1,"22":5}}],["=",{"2":{"0":15,"3":7,"4":4,"5":6,"6":2,"7":4,"8":6,"9":3,"10":2,"12":2,"14":1,"15":1,"19":5,"21":4,"22":5}}],["give",{"2":{"19":1}}],["github",{"2":{"0":1}}],["great",{"2":{"9":1}}],["g",{"2":{"5":1}}],["generating",{"2":{"10":1}}],["generate",{"2":{"1":5,"5":1,"9":1,"19":1}}],["generates",{"2":{"1":1}}],["generated",{"2":{"0":1,"1":1,"2":2,"6":1,"9":1,"14":1}}],["generic",{"0":{"8":1},"2":{"6":1}}],["getentries",{"2":{"22":5}}],["getencodeddata",{"2":{"3":1}}],["getvalues",{"2":{"22":2}}],["getvalue",{"2":{"12":1,"18":1,"21":2,"22":3}}],["getpolkadotsigner",{"2":{"8":3}}],["getaccounts",{"2":{"7":1}}],["getinjectedextensions",{"2":{"7":2}}],["getsmprovider",{"2":{"4":1,"19":1}}],["gettypedapi",{"2":{"0":2,"2":1,"3":4,"12":1,"19":2}}],["getblockheader",{"2":{"0":1}}],["getblockbody",{"2":{"0":1}}],["getbestblocks",{"2":{"0":1}}],["getfinalizedblock",{"2":{"0":1}}],["getchainspecdata",{"2":{"0":1}}],["get",{"2":{"0":3,"1":1,"7":2,"19":1,"22":2}}],["gt",{"0":{"16":1,"17":1},"2":{"0":28,"1":7,"4":4,"5":1,"6":4,"8":2,"9":5,"10":2,"14":2,"17":2,"19":1,"21":6,"22":14}}],["perform",{"2":{"19":2}}],["performtransfer",{"2":{"18":2,"19":1}}],["persist",{"2":{"1":2}}],["phrase",{"2":{"8":1}}],["pjs",{"2":{"7":2}}],["purposes",{"2":{"12":1}}],["public",{"2":{"12":1}}],["publickey",{"2":{"6":1,"8":2}}],["push",{"2":{"5":1}}],["primitive",{"2":{"11":1}}],["previous",{"2":{"22":1}}],["preparing",{"0":{"19":1}}],["prepare",{"2":{"10":1,"19":1}}],["prefix",{"2":{"13":1}}],["preimagerequeststatus",{"2":{"2":1}}],["processaccount",{"2":{"18":2}}],["proxy",{"2":{"12":1}}],["proxies",{"2":{"12":3}}],["property",{"2":{"7":1}}],["providers",{"0":{"4":1},"1":{"5":1},"2":{"4":1}}],["provider",{"0":{"5":1},"2":{"0":1,"1":1,"4":4,"5":10}}],["promise",{"2":{"0":11,"6":1,"8":1,"9":1,"10":2,"19":1,"21":1,"22":3}}],["possibleparents",{"2":{"22":1}}],["possible",{"2":{"19":1}}],["postinstall",{"2":{"1":2}}],["powerful",{"2":{"10":1}}],["point",{"2":{"4":1}}],["polkadotruntimeruntimecall",{"2":{"14":2}}],["polkadotsigner",{"0":{"7":1,"8":1},"2":{"6":1,"7":2,"8":3}}],["polkadotapi",{"2":{"2":1,"12":1}}],["polkadot",{"2":{"0":2,"1":5,"3":3,"4":6,"5":7,"6":1,"7":3,"8":4,"11":1,"12":2,"14":2,"18":1,"19":10}}],["polkadotclient",{"0":{"0":1},"2":{"0":3}}],["pages",{"2":{"10":1}}],["pallet",{"2":{"2":1,"9":2,"14":1,"22":4}}],["package",{"2":{"1":3}}],["papi",{"2":{"1":6,"9":1,"10":1,"19":3}}],["passing",{"2":{"22":1}}],["passed",{"2":{"22":1}}],["pass",{"2":{"0":1,"19":1,"22":3}}],["payload",{"2":{"0":1,"21":4,"22":5}}],["partial",{"2":{"21":1}}],["particular",{"2":{"10":1,"14":1,"21":2,"22":1}}],["parents",{"2":{"3":1}}],["paramter",{"2":{"19":1}}],["parameter",{"2":{"12":1,"14":2,"16":1,"19":1}}],["params",{"2":{"0":3}}],["param",{"2":{"0":8}}],["paritytech",{"2":{"0":1}}],["switch",{"2":{"14":1}}],["shows",{"2":{"14":1}}],["shown",{"2":{"14":1,"16":1,"17":1}}],["should",{"2":{"14":2}}],["shape",{"2":{"4":1}}],["shapes",{"2":{"0":1}}],["ss58prefix",{"2":{"18":2}}],["ss58account",{"2":{"18":2}}],["ss58",{"2":{"12":2}}],["ss58string",{"0":{"12":1},"2":{"12":4}}],["sr25519createderive",{"2":{"8":2}}],["sr25519",{"2":{"8":3}}],["smworker",{"2":{"19":2}}],["sm",{"2":{"4":1}}],["smoldot",{"2":{"4":2,"19":4}}],["several",{"2":{"22":1}}],["set",{"2":{"14":3,"19":1}}],["seamlessly",{"2":{"10":1}}],["second",{"2":{"9":1}}],["section",{"2":{"9":1,"10":1}}],["see",{"2":{"9":3,"10":5}}],["selectedextension",{"2":{"7":2}}],["service",{"2":{"4":1}}],["send",{"2":{"3":1,"4":2}}],["safely",{"2":{"3":1}}],["same",{"2":{"2":1,"16":1,"19":1,"22":3}}],["situation",{"2":{"22":1}}],["situations",{"2":{"20":1}}],["similarely",{"2":{"22":1}}],["simple",{"2":{"10":1}}],["simplest",{"2":{"9":1}}],["signal",{"2":{"21":1}}],["signature",{"2":{"14":2}}],["signandsubmit",{"2":{"3":1,"18":1}}],["signs",{"2":{"8":1}}],["sign",{"2":{"6":2,"8":2}}],["signingtype",{"2":{"8":1}}],["signing",{"0":{"8":1},"2":{"6":2}}],["signedextensions",{"2":{"6":1}}],["signed",{"2":{"6":1}}],["signers",{"0":{"6":1},"1":{"7":1,"8":1}}],["signer",{"2":{"3":1,"6":2,"7":4,"8":2,"18":1}}],["since",{"2":{"0":1,"10":1}}],["slightly",{"2":{"2":1}}],["scenarios",{"2":{"5":1}}],["scprovider",{"2":{"3":2}}],["scripts",{"2":{"1":1}}],["script",{"2":{"1":1}}],["scale",{"2":{"0":2,"1":1}}],["something",{"2":{"6":1,"14":1}}],["some",{"2":{"1":1,"2":1,"4":1,"8":1,"9":1,"11":1}}],["so",{"2":{"1":1,"2":1,"3":1,"4":1,"14":1}}],["source",{"2":{"1":6,"5":1,"14":1}}],["soon",{"2":{"0":1,"19":1}}],["sync",{"2":{"10":1}}],["synchronously",{"2":{"0":2,"19":1}}],["system",{"2":{"0":1,"10":2,"18":6,"21":2,"22":1}}],["systemversion",{"2":{"0":1}}],["superset",{"2":{"17":1}}],["supersedes",{"2":{"0":1}}],["support",{"2":{"14":1,"19":2}}],["supported",{"2":{"8":1}}],["such",{"2":{"0":1,"4":1}}],["subset",{"2":{"22":1}}],["subscription",{"2":{"0":1}}],["subscribing",{"2":{"0":2}}],["subpath",{"2":{"7":1}}],["subpackage",{"2":{"5":1}}],["submitandwatch",{"2":{"0":1}}],["submit",{"2":{"0":1}}],["still",{"2":{"19":1}}],["stuff",{"2":{"10":2}}],["stores",{"2":{"1":1}}],["storageentrywithkeys",{"2":{"22":1}}],["storageentrywithoutkeys",{"2":{"21":1}}],["storageapi",{"2":{"9":1}}],["storage",{"0":{"20":1},"1":{"21":1,"22":1},"2":{"1":1,"2":1,"9":1,"18":1,"20":1,"21":1,"22":2}}],["straight",{"2":{"0":1}}],["string",{"2":{"0":6,"4":3,"6":2,"7":1,"9":2,"12":4,"13":3,"14":2,"21":1}}],["structure",{"2":{"0":1,"11":1,"21":1,"22":1}}],["startfromworker",{"2":{"19":2}}],["start",{"2":{"9":1,"19":1}}],["statistics",{"2":{"4":1}}],["state",{"2":{"0":2}}],["stateful",{"2":{"0":2}}],["stable",{"2":{"0":1}}],["s",{"2":{"0":3,"1":2,"2":2,"4":1,"9":4,"10":6,"12":3,"15":1,"17":2,"19":4}}],["specifies",{"2":{"16":1}}],["specific",{"2":{"5":1,"9":1,"17":1,"19":1}}],["spec",{"2":{"0":3,"1":3}}],["roadmap",{"2":{"19":1}}],["rococo",{"2":{"1":1}}],["running",{"2":{"19":2}}],["run",{"2":{"1":2,"19":1}}],["runtimeapi",{"2":{"9":2}}],["runtimecallsapi",{"2":{"9":1}}],["runtime",{"0":{"19":1},"2":{"1":2,"2":2,"3":1,"9":8,"10":12,"19":10}}],["rxjs",{"2":{"0":1}}],["redo",{"2":{"19":1}}],["referenda",{"2":{"19":1}}],["reference",{"2":{"0":1,"2":1,"16":1}}],["regardless",{"2":{"12":1}}],["registered",{"2":{"7":1}}],["registers",{"2":{"1":1}}],["represented",{"2":{"14":2,"15":1}}],["represent",{"2":{"11":1}}],["reply",{"2":{"0":2}}],["replaying",{"2":{"5":1}}],["replay",{"2":{"0":2,"5":1}}],["rest",{"2":{"10":1}}],["responsible",{"2":{"6":1}}],["reacttonewaccount",{"2":{"18":1}}],["reading",{"2":{"14":2}}],["readlogs",{"2":{"5":1}}],["really",{"2":{"10":1}}],["re",{"2":{"9":1,"10":1,"19":1,"20":1}}],["received",{"2":{"19":1}}],["receives",{"2":{"12":1}}],["recipe",{"2":{"9":1,"10":1}}],["record",{"2":{"6":1,"9":2}}],["recording",{"2":{"5":1}}],["recovery",{"2":{"4":1}}],["recommended",{"2":{"1":1}}],["relay",{"2":{"19":1}}],["relaychain",{"2":{"3":2}}],["relies",{"2":{"0":1}}],["removing",{"2":{"1":1}}],["required",{"2":{"22":1}}],["require",{"2":{"22":1}}],["requires",{"2":{"1":1,"4":1}}],["request",{"2":{"0":3,"1":1}}],["return",{"2":{"18":1,"19":2}}],["returned",{"2":{"4":1,"12":1,"13":1,"18":1}}],["returns",{"2":{"0":7,"10":2,"21":3,"22":1}}],["retrieve",{"2":{"0":3}}],["rpc",{"2":{"0":2,"19":1}}],["ienum",{"2":{"14":1}}],["imagine",{"2":{"19":1,"22":1}}],["imported",{"2":{"14":1}}],["import",{"2":{"3":2,"5":6,"7":1,"8":2,"14":1,"18":1,"19":5}}],["immutable",{"2":{"0":1}}],["identityjudgement",{"2":{"14":1}}],["identifier",{"2":{"1":1,"6":1}}],["ide",{"2":{"2":1,"14":1}}],["id",{"2":{"0":1,"14":1,"18":1,"19":2}}],["invalidspecname",{"2":{"18":1}}],["info",{"2":{"14":1}}],["information",{"2":{"1":2,"9":1,"22":1}}],["inference",{"2":{"14":1}}],["indicates",{"2":{"13":1,"14":1}}],["indicative",{"2":{"12":1}}],["index",{"2":{"9":1,"21":1,"22":1}}],["instead",{"2":{"22":1}}],["installed",{"2":{"7":1}}],["installing",{"2":{"1":1}}],["installation",{"2":{"1":1}}],["instance",{"2":{"0":1,"2":1}}],["inside",{"2":{"9":2}}],["input",{"2":{"8":1}}],["injectedpolkadotaccount",{"2":{"7":1}}],["injectedextension",{"2":{"7":1}}],["initiate",{"2":{"4":1}}],["incompatibilities",{"2":{"2":1}}],["in",{"2":{"0":1,"1":1,"2":3,"4":1,"6":1,"7":2,"10":4,"11":1,"12":3,"14":4,"19":1,"21":1,"22":5}}],["interested",{"2":{"10":1}}],["interior",{"2":{"3":1}}],["interaction",{"2":{"10":1,"19":1}}],["interact",{"2":{"1":2,"9":1,"10":1}}],["interface",{"0":{"18":1},"2":{"0":3,"4":3,"6":3,"10":3}}],["into",{"2":{"0":3,"1":3,"5":1,"15":2}}],["if",{"2":{"0":1,"2":2,"7":1,"8":1,"10":3,"14":1,"19":5}}],["i",{"2":{"0":1,"14":1}}],["iscompatible",{"0":{"10":1},"2":{"10":7,"19":5,"21":2,"22":2}}],["is",{"2":{"0":5,"1":4,"2":2,"4":1,"6":2,"7":1,"10":6,"12":3,"13":1,"14":1,"15":2,"16":1,"17":1,"19":4}}],["io",{"2":{"0":1,"19":1}}],["its",{"2":{"0":3,"6":1,"10":1}}],["it",{"2":{"0":10,"1":7,"2":4,"3":2,"4":3,"5":1,"6":2,"8":1,"9":6,"10":4,"11":1,"12":4,"13":1,"14":2,"17":1,"19":5,"21":2,"22":4}}],["l",{"0":{"16":1,"17":1},"2":{"17":2}}],["long",{"2":{"19":1}}],["look",{"2":{"14":1}}],["looking",{"2":{"9":2}}],["looks",{"2":{"9":1}}],["loaded",{"2":{"10":1,"19":2}}],["load",{"2":{"9":1}}],["logerror",{"2":{"18":1}}],["log",{"2":{"5":3,"12":1}}],["logsprovider",{"2":{"5":4}}],["logs",{"0":{"5":1},"2":{"5":8}}],["logging",{"2":{"4":1}}],["link",{"2":{"19":1}}],["line",{"2":{"5":3}}],["like",{"2":{"9":1,"14":2}}],["library",{"2":{"1":1}}],["list",{"2":{"1":2,"7":1}}],["length",{"2":{"16":2,"17":2}}],["learnt",{"2":{"10":1}}],["lets",{"2":{"4":1}}],["let",{"2":{"0":1,"9":2,"10":4,"19":1}}],["level",{"2":{"0":1,"18":1}}],["labs",{"2":{"8":3}}],["later",{"2":{"1":1}}],["latest",{"2":{"0":9,"9":2,"10":1,"19":1}}],["last",{"2":{"0":3}}],["lt",{"0":{"16":1,"17":1},"2":{"0":17,"1":6,"6":2,"8":1,"9":4,"10":2,"14":1,"17":2,"19":1,"21":4,"22":10}}],["ll",{"2":{"0":2,"9":2,"10":1,"22":1}}],["furthermore",{"2":{"19":1}}],["full",{"2":{"14":1}}],["functions",{"2":{"9":1,"15":1}}],["function",{"0":{"8":1},"2":{"0":1,"4":1,"8":2,"9":1,"14":1,"18":5,"19":2,"21":1,"22":1}}],["few",{"2":{"14":1,"15":1}}],["features",{"2":{"4":1}}],["fresh",{"2":{"1":1}}],["fromtext",{"2":{"15":1}}],["fromhex",{"2":{"15":1}}],["frombytes",{"2":{"15":1}}],["from",{"0":{"7":1,"8":1},"2":{"0":3,"1":5,"2":1,"3":2,"4":3,"5":7,"7":1,"8":4,"12":1,"13":1,"14":3,"18":2,"19":7}}],["f",{"2":{"1":2}}],["fairly",{"2":{"0":1}}],["fancy",{"2":{"0":1,"19":2}}],["fixedsizearray",{"0":{"17":1},"2":{"17":1}}],["fixedsizebinary",{"0":{"16":1}}],["fields",{"2":{"9":1,"10":1}}],["field",{"2":{"9":1,"10":1}}],["file",{"2":{"1":7,"5":2}}],["filename",{"2":{"1":3}}],["first",{"2":{"0":2,"9":1,"10":1,"14":1,"19":2}}],["finalizedcall",{"2":{"3":1}}],["finalizedblock$",{"2":{"0":1}}],["finalized",{"2":{"0":11,"21":3,"22":2}}],["find",{"2":{"0":1,"9":1,"14":1,"22":1}}],["found",{"2":{"22":1}}],["folder",{"2":{"1":1}}],["following",{"2":{"0":1,"4":1,"6":1,"14":2,"21":1,"22":1}}],["force",{"2":{"14":4}}],["formatss58account",{"2":{"18":2}}],["format",{"2":{"12":4}}],["formatted",{"2":{"12":1}}],["forward",{"2":{"0":1}}],["for",{"0":{"19":1},"2":{"0":2,"1":7,"2":3,"4":1,"6":3,"7":1,"8":1,"9":6,"10":3,"12":1,"14":4,"16":1,"19":10,"20":1,"21":2,"22":3}}],["creating",{"2":{"14":1}}],["creates",{"2":{"14":1}}],["create",{"2":{"0":2,"1":1,"5":1,"6":1,"8":1,"9":1,"15":1,"19":2}}],["createclient",{"2":{"0":1,"3":2,"4":1,"5":4,"19":2}}],["current",{"2":{"9":1}}],["clear",{"2":{"19":1}}],["clearorigin",{"2":{"3":1}}],["clean",{"2":{"1":1}}],["cli",{"2":{"0":1,"1":2,"9":1,"19":1}}],["client",{"2":{"0":4,"5":2,"9":1,"12":1,"19":4}}],["c",{"2":{"1":2}}],["correct",{"2":{"14":1,"19":1}}],["corresponding",{"2":{"6":1}}],["could",{"2":{"5":1}}],["couple",{"2":{"4":1,"7":1}}],["cost",{"2":{"3":1}}],["code",{"2":{"1":2,"2":1,"14":1,"19":1}}],["codecs",{"2":{"1":1}}],["codegen",{"0":{"1":1},"1":{"2":1,"3":1},"2":{"1":2,"2":1,"9":1,"10":1}}],["console",{"2":{"5":2,"12":1}}],["consumed",{"2":{"2":1,"5":1}}],["constant",{"2":{"9":1,"10":1}}],["constants",{"2":{"2":1,"9":1,"18":2,"19":1}}],["constapi",{"2":{"9":1}}],["const",{"2":{"0":2,"3":7,"5":5,"7":4,"8":5,"10":2,"12":2,"15":1,"19":5}}],["continue",{"2":{"10":1}}],["contains",{"2":{"2":2}}],["contents",{"0":{"2":1}}],["configuration",{"2":{"1":1}}],["config",{"2":{"1":2}}],["connectinjectedextension",{"2":{"7":2}}],["connecting",{"2":{"4":1}}],["connection",{"2":{"4":3,"19":2}}],["connected",{"2":{"1":1,"2":1,"19":1}}],["connect",{"2":{"1":1,"4":2,"7":1}}],["compatibility",{"2":{"19":2}}],["compatible",{"2":{"7":1,"10":4,"19":2}}],["compliant",{"2":{"0":1}}],["complete",{"2":{"0":2}}],["come",{"2":{"4":1}}],["comes",{"2":{"0":1}}],["coming",{"2":{"4":1}}],["communicate",{"2":{"4":1}}],["command",{"2":{"1":4}}],["cases",{"2":{"14":1}}],["case",{"2":{"2":1,"10":2,"14":1,"22":3}}],["calloptions",{"2":{"21":2,"22":3}}],["calldata",{"2":{"6":1}}],["called",{"2":{"3":1}}],["call",{"2":{"2":1,"4":1,"6":1,"10":2,"14":4,"18":1,"22":2}}],["calls",{"2":{"1":1,"2":2,"9":1}}],["calling",{"2":{"0":1,"4":1,"14":1}}],["can",{"2":{"0":7,"1":4,"2":1,"3":1,"4":3,"5":3,"8":1,"10":2,"12":1,"14":2,"19":8,"21":1,"22":1}}],["choose",{"2":{"21":1}}],["choices",{"2":{"1":1}}],["checks",{"2":{"17":1,"19":2}}],["checksum",{"2":{"2":1}}],["check",{"2":{"10":1,"19":3,"21":1}}],["chains",{"2":{"1":2,"2":3,"14":1,"19":2}}],["chainspec",{"2":{"0":1,"1":1,"19":2}}],["chainspecdata",{"2":{"0":2}}],["chain",{"2":{"1":8,"2":2,"3":1,"4":3,"6":1,"10":1,"11":2,"12":2,"14":1,"16":1,"19":6}}],["changes",{"2":{"21":1}}],["change",{"2":{"0":1}}],["children",{"2":{"0":2}}],["available",{"2":{"18":1,"19":2}}],["across",{"2":{"14":1}}],["accepts",{"2":{"12":1,"13":1}}],["access",{"2":{"0":1}}],["accounts",{"2":{"7":3,"12":1}}],["account",{"2":{"0":2,"7":1,"18":4,"22":2}}],["abortsignal",{"2":{"21":1}}],["about",{"2":{"10":1}}],["abstracted",{"2":{"12":1}}],["able",{"2":{"9":1}}],["amp",{"2":{"9":1}}],["app",{"2":{"10":1}}],["appended",{"2":{"2":1}}],["apis",{"2":{"9":1,"14":1,"19":2}}],["api",{"2":{"0":5,"1":4,"3":2,"4":6,"5":7,"6":2,"7":3,"8":1,"9":1,"10":1,"11":1,"12":1,"14":2,"18":1,"19":6}}],["autocompletion",{"2":{"2":1}}],["automatically",{"2":{"1":1}}],["again",{"2":{"1":1}}],["addr",{"2":{"19":2}}],["addresses",{"2":{"22":1}}],["address",{"2":{"12":1,"14":1,"22":1}}],["addchain",{"2":{"19":1}}],["additionalsigned",{"2":{"6":1}}],["adds",{"2":{"4":1}}],["added",{"2":{"1":1}}],["add",{"2":{"1":6,"19":2}}],["await",{"2":{"0":2,"3":2,"7":1,"10":2,"12":1,"18":2,"19":3}}],["always",{"2":{"12":1,"13":1}}],["alive",{"2":{"19":1}}],["alias",{"2":{"12":1,"13":1}}],["alice",{"2":{"8":1}}],["algorithms",{"2":{"8":1}}],["along",{"2":{"5":1}}],["also",{"2":{"2":2,"6":1,"14":1,"17":1,"22":1}}],["all",{"2":{"1":4,"2":2,"9":1,"10":1,"11":1,"14":1,"22":2}}],["allowing",{"2":{"21":1}}],["allows",{"2":{"2":1,"9":1,"21":1,"22":2}}],["allow",{"2":{"0":1,"9":1,"14":3,"18":2}}],["already",{"2":{"0":2,"10":2,"19":1}}],["after",{"2":{"0":1,"1":2,"10":1}}],["arg3",{"2":{"22":1}}],["arg2",{"2":{"22":2}}],["arg1",{"2":{"22":3}}],["args",{"2":{"22":10}}],["arguments",{"2":{"1":1,"22":1}}],["arbitrary",{"2":{"8":1}}],["are",{"2":{"0":2,"2":4,"6":1,"9":2,"11":1,"12":1,"14":7,"18":1,"22":1}}],["array",{"2":{"0":6,"5":1,"15":1,"17":2,"22":3}}],["atblocknumber",{"2":{"6":1}}],["at",{"2":{"0":5,"2":2,"3":1,"9":1,"21":2,"22":6}}],["another",{"2":{"4":1,"10":1,"13":1}}],["anonymous",{"2":{"2":1,"11":1,"14":1}}],["any",{"2":{"0":3,"2":1,"4":1,"10":1,"12":3,"15":1,"18":1,"19":1}}],["an",{"2":{"0":5,"5":2,"7":1,"9":1,"10":4,"12":3,"14":3,"17":1,"19":3,"21":1,"22":1}}],["and",{"2":{"0":11,"1":6,"2":3,"3":1,"4":1,"6":2,"8":1,"9":2,"10":3,"14":6,"19":4,"20":1,"22":2}}],["astext",{"2":{"15":1}}],["ashex",{"2":{"15":1}}],["asbytes",{"2":{"15":1}}],["as",{"2":{"0":7,"1":4,"4":1,"7":1,"10":1,"12":3,"14":3,"15":1,"16":2,"17":1,"19":8,"21":1,"22":1}}],["a",{"0":{"7":1,"19":1},"2":{"0":14,"1":14,"2":4,"4":5,"5":5,"6":2,"7":4,"8":2,"9":5,"10":5,"11":1,"12":2,"13":1,"14":6,"15":2,"16":2,"17":4,"19":8,"21":2,"22":6}}],["turned",{"2":{"15":2}}],["transfer",{"2":{"14":5,"18":4,"19":4}}],["transactionpaymentcallapi",{"2":{"14":1}}],["transactions",{"2":{"2":1,"6":3,"9":1,"18":1,"19":1}}],["transaction",{"2":{"0":7,"1":1,"6":1}}],["tagged",{"2":{"12":1}}],["takes",{"2":{"6":1,"8":1}}],["taking",{"2":{"0":2,"6":1}}],["time",{"2":{"9":1,"22":1}}],["times",{"2":{"3":1}}],["text",{"2":{"15":2}}],["tell",{"2":{"14":1,"19":1}}],["terminate",{"2":{"4":1}}],["technically",{"2":{"1":1}}],["two",{"2":{"2":3,"19":1,"20":2}}],["typed",{"2":{"6":1,"10":1,"19":1}}],["typedapis",{"2":{"19":1}}],["typedapi",{"0":{"9":1},"1":{"10":1},"2":{"0":1,"9":3,"10":3,"19":1,"21":1,"22":4}}],["type",{"2":{"1":2,"2":1,"3":1,"9":2,"12":1,"14":10,"15":1,"16":1,"17":1,"21":2,"22":1}}],["types",{"0":{"11":1,"18":1},"1":{"12":1,"13":1,"14":1,"15":1,"16":1,"17":1,"18":1},"2":{"1":1,"2":5,"9":1,"11":3,"14":8,"18":1,"19":1}}],["txapi",{"2":{"9":1}}],["txbroadcastevent",{"2":{"0":1}}],["txfinalizedpayload",{"2":{"0":1}}],["tx",{"2":{"0":4,"3":1,"9":2,"10":1,"18":1,"19":3}}],["t",{"0":{"17":1},"2":{"0":1,"2":1,"14":1,"17":2,"19":1}}],["to",{"2":{"0":11,"1":14,"2":2,"4":4,"5":6,"6":4,"7":3,"9":6,"10":4,"11":1,"12":1,"14":2,"15":1,"19":12,"21":4,"22":9}}],["top",{"2":{"0":1,"18":1}}],["three",{"2":{"22":1}}],["through",{"2":{"1":1,"3":1,"4":3,"14":1,"18":1,"19":1}}],["this",{"2":{"0":4,"1":2,"5":1,"6":1,"7":1,"9":1,"10":3,"14":2,"15":1,"19":3,"22":3}}],["that",{"2":{"0":10,"1":4,"2":4,"3":1,"4":2,"5":3,"6":1,"9":5,"10":1,"11":1,"12":3,"13":1,"14":7,"15":3,"17":4,"19":7,"21":1,"22":2}}],["them",{"2":{"14":3,"19":1,"22":1}}],["they",{"2":{"2":2,"11":1,"14":2,"22":1}}],["these",{"2":{"2":4,"6":1,"14":4}}],["then",{"2":{"1":3,"2":1,"3":1,"19":3}}],["their",{"2":{"1":1,"14":1}}],["therefore",{"2":{"21":1,"22":1}}],["there",{"2":{"0":1,"2":1,"10":1,"20":1}}],["the",{"2":{"0":34,"1":27,"2":16,"4":8,"5":1,"6":6,"7":4,"8":2,"9":11,"10":12,"11":5,"12":9,"13":3,"14":19,"16":2,"17":2,"18":2,"19":28,"21":7,"22":12}}]],"serializationVersion":2} diff --git a/assets/client-B2lrzsRU.js b/assets/client-B2lrzsRU.js new file mode 100644 index 00000000..b26d5775 --- /dev/null +++ b/assets/client-B2lrzsRU.js @@ -0,0 +1,129 @@ +import{u as n,j as s}from"./index-DTtoqbmS.js";const r={title:"PolkadotClient",description:"undefined"};function i(e){const l={a:"a",code:"code",div:"div",h1:"h1",header:"header",p:"p",pre:"pre",span:"span",...n(),...e.components};return s.jsxs(s.Fragment,{children:[s.jsx(l.header,{children:s.jsxs(l.h1,{id:"polkadotclient",children:["PolkadotClient",s.jsx(l.a,{"aria-hidden":"true",tabIndex:"-1",href:"#polkadotclient",children:s.jsx(l.div,{"data-autolink-icon":!0})})]})}),` +`,s.jsxs(l.p,{children:[s.jsx(l.code,{children:"PolkadotClient"})," interface shapes the top-level API for ",s.jsx(l.code,{children:"polkadot-api"}),". Once we get a client using ",s.jsx(l.code,{children:"createClient"})," function, we'll find the following:"]}),` +`,s.jsx(l.pre,{className:"shiki shiki-themes github-light github-dark-dimmed",style:{backgroundColor:"#fff","--shiki-dark-bg":"#22272e",color:"#24292e","--shiki-dark":"#adbac7"},tabIndex:"0",children:s.jsxs(l.code,{children:[s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"interface"}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" PolkadotClient"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" {"})]}),` +`,s.jsx(l.span,{className:"line",children:s.jsx(l.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:" /**"})}),` +`,s.jsx(l.span,{className:"line",children:s.jsx(l.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:" * Retrieve the ChainSpecData as it comes from the"})}),` +`,s.jsx(l.span,{className:"line",children:s.jsx(l.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:" * [JSON-RPC spec](https://paritytech.github.io/json-rpc-interface-spec/api/chainSpec.html)"})}),` +`,s.jsx(l.span,{className:"line",children:s.jsx(l.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:" */"})}),` +`,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#DCBDFB"},children:" getChainSpecData"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" () "}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"=>"}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" Promise"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"<"}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:"ChainSpecData"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:">"})]}),` +`,s.jsx(l.span,{className:"line","data-empty-line":!0,children:" "}),` +`,s.jsx(l.span,{className:"line",children:s.jsx(l.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:" /**"})}),` +`,s.jsx(l.span,{className:"line",children:s.jsx(l.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:" * Observable that emits `BlockInfo` from the latest known finalized block."})}),` +`,s.jsx(l.span,{className:"line",children:s.jsx(l.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:" * It's a multicast and stateful observable, that will synchronously replay"})}),` +`,s.jsx(l.span,{className:"line",children:s.jsx(l.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:" * its latest known state."})}),` +`,s.jsx(l.span,{className:"line",children:s.jsx(l.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:" */"})}),` +`,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#E36209","--shiki-dark":"#F69D50"},children:" finalizedBlock$"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" Observable"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"<"}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:"BlockInfo"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:">"})]}),` +`,s.jsx(l.span,{className:"line",children:s.jsx(l.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:" /**"})}),` +`,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:" * "}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"@returns"}),s.jsx(l.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:" Latest known finalized block."})]}),` +`,s.jsx(l.span,{className:"line",children:s.jsx(l.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:" */"})}),` +`,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#DCBDFB"},children:" getFinalizedBlock"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" () "}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"=>"}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" Promise"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"<"}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:"BlockInfo"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:">"})]}),` +`,s.jsx(l.span,{className:"line","data-empty-line":!0,children:" "}),` +`,s.jsx(l.span,{className:"line",children:s.jsx(l.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:" /**"})}),` +`,s.jsx(l.span,{className:"line",children:s.jsx(l.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:" * Observable that emits an Array of `BlockInfo`, being the first element the"})}),` +`,s.jsx(l.span,{className:"line",children:s.jsx(l.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:" * latest known best block, and the last element the latest known finalized"})}),` +`,s.jsx(l.span,{className:"line",children:s.jsx(l.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:" * block. It's a multicast and stateful observable, that will synchronously"})}),` +`,s.jsx(l.span,{className:"line",children:s.jsx(l.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:" * replay its latest known state. This array is an immutable data structure;"})}),` +`,s.jsx(l.span,{className:"line",children:s.jsx(l.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:" * i.e. a new array is emitted at every event but the reference to its"})}),` +`,s.jsx(l.span,{className:"line",children:s.jsx(l.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:" * children are stable if the children didn't change."})}),` +`,s.jsx(l.span,{className:"line",children:s.jsx(l.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:" *"})}),` +`,s.jsx(l.span,{className:"line",children:s.jsx(l.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:" * Note that subscribing to this observable already supersedes the need of"})}),` +`,s.jsx(l.span,{className:"line",children:s.jsx(l.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:" * subscribing to `finalizedBlock$`, since the last element of the array will"})}),` +`,s.jsx(l.span,{className:"line",children:s.jsx(l.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:" * be the latest known finalized block."})}),` +`,s.jsx(l.span,{className:"line",children:s.jsx(l.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:" */"})}),` +`,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#E36209","--shiki-dark":"#F69D50"},children:" bestBlocks$"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" Observable"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"<"}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:"BlockInfo"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"[]>"})]}),` +`,s.jsx(l.span,{className:"line",children:s.jsx(l.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:" /**"})}),` +`,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:" * "}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"@returns"}),s.jsx(l.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:" Array of `BlockInfo`, being the first element the latest"})]}),` +`,s.jsx(l.span,{className:"line",children:s.jsx(l.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:" * known best block, and the last element the latest known"})}),` +`,s.jsx(l.span,{className:"line",children:s.jsx(l.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:" * finalized block."})}),` +`,s.jsx(l.span,{className:"line",children:s.jsx(l.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:" */"})}),` +`,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#DCBDFB"},children:" getBestBlocks"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" () "}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"=>"}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" Promise"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"<"}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:"BlockInfo"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"[]>"})]}),` +`,s.jsx(l.span,{className:"line","data-empty-line":!0,children:" "}),` +`,s.jsx(l.span,{className:"line",children:s.jsx(l.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:" /**"})}),` +`,s.jsx(l.span,{className:"line",children:s.jsx(l.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:" * Observable to watch Block Body."})}),` +`,s.jsx(l.span,{className:"line",children:s.jsx(l.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:" *"})}),` +`,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:" * "}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"@param"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" hash"}),s.jsx(l.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:' It can be a block hash, `"finalized"`, or `"best"`'})]}),` +`,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:" * "}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"@returns"}),s.jsx(l.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:" Observable to watch a block body. There'll be just one event"})]}),` +`,s.jsx(l.span,{className:"line",children:s.jsx(l.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:" * with the payload and the observable will complete."})}),` +`,s.jsx(l.span,{className:"line",children:s.jsx(l.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:" */"})}),` +`,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#DCBDFB"},children:" watchBlockBody"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" ("}),s.jsx(l.span,{style:{color:"#E36209","--shiki-dark":"#F69D50"},children:"hash"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(l.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" string"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:") "}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"=>"}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" Observable"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"<"}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:"HexString"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"[]>"})]}),` +`,s.jsx(l.span,{className:"line",children:s.jsx(l.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:" /**"})}),` +`,s.jsx(l.span,{className:"line",children:s.jsx(l.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:" * Get Block Body (Promise-based)"})}),` +`,s.jsx(l.span,{className:"line",children:s.jsx(l.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:" *"})}),` +`,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:" * "}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"@param"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" hash"}),s.jsx(l.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:' It can be a block hash, `"finalized"`, or `"best"`'})]}),` +`,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:" * "}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"@returns"}),s.jsx(l.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:" Block body."})]}),` +`,s.jsx(l.span,{className:"line",children:s.jsx(l.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:" */"})}),` +`,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#DCBDFB"},children:" getBlockBody"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" ("}),s.jsx(l.span,{style:{color:"#E36209","--shiki-dark":"#F69D50"},children:"hash"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(l.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" string"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:") "}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"=>"}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" Promise"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"<"}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:"HexString"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"[]>"})]}),` +`,s.jsx(l.span,{className:"line","data-empty-line":!0,children:" "}),` +`,s.jsx(l.span,{className:"line",children:s.jsx(l.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:" /**"})}),` +`,s.jsx(l.span,{className:"line",children:s.jsx(l.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:" * Get Block Header (Promise-based)"})}),` +`,s.jsx(l.span,{className:"line",children:s.jsx(l.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:" *"})}),` +`,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:" * "}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"@param"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" hash"}),s.jsx(l.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:' It can be a block hash, `"finalized"` (default), or'})]}),` +`,s.jsx(l.span,{className:"line",children:s.jsx(l.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:' * `"best"`'})}),` +`,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:" * "}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"@returns"}),s.jsx(l.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:" Block hash."})]}),` +`,s.jsx(l.span,{className:"line",children:s.jsx(l.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:" */"})}),` +`,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#DCBDFB"},children:" getBlockHeader"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" ("}),s.jsx(l.span,{style:{color:"#E36209","--shiki-dark":"#F69D50"},children:"hash"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"?:"}),s.jsx(l.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" string"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:") "}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"=>"}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" Promise"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"<"}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:"BlockHeader"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:">"})]}),` +`,s.jsx(l.span,{className:"line","data-empty-line":!0,children:" "}),` +`,s.jsx(l.span,{className:"line",children:s.jsx(l.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:" /**"})}),` +`,s.jsx(l.span,{className:"line",children:s.jsx(l.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:" * Broadcast a transaction (Promise-based)"})}),` +`,s.jsx(l.span,{className:"line",children:s.jsx(l.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:" *"})}),` +`,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:" * "}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"@param"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" transaction"}),s.jsx(l.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:" SCALE-encoded tx to broadcast."})]}),` +`,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:" * "}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"@param"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" at"}),s.jsx(l.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:' It can be a block hash, `"finalized"`, or `"best"`.'})]}),` +`,s.jsx(l.span,{className:"line",children:s.jsx(l.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:" * That block will be used to verify the validity of"})}),` +`,s.jsx(l.span,{className:"line",children:s.jsx(l.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:" * the tx, retrieve the next nonce,"})}),` +`,s.jsx(l.span,{className:"line",children:s.jsx(l.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:" * and create the mortality taking that block into"})}),` +`,s.jsx(l.span,{className:"line",children:s.jsx(l.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:" * account."})}),` +`,s.jsx(l.span,{className:"line",children:s.jsx(l.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:" */"})}),` +`,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#DCBDFB"},children:" submit"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" ("})]}),` +`,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#E36209","--shiki-dark":"#F69D50"},children:" transaction"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" HexString"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:","})]}),` +`,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#E36209","--shiki-dark":"#F69D50"},children:" at"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"?:"}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" HexString"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:","})]}),` +`,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" ) "}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"=>"}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" Promise"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"<"}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:"TxFinalizedPayload"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:">"})]}),` +`,s.jsx(l.span,{className:"line",children:s.jsx(l.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:" /**"})}),` +`,s.jsx(l.span,{className:"line",children:s.jsx(l.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:" * Broadcast a transaction and returns an Observable. The observable will"})}),` +`,s.jsx(l.span,{className:"line",children:s.jsx(l.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:" * complete as soon as the transaction is in a finalized block."})}),` +`,s.jsx(l.span,{className:"line",children:s.jsx(l.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:" *"})}),` +`,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:" * "}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"@param"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" transaction"}),s.jsx(l.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:" SCALE-encoded tx to broadcast."})]}),` +`,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:" * "}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"@param"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" at"}),s.jsx(l.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:' It can be a block hash, `"finalized"`, or `"best"`.'})]}),` +`,s.jsx(l.span,{className:"line",children:s.jsx(l.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:" * That block will be used to verify the validity of"})}),` +`,s.jsx(l.span,{className:"line",children:s.jsx(l.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:" * the tx, retrieve the next nonce,"})}),` +`,s.jsx(l.span,{className:"line",children:s.jsx(l.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:" * and create the mortality taking that block into"})}),` +`,s.jsx(l.span,{className:"line",children:s.jsx(l.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:" * account."})}),` +`,s.jsx(l.span,{className:"line",children:s.jsx(l.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:" */"})}),` +`,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#DCBDFB"},children:" submitAndWatch"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" ("})]}),` +`,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#E36209","--shiki-dark":"#F69D50"},children:" transaction"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" HexString"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:","})]}),` +`,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#E36209","--shiki-dark":"#F69D50"},children:" at"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"?:"}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" HexString"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:","})]}),` +`,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" ) "}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"=>"}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" Observable"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"<"}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:"TxBroadcastEvent"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:">"})]}),` +`,s.jsx(l.span,{className:"line","data-empty-line":!0,children:" "}),` +`,s.jsx(l.span,{className:"line",children:s.jsx(l.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:" /**"})}),` +`,s.jsx(l.span,{className:"line",children:s.jsx(l.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:" * Returns an instance of a `TypedApi`"})}),` +`,s.jsx(l.span,{className:"line",children:s.jsx(l.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:" *"})}),` +`,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:" * "}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"@param"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" descriptors"}),s.jsx(l.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:" Pass descriptors from `@polkadot-api/descriptors`"})]}),` +`,s.jsx(l.span,{className:"line",children:s.jsx(l.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:" * generated by `papi` CLI."})}),` +`,s.jsx(l.span,{className:"line",children:s.jsx(l.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:" */"})}),` +`,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#DCBDFB"},children:" getTypedApi"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" <"}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:"D"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:" extends"}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" Descriptors"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:">("}),s.jsx(l.span,{style:{color:"#E36209","--shiki-dark":"#F69D50"},children:"descriptors"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" D"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:") "}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"=>"}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" TypedApi"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"<"}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:"D"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:">"})]}),` +`,s.jsx(l.span,{className:"line","data-empty-line":!0,children:" "}),` +`,s.jsx(l.span,{className:"line",children:s.jsx(l.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:" /**"})}),` +`,s.jsx(l.span,{className:"line",children:s.jsx(l.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:" * This will `unfollow` the provider, disconnect and error every subscription."})}),` +`,s.jsx(l.span,{className:"line",children:s.jsx(l.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:" * After calling it nothing can be done with the client."})}),` +`,s.jsx(l.span,{className:"line",children:s.jsx(l.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:" */"})}),` +`,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#DCBDFB"},children:" destroy"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" () "}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"=>"}),s.jsx(l.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" void"})]}),` +`,s.jsx(l.span,{className:"line","data-empty-line":!0,children:" "}),` +`,s.jsx(l.span,{className:"line",children:s.jsx(l.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:" /**"})}),` +`,s.jsx(l.span,{className:"line",children:s.jsx(l.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:' * This API is meant as an "escape hatch" to allow access to debug endpoints'})}),` +`,s.jsx(l.span,{className:"line",children:s.jsx(l.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:" * such as `system_version`, and other useful endpoints that are not spec"})}),` +`,s.jsx(l.span,{className:"line",children:s.jsx(l.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:" * compliant."})}),` +`,s.jsx(l.span,{className:"line",children:s.jsx(l.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:" *"})}),` +`,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:" * "}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"@example"})]}),` +`,s.jsx(l.span,{className:"line",children:s.jsx(l.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:" *"})}),` +`,s.jsx(l.span,{className:"line",children:s.jsx(l.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:' * const systemVersion = await client._request("system_version", [])'})}),` +`,s.jsx(l.span,{className:"line",children:s.jsx(l.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:" * const myFancyThhing = await client._request<"})}),` +`,s.jsx(l.span,{className:"line",children:s.jsx(l.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:" * { value: string },"})}),` +`,s.jsx(l.span,{className:"line",children:s.jsx(l.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:" * [id: number]"})}),` +`,s.jsx(l.span,{className:"line",children:s.jsx(l.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:' * >("very_fancy", [1714])'})}),` +`,s.jsx(l.span,{className:"line",children:s.jsx(l.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:" *"})}),` +`,s.jsx(l.span,{className:"line",children:s.jsx(l.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:" */"})}),` +`,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#DCBDFB"},children:" _request"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" <"}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:"Reply"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:" ="}),s.jsx(l.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" any"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:", "}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:"Params"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:" extends"}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" Array"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"<"}),s.jsx(l.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:"any"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"> "}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"="}),s.jsx(l.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" any"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"[]>("})]}),` +`,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#E36209","--shiki-dark":"#F69D50"},children:" method"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(l.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" string"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:","})]}),` +`,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#E36209","--shiki-dark":"#F69D50"},children:" params"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" Params"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:","})]}),` +`,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" ) "}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"=>"}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" Promise"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"<"}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:"Reply"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:">"})]}),` +`,s.jsx(l.span,{className:"line",children:s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"}"})})]})}),` +`,s.jsxs(l.p,{children:["As one can note, ",s.jsx(l.code,{children:"PolkadotClient"})," heavily relies on rxjs' ",s.jsx(l.code,{children:"Observable"}),", used as well under the hood of Promise-based methods. Every method is fairly straight-forward and already documented exhaustively, except for ",s.jsx(l.code,{children:"getTypedApi"}),". Let's dive into it."]})]})}function c(e={}){const{wrapper:l}={...n(),...e.components};return l?s.jsx(l,{...e,children:s.jsx(i,{...e})}):i(e)}export{c as default,r as frontmatter}; diff --git a/assets/codegen-CdxKKys-.js b/assets/codegen-kzmgkay2.js similarity index 99% rename from assets/codegen-CdxKKys-.js rename to assets/codegen-kzmgkay2.js index 5ef78c81..7c102e2f 100644 --- a/assets/codegen-CdxKKys-.js +++ b/assets/codegen-kzmgkay2.js @@ -1,4 +1,4 @@ -import{u as l,j as s}from"./index-wpzGQYGF.js";const r={title:"Codegen",description:"undefined"};function n(i){const e={a:"a",aside:"aside",code:"code",div:"div",h1:"h1",h2:"h2",header:"header",li:"li",p:"p",pre:"pre",span:"span",ul:"ul",...l(),...i.components};return s.jsxs(s.Fragment,{children:[s.jsx(e.header,{children:s.jsxs(e.h1,{id:"codegen",children:["Codegen",s.jsx(e.a,{"aria-hidden":"true",tabIndex:"-1",href:"#codegen",children:s.jsx(e.div,{"data-autolink-icon":!0})})]})}),` +import{u as l,j as s}from"./index-DTtoqbmS.js";const r={title:"Codegen",description:"undefined"};function n(i){const e={a:"a",aside:"aside",code:"code",div:"div",h1:"h1",h2:"h2",header:"header",li:"li",p:"p",pre:"pre",span:"span",ul:"ul",...l(),...i.components};return s.jsxs(s.Fragment,{children:[s.jsx(e.header,{children:s.jsxs(e.h1,{id:"codegen",children:["Codegen",s.jsx(e.a,{"aria-hidden":"true",tabIndex:"-1",href:"#codegen",children:s.jsx(e.div,{"data-autolink-icon":!0})})]})}),` `,s.jsx(e.p,{children:"Technically, to connect to a chain, all you need is just the provider. But to interact with it, you need to know the list of storage, runtime, and transaction calls and their types."}),` `,s.jsx(e.p,{children:"During runtime, the library can request the metadata for the chain it's connected to, and from this, it generates all the codecs to interact with it. But as a developer, you need to get that information beforehand."}),` `,s.jsx(e.p,{children:"Polkadot-API has a CLI that downloads the metadata for a chain and then uses that metadata to generate all the type descriptors."}),` diff --git a/assets/getting-started-DZfB88EO.js b/assets/getting-started-DN6TOoEE.js similarity index 99% rename from assets/getting-started-DZfB88EO.js rename to assets/getting-started-DN6TOoEE.js index 3ec14938..04278f71 100644 --- a/assets/getting-started-DZfB88EO.js +++ b/assets/getting-started-DN6TOoEE.js @@ -1,4 +1,4 @@ -import{j as s,$ as h,a as t,b as k,c as p,u as o}from"./index-wpzGQYGF.js";const a=({options:i,children:e})=>s.jsxs(h,{className:"Tabs__root border rounded bg-[--vocs-color_codeBlockBackground] border-[--vocs-color_codeInlineBorder]",defaultValue:Object.keys(i)[0],children:[s.jsx(t,{className:"Tabs__list flex flex-wrap px-2 bg-[--vocs-color_codeTitleBackground]",children:Object.entries(i).map(([r,d])=>s.jsx(k,{className:"text-sm p-3 pb-2 text-[--vocs-color_text3] border-b border-transparent hover:text-[--vocs-color_text] [&[data-state='active']]:text-[--vocs-color_text] [&[data-state='active']]:border-[--vocs-color_borderAccent]",value:r,children:d},r))}),e]}),l=i=>s.jsx(p,{...i}),x=Object.freeze(Object.defineProperty({__proto__:null,Content:l,Root:a},Symbol.toStringTag,{value:"Module"})),y={title:"Getting Started",description:"undefined"};function c(i){const e={a:"a",aside:"aside",code:"code",div:"div",h1:"h1",header:"header",p:"p",pre:"pre",span:"span",...o(),...i.components};return x||n("Tabs",!1),l||n("Tabs.Content",!0),a||n("Tabs.Root",!0),s.jsxs(s.Fragment,{children:[s.jsx(e.header,{children:s.jsxs(e.h1,{id:"getting-started",children:["Getting Started",s.jsx(e.a,{"aria-hidden":"true",tabIndex:"-1",href:"#getting-started",children:s.jsx(e.div,{"data-autolink-icon":!0})})]})}),` +import{j as s,$ as h,a as t,b as k,c as p,u as o}from"./index-DTtoqbmS.js";const a=({options:i,children:e})=>s.jsxs(h,{className:"Tabs__root border rounded bg-[--vocs-color_codeBlockBackground] border-[--vocs-color_codeInlineBorder]",defaultValue:Object.keys(i)[0],children:[s.jsx(t,{className:"Tabs__list flex flex-wrap px-2 bg-[--vocs-color_codeTitleBackground]",children:Object.entries(i).map(([r,d])=>s.jsx(k,{className:"text-sm p-3 pb-2 text-[--vocs-color_text3] border-b border-transparent hover:text-[--vocs-color_text] [&[data-state='active']]:text-[--vocs-color_text] [&[data-state='active']]:border-[--vocs-color_borderAccent]",value:r,children:d},r))}),e]}),l=i=>s.jsx(p,{...i}),x=Object.freeze(Object.defineProperty({__proto__:null,Content:l,Root:a},Symbol.toStringTag,{value:"Module"})),y={title:"Getting Started",description:"undefined"};function c(i){const e={a:"a",aside:"aside",code:"code",div:"div",h1:"h1",header:"header",p:"p",pre:"pre",span:"span",...o(),...i.components};return x||n("Tabs",!1),l||n("Tabs.Content",!0),a||n("Tabs.Root",!0),s.jsxs(s.Fragment,{children:[s.jsx(e.header,{children:s.jsxs(e.h1,{id:"getting-started",children:["Getting Started",s.jsx(e.a,{"aria-hidden":"true",tabIndex:"-1",href:"#getting-started",children:s.jsx(e.div,{"data-autolink-icon":!0})})]})}),` `,s.jsxs(e.p,{children:["Start by installing ",s.jsx(e.code,{children:"polkadot-api"})," and ",s.jsx(e.code,{children:"@polkadot-api/descriptors"})]}),` `,s.jsx(e.pre,{className:"shiki shiki-themes github-light github-dark-dimmed",style:{backgroundColor:"#fff","--shiki-dark-bg":"#22272e",color:"#24292e","--shiki-dark":"#adbac7"},tabIndex:"0",children:s.jsx(e.code,{children:s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:"npm"}),s.jsx(e.span,{style:{color:"#032F62","--shiki-dark":"#96D0FF"},children:" i"}),s.jsx(e.span,{style:{color:"#032F62","--shiki-dark":"#96D0FF"},children:" polkadot-api"}),s.jsx(e.span,{style:{color:"#032F62","--shiki-dark":"#96D0FF"},children:" @polkadot-api/descriptors"})]})})}),` `,s.jsx(e.p,{children:"Next, download the latest metadata from the chain you want to connect to and generate the types:"}),` diff --git a/assets/index-wpzGQYGF.js b/assets/index-DTtoqbmS.js similarity index 83% rename from assets/index-wpzGQYGF.js rename to assets/index-DTtoqbmS.js index 2caacdd3..3fc84c85 100644 --- a/assets/index-wpzGQYGF.js +++ b/assets/index-DTtoqbmS.js @@ -6,7 +6,7 @@ function Du(e,t){for(var n=0;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),lc=Object.prototype.hasOwnProperty,Qy=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Nd={},Pd={};function Zy(e){return lc.call(Pd,e)?!0:lc.call(Nd,e)?!1:Qy.test(e)?Pd[e]=!0:(Nd[e]=!0,!1)}function Xy(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Jy(e,t,n,r){if(t===null||typeof t>"u"||Xy(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function ut(e,t,n,r,o,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var qe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){qe[e]=new ut(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];qe[t]=new ut(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){qe[e]=new ut(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){qe[e]=new ut(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){qe[e]=new ut(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){qe[e]=new ut(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){qe[e]=new ut(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){qe[e]=new ut(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){qe[e]=new ut(e,5,!1,e.toLowerCase(),null,!1,!1)});var Hu=/[\-:]([a-z])/g;function Vu(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Hu,Vu);qe[t]=new ut(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Hu,Vu);qe[t]=new ut(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Hu,Vu);qe[t]=new ut(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){qe[e]=new ut(e,1,!1,e.toLowerCase(),null,!1,!1)});qe.xlinkHref=new ut("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){qe[e]=new ut(e,1,!1,e.toLowerCase(),null,!0,!0)});function Wu(e,t,n,r){var o=qe.hasOwnProperty(t)?qe[t]:null;(o!==null?o.type!==0:r||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),lc=Object.prototype.hasOwnProperty,Qy=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Nd={},Pd={};function Zy(e){return lc.call(Pd,e)?!0:lc.call(Nd,e)?!1:Qy.test(e)?Pd[e]=!0:(Nd[e]=!0,!1)}function Xy(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Jy(e,t,n,r){if(t===null||typeof t>"u"||Xy(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function ft(e,t,n,r,o,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var et={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){et[e]=new ft(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];et[t]=new ft(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){et[e]=new ft(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){et[e]=new ft(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){et[e]=new ft(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){et[e]=new ft(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){et[e]=new ft(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){et[e]=new ft(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){et[e]=new ft(e,5,!1,e.toLowerCase(),null,!1,!1)});var Hu=/[\-:]([a-z])/g;function Vu(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Hu,Vu);et[t]=new ft(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Hu,Vu);et[t]=new ft(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Hu,Vu);et[t]=new ft(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){et[e]=new ft(e,1,!1,e.toLowerCase(),null,!1,!1)});et.xlinkHref=new ft("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){et[e]=new ft(e,1,!1,e.toLowerCase(),null,!0,!0)});function Wu(e,t,n,r){var o=et.hasOwnProperty(t)?et[t]:null;(o!==null?o.type!==0:r||!(2l||o[a]!==i[l]){var s=` -`+o[a].replace(" at new "," at ");return e.displayName&&s.includes("")&&(s=s.replace("",e.displayName)),s}while(1<=a&&0<=l);break}}}finally{ss=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ri(e):""}function qy(e){switch(e.tag){case 5:return ri(e.type);case 16:return ri("Lazy");case 13:return ri("Suspense");case 19:return ri("SuspenseList");case 0:case 2:case 15:return e=cs(e.type,!1),e;case 11:return e=cs(e.type.render,!1),e;case 1:return e=cs(e.type,!0),e;default:return""}}function fc(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Kr:return"Fragment";case Wr:return"Portal";case sc:return"Profiler";case Ku:return"StrictMode";case cc:return"Suspense";case uc:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Rv:return(e.displayName||"Context")+".Consumer";case kv:return(e._context.displayName||"Context")+".Provider";case Yu:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Gu:return t=e.displayName||null,t!==null?t:fc(e.type)||"Memo";case An:t=e._payload,e=e._init;try{return fc(e(t))}catch{}}return null}function e2(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return fc(t);case 8:return t===Ku?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Kn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Pv(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function t2(e){var t=Pv(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){r=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function oa(e){e._valueTracker||(e._valueTracker=t2(e))}function Av(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Pv(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Za(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function dc(e,t){var n=t.checked;return ke({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Ld(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Kn(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Lv(e,t){t=t.checked,t!=null&&Wu(e,"checked",t,!1)}function hc(e,t){Lv(e,t);var n=Kn(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?pc(e,t.type,n):t.hasOwnProperty("defaultValue")&&pc(e,t.type,Kn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Id(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function pc(e,t,n){(t!=="number"||Za(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var oi=Array.isArray;function oo(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=ia.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function wi(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var si={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},n2=["Webkit","ms","Moz","O"];Object.keys(si).forEach(function(e){n2.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),si[t]=si[e]})});function Dv(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||si.hasOwnProperty(e)&&si[e]?(""+t).trim():t+"px"}function jv(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Dv(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var r2=ke({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function gc(e,t){if(t){if(r2[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(D(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(D(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(D(61))}if(t.style!=null&&typeof t.style!="object")throw Error(D(62))}}function yc(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var wc=null;function Qu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var xc=null,io=null,ao=null;function Dd(e){if(e=Vi(e)){if(typeof xc!="function")throw Error(D(280));var t=e.stateNode;t&&(t=Ol(t),xc(e.stateNode,e.type,t))}}function Fv(e){io?ao?ao.push(e):ao=[e]:io=e}function zv(){if(io){var e=io,t=ao;if(ao=io=null,Dd(e),t)for(e=0;e>>=0,e===0?32:31-(p2(e)/v2|0)|0}var aa=64,la=4194304;function ii(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function el(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=n&268435455;if(a!==0){var l=a&~o;l!==0?r=ii(l):(i&=a,i!==0&&(r=ii(i)))}else a=n&~o,a!==0?r=ii(a):i!==0&&(r=ii(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Ui(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Vt(t),e[t]=n}function w2(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=ui),Kd=" ",Yd=!1;function am(e,t){switch(e){case"keyup":return Y2.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function lm(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Yr=!1;function Q2(e,t){switch(e){case"compositionend":return lm(t);case"keypress":return t.which!==32?null:(Yd=!0,Kd);case"textInput":return e=t.data,e===Kd&&Yd?null:e;default:return null}}function Z2(e,t){if(Yr)return e==="compositionend"||!rf&&am(e,t)?(e=om(),Oa=ef=Mn=null,Yr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Xd(n)}}function fm(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?fm(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function dm(){for(var e=window,t=Za();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Za(e.document)}return t}function of(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function i3(e){var t=dm(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&fm(n.ownerDocument.documentElement,n)){if(r!==null&&of(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=Jd(n,i);var a=Jd(n,r);o&&a&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Gr=null,$c=null,di=null,Tc=!1;function qd(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Tc||Gr==null||Gr!==Za(r)||(r=Gr,"selectionStart"in r&&of(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),di&&bi(di,r)||(di=r,r=rl($c,"onSelect"),0Xr||(e.current=Lc[Xr],Lc[Xr]=null,Xr--)}function pe(e,t){Xr++,Lc[Xr]=e.current,e.current=t}var Yn={},rt=er(Yn),pt=er(!1),yr=Yn;function vo(e,t){var n=e.type.contextTypes;if(!n)return Yn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function vt(e){return e=e.childContextTypes,e!=null}function il(){me(pt),me(rt)}function ah(e,t,n){if(rt.current!==Yn)throw Error(D(168));pe(rt,t),pe(pt,n)}function Cm(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(D(108,e2(e)||"Unknown",o));return ke({},n,r)}function al(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Yn,yr=rt.current,pe(rt,e),pe(pt,pt.current),!0}function lh(e,t,n){var r=e.stateNode;if(!r)throw Error(D(169));n?(e=Cm(e,t,yr),r.__reactInternalMemoizedMergedChildContext=e,me(pt),me(rt),pe(rt,e)):me(pt),pe(pt,n)}var cn=null,Ml=!1,_s=!1;function Em(e){cn===null?cn=[e]:cn.push(e)}function g3(e){Ml=!0,Em(e)}function tr(){if(!_s&&cn!==null){_s=!0;var e=0,t=ue;try{var n=cn;for(ue=1;e>=a,o-=a,un=1<<32-Vt(t)+o|n<b?(T=_,_=null):T=_.sibling;var P=d(v,_,x[b],E);if(P===null){_===null&&(_=T);break}e&&_&&P.alternate===null&&t(v,_),g=i(P,g,b),$===null?S=P:$.sibling=P,$=P,_=T}if(b===x.length)return n(v,_),_e&&lr(v,b),S;if(_===null){for(;bb?(T=_,_=null):T=_.sibling;var M=d(v,_,P.value,E);if(M===null){_===null&&(_=T);break}e&&_&&M.alternate===null&&t(v,_),g=i(M,g,b),$===null?S=M:$.sibling=M,$=M,_=T}if(P.done)return n(v,_),_e&&lr(v,b),S;if(_===null){for(;!P.done;b++,P=x.next())P=c(v,P.value,E),P!==null&&(g=i(P,g,b),$===null?S=P:$.sibling=P,$=P);return _e&&lr(v,b),S}for(_=r(v,_);!P.done;b++,P=x.next())P=p(_,v,b,P.value,E),P!==null&&(e&&P.alternate!==null&&_.delete(P.key===null?b:P.key),g=i(P,g,b),$===null?S=P:$.sibling=P,$=P);return e&&_.forEach(function(O){return t(v,O)}),_e&&lr(v,b),S}function C(v,g,x,E){if(typeof x=="object"&&x!==null&&x.type===Kr&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case ra:e:{for(var S=x.key,$=g;$!==null;){if($.key===S){if(S=x.type,S===Kr){if($.tag===7){n(v,$.sibling),g=o($,x.props.children),g.return=v,v=g;break e}}else if($.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===An&&uh(S)===$.type){n(v,$.sibling),g=o($,x.props),g.ref=Yo(v,$,x),g.return=v,v=g;break e}n(v,$);break}else t(v,$);$=$.sibling}x.type===Kr?(g=mr(x.props.children,v.mode,E,x.key),g.return=v,v=g):(E=Ha(x.type,x.key,x.props,null,v.mode,E),E.ref=Yo(v,g,x),E.return=v,v=E)}return a(v);case Wr:e:{for($=x.key;g!==null;){if(g.key===$)if(g.tag===4&&g.stateNode.containerInfo===x.containerInfo&&g.stateNode.implementation===x.implementation){n(v,g.sibling),g=o(g,x.children||[]),g.return=v,v=g;break e}else{n(v,g);break}else t(v,g);g=g.sibling}g=Ps(x,v.mode,E),g.return=v,v=g}return a(v);case An:return $=x._init,C(v,g,$(x._payload),E)}if(oi(x))return w(v,g,x,E);if(Uo(x))return m(v,g,x,E);pa(v,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,g!==null&&g.tag===6?(n(v,g.sibling),g=o(g,x),g.return=v,v=g):(n(v,g),g=Ns(x,v.mode,E),g.return=v,v=g),a(v)):n(v,g)}return C}var go=$m(!0),Tm=$m(!1),cl=er(null),ul=null,eo=null,cf=null;function uf(){cf=eo=ul=null}function ff(e){var t=cl.current;me(cl),e._currentValue=t}function Mc(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function so(e,t){ul=e,cf=eo=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(ht=!0),e.firstContext=null)}function Lt(e){var t=e._currentValue;if(cf!==e)if(e={context:e,memoizedValue:t,next:null},eo===null){if(ul===null)throw Error(D(308));eo=e,ul.dependencies={lanes:0,firstContext:e}}else eo=eo.next=e;return t}var ur=null;function df(e){ur===null?ur=[e]:ur.push(e)}function km(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,df(t)):(n.next=o.next,o.next=n),t.interleaved=n,mn(e,r)}function mn(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Ln=!1;function hf(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Rm(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function dn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Un(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,ce&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,mn(e,n)}return o=r.interleaved,o===null?(t.next=t,df(r)):(t.next=o.next,o.next=t),r.interleaved=t,mn(e,n)}function Da(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Xu(e,n)}}function fh(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=a:i=i.next=a,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function fl(e,t,n,r){var o=e.updateQueue;Ln=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,l=o.shared.pending;if(l!==null){o.shared.pending=null;var s=l,u=s.next;s.next=null,a===null?i=u:a.next=u,a=s;var f=e.alternate;f!==null&&(f=f.updateQueue,l=f.lastBaseUpdate,l!==a&&(l===null?f.firstBaseUpdate=u:l.next=u,f.lastBaseUpdate=s))}if(i!==null){var c=o.baseState;a=0,f=u=s=null,l=i;do{var d=l.lane,p=l.eventTime;if((r&d)===d){f!==null&&(f=f.next={eventTime:p,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var w=e,m=l;switch(d=t,p=n,m.tag){case 1:if(w=m.payload,typeof w=="function"){c=w.call(p,c,d);break e}c=w;break e;case 3:w.flags=w.flags&-65537|128;case 0:if(w=m.payload,d=typeof w=="function"?w.call(p,c,d):w,d==null)break e;c=ke({},c,d);break e;case 2:Ln=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,d=o.effects,d===null?o.effects=[l]:d.push(l))}else p={eventTime:p,lane:d,tag:l.tag,payload:l.payload,callback:l.callback,next:null},f===null?(u=f=p,s=c):f=f.next=p,a|=d;if(l=l.next,l===null){if(l=o.shared.pending,l===null)break;d=l,l=d.next,d.next=null,o.lastBaseUpdate=d,o.shared.pending=null}}while(!0);if(f===null&&(s=c),o.baseState=s,o.firstBaseUpdate=u,o.lastBaseUpdate=f,t=o.shared.interleaved,t!==null){o=t;do a|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);Cr|=a,e.lanes=a,e.memoizedState=c}}function dh(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=bs.transition;bs.transition={};try{e(!1),t()}finally{ue=n,bs.transition=r}}function Km(){return It().memoizedState}function C3(e,t,n){var r=Vn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Ym(e))Gm(t,n);else if(n=km(e,t,n,r),n!==null){var o=lt();Wt(n,e,r,o),Qm(n,t,r)}}function E3(e,t,n){var r=Vn(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ym(e))Gm(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,l=i(a,n);if(o.hasEagerState=!0,o.eagerState=l,Kt(l,a)){var s=t.interleaved;s===null?(o.next=o,df(t)):(o.next=s.next,s.next=o),t.interleaved=o;return}}catch{}finally{}n=km(e,t,o,r),n!==null&&(o=lt(),Wt(n,e,r,o),Qm(n,t,r))}}function Ym(e){var t=e.alternate;return e===Te||t!==null&&t===Te}function Gm(e,t){hi=hl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Qm(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Xu(e,n)}}var pl={readContext:Lt,useCallback:et,useContext:et,useEffect:et,useImperativeHandle:et,useInsertionEffect:et,useLayoutEffect:et,useMemo:et,useReducer:et,useRef:et,useState:et,useDebugValue:et,useDeferredValue:et,useTransition:et,useMutableSource:et,useSyncExternalStore:et,useId:et,unstable_isNewReconciler:!1},_3={readContext:Lt,useCallback:function(e,t){return Jt().memoizedState=[e,t===void 0?null:t],e},useContext:Lt,useEffect:ph,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Fa(4194308,4,Bm.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Fa(4194308,4,e,t)},useInsertionEffect:function(e,t){return Fa(4,2,e,t)},useMemo:function(e,t){var n=Jt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Jt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=C3.bind(null,Te,e),[r.memoizedState,e]},useRef:function(e){var t=Jt();return e={current:e},t.memoizedState=e},useState:hh,useDebugValue:Cf,useDeferredValue:function(e){return Jt().memoizedState=e},useTransition:function(){var e=hh(!1),t=e[0];return e=x3.bind(null,e[1]),Jt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Te,o=Jt();if(_e){if(n===void 0)throw Error(D(407));n=n()}else{if(n=t(),Ve===null)throw Error(D(349));xr&30||Lm(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,ph(Om.bind(null,r,i,e),[e]),r.flags|=2048,Li(9,Im.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Jt(),t=Ve.identifierPrefix;if(_e){var n=fn,r=un;n=(r&~(1<<32-Vt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Pi++,0")&&(s=s.replace("",e.displayName)),s}while(1<=a&&0<=l);break}}}finally{ss=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ri(e):""}function qy(e){switch(e.tag){case 5:return ri(e.type);case 16:return ri("Lazy");case 13:return ri("Suspense");case 19:return ri("SuspenseList");case 0:case 2:case 15:return e=cs(e.type,!1),e;case 11:return e=cs(e.type.render,!1),e;case 1:return e=cs(e.type,!0),e;default:return""}}function fc(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Kr:return"Fragment";case Wr:return"Portal";case sc:return"Profiler";case Ku:return"StrictMode";case cc:return"Suspense";case uc:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Rv:return(e.displayName||"Context")+".Consumer";case kv:return(e._context.displayName||"Context")+".Provider";case Yu:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Gu:return t=e.displayName||null,t!==null?t:fc(e.type)||"Memo";case An:t=e._payload,e=e._init;try{return fc(e(t))}catch{}}return null}function e2(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return fc(t);case 8:return t===Ku?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Kn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Pv(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function t2(e){var t=Pv(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){r=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function oa(e){e._valueTracker||(e._valueTracker=t2(e))}function Av(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Pv(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Za(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function dc(e,t){var n=t.checked;return ke({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Ld(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Kn(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Lv(e,t){t=t.checked,t!=null&&Wu(e,"checked",t,!1)}function hc(e,t){Lv(e,t);var n=Kn(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?pc(e,t.type,n):t.hasOwnProperty("defaultValue")&&pc(e,t.type,Kn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Id(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function pc(e,t,n){(t!=="number"||Za(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var oi=Array.isArray;function oo(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=ia.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function wi(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var si={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},n2=["Webkit","ms","Moz","O"];Object.keys(si).forEach(function(e){n2.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),si[t]=si[e]})});function Dv(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||si.hasOwnProperty(e)&&si[e]?(""+t).trim():t+"px"}function jv(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Dv(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var r2=ke({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function gc(e,t){if(t){if(r2[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(D(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(D(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(D(61))}if(t.style!=null&&typeof t.style!="object")throw Error(D(62))}}function yc(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var wc=null;function Qu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var xc=null,io=null,ao=null;function Dd(e){if(e=Vi(e)){if(typeof xc!="function")throw Error(D(280));var t=e.stateNode;t&&(t=Ol(t),xc(e.stateNode,e.type,t))}}function Fv(e){io?ao?ao.push(e):ao=[e]:io=e}function zv(){if(io){var e=io,t=ao;if(ao=io=null,Dd(e),t)for(e=0;e>>=0,e===0?32:31-(p2(e)/v2|0)|0}var aa=64,la=4194304;function ii(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function el(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=n&268435455;if(a!==0){var l=a&~o;l!==0?r=ii(l):(i&=a,i!==0&&(r=ii(i)))}else a=n&~o,a!==0?r=ii(a):i!==0&&(r=ii(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Ui(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Vt(t),e[t]=n}function w2(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=ui),Kd=" ",Yd=!1;function am(e,t){switch(e){case"keyup":return Y2.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function lm(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Yr=!1;function Q2(e,t){switch(e){case"compositionend":return lm(t);case"keypress":return t.which!==32?null:(Yd=!0,Kd);case"textInput":return e=t.data,e===Kd&&Yd?null:e;default:return null}}function Z2(e,t){if(Yr)return e==="compositionend"||!rf&&am(e,t)?(e=om(),Oa=ef=Mn=null,Yr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Xd(n)}}function fm(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?fm(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function dm(){for(var e=window,t=Za();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Za(e.document)}return t}function of(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function iw(e){var t=dm(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&fm(n.ownerDocument.documentElement,n)){if(r!==null&&of(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=Jd(n,i);var a=Jd(n,r);o&&a&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Gr=null,$c=null,di=null,Tc=!1;function qd(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Tc||Gr==null||Gr!==Za(r)||(r=Gr,"selectionStart"in r&&of(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),di&&bi(di,r)||(di=r,r=rl($c,"onSelect"),0Xr||(e.current=Lc[Xr],Lc[Xr]=null,Xr--)}function pe(e,t){Xr++,Lc[Xr]=e.current,e.current=t}var Yn={},ot=er(Yn),vt=er(!1),yr=Yn;function vo(e,t){var n=e.type.contextTypes;if(!n)return Yn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function mt(e){return e=e.childContextTypes,e!=null}function il(){me(vt),me(ot)}function ah(e,t,n){if(ot.current!==Yn)throw Error(D(168));pe(ot,t),pe(vt,n)}function Cm(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(D(108,e2(e)||"Unknown",o));return ke({},n,r)}function al(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Yn,yr=ot.current,pe(ot,e),pe(vt,vt.current),!0}function lh(e,t,n){var r=e.stateNode;if(!r)throw Error(D(169));n?(e=Cm(e,t,yr),r.__reactInternalMemoizedMergedChildContext=e,me(vt),me(ot),pe(ot,e)):me(vt),pe(vt,n)}var cn=null,Ml=!1,_s=!1;function Em(e){cn===null?cn=[e]:cn.push(e)}function gw(e){Ml=!0,Em(e)}function tr(){if(!_s&&cn!==null){_s=!0;var e=0,t=ue;try{var n=cn;for(ue=1;e>=a,o-=a,un=1<<32-Vt(t)+o|n<b?(T=_,_=null):T=_.sibling;var P=d(v,_,x[b],E);if(P===null){_===null&&(_=T);break}e&&_&&P.alternate===null&&t(v,_),g=i(P,g,b),$===null?S=P:$.sibling=P,$=P,_=T}if(b===x.length)return n(v,_),_e&&lr(v,b),S;if(_===null){for(;bb?(T=_,_=null):T=_.sibling;var M=d(v,_,P.value,E);if(M===null){_===null&&(_=T);break}e&&_&&M.alternate===null&&t(v,_),g=i(M,g,b),$===null?S=M:$.sibling=M,$=M,_=T}if(P.done)return n(v,_),_e&&lr(v,b),S;if(_===null){for(;!P.done;b++,P=x.next())P=c(v,P.value,E),P!==null&&(g=i(P,g,b),$===null?S=P:$.sibling=P,$=P);return _e&&lr(v,b),S}for(_=r(v,_);!P.done;b++,P=x.next())P=p(_,v,b,P.value,E),P!==null&&(e&&P.alternate!==null&&_.delete(P.key===null?b:P.key),g=i(P,g,b),$===null?S=P:$.sibling=P,$=P);return e&&_.forEach(function(O){return t(v,O)}),_e&&lr(v,b),S}function C(v,g,x,E){if(typeof x=="object"&&x!==null&&x.type===Kr&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case ra:e:{for(var S=x.key,$=g;$!==null;){if($.key===S){if(S=x.type,S===Kr){if($.tag===7){n(v,$.sibling),g=o($,x.props.children),g.return=v,v=g;break e}}else if($.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===An&&uh(S)===$.type){n(v,$.sibling),g=o($,x.props),g.ref=Yo(v,$,x),g.return=v,v=g;break e}n(v,$);break}else t(v,$);$=$.sibling}x.type===Kr?(g=mr(x.props.children,v.mode,E,x.key),g.return=v,v=g):(E=Ha(x.type,x.key,x.props,null,v.mode,E),E.ref=Yo(v,g,x),E.return=v,v=E)}return a(v);case Wr:e:{for($=x.key;g!==null;){if(g.key===$)if(g.tag===4&&g.stateNode.containerInfo===x.containerInfo&&g.stateNode.implementation===x.implementation){n(v,g.sibling),g=o(g,x.children||[]),g.return=v,v=g;break e}else{n(v,g);break}else t(v,g);g=g.sibling}g=Ps(x,v.mode,E),g.return=v,v=g}return a(v);case An:return $=x._init,C(v,g,$(x._payload),E)}if(oi(x))return w(v,g,x,E);if(Uo(x))return m(v,g,x,E);pa(v,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,g!==null&&g.tag===6?(n(v,g.sibling),g=o(g,x),g.return=v,v=g):(n(v,g),g=Ns(x,v.mode,E),g.return=v,v=g),a(v)):n(v,g)}return C}var go=$m(!0),Tm=$m(!1),cl=er(null),ul=null,eo=null,cf=null;function uf(){cf=eo=ul=null}function ff(e){var t=cl.current;me(cl),e._currentValue=t}function Mc(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function so(e,t){ul=e,cf=eo=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(pt=!0),e.firstContext=null)}function Lt(e){var t=e._currentValue;if(cf!==e)if(e={context:e,memoizedValue:t,next:null},eo===null){if(ul===null)throw Error(D(308));eo=e,ul.dependencies={lanes:0,firstContext:e}}else eo=eo.next=e;return t}var ur=null;function df(e){ur===null?ur=[e]:ur.push(e)}function km(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,df(t)):(n.next=o.next,o.next=n),t.interleaved=n,mn(e,r)}function mn(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Ln=!1;function hf(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Rm(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function dn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Un(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,ce&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,mn(e,n)}return o=r.interleaved,o===null?(t.next=t,df(r)):(t.next=o.next,o.next=t),r.interleaved=t,mn(e,n)}function Da(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Xu(e,n)}}function fh(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=a:i=i.next=a,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function fl(e,t,n,r){var o=e.updateQueue;Ln=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,l=o.shared.pending;if(l!==null){o.shared.pending=null;var s=l,u=s.next;s.next=null,a===null?i=u:a.next=u,a=s;var f=e.alternate;f!==null&&(f=f.updateQueue,l=f.lastBaseUpdate,l!==a&&(l===null?f.firstBaseUpdate=u:l.next=u,f.lastBaseUpdate=s))}if(i!==null){var c=o.baseState;a=0,f=u=s=null,l=i;do{var d=l.lane,p=l.eventTime;if((r&d)===d){f!==null&&(f=f.next={eventTime:p,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var w=e,m=l;switch(d=t,p=n,m.tag){case 1:if(w=m.payload,typeof w=="function"){c=w.call(p,c,d);break e}c=w;break e;case 3:w.flags=w.flags&-65537|128;case 0:if(w=m.payload,d=typeof w=="function"?w.call(p,c,d):w,d==null)break e;c=ke({},c,d);break e;case 2:Ln=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,d=o.effects,d===null?o.effects=[l]:d.push(l))}else p={eventTime:p,lane:d,tag:l.tag,payload:l.payload,callback:l.callback,next:null},f===null?(u=f=p,s=c):f=f.next=p,a|=d;if(l=l.next,l===null){if(l=o.shared.pending,l===null)break;d=l,l=d.next,d.next=null,o.lastBaseUpdate=d,o.shared.pending=null}}while(!0);if(f===null&&(s=c),o.baseState=s,o.firstBaseUpdate=u,o.lastBaseUpdate=f,t=o.shared.interleaved,t!==null){o=t;do a|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);Cr|=a,e.lanes=a,e.memoizedState=c}}function dh(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=bs.transition;bs.transition={};try{e(!1),t()}finally{ue=n,bs.transition=r}}function Km(){return It().memoizedState}function Cw(e,t,n){var r=Vn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Ym(e))Gm(t,n);else if(n=km(e,t,n,r),n!==null){var o=st();Wt(n,e,r,o),Qm(n,t,r)}}function Ew(e,t,n){var r=Vn(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ym(e))Gm(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,l=i(a,n);if(o.hasEagerState=!0,o.eagerState=l,Kt(l,a)){var s=t.interleaved;s===null?(o.next=o,df(t)):(o.next=s.next,s.next=o),t.interleaved=o;return}}catch{}finally{}n=km(e,t,o,r),n!==null&&(o=st(),Wt(n,e,r,o),Qm(n,t,r))}}function Ym(e){var t=e.alternate;return e===Te||t!==null&&t===Te}function Gm(e,t){hi=hl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Qm(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Xu(e,n)}}var pl={readContext:Lt,useCallback:tt,useContext:tt,useEffect:tt,useImperativeHandle:tt,useInsertionEffect:tt,useLayoutEffect:tt,useMemo:tt,useReducer:tt,useRef:tt,useState:tt,useDebugValue:tt,useDeferredValue:tt,useTransition:tt,useMutableSource:tt,useSyncExternalStore:tt,useId:tt,unstable_isNewReconciler:!1},_w={readContext:Lt,useCallback:function(e,t){return Jt().memoizedState=[e,t===void 0?null:t],e},useContext:Lt,useEffect:ph,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Fa(4194308,4,Bm.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Fa(4194308,4,e,t)},useInsertionEffect:function(e,t){return Fa(4,2,e,t)},useMemo:function(e,t){var n=Jt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Jt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Cw.bind(null,Te,e),[r.memoizedState,e]},useRef:function(e){var t=Jt();return e={current:e},t.memoizedState=e},useState:hh,useDebugValue:Cf,useDeferredValue:function(e){return Jt().memoizedState=e},useTransition:function(){var e=hh(!1),t=e[0];return e=xw.bind(null,e[1]),Jt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Te,o=Jt();if(_e){if(n===void 0)throw Error(D(407));n=n()}else{if(n=t(),We===null)throw Error(D(349));xr&30||Lm(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,ph(Om.bind(null,r,i,e),[e]),r.flags|=2048,Li(9,Im.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Jt(),t=We.identifierPrefix;if(_e){var n=fn,r=un;n=(r&~(1<<32-Vt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Pi++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[qt]=t,e[ki]=r,i0(e,t,!1,!1),t.stateNode=e;e:{switch(a=yc(n,r),n){case"dialog":ve("cancel",e),ve("close",e),o=r;break;case"iframe":case"object":case"embed":ve("load",e),o=r;break;case"video":case"audio":for(o=0;oxo&&(t.flags|=128,r=!0,Go(i,!1),t.lanes=4194304)}else{if(!r)if(e=dl(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Go(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!_e)return tt(t),null}else 2*Ie()-i.renderingStartTime>xo&&n!==1073741824&&(t.flags|=128,r=!0,Go(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(n=i.last,n!==null?n.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Ie(),t.sibling=null,n=$e.current,pe($e,r?n&1|2:n&1),t):(tt(t),null);case 22:case 23:return Tf(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?yt&1073741824&&(tt(t),t.subtreeFlags&6&&(t.flags|=8192)):tt(t),null;case 24:return null;case 25:return null}throw Error(D(156,t.tag))}function P3(e,t){switch(lf(t),t.tag){case 1:return vt(t.type)&&il(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return yo(),me(pt),me(rt),mf(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return vf(t),null;case 13:if(me($e),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(D(340));mo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return me($e),null;case 4:return yo(),null;case 10:return ff(t.type._context),null;case 22:case 23:return Tf(),null;case 24:return null;default:return null}}var ma=!1,nt=!1,A3=typeof WeakSet=="function"?WeakSet:Set,U=null;function to(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Ae(e,t,r)}else n.current=null}function Wc(e,t,n){try{n()}catch(r){Ae(e,t,r)}}var bh=!1;function L3(e,t){if(kc=tl,e=dm(),of(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var a=0,l=-1,s=-1,u=0,f=0,c=e,d=null;t:for(;;){for(var p;c!==n||o!==0&&c.nodeType!==3||(l=a+o),c!==i||r!==0&&c.nodeType!==3||(s=a+r),c.nodeType===3&&(a+=c.nodeValue.length),(p=c.firstChild)!==null;)d=c,c=p;for(;;){if(c===e)break t;if(d===n&&++u===o&&(l=a),d===i&&++f===r&&(s=a),(p=c.nextSibling)!==null)break;c=d,d=c.parentNode}c=p}n=l===-1||s===-1?null:{start:l,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(Rc={focusedElem:e,selectionRange:n},tl=!1,U=t;U!==null;)if(t=U,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,U=e;else for(;U!==null;){t=U;try{var w=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var m=w.memoizedProps,C=w.memoizedState,v=t.stateNode,g=v.getSnapshotBeforeUpdate(t.elementType===t.type?m:jt(t.type,m),C);v.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(D(163))}}catch(E){Ae(t,t.return,E)}if(e=t.sibling,e!==null){e.return=t.return,U=e;break}U=t.return}return w=bh,bh=!1,w}function pi(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&Wc(t,n,i)}o=o.next}while(o!==r)}}function Fl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Kc(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function s0(e){var t=e.alternate;t!==null&&(e.alternate=null,s0(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[qt],delete t[ki],delete t[Ac],delete t[v3],delete t[m3])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function c0(e){return e.tag===5||e.tag===3||e.tag===4}function $h(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||c0(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Yc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=ol));else if(r!==4&&(e=e.child,e!==null))for(Yc(e,t,n),e=e.sibling;e!==null;)Yc(e,t,n),e=e.sibling}function Gc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Gc(e,t,n),e=e.sibling;e!==null;)Gc(e,t,n),e=e.sibling}var Qe=null,Ft=!1;function Rn(e,t,n){for(n=n.child;n!==null;)u0(e,t,n),n=n.sibling}function u0(e,t,n){if(tn&&typeof tn.onCommitFiberUnmount=="function")try{tn.onCommitFiberUnmount(Pl,n)}catch{}switch(n.tag){case 5:nt||to(n,t);case 6:var r=Qe,o=Ft;Qe=null,Rn(e,t,n),Qe=r,Ft=o,Qe!==null&&(Ft?(e=Qe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Qe.removeChild(n.stateNode));break;case 18:Qe!==null&&(Ft?(e=Qe,n=n.stateNode,e.nodeType===8?Es(e.parentNode,n):e.nodeType===1&&Es(e,n),_i(e)):Es(Qe,n.stateNode));break;case 4:r=Qe,o=Ft,Qe=n.stateNode.containerInfo,Ft=!0,Rn(e,t,n),Qe=r,Ft=o;break;case 0:case 11:case 14:case 15:if(!nt&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,a!==void 0&&(i&2||i&4)&&Wc(n,t,a),o=o.next}while(o!==r)}Rn(e,t,n);break;case 1:if(!nt&&(to(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){Ae(n,t,l)}Rn(e,t,n);break;case 21:Rn(e,t,n);break;case 22:n.mode&1?(nt=(r=nt)||n.memoizedState!==null,Rn(e,t,n),nt=r):Rn(e,t,n);break;default:Rn(e,t,n)}}function Th(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new A3),t.forEach(function(r){var o=U3.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Dt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=a),r&=~i}if(r=o,r=Ie()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*O3(r/1960))-r,10e?16:e,Dn===null)var r=!1;else{if(e=Dn,Dn=null,gl=0,ce&6)throw Error(D(331));var o=ce;for(ce|=4,U=e.current;U!==null;){var i=U,a=i.child;if(U.flags&16){var l=i.deletions;if(l!==null){for(var s=0;sIe()-bf?vr(e,0):Sf|=n),mt(e,t)}function y0(e,t){t===0&&(e.mode&1?(t=la,la<<=1,!(la&130023424)&&(la=4194304)):t=1);var n=lt();e=mn(e,t),e!==null&&(Ui(e,t,n),mt(e,n))}function B3(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),y0(e,n)}function U3(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(D(314))}r!==null&&r.delete(t),y0(e,n)}var w0;w0=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||pt.current)ht=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ht=!1,R3(e,t,n);ht=!!(e.flags&131072)}else ht=!1,_e&&t.flags&1048576&&_m(t,sl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;za(e,t),e=t.pendingProps;var o=vo(t,rt.current);so(t,n),o=yf(null,t,r,e,o,n);var i=wf();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,vt(r)?(i=!0,al(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,hf(t),o.updater=jl,t.stateNode=o,o._reactInternals=t,jc(t,r,e,n),t=Bc(null,t,r,!0,i,n)):(t.tag=0,_e&&i&&af(t),it(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(za(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=V3(r),e=jt(r,e),o){case 0:t=zc(null,t,r,e,n);break e;case 1:t=Eh(null,t,r,e,n);break e;case 11:t=xh(null,t,r,e,n);break e;case 14:t=Ch(null,t,r,jt(r.type,e),n);break e}throw Error(D(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:jt(r,o),zc(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:jt(r,o),Eh(e,t,r,o,n);case 3:e:{if(n0(t),e===null)throw Error(D(387));r=t.pendingProps,i=t.memoizedState,o=i.element,Rm(e,t),fl(t,r,null,n);var a=t.memoizedState;if(r=a.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=wo(Error(D(423)),t),t=_h(e,t,r,n,o);break e}else if(r!==o){o=wo(Error(D(424)),t),t=_h(e,t,r,n,o);break e}else for(xt=Bn(t.stateNode.containerInfo.firstChild),Ct=t,_e=!0,Bt=null,n=Tm(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(mo(),r===o){t=gn(e,t,n);break e}it(e,t,r,n)}t=t.child}return t;case 5:return Nm(t),e===null&&Oc(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,Nc(r,o)?a=null:i!==null&&Nc(r,i)&&(t.flags|=32),t0(e,t),it(e,t,a,n),t.child;case 6:return e===null&&Oc(t),null;case 13:return r0(e,t,n);case 4:return pf(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=go(t,null,r,n):it(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:jt(r,o),xh(e,t,r,o,n);case 7:return it(e,t,t.pendingProps,n),t.child;case 8:return it(e,t,t.pendingProps.children,n),t.child;case 12:return it(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,pe(cl,r._currentValue),r._currentValue=a,i!==null)if(Kt(i.value,a)){if(i.children===o.children&&!pt.current){t=gn(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){a=i.child;for(var s=l.firstContext;s!==null;){if(s.context===r){if(i.tag===1){s=dn(-1,n&-n),s.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var f=u.pending;f===null?s.next=s:(s.next=f.next,f.next=s),u.pending=s}}i.lanes|=n,s=i.alternate,s!==null&&(s.lanes|=n),Mc(i.return,n,t),l.lanes|=n;break}s=s.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(D(341));a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),Mc(a,n,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}it(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,so(t,n),o=Lt(o),r=r(o),t.flags|=1,it(e,t,r,n),t.child;case 14:return r=t.type,o=jt(r,t.pendingProps),o=jt(r.type,o),Ch(e,t,r,o,n);case 15:return qm(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:jt(r,o),za(e,t),t.tag=1,vt(r)?(e=!0,al(t)):e=!1,so(t,n),Zm(t,r,o),jc(t,r,o,n),Bc(null,t,r,!0,e,n);case 19:return o0(e,t,n);case 22:return e0(e,t,n)}throw Error(D(156,t.tag))};function x0(e,t){return Yv(e,t)}function H3(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Pt(e,t,n,r){return new H3(e,t,n,r)}function Rf(e){return e=e.prototype,!(!e||!e.isReactComponent)}function V3(e){if(typeof e=="function")return Rf(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Yu)return 11;if(e===Gu)return 14}return 2}function Wn(e,t){var n=e.alternate;return n===null?(n=Pt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ha(e,t,n,r,o,i){var a=2;if(r=e,typeof e=="function")Rf(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Kr:return mr(n.children,o,i,t);case Ku:a=8,o|=8;break;case sc:return e=Pt(12,n,t,o|2),e.elementType=sc,e.lanes=i,e;case cc:return e=Pt(13,n,t,o),e.elementType=cc,e.lanes=i,e;case uc:return e=Pt(19,n,t,o),e.elementType=uc,e.lanes=i,e;case Nv:return Bl(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case kv:a=10;break e;case Rv:a=9;break e;case Yu:a=11;break e;case Gu:a=14;break e;case An:a=16,r=null;break e}throw Error(D(130,e==null?e:typeof e,""))}return t=Pt(a,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function mr(e,t,n,r){return e=Pt(7,e,r,t),e.lanes=n,e}function Bl(e,t,n,r){return e=Pt(22,e,r,t),e.elementType=Nv,e.lanes=n,e.stateNode={isHidden:!1},e}function Ns(e,t,n){return e=Pt(6,e,null,t),e.lanes=n,e}function Ps(e,t,n){return t=Pt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function W3(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=fs(0),this.expirationTimes=fs(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=fs(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Nf(e,t,n,r,o,i,a,l,s){return e=new W3(e,t,n,l,s),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Pt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},hf(i),e}function K3(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(S0)}catch(e){console.error(e)}}S0(),Sv.exports=St;var No=Sv.exports;const b0=Jn(No),X3=Du({__proto__:null,default:b0},[No]);var $0,Oh=No;Oh.createRoot,$0=Oh.hydrateRoot;/** +`+i.stack}return{value:e,source:t,stack:o,digest:null}}function ks(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Fc(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var $w=typeof WeakMap=="function"?WeakMap:Map;function Xm(e,t,n){n=dn(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){ml||(ml=!0,Qc=r),Fc(e,t)},n}function Jm(e,t,n){n=dn(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){Fc(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Fc(e,t),typeof r!="function"&&(Hn===null?Hn=new Set([this]):Hn.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function gh(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new $w;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=zw.bind(null,e,t,n),t.then(e,e))}function yh(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function wh(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=dn(-1,1),t.tag=2,Un(n,t,1))),n.lanes|=1),e)}var Tw=Cn.ReactCurrentOwner,pt=!1;function at(e,t,n,r){t.child=e===null?Tm(t,null,n,r):go(t,e.child,n,r)}function xh(e,t,n,r,o){n=n.render;var i=t.ref;return so(t,o),r=yf(e,t,n,r,i,o),n=wf(),e!==null&&!pt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,gn(e,t,o)):(_e&&n&&af(t),t.flags|=1,at(e,t,r,o),t.child)}function Ch(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!Rf(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,qm(e,t,i,r,o)):(e=Ha(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&o)){var a=i.memoizedProps;if(n=n.compare,n=n!==null?n:bi,n(a,r)&&e.ref===t.ref)return gn(e,t,o)}return t.flags|=1,e=Wn(i,r),e.ref=t.ref,e.return=t,t.child=e}function qm(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(bi(i,r)&&e.ref===t.ref)if(pt=!1,t.pendingProps=r=i,(e.lanes&o)!==0)e.flags&131072&&(pt=!0);else return t.lanes=e.lanes,gn(e,t,o)}return zc(e,t,n,r,o)}function e0(e,t,n){var r=t.pendingProps,o=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},pe(no,yt),yt|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,pe(no,yt),yt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,pe(no,yt),yt|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,pe(no,yt),yt|=r;return at(e,t,o,n),t.child}function t0(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function zc(e,t,n,r,o){var i=mt(n)?yr:ot.current;return i=vo(t,i),so(t,o),n=yf(e,t,n,r,i,o),r=wf(),e!==null&&!pt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,gn(e,t,o)):(_e&&r&&af(t),t.flags|=1,at(e,t,n,o),t.child)}function Eh(e,t,n,r,o){if(mt(n)){var i=!0;al(t)}else i=!1;if(so(t,o),t.stateNode===null)za(e,t),Zm(t,n,r),jc(t,n,r,o),r=!0;else if(e===null){var a=t.stateNode,l=t.memoizedProps;a.props=l;var s=a.context,u=n.contextType;typeof u=="object"&&u!==null?u=Lt(u):(u=mt(n)?yr:ot.current,u=vo(t,u));var f=n.getDerivedStateFromProps,c=typeof f=="function"||typeof a.getSnapshotBeforeUpdate=="function";c||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(l!==r||s!==u)&&mh(t,a,r,u),Ln=!1;var d=t.memoizedState;a.state=d,fl(t,r,a,o),s=t.memoizedState,l!==r||d!==s||vt.current||Ln?(typeof f=="function"&&(Dc(t,n,f,r),s=t.memoizedState),(l=Ln||vh(t,n,l,r,d,s,u))?(c||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),a.props=r,a.state=s,a.context=u,r=l):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Rm(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:jt(t.type,l),a.props=u,c=t.pendingProps,d=a.context,s=n.contextType,typeof s=="object"&&s!==null?s=Lt(s):(s=mt(n)?yr:ot.current,s=vo(t,s));var p=n.getDerivedStateFromProps;(f=typeof p=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(l!==c||d!==s)&&mh(t,a,r,s),Ln=!1,d=t.memoizedState,a.state=d,fl(t,r,a,o);var w=t.memoizedState;l!==c||d!==w||vt.current||Ln?(typeof p=="function"&&(Dc(t,n,p,r),w=t.memoizedState),(u=Ln||vh(t,n,u,r,d,w,s)||!1)?(f||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(r,w,s),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(r,w,s)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=w),a.props=r,a.state=w,a.context=s,r=u):(typeof a.componentDidUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return Bc(e,t,n,r,i,o)}function Bc(e,t,n,r,o,i){t0(e,t);var a=(t.flags&128)!==0;if(!r&&!a)return o&&lh(t,n,!1),gn(e,t,i);r=t.stateNode,Tw.current=t;var l=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&a?(t.child=go(t,e.child,null,i),t.child=go(t,null,l,i)):at(e,t,l,i),t.memoizedState=r.state,o&&lh(t,n,!0),t.child}function n0(e){var t=e.stateNode;t.pendingContext?ah(e,t.pendingContext,t.pendingContext!==t.context):t.context&&ah(e,t.context,!1),pf(e,t.containerInfo)}function _h(e,t,n,r,o){return mo(),sf(o),t.flags|=256,at(e,t,n,r),t.child}var Uc={dehydrated:null,treeContext:null,retryLane:0};function Hc(e){return{baseLanes:e,cachePool:null,transitions:null}}function r0(e,t,n){var r=t.pendingProps,o=$e.current,i=!1,a=(t.flags&128)!==0,l;if((l=a)||(l=e!==null&&e.memoizedState===null?!1:(o&2)!==0),l?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),pe($e,o&1),e===null)return Oc(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(a=r.children,e=r.fallback,i?(r=t.mode,i=t.child,a={mode:"hidden",children:a},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=a):i=Bl(a,r,0,null),e=mr(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Hc(n),t.memoizedState=Uc,e):Ef(t,a));if(o=e.memoizedState,o!==null&&(l=o.dehydrated,l!==null))return kw(e,t,a,r,l,o,n);if(i){i=r.fallback,a=t.mode,o=e.child,l=o.sibling;var s={mode:"hidden",children:r.children};return!(a&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=s,t.deletions=null):(r=Wn(o,s),r.subtreeFlags=o.subtreeFlags&14680064),l!==null?i=Wn(l,i):(i=mr(i,a,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,a=e.child.memoizedState,a=a===null?Hc(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},i.memoizedState=a,i.childLanes=e.childLanes&~n,t.memoizedState=Uc,r}return i=e.child,e=i.sibling,r=Wn(i,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Ef(e,t){return t=Bl({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function va(e,t,n,r){return r!==null&&sf(r),go(t,e.child,null,n),e=Ef(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function kw(e,t,n,r,o,i,a){if(n)return t.flags&256?(t.flags&=-257,r=ks(Error(D(422))),va(e,t,a,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=Bl({mode:"visible",children:r.children},o,0,null),i=mr(i,o,a,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&go(t,e.child,null,a),t.child.memoizedState=Hc(a),t.memoizedState=Uc,i);if(!(t.mode&1))return va(e,t,a,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var l=r.dgst;return r=l,i=Error(D(419)),r=ks(i,r,void 0),va(e,t,a,r)}if(l=(a&e.childLanes)!==0,pt||l){if(r=We,r!==null){switch(a&-a){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|a)?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,mn(e,o),Wt(r,e,o,-1))}return kf(),r=ks(Error(D(421))),va(e,t,a,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=Bw.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,xt=Bn(o.nextSibling),Ct=t,_e=!0,Bt=null,e!==null&&(kt[Rt++]=un,kt[Rt++]=fn,kt[Rt++]=wr,un=e.id,fn=e.overflow,wr=t),t=Ef(t,r.children),t.flags|=4096,t)}function Sh(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Mc(e.return,t,n)}function Rs(e,t,n,r,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function o0(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(at(e,t,r.children,n),r=$e.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Sh(e,n,t);else if(e.tag===19)Sh(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(pe($e,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&dl(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Rs(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&dl(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Rs(t,!0,n,null,i);break;case"together":Rs(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function za(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function gn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Cr|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(D(153));if(t.child!==null){for(e=t.child,n=Wn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Wn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Rw(e,t,n){switch(t.tag){case 3:n0(t),mo();break;case 5:Nm(t);break;case 1:mt(t.type)&&al(t);break;case 4:pf(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;pe(cl,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(pe($e,$e.current&1),t.flags|=128,null):n&t.child.childLanes?r0(e,t,n):(pe($e,$e.current&1),e=gn(e,t,n),e!==null?e.sibling:null);pe($e,$e.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return o0(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),pe($e,$e.current),r)break;return null;case 22:case 23:return t.lanes=0,e0(e,t,n)}return gn(e,t,n)}var i0,Vc,a0,l0;i0=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Vc=function(){};a0=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,fr(nn.current);var i=null;switch(n){case"input":o=dc(e,o),r=dc(e,r),i=[];break;case"select":o=ke({},o,{value:void 0}),r=ke({},r,{value:void 0}),i=[];break;case"textarea":o=vc(e,o),r=vc(e,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=ol)}gc(n,r);var a;n=null;for(u in o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&o[u]!=null)if(u==="style"){var l=o[u];for(a in l)l.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(yi.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in r){var s=r[u];if(l=o!=null?o[u]:void 0,r.hasOwnProperty(u)&&s!==l&&(s!=null||l!=null))if(u==="style")if(l){for(a in l)!l.hasOwnProperty(a)||s&&s.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in s)s.hasOwnProperty(a)&&l[a]!==s[a]&&(n||(n={}),n[a]=s[a])}else n||(i||(i=[]),i.push(u,n)),n=s;else u==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,l=l?l.__html:void 0,s!=null&&l!==s&&(i=i||[]).push(u,s)):u==="children"?typeof s!="string"&&typeof s!="number"||(i=i||[]).push(u,""+s):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(yi.hasOwnProperty(u)?(s!=null&&u==="onScroll"&&ve("scroll",e),i||l===s||(i=[])):(i=i||[]).push(u,s))}n&&(i=i||[]).push("style",n);var u=i;(t.updateQueue=u)&&(t.flags|=4)}};l0=function(e,t,n,r){n!==r&&(t.flags|=4)};function Go(e,t){if(!_e)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function nt(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Nw(e,t,n){var r=t.pendingProps;switch(lf(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return nt(t),null;case 1:return mt(t.type)&&il(),nt(t),null;case 3:return r=t.stateNode,yo(),me(vt),me(ot),mf(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(ha(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Bt!==null&&(Jc(Bt),Bt=null))),Vc(e,t),nt(t),null;case 5:vf(t);var o=fr(Ni.current);if(n=t.type,e!==null&&t.stateNode!=null)a0(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(D(166));return nt(t),null}if(e=fr(nn.current),ha(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[qt]=t,r[ki]=i,e=(t.mode&1)!==0,n){case"dialog":ve("cancel",r),ve("close",r);break;case"iframe":case"object":case"embed":ve("load",r);break;case"video":case"audio":for(o=0;o<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[qt]=t,e[ki]=r,i0(e,t,!1,!1),t.stateNode=e;e:{switch(a=yc(n,r),n){case"dialog":ve("cancel",e),ve("close",e),o=r;break;case"iframe":case"object":case"embed":ve("load",e),o=r;break;case"video":case"audio":for(o=0;oxo&&(t.flags|=128,r=!0,Go(i,!1),t.lanes=4194304)}else{if(!r)if(e=dl(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Go(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!_e)return nt(t),null}else 2*Ie()-i.renderingStartTime>xo&&n!==1073741824&&(t.flags|=128,r=!0,Go(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(n=i.last,n!==null?n.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Ie(),t.sibling=null,n=$e.current,pe($e,r?n&1|2:n&1),t):(nt(t),null);case 22:case 23:return Tf(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?yt&1073741824&&(nt(t),t.subtreeFlags&6&&(t.flags|=8192)):nt(t),null;case 24:return null;case 25:return null}throw Error(D(156,t.tag))}function Pw(e,t){switch(lf(t),t.tag){case 1:return mt(t.type)&&il(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return yo(),me(vt),me(ot),mf(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return vf(t),null;case 13:if(me($e),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(D(340));mo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return me($e),null;case 4:return yo(),null;case 10:return ff(t.type._context),null;case 22:case 23:return Tf(),null;case 24:return null;default:return null}}var ma=!1,rt=!1,Aw=typeof WeakSet=="function"?WeakSet:Set,U=null;function to(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Ae(e,t,r)}else n.current=null}function Wc(e,t,n){try{n()}catch(r){Ae(e,t,r)}}var bh=!1;function Lw(e,t){if(kc=tl,e=dm(),of(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var a=0,l=-1,s=-1,u=0,f=0,c=e,d=null;t:for(;;){for(var p;c!==n||o!==0&&c.nodeType!==3||(l=a+o),c!==i||r!==0&&c.nodeType!==3||(s=a+r),c.nodeType===3&&(a+=c.nodeValue.length),(p=c.firstChild)!==null;)d=c,c=p;for(;;){if(c===e)break t;if(d===n&&++u===o&&(l=a),d===i&&++f===r&&(s=a),(p=c.nextSibling)!==null)break;c=d,d=c.parentNode}c=p}n=l===-1||s===-1?null:{start:l,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(Rc={focusedElem:e,selectionRange:n},tl=!1,U=t;U!==null;)if(t=U,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,U=e;else for(;U!==null;){t=U;try{var w=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var m=w.memoizedProps,C=w.memoizedState,v=t.stateNode,g=v.getSnapshotBeforeUpdate(t.elementType===t.type?m:jt(t.type,m),C);v.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(D(163))}}catch(E){Ae(t,t.return,E)}if(e=t.sibling,e!==null){e.return=t.return,U=e;break}U=t.return}return w=bh,bh=!1,w}function pi(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&Wc(t,n,i)}o=o.next}while(o!==r)}}function Fl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Kc(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function s0(e){var t=e.alternate;t!==null&&(e.alternate=null,s0(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[qt],delete t[ki],delete t[Ac],delete t[vw],delete t[mw])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function c0(e){return e.tag===5||e.tag===3||e.tag===4}function $h(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||c0(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Yc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=ol));else if(r!==4&&(e=e.child,e!==null))for(Yc(e,t,n),e=e.sibling;e!==null;)Yc(e,t,n),e=e.sibling}function Gc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Gc(e,t,n),e=e.sibling;e!==null;)Gc(e,t,n),e=e.sibling}var Ze=null,Ft=!1;function Rn(e,t,n){for(n=n.child;n!==null;)u0(e,t,n),n=n.sibling}function u0(e,t,n){if(tn&&typeof tn.onCommitFiberUnmount=="function")try{tn.onCommitFiberUnmount(Pl,n)}catch{}switch(n.tag){case 5:rt||to(n,t);case 6:var r=Ze,o=Ft;Ze=null,Rn(e,t,n),Ze=r,Ft=o,Ze!==null&&(Ft?(e=Ze,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ze.removeChild(n.stateNode));break;case 18:Ze!==null&&(Ft?(e=Ze,n=n.stateNode,e.nodeType===8?Es(e.parentNode,n):e.nodeType===1&&Es(e,n),_i(e)):Es(Ze,n.stateNode));break;case 4:r=Ze,o=Ft,Ze=n.stateNode.containerInfo,Ft=!0,Rn(e,t,n),Ze=r,Ft=o;break;case 0:case 11:case 14:case 15:if(!rt&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,a!==void 0&&(i&2||i&4)&&Wc(n,t,a),o=o.next}while(o!==r)}Rn(e,t,n);break;case 1:if(!rt&&(to(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){Ae(n,t,l)}Rn(e,t,n);break;case 21:Rn(e,t,n);break;case 22:n.mode&1?(rt=(r=rt)||n.memoizedState!==null,Rn(e,t,n),rt=r):Rn(e,t,n);break;default:Rn(e,t,n)}}function Th(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Aw),t.forEach(function(r){var o=Uw.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Dt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=a),r&=~i}if(r=o,r=Ie()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Ow(r/1960))-r,10e?16:e,Dn===null)var r=!1;else{if(e=Dn,Dn=null,gl=0,ce&6)throw Error(D(331));var o=ce;for(ce|=4,U=e.current;U!==null;){var i=U,a=i.child;if(U.flags&16){var l=i.deletions;if(l!==null){for(var s=0;sIe()-bf?vr(e,0):Sf|=n),gt(e,t)}function y0(e,t){t===0&&(e.mode&1?(t=la,la<<=1,!(la&130023424)&&(la=4194304)):t=1);var n=st();e=mn(e,t),e!==null&&(Ui(e,t,n),gt(e,n))}function Bw(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),y0(e,n)}function Uw(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(D(314))}r!==null&&r.delete(t),y0(e,n)}var w0;w0=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||vt.current)pt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return pt=!1,Rw(e,t,n);pt=!!(e.flags&131072)}else pt=!1,_e&&t.flags&1048576&&_m(t,sl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;za(e,t),e=t.pendingProps;var o=vo(t,ot.current);so(t,n),o=yf(null,t,r,e,o,n);var i=wf();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,mt(r)?(i=!0,al(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,hf(t),o.updater=jl,t.stateNode=o,o._reactInternals=t,jc(t,r,e,n),t=Bc(null,t,r,!0,i,n)):(t.tag=0,_e&&i&&af(t),at(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(za(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=Vw(r),e=jt(r,e),o){case 0:t=zc(null,t,r,e,n);break e;case 1:t=Eh(null,t,r,e,n);break e;case 11:t=xh(null,t,r,e,n);break e;case 14:t=Ch(null,t,r,jt(r.type,e),n);break e}throw Error(D(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:jt(r,o),zc(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:jt(r,o),Eh(e,t,r,o,n);case 3:e:{if(n0(t),e===null)throw Error(D(387));r=t.pendingProps,i=t.memoizedState,o=i.element,Rm(e,t),fl(t,r,null,n);var a=t.memoizedState;if(r=a.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=wo(Error(D(423)),t),t=_h(e,t,r,n,o);break e}else if(r!==o){o=wo(Error(D(424)),t),t=_h(e,t,r,n,o);break e}else for(xt=Bn(t.stateNode.containerInfo.firstChild),Ct=t,_e=!0,Bt=null,n=Tm(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(mo(),r===o){t=gn(e,t,n);break e}at(e,t,r,n)}t=t.child}return t;case 5:return Nm(t),e===null&&Oc(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,Nc(r,o)?a=null:i!==null&&Nc(r,i)&&(t.flags|=32),t0(e,t),at(e,t,a,n),t.child;case 6:return e===null&&Oc(t),null;case 13:return r0(e,t,n);case 4:return pf(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=go(t,null,r,n):at(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:jt(r,o),xh(e,t,r,o,n);case 7:return at(e,t,t.pendingProps,n),t.child;case 8:return at(e,t,t.pendingProps.children,n),t.child;case 12:return at(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,pe(cl,r._currentValue),r._currentValue=a,i!==null)if(Kt(i.value,a)){if(i.children===o.children&&!vt.current){t=gn(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){a=i.child;for(var s=l.firstContext;s!==null;){if(s.context===r){if(i.tag===1){s=dn(-1,n&-n),s.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var f=u.pending;f===null?s.next=s:(s.next=f.next,f.next=s),u.pending=s}}i.lanes|=n,s=i.alternate,s!==null&&(s.lanes|=n),Mc(i.return,n,t),l.lanes|=n;break}s=s.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(D(341));a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),Mc(a,n,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}at(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,so(t,n),o=Lt(o),r=r(o),t.flags|=1,at(e,t,r,n),t.child;case 14:return r=t.type,o=jt(r,t.pendingProps),o=jt(r.type,o),Ch(e,t,r,o,n);case 15:return qm(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:jt(r,o),za(e,t),t.tag=1,mt(r)?(e=!0,al(t)):e=!1,so(t,n),Zm(t,r,o),jc(t,r,o,n),Bc(null,t,r,!0,e,n);case 19:return o0(e,t,n);case 22:return e0(e,t,n)}throw Error(D(156,t.tag))};function x0(e,t){return Yv(e,t)}function Hw(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Pt(e,t,n,r){return new Hw(e,t,n,r)}function Rf(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Vw(e){if(typeof e=="function")return Rf(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Yu)return 11;if(e===Gu)return 14}return 2}function Wn(e,t){var n=e.alternate;return n===null?(n=Pt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ha(e,t,n,r,o,i){var a=2;if(r=e,typeof e=="function")Rf(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Kr:return mr(n.children,o,i,t);case Ku:a=8,o|=8;break;case sc:return e=Pt(12,n,t,o|2),e.elementType=sc,e.lanes=i,e;case cc:return e=Pt(13,n,t,o),e.elementType=cc,e.lanes=i,e;case uc:return e=Pt(19,n,t,o),e.elementType=uc,e.lanes=i,e;case Nv:return Bl(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case kv:a=10;break e;case Rv:a=9;break e;case Yu:a=11;break e;case Gu:a=14;break e;case An:a=16,r=null;break e}throw Error(D(130,e==null?e:typeof e,""))}return t=Pt(a,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function mr(e,t,n,r){return e=Pt(7,e,r,t),e.lanes=n,e}function Bl(e,t,n,r){return e=Pt(22,e,r,t),e.elementType=Nv,e.lanes=n,e.stateNode={isHidden:!1},e}function Ns(e,t,n){return e=Pt(6,e,null,t),e.lanes=n,e}function Ps(e,t,n){return t=Pt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Ww(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=fs(0),this.expirationTimes=fs(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=fs(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Nf(e,t,n,r,o,i,a,l,s){return e=new Ww(e,t,n,l,s),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Pt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},hf(i),e}function Kw(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(S0)}catch(e){console.error(e)}}S0(),Sv.exports=St;var No=Sv.exports;const b0=Jn(No),Xw=Du({__proto__:null,default:b0},[No]);var $0,Oh=No;Oh.createRoot,$0=Oh.hydrateRoot;/** * @remix-run/router v1.16.0 * * Copyright (c) Remix Software Inc. @@ -46,8 +46,8 @@ Error generating stack: `+i.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function be(){return be=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Co(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function q3(){return Math.random().toString(36).substr(2,8)}function Dh(e,t){return{usr:e.state,key:e.key,idx:t}}function Oi(e,t,n,r){return n===void 0&&(n=null),be({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?nr(t):t,{state:n,key:t&&t.key||r||q3()})}function _r(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function nr(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function ew(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,a=o.history,l=Me.Pop,s=null,u=f();u==null&&(u=0,a.replaceState(be({},a.state,{idx:u}),""));function f(){return(a.state||{idx:null}).idx}function c(){l=Me.Pop;let C=f(),v=C==null?null:C-u;u=C,s&&s({action:l,location:m.location,delta:v})}function d(C,v){l=Me.Push;let g=Oi(m.location,C,v);u=f()+1;let x=Dh(g,u),E=m.createHref(g);try{a.pushState(x,"",E)}catch(S){if(S instanceof DOMException&&S.name==="DataCloneError")throw S;o.location.assign(E)}i&&s&&s({action:l,location:m.location,delta:1})}function p(C,v){l=Me.Replace;let g=Oi(m.location,C,v);u=f();let x=Dh(g,u),E=m.createHref(g);a.replaceState(x,"",E),i&&s&&s({action:l,location:m.location,delta:0})}function w(C){let v=o.location.origin!=="null"?o.location.origin:o.location.href,g=typeof C=="string"?C:_r(C);return g=g.replace(/ $/,"%20"),re(v,"No window.location.(origin|href) available to create URL for href: "+g),new URL(g,v)}let m={get action(){return l},get location(){return e(o,a)},listen(C){if(s)throw new Error("A history only accepts one active listener");return o.addEventListener(Mh,c),s=C,()=>{o.removeEventListener(Mh,c),s=null}},createHref(C){return t(o,C)},createURL:w,encodeLocation(C){let v=w(C);return{pathname:v.pathname,search:v.search,hash:v.hash}},push:d,replace:p,go(C){return a.go(C)}};return m}var Ee;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Ee||(Ee={}));const tw=new Set(["lazy","caseSensitive","path","id","index","children"]);function nw(e){return e.index===!0}function qc(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((o,i)=>{let a=[...n,i],l=typeof o.id=="string"?o.id:a.join("-");if(re(o.index!==!0||!o.children,"Cannot specify children on an index route"),re(!r[l],'Found a route id collision on id "'+l+`". Route id's must be globally unique within Data Router usages`),nw(o)){let s=be({},o,t(o),{id:l});return r[l]=s,s}else{let s=be({},o,t(o),{id:l,children:void 0});return r[l]=s,o.children&&(s.children=qc(o.children,t,a,r)),s}})}function dr(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?nr(t):t,o=Tr(r.pathname||"/",n);if(o==null)return null;let i=k0(e);rw(i);let a=null;for(let l=0;a==null&&l{let s={relativePath:l===void 0?i.path||"":l,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};s.relativePath.startsWith("/")&&(re(s.relativePath.startsWith(r),'Absolute route path "'+s.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),s.relativePath=s.relativePath.slice(r.length));let u=hn([r,s.relativePath]),f=n.concat(s);i.children&&i.children.length>0&&(re(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),k0(i.children,t,f,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:uw(u,i.index),routesMeta:f})};return e.forEach((i,a)=>{var l;if(i.path===""||!((l=i.path)!=null&&l.includes("?")))o(i,a);else for(let s of R0(i.path))o(i,a,s)}),t}function R0(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let a=R0(r.join("/")),l=[];return l.push(...a.map(s=>s===""?i:[i,s].join("/"))),o&&l.push(...a),l.map(s=>e.startsWith("/")&&s===""?"/":s)}function rw(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:fw(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const ow=/^:[\w-]+$/,iw=3,aw=2,lw=1,sw=10,cw=-2,jh=e=>e==="*";function uw(e,t){let n=e.split("/"),r=n.length;return n.some(jh)&&(r+=cw),t&&(r+=aw),n.filter(o=>!jh(o)).reduce((o,i)=>o+(ow.test(i)?iw:i===""?lw:sw),r)}function fw(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function dw(e,t){let{routesMeta:n}=e,r={},o="/",i=[];for(let a=0;a{let{paramName:d,isOptional:p}=f;if(d==="*"){let m=l[c]||"";a=i.slice(0,i.length-m.length).replace(/(.)\/+$/,"$1")}const w=l[c];return p&&!w?u[d]=void 0:u[d]=(w||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:a,pattern:e}}function hw(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Co(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,l,s)=>(r.push({paramName:l,isOptional:s!=null}),s?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function pw(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Co(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Tr(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function vw(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?nr(e):e;return{pathname:n?n.startsWith("/")?n:mw(n,t):t,search:yw(r),hash:ww(o)}}function mw(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function As(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function N0(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function If(e,t){let n=N0(e);return t?n.map((r,o)=>o===e.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Of(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=nr(e):(o=be({},e),re(!o.pathname||!o.pathname.includes("?"),As("?","pathname","search",o)),re(!o.pathname||!o.pathname.includes("#"),As("#","pathname","hash",o)),re(!o.search||!o.search.includes("#"),As("#","search","hash",o)));let i=e===""||o.pathname==="",a=i?"/":o.pathname,l;if(a==null)l=n;else{let c=t.length-1;if(!r&&a.startsWith("..")){let d=a.split("/");for(;d[0]==="..";)d.shift(),c-=1;o.pathname=d.join("/")}l=c>=0?t[c]:"/"}let s=vw(o,l),u=a&&a!=="/"&&a.endsWith("/"),f=(i||a===".")&&n.endsWith("/");return!s.pathname.endsWith("/")&&(u||f)&&(s.pathname+="/"),s}const hn=e=>e.join("/").replace(/\/\/+/g,"/"),gw=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),yw=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,ww=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class Mf{constructor(t,n,r,o){o===void 0&&(o=!1),this.status=t,this.statusText=n||"",this.internal=o,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function Df(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const P0=["post","put","patch","delete"],xw=new Set(P0),Cw=["get",...P0],Ew=new Set(Cw),_w=new Set([301,302,303,307,308]),Sw=new Set([307,308]),Ls={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},bw={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Zo={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},jf=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,$w=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),A0="remix-router-transitions";function Tw(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;re(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let o;if(e.mapRouteProperties)o=e.mapRouteProperties;else if(e.detectErrorBoundary){let k=e.detectErrorBoundary;o=N=>({hasErrorBoundary:k(N)})}else o=$w;let i={},a=qc(e.routes,o,void 0,i),l,s=e.basename||"/",u=e.unstable_dataStrategy||Pw,f=be({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,unstable_skipActionErrorRevalidation:!1},e.future),c=null,d=new Set,p=null,w=null,m=null,C=e.hydrationData!=null,v=dr(a,e.history.location,s),g=null;if(v==null){let k=Tt(404,{pathname:e.history.location.pathname}),{matches:N,route:L}=Gh(a);v=N,g={[L.id]:k}}let x,E=v.some(k=>k.route.lazy),S=v.some(k=>k.route.loader);if(E)x=!1;else if(!S)x=!0;else if(f.v7_partialHydration){let k=e.hydrationData?e.hydrationData.loaderData:null,N=e.hydrationData?e.hydrationData.errors:null,L=z=>z.route.loader?typeof z.route.loader=="function"&&z.route.loader.hydrate===!0?!1:k&&k[z.route.id]!==void 0||N&&N[z.route.id]!==void 0:!0;if(N){let z=v.findIndex(V=>N[V.route.id]!==void 0);x=v.slice(0,z+1).every(L)}else x=v.every(L)}else x=e.hydrationData!=null;let $,_={historyAction:e.history.action,location:e.history.location,matches:v,initialized:x,navigation:Ls,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||g,fetchers:new Map,blockers:new Map},b=Me.Pop,T=!1,P,M=!1,O=new Map,j=null,R=!1,F=!1,W=[],H=[],A=new Map,B=0,G=-1,te=new Map,ae=new Set,je=new Map,Oe=new Map,ge=new Set,ye=new Map,Ne=new Map,de=!1;function Se(){if(c=e.history.listen(k=>{let{action:N,location:L,delta:z}=k;if(de){de=!1;return}Co(Ne.size===0||z!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let V=_d({currentLocation:_.location,nextLocation:L,historyAction:N});if(V&&z!=null){de=!0,e.history.go(z*-1),Ji(V,{state:"blocked",location:L,proceed(){Ji(V,{state:"proceeding",proceed:void 0,reset:void 0,location:L}),e.history.go(z)},reset(){let ee=new Map(_.blockers);ee.set(V,Zo),Pe({blockers:ee})}});return}return Qt(N,L)}),n){Hw(t,O);let k=()=>Vw(t,O);t.addEventListener("pagehide",k),j=()=>t.removeEventListener("pagehide",k)}return _.initialized||Qt(Me.Pop,_.location,{initialHydration:!0}),$}function Ot(){c&&c(),j&&j(),d.clear(),P&&P.abort(),_.fetchers.forEach((k,N)=>Xi(N)),_.blockers.forEach((k,N)=>Ed(N))}function Mt(k){return d.add(k),()=>d.delete(k)}function Pe(k,N){N===void 0&&(N={}),_=be({},_,k);let L=[],z=[];f.v7_fetcherPersist&&_.fetchers.forEach((V,ee)=>{V.state==="idle"&&(ge.has(ee)?z.push(ee):L.push(ee))}),[...d].forEach(V=>V(_,{deletedFetchers:z,unstable_viewTransitionOpts:N.viewTransitionOpts,unstable_flushSync:N.flushSync===!0})),f.v7_fetcherPersist&&(L.forEach(V=>_.fetchers.delete(V)),z.forEach(V=>Xi(V)))}function ir(k,N,L){var z,V;let{flushSync:ee}=L===void 0?{}:L,Q=_.actionData!=null&&_.navigation.formMethod!=null&&zt(_.navigation.formMethod)&&_.navigation.state==="loading"&&((z=k.state)==null?void 0:z._isRedirect)!==!0,K;N.actionData?Object.keys(N.actionData).length>0?K=N.actionData:K=null:Q?K=_.actionData:K=null;let ne=N.loaderData?Kh(_.loaderData,N.loaderData,N.matches||[],N.errors):_.loaderData,J=_.blockers;J.size>0&&(J=new Map(J),J.forEach((X,we)=>J.set(we,Zo)));let Ke=T===!0||_.navigation.formMethod!=null&&zt(_.navigation.formMethod)&&((V=k.state)==null?void 0:V._isRedirect)!==!0;l&&(a=l,l=void 0),R||b===Me.Pop||(b===Me.Push?e.history.push(k,k.state):b===Me.Replace&&e.history.replace(k,k.state));let Ye;if(b===Me.Pop){let X=O.get(_.location.pathname);X&&X.has(k.pathname)?Ye={currentLocation:_.location,nextLocation:k}:O.has(k.pathname)&&(Ye={currentLocation:k,nextLocation:_.location})}else if(M){let X=O.get(_.location.pathname);X?X.add(k.pathname):(X=new Set([k.pathname]),O.set(_.location.pathname,X)),Ye={currentLocation:_.location,nextLocation:k}}Pe(be({},N,{actionData:K,loaderData:ne,historyAction:b,location:k,initialized:!0,navigation:Ls,revalidation:"idle",restoreScrollPosition:bd(k,N.matches||_.matches),preventScrollReset:Ke,blockers:J}),{viewTransitionOpts:Ye,flushSync:ee===!0}),b=Me.Pop,T=!1,M=!1,R=!1,F=!1,W=[],H=[]}async function Zi(k,N){if(typeof k=="number"){e.history.go(k);return}let L=eu(_.location,_.matches,s,f.v7_prependBasename,k,f.v7_relativeSplatPath,N==null?void 0:N.fromRouteId,N==null?void 0:N.relative),{path:z,submission:V,error:ee}=Fh(f.v7_normalizeFormMethod,!1,L,N),Q=_.location,K=Oi(_.location,z,N&&N.state);K=be({},K,e.history.encodeLocation(K));let ne=N&&N.replace!=null?N.replace:void 0,J=Me.Push;ne===!0?J=Me.Replace:ne===!1||V!=null&&zt(V.formMethod)&&V.formAction===_.location.pathname+_.location.search&&(J=Me.Replace);let Ke=N&&"preventScrollReset"in N?N.preventScrollReset===!0:void 0,Ye=(N&&N.unstable_flushSync)===!0,X=_d({currentLocation:Q,nextLocation:K,historyAction:J});if(X){Ji(X,{state:"blocked",location:K,proceed(){Ji(X,{state:"proceeding",proceed:void 0,reset:void 0,location:K}),Zi(k,N)},reset(){let we=new Map(_.blockers);we.set(X,Zo),Pe({blockers:we})}});return}return await Qt(J,K,{submission:V,pendingError:ee,preventScrollReset:Ke,replace:N&&N.replace,enableViewTransition:N&&N.unstable_viewTransition,flushSync:Ye})}function ar(){if(os(),Pe({revalidation:"loading"}),_.navigation.state!=="submitting"){if(_.navigation.state==="idle"){Qt(_.historyAction,_.location,{startUninterruptedRevalidation:!0});return}Qt(b||_.historyAction,_.navigation.location,{overrideNavigation:_.navigation})}}async function Qt(k,N,L){P&&P.abort(),P=null,b=k,R=(L&&L.startUninterruptedRevalidation)===!0,xy(_.location,_.matches),T=(L&&L.preventScrollReset)===!0,M=(L&&L.enableViewTransition)===!0;let z=l||a,V=L&&L.overrideNavigation,ee=dr(z,N,s),Q=(L&&L.flushSync)===!0;if(!ee){let X=Tt(404,{pathname:N.pathname}),{matches:we,route:Ue}=Gh(z);is(),ir(N,{matches:we,loaderData:{},errors:{[Ue.id]:X}},{flushSync:Q});return}if(_.initialized&&!F&&Dw(_.location,N)&&!(L&&L.submission&&zt(L.submission.formMethod))){ir(N,{matches:ee},{flushSync:Q});return}P=new AbortController;let K=Fr(e.history,N,P.signal,L&&L.submission),ne;if(L&&L.pendingError)ne=[gi(ee).route.id,{type:Ee.error,error:L.pendingError}];else if(L&&L.submission&&zt(L.submission.formMethod)){let X=await es(K,N,L.submission,ee,{replace:L.replace,flushSync:Q});if(X.shortCircuited)return;ne=X.pendingActionResult,V=Is(N,L.submission),Q=!1,K=Fr(e.history,K.url,K.signal)}let{shortCircuited:J,loaderData:Ke,errors:Ye}=await ts(K,N,ee,V,L&&L.submission,L&&L.fetcherSubmission,L&&L.replace,L&&L.initialHydration===!0,Q,ne);J||(P=null,ir(N,be({matches:ee},Yh(ne),{loaderData:Ke,errors:Ye})))}async function es(k,N,L,z,V){V===void 0&&(V={}),os();let ee=Bw(N,L);Pe({navigation:ee},{flushSync:V.flushSync===!0});let Q,K=nu(z,N);if(!K.route.action&&!K.route.lazy)Q={type:Ee.error,error:Tt(405,{method:k.method,pathname:N.pathname,routeId:K.route.id})};else if(Q=(await jo("action",k,[K],z))[0],k.signal.aborted)return{shortCircuited:!0};if(pr(Q)){let ne;return V&&V.replace!=null?ne=V.replace:ne=Hh(Q.response.headers.get("Location"),new URL(k.url),s)===_.location.pathname+_.location.search,await Do(k,Q,{submission:L,replace:ne}),{shortCircuited:!0}}if(hr(Q))throw Tt(400,{type:"defer-action"});if(Nt(Q)){let ne=gi(z,K.route.id);return(V&&V.replace)!==!0&&(b=Me.Push),{pendingActionResult:[ne.route.id,Q]}}return{pendingActionResult:[K.route.id,Q]}}async function ts(k,N,L,z,V,ee,Q,K,ne,J){let Ke=z||Is(N,V),Ye=V||ee||Xh(Ke),X=l||a,[we,Ue]=zh(e.history,_,L,Ye,N,f.v7_partialHydration&&K===!0,f.unstable_skipActionErrorRevalidation,F,W,H,ge,je,ae,X,s,J);if(is(se=>!(L&&L.some(ot=>ot.route.id===se))||we&&we.some(ot=>ot.route.id===se)),G=++B,we.length===0&&Ue.length===0){let se=xd();return ir(N,be({matches:L,loaderData:{},errors:J&&Nt(J[1])?{[J[0]]:J[1].error}:null},Yh(J),se?{fetchers:new Map(_.fetchers)}:{}),{flushSync:ne}),{shortCircuited:!0}}if(!R&&(!f.v7_partialHydration||!K)){Ue.forEach(ot=>{let $t=_.fetchers.get(ot.key),Ge=Xo(void 0,$t?$t.data:void 0);_.fetchers.set(ot.key,Ge)});let se;J&&!Nt(J[1])?se={[J[0]]:J[1].data}:_.actionData&&(Object.keys(_.actionData).length===0?se=null:se=_.actionData),Pe(be({navigation:Ke},se!==void 0?{actionData:se}:{},Ue.length>0?{fetchers:new Map(_.fetchers)}:{}),{flushSync:ne})}Ue.forEach(se=>{A.has(se.key)&&Tn(se.key),se.controller&&A.set(se.key,se.controller)});let zo=()=>Ue.forEach(se=>Tn(se.key));P&&P.signal.addEventListener("abort",zo);let{loaderResults:kn,fetcherResults:Or}=await gd(_.matches,L,we,Ue,k);if(k.signal.aborted)return{shortCircuited:!0};P&&P.signal.removeEventListener("abort",zo),Ue.forEach(se=>A.delete(se.key));let Mr=Qh([...kn,...Or]);if(Mr){if(Mr.idx>=we.length){let se=Ue[Mr.idx-we.length].key;ae.add(se)}return await Do(k,Mr.result,{replace:Q}),{shortCircuited:!0}}let{loaderData:Dr,errors:Zt}=Wh(_,L,we,kn,J,Ue,Or,ye);ye.forEach((se,ot)=>{se.subscribe($t=>{($t||se.done)&&ye.delete(ot)})}),f.v7_partialHydration&&K&&_.errors&&Object.entries(_.errors).filter(se=>{let[ot]=se;return!we.some($t=>$t.route.id===ot)}).forEach(se=>{let[ot,$t]=se;Zt=Object.assign(Zt||{},{[ot]:$t})});let qi=xd(),ea=Cd(G),ta=qi||ea||Ue.length>0;return be({loaderData:Dr,errors:Zt},ta?{fetchers:new Map(_.fetchers)}:{})}function ns(k,N,L,z){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");A.has(k)&&Tn(k);let V=(z&&z.unstable_flushSync)===!0,ee=l||a,Q=eu(_.location,_.matches,s,f.v7_prependBasename,L,f.v7_relativeSplatPath,N,z==null?void 0:z.relative),K=dr(ee,Q,s);if(!K){Fo(k,N,Tt(404,{pathname:Q}),{flushSync:V});return}let{path:ne,submission:J,error:Ke}=Fh(f.v7_normalizeFormMethod,!0,Q,z);if(Ke){Fo(k,N,Ke,{flushSync:V});return}let Ye=nu(K,ne);if(T=(z&&z.preventScrollReset)===!0,J&&zt(J.formMethod)){rs(k,N,ne,Ye,K,V,J);return}je.set(k,{routeId:N,path:ne}),Ir(k,N,ne,Ye,K,V,J)}async function rs(k,N,L,z,V,ee,Q){if(os(),je.delete(k),!z.route.action&&!z.route.lazy){let Ge=Tt(405,{method:Q.formMethod,pathname:L,routeId:N});Fo(k,N,Ge,{flushSync:ee});return}let K=_.fetchers.get(k);$n(k,Uw(Q,K),{flushSync:ee});let ne=new AbortController,J=Fr(e.history,L,ne.signal,Q);A.set(k,ne);let Ke=B,X=(await jo("action",J,[z],V))[0];if(J.signal.aborted){A.get(k)===ne&&A.delete(k);return}if(f.v7_fetcherPersist&&ge.has(k)){if(pr(X)||Nt(X)){$n(k,Nn(void 0));return}}else{if(pr(X))if(A.delete(k),G>Ke){$n(k,Nn(void 0));return}else return ae.add(k),$n(k,Xo(Q)),Do(J,X,{fetcherSubmission:Q});if(Nt(X)){Fo(k,N,X.error);return}}if(hr(X))throw Tt(400,{type:"defer-action"});let we=_.navigation.location||_.location,Ue=Fr(e.history,we,ne.signal),zo=l||a,kn=_.navigation.state!=="idle"?dr(zo,_.navigation.location,s):_.matches;re(kn,"Didn't find any matches after fetcher action");let Or=++B;te.set(k,Or);let Mr=Xo(Q,X.data);_.fetchers.set(k,Mr);let[Dr,Zt]=zh(e.history,_,kn,Q,we,!1,f.unstable_skipActionErrorRevalidation,F,W,H,ge,je,ae,zo,s,[z.route.id,X]);Zt.filter(Ge=>Ge.key!==k).forEach(Ge=>{let Bo=Ge.key,$d=_.fetchers.get(Bo),Ey=Xo(void 0,$d?$d.data:void 0);_.fetchers.set(Bo,Ey),A.has(Bo)&&Tn(Bo),Ge.controller&&A.set(Bo,Ge.controller)}),Pe({fetchers:new Map(_.fetchers)});let qi=()=>Zt.forEach(Ge=>Tn(Ge.key));ne.signal.addEventListener("abort",qi);let{loaderResults:ea,fetcherResults:ta}=await gd(_.matches,kn,Dr,Zt,Ue);if(ne.signal.aborted)return;ne.signal.removeEventListener("abort",qi),te.delete(k),A.delete(k),Zt.forEach(Ge=>A.delete(Ge.key));let se=Qh([...ea,...ta]);if(se){if(se.idx>=Dr.length){let Ge=Zt[se.idx-Dr.length].key;ae.add(Ge)}return Do(Ue,se.result)}let{loaderData:ot,errors:$t}=Wh(_,_.matches,Dr,ea,void 0,Zt,ta,ye);if(_.fetchers.has(k)){let Ge=Nn(X.data);_.fetchers.set(k,Ge)}Cd(Or),_.navigation.state==="loading"&&Or>G?(re(b,"Expected pending action"),P&&P.abort(),ir(_.navigation.location,{matches:kn,loaderData:ot,errors:$t,fetchers:new Map(_.fetchers)})):(Pe({errors:$t,loaderData:Kh(_.loaderData,ot,kn,$t),fetchers:new Map(_.fetchers)}),F=!1)}async function Ir(k,N,L,z,V,ee,Q){let K=_.fetchers.get(k);$n(k,Xo(Q,K?K.data:void 0),{flushSync:ee});let ne=new AbortController,J=Fr(e.history,L,ne.signal);A.set(k,ne);let Ke=B,X=(await jo("loader",J,[z],V))[0];if(hr(X)&&(X=await M0(X,J.signal,!0)||X),A.get(k)===ne&&A.delete(k),!J.signal.aborted){if(ge.has(k)){$n(k,Nn(void 0));return}if(pr(X))if(G>Ke){$n(k,Nn(void 0));return}else{ae.add(k),await Do(J,X);return}if(Nt(X)){Fo(k,N,X.error);return}re(!hr(X),"Unhandled fetcher deferred data"),$n(k,Nn(X.data))}}async function Do(k,N,L){let{submission:z,fetcherSubmission:V,replace:ee}=L===void 0?{}:L;N.response.headers.has("X-Remix-Revalidate")&&(F=!0);let Q=N.response.headers.get("Location");re(Q,"Expected a Location header on the redirect Response"),Q=Hh(Q,new URL(k.url),s);let K=Oi(_.location,Q,{_isRedirect:!0});if(n){let we=!1;if(N.response.headers.has("X-Remix-Reload-Document"))we=!0;else if(jf.test(Q)){const Ue=e.history.createURL(Q);we=Ue.origin!==t.location.origin||Tr(Ue.pathname,s)==null}if(we){ee?t.location.replace(Q):t.location.assign(Q);return}}P=null;let ne=ee===!0?Me.Replace:Me.Push,{formMethod:J,formAction:Ke,formEncType:Ye}=_.navigation;!z&&!V&&J&&Ke&&Ye&&(z=Xh(_.navigation));let X=z||V;if(Sw.has(N.response.status)&&X&&zt(X.formMethod))await Qt(ne,K,{submission:be({},X,{formAction:Q}),preventScrollReset:T});else{let we=Is(K,z);await Qt(ne,K,{overrideNavigation:we,fetcherSubmission:V,preventScrollReset:T})}}async function jo(k,N,L,z){try{let V=await Aw(u,k,N,L,z,i,o);return await Promise.all(V.map((ee,Q)=>{if(jw(ee)){let K=ee.result;return{type:Ee.redirect,response:Ow(K,N,L[Q].route.id,z,s,f.v7_relativeSplatPath)}}return Iw(ee)}))}catch(V){return L.map(()=>({type:Ee.error,error:V}))}}async function gd(k,N,L,z,V){let[ee,...Q]=await Promise.all([L.length?jo("loader",V,L,N):[],...z.map(K=>{if(K.matches&&K.match&&K.controller){let ne=Fr(e.history,K.path,K.controller.signal);return jo("loader",ne,[K.match],K.matches).then(J=>J[0])}else return Promise.resolve({type:Ee.error,error:Tt(404,{pathname:K.path})})})]);return await Promise.all([Zh(k,L,ee,ee.map(()=>V.signal),!1,_.loaderData),Zh(k,z.map(K=>K.match),Q,z.map(K=>K.controller?K.controller.signal:null),!0)]),{loaderResults:ee,fetcherResults:Q}}function os(){F=!0,W.push(...is()),je.forEach((k,N)=>{A.has(N)&&(H.push(N),Tn(N))})}function $n(k,N,L){L===void 0&&(L={}),_.fetchers.set(k,N),Pe({fetchers:new Map(_.fetchers)},{flushSync:(L&&L.flushSync)===!0})}function Fo(k,N,L,z){z===void 0&&(z={});let V=gi(_.matches,N);Xi(k),Pe({errors:{[V.route.id]:L},fetchers:new Map(_.fetchers)},{flushSync:(z&&z.flushSync)===!0})}function yd(k){return f.v7_fetcherPersist&&(Oe.set(k,(Oe.get(k)||0)+1),ge.has(k)&&ge.delete(k)),_.fetchers.get(k)||bw}function Xi(k){let N=_.fetchers.get(k);A.has(k)&&!(N&&N.state==="loading"&&te.has(k))&&Tn(k),je.delete(k),te.delete(k),ae.delete(k),ge.delete(k),_.fetchers.delete(k)}function gy(k){if(f.v7_fetcherPersist){let N=(Oe.get(k)||0)-1;N<=0?(Oe.delete(k),ge.add(k)):Oe.set(k,N)}else Xi(k);Pe({fetchers:new Map(_.fetchers)})}function Tn(k){let N=A.get(k);re(N,"Expected fetch controller: "+k),N.abort(),A.delete(k)}function wd(k){for(let N of k){let L=yd(N),z=Nn(L.data);_.fetchers.set(N,z)}}function xd(){let k=[],N=!1;for(let L of ae){let z=_.fetchers.get(L);re(z,"Expected fetcher: "+L),z.state==="loading"&&(ae.delete(L),k.push(L),N=!0)}return wd(k),N}function Cd(k){let N=[];for(let[L,z]of te)if(z0}function yy(k,N){let L=_.blockers.get(k)||Zo;return Ne.get(k)!==N&&Ne.set(k,N),L}function Ed(k){_.blockers.delete(k),Ne.delete(k)}function Ji(k,N){let L=_.blockers.get(k)||Zo;re(L.state==="unblocked"&&N.state==="blocked"||L.state==="blocked"&&N.state==="blocked"||L.state==="blocked"&&N.state==="proceeding"||L.state==="blocked"&&N.state==="unblocked"||L.state==="proceeding"&&N.state==="unblocked","Invalid blocker state transition: "+L.state+" -> "+N.state);let z=new Map(_.blockers);z.set(k,N),Pe({blockers:z})}function _d(k){let{currentLocation:N,nextLocation:L,historyAction:z}=k;if(Ne.size===0)return;Ne.size>1&&Co(!1,"A router only supports one blocker at a time");let V=Array.from(Ne.entries()),[ee,Q]=V[V.length-1],K=_.blockers.get(ee);if(!(K&&K.state==="proceeding")&&Q({currentLocation:N,nextLocation:L,historyAction:z}))return ee}function is(k){let N=[];return ye.forEach((L,z)=>{(!k||k(z))&&(L.cancel(),N.push(z),ye.delete(z))}),N}function wy(k,N,L){if(p=k,m=N,w=L||null,!C&&_.navigation===Ls){C=!0;let z=bd(_.location,_.matches);z!=null&&Pe({restoreScrollPosition:z})}return()=>{p=null,m=null,w=null}}function Sd(k,N){return w&&w(k,N.map(z=>T0(z,_.loaderData)))||k.key}function xy(k,N){if(p&&m){let L=Sd(k,N);p[L]=m()}}function bd(k,N){if(p){let L=Sd(k,N),z=p[L];if(typeof z=="number")return z}return null}function Cy(k){i={},l=qc(k,o,void 0,i)}return $={get basename(){return s},get future(){return f},get state(){return _},get routes(){return a},get window(){return t},initialize:Se,subscribe:Mt,enableScrollRestoration:wy,navigate:Zi,fetch:ns,revalidate:ar,createHref:k=>e.history.createHref(k),encodeLocation:k=>e.history.encodeLocation(k),getFetcher:yd,deleteFetcher:gy,dispose:Ot,getBlocker:yy,deleteBlocker:Ed,_internalFetchControllers:A,_internalActiveDeferreds:ye,_internalSetRoutes:Cy},$}function kw(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function eu(e,t,n,r,o,i,a,l){let s,u;if(a){s=[];for(let c of t)if(s.push(c),c.route.id===a){u=c;break}}else s=t,u=t[t.length-1];let f=Of(o||".",If(s,i),Tr(e.pathname,n)||e.pathname,l==="path");return o==null&&(f.search=e.search,f.hash=e.hash),(o==null||o===""||o===".")&&u&&u.route.index&&!Ff(f.search)&&(f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(f.pathname=f.pathname==="/"?n:hn([n,f.pathname])),_r(f)}function Fh(e,t,n,r){if(!r||!kw(r))return{path:n};if(r.formMethod&&!zw(r.formMethod))return{path:n,error:Tt(405,{method:r.formMethod})};let o=()=>({path:n,error:Tt(400,{type:"invalid-body"})}),i=r.formMethod||"get",a=e?i.toUpperCase():i.toLowerCase(),l=I0(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!zt(a))return o();let d=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((p,w)=>{let[m,C]=w;return""+p+m+"="+C+` -`},""):String(r.body);return{path:n,submission:{formMethod:a,formAction:l,formEncType:r.formEncType,formData:void 0,json:void 0,text:d}}}else if(r.formEncType==="application/json"){if(!zt(a))return o();try{let d=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:a,formAction:l,formEncType:r.formEncType,formData:void 0,json:d,text:void 0}}}catch{return o()}}}re(typeof FormData=="function","FormData is not available in this environment");let s,u;if(r.formData)s=tu(r.formData),u=r.formData;else if(r.body instanceof FormData)s=tu(r.body),u=r.body;else if(r.body instanceof URLSearchParams)s=r.body,u=Vh(s);else if(r.body==null)s=new URLSearchParams,u=new FormData;else try{s=new URLSearchParams(r.body),u=Vh(s)}catch{return o()}let f={formMethod:a,formAction:l,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:u,json:void 0,text:void 0};if(zt(f.formMethod))return{path:n,submission:f};let c=nr(n);return t&&c.search&&Ff(c.search)&&s.append("index",""),c.search="?"+s,{path:_r(c),submission:f}}function Rw(e,t){let n=e;if(t){let r=e.findIndex(o=>o.route.id===t);r>=0&&(n=e.slice(0,r))}return n}function zh(e,t,n,r,o,i,a,l,s,u,f,c,d,p,w,m){let C=m?Nt(m[1])?m[1].error:m[1].data:void 0,v=e.createURL(t.location),g=e.createURL(o),x=m&&Nt(m[1])?m[0]:void 0,E=x?Rw(n,x):n,S=m?m[1].statusCode:void 0,$=a&&S&&S>=400,_=E.filter((T,P)=>{let{route:M}=T;if(M.lazy)return!0;if(M.loader==null)return!1;if(i)return typeof M.loader!="function"||M.loader.hydrate?!0:t.loaderData[M.id]===void 0&&(!t.errors||t.errors[M.id]===void 0);if(Nw(t.loaderData,t.matches[P],T)||s.some(R=>R===T.route.id))return!0;let O=t.matches[P],j=T;return Bh(T,be({currentUrl:v,currentParams:O.params,nextUrl:g,nextParams:j.params},r,{actionResult:C,unstable_actionStatus:S,defaultShouldRevalidate:$?!1:l||v.pathname+v.search===g.pathname+g.search||v.search!==g.search||L0(O,j)}))}),b=[];return c.forEach((T,P)=>{if(i||!n.some(F=>F.route.id===T.routeId)||f.has(P))return;let M=dr(p,T.path,w);if(!M){b.push({key:P,routeId:T.routeId,path:T.path,matches:null,match:null,controller:null});return}let O=t.fetchers.get(P),j=nu(M,T.path),R=!1;d.has(P)?R=!1:u.includes(P)?R=!0:O&&O.state!=="idle"&&O.data===void 0?R=l:R=Bh(j,be({currentUrl:v,currentParams:t.matches[t.matches.length-1].params,nextUrl:g,nextParams:n[n.length-1].params},r,{actionResult:C,unstable_actionStatus:S,defaultShouldRevalidate:$?!1:l})),R&&b.push({key:P,routeId:T.routeId,path:T.path,matches:M,match:j,controller:new AbortController})}),[_,b]}function Nw(e,t,n){let r=!t||n.route.id!==t.route.id,o=e[n.route.id]===void 0;return r||o}function L0(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function Bh(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function Uh(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let o=n[e.id];re(o,"No route found in manifest");let i={};for(let a in r){let s=o[a]!==void 0&&a!=="hasErrorBoundary";Co(!s,'Route "'+o.id+'" has a static property "'+a+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+a+'" will be ignored.')),!s&&!tw.has(a)&&(i[a]=r[a])}Object.assign(o,i),Object.assign(o,be({},t(o),{lazy:void 0}))}function Pw(e){return Promise.all(e.matches.map(t=>t.resolve()))}async function Aw(e,t,n,r,o,i,a,l){let s=r.reduce((c,d)=>c.add(d.route.id),new Set),u=new Set,f=await e({matches:o.map(c=>{let d=s.has(c.route.id);return be({},c,{shouldLoad:d,resolve:w=>(u.add(c.route.id),d?Lw(t,n,c,i,a,w,l):Promise.resolve({type:Ee.data,result:void 0}))})}),request:n,params:o[0].params,context:l});return o.forEach(c=>re(u.has(c.route.id),'`match.resolve()` was not called for route id "'+c.route.id+'". You must call `match.resolve()` on every match passed to `dataStrategy` to ensure all routes are properly loaded.')),f.filter((c,d)=>s.has(o[d].route.id))}async function Lw(e,t,n,r,o,i,a){let l,s,u=f=>{let c,d=new Promise((m,C)=>c=C);s=()=>c(),t.signal.addEventListener("abort",s);let p=m=>typeof f!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+n.route.id+"]"))):f({request:t,params:n.params,context:a},...m!==void 0?[m]:[]),w;return i?w=i(m=>p(m)):w=(async()=>{try{return{type:"data",result:await p()}}catch(m){return{type:"error",result:m}}})(),Promise.race([w,d])};try{let f=n.route[e];if(n.route.lazy)if(f){let c,[d]=await Promise.all([u(f).catch(p=>{c=p}),Uh(n.route,o,r)]);if(c!==void 0)throw c;l=d}else if(await Uh(n.route,o,r),f=n.route[e],f)l=await u(f);else if(e==="action"){let c=new URL(t.url),d=c.pathname+c.search;throw Tt(405,{method:t.method,pathname:d,routeId:n.route.id})}else return{type:Ee.data,result:void 0};else if(f)l=await u(f);else{let c=new URL(t.url),d=c.pathname+c.search;throw Tt(404,{pathname:d})}re(l.result!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(f){return{type:Ee.error,result:f}}finally{s&&t.signal.removeEventListener("abort",s)}return l}async function Iw(e){let{result:t,type:n,status:r}=e;if(O0(t)){let a;try{let l=t.headers.get("Content-Type");l&&/\bapplication\/json\b/.test(l)?t.body==null?a=null:a=await t.json():a=await t.text()}catch(l){return{type:Ee.error,error:l}}return n===Ee.error?{type:Ee.error,error:new Mf(t.status,t.statusText,a),statusCode:t.status,headers:t.headers}:{type:Ee.data,data:a,statusCode:t.status,headers:t.headers}}if(n===Ee.error)return{type:Ee.error,error:t,statusCode:Df(t)?t.status:r};if(Fw(t)){var o,i;return{type:Ee.deferred,deferredData:t,statusCode:(o=t.init)==null?void 0:o.status,headers:((i=t.init)==null?void 0:i.headers)&&new Headers(t.init.headers)}}return{type:Ee.data,data:t,statusCode:r}}function Ow(e,t,n,r,o,i){let a=e.headers.get("Location");if(re(a,"Redirects returned/thrown from loaders/actions must have a Location header"),!jf.test(a)){let l=r.slice(0,r.findIndex(s=>s.route.id===n)+1);a=eu(new URL(t.url),l,o,!0,a,i),e.headers.set("Location",a)}return e}function Hh(e,t,n){if(jf.test(e)){let r=e,o=r.startsWith("//")?new URL(t.protocol+r):new URL(r),i=Tr(o.pathname,n)!=null;if(o.origin===t.origin&&i)return o.pathname+o.search+o.hash}return e}function Fr(e,t,n,r){let o=e.createURL(I0(t)).toString(),i={signal:n};if(r&&zt(r.formMethod)){let{formMethod:a,formEncType:l}=r;i.method=a.toUpperCase(),l==="application/json"?(i.headers=new Headers({"Content-Type":l}),i.body=JSON.stringify(r.json)):l==="text/plain"?i.body=r.text:l==="application/x-www-form-urlencoded"&&r.formData?i.body=tu(r.formData):i.body=r.formData}return new Request(o,i)}function tu(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function Vh(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function Mw(e,t,n,r,o,i){let a={},l=null,s,u=!1,f={},c=r&&Nt(r[1])?r[1].error:void 0;return n.forEach((d,p)=>{let w=t[p].route.id;if(re(!pr(d),"Cannot handle redirect results in processLoaderData"),Nt(d)){let m=d.error;c!==void 0&&(m=c,c=void 0),l=l||{};{let C=gi(e,w);l[C.route.id]==null&&(l[C.route.id]=m)}a[w]=void 0,u||(u=!0,s=Df(d.error)?d.error.status:500),d.headers&&(f[w]=d.headers)}else hr(d)?(o.set(w,d.deferredData),a[w]=d.deferredData.data,d.statusCode!=null&&d.statusCode!==200&&!u&&(s=d.statusCode),d.headers&&(f[w]=d.headers)):(a[w]=d.data,d.statusCode&&d.statusCode!==200&&!u&&(s=d.statusCode),d.headers&&(f[w]=d.headers))}),c!==void 0&&r&&(l={[r[0]]:c},a[r[0]]=void 0),{loaderData:a,errors:l,statusCode:s||200,loaderHeaders:f}}function Wh(e,t,n,r,o,i,a,l){let{loaderData:s,errors:u}=Mw(t,n,r,o,l);for(let f=0;fr.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function Gh(e){let t=e.length===1?e[0]:e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function Tt(e,t){let{pathname:n,routeId:r,method:o,type:i}=t===void 0?{}:t,a="Unknown Server Error",l="Unknown @remix-run/router error";return e===400?(a="Bad Request",o&&n&&r?l="You made a "+o+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":i==="defer-action"?l="defer() is not supported in actions":i==="invalid-body"&&(l="Unable to encode submission body")):e===403?(a="Forbidden",l='Route "'+r+'" does not match URL "'+n+'"'):e===404?(a="Not Found",l='No route matches URL "'+n+'"'):e===405&&(a="Method Not Allowed",o&&n&&r?l="You made a "+o.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":o&&(l='Invalid request method "'+o.toUpperCase()+'"')),new Mf(e||500,a,new Error(l),!0)}function Qh(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(pr(n))return{result:n,idx:t}}}function I0(e){let t=typeof e=="string"?nr(e):e;return _r(be({},t,{hash:""}))}function Dw(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function jw(e){return O0(e.result)&&_w.has(e.result.status)}function hr(e){return e.type===Ee.deferred}function Nt(e){return e.type===Ee.error}function pr(e){return(e&&e.type)===Ee.redirect}function Fw(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function O0(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function zw(e){return Ew.has(e.toLowerCase())}function zt(e){return xw.has(e.toLowerCase())}async function Zh(e,t,n,r,o,i){for(let a=0;ac.route.id===s.route.id),f=u!=null&&!L0(u,s)&&(i&&i[s.route.id])!==void 0;if(hr(l)&&(o||f)){let c=r[a];re(c,"Expected an AbortSignal for revalidating fetcher deferred result"),await M0(l,c,o).then(d=>{d&&(n[a]=d||n[a])})}}}async function M0(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:Ee.data,data:e.deferredData.unwrappedData}}catch(o){return{type:Ee.error,error:o}}return{type:Ee.data,data:e.deferredData.data}}}function Ff(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function nu(e,t){let n=typeof t=="string"?nr(t).search:t.search;if(e[e.length-1].route.index&&Ff(n||""))return e[e.length-1];let r=N0(e);return r[r.length-1]}function Xh(e){let{formMethod:t,formAction:n,formEncType:r,text:o,formData:i,json:a}=e;if(!(!t||!n||!r)){if(o!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:o};if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:i,json:void 0,text:void 0};if(a!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:a,text:void 0}}}function Is(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function Bw(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function Xo(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function Uw(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function Nn(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function Hw(e,t){try{let n=e.sessionStorage.getItem(A0);if(n){let r=JSON.parse(n);for(let[o,i]of Object.entries(r||{}))i&&Array.isArray(i)&&t.set(o,new Set(i||[]))}}catch{}}function Vw(e,t){if(t.size>0){let n={};for(let[r,o]of t)n[r]=[...o];try{e.sessionStorage.setItem(A0,JSON.stringify(n))}catch(r){Co(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/** + */function be(){return be=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Co(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function qw(){return Math.random().toString(36).substr(2,8)}function Dh(e,t){return{usr:e.state,key:e.key,idx:t}}function Oi(e,t,n,r){return n===void 0&&(n=null),be({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?nr(t):t,{state:n,key:t&&t.key||r||qw()})}function _r(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function nr(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function e3(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,a=o.history,l=Me.Pop,s=null,u=f();u==null&&(u=0,a.replaceState(be({},a.state,{idx:u}),""));function f(){return(a.state||{idx:null}).idx}function c(){l=Me.Pop;let C=f(),v=C==null?null:C-u;u=C,s&&s({action:l,location:m.location,delta:v})}function d(C,v){l=Me.Push;let g=Oi(m.location,C,v);u=f()+1;let x=Dh(g,u),E=m.createHref(g);try{a.pushState(x,"",E)}catch(S){if(S instanceof DOMException&&S.name==="DataCloneError")throw S;o.location.assign(E)}i&&s&&s({action:l,location:m.location,delta:1})}function p(C,v){l=Me.Replace;let g=Oi(m.location,C,v);u=f();let x=Dh(g,u),E=m.createHref(g);a.replaceState(x,"",E),i&&s&&s({action:l,location:m.location,delta:0})}function w(C){let v=o.location.origin!=="null"?o.location.origin:o.location.href,g=typeof C=="string"?C:_r(C);return g=g.replace(/ $/,"%20"),re(v,"No window.location.(origin|href) available to create URL for href: "+g),new URL(g,v)}let m={get action(){return l},get location(){return e(o,a)},listen(C){if(s)throw new Error("A history only accepts one active listener");return o.addEventListener(Mh,c),s=C,()=>{o.removeEventListener(Mh,c),s=null}},createHref(C){return t(o,C)},createURL:w,encodeLocation(C){let v=w(C);return{pathname:v.pathname,search:v.search,hash:v.hash}},push:d,replace:p,go(C){return a.go(C)}};return m}var Ee;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Ee||(Ee={}));const t3=new Set(["lazy","caseSensitive","path","id","index","children"]);function n3(e){return e.index===!0}function qc(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((o,i)=>{let a=[...n,i],l=typeof o.id=="string"?o.id:a.join("-");if(re(o.index!==!0||!o.children,"Cannot specify children on an index route"),re(!r[l],'Found a route id collision on id "'+l+`". Route id's must be globally unique within Data Router usages`),n3(o)){let s=be({},o,t(o),{id:l});return r[l]=s,s}else{let s=be({},o,t(o),{id:l,children:void 0});return r[l]=s,o.children&&(s.children=qc(o.children,t,a,r)),s}})}function dr(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?nr(t):t,o=Tr(r.pathname||"/",n);if(o==null)return null;let i=k0(e);r3(i);let a=null;for(let l=0;a==null&&l{let s={relativePath:l===void 0?i.path||"":l,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};s.relativePath.startsWith("/")&&(re(s.relativePath.startsWith(r),'Absolute route path "'+s.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),s.relativePath=s.relativePath.slice(r.length));let u=hn([r,s.relativePath]),f=n.concat(s);i.children&&i.children.length>0&&(re(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),k0(i.children,t,f,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:u3(u,i.index),routesMeta:f})};return e.forEach((i,a)=>{var l;if(i.path===""||!((l=i.path)!=null&&l.includes("?")))o(i,a);else for(let s of R0(i.path))o(i,a,s)}),t}function R0(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let a=R0(r.join("/")),l=[];return l.push(...a.map(s=>s===""?i:[i,s].join("/"))),o&&l.push(...a),l.map(s=>e.startsWith("/")&&s===""?"/":s)}function r3(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:f3(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const o3=/^:[\w-]+$/,i3=3,a3=2,l3=1,s3=10,c3=-2,jh=e=>e==="*";function u3(e,t){let n=e.split("/"),r=n.length;return n.some(jh)&&(r+=c3),t&&(r+=a3),n.filter(o=>!jh(o)).reduce((o,i)=>o+(o3.test(i)?i3:i===""?l3:s3),r)}function f3(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function d3(e,t){let{routesMeta:n}=e,r={},o="/",i=[];for(let a=0;a{let{paramName:d,isOptional:p}=f;if(d==="*"){let m=l[c]||"";a=i.slice(0,i.length-m.length).replace(/(.)\/+$/,"$1")}const w=l[c];return p&&!w?u[d]=void 0:u[d]=(w||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:a,pattern:e}}function h3(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Co(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,l,s)=>(r.push({paramName:l,isOptional:s!=null}),s?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function p3(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Co(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Tr(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function v3(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?nr(e):e;return{pathname:n?n.startsWith("/")?n:m3(n,t):t,search:y3(r),hash:w3(o)}}function m3(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function As(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function N0(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function If(e,t){let n=N0(e);return t?n.map((r,o)=>o===e.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Of(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=nr(e):(o=be({},e),re(!o.pathname||!o.pathname.includes("?"),As("?","pathname","search",o)),re(!o.pathname||!o.pathname.includes("#"),As("#","pathname","hash",o)),re(!o.search||!o.search.includes("#"),As("#","search","hash",o)));let i=e===""||o.pathname==="",a=i?"/":o.pathname,l;if(a==null)l=n;else{let c=t.length-1;if(!r&&a.startsWith("..")){let d=a.split("/");for(;d[0]==="..";)d.shift(),c-=1;o.pathname=d.join("/")}l=c>=0?t[c]:"/"}let s=v3(o,l),u=a&&a!=="/"&&a.endsWith("/"),f=(i||a===".")&&n.endsWith("/");return!s.pathname.endsWith("/")&&(u||f)&&(s.pathname+="/"),s}const hn=e=>e.join("/").replace(/\/\/+/g,"/"),g3=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),y3=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,w3=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class Mf{constructor(t,n,r,o){o===void 0&&(o=!1),this.status=t,this.statusText=n||"",this.internal=o,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function Df(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const P0=["post","put","patch","delete"],x3=new Set(P0),C3=["get",...P0],E3=new Set(C3),_3=new Set([301,302,303,307,308]),S3=new Set([307,308]),Ls={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},b3={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Zo={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},jf=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,$3=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),A0="remix-router-transitions";function T3(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;re(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let o;if(e.mapRouteProperties)o=e.mapRouteProperties;else if(e.detectErrorBoundary){let k=e.detectErrorBoundary;o=N=>({hasErrorBoundary:k(N)})}else o=$3;let i={},a=qc(e.routes,o,void 0,i),l,s=e.basename||"/",u=e.unstable_dataStrategy||P3,f=be({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,unstable_skipActionErrorRevalidation:!1},e.future),c=null,d=new Set,p=null,w=null,m=null,C=e.hydrationData!=null,v=dr(a,e.history.location,s),g=null;if(v==null){let k=Tt(404,{pathname:e.history.location.pathname}),{matches:N,route:L}=Gh(a);v=N,g={[L.id]:k}}let x,E=v.some(k=>k.route.lazy),S=v.some(k=>k.route.loader);if(E)x=!1;else if(!S)x=!0;else if(f.v7_partialHydration){let k=e.hydrationData?e.hydrationData.loaderData:null,N=e.hydrationData?e.hydrationData.errors:null,L=z=>z.route.loader?typeof z.route.loader=="function"&&z.route.loader.hydrate===!0?!1:k&&k[z.route.id]!==void 0||N&&N[z.route.id]!==void 0:!0;if(N){let z=v.findIndex(V=>N[V.route.id]!==void 0);x=v.slice(0,z+1).every(L)}else x=v.every(L)}else x=e.hydrationData!=null;let $,_={historyAction:e.history.action,location:e.history.location,matches:v,initialized:x,navigation:Ls,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||g,fetchers:new Map,blockers:new Map},b=Me.Pop,T=!1,P,M=!1,O=new Map,j=null,R=!1,F=!1,W=[],H=[],A=new Map,B=0,G=-1,te=new Map,ae=new Set,je=new Map,Oe=new Map,ge=new Set,ye=new Map,Ne=new Map,de=!1;function Se(){if(c=e.history.listen(k=>{let{action:N,location:L,delta:z}=k;if(de){de=!1;return}Co(Ne.size===0||z!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let V=_d({currentLocation:_.location,nextLocation:L,historyAction:N});if(V&&z!=null){de=!0,e.history.go(z*-1),Ji(V,{state:"blocked",location:L,proceed(){Ji(V,{state:"proceeding",proceed:void 0,reset:void 0,location:L}),e.history.go(z)},reset(){let ee=new Map(_.blockers);ee.set(V,Zo),Pe({blockers:ee})}});return}return Qt(N,L)}),n){H3(t,O);let k=()=>V3(t,O);t.addEventListener("pagehide",k),j=()=>t.removeEventListener("pagehide",k)}return _.initialized||Qt(Me.Pop,_.location,{initialHydration:!0}),$}function Ot(){c&&c(),j&&j(),d.clear(),P&&P.abort(),_.fetchers.forEach((k,N)=>Xi(N)),_.blockers.forEach((k,N)=>Ed(N))}function Mt(k){return d.add(k),()=>d.delete(k)}function Pe(k,N){N===void 0&&(N={}),_=be({},_,k);let L=[],z=[];f.v7_fetcherPersist&&_.fetchers.forEach((V,ee)=>{V.state==="idle"&&(ge.has(ee)?z.push(ee):L.push(ee))}),[...d].forEach(V=>V(_,{deletedFetchers:z,unstable_viewTransitionOpts:N.viewTransitionOpts,unstable_flushSync:N.flushSync===!0})),f.v7_fetcherPersist&&(L.forEach(V=>_.fetchers.delete(V)),z.forEach(V=>Xi(V)))}function ir(k,N,L){var z,V;let{flushSync:ee}=L===void 0?{}:L,Q=_.actionData!=null&&_.navigation.formMethod!=null&&zt(_.navigation.formMethod)&&_.navigation.state==="loading"&&((z=k.state)==null?void 0:z._isRedirect)!==!0,K;N.actionData?Object.keys(N.actionData).length>0?K=N.actionData:K=null:Q?K=_.actionData:K=null;let ne=N.loaderData?Kh(_.loaderData,N.loaderData,N.matches||[],N.errors):_.loaderData,J=_.blockers;J.size>0&&(J=new Map(J),J.forEach((X,we)=>J.set(we,Zo)));let Ye=T===!0||_.navigation.formMethod!=null&&zt(_.navigation.formMethod)&&((V=k.state)==null?void 0:V._isRedirect)!==!0;l&&(a=l,l=void 0),R||b===Me.Pop||(b===Me.Push?e.history.push(k,k.state):b===Me.Replace&&e.history.replace(k,k.state));let Ge;if(b===Me.Pop){let X=O.get(_.location.pathname);X&&X.has(k.pathname)?Ge={currentLocation:_.location,nextLocation:k}:O.has(k.pathname)&&(Ge={currentLocation:k,nextLocation:_.location})}else if(M){let X=O.get(_.location.pathname);X?X.add(k.pathname):(X=new Set([k.pathname]),O.set(_.location.pathname,X)),Ge={currentLocation:_.location,nextLocation:k}}Pe(be({},N,{actionData:K,loaderData:ne,historyAction:b,location:k,initialized:!0,navigation:Ls,revalidation:"idle",restoreScrollPosition:bd(k,N.matches||_.matches),preventScrollReset:Ye,blockers:J}),{viewTransitionOpts:Ge,flushSync:ee===!0}),b=Me.Pop,T=!1,M=!1,R=!1,F=!1,W=[],H=[]}async function Zi(k,N){if(typeof k=="number"){e.history.go(k);return}let L=eu(_.location,_.matches,s,f.v7_prependBasename,k,f.v7_relativeSplatPath,N==null?void 0:N.fromRouteId,N==null?void 0:N.relative),{path:z,submission:V,error:ee}=Fh(f.v7_normalizeFormMethod,!1,L,N),Q=_.location,K=Oi(_.location,z,N&&N.state);K=be({},K,e.history.encodeLocation(K));let ne=N&&N.replace!=null?N.replace:void 0,J=Me.Push;ne===!0?J=Me.Replace:ne===!1||V!=null&&zt(V.formMethod)&&V.formAction===_.location.pathname+_.location.search&&(J=Me.Replace);let Ye=N&&"preventScrollReset"in N?N.preventScrollReset===!0:void 0,Ge=(N&&N.unstable_flushSync)===!0,X=_d({currentLocation:Q,nextLocation:K,historyAction:J});if(X){Ji(X,{state:"blocked",location:K,proceed(){Ji(X,{state:"proceeding",proceed:void 0,reset:void 0,location:K}),Zi(k,N)},reset(){let we=new Map(_.blockers);we.set(X,Zo),Pe({blockers:we})}});return}return await Qt(J,K,{submission:V,pendingError:ee,preventScrollReset:Ye,replace:N&&N.replace,enableViewTransition:N&&N.unstable_viewTransition,flushSync:Ge})}function ar(){if(os(),Pe({revalidation:"loading"}),_.navigation.state!=="submitting"){if(_.navigation.state==="idle"){Qt(_.historyAction,_.location,{startUninterruptedRevalidation:!0});return}Qt(b||_.historyAction,_.navigation.location,{overrideNavigation:_.navigation})}}async function Qt(k,N,L){P&&P.abort(),P=null,b=k,R=(L&&L.startUninterruptedRevalidation)===!0,xy(_.location,_.matches),T=(L&&L.preventScrollReset)===!0,M=(L&&L.enableViewTransition)===!0;let z=l||a,V=L&&L.overrideNavigation,ee=dr(z,N,s),Q=(L&&L.flushSync)===!0;if(!ee){let X=Tt(404,{pathname:N.pathname}),{matches:we,route:He}=Gh(z);is(),ir(N,{matches:we,loaderData:{},errors:{[He.id]:X}},{flushSync:Q});return}if(_.initialized&&!F&&D3(_.location,N)&&!(L&&L.submission&&zt(L.submission.formMethod))){ir(N,{matches:ee},{flushSync:Q});return}P=new AbortController;let K=Fr(e.history,N,P.signal,L&&L.submission),ne;if(L&&L.pendingError)ne=[gi(ee).route.id,{type:Ee.error,error:L.pendingError}];else if(L&&L.submission&&zt(L.submission.formMethod)){let X=await es(K,N,L.submission,ee,{replace:L.replace,flushSync:Q});if(X.shortCircuited)return;ne=X.pendingActionResult,V=Is(N,L.submission),Q=!1,K=Fr(e.history,K.url,K.signal)}let{shortCircuited:J,loaderData:Ye,errors:Ge}=await ts(K,N,ee,V,L&&L.submission,L&&L.fetcherSubmission,L&&L.replace,L&&L.initialHydration===!0,Q,ne);J||(P=null,ir(N,be({matches:ee},Yh(ne),{loaderData:Ye,errors:Ge})))}async function es(k,N,L,z,V){V===void 0&&(V={}),os();let ee=B3(N,L);Pe({navigation:ee},{flushSync:V.flushSync===!0});let Q,K=nu(z,N);if(!K.route.action&&!K.route.lazy)Q={type:Ee.error,error:Tt(405,{method:k.method,pathname:N.pathname,routeId:K.route.id})};else if(Q=(await jo("action",k,[K],z))[0],k.signal.aborted)return{shortCircuited:!0};if(pr(Q)){let ne;return V&&V.replace!=null?ne=V.replace:ne=Hh(Q.response.headers.get("Location"),new URL(k.url),s)===_.location.pathname+_.location.search,await Do(k,Q,{submission:L,replace:ne}),{shortCircuited:!0}}if(hr(Q))throw Tt(400,{type:"defer-action"});if(Nt(Q)){let ne=gi(z,K.route.id);return(V&&V.replace)!==!0&&(b=Me.Push),{pendingActionResult:[ne.route.id,Q]}}return{pendingActionResult:[K.route.id,Q]}}async function ts(k,N,L,z,V,ee,Q,K,ne,J){let Ye=z||Is(N,V),Ge=V||ee||Xh(Ye),X=l||a,[we,He]=zh(e.history,_,L,Ge,N,f.v7_partialHydration&&K===!0,f.unstable_skipActionErrorRevalidation,F,W,H,ge,je,ae,X,s,J);if(is(se=>!(L&&L.some(it=>it.route.id===se))||we&&we.some(it=>it.route.id===se)),G=++B,we.length===0&&He.length===0){let se=xd();return ir(N,be({matches:L,loaderData:{},errors:J&&Nt(J[1])?{[J[0]]:J[1].error}:null},Yh(J),se?{fetchers:new Map(_.fetchers)}:{}),{flushSync:ne}),{shortCircuited:!0}}if(!R&&(!f.v7_partialHydration||!K)){He.forEach(it=>{let $t=_.fetchers.get(it.key),Qe=Xo(void 0,$t?$t.data:void 0);_.fetchers.set(it.key,Qe)});let se;J&&!Nt(J[1])?se={[J[0]]:J[1].data}:_.actionData&&(Object.keys(_.actionData).length===0?se=null:se=_.actionData),Pe(be({navigation:Ye},se!==void 0?{actionData:se}:{},He.length>0?{fetchers:new Map(_.fetchers)}:{}),{flushSync:ne})}He.forEach(se=>{A.has(se.key)&&Tn(se.key),se.controller&&A.set(se.key,se.controller)});let zo=()=>He.forEach(se=>Tn(se.key));P&&P.signal.addEventListener("abort",zo);let{loaderResults:kn,fetcherResults:Or}=await gd(_.matches,L,we,He,k);if(k.signal.aborted)return{shortCircuited:!0};P&&P.signal.removeEventListener("abort",zo),He.forEach(se=>A.delete(se.key));let Mr=Qh([...kn,...Or]);if(Mr){if(Mr.idx>=we.length){let se=He[Mr.idx-we.length].key;ae.add(se)}return await Do(k,Mr.result,{replace:Q}),{shortCircuited:!0}}let{loaderData:Dr,errors:Zt}=Wh(_,L,we,kn,J,He,Or,ye);ye.forEach((se,it)=>{se.subscribe($t=>{($t||se.done)&&ye.delete(it)})}),f.v7_partialHydration&&K&&_.errors&&Object.entries(_.errors).filter(se=>{let[it]=se;return!we.some($t=>$t.route.id===it)}).forEach(se=>{let[it,$t]=se;Zt=Object.assign(Zt||{},{[it]:$t})});let qi=xd(),ea=Cd(G),ta=qi||ea||He.length>0;return be({loaderData:Dr,errors:Zt},ta?{fetchers:new Map(_.fetchers)}:{})}function ns(k,N,L,z){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");A.has(k)&&Tn(k);let V=(z&&z.unstable_flushSync)===!0,ee=l||a,Q=eu(_.location,_.matches,s,f.v7_prependBasename,L,f.v7_relativeSplatPath,N,z==null?void 0:z.relative),K=dr(ee,Q,s);if(!K){Fo(k,N,Tt(404,{pathname:Q}),{flushSync:V});return}let{path:ne,submission:J,error:Ye}=Fh(f.v7_normalizeFormMethod,!0,Q,z);if(Ye){Fo(k,N,Ye,{flushSync:V});return}let Ge=nu(K,ne);if(T=(z&&z.preventScrollReset)===!0,J&&zt(J.formMethod)){rs(k,N,ne,Ge,K,V,J);return}je.set(k,{routeId:N,path:ne}),Ir(k,N,ne,Ge,K,V,J)}async function rs(k,N,L,z,V,ee,Q){if(os(),je.delete(k),!z.route.action&&!z.route.lazy){let Qe=Tt(405,{method:Q.formMethod,pathname:L,routeId:N});Fo(k,N,Qe,{flushSync:ee});return}let K=_.fetchers.get(k);$n(k,U3(Q,K),{flushSync:ee});let ne=new AbortController,J=Fr(e.history,L,ne.signal,Q);A.set(k,ne);let Ye=B,X=(await jo("action",J,[z],V))[0];if(J.signal.aborted){A.get(k)===ne&&A.delete(k);return}if(f.v7_fetcherPersist&&ge.has(k)){if(pr(X)||Nt(X)){$n(k,Nn(void 0));return}}else{if(pr(X))if(A.delete(k),G>Ye){$n(k,Nn(void 0));return}else return ae.add(k),$n(k,Xo(Q)),Do(J,X,{fetcherSubmission:Q});if(Nt(X)){Fo(k,N,X.error);return}}if(hr(X))throw Tt(400,{type:"defer-action"});let we=_.navigation.location||_.location,He=Fr(e.history,we,ne.signal),zo=l||a,kn=_.navigation.state!=="idle"?dr(zo,_.navigation.location,s):_.matches;re(kn,"Didn't find any matches after fetcher action");let Or=++B;te.set(k,Or);let Mr=Xo(Q,X.data);_.fetchers.set(k,Mr);let[Dr,Zt]=zh(e.history,_,kn,Q,we,!1,f.unstable_skipActionErrorRevalidation,F,W,H,ge,je,ae,zo,s,[z.route.id,X]);Zt.filter(Qe=>Qe.key!==k).forEach(Qe=>{let Bo=Qe.key,$d=_.fetchers.get(Bo),Ey=Xo(void 0,$d?$d.data:void 0);_.fetchers.set(Bo,Ey),A.has(Bo)&&Tn(Bo),Qe.controller&&A.set(Bo,Qe.controller)}),Pe({fetchers:new Map(_.fetchers)});let qi=()=>Zt.forEach(Qe=>Tn(Qe.key));ne.signal.addEventListener("abort",qi);let{loaderResults:ea,fetcherResults:ta}=await gd(_.matches,kn,Dr,Zt,He);if(ne.signal.aborted)return;ne.signal.removeEventListener("abort",qi),te.delete(k),A.delete(k),Zt.forEach(Qe=>A.delete(Qe.key));let se=Qh([...ea,...ta]);if(se){if(se.idx>=Dr.length){let Qe=Zt[se.idx-Dr.length].key;ae.add(Qe)}return Do(He,se.result)}let{loaderData:it,errors:$t}=Wh(_,_.matches,Dr,ea,void 0,Zt,ta,ye);if(_.fetchers.has(k)){let Qe=Nn(X.data);_.fetchers.set(k,Qe)}Cd(Or),_.navigation.state==="loading"&&Or>G?(re(b,"Expected pending action"),P&&P.abort(),ir(_.navigation.location,{matches:kn,loaderData:it,errors:$t,fetchers:new Map(_.fetchers)})):(Pe({errors:$t,loaderData:Kh(_.loaderData,it,kn,$t),fetchers:new Map(_.fetchers)}),F=!1)}async function Ir(k,N,L,z,V,ee,Q){let K=_.fetchers.get(k);$n(k,Xo(Q,K?K.data:void 0),{flushSync:ee});let ne=new AbortController,J=Fr(e.history,L,ne.signal);A.set(k,ne);let Ye=B,X=(await jo("loader",J,[z],V))[0];if(hr(X)&&(X=await M0(X,J.signal,!0)||X),A.get(k)===ne&&A.delete(k),!J.signal.aborted){if(ge.has(k)){$n(k,Nn(void 0));return}if(pr(X))if(G>Ye){$n(k,Nn(void 0));return}else{ae.add(k),await Do(J,X);return}if(Nt(X)){Fo(k,N,X.error);return}re(!hr(X),"Unhandled fetcher deferred data"),$n(k,Nn(X.data))}}async function Do(k,N,L){let{submission:z,fetcherSubmission:V,replace:ee}=L===void 0?{}:L;N.response.headers.has("X-Remix-Revalidate")&&(F=!0);let Q=N.response.headers.get("Location");re(Q,"Expected a Location header on the redirect Response"),Q=Hh(Q,new URL(k.url),s);let K=Oi(_.location,Q,{_isRedirect:!0});if(n){let we=!1;if(N.response.headers.has("X-Remix-Reload-Document"))we=!0;else if(jf.test(Q)){const He=e.history.createURL(Q);we=He.origin!==t.location.origin||Tr(He.pathname,s)==null}if(we){ee?t.location.replace(Q):t.location.assign(Q);return}}P=null;let ne=ee===!0?Me.Replace:Me.Push,{formMethod:J,formAction:Ye,formEncType:Ge}=_.navigation;!z&&!V&&J&&Ye&&Ge&&(z=Xh(_.navigation));let X=z||V;if(S3.has(N.response.status)&&X&&zt(X.formMethod))await Qt(ne,K,{submission:be({},X,{formAction:Q}),preventScrollReset:T});else{let we=Is(K,z);await Qt(ne,K,{overrideNavigation:we,fetcherSubmission:V,preventScrollReset:T})}}async function jo(k,N,L,z){try{let V=await A3(u,k,N,L,z,i,o);return await Promise.all(V.map((ee,Q)=>{if(j3(ee)){let K=ee.result;return{type:Ee.redirect,response:O3(K,N,L[Q].route.id,z,s,f.v7_relativeSplatPath)}}return I3(ee)}))}catch(V){return L.map(()=>({type:Ee.error,error:V}))}}async function gd(k,N,L,z,V){let[ee,...Q]=await Promise.all([L.length?jo("loader",V,L,N):[],...z.map(K=>{if(K.matches&&K.match&&K.controller){let ne=Fr(e.history,K.path,K.controller.signal);return jo("loader",ne,[K.match],K.matches).then(J=>J[0])}else return Promise.resolve({type:Ee.error,error:Tt(404,{pathname:K.path})})})]);return await Promise.all([Zh(k,L,ee,ee.map(()=>V.signal),!1,_.loaderData),Zh(k,z.map(K=>K.match),Q,z.map(K=>K.controller?K.controller.signal:null),!0)]),{loaderResults:ee,fetcherResults:Q}}function os(){F=!0,W.push(...is()),je.forEach((k,N)=>{A.has(N)&&(H.push(N),Tn(N))})}function $n(k,N,L){L===void 0&&(L={}),_.fetchers.set(k,N),Pe({fetchers:new Map(_.fetchers)},{flushSync:(L&&L.flushSync)===!0})}function Fo(k,N,L,z){z===void 0&&(z={});let V=gi(_.matches,N);Xi(k),Pe({errors:{[V.route.id]:L},fetchers:new Map(_.fetchers)},{flushSync:(z&&z.flushSync)===!0})}function yd(k){return f.v7_fetcherPersist&&(Oe.set(k,(Oe.get(k)||0)+1),ge.has(k)&&ge.delete(k)),_.fetchers.get(k)||b3}function Xi(k){let N=_.fetchers.get(k);A.has(k)&&!(N&&N.state==="loading"&&te.has(k))&&Tn(k),je.delete(k),te.delete(k),ae.delete(k),ge.delete(k),_.fetchers.delete(k)}function gy(k){if(f.v7_fetcherPersist){let N=(Oe.get(k)||0)-1;N<=0?(Oe.delete(k),ge.add(k)):Oe.set(k,N)}else Xi(k);Pe({fetchers:new Map(_.fetchers)})}function Tn(k){let N=A.get(k);re(N,"Expected fetch controller: "+k),N.abort(),A.delete(k)}function wd(k){for(let N of k){let L=yd(N),z=Nn(L.data);_.fetchers.set(N,z)}}function xd(){let k=[],N=!1;for(let L of ae){let z=_.fetchers.get(L);re(z,"Expected fetcher: "+L),z.state==="loading"&&(ae.delete(L),k.push(L),N=!0)}return wd(k),N}function Cd(k){let N=[];for(let[L,z]of te)if(z0}function yy(k,N){let L=_.blockers.get(k)||Zo;return Ne.get(k)!==N&&Ne.set(k,N),L}function Ed(k){_.blockers.delete(k),Ne.delete(k)}function Ji(k,N){let L=_.blockers.get(k)||Zo;re(L.state==="unblocked"&&N.state==="blocked"||L.state==="blocked"&&N.state==="blocked"||L.state==="blocked"&&N.state==="proceeding"||L.state==="blocked"&&N.state==="unblocked"||L.state==="proceeding"&&N.state==="unblocked","Invalid blocker state transition: "+L.state+" -> "+N.state);let z=new Map(_.blockers);z.set(k,N),Pe({blockers:z})}function _d(k){let{currentLocation:N,nextLocation:L,historyAction:z}=k;if(Ne.size===0)return;Ne.size>1&&Co(!1,"A router only supports one blocker at a time");let V=Array.from(Ne.entries()),[ee,Q]=V[V.length-1],K=_.blockers.get(ee);if(!(K&&K.state==="proceeding")&&Q({currentLocation:N,nextLocation:L,historyAction:z}))return ee}function is(k){let N=[];return ye.forEach((L,z)=>{(!k||k(z))&&(L.cancel(),N.push(z),ye.delete(z))}),N}function wy(k,N,L){if(p=k,m=N,w=L||null,!C&&_.navigation===Ls){C=!0;let z=bd(_.location,_.matches);z!=null&&Pe({restoreScrollPosition:z})}return()=>{p=null,m=null,w=null}}function Sd(k,N){return w&&w(k,N.map(z=>T0(z,_.loaderData)))||k.key}function xy(k,N){if(p&&m){let L=Sd(k,N);p[L]=m()}}function bd(k,N){if(p){let L=Sd(k,N),z=p[L];if(typeof z=="number")return z}return null}function Cy(k){i={},l=qc(k,o,void 0,i)}return $={get basename(){return s},get future(){return f},get state(){return _},get routes(){return a},get window(){return t},initialize:Se,subscribe:Mt,enableScrollRestoration:wy,navigate:Zi,fetch:ns,revalidate:ar,createHref:k=>e.history.createHref(k),encodeLocation:k=>e.history.encodeLocation(k),getFetcher:yd,deleteFetcher:gy,dispose:Ot,getBlocker:yy,deleteBlocker:Ed,_internalFetchControllers:A,_internalActiveDeferreds:ye,_internalSetRoutes:Cy},$}function k3(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function eu(e,t,n,r,o,i,a,l){let s,u;if(a){s=[];for(let c of t)if(s.push(c),c.route.id===a){u=c;break}}else s=t,u=t[t.length-1];let f=Of(o||".",If(s,i),Tr(e.pathname,n)||e.pathname,l==="path");return o==null&&(f.search=e.search,f.hash=e.hash),(o==null||o===""||o===".")&&u&&u.route.index&&!Ff(f.search)&&(f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(f.pathname=f.pathname==="/"?n:hn([n,f.pathname])),_r(f)}function Fh(e,t,n,r){if(!r||!k3(r))return{path:n};if(r.formMethod&&!z3(r.formMethod))return{path:n,error:Tt(405,{method:r.formMethod})};let o=()=>({path:n,error:Tt(400,{type:"invalid-body"})}),i=r.formMethod||"get",a=e?i.toUpperCase():i.toLowerCase(),l=I0(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!zt(a))return o();let d=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((p,w)=>{let[m,C]=w;return""+p+m+"="+C+` +`},""):String(r.body);return{path:n,submission:{formMethod:a,formAction:l,formEncType:r.formEncType,formData:void 0,json:void 0,text:d}}}else if(r.formEncType==="application/json"){if(!zt(a))return o();try{let d=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:a,formAction:l,formEncType:r.formEncType,formData:void 0,json:d,text:void 0}}}catch{return o()}}}re(typeof FormData=="function","FormData is not available in this environment");let s,u;if(r.formData)s=tu(r.formData),u=r.formData;else if(r.body instanceof FormData)s=tu(r.body),u=r.body;else if(r.body instanceof URLSearchParams)s=r.body,u=Vh(s);else if(r.body==null)s=new URLSearchParams,u=new FormData;else try{s=new URLSearchParams(r.body),u=Vh(s)}catch{return o()}let f={formMethod:a,formAction:l,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:u,json:void 0,text:void 0};if(zt(f.formMethod))return{path:n,submission:f};let c=nr(n);return t&&c.search&&Ff(c.search)&&s.append("index",""),c.search="?"+s,{path:_r(c),submission:f}}function R3(e,t){let n=e;if(t){let r=e.findIndex(o=>o.route.id===t);r>=0&&(n=e.slice(0,r))}return n}function zh(e,t,n,r,o,i,a,l,s,u,f,c,d,p,w,m){let C=m?Nt(m[1])?m[1].error:m[1].data:void 0,v=e.createURL(t.location),g=e.createURL(o),x=m&&Nt(m[1])?m[0]:void 0,E=x?R3(n,x):n,S=m?m[1].statusCode:void 0,$=a&&S&&S>=400,_=E.filter((T,P)=>{let{route:M}=T;if(M.lazy)return!0;if(M.loader==null)return!1;if(i)return typeof M.loader!="function"||M.loader.hydrate?!0:t.loaderData[M.id]===void 0&&(!t.errors||t.errors[M.id]===void 0);if(N3(t.loaderData,t.matches[P],T)||s.some(R=>R===T.route.id))return!0;let O=t.matches[P],j=T;return Bh(T,be({currentUrl:v,currentParams:O.params,nextUrl:g,nextParams:j.params},r,{actionResult:C,unstable_actionStatus:S,defaultShouldRevalidate:$?!1:l||v.pathname+v.search===g.pathname+g.search||v.search!==g.search||L0(O,j)}))}),b=[];return c.forEach((T,P)=>{if(i||!n.some(F=>F.route.id===T.routeId)||f.has(P))return;let M=dr(p,T.path,w);if(!M){b.push({key:P,routeId:T.routeId,path:T.path,matches:null,match:null,controller:null});return}let O=t.fetchers.get(P),j=nu(M,T.path),R=!1;d.has(P)?R=!1:u.includes(P)?R=!0:O&&O.state!=="idle"&&O.data===void 0?R=l:R=Bh(j,be({currentUrl:v,currentParams:t.matches[t.matches.length-1].params,nextUrl:g,nextParams:n[n.length-1].params},r,{actionResult:C,unstable_actionStatus:S,defaultShouldRevalidate:$?!1:l})),R&&b.push({key:P,routeId:T.routeId,path:T.path,matches:M,match:j,controller:new AbortController})}),[_,b]}function N3(e,t,n){let r=!t||n.route.id!==t.route.id,o=e[n.route.id]===void 0;return r||o}function L0(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function Bh(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function Uh(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let o=n[e.id];re(o,"No route found in manifest");let i={};for(let a in r){let s=o[a]!==void 0&&a!=="hasErrorBoundary";Co(!s,'Route "'+o.id+'" has a static property "'+a+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+a+'" will be ignored.')),!s&&!t3.has(a)&&(i[a]=r[a])}Object.assign(o,i),Object.assign(o,be({},t(o),{lazy:void 0}))}function P3(e){return Promise.all(e.matches.map(t=>t.resolve()))}async function A3(e,t,n,r,o,i,a,l){let s=r.reduce((c,d)=>c.add(d.route.id),new Set),u=new Set,f=await e({matches:o.map(c=>{let d=s.has(c.route.id);return be({},c,{shouldLoad:d,resolve:w=>(u.add(c.route.id),d?L3(t,n,c,i,a,w,l):Promise.resolve({type:Ee.data,result:void 0}))})}),request:n,params:o[0].params,context:l});return o.forEach(c=>re(u.has(c.route.id),'`match.resolve()` was not called for route id "'+c.route.id+'". You must call `match.resolve()` on every match passed to `dataStrategy` to ensure all routes are properly loaded.')),f.filter((c,d)=>s.has(o[d].route.id))}async function L3(e,t,n,r,o,i,a){let l,s,u=f=>{let c,d=new Promise((m,C)=>c=C);s=()=>c(),t.signal.addEventListener("abort",s);let p=m=>typeof f!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+n.route.id+"]"))):f({request:t,params:n.params,context:a},...m!==void 0?[m]:[]),w;return i?w=i(m=>p(m)):w=(async()=>{try{return{type:"data",result:await p()}}catch(m){return{type:"error",result:m}}})(),Promise.race([w,d])};try{let f=n.route[e];if(n.route.lazy)if(f){let c,[d]=await Promise.all([u(f).catch(p=>{c=p}),Uh(n.route,o,r)]);if(c!==void 0)throw c;l=d}else if(await Uh(n.route,o,r),f=n.route[e],f)l=await u(f);else if(e==="action"){let c=new URL(t.url),d=c.pathname+c.search;throw Tt(405,{method:t.method,pathname:d,routeId:n.route.id})}else return{type:Ee.data,result:void 0};else if(f)l=await u(f);else{let c=new URL(t.url),d=c.pathname+c.search;throw Tt(404,{pathname:d})}re(l.result!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(f){return{type:Ee.error,result:f}}finally{s&&t.signal.removeEventListener("abort",s)}return l}async function I3(e){let{result:t,type:n,status:r}=e;if(O0(t)){let a;try{let l=t.headers.get("Content-Type");l&&/\bapplication\/json\b/.test(l)?t.body==null?a=null:a=await t.json():a=await t.text()}catch(l){return{type:Ee.error,error:l}}return n===Ee.error?{type:Ee.error,error:new Mf(t.status,t.statusText,a),statusCode:t.status,headers:t.headers}:{type:Ee.data,data:a,statusCode:t.status,headers:t.headers}}if(n===Ee.error)return{type:Ee.error,error:t,statusCode:Df(t)?t.status:r};if(F3(t)){var o,i;return{type:Ee.deferred,deferredData:t,statusCode:(o=t.init)==null?void 0:o.status,headers:((i=t.init)==null?void 0:i.headers)&&new Headers(t.init.headers)}}return{type:Ee.data,data:t,statusCode:r}}function O3(e,t,n,r,o,i){let a=e.headers.get("Location");if(re(a,"Redirects returned/thrown from loaders/actions must have a Location header"),!jf.test(a)){let l=r.slice(0,r.findIndex(s=>s.route.id===n)+1);a=eu(new URL(t.url),l,o,!0,a,i),e.headers.set("Location",a)}return e}function Hh(e,t,n){if(jf.test(e)){let r=e,o=r.startsWith("//")?new URL(t.protocol+r):new URL(r),i=Tr(o.pathname,n)!=null;if(o.origin===t.origin&&i)return o.pathname+o.search+o.hash}return e}function Fr(e,t,n,r){let o=e.createURL(I0(t)).toString(),i={signal:n};if(r&&zt(r.formMethod)){let{formMethod:a,formEncType:l}=r;i.method=a.toUpperCase(),l==="application/json"?(i.headers=new Headers({"Content-Type":l}),i.body=JSON.stringify(r.json)):l==="text/plain"?i.body=r.text:l==="application/x-www-form-urlencoded"&&r.formData?i.body=tu(r.formData):i.body=r.formData}return new Request(o,i)}function tu(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function Vh(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function M3(e,t,n,r,o,i){let a={},l=null,s,u=!1,f={},c=r&&Nt(r[1])?r[1].error:void 0;return n.forEach((d,p)=>{let w=t[p].route.id;if(re(!pr(d),"Cannot handle redirect results in processLoaderData"),Nt(d)){let m=d.error;c!==void 0&&(m=c,c=void 0),l=l||{};{let C=gi(e,w);l[C.route.id]==null&&(l[C.route.id]=m)}a[w]=void 0,u||(u=!0,s=Df(d.error)?d.error.status:500),d.headers&&(f[w]=d.headers)}else hr(d)?(o.set(w,d.deferredData),a[w]=d.deferredData.data,d.statusCode!=null&&d.statusCode!==200&&!u&&(s=d.statusCode),d.headers&&(f[w]=d.headers)):(a[w]=d.data,d.statusCode&&d.statusCode!==200&&!u&&(s=d.statusCode),d.headers&&(f[w]=d.headers))}),c!==void 0&&r&&(l={[r[0]]:c},a[r[0]]=void 0),{loaderData:a,errors:l,statusCode:s||200,loaderHeaders:f}}function Wh(e,t,n,r,o,i,a,l){let{loaderData:s,errors:u}=M3(t,n,r,o,l);for(let f=0;fr.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function Gh(e){let t=e.length===1?e[0]:e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function Tt(e,t){let{pathname:n,routeId:r,method:o,type:i}=t===void 0?{}:t,a="Unknown Server Error",l="Unknown @remix-run/router error";return e===400?(a="Bad Request",o&&n&&r?l="You made a "+o+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":i==="defer-action"?l="defer() is not supported in actions":i==="invalid-body"&&(l="Unable to encode submission body")):e===403?(a="Forbidden",l='Route "'+r+'" does not match URL "'+n+'"'):e===404?(a="Not Found",l='No route matches URL "'+n+'"'):e===405&&(a="Method Not Allowed",o&&n&&r?l="You made a "+o.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":o&&(l='Invalid request method "'+o.toUpperCase()+'"')),new Mf(e||500,a,new Error(l),!0)}function Qh(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(pr(n))return{result:n,idx:t}}}function I0(e){let t=typeof e=="string"?nr(e):e;return _r(be({},t,{hash:""}))}function D3(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function j3(e){return O0(e.result)&&_3.has(e.result.status)}function hr(e){return e.type===Ee.deferred}function Nt(e){return e.type===Ee.error}function pr(e){return(e&&e.type)===Ee.redirect}function F3(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function O0(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function z3(e){return E3.has(e.toLowerCase())}function zt(e){return x3.has(e.toLowerCase())}async function Zh(e,t,n,r,o,i){for(let a=0;ac.route.id===s.route.id),f=u!=null&&!L0(u,s)&&(i&&i[s.route.id])!==void 0;if(hr(l)&&(o||f)){let c=r[a];re(c,"Expected an AbortSignal for revalidating fetcher deferred result"),await M0(l,c,o).then(d=>{d&&(n[a]=d||n[a])})}}}async function M0(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:Ee.data,data:e.deferredData.unwrappedData}}catch(o){return{type:Ee.error,error:o}}return{type:Ee.data,data:e.deferredData.data}}}function Ff(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function nu(e,t){let n=typeof t=="string"?nr(t).search:t.search;if(e[e.length-1].route.index&&Ff(n||""))return e[e.length-1];let r=N0(e);return r[r.length-1]}function Xh(e){let{formMethod:t,formAction:n,formEncType:r,text:o,formData:i,json:a}=e;if(!(!t||!n||!r)){if(o!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:o};if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:i,json:void 0,text:void 0};if(a!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:a,text:void 0}}}function Is(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function B3(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function Xo(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function U3(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function Nn(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function H3(e,t){try{let n=e.sessionStorage.getItem(A0);if(n){let r=JSON.parse(n);for(let[o,i]of Object.entries(r||{}))i&&Array.isArray(i)&&t.set(o,new Set(i||[]))}}catch{}}function V3(e,t){if(t.size>0){let n={};for(let[r,o]of t)n[r]=[...o];try{e.sessionStorage.setItem(A0,JSON.stringify(n))}catch(r){Co(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/** * React Router v6.23.0 * * Copyright (c) Remix Software Inc. @@ -56,7 +56,7 @@ Error generating stack: `+i.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function xl(){return xl=Object.assign?Object.assign.bind():function(e){for(var t=1;tKl(e,t),[t,e])}function j0(e){h.useContext(rr).static||h.useLayoutEffect(e)}function Uf(){let{isDataRoute:e}=h.useContext(kr);return e?ix():Yw()}function Yw(){Po()||re(!1);let e=h.useContext(Ki),{basename:t,future:n,navigator:r}=h.useContext(rr),{matches:o}=h.useContext(kr),{pathname:i}=Re(),a=JSON.stringify(If(o,n.v7_relativeSplatPath)),l=h.useRef(!1);return j0(()=>{l.current=!0}),h.useCallback(function(u,f){if(f===void 0&&(f={}),!l.current)return;if(typeof u=="number"){r.go(u);return}let c=Of(u,JSON.parse(a),i,f.relative==="path");e==null&&t!=="/"&&(c.pathname=c.pathname==="/"?t:hn([t,c.pathname])),(f.replace?r.replace:r.push)(c,f.state,f)},[t,r,a,i,e])}function F0(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=h.useContext(rr),{matches:o}=h.useContext(kr),{pathname:i}=Re(),a=JSON.stringify(If(o,r.v7_relativeSplatPath));return h.useMemo(()=>Of(e,JSON.parse(a),i,n==="path"),[e,a,i,n])}function Gw(e,t,n,r){Po()||re(!1);let{navigator:o}=h.useContext(rr),{matches:i}=h.useContext(kr),a=i[i.length-1],l=a?a.params:{};a&&a.pathname;let s=a?a.pathnameBase:"/";a&&a.route;let u=Re(),f;f=u;let c=f.pathname||"/",d=c;if(s!=="/"){let m=s.replace(/^\//,"").split("/");d="/"+c.replace(/^\//,"").split("/").slice(m.length).join("/")}let p=dr(e,{pathname:d});return qw(p&&p.map(m=>Object.assign({},m,{params:Object.assign({},l,m.params),pathname:hn([s,o.encodeLocation?o.encodeLocation(m.pathname).pathname:m.pathname]),pathnameBase:m.pathnameBase==="/"?s:hn([s,o.encodeLocation?o.encodeLocation(m.pathnameBase).pathname:m.pathnameBase])})),i,n,r)}function Qw(){let e=ox(),t=Df(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return h.createElement(h.Fragment,null,h.createElement("h2",null,"Unexpected Application Error!"),h.createElement("h3",{style:{fontStyle:"italic"}},t),n?h.createElement("pre",{style:o},n):null,null)}const Zw=h.createElement(Qw,null);class Xw extends h.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?h.createElement(kr.Provider,{value:this.props.routeContext},h.createElement(D0.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Jw(e){let{routeContext:t,match:n,children:r}=e,o=h.useContext(Ki);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),h.createElement(kr.Provider,{value:t},r)}function qw(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if((i=n)!=null&&i.errors)e=n.matches;else return null}let a=e,l=(o=n)==null?void 0:o.errors;if(l!=null){let f=a.findIndex(c=>c.route.id&&(l==null?void 0:l[c.route.id])!==void 0);f>=0||re(!1),a=a.slice(0,Math.min(a.length,f+1))}let s=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let f=0;f=0?a=a.slice(0,u+1):a=[a[0]];break}}}return a.reduceRight((f,c,d)=>{let p,w=!1,m=null,C=null;n&&(p=l&&c.route.id?l[c.route.id]:void 0,m=c.route.errorElement||Zw,s&&(u<0&&d===0?(w=!0,C=null):u===d&&(w=!0,C=c.route.hydrateFallbackElement||null)));let v=t.concat(a.slice(0,d+1)),g=()=>{let x;return p?x=m:w?x=C:c.route.Component?x=h.createElement(c.route.Component,null):c.route.element?x=c.route.element:x=f,h.createElement(Jw,{match:c,routeContext:{outlet:f,matches:v,isDataRoute:n!=null},children:x})};return n&&(c.route.ErrorBoundary||c.route.errorElement||d===0)?h.createElement(Xw,{location:n.location,revalidation:n.revalidation,component:m,error:p,children:g(),routeContext:{outlet:null,matches:v,isDataRoute:!0}}):g()},null)}var z0=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(z0||{}),Eo=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Eo||{});function ex(e){let t=h.useContext(Ki);return t||re(!1),t}function Hf(e){let t=h.useContext(zf);return t||re(!1),t}function tx(e){let t=h.useContext(kr);return t||re(!1),t}function B0(e){let t=tx(),n=t.matches[t.matches.length-1];return n.route.id||re(!1),n.route.id}function nx(){return Hf(Eo.UseNavigation).navigation}function rx(){let{matches:e,loaderData:t}=Hf(Eo.UseMatches);return h.useMemo(()=>e.map(n=>T0(n,t)),[e,t])}function ox(){var e;let t=h.useContext(D0),n=Hf(Eo.UseRouteError),r=B0(Eo.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function ix(){let{router:e}=ex(z0.UseNavigateStable),t=B0(Eo.UseNavigateStable),n=h.useRef(!1);return j0(()=>{n.current=!0}),h.useCallback(function(o,i){i===void 0&&(i={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,xl({fromRouteId:t},i)))},[e,t])}function ax(e){let{basename:t="/",children:n=null,location:r,navigationType:o=Me.Pop,navigator:i,static:a=!1,future:l}=e;Po()&&re(!1);let s=t.replace(/^\/*/,"/"),u=h.useMemo(()=>({basename:s,navigator:i,static:a,future:xl({v7_relativeSplatPath:!1},l)}),[s,l,i,a]);typeof r=="string"&&(r=nr(r));let{pathname:f="/",search:c="",hash:d="",state:p=null,key:w="default"}=r,m=h.useMemo(()=>{let C=Tr(f,s);return C==null?null:{location:{pathname:C,search:c,hash:d,state:p,key:w},navigationType:o}},[s,f,c,d,p,w,o]);return m==null?null:h.createElement(rr.Provider,{value:u},h.createElement(Bf.Provider,{children:n,value:m}))}new Promise(()=>{});function lx(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:h.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:h.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:h.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** + */function xl(){return xl=Object.assign?Object.assign.bind():function(e){for(var t=1;tKl(e,t),[t,e])}function j0(e){h.useContext(rr).static||h.useLayoutEffect(e)}function Uf(){let{isDataRoute:e}=h.useContext(kr);return e?ix():Y3()}function Y3(){Po()||re(!1);let e=h.useContext(Ki),{basename:t,future:n,navigator:r}=h.useContext(rr),{matches:o}=h.useContext(kr),{pathname:i}=Re(),a=JSON.stringify(If(o,n.v7_relativeSplatPath)),l=h.useRef(!1);return j0(()=>{l.current=!0}),h.useCallback(function(u,f){if(f===void 0&&(f={}),!l.current)return;if(typeof u=="number"){r.go(u);return}let c=Of(u,JSON.parse(a),i,f.relative==="path");e==null&&t!=="/"&&(c.pathname=c.pathname==="/"?t:hn([t,c.pathname])),(f.replace?r.replace:r.push)(c,f.state,f)},[t,r,a,i,e])}function F0(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=h.useContext(rr),{matches:o}=h.useContext(kr),{pathname:i}=Re(),a=JSON.stringify(If(o,r.v7_relativeSplatPath));return h.useMemo(()=>Of(e,JSON.parse(a),i,n==="path"),[e,a,i,n])}function G3(e,t,n,r){Po()||re(!1);let{navigator:o}=h.useContext(rr),{matches:i}=h.useContext(kr),a=i[i.length-1],l=a?a.params:{};a&&a.pathname;let s=a?a.pathnameBase:"/";a&&a.route;let u=Re(),f;f=u;let c=f.pathname||"/",d=c;if(s!=="/"){let m=s.replace(/^\//,"").split("/");d="/"+c.replace(/^\//,"").split("/").slice(m.length).join("/")}let p=dr(e,{pathname:d});return q3(p&&p.map(m=>Object.assign({},m,{params:Object.assign({},l,m.params),pathname:hn([s,o.encodeLocation?o.encodeLocation(m.pathname).pathname:m.pathname]),pathnameBase:m.pathnameBase==="/"?s:hn([s,o.encodeLocation?o.encodeLocation(m.pathnameBase).pathname:m.pathnameBase])})),i,n,r)}function Q3(){let e=ox(),t=Df(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return h.createElement(h.Fragment,null,h.createElement("h2",null,"Unexpected Application Error!"),h.createElement("h3",{style:{fontStyle:"italic"}},t),n?h.createElement("pre",{style:o},n):null,null)}const Z3=h.createElement(Q3,null);class X3 extends h.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?h.createElement(kr.Provider,{value:this.props.routeContext},h.createElement(D0.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function J3(e){let{routeContext:t,match:n,children:r}=e,o=h.useContext(Ki);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),h.createElement(kr.Provider,{value:t},r)}function q3(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if((i=n)!=null&&i.errors)e=n.matches;else return null}let a=e,l=(o=n)==null?void 0:o.errors;if(l!=null){let f=a.findIndex(c=>c.route.id&&(l==null?void 0:l[c.route.id])!==void 0);f>=0||re(!1),a=a.slice(0,Math.min(a.length,f+1))}let s=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let f=0;f=0?a=a.slice(0,u+1):a=[a[0]];break}}}return a.reduceRight((f,c,d)=>{let p,w=!1,m=null,C=null;n&&(p=l&&c.route.id?l[c.route.id]:void 0,m=c.route.errorElement||Z3,s&&(u<0&&d===0?(w=!0,C=null):u===d&&(w=!0,C=c.route.hydrateFallbackElement||null)));let v=t.concat(a.slice(0,d+1)),g=()=>{let x;return p?x=m:w?x=C:c.route.Component?x=h.createElement(c.route.Component,null):c.route.element?x=c.route.element:x=f,h.createElement(J3,{match:c,routeContext:{outlet:f,matches:v,isDataRoute:n!=null},children:x})};return n&&(c.route.ErrorBoundary||c.route.errorElement||d===0)?h.createElement(X3,{location:n.location,revalidation:n.revalidation,component:m,error:p,children:g(),routeContext:{outlet:null,matches:v,isDataRoute:!0}}):g()},null)}var z0=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(z0||{}),Eo=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Eo||{});function ex(e){let t=h.useContext(Ki);return t||re(!1),t}function Hf(e){let t=h.useContext(zf);return t||re(!1),t}function tx(e){let t=h.useContext(kr);return t||re(!1),t}function B0(e){let t=tx(),n=t.matches[t.matches.length-1];return n.route.id||re(!1),n.route.id}function nx(){return Hf(Eo.UseNavigation).navigation}function rx(){let{matches:e,loaderData:t}=Hf(Eo.UseMatches);return h.useMemo(()=>e.map(n=>T0(n,t)),[e,t])}function ox(){var e;let t=h.useContext(D0),n=Hf(Eo.UseRouteError),r=B0(Eo.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function ix(){let{router:e}=ex(z0.UseNavigateStable),t=B0(Eo.UseNavigateStable),n=h.useRef(!1);return j0(()=>{n.current=!0}),h.useCallback(function(o,i){i===void 0&&(i={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,xl({fromRouteId:t},i)))},[e,t])}function ax(e){let{basename:t="/",children:n=null,location:r,navigationType:o=Me.Pop,navigator:i,static:a=!1,future:l}=e;Po()&&re(!1);let s=t.replace(/^\/*/,"/"),u=h.useMemo(()=>({basename:s,navigator:i,static:a,future:xl({v7_relativeSplatPath:!1},l)}),[s,l,i,a]);typeof r=="string"&&(r=nr(r));let{pathname:f="/",search:c="",hash:d="",state:p=null,key:w="default"}=r,m=h.useMemo(()=>{let C=Tr(f,s);return C==null?null:{location:{pathname:C,search:c,hash:d,state:p,key:w},navigationType:o}},[s,f,c,d,p,w,o]);return m==null?null:h.createElement(rr.Provider,{value:u},h.createElement(Bf.Provider,{children:n,value:m}))}new Promise(()=>{});function lx(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:h.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:h.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:h.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** * React Router DOM v6.23.0 * * Copyright (c) Remix Software Inc. @@ -65,7 +65,7 @@ Error generating stack: `+i.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function _o(){return _o=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[o]=e[o]);return n}function cx(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function ux(e,t){return e.button===0&&(!t||t==="_self")&&!cx(e)}const fx=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],dx="6";try{window.__reactRouterVersion=dx}catch{}function hx(e,t){return Tw({basename:t==null?void 0:t.basename,future:_o({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:J3({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||px(),routes:e,mapRouteProperties:lx,unstable_dataStrategy:t==null?void 0:t.unstable_dataStrategy,window:t==null?void 0:t.window}).initialize()}function px(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=_o({},t,{errors:vx(t.errors)})),t}function vx(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,o]of t)if(o&&o.__type==="RouteErrorResponse")n[r]=new Mf(o.status,o.statusText,o.data,o.internal===!0);else if(o&&o.__type==="Error"){if(o.__subType){let i=window[o.__subType];if(typeof i=="function")try{let a=new i(o.message);a.stack="",n[r]=a}catch{}}if(n[r]==null){let i=new Error(o.message);i.stack="",n[r]=i}}else n[r]=o;return n}const mx=h.createContext({isTransitioning:!1}),gx=h.createContext(new Map),yx="startTransition",Jh=Uu[yx],wx="flushSync",qh=X3[wx];function xx(e){Jh?Jh(e):e()}function Jo(e){qh?qh(e):e()}class Cx{constructor(){this.status="pending",this.promise=new Promise((t,n)=>{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",t(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",n(r))}})}}function Ex(e){let{fallbackElement:t,router:n,future:r}=e,[o,i]=h.useState(n.state),[a,l]=h.useState(),[s,u]=h.useState({isTransitioning:!1}),[f,c]=h.useState(),[d,p]=h.useState(),[w,m]=h.useState(),C=h.useRef(new Map),{v7_startTransition:v}=r||{},g=h.useCallback(_=>{v?xx(_):_()},[v]),x=h.useCallback((_,b)=>{let{deletedFetchers:T,unstable_flushSync:P,unstable_viewTransitionOpts:M}=b;T.forEach(j=>C.current.delete(j)),_.fetchers.forEach((j,R)=>{j.data!==void 0&&C.current.set(R,j.data)});let O=n.window==null||typeof n.window.document.startViewTransition!="function";if(!M||O){P?Jo(()=>i(_)):g(()=>i(_));return}if(P){Jo(()=>{d&&(f&&f.resolve(),d.skipTransition()),u({isTransitioning:!0,flushSync:!0,currentLocation:M.currentLocation,nextLocation:M.nextLocation})});let j=n.window.document.startViewTransition(()=>{Jo(()=>i(_))});j.finished.finally(()=>{Jo(()=>{c(void 0),p(void 0),l(void 0),u({isTransitioning:!1})})}),Jo(()=>p(j));return}d?(f&&f.resolve(),d.skipTransition(),m({state:_,currentLocation:M.currentLocation,nextLocation:M.nextLocation})):(l(_),u({isTransitioning:!0,flushSync:!1,currentLocation:M.currentLocation,nextLocation:M.nextLocation}))},[n.window,d,f,C,g]);h.useLayoutEffect(()=>n.subscribe(x),[n,x]),h.useEffect(()=>{s.isTransitioning&&!s.flushSync&&c(new Cx)},[s]),h.useEffect(()=>{if(f&&a&&n.window){let _=a,b=f.promise,T=n.window.document.startViewTransition(async()=>{g(()=>i(_)),await b});T.finished.finally(()=>{c(void 0),p(void 0),l(void 0),u({isTransitioning:!1})}),p(T)}},[g,a,f,n.window]),h.useEffect(()=>{f&&a&&o.location.key===a.location.key&&f.resolve()},[f,d,o.location,a]),h.useEffect(()=>{!s.isTransitioning&&w&&(l(w.state),u({isTransitioning:!0,flushSync:!1,currentLocation:w.currentLocation,nextLocation:w.nextLocation}),m(void 0))},[s.isTransitioning,w]),h.useEffect(()=>{},[]);let E=h.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:_=>n.navigate(_),push:(_,b,T)=>n.navigate(_,{state:b,preventScrollReset:T==null?void 0:T.preventScrollReset}),replace:(_,b,T)=>n.navigate(_,{replace:!0,state:b,preventScrollReset:T==null?void 0:T.preventScrollReset})}),[n]),S=n.basename||"/",$=h.useMemo(()=>({router:n,navigator:E,static:!1,basename:S}),[n,E,S]);return h.createElement(h.Fragment,null,h.createElement(Ki.Provider,{value:$},h.createElement(zf.Provider,{value:o},h.createElement(gx.Provider,{value:C.current},h.createElement(mx.Provider,{value:s},h.createElement(ax,{basename:S,location:o.location,navigationType:o.historyAction,navigator:E,future:{v7_relativeSplatPath:n.future.v7_relativeSplatPath}},o.initialized||n.future.v7_partialHydration?h.createElement(_x,{routes:n.routes,future:n.future,state:o}):t))))),null)}function _x(e){let{routes:t,future:n,state:r}=e;return Gw(t,void 0,r,n)}const Sx=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",bx=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Vf=h.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:i,replace:a,state:l,target:s,to:u,preventScrollReset:f,unstable_viewTransition:c}=t,d=sx(t,fx),{basename:p}=h.useContext(rr),w,m=!1;if(typeof u=="string"&&bx.test(u)&&(w=u,Sx))try{let x=new URL(window.location.href),E=u.startsWith("//")?new URL(x.protocol+u):new URL(u),S=Tr(E.pathname,p);E.origin===x.origin&&S!=null?u=S+E.search+E.hash:m=!0}catch{}let C=Ww(u,{relative:o}),v=Rx(u,{replace:a,state:l,target:s,preventScrollReset:f,relative:o,unstable_viewTransition:c});function g(x){r&&r(x),x.defaultPrevented||v(x)}return h.createElement("a",_o({},d,{href:w||C,onClick:m||i?r:g,ref:n,target:s}))});function $x(e){let{getKey:t,storageKey:n}=e;return Nx({getKey:t,storageKey:n}),null}var ru;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(ru||(ru={}));var ou;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(ou||(ou={}));function Tx(e){let t=h.useContext(Ki);return t||re(!1),t}function kx(e){let t=h.useContext(zf);return t||re(!1),t}function Rx(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:a,unstable_viewTransition:l}=t===void 0?{}:t,s=Uf(),u=Re(),f=F0(e,{relative:a});return h.useCallback(c=>{if(ux(c,n)){c.preventDefault();let d=r!==void 0?r:_r(u)===_r(f);s(e,{replace:d,state:o,preventScrollReset:i,relative:a,unstable_viewTransition:l})}},[u,s,f,r,o,n,e,i,a,l])}const ep="react-router-scroll-positions";let wa={};function Nx(e){let{getKey:t,storageKey:n}=e===void 0?{}:e,{router:r}=Tx(ru.UseScrollRestoration),{restoreScrollPosition:o,preventScrollReset:i}=kx(ou.UseScrollRestoration),{basename:a}=h.useContext(rr),l=Re(),s=rx(),u=nx();h.useEffect(()=>(window.history.scrollRestoration="manual",()=>{window.history.scrollRestoration="auto"}),[]),Px(h.useCallback(()=>{if(u.state==="idle"){let f=(t?t(l,s):null)||l.key;wa[f]=window.scrollY}try{sessionStorage.setItem(n||ep,JSON.stringify(wa))}catch{}window.history.scrollRestoration="auto"},[n,t,u.state,l,s])),typeof document<"u"&&(h.useLayoutEffect(()=>{try{let f=sessionStorage.getItem(n||ep);f&&(wa=JSON.parse(f))}catch{}},[n]),h.useLayoutEffect(()=>{let f=t&&a!=="/"?(d,p)=>t(_o({},d,{pathname:Tr(d.pathname,a)||d.pathname}),p):t,c=r==null?void 0:r.enableScrollRestoration(wa,()=>window.scrollY,f);return()=>c&&c()},[r,a,t]),h.useLayoutEffect(()=>{if(o!==!1){if(typeof o=="number"){window.scrollTo(0,o);return}if(l.hash){let f=document.getElementById(decodeURIComponent(l.hash.slice(1)));if(f){f.scrollIntoView();return}}i!==!0&&window.scrollTo(0,0)}},[l,o,i]))}function Px(e,t){let{capture:n}={};h.useEffect(()=>{let r=n!=null?{capture:n}:void 0;return window.addEventListener("pagehide",e,r),()=>{window.removeEventListener("pagehide",e,r)}},[e,n])}const Ax="modulepreload",Lx=function(e){return"/polkadot-api-docs/"+e},tp={},gt=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const i=document.querySelector("meta[property=csp-nonce]"),a=(i==null?void 0:i.nonce)||(i==null?void 0:i.getAttribute("nonce"));o=Promise.all(n.map(l=>{if(l=Lx(l),l in tp)return;tp[l]=!0;const s=l.endsWith(".css"),u=s?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${u}`))return;const f=document.createElement("link");if(f.rel=s?"stylesheet":Ax,s||(f.as="script",f.crossOrigin=""),f.href=l,a&&f.setAttribute("nonce",a),document.head.appendChild(f),s)return new Promise((c,d)=>{f.addEventListener("load",c),f.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${l}`)))})}))}return o.then(()=>t()).catch(i=>{const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=i,window.dispatchEvent(a),!a.defaultPrevented)throw i})};function iu(e){return Array.isArray(e)?e.map(iu):typeof e=="object"&&e!==null?Object.keys(e).reduce((t,n)=>(t[n]=iu(e[n]),t),{}):typeof e=="string"&&e.includes("_vocs-fn_")?new Function(`return ${e.slice(9)}`)():e}const U0=iu({blogDir:"./pages/blog",rootDir:"docs",title:"Polkadot-API",titleTemplate:"%s – Polkadot-API",description:"Typescript API to interact with polkadot chains",basePath:"/polkadot-api-docs",topNav:[{text:"Guide",link:"/getting-started",id:15,items:[]}],sidebar:[{text:"Getting Started",link:"/getting-started"},{text:"Providers",link:"/providers"},{text:"Codegen",link:"/codegen"},{text:"Types",link:"/types"},{text:"Signers",link:"/signers"},{text:"Recipes",items:[{text:"Prepare for runtime upgrade",link:"/recipes/upgrade"}]},{text:"Examples",items:[{text:"Teleport across chains",link:"https://github.com/polkadot-api/react-teleport-example"}]}],socials:[{icon:"github",link:"https://github.com/polkadot-api/polkadot-api",label:"GitHub",type:"github"}],markdown:{code:{themes:{dark:"github-dark-dimmed",light:"github-light"}}},theme:{},vite:{base:"/polkadot-api-docs"}}),H0=h.createContext(U0);function V0(){return typeof window<"u",U0}function Ix({children:e,config:t}){const[n,r]=h.useState(()=>t||V0());return h.useEffect(()=>{},[]),h.useEffect(()=>{typeof window<"u"},[n]),y.jsx(H0.Provider,{value:n,children:e})}function We(){return h.useContext(H0)}const Wf=[{lazy:()=>gt(()=>import("./codegen-CdxKKys-.js"),[]),path:"/codegen",type:"mdx",filePath:"codegen.md",lastUpdatedAt:1715082387e3},{lazy:()=>gt(()=>import("./codegen-CdxKKys-.js"),[]),path:"/codegen.html",type:"mdx",filePath:"codegen.md",lastUpdatedAt:1715082387e3},{lazy:()=>gt(()=>import("./getting-started-DZfB88EO.js"),[]),path:"/getting-started",type:"mdx",filePath:"getting-started.mdx",lastUpdatedAt:1715082387e3},{lazy:()=>gt(()=>import("./getting-started-DZfB88EO.js"),[]),path:"/getting-started.html",type:"mdx",filePath:"getting-started.mdx",lastUpdatedAt:1715082387e3},{lazy:()=>gt(()=>import("./index-BWHDjk3s.js"),[]),path:"/",type:"mdx",filePath:"index.mdx",lastUpdatedAt:1715082387e3},{lazy:()=>gt(()=>import("./providers-BZEVQ9BA.js"),[]),path:"/providers",type:"mdx",filePath:"providers.md",lastUpdatedAt:1715082387e3},{lazy:()=>gt(()=>import("./providers-BZEVQ9BA.js"),[]),path:"/providers.html",type:"mdx",filePath:"providers.md",lastUpdatedAt:1715082387e3},{lazy:()=>gt(()=>import("./signers-DsU4_F1h.js"),[]),path:"/signers",type:"mdx",filePath:"signers.md",lastUpdatedAt:1715082387e3},{lazy:()=>gt(()=>import("./signers-DsU4_F1h.js"),[]),path:"/signers.html",type:"mdx",filePath:"signers.md",lastUpdatedAt:1715082387e3},{lazy:()=>gt(()=>import("./types-CXl5FL43.js"),[]),path:"/types",type:"mdx",filePath:"types.mdx",lastUpdatedAt:1715082387e3},{lazy:()=>gt(()=>import("./types-CXl5FL43.js"),[]),path:"/types.html",type:"mdx",filePath:"types.mdx",lastUpdatedAt:1715082387e3},{lazy:()=>gt(()=>import("./upgrade-CVsjfMfY.js"),[]),path:"/recipes/upgrade",type:"mdx",filePath:"recipes/upgrade.md",lastUpdatedAt:1715082387e3},{lazy:()=>gt(()=>import("./upgrade-CVsjfMfY.js"),[]),path:"/recipes/upgrade.html",type:"mdx",filePath:"recipes/upgrade.md",lastUpdatedAt:1715082387e3}];var Os={horizontalPadding:"var(--vocs-content_horizontalPadding)",verticalPadding:"var(--vocs-content_verticalPadding)",width:"var(--vocs-content_width)"},Ox={default:"system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif",mono:'ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace'},Mx={default:"var(--vocs-fontFamily_default)",mono:"var(--vocs-fontFamily_mono)"},np={white:"var(--vocs-color_white)",black:"var(--vocs-color_black)",background:"var(--vocs-color_background)",background2:"var(--vocs-color_background2)",background3:"var(--vocs-color_background3)",background4:"var(--vocs-color_background4)",background5:"var(--vocs-color_background5)",backgroundAccent:"var(--vocs-color_backgroundAccent)",backgroundAccentHover:"var(--vocs-color_backgroundAccentHover)",backgroundAccentText:"var(--vocs-color_backgroundAccentText)",backgroundBlueTint:"var(--vocs-color_backgroundBlueTint)",backgroundDark:"var(--vocs-color_backgroundDark)",backgroundGreenTint:"var(--vocs-color_backgroundGreenTint)",backgroundGreenTint2:"var(--vocs-color_backgroundGreenTint2)",backgroundIrisTint:"var(--vocs-color_backgroundIrisTint)",backgroundRedTint:"var(--vocs-color_backgroundRedTint)",backgroundRedTint2:"var(--vocs-color_backgroundRedTint2)",backgroundYellowTint:"var(--vocs-color_backgroundYellowTint)",border:"var(--vocs-color_border)",border2:"var(--vocs-color_border2)",borderAccent:"var(--vocs-color_borderAccent)",borderBlue:"var(--vocs-color_borderBlue)",borderGreen:"var(--vocs-color_borderGreen)",borderIris:"var(--vocs-color_borderIris)",borderRed:"var(--vocs-color_borderRed)",borderYellow:"var(--vocs-color_borderYellow)",heading:"var(--vocs-color_heading)",inverted:"var(--vocs-color_inverted)",shadow:"var(--vocs-color_shadow)",shadow2:"var(--vocs-color_shadow2)",text:"var(--vocs-color_text)",text2:"var(--vocs-color_text2)",text3:"var(--vocs-color_text3)",text4:"var(--vocs-color_text4)",textAccent:"var(--vocs-color_textAccent)",textAccentHover:"var(--vocs-color_textAccentHover)",textBlue:"var(--vocs-color_textBlue)",textBlueHover:"var(--vocs-color_textBlueHover)",textGreen:"var(--vocs-color_textGreen)",textGreenHover:"var(--vocs-color_textGreenHover)",textIris:"var(--vocs-color_textIris)",textIrisHover:"var(--vocs-color_textIrisHover)",textRed:"var(--vocs-color_textRed)",textRedHover:"var(--vocs-color_textRedHover)",textYellow:"var(--vocs-color_textYellow)",textYellowHover:"var(--vocs-color_textYellowHover)",title:"var(--vocs-color_title)"},Ms={0:"var(--vocs-space_0)",1:"var(--vocs-space_1)",2:"var(--vocs-space_2)",3:"var(--vocs-space_3)",4:"var(--vocs-space_4)",6:"var(--vocs-space_6)",8:"var(--vocs-space_8)",12:"var(--vocs-space_12)",14:"var(--vocs-space_14)",16:"var(--vocs-space_16)",18:"var(--vocs-space_18)",20:"var(--vocs-space_20)",22:"var(--vocs-space_22)",24:"var(--vocs-space_24)",28:"var(--vocs-space_28)",32:"var(--vocs-space_32)",36:"var(--vocs-space_36)",40:"var(--vocs-space_40)",44:"var(--vocs-space_44)",48:"var(--vocs-space_48)",56:"var(--vocs-space_56)",64:"var(--vocs-space_64)",72:"var(--vocs-space_72)",80:"var(--vocs-space_80)"};function W0(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t"".concat(l,":").concat(this[l])).join(";")},writable:!1}),n}var jx="var(--vocs_ExternalLink_iconUrl)",Fx="vocs_ExternalLink";const zx=h.forwardRef(({className:e,children:t,hideExternalIcon:n,href:r,...o},i)=>{const{basePath:a}=We(),l=a;return y.jsx("a",{ref:i,className:I(e,n||typeof t!="string"?void 0:Fx),href:r,target:"_blank",rel:"noopener noreferrer",style:Yt({[jx]:`url(${l}/.vocs/icons/arrow-diagonal.svg)`}),...o,children:t})});var rp="vocs_Link_accent_underlined",op="vocs_Link",ip="vocs_Link_styleless",au=new Map,xa=new WeakMap,ap=0,Bx=void 0;function Ux(e){return e?(xa.has(e)||(ap+=1,xa.set(e,ap.toString())),xa.get(e)):"0"}function Hx(e){return Object.keys(e).sort().filter(t=>e[t]!==void 0).map(t=>`${t}_${t==="root"?Ux(e.root):e[t]}`).toString()}function Vx(e){const t=Hx(e);let n=au.get(t);if(!n){const r=new Map;let o;const i=new IntersectionObserver(a=>{a.forEach(l=>{var s;const u=l.isIntersecting&&o.some(f=>l.intersectionRatio>=f);e.trackVisibility&&typeof l.isVisible>"u"&&(l.isVisible=u),(s=r.get(l.target))==null||s.forEach(f=>{f(u,l)})})},e);o=i.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),n={id:t,observer:i,elements:r},au.set(t,n)}return n}function Wx(e,t,n={},r=Bx){if(typeof window.IntersectionObserver>"u"&&r!==void 0){const s=e.getBoundingClientRect();return t(r,{isIntersecting:r,target:e,intersectionRatio:typeof n.threshold=="number"?n.threshold:0,time:0,boundingClientRect:s,intersectionRect:s,rootBounds:s}),()=>{}}const{id:o,observer:i,elements:a}=Vx(n),l=a.get(e)||[];return a.has(e)||a.set(e,l),l.push(t),i.observe(e),function(){l.splice(l.indexOf(t),1),l.length===0&&(a.delete(e),i.unobserve(e)),a.size===0&&(i.disconnect(),au.delete(o))}}function K0({threshold:e,delay:t,trackVisibility:n,rootMargin:r,root:o,triggerOnce:i,skip:a,initialInView:l,fallbackInView:s,onChange:u}={}){var f;const[c,d]=h.useState(null),p=h.useRef(),[w,m]=h.useState({inView:!!l,entry:void 0});p.current=u,h.useEffect(()=>{if(a||!c)return;let x;return x=Wx(c,(E,S)=>{m({inView:E,entry:S}),p.current&&p.current(E,S),S.isIntersecting&&i&&x&&(x(),x=void 0)},{root:o,rootMargin:r,threshold:e,trackVisibility:n,delay:t},s),()=>{x&&x()}},[Array.isArray(e)?e.toString():e,c,o,r,i,a,n,s,t]);const C=(f=w.entry)==null?void 0:f.target,v=h.useRef();!c&&C&&!i&&!a&&v.current!==C&&(v.current=C,m({inView:!!l,entry:void 0}));const g=[d,w.inView,w.entry];return g.ref=g[0],g.inView=g[1],g.entry=g[2],g}function Kx(...e){return t=>{Yx(t,...e)}}function Yx(e,...t){t.forEach(n=>{typeof n=="function"?n(e):n!=null&&(n.current=e)})}const Gn=h.forwardRef((e,t)=>{const n=()=>{var i;return(i=Wf.find(a=>a.path===e.to))==null?void 0:i.lazy()},{ref:r,inView:o}=K0();return h.useEffect(()=>{o&&n()},[o,n]),y.jsx(Vf,{ref:Kx(t,r),...e})}),rn=h.forwardRef((e,t)=>{const{href:n,variant:r="accent underlined"}=e,{pathname:o}=Re();if(n!=null&&n.match(/^(www|https?)/))return y.jsx(zx,{...e,ref:t,className:I(e.className,op,r==="accent underlined"&&rp,r==="styleless"&&ip),hideExternalIcon:e.hideExternalIcon});const[i,a]=(n||"").split("#"),l=`${i||o}${a?`#${a}`:""}`;return y.jsx(Gn,{...e,ref:t,className:I(e.className,op,r==="accent underlined"&&rp,r==="styleless"&&ip),to:l})});var Gx="vocs_NotFound_divider",Qx="vocs_NotFound",Zx="vocs_H1",Y0="vocs_Heading",G0="vocs_Heading_slugTarget";function Ao({level:e,...t}){const n=`h${e}`;return y.jsxs(n,{...t,id:void 0,className:I(t.className,Y0),children:[y.jsx("div",{id:t.id,className:G0}),t.children]})}function Q0(e){return y.jsx(Ao,{...e,className:I(e.className,Zx),level:1})}var Xx="vocs_Paragraph";function Z0(e){return y.jsx("p",{...e,className:I(e.className,Xx)})}function Jx(){return y.jsxs("div",{className:Qx,children:[y.jsx(Q0,{children:"Page Not Found"}),y.jsx("div",{style:{height:Ms[24]}}),y.jsx("hr",{className:Gx}),y.jsx("div",{style:{height:Ms[24]}}),y.jsx(Z0,{children:"The page you were looking for could not be found."}),y.jsx("div",{style:{height:Ms[8]}}),y.jsx(rn,{href:"/",children:"Go to Home Page"})]})}var qx="var(--vocs_Banner_bannerBackgroundColor)",e5="var(--vocs_Banner_bannerHeight)",t5="var(--vocs_Banner_bannerTextColor)",n5="vocs_Banner_closeButton",r5="vocs_Banner_content",o5="vocs_Banner_inner",i5="vocs_Banner";const a5=Object.getPrototypeOf(l5).constructor;async function l5(e,t){return new a5(String(e))(t)}function s5(e,t){return new Function(String(e))(t)}function Rr(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}var c5=["color"],u5=h.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Rr(e,c5);return h.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),h.createElement("path",{d:"M6.85355 3.14645C7.04882 3.34171 7.04882 3.65829 6.85355 3.85355L3.70711 7H12.5C12.7761 7 13 7.22386 13 7.5C13 7.77614 12.7761 8 12.5 8H3.70711L6.85355 11.1464C7.04882 11.3417 7.04882 11.6583 6.85355 11.8536C6.65829 12.0488 6.34171 12.0488 6.14645 11.8536L2.14645 7.85355C1.95118 7.65829 1.95118 7.34171 2.14645 7.14645L6.14645 3.14645C6.34171 2.95118 6.65829 2.95118 6.85355 3.14645Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),f5=["color"],d5=h.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Rr(e,f5);return h.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),h.createElement("path",{d:"M6.1584 3.13508C6.35985 2.94621 6.67627 2.95642 6.86514 3.15788L10.6151 7.15788C10.7954 7.3502 10.7954 7.64949 10.6151 7.84182L6.86514 11.8418C6.67627 12.0433 6.35985 12.0535 6.1584 11.8646C5.95694 11.6757 5.94673 11.3593 6.1356 11.1579L9.565 7.49985L6.1356 3.84182C5.94673 3.64036 5.95694 3.32394 6.1584 3.13508Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),h5=["color"],p5=h.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Rr(e,h5);return h.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),h.createElement("path",{d:"M12.8536 2.85355C13.0488 2.65829 13.0488 2.34171 12.8536 2.14645C12.6583 1.95118 12.3417 1.95118 12.1464 2.14645L7.5 6.79289L2.85355 2.14645C2.65829 1.95118 2.34171 1.95118 2.14645 2.14645C1.95118 2.34171 1.95118 2.65829 2.14645 2.85355L6.79289 7.5L2.14645 12.1464C1.95118 12.3417 1.95118 12.6583 2.14645 12.8536C2.34171 13.0488 2.65829 13.0488 2.85355 12.8536L7.5 8.20711L12.1464 12.8536C12.3417 13.0488 12.6583 13.0488 12.8536 12.8536C13.0488 12.6583 13.0488 12.3417 12.8536 12.1464L8.20711 7.5L12.8536 2.85355Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),v5=["color"],m5=h.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Rr(e,v5);return h.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),h.createElement("path",{d:"M3.5 2C3.22386 2 3 2.22386 3 2.5V12.5C3 12.7761 3.22386 13 3.5 13H11.5C11.7761 13 12 12.7761 12 12.5V6H8.5C8.22386 6 8 5.77614 8 5.5V2H3.5ZM9 2.70711L11.2929 5H9V2.70711ZM2 2.5C2 1.67157 2.67157 1 3.5 1H8.5C8.63261 1 8.75979 1.05268 8.85355 1.14645L12.8536 5.14645C12.9473 5.24021 13 5.36739 13 5.5V12.5C13 13.3284 12.3284 14 11.5 14H3.5C2.67157 14 2 13.3284 2 12.5V2.5Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),g5=["color"],y5=h.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Rr(e,g5);return h.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),h.createElement("path",{d:"M1.5 5.25C1.91421 5.25 2.25 4.91421 2.25 4.5C2.25 4.08579 1.91421 3.75 1.5 3.75C1.08579 3.75 0.75 4.08579 0.75 4.5C0.75 4.91421 1.08579 5.25 1.5 5.25ZM4 4.5C4 4.22386 4.22386 4 4.5 4H13.5C13.7761 4 14 4.22386 14 4.5C14 4.77614 13.7761 5 13.5 5H4.5C4.22386 5 4 4.77614 4 4.5ZM4.5 7C4.22386 7 4 7.22386 4 7.5C4 7.77614 4.22386 8 4.5 8H13.5C13.7761 8 14 7.77614 14 7.5C14 7.22386 13.7761 7 13.5 7H4.5ZM4.5 10C4.22386 10 4 10.2239 4 10.5C4 10.7761 4.22386 11 4.5 11H13.5C13.7761 11 14 10.7761 14 10.5C14 10.2239 13.7761 10 13.5 10H4.5ZM2.25 7.5C2.25 7.91421 1.91421 8.25 1.5 8.25C1.08579 8.25 0.75 7.91421 0.75 7.5C0.75 7.08579 1.08579 6.75 1.5 6.75C1.91421 6.75 2.25 7.08579 2.25 7.5ZM1.5 11.25C1.91421 11.25 2.25 10.9142 2.25 10.5C2.25 10.0858 1.91421 9.75 1.5 9.75C1.08579 9.75 0.75 10.0858 0.75 10.5C0.75 10.9142 1.08579 11.25 1.5 11.25Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),w5=["color"],Kf=h.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Rr(e,w5);return h.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),h.createElement("path",{d:"M10 6.5C10 8.433 8.433 10 6.5 10C4.567 10 3 8.433 3 6.5C3 4.567 4.567 3 6.5 3C8.433 3 10 4.567 10 6.5ZM9.30884 10.0159C8.53901 10.6318 7.56251 11 6.5 11C4.01472 11 2 8.98528 2 6.5C2 4.01472 4.01472 2 6.5 2C8.98528 2 11 4.01472 11 6.5C11 7.56251 10.6318 8.53901 10.0159 9.30884L12.8536 12.1464C13.0488 12.3417 13.0488 12.6583 12.8536 12.8536C12.6583 13.0488 12.3417 13.0488 12.1464 12.8536L9.30884 10.0159Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),x5=["color"],C5=h.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Rr(e,x5);return h.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),h.createElement("path",{d:"M12.1464 1.14645C12.3417 0.951184 12.6583 0.951184 12.8535 1.14645L14.8535 3.14645C15.0488 3.34171 15.0488 3.65829 14.8535 3.85355L10.9109 7.79618C10.8349 7.87218 10.7471 7.93543 10.651 7.9835L6.72359 9.94721C6.53109 10.0435 6.29861 10.0057 6.14643 9.85355C5.99425 9.70137 5.95652 9.46889 6.05277 9.27639L8.01648 5.34897C8.06455 5.25283 8.1278 5.16507 8.2038 5.08907L12.1464 1.14645ZM12.5 2.20711L8.91091 5.79618L7.87266 7.87267L8.12731 8.12732L10.2038 7.08907L13.7929 3.5L12.5 2.20711ZM9.99998 2L8.99998 3H4.9C4.47171 3 4.18056 3.00039 3.95552 3.01877C3.73631 3.03668 3.62421 3.06915 3.54601 3.10899C3.35785 3.20487 3.20487 3.35785 3.10899 3.54601C3.06915 3.62421 3.03669 3.73631 3.01878 3.95552C3.00039 4.18056 3 4.47171 3 4.9V11.1C3 11.5283 3.00039 11.8194 3.01878 12.0445C3.03669 12.2637 3.06915 12.3758 3.10899 12.454C3.20487 12.6422 3.35785 12.7951 3.54601 12.891C3.62421 12.9309 3.73631 12.9633 3.95552 12.9812C4.18056 12.9996 4.47171 13 4.9 13H11.1C11.5283 13 11.8194 12.9996 12.0445 12.9812C12.2637 12.9633 12.3758 12.9309 12.454 12.891C12.6422 12.7951 12.7951 12.6422 12.891 12.454C12.9309 12.3758 12.9633 12.2637 12.9812 12.0445C12.9996 11.8194 13 11.5283 13 11.1V6.99998L14 5.99998V11.1V11.1207C14 11.5231 14 11.8553 13.9779 12.1259C13.9549 12.407 13.9057 12.6653 13.782 12.908C13.5903 13.2843 13.2843 13.5903 12.908 13.782C12.6653 13.9057 12.407 13.9549 12.1259 13.9779C11.8553 14 11.5231 14 11.1207 14H11.1H4.9H4.87934C4.47686 14 4.14468 14 3.87409 13.9779C3.59304 13.9549 3.33469 13.9057 3.09202 13.782C2.7157 13.5903 2.40973 13.2843 2.21799 12.908C2.09434 12.6653 2.04506 12.407 2.0221 12.1259C1.99999 11.8553 1.99999 11.5231 2 11.1207V11.1206V11.1V4.9V4.87935V4.87932V4.87931C1.99999 4.47685 1.99999 4.14468 2.0221 3.87409C2.04506 3.59304 2.09434 3.33469 2.21799 3.09202C2.40973 2.71569 2.7157 2.40973 3.09202 2.21799C3.33469 2.09434 3.59304 2.04506 3.87409 2.0221C4.14468 1.99999 4.47685 1.99999 4.87932 2H4.87935H4.9H9.99998Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))});function Cl(e,t){if(typeof e!="object"||e===null)return e;if(Array.isArray(e))return e.map((r,o)=>Cl(r,o));const n=e.props.children?{...e.props,children:Cl(e.props.children)}:e.props;return Z.createElement(e.type,{...n,key:t})}function E5({hide:e}){const{banner:t}=We(),n=h.useMemo(()=>{const r=(t==null?void 0:t.content)??"";if(!r)return null;if(typeof r!="string")return()=>Cl(r);const{default:o}=s5(r,{...Ky,Fragment:h.Fragment});return o},[t]);return n?y.jsx("div",{className:I(i5),style:Yt({[qx]:t==null?void 0:t.backgroundColor,[t5]:t==null?void 0:t.textColor}),children:y.jsxs("div",{className:I(o5),children:[y.jsx("div",{className:I(r5),children:y.jsx(n,{})}),(t==null?void 0:t.dismissable)!=="false"&&y.jsx("button",{className:I(n5),onClick:e,type:"button",children:y.jsx(p5,{width:14,height:14})})]})}):null}var _5="vocs_Content";function X0({children:e,className:t}){return y.jsx("article",{className:I(t,_5),children:e})}function J0({items:e,pathname:t}){const n=t.replace(/\.html$/,""),r=[];for(const o of e)(o.link&&n.startsWith(o.match||o.link)||o.items&&J0({items:o.items,pathname:t}).length>0)&&r.push(o.id);return r}function Yi({items:e,pathname:t}){return h.useMemo(()=>J0({items:e,pathname:t}),[e,t])}function Nr(){const e=h.useContext(q0);if(!e)throw new Error("`usePageData` must be used within `PageDataContext.Provider`.");return e}const q0=h.createContext(void 0);function Yl(){const{pathname:e}=Re(),t=We(),{sidebar:n}=t;if(!n)return{items:[]};if(Array.isArray(n))return{items:n};const r=h.useMemo(()=>{const o=Object.keys(n).filter(i=>e.startsWith(i));return o[o.length-1]},[n,e]);return r?Array.isArray(n[r])?{key:r,items:n[r]}:{...n[r],key:r}:{items:[]}}function Pr(){const e=Yl(),{frontmatter:t}=Nr(),{layout:n,showLogo:r,showOutline:o,showSidebar:i,showTopNav:a}=t||{},l=n??"docs";return{layout:l,get showLogo(){return typeof r<"u"?r:!0},get showOutline(){return typeof o<"u"?o:l==="docs"},get showSidebar(){return e.items.length===0?!1:typeof i<"u"?i:!(l==="minimal"||l==="landing")},get showTopNav(){return typeof a<"u"?a:!0}}}function S5(){const[e,t]=h.useState(()=>{if(!(typeof window>"u")){if(localStorage.getItem("vocs.theme")){const n=localStorage.getItem("vocs.theme");if(n)return n}return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}});return h.useEffect(()=>{e&&localStorage.setItem("vocs.theme",e),e==="dark"?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark")},[e]),{theme:e,toggle(){t(n=>n==="light"?"dark":"light")}}}var b5="vocs_utils_visibleDark",$5="vocs_utils_visibleLight",eg="vocs_utils_visuallyHidden";function Y(){return Y=Object.assign?Object.assign.bind():function(e){for(var t=1;te.forEach(n=>T5(n,t))}function Be(...e){return h.useCallback(tg(...e),e)}function En(e,t=[]){let n=[];function r(i,a){const l=h.createContext(a),s=n.length;n=[...n,a];function u(c){const{scope:d,children:p,...w}=c,m=(d==null?void 0:d[e][s])||l,C=h.useMemo(()=>w,Object.values(w));return h.createElement(m.Provider,{value:C},p)}function f(c,d){const p=(d==null?void 0:d[e][s])||l,w=h.useContext(p);if(w)return w;if(a!==void 0)return a;throw new Error(`\`${c}\` must be used within \`${i}\``)}return u.displayName=i+"Provider",[u,f]}const o=()=>{const i=n.map(a=>h.createContext(a));return function(l){const s=(l==null?void 0:l[e])||i;return h.useMemo(()=>({[`__scope${e}`]:{...l,[e]:s}}),[l,s])}};return o.scopeName=e,[r,k5(o,...t)]}function k5(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const a=r.reduce((l,{useScope:s,scopeName:u})=>{const c=s(i)[`__scope${u}`];return{...l,...c}},{});return h.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}const yn=globalThis!=null&&globalThis.document?h.useLayoutEffect:()=>{},R5=Uu.useId||(()=>{});let N5=0;function on(e){const[t,n]=h.useState(R5());return yn(()=>{n(r=>r??String(N5++))},[e]),t?`radix-${t}`:""}function at(e){const t=h.useRef(e);return h.useEffect(()=>{t.current=e}),h.useMemo(()=>(...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}function or({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=P5({defaultProp:t,onChange:n}),i=e!==void 0,a=i?e:r,l=at(n),s=h.useCallback(u=>{if(i){const c=typeof u=="function"?u(e):u;c!==e&&l(c)}else o(u)},[i,e,o,l]);return[a,s]}function P5({defaultProp:e,onChange:t}){const n=h.useState(e),[r]=n,o=h.useRef(r),i=at(t);return h.useEffect(()=>{o.current!==r&&(i(r),o.current=r)},[r,o,i]),n}const So=h.forwardRef((e,t)=>{const{children:n,...r}=e,o=h.Children.toArray(n),i=o.find(L5);if(i){const a=i.props.children,l=o.map(s=>s===i?h.Children.count(a)>1?h.Children.only(null):h.isValidElement(a)?a.props.children:null:s);return h.createElement(lu,Y({},r,{ref:t}),h.isValidElement(a)?h.cloneElement(a,void 0,l):null)}return h.createElement(lu,Y({},r,{ref:t}),n)});So.displayName="Slot";const lu=h.forwardRef((e,t)=>{const{children:n,...r}=e;return h.isValidElement(n)?h.cloneElement(n,{...I5(r,n.props),ref:t?tg(t,n.ref):n.ref}):h.Children.count(n)>1?h.Children.only(null):null});lu.displayName="SlotClone";const A5=({children:e})=>h.createElement(h.Fragment,null,e);function L5(e){return h.isValidElement(e)&&e.type===A5}function I5(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...l)=>{i(...l),o(...l)}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}const O5=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],fe=O5.reduce((e,t)=>{const n=h.forwardRef((r,o)=>{const{asChild:i,...a}=r,l=i?So:t;return h.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),h.createElement(l,Y({},a,{ref:o}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function su(e,t){e&&No.flushSync(()=>e.dispatchEvent(t))}function M5(e,t=globalThis==null?void 0:globalThis.document){const n=at(e);h.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r),()=>t.removeEventListener("keydown",r)},[n,t])}const cu="dismissableLayer.update",D5="dismissableLayer.pointerDownOutside",j5="dismissableLayer.focusOutside";let lp;const F5=h.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Yf=h.forwardRef((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:l,onDismiss:s,...u}=e,f=h.useContext(F5),[c,d]=h.useState(null),p=(n=c==null?void 0:c.ownerDocument)!==null&&n!==void 0?n:globalThis==null?void 0:globalThis.document,[,w]=h.useState({}),m=Be(t,b=>d(b)),C=Array.from(f.layers),[v]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),g=C.indexOf(v),x=c?C.indexOf(c):-1,E=f.layersWithOutsidePointerEventsDisabled.size>0,S=x>=g,$=z5(b=>{const T=b.target,P=[...f.branches].some(M=>M.contains(T));!S||P||(i==null||i(b),l==null||l(b),b.defaultPrevented||s==null||s())},p),_=B5(b=>{const T=b.target;[...f.branches].some(M=>M.contains(T))||(a==null||a(b),l==null||l(b),b.defaultPrevented||s==null||s())},p);return M5(b=>{x===f.layers.size-1&&(o==null||o(b),!b.defaultPrevented&&s&&(b.preventDefault(),s()))},p),h.useEffect(()=>{if(c)return r&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(lp=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(c)),f.layers.add(c),sp(),()=>{r&&f.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=lp)}},[c,p,r,f]),h.useEffect(()=>()=>{c&&(f.layers.delete(c),f.layersWithOutsidePointerEventsDisabled.delete(c),sp())},[c,f]),h.useEffect(()=>{const b=()=>w({});return document.addEventListener(cu,b),()=>document.removeEventListener(cu,b)},[]),h.createElement(fe.div,Y({},u,{ref:m,style:{pointerEvents:E?S?"auto":"none":void 0,...e.style},onFocusCapture:le(e.onFocusCapture,_.onFocusCapture),onBlurCapture:le(e.onBlurCapture,_.onBlurCapture),onPointerDownCapture:le(e.onPointerDownCapture,$.onPointerDownCapture)}))});function z5(e,t=globalThis==null?void 0:globalThis.document){const n=at(e),r=h.useRef(!1),o=h.useRef(()=>{});return h.useEffect(()=>{const i=l=>{if(l.target&&!r.current){let u=function(){ng(D5,n,s,{discrete:!0})};const s={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=u,t.addEventListener("click",o.current,{once:!0})):u()}else t.removeEventListener("click",o.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function B5(e,t=globalThis==null?void 0:globalThis.document){const n=at(e),r=h.useRef(!1);return h.useEffect(()=>{const o=i=>{i.target&&!r.current&&ng(j5,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function sp(){const e=new CustomEvent(cu);document.dispatchEvent(e)}function ng(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?su(o,i):o.dispatchEvent(i)}const Ds="focusScope.autoFocusOnMount",js="focusScope.autoFocusOnUnmount",cp={bubbles:!1,cancelable:!0},rg=h.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...a}=e,[l,s]=h.useState(null),u=at(o),f=at(i),c=h.useRef(null),d=Be(t,m=>s(m)),p=h.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;h.useEffect(()=>{if(r){let m=function(x){if(p.paused||!l)return;const E=x.target;l.contains(E)?c.current=E:Pn(c.current,{select:!0})},C=function(x){if(p.paused||!l)return;const E=x.relatedTarget;E!==null&&(l.contains(E)||Pn(c.current,{select:!0}))},v=function(x){if(document.activeElement===document.body)for(const S of x)S.removedNodes.length>0&&Pn(l)};document.addEventListener("focusin",m),document.addEventListener("focusout",C);const g=new MutationObserver(v);return l&&g.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",C),g.disconnect()}}},[r,l,p.paused]),h.useEffect(()=>{if(l){fp.add(p);const m=document.activeElement;if(!l.contains(m)){const v=new CustomEvent(Ds,cp);l.addEventListener(Ds,u),l.dispatchEvent(v),v.defaultPrevented||(U5(Y5(og(l)),{select:!0}),document.activeElement===m&&Pn(l))}return()=>{l.removeEventListener(Ds,u),setTimeout(()=>{const v=new CustomEvent(js,cp);l.addEventListener(js,f),l.dispatchEvent(v),v.defaultPrevented||Pn(m??document.body,{select:!0}),l.removeEventListener(js,f),fp.remove(p)},0)}}},[l,u,f,p]);const w=h.useCallback(m=>{if(!n&&!r||p.paused)return;const C=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,v=document.activeElement;if(C&&v){const g=m.currentTarget,[x,E]=H5(g);x&&E?!m.shiftKey&&v===E?(m.preventDefault(),n&&Pn(x,{select:!0})):m.shiftKey&&v===x&&(m.preventDefault(),n&&Pn(E,{select:!0})):v===g&&m.preventDefault()}},[n,r,p.paused]);return h.createElement(fe.div,Y({tabIndex:-1},a,{ref:d,onKeyDown:w}))});function U5(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Pn(r,{select:t}),document.activeElement!==n)return}function H5(e){const t=og(e),n=up(t,e),r=up(t.reverse(),e);return[n,r]}function og(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function up(e,t){for(const n of e)if(!V5(n,{upTo:t}))return n}function V5(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function W5(e){return e instanceof HTMLInputElement&&"select"in e}function Pn(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&W5(e)&&t&&e.select()}}const fp=K5();function K5(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=dp(e,t),e.unshift(t)},remove(t){var n;e=dp(e,t),(n=e[0])===null||n===void 0||n.resume()}}}function dp(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Y5(e){return e.filter(t=>t.tagName!=="A")}const ig=h.forwardRef((e,t)=>{var n;const{container:r=globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,...o}=e;return r?b0.createPortal(h.createElement(fe.div,Y({},o,{ref:t})),r):null});function G5(e,t){return h.useReducer((n,r)=>{const o=t[n][r];return o??n},e)}const _n=e=>{const{present:t,children:n}=e,r=Q5(t),o=typeof n=="function"?n({present:r.isPresent}):h.Children.only(n),i=Be(r.ref,o.ref);return typeof n=="function"||r.isPresent?h.cloneElement(o,{ref:i}):null};_n.displayName="Presence";function Q5(e){const[t,n]=h.useState(),r=h.useRef({}),o=h.useRef(e),i=h.useRef("none"),a=e?"mounted":"unmounted",[l,s]=G5(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return h.useEffect(()=>{const u=Ca(r.current);i.current=l==="mounted"?u:"none"},[l]),yn(()=>{const u=r.current,f=o.current;if(f!==e){const d=i.current,p=Ca(u);e?s("MOUNT"):p==="none"||(u==null?void 0:u.display)==="none"?s("UNMOUNT"):s(f&&d!==p?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,s]),yn(()=>{if(t){const u=c=>{const p=Ca(r.current).includes(c.animationName);c.target===t&&p&&No.flushSync(()=>s("ANIMATION_END"))},f=c=>{c.target===t&&(i.current=Ca(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}else s("ANIMATION_END")},[t,s]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:h.useCallback(u=>{u&&(r.current=getComputedStyle(u)),n(u)},[])}}function Ca(e){return(e==null?void 0:e.animationName)||"none"}let Fs=0;function ag(){h.useEffect(()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=n[0])!==null&&e!==void 0?e:hp()),document.body.insertAdjacentElement("beforeend",(t=n[1])!==null&&t!==void 0?t:hp()),Fs++,()=>{Fs===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),Fs--}},[])}function hp(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var en=function(){return en=Object.assign||function(t){for(var n,r=1,o=arguments.length;r"u")return d4;var t=h4(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},v4=ug(),uo="data-scroll-locked",m4=function(e,t,n,r){var o=e.left,i=e.top,a=e.right,l=e.gap;return n===void 0&&(n="margin"),` + */function _o(){return _o=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[o]=e[o]);return n}function cx(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function ux(e,t){return e.button===0&&(!t||t==="_self")&&!cx(e)}const fx=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],dx="6";try{window.__reactRouterVersion=dx}catch{}function hx(e,t){return T3({basename:t==null?void 0:t.basename,future:_o({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:Jw({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||px(),routes:e,mapRouteProperties:lx,unstable_dataStrategy:t==null?void 0:t.unstable_dataStrategy,window:t==null?void 0:t.window}).initialize()}function px(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=_o({},t,{errors:vx(t.errors)})),t}function vx(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,o]of t)if(o&&o.__type==="RouteErrorResponse")n[r]=new Mf(o.status,o.statusText,o.data,o.internal===!0);else if(o&&o.__type==="Error"){if(o.__subType){let i=window[o.__subType];if(typeof i=="function")try{let a=new i(o.message);a.stack="",n[r]=a}catch{}}if(n[r]==null){let i=new Error(o.message);i.stack="",n[r]=i}}else n[r]=o;return n}const mx=h.createContext({isTransitioning:!1}),gx=h.createContext(new Map),yx="startTransition",Jh=Uu[yx],wx="flushSync",qh=Xw[wx];function xx(e){Jh?Jh(e):e()}function Jo(e){qh?qh(e):e()}class Cx{constructor(){this.status="pending",this.promise=new Promise((t,n)=>{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",t(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",n(r))}})}}function Ex(e){let{fallbackElement:t,router:n,future:r}=e,[o,i]=h.useState(n.state),[a,l]=h.useState(),[s,u]=h.useState({isTransitioning:!1}),[f,c]=h.useState(),[d,p]=h.useState(),[w,m]=h.useState(),C=h.useRef(new Map),{v7_startTransition:v}=r||{},g=h.useCallback(_=>{v?xx(_):_()},[v]),x=h.useCallback((_,b)=>{let{deletedFetchers:T,unstable_flushSync:P,unstable_viewTransitionOpts:M}=b;T.forEach(j=>C.current.delete(j)),_.fetchers.forEach((j,R)=>{j.data!==void 0&&C.current.set(R,j.data)});let O=n.window==null||typeof n.window.document.startViewTransition!="function";if(!M||O){P?Jo(()=>i(_)):g(()=>i(_));return}if(P){Jo(()=>{d&&(f&&f.resolve(),d.skipTransition()),u({isTransitioning:!0,flushSync:!0,currentLocation:M.currentLocation,nextLocation:M.nextLocation})});let j=n.window.document.startViewTransition(()=>{Jo(()=>i(_))});j.finished.finally(()=>{Jo(()=>{c(void 0),p(void 0),l(void 0),u({isTransitioning:!1})})}),Jo(()=>p(j));return}d?(f&&f.resolve(),d.skipTransition(),m({state:_,currentLocation:M.currentLocation,nextLocation:M.nextLocation})):(l(_),u({isTransitioning:!0,flushSync:!1,currentLocation:M.currentLocation,nextLocation:M.nextLocation}))},[n.window,d,f,C,g]);h.useLayoutEffect(()=>n.subscribe(x),[n,x]),h.useEffect(()=>{s.isTransitioning&&!s.flushSync&&c(new Cx)},[s]),h.useEffect(()=>{if(f&&a&&n.window){let _=a,b=f.promise,T=n.window.document.startViewTransition(async()=>{g(()=>i(_)),await b});T.finished.finally(()=>{c(void 0),p(void 0),l(void 0),u({isTransitioning:!1})}),p(T)}},[g,a,f,n.window]),h.useEffect(()=>{f&&a&&o.location.key===a.location.key&&f.resolve()},[f,d,o.location,a]),h.useEffect(()=>{!s.isTransitioning&&w&&(l(w.state),u({isTransitioning:!0,flushSync:!1,currentLocation:w.currentLocation,nextLocation:w.nextLocation}),m(void 0))},[s.isTransitioning,w]),h.useEffect(()=>{},[]);let E=h.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:_=>n.navigate(_),push:(_,b,T)=>n.navigate(_,{state:b,preventScrollReset:T==null?void 0:T.preventScrollReset}),replace:(_,b,T)=>n.navigate(_,{replace:!0,state:b,preventScrollReset:T==null?void 0:T.preventScrollReset})}),[n]),S=n.basename||"/",$=h.useMemo(()=>({router:n,navigator:E,static:!1,basename:S}),[n,E,S]);return h.createElement(h.Fragment,null,h.createElement(Ki.Provider,{value:$},h.createElement(zf.Provider,{value:o},h.createElement(gx.Provider,{value:C.current},h.createElement(mx.Provider,{value:s},h.createElement(ax,{basename:S,location:o.location,navigationType:o.historyAction,navigator:E,future:{v7_relativeSplatPath:n.future.v7_relativeSplatPath}},o.initialized||n.future.v7_partialHydration?h.createElement(_x,{routes:n.routes,future:n.future,state:o}):t))))),null)}function _x(e){let{routes:t,future:n,state:r}=e;return G3(t,void 0,r,n)}const Sx=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",bx=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Vf=h.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:i,replace:a,state:l,target:s,to:u,preventScrollReset:f,unstable_viewTransition:c}=t,d=sx(t,fx),{basename:p}=h.useContext(rr),w,m=!1;if(typeof u=="string"&&bx.test(u)&&(w=u,Sx))try{let x=new URL(window.location.href),E=u.startsWith("//")?new URL(x.protocol+u):new URL(u),S=Tr(E.pathname,p);E.origin===x.origin&&S!=null?u=S+E.search+E.hash:m=!0}catch{}let C=W3(u,{relative:o}),v=Rx(u,{replace:a,state:l,target:s,preventScrollReset:f,relative:o,unstable_viewTransition:c});function g(x){r&&r(x),x.defaultPrevented||v(x)}return h.createElement("a",_o({},d,{href:w||C,onClick:m||i?r:g,ref:n,target:s}))});function $x(e){let{getKey:t,storageKey:n}=e;return Nx({getKey:t,storageKey:n}),null}var ru;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(ru||(ru={}));var ou;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(ou||(ou={}));function Tx(e){let t=h.useContext(Ki);return t||re(!1),t}function kx(e){let t=h.useContext(zf);return t||re(!1),t}function Rx(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:a,unstable_viewTransition:l}=t===void 0?{}:t,s=Uf(),u=Re(),f=F0(e,{relative:a});return h.useCallback(c=>{if(ux(c,n)){c.preventDefault();let d=r!==void 0?r:_r(u)===_r(f);s(e,{replace:d,state:o,preventScrollReset:i,relative:a,unstable_viewTransition:l})}},[u,s,f,r,o,n,e,i,a,l])}const ep="react-router-scroll-positions";let wa={};function Nx(e){let{getKey:t,storageKey:n}=e===void 0?{}:e,{router:r}=Tx(ru.UseScrollRestoration),{restoreScrollPosition:o,preventScrollReset:i}=kx(ou.UseScrollRestoration),{basename:a}=h.useContext(rr),l=Re(),s=rx(),u=nx();h.useEffect(()=>(window.history.scrollRestoration="manual",()=>{window.history.scrollRestoration="auto"}),[]),Px(h.useCallback(()=>{if(u.state==="idle"){let f=(t?t(l,s):null)||l.key;wa[f]=window.scrollY}try{sessionStorage.setItem(n||ep,JSON.stringify(wa))}catch{}window.history.scrollRestoration="auto"},[n,t,u.state,l,s])),typeof document<"u"&&(h.useLayoutEffect(()=>{try{let f=sessionStorage.getItem(n||ep);f&&(wa=JSON.parse(f))}catch{}},[n]),h.useLayoutEffect(()=>{let f=t&&a!=="/"?(d,p)=>t(_o({},d,{pathname:Tr(d.pathname,a)||d.pathname}),p):t,c=r==null?void 0:r.enableScrollRestoration(wa,()=>window.scrollY,f);return()=>c&&c()},[r,a,t]),h.useLayoutEffect(()=>{if(o!==!1){if(typeof o=="number"){window.scrollTo(0,o);return}if(l.hash){let f=document.getElementById(decodeURIComponent(l.hash.slice(1)));if(f){f.scrollIntoView();return}}i!==!0&&window.scrollTo(0,0)}},[l,o,i]))}function Px(e,t){let{capture:n}={};h.useEffect(()=>{let r=n!=null?{capture:n}:void 0;return window.addEventListener("pagehide",e,r),()=>{window.removeEventListener("pagehide",e,r)}},[e,n])}const Ax="modulepreload",Lx=function(e){return"/polkadot-api-docs/"+e},tp={},Fe=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const i=document.querySelector("meta[property=csp-nonce]"),a=(i==null?void 0:i.nonce)||(i==null?void 0:i.getAttribute("nonce"));o=Promise.all(n.map(l=>{if(l=Lx(l),l in tp)return;tp[l]=!0;const s=l.endsWith(".css"),u=s?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${u}`))return;const f=document.createElement("link");if(f.rel=s?"stylesheet":Ax,s||(f.as="script",f.crossOrigin=""),f.href=l,a&&f.setAttribute("nonce",a),document.head.appendChild(f),s)return new Promise((c,d)=>{f.addEventListener("load",c),f.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${l}`)))})}))}return o.then(()=>t()).catch(i=>{const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=i,window.dispatchEvent(a),!a.defaultPrevented)throw i})};function iu(e){return Array.isArray(e)?e.map(iu):typeof e=="object"&&e!==null?Object.keys(e).reduce((t,n)=>(t[n]=iu(e[n]),t),{}):typeof e=="string"&&e.includes("_vocs-fn_")?new Function(`return ${e.slice(9)}`)():e}const U0=iu({blogDir:"./pages/blog",rootDir:"docs",title:"Polkadot-API",titleTemplate:"%s – Polkadot-API",description:"Typescript API to interact with polkadot chains",basePath:"/polkadot-api-docs",topNav:[{text:"Guide",link:"/getting-started",id:18,items:[]}],sidebar:[{text:"Getting Started",link:"/getting-started"},{text:"Top-level client",items:[{text:"PolkadotClient",link:"/client"},{text:"Typed API",link:"/typed",items:[{text:"Storage queries",link:"/typed/queries"}]}]},{text:"Providers",link:"/providers"},{text:"Codegen",link:"/codegen"},{text:"Types",link:"/types"},{text:"Signers",link:"/signers"},{text:"Recipes",items:[{text:"Prepare for runtime upgrade",link:"/recipes/upgrade"}]},{text:"Examples",items:[{text:"Teleport across chains",link:"https://github.com/polkadot-api/react-teleport-example"}]}],socials:[{icon:"github",link:"https://github.com/polkadot-api/polkadot-api",label:"GitHub",type:"github"}],markdown:{code:{themes:{dark:"github-dark-dimmed",light:"github-light"}}},theme:{},vite:{base:"/polkadot-api-docs"}}),H0=h.createContext(U0);function V0(){return typeof window<"u",U0}function Ix({children:e,config:t}){const[n,r]=h.useState(()=>t||V0());return h.useEffect(()=>{},[]),h.useEffect(()=>{typeof window<"u"},[n]),y.jsx(H0.Provider,{value:n,children:e})}function Ke(){return h.useContext(H0)}const Wf=[{lazy:()=>Fe(()=>import("./client-B2lrzsRU.js"),[]),path:"/client",type:"mdx",filePath:"client.md",lastUpdatedAt:1715102844e3},{lazy:()=>Fe(()=>import("./client-B2lrzsRU.js"),[]),path:"/client.html",type:"mdx",filePath:"client.md",lastUpdatedAt:1715102844e3},{lazy:()=>Fe(()=>import("./codegen-kzmgkay2.js"),[]),path:"/codegen",type:"mdx",filePath:"codegen.md",lastUpdatedAt:1715102844e3},{lazy:()=>Fe(()=>import("./codegen-kzmgkay2.js"),[]),path:"/codegen.html",type:"mdx",filePath:"codegen.md",lastUpdatedAt:1715102844e3},{lazy:()=>Fe(()=>import("./getting-started-DN6TOoEE.js"),[]),path:"/getting-started",type:"mdx",filePath:"getting-started.mdx",lastUpdatedAt:1715102844e3},{lazy:()=>Fe(()=>import("./getting-started-DN6TOoEE.js"),[]),path:"/getting-started.html",type:"mdx",filePath:"getting-started.mdx",lastUpdatedAt:1715102844e3},{lazy:()=>Fe(()=>import("./index-Dsl-p13_.js"),[]),path:"/",type:"mdx",filePath:"index.mdx",lastUpdatedAt:1715102844e3},{lazy:()=>Fe(()=>import("./providers-BcfMQjbQ.js"),[]),path:"/providers",type:"mdx",filePath:"providers.md",lastUpdatedAt:1715102844e3},{lazy:()=>Fe(()=>import("./providers-BcfMQjbQ.js"),[]),path:"/providers.html",type:"mdx",filePath:"providers.md",lastUpdatedAt:1715102844e3},{lazy:()=>Fe(()=>import("./signers-E6G7fR99.js"),[]),path:"/signers",type:"mdx",filePath:"signers.md",lastUpdatedAt:1715102844e3},{lazy:()=>Fe(()=>import("./signers-E6G7fR99.js"),[]),path:"/signers.html",type:"mdx",filePath:"signers.md",lastUpdatedAt:1715102844e3},{lazy:()=>Fe(()=>import("./typed-CRK0wUYT.js"),[]),path:"/typed",type:"mdx",filePath:"typed.md",lastUpdatedAt:1715102844e3},{lazy:()=>Fe(()=>import("./typed-CRK0wUYT.js"),[]),path:"/typed.html",type:"mdx",filePath:"typed.md",lastUpdatedAt:1715102844e3},{lazy:()=>Fe(()=>import("./types-69imWyvM.js"),[]),path:"/types",type:"mdx",filePath:"types.mdx",lastUpdatedAt:1715102844e3},{lazy:()=>Fe(()=>import("./types-69imWyvM.js"),[]),path:"/types.html",type:"mdx",filePath:"types.mdx",lastUpdatedAt:1715102844e3},{lazy:()=>Fe(()=>import("./upgrade-plzHv7vu.js"),[]),path:"/recipes/upgrade",type:"mdx",filePath:"recipes/upgrade.md",lastUpdatedAt:1715102844e3},{lazy:()=>Fe(()=>import("./upgrade-plzHv7vu.js"),[]),path:"/recipes/upgrade.html",type:"mdx",filePath:"recipes/upgrade.md",lastUpdatedAt:1715102844e3},{lazy:()=>Fe(()=>import("./queries-d9rDH77x.js"),[]),path:"/typed/queries",type:"mdx",filePath:"typed/queries.md",lastUpdatedAt:1715102844e3},{lazy:()=>Fe(()=>import("./queries-d9rDH77x.js"),[]),path:"/typed/queries.html",type:"mdx",filePath:"typed/queries.md",lastUpdatedAt:1715102844e3}];var Os={horizontalPadding:"var(--vocs-content_horizontalPadding)",verticalPadding:"var(--vocs-content_verticalPadding)",width:"var(--vocs-content_width)"},Ox={default:"system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif",mono:'ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace'},Mx={default:"var(--vocs-fontFamily_default)",mono:"var(--vocs-fontFamily_mono)"},np={white:"var(--vocs-color_white)",black:"var(--vocs-color_black)",background:"var(--vocs-color_background)",background2:"var(--vocs-color_background2)",background3:"var(--vocs-color_background3)",background4:"var(--vocs-color_background4)",background5:"var(--vocs-color_background5)",backgroundAccent:"var(--vocs-color_backgroundAccent)",backgroundAccentHover:"var(--vocs-color_backgroundAccentHover)",backgroundAccentText:"var(--vocs-color_backgroundAccentText)",backgroundBlueTint:"var(--vocs-color_backgroundBlueTint)",backgroundDark:"var(--vocs-color_backgroundDark)",backgroundGreenTint:"var(--vocs-color_backgroundGreenTint)",backgroundGreenTint2:"var(--vocs-color_backgroundGreenTint2)",backgroundIrisTint:"var(--vocs-color_backgroundIrisTint)",backgroundRedTint:"var(--vocs-color_backgroundRedTint)",backgroundRedTint2:"var(--vocs-color_backgroundRedTint2)",backgroundYellowTint:"var(--vocs-color_backgroundYellowTint)",border:"var(--vocs-color_border)",border2:"var(--vocs-color_border2)",borderAccent:"var(--vocs-color_borderAccent)",borderBlue:"var(--vocs-color_borderBlue)",borderGreen:"var(--vocs-color_borderGreen)",borderIris:"var(--vocs-color_borderIris)",borderRed:"var(--vocs-color_borderRed)",borderYellow:"var(--vocs-color_borderYellow)",heading:"var(--vocs-color_heading)",inverted:"var(--vocs-color_inverted)",shadow:"var(--vocs-color_shadow)",shadow2:"var(--vocs-color_shadow2)",text:"var(--vocs-color_text)",text2:"var(--vocs-color_text2)",text3:"var(--vocs-color_text3)",text4:"var(--vocs-color_text4)",textAccent:"var(--vocs-color_textAccent)",textAccentHover:"var(--vocs-color_textAccentHover)",textBlue:"var(--vocs-color_textBlue)",textBlueHover:"var(--vocs-color_textBlueHover)",textGreen:"var(--vocs-color_textGreen)",textGreenHover:"var(--vocs-color_textGreenHover)",textIris:"var(--vocs-color_textIris)",textIrisHover:"var(--vocs-color_textIrisHover)",textRed:"var(--vocs-color_textRed)",textRedHover:"var(--vocs-color_textRedHover)",textYellow:"var(--vocs-color_textYellow)",textYellowHover:"var(--vocs-color_textYellowHover)",title:"var(--vocs-color_title)"},Ms={0:"var(--vocs-space_0)",1:"var(--vocs-space_1)",2:"var(--vocs-space_2)",3:"var(--vocs-space_3)",4:"var(--vocs-space_4)",6:"var(--vocs-space_6)",8:"var(--vocs-space_8)",12:"var(--vocs-space_12)",14:"var(--vocs-space_14)",16:"var(--vocs-space_16)",18:"var(--vocs-space_18)",20:"var(--vocs-space_20)",22:"var(--vocs-space_22)",24:"var(--vocs-space_24)",28:"var(--vocs-space_28)",32:"var(--vocs-space_32)",36:"var(--vocs-space_36)",40:"var(--vocs-space_40)",44:"var(--vocs-space_44)",48:"var(--vocs-space_48)",56:"var(--vocs-space_56)",64:"var(--vocs-space_64)",72:"var(--vocs-space_72)",80:"var(--vocs-space_80)"};function W0(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t"".concat(l,":").concat(this[l])).join(";")},writable:!1}),n}var jx="var(--vocs_ExternalLink_iconUrl)",Fx="vocs_ExternalLink";const zx=h.forwardRef(({className:e,children:t,hideExternalIcon:n,href:r,...o},i)=>{const{basePath:a}=Ke(),l=a;return y.jsx("a",{ref:i,className:I(e,n||typeof t!="string"?void 0:Fx),href:r,target:"_blank",rel:"noopener noreferrer",style:Yt({[jx]:`url(${l}/.vocs/icons/arrow-diagonal.svg)`}),...o,children:t})});var rp="vocs_Link_accent_underlined",op="vocs_Link",ip="vocs_Link_styleless",au=new Map,xa=new WeakMap,ap=0,Bx=void 0;function Ux(e){return e?(xa.has(e)||(ap+=1,xa.set(e,ap.toString())),xa.get(e)):"0"}function Hx(e){return Object.keys(e).sort().filter(t=>e[t]!==void 0).map(t=>`${t}_${t==="root"?Ux(e.root):e[t]}`).toString()}function Vx(e){const t=Hx(e);let n=au.get(t);if(!n){const r=new Map;let o;const i=new IntersectionObserver(a=>{a.forEach(l=>{var s;const u=l.isIntersecting&&o.some(f=>l.intersectionRatio>=f);e.trackVisibility&&typeof l.isVisible>"u"&&(l.isVisible=u),(s=r.get(l.target))==null||s.forEach(f=>{f(u,l)})})},e);o=i.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),n={id:t,observer:i,elements:r},au.set(t,n)}return n}function Wx(e,t,n={},r=Bx){if(typeof window.IntersectionObserver>"u"&&r!==void 0){const s=e.getBoundingClientRect();return t(r,{isIntersecting:r,target:e,intersectionRatio:typeof n.threshold=="number"?n.threshold:0,time:0,boundingClientRect:s,intersectionRect:s,rootBounds:s}),()=>{}}const{id:o,observer:i,elements:a}=Vx(n),l=a.get(e)||[];return a.has(e)||a.set(e,l),l.push(t),i.observe(e),function(){l.splice(l.indexOf(t),1),l.length===0&&(a.delete(e),i.unobserve(e)),a.size===0&&(i.disconnect(),au.delete(o))}}function K0({threshold:e,delay:t,trackVisibility:n,rootMargin:r,root:o,triggerOnce:i,skip:a,initialInView:l,fallbackInView:s,onChange:u}={}){var f;const[c,d]=h.useState(null),p=h.useRef(),[w,m]=h.useState({inView:!!l,entry:void 0});p.current=u,h.useEffect(()=>{if(a||!c)return;let x;return x=Wx(c,(E,S)=>{m({inView:E,entry:S}),p.current&&p.current(E,S),S.isIntersecting&&i&&x&&(x(),x=void 0)},{root:o,rootMargin:r,threshold:e,trackVisibility:n,delay:t},s),()=>{x&&x()}},[Array.isArray(e)?e.toString():e,c,o,r,i,a,n,s,t]);const C=(f=w.entry)==null?void 0:f.target,v=h.useRef();!c&&C&&!i&&!a&&v.current!==C&&(v.current=C,m({inView:!!l,entry:void 0}));const g=[d,w.inView,w.entry];return g.ref=g[0],g.inView=g[1],g.entry=g[2],g}function Kx(...e){return t=>{Yx(t,...e)}}function Yx(e,...t){t.forEach(n=>{typeof n=="function"?n(e):n!=null&&(n.current=e)})}const Gn=h.forwardRef((e,t)=>{const n=()=>{var i;return(i=Wf.find(a=>a.path===e.to))==null?void 0:i.lazy()},{ref:r,inView:o}=K0();return h.useEffect(()=>{o&&n()},[o,n]),y.jsx(Vf,{ref:Kx(t,r),...e})}),rn=h.forwardRef((e,t)=>{const{href:n,variant:r="accent underlined"}=e,{pathname:o}=Re();if(n!=null&&n.match(/^(www|https?)/))return y.jsx(zx,{...e,ref:t,className:I(e.className,op,r==="accent underlined"&&rp,r==="styleless"&&ip),hideExternalIcon:e.hideExternalIcon});const[i,a]=(n||"").split("#"),l=`${i||o}${a?`#${a}`:""}`;return y.jsx(Gn,{...e,ref:t,className:I(e.className,op,r==="accent underlined"&&rp,r==="styleless"&&ip),to:l})});var Gx="vocs_NotFound_divider",Qx="vocs_NotFound",Zx="vocs_H1",Y0="vocs_Heading",G0="vocs_Heading_slugTarget";function Ao({level:e,...t}){const n=`h${e}`;return y.jsxs(n,{...t,id:void 0,className:I(t.className,Y0),children:[y.jsx("div",{id:t.id,className:G0}),t.children]})}function Q0(e){return y.jsx(Ao,{...e,className:I(e.className,Zx),level:1})}var Xx="vocs_Paragraph";function Z0(e){return y.jsx("p",{...e,className:I(e.className,Xx)})}function Jx(){return y.jsxs("div",{className:Qx,children:[y.jsx(Q0,{children:"Page Not Found"}),y.jsx("div",{style:{height:Ms[24]}}),y.jsx("hr",{className:Gx}),y.jsx("div",{style:{height:Ms[24]}}),y.jsx(Z0,{children:"The page you were looking for could not be found."}),y.jsx("div",{style:{height:Ms[8]}}),y.jsx(rn,{href:"/",children:"Go to Home Page"})]})}var qx="var(--vocs_Banner_bannerBackgroundColor)",e5="var(--vocs_Banner_bannerHeight)",t5="var(--vocs_Banner_bannerTextColor)",n5="vocs_Banner_closeButton",r5="vocs_Banner_content",o5="vocs_Banner_inner",i5="vocs_Banner";const a5=Object.getPrototypeOf(l5).constructor;async function l5(e,t){return new a5(String(e))(t)}function s5(e,t){return new Function(String(e))(t)}function Rr(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}var c5=["color"],u5=h.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Rr(e,c5);return h.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),h.createElement("path",{d:"M6.85355 3.14645C7.04882 3.34171 7.04882 3.65829 6.85355 3.85355L3.70711 7H12.5C12.7761 7 13 7.22386 13 7.5C13 7.77614 12.7761 8 12.5 8H3.70711L6.85355 11.1464C7.04882 11.3417 7.04882 11.6583 6.85355 11.8536C6.65829 12.0488 6.34171 12.0488 6.14645 11.8536L2.14645 7.85355C1.95118 7.65829 1.95118 7.34171 2.14645 7.14645L6.14645 3.14645C6.34171 2.95118 6.65829 2.95118 6.85355 3.14645Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),f5=["color"],d5=h.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Rr(e,f5);return h.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),h.createElement("path",{d:"M6.1584 3.13508C6.35985 2.94621 6.67627 2.95642 6.86514 3.15788L10.6151 7.15788C10.7954 7.3502 10.7954 7.64949 10.6151 7.84182L6.86514 11.8418C6.67627 12.0433 6.35985 12.0535 6.1584 11.8646C5.95694 11.6757 5.94673 11.3593 6.1356 11.1579L9.565 7.49985L6.1356 3.84182C5.94673 3.64036 5.95694 3.32394 6.1584 3.13508Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),h5=["color"],p5=h.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Rr(e,h5);return h.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),h.createElement("path",{d:"M12.8536 2.85355C13.0488 2.65829 13.0488 2.34171 12.8536 2.14645C12.6583 1.95118 12.3417 1.95118 12.1464 2.14645L7.5 6.79289L2.85355 2.14645C2.65829 1.95118 2.34171 1.95118 2.14645 2.14645C1.95118 2.34171 1.95118 2.65829 2.14645 2.85355L6.79289 7.5L2.14645 12.1464C1.95118 12.3417 1.95118 12.6583 2.14645 12.8536C2.34171 13.0488 2.65829 13.0488 2.85355 12.8536L7.5 8.20711L12.1464 12.8536C12.3417 13.0488 12.6583 13.0488 12.8536 12.8536C13.0488 12.6583 13.0488 12.3417 12.8536 12.1464L8.20711 7.5L12.8536 2.85355Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),v5=["color"],m5=h.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Rr(e,v5);return h.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),h.createElement("path",{d:"M3.5 2C3.22386 2 3 2.22386 3 2.5V12.5C3 12.7761 3.22386 13 3.5 13H11.5C11.7761 13 12 12.7761 12 12.5V6H8.5C8.22386 6 8 5.77614 8 5.5V2H3.5ZM9 2.70711L11.2929 5H9V2.70711ZM2 2.5C2 1.67157 2.67157 1 3.5 1H8.5C8.63261 1 8.75979 1.05268 8.85355 1.14645L12.8536 5.14645C12.9473 5.24021 13 5.36739 13 5.5V12.5C13 13.3284 12.3284 14 11.5 14H3.5C2.67157 14 2 13.3284 2 12.5V2.5Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),g5=["color"],y5=h.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Rr(e,g5);return h.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),h.createElement("path",{d:"M1.5 5.25C1.91421 5.25 2.25 4.91421 2.25 4.5C2.25 4.08579 1.91421 3.75 1.5 3.75C1.08579 3.75 0.75 4.08579 0.75 4.5C0.75 4.91421 1.08579 5.25 1.5 5.25ZM4 4.5C4 4.22386 4.22386 4 4.5 4H13.5C13.7761 4 14 4.22386 14 4.5C14 4.77614 13.7761 5 13.5 5H4.5C4.22386 5 4 4.77614 4 4.5ZM4.5 7C4.22386 7 4 7.22386 4 7.5C4 7.77614 4.22386 8 4.5 8H13.5C13.7761 8 14 7.77614 14 7.5C14 7.22386 13.7761 7 13.5 7H4.5ZM4.5 10C4.22386 10 4 10.2239 4 10.5C4 10.7761 4.22386 11 4.5 11H13.5C13.7761 11 14 10.7761 14 10.5C14 10.2239 13.7761 10 13.5 10H4.5ZM2.25 7.5C2.25 7.91421 1.91421 8.25 1.5 8.25C1.08579 8.25 0.75 7.91421 0.75 7.5C0.75 7.08579 1.08579 6.75 1.5 6.75C1.91421 6.75 2.25 7.08579 2.25 7.5ZM1.5 11.25C1.91421 11.25 2.25 10.9142 2.25 10.5C2.25 10.0858 1.91421 9.75 1.5 9.75C1.08579 9.75 0.75 10.0858 0.75 10.5C0.75 10.9142 1.08579 11.25 1.5 11.25Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),w5=["color"],Kf=h.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Rr(e,w5);return h.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),h.createElement("path",{d:"M10 6.5C10 8.433 8.433 10 6.5 10C4.567 10 3 8.433 3 6.5C3 4.567 4.567 3 6.5 3C8.433 3 10 4.567 10 6.5ZM9.30884 10.0159C8.53901 10.6318 7.56251 11 6.5 11C4.01472 11 2 8.98528 2 6.5C2 4.01472 4.01472 2 6.5 2C8.98528 2 11 4.01472 11 6.5C11 7.56251 10.6318 8.53901 10.0159 9.30884L12.8536 12.1464C13.0488 12.3417 13.0488 12.6583 12.8536 12.8536C12.6583 13.0488 12.3417 13.0488 12.1464 12.8536L9.30884 10.0159Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),x5=["color"],C5=h.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Rr(e,x5);return h.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),h.createElement("path",{d:"M12.1464 1.14645C12.3417 0.951184 12.6583 0.951184 12.8535 1.14645L14.8535 3.14645C15.0488 3.34171 15.0488 3.65829 14.8535 3.85355L10.9109 7.79618C10.8349 7.87218 10.7471 7.93543 10.651 7.9835L6.72359 9.94721C6.53109 10.0435 6.29861 10.0057 6.14643 9.85355C5.99425 9.70137 5.95652 9.46889 6.05277 9.27639L8.01648 5.34897C8.06455 5.25283 8.1278 5.16507 8.2038 5.08907L12.1464 1.14645ZM12.5 2.20711L8.91091 5.79618L7.87266 7.87267L8.12731 8.12732L10.2038 7.08907L13.7929 3.5L12.5 2.20711ZM9.99998 2L8.99998 3H4.9C4.47171 3 4.18056 3.00039 3.95552 3.01877C3.73631 3.03668 3.62421 3.06915 3.54601 3.10899C3.35785 3.20487 3.20487 3.35785 3.10899 3.54601C3.06915 3.62421 3.03669 3.73631 3.01878 3.95552C3.00039 4.18056 3 4.47171 3 4.9V11.1C3 11.5283 3.00039 11.8194 3.01878 12.0445C3.03669 12.2637 3.06915 12.3758 3.10899 12.454C3.20487 12.6422 3.35785 12.7951 3.54601 12.891C3.62421 12.9309 3.73631 12.9633 3.95552 12.9812C4.18056 12.9996 4.47171 13 4.9 13H11.1C11.5283 13 11.8194 12.9996 12.0445 12.9812C12.2637 12.9633 12.3758 12.9309 12.454 12.891C12.6422 12.7951 12.7951 12.6422 12.891 12.454C12.9309 12.3758 12.9633 12.2637 12.9812 12.0445C12.9996 11.8194 13 11.5283 13 11.1V6.99998L14 5.99998V11.1V11.1207C14 11.5231 14 11.8553 13.9779 12.1259C13.9549 12.407 13.9057 12.6653 13.782 12.908C13.5903 13.2843 13.2843 13.5903 12.908 13.782C12.6653 13.9057 12.407 13.9549 12.1259 13.9779C11.8553 14 11.5231 14 11.1207 14H11.1H4.9H4.87934C4.47686 14 4.14468 14 3.87409 13.9779C3.59304 13.9549 3.33469 13.9057 3.09202 13.782C2.7157 13.5903 2.40973 13.2843 2.21799 12.908C2.09434 12.6653 2.04506 12.407 2.0221 12.1259C1.99999 11.8553 1.99999 11.5231 2 11.1207V11.1206V11.1V4.9V4.87935V4.87932V4.87931C1.99999 4.47685 1.99999 4.14468 2.0221 3.87409C2.04506 3.59304 2.09434 3.33469 2.21799 3.09202C2.40973 2.71569 2.7157 2.40973 3.09202 2.21799C3.33469 2.09434 3.59304 2.04506 3.87409 2.0221C4.14468 1.99999 4.47685 1.99999 4.87932 2H4.87935H4.9H9.99998Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))});function Cl(e,t){if(typeof e!="object"||e===null)return e;if(Array.isArray(e))return e.map((r,o)=>Cl(r,o));const n=e.props.children?{...e.props,children:Cl(e.props.children)}:e.props;return Z.createElement(e.type,{...n,key:t})}function E5({hide:e}){const{banner:t}=Ke(),n=h.useMemo(()=>{const r=(t==null?void 0:t.content)??"";if(!r)return null;if(typeof r!="string")return()=>Cl(r);const{default:o}=s5(r,{...Ky,Fragment:h.Fragment});return o},[t]);return n?y.jsx("div",{className:I(i5),style:Yt({[qx]:t==null?void 0:t.backgroundColor,[t5]:t==null?void 0:t.textColor}),children:y.jsxs("div",{className:I(o5),children:[y.jsx("div",{className:I(r5),children:y.jsx(n,{})}),(t==null?void 0:t.dismissable)!=="false"&&y.jsx("button",{className:I(n5),onClick:e,type:"button",children:y.jsx(p5,{width:14,height:14})})]})}):null}var _5="vocs_Content";function X0({children:e,className:t}){return y.jsx("article",{className:I(t,_5),children:e})}function J0({items:e,pathname:t}){const n=t.replace(/\.html$/,""),r=[];for(const o of e)(o.link&&n.startsWith(o.match||o.link)||o.items&&J0({items:o.items,pathname:t}).length>0)&&r.push(o.id);return r}function Yi({items:e,pathname:t}){return h.useMemo(()=>J0({items:e,pathname:t}),[e,t])}function Nr(){const e=h.useContext(q0);if(!e)throw new Error("`usePageData` must be used within `PageDataContext.Provider`.");return e}const q0=h.createContext(void 0);function Yl(){const{pathname:e}=Re(),t=Ke(),{sidebar:n}=t;if(!n)return{items:[]};if(Array.isArray(n))return{items:n};const r=h.useMemo(()=>{const o=Object.keys(n).filter(i=>e.startsWith(i));return o[o.length-1]},[n,e]);return r?Array.isArray(n[r])?{key:r,items:n[r]}:{...n[r],key:r}:{items:[]}}function Pr(){const e=Yl(),{frontmatter:t}=Nr(),{layout:n,showLogo:r,showOutline:o,showSidebar:i,showTopNav:a}=t||{},l=n??"docs";return{layout:l,get showLogo(){return typeof r<"u"?r:!0},get showOutline(){return typeof o<"u"?o:l==="docs"},get showSidebar(){return e.items.length===0?!1:typeof i<"u"?i:!(l==="minimal"||l==="landing")},get showTopNav(){return typeof a<"u"?a:!0}}}function S5(){const[e,t]=h.useState(()=>{if(!(typeof window>"u")){if(localStorage.getItem("vocs.theme")){const n=localStorage.getItem("vocs.theme");if(n)return n}return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}});return h.useEffect(()=>{e&&localStorage.setItem("vocs.theme",e),e==="dark"?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark")},[e]),{theme:e,toggle(){t(n=>n==="light"?"dark":"light")}}}var b5="vocs_utils_visibleDark",$5="vocs_utils_visibleLight",eg="vocs_utils_visuallyHidden";function Y(){return Y=Object.assign?Object.assign.bind():function(e){for(var t=1;te.forEach(n=>T5(n,t))}function Ue(...e){return h.useCallback(tg(...e),e)}function En(e,t=[]){let n=[];function r(i,a){const l=h.createContext(a),s=n.length;n=[...n,a];function u(c){const{scope:d,children:p,...w}=c,m=(d==null?void 0:d[e][s])||l,C=h.useMemo(()=>w,Object.values(w));return h.createElement(m.Provider,{value:C},p)}function f(c,d){const p=(d==null?void 0:d[e][s])||l,w=h.useContext(p);if(w)return w;if(a!==void 0)return a;throw new Error(`\`${c}\` must be used within \`${i}\``)}return u.displayName=i+"Provider",[u,f]}const o=()=>{const i=n.map(a=>h.createContext(a));return function(l){const s=(l==null?void 0:l[e])||i;return h.useMemo(()=>({[`__scope${e}`]:{...l,[e]:s}}),[l,s])}};return o.scopeName=e,[r,k5(o,...t)]}function k5(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const a=r.reduce((l,{useScope:s,scopeName:u})=>{const c=s(i)[`__scope${u}`];return{...l,...c}},{});return h.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}const yn=globalThis!=null&&globalThis.document?h.useLayoutEffect:()=>{},R5=Uu.useId||(()=>{});let N5=0;function on(e){const[t,n]=h.useState(R5());return yn(()=>{n(r=>r??String(N5++))},[e]),t?`radix-${t}`:""}function lt(e){const t=h.useRef(e);return h.useEffect(()=>{t.current=e}),h.useMemo(()=>(...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}function or({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=P5({defaultProp:t,onChange:n}),i=e!==void 0,a=i?e:r,l=lt(n),s=h.useCallback(u=>{if(i){const c=typeof u=="function"?u(e):u;c!==e&&l(c)}else o(u)},[i,e,o,l]);return[a,s]}function P5({defaultProp:e,onChange:t}){const n=h.useState(e),[r]=n,o=h.useRef(r),i=lt(t);return h.useEffect(()=>{o.current!==r&&(i(r),o.current=r)},[r,o,i]),n}const So=h.forwardRef((e,t)=>{const{children:n,...r}=e,o=h.Children.toArray(n),i=o.find(L5);if(i){const a=i.props.children,l=o.map(s=>s===i?h.Children.count(a)>1?h.Children.only(null):h.isValidElement(a)?a.props.children:null:s);return h.createElement(lu,Y({},r,{ref:t}),h.isValidElement(a)?h.cloneElement(a,void 0,l):null)}return h.createElement(lu,Y({},r,{ref:t}),n)});So.displayName="Slot";const lu=h.forwardRef((e,t)=>{const{children:n,...r}=e;return h.isValidElement(n)?h.cloneElement(n,{...I5(r,n.props),ref:t?tg(t,n.ref):n.ref}):h.Children.count(n)>1?h.Children.only(null):null});lu.displayName="SlotClone";const A5=({children:e})=>h.createElement(h.Fragment,null,e);function L5(e){return h.isValidElement(e)&&e.type===A5}function I5(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...l)=>{i(...l),o(...l)}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}const O5=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],fe=O5.reduce((e,t)=>{const n=h.forwardRef((r,o)=>{const{asChild:i,...a}=r,l=i?So:t;return h.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),h.createElement(l,Y({},a,{ref:o}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function su(e,t){e&&No.flushSync(()=>e.dispatchEvent(t))}function M5(e,t=globalThis==null?void 0:globalThis.document){const n=lt(e);h.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r),()=>t.removeEventListener("keydown",r)},[n,t])}const cu="dismissableLayer.update",D5="dismissableLayer.pointerDownOutside",j5="dismissableLayer.focusOutside";let lp;const F5=h.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Yf=h.forwardRef((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:l,onDismiss:s,...u}=e,f=h.useContext(F5),[c,d]=h.useState(null),p=(n=c==null?void 0:c.ownerDocument)!==null&&n!==void 0?n:globalThis==null?void 0:globalThis.document,[,w]=h.useState({}),m=Ue(t,b=>d(b)),C=Array.from(f.layers),[v]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),g=C.indexOf(v),x=c?C.indexOf(c):-1,E=f.layersWithOutsidePointerEventsDisabled.size>0,S=x>=g,$=z5(b=>{const T=b.target,P=[...f.branches].some(M=>M.contains(T));!S||P||(i==null||i(b),l==null||l(b),b.defaultPrevented||s==null||s())},p),_=B5(b=>{const T=b.target;[...f.branches].some(M=>M.contains(T))||(a==null||a(b),l==null||l(b),b.defaultPrevented||s==null||s())},p);return M5(b=>{x===f.layers.size-1&&(o==null||o(b),!b.defaultPrevented&&s&&(b.preventDefault(),s()))},p),h.useEffect(()=>{if(c)return r&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(lp=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(c)),f.layers.add(c),sp(),()=>{r&&f.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=lp)}},[c,p,r,f]),h.useEffect(()=>()=>{c&&(f.layers.delete(c),f.layersWithOutsidePointerEventsDisabled.delete(c),sp())},[c,f]),h.useEffect(()=>{const b=()=>w({});return document.addEventListener(cu,b),()=>document.removeEventListener(cu,b)},[]),h.createElement(fe.div,Y({},u,{ref:m,style:{pointerEvents:E?S?"auto":"none":void 0,...e.style},onFocusCapture:le(e.onFocusCapture,_.onFocusCapture),onBlurCapture:le(e.onBlurCapture,_.onBlurCapture),onPointerDownCapture:le(e.onPointerDownCapture,$.onPointerDownCapture)}))});function z5(e,t=globalThis==null?void 0:globalThis.document){const n=lt(e),r=h.useRef(!1),o=h.useRef(()=>{});return h.useEffect(()=>{const i=l=>{if(l.target&&!r.current){let u=function(){ng(D5,n,s,{discrete:!0})};const s={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=u,t.addEventListener("click",o.current,{once:!0})):u()}else t.removeEventListener("click",o.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function B5(e,t=globalThis==null?void 0:globalThis.document){const n=lt(e),r=h.useRef(!1);return h.useEffect(()=>{const o=i=>{i.target&&!r.current&&ng(j5,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function sp(){const e=new CustomEvent(cu);document.dispatchEvent(e)}function ng(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?su(o,i):o.dispatchEvent(i)}const Ds="focusScope.autoFocusOnMount",js="focusScope.autoFocusOnUnmount",cp={bubbles:!1,cancelable:!0},rg=h.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...a}=e,[l,s]=h.useState(null),u=lt(o),f=lt(i),c=h.useRef(null),d=Ue(t,m=>s(m)),p=h.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;h.useEffect(()=>{if(r){let m=function(x){if(p.paused||!l)return;const E=x.target;l.contains(E)?c.current=E:Pn(c.current,{select:!0})},C=function(x){if(p.paused||!l)return;const E=x.relatedTarget;E!==null&&(l.contains(E)||Pn(c.current,{select:!0}))},v=function(x){if(document.activeElement===document.body)for(const S of x)S.removedNodes.length>0&&Pn(l)};document.addEventListener("focusin",m),document.addEventListener("focusout",C);const g=new MutationObserver(v);return l&&g.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",C),g.disconnect()}}},[r,l,p.paused]),h.useEffect(()=>{if(l){fp.add(p);const m=document.activeElement;if(!l.contains(m)){const v=new CustomEvent(Ds,cp);l.addEventListener(Ds,u),l.dispatchEvent(v),v.defaultPrevented||(U5(Y5(og(l)),{select:!0}),document.activeElement===m&&Pn(l))}return()=>{l.removeEventListener(Ds,u),setTimeout(()=>{const v=new CustomEvent(js,cp);l.addEventListener(js,f),l.dispatchEvent(v),v.defaultPrevented||Pn(m??document.body,{select:!0}),l.removeEventListener(js,f),fp.remove(p)},0)}}},[l,u,f,p]);const w=h.useCallback(m=>{if(!n&&!r||p.paused)return;const C=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,v=document.activeElement;if(C&&v){const g=m.currentTarget,[x,E]=H5(g);x&&E?!m.shiftKey&&v===E?(m.preventDefault(),n&&Pn(x,{select:!0})):m.shiftKey&&v===x&&(m.preventDefault(),n&&Pn(E,{select:!0})):v===g&&m.preventDefault()}},[n,r,p.paused]);return h.createElement(fe.div,Y({tabIndex:-1},a,{ref:d,onKeyDown:w}))});function U5(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Pn(r,{select:t}),document.activeElement!==n)return}function H5(e){const t=og(e),n=up(t,e),r=up(t.reverse(),e);return[n,r]}function og(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function up(e,t){for(const n of e)if(!V5(n,{upTo:t}))return n}function V5(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function W5(e){return e instanceof HTMLInputElement&&"select"in e}function Pn(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&W5(e)&&t&&e.select()}}const fp=K5();function K5(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=dp(e,t),e.unshift(t)},remove(t){var n;e=dp(e,t),(n=e[0])===null||n===void 0||n.resume()}}}function dp(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Y5(e){return e.filter(t=>t.tagName!=="A")}const ig=h.forwardRef((e,t)=>{var n;const{container:r=globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,...o}=e;return r?b0.createPortal(h.createElement(fe.div,Y({},o,{ref:t})),r):null});function G5(e,t){return h.useReducer((n,r)=>{const o=t[n][r];return o??n},e)}const _n=e=>{const{present:t,children:n}=e,r=Q5(t),o=typeof n=="function"?n({present:r.isPresent}):h.Children.only(n),i=Ue(r.ref,o.ref);return typeof n=="function"||r.isPresent?h.cloneElement(o,{ref:i}):null};_n.displayName="Presence";function Q5(e){const[t,n]=h.useState(),r=h.useRef({}),o=h.useRef(e),i=h.useRef("none"),a=e?"mounted":"unmounted",[l,s]=G5(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return h.useEffect(()=>{const u=Ca(r.current);i.current=l==="mounted"?u:"none"},[l]),yn(()=>{const u=r.current,f=o.current;if(f!==e){const d=i.current,p=Ca(u);e?s("MOUNT"):p==="none"||(u==null?void 0:u.display)==="none"?s("UNMOUNT"):s(f&&d!==p?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,s]),yn(()=>{if(t){const u=c=>{const p=Ca(r.current).includes(c.animationName);c.target===t&&p&&No.flushSync(()=>s("ANIMATION_END"))},f=c=>{c.target===t&&(i.current=Ca(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}else s("ANIMATION_END")},[t,s]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:h.useCallback(u=>{u&&(r.current=getComputedStyle(u)),n(u)},[])}}function Ca(e){return(e==null?void 0:e.animationName)||"none"}let Fs=0;function ag(){h.useEffect(()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=n[0])!==null&&e!==void 0?e:hp()),document.body.insertAdjacentElement("beforeend",(t=n[1])!==null&&t!==void 0?t:hp()),Fs++,()=>{Fs===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),Fs--}},[])}function hp(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var en=function(){return en=Object.assign||function(t){for(var n,r=1,o=arguments.length;r"u")return d4;var t=h4(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},v4=ug(),uo="data-scroll-locked",m4=function(e,t,n,r){var o=e.left,i=e.top,a=e.right,l=e.gap;return n===void 0&&(n="margin"),` .`.concat(X5,` { overflow: hidden `).concat(r,`; padding-right: `).concat(l,"px ").concat(r,`; @@ -105,13 +105,13 @@ Error generating stack: `+i.message+` `)},vp=function(){var e=parseInt(document.body.getAttribute(uo)||"0",10);return isFinite(e)?e:0},g4=function(){h.useEffect(function(){return document.body.setAttribute(uo,(vp()+1).toString()),function(){var e=vp()-1;e<=0?document.body.removeAttribute(uo):document.body.setAttribute(uo,e.toString())}},[])},y4=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;g4();var i=h.useMemo(function(){return p4(o)},[o]);return h.createElement(v4,{styles:m4(i,!t,o,n?"":"!important")})},uu=!1;if(typeof window<"u")try{var Ea=Object.defineProperty({},"passive",{get:function(){return uu=!0,!0}});window.addEventListener("test",Ea,Ea),window.removeEventListener("test",Ea,Ea)}catch{uu=!1}var zr=uu?{passive:!1}:!1,w4=function(e){return e.tagName==="TEXTAREA"},fg=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!w4(e)&&n[t]==="visible")},x4=function(e){return fg(e,"overflowY")},C4=function(e){return fg(e,"overflowX")},mp=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=dg(e,n);if(r){var o=hg(e,n),i=o[1],a=o[2];if(i>a)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},E4=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},_4=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},dg=function(e,t){return e==="v"?x4(t):C4(t)},hg=function(e,t){return e==="v"?E4(t):_4(t)},S4=function(e,t){return e==="h"&&t==="rtl"?-1:1},b4=function(e,t,n,r,o){var i=S4(e,window.getComputedStyle(t).direction),a=i*r,l=n.target,s=t.contains(l),u=!1,f=a>0,c=0,d=0;do{var p=hg(e,l),w=p[0],m=p[1],C=p[2],v=m-C-i*w;(w||v)&&dg(e,l)&&(c+=v,d+=w),l=l.parentNode}while(!s&&l!==document.body||s&&(t.contains(l)||t===l));return(f&&(c===0||!o)||!f&&(d===0||!o))&&(u=!0),u},_a=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},gp=function(e){return[e.deltaX,e.deltaY]},yp=function(e){return e&&"current"in e?e.current:e},$4=function(e,t){return e[0]===t[0]&&e[1]===t[1]},T4=function(e){return` .block-interactivity-`.concat(e,` {pointer-events: none;} .allow-interactivity-`).concat(e,` {pointer-events: all;} -`)},k4=0,Br=[];function R4(e){var t=h.useRef([]),n=h.useRef([0,0]),r=h.useRef(),o=h.useState(k4++)[0],i=h.useState(function(){return ug()})[0],a=h.useRef(e);h.useEffect(function(){a.current=e},[e]),h.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var m=Z5([e.lockRef.current],(e.shards||[]).map(yp),!0).filter(Boolean);return m.forEach(function(C){return C.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),m.forEach(function(C){return C.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var l=h.useCallback(function(m,C){if("touches"in m&&m.touches.length===2)return!a.current.allowPinchZoom;var v=_a(m),g=n.current,x="deltaX"in m?m.deltaX:g[0]-v[0],E="deltaY"in m?m.deltaY:g[1]-v[1],S,$=m.target,_=Math.abs(x)>Math.abs(E)?"h":"v";if("touches"in m&&_==="h"&&$.type==="range")return!1;var b=mp(_,$);if(!b)return!0;if(b?S=_:(S=_==="v"?"h":"v",b=mp(_,$)),!b)return!1;if(!r.current&&"changedTouches"in m&&(x||E)&&(r.current=S),!S)return!0;var T=r.current||S;return b4(T,C,m,T==="h"?x:E,!0)},[]),s=h.useCallback(function(m){var C=m;if(!(!Br.length||Br[Br.length-1]!==i)){var v="deltaY"in C?gp(C):_a(C),g=t.current.filter(function(S){return S.name===C.type&&S.target===C.target&&$4(S.delta,v)})[0];if(g&&g.should){C.cancelable&&C.preventDefault();return}if(!g){var x=(a.current.shards||[]).map(yp).filter(Boolean).filter(function(S){return S.contains(C.target)}),E=x.length>0?l(C,x[0]):!a.current.noIsolation;E&&C.cancelable&&C.preventDefault()}}},[]),u=h.useCallback(function(m,C,v,g){var x={name:m,delta:C,target:v,should:g};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(E){return E!==x})},1)},[]),f=h.useCallback(function(m){n.current=_a(m),r.current=void 0},[]),c=h.useCallback(function(m){u(m.type,gp(m),m.target,l(m,e.lockRef.current))},[]),d=h.useCallback(function(m){u(m.type,_a(m),m.target,l(m,e.lockRef.current))},[]);h.useEffect(function(){return Br.push(i),e.setCallbacks({onScrollCapture:c,onWheelCapture:c,onTouchMoveCapture:d}),document.addEventListener("wheel",s,zr),document.addEventListener("touchmove",s,zr),document.addEventListener("touchstart",f,zr),function(){Br=Br.filter(function(m){return m!==i}),document.removeEventListener("wheel",s,zr),document.removeEventListener("touchmove",s,zr),document.removeEventListener("touchstart",f,zr)}},[]);var p=e.removeScrollBar,w=e.inert;return h.createElement(h.Fragment,null,w?h.createElement(i,{styles:T4(o)}):null,p?h.createElement(y4,{gapMode:"margin"}):null)}const N4=i4(cg,R4);var Gf=h.forwardRef(function(e,t){return h.createElement(Gl,en({},e,{ref:t,sideCar:N4}))});Gf.classNames=Gl.classNames;var P4=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Ur=new WeakMap,Sa=new WeakMap,ba={},Hs=0,pg=function(e){return e&&(e.host||pg(e.parentNode))},A4=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=pg(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},L4=function(e,t,n,r){var o=A4(t,Array.isArray(e)?e:[e]);ba[n]||(ba[n]=new WeakMap);var i=ba[n],a=[],l=new Set,s=new Set(o),u=function(c){!c||l.has(c)||(l.add(c),u(c.parentNode))};o.forEach(u);var f=function(c){!c||s.has(c)||Array.prototype.forEach.call(c.children,function(d){if(l.has(d))f(d);else try{var p=d.getAttribute(r),w=p!==null&&p!=="false",m=(Ur.get(d)||0)+1,C=(i.get(d)||0)+1;Ur.set(d,m),i.set(d,C),a.push(d),m===1&&w&&Sa.set(d,!0),C===1&&d.setAttribute(n,"true"),w||d.setAttribute(r,"true")}catch(v){console.error("aria-hidden: cannot operate on ",d,v)}})};return f(t),l.clear(),Hs++,function(){a.forEach(function(c){var d=Ur.get(c)-1,p=i.get(c)-1;Ur.set(c,d),i.set(c,p),d||(Sa.has(c)||c.removeAttribute(r),Sa.delete(c)),p||c.removeAttribute(n)}),Hs--,Hs||(Ur=new WeakMap,Ur=new WeakMap,Sa=new WeakMap,ba={})}},vg=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=P4(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),L4(r,o,n,"aria-hidden")):function(){return null}};const mg="Dialog",[gg,l$]=En(mg),[I4,Sn]=gg(mg),O4=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:a=!0}=e,l=h.useRef(null),s=h.useRef(null),[u=!1,f]=or({prop:r,defaultProp:o,onChange:i});return h.createElement(I4,{scope:t,triggerRef:l,contentRef:s,contentId:on(),titleId:on(),descriptionId:on(),open:u,onOpenChange:f,onOpenToggle:h.useCallback(()=>f(c=>!c),[f]),modal:a},n)},M4="DialogTrigger",D4=h.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Sn(M4,n),i=Be(t,o.triggerRef);return h.createElement(fe.button,Y({type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Qf(o.open)},r,{ref:i,onClick:le(e.onClick,o.onOpenToggle)}))}),yg="DialogPortal",[j4,wg]=gg(yg,{forceMount:void 0}),F4=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=Sn(yg,t);return h.createElement(j4,{scope:t,forceMount:n},h.Children.map(r,a=>h.createElement(_n,{present:n||i.open},h.createElement(ig,{asChild:!0,container:o},a))))},fu="DialogOverlay",z4=h.forwardRef((e,t)=>{const n=wg(fu,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=Sn(fu,e.__scopeDialog);return i.modal?h.createElement(_n,{present:r||i.open},h.createElement(B4,Y({},o,{ref:t}))):null}),B4=h.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Sn(fu,n);return h.createElement(Gf,{as:So,allowPinchZoom:!0,shards:[o.contentRef]},h.createElement(fe.div,Y({"data-state":Qf(o.open)},r,{ref:t,style:{pointerEvents:"auto",...r.style}})))}),Mi="DialogContent",U4=h.forwardRef((e,t)=>{const n=wg(Mi,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=Sn(Mi,e.__scopeDialog);return h.createElement(_n,{present:r||i.open},i.modal?h.createElement(H4,Y({},o,{ref:t})):h.createElement(V4,Y({},o,{ref:t})))}),H4=h.forwardRef((e,t)=>{const n=Sn(Mi,e.__scopeDialog),r=h.useRef(null),o=Be(t,n.contentRef,r);return h.useEffect(()=>{const i=r.current;if(i)return vg(i)},[]),h.createElement(xg,Y({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:le(e.onCloseAutoFocus,i=>{var a;i.preventDefault(),(a=n.triggerRef.current)===null||a===void 0||a.focus()}),onPointerDownOutside:le(e.onPointerDownOutside,i=>{const a=i.detail.originalEvent,l=a.button===0&&a.ctrlKey===!0;(a.button===2||l)&&i.preventDefault()}),onFocusOutside:le(e.onFocusOutside,i=>i.preventDefault())}))}),V4=h.forwardRef((e,t)=>{const n=Sn(Mi,e.__scopeDialog),r=h.useRef(!1),o=h.useRef(!1);return h.createElement(xg,Y({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var a;if((a=e.onCloseAutoFocus)===null||a===void 0||a.call(e,i),!i.defaultPrevented){var l;r.current||(l=n.triggerRef.current)===null||l===void 0||l.focus(),i.preventDefault()}r.current=!1,o.current=!1},onInteractOutside:i=>{var a,l;(a=e.onInteractOutside)===null||a===void 0||a.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=i.target;((l=n.triggerRef.current)===null||l===void 0?void 0:l.contains(s))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}}))}),xg=h.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...a}=e,l=Sn(Mi,n),s=h.useRef(null),u=Be(t,s);return ag(),h.createElement(h.Fragment,null,h.createElement(rg,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i},h.createElement(Yf,Y({role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":Qf(l.open)},a,{ref:u,onDismiss:()=>l.onOpenChange(!1)}))),!1)}),W4="DialogTitle",K4=h.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Sn(W4,n);return h.createElement(fe.h2,Y({id:o.titleId},r,{ref:t}))});function Qf(e){return e?"open":"closed"}const Cg=O4,Eg=D4,Y4=F4,G4=z4,Q4=U4,Z4=K4;var he=function(){return he=Object.assign||function(t){for(var n,r=1,o=arguments.length;r0&&i[i.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Le(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(l){a={error:l}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return i}var q4="ENTRIES",_g="KEYS",Sg="VALUES",Ze="",Vs=function(){function e(t,n){var r=t._tree,o=Array.from(r.keys());this.set=t,this._type=n,this._path=o.length>0?[{node:r,keys:o}]:[]}return e.prototype.next=function(){var t=this.dive();return this.backtrack(),t},e.prototype.dive=function(){if(this._path.length===0)return{done:!0,value:void 0};var t=Hr(this._path),n=t.node,r=t.keys;if(Hr(r)===Ze)return{done:!1,value:this.result()};var o=n.get(Hr(r));return this._path.push({node:o,keys:Array.from(o.keys())}),this.dive()},e.prototype.backtrack=function(){if(this._path.length!==0){var t=Hr(this._path).keys;t.pop(),!(t.length>0)&&(this._path.pop(),this.backtrack())}},e.prototype.key=function(){return this.set._prefix+this._path.map(function(t){var n=t.keys;return Hr(n)}).filter(function(t){return t!==Ze}).join("")},e.prototype.value=function(){return Hr(this._path).node.get(Ze)},e.prototype.result=function(){switch(this._type){case Sg:return this.value();case _g:return this.key();default:return[this.key(),this.value()]}},e.prototype[Symbol.iterator]=function(){return this},e}(),Hr=function(e){return e[e.length-1]},e8=function(e,t,n){var r=new Map;if(t===void 0)return r;for(var o=t.length+1,i=o+n,a=new Uint8Array(i*o).fill(n+1),l=0;ln)continue e}bg(e.get(p),t,n,r,o,m,a,l+p)}}}catch(j){s={error:j}}finally{try{d&&!d.done&&(u=c.return)&&u.call(c)}finally{if(s)throw s.error}}},Ws=function(){function e(t,n){t===void 0&&(t=new Map),n===void 0&&(n=""),this._size=void 0,this._tree=t,this._prefix=n}return e.prototype.atPrefix=function(t){var n,r;if(!t.startsWith(this._prefix))throw new Error("Mismatched prefix");var o=Le(El(this._tree,t.slice(this._prefix.length)),2),i=o[0],a=o[1];if(i===void 0){var l=Le(Zf(a),2),s=l[0],u=l[1];try{for(var f=oe(s.keys()),c=f.next();!c.done;c=f.next()){var d=c.value;if(d!==Ze&&d.startsWith(u)){var p=new Map;return p.set(d.slice(u.length),s.get(d)),new e(p,t)}}}catch(w){n={error:w}}finally{try{c&&!c.done&&(r=f.return)&&r.call(f)}finally{if(n)throw n.error}}}return new e(i,t)},e.prototype.clear=function(){this._size=void 0,this._tree.clear()},e.prototype.delete=function(t){return this._size=void 0,t8(this._tree,t)},e.prototype.entries=function(){return new Vs(this,q4)},e.prototype.forEach=function(t){var n,r;try{for(var o=oe(this),i=o.next();!i.done;i=o.next()){var a=Le(i.value,2),l=a[0],s=a[1];t(l,s,this)}}catch(u){n={error:u}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}},e.prototype.fuzzyGet=function(t,n){return e8(this._tree,t,n)},e.prototype.get=function(t){var n=du(this._tree,t);return n!==void 0?n.get(Ze):void 0},e.prototype.has=function(t){var n=du(this._tree,t);return n!==void 0&&n.has(Ze)},e.prototype.keys=function(){return new Vs(this,_g)},e.prototype.set=function(t,n){if(typeof t!="string")throw new Error("key must be a string");this._size=void 0;var r=Ks(this._tree,t);return r.set(Ze,n),this},Object.defineProperty(e.prototype,"size",{get:function(){if(this._size)return this._size;this._size=0;for(var t=this.entries();!t.next().done;)this._size+=1;return this._size},enumerable:!1,configurable:!0}),e.prototype.update=function(t,n){if(typeof t!="string")throw new Error("key must be a string");this._size=void 0;var r=Ks(this._tree,t);return r.set(Ze,n(r.get(Ze))),this},e.prototype.fetch=function(t,n){if(typeof t!="string")throw new Error("key must be a string");this._size=void 0;var r=Ks(this._tree,t),o=r.get(Ze);return o===void 0&&r.set(Ze,o=n()),o},e.prototype.values=function(){return new Vs(this,Sg)},e.prototype[Symbol.iterator]=function(){return this.entries()},e.from=function(t){var n,r,o=new e;try{for(var i=oe(t),a=i.next();!a.done;a=i.next()){var l=Le(a.value,2),s=l[0],u=l[1];o.set(s,u)}}catch(f){n={error:f}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return o},e.fromObject=function(t){return e.from(Object.entries(t))},e}(),El=function(e,t,n){var r,o;if(n===void 0&&(n=[]),t.length===0||e==null)return[e,n];try{for(var i=oe(e.keys()),a=i.next();!a.done;a=i.next()){var l=a.value;if(l!==Ze&&t.startsWith(l))return n.push([e,l]),El(e.get(l),t.slice(l.length),n)}}catch(s){r={error:s}}finally{try{a&&!a.done&&(o=i.return)&&o.call(i)}finally{if(r)throw r.error}}return n.push([e,t]),El(void 0,"",n)},du=function(e,t){var n,r;if(t.length===0||e==null)return e;try{for(var o=oe(e.keys()),i=o.next();!i.done;i=o.next()){var a=i.value;if(a!==Ze&&t.startsWith(a))return du(e.get(a),t.slice(a.length))}}catch(l){n={error:l}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}},Ks=function(e,t){var n,r,o=t.length;e:for(var i=0;e&&i0)throw new Error("Expected documents to be present. Omit the argument to remove all documents.");this._index=new Ws,this._documentCount=0,this._documentIds=new Map,this._idToShortId=new Map,this._fieldLength=new Map,this._avgFieldLength=[],this._storedFields=new Map,this._nextId=0}},e.prototype.discard=function(t){var n=this,r=this._idToShortId.get(t);if(r==null)throw new Error("MiniSearch: cannot discard document with ID ".concat(t,": it is not in the index"));this._idToShortId.delete(t),this._documentIds.delete(r),this._storedFields.delete(r),(this._fieldLength.get(r)||[]).forEach(function(o,i){n.removeFieldLength(r,i,n._documentCount,o)}),this._fieldLength.delete(r),this._documentCount-=1,this._dirtCount+=1,this.maybeAutoVacuum()},e.prototype.maybeAutoVacuum=function(){if(this._options.autoVacuum!==!1){var t=this._options.autoVacuum,n=t.minDirtFactor,r=t.minDirtCount,o=t.batchSize,i=t.batchWait;this.conditionalVacuum({batchSize:o,batchWait:i},{minDirtCount:r,minDirtFactor:n})}},e.prototype.discardAll=function(t){var n,r,o=this._options.autoVacuum;try{this._options.autoVacuum=!1;try{for(var i=oe(t),a=i.next();!a.done;a=i.next()){var l=a.value;this.discard(l)}}catch(s){n={error:s}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}}finally{this._options.autoVacuum=o}this.maybeAutoVacuum()},e.prototype.replace=function(t){var n=this._options,r=n.idField,o=n.extractField,i=o(t,r);this.discard(i),this.add(t)},e.prototype.vacuum=function(t){return t===void 0&&(t={}),this.conditionalVacuum(t)},e.prototype.conditionalVacuum=function(t,n){var r=this;return this._currentVacuum?(this._enqueuedVacuumConditions=this._enqueuedVacuumConditions&&n,this._enqueuedVacuum!=null?this._enqueuedVacuum:(this._enqueuedVacuum=this._currentVacuum.then(function(){var o=r._enqueuedVacuumConditions;return r._enqueuedVacuumConditions=pu,r.performVacuuming(t,o)}),this._enqueuedVacuum)):this.vacuumConditionsMet(n)===!1?Promise.resolve():(this._currentVacuum=this.performVacuuming(t),this._currentVacuum)},e.prototype.performVacuuming=function(t,n){return X4(this,void 0,void 0,function(){var r,o,i,a,l,s,u,f,c,d,p,w,m,C,v,g,x,E,S,$,_,b,T,P,M;return J4(this,function(O){switch(O.label){case 0:if(r=this._dirtCount,!this.vacuumConditionsMet(n))return[3,10];o=t.batchSize||hu.batchSize,i=t.batchWait||hu.batchWait,a=1,O.label=1;case 1:O.trys.push([1,7,8,9]),l=oe(this._index),s=l.next(),O.label=2;case 2:if(s.done)return[3,6];u=Le(s.value,2),f=u[0],c=u[1];try{for(d=(b=void 0,oe(c)),p=d.next();!p.done;p=d.next()){w=Le(p.value,2),m=w[0],C=w[1];try{for(v=(P=void 0,oe(C)),g=v.next();!g.done;g=v.next())x=Le(g.value,1),E=x[0],!this._documentIds.has(E)&&(C.size<=1?c.delete(m):C.delete(E))}catch(j){P={error:j}}finally{try{g&&!g.done&&(M=v.return)&&M.call(v)}finally{if(P)throw P.error}}}}catch(j){b={error:j}}finally{try{p&&!p.done&&(T=d.return)&&T.call(d)}finally{if(b)throw b.error}}return this._index.get(f).size===0&&this._index.delete(f),a%o!==0?[3,4]:[4,new Promise(function(j){return setTimeout(j,i)})];case 3:O.sent(),O.label=4;case 4:a+=1,O.label=5;case 5:return s=l.next(),[3,2];case 6:return[3,9];case 7:return S=O.sent(),$={error:S},[3,9];case 8:try{s&&!s.done&&(_=l.return)&&_.call(l)}finally{if($)throw $.error}return[7];case 9:this._dirtCount-=r,O.label=10;case 10:return[4,null];case 11:return O.sent(),this._currentVacuum=this._enqueuedVacuum,this._enqueuedVacuum=null,[2]}})})},e.prototype.vacuumConditionsMet=function(t){if(t==null)return!0;var n=t.minDirtCount,r=t.minDirtFactor;return n=n||Qs.minDirtCount,r=r||Qs.minDirtFactor,this.dirtCount>=n&&this.dirtFactor>=r},Object.defineProperty(e.prototype,"isVacuuming",{get:function(){return this._currentVacuum!=null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dirtCount",{get:function(){return this._dirtCount},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dirtFactor",{get:function(){return this._dirtCount/(1+this._documentCount+this._dirtCount)},enumerable:!1,configurable:!0}),e.prototype.has=function(t){return this._idToShortId.has(t)},e.prototype.getStoredFields=function(t){var n=this._idToShortId.get(t);if(n!=null)return this._storedFields.get(n)},e.prototype.search=function(t,n){var r,o;n===void 0&&(n={});var i=this.executeQuery(t,n),a=[];try{for(var l=oe(i),s=l.next();!s.done;s=l.next()){var u=Le(s.value,2),f=u[0],c=u[1],d=c.score,p=c.terms,w=c.match,m=p.length||1,C={id:this._documentIds.get(f),score:d*m,terms:Object.keys(w),queryTerms:p,match:w};Object.assign(C,this._storedFields.get(f)),(n.filter==null||n.filter(C))&&a.push(C)}}catch(v){r={error:v}}finally{try{s&&!s.done&&(o=l.return)&&o.call(l)}finally{if(r)throw r.error}}return t===e.wildcard&&n.boostDocument==null&&this._options.searchOptions.boostDocument==null||a.sort(Cp),a},e.prototype.autoSuggest=function(t,n){var r,o,i,a;n===void 0&&(n={}),n=he(he({},this._options.autoSuggestOptions),n);var l=new Map;try{for(var s=oe(this.search(t,n)),u=s.next();!u.done;u=s.next()){var f=u.value,c=f.score,d=f.terms,p=d.join(" "),w=l.get(p);w!=null?(w.score+=c,w.count+=1):l.set(p,{score:c,terms:d,count:1})}}catch(S){r={error:S}}finally{try{u&&!u.done&&(o=s.return)&&o.call(s)}finally{if(r)throw r.error}}var m=[];try{for(var C=oe(l),v=C.next();!v.done;v=C.next()){var g=Le(v.value,2),w=g[0],x=g[1],c=x.score,d=x.terms,E=x.count;m.push({suggestion:w,terms:d,score:c/E})}}catch(S){i={error:S}}finally{try{v&&!v.done&&(a=C.return)&&a.call(C)}finally{if(i)throw i.error}}return m.sort(Cp),m},Object.defineProperty(e.prototype,"documentCount",{get:function(){return this._documentCount},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"termCount",{get:function(){return this._index.size},enumerable:!1,configurable:!0}),e.loadJSON=function(t,n){if(n==null)throw new Error("MiniSearch: loadJSON should be given the same options used when serializing the index");return this.loadJS(JSON.parse(t),n)},e.getDefault=function(t){if(Gs.hasOwnProperty(t))return Ys(Gs,t);throw new Error('MiniSearch: unknown option "'.concat(t,'"'))},e.loadJS=function(t,n){var r,o,i,a,l,s,u=t.index,f=t.documentCount,c=t.nextId,d=t.documentIds,p=t.fieldIds,w=t.fieldLength,m=t.averageFieldLength,C=t.storedFields,v=t.dirtCount,g=t.serializationVersion;if(g!==1&&g!==2)throw new Error("MiniSearch: cannot deserialize an index created with an incompatible version");var x=new e(n);x._documentCount=f,x._nextId=c,x._documentIds=$a(d),x._idToShortId=new Map,x._fieldIds=p,x._fieldLength=$a(w),x._avgFieldLength=m,x._storedFields=$a(C),x._dirtCount=v||0,x._index=new Ws;try{for(var E=oe(x._documentIds),S=E.next();!S.done;S=E.next()){var $=Le(S.value,2),_=$[0],b=$[1];x._idToShortId.set(b,_)}}catch(B){r={error:B}}finally{try{S&&!S.done&&(o=E.return)&&o.call(E)}finally{if(r)throw r.error}}try{for(var T=oe(u),P=T.next();!P.done;P=T.next()){var M=Le(P.value,2),O=M[0],j=M[1],R=new Map;try{for(var F=(l=void 0,oe(Object.keys(j))),W=F.next();!W.done;W=F.next()){var H=W.value,A=j[H];g===1&&(A=A.ds),R.set(parseInt(H,10),$a(A))}}catch(B){l={error:B}}finally{try{W&&!W.done&&(s=F.return)&&s.call(F)}finally{if(l)throw l.error}}x._index.set(O,R)}}catch(B){i={error:B}}finally{try{P&&!P.done&&(a=T.return)&&a.call(T)}finally{if(i)throw i.error}}return x},e.prototype.executeQuery=function(t,n){var r=this;if(n===void 0&&(n={}),t===e.wildcard)return this.executeWildcardQuery(n);if(typeof t!="string"){var o=he(he(he({},n),t),{queries:void 0}),i=t.queries.map(function(C){return r.executeQuery(C,o)});return this.combineResults(i,o.combineWith)}var a=this._options,l=a.tokenize,s=a.processTerm,u=a.searchOptions,f=he(he({tokenize:l,processTerm:s},u),n),c=f.tokenize,d=f.processTerm,p=c(t).flatMap(function(C){return d(C)}).filter(function(C){return!!C}),w=p.map(l8(f)),m=w.map(function(C){return r.executeQuerySpec(C,f)});return this.combineResults(m,f.combineWith)},e.prototype.executeQuerySpec=function(t,n){var r,o,i,a,l=he(he({},this._options.searchOptions),n),s=(l.fields||this._options.fields).reduce(function(H,A){var B;return he(he({},H),(B={},B[A]=Ys(l.boost,A)||1,B))},{}),u=l.boostDocument,f=l.weights,c=l.maxFuzzy,d=l.bm25,p=he(he({},wp.weights),f),w=p.fuzzy,m=p.prefix,C=this._index.get(t.term),v=this.termResults(t.term,t.term,1,C,s,u,d),g,x;if(t.prefix&&(g=this._index.atPrefix(t.term)),t.fuzzy){var E=t.fuzzy===!0?.2:t.fuzzy,S=E<1?Math.min(c,Math.round(t.term.length*E)):E;S&&(x=this._index.fuzzyGet(t.term,S))}if(g)try{for(var $=oe(g),_=$.next();!_.done;_=$.next()){var b=Le(_.value,2),T=b[0],P=b[1],M=T.length-t.term.length;if(M){x==null||x.delete(T);var O=m*T.length/(T.length+.3*M);this.termResults(t.term,T,O,P,s,u,d,v)}}}catch(H){r={error:H}}finally{try{_&&!_.done&&(o=$.return)&&o.call($)}finally{if(r)throw r.error}}if(x)try{for(var j=oe(x.keys()),R=j.next();!R.done;R=j.next()){var T=R.value,F=Le(x.get(T),2),W=F[0],M=F[1];if(M){var O=w*T.length/(T.length+M);this.termResults(t.term,T,O,W,s,u,d,v)}}}catch(H){i={error:H}}finally{try{R&&!R.done&&(a=j.return)&&a.call(j)}finally{if(i)throw i.error}}return v},e.prototype.executeWildcardQuery=function(t){var n,r,o=new Map,i=he(he({},this._options.searchOptions),t);try{for(var a=oe(this._documentIds),l=a.next();!l.done;l=a.next()){var s=Le(l.value,2),u=s[0],f=s[1],c=i.boostDocument?i.boostDocument(f,"",this._storedFields.get(u)):1;o.set(u,{score:c,terms:[],match:{}})}}catch(d){n={error:d}}finally{try{l&&!l.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return o},e.prototype.combineResults=function(t,n){if(n===void 0&&(n=Xf),t.length===0)return new Map;var r=n.toLowerCase();return t.reduce(o8[r])||new Map},e.prototype.toJSON=function(){var t,n,r,o,i=[];try{for(var a=oe(this._index),l=a.next();!l.done;l=a.next()){var s=Le(l.value,2),u=s[0],f=s[1],c={};try{for(var d=(r=void 0,oe(f)),p=d.next();!p.done;p=d.next()){var w=Le(p.value,2),m=w[0],C=w[1];c[m]=Object.fromEntries(C)}}catch(v){r={error:v}}finally{try{p&&!p.done&&(o=d.return)&&o.call(d)}finally{if(r)throw r.error}}i.push([u,c])}}catch(v){t={error:v}}finally{try{l&&!l.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return{documentCount:this._documentCount,nextId:this._nextId,documentIds:Object.fromEntries(this._documentIds),fieldIds:this._fieldIds,fieldLength:Object.fromEntries(this._fieldLength),averageFieldLength:this._avgFieldLength,storedFields:Object.fromEntries(this._storedFields),dirtCount:this._dirtCount,index:i,serializationVersion:2}},e.prototype.termResults=function(t,n,r,o,i,a,l,s){var u,f,c,d,p;if(s===void 0&&(s=new Map),o==null)return s;try{for(var w=oe(Object.keys(i)),m=w.next();!m.done;m=w.next()){var C=m.value,v=i[C],g=this._fieldIds[C],x=o.get(g);if(x!=null){var E=x.size,S=this._avgFieldLength[g];try{for(var $=(c=void 0,oe(x.keys())),_=$.next();!_.done;_=$.next()){var b=_.value;if(!this._documentIds.has(b)){this.removeTerm(g,b,n),E-=1;continue}var T=a?a(this._documentIds.get(b),n,this._storedFields.get(b)):1;if(T){var P=x.get(b),M=this._fieldLength.get(b)[g],O=a8(P,E,this._documentCount,M,S,l),j=r*v*T*O,R=s.get(b);if(R){R.score+=j,c8(R.terms,t);var F=Ys(R.match,n);F?F.push(C):R.match[n]=[C]}else s.set(b,{score:j,terms:[t],match:(p={},p[n]=[C],p)})}}}catch(W){c={error:W}}finally{try{_&&!_.done&&(d=$.return)&&d.call($)}finally{if(c)throw c.error}}}}}catch(W){u={error:W}}finally{try{m&&!m.done&&(f=w.return)&&f.call(w)}finally{if(u)throw u.error}}return s},e.prototype.addTerm=function(t,n,r){var o=this._index.fetch(r,Ep),i=o.get(t);if(i==null)i=new Map,i.set(n,1),o.set(t,i);else{var a=i.get(n);i.set(n,(a||0)+1)}},e.prototype.removeTerm=function(t,n,r){if(!this._index.has(r)){this.warnDocumentChanged(n,t,r);return}var o=this._index.fetch(r,Ep),i=o.get(t);i==null||i.get(n)==null?this.warnDocumentChanged(n,t,r):i.get(n)<=1?i.size<=1?o.delete(t):i.delete(n):i.set(n,i.get(n)-1),this._index.get(r).size===0&&this._index.delete(r)},e.prototype.warnDocumentChanged=function(t,n,r){var o,i;try{for(var a=oe(Object.keys(this._fieldIds)),l=a.next();!l.done;l=a.next()){var s=l.value;if(this._fieldIds[s]===n){this._options.logger("warn","MiniSearch: document with ID ".concat(this._documentIds.get(t),' has changed before removal: term "').concat(r,'" was not present in field "').concat(s,'". Removing a document after it has changed can corrupt the index!'),"version_conflict");return}}}catch(u){o={error:u}}finally{try{l&&!l.done&&(i=a.return)&&i.call(a)}finally{if(o)throw o.error}}},e.prototype.addDocumentId=function(t){var n=this._nextId;return this._idToShortId.set(t,n),this._documentIds.set(n,t),this._documentCount+=1,this._nextId+=1,n},e.prototype.addFields=function(t){for(var n=0;nJSON.stringify(await(await fetch("/polkadot-api-docs/.vocs/search-index-aa5370e2.json")).json());let Zs;function Rg(){const[e,t]=h.useState();return h.useEffect(()=>{(async()=>{Zs||(Zs=f8());const n=await Zs,r=r8.loadJSON(n,{fields:["title","titles","text"],searchOptions:{boost:{title:4,text:2,titles:1},fuzzy:.2,prefix:!0},storeFields:["href","html","isPage","text","title","titles"]});t(r)})()},[]),h.useEffect(()=>{},[]),e}var d8="vocs_DesktopSearch_search",h8="vocs_DesktopSearch_searchCommand";const p8=h.forwardRef((e,t)=>h.createElement(fe.label,Y({},e,{ref:t,onMouseDown:n=>{var r;(r=e.onMouseDown)===null||r===void 0||r.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault()}}))),v8=p8;var Ng={exports:{}};/*!*************************************************** +`)},k4=0,Br=[];function R4(e){var t=h.useRef([]),n=h.useRef([0,0]),r=h.useRef(),o=h.useState(k4++)[0],i=h.useState(function(){return ug()})[0],a=h.useRef(e);h.useEffect(function(){a.current=e},[e]),h.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var m=Z5([e.lockRef.current],(e.shards||[]).map(yp),!0).filter(Boolean);return m.forEach(function(C){return C.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),m.forEach(function(C){return C.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var l=h.useCallback(function(m,C){if("touches"in m&&m.touches.length===2)return!a.current.allowPinchZoom;var v=_a(m),g=n.current,x="deltaX"in m?m.deltaX:g[0]-v[0],E="deltaY"in m?m.deltaY:g[1]-v[1],S,$=m.target,_=Math.abs(x)>Math.abs(E)?"h":"v";if("touches"in m&&_==="h"&&$.type==="range")return!1;var b=mp(_,$);if(!b)return!0;if(b?S=_:(S=_==="v"?"h":"v",b=mp(_,$)),!b)return!1;if(!r.current&&"changedTouches"in m&&(x||E)&&(r.current=S),!S)return!0;var T=r.current||S;return b4(T,C,m,T==="h"?x:E,!0)},[]),s=h.useCallback(function(m){var C=m;if(!(!Br.length||Br[Br.length-1]!==i)){var v="deltaY"in C?gp(C):_a(C),g=t.current.filter(function(S){return S.name===C.type&&S.target===C.target&&$4(S.delta,v)})[0];if(g&&g.should){C.cancelable&&C.preventDefault();return}if(!g){var x=(a.current.shards||[]).map(yp).filter(Boolean).filter(function(S){return S.contains(C.target)}),E=x.length>0?l(C,x[0]):!a.current.noIsolation;E&&C.cancelable&&C.preventDefault()}}},[]),u=h.useCallback(function(m,C,v,g){var x={name:m,delta:C,target:v,should:g};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(E){return E!==x})},1)},[]),f=h.useCallback(function(m){n.current=_a(m),r.current=void 0},[]),c=h.useCallback(function(m){u(m.type,gp(m),m.target,l(m,e.lockRef.current))},[]),d=h.useCallback(function(m){u(m.type,_a(m),m.target,l(m,e.lockRef.current))},[]);h.useEffect(function(){return Br.push(i),e.setCallbacks({onScrollCapture:c,onWheelCapture:c,onTouchMoveCapture:d}),document.addEventListener("wheel",s,zr),document.addEventListener("touchmove",s,zr),document.addEventListener("touchstart",f,zr),function(){Br=Br.filter(function(m){return m!==i}),document.removeEventListener("wheel",s,zr),document.removeEventListener("touchmove",s,zr),document.removeEventListener("touchstart",f,zr)}},[]);var p=e.removeScrollBar,w=e.inert;return h.createElement(h.Fragment,null,w?h.createElement(i,{styles:T4(o)}):null,p?h.createElement(y4,{gapMode:"margin"}):null)}const N4=i4(cg,R4);var Gf=h.forwardRef(function(e,t){return h.createElement(Gl,en({},e,{ref:t,sideCar:N4}))});Gf.classNames=Gl.classNames;var P4=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Ur=new WeakMap,Sa=new WeakMap,ba={},Hs=0,pg=function(e){return e&&(e.host||pg(e.parentNode))},A4=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=pg(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},L4=function(e,t,n,r){var o=A4(t,Array.isArray(e)?e:[e]);ba[n]||(ba[n]=new WeakMap);var i=ba[n],a=[],l=new Set,s=new Set(o),u=function(c){!c||l.has(c)||(l.add(c),u(c.parentNode))};o.forEach(u);var f=function(c){!c||s.has(c)||Array.prototype.forEach.call(c.children,function(d){if(l.has(d))f(d);else try{var p=d.getAttribute(r),w=p!==null&&p!=="false",m=(Ur.get(d)||0)+1,C=(i.get(d)||0)+1;Ur.set(d,m),i.set(d,C),a.push(d),m===1&&w&&Sa.set(d,!0),C===1&&d.setAttribute(n,"true"),w||d.setAttribute(r,"true")}catch(v){console.error("aria-hidden: cannot operate on ",d,v)}})};return f(t),l.clear(),Hs++,function(){a.forEach(function(c){var d=Ur.get(c)-1,p=i.get(c)-1;Ur.set(c,d),i.set(c,p),d||(Sa.has(c)||c.removeAttribute(r),Sa.delete(c)),p||c.removeAttribute(n)}),Hs--,Hs||(Ur=new WeakMap,Ur=new WeakMap,Sa=new WeakMap,ba={})}},vg=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=P4(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),L4(r,o,n,"aria-hidden")):function(){return null}};const mg="Dialog",[gg,l$]=En(mg),[I4,Sn]=gg(mg),O4=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:a=!0}=e,l=h.useRef(null),s=h.useRef(null),[u=!1,f]=or({prop:r,defaultProp:o,onChange:i});return h.createElement(I4,{scope:t,triggerRef:l,contentRef:s,contentId:on(),titleId:on(),descriptionId:on(),open:u,onOpenChange:f,onOpenToggle:h.useCallback(()=>f(c=>!c),[f]),modal:a},n)},M4="DialogTrigger",D4=h.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Sn(M4,n),i=Ue(t,o.triggerRef);return h.createElement(fe.button,Y({type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Qf(o.open)},r,{ref:i,onClick:le(e.onClick,o.onOpenToggle)}))}),yg="DialogPortal",[j4,wg]=gg(yg,{forceMount:void 0}),F4=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=Sn(yg,t);return h.createElement(j4,{scope:t,forceMount:n},h.Children.map(r,a=>h.createElement(_n,{present:n||i.open},h.createElement(ig,{asChild:!0,container:o},a))))},fu="DialogOverlay",z4=h.forwardRef((e,t)=>{const n=wg(fu,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=Sn(fu,e.__scopeDialog);return i.modal?h.createElement(_n,{present:r||i.open},h.createElement(B4,Y({},o,{ref:t}))):null}),B4=h.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Sn(fu,n);return h.createElement(Gf,{as:So,allowPinchZoom:!0,shards:[o.contentRef]},h.createElement(fe.div,Y({"data-state":Qf(o.open)},r,{ref:t,style:{pointerEvents:"auto",...r.style}})))}),Mi="DialogContent",U4=h.forwardRef((e,t)=>{const n=wg(Mi,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=Sn(Mi,e.__scopeDialog);return h.createElement(_n,{present:r||i.open},i.modal?h.createElement(H4,Y({},o,{ref:t})):h.createElement(V4,Y({},o,{ref:t})))}),H4=h.forwardRef((e,t)=>{const n=Sn(Mi,e.__scopeDialog),r=h.useRef(null),o=Ue(t,n.contentRef,r);return h.useEffect(()=>{const i=r.current;if(i)return vg(i)},[]),h.createElement(xg,Y({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:le(e.onCloseAutoFocus,i=>{var a;i.preventDefault(),(a=n.triggerRef.current)===null||a===void 0||a.focus()}),onPointerDownOutside:le(e.onPointerDownOutside,i=>{const a=i.detail.originalEvent,l=a.button===0&&a.ctrlKey===!0;(a.button===2||l)&&i.preventDefault()}),onFocusOutside:le(e.onFocusOutside,i=>i.preventDefault())}))}),V4=h.forwardRef((e,t)=>{const n=Sn(Mi,e.__scopeDialog),r=h.useRef(!1),o=h.useRef(!1);return h.createElement(xg,Y({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var a;if((a=e.onCloseAutoFocus)===null||a===void 0||a.call(e,i),!i.defaultPrevented){var l;r.current||(l=n.triggerRef.current)===null||l===void 0||l.focus(),i.preventDefault()}r.current=!1,o.current=!1},onInteractOutside:i=>{var a,l;(a=e.onInteractOutside)===null||a===void 0||a.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=i.target;((l=n.triggerRef.current)===null||l===void 0?void 0:l.contains(s))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}}))}),xg=h.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...a}=e,l=Sn(Mi,n),s=h.useRef(null),u=Ue(t,s);return ag(),h.createElement(h.Fragment,null,h.createElement(rg,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i},h.createElement(Yf,Y({role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":Qf(l.open)},a,{ref:u,onDismiss:()=>l.onOpenChange(!1)}))),!1)}),W4="DialogTitle",K4=h.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Sn(W4,n);return h.createElement(fe.h2,Y({id:o.titleId},r,{ref:t}))});function Qf(e){return e?"open":"closed"}const Cg=O4,Eg=D4,Y4=F4,G4=z4,Q4=U4,Z4=K4;var he=function(){return he=Object.assign||function(t){for(var n,r=1,o=arguments.length;r0&&i[i.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Le(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(l){a={error:l}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return i}var q4="ENTRIES",_g="KEYS",Sg="VALUES",Xe="",Vs=function(){function e(t,n){var r=t._tree,o=Array.from(r.keys());this.set=t,this._type=n,this._path=o.length>0?[{node:r,keys:o}]:[]}return e.prototype.next=function(){var t=this.dive();return this.backtrack(),t},e.prototype.dive=function(){if(this._path.length===0)return{done:!0,value:void 0};var t=Hr(this._path),n=t.node,r=t.keys;if(Hr(r)===Xe)return{done:!1,value:this.result()};var o=n.get(Hr(r));return this._path.push({node:o,keys:Array.from(o.keys())}),this.dive()},e.prototype.backtrack=function(){if(this._path.length!==0){var t=Hr(this._path).keys;t.pop(),!(t.length>0)&&(this._path.pop(),this.backtrack())}},e.prototype.key=function(){return this.set._prefix+this._path.map(function(t){var n=t.keys;return Hr(n)}).filter(function(t){return t!==Xe}).join("")},e.prototype.value=function(){return Hr(this._path).node.get(Xe)},e.prototype.result=function(){switch(this._type){case Sg:return this.value();case _g:return this.key();default:return[this.key(),this.value()]}},e.prototype[Symbol.iterator]=function(){return this},e}(),Hr=function(e){return e[e.length-1]},e8=function(e,t,n){var r=new Map;if(t===void 0)return r;for(var o=t.length+1,i=o+n,a=new Uint8Array(i*o).fill(n+1),l=0;ln)continue e}bg(e.get(p),t,n,r,o,m,a,l+p)}}}catch(j){s={error:j}}finally{try{d&&!d.done&&(u=c.return)&&u.call(c)}finally{if(s)throw s.error}}},Ws=function(){function e(t,n){t===void 0&&(t=new Map),n===void 0&&(n=""),this._size=void 0,this._tree=t,this._prefix=n}return e.prototype.atPrefix=function(t){var n,r;if(!t.startsWith(this._prefix))throw new Error("Mismatched prefix");var o=Le(El(this._tree,t.slice(this._prefix.length)),2),i=o[0],a=o[1];if(i===void 0){var l=Le(Zf(a),2),s=l[0],u=l[1];try{for(var f=oe(s.keys()),c=f.next();!c.done;c=f.next()){var d=c.value;if(d!==Xe&&d.startsWith(u)){var p=new Map;return p.set(d.slice(u.length),s.get(d)),new e(p,t)}}}catch(w){n={error:w}}finally{try{c&&!c.done&&(r=f.return)&&r.call(f)}finally{if(n)throw n.error}}}return new e(i,t)},e.prototype.clear=function(){this._size=void 0,this._tree.clear()},e.prototype.delete=function(t){return this._size=void 0,t8(this._tree,t)},e.prototype.entries=function(){return new Vs(this,q4)},e.prototype.forEach=function(t){var n,r;try{for(var o=oe(this),i=o.next();!i.done;i=o.next()){var a=Le(i.value,2),l=a[0],s=a[1];t(l,s,this)}}catch(u){n={error:u}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}},e.prototype.fuzzyGet=function(t,n){return e8(this._tree,t,n)},e.prototype.get=function(t){var n=du(this._tree,t);return n!==void 0?n.get(Xe):void 0},e.prototype.has=function(t){var n=du(this._tree,t);return n!==void 0&&n.has(Xe)},e.prototype.keys=function(){return new Vs(this,_g)},e.prototype.set=function(t,n){if(typeof t!="string")throw new Error("key must be a string");this._size=void 0;var r=Ks(this._tree,t);return r.set(Xe,n),this},Object.defineProperty(e.prototype,"size",{get:function(){if(this._size)return this._size;this._size=0;for(var t=this.entries();!t.next().done;)this._size+=1;return this._size},enumerable:!1,configurable:!0}),e.prototype.update=function(t,n){if(typeof t!="string")throw new Error("key must be a string");this._size=void 0;var r=Ks(this._tree,t);return r.set(Xe,n(r.get(Xe))),this},e.prototype.fetch=function(t,n){if(typeof t!="string")throw new Error("key must be a string");this._size=void 0;var r=Ks(this._tree,t),o=r.get(Xe);return o===void 0&&r.set(Xe,o=n()),o},e.prototype.values=function(){return new Vs(this,Sg)},e.prototype[Symbol.iterator]=function(){return this.entries()},e.from=function(t){var n,r,o=new e;try{for(var i=oe(t),a=i.next();!a.done;a=i.next()){var l=Le(a.value,2),s=l[0],u=l[1];o.set(s,u)}}catch(f){n={error:f}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return o},e.fromObject=function(t){return e.from(Object.entries(t))},e}(),El=function(e,t,n){var r,o;if(n===void 0&&(n=[]),t.length===0||e==null)return[e,n];try{for(var i=oe(e.keys()),a=i.next();!a.done;a=i.next()){var l=a.value;if(l!==Xe&&t.startsWith(l))return n.push([e,l]),El(e.get(l),t.slice(l.length),n)}}catch(s){r={error:s}}finally{try{a&&!a.done&&(o=i.return)&&o.call(i)}finally{if(r)throw r.error}}return n.push([e,t]),El(void 0,"",n)},du=function(e,t){var n,r;if(t.length===0||e==null)return e;try{for(var o=oe(e.keys()),i=o.next();!i.done;i=o.next()){var a=i.value;if(a!==Xe&&t.startsWith(a))return du(e.get(a),t.slice(a.length))}}catch(l){n={error:l}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}},Ks=function(e,t){var n,r,o=t.length;e:for(var i=0;e&&i0)throw new Error("Expected documents to be present. Omit the argument to remove all documents.");this._index=new Ws,this._documentCount=0,this._documentIds=new Map,this._idToShortId=new Map,this._fieldLength=new Map,this._avgFieldLength=[],this._storedFields=new Map,this._nextId=0}},e.prototype.discard=function(t){var n=this,r=this._idToShortId.get(t);if(r==null)throw new Error("MiniSearch: cannot discard document with ID ".concat(t,": it is not in the index"));this._idToShortId.delete(t),this._documentIds.delete(r),this._storedFields.delete(r),(this._fieldLength.get(r)||[]).forEach(function(o,i){n.removeFieldLength(r,i,n._documentCount,o)}),this._fieldLength.delete(r),this._documentCount-=1,this._dirtCount+=1,this.maybeAutoVacuum()},e.prototype.maybeAutoVacuum=function(){if(this._options.autoVacuum!==!1){var t=this._options.autoVacuum,n=t.minDirtFactor,r=t.minDirtCount,o=t.batchSize,i=t.batchWait;this.conditionalVacuum({batchSize:o,batchWait:i},{minDirtCount:r,minDirtFactor:n})}},e.prototype.discardAll=function(t){var n,r,o=this._options.autoVacuum;try{this._options.autoVacuum=!1;try{for(var i=oe(t),a=i.next();!a.done;a=i.next()){var l=a.value;this.discard(l)}}catch(s){n={error:s}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}}finally{this._options.autoVacuum=o}this.maybeAutoVacuum()},e.prototype.replace=function(t){var n=this._options,r=n.idField,o=n.extractField,i=o(t,r);this.discard(i),this.add(t)},e.prototype.vacuum=function(t){return t===void 0&&(t={}),this.conditionalVacuum(t)},e.prototype.conditionalVacuum=function(t,n){var r=this;return this._currentVacuum?(this._enqueuedVacuumConditions=this._enqueuedVacuumConditions&&n,this._enqueuedVacuum!=null?this._enqueuedVacuum:(this._enqueuedVacuum=this._currentVacuum.then(function(){var o=r._enqueuedVacuumConditions;return r._enqueuedVacuumConditions=pu,r.performVacuuming(t,o)}),this._enqueuedVacuum)):this.vacuumConditionsMet(n)===!1?Promise.resolve():(this._currentVacuum=this.performVacuuming(t),this._currentVacuum)},e.prototype.performVacuuming=function(t,n){return X4(this,void 0,void 0,function(){var r,o,i,a,l,s,u,f,c,d,p,w,m,C,v,g,x,E,S,$,_,b,T,P,M;return J4(this,function(O){switch(O.label){case 0:if(r=this._dirtCount,!this.vacuumConditionsMet(n))return[3,10];o=t.batchSize||hu.batchSize,i=t.batchWait||hu.batchWait,a=1,O.label=1;case 1:O.trys.push([1,7,8,9]),l=oe(this._index),s=l.next(),O.label=2;case 2:if(s.done)return[3,6];u=Le(s.value,2),f=u[0],c=u[1];try{for(d=(b=void 0,oe(c)),p=d.next();!p.done;p=d.next()){w=Le(p.value,2),m=w[0],C=w[1];try{for(v=(P=void 0,oe(C)),g=v.next();!g.done;g=v.next())x=Le(g.value,1),E=x[0],!this._documentIds.has(E)&&(C.size<=1?c.delete(m):C.delete(E))}catch(j){P={error:j}}finally{try{g&&!g.done&&(M=v.return)&&M.call(v)}finally{if(P)throw P.error}}}}catch(j){b={error:j}}finally{try{p&&!p.done&&(T=d.return)&&T.call(d)}finally{if(b)throw b.error}}return this._index.get(f).size===0&&this._index.delete(f),a%o!==0?[3,4]:[4,new Promise(function(j){return setTimeout(j,i)})];case 3:O.sent(),O.label=4;case 4:a+=1,O.label=5;case 5:return s=l.next(),[3,2];case 6:return[3,9];case 7:return S=O.sent(),$={error:S},[3,9];case 8:try{s&&!s.done&&(_=l.return)&&_.call(l)}finally{if($)throw $.error}return[7];case 9:this._dirtCount-=r,O.label=10;case 10:return[4,null];case 11:return O.sent(),this._currentVacuum=this._enqueuedVacuum,this._enqueuedVacuum=null,[2]}})})},e.prototype.vacuumConditionsMet=function(t){if(t==null)return!0;var n=t.minDirtCount,r=t.minDirtFactor;return n=n||Qs.minDirtCount,r=r||Qs.minDirtFactor,this.dirtCount>=n&&this.dirtFactor>=r},Object.defineProperty(e.prototype,"isVacuuming",{get:function(){return this._currentVacuum!=null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dirtCount",{get:function(){return this._dirtCount},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dirtFactor",{get:function(){return this._dirtCount/(1+this._documentCount+this._dirtCount)},enumerable:!1,configurable:!0}),e.prototype.has=function(t){return this._idToShortId.has(t)},e.prototype.getStoredFields=function(t){var n=this._idToShortId.get(t);if(n!=null)return this._storedFields.get(n)},e.prototype.search=function(t,n){var r,o;n===void 0&&(n={});var i=this.executeQuery(t,n),a=[];try{for(var l=oe(i),s=l.next();!s.done;s=l.next()){var u=Le(s.value,2),f=u[0],c=u[1],d=c.score,p=c.terms,w=c.match,m=p.length||1,C={id:this._documentIds.get(f),score:d*m,terms:Object.keys(w),queryTerms:p,match:w};Object.assign(C,this._storedFields.get(f)),(n.filter==null||n.filter(C))&&a.push(C)}}catch(v){r={error:v}}finally{try{s&&!s.done&&(o=l.return)&&o.call(l)}finally{if(r)throw r.error}}return t===e.wildcard&&n.boostDocument==null&&this._options.searchOptions.boostDocument==null||a.sort(Cp),a},e.prototype.autoSuggest=function(t,n){var r,o,i,a;n===void 0&&(n={}),n=he(he({},this._options.autoSuggestOptions),n);var l=new Map;try{for(var s=oe(this.search(t,n)),u=s.next();!u.done;u=s.next()){var f=u.value,c=f.score,d=f.terms,p=d.join(" "),w=l.get(p);w!=null?(w.score+=c,w.count+=1):l.set(p,{score:c,terms:d,count:1})}}catch(S){r={error:S}}finally{try{u&&!u.done&&(o=s.return)&&o.call(s)}finally{if(r)throw r.error}}var m=[];try{for(var C=oe(l),v=C.next();!v.done;v=C.next()){var g=Le(v.value,2),w=g[0],x=g[1],c=x.score,d=x.terms,E=x.count;m.push({suggestion:w,terms:d,score:c/E})}}catch(S){i={error:S}}finally{try{v&&!v.done&&(a=C.return)&&a.call(C)}finally{if(i)throw i.error}}return m.sort(Cp),m},Object.defineProperty(e.prototype,"documentCount",{get:function(){return this._documentCount},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"termCount",{get:function(){return this._index.size},enumerable:!1,configurable:!0}),e.loadJSON=function(t,n){if(n==null)throw new Error("MiniSearch: loadJSON should be given the same options used when serializing the index");return this.loadJS(JSON.parse(t),n)},e.getDefault=function(t){if(Gs.hasOwnProperty(t))return Ys(Gs,t);throw new Error('MiniSearch: unknown option "'.concat(t,'"'))},e.loadJS=function(t,n){var r,o,i,a,l,s,u=t.index,f=t.documentCount,c=t.nextId,d=t.documentIds,p=t.fieldIds,w=t.fieldLength,m=t.averageFieldLength,C=t.storedFields,v=t.dirtCount,g=t.serializationVersion;if(g!==1&&g!==2)throw new Error("MiniSearch: cannot deserialize an index created with an incompatible version");var x=new e(n);x._documentCount=f,x._nextId=c,x._documentIds=$a(d),x._idToShortId=new Map,x._fieldIds=p,x._fieldLength=$a(w),x._avgFieldLength=m,x._storedFields=$a(C),x._dirtCount=v||0,x._index=new Ws;try{for(var E=oe(x._documentIds),S=E.next();!S.done;S=E.next()){var $=Le(S.value,2),_=$[0],b=$[1];x._idToShortId.set(b,_)}}catch(B){r={error:B}}finally{try{S&&!S.done&&(o=E.return)&&o.call(E)}finally{if(r)throw r.error}}try{for(var T=oe(u),P=T.next();!P.done;P=T.next()){var M=Le(P.value,2),O=M[0],j=M[1],R=new Map;try{for(var F=(l=void 0,oe(Object.keys(j))),W=F.next();!W.done;W=F.next()){var H=W.value,A=j[H];g===1&&(A=A.ds),R.set(parseInt(H,10),$a(A))}}catch(B){l={error:B}}finally{try{W&&!W.done&&(s=F.return)&&s.call(F)}finally{if(l)throw l.error}}x._index.set(O,R)}}catch(B){i={error:B}}finally{try{P&&!P.done&&(a=T.return)&&a.call(T)}finally{if(i)throw i.error}}return x},e.prototype.executeQuery=function(t,n){var r=this;if(n===void 0&&(n={}),t===e.wildcard)return this.executeWildcardQuery(n);if(typeof t!="string"){var o=he(he(he({},n),t),{queries:void 0}),i=t.queries.map(function(C){return r.executeQuery(C,o)});return this.combineResults(i,o.combineWith)}var a=this._options,l=a.tokenize,s=a.processTerm,u=a.searchOptions,f=he(he({tokenize:l,processTerm:s},u),n),c=f.tokenize,d=f.processTerm,p=c(t).flatMap(function(C){return d(C)}).filter(function(C){return!!C}),w=p.map(l8(f)),m=w.map(function(C){return r.executeQuerySpec(C,f)});return this.combineResults(m,f.combineWith)},e.prototype.executeQuerySpec=function(t,n){var r,o,i,a,l=he(he({},this._options.searchOptions),n),s=(l.fields||this._options.fields).reduce(function(H,A){var B;return he(he({},H),(B={},B[A]=Ys(l.boost,A)||1,B))},{}),u=l.boostDocument,f=l.weights,c=l.maxFuzzy,d=l.bm25,p=he(he({},wp.weights),f),w=p.fuzzy,m=p.prefix,C=this._index.get(t.term),v=this.termResults(t.term,t.term,1,C,s,u,d),g,x;if(t.prefix&&(g=this._index.atPrefix(t.term)),t.fuzzy){var E=t.fuzzy===!0?.2:t.fuzzy,S=E<1?Math.min(c,Math.round(t.term.length*E)):E;S&&(x=this._index.fuzzyGet(t.term,S))}if(g)try{for(var $=oe(g),_=$.next();!_.done;_=$.next()){var b=Le(_.value,2),T=b[0],P=b[1],M=T.length-t.term.length;if(M){x==null||x.delete(T);var O=m*T.length/(T.length+.3*M);this.termResults(t.term,T,O,P,s,u,d,v)}}}catch(H){r={error:H}}finally{try{_&&!_.done&&(o=$.return)&&o.call($)}finally{if(r)throw r.error}}if(x)try{for(var j=oe(x.keys()),R=j.next();!R.done;R=j.next()){var T=R.value,F=Le(x.get(T),2),W=F[0],M=F[1];if(M){var O=w*T.length/(T.length+M);this.termResults(t.term,T,O,W,s,u,d,v)}}}catch(H){i={error:H}}finally{try{R&&!R.done&&(a=j.return)&&a.call(j)}finally{if(i)throw i.error}}return v},e.prototype.executeWildcardQuery=function(t){var n,r,o=new Map,i=he(he({},this._options.searchOptions),t);try{for(var a=oe(this._documentIds),l=a.next();!l.done;l=a.next()){var s=Le(l.value,2),u=s[0],f=s[1],c=i.boostDocument?i.boostDocument(f,"",this._storedFields.get(u)):1;o.set(u,{score:c,terms:[],match:{}})}}catch(d){n={error:d}}finally{try{l&&!l.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return o},e.prototype.combineResults=function(t,n){if(n===void 0&&(n=Xf),t.length===0)return new Map;var r=n.toLowerCase();return t.reduce(o8[r])||new Map},e.prototype.toJSON=function(){var t,n,r,o,i=[];try{for(var a=oe(this._index),l=a.next();!l.done;l=a.next()){var s=Le(l.value,2),u=s[0],f=s[1],c={};try{for(var d=(r=void 0,oe(f)),p=d.next();!p.done;p=d.next()){var w=Le(p.value,2),m=w[0],C=w[1];c[m]=Object.fromEntries(C)}}catch(v){r={error:v}}finally{try{p&&!p.done&&(o=d.return)&&o.call(d)}finally{if(r)throw r.error}}i.push([u,c])}}catch(v){t={error:v}}finally{try{l&&!l.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return{documentCount:this._documentCount,nextId:this._nextId,documentIds:Object.fromEntries(this._documentIds),fieldIds:this._fieldIds,fieldLength:Object.fromEntries(this._fieldLength),averageFieldLength:this._avgFieldLength,storedFields:Object.fromEntries(this._storedFields),dirtCount:this._dirtCount,index:i,serializationVersion:2}},e.prototype.termResults=function(t,n,r,o,i,a,l,s){var u,f,c,d,p;if(s===void 0&&(s=new Map),o==null)return s;try{for(var w=oe(Object.keys(i)),m=w.next();!m.done;m=w.next()){var C=m.value,v=i[C],g=this._fieldIds[C],x=o.get(g);if(x!=null){var E=x.size,S=this._avgFieldLength[g];try{for(var $=(c=void 0,oe(x.keys())),_=$.next();!_.done;_=$.next()){var b=_.value;if(!this._documentIds.has(b)){this.removeTerm(g,b,n),E-=1;continue}var T=a?a(this._documentIds.get(b),n,this._storedFields.get(b)):1;if(T){var P=x.get(b),M=this._fieldLength.get(b)[g],O=a8(P,E,this._documentCount,M,S,l),j=r*v*T*O,R=s.get(b);if(R){R.score+=j,c8(R.terms,t);var F=Ys(R.match,n);F?F.push(C):R.match[n]=[C]}else s.set(b,{score:j,terms:[t],match:(p={},p[n]=[C],p)})}}}catch(W){c={error:W}}finally{try{_&&!_.done&&(d=$.return)&&d.call($)}finally{if(c)throw c.error}}}}}catch(W){u={error:W}}finally{try{m&&!m.done&&(f=w.return)&&f.call(w)}finally{if(u)throw u.error}}return s},e.prototype.addTerm=function(t,n,r){var o=this._index.fetch(r,Ep),i=o.get(t);if(i==null)i=new Map,i.set(n,1),o.set(t,i);else{var a=i.get(n);i.set(n,(a||0)+1)}},e.prototype.removeTerm=function(t,n,r){if(!this._index.has(r)){this.warnDocumentChanged(n,t,r);return}var o=this._index.fetch(r,Ep),i=o.get(t);i==null||i.get(n)==null?this.warnDocumentChanged(n,t,r):i.get(n)<=1?i.size<=1?o.delete(t):i.delete(n):i.set(n,i.get(n)-1),this._index.get(r).size===0&&this._index.delete(r)},e.prototype.warnDocumentChanged=function(t,n,r){var o,i;try{for(var a=oe(Object.keys(this._fieldIds)),l=a.next();!l.done;l=a.next()){var s=l.value;if(this._fieldIds[s]===n){this._options.logger("warn","MiniSearch: document with ID ".concat(this._documentIds.get(t),' has changed before removal: term "').concat(r,'" was not present in field "').concat(s,'". Removing a document after it has changed can corrupt the index!'),"version_conflict");return}}}catch(u){o={error:u}}finally{try{l&&!l.done&&(i=a.return)&&i.call(a)}finally{if(o)throw o.error}}},e.prototype.addDocumentId=function(t){var n=this._nextId;return this._idToShortId.set(t,n),this._documentIds.set(n,t),this._documentCount+=1,this._nextId+=1,n},e.prototype.addFields=function(t){for(var n=0;nJSON.stringify(await(await fetch("/polkadot-api-docs/.vocs/search-index-46fc7e51.json")).json());let Zs;function Rg(){const[e,t]=h.useState();return h.useEffect(()=>{(async()=>{Zs||(Zs=f8());const n=await Zs,r=r8.loadJSON(n,{fields:["title","titles","text"],searchOptions:{boost:{title:4,text:2,titles:1},fuzzy:.2,prefix:!0},storeFields:["href","html","isPage","text","title","titles"]});t(r)})()},[]),h.useEffect(()=>{},[]),e}var d8="vocs_DesktopSearch_search",h8="vocs_DesktopSearch_searchCommand";const p8=h.forwardRef((e,t)=>h.createElement(fe.label,Y({},e,{ref:t,onMouseDown:n=>{var r;(r=e.onMouseDown)===null||r===void 0||r.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault()}}))),v8=p8;var Ng={exports:{}};/*!*************************************************** * mark.js v8.11.1 * https://markjs.io/ * Copyright (c) 2014–2018, Julian Kühnel * Released under the MIT license https://git.io/vwTVl -*****************************************************/(function(e,t){(function(n,r){e.exports=r()})(_y,function(){var n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},r=function(u,f){if(!(u instanceof f))throw new TypeError("Cannot call a class as a function")},o=function(){function u(f,c){for(var d=0;d1&&arguments[1]!==void 0?arguments[1]:!0,d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:5e3;r(this,u),this.ctx=f,this.iframes=c,this.exclude=d,this.iframesTimeout=p}return o(u,[{key:"getContexts",value:function(){var c=void 0,d=[];return typeof this.ctx>"u"||!this.ctx?c=[]:NodeList.prototype.isPrototypeOf(this.ctx)?c=Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?c=this.ctx:typeof this.ctx=="string"?c=Array.prototype.slice.call(document.querySelectorAll(this.ctx)):c=[this.ctx],c.forEach(function(p){var w=d.filter(function(m){return m.contains(p)}).length>0;d.indexOf(p)===-1&&!w&&d.push(p)}),d}},{key:"getIframeContents",value:function(c,d){var p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},w=void 0;try{var m=c.contentWindow;if(w=m.document,!m||!w)throw new Error("iframe inaccessible")}catch{p()}w&&d(w)}},{key:"isIframeBlank",value:function(c){var d="about:blank",p=c.getAttribute("src").trim(),w=c.contentWindow.location.href;return w===d&&p!==d&&p}},{key:"observeIframeLoad",value:function(c,d,p){var w=this,m=!1,C=null,v=function g(){if(!m){m=!0,clearTimeout(C);try{w.isIframeBlank(c)||(c.removeEventListener("load",g),w.getIframeContents(c,d,p))}catch{p()}}};c.addEventListener("load",v),C=setTimeout(v,this.iframesTimeout)}},{key:"onIframeReady",value:function(c,d,p){try{c.contentWindow.document.readyState==="complete"?this.isIframeBlank(c)?this.observeIframeLoad(c,d,p):this.getIframeContents(c,d,p):this.observeIframeLoad(c,d,p)}catch{p()}}},{key:"waitForIframes",value:function(c,d){var p=this,w=0;this.forEachIframe(c,function(){return!0},function(m){w++,p.waitForIframes(m.querySelector("html"),function(){--w||d()})},function(m){m||d()})}},{key:"forEachIframe",value:function(c,d,p){var w=this,m=arguments.length>3&&arguments[3]!==void 0?arguments[3]:function(){},C=c.querySelectorAll("iframe"),v=C.length,g=0;C=Array.prototype.slice.call(C);var x=function(){--v<=0&&m(g)};v||x(),C.forEach(function(E){u.matches(E,w.exclude)?x():w.onIframeReady(E,function(S){d(E)&&(g++,p(S)),x()},x)})}},{key:"createIterator",value:function(c,d,p){return document.createNodeIterator(c,d,p,!1)}},{key:"createInstanceOnIframe",value:function(c){return new u(c.querySelector("html"),this.iframes)}},{key:"compareNodeIframe",value:function(c,d,p){var w=c.compareDocumentPosition(p),m=Node.DOCUMENT_POSITION_PRECEDING;if(w&m)if(d!==null){var C=d.compareDocumentPosition(p),v=Node.DOCUMENT_POSITION_FOLLOWING;if(C&v)return!0}else return!0;return!1}},{key:"getIteratorNode",value:function(c){var d=c.previousNode(),p=void 0;return d===null?p=c.nextNode():p=c.nextNode()&&c.nextNode(),{prevNode:d,node:p}}},{key:"checkIframeFilter",value:function(c,d,p,w){var m=!1,C=!1;return w.forEach(function(v,g){v.val===p&&(m=g,C=v.handled)}),this.compareNodeIframe(c,d,p)?(m===!1&&!C?w.push({val:p,handled:!0}):m!==!1&&!C&&(w[m].handled=!0),!0):(m===!1&&w.push({val:p,handled:!1}),!1)}},{key:"handleOpenIframes",value:function(c,d,p,w){var m=this;c.forEach(function(C){C.handled||m.getIframeContents(C.val,function(v){m.createInstanceOnIframe(v).forEachNode(d,p,w)})})}},{key:"iterateThroughNodes",value:function(c,d,p,w,m){for(var C=this,v=this.createIterator(d,c,w),g=[],x=[],E=void 0,S=void 0,$=function(){var b=C.getIteratorNode(v);return S=b.prevNode,E=b.node,E};$();)this.iframes&&this.forEachIframe(d,function(_){return C.checkIframeFilter(E,S,_,g)},function(_){C.createInstanceOnIframe(_).forEachNode(c,function(b){return x.push(b)},w)}),x.push(E);x.forEach(function(_){p(_)}),this.iframes&&this.handleOpenIframes(g,c,p,w),m()}},{key:"forEachNode",value:function(c,d,p){var w=this,m=arguments.length>3&&arguments[3]!==void 0?arguments[3]:function(){},C=this.getContexts(),v=C.length;v||m(),C.forEach(function(g){var x=function(){w.iterateThroughNodes(c,g,d,p,function(){--v<=0&&m()})};w.iframes?w.waitForIframes(g,x):x()})}}],[{key:"matches",value:function(c,d){var p=typeof d=="string"?[d]:d,w=c.matches||c.matchesSelector||c.msMatchesSelector||c.mozMatchesSelector||c.oMatchesSelector||c.webkitMatchesSelector;if(w){var m=!1;return p.every(function(C){return w.call(c,C)?(m=!0,!1):!0}),m}else return!1}}]),u}(),l=function(){function u(f){r(this,u),this.ctx=f,this.ie=!1;var c=window.navigator.userAgent;(c.indexOf("MSIE")>-1||c.indexOf("Trident")>-1)&&(this.ie=!0)}return o(u,[{key:"log",value:function(c){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"debug",p=this.opt.log;this.opt.debug&&(typeof p>"u"?"undefined":n(p))==="object"&&typeof p[d]=="function"&&p[d]("mark.js: "+c)}},{key:"escapeStr",value:function(c){return c.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}},{key:"createRegExp",value:function(c){return this.opt.wildcards!=="disabled"&&(c=this.setupWildcardsRegExp(c)),c=this.escapeStr(c),Object.keys(this.opt.synonyms).length&&(c=this.createSynonymsRegExp(c)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(c=this.setupIgnoreJoinersRegExp(c)),this.opt.diacritics&&(c=this.createDiacriticsRegExp(c)),c=this.createMergedBlanksRegExp(c),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(c=this.createJoinersRegExp(c)),this.opt.wildcards!=="disabled"&&(c=this.createWildcardsRegExp(c)),c=this.createAccuracyRegExp(c),c}},{key:"createSynonymsRegExp",value:function(c){var d=this.opt.synonyms,p=this.opt.caseSensitive?"":"i",w=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(var m in d)if(d.hasOwnProperty(m)){var C=d[m],v=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(m):this.escapeStr(m),g=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(C):this.escapeStr(C);v!==""&&g!==""&&(c=c.replace(new RegExp("("+this.escapeStr(v)+"|"+this.escapeStr(g)+")","gm"+p),w+("("+this.processSynomyms(v)+"|")+(this.processSynomyms(g)+")")+w))}return c}},{key:"processSynomyms",value:function(c){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(c=this.setupIgnoreJoinersRegExp(c)),c}},{key:"setupWildcardsRegExp",value:function(c){return c=c.replace(/(?:\\)*\?/g,function(d){return d.charAt(0)==="\\"?"?":""}),c.replace(/(?:\\)*\*/g,function(d){return d.charAt(0)==="\\"?"*":""})}},{key:"createWildcardsRegExp",value:function(c){var d=this.opt.wildcards==="withSpaces";return c.replace(/\u0001/g,d?"[\\S\\s]?":"\\S?").replace(/\u0002/g,d?"[\\S\\s]*?":"\\S*")}},{key:"setupIgnoreJoinersRegExp",value:function(c){return c.replace(/[^(|)\\]/g,function(d,p,w){var m=w.charAt(p+1);return/[(|)\\]/.test(m)||m===""?d:d+"\0"})}},{key:"createJoinersRegExp",value:function(c){var d=[],p=this.opt.ignorePunctuation;return Array.isArray(p)&&p.length&&d.push(this.escapeStr(p.join(""))),this.opt.ignoreJoiners&&d.push("\\u00ad\\u200b\\u200c\\u200d"),d.length?c.split(/\u0000+/).join("["+d.join("")+"]*"):c}},{key:"createDiacriticsRegExp",value:function(c){var d=this.opt.caseSensitive?"":"i",p=this.opt.caseSensitive?["aàáảãạăằắẳẵặâầấẩẫậäåāą","AÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÄÅĀĄ","cçćč","CÇĆČ","dđď","DĐĎ","eèéẻẽẹêềếểễệëěēę","EÈÉẺẼẸÊỀẾỂỄỆËĚĒĘ","iìíỉĩịîïī","IÌÍỈĨỊÎÏĪ","lł","LŁ","nñňń","NÑŇŃ","oòóỏõọôồốổỗộơởỡớờợöøō","OÒÓỎÕỌÔỒỐỔỖỘƠỞỠỚỜỢÖØŌ","rř","RŘ","sšśșş","SŠŚȘŞ","tťțţ","TŤȚŢ","uùúủũụưừứửữựûüůū","UÙÚỦŨỤƯỪỨỬỮỰÛÜŮŪ","yýỳỷỹỵÿ","YÝỲỶỸỴŸ","zžżź","ZŽŻŹ"]:["aàáảãạăằắẳẵặâầấẩẫậäåāąAÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÄÅĀĄ","cçćčCÇĆČ","dđďDĐĎ","eèéẻẽẹêềếểễệëěēęEÈÉẺẼẸÊỀẾỂỄỆËĚĒĘ","iìíỉĩịîïīIÌÍỈĨỊÎÏĪ","lłLŁ","nñňńNÑŇŃ","oòóỏõọôồốổỗộơởỡớờợöøōOÒÓỎÕỌÔỒỐỔỖỘƠỞỠỚỜỢÖØŌ","rřRŘ","sšśșşSŠŚȘŞ","tťțţTŤȚŢ","uùúủũụưừứửữựûüůūUÙÚỦŨỤƯỪỨỬỮỰÛÜŮŪ","yýỳỷỹỵÿYÝỲỶỸỴŸ","zžżźZŽŻŹ"],w=[];return c.split("").forEach(function(m){p.every(function(C){if(C.indexOf(m)!==-1){if(w.indexOf(C)>-1)return!1;c=c.replace(new RegExp("["+C+"]","gm"+d),"["+C+"]"),w.push(C)}return!0})}),c}},{key:"createMergedBlanksRegExp",value:function(c){return c.replace(/[\s]+/gmi,"[\\s]+")}},{key:"createAccuracyRegExp",value:function(c){var d=this,p="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~¡¿",w=this.opt.accuracy,m=typeof w=="string"?w:w.value,C=typeof w=="string"?[]:w.limiters,v="";switch(C.forEach(function(g){v+="|"+d.escapeStr(g)}),m){case"partially":default:return"()("+c+")";case"complementary":return v="\\s"+(v||this.escapeStr(p)),"()([^"+v+"]*"+c+"[^"+v+"]*)";case"exactly":return"(^|\\s"+v+")("+c+")(?=$|\\s"+v+")"}}},{key:"getSeparatedKeywords",value:function(c){var d=this,p=[];return c.forEach(function(w){d.opt.separateWordSearch?w.split(" ").forEach(function(m){m.trim()&&p.indexOf(m)===-1&&p.push(m)}):w.trim()&&p.indexOf(w)===-1&&p.push(w)}),{keywords:p.sort(function(w,m){return m.length-w.length}),length:p.length}}},{key:"isNumeric",value:function(c){return Number(parseFloat(c))==c}},{key:"checkRanges",value:function(c){var d=this;if(!Array.isArray(c)||Object.prototype.toString.call(c[0])!=="[object Object]")return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(c),[];var p=[],w=0;return c.sort(function(m,C){return m.start-C.start}).forEach(function(m){var C=d.callNoMatchOnInvalidRanges(m,w),v=C.start,g=C.end,x=C.valid;x&&(m.start=v,m.length=g-v,p.push(m),w=g)}),p}},{key:"callNoMatchOnInvalidRanges",value:function(c,d){var p=void 0,w=void 0,m=!1;return c&&typeof c.start<"u"?(p=parseInt(c.start,10),w=p+parseInt(c.length,10),this.isNumeric(c.start)&&this.isNumeric(c.length)&&w-d>0&&w-p>0?m=!0:(this.log("Ignoring invalid or overlapping range: "+(""+JSON.stringify(c))),this.opt.noMatch(c))):(this.log("Ignoring invalid range: "+JSON.stringify(c)),this.opt.noMatch(c)),{start:p,end:w,valid:m}}},{key:"checkWhitespaceRanges",value:function(c,d,p){var w=void 0,m=!0,C=p.length,v=d-C,g=parseInt(c.start,10)-v;return g=g>C?C:g,w=g+parseInt(c.length,10),w>C&&(w=C,this.log("End range automatically set to the max value of "+C)),g<0||w-g<0||g>C||w>C?(m=!1,this.log("Invalid range: "+JSON.stringify(c)),this.opt.noMatch(c)):p.substring(g,w).replace(/\s+/g,"")===""&&(m=!1,this.log("Skipping whitespace only range: "+JSON.stringify(c)),this.opt.noMatch(c)),{start:g,end:w,valid:m}}},{key:"getTextNodes",value:function(c){var d=this,p="",w=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,function(m){w.push({start:p.length,end:(p+=m.textContent).length,node:m})},function(m){return d.matchesExclude(m.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},function(){c({value:p,nodes:w})})}},{key:"matchesExclude",value:function(c){return a.matches(c,this.opt.exclude.concat(["script","style","title","head","html"]))}},{key:"wrapRangeInTextNode",value:function(c,d,p){var w=this.opt.element?this.opt.element:"mark",m=c.splitText(d),C=m.splitText(p-d),v=document.createElement(w);return v.setAttribute("data-markjs","true"),this.opt.className&&v.setAttribute("class",this.opt.className),v.textContent=m.textContent,m.parentNode.replaceChild(v,m),C}},{key:"wrapRangeInMappedTextNode",value:function(c,d,p,w,m){var C=this;c.nodes.every(function(v,g){var x=c.nodes[g+1];if(typeof x>"u"||x.start>d){if(!w(v.node))return!1;var E=d-v.start,S=(p>v.end?v.end:p)-v.start,$=c.value.substr(0,v.start),_=c.value.substr(S+v.start);if(v.node=C.wrapRangeInTextNode(v.node,E,S),c.value=$+_,c.nodes.forEach(function(b,T){T>=g&&(c.nodes[T].start>0&&T!==g&&(c.nodes[T].start-=S),c.nodes[T].end-=S)}),p-=S,m(v.node.previousSibling,v.start),p>v.end)d=v.end;else return!1}return!0})}},{key:"wrapMatches",value:function(c,d,p,w,m){var C=this,v=d===0?0:d+1;this.getTextNodes(function(g){g.nodes.forEach(function(x){x=x.node;for(var E=void 0;(E=c.exec(x.textContent))!==null&&E[v]!=="";)if(p(E[v],x)){var S=E.index;if(v!==0)for(var $=1;${const o=setTimeout(()=>r(e),t);return()=>{clearTimeout(o)}},[e,t]),n}function vu(e,t){const[n,r]=h.useState();h.useEffect(()=>{const i=w8(e);r(typeof i>"u"||i===null?typeof t=="function"?t():t:i)},[t,e]);const o=h.useCallback(i=>{r(a=>{let l;typeof i=="function"?l=i(a):l=i;try{localStorage.setItem(e,JSON.stringify(l))}catch{}return l})},[e]);return[n,o]}function w8(e){try{const t=localStorage.getItem(e);return typeof t=="string"?JSON.parse(t):void 0}catch{return}}var x8="vocs_Kbd";function Pg(e){return y.jsx("kbd",{...e,className:I(e.className,x8)})}var C8="vocs_KeyboardShortcut_kbdGroup",E8="vocs_KeyboardShortcut";function ro(e){const{description:t,keys:n}=e;return y.jsxs("span",{className:E8,children:[t,y.jsx("span",{className:C8,children:n.map(r=>y.jsx(Pg,{children:r},r))})]})}var _8="vocs_SearchDialog_content",_p="vocs_SearchDialog_excerpt",S8="vocs_SearchDialog_overlay",b8="vocs_SearchDialog_result",Sp="vocs_SearchDialog_resultIcon",$8="vocs_SearchDialog_resultSelected",T8="vocs_SearchDialog_results",k8="vocs_SearchDialog",R8="vocs_SearchDialog_searchBox",N8="vocs_SearchDialog_searchInput",Ta="vocs_SearchDialog_searchInputIcon",P8="vocs_SearchDialog_searchInputIconDesktop",A8="vocs_SearchDialog_searchInputIconMobile",L8="vocs_SearchDialog_searchShortcuts",bp="vocs_SearchDialog_title",I8="vocs_SearchDialog_titleIcon",O8="vocs_SearchDialog_titles";function Ag(e){const{search:t}=We(),n=Uf(),r=h.useRef(null),o=h.useRef(null),[i,a]=vu("filterText",""),l=y8(i,200),s=Rg(),[u,f]=h.useState(-1),[c,d]=h.useState(!1),[p,w]=vu("showDetailView",!0),m=h.useMemo(()=>s?l?(f(0),s.search(l,t).slice(0,16)):(f(-1),[]):[],[s,t,l]),C=m.length,v=m[u],g=h.useCallback(()=>{var $,_,b;if(!o.current)return;const x=new Set;for(const T of m)for(const P in T.match)x.add(P);const E=new g8(o.current);E.unmark({done(){E==null||E.markRegExp(M8(x))}});const S=o.current.querySelectorAll(`.${_p}`);for(const T of S)($=T.querySelector('mark[data-markjs="true"]'))==null||$.scrollIntoView({block:"center"});(b=(_=o.current)==null?void 0:_.firstElementChild)==null||b.scrollIntoView({block:"start"})},[m]);return h.useEffect(()=>{if(!e.open)return;function x(E){var S;switch(E.key){case"ArrowDown":{E.preventDefault(),f($=>{var T;let _=$+1;_>=C&&(_=0);const b=(T=o.current)==null?void 0:T.children[_];return b==null||b.scrollIntoView({block:"nearest"}),_}),d(!0);break}case"ArrowUp":{E.preventDefault(),f($=>{var T;let _=$-1;_<0&&(_=C-1);const b=(T=o.current)==null?void 0:T.children[_];return b==null||b.scrollIntoView({block:"nearest"}),_}),d(!0);break}case"Backspace":{if(!E.metaKey)return;E.preventDefault(),a(""),(S=r.current)==null||S.focus();break}case"Enter":{if(E.target instanceof HTMLButtonElement&&E.target.type!=="submit"||!v)return;E.preventDefault(),n(v.href),e.onClose();break}}}return window.addEventListener("keydown",x),()=>{window.removeEventListener("keydown",x)}},[n,C,a,v,e.open,e.onClose]),h.useEffect(()=>{l!==""&&o.current&&g()},[g,l]),y.jsxs(Y4,{children:[y.jsx(G4,{className:S8}),y.jsxs(Q4,{onOpenAutoFocus:x=>{r.current&&(x.preventDefault(),r.current.focus()),g()},onCloseAutoFocus:()=>{f(0)},className:k8,"aria-describedby":void 0,children:[y.jsx(Z4,{className:eg,children:"Search"}),y.jsxs("form",{className:R8,children:[y.jsx("button",{"aria-label":"Close search dialog",type:"button",onClick:()=>e.onClose(),className:A8,children:y.jsx(u5,{className:Ta,height:20,width:20})}),y.jsx(v8,{htmlFor:"search-input",children:y.jsx(Kf,{"aria-label":"Search",className:I(Ta,P8),height:20,width:20})}),y.jsx("input",{ref:r,tabIndex:0,className:N8,id:"search-input",onChange:x=>a(x.target.value),placeholder:"Search",type:"search",value:i}),y.jsx("button",{"aria-label":"Toggle detail view",type:"button",onClick:()=>w(x=>!x),children:y.jsx(y5,{className:Ta,height:20,width:20})}),y.jsx("button",{"aria-label":"Reset search",type:"button",className:Ta,onClick:()=>{var x;a(""),(x=r.current)==null||x.focus()},children:"⌫"})]}),y.jsxs("ul",{className:T8,role:m.length?"listbox":void 0,onMouseMove:()=>d(!1),ref:o,children:[l&&m.length===0&&y.jsxs("li",{children:['No results for "',y.jsx("span",{children:l}),'"']}),m.map((x,E)=>{var S;return y.jsx("li",{role:"option",className:I(b8,E===u&&$8),"aria-selected":E===u,"aria-label":[...x.titles.filter($=>!!$),x.title].join(" > "),children:y.jsxs(Vf,{to:x.href,onClick:$=>{$.metaKey||e.onClose()},onMouseEnter:()=>!c&&f(E),onFocus:()=>f(E),children:[y.jsxs("div",{className:O8,children:[x.isPage?y.jsx(m5,{className:Sp}):y.jsx("span",{className:Sp,children:"#"}),x.titles.filter($=>!!$).map($=>y.jsxs("span",{className:bp,children:[y.jsx("span",{dangerouslySetInnerHTML:{__html:$}}),y.jsx(d5,{className:I8})]},$)),y.jsx("span",{className:bp,children:y.jsx("span",{dangerouslySetInnerHTML:{__html:x.title}})})]}),p&&((S=x.text)==null?void 0:S.trim())&&y.jsx("div",{className:_p,children:y.jsx(X0,{className:_8,children:y.jsx("div",{dangerouslySetInnerHTML:{__html:x.html}})})})]})},x.id)})]}),y.jsxs("div",{className:L8,children:[y.jsx(ro,{description:"Navigate",keys:["↑","↓"]}),y.jsx(ro,{description:"Select",keys:["enter"]}),y.jsx(ro,{description:"Close",keys:["esc"]}),y.jsx(ro,{description:"Reset",keys:["⌘","⌫"]})]})]})]})}function M8(e){return new RegExp([...e].sort((t,n)=>n.length-t.length).map(t=>`(${t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")})`).join("|"),"gi")}function D8(){Rg();const[e,t]=h.useState(!1);return h.useEffect(()=>{function n(r){const o=document.activeElement instanceof HTMLElement&&(["input","select","textarea"].includes(document.activeElement.tagName.toLowerCase())||document.activeElement.isContentEditable);r.key==="/"&&!e&&!o?(r.preventDefault(),t(!0)):r.metaKey===!0&&r.key==="k"&&(r.preventDefault(),t(i=>!i))}return window.addEventListener("keydown",n),()=>{window.removeEventListener("keydown",n)}},[e]),y.jsxs(Cg,{open:e,onOpenChange:t,children:[y.jsx(Eg,{asChild:!0,children:y.jsxs("button",{className:d8,type:"button",children:[y.jsx(Kf,{style:{marginTop:2}}),"Search",y.jsx("div",{className:h8,children:y.jsx("div",{style:{background:"currentColor",transform:"rotate(45deg)",width:1.5,borderRadius:2,height:"100%"}})})]})}),y.jsx(Ag,{open:e,onClose:()=>t(!1)})]})}var Lg="vocs_DesktopTopNav_button",j8="vocs_DesktopTopNav_content",F8="vocs_DesktopTopNav_curtain",$p="vocs_DesktopTopNav_divider",Xs="vocs_DesktopTopNav_group",ka="vocs_DesktopTopNav_hideCompact",mu="vocs_DesktopTopNav_icon",_l="vocs_DesktopTopNav_item",z8="vocs_DesktopTopNav_logo",B8="vocs_DesktopTopNav_logoWrapper",U8="vocs_DesktopTopNav",Tp="vocs_DesktopTopNav_section",H8="vocs_DesktopTopNav_withLogo",V8="vocs_Icon",gu="var(--vocs_Icon_size)";function st({className:e,label:t,icon:n,size:r,style:o}){return y.jsx("div",{"aria-label":t,className:I(V8,e),role:"img",style:{...o,...Yt({[gu]:r})},children:y.jsx(n,{height:r,width:r})})}var W8="vocs_Logo_logoDark",K8="vocs_Logo_logoLight",Js="vocs_Logo";function Y8({className:e}){const{logoUrl:t}=We();return t?y.jsx(y.Fragment,{children:typeof t=="string"?y.jsx("img",{alt:"Logo",className:I(e,Js),src:t}):y.jsxs(y.Fragment,{children:[y.jsx("img",{alt:"Logo",className:I(e,Js,W8),src:t.dark}),y.jsx("img",{alt:"Logo",className:I(e,Js,K8),src:t.light})]})}):null}var G8="vocs_NavLogo_logoImage",Q8="vocs_NavLogo_title";function Jf(){const e=We();return e.logoUrl?y.jsx(Y8,{className:G8}):y.jsx("div",{className:Q8,children:e.title})}const Z8=h.createContext(void 0);function Ql(e){const t=h.useContext(Z8);return e||t||"ltr"}function Zl(e){const t=e+"CollectionProvider",[n,r]=En(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=p=>{const{scope:w,children:m}=p,C=Z.useRef(null),v=Z.useRef(new Map).current;return Z.createElement(o,{scope:w,itemMap:v,collectionRef:C},m)},l=e+"CollectionSlot",s=Z.forwardRef((p,w)=>{const{scope:m,children:C}=p,v=i(l,m),g=Be(w,v.collectionRef);return Z.createElement(So,{ref:g},C)}),u=e+"CollectionItemSlot",f="data-radix-collection-item",c=Z.forwardRef((p,w)=>{const{scope:m,children:C,...v}=p,g=Z.useRef(null),x=Be(w,g),E=i(u,m);return Z.useEffect(()=>(E.itemMap.set(g,{ref:g,...v}),()=>void E.itemMap.delete(g))),Z.createElement(So,{[f]:"",ref:x},C)});function d(p){const w=i(e+"CollectionConsumer",p);return Z.useCallback(()=>{const C=w.collectionRef.current;if(!C)return[];const v=Array.from(C.querySelectorAll(`[${f}]`));return Array.from(w.itemMap.values()).sort((E,S)=>v.indexOf(E.ref.current)-v.indexOf(S.ref.current))},[w.collectionRef,w.itemMap])}return[{Provider:a,Slot:s,ItemSlot:c},d,r]}function X8(e){const t=h.useRef({value:e,previous:e});return h.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}const J8=h.forwardRef((e,t)=>h.createElement(fe.span,Y({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}))),q8=J8,Gi="NavigationMenu",[qf,e7,t7]=Zl(Gi),[yu,n7,r7]=Zl(Gi),[ed,s$]=En(Gi,[t7,r7]),[o7,Ar]=ed(Gi),[i7,c$]=ed(Gi),a7=h.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,onValueChange:o,defaultValue:i,delayDuration:a=200,skipDelayDuration:l=300,orientation:s="horizontal",dir:u,...f}=e,[c,d]=h.useState(null),p=Be(t,T=>d(T)),w=Ql(u),m=h.useRef(0),C=h.useRef(0),v=h.useRef(0),[g,x]=h.useState(!0),[E="",S]=or({prop:r,onChange:T=>{const P=T!=="",M=l>0;P?(window.clearTimeout(v.current),M&&x(!1)):(window.clearTimeout(v.current),v.current=window.setTimeout(()=>x(!0),l)),o==null||o(T)},defaultProp:i}),$=h.useCallback(()=>{window.clearTimeout(C.current),C.current=window.setTimeout(()=>S(""),150)},[S]),_=h.useCallback(T=>{window.clearTimeout(C.current),S(T)},[S]),b=h.useCallback(T=>{E===T?window.clearTimeout(C.current):m.current=window.setTimeout(()=>{window.clearTimeout(C.current),S(T)},a)},[E,S,a]);return h.useEffect(()=>()=>{window.clearTimeout(m.current),window.clearTimeout(C.current),window.clearTimeout(v.current)},[]),h.createElement(l7,{scope:n,isRootMenu:!0,value:E,dir:w,orientation:s,rootNavigationMenu:c,onTriggerEnter:T=>{window.clearTimeout(m.current),g?b(T):_(T)},onTriggerLeave:()=>{window.clearTimeout(m.current),$()},onContentEnter:()=>window.clearTimeout(C.current),onContentLeave:$,onItemSelect:T=>{S(P=>P===T?"":T)},onItemDismiss:()=>S("")},h.createElement(fe.nav,Y({"aria-label":"Main","data-orientation":s,dir:w},f,{ref:p})))}),l7=e=>{const{scope:t,isRootMenu:n,rootNavigationMenu:r,dir:o,orientation:i,children:a,value:l,onItemSelect:s,onItemDismiss:u,onTriggerEnter:f,onTriggerLeave:c,onContentEnter:d,onContentLeave:p}=e,[w,m]=h.useState(null),[C,v]=h.useState(new Map),[g,x]=h.useState(null);return h.createElement(o7,{scope:t,isRootMenu:n,rootNavigationMenu:r,value:l,previousValue:X8(l),baseId:on(),dir:o,orientation:i,viewport:w,onViewportChange:m,indicatorTrack:g,onIndicatorTrackChange:x,onTriggerEnter:at(f),onTriggerLeave:at(c),onContentEnter:at(d),onContentLeave:at(p),onItemSelect:at(s),onItemDismiss:at(u),onViewportContentChange:h.useCallback((E,S)=>{v($=>($.set(E,S),new Map($)))},[]),onViewportContentRemove:h.useCallback(E=>{v(S=>S.has(E)?(S.delete(E),new Map(S)):S)},[])},h.createElement(qf.Provider,{scope:t},h.createElement(i7,{scope:t,items:C},a)))},s7="NavigationMenuList",c7=h.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=Ar(s7,n),i=h.createElement(fe.ul,Y({"data-orientation":o.orientation},r,{ref:t}));return h.createElement(fe.div,{style:{position:"relative"},ref:o.onIndicatorTrackChange},h.createElement(qf.Slot,{scope:n},o.isRootMenu?h.createElement(Og,{asChild:!0},i):i))}),u7="NavigationMenuItem",[f7,Ig]=ed(u7),d7=h.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,...o}=e,i=on(),a=r||i||"LEGACY_REACT_AUTO_VALUE",l=h.useRef(null),s=h.useRef(null),u=h.useRef(null),f=h.useRef(()=>{}),c=h.useRef(!1),d=h.useCallback((w="start")=>{if(l.current){f.current();const m=wu(l.current);m.length&&td(w==="start"?m:m.reverse())}},[]),p=h.useCallback(()=>{if(l.current){const w=wu(l.current);w.length&&(f.current=x7(w))}},[]);return h.createElement(f7,{scope:n,value:a,triggerRef:s,contentRef:l,focusProxyRef:u,wasEscapeCloseRef:c,onEntryKeyDown:d,onFocusProxyEnter:d,onRootContentClose:p,onContentFocusOutside:p},h.createElement(fe.li,Y({},o,{ref:t})))}),kp="NavigationMenuTrigger",h7=h.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,disabled:r,...o}=e,i=Ar(kp,e.__scopeNavigationMenu),a=Ig(kp,e.__scopeNavigationMenu),l=h.useRef(null),s=Be(l,a.triggerRef,t),u=jg(i.baseId,a.value),f=Fg(i.baseId,a.value),c=h.useRef(!1),d=h.useRef(!1),p=a.value===i.value;return h.createElement(h.Fragment,null,h.createElement(qf.ItemSlot,{scope:n,value:a.value},h.createElement(Mg,{asChild:!0},h.createElement(fe.button,Y({id:u,disabled:r,"data-disabled":r?"":void 0,"data-state":Dg(p),"aria-expanded":p,"aria-controls":f},o,{ref:s,onPointerEnter:le(e.onPointerEnter,()=>{d.current=!1,a.wasEscapeCloseRef.current=!1}),onPointerMove:le(e.onPointerMove,xu(()=>{r||d.current||a.wasEscapeCloseRef.current||c.current||(i.onTriggerEnter(a.value),c.current=!0)})),onPointerLeave:le(e.onPointerLeave,xu(()=>{r||(i.onTriggerLeave(),c.current=!1)})),onClick:le(e.onClick,()=>{i.onItemSelect(a.value),d.current=p}),onKeyDown:le(e.onKeyDown,w=>{const C={horizontal:"ArrowDown",vertical:i.dir==="rtl"?"ArrowLeft":"ArrowRight"}[i.orientation];p&&w.key===C&&(a.onEntryKeyDown(),w.preventDefault())})})))),p&&h.createElement(h.Fragment,null,h.createElement(q8,{"aria-hidden":!0,tabIndex:0,ref:a.focusProxyRef,onFocus:w=>{const m=a.contentRef.current,C=w.relatedTarget,v=C===l.current,g=m==null?void 0:m.contains(C);(v||!g)&&a.onFocusProxyEnter(v?"start":"end")}}),i.viewport&&h.createElement("span",{"aria-owns":f})))}),Rp="navigationMenu.linkSelect",p7=h.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,active:r,onSelect:o,...i}=e;return h.createElement(Mg,{asChild:!0},h.createElement(fe.a,Y({"data-active":r?"":void 0,"aria-current":r?"page":void 0},i,{ref:t,onClick:le(e.onClick,a=>{const l=a.target,s=new CustomEvent(Rp,{bubbles:!0,cancelable:!0});if(l.addEventListener(Rp,u=>o==null?void 0:o(u),{once:!0}),su(l,s),!s.defaultPrevented&&!a.metaKey){const u=new CustomEvent(Ka,{bubbles:!0,cancelable:!0});su(l,u)}},{checkForDefaultPrevented:!1})})))}),Sl="NavigationMenuContent",v7=h.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Ar(Sl,e.__scopeNavigationMenu),i=Ig(Sl,e.__scopeNavigationMenu),a=Be(i.contentRef,t),l=i.value===o.value,s={value:i.value,triggerRef:i.triggerRef,focusProxyRef:i.focusProxyRef,wasEscapeCloseRef:i.wasEscapeCloseRef,onContentFocusOutside:i.onContentFocusOutside,onRootContentClose:i.onRootContentClose,...r};return o.viewport?h.createElement(m7,Y({forceMount:n},s,{ref:a})):h.createElement(_n,{present:n||l},h.createElement(g7,Y({"data-state":Dg(l)},s,{ref:a,onPointerEnter:le(e.onPointerEnter,o.onContentEnter),onPointerLeave:le(e.onPointerLeave,xu(o.onContentLeave)),style:{pointerEvents:!l&&o.isRootMenu?"none":void 0,...s.style}})))}),m7=h.forwardRef((e,t)=>{const n=Ar(Sl,e.__scopeNavigationMenu),{onViewportContentChange:r,onViewportContentRemove:o}=n;return yn(()=>{r(e.value,{ref:t,...e})},[e,t,r]),yn(()=>()=>o(e.value),[e.value,o]),null}),Ka="navigationMenu.rootContentDismiss",g7=h.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,triggerRef:o,focusProxyRef:i,wasEscapeCloseRef:a,onRootContentClose:l,onContentFocusOutside:s,...u}=e,f=Ar(Sl,n),c=h.useRef(null),d=Be(c,t),p=jg(f.baseId,r),w=Fg(f.baseId,r),m=e7(n),C=h.useRef(null),{onItemDismiss:v}=f;h.useEffect(()=>{const x=c.current;if(f.isRootMenu&&x){const E=()=>{var S;v(),l(),x.contains(document.activeElement)&&((S=o.current)===null||S===void 0||S.focus())};return x.addEventListener(Ka,E),()=>x.removeEventListener(Ka,E)}},[f.isRootMenu,e.value,o,v,l]);const g=h.useMemo(()=>{const E=m().map(P=>P.value);f.dir==="rtl"&&E.reverse();const S=E.indexOf(f.value),$=E.indexOf(f.previousValue),_=r===f.value,b=$===E.indexOf(r);if(!_&&!b)return C.current;const T=(()=>{if(S!==$){if(_&&$!==-1)return S>$?"from-end":"from-start";if(b&&S!==-1)return S>$?"to-start":"to-end"}return null})();return C.current=T,T},[f.previousValue,f.value,f.dir,m,r]);return h.createElement(Og,{asChild:!0},h.createElement(Yf,Y({id:w,"aria-labelledby":p,"data-motion":g,"data-orientation":f.orientation},u,{ref:d,onDismiss:()=>{var x;const E=new Event(Ka,{bubbles:!0,cancelable:!0});(x=c.current)===null||x===void 0||x.dispatchEvent(E)},onFocusOutside:le(e.onFocusOutside,x=>{var E;s();const S=x.target;(E=f.rootNavigationMenu)!==null&&E!==void 0&&E.contains(S)&&x.preventDefault()}),onPointerDownOutside:le(e.onPointerDownOutside,x=>{var E;const S=x.target,$=m().some(b=>{var T;return(T=b.ref.current)===null||T===void 0?void 0:T.contains(S)}),_=f.isRootMenu&&((E=f.viewport)===null||E===void 0?void 0:E.contains(S));($||_||!f.isRootMenu)&&x.preventDefault()}),onKeyDown:le(e.onKeyDown,x=>{const E=x.altKey||x.ctrlKey||x.metaKey;if(x.key==="Tab"&&!E){const _=wu(x.currentTarget),b=document.activeElement,T=_.findIndex(O=>O===b),M=x.shiftKey?_.slice(0,T).reverse():_.slice(T+1,_.length);if(td(M))x.preventDefault();else{var $;($=i.current)===null||$===void 0||$.focus()}}}),onEscapeKeyDown:le(e.onEscapeKeyDown,x=>{a.current=!0})})))}),y7="FocusGroup",Og=h.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=Ar(y7,n);return h.createElement(yu.Provider,{scope:n},h.createElement(yu.Slot,{scope:n},h.createElement(fe.div,Y({dir:o.dir},r,{ref:t}))))}),Np=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],w7="FocusGroupItem",Mg=h.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=n7(n),i=Ar(w7,n);return h.createElement(yu.ItemSlot,{scope:n},h.createElement(fe.button,Y({},r,{ref:t,onKeyDown:le(e.onKeyDown,a=>{if(["Home","End",...Np].includes(a.key)){let s=o().map(c=>c.ref.current);if([i.dir==="rtl"?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(a.key)&&s.reverse(),Np.includes(a.key)){const c=s.indexOf(a.currentTarget);s=s.slice(c+1)}setTimeout(()=>td(s)),a.preventDefault()}})})))});function wu(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function td(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}function x7(e){return e.forEach(t=>{t.dataset.tabindex=t.getAttribute("tabindex")||"",t.setAttribute("tabindex","-1")}),()=>{e.forEach(t=>{const n=t.dataset.tabindex;t.setAttribute("tabindex",n)})}}function Dg(e){return e?"open":"closed"}function jg(e,t){return`${e}-trigger-${t}`}function Fg(e,t){return`${e}-content-${t}`}function xu(e){return t=>t.pointerType==="mouse"?e(t):void 0}const C7=a7,E7=c7,_7=d7,S7=h7,b7=p7,$7=v7;var T7="var(--vocs_NavigationMenu_chevronDownIcon)",k7="vocs_NavigationMenu_content",R7="vocs_NavigationMenu_item",N7="vocs_NavigationMenu_link",P7="vocs_NavigationMenu_list",A7="vocs_NavigationMenu",L7="vocs_NavigationMenu_trigger vocs_NavigationMenu_link";const zg=e=>y.jsx(C7,{...e,className:I(e.className,A7)}),Bg=e=>y.jsx(E7,{...e,className:I(e.className,P7)}),Xl=({active:e,children:t,className:n,href:r})=>y.jsx(b7,{asChild:!0,children:y.jsx(rn,{"data-active":e,className:I(n,N7),href:r,variant:"styleless",children:t})}),Ug=e=>y.jsx(_7,{...e,className:I(e.className,R7)}),Hg=({active:e,className:t,...n})=>{const{basePath:r}=We(),o=r;return y.jsx(S7,{...n,"data-active":e,className:I(t,L7),style:Yt({[T7]:`url(${o}/.vocs/icons/chevron-down.svg)`})})},Vg=e=>y.jsx($7,{...e,className:I(e.className,k7)});function Wg(){return y.jsxs("svg",{width:"100%",height:"100%",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 127.14 96.36",children:[y.jsx("title",{children:"Discord"}),y.jsx("g",{id:"图层_2","data-name":"图层 2",children:y.jsx("g",{id:"Discord_Logos","data-name":"Discord Logos",children:y.jsx("g",{id:"Discord_Logo_-_Large_-_White","data-name":"Discord Logo - Large - White",children:y.jsx("path",{d:"M107.7,8.07A105.15,105.15,0,0,0,81.47,0a72.06,72.06,0,0,0-3.36,6.83A97.68,97.68,0,0,0,49,6.83,72.37,72.37,0,0,0,45.64,0,105.89,105.89,0,0,0,19.39,8.09C2.79,32.65-1.71,56.6.54,80.21h0A105.73,105.73,0,0,0,32.71,96.36,77.7,77.7,0,0,0,39.6,85.25a68.42,68.42,0,0,1-10.85-5.18c.91-.66,1.8-1.34,2.66-2a75.57,75.57,0,0,0,64.32,0c.87.71,1.76,1.39,2.66,2a68.68,68.68,0,0,1-10.87,5.19,77,77,0,0,0,6.89,11.1A105.25,105.25,0,0,0,126.6,80.22h0C129.24,52.84,122.09,29.11,107.7,8.07ZM42.45,65.69C36.18,65.69,31,60,31,53s5-12.74,11.43-12.74S54,46,53.89,53,48.84,65.69,42.45,65.69Zm42.24,0C78.41,65.69,73.25,60,73.25,53s5-12.74,11.44-12.74S96.23,46,96.12,53,91.08,65.69,84.69,65.69Z",fill:"currentColor"})})})})]})}function Kg(){return y.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 98 96",xmlns:"http://www.w3.org/2000/svg",children:[y.jsx("title",{children:"GitHub"}),y.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M48.854 0C21.839 0 0 22 0 49.217c0 21.756 13.993 40.172 33.405 46.69 2.427.49 3.316-1.059 3.316-2.362 0-1.141-.08-5.052-.08-9.127-13.59 2.934-16.42-5.867-16.42-5.867-2.184-5.704-5.42-7.17-5.42-7.17-4.448-3.015.324-3.015.324-3.015 4.934.326 7.523 5.052 7.523 5.052 4.367 7.496 11.404 5.378 14.235 4.074.404-3.178 1.699-5.378 3.074-6.6-10.839-1.141-22.243-5.378-22.243-24.283 0-5.378 1.94-9.778 5.014-13.2-.485-1.222-2.184-6.275.486-13.038 0 0 4.125-1.304 13.426 5.052a46.97 46.97 0 0 1 12.214-1.63c4.125 0 8.33.571 12.213 1.63 9.302-6.356 13.427-5.052 13.427-5.052 2.67 6.763.97 11.816.485 13.038 3.155 3.422 5.015 7.822 5.015 13.2 0 18.905-11.404 23.06-22.324 24.283 1.78 1.548 3.316 4.481 3.316 9.126 0 6.6-.08 11.897-.08 13.526 0 1.304.89 2.853 3.316 2.364 19.412-6.52 33.405-24.935 33.405-46.691C97.707 22 75.788 0 48.854 0z",fill:"currentColor"})]})}function I7(){return y.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 78 82",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[y.jsx("title",{children:"Moon"}),y.jsx("path",{d:"M62.8455 45.9668C63.6268 45.9668 64.2127 45.3809 64.3104 44.5508C65.4334 34.3457 66.0682 33.9551 76.4197 32.3438C77.3963 32.1973 77.9334 31.7578 77.9334 30.8789C77.9334 30.0977 77.3963 29.5605 76.6151 29.4629C66.1658 27.4609 65.4334 27.4609 64.3104 17.2559C64.2127 16.377 63.6268 15.8398 62.8455 15.8398C62.0154 15.8398 61.4783 16.377 61.3807 17.207C60.1111 27.6074 59.6229 28.0957 49.0272 29.4629C48.2947 29.5117 47.7088 30.0977 47.7088 30.8789C47.7088 31.709 48.2947 32.1973 49.0272 32.3438C59.6229 34.3457 60.0623 34.4434 61.3807 44.6484C61.4783 45.3809 62.0154 45.9668 62.8455 45.9668ZM44.535 19.5508C45.0233 19.5508 45.3162 19.2578 45.4139 18.7695C46.6834 12.4707 46.5369 12.373 53.1287 11.0547C53.5682 10.957 53.91 10.7129 53.91 10.1758C53.91 9.63868 53.5682 9.39448 53.1287 9.29688C46.5369 7.97848 46.6834 7.88089 45.4139 1.58199C45.3162 1.09379 45.0233 0.800781 44.535 0.800781C43.9979 0.800781 43.7049 1.09379 43.6072 1.58199C42.3377 7.88089 42.4842 7.97848 35.9412 9.29688C35.4529 9.39448 35.1111 9.63868 35.1111 10.1758C35.1111 10.7129 35.4529 10.957 35.9412 11.0547C42.4842 12.373 42.3865 12.4707 43.6072 18.7695C43.7049 19.2578 43.9979 19.5508 44.535 19.5508Z",fill:"currentColor"}),y.jsx("path",{d:"M34.3298 81.2696C48.49 81.2696 59.9157 74.043 65.0915 61.7872C65.8239 59.9806 65.5798 58.6134 64.7497 57.7833C64.0173 57.0509 62.7478 56.9044 61.3318 57.4903C58.4509 58.6134 54.9353 59.2481 50.6384 59.2481C33.695 59.2481 22.7575 48.6036 22.7575 32.2462C22.7575 27.4122 23.6853 22.6759 24.7595 20.5763C25.5407 18.9161 25.4919 17.5001 24.8083 16.67C24.0271 15.7423 22.6599 15.4005 20.7068 16.1329C8.64624 20.7716 0.345459 33.4181 0.345459 47.8712C0.345459 66.8165 14.5056 81.2696 34.3298 81.2696ZM34.4275 74.5801C18.4607 74.5801 7.03494 62.9591 7.03494 47.3341C7.03494 38.2521 10.9411 30.0489 17.6306 24.629C16.8005 27.0704 16.361 30.6837 16.361 34.1505C16.361 52.8517 29.5446 65.6935 48.8806 65.6935C52.0544 65.6935 54.9841 65.3517 56.4001 64.9122C51.615 70.918 43.4607 74.5801 34.4275 74.5801Z",fill:"currentColor"})]})}function O7(){return y.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 84 84",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[y.jsx("title",{children:"Sun"}),y.jsx("path",{d:"M41.8675 15.5254C43.9183 15.5254 45.6273 13.7676 45.6273 11.7168V3.80658C45.6273 1.75588 43.9183 0.046875 41.8675 0.046875C39.7679 0.046875 38.0589 1.75588 38.0589 3.80658V11.7168C38.0589 13.7676 39.7679 15.5254 41.8675 15.5254ZM60.3246 23.2402C61.7895 24.7051 64.2309 24.7539 65.7446 23.2402L71.3598 17.6738C72.7758 16.209 72.7758 13.7188 71.3598 12.2539C69.8949 10.7891 67.4535 10.7891 65.9887 12.2539L60.3246 17.918C58.9086 19.3828 58.9086 21.7754 60.3246 23.2402ZM67.9906 41.7461C67.9906 43.7969 69.7485 45.5547 71.7992 45.5547H79.6117C81.7113 45.5547 83.4202 43.7969 83.4202 41.7461C83.4202 39.6953 81.7113 37.9375 79.6117 37.9375H71.7992C69.7485 37.9375 67.9906 39.6953 67.9906 41.7461ZM60.3246 60.3008C58.9086 61.7656 58.9086 64.1582 60.3246 65.623L65.9887 71.2871C67.4535 72.7519 69.8949 72.7031 71.3598 71.2383C72.7758 69.7734 72.7758 67.332 71.3598 65.8672L65.6957 60.3008C64.2309 58.8359 61.7895 58.8359 60.3246 60.3008ZM41.8675 67.9668C39.7679 67.9668 38.0589 69.7246 38.0589 71.7754V79.6855C38.0589 81.7363 39.7679 83.4453 41.8675 83.4453C43.9183 83.4453 45.6273 81.7363 45.6273 79.6855V71.7754C45.6273 69.7246 43.9183 67.9668 41.8675 67.9668ZM23.3617 60.3008C21.8969 58.8359 19.4067 58.8359 17.9418 60.3008L12.3754 65.8184C10.9106 67.2832 10.9106 69.7246 12.3266 71.1894C13.7914 72.6543 16.2328 72.7031 17.6977 71.2383L23.3129 65.623C24.7778 64.1582 24.7778 61.7656 23.3617 60.3008ZM15.6957 41.7461C15.6957 39.6953 13.9867 37.9375 11.8871 37.9375H4.07455C1.97497 37.9375 0.265991 39.6953 0.265991 41.7461C0.265991 43.7969 1.97497 45.5547 4.07455 45.5547H11.8871C13.9867 45.5547 15.6957 43.7969 15.6957 41.7461ZM23.3129 23.2402C24.7778 21.8242 24.7778 19.334 23.3617 17.918L17.7465 12.2539C16.3305 10.8379 13.8403 10.7891 12.4242 12.2539C10.9594 13.7188 10.9594 16.209 12.3754 17.625L17.9418 23.2402C19.4067 24.7051 21.8481 24.7051 23.3129 23.2402Z",fill:"currentColor"}),y.jsx("path",{d:"M41.8675 61.668C52.7073 61.668 61.7405 52.6836 61.7405 41.7461C61.7405 30.8086 52.7073 21.8242 41.8675 21.8242C30.9788 21.8242 21.9456 30.8086 21.9456 41.7461C21.9456 52.6836 30.9788 61.668 41.8675 61.668ZM41.8675 55.0273C34.5921 55.0273 28.5862 48.9727 28.5862 41.7461C28.5862 34.5195 34.5921 28.4648 41.8675 28.4648C49.0941 28.4648 55.0999 34.5195 55.0999 41.7461C55.0999 48.9727 49.0941 55.0273 41.8675 55.0273Z",fill:"currentColor"})]})}function Yg(){return y.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 50 50",children:[y.jsx("title",{children:"Telegram"}),y.jsx("path",{d:"M25 2c12.703 0 23 10.297 23 23S37.703 48 25 48 2 37.703 2 25 12.297 2 25 2zm7.934 32.375c.423-1.298 2.405-14.234 2.65-16.783.074-.772-.17-1.285-.648-1.514-.578-.278-1.434-.139-2.427.219-1.362.491-18.774 7.884-19.78 8.312-.954.405-1.856.847-1.856 1.487 0 .45.267.703 1.003.966.766.273 2.695.858 3.834 1.172 1.097.303 2.346.04 3.046-.395.742-.461 9.305-6.191 9.92-6.693.614-.502 1.104.141.602.644-.502.502-6.38 6.207-7.155 6.997-.941.959-.273 1.953.358 2.351.721.454 5.906 3.932 6.687 4.49.781.558 1.573.811 2.298.811.725 0 1.107-.955 1.468-2.064z",fill:"currentColor"})]})}function Gg(){return y.jsxs("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[y.jsx("title",{children:"Warpcast"}),y.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.92028 31.9901H24.0698C28.4371 31.9901 31.9901 28.4373 31.9901 24.0699V7.92053C31.9901 3.55319 28.4371 0.000137329 24.0698 0.000137329H7.92028C3.55304 0.000137329 0 3.55319 0 7.92053V24.0699C0 28.4373 3.55304 31.9901 7.92028 31.9901ZM19.4134 16.048L20.9908 10.124H25.1383L21.2924 23.2218H17.7062L15.9951 17.1397L14.284 23.2218H10.7055L6.85115 10.124H10.999L12.5915 16.0916L14.1891 10.124H17.8309L19.4134 16.048Z",fill:"currentColor"})]})}function Qg(){return y.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 1200 1227",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[y.jsx("title",{children:"X"}),y.jsx("path",{d:"M714.163 519.284L1160.89 0H1055.03L667.137 450.887L357.328 0H0L468.492 681.821L0 1226.37H105.866L515.491 750.218L842.672 1226.37H1200L714.137 519.284H714.163ZM569.165 687.828L521.697 619.934L144.011 79.6944H306.615L611.412 515.685L658.88 583.579L1055.08 1150.3H892.476L569.165 687.854V687.828Z",fill:"currentColor"})]})}Cu.Curtain=M7;function Cu(){var r,o,i,a;const e=We(),{showLogo:t,showSidebar:n}=Pr();return y.jsxs("div",{className:I(U8,t&&!n&&H8),children:[y.jsx(D8,{}),t&&y.jsx("div",{className:B8,children:y.jsx("div",{className:z8,children:y.jsx(Gn,{to:"/",style:{alignItems:"center",display:"flex",height:"56px",marginTop:"4px"},children:y.jsx(Jf,{})})})}),y.jsx("div",{className:Tp}),y.jsxs("div",{className:Tp,children:[(((r=e.topNav)==null?void 0:r.length)||0)>0&&y.jsxs(y.Fragment,{children:[y.jsx("div",{className:Xs,children:y.jsx(D7,{})}),y.jsx("div",{className:I($p,ka)})]}),e.socials&&((o=e.socials)==null?void 0:o.length)>0&&y.jsxs(y.Fragment,{children:[y.jsx("div",{className:I(Xs,ka),style:{marginLeft:"-8px",marginRight:"-8px"},children:e.socials.map((l,s)=>y.jsx("div",{className:_l,children:y.jsx(U7,{...l})},s))}),!((i=e.theme)!=null&&i.colorScheme)&&y.jsx("div",{className:I($p,ka)})]}),!((a=e.theme)!=null&&a.colorScheme)&&y.jsx("div",{className:I(Xs,ka),style:{marginLeft:"-8px",marginRight:"-8px"},children:y.jsx("div",{className:_l,children:y.jsx(F7,{})})})]})]})}function M7(){return y.jsx("div",{className:F8})}function D7(){const{topNav:e}=We();if(!e)return null;const{pathname:t}=Re(),n=Yi({pathname:t,items:e});return y.jsx(zg,{delayDuration:0,children:y.jsx(Bg,{children:e.map((r,o)=>r.link?y.jsx(Xl,{active:n.includes(r.id),className:_l,href:r.link,children:r.text},o):r.items?y.jsxs(Ug,{className:_l,children:[y.jsx(Hg,{active:n.includes(r.id),children:r.text}),y.jsx(Vg,{className:j8,children:y.jsx(j7,{items:r.items})})]},o):null)})})}function j7({items:e}){const{pathname:t}=Re(),n=Yi({pathname:t,items:e});return y.jsx("ul",{children:e==null?void 0:e.map((r,o)=>y.jsx(Xl,{active:n.includes(r.id),href:r.link,children:r.text},o))})}function F7(){const{toggle:e}=S5();return y.jsxs("button",{className:Lg,onClick:e,type:"button",children:[y.jsx(st,{className:I(mu,b5),size:"20px",label:"Light",icon:O7}),y.jsx(st,{className:I(mu,$5),size:"20px",label:"Dark",icon:I7,style:{marginTop:"-2px"}})]})}const z7={discord:Wg,github:Kg,telegram:Yg,warpcast:Gg,x:Qg},B7={discord:"23px",github:"20px",telegram:"21px",warpcast:"20px",x:"18px"};function U7({icon:e,label:t,link:n}){return y.jsx("a",{className:Lg,href:n,target:"_blank",rel:"noopener noreferrer",children:y.jsx(st,{className:mu,label:t,icon:z7[e],size:B7[e]||"20px"})})}const H7=({children:e})=>e,V7=({children:e})=>e;function W7(){const e=Nr(),t=We();return h.useMemo(()=>{const{pattern:n="",text:r="Edit page"}=t.editLink??{};let o="";return typeof n=="function"?o="":e.filePath&&(o=n.replace(/:path/g,e.filePath)),{url:o,text:r}},[t.editLink,e.filePath])}function Zg(){const[e,t]=h.useState(!1);return h.useEffect(()=>{t(!0)},[]),e}var K7="vocs_Footer_container",Y7="vocs_Footer_editLink",G7="vocs_Footer_lastUpdated",Q7="vocs_Footer_navigation",Pp="vocs_Footer_navigationIcon",Z7="vocs_Footer_navigationIcon_left",X7="vocs_Footer_navigationIcon_right",Ap="vocs_Footer_navigationItem",J7="vocs_Footer_navigationItem_left",q7="vocs_Footer_navigationItem_right",Lp="vocs_Footer_navigationText",Ip="vocs_Footer_navigationTextInner",e6="vocs_Footer";function t6(){return y.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 72 60",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[y.jsx("title",{children:"Arrow Left"}),y.jsx("path",{d:"M0.325684 29.7461C0.325684 30.8203 0.813963 31.8457 1.69286 32.6758L26.8882 57.8223C27.7671 58.6524 28.7437 59.043 29.7691 59.043C31.9175 59.043 33.5777 57.4317 33.5777 55.2344C33.5777 54.209 33.2359 53.1836 32.5035 52.5L25.7652 45.5176L9.26126 30.6738L8.38236 32.7734L21.3706 33.7012H67.4644C69.7593 33.7012 71.3706 32.041 71.3706 29.7461C71.3706 27.4512 69.7593 25.791 67.4644 25.791H21.3706L8.38236 26.7188L9.26126 28.8672L25.7652 13.9746L32.5035 6.99221C33.2359 6.30861 33.5777 5.28322 33.5777 4.25782C33.5777 2.06052 31.9175 0.449219 29.7691 0.449219C28.7437 0.449219 27.7671 0.839814 26.8882 1.66991L1.69286 26.8164C0.813963 27.6465 0.325684 28.6719 0.325684 29.7461Z",fill:"currentColor"})]})}function n6(){return y.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 72 60",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[y.jsx("title",{children:"Arrow Right"}),y.jsx("path",{d:"M71.3706 29.7461C71.3706 28.6719 70.8824 27.6465 70.0035 26.8164L44.8081 1.66991C43.9292 0.839814 42.9527 0.449219 41.9273 0.449219C39.7789 0.449219 38.1187 2.06052 38.1187 4.25782C38.1187 5.28322 38.4605 6.30861 39.1929 6.99221L45.9312 13.9746L62.4351 28.8672L63.314 26.7188L50.3257 25.791H4.23196C1.93706 25.791 0.325684 27.4512 0.325684 29.7461C0.325684 32.041 1.93706 33.7012 4.23196 33.7012H50.3257L63.314 32.7734L62.4351 30.6738L45.9312 45.5176L39.1929 52.5C38.4605 53.1836 38.1187 54.209 38.1187 55.2344C38.1187 57.4317 39.7789 59.043 41.9273 59.043C42.9527 59.043 43.9292 58.6524 44.8081 57.8223L70.0035 32.6758C70.8824 31.8457 71.3706 30.8203 71.3706 29.7461Z",fill:"currentColor"})]})}function r6(){const{layout:e}=Pr(),t=Zg(),n=Nr(),r=h.useMemo(()=>n.lastUpdatedAt?new Date(n.lastUpdatedAt):void 0,[n.lastUpdatedAt]),o=h.useMemo(()=>r==null?void 0:r.toISOString(),[r]);return y.jsxs("footer",{className:e6,children:[e==="docs"&&y.jsxs(y.Fragment,{children:[y.jsxs("div",{className:K7,children:[y.jsx(o6,{}),t&&n.lastUpdatedAt&&y.jsxs("div",{className:G7,children:["Last updated:"," ",y.jsx("time",{dateTime:o,children:new Intl.DateTimeFormat(void 0,{dateStyle:"short",timeStyle:"short"}).format(r)})]})]}),y.jsx(i6,{})]}),y.jsx(V7,{})]})}function o6(){const e=W7();return e.url?y.jsx("div",{children:y.jsxs(rn,{className:Y7,href:e.url,children:[y.jsx(C5,{})," ",e.text]})}):null}function i6(){const e=Zg(),t=Yl(),{pathname:n}=Re(),r=h.useMemo(()=>Xg(t.items||[]).filter(s=>s.link),[t]),o=h.useMemo(()=>r.findIndex(s=>s.link===n),[r,n]),[i,a]=h.useMemo(()=>o<0?[]:o===0?[null,r[o+1]]:o===r.length-1?[r[o-1],null]:[r[o-1],r[o+1]],[o,r]),l=Uf();return h.useEffect(()=>{let s=o,u=!1;const f=d=>{if(d.code==="ShiftLeft"&&(u=!0),u){const p=r[s+1],w=r[s-1];d.code==="ArrowRight"&&(p!=null&&p.link)&&(l(p.link),s++),d.code==="ArrowLeft"&&(w!=null&&w.link)&&(l(w.link),s--)}},c=d=>{d.code==="ShiftLeft"&&(u=!1)};return window.addEventListener("keydown",f),window.addEventListener("keyup",c),()=>{window.removeEventListener("keydown",f),window.removeEventListener("keyup",c)}},[]),e?y.jsxs("div",{className:Q7,children:[i?y.jsxs(rn,{className:I(Ap,J7),href:i.link,variant:"styleless",children:[y.jsxs("div",{className:Lp,children:[y.jsx("div",{className:I(Pp,Z7),style:Yt({[gu]:"0.75em"}),children:y.jsx(st,{label:"Previous",icon:t6})}),y.jsx("div",{className:Ip,children:i.text})]}),y.jsx(ro,{description:"Previous",keys:["shift","←"]})]}):y.jsx("div",{}),a?y.jsxs(rn,{className:I(Ap,q7),href:a.link,variant:"styleless",children:[y.jsxs("div",{className:Lp,children:[y.jsx("div",{className:Ip,style:{textAlign:"right"},children:a.text}),y.jsx("div",{className:I(Pp,X7),style:Yt({[gu]:"0.75em"}),children:y.jsx(st,{label:"Next",icon:n6})})]}),y.jsx(ro,{description:"Next",keys:["shift","→"]})]}):y.jsx("div",{})]}):null}function Xg(e){const t=[];for(const n of e){if(n.items){t.push(...Xg(n.items));continue}t.push(n)}return t}const Jg="Collapsible",[a6,qg]=En(Jg),[l6,nd]=a6(Jg),s6=h.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:r,defaultOpen:o,disabled:i,onOpenChange:a,...l}=e,[s=!1,u]=or({prop:r,defaultProp:o,onChange:a});return h.createElement(l6,{scope:n,disabled:i,contentId:on(),open:s,onOpenToggle:h.useCallback(()=>u(f=>!f),[u])},h.createElement(fe.div,Y({"data-state":rd(s),"data-disabled":i?"":void 0},l,{ref:t})))}),c6="CollapsibleTrigger",u6=h.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,o=nd(c6,n);return h.createElement(fe.button,Y({type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":rd(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled},r,{ref:t,onClick:le(e.onClick,o.onOpenToggle)}))}),e1="CollapsibleContent",f6=h.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=nd(e1,e.__scopeCollapsible);return h.createElement(_n,{present:n||o.open},({present:i})=>h.createElement(d6,Y({},r,{ref:t,present:i})))}),d6=h.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:o,...i}=e,a=nd(e1,n),[l,s]=h.useState(r),u=h.useRef(null),f=Be(t,u),c=h.useRef(0),d=c.current,p=h.useRef(0),w=p.current,m=a.open||l,C=h.useRef(m),v=h.useRef();return h.useEffect(()=>{const g=requestAnimationFrame(()=>C.current=!1);return()=>cancelAnimationFrame(g)},[]),yn(()=>{const g=u.current;if(g){v.current=v.current||{transitionDuration:g.style.transitionDuration,animationName:g.style.animationName},g.style.transitionDuration="0s",g.style.animationName="none";const x=g.getBoundingClientRect();c.current=x.height,p.current=x.width,C.current||(g.style.transitionDuration=v.current.transitionDuration,g.style.animationName=v.current.animationName),s(r)}},[a.open,r]),h.createElement(fe.div,Y({"data-state":rd(a.open),"data-disabled":a.disabled?"":void 0,id:a.contentId,hidden:!m},i,{ref:f,style:{"--radix-collapsible-content-height":d?`${d}px`:void 0,"--radix-collapsible-content-width":w?`${w}px`:void 0,...e.style}}),m&&o)});function rd(e){return e?"open":"closed"}const h6=s6,p6=u6,v6=f6,Lr="Accordion",m6=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[od,g6,y6]=Zl(Lr),[Jl,u$]=En(Lr,[y6,qg]),id=qg(),t1=Z.forwardRef((e,t)=>{const{type:n,...r}=e,o=r,i=r;return Z.createElement(od.Provider,{scope:e.__scopeAccordion},n==="multiple"?Z.createElement(E6,Y({},i,{ref:t})):Z.createElement(C6,Y({},o,{ref:t})))});t1.propTypes={type(e){const t=e.value||e.defaultValue;return e.type&&!["single","multiple"].includes(e.type)?new Error("Invalid prop `type` supplied to `Accordion`. Expected one of `single | multiple`."):e.type==="multiple"&&typeof t=="string"?new Error("Invalid prop `type` supplied to `Accordion`. Expected `single` when `defaultValue` or `value` is type `string`."):e.type==="single"&&Array.isArray(t)?new Error("Invalid prop `type` supplied to `Accordion`. Expected `multiple` when `defaultValue` or `value` is type `string[]`."):null}};const[n1,w6]=Jl(Lr),[r1,x6]=Jl(Lr,{collapsible:!1}),C6=Z.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},collapsible:i=!1,...a}=e,[l,s]=or({prop:n,defaultProp:r,onChange:o});return Z.createElement(n1,{scope:e.__scopeAccordion,value:l?[l]:[],onItemOpen:s,onItemClose:Z.useCallback(()=>i&&s(""),[i,s])},Z.createElement(r1,{scope:e.__scopeAccordion,collapsible:i},Z.createElement(o1,Y({},a,{ref:t}))))}),E6=Z.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...i}=e,[a=[],l]=or({prop:n,defaultProp:r,onChange:o}),s=Z.useCallback(f=>l((c=[])=>[...c,f]),[l]),u=Z.useCallback(f=>l((c=[])=>c.filter(d=>d!==f)),[l]);return Z.createElement(n1,{scope:e.__scopeAccordion,value:a,onItemOpen:s,onItemClose:u},Z.createElement(r1,{scope:e.__scopeAccordion,collapsible:!0},Z.createElement(o1,Y({},i,{ref:t}))))}),[_6,ad]=Jl(Lr),o1=Z.forwardRef((e,t)=>{const{__scopeAccordion:n,disabled:r,dir:o,orientation:i="vertical",...a}=e,l=Z.useRef(null),s=Be(l,t),u=g6(n),c=Ql(o)==="ltr",d=le(e.onKeyDown,p=>{var w;if(!m6.includes(p.key))return;const m=p.target,C=u().filter(T=>{var P;return!((P=T.ref.current)!==null&&P!==void 0&&P.disabled)}),v=C.findIndex(T=>T.ref.current===m),g=C.length;if(v===-1)return;p.preventDefault();let x=v;const E=0,S=g-1,$=()=>{x=v+1,x>S&&(x=E)},_=()=>{x=v-1,x{const{__scopeAccordion:n,value:r,...o}=e,i=ad(Eu,n),a=w6(Eu,n),l=id(n),s=on(),u=r&&a.value.includes(r)||!1,f=i.disabled||e.disabled;return Z.createElement(S6,{scope:n,open:u,disabled:f,triggerId:s},Z.createElement(h6,Y({"data-orientation":i.orientation,"data-state":R6(u)},l,o,{ref:t,disabled:f,open:u,onOpenChange:c=>{c?a.onItemOpen(r):a.onItemClose(r)}})))}),Op="AccordionTrigger",$6=Z.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=ad(Lr,n),i=i1(Op,n),a=x6(Op,n),l=id(n);return Z.createElement(od.ItemSlot,{scope:n},Z.createElement(p6,Y({"aria-disabled":i.open&&!a.collapsible||void 0,"data-orientation":o.orientation,id:i.triggerId},l,r,{ref:t})))}),T6="AccordionContent",k6=Z.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=ad(Lr,n),i=i1(T6,n),a=id(n);return Z.createElement(v6,Y({role:"region","aria-labelledby":i.triggerId,"data-orientation":o.orientation},a,r,{ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}}))});function R6(e){return e?"open":"closed"}const N6=t1,P6=b6,A6=$6,L6=k6;var I6="vocs_MobileSearch_searchButton";function O6(){const[e,t]=h.useState(!1);return y.jsxs(Cg,{open:e,onOpenChange:t,children:[y.jsx(Eg,{asChild:!0,children:y.jsx("button",{className:I6,type:"button","aria-label":"Search",children:y.jsx(Kf,{height:21,width:21})})}),y.jsx(Ag,{open:e,onClose:()=>t(!1)})]})}var M6="vocs_MobileTopNav_button",D6="var(--vocs_MobileTopNav_chevronDownIcon)",j6="var(--vocs_MobileTopNav_chevronUpIcon)",F6="vocs_MobileTopNav_content",z6="vocs_MobileTopNav_curtain",Mp="vocs_MobileTopNav_curtainGroup",qs="vocs_MobileTopNav_curtainItem",B6="vocs_MobileTopNav_divider",Ra="vocs_MobileTopNav_group",U6="vocs_MobileTopNav_icon",H6="vocs_MobileTopNav_item",V6="vocs_MobileTopNav_logo",W6="vocs_MobileTopNav_menuTitle",a1="vocs_MobileTopNav_menuTrigger",l1="vocs_MobileTopNav_navigation",K6="vocs_MobileTopNav_navigationContent",ei="vocs_MobileTopNav_navigationItem",Y6="vocs_MobileTopNav_trigger",G6="vocs_MobileTopNav_navigation_compact",Q6="vocs_MobileTopNav_outlinePopover",Dp="vocs_MobileTopNav_outlineTrigger",Z6="vocs_MobileTopNav",jp="vocs_MobileTopNav_section",X6="vocs_MobileTopNav_separator",J6="vocs_MobileTopNav_sidebarPopover",q6="vocs_MobileTopNav_topNavPopover";function eC(e,t){let n=!1;return()=>{n=!0,setTimeout(()=>{n&&e(),n=!1},t)}}var tC="vocs_Outline_heading",nC="vocs_Outline_item",rC="vocs_Outline_items",oC="vocs_Outline_link",iC="vocs_Outline_nav",aC="vocs_Outline";function s1({minLevel:e=2,maxLevel:t=3,highlightActive:n=!0,onClickItem:r,showTitle:o=!0}={}){const{outlineFooter:i}=We(),{showOutline:a}=Pr(),l=typeof a=="number"?e+a-1:t,s=h.useRef(!0),{pathname:u,hash:f}=Re(),[c,d]=h.useState([]);h.useEffect(()=>{if(typeof window>"u")return;const v=Array.from(document.querySelectorAll(`.${Y0}`));d(v)},[u]);const p=h.useMemo(()=>c?c.map(v=>{const g=v.querySelector(`.${G0}`);if(!g)return null;const x=g.getBoundingClientRect(),E=g.id,S=Number(v.tagName[1]),$=v.textContent,_=window.scrollY+x.top;return Sl?null:{id:E,level:S,slugTargetElement:g,text:$,topOffset:_}}).filter(Boolean):[],[c,l,e]),[w,m]=h.useState(f.replace("#",""));if(h.useEffect(()=>{if(typeof window>"u")return;const v=new IntersectionObserver(([g])=>{var E;if(!s.current)return;const x=g.target.id;if(g.isIntersecting)m(x);else{if(!(g.target.getBoundingClientRect().top>0))return;const _=p.findIndex(T=>T.id===w),b=(E=p[_-1])==null?void 0:E.id;m(b)}},{rootMargin:"0px 0px -95% 0px"});for(const g of p)v.observe(g.slugTargetElement);return()=>v.disconnect()},[w,p]),h.useEffect(()=>{if(typeof window>"u")return;const v=new IntersectionObserver(([g])=>{var E;if(!s.current)return;const x=(E=p[p.length-1])==null?void 0:E.id;g.isIntersecting?m(x):w===x&&m(p[p.length-2].id)});return v.observe(document.querySelector("[data-bottom-observer]")),()=>v.disconnect()},[w,p]),h.useEffect(()=>{if(typeof window>"u")return;const v=eC(()=>{var g,x,E;if(s.current){if(window.scrollY===0){m((g=p[0])==null?void 0:g.id);return}if(window.scrollY+document.documentElement.clientHeight>=document.documentElement.scrollHeight){m((x=p[p.length-1])==null?void 0:x.id);return}for(let S=0;Swindow.removeEventListener("scroll",v)},[p]),p.length===0)return null;const C=p.filter(v=>v.level===e);return y.jsxs("aside",{className:aC,children:[y.jsxs("nav",{className:iC,children:[o&&y.jsx("h2",{className:tC,children:"On this page"}),y.jsx(c1,{activeId:n?w:null,items:p,onClickItem:()=>{r==null||r(),s.current=!1,setTimeout(()=>{s.current=!0},500)},levelItems:C,setActiveId:m})]}),Cl(i)]})}function c1({activeId:e,items:t,levelItems:n,onClickItem:r,setActiveId:o}){const{pathname:i}=Re();return y.jsx("ul",{className:rC,children:n.map(({id:a,level:l,text:s})=>{const u=`#${a}`,f=e===a,c=(()=>{var C;const p=t.findIndex(v=>v.id===a)+1,w=(C=t[p])==null?void 0:C.level;if(w<=l)return null;const m=[];for(let v=p;v{r==null||r(),o(a)},className:oC,children:s})}),c&&y.jsx(c1,{activeId:e,levelItems:c,items:t,onClickItem:r,setActiveId:o})]},a)})})}const lC=["top","right","bottom","left"],Qn=Math.min,wt=Math.max,bl=Math.round,Na=Math.floor,Zn=e=>({x:e,y:e}),sC={left:"right",right:"left",bottom:"top",top:"bottom"},cC={start:"end",end:"start"};function _u(e,t,n){return wt(e,Qn(t,n))}function wn(e,t){return typeof e=="function"?e(t):e}function xn(e){return e.split("-")[0]}function Lo(e){return e.split("-")[1]}function ld(e){return e==="x"?"y":"x"}function sd(e){return e==="y"?"height":"width"}function Io(e){return["top","bottom"].includes(xn(e))?"y":"x"}function cd(e){return ld(Io(e))}function uC(e,t,n){n===void 0&&(n=!1);const r=Lo(e),o=cd(e),i=sd(o);let a=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=$l(a)),[a,$l(a)]}function fC(e){const t=$l(e);return[Su(e),t,Su(t)]}function Su(e){return e.replace(/start|end/g,t=>cC[t])}function dC(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:a;default:return[]}}function hC(e,t,n,r){const o=Lo(e);let i=dC(xn(e),n==="start",r);return o&&(i=i.map(a=>a+"-"+o),t&&(i=i.concat(i.map(Su)))),i}function $l(e){return e.replace(/left|right|bottom|top/g,t=>sC[t])}function pC(e){return{top:0,right:0,bottom:0,left:0,...e}}function u1(e){return typeof e!="number"?pC(e):{top:e,right:e,bottom:e,left:e}}function Tl(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Fp(e,t,n){let{reference:r,floating:o}=e;const i=Io(t),a=cd(t),l=sd(a),s=xn(t),u=i==="y",f=r.x+r.width/2-o.width/2,c=r.y+r.height/2-o.height/2,d=r[l]/2-o[l]/2;let p;switch(s){case"top":p={x:f,y:r.y-o.height};break;case"bottom":p={x:f,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:c};break;case"left":p={x:r.x-o.width,y:c};break;default:p={x:r.x,y:r.y}}switch(Lo(t)){case"start":p[a]-=d*(n&&u?-1:1);break;case"end":p[a]+=d*(n&&u?-1:1);break}return p}const vC=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,l=i.filter(Boolean),s=await(a.isRTL==null?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:c}=Fp(u,r,s),d=r,p={},w=0;for(let m=0;m({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:a,elements:l,middlewareData:s}=t,{element:u,padding:f=0}=wn(e,t)||{};if(u==null)return{};const c=u1(f),d={x:n,y:r},p=cd(o),w=sd(p),m=await a.getDimensions(u),C=p==="y",v=C?"top":"left",g=C?"bottom":"right",x=C?"clientHeight":"clientWidth",E=i.reference[w]+i.reference[p]-d[p]-i.floating[w],S=d[p]-i.reference[p],$=await(a.getOffsetParent==null?void 0:a.getOffsetParent(u));let _=$?$[x]:0;(!_||!await(a.isElement==null?void 0:a.isElement($)))&&(_=l.floating[x]||i.floating[w]);const b=E/2-S/2,T=_/2-m[w]/2-1,P=Qn(c[v],T),M=Qn(c[g],T),O=P,j=_-m[w]-M,R=_/2-m[w]/2+b,F=_u(O,R,j),W=!s.arrow&&Lo(o)!=null&&R!==F&&i.reference[w]/2-(RO<=0)){var T,P;const O=(((T=i.flip)==null?void 0:T.index)||0)+1,j=S[O];if(j)return{data:{index:O,overflows:b},reset:{placement:j}};let R=(P=b.filter(F=>F.overflows[0]<=0).sort((F,W)=>F.overflows[1]-W.overflows[1])[0])==null?void 0:P.placement;if(!R)switch(p){case"bestFit":{var M;const F=(M=b.map(W=>[W.placement,W.overflows.filter(H=>H>0).reduce((H,A)=>H+A,0)]).sort((W,H)=>W[1]-H[1])[0])==null?void 0:M[0];F&&(R=F);break}case"initialPlacement":R=l;break}if(o!==R)return{reset:{placement:R}}}return{}}}};function zp(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Bp(e){return lC.some(t=>e[t]>=0)}const yC=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=wn(e,t);switch(r){case"referenceHidden":{const i=await Di(t,{...o,elementContext:"reference"}),a=zp(i,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:Bp(a)}}}case"escaped":{const i=await Di(t,{...o,altBoundary:!0}),a=zp(i,n.floating);return{data:{escapedOffsets:a,escaped:Bp(a)}}}default:return{}}}}};async function wC(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),a=xn(n),l=Lo(n),s=Io(n)==="y",u=["left","top"].includes(a)?-1:1,f=i&&s?-1:1,c=wn(t,e);let{mainAxis:d,crossAxis:p,alignmentAxis:w}=typeof c=="number"?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...c};return l&&typeof w=="number"&&(p=l==="end"?w*-1:w),s?{x:p*f,y:d*u}:{x:d*u,y:p*f}}const xC=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:a,middlewareData:l}=t,s=await wC(t,e);return a===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:o+s.x,y:i+s.y,data:{...s,placement:a}}}}},CC=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:l={fn:C=>{let{x:v,y:g}=C;return{x:v,y:g}}},...s}=wn(e,t),u={x:n,y:r},f=await Di(t,s),c=Io(xn(o)),d=ld(c);let p=u[d],w=u[c];if(i){const C=d==="y"?"top":"left",v=d==="y"?"bottom":"right",g=p+f[C],x=p-f[v];p=_u(g,p,x)}if(a){const C=c==="y"?"top":"left",v=c==="y"?"bottom":"right",g=w+f[C],x=w-f[v];w=_u(g,w,x)}const m=l.fn({...t,[d]:p,[c]:w});return{...m,data:{x:m.x-n,y:m.y-r}}}}},EC=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:a}=t,{offset:l=0,mainAxis:s=!0,crossAxis:u=!0}=wn(e,t),f={x:n,y:r},c=Io(o),d=ld(c);let p=f[d],w=f[c];const m=wn(l,t),C=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(s){const x=d==="y"?"height":"width",E=i.reference[d]-i.floating[x]+C.mainAxis,S=i.reference[d]+i.reference[x]-C.mainAxis;pS&&(p=S)}if(u){var v,g;const x=d==="y"?"width":"height",E=["top","left"].includes(xn(o)),S=i.reference[c]-i.floating[x]+(E&&((v=a.offset)==null?void 0:v[c])||0)+(E?0:C.crossAxis),$=i.reference[c]+i.reference[x]+(E?0:((g=a.offset)==null?void 0:g[c])||0)-(E?C.crossAxis:0);w$&&(w=$)}return{[d]:p,[c]:w}}}},_C=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:i}=t,{apply:a=()=>{},...l}=wn(e,t),s=await Di(t,l),u=xn(n),f=Lo(n),c=Io(n)==="y",{width:d,height:p}=r.floating;let w,m;u==="top"||u==="bottom"?(w=u,m=f===(await(o.isRTL==null?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(m=u,w=f==="end"?"top":"bottom");const C=p-s[w],v=d-s[m],g=!t.middlewareData.shift;let x=C,E=v;if(c){const $=d-s.left-s.right;E=f||g?Qn(v,$):$}else{const $=p-s.top-s.bottom;x=f||g?Qn(C,$):$}if(g&&!f){const $=wt(s.left,0),_=wt(s.right,0),b=wt(s.top,0),T=wt(s.bottom,0);c?E=d-2*($!==0||_!==0?$+_:wt(s.left,s.right)):x=p-2*(b!==0||T!==0?b+T:wt(s.top,s.bottom))}await a({...t,availableWidth:E,availableHeight:x});const S=await o.getDimensions(i.floating);return d!==S.width||p!==S.height?{reset:{rects:!0}}:{}}}};function Oo(e){return f1(e)?(e.nodeName||"").toLowerCase():"#document"}function Et(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function bn(e){var t;return(t=(f1(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function f1(e){return e instanceof Node||e instanceof Et(e).Node}function Xe(e){return e instanceof Element||e instanceof Et(e).Element}function an(e){return e instanceof HTMLElement||e instanceof Et(e).HTMLElement}function bu(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Et(e).ShadowRoot}function Qi(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Gt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function SC(e){return["table","td","th"].includes(Oo(e))}function ud(e){const t=fd(),n=Gt(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function bC(e){let t=Xn(e);for(;an(t)&&!bo(t);){if(ud(t))return t;t=Xn(t)}return null}function fd(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function bo(e){return["html","body","#document"].includes(Oo(e))}function Gt(e){return Et(e).getComputedStyle(e)}function ql(e){return Xe(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Xn(e){if(Oo(e)==="html")return e;const t=e.assignedSlot||e.parentNode||bu(e)&&e.host||bn(e);return bu(t)?t.host:t}function d1(e){const t=Xn(e);return bo(t)?e.ownerDocument?e.ownerDocument.body:e.body:an(t)&&Qi(t)?t:d1(t)}function ji(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=d1(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),a=Et(o);return i?t.concat(a,a.visualViewport||[],Qi(o)?o:[],a.frameElement&&n?ji(a.frameElement):[]):t.concat(o,ji(o,[],n))}function h1(e){const t=Gt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=an(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,l=bl(n)!==i||bl(r)!==a;return l&&(n=i,r=a),{width:n,height:r,$:l}}function dd(e){return Xe(e)?e:e.contextElement}function fo(e){const t=dd(e);if(!an(t))return Zn(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=h1(t);let a=(i?bl(n.width):n.width)/r,l=(i?bl(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!l||!Number.isFinite(l))&&(l=1),{x:a,y:l}}const $C=Zn(0);function p1(e){const t=Et(e);return!fd()||!t.visualViewport?$C:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function TC(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Et(e)?!1:t}function Sr(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=dd(e);let a=Zn(1);t&&(r?Xe(r)&&(a=fo(r)):a=fo(e));const l=TC(i,n,r)?p1(i):Zn(0);let s=(o.left+l.x)/a.x,u=(o.top+l.y)/a.y,f=o.width/a.x,c=o.height/a.y;if(i){const d=Et(i),p=r&&Xe(r)?Et(r):r;let w=d,m=w.frameElement;for(;m&&r&&p!==w;){const C=fo(m),v=m.getBoundingClientRect(),g=Gt(m),x=v.left+(m.clientLeft+parseFloat(g.paddingLeft))*C.x,E=v.top+(m.clientTop+parseFloat(g.paddingTop))*C.y;s*=C.x,u*=C.y,f*=C.x,c*=C.y,s+=x,u+=E,w=Et(m),m=w.frameElement}}return Tl({width:f,height:c,x:s,y:u})}const kC=[":popover-open",":modal"];function hd(e){return kC.some(t=>{try{return e.matches(t)}catch{return!1}})}function RC(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",a=bn(r),l=t?hd(t.floating):!1;if(r===a||l&&i)return n;let s={scrollLeft:0,scrollTop:0},u=Zn(1);const f=Zn(0),c=an(r);if((c||!c&&!i)&&((Oo(r)!=="body"||Qi(a))&&(s=ql(r)),an(r))){const d=Sr(r);u=fo(r),f.x=d.x+r.clientLeft,f.y=d.y+r.clientTop}return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-s.scrollLeft*u.x+f.x,y:n.y*u.y-s.scrollTop*u.y+f.y}}function NC(e){return Array.from(e.getClientRects())}function v1(e){return Sr(bn(e)).left+ql(e).scrollLeft}function PC(e){const t=bn(e),n=ql(e),r=e.ownerDocument.body,o=wt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=wt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+v1(e);const l=-n.scrollTop;return Gt(r).direction==="rtl"&&(a+=wt(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:l}}function AC(e,t){const n=Et(e),r=bn(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,l=0,s=0;if(o){i=o.width,a=o.height;const u=fd();(!u||u&&t==="fixed")&&(l=o.offsetLeft,s=o.offsetTop)}return{width:i,height:a,x:l,y:s}}function LC(e,t){const n=Sr(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=an(e)?fo(e):Zn(1),a=e.clientWidth*i.x,l=e.clientHeight*i.y,s=o*i.x,u=r*i.y;return{width:a,height:l,x:s,y:u}}function Up(e,t,n){let r;if(t==="viewport")r=AC(e,n);else if(t==="document")r=PC(bn(e));else if(Xe(t))r=LC(t,n);else{const o=p1(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return Tl(r)}function m1(e,t){const n=Xn(e);return n===t||!Xe(n)||bo(n)?!1:Gt(n).position==="fixed"||m1(n,t)}function IC(e,t){const n=t.get(e);if(n)return n;let r=ji(e,[],!1).filter(l=>Xe(l)&&Oo(l)!=="body"),o=null;const i=Gt(e).position==="fixed";let a=i?Xn(e):e;for(;Xe(a)&&!bo(a);){const l=Gt(a),s=ud(a);!s&&l.position==="fixed"&&(o=null),(i?!s&&!o:!s&&l.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Qi(a)&&!s&&m1(e,a))?r=r.filter(f=>f!==a):o=l,a=Xn(a)}return t.set(e,r),r}function OC(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[...n==="clippingAncestors"?hd(t)?[]:IC(t,this._c):[].concat(n),r],l=a[0],s=a.reduce((u,f)=>{const c=Up(t,f,o);return u.top=wt(c.top,u.top),u.right=Qn(c.right,u.right),u.bottom=Qn(c.bottom,u.bottom),u.left=wt(c.left,u.left),u},Up(t,l,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}function MC(e){const{width:t,height:n}=h1(e);return{width:t,height:n}}function DC(e,t,n){const r=an(t),o=bn(t),i=n==="fixed",a=Sr(e,!0,i,t);let l={scrollLeft:0,scrollTop:0};const s=Zn(0);if(r||!r&&!i)if((Oo(t)!=="body"||Qi(o))&&(l=ql(t)),r){const c=Sr(t,!0,i,t);s.x=c.x+t.clientLeft,s.y=c.y+t.clientTop}else o&&(s.x=v1(o));const u=a.left+l.scrollLeft-s.x,f=a.top+l.scrollTop-s.y;return{x:u,y:f,width:a.width,height:a.height}}function ec(e){return Gt(e).position==="static"}function Hp(e,t){return!an(e)||Gt(e).position==="fixed"?null:t?t(e):e.offsetParent}function g1(e,t){const n=Et(e);if(hd(e))return n;if(!an(e)){let o=Xn(e);for(;o&&!bo(o);){if(Xe(o)&&!ec(o))return o;o=Xn(o)}return n}let r=Hp(e,t);for(;r&&SC(r)&&ec(r);)r=Hp(r,t);return r&&bo(r)&&ec(r)&&!ud(r)?n:r||bC(e)||n}const jC=async function(e){const t=this.getOffsetParent||g1,n=this.getDimensions,r=await n(e.floating);return{reference:DC(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function FC(e){return Gt(e).direction==="rtl"}const y1={convertOffsetParentRelativeRectToViewportRelativeRect:RC,getDocumentElement:bn,getClippingRect:OC,getOffsetParent:g1,getElementRects:jC,getClientRects:NC,getDimensions:MC,getScale:fo,isElement:Xe,isRTL:FC};function zC(e,t){let n=null,r;const o=bn(e);function i(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function a(l,s){l===void 0&&(l=!1),s===void 0&&(s=1),i();const{left:u,top:f,width:c,height:d}=e.getBoundingClientRect();if(l||t(),!c||!d)return;const p=Na(f),w=Na(o.clientWidth-(u+c)),m=Na(o.clientHeight-(f+d)),C=Na(u),g={rootMargin:-p+"px "+-w+"px "+-m+"px "+-C+"px",threshold:wt(0,Qn(1,s))||1};let x=!0;function E(S){const $=S[0].intersectionRatio;if($!==s){if(!x)return a();$?a(!1,$):r=setTimeout(()=>{a(!1,1e-7)},1e3)}x=!1}try{n=new IntersectionObserver(E,{...g,root:o.ownerDocument})}catch{n=new IntersectionObserver(E,g)}n.observe(e)}return a(!0),i}function BC(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:s=!1}=r,u=dd(e),f=o||i?[...u?ji(u):[],...ji(t)]:[];f.forEach(v=>{o&&v.addEventListener("scroll",n,{passive:!0}),i&&v.addEventListener("resize",n)});const c=u&&l?zC(u,n):null;let d=-1,p=null;a&&(p=new ResizeObserver(v=>{let[g]=v;g&&g.target===u&&p&&(p.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var x;(x=p)==null||x.observe(t)})),n()}),u&&!s&&p.observe(u),p.observe(t));let w,m=s?Sr(e):null;s&&C();function C(){const v=Sr(e);m&&(v.x!==m.x||v.y!==m.y||v.width!==m.width||v.height!==m.height)&&n(),m=v,w=requestAnimationFrame(C)}return n(),()=>{var v;f.forEach(g=>{o&&g.removeEventListener("scroll",n),i&&g.removeEventListener("resize",n)}),c==null||c(),(v=p)==null||v.disconnect(),p=null,s&&cancelAnimationFrame(w)}}const w1=xC,x1=CC,UC=gC,HC=_C,VC=yC,Vp=mC,WC=EC,KC=(e,t,n)=>{const r=new Map,o={platform:y1,...n},i={...o.platform,_c:r};return vC(e,t,{...o,platform:i})},C1=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Vp({element:r.current,padding:o}).fn(n):{}:r?Vp({element:r,padding:o}).fn(n):{}}}};var Ya=typeof document<"u"?h.useLayoutEffect:h.useEffect;function kl(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!kl(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!kl(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function E1(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Wp(e,t){const n=E1(e);return Math.round(t*n)/n}function Kp(e){const t=h.useRef(e);return Ya(()=>{t.current=e}),t}function _1(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:a}={},transform:l=!0,whileElementsMounted:s,open:u}=e,[f,c]=h.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[d,p]=h.useState(r);kl(d,r)||p(r);const[w,m]=h.useState(null),[C,v]=h.useState(null),g=h.useCallback(H=>{H!==$.current&&($.current=H,m(H))},[]),x=h.useCallback(H=>{H!==_.current&&(_.current=H,v(H))},[]),E=i||w,S=a||C,$=h.useRef(null),_=h.useRef(null),b=h.useRef(f),T=s!=null,P=Kp(s),M=Kp(o),O=h.useCallback(()=>{if(!$.current||!_.current)return;const H={placement:t,strategy:n,middleware:d};M.current&&(H.platform=M.current),KC($.current,_.current,H).then(A=>{const B={...A,isPositioned:!0};j.current&&!kl(b.current,B)&&(b.current=B,No.flushSync(()=>{c(B)}))})},[d,t,n,M]);Ya(()=>{u===!1&&b.current.isPositioned&&(b.current.isPositioned=!1,c(H=>({...H,isPositioned:!1})))},[u]);const j=h.useRef(!1);Ya(()=>(j.current=!0,()=>{j.current=!1}),[]),Ya(()=>{if(E&&($.current=E),S&&(_.current=S),E&&S){if(P.current)return P.current(E,S,O);O()}},[E,S,O,P,T]);const R=h.useMemo(()=>({reference:$,floating:_,setReference:g,setFloating:x}),[g,x]),F=h.useMemo(()=>({reference:E,floating:S}),[E,S]),W=h.useMemo(()=>{const H={position:n,left:0,top:0};if(!F.floating)return H;const A=Wp(F.floating,f.x),B=Wp(F.floating,f.y);return l?{...H,transform:"translate("+A+"px, "+B+"px)",...E1(F.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:A,top:B}},[n,l,F.floating,f.x,f.y]);return h.useMemo(()=>({...f,update:O,refs:R,elements:F,floatingStyles:W}),[f,O,R,F,W])}function YC(e){const[t,n]=h.useState(void 0);return yn(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let a,l;if("borderBoxSize"in i){const s=i.borderBoxSize,u=Array.isArray(s)?s[0]:s;a=u.inlineSize,l=u.blockSize}else a=e.offsetWidth,l=e.offsetHeight;n({width:a,height:l})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}const S1="Popper",[b1,$1]=En(S1),[GC,T1]=b1(S1),QC=e=>{const{__scopePopper:t,children:n}=e,[r,o]=h.useState(null);return h.createElement(GC,{scope:t,anchor:r,onAnchorChange:o},n)},ZC="PopperAnchor",XC=h.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=T1(ZC,n),a=h.useRef(null),l=Be(t,a);return h.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||a.current)}),r?null:h.createElement(fe.div,Y({},o,{ref:l}))}),k1="PopperContent",[JC,f$]=b1(k1),qC=h.forwardRef((e,t)=>{var n,r,o,i,a,l,s,u;const{__scopePopper:f,side:c="bottom",sideOffset:d=0,align:p="center",alignOffset:w=0,arrowPadding:m=0,avoidCollisions:C=!0,collisionBoundary:v=[],collisionPadding:g=0,sticky:x="partial",hideWhenDetached:E=!1,updatePositionStrategy:S="optimized",onPlaced:$,..._}=e,b=T1(k1,f),[T,P]=h.useState(null),M=Be(t,ar=>P(ar)),[O,j]=h.useState(null),R=YC(O),F=(n=R==null?void 0:R.width)!==null&&n!==void 0?n:0,W=(r=R==null?void 0:R.height)!==null&&r!==void 0?r:0,H=c+(p!=="center"?"-"+p:""),A=typeof g=="number"?g:{top:0,right:0,bottom:0,left:0,...g},B=Array.isArray(v)?v:[v],G=B.length>0,te={padding:A,boundary:B.filter(eE),altBoundary:G},{refs:ae,floatingStyles:je,placement:Oe,isPositioned:ge,middlewareData:ye}=_1({strategy:"fixed",placement:H,whileElementsMounted:(...ar)=>BC(...ar,{animationFrame:S==="always"}),elements:{reference:b.anchor},middleware:[w1({mainAxis:d+W,alignmentAxis:w}),C&&x1({mainAxis:!0,crossAxis:!1,limiter:x==="partial"?WC():void 0,...te}),C&&UC({...te}),HC({...te,apply:({elements:ar,rects:Qt,availableWidth:es,availableHeight:ts})=>{const{width:ns,height:rs}=Qt.reference,Ir=ar.floating.style;Ir.setProperty("--radix-popper-available-width",`${es}px`),Ir.setProperty("--radix-popper-available-height",`${ts}px`),Ir.setProperty("--radix-popper-anchor-width",`${ns}px`),Ir.setProperty("--radix-popper-anchor-height",`${rs}px`)}}),O&&C1({element:O,padding:m}),tE({arrowWidth:F,arrowHeight:W}),E&&VC({strategy:"referenceHidden",...te})]}),[Ne,de]=R1(Oe),Se=at($);yn(()=>{ge&&(Se==null||Se())},[ge,Se]);const Ot=(o=ye.arrow)===null||o===void 0?void 0:o.x,Mt=(i=ye.arrow)===null||i===void 0?void 0:i.y,Pe=((a=ye.arrow)===null||a===void 0?void 0:a.centerOffset)!==0,[ir,Zi]=h.useState();return yn(()=>{T&&Zi(window.getComputedStyle(T).zIndex)},[T]),h.createElement("div",{ref:ae.setFloating,"data-radix-popper-content-wrapper":"",style:{...je,transform:ge?je.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ir,"--radix-popper-transform-origin":[(l=ye.transformOrigin)===null||l===void 0?void 0:l.x,(s=ye.transformOrigin)===null||s===void 0?void 0:s.y].join(" ")},dir:e.dir},h.createElement(JC,{scope:f,placedSide:Ne,onArrowChange:j,arrowX:Ot,arrowY:Mt,shouldHideArrow:Pe},h.createElement(fe.div,Y({"data-side":Ne,"data-align":de},_,{ref:M,style:{..._.style,animation:ge?void 0:"none",opacity:(u=ye.hide)!==null&&u!==void 0&&u.referenceHidden?0:void 0}}))))});function eE(e){return e!==null}const tE=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,a;const{placement:l,rects:s,middlewareData:u}=t,c=((n=u.arrow)===null||n===void 0?void 0:n.centerOffset)!==0,d=c?0:e.arrowWidth,p=c?0:e.arrowHeight,[w,m]=R1(l),C={start:"0%",center:"50%",end:"100%"}[m],v=((r=(o=u.arrow)===null||o===void 0?void 0:o.x)!==null&&r!==void 0?r:0)+d/2,g=((i=(a=u.arrow)===null||a===void 0?void 0:a.y)!==null&&i!==void 0?i:0)+p/2;let x="",E="";return w==="bottom"?(x=c?C:`${v}px`,E=`${-p}px`):w==="top"?(x=c?C:`${v}px`,E=`${s.floating.height+p}px`):w==="right"?(x=`${-p}px`,E=c?C:`${g}px`):w==="left"&&(x=`${s.floating.width+p}px`,E=c?C:`${g}px`),{data:{x,y:E}}}});function R1(e){const[t,n="center"]=e.split("-");return[t,n]}const nE=QC,rE=XC,oE=qC,N1="Popover",[P1,d$]=En(N1,[$1]),pd=$1(),[iE,Mo]=P1(N1),aE=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:a=!1}=e,l=pd(t),s=h.useRef(null),[u,f]=h.useState(!1),[c=!1,d]=or({prop:r,defaultProp:o,onChange:i});return h.createElement(nE,l,h.createElement(iE,{scope:t,contentId:on(),triggerRef:s,open:c,onOpenChange:d,onOpenToggle:h.useCallback(()=>d(p=>!p),[d]),hasCustomAnchor:u,onCustomAnchorAdd:h.useCallback(()=>f(!0),[]),onCustomAnchorRemove:h.useCallback(()=>f(!1),[]),modal:a},n))},lE="PopoverTrigger",sE=h.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Mo(lE,n),i=pd(n),a=Be(t,o.triggerRef),l=h.createElement(fe.button,Y({type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":I1(o.open)},r,{ref:a,onClick:le(e.onClick,o.onOpenToggle)}));return o.hasCustomAnchor?l:h.createElement(rE,Y({asChild:!0},i),l)}),A1="PopoverPortal",[cE,uE]=P1(A1,{forceMount:void 0}),fE=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,i=Mo(A1,t);return h.createElement(cE,{scope:t,forceMount:n},h.createElement(_n,{present:n||i.open},h.createElement(ig,{asChild:!0,container:o},r)))},Fi="PopoverContent",dE=h.forwardRef((e,t)=>{const n=uE(Fi,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,i=Mo(Fi,e.__scopePopover);return h.createElement(_n,{present:r||i.open},i.modal?h.createElement(hE,Y({},o,{ref:t})):h.createElement(pE,Y({},o,{ref:t})))}),hE=h.forwardRef((e,t)=>{const n=Mo(Fi,e.__scopePopover),r=h.useRef(null),o=Be(t,r),i=h.useRef(!1);return h.useEffect(()=>{const a=r.current;if(a)return vg(a)},[]),h.createElement(Gf,{as:So,allowPinchZoom:!0},h.createElement(L1,Y({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:le(e.onCloseAutoFocus,a=>{var l;a.preventDefault(),i.current||(l=n.triggerRef.current)===null||l===void 0||l.focus()}),onPointerDownOutside:le(e.onPointerDownOutside,a=>{const l=a.detail.originalEvent,s=l.button===0&&l.ctrlKey===!0,u=l.button===2||s;i.current=u},{checkForDefaultPrevented:!1}),onFocusOutside:le(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1})})))}),pE=h.forwardRef((e,t)=>{const n=Mo(Fi,e.__scopePopover),r=h.useRef(!1),o=h.useRef(!1);return h.createElement(L1,Y({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var a;if((a=e.onCloseAutoFocus)===null||a===void 0||a.call(e,i),!i.defaultPrevented){var l;r.current||(l=n.triggerRef.current)===null||l===void 0||l.focus(),i.preventDefault()}r.current=!1,o.current=!1},onInteractOutside:i=>{var a,l;(a=e.onInteractOutside)===null||a===void 0||a.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=i.target;((l=n.triggerRef.current)===null||l===void 0?void 0:l.contains(s))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}}))}),L1=h.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,disableOutsidePointerEvents:a,onEscapeKeyDown:l,onPointerDownOutside:s,onFocusOutside:u,onInteractOutside:f,...c}=e,d=Mo(Fi,n),p=pd(n);return ag(),h.createElement(rg,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i},h.createElement(Yf,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:f,onEscapeKeyDown:l,onPointerDownOutside:s,onFocusOutside:u,onDismiss:()=>d.onOpenChange(!1)},h.createElement(oE,Y({"data-state":I1(d.open),role:"dialog",id:d.contentId},p,c,{ref:t,style:{...c.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}}))))});function I1(e){return e?"open":"closed"}const vE=aE,mE=sE,gE=fE,yE=dE;var wE="vocs_Popover";Ut.Root=vE;Ut.Trigger=mE;function Ut({children:e,className:t}){return y.jsx(gE,{children:y.jsx(yE,{className:I(wE,t),sideOffset:12,children:e})})}var xE="vocs_Sidebar_backLink",CE="vocs_Sidebar_divider",EE="vocs_Sidebar_group",li="vocs_Sidebar_item",O1="vocs_Sidebar_items",_E="vocs_Sidebar_level",SE="vocs_Sidebar_levelCollapsed",bE="vocs_Sidebar_levelInset",$E="vocs_Sidebar_logo",TE="vocs_Sidebar_logoWrapper",kE="vocs_Sidebar_navigation",RE="vocs_Sidebar",M1="vocs_Sidebar_section",NE="vocs_Sidebar_sectionCollapse",PE="vocs_Sidebar_sectionCollapseActive",AE="vocs_Sidebar_sectionHeader",LE="vocs_Sidebar_sectionHeaderActive",Yp="vocs_Sidebar_sectionTitle";function D1(){return y.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 39 69",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[y.jsx("title",{children:"Chevron Right"}),y.jsx("path",{d:"M38.8697 34.7461C38.8697 33.6719 38.4791 32.6953 37.649 31.8652L7.47318 1.8848C6.74078 1.1035 5.76418 0.712891 4.64118 0.712891C2.34618 0.712891 0.588379 2.42189 0.588379 4.71679C0.588379 5.79099 1.07668 6.81639 1.76028 7.59769L29.0552 34.7461L1.76028 61.8945C1.07668 62.6758 0.588379 63.6523 0.588379 64.7754C0.588379 67.0703 2.34618 68.7793 4.64118 68.7793C5.76418 68.7793 6.74078 68.3887 7.47318 67.6074L37.649 37.627C38.4791 36.7969 38.8697 35.8203 38.8697 34.7461Z",fill:"currentColor"})]})}function j1(e){var u;const{className:t,onClickItem:n}=e,{previousPath:r}=Nr(),o=h.useRef(null),i=Yl(),[a,l]=h.useState("/");if(h.useEffect(()=>{typeof window>"u"||r&&l(r)},[i.key,i.backLink]),!i)return null;const s=IE(i.items);return y.jsxs("aside",{ref:o,className:I(RE,t),children:[y.jsxs("div",{className:TE,children:[y.jsx("div",{className:$E,children:y.jsx(Gn,{to:"/",style:{alignItems:"center",display:"flex",height:"100%"},children:y.jsx(Jf,{})})}),y.jsx("div",{className:CE})]}),y.jsx("nav",{className:kE,children:y.jsxs("div",{className:EE,children:[i.backLink&&y.jsx("section",{className:M1,children:y.jsx("div",{className:O1,children:y.jsxs(Gn,{className:I(li,xE),to:a,children:["←"," ",typeof history<"u"&&((u=history.state)!=null&&u.key)&&a!=="/"?"Back":"Home"]})})}),s.map((f,c)=>y.jsx(z1,{depth:0,item:f,onClick:n,sidebarRef:o},`${f.text}${c}`))]})})]},i.key)}function IE(e){const t=[];let n=0;for(const r of e){if(r.items){n=t.push(r);continue}t[n]?t[n].items.push(r):t.push({text:"",items:[r]})}return t}function F1(e,t){return e.find(n=>Kl(t,n.link??"")||n.link===t?!0:n.items?F1(n.items,t):!1)}function z1(e){const{depth:t,item:n,onClick:r,sidebarRef:o}=e,i=h.useRef(null),{pathname:a}=Re(),l=Kw(n.link??""),s=h.useMemo(()=>n.items?!!F1(n.items,a):!1,[n.items,a]),[u,f]=h.useState(()=>l||!n.items||s?!1:!!n.collapsed),c=n.collapsed!==void 0&&n.items!==void 0,d=h.useCallback(m=>{"key"in m&&m.key!=="Enter"||n.link||f(C=>!C)},[n.link]),p=h.useCallback(m=>{"key"in m&&m.key!=="Enter"||n.link&&f(C=>!C)},[n.link]),w=h.useRef(!0);return h.useEffect(()=>{!w.current||(w.current=!1,!Kl(a,n.link??""))||requestAnimationFrame(()=>{var g,x,E;const C=((g=i.current)==null?void 0:g.offsetTop)??0,v=((x=o==null?void 0:o.current)==null?void 0:x.clientHeight)??0;C0&&t<5&&n.items.map((m,C)=>y.jsx(z1,{depth:t+1,item:m,onClick:r,sidebarRef:o},`${m.text}${C}`))})]}):y.jsx(y.Fragment,{children:n.link?y.jsx(Gn,{ref:i,"data-active":!!l,onClick:r,className:li,to:n.link,children:n.text}):y.jsx("div",{className:li,children:n.text})})}function OE(){return y.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 69 39",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[y.jsx("title",{children:"Chevron Down"}),y.jsx("path",{d:"M34.8677 38.8398C35.9419 38.8398 37.0161 38.4492 37.7485 37.6191L67.729 7.44339C68.4614 6.71089 68.9009 5.73439 68.9009 4.61129C68.9009 2.31639 67.1919 0.558594 64.897 0.558594C63.8227 0.558594 62.7485 1.04689 62.0161 1.73049L32.5727 31.2715H37.1138L7.67042 1.73049C6.93802 1.04689 5.96142 0.558594 4.83842 0.558594C2.54342 0.558594 0.785645 2.31639 0.785645 4.61129C0.785645 5.73439 1.22512 6.71089 1.95752 7.44339L31.9868 37.6191C32.768 38.4492 33.7446 38.8398 34.8677 38.8398Z",fill:"currentColor"})]})}function ME(){return y.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 69 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[y.jsx("title",{children:"Chevron Up"}),y.jsx("path",{d:"M1.95752 32.2441C1.22512 32.9277 0.785645 33.9531 0.785645 35.0762C0.785645 37.3711 2.54342 39.1289 4.83842 39.1289C5.96142 39.1289 6.98682 38.6895 7.67042 37.957L37.1138 8.36716H32.5727L62.0161 37.957C62.6997 38.6895 63.8227 39.1289 64.897 39.1289C67.1919 39.1289 68.9009 37.3711 68.9009 35.0762C68.9009 33.9531 68.4614 32.9277 67.729 32.2441L37.7485 2.06836C37.0161 1.23826 35.9419 0.847656 34.8677 0.847656C33.7446 0.847656 32.7192 1.23826 31.9868 2.06836L1.95752 32.2441Z",fill:"currentColor"})]})}function DE(){return y.jsxs("svg",{width:"100%",height:"100%",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 79 48",fill:"none",children:[y.jsx("title",{children:"Menu"}),y.jsx("path",{fill:"currentColor",d:"M19.528 47.232h40.87c1.952 0 3.515-1.562 3.515-3.564a3.5 3.5 0 0 0-3.516-3.516H19.528a3.501 3.501 0 0 0-3.515 3.516c0 2.002 1.562 3.564 3.515 3.564ZM12.057 27.262h55.81a3.501 3.501 0 0 0 3.516-3.516 3.501 3.501 0 0 0-3.515-3.515h-55.81a3.501 3.501 0 0 0-3.516 3.515 3.501 3.501 0 0 0 3.515 3.516ZM4.391 7.34H75.29c2.002 0 3.515-1.563 3.515-3.516 0-2.002-1.513-3.564-3.515-3.564H4.39C2.438.26.876 1.822.876 3.824A3.501 3.501 0 0 0 4.39 7.34Z"})]})}$u.Curtain=VE;function $u(){var n,r;const e=We(),{showLogo:t}=Pr();return y.jsxs("div",{className:Z6,children:[y.jsxs("div",{className:jp,children:[t&&y.jsx("div",{className:Ra,children:y.jsx("div",{className:V6,children:y.jsx(Gn,{to:"/",style:{alignItems:"center",display:"flex",height:"100%"},children:y.jsx(Jf,{})})})}),e.topNav&&y.jsx(y.Fragment,{children:y.jsxs("div",{className:Ra,children:[y.jsx(jE,{items:e.topNav}),y.jsx(zE,{items:e.topNav})]})})]}),y.jsxs("div",{className:jp,children:[y.jsx("div",{className:Ra,style:{marginRight:"-8px"},children:y.jsx(O6,{})}),e.socials&&((n=e.socials)==null?void 0:n.length)>0&&y.jsxs(y.Fragment,{children:[y.jsx("div",{className:B6}),y.jsx("div",{className:Ra,style:{marginLeft:"-8px"},children:(r=e.socials)==null?void 0:r.map((o,i)=>y.jsx(HE,{...o},i))})]})]})]})}function jE({items:e}){const{pathname:t}=Re(),n=Yi({pathname:t,items:e});return y.jsx(zg,{className:l1,children:y.jsx(Bg,{children:e.map((r,o)=>r!=null&&r.link?y.jsx(Xl,{active:n==null?void 0:n.includes(r.id),href:r.link,children:r.text},o):y.jsxs(Ug,{className:H6,children:[y.jsx(Hg,{active:n==null?void 0:n.includes(r.id),children:r.text}),y.jsx(Vg,{className:F6,children:y.jsx(FE,{items:r.items||[]})})]},o))})})}function FE({items:e}){const{pathname:t}=Re(),n=Yi({pathname:t,items:e});return y.jsx("ul",{children:e==null?void 0:e.map((r,o)=>y.jsx(Xl,{active:n.includes(r.id),href:r.link,children:r.text},o))})}function zE({items:e}){var s;const[t,n]=h.useState(!1),{pathname:r}=Re(),o=Yi({pathname:r,items:e}),i=e.filter(u=>u.id===o[0])[0],{basePath:a}=We(),l=a;return y.jsx("div",{className:I(l1,G6),children:i?y.jsxs(Ut.Root,{modal:!0,open:t,onOpenChange:n,children:[y.jsxs(Ut.Trigger,{className:I(a1,ei),children:[i.text,y.jsx(st,{label:"Menu",icon:OE,size:"11px"})]}),y.jsx(Ut,{className:q6,children:y.jsx(N6,{type:"single",collapsible:!0,style:{display:"flex",flexDirection:"column"},children:e.map((u,f)=>{var c;return u!=null&&u.link?y.jsx(rn,{"data-active":o.includes(u.id),className:ei,href:u.link,onClick:()=>n(!1),variant:"styleless",children:u.text},f):y.jsxs(P6,{value:f.toString(),children:[y.jsx(A6,{className:I(ei,Y6),"data-active":o.includes(u.id),style:Yt({[D6]:`url(${l}/.vocs/icons/chevron-down.svg)`,[j6]:`url(${l}/.vocs/icons/chevron-up.svg)`}),children:u.text}),y.jsx(L6,{className:K6,children:(c=u.items)==null?void 0:c.map((d,p)=>y.jsx(rn,{className:ei,href:d.link,onClick:()=>n(!1),variant:"styleless",children:d.text},p))})]},f)})})})]}):(s=e[0])!=null&&s.link?y.jsx(rn,{className:ei,href:e[0].link,variant:"styleless",children:e[0].text}):null})}const BE={discord:Wg,github:Kg,telegram:Yg,warpcast:Gg,x:Qg},UE={discord:"21px",github:"18px",telegram:"21px",warpcast:"18px",x:"16px"};function HE({icon:e,label:t,link:n,type:r}){return y.jsx("a",{className:M6,href:n,target:"_blank",rel:"noopener noreferrer",children:y.jsx(st,{className:U6,label:t,icon:BE[e],size:UE[r]||"18px"})})}function VE({enableScrollToTop:e}){const{pathname:t}=Re(),{layout:n,showSidebar:r}=Pr(),{frontmatter:o={}}=Nr(),i=Yl(),[a,l]=h.useState(!1),[s,u]=h.useState(!1),f=h.useMemo(()=>{if(!i||n==="minimal")return;const p=B1({sidebarItems:i.items,pathname:t});return p==null?void 0:p.text},[n,t,i]),c=h.useMemo(()=>{var p;if(!(typeof window>"u"))return(p=document.querySelector(".vocs_Content h1"))==null?void 0:p.textContent},[]),d=f||o.title||c;return y.jsxs("div",{className:z6,children:[y.jsx("div",{className:Mp,children:y.jsx("div",{className:qs,children:r?y.jsxs(Ut.Root,{modal:!0,open:s,onOpenChange:u,children:[y.jsxs(Ut.Trigger,{className:a1,children:[y.jsx(st,{label:"Menu",icon:DE,size:"13px"}),y.jsx("div",{className:W6,children:d})]}),y.jsx(Ut,{className:J6,children:y.jsx(j1,{onClickItem:()=>u(!1)})})]}):d})}),y.jsxs("div",{className:Mp,children:[e&&y.jsxs(y.Fragment,{children:[y.jsx("div",{className:qs,children:y.jsxs("button",{className:Dp,onClick:()=>window.scrollTo({behavior:"smooth",top:0}),type:"button",children:["Top",y.jsx(st,{label:"Scroll to top",icon:ME,size:"10px"})]})}),y.jsx("div",{className:X6})]}),n==="docs"&&y.jsx("div",{className:qs,children:y.jsxs(Ut.Root,{modal:!0,open:a,onOpenChange:l,children:[y.jsxs(Ut.Trigger,{className:Dp,children:["On this page",y.jsx(st,{label:"On this page",icon:D1,size:"10px"})]}),y.jsx(Ut,{className:Q6,children:y.jsx(s1,{onClickItem:()=>l(!1),showTitle:!1})})]})})]})]})}function B1({sidebarItems:e,pathname:t}){const n=t.replace(/(.+)\/$/,"$1");for(const r of e){if((r==null?void 0:r.link)===n)return r;if(r.items){const o=B1({sidebarItems:r.items,pathname:n});if(o)return o}}}var WE="vocs_SkipLink";const U1="vocs-content";function KE(){const{pathname:e}=Re();return y.jsx("a",{className:I(WE,eg),href:`${e}#${U1}`,children:"Skip to content"})}var YE="vocs_DocsLayout_content",GE="vocs_DocsLayout_content_withSidebar",QE="vocs_DocsLayout_content_withTopNav",ZE="vocs_DocsLayout_gutterLeft",XE="vocs_DocsLayout_gutterRight",JE="vocs_DocsLayout_gutterRight_withSidebar",qE="vocs_DocsLayout_gutterTop",e_="vocs_DocsLayout_gutterTopCurtain",t_="vocs_DocsLayout_gutterTopCurtain_hidden",n_="vocs_DocsLayout_gutterTopCurtain_withSidebar",r_="vocs_DocsLayout_gutterTop_offsetLeftGutter",o_="vocs_DocsLayout_gutterTop_sticky",i_="vocs_DocsLayout",a_="vocs_DocsLayout_sidebar";function Tu({children:e}){const{banner:t,font:n}=We(),{frontmatter:r={}}=Nr(),{content:o}=r,{layout:i,showOutline:a,showSidebar:l,showTopNav:s}=Pr(),{ref:u,inView:f}=K0({initialInView:!0,rootMargin:"100px 0px 0px 0px"}),[c,d]=vu("banner",!0);return y.jsxs("div",{className:i_,"data-layout":i,style:Yt({[e5]:c?t==null?void 0:t.height:void 0,[Mx.default]:n!=null&&n.google?`${n.google}, ${Ox.default}`:void 0}),children:[y.jsx(KE,{}),c&&y.jsx(E5,{hide:()=>d(!1)}),l&&y.jsx("div",{className:ZE,children:y.jsx(j1,{className:a_})}),s&&y.jsxs(y.Fragment,{children:[y.jsxs("div",{ref:u,className:I(qE,l&&r_,(i==="minimal"||i==="landing")&&o_),children:[y.jsx(Cu,{}),y.jsx($u,{})]}),y.jsxs("div",{className:I(e_,l&&n_,(i==="minimal"||i==="landing")&&t_),children:[y.jsx(Cu.Curtain,{}),y.jsx($u.Curtain,{enableScrollToTop:!f})]})]}),a&&y.jsx("div",{className:I(XE,l&&JE),children:y.jsx(s1,{})}),y.jsxs("div",{id:U1,className:I(YE,l&&GE,s&&QE),style:Yt({[Os.horizontalPadding]:o==null?void 0:o.horizontalPadding,[Os.width]:o==null?void 0:o.width,[Os.verticalPadding]:o==null?void 0:o.verticalPadding}),children:[y.jsx(X0,{children:e}),y.jsx(r6,{})]}),y.jsx("div",{"data-bottom-observer":!0})]})}const ku={},H1=Z.createContext(ku);function l_(e){const t=Z.useContext(H1);return Z.useMemo(function(){return typeof e=="function"?e(t):{...t,...e}},[t,e])}function s_(e){let t;return e.disableParentContext?t=typeof e.components=="function"?e.components(ku):e.components||ku:t=l_(e.components),Z.createElement(H1.Provider,{value:t},e.children)}var V1={exports:{}},c_="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",u_=c_,f_=u_;function W1(){}function K1(){}K1.resetWarningCache=W1;var d_=function(){function e(r,o,i,a,l,s){if(s!==f_){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:K1,resetWarningCache:W1};return n.PropTypes=n,n};V1.exports=d_();var h_=V1.exports;const xe=Jn(h_);function p_(e){return e&&typeof e=="object"&&"default"in e?e.default:e}var Y1=h,v_=p_(Y1);function Gp(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m_(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var g_=!!(typeof window<"u"&&window.document&&window.document.createElement);function y_(e,t,n){if(typeof e!="function")throw new Error("Expected reducePropsToState to be a function.");if(typeof t!="function")throw new Error("Expected handleStateChangeOnClient to be a function.");if(typeof n<"u"&&typeof n!="function")throw new Error("Expected mapStateOnServer to either be undefined or a function.");function r(o){return o.displayName||o.name||"Component"}return function(i){if(typeof i!="function")throw new Error("Expected WrappedComponent to be a React component.");var a=[],l;function s(){l=e(a.map(function(f){return f.props})),u.canUseDOM?t(l):n&&(l=n(l))}var u=function(f){m_(c,f);function c(){return f.apply(this,arguments)||this}c.peek=function(){return l},c.rewind=function(){if(c.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var w=l;return l=void 0,a=[],w};var d=c.prototype;return d.UNSAFE_componentWillMount=function(){a.push(this),s()},d.componentDidUpdate=function(){s()},d.componentWillUnmount=function(){var w=a.indexOf(this);a.splice(w,1),s()},d.render=function(){return v_.createElement(i,this.props)},c}(Y1.PureComponent);return Gp(u,"displayName","SideEffect("+r(i)+")"),Gp(u,"canUseDOM",g_),u}}var w_=y_;const x_=Jn(w_);var C_=typeof Element<"u",E_=typeof Map=="function",__=typeof Set=="function",S_=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Ga(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,o;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!Ga(e[r],t[r]))return!1;return!0}var i;if(E_&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;for(i=e.entries();!(r=i.next()).done;)if(!Ga(r.value[1],t.get(r.value[0])))return!1;return!0}if(__&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(S_&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[r]))return!1;if(C_&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((o[r]==="_owner"||o[r]==="__v"||o[r]==="__o")&&e.$$typeof)&&!Ga(e[o[r]],t[o[r]]))return!1;return!0}return e!==e&&t!==t}var b_=function(t,n){try{return Ga(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}};const $_=Jn(b_);/* +*****************************************************/(function(e,t){(function(n,r){e.exports=r()})(_y,function(){var n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},r=function(u,f){if(!(u instanceof f))throw new TypeError("Cannot call a class as a function")},o=function(){function u(f,c){for(var d=0;d1&&arguments[1]!==void 0?arguments[1]:!0,d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:5e3;r(this,u),this.ctx=f,this.iframes=c,this.exclude=d,this.iframesTimeout=p}return o(u,[{key:"getContexts",value:function(){var c=void 0,d=[];return typeof this.ctx>"u"||!this.ctx?c=[]:NodeList.prototype.isPrototypeOf(this.ctx)?c=Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?c=this.ctx:typeof this.ctx=="string"?c=Array.prototype.slice.call(document.querySelectorAll(this.ctx)):c=[this.ctx],c.forEach(function(p){var w=d.filter(function(m){return m.contains(p)}).length>0;d.indexOf(p)===-1&&!w&&d.push(p)}),d}},{key:"getIframeContents",value:function(c,d){var p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},w=void 0;try{var m=c.contentWindow;if(w=m.document,!m||!w)throw new Error("iframe inaccessible")}catch{p()}w&&d(w)}},{key:"isIframeBlank",value:function(c){var d="about:blank",p=c.getAttribute("src").trim(),w=c.contentWindow.location.href;return w===d&&p!==d&&p}},{key:"observeIframeLoad",value:function(c,d,p){var w=this,m=!1,C=null,v=function g(){if(!m){m=!0,clearTimeout(C);try{w.isIframeBlank(c)||(c.removeEventListener("load",g),w.getIframeContents(c,d,p))}catch{p()}}};c.addEventListener("load",v),C=setTimeout(v,this.iframesTimeout)}},{key:"onIframeReady",value:function(c,d,p){try{c.contentWindow.document.readyState==="complete"?this.isIframeBlank(c)?this.observeIframeLoad(c,d,p):this.getIframeContents(c,d,p):this.observeIframeLoad(c,d,p)}catch{p()}}},{key:"waitForIframes",value:function(c,d){var p=this,w=0;this.forEachIframe(c,function(){return!0},function(m){w++,p.waitForIframes(m.querySelector("html"),function(){--w||d()})},function(m){m||d()})}},{key:"forEachIframe",value:function(c,d,p){var w=this,m=arguments.length>3&&arguments[3]!==void 0?arguments[3]:function(){},C=c.querySelectorAll("iframe"),v=C.length,g=0;C=Array.prototype.slice.call(C);var x=function(){--v<=0&&m(g)};v||x(),C.forEach(function(E){u.matches(E,w.exclude)?x():w.onIframeReady(E,function(S){d(E)&&(g++,p(S)),x()},x)})}},{key:"createIterator",value:function(c,d,p){return document.createNodeIterator(c,d,p,!1)}},{key:"createInstanceOnIframe",value:function(c){return new u(c.querySelector("html"),this.iframes)}},{key:"compareNodeIframe",value:function(c,d,p){var w=c.compareDocumentPosition(p),m=Node.DOCUMENT_POSITION_PRECEDING;if(w&m)if(d!==null){var C=d.compareDocumentPosition(p),v=Node.DOCUMENT_POSITION_FOLLOWING;if(C&v)return!0}else return!0;return!1}},{key:"getIteratorNode",value:function(c){var d=c.previousNode(),p=void 0;return d===null?p=c.nextNode():p=c.nextNode()&&c.nextNode(),{prevNode:d,node:p}}},{key:"checkIframeFilter",value:function(c,d,p,w){var m=!1,C=!1;return w.forEach(function(v,g){v.val===p&&(m=g,C=v.handled)}),this.compareNodeIframe(c,d,p)?(m===!1&&!C?w.push({val:p,handled:!0}):m!==!1&&!C&&(w[m].handled=!0),!0):(m===!1&&w.push({val:p,handled:!1}),!1)}},{key:"handleOpenIframes",value:function(c,d,p,w){var m=this;c.forEach(function(C){C.handled||m.getIframeContents(C.val,function(v){m.createInstanceOnIframe(v).forEachNode(d,p,w)})})}},{key:"iterateThroughNodes",value:function(c,d,p,w,m){for(var C=this,v=this.createIterator(d,c,w),g=[],x=[],E=void 0,S=void 0,$=function(){var b=C.getIteratorNode(v);return S=b.prevNode,E=b.node,E};$();)this.iframes&&this.forEachIframe(d,function(_){return C.checkIframeFilter(E,S,_,g)},function(_){C.createInstanceOnIframe(_).forEachNode(c,function(b){return x.push(b)},w)}),x.push(E);x.forEach(function(_){p(_)}),this.iframes&&this.handleOpenIframes(g,c,p,w),m()}},{key:"forEachNode",value:function(c,d,p){var w=this,m=arguments.length>3&&arguments[3]!==void 0?arguments[3]:function(){},C=this.getContexts(),v=C.length;v||m(),C.forEach(function(g){var x=function(){w.iterateThroughNodes(c,g,d,p,function(){--v<=0&&m()})};w.iframes?w.waitForIframes(g,x):x()})}}],[{key:"matches",value:function(c,d){var p=typeof d=="string"?[d]:d,w=c.matches||c.matchesSelector||c.msMatchesSelector||c.mozMatchesSelector||c.oMatchesSelector||c.webkitMatchesSelector;if(w){var m=!1;return p.every(function(C){return w.call(c,C)?(m=!0,!1):!0}),m}else return!1}}]),u}(),l=function(){function u(f){r(this,u),this.ctx=f,this.ie=!1;var c=window.navigator.userAgent;(c.indexOf("MSIE")>-1||c.indexOf("Trident")>-1)&&(this.ie=!0)}return o(u,[{key:"log",value:function(c){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"debug",p=this.opt.log;this.opt.debug&&(typeof p>"u"?"undefined":n(p))==="object"&&typeof p[d]=="function"&&p[d]("mark.js: "+c)}},{key:"escapeStr",value:function(c){return c.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}},{key:"createRegExp",value:function(c){return this.opt.wildcards!=="disabled"&&(c=this.setupWildcardsRegExp(c)),c=this.escapeStr(c),Object.keys(this.opt.synonyms).length&&(c=this.createSynonymsRegExp(c)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(c=this.setupIgnoreJoinersRegExp(c)),this.opt.diacritics&&(c=this.createDiacriticsRegExp(c)),c=this.createMergedBlanksRegExp(c),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(c=this.createJoinersRegExp(c)),this.opt.wildcards!=="disabled"&&(c=this.createWildcardsRegExp(c)),c=this.createAccuracyRegExp(c),c}},{key:"createSynonymsRegExp",value:function(c){var d=this.opt.synonyms,p=this.opt.caseSensitive?"":"i",w=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(var m in d)if(d.hasOwnProperty(m)){var C=d[m],v=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(m):this.escapeStr(m),g=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(C):this.escapeStr(C);v!==""&&g!==""&&(c=c.replace(new RegExp("("+this.escapeStr(v)+"|"+this.escapeStr(g)+")","gm"+p),w+("("+this.processSynomyms(v)+"|")+(this.processSynomyms(g)+")")+w))}return c}},{key:"processSynomyms",value:function(c){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(c=this.setupIgnoreJoinersRegExp(c)),c}},{key:"setupWildcardsRegExp",value:function(c){return c=c.replace(/(?:\\)*\?/g,function(d){return d.charAt(0)==="\\"?"?":""}),c.replace(/(?:\\)*\*/g,function(d){return d.charAt(0)==="\\"?"*":""})}},{key:"createWildcardsRegExp",value:function(c){var d=this.opt.wildcards==="withSpaces";return c.replace(/\u0001/g,d?"[\\S\\s]?":"\\S?").replace(/\u0002/g,d?"[\\S\\s]*?":"\\S*")}},{key:"setupIgnoreJoinersRegExp",value:function(c){return c.replace(/[^(|)\\]/g,function(d,p,w){var m=w.charAt(p+1);return/[(|)\\]/.test(m)||m===""?d:d+"\0"})}},{key:"createJoinersRegExp",value:function(c){var d=[],p=this.opt.ignorePunctuation;return Array.isArray(p)&&p.length&&d.push(this.escapeStr(p.join(""))),this.opt.ignoreJoiners&&d.push("\\u00ad\\u200b\\u200c\\u200d"),d.length?c.split(/\u0000+/).join("["+d.join("")+"]*"):c}},{key:"createDiacriticsRegExp",value:function(c){var d=this.opt.caseSensitive?"":"i",p=this.opt.caseSensitive?["aàáảãạăằắẳẵặâầấẩẫậäåāą","AÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÄÅĀĄ","cçćč","CÇĆČ","dđď","DĐĎ","eèéẻẽẹêềếểễệëěēę","EÈÉẺẼẸÊỀẾỂỄỆËĚĒĘ","iìíỉĩịîïī","IÌÍỈĨỊÎÏĪ","lł","LŁ","nñňń","NÑŇŃ","oòóỏõọôồốổỗộơởỡớờợöøō","OÒÓỎÕỌÔỒỐỔỖỘƠỞỠỚỜỢÖØŌ","rř","RŘ","sšśșş","SŠŚȘŞ","tťțţ","TŤȚŢ","uùúủũụưừứửữựûüůū","UÙÚỦŨỤƯỪỨỬỮỰÛÜŮŪ","yýỳỷỹỵÿ","YÝỲỶỸỴŸ","zžżź","ZŽŻŹ"]:["aàáảãạăằắẳẵặâầấẩẫậäåāąAÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÄÅĀĄ","cçćčCÇĆČ","dđďDĐĎ","eèéẻẽẹêềếểễệëěēęEÈÉẺẼẸÊỀẾỂỄỆËĚĒĘ","iìíỉĩịîïīIÌÍỈĨỊÎÏĪ","lłLŁ","nñňńNÑŇŃ","oòóỏõọôồốổỗộơởỡớờợöøōOÒÓỎÕỌÔỒỐỔỖỘƠỞỠỚỜỢÖØŌ","rřRŘ","sšśșşSŠŚȘŞ","tťțţTŤȚŢ","uùúủũụưừứửữựûüůūUÙÚỦŨỤƯỪỨỬỮỰÛÜŮŪ","yýỳỷỹỵÿYÝỲỶỸỴŸ","zžżźZŽŻŹ"],w=[];return c.split("").forEach(function(m){p.every(function(C){if(C.indexOf(m)!==-1){if(w.indexOf(C)>-1)return!1;c=c.replace(new RegExp("["+C+"]","gm"+d),"["+C+"]"),w.push(C)}return!0})}),c}},{key:"createMergedBlanksRegExp",value:function(c){return c.replace(/[\s]+/gmi,"[\\s]+")}},{key:"createAccuracyRegExp",value:function(c){var d=this,p="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~¡¿",w=this.opt.accuracy,m=typeof w=="string"?w:w.value,C=typeof w=="string"?[]:w.limiters,v="";switch(C.forEach(function(g){v+="|"+d.escapeStr(g)}),m){case"partially":default:return"()("+c+")";case"complementary":return v="\\s"+(v||this.escapeStr(p)),"()([^"+v+"]*"+c+"[^"+v+"]*)";case"exactly":return"(^|\\s"+v+")("+c+")(?=$|\\s"+v+")"}}},{key:"getSeparatedKeywords",value:function(c){var d=this,p=[];return c.forEach(function(w){d.opt.separateWordSearch?w.split(" ").forEach(function(m){m.trim()&&p.indexOf(m)===-1&&p.push(m)}):w.trim()&&p.indexOf(w)===-1&&p.push(w)}),{keywords:p.sort(function(w,m){return m.length-w.length}),length:p.length}}},{key:"isNumeric",value:function(c){return Number(parseFloat(c))==c}},{key:"checkRanges",value:function(c){var d=this;if(!Array.isArray(c)||Object.prototype.toString.call(c[0])!=="[object Object]")return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(c),[];var p=[],w=0;return c.sort(function(m,C){return m.start-C.start}).forEach(function(m){var C=d.callNoMatchOnInvalidRanges(m,w),v=C.start,g=C.end,x=C.valid;x&&(m.start=v,m.length=g-v,p.push(m),w=g)}),p}},{key:"callNoMatchOnInvalidRanges",value:function(c,d){var p=void 0,w=void 0,m=!1;return c&&typeof c.start<"u"?(p=parseInt(c.start,10),w=p+parseInt(c.length,10),this.isNumeric(c.start)&&this.isNumeric(c.length)&&w-d>0&&w-p>0?m=!0:(this.log("Ignoring invalid or overlapping range: "+(""+JSON.stringify(c))),this.opt.noMatch(c))):(this.log("Ignoring invalid range: "+JSON.stringify(c)),this.opt.noMatch(c)),{start:p,end:w,valid:m}}},{key:"checkWhitespaceRanges",value:function(c,d,p){var w=void 0,m=!0,C=p.length,v=d-C,g=parseInt(c.start,10)-v;return g=g>C?C:g,w=g+parseInt(c.length,10),w>C&&(w=C,this.log("End range automatically set to the max value of "+C)),g<0||w-g<0||g>C||w>C?(m=!1,this.log("Invalid range: "+JSON.stringify(c)),this.opt.noMatch(c)):p.substring(g,w).replace(/\s+/g,"")===""&&(m=!1,this.log("Skipping whitespace only range: "+JSON.stringify(c)),this.opt.noMatch(c)),{start:g,end:w,valid:m}}},{key:"getTextNodes",value:function(c){var d=this,p="",w=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,function(m){w.push({start:p.length,end:(p+=m.textContent).length,node:m})},function(m){return d.matchesExclude(m.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},function(){c({value:p,nodes:w})})}},{key:"matchesExclude",value:function(c){return a.matches(c,this.opt.exclude.concat(["script","style","title","head","html"]))}},{key:"wrapRangeInTextNode",value:function(c,d,p){var w=this.opt.element?this.opt.element:"mark",m=c.splitText(d),C=m.splitText(p-d),v=document.createElement(w);return v.setAttribute("data-markjs","true"),this.opt.className&&v.setAttribute("class",this.opt.className),v.textContent=m.textContent,m.parentNode.replaceChild(v,m),C}},{key:"wrapRangeInMappedTextNode",value:function(c,d,p,w,m){var C=this;c.nodes.every(function(v,g){var x=c.nodes[g+1];if(typeof x>"u"||x.start>d){if(!w(v.node))return!1;var E=d-v.start,S=(p>v.end?v.end:p)-v.start,$=c.value.substr(0,v.start),_=c.value.substr(S+v.start);if(v.node=C.wrapRangeInTextNode(v.node,E,S),c.value=$+_,c.nodes.forEach(function(b,T){T>=g&&(c.nodes[T].start>0&&T!==g&&(c.nodes[T].start-=S),c.nodes[T].end-=S)}),p-=S,m(v.node.previousSibling,v.start),p>v.end)d=v.end;else return!1}return!0})}},{key:"wrapMatches",value:function(c,d,p,w,m){var C=this,v=d===0?0:d+1;this.getTextNodes(function(g){g.nodes.forEach(function(x){x=x.node;for(var E=void 0;(E=c.exec(x.textContent))!==null&&E[v]!=="";)if(p(E[v],x)){var S=E.index;if(v!==0)for(var $=1;${const o=setTimeout(()=>r(e),t);return()=>{clearTimeout(o)}},[e,t]),n}function vu(e,t){const[n,r]=h.useState();h.useEffect(()=>{const i=w8(e);r(typeof i>"u"||i===null?typeof t=="function"?t():t:i)},[t,e]);const o=h.useCallback(i=>{r(a=>{let l;typeof i=="function"?l=i(a):l=i;try{localStorage.setItem(e,JSON.stringify(l))}catch{}return l})},[e]);return[n,o]}function w8(e){try{const t=localStorage.getItem(e);return typeof t=="string"?JSON.parse(t):void 0}catch{return}}var x8="vocs_Kbd";function Pg(e){return y.jsx("kbd",{...e,className:I(e.className,x8)})}var C8="vocs_KeyboardShortcut_kbdGroup",E8="vocs_KeyboardShortcut";function ro(e){const{description:t,keys:n}=e;return y.jsxs("span",{className:E8,children:[t,y.jsx("span",{className:C8,children:n.map(r=>y.jsx(Pg,{children:r},r))})]})}var _8="vocs_SearchDialog_content",_p="vocs_SearchDialog_excerpt",S8="vocs_SearchDialog_overlay",b8="vocs_SearchDialog_result",Sp="vocs_SearchDialog_resultIcon",$8="vocs_SearchDialog_resultSelected",T8="vocs_SearchDialog_results",k8="vocs_SearchDialog",R8="vocs_SearchDialog_searchBox",N8="vocs_SearchDialog_searchInput",Ta="vocs_SearchDialog_searchInputIcon",P8="vocs_SearchDialog_searchInputIconDesktop",A8="vocs_SearchDialog_searchInputIconMobile",L8="vocs_SearchDialog_searchShortcuts",bp="vocs_SearchDialog_title",I8="vocs_SearchDialog_titleIcon",O8="vocs_SearchDialog_titles";function Ag(e){const{search:t}=Ke(),n=Uf(),r=h.useRef(null),o=h.useRef(null),[i,a]=vu("filterText",""),l=y8(i,200),s=Rg(),[u,f]=h.useState(-1),[c,d]=h.useState(!1),[p,w]=vu("showDetailView",!0),m=h.useMemo(()=>s?l?(f(0),s.search(l,t).slice(0,16)):(f(-1),[]):[],[s,t,l]),C=m.length,v=m[u],g=h.useCallback(()=>{var $,_,b;if(!o.current)return;const x=new Set;for(const T of m)for(const P in T.match)x.add(P);const E=new g8(o.current);E.unmark({done(){E==null||E.markRegExp(M8(x))}});const S=o.current.querySelectorAll(`.${_p}`);for(const T of S)($=T.querySelector('mark[data-markjs="true"]'))==null||$.scrollIntoView({block:"center"});(b=(_=o.current)==null?void 0:_.firstElementChild)==null||b.scrollIntoView({block:"start"})},[m]);return h.useEffect(()=>{if(!e.open)return;function x(E){var S;switch(E.key){case"ArrowDown":{E.preventDefault(),f($=>{var T;let _=$+1;_>=C&&(_=0);const b=(T=o.current)==null?void 0:T.children[_];return b==null||b.scrollIntoView({block:"nearest"}),_}),d(!0);break}case"ArrowUp":{E.preventDefault(),f($=>{var T;let _=$-1;_<0&&(_=C-1);const b=(T=o.current)==null?void 0:T.children[_];return b==null||b.scrollIntoView({block:"nearest"}),_}),d(!0);break}case"Backspace":{if(!E.metaKey)return;E.preventDefault(),a(""),(S=r.current)==null||S.focus();break}case"Enter":{if(E.target instanceof HTMLButtonElement&&E.target.type!=="submit"||!v)return;E.preventDefault(),n(v.href),e.onClose();break}}}return window.addEventListener("keydown",x),()=>{window.removeEventListener("keydown",x)}},[n,C,a,v,e.open,e.onClose]),h.useEffect(()=>{l!==""&&o.current&&g()},[g,l]),y.jsxs(Y4,{children:[y.jsx(G4,{className:S8}),y.jsxs(Q4,{onOpenAutoFocus:x=>{r.current&&(x.preventDefault(),r.current.focus()),g()},onCloseAutoFocus:()=>{f(0)},className:k8,"aria-describedby":void 0,children:[y.jsx(Z4,{className:eg,children:"Search"}),y.jsxs("form",{className:R8,children:[y.jsx("button",{"aria-label":"Close search dialog",type:"button",onClick:()=>e.onClose(),className:A8,children:y.jsx(u5,{className:Ta,height:20,width:20})}),y.jsx(v8,{htmlFor:"search-input",children:y.jsx(Kf,{"aria-label":"Search",className:I(Ta,P8),height:20,width:20})}),y.jsx("input",{ref:r,tabIndex:0,className:N8,id:"search-input",onChange:x=>a(x.target.value),placeholder:"Search",type:"search",value:i}),y.jsx("button",{"aria-label":"Toggle detail view",type:"button",onClick:()=>w(x=>!x),children:y.jsx(y5,{className:Ta,height:20,width:20})}),y.jsx("button",{"aria-label":"Reset search",type:"button",className:Ta,onClick:()=>{var x;a(""),(x=r.current)==null||x.focus()},children:"⌫"})]}),y.jsxs("ul",{className:T8,role:m.length?"listbox":void 0,onMouseMove:()=>d(!1),ref:o,children:[l&&m.length===0&&y.jsxs("li",{children:['No results for "',y.jsx("span",{children:l}),'"']}),m.map((x,E)=>{var S;return y.jsx("li",{role:"option",className:I(b8,E===u&&$8),"aria-selected":E===u,"aria-label":[...x.titles.filter($=>!!$),x.title].join(" > "),children:y.jsxs(Vf,{to:x.href,onClick:$=>{$.metaKey||e.onClose()},onMouseEnter:()=>!c&&f(E),onFocus:()=>f(E),children:[y.jsxs("div",{className:O8,children:[x.isPage?y.jsx(m5,{className:Sp}):y.jsx("span",{className:Sp,children:"#"}),x.titles.filter($=>!!$).map($=>y.jsxs("span",{className:bp,children:[y.jsx("span",{dangerouslySetInnerHTML:{__html:$}}),y.jsx(d5,{className:I8})]},$)),y.jsx("span",{className:bp,children:y.jsx("span",{dangerouslySetInnerHTML:{__html:x.title}})})]}),p&&((S=x.text)==null?void 0:S.trim())&&y.jsx("div",{className:_p,children:y.jsx(X0,{className:_8,children:y.jsx("div",{dangerouslySetInnerHTML:{__html:x.html}})})})]})},x.id)})]}),y.jsxs("div",{className:L8,children:[y.jsx(ro,{description:"Navigate",keys:["↑","↓"]}),y.jsx(ro,{description:"Select",keys:["enter"]}),y.jsx(ro,{description:"Close",keys:["esc"]}),y.jsx(ro,{description:"Reset",keys:["⌘","⌫"]})]})]})]})}function M8(e){return new RegExp([...e].sort((t,n)=>n.length-t.length).map(t=>`(${t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")})`).join("|"),"gi")}function D8(){Rg();const[e,t]=h.useState(!1);return h.useEffect(()=>{function n(r){const o=document.activeElement instanceof HTMLElement&&(["input","select","textarea"].includes(document.activeElement.tagName.toLowerCase())||document.activeElement.isContentEditable);r.key==="/"&&!e&&!o?(r.preventDefault(),t(!0)):r.metaKey===!0&&r.key==="k"&&(r.preventDefault(),t(i=>!i))}return window.addEventListener("keydown",n),()=>{window.removeEventListener("keydown",n)}},[e]),y.jsxs(Cg,{open:e,onOpenChange:t,children:[y.jsx(Eg,{asChild:!0,children:y.jsxs("button",{className:d8,type:"button",children:[y.jsx(Kf,{style:{marginTop:2}}),"Search",y.jsx("div",{className:h8,children:y.jsx("div",{style:{background:"currentColor",transform:"rotate(45deg)",width:1.5,borderRadius:2,height:"100%"}})})]})}),y.jsx(Ag,{open:e,onClose:()=>t(!1)})]})}var Lg="vocs_DesktopTopNav_button",j8="vocs_DesktopTopNav_content",F8="vocs_DesktopTopNav_curtain",$p="vocs_DesktopTopNav_divider",Xs="vocs_DesktopTopNav_group",ka="vocs_DesktopTopNav_hideCompact",mu="vocs_DesktopTopNav_icon",_l="vocs_DesktopTopNav_item",z8="vocs_DesktopTopNav_logo",B8="vocs_DesktopTopNav_logoWrapper",U8="vocs_DesktopTopNav",Tp="vocs_DesktopTopNav_section",H8="vocs_DesktopTopNav_withLogo",V8="vocs_Icon",gu="var(--vocs_Icon_size)";function ct({className:e,label:t,icon:n,size:r,style:o}){return y.jsx("div",{"aria-label":t,className:I(V8,e),role:"img",style:{...o,...Yt({[gu]:r})},children:y.jsx(n,{height:r,width:r})})}var W8="vocs_Logo_logoDark",K8="vocs_Logo_logoLight",Js="vocs_Logo";function Y8({className:e}){const{logoUrl:t}=Ke();return t?y.jsx(y.Fragment,{children:typeof t=="string"?y.jsx("img",{alt:"Logo",className:I(e,Js),src:t}):y.jsxs(y.Fragment,{children:[y.jsx("img",{alt:"Logo",className:I(e,Js,W8),src:t.dark}),y.jsx("img",{alt:"Logo",className:I(e,Js,K8),src:t.light})]})}):null}var G8="vocs_NavLogo_logoImage",Q8="vocs_NavLogo_title";function Jf(){const e=Ke();return e.logoUrl?y.jsx(Y8,{className:G8}):y.jsx("div",{className:Q8,children:e.title})}const Z8=h.createContext(void 0);function Ql(e){const t=h.useContext(Z8);return e||t||"ltr"}function Zl(e){const t=e+"CollectionProvider",[n,r]=En(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=p=>{const{scope:w,children:m}=p,C=Z.useRef(null),v=Z.useRef(new Map).current;return Z.createElement(o,{scope:w,itemMap:v,collectionRef:C},m)},l=e+"CollectionSlot",s=Z.forwardRef((p,w)=>{const{scope:m,children:C}=p,v=i(l,m),g=Ue(w,v.collectionRef);return Z.createElement(So,{ref:g},C)}),u=e+"CollectionItemSlot",f="data-radix-collection-item",c=Z.forwardRef((p,w)=>{const{scope:m,children:C,...v}=p,g=Z.useRef(null),x=Ue(w,g),E=i(u,m);return Z.useEffect(()=>(E.itemMap.set(g,{ref:g,...v}),()=>void E.itemMap.delete(g))),Z.createElement(So,{[f]:"",ref:x},C)});function d(p){const w=i(e+"CollectionConsumer",p);return Z.useCallback(()=>{const C=w.collectionRef.current;if(!C)return[];const v=Array.from(C.querySelectorAll(`[${f}]`));return Array.from(w.itemMap.values()).sort((E,S)=>v.indexOf(E.ref.current)-v.indexOf(S.ref.current))},[w.collectionRef,w.itemMap])}return[{Provider:a,Slot:s,ItemSlot:c},d,r]}function X8(e){const t=h.useRef({value:e,previous:e});return h.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}const J8=h.forwardRef((e,t)=>h.createElement(fe.span,Y({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}))),q8=J8,Gi="NavigationMenu",[qf,e7,t7]=Zl(Gi),[yu,n7,r7]=Zl(Gi),[ed,s$]=En(Gi,[t7,r7]),[o7,Ar]=ed(Gi),[i7,c$]=ed(Gi),a7=h.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,onValueChange:o,defaultValue:i,delayDuration:a=200,skipDelayDuration:l=300,orientation:s="horizontal",dir:u,...f}=e,[c,d]=h.useState(null),p=Ue(t,T=>d(T)),w=Ql(u),m=h.useRef(0),C=h.useRef(0),v=h.useRef(0),[g,x]=h.useState(!0),[E="",S]=or({prop:r,onChange:T=>{const P=T!=="",M=l>0;P?(window.clearTimeout(v.current),M&&x(!1)):(window.clearTimeout(v.current),v.current=window.setTimeout(()=>x(!0),l)),o==null||o(T)},defaultProp:i}),$=h.useCallback(()=>{window.clearTimeout(C.current),C.current=window.setTimeout(()=>S(""),150)},[S]),_=h.useCallback(T=>{window.clearTimeout(C.current),S(T)},[S]),b=h.useCallback(T=>{E===T?window.clearTimeout(C.current):m.current=window.setTimeout(()=>{window.clearTimeout(C.current),S(T)},a)},[E,S,a]);return h.useEffect(()=>()=>{window.clearTimeout(m.current),window.clearTimeout(C.current),window.clearTimeout(v.current)},[]),h.createElement(l7,{scope:n,isRootMenu:!0,value:E,dir:w,orientation:s,rootNavigationMenu:c,onTriggerEnter:T=>{window.clearTimeout(m.current),g?b(T):_(T)},onTriggerLeave:()=>{window.clearTimeout(m.current),$()},onContentEnter:()=>window.clearTimeout(C.current),onContentLeave:$,onItemSelect:T=>{S(P=>P===T?"":T)},onItemDismiss:()=>S("")},h.createElement(fe.nav,Y({"aria-label":"Main","data-orientation":s,dir:w},f,{ref:p})))}),l7=e=>{const{scope:t,isRootMenu:n,rootNavigationMenu:r,dir:o,orientation:i,children:a,value:l,onItemSelect:s,onItemDismiss:u,onTriggerEnter:f,onTriggerLeave:c,onContentEnter:d,onContentLeave:p}=e,[w,m]=h.useState(null),[C,v]=h.useState(new Map),[g,x]=h.useState(null);return h.createElement(o7,{scope:t,isRootMenu:n,rootNavigationMenu:r,value:l,previousValue:X8(l),baseId:on(),dir:o,orientation:i,viewport:w,onViewportChange:m,indicatorTrack:g,onIndicatorTrackChange:x,onTriggerEnter:lt(f),onTriggerLeave:lt(c),onContentEnter:lt(d),onContentLeave:lt(p),onItemSelect:lt(s),onItemDismiss:lt(u),onViewportContentChange:h.useCallback((E,S)=>{v($=>($.set(E,S),new Map($)))},[]),onViewportContentRemove:h.useCallback(E=>{v(S=>S.has(E)?(S.delete(E),new Map(S)):S)},[])},h.createElement(qf.Provider,{scope:t},h.createElement(i7,{scope:t,items:C},a)))},s7="NavigationMenuList",c7=h.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=Ar(s7,n),i=h.createElement(fe.ul,Y({"data-orientation":o.orientation},r,{ref:t}));return h.createElement(fe.div,{style:{position:"relative"},ref:o.onIndicatorTrackChange},h.createElement(qf.Slot,{scope:n},o.isRootMenu?h.createElement(Og,{asChild:!0},i):i))}),u7="NavigationMenuItem",[f7,Ig]=ed(u7),d7=h.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,...o}=e,i=on(),a=r||i||"LEGACY_REACT_AUTO_VALUE",l=h.useRef(null),s=h.useRef(null),u=h.useRef(null),f=h.useRef(()=>{}),c=h.useRef(!1),d=h.useCallback((w="start")=>{if(l.current){f.current();const m=wu(l.current);m.length&&td(w==="start"?m:m.reverse())}},[]),p=h.useCallback(()=>{if(l.current){const w=wu(l.current);w.length&&(f.current=x7(w))}},[]);return h.createElement(f7,{scope:n,value:a,triggerRef:s,contentRef:l,focusProxyRef:u,wasEscapeCloseRef:c,onEntryKeyDown:d,onFocusProxyEnter:d,onRootContentClose:p,onContentFocusOutside:p},h.createElement(fe.li,Y({},o,{ref:t})))}),kp="NavigationMenuTrigger",h7=h.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,disabled:r,...o}=e,i=Ar(kp,e.__scopeNavigationMenu),a=Ig(kp,e.__scopeNavigationMenu),l=h.useRef(null),s=Ue(l,a.triggerRef,t),u=jg(i.baseId,a.value),f=Fg(i.baseId,a.value),c=h.useRef(!1),d=h.useRef(!1),p=a.value===i.value;return h.createElement(h.Fragment,null,h.createElement(qf.ItemSlot,{scope:n,value:a.value},h.createElement(Mg,{asChild:!0},h.createElement(fe.button,Y({id:u,disabled:r,"data-disabled":r?"":void 0,"data-state":Dg(p),"aria-expanded":p,"aria-controls":f},o,{ref:s,onPointerEnter:le(e.onPointerEnter,()=>{d.current=!1,a.wasEscapeCloseRef.current=!1}),onPointerMove:le(e.onPointerMove,xu(()=>{r||d.current||a.wasEscapeCloseRef.current||c.current||(i.onTriggerEnter(a.value),c.current=!0)})),onPointerLeave:le(e.onPointerLeave,xu(()=>{r||(i.onTriggerLeave(),c.current=!1)})),onClick:le(e.onClick,()=>{i.onItemSelect(a.value),d.current=p}),onKeyDown:le(e.onKeyDown,w=>{const C={horizontal:"ArrowDown",vertical:i.dir==="rtl"?"ArrowLeft":"ArrowRight"}[i.orientation];p&&w.key===C&&(a.onEntryKeyDown(),w.preventDefault())})})))),p&&h.createElement(h.Fragment,null,h.createElement(q8,{"aria-hidden":!0,tabIndex:0,ref:a.focusProxyRef,onFocus:w=>{const m=a.contentRef.current,C=w.relatedTarget,v=C===l.current,g=m==null?void 0:m.contains(C);(v||!g)&&a.onFocusProxyEnter(v?"start":"end")}}),i.viewport&&h.createElement("span",{"aria-owns":f})))}),Rp="navigationMenu.linkSelect",p7=h.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,active:r,onSelect:o,...i}=e;return h.createElement(Mg,{asChild:!0},h.createElement(fe.a,Y({"data-active":r?"":void 0,"aria-current":r?"page":void 0},i,{ref:t,onClick:le(e.onClick,a=>{const l=a.target,s=new CustomEvent(Rp,{bubbles:!0,cancelable:!0});if(l.addEventListener(Rp,u=>o==null?void 0:o(u),{once:!0}),su(l,s),!s.defaultPrevented&&!a.metaKey){const u=new CustomEvent(Ka,{bubbles:!0,cancelable:!0});su(l,u)}},{checkForDefaultPrevented:!1})})))}),Sl="NavigationMenuContent",v7=h.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Ar(Sl,e.__scopeNavigationMenu),i=Ig(Sl,e.__scopeNavigationMenu),a=Ue(i.contentRef,t),l=i.value===o.value,s={value:i.value,triggerRef:i.triggerRef,focusProxyRef:i.focusProxyRef,wasEscapeCloseRef:i.wasEscapeCloseRef,onContentFocusOutside:i.onContentFocusOutside,onRootContentClose:i.onRootContentClose,...r};return o.viewport?h.createElement(m7,Y({forceMount:n},s,{ref:a})):h.createElement(_n,{present:n||l},h.createElement(g7,Y({"data-state":Dg(l)},s,{ref:a,onPointerEnter:le(e.onPointerEnter,o.onContentEnter),onPointerLeave:le(e.onPointerLeave,xu(o.onContentLeave)),style:{pointerEvents:!l&&o.isRootMenu?"none":void 0,...s.style}})))}),m7=h.forwardRef((e,t)=>{const n=Ar(Sl,e.__scopeNavigationMenu),{onViewportContentChange:r,onViewportContentRemove:o}=n;return yn(()=>{r(e.value,{ref:t,...e})},[e,t,r]),yn(()=>()=>o(e.value),[e.value,o]),null}),Ka="navigationMenu.rootContentDismiss",g7=h.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,triggerRef:o,focusProxyRef:i,wasEscapeCloseRef:a,onRootContentClose:l,onContentFocusOutside:s,...u}=e,f=Ar(Sl,n),c=h.useRef(null),d=Ue(c,t),p=jg(f.baseId,r),w=Fg(f.baseId,r),m=e7(n),C=h.useRef(null),{onItemDismiss:v}=f;h.useEffect(()=>{const x=c.current;if(f.isRootMenu&&x){const E=()=>{var S;v(),l(),x.contains(document.activeElement)&&((S=o.current)===null||S===void 0||S.focus())};return x.addEventListener(Ka,E),()=>x.removeEventListener(Ka,E)}},[f.isRootMenu,e.value,o,v,l]);const g=h.useMemo(()=>{const E=m().map(P=>P.value);f.dir==="rtl"&&E.reverse();const S=E.indexOf(f.value),$=E.indexOf(f.previousValue),_=r===f.value,b=$===E.indexOf(r);if(!_&&!b)return C.current;const T=(()=>{if(S!==$){if(_&&$!==-1)return S>$?"from-end":"from-start";if(b&&S!==-1)return S>$?"to-start":"to-end"}return null})();return C.current=T,T},[f.previousValue,f.value,f.dir,m,r]);return h.createElement(Og,{asChild:!0},h.createElement(Yf,Y({id:w,"aria-labelledby":p,"data-motion":g,"data-orientation":f.orientation},u,{ref:d,onDismiss:()=>{var x;const E=new Event(Ka,{bubbles:!0,cancelable:!0});(x=c.current)===null||x===void 0||x.dispatchEvent(E)},onFocusOutside:le(e.onFocusOutside,x=>{var E;s();const S=x.target;(E=f.rootNavigationMenu)!==null&&E!==void 0&&E.contains(S)&&x.preventDefault()}),onPointerDownOutside:le(e.onPointerDownOutside,x=>{var E;const S=x.target,$=m().some(b=>{var T;return(T=b.ref.current)===null||T===void 0?void 0:T.contains(S)}),_=f.isRootMenu&&((E=f.viewport)===null||E===void 0?void 0:E.contains(S));($||_||!f.isRootMenu)&&x.preventDefault()}),onKeyDown:le(e.onKeyDown,x=>{const E=x.altKey||x.ctrlKey||x.metaKey;if(x.key==="Tab"&&!E){const _=wu(x.currentTarget),b=document.activeElement,T=_.findIndex(O=>O===b),M=x.shiftKey?_.slice(0,T).reverse():_.slice(T+1,_.length);if(td(M))x.preventDefault();else{var $;($=i.current)===null||$===void 0||$.focus()}}}),onEscapeKeyDown:le(e.onEscapeKeyDown,x=>{a.current=!0})})))}),y7="FocusGroup",Og=h.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=Ar(y7,n);return h.createElement(yu.Provider,{scope:n},h.createElement(yu.Slot,{scope:n},h.createElement(fe.div,Y({dir:o.dir},r,{ref:t}))))}),Np=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],w7="FocusGroupItem",Mg=h.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=n7(n),i=Ar(w7,n);return h.createElement(yu.ItemSlot,{scope:n},h.createElement(fe.button,Y({},r,{ref:t,onKeyDown:le(e.onKeyDown,a=>{if(["Home","End",...Np].includes(a.key)){let s=o().map(c=>c.ref.current);if([i.dir==="rtl"?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(a.key)&&s.reverse(),Np.includes(a.key)){const c=s.indexOf(a.currentTarget);s=s.slice(c+1)}setTimeout(()=>td(s)),a.preventDefault()}})})))});function wu(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function td(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}function x7(e){return e.forEach(t=>{t.dataset.tabindex=t.getAttribute("tabindex")||"",t.setAttribute("tabindex","-1")}),()=>{e.forEach(t=>{const n=t.dataset.tabindex;t.setAttribute("tabindex",n)})}}function Dg(e){return e?"open":"closed"}function jg(e,t){return`${e}-trigger-${t}`}function Fg(e,t){return`${e}-content-${t}`}function xu(e){return t=>t.pointerType==="mouse"?e(t):void 0}const C7=a7,E7=c7,_7=d7,S7=h7,b7=p7,$7=v7;var T7="var(--vocs_NavigationMenu_chevronDownIcon)",k7="vocs_NavigationMenu_content",R7="vocs_NavigationMenu_item",N7="vocs_NavigationMenu_link",P7="vocs_NavigationMenu_list",A7="vocs_NavigationMenu",L7="vocs_NavigationMenu_trigger vocs_NavigationMenu_link";const zg=e=>y.jsx(C7,{...e,className:I(e.className,A7)}),Bg=e=>y.jsx(E7,{...e,className:I(e.className,P7)}),Xl=({active:e,children:t,className:n,href:r})=>y.jsx(b7,{asChild:!0,children:y.jsx(rn,{"data-active":e,className:I(n,N7),href:r,variant:"styleless",children:t})}),Ug=e=>y.jsx(_7,{...e,className:I(e.className,R7)}),Hg=({active:e,className:t,...n})=>{const{basePath:r}=Ke(),o=r;return y.jsx(S7,{...n,"data-active":e,className:I(t,L7),style:Yt({[T7]:`url(${o}/.vocs/icons/chevron-down.svg)`})})},Vg=e=>y.jsx($7,{...e,className:I(e.className,k7)});function Wg(){return y.jsxs("svg",{width:"100%",height:"100%",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 127.14 96.36",children:[y.jsx("title",{children:"Discord"}),y.jsx("g",{id:"图层_2","data-name":"图层 2",children:y.jsx("g",{id:"Discord_Logos","data-name":"Discord Logos",children:y.jsx("g",{id:"Discord_Logo_-_Large_-_White","data-name":"Discord Logo - Large - White",children:y.jsx("path",{d:"M107.7,8.07A105.15,105.15,0,0,0,81.47,0a72.06,72.06,0,0,0-3.36,6.83A97.68,97.68,0,0,0,49,6.83,72.37,72.37,0,0,0,45.64,0,105.89,105.89,0,0,0,19.39,8.09C2.79,32.65-1.71,56.6.54,80.21h0A105.73,105.73,0,0,0,32.71,96.36,77.7,77.7,0,0,0,39.6,85.25a68.42,68.42,0,0,1-10.85-5.18c.91-.66,1.8-1.34,2.66-2a75.57,75.57,0,0,0,64.32,0c.87.71,1.76,1.39,2.66,2a68.68,68.68,0,0,1-10.87,5.19,77,77,0,0,0,6.89,11.1A105.25,105.25,0,0,0,126.6,80.22h0C129.24,52.84,122.09,29.11,107.7,8.07ZM42.45,65.69C36.18,65.69,31,60,31,53s5-12.74,11.43-12.74S54,46,53.89,53,48.84,65.69,42.45,65.69Zm42.24,0C78.41,65.69,73.25,60,73.25,53s5-12.74,11.44-12.74S96.23,46,96.12,53,91.08,65.69,84.69,65.69Z",fill:"currentColor"})})})})]})}function Kg(){return y.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 98 96",xmlns:"http://www.w3.org/2000/svg",children:[y.jsx("title",{children:"GitHub"}),y.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M48.854 0C21.839 0 0 22 0 49.217c0 21.756 13.993 40.172 33.405 46.69 2.427.49 3.316-1.059 3.316-2.362 0-1.141-.08-5.052-.08-9.127-13.59 2.934-16.42-5.867-16.42-5.867-2.184-5.704-5.42-7.17-5.42-7.17-4.448-3.015.324-3.015.324-3.015 4.934.326 7.523 5.052 7.523 5.052 4.367 7.496 11.404 5.378 14.235 4.074.404-3.178 1.699-5.378 3.074-6.6-10.839-1.141-22.243-5.378-22.243-24.283 0-5.378 1.94-9.778 5.014-13.2-.485-1.222-2.184-6.275.486-13.038 0 0 4.125-1.304 13.426 5.052a46.97 46.97 0 0 1 12.214-1.63c4.125 0 8.33.571 12.213 1.63 9.302-6.356 13.427-5.052 13.427-5.052 2.67 6.763.97 11.816.485 13.038 3.155 3.422 5.015 7.822 5.015 13.2 0 18.905-11.404 23.06-22.324 24.283 1.78 1.548 3.316 4.481 3.316 9.126 0 6.6-.08 11.897-.08 13.526 0 1.304.89 2.853 3.316 2.364 19.412-6.52 33.405-24.935 33.405-46.691C97.707 22 75.788 0 48.854 0z",fill:"currentColor"})]})}function I7(){return y.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 78 82",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[y.jsx("title",{children:"Moon"}),y.jsx("path",{d:"M62.8455 45.9668C63.6268 45.9668 64.2127 45.3809 64.3104 44.5508C65.4334 34.3457 66.0682 33.9551 76.4197 32.3438C77.3963 32.1973 77.9334 31.7578 77.9334 30.8789C77.9334 30.0977 77.3963 29.5605 76.6151 29.4629C66.1658 27.4609 65.4334 27.4609 64.3104 17.2559C64.2127 16.377 63.6268 15.8398 62.8455 15.8398C62.0154 15.8398 61.4783 16.377 61.3807 17.207C60.1111 27.6074 59.6229 28.0957 49.0272 29.4629C48.2947 29.5117 47.7088 30.0977 47.7088 30.8789C47.7088 31.709 48.2947 32.1973 49.0272 32.3438C59.6229 34.3457 60.0623 34.4434 61.3807 44.6484C61.4783 45.3809 62.0154 45.9668 62.8455 45.9668ZM44.535 19.5508C45.0233 19.5508 45.3162 19.2578 45.4139 18.7695C46.6834 12.4707 46.5369 12.373 53.1287 11.0547C53.5682 10.957 53.91 10.7129 53.91 10.1758C53.91 9.63868 53.5682 9.39448 53.1287 9.29688C46.5369 7.97848 46.6834 7.88089 45.4139 1.58199C45.3162 1.09379 45.0233 0.800781 44.535 0.800781C43.9979 0.800781 43.7049 1.09379 43.6072 1.58199C42.3377 7.88089 42.4842 7.97848 35.9412 9.29688C35.4529 9.39448 35.1111 9.63868 35.1111 10.1758C35.1111 10.7129 35.4529 10.957 35.9412 11.0547C42.4842 12.373 42.3865 12.4707 43.6072 18.7695C43.7049 19.2578 43.9979 19.5508 44.535 19.5508Z",fill:"currentColor"}),y.jsx("path",{d:"M34.3298 81.2696C48.49 81.2696 59.9157 74.043 65.0915 61.7872C65.8239 59.9806 65.5798 58.6134 64.7497 57.7833C64.0173 57.0509 62.7478 56.9044 61.3318 57.4903C58.4509 58.6134 54.9353 59.2481 50.6384 59.2481C33.695 59.2481 22.7575 48.6036 22.7575 32.2462C22.7575 27.4122 23.6853 22.6759 24.7595 20.5763C25.5407 18.9161 25.4919 17.5001 24.8083 16.67C24.0271 15.7423 22.6599 15.4005 20.7068 16.1329C8.64624 20.7716 0.345459 33.4181 0.345459 47.8712C0.345459 66.8165 14.5056 81.2696 34.3298 81.2696ZM34.4275 74.5801C18.4607 74.5801 7.03494 62.9591 7.03494 47.3341C7.03494 38.2521 10.9411 30.0489 17.6306 24.629C16.8005 27.0704 16.361 30.6837 16.361 34.1505C16.361 52.8517 29.5446 65.6935 48.8806 65.6935C52.0544 65.6935 54.9841 65.3517 56.4001 64.9122C51.615 70.918 43.4607 74.5801 34.4275 74.5801Z",fill:"currentColor"})]})}function O7(){return y.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 84 84",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[y.jsx("title",{children:"Sun"}),y.jsx("path",{d:"M41.8675 15.5254C43.9183 15.5254 45.6273 13.7676 45.6273 11.7168V3.80658C45.6273 1.75588 43.9183 0.046875 41.8675 0.046875C39.7679 0.046875 38.0589 1.75588 38.0589 3.80658V11.7168C38.0589 13.7676 39.7679 15.5254 41.8675 15.5254ZM60.3246 23.2402C61.7895 24.7051 64.2309 24.7539 65.7446 23.2402L71.3598 17.6738C72.7758 16.209 72.7758 13.7188 71.3598 12.2539C69.8949 10.7891 67.4535 10.7891 65.9887 12.2539L60.3246 17.918C58.9086 19.3828 58.9086 21.7754 60.3246 23.2402ZM67.9906 41.7461C67.9906 43.7969 69.7485 45.5547 71.7992 45.5547H79.6117C81.7113 45.5547 83.4202 43.7969 83.4202 41.7461C83.4202 39.6953 81.7113 37.9375 79.6117 37.9375H71.7992C69.7485 37.9375 67.9906 39.6953 67.9906 41.7461ZM60.3246 60.3008C58.9086 61.7656 58.9086 64.1582 60.3246 65.623L65.9887 71.2871C67.4535 72.7519 69.8949 72.7031 71.3598 71.2383C72.7758 69.7734 72.7758 67.332 71.3598 65.8672L65.6957 60.3008C64.2309 58.8359 61.7895 58.8359 60.3246 60.3008ZM41.8675 67.9668C39.7679 67.9668 38.0589 69.7246 38.0589 71.7754V79.6855C38.0589 81.7363 39.7679 83.4453 41.8675 83.4453C43.9183 83.4453 45.6273 81.7363 45.6273 79.6855V71.7754C45.6273 69.7246 43.9183 67.9668 41.8675 67.9668ZM23.3617 60.3008C21.8969 58.8359 19.4067 58.8359 17.9418 60.3008L12.3754 65.8184C10.9106 67.2832 10.9106 69.7246 12.3266 71.1894C13.7914 72.6543 16.2328 72.7031 17.6977 71.2383L23.3129 65.623C24.7778 64.1582 24.7778 61.7656 23.3617 60.3008ZM15.6957 41.7461C15.6957 39.6953 13.9867 37.9375 11.8871 37.9375H4.07455C1.97497 37.9375 0.265991 39.6953 0.265991 41.7461C0.265991 43.7969 1.97497 45.5547 4.07455 45.5547H11.8871C13.9867 45.5547 15.6957 43.7969 15.6957 41.7461ZM23.3129 23.2402C24.7778 21.8242 24.7778 19.334 23.3617 17.918L17.7465 12.2539C16.3305 10.8379 13.8403 10.7891 12.4242 12.2539C10.9594 13.7188 10.9594 16.209 12.3754 17.625L17.9418 23.2402C19.4067 24.7051 21.8481 24.7051 23.3129 23.2402Z",fill:"currentColor"}),y.jsx("path",{d:"M41.8675 61.668C52.7073 61.668 61.7405 52.6836 61.7405 41.7461C61.7405 30.8086 52.7073 21.8242 41.8675 21.8242C30.9788 21.8242 21.9456 30.8086 21.9456 41.7461C21.9456 52.6836 30.9788 61.668 41.8675 61.668ZM41.8675 55.0273C34.5921 55.0273 28.5862 48.9727 28.5862 41.7461C28.5862 34.5195 34.5921 28.4648 41.8675 28.4648C49.0941 28.4648 55.0999 34.5195 55.0999 41.7461C55.0999 48.9727 49.0941 55.0273 41.8675 55.0273Z",fill:"currentColor"})]})}function Yg(){return y.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 50 50",children:[y.jsx("title",{children:"Telegram"}),y.jsx("path",{d:"M25 2c12.703 0 23 10.297 23 23S37.703 48 25 48 2 37.703 2 25 12.297 2 25 2zm7.934 32.375c.423-1.298 2.405-14.234 2.65-16.783.074-.772-.17-1.285-.648-1.514-.578-.278-1.434-.139-2.427.219-1.362.491-18.774 7.884-19.78 8.312-.954.405-1.856.847-1.856 1.487 0 .45.267.703 1.003.966.766.273 2.695.858 3.834 1.172 1.097.303 2.346.04 3.046-.395.742-.461 9.305-6.191 9.92-6.693.614-.502 1.104.141.602.644-.502.502-6.38 6.207-7.155 6.997-.941.959-.273 1.953.358 2.351.721.454 5.906 3.932 6.687 4.49.781.558 1.573.811 2.298.811.725 0 1.107-.955 1.468-2.064z",fill:"currentColor"})]})}function Gg(){return y.jsxs("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[y.jsx("title",{children:"Warpcast"}),y.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.92028 31.9901H24.0698C28.4371 31.9901 31.9901 28.4373 31.9901 24.0699V7.92053C31.9901 3.55319 28.4371 0.000137329 24.0698 0.000137329H7.92028C3.55304 0.000137329 0 3.55319 0 7.92053V24.0699C0 28.4373 3.55304 31.9901 7.92028 31.9901ZM19.4134 16.048L20.9908 10.124H25.1383L21.2924 23.2218H17.7062L15.9951 17.1397L14.284 23.2218H10.7055L6.85115 10.124H10.999L12.5915 16.0916L14.1891 10.124H17.8309L19.4134 16.048Z",fill:"currentColor"})]})}function Qg(){return y.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 1200 1227",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[y.jsx("title",{children:"X"}),y.jsx("path",{d:"M714.163 519.284L1160.89 0H1055.03L667.137 450.887L357.328 0H0L468.492 681.821L0 1226.37H105.866L515.491 750.218L842.672 1226.37H1200L714.137 519.284H714.163ZM569.165 687.828L521.697 619.934L144.011 79.6944H306.615L611.412 515.685L658.88 583.579L1055.08 1150.3H892.476L569.165 687.854V687.828Z",fill:"currentColor"})]})}Cu.Curtain=M7;function Cu(){var r,o,i,a;const e=Ke(),{showLogo:t,showSidebar:n}=Pr();return y.jsxs("div",{className:I(U8,t&&!n&&H8),children:[y.jsx(D8,{}),t&&y.jsx("div",{className:B8,children:y.jsx("div",{className:z8,children:y.jsx(Gn,{to:"/",style:{alignItems:"center",display:"flex",height:"56px",marginTop:"4px"},children:y.jsx(Jf,{})})})}),y.jsx("div",{className:Tp}),y.jsxs("div",{className:Tp,children:[(((r=e.topNav)==null?void 0:r.length)||0)>0&&y.jsxs(y.Fragment,{children:[y.jsx("div",{className:Xs,children:y.jsx(D7,{})}),y.jsx("div",{className:I($p,ka)})]}),e.socials&&((o=e.socials)==null?void 0:o.length)>0&&y.jsxs(y.Fragment,{children:[y.jsx("div",{className:I(Xs,ka),style:{marginLeft:"-8px",marginRight:"-8px"},children:e.socials.map((l,s)=>y.jsx("div",{className:_l,children:y.jsx(U7,{...l})},s))}),!((i=e.theme)!=null&&i.colorScheme)&&y.jsx("div",{className:I($p,ka)})]}),!((a=e.theme)!=null&&a.colorScheme)&&y.jsx("div",{className:I(Xs,ka),style:{marginLeft:"-8px",marginRight:"-8px"},children:y.jsx("div",{className:_l,children:y.jsx(F7,{})})})]})]})}function M7(){return y.jsx("div",{className:F8})}function D7(){const{topNav:e}=Ke();if(!e)return null;const{pathname:t}=Re(),n=Yi({pathname:t,items:e});return y.jsx(zg,{delayDuration:0,children:y.jsx(Bg,{children:e.map((r,o)=>r.link?y.jsx(Xl,{active:n.includes(r.id),className:_l,href:r.link,children:r.text},o):r.items?y.jsxs(Ug,{className:_l,children:[y.jsx(Hg,{active:n.includes(r.id),children:r.text}),y.jsx(Vg,{className:j8,children:y.jsx(j7,{items:r.items})})]},o):null)})})}function j7({items:e}){const{pathname:t}=Re(),n=Yi({pathname:t,items:e});return y.jsx("ul",{children:e==null?void 0:e.map((r,o)=>y.jsx(Xl,{active:n.includes(r.id),href:r.link,children:r.text},o))})}function F7(){const{toggle:e}=S5();return y.jsxs("button",{className:Lg,onClick:e,type:"button",children:[y.jsx(ct,{className:I(mu,b5),size:"20px",label:"Light",icon:O7}),y.jsx(ct,{className:I(mu,$5),size:"20px",label:"Dark",icon:I7,style:{marginTop:"-2px"}})]})}const z7={discord:Wg,github:Kg,telegram:Yg,warpcast:Gg,x:Qg},B7={discord:"23px",github:"20px",telegram:"21px",warpcast:"20px",x:"18px"};function U7({icon:e,label:t,link:n}){return y.jsx("a",{className:Lg,href:n,target:"_blank",rel:"noopener noreferrer",children:y.jsx(ct,{className:mu,label:t,icon:z7[e],size:B7[e]||"20px"})})}const H7=({children:e})=>e,V7=({children:e})=>e;function W7(){const e=Nr(),t=Ke();return h.useMemo(()=>{const{pattern:n="",text:r="Edit page"}=t.editLink??{};let o="";return typeof n=="function"?o="":e.filePath&&(o=n.replace(/:path/g,e.filePath)),{url:o,text:r}},[t.editLink,e.filePath])}function Zg(){const[e,t]=h.useState(!1);return h.useEffect(()=>{t(!0)},[]),e}var K7="vocs_Footer_container",Y7="vocs_Footer_editLink",G7="vocs_Footer_lastUpdated",Q7="vocs_Footer_navigation",Pp="vocs_Footer_navigationIcon",Z7="vocs_Footer_navigationIcon_left",X7="vocs_Footer_navigationIcon_right",Ap="vocs_Footer_navigationItem",J7="vocs_Footer_navigationItem_left",q7="vocs_Footer_navigationItem_right",Lp="vocs_Footer_navigationText",Ip="vocs_Footer_navigationTextInner",e6="vocs_Footer";function t6(){return y.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 72 60",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[y.jsx("title",{children:"Arrow Left"}),y.jsx("path",{d:"M0.325684 29.7461C0.325684 30.8203 0.813963 31.8457 1.69286 32.6758L26.8882 57.8223C27.7671 58.6524 28.7437 59.043 29.7691 59.043C31.9175 59.043 33.5777 57.4317 33.5777 55.2344C33.5777 54.209 33.2359 53.1836 32.5035 52.5L25.7652 45.5176L9.26126 30.6738L8.38236 32.7734L21.3706 33.7012H67.4644C69.7593 33.7012 71.3706 32.041 71.3706 29.7461C71.3706 27.4512 69.7593 25.791 67.4644 25.791H21.3706L8.38236 26.7188L9.26126 28.8672L25.7652 13.9746L32.5035 6.99221C33.2359 6.30861 33.5777 5.28322 33.5777 4.25782C33.5777 2.06052 31.9175 0.449219 29.7691 0.449219C28.7437 0.449219 27.7671 0.839814 26.8882 1.66991L1.69286 26.8164C0.813963 27.6465 0.325684 28.6719 0.325684 29.7461Z",fill:"currentColor"})]})}function n6(){return y.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 72 60",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[y.jsx("title",{children:"Arrow Right"}),y.jsx("path",{d:"M71.3706 29.7461C71.3706 28.6719 70.8824 27.6465 70.0035 26.8164L44.8081 1.66991C43.9292 0.839814 42.9527 0.449219 41.9273 0.449219C39.7789 0.449219 38.1187 2.06052 38.1187 4.25782C38.1187 5.28322 38.4605 6.30861 39.1929 6.99221L45.9312 13.9746L62.4351 28.8672L63.314 26.7188L50.3257 25.791H4.23196C1.93706 25.791 0.325684 27.4512 0.325684 29.7461C0.325684 32.041 1.93706 33.7012 4.23196 33.7012H50.3257L63.314 32.7734L62.4351 30.6738L45.9312 45.5176L39.1929 52.5C38.4605 53.1836 38.1187 54.209 38.1187 55.2344C38.1187 57.4317 39.7789 59.043 41.9273 59.043C42.9527 59.043 43.9292 58.6524 44.8081 57.8223L70.0035 32.6758C70.8824 31.8457 71.3706 30.8203 71.3706 29.7461Z",fill:"currentColor"})]})}function r6(){const{layout:e}=Pr(),t=Zg(),n=Nr(),r=h.useMemo(()=>n.lastUpdatedAt?new Date(n.lastUpdatedAt):void 0,[n.lastUpdatedAt]),o=h.useMemo(()=>r==null?void 0:r.toISOString(),[r]);return y.jsxs("footer",{className:e6,children:[e==="docs"&&y.jsxs(y.Fragment,{children:[y.jsxs("div",{className:K7,children:[y.jsx(o6,{}),t&&n.lastUpdatedAt&&y.jsxs("div",{className:G7,children:["Last updated:"," ",y.jsx("time",{dateTime:o,children:new Intl.DateTimeFormat(void 0,{dateStyle:"short",timeStyle:"short"}).format(r)})]})]}),y.jsx(i6,{})]}),y.jsx(V7,{})]})}function o6(){const e=W7();return e.url?y.jsx("div",{children:y.jsxs(rn,{className:Y7,href:e.url,children:[y.jsx(C5,{})," ",e.text]})}):null}function i6(){const e=Zg(),t=Yl(),{pathname:n}=Re(),r=h.useMemo(()=>Xg(t.items||[]).filter(s=>s.link),[t]),o=h.useMemo(()=>r.findIndex(s=>s.link===n),[r,n]),[i,a]=h.useMemo(()=>o<0?[]:o===0?[null,r[o+1]]:o===r.length-1?[r[o-1],null]:[r[o-1],r[o+1]],[o,r]),l=Uf();return h.useEffect(()=>{let s=o,u=!1;const f=d=>{if(d.code==="ShiftLeft"&&(u=!0),u){const p=r[s+1],w=r[s-1];d.code==="ArrowRight"&&(p!=null&&p.link)&&(l(p.link),s++),d.code==="ArrowLeft"&&(w!=null&&w.link)&&(l(w.link),s--)}},c=d=>{d.code==="ShiftLeft"&&(u=!1)};return window.addEventListener("keydown",f),window.addEventListener("keyup",c),()=>{window.removeEventListener("keydown",f),window.removeEventListener("keyup",c)}},[]),e?y.jsxs("div",{className:Q7,children:[i?y.jsxs(rn,{className:I(Ap,J7),href:i.link,variant:"styleless",children:[y.jsxs("div",{className:Lp,children:[y.jsx("div",{className:I(Pp,Z7),style:Yt({[gu]:"0.75em"}),children:y.jsx(ct,{label:"Previous",icon:t6})}),y.jsx("div",{className:Ip,children:i.text})]}),y.jsx(ro,{description:"Previous",keys:["shift","←"]})]}):y.jsx("div",{}),a?y.jsxs(rn,{className:I(Ap,q7),href:a.link,variant:"styleless",children:[y.jsxs("div",{className:Lp,children:[y.jsx("div",{className:Ip,style:{textAlign:"right"},children:a.text}),y.jsx("div",{className:I(Pp,X7),style:Yt({[gu]:"0.75em"}),children:y.jsx(ct,{label:"Next",icon:n6})})]}),y.jsx(ro,{description:"Next",keys:["shift","→"]})]}):y.jsx("div",{})]}):null}function Xg(e){const t=[];for(const n of e){if(n.items){t.push(...Xg(n.items));continue}t.push(n)}return t}const Jg="Collapsible",[a6,qg]=En(Jg),[l6,nd]=a6(Jg),s6=h.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:r,defaultOpen:o,disabled:i,onOpenChange:a,...l}=e,[s=!1,u]=or({prop:r,defaultProp:o,onChange:a});return h.createElement(l6,{scope:n,disabled:i,contentId:on(),open:s,onOpenToggle:h.useCallback(()=>u(f=>!f),[u])},h.createElement(fe.div,Y({"data-state":rd(s),"data-disabled":i?"":void 0},l,{ref:t})))}),c6="CollapsibleTrigger",u6=h.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,o=nd(c6,n);return h.createElement(fe.button,Y({type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":rd(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled},r,{ref:t,onClick:le(e.onClick,o.onOpenToggle)}))}),e1="CollapsibleContent",f6=h.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=nd(e1,e.__scopeCollapsible);return h.createElement(_n,{present:n||o.open},({present:i})=>h.createElement(d6,Y({},r,{ref:t,present:i})))}),d6=h.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:o,...i}=e,a=nd(e1,n),[l,s]=h.useState(r),u=h.useRef(null),f=Ue(t,u),c=h.useRef(0),d=c.current,p=h.useRef(0),w=p.current,m=a.open||l,C=h.useRef(m),v=h.useRef();return h.useEffect(()=>{const g=requestAnimationFrame(()=>C.current=!1);return()=>cancelAnimationFrame(g)},[]),yn(()=>{const g=u.current;if(g){v.current=v.current||{transitionDuration:g.style.transitionDuration,animationName:g.style.animationName},g.style.transitionDuration="0s",g.style.animationName="none";const x=g.getBoundingClientRect();c.current=x.height,p.current=x.width,C.current||(g.style.transitionDuration=v.current.transitionDuration,g.style.animationName=v.current.animationName),s(r)}},[a.open,r]),h.createElement(fe.div,Y({"data-state":rd(a.open),"data-disabled":a.disabled?"":void 0,id:a.contentId,hidden:!m},i,{ref:f,style:{"--radix-collapsible-content-height":d?`${d}px`:void 0,"--radix-collapsible-content-width":w?`${w}px`:void 0,...e.style}}),m&&o)});function rd(e){return e?"open":"closed"}const h6=s6,p6=u6,v6=f6,Lr="Accordion",m6=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[od,g6,y6]=Zl(Lr),[Jl,u$]=En(Lr,[y6,qg]),id=qg(),t1=Z.forwardRef((e,t)=>{const{type:n,...r}=e,o=r,i=r;return Z.createElement(od.Provider,{scope:e.__scopeAccordion},n==="multiple"?Z.createElement(E6,Y({},i,{ref:t})):Z.createElement(C6,Y({},o,{ref:t})))});t1.propTypes={type(e){const t=e.value||e.defaultValue;return e.type&&!["single","multiple"].includes(e.type)?new Error("Invalid prop `type` supplied to `Accordion`. Expected one of `single | multiple`."):e.type==="multiple"&&typeof t=="string"?new Error("Invalid prop `type` supplied to `Accordion`. Expected `single` when `defaultValue` or `value` is type `string`."):e.type==="single"&&Array.isArray(t)?new Error("Invalid prop `type` supplied to `Accordion`. Expected `multiple` when `defaultValue` or `value` is type `string[]`."):null}};const[n1,w6]=Jl(Lr),[r1,x6]=Jl(Lr,{collapsible:!1}),C6=Z.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},collapsible:i=!1,...a}=e,[l,s]=or({prop:n,defaultProp:r,onChange:o});return Z.createElement(n1,{scope:e.__scopeAccordion,value:l?[l]:[],onItemOpen:s,onItemClose:Z.useCallback(()=>i&&s(""),[i,s])},Z.createElement(r1,{scope:e.__scopeAccordion,collapsible:i},Z.createElement(o1,Y({},a,{ref:t}))))}),E6=Z.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...i}=e,[a=[],l]=or({prop:n,defaultProp:r,onChange:o}),s=Z.useCallback(f=>l((c=[])=>[...c,f]),[l]),u=Z.useCallback(f=>l((c=[])=>c.filter(d=>d!==f)),[l]);return Z.createElement(n1,{scope:e.__scopeAccordion,value:a,onItemOpen:s,onItemClose:u},Z.createElement(r1,{scope:e.__scopeAccordion,collapsible:!0},Z.createElement(o1,Y({},i,{ref:t}))))}),[_6,ad]=Jl(Lr),o1=Z.forwardRef((e,t)=>{const{__scopeAccordion:n,disabled:r,dir:o,orientation:i="vertical",...a}=e,l=Z.useRef(null),s=Ue(l,t),u=g6(n),c=Ql(o)==="ltr",d=le(e.onKeyDown,p=>{var w;if(!m6.includes(p.key))return;const m=p.target,C=u().filter(T=>{var P;return!((P=T.ref.current)!==null&&P!==void 0&&P.disabled)}),v=C.findIndex(T=>T.ref.current===m),g=C.length;if(v===-1)return;p.preventDefault();let x=v;const E=0,S=g-1,$=()=>{x=v+1,x>S&&(x=E)},_=()=>{x=v-1,x{const{__scopeAccordion:n,value:r,...o}=e,i=ad(Eu,n),a=w6(Eu,n),l=id(n),s=on(),u=r&&a.value.includes(r)||!1,f=i.disabled||e.disabled;return Z.createElement(S6,{scope:n,open:u,disabled:f,triggerId:s},Z.createElement(h6,Y({"data-orientation":i.orientation,"data-state":R6(u)},l,o,{ref:t,disabled:f,open:u,onOpenChange:c=>{c?a.onItemOpen(r):a.onItemClose(r)}})))}),Op="AccordionTrigger",$6=Z.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=ad(Lr,n),i=i1(Op,n),a=x6(Op,n),l=id(n);return Z.createElement(od.ItemSlot,{scope:n},Z.createElement(p6,Y({"aria-disabled":i.open&&!a.collapsible||void 0,"data-orientation":o.orientation,id:i.triggerId},l,r,{ref:t})))}),T6="AccordionContent",k6=Z.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=ad(Lr,n),i=i1(T6,n),a=id(n);return Z.createElement(v6,Y({role:"region","aria-labelledby":i.triggerId,"data-orientation":o.orientation},a,r,{ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}}))});function R6(e){return e?"open":"closed"}const N6=t1,P6=b6,A6=$6,L6=k6;var I6="vocs_MobileSearch_searchButton";function O6(){const[e,t]=h.useState(!1);return y.jsxs(Cg,{open:e,onOpenChange:t,children:[y.jsx(Eg,{asChild:!0,children:y.jsx("button",{className:I6,type:"button","aria-label":"Search",children:y.jsx(Kf,{height:21,width:21})})}),y.jsx(Ag,{open:e,onClose:()=>t(!1)})]})}var M6="vocs_MobileTopNav_button",D6="var(--vocs_MobileTopNav_chevronDownIcon)",j6="var(--vocs_MobileTopNav_chevronUpIcon)",F6="vocs_MobileTopNav_content",z6="vocs_MobileTopNav_curtain",Mp="vocs_MobileTopNav_curtainGroup",qs="vocs_MobileTopNav_curtainItem",B6="vocs_MobileTopNav_divider",Ra="vocs_MobileTopNav_group",U6="vocs_MobileTopNav_icon",H6="vocs_MobileTopNav_item",V6="vocs_MobileTopNav_logo",W6="vocs_MobileTopNav_menuTitle",a1="vocs_MobileTopNav_menuTrigger",l1="vocs_MobileTopNav_navigation",K6="vocs_MobileTopNav_navigationContent",ei="vocs_MobileTopNav_navigationItem",Y6="vocs_MobileTopNav_trigger",G6="vocs_MobileTopNav_navigation_compact",Q6="vocs_MobileTopNav_outlinePopover",Dp="vocs_MobileTopNav_outlineTrigger",Z6="vocs_MobileTopNav",jp="vocs_MobileTopNav_section",X6="vocs_MobileTopNav_separator",J6="vocs_MobileTopNav_sidebarPopover",q6="vocs_MobileTopNav_topNavPopover";function eC(e,t){let n=!1;return()=>{n=!0,setTimeout(()=>{n&&e(),n=!1},t)}}var tC="vocs_Outline_heading",nC="vocs_Outline_item",rC="vocs_Outline_items",oC="vocs_Outline_link",iC="vocs_Outline_nav",aC="vocs_Outline";function s1({minLevel:e=2,maxLevel:t=3,highlightActive:n=!0,onClickItem:r,showTitle:o=!0}={}){const{outlineFooter:i}=Ke(),{showOutline:a}=Pr(),l=typeof a=="number"?e+a-1:t,s=h.useRef(!0),{pathname:u,hash:f}=Re(),[c,d]=h.useState([]);h.useEffect(()=>{if(typeof window>"u")return;const v=Array.from(document.querySelectorAll(`.${Y0}`));d(v)},[u]);const p=h.useMemo(()=>c?c.map(v=>{const g=v.querySelector(`.${G0}`);if(!g)return null;const x=g.getBoundingClientRect(),E=g.id,S=Number(v.tagName[1]),$=v.textContent,_=window.scrollY+x.top;return Sl?null:{id:E,level:S,slugTargetElement:g,text:$,topOffset:_}}).filter(Boolean):[],[c,l,e]),[w,m]=h.useState(f.replace("#",""));if(h.useEffect(()=>{if(typeof window>"u")return;const v=new IntersectionObserver(([g])=>{var E;if(!s.current)return;const x=g.target.id;if(g.isIntersecting)m(x);else{if(!(g.target.getBoundingClientRect().top>0))return;const _=p.findIndex(T=>T.id===w),b=(E=p[_-1])==null?void 0:E.id;m(b)}},{rootMargin:"0px 0px -95% 0px"});for(const g of p)v.observe(g.slugTargetElement);return()=>v.disconnect()},[w,p]),h.useEffect(()=>{if(typeof window>"u")return;const v=new IntersectionObserver(([g])=>{var E;if(!s.current)return;const x=(E=p[p.length-1])==null?void 0:E.id;g.isIntersecting?m(x):w===x&&m(p[p.length-2].id)});return v.observe(document.querySelector("[data-bottom-observer]")),()=>v.disconnect()},[w,p]),h.useEffect(()=>{if(typeof window>"u")return;const v=eC(()=>{var g,x,E;if(s.current){if(window.scrollY===0){m((g=p[0])==null?void 0:g.id);return}if(window.scrollY+document.documentElement.clientHeight>=document.documentElement.scrollHeight){m((x=p[p.length-1])==null?void 0:x.id);return}for(let S=0;Swindow.removeEventListener("scroll",v)},[p]),p.length===0)return null;const C=p.filter(v=>v.level===e);return y.jsxs("aside",{className:aC,children:[y.jsxs("nav",{className:iC,children:[o&&y.jsx("h2",{className:tC,children:"On this page"}),y.jsx(c1,{activeId:n?w:null,items:p,onClickItem:()=>{r==null||r(),s.current=!1,setTimeout(()=>{s.current=!0},500)},levelItems:C,setActiveId:m})]}),Cl(i)]})}function c1({activeId:e,items:t,levelItems:n,onClickItem:r,setActiveId:o}){const{pathname:i}=Re();return y.jsx("ul",{className:rC,children:n.map(({id:a,level:l,text:s})=>{const u=`#${a}`,f=e===a,c=(()=>{var C;const p=t.findIndex(v=>v.id===a)+1,w=(C=t[p])==null?void 0:C.level;if(w<=l)return null;const m=[];for(let v=p;v{r==null||r(),o(a)},className:oC,children:s})}),c&&y.jsx(c1,{activeId:e,levelItems:c,items:t,onClickItem:r,setActiveId:o})]},a)})})}const lC=["top","right","bottom","left"],Qn=Math.min,wt=Math.max,bl=Math.round,Na=Math.floor,Zn=e=>({x:e,y:e}),sC={left:"right",right:"left",bottom:"top",top:"bottom"},cC={start:"end",end:"start"};function _u(e,t,n){return wt(e,Qn(t,n))}function wn(e,t){return typeof e=="function"?e(t):e}function xn(e){return e.split("-")[0]}function Lo(e){return e.split("-")[1]}function ld(e){return e==="x"?"y":"x"}function sd(e){return e==="y"?"height":"width"}function Io(e){return["top","bottom"].includes(xn(e))?"y":"x"}function cd(e){return ld(Io(e))}function uC(e,t,n){n===void 0&&(n=!1);const r=Lo(e),o=cd(e),i=sd(o);let a=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=$l(a)),[a,$l(a)]}function fC(e){const t=$l(e);return[Su(e),t,Su(t)]}function Su(e){return e.replace(/start|end/g,t=>cC[t])}function dC(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:a;default:return[]}}function hC(e,t,n,r){const o=Lo(e);let i=dC(xn(e),n==="start",r);return o&&(i=i.map(a=>a+"-"+o),t&&(i=i.concat(i.map(Su)))),i}function $l(e){return e.replace(/left|right|bottom|top/g,t=>sC[t])}function pC(e){return{top:0,right:0,bottom:0,left:0,...e}}function u1(e){return typeof e!="number"?pC(e):{top:e,right:e,bottom:e,left:e}}function Tl(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Fp(e,t,n){let{reference:r,floating:o}=e;const i=Io(t),a=cd(t),l=sd(a),s=xn(t),u=i==="y",f=r.x+r.width/2-o.width/2,c=r.y+r.height/2-o.height/2,d=r[l]/2-o[l]/2;let p;switch(s){case"top":p={x:f,y:r.y-o.height};break;case"bottom":p={x:f,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:c};break;case"left":p={x:r.x-o.width,y:c};break;default:p={x:r.x,y:r.y}}switch(Lo(t)){case"start":p[a]-=d*(n&&u?-1:1);break;case"end":p[a]+=d*(n&&u?-1:1);break}return p}const vC=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,l=i.filter(Boolean),s=await(a.isRTL==null?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:c}=Fp(u,r,s),d=r,p={},w=0;for(let m=0;m({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:a,elements:l,middlewareData:s}=t,{element:u,padding:f=0}=wn(e,t)||{};if(u==null)return{};const c=u1(f),d={x:n,y:r},p=cd(o),w=sd(p),m=await a.getDimensions(u),C=p==="y",v=C?"top":"left",g=C?"bottom":"right",x=C?"clientHeight":"clientWidth",E=i.reference[w]+i.reference[p]-d[p]-i.floating[w],S=d[p]-i.reference[p],$=await(a.getOffsetParent==null?void 0:a.getOffsetParent(u));let _=$?$[x]:0;(!_||!await(a.isElement==null?void 0:a.isElement($)))&&(_=l.floating[x]||i.floating[w]);const b=E/2-S/2,T=_/2-m[w]/2-1,P=Qn(c[v],T),M=Qn(c[g],T),O=P,j=_-m[w]-M,R=_/2-m[w]/2+b,F=_u(O,R,j),W=!s.arrow&&Lo(o)!=null&&R!==F&&i.reference[w]/2-(RO<=0)){var T,P;const O=(((T=i.flip)==null?void 0:T.index)||0)+1,j=S[O];if(j)return{data:{index:O,overflows:b},reset:{placement:j}};let R=(P=b.filter(F=>F.overflows[0]<=0).sort((F,W)=>F.overflows[1]-W.overflows[1])[0])==null?void 0:P.placement;if(!R)switch(p){case"bestFit":{var M;const F=(M=b.map(W=>[W.placement,W.overflows.filter(H=>H>0).reduce((H,A)=>H+A,0)]).sort((W,H)=>W[1]-H[1])[0])==null?void 0:M[0];F&&(R=F);break}case"initialPlacement":R=l;break}if(o!==R)return{reset:{placement:R}}}return{}}}};function zp(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Bp(e){return lC.some(t=>e[t]>=0)}const yC=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=wn(e,t);switch(r){case"referenceHidden":{const i=await Di(t,{...o,elementContext:"reference"}),a=zp(i,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:Bp(a)}}}case"escaped":{const i=await Di(t,{...o,altBoundary:!0}),a=zp(i,n.floating);return{data:{escapedOffsets:a,escaped:Bp(a)}}}default:return{}}}}};async function wC(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),a=xn(n),l=Lo(n),s=Io(n)==="y",u=["left","top"].includes(a)?-1:1,f=i&&s?-1:1,c=wn(t,e);let{mainAxis:d,crossAxis:p,alignmentAxis:w}=typeof c=="number"?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...c};return l&&typeof w=="number"&&(p=l==="end"?w*-1:w),s?{x:p*f,y:d*u}:{x:d*u,y:p*f}}const xC=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:a,middlewareData:l}=t,s=await wC(t,e);return a===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:o+s.x,y:i+s.y,data:{...s,placement:a}}}}},CC=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:l={fn:C=>{let{x:v,y:g}=C;return{x:v,y:g}}},...s}=wn(e,t),u={x:n,y:r},f=await Di(t,s),c=Io(xn(o)),d=ld(c);let p=u[d],w=u[c];if(i){const C=d==="y"?"top":"left",v=d==="y"?"bottom":"right",g=p+f[C],x=p-f[v];p=_u(g,p,x)}if(a){const C=c==="y"?"top":"left",v=c==="y"?"bottom":"right",g=w+f[C],x=w-f[v];w=_u(g,w,x)}const m=l.fn({...t,[d]:p,[c]:w});return{...m,data:{x:m.x-n,y:m.y-r}}}}},EC=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:a}=t,{offset:l=0,mainAxis:s=!0,crossAxis:u=!0}=wn(e,t),f={x:n,y:r},c=Io(o),d=ld(c);let p=f[d],w=f[c];const m=wn(l,t),C=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(s){const x=d==="y"?"height":"width",E=i.reference[d]-i.floating[x]+C.mainAxis,S=i.reference[d]+i.reference[x]-C.mainAxis;pS&&(p=S)}if(u){var v,g;const x=d==="y"?"width":"height",E=["top","left"].includes(xn(o)),S=i.reference[c]-i.floating[x]+(E&&((v=a.offset)==null?void 0:v[c])||0)+(E?0:C.crossAxis),$=i.reference[c]+i.reference[x]+(E?0:((g=a.offset)==null?void 0:g[c])||0)-(E?C.crossAxis:0);w$&&(w=$)}return{[d]:p,[c]:w}}}},_C=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:i}=t,{apply:a=()=>{},...l}=wn(e,t),s=await Di(t,l),u=xn(n),f=Lo(n),c=Io(n)==="y",{width:d,height:p}=r.floating;let w,m;u==="top"||u==="bottom"?(w=u,m=f===(await(o.isRTL==null?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(m=u,w=f==="end"?"top":"bottom");const C=p-s[w],v=d-s[m],g=!t.middlewareData.shift;let x=C,E=v;if(c){const $=d-s.left-s.right;E=f||g?Qn(v,$):$}else{const $=p-s.top-s.bottom;x=f||g?Qn(C,$):$}if(g&&!f){const $=wt(s.left,0),_=wt(s.right,0),b=wt(s.top,0),T=wt(s.bottom,0);c?E=d-2*($!==0||_!==0?$+_:wt(s.left,s.right)):x=p-2*(b!==0||T!==0?b+T:wt(s.top,s.bottom))}await a({...t,availableWidth:E,availableHeight:x});const S=await o.getDimensions(i.floating);return d!==S.width||p!==S.height?{reset:{rects:!0}}:{}}}};function Oo(e){return f1(e)?(e.nodeName||"").toLowerCase():"#document"}function Et(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function bn(e){var t;return(t=(f1(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function f1(e){return e instanceof Node||e instanceof Et(e).Node}function Je(e){return e instanceof Element||e instanceof Et(e).Element}function an(e){return e instanceof HTMLElement||e instanceof Et(e).HTMLElement}function bu(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Et(e).ShadowRoot}function Qi(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Gt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function SC(e){return["table","td","th"].includes(Oo(e))}function ud(e){const t=fd(),n=Gt(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function bC(e){let t=Xn(e);for(;an(t)&&!bo(t);){if(ud(t))return t;t=Xn(t)}return null}function fd(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function bo(e){return["html","body","#document"].includes(Oo(e))}function Gt(e){return Et(e).getComputedStyle(e)}function ql(e){return Je(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Xn(e){if(Oo(e)==="html")return e;const t=e.assignedSlot||e.parentNode||bu(e)&&e.host||bn(e);return bu(t)?t.host:t}function d1(e){const t=Xn(e);return bo(t)?e.ownerDocument?e.ownerDocument.body:e.body:an(t)&&Qi(t)?t:d1(t)}function ji(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=d1(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),a=Et(o);return i?t.concat(a,a.visualViewport||[],Qi(o)?o:[],a.frameElement&&n?ji(a.frameElement):[]):t.concat(o,ji(o,[],n))}function h1(e){const t=Gt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=an(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,l=bl(n)!==i||bl(r)!==a;return l&&(n=i,r=a),{width:n,height:r,$:l}}function dd(e){return Je(e)?e:e.contextElement}function fo(e){const t=dd(e);if(!an(t))return Zn(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=h1(t);let a=(i?bl(n.width):n.width)/r,l=(i?bl(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!l||!Number.isFinite(l))&&(l=1),{x:a,y:l}}const $C=Zn(0);function p1(e){const t=Et(e);return!fd()||!t.visualViewport?$C:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function TC(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Et(e)?!1:t}function Sr(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=dd(e);let a=Zn(1);t&&(r?Je(r)&&(a=fo(r)):a=fo(e));const l=TC(i,n,r)?p1(i):Zn(0);let s=(o.left+l.x)/a.x,u=(o.top+l.y)/a.y,f=o.width/a.x,c=o.height/a.y;if(i){const d=Et(i),p=r&&Je(r)?Et(r):r;let w=d,m=w.frameElement;for(;m&&r&&p!==w;){const C=fo(m),v=m.getBoundingClientRect(),g=Gt(m),x=v.left+(m.clientLeft+parseFloat(g.paddingLeft))*C.x,E=v.top+(m.clientTop+parseFloat(g.paddingTop))*C.y;s*=C.x,u*=C.y,f*=C.x,c*=C.y,s+=x,u+=E,w=Et(m),m=w.frameElement}}return Tl({width:f,height:c,x:s,y:u})}const kC=[":popover-open",":modal"];function hd(e){return kC.some(t=>{try{return e.matches(t)}catch{return!1}})}function RC(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",a=bn(r),l=t?hd(t.floating):!1;if(r===a||l&&i)return n;let s={scrollLeft:0,scrollTop:0},u=Zn(1);const f=Zn(0),c=an(r);if((c||!c&&!i)&&((Oo(r)!=="body"||Qi(a))&&(s=ql(r)),an(r))){const d=Sr(r);u=fo(r),f.x=d.x+r.clientLeft,f.y=d.y+r.clientTop}return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-s.scrollLeft*u.x+f.x,y:n.y*u.y-s.scrollTop*u.y+f.y}}function NC(e){return Array.from(e.getClientRects())}function v1(e){return Sr(bn(e)).left+ql(e).scrollLeft}function PC(e){const t=bn(e),n=ql(e),r=e.ownerDocument.body,o=wt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=wt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+v1(e);const l=-n.scrollTop;return Gt(r).direction==="rtl"&&(a+=wt(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:l}}function AC(e,t){const n=Et(e),r=bn(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,l=0,s=0;if(o){i=o.width,a=o.height;const u=fd();(!u||u&&t==="fixed")&&(l=o.offsetLeft,s=o.offsetTop)}return{width:i,height:a,x:l,y:s}}function LC(e,t){const n=Sr(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=an(e)?fo(e):Zn(1),a=e.clientWidth*i.x,l=e.clientHeight*i.y,s=o*i.x,u=r*i.y;return{width:a,height:l,x:s,y:u}}function Up(e,t,n){let r;if(t==="viewport")r=AC(e,n);else if(t==="document")r=PC(bn(e));else if(Je(t))r=LC(t,n);else{const o=p1(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return Tl(r)}function m1(e,t){const n=Xn(e);return n===t||!Je(n)||bo(n)?!1:Gt(n).position==="fixed"||m1(n,t)}function IC(e,t){const n=t.get(e);if(n)return n;let r=ji(e,[],!1).filter(l=>Je(l)&&Oo(l)!=="body"),o=null;const i=Gt(e).position==="fixed";let a=i?Xn(e):e;for(;Je(a)&&!bo(a);){const l=Gt(a),s=ud(a);!s&&l.position==="fixed"&&(o=null),(i?!s&&!o:!s&&l.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Qi(a)&&!s&&m1(e,a))?r=r.filter(f=>f!==a):o=l,a=Xn(a)}return t.set(e,r),r}function OC(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[...n==="clippingAncestors"?hd(t)?[]:IC(t,this._c):[].concat(n),r],l=a[0],s=a.reduce((u,f)=>{const c=Up(t,f,o);return u.top=wt(c.top,u.top),u.right=Qn(c.right,u.right),u.bottom=Qn(c.bottom,u.bottom),u.left=wt(c.left,u.left),u},Up(t,l,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}function MC(e){const{width:t,height:n}=h1(e);return{width:t,height:n}}function DC(e,t,n){const r=an(t),o=bn(t),i=n==="fixed",a=Sr(e,!0,i,t);let l={scrollLeft:0,scrollTop:0};const s=Zn(0);if(r||!r&&!i)if((Oo(t)!=="body"||Qi(o))&&(l=ql(t)),r){const c=Sr(t,!0,i,t);s.x=c.x+t.clientLeft,s.y=c.y+t.clientTop}else o&&(s.x=v1(o));const u=a.left+l.scrollLeft-s.x,f=a.top+l.scrollTop-s.y;return{x:u,y:f,width:a.width,height:a.height}}function ec(e){return Gt(e).position==="static"}function Hp(e,t){return!an(e)||Gt(e).position==="fixed"?null:t?t(e):e.offsetParent}function g1(e,t){const n=Et(e);if(hd(e))return n;if(!an(e)){let o=Xn(e);for(;o&&!bo(o);){if(Je(o)&&!ec(o))return o;o=Xn(o)}return n}let r=Hp(e,t);for(;r&&SC(r)&&ec(r);)r=Hp(r,t);return r&&bo(r)&&ec(r)&&!ud(r)?n:r||bC(e)||n}const jC=async function(e){const t=this.getOffsetParent||g1,n=this.getDimensions,r=await n(e.floating);return{reference:DC(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function FC(e){return Gt(e).direction==="rtl"}const y1={convertOffsetParentRelativeRectToViewportRelativeRect:RC,getDocumentElement:bn,getClippingRect:OC,getOffsetParent:g1,getElementRects:jC,getClientRects:NC,getDimensions:MC,getScale:fo,isElement:Je,isRTL:FC};function zC(e,t){let n=null,r;const o=bn(e);function i(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function a(l,s){l===void 0&&(l=!1),s===void 0&&(s=1),i();const{left:u,top:f,width:c,height:d}=e.getBoundingClientRect();if(l||t(),!c||!d)return;const p=Na(f),w=Na(o.clientWidth-(u+c)),m=Na(o.clientHeight-(f+d)),C=Na(u),g={rootMargin:-p+"px "+-w+"px "+-m+"px "+-C+"px",threshold:wt(0,Qn(1,s))||1};let x=!0;function E(S){const $=S[0].intersectionRatio;if($!==s){if(!x)return a();$?a(!1,$):r=setTimeout(()=>{a(!1,1e-7)},1e3)}x=!1}try{n=new IntersectionObserver(E,{...g,root:o.ownerDocument})}catch{n=new IntersectionObserver(E,g)}n.observe(e)}return a(!0),i}function BC(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:s=!1}=r,u=dd(e),f=o||i?[...u?ji(u):[],...ji(t)]:[];f.forEach(v=>{o&&v.addEventListener("scroll",n,{passive:!0}),i&&v.addEventListener("resize",n)});const c=u&&l?zC(u,n):null;let d=-1,p=null;a&&(p=new ResizeObserver(v=>{let[g]=v;g&&g.target===u&&p&&(p.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var x;(x=p)==null||x.observe(t)})),n()}),u&&!s&&p.observe(u),p.observe(t));let w,m=s?Sr(e):null;s&&C();function C(){const v=Sr(e);m&&(v.x!==m.x||v.y!==m.y||v.width!==m.width||v.height!==m.height)&&n(),m=v,w=requestAnimationFrame(C)}return n(),()=>{var v;f.forEach(g=>{o&&g.removeEventListener("scroll",n),i&&g.removeEventListener("resize",n)}),c==null||c(),(v=p)==null||v.disconnect(),p=null,s&&cancelAnimationFrame(w)}}const w1=xC,x1=CC,UC=gC,HC=_C,VC=yC,Vp=mC,WC=EC,KC=(e,t,n)=>{const r=new Map,o={platform:y1,...n},i={...o.platform,_c:r};return vC(e,t,{...o,platform:i})},C1=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Vp({element:r.current,padding:o}).fn(n):{}:r?Vp({element:r,padding:o}).fn(n):{}}}};var Ya=typeof document<"u"?h.useLayoutEffect:h.useEffect;function kl(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!kl(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!kl(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function E1(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Wp(e,t){const n=E1(e);return Math.round(t*n)/n}function Kp(e){const t=h.useRef(e);return Ya(()=>{t.current=e}),t}function _1(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:a}={},transform:l=!0,whileElementsMounted:s,open:u}=e,[f,c]=h.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[d,p]=h.useState(r);kl(d,r)||p(r);const[w,m]=h.useState(null),[C,v]=h.useState(null),g=h.useCallback(H=>{H!==$.current&&($.current=H,m(H))},[]),x=h.useCallback(H=>{H!==_.current&&(_.current=H,v(H))},[]),E=i||w,S=a||C,$=h.useRef(null),_=h.useRef(null),b=h.useRef(f),T=s!=null,P=Kp(s),M=Kp(o),O=h.useCallback(()=>{if(!$.current||!_.current)return;const H={placement:t,strategy:n,middleware:d};M.current&&(H.platform=M.current),KC($.current,_.current,H).then(A=>{const B={...A,isPositioned:!0};j.current&&!kl(b.current,B)&&(b.current=B,No.flushSync(()=>{c(B)}))})},[d,t,n,M]);Ya(()=>{u===!1&&b.current.isPositioned&&(b.current.isPositioned=!1,c(H=>({...H,isPositioned:!1})))},[u]);const j=h.useRef(!1);Ya(()=>(j.current=!0,()=>{j.current=!1}),[]),Ya(()=>{if(E&&($.current=E),S&&(_.current=S),E&&S){if(P.current)return P.current(E,S,O);O()}},[E,S,O,P,T]);const R=h.useMemo(()=>({reference:$,floating:_,setReference:g,setFloating:x}),[g,x]),F=h.useMemo(()=>({reference:E,floating:S}),[E,S]),W=h.useMemo(()=>{const H={position:n,left:0,top:0};if(!F.floating)return H;const A=Wp(F.floating,f.x),B=Wp(F.floating,f.y);return l?{...H,transform:"translate("+A+"px, "+B+"px)",...E1(F.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:A,top:B}},[n,l,F.floating,f.x,f.y]);return h.useMemo(()=>({...f,update:O,refs:R,elements:F,floatingStyles:W}),[f,O,R,F,W])}function YC(e){const[t,n]=h.useState(void 0);return yn(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let a,l;if("borderBoxSize"in i){const s=i.borderBoxSize,u=Array.isArray(s)?s[0]:s;a=u.inlineSize,l=u.blockSize}else a=e.offsetWidth,l=e.offsetHeight;n({width:a,height:l})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}const S1="Popper",[b1,$1]=En(S1),[GC,T1]=b1(S1),QC=e=>{const{__scopePopper:t,children:n}=e,[r,o]=h.useState(null);return h.createElement(GC,{scope:t,anchor:r,onAnchorChange:o},n)},ZC="PopperAnchor",XC=h.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=T1(ZC,n),a=h.useRef(null),l=Ue(t,a);return h.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||a.current)}),r?null:h.createElement(fe.div,Y({},o,{ref:l}))}),k1="PopperContent",[JC,f$]=b1(k1),qC=h.forwardRef((e,t)=>{var n,r,o,i,a,l,s,u;const{__scopePopper:f,side:c="bottom",sideOffset:d=0,align:p="center",alignOffset:w=0,arrowPadding:m=0,avoidCollisions:C=!0,collisionBoundary:v=[],collisionPadding:g=0,sticky:x="partial",hideWhenDetached:E=!1,updatePositionStrategy:S="optimized",onPlaced:$,..._}=e,b=T1(k1,f),[T,P]=h.useState(null),M=Ue(t,ar=>P(ar)),[O,j]=h.useState(null),R=YC(O),F=(n=R==null?void 0:R.width)!==null&&n!==void 0?n:0,W=(r=R==null?void 0:R.height)!==null&&r!==void 0?r:0,H=c+(p!=="center"?"-"+p:""),A=typeof g=="number"?g:{top:0,right:0,bottom:0,left:0,...g},B=Array.isArray(v)?v:[v],G=B.length>0,te={padding:A,boundary:B.filter(eE),altBoundary:G},{refs:ae,floatingStyles:je,placement:Oe,isPositioned:ge,middlewareData:ye}=_1({strategy:"fixed",placement:H,whileElementsMounted:(...ar)=>BC(...ar,{animationFrame:S==="always"}),elements:{reference:b.anchor},middleware:[w1({mainAxis:d+W,alignmentAxis:w}),C&&x1({mainAxis:!0,crossAxis:!1,limiter:x==="partial"?WC():void 0,...te}),C&&UC({...te}),HC({...te,apply:({elements:ar,rects:Qt,availableWidth:es,availableHeight:ts})=>{const{width:ns,height:rs}=Qt.reference,Ir=ar.floating.style;Ir.setProperty("--radix-popper-available-width",`${es}px`),Ir.setProperty("--radix-popper-available-height",`${ts}px`),Ir.setProperty("--radix-popper-anchor-width",`${ns}px`),Ir.setProperty("--radix-popper-anchor-height",`${rs}px`)}}),O&&C1({element:O,padding:m}),tE({arrowWidth:F,arrowHeight:W}),E&&VC({strategy:"referenceHidden",...te})]}),[Ne,de]=R1(Oe),Se=lt($);yn(()=>{ge&&(Se==null||Se())},[ge,Se]);const Ot=(o=ye.arrow)===null||o===void 0?void 0:o.x,Mt=(i=ye.arrow)===null||i===void 0?void 0:i.y,Pe=((a=ye.arrow)===null||a===void 0?void 0:a.centerOffset)!==0,[ir,Zi]=h.useState();return yn(()=>{T&&Zi(window.getComputedStyle(T).zIndex)},[T]),h.createElement("div",{ref:ae.setFloating,"data-radix-popper-content-wrapper":"",style:{...je,transform:ge?je.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ir,"--radix-popper-transform-origin":[(l=ye.transformOrigin)===null||l===void 0?void 0:l.x,(s=ye.transformOrigin)===null||s===void 0?void 0:s.y].join(" ")},dir:e.dir},h.createElement(JC,{scope:f,placedSide:Ne,onArrowChange:j,arrowX:Ot,arrowY:Mt,shouldHideArrow:Pe},h.createElement(fe.div,Y({"data-side":Ne,"data-align":de},_,{ref:M,style:{..._.style,animation:ge?void 0:"none",opacity:(u=ye.hide)!==null&&u!==void 0&&u.referenceHidden?0:void 0}}))))});function eE(e){return e!==null}const tE=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,a;const{placement:l,rects:s,middlewareData:u}=t,c=((n=u.arrow)===null||n===void 0?void 0:n.centerOffset)!==0,d=c?0:e.arrowWidth,p=c?0:e.arrowHeight,[w,m]=R1(l),C={start:"0%",center:"50%",end:"100%"}[m],v=((r=(o=u.arrow)===null||o===void 0?void 0:o.x)!==null&&r!==void 0?r:0)+d/2,g=((i=(a=u.arrow)===null||a===void 0?void 0:a.y)!==null&&i!==void 0?i:0)+p/2;let x="",E="";return w==="bottom"?(x=c?C:`${v}px`,E=`${-p}px`):w==="top"?(x=c?C:`${v}px`,E=`${s.floating.height+p}px`):w==="right"?(x=`${-p}px`,E=c?C:`${g}px`):w==="left"&&(x=`${s.floating.width+p}px`,E=c?C:`${g}px`),{data:{x,y:E}}}});function R1(e){const[t,n="center"]=e.split("-");return[t,n]}const nE=QC,rE=XC,oE=qC,N1="Popover",[P1,d$]=En(N1,[$1]),pd=$1(),[iE,Mo]=P1(N1),aE=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:a=!1}=e,l=pd(t),s=h.useRef(null),[u,f]=h.useState(!1),[c=!1,d]=or({prop:r,defaultProp:o,onChange:i});return h.createElement(nE,l,h.createElement(iE,{scope:t,contentId:on(),triggerRef:s,open:c,onOpenChange:d,onOpenToggle:h.useCallback(()=>d(p=>!p),[d]),hasCustomAnchor:u,onCustomAnchorAdd:h.useCallback(()=>f(!0),[]),onCustomAnchorRemove:h.useCallback(()=>f(!1),[]),modal:a},n))},lE="PopoverTrigger",sE=h.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Mo(lE,n),i=pd(n),a=Ue(t,o.triggerRef),l=h.createElement(fe.button,Y({type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":I1(o.open)},r,{ref:a,onClick:le(e.onClick,o.onOpenToggle)}));return o.hasCustomAnchor?l:h.createElement(rE,Y({asChild:!0},i),l)}),A1="PopoverPortal",[cE,uE]=P1(A1,{forceMount:void 0}),fE=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,i=Mo(A1,t);return h.createElement(cE,{scope:t,forceMount:n},h.createElement(_n,{present:n||i.open},h.createElement(ig,{asChild:!0,container:o},r)))},Fi="PopoverContent",dE=h.forwardRef((e,t)=>{const n=uE(Fi,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,i=Mo(Fi,e.__scopePopover);return h.createElement(_n,{present:r||i.open},i.modal?h.createElement(hE,Y({},o,{ref:t})):h.createElement(pE,Y({},o,{ref:t})))}),hE=h.forwardRef((e,t)=>{const n=Mo(Fi,e.__scopePopover),r=h.useRef(null),o=Ue(t,r),i=h.useRef(!1);return h.useEffect(()=>{const a=r.current;if(a)return vg(a)},[]),h.createElement(Gf,{as:So,allowPinchZoom:!0},h.createElement(L1,Y({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:le(e.onCloseAutoFocus,a=>{var l;a.preventDefault(),i.current||(l=n.triggerRef.current)===null||l===void 0||l.focus()}),onPointerDownOutside:le(e.onPointerDownOutside,a=>{const l=a.detail.originalEvent,s=l.button===0&&l.ctrlKey===!0,u=l.button===2||s;i.current=u},{checkForDefaultPrevented:!1}),onFocusOutside:le(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1})})))}),pE=h.forwardRef((e,t)=>{const n=Mo(Fi,e.__scopePopover),r=h.useRef(!1),o=h.useRef(!1);return h.createElement(L1,Y({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var a;if((a=e.onCloseAutoFocus)===null||a===void 0||a.call(e,i),!i.defaultPrevented){var l;r.current||(l=n.triggerRef.current)===null||l===void 0||l.focus(),i.preventDefault()}r.current=!1,o.current=!1},onInteractOutside:i=>{var a,l;(a=e.onInteractOutside)===null||a===void 0||a.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=i.target;((l=n.triggerRef.current)===null||l===void 0?void 0:l.contains(s))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}}))}),L1=h.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,disableOutsidePointerEvents:a,onEscapeKeyDown:l,onPointerDownOutside:s,onFocusOutside:u,onInteractOutside:f,...c}=e,d=Mo(Fi,n),p=pd(n);return ag(),h.createElement(rg,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i},h.createElement(Yf,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:f,onEscapeKeyDown:l,onPointerDownOutside:s,onFocusOutside:u,onDismiss:()=>d.onOpenChange(!1)},h.createElement(oE,Y({"data-state":I1(d.open),role:"dialog",id:d.contentId},p,c,{ref:t,style:{...c.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}}))))});function I1(e){return e?"open":"closed"}const vE=aE,mE=sE,gE=fE,yE=dE;var wE="vocs_Popover";Ut.Root=vE;Ut.Trigger=mE;function Ut({children:e,className:t}){return y.jsx(gE,{children:y.jsx(yE,{className:I(wE,t),sideOffset:12,children:e})})}var xE="vocs_Sidebar_backLink",CE="vocs_Sidebar_divider",EE="vocs_Sidebar_group",li="vocs_Sidebar_item",O1="vocs_Sidebar_items",_E="vocs_Sidebar_level",SE="vocs_Sidebar_levelCollapsed",bE="vocs_Sidebar_levelInset",$E="vocs_Sidebar_logo",TE="vocs_Sidebar_logoWrapper",kE="vocs_Sidebar_navigation",RE="vocs_Sidebar",M1="vocs_Sidebar_section",NE="vocs_Sidebar_sectionCollapse",PE="vocs_Sidebar_sectionCollapseActive",AE="vocs_Sidebar_sectionHeader",LE="vocs_Sidebar_sectionHeaderActive",Yp="vocs_Sidebar_sectionTitle";function D1(){return y.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 39 69",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[y.jsx("title",{children:"Chevron Right"}),y.jsx("path",{d:"M38.8697 34.7461C38.8697 33.6719 38.4791 32.6953 37.649 31.8652L7.47318 1.8848C6.74078 1.1035 5.76418 0.712891 4.64118 0.712891C2.34618 0.712891 0.588379 2.42189 0.588379 4.71679C0.588379 5.79099 1.07668 6.81639 1.76028 7.59769L29.0552 34.7461L1.76028 61.8945C1.07668 62.6758 0.588379 63.6523 0.588379 64.7754C0.588379 67.0703 2.34618 68.7793 4.64118 68.7793C5.76418 68.7793 6.74078 68.3887 7.47318 67.6074L37.649 37.627C38.4791 36.7969 38.8697 35.8203 38.8697 34.7461Z",fill:"currentColor"})]})}function j1(e){var u;const{className:t,onClickItem:n}=e,{previousPath:r}=Nr(),o=h.useRef(null),i=Yl(),[a,l]=h.useState("/");if(h.useEffect(()=>{typeof window>"u"||r&&l(r)},[i.key,i.backLink]),!i)return null;const s=IE(i.items);return y.jsxs("aside",{ref:o,className:I(RE,t),children:[y.jsxs("div",{className:TE,children:[y.jsx("div",{className:$E,children:y.jsx(Gn,{to:"/",style:{alignItems:"center",display:"flex",height:"100%"},children:y.jsx(Jf,{})})}),y.jsx("div",{className:CE})]}),y.jsx("nav",{className:kE,children:y.jsxs("div",{className:EE,children:[i.backLink&&y.jsx("section",{className:M1,children:y.jsx("div",{className:O1,children:y.jsxs(Gn,{className:I(li,xE),to:a,children:["←"," ",typeof history<"u"&&((u=history.state)!=null&&u.key)&&a!=="/"?"Back":"Home"]})})}),s.map((f,c)=>y.jsx(z1,{depth:0,item:f,onClick:n,sidebarRef:o},`${f.text}${c}`))]})})]},i.key)}function IE(e){const t=[];let n=0;for(const r of e){if(r.items){n=t.push(r);continue}t[n]?t[n].items.push(r):t.push({text:"",items:[r]})}return t}function F1(e,t){return e.find(n=>Kl(t,n.link??"")||n.link===t?!0:n.items?F1(n.items,t):!1)}function z1(e){const{depth:t,item:n,onClick:r,sidebarRef:o}=e,i=h.useRef(null),{pathname:a}=Re(),l=K3(n.link??""),s=h.useMemo(()=>n.items?!!F1(n.items,a):!1,[n.items,a]),[u,f]=h.useState(()=>l||!n.items||s?!1:!!n.collapsed),c=n.collapsed!==void 0&&n.items!==void 0,d=h.useCallback(m=>{"key"in m&&m.key!=="Enter"||n.link||f(C=>!C)},[n.link]),p=h.useCallback(m=>{"key"in m&&m.key!=="Enter"||n.link&&f(C=>!C)},[n.link]),w=h.useRef(!0);return h.useEffect(()=>{!w.current||(w.current=!1,!Kl(a,n.link??""))||requestAnimationFrame(()=>{var g,x,E;const C=((g=i.current)==null?void 0:g.offsetTop)??0,v=((x=o==null?void 0:o.current)==null?void 0:x.clientHeight)??0;C0&&t<5&&n.items.map((m,C)=>y.jsx(z1,{depth:t+1,item:m,onClick:r,sidebarRef:o},`${m.text}${C}`))})]}):y.jsx(y.Fragment,{children:n.link?y.jsx(Gn,{ref:i,"data-active":!!l,onClick:r,className:li,to:n.link,children:n.text}):y.jsx("div",{className:li,children:n.text})})}function OE(){return y.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 69 39",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[y.jsx("title",{children:"Chevron Down"}),y.jsx("path",{d:"M34.8677 38.8398C35.9419 38.8398 37.0161 38.4492 37.7485 37.6191L67.729 7.44339C68.4614 6.71089 68.9009 5.73439 68.9009 4.61129C68.9009 2.31639 67.1919 0.558594 64.897 0.558594C63.8227 0.558594 62.7485 1.04689 62.0161 1.73049L32.5727 31.2715H37.1138L7.67042 1.73049C6.93802 1.04689 5.96142 0.558594 4.83842 0.558594C2.54342 0.558594 0.785645 2.31639 0.785645 4.61129C0.785645 5.73439 1.22512 6.71089 1.95752 7.44339L31.9868 37.6191C32.768 38.4492 33.7446 38.8398 34.8677 38.8398Z",fill:"currentColor"})]})}function ME(){return y.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 69 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[y.jsx("title",{children:"Chevron Up"}),y.jsx("path",{d:"M1.95752 32.2441C1.22512 32.9277 0.785645 33.9531 0.785645 35.0762C0.785645 37.3711 2.54342 39.1289 4.83842 39.1289C5.96142 39.1289 6.98682 38.6895 7.67042 37.957L37.1138 8.36716H32.5727L62.0161 37.957C62.6997 38.6895 63.8227 39.1289 64.897 39.1289C67.1919 39.1289 68.9009 37.3711 68.9009 35.0762C68.9009 33.9531 68.4614 32.9277 67.729 32.2441L37.7485 2.06836C37.0161 1.23826 35.9419 0.847656 34.8677 0.847656C33.7446 0.847656 32.7192 1.23826 31.9868 2.06836L1.95752 32.2441Z",fill:"currentColor"})]})}function DE(){return y.jsxs("svg",{width:"100%",height:"100%",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 79 48",fill:"none",children:[y.jsx("title",{children:"Menu"}),y.jsx("path",{fill:"currentColor",d:"M19.528 47.232h40.87c1.952 0 3.515-1.562 3.515-3.564a3.5 3.5 0 0 0-3.516-3.516H19.528a3.501 3.501 0 0 0-3.515 3.516c0 2.002 1.562 3.564 3.515 3.564ZM12.057 27.262h55.81a3.501 3.501 0 0 0 3.516-3.516 3.501 3.501 0 0 0-3.515-3.515h-55.81a3.501 3.501 0 0 0-3.516 3.515 3.501 3.501 0 0 0 3.515 3.516ZM4.391 7.34H75.29c2.002 0 3.515-1.563 3.515-3.516 0-2.002-1.513-3.564-3.515-3.564H4.39C2.438.26.876 1.822.876 3.824A3.501 3.501 0 0 0 4.39 7.34Z"})]})}$u.Curtain=VE;function $u(){var n,r;const e=Ke(),{showLogo:t}=Pr();return y.jsxs("div",{className:Z6,children:[y.jsxs("div",{className:jp,children:[t&&y.jsx("div",{className:Ra,children:y.jsx("div",{className:V6,children:y.jsx(Gn,{to:"/",style:{alignItems:"center",display:"flex",height:"100%"},children:y.jsx(Jf,{})})})}),e.topNav&&y.jsx(y.Fragment,{children:y.jsxs("div",{className:Ra,children:[y.jsx(jE,{items:e.topNav}),y.jsx(zE,{items:e.topNav})]})})]}),y.jsxs("div",{className:jp,children:[y.jsx("div",{className:Ra,style:{marginRight:"-8px"},children:y.jsx(O6,{})}),e.socials&&((n=e.socials)==null?void 0:n.length)>0&&y.jsxs(y.Fragment,{children:[y.jsx("div",{className:B6}),y.jsx("div",{className:Ra,style:{marginLeft:"-8px"},children:(r=e.socials)==null?void 0:r.map((o,i)=>y.jsx(HE,{...o},i))})]})]})]})}function jE({items:e}){const{pathname:t}=Re(),n=Yi({pathname:t,items:e});return y.jsx(zg,{className:l1,children:y.jsx(Bg,{children:e.map((r,o)=>r!=null&&r.link?y.jsx(Xl,{active:n==null?void 0:n.includes(r.id),href:r.link,children:r.text},o):y.jsxs(Ug,{className:H6,children:[y.jsx(Hg,{active:n==null?void 0:n.includes(r.id),children:r.text}),y.jsx(Vg,{className:F6,children:y.jsx(FE,{items:r.items||[]})})]},o))})})}function FE({items:e}){const{pathname:t}=Re(),n=Yi({pathname:t,items:e});return y.jsx("ul",{children:e==null?void 0:e.map((r,o)=>y.jsx(Xl,{active:n.includes(r.id),href:r.link,children:r.text},o))})}function zE({items:e}){var s;const[t,n]=h.useState(!1),{pathname:r}=Re(),o=Yi({pathname:r,items:e}),i=e.filter(u=>u.id===o[0])[0],{basePath:a}=Ke(),l=a;return y.jsx("div",{className:I(l1,G6),children:i?y.jsxs(Ut.Root,{modal:!0,open:t,onOpenChange:n,children:[y.jsxs(Ut.Trigger,{className:I(a1,ei),children:[i.text,y.jsx(ct,{label:"Menu",icon:OE,size:"11px"})]}),y.jsx(Ut,{className:q6,children:y.jsx(N6,{type:"single",collapsible:!0,style:{display:"flex",flexDirection:"column"},children:e.map((u,f)=>{var c;return u!=null&&u.link?y.jsx(rn,{"data-active":o.includes(u.id),className:ei,href:u.link,onClick:()=>n(!1),variant:"styleless",children:u.text},f):y.jsxs(P6,{value:f.toString(),children:[y.jsx(A6,{className:I(ei,Y6),"data-active":o.includes(u.id),style:Yt({[D6]:`url(${l}/.vocs/icons/chevron-down.svg)`,[j6]:`url(${l}/.vocs/icons/chevron-up.svg)`}),children:u.text}),y.jsx(L6,{className:K6,children:(c=u.items)==null?void 0:c.map((d,p)=>y.jsx(rn,{className:ei,href:d.link,onClick:()=>n(!1),variant:"styleless",children:d.text},p))})]},f)})})})]}):(s=e[0])!=null&&s.link?y.jsx(rn,{className:ei,href:e[0].link,variant:"styleless",children:e[0].text}):null})}const BE={discord:Wg,github:Kg,telegram:Yg,warpcast:Gg,x:Qg},UE={discord:"21px",github:"18px",telegram:"21px",warpcast:"18px",x:"16px"};function HE({icon:e,label:t,link:n,type:r}){return y.jsx("a",{className:M6,href:n,target:"_blank",rel:"noopener noreferrer",children:y.jsx(ct,{className:U6,label:t,icon:BE[e],size:UE[r]||"18px"})})}function VE({enableScrollToTop:e}){const{pathname:t}=Re(),{layout:n,showSidebar:r}=Pr(),{frontmatter:o={}}=Nr(),i=Yl(),[a,l]=h.useState(!1),[s,u]=h.useState(!1),f=h.useMemo(()=>{if(!i||n==="minimal")return;const p=B1({sidebarItems:i.items,pathname:t});return p==null?void 0:p.text},[n,t,i]),c=h.useMemo(()=>{var p;if(!(typeof window>"u"))return(p=document.querySelector(".vocs_Content h1"))==null?void 0:p.textContent},[]),d=f||o.title||c;return y.jsxs("div",{className:z6,children:[y.jsx("div",{className:Mp,children:y.jsx("div",{className:qs,children:r?y.jsxs(Ut.Root,{modal:!0,open:s,onOpenChange:u,children:[y.jsxs(Ut.Trigger,{className:a1,children:[y.jsx(ct,{label:"Menu",icon:DE,size:"13px"}),y.jsx("div",{className:W6,children:d})]}),y.jsx(Ut,{className:J6,children:y.jsx(j1,{onClickItem:()=>u(!1)})})]}):d})}),y.jsxs("div",{className:Mp,children:[e&&y.jsxs(y.Fragment,{children:[y.jsx("div",{className:qs,children:y.jsxs("button",{className:Dp,onClick:()=>window.scrollTo({behavior:"smooth",top:0}),type:"button",children:["Top",y.jsx(ct,{label:"Scroll to top",icon:ME,size:"10px"})]})}),y.jsx("div",{className:X6})]}),n==="docs"&&y.jsx("div",{className:qs,children:y.jsxs(Ut.Root,{modal:!0,open:a,onOpenChange:l,children:[y.jsxs(Ut.Trigger,{className:Dp,children:["On this page",y.jsx(ct,{label:"On this page",icon:D1,size:"10px"})]}),y.jsx(Ut,{className:Q6,children:y.jsx(s1,{onClickItem:()=>l(!1),showTitle:!1})})]})})]})]})}function B1({sidebarItems:e,pathname:t}){const n=t.replace(/(.+)\/$/,"$1");for(const r of e){if((r==null?void 0:r.link)===n)return r;if(r.items){const o=B1({sidebarItems:r.items,pathname:n});if(o)return o}}}var WE="vocs_SkipLink";const U1="vocs-content";function KE(){const{pathname:e}=Re();return y.jsx("a",{className:I(WE,eg),href:`${e}#${U1}`,children:"Skip to content"})}var YE="vocs_DocsLayout_content",GE="vocs_DocsLayout_content_withSidebar",QE="vocs_DocsLayout_content_withTopNav",ZE="vocs_DocsLayout_gutterLeft",XE="vocs_DocsLayout_gutterRight",JE="vocs_DocsLayout_gutterRight_withSidebar",qE="vocs_DocsLayout_gutterTop",e_="vocs_DocsLayout_gutterTopCurtain",t_="vocs_DocsLayout_gutterTopCurtain_hidden",n_="vocs_DocsLayout_gutterTopCurtain_withSidebar",r_="vocs_DocsLayout_gutterTop_offsetLeftGutter",o_="vocs_DocsLayout_gutterTop_sticky",i_="vocs_DocsLayout",a_="vocs_DocsLayout_sidebar";function Tu({children:e}){const{banner:t,font:n}=Ke(),{frontmatter:r={}}=Nr(),{content:o}=r,{layout:i,showOutline:a,showSidebar:l,showTopNav:s}=Pr(),{ref:u,inView:f}=K0({initialInView:!0,rootMargin:"100px 0px 0px 0px"}),[c,d]=vu("banner",!0);return y.jsxs("div",{className:i_,"data-layout":i,style:Yt({[e5]:c?t==null?void 0:t.height:void 0,[Mx.default]:n!=null&&n.google?`${n.google}, ${Ox.default}`:void 0}),children:[y.jsx(KE,{}),c&&y.jsx(E5,{hide:()=>d(!1)}),l&&y.jsx("div",{className:ZE,children:y.jsx(j1,{className:a_})}),s&&y.jsxs(y.Fragment,{children:[y.jsxs("div",{ref:u,className:I(qE,l&&r_,(i==="minimal"||i==="landing")&&o_),children:[y.jsx(Cu,{}),y.jsx($u,{})]}),y.jsxs("div",{className:I(e_,l&&n_,(i==="minimal"||i==="landing")&&t_),children:[y.jsx(Cu.Curtain,{}),y.jsx($u.Curtain,{enableScrollToTop:!f})]})]}),a&&y.jsx("div",{className:I(XE,l&&JE),children:y.jsx(s1,{})}),y.jsxs("div",{id:U1,className:I(YE,l&&GE,s&&QE),style:Yt({[Os.horizontalPadding]:o==null?void 0:o.horizontalPadding,[Os.width]:o==null?void 0:o.width,[Os.verticalPadding]:o==null?void 0:o.verticalPadding}),children:[y.jsx(X0,{children:e}),y.jsx(r6,{})]}),y.jsx("div",{"data-bottom-observer":!0})]})}const ku={},H1=Z.createContext(ku);function l_(e){const t=Z.useContext(H1);return Z.useMemo(function(){return typeof e=="function"?e(t):{...t,...e}},[t,e])}function s_(e){let t;return e.disableParentContext?t=typeof e.components=="function"?e.components(ku):e.components||ku:t=l_(e.components),Z.createElement(H1.Provider,{value:t},e.children)}var V1={exports:{}},c_="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",u_=c_,f_=u_;function W1(){}function K1(){}K1.resetWarningCache=W1;var d_=function(){function e(r,o,i,a,l,s){if(s!==f_){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:K1,resetWarningCache:W1};return n.PropTypes=n,n};V1.exports=d_();var h_=V1.exports;const xe=Jn(h_);function p_(e){return e&&typeof e=="object"&&"default"in e?e.default:e}var Y1=h,v_=p_(Y1);function Gp(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m_(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var g_=!!(typeof window<"u"&&window.document&&window.document.createElement);function y_(e,t,n){if(typeof e!="function")throw new Error("Expected reducePropsToState to be a function.");if(typeof t!="function")throw new Error("Expected handleStateChangeOnClient to be a function.");if(typeof n<"u"&&typeof n!="function")throw new Error("Expected mapStateOnServer to either be undefined or a function.");function r(o){return o.displayName||o.name||"Component"}return function(i){if(typeof i!="function")throw new Error("Expected WrappedComponent to be a React component.");var a=[],l;function s(){l=e(a.map(function(f){return f.props})),u.canUseDOM?t(l):n&&(l=n(l))}var u=function(f){m_(c,f);function c(){return f.apply(this,arguments)||this}c.peek=function(){return l},c.rewind=function(){if(c.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var w=l;return l=void 0,a=[],w};var d=c.prototype;return d.UNSAFE_componentWillMount=function(){a.push(this),s()},d.componentDidUpdate=function(){s()},d.componentWillUnmount=function(){var w=a.indexOf(this);a.splice(w,1),s()},d.render=function(){return v_.createElement(i,this.props)},c}(Y1.PureComponent);return Gp(u,"displayName","SideEffect("+r(i)+")"),Gp(u,"canUseDOM",g_),u}}var w_=y_;const x_=Jn(w_);var C_=typeof Element<"u",E_=typeof Map=="function",__=typeof Set=="function",S_=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Ga(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,o;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!Ga(e[r],t[r]))return!1;return!0}var i;if(E_&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;for(i=e.entries();!(r=i.next()).done;)if(!Ga(r.value[1],t.get(r.value[0])))return!1;return!0}if(__&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(S_&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[r]))return!1;if(C_&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((o[r]==="_owner"||o[r]==="__v"||o[r]==="__o")&&e.$$typeof)&&!Ga(e[o[r]],t[o[r]]))return!1;return!0}return e!==e&&t!==t}var b_=function(t,n){try{return Ga(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}};const $_=Jn(b_);/* object-assign (c) Sindre Sorhus @license MIT -*/var Qp=Object.getOwnPropertySymbols,T_=Object.prototype.hasOwnProperty,k_=Object.prototype.propertyIsEnumerable;function R_(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function N_(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map(function(i){return t[i]});if(r.join("")!=="0123456789")return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach(function(i){o[i]=i}),Object.keys(Object.assign({},o)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var P_=N_()?Object.assign:function(e,t){for(var n,r=R_(e),o,i=1;i=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},F_=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e},Ru=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return n===!1?String(t):String(t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")},z_=function(t){var n=ho(t,q.TITLE),r=ho(t,zi.TITLE_TEMPLATE);if(r&&n)return r.replace(/%s/g,function(){return Array.isArray(n)?n.join(""):n});var o=ho(t,zi.DEFAULT_TITLE);return n||o||void 0},B_=function(t){return ho(t,zi.ON_CHANGE_CLIENT_STATE)||function(){}},tc=function(t,n){return n.filter(function(r){return typeof r[t]<"u"}).map(function(r){return r[t]}).reduce(function(r,o){return ft({},r,o)},{})},U_=function(t,n){return n.filter(function(r){return typeof r[q.BASE]<"u"}).map(function(r){return r[q.BASE]}).reverse().reduce(function(r,o){if(!r.length)for(var i=Object.keys(o),a=0;a=0;r--){var o=t[r];if(o.hasOwnProperty(n))return o[n]}return null},H_=function(t){return{baseTag:U_([Ce.HREF,Ce.TARGET],t),bodyAttributes:tc(gr.BODY,t),defer:ho(t,zi.DEFER),encode:ho(t,zi.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:tc(gr.HTML,t),linkTags:ti(q.LINK,[Ce.REL,Ce.HREF],t),metaTags:ti(q.META,[Ce.NAME,Ce.CHARSET,Ce.HTTPEQUIV,Ce.PROPERTY,Ce.ITEM_PROP],t),noscriptTags:ti(q.NOSCRIPT,[Ce.INNER_HTML],t),onChangeClientState:B_(t),scriptTags:ti(q.SCRIPT,[Ce.SRC,Ce.INNER_HTML],t),styleTags:ti(q.STYLE,[Ce.CSS_TEXT],t),title:z_(t),titleAttributes:tc(gr.TITLE,t)}},Nu=function(){var e=Date.now();return function(t){var n=Date.now();n-e>16?(e=n,t(n)):setTimeout(function(){Nu(t)},0)}}(),Xp=function(t){return clearTimeout(t)},V_=typeof window<"u"?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||Nu:global.requestAnimationFrame||Nu,W_=typeof window<"u"?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||Xp:global.cancelAnimationFrame||Xp,K_=function(t){return console&&typeof console.warn=="function"&&console.warn(t)},ni=null,Y_=function(t){ni&&W_(ni),t.defer?ni=V_(function(){Jp(t,function(){ni=null})}):(Jp(t),ni=null)},Jp=function(t,n){var r=t.baseTag,o=t.bodyAttributes,i=t.htmlAttributes,a=t.linkTags,l=t.metaTags,s=t.noscriptTags,u=t.onChangeClientState,f=t.scriptTags,c=t.styleTags,d=t.title,p=t.titleAttributes;Pu(q.BODY,o),Pu(q.HTML,i),G_(d,p);var w={baseTag:Vr(q.BASE,r),linkTags:Vr(q.LINK,a),metaTags:Vr(q.META,l),noscriptTags:Vr(q.NOSCRIPT,s),scriptTags:Vr(q.SCRIPT,f),styleTags:Vr(q.STYLE,c)},m={},C={};Object.keys(w).forEach(function(v){var g=w[v],x=g.newTags,E=g.oldTags;x.length&&(m[v]=x),E.length&&(C[v]=w[v].oldTags)}),n&&n(),u(t,m,C)},G1=function(t){return Array.isArray(t)?t.join(""):t},G_=function(t,n){typeof t<"u"&&document.title!==t&&(document.title=G1(t)),Pu(q.TITLE,n)},Pu=function(t,n){var r=document.getElementsByTagName(t)[0];if(r){for(var o=r.getAttribute(Ht),i=o?o.split(","):[],a=[].concat(i),l=Object.keys(n),s=0;s=0;d--)r.removeAttribute(a[d]);i.length===a.length?r.removeAttribute(Ht):r.getAttribute(Ht)!==l.join(",")&&r.setAttribute(Ht,l.join(","))}},Vr=function(t,n){var r=document.head||document.querySelector(q.HEAD),o=r.querySelectorAll(t+"["+Ht+"]"),i=Array.prototype.slice.call(o),a=[],l=void 0;return n&&n.length&&n.forEach(function(s){var u=document.createElement(t);for(var f in s)if(s.hasOwnProperty(f))if(f===Ce.INNER_HTML)u.innerHTML=s.innerHTML;else if(f===Ce.CSS_TEXT)u.styleSheet?u.styleSheet.cssText=s.cssText:u.appendChild(document.createTextNode(s.cssText));else{var c=typeof s[f]>"u"?"":s[f];u.setAttribute(f,c)}u.setAttribute(Ht,"true"),i.some(function(d,p){return l=p,u.isEqualNode(d)})?i.splice(l,1):a.push(u)}),i.forEach(function(s){return s.parentNode.removeChild(s)}),a.forEach(function(s){return r.appendChild(s)}),{oldTags:i,newTags:a}},Q1=function(t){return Object.keys(t).reduce(function(n,r){var o=typeof t[r]<"u"?r+'="'+t[r]+'"':""+r;return n?n+" "+o:o},"")},Q_=function(t,n,r,o){var i=Q1(r),a=G1(n);return i?"<"+t+" "+Ht+'="true" '+i+">"+Ru(a,o)+"":"<"+t+" "+Ht+'="true">'+Ru(a,o)+""},Z_=function(t,n,r){return n.reduce(function(o,i){var a=Object.keys(i).filter(function(u){return!(u===Ce.INNER_HTML||u===Ce.CSS_TEXT)}).reduce(function(u,f){var c=typeof i[f]>"u"?f:f+'="'+Ru(i[f],r)+'"';return u?u+" "+c:c},""),l=i.innerHTML||i.cssText||"",s=I_.indexOf(t)===-1;return o+"<"+t+" "+Ht+'="true" '+a+(s?"/>":">"+l+"")},"")},Z1=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(t).reduce(function(r,o){return r[Rl[o]||o]=t[o],r},n)},X_=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(t).reduce(function(r,o){return r[L_[o]||o]=t[o],r},n)},J_=function(t,n,r){var o,i=(o={key:n},o[Ht]=!0,o),a=Z1(r,i);return[Z.createElement(q.TITLE,a,n)]},q_=function(t,n){return n.map(function(r,o){var i,a=(i={key:o},i[Ht]=!0,i);return Object.keys(r).forEach(function(l){var s=Rl[l]||l;if(s===Ce.INNER_HTML||s===Ce.CSS_TEXT){var u=r.innerHTML||r.cssText;a.dangerouslySetInnerHTML={__html:u}}else a[s]=r[l]}),Z.createElement(t,a)})},ln=function(t,n,r){switch(t){case q.TITLE:return{toComponent:function(){return J_(t,n.title,n.titleAttributes)},toString:function(){return Q_(t,n.title,n.titleAttributes,r)}};case gr.BODY:case gr.HTML:return{toComponent:function(){return Z1(n)},toString:function(){return Q1(n)}};default:return{toComponent:function(){return q_(t,n)},toString:function(){return Z_(t,n,r)}}}},X1=function(t){var n=t.baseTag,r=t.bodyAttributes,o=t.encode,i=t.htmlAttributes,a=t.linkTags,l=t.metaTags,s=t.noscriptTags,u=t.scriptTags,f=t.styleTags,c=t.title,d=c===void 0?"":c,p=t.titleAttributes;return{base:ln(q.BASE,n,o),bodyAttributes:ln(gr.BODY,r,o),htmlAttributes:ln(gr.HTML,i,o),link:ln(q.LINK,a,o),meta:ln(q.META,l,o),noscript:ln(q.NOSCRIPT,s,o),script:ln(q.SCRIPT,u,o),style:ln(q.STYLE,f,o),title:ln(q.TITLE,{title:d,titleAttributes:p},o)}},eS=function(t){var n,r;return r=n=function(o){j_(i,o);function i(){return M_(this,i),F_(this,o.apply(this,arguments))}return i.prototype.shouldComponentUpdate=function(l){return!$_(this.props,l)},i.prototype.mapNestedChildrenToProps=function(l,s){if(!s)return null;switch(l.type){case q.SCRIPT:case q.NOSCRIPT:return{innerHTML:s};case q.STYLE:return{cssText:s}}throw new Error("<"+l.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},i.prototype.flattenArrayTypeChildren=function(l){var s,u=l.child,f=l.arrayTypeChildren,c=l.newChildProps,d=l.nestedChildren;return ft({},f,(s={},s[u.type]=[].concat(f[u.type]||[],[ft({},c,this.mapNestedChildrenToProps(u,d))]),s))},i.prototype.mapObjectTypeChildren=function(l){var s,u,f=l.child,c=l.newProps,d=l.newChildProps,p=l.nestedChildren;switch(f.type){case q.TITLE:return ft({},c,(s={},s[f.type]=p,s.titleAttributes=ft({},d),s));case q.BODY:return ft({},c,{bodyAttributes:ft({},d)});case q.HTML:return ft({},c,{htmlAttributes:ft({},d)})}return ft({},c,(u={},u[f.type]=ft({},d),u))},i.prototype.mapArrayTypeChildrenToProps=function(l,s){var u=ft({},s);return Object.keys(l).forEach(function(f){var c;u=ft({},u,(c={},c[f]=l[f],c))}),u},i.prototype.warnOnInvalidChildren=function(l,s){return!0},i.prototype.mapChildrenToProps=function(l,s){var u=this,f={};return Z.Children.forEach(l,function(c){if(!(!c||!c.props)){var d=c.props,p=d.children,w=Zp(d,["children"]),m=X_(w);switch(u.warnOnInvalidChildren(c,p),c.type){case q.LINK:case q.META:case q.NOSCRIPT:case q.SCRIPT:case q.STYLE:f=u.flattenArrayTypeChildren({child:c,arrayTypeChildren:f,newChildProps:m,nestedChildren:p});break;default:s=u.mapObjectTypeChildren({child:c,newProps:s,newChildProps:m,nestedChildren:p});break}}}),s=this.mapArrayTypeChildrenToProps(f,s),s},i.prototype.render=function(){var l=this.props,s=l.children,u=Zp(l,["children"]),f=ft({},u);return s&&(f=this.mapChildrenToProps(s,f)),Z.createElement(t,f)},D_(i,null,[{key:"canUseDOM",set:function(l){t.canUseDOM=l}}]),i}(Z.Component),n.propTypes={base:xe.object,bodyAttributes:xe.object,children:xe.oneOfType([xe.arrayOf(xe.node),xe.node]),defaultTitle:xe.string,defer:xe.bool,encodeSpecialCharacters:xe.bool,htmlAttributes:xe.object,link:xe.arrayOf(xe.object),meta:xe.arrayOf(xe.object),noscript:xe.arrayOf(xe.object),onChangeClientState:xe.func,script:xe.arrayOf(xe.object),style:xe.arrayOf(xe.object),title:xe.string,titleAttributes:xe.object,titleTemplate:xe.string},n.defaultProps={defer:!0,encodeSpecialCharacters:!0},n.peek=t.peek,n.rewind=function(){var o=t.rewind();return o||(o=X1({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),o},r},tS=function(){return null},nS=x_(H_,Y_,X1)(tS),Au=eS(nS);Au.renderStatic=Au.rewind;var nc="vocs_Anchor",rS="vocs_Autolink";function oS(e){const{pathname:t}=Re();return y.jsx("a",{...e,className:I(e.className,rS),href:`${t}${e.href}`})}function iS(e){const{children:t,href:n}=e,{pathname:r}=Re();return t&&typeof t=="object"&&"props"in t&&t.props["data-autolink-icon"]?y.jsx(oS,{className:I(e.className,nc),...e}):n!=null&&n.match(/^#/)?y.jsx("a",{className:I(e.className,nc),...e,href:`${r}${n}`}):y.jsx(rn,{className:I(e.className,nc),...e})}var aS="vocs_Callout_danger",lS="vocs_Callout_info",sS="vocs_Callout_note",J1="vocs_Callout",cS="vocs_Callout_success",uS="vocs_Callout_tip",fS="vocs_Callout_warning";const dS=Object.freeze(Object.defineProperty({__proto__:null,danger:aS,info:lS,note:sS,root:J1,success:cS,tip:uS,warning:fS},Symbol.toStringTag,{value:"Module"}));function hS({className:e,children:t,type:n}){return y.jsx("aside",{className:I(e,J1,dS[n]),children:t})}var pS="vocs_Aside";function vS(e){const t=I(e.className,pS);return"data-callout"in e?y.jsx(hS,{className:t,type:e["data-callout"],children:e.children}):y.jsx("aside",{...e,className:t})}var mS="vocs_Blockquote";function gS(e){return y.jsx("blockquote",{...e,className:I(e.className,mS)})}var yS="vocs_Code";function wS(e){const t=xS(e.children);return y.jsx("code",{...e,className:I(e.className,yS),children:t})}function xS(e){return Array.isArray(e)?e.map((t,n)=>{var r,o,i;return t.props&&"data-line"in t.props&&typeof t.props.children=="string"&&t.props.children.trim()===""&&((i=(o=(r=e[n+1])==null?void 0:r.props)==null?void 0:o.className)!=null&&i.includes("twoslash-tag-line"))?null:t}).filter(Boolean):e}var CS="vocs_Details";function ES(e){return y.jsx("details",{...e,className:I(e.className,CS)})}var _S="vocs_Authors_authors",SS="vocs_Authors_link",bS="vocs_Authors",qp="vocs_Authors_separator";function q1(e){const{frontmatter:t}=Nr(),{authors:n=t==null?void 0:t.authors,date:r=t==null?void 0:t.date}=e,o=h.useMemo(()=>{if(n)return Array.isArray(n)?n:n.split(",").map(a=>a.trim())},[n]),i=h.useMemo(()=>r?new Date(r).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"}):null,[r]);return y.jsxs("div",{className:bS,children:[i,o&&(i?" by ":"By "),y.jsx("span",{className:_S,children:o==null?void 0:o.map((a,l)=>{const{text:s,url:u}=$S(a);return y.jsxs(h.Fragment,{children:[u?y.jsx("a",{className:SS,href:u,target:"_blank",rel:"noopener noreferrer",children:s}):s,ly.jsxs(h.Fragment,{children:[y.jsx("div",{className:RS,children:y.jsxs(Gn,{to:e.path,children:[y.jsx("h2",{className:AS,children:e.title}),y.jsx(q1,{authors:e.authors,date:e.date}),y.jsxs("p",{className:TS,children:[e.description," ",y.jsx("span",{className:NS,children:"[→]"})]})]})}),ty.jsxs(h.Fragment,{children:[y.jsx("div",{className:BS,children:t.name}),t.items.map((r,o)=>{var i;return y.jsx("div",{className:FS,style:Yt({[OS]:r.length.toString(),[MS]:`${((i=t.height)==null?void 0:i.toString())??"40"}px`}),children:r.map((a,l)=>y.jsx(rn,{className:I(IS,a?zS:void 0),hideExternalIcon:!0,href:a==null?void 0:a.link,variant:"styleless",children:y.jsx("img",{className:DS,src:a==null?void 0:a.image,alt:a==null?void 0:a.name})},l))},o)})]},n))})}var HS="var(--vocs_AutolinkIcon_iconUrl)",VS="vocs_AutolinkIcon";function WS(e){const{basePath:t}=We(),n=t;return y.jsx("div",{...e,className:I(e.className,VS),style:Yt({[HS]:`url(${n}/.vocs/icons/link.svg)`})})}const rc="rovingFocusGroup.onEntryFocus",KS={bubbles:!1,cancelable:!0},vd="RovingFocusGroup",[Lu,ey,YS]=Zl(vd),[GS,ty]=En(vd,[YS]),[QS,ZS]=GS(vd),XS=h.forwardRef((e,t)=>h.createElement(Lu.Provider,{scope:e.__scopeRovingFocusGroup},h.createElement(Lu.Slot,{scope:e.__scopeRovingFocusGroup},h.createElement(JS,Y({},e,{ref:t}))))),JS=h.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:i,currentTabStopId:a,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:s,onEntryFocus:u,...f}=e,c=h.useRef(null),d=Be(t,c),p=Ql(i),[w=null,m]=or({prop:a,defaultProp:l,onChange:s}),[C,v]=h.useState(!1),g=at(u),x=ey(n),E=h.useRef(!1),[S,$]=h.useState(0);return h.useEffect(()=>{const _=c.current;if(_)return _.addEventListener(rc,g),()=>_.removeEventListener(rc,g)},[g]),h.createElement(QS,{scope:n,orientation:r,dir:p,loop:o,currentTabStopId:w,onItemFocus:h.useCallback(_=>m(_),[m]),onItemShiftTab:h.useCallback(()=>v(!0),[]),onFocusableItemAdd:h.useCallback(()=>$(_=>_+1),[]),onFocusableItemRemove:h.useCallback(()=>$(_=>_-1),[])},h.createElement(fe.div,Y({tabIndex:C||S===0?-1:0,"data-orientation":r},f,{ref:d,style:{outline:"none",...e.style},onMouseDown:le(e.onMouseDown,()=>{E.current=!0}),onFocus:le(e.onFocus,_=>{const b=!E.current;if(_.target===_.currentTarget&&b&&!C){const T=new CustomEvent(rc,KS);if(_.currentTarget.dispatchEvent(T),!T.defaultPrevented){const P=x().filter(F=>F.focusable),M=P.find(F=>F.active),O=P.find(F=>F.id===w),R=[M,O,...P].filter(Boolean).map(F=>F.ref.current);ny(R)}}E.current=!1}),onBlur:le(e.onBlur,()=>v(!1))})))}),qS="RovingFocusGroupItem",e9=h.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:i,...a}=e,l=on(),s=i||l,u=ZS(qS,n),f=u.currentTabStopId===s,c=ey(n),{onFocusableItemAdd:d,onFocusableItemRemove:p}=u;return h.useEffect(()=>{if(r)return d(),()=>p()},[r,d,p]),h.createElement(Lu.ItemSlot,{scope:n,id:s,focusable:r,active:o},h.createElement(fe.span,Y({tabIndex:f?0:-1,"data-orientation":u.orientation},a,{ref:t,onMouseDown:le(e.onMouseDown,w=>{r?u.onItemFocus(s):w.preventDefault()}),onFocus:le(e.onFocus,()=>u.onItemFocus(s)),onKeyDown:le(e.onKeyDown,w=>{if(w.key==="Tab"&&w.shiftKey){u.onItemShiftTab();return}if(w.target!==w.currentTarget)return;const m=r9(w,u.orientation,u.dir);if(m!==void 0){w.preventDefault();let v=c().filter(g=>g.focusable).map(g=>g.ref.current);if(m==="last")v.reverse();else if(m==="prev"||m==="next"){m==="prev"&&v.reverse();const g=v.indexOf(w.currentTarget);v=u.loop?o9(v,g+1):v.slice(g+1)}setTimeout(()=>ny(v))}})})))}),t9={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function n9(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function r9(e,t,n){const r=n9(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return t9[r]}function ny(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function o9(e,t){return e.map((n,r)=>e[(t+r)%e.length])}const i9=XS,a9=e9,ry="Tabs",[l9,h$]=En(ry,[ty]),oy=ty(),[s9,md]=l9(ry),c9=h.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:o,defaultValue:i,orientation:a="horizontal",dir:l,activationMode:s="automatic",...u}=e,f=Ql(l),[c,d]=or({prop:r,onChange:o,defaultProp:i});return h.createElement(s9,{scope:n,baseId:on(),value:c,onValueChange:d,orientation:a,dir:f,activationMode:s},h.createElement(fe.div,Y({dir:f,"data-orientation":a},u,{ref:t})))}),u9="TabsList",f9=h.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...o}=e,i=md(u9,n),a=oy(n);return h.createElement(i9,Y({asChild:!0},a,{orientation:i.orientation,dir:i.dir,loop:r}),h.createElement(fe.div,Y({role:"tablist","aria-orientation":i.orientation},o,{ref:t})))}),d9="TabsTrigger",h9=h.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:o=!1,...i}=e,a=md(d9,n),l=oy(n),s=iy(a.baseId,r),u=ay(a.baseId,r),f=r===a.value;return h.createElement(a9,Y({asChild:!0},l,{focusable:!o,active:f}),h.createElement(fe.button,Y({type:"button",role:"tab","aria-selected":f,"aria-controls":u,"data-state":f?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:s},i,{ref:t,onMouseDown:le(e.onMouseDown,c=>{!o&&c.button===0&&c.ctrlKey===!1?a.onValueChange(r):c.preventDefault()}),onKeyDown:le(e.onKeyDown,c=>{[" ","Enter"].includes(c.key)&&a.onValueChange(r)}),onFocus:le(e.onFocus,()=>{const c=a.activationMode!=="manual";!f&&!o&&c&&a.onValueChange(r)})})))}),p9="TabsContent",v9=h.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:o,children:i,...a}=e,l=md(p9,n),s=iy(l.baseId,r),u=ay(l.baseId,r),f=r===l.value,c=h.useRef(f);return h.useEffect(()=>{const d=requestAnimationFrame(()=>c.current=!1);return()=>cancelAnimationFrame(d)},[]),h.createElement(_n,{present:o||f},({present:d})=>h.createElement(fe.div,Y({"data-state":f?"active":"inactive","data-orientation":l.orientation,role:"tabpanel","aria-labelledby":s,hidden:!d,id:u,tabIndex:0},a,{ref:t,style:{...e.style,animationDuration:c.current?"0s":void 0}}),d&&i))});function iy(e,t){return`${e}-trigger-${t}`}function ay(e,t){return`${e}-content-${t}`}const m9=c9,g9=f9,y9=h9,w9=v9;var x9="vocs_Tabs_content",C9="vocs_Tabs_list",E9="vocs_Tabs",_9="vocs_Tabs_trigger";function S9(e){return y.jsx(m9,{...e,className:I(e.className,E9)})}function b9(e){return y.jsx(g9,{...e,className:I(e.className,C9)})}function $9(e){return y.jsx(y9,{...e,className:I(e.className,_9)})}function T9(e){return y.jsx(w9,{...e,className:I(e.className,x9)})}var k9="vocs_CodeGroup";function R9({children:e}){if(!Array.isArray(e))return null;const t=e.map(n=>{const r=n.props["data-title"]?n:n.props.children,{props:o}=r,i=o["data-title"],a=o.children;return{title:i,content:a}});return y.jsxs(S9,{className:k9,defaultValue:t[0].title,children:[y.jsx(b9,{"aria-label":"Code group",children:t.map(({title:n},r)=>y.jsx($9,{value:n||r.toString(),children:n},n||r.toString()))}),t.map(({title:n,content:r},o)=>{var a,l;const i=(l=(a=r.props)==null?void 0:a.className)==null?void 0:l.includes("shiki");return y.jsx(T9,{"data-shiki":i,value:n||o.toString(),children:r},n||o.toString())})]})}var N9="vocs_Div",P9="vocs_Step_content",A9="vocs_Step",ly="vocs_Step_title",L9="vocs_H2";function sy(e){return y.jsx(Ao,{...e,className:I(e.className,L9),level:2})}var I9="vocs_H3";function cy(e){return y.jsx(Ao,{...e,className:I(e.className,I9),level:3})}var O9="vocs_H4";function uy(e){return y.jsx(Ao,{...e,className:I(e.className,O9),level:4})}var M9="vocs_H5";function fy(e){return y.jsx(Ao,{...e,className:I(e.className,M9),level:5})}var D9="vocs_H6";function dy(e){return y.jsx(Ao,{...e,className:I(e.className,D9),level:6})}function j9({children:e,className:t,title:n,titleLevel:r=2}){const o=(()=>{if(r===2)return sy;if(r===3)return cy;if(r===4)return uy;if(r===5)return fy;if(r===6)return dy;throw new Error("Invalid.")})();return y.jsxs("div",{className:I(t,A9),children:[typeof n=="string"?y.jsx(o,{className:ly,children:n}):n,y.jsx("div",{className:P9,children:e})]})}var F9="vocs_Steps";function z9({children:e,className:t}){return y.jsx("div",{className:I(t,F9),children:e})}function B9({children:e}){return Array.isArray(e)?y.jsx(z9,{children:e.map(({props:t},n)=>{const[r,...o]=Array.isArray(t.children)?t.children:[t.children];return y.jsx(j9,{title:h.cloneElement(r,{className:ly}),children:o},n)})}):null}var U9="vocs_Subtitle";function H9({children:e}){return y.jsx("div",{className:U9,role:"doc-subtitle",children:e})}function V9(e){const{layout:t}=Pr(),n=I(e.className,N9);return e.className==="code-group"?y.jsx(R9,{...e,className:n}):"data-authors"in e?y.jsx(q1,{}):"data-blog-posts"in e?y.jsx(LS,{}):"data-sponsors"in e?y.jsx(US,{}):"data-autolink-icon"in e&&t==="docs"?y.jsx(WS,{...e,className:n}):"data-vocs-steps"in e?y.jsx(B9,{...e,className:n}):e.role==="doc-subtitle"?y.jsx(H9,{...e}):y.jsx("div",{...e,className:n})}var W9="vocs_Figcaption";function K9(e){const t=I(e.className,W9);return y.jsx("figcaption",{...e,className:t})}var Y9="vocs_Figure";function G9(e){const t=I(e.className,Y9);return y.jsx("figure",{...e,className:t})}var Q9="vocs_Header";function Z9(e){return y.jsx("header",{...e,className:I(e.className,Q9)})}var X9="vocs_HorizontalRule";function J9(e){return y.jsx("hr",{...e,className:I(e.className,X9)})}var q9="vocs_List_ordered",eb="vocs_List",tb="vocs_List_unordered";function tv({ordered:e,...t}){const n=e?"ol":"ul";return y.jsx(n,{...t,className:I(t.className,eb,e?q9:tb)})}var nb="vocs_ListItem";function rb(e){return y.jsx("li",{...e,className:I(e.className,nb)})}function ob(){const e=h.useRef(null),[t,n]=h.useState(!1);h.useEffect(()=>{if(!t)return;const o=setTimeout(()=>n(!1),1e3);return()=>clearTimeout(o)},[t]);function r(){var a;n(!0);const o=(a=e.current)==null?void 0:a.cloneNode(!0),i=o==null?void 0:o.querySelectorAll("button,.line.diff.remove,.twoslash-popup-info-hover,.twoslash-popup-info,.twoslash-meta-line,.twoslash-tag-line");for(const l of i??[])l.remove();navigator.clipboard.writeText(o==null?void 0:o.textContent)}return{copied:t,copy:r,ref:e}}var ib="vocs_CopyButton";function ab(){return y.jsxs("svg",{width:"100%",height:"100%",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 68 67",children:[y.jsx("title",{children:"Checkmark"}),y.jsx("path",{fill:"currentColor",d:"M26.175 66.121c1.904 0 3.418-.83 4.492-2.49L66.263 7.332c.83-1.27 1.123-2.295 1.123-3.32 0-2.393-1.563-4.004-4.004-4.004-1.758 0-2.734.586-3.809 2.295L25.98 56.209 8.304 32.381c-1.123-1.514-2.198-2.149-3.809-2.149-2.441 0-4.2 1.71-4.2 4.15 0 1.026.44 2.15 1.27 3.224l19.971 25.927c1.367 1.758 2.734 2.588 4.639 2.588Z"})]})}function lb(){return y.jsxs("svg",{width:"100%",height:"100%",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 82 82",children:[y.jsx("title",{children:"Copy"}),y.jsx("path",{fill:"currentColor",d:"M12.451 63.281h38.38c8.3 0 12.45-4.053 12.45-12.256v-38.77C63.281 4.054 59.131 0 50.831 0H12.45C4.101 0 0 4.053 0 12.256v38.77C0 59.227 4.102 63.28 12.451 63.28Zm.098-7.031c-3.516 0-5.518-1.904-5.518-5.615V12.647c0-3.711 2.002-5.616 5.518-5.616h38.183c3.516 0 5.518 1.905 5.518 5.615v37.989c0 3.71-2.002 5.615-5.518 5.615H12.55Z"}),y.jsx("path",{stroke:"currentColor",strokeWidth:"6.75px",d:"M69.385 78.266h-38.38c-3.679 0-5.782-.894-6.987-2.081-1.196-1.178-2.088-3.219-2.088-6.8v-38.77c0-3.581.892-5.622 2.088-6.8 1.205-1.187 3.308-2.08 6.988-2.08h38.379c3.65 0 5.758.89 6.973 2.084 1.203 1.182 2.103 3.225 2.103 6.796v38.77c0 3.57-.9 5.614-2.103 6.796-1.215 1.193-3.323 2.085-6.973 2.085Z"})]})}function sb({copy:e,copied:t}){return y.jsx("button",{className:ib,onClick:e,type:"button",children:t?y.jsx(st,{label:"Copied",size:"14px",icon:ab}):y.jsx(st,{label:"Copy",size:"18px",icon:lb})})}var cb="vocs_CodeBlock";function ub(e){return y.jsx("div",{...e,className:I(e.className,cb)})}function fb(){return y.jsxs("svg",{width:"100%",height:"100%",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 94 99",fill:"none",children:[y.jsx("title",{children:"File"}),y.jsx("rect",{width:"77px",height:"89px",x:"8px",y:"3px",stroke:"currentColor",strokeWidth:"6px",rx:"7px"}),y.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:"6px",d:"M25 22h43M25 35h43M25 48h22"})]})}function db(){return y.jsxs("svg",{width:"100%",height:"100%",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 79 95",fill:"none",children:[y.jsx("title",{children:"Terminal"}),y.jsx("path",{fill:"currentColor",d:"M38.281 34.033c0-1.074-.39-2.05-1.22-2.88L6.885 1.171C6.152.39 5.175 0 4.053 0 1.758 0 0 1.709 0 4.004c0 1.074.488 2.1 1.172 2.88l27.295 27.15L1.172 61.181C.488 61.962 0 62.939 0 64.062c0 2.295 1.758 4.004 4.053 4.004 1.123 0 2.1-.39 2.832-1.172l30.176-29.98c.83-.83 1.22-1.807 1.22-2.88Z"}),y.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:"8px",d:"M36 75h55"})]})}var hb="vocs_CodeTitle";function pb({children:e,className:t,language:n,...r}){return y.jsxs("div",{...r,className:I(t,hb),children:[n==="bash"?y.jsx(st,{label:"Terminal",size:"14px",icon:db,style:{marginTop:3}}):e.match(/\.(.*)$/)?y.jsx(st,{label:"File",size:"14px",icon:fb,style:{marginTop:1}}):null,e]})}var vb="vocs_Pre",mb="vocs_Pre_wrapper";function gb({children:e,className:t,...n}){const{copied:r,copy:o,ref:i}=ob();function a(u){return!u||typeof u!="object"?u:"props"in u?{...u,props:{...u.props,children:Array.isArray(u.props.children)?u.props.children.map(a):a(u.props.children)}}:u}const l=h.useMemo(()=>a(e),[e]);return(u=>t!=null&&t.includes("shiki")?y.jsxs(ub,{children:[n["data-title"]&&y.jsx(pb,{language:n["data-lang"],children:n["data-title"]}),u]}):u)(y.jsx("div",{className:I(mb),children:y.jsxs("pre",{ref:i,...n,className:I(t,vb),children:["data-language"in n&&y.jsx(sb,{copied:r,copy:o}),l]})}))}var yb="vocs_Footnotes";function wb(e){return y.jsx("section",{...e,className:I(e.className,yb)})}var nv="vocs_Section";function xb(e){return"data-footnotes"in e?y.jsx(wb,{...e,className:I(e.className,nv)}):y.jsx("section",{...e,className:I(e.className,nv)})}var rv="vocs_Span";function Qa(e,t){if(!e||!t)return!1;const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&bu(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function Iu(e,t){const n=["mouse","pen"];return n.push("",void 0),n.includes(e)}function Pa(e){return(e==null?void 0:e.ownerDocument)||document}function Cb(e){return"composedPath"in e?e.composedPath()[0]:e.target}const hy={...Uu},Eb=hy.useInsertionEffect,_b=Eb||(e=>e());function Sb(e){const t=h.useRef(()=>{});return _b(()=>{t.current=e}),h.useCallback(function(){for(var n=arguments.length,r=new Array(n),o=0;o"floating-ui-"+Math.random().toString(36).slice(2,6)+bb++;function $b(){const[e,t]=h.useState(()=>ov?iv():void 0);return $o(()=>{e==null&&t(iv())},[]),h.useEffect(()=>{ov=!0},[]),e}const Tb=hy.useId,py=Tb||$b,kb=h.forwardRef(function(t,n){const{context:{placement:r,elements:{floating:o},middlewareData:{arrow:i}},width:a=14,height:l=7,tipRadius:s=0,strokeWidth:u=0,staticOffset:f,stroke:c,d,style:{transform:p,...w}={},...m}=t,C=py();if(!o)return null;const v=u*2,g=v/2,x=a/2*(s/-8+1),E=l/2*s/4,[S,$]=r.split("-"),_=y1.isRTL(o),b=!!d,T=S==="top"||S==="bottom",P=f&&$==="end"?"bottom":"top";let M=f&&$==="end"?"right":"left";f&&_&&(M=$==="end"?"left":"right");const O=(i==null?void 0:i.x)!=null?f||i.x:"",j=(i==null?void 0:i.y)!=null?f||i.y:"",R=d||"M0,0"+(" H"+a)+(" L"+(a-x)+","+(l-E))+(" Q"+a/2+","+l+" "+x+","+(l-E))+" Z",F={top:b?"rotate(180deg)":"",left:b?"rotate(90deg)":"rotate(-90deg)",bottom:b?"":"rotate(180deg)",right:b?"rotate(-90deg)":"rotate(90deg)"}[S];return h.createElement("svg",Ou({},m,{"aria-hidden":!0,ref:n,width:b?a:a+v,height:a,viewBox:"0 0 "+a+" "+(l>a?l:a),style:{position:"absolute",pointerEvents:"none",[M]:O,[P]:j,[S]:T||b?"100%":"calc(100% - "+v/2+"px)",transform:""+F+(p??""),...w}}),v>0&&h.createElement("path",{clipPath:"url(#"+C+")",fill:"none",stroke:c,strokeWidth:v+(d?0:1),d:R}),h.createElement("path",{stroke:v&&!d?m.fill:"none",d:R}),h.createElement("clipPath",{id:C},h.createElement("rect",{x:-g,y:g*(b?-1:1),width:a+v,height:a})))});function Rb(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(o=>o(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,((r=e.get(t))==null?void 0:r.filter(o=>o!==n))||[])}}}const Nb=h.createContext(null),Pb=h.createContext(null),vy=()=>{var e;return((e=h.useContext(Nb))==null?void 0:e.id)||null},my=()=>h.useContext(Pb);function Ab(e){return"data-floating-ui-"+e}function av(e){const t=h.useRef(e);return $o(()=>{t.current=e}),t}const lv=Ab("safe-polygon");function oc(e,t,n){return n&&!Iu(n)?0:typeof e=="number"?e:e==null?void 0:e[t]}function Lb(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,dataRef:o,events:i,elements:{domReference:a,floating:l},refs:s}=e,{enabled:u=!0,delay:f=0,handleClose:c=null,mouseOnly:d=!1,restMs:p=0,move:w=!0}=t,m=my(),C=vy(),v=av(c),g=av(f),x=h.useRef(),E=h.useRef(-1),S=h.useRef(),$=h.useRef(-1),_=h.useRef(!0),b=h.useRef(!1),T=h.useRef(()=>{}),P=h.useCallback(()=>{var R;const F=(R=o.current.openEvent)==null?void 0:R.type;return(F==null?void 0:F.includes("mouse"))&&F!=="mousedown"},[o]);h.useEffect(()=>{if(!u)return;function R(F){let{open:W}=F;W||(clearTimeout(E.current),clearTimeout($.current),_.current=!0)}return i.on("openchange",R),()=>{i.off("openchange",R)}},[u,i]),h.useEffect(()=>{if(!u||!v.current||!n)return;function R(W){P()&&r(!1,W,"hover")}const F=Pa(l).documentElement;return F.addEventListener("mouseleave",R),()=>{F.removeEventListener("mouseleave",R)}},[l,n,r,u,v,P]);const M=h.useCallback(function(R,F,W){F===void 0&&(F=!0),W===void 0&&(W="hover");const H=oc(g.current,"close",x.current);H&&!S.current?(clearTimeout(E.current),E.current=window.setTimeout(()=>r(!1,R,W),H)):F&&(clearTimeout(E.current),r(!1,R,W))},[g,r]),O=h.useCallback(()=>{T.current(),S.current=void 0},[]),j=h.useCallback(()=>{if(b.current){const R=Pa(s.floating.current).body;R.style.pointerEvents="",R.removeAttribute(lv),b.current=!1}},[s]);return h.useEffect(()=>{if(!u)return;function R(){return o.current.openEvent?["click","mousedown"].includes(o.current.openEvent.type):!1}function F(A){if(clearTimeout(E.current),_.current=!1,d&&!Iu(x.current)||p>0&&!oc(g.current,"open"))return;const B=oc(g.current,"open",x.current);B?E.current=window.setTimeout(()=>{r(!0,A,"hover")},B):r(!0,A,"hover")}function W(A){if(R())return;T.current();const B=Pa(l);if(clearTimeout($.current),v.current){n||clearTimeout(E.current),S.current=v.current({...e,tree:m,x:A.clientX,y:A.clientY,onClose(){j(),O(),M(A,!0,"safe-polygon")}});const te=S.current;B.addEventListener("mousemove",te),T.current=()=>{B.removeEventListener("mousemove",te)};return}(x.current==="touch"?!Qa(l,A.relatedTarget):!0)&&M(A)}function H(A){R()||v.current==null||v.current({...e,tree:m,x:A.clientX,y:A.clientY,onClose(){j(),O(),M(A)}})(A)}if(Xe(a)){const A=a;return n&&A.addEventListener("mouseleave",H),l==null||l.addEventListener("mouseleave",H),w&&A.addEventListener("mousemove",F,{once:!0}),A.addEventListener("mouseenter",F),A.addEventListener("mouseleave",W),()=>{n&&A.removeEventListener("mouseleave",H),l==null||l.removeEventListener("mouseleave",H),w&&A.removeEventListener("mousemove",F),A.removeEventListener("mouseenter",F),A.removeEventListener("mouseleave",W)}}},[a,l,u,e,d,p,w,M,O,j,r,n,m,g,v,o]),$o(()=>{var R;if(u&&n&&(R=v.current)!=null&&R.__options.blockPointerEvents&&P()){const W=Pa(l).body;if(W.setAttribute(lv,""),W.style.pointerEvents="none",b.current=!0,Xe(a)&&l){var F;const H=a,A=m==null||(F=m.nodesRef.current.find(B=>B.id===C))==null||(F=F.context)==null?void 0:F.elements.floating;return A&&(A.style.pointerEvents=""),H.style.pointerEvents="auto",l.style.pointerEvents="auto",()=>{H.style.pointerEvents="",l.style.pointerEvents=""}}}},[u,n,C,l,a,m,v,P]),$o(()=>{n||(x.current=void 0,O(),j())},[n,O,j]),h.useEffect(()=>()=>{O(),clearTimeout(E.current),clearTimeout($.current),j()},[u,a,O,j]),h.useMemo(()=>{if(!u)return{};function R(F){x.current=F.pointerType}return{reference:{onPointerDown:R,onPointerEnter:R,onMouseMove(F){function W(){_.current||r(!0,F.nativeEvent,"hover")}d&&!Iu(x.current)||n||p===0||(clearTimeout($.current),x.current==="touch"?W():$.current=window.setTimeout(W,p))}},floating:{onMouseEnter(){clearTimeout(E.current)},onMouseLeave(F){M(F.nativeEvent,!1)}}}},[u,d,n,p,r,M])}function Ib(e,t){let n=e.filter(o=>{var i;return o.parentId===t&&((i=o.context)==null?void 0:i.open)}),r=n;for(;r.length;)r=e.filter(o=>{var i;return(i=r)==null?void 0:i.some(a=>{var l;return o.parentId===a.id&&((l=o.context)==null?void 0:l.open)})}),n=n.concat(r);return n}function Ob(e){var t;e===void 0&&(e={});const{open:n=!1,onOpenChange:r,nodeId:o}=e,[i,a]=h.useState(null),[l,s]=h.useState(null),f=((t=e.elements)==null?void 0:t.reference)||i;$o(()=>{f&&(m.current=f)},[f]);const c=_1({...e,elements:{...e.elements,...l&&{reference:l}}}),d=my(),p=vy()!=null,w=Sb((b,T,P)=>{C.current.openEvent=b?T:void 0,v.emit("openchange",{open:b,event:T,reason:P,nested:p}),r==null||r(b,T,P)}),m=h.useRef(null),C=h.useRef({}),v=h.useState(()=>Rb())[0],g=py(),x=h.useCallback(b=>{const T=Xe(b)?{getBoundingClientRect:()=>b.getBoundingClientRect(),contextElement:b}:b;s(T),c.refs.setReference(T)},[c.refs]),E=h.useCallback(b=>{(Xe(b)||b===null)&&(m.current=b,a(b)),(Xe(c.refs.reference.current)||c.refs.reference.current===null||b!==null&&!Xe(b))&&c.refs.setReference(b)},[c.refs]),S=h.useMemo(()=>({...c.refs,setReference:E,setPositionReference:x,domReference:m}),[c.refs,E,x]),$=h.useMemo(()=>({...c.elements,domReference:f}),[c.elements,f]),_=h.useMemo(()=>({...c,refs:S,elements:$,dataRef:C,nodeId:o,floatingId:g,events:v,open:n,onOpenChange:w}),[c,o,g,v,n,w,S,$]);return $o(()=>{const b=d==null?void 0:d.nodesRef.current.find(T=>T.id===o);b&&(b.context=_)}),h.useMemo(()=>({...c,context:_,refs:S,elements:$}),[c,S,$,_])}const sv="active",cv="selected";function ic(e,t,n){const r=new Map,o=n==="item";let i=e;if(o&&e){const{[sv]:a,[cv]:l,...s}=e;i=s}return{...n==="floating"&&{tabIndex:-1},...i,...t.map(a=>{const l=a?a[n]:null;return typeof l=="function"?e?l(e):null:l}).concat(e).reduce((a,l)=>(l&&Object.entries(l).forEach(s=>{let[u,f]=s;if(!(o&&[sv,cv].includes(u)))if(u.indexOf("on")===0){if(r.has(u)||r.set(u,[]),typeof f=="function"){var c;(c=r.get(u))==null||c.push(f),a[u]=function(){for(var d,p=arguments.length,w=new Array(p),m=0;mC(...w)).find(C=>C!==void 0)}}}else a[u]=f}),a),{})}}function Mb(e){e===void 0&&(e=[]);const t=e,n=h.useCallback(i=>ic(i,e,"reference"),t),r=h.useCallback(i=>ic(i,e,"floating"),t),o=h.useCallback(i=>ic(i,e,"item"),e.map(i=>i==null?void 0:i.item));return h.useMemo(()=>({getReferenceProps:n,getFloatingProps:r,getItemProps:o}),[n,r,o])}function uv(e,t){const[n,r]=e;let o=!1;const i=t.length;for(let a=0,l=i-1;a=r!=c>=r&&n<=(f-s)*(r-u)/(c-u)+s&&(o=!o)}return o}function Db(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}function jb(e){e===void 0&&(e={});const{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:r=!0}=e;let o,i=!1,a=null,l=null,s=performance.now();function u(c,d){const p=performance.now(),w=p-s;if(a===null||l===null||w===0)return a=c,l=d,s=p,null;const m=c-a,C=d-l,g=Math.sqrt(m*m+C*C)/w;return a=c,l=d,s=p,g}const f=c=>{let{x:d,y:p,placement:w,elements:m,onClose:C,nodeId:v,tree:g}=c;return function(E){function S(){clearTimeout(o),C()}if(clearTimeout(o),!m.domReference||!m.floating||w==null||d==null||p==null)return;const{clientX:$,clientY:_}=E,b=[$,_],T=Cb(E),P=E.type==="mouseleave",M=Qa(m.floating,T),O=Qa(m.domReference,T),j=m.domReference.getBoundingClientRect(),R=m.floating.getBoundingClientRect(),F=w.split("-")[0],W=d>R.right-R.width/2,H=p>R.bottom-R.height/2,A=Db(b,j),B=R.width>j.width,G=R.height>j.height,te=(B?j:R).left,ae=(B?j:R).right,je=(G?j:R).top,Oe=(G?j:R).bottom;if(M&&(i=!0,!P))return;if(O&&(i=!1),O&&!P){i=!0;return}if(P&&Xe(E.relatedTarget)&&Qa(m.floating,E.relatedTarget)||g&&Ib(g.nodesRef.current,v).some(Ne=>{let{context:de}=Ne;return de==null?void 0:de.open}))return;if(F==="top"&&p>=j.bottom-1||F==="bottom"&&p<=j.top+1||F==="left"&&d>=j.right-1||F==="right"&&d<=j.left+1)return S();let ge=[];switch(F){case"top":ge=[[te,j.top+1],[te,R.bottom-1],[ae,R.bottom-1],[ae,j.top+1]];break;case"bottom":ge=[[te,R.top+1],[te,j.bottom-1],[ae,j.bottom-1],[ae,R.top+1]];break;case"left":ge=[[R.right-1,Oe],[R.right-1,je],[j.left+1,je],[j.left+1,Oe]];break;case"right":ge=[[j.right-1,Oe],[j.right-1,je],[R.left+1,je],[R.left+1,Oe]];break}function ye(Ne){let[de,Se]=Ne;switch(F){case"top":{const Ot=[B?de+t/2:W?de+t*4:de-t*4,Se+t+1],Mt=[B?de-t/2:W?de+t*4:de-t*4,Se+t+1],Pe=[[R.left,W||B?R.bottom-t:R.top],[R.right,W?B?R.bottom-t:R.top:R.bottom-t]];return[Ot,Mt,...Pe]}case"bottom":{const Ot=[B?de+t/2:W?de+t*4:de-t*4,Se-t],Mt=[B?de-t/2:W?de+t*4:de-t*4,Se-t],Pe=[[R.left,W||B?R.top+t:R.bottom],[R.right,W?B?R.top+t:R.bottom:R.top+t]];return[Ot,Mt,...Pe]}case"left":{const Ot=[de+t+1,G?Se+t/2:H?Se+t*4:Se-t*4],Mt=[de+t+1,G?Se-t/2:H?Se+t*4:Se-t*4];return[...[[H||G?R.right-t:R.left,R.top],[H?G?R.right-t:R.left:R.right-t,R.bottom]],Ot,Mt]}case"right":{const Ot=[de-t,G?Se+t/2:H?Se+t*4:Se-t*4],Mt=[de-t,G?Se-t/2:H?Se+t*4:Se-t*4],Pe=[[H||G?R.left+t:R.right,R.top],[H?G?R.left+t:R.right:R.left+t,R.bottom]];return[Ot,Mt,...Pe]}}}if(!uv([$,_],ge)){if(i&&!A)return S();if(!P&&r){const Ne=u(E.clientX,E.clientY);if(Ne!==null&&Ne<.1)return S()}uv([$,_],ye([d,p]))?!i&&r&&(o=window.setTimeout(S,40)):S()}}};return f.__options={blockPointerEvents:n},f}function Fb({children:e,...t}){const[n,r]=e,o=h.useRef(null),[i,a]=h.useState(!1),{context:l,refs:s,floatingStyles:u}=Ob({middleware:[C1({element:o}),w1(8),x1()],open:i,onOpenChange:a,placement:"bottom-start"}),f=Lb(l,{handleClose:jb()}),{getReferenceProps:c,getFloatingProps:d}=Mb([f]),p=r.props.children,w=n.props.children;return y.jsxs("span",{...t,children:[y.jsx("span",{className:"twoslash-target",ref:s.setReference,...c(),children:p}),i&&y.jsxs("div",{className:"twoslash-popup-info-hover",ref:s.setFloating,style:u,...d(),children:[y.jsx(kb,{ref:o,context:l,fill:np.background5,height:3,stroke:np.border2,strokeWidth:1,width:7}),y.jsx("div",{className:"twoslash-popup-scroll-container",children:w})]})]})}function zb(e){var n;const t=I(e.className,rv);return(n=e.className)!=null&&n.includes("twoslash-hover")?y.jsx(Fb,{...e,className:t}):y.jsx("span",{...e,className:I(e.className,rv)})}var Bb="vocs_CalloutTitle";function Ub({className:e,children:t}){return y.jsx("strong",{className:I(e,Bb),children:t})}var fv="vocs_Strong";function Hb(e){return"data-callout-title"in e&&typeof e.children=="string"?y.jsx(Ub,{...e,className:I(e.className,fv),children:e.children}):y.jsx("strong",{...e,className:I(e.className,fv)})}var Vb="vocs_Summary";function Wb(e){return y.jsx("summary",{...e,className:I(e.className,Vb)})}var Kb="vocs_Table";function Yb(e){return y.jsx("table",{...e,className:I(e.className,Kb)})}var Gb="vocs_TableCell";function Qb(e){return y.jsx("td",{...e,className:I(e.className,Gb)})}var Zb="vocs_TableHeader";function Xb(e){return y.jsx("th",{...e,className:I(e.className,Zb)})}var Jb="vocs_TableRow";function qb(e){return y.jsx("tr",{...e,className:I(e.className,Jb)})}const e$={a:iS,aside:vS,blockquote:gS,code:wS,details:ES,div:V9,pre:gb,header:Z9,figcaption:K9,figure:G9,h1:Q0,h2:sy,h3:cy,h4:uy,h5:fy,h6:dy,hr:J9,kd:Pg,li:rb,ol:e=>y.jsx(tv,{ordered:!0,...e}),p:Z0,section:xb,span:zb,strong:Hb,summary:Wb,table:Yb,td:Qb,th:Xb,tr:qb,ul:e=>y.jsx(tv,{ordered:!1,...e})};function t$(){const{pathname:e}=Re(),t=We(),{ogImageUrl:n}=t;if(!n)return;if(typeof n=="string")return n;const r=h.useMemo(()=>{const o=Object.keys(n).filter(i=>e.startsWith(i));return o[o.length-1]},[n,e]);if(r)return n[r]}function Mu(e){const{children:t,filePath:n,frontmatter:r,lastUpdatedAt:o,path:i}=e,{pathname:a}=Re(),l=h.useRef();return h.useEffect(()=>{l.current=a}),y.jsxs(y.Fragment,{children:[y.jsx(n$,{frontmatter:r}),typeof window<"u"&&y.jsx($x,{}),y.jsx(s_,{components:e$,children:y.jsx(H7,{frontmatter:r,path:i,children:y.jsx(q0.Provider,{value:{filePath:n,frontmatter:r,lastUpdatedAt:o,previousPath:l.current},children:t})})})]})}function n$({frontmatter:e}){const t=We(),n=t$(),{baseUrl:r,font:o,iconUrl:i,logoUrl:a}=t,l=(e==null?void 0:e.title)??t.title,s=(e==null?void 0:e.description)??t.description,u=t.title&&!l.includes(t.title),f=typeof window<"u"&&window.location.hostname==="localhost";return y.jsxs(Au,{defaultTitle:t.title,titleTemplate:u?t.titleTemplate:void 0,children:[l&&y.jsx("title",{children:l}),r&&!0&&!f&&y.jsx("base",{href:r}),s!=="undefined"&&y.jsx("meta",{name:"description",content:s}),i&&typeof i=="string"&&y.jsx("link",{rel:"icon",href:i,type:ac(i)}),i&&typeof i!="string"&&y.jsx("link",{rel:"icon",href:i.light,type:ac(i.light)}),i&&typeof i!="string"&&y.jsx("link",{rel:"icon",href:i.dark,type:ac(i.dark),media:"(prefers-color-scheme: dark)"}),y.jsx("meta",{property:"og:type",content:"website"}),y.jsx("meta",{property:"og:title",content:l||t.title}),r&&y.jsx("meta",{property:"og:url",content:r}),s!=="undefined"&&y.jsx("meta",{property:"og:description",content:s}),n&&y.jsx("meta",{property:"og:image",content:n.replace("%logo",`${r||""}${typeof a=="string"?a:(a==null?void 0:a.dark)||""}`).replace("%title",l||"").replace("%description",(s!=="undefined"?s:"")||"")}),(o==null?void 0:o.google)&&y.jsx("link",{rel:"preconnect",href:"https://fonts.googleapis.com"}),(o==null?void 0:o.google)&&y.jsx("link",{rel:"preconnect",href:"https://fonts.gstatic.com",crossOrigin:""}),(o==null?void 0:o.google)&&y.jsx("link",{href:`https://fonts.googleapis.com/css2?family=${o.google}:wght@300;400;500&display=swap`,rel:"stylesheet"}),y.jsx("meta",{name:"twitter:card",content:"summary_large_image"}),n&&y.jsx("meta",{property:"twitter:image",content:n.replace("%logo",`${r||""}${typeof a=="string"?a:(a==null?void 0:a.dark)||""}`).replace("%title",l||"").replace("%description",(s!=="undefined"?s:"")||"")})]})}function ac(e){if(e.endsWith(".svg"))return"image/svg+xml";if(e.endsWith(".png"))return"image/png";if(e.endsWith(".jpg"))return"image/jpeg";if(e.endsWith(".ico"))return"image/x-icon";if(e.endsWith(".webp"))return"image/webp"}const r$=(()=>{const e=Wf.find(({path:t})=>t==="*");return e?{path:e.path,lazy:async()=>{const{frontmatter:t,...n}=await e.lazy();return{...n,element:y.jsx(Mu,{frontmatter:t,path:e.path,children:y.jsx(Tu,{children:y.jsx(n.default,{})})})}}}:{path:"*",lazy:void 0,element:y.jsx(Mu,{frontmatter:{layout:"minimal"},path:"*",children:y.jsx(Tu,{children:y.jsx(Jx,{})})})}})(),dv=[...Wf.filter(({path:e})=>e!=="*").map(e=>({path:e.path,lazy:async()=>{const{frontmatter:t,...n}=await e.lazy();return{...n,element:y.jsx(Mu,{filePath:e.filePath,frontmatter:t,lastUpdatedAt:e.lastUpdatedAt,path:e.path,children:y.jsx(Tu,{children:y.jsx(n.default,{})})})}}})),r$];async function o$(e,t){var r;const n=(r=dr(e,window.location,t))==null?void 0:r.filter(o=>o.route.lazy);n&&(n==null?void 0:n.length)>0&&await Promise.all(n.map(async o=>{const i=await o.route.lazy();Object.assign(o.route,{...i,lazy:void 0})}))}function i$(){const e=document.querySelectorAll('style[data-vocs-temp-style="true"]');for(const t of e)t.remove()}a$();async function a$(){const e=V0().basePath;await o$(dv,e),i$();const t=hx(dv,{basename:e});$0(document.getElementById("app"),y.jsx(Ix,{children:y.jsx(Ex,{router:t})}))}export{m9 as $,T9 as C,rn as L,S9 as R,$9 as T,g9 as a,y9 as b,w9 as c,I as d,We as e,Y8 as f,b9 as g,y as j,l_ as u}; +*/var Qp=Object.getOwnPropertySymbols,T_=Object.prototype.hasOwnProperty,k_=Object.prototype.propertyIsEnumerable;function R_(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function N_(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map(function(i){return t[i]});if(r.join("")!=="0123456789")return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach(function(i){o[i]=i}),Object.keys(Object.assign({},o)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var P_=N_()?Object.assign:function(e,t){for(var n,r=R_(e),o,i=1;i=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},F_=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e},Ru=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return n===!1?String(t):String(t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")},z_=function(t){var n=ho(t,q.TITLE),r=ho(t,zi.TITLE_TEMPLATE);if(r&&n)return r.replace(/%s/g,function(){return Array.isArray(n)?n.join(""):n});var o=ho(t,zi.DEFAULT_TITLE);return n||o||void 0},B_=function(t){return ho(t,zi.ON_CHANGE_CLIENT_STATE)||function(){}},tc=function(t,n){return n.filter(function(r){return typeof r[t]<"u"}).map(function(r){return r[t]}).reduce(function(r,o){return dt({},r,o)},{})},U_=function(t,n){return n.filter(function(r){return typeof r[q.BASE]<"u"}).map(function(r){return r[q.BASE]}).reverse().reduce(function(r,o){if(!r.length)for(var i=Object.keys(o),a=0;a=0;r--){var o=t[r];if(o.hasOwnProperty(n))return o[n]}return null},H_=function(t){return{baseTag:U_([Ce.HREF,Ce.TARGET],t),bodyAttributes:tc(gr.BODY,t),defer:ho(t,zi.DEFER),encode:ho(t,zi.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:tc(gr.HTML,t),linkTags:ti(q.LINK,[Ce.REL,Ce.HREF],t),metaTags:ti(q.META,[Ce.NAME,Ce.CHARSET,Ce.HTTPEQUIV,Ce.PROPERTY,Ce.ITEM_PROP],t),noscriptTags:ti(q.NOSCRIPT,[Ce.INNER_HTML],t),onChangeClientState:B_(t),scriptTags:ti(q.SCRIPT,[Ce.SRC,Ce.INNER_HTML],t),styleTags:ti(q.STYLE,[Ce.CSS_TEXT],t),title:z_(t),titleAttributes:tc(gr.TITLE,t)}},Nu=function(){var e=Date.now();return function(t){var n=Date.now();n-e>16?(e=n,t(n)):setTimeout(function(){Nu(t)},0)}}(),Xp=function(t){return clearTimeout(t)},V_=typeof window<"u"?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||Nu:global.requestAnimationFrame||Nu,W_=typeof window<"u"?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||Xp:global.cancelAnimationFrame||Xp,K_=function(t){return console&&typeof console.warn=="function"&&console.warn(t)},ni=null,Y_=function(t){ni&&W_(ni),t.defer?ni=V_(function(){Jp(t,function(){ni=null})}):(Jp(t),ni=null)},Jp=function(t,n){var r=t.baseTag,o=t.bodyAttributes,i=t.htmlAttributes,a=t.linkTags,l=t.metaTags,s=t.noscriptTags,u=t.onChangeClientState,f=t.scriptTags,c=t.styleTags,d=t.title,p=t.titleAttributes;Pu(q.BODY,o),Pu(q.HTML,i),G_(d,p);var w={baseTag:Vr(q.BASE,r),linkTags:Vr(q.LINK,a),metaTags:Vr(q.META,l),noscriptTags:Vr(q.NOSCRIPT,s),scriptTags:Vr(q.SCRIPT,f),styleTags:Vr(q.STYLE,c)},m={},C={};Object.keys(w).forEach(function(v){var g=w[v],x=g.newTags,E=g.oldTags;x.length&&(m[v]=x),E.length&&(C[v]=w[v].oldTags)}),n&&n(),u(t,m,C)},G1=function(t){return Array.isArray(t)?t.join(""):t},G_=function(t,n){typeof t<"u"&&document.title!==t&&(document.title=G1(t)),Pu(q.TITLE,n)},Pu=function(t,n){var r=document.getElementsByTagName(t)[0];if(r){for(var o=r.getAttribute(Ht),i=o?o.split(","):[],a=[].concat(i),l=Object.keys(n),s=0;s=0;d--)r.removeAttribute(a[d]);i.length===a.length?r.removeAttribute(Ht):r.getAttribute(Ht)!==l.join(",")&&r.setAttribute(Ht,l.join(","))}},Vr=function(t,n){var r=document.head||document.querySelector(q.HEAD),o=r.querySelectorAll(t+"["+Ht+"]"),i=Array.prototype.slice.call(o),a=[],l=void 0;return n&&n.length&&n.forEach(function(s){var u=document.createElement(t);for(var f in s)if(s.hasOwnProperty(f))if(f===Ce.INNER_HTML)u.innerHTML=s.innerHTML;else if(f===Ce.CSS_TEXT)u.styleSheet?u.styleSheet.cssText=s.cssText:u.appendChild(document.createTextNode(s.cssText));else{var c=typeof s[f]>"u"?"":s[f];u.setAttribute(f,c)}u.setAttribute(Ht,"true"),i.some(function(d,p){return l=p,u.isEqualNode(d)})?i.splice(l,1):a.push(u)}),i.forEach(function(s){return s.parentNode.removeChild(s)}),a.forEach(function(s){return r.appendChild(s)}),{oldTags:i,newTags:a}},Q1=function(t){return Object.keys(t).reduce(function(n,r){var o=typeof t[r]<"u"?r+'="'+t[r]+'"':""+r;return n?n+" "+o:o},"")},Q_=function(t,n,r,o){var i=Q1(r),a=G1(n);return i?"<"+t+" "+Ht+'="true" '+i+">"+Ru(a,o)+"":"<"+t+" "+Ht+'="true">'+Ru(a,o)+""},Z_=function(t,n,r){return n.reduce(function(o,i){var a=Object.keys(i).filter(function(u){return!(u===Ce.INNER_HTML||u===Ce.CSS_TEXT)}).reduce(function(u,f){var c=typeof i[f]>"u"?f:f+'="'+Ru(i[f],r)+'"';return u?u+" "+c:c},""),l=i.innerHTML||i.cssText||"",s=I_.indexOf(t)===-1;return o+"<"+t+" "+Ht+'="true" '+a+(s?"/>":">"+l+"")},"")},Z1=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(t).reduce(function(r,o){return r[Rl[o]||o]=t[o],r},n)},X_=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(t).reduce(function(r,o){return r[L_[o]||o]=t[o],r},n)},J_=function(t,n,r){var o,i=(o={key:n},o[Ht]=!0,o),a=Z1(r,i);return[Z.createElement(q.TITLE,a,n)]},q_=function(t,n){return n.map(function(r,o){var i,a=(i={key:o},i[Ht]=!0,i);return Object.keys(r).forEach(function(l){var s=Rl[l]||l;if(s===Ce.INNER_HTML||s===Ce.CSS_TEXT){var u=r.innerHTML||r.cssText;a.dangerouslySetInnerHTML={__html:u}}else a[s]=r[l]}),Z.createElement(t,a)})},ln=function(t,n,r){switch(t){case q.TITLE:return{toComponent:function(){return J_(t,n.title,n.titleAttributes)},toString:function(){return Q_(t,n.title,n.titleAttributes,r)}};case gr.BODY:case gr.HTML:return{toComponent:function(){return Z1(n)},toString:function(){return Q1(n)}};default:return{toComponent:function(){return q_(t,n)},toString:function(){return Z_(t,n,r)}}}},X1=function(t){var n=t.baseTag,r=t.bodyAttributes,o=t.encode,i=t.htmlAttributes,a=t.linkTags,l=t.metaTags,s=t.noscriptTags,u=t.scriptTags,f=t.styleTags,c=t.title,d=c===void 0?"":c,p=t.titleAttributes;return{base:ln(q.BASE,n,o),bodyAttributes:ln(gr.BODY,r,o),htmlAttributes:ln(gr.HTML,i,o),link:ln(q.LINK,a,o),meta:ln(q.META,l,o),noscript:ln(q.NOSCRIPT,s,o),script:ln(q.SCRIPT,u,o),style:ln(q.STYLE,f,o),title:ln(q.TITLE,{title:d,titleAttributes:p},o)}},eS=function(t){var n,r;return r=n=function(o){j_(i,o);function i(){return M_(this,i),F_(this,o.apply(this,arguments))}return i.prototype.shouldComponentUpdate=function(l){return!$_(this.props,l)},i.prototype.mapNestedChildrenToProps=function(l,s){if(!s)return null;switch(l.type){case q.SCRIPT:case q.NOSCRIPT:return{innerHTML:s};case q.STYLE:return{cssText:s}}throw new Error("<"+l.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},i.prototype.flattenArrayTypeChildren=function(l){var s,u=l.child,f=l.arrayTypeChildren,c=l.newChildProps,d=l.nestedChildren;return dt({},f,(s={},s[u.type]=[].concat(f[u.type]||[],[dt({},c,this.mapNestedChildrenToProps(u,d))]),s))},i.prototype.mapObjectTypeChildren=function(l){var s,u,f=l.child,c=l.newProps,d=l.newChildProps,p=l.nestedChildren;switch(f.type){case q.TITLE:return dt({},c,(s={},s[f.type]=p,s.titleAttributes=dt({},d),s));case q.BODY:return dt({},c,{bodyAttributes:dt({},d)});case q.HTML:return dt({},c,{htmlAttributes:dt({},d)})}return dt({},c,(u={},u[f.type]=dt({},d),u))},i.prototype.mapArrayTypeChildrenToProps=function(l,s){var u=dt({},s);return Object.keys(l).forEach(function(f){var c;u=dt({},u,(c={},c[f]=l[f],c))}),u},i.prototype.warnOnInvalidChildren=function(l,s){return!0},i.prototype.mapChildrenToProps=function(l,s){var u=this,f={};return Z.Children.forEach(l,function(c){if(!(!c||!c.props)){var d=c.props,p=d.children,w=Zp(d,["children"]),m=X_(w);switch(u.warnOnInvalidChildren(c,p),c.type){case q.LINK:case q.META:case q.NOSCRIPT:case q.SCRIPT:case q.STYLE:f=u.flattenArrayTypeChildren({child:c,arrayTypeChildren:f,newChildProps:m,nestedChildren:p});break;default:s=u.mapObjectTypeChildren({child:c,newProps:s,newChildProps:m,nestedChildren:p});break}}}),s=this.mapArrayTypeChildrenToProps(f,s),s},i.prototype.render=function(){var l=this.props,s=l.children,u=Zp(l,["children"]),f=dt({},u);return s&&(f=this.mapChildrenToProps(s,f)),Z.createElement(t,f)},D_(i,null,[{key:"canUseDOM",set:function(l){t.canUseDOM=l}}]),i}(Z.Component),n.propTypes={base:xe.object,bodyAttributes:xe.object,children:xe.oneOfType([xe.arrayOf(xe.node),xe.node]),defaultTitle:xe.string,defer:xe.bool,encodeSpecialCharacters:xe.bool,htmlAttributes:xe.object,link:xe.arrayOf(xe.object),meta:xe.arrayOf(xe.object),noscript:xe.arrayOf(xe.object),onChangeClientState:xe.func,script:xe.arrayOf(xe.object),style:xe.arrayOf(xe.object),title:xe.string,titleAttributes:xe.object,titleTemplate:xe.string},n.defaultProps={defer:!0,encodeSpecialCharacters:!0},n.peek=t.peek,n.rewind=function(){var o=t.rewind();return o||(o=X1({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),o},r},tS=function(){return null},nS=x_(H_,Y_,X1)(tS),Au=eS(nS);Au.renderStatic=Au.rewind;var nc="vocs_Anchor",rS="vocs_Autolink";function oS(e){const{pathname:t}=Re();return y.jsx("a",{...e,className:I(e.className,rS),href:`${t}${e.href}`})}function iS(e){const{children:t,href:n}=e,{pathname:r}=Re();return t&&typeof t=="object"&&"props"in t&&t.props["data-autolink-icon"]?y.jsx(oS,{className:I(e.className,nc),...e}):n!=null&&n.match(/^#/)?y.jsx("a",{className:I(e.className,nc),...e,href:`${r}${n}`}):y.jsx(rn,{className:I(e.className,nc),...e})}var aS="vocs_Callout_danger",lS="vocs_Callout_info",sS="vocs_Callout_note",J1="vocs_Callout",cS="vocs_Callout_success",uS="vocs_Callout_tip",fS="vocs_Callout_warning";const dS=Object.freeze(Object.defineProperty({__proto__:null,danger:aS,info:lS,note:sS,root:J1,success:cS,tip:uS,warning:fS},Symbol.toStringTag,{value:"Module"}));function hS({className:e,children:t,type:n}){return y.jsx("aside",{className:I(e,J1,dS[n]),children:t})}var pS="vocs_Aside";function vS(e){const t=I(e.className,pS);return"data-callout"in e?y.jsx(hS,{className:t,type:e["data-callout"],children:e.children}):y.jsx("aside",{...e,className:t})}var mS="vocs_Blockquote";function gS(e){return y.jsx("blockquote",{...e,className:I(e.className,mS)})}var yS="vocs_Code";function wS(e){const t=xS(e.children);return y.jsx("code",{...e,className:I(e.className,yS),children:t})}function xS(e){return Array.isArray(e)?e.map((t,n)=>{var r,o,i;return t.props&&"data-line"in t.props&&typeof t.props.children=="string"&&t.props.children.trim()===""&&((i=(o=(r=e[n+1])==null?void 0:r.props)==null?void 0:o.className)!=null&&i.includes("twoslash-tag-line"))?null:t}).filter(Boolean):e}var CS="vocs_Details";function ES(e){return y.jsx("details",{...e,className:I(e.className,CS)})}var _S="vocs_Authors_authors",SS="vocs_Authors_link",bS="vocs_Authors",qp="vocs_Authors_separator";function q1(e){const{frontmatter:t}=Nr(),{authors:n=t==null?void 0:t.authors,date:r=t==null?void 0:t.date}=e,o=h.useMemo(()=>{if(n)return Array.isArray(n)?n:n.split(",").map(a=>a.trim())},[n]),i=h.useMemo(()=>r?new Date(r).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"}):null,[r]);return y.jsxs("div",{className:bS,children:[i,o&&(i?" by ":"By "),y.jsx("span",{className:_S,children:o==null?void 0:o.map((a,l)=>{const{text:s,url:u}=$S(a);return y.jsxs(h.Fragment,{children:[u?y.jsx("a",{className:SS,href:u,target:"_blank",rel:"noopener noreferrer",children:s}):s,ly.jsxs(h.Fragment,{children:[y.jsx("div",{className:RS,children:y.jsxs(Gn,{to:e.path,children:[y.jsx("h2",{className:AS,children:e.title}),y.jsx(q1,{authors:e.authors,date:e.date}),y.jsxs("p",{className:TS,children:[e.description," ",y.jsx("span",{className:NS,children:"[→]"})]})]})}),ty.jsxs(h.Fragment,{children:[y.jsx("div",{className:BS,children:t.name}),t.items.map((r,o)=>{var i;return y.jsx("div",{className:FS,style:Yt({[OS]:r.length.toString(),[MS]:`${((i=t.height)==null?void 0:i.toString())??"40"}px`}),children:r.map((a,l)=>y.jsx(rn,{className:I(IS,a?zS:void 0),hideExternalIcon:!0,href:a==null?void 0:a.link,variant:"styleless",children:y.jsx("img",{className:DS,src:a==null?void 0:a.image,alt:a==null?void 0:a.name})},l))},o)})]},n))})}var HS="var(--vocs_AutolinkIcon_iconUrl)",VS="vocs_AutolinkIcon";function WS(e){const{basePath:t}=Ke(),n=t;return y.jsx("div",{...e,className:I(e.className,VS),style:Yt({[HS]:`url(${n}/.vocs/icons/link.svg)`})})}const rc="rovingFocusGroup.onEntryFocus",KS={bubbles:!1,cancelable:!0},vd="RovingFocusGroup",[Lu,ey,YS]=Zl(vd),[GS,ty]=En(vd,[YS]),[QS,ZS]=GS(vd),XS=h.forwardRef((e,t)=>h.createElement(Lu.Provider,{scope:e.__scopeRovingFocusGroup},h.createElement(Lu.Slot,{scope:e.__scopeRovingFocusGroup},h.createElement(JS,Y({},e,{ref:t}))))),JS=h.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:i,currentTabStopId:a,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:s,onEntryFocus:u,...f}=e,c=h.useRef(null),d=Ue(t,c),p=Ql(i),[w=null,m]=or({prop:a,defaultProp:l,onChange:s}),[C,v]=h.useState(!1),g=lt(u),x=ey(n),E=h.useRef(!1),[S,$]=h.useState(0);return h.useEffect(()=>{const _=c.current;if(_)return _.addEventListener(rc,g),()=>_.removeEventListener(rc,g)},[g]),h.createElement(QS,{scope:n,orientation:r,dir:p,loop:o,currentTabStopId:w,onItemFocus:h.useCallback(_=>m(_),[m]),onItemShiftTab:h.useCallback(()=>v(!0),[]),onFocusableItemAdd:h.useCallback(()=>$(_=>_+1),[]),onFocusableItemRemove:h.useCallback(()=>$(_=>_-1),[])},h.createElement(fe.div,Y({tabIndex:C||S===0?-1:0,"data-orientation":r},f,{ref:d,style:{outline:"none",...e.style},onMouseDown:le(e.onMouseDown,()=>{E.current=!0}),onFocus:le(e.onFocus,_=>{const b=!E.current;if(_.target===_.currentTarget&&b&&!C){const T=new CustomEvent(rc,KS);if(_.currentTarget.dispatchEvent(T),!T.defaultPrevented){const P=x().filter(F=>F.focusable),M=P.find(F=>F.active),O=P.find(F=>F.id===w),R=[M,O,...P].filter(Boolean).map(F=>F.ref.current);ny(R)}}E.current=!1}),onBlur:le(e.onBlur,()=>v(!1))})))}),qS="RovingFocusGroupItem",e9=h.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:i,...a}=e,l=on(),s=i||l,u=ZS(qS,n),f=u.currentTabStopId===s,c=ey(n),{onFocusableItemAdd:d,onFocusableItemRemove:p}=u;return h.useEffect(()=>{if(r)return d(),()=>p()},[r,d,p]),h.createElement(Lu.ItemSlot,{scope:n,id:s,focusable:r,active:o},h.createElement(fe.span,Y({tabIndex:f?0:-1,"data-orientation":u.orientation},a,{ref:t,onMouseDown:le(e.onMouseDown,w=>{r?u.onItemFocus(s):w.preventDefault()}),onFocus:le(e.onFocus,()=>u.onItemFocus(s)),onKeyDown:le(e.onKeyDown,w=>{if(w.key==="Tab"&&w.shiftKey){u.onItemShiftTab();return}if(w.target!==w.currentTarget)return;const m=r9(w,u.orientation,u.dir);if(m!==void 0){w.preventDefault();let v=c().filter(g=>g.focusable).map(g=>g.ref.current);if(m==="last")v.reverse();else if(m==="prev"||m==="next"){m==="prev"&&v.reverse();const g=v.indexOf(w.currentTarget);v=u.loop?o9(v,g+1):v.slice(g+1)}setTimeout(()=>ny(v))}})})))}),t9={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function n9(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function r9(e,t,n){const r=n9(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return t9[r]}function ny(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function o9(e,t){return e.map((n,r)=>e[(t+r)%e.length])}const i9=XS,a9=e9,ry="Tabs",[l9,h$]=En(ry,[ty]),oy=ty(),[s9,md]=l9(ry),c9=h.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:o,defaultValue:i,orientation:a="horizontal",dir:l,activationMode:s="automatic",...u}=e,f=Ql(l),[c,d]=or({prop:r,onChange:o,defaultProp:i});return h.createElement(s9,{scope:n,baseId:on(),value:c,onValueChange:d,orientation:a,dir:f,activationMode:s},h.createElement(fe.div,Y({dir:f,"data-orientation":a},u,{ref:t})))}),u9="TabsList",f9=h.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...o}=e,i=md(u9,n),a=oy(n);return h.createElement(i9,Y({asChild:!0},a,{orientation:i.orientation,dir:i.dir,loop:r}),h.createElement(fe.div,Y({role:"tablist","aria-orientation":i.orientation},o,{ref:t})))}),d9="TabsTrigger",h9=h.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:o=!1,...i}=e,a=md(d9,n),l=oy(n),s=iy(a.baseId,r),u=ay(a.baseId,r),f=r===a.value;return h.createElement(a9,Y({asChild:!0},l,{focusable:!o,active:f}),h.createElement(fe.button,Y({type:"button",role:"tab","aria-selected":f,"aria-controls":u,"data-state":f?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:s},i,{ref:t,onMouseDown:le(e.onMouseDown,c=>{!o&&c.button===0&&c.ctrlKey===!1?a.onValueChange(r):c.preventDefault()}),onKeyDown:le(e.onKeyDown,c=>{[" ","Enter"].includes(c.key)&&a.onValueChange(r)}),onFocus:le(e.onFocus,()=>{const c=a.activationMode!=="manual";!f&&!o&&c&&a.onValueChange(r)})})))}),p9="TabsContent",v9=h.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:o,children:i,...a}=e,l=md(p9,n),s=iy(l.baseId,r),u=ay(l.baseId,r),f=r===l.value,c=h.useRef(f);return h.useEffect(()=>{const d=requestAnimationFrame(()=>c.current=!1);return()=>cancelAnimationFrame(d)},[]),h.createElement(_n,{present:o||f},({present:d})=>h.createElement(fe.div,Y({"data-state":f?"active":"inactive","data-orientation":l.orientation,role:"tabpanel","aria-labelledby":s,hidden:!d,id:u,tabIndex:0},a,{ref:t,style:{...e.style,animationDuration:c.current?"0s":void 0}}),d&&i))});function iy(e,t){return`${e}-trigger-${t}`}function ay(e,t){return`${e}-content-${t}`}const m9=c9,g9=f9,y9=h9,w9=v9;var x9="vocs_Tabs_content",C9="vocs_Tabs_list",E9="vocs_Tabs",_9="vocs_Tabs_trigger";function S9(e){return y.jsx(m9,{...e,className:I(e.className,E9)})}function b9(e){return y.jsx(g9,{...e,className:I(e.className,C9)})}function $9(e){return y.jsx(y9,{...e,className:I(e.className,_9)})}function T9(e){return y.jsx(w9,{...e,className:I(e.className,x9)})}var k9="vocs_CodeGroup";function R9({children:e}){if(!Array.isArray(e))return null;const t=e.map(n=>{const r=n.props["data-title"]?n:n.props.children,{props:o}=r,i=o["data-title"],a=o.children;return{title:i,content:a}});return y.jsxs(S9,{className:k9,defaultValue:t[0].title,children:[y.jsx(b9,{"aria-label":"Code group",children:t.map(({title:n},r)=>y.jsx($9,{value:n||r.toString(),children:n},n||r.toString()))}),t.map(({title:n,content:r},o)=>{var a,l;const i=(l=(a=r.props)==null?void 0:a.className)==null?void 0:l.includes("shiki");return y.jsx(T9,{"data-shiki":i,value:n||o.toString(),children:r},n||o.toString())})]})}var N9="vocs_Div",P9="vocs_Step_content",A9="vocs_Step",ly="vocs_Step_title",L9="vocs_H2";function sy(e){return y.jsx(Ao,{...e,className:I(e.className,L9),level:2})}var I9="vocs_H3";function cy(e){return y.jsx(Ao,{...e,className:I(e.className,I9),level:3})}var O9="vocs_H4";function uy(e){return y.jsx(Ao,{...e,className:I(e.className,O9),level:4})}var M9="vocs_H5";function fy(e){return y.jsx(Ao,{...e,className:I(e.className,M9),level:5})}var D9="vocs_H6";function dy(e){return y.jsx(Ao,{...e,className:I(e.className,D9),level:6})}function j9({children:e,className:t,title:n,titleLevel:r=2}){const o=(()=>{if(r===2)return sy;if(r===3)return cy;if(r===4)return uy;if(r===5)return fy;if(r===6)return dy;throw new Error("Invalid.")})();return y.jsxs("div",{className:I(t,A9),children:[typeof n=="string"?y.jsx(o,{className:ly,children:n}):n,y.jsx("div",{className:P9,children:e})]})}var F9="vocs_Steps";function z9({children:e,className:t}){return y.jsx("div",{className:I(t,F9),children:e})}function B9({children:e}){return Array.isArray(e)?y.jsx(z9,{children:e.map(({props:t},n)=>{const[r,...o]=Array.isArray(t.children)?t.children:[t.children];return y.jsx(j9,{title:h.cloneElement(r,{className:ly}),children:o},n)})}):null}var U9="vocs_Subtitle";function H9({children:e}){return y.jsx("div",{className:U9,role:"doc-subtitle",children:e})}function V9(e){const{layout:t}=Pr(),n=I(e.className,N9);return e.className==="code-group"?y.jsx(R9,{...e,className:n}):"data-authors"in e?y.jsx(q1,{}):"data-blog-posts"in e?y.jsx(LS,{}):"data-sponsors"in e?y.jsx(US,{}):"data-autolink-icon"in e&&t==="docs"?y.jsx(WS,{...e,className:n}):"data-vocs-steps"in e?y.jsx(B9,{...e,className:n}):e.role==="doc-subtitle"?y.jsx(H9,{...e}):y.jsx("div",{...e,className:n})}var W9="vocs_Figcaption";function K9(e){const t=I(e.className,W9);return y.jsx("figcaption",{...e,className:t})}var Y9="vocs_Figure";function G9(e){const t=I(e.className,Y9);return y.jsx("figure",{...e,className:t})}var Q9="vocs_Header";function Z9(e){return y.jsx("header",{...e,className:I(e.className,Q9)})}var X9="vocs_HorizontalRule";function J9(e){return y.jsx("hr",{...e,className:I(e.className,X9)})}var q9="vocs_List_ordered",eb="vocs_List",tb="vocs_List_unordered";function tv({ordered:e,...t}){const n=e?"ol":"ul";return y.jsx(n,{...t,className:I(t.className,eb,e?q9:tb)})}var nb="vocs_ListItem";function rb(e){return y.jsx("li",{...e,className:I(e.className,nb)})}function ob(){const e=h.useRef(null),[t,n]=h.useState(!1);h.useEffect(()=>{if(!t)return;const o=setTimeout(()=>n(!1),1e3);return()=>clearTimeout(o)},[t]);function r(){var a;n(!0);const o=(a=e.current)==null?void 0:a.cloneNode(!0),i=o==null?void 0:o.querySelectorAll("button,.line.diff.remove,.twoslash-popup-info-hover,.twoslash-popup-info,.twoslash-meta-line,.twoslash-tag-line");for(const l of i??[])l.remove();navigator.clipboard.writeText(o==null?void 0:o.textContent)}return{copied:t,copy:r,ref:e}}var ib="vocs_CopyButton";function ab(){return y.jsxs("svg",{width:"100%",height:"100%",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 68 67",children:[y.jsx("title",{children:"Checkmark"}),y.jsx("path",{fill:"currentColor",d:"M26.175 66.121c1.904 0 3.418-.83 4.492-2.49L66.263 7.332c.83-1.27 1.123-2.295 1.123-3.32 0-2.393-1.563-4.004-4.004-4.004-1.758 0-2.734.586-3.809 2.295L25.98 56.209 8.304 32.381c-1.123-1.514-2.198-2.149-3.809-2.149-2.441 0-4.2 1.71-4.2 4.15 0 1.026.44 2.15 1.27 3.224l19.971 25.927c1.367 1.758 2.734 2.588 4.639 2.588Z"})]})}function lb(){return y.jsxs("svg",{width:"100%",height:"100%",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 82 82",children:[y.jsx("title",{children:"Copy"}),y.jsx("path",{fill:"currentColor",d:"M12.451 63.281h38.38c8.3 0 12.45-4.053 12.45-12.256v-38.77C63.281 4.054 59.131 0 50.831 0H12.45C4.101 0 0 4.053 0 12.256v38.77C0 59.227 4.102 63.28 12.451 63.28Zm.098-7.031c-3.516 0-5.518-1.904-5.518-5.615V12.647c0-3.711 2.002-5.616 5.518-5.616h38.183c3.516 0 5.518 1.905 5.518 5.615v37.989c0 3.71-2.002 5.615-5.518 5.615H12.55Z"}),y.jsx("path",{stroke:"currentColor",strokeWidth:"6.75px",d:"M69.385 78.266h-38.38c-3.679 0-5.782-.894-6.987-2.081-1.196-1.178-2.088-3.219-2.088-6.8v-38.77c0-3.581.892-5.622 2.088-6.8 1.205-1.187 3.308-2.08 6.988-2.08h38.379c3.65 0 5.758.89 6.973 2.084 1.203 1.182 2.103 3.225 2.103 6.796v38.77c0 3.57-.9 5.614-2.103 6.796-1.215 1.193-3.323 2.085-6.973 2.085Z"})]})}function sb({copy:e,copied:t}){return y.jsx("button",{className:ib,onClick:e,type:"button",children:t?y.jsx(ct,{label:"Copied",size:"14px",icon:ab}):y.jsx(ct,{label:"Copy",size:"18px",icon:lb})})}var cb="vocs_CodeBlock";function ub(e){return y.jsx("div",{...e,className:I(e.className,cb)})}function fb(){return y.jsxs("svg",{width:"100%",height:"100%",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 94 99",fill:"none",children:[y.jsx("title",{children:"File"}),y.jsx("rect",{width:"77px",height:"89px",x:"8px",y:"3px",stroke:"currentColor",strokeWidth:"6px",rx:"7px"}),y.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:"6px",d:"M25 22h43M25 35h43M25 48h22"})]})}function db(){return y.jsxs("svg",{width:"100%",height:"100%",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 79 95",fill:"none",children:[y.jsx("title",{children:"Terminal"}),y.jsx("path",{fill:"currentColor",d:"M38.281 34.033c0-1.074-.39-2.05-1.22-2.88L6.885 1.171C6.152.39 5.175 0 4.053 0 1.758 0 0 1.709 0 4.004c0 1.074.488 2.1 1.172 2.88l27.295 27.15L1.172 61.181C.488 61.962 0 62.939 0 64.062c0 2.295 1.758 4.004 4.053 4.004 1.123 0 2.1-.39 2.832-1.172l30.176-29.98c.83-.83 1.22-1.807 1.22-2.88Z"}),y.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:"8px",d:"M36 75h55"})]})}var hb="vocs_CodeTitle";function pb({children:e,className:t,language:n,...r}){return y.jsxs("div",{...r,className:I(t,hb),children:[n==="bash"?y.jsx(ct,{label:"Terminal",size:"14px",icon:db,style:{marginTop:3}}):e.match(/\.(.*)$/)?y.jsx(ct,{label:"File",size:"14px",icon:fb,style:{marginTop:1}}):null,e]})}var vb="vocs_Pre",mb="vocs_Pre_wrapper";function gb({children:e,className:t,...n}){const{copied:r,copy:o,ref:i}=ob();function a(u){return!u||typeof u!="object"?u:"props"in u?{...u,props:{...u.props,children:Array.isArray(u.props.children)?u.props.children.map(a):a(u.props.children)}}:u}const l=h.useMemo(()=>a(e),[e]);return(u=>t!=null&&t.includes("shiki")?y.jsxs(ub,{children:[n["data-title"]&&y.jsx(pb,{language:n["data-lang"],children:n["data-title"]}),u]}):u)(y.jsx("div",{className:I(mb),children:y.jsxs("pre",{ref:i,...n,className:I(t,vb),children:["data-language"in n&&y.jsx(sb,{copied:r,copy:o}),l]})}))}var yb="vocs_Footnotes";function wb(e){return y.jsx("section",{...e,className:I(e.className,yb)})}var nv="vocs_Section";function xb(e){return"data-footnotes"in e?y.jsx(wb,{...e,className:I(e.className,nv)}):y.jsx("section",{...e,className:I(e.className,nv)})}var rv="vocs_Span";function Qa(e,t){if(!e||!t)return!1;const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&bu(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function Iu(e,t){const n=["mouse","pen"];return n.push("",void 0),n.includes(e)}function Pa(e){return(e==null?void 0:e.ownerDocument)||document}function Cb(e){return"composedPath"in e?e.composedPath()[0]:e.target}const hy={...Uu},Eb=hy.useInsertionEffect,_b=Eb||(e=>e());function Sb(e){const t=h.useRef(()=>{});return _b(()=>{t.current=e}),h.useCallback(function(){for(var n=arguments.length,r=new Array(n),o=0;o"floating-ui-"+Math.random().toString(36).slice(2,6)+bb++;function $b(){const[e,t]=h.useState(()=>ov?iv():void 0);return $o(()=>{e==null&&t(iv())},[]),h.useEffect(()=>{ov=!0},[]),e}const Tb=hy.useId,py=Tb||$b,kb=h.forwardRef(function(t,n){const{context:{placement:r,elements:{floating:o},middlewareData:{arrow:i}},width:a=14,height:l=7,tipRadius:s=0,strokeWidth:u=0,staticOffset:f,stroke:c,d,style:{transform:p,...w}={},...m}=t,C=py();if(!o)return null;const v=u*2,g=v/2,x=a/2*(s/-8+1),E=l/2*s/4,[S,$]=r.split("-"),_=y1.isRTL(o),b=!!d,T=S==="top"||S==="bottom",P=f&&$==="end"?"bottom":"top";let M=f&&$==="end"?"right":"left";f&&_&&(M=$==="end"?"left":"right");const O=(i==null?void 0:i.x)!=null?f||i.x:"",j=(i==null?void 0:i.y)!=null?f||i.y:"",R=d||"M0,0"+(" H"+a)+(" L"+(a-x)+","+(l-E))+(" Q"+a/2+","+l+" "+x+","+(l-E))+" Z",F={top:b?"rotate(180deg)":"",left:b?"rotate(90deg)":"rotate(-90deg)",bottom:b?"":"rotate(180deg)",right:b?"rotate(-90deg)":"rotate(90deg)"}[S];return h.createElement("svg",Ou({},m,{"aria-hidden":!0,ref:n,width:b?a:a+v,height:a,viewBox:"0 0 "+a+" "+(l>a?l:a),style:{position:"absolute",pointerEvents:"none",[M]:O,[P]:j,[S]:T||b?"100%":"calc(100% - "+v/2+"px)",transform:""+F+(p??""),...w}}),v>0&&h.createElement("path",{clipPath:"url(#"+C+")",fill:"none",stroke:c,strokeWidth:v+(d?0:1),d:R}),h.createElement("path",{stroke:v&&!d?m.fill:"none",d:R}),h.createElement("clipPath",{id:C},h.createElement("rect",{x:-g,y:g*(b?-1:1),width:a+v,height:a})))});function Rb(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(o=>o(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,((r=e.get(t))==null?void 0:r.filter(o=>o!==n))||[])}}}const Nb=h.createContext(null),Pb=h.createContext(null),vy=()=>{var e;return((e=h.useContext(Nb))==null?void 0:e.id)||null},my=()=>h.useContext(Pb);function Ab(e){return"data-floating-ui-"+e}function av(e){const t=h.useRef(e);return $o(()=>{t.current=e}),t}const lv=Ab("safe-polygon");function oc(e,t,n){return n&&!Iu(n)?0:typeof e=="number"?e:e==null?void 0:e[t]}function Lb(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,dataRef:o,events:i,elements:{domReference:a,floating:l},refs:s}=e,{enabled:u=!0,delay:f=0,handleClose:c=null,mouseOnly:d=!1,restMs:p=0,move:w=!0}=t,m=my(),C=vy(),v=av(c),g=av(f),x=h.useRef(),E=h.useRef(-1),S=h.useRef(),$=h.useRef(-1),_=h.useRef(!0),b=h.useRef(!1),T=h.useRef(()=>{}),P=h.useCallback(()=>{var R;const F=(R=o.current.openEvent)==null?void 0:R.type;return(F==null?void 0:F.includes("mouse"))&&F!=="mousedown"},[o]);h.useEffect(()=>{if(!u)return;function R(F){let{open:W}=F;W||(clearTimeout(E.current),clearTimeout($.current),_.current=!0)}return i.on("openchange",R),()=>{i.off("openchange",R)}},[u,i]),h.useEffect(()=>{if(!u||!v.current||!n)return;function R(W){P()&&r(!1,W,"hover")}const F=Pa(l).documentElement;return F.addEventListener("mouseleave",R),()=>{F.removeEventListener("mouseleave",R)}},[l,n,r,u,v,P]);const M=h.useCallback(function(R,F,W){F===void 0&&(F=!0),W===void 0&&(W="hover");const H=oc(g.current,"close",x.current);H&&!S.current?(clearTimeout(E.current),E.current=window.setTimeout(()=>r(!1,R,W),H)):F&&(clearTimeout(E.current),r(!1,R,W))},[g,r]),O=h.useCallback(()=>{T.current(),S.current=void 0},[]),j=h.useCallback(()=>{if(b.current){const R=Pa(s.floating.current).body;R.style.pointerEvents="",R.removeAttribute(lv),b.current=!1}},[s]);return h.useEffect(()=>{if(!u)return;function R(){return o.current.openEvent?["click","mousedown"].includes(o.current.openEvent.type):!1}function F(A){if(clearTimeout(E.current),_.current=!1,d&&!Iu(x.current)||p>0&&!oc(g.current,"open"))return;const B=oc(g.current,"open",x.current);B?E.current=window.setTimeout(()=>{r(!0,A,"hover")},B):r(!0,A,"hover")}function W(A){if(R())return;T.current();const B=Pa(l);if(clearTimeout($.current),v.current){n||clearTimeout(E.current),S.current=v.current({...e,tree:m,x:A.clientX,y:A.clientY,onClose(){j(),O(),M(A,!0,"safe-polygon")}});const te=S.current;B.addEventListener("mousemove",te),T.current=()=>{B.removeEventListener("mousemove",te)};return}(x.current==="touch"?!Qa(l,A.relatedTarget):!0)&&M(A)}function H(A){R()||v.current==null||v.current({...e,tree:m,x:A.clientX,y:A.clientY,onClose(){j(),O(),M(A)}})(A)}if(Je(a)){const A=a;return n&&A.addEventListener("mouseleave",H),l==null||l.addEventListener("mouseleave",H),w&&A.addEventListener("mousemove",F,{once:!0}),A.addEventListener("mouseenter",F),A.addEventListener("mouseleave",W),()=>{n&&A.removeEventListener("mouseleave",H),l==null||l.removeEventListener("mouseleave",H),w&&A.removeEventListener("mousemove",F),A.removeEventListener("mouseenter",F),A.removeEventListener("mouseleave",W)}}},[a,l,u,e,d,p,w,M,O,j,r,n,m,g,v,o]),$o(()=>{var R;if(u&&n&&(R=v.current)!=null&&R.__options.blockPointerEvents&&P()){const W=Pa(l).body;if(W.setAttribute(lv,""),W.style.pointerEvents="none",b.current=!0,Je(a)&&l){var F;const H=a,A=m==null||(F=m.nodesRef.current.find(B=>B.id===C))==null||(F=F.context)==null?void 0:F.elements.floating;return A&&(A.style.pointerEvents=""),H.style.pointerEvents="auto",l.style.pointerEvents="auto",()=>{H.style.pointerEvents="",l.style.pointerEvents=""}}}},[u,n,C,l,a,m,v,P]),$o(()=>{n||(x.current=void 0,O(),j())},[n,O,j]),h.useEffect(()=>()=>{O(),clearTimeout(E.current),clearTimeout($.current),j()},[u,a,O,j]),h.useMemo(()=>{if(!u)return{};function R(F){x.current=F.pointerType}return{reference:{onPointerDown:R,onPointerEnter:R,onMouseMove(F){function W(){_.current||r(!0,F.nativeEvent,"hover")}d&&!Iu(x.current)||n||p===0||(clearTimeout($.current),x.current==="touch"?W():$.current=window.setTimeout(W,p))}},floating:{onMouseEnter(){clearTimeout(E.current)},onMouseLeave(F){M(F.nativeEvent,!1)}}}},[u,d,n,p,r,M])}function Ib(e,t){let n=e.filter(o=>{var i;return o.parentId===t&&((i=o.context)==null?void 0:i.open)}),r=n;for(;r.length;)r=e.filter(o=>{var i;return(i=r)==null?void 0:i.some(a=>{var l;return o.parentId===a.id&&((l=o.context)==null?void 0:l.open)})}),n=n.concat(r);return n}function Ob(e){var t;e===void 0&&(e={});const{open:n=!1,onOpenChange:r,nodeId:o}=e,[i,a]=h.useState(null),[l,s]=h.useState(null),f=((t=e.elements)==null?void 0:t.reference)||i;$o(()=>{f&&(m.current=f)},[f]);const c=_1({...e,elements:{...e.elements,...l&&{reference:l}}}),d=my(),p=vy()!=null,w=Sb((b,T,P)=>{C.current.openEvent=b?T:void 0,v.emit("openchange",{open:b,event:T,reason:P,nested:p}),r==null||r(b,T,P)}),m=h.useRef(null),C=h.useRef({}),v=h.useState(()=>Rb())[0],g=py(),x=h.useCallback(b=>{const T=Je(b)?{getBoundingClientRect:()=>b.getBoundingClientRect(),contextElement:b}:b;s(T),c.refs.setReference(T)},[c.refs]),E=h.useCallback(b=>{(Je(b)||b===null)&&(m.current=b,a(b)),(Je(c.refs.reference.current)||c.refs.reference.current===null||b!==null&&!Je(b))&&c.refs.setReference(b)},[c.refs]),S=h.useMemo(()=>({...c.refs,setReference:E,setPositionReference:x,domReference:m}),[c.refs,E,x]),$=h.useMemo(()=>({...c.elements,domReference:f}),[c.elements,f]),_=h.useMemo(()=>({...c,refs:S,elements:$,dataRef:C,nodeId:o,floatingId:g,events:v,open:n,onOpenChange:w}),[c,o,g,v,n,w,S,$]);return $o(()=>{const b=d==null?void 0:d.nodesRef.current.find(T=>T.id===o);b&&(b.context=_)}),h.useMemo(()=>({...c,context:_,refs:S,elements:$}),[c,S,$,_])}const sv="active",cv="selected";function ic(e,t,n){const r=new Map,o=n==="item";let i=e;if(o&&e){const{[sv]:a,[cv]:l,...s}=e;i=s}return{...n==="floating"&&{tabIndex:-1},...i,...t.map(a=>{const l=a?a[n]:null;return typeof l=="function"?e?l(e):null:l}).concat(e).reduce((a,l)=>(l&&Object.entries(l).forEach(s=>{let[u,f]=s;if(!(o&&[sv,cv].includes(u)))if(u.indexOf("on")===0){if(r.has(u)||r.set(u,[]),typeof f=="function"){var c;(c=r.get(u))==null||c.push(f),a[u]=function(){for(var d,p=arguments.length,w=new Array(p),m=0;mC(...w)).find(C=>C!==void 0)}}}else a[u]=f}),a),{})}}function Mb(e){e===void 0&&(e=[]);const t=e,n=h.useCallback(i=>ic(i,e,"reference"),t),r=h.useCallback(i=>ic(i,e,"floating"),t),o=h.useCallback(i=>ic(i,e,"item"),e.map(i=>i==null?void 0:i.item));return h.useMemo(()=>({getReferenceProps:n,getFloatingProps:r,getItemProps:o}),[n,r,o])}function uv(e,t){const[n,r]=e;let o=!1;const i=t.length;for(let a=0,l=i-1;a=r!=c>=r&&n<=(f-s)*(r-u)/(c-u)+s&&(o=!o)}return o}function Db(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}function jb(e){e===void 0&&(e={});const{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:r=!0}=e;let o,i=!1,a=null,l=null,s=performance.now();function u(c,d){const p=performance.now(),w=p-s;if(a===null||l===null||w===0)return a=c,l=d,s=p,null;const m=c-a,C=d-l,g=Math.sqrt(m*m+C*C)/w;return a=c,l=d,s=p,g}const f=c=>{let{x:d,y:p,placement:w,elements:m,onClose:C,nodeId:v,tree:g}=c;return function(E){function S(){clearTimeout(o),C()}if(clearTimeout(o),!m.domReference||!m.floating||w==null||d==null||p==null)return;const{clientX:$,clientY:_}=E,b=[$,_],T=Cb(E),P=E.type==="mouseleave",M=Qa(m.floating,T),O=Qa(m.domReference,T),j=m.domReference.getBoundingClientRect(),R=m.floating.getBoundingClientRect(),F=w.split("-")[0],W=d>R.right-R.width/2,H=p>R.bottom-R.height/2,A=Db(b,j),B=R.width>j.width,G=R.height>j.height,te=(B?j:R).left,ae=(B?j:R).right,je=(G?j:R).top,Oe=(G?j:R).bottom;if(M&&(i=!0,!P))return;if(O&&(i=!1),O&&!P){i=!0;return}if(P&&Je(E.relatedTarget)&&Qa(m.floating,E.relatedTarget)||g&&Ib(g.nodesRef.current,v).some(Ne=>{let{context:de}=Ne;return de==null?void 0:de.open}))return;if(F==="top"&&p>=j.bottom-1||F==="bottom"&&p<=j.top+1||F==="left"&&d>=j.right-1||F==="right"&&d<=j.left+1)return S();let ge=[];switch(F){case"top":ge=[[te,j.top+1],[te,R.bottom-1],[ae,R.bottom-1],[ae,j.top+1]];break;case"bottom":ge=[[te,R.top+1],[te,j.bottom-1],[ae,j.bottom-1],[ae,R.top+1]];break;case"left":ge=[[R.right-1,Oe],[R.right-1,je],[j.left+1,je],[j.left+1,Oe]];break;case"right":ge=[[j.right-1,Oe],[j.right-1,je],[R.left+1,je],[R.left+1,Oe]];break}function ye(Ne){let[de,Se]=Ne;switch(F){case"top":{const Ot=[B?de+t/2:W?de+t*4:de-t*4,Se+t+1],Mt=[B?de-t/2:W?de+t*4:de-t*4,Se+t+1],Pe=[[R.left,W||B?R.bottom-t:R.top],[R.right,W?B?R.bottom-t:R.top:R.bottom-t]];return[Ot,Mt,...Pe]}case"bottom":{const Ot=[B?de+t/2:W?de+t*4:de-t*4,Se-t],Mt=[B?de-t/2:W?de+t*4:de-t*4,Se-t],Pe=[[R.left,W||B?R.top+t:R.bottom],[R.right,W?B?R.top+t:R.bottom:R.top+t]];return[Ot,Mt,...Pe]}case"left":{const Ot=[de+t+1,G?Se+t/2:H?Se+t*4:Se-t*4],Mt=[de+t+1,G?Se-t/2:H?Se+t*4:Se-t*4];return[...[[H||G?R.right-t:R.left,R.top],[H?G?R.right-t:R.left:R.right-t,R.bottom]],Ot,Mt]}case"right":{const Ot=[de-t,G?Se+t/2:H?Se+t*4:Se-t*4],Mt=[de-t,G?Se-t/2:H?Se+t*4:Se-t*4],Pe=[[H||G?R.left+t:R.right,R.top],[H?G?R.left+t:R.right:R.left+t,R.bottom]];return[Ot,Mt,...Pe]}}}if(!uv([$,_],ge)){if(i&&!A)return S();if(!P&&r){const Ne=u(E.clientX,E.clientY);if(Ne!==null&&Ne<.1)return S()}uv([$,_],ye([d,p]))?!i&&r&&(o=window.setTimeout(S,40)):S()}}};return f.__options={blockPointerEvents:n},f}function Fb({children:e,...t}){const[n,r]=e,o=h.useRef(null),[i,a]=h.useState(!1),{context:l,refs:s,floatingStyles:u}=Ob({middleware:[C1({element:o}),w1(8),x1()],open:i,onOpenChange:a,placement:"bottom-start"}),f=Lb(l,{handleClose:jb()}),{getReferenceProps:c,getFloatingProps:d}=Mb([f]),p=r.props.children,w=n.props.children;return y.jsxs("span",{...t,children:[y.jsx("span",{className:"twoslash-target",ref:s.setReference,...c(),children:p}),i&&y.jsxs("div",{className:"twoslash-popup-info-hover",ref:s.setFloating,style:u,...d(),children:[y.jsx(kb,{ref:o,context:l,fill:np.background5,height:3,stroke:np.border2,strokeWidth:1,width:7}),y.jsx("div",{className:"twoslash-popup-scroll-container",children:w})]})]})}function zb(e){var n;const t=I(e.className,rv);return(n=e.className)!=null&&n.includes("twoslash-hover")?y.jsx(Fb,{...e,className:t}):y.jsx("span",{...e,className:I(e.className,rv)})}var Bb="vocs_CalloutTitle";function Ub({className:e,children:t}){return y.jsx("strong",{className:I(e,Bb),children:t})}var fv="vocs_Strong";function Hb(e){return"data-callout-title"in e&&typeof e.children=="string"?y.jsx(Ub,{...e,className:I(e.className,fv),children:e.children}):y.jsx("strong",{...e,className:I(e.className,fv)})}var Vb="vocs_Summary";function Wb(e){return y.jsx("summary",{...e,className:I(e.className,Vb)})}var Kb="vocs_Table";function Yb(e){return y.jsx("table",{...e,className:I(e.className,Kb)})}var Gb="vocs_TableCell";function Qb(e){return y.jsx("td",{...e,className:I(e.className,Gb)})}var Zb="vocs_TableHeader";function Xb(e){return y.jsx("th",{...e,className:I(e.className,Zb)})}var Jb="vocs_TableRow";function qb(e){return y.jsx("tr",{...e,className:I(e.className,Jb)})}const e$={a:iS,aside:vS,blockquote:gS,code:wS,details:ES,div:V9,pre:gb,header:Z9,figcaption:K9,figure:G9,h1:Q0,h2:sy,h3:cy,h4:uy,h5:fy,h6:dy,hr:J9,kd:Pg,li:rb,ol:e=>y.jsx(tv,{ordered:!0,...e}),p:Z0,section:xb,span:zb,strong:Hb,summary:Wb,table:Yb,td:Qb,th:Xb,tr:qb,ul:e=>y.jsx(tv,{ordered:!1,...e})};function t$(){const{pathname:e}=Re(),t=Ke(),{ogImageUrl:n}=t;if(!n)return;if(typeof n=="string")return n;const r=h.useMemo(()=>{const o=Object.keys(n).filter(i=>e.startsWith(i));return o[o.length-1]},[n,e]);if(r)return n[r]}function Mu(e){const{children:t,filePath:n,frontmatter:r,lastUpdatedAt:o,path:i}=e,{pathname:a}=Re(),l=h.useRef();return h.useEffect(()=>{l.current=a}),y.jsxs(y.Fragment,{children:[y.jsx(n$,{frontmatter:r}),typeof window<"u"&&y.jsx($x,{}),y.jsx(s_,{components:e$,children:y.jsx(H7,{frontmatter:r,path:i,children:y.jsx(q0.Provider,{value:{filePath:n,frontmatter:r,lastUpdatedAt:o,previousPath:l.current},children:t})})})]})}function n$({frontmatter:e}){const t=Ke(),n=t$(),{baseUrl:r,font:o,iconUrl:i,logoUrl:a}=t,l=(e==null?void 0:e.title)??t.title,s=(e==null?void 0:e.description)??t.description,u=t.title&&!l.includes(t.title),f=typeof window<"u"&&window.location.hostname==="localhost";return y.jsxs(Au,{defaultTitle:t.title,titleTemplate:u?t.titleTemplate:void 0,children:[l&&y.jsx("title",{children:l}),r&&!0&&!f&&y.jsx("base",{href:r}),s!=="undefined"&&y.jsx("meta",{name:"description",content:s}),i&&typeof i=="string"&&y.jsx("link",{rel:"icon",href:i,type:ac(i)}),i&&typeof i!="string"&&y.jsx("link",{rel:"icon",href:i.light,type:ac(i.light)}),i&&typeof i!="string"&&y.jsx("link",{rel:"icon",href:i.dark,type:ac(i.dark),media:"(prefers-color-scheme: dark)"}),y.jsx("meta",{property:"og:type",content:"website"}),y.jsx("meta",{property:"og:title",content:l||t.title}),r&&y.jsx("meta",{property:"og:url",content:r}),s!=="undefined"&&y.jsx("meta",{property:"og:description",content:s}),n&&y.jsx("meta",{property:"og:image",content:n.replace("%logo",`${r||""}${typeof a=="string"?a:(a==null?void 0:a.dark)||""}`).replace("%title",l||"").replace("%description",(s!=="undefined"?s:"")||"")}),(o==null?void 0:o.google)&&y.jsx("link",{rel:"preconnect",href:"https://fonts.googleapis.com"}),(o==null?void 0:o.google)&&y.jsx("link",{rel:"preconnect",href:"https://fonts.gstatic.com",crossOrigin:""}),(o==null?void 0:o.google)&&y.jsx("link",{href:`https://fonts.googleapis.com/css2?family=${o.google}:wght@300;400;500&display=swap`,rel:"stylesheet"}),y.jsx("meta",{name:"twitter:card",content:"summary_large_image"}),n&&y.jsx("meta",{property:"twitter:image",content:n.replace("%logo",`${r||""}${typeof a=="string"?a:(a==null?void 0:a.dark)||""}`).replace("%title",l||"").replace("%description",(s!=="undefined"?s:"")||"")})]})}function ac(e){if(e.endsWith(".svg"))return"image/svg+xml";if(e.endsWith(".png"))return"image/png";if(e.endsWith(".jpg"))return"image/jpeg";if(e.endsWith(".ico"))return"image/x-icon";if(e.endsWith(".webp"))return"image/webp"}const r$=(()=>{const e=Wf.find(({path:t})=>t==="*");return e?{path:e.path,lazy:async()=>{const{frontmatter:t,...n}=await e.lazy();return{...n,element:y.jsx(Mu,{frontmatter:t,path:e.path,children:y.jsx(Tu,{children:y.jsx(n.default,{})})})}}}:{path:"*",lazy:void 0,element:y.jsx(Mu,{frontmatter:{layout:"minimal"},path:"*",children:y.jsx(Tu,{children:y.jsx(Jx,{})})})}})(),dv=[...Wf.filter(({path:e})=>e!=="*").map(e=>({path:e.path,lazy:async()=>{const{frontmatter:t,...n}=await e.lazy();return{...n,element:y.jsx(Mu,{filePath:e.filePath,frontmatter:t,lastUpdatedAt:e.lastUpdatedAt,path:e.path,children:y.jsx(Tu,{children:y.jsx(n.default,{})})})}}})),r$];async function o$(e,t){var r;const n=(r=dr(e,window.location,t))==null?void 0:r.filter(o=>o.route.lazy);n&&(n==null?void 0:n.length)>0&&await Promise.all(n.map(async o=>{const i=await o.route.lazy();Object.assign(o.route,{...i,lazy:void 0})}))}function i$(){const e=document.querySelectorAll('style[data-vocs-temp-style="true"]');for(const t of e)t.remove()}a$();async function a$(){const e=V0().basePath;await o$(dv,e),i$();const t=hx(dv,{basename:e});$0(document.getElementById("app"),y.jsx(Ix,{children:y.jsx(Ex,{router:t})}))}export{m9 as $,T9 as C,rn as L,S9 as R,$9 as T,g9 as a,y9 as b,w9 as c,I as d,Ke as e,Y8 as f,b9 as g,y as j,l_ as u}; diff --git a/assets/index-BWHDjk3s.js b/assets/index-Dsl-p13_.js similarity index 98% rename from assets/index-BWHDjk3s.js rename to assets/index-Dsl-p13_.js index af3a4d90..0ff082f7 100644 --- a/assets/index-BWHDjk3s.js +++ b/assets/index-Dsl-p13_.js @@ -1,4 +1,4 @@ -import{j as e,L as b,d as n,e as y,f as _,R as P,g as N,T as a,C as l,u as f}from"./index-wpzGQYGF.js";var w="vocs_Button_button",H="vocs_Button_button_accent";function k({children:s,className:t,href:o,variant:v}){return e.jsx(b,{className:n(t,w,v==="accent"&&H),href:o,variant:"styleless",children:s})}var L="vocs_HomePage_button",B="vocs_HomePage_buttons",C="vocs_HomePage_description",M="vocs_HomePage_logo",c="vocs_HomePage_packageManager",D="vocs_HomePage",I="vocs_HomePage_tabs",d="vocs_HomePage_tabsContent",R="vocs_HomePage_tabsList",T="vocs_HomePage_tagline",E="vocs_HomePage_title";function u({children:s,className:t}){return e.jsx("div",{className:n(t,D),children:s})}function g({className:s}){const{logoUrl:t,title:o}=y();return t?e.jsx("div",{className:n(s,M),children:e.jsx(_,{})}):e.jsx("h1",{className:n(s,E),children:o})}function S({children:s,className:t}){return e.jsx("div",{className:n(t,T),children:s})}function x({children:s,className:t}){return e.jsx("div",{className:n(t,C),children:s})}function m({children:s,className:t}){return e.jsx("div",{className:n(t,B),children:s})}function r(s){return e.jsx(k,{...s,className:n(L,s.className)})}function p({name:s,type:t="install"}){return e.jsxs(P,{className:I,defaultValue:"npm",children:[e.jsxs(N,{className:R,children:[e.jsx(a,{value:"npm",children:"npm"}),e.jsx(a,{value:"pnpm",children:"pnpm"}),e.jsx(a,{value:"yarn",children:"yarn"})]}),e.jsxs(l,{className:d,value:"npm",children:[e.jsx("span",{className:c,children:"npm"})," ",t==="init"?"init":"install"," ",s]}),e.jsxs(l,{className:d,value:"pnpm",children:[e.jsx("span",{className:c,children:"pnpm"})," ",t==="init"?"create":"install"," ",s]}),e.jsxs(l,{className:d,value:"yarn",children:[e.jsx("span",{className:c,children:"yarn"})," ",t==="init"?"create":"install"," ",s]})]})}const $=Object.freeze(Object.defineProperty({__proto__:null,Button:r,Buttons:m,Description:x,InstallPackage:p,Logo:g,Root:u,Tagline:S},Symbol.toStringTag,{value:"Module"})),h=({title:s,children:t})=>e.jsxs("div",{className:"w-full border rounded border-gray-500 p-4 text-left",children:[e.jsx("div",{className:"text-[--vocs-color_heading] text-lg py-2 font-bold",children:s}),e.jsx("div",{children:t})]}),O={layout:"landing",content:{width:"60rem"}};function j(s){const t={a:"a",li:"li",p:"p",strong:"strong",ul:"ul",...f(),...s.components};return $||i("HomePage",!1),r||i("HomePage.Button",!0),m||i("HomePage.Buttons",!0),x||i("HomePage.Description",!0),p||i("HomePage.InstallPackage",!0),g||i("HomePage.Logo",!0),u||i("HomePage.Root",!0),e.jsxs(u,{children:[e.jsxs("div",{className:"flex justify-between w-full flex-col md:flex-row gap-4",children:[e.jsxs("div",{className:"flex flex-col text-left",children:[e.jsx(g,{}),e.jsx(x,{children:"Typescript API to interact with Polkadot chains."}),e.jsxs(m,{className:"py-2",children:[e.jsx(r,{href:"/getting-started",variant:"accent",children:"Get started"}),e.jsx(r,{href:"https://github.com/polkadot-api/polkadot-api",children:"GitHub"})]})]}),e.jsx(p,{name:"polkadot-api",type:"i"})]}),e.jsxs("div",{className:"flex gap-2 flex-col md:flex-row mt-8",children:[e.jsx(h,{title:"Light client first",children:e.jsx(t.p,{children:"Built from the ground up for the light client, allowing the running of a node from the browser."})}),e.jsx(h,{title:"Fully typed API",children:e.jsx(t.p,{children:"IDEs show all the type information for every operation of a chain."})}),e.jsx(h,{title:"Lightweight",children:e.jsx(t.p,{children:"Minimal impact on the main bundle (under 50kB)."})})]}),e.jsxs("div",{className:"text-left w-full max-w-5xl p-2",children:[e.jsx("h2",{className:"text-[--vocs-color_heading] text-3xl py-4 border-b border-gray-500 mb-4",children:"Features"}),e.jsxs(t.ul,{children:[` +import{j as e,L as b,d as n,e as y,f as _,R as P,g as N,T as a,C as l,u as f}from"./index-DTtoqbmS.js";var w="vocs_Button_button",H="vocs_Button_button_accent";function k({children:s,className:t,href:o,variant:v}){return e.jsx(b,{className:n(t,w,v==="accent"&&H),href:o,variant:"styleless",children:s})}var L="vocs_HomePage_button",B="vocs_HomePage_buttons",C="vocs_HomePage_description",M="vocs_HomePage_logo",c="vocs_HomePage_packageManager",D="vocs_HomePage",I="vocs_HomePage_tabs",d="vocs_HomePage_tabsContent",R="vocs_HomePage_tabsList",T="vocs_HomePage_tagline",E="vocs_HomePage_title";function u({children:s,className:t}){return e.jsx("div",{className:n(t,D),children:s})}function g({className:s}){const{logoUrl:t,title:o}=y();return t?e.jsx("div",{className:n(s,M),children:e.jsx(_,{})}):e.jsx("h1",{className:n(s,E),children:o})}function S({children:s,className:t}){return e.jsx("div",{className:n(t,T),children:s})}function x({children:s,className:t}){return e.jsx("div",{className:n(t,C),children:s})}function m({children:s,className:t}){return e.jsx("div",{className:n(t,B),children:s})}function r(s){return e.jsx(k,{...s,className:n(L,s.className)})}function p({name:s,type:t="install"}){return e.jsxs(P,{className:I,defaultValue:"npm",children:[e.jsxs(N,{className:R,children:[e.jsx(a,{value:"npm",children:"npm"}),e.jsx(a,{value:"pnpm",children:"pnpm"}),e.jsx(a,{value:"yarn",children:"yarn"})]}),e.jsxs(l,{className:d,value:"npm",children:[e.jsx("span",{className:c,children:"npm"})," ",t==="init"?"init":"install"," ",s]}),e.jsxs(l,{className:d,value:"pnpm",children:[e.jsx("span",{className:c,children:"pnpm"})," ",t==="init"?"create":"install"," ",s]}),e.jsxs(l,{className:d,value:"yarn",children:[e.jsx("span",{className:c,children:"yarn"})," ",t==="init"?"create":"install"," ",s]})]})}const $=Object.freeze(Object.defineProperty({__proto__:null,Button:r,Buttons:m,Description:x,InstallPackage:p,Logo:g,Root:u,Tagline:S},Symbol.toStringTag,{value:"Module"})),h=({title:s,children:t})=>e.jsxs("div",{className:"w-full border rounded border-gray-500 p-4 text-left",children:[e.jsx("div",{className:"text-[--vocs-color_heading] text-lg py-2 font-bold",children:s}),e.jsx("div",{children:t})]}),O={layout:"landing",content:{width:"60rem"}};function j(s){const t={a:"a",li:"li",p:"p",strong:"strong",ul:"ul",...f(),...s.components};return $||i("HomePage",!1),r||i("HomePage.Button",!0),m||i("HomePage.Buttons",!0),x||i("HomePage.Description",!0),p||i("HomePage.InstallPackage",!0),g||i("HomePage.Logo",!0),u||i("HomePage.Root",!0),e.jsxs(u,{children:[e.jsxs("div",{className:"flex justify-between w-full flex-col md:flex-row gap-4",children:[e.jsxs("div",{className:"flex flex-col text-left",children:[e.jsx(g,{}),e.jsx(x,{children:"Typescript API to interact with Polkadot chains."}),e.jsxs(m,{className:"py-2",children:[e.jsx(r,{href:"/getting-started",variant:"accent",children:"Get started"}),e.jsx(r,{href:"https://github.com/polkadot-api/polkadot-api",children:"GitHub"})]})]}),e.jsx(p,{name:"polkadot-api",type:"i"})]}),e.jsxs("div",{className:"flex gap-2 flex-col md:flex-row mt-8",children:[e.jsx(h,{title:"Light client first",children:e.jsx(t.p,{children:"Built from the ground up for the light client, allowing the running of a node from the browser."})}),e.jsx(h,{title:"Fully typed API",children:e.jsx(t.p,{children:"IDEs show all the type information for every operation of a chain."})}),e.jsx(h,{title:"Lightweight",children:e.jsx(t.p,{children:"Minimal impact on the main bundle (under 50kB)."})})]}),e.jsxs("div",{className:"text-left w-full max-w-5xl p-2",children:[e.jsx("h2",{className:"text-[--vocs-color_heading] text-3xl py-4 border-b border-gray-500 mb-4",children:"Features"}),e.jsxs(t.ul,{children:[` `,e.jsxs(t.li,{children:["🪶 ",e.jsx(t.strong,{children:"Light client first"}),": built on top of the ",e.jsx(t.a,{href:"https://paritytech.github.io/json-rpc-interface-spec/",children:"new JSON-RPC spec"})," to fully leverage the potential of light-clients."]}),` `,e.jsxs(t.li,{children:["💡 Delightful ",e.jsx(t.strong,{children:"TypeScript support"})," with types and docs generated from on-chain metadata."]}),` `,e.jsxs(t.li,{children:["📋 First class support for ",e.jsx(t.strong,{children:"storage"})," reads, ",e.jsx(t.strong,{children:"constants"}),", ",e.jsx(t.strong,{children:"transactions"}),", ",e.jsx(t.strong,{children:"events"})," and ",e.jsx(t.strong,{children:"runtime calls"}),"."]}),` diff --git a/assets/providers-BZEVQ9BA.js b/assets/providers-BcfMQjbQ.js similarity index 99% rename from assets/providers-BZEVQ9BA.js rename to assets/providers-BcfMQjbQ.js index fe933039..465d017b 100644 --- a/assets/providers-BZEVQ9BA.js +++ b/assets/providers-BcfMQjbQ.js @@ -1,4 +1,4 @@ -import{u as l,j as s}from"./index-wpzGQYGF.js";const o={title:"Providers",description:"undefined"};function r(i){const e={a:"a",code:"code",div:"div",h1:"h1",h2:"h2",header:"header",li:"li",p:"p",pre:"pre",span:"span",ul:"ul",...l(),...i.components};return s.jsxs(s.Fragment,{children:[s.jsx(e.header,{children:s.jsxs(e.h1,{id:"providers",children:["Providers",s.jsx(e.a,{"aria-hidden":"true",tabIndex:"-1",href:"#providers",children:s.jsx(e.div,{"data-autolink-icon":!0})})]})}),` +import{u as l,j as s}from"./index-DTtoqbmS.js";const o={title:"Providers",description:"undefined"};function r(i){const e={a:"a",code:"code",div:"div",h1:"h1",h2:"h2",header:"header",li:"li",p:"p",pre:"pre",span:"span",ul:"ul",...l(),...i.components};return s.jsxs(s.Fragment,{children:[s.jsx(e.header,{children:s.jsxs(e.h1,{id:"providers",children:["Providers",s.jsx(e.a,{"aria-hidden":"true",tabIndex:"-1",href:"#providers",children:s.jsx(e.div,{"data-autolink-icon":!0})})]})}),` `,s.jsxs(e.p,{children:["The entry point of Polkadot-API, ",s.jsx(e.code,{children:"createClient(provider)"})," requires one ",s.jsx(e.code,{children:"JsonRpcProvider"}),", which lets Polkadot-API communicate with a node. It's a function with the following shape:"]}),` `,s.jsx(e.pre,{className:"shiki shiki-themes github-light github-dark-dimmed",style:{backgroundColor:"#fff","--shiki-dark-bg":"#22272e",color:"#24292e","--shiki-dark":"#adbac7"},tabIndex:"0",children:s.jsxs(e.code,{children:[s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"interface"}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" JsonRpcProvider"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" {"})]}),` `,s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" ("}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#DCBDFB"},children:"onMessage"}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" ("}),s.jsx(e.span,{style:{color:"#E36209","--shiki-dark":"#F69D50"},children:"message"}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(e.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" string"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:") "}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"=>"}),s.jsx(e.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" void"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:") "}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"=>"}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" JsonRpcConnection"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:";"})]}),` diff --git a/assets/queries-d9rDH77x.js b/assets/queries-d9rDH77x.js new file mode 100644 index 00000000..b42cdddc --- /dev/null +++ b/assets/queries-d9rDH77x.js @@ -0,0 +1,44 @@ +import{u as l,j as s}from"./index-DTtoqbmS.js";const n={title:"Storage queries",description:"undefined"};function r(i){const e={a:"a",code:"code",div:"div",h1:"h1",h2:"h2",header:"header",p:"p",pre:"pre",span:"span",...l(),...i.components};return s.jsxs(s.Fragment,{children:[s.jsx(e.header,{children:s.jsxs(e.h1,{id:"storage-queries",children:["Storage queries",s.jsx(e.a,{"aria-hidden":"true",tabIndex:"-1",href:"#storage-queries",children:s.jsx(e.div,{"data-autolink-icon":!0})})]})}),` +`,s.jsxs(e.p,{children:["For ",s.jsx(e.code,{children:"query"})," we have mainly two different situations. There're two kinds of storage entries: entries with and without keys."]}),` +`,s.jsxs(e.h2,{id:"entries-without-keys",children:["Entries without keys",s.jsx(e.a,{"aria-hidden":"true",tabIndex:"-1",href:"#entries-without-keys",children:s.jsx(e.div,{"data-autolink-icon":!0})})]}),` +`,s.jsxs(e.p,{children:["For example, ",s.jsx(e.code,{children:"System.Number"})," query (it returns the block number) has no keys to index it with. Therefore, under ",s.jsx(e.code,{children:"typedApi.System.Number"})," we have the following structure:"]}),` +`,s.jsx(e.pre,{className:"shiki shiki-themes github-light github-dark-dimmed",style:{backgroundColor:"#fff","--shiki-dark-bg":"#22272e",color:"#24292e","--shiki-dark":"#adbac7"},tabIndex:"0",children:s.jsxs(e.code,{children:[s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"type"}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" CallOptions"}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:" ="}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" Partial"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"<{"})]}),` +`,s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#E36209","--shiki-dark":"#F69D50"},children:" at"}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(e.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" string"})]}),` +`,s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#E36209","--shiki-dark":"#F69D50"},children:" signal"}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" AbortSignal"})]}),` +`,s.jsx(e.span,{className:"line",children:s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"}>"})}),` +`,s.jsx(e.span,{className:"line","data-empty-line":!0,children:" "}),` +`,s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"type"}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" StorageEntryWithoutKeys"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"<"}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:"Payload"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"> "}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"="}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" {"})]}),` +`,s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#E36209","--shiki-dark":"#F69D50"},children:" isCompatible"}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" IsCompatible"})]}),` +`,s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#DCBDFB"},children:" getValue"}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" ("}),s.jsx(e.span,{style:{color:"#E36209","--shiki-dark":"#F69D50"},children:"options"}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"?:"}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" CallOptions"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:") "}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"=>"}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" Promise"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"<"}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:"Payload"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:">"})]}),` +`,s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#DCBDFB"},children:" watchValue"}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" ("}),s.jsx(e.span,{style:{color:"#E36209","--shiki-dark":"#F69D50"},children:"bestOrFinalized"}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"?:"}),s.jsx(e.span,{style:{color:"#032F62","--shiki-dark":"#96D0FF"},children:' "best"'}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:" |"}),s.jsx(e.span,{style:{color:"#032F62","--shiki-dark":"#96D0FF"},children:' "finalized"'}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:") "}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"=>"}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" Observable"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"<"}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:"Payload"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:">"})]}),` +`,s.jsx(e.span,{className:"line",children:s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"}"})})]})}),` +`,s.jsxs(e.p,{children:["As you might expect, ",s.jsx(e.code,{children:"getValue"})," returns you the ",s.jsx(e.code,{children:"Payload"})," for that particular query, allowing you to choose which block to query (",s.jsx(e.code,{children:"at"})," can be a blockHash, ",s.jsx(e.code,{children:'"finalized"'})," (the default), or ",s.jsx(e.code,{children:'"best"'}),")."]}),` +`,s.jsxs(e.p,{children:["On the other hand, ",s.jsx(e.code,{children:"watchValue"})," function returns an Observable allows you to check the changes of a particular storage entry in ",s.jsx(e.code,{children:'"best"'})," or ",s.jsx(e.code,{children:'"finalized"'})," (the default) block."]}),` +`,s.jsxs(e.h2,{id:"entries-with-keys",children:["Entries with keys",s.jsx(e.a,{"aria-hidden":"true",tabIndex:"-1",href:"#entries-with-keys",children:s.jsx(e.div,{"data-autolink-icon":!0})})]}),` +`,s.jsxs(e.p,{children:["Similarely, we'll use the example of ",s.jsx(e.code,{children:"System.Account"})," query (it returns the information of a particular ",s.jsx(e.code,{children:"Account"}),"). In this case, this storage query has a key to index it with, and therefore we find the following structure:"]}),` +`,s.jsx(e.pre,{className:"shiki shiki-themes github-light github-dark-dimmed",style:{backgroundColor:"#fff","--shiki-dark-bg":"#22272e",color:"#24292e","--shiki-dark":"#adbac7"},tabIndex:"0",children:s.jsxs(e.code,{children:[s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"type"}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" StorageEntryWithKeys"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"<"}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:"Args"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:", "}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:"Payload"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"> "}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"="}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" {"})]}),` +`,s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#E36209","--shiki-dark":"#F69D50"},children:" isCompatible"}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" IsCompatible"})]}),` +`,s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#DCBDFB"},children:" getValue"}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" ("}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"..."}),s.jsx(e.span,{style:{color:"#E36209","--shiki-dark":"#F69D50"},children:"args"}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" ["}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"..."}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:"Args"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:", "}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:"options"}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"?"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:": "}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:"CallOptions"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"]) "}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"=>"}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" Promise"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"<"}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:"Payload"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:">"})]}),` +`,s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#DCBDFB"},children:" watchValue"}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" ("})]}),` +`,s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:" ..."}),s.jsx(e.span,{style:{color:"#E36209","--shiki-dark":"#F69D50"},children:"args"}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" ["}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"..."}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:"Args"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:", "}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:"bestOrFinalized"}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"?"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:": "}),s.jsx(e.span,{style:{color:"#032F62","--shiki-dark":"#96D0FF"},children:'"best"'}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:" |"}),s.jsx(e.span,{style:{color:"#032F62","--shiki-dark":"#96D0FF"},children:' "finalized"'}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"]"})]}),` +`,s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" ) "}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"=>"}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" Observable"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"<"}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:"Payload"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:">"})]}),` +`,s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#DCBDFB"},children:" getValues"}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" ("})]}),` +`,s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#E36209","--shiki-dark":"#F69D50"},children:" keys"}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" Array"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"<["}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"..."}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:"Args"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"]>,"})]}),` +`,s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#E36209","--shiki-dark":"#F69D50"},children:" options"}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"?:"}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" CallOptions"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:","})]}),` +`,s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" ) "}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"=>"}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" Promise"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"<"}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:"Array"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"<"}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:"Payload"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:">>"})]}),` +`,s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#DCBDFB"},children:" getEntries"}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" ("})]}),` +`,s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:" ..."}),s.jsx(e.span,{style:{color:"#E36209","--shiki-dark":"#F69D50"},children:"args"}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" ["}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:"PossibleParents"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"<"}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:"Args"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:">, "}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:"options"}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"?"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:": "}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:"CallOptions"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"]"})]}),` +`,s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" ) "}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"=>"}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" Promise"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"<"})]}),` +`,s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" Array"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"<{"})]}),` +`,s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#E36209","--shiki-dark":"#F69D50"},children:" keyArgs"}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" Args"})]}),` +`,s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#E36209","--shiki-dark":"#F69D50"},children:" value"}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" NonNullable"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"<"}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:"Payload"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:">"})]}),` +`,s.jsx(e.span,{className:"line",children:s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" }>"})}),` +`,s.jsx(e.span,{className:"line",children:s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" >"})}),` +`,s.jsx(e.span,{className:"line",children:s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"}"})})]})}),` +`,s.jsxs(e.p,{children:["Both ",s.jsx(e.code,{children:"getValue"})," and ",s.jsx(e.code,{children:"watchValue"})," have the same behaviour as in the previous case, but they require you to pass all keys required for that storage query (in our example, an address). The same function arguments that are found in the no-keys situation can be passed at the end of the call to modify which block to query, etc. For example, a query with 3 args:"]}),` +`,s.jsx(e.pre,{className:"shiki shiki-themes github-light github-dark-dimmed",style:{backgroundColor:"#fff","--shiki-dark-bg":"#22272e",color:"#24292e","--shiki-dark":"#adbac7"},tabIndex:"0",children:s.jsx(e.code,{children:s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"typedApi.query.Pallet.Query."}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#DCBDFB"},children:"getValue"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"(arg1, arg2, arg3, { at: "}),s.jsx(e.span,{style:{color:"#032F62","--shiki-dark":"#96D0FF"},children:'"best"'}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" })"})]})})}),` +`,s.jsxs(e.p,{children:[s.jsx(e.code,{children:"getValues"}),", instead, allows you to pass several keys (addresses in this case) to get a bunch of entries at the same time."]}),` +`,s.jsxs(e.p,{children:[s.jsx(e.code,{children:"getEntries"})," allows you to get all entries without passing the keys. It has also the option to pass a subset of them. For example, imagine a query with 3 keys. You would have three options to call it:"]}),` +`,s.jsx(e.pre,{className:"shiki shiki-themes github-light github-dark-dimmed",style:{backgroundColor:"#fff","--shiki-dark-bg":"#22272e",color:"#24292e","--shiki-dark":"#adbac7"},tabIndex:"0",children:s.jsxs(e.code,{children:[s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"typedApi.query.Pallet.Query."}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#DCBDFB"},children:"getEntries"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"({ at: "}),s.jsx(e.span,{style:{color:"#032F62","--shiki-dark":"#96D0FF"},children:'"best"'}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" }) "}),s.jsx(e.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:"// no keys"})]}),` +`,s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"typedApi.query.Pallet.Query."}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#DCBDFB"},children:"getEntries"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"(arg1, { at: "}),s.jsx(e.span,{style:{color:"#032F62","--shiki-dark":"#96D0FF"},children:'"finalized"'}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" }) "}),s.jsx(e.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:"// 1/3 keys"})]}),` +`,s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"typedApi.query.Pallet.Query."}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#DCBDFB"},children:"getEntries"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"(arg1, arg2, { at: "}),s.jsx(e.span,{style:{color:"#032F62","--shiki-dark":"#96D0FF"},children:'"0x12345678"'}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" }) "}),s.jsx(e.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:"// 2/3 keys"})]})]})})]})}function d(i={}){const{wrapper:e}={...l(),...i.components};return e?s.jsx(e,{...i,children:s.jsx(r,{...i})}):r(i)}export{d as default,n as frontmatter}; diff --git a/assets/signers-DsU4_F1h.js b/assets/signers-E6G7fR99.js similarity index 99% rename from assets/signers-DsU4_F1h.js rename to assets/signers-E6G7fR99.js index 5c19f970..11e22450 100644 --- a/assets/signers-DsU4_F1h.js +++ b/assets/signers-E6G7fR99.js @@ -1,4 +1,4 @@ -import{u as r,j as s}from"./index-wpzGQYGF.js";const a={title:"Signers",description:"undefined"};function n(e){const i={a:"a",code:"code",div:"div",h1:"h1",h2:"h2",header:"header",p:"p",pre:"pre",span:"span",...r(),...e.components};return s.jsxs(s.Fragment,{children:[s.jsx(i.header,{children:s.jsxs(i.h1,{id:"signers",children:["Signers",s.jsx(i.a,{"aria-hidden":"true",tabIndex:"-1",href:"#signers",children:s.jsx(i.div,{"data-autolink-icon":!0})})]})}),` +import{u as r,j as s}from"./index-DTtoqbmS.js";const a={title:"Signers",description:"undefined"};function n(e){const i={a:"a",code:"code",div:"div",h1:"h1",h2:"h2",header:"header",p:"p",pre:"pre",span:"span",...r(),...e.components};return s.jsxs(s.Fragment,{children:[s.jsx(i.header,{children:s.jsxs(i.h1,{id:"signers",children:["Signers",s.jsx(i.a,{"aria-hidden":"true",tabIndex:"-1",href:"#signers",children:s.jsx(i.div,{"data-autolink-icon":!0})})]})}),` `,s.jsx(i.p,{children:"For transactions, the generated descriptors and its corresponding typed API are needed to create the transaction extrinsics, but for these transactions to be signed, we also need a signer, which is the responsible of taking it the call data and signing it."}),` `,s.jsx(i.p,{children:"Every method on Polkadot-API that needs to sign something, takes in a signer with the following interface:"}),` `,s.jsx(i.pre,{className:"shiki shiki-themes github-light github-dark-dimmed",style:{backgroundColor:"#fff","--shiki-dark-bg":"#22272e",color:"#24292e","--shiki-dark":"#adbac7"},tabIndex:"0",children:s.jsxs(i.code,{children:[s.jsxs(i.span,{className:"line",children:[s.jsx(i.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"interface"}),s.jsx(i.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" PolkadotSigner"}),s.jsx(i.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" {"})]}),` diff --git a/assets/style-3xU5f3TO.css b/assets/style-tY_lfRBg.css similarity index 83% rename from assets/style-3xU5f3TO.css rename to assets/style-tY_lfRBg.css index b869c991..51fa0138 100644 --- a/assets/style-3xU5f3TO.css +++ b/assets/style-tY_lfRBg.css @@ -1 +1 @@ -@layer vocs_preflight;:root{--vocs-color_white: rgba(255 255 255 / 100%);--vocs-color_black: rgba(0 0 0 / 100%);--vocs-color_background: rgba(255 255 255 / 100%);--vocs-color_background2: #f9f9f9;--vocs-color_background3: #f6f6f6;--vocs-color_background4: #f0f0f0;--vocs-color_background5: #e8e8e8;--vocs-color_backgroundAccent: #5b5bd6;--vocs-color_backgroundAccentHover: #5151cd;--vocs-color_backgroundAccentText: rgba(255 255 255 / 100%);--vocs-color_backgroundBlueTint: #008cff0b;--vocs-color_backgroundDark: #f9f9f9;--vocs-color_backgroundGreenTint: #00a32f0b;--vocs-color_backgroundGreenTint2: #00a43319;--vocs-color_backgroundIrisTint: #0000ff07;--vocs-color_backgroundRedTint: #ff000008;--vocs-color_backgroundRedTint2: #f3000d14;--vocs-color_backgroundYellowTint: #f4dd0016;--vocs-color_border: #ececec;--vocs-color_border2: #cecece;--vocs-color_borderAccent: #5753c6;--vocs-color_borderBlue: #009eff2a;--vocs-color_borderGreen: #019c393b;--vocs-color_borderIris: #dadcff;--vocs-color_borderRed: #ff000824;--vocs-color_borderYellow: #ffd5008f;--vocs-color_heading: #202020;--vocs-color_inverted: rgba(0 0 0 / 100%);--vocs-color_shadow: #0000000f;--vocs-color_shadow2: #00000006;--vocs-color_text: #4c4c4c;--vocs-color_text2: #646464;--vocs-color_text3: #838383;--vocs-color_text4: #bbbbbb;--vocs-color_textAccent: #5753c6;--vocs-color_textAccentHover: #272962;--vocs-color_textBlue: #0d74ce;--vocs-color_textBlueHover: #113264;--vocs-color_textGreen: #218358;--vocs-color_textGreenHover: #193b2d;--vocs-color_textIris: #5753c6;--vocs-color_textIrisHover: #272962;--vocs-color_textRed: #ce2c31;--vocs-color_textRedHover: #641723;--vocs-color_textYellow: #9e6c00;--vocs-color_textYellowHover: #473b1f;--vocs-color_title: #202020}:root.dark{--vocs-color_white: rgba(255 255 255 / 100%);--vocs-color_black: rgba(0 0 0 / 100%);--vocs-color_background: #232225;--vocs-color_background2: #2b292d;--vocs-color_background3: #2e2c31;--vocs-color_background4: #323035;--vocs-color_background5: #3c393f;--vocs-color_backgroundAccent: #5b5bd6;--vocs-color_backgroundAccentHover: #5753c6;--vocs-color_backgroundAccentText: rgba(255 255 255 / 100%);--vocs-color_backgroundBlueTint: #008ff519;--vocs-color_backgroundDark: #1e1d1f;--vocs-color_backgroundGreenTint: #00a43319;--vocs-color_backgroundGreenTint2: #00a83829;--vocs-color_backgroundIrisTint: #000bff19;--vocs-color_backgroundRedTint: #f3000d14;--vocs-color_backgroundRedTint2: #ff000824;--vocs-color_backgroundYellowTint: #f4dd0016;--vocs-color_border: #3c393f;--vocs-color_border2: #6f6d78;--vocs-color_borderAccent: #6e6ade;--vocs-color_borderBlue: #009eff2a;--vocs-color_borderGreen: #019c393b;--vocs-color_borderIris: #303374;--vocs-color_borderRed: #ff000824;--vocs-color_borderYellow: #f4dd0016;--vocs-color_heading: #e9e9ea;--vocs-color_inverted: rgba(255 255 255 / 100%);--vocs-color_shadow: #00000000;--vocs-color_shadow2: rgba(0, 0, 0, .05);--vocs-color_text: #cfcfcf;--vocs-color_text2: #bdbdbe;--vocs-color_text3: #a7a7a8;--vocs-color_text4: #656567;--vocs-color_textAccent: #b1a9ff;--vocs-color_textAccentHover: #6e6ade;--vocs-color_textBlue: #70b8ff;--vocs-color_textBlueHover: #3b9eff;--vocs-color_textGreen: #3dd68c;--vocs-color_textGreenHover: #33b074;--vocs-color_textIris: #b1a9ff;--vocs-color_textIrisHover: #6e6ade;--vocs-color_textRed: #ff9592;--vocs-color_textRedHover: #ec5d5e;--vocs-color_textYellow: #f5e147;--vocs-color_textYellowHover: #e2a336;--vocs-color_title: rgba(255 255 255 / 100%)}:root{--vocs-color_blockquoteBorder: var(--vocs-color_border);--vocs-color_blockquoteText: var(--vocs-color_text3);--vocs-color_dangerBackground: var(--vocs-color_backgroundRedTint);--vocs-color_dangerBorder: var(--vocs-color_borderRed);--vocs-color_dangerText: var(--vocs-color_textRed);--vocs-color_dangerTextHover: var(--vocs-color_textRedHover);--vocs-color_infoBackground: var(--vocs-color_backgroundBlueTint);--vocs-color_infoBorder: var(--vocs-color_borderBlue);--vocs-color_infoText: var(--vocs-color_textBlue);--vocs-color_infoTextHover: var(--vocs-color_textBlueHover);--vocs-color_noteBackground: var(--vocs-color_background2);--vocs-color_noteBorder: var(--vocs-color_border);--vocs-color_noteText: var(--vocs-color_text2);--vocs-color_successBackground: var(--vocs-color_backgroundGreenTint);--vocs-color_successBorder: var(--vocs-color_borderGreen);--vocs-color_successText: var(--vocs-color_textGreen);--vocs-color_successTextHover: var(--vocs-color_textGreenHover);--vocs-color_tipBackground: var(--vocs-color_backgroundIrisTint);--vocs-color_tipBorder: var(--vocs-color_borderIris);--vocs-color_tipText: var(--vocs-color_textIris);--vocs-color_tipTextHover: var(--vocs-color_textIrisHover);--vocs-color_warningBackground: var(--vocs-color_backgroundYellowTint);--vocs-color_warningBorder: var(--vocs-color_borderYellow);--vocs-color_warningText: var(--vocs-color_textYellow);--vocs-color_warningTextHover: var(--vocs-color_textYellowHover);--vocs-color_codeBlockBackground: var(--vocs-color_background2);--vocs-color_codeCharacterHighlightBackground: var(--vocs-color_background5);--vocs-color_codeHighlightBackground: var(--vocs-color_background4);--vocs-color_codeHighlightBorder: var(--vocs-color_border2);--vocs-color_codeInlineBackground: var(--vocs-color_background4);--vocs-color_codeInlineBorder: var(--vocs-color_border);--vocs-color_codeInlineText: var(--vocs-color_textAccent);--vocs-color_codeTitleBackground: var(--vocs-color_background4);--vocs-color_lineNumber: var(--vocs-color_text4);--vocs-color_hr: var(--vocs-color_border);--vocs-color_link: var(--vocs-color_textAccent);--vocs-color_linkHover: var(--vocs-color_textAccentHover);--vocs-color_searchHighlightBackground: var(--vocs-color_borderAccent);--vocs-color_searchHighlightText: var(--vocs-color_background);--vocs-color_tableBorder: var(--vocs-color_border);--vocs-color_tableHeaderBackground: var(--vocs-color_background2);--vocs-color_tableHeaderText: var(--vocs-color_text2);--vocs-borderRadius_0: 0;--vocs-borderRadius_2: 2px;--vocs-borderRadius_3: 3px;--vocs-borderRadius_4: 4px;--vocs-borderRadius_6: 6px;--vocs-borderRadius_8: 8px;--vocs-fontFamily_default: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;--vocs-fontFamily_mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--vocs-fontSize_9: .5625rem;--vocs-fontSize_11: .6875rem;--vocs-fontSize_12: .75rem;--vocs-fontSize_13: .8125rem;--vocs-fontSize_14: .875rem;--vocs-fontSize_15: .9375rem;--vocs-fontSize_16: 1rem;--vocs-fontSize_18: 1.125rem;--vocs-fontSize_20: 1.25rem;--vocs-fontSize_24: 1.5rem;--vocs-fontSize_32: 2rem;--vocs-fontSize_64: 3rem;--vocs-fontSize_root: 16px;--vocs-fontSize_h1: var(--vocs-fontSize_32);--vocs-fontSize_h2: var(--vocs-fontSize_24);--vocs-fontSize_h3: var(--vocs-fontSize_20);--vocs-fontSize_h4: var(--vocs-fontSize_18);--vocs-fontSize_h5: var(--vocs-fontSize_16);--vocs-fontSize_h6: var(--vocs-fontSize_16);--vocs-fontSize_calloutCodeBlock: .8em;--vocs-fontSize_code: .875em;--vocs-fontSize_codeBlock: var(--vocs-fontSize_14);--vocs-fontSize_lineNumber: var(--vocs-fontSize_15);--vocs-fontSize_subtitle: var(--vocs-fontSize_20);--vocs-fontSize_th: var(--vocs-fontSize_14);--vocs-fontSize_td: var(--vocs-fontSize_14);--vocs-fontWeight_regular: 300;--vocs-fontWeight_medium: 400;--vocs-fontWeight_semibold: 500;--vocs-lineHeight_code: 1.75em;--vocs-lineHeight_heading: 1.5em;--vocs-lineHeight_listItem: 1.5em;--vocs-lineHeight_outlineItem: 1em;--vocs-lineHeight_paragraph: 1.75em;--vocs-lineHeight_sidebarItem: 1.375em;--vocs-space_0: 0px;--vocs-space_1: 1px;--vocs-space_2: .125rem;--vocs-space_3: .1875rem;--vocs-space_4: .25rem;--vocs-space_6: .375rem;--vocs-space_8: .5rem;--vocs-space_12: .75rem;--vocs-space_14: .875rem;--vocs-space_16: 1rem;--vocs-space_18: 1.125rem;--vocs-space_20: 1.25rem;--vocs-space_22: 1.375rem;--vocs-space_24: 1.5rem;--vocs-space_28: 1.75rem;--vocs-space_32: 2rem;--vocs-space_36: 2.25rem;--vocs-space_40: 2.5rem;--vocs-space_44: 2.75rem;--vocs-space_48: 3rem;--vocs-space_56: 3.5rem;--vocs-space_64: 4rem;--vocs-space_72: 4.5rem;--vocs-space_80: 5rem;--vocs-zIndex_backdrop: 69420;--vocs-zIndex_drawer: 69421;--vocs-zIndex_gutterRight: 11;--vocs-zIndex_gutterLeft: 14;--vocs-zIndex_gutterTop: 13;--vocs-zIndex_gutterTopCurtain: 12;--vocs-zIndex_popover: 69422;--vocs-zIndex_surface: 10;--vocs-content_horizontalPadding: var(--vocs-space_48);--vocs-content_verticalPadding: var(--vocs-space_32);--vocs-content_width: calc(70ch + (var(--vocs-content_horizontalPadding) * 2));--vocs-outline_width: 280px;--vocs-sidebar_horizontalPadding: var(--vocs-space_24);--vocs-sidebar_verticalPadding: var(--vocs-space_0);--vocs-sidebar_width: 300px;--vocs-topNav_height: 60px;--vocs-topNav_horizontalPadding: var(--vocs-content_horizontalPadding);--vocs-topNav_curtainHeight: 40px}@media screen and (max-width: 1080px){:root{--vocs-content_verticalPadding: var(--vocs-space_48);--vocs-content_horizontalPadding: var(--vocs-space_24);--vocs-sidebar_horizontalPadding: var(--vocs-space_16);--vocs-sidebar_verticalPadding: var(--vocs-space_16);--vocs-sidebar_width: 300px;--vocs-topNav_height: 48px}}@media screen and (max-width: 720px){:root{--vocs-content_horizontalPadding: var(--vocs-space_16);--vocs-content_verticalPadding: var(--vocs-space_32)}}.vocs_Banner{background-color:var(--vocs_Banner_bannerBackgroundColor, var(--vocs-color_backgroundAccent));border-bottom:1px solid var(--vocs_Banner_bannerBackgroundColor, var(--vocs-color_borderAccent));color:var(--vocs_Banner_bannerTextColor, var(--vocs-color_backgroundAccentText));height:var(--vocs_Banner_bannerHeight, 36px);position:fixed;top:0;width:100%;z-index:var(--vocs-zIndex_gutterTop)}.vocs_Banner_content{font-size:var(--vocs-fontSize_14);overflow-x:scroll;padding-left:var(--vocs-space_8);padding-right:var(--vocs-space_8);margin-right:var(--vocs-space_24);-ms-overflow-style:none;scrollbar-width:none;white-space:pre}.vocs_Banner_content::-webkit-scrollbar{display:none}.vocs_Banner_inner{align-items:center;display:flex;height:100%;justify-content:center;position:relative;width:100%}.vocs_Banner_closeButton{align-items:center;background-color:var(--vocs_Banner_bannerBackgroundColor, var(--vocs-color_backgroundAccent));display:flex;justify-content:center;height:100%;position:absolute;right:0;width:var(--vocs-space_24)}.vocs_Banner_content a{font-weight:400;text-underline-offset:2px;text-decoration:underline}@media screen and (max-width: 1080px){.vocs_Banner{position:initial}}.vocs_DocsLayout{--vocs_DocsLayout_leftGutterWidth: max(calc((100vw - var(--vocs-content_width)) / 2), var(--vocs-sidebar_width))}.vocs_DocsLayout_content{background-color:var(--vocs-color_background);margin-left:auto;margin-right:auto;max-width:var(--vocs-content_width);min-height:100vh}.vocs_DocsLayout_content_withSidebar{margin-left:var(--vocs_DocsLayout_leftGutterWidth);margin-right:unset}.vocs_DocsLayout_gutterLeft{background-color:var(--vocs-color_backgroundDark);justify-content:flex-end;display:flex;height:100vh;position:fixed;top:var(--vocs_Banner_bannerHeight, 0px);width:var(--vocs_DocsLayout_leftGutterWidth);z-index:var(--vocs-zIndex_gutterLeft)}.vocs_DocsLayout_gutterTop{align-items:center;background-color:color-mix(in srgb,var(--vocs-color_background) 98%,transparent);height:var(--vocs-topNav_height);width:100vw;z-index:var(--vocs-zIndex_gutterTop)}.vocs_DocsLayout_gutterTopCurtain{display:flex;height:var(--vocs-topNav_curtainHeight);width:100vw;z-index:var(--vocs-zIndex_gutterTopCurtain)}.vocs_DocsLayout_gutterTopCurtain_hidden{background:unset;display:none}.vocs_DocsLayout_gutterRight{display:flex;height:100vh;overflow-y:auto;padding:calc(var(--vocs-content_verticalPadding) + var(--vocs-topNav_height) + var(--vocs-space_8)) var(--vocs-space_24) 0 0;position:fixed;top:var(--vocs_Banner_bannerHeight, 0px);right:0;width:calc((100vw - var(--vocs-content_width)) / 2);z-index:var(--vocs-zIndex_gutterRight)}.vocs_DocsLayout_gutterRight::-webkit-scrollbar{display:none}.vocs_DocsLayout_gutterRight_withSidebar{width:calc(100vw - var(--vocs-content_width) - var(--vocs_DocsLayout_leftGutterWidth))}.vocs_DocsLayout_outlinePopover{display:none;overflow-y:auto;height:calc(100vh - var(--vocs-topNav_height) - var(--vocs-topNav_curtainHeight))}.vocs_DocsLayout_sidebar{padding:var(--vocs-space_0) var(--vocs-sidebar_horizontalPadding) var(--vocs-space_24) var(--vocs-sidebar_horizontalPadding)}.vocs_DocsLayout_sidebarDrawer{display:none}@media screen and (max-width: 720px){.vocs_DocsLayout_content{overflow-x:hidden}}@media screen and (min-width: 1081px){.vocs_DocsLayout_content_withTopNav{padding-top:calc(var(--vocs-topNav_height) + var(--vocs_Banner_bannerHeight, 0px))}.vocs_DocsLayout_gutterTop{padding-left:calc(var(--vocs_DocsLayout_leftGutterWidth) - var(--vocs-sidebar_width));padding-right:calc(var(--vocs_DocsLayout_leftGutterWidth) - var(--vocs-sidebar_width));position:fixed;top:var(--vocs_Banner_bannerHeight, 0px)}.vocs_DocsLayout_gutterTop_offsetLeftGutter{padding-left:var(--vocs_DocsLayout_leftGutterWidth)}.vocs_DocsLayout_gutterTopCurtain{position:fixed;top:calc(var(--vocs-topNav_height) + var(--vocs_Banner_bannerHeight, 0px))}.vocs_DocsLayout_gutterTopCurtain_withSidebar{margin-left:var(--vocs_DocsLayout_leftGutterWidth)}}@media screen and (max-width: 1080px){.vocs_DocsLayout_content{margin-left:auto;margin-right:auto}.vocs_DocsLayout_gutterLeft{display:none}.vocs_DocsLayout_gutterTop{position:initial}.vocs_DocsLayout_gutterTop_sticky,.vocs_DocsLayout_gutterTopCurtain{position:sticky;top:0}.vocs_DocsLayout_outlinePopover,.vocs_DocsLayout_sidebarDrawer{display:block}}@media screen and (max-width: 1280px){.vocs_DocsLayout_gutterRight{display:none}}@layer vocs_reset_reset;html,body,.vocs_DocsLayout{font-family:var(--vocs-fontFamily_default);font-feature-settings:"rlig" 1,"calt" 1;font-size:var(--vocs-fontSize_root)}button,select{text-transform:none;-webkit-appearance:button;-moz-appearance:button;appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{outline:auto}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;-moz-appearance:textfield;appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none;-moz-appearance:none;appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;-moz-appearance:button;appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1}input::placeholder,textarea::placeholder{opacity:1}button,[role=button]{cursor:pointer}:disabled{overflow:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}@layer vocs_reset_reset{*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid}*:focus-visible{outline:2px solid var(--vocs-color_borderAccent);outline-offset:2px;outline-style:dashed}html,body{-webkit-text-size-adjust:100%;-moz-text-size-adjust:100%;text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;line-height:inherit;margin:0;padding:0;border:0;text-rendering:optimizeLegibility}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit;text-wrap:balance}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--vocs-fontFamily_mono);font-size:var(--vocs-fontSize_root)}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-color:inherit;border-collapse:collapse;text-indent:0}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}}.vocs_Tabs{background-color:var(--vocs-color_codeBlockBackground);border:1px solid var(--vocs-color_codeInlineBorder);border-radius:var(--vocs-borderRadius_4)}.vocs_Tabs_list{background-color:var(--vocs-color_codeTitleBackground);border-bottom:1px solid var(--vocs-color_border);border-top-left-radius:var(--vocs-borderRadius_4);border-top-right-radius:var(--vocs-borderRadius_4);display:flex;padding:var(--vocs-space_0) var(--vocs-space_14)}.vocs_Tabs_trigger{border-bottom:2px solid transparent;color:var(--vocs-color_text3);font-size:var(--vocs-fontSize_14);font-weight:var(--vocs-fontWeight_medium);padding:var(--vocs-space_8) var(--vocs-space_8) var(--vocs-space_6) var(--vocs-space_8);transition:color .1s}.vocs_Tabs_trigger:hover{color:var(--vocs-color_text)}.vocs_Tabs_trigger[data-state=active]{border-bottom:2px solid var(--vocs-color_borderAccent);color:var(--vocs-color_text)}.vocs_Tabs_content{background-color:var(--vocs-color_codeBlockBackground)}.vocs_Tabs_content:not([data-shiki=true]){padding:var(--vocs-space_20) var(--vocs-space_22)}.vocs_Tabs pre{margin-bottom:var(--vocs-space_0)}@media screen and (max-width: 720px){.vocs_Tabs_list{border-radius:0;padding:var(--vocs-space_0) var(--vocs-space_8)}.vocs_Tabs_content:not([data-shiki=true]){padding:var(--vocs-space_20) var(--vocs-space_16)}.vocs_Tabs pre{margin:unset}}.vocs_CodeBlock{border:1px solid var(--vocs-color_codeInlineBorder);border-radius:var(--vocs-borderRadius_4)}.vocs_Tabs .vocs_CodeBlock,undefined .vocs_CodeBlock{border:none;margin-left:unset;margin-right:unset}.vocs_CodeBlock code{display:grid;font-size:var(--vocs-fontSize_codeBlock)}undefined .vocs_CodeBlock code{font-size:var(--vocs-fontSize_calloutCodeBlock)}.vocs_CodeBlock pre{background-color:var(--vocs-color_codeBlockBackground);border-radius:var(--vocs-borderRadius_4);overflow-x:auto;padding:var(--vocs-space_20) var(--vocs-space_0)}undefined .vocs_CodeBlock pre{background-color:color-mix(in srgb,var(--vocs-color_codeBlockBackground) 65%,transparent)!important;border:1px solid var(--vocs-color_codeInlineBorder);border-radius:var(--vocs-borderRadius_4);padding:var(--vocs-space_12) var(--vocs-space_0)}.vocs_CodeBlock .line{border-left:2px solid transparent;padding:var(--vocs-space_0) var(--vocs-space_22);line-height:var(--vocs-lineHeight_code)}undefined .vocs_CodeBlock .line{padding:var(--vocs-space_0) var(--vocs-space_12)}.vocs_CodeBlock .twoslash-popup-info .line{padding:var(--vocs-space_0) var(--vocs-space_4)}.vocs_CodeBlock .twoslash-popup-info-hover .line{display:inline-block;padding:var(--vocs-space_0) var(--vocs-space_8)}.vocs_CodeBlock .twoslash-error-line,.vocs_CodeBlock .twoslash-tag-line{padding:var(--vocs-space_0) var(--vocs-space_22)}.vocs_CodeBlock [data-line-numbers]{counter-reset:line}.vocs_CodeBlock [data-line-numbers]>.line{padding:var(--vocs-space_0) var(--vocs-space_16)}.vocs_CodeBlock [data-line-numbers]>.line:before{content:counter(line);color:var(--vocs-color_lineNumber);display:inline-block;font-size:var(--vocs-fontSize_lineNumber);margin-right:var(--vocs-space_16);text-align:right;width:1rem}.vocs_CodeBlock [data-line-numbers]>.line:not(.diff.remove+.diff.add):before{counter-increment:line}.vocs_CodeBlock [data-line-numbers]>.line.diff:after{margin-left:calc(-1 * var(--vocs-space_4))}.vocs_CodeBlock .highlighted{background-color:var(--vocs-color_codeHighlightBackground);border-left:2px solid var(--vocs-color_codeHighlightBorder);box-sizing:content-box}.vocs_CodeBlock .highlighted-word{border-radius:var(--vocs-borderRadius_2);background-color:var(--vocs-color_codeCharacterHighlightBackground)!important;box-shadow:0 0 0 4px var(--vocs-color_codeCharacterHighlightBackground)}.vocs_CodeBlock .has-diff{position:relative}.vocs_CodeBlock .line.diff:after{position:absolute;left:var(--vocs-space_8)}.vocs_CodeBlock .line.diff.add{background-color:var(--vocs-color_backgroundGreenTint2)}.vocs_CodeBlock .line.diff.add:after{content:"+";color:var(--vocs-color_textGreen)}.vocs_CodeBlock .line.diff.remove{background-color:var(--vocs-color_backgroundRedTint2);opacity:.6}.vocs_CodeBlock .line.diff.remove>span{filter:grayscale(1)}.vocs_CodeBlock .line.diff.remove:after{content:"-";color:var(--vocs-color_textRed)}.vocs_CodeBlock .has-focused>code>.line:not(.focused),.vocs_CodeBlock .has-focused>code>.twoslash-meta-line:not(.focused){opacity:.3;transition:opacity .2s}.vocs_CodeBlock:hover .has-focused .line:not(.focused),.vocs_CodeBlock:hover .has-focused .twoslash-meta-line:not(.focused){opacity:1;transition:opacity .2s}@media screen and (max-width: 720px){.vocs_CodeBlock{border-radius:0;border-right:none;border-left:none;margin-left:calc(-1 * var(--vocs-space_16));margin-right:calc(-1 * var(--vocs-space_16))}.vocs_CodeBlock pre{border-radius:0}.vocs_CodeBlock .line,.vocs_CodeBlock .twoslash-error-line,.vocs_CodeBlock .twoslash-tag-line{padding:0 var(--vocs-space_16)}.vocs_CodeBlock .line.diff:after{left:var(--vocs-space_6)}}.vocs_Header{border-bottom:1px solid var(--vocs-color_border)}.vocs_Header:not(:last-child){margin-bottom:var(--vocs-space_28);padding-bottom:var(--vocs-space_28)}[data-layout=landing] .vocs_Header{padding-bottom:var(--vocs-space_16)}[data-layout=landing] .vocs_Header:not(:first-child){padding-top:var(--vocs-space_36)}.vocs_H2{font-size:var(--vocs-fontSize_h2);letter-spacing:-.02em}.vocs_H2.vocs_H2:not(:last-child){margin-bottom:var(--vocs-space_24)}:not(.vocs_Header)+.vocs_H2:not(:only-child){border-top:1px solid var(--vocs-color_border);margin-top:var(--vocs-space_56);padding-top:var(--vocs-space_24)}[data-layout=landing] .vocs_H2.vocs_H2{border-top:none;margin-top:var(--vocs-space_24);padding-top:0}.vocs_H3{font-size:var(--vocs-fontSize_h3)}.vocs_H3:not(:first-child){margin-top:var(--vocs-space_18);padding-top:var(--vocs-space_18)}.vocs_H3.vocs_H3:not(:last-child){margin-bottom:var(--vocs-space_24)}.vocs_H2+.vocs_H3{padding-top:var(--vocs-space_0)}.vocs_H4{font-size:var(--vocs-fontSize_h4)}.vocs_H4:not(:first-child){margin-top:var(--vocs-space_18);padding-top:var(--vocs-space_12)}.vocs_H4.vocs_H4:not(:last-child){margin-bottom:var(--vocs-space_24)}.vocs_H3+.vocs_H4{padding-top:var(--vocs-space_0)}.vocs_H5{font-size:var(--vocs-fontSize_h5)}.vocs_H5:not(:first-child){margin-top:var(--vocs-space_16)}.vocs_H5.vocs_H5:not(:last-child){margin-bottom:var(--vocs-space_24)}.vocs_H4+.vocs_H5{padding-top:var(--vocs-space_0)}.vocs_H6{font-size:var(--vocs-fontSize_h6)}.vocs_H6:not(:first-child){margin-top:var(--vocs-space_16)}.vocs_H6.vocs_H6:not(:last-child){margin-bottom:var(--vocs-space_24)}.vocs_H5+.vocs_H6{padding-top:var(--vocs-space_0)}.vocs_Step:not(:last-child){margin-bottom:var(--vocs-space_24)}.vocs_Step_title{margin-bottom:var(--vocs-space_8);position:relative}.vocs_Step_title:before{content:counter(step);align-items:center;background-color:var(--vocs-color_background5);border-radius:100%;border:.5em solid var(--vocs-color_background);box-sizing:content-box;color:var(--vocs-color_text2);counter-increment:step;display:flex;font-size:.625em;font-weight:var(--vocs-fontWeight_regular);height:2em;justify-content:center;left:calc(-25.125px - 1.45em);position:absolute;top:-.25em;width:2em}.vocs_H2+.vocs_Step_content,.vocs_H3+.vocs_Step_content,.vocs_H4+.vocs_Step_content,.vocs_H5+.vocs_Step_content,.vocs_H6+.vocs_Step_content{margin-top:calc(var(--vocs-space_8) * -1)}.vocs_Step_content>*:not(:last-child){margin-bottom:var(--vocs-space_16)}.vocs_Step_content>*:last-child{margin-bottom:var(--vocs-space_0)}@media screen and (max-width: 720px){.vocs_Step_content>.vocs_Tabs,.vocs_Step_content>.vocs_CodeBlock{outline:6px solid var(--vocs-color_background);margin-left:calc(-1 * var(--vocs-space_44) - 2px);margin-right:calc(-1 * var(--vocs-space_16))}.vocs_Step_content .vocs_Tabs pre.shiki{border-top:none}}.vocs_Callout{border-radius:var(--vocs-borderRadius_4);font-size:var(--vocs-fontSize_14);padding:var(--vocs-space_16) var(--vocs-space_20);margin-bottom:var(--vocs-space_16)}.vocs_Callout_note{background-color:var(--vocs-color_noteBackground);border:1px solid var(--vocs-color_noteBorder);color:var(--vocs-color_noteText)}.vocs_Callout_info{background-color:var(--vocs-color_infoBackground);border:1px solid var(--vocs-color_infoBorder);color:var(--vocs-color_infoText)}.vocs_Callout_warning{background-color:var(--vocs-color_warningBackground);border:1px solid var(--vocs-color_warningBorder);color:var(--vocs-color_warningText)}.vocs_Callout_danger{background-color:var(--vocs-color_dangerBackground);border:1px solid var(--vocs-color_dangerBorder);color:var(--vocs-color_dangerText)}.vocs_Callout_tip{background-color:var(--vocs-color_tipBackground);border:1px solid var(--vocs-color_tipBorder);color:var(--vocs-color_tipText)}.vocs_Callout_success{background-color:var(--vocs-color_successBackground);border:1px solid var(--vocs-color_successBorder);color:var(--vocs-color_successText)}@media screen and (max-width: 720px){:not(.vocs_Step_content)>.vocs_Callout{border-radius:0;border-left-width:0;border-right-width:0;margin-left:calc(-1 * var(--vocs-space_16));margin-right:calc(-1 * var(--vocs-space_16))}}.vocs_Content{background-color:var(--vocs-color_background);max-width:var(--vocs-content_width);padding:var(--vocs-content_verticalPadding) var(--vocs-content_horizontalPadding);width:100%}.vocs_Callout>*+.vocs_Details{margin-top:-8px}@layer vocs_global_global;:root.dark{color-scheme:dark}:root.dark pre.shiki span:not(.line),:root.dark :not(pre.shiki) .line span{color:var(--shiki-dark)!important}pre.shiki{background-color:var(--vocs-color_codeBlockBackground)!important}.vocs_Content>*:not(:last-child),.vocs_Details>*:not(:last-child){margin-bottom:var(--vocs-space_24)}.vocs_Callout>*:not(:last-child),.vocs_Callout>.vocs_Details>*:not(:last-child){margin-bottom:var(--vocs-space_16)}.vocs_Content>*:last-child,.vocs_Callout>*:last-child,.vocs_Details>*:last-child{margin-bottom:var(--vocs-space_0)}#app[aria-hidden=true]{background:var(--vocs-color_background)}@layer vocs_global_global{:root{background-color:var(--vocs-color_background);color:var(--vocs-color_text);line-height:var(--vocs-lineHeight_paragraph);font-size:var(--vocs-fontSize_root);font-weight:var(--vocs-fontWeight_regular)}}@media screen and (max-width: 720px){:root{background-color:var(--vocs-color_backgroundDark)}}:root{--vocs-twoslash_borderColor: var(--vocs-color_border2);--vocs-twoslash_underlineColor: currentColor;--vocs-twoslash_popupBackground: var(--vocs-color_background2);--vocs-twoslash_popupShadow: rgba(0, 0, 0, .08) 0px 1px 4px;--vocs-twoslash_matchedColor: inherit;--vocs-twoslash_unmatchedColor: #888;--vocs-twoslash_cursorColor: #8888;--vocs-twoslash_errorColor: var(--vocs-color_textRed);--vocs-twoslash_errorBackground: var(--vocs-color_backgroundRedTint2);--vocs-twoslash_highlightedBackground: var(--vocs-color_background);--vocs-twoslash_highlightedBorder: var(--vocs-color_background);--vocs-twoslash_tagColor: var(--vocs-color_textBlue);--vocs-twoslash_tagBackground: var(--vocs-color_backgroundBlueTint);--vocs-twoslash_tagWarnColor: var(--vocs-color_textYellow);--vocs-twoslash_tagWarnBackground: var(--vocs-color_backgroundYellowTint);--vocs-twoslash_tagAnnotateColor: var(--vocs-color_textGreen);--vocs-twoslash_tagAnnotateBackground: var(--vocs-color_backgroundGreenTint2)}:root.dark{--vocs-twoslash_borderColor: var(--vocs-color_border2);--vocs-twoslash_underlineColor: currentColor;--vocs-twoslash_popupBackground: var(--vocs-color_background5);--vocs-twoslash_popupShadow: rgba(0, 0, 0, .08) 0px 1px 4px;--vocs-twoslash_matchedColor: inherit;--vocs-twoslash_unmatchedColor: #888;--vocs-twoslash_cursorColor: #8888;--vocs-twoslash_errorColor: var(--vocs-color_textRed);--vocs-twoslash_errorBackground: var(--vocs-color_backgroundRedTint2);--vocs-twoslash_highlightedBackground: var(--vocs-color_background);--vocs-twoslash_highlightedBorder: var(--vocs-color_background);--vocs-twoslash_tagColor: var(--vocs-color_textBlue);--vocs-twoslash_tagBackground: var(--vocs-color_backgroundBlueTint);--vocs-twoslash_tagWarnColor: var(--vocs-color_textYellow);--vocs-twoslash_tagWarnBackground: var(--vocs-color_backgroundYellowTint);--vocs-twoslash_tagAnnotateColor: var(--vocs-color_textGreen);--vocs-twoslash_tagAnnotateBackground: var(--vocs-color_backgroundGreenTint2)}:root .twoslash-popup-info-hover,:root .twoslash-popup-info{--shiki-light-bg: var(--vocs-color_background2)}:root .twoslash-popup-info{width:-moz-max-content;width:max-content}:root.dark .twoslash-popup-info,:root.dark .twoslash-popup-info-hover{--shiki-dark-bg: var(--vocs-color_background5)}.twoslash-query-persisted>.twoslash-popup-info{z-index:1}:not(.twoslash-query-persisted)>.twoslash-popup-info{z-index:2}.twoslash:hover .twoslash-hover{border-color:var(--vocs-twoslash_underlineColor)}.twoslash .twoslash-hover{border-bottom:1px dotted transparent;transition-timing-function:ease;transition:border-color .3s}.twoslash-query-persisted{position:relative}.twoslash .twoslash-popup-info{position:absolute;top:0;left:0;opacity:0;display:inline-block;transform:translateY(1.1em);background:var(--vocs-twoslash_popupBackground);border:1px solid var(--vocs-twoslash_borderColor);transition:opacity .3s;border-radius:4px;max-width:540px;padding:4px 6px;pointer-events:none;text-align:left;z-index:20;white-space:pre-wrap;-webkit-user-select:none;-moz-user-select:none;user-select:none;box-shadow:var(--vocs-twoslash_popupShadow)}.twoslash .twoslash-popup-info-hover{background:var(--vocs-twoslash_popupBackground);border:1px solid var(--vocs-twoslash_borderColor);border-radius:4px;box-shadow:var(--vocs-twoslash_popupShadow);display:inline-block;max-width:500px;pointer-events:auto;position:fixed;opacity:1;transition:opacity .3s;white-space:pre-wrap;-webkit-user-select:none;-moz-user-select:none;user-select:none;z-index:20}.twoslash .twoslash-popup-scroll-container{max-height:300px;padding:4px 0;overflow-y:auto;-ms-overflow-style:none;scrollbar-width:none}.twoslash-popup-arrow{position:absolute;top:-4px;left:1em;border-top:1px solid var(--vocs-twoslash_borderColor);border-right:1px solid var(--vocs-twoslash_borderColor);background:var(--vocs-twoslash_popupBackground);transform:rotate(-45deg);width:6px;height:6px;pointer-events:none}.twoslash .twoslash-popup-scroll-container::-webkit-scrollbar{display:none}.twoslash .twoslash-popup-jsdoc{border-top:1px solid var(--vocs-color_border2);color:var(--vocs-color_text);font-family:sans-serif;font-weight:500;margin-top:4px;padding:4px 10px 0}.twoslash-tag-line+.twoslash-tag-line{margin-top:-.2em}.twoslash-query-persisted .twoslash-popup-info{z-index:9;transform:translateY(1.5em)}.twoslash-hover:hover .twoslash-popup-info,.twoslash-query-persisted .twoslash-popup-info{opacity:1;pointer-events:auto}.twoslash-popup-info:hover,.twoslash-popup-info-hover:hover{-webkit-user-select:auto;-moz-user-select:auto;user-select:auto}.twoslash-error-line{position:relative;background-color:var(--vocs-twoslash_errorBackground);border-left:2px solid var(--vocs-twoslash_errorColor);color:var(--vocs-twoslash_errorColor);margin:.2em 0}.twoslash-error{background:url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%206%203'%20enable-background%3D'new%200%200%206%203'%20height%3D'3'%20width%3D'6'%3E%3Cg%20fill%3D'%23c94824'%3E%3Cpolygon%20points%3D'5.5%2C0%202.5%2C3%201.1%2C3%204.1%2C0'%2F%3E%3Cpolygon%20points%3D'4%2C0%206%2C2%206%2C0.6%205.4%2C0'%2F%3E%3Cpolygon%20points%3D'0%2C2%201%2C3%202.4%2C3%200%2C0.6'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") repeat-x bottom left;padding-bottom:2px}.twoslash-completion-cursor{position:relative}.twoslash-completion-cursor .twoslash-completion-list{-webkit-user-select:none;-moz-user-select:none;user-select:none;position:absolute;top:0;left:0;transform:translateY(1.2em);margin:3px 0 0 -1px;z-index:8;box-shadow:var(--vocs-twoslash_popupShadow);background:var(--vocs-twoslash_popupBackground);border:1px solid var(--vocs-twoslash_borderColor)}.twoslash-completion-list{border-radius:4px;font-size:.8rem;padding:4px;display:flex;flex-direction:column;gap:4px;width:240px}.twoslash-completion-list:hover{-webkit-user-select:auto;-moz-user-select:auto;user-select:auto}.twoslash-completion-list:before{content:" ";background-color:var(--vocs-twoslash_cursorColor);width:2px;position:absolute;top:-1.6em;height:1.4em;left:-1px}.twoslash-completion-list .twoslash-completion-list-item{overflow:hidden;display:flex;align-items:center;gap:.5em;line-height:1em}.twoslash-completion-list .twoslash-completion-list-item span.twoslash-completions-unmatched.twoslash-completions-unmatched.twoslash-completions-unmatched{color:var(--vocs-twoslash_unmatchedColor)!important}.twoslash-completion-list .deprecated{text-decoration:line-through;opacity:.5}.twoslash-completion-list .twoslash-completion-list-item span.twoslash-completions-matched.twoslash-completions-unmatched.twoslash-completions-unmatched{color:var(--vocs-twoslash_matchedColor)!important}.twoslash-tag-line{position:relative;background-color:var(--vocs-twoslash_tagBackground);border-left:2px solid var(--vocs-twoslash_tagColor);color:var(--vocs-twoslash_tagColor);margin:.2em 0;display:flex;align-items:center;gap:.3em}.twoslash-tag-line+.line[data-empty-line]+.twoslash-tag-line{margin-top:-1.95em}.twoslash-tag-line .twoslash-tag-icon{width:1.1em;color:inherit}.twoslash-tag-line.twoslash-tag-error-line{background-color:var(--vocs-twoslash_errorBackground);border-left:2px solid var(--vocs-twoslash_errorColor);color:var(--vocs-twoslash_errorColor)}.twoslash-tag-line.twoslash-tag-warn-line{background-color:var(--vocs-twoslash_tagWarnBackground);border-left:2px solid var(--vocs-twoslash_tagWarnColor);color:var(--vocs-twoslash_tagWarnColor)}.twoslash-tag-line.twoslash-tag-annotate-line{background-color:var(--vocs-twoslash_tagAnnotateBackground);border-left:2px solid var(--vocs-twoslash_tagAnnotateColor);color:var(--vocs-twoslash_tagAnnotateColor)}.twoslash-highlighted{border-radius:var(--vocs-borderRadius_2);background-color:var(--vocs-color_codeCharacterHighlightBackground)!important;box-shadow:0 0 0 4px var(--vocs-color_codeCharacterHighlightBackground)}@media (prefers-reduced-motion: reduce){.twoslash *{transition:none!important}}.vocs_ExternalLink:after{content:"";background-color:currentColor;color:var(--vocs_ExternalLink_arrowColor);display:inline-block;height:.5em;margin-left:.325em;margin-right:.25em;width:.5em;-webkit-mask:var(--vocs_ExternalLink_iconUrl) no-repeat center / contain;mask:var(--vocs_ExternalLink_iconUrl) no-repeat center / contain}.vocs_Link_accent_underlined{color:var(--vocs-color_link);font-weight:var(--vocs-fontWeight_medium);text-underline-offset:var(--vocs-space_2);text-decoration:underline;transition:color .1s}.vocs_Link_accent_underlined:hover{color:var(--vocs-color_linkHover)}.vocs_Link_styleless{--vocs_ExternalLink_arrowColor: var(--vocs-color_text3)}.vocs_NotFound{align-items:center;display:flex;flex-direction:column;max-width:400px;margin:0 auto;padding-top:var(--vocs-space_64)}.vocs_NotFound_divider{border-color:var(--vocs-color_border);width:50%}.vocs_H1{font-size:var(--vocs-fontSize_h1);letter-spacing:-.02em}.vocs_Heading{align-items:center;color:var(--vocs-color_heading);font-weight:var(--vocs-fontWeight_semibold);gap:.25em;line-height:var(--vocs-lineHeight_heading);position:relative}.vocs_Heading_slugTarget{position:absolute;top:0;visibility:hidden}@media screen and (min-width: 1081px){.vocs_Heading_slugTarget{top:calc(-1 * (var(--vocs-topNav_height)))}.vocs_Header .vocs_Heading_slugTarget,.vocs_Step_title .vocs_Heading_slugTarget,.vocs_Header+.vocs_Heading .vocs_Heading_slugTarget{top:calc(-1 * (var(--vocs-topNav_height) + var(--vocs-space_24)))}}@media screen and (max-width: 1080px){.vocs_Heading_slugTarget{top:calc(-1 * var(--vocs-topNav_curtainHeight))}.vocs_Header .vocs_Heading_slugTarget,.vocs_Header+.vocs_Heading .vocs_Heading_slugTarget{top:calc(-1 * calc(var(--vocs-topNav_curtainHeight) + var(--vocs-space_24)))}}.vocs_Blockquote{border-left:2px solid var(--vocs-color_blockquoteBorder);padding-left:var(--vocs-space_16);margin-bottom:var(--vocs-space_16)}.vocs_H2+.vocs_List,.vocs_H3+.vocs_List,.vocs_H4+.vocs_List,.vocs_H5+.vocs_List,.vocs_H6+.vocs_List{margin-top:calc(var(--vocs-space_8) * -1)}.vocs_Paragraph+.vocs_List{margin-top:calc(-1 * var(--vocs-space_8))}.vocs_List_ordered{list-style:decimal;padding-left:var(--vocs-space_20);margin-bottom:var(--vocs-space_16)}.vocs_List_ordered .vocs_List_ordered{list-style:lower-alpha}.vocs_List_ordered .vocs_List_ordered .vocs_List_ordered{list-style:lower-roman}.vocs_List_unordered{list-style:disc;padding-left:var(--vocs-space_24);margin-bottom:var(--vocs-space_16)}.vocs_List_unordered .vocs_List_unordered{list-style:circle}.vocs_List_ordered .vocs_List_ordered,.vocs_List_unordered .vocs_List_unordered,.vocs_List_ordered .vocs_List_unordered,.vocs_List_unordered .vocs_List_ordered{margin-bottom:var(--vocs-space_0);padding-top:var(--vocs-space_8);padding-left:var(--vocs-space_16);padding-bottom:var(--vocs-space_0)}.vocs_List_unordered.contains-task-list{list-style:none;padding-left:var(--vocs-space_12)}.vocs_Paragraph{line-height:var(--vocs-lineHeight_paragraph)}.vocs_Blockquote>.vocs_Paragraph{color:var(--vocs-color_blockquoteText);margin-bottom:var(--vocs-space_8)}.vocs_H2+.vocs_Paragraph,.vocs_H3+.vocs_Paragraph,.vocs_H4+.vocs_Paragraph,.vocs_H5+.vocs_Paragraph,.vocs_H6+.vocs_Paragraph,.vocs_List+.vocs_Paragraph{margin-top:calc(var(--vocs-space_8) * -1)}.vocs_Paragraph+.vocs_Paragraph{margin-top:calc(-1 * var(--vocs-space_8))}:root:not(.dark) .vocs_utils_visibleDark{display:none}:root.dark .vocs_utils_visibleLight{display:none}.vocs_utils_visuallyHidden{clip:rect(0 0 0 0);clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}.vocs_DesktopSearch_search{align-items:center;background-color:var(--vocs-color_backgroundDark);border:1px solid var(--vocs-color_backgroundDark);border-radius:var(--vocs-borderRadius_8);color:var(--vocs-color_text2);display:flex;font-size:var(--vocs-fontSize_14);font-weight:var(--vocs-fontWeight_medium);gap:var(--vocs-space_6);height:var(--vocs-space_40);max-width:15.5rem;padding-left:var(--vocs-space_12);padding-right:var(--vocs-space_12);position:relative;width:100%;transition:color .1s,border-color .1s}.vocs_DesktopSearch_search:hover{color:var(--vocs-color_text);border-color:var(--vocs-color_text3)}.vocs_DesktopSearch_searchCommand{align-items:center;border:1.5px solid var(--vocs-color_text3);border-radius:var(--vocs-borderRadius_4);color:var(--vocs-color_text3);display:flex;height:var(--vocs-space_12);justify-content:center;margin-left:auto;margin-top:var(--vocs-space_1);padding:var(--vocs-space_1);width:var(--vocs-space_12)}.vocs_Kbd{color:var(--vocs-color_text2);display:inline-block;border-radius:var(--vocs-borderRadius_3);font-size:var(--vocs-fontSize_11);font-family:var(--vocs-fontFamily_default);font-feature-settings:cv08;line-height:105%;min-width:20px;padding:var(--vocs-space_3);padding-left:var(--vocs-space_4);padding-right:var(--vocs-space_4);padding-top:var(--vocs-space_3);text-align:center;text-transform:capitalize;vertical-align:baseline;border:.5px solid var(--vocs-color_border);background-color:var(--vocs-color_background3);box-shadow:var(--vocs-color_shadow2) 0 2px 0 0}.vocs_KeyboardShortcut{align-items:center;display:inline-flex;gap:var(--vocs-space_6);font-size:var(--vocs-fontSize_12)}.vocs_KeyboardShortcut_kbdGroup{align-items:center;display:inline-flex;gap:var(--vocs-space_3)}@media screen and (max-width: 720px){.vocs_KeyboardShortcut{display:none}}@keyframes vocs_SearchDialog_fadeIn{0%{opacity:0}to{opacity:1}}@keyframes vocs_SearchDialog_fadeAndSlideIn{0%{opacity:0;transform:translate(-50%,-5%) scale(.96)}to{opacity:1;transform:translate(-50%) scale(1)}}.vocs_SearchDialog{animation:vocs_SearchDialog_fadeAndSlideIn .1s ease-in-out;background:var(--vocs-color_background);border-radius:var(--vocs-borderRadius_6);display:flex;flex-direction:column;gap:var(--vocs-space_8);height:-moz-min-content;height:min-content;left:50%;margin:64px auto;max-height:min(100vh - 128px,900px);padding:var(--vocs-space_12);padding-bottom:var(--vocs-space_8);position:fixed;top:0;transform:translate(-50%);width:min(100vw - 60px,775px);z-index:var(--vocs-zIndex_backdrop)}.vocs_SearchDialog_overlay{animation:vocs_SearchDialog_fadeIn .1s ease-in-out;background:#0009;position:fixed;top:0;right:0;bottom:0;left:0;z-index:var(--vocs-zIndex_backdrop)}.vocs_SearchDialog_searchBox{align-items:center;border:1px solid var(--vocs-color_border);border-radius:var(--vocs-borderRadius_4);display:flex;gap:var(--vocs-space_8);padding-left:var(--vocs-space_8);padding-right:var(--vocs-space_8);margin-bottom:var(--vocs-space_8);width:100%}.vocs_SearchDialog_searchBox:focus-within{border-color:var(--vocs-color_borderAccent)}.vocs_SearchDialog_searchInput{background:transparent;display:flex;font-size:var(--vocs-fontSize_16);height:var(--vocs-space_40);width:100%}.vocs_SearchDialog_searchInput:focus{outline:none}.vocs_SearchDialog_searchInput::-moz-placeholder{color:var(--vocs-color_text4)}.vocs_SearchDialog_searchInput::placeholder{color:var(--vocs-color_text4)}.vocs_SearchDialog_searchInputIcon{color:var(--vocs-color_text3)}.vocs_SearchDialog_searchInputIconMobile{display:none}.vocs_SearchDialog_results{display:flex;flex-direction:column;gap:var(--vocs-space_8);overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;width:100%}.vocs_SearchDialog_result{border:1.5px solid var(--vocs-color_border);border-radius:var(--vocs-borderRadius_4);width:100%}.vocs_SearchDialog_result:focus-within{border-color:var(--vocs-color_borderAccent)}.vocs_SearchDialog_result>a{display:flex;flex-direction:column;gap:var(--vocs-space_8);min-height:var(--vocs-space_36);outline:none;justify-content:center;padding:var(--vocs-space_12);width:100%}.vocs_SearchDialog_resultSelected{border-color:var(--vocs-color_borderAccent)}.vocs_SearchDialog_resultIcon{color:var(--vocs-color_textAccent);margin-right:1px;width:15px}.vocs_SearchDialog_titles{align-items:center;display:flex;flex-wrap:wrap;font-weight:var(--vocs-fontWeight_medium);gap:var(--vocs-space_4);line-height:22px}.vocs_SearchDialog_title{align-items:center;display:flex;gap:var(--vocs-space_4);white-space:nowrap}.vocs_SearchDialog_titleIcon{color:var(--vocs-color_text);display:inline-block;opacity:.5}.vocs_SearchDialog_resultSelected .vocs_SearchDialog_title,.vocs_SearchDialog_resultSelected .vocs_SearchDialog_titleIcon{color:var(--vocs-color_textAccent)}.vocs_SearchDialog_content{padding:0}.vocs_SearchDialog_excerpt{max-height:8.75rem;overflow:hidden;opacity:.5;position:relative}.vocs_SearchDialog_excerpt:before{content:"";position:absolute;top:-1px;left:0;width:100%;height:8px;background:linear-gradient(var(--vocs-color_background),transparent);z-index:1000}.vocs_SearchDialog_excerpt:after{content:"";position:absolute;bottom:-1px;left:0;width:100%;height:12px;background:linear-gradient(transparent,var(--vocs-color_background));z-index:1000}.vocs_SearchDialog_title mark,.vocs_SearchDialog_excerpt mark{background-color:var(--vocs-color_searchHighlightBackground);color:var(--vocs-color_searchHighlightText);border-radius:var(--vocs-borderRadius_2);padding-bottom:0;padding-left:var(--vocs-space_2);padding-right:var(--vocs-space_2);padding-top:0}.vocs_SearchDialog_resultSelected .vocs_SearchDialog_excerpt{opacity:1}.vocs_SearchDialog_searchShortcuts{align-items:center;color:var(--vocs-color_text2);display:flex;gap:var(--vocs-space_20);font-size:var(--vocs-fontSize_14)}.vocs_SearchDialog_searchShortcutsGroup{align-items:center;display:inline-flex;gap:var(--vocs-space_3);margin-right:var(--vocs-space_6)}@media screen and (max-width: 720px){.vocs_SearchDialog{border-radius:0;height:calc(100vh - env(safe-area-inset-top) - env(safe-area-inset-bottom));margin:0;max-height:unset;width:100vw}.vocs_SearchDialog_searchInputIconDesktop{display:none}.vocs_SearchDialog_searchInputIconMobile{display:block}.vocs_SearchDialog_excerpt{opacity:1}.vocs_SearchDialog_searchShortcuts{display:none}}.vocs_DesktopTopNav{align-items:center;display:flex;justify-content:space-between;padding:0 var(--vocs-topNav_horizontalPadding);height:var(--vocs-topNav_height)}.vocs_DesktopTopNav_withLogo{padding-left:calc(((100% - var(--vocs-content_width)) / 2) + var(--vocs-topNav_horizontalPadding))}.vocs_DesktopTopNav_button{border-radius:var(--vocs-borderRadius_4);padding:var(--vocs-space_8)}.vocs_DesktopTopNav_content{right:calc(-1 * var(--vocs-space_24))}.vocs_DesktopTopNav_curtain{background:linear-gradient(var(--vocs-color_background),transparent 70%);height:30px;opacity:.98;width:100%}.vocs_DesktopTopNav_divider{background-color:var(--vocs-color_border);height:35%;width:1px}.vocs_DesktopTopNav_group{align-items:center;display:flex}.vocs_DesktopTopNav_icon{color:var(--vocs-color_text2);transition:color .1s}.vocs_DesktopTopNav_button:hover .vocs_DesktopTopNav_icon{color:var(--vocs-color_text)}.vocs_DesktopTopNav_item{align-items:center;display:flex;height:100%;position:relative}.vocs_DesktopTopNav_logo{padding-left:var(--vocs-sidebar_horizontalPadding);padding-right:var(--vocs-sidebar_horizontalPadding);width:var(--vocs-sidebar_width)}.vocs_DesktopTopNav_logoWrapper{display:flex;height:100%;justify-content:flex-end;left:0;position:absolute;width:var(--vocs_DocsLayout_leftGutterWidth)}.vocs_DesktopTopNav_section{align-items:center;display:flex;height:100%;gap:var(--vocs-space_24)}@media screen and (max-width: 1080px){.vocs_DesktopTopNav,.vocs_DesktopTopNav_curtain{display:none}}@media screen and (max-width: 1280px){.vocs_DesktopTopNav_hideCompact{display:none}}.vocs_Icon{align-items:center;display:flex;height:var(--vocs_Icon_size);width:var(--vocs_Icon_size)}:root:not(.dark) .vocs_Logo_logoDark{display:none}:root.dark .vocs_Logo_logoLight{display:none}.vocs_NavLogo_logoImage{height:50%;width:auto}.vocs_NavLogo_title{font-size:var(--vocs-fontSize_18);font-weight:var(--vocs-fontWeight_semibold);line-height:var(--vocs-lineHeight_heading)}@keyframes vocs_NavigationMenu_fadeIn{0%{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:translateY(0)}}.vocs_NavigationMenu_list{display:flex;gap:var(--vocs-space_20)}.vocs_NavigationMenu_link{align-items:center;display:flex;font-size:var(--vocs-fontSize_14);font-weight:var(--vocs-fontWeight_medium);height:100%}.vocs_NavigationMenu_link:hover,.vocs_NavigationMenu_link[data-active=true]{color:var(--vocs-color_textAccent)}.vocs_NavigationMenu_trigger:after{content:"";background-color:currentColor;color:var(--vocs-color_text3);display:inline-block;height:.625em;margin-left:.325em;width:.625em;-webkit-mask:var(--vocs_NavigationMenu_chevronDownIcon) no-repeat center / contain;mask:var(--vocs_NavigationMenu_chevronDownIcon) no-repeat center / contain}.vocs_NavigationMenu_content{background-color:var(--vocs-color_background2);border:1px solid var(--vocs-color_border);border-radius:var(--vocs-borderRadius_4);box-shadow:0 3px 10px var(--vocs-color_shadow);display:flex;flex-direction:column;padding:var(--vocs-space_12) var(--vocs-space_16);position:absolute;top:calc(100% + var(--vocs-space_8));min-width:200px;z-index:var(--vocs-zIndex_popover);animation:vocs_NavigationMenu_fadeIn .5s cubic-bezier(.16,1,.3,1)}.vocs_Footer{--vocs_Footer_iconWidth: 24px;display:flex;flex-direction:column;gap:var(--vocs-space_32);max-width:var(--vocs-content_width);overflow-x:hidden;padding:var(--vocs-space_28) var(--vocs-content_horizontalPadding) var(--vocs-space_48)}.vocs_Footer_container{border-bottom:1px solid var(--vocs-color_border);display:flex;justify-content:space-between;padding-bottom:var(--vocs-space_16)}.vocs_Footer_editLink{align-items:center;display:flex;font-size:var(--vocs-fontSize_14);gap:var(--vocs-space_8);text-decoration:none}.vocs_Footer_lastUpdated{color:var(--vocs-color_text3);font-size:var(--vocs-fontSize_14)}.vocs_Footer_navigation{display:flex;justify-content:space-between}.vocs_Footer_navigationIcon{width:var(--vocs_Footer_iconWidth)}.vocs_Footer_navigationIcon_left{display:flex}.vocs_Footer_navigationIcon_right{display:flex;justify-content:flex-end}.vocs_Footer_navigationItem{display:flex;flex-direction:column;gap:var(--vocs-space_4)}.vocs_Footer_navigationItem_right{align-items:flex-end}.vocs_Footer_navigationText{align-items:center;display:flex;font-size:var(--vocs-fontSize_18);font-weight:var(--vocs-fontWeight_medium)}.vocs_Footer_navigationTextInner{overflow:hidden;text-overflow:ellipsis;width:26ch;white-space:pre}@media screen and (max-width: 720px){.vocs_Footer_navigationIcon_left,.vocs_Footer_navigationIcon_right{justify-content:center}.vocs_Footer_navigationText{font-size:var(--vocs-fontSize_12)}}@media screen and (max-width: 480px){.vocs_Footer_navigationTextInner{width:20ch}}.vocs_MobileSearch_searchButton{align-items:center;display:flex;color:var(--vocs-color_text);height:var(--vocs-space_28);justify-content:center;width:var(--vocs-space_28)}@keyframes vocs_MobileTopNav_fadeIn{0%{opacity:0}to{opacity:1}}.vocs_MobileTopNav{align-items:center;background-color:var(--vocs-color_backgroundDark);border-bottom:1px solid var(--vocs-color_border);display:none;height:100%;justify-content:space-between;padding:var(--vocs-space_0) var(--vocs-content_horizontalPadding);width:100%}.vocs_MobileTopNav_button{border-radius:var(--vocs-borderRadius_4);padding:var(--vocs-space_8)}.vocs_MobileTopNav_content{left:calc(-1 * var(--vocs-space_24))}.vocs_MobileTopNav_curtain{align-items:center;background-color:var(--vocs-color_backgroundDark);border-bottom:1px solid var(--vocs-color_border);display:none;justify-content:space-between;font-size:var(--vocs-fontSize_13);font-weight:var(--vocs-fontWeight_medium);height:100%;padding:var(--vocs-space_0) var(--vocs-content_horizontalPadding);width:100%}.vocs_MobileTopNav_curtainGroup{align-items:center;display:flex;gap:var(--vocs-space_12)}.vocs_MobileTopNav_divider{background-color:var(--vocs-color_border);height:35%;width:1px}.vocs_MobileTopNav_group{align-items:center;display:flex;height:100%}.vocs_MobileTopNav_icon{color:var(--vocs-color_text2);transition:color .1s}.vocs_MobileTopNav_button:hover .vocs_MobileTopNav_icon{color:var(--vocs-color_text)}.vocs_MobileTopNav_item{position:relative}.vocs_MobileTopNav_logo{align-items:center;display:flex;height:var(--vocs-topNav_height)}.vocs_MobileTopNav_logoImage{height:30%}.vocs_MobileTopNav_menuTrigger{align-items:center;display:flex;gap:var(--vocs-space_8)}.vocs_MobileTopNav_menuTitle{max-width:22ch;overflow:hidden;text-align:left;text-overflow:ellipsis;white-space:pre}.vocs_MobileTopNav_navigation{margin-left:var(--vocs-space_8)}.vocs_MobileTopNav_navigationContent{display:flex;flex-direction:column;margin-left:var(--vocs-space_8)}.vocs_MobileTopNav_navigationItem{align-items:center;display:flex;justify-content:flex-start;font-size:var(--vocs-fontSize_14);font-weight:var(--vocs-fontWeight_medium);width:100%}.vocs_MobileTopNav_navigationItem:hover,.vocs_MobileTopNav_navigationItem[data-active=true],.vocs_MobileTopNav_navigationItem[data-state=open]{color:var(--vocs-color_textAccent)}.vocs_MobileTopNav_trigger:after{content:"";background-color:currentColor;display:inline-block;height:.625em;margin-left:.325em;width:.625em;-webkit-mask:var(--vocs_MobileTopNav_chevronDownIcon) no-repeat center / contain;mask:var(--vocs_MobileTopNav_chevronDownIcon) no-repeat center / contain}.vocs_MobileTopNav_trigger[data-state=open]:after{-webkit-mask:var(--vocs_MobileTopNav_chevronUpIcon) no-repeat center / contain;mask:var(--vocs_MobileTopNav_chevronUpIcon) no-repeat center / contain}.vocs_MobileTopNav_outlineTrigger{animation:vocs_MobileTopNav_fadeIn .5s cubic-bezier(.16,1,.3,1);align-items:center;color:var(--vocs-color_text2);display:flex;gap:var(--vocs-space_6)}.vocs_MobileTopNav_outlineTrigger[data-state=open]{color:var(--vocs-color_textAccent)}.vocs_MobileTopNav_outlinePopover{display:none;overflow-y:scroll;padding:var(--vocs-space_16);max-height:80vh}.vocs_MobileTopNav_section{align-items:center;display:flex;height:100%;gap:var(--vocs-space_16)}.vocs_MobileTopNav_separator{background-color:var(--vocs-color_border);height:1.75em;width:1px}.vocs_MobileTopNav_sidebarPopover{display:none;overflow-y:scroll;padding:0 var(--vocs-sidebar_horizontalPadding);max-height:80vh;width:var(--vocs-sidebar_width)}.vocs_MobileTopNav_title{font-size:var(--vocs-fontSize_18);font-weight:var(--vocs-fontWeight_semibold);line-height:var(--vocs-lineHeight_heading)}.vocs_MobileTopNav_topNavPopover{display:none;overflow-y:scroll;padding:var(--vocs-sidebar_verticalPadding) var(--vocs-sidebar_horizontalPadding);max-height:80vh;width:var(--vocs-sidebar_width)}@media screen and (max-width: 1080px){.vocs_MobileTopNav,.vocs_MobileTopNav_curtain{display:flex}.vocs_MobileTopNav_outlinePopover{display:block;max-width:300px}.vocs_MobileTopNav_sidebarPopover{display:block}.vocs_MobileTopNav_topNavPopover{display:flex;flex-direction:column}}@media screen and (max-width: 720px){.vocs_MobileTopNav_navigation:not(.vocs_MobileTopNav_navigation_compact){display:none}}@media screen and (min-width: 721px){.vocs_MobileTopNav_navigation.vocs_MobileTopNav_navigation_compact{display:none}}.vocs_Outline{width:100%}.vocs_Outline_nav{display:flex;flex-direction:column;gap:var(--vocs-space_8)}.vocs_DocsLayout_gutterRight .vocs_Outline_nav{border-left:1px solid var(--vocs-color_border);padding-left:var(--vocs-space_16)}.vocs_Outline_heading{color:var(--vocs-color_title);font-size:var(--vocs-fontSize_13);font-weight:var(--vocs-fontWeight_semibold);line-height:var(--vocs-lineHeight_heading);letter-spacing:.025em}.vocs_Outline_items .vocs_Outline_items{padding-left:var(--vocs-space_12)}.vocs_Outline_item{line-height:var(--vocs-lineHeight_outlineItem);margin-bottom:var(--vocs-space_8);overflow:hidden;text-overflow:ellipsis;text-wrap:nowrap}.vocs_Outline_link{color:var(--vocs-color_text2);font-weight:var(--vocs-fontWeight_medium);font-size:var(--vocs-fontSize_13);transition:color .1s}.vocs_Outline_link[data-active=true]{color:var(--vocs-color_textAccent)}.vocs_Outline_link[data-active=true]:hover{color:var(--vocs-color_textAccentHover)}.vocs_Outline_link:hover{color:var(--vocs-color_text)}.vocs_Popover{background-color:var(--vocs-color_background2);border:1px solid var(--vocs-color_border);border-radius:var(--vocs-borderRadius_4);margin:0 var(--vocs-space_6);z-index:var(--vocs-zIndex_popover)}.vocs_Sidebar{display:flex;flex-direction:column;font-size:var(--vocs-fontSize_14);overflow-y:auto;width:var(--vocs-sidebar_width)}.vocs_Sidebar_backLink{text-align:left}.vocs_Sidebar_divider{background-color:var(--vocs-color_border);width:100%;height:1px}.vocs_Sidebar_navigation{outline:0}.vocs_Sidebar_navigation:first-child{padding-top:var(--vocs-space_16)}.vocs_Sidebar_group{display:flex;flex-direction:column}.vocs_Sidebar_logo{align-items:center;display:flex;height:var(--vocs-topNav_height);padding-top:var(--vocs-space_4)}.vocs_Sidebar_logoWrapper{background-color:var(--vocs-color_backgroundDark);position:sticky;top:0;z-index:var(--vocs-zIndex_gutterTopCurtain)}.vocs_Sidebar_section{display:flex;flex-direction:column;font-size:1em}.vocs_Sidebar_navigation>.vocs_Sidebar_group>.vocs_Sidebar_section+.vocs_Sidebar_section{border-top:1px solid var(--vocs-color_border)}.vocs_Sidebar_levelCollapsed{gap:var(--vocs-space_4);padding-bottom:var(--vocs-space_12)}.vocs_Sidebar_levelInset{border-left:1px solid var(--vocs-color_border);font-size:var(--vocs-fontSize_13);margin-top:var(--vocs-space_8);padding-left:var(--vocs-space_12)}.vocs_Sidebar_levelInset.vocs_Sidebar_levelInset.vocs_Sidebar_levelInset{font-weight:var(--vocs-fontWeight_regular);padding-top:0;padding-bottom:0}.vocs_Sidebar_items{display:flex;flex-direction:column;gap:.625em;padding-top:var(--vocs-space_16);padding-bottom:var(--vocs-space_16);font-weight:var(--vocs-fontWeight_medium)}.vocs_Sidebar_level .vocs_Sidebar_items{padding-top:var(--vocs-space_6)}.vocs_Sidebar_item{color:var(--vocs-color_text3);letter-spacing:.25px;line-height:var(--vocs-lineHeight_sidebarItem);width:100%;transition:color .1s}.vocs_Sidebar_item:hover{color:var(--vocs-color_text)}.vocs_Sidebar_item[data-active=true]{color:var(--vocs-color_textAccent)}.vocs_Sidebar_sectionHeader{align-items:center;display:flex;justify-content:space-between}.vocs_Sidebar_level>.vocs_Sidebar_sectionHeader{padding-top:var(--vocs-space_12)}.vocs_Sidebar_sectionHeaderActive{color:var(--vocs-color_text)}.vocs_Sidebar_sectionTitle{color:var(--vocs-color_title);font-size:var(--vocs-fontSize_14);font-weight:var(--vocs-fontWeight_semibold);letter-spacing:.25px;width:100%}.vocs_Sidebar_sectionCollapse{color:var(--vocs-color_text3);transform:rotate(90deg);transition:transform .25s}.vocs_Sidebar_sectionCollapseActive{transform:rotate(0)}@media screen and (max-width: 1080px){.vocs_Sidebar{width:100%}.vocs_Sidebar_logoWrapper{display:none}}.vocs_SkipLink{background:var(--vocs-color_background);border-radius:var(--vocs-borderRadius_4);color:var(--vocs-color_link);font-size:var(--vocs-fontSize_14);font-weight:var(--vocs-fontWeight_semibold);left:var(--vocs-space_8);padding:var(--vocs-space_8) var(--vocs-space_16);position:fixed;text-decoration:none;top:var(--vocs-space_8);z-index:999}.vocs_SkipLink:focus{clip:auto;clip-path:none;height:auto;width:auto}@layer vocs_preflight{*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }}.mb-4{margin-bottom:1rem}.mt-8{margin-top:2rem}.flex{display:flex}.w-full{width:100%}.max-w-5xl{max-width:64rem}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.justify-between{justify-content:space-between}.gap-2{gap:.5rem}.gap-4{gap:1rem}.rounded{border-radius:.25rem}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-\[--vocs-color_codeInlineBorder\]{border-color:var(--vocs-color_codeInlineBorder)}.border-gray-500{--tw-border-opacity: 1;border-color:rgb(107 114 128 / var(--tw-border-opacity))}.border-transparent{border-color:transparent}.bg-\[--vocs-color_codeBlockBackground\]{background-color:var(--vocs-color_codeBlockBackground)}.bg-\[--vocs-color_codeTitleBackground\]{background-color:var(--vocs-color_codeTitleBackground)}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.px-2{padding-left:.5rem;padding-right:.5rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-4{padding-top:1rem;padding-bottom:1rem}.pb-2{padding-bottom:.5rem}.text-left{text-align:left}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.font-bold{font-weight:700}.text-\[--vocs-color_heading\]{color:var(--vocs-color_heading)}.text-\[--vocs-color_text3\]{color:var(--vocs-color_text3)}.hover\:text-\[--vocs-color_text\]:hover{color:var(--vocs-color_text)}@media (min-width: 768px){.md\:flex-row{flex-direction:row}}.\[\&\[data-state\=\'active\'\]\]\:border-\[--vocs-color_borderAccent\][data-state=active]{border-color:var(--vocs-color_borderAccent)}.\[\&\[data-state\=\'active\'\]\]\:text-\[--vocs-color_text\][data-state=active]{color:var(--vocs-color_text)}.vocs_Section{border-top:1px solid var(--vocs-color_border);margin-top:var(--vocs-space_56);padding-top:var(--vocs-space_24)}.vocs_Anchor{color:var(--vocs-color_link);font-weight:var(--vocs-fontWeight_medium);text-underline-offset:var(--vocs-space_2);text-decoration:underline;transition:color .1s}.vocs_Callout_danger .vocs_Anchor{color:var(--vocs-color_dangerText)}.vocs_Callout_danger .vocs_Anchor:hover{color:var(--vocs-color_dangerTextHover)}.vocs_Callout_info .vocs_Anchor{color:var(--vocs-color_infoText)}.vocs_Callout_info .vocs_Anchor:hover{color:var(--vocs-color_infoTextHover)}.vocs_Callout_success .vocs_Anchor{color:var(--vocs-color_successText)}.vocs_Callout_success .vocs_Anchor:hover{color:var(--vocs-color_successTextHover)}.vocs_Callout_tip .vocs_Anchor{color:var(--vocs-color_tipText)}.vocs_Callout_tip .vocs_Anchor:hover{color:var(--vocs-color_tipTextHover)}.vocs_Callout_warning .vocs_Anchor{color:var(--vocs-color_warningText)}.vocs_Callout_warning .vocs_Anchor:hover{color:var(--vocs-color_warningTextHover)}.vocs_Anchor:hover{color:var(--vocs-color_linkHover)}.vocs_Section a.data-footnote-backref{color:var(--vocs-color_link);font-weight:var(--vocs-fontWeight_medium);text-underline-offset:var(--vocs-space_2);text-decoration:underline}.vocs_Section a.data-footnote-backref:hover{color:var(--vocs-color_linkHover)}.vocs_Autolink{opacity:0;margin-top:.1em;position:absolute;transition:opacity .1s,transform .1s;transform:translate(-2px) scale(.98)}.vocs_Heading:hover .vocs_Autolink{opacity:1;transform:translate(0) scale(1)}.vocs_Pre_wrapper{position:relative}.vocs_Code{transition:color .1s}:not(.vocs_Pre)>.vocs_Code{background-color:var(--vocs-color_codeInlineBackground);border:1px solid var(--vocs-color_codeInlineBorder);border-radius:var(--vocs-borderRadius_4);color:var(--vocs-color_codeInlineText);font-size:var(--vocs-fontSize_code);padding:var(--vocs-space_3) var(--vocs-space_6)}.vocs_Anchor>.vocs_Code{color:var(--vocs-color_link);text-decoration:underline;text-underline-offset:var(--vocs-space_2)}.vocs_Anchor:hover>.vocs_Code{color:var(--vocs-color_linkHover)}.vocs_Callout_danger .vocs_Code{color:var(--vocs-color_dangerText)}.vocs_Callout_info .vocs_Code{color:var(--vocs-color_infoText)}.vocs_Callout_success .vocs_Code{color:var(--vocs-color_successText)}.vocs_Callout_tip .vocs_Code{color:var(--vocs-color_tipText)}.vocs_Callout_warning .vocs_Code{color:var(--vocs-color_warningText)}.vocs_Heading .vocs_Code{color:inherit}.twoslash-popup-info-hover>.vocs_Code{background-color:inherit;padding:0;text-wrap:wrap}.twoslash-popup-jsdoc .vocs_Code{display:inline}.vocs_Authors{color:var(--vocs-color_text3);font-size:var(--vocs-fontSize_14)}.vocs_Authors_authors{color:var(--vocs-color_text)}.vocs_Authors_link{text-decoration:underline;text-underline-offset:2px}.vocs_Authors_link:hover{color:var(--vocs-color_text2)}.vocs_Authors_separator{color:var(--vocs-color_text3)}.vocs_BlogPosts{display:flex;flex-direction:column;gap:var(--vocs-space_32)}.vocs_BlogPosts_description{margin-top:var(--vocs-space_16)}.vocs_BlogPosts_divider{border-color:var(--vocs-color_background4)}.vocs_BlogPosts_post:hover .vocs_BlogPosts_readMore{color:var(--vocs-color_textAccent)}.vocs_BlogPosts_title{font-size:var(--vocs-fontSize_h2);font-weight:var(--vocs-fontWeight_semibold)}.vocs_Sponsors{border-radius:var(--vocs-borderRadius_8);display:flex;flex-direction:column;gap:var(--vocs-space_4);overflow:hidden}.vocs_Sponsors_title{background-color:var(--vocs-color_background3);color:var(--vocs-color_text3);font-size:var(--vocs-fontSize_13);font-weight:var(--vocs-fontWeight_medium);padding:var(--vocs-space_4) 0;text-align:center}.vocs_Sponsors_row{display:flex;flex-direction:row;gap:var(--vocs-space_4)}.vocs_Sponsors_column{align-items:center;background-color:var(--vocs-color_background3);display:flex;justify-content:center;padding:var(--vocs-space_32);width:calc(var(--vocs_Sponsors_columns) * 100%)}.vocs_Sponsors_sponsor{transition:background-color .1s}.vocs_Sponsors_sponsor:hover{background-color:var(--vocs-color_background5)}.dark .vocs_Sponsors_sponsor:hover{background-color:var(--vocs-color_white)}.vocs_Sponsors_image{filter:grayscale(1);height:var(--vocs_Sponsors_height);transition:filter .1s}.dark .vocs_Sponsors_image{filter:grayscale(1) invert(1)}.vocs_Sponsors_column:hover .vocs_Sponsors_image{filter:none}.vocs_AutolinkIcon{background-color:var(--vocs-color_textAccent);display:inline-block;margin-left:.25em;height:.8em;width:.8em;-webkit-mask:var(--vocs_AutolinkIcon_iconUrl) no-repeat center / contain;mask:var(--vocs_AutolinkIcon_iconUrl) no-repeat center / contain;transition:background-color .1s}.vocs_Autolink:hover .vocs_AutolinkIcon{background-color:var(--vocs-color_textAccentHover)}@media screen and (max-width: 720px){.vocs_CodeGroup{border-radius:0;border-right:none;border-left:none;margin-left:calc(-1 * var(--vocs-space_16));margin-right:calc(-1 * var(--vocs-space_16))}}.vocs_Steps{border-left:1.5px solid var(--vocs-color_border);counter-reset:step;padding-left:var(--vocs-space_24);margin-left:var(--vocs-space_12);margin-top:var(--vocs-space_24)}@media screen and (max-width: 720px){.vocs_Steps{margin-left:var(--vocs-space_4)}}.vocs_Subtitle{color:var(--vocs-color_text2);font-size:var(--vocs-fontSize_subtitle);font-weight:var(--vocs-fontWeight_regular);letter-spacing:-.02em;line-height:var(--vocs-lineHeight_heading);margin-top:var(--vocs-space_4);text-wrap:balance}.vocs_HorizontalRule{border-top:1px solid var(--vocs-color_hr);margin-bottom:var(--vocs-space_16)}.vocs_ListItem{line-height:var(--vocs-lineHeight_listItem)}.vocs_ListItem:not(:last-child){margin-bottom:.5em}.vocs_CopyButton{align-items:center;background-color:color-mix(in srgb,var(--vocs-color_background2) 75%,transparent);-webkit-backdrop-filter:blur(1px);backdrop-filter:blur(1px);border:1px solid var(--vocs-color_border);border-radius:var(--vocs-borderRadius_4);color:var(--vocs-color_text3);display:flex;justify-content:center;position:absolute;right:var(--vocs-space_18);top:var(--vocs-space_18);opacity:0;height:32px;width:32px;transition:background-color .15s,opacity .15s;z-index:var(--vocs-zIndex_surface)}.vocs_CopyButton:hover{background-color:var(--vocs-color_background4);transition:background-color .05s}.vocs_CopyButton:focus-visible{background-color:var(--vocs-color_background4);opacity:1;transition:background-color .05s}.vocs_CopyButton:hover:active{background-color:var(--vocs-color_background2)}.vocs_Pre:hover .vocs_CopyButton{opacity:1}.vocs_CodeTitle{align-items:center;background-color:var(--vocs-color_codeTitleBackground);border-bottom:1px solid var(--vocs-color_border);color:var(--vocs-color_text3);display:flex;font-size:var(--vocs-fontSize_14);font-weight:var(--vocs-fontWeight_medium);gap:var(--vocs-space_6);padding:var(--vocs-space_8) var(--vocs-space_24)}.vocs_CodeGroup .vocs_CodeTitle{display:none}@media screen and (max-width: 720px){.vocs_CodeTitle{border-radius:0;padding-left:var(--vocs-space_16);padding-right:var(--vocs-space_16)}}.vocs_CalloutTitle{font-size:var(--vocs-fontSize_12);letter-spacing:.02em;text-transform:uppercase}.vocs_Strong{font-weight:var(--vocs-fontWeight_semibold)}.vocs_Content>.vocs_Strong{display:block}.vocs_Callout>.vocs_Strong{display:block;margin-bottom:var(--vocs-space_4)}.vocs_Summary{cursor:pointer}.vocs_Summary.vocs_Summary:hover{text-decoration:underline}.vocs_Details[open] .vocs_Summary{margin-bottom:var(--vocs-space_4)}.vocs_Callout .vocs_Summary{font-weight:var(--vocs-fontWeight_medium)}.vocs_Details .vocs_Summary.vocs_Summary{margin-bottom:0}.vocs_Table{display:block;border-collapse:collapse;overflow-x:auto;margin-bottom:var(--vocs-space_24)}.vocs_TableCell{border:1px solid var(--vocs-color_tableBorder);font-size:var(--vocs-fontSize_td);padding:var(--vocs-space_8) var(--vocs-space_12)}.vocs_TableHeader{border:1px solid var(--vocs-color_tableBorder);background-color:var(--vocs-color_tableHeaderBackground);color:var(--vocs-color_tableHeaderText);font-size:var(--vocs-fontSize_th);font-weight:var(--vocs-fontWeight_medium);padding:var(--vocs-space_8) var(--vocs-space_12);text-align:left}.vocs_TableHeader[align=center]{text-align:center}.vocs_TableHeader[align=right]{text-align:right}.vocs_TableRow{border-top:1px solid var(--vocs-color_tableBorder)}.vocs_TableRow:nth-child(2n){background-color:var(--vocs-color_background2)}@media screen and (max-width: 720px){.Tabs__root{border-radius:0;margin-left:calc(-1 * var(--vocs-space_16));margin-right:calc(-1 * var(--vocs-space_16));padding-left:var(--vocs-space_16);padding-right:var(--vocs-space_16)}.Tabs__list{margin-left:calc(-1 * var(--vocs-space_16));margin-right:calc(-1 * var(--vocs-space_16))}}.vocs_Button_button{align-items:center;background:var(--vocs-color_background4);border:1px solid var(--vocs-color_border);border-radius:var(--vocs-borderRadius_4);color:var(--vocs-color_text);display:flex;font-size:var(--vocs-fontSize_14);font-weight:var(--vocs-fontWeight_medium);height:36px;padding:0 var(--vocs-space_16);transition:background .1s;white-space:pre;width:-moz-fit-content;width:fit-content}.vocs_Button_button:hover{background:var(--vocs-color_background3)}.vocs_Button_button_accent{background:var(--vocs-color_backgroundAccent);color:var(--vocs-color_backgroundAccentText);border:1px solid var(--vocs-color_borderAccent)}.vocs_Button_button_accent:hover{background:var(--vocs-color_backgroundAccentHover)}.vocs_HomePage{align-items:center;display:flex;flex-direction:column;padding-top:var(--vocs-space_64);text-align:center;gap:var(--vocs-space_32)}.vocs_HomePage_logo{display:flex;justify-content:center;height:48px}.vocs_HomePage_title{font-size:var(--vocs-fontSize_64);font-weight:var(--vocs-fontWeight_semibold);line-height:1em}.vocs_HomePage_tagline{color:var(--vocs-color_text2);font-size:var(--vocs-fontSize_20);font-weight:var(--vocs-fontWeight_medium);line-height:1.5em}.vocs_HomePage_title+.vocs_HomePage_tagline{margin-top:calc(-1 * var(--vocs-space_8))}.vocs_HomePage_description{color:var(--vocs-color_text);font-size:var(--vocs-fontSize_16);font-weight:var(--vocs-fontWeight_regular);line-height:var(--vocs-lineHeight_paragraph)}.vocs_HomePage_tagline+.vocs_HomePage_description{margin-top:calc(-1 * var(--vocs-space_8))}.vocs_HomePage_buttons{display:flex;gap:var(--vocs-space_16)}.vocs_HomePage_tabs{min-width:300px}.vocs_HomePage_tabsList{display:flex;justify-content:center}.vocs_HomePage_tabsContent{color:var(--vocs-color_text2);font-family:var(--vocs-fontFamily_mono)}.vocs_HomePage_packageManager{color:var(--vocs-color_textAccent)}@media screen and (max-width: 720px){.vocs_HomePage{padding-top:var(--vocs-space_32)}.vocs_HomePage_logo{height:36px}} +@layer vocs_preflight;:root{--vocs-color_white: rgba(255 255 255 / 100%);--vocs-color_black: rgba(0 0 0 / 100%);--vocs-color_background: rgba(255 255 255 / 100%);--vocs-color_background2: #f9f9f9;--vocs-color_background3: #f6f6f6;--vocs-color_background4: #f0f0f0;--vocs-color_background5: #e8e8e8;--vocs-color_backgroundAccent: #5b5bd6;--vocs-color_backgroundAccentHover: #5151cd;--vocs-color_backgroundAccentText: rgba(255 255 255 / 100%);--vocs-color_backgroundBlueTint: #008cff0b;--vocs-color_backgroundDark: #f9f9f9;--vocs-color_backgroundGreenTint: #00a32f0b;--vocs-color_backgroundGreenTint2: #00a43319;--vocs-color_backgroundIrisTint: #0000ff07;--vocs-color_backgroundRedTint: #ff000008;--vocs-color_backgroundRedTint2: #f3000d14;--vocs-color_backgroundYellowTint: #f4dd0016;--vocs-color_border: #ececec;--vocs-color_border2: #cecece;--vocs-color_borderAccent: #5753c6;--vocs-color_borderBlue: #009eff2a;--vocs-color_borderGreen: #019c393b;--vocs-color_borderIris: #dadcff;--vocs-color_borderRed: #ff000824;--vocs-color_borderYellow: #ffd5008f;--vocs-color_heading: #202020;--vocs-color_inverted: rgba(0 0 0 / 100%);--vocs-color_shadow: #0000000f;--vocs-color_shadow2: #00000006;--vocs-color_text: #4c4c4c;--vocs-color_text2: #646464;--vocs-color_text3: #838383;--vocs-color_text4: #bbbbbb;--vocs-color_textAccent: #5753c6;--vocs-color_textAccentHover: #272962;--vocs-color_textBlue: #0d74ce;--vocs-color_textBlueHover: #113264;--vocs-color_textGreen: #218358;--vocs-color_textGreenHover: #193b2d;--vocs-color_textIris: #5753c6;--vocs-color_textIrisHover: #272962;--vocs-color_textRed: #ce2c31;--vocs-color_textRedHover: #641723;--vocs-color_textYellow: #9e6c00;--vocs-color_textYellowHover: #473b1f;--vocs-color_title: #202020}:root.dark{--vocs-color_white: rgba(255 255 255 / 100%);--vocs-color_black: rgba(0 0 0 / 100%);--vocs-color_background: #232225;--vocs-color_background2: #2b292d;--vocs-color_background3: #2e2c31;--vocs-color_background4: #323035;--vocs-color_background5: #3c393f;--vocs-color_backgroundAccent: #5b5bd6;--vocs-color_backgroundAccentHover: #5753c6;--vocs-color_backgroundAccentText: rgba(255 255 255 / 100%);--vocs-color_backgroundBlueTint: #008ff519;--vocs-color_backgroundDark: #1e1d1f;--vocs-color_backgroundGreenTint: #00a43319;--vocs-color_backgroundGreenTint2: #00a83829;--vocs-color_backgroundIrisTint: #000bff19;--vocs-color_backgroundRedTint: #f3000d14;--vocs-color_backgroundRedTint2: #ff000824;--vocs-color_backgroundYellowTint: #f4dd0016;--vocs-color_border: #3c393f;--vocs-color_border2: #6f6d78;--vocs-color_borderAccent: #6e6ade;--vocs-color_borderBlue: #009eff2a;--vocs-color_borderGreen: #019c393b;--vocs-color_borderIris: #303374;--vocs-color_borderRed: #ff000824;--vocs-color_borderYellow: #f4dd0016;--vocs-color_heading: #e9e9ea;--vocs-color_inverted: rgba(255 255 255 / 100%);--vocs-color_shadow: #00000000;--vocs-color_shadow2: rgba(0, 0, 0, .05);--vocs-color_text: #cfcfcf;--vocs-color_text2: #bdbdbe;--vocs-color_text3: #a7a7a8;--vocs-color_text4: #656567;--vocs-color_textAccent: #b1a9ff;--vocs-color_textAccentHover: #6e6ade;--vocs-color_textBlue: #70b8ff;--vocs-color_textBlueHover: #3b9eff;--vocs-color_textGreen: #3dd68c;--vocs-color_textGreenHover: #33b074;--vocs-color_textIris: #b1a9ff;--vocs-color_textIrisHover: #6e6ade;--vocs-color_textRed: #ff9592;--vocs-color_textRedHover: #ec5d5e;--vocs-color_textYellow: #f5e147;--vocs-color_textYellowHover: #e2a336;--vocs-color_title: rgba(255 255 255 / 100%)}:root{--vocs-color_blockquoteBorder: var(--vocs-color_border);--vocs-color_blockquoteText: var(--vocs-color_text3);--vocs-color_dangerBackground: var(--vocs-color_backgroundRedTint);--vocs-color_dangerBorder: var(--vocs-color_borderRed);--vocs-color_dangerText: var(--vocs-color_textRed);--vocs-color_dangerTextHover: var(--vocs-color_textRedHover);--vocs-color_infoBackground: var(--vocs-color_backgroundBlueTint);--vocs-color_infoBorder: var(--vocs-color_borderBlue);--vocs-color_infoText: var(--vocs-color_textBlue);--vocs-color_infoTextHover: var(--vocs-color_textBlueHover);--vocs-color_noteBackground: var(--vocs-color_background2);--vocs-color_noteBorder: var(--vocs-color_border);--vocs-color_noteText: var(--vocs-color_text2);--vocs-color_successBackground: var(--vocs-color_backgroundGreenTint);--vocs-color_successBorder: var(--vocs-color_borderGreen);--vocs-color_successText: var(--vocs-color_textGreen);--vocs-color_successTextHover: var(--vocs-color_textGreenHover);--vocs-color_tipBackground: var(--vocs-color_backgroundIrisTint);--vocs-color_tipBorder: var(--vocs-color_borderIris);--vocs-color_tipText: var(--vocs-color_textIris);--vocs-color_tipTextHover: var(--vocs-color_textIrisHover);--vocs-color_warningBackground: var(--vocs-color_backgroundYellowTint);--vocs-color_warningBorder: var(--vocs-color_borderYellow);--vocs-color_warningText: var(--vocs-color_textYellow);--vocs-color_warningTextHover: var(--vocs-color_textYellowHover);--vocs-color_codeBlockBackground: var(--vocs-color_background2);--vocs-color_codeCharacterHighlightBackground: var(--vocs-color_background5);--vocs-color_codeHighlightBackground: var(--vocs-color_background4);--vocs-color_codeHighlightBorder: var(--vocs-color_border2);--vocs-color_codeInlineBackground: var(--vocs-color_background4);--vocs-color_codeInlineBorder: var(--vocs-color_border);--vocs-color_codeInlineText: var(--vocs-color_textAccent);--vocs-color_codeTitleBackground: var(--vocs-color_background4);--vocs-color_lineNumber: var(--vocs-color_text4);--vocs-color_hr: var(--vocs-color_border);--vocs-color_link: var(--vocs-color_textAccent);--vocs-color_linkHover: var(--vocs-color_textAccentHover);--vocs-color_searchHighlightBackground: var(--vocs-color_borderAccent);--vocs-color_searchHighlightText: var(--vocs-color_background);--vocs-color_tableBorder: var(--vocs-color_border);--vocs-color_tableHeaderBackground: var(--vocs-color_background2);--vocs-color_tableHeaderText: var(--vocs-color_text2);--vocs-borderRadius_0: 0;--vocs-borderRadius_2: 2px;--vocs-borderRadius_3: 3px;--vocs-borderRadius_4: 4px;--vocs-borderRadius_6: 6px;--vocs-borderRadius_8: 8px;--vocs-fontFamily_default: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;--vocs-fontFamily_mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--vocs-fontSize_9: .5625rem;--vocs-fontSize_11: .6875rem;--vocs-fontSize_12: .75rem;--vocs-fontSize_13: .8125rem;--vocs-fontSize_14: .875rem;--vocs-fontSize_15: .9375rem;--vocs-fontSize_16: 1rem;--vocs-fontSize_18: 1.125rem;--vocs-fontSize_20: 1.25rem;--vocs-fontSize_24: 1.5rem;--vocs-fontSize_32: 2rem;--vocs-fontSize_64: 3rem;--vocs-fontSize_root: 16px;--vocs-fontSize_h1: var(--vocs-fontSize_32);--vocs-fontSize_h2: var(--vocs-fontSize_24);--vocs-fontSize_h3: var(--vocs-fontSize_20);--vocs-fontSize_h4: var(--vocs-fontSize_18);--vocs-fontSize_h5: var(--vocs-fontSize_16);--vocs-fontSize_h6: var(--vocs-fontSize_16);--vocs-fontSize_calloutCodeBlock: .8em;--vocs-fontSize_code: .875em;--vocs-fontSize_codeBlock: var(--vocs-fontSize_14);--vocs-fontSize_lineNumber: var(--vocs-fontSize_15);--vocs-fontSize_subtitle: var(--vocs-fontSize_20);--vocs-fontSize_th: var(--vocs-fontSize_14);--vocs-fontSize_td: var(--vocs-fontSize_14);--vocs-fontWeight_regular: 300;--vocs-fontWeight_medium: 400;--vocs-fontWeight_semibold: 500;--vocs-lineHeight_code: 1.75em;--vocs-lineHeight_heading: 1.5em;--vocs-lineHeight_listItem: 1.5em;--vocs-lineHeight_outlineItem: 1em;--vocs-lineHeight_paragraph: 1.75em;--vocs-lineHeight_sidebarItem: 1.375em;--vocs-space_0: 0px;--vocs-space_1: 1px;--vocs-space_2: .125rem;--vocs-space_3: .1875rem;--vocs-space_4: .25rem;--vocs-space_6: .375rem;--vocs-space_8: .5rem;--vocs-space_12: .75rem;--vocs-space_14: .875rem;--vocs-space_16: 1rem;--vocs-space_18: 1.125rem;--vocs-space_20: 1.25rem;--vocs-space_22: 1.375rem;--vocs-space_24: 1.5rem;--vocs-space_28: 1.75rem;--vocs-space_32: 2rem;--vocs-space_36: 2.25rem;--vocs-space_40: 2.5rem;--vocs-space_44: 2.75rem;--vocs-space_48: 3rem;--vocs-space_56: 3.5rem;--vocs-space_64: 4rem;--vocs-space_72: 4.5rem;--vocs-space_80: 5rem;--vocs-zIndex_backdrop: 69420;--vocs-zIndex_drawer: 69421;--vocs-zIndex_gutterRight: 11;--vocs-zIndex_gutterLeft: 14;--vocs-zIndex_gutterTop: 13;--vocs-zIndex_gutterTopCurtain: 12;--vocs-zIndex_popover: 69422;--vocs-zIndex_surface: 10;--vocs-content_horizontalPadding: var(--vocs-space_48);--vocs-content_verticalPadding: var(--vocs-space_32);--vocs-content_width: calc(70ch + (var(--vocs-content_horizontalPadding) * 2));--vocs-outline_width: 280px;--vocs-sidebar_horizontalPadding: var(--vocs-space_24);--vocs-sidebar_verticalPadding: var(--vocs-space_0);--vocs-sidebar_width: 300px;--vocs-topNav_height: 60px;--vocs-topNav_horizontalPadding: var(--vocs-content_horizontalPadding);--vocs-topNav_curtainHeight: 40px}@media screen and (max-width: 1080px){:root{--vocs-content_verticalPadding: var(--vocs-space_48);--vocs-content_horizontalPadding: var(--vocs-space_24);--vocs-sidebar_horizontalPadding: var(--vocs-space_16);--vocs-sidebar_verticalPadding: var(--vocs-space_16);--vocs-sidebar_width: 300px;--vocs-topNav_height: 48px}}@media screen and (max-width: 720px){:root{--vocs-content_horizontalPadding: var(--vocs-space_16);--vocs-content_verticalPadding: var(--vocs-space_32)}}.vocs_Banner{background-color:var(--vocs_Banner_bannerBackgroundColor, var(--vocs-color_backgroundAccent));border-bottom:1px solid var(--vocs_Banner_bannerBackgroundColor, var(--vocs-color_borderAccent));color:var(--vocs_Banner_bannerTextColor, var(--vocs-color_backgroundAccentText));height:var(--vocs_Banner_bannerHeight, 36px);position:fixed;top:0;width:100%;z-index:var(--vocs-zIndex_gutterTop)}.vocs_Banner_content{font-size:var(--vocs-fontSize_14);overflow-x:scroll;padding-left:var(--vocs-space_8);padding-right:var(--vocs-space_8);margin-right:var(--vocs-space_24);-ms-overflow-style:none;scrollbar-width:none;white-space:pre}.vocs_Banner_content::-webkit-scrollbar{display:none}.vocs_Banner_inner{align-items:center;display:flex;height:100%;justify-content:center;position:relative;width:100%}.vocs_Banner_closeButton{align-items:center;background-color:var(--vocs_Banner_bannerBackgroundColor, var(--vocs-color_backgroundAccent));display:flex;justify-content:center;height:100%;position:absolute;right:0;width:var(--vocs-space_24)}.vocs_Banner_content a{font-weight:400;text-underline-offset:2px;text-decoration:underline}@media screen and (max-width: 1080px){.vocs_Banner{position:initial}}.vocs_DocsLayout{--vocs_DocsLayout_leftGutterWidth: max(calc((100vw - var(--vocs-content_width)) / 2), var(--vocs-sidebar_width))}.vocs_DocsLayout_content{background-color:var(--vocs-color_background);margin-left:auto;margin-right:auto;max-width:var(--vocs-content_width);min-height:100vh}.vocs_DocsLayout_content_withSidebar{margin-left:var(--vocs_DocsLayout_leftGutterWidth);margin-right:unset}.vocs_DocsLayout_gutterLeft{background-color:var(--vocs-color_backgroundDark);justify-content:flex-end;display:flex;height:100vh;position:fixed;top:var(--vocs_Banner_bannerHeight, 0px);width:var(--vocs_DocsLayout_leftGutterWidth);z-index:var(--vocs-zIndex_gutterLeft)}.vocs_DocsLayout_gutterTop{align-items:center;background-color:color-mix(in srgb,var(--vocs-color_background) 98%,transparent);height:var(--vocs-topNav_height);width:100vw;z-index:var(--vocs-zIndex_gutterTop)}.vocs_DocsLayout_gutterTopCurtain{display:flex;height:var(--vocs-topNav_curtainHeight);width:100vw;z-index:var(--vocs-zIndex_gutterTopCurtain)}.vocs_DocsLayout_gutterTopCurtain_hidden{background:unset;display:none}.vocs_DocsLayout_gutterRight{display:flex;height:100vh;overflow-y:auto;padding:calc(var(--vocs-content_verticalPadding) + var(--vocs-topNav_height) + var(--vocs-space_8)) var(--vocs-space_24) 0 0;position:fixed;top:var(--vocs_Banner_bannerHeight, 0px);right:0;width:calc((100vw - var(--vocs-content_width)) / 2);z-index:var(--vocs-zIndex_gutterRight)}.vocs_DocsLayout_gutterRight::-webkit-scrollbar{display:none}.vocs_DocsLayout_gutterRight_withSidebar{width:calc(100vw - var(--vocs-content_width) - var(--vocs_DocsLayout_leftGutterWidth))}.vocs_DocsLayout_outlinePopover{display:none;overflow-y:auto;height:calc(100vh - var(--vocs-topNav_height) - var(--vocs-topNav_curtainHeight))}.vocs_DocsLayout_sidebar{padding:var(--vocs-space_0) var(--vocs-sidebar_horizontalPadding) var(--vocs-space_24) var(--vocs-sidebar_horizontalPadding)}.vocs_DocsLayout_sidebarDrawer{display:none}@media screen and (max-width: 720px){.vocs_DocsLayout_content{overflow-x:hidden}}@media screen and (min-width: 1081px){.vocs_DocsLayout_content_withTopNav{padding-top:calc(var(--vocs-topNav_height) + var(--vocs_Banner_bannerHeight, 0px))}.vocs_DocsLayout_gutterTop{padding-left:calc(var(--vocs_DocsLayout_leftGutterWidth) - var(--vocs-sidebar_width));padding-right:calc(var(--vocs_DocsLayout_leftGutterWidth) - var(--vocs-sidebar_width));position:fixed;top:var(--vocs_Banner_bannerHeight, 0px)}.vocs_DocsLayout_gutterTop_offsetLeftGutter{padding-left:var(--vocs_DocsLayout_leftGutterWidth)}.vocs_DocsLayout_gutterTopCurtain{position:fixed;top:calc(var(--vocs-topNav_height) + var(--vocs_Banner_bannerHeight, 0px))}.vocs_DocsLayout_gutterTopCurtain_withSidebar{margin-left:var(--vocs_DocsLayout_leftGutterWidth)}}@media screen and (max-width: 1080px){.vocs_DocsLayout_content{margin-left:auto;margin-right:auto}.vocs_DocsLayout_gutterLeft{display:none}.vocs_DocsLayout_gutterTop{position:initial}.vocs_DocsLayout_gutterTop_sticky,.vocs_DocsLayout_gutterTopCurtain{position:sticky;top:0}.vocs_DocsLayout_outlinePopover,.vocs_DocsLayout_sidebarDrawer{display:block}}@media screen and (max-width: 1280px){.vocs_DocsLayout_gutterRight{display:none}}@layer vocs_reset_reset;html,body,.vocs_DocsLayout{font-family:var(--vocs-fontFamily_default);font-feature-settings:"rlig" 1,"calt" 1;font-size:var(--vocs-fontSize_root)}button,select{text-transform:none;-webkit-appearance:button;-moz-appearance:button;appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{outline:auto}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;-moz-appearance:textfield;appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none;-moz-appearance:none;appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;-moz-appearance:button;appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1}input::placeholder,textarea::placeholder{opacity:1}button,[role=button]{cursor:pointer}:disabled{overflow:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}@layer vocs_reset_reset{*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid}*:focus-visible{outline:2px solid var(--vocs-color_borderAccent);outline-offset:2px;outline-style:dashed}html,body{-webkit-text-size-adjust:100%;-moz-text-size-adjust:100%;text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;line-height:inherit;margin:0;padding:0;border:0;text-rendering:optimizeLegibility}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit;text-wrap:balance}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--vocs-fontFamily_mono);font-size:var(--vocs-fontSize_root)}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-color:inherit;border-collapse:collapse;text-indent:0}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}}.vocs_Tabs{background-color:var(--vocs-color_codeBlockBackground);border:1px solid var(--vocs-color_codeInlineBorder);border-radius:var(--vocs-borderRadius_4)}.vocs_Tabs_list{background-color:var(--vocs-color_codeTitleBackground);border-bottom:1px solid var(--vocs-color_border);border-top-left-radius:var(--vocs-borderRadius_4);border-top-right-radius:var(--vocs-borderRadius_4);display:flex;padding:var(--vocs-space_0) var(--vocs-space_14)}.vocs_Tabs_trigger{border-bottom:2px solid transparent;color:var(--vocs-color_text3);font-size:var(--vocs-fontSize_14);font-weight:var(--vocs-fontWeight_medium);padding:var(--vocs-space_8) var(--vocs-space_8) var(--vocs-space_6) var(--vocs-space_8);transition:color .1s}.vocs_Tabs_trigger:hover{color:var(--vocs-color_text)}.vocs_Tabs_trigger[data-state=active]{border-bottom:2px solid var(--vocs-color_borderAccent);color:var(--vocs-color_text)}.vocs_Tabs_content{background-color:var(--vocs-color_codeBlockBackground)}.vocs_Tabs_content:not([data-shiki=true]){padding:var(--vocs-space_20) var(--vocs-space_22)}.vocs_Tabs pre{margin-bottom:var(--vocs-space_0)}@media screen and (max-width: 720px){.vocs_Tabs_list{border-radius:0;padding:var(--vocs-space_0) var(--vocs-space_8)}.vocs_Tabs_content:not([data-shiki=true]){padding:var(--vocs-space_20) var(--vocs-space_16)}.vocs_Tabs pre{margin:unset}}.vocs_CodeBlock{border:1px solid var(--vocs-color_codeInlineBorder);border-radius:var(--vocs-borderRadius_4)}.vocs_Tabs .vocs_CodeBlock,undefined .vocs_CodeBlock{border:none;margin-left:unset;margin-right:unset}.vocs_CodeBlock code{display:grid;font-size:var(--vocs-fontSize_codeBlock)}undefined .vocs_CodeBlock code{font-size:var(--vocs-fontSize_calloutCodeBlock)}.vocs_CodeBlock pre{background-color:var(--vocs-color_codeBlockBackground);border-radius:var(--vocs-borderRadius_4);overflow-x:auto;padding:var(--vocs-space_20) var(--vocs-space_0)}undefined .vocs_CodeBlock pre{background-color:color-mix(in srgb,var(--vocs-color_codeBlockBackground) 65%,transparent)!important;border:1px solid var(--vocs-color_codeInlineBorder);border-radius:var(--vocs-borderRadius_4);padding:var(--vocs-space_12) var(--vocs-space_0)}.vocs_CodeBlock .line{border-left:2px solid transparent;padding:var(--vocs-space_0) var(--vocs-space_22);line-height:var(--vocs-lineHeight_code)}undefined .vocs_CodeBlock .line{padding:var(--vocs-space_0) var(--vocs-space_12)}.vocs_CodeBlock .twoslash-popup-info .line{padding:var(--vocs-space_0) var(--vocs-space_4)}.vocs_CodeBlock .twoslash-popup-info-hover .line{display:inline-block;padding:var(--vocs-space_0) var(--vocs-space_8)}.vocs_CodeBlock .twoslash-error-line,.vocs_CodeBlock .twoslash-tag-line{padding:var(--vocs-space_0) var(--vocs-space_22)}.vocs_CodeBlock [data-line-numbers]{counter-reset:line}.vocs_CodeBlock [data-line-numbers]>.line{padding:var(--vocs-space_0) var(--vocs-space_16)}.vocs_CodeBlock [data-line-numbers]>.line:before{content:counter(line);color:var(--vocs-color_lineNumber);display:inline-block;font-size:var(--vocs-fontSize_lineNumber);margin-right:var(--vocs-space_16);text-align:right;width:1rem}.vocs_CodeBlock [data-line-numbers]>.line:not(.diff.remove+.diff.add):before{counter-increment:line}.vocs_CodeBlock [data-line-numbers]>.line.diff:after{margin-left:calc(-1 * var(--vocs-space_4))}.vocs_CodeBlock .highlighted{background-color:var(--vocs-color_codeHighlightBackground);border-left:2px solid var(--vocs-color_codeHighlightBorder);box-sizing:content-box}.vocs_CodeBlock .highlighted-word{border-radius:var(--vocs-borderRadius_2);background-color:var(--vocs-color_codeCharacterHighlightBackground)!important;box-shadow:0 0 0 4px var(--vocs-color_codeCharacterHighlightBackground)}.vocs_CodeBlock .has-diff{position:relative}.vocs_CodeBlock .line.diff:after{position:absolute;left:var(--vocs-space_8)}.vocs_CodeBlock .line.diff.add{background-color:var(--vocs-color_backgroundGreenTint2)}.vocs_CodeBlock .line.diff.add:after{content:"+";color:var(--vocs-color_textGreen)}.vocs_CodeBlock .line.diff.remove{background-color:var(--vocs-color_backgroundRedTint2);opacity:.6}.vocs_CodeBlock .line.diff.remove>span{filter:grayscale(1)}.vocs_CodeBlock .line.diff.remove:after{content:"-";color:var(--vocs-color_textRed)}.vocs_CodeBlock .has-focused>code>.line:not(.focused),.vocs_CodeBlock .has-focused>code>.twoslash-meta-line:not(.focused){opacity:.3;transition:opacity .2s}.vocs_CodeBlock:hover .has-focused .line:not(.focused),.vocs_CodeBlock:hover .has-focused .twoslash-meta-line:not(.focused){opacity:1;transition:opacity .2s}@media screen and (max-width: 720px){.vocs_CodeBlock{border-radius:0;border-right:none;border-left:none;margin-left:calc(-1 * var(--vocs-space_16));margin-right:calc(-1 * var(--vocs-space_16))}.vocs_CodeBlock pre{border-radius:0}.vocs_CodeBlock .line,.vocs_CodeBlock .twoslash-error-line,.vocs_CodeBlock .twoslash-tag-line{padding:0 var(--vocs-space_16)}.vocs_CodeBlock .line.diff:after{left:var(--vocs-space_6)}}.vocs_Header{border-bottom:1px solid var(--vocs-color_border)}.vocs_Header:not(:last-child){margin-bottom:var(--vocs-space_28);padding-bottom:var(--vocs-space_28)}[data-layout=landing] .vocs_Header{padding-bottom:var(--vocs-space_16)}[data-layout=landing] .vocs_Header:not(:first-child){padding-top:var(--vocs-space_36)}.vocs_H2{font-size:var(--vocs-fontSize_h2);letter-spacing:-.02em}.vocs_H2.vocs_H2:not(:last-child){margin-bottom:var(--vocs-space_24)}:not(.vocs_Header)+.vocs_H2:not(:only-child){border-top:1px solid var(--vocs-color_border);margin-top:var(--vocs-space_56);padding-top:var(--vocs-space_24)}[data-layout=landing] .vocs_H2.vocs_H2{border-top:none;margin-top:var(--vocs-space_24);padding-top:0}.vocs_H3{font-size:var(--vocs-fontSize_h3)}.vocs_H3:not(:first-child){margin-top:var(--vocs-space_18);padding-top:var(--vocs-space_18)}.vocs_H3.vocs_H3:not(:last-child){margin-bottom:var(--vocs-space_24)}.vocs_H2+.vocs_H3{padding-top:var(--vocs-space_0)}.vocs_H4{font-size:var(--vocs-fontSize_h4)}.vocs_H4:not(:first-child){margin-top:var(--vocs-space_18);padding-top:var(--vocs-space_12)}.vocs_H4.vocs_H4:not(:last-child){margin-bottom:var(--vocs-space_24)}.vocs_H3+.vocs_H4{padding-top:var(--vocs-space_0)}.vocs_H5{font-size:var(--vocs-fontSize_h5)}.vocs_H5:not(:first-child){margin-top:var(--vocs-space_16)}.vocs_H5.vocs_H5:not(:last-child){margin-bottom:var(--vocs-space_24)}.vocs_H4+.vocs_H5{padding-top:var(--vocs-space_0)}.vocs_H6{font-size:var(--vocs-fontSize_h6)}.vocs_H6:not(:first-child){margin-top:var(--vocs-space_16)}.vocs_H6.vocs_H6:not(:last-child){margin-bottom:var(--vocs-space_24)}.vocs_H5+.vocs_H6{padding-top:var(--vocs-space_0)}.vocs_Step:not(:last-child){margin-bottom:var(--vocs-space_24)}.vocs_Step_title{margin-bottom:var(--vocs-space_8);position:relative}.vocs_Step_title:before{content:counter(step);align-items:center;background-color:var(--vocs-color_background5);border-radius:100%;border:.5em solid var(--vocs-color_background);box-sizing:content-box;color:var(--vocs-color_text2);counter-increment:step;display:flex;font-size:.625em;font-weight:var(--vocs-fontWeight_regular);height:2em;justify-content:center;left:calc(-25.125px - 1.45em);position:absolute;top:-.25em;width:2em}.vocs_H2+.vocs_Step_content,.vocs_H3+.vocs_Step_content,.vocs_H4+.vocs_Step_content,.vocs_H5+.vocs_Step_content,.vocs_H6+.vocs_Step_content{margin-top:calc(var(--vocs-space_8) * -1)}.vocs_Step_content>*:not(:last-child){margin-bottom:var(--vocs-space_16)}.vocs_Step_content>*:last-child{margin-bottom:var(--vocs-space_0)}@media screen and (max-width: 720px){.vocs_Step_content>.vocs_Tabs,.vocs_Step_content>.vocs_CodeBlock{outline:6px solid var(--vocs-color_background);margin-left:calc(-1 * var(--vocs-space_44) - 2px);margin-right:calc(-1 * var(--vocs-space_16))}.vocs_Step_content .vocs_Tabs pre.shiki{border-top:none}}.vocs_Callout{border-radius:var(--vocs-borderRadius_4);font-size:var(--vocs-fontSize_14);padding:var(--vocs-space_16) var(--vocs-space_20);margin-bottom:var(--vocs-space_16)}.vocs_Callout_note{background-color:var(--vocs-color_noteBackground);border:1px solid var(--vocs-color_noteBorder);color:var(--vocs-color_noteText)}.vocs_Callout_info{background-color:var(--vocs-color_infoBackground);border:1px solid var(--vocs-color_infoBorder);color:var(--vocs-color_infoText)}.vocs_Callout_warning{background-color:var(--vocs-color_warningBackground);border:1px solid var(--vocs-color_warningBorder);color:var(--vocs-color_warningText)}.vocs_Callout_danger{background-color:var(--vocs-color_dangerBackground);border:1px solid var(--vocs-color_dangerBorder);color:var(--vocs-color_dangerText)}.vocs_Callout_tip{background-color:var(--vocs-color_tipBackground);border:1px solid var(--vocs-color_tipBorder);color:var(--vocs-color_tipText)}.vocs_Callout_success{background-color:var(--vocs-color_successBackground);border:1px solid var(--vocs-color_successBorder);color:var(--vocs-color_successText)}@media screen and (max-width: 720px){:not(.vocs_Step_content)>.vocs_Callout{border-radius:0;border-left-width:0;border-right-width:0;margin-left:calc(-1 * var(--vocs-space_16));margin-right:calc(-1 * var(--vocs-space_16))}}.vocs_Content{background-color:var(--vocs-color_background);max-width:var(--vocs-content_width);padding:var(--vocs-content_verticalPadding) var(--vocs-content_horizontalPadding);width:100%}.vocs_Callout>*+.vocs_Details{margin-top:-8px}@layer vocs_global_global;:root.dark{color-scheme:dark}:root.dark pre.shiki span:not(.line),:root.dark :not(pre.shiki) .line span{color:var(--shiki-dark)!important}pre.shiki{background-color:var(--vocs-color_codeBlockBackground)!important}.vocs_Content>*:not(:last-child),.vocs_Details>*:not(:last-child){margin-bottom:var(--vocs-space_24)}.vocs_Callout>*:not(:last-child),.vocs_Callout>.vocs_Details>*:not(:last-child){margin-bottom:var(--vocs-space_16)}.vocs_Content>*:last-child,.vocs_Callout>*:last-child,.vocs_Details>*:last-child{margin-bottom:var(--vocs-space_0)}#app[aria-hidden=true]{background:var(--vocs-color_background)}@layer vocs_global_global{:root{background-color:var(--vocs-color_background);color:var(--vocs-color_text);line-height:var(--vocs-lineHeight_paragraph);font-size:var(--vocs-fontSize_root);font-weight:var(--vocs-fontWeight_regular)}}@media screen and (max-width: 720px){:root{background-color:var(--vocs-color_backgroundDark)}}:root{--vocs-twoslash_borderColor: var(--vocs-color_border2);--vocs-twoslash_underlineColor: currentColor;--vocs-twoslash_popupBackground: var(--vocs-color_background2);--vocs-twoslash_popupShadow: rgba(0, 0, 0, .08) 0px 1px 4px;--vocs-twoslash_matchedColor: inherit;--vocs-twoslash_unmatchedColor: #888;--vocs-twoslash_cursorColor: #8888;--vocs-twoslash_errorColor: var(--vocs-color_textRed);--vocs-twoslash_errorBackground: var(--vocs-color_backgroundRedTint2);--vocs-twoslash_highlightedBackground: var(--vocs-color_background);--vocs-twoslash_highlightedBorder: var(--vocs-color_background);--vocs-twoslash_tagColor: var(--vocs-color_textBlue);--vocs-twoslash_tagBackground: var(--vocs-color_backgroundBlueTint);--vocs-twoslash_tagWarnColor: var(--vocs-color_textYellow);--vocs-twoslash_tagWarnBackground: var(--vocs-color_backgroundYellowTint);--vocs-twoslash_tagAnnotateColor: var(--vocs-color_textGreen);--vocs-twoslash_tagAnnotateBackground: var(--vocs-color_backgroundGreenTint2)}:root.dark{--vocs-twoslash_borderColor: var(--vocs-color_border2);--vocs-twoslash_underlineColor: currentColor;--vocs-twoslash_popupBackground: var(--vocs-color_background5);--vocs-twoslash_popupShadow: rgba(0, 0, 0, .08) 0px 1px 4px;--vocs-twoslash_matchedColor: inherit;--vocs-twoslash_unmatchedColor: #888;--vocs-twoslash_cursorColor: #8888;--vocs-twoslash_errorColor: var(--vocs-color_textRed);--vocs-twoslash_errorBackground: var(--vocs-color_backgroundRedTint2);--vocs-twoslash_highlightedBackground: var(--vocs-color_background);--vocs-twoslash_highlightedBorder: var(--vocs-color_background);--vocs-twoslash_tagColor: var(--vocs-color_textBlue);--vocs-twoslash_tagBackground: var(--vocs-color_backgroundBlueTint);--vocs-twoslash_tagWarnColor: var(--vocs-color_textYellow);--vocs-twoslash_tagWarnBackground: var(--vocs-color_backgroundYellowTint);--vocs-twoslash_tagAnnotateColor: var(--vocs-color_textGreen);--vocs-twoslash_tagAnnotateBackground: var(--vocs-color_backgroundGreenTint2)}:root .twoslash-popup-info-hover,:root .twoslash-popup-info{--shiki-light-bg: var(--vocs-color_background2)}:root .twoslash-popup-info{width:-moz-max-content;width:max-content}:root.dark .twoslash-popup-info,:root.dark .twoslash-popup-info-hover{--shiki-dark-bg: var(--vocs-color_background5)}.twoslash-query-persisted>.twoslash-popup-info{z-index:1}:not(.twoslash-query-persisted)>.twoslash-popup-info{z-index:2}.twoslash:hover .twoslash-hover{border-color:var(--vocs-twoslash_underlineColor)}.twoslash .twoslash-hover{border-bottom:1px dotted transparent;transition-timing-function:ease;transition:border-color .3s}.twoslash-query-persisted{position:relative}.twoslash .twoslash-popup-info{position:absolute;top:0;left:0;opacity:0;display:inline-block;transform:translateY(1.1em);background:var(--vocs-twoslash_popupBackground);border:1px solid var(--vocs-twoslash_borderColor);transition:opacity .3s;border-radius:4px;max-width:540px;padding:4px 6px;pointer-events:none;text-align:left;z-index:20;white-space:pre-wrap;-webkit-user-select:none;-moz-user-select:none;user-select:none;box-shadow:var(--vocs-twoslash_popupShadow)}.twoslash .twoslash-popup-info-hover{background:var(--vocs-twoslash_popupBackground);border:1px solid var(--vocs-twoslash_borderColor);border-radius:4px;box-shadow:var(--vocs-twoslash_popupShadow);display:inline-block;max-width:500px;pointer-events:auto;position:fixed;opacity:1;transition:opacity .3s;white-space:pre-wrap;-webkit-user-select:none;-moz-user-select:none;user-select:none;z-index:20}.twoslash .twoslash-popup-scroll-container{max-height:300px;padding:4px 0;overflow-y:auto;-ms-overflow-style:none;scrollbar-width:none}.twoslash-popup-arrow{position:absolute;top:-4px;left:1em;border-top:1px solid var(--vocs-twoslash_borderColor);border-right:1px solid var(--vocs-twoslash_borderColor);background:var(--vocs-twoslash_popupBackground);transform:rotate(-45deg);width:6px;height:6px;pointer-events:none}.twoslash .twoslash-popup-scroll-container::-webkit-scrollbar{display:none}.twoslash .twoslash-popup-jsdoc{border-top:1px solid var(--vocs-color_border2);color:var(--vocs-color_text);font-family:sans-serif;font-weight:500;margin-top:4px;padding:4px 10px 0}.twoslash-tag-line+.twoslash-tag-line{margin-top:-.2em}.twoslash-query-persisted .twoslash-popup-info{z-index:9;transform:translateY(1.5em)}.twoslash-hover:hover .twoslash-popup-info,.twoslash-query-persisted .twoslash-popup-info{opacity:1;pointer-events:auto}.twoslash-popup-info:hover,.twoslash-popup-info-hover:hover{-webkit-user-select:auto;-moz-user-select:auto;user-select:auto}.twoslash-error-line{position:relative;background-color:var(--vocs-twoslash_errorBackground);border-left:2px solid var(--vocs-twoslash_errorColor);color:var(--vocs-twoslash_errorColor);margin:.2em 0}.twoslash-error{background:url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%206%203'%20enable-background%3D'new%200%200%206%203'%20height%3D'3'%20width%3D'6'%3E%3Cg%20fill%3D'%23c94824'%3E%3Cpolygon%20points%3D'5.5%2C0%202.5%2C3%201.1%2C3%204.1%2C0'%2F%3E%3Cpolygon%20points%3D'4%2C0%206%2C2%206%2C0.6%205.4%2C0'%2F%3E%3Cpolygon%20points%3D'0%2C2%201%2C3%202.4%2C3%200%2C0.6'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") repeat-x bottom left;padding-bottom:2px}.twoslash-completion-cursor{position:relative}.twoslash-completion-cursor .twoslash-completion-list{-webkit-user-select:none;-moz-user-select:none;user-select:none;position:absolute;top:0;left:0;transform:translateY(1.2em);margin:3px 0 0 -1px;z-index:8;box-shadow:var(--vocs-twoslash_popupShadow);background:var(--vocs-twoslash_popupBackground);border:1px solid var(--vocs-twoslash_borderColor)}.twoslash-completion-list{border-radius:4px;font-size:.8rem;padding:4px;display:flex;flex-direction:column;gap:4px;width:240px}.twoslash-completion-list:hover{-webkit-user-select:auto;-moz-user-select:auto;user-select:auto}.twoslash-completion-list:before{content:" ";background-color:var(--vocs-twoslash_cursorColor);width:2px;position:absolute;top:-1.6em;height:1.4em;left:-1px}.twoslash-completion-list .twoslash-completion-list-item{overflow:hidden;display:flex;align-items:center;gap:.5em;line-height:1em}.twoslash-completion-list .twoslash-completion-list-item span.twoslash-completions-unmatched.twoslash-completions-unmatched.twoslash-completions-unmatched{color:var(--vocs-twoslash_unmatchedColor)!important}.twoslash-completion-list .deprecated{text-decoration:line-through;opacity:.5}.twoslash-completion-list .twoslash-completion-list-item span.twoslash-completions-matched.twoslash-completions-unmatched.twoslash-completions-unmatched{color:var(--vocs-twoslash_matchedColor)!important}.twoslash-tag-line{position:relative;background-color:var(--vocs-twoslash_tagBackground);border-left:2px solid var(--vocs-twoslash_tagColor);color:var(--vocs-twoslash_tagColor);margin:.2em 0;display:flex;align-items:center;gap:.3em}.twoslash-tag-line+.line[data-empty-line]+.twoslash-tag-line{margin-top:-1.95em}.twoslash-tag-line .twoslash-tag-icon{width:1.1em;color:inherit}.twoslash-tag-line.twoslash-tag-error-line{background-color:var(--vocs-twoslash_errorBackground);border-left:2px solid var(--vocs-twoslash_errorColor);color:var(--vocs-twoslash_errorColor)}.twoslash-tag-line.twoslash-tag-warn-line{background-color:var(--vocs-twoslash_tagWarnBackground);border-left:2px solid var(--vocs-twoslash_tagWarnColor);color:var(--vocs-twoslash_tagWarnColor)}.twoslash-tag-line.twoslash-tag-annotate-line{background-color:var(--vocs-twoslash_tagAnnotateBackground);border-left:2px solid var(--vocs-twoslash_tagAnnotateColor);color:var(--vocs-twoslash_tagAnnotateColor)}.twoslash-highlighted{border-radius:var(--vocs-borderRadius_2);background-color:var(--vocs-color_codeCharacterHighlightBackground)!important;box-shadow:0 0 0 4px var(--vocs-color_codeCharacterHighlightBackground)}@media (prefers-reduced-motion: reduce){.twoslash *{transition:none!important}}.vocs_ExternalLink:after{content:"";background-color:currentColor;color:var(--vocs_ExternalLink_arrowColor);display:inline-block;height:.5em;margin-left:.325em;margin-right:.25em;width:.5em;-webkit-mask:var(--vocs_ExternalLink_iconUrl) no-repeat center / contain;mask:var(--vocs_ExternalLink_iconUrl) no-repeat center / contain}.vocs_Link_accent_underlined{color:var(--vocs-color_link);font-weight:var(--vocs-fontWeight_medium);text-underline-offset:var(--vocs-space_2);text-decoration:underline;transition:color .1s}.vocs_Link_accent_underlined:hover{color:var(--vocs-color_linkHover)}.vocs_Link_styleless{--vocs_ExternalLink_arrowColor: var(--vocs-color_text3)}.vocs_NotFound{align-items:center;display:flex;flex-direction:column;max-width:400px;margin:0 auto;padding-top:var(--vocs-space_64)}.vocs_NotFound_divider{border-color:var(--vocs-color_border);width:50%}.vocs_H1{font-size:var(--vocs-fontSize_h1);letter-spacing:-.02em}.vocs_Heading{align-items:center;color:var(--vocs-color_heading);font-weight:var(--vocs-fontWeight_semibold);gap:.25em;line-height:var(--vocs-lineHeight_heading);position:relative}.vocs_Heading_slugTarget{position:absolute;top:0;visibility:hidden}@media screen and (min-width: 1081px){.vocs_Heading_slugTarget{top:calc(-1 * (var(--vocs-topNav_height)))}.vocs_Header .vocs_Heading_slugTarget,.vocs_Step_title .vocs_Heading_slugTarget,.vocs_Header+.vocs_Heading .vocs_Heading_slugTarget{top:calc(-1 * (var(--vocs-topNav_height) + var(--vocs-space_24)))}}@media screen and (max-width: 1080px){.vocs_Heading_slugTarget{top:calc(-1 * var(--vocs-topNav_curtainHeight))}.vocs_Header .vocs_Heading_slugTarget,.vocs_Header+.vocs_Heading .vocs_Heading_slugTarget{top:calc(-1 * calc(var(--vocs-topNav_curtainHeight) + var(--vocs-space_24)))}}.vocs_Blockquote{border-left:2px solid var(--vocs-color_blockquoteBorder);padding-left:var(--vocs-space_16);margin-bottom:var(--vocs-space_16)}.vocs_H2+.vocs_List,.vocs_H3+.vocs_List,.vocs_H4+.vocs_List,.vocs_H5+.vocs_List,.vocs_H6+.vocs_List{margin-top:calc(var(--vocs-space_8) * -1)}.vocs_Paragraph+.vocs_List{margin-top:calc(-1 * var(--vocs-space_8))}.vocs_List_ordered{list-style:decimal;padding-left:var(--vocs-space_20);margin-bottom:var(--vocs-space_16)}.vocs_List_ordered .vocs_List_ordered{list-style:lower-alpha}.vocs_List_ordered .vocs_List_ordered .vocs_List_ordered{list-style:lower-roman}.vocs_List_unordered{list-style:disc;padding-left:var(--vocs-space_24);margin-bottom:var(--vocs-space_16)}.vocs_List_unordered .vocs_List_unordered{list-style:circle}.vocs_List_ordered .vocs_List_ordered,.vocs_List_unordered .vocs_List_unordered,.vocs_List_ordered .vocs_List_unordered,.vocs_List_unordered .vocs_List_ordered{margin-bottom:var(--vocs-space_0);padding-top:var(--vocs-space_8);padding-left:var(--vocs-space_16);padding-bottom:var(--vocs-space_0)}.vocs_List_unordered.contains-task-list{list-style:none;padding-left:var(--vocs-space_12)}.vocs_Paragraph{line-height:var(--vocs-lineHeight_paragraph)}.vocs_Blockquote>.vocs_Paragraph{color:var(--vocs-color_blockquoteText);margin-bottom:var(--vocs-space_8)}.vocs_H2+.vocs_Paragraph,.vocs_H3+.vocs_Paragraph,.vocs_H4+.vocs_Paragraph,.vocs_H5+.vocs_Paragraph,.vocs_H6+.vocs_Paragraph,.vocs_List+.vocs_Paragraph{margin-top:calc(var(--vocs-space_8) * -1)}.vocs_Paragraph+.vocs_Paragraph{margin-top:calc(-1 * var(--vocs-space_8))}:root:not(.dark) .vocs_utils_visibleDark{display:none}:root.dark .vocs_utils_visibleLight{display:none}.vocs_utils_visuallyHidden{clip:rect(0 0 0 0);clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}.vocs_DesktopSearch_search{align-items:center;background-color:var(--vocs-color_backgroundDark);border:1px solid var(--vocs-color_backgroundDark);border-radius:var(--vocs-borderRadius_8);color:var(--vocs-color_text2);display:flex;font-size:var(--vocs-fontSize_14);font-weight:var(--vocs-fontWeight_medium);gap:var(--vocs-space_6);height:var(--vocs-space_40);max-width:15.5rem;padding-left:var(--vocs-space_12);padding-right:var(--vocs-space_12);position:relative;width:100%;transition:color .1s,border-color .1s}.vocs_DesktopSearch_search:hover{color:var(--vocs-color_text);border-color:var(--vocs-color_text3)}.vocs_DesktopSearch_searchCommand{align-items:center;border:1.5px solid var(--vocs-color_text3);border-radius:var(--vocs-borderRadius_4);color:var(--vocs-color_text3);display:flex;height:var(--vocs-space_12);justify-content:center;margin-left:auto;margin-top:var(--vocs-space_1);padding:var(--vocs-space_1);width:var(--vocs-space_12)}.vocs_Kbd{color:var(--vocs-color_text2);display:inline-block;border-radius:var(--vocs-borderRadius_3);font-size:var(--vocs-fontSize_11);font-family:var(--vocs-fontFamily_default);font-feature-settings:cv08;line-height:105%;min-width:20px;padding:var(--vocs-space_3);padding-left:var(--vocs-space_4);padding-right:var(--vocs-space_4);padding-top:var(--vocs-space_3);text-align:center;text-transform:capitalize;vertical-align:baseline;border:.5px solid var(--vocs-color_border);background-color:var(--vocs-color_background3);box-shadow:var(--vocs-color_shadow2) 0 2px 0 0}.vocs_KeyboardShortcut{align-items:center;display:inline-flex;gap:var(--vocs-space_6);font-size:var(--vocs-fontSize_12)}.vocs_KeyboardShortcut_kbdGroup{align-items:center;display:inline-flex;gap:var(--vocs-space_3)}@media screen and (max-width: 720px){.vocs_KeyboardShortcut{display:none}}@keyframes vocs_SearchDialog_fadeIn{0%{opacity:0}to{opacity:1}}@keyframes vocs_SearchDialog_fadeAndSlideIn{0%{opacity:0;transform:translate(-50%,-5%) scale(.96)}to{opacity:1;transform:translate(-50%) scale(1)}}.vocs_SearchDialog{animation:vocs_SearchDialog_fadeAndSlideIn .1s ease-in-out;background:var(--vocs-color_background);border-radius:var(--vocs-borderRadius_6);display:flex;flex-direction:column;gap:var(--vocs-space_8);height:-moz-min-content;height:min-content;left:50%;margin:64px auto;max-height:min(100vh - 128px,900px);padding:var(--vocs-space_12);padding-bottom:var(--vocs-space_8);position:fixed;top:0;transform:translate(-50%);width:min(100vw - 60px,775px);z-index:var(--vocs-zIndex_backdrop)}.vocs_SearchDialog_overlay{animation:vocs_SearchDialog_fadeIn .1s ease-in-out;background:#0009;position:fixed;top:0;right:0;bottom:0;left:0;z-index:var(--vocs-zIndex_backdrop)}.vocs_SearchDialog_searchBox{align-items:center;border:1px solid var(--vocs-color_border);border-radius:var(--vocs-borderRadius_4);display:flex;gap:var(--vocs-space_8);padding-left:var(--vocs-space_8);padding-right:var(--vocs-space_8);margin-bottom:var(--vocs-space_8);width:100%}.vocs_SearchDialog_searchBox:focus-within{border-color:var(--vocs-color_borderAccent)}.vocs_SearchDialog_searchInput{background:transparent;display:flex;font-size:var(--vocs-fontSize_16);height:var(--vocs-space_40);width:100%}.vocs_SearchDialog_searchInput:focus{outline:none}.vocs_SearchDialog_searchInput::-moz-placeholder{color:var(--vocs-color_text4)}.vocs_SearchDialog_searchInput::placeholder{color:var(--vocs-color_text4)}.vocs_SearchDialog_searchInputIcon{color:var(--vocs-color_text3)}.vocs_SearchDialog_searchInputIconMobile{display:none}.vocs_SearchDialog_results{display:flex;flex-direction:column;gap:var(--vocs-space_8);overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;width:100%}.vocs_SearchDialog_result{border:1.5px solid var(--vocs-color_border);border-radius:var(--vocs-borderRadius_4);width:100%}.vocs_SearchDialog_result:focus-within{border-color:var(--vocs-color_borderAccent)}.vocs_SearchDialog_result>a{display:flex;flex-direction:column;gap:var(--vocs-space_8);min-height:var(--vocs-space_36);outline:none;justify-content:center;padding:var(--vocs-space_12);width:100%}.vocs_SearchDialog_resultSelected{border-color:var(--vocs-color_borderAccent)}.vocs_SearchDialog_resultIcon{color:var(--vocs-color_textAccent);margin-right:1px;width:15px}.vocs_SearchDialog_titles{align-items:center;display:flex;flex-wrap:wrap;font-weight:var(--vocs-fontWeight_medium);gap:var(--vocs-space_4);line-height:22px}.vocs_SearchDialog_title{align-items:center;display:flex;gap:var(--vocs-space_4);white-space:nowrap}.vocs_SearchDialog_titleIcon{color:var(--vocs-color_text);display:inline-block;opacity:.5}.vocs_SearchDialog_resultSelected .vocs_SearchDialog_title,.vocs_SearchDialog_resultSelected .vocs_SearchDialog_titleIcon{color:var(--vocs-color_textAccent)}.vocs_SearchDialog_content{padding:0}.vocs_SearchDialog_excerpt{max-height:8.75rem;overflow:hidden;opacity:.5;position:relative}.vocs_SearchDialog_excerpt:before{content:"";position:absolute;top:-1px;left:0;width:100%;height:8px;background:linear-gradient(var(--vocs-color_background),transparent);z-index:1000}.vocs_SearchDialog_excerpt:after{content:"";position:absolute;bottom:-1px;left:0;width:100%;height:12px;background:linear-gradient(transparent,var(--vocs-color_background));z-index:1000}.vocs_SearchDialog_title mark,.vocs_SearchDialog_excerpt mark{background-color:var(--vocs-color_searchHighlightBackground);color:var(--vocs-color_searchHighlightText);border-radius:var(--vocs-borderRadius_2);padding-bottom:0;padding-left:var(--vocs-space_2);padding-right:var(--vocs-space_2);padding-top:0}.vocs_SearchDialog_resultSelected .vocs_SearchDialog_excerpt{opacity:1}.vocs_SearchDialog_searchShortcuts{align-items:center;color:var(--vocs-color_text2);display:flex;gap:var(--vocs-space_20);font-size:var(--vocs-fontSize_14)}.vocs_SearchDialog_searchShortcutsGroup{align-items:center;display:inline-flex;gap:var(--vocs-space_3);margin-right:var(--vocs-space_6)}@media screen and (max-width: 720px){.vocs_SearchDialog{border-radius:0;height:calc(100vh - env(safe-area-inset-top) - env(safe-area-inset-bottom));margin:0;max-height:unset;width:100vw}.vocs_SearchDialog_searchInputIconDesktop{display:none}.vocs_SearchDialog_searchInputIconMobile{display:block}.vocs_SearchDialog_excerpt{opacity:1}.vocs_SearchDialog_searchShortcuts{display:none}}.vocs_DesktopTopNav{align-items:center;display:flex;justify-content:space-between;padding:0 var(--vocs-topNav_horizontalPadding);height:var(--vocs-topNav_height)}.vocs_DesktopTopNav_withLogo{padding-left:calc(((100% - var(--vocs-content_width)) / 2) + var(--vocs-topNav_horizontalPadding))}.vocs_DesktopTopNav_button{border-radius:var(--vocs-borderRadius_4);padding:var(--vocs-space_8)}.vocs_DesktopTopNav_content{right:calc(-1 * var(--vocs-space_24))}.vocs_DesktopTopNav_curtain{background:linear-gradient(var(--vocs-color_background),transparent 70%);height:30px;opacity:.98;width:100%}.vocs_DesktopTopNav_divider{background-color:var(--vocs-color_border);height:35%;width:1px}.vocs_DesktopTopNav_group{align-items:center;display:flex}.vocs_DesktopTopNav_icon{color:var(--vocs-color_text2);transition:color .1s}.vocs_DesktopTopNav_button:hover .vocs_DesktopTopNav_icon{color:var(--vocs-color_text)}.vocs_DesktopTopNav_item{align-items:center;display:flex;height:100%;position:relative}.vocs_DesktopTopNav_logo{padding-left:var(--vocs-sidebar_horizontalPadding);padding-right:var(--vocs-sidebar_horizontalPadding);width:var(--vocs-sidebar_width)}.vocs_DesktopTopNav_logoWrapper{display:flex;height:100%;justify-content:flex-end;left:0;position:absolute;width:var(--vocs_DocsLayout_leftGutterWidth)}.vocs_DesktopTopNav_section{align-items:center;display:flex;height:100%;gap:var(--vocs-space_24)}@media screen and (max-width: 1080px){.vocs_DesktopTopNav,.vocs_DesktopTopNav_curtain{display:none}}@media screen and (max-width: 1280px){.vocs_DesktopTopNav_hideCompact{display:none}}.vocs_Icon{align-items:center;display:flex;height:var(--vocs_Icon_size);width:var(--vocs_Icon_size)}:root:not(.dark) .vocs_Logo_logoDark{display:none}:root.dark .vocs_Logo_logoLight{display:none}.vocs_NavLogo_logoImage{height:50%;width:auto}.vocs_NavLogo_title{font-size:var(--vocs-fontSize_18);font-weight:var(--vocs-fontWeight_semibold);line-height:var(--vocs-lineHeight_heading)}@keyframes vocs_NavigationMenu_fadeIn{0%{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:translateY(0)}}.vocs_NavigationMenu_list{display:flex;gap:var(--vocs-space_20)}.vocs_NavigationMenu_link{align-items:center;display:flex;font-size:var(--vocs-fontSize_14);font-weight:var(--vocs-fontWeight_medium);height:100%}.vocs_NavigationMenu_link:hover,.vocs_NavigationMenu_link[data-active=true]{color:var(--vocs-color_textAccent)}.vocs_NavigationMenu_trigger:after{content:"";background-color:currentColor;color:var(--vocs-color_text3);display:inline-block;height:.625em;margin-left:.325em;width:.625em;-webkit-mask:var(--vocs_NavigationMenu_chevronDownIcon) no-repeat center / contain;mask:var(--vocs_NavigationMenu_chevronDownIcon) no-repeat center / contain}.vocs_NavigationMenu_content{background-color:var(--vocs-color_background2);border:1px solid var(--vocs-color_border);border-radius:var(--vocs-borderRadius_4);box-shadow:0 3px 10px var(--vocs-color_shadow);display:flex;flex-direction:column;padding:var(--vocs-space_12) var(--vocs-space_16);position:absolute;top:calc(100% + var(--vocs-space_8));min-width:200px;z-index:var(--vocs-zIndex_popover);animation:vocs_NavigationMenu_fadeIn .5s cubic-bezier(.16,1,.3,1)}.vocs_Footer{--vocs_Footer_iconWidth: 24px;display:flex;flex-direction:column;gap:var(--vocs-space_32);max-width:var(--vocs-content_width);overflow-x:hidden;padding:var(--vocs-space_28) var(--vocs-content_horizontalPadding) var(--vocs-space_48)}.vocs_Footer_container{border-bottom:1px solid var(--vocs-color_border);display:flex;justify-content:space-between;padding-bottom:var(--vocs-space_16)}.vocs_Footer_editLink{align-items:center;display:flex;font-size:var(--vocs-fontSize_14);gap:var(--vocs-space_8);text-decoration:none}.vocs_Footer_lastUpdated{color:var(--vocs-color_text3);font-size:var(--vocs-fontSize_14)}.vocs_Footer_navigation{display:flex;justify-content:space-between}.vocs_Footer_navigationIcon{width:var(--vocs_Footer_iconWidth)}.vocs_Footer_navigationIcon_left{display:flex}.vocs_Footer_navigationIcon_right{display:flex;justify-content:flex-end}.vocs_Footer_navigationItem{display:flex;flex-direction:column;gap:var(--vocs-space_4)}.vocs_Footer_navigationItem_right{align-items:flex-end}.vocs_Footer_navigationText{align-items:center;display:flex;font-size:var(--vocs-fontSize_18);font-weight:var(--vocs-fontWeight_medium)}.vocs_Footer_navigationTextInner{overflow:hidden;text-overflow:ellipsis;width:26ch;white-space:pre}@media screen and (max-width: 720px){.vocs_Footer_navigationIcon_left,.vocs_Footer_navigationIcon_right{justify-content:center}.vocs_Footer_navigationText{font-size:var(--vocs-fontSize_12)}}@media screen and (max-width: 480px){.vocs_Footer_navigationTextInner{width:20ch}}.vocs_MobileSearch_searchButton{align-items:center;display:flex;color:var(--vocs-color_text);height:var(--vocs-space_28);justify-content:center;width:var(--vocs-space_28)}@keyframes vocs_MobileTopNav_fadeIn{0%{opacity:0}to{opacity:1}}.vocs_MobileTopNav{align-items:center;background-color:var(--vocs-color_backgroundDark);border-bottom:1px solid var(--vocs-color_border);display:none;height:100%;justify-content:space-between;padding:var(--vocs-space_0) var(--vocs-content_horizontalPadding);width:100%}.vocs_MobileTopNav_button{border-radius:var(--vocs-borderRadius_4);padding:var(--vocs-space_8)}.vocs_MobileTopNav_content{left:calc(-1 * var(--vocs-space_24))}.vocs_MobileTopNav_curtain{align-items:center;background-color:var(--vocs-color_backgroundDark);border-bottom:1px solid var(--vocs-color_border);display:none;justify-content:space-between;font-size:var(--vocs-fontSize_13);font-weight:var(--vocs-fontWeight_medium);height:100%;padding:var(--vocs-space_0) var(--vocs-content_horizontalPadding);width:100%}.vocs_MobileTopNav_curtainGroup{align-items:center;display:flex;gap:var(--vocs-space_12)}.vocs_MobileTopNav_divider{background-color:var(--vocs-color_border);height:35%;width:1px}.vocs_MobileTopNav_group{align-items:center;display:flex;height:100%}.vocs_MobileTopNav_icon{color:var(--vocs-color_text2);transition:color .1s}.vocs_MobileTopNav_button:hover .vocs_MobileTopNav_icon{color:var(--vocs-color_text)}.vocs_MobileTopNav_item{position:relative}.vocs_MobileTopNav_logo{align-items:center;display:flex;height:var(--vocs-topNav_height)}.vocs_MobileTopNav_logoImage{height:30%}.vocs_MobileTopNav_menuTrigger{align-items:center;display:flex;gap:var(--vocs-space_8)}.vocs_MobileTopNav_menuTitle{max-width:22ch;overflow:hidden;text-align:left;text-overflow:ellipsis;white-space:pre}.vocs_MobileTopNav_navigation{margin-left:var(--vocs-space_8)}.vocs_MobileTopNav_navigationContent{display:flex;flex-direction:column;margin-left:var(--vocs-space_8)}.vocs_MobileTopNav_navigationItem{align-items:center;display:flex;justify-content:flex-start;font-size:var(--vocs-fontSize_14);font-weight:var(--vocs-fontWeight_medium);width:100%}.vocs_MobileTopNav_navigationItem:hover,.vocs_MobileTopNav_navigationItem[data-active=true],.vocs_MobileTopNav_navigationItem[data-state=open]{color:var(--vocs-color_textAccent)}.vocs_MobileTopNav_trigger:after{content:"";background-color:currentColor;display:inline-block;height:.625em;margin-left:.325em;width:.625em;-webkit-mask:var(--vocs_MobileTopNav_chevronDownIcon) no-repeat center / contain;mask:var(--vocs_MobileTopNav_chevronDownIcon) no-repeat center / contain}.vocs_MobileTopNav_trigger[data-state=open]:after{-webkit-mask:var(--vocs_MobileTopNav_chevronUpIcon) no-repeat center / contain;mask:var(--vocs_MobileTopNav_chevronUpIcon) no-repeat center / contain}.vocs_MobileTopNav_outlineTrigger{animation:vocs_MobileTopNav_fadeIn .5s cubic-bezier(.16,1,.3,1);align-items:center;color:var(--vocs-color_text2);display:flex;gap:var(--vocs-space_6)}.vocs_MobileTopNav_outlineTrigger[data-state=open]{color:var(--vocs-color_textAccent)}.vocs_MobileTopNav_outlinePopover{display:none;overflow-y:scroll;padding:var(--vocs-space_16);max-height:80vh}.vocs_MobileTopNav_section{align-items:center;display:flex;height:100%;gap:var(--vocs-space_16)}.vocs_MobileTopNav_separator{background-color:var(--vocs-color_border);height:1.75em;width:1px}.vocs_MobileTopNav_sidebarPopover{display:none;overflow-y:scroll;padding:0 var(--vocs-sidebar_horizontalPadding);max-height:80vh;width:var(--vocs-sidebar_width)}.vocs_MobileTopNav_title{font-size:var(--vocs-fontSize_18);font-weight:var(--vocs-fontWeight_semibold);line-height:var(--vocs-lineHeight_heading)}.vocs_MobileTopNav_topNavPopover{display:none;overflow-y:scroll;padding:var(--vocs-sidebar_verticalPadding) var(--vocs-sidebar_horizontalPadding);max-height:80vh;width:var(--vocs-sidebar_width)}@media screen and (max-width: 1080px){.vocs_MobileTopNav,.vocs_MobileTopNav_curtain{display:flex}.vocs_MobileTopNav_outlinePopover{display:block;max-width:300px}.vocs_MobileTopNav_sidebarPopover{display:block}.vocs_MobileTopNav_topNavPopover{display:flex;flex-direction:column}}@media screen and (max-width: 720px){.vocs_MobileTopNav_navigation:not(.vocs_MobileTopNav_navigation_compact){display:none}}@media screen and (min-width: 721px){.vocs_MobileTopNav_navigation.vocs_MobileTopNav_navigation_compact{display:none}}.vocs_Outline{width:100%}.vocs_Outline_nav{display:flex;flex-direction:column;gap:var(--vocs-space_8)}.vocs_DocsLayout_gutterRight .vocs_Outline_nav{border-left:1px solid var(--vocs-color_border);padding-left:var(--vocs-space_16)}.vocs_Outline_heading{color:var(--vocs-color_title);font-size:var(--vocs-fontSize_13);font-weight:var(--vocs-fontWeight_semibold);line-height:var(--vocs-lineHeight_heading);letter-spacing:.025em}.vocs_Outline_items .vocs_Outline_items{padding-left:var(--vocs-space_12)}.vocs_Outline_item{line-height:var(--vocs-lineHeight_outlineItem);margin-bottom:var(--vocs-space_8);overflow:hidden;text-overflow:ellipsis;text-wrap:nowrap}.vocs_Outline_link{color:var(--vocs-color_text2);font-weight:var(--vocs-fontWeight_medium);font-size:var(--vocs-fontSize_13);transition:color .1s}.vocs_Outline_link[data-active=true]{color:var(--vocs-color_textAccent)}.vocs_Outline_link[data-active=true]:hover{color:var(--vocs-color_textAccentHover)}.vocs_Outline_link:hover{color:var(--vocs-color_text)}.vocs_Popover{background-color:var(--vocs-color_background2);border:1px solid var(--vocs-color_border);border-radius:var(--vocs-borderRadius_4);margin:0 var(--vocs-space_6);z-index:var(--vocs-zIndex_popover)}.vocs_Sidebar{display:flex;flex-direction:column;font-size:var(--vocs-fontSize_14);overflow-y:auto;width:var(--vocs-sidebar_width)}.vocs_Sidebar_backLink{text-align:left}.vocs_Sidebar_divider{background-color:var(--vocs-color_border);width:100%;height:1px}.vocs_Sidebar_navigation{outline:0}.vocs_Sidebar_navigation:first-child{padding-top:var(--vocs-space_16)}.vocs_Sidebar_group{display:flex;flex-direction:column}.vocs_Sidebar_logo{align-items:center;display:flex;height:var(--vocs-topNav_height);padding-top:var(--vocs-space_4)}.vocs_Sidebar_logoWrapper{background-color:var(--vocs-color_backgroundDark);position:sticky;top:0;z-index:var(--vocs-zIndex_gutterTopCurtain)}.vocs_Sidebar_section{display:flex;flex-direction:column;font-size:1em}.vocs_Sidebar_navigation>.vocs_Sidebar_group>.vocs_Sidebar_section+.vocs_Sidebar_section{border-top:1px solid var(--vocs-color_border)}.vocs_Sidebar_levelCollapsed{gap:var(--vocs-space_4);padding-bottom:var(--vocs-space_12)}.vocs_Sidebar_levelInset{border-left:1px solid var(--vocs-color_border);font-size:var(--vocs-fontSize_13);margin-top:var(--vocs-space_8);padding-left:var(--vocs-space_12)}.vocs_Sidebar_levelInset.vocs_Sidebar_levelInset.vocs_Sidebar_levelInset{font-weight:var(--vocs-fontWeight_regular);padding-top:0;padding-bottom:0}.vocs_Sidebar_items{display:flex;flex-direction:column;gap:.625em;padding-top:var(--vocs-space_16);padding-bottom:var(--vocs-space_16);font-weight:var(--vocs-fontWeight_medium)}.vocs_Sidebar_level .vocs_Sidebar_items{padding-top:var(--vocs-space_6)}.vocs_Sidebar_item{color:var(--vocs-color_text3);letter-spacing:.25px;line-height:var(--vocs-lineHeight_sidebarItem);width:100%;transition:color .1s}.vocs_Sidebar_item:hover{color:var(--vocs-color_text)}.vocs_Sidebar_item[data-active=true]{color:var(--vocs-color_textAccent)}.vocs_Sidebar_sectionHeader{align-items:center;display:flex;justify-content:space-between}.vocs_Sidebar_level>.vocs_Sidebar_sectionHeader{padding-top:var(--vocs-space_12)}.vocs_Sidebar_sectionHeaderActive{color:var(--vocs-color_text)}.vocs_Sidebar_sectionTitle{color:var(--vocs-color_title);font-size:var(--vocs-fontSize_14);font-weight:var(--vocs-fontWeight_semibold);letter-spacing:.25px;width:100%}.vocs_Sidebar_sectionCollapse{color:var(--vocs-color_text3);transform:rotate(90deg);transition:transform .25s}.vocs_Sidebar_sectionCollapseActive{transform:rotate(0)}@media screen and (max-width: 1080px){.vocs_Sidebar{width:100%}.vocs_Sidebar_logoWrapper{display:none}}.vocs_SkipLink{background:var(--vocs-color_background);border-radius:var(--vocs-borderRadius_4);color:var(--vocs-color_link);font-size:var(--vocs-fontSize_14);font-weight:var(--vocs-fontWeight_semibold);left:var(--vocs-space_8);padding:var(--vocs-space_8) var(--vocs-space_16);position:fixed;text-decoration:none;top:var(--vocs-space_8);z-index:999}.vocs_SkipLink:focus{clip:auto;clip-path:none;height:auto;width:auto}@layer vocs_preflight{*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }}.mb-4{margin-bottom:1rem}.mt-8{margin-top:2rem}.block{display:block}.flex{display:flex}.w-full{width:100%}.max-w-5xl{max-width:64rem}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.justify-between{justify-content:space-between}.gap-2{gap:.5rem}.gap-4{gap:1rem}.rounded{border-radius:.25rem}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-\[--vocs-color_codeInlineBorder\]{border-color:var(--vocs-color_codeInlineBorder)}.border-gray-500{--tw-border-opacity: 1;border-color:rgb(107 114 128 / var(--tw-border-opacity))}.border-transparent{border-color:transparent}.bg-\[--vocs-color_codeBlockBackground\]{background-color:var(--vocs-color_codeBlockBackground)}.bg-\[--vocs-color_codeTitleBackground\]{background-color:var(--vocs-color_codeTitleBackground)}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.px-2{padding-left:.5rem;padding-right:.5rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-4{padding-top:1rem;padding-bottom:1rem}.pb-2{padding-bottom:.5rem}.text-left{text-align:left}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.font-bold{font-weight:700}.text-\[--vocs-color_heading\]{color:var(--vocs-color_heading)}.text-\[--vocs-color_text3\]{color:var(--vocs-color_text3)}.hover\:text-\[--vocs-color_text\]:hover{color:var(--vocs-color_text)}@media (min-width: 768px){.md\:flex-row{flex-direction:row}}.\[\&\[data-state\=\'active\'\]\]\:border-\[--vocs-color_borderAccent\][data-state=active]{border-color:var(--vocs-color_borderAccent)}.\[\&\[data-state\=\'active\'\]\]\:text-\[--vocs-color_text\][data-state=active]{color:var(--vocs-color_text)}.vocs_Section{border-top:1px solid var(--vocs-color_border);margin-top:var(--vocs-space_56);padding-top:var(--vocs-space_24)}.vocs_Anchor{color:var(--vocs-color_link);font-weight:var(--vocs-fontWeight_medium);text-underline-offset:var(--vocs-space_2);text-decoration:underline;transition:color .1s}.vocs_Callout_danger .vocs_Anchor{color:var(--vocs-color_dangerText)}.vocs_Callout_danger .vocs_Anchor:hover{color:var(--vocs-color_dangerTextHover)}.vocs_Callout_info .vocs_Anchor{color:var(--vocs-color_infoText)}.vocs_Callout_info .vocs_Anchor:hover{color:var(--vocs-color_infoTextHover)}.vocs_Callout_success .vocs_Anchor{color:var(--vocs-color_successText)}.vocs_Callout_success .vocs_Anchor:hover{color:var(--vocs-color_successTextHover)}.vocs_Callout_tip .vocs_Anchor{color:var(--vocs-color_tipText)}.vocs_Callout_tip .vocs_Anchor:hover{color:var(--vocs-color_tipTextHover)}.vocs_Callout_warning .vocs_Anchor{color:var(--vocs-color_warningText)}.vocs_Callout_warning .vocs_Anchor:hover{color:var(--vocs-color_warningTextHover)}.vocs_Anchor:hover{color:var(--vocs-color_linkHover)}.vocs_Section a.data-footnote-backref{color:var(--vocs-color_link);font-weight:var(--vocs-fontWeight_medium);text-underline-offset:var(--vocs-space_2);text-decoration:underline}.vocs_Section a.data-footnote-backref:hover{color:var(--vocs-color_linkHover)}.vocs_Autolink{opacity:0;margin-top:.1em;position:absolute;transition:opacity .1s,transform .1s;transform:translate(-2px) scale(.98)}.vocs_Heading:hover .vocs_Autolink{opacity:1;transform:translate(0) scale(1)}.vocs_Pre_wrapper{position:relative}.vocs_Code{transition:color .1s}:not(.vocs_Pre)>.vocs_Code{background-color:var(--vocs-color_codeInlineBackground);border:1px solid var(--vocs-color_codeInlineBorder);border-radius:var(--vocs-borderRadius_4);color:var(--vocs-color_codeInlineText);font-size:var(--vocs-fontSize_code);padding:var(--vocs-space_3) var(--vocs-space_6)}.vocs_Anchor>.vocs_Code{color:var(--vocs-color_link);text-decoration:underline;text-underline-offset:var(--vocs-space_2)}.vocs_Anchor:hover>.vocs_Code{color:var(--vocs-color_linkHover)}.vocs_Callout_danger .vocs_Code{color:var(--vocs-color_dangerText)}.vocs_Callout_info .vocs_Code{color:var(--vocs-color_infoText)}.vocs_Callout_success .vocs_Code{color:var(--vocs-color_successText)}.vocs_Callout_tip .vocs_Code{color:var(--vocs-color_tipText)}.vocs_Callout_warning .vocs_Code{color:var(--vocs-color_warningText)}.vocs_Heading .vocs_Code{color:inherit}.twoslash-popup-info-hover>.vocs_Code{background-color:inherit;padding:0;text-wrap:wrap}.twoslash-popup-jsdoc .vocs_Code{display:inline}.vocs_Authors{color:var(--vocs-color_text3);font-size:var(--vocs-fontSize_14)}.vocs_Authors_authors{color:var(--vocs-color_text)}.vocs_Authors_link{text-decoration:underline;text-underline-offset:2px}.vocs_Authors_link:hover{color:var(--vocs-color_text2)}.vocs_Authors_separator{color:var(--vocs-color_text3)}.vocs_BlogPosts{display:flex;flex-direction:column;gap:var(--vocs-space_32)}.vocs_BlogPosts_description{margin-top:var(--vocs-space_16)}.vocs_BlogPosts_divider{border-color:var(--vocs-color_background4)}.vocs_BlogPosts_post:hover .vocs_BlogPosts_readMore{color:var(--vocs-color_textAccent)}.vocs_BlogPosts_title{font-size:var(--vocs-fontSize_h2);font-weight:var(--vocs-fontWeight_semibold)}.vocs_Sponsors{border-radius:var(--vocs-borderRadius_8);display:flex;flex-direction:column;gap:var(--vocs-space_4);overflow:hidden}.vocs_Sponsors_title{background-color:var(--vocs-color_background3);color:var(--vocs-color_text3);font-size:var(--vocs-fontSize_13);font-weight:var(--vocs-fontWeight_medium);padding:var(--vocs-space_4) 0;text-align:center}.vocs_Sponsors_row{display:flex;flex-direction:row;gap:var(--vocs-space_4)}.vocs_Sponsors_column{align-items:center;background-color:var(--vocs-color_background3);display:flex;justify-content:center;padding:var(--vocs-space_32);width:calc(var(--vocs_Sponsors_columns) * 100%)}.vocs_Sponsors_sponsor{transition:background-color .1s}.vocs_Sponsors_sponsor:hover{background-color:var(--vocs-color_background5)}.dark .vocs_Sponsors_sponsor:hover{background-color:var(--vocs-color_white)}.vocs_Sponsors_image{filter:grayscale(1);height:var(--vocs_Sponsors_height);transition:filter .1s}.dark .vocs_Sponsors_image{filter:grayscale(1) invert(1)}.vocs_Sponsors_column:hover .vocs_Sponsors_image{filter:none}.vocs_AutolinkIcon{background-color:var(--vocs-color_textAccent);display:inline-block;margin-left:.25em;height:.8em;width:.8em;-webkit-mask:var(--vocs_AutolinkIcon_iconUrl) no-repeat center / contain;mask:var(--vocs_AutolinkIcon_iconUrl) no-repeat center / contain;transition:background-color .1s}.vocs_Autolink:hover .vocs_AutolinkIcon{background-color:var(--vocs-color_textAccentHover)}@media screen and (max-width: 720px){.vocs_CodeGroup{border-radius:0;border-right:none;border-left:none;margin-left:calc(-1 * var(--vocs-space_16));margin-right:calc(-1 * var(--vocs-space_16))}}.vocs_Steps{border-left:1.5px solid var(--vocs-color_border);counter-reset:step;padding-left:var(--vocs-space_24);margin-left:var(--vocs-space_12);margin-top:var(--vocs-space_24)}@media screen and (max-width: 720px){.vocs_Steps{margin-left:var(--vocs-space_4)}}.vocs_Subtitle{color:var(--vocs-color_text2);font-size:var(--vocs-fontSize_subtitle);font-weight:var(--vocs-fontWeight_regular);letter-spacing:-.02em;line-height:var(--vocs-lineHeight_heading);margin-top:var(--vocs-space_4);text-wrap:balance}.vocs_HorizontalRule{border-top:1px solid var(--vocs-color_hr);margin-bottom:var(--vocs-space_16)}.vocs_ListItem{line-height:var(--vocs-lineHeight_listItem)}.vocs_ListItem:not(:last-child){margin-bottom:.5em}.vocs_CopyButton{align-items:center;background-color:color-mix(in srgb,var(--vocs-color_background2) 75%,transparent);-webkit-backdrop-filter:blur(1px);backdrop-filter:blur(1px);border:1px solid var(--vocs-color_border);border-radius:var(--vocs-borderRadius_4);color:var(--vocs-color_text3);display:flex;justify-content:center;position:absolute;right:var(--vocs-space_18);top:var(--vocs-space_18);opacity:0;height:32px;width:32px;transition:background-color .15s,opacity .15s;z-index:var(--vocs-zIndex_surface)}.vocs_CopyButton:hover{background-color:var(--vocs-color_background4);transition:background-color .05s}.vocs_CopyButton:focus-visible{background-color:var(--vocs-color_background4);opacity:1;transition:background-color .05s}.vocs_CopyButton:hover:active{background-color:var(--vocs-color_background2)}.vocs_Pre:hover .vocs_CopyButton{opacity:1}.vocs_CodeTitle{align-items:center;background-color:var(--vocs-color_codeTitleBackground);border-bottom:1px solid var(--vocs-color_border);color:var(--vocs-color_text3);display:flex;font-size:var(--vocs-fontSize_14);font-weight:var(--vocs-fontWeight_medium);gap:var(--vocs-space_6);padding:var(--vocs-space_8) var(--vocs-space_24)}.vocs_CodeGroup .vocs_CodeTitle{display:none}@media screen and (max-width: 720px){.vocs_CodeTitle{border-radius:0;padding-left:var(--vocs-space_16);padding-right:var(--vocs-space_16)}}.vocs_CalloutTitle{font-size:var(--vocs-fontSize_12);letter-spacing:.02em;text-transform:uppercase}.vocs_Strong{font-weight:var(--vocs-fontWeight_semibold)}.vocs_Content>.vocs_Strong{display:block}.vocs_Callout>.vocs_Strong{display:block;margin-bottom:var(--vocs-space_4)}.vocs_Summary{cursor:pointer}.vocs_Summary.vocs_Summary:hover{text-decoration:underline}.vocs_Details[open] .vocs_Summary{margin-bottom:var(--vocs-space_4)}.vocs_Callout .vocs_Summary{font-weight:var(--vocs-fontWeight_medium)}.vocs_Details .vocs_Summary.vocs_Summary{margin-bottom:0}.vocs_Table{display:block;border-collapse:collapse;overflow-x:auto;margin-bottom:var(--vocs-space_24)}.vocs_TableCell{border:1px solid var(--vocs-color_tableBorder);font-size:var(--vocs-fontSize_td);padding:var(--vocs-space_8) var(--vocs-space_12)}.vocs_TableHeader{border:1px solid var(--vocs-color_tableBorder);background-color:var(--vocs-color_tableHeaderBackground);color:var(--vocs-color_tableHeaderText);font-size:var(--vocs-fontSize_th);font-weight:var(--vocs-fontWeight_medium);padding:var(--vocs-space_8) var(--vocs-space_12);text-align:left}.vocs_TableHeader[align=center]{text-align:center}.vocs_TableHeader[align=right]{text-align:right}.vocs_TableRow{border-top:1px solid var(--vocs-color_tableBorder)}.vocs_TableRow:nth-child(2n){background-color:var(--vocs-color_background2)}@media screen and (max-width: 720px){.Tabs__root{border-radius:0;margin-left:calc(-1 * var(--vocs-space_16));margin-right:calc(-1 * var(--vocs-space_16));padding-left:var(--vocs-space_16);padding-right:var(--vocs-space_16)}.Tabs__list{margin-left:calc(-1 * var(--vocs-space_16));margin-right:calc(-1 * var(--vocs-space_16))}}.vocs_Button_button{align-items:center;background:var(--vocs-color_background4);border:1px solid var(--vocs-color_border);border-radius:var(--vocs-borderRadius_4);color:var(--vocs-color_text);display:flex;font-size:var(--vocs-fontSize_14);font-weight:var(--vocs-fontWeight_medium);height:36px;padding:0 var(--vocs-space_16);transition:background .1s;white-space:pre;width:-moz-fit-content;width:fit-content}.vocs_Button_button:hover{background:var(--vocs-color_background3)}.vocs_Button_button_accent{background:var(--vocs-color_backgroundAccent);color:var(--vocs-color_backgroundAccentText);border:1px solid var(--vocs-color_borderAccent)}.vocs_Button_button_accent:hover{background:var(--vocs-color_backgroundAccentHover)}.vocs_HomePage{align-items:center;display:flex;flex-direction:column;padding-top:var(--vocs-space_64);text-align:center;gap:var(--vocs-space_32)}.vocs_HomePage_logo{display:flex;justify-content:center;height:48px}.vocs_HomePage_title{font-size:var(--vocs-fontSize_64);font-weight:var(--vocs-fontWeight_semibold);line-height:1em}.vocs_HomePage_tagline{color:var(--vocs-color_text2);font-size:var(--vocs-fontSize_20);font-weight:var(--vocs-fontWeight_medium);line-height:1.5em}.vocs_HomePage_title+.vocs_HomePage_tagline{margin-top:calc(-1 * var(--vocs-space_8))}.vocs_HomePage_description{color:var(--vocs-color_text);font-size:var(--vocs-fontSize_16);font-weight:var(--vocs-fontWeight_regular);line-height:var(--vocs-lineHeight_paragraph)}.vocs_HomePage_tagline+.vocs_HomePage_description{margin-top:calc(-1 * var(--vocs-space_8))}.vocs_HomePage_buttons{display:flex;gap:var(--vocs-space_16)}.vocs_HomePage_tabs{min-width:300px}.vocs_HomePage_tabsList{display:flex;justify-content:center}.vocs_HomePage_tabsContent{color:var(--vocs-color_text2);font-family:var(--vocs-fontFamily_mono)}.vocs_HomePage_packageManager{color:var(--vocs-color_textAccent)}@media screen and (max-width: 720px){.vocs_HomePage{padding-top:var(--vocs-space_32)}.vocs_HomePage_logo{height:36px}} diff --git a/assets/typed-CRK0wUYT.js b/assets/typed-CRK0wUYT.js new file mode 100644 index 00000000..0cdef241 --- /dev/null +++ b/assets/typed-CRK0wUYT.js @@ -0,0 +1,45 @@ +import{u as l,j as s}from"./index-DTtoqbmS.js";const a={title:"TypedApi",description:"undefined"};function n(i){const e={a:"a",code:"code",div:"div",h1:"h1",h2:"h2",header:"header",p:"p",pre:"pre",span:"span",...l(),...i.components};return s.jsxs(s.Fragment,{children:[s.jsx(e.header,{children:s.jsxs(e.h1,{id:"typedapi",children:["TypedApi",s.jsx(e.a,{"aria-hidden":"true",tabIndex:"-1",href:"#typedapi",children:s.jsx(e.div,{"data-autolink-icon":!0})})]})}),` +`,s.jsxs(e.p,{children:["The ",s.jsx(e.code,{children:"TypedApi"})," allows to interact with the runtime metadata easily and with a great developer experience. It'll allow to make storage calls, create transactions, etc. It uses the descriptors generated by PAPI CLI (see ",s.jsx(e.a,{href:"/codegen",children:"Codegen"})," section for a deeper explanation) to generate the types used at devel time. ",s.jsx(e.code,{children:"TypedApi"})," object looks like:"]}),` +`,s.jsx(e.pre,{className:"shiki shiki-themes github-light github-dark-dimmed",style:{backgroundColor:"#fff","--shiki-dark-bg":"#22272e",color:"#24292e","--shiki-dark":"#adbac7"},tabIndex:"0",children:s.jsxs(e.code,{children:[s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"type"}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" TypedApi"}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:" ="}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" {"})]}),` +`,s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#E36209","--shiki-dark":"#F69D50"},children:" query"}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" StorageApi"})]}),` +`,s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#E36209","--shiki-dark":"#F69D50"},children:" tx"}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" TxApi"})]}),` +`,s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#E36209","--shiki-dark":"#F69D50"},children:" event"}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" EvApi"})]}),` +`,s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#E36209","--shiki-dark":"#F69D50"},children:" apis"}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" RuntimeCallsApi"})]}),` +`,s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#E36209","--shiki-dark":"#F69D50"},children:" constants"}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" ConstApi"})]}),` +`,s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#E36209","--shiki-dark":"#F69D50"},children:" runtime"}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" RuntimeApi"})]}),` +`,s.jsx(e.span,{className:"line",children:s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"}"})})]})}),` +`,s.jsxs(e.p,{children:["Let's start with the simplest one, ",s.jsx(e.code,{children:"runtime"})," field. It's just:"]}),` +`,s.jsx(e.pre,{className:"shiki shiki-themes github-light github-dark-dimmed",style:{backgroundColor:"#fff","--shiki-dark-bg":"#22272e",color:"#24292e","--shiki-dark":"#adbac7"},tabIndex:"0",children:s.jsxs(e.code,{children:[s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"type"}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" RuntimeApi"}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:" ="}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" Observable"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"<"}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:"Runtime"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"> "}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"&"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" {"})]}),` +`,s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#DCBDFB"},children:" latest"}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" () "}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"=>"}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" Promise"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"<"}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:"Runtime"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:">"})]}),` +`,s.jsx(e.span,{className:"line",children:s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"}"})})]})}),` +`,s.jsxs(e.p,{children:["It's an observable that holds the current runtime information for that specific client, with a ",s.jsx(e.code,{children:"latest"})," function to be able to wait for the runtime to load (it'll be helpful for some functions that need a ",s.jsx(e.code,{children:"Runtime"}),", see ",s.jsx(e.a,{href:"/recipes/upgrade",children:"this recipe"}),")."]}),` +`,s.jsxs(e.p,{children:["All the other fields are a ",s.jsx(e.code,{children:"Record>"}),". The first index defines the pallet that we're looking for, and the second one defines which query/tx/event/api/constant are we looking for inside that pallet. Let's see, one by one, what do we find inside of it!"]}),` +`,s.jsxs(e.h2,{id:"iscompatible",children:["isCompatible",s.jsx(e.a,{"aria-hidden":"true",tabIndex:"-1",href:"#iscompatible",children:s.jsx(e.div,{"data-autolink-icon":!0})})]}),` +`,s.jsxs(e.p,{children:["First of all, let's understand ",s.jsx(e.code,{children:"isCompatible"})," field. It's under each query/tx/event/api/constant in any runtime. After generating the descriptors (see ",s.jsx(e.a,{href:"/codegen",children:"Codegen"})," section), we have a typed interface to every interaction with the chain. Nevertheless, breaking runtime upgrades might hit the runtime between developing and the runtime execution of your app. ",s.jsx(e.code,{children:"isCompatible"})," enables you to check on runtime if there was a breaking upgrade that hit your particular method."]}),` +`,s.jsx(e.p,{children:"Let's see its interface, and an example."}),` +`,s.jsx(e.pre,{className:"shiki shiki-themes github-light github-dark-dimmed",style:{backgroundColor:"#fff","--shiki-dark-bg":"#22272e",color:"#24292e","--shiki-dark":"#adbac7"},tabIndex:"0",children:s.jsxs(e.code,{children:[s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"interface"}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" IsCompatible"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" {"})]}),` +`,s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" ()"}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" Promise"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"<"}),s.jsx(e.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:"boolean"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:">"})]}),` +`,s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" ("}),s.jsx(e.span,{style:{color:"#E36209","--shiki-dark":"#F69D50"},children:"runtime"}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" Runtime"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:")"}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(e.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" boolean"})]}),` +`,s.jsx(e.span,{className:"line",children:s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"}"})})]})}),` +`,s.jsxs(e.p,{children:["For example, let's use ",s.jsx(e.code,{children:"typedApi.query.System.Number"}),". It's a simple query, we'll see in the next pages how to interact with it. We're only interested on ",s.jsx(e.code,{children:"isCompatible"}),"."]}),` +`,s.jsx(e.pre,{className:"shiki shiki-themes github-light github-dark-dimmed",style:{backgroundColor:"#fff","--shiki-dark-bg":"#22272e",color:"#24292e","--shiki-dark":"#adbac7"},tabIndex:"0",children:s.jsxs(e.code,{children:[s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"const"}),s.jsx(e.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" query"}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:" ="}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" typedApi.query.System.Number"})]}),` +`,s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"const"}),s.jsx(e.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" runtime"}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:" ="}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:" await"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" typedApi.runtime."}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#DCBDFB"},children:"latest"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"() "}),s.jsx(e.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:"// we already learnt about it!"})]}),` +`,s.jsx(e.span,{className:"line","data-empty-line":!0,children:" "}),` +`,s.jsx(e.span,{className:"line",children:s.jsx(e.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:"// in this case `isCompatible` returns a Promise"})}),` +`,s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"if"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" ("}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"await"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" query."}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#DCBDFB"},children:"isCompatible"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"()) {"})]}),` +`,s.jsx(e.span,{className:"line",children:s.jsx(e.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:" // do your stuff, the query is compatible"})}),` +`,s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"} "}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"else"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" {"})]}),` +`,s.jsx(e.span,{className:"line",children:s.jsx(e.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:" // the call is not compatible!"})}),` +`,s.jsx(e.span,{className:"line",children:s.jsx(e.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:" // keep an eye on what you do"})}),` +`,s.jsx(e.span,{className:"line",children:s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"}"})}),` +`,s.jsx(e.span,{className:"line","data-empty-line":!0,children:" "}),` +`,s.jsx(e.span,{className:"line",children:s.jsx(e.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:"// another option would be to use the already loaded runtime"})}),` +`,s.jsx(e.span,{className:"line",children:s.jsx(e.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:"// in this case, `isCompatible` is sync, and returns a boolean"})}),` +`,s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"if"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" (query."}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#DCBDFB"},children:"isCompatible"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"(runtime)) {"})]}),` +`,s.jsx(e.span,{className:"line",children:s.jsx(e.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:" // do your stuff, the query is compatible"})}),` +`,s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"} "}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"else"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" {"})]}),` +`,s.jsx(e.span,{className:"line",children:s.jsx(e.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:" // the call is not compatible!"})}),` +`,s.jsx(e.span,{className:"line",children:s.jsx(e.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:" // keep an eye on what you do"})}),` +`,s.jsx(e.span,{className:"line",children:s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"}"})})]})}),` +`,s.jsxs(e.p,{children:["As you can see, ",s.jsx(e.code,{children:"isCompatible"})," is really powerful since we can prepare for runtime upgrades seamlessly using PAPI. See ",s.jsx(e.a,{href:"/recipes/upgrade",children:"this recipe"})," for an example!"]}),` +`,s.jsx(e.p,{children:"Let's continue with the rest of the fields!"})]})}function d(i={}){const{wrapper:e}={...l(),...i.components};return e?s.jsx(e,{...i,children:s.jsx(n,{...i})}):n(i)}export{d as default,a as frontmatter}; diff --git a/assets/types-CXl5FL43.js b/assets/types-69imWyvM.js similarity index 99% rename from assets/types-CXl5FL43.js rename to assets/types-69imWyvM.js index eed1801d..c47d42f7 100644 --- a/assets/types-CXl5FL43.js +++ b/assets/types-69imWyvM.js @@ -1,4 +1,4 @@ -import{u as n,j as s}from"./index-wpzGQYGF.js";const a={title:"Types",description:"undefined"};function l(i){const e={a:"a",code:"code",div:"div",h1:"h1",h2:"h2",header:"header",p:"p",pre:"pre",span:"span",...n(),...i.components};return s.jsxs(s.Fragment,{children:[s.jsx(e.header,{children:s.jsxs(e.h1,{id:"types",children:["Types",s.jsx(e.a,{"aria-hidden":"true",tabIndex:"-1",href:"#types",children:s.jsx(e.div,{"data-autolink-icon":!0})})]})}),` +import{u as n,j as s}from"./index-DTtoqbmS.js";const a={title:"Types",description:"undefined"};function l(i){const e={a:"a",code:"code",div:"div",h1:"h1",h2:"h2",header:"header",p:"p",pre:"pre",span:"span",...n(),...i.components};return s.jsxs(s.Fragment,{children:[s.jsx(e.header,{children:s.jsxs(e.h1,{id:"types",children:["Types",s.jsx(e.a,{"aria-hidden":"true",tabIndex:"-1",href:"#types",children:s.jsx(e.div,{"data-autolink-icon":!0})})]})}),` `,s.jsx(e.p,{children:"All the types defined in the metadata of a chain are anonymous: They represent the structure of the data, down to the primitive types."}),` `,s.jsx(e.p,{children:"Polkadot-API has some types defined that make it easier working with chain data."}),` `,s.jsxs(e.h2,{id:"ss58string",children:["SS58String",s.jsx(e.a,{"aria-hidden":"true",tabIndex:"-1",href:"#ss58string",children:s.jsx(e.div,{"data-autolink-icon":!0})})]}),` diff --git a/assets/upgrade-CVsjfMfY.js b/assets/upgrade-plzHv7vu.js similarity index 99% rename from assets/upgrade-CVsjfMfY.js rename to assets/upgrade-plzHv7vu.js index a4de3d45..d05cf73a 100644 --- a/assets/upgrade-CVsjfMfY.js +++ b/assets/upgrade-plzHv7vu.js @@ -1,4 +1,4 @@ -import{u as n,j as s}from"./index-wpzGQYGF.js";const l={title:"Preparing for a runtime upgrade",description:"undefined"};function r(i){const e={a:"a",aside:"aside",code:"code",div:"div",h1:"h1",header:"header",p:"p",pre:"pre",span:"span",...n(),...i.components};return s.jsxs(s.Fragment,{children:[s.jsx(e.header,{children:s.jsxs(e.h1,{id:"preparing-for-a-runtime-upgrade",children:["Preparing for a runtime upgrade",s.jsx(e.a,{"aria-hidden":"true",tabIndex:"-1",href:"#preparing-for-a-runtime-upgrade",children:s.jsx(e.div,{"data-autolink-icon":!0})})]})}),` +import{u as n,j as s}from"./index-DTtoqbmS.js";const l={title:"Preparing for a runtime upgrade",description:"undefined"};function r(i){const e={a:"a",aside:"aside",code:"code",div:"div",h1:"h1",header:"header",p:"p",pre:"pre",span:"span",...n(),...i.components};return s.jsxs(s.Fragment,{children:[s.jsx(e.header,{children:s.jsxs(e.h1,{id:"preparing-for-a-runtime-upgrade",children:["Preparing for a runtime upgrade",s.jsx(e.a,{"aria-hidden":"true",tabIndex:"-1",href:"#preparing-for-a-runtime-upgrade",children:s.jsx(e.div,{"data-autolink-icon":!0})})]})}),` `,s.jsx(e.p,{children:"With Polkadot-API's support for multiple chains, you can make your dApp prepare for an upcoming runtime upgrade on a chain as long as you can get the metadata for that upgrade."}),` `,s.jsx(e.p,{children:"As an example, let's imagine we have already set up the polkadot relay chain for our dApp"}),` `,s.jsx(e.pre,{className:"shiki shiki-themes github-light github-dark-dimmed",style:{backgroundColor:"#fff","--shiki-dark-bg":"#22272e",color:"#24292e","--shiki-dark":"#adbac7"},tabIndex:"0",children:s.jsx(e.code,{children:s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:"npx"}),s.jsx(e.span,{style:{color:"#032F62","--shiki-dark":"#96D0FF"},children:" papi"}),s.jsx(e.span,{style:{color:"#032F62","--shiki-dark":"#96D0FF"},children:" add"}),s.jsx(e.span,{style:{color:"#032F62","--shiki-dark":"#96D0FF"},children:" dot"}),s.jsx(e.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" -n"}),s.jsx(e.span,{style:{color:"#032F62","--shiki-dark":"#96D0FF"},children:" polkadot"})]})})}),` diff --git a/client/index.html b/client/index.html new file mode 100644 index 00000000..27b04f50 --- /dev/null +++ b/client/index.html @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + + + + +
+ + diff --git a/codegen/index.html b/codegen/index.html index 7514f740..27b04f50 100644 --- a/codegen/index.html +++ b/codegen/index.html @@ -12,8 +12,8 @@ - - + +
diff --git a/getting-started/index.html b/getting-started/index.html index 7514f740..27b04f50 100644 --- a/getting-started/index.html +++ b/getting-started/index.html @@ -12,8 +12,8 @@ - - + +
diff --git a/index.html b/index.html index 7514f740..27b04f50 100644 --- a/index.html +++ b/index.html @@ -12,8 +12,8 @@ - - + +
diff --git a/providers/index.html b/providers/index.html index 7514f740..27b04f50 100644 --- a/providers/index.html +++ b/providers/index.html @@ -12,8 +12,8 @@ - - + +
diff --git a/recipes/upgrade/index.html b/recipes/upgrade/index.html index 7514f740..27b04f50 100644 --- a/recipes/upgrade/index.html +++ b/recipes/upgrade/index.html @@ -12,8 +12,8 @@ - - + +
diff --git a/signers/index.html b/signers/index.html index 7514f740..27b04f50 100644 --- a/signers/index.html +++ b/signers/index.html @@ -12,8 +12,8 @@ - - + +
diff --git a/typed/index.html b/typed/index.html new file mode 100644 index 00000000..27b04f50 --- /dev/null +++ b/typed/index.html @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + + + + +
+ + diff --git a/typed/queries/index.html b/typed/queries/index.html new file mode 100644 index 00000000..27b04f50 --- /dev/null +++ b/typed/queries/index.html @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + + + + +
+ + diff --git a/types/index.html b/types/index.html index 7514f740..27b04f50 100644 --- a/types/index.html +++ b/types/index.html @@ -12,8 +12,8 @@ - - + +