PageSourceSearch

https://www.paxeer.app/_next/static/chunks/8a6803a1913a02ea.js

js paxeer.app collected 2026-10-07 15:25:11 UTC 252,364 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,84925,e=>{"use strict";e.s(["CATEGORY_LABELS",0,{chain:"Paxeer chain",layerx:"LayerX agent domain",interface:"Interface",developers:"Developers",network:"Network"},"FEATURES",0,[{slug:"chain-autobahn-lane-consensus",name:"Autobahn lane consensus with sharded sequencing",short:"Consensus",category:"chain",label:"Paxeer chain",headline:"Consensus that splits data from agreement",summary:"Decoupled BFT consensus where each validator runs a data lane and owns an address shard."},{slug:"chain-token-launchpad",name:"Bonding-curve token launchpad",short:"Launchpad",category:"chain",label:"Paxeer chain",headline:"Launch a token that trades immediately",summary:"Launch a fixed-supply token on a virtual-reserve curve and trade it immediately."},{slug:"chain-checkpoint-anchoring-and-challenges",name:"Checkpoint anchoring and challenges",short:"Checkpoints",category:"chain",label:"Paxeer chain",headline:"Settle LayerX batches on the chain",summary:"Anchors LayerX batch headers under a guarantor quorum, finalises them, and arbitrates challenges."},{slug:"chain-custody-vault",name:"Custody vault for LayerX funds",short:"Custody vault",category:"chain",label:"Paxeer chain",headline:"The chain holds the money",summary:"The Paxeer chain holds 
1LayerX funds and releases them only against proof."},{slug:"chain-exchange-intents-and-margin",name:"Exchange intents and margin",short:"Exchange",category:"chain",label:"Paxeer chain",headline:"On-chain intents, matching in LayerX",summary:"Records margin and order intents on chain; LayerX matches them off chain."},{slug:"chain-parallel-block-execution",name:"Parallel block execution",short:"Parallel execution",category:"chain",label:"Paxeer chain",headline:"Two schedulers run every block in parallel",summary:"Each block's EVM and Cosmos transactions run through conflict-retry schedulers in parallel."},{slug:"chain-pax-native-asset",name:"PAX native asset",short:"PAX",category:"chain",label:"Paxeer chain",headline:"One asset for gas, staking and settlement",summary:"PAX is the gas and settlement asset of Paxeer X, with 18 decimals."},{slug:"chain-evm-chain-id-125",name:"Paxeer EVM chain (chain ID 125)",short:"EVM chain",category:"chain",label:"Paxeer chain",headline:"An EVM base layer at chain ID 125",summary:"A Cosmos SDK and CometBFT chain that runs a go-ethereum EVM at chain ID 125."},{slug:"chain-withdrawals-and-forced-exits",name:"Proof-carrying withdrawals and forced exits",short:"Withdrawals",category:"chain",label:"Paxeer chain",headline:"Exit with a proof, paid out once",summary:"Withdraw or exit LayerX balances by proving a finalised receipt or balance, exactly once."},{slug:"chain-scheduled-token-release",name:"Scheduled token release and epoch hooks",short:"Token release",category:"chain",label:"Paxeer chain",headline:"Issuance on a dated schedule, not a rate",summary:"Governance-set release windows mint PAX daily to the fee collector on epoch hooks."},{slug:"chain-transaction-admission-and-fees",name:"Transaction admission, fees and gasless paths",short:"Fees",category:"chain",label:"Paxeer chain",headline:"Bounded gas prices and two fee-exempt classes",summary:"Layered gas, fee, nonce and signature checks with two fee-exempt transaction classes."},{slug:"chain-validator-oracle-feeds",name:"Validator oracle price feeds",short:"Oracles",category:"chain",label:"Paxeer chain",headline:"Prices agreed by the validators who build blocks",summary:"Validators vote exchange rates; a power-weighted median becomes the chain price."},{slug:"layerx-402lxp-http-payments",name:"402LXP HTTP per-call payments",short:"402LXP",category:"layerx",label:"LayerX agent domain",headline:"Charge for one HTTP call",summary:"An HTTP 402 challenge, a signed receipt, and a settled call in one exchange."},{slug:"layerx-activity-envelope-and-receipts",name:"Activity envelope, receipts and replay",short:"Receipts",category:"layerx",label:"LayerX agent domain",headline:"One envelope, one receipt, one execution",summary:"One signed envelope per LayerX action, one signed receipt, replays return the original."},{slug:"layerx-agent-daemon-and-policy",name:"Agent daemon with policy engine",short:"Agent daemon",category:"layerx",label:"LayerX agent domain",headline:"Budget and gate every agent activity",summary:"A local daemon budgets, gates and signs every agent activity by policy."},{slug:"layerx-identity-rotation-and-recovery",name:"Agent identity, rotation and recovery",short:"Identity",category:"layerx",label:"LayerX agent domain",headline:"Rotate agent keys without dropping work",summary:"DID-based agent identity with announce-then-commit key rotation and threshold recovery."},{slug:"layerx-agent-wallets-and-accounts",name:"Agent wallets and account namespaces",short:"Wallets",category:"layerx",label:"LayerX agent domain",headline:"Typed subaccounts from readable account names",summary:"Every agent holds typed subaccounts derived from human-readable account names."},{slug:"layerx-asset-registry-and-assets",name:"Asset registry and custody-backed assets",short:"Assets",category:"layerx",label:"LayerX agent domain",headline:"Register an asset, then mint and burn",summary:"Register assets with caps and custody kinds, then open accounts, mint and burn."},{slug:"layerx-atomic-transfer-sets",name:"Atomic transfer sets",short:"Atomic transfers",category:"layerx",label:"LayerX agent domain",headline:"Every payment settles as one unit",summary:"Every balance change in LayerX moves through one leg primitive, all-or-nothing per set."},{slug:"layerx-custody-bridge",name:"Custody bridge and emergency exit",short:"Custody bridge",category:"layerx",label:"LayerX agent domain",headline:"Deposits proven, withdrawals settled on chain",summary:"Deposits credit once against a proof of the Paxeer chain; withdrawals and exits settle there."},{slug:"layerx-escrow-holds-and-disputes",name:"Escrow holds, capture and disputes",short:"Escrow",category:"layerx",label:"LayerX agent domain",headline:"Pay on delivery, not up front",summary:"Funds held in a protocol account, then captured, released, timed out or arbitrated."},{slug:"layerx-fees-and-metering",name:"Fees and resource metering",short:"Metering",category:"layerx",label:"LayerX agent domain",headline:"Every activity costs 1/10 of a cent",summary:"Governed fee schedule over bytes, execution and storage, with hard ceilings."},{slug:"layerx-session-keys-and-grants",name:"LayerX session keys and grants",short:"Session keys",category:"layerx",label:"LayerX agent domain",headline:"Give an agent less than your key",summary:"Eight authority kinds let an agent act under a narrowed, expiring grant."},{slug:"layerx-payment-streams",name:"Payment streams, time-based and metered",short:"Streams",category:"layerx",label:"LayerX agent domain",headline:"Get paid as the work happens",summary:"Continuous payments that accrue by elapsed time or by signed meter readings."},{slug:"layerx-perps-and-spot-markets",name:"Perpetual and spot markets",short:"Markets",category:"layerx",label:"LayerX agent domain",headline:"Trade perps and spot in the kernel",summary:"Kernel perpetual futures and a spot order book, gated on signed oracle prices."},{slug:"layerx-receipt-proofs-and-verification",name:"Receipt proofs and offline verification",short:"Proofs",category:"layerx",label:"LayerX agent domain",headline:"Check a paid call without a node",summary:"Verify a LayerX receipt against a pinned genesis manifest without running a node."},{slug:"layerx-sequencer-and-batches",name:"Sequencer, batches and ordering",short:"Sequencer",category:"layerx",label:"LayerX agent domain",headline:"One order everyone can check",summary:"One sequencer orders activities into signed, sealed batches with every root."},{slug:"layerx-service-registry-and-agreements",name:"Service registry and work agreements",short:"Agreements",category:"layerx",label:"LayerX agent domain",headline:"Sell agent work under agreed terms",summary:"Agents publish service offers and settle work through a staged agreement machine."},{slug:"layerx-spend-budgets",name:"Spend budgets with period caps",short:"Budgets",category:"layerx",label:"LayerX agent domain",headline:"Cap agent spending where the funds live",summary:"Funded budgets that cap spending per period and name who may spend."},{slug:"interface-developer-console-keys",name:"Developer console and API keys",short:"Console",category:"interface",label:"Interface",headline:"One key, visible scopes and quota",summary:"Key-authenticated gateway with a dashboard, signed webhooks and an indexer."},{slug:"interface-explorer-joined-account",name:"Explorer with a joined account page",short:"Explorer",category:"interface",label:"Interface",headline:"One account page, four spellings",summary:"A Blockscout fork that shows both halves of an account and settlement status."}
1,{slug:"interface-human-control-plane",name:"Human control plane for owners",short:"Control plane",category:"interface",label:"Interface",headline:"Hold funds, move money, see settlement",summary:"A hosted service and web app where people hold funds, move money and check settlement."},{slug:"interface-managed-wallets-approvals",name:"Managed agent wallets and approval inbox",short:"Approvals",category:"interface",label:"Interface",headline:"Cap what your agents can spend",summary:"People create agents, cap their spending, and approve held actions before anything moves."},{slug:"interface-money-journeys-intents",name:"Money journeys and cross-domain intent routing",short:"Intents",category:"interface",label:"Interface",headline:"State the movement, not the mechanism",summary:"State one movement once; the service plans and executes it across both domains."},{slug:"interface-onboarding-funding",name:"Onboarding and team-allocated funding",short:"Onboarding",category:"interface",label:"Interface",headline:"Register a signer, claim one grant",summary:"Two gateway methods register a signer and claim one bounded funding grant."},{slug:"interface-one-account-both-domains",name:"One account across both domains",short:"One account",category:"interface",label:"Interface",headline:"One account, both domains",summary:"An EVM address and a LayerX DID bind together and read as one account."},{slug:"interface-unified-rpc-endpoint",name:"One JSON-RPC endpoint for the network",short:"One endpoint",category:"interface",label:"Interface",headline:"One endpoint for the whole network",summary:"One JSON-RPC endpoint serves EVM calls, LayerX methods and joined account reads."},{slug:"interface-passkey-sessions-stepup",name:"Passkey sessions and step-up approval",short:"Passkeys",category:"interface",label:"Interface",headline:"Passkeys hold your account, not passwords",summary:"Accounts held by passkeys, sessions scoped per device, approvals bound to one operation."},{slug:"interface-px-cross-domain-reads",name:"px_* cross-domain read namespace",short:"Cross-domain reads",category:"interface",label:"Interface",headline:"Eight reads across both domains",summary:"Eight JSON-RPC reads join identity, balances, assets and history across both domains."},{slug:"interface-statements-evidence-exports",name:"Statements, evidence exports and notifications",short:"Statements",category:"interface",label:"Interface",headline:"Your record, exportable and verifiable",summary:"One activity feed with CSV statements, verifiable evidence bundles and preference-aware notifications."},{slug:"developers-client-sdks",name:"Client SDKs in seven languages",short:"SDKs",category:"developers",label:"Developers",headline:"Call the network from seven languages",summary:"Seven language clients for Paxeer X, sharing one wire format and local receipt verification."},{slug:"developers-core-protocol-clis",name:"Core protocol and verification CLIs",short:"Protocol CLIs",category:"developers",label:"Developers",headline:"Run, control and verify nodes from a shell",summary:"Eight C and Rust binaries for running, controlling and verifying LayerX nodes."},{slug:"developers-cosmos-grpc-rest-protos",name:"Cosmos gRPC, REST and Swagger surface",short:"gRPC and REST",category:"developers",label:"Developers",headline:"Query the chain from Cosmos tooling",summary:"Cosmos-style gRPC, REST and Swagger endpoints generated from the chain's protobuf modules."},{slug:"developers-docs-site-wiki",name:"Documentation site and wiki",short:"Documentation",category:"developers",label:"Developers",headline:"Docs that cite the code behind them",summary:"MkDocs site built from a 79-page wiki and deployed by CI."},{slug:"developers-explorer-and-selfhost",name:"Explorer APIs and self-hosting stack",short:"Self-hosting",category:"developers",label:"Developers",headline:"Query the explorer or run your own",summary:"A Blockscout fork with Paxeer X API routes and a local compose stack."},{slug:"developers-contract-toolchain",name:"Foundry and Hardhat contract toolchain",short:"Contracts",category:"developers",label:"Developers",headline:"Foundry and Hardhat, already wired up",summary:"Three Foundry roots and four Hardhat projects, plus worked contract examples."},{slug:"developers-hosted-services",name:"Hosted developer services",short:"Hosted services",category:"developers",label:"Developers",headline:"Faucet, webhooks, dashboard and program registry",summary:"Faucet, webhooks, dashboard and program registry, deployed as Kubernetes services."},{slug:"developers-layerx-cli",name:"LayerX developer CLI",short:"LayerX CLI",category:"developers",label:"Developers",headline:"One binary for wallets, payments and programs",summary:"One Rust binary with seventeen command groups for wallets, payments, programs and agents."},{slug:"developers-local-environment",name:"Local development environment",short:"Local environment",category:"developers",label:"Developers",headline:"Run the agent domain and chain locally",summary:"A loopback LayerX emulator and a four-node Paxeer chain that run on one machine."},{slug:"developers-mcp-a2a-adapters",name:"MCP, A2A and framework adapters",short:"Adapters",category:"developers",label:"Developers",headline:"Give a model scoped tools, not authority",summary:"A scoped tool catalogue for model agents, served over MCP and A2A."},{slug:"developers-evm-jsonrpc-namespaces",name:"Node EVM JSON-RPC namespaces",short:"Node RPC",category:"developers",label:"Developers",headline:"Standard Ethereum JSON-RPC on chain ID 125",summary:"Nine JSON-RPC namespaces over HTTP, four over WebSocket, with documented methods that error deliberately."},{slug:"developers-payment-middleware",name:"Payment middleware and framework integrations",short:"Middleware",category:"developers",label:"Developers",headline:"Charge per request, not per checkout",summary:"Drop-in x402 payment middleware for Express, Next.js, FastAPI and Spring Boot services."},{slug:"developers-program-sdks-porting",name:"Program SDKs and porting kits",short:"Program SDKs",category:"developers",label:"Developers",headline:"Deterministic programs in three languages",summary:"Rust, AssemblyScript and C bindings for deterministic LayerX programs, plus three porting kits."}
1,{slug:"developers-gateway-jsonrpc",name:"Public JSON-RPC gateway and OpenRPC schema",short:"Gateway",category:"developers",label:"Developers",headline:"One endpoint for chain and agent reads",summary:"One hosted JSON-RPC endpoint, a served OpenRPC schema and joined cross-domain reads."},{slug:"developers-build-and-repo-tooling",name:"Repo build system and developer tooling",short:"Build tooling",category:"developers",label:"Developers",headline:"One command set builds the whole network",summary:"Make-driven monorepo build with sanitizer matrix, invariant gates and workspace tooling."},{slug:"developers-samples-reference-apps",name:"Runnable samples and reference apps",short:"Samples",category:"developers",label:"Developers",headline:"Samples that cannot go stale",summary:"Thirteen build-checked code samples and four cloneable reference applications."},{slug:"developers-test-and-load-harnesses",name:"Test, conformance, load and benchmark runners",short:"Test harnesses",category:"developers",label:"Developers",headline:"See exactly what Paxeer X exercises",summary:"Per-method RPC parity against geth, dApp suites, block tests, load and benchmark runners."},{slug:"network-guarantor-bonding-slashing",name:"Bonded guarantors with slashing",short:"Guarantors",category:"network",label:"Network",headline:"Bonded operators re-execute every batch",summary:"Bonded operators re-execute every LayerX batch and lose bond for misbehaviour."},{slug:"network-cross-domain-precompile-connector",name:"Cross-domain precompile connector",short:"Connector",category:"network",label:"Network",headline:"Verify LayerX evidence inside an EVM call",summary:"Seven EVM precompiles verify LayerX evidence natively instead of a bridge contract."},{slug:"network-data-availability",name:"Data availability commitments and challenges",short:"Data availability",category:"network",label:"Network",headline:"Prove the data behind a state root",summary:"Batch data is split into verifiable chunks, served on request and challengeable before finalisation."},{slug:"network-replay-divergence-qualification",name:"Deterministic replay and divergence halts",short:"Replay",category:"network",label:"Network",headline:"Replicas halt instead of serving wrong state",summary:"Replicas halt on a divergent root; six evidence levels define the qualification gates."},{slug:"network-beta-cluster-bringup",name:"Disposable beta cluster bring-up",short:"Beta cluster",category:"network",label:"Network",headline:"Bring up the whole stack locally",summary:"One scripted command brings up a disposable kind cluster running Paxeer chain ID 125."},{slug:"network-external-chain-connections",name:"External-chain connections",short:"External chains",category:"network",label:"Network",headline:"Reach Ethereum, Solana and IBC chains",summary:"Threshold-attested mint and burn, Ethereum and Solana archive mirrors, IBC transfers."},{slug:"network-genesis-import-migration",name:"Genesis, import, snapshots and migration",short:"Genesis",category:"network",label:"Network",headline:"Start a network from signed genesis",summary:"A signed genesis manifest, eleven import sections, verified snapshots and authorized migration."},{slug:"network-governance-parameters-pause",name:"Governance proposals, parameters and pause",short:"Governance",category:"network",label:"Network",headline:"Change parameters by on-chain vote",summary:"On-chain proposals change Paxeer X parameters; LayerX parameters are bounded and pausable."},{slug:"network-upgrades-hard-forks",name:"Governance upgrades and hard forks",short:"Upgrades",category:"network",label:"Network",headline:"Upgrades halt by height, by governance vote",summary:"Software upgrades pass by governance and halt the chain at a height, adding stores."},{slug:"network-interop-adapter-layer",name:"Interop adapter layer",short:"Interop",category:"network",label:"Network",headline:"Reach Paxeer X through your own protocol",summary:"Edge adapters translate outside payment protocols into LayerX evidence without writing balances."},{slug:"network-layerx-node-roles",name:"LayerX node roles and operators",short:"Node roles",category:"network",label:"Network",headline:"One binary, four node roles",summary:"One daemon binary runs the sequencer, replica, guarantor or relay/archive role."},{slug:"network-monitoring-metrics-slos",name:"Monitoring, metrics and block-latency SLOs",short:"Monitoring",category:"network",label:"Network",headline:"See where a block spends its time",summary:"OpenTelemetry block and transaction histograms bucketed against the node's stated latency targets."},{slug:"network-hpx-distribution-registry",name:"Node distribution, registry and fleet staking",short:"Fleet staking",category:"network",label:"Network",headline:"Install a node and find peers",summary:"Verified node installer, artifact publisher, peer registry and fleet staking helpers."},{slug:"network-two-execution-domains",name:"One network, two execution domains",short:"Two domains",category:"network",label:"Network",headline:"One network, two runtimes, one account",summary:"One network identity over two runtimes: the Paxeer EVM chain and the LayerX agent domain."},{slug:"network-performance-as-measured",name:"Performance as measured in repo artifacts",short:"Performance",category:"network",label:"Network",headline:"Every performance figure cites its file",summary:"Performance figures traced to repo artifacts and labeled measured, configured or targeted."},{slug:"network-security-policy-governance",name:"Security policy and project governance",short:"Security policy",category:"network",label:"Network",headline:"Report privately, read the residual risks",summary:"Private-only vulnerability intake, named residual assumptions, and a spec-first change process."},{slug:"network-staged-finality-ladder",name:"Staged finality ladder L0 to L4",short:"Finality",category:"network",label:"Network",headline:"Five finality steps, each with a liable party",summary:"Five named finality steps, each naming who is liable if the claim is wrong."},{slug:"network-validator-node-operation",name:"Validator set and node operation",short:"Validators",category:"network",label:"Network",headline:"One binary, four node modes",summary:"CometBFT validators and full, seed and archive nodes all run one paxd binary."}]])},74244,36858,e=>{"use strict";let t=(0,e.i(10965).default)("ArrowUpRight",[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]);e.s(["ArrowUpRight",()=>t],74244);var n=e.i(84925);let r="https://docs.paxeer.app/",a="https://github.com/Sidiora-Labs/LayerX-Network",l=(e,t,r,a,l,o)=>{let i,s,u,c,d;return{label:e,href:t,columns:[a,...(i=n.FEATURES.filter(e=>e.category===r),s=e=>({label:e.short,href:`/features/${e.slug}`}),u=e=>e.flatMap(e=>{let t=i.find(t=>t.slug===e);return t?[s(t)]:[]}),c=new Set([...l.slugs,...o.slugs]),d=i.filter(e=>!c.has(e.slug)),[{title:l.title,items:u(l.slugs)},{title:o.title,items:[...u(o.slugs),...d.map(s)]}])],mobileItems:[{label:`${e} features`,href:`/features#${r}`}]}},o=[l("Chain","/features#chain","chain",{title:"Paxeer chain",items:[{label:"What is Paxeer",href:"/what-is-paxeer"},{label:"One network",href:"/one-network"},{label:"Chain features",href:"/features#chain"}]}
1,{title:"Execution",slugs:["chain-autobahn-lane-consensus","chain-parallel-block-execution","chain-evm-chain-id-125","chain-transaction-admission-and-fees","chain-validator-oracle-feeds","chain-checkpoint-anchoring-and-challenges"]},{title:"Assets and custody",slugs:["chain-pax-native-asset","chain-token-launchpad","chain-scheduled-token-release","chain-custody-vault","chain-exchange-intents-and-margin","chain-withdrawals-and-forced-exits"]}),l("LayerX","/layerx","layerx",{title:"LayerX",items:[{label:"LayerX overview",href:"/layerx"},{label:"Wallets",href:"/wallets"},{label:"Get PAX",href:"/get-pax"},{label:"Apps",href:"/apps"},{label:"Tutorials",href:"/tutorials"}]},{title:"Money",slugs:["layerx-agent-wallets-and-accounts","layerx-spend-budgets","layerx-payment-streams","layerx-escrow-holds-and-disputes","layerx-atomic-transfer-sets","layerx-402lxp-http-payments","layerx-fees-and-metering","layerx-perps-and-spot-markets","layerx-asset-registry-and-assets"]},{title:"Trust",slugs:["layerx-identity-rotation-and-recovery","layerx-session-keys-and-grants","layerx-agent-daemon-and-policy","layerx-activity-envelope-and-receipts","layerx-receipt-proofs-and-verification","layerx-service-registry-and-agreements","layerx-sequencer-and-batches","layerx-custody-bridge"]}),l("Interface","/features#interface","interface",{title:"Interface",items:[{label:"Interface features",href:"/features#interface"},{label:"Docs",href:r},{label:"Learning tools",href:"/learning-tools"}]},{title:"Accounts",slugs:["interface-one-account-both-domains","interface-unified-rpc-endpoint","interface-passkey-sessions-stepup","interface-onboarding-funding","interface-managed-wallets-approvals","interface-human-control-plane"]},{title:"Operations",slugs:["interface-developer-console-keys","interface-explorer-joined-account","interface-money-journeys-intents","interface-px-cross-domain-reads","interface-statements-evidence-exports"]}),l("Network","/network","network",{title:"Network",items:[{label:"Network overview",href:"/network"},{label:"Explorer",href:"https://paxscan.io"},{label:"Status",href:"https://status.paxeer.app"},{label:"Governance",href:"/community/governance"},{label:"Whitepaper",href:"https://whitepaper.paxeer.app"}]},{title:"Operate",slugs:["network-validator-node-operation","network-layerx-node-roles","network-guarantor-bonding-slashing","network-hpx-distribution-registry","network-monitoring-metrics-slos","network-genesis-import-migration","network-beta-cluster-bringup","network-performance-as-measured","network-replay-divergence-qualification"]},{title:"Protocol",slugs:["network-two-execution-domains","network-staged-finality-ladder","network-data-availability","network-cross-domain-precompile-connector","network-interop-adapter-layer","network-external-chain-connections","network-governance-parameters-pause","network-upgrades-hard-forks","network-security-policy-governance"]}),l("Developers","/developers","developers",{title:"Developers",items:[{label:"Developer hub",href:"/developers"},{label:"Local environment",href:"/developers/local-environment"},{label:"GitHub",href:a},{label:"Grants",href:"/grants"},{label:"Bug bounty",href:"/bug-bounty"}]},{title:"Build",slugs:["developers-client-sdks","developers-program-sdks-porting","developers-payment-middleware","developers-mcp-a2a-adapters","developers-contract-toolchain","developers-layerx-cli","developers-core-protocol-clis","developers-local-environment","developers-samples-reference-apps"]},{title:"Reference",slugs:["developers-docs-site-wiki","developers-gateway-jsonrpc","developers-evm-jsonrpc-namespaces","developers-cosmos-grpc-rest-protos","developers-hosted-services","developers-explorer-and-selfhost","developers-build-and-repo-tooling","developers-test-and-load-harnesses"]}),{label:"Community",href:"/community",columns:[{title:"Community",items:[{label:"Community",href:"/community"},{label:"Ambassadors",href:"/community/ambassadors"},{label:"Events",href:"/community/events"},{label:"Newsletter",href:"/community/newsletter"}]},{title:"Social",items:[{label:"X",href:"https://x.com/paxeer_app"},{label:"Discord",href:"https://discord.gg/paxeer"},{label:"GitHub",href:a}]},{title:"Company",items:[{label:"About",href:"/about"},{label:"Roadmap",href:"/about/roadmap"},{label:"Team",href:"/team"},{label:"Careers",href:"/careers"},{label:"Press",href:"/press"}]}]},{label:"About",href:"/about",columns:[{title:"About",items:[{label:"About Paxeer X",href:"/about"},{label:"Roadmap",href:"/about/roadmap"},{label:"Brand",href:"/about/brand"},{label:"Contact",href:"/contact"}]},{title:"Company",items:[{label:"Team",href:"/team"},{label:"Careers",href:"/careers"},{label:"Press",href:"/press"},{label:"Blog",href:"/blog"}]},{title:"Legal",items:[{label:"Privacy",href:"/privacy"},{label:"Terms",href:"/terms"},{label:"Disclosures",href:"/disclosures"},{label:"Cookies",href:"/cookies"}]}]}];e.s(["DOCS",0,r,"GITHUB",0,a,"NAV_ITEMS",0,o,"isExternal",0,e=>
1/^https?:\/\//.test(e)],36858)},74149,e=>{"use strict";let t,n,r,a,l,o;var i=e.i(5112),s=e.i(96353),u={plate:"#ffffff",hi:"#232327",edge:"#a4a4ac",mid:"#c3c3c9",lo:"#e0e0e4"},c={plate:"#08090a",hi:"#d0d6e0",edge:"#5b5d64",mid:"#3e3e44",lo:"#29292d"},d=["plate","hi","edge","mid","lo"],f=e=>d.map(t=>`--hl-${t}:var(--hairline-${t},${e[t]});`).join(""),h="cubic-bezier(0.5,0,0.1,1)",p=":where([data-hairline]>svg)",m=new WeakSet,g={riffle:[0,40,90],terrain:[1.5,3,5],exploded:[12,28,40],phosphor:[150,520,1500],slow:[.6,.2,.05],turntable:[200,650,1500],keyboard:[1,2,3.5],elevator:[40,100,220],phone:[16,28,40],laptop:[100,125,150],terminal:[1,2,3.5],cabinet:[1.5,3,5],branches:[1,3,6],vault:[250,600,1500],lockers:[55,90,120],padlock:[45,90,100],patch:[1,2.5,5],dish:[30,50,70],router:[.5,1.5,3],loupe:[1.3,1.8,2.6],sieve:[6,14,24],rail:[1,2,3.5],plug:[.35,.6,.9],query:[20,40,55],drawer:[12,22,34],basket:[8,16,28],plot:[3,6,12]};function v(e,t){let n,[r,a,l]=g[e],o="number"==typeof(n="string"==typeof t&&""!==t.trim()?Number(t):t)&&Number.isFinite(n)?Math.min(1,Math.max(0,n)):.5;return Math.round(1e3*(o<=.5?r+o/.5*(a-r):a+(o-.5)/.5*(l-a)))/1e3}var y=new WeakMap;function b(e,t,n){if("undefined"==typeof document)throw Error(`hairline: ${e.id}() needs a DOM. Call it in the browser, once the element exists: in an effect, in onMount, or in a script after the element.`);if(!t||1!==t.nodeType)throw TypeError(`hairline: ${e.id}() takes an element as its first argument, and got ${null===t?"null":typeof t}.`);y.get(t)?.();let r={...n},a=t.ownerDocument,l=t.getRootNode();!function(e){var t;let n;if(m.has(e))return;m.add(e);let r=9===e.nodeType?e:e.ownerDocument,a=r.defaultView,l=(t=!!a?.CSS?.supports?.("color","light-dark(#000,#fff)"),n=Object.fromEntries(d.map(e=>[e,`light-dark(${u[e]},${c[e]})`])),`:where([data-hairline]){display:block;position:relative;aspect-ratio:5/4;touch-action:pan-y;user-select:none;-webkit-user-select:none;--hl-sw:var(--hairline-stroke,0.9);${f(u)}}`+(t?`:where([data-hairline]){${f(n)}}`:"")+`:where(.dark,[data-theme="dark"]) :where([data-hairline]){${f(c)}}`+`:where([data-hairline][data-hairline-theme="light"]){${f(u)}}`+`:where([data-hairline][data-hairline-theme="dark"]){${f(c)}}`+":where([data-hairline]:focus-visible){outline:1.5px solid var(--hl-hi);outline-offset:2px}"+`${p}{position:absolute;inset:0;width:100%;height:100%;display:block}`+":where([data-hairline]>[data-hairline-live]){position:absolute;width:1px;height:1px;margin:-1px;padding:0;border:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}"+`${p} :where(path,polygon,ellipse,line){fill:var(--hl-plate);stroke:var(--hl-mid);stroke-width:var(--hl-sw);vector-effect:non-scaling-stroke;stroke-linejoin:round;stroke-linecap:round;transition:stroke 260ms ${h}}`+`${p} :where(.nf){fill:none}`+`${p} :where(.fo){stroke:none}`+`${p} :where(.sil){stroke:var(--hl-edge)}`+`${p} :where(.hi){stroke:var(--hl-hi)}`+`${p} :where(.lo){stroke:var(--hl-lo)}`+`${p} :where(.dash){stroke-dasharray:1 3}`+`${p} :where(.dot){stroke:none;fill:var(--hl-hi);transition:fill 260ms ${h}}`+`${p}
1 :where(.dot.m){fill:var(--hl-edge)}`+`${p} :where(.dot.off){fill:var(--hl-lo)}`+`${p} :where(.ghost path){fill:none;stroke:var(--hl-mid)}`);if(a&&"adoptedStyleSheets"in e)try{let t=new a.CSSStyleSheet;t.replaceSync(l),e.adoptedStyleSheets=[...e.adoptedStyleSheets,t];return}catch{}let o=r.createElement("style");o.setAttribute("data-hairline-style",""),o.textContent=l,(9===e.nodeType?r.head??r.documentElement:e).appendChild(o)}(9===l.nodeType||"host"in l?l:a);let o=new Set,i=(e,n)=>{!o.has(e)&&t.hasAttribute(e)||(null===n?(t.removeAttribute(e),o.delete(e)):(t.setAttribute(e,n),o.add(e)))},s=()=>{i("data-hairline-theme","light"===r.theme||"dark"===r.theme?r.theme:null),i("aria-label",t.hasAttribute("aria-labelledby")?null:"string"==typeof r.label?r.label:e.label)};i("data-hairline",e.id),i("role",e.focusable?"group":"img"),e.focusable&&i("tabindex","0"),s();let g=a.createElementNS("http://www.w3.org/2000/svg","svg");g.setAttribute("viewBox","0 0 400 320"),g.setAttribute("aria-hidden","true"),t.appendChild(g);let b=null;e.focusable&&((b=a.createElement("span")).setAttribute("data-hairline-live",""),b.setAttribute("aria-live","polite"),t.appendChild(b));let x=null,w={get textContent(){return x},set textContent(value2){let e=value2??"";if(e===x)return;x=e,b&&(b.textContent=e);let t=r.onRead;if("function"==typeof t)try{t(e)}catch(e){"function"==typeof reportError?reportError(e):setTimeout(()=>{throw e})}}},M=v(e.id,r.intensity),k=e.engine({stage:t,svg:g,read:w},M);null===x&&(w.textContent=e.rest);let E=!1,C=()=>{if(!E){for(let e of(E=!0,y.get(t)===C&&y.delete(t),k.destroy(),g.remove(),b?.remove(),o))t.removeAttribute(e);o.clear()}};return y.set(t,C),{update(t){if(E||!t)return;for(let e in t)void 0===t[e]?delete r[e]:r[e]=t[e];let n=v(e.id,r.intensity);n!==M&&(M=n,k.set(n)),s()},destroy:C}}var x=(e,t,n)=>Math.max(t,Math.min(n,e)),w=(e,t,n)=>e+(t-e)*n,M=e=>e*Math.PI/180,k=e=>Math.round(100*e)/100,E=e=>"M"+e.map(e=>k(e[0])+" "+k(e[1])).join("L")+"Z",C=(e,t)=>`M${k(e[0])} ${k(e[1])}L${k(t[0])} ${k(t[1])}`,S=e=>e.length<2?"":"M"+e.map(e=>k(e[0])+" "+k(e[1])).join("L"),A=(e,t,n)=>({az:M(e),k:t,S:n,ox:0,oy:0});function R(e){let t=Math.cos(e.az),n=Math.sin(e.az),r=Math.sqrt(1-e.k*e.k);return(a,l,o)=>[e.ox+e.S*(a*t-l*n),e.oy+e.S*((a*n+l*t)*e.k-o*r)]}function P(e,t,n,r){let a=Math.cos(e.az),l=Math.sin(e.az),o=Math.sqrt(1-e.k*e.k),i=(t-e.ox)/e.S,s=((n-e.oy)/e.S+r*o)/e.k;return[i*a+s*l,-i*l+s*a]}function T(e,t,n,r){e.ox=0,e.oy=0;let a=R(e),l=1e9,o=-1e9,i=1e9,s=-1e9;for(let e of t){let t=a(e[0],e[1],e[2]);l=Math.min(l,t[0]),o=Math.max(o,t[0]),i=Math.min(i,t[1]),s=Math.max(s,t[1])}e.ox=n-(l+o)/2,e.oy=r-(i+s)/2}function L(e,t,n,r,a,l=4){a=Math.max(0,Math.min(a,(n-e)/2,(r-t)/2));let o=[];for(let[i,s,u]of[[n-a,r-a,0],[e+a,r-a,90],[e+a,t+a,180],[n-a,t+a,270]])for(let e=0;e<=l;e++){let t=M(u+90*e/l),n=Math.cos(t),r=Math.sin(t);o.push({u:i+a*n,v:s+a*r,nu:n,nv:r})}return o}function O(e,t=96){let n=[];for(let r=0;r<t;r++){let a=r/t*Math.PI*2,l=Math.cos(a),o=Math.sin(a);n.push({u:e*l,v:e*o,nu:l,nv:o})}return n}function I(e){let t=e.slice().sort((e,t)=>e[0]-t[0]||e[1]-t[1]),n=(e,t,n)=>(t[0]-e[0])*(n[1]-e[1])-(t[1]-e[1])*(n[0]-e[0]),r=[],a=[];for(let e of t){for(;r.length>1&&0>=n(r[r.length-2],r[r.length-1],e);)r.pop();r.push(e)}for(let e=t.length-1;e>=0;e--){let r=t[e];for(;a.length>1&&0>=n(a[a.length-2],a[a.length-1],r);)a.pop();a.push(r)}return r.pop(),a.pop(),r.concat(a)}var N=(e,t,n)=>t.map(t=>e(t.u,t.v,n)),j=e=>{let t=Math.sin(e.az),n=Math.cos(e.az);return e=>e.nu*t+e.nv*n>=-1e-6};function D(e,t){let n=e.length,r=-1;for(let a=0;a<n;a++)if(t(e[a])&&!t(e[(a+n-1)%n])){r=a;break}if(r<0)return t(e[0])?e.slice():[];let a=[];for(let l=0;l<n&&t(e[(r+l)%n]);l++)a.push(e[(r+l)%n]);return a}function $(e,t,n,r,a,l){return{sil:E(I(N(e,n,l).concat(N(e,n,a)))),crease:r?S(N(e,D(r,t),l)):""}}var F=(e,t,n,r,a,l)=>[L(e,t,n,r,a),L(e+l,t+l,n-l,r-l,Math.max(.3,a-l))];function z(e,t){let n=t.map(t=>e(t.u,t.v,0)),r=0,a=0,l=0;return n.forEach((e,t)=>{e[0]<n[r][0]&&(r=t),e[0]>n[a][0]&&(a=t),e[1]>n[l][1]&&(l=t)}),[t[r],t[a],t[l]]}function V(e,t,n=4){let r=e.length,a=[];for(let l=0;l<r;l++){let o=e[(l+r-1)%r],i=e[l],s=e[(l+1)%r],u=Math.hypot(o[0]-i[0],o[1]-i[1]),c=Math.hypot(s[0]-i[0],s[1]-i[1]),d=Math.min(t[l],u/2,c/2),f=[i[0]+(o[0]-i[0])/u*d,i[1]+(o[1]-i[1])/u*d],h=[i[0]+(s[0]-i[0])/c*d,i[1]+(s[1]-i[1])/c*d];for(let e=0;e<=n;e++){let t=e/n,r=1-t;a.push([r*r*f[0]+2*r*t*i[0]+t*t*h[0],r*r*f[1]+2*r*t*i[1]+t*t*h[1]])}}return a}var B=!1,_=e=>{B=e};function H(e,t={}){return{x:e,v:0,t:e,k:t.k??100,c:t.c??18,m:t.m??1,eps:t.eps??.01}}
1function W(e,t){if(B)return e.x=e.t,e.v=0,!1;let n=Math.max(1,Math.ceil(240*t)),r=t/n;for(let t=0;t<n;t++){let t=(-e.k*(e.x-e.t)-e.c*e.v)/e.m;e.v+=t*r,e.x+=e.v*r}return!(Math.abs(e.x-e.t)<e.eps&&Math.abs(e.v)<10*e.eps)||(e.x=e.t,e.v=0,!1)}var X=(n=.040000000000000036-(t=-1.92),a=-1.1600000000000001-(r=3*.28-2.16),l=e=>((n*e+t)*e+.96)*e,o=e=>(3*n*e+2*t)*e+.96,e=>{let t;if(e<=0)return 0;if(e>=1)return 1;let n=e;for(let t=0;t<8;t++){let t=l(n)-e;if(1e-5>Math.abs(t))break;let r=o(n);if(1e-6>Math.abs(r))break;n-=t/r}if(!(n>=0&&n<=1)||Math.abs(l(n)-e)>1e-4){let t=0,r=1;n=e;for(let a=0;a<24;a++)l(n)<e?t=n:r=n,n=(t+r)/2}return((a*(t=n)+r)*t+2.16)*t}),q=(e,t=700)=>({from:e,to:e,t0:-1e9,dur:t}),U=(e,t)=>{let n=x((t-e.t0)/e.dur,0,1);return e.from+(e.to-e.from)*(B?1:X(n))},Y=(e,t,n,r)=>{e.to!==t&&(e.from=U(e,n),e.to=t,e.t0=n+r)},G=(e,t)=>B||t>=e.t0+e.dur;function K(e,t,n){let r=document.createElementNS("http://www.w3.org/2000/svg",e);if(t)for(let e in t)r.setAttribute(e,String(t[e]));return n&&n.appendChild(r),r}function J(e){let t=K("g",{},e);return{g:t,sil:K("path",{class:"sil"},t),cr:K("path",{class:"nf lo"},t)}}var Q=(e,t)=>{e.sil.setAttribute("d",t.sil),e.cr.setAttribute("d",t.crease)},Z=(e,t,n,r)=>K("ellipse",{rx:k(n*t.S),ry:k(n*t.S*t.k),class:r},e),ee=(e,t)=>{e.setAttribute("cx",String(k(t[0]))),e.setAttribute("cy",String(k(t[1])))},et=0;function en(e,t,n,r,a,l,o){let i,s,u={d:S(s=N(n,i=D(a,r),l-o))+[i[0],i[i.length-1]].map(e=>C(n(e.u,e.v,l),n(e.u,e.v,l-o))).join(""),y0:Math.min(...N(n,i,l).map(e=>e[1])),y1:Math.max(...s.map(e=>e[1]))+2},c=K("g",{class:"ghost",mask:function(e,t,n,r=.7){let a="hl-fd"+ ++et,l=K("defs",{},e),o=K("linearGradient",{id:a+"g",gradientUnits:"userSpaceOnUse",x1:0,y1:k(t),x2:0,y2:k(n)},l);K("stop",{offset:0,"stop-color":"#fff","stop-opacity":r},o),K("stop",{offset:1,"stop-color":"#fff","stop-opacity":0},o);let i=K("mask",{id:a,maskUnits:"userSpaceOnUse",x:0,y:0,width:400,height:320},l);return K("rect",{x:0,y:0,width:400,height:320,fill:`url(#${a}g)`},i),`url(#${a})`}(e,u.y0,u.y1)},t);K("path",{d:u.d},c)}var er=[],ea=new Map,el=0,eo=0,ei=null,es=null;function eu(e){let t=Math.min(.05,Math.max(0,(e-eo)/1e3));eo=e;let n=!1;for(let r of er.slice())r.vis&&r.awake&&(r.awake=!!r.tick(t,e),n=n||r.awake);el=n?requestAnimationFrame(eu):0}function ec(e){e.awake=!0,el||(eo=performance.now(),el=requestAnimationFrame(eu))}var ed=()=>{_(!!es?.matches),er.forEach(ec)};function ef(e,t){ei||(ei=new IntersectionObserver(e=>{for(let t of e){let e=ea.get(t.target);e&&(e.vis=t.isIntersecting,e.vis&&ec(e))}},{rootMargin:"80px"}),_((es=matchMedia("(prefers-reduced-motion: reduce)")).matches),es.addEventListener("change",ed));let n={stage:e,tick:t,vis:!1,awake:!0};er.push(n),ea.set(e,n),ei.observe(e),t(0,performance.now());let r=!1;return{wake:()=>{r||ec(n)},unregister:()=>{!r&&(r=!0,er=er.filter(e=>e!==n),ea.get(e)===n&&(ea.delete(e),ei?.unobserve(e)),er.length||(el&&cancelAnimationFrame(el),el=0,ei?.disconnect(),ei=null,es?.removeEventListener("change",ed),es=null))}}}function eh(e,t){let n=0,r=t=>{let n=e.getBoundingClientRect();return[(t.clientX-n.left)/n.width*400,(t.clientY-n.top)/n.height*320]},a=e=>{clearTimeout(n),t.move(r(e),e)},l=a=>{clearTimeout(n),"mouse"!==a.pointerType&&e.releasePointerCapture?.(a.pointerId),t.down?t.down(r(a),a):t.move(r(a),a)},o=e=>{clearTimeout(n),n=window.setTimeout(()=>t.leave(e),1400*("mouse"!==e.pointerType))};return e.addEventListener("pointermove",a),e.addEventListener("pointerdown",l),e.addEventListener("pointerleave",o),()=>{clearTimeout(n),e.removeEventListener("pointermove",a),e.removeEventListener("pointerdown",l),e.removeEventListener("pointerleave",o)}}function ep(){let e=[];return{add:t=>{e.push(t)},on:(t,n,r,a)=>{t.addEventListener(n,r,a),e.push(()=>t.removeEventListener(n,r,a))},dispose:()=>{let t=e;e=[];for(let e=t.length-1;e>=0;e--)t[e]()}}}var em=[.45];function eg(e,t,n){let r=Math.min(0,(e+t)*Math.SQRT1_2)/2;return[n*(e-r*Math.SQRT1_2),n*(t-r*Math.SQRT1_2)]}function ev(e,t){let n=Math.hypot(e,t),r=n?-t/n:0,a=n?e/n:0,l=Math.cos(M(n)),o=Math.sin(M(n));return(e,t,n)=>{let i=(r*e+a*t)*(1-l);
1return[e*l+a*n*o+r*i,t*l-r*n*o+a*i,n*l+(r*t-a*e)*o]}}function ey(e,t,n=!1){let r=e.length,a=[],l=[],o=[];for(let i=0;i<r;i++){let s=e[n?(i+r-1)%r:Math.max(i-1,0)],u=e[n?(i+1)%r:Math.min(i+1,r-1)],c=Math.hypot(u[0]-s[0],u[1]-s[1])||1,d=(u[0]-s[0])/c,f=(u[1]-s[1])/c;o.push([d,f]),a.push([e[i][0]-f*t,e[i][1]+d*t]),l.push([e[i][0]+f*t,e[i][1]-d*t])}if(n)return E(a)+E(l.reverse());let i=(e,n,r)=>Array.from({length:7},(a,l)=>{let o=Math.PI*(l+1)/8,i=Math.cos(o)*r,s=Math.sin(o)*r;return[e[0]+t*(-n[1]*i+n[0]*s),e[1]+t*(n[0]*i+n[1]*s)]});return E([...a,...i(e[r-1],o[r-1],1),...l.reverse(),...i(e[0],o[0],-1)])}var eb=[[-25,0],...Array.from({length:9},(e,t)=>{let n=Math.PI-Math.PI/2*(t/8);return[-17+8*Math.cos(n),22+8*Math.sin(n)]}),...Array.from({length:9},(e,t)=>{let n=Math.PI/2*(1-t/8);return[17+8*Math.cos(n),22+8*Math.sin(n)]}),[25,0]],ex=[[-9,30],[9,30]],ew=e=>{let t=Math.cos(M(e)),n=Math.sin(M(e));return e=>[e[1]*n,e[0],30+e[1]*t]},eM=({stage:e,svg:t,read:n},r)=>{let a=ep(),l=A(45,.5,3),o=g.basket[2],i=-46+.6*o,s=L(-40,-25,40,25,8,14),u=function(e,t){let n=[0];for(let t=1;t<=e.length;t++){let r=e[t-1],a=e[t%e.length];n.push(n[t-1]+Math.hypot(a.u-r.u,a.v-r.v))}return Array.from({length:44},(t,r)=>{let a=r/44*n[e.length],l=0;for(;n[l+1]<a;)l++;let o=e[l],i=e[(l+1)%e.length],s=(a-n[l])/(n[l+1]-n[l]||1);return{u:o.u+(i.u-o.u)*s,v:o.v+(i.v-o.v)*s,nu:o.nu,nv:o.nv}})}(s,0),c=s.map(e=>({...e,u:.8*e.u,v:.8*e.v})),d=L(-30.6,-18.6,30.6,18.6,5,14),f=[];for(let e=-1;e<8;e++){let t=ev(...eg(Math.cos(e*Math.PI/4),Math.sin(e*Math.PI/4),e<0?0:o));for(let e of s)f.push(t(e.u,e.v,31.5),t(.8*e.u,.8*e.v,0));for(let e of[-46,i])for(let n of eb)f.push(t(...ew(e)(n)))}T(l,f,200,166);let h=R(l),p=Math.sqrt(1-l.k*l.k),m=[Math.sin(l.az)*p,Math.cos(l.az)*p,l.k],v=K("g",{},t),y=K("path",{class:"nf lo"},v),b=J(v),w=K("path",{class:"nf lo"},v),M=K("path",{class:"sil"},v),k=K("path",{class:"sil"},v),O=K("path",{class:"sil"},v),N=H(0),j=H(0),$=H(-46,{k:60,c:6,eps:.02}),F=NaN,z=NaN,V=NaN,B=ev(0,0),_=e=>h(...B(...e)),X=e=>{let t=B(e.nu,e.nv,0);return t[0]*m[0]+t[1]*m[1]+t[2]*m[2]>=0},q=ef(e,e=>{let t=W(N,e),n=W(j,e);$.t=Math.min(-46+.6*Math.hypot(N.x,j.x),i);let r=W($,e);return!function(){let e=N.x!==F||j.x!==z;if(e){F=N.x,z=j.x,B=ev(F,z),Q(b,{sil:E(I(c.map(e=>_([e.u,e.v,0])).concat(c.map(e=>_([e.u,e.v,3]))))),crease:S(D(d,X).map(e=>_([e.u,e.v,3])))});let e=["",""];for(let t of u)e[+X(t)]+=C(_([.8*t.u-t.nu,.8*t.v-t.nv,3]),_([t.u,t.v,30]));for(let t of em){let n=3+27*t,r=.8+.19999999999999996*t;s.forEach((t,a)=>{let l=s[(a+1)%s.length];e[+X(t)]+=C(_([t.u*r,t.v*r,n]),_([l.u*r,l.v*r,n]))})}y.setAttribute("d",e[0]),w.setAttribute("d",e[1]),M.setAttribute("d",ey(s.map(e=>_([e.u,e.v,30])),4.5,!0))}if(e||$.x!==V){let e=ew(V=$.x);k.setAttribute("d",ey(eb.map(t=>_(e(t))),1.3*3)),O.setAttribute("d",ey(ex.map(t=>_(e(t))),2.6*3))}}(),t||n||r});a.add(q.unregister);let U=r,Y=!1,G=0,Z=0;function ee(){let e=Math.hypot(G,Z),t=Y&&e?x(U,0,o)*x(e/70,0,1):0;[N.t,j.t]=t?eg(G/e,Z/e,t):[0,0],n.textContent=Y?`tilt ${Math.round(Math.hypot(N.t,j.t))}\xb0 \xb7 0`:"rest",M.classList.toggle("hi",!Y),b.sil.classList.toggle("hi",Y),q.wake()}return ee(),a.add(eh(e,{move:e=>{Y=!0,[G,Z]=P(l,e[0],e[1],15),ee()},leave:()=>{Y=!1,ee()}})),a.add(()=>t.replaceChildren()),{set:e=>{U=e,ee()},destroy:a.dispose}},ek=(e,t,n,r,a,l)=>{let o=[];for(let i=0;i<=l;i++){let s=i/l,u=1-s,c=[u*u*u,3*u*u*s,3*u*s*s,s*s*s],d=[e[0],e[0]+n,t[0]-a,t[0]],f=[e[1],e[1]+r,t[1],t[1]];o.push([c[0]*d[0]+c[1]*d[1]+c[2]*d[2]+c[3]*d[3],c[0]*f[0]+c[1]*f[1]+c[2]*f[2]+c[3]*f[3]])}return o},eE=({stage:e,svg:t,read:n},r)=>{let a,l,o,i,s=ep(),u=r,c=A(45,.5,1.4);T(c,[[-15,-16,-6],[225,72,-6],[225,-16,-6],[-15,72,-6],[-15,-16,47],[225,-16,47]],200,166);let d=R(c),f=j(c),{cs:h,m:p,f:m}=function(){let e=[],t=(t,n,r,a,l)=>(e.push({lane:t,n,x:r,y:a,parent:l}),e.length-1),n=[];for(let e=0;e<8;e++)n.push(t("main",e+1,30*e,0,e?n[e-1]:-1));let r=t("feature",1,75,58,n[1]),a=t("feature",2,105,58,r),l=t("feature",3,135,58,a);return{cs:e,m:n,f:[r,a,l]}}(),g=e=>[h[e].x,h[e].y],v=K("g",{},t),[y,b]=F(-15,-16,225,72,12,2.2);for(let e of(Q(J(v),$(d,f,y,b,-6,0)),[[g(p[0]),g(p[7])],[...ek(a=g(p[1]),l=g(m[0]),(l[0]-a[0])*.3,(l[1]-a[1])*.5,(l[0]-a[0])*.45,14),...(o=g(m[2]),ek(i=g(p[6]),o,(o[0]-i[0])*.3,(o[1]-i[1])*.5,(o[
10]-i[0])*.45,14).reverse()).slice(1)]])){let t=function(e){let t=[],n=[];return e.forEach((r,a)=>{let l=e[Math.max(0,a-1)],o=e[Math.min(e.length-1,a+1)],i=o[0]-l[0],s=o[1]-l[1],u=Math.hypot(i,s),c=-s/u,d=i/u;t.push([r[0]+7*c/2,r[1]+7*d/2]),n.push([r[0]-7*c/2,r[1]-7*d/2])}),t.concat(n.reverse())}(e);K("path",{d:E(t.map(e=>d(e[0],e[1],0))),class:"lo"},v),K("path",{d:E(t.map(e=>d(e[0],e[1],2.6))),class:""},v)}let[w,M]=[O(8,24),O(6.6,24)],[k,S]=[O(6.6,24),O(6.6-1.2,24)],L=(e,t,n)=>e.map(e=>({...e,u:e.u+t,v:e.v+n})),I=h.map((e,t)=>t).sort((e,t)=>h[e].x+h[e].y-(h[t].x+h[t].y)),N=[];for(let e of I){let t=h[e];Q(J(v),$(d,f,L(w,t.x,t.y),L(M,t.x,t.y),2.6,5));let n=K("path",{class:"dash nf"},v);N[e]={...t,drop:n,el:J(v),ring:L(k,t.x,t.y),inner:L(S,t.x,t.y),z:q(0),drawn:NaN}}let D=m[2],z=ef(e,(e,t)=>{let n=!1;for(let e of N)!function(e,t){if(t===e.drawn)return;e.drawn=t;let n=5+t;Q(e.el,$(d,f,e.ring,e.inner,n,n+6)),e.drop.setAttribute("d",C(d(e.x,e.y,5),d(e.x,e.y,n)))}(e,U(e.z,t)),G(e.z,t)||(n=!0);return n});s.add(z.unregister);let V=null,B=null,_=new Map;function H(e,t,n,r){let a=performance.now(),l=new Map;for(let[r,a]of(e=>{let t=[];for(let n=e,r=0;n>=0;n=N[n].parent,r++)t.push([n,r]);return t})(e))a<=t&&l.set(r,[36*n*x(1-a/(t+1),0,1),a]);N.forEach((e,t)=>{let[n,o]=l.get(t)||[0,(_.get(t)||[0,0])[1]];
1r?e.z=q(n):Y(e.z,n,a,45*o)}),_=l,B!==e&&(null!==B&&N[B].el.sil.classList.remove("hi"),B=e,N[e].el.sil.classList.add("hi")),z.wake()}function W(e){e!==V&&(V=e,null===e?(H(D,2.2,.5),n.textContent="rest"):(H(e,u,1),n.textContent=`${N[e].lane} \xb7 ${N[e].n}`))}return H(D,2.2,.5,!0),s.add(eh(e,{move:e=>W(function(e){let t=P(c,e[0],e[1],11);if(t[0]<-15||t[0]>225||t[1]<-16||t[1]>72)return null;let n=null,r=1/0;return N.forEach((e,a)=>{let l=Math.hypot(e.x-t[0],e.y-t[1]);l<r&&(r=l,n=a)}),n}(e)),leave:()=>W(null)})),s.add(()=>t.replaceChildren()),{set:e=>{u=e,null!==V&&H(V,u,1)},destroy:s.dispose}},eC=[0,0,.2,0,0,.3,.58,.26,0,0,.13,0],eS=e=>e>=1?0:(1-e)*(1-e),eA=e=>.375*e.nu+.307*e.nv>0;function eR(e,t,n,r,a){let l=(t,n)=>t.map(t=>e(t.u,n,t.v));return{sil:E(I(l(t,r).concat(l(t,a)))),crease:n?S(l(D(n,eA),a)):""}}var eP=({stage:e,svg:t,read:n},r)=>{let a=ep(),l=A(45,.5,1.5);T(l,[[-10,0,0],[94,0,141],[94,44,0],[-10,0,141],[-4,72,11],[-4,72,135],[88,72,11]],200,166);let o=R(l),i=j(l),s=r,u=null,c=null,d=K("g",{},t),[f,h]=F(-7,3,91,41,3,1.2);Q(J(d),$(o,i,f,h,0,6));let[p,m]=F(-10,0,94,44,3.5,1.6);Q(J(d),$(o,i,p,m,6,141)),K("path",{d:E(L(-7.6,8.8,91.6,137.2,2,4).map(e=>o(e.u,44,e.v)))+E(L(5,13,39,134,3,4).map(e=>o(94,e.u,e.v))),class:"lo nf"},d);for(let e=0;e<12;e++)for(let t of[-5.8,89.8])ee(K("circle",{r:.75,class:"dot off"},d),o(t,44,11+10.4*e+4.8));let g=[];for(let e=0;e<12;e++){let t=11+10.4*e,n=K("g",{},d);g.push({i:e,z:t,body:L(0,t+.4,84,t+9.6-.4,1.6,4),face:L(-4,t,88,t+9.6,2,4),faceIn:L(-3.2,t+.8,87.2,t+9.6-.8,1.2,4),chassis:J(n),plate:J(n),marks:K("path",{class:"lo nf"},n),lamp:K("circle",{r:1.1,class:"dot off"},n),sp:H(26*eC[e],{eps:.02}),drawn:NaN})}function v(e){e!==c&&(c&&(c.plate.sil.classList.remove("hi"),c.lamp.setAttribute("class","dot off")),(c=e).plate.sil.classList.add("hi"),c.lamp.setAttribute("class","dot"))}let y=ef(e,e=>{let t=!1;for(let n of g)W(n.sp,e)&&(t=!0),function(e){let t=e.sp.x;if(t===e.drawn)return;e.drawn=t;let n=44+t+2,r=e.z+4.8,a=eR(o,e.body,null,44,44+t+.5);Q(e.chassis,{sil:a.sil,crease:C(o(84,44,r),o(84,44+t,r))}),Q(e.plate,eR(o,e.face,e.faceIn,44+t,n)),e.marks.setAttribute("d",function(e,t){let n=e.z,r=e=>E(e.map(e=>o(e.u,t,e.v))),a=r(L(-3.4,n+2,-1.2,n+9.6-2,1,3))+r(L(85.2,n+2,87.4,n+9.6-2,1,3));for(let e=0;e<4;e++)a+=r(L(4+10.6*e,n+2,13.8+10.6*e,n+9.6-2,1,3));for(let e=0;e<8;e++)a+=C(o(50+2.6*e,t,n+2.5),o(50+2.6*e,t,n+9.6-2.5));return a}(e,n)),ee(e.lamp,o(79,n,r))}(n);return t});a.add(y.unregister);let b=o(0,0,0),w=[o(1,0,0),o(0,1,0),o(0,0,1)].map(e=>[e[0]-b[0],e[1]-b[1]]);function M(e,t,n){let[r,a]=[0,1,2].filter(e=>e!==t),l=w[r],o=w[a],i=e[0]-b[0]-n*w[t][0],s=e[1]-b[1]-n*w[t][1],u=l[0]*o[1]-l[1]*o[0],c=[0,0,0];return c[t]=n,c[r]=(i*o[1]-s*o[0])/u,c[a]=(l[0]*s-l[1]*i)/u,c}function k(){if(null===u){for(let e of g)e.sp.t=26*eC[e.i];v(g[6]),n.textContent="rest"}else{for(let e of g)e.sp.t=26*eS(Math.max(0,Math.abs(e.i-u)-.5)/s);let e=Math.round(u);v(g[e]),n.textContent="blade "+(e+1)}y.wake()}return v(g[6]),a.add(eh(e,{move:e=>{u=function(e){for(let t=11;t>=0;t--){let n=M(e,1,46+26*eC[t]),r=(n[2]-11-4.8)/10.4;if(n[0]>=-4&&n[0]<=88&&.5>=Math.abs(r-t))return r}let t=M(e,1,46),n=M(e,0,94),r=null;return t[0]>=-40&&t[0]<=94&&t[2]>=-20.8&&t[2]<=141?r=t[2]:n[1]>=0&&n[1]<=44&&n[2]>=0&&n[2]<=145&&(r=n[2]),null===r?null:x((r-11-4.8)/10.4,0,11)}(e),k()},leave:()=>{u=null,k()}})),a.add(()=>t.replaceChildren()),{set:e=>{s=e,null!==u&&k()},destroy:a.dispose}},eT=676/68,eL=[-20,30],eO=[0,0,46],eI=(e,t,n)=>[e[0]+t[0]*n,e[1]+t[1]*n,e[2]+t[2]*n],eN=(e,t)=>e[0]*t[0]+e[1]*t[1]+e[2]*t[2];function ej(e,t){let n=M(e),r=M(t),a=Math.cos(r),l=Math.sin(r),o=[Math.cos(n),Math.sin(n),0];return{th:e,h:o,e:[-Math.sin(n),Math.cos(n),0],a:[o[0]*a,o[1]*a,l],u:[-o[0]*l,-o[1]*l,a]}}var eD=(e,t,n,r)=>eI(eI(eI(eO,e.a,t),e.e,n*Math.cos(r)),e.u,n*Math.sin(r)),e$=(e,t,n,r,a)=>Array.from({length:a},(l,o)=>eI(eI(e,t,r*Math.cos(2*Math.PI*o/a)),n,r*Math.sin(2*Math.PI*o/a))),eF=(e,t)=>e.map(e=>({u:e.u*t.h[0]+e.v*t.e[0],v:e.u*t.h[1]+e.v*t.e[1],nu:e.nu*t.h[0]+e.nv*t.e[0],nv:e.nu*t.h[1]+e.nv*t.e[1]})),ez=({stage:e,svg:t,read:n},r)=>{let a=ep(),l=r,o=null,i=A(45,.5,2.5),s=[[-30,-30,0],[30,30,0],[30,-30,0],[-30,30,0]];for(let[e,t]of[[-25,5],[-25,75],[115,5],[115,75],eL]){let n=ej(e,t);for(let e of(s.push(...e$(eO,n.e,n.u,26,16),eD(n,17-eT+3,0,0)),[-1,1]))s.push(eI(eI(eO,n.e,33.5*e),[0,0,1],6))}T(i,s,200,166);let u=R(i),c=j(i),d=e=>u(e[0],e[1],e[2]),f=u(0,0,0),h=u(1,0,0),p=u(0,1,0),m=u(0,0,1),g=[h[0]-f[0],p[0]-f[0],m[0]-f[0]],v=[h[1]-f[1],p[1]-f[1],m[1]-f[1]],y=[g[1]*v[2]-g[2]*v[1],g[2]*v[0]-g[0]*v[2],g[0]*v[1]-g[1]*v[0]],b=Math.hypot(...y)*Math.sign(y[2]),x=y.map(e=>e/b),w=K("g",{},t),[k,P]=F(-30,-30,30,30,9,2);Q(J(w),$(u,c,k,P,0,5));for(let e=0;e<36;e++){let t=e/36*2*Math.PI,n=e%9==0?26.5:25.5;ee(Z(w,i,e%9==0?.75:.5,"dot off"),u(n*Math.cos(t),n*Math.sin(t),5))}Q(J(w),$(u,c,O(20,48),O(18.8,48),5,10));let z=Z(w,i,.8,"dot m"),V=J(w),[B,_]=F(-9,-34.5,9,34.5,4,1.4),X=K("g",{},w),q=[-1,1].map(e=>{let t=K("g",{},w);return{s:e,g:t,near:null,ring:K("path",{class:"nf"},t),arm:J(t),trun:K("path",{class:"sil"}
1,t),foot:L(-8,31*e-2.5,8,31*e+2.5,2.5,4),top:L(-5.5,31*e-2.5,5.5,31*e+2.5,2.5,4),inner:L(-4.5,31*e-2.5+1,4.5,31*e+2.5-1,1.5,4)}}),U=K("path",{class:"sil"},X),Y=K("path",{class:"nf lo"},X),G=K("path",{class:"nf lo"},X),et=K("path",{class:"nf hi"},X),en=K("path",{class:"nf"},X),er=J(X),ea=[0,.35,.6,.78,.9,.97,1];function el(e,t,n){let r=t*t/68-eT,a=-r/eN(e.a,x),l=[],o=[];for(let i=0;i<n;i++){l.push(eD(e,r,t,2*Math.PI*i/n));let s=eI(l[i],x,a);o.push(26-Math.hypot(s[0]-eO[0],s[1]-eO[1],s[2]-eO[2]))}if(o.every(e=>e>0))return E(l.map(d));let i=o.findIndex((e,t)=>e>0&&o[(t+n-1)%n]<=0);if(i<0)return"";let s=(e,t)=>d(eI(l[e],[l[t][0]-l[e][0],l[t][1]-l[e][1],l[t][2]-l[e][2]],o[e]/(o[e]-o[t]))),u=[s((i+n-1)%n,i)],c=i;for(;o[c]>0;)u.push(d(l[c])),c=(c+1)%n;return u.push(s((c+n-1)%n,c)),S(u)}let eo="",ei=H(eL[0],{eps:.01}),es=H(eL[1],{eps:.01}),eu=ef(e,e=>{let t=W(ei,e),n=W(es,e);return!function(e,t){let n=e.toFixed(3)+","+t.toFixed(3);if(n===eo)return;eo=n;let r=ej(e,t);for(let e of(ee(z,u(18*r.h[0],18*r.h[1],10)),Q(V,$(u,c,eF(B,r),eF(_,r),10,16)),q)){let t=e.s*eN(r.e,x)>0;t!==e.near&&(e.near=t,t?(e.g.append(e.trun,e.arm.g,e.ring),X.after(e.g)):(e.g.append(e.ring,e.arm.g,e.trun),X.before(e.g))),Q(e.arm,{sil:E(I(N(u,eF(e.foot,r),16).concat(N(u,eF(e.top,r),52)))),crease:S(N(u,D(eF(e.inner,r),c),52))});let n=[0,0,1],a=eI(eO,r.e,33.5*e.s);e.ring.setAttribute("d",E(e$(a,r.h,n,3.4,24).map(d))),e.trun.setAttribute("d",E(I(e$(eI(eO,r.e,26*e.s),r.h,n,2.2,16).concat(e$(eI(eO,r.e,28.5*e.s),r.h,n,2.2,16)).map(d))))}let a=e$(eO,r.e,r.u,26,72),l=[];for(let e of ea)for(let t=0;t<40;t++)l.push(eD(r,e*e*676/68-eT-1.4,26*e,2*Math.PI*t/40));U.setAttribute("d",E(I(a.concat(l).map(d)))),Y.setAttribute("d",el(r,16.12,48)),G.setAttribute("d",el(r,3.2,20)),et.setAttribute("d",E(a.map(d)));let o=eD(r,17-eT-3,0,0),i=eD(r,17-eT+3,0,0);en.setAttribute("d",[90,210,330].map(e=>C(d(eD(r,0,26,M(e))),d(o))).join("")),Q(er,{sil:E(I(e$(o,r.e,r.u,3.6,16).concat(e$(i,r.e,r.u,2.4,16)).map(d))),crease:E(e$(i,r.e,r.u,1.3,16).map(d))})}(ei.x,es.x),t||n});a.add(eu.unregister);let ec=u(0,0,46);function ed(){o?(ei.t=45-l*Math.tanh((o[0]-ec[0])/120),es.t=40+l/2*Math.tanh((ec[1]-o[1])/90),n.textContent=`az ${Math.round((ei.t+360)%360)} \xb7 el ${Math.round(es.t)}`):(ei.t=eL[0],es.t=eL[1],n.textContent="rest"),eu.wake()}return a.add(eh(e,{move:e=>{o=e,ed()},leave:()=>{o=null,ed()}})),a.add(()=>t.replaceChildren()),{set:e=>{l=e,o&&ed()},destroy:a.dispose}},eV=e=>.375*e.nu+.307*e.nv>0,eB=({stage:e,svg:t,read:n},r)=>{let a=ep(),l=g.drawer[2],o=A(45,.5,2.1),i=60+l+2.4,s=[[0,0,0],[54,0,0],[0,0,89],[54,0,89],[54,60,0],[0,i,8],[0,i,86],[54,i,8]];T(o,s.concat(s.map(([e,t,n])=>[54-e,60-t,89-n])),200,166);let u=R(o),c=j(o),d=K("g",{},t),[f,h]=F(3,3,51,57,2.4,1);Q(J(d),$(u,c,f,h,0,5));let[p,m]=F(0,0,54,60,3,1.4);Q(J(d),$(u,c,p,m,5,89));let v=[6.2+41.599999999999994/3,6.2+2*41.599999999999994/3];K("path",{class:"nf lo",d:Array.from({length:3},(e,t)=>{let n,r=8+26*t+.8;return n=L(5.4,r+2.2-.8,47.8+.8,r+26-1.6-3.6+1.4,.8,2),E(n.map(e=>u(e.u,60,e.v)))}).join("")},d);let y=Array.from({length:3},(e,t)=>{let n=8+26*t+.8,r=K("g",{},d),a=[0,1,2,3].map(()=>K("path",{class:"lo"},r));return a.push(K("path",{class:"nf sil"},r)),{z0:n,z1:n+26-1.6,parts:a,front:J(r),pull:J(r),drawn:NaN}}),b=(e,t,n,r,a,l,o)=>r-n<.05?"":$(u,c,L(e,n,t,r,o,3),null,a,l).sil;function x(e,t){var n,r;let a;if(t===e.drawn)return;e.drawn=t;let l=e.z0+2.2,o=e.z1-3.6,i=60+t,s=i+2.4,[d,f,h,p,m]=e.parts;d.setAttribute("d",b(6.2,47.8,60,i,l,l+1.3,.6)),f.setAttribute("d",b(6.2,7.5,60,i,l+1.3,o,.5)),h.setAttribute("d",v.map(e=>b(e-.5,e+.5,60,i,l+1.3,o-2.6,.4)).join("")),p.setAttribute("d",b(46.5,47.8,60,i,l+1.3,o,.5)),m.setAttribute("d",b(6.2,47.8,60,i,l,o,.8)),Q(e.front,(n=L(3,e.z0,51,e.z1,1.6,4),r=L(4,e.z0+1,50,e.z1-1,1,4),{sil:E(I((a=(e,t)=>e.map(e=>u(e.u,t,e.v)))(n,i).concat(a(n,s)))),crease:S(a(D(r,eV),s))}));let g=(e.z0+e.z1)/2,[y,x]=F(18,s,36,s+2.6,1.3,.6);Q(e.pull,$(u,c,y,x,g-1.3,g+1.3))}let w=y.map(()=>q(0)),M=ef(e,(e,t)=>{let n=!1;return y.forEach((e,r)=>{x(e,U(w[r],t)),G(w[r],t)||(n=!0)}),n});a.add(M.unregister);let k=r,C=-2;function P(e,t){if(e===C)return;C=e;let r=e<0?1:e;
1w.forEach((n,a)=>Y(n,a===r?e<0?.7*k:k:0,t,0)),y.forEach((e,t)=>e.front.sil.classList.toggle("hi",t===r)),n.textContent=e<0?"rest":`drawer ${3-e} \xb7 0`,M.wake()}w[1]=q(.7*k),P(-1,-1e9),y.forEach((e,t)=>x(e,U(w[t],0)));let O=Math.cos(o.az),N=Math.sin(o.az),z=Math.sqrt(1-o.k*o.k),V=(e,t)=>{let n=(e[0]-o.ox)/(o.S*O)+t*N/O;return[n,((n*N+t*O)*o.k-(e[1]-o.oy)/o.S)/z]};return a.add(eh(e,{move:e=>P(function(e){for(let t=2;t>=0;t--){let[n,r]=V(e,62.4+(1===t?.7*k:0)),a=y[t];if(n>=3&&n<=51&&r>=a.z0&&r<=a.z1)return t}let t=V(e,62.4)[1];return y.reduce((e,n,r)=>Math.abs(t-(n.z0+n.z1)/2)<Math.abs(t-(y[e].z0+y[e].z1)/2)?r:e,0)}(e),performance.now()),leave:()=>P(-1,performance.now())})),a.add(()=>t.replaceChildren()),{set:e=>{k=e;let t=C;C=-2,P(t,performance.now())},destroy:a.dispose}},e_=[5,7,28,27],eH=[-8,11,-2,23],eW=V([[-16,-2],[33,-2],[33,-56],[76,-56],[76,38],[-16,38]],[3,2,4,6,6,6]),eX=V([[33,-56],[72,-56],[72,-6],[43,-6],[43,34],[33,34]],[4,4,4,3,3,3]),eq=(eH[0]+eH[2])/2,eU=(16.5-eq)/2,eY=[eq+eU,17,143+eU+2],eG=["ground","floor 1","floor 2","floor 3"],eK=({stage:e,svg:t,read:n},r)=>{let a=ep(),l=A(45,.5,1.3);T(l,[[-16,-56,-8],[76,38,-8],[76,-56,-8],[-16,38,-8],[eY[0],eY[1],eY[2]+eU]],200,166);let o=R(l),i=j(l),s=K("g",{},t),u=(e,t,n,r,a)=>{let[l,u]=F(...e,t,n);Q(J(s),$(o,i,l,u,r,a))},c=e=>K("path",{class:e},s),d=(e,t,n)=>{let r=e.length,a=e.map((t,n)=>{let a=e[(n+1)%r];return a[1]-t[1]-(a[0]-t[0])>0}),l=t=>{let n=a.findIndex((e,n)=>e===t&&a[(n+r-1)%r]!==t),l=[];for(let o=n;a[o%r]===t;o++)l.push(e[o%r]);return l.concat([e[(n+l.length)%r]])},i=(e,t)=>e.map(e=>o(e[0],e[1],t)),u=l(!1),c=l(!0),d=K("path",{class:"sil",d:E(i(u,n).concat(i(c,t)))},s);return K("path",{class:"nf lo",d:S(i(c,n))},s),d};d(eW,-8,-2.5),u([-16,-2,-14,34],1,.5,-2.5,140),u([-14,-2,32,0],1,.5,-2.5,140),u([15.2,3,17.8,5.4],.8,.5,-2.5,140);let[f,h]=F(...eH,1.6,.8),p=J(s),m=c("nf lo"),g=c("nf"),[v,y]=F(...e_,2.4,1.1),b=J(s),w=c("nf"),M=c("nf lo"),[k,P]=F(14.8,5.4,18.2,28.6,.8,.5),N=J(s),D=c("nf");u([15.2,28.6,17.8,31],.8,.5,-2.5,140),u([-16,-2,33,35],4,1.4,140,143),u([eq+2,4,14.5,14],2,1,143,eY[2]+4),K("path",{class:"nf",d:C(o(16.5,17,143),o(16.5,17,eY[2]))+C(o(eq,17,143),o(eq,17,eY[2]))},s);let z=(e,t)=>O(t,28).map(t=>o(eY[0]+t.u,e,eY[2]+t.v));Q(J(s),{sil:E(I(z(15.2,eU).concat(z(18.8,eU)))),crease:E(z(18.8,eU-1.4))});let V=c("nf lo");K("path",{class:"nf lo",d:E(z(18.8,2.6))},s);let B=[];for(let e=0;e<4;e++){let t=36*e,n=d(eX,t-2.5,t);if(e<3)for(let e of[-53,-15])u([62,e,68,e+6],1.5,.8,t,t+36-2.5);let r=[];for(let n=0;n<=e;n++){let e=Z(s,l,.8,"dot off");ee(e,o(37,e_[1]-3-3*n,t)),r.push(e)}B.push({sil:n,dots:r})}let _=H(50,{k:r,c:1.8*Math.sqrt(r)}),X=NaN,q=null,U=ef(e,e=>{let t=W(_,e);if(_.x!==X){var n;let e,t,r,a;X=_.x,e=108-(n=_.x)+6,t=(e_[1]+e_[3])/2,Q(p,$(o,i,f,h,e,e+17)),m.setAttribute("d",[5,9,13].map(t=>C(o(eH[0]+.6,eH[3],e+t),o(eH[2]-.6,eH[3],e+t))).join("")),g.setAttribute("d",C(o(eq,17,e+17),o(eq,17,140))),Q(b,$(o,i,v,y,n,n+25)),w.setAttribute("d",E(L(e_[1]+3.5,n+1.2,e_[3]-3.5,n+25-4,1.2,4).map(e=>o(e_[2],e.u,e.v)))),M.setAttribute("d",C(o(e_[2],t,n+1.2),o(e_[2],t,n+25-4))),Q(N,$(o,i,k,P,n+25,n+25+2.4)),D.setAttribute("d",C(o(16.5,17,n+25+2.4),o(16.5,17,140))),r=n/eU,a=(e,t)=>o(eY[0]+Math.cos(e)*t,18.8,eY[2]+Math.sin(e)*t),V.setAttribute("d",[0,1,2,3,4,5].map(e=>C(a(r+e*Math.PI/3,2.6),a(r+e*Math.PI/3,eU-1.4))).join(""))}return t});a.add(U.unregister);let Y=o(e_[2],17,0)[1],G=Y-o(e_[2],17,1)[1];function et(e){e!==q&&(q=e,_.t=e<0?50:36*e,b.sil.classList.toggle("hi",e<0),B.forEach((t,n)=>{t.sil.classList.toggle("hi",n===e),t.dots.forEach(t=>t.setAttribute("class",n===e?"dot m":"dot off"))}),n.textContent=e<0?"rest":eG[e],U.wake())}return et(-1),a.add(eh(e,{move:e=>et(x(Math.floor(((Y-e[1])/G+8)/36),0,3)),leave:()=>et(-1)})),a.add(()=>t.replaceChildren()),{set:e=>{_.k=e,_.c=1.8*Math.sqrt(e),U.wake()},destroy:a.dispose}},eJ=[{name:"surface",r:[0,0,132,96],rad:7,segs:[[[1.5,12],[130.5,12]]],dots:[[7,6],[13,6],[19,6]]},{name:"sidebar",r:[5,17,38,91],rad:4,segs:[[[10,25],[28,25]],[[10,33],[32,33]],[[10,41],[24,41]],[[10,49],[30,49]],[[10,83],[22,83]]]},{name:"card",r:[48,22,120,62],rad:5,segs:[[[54,30],[92,30]],[[54,38],[112,38]],[[54,46],[104,46]],[[54,54],[80,54]]]},{name:"popover",r:[80,50,126,86],rad:4,segs:[[[86,58],[118,58]],[[86,74],[116,74]],[[86,80],[108,80]]],sel:[83,62,123,70]}],eQ=({stage:e,svg:t,read:n},r)=>{let a=ep(),l=r,o=-1,i=null,s=H(.18,{eps:.002}),u=A(45,.5,1.42);T(u,[[0,0,0],[132,96,0],[132,0,0],[0,96,0],[0,0,104.4],[132,0,104.4]],180,166);let c=R(u),d=j(u),f=K("g",{},t),h=eJ.map((e,t)=>
1{let[n,r]=F(...e.r,e.rad,1.3),a=z(c,n),l=t>0?K("path",{class:"nf dash"},f):null,o=J(f),i=K("path",{class:"nf"},o.g),s=e.sel?L(...e.sel,2):null,d=e.sel?K("path",{class:"nf sil"},o.g):null,h=e.dots?e.dots.map(()=>Z(o.g,u,1.6,"nf")):null;return{ring:n,inner:r,ext:a,guide:l,el:o,marks:i,selRing:s,selEl:d,dotEls:h}}),p=([e,t,n,r],a)=>[c(e,t,a),c(n,t,a),c(n,r,a),c(e,r,a)];function m(e){if(!e)return -1;for(let t=eJ.length-1;t>=0;t--)if(function(e,t){let n=!1;for(let r=0,a=t.length-1;r<t.length;a=r++){let[l,o]=t[r],[i,s]=t[a];o>e[1]!=s>e[1]&&e[0]<(i-l)*(e[1]-o)/(s-o)+l&&(n=!n)}return n}(e,p(eJ[t].r,t*l*s.t+2.4)))return t;return -1}function g(e){e!==o&&(o=e,h.forEach((t,n)=>t.el.sil.classList.toggle("hi",n===e)),v.wake())}let v=ef(e,e=>{let t=W(s,e),r=e=>e*l*s.x;return eJ.forEach((e,t)=>{let n=h[t],a=r(t),l=a+2.4;if(Q(n.el,$(c,d,n.ring,n.inner,a,l)),n.marks.setAttribute("d",e.segs.map(([e,t])=>C(c(e[0],e[1],l),c(t[0],t[1],l))).join("")),n.selEl&&n.selRing&&n.selEl.setAttribute("d",E(N(c,n.selRing,l))),n.dotEls&&e.dots&&e.dots.forEach(([e,t],r)=>ee(n.dotEls[r],c(e,t,l))),n.guide){let e=r(t-1)+2.4;n.guide.setAttribute("d",n.ext.map(t=>C(c(t.u,t.v,a),c(t.u,t.v,e))).join(""))}}),n.textContent=o>=0?`0${o+1} \xb7 ${eJ[o].name} \xb7 z ${r(o).toFixed(1)}`:`gap ${(l*s.x).toFixed(1)}`,t});return a.add(v.unregister),a.add(eh(e,{move:e=>{i=e,s.t=.18+.8200000000000001*x((e[0]-60)/280,0,1),g(m(e)),v.wake()},leave:()=>{i=null,s.t=.18,g(-1),v.wake()}})),a.add(()=>t.replaceChildren()),{set:e=>{l=e,i&&g(m(i)),v.wake()},destroy:a.dispose}},eZ=[12.6,11.3,10.4,11,11.8],e0=e=>e.split(" ").map(e=>[1,"key "+e]),e1=[[[1,"esc"],...e0("1 2 3 4 5 6 7 8 9 0 - ="),[2,"bksp"]],[[1.5,"tab"],...e0("q w e r t y u i o p [ ]"),[1.5,"key \\"]],[[1.75,"caps"],...e0("a s d f g h j k l ; '"),[2.25,"enter"]],[[2.25,"shift l"],...e0("z x c v b n m , . /"),[2.75,"shift r"]],[[1.5,"ctrl l"],[1,"super"],[1.5,"alt l"],[7,"space"],[1.5,"alt r"],[1,"fn"],[1.5,"ctrl r"]]],e2=["key f","key j"],e4=e=>x(1-e,0,1),e5=({stage:e,svg:t,read:n},r)=>{let a=ep(),l=A(45,.5,1.42);T(l,[[-6,-6,-8],[216,76,-8],[216,-6,-8],[-6,76,-8],[0,0,eZ[0]]],200,166);let o=R(l),i=j(l),s=r,u=null,c=null,d=K("g",{},t),[f,h]=F(-6,-6,216,76,9,2.2);Q(J(d),$(o,i,f,h,-8,0));let p=[];e1.forEach((e,t)=>{let n=0;for(let[r,a]of e){let e=14*n,l=(n+r)*14,o=14*t,i=(t+1)*14,s=J(d);p.push({r:t,name:a,x0:e,x1:l,y0:o,y1:i,h:eZ[t],foot:L(e+.8,o+.8,l-.8,i-.8,2.6,4),top:L(e+2.6,o+2.6,l-2.6,i-2.6,2,4),inner:L(e+2.6+.9,o+2.6+.9,l-2.6-.9,i-2.6-.9,1.2,4),el:s,sp:H(eZ[t],{eps:.02}),drawn:NaN,bump:e2.includes(a)?K("path",{class:"lo nf"},s.g):null}),n+=r}});let m=p.find(e=>"enter"===e.name);function g(e,t,n,r){for(let a of p){let l=Math.max(a.x0-e[0],0,e[0]-a.x1),o=Math.max(a.y0-e[1],0,e[1]-a.y1),i=a===t?1:e4(Math.hypot(l,o)/(14*n));a.sp.t=a.h-8*r*i}}let v=[(m.x0+m.x1)/2,(m.y0+m.y1)/2];for(let e of(g(v,m,1.6,.6),p))e.sp.x=e.sp.t;function y(e){e!==c&&(c?.el.sil.classList.remove("hi"),c=e,e.el.sil.classList.add("hi"))}let b=ef(e,e=>{let t=!1;for(let n of p)W(n.sp,e)&&(t=!0),function(e){let t=e.sp.x;if(t!==e.drawn&&(e.drawn=t,Q(e.el,{sil:E(I(N(o,e.foot,1).concat(N(o,e.top,t)))),crease:S(N(o,D(e.inner,i),t))}),e.bump)){let n=(e.x0+e.x1)/2,r=e.y1-.8-1.8-2.4;e.bump.setAttribute("d",C(o(n-2.2,r,t),o(n+2.2,r,t)))}}(n);return t});a.add(b.unregister);let w=(e,t)=>p.find(n=>n.r===e&&t>=n.x0&&t<n.x1);function M(){u?(g(u.at,u.key,s,1),y(u.key),n.textContent=u.key.name):(g(v,m,1.6,.6),y(m),n.textContent="rest"),b.wake()}return y(m),a.add(eh(e,{move:e=>{u=function(e){for(let t=e1.length-1;t>=0;t--){let n=P(l,e[0],e[1],eZ[t]);if(!(n[1]<14*t)&&!(n[1]>=(t+1)*14)&&!(n[0]<0)&&!(n[0]>=210))return{at:n,key:w(t,n[0])}}let t=P(l,e[0],e[1],eZ[2]);if(t[0]<-6||t[0]>216||t[1]<-6||t[1]>76)return null;let n=[x(t[0],0,209.99),x(t[1],0,69.99)];return{at:n,key:w(Math.floor(n[1]/14),n[0])}}(e),M()},leave:()=>{u=null,M()}})),a.add(()=>t.replaceChildren()),{set:e=>{s=e,u&&M()},destroy:a.dispose}},e6=e=>{let t=Math.cos(M(e)),n=Math.sin(M(e));return(e,r,a)=>[e,r*t-a*n,5.2+r*n+a*t]},e3=({stage:e,svg:t,read:n},r)=>{let a=ep(),l=r,o=null,i=A(45,.5,1.3),s=[[0,0,0],[150,0,0],[0,106,0],[150,106,0]];for(let e of[15,90,100,125])for(let t of[0,150])for(let n of[0,106])for(let r of[-1.2,1.2])s.push(e6(e)(t,n,r));T(i,s,200,166);let u=R(i),c=j(i),d=u(0,0,0),f=u(1,0,0),h=u(0,1,0),p=u(0,0,1),m=[f[0]-d[0],h[0]-d[0],p[0]-d[0]],g=[f[1]-d[1],h[1]-d[1],p[1]-d[1]],v=[m[1]*g[2]-m[2]*g[1],m[2]*g[0]-m[0]*g[2],m[0]*g[1]-m[1]*g[0]];v[2]<0&&(v=v.map(e=>-e));let y=(e,t)=>e[0]*t[0]+e[1]*t[1]+e[2]*t[2],b=K("g",{},t),[k,P]=F(0,0,150,106,7,1.1);Q(J(b),$(u,c,k,P,0,4));let O=e=>E(e.map(e=>u(e.u,e.v,4))),N=function(){let e=[],t=(150-124.69999999999999)/2,n=(n,r,a)=>{let l=t;
1for(let t of a)e.push([l,n,l+8.6*t,n+r]),l+=8.6*t},r=e=>Array(e).fill(1);n(6,5.159999999999999,Array(14).fill(14.5/14));let a=11.16;for(let e of[[...r(13),1.5],[1.5,...r(13)],[1.75,...r(11),1.75],[2.25,...r(10),2.25]])n(a,8.6,e),a+=8.6;n(a,8.6,[1,1,1,1.25,5,1.25,1]);let l=t+98.89999999999999;return e.push([l,a+4.3,l+8.6,a+8.6],[l+8.6,a,l+17.2,a+4.3],[l+8.6,a+4.3,l+17.2,a+8.6],[l+17.2,a+4.3,l+25.799999999999997,a+8.6]),{out:e,y1:a+8.6,x0:t}}();K("path",{class:"nf lo",d:N.out.map(([e,t,n,r])=>O(L(e+.5,t+.5,n-.5,r-.5,1.1,2))).join("")},b),K("path",{class:"nf",d:O(L(N.x0-1.6,4.4,150-N.x0+1.6,N.y1+1.6,3,4))},b),K("path",{class:"nf",d:O(L(40,61,110,101,3.2,4))},b);let z=K("g",{},b),V=J(z),B=K("g",{},z);V.sil.classList.add("hi");let[_,X]=F(0,0,150,106,7,1.1),q=K("path",{class:"nf"},B),U=K("path",{class:"nf lo"},B),Y=K("path",{class:"nf lo"},B),G=K("path",{},B),Z=K("path",{class:"nf lo"},B),et=K("circle",{r:.8,class:"dot off"},B),en=[0,1,2].map(()=>K("circle",{r:.8,class:"dot off"},B)),er=null,ea=NaN;function el(e){if(e===ea)return;ea=e;let t=e6(e),n=Math.cos(M(e)),r=Math.sin(M(e)),a=(e,n,r)=>u(...t(e,n,r)),l=(e,t)=>e.map(e=>a(e.u,e.v,t)),o=y([0,r,-n],v)>0;Q(V,{sil:E(I(l(_,-1.2).concat(l(_,1.2)))),crease:S(l(D(X,e=>y([e.nu,e.nv*n,e.nv*r],v)>0),o?-1.2:1.2))}),o!==er&&(er=o,o?V.g.after(B):V.g.before(B));let i=e=>E(e.map(e=>{let t;return t=e.u,a(t,e.v,-1.2)}));q.setAttribute("d",i(L(4.2,7.5,145.8,101.8,3,4))),U.setAttribute("d",C(a(5.7,97.8,-1.2),a(144.3,97.8,-1.2))),Y.setAttribute("d",i(L(47,10,103,16,2.2,4))),G.setAttribute("d",i(L(30,23.5,104,89.8,2.6,4))),Z.setAttribute("d",C(a(30,83.8,-1.2),a(104,83.8,-1.2))+C(a(50,23.5,-1.2),a(50,83.8,-1.2))),ee(et,a(75,103.9,-1.2)),en.forEach((e,t)=>ee(e,a(34+3.4*t,86.8,-1.2)))}let eo=H(100,{eps:.05}),ei=ef(e,e=>{let t=W(eo,e);return el(eo.x),t});a.add(ei.unregister),el(100);let es=u(75,0,111.2)[1]+12,eu=u(75,106,0)[1]-12;function ec(){null===o?(eo.t=Math.min(100,l),n.textContent="rest"):(eo.t=w(l,15,x((o-es)/(eu-es),0,1)),n.textContent=eo.t<=15.5?"shut":eo.t>=l-.5?"open":`lid ${Math.round(eo.t)}\xb0`),ei.wake()}return a.add(eh(e,{move:e=>{o=e[1],ec()},leave:()=>{o=null,ec()}})),a.add(()=>t.replaceChildren()),{set:e=>{l=e,ec()},destroy:a.dispose}},e8=L(0,0,21.6,35.6,1.8,4),e9=[0,1,2].map(e=>L(4,29-3.2*e,17.6,35.6-5.2-3.2*e,.7,2)),e7=L(10.8-4.5,16.6,15.3,20.6,1,3),te=L(16,10.8,18.8,19.8,1.2,3),tt=L(2.6,2.6,19,33,1.4,3),tn=e=>e.reduce((t,n,r)=>{let a=e[(r+1)%e.length];return t+n[0]*a[1]-a[0]*n[1]},0),tr=({stage:e,svg:t,read:n},r)=>{let a=ep(),l=A(45,.5,1.6),o=[21.6*Math.cos(M(120)),21.6*Math.sin(M(120))];T(l,[[-4,-4,0],[154,30,0],[154,-4,0],[-4,30,0],[0,0,88],[150,0,88],[3+o[0],26+o[1],9],[3+o[0],26+o[1],85]],200,166);let i=R(l),s=j(l),u=r,c=-1;function d(e,t){let n=i(0,t,0),r=i(1,t,0),a=i(0,t,1),l=[r[0]-n[0],r[1]-n[1]],o=[a[0]-n[0],a[1]-n[1]],s=l[0]*o[1]-l[1]*o[0],u=e[0]-n[0],c=e[1]-n[1];return[(u*o[1]-c*o[0])/s,(l[0]*c-l[1]*u)/s]}function f(e,t,n){let r=i(...e),a=i(...t),l=d(r,26),o=d(a,26),s=0,u=1;for(let[e,t]of[[l[0]-o[0],l[0]-(n.x0+.9)],[o[0]-l[0],n.x0+21.6-.9-l[0]],[l[1]-o[1],l[1]-(n.z0+.9)],[o[1]-l[1],n.z0+35.6-.9-l[1]]]){if(0===e){if(t<0)return"";continue}let n=t/e;e<0?s=Math.max(s,n):u=Math.min(u,n)}if(u-s<.01)return"";let c=e=>[r[0]+(a[0]-r[0])*e,r[1]+(a[1]-r[1])*e];return C(c(s),c(u))}let h=K("g",{},t),[p,m]=F(-4,-4,154,30,5,1.6);Q(J(h),$(i,s,p,m,0,6));let[g,v]=F(0,0,150,26,3,1.4);Q(J(h),$(i,s,g,v,6,88));let y=[];for(let e=0;e<6;e++)for(let t=0;t<2;t++){let n=3+24*e+1.2,r=9+38*t+1.2,a=K("g",{},h);K("path",{d:E(e8.map(e=>i(n+e.u,26,r+e.v))),class:""},a);let l={c:e,r:t,n:(1-t)*6+e+1,x0:n,z0:r,drawn:NaN,sign0:0,tw:q(0)},o=l.z0+35.6-9.5,s=l.x0+21.6;K("path",{d:[f([l.x0,26,l.z0],[l.x0,3,l.z0],l),f([l.x0,24.4,o],[s,24.4,o],l),f([l.x0,24.4,o],[l.x0,3,o],l)].join(""),class:"nf lo"},a),l.plate=K("path",{class:"lo"},a),l.face=K("path",{class:"sil"},a),l.marks=K("path",{class:"nf lo"},a),l.cup=K("path",{class:"nf"},a),y.push(l)}for(let e of y)e.sign0=Math.sign(tn(e8.map(t=>i(e.x0+t.u,27.4,e.z0+t.v))));let b=ef(e,(e,t)=>{let n=!1;for(let e of y)!function(e,t){if(t===e.drawn)return;e.drawn=t;
1let n=Math.cos(M(t)),r=Math.sin(M(t)),a=t=>a=>i(e.x0+a.u*n-t*r,26.7+a.u*r+t*n,e.z0+a.v),l=e8.map(a(.7)),o=e8.map(a(-.7)),s=tn(l)*e.sign0>0,u=s?.7:-.7;e.plate.setAttribute("d",E(I(l.concat(o)))),e.face.setAttribute("d",E(s?l:o));let c=s?[...e9,e7]:[...e9,tt];e.marks.setAttribute("d",c.map(e=>E(e.map(a(u)))).join("")),e.cup.setAttribute("d",s?E(te.map(a(u))):"")}(e,U(e.tw,t)),G(e.tw,t)||(n=!0);return n});function w(e,t){if(e===c&&!t)return;c=e;let r=performance.now(),a=e>0?e:5;for(let t of y)Y(t.tw,t.n===e?u:22*(e<=0&&5===t.n),r,0),t.face.classList.toggle("hi",t.n===a),t.cup.classList.toggle("hi",t.n===a);n.textContent=e>0?"locker "+String(e).padStart(2,"0"):"rest",b.wake()}return a.add(b.unregister),y.find(e=>5===e.n).tw=q(22),w(0,!0),a.add(eh(e,{move:e=>w(Math.max(0,function(e){let[t,n]=d(e,27.4);if(t<0||t>150||n<6||n>88)return -1;let r=x(Math.floor((t-3)/24),0,5);return(1-x(Math.floor((n-6-3)/38),0,1))*6+r+1}(e))),leave:()=>w(0)})),a.add(()=>t.replaceChildren()),{set:e=>{u=e,c>0&&w(c,!0)},destroy:a.dispose}},ta=[45,165,285],tl=({stage:e,svg:t,read:n},r)=>{let a=ep(),l=A(45,.5,2.1),o=ta.map(e=>[Math.cos(e*Math.PI/180),Math.sin(e*Math.PI/180)]),[i,s]=P(l,...R(l)(0,0,0),21.2),u=[[0,0,-2.4],[124,0,-2.4],[0,92,-2.4],[124,92,-2.4]];for(let e of O(27,16))u.push([35+i+e.u,46+s+e.v,21.2]);T(l,u,200,166);let c=R(l),d=j(l),f=K("g",{},t),[h,p]=F(0,0,124,92,6,1.4);Q(J(f),$(c,d,h,p,-2.4,0));let m=[[[26,6],[26,86]],...Array.from({length:7},(e,t)=>[[26,13+11*t],[112,13+11*t]])];K("path",{class:"nf lo",d:m.map(([e,t])=>C(c(e[0],e[1],0),c(t[0],t[1],0))).join("")},f);let g=K("path",{class:"nf"},f),v=J(f),y=K("path",{class:"nf lo"},f),b=K("path",{class:"nf sil"},f),w=O(18.432,64).slice(26,36),M=O(27,64),k=O(25.6,64),N=L(0,0,124,92,6,12),D=O(1.8,12),z=H(35),V=H(46),B=H(r),_=NaN,X=NaN,q=NaN;function U(){if(z.x===_&&V.x===X&&B.x===q)return;let e=z.x!==_||V.x!==X;_=z.x,X=V.x,q=B.x;let t=_+i,n=X+s;if(e){let e=(e,r)=>c(t+e.u,n+e.v,r);g.setAttribute("d",o.map(([e,r])=>{let a=t+35*e,l=n+35*r,o=a>=0&&a<=124&&l>=0&&l<=92?0:-2.4;return C(c(a,l,o),c(t+26*e,n+26*r,20))+E(D.map(e=>c(a+e.u,l+e.v,o)))}).join("")),Q(v,{sil:E(I(M.map(t=>e(t,20)).concat(M.map(t=>e(t,21.2))))),crease:E(k.map(t=>e(t,21.2)))}),y.setAttribute("d",S(w.map(t=>e(t,21.2))))}let r=24.6,a=(e,a)=>{let l=(e[0]-_)*q,o=(e[1]-X)*q,i=(a[0]-e[0])*q,s=(a[1]-e[1])*q,u=i*i+s*s,d=l*i+o*s,f=d*d-u*(l*l+o*o-r*r);if(f<=0)return"";let h=Math.max(0,(-d-Math.sqrt(f))/u),p=Math.min(1,(-d+Math.sqrt(f))/u);return p>h?C(c(t+l+i*h,n+o+s*h,21.2),c(t+l+i*p,n+o+s*p,21.2)):""},l=N.map((e,t)=>a([e.u,e.v],[N[(t+1)%N.length].u,N[(t+1)%N.length].v])).join("");for(let[e,t]of m)l+=a(e,t);b.setAttribute("d",l)}let Y=ef(e,e=>{let t=W(z,e),n=W(V,e),r=W(B,e);return U(),t||n||r});return a.add(Y.unregister),v.sil.classList.add("hi"),n.textContent="rest",U(),a.add(eh(e,{move:e=>{let[t,r]=P(l,e[0],e[1],0);z.t=x(t,26,112),V.t=x(r,13,79),n.textContent=`row ${Math.round((V.t-13)/11)+1} \xb7 0`,Y.wake()},leave:()=>{z.t=35,V.t=46,n.textContent="rest",Y.wake()}})),a.add(()=>t.replaceChildren()),{set:e=>{B.t=e,Y.wake()},destroy:a.dispose}},to=Math.SQRT1_2*Math.sqrt(3),ti=e=>e*e*(3-2*e);function ts(e){for(let t=0;t<e.length-3;t++)for(let n=e.length-2;n>t+1;n--){let r=function(e,t,n,r){let a=t[0]-e[0],l=t[1]-e[1],o=r[0]-n[0],i=r[1]-n[1],s=n[0]-e[0],u=n[1]-e[1],c=a*i-l*o;if(!c)return null;let d=(s*i-u*o)/c,f=(s*l-u*a)/c;return d>0&&d<1&&f>0&&f<1?[e[0]+d*a,e[1]+d*l]:null}(e[t],e[t+1],e[n],e[n+1]);if(r){e.splice(t+1,n-t,r);break}}return e}var tu=({stage:e,svg:t,read:n},r)=>{var a;let l=ep(),o=H(r),i=!1,s=(e,t,n)=>{let r=[Math.cos(M(n)),-Math.sin(M(n))],a=57+t,l=(t,n)=>e(13+r[0]*t,10+r[1]*t,n),o=[l(30,Math.max(37+t,44)),l(30,a)];for(let e=1;e<28;e++){let t=Math.PI*e/28;o.push(l(15+15*Math.cos(t),a+15*Math.sin(t)))}return o.push(l(0,a),l(0,44)),o},u=A(45,.5,2.75),c=(e,t,n)=>[e,t,n],d=[[0,0,0],[56,0,0],[0,20,0],[56,20,0],[0,0,44]];for(let e of[0,40,80,100])for(let t of s(c,11,e))d.push([t[0],t[1],t[2]+4.2]);T(u,d,200,170);let f=R(u),h=V([[0,0],[56,0],[56,44],[0,44]],[14,14,7,7],12),p=(a=V([[1.6,1.6],[54.4,1.6],[54.4,42.4],[1.6,42.4]],[12.4,12.4,5.4,5.4],12)).map((e,t)=>{let n=a[(t+a.length-1)%a.length],r=a[(t+1)%a.length],l=r[0]-n[0],o=r[1]-n[1],i=Math.hypot(l,o)||1;return{u:e[0],v:e[1],nu:o/i,nv:-l/i}}),m=K("g",{},t);Q(J(m),{sil:E(I(h.map(e=>f(e[0],0,e[1])).concat(h.map(e=>f(e[0],20,e[1]))))),crease:S(D(p,e=>e.nu*to+e.nv>0).map(e=>f(e.u,20,e.v)))});let g=Math.asin(.40909090909090906),v=[];for(let e=0;e<=20;e++){let t=-Math.PI/2+g+(2*Math.PI-2*g)*e/20;v.push([28+4.4*Math.cos(t),24.64+4.4*Math.sin(t)])}for(let e=0;e<=6;e++){let t=Math.PI+Math.PI*e/6;v.push([28+1.8*Math.cos(t),12.64+1.8*Math.sin(t)])}K("path",{d:E(v.map(e=>f(e[0],20,e[1]))),class:"nf"},m);let y=O(5.5,20);for(let e of[13,43])K("path",{d:E(y.map(t=>f(e+t.u,10+t.v,44))),class:"nf lo"},m);let b=K("path",{class:"sil"},m),w=(e,t)=>[11*ti(x(e/.42,0,1)),t*ti(x((e-.42)/.5800000000000001,0,1))],k=()=>.42+.5800000000000001*(.5-Math.sin(Math.asin(1-52/o.t)/3)),C=H(k(),{eps:.002}),P=NaN,L=NaN,N=ef(e,e=>{let t=W(C,e),n=W(o,e);return!function(){if(C.x===P&&o.x===L)return;P=C.x,L=o.x;let[e,t]=w(C.x,o.x);b.setAttribute("d",function(e,t){let n=e.length,r=[],a=[];for(let t=0;t<n;t++){let l=e[Math.max(t-1,0)],o=e[t],i=e[Math.min(t+1,n-1)],s=[o[0]-l[0],o[1]-l[1]],u=[i[0]-o[0],i[1]-o[1]],c=Math.hypot(s[0],s[1])||1,d=Math.hypot(u[0],u[1])||1,f=s[0]/c+u[0]/d,h=s[1]/c+u[1]/d,p=Math.hypot(f,h)||1;f/=p,h/=p,r.push([o[0]-11.55*h,o[1]+11.55*f]),a.push([o[0]+11.55*h,o[1]-11.55*f])}let l=e=>{let t=[];for(let n=7;n>=1;n--){let r=Math.PI*n/8;t.push([e[0]+11.55*Math.cos(r),e[1]+5.775*Math.sin(r)])}return t};return E([...ts(r),...l(e[n-1]),...ts(a).reverse(),...l(e[0])])}(s(f,e,t),11.55))}(),t||n});l.add(N.unregister);let j=f(28,10,22);function $(){let[e,t]=w(C.t,o.t),r=i&&e<7;n.textContent=i?r?"locked":t<1?"open":Math.round(t)+"°":"rest",b.classList.toggle("hi",!r),N.wake()}return $(),l.add(eh(e,{move:e=>{i=!0,C.t=x((200-Math.hypot(e[0]-j[0],e[1]-j[1]))/144,0,1),$()},leave:()=>{i=!1,C.t=k(),$()}})),l.add(()=>t.replaceChildren()),{set:e=>{o.t=e,i||(C.t=k()),$()},destroy:l.dispose}},tc=[2,10,18],td=(e,t)=>0===e?0:x(1-(e-1)/t,0,1),tf=({stage:e,svg:t,read:n},r)=>{let a=ep(),l=A(45,.5,1.5);T(l,[[0,-18,44],[228,-18,44],[0,0,0],[228,0,0],[20,34,73],[208,34,-20.5],[20,34,-20.5]],200,166);let o=R(l),i=j(l),s=r,u=-1,c=null,d=(e,t,n,r)=>e.map(e=>o(t+e.u,n,r+e.v)),f=e=>.612*e.nu+.5*e.nv>0,h=(e,t,n,r,a,l)=>
1({sil:E(I(d(e,n,a,r).concat(d(e,n,l,r)))),crease:S(d(D(t,f),n,l,r))}),p=K("g",{},t),[m,g]=F(17,-18,211,-2.6,3,1.6);Q(J(p),$(o,i,m,g,3,41)),Q(J(p),h(L(0,0,228,44,3,4),L(.7,.7,227.3,43.3,2.3,4),0,0,-2.6,0));let v=e=>e.map(e=>[e.u,e.v]),y=(e,t)=>K("path",{d:E(e.map(([e,t])=>o(e,0,t))),class:t},p);for(let e of[8.5,219.5])for(let t of[8,36])y(v(L(e-3.4,t-1.5,e+3.4,t+1.5,1.5,3)),"nf");let b=[];for(let e=0;e<24;e++){let t=e<12?0:1,n=e%12;b.push({p:e,r:t,c:n,cx:20+(n+.5)*15+8*(n>=6),cz:t?12.5:30,full:!tc.includes(e)})}for(let e of[0,6])y(v(L(b[e].cx-7.5+1,8.3-3,b[e+5].cx+7.5-1,38.50000000000001,2.4,4)),"lo nf");let w=V([[-5,-4.2],[5,-4.2],[5,4.2],[1.9,4.2],[1.9,5.9],[-1.9,5.9],[-1.9,4.2],[-5,4.2]],[1,1,1,.4,.5,.5,.4,1]);for(let e of b){let{cx:t,cz:n}=e;e.jack=y(w.map(([e,r])=>[t+e,n+r]),"nf"),K("path",{d:S([[-2.6,4.2],[-2.6,-4.2+1.9583999999999997],[5,-4.2+1.9583999999999997]].map(([e,r])=>o(t+e,0,n+r))),class:"lo nf"},p)}let M=K("g",{},p),k=K("g",{},p),P=L(-4.3,-3.5,4.3,3.5,1.2,3),O=L(-4.3+.7,-2.8,4.3-.7,2.8,.6,3),N=L(-3.7,-3,3.7,3,1.6,3),z=L(-2.4,-2.4,2.4,2.4,2.3,3);for(let e of b.slice().sort((e,t)=>e.c-t.c||e.r-t.r))e.pull=H(0,{eps:.002}),e.lx=H(0,{eps:.01}),e.lz=H(0,{eps:.01}),e.full&&(e.plug=J(M),e.latch=K("path",{class:"lo nf"},e.plug.g),e.boot=J(M),e.cable=K("path",{class:"sil"},k),e.drawn="");function B(e,t,n){let r=b[e];for(let e of b){let a=e.c-r.c,l=e.r-r.r,o=Math.hypot(a,l),i=td(o,t)*n;e.pull.t=e===r?n:0,e.lx.t=o?x(a/o*i*10,-10,10):0,e.lz.t=o?x(-l/o*i*7,-7,7):0}}function _(e){if(e===c)return;let t=(e,t)=>(e.full?[e.plug.sil,e.boot.sil,e.cable]:[e.jack]).forEach(e=>e.classList.toggle("hi",t));c&&t(c,!1),c=e,t(e,!0)}for(let e of(B(7,1.6,.55),b))for(let t of[e.pull,e.lx,e.lz])t.x=t.t;_(b[7]),n.textContent="rest";let X=ef(e,e=>{let t=!1;for(let n of b){for(let r of[n.pull,n.lx,n.lz])W(r,e)&&(t=!0);n.full&&function(e){let t=e.pull.x,n=e.lx.x,r=e.lz.x,a=[t,n,r].map(e=>e.toFixed(3)).join();if(a===e.drawn)return;e.drawn=a;let{cx:l,cz:i,r:s,p:u}=e,c=4+6*t,f=c+5,p=s?-1:1,[m,g]=[7*u%5-2,11*u%7-3];Q(e.plug,h(P,O,l,i,0,c)),e.latch.setAttribute("d",C(o(l,.6,i+3.5),o(l,c-.8,i+3.5))),Q(e.boot,{sil:E(I(d(N,l,c,i).concat(d(z,l,f,i)))),crease:""});let v=s?6:2,y=[l,f-1.5,i],b=s?[l+.5,f+v+4*t,i]:[l,f+1+2*t,i+6],x=[l+(s?2:3)+m+n,f+v+1+9*t,i+p*(24+g)+r+9*t],w=[x[0]-.6,x[1]-1,x[2]-12*p],M=[];for(let e=0;e<=16;e++){let t=e/16,n=(1-t)**3,r=3*(1-t)**2*t,a=3*(1-t)*t*t,l=t**3;M.push(o(...[0,1,2].map(e=>n*y[e]+r*b[e]+a*w[e]+l*x[e])))}e.cable.setAttribute("d",function(e,t){let n=e.length,r=[],a=[],l=[];for(let t=0;t<n;t++){let o=e[Math.max(0,t-1)],i=e[Math.min(n-1,t+1)],s=Math.hypot(i[0]-o[0],i[1]-o[1])||1,u=[(i[0]-o[0])/s,(i[1]-o[1])/s];l.push(u),r.push([e[t][0]-2.7*u[1],e[t][1]+2.7*u[0]]),a.push([e[t][0]+2.7*u[1],e[t][1]-2.7*u[0]])}let o=(e,t,n)=>{let r=[];for(let a=1;a<6;a++){let l=a/6*Math.PI,o=Math.cos(l),i=Math.sin(l);r.push([e[0]+2.7*n*(-t[1]*o+t[0]*i),e[1]+2.7*n*(t[0]*o+t[1]*i)])}return r};return E([...r,...o(e[n-1],l[n-1],1),...a.reverse(),...o(e[0],l[0],-1)])}(M,2.7))}(n)}return t});a.add(X.unregister);let q=o(0,2.5,0),U=o(1,2.5,0),Y=o(0,2.5,1),G=[U[0]-q[0],U[1]-q[1]],Z=[Y[0]-q[0],Y[1]-q[1]],ee=G[0]*Z[1]-G[1]*Z[0];function et(){u>=0?(B(u,s,1),_(b[u]),n.textContent="port "+String(u+1).padStart(2,"0")):(B(7,1.6,.55),_(b[7]),n.textContent="rest"),X.wake()}return a.add(eh(e,{move:e=>{let t=function([e,t]){let n=e-q[0],r=t-q[1],a=(n*Z[1]-r*Z[0])/ee,l=(G[0]*r-G[1]*n)/ee;if(a<18||a>210||l<8.3-6||l>42.2)return -1;let o=-1,i=1/0;for(let e of b){let t=Math.abs(e.cx-a)+1e3*(Math.abs(e.cz-l)>8.75);t<i&&(i=t,o=e.p)}return o}(e);t!==u&&(u=t,et())},leave:()=>{u=-1,et()}})),a.add(()=>t.replaceChildren()),{set:e=>{s=e,u>=0&&et()},destroy:a.dispose}},th=["glass","board","battery","shell"],tp=[.36,.3,1.2],tm=[[4,96],[64,96],[64,135],[36,135],[36,110],[4,110]],tg=[9,12,59,92],tv=[[10,99,26,106,1.4],[45,100,54,105,1.2],[57,98,62,104,1.2],[42,113,56,127,1.8]],ty=[[0,0],[68,0],[68,140],[0,140]],tb=[ty,tm,[[tg[0],tg[1]],[tg[2],tg[1]],[tg[2],tg[3]],[tg[0],tg[3]]],ty],tx=[2,1.6,7,6];function tw(e){let t=[0],n=[2,1.6+1.8,7];for(let r=0;r<3;r++)t.push(t[r]+n[r]+e[r]);let r=(t[3]+6+2.2+.9)/2;return t.map(e=>e-r)}var tM=(e,t,n)=>e.map(e=>({...e,u:e.u+t,v:e.v+n})),tk=({stage:e,svg:t,read:n},r)=>{let a=ep(),l=r,o=null,i=1,s=null,u=A(45,.5,1.5),c=70.75;T(u,[[0,0,-70.75],[70.2,140,-70.75],[70.2,0,-70.75],[0,140,-70.75],[0,0,70.75],[70.2,0,70.75],[0,140,70.75]],200,166);let d=R(u),f=j(u),h=(e,t)=>E(e.map(([e,n])=>d(e,n,t))),p=K("g",{},t),m=L(0,0,68,140,11,8),g=z(d,m).slice(0,2),v=K("path",{class:"nf dash"},p),y=K("g",{},p),b=J(y),M=L(1.2,1.2,66.8,138.8,9.8,8),k=V([[4,4],[64,4],[64,136],[46,136],[46,130],[22,130],[22,136],[4,136]],[7.5,7.5,7.5,2,3.5,3.5,2,7.5]),S=K("path",{class:"nf"},y),P=K("path",{class:"nf"},y),D=K("path",{class:"nf lo"},y),B=tM(O(1.5,16),40,133),_=K("g",{},p),X=V(tm,[4,4,4,4,3,4]),q=K("path",{class:"lo"},_),U=K("path",{class:"sil"},_),Y=tv.map(([e,t,n,r,a])=>{let[l,o]=F(e,t,n,r,1.5,.7);return{ring:l,inner:o,h:a,el:J(_)}}),G=K("g",{},p),Z=J(G),[ee,et]=F(...tg,6,1.6),en=V([[41,92],[52,92],[52,109],[41,109]],[.5,.5,2,2]),er=K("path",{class:"lo"},G),ea=K("path",{},G),el=J(G),[eo,ei]=F(42,102,51,108,1.5,.7),es=K("g",{},p),eu=J(es),ec=L(1.8,1.8,66.2,138.2,9.2,8),ed=[[72,82],[86,96]].map(([e,t])=>{let[n,r]=F(67.5,e,70.2,t,1.2,.5);return{ring:n,inner:r,el:J(es)}}),em=J(es),eg=L(7,107,33,133,7,6),ev=L(8,108,32,132,6,6),ey=[[14.5,114.5],[25.5,125.5]].map(([e,t])=>{let n=J(es);return{ring:tM(O(4.6,24),e,t),inner:tM(O(3.6,24),e,t),eye:tM(O(1.9,16),e,t),el:n,glass:K("path",{class:"nf lo"},n.g)}}),eb=K("path",{class:"nf"},es),ex=tM(O(1.7,16),25.5,114.5),ew=[e=>{Q(b,$(d,f,m,M,e,e+2));let t=e+2;S.setAttribute("d",h(k,t)),P.setAttribute("d",E(N(d,B,t))),D.setAttribute("d",C(d(28,133,t),d(35.5,133,t)))},e=>{for(let t of(q.setAttribute("d",h(X,e)),U.setAttribute("d",h(X,e+1.6)),Y))Q(t.el,$(d,f,t.ring,t.inner,e+1.6,e+1.6+t.h))},e=>{Q(Z,$(d,f,ee,et,e,e+7)),er.setAttribute("d",h(en,e+.8)),ea.setAttribute("d",h(en,e+1.4)),Q(el,$(d,f,eo,ei,e+1.4,e+2.6))},e=>{for(let t of(Q(eu,$(d,f,m,ec,e,e+6)),ed))Q(t.el,$(d,f,t.ring,t.inner,e+1.6,e+4.4));let t=e+6,n=t+2.2;for(let e of(Q(em,$(d,f,eg,ev,t,n)),ey))Q(e.el,$(d,f,e.ring,e.inner,n,n+.9)),e.glass.setAttribute("d",E(N(d,e.eye,n+.9)));eb.setAttribute("d",E(N(d,ex,n)))}],eM=[b.sil,U,Z.sil,eu.sil],ek=()=>[0,1,2].map(e=>l*(null===o?tp[e]:o)),eE=ek().map(e=>H(e,{eps:.01})),eC=[NaN,NaN,NaN,NaN],eS=ef(e,e=>{let t=ek(),n=[0,1,2].sort((e,t)=>
1Math.abs(e+.5-i)-Math.abs(t+.5-i)),r=!1;for(let a of n){let n=a+.5-i,l=n>0?a-1:a+1;eE[a].t=1>Math.abs(n)?t[a]:t[a]+eE[l].x-t[l],W(eE[a],e)&&(r=!0)}let a=tw(eE.map(e=>e.x)),l=!1;return a.forEach((e,t)=>{e!==eC[t]&&(eC[t]=e,ew[t](e),l=!0)}),l&&v.setAttribute("d",g.map(e=>C(d(e.u,e.v,a[3]),d(e.u,e.v,a[0]+2))).join("")),r});function eA(e){let t=tw(ek());for(let n=3;n>=0;n--){let r=tb[n],a=r.map(([e,r])=>d(e,r,t[n]+tx[n]));if(function(e,t){let n=!1;for(let r=0,a=t.length-1;r<t.length;a=r++){let[l,o]=t[r],[i,s]=t[a];o>e[1]!=s>e[1]&&e[0]<(i-l)*(e[1]-o)/(s-o)+l&&(n=!n)}return n}(e,1===n?a:I(a.concat(r.map(([e,r])=>d(e,r,t[n]))))))return n}let n=0,r=1/0;return t.forEach((t,a)=>{let l=Math.abs(d(34,70,t+tx[a])[1]-e[1]);l<r&&(r=l,n=a)}),n}function eR(e){e>=0&&(i=e);let t=e>=0?e:1;eM.forEach((e,n)=>e.classList.toggle("hi",n===t)),n.textContent=e>=0?th[e]:"rest",eS.wake()}return a.add(eS.unregister),eR(-1),a.add(eh(e,{move:e=>{s=e,o=w(.08,1,x((e[0]-60)/280,0,1)),eR(eA(e))},leave:()=>{s=null,o=null,eR(-1)}})),a.add(()=>t.replaceChildren()),{set:e=>{l=e,s&&eR(eA(s)),eS.wake()},destroy:a.dispose}},tE=[[0,0,0,8,0,0,0],[0,0,8,20,8,0,0],[0,28,34,34,34,28,0],[28,34,65,65,65,34,28],[65,0,0,0,0,0,65],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0],[64,0,0,0,0,0,0],[32,64,0,0,0,0,0],[16,32,64,0,0,0,0],[8,16,32,64,0,0,0],[4,8,16,32,64,0,0],[2,4,8,16,32,64,0],[1,2,4,8,16,32,64],[0,1,2,4,8,16,32],[0,0,1,2,4,8,16],[0,0,0,1,2,4,8],[0,0,0,0,1,2,4],[0,0,0,0,0,1,2],[0,0,0,0,0,0,1],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0]],tC=[[0,0,1],[1,0,.45],[-1,0,.45],[0,1,.45],[0,-1,.45]],tS=(e,t,n)=>tE[e][t]>>6-n&1,tA=({stage:e,svg:t,read:n},r)=>{let a=ep(),l=r,o=0,i=-1,s=-1e9,u=!1,c=null,d=A(45,.5,2.12);T(d,[[-7,-7,-19],[83,83,-25],[83,-7,-19],[-7,83,-19],[0,0,5]],200,160);let f=R(d),h=j(d),p=K("g",{},t),[m,g]=F(-7,-7,83,83,11,1.8);en(t,p,f,h,m,-19,12),Q(J(p),$(f,h,m,g,-19,-15));let[v,y]=F(0,0,76,76,7,1.3);K("path",{d:z(f,v).map(e=>C(f(e.u,e.v,0),f(e.u,e.v,-15))).join(""),class:"nf dash"},p),Q(J(p),$(f,h,v,y,0,5)),K("path",{d:E(N(f,L(3.5,3.5,72.5,72.5,4.5,5),5)),class:"nf lo"},p);let b=new Float32Array(49),M=[];for(let e=0;e<7;e++)for(let t=0;t<7;t++){let n=Z(p,d,2.5,"dot");ee(n,f(8+10*t,8+10*e,5)),M.push(n)}function k(e,t,n){let r=Math.round((e-8)/10),a=Math.round((t-8)/10);for(let[e,t,l]of tC){let o=a+e,i=r+t;o<0||o>=7||i<0||i>=7||(b[7*o+i]=Math.max(b[7*o+i],n*l))}}let S=ef(e,(e,t)=>{if(B&&!u)for(let t=0;t<49;t++)b[t]=Math.max(b[t]*Math.exp(-(1e3*e)/l),.8*tS(3,Math.floor(t/7),t%7));else{let r=Math.exp(-(1e3*e)/l);for(let e=0;e<49;e++)b[e]*=r;let a=u?0:x((t-s-1200)/400,0,1);if(a>0){let t=Math.floor((o+=1e3*e)/110)%tE.length;if(t!==i){i=t;for(let e=0;e<7;e++)for(let n=0;n<7;n++)tS(t,e,n)&&(b[7*e+n]=Math.max(b[7*e+n],a))}n.textContent=`loop \xb7 ${String(t+1).padStart(2,"0")}/${tE.length}`}else n.textContent=u?"paint":"afterglow"}for(let e=0;e<49;e++)M[e].setAttribute("opacity",(.14+.86*x(b[e],0,1)).toFixed(3));return!0});return a.add(S.unregister),a.add(eh(e,{move:e=>{u=!0;let t=P(d,e[0],e[1],5);if(c){let e=Math.ceil(Math.hypot(t[0]-c[0],t[1]-c[1])/3);for(let n=1;n<=e;n++)k(w(c[0],t[0],n/e),w(c[1],t[1],n/e),1)}else k(t[0],t[1],1);c=t,S.wake()},leave:()=>{u=!1,c=null,s=performance.now(),o=0,i=-1,S.wake()}})),a.add(()=>t.replaceChildren()),{set:e=>{l=e},destroy:a.dispose}},tR={k:40,c:11,eps:.02},tP=V([[84,0],[84,34],[2,34],[2,0]],[.6,4,4,.6],5),tT=[5,18],tL=({stage:e,svg:t,read:n},r)=>{let a,l,o,i,s=ep(),u=g.plot[2],c=A(45,.5,3.2);T(c,[[0,0,-3.6],[86,0,-3.6],[0,16,-3.6],[86,16,-3.6],[0,2,34],[86,2,34]],200,166);let d=R(c),f=j(c),h=K("g",{},t),[p,m]=F(0,0,86,16,6,1.6);Q(J(h),$(d,f,p,m,-3.6,0));let v=e=>tP.map(([t,n])=>d(t,e,n));Q(J(h),{sil:E(I(v(2).concat(v(4)))),crease:S(v(4).slice(...tT))});let y=Array.from({length:4},(e,t)=>34*(t+1)/5);K("path",{class:"nf lo",d:y.map(e=>{let t;return C((t=7,d(7,4,e)),d(79,4,e))}).join("")},h),K("path",{class:"nf",d:C((a=7,l=0,d(7,4,0)),(o=7,i=30,d(7,4,30)))+y.map(e=>{let t,n;return C((t=3,d(3,4,e)),(n=7,d(7,4,e)))}).join("")},h);let b=Array.from({length:7},(e,t)=>{let n=13+10*t;return{ring:F(n-2.5,6,n+2.5,11,1.2,.4),el:J(h)}}),w=b.map((e,t)=>H(2.2*(4===t),tR)),M=b.map(()=>NaN);function k(){b.forEach((e,t)=>{let n=x(w[t].x,0,u);n!==M[t]&&(M[t]=n,Q(e.el,$(d,f,e.ring[0],e.ring[1],0,1+n)))})}let P=ef(e,e=>{let t=!1;for(let n of w)t=W(n,e)||t;return k(),t});s.add(P.unregister);let L=b.map((e,t)=>d(13+10*t,8.5,0)[0]),O=r,N=-2;
1function D(e){w.forEach((t,n)=>{let r,a=O*(1/(1+.5*(r=Math.abs(n-e))*r))-t.x;a>0&&(t.v=Math.max(t.v,16.4*a))}),P.wake()}function z(e){e!==N&&(N=e,w.forEach((t,n)=>{t.t=2.2*(e<0&&4===n)}),e>=0&&D(e),b.forEach((t,n)=>t.el.sil.classList.toggle("hi",n===(e<0?4:e))),n.textContent=e<0?"rest":`bar ${e+1} \xb7 0`,P.wake())}return z(-1),k(),s.add(eh(e,{move:e=>z(L.reduce((t,n,r)=>Math.abs(e[0]-n)<Math.abs(e[0]-L[t])?r:t,0)),leave:()=>z(-1)})),s.add(()=>t.replaceChildren()),{set:e=>{O=e,N>=0&&D(N)},destroy:s.dispose}};function tO(e){for(let t=0;t<e.length-3;t++)for(let n=e.length-2;n>t+1;n--){let r=e[t],a=e[t+1],l=e[n],o=e[n+1],i=a[0]-r[0],s=a[1]-r[1],u=o[0]-l[0],c=o[1]-l[1],d=l[0]-r[0],f=l[1]-r[1],h=i*c-s*u;if(!h)continue;let p=(d*c-f*u)/h,m=(d*s-f*i)/h;if(p>0&&p<1&&m>0&&m<1){e.splice(t+1,n-t,[r[0]+p*i,r[1]+p*s]);break}}return e}function tI(e,t){let n=e.findIndex(e=>e[0]>t);if(n<1)return n<0?e:[];let r=e[n-1],a=e[n],l=(t-r[0])/(a[0]-r[0]);return[...e.slice(0,n),[t,r[1]+(a[1]-r[1])*l]]}function tN(e){let t,n=M(w(100,180,(t=x(e/.7,0,1))*t*(3-2*t)));return{c:[w(48,11,e),w(8,0,e),w(6.5,30,Math.sin(e*Math.PI/2))],w:[Math.cos(n),Math.sin(n),0],u:[-Math.sin(n),Math.cos(n),0]}}var tj=({stage:e,svg:t,read:n},r)=>{let a=ep(),l=A(45,.5,2.8),o=Math.sqrt(1-l.k*l.k),i=[Math.sin(l.az)*o,Math.cos(l.az)*o,l.k],s=(e,t)=>e[0]*t[0]+e[1]*t[1]+e[2]*t[2],u=(e,t,n,r)=>[e.c[0]+t*e.u[0]+r*e.w[0],e.c[1]+t*e.u[1]+r*e.w[1],e.c[2]+n],c=[];for(let e of[0,-3])for(let t of[-21,21])for(let n of[9,51])c.push([e,t,n]);for(let e of[0,1]){let t=tN(e);for(let e of[-11,11])for(let n of[-6.5,6.5])for(let r of[11,-25])c.push(u(t,e,n,r))}T(l,c,200,166);let d=R(l),f=e=>d(e[0],e[1],e[2]),h=K("g",{},t),p=L(-21,9,21,51,7,6),m=L(-19.6,10.4,19.6,49.6,5.6,6);Q(J(h),{sil:E(I(p.map(e=>d(0,e.u,e.v)).concat(p.map(e=>d(-3,e.u,e.v))))),crease:S(D(m,e=>e.nu*i[1]+e.nv*i[2]>0).map(e=>d(0,e.u,e.v)))}),K("path",{class:"nf lo",d:E(O(13,48).map(e=>d(0,e.u,30+e.v)))},h),K("path",{class:"nf",d:[-8,8].map(e=>E(O(2.6,16).map(t=>d(0,e+t.u,30+t.v)))).join("")},h);let g=K("g",{},t),v=K("path",{class:"sil"},g),y=K("path",{class:"sil"},g),b=J(g),w=K("path",{class:"sil hi"},g),k=O(4.6,16),C=O(3,16),N=(e,t,n,r)=>[0,30,60,90].map(a=>[e(t*(1-Math.sin(M(a)))),n+r*t*(1-Math.cos(M(a)))]),j=e=>L(-11+e,-6.5+e,11-e,6.5-e,4.5-e),$=e=>O(2-e,12),F=j(2),z=[...N(j,2,0,-1),...N(j,2,-18,1)],V=[[$(0),0],...N($,1.6,11,-1)],B=(e,t,n=0)=>E(I(t.flatMap(([t,r])=>t.map(t=>f(u(e,n+t.u,t.v,r)))))),_=[...P(l,440,150,1.8),1.8],X=!0,q=NaN,U=H(0,{eps:.002});function Y(){if(U.x===q)return;q=U.x;let e=tN(U.x),t=s(e.w,i)>0,n=s(e.u,i);t!==X&&(X=t,g.append(...X?[v,y,b.g,w]:[w,b.g,v,y]));let r=X?0:-18;Q(b,{sil:B(e,z),crease:S(D(F,e=>e.nu*n+e.nv*i[2]>0).map(t=>f(u(e,t.u,t.v,r))))}),w.setAttribute("d",[-8,8].map(t=>B(e,V,t)).join("")),y.setAttribute("d",B(e,[[k,-18],[C,-25]]));let a=u(e,0,0,-23),l=u(e,0,0,-51),o=[];for(let e=0;e<=40;e++){let t=e/40,n=(1-t)**3,r=3*(1-t)**2*t,i=3*(1-t)*t*t,s=t**3;o.push(d(n*a[0]+r*l[0]+66*i+s*_[0],n*a[1]+r*l[1]+-44*i+s*_[1],n*a[2]+r*l[2]+1.8*i+s*_[2]))}v.setAttribute("d",function(e,t,n){let r=e.length,a=[],l=[];for(let t=0;t<r;t++){let n=e[Math.max(t-1,0)],o=e[t],i=e[Math.min(t+1,r-1)],s=i[0]-n[0],u=i[1]-n[1],c=Math.hypot(s,u)||1;s/=c,u/=c,a.push([o[0]-5.04*u,o[1]+5.04*s]),l.push([o[0]+5.04*u,o[1]-5.04*s])}return S([...tI(tO(l),398).reverse(),...(e=>{let t=[];for(let n=7;n>=1;n--){let r=Math.PI*n/8;t.push([e[0]+5.04*Math.cos(r),e[1]+2.52*Math.sin(r)])}return t}
1)(e[0]),...tI(tO(a),398)])}(o,5.04,0))}let G=ef(e,e=>{let t=W(U,e);return Y(),t});a.add(G.unregister);let Z=f(tN(0).c),ee=d(0,0,30),et=[ee[0]-Z[0],ee[1]-Z[1]],en=et[0]*et[0]+et[1]*et[1],er=r,ea=-1;function el(){U.t=ea<0?0:Math.min(ea,er);let e=u(tN(U.t),0,0,11);n.textContent=ea<0?"rest":`gap ${Math.round(Math.hypot(e[0],e[1],e[2]-30))} \xb7 0 V`,G.wake()}return el(),Y(),a.add(eh(e,{move:e=>{ea=x(((e[0]-Z[0])*et[0]+(e[1]-Z[1])*et[1])/en,0,1),el()},leave:()=>{ea=-1,el()}})),a.add(()=>t.replaceChildren()),{set:e=>{er=e,el()},destroy:a.dispose}},tD=[-Math.SQRT1_2,-Math.SQRT1_2],t$=(()=>{let e=[];for(let t=0;t<=30;t++){let n=M(200+-235*t/30);e.push([16*Math.cos(n),66+16*Math.sin(n)])}let t=e[e.length-1],n=M(-35),r=[Math.sin(n),-Math.cos(n)],a=[t[0]+10*r[0],t[1]+10*r[1]];for(let n=1;n<=20;n++){let r=n/20,l=1-r;e.push([l*l*l*t[0]+3*l*l*r*a[0]+3*l*r*r*0,l*l*l*t[1]+3*l*l*r*a[1]+3*l*r*r*48+r*r*r*38])}return e.push([0,29]),e})();function tF(e){for(let t=0;t<e.length-3;t++)for(let n=e.length-2;n>t+1;n--){let r=function(e,t,n,r){let a=t[0]-e[0],l=t[1]-e[1],o=r[0]-n[0],i=r[1]-n[1],s=n[0]-e[0],u=n[1]-e[1],c=a*i-l*o;if(!c)return null;let d=(s*i-u*o)/c,f=(s*l-u*a)/c;return d>0&&d<1&&f>0&&f<1?[e[0]+d*a,e[1]+d*l]:null}(e[t],e[t+1],e[n],e[n+1]);if(r){e.splice(t+1,n-t,r);break}}return e}var tz=({stage:e,svg:t,read:n},r)=>{let a=ep(),l=g.query[2],o=r,i=!1,s=e=>{let t=M(-45-e),n=Math.cos(t),r=Math.sin(t);return(e,t)=>[e*n,e*r,t]},u=A(45,.5,2.6),c=[[-27,0,0],[27,0,0],[0,-27,0],[0,27,0]];for(let e of[-l,-l/2,0,l/2,l])for(let t of t$){let n=s(e)(t[0],t[1]);c.push([n[0],n[1],n[2]+4.3],[n[0],n[1],n[2]-4.3])}T(u,c,200,166),u.ox+=200-R(u)(0,0,0)[0];let d=R(u),f=j(u),h=K("g",{},t);Q(J(h),$(d,f,O(27,72),O(25.4,72),0,6));let p=J(h),m=O(6*2.6,40),v=O(9.672,40).slice(23,31),y=K("path",{class:"sil"},h),b=K("path",{class:"nf lo"},h),w=()=>-Math.min(36,.9*o),k=H(w()),C=H(w(),{k:36,c:7}),P=NaN,L=NaN,I=ef(e,e=>{C.t=k.x;let t=W(k,e),n=W(C,e);return!function(){if(k.x!==P){P=k.x;let e=s(k.x),t=t$.map(t=>d(...e(t[0],t[1])));y.setAttribute("d",function(e,t){let n,r,a,l=e.length,o=[],i=[],s=[];for(let t=0;t<l;t++){let n=e[Math.max(t-1,0)],r=e[t],a=e[Math.min(t+1,l-1)],u=Math.hypot(r[0]-n[0],r[1]-n[1])||1,c=Math.hypot(a[0]-r[0],a[1]-r[1])||1,d=(r[0]-n[0])/u+(a[0]-r[0])/c,f=(r[1]-n[1])/u+(a[1]-r[1])/c,h=Math.hypot(d,f)||1;d/=h,f/=h,s.push([d,f]),o.push([r[0]-11.18*f,r[1]+11.18*d]),i.push([r[0]+11.18*f,r[1]-11.18*d])}return E([...tF(o),...(n=e[l-1],Array.from({length:7},(e,t)=>{let r=Math.PI*(7-t)/8;return[n[0]+11.18*Math.cos(r),n[1]+5.59*Math.sin(r)]})),...tF(i).reverse(),...(r=e[0],a=s[0],Array.from({length:9},(e,t)=>{let n=Math.PI*(t+1)/10,l=-Math.cos(n),o=-Math.sin(n);return[r[0]+11.18*(-a[1]*l+a[0]*o),r[1]+11.18*(a[0]*l+a[1]*o)]}))])}(t,11.18)),b.setAttribute("d",S(t.slice(2,28).map((e,n)=>{var r,a;let l,o,i,s,u,c;return a=4.472,l=t[Math.max((r=2+n)-1,0)],i=Math.hypot((o=t[Math.min(r+1,t.length-1)])[0]-l[0],o[1]-l[1])||1,s=-(o[1]-l[1])/i,u=(o[0]-l[0])/i,c=a*(s*tD[0]+u*tD[1]),[t[r][0]+s*c,t[r][1]+u*c]})))}let e=k.x-C.x;if(e!==L){L=e;let t=d(...s(C.x)(x(.2*e,-4,4),12));Q(p,{sil:E(m.map(e=>[t[0]+e.u,t[1]+e.v])),crease:S(v.map(e=>[t[0]+e.u,t[1]+e.v]))})}}(),t||n});a.add(I.unregister);let N=d(0,0,0)[0],D=N;function F(){k.t=i?o*x((D-N)/150,-1,1):w(),n.textContent=i?`turn ${Math.abs(Math.round(k.t))}\xb0 \xb7 0`:"rest",p.sil.classList.toggle("hi",!i),y.classList.toggle("hi",i),I.wake()}return F(),a.add(eh(e,{move:e=>{i=!0,D=e[0],F()},leave:()=>{i=!1,F()}})),a.add(()=>t.replaceChildren()),{set:e=>{o=e,F()},destroy:a.dispose}},tV=[4,-7,2,13,-3,6,-9],tB=V([[0,9],[25,21],[25,25],[-25,25],[-25,21]],[4,2,2,2,2],5),t_=V([[0,14],[15,21.5],[-15,21.5]],[2,1.2,1.2],4),tH=[[0,9],[0,5],...Array.from({length:10},(e,t)=>{let n=M(120-20*t);return[3.4*Math.sin(n),-(3.4*Math.cos(n))]})],tW=({stage:e,svg:t,read:n},r)=>{let a=ep(),l=A(45,.5,1.9);T(l,[[0,-17,0],[132,-17,0],[0,17,0],[132,17,0],[0,0,98],[132,0,98],[0,-30,62],[132,30,62]],200,166);let o=R(l),i=j(l),s=K("g",{},t),u=(e,t,n,r,a,l,u)=>{let[c,d]=F(e,t,n,r,a,.7);Q(J(s),$(o,i,c,d,l,u))};u(-3.2,-17,3.2,17,2.2,0,3),u(-2.2,-2.2,2.2,2.2,1.4,3,96);let c=Array.from({length:7},()=>J(s));u(0,-2,132,2,2,90,94);let d=c.map(()=>K("path",{class:"nf"},s));u(128.8,-17,135.2,17,2.2,0,3),u(129.8,-2.2,134.2,2.2,1.4,3,96);let f=tV.map(e=>H(e,{k:60,c:6,eps:.02})),h=tV.map(()=>NaN);function p(){f.forEach((e,t)=>{if(e.x===h[t])return;h[t]=e.x;let n=Math.cos(M(e.x)),r=Math.sin(M(e.x)),a=21+15*t,l=(e,t)=>
1o(a+t,e[0]*n+e[1]*r,92-(e[1]*n-e[0]*r));Q(c[t],{sil:E(I(tB.map(e=>l(e,0)).concat(tB.map(e=>l(e,1.8))))),crease:E(t_.map(e=>l(e,1.8)))}),d[t].setAttribute("d",S(tH.map(e=>l(e,.9))))})}let m=ef(e,e=>{let t=!1;for(let n of f)t=W(n,e)||t;return p(),t});a.add(m.unregister);let g=tV.map((e,t)=>o(21+15*t,0,75)[0]),v=r,y=-2,b=1;function w(e){y=e,f.forEach((t,n)=>{let r=e<0?0:x(1-Math.abs(n-e)/(v+.5),0,1);t.t=tV[n]-22*r*r*(n===e?b:Math.sign(n-e))}),c.forEach((t,n)=>t.sil.classList.toggle("hi",n===(e<0?3:e))),n.textContent=e<0?"rest":`hanger ${e+1} \xb7 0`,m.wake()}return w(-1),p(),a.add(eh(e,{move:e=>{let t=g.reduce((t,n,r)=>Math.abs(e[0]-n)<Math.abs(e[0]-g[t])?r:t,0);b=e[0]<g[t]?1:-1,w(t)},leave:()=>w(-1)})),a.add(()=>t.replaceChildren()),{set:e=>{v=e,w(y<0?-1:y)},destroy:a.dispose}},tX=[6,31,56],tq=e=>e[0][0]<=e[e.length-1][0]?e:e.slice().reverse(),tU=({stage:e,svg:t,read:n},r)=>{let a,l,o,i,s,u,c,d,f=ep(),h=r,{P:p,front:m,outer:g,inner:v}=(T(a=A(45,.5,1.62),[[-5,-9,0],[89,100,-8],[89,-9,0],[-5,100,0],[-5,-9,61],[89,-9,77]],200,166),{C:l=a,P:R(l),front:j(l),...{outer:L(-5,-9,89,100,6,6),inner:L(-2.6,-6.6,86.6,97.6,3.6,6)}}),y=(o=[[E(I(N(p,g,0).concat(N(p,g,20)))),"sil"],[E(N(p,v,20)),"nf"],[S(N(p,D(v,e=>!m(e)),2.5)),"nf lo"]],i=tq(N(p,D(v,m),20)),s=tq(N(p,D(g,m),20)),u=tq(N(p,D(g,m),0)),c=42,d=e=>e.map(e=>p(e.u,100,e.v)),{far:o,near:[[E([...i,s[s.length-1],...u.slice().reverse(),s[0]]),"fo"],[S(s),"nf lo"],[S(i),"nf"],[S([s[0],...u,s[s.length-1]]),"nf sil"],[E(d(L(c-11,6.5,c+11,12.5,3,5))),"nf"],[E(d(L(c-9.4,8,c+9.4,11,1.5,5))),"nf lo"]]}),b=K("g",{},t);for(let[e,n]of(en(t,b,p,m,g,0,14),y.far))K("path",{d:e,class:n},b);let w=[];for(let e=0;e<8;e++){let{n:t,t0:n,shape:r}=function(e){let t=tX[(7-e)%3],n=V([[0,0],[84,0],[84,54],[t+22,54],[t+22,61],[t,61],[t,54],[0,54]],[1,1,3.2,1.8,2.4,2.4,1.8,3.2]);return{n:8-e,t0:t,shape:n}}(e),a=K("g",{},b),l=K("path",{class:"lo"},a),o=K("path",{class:"sil"},a),i=K("path",{class:"nf"},a),s=K("path",{class:"nf lo"},a),u=[];for(let e=0;e<8;e++)u.push(K("circle",{r:1.05,class:"dot "+(e===t-1?"m":"off")},a));w.push({n:t,t0:n,shape:r,back:l,face:o,head:i,rules:s,punch:u,a:q(-12),z:q(0)})}for(let[e,t]of y.near)K("path",{d:e,class:t},b);let k=e=>p(42,13*e+54*Math.sin(M(-12)),54*Math.cos(M(-12))),P=k(0),O=k(1),$=[O[0]-P[0],O[1]-P[1]],F=p(0,0,0),z=p(1,0,0),B=[z[0]-F[0],z[1]-F[1]],_=$[0]*B[1]-$[1]*B[0],H=ef(e,(e,t)=>{let n=!1;return w.forEach((e,r)=>{var a,l;let o,i;a=U(e.a,t),l=U(e.z,t),o=w[r],i=function(e,t,n,r,a,l){let o=13*t,i=Math.sin(M(a)),s=Math.cos(M(a)),u=(t,n)=>e(t,o+n*i,n*s+l),c=[];for(let e=0;e<8;e++)c.push(u(n+11+(e%4-1.5)*3.6,57.5+(.5-Math.floor(e/4))*2.8));return{back:E(r.map(t=>{let n;return e(t[0],o+(n=t[1])*i-1.4*s,n*s+1.4*i+l)})),face:E(r.map(e=>u(e[0],e[1]))),head:C(u(6,43),u(78,43)),rules:[36,29,22,15].map(e=>C(u(6,e),u(78,e))).join(""),punch:c}}(p,r,o.t0,o.shape,a,l),o.back.setAttribute("d",i.back),o.face.setAttribute("d",i.face),o.head.setAttribute("d",i.head),o.rules.setAttribute("d",i.rules),o.punch.forEach((e,t)=>ee(e,i.punch[t])),G(e.a,t)&&G(e.z,t)||(n=!0)}),n});f.add(H.unregister);let W=-1;function X(e){if(e===W)return;let t=performance.now(),r=e>=0?e:W;W=e,w.forEach((n,a)=>{let l=Math.abs(a-r)*h;Y(n.a,e<0?-12:a<e?-24:20*(a>e),t,l),Y(n.z,16*(e===a),t,l),n.face.classList.toggle("hi",a===e),n.head.classList.toggle("hi",a===e),n.punch[n.n-1].classList.toggle("m",a!==e)}),n.textContent=e<0?"rest":String(8-e).padStart(2,"0"),H.wake()}return f.add(eh(e,{move:e=>X(function([e,t]){let n=e-P[0],r=t-P[1],a=(n*B[1]-r*B[0])/_;return Math.abs(($[0]*r-$[1]*n)/_)>48||a<-.5||a>9?-1:x(Math.round(a),0,7)}(e)),leave:()=>X(-1)})),f.on(e,"keydown",e=>{"ArrowLeft"===e.key||"ArrowDown"===e.key?(X(W<0?7:Math.min(7,W+1)),e.preventDefault()):"ArrowRight"===e.key||"ArrowUp"===e.key?(X(W<0?7:Math.max(0,W-1)),e.preventDefault()):"Escape"===e.key&&W>=0&&(X(-1),e.preventDefault())}),f.on(e,"blur",()=>X(-1)),f.add(()=>t.replaceChildren()),{set:e=>{h=e},destroy:f.dispose}},tY=[18,48,78,108],tG=[-9,3,-4,32],tK=[Math.SQRT1_2,-Math.SQRT1_2],tJ=(e,t,n
1)=>{let r=Math.sin(M(t)),a=Math.cos(M(t));return[tY[e]+tK[0]*r*n,11+tK[1]*r*n,18+a*n]},tQ=({stage:e,svg:t,read:n},r)=>{let a=ep(),l=r,o=null,i=null,s=A(45,.5,1.78),u=[[0,0,0],[124,58,0],[124,0,0],[0,58,0]];tY.forEach((e,t)=>{for(let e of[-44,0,44])u.push(tJ(t,e,58.1))}),T(s,u,200,166);let c=R(s),d=j(s),f=e=>c(e[0],e[1],e[2]),h=c(0,0,0),p=c(tK[0],tK[1],0),m=c(0,0,1),g=Math.hypot(p[0]-h[0],p[1]-h[1]),v=h[1]-m[1],y=K("g",{},t),b=L(0,0,124,58,13,6),M=L(3,3,121,55,10,6),k=L(4.6,4.6,119.4,53.4,8.4,6);Q(J(y),{sil:E(I(N(c,b,0).concat(N(c,M,14)))),crease:S(N(c,D(k,d),14))});for(let e=0;e<6;e++)ee(K("circle",{r:1.05,class:0===e?"dot m":"dot off"},y),c(34+9*e,56.42,7.840000000000001));for(let e=0;e<3;e++)for(let t=0;t<13-e%2;t++)ee(Z(y,s,.5,"dot off"),c(26+e%2*3+6*t,29+5.5*e,14));let P=tY.map((e,t)=>{let n=J(y),r=t=>t.map(t=>({...t,u:t.u+e,v:t.v+11}));return Q(n,$(c,d,r(O(4.6,16)),r(O(4.6-1.1,16)),14,19)),{i:t,el:J(y),sp:H(tG[t],{eps:.05}),drawn:NaN,piv:f(tJ(t,0,0))}}),F=Math.abs(P[1].piv[0]-P[0].piv[0])/g,z=(e,t)=>Array.from({length:20},(n,r)=>[e[0]+t*g*Math.cos(r*Math.PI/10),e[1]+t*g*Math.sin(r*Math.PI/10)]);function V(e){e!==i&&(i?.el.sil.classList.remove("hi"),i=e,e.el.sil.classList.add("hi"))}let B=ef(e,e=>{let t=!1;for(let n of P)W(n.sp,e)&&(t=!0),function(e){let t=e.sp.x;if(t===e.drawn)return;e.drawn=t;let n=f(tJ(e.i,t,0)),r=f(tJ(e.i,t,56)),a=f(tJ(e.i,t,11.76)),l=Math.hypot(r[0]-n[0],r[1]-n[1]),o=[-(r[1]-n[1])/l,(r[0]-n[0])/l],i=w(3.3,2.1,.21)*g-1.1;Q(e.el,{sil:E(I(z(n,3.3).concat(z(r,2.1)))),crease:C([a[0]+o[0]*i,a[1]+o[1]*i],[a[0]-o[0]*i,a[1]-o[1]
1*i])})}(n);return t});function _(){if(o){let e=o,t=P.map(t=>(e[0]-t.piv[0])/g),r=Math.min(...t.map(Math.abs)),a=P[t.findIndex(e=>Math.abs(e)===r)];P.forEach((n,a)=>{let o=Math.sign(t[a])*Math.max(Math.abs(t[a])-3.1,0),i=Math.max((n.piv[1]-e[1])/v,Math.sqrt(Math.max(3136-o*o,0)),0),s=180*Math.atan2(o,i)/Math.PI;n.sp.t=x(s,-44,44)*x(1-(Math.abs(t[a])-r)/F/l,.1,1)}),V(a),n.textContent=`antenna ${a.i+1} \xb7 ${Math.round(Math.abs(a.sp.t))}\xb0`}else P.forEach((e,t)=>{e.sp.t=tG[t]}),V(P[3]),n.textContent="rest";B.wake()}return a.add(B.unregister),V(P[3]),a.add(eh(e,{move:e=>{o=e,_()},leave:()=>{o=null,_()}})),a.add(()=>t.replaceChildren()),{set:e=>{l=e,o&&_()},destroy:a.dispose}},tZ=[-22,-11,0,11,22],t0=(e,t,n)=>{let r=e<0?1:e;return t===r?e<0?.8*n:n:e>=0&&t===r+1?.6*n:2},t1=({stage:e,svg:t,read:n},r)=>{let a=ep(),[,l,o]=g.sieve,i=A(45,.5,2.35),s=43+1.6*o,u=45+.8*l,c=[];for(let[e,t]of[[-36,0],[36,0],[0,-36],[0,36]])c.push([e,t,u-s],[e,t,s]);T(i,c,200,166);let d=R(i),f=d(0,0,0)[1],h=O(36,72),p=O(33.4,72),m=K("g",{},t),v=(e,t)=>I(h.map(t=>d(t.u,t.v,e)).concat(h.map(e=>d(e.u,e.v,t))));Q(J(m),{sil:E(v(0,8)),crease:E(p.map(e=>d(e.u,e.v,8)))});let y=Array.from({length:3},()=>({s:J(m),mesh:K("path",{class:"nf lo"},m)})),b=(e,t)=>Array.from({length:29},(n,r)=>[e[0]+(t[0]-e[0])*r/28,e[1]+(t[1]-e[1])*r/28]),x=tZ.flatMap(e=>[b([e,-36],[e,36]),b([-36,e],[36,e])]);x.push(Array.from({length:73},(e,t)=>{let n=Math.PI/4+t/72*Math.PI*2;return[33.35*Math.cos(n),33.35*Math.sin(n)]}));let w=v(0,11),M=p.map(e=>d(e.u,e.v,11)),k=x.flatMap(e=>((e,t,n)=>{let r=[[]];for(let[t,n]of e){let e=d(t,n,1.6),a=P(i,e[0],e[1],11);33.4>Math.hypot(t,n)&&33.4>Math.hypot(a[0],a[1])?r[r.length-1].push(e):r[r.length-1].length&&r.push([])}return r.filter(e=>e.length>1)})(e,0,0)),C=(e,t)=>e.map(e=>[e[0],e[1]+t]),L=Array.from({length:3},()=>q(2)),N=L.map(()=>NaN),j=-2,D=r;function $(e){let t=8;L.forEach((n,r)=>{if((t+=U(n,e))!==N[r]){N[r]=t;let e=d(0,0,t)[1]-f;Q(y[r].s,{sil:E(C(w,e)),crease:E(C(M,e))}),y[r].mesh.setAttribute("d",k.map(t=>S(C(t,e))).join(""))}t+=11})}let F=ef(e,(e,t)=>($(t),L.some(e=>!G(e,t))));function z(e,t){if(e===j)return;j=e;let r=e<0?1:e;L.forEach((n,a)=>Y(n,t0(e,a,D),t,40*Math.abs(a-r))),y.forEach((e,t)=>e.s.sil.classList.toggle("hi",t===r)),n.textContent=e<0?"rest":`sieve ${3-e} \xb7 0`,F.wake()}a.add(F.unregister),z(-1,-1e9),$(0);let V=()=>{let e=8;return L.map((t,n)=>{let r=d(0,0,(e+=t0(-1,n,D))+5.5)[1];return e+=11,r})},B=V();return a.add(eh(e,{move:e=>z(B.reduce((t,n,r)=>Math.abs(e[1]-n)<Math.abs(e[1]-B[t])?r:t,0),performance.now()),leave:()=>z(-1,performance.now())})),a.add(()=>t.replaceChildren()),{set:e=>{D=e,B=V();let t=j;j=-2,z(t,performance.now())},destroy:a.dispose}},t2=1/9,t4=e=>{let t=x(Math.min(e,1-e)/.08,0,1);return t*t*(3-2*t)},t5=({stage:e,svg:t,read:n},r)=>{let a=ep(),l=r,o=null,i=2.4,s=H(1,{eps:.002}),u=A(45,.5,1.8);T(u,[[0,0,0],[210,26,0],[210,0,0],[0,26,0],[0,0,38],[130.2,-8,38]],200,168);let c=R(u),d=j(u),f=K("g",{},t),[h,p]=F(0,0,210,26,5,1.3);Q(J(f),$(c,d,h,p,0,5));let m=K("path",{class:"nf lo"},f),g=K("g",{},f),v=[];for(let e=0;e<6;e++){let e={...J(g),dots:[]};for(let t=0;t<9;t++)e.dots.push(Z(e.g,u,1,"dot off"));v.push(e)}let y=[[-8,-3,0,34,130.2-5.5],[29,34,0,34,161.7],[-8,34,34,38,164.7]].map(([e,t,n,r,a])=>{let l=J(g),[o,i]=F(128.6,e,130.2+1.6,t,1.4,.6);return Q(l,$(c,d,o,i,n,r)),l.sil.style.transition="none",{el:l,key:a}}),b=Array.from({length:6},()=>H(0,{eps:.03})),x=-1,w="",M=0,E=ef(e,e=>{let t=W(s,e),r=+!B;o||(s.t=r),i+=e*s.x;let a=[];for(let e=0;e<6;e++){let t=e/6+i*t2,n=t-Math.floor(t),r=Math.floor(t);a.push({j:e,x:210*n,s:t4(n),serial:141+6*r+e})}let l=-1;if(o){let e=34;for(let t of a)t.s>.6&&Math.abs(t.x-o[0])<e&&(e=Math.abs(t.x-o[0]),l=t.j)}x=l,b.forEach((n,r)=>{n.t=11*(r===x),W(n,e)&&(t=!0)}),a.sort((e,t)=>e.x-t.x);let f=0,h=0,p=y.map((e,t)=>({id:"g"+t,key:e.key,g:e.el.g}));a.forEach((e,t)=>{let n,r,a=v[t],l=15*e.s,o=e.x-l/2,i=e.x+l/2,s=5+b[e.j].x,m=s+l;if(p.push({id:t,key:e.x+13,g:a.g}),l<.3)return void a.g.setAttribute("visibility","hidden");a.g.removeAttribute("visibility");let[g,y]=F(o,13-l/2,i,13+l/2,2.6*e.s,.9*e.s);Q(a,$(c,d,g,y,s,m));let w=e.j===x;a.sil.classList.toggle("hi",w);let M=.2*l,E=k(.55*e.s*u.S);
1a.dots.forEach((t,n)=>{ee(t,c(e.x+(n%3-1)*M,13+(Math.floor(n/3)-1)*M,m)),t.setAttribute("rx",String(E)),t.setAttribute("ry",String(k(E*u.k))),t.setAttribute("class",e.serial>>n&1?w?"dot":"dot m":"dot off")}),w&&(h=e.serial),f=Math.max(f,(r=(n=e.x-130.2)<0?17.5:8.75,(Math.abs(n)>=r?0:Math.cos(Math.PI/2*(Math.abs(n)/r))**2)*e.s))}),p.sort((e,t)=>e.key-t.key);let E=p.map(e=>e.id).join();E!==w&&(w=E,p.forEach(e=>g.appendChild(e.g)));let S=Math.round(100*f);if(S!==M){M=S;let e=S?`color-mix(in srgb, var(--hl-hi) ${S}%, var(--hl-edge))`:"";y.forEach(t=>{t.el.sil.style.stroke=e})}let A=(i*t2*210%21+21)%21,R=[];for(let e=A;e<210;e+=21)e>5&&e<205&&R.push(C(c(e,4,5),c(e,22,5)));return m.setAttribute("d",R.join("")),n.textContent=`rate ${s.x.toFixed(2)}\xd7`+(x>=0?` \xb7 #${String(h).padStart(4,"0")}`:""),!B||!!o||0!==s.x||t});return a.add(E.unregister),a.add(eh(e,{move:e=>{o=P(u,e[0],e[1],5),s.t=l,E.wake()},leave:()=>{o=null,E.wake()}})),a.add(()=>t.replaceChildren()),{set:e=>{l=e,o&&(s.t=e),E.wake()},destroy:a.dispose}},t6=["0 5 12","2 7 3 9","2 14","4 6 10","4 18","2 3","0 2","0 2 6 8","0 26","0 20","0 11 4","2 9 12","2 5 3 7","4 16","4 8 8","2 4","0 3 14","0 24","0 30","0 17","2 6 11","2 13","0 9 5","0 4 7"],t3=(e,t)=>x(1-e/t,0,1),t8=e=>e*e*(3-2*e),t9=e=>.612*e.nu+.5*e.nv>0,t7=e=>e.map(e=>({...e,v:x(e.v,17,94)})),ne=({stage:e,svg:t,read:n},r)=>{let a=ep(),l=A(45,.5,1.62),o=(e,t,n)=>[e,n,t];T(l,[o(0,0,-3),o(150,0,-3),o(0,111,-3),o(150,111,-3),o(150,0,3.4+2.8),o(0,111,4.7),o(11,90,7.3)],200,166);let i=R(l),s=(e,t,n)=>i(e,n,t),u=r,c=null,d=[],f=K("g",{},t),[h,p]=F(0,0,150,111,9,2);Q(J(f),$(s,t9,h,p,-3,0));let m=t6.map((e,t)=>{let[n,...r]=e.split(" ").map(Number),a=[],l=n;for(let e of r){let t=11+3.9*l;a.push({x0:t,x1:t+3.9*e-1.4,el:J(f)}),l+=e+1}return{j:t,segs:a,sp:H(0,{eps:.01}),drawn:""}}),[g,v]=F(2.5,2.5,147.5,17,6,1.4);Q(J(f),$(s,t9,g,v,0,3.4));let y=K("path",{d:E(V([[0,6.2],[8.5,0],[0,-6.2],[0,-3.1],[4.25,0],[0,3.1]],[.9,1.1,.9,.5,.6,.5]).map(([e,t])=>s(11+e,9.75+t,3.4))),class:"nf"},f),[b,w]=F(24,4.55,29.85,14.95,1.2,.8),M=J(f);Q(M,$(s,t9,b,w,3.4,3.4+2.8));let[k,C]=F(2.5,94,147.5,108.5,6,1.4);Q(J(f),$(s,t9,k,C,0,3.4));for(let e=0;e<3;e++){let t=11+8.5*e,n=101.25,[r,a]=F(t-2.8,98.45,t+2.8,104.05,2.8,.8);Q(J(f),$(s,t9,r,a,3.4,4.7))}let S=H(14.4,{eps:.002}),P=ef(e,e=>{let t=W(S,e);for(let n of m)W(n.sp,e)&&(t=!0),function(e,t){let n=t+"|"+e.sp.x;if(n===e.drawn)return;e.drawn=n;let r=94-(e.j-t+.5)*11,a=Math.max(r-2.1,17),l=Math.min(r+2.1,94),o=t8(x((94-r-2.1)/4,0,1))*t8(x((r-2.1-17)/4,0,1)),i=e.sp.x*o;for(let t of e.segs){if(l-a<.05){Q(t.el,{sil:"",crease:""});continue}let e=t7(L(t.x0,r-2.1,t.x1,r+2.1,2.1,4)),n=t7(L(t.x0+.7,r-2.1+.7,t.x1-.7,r+2.1-.7,2.1-.7,4));Q(t.el,$(s,t9,e,n,i,i+1.8))}}(n,S.x);return t});function O([e,t],n){let r=s(0,0,n),a=s(1,0,n),l=s(0,1,n),o=a[0]-r[0],i=a[1]-r[1],u=l[0]-r[0],c=l[1]-r[1],d=o*c-i*u;return[((e-r[0])*c-(t-r[1])*u)/d,(o*(t-r[1])-i*(e-r[0]))/d]}function I(){let e,t,r=u;for(let a of(null===c?(e=14.4,t=18,r=2,n.textContent="rest"):"prompt"===c?(e=17,t=-1,n.textContent="prompt"):(e=17*c,n.textContent="line "+(37+(t=x(Math.round(23*c),Math.ceil(e),Math.floor(e+7-1))))),S.t=e,m))a.sp.t=t<0?0:5.5*t3(Math.abs(a.j-t),r);var a=t<0?[M.sil,y]:m[t].segs.map(e=>e.el.sil);for(let e of d)e.classList.remove("hi");for(let e of d=a)e.classList.add("hi");P.wake()}for(let e of(a.add(P.unregister),I(),m))e.sp.x=e.sp.t;return a.add(eh(e,{move:e=>{c=function(e){let t=O(e,3.4),n=e=>e[0]>2.5&&e[0]<147.5;if(n(t)&&t[1]>2.5&&t[1]<17)return"prompt";if(n(t)&&t[1]>94&&t[1]<108.5)return 0;let r=O(e,0);return r[0]<0||r[0]>150||r[1]<0||r[1]>111?null:r[1]<=17?"prompt":x((88.5-r[1])/66,0,1)}(e),I()},leave:()=>{c=null,I()}})),a.add(()=>t.replaceChildren()),{set:e=>{u=e,null!==c&&I()},destroy:a.dispose}},nt=e=>e<=0?1:e<=.417?1-e/.417*.6875:e<=1?.3125-(e-.417)/.583*.2185:.094,nn=({stage:e,svg:t,read:n},r)=>{let a=ep(),l=A(45,.5,1.58);T(l,[[-6,-6,-5],[132,132,-5],[132,-6,-5],[-6,132,-5],[0,0,43.5]],200,166);let o=R(l),i=j(l),s=14*r,u=null,c=K("g",{},t),d=[],[f,h]=F(-6,-6,132,132,9,2.2);Q(J(c),$(o,i,f,h,-5,0));for(let e=0;e<=16;e++)for(let t=0;t<9;t++){let n=e-t;if(n<0||n>=9)continue;
1let r=t/8,a=n/8,l=4+25*Math.exp(-((r-.22)**2+(a-.74)**2)/.07)+12*Math.exp(-((r-.8)**2+(a-.26)**2)/.035),o=14*t+1.5,i=14*n+1.5,[s,u]=F(o,i,o+11,i+11,2.6,.9);d.push({i:t,j:n,h0:l,ring:s,inner:u,sp:H(l,{eps:.04}),el:J(c),drawn:NaN})}let p=K("g",{},c),m=[];for(let e=0;e<9;e++)m.push(Z(p,l,.55,4===e?"dot":"dot m"));let g=d.reduce((e,t)=>t.h0>e.h0?t:e),v=new Map;d.forEach(e=>v.set(e.i+","+e.j,e));let y=null,b=g,w=ef(e,e=>{let t,n,r,a=!1;for(let t of d)W(t.sp,e)&&(a=!0),function(e){let t=Math.max(.6,e.sp.x);t!==e.drawn&&(e.drawn=t,Q(e.el,$(o,i,e.ring,e.inner,0,t)),e.el.sil.classList.toggle("hi",t>29))}(t);return b!==y&&(y=b).el.g.after(p),t=(y.i+.5)*14,n=(y.j+.5)*14,r=Math.max(.6,y.sp.x),m.forEach((e,a)=>ee(e,o(t+(a%3-1)*2.5,n+(Math.floor(a/3)-1)*2.5,r))),a});function M(){for(let e of d){if(!u){e.sp.t=e.h0;continue}let t=(e.i+.5)*14-u[0],n=(e.j+.5)*14-u[1];e.sp.t=58*nt(Math.hypot(t,n)/s)}if(u){let e=x(Math.floor(u[0]/14),0,8),t=x(Math.floor(u[1]/14),0,8);b=v.get(e+","+t),n.textContent=`cell ${e}\xb7${t}`}else b=g,n.textContent="rest";w.wake()}return a.add(w.unregister),a.add(eh(e,{move:e=>{u=P(l,e[0],e[1],0),M()},leave:()=>{u=null,M()}})),a.add(()=>t.replaceChildren()),{set:e=>{s=14*e,u&&M()},destroy:a.dispose}},nr=[[-42,-42,0,-12,-12,14,0],[-36,-36,14,-18,-18,34,0],[0,-46,0,16,-6,10,1],[24,-32,0,40,-16,44,2],[-44,4,0,-4,18,22,3],[8,6,0,40,38,8,4],[16,14,8,28,26,20,4],[-30,28,0,-16,42,12,5]],na=e=>45+90*Math.round((e-45)/90),nl=(e,t,n)=>(e[0]+e[3])*t+(e[1]+e[4])*n+(e[2]+e[5])*.01,no=({stage:e,svg:t,read:n},r)=>{let a=ep(),l=r,o={a:45,w:0,mode:"rest",tgt:45},i=H(.5,{eps:5e-4}),s=null,u=0,c=-1e9,d=A(45,.5,1.85);d.ox=200,d.oy=184;let f=O(70),h=O(68.5),p=nr.map(e=>{let[t,n]=F(e[0],e[1],e[3],e[4],3,1.1);return{b:e,ring:t,inner:n}}),m=p.find(e=>e.b[5]>=40),g={};p.forEach(e=>{(!g[e.b[6]]||e.b[5]>g[e.b[6]].b[5])&&(g[e.b[6]]=e)});let v={};p.forEach(e=>{0===e.b[2]&&(v[e.b[6]]=[(e.b[0]+e.b[3])/2,(e.b[1]+e.b[4])/2])});let y=K("g",{},t),b=J(y),E=K("path",{class:"nf lo"},y),S=K("path",{class:"nf"},y),P=Z(y,d,1.7,"dot m"),T=K("path",{class:"nf"},y),L=nr.map(()=>J(y)),I=K("g",{},y),N=[];for(let e=0;e<16;e++){let t=Math.floor(e/4),n=e%4,r=t%3==0,a=n%3==0;r&&a||N.push({r:t,q:n,el:Z(I,d,.6,r||a?"dot m":"dot")})}let D=null,z=ef(e,(e,t)=>{let r=function(e,t){if("rest"===o.mode)return!1;let n=Math.max(1,Math.ceil(240*e)),r=e/n;for(let e=0;e<n;e++)"coast"===o.mode?(o.w*=Math.exp(-(1e3*r)/l),o.a+=o.w*r,45>Math.abs(o.w)&&t-c>90&&(o.mode="settle",o.tgt=na(o.a+.2*o.w))):(o.w+=(-90*(o.a-o.tgt)-16*o.w)*r,o.a+=o.w*r);return"settle"===o.mode&&.02>Math.abs(o.a-o.tgt)&&.3>Math.abs(o.w)&&(o.a=o.tgt,o.w=0,o.mode="rest"),"rest"!==o.mode}(e,t);W(i,e)&&(r=!0),d.az=M(o.a),d.k=i.x;let a=R(d),u=j(d),y=Math.cos(d.az),x=Math.sin(d.az);Q(b,$(a,u,f,h,-4,0));let w=[],A=[];for(let e=0;e<360;e+=15){let t=M(e),n=e%90==0,r=n?58:62;(n?A:w).push(C(a(Math.cos(t)*r,Math.sin(t)*r,0),a(65.5*Math.cos(t),65.5*Math.sin(t),0)))}E.setAttribute("d",w.join("")),S.setAttribute("d",A.join("")),ee(P,a(0,-53,0)),P.setAttribute("ry",String(k(1.7*d.S*d.k)));let O=d.oy+70*d.S*d.k+4*d.S*Math.sqrt(1-d.k*d.k);T.setAttribute("d",`M${d.ox-4} ${k(O+10)}L${d.ox} ${k(O+4)}L${d.ox+4} ${k(O+10)}`);let F=-1,z=14;if(null!==s||"rest"!==o.mode)for(let e in v){let[t,n]=v[e],r=180*Math.abs(Math.atan2(t*y-n*x,t*x+n*y))/Math.PI;r<z&&(z=r,F=+e)}(function(e,t,n,r){let a=e.length,l=e.map(e=>(function(e,t,n,r){let a=Math.sqrt(1-r*r),l=1e9,o=-1e9,i=1e9,s=-1e9;for(let u of[e[0],e[3]])for(let c of[e[1],e[4]])for(let d of[e[2],e[5]]){let e=u*n-c*t,f=(u*t+c*n)*r-d*a;l=Math.min(l,e),o=Math.max(o,e),i=Math.min(i,f),s=Math.max(s,f)}return[l,i,o,s]})(e,t,n,r)),o=e.map(()=>[]),i=e.map(()=>0);for(let r=0;r<a;r++)for(let c=0;c<a;c++){let a=l[r],d=l[c];if(r!==c&&!(a[2]<=d[0])&&!(d[2]<=a[0])&&!(a[3]<=d[1])&&!(d[3]<=a[1])){var s,u;s=e[r],u=e[c],(s[6]===u[6]?s[2]<u[2]:s[3]<=u[0]?t>0:u[3]<=s[0]?t<0:s[4]<=u[1]?n>0:u[4]<=s[1]?n<0:nl(s,t,n)<nl(u,t,n))&&(o[r].push(c),i[c]++)}}let c=[],d=e.map(()=>!1),f=0;for(;c.length<a;){let r=-1,l=0;for(;l<2&&r<0;l++)for(let o=0;o<a;o++)!d[o]&&(l||!i[o])&&(r<0||nl(e[o],t,n)<nl(e[r],t,n))&&(r=o);for(let e of(2===l&&f++,d[r]=!0,c.push(r),o[r]))i[e]--}return{order:c,forced:f}})(nr,x,y,d.k).order.forEach((e,t)=>{let n=p[e];Q(L[t],$(a,u,n.ring,n.inner,n.b[2],n.b[5])),L[t].sil.classList.toggle("hi",n===g[F]),n===m&&D!==L[t]&&(D=L[t]).g.after(I)});let[V,B,,_,H,X]=m.b,q=(V+_)/2,U=(B+H)/2;
1return N.forEach(({r:e,q:t,el:n})=>{ee(n,a(q+(t-1.5)*2.6,U+(e-1.5)*2.6,X)),n.setAttribute("ry",String(k(.6*d.S*d.k)))}),n.textContent=`az ${String(Math.round((o.a%360+360)%360)).padStart(3,"0")}\xb0 \xb7 el ${Math.round(180*Math.asin(i.x)/Math.PI)}\xb0`,r});return a.add(z.unregister),a.add(eh(e,{move:e=>{let t=performance.now();if(i.t=w(Math.sin(M(40)),Math.sin(M(20)),x(e[1]/320,0,1)),null!==s){let n=e[0]-s;if(B)o.a-=.9*n;else{let e=n/Math.max(.008,(t-u)/1e3);o.w=x(w(o.w,-(.9*e),.35),-540,540),o.mode="coast"}Math.abs(n)>.5&&(c=t)}s=e[0],u=t,z.wake()},leave:()=>{s=null,i.t=.5,B&&(o.a=na(o.a)),z.wake()}})),a.add(()=>t.replaceChildren()),{set:e=>{l=e,z.wake()},destroy:a.dispose}},ni=[72,26,-20],ns=[Math.SQRT1_2*Math.sqrt(.75),Math.SQRT1_2*Math.sqrt(.75),.5],nu=e=>[Math.cos(e*Math.PI/180),0,Math.sin(e*Math.PI/180)],nc=e=>((e+50)%100+100)%100-50;function nd(e,t,n,r,a,l,o,i,s){let u=(l,o)=>e(t[0]+n[0]*o+r[0]*l.u+a[0]*l.v,t[1]+n[1]*o+r[1]*l.u+a[1]*l.v,t[2]+n[2]*o+r[2]*l.u+a[2]*l.v);return{sil:E(I(l.map(e=>u(e,i)).concat(l.map(e=>u(e,s))))),crease:S(D(o,e=>[0,1,2].reduce((t,n)=>t+(r[n]*e.nu+a[n]*e.nv)*ns[n],0)>0).map(e=>u(e,s)))}}var nf=({stage:e,svg:t,read:n},r)=>{let a=ep(),l=r,o=[0,1,0],i=[1,0,0],s=[0,0,1],u=[0,0,64],c=A(45,.5,1.5);T(c,[[-70,-14,0],[70,-14,0],[-70,-14,130],[70,-14,130],[-70,10,0],[70,0,0],[-70,0,130],[70,0,130]],200,166);let d=R(c),f=K("g",{},t);for(let e of(Q(J(f),nd(d,[0,0,0],o,i,s,L(-70,0,70,130,9,6),L(-68,2,68,128,7,6),-14,0)),Q(J(f),nd(d,[-48,7.700000000000001,0],s,i,o,O(4.6,28),O(4.6-1,28),38,90)),[-15,15]))Q(J(f),nd(d,[0,0,64+e],o,i,s,L(-48,-4,-34,4,3,4),L(-47,-3,-35,3,2,4),1,11.200000000000001));Q(J(f),nd(d,u,o,i,s,O(40,72),O(37.6,72),0,14)),K("path",{class:"nf lo",d:E(O(32,64).map(e=>d(e.u,14,64+e.v)))},f),K("path",{class:"nf",d:C(d(0,14,82.8),d(0,14,87.5))},f);let h=J(f);Q(h,nd(d,u,o,i,s,O(17,56),O(15.6,56),14,18));let p=K("path",{class:"nf lo"},f),m=K("path",{class:"nf"},f),g=K("path",{class:"nf"},f);Q(J(f),nd(d,u,o,i,s,O(6,32),O(5,32),18,24));let v=ni.map(e=>{let t=nu(e),n=nu(e+90),r=J(f),a=J(f);for(let e of(Q(a,nd(d,u,o,t,n,L(50,-6,61,6,3,4),L(51.4,-4.6,59.6,4.6,1.8,4),0,10)),[-3.4,3.4])){let n=55.5+e;ee(K("circle",{r:.9,class:"dot off"},a.g),d(t[0]*n,10,64+t[2]*n))}return{th:e,e:t,t:n,el:r,tw:q(0),drawn:NaN}}),y={a:30,w:0,mode:"rest",tgt:30},b=30,M="",k=null,S=0,P=-1e9,I=!1,N=!1,j=1,D=null,$=NaN;function F(){let e=N?"bolts":I?"dial":"combo";e!==D&&(D=e,v.forEach(t=>t.el.sil.classList.toggle("hi","bolts"===e)),h.sil.classList.toggle("hi","dial"===e),g.classList.toggle("hi","combo"===e))}function z(e,t){N=e,v.forEach((n,r)=>Y(n.tw,+!!e,t,50*Math.abs(r-j))),F()}let V=ef(e,(e,t)=>{let r=function(e,t){if("rest"===y.mode)return!1;let n=Math.max(1,Math.ceil(240*e)),r=e/n;for(let e=0;e<n;e++)"coast"===y.mode?(y.w=y.w*Math.exp(-(1e3*r)/l)-40*Math.sin(y.a/10*2*Math.PI)*r,y.a+=y.w*r,12>Math.abs(y.w)&&t-P>90&&(y.mode="settle",y.tgt=10*Math.round((y.a+.15*y.w)/10))):(y.w+=(-90*(y.a-y.tgt)-16*y.w)*r,y.a+=y.w*r);return"settle"===y.mode&&.01>Math.abs(y.a-y.tgt)&&.2>Math.abs(y.w)&&(y.a=y.tgt=(y.tgt%100+100)%100,y.w=0,y.mode="rest"),"rest"!==y.mode}(e,t),a=Math.abs(nc(y.a-40));!N&&a<.8&&6>Math.abs(y.w)?z(!0,t):N&&a>2.5&&z(!1,t),function(){if(y.a===$)return;$=y.a;let e=[],t=[];for(let n=0;n<100;n+=5){let r=nu(90+(n-y.a)*3.6),a=n%10?13:10.5,l=C(d(r[0]*a,18,64+r[2]*a),d(15.2*r[0],18,64+15.2*r[2]));40===n?g.setAttribute("d",l):(n%10?e:t).push(l)}p.setAttribute("d",e.join("")),m.setAttribute("d",t.join(""))}(),v.forEach(e=>{let n;(n=w(54.5,41.2,U(e.tw,t)))!==e.drawn&&(e.drawn=n,Q(e.el,nd(d,[0,7,64],e.e,e.t,o,O(3.6,24),O(2.7,24),39.8,n))),G(e.tw,t)||(r=!0)});let i=String((Math.round(y.a)%100+100)%100).padStart(2,"0"),s=I||"rest"!==y.mode?`dial ${i}`+(N?" · open":""):"rest";return s!==M&&(n.textContent=M=s),r});a.add(V.unregister);let _=d(0,14,0),H=d(1,14,0),W=d(0,14,1),X=[H[0]-_[0],H[1]-_[1]],Z=[W[0]-_[0],W[1]-_[1]],et=X[0]*Z[1]-X[1]*Z[0];function en(){I=!1,k=null,B&&(b=y.a=(10*Math.round(y.a/10)%100+100)%100,y.w=0,y.mode="rest"),F(),V.wake()}return a.add(eh(e,{move:e=>{let[t,n]=function([e,t]){let n=e-_[0],r=t-_[1];return[(n*Z[1]-r*Z[0])/et,(X[0]*r-X[1]*n)/et-64]}(e),r=Math.hypot(t,n);if(r>71)return en();let a=performance.now(),l=180*Math.atan2(n,t)/Math.PI;
1if(I=!0,j=ni.reduce((e,t,n)=>Math.abs(nc((l-t)/3.6))<Math.abs(nc((l-ni[e])/3.6))?n:e,0),null!==k){let e=-((l-k+540)%360-180)/3.6*x(r/22,0,1);B?(y.a=10*Math.round((b+=e)/10),y.mode="rest"):(y.w=x(w(y.w,e/Math.max(.008,(a-S)/1e3),.35),-150,150),y.mode="coast",b=y.a),Math.abs(e)>.05&&(P=a)}k=l,S=a,F(),V.wake()},leave:en})),F(),a.add(()=>t.replaceChildren()),{set:e=>{l=e,V.wake()},destroy:a.dispose}},nh="undefined"==typeof window?s.useEffect:s.useLayoutEffect;function np(e,t){let n=(0,s.forwardRef)(function(e,n){let{intensity:r,theme:a,label:l,onRead:o,style:u,...c}=e,d=l??e["aria-label"],f=(0,s.useRef)(null),h=(0,s.useRef)(null),p=(0,s.useRef)(o),m=(0,s.useCallback)(e=>{f.current=e,"function"==typeof n?n(e):n&&(n.current=e)},[n]);return nh(()=>{p.current=o}),nh(()=>{let e=t(f.current,{intensity:r,theme:a,label:d,onRead:e=>p.current?.(e)});return h.current=e,()=>{e.destroy(),h.current=null}},[]),nh(()=>{h.current?.update({intensity:r,theme:a,label:d})},[r,a,d]),(0,i.jsx)("div",{...c,ref:m,style:{aspectRatio:"5 / 4",...u}})});return n.displayName=e,n}var nm=np("Riffle",function(e,t){return b({id:"riffle",label:"A tray of eight cards. Hover or use the arrow keys to pull a card.",rest:"rest",engine:tU,focusable:!0},e,t)}),ng=np("Terrain",function(e,t){return b({id:"terrain",label:"Eighty-one pillars on a plinth that rise around the pointer and rest as a dune with two rises.",rest:"rest",engine:nn},e,t)}),nv=np("Exploded",function(e,t){return b({id:"exploded",label:"An app window taken apart into four layers. Moving across opens the gap; moving down picks a layer.",rest:"",engine:eQ},e,t)}),ny=np("Phosphor",function(e,t){return b({id:"phosphor",label:"A seven by seven dot matrix on a floating tile that plays a loop, and fades like phosphor where you paint it.",rest:"loop",engine:tA},e,t)}),nb=np("Slow",function(e,t){return b({id:"slow",label:"Crates riding a belt through a gate. Hovering slows the clock without stopping it.",rest:"rate 1.00×",engine:t5},e,t)}),nx=np("Turntable",function(e,t){return b({id:"turntable",label:"Blocks on a turntable. Flick across it to spin it; it settles on the nearest quarter turn.",rest:"az 045° · el 30°",engine:no},e,t)}),nw=np("Keyboard",function(e,t){return b({id:"keyboard",label:"A sixty-key board. The key under the pointer sinks, and its neighbours follow it down, less the further away.",rest:"rest",engine:e5},e,t)}),nM=np("Elevator",function(e,t){return b({id:"elevator",label:"Four floors beside an open shaft. The pointer's height picks a floor, and the car travels there through the ones between.",rest:"rest",engine:eK},e,t)}),nk=np("Phone",function(e,t){return b({id:"phone",label:"A phone in layers: glass, board, battery, shell. Moving across opens the gap; moving down picks a layer.",rest:"rest",engine:tk},e,t)}),nE=np("Laptop",function(e,t){return b({id:"laptop",label:"A thin laptop: the pointer's height sets how far the lid stands open, and the lid follows it on a spring.",rest:"rest",engine:e3},e,t)}),nC=np("Terminal",function(e,t){return b({id:"terminal",label:"A terminal window: the pointer's height scrolls back through its history, and the line under it lifts off the screen.",rest:"rest",engine:ne},e,t)}),nS=np("Cabinet",function(e,t){return b({id:"cabinet",label:"A rack of twelve blades: the pointer's height pulls the nearest ones out on their rails, the farther the less.",rest:"rest",engine:eP},e,t)}),nA=np("Branches",function(e,t){return b({id:"branches",label:"A commit graph on a board: the commit under the pointer rises, and its history rises after it, the farther back the less.",rest:"rest",engine:eE},e,t)}),nR=np("Vault",function(e,t){return b({id:"vault",label:"A vault door: circling the pointer turns its dial, which coasts and catches every ten; on forty its three bolts draw back.",rest:"rest",engine:nf},e,t)}),nP=np("Lockers",function(e,t){return b({id:"lockers",label:"A bank of twelve lockers, one ajar at rest: the locker under the pointer opens, and the one open before it swings shut.",rest:"rest",engine:tr},e,t)}),nT=np("Loupe",function(e,t){return b({id:"loupe",label:"A stand loupe over a blank ruled sheet: the pointer drags it across, and the rules pass enlarged under the glass with 
1nothing between them.",rest:"rest",engine:tl},e,t)}),nL=np("Padlock",function(e,t){return b({id:"padlock",label:"A padlock: as the pointer nears, the shackle springs up out of the body and swings open about its long leg.",rest:"rest",engine:tu},e,t)}),nO=np("Patch",function(e,t){return b({id:"patch",label:"A patch panel of twenty-four ports: the cable under the pointer lifts, and its neighbours lean away, less the further away.",rest:"rest",engine:tf},e,t)}),nI=np("Dish",function(e,t){return b({id:"dish",label:"A parabolic dish on a two-axis gimbal: the pointer aims it, and it follows on a spring.",rest:"rest",engine:ez},e,t)}),nN=np("Router",function(e,t){return b({id:"router",label:"A wifi router whose antennas lean toward the pointer, the nearest the most and the others less the further away.",rest:"rest",engine:tQ},e,t)}),nj=np("Sieve",function(e,t){return b({id:"sieve",label:"Three test sieves stacked over a pan: the pointer's height picks one, it rises clear of the stack, and every mesh is bare.",rest:"rest",engine:t1},e,t)}),nD=np("Rail",function(e,t){return b({id:"rail",label:"A garment rail with seven bare hangers: the pointer brushes them, and each rocks away from it, the nearest most, and settles.",rest:"rest",engine:tW},e,t)}),n$=np("Plug",function(e,t){return b({id:"plug",label:"A wall socket and a plug lying on the floor at the end of its cord: the pointer draws the plug up toward the socket, and it stops short of it.",rest:"rest",engine:tj},e,t)}),nF=np("Query",function(e,t){return b({id:"query",label:"A question mark built as a solid on a plinth, its dot a loose ball: the hook turns about its stem toward the pointer, and the ball rolls after it.",rest:"rest",engine:tz},e,t)}),nz=np("Drawer",function(e,t){return b({id:"drawer",label:"A filing cabinet of three drawers: the pointer's height picks one, it slides out, and inside are two dividers and nothing between them.",rest:"rest",engine:eB},e,t)}),nV=np("Basket",function(e,t){return b({id:"basket",label:"An empty wire shopping basket under a bail handle: the pointer tilts it toward itself on a spring, so the bare floor shows, and the handle swings after it, late.",rest:"rest",engine:eM},e,t)}),nB=np("Plot",function(e,t){return b({id:"plot",label:"A bar chart with no data: seven flat tabs on its base, before a plate of grid lines. The pointer brushes them, and each lifts a little, the nearest most, and drops back to zero.",rest:"rest",engine:tL},e,t)}),n_=(()=>{var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,r=Object.prototype.hasOwnProperty,a={},l={Cam:()=>p,EASE_LIFT:()=>j,bezier:()=>N,circ:()=>b,clamp:()=>i,css:()=>
1ef,disposer:()=>el,extremes:()=>S,facing:()=>M,fade:()=>q,fillet:()=>A,fit:()=>v,flatDot:()=>H,ghost:()=>R,hull:()=>x,inject:()=>ep,lerp:()=>s,mk:()=>V,open:()=>h,place:()=>W,pointer:()=>ea,poly:()=>d,prism:()=>E,proj:()=>m,put:()=>_,r2:()=>c,rad:()=>u,reducedMotion:()=>L,reflect:()=>U,register:()=>er,ringAt:()=>w,rings:()=>C,rrect:()=>y,run:()=>k,seg:()=>f,setReducedMotion:()=>T,solid:()=>B,spring:()=>O,stepS:()=>I,tdone:()=>z,tset:()=>F,tval:()=>$,tween:()=>D,unproj:()=>g};for(var o in l)e(a,o,{get:l[o],enumerable:!0});var i=(e,t,n)=>Math.max(t,Math.min(n,e)),s=(e,t,n)=>e+(t-e)*n,u=e=>e*Math.PI/180,c=e=>Math.round(100*e)/100,d=e=>"M"+e.map(e=>c(e[0])+" "+c(e[1])).join("L")+"Z",f=(e,t)=>`M${c(e[0])} ${c(e[1])}L${c(t[0])} ${c(t[1])}`,h=e=>e.length<2?"":"M"+e.map(e=>c(e[0])+" "+c(e[1])).join("L"),p=(e,t,n)=>({az:u(e),k:t,S:n,ox:0,oy:0});function m(e){let t=Math.cos(e.az),n=Math.sin(e.az),r=Math.sqrt(1-e.k*e.k);return(a,l,o)=>[e.ox+e.S*(a*t-l*n),e.oy+e.S*((a*n+l*t)*e.k-o*r)]}function g(e,t,n,r){let a=Math.cos(e.az),l=Math.sin(e.az),o=Math.sqrt(1-e.k*e.k),i=(t-e.ox)/e.S,s=((n-e.oy)/e.S+r*o)/e.k;return[i*a+s*l,-i*l+s*a]}function v(e,t,n,r){e.ox=0,e.oy=0;let a=m(e),l=1e9,o=-1e9,i=1e9,s=-1e9;for(let e of t){let t=a(e[0],e[1],e[2]);l=Math.min(l,t[0]),o=Math.max(o,t[0]),i=Math.min(i,t[1]),s=Math.max(s,t[1])}e.ox=n-(l+o)/2,e.oy=r-(i+s)/2}function y(e,t,n,r,a,l=4){a=Math.max(0,Math.min(a,(n-e)/2,(r-t)/2));let o=[];for(let[i,s,c]of[[n-a,r-a,0],[e+a,r-a,90],[e+a,t+a,180],[n-a,t+a,270]])for(let e=0;e<=l;e++){let t=u(c+90*e/l),n=Math.cos(t),r=Math.sin(t);o.push({u:i+a*n,v:s+a*r,nu:n,nv:r})}return o}function b(e,t=96){let n=[];for(let r=0;r<t;r++){let a=r/t*Math.PI*2,l=Math.cos(a),o=Math.sin(a);n.push({u:e*l,v:e*o,nu:l,nv:o})}return n}function x(e){let t=e.slice().sort((e,t)=>e[0]-t[0]||e[1]-t[1]),n=(e,t,n)=>(t[0]-e[0])*(n[1]-e[1])-(t[1]-e[1])*(n[0]-e[0]),r=[],a=[];for(let e of t){for(;r.length>1&&0>=n(r[r.length-2],r[r.length-1],e);)r.pop();r.push(e)}for(let e=t.length-1;e>=0;e--){let r=t[e];for(;a.length>1&&0>=n(a[a.length-2],a[a.length-1],r);)a.pop();a.push(r)}return r.pop(),a.pop(),r.concat(a)}var w=(e,t,n)=>t.map(t=>e(t.u,t.v,n)),M=e=>{let t=Math.sin(e.az),n=Math.cos(e.az);return e=>e.nu*t+e.nv*n>=-1e-6};function k(e,t){let n=e.length,r=-1;for(let a=0;a<n;a++)if(t(e[a])&&!t(e[(a+n-1)%n])){r=a;break}if(r<0)return t(e[0])?e.slice():[];let a=[];for(let l=0;l<n&&t(e[(r+l)%n]);l++)a.push(e[(r+l)%n]);return a}function E(e,t,n,r,a,l){return{sil:d(x(w(e,n,l).concat(w(e,n,a)))),crease:r?h(w(e,k(r,t),l)):""}}var C=(e,t,n,r,a,l)=>[y(e,t,n,r,a),y(e+l,t+l,n-l,r-l,Math.max(.3,a-l))];function S(e,t){let n=t.map(t=>e(t.u,t.v,0)),r=0,a=0,l=0;return n.forEach((e,t)=>{e[0]<n[r][0]&&(r=t),e[0]>n[a][0]&&(a=t),e[1]>n[l][1]&&(l=t)}),[t[r],t[a],t[l]]}function A(e,t,n=4){let r=e.length,a=[];for(let l=0;l<r;l++){let o=e[(l+r-1)%r],i=e[l],s=e[(l+1)%r],u=Math.hypot(o[0]-i[0],o[1]-i[1]),c=Math.hypot(s[0]-i[0],s[1]-i[1]),d=Math.min(t[l],u/2,c/2),f=[i[0]+(o[0]-i[0])/u*d,i[1]+(o[1]-i[1])/u*d],h=[i[0]+(s[0]-i[0])/c*d,i[1]+(s[1]-i[1])/c*d];for(let e=0;e<=n;e++){let t=e/n,r=1-t;a.push([r*r*f[0]+2*r*t*i[0]+t*t*h[0],r*r*f[1]+2*r*t*i[1]+t*t*h[1]])}}return a}function R(e,t,n,r,a){let l=k(n,t),o=w(e,l,r-a);return{d:h(o)+[l[0],l[l.length-1]].map(t=>f(e(t.u,t.v,r),e(t.u,t.v,r-a))).join(""),y0:Math.min(...w(e,l,r).map(e=>e[1])),y1:Math.max(...o.map(e=>e[1]))+2}}var P=!1,T=e=>{P=e},L=()=>P;function O(e,t={}){return{x:e,v:0,t:e,k:t.k??100,c:t.c??18,m:t.m??1,eps:t.eps??.01}}function I(e,t){if(P)return e.x=e.t,e.v=0,!1;let n=Math.max(1,Math.ceil(240*t)),r=t/n;for(let t=0;t<n;t++){let t=(-e.k*(e.x-e.t)-e.c*e.v)/e.m;e.v+=t*r,e.x+=e.v*r}return!(Math.abs(e.x-e.t)<e.eps&&Math.abs(e.v)<10*e.eps)||(e.x=e.t,e.v=0,!1)}function N(e,t,n,r){let a=3*e,l=3*(n-e)-a,o=1-a-l,i=3*t,s=3*(r-t)-i,u=1-i-s,c=e=>((o*e+l)*e+a)*e,d=e=>(3*o*e+2*l)*e+a;return e=>{let t;if(e<=0)return 0;if(e>=1)return 1;let n=e;for(let t=0;t<8;t++){let t=c(n)-e;if(1e-5>Math.abs(t))break;let r=d(n);if(1e-6>Math.abs(r))break;n-=t/r}if(!(n>=0&&n<=1)||Math.abs(c(n)-e)>1e-4){let t=0,r=1;n=e;for(let a=0;a<24;a++)c(n)<e?t=n:r=n,n=(t+r)/2}return((u*(t=n)+s)*t+i)*t}}var j=N(.32,.72,0,1),D=(e,t=700)=>({from:e,to:e,t0:-1e9,dur:t}),$=(e,t)=>{let n=i((t-e.t0)/e.dur,0,1);return e.from+(e.to-e.from)*(P?1:j(n))},F=(e,t,n,r)=>{e.to!==t&&(e.from=$(e,n),e.to=t,e.t0=n+r)},z=(e,t)=>P||t>=e.t0+e.dur;
1function V(e,t,n){let r=document.createElementNS("http://www.w3.org/2000/svg",e);if(t)for(let e in t)r.setAttribute(e,String(t[e]));return n&&n.appendChild(r),r}function B(e){let t=V("g",{},e);return{g:t,sil:V("path",{class:"sil"},t),cr:V("path",{class:"nf lo"},t)}}var _=(e,t)=>{e.sil.setAttribute("d",t.sil),e.cr.setAttribute("d",t.crease)},H=(e,t,n,r)=>V("ellipse",{rx:c(n*t.S),ry:c(n*t.S*t.k),class:r},e),W=(e,t)=>{e.setAttribute("cx",String(c(t[0]))),e.setAttribute("cy",String(c(t[1])))},X=0;function q(e,t,n,r=.7){let a="hl-fd"+ ++X,l=V("defs",{},e),o=V("linearGradient",{id:a+"g",gradientUnits:"userSpaceOnUse",x1:0,y1:c(t),x2:0,y2:c(n)},l);V("stop",{offset:0,"stop-color":"#fff","stop-opacity":r},o),V("stop",{offset:1,"stop-color":"#fff","stop-opacity":0},o);let i=V("mask",{id:a,maskUnits:"userSpaceOnUse",x:0,y:0,width:400,height:320},l);return V("rect",{x:0,y:0,width:400,height:320,fill:`url(#${a}g)`},i),`url(#${a})`}function U(e,t,n,r,a,l,o){let i=R(n,r,a,l,o),s=V("g",{class:"ghost",mask:q(e,i.y0,i.y1)},t);V("path",{d:i.d},s)}var Y=[],G=new Map,K=0,J=0,Q=null,Z=null;function ee(e){let t=Math.min(.05,Math.max(0,(e-J)/1e3));J=e;let n=!1;for(let r of Y.slice())r.vis&&r.awake&&(r.awake=!!r.tick(t,e),n=n||r.awake);K=n?requestAnimationFrame(ee):0}function et(e){e.awake=!0,K||(J=performance.now(),K=requestAnimationFrame(ee))}var en=()=>{T(!!Z?.matches),Y.forEach(et)};function er(e,t){Q||(Q=new IntersectionObserver(e=>{for(let t of e){let e=G.get(t.target);e&&(e.vis=t.isIntersecting,e.vis&&et(e))}},{rootMargin:"80px"}),T((Z=matchMedia("(prefers-reduced-motion: reduce)")).matches),Z.addEventListener("change",en));let n={stage:e,tick:t,vis:!1,awake:!0};Y.push(n),G.set(e,n),Q.observe(e),t(0,performance.now());let r=!1;return{wake:()=>{r||et(n)},unregister:()=>{!r&&(r=!0,Y=Y.filter(e=>e!==n),G.get(e)===n&&(G.delete(e),Q?.unobserve(e)),Y.length||(K&&cancelAnimationFrame(K),K=0,Q?.disconnect(),Q=null,Z?.removeEventListener("change",en),Z=null))}}}function ea(e,t){let n=0,r=t=>{let n=e.getBoundingClientRect();return[(t.clientX-n.left)/n.width*400,(t.clientY-n.top)/n.height*320]},a=e=>{clearTimeout(n),t.move(r(e),e)},l=a=>{clearTimeout(n),"mouse"!==a.pointerType&&e.releasePointerCapture?.(a.pointerId),t.down?t.down(r(a),a):t.move(r(a),a)},o=e=>{clearTimeout(n),n=window.setTimeout(()=>t.leave(e),1400*("mouse"!==e.pointerType))};return e.addEventListener("pointermove",a),e.addEventListener("pointerdown",l),e.addEventListener("pointerleave",o),()=>{clearTimeout(n),e.removeEventListener("pointermove",a),e.removeEventListener("pointerdown",l),e.removeEventListener("pointerleave",o)}}function el(){let e=[];return{add:t=>{e.push(t)},on:(t,n,r,a)=>{t.addEventListener(n,r,a),e.push(()=>t.removeEventListener(n,r,a))},dispose:()=>{let t=e;e=[];for(let e=t.length-1;e>=0;e--)t[e]()}}}var eo={plate:"#ffffff",hi:"#232327",edge:"#a4a4ac",mid:"#c3c3c9",lo:"#e0e0e4"},ei={plate:"#08090a",hi:"#d0d6e0",edge:"#5b5d64",mid:"#3e3e44",lo:"#29292d"},es=["plate","hi","edge","mid","lo"],eu=e=>es.map(t=>`--hl-${t}:var(--hairline-${t},${e[t]});`).join(""),ec="cubic-bezier(0.5,0,0.1,1)",ed=":where([data-hairline]>svg)";function ef(e){let t=Object.fromEntries(es.map(e=>[e,`light-dark(${eo[e]},${ei[e]})`]));return`:where([data-hairline]){display:block;position:relative;aspect-ratio:5/4;touch-action:pan-y;user-select:none;-webkit-user-select:none;--hl-sw:var(--hairline-stroke,0.9);${eu(eo)}}`+(e?`:where([data-hairline]){${eu(t)}}`:"")+`:where(.dark,[data-theme="dark"]) :where([data-hairline]){${eu(ei)}}`+`:where([data-hairline][data-hairline-theme="light"]){${eu(eo)}}`+`:where([data-hairline][data-hairline-theme="dark"]){${eu(ei)}}`+":where([data-hairline]:focus-visible){outline:1.5px solid var(--hl-hi);outline-offset:2px}"+`${ed}{position:absolute;inset:0;width:100%;height:100%;display:block}`+":where([data-hairline]>[data-hairline-live]){position:absolute;width:1px;height:1px;margin:-1px;padding:0;border:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}"+`${ed} :where(path,polygon,ellipse,line){fill:var(--hl-plate);stroke:var(--hl-mid);stroke-width:var(--hl-sw);vector-effect:non-scaling-stroke;stroke-linejoin:round;stroke-linecap:round;transition:stroke 260ms ${ec}}`+`${ed} :where(.nf){fill:none}`+`${ed} :where(.fo){stroke:none}`+`${ed} :where(.sil){stroke:var(--hl-edge)}`+`${ed} :where(.hi){stroke:var(--hl-hi)}`+`${ed} :where(.lo){stroke:var(--hl-lo)}`+`${ed} :where(.dash){stroke-dasharray:1 3}`+`${ed} :where(.dot){stroke:none;
1fill:var(--hl-hi);transition:fill 260ms ${ec}}`+`${ed} :where(.dot.m){fill:var(--hl-edge)}`+`${ed} :where(.dot.off){fill:var(--hl-lo)}`+`${ed} :where(.ghost path){fill:none;stroke:var(--hl-mid)}`}var eh=new WeakSet;function ep(e){if(eh.has(e))return;eh.add(e);let t=9===e.nodeType?e:e.ownerDocument,n=t.defaultView,r=ef(!!n?.CSS?.supports?.("color","light-dark(#000,#fff)"));if(n&&"adoptedStyleSheets"in e)try{let t=new n.CSSStyleSheet;t.replaceSync(r),e.adoptedStyleSheets=[...e.adoptedStyleSheets,t];return}catch{}let a=t.createElement("style");a.setAttribute("data-hairline-style",""),a.textContent=r,(9===e.nodeType?t.head??t.documentElement:e).appendChild(a)}return((a,l,o,i)=>{if(l&&"object"==typeof l||"function"==typeof l)for(let o of n(l))r.call(a,o)||void 0===o||e(a,o,{get:()=>l[o],enumerable:!(i=t(l,o))||i.enumerable});return a})(e({},"__esModule",{value:!0}),a)})();let{Cam:nH,circ:nW,clamp:nX,facing:nq,fillet:nU,fit:nY,open:nG,poly:nK,prism:nJ,proj:nQ,put:nZ,rad:n0,seg:n1,solid:n2,tdone:n4,tset:n5,tval:n6,tween:n3,disposer:n8,mk:n9,pointer:n7,reflect:re,register:rt}=n_,rn=[-36,-4,-24,14,-14,26,-2],rr=(()=>{let e=[[-40,-9]],t=[2.4];for(let n=0;n<=6;n++)e.push([n%2?37.4:40,-9+3*n]),t.push(.3);return e.push([-40,9]),t.push(2.4),nU(e,t,3)})(),ra=[[31,6],[26,6],[21,4],[16,6],[11,3],[-12,6],[-17,5],[-22,6]],{Cam:rl,clamp:ro,fillet:ri,fit:rs,hull:ru,open:rc,poly:rd,proj:rf,rad:rh,rings:rp,rrect:rm,run:rg,prism:rv,seg:ry,unproj:rb,spring:rx,stepS:rw,mk:rM,pointer:rk,put:rE,register:rC,disposer:rS,solid:rA}=n_,rR={spike:{name:"spike",means:"Every settled payment leaves a receipt: point along the spike and one swings out, its neighbours following less.",rules:[1,2,4,6],range:[0,40,90],mount:function({stage:e,svg:t,read:n},r){let a=n8(),l=r,o=nH(45,.5,2.22),i=Math.hypot(40,9),s=[[0,0,71]];for(let e=0;e<8;e++){let t=e*Math.PI/4;s.push([i*Math.cos(t),i*Math.sin(t),14],[i*Math.cos(t),i*Math.sin(t),54],[27*Math.cos(t),27*Math.sin(t),0])}nY(o,s,200,166);let u=nQ(o),c=nq(o),d=n9("g",{},t),f=nW(27,40),h=nW(5,24);re(t,d,u,c,f,0,14),nZ(n2(d),nJ(u,c,f,nW(25,40),0,7)),nZ(n2(d),nJ(u,c,h,nW(4,24),7,10));let p=1.1/Math.SQRT2;function m(e,t){n9("path",{d:nK([u(p,-p,e),u(p,-p,t),u(-p,p,t),u(-p,p,e)]),class:"fo"},d),n9("path",{d:n1(u(p,-p,e),u(p,-p,t))+n1(u(-p,p,e),u(-p,p,t)),class:"nf sil"},d)}m(10,15);let g=[];for(let e=0;e<7;e++){let t=15+6.5*e,n=n9("g",{},d),r=n9("path",{class:"lo"},n),a=n9("path",{class:"sil"},n),l=n9("path",{class:"nf lo"},n),o=n9("path",{class:"nf"},n);g.push({z:t,back:r,face:a,rows:l,total:o,a:n3(rn[e]),last:NaN}),m(t,e<6?t+6.5:57)}let v=[u(p,-p,57),u(0,0,71),u(-p,p,57)];n9("path",{d:nK(v),class:"fo"},d),n9("path",{d:nG(v),class:"nf sil"},d),g[6].total.classList.add("hi");let y=g.map(e=>u(0,0,e.z)[1]),b=u(0,0,0)[0],x=y[0]-y[1],w=u(i,-i,0)[0]-b,M=rt(e,(e,t)=>{let n=!1;for(let e of g){let r=n6(e.a,t);if(r!==e.last){let t=function(e,t,n){let r=Math.cos(n0(n)),a=Math.sin(n0(n)),l=(t,n,l)=>e(t*r-n*a,t*a+n*r,l);return{back:nK(rr.map(e=>l(e[0],e[1],t-1))),face:nK(rr.map(e=>l(e[0],e[1],t))),rows:ra.map(([e,n])=>n1(l(e,-n,t),l(e,n,t))).join(""),total:n1(l(-31,-6.5,t),l(-31,6.5,t))+n1(l(-34.5,1.5,t),l(-34.5,6.5,t))}}(u,e.z,r);e.back.setAttribute("d",t.back),e.face.setAttribute("d",t.face),e.rows.setAttribute("d",t.rows),e.total.setAttribute("d",t.total),e.last=r}n4(e.a,t)||(n=!0)}return n});a.add(M.unregister);let k=-1;function E(e){if(e===k)return;let t=performance.now(),r=e>=0?e:k;k=e,g.forEach((n,a)=>{let o=e<0?0:nX(1-.38*Math.abs(a-e),.1,1);n5(n.a,rn[a]+72*o,t,Math.abs(a-r)*l),n.face.classList.toggle("hi",a===e),n.total.classList.toggle("hi",e<0?6===a:a===e)}),n.textContent=e<0?"rest":"receipt "+String(e+1).padStart(2,"0"),M.wake()}return a.add(n7(e,{move:e=>E(function([e,t]){return Math.abs(e-b)>w||t>y[0]+x||t<y[6]-x?-1:nX(Math.round((y[0]-t)/x),0,6)}(e)),leave:()=>E(-1)})),a.add(()=>t.replaceChildren()),{set:e=>{l=e},destroy:a.dispose}}},toll:{name:"toll",means:"A boom barrier lifts as a payer nears the pay box: 402 while it is down, 200 once it opens.",rules:[1,3,5,8,9],range:[40,65,85],mount:function({stage:e,svg:t,read:n}
1,r){let a=rS(),l=rl(45,.5,2.3),o=r,i=null,s=(e,t,n,r)=>{let a=Math.cos(rh(r)),l=Math.sin(rh(r));return[62+t,-10+e*a-n*l,24+e*l+n*a]},u=[];for(let e of[-15,60])for(let t of[-4,4])u.push(s(e,2.5,t,85),s(e,-2.5,t,0));rs(l,[[0,-26,-5],[100,54,-5],[100,-26,-5],[0,54,-5],[62,-10,30],...u],200,166);let c=rf(l),d=(e,t,n,r)=>c(...s(e,t,n,r)),f=c(0,0,0),h=c(1,0,0),p=c(0,1,0),m=c(0,0,1),g=[h[0]-f[0],p[0]-f[0],m[0]-f[0]],v=[h[1]-f[1],p[1]-f[1],m[1]-f[1]],y=[g[1]*v[2]-g[2]*v[1],g[2]*v[0]-g[0]*v[2],g[0]*v[1]-g[1]*v[0]];y[2]<0&&(y=y.map(e=>-e));let b=e=>e.nu*y[0]+e.nv*y[1]>0;function x(e,t,n,r,a,l,o,i,s){let u=Math.cos(rh(s)),c=Math.sin(rh(s)),f=rm(e,n,t,r,o,4),h=rm(e+i,n+i,t-i,r-i,o-i,4),p=-c*y[1]+u*y[2]>0?l:a,m=(e,t)=>e.map(e=>d(e.u,e.v,t,s));return{sil:rd(ru(m(f,a).concat(m(f,l)))),crease:rc(m(rg(h,e=>e.nv*y[0]+e.nu*(u*y[1]+c*y[2])>0),p)),cap:p}}let w=(e,t,n,r,a,l,o,i,s)=>{let[u,d]=rp(t,n,r,a,l,o),f=rA(e);return rE(f,rv(c,b,u,d,i,s)),f},M=rM("g",{},t);w(M,0,-26,100,54,9,2.2,-5,0),rM("path",{class:"nf lo",d:ry(c(4,-3,0),c(96,-3,0))+ry(c(48,-1,0),c(48,50,0))},M),w(M,21,-22,34,-12,2.4,1,0,21);let k=(e,t,n,r,a)=>rd(ri([c(e,-12,n),c(t,-12,n),c(t,-12,r),c(e,-12,r)],[a,a,a,a]));rM("path",{class:"nf lo",d:k(24.5,30.5,14.5,18,.8)},M);let E=rM("path",{class:"nf hi",d:k(25,30,9.6,11.2,.6)},M);w(M,53,-14,59,-6,2,.8,0,31),w(M,57,43,67,49,2,.8,0,21.5),w(M,56.6,43.6,59,48.4,.9,.5,21.5,28);let C=rA(M),S=rA(M),A=rM("path",{class:"nf lo"},M),R=[];for(let e=0;e<16;e++)R.push(c(65.1,-10+2.4*Math.cos(e*Math.PI/8),24+2.4*Math.sin(e*Math.PI/8)));rM("path",{class:"sil",d:rd(R)},M),w(M,65,43.6,67.4,48.4,.9,.5,21.5,28);let P=rx(0,{eps:.05}),T=NaN,L=rC(e,e=>{let t=rw(P,e);return!function(){let e=Math.max(0,P.x);if(e===T)return;T=e;let t=x(-6,60,-2.5,2.5,-2.5,2.5,2.5,.8,e);rE(C,t),rE(S,x(-15,-4,-3,3.5,-3.5,4,2,.9,e));let n="";for(let r of[17,19.5,33,35.5,48.5,51])n+=rc([d(r,-1.9,t.cap,e),d(r,2.5,t.cap,e),d(r,2.5,-t.cap,e)]);A.setAttribute("d",n)}(),t});function O(){let e;P.t=i?o*(1-(e=ro((Math.abs(i[0]-28)/50-.3)/.7,0,1))*e*(3-2*e)):0;let t=!!i&&P.t>o/2;E.classList.toggle("hi",!t),E.classList.toggle("lo",t),C.sil.classList.toggle("hi",t),n.textContent=i?t?"200":"402":"rest",L.wake()}return a.add(L.unregister),C.sil.classList.add("sil"),O(),a.add(rk(e,{move:e=>{i=rb(l,e[0],e[1],0),O()},leave:()=>{i=null,O()}})),a.add(()=>t.replaceChildren()),{set:e=>{o=e,O()},destroy:a.dispose}}}};function rP(e,t){let[n,r,a]=e,l=Math.min(1,Math.max(0,t));return l<=.5?n+l/.5*(r-n):r+(l-.5)/.5*(a-r)}function rT({name:e,intensity:t=.5,label:n,onRead:r,className:a}){let l=s.useRef(null),o=s.useRef(null),u=s.useRef(r);s.useEffect(()=>{u.current=r},[r]);let c=rR[e];return s.useLayoutEffect(()=>{let e=l.current;if(!e)return;n_.inject(document);let n=n_.mk("svg",{viewBox:"0 0 400 320","aria-hidden":"true"},e),r=null,a={get textContent(){return r},set textContent(value){r=null==value?"":String(value),u.current?.(r)}};return o.current=c.mount({stage:e,svg:n,read:a},rP(c.range,t)),null===r&&(a.textContent="rest"),()=>{o.current?.destroy(),o.current=null,n.remove()}},[c]),s.useEffect(()=>{o.current?.set(rP(c.range,t))},[c,t]),(0,i.jsx)("div",{ref:l,"data-hairline":c.name,role:"img","aria-label":n??c.means,className:a})}var rL=e.i(47163);let rO={basket:nV,branches:nA,cabinet:nS,dish:nI,drawer:nz,elevator:nM,exploded:nv,keyboard:nw,laptop:nE,lockers:nP,loupe:nT,padlock:nL,patch:nO,phone:nk,phosphor:ny,plot:nB,plug:n$,query:nF,rail:nD,riffle:nm,router:nN,sieve:nj,slow:nb,terminal:nC,terrain:ng,turntable:nx,vault:nR};function rI({name:e,label:t,intensity:n=.6,surface:r="surface",caption:a,className:l}){let[o,u]=s.useState("");return(0,i.jsxs)("figure",{className:(0,rL.cn)("relative m-0 w-full","container"===r&&"hairline-on-container","container-high"===r&&"hairline-on-container-high",l),children:[e in rR?(0,i.jsx)(rT,{name:e,intensity:n,label:t,onRead:a?u:void 0}):s.createElement(rO[e],{intensity:n,label:t,onRead:a?u:void 0}),a?(0,i.jsxs)("figcaption",{className:"text-code mt-3 flex items-center justify-between gap-4 text-muted-foreground",children:[(0,i.jsx)("span",{children:"string"==typeof a?a:null}),(0,i.jsx)("span",{"aria-hidden":"true",className:"tabular-nums",children:o})]}):null]})}e.s(["Figure",()=>rI],74149)},94179,e=>{"use strict";var t=e.i(21137),n=e.i(38374),r=e.i(94237),a=e.i(47163);let l=(0,r.cva)("inline-flex w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-full px-2.5 py-0.5 text-xs font-medium whitespace-nowrap transition-colors [&>svg]:pointer-events-none [&>svg]:size-3",{variants:{variant:{default:"bg-primary primary-fill text-primary-foreground",tonal:"bg-container-high text-foreground",outline:"border border-border text-foreground",destructive:"bg-destructive-container text-destructive",success:"bg-success-container text-success",warning:"bg-warning-container text-warning",info:"bg-info-container text-info"}},defaultVariants:{variant:"default"}});
1function o({className:e,variant:r,render:o,...i}){var s;return s={defaultTagName:"span",render:o,props:(0,n.mergeProps)({className:(0,a.cn)(l({variant:r}),e),"data-slot":"badge"},i)},(0,t.useRenderElement)(s.defaultTagName??"div",s,s)}e.s(["Badge",()=>o,"badgeVariants",()=>l],94179)},69109,e=>{"use strict";var t=e.i(96353);function n({controlled:e,default:n,name:r,state:a="value"}){let{current:l}=t.useRef(void 0!==e),[o,i]=t.useState(n),s=t.useCallback(e=>{l||i(e)},[]);return[l&&void 0!==e?e:o,s]}e.s(["useControlled",()=>n])},77364,e=>{"use strict";var t=e.i(96353);let n=t.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},nextIndexRef:{current:0}});function r(){return t.useContext(n)}e.s(["CompositeListContext",0,n,"useCompositeListContext",()=>r])},73797,e=>{"use strict";var t=e.i(96353),n=e.i(71594),r=e.i(49613),a=e.i(3467),l=e.i(77364),o=e.i(5112);function i(e){let{children:i,elementsRef:d,labelsRef:f,onMapChange:h}=e,p=(0,r.useStableCallback)(h),[,m]=t.useState(!1),g=(0,n.useRefWithInit)(u).current,v=(0,n.useRefWithInit)(s).current,y=t.useRef(0),b=t.useRef(!0),x=t.useRef(null),w=t.useRef(null),M=(0,r.useStableCallback)(()=>{b.current||(b.current=!0,m(e=>!e))}),k=(0,r.useStableCallback)((e,t)=>{v.set(e,t),M()}),E=(0,r.useStableCallback)(e=>{v.delete(e),M()}),C=(0,r.useStableCallback)(e=>{let t=new Map;return d.current.length=0,f&&(f.current.length=0),e.forEach(e=>{t.set(e.element,{...e.registration.metadata??{},index:e.index}),d.current[e.index]=e.element,f&&(f.current[e.index]=void 0!==e.registration.label?e.registration.label:e.registration.textRef?.current?.textContent??e.element.textContent)}),y.current=d.current.length,t}),S=(0,r.useStableCallback)(()=>{var e;let t,n,r,a,[l,o]=(e=v,t=new Set,n=[],r=[],e.forEach((e,a)=>{if(!a.isConnected)return;let l=e.index,o={index:l??-1,element:a,registration:e};null===l?r.push(o):l>=0&&(t.add(l),n.push(o))}),a=0,r.sort((e,t)=>c(e.element,t.element)),r.forEach(e=>{for(;t.has(a);)a+=1;e.index=a,n.push(e),a+=1}),t.size>0&&n.sort((e,t)=>e.index-t.index),[n,r.map(e=>e.element)]),i=C(l),s=x.current,u=!s||s.length!==l.length||l.some((e,t)=>{let n=s[t];return e.index!==n.index||e.element!==n.element||e.registration.index!==n.registration.index||e.registration.metadata!==n.registration.metadata});!function(e){if(w.current?.disconnect(),w.current=null,"function"!=typeof MutationObserver||e.length<2)return;let t=new MutationObserver(n=>{if(!function(e){for(let t of e)for(let e=0;e<t.removedNodes.length;e+=1)if(t.removedNodes[e].isConnected)return!0;return!1}(n))return;let r=null;for(let n of e)if(n.isConnected){if(r&&c(r,n)>0){t.disconnect(),M();return}r=n}});w.current=t;let n=new Set;for(let t=1;t<e.length;t+=1){let r=function(e,t){let n=e.parentElement;for(;n&&!n.contains(t);)n=n.parentElement;return n}(e[t-1],e[t]);r&&n.add(r)}n.forEach(e=>t.observe(e,{childList:!0}))}(o),x.current=l,b.current=!1,u&&(g.forEach(e=>e(i)),p(i))});(0,a.useIsoLayoutEffect)(()=>(!b.current&&x.current&&C(x.current),()=>{d.current=[],f&&(f.current=[])}),[d,f,C]),(0,a.useIsoLayoutEffect)(()=>{b.current&&S()}),(0,a.useIsoLayoutEffect)(()=>()=>{w.current?.disconnect(),b.current=!0},[]);let A=(0,r.useStableCallback)(e=>(g.add(e),()=>{g.delete(e)})),R=t.useMemo(()=>({register:k,unregister:E,subscribeMapChange:A,nextIndexRef:y}),[k,E,A,y]);return(0,o.jsx)(l.CompositeListContext.Provider,{value:R,children:i})}function s(){return new Map}function u(){return new Set}function c(e,t){return e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1}e.s(["CompositeList",()=>i])},29346,e=>{"use strict";e.s(["ACTIVE_COMPOSITE_ITEM",0,"data-composite-item-active"])},65443,e=>{"use strict";var t=e.i(96353),n=e.i(3467),r=e.i(77364);function a(e={}){let{guess:l,label:o,metadata:i,textRef:s,index:u}=e,{register:c,unregister:d,subscribeMapChange:f,nextIndexRef:h}=(0,r.useCompositeListContext)(),p=t.useRef(-1),[m,g]=t.useState(null==u&&l?()=>{if(-1===p.current){let e=h.current;h.current+=1,p.current=e}return p.current}:-1),v=u??m,y=t.useRef(null),b=t.useCallback(e=>{let t=y.current;t&&d(t),y.current=e,e&&c(e,{metadata:i??null,index:u??null,label:o,textRef:s})},[u,c,d,i,o,s]);return(0,n.useIsoLayoutEffect)(()=>
1{if(null==u)return f(e=>{let t=y.current?e.get(y.current)?.index:null;null!=t&&g(t)})},[u,f]),{ref:b,index:v}}e.s(["useCompositeListItem",()=>a])},80803,e=>{"use strict";var t=e.i(96353),n=e.i(59947),r=e.i(81441),a=e.i(65443);function l(e={}){let{highlightItemOnHover:o,highlightedIndex:i,onHighlightedIndexChange:s}=(0,r.useCompositeRootContext)(),{ref:u,index:c}=(0,a.useCompositeListItem)(e),d=i===c,f=t.useRef(null),h=(0,n.useMergedRefs)(u,f);return{compositeProps:{tabIndex:d?0:-1,onFocus(){s(c)},onMouseMove(){let e=f.current;if(!o||!e)return;let t=e.hasAttribute("disabled")||"true"===e.ariaDisabled;d||t||e.focus()}},compositeRef:h,index:c}}e.s(["useCompositeItem",()=>l])},71376,e=>{"use strict";var t=e.i(10242),n=e.i(80269);function r(e){let r=(0,n.getComputedStyle)(e),a=parseFloat(r.width)||0,l=parseFloat(r.height)||0,o=(0,n.isHTMLElement)(e),i=o?e.offsetWidth:a,s=o?e.offsetHeight:l;return((0,t.round)(a)!==i||(0,t.round)(l)!==s)&&(a=i,l=s),{width:a,height:l}}e.s(["getCssDimensions",()=>r])},89008,e=>{"use strict";var t=e.i(50587);e.s(["TransitionStatusDataAttributes",0,t])},12043,72627,35346,e=>{"use strict";var t=e.i(96353),n=e.i(46723),r=e.i(73797);function a(e){return null==e||e.hasAttribute("disabled")||"true"===e.getAttribute("aria-disabled")}e.s(["isElementDisabled",()=>a],72627);var l=e.i(49613),o=e.i(59947),i=e.i(3467),s=e.i(62733),u=e.i(49632),c=e.i(29346),d=e.i(71202),f=e.i(81441),h=e.i(21137);e.i(83491);let p=t.createContext(void 0);function m(){let e=t.useContext(p);return e?.direction??"ltr"}e.s(["useDirection",()=>m],35346);var g=e.i(5112);function v(e){let{render:p,className:v,style:y,refs:b=n.EMPTY_ARRAY,props:x=n.EMPTY_ARRAY,state:w=n.EMPTY_OBJECT,stateAttributesMapping:M,highlightedIndex:k,onHighlightedIndexChange:E,orientation:C,grid:S,loopFocus:A,onLoop:R,enableHomeAndEndKeys:P,onMapChange:T,stopEventPropagation:L=!0,rootRef:O,disabledIndices:I,modifierKeys:N,highlightItemOnHover:j=!1,tag:D="div",...$}=e,{props:F,highlightedIndex:z,onHighlightedIndexChange:V,elementsRef:B,onMapChange:_,relayKeyboardEvent:H}=function(e){let{loopFocus:r=!0,orientation:f="both",grid:h,onLoop:p,direction:m,highlightedIndex:g,onHighlightedIndexChange:v,rootRef:y,enableHomeAndEndKeys:b=!1,stopEventPropagation:x,disabledIndices:w,modifierKeys:M=n.EMPTY_ARRAY}=e,[k,E]=t.useState(0),C=null!=h,S=t.useRef(null),A=(0,o.useMergedRefs)(S,y),R=t.useRef([]),P=t.useRef(!1),T=t.useRef(null),L=g??k,O=(0,l.useStableCallback)((e,t=!1)=>{if(T.current=R.current[e]??null,(v??E)(e),t){let t=R.current[e];(0,s.scrollIntoViewIfNeeded)(S.current,t,m,f)}}),I=(0,l.useStableCallback)(e=>{if(0===e.size)return;if(P.current){let e=R.current,t=e.indexOf(T.current);if(-1===t){let t=e[L];!t||(0,u.isListIndexDisabled)(e,L,w)?O(function(e,t){let n=-1;for(let r=0;r<e.length;r+=1){let a=e[r];if(!(!a||(0,u.isListIndexDisabled)(e,r,t))){if(a.hasAttribute(c.ACTIVE_COMPOSITE_ITEM))return r;-1===n&&(n=r)}}return Math.max(n,0)}(e,w)):T.current=t}else t!==L&&O(t);return}P.current=!0;let t=Array.from(e.keys()),n=t.find(e=>e?.hasAttribute(c.ACTIVE_COMPOSITE_ITEM))??null,r=n?e.get(n)?.index??-1:-1;if(-1!==r)O(r);else if((0,u.isListIndexDisabled)(t,L,w)){let e=(0,u.findNonDisabledListIndex)(t,{disabledIndices:w});(0,u.isIndexOutOfListBounds)(t,e)||O(e)}(0,s.scrollIntoViewIfNeeded)(S.current,n,m,f)});(0,i.useIsoLayoutEffect)(()=>{if(null==w||null!=g||!P.current)return;let e=R.current;if((0,u.isListIndexDisabled)(e,L,w)){let t=(0,u.findNonDisabledListIndex)(e,{disabledIndices:w});(0,u.isIndexOutOfListBounds)(e,t)||O(t)}},[w,g,L,R,O]);let N=(0,l.useStableCallback)((e,t,n)=>p?p(e,t,n,R):n),j=(0,l.useStableCallback)(e=>{let t=e.key===s.HOME||e.key===s.END;if(!s.COMPOSITE_KEYS.has(e.key)||!b&&t||function(e,t){for(let n of s.MODIFIER_KEYS)if(!t.includes(n)&&e.getModifierState(n))return!0;return!1}(e,M)||!S.current)return;let n="rtl"===m,l=n?s.ARROW_LEFT:s.ARROW_RIGHT,o=n?s.ARROW_RIGHT:s.ARROW_LEFT,i="vertical"===f?s.ARROW_DOWN:l,c="vertical"===f?s.ARROW_UP:o,g=(0,d.getTarget)(e.nativeEvent);if(null!=g&&(0,s.isNativeInput)(g)&&!a(g)){let t=g.selectionStart,n=g.selectionEnd,r=g.value;if(null==t||e.shiftKey||t!==n||e.key!==c&&t<r.length||e.key!==i&&t>0)return}let v=L,y=(0,u.getMinListIndex)(R,w),k=(0,u.getMaxListIndex)(R,w);null!=h&&(v=h({disabledIndices:w,elementsRef:R,event:e,highlightedIndex:L,loopFocus:r,maxIndex:k,minIndex:y,onLoop:N,orientation:f,rtl:n}));let E="vertical"!==f&&e.key===l||"horizontal"!==f&&e.key===s.ARROW_DOWN,A="vertical"!==f&&e.key===o||"horizontal"!==f&&e.key===s.ARROW_UP;b&&(e.key===s.HOME?v=y:e.key===s.END&&(v=k)),v===L&&(E||A)&&(r&&v===k&&E?(v=y,p&&(v=p(e,L,v,R))):r&&v===y&&A?(v=k,p&&(v=p(e,L,v,R))):v=(0,u.findNonDisabledListIndex)(R.current,{startingIndex:v,decrement:A,disabledIndices:w})),v===L||(0,u.isIndexOutOfListBounds)(R.current,v)||(x&&e.stopPropagation(),(C||t||E||A)&&e.preventDefault(),O(v,!0),queueMicrotask(()=>{R.current[v]?.focus()}))});return{props:{ref:A,onFocus(e){let t=S.current,n=(0,d.getTarget)(e.nativeEvent);t&&null!=n&&(0,s.isNativeInput)(n)&&n.setSelectionRange(0,n.value.length)},onKeyDown:j},highlightedIndex:L,onHighlightedIndexChange:O,elementsRef:R,onMapChange:I,relayKeyboardEvent:j}}({grid:S,loopFocus:A,onLoop:R,orientation:C,highlightedIndex:k,onHighlightedIndexChange:E,rootRef:O,stopEventPropagation:L,enableHomeAndEndKeys:P,direction:m(),disabledIndices:I,modifierKeys:N}),W=(0,h.useRenderElement)(D,e,{state:w,ref:b,props:[F,...x,$],stateAttributesMapping:M}),X=t.useMemo(()=>({highlightedIndex:z,onHighlightedIndexChange:V,highlightItemOnHover:j,relayKeyboardEvent:H}),[z,V,j,H]);return(0,g.jsx)(f.CompositeRootContext.Provider,{value:X,children:(0,g.jsx)(r.CompositeList,{elementsRef:B,onMapChange:e=>{T?.(e),_(e)},children:W})})}e.s(["CompositeRoot",()=>v],12043)},43028,e=>{"use strict";let t=(0,e.i(10965).default)("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);e.s(["ChevronDownIcon",()=>t],43028)},65588,93846,80374,14199,33707,19910,4056,28125,75041,75940,77291,e=>{"use strict";e.i(83491);var t=e.i(96353);e.s([],28930),e.i(28930);var n=e.i(3467),r=e.i(49613),a=e.i(75185),l=e.i(46723);let o={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},i={disabled:!1,valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},s={valid:e=>null===e?null:e?{"data-valid":""}:{"data-invalid":""}};e.s(["DEFAULT_FIELD_ROOT_STATE",0,i,"DEFAULT_VALIDITY_STATE",0,o,"fieldValidityMapping",0,s],93846);
1let u={invalid:void 0,name:void 0,validityData:{state:o,errors:[],error:"",value:"",initialValue:null},setValidityData:l.NOOP,disabled:void 0,setTouched:l.NOOP,setDirty:l.NOOP,setFilled:l.NOOP,setFocused:l.NOOP,validationMode:"onSubmit",shouldValidateOnChange:()=>!1,state:i,registerFieldControl:l.NOOP,validation:{getValidationProps:(e,t=l.EMPTY_OBJECT)=>t,inputRef:{current:null},registeredInputs:new Map,registerInput:l.NOOP,getInputControl:()=>null,commit:async()=>{},change:l.NOOP}},c=t.createContext(u);function d(e=!0){let n=t.useContext(c);if(n.setValidityData===l.NOOP&&!e)throw Error((0,a.default)(28));return n}e.s(["FieldRootContext",0,c,"useFieldRootContext",()=>d],80374);let f=t.createContext(void 0);function h(e=!1){let n=t.useContext(f);if(!n&&!e)throw Error((0,a.default)(86));return n}e.s(["FieldsetRootContext",0,f,"useFieldsetRootContext",()=>h],14199);let p=t.createContext({elementRef:{current:null},formRef:{current:{fields:new Map}},errors:{},clearErrors:l.NOOP,validationMode:"onSubmit",submitCountRef:{current:0}});function m(){return t.useContext(p)}e.s(["useFormContext",()=>m],33707);var g=e.i(71594),v=e.i(96197);let y=t.createContext({controlId:void 0,registerControlId:l.NOOP,resetControlId:l.NOOP,labelId:void 0,setLabelId:l.NOOP,messageIds:[],setMessageIds:l.NOOP,getDescriptionProps:e=>e});function b(){return t.useContext(y)}e.s(["LabelableContext",0,y,"useLabelableContext",()=>b],19910);var x=e.i(5112);let w=function(e){let n=(0,v.useBaseUiId)(),[a,l]=t.useState(n),[o,i]=t.useState(),[s,u]=t.useState([]),c=void 0===a?n:a,d=(0,g.useRefWithInit)(()=>new Map),{messageIds:f}=b(),h=(0,r.useStableCallback)((e,t)=>{let n=d.current;void 0===t?n.delete(e):n.set(e,t),l(e=>{let t;if(0===n.size)return e;for(let r of n.values()){if(r===e)return e;void 0===t&&(t=r)}return t})}),p=(0,r.useStableCallback)(()=>{0===d.current.size&&l(n)}),m=t.useCallback(e=>{let t=e["aria-describedby"]?e["aria-describedby"].split(" "):[];return t.push(...f,...s),{...e,"aria-describedby":Array.from(new Set(t)).join(" ")||void 0}},[f,s]),w=t.useMemo(()=>({controlId:c,registerControlId:h,resetControlId:p,labelId:o,setLabelId:i,messageIds:s,setMessageIds:u,getDescriptionProps:m}),[c,h,p,o,i,s,u,m]);return(0,x.jsx)(y.Provider,{value:w,children:e.children})};var M=e.i(21137),k=e.i(25296),E=e.i(38374);function C(e,t){return{...e,state:{...e.state,valid:!t&&e.state.valid}}}let S=Object.keys(o);function A(e,t){let n=null;for(let r of e.keys())if(!r.matches(":disabled")&&(!t||r.form===t||null===r.form&&!r.hasAttribute("form"))){if(!r.validity.valid)return r;n??=r}return n}function R(e){return{...o,valid:!e,customError:e}}function P(e){return e&&e.validationMessage?[e.validationMessage]:[]}let T=t.forwardRef(function(e,a){let{errors:i,validationMode:u,submitCountRef:d}=m(),{render:f,className:p,validate:v,validationDebounceTime:y=0,validationMode:w=u,name:T,disabled:L=!1,invalid:O,dirty:I,touched:N,actionsRef:j,style:D,...$}=e,F=h(!0)?.disabled,z=(0,r.useStableCallback)(v||(()=>null)),V=F||L,[B,_]=t.useState(!1),[H,W]=t.useState(!1),[X,q]=t.useState(!1),[U,Y]=t.useState(!1),G=I??H,K=N??B,J=t.useRef(G),Q=t.useRef(void 0),[Z,ee]=t.useState(),et=T??Z;(0,n.useIsoLayoutEffect)(()=>{void 0!==I&&(J.current=I)},[I]);let en=(0,r.useStableCallback)(e=>{void 0===I&&(e&&(J.current=!0),W(e))}),er=(0,r.useStableCallback)(e=>{void 0===N&&_(e)}),ea=(0,r.useStableCallback)(()=>"onChange"===w||"onSubmit"===w&&d.current>0),el=et&&Object.hasOwn(i,et)?i[et]:null,eo=!!(Array.isArray(el)?el.length:el),ei=!0===O||eo,[es,eu]=t.useState({state:o,error:"",errors:[],value:null,initialValue:null}),ec=!ei&&(V?null:es.state.valid),ed=t.useMemo(()=>({disabled:V,touched:K,dirty:G,valid:ec,filled:X,focused:U}),[V,K,G,ec,X,U]),ef=function(e){let{elementRef:n,formRef:a}=m(),{setValidityData:o,validate:i,validityData:s,validationDebounceTime:u,invalid:c,markedDirtyRef:d,state:f,shouldValidateOnChange:h,validationMode:p,registeredFieldIdRef:v}=e,{controlId:y,getDescriptionProps:x}=b(),w=(0,k.useTimeout)(),M=t.useRef(null),T=(0,g.useRefWithInit)(()=>new Map).current,L=t.useRef(0),O=t.useRef(null),I=t.useCallback((e,t)=>(T.set(e,t),()=>{T.delete(e)}),[T]),N=(0,r.useStableCallback)(()=>{let e=A(T,n.current);return e&&T.get(e)?.controlRef.current||null}),j=(0,r.useStableCallback)(async(e,t=!1)=>{L.current+=1;let r=L.current;function l(){let e=O.current;O.current=null,e&&(!e[0].willValidate||e[0].validationMessage===e[1])&&e[0].setCustomValidity(e[2])}function u(t,n,r){let l,i=(l=!1===t.valid?n:[],{value:e,state:t,error:l[0]??"",errors:l,initialValue:s.initialValue});!function(e,t=c){let n=v.current??y;if(null==n)return;let r=a.current.fields.get(n);if(!r)return;let l=C(e,t);a.current.fields.set(n,{...r,validityData:l})}(i,r),o(i)}
1function m(){return T.size>0?A(T,n.current):M.current}let g=m();function b(){return g=m(),g?.willValidate?function(e){let t=S.reduce((t,n)=>(t[n]=e.validity[n],t),{}),n=!1;for(let e of S)if("valid"!==e){if("valueMissing"===e&&t[e])n=!0;else if(t[e])return t}return n&&!d.current&&(t.valid=!0,t.valueMissing=!1),t}(g):R(!1)}if(t){if(!1!==f.valid||!g)return;if(!g.validity.valueMissing){l();let e=m(),t=e?.validity.customError?P(e):[];u(R(t.length>0),t,!1);return}for(let e of S)if("valid"!==e&&"valueMissing"!==e&&"customError"!==e&&g.validity[e])return}w.clear(),l();let x=b(),k=P(g),E=h();if(0===k.length||E){let t,n=i(e,Array.from(a.current.fields.values()).reduce((e,t)=>(t.name&&(e[t.name]=t.getValue()),e),{}));if("object"==typeof n&&null!==n&&"then"in n){if(!1===x.valid?u(x,k):"onSubmit"!==p&&s.state.customError||(x.valid=null,u(x,k)),t=await n,r!==L.current)return;x=b()}else t=n;if((k=t?[].concat(t).filter(Boolean):[]).length>0){var I,N;let e,t;x.valid=!1,x.customError=!0,g?.willValidate&&(I=g,N=k.join("\n"),e=I.validity.customError?I.validationMessage:"",t=N.replace(/\r\n?/g,"\n"),I.setCustomValidity(t),O.current=[I,t,e])}else k=P(g)}u(x,k)}),D=(0,r.useStableCallback)((e,t=!1)=>{if(w.clear(),L.current+=1,t)return;let n=h();n&&""!==e&&u?w.start(u,()=>{j(e)}):j(e,!n)}),$=t.useCallback((e,t={})=>(0,E.mergeProps)(x(t),!1!==f.valid||f.disabled||e?l.EMPTY_OBJECT:{"aria-invalid":!0}),[x,f.disabled,f.valid]);return t.useMemo(()=>({getValidationProps:$,inputRef:M,registeredInputs:T,registerInput:I,getInputControl:N,commit:j,change:D}),[$,T,I,N,j,D])}({setValidityData:eu,validate:z,validityData:es,validationDebounceTime:y,invalid:ei,markedDirtyRef:J,state:ed,shouldValidateOnChange:ea,validationMode:w,registeredFieldIdRef:Q}),[eh,ep]=function(e){let{change:a,commit:l,invalid:o,markedDirtyRef:i,name:s,setRegisteredFieldName:u,registeredFieldIdRef:c,setValidityData:d,validityData:f}=e,{formRef:h}=m(),p=t.useRef(null),g=t.useRef(null),v=t.useRef(!1),y=(0,r.useStableCallback)(()=>{let e=g.current;if(e)return e.getValue?e.getValue():e.value});function b(e){return void 0===e.value?y():e.value}let x=(0,r.useStableCallback)(()=>{let e=g.current;(i.current=!0,e)?l(b(e)):l(f.value)});function w(e=g.current?.id){e&&h.current.fields.delete(e)}(0,n.useIsoLayoutEffect)(()=>{let e=g.current;e&&e.id&&(u(s?void 0:e.name),h.current.fields.set(e.id,{getValue:y,name:s??e.name,controlRef:e.controlRef,validityData:C(f,o),validate:x}))},[h,y,o,s,u,x,f]),(0,n.useIsoLayoutEffect)(()=>{let e=h.current.fields;return()=>{let t=g.current?.id;t&&e.delete(t)}},[h]);let M=(0,r.useStableCallback)((e,t)=>{let n;if(!t){p.current===e&&(p.current=null,a(void 0,!0),w(),g.current=null,u(void 0),c.current=void 0);return}let r=g.current?.id,l=p.current;l&&l!==e&&a(void 0,!0),p.current=e,g.current=t,s||u(t.name),c.current=t.id,r&&r!==t.id&&w(r),function(e){if(v.current)return;v.current=!0;let t=b(e);d(e=>e.initialValue===t?e:{...e,initialValue:t})}(t),(n=g.current)&&n.id&&h.current.fields.set(n.id,{getValue:y,name:s??n.name,controlRef:n.controlRef,validityData:C(f,o),validate:x})});return[x,M]}({change:ef.change,commit:ef.commit,invalid:ei,markedDirtyRef:J,name:T,setRegisteredFieldName:ee,registeredFieldIdRef:Q,setValidityData:eu,validityData:es});t.useImperativeHandle(j,()=>({validate:eh}),[eh]);let em=t.useMemo(()=>({invalid:ei,name:et,validityData:es,setValidityData:eu,disabled:V,setTouched:er,setDirty:en,setFilled:q,setFocused:Y,validationMode:w,shouldValidateOnChange:ea,state:ed,registerFieldControl:ep,validation:ef}),[ei,et,es,V,er,en,q,Y,w,ea,ed,ep,ef]),eg=(0,M.useRenderElement)("div",e,{ref:a,state:ed,props:$,stateAttributesMapping:s});return(0,x.jsx)(c.Provider,{value:em,children:eg})}),L=t.forwardRef(function(e,t){return(0,x.jsx)(w,{children:(0,x.jsx)(T,{...e,ref:t})})});var O=e.i(80269),I=e.i(58250),N=e.i(71202);function j(e,t){let r=(0,v.useBaseUiId)(e);return(0,n.useIsoLayoutEffect)(()=>(t(r),()=>{t(e=>e===r?void 0:e)}),[r,t]),r}function D(e={}){let{id:t,fallbackControlId:n,native:a=!1,setLabelId:l,focusControl:o}=e,{controlId:i,setLabelId:s}=b(),u=j(t,(0,r.useStableCallback)(e=>{s(e),l?.(e)})),c=i??n;function d(e){let t=(0,N.getTarget)(e.nativeEvent);t?.closest("button,input,select,textarea")||(!e.defaultPrevented&&e.detail>1&&e.preventDefault(),a||function(e){if(o)return o(e,c);if(!c)return;let t=(0,I.ownerDocument)(e.currentTarget).getElementById(c);
1(0,O.isHTMLElement)(t)&&t.focus({focusVisible:!0})}(e))}return a?{id:u,htmlFor:c,onMouseDown:d}:{id:u,onClick:d,onPointerDown(e){e.preventDefault()}}}e.s(["useRegisteredLabelId",()=>j],4056),e.s(["useLabel",()=>D],28125);let $=t.createContext({disabled:!1});function F(){return t.useContext($)}let z=t.forwardRef(function(e,n){let{render:r,className:a,style:l,id:o,nativeLabel:i=!0,...u}=e,c=d(!1),f=F(),{labelId:h}=b(),p={...c.state,disabled:c.disabled||f.disabled},m=t.useRef(null),g=D({id:h??o,native:i});return(0,M.useRenderElement)("label",e,{ref:[n,m],state:p,props:[g,u],stateAttributesMapping:s})});var V=e.i(46041),B=e.i(42808),_=e.i(79852);let H={...s,...B.transitionStatusMapping},W=t.forwardRef(function(e,r){let{render:a,id:l,className:o,match:i,style:s,...u}=e,c=(0,v.useBaseUiId)(l),{validityData:f,state:h,name:p}=d(!1),{setMessageIds:g}=b(),{errors:y}=m(),w=p&&Object.hasOwn(y,p)?y[p]:null,k=!!(Array.isArray(w)?w.length:w),E="string"==typeof i,C=!1;C=!0===i||!h.disabled&&(E?!!f.state[i]:k||!1===f.state.valid);let{mounted:S,transitionStatus:A,setMounted:R}=(0,_.useTransitionStatus)(C);(0,n.useIsoLayoutEffect)(()=>{if(C&&c)return g(e=>e.concat(c)),()=>{g(e=>e.filter(e=>e!==c))}},[C,c,g]);let P=t.useRef(null),[T,L]=t.useState(null),[O,I]=t.useState(null),N=f.error;!E&&k?N=w:f.errors.length>1&&(N=f.errors);let j=N;Array.isArray(N)&&(j=N.length>1?(0,x.jsx)("ul",{children:N.map(e=>(0,x.jsx)("li",{children:e},e))}):N[0]);let D=Array.isArray(N)?JSON.stringify(N):N;C&&D!==O&&(I(D),L(j)),(0,V.useOpenChangeComplete)({open:C,ref:P,onComplete(){C||R(!1)}});let $={...h,transitionStatus:A},F=(0,M.useRenderElement)("div",e,{ref:[r,P],state:$,props:[{id:c,children:C?j:T},u],stateAttributesMapping:H,enabled:S});return S?F:null}),X=t.forwardRef(function(e,t){let{render:r,id:a,className:l,style:o,...i}=e,u=(0,v.useBaseUiId)(a),c=d(!1),f=F(),{setMessageIds:h}=b(),p={...c.state,disabled:c.disabled||f.disabled};return(0,n.useIsoLayoutEffect)(()=>{if(u)return h(e=>e.concat(u)),()=>{h(e=>e.filter(e=>e!==u))}},[u,h]),(0,M.useRenderElement)("p",e,{ref:t,state:p,props:[{id:u},i],stateAttributesMapping:s})});var q=e.i(69109);function U(e,t,r,a,l=!0,o){let{registerFieldControl:i}=d(),s=(0,g.useRefWithInit)(()=>Symbol());(0,n.useIsoLayoutEffect)(()=>{let n=s.current;l?i(n,{controlRef:e,getValue:a,id:t,name:o,value:r}):i(n,void 0)},[e,l,a,t,o,i,s,r]),(0,n.useIsoLayoutEffect)(()=>{let e=s.current;return()=>{i(e,void 0)}},[i,s])}function Y(e={}){let{id:a,enabled:o=!0}=e,{controlId:i,registerControlId:s,resetControlId:u}=b(),c=(0,v.useBaseUiId)(),d=(0,g.useRefWithInit)(()=>Symbol()),f=t.useRef(!1),h=t.useRef(!1),p=(0,r.useStableCallback)(()=>{f.current&&s!==l.NOOP&&(f.current=!1,s(d.current,void 0))});return(0,n.useIsoLayoutEffect)(()=>{let e;if(!o||s===l.NOOP)return void p();if(void 0!==a)h.current=!0,e=a;else{if(!h.current)return void u();e=c}void 0===e?p():(f.current=!0,s(d.current,e))},[a,o,s,u,c,d,p]),(0,n.useIsoLayoutEffect)(()=>p,[p]),(o?i:void 0)??a??c}e.s(["useRegisterFieldControl",()=>U],75041),e.s(["useLabelableId",()=>Y],75940);var G=e.i(69169),K=e.i(63966),J=e.i(11404);let Q=t.forwardRef(function(e,a){let{render:l,className:o,id:i,name:u,value:c,disabled:f=!1,onValueChange:h,defaultValue:p,autoFocus:g=!1,style:v,...y}=e,{state:x,name:w,disabled:E,setTouched:C,setDirty:S,validityData:A,setFocused:R,setFilled:P,validationMode:T,validation:L}=d(),{clearErrors:O,elementRef:j,submitCountRef:D}=m(),$=E||f,F=w??u,z={...x,disabled:$},{labelId:V}=b(),B=Y({id:i}),[_]=(0,q.useControlled)({controlled:c,default:p,name:"FieldControl",state:"value"}),H=void 0!==c,W=H?_:void 0,X=null==W?void 0:String(W),Q=(0,r.useStableCallback)(()=>L.inputRef.current?.value);U(L.inputRef,B,X,Q,!$,u),(0,n.useIsoLayoutEffect)(()=>{let e=X??L.inputRef.current?.value;void 0!==e&&P(""!==e)},[X,L.inputRef,P]),(0,G.useValueChanged)(X,()=>{void 0!==X&&(O(F),S(X!==(A.initialValue??"")),L.change(X))});let Z=t.useRef(null),ee=(0,k.useTimeout)();return(0,n.useIsoLayoutEffect)(()=>{g&&Z.current===(0,N.activeElement)((0,I.ownerDocument)(Z.current))&&R(!0)},[g,R]),(0,M.useRenderElement)("input",e,{ref:[a,Z],state:z,props:[{id:B,disabled:$,name:F,ref:L.inputRef,"aria-labelledby":V,autoFocus:g,...H?{value:W}:{defaultValue:p},onChange(e){let t=e.currentTarget.value,n=(0,K.createChangeEventDetails)(J.REASONS.none,e.nativeEvent);h?.(t,n),!H&&(S(t!==(A.initialValue??"")),P(""!==t),e.nativeEvent.defaultPrevented||n.isCanceled||(O(F),L.change(t)))},onFocus(){R(!0)},onBlur(e){if(C(!0),R(!1),"onBlur"===T){let t=e.currentTarget.value;L.commit(t),H&&queueMicrotask(()=>{let e=L.inputRef.current?.value;void 0!==e&&e!==t&&e!==(A.initialValue??"")&&L.commit(e)})}},onKeyDown(e){if("INPUT"===e.currentTarget.tagName&&"Enter"===e.key){C(!0);let t=e.currentTarget.value,n=e.currentTarget.form;if(n&&n===j.current&&!e.defaultPrevented){let t=e.currentTarget,n=D.current;ee.start(0,()=>{D.current===n&&L.commit(t.value)})}else L.commit(t)}}},y,e=>L.getValidationProps($,e)],stateAttributesMapping:s})}),Z=t.forwardRef(function(e,n){let{render:r,className:a,style:l,disabled:o=!1,...i}=e,{state:u,disabled:c}=d(!1),f=c||o,h={...u,disabled:f},p=t.useMemo(()=>({disabled:f}),[f]),m=(0,M.useRenderElement)("div",e,{ref:n,state:h,props:i,stateAttributesMapping:s});return(0,x.jsx)(w,{children:(0,x.jsx)($.Provider,{value:p,children:m})})});e.s(["Control",0,Q,"Description",0,X,"Error",0,W,"Item",0,Z,"Label",0,z,"Root",0,L,"Validity",0,function(e){let{children:n}
1=e,{validityData:r,invalid:a}=d(!1),l=t.useMemo(()=>C(r,a),[r,a]),o=!1===l.state.valid,{transitionStatus:i}=(0,_.useTransitionStatus)(o),s=t.useMemo(()=>({...l,validity:l.state,transitionStatus:i}),[l,i]);return(0,x.jsx)(t.Fragment,{children:n(s)})}],79863);var ee=e.i(79863);e.s(["Field",0,ee],77291);var ee=ee;let et=t.forwardRef(function(e,t){return(0,x.jsx)(ee.Control,{ref:t,...e})});e.s(["Input",0,et],65588)},17551,90538,23128,25339,66751,77458,31666,e=>{"use strict";var t=e.i(5112),n=e.i(20353),r=e.i(7002),a=e.i(96353),l=e.i(74244);let o=(0,e.i(10965).default)("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);e.s([],92678),e.i(92678),e.i(83491);var i=e.i(69109),s=e.i(49613),u=e.i(46723),c=e.i(73797),d=e.i(75185);let f=a.createContext(void 0);function h(){let e=a.useContext(f);if(void 0===e)throw Error((0,d.default)(10));return e}var p=e.i(21137);let m={value:()=>null},g=a.forwardRef(function(e,n){let{render:r,className:l,disabled:o=!1,hiddenUntilFound:d,keepMounted:h,loopFocus:g,onValueChange:v,multiple:y=!1,orientation:b="vertical",value:x,defaultValue:w,style:M,...k}=e,E=w??u.EMPTY_ARRAY,C=a.useRef([]),[S,A]=(0,i.useControlled)({controlled:x,default:E,name:"Accordion",state:"value"}),R=(0,s.useStableCallback)((e,t,n)=>{if(y)if(t){let t=S.slice();if(t.push(e),v?.(t,n),n.isCanceled)return;A(t)}else{let t=S.filter(t=>t!==e);if(v?.(t,n),n.isCanceled)return;A(t)}else{let t=S[0]===e?[]:[e];v?.(t,n),n.isCanceled||A(t)}}),P=a.useMemo(()=>({value:S,disabled:o,orientation:b}),[S,o,b]),T=a.useMemo(()=>({disabled:o,handleValueChange:R,hiddenUntilFound:d??!1,keepMounted:h??!1,state:P,value:S}),[o,R,d,h,P,S]),L=(0,p.useRenderElement)("div",e,{state:P,ref:n,props:k,stateAttributesMapping:m});return(0,t.jsx)(f.Provider,{value:T,children:(0,t.jsx)(c.CompositeList,{elementsRef:C,children:L})})});var v=e.i(59947),y=e.i(96197),b=e.i(63966),x=e.i(11404),w=e.i(79852);let M=a.createContext(void 0);function k(){let e=a.useContext(M);if(void 0===e)throw Error((0,d.default)(15));return e}var E=e.i(65443);let C=a.createContext(void 0);function S(){let e=a.useContext(C);if(void 0===e)throw Error((0,d.default)(9));return e}var A=e.i(89008);let R=A.TransitionStatusDataAttributes.startingStyle;A.TransitionStatusDataAttributes.endingStyle;let P={"data-open":""},T={"data-closed":""},L={open:e=>e?{"data-panel-open":""}:null};var O=e.i(42808);let I={open:e=>e?P:T,index:e=>({"data-index":String(e)}),...O.transitionStatusMapping,value:()=>null},N=a.forwardRef(function(e,n){let{className:r,disabled:l=!1,onOpenChange:o,render:u,value:c,style:d,...f}=e,{ref:m,index:g}=(0,E.useCompositeListItem)(),k=(0,v.useMergedRefs)(n,m),{disabled:S,handleValueChange:A,state:R,value:P}=h(),T=(0,y.useBaseUiId)(),L=c??T,O=l||S,N=-1!==P.indexOf(L),j=(0,s.useStableCallback)((e,t)=>{o?.(e,t),t.isCanceled||A(L,e,t)}),D=function(e){let{open:t,defaultOpen:n=!1,onOpenChange:r,disabled:l}=e,[o,u]=(0,i.useControlled)({controlled:t,default:n,name:"Collapsible",state:"open"}),{mounted:c,setMounted:d,transitionStatus:f}=(0,w.useTransitionStatus)(o,!0,!0),h=(0,y.useBaseUiId)(),[p,m]=a.useState(),g=null===p?void 0:p??h,v=(0,s.useStableCallback)(e=>{let t=!o,n=(0,b.createChangeEventDetails)(x.REASONS.triggerPress,e.nativeEvent);r(t,n),n.isCanceled||u(t)});return a.useMemo(()=>({defaultPanelId:h,disabled:l,handleTrigger:v,mounted:c,open:o,panelId:g,setMounted:d,setOpen:u,setPanelIdState:m,transitionStatus:f}),[h,l,v,c,o,g,d,u,m,f])}({open:N,onOpenChange:j,disabled:O}),$=a.useMemo(()=>({open:D.open,disabled:D.disabled,transitionStatus:D.transitionStatus}),[D.open,D.disabled,D.transitionStatus]),F=a.useMemo(()=>({...D,onOpenChange:j,state:$}),[D,$,j]),z=a.useMemo(()=>({...R,hidden:!N&&!D.mounted,index:g,disabled:O,open:N}),[D.mounted,O,g,N,R]),V=(0,y.useBaseUiId)(),[B,_]=a.useState(),H=null===B?void 0:B??V,W=a.useMemo(()=>({defaultTriggerId:V,open:N,state:z,setTriggerId:_,triggerId:H}),[V,N,z,_,H]),X=(0,p.useRenderElement)("div",e,{state:z,ref:k,props:f,stateAttributesMapping:I});return(0,t.jsx)(M.Provider,{value:F,children:(0,t.jsx)(C.Provider,{value:W,children:X})})}),j=a.forwardRef(function(e,t){let{render:n,className:r,style:a,...l}=e,{state:o}=S();return(0,p.useRenderElement)("h3",e,{state:o,ref:t,props:l,stateAttributesMapping:I})});var D=e.i(3467),$=e.i(80547);let F=a.forwardRef(function(e,t){let{disabled:n,className:r,id:a,render:l,nativeButton:o=!0,style:i,...s}=e,{panelId:u,open:c,handleTrigger:d,disabled:f}=k(),{getButtonProps:h,buttonRef:m}=(0,$.useButton)({disabled:n||f,focusableWhenDisabled:!0,native:o}
1),{defaultTriggerId:g,state:v,setTriggerId:y}=S(),b=a||void 0;return(0,D.useIsoLayoutEffect)(()=>(y(e=>b??(null===e?void 0:e)),()=>{y(e=>e===b?null:e)}),[b,y]),(0,p.useRenderElement)("button",e,{state:v,ref:[t,m],props:[{"aria-controls":c?u:void 0,"aria-expanded":c,id:b??g,onClick:d},s,h],stateAttributesMapping:L})});var z=e.i(57777),V=e.i(8619),B=e.i(54527),_=e.i(88439),H=e.i(79995),W=e.i(46041),X=e.i(47783);let q={height:void 0,width:void 0};function U(e){return{height:e.scrollHeight,width:e.scrollWidth}}function Y(e){return e.split(",").map(e=>e.trim()).some(e=>""!==e&&Number.parseFloat(e)>0)}function G(e,t,n){let r=e.style.getPropertyValue(t),a=e.style.getPropertyPriority(t);return e.style.setProperty(t,n),()=>{""===r?e.style.removeProperty(t):e.style.setProperty(t,r,a)}}let K=a.forwardRef(function(e,t){let{className:n,hiddenUntilFound:r,keepMounted:l,id:o,render:i,style:u,...c}=e,{hiddenUntilFound:d,keepMounted:f}=h(),{defaultPanelId:m,mounted:g,onOpenChange:y,open:w,setMounted:M,setOpen:E,setPanelIdState:C,transitionStatus:A}=k(),P=o||void 0,T=o??m;(0,D.useIsoLayoutEffect)(()=>(C(e=>P??(null===e?void 0:e)),()=>{C(e=>e===P?null:e)}),[P,C]);let{height:L,props:O,ref:N,shouldPreventOpenAnimation:j,shouldRender:$,transitionStatus:F,width:K}=function(e){let{externalRef:t,hiddenUntilFound:n,id:r,keepMounted:l,mounted:o,onOpenChange:i,open:u,setMounted:c,setOpen:d,transitionStatus:f}=e,h=a.useRef(null),p=a.useRef(null),[m,g]=a.useState(q),y=a.useRef(q),w=a.useRef(!1),M=a.useRef(u),k=a.useRef(!1),[E,C]=a.useState(!1),S=a.useRef(null),A=(0,v.useMergedRefs)(t,h),P=(0,_.useValueAsRef)(u),T=(0,X.useAnimationsFinished)(h),L=!u&&!o,O=E?"idle":f,I=u&&(M.current||k.current),N=!u&&o&&"css-animation"===p.current&&void 0===m.height&&void 0===m.width?y.current:m,j=n&&L&&"css-animation"!==p.current,$=(0,s.useStableCallback)((e,t=!0)=>{t&&(y.current=e),g(e)}),F=(0,s.useStableCallback)(()=>{S.current?.(),S.current=null}),z=(0,s.useStableCallback)(e=>{F(),S.current=()=>{S.current=null,e()}}),K=(0,s.useStableCallback)(()=>{u&&o&&"css-animation"===p.current&&(k.current=!0)});(0,D.useIsoLayoutEffect)(()=>{E&&"starting"!==f&&C(!1)},[E,f]),a.useEffect(()=>()=>{K(),F()},[K,F]),(0,D.useIsoLayoutEffect)(()=>{var e,t;let n,r,a,l=h.current;if(!l)return;!u&&S.current&&F();let i=(e=l,t=I,r=((n=(0,H.ownerWindow)(e).getComputedStyle(e)).animationName.split(",").map(e=>e.trim()).some(e=>""!==e&&"none"!==e)||t)&&Y(n.animationDuration),a=Y(n.transitionDuration),r&&a||a?"css-transition":r?"css-animation":"none");if(p.current=i,u&&"idle"===f&&M.current&&"css-animation"===i){y.current=U(l);return}if(u&&"starting"===f){let e=w.current;if(w.current=!1,"none"===i){$(U(l)),C(!0);return}if("css-transition"===i){let t=function(e){let t={"justify-content":e.style.justifyContent,"align-items":e.style.alignItems,"align-content":e.style.alignContent,"justify-items":e.style.justifyItems};function n(){Object.entries(t).forEach(([t,n])=>{""===n?e.style.removeProperty(t):e.style.setProperty(t,n)})}Object.keys(t).forEach(t=>{e.style.setProperty(t,"initial","important")});let r=B.AnimationFrame.request(n);return()=>{B.AnimationFrame.cancel(r),n()}}(l);return $(U(l)),e&&(z(G(l,"transition-duration","0s")),C(!0)),t}$(U(l));let t=G(l,"animation-name","none");if(!e)return void t();let n=G(l,"animation-duration","0s");return t(),z(n),void C(!0)}if(!u&&o&&("idle"===f||"starting"===f)){if(M.current=!1,k.current=!1,"none"===i){$(q,!1),c(!1);return}$(U(l));return}if("ending"!==f)return;if("none"===i)return void c(!1);let s=U(l);s.height>0||s.width>0?($(s),"css-animation"===i&&G(l,"animation-name","none")()):c(!1)},[o,u,F,$,c,z,I,f]),(0,W.useOpenChangeComplete)({enabled:u&&o&&"idle"===O,open:!0,ref:h,onComplete(){u&&$(q,!1)}}),a.useEffect(()=>{if(u||!o||"ending"!==O||!h.current)return;let e=new AbortController,t=-1;function n(){P.current||(c(!1),$(q,!1))}return t=B.AnimationFrame.request(()=>{T(n,e.signal)}),()=>{B.AnimationFrame.cancel(t),e.abort()}},[P,o,u,O,T,$,c]),(0,D.useIsoLayoutEffect)(()=>{let e=h.current;e&&n&&L&&e.setAttribute("hidden","until-found")},[L,n]),a.useEffect(function(){let e=h.current;if(e)return(0,V.addEventListener)(e,"beforematch",function(e){let t=(0,b.createChangeEventDetails)(x.REASONS.none,e);i(!0,t),t.isCanceled||(w.current=!0,d(!0))})},[i,d]);let J=l||n||o||u;return{height:N.height,props:{...j?{[R]:""}:void 0,hidden:L,id:r},ref:A,shouldPreventOpenAnimation:I,shouldRender:J,transitionStatus:O,width:N.width}}({externalRef:t,hiddenUntilFound:r??d,id:T,keepMounted:l??f,mounted:g,onOpenChange:y,open:w,setMounted:M,setOpen:E,transitionStatus:A}),{state:J,triggerId:Q}=S(),Z={...J,transitionStatus:F},ee=(0,z.resolveStyle)(u,Z),et=(0,p.useRenderElement)("div",{...e,style:void 0},{state:Z,ref:N,props:[O,{"aria-labelledby":Q,role:"region",style:{"--accordion-panel-height":void 0===L?"auto":`${L}px`,"--accordion-panel-width":void 0===K?"auto":`${K}px`}},c,ee?{style:ee}:void 0,j?{style:{animationName:"none"}}:void 0],stateAttributesMapping:I});return $?et:null});e.s(["Header",0,j,"Item",0,N,"Panel",0,K,"Root",0,g,"Trigger",0,F],80111);var J=e.i(80111),J=J,Q=e.i(43028),Z=e.i(47163);function ee({className:e,...n}){return(0,t.jsx)(J.Root,{"data-slot":"accordion",className:(0,Z.cn)("flex w-full flex-col",e),...n})}function et({className:e,...n}){return(0,t.jsx)(J.Item,{"data-slot":"accordion-item",className:(0,Z.cn)("border-b border-outline-variant last:border-b-0",e),...n})}function en({className:e,children:n,...r}){return(0,t.jsx)(J.Header,{className:"flex",children:(0,t.jsxs)(J.Tr
1igger,{"data-slot":"accordion-trigger",className:(0,Z.cn)("group focus-ring flex flex-1 items-center justify-between gap-4 rounded-sm py-4 text-left text-[15px] font-medium transition-colors outline-none hover:text-foreground data-disabled:pointer-events-none data-disabled:opacity-40",e),...r,children:[n,(0,t.jsx)(Q.ChevronDownIcon,{className:"size-4 shrink-0 text-muted-foreground transition-transform duration-200 ease-(--ease-dx) group-data-panel-open:rotate-180"})]})})}function er({className:e,children:n,...r}){return(0,t.jsx)(J.Panel,{"data-slot":"accordion-content",className:"h-(--accordion-panel-height) overflow-hidden text-sm text-muted-foreground transition-[height] duration-250 ease-(--ease-dx) data-ending-style:h-0 data-starting-style:h-0",...r,children:(0,t.jsx)("div",{className:(0,Z.cn)("pb-4 leading-relaxed",e),children:n})})}e.s(["Accordion",()=>ee,"AccordionContent",()=>er,"AccordionItem",()=>et,"AccordionTrigger",()=>en],90538);var ea=e.i(67881);e.s([],14969),e.i(14969);var el=e.i(80269),eo=e.i(58250),ei=e.i(33404),es=e.i(71202);let eu=a.createContext(void 0);function ec(e){let t=a.useContext(eu);if(void 0===t&&!e)throw Error((0,d.default)(41));return t}let ed=a.createContext(void 0);function ef(){return a.useContext(ed)}let eh="--positioner-width",ep="--positioner-height",em="--popup-width",eg="--popup-height";function ev(e,t,n,r){e.style.setProperty(em,`${n}px`),e.style.setProperty(eg,`${r}px`),t.style.setProperty(eh,`${n}px`),t.style.setProperty(ep,`${r}px`)}let ey=new Set([x.REASONS.triggerHover,x.REASONS.outsidePress,x.REASONS.focusOut]),eb=a.forwardRef(function(e,n){let{defaultValue:r=null,value:l,onValueChange:o,actionsRef:u,delay:c=50,closeDelay:d=50,orientation:f="horizontal",onOpenChangeComplete:h}=e,p=null!=(0,ei.useFloatingParentNodeId)(),m=ec(!0),[g,v]=(0,i.useControlled)({controlled:l,default:r,name:"NavigationMenu",state:"value"}),y=null!=g,b=a.useRef(void 0),M=a.useRef(null),[k,E]=a.useState(null),[C,S]=a.useState(null),[A,R]=a.useState(null),[P,T]=a.useState(null),[L,O]=a.useState(null),[I,N]=a.useState(void 0),[j,$]=a.useState(!1),F=a.useRef(null),z=a.useRef(null),V=a.useRef(null),B=a.useRef(null),_=a.useRef(null),H=a.useRef(null),X=a.useRef({abortController:null,owner:null}),{mounted:q,setMounted:U,transitionStatus:Y}=(0,w.useTransitionStatus)(y);(0,D.useIsoLayoutEffect)(()=>{let e,t;if(y||!k||!C)return;let n=(e=parseFloat(k.style.getPropertyValue(eh))||0,t=parseFloat(k.style.getPropertyValue(ep))||0,e<=0||t<=0?null:{width:e,height:t});n&&ev(C,k,n.width,n.height)},[y,C,k]),a.useEffect(()=>{$(!1)},[g]);let G=(0,s.useStableCallback)((e,t)=>{null==e&&(b.current=t.reason),e!==g&&o?.(e,t),!t.isCanceled&&(null==e&&(O(null),N(void 0)),v(e),p&&null==e&&t.reason===x.REASONS.linkPress&&m&&m.setValue(null,t))}),K=(0,s.useStableCallback)(()=>{let e=(0,eo.ownerDocument)(M.current),t=(0,es.activeElement)(e);!(b.current&&ey.has(b.current))&&(0,el.isHTMLElement)(F.current)&&(t===(0,eo.ownerDocument)(C).body||(0,es.contains)(C,t))&&C&&(F.current.focus({preventScroll:!0}),F.current=void 0),U(!1),h?.(!1),O(null),N(void 0),z.current=null,b.current=void 0});a.useImperativeHandle(u,()=>({unmount:K}),[K]),(0,W.useOpenChangeComplete)({enabled:!u,open:y,ref:{current:C},onComplete(){y||K()}}),(0,W.useOpenChangeComplete)({enabled:!u,open:y,ref:{current:P},onComplete(){y||K()}});let J=y?L:null,Q=a.useMemo(()=>({open:y,value:g,setValue:G,mounted:q,transitionStatus:Y,positionerElement:k,setPositionerElement:E,popupElement:C,setPopupElement:S,viewportElement:A,setViewportElement:R,viewportTargetElement:P,setViewportTargetElement:T,activationDirection:J,setActivationDirection:O,floatingRootContext:I,setFloatingRootContext:N,currentContentRef:z,nested:p,rootRef:M,beforeInsideRef:V,afterInsideRef:B,beforeOutsideRef:_,afterOutsideRef:H,prevTriggerElementRef:F,popupAutoSizeResetRef:X,delay:c,closeDelay:d,orientation:f,viewportInert:j,setViewportInert:$}),[y,g,G,q,Y,k,C,A,P,J,I,p,c,d,f,j]),Z=(0,t.jsx)(eu.Provider,{value:Q,children:(0,t.jsx)(ex,{componentProps:e,forwardedRef:n,children:e.children})});return p?Z:(0,t.jsx)(ei.FloatingTree,{children:Z})});function ex(e){let{className:n,render:r,defaultValue:a,value:l,onValueChange:o,actionsRef:i,delay:s,closeDelay:u,orientation:c,onOpenChangeComplete:d,style:f,...h}=e.componentProps,m=(0,ei.useFloatingNodeId)(),{rootRef:g,nested:v,open:y}=ec(),b=(0,p.useRenderElement)(v?"div":"nav",e.componentProps,{state:{open:y,nested:v},ref:[e.forwardedRef,g],props:h});return(0,t.jsx)(ed.Provider,{value:m,children:(0,t.jsx)(ei.FloatingNode,{id:m,children:b})})}
1var ew=e.i(1627),eM=e.i(88408),ek=e.i(25296),eE=e.i(38211),eC=e.i(36064),eS=e.i(71594),eA=e.i(81477);class eR{constructor(){this.pointerType=void 0,this.interactedInside=!1,this.handler=void 0,this.blockMouseMove=!0,this.performedPointerEventsMutation=!1,this.pointerEventsScopeElement=null,this.pointerEventsReferenceElement=null,this.pointerEventsFloatingElement=null,this.restTimeoutPending=!1,this.openChangeTimeout=new ek.Timeout,this.restTimeout=new ek.Timeout,this.handleCloseOptions=void 0}static create(){return new eR}dispose=()=>{this.openChangeTimeout.clear(),this.restTimeout.clear()};disposeEffect=()=>this.dispose}let eP=new WeakMap;function eT(e){if(!e.performedPointerEventsMutation)return;let t=e.pointerEventsScopeElement;t&&eP.get(t)===e&&(e.pointerEventsScopeElement?.style.removeProperty("pointer-events"),e.pointerEventsReferenceElement?.style.removeProperty("pointer-events"),e.pointerEventsFloatingElement?.style.removeProperty("pointer-events"),eP.delete(t)),e.performedPointerEventsMutation=!1,e.pointerEventsScopeElement=null,e.pointerEventsReferenceElement=null,e.pointerEventsFloatingElement=null}function eL(e,t){let{scopeElement:n,referenceElement:r,floatingElement:a}=t,l=eP.get(n);l&&l!==e&&eT(l),eT(e),e.performedPointerEventsMutation=!0,e.pointerEventsScopeElement=n,e.pointerEventsReferenceElement=r,e.pointerEventsFloatingElement=a,eP.set(n,e),n.style.pointerEvents="none",r.style.pointerEvents="auto",a.style.pointerEvents="auto"}function eO(e){let t=e.context.dataRef.current,n=(0,eS.useRefWithInit)(()=>t.hoverInteractionState??eR.create()).current;return t.hoverInteractionState||(t.hoverInteractionState=n),(0,eC.useOnMount)(t.hoverInteractionState.disposeEffect),t.hoverInteractionState}var eI=e.i(80792);function eN(e,t,n){let r=null==n||(0,eI.isMouseLikePointerType)(n)?"function"==typeof e?e():e:0;return"number"==typeof r?r:r?.[t]}function ej(e){return"function"==typeof e?e():e}function eD(e,t){return t||"click"===e||"mousedown"===e}var e$=eA,eF=e.i(12043);let ez="data-base-ui-navigation-menu-trigger",eV=a.createContext(void 0);var eB=e.i(61997),e_=e.i(7085);function eH(){return new e_.FloatingRootStore({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:new eB.PopupTriggerMap,floatingId:void 0,syncOnly:!1,nested:!1,onOpenChange:void 0})}let eW=a.forwardRef(function(e,n){let{render:r,className:l,style:o,...i}=e,c=ef(),{orientation:d,open:f,floatingRootContext:h,positionerElement:m,value:g,closeDelay:v,viewportElement:y,nested:w}=ec(),M=a.useMemo(()=>eH(),[]),k=h||M;!function(e,t={}){let{enabled:n=!0,closeDelay:r=0,nodeId:l}=t,o="rootStore"in e?e.rootStore:e,i=o.useState("open"),u=o.useState("floatingElement"),c=o.useState("domReferenceElement"),{dataRef:d}=o.context,f=(0,ei.useFloatingTree)(),h=(0,ei.useFloatingParentNodeId)(),p=eO(o),m=(0,ek.useTimeout)(),g=(0,s.useStableCallback)(()=>eD(d.current.openEvent?.type,p.interactedInside)),v=(0,s.useStableCallback)(()=>{var e;return e=d.current.openEvent?.type,e?.includes("mouse")&&"mousedown"!==e}),y=(0,s.useStableCallback)(()=>{eT(p)});(0,D.useIsoLayoutEffect)(()=>{i||(p.pointerType=void 0,p.restTimeoutPending=!1,p.interactedInside=!1,y())},[i,p,y]),a.useEffect(()=>y,[y]),(0,D.useIsoLayoutEffect)(()=>{if(n&&i&&p.handleCloseOptions?.blockPointerEvents&&v()&&(0,el.isElement)(c)&&u){let e=(0,eo.ownerDocument)(u),t=f?.nodesRef.current.find(e=>e.id===h)?.context?.elements.floating;t&&(t.style.pointerEvents="");let n=p.pointerEventsScopeElement!==u?p.pointerEventsScopeElement:null,r=t!==u?t:null,a=p.handleCloseOptions?.getScope?.()??n??r??c.closest("[data-rootownerid]")??e.body;return eL(p,{scopeElement:a,referenceElement:c,floatingElement:u}),()=>{y()}}},[n,i,c,u,p,v,f,h,y]),a.useEffect(()=>{if(n)return(0,eM.mergeCleanups)(u&&(0,V.addEventListener)(u,"mouseenter",function(){p.openChangeTimeout.clear(),m.clear(),f?.events.off("floating.closed",t),y()}),u&&(0,V.addEventListener)(u,"mouseleave",function(n){if(e()&&f)return void f.events.on("floating.closed",t);if((0,e$.isTargetInsideEnabledTrigger)(n.relatedTarget,o.context.triggerElements))return;let a=d.current.floatingContext?.nodeId??l,i=n.relatedTarget;if(!(f&&a&&(0,el.isElement)(i)&&(0,eE.getNodeChildren)(f.nodesRef.current,a,!1).some(e=>(0,es.contains)(e.context?.elements.floating,i)))){let e,t;if(p.handler)return void p.handler(n);
1y(),v()&&!g()&&(e=eN(r,"close",p.pointerType),t=()=>{o.setOpen(!1,(0,b.createChangeEventDetails)(x.REASONS.triggerHover,n)),f?.events.emit("floating.closed",n)},e?p.openChangeTimeout.start(e,t):(p.openChangeTimeout.clear(),t()))}}),u&&(0,V.addEventListener)(u,"pointerdown",function(e){let t=(0,es.getTarget)(e);if(!(0,eA.isInteractiveElement)(t)){p.interactedInside=!1;return}p.interactedInside=t?.closest("[aria-haspopup]")!=null},!0),()=>{f?.events.off("floating.closed",t)});function e(){return!!(f&&h&&(0,eE.getNodeChildren)(f.nodesRef.current,h).length>0)}function t(n){!f||!h||e()||m.start(0,()=>{f.events.off("floating.closed",t),o.setOpen(!1,(0,b.createChangeEventDetails)(x.REASONS.triggerHover,n)),f.events.emit("floating.closed",n)})}},[n,u,o,d,r,l,v,g,y,p,f,h,m])}(k,{enabled:!!h&&(null!=m||null!=y||null==g),closeDelay:v,nodeId:c});let E=(0,ew.useDismiss)(k,{enabled:null!=m||null==g,outsidePressEvent:"intentional",outsidePress(e){let t=(0,es.getTarget)(e);return null===t?.closest(`[${ez}]`)}}),C=h?E:void 0,S={open:f},A=w?u.EMPTY_OBJECT:{onKeyDown(e){("horizontal"===d&&("ArrowLeft"===e.key||"ArrowRight"===e.key)||"vertical"===d&&("ArrowUp"===e.key||"ArrowDown"===e.key))&&e.stopPropagation()}},R=[C?.floating||u.EMPTY_OBJECT,A,i],P=(0,p.useRenderElement)("ul",e,{state:S,ref:n,props:R,enabled:w});return w?(0,t.jsx)(eV.Provider,{value:C,children:P}):(0,t.jsx)(eV.Provider,{value:C,children:(0,t.jsx)(eF.CompositeRoot,{render:r,className:l,style:o,state:S,refs:[n],props:R,loopFocus:!1,orientation:d,tag:"ul"})})}),eX=a.createContext(void 0);function eq(){let e=a.useContext(eX);if(!e)throw Error((0,d.default)(39));return e}let eU=a.forwardRef(function(e,n){let{render:r,className:l,style:o,value:i,...s}=e,u=(0,y.useBaseUiId)(),c=i??u,d=(0,p.useRenderElement)("li",e,{ref:n,props:s}),f=a.useMemo(()=>({value:c}),[c]);return(0,t.jsx)(eX.Provider,{value:f,children:d})});var eY=e.i(29120),eG=e.i(29479),eK=e.i(89058),eJ=e.i(35995);eJ.CommonPopupDataAttributes.open,eJ.CommonPopupDataAttributes.closed,eJ.CommonPopupDataAttributes.startingStyle,eJ.CommonPopupDataAttributes.endingStyle;let eQ={...eK.popupStateMapping,...O.transitionStatusMapping,activationDirection:e=>e?{"data-activation-direction":e}:null},eZ=a.forwardRef(function(e,n){let{render:r,className:l,style:o,keepMounted:i=!1,...c}=e,{mounted:d,viewportElement:f,value:h,activationDirection:p,currentContentRef:m,viewportTargetElement:g}=ec(),{value:v}=eq(),y=ef(),b=d&&h===v,x=a.useRef(null),[M,k]=a.useState(!1),[E,C]=a.useState(!1),{mounted:S,setMounted:A,transitionStatus:R}=(0,w.useTransitionStatus)(b);S&&!d&&A(!1),(0,W.useOpenChangeComplete)({ref:x,open:b,onComplete(){b||A(!1)}}),(0,D.useIsoLayoutEffect)(()=>{b&&x.current&&(m.current=x.current)},[b,m]);let P={open:b,transitionStatus:R,activationDirection:p},T=(0,s.useStableCallback)(e=>{e&&b&&(m.current=e)}),L={onFocus(e){let t=(0,es.getTarget)(e.nativeEvent);t?.hasAttribute("data-base-ui-focus-guard")||C(!0)},onBlur(e){(0,es.contains)(e.currentTarget,e.relatedTarget)||C(!1)}},O=!b&&S?{style:{position:"absolute",top:0,left:0},inert:(0,eG.inertValue)(!E),...L}:L,I=g||f,N=i&&!S,j=i&&!I&&!M;return(i&&I&&!M&&k(!0),j)?(0,t.jsx)(eF.CompositeRoot,{render:r,className:l,style:o,state:P,refs:[n],props:[O,{hidden:!0},c],stateAttributesMapping:eQ}):I&&(S||i)?eY.createPortal((0,t.jsx)(ei.FloatingNode,{id:y,children:(0,t.jsx)(eF.CompositeRoot,{render:r,className:l,style:o,state:P,refs:[n,x,T],props:[O,N?{hidden:!0}:u.EMPTY_OBJECT,c],stateAttributesMapping:eQ})}),I):null}),e0=.1*.1;function e1(e,t,n,r,a,l){return r>=t!=l>=t&&e<=(a-n)*(t-r)/(l-r)+n}function e2(e,t,n,r,a,l,o,i,s,u){let c=!1;return e1(e,t,n,r,a,l)&&(c=!c),e1(e,t,a,l,o,i)&&(c=!c),e1(e,t,o,i,s,u)&&(c=!c),e1(e,t,s,u,n,r)&&(c=!c),c}function e4(e,t,n,r,a,l){let o=Math.min(n,a),i=Math.max(n,a),s=Math.min(r,l),u=Math.max(r,l);return e>=o&&e<=i&&t>=s&&t<=u}var e5=e.i(72196),e6=e.i(27795);function e3(e){let{open:t=!1,onOpenChange:n,elements:r={}}=e,a=(0,e6.useId)(),l=null!=(0,ei.useFloatingParentNodeId)(),o=(0,eS.useRefWithInit)(()=>new e_.FloatingRootStore({open:t,transitionStatus:void 0,onOpenChange:n,referenceElement:r.reference??null,floatingElement:r.floating??null,triggerElements:new eB.PopupTriggerMap,floatingId:a,syncOnly:!1,nested:l})).current;return(0,D.useIsoLayoutEffect)(()=>{let e={open:t,floatingId:a};void 0!==r.reference&&(e.referenceElement=r.reference,e.domReferenceElement=(0,el.isElement)(r.reference)?r.reference:null),void 0!==r.floating&&(e.floatingElement=r.floating),o.update(e)},[t,a,r.reference,r.floating,o]),o.context.onOpenChange=n,o.context.nested=l,o}e.s(["useFloatingRootContext",()=>e3],23128);var e$=eA;let e8={current:null};var e9=e.i(23840),e7=e.i(40539),te=e.i(31651);function tt({currentTarget:e,relatedTarget:t},n){let{popupElement:r,rootRef:a,tree:l,nodeId:o}=n,i=!!l&&(0,eE.getNodeChildren)(l.nodesRef.current,o).some(e=>(0,es.contains)(e.context?.elements.floating,t));return r?!(0,es.contains)(r,e)&&!(0,es.contains)(r,t)&&!(0,es.contains)(a.current,t)&&!i:!(0,es.contains)(a.current,t)&&!i}var tn=e.i(80803);function tr(e){let{render:t,className:n,style:r,state:a=u.EMPTY_OBJECT,props:l=u.EMPTY_ARRAY,refs:o=u.EMPTY_ARRAY,metadata:i,stateAttributesMapping:s,tag:c="div",...d}=e,{compositeProps:f,compositeRef:h}=(0,tn.useCompositeItem)({metadata:i});return(0,p.useRenderElement)(c,e,{state:a,ref:[h,...o],props:[f,...l,d],stateAttributesMapping:s})}var ta=e.i(71376),tl=e.i(38374),to=e.i(35346);let ti={width:0,height:0},ts=a.forwardRef(function(e,n){let{render:r,className:l,style:o,nativeButton:i=!0,disabled:c=!1,...d}=e,{value:f,setValue:h,mounted:p,open:m,positionerElement:g,setActivationDirection:v,setFloatingRootContext:y,popupElement:w,viewportElement:M,transitionStatus:k,rootRef:E,beforeOutsideRef:C,afterOutsideRef:S,afterInsideRef:R,beforeInsideRef:P,prevTriggerElementRef:T,popupAutoSizeResetRef:L,currentContentRef:O,delay:I,closeDelay:N,orientation:j,setViewportInert:F,nested:z}=ec(),{value:W}=eq(),q=ef(),U=(0,ei.useFloatingTree)(),Y=a.useContext(eV),G=(0,to.useDirection)(),K=(0,ek.useTimeout)(),J=(0,B.useAnimationFrame)(),Q=(0,B.useAnimationFrame)(),Z=(0,B.useAnimationFrame)(),[ee,et]=a.useState(null),[en,er]=a.useState(!0),[ea,eu]=a.useState(""),ed=a.useRef(null),ey=a.useRef(ti),eb=a.useRef(!1),ex=m&&f===W,ew=(0,_.useValueAsRef)(ex),eC=(null!=g||null==f)&&!c,eS=g||M,eA=(null!=eS||null==f)&&!c,eR=(0,X.useAnimationsFinished)(w),eP=a.useCallback(e=>{ed.current=e,et(e)}
1,[]),eF=(0,s.useStableCallback)((e=!1)=>{(e||L.current.owner===W)&&(L.current.abortController?.abort(),L.current.abortController=null,L.current.owner=null)});function eB(e){e.style.setProperty(em,"auto"),e.style.setProperty(eg,"auto")}function e_(e,t){e.style.removeProperty(em),e.style.removeProperty(eg),t.style.removeProperty(eh),t.style.removeProperty(ep)}function eH(e){eF(!0);let t=new AbortController;L.current.abortController=t,L.current.owner=W,eR(()=>{L.current.abortController=null,L.current.owner=null,eB(e)},t.signal)}(0,D.useIsoLayoutEffect)(()=>{ex||(J.cancel(),Z.cancel(),eF())},[ex,J,Z,eF]);let eW=(0,s.useStableCallback)((e,t,n,r)=>{eF(!0),e_(e,t);let{width:a,height:l}=(0,ta.getCssDimensions)(e),o=a||ey.current.width,i=l||ey.current.height;(0===r||0===n)&&(n=o,r=i),e.style.setProperty(em,`${n}px`),e.style.setProperty(eg,`${r}px`),t.style.setProperty(eh,`${o}px`),t.style.setProperty(ep,`${i}px`),Z.request(()=>{ew.current&&(e.style.setProperty(em,`${o}px`),e.style.setProperty(eg,`${i}px`),eH(e))})}),eX=(0,s.useStableCallback)((e,t,n,r)=>{Z.cancel(),J.cancel(),eF(!0),0!==n&&0!==r&&(ev(e,t,n,r),J.request(()=>{J.request(()=>{e_(e,t);let{width:a,height:l}=(0,ta.getCssDimensions)(e),o=a||n,i=l||r;ev(e,t,n,r),Z.request(()=>{ew.current&&(ev(e,t,o,i),eH(e))})})}))}),eU=(0,s.useStableCallback)((e,t)=>{Z.cancel(),eF(!0),e_(e,t);let{width:n,height:r}=(0,ta.getCssDimensions)(e);0!==n&&0!==r&&(ey.current={width:n,height:r},eB(e),t.style.setProperty(eh,`${n}px`),t.style.setProperty(ep,`${r}px`))}),eG=(0,s.useStableCallback)(e=>{let t=e.style.getPropertyValue(em),n=e.style.getPropertyValue(eg);return""===t||"auto"===t||""===n||"auto"===n?{size:ey.current,syncPositioner:!1}:{size:{width:e.offsetWidth||ey.current.width,height:e.offsetHeight||ey.current.height},syncPositioner:!0}});a.useEffect(()=>{m||(K.clear(),J.cancel(),Q.cancel(),Z.cancel(),eF(!0),eb.current=!1,eu(""))},[K,m,J,Q,Z,eF]),a.useEffect(()=>{p||(ey.current=ti)},[p]),(0,D.useIsoLayoutEffect)(()=>{if(!w||"function"!=typeof ResizeObserver)return;let e=new ResizeObserver(()=>{ey.current={width:w.offsetWidth,height:w.offsetHeight}});return e.observe(w),()=>{e.disconnect()}},[w]),a.useEffect(()=>{if(!m||!ex||!w||!g)return;let e=(0,H.ownerWindow)(g),t=(0,V.addEventListener)(e,"resize",function(){Q.cancel(),Q.request(()=>eU(w,g))});return()=>{Q.cancel(),t()}},[m,ex,w,g,Q,eU]),a.useEffect(()=>{let e=O.current;if(!e||!w||!g||!ex||"function"!=typeof MutationObserver)return;let t=new MutationObserver(()=>{if("starting"===k||w.hasAttribute(A.TransitionStatusDataAttributes.startingStyle))return void eU(w,g);let{size:e,syncPositioner:t}=eG(w);t?eX(w,g,e.width,e.height):eW(w,g,e.width,e.height)});return t.observe(e,{childList:!0,subtree:!0,characterData:!0,attributes:!0,attributeFilter:["hidden"]}),()=>{t.disconnect()}},[O,w,g,ex,k,eG,eX,eW,eU]),(0,D.useIsoLayoutEffect)(()=>{if(ew.current&&m&&w&&g){if(eb.current){eb.current=!1;return}let{width:e,height:t}=(0,ta.getCssDimensions)(w);eW(w,g,e,t)}},[O,eW,ew,m,w,g,k]);let eJ=e3({open:m,onOpenChange:function(e,t){let n=t.reason===x.REASONS.triggerHover;function r(){n&&(er(!0),K.clear(),K.start(e7.PATIENT_CLICK_THRESHOLD,()=>{er(!1)})),e?h(W,t):(h(null,t),eu(""))}eC&&("touch"!==ea||!n)&&(e||f===W)&&(n?eY.flushSync(r):r())},elements:{reference:ee,floating:eS}}),eQ=eO(eJ),eZ="touch"!==ea;a.useEffect(()=>(m||(eJ.context.dataRef.current.openEvent=void 0,eQ.pointerType=void 0,eQ.interactedInside=!1,eQ.restTimeoutPending=!1,eQ.openChangeTimeout.clear(),eQ.restTimeout.clear()),()=>{eT(eQ)}),[eJ,eQ,m]);let e1=(0,s.useStableCallback)(()=>z&&!g&&ed.current&&eS?function(e,t,n){let r,a,l,o,i,s,u,c;return{placement:(r=e.getBoundingClientRect(),a=t.getBoundingClientRect(),l=r.left+r.width/2,o=r.top+r.height/2,i=a.left+a.width/2,s=a.top+a.height/2,Math.abs(u=i-l)>=Math.abs(c=s-o)?u>=0?"right":"left":c>=0?"bottom":"top"),elements:{domReference:e,floating:t},nodeId:n}}(ed.current,eS,q):null);function e6(){return z&&g?null:ed.current?.closest("ul")??null}let tn=function(e,t={}){let{enabled:n=!0,delay:r=0,handleClose:l=null,mouseOnly:o=!1,restMs:i=0,move:u=!0,triggerElementRef:c=e8,externalTree:d,isActiveTrigger:f=!0,getHandleCloseContext:h,isClosing:p,shouldOpen:m,guardStaleOpen:g=!1}=t,v="rootStore"in e?e.rootStore:e,{dataRef:y,events:w}=v.context,M=(0,ei.useFloatingTree)(d),k=eO(v),E=a.useRef(!1),C=(0,_.useValueAsRef)(l),S=(0,_.useValueAsRef)(r),A=(0,_.useValueAsRef)(i),R=(0,_.useValueAsRef)(n),P=(0,_.useValueAsRef)(m),T=(0,_.useValueAsRef)(p),L=(0,s.use
1StableCallback)(()=>eD(y.current.openEvent?.type,k.interactedInside)),O=(0,s.useStableCallback)(()=>P.current?.()!==!1),I=(0,s.useStableCallback)((e,t,n)=>{let r=v.context.triggerElements;return r.hasElement(t)?!e||!(0,es.contains)(e,t):!!(0,el.isElement)(n)&&r.hasMatchingElement(e=>(0,es.contains)(e,n))&&(!e||!(0,es.contains)(e,n))}),N=(0,s.useStableCallback)(()=>{k.handler&&((0,eo.ownerDocument)(v.select("domReferenceElement")).removeEventListener("mousemove",k.handler),k.handler=void 0)}),j=(0,s.useStableCallback)(()=>{eT(k)});return f&&(k.handleCloseOptions=l?.__options),a.useEffect(()=>N,[N]),a.useEffect(()=>{if(n)return w.on("openchange",e),()=>{w.off("openchange",e)};function e(e){e.open?E.current=!1:(E.current=e.reason===x.REASONS.triggerHover,N(),k.openChangeTimeout.clear(),k.restTimeout.clear(),k.blockMouseMove=!0,k.restTimeoutPending=!1)}},[n,w,k,N]),a.useEffect(()=>{if(!n)return;function e(t,n=!0){let r=eN(S.current,"close",k.pointerType);r?k.openChangeTimeout.start(r,()=>{v.setOpen(!1,(0,b.createChangeEventDetails)(x.REASONS.triggerHover,t)),M?.events.emit("floating.closed",t)}):n&&(k.openChangeTimeout.clear(),v.setOpen(!1,(0,b.createChangeEventDetails)(x.REASONS.triggerHover,t)),M?.events.emit("floating.closed",t))}let t=c.current??(f?v.select("domReferenceElement"):null);if(!(0,el.isElement)(t))return;function r(e){if(k.openChangeTimeout.clear(),k.blockMouseMove=!1,o&&!(0,eI.isMouseLikePointerType)(k.pointerType))return;let t=ej(A.current),n=eN(S.current,"open",k.pointerType),r=(0,es.getTarget)(e),a=e.currentTarget??null,l=v.select("domReferenceElement"),i=a;if((0,el.isElement)(r)&&!v.context.triggerElements.hasElement(r)){for(let e of v.context.triggerElements.elements())if((0,es.contains)(e,r)){i=e;break}}(0,el.isElement)(a)&&(0,el.isElement)(l)&&!v.context.triggerElements.hasElement(a)&&(0,es.contains)(a,l)&&(i=l);let s=null!=i&&I(l,i,r),u=v.select("open"),c=T.current?.()??"ending"===v.select("transitionStatus"),d=!u&&c&&E.current,f=!s&&(0,el.isElement)(i)&&(0,el.isElement)(l)&&(0,es.contains)(l,i)&&d,h=t>0&&!n,p=!u||s;if(s&&(u||d)||f){O()&&v.setOpen(!0,(0,b.createChangeEventDetails)(x.REASONS.triggerHover,e,i));return}!h&&(n?k.openChangeTimeout.start(n,()=>{p&&O()&&v.setOpen(!0,(0,b.createChangeEventDetails)(x.REASONS.triggerHover,e,i))}):p&&O()&&v.setOpen(!0,(0,b.createChangeEventDetails)(x.REASONS.triggerHover,e,i)))}function a(t){if(L())return void j();N();let n=v.select("domReferenceElement"),r=(0,eo.ownerDocument)(n);k.restTimeout.clear(),k.restTimeoutPending=!1;let a=y.current.floatingContext??h?.();if(!(0,e$.isTargetInsideEnabledTrigger)(t.relatedTarget,v.context.triggerElements)){if(C.current&&a){v.select("open")||k.openChangeTimeout.clear();let n=c.current;k.handler=C.current({...a,tree:M,x:t.clientX,y:t.clientY,onClose(){j(),N(),R.current&&!L()&&n===v.select("domReferenceElement")&&e(t,!0)}}),r.addEventListener("mousemove",k.handler),k.handler(t);return}"touch"===k.pointerType&&(0,es.contains)(v.select("floatingElement"),t.relatedTarget)||e(t)}}let l=g?(0,V.addEventListener)(t,"mouseout",function(e){(0,es.contains)(t,e.relatedTarget)||(k.openChangeTimeout.clear(),k.restTimeout.clear(),k.restTimeoutPending=!1)}):void 0;return u?(0,eM.mergeCleanups)((0,V.addEventListener)(t,"mousemove",r,{once:!0}),(0,V.addEventListener)(t,"mouseenter",r),(0,V.addEventListener)(t,"mouseleave",a),l):(0,eM.mergeCleanups)((0,V.addEventListener)(t,"mouseenter",r),(0,V.addEventListener)(t,"mouseleave",a),l)},[N,j,y,S,v,n,C,k,f,I,L,o,u,A,c,M,R,h,T,O,g]),a.useMemo(()=>{if(n)return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){let{nativeEvent:t}=e,n=e.currentTarget,r=v.select("domReferenceElement"),a=v.select("open"),l=I(r,n,e.target);if(o&&!(0,eI.isMouseLikePointerType)(k.pointerType))return;if(a&&l&&k.handleCloseOptions?.blockPointerEvents){let e=v.select("floatingElement");if(e){let t=k.handleCloseOptions?.getScope?.()??n.ownerDocument.body;eL(k,{scopeElement:t,referenceElement:n,floatingElement:e})}}let i=ej(A.current);function s(){if(k.restTimeoutPending=!1,L())return;let e=v.select("open");!k.blockMouseMove&&(!e||l)&&O()&&v.setOpen(!0,(0,b.createChangeEventDetails)(x.REASONS.triggerHover,t,n))}(!a||l)&&0!==i&&(!l&&k.restTimeoutPending&&e.movementX**2+e.movementY**2<2||(k.restTimeout.clear(),"touch"===k.pointerType?eY.flushSync(()=>{s()}):l&&a?s():(k.restTimeoutPending=!0,k.restTimeout.start(i,s))))}};function e(e){k.pointerType=e.pointerType}},[n,k,L,I,o,v,A,O])}(eJ,{enabled:eA,move:!1,handleClose:function(e={}){let{blockPointerEvents:t=!1}=e,n=new ek.Timeout,r=({x:e,y:t,placement:r,elements:a,onClose:l,nodeId:o,tree:i})=>{let s=r?.split("-")[0],u=!1,c=null,d=null,f="undefined"!=typeof performance?performance.now():0;return function(r){n.clear();let h=a.domReference,p=a.floating;if(!h||!p||null==s||null==e||null==t)return;let{clientX:m,clientY:g}=r,v=(0,es.getTarget)(r),y="mouseleave"===r.type,b=(0,es.contains)(p,v),x=(0,es.contains)(h,v);
1if(b&&(u=!0,!y))return;if(x&&(u=!1,!y)){u=!0;return}if(y&&(0,el.isElement)(r.relatedTarget)&&(0,es.contains)(p,r.relatedTarget))return;function w(){return!!(i&&(0,eE.getNodeChildren)(i.nodesRef.current,o).length>0)}function M(){w()||(n.clear(),l())}if(w())return;let k=h.getBoundingClientRect(),E=p.getBoundingClientRect(),C=e>E.right-E.width/2,S=t>E.bottom-E.height/2,A=E.width>k.width,R=E.height>k.height,P=(A?k:E).left,T=(A?k:E).right,L=(R?k:E).top,O=(R?k:E).bottom;if("top"===s&&t>=k.bottom-1||"bottom"===s&&t<=k.top+1||"left"===s&&e>=k.right-1||"right"===s&&e<=k.left+1)return void M();let I=!1;switch(s){case"top":I=e4(m,g,P,k.top+1,T,E.bottom-1);break;case"bottom":I=e4(m,g,P,E.top+1,T,k.bottom-1);break;case"left":I=e4(m,g,E.right-1,O,k.left+1,L);break;case"right":I=e4(m,g,k.right-1,O,E.left+1,L)}if(I)return;if(u&&(!(m>=k.x)||!(m<=k.x+k.width)||!(g>=k.y)||!(g<=k.y+k.height))||!y&&function(e,t){let n=performance.now(),r=n-f;if(null===c||null===d||0===r)return c=e,d=t,f=n,!1;let a=e-c,l=t-d;return c=e,d=t,f=n,a*a+l*l<r*r*e0}(m,g))return void M();let N=!1;switch(s){case"top":{let n=A?.25:2,r=t+.5+1,a=C||A?E.bottom-.5:E.top,l=C?A?E.bottom-.5:E.top:E.bottom-.5;N=e2(m,g,A||C?e+n:e-n,r,A?e-n:C?e+n:e-n,r,E.left,a,E.right,l);break}case"bottom":{let n=A?.25:2,r=t-.5,a=C||A?E.top+.5:E.bottom,l=C?A?E.top+.5:E.bottom:E.top+.5;N=e2(m,g,A||C?e+n:e-n,r,A?e-n:C?e+n:e-n,r,E.left,a,E.right,l);break}case"left":{let n=R?.25:2,r=e+.5+1,a=S||R?E.right-.5:E.left,l=S?R?E.right-.5:E.left:E.right-.5;N=e2(m,g,a,E.top,l,E.bottom,r,R||S?t+n:t-n,r,R?t-n:S?t+n:t-n);break}case"right":{let n=R?.25:2,r=e-.5,a=S||R?E.left+.5:E.right,l=S?R?E.left+.5:E.right:E.left+.5;N=e2(m,g,r,R||S?t+n:t-n,r,R?t-n:S?t+n:t-n,a,E.top,l,E.bottom)}}N?u||n.start(40,M):M()}};return r.__options={...e,blockPointerEvents:t},r}({blockPointerEvents:eZ,getScope:e6}),restMs:p&&g?0:I,delay:{close:N},triggerElementRef:ed,getHandleCloseContext:e1}),ts=a.useMemo(()=>tn?{reference:tn}:void 0,[tn]),tu=(0,e5.useClick)(eJ,{enabled:eC,stickIfOpen:en,toggle:ex}),tc=a.useMemo(()=>(0,tl.mergeProps)(tu.reference,ts?.reference),[tu.reference,ts]);function td(e){eY.flushSync(()=>{let t=e.currentTarget,n=T.current?.getBoundingClientRect();if(p&&n&&ee){let e=ee.getBoundingClientRect(),t=e.left>n.left,r=e.top>n.top;"horizontal"===j&&e.left!==n.left?v(t?"right":"left"):"vertical"===j&&e.top!==n.top&&v(r?"down":"up")}if("click"!==e.type&&null!=f&&(eJ.context.dataRef.current.openEvent=void 0),("touch"!==ea||"click"===e.type)&&(null!=f&&"keydown"!==e.type&&h(W,(0,b.createChangeEventDetails)("mouseenter"===e.type?x.REASONS.triggerHover:x.REASONS.triggerPress,e.nativeEvent)),"mouseenter"===e.type&&eZ&&(!z||!g)&&eS)){let e=()=>{eL(eQ,{scopeElement:e6()??t.ownerDocument.body,referenceElement:t,floatingElement:eS})};null!=f&&f!==W?queueMicrotask(e):e()}})}(0,D.useIsoLayoutEffect)(()=>{ex&&(y(eJ),T.current=ee)},[ex,eJ,y,T,ee]);let tf=(0,s.useStableCallback)(e=>{if(c)return;if(!w||!g)return void td(e);let{width:t,height:n}=(0,ta.getCssDimensions)(w),r=null!=f&&f!==W&&("click"===e.type||"touch"!==ea);td(e),r&&(eb.current=!0),eW(w,g,t,n)});function th(e){eu(e.pointerType)}let tp={tabIndex:0,onMouseEnter:tf,onClick:tf,onPointerEnter:th,onPointerDown:function(e){th(e),eT(eQ)},"aria-expanded":ex,"aria-controls":ex?w?.id:void 0,[ez]:"",onFocus(){ex&&F(!1)},onMouseLeave(){null==f&&eT(eQ)},onKeyDown(e){if(z)return;let t="horizontal"===j&&"ArrowDown"===e.key,n="vertical"===j&&e.key===("rtl"===G?"ArrowLeft":"ArrowRight");(t||n)&&(h(W,(0,b.createChangeEventDetails)(x.REASONS.listNavigation,e.nativeEvent)),tf(e),(0,eI.stopEvent)(e))},onBlur(e){g&&w&&tt({currentTarget:e.currentTarget,relatedTarget:e.relatedTarget},{popupElement:w,rootRef:E,tree:U,nodeId:q})&&h(null,(0,b.createChangeEventDetails)(x.REASONS.focusOut,e.nativeEvent))}},{getButtonProps:tm,buttonRef:tg}=(0,$.useButton)({disabled:c,focusableWhenDisabled:!0,native:i});return(0,t.jsxs)(a.Fragment,{children:[(0,t.jsx)(tr,{tag:"button",render:r,className:l,style:o,state:{open:ex,disabled:c},stateAttributesMapping:eK.pressableTriggerOpenStateMapping,refs:[n,eP,tg],props:[tc,Y?.reference||u.EMPTY_ARRAY,tp,d,tm]}),ex&&(0,t.jsxs)(a.Fragment,{children:[(0,t.jsx)(te.FocusGuard,{ref:C,onFocus:e=>{if(eS&&(0,e9.isOutsideEvent)(e,eS))P.current?.focus();else{let e=(0,e9.getPreviousTabbable)(ee);e?.focus()}}}),(0,t.jsx)("span",{"aria-owns":M?.id,style:e7.ownerVisuallyHidden}),(0,t.jsx)(te.FocusGuard,{ref:S,onFocus:e=>{if(eS&&(0,e9.isOutsideEvent)(e,eS)){eY.flushSync(()=>{F(!1)});let e=R.current||ee;e?.focus()}else{let t=(0,e9.getNextTabbable)(ee);z&&!g&&eS&&t&&(0,es.contains)(eS,t)&&(t=(0,e9.getTabbableAfterElement)(R.current)),t?.focus(),z&&!g||(0,es.contains)(E.current,t)||h(null,(0,b.createChangeEventDetails)(x.REASONS.focusOut,e.nativeEvent))}}})]})]})});var tu=e.i(49851);let tc=a.createContext(void 0),td=a.forwardRef(function(e,n){let{keepMounted:r=!1,...a}
1=e,{mounted:l}=ec();return l||r?(0,t.jsx)(tc.Provider,{value:r,children:(0,t.jsx)(tu.FloatingPortal,{ref:n,...a})}):null});var tf=e.i(10242);function th(e,t,n){let r,{reference:a,floating:l}=e,o=(0,tf.getSideAxis)(t),i=(0,tf.getAlignmentAxis)(t),s=(0,tf.getAxisLength)(i),u=(0,tf.getSide)(t),c=a.x+a.width/2-l.width/2,d=a.y+a.height/2-l.height/2,f=a[s]/2-l[s]/2;switch(u){case"top":r={x:c,y:a.y-l.height};break;case"bottom":r={x:c,y:a.y+a.height};break;case"right":r={x:a.x+a.width,y:d};break;case"left":r={x:a.x-l.width,y:d};break;default:r={x:a.x,y:a.y}}let h=(0,tf.getAlignment)(t);return h&&(r[i]+=f*("end"===h?1:-1)*(n&&"y"===o?-1:1)),r}async function tp(e,t){var n;void 0===t&&(t={});let{x:r,y:a,platform:l,rects:o,elements:i,strategy:s}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:f=!1,padding:h=0}=(0,tf.evaluate)(t,e),p=(0,tf.getPaddingObject)(h),m=i[f?"floating"===d?"reference":"floating":d],g=(0,tf.rectToClientRect)(await l.getClippingRect({element:null==(n=await (null==l.isElement?void 0:l.isElement(m)))||n?m:m.contextElement||await (null==l.getDocumentElement?void 0:l.getDocumentElement(i.floating)),boundary:u,rootBoundary:c,strategy:s})),v="floating"===d?{x:r,y:a,width:o.floating.width,height:o.floating.height}:o.reference,y=await (null==l.getOffsetParent?void 0:l.getOffsetParent(i.floating)),b=await (null==l.isElement?void 0:l.isElement(y))&&await (null==l.getScale?void 0:l.getScale(y))||{x:1,y:1},x=(0,tf.rectToClientRect)(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:v,offsetParent:y,strategy:s}):v);return{top:(g.top-x.top+p.top)/b.y,bottom:(x.bottom-g.bottom+p.bottom)/b.y,left:(g.left-x.left+p.left)/b.x,right:(x.right-g.right+p.right)/b.x}}let tm=async(e,t,n)=>{let{placement:r="bottom",strategy:a="absolute",middleware:l=[],platform:o}=n,i=o.detectOverflow?o:{...o,detectOverflow:tp},s=await (null==o.isRTL?void 0:o.isRTL(t)),u=await o.getElementRects({reference:e,floating:t,strategy:a}),{x:c,y:d}=th(u,r,s),f=r,h=0,p={};for(let n=0;n<l.length;n++){let m=l[n];if(!m)continue;let{name:g,fn:v}=m,{x:y,y:b,data:x,reset:w}=await v({x:c,y:d,initialPlacement:r,placement:f,strategy:a,middlewareData:p,rects:u,platform:i,elements:{reference:e,floating:t}});c=null!=y?y:c,d=null!=b?b:d,p[g]={...p[g],...x},w&&h<50&&(h++,"object"==typeof w&&(w.placement&&(f=w.placement),w.rects&&(u=!0===w.rects?await o.getElementRects({reference:e,floating:t,strategy:a}):w.rects),{x:c,y:d}=th(u,f,s)),n=-1)}return{x:c,y:d,placement:f,strategy:a,middlewareData:p}};function tg(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function tv(e){return tf.sides.some(t=>e[t]>=0)}function ty(e){let t=(0,tf.min)(...e.map(e=>e.left)),n=(0,tf.min)(...e.map(e=>e.top));return{x:t,y:n,width:(0,tf.max)(...e.map(e=>e.right))-t,height:(0,tf.max)(...e.map(e=>e.bottom))-n}}let tb=new Set(["left","top"]);async function tx(e,t){let{placement:n,platform:r,elements:a}=e,l=await (null==r.isRTL?void 0:r.isRTL(a.floating)),o=(0,tf.getSide)(n),i=(0,tf.getAlignment)(n),s="y"===(0,tf.getSideAxis)(n),u=tb.has(o)?-1:1,c=l&&s?-1:1,d=(0,tf.evaluate)(t,e),{mainAxis:f,crossAxis:h,alignmentAxis:p}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return i&&"number"==typeof p&&(h="end"===i?-1*p:p),s?{x:h*c,y:f*u}:{x:f*u,y:h*c}}function tw(e){let t=(0,el.getComputedStyle)(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,a=(0,el.isHTMLElement)(e),l=a?e.offsetWidth:n,o=a?e.offsetHeight:r,i=(0,tf.round)(n)!==l||(0,tf.round)(r)!==o;return i&&(n=l,r=o),{width:n,height:r,$:i}}function tM(e){return(0,el.isElement)(e)?e:e.contextElement}function tk(e){let t=tM(e);if(!(0,el.isHTMLElement)(t))return(0,tf.createCoords)(1);let n=t.getBoundingClientRect(),{width:r,height:a,$:l}=tw(t),o=(l?(0,tf.round)(n.width):n.width)/r,i=(l?(0,tf.round)(n.height):n.height)/a;return o&&Number.isFinite(o)||(o=1),i&&Number.isFinite(i)||(i=1),{x:o,y:i}}let tE=(0,tf.createCoords)(0);function tC(e){let t=(0,el.getWindow)(e);
vendor: 4,289 bytes, line 1
1return(0,el.isWebKit)()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:tE}function tS(e,t,n,r){var a;void 0===t&&(t=!1),void 0===n&&(n=!1);let l=e.getBoundingClientRect(),o=tM(e),i=(0,tf.createCoords)(1);t&&(r?(0,el.isElement)(r)&&(i=tk(r)):i=tk(e));let s=(void 0===(a=n)&&(a=!1),r&&a&&r===(0,el.getWindow)(o))?tC(o):(0,tf.createCoords)(0),u=(l.left+s.x)/i.x,c=(l.top+s.y)/i.y,d=l.width/i.x,f=l.height/i.y;if(o&&r){let e=(0,el.getWindow)(o),t=(0,el.isElement)(r)?(0,el.getWindow)(r):r,n=e,a=(0,el.getFrameElement)(n);for(;a&&t!==n;){let e=tk(a),t=a.getBoundingClientRect(),r=(0,el.getComputedStyle)(a),l=t.left+(a.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(a.clientTop+parseFloat(r.paddingTop))*e.y;u*=e.x,c*=e.y,d*=e.x,f*=e.y,u+=l,c+=o,n=(0,el.getWindow)(a),a=(0,el.getFrameElement)(n)}}return(0,tf.rectToClientRect)({width:d,height:f,x:u,y:c})}function tA(e,t){let n=(0,el.getNodeScroll)(e).scrollLeft;return t?t.left+n:tS((0,el.getDocumentElement)(e)).left+n}function tR(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-tA(e,n),y:n.top+t.scrollTop}}function tP(e,t,n){var r;let a;if("viewport"===t||"layoutViewport"===t)a=function(e,t,n){void 0===n&&(n="viewport");let r="layoutViewport"===n,a=(0,el.getWindow)(e),l=(0,el.getDocumentElement)(e),o=a.visualViewport,i=l.clientWidth,s=l.clientHeight,u=0,c=0;if(o){let e=!(0,el.isWebKit)()||"fixed"===t;r?e||(u=-o.offsetLeft,c=-o.offsetTop):(i=o.width,s=o.height,e&&(u=o.offsetLeft,c=o.offsetTop))}if(0>=tA(l)){let e=l.ownerDocument,t=e.body,n=getComputedStyle(t),r="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,a=Math.abs(l.clientWidth-t.clientWidth-r),o="stable both-edges"===getComputedStyle(l).scrollbarGutter?a/2:a;o<=25&&(i-=o)}return{width:i,height:s,x:u,y:c}}(e,n,t);else if("document"===t){let t,n,l,o,i,s;r=(0,el.getDocumentElement)(e),t=(0,el.getNodeScroll)(r),n=r.ownerDocument.body,l=(0,tf.max)(r.scrollWidth,r.clientWidth,n.scrollWidth,n.clientWidth),o=(0,tf.max)(r.scrollHeight,r.clientHeight,n.scrollHeight,n.clientHeight),i=-t.scrollLeft+tA(r),s=-t.scrollTop,"rtl"===(0,el.getComputedStyle)(n).direction&&(i+=(0,tf.max)(r.clientWidth,n.clientWidth)-l),a={width:l,height:o,x:i,y:s}}else if((0,el.isElement)(t)){let e,r,l,o,i,s;r=(e=tS(t,!0,"fixed"===n)).top+t.clientTop,l=e.left+t.clientLeft,o=tk(t),i=t.clientWidth*o.x,s=t.clientHeight*o.y,a={width:i,height:s,x:l*o.x,y:r*o.y}}else{let n=tC(e);a={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return(0,tf.rectToClientRect)(a)}function tT(e){return"static"===(0,el.getComputedStyle)(e).position}function tL(e,t){if(!(0,el.isHTMLElement)(e)||"fixed"===(0,el.getComputedStyle)(e).position)return null;if(t)return t(e);let n=e.offsetParent;return(0,el.getDocumentElement)(e)===n&&(n=n.ownerDocument.body),n}function tO(e,t){let n=(0,el.getWindow)(e);if((0,el.isTopLayer)(e))return n;if(!(0,el.isHTMLElement)(e)){let t=(0,el.getParentNode)(e);for(;t&&!(0,el.isLastTraversableNode)(t);){if((0,el.isElement)(t)&&!tT(t))return t;t=(0,el.getParentNode)(t)}return n}let r=tL(e,t);for(;r&&(0,el.isTableElement)(r)&&tT(r);)r=tL(r,t);return r&&(0,el.isLastTraversableNode)(r)&&tT(r)&&!(0,el.isContainingBlock)(r)?n:r||(0,el.getContainingBlock)(e)||n}let tI=async function(e){let t=this.getOffsetParent||tO,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=(0,el.isHTMLElement)(t),a=(0,el.getDocumentElement)(t),l="fixed"===n,o=tS(e,!0,l,t),i={scrollLeft:0,scrollTop:0},s=(0,tf.createCoords)(0);if((r||!l)&&(("body"!==(0,el.getNodeName)(t)||(0,el.isOverflowElement)(a))&&(i=(0,el.getNodeScroll)(t)),r)){let e=tS(t,!0,l,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}!r&&a&&(s.x=tA(a));let u=!a||r||l?(0,tf.createCoords)(0):tR(a,i);return{x:o.left+i.scrollLeft-s.x-u.x,y:o.top+i.scrollTop-s.y-u.y,width:o.width,height:o.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},tN={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:a}=e,l="fixed"===a,o=(0,el.getDocumentElement)(r),i=!!t&&(0,el.isTopLayer)(t.floating);if(r===o||i&&l)return n;let s={scrollLeft:0,scrollTop:0},u=(0,tf.createCoords)(1),c=(0,tf.createCoords)(0),d=(0,el.isHTMLElement)(r);
1if((d||!l)&&(("body"!==(0,el.getNodeName)(r)||(0,el.isOverflowElement)(o))&&(s=(0,el.getNodeScroll)(r)),d)){let e=tS(r);u=tk(r),c.x=e.x+r.clientLeft,c.y=e.y+r.clientTop}let f=!o||d||l?(0,tf.createCoords)(0):tR(o,s);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-s.scrollLeft*u.x+c.x+f.x,y:n.y*u.y-s.scrollTop*u.y+c.y+f.y}},getDocumentElement:el.getDocumentElement,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:a}=e,l=[..."clippingAncestors"===n?(0,el.isTopLayer)(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=(0,el.getOverflowAncestors)(e,[],!1).filter(e=>(0,el.isElement)(e)&&"body"!==(0,el.getNodeName)(e)),a=null,l="fixed"===(0,el.getComputedStyle)(e).position,o=l?(0,el.getParentNode)(e):e;for(;(0,el.isElement)(o)&&!(0,el.isLastTraversableNode)(o);){let e=(0,el.getComputedStyle)(o),t=(0,el.isContainingBlock)(o),n=a?a.position:l?"fixed":"";t||"fixed"!==n&&("absolute"!==n||"static"!==e.position)?a=e:r=r.filter(e=>e!==o),o=(0,el.getParentNode)(o)}return t.set(e,r),r}(t,this._c):[].concat(n),r],o=tP(t,l[0],a),i=o.top,s=o.right,u=o.bottom,c=o.left;for(let e=1;e<l.length;e++){let n=tP(t,l[e],a);i=(0,tf.max)(n.top,i),s=(0,tf.min)(n.right,s),u=(0,tf.min)(n.bottom,u),c=(0,tf.max)(n.left,c)}return{width:s-c,height:u-i,x:c,y:i}},getOffsetParent:tO,getElementRects:tI,getClientRects:function(e){return e.getClientRects?Array.from(e.getClientRects()):[]},getDimensions:function(e){let{width:t,height:n}=tw(e);return{width:t,height:n}},getScale:tk,isElement:el.isElement,isRTL:function(e){return"rtl"===(0,el.getComputedStyle)(e).direction}};function tj(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function tD(e,t,n,r){let a;void 0===r&&(r={});let{ancestorScroll:l=!0,ancestorResize:o=!0,elementResize:i="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:u=!1}=r,c=tM(e),d=l||o?[...c?(0,el.getOverflowAncestors)(c):[],...t?(0,el.getOverflowAncestors)(t):[]]:[];d.forEach(e=>{l&&e.addEventListener("scroll",n),o&&e.addEventListener("resize",n)});let f=c&&s?function(e,t,n){let r,a=null,l=(0,el.getDocumentElement)(e);function o(){var e;clearTimeout(r),null==(e=a)||e.disconnect(),a=null}function i(n,s){void 0===n&&(n=!1),void 0===s&&(s=1),o();let u=e.getBoundingClientRect(),{left:c,top:d,width:f,height:h}=u;if(n||t(),!f||!h)return;let p={rootMargin:-(0,tf.floor)(d)+"px "+-(0,tf.floor)(l.clientWidth-(c+f))+"px "+-(0,tf.floor)(l.clientHeight-(d+h))+"px "+-(0,tf.floor)(c)+"px",threshold:(0,tf.max)(0,(0,tf.min)(1,s))||1},m=!0;function g(t){let n=t[0].intersectionRatio;if(!tj(u,e.getBoundingClientRect()))return i();if(n!==s){if(!m)return i();n?i(!1,n):r=setTimeout(()=>{i(!1,1e-7)},1e3)}m=!1}try{a=new IntersectionObserver(g,{...p,root:l.ownerDocument})}catch(e){a=new IntersectionObserver(g,p)}a.observe(e)}let s=(0,el.getWindow)(e),u=()=>i(n);return s.addEventListener("resize",u),i(!0),()=>{s.removeEventListener("resize",u),o()}}(c,n,o):null,h=-1,p=null;i&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===c&&p&&t&&(p.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var e;null==(e=p)||e.observe(t)})),n()}),c&&!u&&p.observe(c),t&&p.observe(t));let m=u?tS(e):null;return u&&function t(){let r=tS(e);m&&!tj(m,r)&&n(),m=r,a=requestAnimationFrame(t)}(),n(),()=>{var e;d.forEach(e=>{l&&e.removeEventListener("scroll",n),o&&e.removeEventListener("resize",n)}),null==f||f(),null==(e=p)||e.disconnect(),p=null,u&&cancelAnimationFrame(a)}}let t$=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;let{x:a,y:l,placement:o,middlewareData:i}=t,s=await tx(t,e);return o===(null==(n=i.offset)?void 0:n.placement)&&null!=(r=i.arrow)&&r.alignmentOffset?{}:{x:a+s.x,y:l+s.y,data:{...s,placement:o}}}}},tF=function(e){return void 0===e&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,r,a,l;let{rects:o,middlewareData:i,placement:s,platform:u,elements:c}=t,{crossAxis:d=!1,alignment:f,allowedPlacements:h=tf.placements,autoAlignment:p=!0,...m}=(0,tf.evaluate)(e,t),g=void 0!==f||h===tf.placements?((l=f||null)?[...h.filter(e=>(0,tf.getAlignment)(e)===l),...h.filter(e=>(0,tf.getAlignment)(e)!==l)]:h.filter(e=>(0,tf.getSide)(e)===e)).filter(e=>!l||(0,tf.getAlignment)(e)===l||!!p&&(0,tf.getOppositeAlignmentPlacement)(e)!==e):h,v=(null==(n=i.autoPlacement)?void 0:n.index)||0,y=g[v];if(null==y)return{};if(s!==y)return{reset:{placement:g[0]}};let b=await u.detectOverflow(t,m),x=(0,tf.getAlignmentSides)(y,o,await (null==u.isRTL?void 0:u.isRTL(c.floating))),w=[b[(0,tf.getSide)(y)],b[x[0]],b[x[1]]],M=[...(null==(r=i.autoPlacement)?void 0:r.overflows)||[],{placement:y,overflows:w}],k=g[v+1];if(k)return{data:{index:v+1,overflows:M},reset:{placement:k}};let E=M.map(e=>{let t=(0,tf.getAlignment)(e.placement);return[e.placement,t&&d?e.overflows.slice(0,2).reduce((e,t)=>
1e+t,0):e.overflows[0],e.overflows]}).sort((e,t)=>e[1]-t[1]),C=(null==(a=E.filter(e=>e[2].slice(0,(0,tf.getAlignment)(e[0])?2:3).every(e=>e<=0))[0])?void 0:a[0])||E[0][0];return C!==s?{data:{index:v+1,overflows:M},reset:{placement:C}}:{}}}},tz=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:r,placement:a,platform:l}=t,{mainAxis:o=!0,crossAxis:i=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...u}=(0,tf.evaluate)(e,t),c={x:n,y:r},d=await l.detectOverflow(t,u),f=(0,tf.getSideAxis)(a),h=(0,tf.getOppositeAxis)(f),p=c[h],m=c[f],g=(e,t)=>(0,tf.clamp)(t+d["y"===e?"top":"left"],t,t-d["y"===e?"bottom":"right"]);o&&(p=g(h,p)),i&&(m=g(f,m));let v=s.fn({...t,[h]:p,[f]:m});return{...v,data:{x:v.x-n,y:v.y-r,enabled:{[h]:o,[f]:i}}}}}},tV=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r,a,l,o;let{placement:i,middlewareData:s,rects:u,initialPlacement:c,platform:d,elements:f}=t,{mainAxis:h=!0,crossAxis:p=!0,fallbackPlacements:m,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:y=!0,...b}=(0,tf.evaluate)(e,t);if(null!=(n=s.arrow)&&n.alignmentOffset)return{};let x=(0,tf.getSide)(i),w=(0,tf.getSideAxis)(c),M=(0,tf.getSide)(c)===c,k=await (null==d.isRTL?void 0:d.isRTL(f.floating)),E=m||(M||!y?[(0,tf.getOppositePlacement)(c)]:(0,tf.getExpandedPlacements)(c)),C="none"!==v;!m&&C&&E.push(...(0,tf.getOppositeAxisPlacements)(c,y,v,k));let S=[c,...E],A=await d.detectOverflow(t,b),R=[],P=(null==(r=s.flip)?void 0:r.overflows)||[];if(h&&R.push(A[x]),p){let e=(0,tf.getAlignmentSides)(i,u,k);R.push(A[e[0]],A[e[1]])}if(P=[...P,{placement:i,overflows:R}],!R.every(e=>e<=0)){let e=((null==(a=s.flip)?void 0:a.index)||0)+1,t=S[e];if(t&&("alignment"!==p||w===(0,tf.getSideAxis)(t)||P.every(e=>(0,tf.getSideAxis)(e.placement)!==w||e.overflows[0]>0)))return{data:{index:e,overflows:P},reset:{placement:t}};let n=null==(l=P.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:l.placement;if(!n)switch(g){case"bestFit":{let e=null==(o=P.filter(e=>{if(C){let t=(0,tf.getSideAxis)(e.placement);return t===w||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:o[0];e&&(n=e);break}case"initialPlacement":n=c}if(i!==n)return{reset:{placement:n}}}return{}}}},tB=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){let n,r,{placement:a,rects:l,platform:o,elements:i}=t,{apply:s=()=>{},...u}=(0,tf.evaluate)(e,t),c=await o.detectOverflow(t,u),d=(0,tf.getSide)(a),f=(0,tf.getAlignment)(a),h="y"===(0,tf.getSideAxis)(a),{width:p,height:m}=l.floating;"top"===d||"bottom"===d?(n=d,r=f===(await (null==o.isRTL?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(r=d,n="end"===f?"top":"bottom");let g=m-c.top-c.bottom,v=p-c.left-c.right,y=(0,tf.min)(m-c[n],g),b=(0,tf.min)(p-c[r],v),x=t.middlewareData.shift,w=!x,M=y,k=b;null!=x&&x.enabled.x&&(k=v),null!=x&&x.enabled.y&&(M=g),w&&!f&&(h?k=p-2*(0,tf.max)(c.left,c.right):M=m-2*(0,tf.max)(c.top,c.bottom)),await s({...t,availableWidth:k,availableHeight:M});let E=await o.getDimensions(i.floating);return p!==E.width||m!==E.height?{reset:{rects:!0}}:{}}}},t_=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:a="referenceHidden",...l}=(0,tf.evaluate)(e,t);switch(a){case"referenceHidden":{let e=tg(await r.detectOverflow(t,{...l,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:tv(e)}}}case"escaped":{let e=tg(await r.detectOverflow(t,{...l,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:tv(e)}}}default:return{}}}}},tH=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:a,rects:l,platform:o,elements:i,middlewareData:s}=t,{element:u,padding:c=0}=(0,tf.evaluate)(e,t)||{};if(null==u)return{};let d=(0,tf.getPaddingObject)(c),f={x:n,y:r},h=(0,tf.getAlignmentAxis)(a),p=(0,tf.getAxisLength)(h),m=await o.getDimensions(u),g="y"===h,v=g?"clientHeight":"clientWidth",y=l.reference[p]+l.reference[h]-f[h]-l.floating[p],b=f[h]-l.reference[h],x=await (null==o.getOffsetParent?void 0:o.getOffsetParent(u)),w=x?x[v]:0;w&&await (null==o.isElement?void 0:o.isElement(x))||(w=i.floating[v]||l.floating[p]);let M=w/2-m[p]/2-1,k=(0,tf.min)(d[g?"top":"left"],M),E=(0,tf.min)(d[g?"bottom":"right"],M),C=w-m[p]-E,S=w/2-m[p]/2+(y/2-b/2),A=(0,tf.clamp)(k,S,C),R=!s.arrow&&null!=(0,tf.getAlignment)(a)&&S!==A&&l.reference[p]/2-(S<k?k:E)-m[p]/2<0,P=R?S<k?S-k:S-C:0;return{[h]:f[h]+P,data:{[h]:A,centerOffset:S-A-P,...R&&{alignmentOffset:P}},reset:R}}}),tW=function(e){return void 0===e&&(e={}),{name:"inline",options:e,async fn(t){let{placement:n,elements:r,rects:a,platform:l,strategy:o}=t,{padding:i=2,x:s,y:u}=(0,tf.evaluate)(e,t),c=Array.from(await (null==l.getClientRects?void 0:l.getClientRects(r.reference))||[]);if(!c.length)return{};let d=function(e){let t=e.slice().sort((e,t)=>
1e.y-t.y),n=[],r=null;for(let e=0;e<t.length;e++){let a=t[e];!r||a.y-r.y>r.height/2?n.push([a]):n[n.length-1].push(a),r=a}return n.map(e=>(0,tf.rectToClientRect)(ty(e)))}(c),f=(0,tf.rectToClientRect)(ty(c)),h=(0,tf.getPaddingObject)(i),p=await l.getElementRects({reference:{getBoundingClientRect:function(){if(2===d.length&&(d[0].left>d[1].right||d[1].left>d[0].right)&&null!=s&&null!=u)return d.find(e=>s>e.left-h.left&&s<e.right+h.right&&u>e.top-h.top&&u<e.bottom+h.bottom)||f;if(d.length>=2){if("y"===(0,tf.getSideAxis)(n)){let e=d[0],t=d[d.length-1],r="top"===(0,tf.getSide)(n),a=e.top,l=t.bottom,o=r?e.left:t.left,i=r?e.right:t.right;return(0,tf.rectToClientRect)({x:o,y:a,width:i-o,height:l-a})}let e="left"===(0,tf.getSide)(n),t=(0,tf.max)(...d.map(e=>e.right)),r=(0,tf.min)(...d.map(e=>e.left)),a=d.filter(n=>e?n.left===r:n.right===t),l=a[0].top,o=a[a.length-1].bottom;return(0,tf.rectToClientRect)({x:r,y:l,width:t-r,height:o-l})}return f}},floating:r.floating,strategy:o});return a.reference.x!==p.reference.x||a.reference.y!==p.reference.y||a.reference.width!==p.reference.width||a.reference.height!==p.reference.height?{reset:{rects:p}}:{}}}},tX=function(e){return void 0===e&&(e={}),{options:e,fn(t){var n,r,a,l;let{x:o,y:i,placement:s,rects:u,middlewareData:c}=t,{offset:d=0,mainAxis:f=!0,crossAxis:h=!0}=(0,tf.evaluate)(e,t),p={x:o,y:i},m=(0,tf.getSideAxis)(s),g=(0,tf.getOppositeAxis)(m),v=p[g],y=p[m],b=(0,tf.evaluate)(d,t),x="number"==typeof b?{mainAxis:b,crossAxis:0}:{mainAxis:null!=(n=b.mainAxis)?n:0,crossAxis:null!=(r=b.crossAxis)?r:0};if(f){let e="y"===g?"height":"width",t=u.reference[g]-u.floating[e]+x.mainAxis,n=u.reference[g]+u.reference[e]-x.mainAxis;v<t?v=t:v>n&&(v=n)}if(h){let e="y"===g?"width":"height",t=tb.has((0,tf.getSide)(s)),n=u.reference[m]-u.floating[e]+(t&&(null==(a=c.offset)?void 0:a[m])||0)+(t?0:x.crossAxis),r=u.reference[m]+u.reference[e]+(t?0:(null==(l=c.offset)?void 0:l[m])||0)-(t?x.crossAxis:0);y<n?y=n:y>r&&(y=r)}return{[g]:v,[m]:y}}}},tq=(e,t,n)=>{let r=new Map,a=null!=n?n:{},l={...tN,...a.platform,_c:r};return tm(e,t,{...a,platform:l})};e.s(["arrow",()=>tH,"autoPlacement",()=>tF,"autoUpdate",()=>tD,"computePosition",()=>tq,"flip",()=>tV,"hide",()=>t_,"inline",()=>tW,"limitShift",()=>tX,"offset",()=>t$,"platform",()=>tN,"shift",()=>tz,"size",()=>tB],25339);var tU="undefined"!=typeof document?a.useLayoutEffect:function(){};function tY(e,t){let n,r,a;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!tY(e[r],t[r]))return!1;return!0}if((n=(a=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,a[r]))return!1;for(r=n;0!=r--;){let n=a[r];if(("_owner"!==n||!e.$$typeof)&&!tY(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function tG(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function tK(e,t){let n=tG(e);return Math.round(t*n)/n}function tJ(e){let t=a.useRef(e);return tU(()=>{t.current=e}),t}function tQ(e={}){let t=e3(e),n=e.rootContext||t;return t0(e,n)}function tZ(e){return t0(e,e.rootContext)}function t0(e,t){let{nodeId:n,externalTree:r}=e,l=t.useState("referenceElement"),o=t.useState("floatingElement"),i=t.useState("domReferenceElement"),s=t.useState("open"),u=t.useState("floatingId"),[c,d]=a.useState(null),[f,h]=a.useState(void 0),[p,m]=a.useState(void 0),g=a.useRef(null),v=(0,ei.useFloatingTree)(r),y=a.useMemo(()=>({reference:l,floating:o,domReference:i}),[l,o,i]),b=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:l,elements:{reference:o,floating:i}={},transform:s=!0,whileElementsMounted:u,open:c}=e,[d,f]=a.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,p]=a.useState(r);tY(h,r)||p(r);let[m,g]=a.useState(null),[v,y]=a.useState(null),b=a.useCallback(e=>{e!==k.current&&(k.current=e,g(e))},[]),x=a.useCallback(e=>{e!==E.current&&(E.current=e,y(e))},[]),w=o||m,M=i||v,k=a.useRef(null),E=a.useRef(null),C=a.useRef(d),S=null!=u,A=tJ(u),R=tJ(l),P=tJ(c),T=a.useCallback(()=>
1{if(!k.current||!E.current)return;let e={placement:t,strategy:n,middleware:h};R.current&&(e.platform=R.current),tq(k.current,E.current,e).then(e=>{let t={...e,isPositioned:!1!==P.current};L.current&&!tY(C.current,t)&&(C.current=t,eY.flushSync(()=>{f(t)}))})},[h,t,n,R,P]);tU(()=>{!1===c&&C.current.isPositioned&&(C.current.isPositioned=!1,f(e=>({...e,isPositioned:!1})))},[c]);let L=a.useRef(!1);tU(()=>(L.current=!0,()=>{L.current=!1}),[]),tU(()=>{if(w&&(k.current=w),M&&(E.current=M),w&&M){if(A.current)return A.current(w,M,T);T()}},[w,M,T,A,S]);let O=a.useMemo(()=>({reference:k,floating:E,setReference:b,setFloating:x}),[b,x]),I=a.useMemo(()=>({reference:w,floating:M}),[w,M]),N=a.useMemo(()=>{let e={position:n,left:0,top:0};if(!I.floating)return e;let t=tK(I.floating,d.x),r=tK(I.floating,d.y);return s?{...e,transform:"translate("+t+"px, "+r+"px)",...tG(I.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,s,I.floating,d.x,d.y]);return a.useMemo(()=>({...d,update:T,refs:O,elements:I,floatingStyles:N}),[d,T,O,I,N])}({...e,elements:{...y,...c&&{reference:c}}}),x=(0,el.isElement)(f)?f:null,w=void 0===p?t.state.floatingElement:p;t.useSyncedValue("referenceElement",f??null),t.useSyncedValue("domReferenceElement",void 0===f?i:x),t.useSyncedValue("floatingElement",w);let M=a.useCallback(e=>{let t=(0,el.isElement)(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;d(t),b.refs.setReference(t)},[b.refs]),k=a.useCallback(e=>{((0,el.isElement)(e)||null===e)&&(g.current=e,h(e)),((0,el.isElement)(b.refs.reference.current)||null===b.refs.reference.current||null!==e&&!(0,el.isElement)(e))&&b.refs.setReference(e)},[b.refs,h]),E=a.useCallback(e=>{m(e),b.refs.setFloating(e)},[b.refs]),C=a.useMemo(()=>({...b.refs,setReference:k,setFloating:E,setPositionReference:M,domReference:g}),[b.refs,k,E,M]),S=a.useMemo(()=>({...b.elements,domReference:i}),[b.elements,i]),A=a.useMemo(()=>({...b,dataRef:t.context.dataRef,open:s,onOpenChange:t.setOpen,events:t.context.events,floatingId:u,refs:C,elements:S,nodeId:n,rootStore:t}),[b,C,S,n,t,s,u]);return(0,D.useIsoLayoutEffect)(()=>{i&&(g.current=i)},[i]),(0,D.useIsoLayoutEffect)(()=>{t.context.dataRef.current.floatingContext=A;let e=v?.nodesRef.current.find(e=>e.id===n);e&&(e.context=A)}),a.useMemo(()=>({...b,context:A,refs:C,elements:S,rootStore:t}),[b,C,S,A,t])}let t1={name:"hide",async fn(e){let{width:t,height:n,x:r,y:a}=e.rects.reference,l=await e.platform.detectOverflow(e,{elementContext:"reference"});return{data:{referenceHidden:l.top-n>=0||l.right-t>=0||l.bottom-n>=0||l.left-t>=0||0===t&&0===n&&0===r&&0===a}}}},t2={sideX:"left",sideY:"top"},t4="--available-width",t5="--available-height";function t6(e,t,n){let r="inline-start"===e||"inline-end"===e;return({top:"top",right:r?n?"inline-start":"inline-end":"right",bottom:"bottom",left:r?n?"inline-end":"inline-start":"left"})[t]}function t3(e,t,n){let{rects:r,placement:a}=e;return{side:t6(t,(0,tf.getSide)(a),n),align:(0,tf.getAlignment)(a)||"center",anchor:{width:r.reference.width,height:r.reference.height},positioner:{width:r.floating.width,height:r.floating.height}}}function t8(e){return t9(e,tZ)}function t9(e,t){var n,r,l,o,i,u,c;let d,f,h,p,{anchor:m,positionMethod:g="absolute",side:v="bottom",sideOffset:y=0,align:b="center",alignOffset:x=0,collisionBoundary:w,collisionPadding:M=5,sticky:k=!1,arrowPadding:E=5,disableAnchorTracking:C=!1,inline:S,keepMounted:A=!1,floatingRootContext:R,mounted:P,collisionAvoidance:T,shift:L,nodeId:O,adaptiveOrigin:I,lazyFlip:N=!1,externalTree:j}=e,[$,F]=a.useState(null);P||null===$||F(null);let z=T.side||"flip",V=T.align||"flip",B=T.fallbackAxisSide||"end",W=L?.crossAxis??!1,X=L?.rootBoundary,q="function"==typeof m?m:void 0,U=(0,s.useStableCallback)(q),Y=q?U:m,G=(0,_.useValueAsRef)(m),K=(0,_.useValueAsRef)(P),J="rtl"===(0,to.useDirection)(),Q=$||({top:"top",right:"right",bottom:"bottom",left:"left","inline-end":J?"left":"right","inline-start":J?"right":"left"})[v],Z="center"===b?Q:`${Q}-${b}`,ee=M;"number"==typeof ee?ee={top:ee,right:ee,bottom:ee,left:ee}:ee&&(ee={top:ee.top||0,right:ee.right||0,bottom:ee.bottom||0,left:ee.left||0});
1let et=+("bottom"===v),en=+("top"===v),er=+("right"===v),ea=+("left"===v),el={boundary:"clipping-ancestors"===w?"clippingAncestors":w,padding:ee},ei=a.useRef(null),es=(0,_.useValueAsRef)(y),eu=(0,_.useValueAsRef)(x),ec=[];S&&ec.push(S),ec.push((n=e=>{let t=t3(e,v,J),n="function"==typeof es.current?es.current(t):es.current,r="function"==typeof eu.current?eu.current(t):eu.current;return{mainAxis:n,crossAxis:r,alignmentAxis:r}},r=["function"!=typeof y?y:0,"function"!=typeof x?x:0,J,v],{name:(d=t$(n)).name,fn:d.fn,options:[n,r]}));let ed="none"===V&&"shift"!==z,ef=!ed&&(k||W||"shift"===z),eh="none"===z?null:{name:(f=tV(l={...el,padding:{top:ee.top+1+et,right:ee.right+1+ea,bottom:ee.bottom+1+en,left:ee.left+1+er},mainAxis:!W&&"flip"===z,crossAxis:"flip"===V&&"alignment",fallbackAxisSideDirection:B})).name,fn:f.fn,options:[l,void 0]},ep=ed?null:(i={...el,rootBoundary:X,mainAxis:"none"!==V,crossAxis:ef,limiter:k||W?void 0:{fn:tX(o=e=>{if(!ei.current)return{};let{width:t,height:n}=ei.current.getBoundingClientRect(),r=(0,tf.getSideAxis)((0,tf.getSide)(e.placement)),a="y"===r?ee.left+ee.right:ee.top+ee.bottom;return{offset:("y"===r?t:n)/2+a/2}}).fn,options:[o,void 0]}},u=[el,k,W,X,ee,V],{name:(h=tz(i)).name,fn:h.fn,options:[i,u]});"shift"===z||"shift"===V||"center"===b?ec.push(ep,eh):ec.push(eh,ep),ec.push({name:(p=tB(c={...el,apply({elements:{floating:e},availableWidth:t,availableHeight:n,rects:r}){if(!K.current)return;let a=e.style;a.setProperty(t4,`${t}px`),a.setProperty(t5,`${n}px`);let l=(0,H.ownerWindow)(e).devicePixelRatio||1,{x:o,y:i,width:s,height:u}=r.reference,c=(Math.round((o+s)*l)-Math.round(o*l))/l,d=(Math.round((i+u)*l)-Math.round(i*l))/l;a.setProperty("--anchor-width",`${c}px`),a.setProperty("--anchor-height",`${d}px`)}})).name,fn:p.fn,options:[c,void 0]},((e,t)=>{let{name:n,fn:r}={name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:a,rects:l,platform:o,elements:i,middlewareData:s}=t,{element:u,padding:c=0,offsetParent:d="real"}=(0,tf.evaluate)(e,t)||{};if(null==u)return{};let f=(0,tf.getPaddingObject)(c),h={x:n,y:r},p=(0,tf.getAlignmentAxis)(a),m=(0,tf.getAxisLength)(p),g=await o.getDimensions(u),v="y"===p,y=v?"clientHeight":"clientWidth",b=l.reference[m]+l.reference[p]-h[p]-l.floating[m],x=h[p]-l.reference[p],w="real"===d?await o.getOffsetParent?.(u):i.floating,M=i.floating[y]||l.floating[m];M&&await o.isElement?.(w)||(M=i.floating[y]||l.floating[m]);let k=M/2-g[m]/2-1,E=Math.min(f[v?"top":"left"],k),C=Math.min(f[v?"bottom":"right"],k),S=M-g[m]-C,A=M/2-g[m]/2+(b/2-x/2),R=(0,tf.clamp)(E,A,S),P=!s.arrow&&null!=(0,tf.getAlignment)(a)&&A!==R&&l.reference[m]/2-(A<E?E:C)-g[m]/2<0,T=P?A<E?A-E:A-S:0;return{[p]:h[p]+T,data:{[p]:R,centerOffset:A-R-T,...P&&{alignmentOffset:T}},reset:P}}};return{name:n,fn:r,options:[e,t]}})(e=>({element:ei.current||(0,eo.ownerDocument)(e.elements.floating).createElement("div"),padding:ei.current?E:0,offsetParent:"floating"}),[E]),{name:"transformOrigin",fn(e){let t,{elements:{floating:n},middlewareData:r,placement:a,platform:l,rects:o,y:i}=e,s=(0,tf.getSide)(a),u=(0,tf.getAlignment)(a),c="y"===(0,tf.getSideAxis)(s),d=ei.current,f="function"==typeof y?y(t3(e,v,J)):y;if(!d&&u&&1>=Math.abs(c?r.shift?.x||0:r.shift?.y||0))t="start"===u===(c&&l.isRTL?.(n)===!0)?"100%":"0%";else{let e=c?r.arrow?.x||0:r.arrow?.y||0,n=c?d?.clientWidth||0:d?.clientHeight||0;t=`${e+n/2}px`}let h="top"===s||"left"===s?`calc(100% + ${f}px)`:`${-f}px`;return ef&&c&&Math.abs(r.shift?.y||0)>f&&(h=`${o.reference.y+o.reference.height/2-i}px`),n.style.setProperty("--transform-origin",c?`${t} ${h}`:`${h} ${t}`),{}}},t1,I),(0,D.useIsoLayoutEffect)(()=>{!P&&R&&R.update({referenceElement:null,floatingElement:null,domReferenceElement:null,positionReference:null})},[P,R]);let em=a.useMemo(()=>({ancestorScroll:!C,elementResize:!C&&"undefined"!=typeof ResizeObserver,layoutShift:!C&&"undefined"!=typeof IntersectionObserver}),[C]),{refs:eg,elements:ev,x:ey,y:eb,middlewareData:ex,update:ew,placement:eM,context:ek,isPositioned:eE,floatingStyles:eC}=t({rootContext:R,open:A?P:void 0,placement:Z,middleware:ec,strategy:g,whileElementsMounted:A?void 0:(...e)=>tD(...e,em),nodeId:O,externalTree:j}),{sideX:eS,sideY:eA}=ex.adaptiveOrigin||t2,eR=eE?g:"fixed",eP=a.useMemo(()=>{let e;return(e=eE?I?{position:eR,[eS]:ey,[eA]:eb}:{...eC,position:eR}:{position:eR,top:0,left:0})[t4]="100vw",e[t5]="100vh",eE||(e.opacity=0),e},[I,eR,eS,ey,eA,eb,eC,eE]),eT=a.useRef(null);(0,D.useIsoLayoutEffect)(()=>
1{if(!P)return;let e=G.current,t="function"==typeof e?e():e,n=(t7(t)?t.current:t)||null;n!==eT.current&&(eg.setPositionReference(n),eT.current=n)},[P,eg,Y,G]),a.useEffect(()=>{if(!P)return;let e=G.current;"function"!=typeof e&&t7(e)&&e.current!==eT.current&&(eg.setPositionReference(e.current),eT.current=e.current)},[P,eg,Y,G]),a.useEffect(()=>{if(A&&P&&ev.reference&&ev.floating)return tD(ev.reference,ev.floating,ew,em)},[A,P,ev,ew,em]);let eL=(0,tf.getSide)(eM),eO=t6(v,eL,J),eI=(0,tf.getAlignment)(eM)||"center",eN=!!ex.hide?.referenceHidden;(0,D.useIsoLayoutEffect)(()=>{N&&P&&eE&&eL!==Q&&F(eL)},[N,P,eE,eL,Q]);let ej=a.useMemo(()=>({position:"absolute",top:ex.arrow?.y,left:ex.arrow?.x}),[ex.arrow]),eD=ex.arrow?.centerOffset!==0;return a.useMemo(()=>({positionerStyles:eP,arrowStyles:ej,arrowRef:ei,arrowUncentered:eD,side:eO,align:eI,physicalSide:eL,anchorHidden:eN,refs:eg,context:ek,isPositioned:eE,update:ew}),[eP,ej,ei,eD,eO,eI,eL,eN,eg,ek,eE,ew])}function t7(e){return null!=e&&"current"in e}e.s(["useAnchorPositioning",()=>t8,"useAnchorPositioningWithHook",()=>t9],66751);let ne=a.createContext(void 0);function nt(e=!1){let t=a.useContext(ne);if(!t&&!e)throw Error((0,d.default)(42));return t}let nn={name:"adaptiveOrigin",async fn(e){let{x:t,y:n,rects:{floating:r},elements:{floating:a},platform:l,strategy:o,placement:i}=e,s=(0,H.ownerWindow)(a),u=s.getComputedStyle(a);if("0s"===u.transitionDuration||""===u.transitionDuration)return{x:t,y:n,data:t2};let c=await l.getOffsetParent?.(a),d={width:0,height:0};if("fixed"===o&&s?.visualViewport)d={width:s.visualViewport.width,height:s.visualViewport.height};else if(c===s){let e=(0,eo.ownerDocument)(a);d={width:e.documentElement.clientWidth,height:e.documentElement.clientHeight}}else await l.isElement?.(c)&&(d=await l.getDimensions(c));let f=(0,tf.getSide)(i),h=t,p=n;return"left"===f&&(h=d.width-(t+r.width)),"top"===f&&(p=d.height-(n+r.height)),{x:h,y:p,data:{sideX:"left"===f?"right":t2.sideX,sideY:"top"===f?"bottom":t2.sideY}}}};function nr(e){return"starting"===e?e7.DISABLED_TRANSITIONS_STYLE:u.EMPTY_OBJECT}function na(e,t,{styles:n,transitionStatus:r,props:a,refs:l,hidden:o,inert:i=!1}){let s={...n};return i&&(s.pointerEvents="none"),(0,p.useRenderElement)("div",e,{state:t,ref:l,props:[{role:"presentation",hidden:o,style:s},nr(r),a],stateAttributesMapping:eK.popupStateMapping})}e.s(["getDisabledMountTransitionStyles",()=>nr],77458),e.s(["usePositioner",()=>na],31666);let nl=eH(),no=a.forwardRef(function(e,n){var r;let{open:l,mounted:o,positionerElement:i,setPositionerElement:s,floatingRootContext:u,nested:c,transitionStatus:f}=ec(),{className:h,render:p,anchor:m,positionMethod:g="absolute",side:v="bottom",align:y="center",sideOffset:b=0,alignOffset:x=0,collisionBoundary:w="clipping-ancestors",collisionPadding:M=5,collisionAvoidance:k=c?e7.POPUP_COLLISION_AVOIDANCE:e7.DROPDOWN_COLLISION_AVOIDANCE,arrowPadding:E=5,sticky:C=!1,disableAnchorTracking:S=!1,style:A,...R}=e,P=function(){let e=a.useContext(tc);if(void 0===e)throw Error((0,d.default)(40));return e}(),T=ef(),L=(0,ek.useTimeout)(),O=(0,ek.useTimeout)(),[I,N]=a.useState(l),j=a.useRef(l);a.useEffect(()=>{if(i)return(0,eM.mergeCleanups)((0,V.addEventListener)(i,"focusin",e,!0),(0,V.addEventListener)(i,"focusout",e,!0));function e(e){i&&(0,e9.isOutsideEvent)(e)&&("focusin"===e.type?e9.enableFocusInside:e9.disableFocusInside)(i)}},[i]);let D=(u||nl).useState("domReferenceElement"),$=(r={anchor:m??D,positionMethod:g,mounted:o,side:v,sideOffset:b,align:y,alignOffset:x,arrowPadding:E,collisionBoundary:w,collisionPadding:M,sticky:C,disableAnchorTracking:S,keepMounted:P,floatingRootContext:u,collisionAvoidance:k,shift:{rootBoundary:"layoutViewport"},nodeId:T,adaptiveOrigin:nn},t9(r,tQ)),F={open:l,side:$.side,align:$.align,anchorHidden:$.anchorHidden,instant:I};a.useEffect(()=>{if(!l)return;j.current&&L.start(0,()=>{j.current=!1,O.isStarted()||N(!1)});let e=(0,H.ownerWindow)(i);return(0,V.addEventListener)(e,"resize",function(){eY.flushSync(()=>{N(!0)}),O.start(100,()=>{N(!1)})})},[l,L,O,i]);let z=na(e,F,{styles:$.positionerStyles,transitionStatus:f,props:R,refs:[n,s],hidden:!o,inert:!l});return(0,t.jsx)(ne.Provider,{value:$,children:z})}),ni=eH();function ns({children:e}){let{beforeInsideRef:n,beforeOutsideRef:r,afterInsideRef:l,afterOutsideRef:o,positionerElement:i,viewportElement:s,floatingRootContext:u}=ec(),c=!!nt(!0),d=i||s;return u||c?(0,t.jsxs)(a.Fragment,{children:[(0,t.jsx)(te.FocusGuard,{ref:n,onFocus:e=>{d&&(0,e9.isOutsideEvent)(e,d)?(0,e9.getNextTabbable)(d)?.focus():r.current?.focus()}}),e,(0,t.jsx)(te.FocusGuard,{ref:l,onFocus:e=>{d&&(0,e9.isOutsideEvent)(e,d)?(0,e9.getPreviousTabbable)(d)?.focus():o.current?.focus()}})]}):e}let nu=a.forwardRef(function(e,n){let{render:r,className:a,style:l,children:o,id:i,...s}=e,u=(0,e6.useId)(i),{setViewportElement:c,setViewportTargetElement:d,floatingRootContext:f,prevTriggerElementRef:h,viewportInert:m,setViewportInert:g}=ec(),v=!!nt(!0),y=(f||ni).useState("domReferenceElement");(0,D.useIsoLayoutEffect)(()=>{y&&(h.current=y)},[y,h]);let b=(0,p.useRenderElement)("div",e,{ref:[n,c],props:[{id:u,onBlur(e){let t=e.relatedTarget,n=e.currentTarget;t&&!(0,es.contains)(n,t)&&t!==y&&g(!0)},...!v&&m&&{inert:(0,eG.inertValue)(!0)},children:v?o:(0,t.jsx)(ns,{children:(0,t.jsx)("div",{ref:d,children:o})})},s]});return v?(0,t.jsx)(ns,{children:b}):b}),nc=a.forwardRef(function(e,t){let{render:n,className:r,style:a,...l}=e,{open:o,mounted:i,transitionStatus:s}=ec();return(0,p.useRenderElement)("div",e,{state:{open:o,transitionStatus:s},ref:t,props:[{role:"presentation",hidden:!i,style:{userSelect:"none",WebkitUserSelect:"none"}},l],stateAttributesMapping:eK.popupTransitionStateMapping})}),nd=a.forwardRef(function(e,t){let{render:n,className:r,style:a,id:l,...o}=e,{open:i,transitionStatus:s,setPopupElement:u}=ec(),c=nt(),d=(0,to.useDirection)(),f=(0,y.useBaseUiId)(l),h={open:i,transitionStatus:s,side:c.side,align:c.align,anchorHidden:c.anchorHidden}
1,m="left"===c.side;m="rtl"===d?m||"inline-end"===c.side:m||"inline-start"===c.side;let g="top"===c.side||m;return(0,p.useRenderElement)("nav",e,{state:h,ref:[t,u],props:[{id:f,tabIndex:-1,style:g?{position:"absolute",["top"===c.side?"bottom":"top"]:"0",[m?"right":"left"]:"0"}:{}},nr(s),o],stateAttributesMapping:eK.popupTransitionStateMapping})}),nf=a.forwardRef(function(e,t){let{render:n,className:r,style:a,...l}=e,{open:o,transitionStatus:i}=ec(),{arrowRef:s,side:u,align:c,arrowUncentered:d,arrowStyles:f}=nt();return(0,p.useRenderElement)("div",e,{state:{open:o,side:u,align:c,uncentered:d},ref:[t,s],props:[{style:f,"aria-hidden":!0},nr(i),l],stateAttributesMapping:eK.popupStateMapping})}),nh=a.forwardRef(function(e,n){let{className:r,render:a,active:l=!1,closeOnClick:o=!1,style:i,...s}=e,{setValue:u,popupElement:c,positionerElement:d,rootRef:f}=ec(),h=ef(),p=(0,ei.useFloatingTree)();return(0,t.jsx)(tr,{tag:"a",render:a,className:r,style:i,state:{active:l},refs:[n],props:[{"aria-current":l?"page":void 0,tabIndex:void 0,onClick(e){o&&u(null,(0,b.createChangeEventDetails)(x.REASONS.linkPress,e.nativeEvent))},onBlur(e){d&&c&&tt({currentTarget:e.currentTarget,relatedTarget:e.relatedTarget},{popupElement:c,rootRef:f,tree:p,nodeId:h})&&u(null,(0,b.createChangeEventDetails)(x.REASONS.focusOut,e.nativeEvent))}},s]})}),np=a.forwardRef(function(e,t){let{render:n,className:r,style:a,...l}=e,{value:o}=eq(),{open:i,value:s}=ec();return(0,p.useRenderElement)("span",e,{state:{open:i&&s===o},ref:t,props:[{"aria-hidden":!0,children:"▼"},l],stateAttributesMapping:eK.triggerOpenStateMapping})});e.s(["Arrow",0,nf,"Backdrop",0,nc,"Content",0,eZ,"Icon",0,np,"Item",0,eU,"Link",0,nh,"List",0,eW,"Popup",0,nd,"Portal",0,td,"Positioner",0,no,"Root",0,eb,"Trigger",0,ts,"Viewport",0,nu],80742);var nm=e.i(80742),nm=nm;function ng({className:e,children:n,...r}){return(0,t.jsxs)(nm.Root,{"data-slot":"navigation-menu",className:(0,Z.cn)("relative min-w-max",e),...r,children:[n,(0,t.jsx)(nw,{})]})}function nv({className:e,...n}){return(0,t.jsx)(nm.List,{"data-slot":"navigation-menu-list",className:(0,Z.cn)("flex items-center gap-0.5",e),...n})}function ny(e){return(0,t.jsx)(nm.Item,{"data-slot":"navigation-menu-item",...e})}function nb({className:e,children:n,...r}){return(0,t.jsxs)(nm.Trigger,{"data-slot":"navigation-menu-trigger",className:(0,Z.cn)("state-layer focus-ring inline-flex h-9 items-center justify-center gap-1 rounded-full px-3.5 text-sm font-medium text-foreground/80 no-underline transition-colors outline-none select-none hover:text-foreground data-popup-open:text-foreground",e),...r,children:[n,(0,t.jsx)(nm.Icon,{className:"transition-transform duration-200 ease-(--ease-dx) data-popup-open:rotate-180",children:(0,t.jsx)(Q.ChevronDownIcon,{className:"size-3.5 text-muted-foreground"})})]})}function nx({className:e,...n}){return(0,t.jsx)(nm.Content,{"data-slot":"navigation-menu-content",className:(0,Z.cn)("h-full w-[calc(100vw-40px)] p-2 sm:w-max","transition-[opacity,translate] duration-(--duration) ease-(--easing) data-starting-style:opacity-0 data-ending-style:opacity-0","data-starting-style:data-[activation-direction=left]:-translate-x-1/2 data-starting-style:data-[activation-direction=right]:translate-x-1/2","data-ending-style:data-[activation-direction=left]:translate-x-1/2 data-ending-style:data-[activation-direction=right]:-translate-x-1/2",e),...n})}function nw(){return(0,t.jsx)(nm.Portal,{children:(0,t.jsx)(nm.Positioner,{sideOffset:8,collisionPadding:{top:5,bottom:5,left:20,right:20},collisionAvoidance:{side:"none"},className:"z-50 h-(--positioner-height) w-(--positioner-width) max-w-(--available-width) transition-[top,left,right,bottom] duration-(--duration) ease-(--easing) data-instant:transition-none",style:{"--duration":"0.35s","--easing":"cubic-bezier(0.22, 1, 0.36, 1)"},children:(0,t.jsx)(nm.Popup,{className:"relative h-(--popup-height) w-(--popup-width) origin-(--transform-origin) rounded-xl border border-outline-variant bg-popover text-popover-foreground shadow-float outline-none transition-[opacity,transform,width,height,scale] duration-(--duration) ease-(--easing) data-ending-style:scale-95 data-ending-style:opacity-0 data-ending-style:duration-150 data-starting-style:scale-95 data-starting-style:opacity-0",children:(0,t.jsx)(nm.Viewport,{className:"relative h-full w-full overflow-hidden"})})})})}function nM({className:e,...n}){return(0,t.jsx)(nm.Link,{"data-slot":"navigation-menu-link",className:(0,Z.cn)("focus-ring flex flex-col gap-1 rounded-md p-3 text-sm no-underline transition-colors outline-none hover:bg-container data-active:bg-container",e),...n})}
1var nk=e.i(17453),nE=e.i(32646);function nC(e){return(0,t.jsx)(nk.Dialog.Root,{"data-slot":"sheet",...e})}function nS(e){return(0,t.jsx)(nk.Dialog.Trigger,{"data-slot":"sheet-trigger",...e})}let nA={right:"inset-y-2 right-2 w-[calc(100%-1rem)] sm:max-w-sm data-starting-style:translate-x-[105%] data-ending-style:translate-x-[105%]",left:"inset-y-2 left-2 w-[calc(100%-1rem)] sm:max-w-sm data-starting-style:-translate-x-[105%] data-ending-style:-translate-x-[105%]",top:"inset-x-2 top-2 h-auto data-starting-style:-translate-y-[105%] data-ending-style:-translate-y-[105%]",bottom:"inset-x-2 bottom-2 h-auto data-starting-style:translate-y-[105%] data-ending-style:translate-y-[105%]"};function nR({className:e,children:n,side:r="right",showCloseButton:a=!0,...l}){return(0,t.jsxs)(nk.Dialog.Portal,{children:[(0,t.jsx)(nk.Dialog.Backdrop,{"data-slot":"sheet-overlay",className:"fixed inset-0 z-50 bg-overlay transition-opacity duration-300 ease-(--ease-dx) data-starting-style:opacity-0 data-ending-style:opacity-0"}),(0,t.jsxs)(nk.Dialog.Popup,{"data-slot":"sheet-content","data-side":r,className:(0,Z.cn)("fixed z-50 flex flex-col gap-4 roun
1ded-xl bg-popover text-popover-foreground shadow-float outline-none transition-transform duration-350 ease-(--ease-dx-out)",nA[r],e),...l,children:[n,a&&(0,t.jsxs)(nk.Dialog.Close,{className:"state-layer focus-ring absolute top-4 right-4 inline-flex size-8 items-center justify-center rounded-full text-muted-foreground hover:text-foreground [&_svg]:size-4",children:[(0,t.jsx)(nE.XIcon,{}),(0,t.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})}function nP({className:e,...n}){return(0,t.jsx)(nk.Dialog.Title,{"data-slot":"sheet-title",className:(0,Z.cn)("text-[18px] font-medium tracking-[-0.01em]",e),...n})}var nT=e.i(36858);function nL({className:e}){return(0,t.jsxs)(n.default,{href:"/","aria-label":"Paxeer X Network, home",className:(0,Z.cn)("focus-ring inline-flex items-center rounded-sm",e),children:[(0,t.jsx)("img",{src:"/paxeer.x_lightmode_black.png",alt:"",className:"h-9 w-auto object-contain dark:hidden"}),(0,t.jsx)("img",{src:"/paxeer.x_darkmode_white.png",alt:"",className:"hidden h-9 w-auto object-contain dark:block"})]})}function nO({item:e,className:r,children:a}){return(0,nT.isExternal)(e.href)?(0,t.jsx)("a",{href:e.href,target:"_blank",rel:"noopener noreferrer",className:r,children:a??e.label}):(0,t.jsx)(n.default,{href:e.href,className:r,children:a??e.label})}function nI(){return(0,t.jsx)(ng,{className:"hidden lg:block",children:(0,t.jsx)(nv,{children:nT.NAV_ITEMS.map(e=>(0,t.jsxs)(ny,{children:[(0,t.jsx)(nb,{children:e.label}),(0,t.jsx)(nx,{children:(0,t.jsx)("div",{className:"grid w-[min(56rem,calc(100vw-4rem))] grid-cols-[1.1fr_1fr_1fr] gap-2 p-3",children:e.columns.map((e,r)=>(0,t.jsxs)("div",{className:(0,Z.cn)("rounded-lg p-3",0===r&&"bg-container"),children:[(0,t.jsx)("p",{className:"text-caption mb-2 px-3 text-muted-foreground",children:e.title}),(0,t.jsx)("ul",{className:"flex flex-col",children:e.items.map(e=>(0,t.jsx)("li",{children:(0,t.jsxs)(nM,{render:(0,nT.isExternal)(e.href)?(0,t.jsx)("a",{href:e.href,target:"_blank",rel:"noopener noreferrer"}):(0,t.jsx)(n.default,{href:e.href}),className:(0,Z.cn)("flex-row items-center justify-between py-2",0===r?"text-[15px] font-medium":"text-muted-foreground hover:text-foreground"),children:[e.label,(0,nT.isExternal)(e.href)?(0,t.jsx)(l.ArrowUpRight,{className:"size-3.5 shrink-0","aria-hidden":"true"}):null]})},`${e.label}-${e.href}`))})]},e.title))})})]},e.label))})})}function nN(){let[e,l]=a.useState(!1),i=(0,r.usePathname)();return a.useEffect(()=>l(!1),[i]),(0,t.jsxs)(nC,{open:e,onOpenChange:l,children:[(0,t.jsx)(nS,{render:(0,t.jsx)(ea.Button,{variant:"ghost",size:"icon","aria-label":"Open menu",className:"lg:hidden"}),children:(0,t.jsx)(o,{})}),(0,t.jsxs)(nR,{side:"right",className:"overflow-y-auto p-6",children:[(0,t.jsx)(nP,{className:"text-caption text-muted-foreground",children:"Menu"}),(0,t.jsx)(ee,{className:"mt-2",children:nT.NAV_ITEMS.map(e=>(0,t.jsxs)(et,{value:e.label,children:[(0,t.jsx)(en,{className:"heading-8",children:e.label}),(0,t.jsx)(er,{children:e.columns.map(e=>(0,t.jsxs)("div",{className:"mb-5",children:[(0,t.jsx)("p",{className:"text-caption mb-1 text-muted-foreground",children:e.title}),(0,t.jsx)("ul",{className:"flex flex-col",children:e.items.map(e=>(0,t.jsx)("li",{children:(0,t.jsx)(nO,{item:e,className:"block py-1.5 text-[15px] text-foreground"})},`${e.label}-${e.href}`))})]},e.title))})]},e.label))}),(0,t.jsxs)("div",{className:"mt-auto flex flex-col gap-2 pt-6",children:[(0,t.jsx)(ea.Button,{render:(0,t.jsx)(n.default,{href:"/start"}),size:"lg",children:"Start building"}),(0,t.jsx)(ea.Button,{render:(0,t.jsx)("a",{href:nT.DOCS,target:"_blank",rel:"noopener noreferrer"}),variant:"tonal",size:"lg",children:"Read the docs"})]})]})]})}function nj(){return(0,t.jsx)("header",{className:"sticky top-0 z-40 bg-background/95 backdrop-blur-xl",children:(0,t.jsxs)("div",{className:"mx-auto flex h-(--header-height) w-full max-w-(--max-width-container) items-center gap-6 px-(--grid-margin)",children:[(0,t.jsx)(nL,{}),(0,t.jsx)(nI,{}),(0,t.jsxs)("div",{className:"ml-auto flex items-center gap-2",children:[(0,t.jsx)(ea.Button,{render:(0,t.jsx)("a",{href:nT.DOCS,target:"_blank",rel:"noopener noreferrer"}),variant:"outline",size:"sm",className:"hidden sm:inline-flex",children:"Read the docs"}),(0,t.jsx)(ea.Button,{render:(0,t.jsx)(n.default,{href:"/start"}),variant:"outline",size:"sm",className:"hidden sm:inline-flex",children:"Start building"}),(0,t.jsx)(nN,{})]})]})})}e.s(["Logo",()=>nL,"SiteHeader",()=>nj],17551)}]);

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